@geotab/zenith 3.9.1 → 3.10.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/alertRaw/alertRaw.js +4 -4
- package/dist/alertRaw/components/alertAnimation.js +2 -2
- package/dist/banner/bannerMultipLine.js +4 -4
- package/dist/banner/bannerSingleLine.js +4 -4
- package/dist/bookmark/bookmark.d.ts +2 -1
- package/dist/bookmark/bookmark.js +4 -2
- package/dist/card/components/cardButton/cardButton.d.ts +2 -1
- package/dist/card/components/cardButton/cardButton.js +3 -3
- package/dist/commonStyles/rangeFieldMixin.less +9 -9
- package/dist/dataFeed/hooks/useVisibleColumns.js +1 -1
- package/dist/dataGrid/extensions/toBasicColumn.js +2 -1
- package/dist/dataGrid/listColumn.d.ts +1 -0
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +2 -2
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +5 -5
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +15 -6
- package/dist/dialog/dialogContent.js +4 -4
- package/dist/dropdownRaw/dropdownHelper.d.ts +4 -1
- package/dist/dropdownRaw/dropdownHelper.js +2 -1
- package/dist/dropdownRaw/dropdownRaw.js +2 -2
- package/dist/dropdownRaw/dropdownTrigger.d.ts +1 -1
- package/dist/dropdownRaw/dropdownTrigger.js +1 -1
- package/dist/fileUpload/components/uploadedFilesSection.js +3 -3
- package/dist/filters/components/filtersSavedChipComponent.js +3 -3
- package/dist/filters/components/filtersSearchItemData.js +3 -3
- package/dist/filters/components/filtersSidePanel.js +4 -4
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +4 -4
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +13 -13
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -1
- package/dist/icons/iconAlignLeft.js +3 -1
- package/dist/icons/iconAlignmentLeft.js +3 -1
- package/dist/icons/iconAlignmentRight.js +3 -1
- package/dist/icons/iconArrowBottomLeft.js +3 -1
- package/dist/icons/iconArrowBottomRight.js +3 -1
- package/dist/icons/iconArrowLeftPath.js +3 -1
- package/dist/icons/iconArrowRight.js +3 -1
- package/dist/icons/iconArrowRightCircle.js +3 -1
- package/dist/icons/iconArrowRightPath.js +3 -1
- package/dist/icons/iconArrowTopLeft.js +3 -1
- package/dist/icons/iconArrowTopRight.js +3 -1
- package/dist/icons/iconChevronDoubleRight.js +3 -1
- package/dist/icons/iconChevronRight.js +3 -1
- package/dist/icons/iconChevronRightSmall.js +3 -1
- package/dist/icons/iconCornerDownLeft.js +3 -1
- package/dist/icons/iconCornerDownRight.js +3 -1
- package/dist/icons/iconCornerLeftDown.js +3 -1
- package/dist/icons/iconCornerLeftUp.js +3 -1
- package/dist/icons/iconCornerRightDown.js +3 -1
- package/dist/icons/iconCornerRightUp.js +3 -1
- package/dist/icons/iconCornerUpLeft.js +3 -1
- package/dist/icons/iconCornerUpRight.js +3 -1
- package/dist/icons/iconLayoutSidebar.js +3 -1
- package/dist/icons/iconPinFilled.d.ts +3 -0
- package/dist/icons/iconPinFilled.js +12 -0
- package/dist/icons/iconSidebar.js +3 -1
- package/dist/icons/iconUndock.js +3 -1
- package/dist/index.css +539 -493
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -6
- package/dist/list/listItem/listItem.d.ts +3 -1
- package/dist/list/listItem/listItem.js +4 -2
- package/dist/mobileSheet/mobileSheet.js +4 -4
- package/dist/modal/modal.js +4 -4
- package/dist/nav/nav.d.ts +7 -1
- package/dist/nav/nav.js +11 -6
- package/dist/nav/navEmpty/navEmpty.d.ts +10 -0
- package/dist/nav/navEmpty/navEmpty.js +7 -0
- package/dist/notification/notification.js +4 -4
- package/dist/notification/pushNotification/pushNotification.js +1 -1
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +4 -4
- package/dist/pillExpandable/pillExpandable.js +4 -4
- package/dist/table/detailPanel/detailPanelHeader.js +4 -4
- package/dist/table/flexible/columnsList.d.ts +1 -2
- package/dist/table/flexible/columnsList.js +6 -5
- package/dist/table/flexible/columnsPopup.js +0 -3
- package/dist/table/flexible/useFlexibleColumns.d.ts +1 -0
- package/dist/table/flexible/useFlexibleColumns.js +4 -3
- package/dist/table/loading/useLoading.d.ts +1 -0
- package/dist/table/loading/useLoading.js +1 -1
- package/dist/table/nested/useNestedRows.d.ts +1 -0
- package/dist/table/selectable/useSelectableRows.js +23 -5
- package/dist/table/table.d.ts +1 -0
- package/dist/table/table.js +7 -2
- package/dist/tabs/tabItem/tabItem.d.ts +2 -1
- package/dist/tabs/tabItem/tabItem.js +4 -2
- package/dist/tabs/tabs.d.ts +1 -0
- package/dist/tabs/tabs.js +2 -1
- package/dist/toastRaw/components/toastAnimation.js +2 -2
- package/dist/toastRaw/toastRaw.js +4 -4
- package/dist/toggleButtonRaw/toggleButtonRaw.js +13 -13
- package/dist/tooltip/tooltip.js +4 -4
- package/dist/utils/localization/flipAlignment.d.ts +2 -0
- package/dist/utils/localization/flipAlignment.js +19 -0
- package/dist/utils/localization/makeLanguageWrapper.d.ts +8 -0
- package/dist/utils/localization/makeLanguageWrapper.js +11 -0
- package/dist/utils/localization/translations/cs.json +2 -2
- package/dist/utils/localization/translations/da-DK.json +2 -2
- package/dist/utils/localization/translations/es.json +2 -2
- package/dist/utils/localization/translations/fi-FI.json +1 -1
- package/dist/utils/localization/translations/hu-HU.json +2 -2
- package/dist/utils/localization/translations/ko-KR.json +2 -2
- package/dist/utils/localization/translations/ms.json +1 -1
- package/dist/utils/localization/translations/nb-NO.json +1 -1
- package/dist/utils/localization/translations/pt-BR.json +2 -2
- package/dist/utils/localization/translations/pt-PT.json +3 -3
- package/dist/utils/localization/translations/ro-RO.json +5 -5
- package/dist/utils/localization/translations/sk-SK.json +1 -1
- package/dist/utils/localization/translations/zh-Hans.json +1 -1
- package/dist/utils/localization/useIsRTL.d.ts +1 -0
- package/dist/utils/localization/useIsRTL.js +6 -0
- package/dist/utils/localization/useRTLAlignment.d.ts +2 -0
- package/dist/utils/localization/useRTLAlignment.js +10 -0
- package/esm/alertRaw/alertRaw.js +4 -4
- package/esm/alertRaw/components/alertAnimation.js +2 -2
- package/esm/banner/bannerMultipLine.js +4 -4
- package/esm/banner/bannerSingleLine.js +4 -4
- package/esm/bookmark/bookmark.d.ts +2 -1
- package/esm/bookmark/bookmark.js +4 -2
- package/esm/card/components/cardButton/cardButton.d.ts +2 -1
- package/esm/card/components/cardButton/cardButton.js +3 -3
- package/esm/dataFeed/hooks/useVisibleColumns.js +1 -1
- package/esm/dataGrid/extensions/toBasicColumn.js +2 -1
- package/esm/dataGrid/listColumn.d.ts +1 -0
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +2 -2
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +5 -5
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +15 -6
- package/esm/dialog/dialogContent.js +4 -4
- package/esm/dropdownRaw/dropdownHelper.d.ts +4 -1
- package/esm/dropdownRaw/dropdownHelper.js +2 -1
- package/esm/dropdownRaw/dropdownRaw.js +2 -2
- package/esm/dropdownRaw/dropdownTrigger.d.ts +1 -1
- package/esm/dropdownRaw/dropdownTrigger.js +1 -1
- package/esm/fileUpload/components/uploadedFilesSection.js +3 -3
- package/esm/filters/components/filtersSavedChipComponent.js +3 -3
- package/esm/filters/components/filtersSearchItemData.js +3 -3
- package/esm/filters/components/filtersSidePanel.js +4 -4
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +4 -4
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +13 -13
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -1
- package/esm/icons/iconAlignLeft.js +3 -1
- package/esm/icons/iconAlignmentLeft.js +3 -1
- package/esm/icons/iconAlignmentRight.js +3 -1
- package/esm/icons/iconArrowBottomLeft.js +3 -1
- package/esm/icons/iconArrowBottomRight.js +3 -1
- package/esm/icons/iconArrowLeftPath.js +3 -1
- package/esm/icons/iconArrowRight.js +3 -1
- package/esm/icons/iconArrowRightCircle.js +3 -1
- package/esm/icons/iconArrowRightPath.js +3 -1
- package/esm/icons/iconArrowTopLeft.js +3 -1
- package/esm/icons/iconArrowTopRight.js +3 -1
- package/esm/icons/iconChevronDoubleRight.js +3 -1
- package/esm/icons/iconChevronRight.js +3 -1
- package/esm/icons/iconChevronRightSmall.js +3 -1
- package/esm/icons/iconCornerDownLeft.js +3 -1
- package/esm/icons/iconCornerDownRight.js +3 -1
- package/esm/icons/iconCornerLeftDown.js +3 -1
- package/esm/icons/iconCornerLeftUp.js +3 -1
- package/esm/icons/iconCornerRightDown.js +3 -1
- package/esm/icons/iconCornerRightUp.js +3 -1
- package/esm/icons/iconCornerUpLeft.js +3 -1
- package/esm/icons/iconCornerUpRight.js +3 -1
- package/esm/icons/iconLayoutSidebar.js +3 -1
- package/esm/icons/iconPinFilled.d.ts +3 -0
- package/esm/icons/iconPinFilled.js +8 -0
- package/esm/icons/iconSidebar.js +3 -1
- package/esm/icons/iconUndock.js +3 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/list/listItem/listItem.d.ts +3 -1
- package/esm/list/listItem/listItem.js +4 -2
- package/esm/mobileSheet/mobileSheet.js +4 -4
- package/esm/modal/modal.js +4 -4
- package/esm/nav/nav.d.ts +7 -1
- package/esm/nav/nav.js +11 -6
- package/esm/nav/navEmpty/navEmpty.d.ts +10 -0
- package/esm/nav/navEmpty/navEmpty.js +3 -0
- package/esm/notification/notification.js +4 -4
- package/esm/notification/pushNotification/pushNotification.js +1 -1
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +4 -4
- package/esm/pillExpandable/pillExpandable.js +4 -4
- package/esm/table/detailPanel/detailPanelHeader.js +4 -4
- package/esm/table/flexible/columnsList.d.ts +1 -2
- package/esm/table/flexible/columnsList.js +6 -5
- package/esm/table/flexible/columnsPopup.js +0 -3
- package/esm/table/flexible/useFlexibleColumns.d.ts +1 -0
- package/esm/table/flexible/useFlexibleColumns.js +4 -3
- package/esm/table/loading/useLoading.d.ts +1 -0
- package/esm/table/loading/useLoading.js +1 -1
- package/esm/table/nested/useNestedRows.d.ts +1 -0
- package/esm/table/selectable/useSelectableRows.js +23 -5
- package/esm/table/table.d.ts +1 -0
- package/esm/table/table.js +7 -2
- package/esm/tabs/tabItem/tabItem.d.ts +2 -1
- package/esm/tabs/tabItem/tabItem.js +4 -2
- package/esm/tabs/tabs.d.ts +1 -0
- package/esm/tabs/tabs.js +2 -1
- package/esm/toastRaw/components/toastAnimation.js +2 -2
- package/esm/toastRaw/toastRaw.js +4 -4
- package/esm/toggleButtonRaw/toggleButtonRaw.js +13 -13
- package/esm/tooltip/tooltip.js +4 -4
- package/esm/utils/localization/flipAlignment.d.ts +2 -0
- package/esm/utils/localization/flipAlignment.js +15 -0
- package/esm/utils/localization/makeLanguageWrapper.d.ts +8 -0
- package/esm/utils/localization/makeLanguageWrapper.js +7 -0
- package/esm/utils/localization/translations/cs.json +2 -2
- package/esm/utils/localization/translations/da-DK.json +2 -2
- package/esm/utils/localization/translations/es.json +2 -2
- package/esm/utils/localization/translations/fi-FI.json +1 -1
- package/esm/utils/localization/translations/hu-HU.json +2 -2
- package/esm/utils/localization/translations/ko-KR.json +2 -2
- package/esm/utils/localization/translations/ms.json +1 -1
- package/esm/utils/localization/translations/nb-NO.json +1 -1
- package/esm/utils/localization/translations/pt-BR.json +2 -2
- package/esm/utils/localization/translations/pt-PT.json +3 -3
- package/esm/utils/localization/translations/ro-RO.json +5 -5
- package/esm/utils/localization/translations/sk-SK.json +1 -1
- package/esm/utils/localization/translations/zh-Hans.json +1 -1
- package/esm/utils/localization/useIsRTL.d.ts +1 -0
- package/esm/utils/localization/useIsRTL.js +2 -0
- package/esm/utils/localization/useRTLAlignment.d.ts +2 -0
- package/esm/utils/localization/useRTLAlignment.js +6 -0
- package/package.json +3 -1
|
@@ -27,24 +27,24 @@ injectString("es", "View all", "Ver todo");
|
|
|
27
27
|
injectString("fi-FI", "View all", "N\xE4yt\xE4 kaikki");
|
|
28
28
|
injectString("fr", "View all", "Afficher tout");
|
|
29
29
|
injectString("fr-FR", "View all", "Tout afficher");
|
|
30
|
-
injectString("hu-HU", "View all", "
|
|
30
|
+
injectString("hu-HU", "View all", "\xD6sszes megtekint\xE9se");
|
|
31
31
|
injectString("id", "View all", "Lihat semua");
|
|
32
32
|
injectString("it", "View all", "Visualizzare tutto");
|
|
33
33
|
injectString("ja", "View all", "\u3059\u3079\u3066\u8868\u793A");
|
|
34
34
|
injectString("ko-KR", "View all", "\uC804\uCCB4 \uBCF4\uAE30");
|
|
35
35
|
injectString("ms", "View all", "Lihat semua");
|
|
36
|
-
injectString("nb-NO", "View all", "
|
|
36
|
+
injectString("nb-NO", "View all", "Vis alle");
|
|
37
37
|
injectString("nl", "View all", "Alles weergeven");
|
|
38
38
|
injectString("pl", "View all", "Wy\u015Bwietl wszystkie");
|
|
39
39
|
injectString("pt-BR", "View all", "Visualizar tudo");
|
|
40
|
-
injectString("pt-PT", "View all", "
|
|
40
|
+
injectString("pt-PT", "View all", "Ver tudo");
|
|
41
41
|
injectString("sk-SK", "View all", "Zobrazi\u0165 v\u0161etko");
|
|
42
42
|
injectString("sv", "View all", "Visa alla");
|
|
43
43
|
injectString("th", "View all", "\u0E14\u0E39\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14");
|
|
44
44
|
injectString("tr", "View all", "T\xFCm\xFCn\xFC g\xF6r\xFCnt\xFCle");
|
|
45
45
|
injectString("zh-Hans", "View all", "\u67E5\u770B\u5168\u90E8");
|
|
46
46
|
injectString("zh-TW", "View all", "\u6AA2\u8996\u5168\u90E8");
|
|
47
|
-
injectString("ro-RO", "View all", "
|
|
47
|
+
injectString("ro-RO", "View all", "Vezi tot");
|
|
48
48
|
injectString("ar-SA", "View all", "\u0639\u0631\u0636 \u0627\u0644\u0643\u0644");
|
|
49
49
|
injectString("cs", "Expand", "Rozbalit");
|
|
50
50
|
injectString("da-DK", "Expand", "Udvid");
|
|
@@ -37,10 +37,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
37
37
|
injectString("de", "Close", "Schlie\xDFen");
|
|
38
38
|
injectString("en", "Close", "Close");
|
|
39
39
|
injectString("es", "Close", "Cerrar");
|
|
40
|
-
injectString("fi-FI", "Close", "
|
|
40
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
41
41
|
injectString("fr", "Close", "Fermer");
|
|
42
42
|
injectString("fr-FR", "Close", "Fermer");
|
|
43
|
-
injectString("hu-HU", "Close", "
|
|
43
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
44
44
|
injectString("id", "Close", "Tutup");
|
|
45
45
|
injectString("it", "Close", "Chiudere");
|
|
46
46
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -51,13 +51,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
51
51
|
injectString("pl", "Close", "Zamknij");
|
|
52
52
|
injectString("pt-BR", "Close", "Fechar");
|
|
53
53
|
injectString("pt-PT", "Close", "Fechar");
|
|
54
|
-
injectString("sk-SK", "Close", "
|
|
54
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
55
55
|
injectString("sv", "Close", "St\xE4ng");
|
|
56
56
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
57
57
|
injectString("tr", "Close", "Kapat");
|
|
58
58
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
59
59
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
60
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
60
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
61
61
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
62
62
|
export const DetailPanelHeader = ({
|
|
63
63
|
id,
|
|
@@ -16,10 +16,9 @@ export interface IColumnsGroup {
|
|
|
16
16
|
interface IColumnSettingsList<T extends IRowEntity<N>, N extends IEntityWithId> extends IZenComponentProps {
|
|
17
17
|
columns: IListColumn<T, N>[];
|
|
18
18
|
settings: Map<string, boolean>;
|
|
19
|
-
firstColumn: string;
|
|
20
19
|
onChange?: (newState: Map<string, boolean>) => void;
|
|
21
20
|
sortGroups?: (a: string, b: string) => number;
|
|
22
21
|
sortColumns?: (a: string, b: string) => number;
|
|
23
22
|
}
|
|
24
|
-
export declare function ColumnSettingsList<T extends IRowEntity<N>, N extends IEntityWithId>({ columns, settings,
|
|
23
|
+
export declare function ColumnSettingsList<T extends IRowEntity<N>, N extends IEntityWithId>({ columns, settings, onChange, sortGroups, sortColumns }: IColumnSettingsList<T, N>): import("react/jsx-runtime").JSX.Element[];
|
|
25
24
|
export {};
|
|
@@ -36,7 +36,7 @@ const SubColumnsList = ({
|
|
|
36
36
|
title,
|
|
37
37
|
columns,
|
|
38
38
|
settings,
|
|
39
|
-
|
|
39
|
+
lastVisibleColumnId,
|
|
40
40
|
onChange,
|
|
41
41
|
sortColumns
|
|
42
42
|
}) => {
|
|
@@ -53,10 +53,10 @@ const SubColumnsList = ({
|
|
|
53
53
|
const items = useMemo(() => columns.sort(sortColumnsInt).map(c => ({
|
|
54
54
|
id: c.id,
|
|
55
55
|
title: c.title,
|
|
56
|
-
disabled: c.id ===
|
|
56
|
+
disabled: !!c.alwaysVisible || c.id === lastVisibleColumnId,
|
|
57
57
|
showCheckbox: true,
|
|
58
58
|
children: c.title
|
|
59
|
-
})), [columns,
|
|
59
|
+
})), [columns, sortColumnsInt, lastVisibleColumnId]);
|
|
60
60
|
const state = columns.reduce((res, c) => {
|
|
61
61
|
res.set(c.id, settings.get(c.id) !== false ? CheckboxState.On : CheckboxState.Off);
|
|
62
62
|
return res;
|
|
@@ -92,7 +92,6 @@ const SubColumnsList = ({
|
|
|
92
92
|
export function ColumnSettingsList({
|
|
93
93
|
columns,
|
|
94
94
|
settings,
|
|
95
|
-
firstColumn,
|
|
96
95
|
onChange,
|
|
97
96
|
sortGroups,
|
|
98
97
|
sortColumns
|
|
@@ -104,11 +103,13 @@ export function ColumnSettingsList({
|
|
|
104
103
|
}
|
|
105
104
|
return 0;
|
|
106
105
|
}, [sortGroups]);
|
|
106
|
+
const visibleColumns = columns.filter(c => settings.get(c.id) !== false);
|
|
107
|
+
const lastVisibleColumnId = visibleColumns.length === 1 ? visibleColumns[0].id : undefined;
|
|
107
108
|
return Array.from(groupped.entries()).sort(sortGroupsInt).map(([title, cs]) => _jsx(SubColumnsList, {
|
|
108
109
|
title: title,
|
|
109
110
|
columns: cs,
|
|
110
111
|
settings: settings,
|
|
111
|
-
|
|
112
|
+
lastVisibleColumnId: lastVisibleColumnId,
|
|
112
113
|
onChange: onChange,
|
|
113
114
|
sortColumns: sortColumns
|
|
114
115
|
}, cs.map(c => c.id).join("-")));
|
|
@@ -48,13 +48,10 @@ export const ColumnsPopup = ({
|
|
|
48
48
|
translate
|
|
49
49
|
} = useLanguage();
|
|
50
50
|
const listOfColumns = useMemo(() => {
|
|
51
|
-
var _a;
|
|
52
|
-
const firstColumn = ((_a = columns[0]) === null || _a === void 0 ? void 0 : _a.id) || "";
|
|
53
51
|
const columnSettingsMap = new Map(columnSettings.map(s => [s.name, s.visible]));
|
|
54
52
|
return _jsx(ColumnSettingsList, {
|
|
55
53
|
columns: columns.filter(c => c.title),
|
|
56
54
|
settings: columnSettingsMap,
|
|
57
|
-
firstColumn: firstColumn,
|
|
58
55
|
onChange: newSettings => {
|
|
59
56
|
const settings = columnSettings.map(s => {
|
|
60
57
|
const visible = newSettings.get(s.name) !== false;
|
|
@@ -17,4 +17,5 @@ export declare const getColumnSettings: (pageName: string, defaultValue?: IColum
|
|
|
17
17
|
export declare const useFlexibleColumns: <T extends IRowEntity<N>, N extends IEntityWithId>(columns: IListColumn<T, N>[], flexible: IFlexibleColumnsOptions | undefined, gridRef: RefObject<HTMLElement | null>, columnsPopupRef: RefObject<HTMLElement | null> | undefined, isFeed: boolean) => {
|
|
18
18
|
flexibleColumns: IListColumn<T, N>[];
|
|
19
19
|
columnsPopup: import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
allColumnsHidden: boolean;
|
|
20
21
|
};
|
|
@@ -112,11 +112,12 @@ export const useFlexibleColumns = (columns, flexible, gridRef, columnsPopupRef,
|
|
|
112
112
|
if (flexible.columnsPopup === false) {
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
const configurableColumns = columns.filter(c => c.title && !(c.columnComponent instanceof ActionsColumn));
|
|
116
|
+
if (configurableColumns.length === 0 || configurableColumns.every(c => c.alwaysVisible)) {
|
|
116
117
|
return null;
|
|
117
118
|
}
|
|
118
119
|
return (_jsx(ColumnsPopup, { columns: columns.filter(c => !(c.columnComponent instanceof ActionsColumn)), columnSettings: columnSettings, triggerRef: columnsPopupRef, sortGroups: flexible.sortGroups, sortColumns: flexible.sortColumns, onReset: onResetListener, onChange: onChangeListener }));
|
|
119
|
-
}, [columnSettings, columns, columnsPopupRef, flexible,
|
|
120
|
+
}, [columnSettings, columns, columnsPopupRef, flexible, onChangeListener, onResetListener]);
|
|
120
121
|
const onReorderListener = useCallback(async ([from, to]) => {
|
|
121
122
|
if (from === to) {
|
|
122
123
|
return;
|
|
@@ -173,5 +174,5 @@ export const useFlexibleColumns = (columns, flexible, gridRef, columnsPopupRef,
|
|
|
173
174
|
return;
|
|
174
175
|
};
|
|
175
176
|
}, [onResizeColumn, onReorderListener, gridRef, flexibleColumns, isFeed, isDraggable]);
|
|
176
|
-
return { flexibleColumns, columnsPopup };
|
|
177
|
+
return { flexibleColumns, columnsPopup, allColumnsHidden: !!flexible && flexibleColumns.length === 0 };
|
|
177
178
|
};
|
|
@@ -31,6 +31,7 @@ export declare const useLoading: <T extends IRowEntity<N>, N extends IEntityWith
|
|
|
31
31
|
wrappers?: import("../table").IListColumnWrapper<T, N>[] | undefined;
|
|
32
32
|
sortable?: boolean | undefined;
|
|
33
33
|
draggable?: boolean | undefined;
|
|
34
|
+
alwaysVisible?: boolean | undefined;
|
|
34
35
|
colspan?: number | ((entity: T | N) => number | undefined) | undefined;
|
|
35
36
|
group?: string | undefined;
|
|
36
37
|
visible?: boolean | undefined;
|
|
@@ -6,7 +6,7 @@ import { Skeleton } from "../../skeleton/skeleton";
|
|
|
6
6
|
export const DEFAULT_LOADING_ROWS = 50;
|
|
7
7
|
const LoadingCell = ({ width, className }) => _jsx(Skeleton, { width: width, className: className });
|
|
8
8
|
export const useLoading = (columns, entities, isLoading, loading) => {
|
|
9
|
-
const sampleEntity = useMemo(() => columns.map(column => ({ [column.id]: column.title })).reduce((acc, el) => (Object.assign(Object.assign({}, acc), el))), [columns]);
|
|
9
|
+
const sampleEntity = useMemo(() => columns.map(column => ({ [column.id]: column.title })).reduce((acc, el) => (Object.assign(Object.assign({}, acc), el)), {}), [columns]);
|
|
10
10
|
// Cache skeleton entities with stable IDs - only regenerate when rows count or columns change
|
|
11
11
|
// This prevents skeletons from flickering when unrelated Table props change
|
|
12
12
|
const skeletonEntities = useMemo(() => new Array((loading === null || loading === void 0 ? void 0 : loading.rows) || DEFAULT_LOADING_ROWS).fill(undefined).map(() => (Object.assign(Object.assign({}, sampleEntity), { isLoading: true, id: generateId() }))), [loading === null || loading === void 0 ? void 0 : loading.rows, sampleEntity]);
|
|
@@ -12,6 +12,7 @@ export declare const useNestedRows: <T extends IRowEntity<N>, N extends IEntityW
|
|
|
12
12
|
meta?: import("../../dataGrid/listColumn").IListColumnMeta<T, N> | undefined;
|
|
13
13
|
columnComponent?: import("../../dataGrid/listColumn").IColumnComponent<T, N> | undefined;
|
|
14
14
|
wrappers?: import("../../dataGrid/listColumn").IListColumnWrapper<T, N>[] | undefined;
|
|
15
|
+
alwaysVisible?: boolean | undefined;
|
|
15
16
|
colspan?: number | ((entity: T | N) => number | undefined) | undefined;
|
|
16
17
|
}[];
|
|
17
18
|
nestedFeedWrapper: (primaryData: ReactNode, secondaryData: ReactNode, entity: T | N, isNested: boolean) => [ReactNode, ReactNode];
|
|
@@ -140,6 +140,7 @@ export const useSelectableRows = (columns, entities, isMobile, selectMode, setSe
|
|
|
140
140
|
setSelectMode(newValue.all || newValue.selected.length > 0);
|
|
141
141
|
}, [checkboxDisabled, checkboxVisible, entities, selectable, setSelectMode, setState, getNewSelection]);
|
|
142
142
|
const onChangeSelectionState = useCallback(newState => {
|
|
143
|
+
var _a, _b;
|
|
143
144
|
if (newState === SelectionState.All) {
|
|
144
145
|
(selectable === null || selectable === void 0 ? void 0 : selectable.onSelect) && selectable.onSelect({
|
|
145
146
|
selected: [],
|
|
@@ -158,8 +159,10 @@ export const useSelectableRows = (columns, entities, isMobile, selectMode, setSe
|
|
|
158
159
|
}
|
|
159
160
|
const newSelections = getCurrentPageSelection(entities, selectable);
|
|
160
161
|
setState(newState);
|
|
162
|
+
const previousSelections = (_b = (_a = selectable === null || selectable === void 0 ? void 0 : selectable.selection) === null || _a === void 0 ? void 0 : _a.selected) !== null && _b !== void 0 ? _b : [];
|
|
163
|
+
const mergedSelections = new Set([...previousSelections, ...newSelections]);
|
|
161
164
|
const newValue = {
|
|
162
|
-
selected: [...
|
|
165
|
+
selected: [...mergedSelections],
|
|
163
166
|
all: false
|
|
164
167
|
};
|
|
165
168
|
selectable === null || selectable === void 0 ? void 0 : selectable.onSelect(newValue);
|
|
@@ -219,9 +222,24 @@ export const useSelectableRows = (columns, entities, isMobile, selectMode, setSe
|
|
|
219
222
|
checked: state === SelectionState.CurrentPage || state === SelectionState.All,
|
|
220
223
|
indeterminate: state === SelectionState.Partial,
|
|
221
224
|
onChange: newValue => {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
var _a, _b;
|
|
226
|
+
if (newValue) {
|
|
227
|
+
const newState = selectable.turnOffSelectAll ? SelectionState.CurrentPage : SelectionState.All;
|
|
228
|
+
setState(newState);
|
|
229
|
+
onChangeSelectionState(newState);
|
|
230
|
+
} else {
|
|
231
|
+
// Intentionally different from onSelect(None) ("Deselect all" menu item, which clears everything).
|
|
232
|
+
// Unchecking the header checkbox only removes the current page from the selection, preserving other pages.
|
|
233
|
+
const currentPageIds = getCurrentPageSelection(entities, selectable);
|
|
234
|
+
const remaining = ((_b = (_a = selectable.selection) === null || _a === void 0 ? void 0 : _a.selected) !== null && _b !== void 0 ? _b : []).filter(id => !currentPageIds.has(id));
|
|
235
|
+
const newState = remaining.length > 0 ? SelectionState.Partial : SelectionState.None;
|
|
236
|
+
setState(newState);
|
|
237
|
+
selectable.onSelect({
|
|
238
|
+
selected: remaining,
|
|
239
|
+
all: false
|
|
240
|
+
});
|
|
241
|
+
setSelectMode(remaining.length > 0);
|
|
242
|
+
}
|
|
225
243
|
},
|
|
226
244
|
calculateSelectionState: () => selectableState,
|
|
227
245
|
checkboxInHeader: selectable.checkboxInHeader !== undefined ? selectable.checkboxInHeader : selectable.selectionLimit !== undefined ? false : undefined,
|
|
@@ -235,7 +253,7 @@ export const useSelectableRows = (columns, entities, isMobile, selectMode, setSe
|
|
|
235
253
|
return cell;
|
|
236
254
|
}
|
|
237
255
|
};
|
|
238
|
-
}, [checkboxDisabled, checkboxTitle, checkboxVisible, headerTitle, onChangeSelectionState, onSelectListener, selectable, selectableState, state, isMobile, checkboxPlaceholder, isEntityChecked]);
|
|
256
|
+
}, [checkboxDisabled, checkboxTitle, checkboxVisible, headerTitle, onChangeSelectionState, onSelectListener, selectable, selectableState, state, isMobile, checkboxPlaceholder, isEntityChecked, entities, setSelectMode]);
|
|
239
257
|
const selectableFeedWrapper = useCallback((primaryData, secondaryData, entity, isNested) => {
|
|
240
258
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
241
259
|
if (!entity) {
|
package/esm/table/table.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface IListColumn<T extends IRowEntity<N>, N extends IEntityWithId =
|
|
|
41
41
|
wrappers?: IListColumnWrapper<T, N>[];
|
|
42
42
|
sortable?: boolean;
|
|
43
43
|
draggable?: boolean;
|
|
44
|
+
alwaysVisible?: boolean;
|
|
44
45
|
colspan?: undefined | number | ((entity: T | N) => number | undefined);
|
|
45
46
|
group?: string;
|
|
46
47
|
visible?: boolean;
|
package/esm/table/table.js
CHANGED
|
@@ -8,6 +8,7 @@ import { useSortableColumns } from "./sortable/useSortableColumns";
|
|
|
8
8
|
import { useFlexibleColumns } from "./flexible/useFlexibleColumns";
|
|
9
9
|
import { useActions } from "./actions/useActions";
|
|
10
10
|
import { useLoading } from "./loading/useLoading";
|
|
11
|
+
import { EmptySearchList } from "../dataGrid/emptySearchList/emptySearchList";
|
|
11
12
|
import { EntitiesListActions } from "../dataGrid/entitiesListActions/entitiesListActions";
|
|
12
13
|
import { DataFeedSelectPanel } from "../dataFeed/dataFeedSelectPanel/dataFeedSelectPanel";
|
|
13
14
|
import { ColumnsListButton } from "../dataGrid/entitiesListActions/actions/columnsListButton";
|
|
@@ -143,7 +144,8 @@ const TableInner = ({
|
|
|
143
144
|
} = useSortableColumns(selectableColumns, sortable, isMobile);
|
|
144
145
|
const {
|
|
145
146
|
flexibleColumns,
|
|
146
|
-
columnsPopup
|
|
147
|
+
columnsPopup,
|
|
148
|
+
allColumnsHidden
|
|
147
149
|
} = useFlexibleColumns(sortableColumns, flexible, gridRef, columnsPopupRef, isMobile);
|
|
148
150
|
const {
|
|
149
151
|
columnsWithActions,
|
|
@@ -250,7 +252,10 @@ const TableInner = ({
|
|
|
250
252
|
className: "zen-table__content",
|
|
251
253
|
children: [_jsx("div", {
|
|
252
254
|
className: "zen-table__table",
|
|
253
|
-
children:
|
|
255
|
+
children: allColumnsHidden ? _jsx("div", {
|
|
256
|
+
className: "zen-data-grid__empty",
|
|
257
|
+
children: _jsx(EmptySearchList, {})
|
|
258
|
+
}) : isMobile ? _jsxs(DataFeed, {
|
|
254
259
|
columns: loadingColumns,
|
|
255
260
|
feedWrappers: [nestedFeedWrapper, selectableFeedWrapper],
|
|
256
261
|
entities: loadingEntities,
|
|
@@ -9,5 +9,6 @@ export interface ITabItem extends IZenComponentProps {
|
|
|
9
9
|
active: boolean;
|
|
10
10
|
ariaControl?: string;
|
|
11
11
|
handleButtonClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
12
|
+
dataAnalyticsId?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const TabItem: ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity }: ITabItem) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const TabItem: ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity, dataAnalyticsId }: ITabItem) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,8 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { classNames } from "../../commonHelpers/classNames/classNames";
|
|
3
3
|
import { useDriveClassName } from "../../utils/theme/useDriveClassName";
|
|
4
4
|
import { useMobileClassName } from "../../utils/theme/useMobileClassName";
|
|
5
|
-
|
|
5
|
+
import { toKebabCase } from "../../utils/toKebabCase";
|
|
6
|
+
export const TabItem = ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity, dataAnalyticsId }) => {
|
|
6
7
|
const driveClassname = useDriveClassName("zen-tab-item");
|
|
7
8
|
const mobileClassname = useMobileClassName("zen-tab-item");
|
|
8
|
-
|
|
9
|
+
const analyticsId = dataAnalyticsId || `tab-${toKebabCase(tabName)}`;
|
|
10
|
+
return (_jsx("button", { id: tabId, type: "button", className: classNames(["zen-tab-item", driveClassname || mobileClassname || "", active ? "zen-tab-item--active" : ""]), role: "tab", "aria-controls": ariaControl, "aria-selected": active ? "true" : "false", "aria-label": tabName, title: tabName, onClick: handleButtonClick, "data-analytics-id": analyticsId, children: _jsxs("div", { className: "zen-tab-item__content", children: [icon && (_jsx("span", { className: classNames(["zen-tab-item__content-icon", active ? "zen-tab-item__content-icon--active" : ""]), children: icon })), _jsx("span", { className: "zen-tab-item__content-text", children: tabName }), quantity && _jsx("div", { className: "zen-tab-item__content-quantity", children: quantity })] }) }));
|
|
9
11
|
};
|
package/esm/tabs/tabs.d.ts
CHANGED
package/esm/tabs/tabs.js
CHANGED
|
@@ -235,7 +235,8 @@ export const Tabs = ({
|
|
|
235
235
|
quantity: tab.quantity,
|
|
236
236
|
active: activeTabId === tab.id,
|
|
237
237
|
ariaControl: `panel-${tab.id}`,
|
|
238
|
-
handleButtonClick: handleButtonClick
|
|
238
|
+
handleButtonClick: handleButtonClick,
|
|
239
|
+
dataAnalyticsId: tab.dataAnalyticsId
|
|
239
240
|
}, tab.id))
|
|
240
241
|
})
|
|
241
242
|
}), scrollButtonType === "end" || scrollButtonType === "both" ? _jsxs(_Fragment, {
|
|
@@ -30,7 +30,7 @@ export const ToastAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
if (animation === "left-right") {
|
|
33
|
-
ref.current.animate([{
|
|
33
|
+
ref.current.animate([{ insetInlineStart: "0%" }, { insetInlineStart: "120%" }], {
|
|
34
34
|
duration: 300,
|
|
35
35
|
iterations: 1,
|
|
36
36
|
delay: 0,
|
|
@@ -40,7 +40,7 @@ export const ToastAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
40
40
|
};
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
ref.current.animate([{
|
|
43
|
+
ref.current.animate([{ insetInlineStart: "120%" }, { insetInlineStart: "0%" }], {
|
|
44
44
|
duration: 300,
|
|
45
45
|
iterations: 1,
|
|
46
46
|
delay: 0
|
package/esm/toastRaw/toastRaw.js
CHANGED
|
@@ -18,10 +18,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
18
18
|
injectString("de", "Close", "Schlie\xDFen");
|
|
19
19
|
injectString("en", "Close", "Close");
|
|
20
20
|
injectString("es", "Close", "Cerrar");
|
|
21
|
-
injectString("fi-FI", "Close", "
|
|
21
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
22
22
|
injectString("fr", "Close", "Fermer");
|
|
23
23
|
injectString("fr-FR", "Close", "Fermer");
|
|
24
|
-
injectString("hu-HU", "Close", "
|
|
24
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
25
25
|
injectString("id", "Close", "Tutup");
|
|
26
26
|
injectString("it", "Close", "Chiudere");
|
|
27
27
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -32,13 +32,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
32
32
|
injectString("pl", "Close", "Zamknij");
|
|
33
33
|
injectString("pt-BR", "Close", "Fechar");
|
|
34
34
|
injectString("pt-PT", "Close", "Fechar");
|
|
35
|
-
injectString("sk-SK", "Close", "
|
|
35
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
36
36
|
injectString("sv", "Close", "St\xE4ng");
|
|
37
37
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
38
38
|
injectString("tr", "Close", "Kapat");
|
|
39
39
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
40
40
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
41
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
41
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
42
42
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
43
43
|
const typedIcons = {
|
|
44
44
|
success: IconCheckRadio,
|
|
@@ -8,11 +8,11 @@ import { TriStateCheckbox } from "../triStateCheckbox/triStateCheckbox";
|
|
|
8
8
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
9
9
|
import { ReviewTextControl } from "../formGroup/components/reviewTextControl";
|
|
10
10
|
import { useLanguage } from "../utils/localization/useLanguage";
|
|
11
|
-
injectString("cs", "On", "
|
|
12
|
-
injectString("da-DK", "On", "
|
|
11
|
+
injectString("cs", "On", "Zapnuto");
|
|
12
|
+
injectString("da-DK", "On", "T\xE6ndt");
|
|
13
13
|
injectString("de", "On", "Ein");
|
|
14
14
|
injectString("en", "On", "On");
|
|
15
|
-
injectString("es", "On", "
|
|
15
|
+
injectString("es", "On", "Activado");
|
|
16
16
|
injectString("fi-FI", "On", "P\xE4\xE4lle");
|
|
17
17
|
injectString("fr", "On", "Activ\xE9");
|
|
18
18
|
injectString("fr-FR", "On", "On");
|
|
@@ -20,26 +20,26 @@ injectString("hu-HU", "On", "Bekapcsolva");
|
|
|
20
20
|
injectString("id", "On", "Aktif");
|
|
21
21
|
injectString("it", "On", "On");
|
|
22
22
|
injectString("ja", "On", "\u30AA\u30F3");
|
|
23
|
-
injectString("ko-KR", "On", "
|
|
23
|
+
injectString("ko-KR", "On", "\uCF1C\uC9D0");
|
|
24
24
|
injectString("ms", "On", "Hidup");
|
|
25
25
|
injectString("nb-NO", "On", "P\xE5");
|
|
26
26
|
injectString("nl", "On", "Aan");
|
|
27
27
|
injectString("pl", "On", "W\u0142.");
|
|
28
|
-
injectString("pt-BR", "On", "
|
|
29
|
-
injectString("pt-PT", "On", "
|
|
28
|
+
injectString("pt-BR", "On", "Ativar");
|
|
29
|
+
injectString("pt-PT", "On", "Ligado");
|
|
30
30
|
injectString("sk-SK", "On", "Zapnut\xE9");
|
|
31
31
|
injectString("sv", "On", "P\xE5");
|
|
32
32
|
injectString("th", "On", "\u0E40\u0E1B\u0E34\u0E14");
|
|
33
33
|
injectString("tr", "On", "A\xE7\u0131k");
|
|
34
34
|
injectString("zh-Hans", "On", "\u5F00\u542F");
|
|
35
35
|
injectString("zh-TW", "On", "\u958B\u555F");
|
|
36
|
-
injectString("ro-RO", "On", "
|
|
36
|
+
injectString("ro-RO", "On", "Pe");
|
|
37
37
|
injectString("ar-SA", "On", "\u062A\u0634\u063A\u064A\u0644");
|
|
38
|
-
injectString("cs", "Off", "
|
|
38
|
+
injectString("cs", "Off", "Vypnuto");
|
|
39
39
|
injectString("da-DK", "Off", "Slukket");
|
|
40
40
|
injectString("de", "Off", "Aus");
|
|
41
41
|
injectString("en", "Off", "Off");
|
|
42
|
-
injectString("es", "Off", "
|
|
42
|
+
injectString("es", "Off", "Deshabilitado");
|
|
43
43
|
injectString("fi-FI", "Off", "Pois");
|
|
44
44
|
injectString("fr", "Off", "D\xE9sactiv\xE9");
|
|
45
45
|
injectString("fr-FR", "Off", "Off");
|
|
@@ -47,20 +47,20 @@ injectString("hu-HU", "Off", "Kikapcsolva");
|
|
|
47
47
|
injectString("id", "Off", "Nonaktif");
|
|
48
48
|
injectString("it", "Off", "Off");
|
|
49
49
|
injectString("ja", "Off", "\u30AA\u30D5");
|
|
50
|
-
injectString("ko-KR", "Off", "\
|
|
50
|
+
injectString("ko-KR", "Off", "\uAEBC\uC9D0");
|
|
51
51
|
injectString("ms", "Off", "Mati");
|
|
52
52
|
injectString("nb-NO", "Off", "Av");
|
|
53
53
|
injectString("nl", "Off", "Uit");
|
|
54
54
|
injectString("pl", "Off", "Wy\u0142.");
|
|
55
|
-
injectString("pt-BR", "Off", "
|
|
56
|
-
injectString("pt-PT", "Off", "
|
|
55
|
+
injectString("pt-BR", "Off", "Desativar");
|
|
56
|
+
injectString("pt-PT", "Off", "Desligado");
|
|
57
57
|
injectString("sk-SK", "Off", "Vypnut\xE9");
|
|
58
58
|
injectString("sv", "Off", "Av");
|
|
59
59
|
injectString("th", "Off", "\u0E1B\u0E34\u0E14");
|
|
60
60
|
injectString("tr", "Off", "Kapal\u0131");
|
|
61
61
|
injectString("zh-Hans", "Off", "\u5173\u95ED");
|
|
62
62
|
injectString("zh-TW", "Off", "\u95DC\u9589");
|
|
63
|
-
injectString("ro-RO", "Off", "
|
|
63
|
+
injectString("ro-RO", "Off", "Off");
|
|
64
64
|
injectString("ar-SA", "Off", "\u0625\u064A\u0642\u0627\u0641");
|
|
65
65
|
export const ToggleButtonRaw = props => {
|
|
66
66
|
const {
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -49,10 +49,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
49
49
|
injectString("de", "Close", "Schlie\xDFen");
|
|
50
50
|
injectString("en", "Close", "Close");
|
|
51
51
|
injectString("es", "Close", "Cerrar");
|
|
52
|
-
injectString("fi-FI", "Close", "
|
|
52
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
53
53
|
injectString("fr", "Close", "Fermer");
|
|
54
54
|
injectString("fr-FR", "Close", "Fermer");
|
|
55
|
-
injectString("hu-HU", "Close", "
|
|
55
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
56
56
|
injectString("id", "Close", "Tutup");
|
|
57
57
|
injectString("it", "Close", "Chiudere");
|
|
58
58
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -63,13 +63,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
63
63
|
injectString("pl", "Close", "Zamknij");
|
|
64
64
|
injectString("pt-BR", "Close", "Fechar");
|
|
65
65
|
injectString("pt-PT", "Close", "Fechar");
|
|
66
|
-
injectString("sk-SK", "Close", "
|
|
66
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
67
67
|
injectString("sv", "Close", "St\xE4ng");
|
|
68
68
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
69
69
|
injectString("tr", "Close", "Kapat");
|
|
70
70
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
71
71
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
72
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
72
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
73
73
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
74
74
|
const TOOLTIP_VISIBILITY_DELAY = 100;
|
|
75
75
|
const arrowClasses = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const RTL_ALIGNMENT_MAP = {
|
|
2
|
+
top: "top",
|
|
3
|
+
"top-left": "top-right",
|
|
4
|
+
"top-right": "top-left",
|
|
5
|
+
left: "right",
|
|
6
|
+
"left-top": "right-top",
|
|
7
|
+
"left-bottom": "right-bottom",
|
|
8
|
+
right: "left",
|
|
9
|
+
"right-top": "left-top",
|
|
10
|
+
"right-bottom": "left-bottom",
|
|
11
|
+
bottom: "bottom",
|
|
12
|
+
"bottom-left": "bottom-right",
|
|
13
|
+
"bottom-right": "bottom-left"
|
|
14
|
+
};
|
|
15
|
+
export const flipAlignment = (alignment) => RTL_ALIGNMENT_MAP[alignment];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TSupportedLanguage } from "./getSupportedLanguage";
|
|
3
|
+
export declare const makeLanguageWrapper: (language: TSupportedLanguage) => {
|
|
4
|
+
({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { LanguageProvider } from "./languageProvider";
|
|
3
|
+
export const makeLanguageWrapper = (language) => {
|
|
4
|
+
const Wrapper = ({ children }) => _jsx(LanguageProvider, { language: language, children: children });
|
|
5
|
+
Wrapper.displayName = "TestLanguageWrapper";
|
|
6
|
+
return Wrapper;
|
|
7
|
+
};
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"Select visible columns": "Vyberte viditelné sloupce",
|
|
238
238
|
"Selected": "Vybráno",
|
|
239
239
|
"This field is required.": "Toto pole je povinné.",
|
|
240
|
-
"On": "
|
|
241
|
-
"Off": "
|
|
240
|
+
"On": "Zapnuto",
|
|
241
|
+
"Off": "Vypnuto",
|
|
242
242
|
"Scroll left": "Přejít doleva",
|
|
243
243
|
"Scroll right": "Přejít doprava",
|
|
244
244
|
"Send feedback": "Odeslat zpětnou vazbu",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"Close filter": "Luk filter",
|
|
236
236
|
"No data available": "Ingen data tilgængelige",
|
|
237
237
|
"Save": "Spare",
|
|
238
|
-
"Remove": "
|
|
238
|
+
"Remove": "Fjern",
|
|
239
239
|
"Confirm": "Bekræfte",
|
|
240
240
|
"Clear all": "Ryd alt",
|
|
241
241
|
"Selected": "Valgt",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"Sat": "Lør",
|
|
255
255
|
"Sun": "Sol",
|
|
256
256
|
"This field is required.": "Dette felt er påkrævet.",
|
|
257
|
-
"On": "
|
|
257
|
+
"On": "Tændt",
|
|
258
258
|
"Off": "Slukket",
|
|
259
259
|
"Reload": "Genindlæs",
|
|
260
260
|
"View details": "Se detaljer",
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"Select visible columns": "Seleccionar columnas visibles",
|
|
238
238
|
"Selected": "Seleccionado",
|
|
239
239
|
"This field is required.": "Este campo es obligatorio.",
|
|
240
|
-
"On": "
|
|
241
|
-
"Off": "
|
|
240
|
+
"On": "Activado",
|
|
241
|
+
"Off": "Deshabilitado",
|
|
242
242
|
"Scroll left": "Desplazarse a la izquierda",
|
|
243
243
|
"Scroll right": "Desplazarse a la derecha",
|
|
244
244
|
"Send feedback": "Enviar comentarios",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"And": "És",
|
|
12
12
|
"Or": "Vagy",
|
|
13
13
|
"Expand": "Bővítsd ki",
|
|
14
|
-
"View all": "
|
|
14
|
+
"View all": "Összes megtekintése",
|
|
15
15
|
"Beta": "Beta",
|
|
16
16
|
"Add page to bookmarks": "Tedd a lapot a könyvjelzőid közé.",
|
|
17
17
|
"Remove page from bookmarks": "Távolítsd el az oldalt a könyvjelzőid közül.",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"Clear": "Töröld.",
|
|
51
51
|
"Reset": "Állítsd vissza.",
|
|
52
52
|
"Apply": "Alkalmazd.",
|
|
53
|
-
"Close": "
|
|
53
|
+
"Close": "Bezárás",
|
|
54
54
|
"Deselect all": "Ne válassz ki semmit.",
|
|
55
55
|
"Back": "Vissza",
|
|
56
56
|
"No data": "Nincs adat",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"Time": "Masa",
|
|
253
253
|
"Apply filter": "Gunakan penyaring",
|
|
254
254
|
"Remove filter": "Keluarkan penyaring",
|
|
255
|
-
"Results": "
|
|
255
|
+
"Results": "Hasil",
|
|
256
256
|
"Choose end date": "Choose end date",
|
|
257
257
|
"Choose start date": "Choose start date",
|
|
258
258
|
"Sort Options": "Sort Options",
|