Skip to content

Commit c99faaa

Browse files
armaang1729Armaan Gupta
andauthored
FORMS - 23760 : Added Table component Mobile Layout support with sorting feature (#1934)
* added mobile layout handling * fixed mobile layout css * added sorting feature in mobile layout * resolved merge conflicts * moved the css part from the core components to the theme canvas * fix: address table mobile layout review comments (PR #1934) - rename _mobileSortOverlay/_mobileFilterOverlay to _mobileSortSheet/_mobileFilterSheet and cmp-adaptiveform-table__sort-overlay to __sort-scrim, avoiding collision with AEM's own /apps-over-/libs "overlay" terminology - add Table.selectors.headerCell/.sortButton and Table.SORT_ASC/SORT_DESC constants, replacing repeated selector and "asc"/"desc" string literals - localize the mobile sort/filter bar strings via FormView.LanguageUtils.getTranslatedString, add corresponding en.json keys, and fix Table never setting this.lang (was always falling back to English regardless of form locale) - add focus trap and focus-restore-to-trigger for the mobile sort/filter sheets * i18n: add table mobile-bar translations for all supported locales Moves the 11 new table i18n keys (sortTable, filterTable, sort, filter, sortOptions, sortBy, sortColumns, sortOrder, sortDirection, ascending, descending) to the end of en.json to match the file's append convention, and adds translations for de, es, fr, it, ja, ko-kr, pt-br, zh-cn, zh-tw so non-English forms render localized text instead of the English fallback. --------- Co-authored-by: Armaan Gupta <armaang@Armaans-MacBook-Pro.local>
1 parent 0cb2220 commit c99faaa

13 files changed

Lines changed: 442 additions & 29 deletions

File tree

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/de.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "Unterschrift löschen",
9494
"brushSize": "Pinselgröße: ",
9595
"geoLocationError": "Fehler beim Aufrufen des geografischen Standorts",
96-
"geoLocationFetch": "Geografischer Standort wird abgerufen …"
97-
}
96+
"geoLocationFetch": "Geografischer Standort wird abgerufen …",
97+
"sortTable": "Tabelle sortieren",
98+
"filterTable": "Tabelle filtern",
99+
"sort": "Sortieren",
100+
"filter": "Filtern",
101+
"sortOptions": "Sortieroptionen",
102+
"sortBy": "Sortieren nach",
103+
"sortColumns": "Spalten sortieren",
104+
"sortOrder": "Sortierreihenfolge",
105+
"sortDirection": "Sortierrichtung",
106+
"ascending": "Aufsteigend",
107+
"descending": "Absteigend"
108+
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/en.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,16 @@
5252
"clearSign": "Clear Signature",
5353
"brushSize": "Brush Size: ",
5454
"geoLocationError": "Error fetching geolocation",
55-
"geoLocationFetch": "Fetching Geo Location..."
55+
"geoLocationFetch": "Fetching Geo Location...",
56+
"sortTable": "Sort table",
57+
"filterTable": "Filter table",
58+
"sort": "Sort",
59+
"filter": "Filter",
60+
"sortOptions": "Sort options",
61+
"sortBy": "Sort by",
62+
"sortColumns": "Sort columns",
63+
"sortOrder": "Sort order",
64+
"sortDirection": "Sort direction",
65+
"ascending": "Ascending",
66+
"descending": "Descending"
5667
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/es.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "Borrar firma",
9494
"brushSize": "Tamaño de pincel: ",
9595
"geoLocationError": "Error al obtener la localización geográfica",
96-
"geoLocationFetch": "Obteniendo localización geográfica…"
96+
"geoLocationFetch": "Obteniendo localización geográfica…",
97+
"sortTable": "Ordenar tabla",
98+
"filterTable": "Filtrar tabla",
99+
"sort": "Ordenar",
100+
"filter": "Filtrar",
101+
"sortOptions": "Opciones de ordenación",
102+
"sortBy": "Ordenar por",
103+
"sortColumns": "Ordenar columnas",
104+
"sortOrder": "Orden de clasificación",
105+
"sortDirection": "Dirección de ordenación",
106+
"ascending": "Ascendente",
107+
"descending": "Descendente"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/fr.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "Effacer la signature",
9494
"brushSize": "Épaisseur du pinceau : ",
9595
"geoLocationError": "Erreur lors de la récupération de la géolocalisation",
96-
"geoLocationFetch": "Récupération de la géolocalisation..."
96+
"geoLocationFetch": "Récupération de la géolocalisation...",
97+
"sortTable": "Trier le tableau",
98+
"filterTable": "Filtrer le tableau",
99+
"sort": "Trier",
100+
"filter": "Filtrer",
101+
"sortOptions": "Options de tri",
102+
"sortBy": "Trier par",
103+
"sortColumns": "Trier les colonnes",
104+
"sortOrder": "Ordre de tri",
105+
"sortDirection": "Sens du tri",
106+
"ascending": "Croissant",
107+
"descending": "Décroissant"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/it.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "Cancella firma",
9494
"brushSize": "Dimensione pennello: ",
9595
"geoLocationError": "Errore nel recupero della geolocalizzazione",
96-
"geoLocationFetch": "Recupero geolocalizzazione in corso..."
96+
"geoLocationFetch": "Recupero geolocalizzazione in corso...",
97+
"sortTable": "Ordina tabella",
98+
"filterTable": "Filtra tabella",
99+
"sort": "Ordina",
100+
"filter": "Filtra",
101+
"sortOptions": "Opzioni di ordinamento",
102+
"sortBy": "Ordina per",
103+
"sortColumns": "Ordina colonne",
104+
"sortOrder": "Ordine di ordinamento",
105+
"sortDirection": "Direzione di ordinamento",
106+
"ascending": "Crescente",
107+
"descending": "Decrescente"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/ja.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "署名をクリア",
9494
"brushSize": "ブラシサイズ :",
9595
"geoLocationError": "位置情報の取得中にエラーが発生しました",
96-
"geoLocationFetch": "位置情報を取得しています..."
96+
"geoLocationFetch": "位置情報を取得しています...",
97+
"sortTable": "テーブルを並べ替え",
98+
"filterTable": "テーブルをフィルター",
99+
"sort": "並べ替え",
100+
"filter": "フィルター",
101+
"sortOptions": "並べ替えオプション",
102+
"sortBy": "並べ替え基準",
103+
"sortColumns": "列を並べ替え",
104+
"sortOrder": "並べ替え順序",
105+
"sortDirection": "並べ替え方向",
106+
"ascending": "昇順",
107+
"descending": "降順"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/ko-kr.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "서명 지우기",
9494
"brushSize": "브러시 크기: ",
9595
"geoLocationError": "지리적 위치 가져오기 중 오류 발생",
96-
"geoLocationFetch": "지리적 위치 가져오는 중..."
96+
"geoLocationFetch": "지리적 위치 가져오는 중...",
97+
"sortTable": "표 정렬",
98+
"filterTable": "표 필터",
99+
"sort": "정렬",
100+
"filter": "필터",
101+
"sortOptions": "정렬 옵션",
102+
"sortBy": "정렬 기준",
103+
"sortColumns": "열 정렬",
104+
"sortOrder": "정렬 순서",
105+
"sortDirection": "정렬 방향",
106+
"ascending": "오름차순",
107+
"descending": "내림차순"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/pt-br.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "Limpar assinatura",
9494
"brushSize": "Tamanho do pincel: ",
9595
"geoLocationError": "Erro ao obter geolocalização",
96-
"geoLocationFetch": "Obtendo geolocalização..."
96+
"geoLocationFetch": "Obtendo geolocalização...",
97+
"sortTable": "Ordenar tabela",
98+
"filterTable": "Filtrar tabela",
99+
"sort": "Ordenar",
100+
"filter": "Filtrar",
101+
"sortOptions": "Opções de ordenação",
102+
"sortBy": "Ordenar por",
103+
"sortColumns": "Ordenar colunas",
104+
"sortOrder": "Ordem de classificação",
105+
"sortDirection": "Direção de ordenação",
106+
"ascending": "Crescente",
107+
"descending": "Decrescente"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/zh-cn.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "清晰的签名",
9494
"brushSize": "画笔大小:",
9595
"geoLocationError": "获取地理位置时出错",
96-
"geoLocationFetch": "正在获取地理位置..."
96+
"geoLocationFetch": "正在获取地理位置...",
97+
"sortTable": "排序表格",
98+
"filterTable": "筛选表格",
99+
"sort": "排序",
100+
"filter": "筛选",
101+
"sortOptions": "排序选项",
102+
"sortBy": "排序方式",
103+
"sortColumns": "排序列",
104+
"sortOrder": "排序顺序",
105+
"sortDirection": "排序方向",
106+
"ascending": "升序",
107+
"descending": "降序"
97108
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/zh-tw.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,16 @@
9393
"clearSign": "清除簽名",
9494
"brushSize": "筆刷大小:",
9595
"geoLocationError": "擷取地理位置時出錯",
96-
"geoLocationFetch": "正在擷取地理位置…"
96+
"geoLocationFetch": "正在擷取地理位置…",
97+
"sortTable": "排序表格",
98+
"filterTable": "篩選表格",
99+
"sort": "排序",
100+
"filter": "篩選",
101+
"sortOptions": "排序選項",
102+
"sortBy": "排序方式",
103+
"sortColumns": "排序欄位",
104+
"sortOrder": "排序順序",
105+
"sortDirection": "排序方向",
106+
"ascending": "升序",
107+
"descending": "降序"
97108
}

0 commit comments

Comments
 (0)