@geotab/zenith 3.1.1-beta.5 → 3.2.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 +20 -0
- package/dist/advancedGroupsFilter/advancedGroupsFilter.js +136 -30
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.js +139 -34
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +352 -87
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +83 -9
- package/dist/alertRaw/alertRaw.js +175 -54
- package/dist/banner/bannerMultipLine.js +131 -23
- package/dist/banner/bannerSingleLine.js +110 -16
- package/dist/betaPill/betaPill.js +111 -20
- package/dist/bookmark/bookmark.js +95 -28
- package/dist/bulkEditControl/bulkEditControl.js +167 -34
- package/dist/calendar/calendar.js +943 -273
- package/dist/calendar/calendarUtils.js +157 -85
- package/dist/card/card.js +268 -123
- package/dist/chart/accessibleChart/accessibleChartNarrative.js +648 -555
- package/dist/chart/accessibleChart/accessibleChartTable.js +245 -86
- package/dist/chart/chart.js +36 -21
- package/dist/chart/chartAxis/chartAxis.js +85 -7
- package/dist/checkboxListWithAction/checkboxListWithAction.js +224 -69
- package/dist/chip/chip.js +195 -91
- package/dist/columnsSelector/columnsSelector.js +97 -12
- package/dist/columnsSelector/columnsTab/columnsTab.js +59 -15
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.js +81 -34
- package/dist/comboboxSelected/comboboxSelected.js +1 -3
- package/dist/dataFeed/feedExpandControl/feedExpandControl.js +25 -10
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +92 -11
- package/dist/dataGrid/dataGrid.js +227 -117
- package/dist/dataGrid/emptySearchList/emptySearchList.js +56 -9
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +51 -7
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.js +64 -18
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +84 -10
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +48 -16
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +223 -32
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +286 -213
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +178 -95
- package/dist/dateInputInner/dateInputInner.js +791 -476
- package/dist/dateInputInner/dateInputInnerControlBlock.js +125 -22
- package/dist/dateInputRaw/dateInputRaw.js +315 -104
- package/dist/dateInputRaw/utils/getLabel.js +38 -7
- package/dist/dateRangeInner/dateRangeInner.js +172 -58
- package/dist/dateRangeRaw/dateRangeRaw.js +601 -239
- package/dist/dateRangeRaw/utils/dateRangeUtils.js +629 -241
- package/dist/dateSelectionWrapper/dateSelectionWrapper.js +152 -14
- package/dist/dialog/dialogContent.js +123 -40
- package/dist/dropdownRaw/dropdownHelper.d.ts +2 -2
- package/dist/dropdownRaw/dropdownHelper.js +9 -9
- package/dist/dropdownRaw/dropdownList.js +447 -78
- package/dist/dropdownRaw/dropdownPopup.js +218 -20
- package/dist/dropdownRaw/dropdownRaw.js +866 -506
- package/dist/dropdownRaw/dropdownSearchableTrigger.js +223 -46
- package/dist/dropdownRaw/stateReducer/stateAction.d.ts +5 -1
- package/dist/dropdownRaw/stateReducer/stateActionType.d.ts +2 -1
- package/dist/dropdownRaw/stateReducer/stateActionType.js +1 -0
- package/dist/dropdownRaw/stateReducer/stateReducer.d.ts +6 -1
- package/dist/dropdownRaw/stateReducer/stateReducer.js +24 -12
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.d.ts +2 -0
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +20 -1
- package/dist/dropdownRaw/stateReducer/stateReducerTestData.d.ts +39 -0
- package/dist/dropdownRaw/stateReducer/stateReducerTestData.js +74 -0
- package/dist/dropdownRaw/types.d.ts +1 -0
- package/dist/favoriteButton/favoriteButton.js +59 -10
- package/dist/filters/components/filtersContainer.js +151 -64
- package/dist/filters/components/filtersEmptySelectedList.js +30 -4
- package/dist/filters/components/filtersSaveModal.js +140 -42
- package/dist/filters/components/filtersSavedChipComponent.js +318 -108
- package/dist/filters/components/filtersSearchItemData.js +127 -47
- package/dist/filters/components/filtersSearchList.js +381 -179
- package/dist/filters/components/filtersSelect.js +128 -61
- package/dist/filters/components/filtersSelectListItem.js +125 -13
- package/dist/filters/components/filtersSidePanel.js +510 -178
- package/dist/filters/filters.js +445 -268
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +729 -272
- package/dist/filtersBar/components/resetComponentButton.js +45 -5
- package/dist/filtersBar/filtersBarActions/filtersBarActions.js +126 -15
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +155 -49
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +360 -104
- package/dist/filtersBar/filtersContainer/filtersContainer.js +204 -134
- package/dist/formField/components/formFieldWithLabel.d.ts +2 -1
- package/dist/formField/components/formFieldWithLabel.js +3 -2
- package/dist/formField/components/formFieldWithoutLabel.d.ts +2 -1
- package/dist/formField/components/formFieldWithoutLabel.js +3 -3
- package/dist/formField/components/trailingComponent.d.ts +8 -0
- package/dist/formField/components/trailingComponent.js +11 -0
- package/dist/formField/formField.d.ts +0 -1
- package/dist/formField/formField.js +15 -16
- package/dist/formField/hooks/useError.js +100 -36
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +72 -7
- package/dist/formGroup/hooks/useToggle.js +37 -11
- package/dist/formGroup/utils/getControls.js +8 -7
- package/dist/formLayout/hooks/useError.js +55 -15
- package/dist/formLayout/hooks/useFormButtons.js +128 -27
- package/dist/formSection/components/formSectionModal.js +1 -1
- package/dist/formSection/formSection.js +1 -1
- package/dist/formSection/hooks/useError.js +70 -22
- package/dist/formStepper/components/formStep.js +65 -10
- package/dist/formStepper/formStepper.js +129 -33
- package/dist/formStepperButtons/formStepperButtons.js +184 -38
- package/dist/groupsFilter/groupsFilterTestData.d.ts +37 -0
- package/dist/groupsFilter/groupsFilterTestData.js +7 -0
- package/dist/groupsFilter/groupsHelper.d.ts +24 -1
- package/dist/groupsFilter/groupsHelper.js +25 -15
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +162 -17
- package/dist/groupsFilterRaw/groupsFilterBox.js +137 -32
- package/dist/groupsFilterRaw/groupsFilterCommon.js +75 -8
- package/dist/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +184 -25
- package/dist/groupsFilterRaw/groupsFilterHelper.d.ts +2 -1
- package/dist/groupsFilterRaw/groupsFilterHelper.js +284 -168
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +266 -18
- package/dist/groupsFilterRaw/groupsFilterMenu.js +124 -9
- package/dist/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.js +816 -308
- package/dist/groupsFilterRaw/groupsFilterTestData.d.ts +155 -2
- package/dist/groupsFilterRaw/groupsFilterTestData.js +153 -58
- package/dist/groupsFilterRaw/groupsFilterTrigger.js +139 -35
- package/dist/groupsFilterRaw/groupsHelper.js +739 -208
- package/dist/groupsFilterRaw/stateReducer/stateReducerHelper.js +3 -1
- package/dist/groupsFilterRaw/types.d.ts +1 -0
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.js +107 -52
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +62 -9
- package/dist/header/components/mobileSearchControl/mobileSearchControl.js +119 -14
- package/dist/header/headerBack.js +64 -20
- package/dist/index.css +110 -71
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -2
- package/dist/list/itemData/itemDataInternal.js +216 -51
- package/dist/list/listItem/listItem.js +168 -55
- package/dist/menu/components/menuErrorItem.js +33 -5
- package/dist/mobileSheet/mobileSheet.js +195 -69
- package/dist/modal/modal.js +300 -142
- package/dist/nav/nav.js +1 -1
- package/dist/nav/navFooter/navFooter.js +82 -39
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +52 -13
- package/dist/nav/navHeader/navHeader.js +86 -36
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +88 -29
- package/dist/nav/navItem/navItem.d.ts +3 -3
- package/dist/nav/navItem/navItem.js +35 -33
- package/dist/nav/navMobileBar/navMobileBar.js +67 -21
- package/dist/notification/notification.js +124 -21
- package/dist/pagination/paginationArrow.js +81 -11
- package/dist/pagination/paginationText/paginationText.js +45 -11
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +93 -24
- package/dist/pillBox/components/pillBoxItem.js +52 -9
- package/dist/pillBox/pillBox.js +121 -20
- package/dist/pillExpandable/pillExpandable.js +333 -139
- package/dist/rangeRaw/rangeRaw.js +486 -141
- package/dist/rangeRaw/utils/rangeHelper.js +209 -39
- package/dist/searchInputRaw/searchInputRaw.js +180 -65
- package/dist/skeleton/skeleton.js +51 -6
- package/dist/sortControl/sortControl.js +152 -42
- package/dist/stepperRaw/stepperRaw.js +116 -42
- package/dist/summary/summary.js +94 -8
- package/dist/table/actions/actionsMenu.js +171 -78
- package/dist/table/flexible/columnSettings.js +80 -10
- package/dist/table/flexible/columnsList.js +110 -43
- package/dist/table/flexible/columnsPopup.js +77 -20
- package/dist/table/nested/useNestedRows.js +167 -77
- package/dist/table/selectable/selectableHeader.js +180 -41
- package/dist/table/selectable/useSelectableRows.js +270 -191
- package/dist/table/sortable/sortableHeader.js +153 -75
- package/dist/tabs/tabs.js +227 -118
- package/dist/timePickerRaw/timePickerRaw.js +278 -58
- package/dist/toastRaw/toastRaw.js +138 -32
- package/dist/toggleButton/toggleButton.d.ts +0 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.d.ts +1 -0
- package/dist/toggleButtonRaw/toggleButtonRaw.js +146 -40
- package/dist/utils/formatDate.js +1001 -117
- package/{esm/utils/localization/translations/cs-json.js → dist/utils/localization/translations/cs.json} +11 -12
- package/{esm/utils/localization/translations/da-DK-json.js → dist/utils/localization/translations/da-DK.json} +31 -23
- package/{esm/utils/localization/translations/de-json.js → dist/utils/localization/translations/de.json} +12 -13
- package/dist/utils/localization/translations/en.json +308 -0
- package/{esm/utils/localization/translations/es-json.js → dist/utils/localization/translations/es.json} +11 -12
- package/{esm/utils/localization/translations/fi-FI-json.js → dist/utils/localization/translations/fi-FI.json} +31 -23
- package/{esm/utils/localization/translations/fr-FR-json.js → dist/utils/localization/translations/fr-FR.json} +12 -12
- package/{esm/utils/localization/translations/fr-json.js → dist/utils/localization/translations/fr.json} +11 -12
- package/{esm/utils/localization/translations/hu-HU-json.js → dist/utils/localization/translations/hu-HU.json} +31 -23
- package/{esm/utils/localization/translations/id-json.js → dist/utils/localization/translations/id.json} +11 -13
- package/{esm/utils/localization/translations/it-json.js → dist/utils/localization/translations/it.json} +11 -12
- package/{esm/utils/localization/translations/ja-json.js → dist/utils/localization/translations/ja.json} +11 -12
- package/{esm/utils/localization/translations/ko-KR-json.js → dist/utils/localization/translations/ko-KR.json} +24 -23
- package/{esm/utils/localization/translations/ms-json.js → dist/utils/localization/translations/ms.json} +11 -12
- package/{esm/utils/localization/translations/nb-NO-json.js → dist/utils/localization/translations/nb-NO.json} +31 -23
- package/{esm/utils/localization/translations/nl-json.js → dist/utils/localization/translations/nl.json} +11 -12
- package/{esm/utils/localization/translations/pl-json.js → dist/utils/localization/translations/pl.json} +11 -12
- package/{esm/utils/localization/translations/pt-BR-json.js → dist/utils/localization/translations/pt-BR.json} +11 -12
- package/{esm/utils/localization/translations/sk-SK-json.js → dist/utils/localization/translations/sk-SK.json} +31 -23
- package/{esm/utils/localization/translations/sv-json.js → dist/utils/localization/translations/sv.json} +11 -12
- package/{esm/utils/localization/translations/th-json.js → dist/utils/localization/translations/th.json} +11 -12
- package/{esm/utils/localization/translations/tr-json.js → dist/utils/localization/translations/tr.json} +11 -12
- package/{esm/utils/localization/translations/zh-Hans-json.js → dist/utils/localization/translations/zh-Hans.json} +11 -12
- package/{esm/utils/localization/translations/zh-TW-json.js → dist/utils/localization/translations/zh-TW.json} +11 -23
- package/dist/utils/localization/translationsDictionary.d.ts +2 -0
- package/dist/utils/localization/translationsDictionary.js +63 -0
- package/dist/utils/localization/useLanguage.js +2 -74
- package/esm/advancedGroupsFilter/advancedGroupsFilter.js +130 -29
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.js +133 -33
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.js +317 -65
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +77 -8
- package/esm/alertRaw/alertRaw.js +165 -51
- package/esm/banner/bannerMultipLine.js +121 -20
- package/esm/banner/bannerSingleLine.js +100 -13
- package/esm/betaPill/betaPill.js +105 -19
- package/esm/bookmark/bookmark.js +89 -27
- package/esm/bulkEditControl/bulkEditControl.js +161 -33
- package/esm/calendar/calendar.js +937 -272
- package/esm/calendar/calendarUtils.js +151 -84
- package/esm/card/card.js +233 -101
- package/esm/chart/accessibleChart/accessibleChartNarrative.js +642 -554
- package/esm/chart/accessibleChart/accessibleChartTable.js +239 -85
- package/esm/chart/chart.js +30 -20
- package/esm/chart/chartAxis/chartAxis.js +79 -6
- package/esm/checkboxListWithAction/checkboxListWithAction.js +218 -68
- package/esm/chip/chip.js +189 -90
- package/esm/columnsSelector/columnsSelector.js +91 -11
- package/esm/columnsSelector/columnsTab/columnsTab.js +53 -14
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.js +75 -33
- package/esm/comboboxSelected/comboboxSelected.js +1 -3
- package/esm/dataFeed/feedExpandControl/feedExpandControl.js +21 -9
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +86 -10
- package/esm/dataGrid/dataGrid.js +221 -116
- package/esm/dataGrid/emptySearchList/emptySearchList.js +50 -8
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +45 -6
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.js +58 -17
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +78 -9
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +44 -15
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +217 -31
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +280 -212
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +172 -94
- package/esm/dateInputInner/dateInputInner.js +785 -475
- package/esm/dateInputInner/dateInputInnerControlBlock.js +119 -21
- package/esm/dateInputRaw/dateInputRaw.js +309 -103
- package/esm/dateInputRaw/utils/getLabel.js +32 -6
- package/esm/dateRangeInner/dateRangeInner.js +166 -57
- package/esm/dateRangeRaw/dateRangeRaw.js +595 -238
- package/esm/dateRangeRaw/utils/dateRangeUtils.js +622 -239
- package/esm/dateSelectionWrapper/dateSelectionWrapper.js +146 -13
- package/esm/dialog/dialogContent.js +117 -39
- package/esm/dropdownRaw/dropdownHelper.d.ts +2 -2
- package/esm/dropdownRaw/dropdownHelper.js +10 -10
- package/esm/dropdownRaw/dropdownList.js +412 -56
- package/esm/dropdownRaw/dropdownPopup.js +212 -19
- package/esm/dropdownRaw/dropdownRaw.js +862 -507
- package/esm/dropdownRaw/dropdownSearchableTrigger.js +217 -45
- package/esm/dropdownRaw/stateReducer/stateAction.d.ts +5 -1
- package/esm/dropdownRaw/stateReducer/stateActionType.d.ts +2 -1
- package/esm/dropdownRaw/stateReducer/stateActionType.js +1 -0
- package/esm/dropdownRaw/stateReducer/stateReducer.d.ts +6 -1
- package/esm/dropdownRaw/stateReducer/stateReducer.js +24 -12
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.d.ts +2 -0
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.js +18 -0
- package/esm/dropdownRaw/stateReducer/stateReducerTestData.d.ts +39 -0
- package/esm/dropdownRaw/stateReducer/stateReducerTestData.js +71 -0
- package/esm/dropdownRaw/types.d.ts +1 -0
- package/esm/favoriteButton/favoriteButton.js +53 -9
- package/esm/filters/components/filtersContainer.js +141 -61
- package/esm/filters/components/filtersEmptySelectedList.js +24 -3
- package/esm/filters/components/filtersSaveModal.js +134 -41
- package/esm/filters/components/filtersSavedChipComponent.js +312 -107
- package/esm/filters/components/filtersSearchItemData.js +121 -46
- package/esm/filters/components/filtersSearchList.js +375 -178
- package/esm/filters/components/filtersSelect.js +122 -60
- package/esm/filters/components/filtersSelectListItem.js +119 -12
- package/esm/filters/components/filtersSidePanel.js +504 -177
- package/esm/filters/filters.js +435 -265
- package/esm/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +722 -270
- package/esm/filtersBar/components/resetComponentButton.js +39 -4
- package/esm/filtersBar/filtersBarActions/filtersBarActions.js +120 -14
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +149 -48
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +354 -103
- package/esm/filtersBar/filtersContainer/filtersContainer.js +198 -133
- package/esm/formField/components/formFieldWithLabel.d.ts +2 -1
- package/esm/formField/components/formFieldWithLabel.js +3 -2
- package/esm/formField/components/formFieldWithoutLabel.d.ts +2 -1
- package/esm/formField/components/formFieldWithoutLabel.js +3 -3
- package/esm/formField/components/trailingComponent.d.ts +8 -0
- package/esm/formField/components/trailingComponent.js +7 -0
- package/esm/formField/formField.d.ts +0 -1
- package/esm/formField/formField.js +15 -16
- package/esm/formField/hooks/useError.js +94 -35
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +66 -6
- package/esm/formGroup/hooks/useToggle.js +31 -10
- package/esm/formGroup/utils/getControls.js +8 -7
- package/esm/formLayout/hooks/useError.js +49 -14
- package/esm/formLayout/hooks/useFormButtons.js +122 -26
- package/esm/formSection/components/formSectionModal.js +1 -1
- package/esm/formSection/formSection.js +1 -1
- package/esm/formSection/hooks/useError.js +64 -21
- package/esm/formStepper/components/formStep.js +59 -9
- package/esm/formStepper/formStepper.js +123 -32
- package/esm/formStepperButtons/formStepperButtons.js +178 -37
- package/esm/groupsFilter/groupsFilterTestData.d.ts +37 -0
- package/esm/groupsFilter/groupsFilterTestData.js +4 -0
- package/esm/groupsFilter/groupsHelper.d.ts +24 -1
- package/esm/groupsFilter/groupsHelper.js +24 -1
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +152 -14
- package/esm/groupsFilterRaw/groupsFilterBox.js +131 -31
- package/esm/groupsFilterRaw/groupsFilterCommon.js +69 -7
- package/esm/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +178 -24
- package/esm/groupsFilterRaw/groupsFilterHelper.d.ts +2 -1
- package/esm/groupsFilterRaw/groupsFilterHelper.js +279 -168
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +260 -17
- package/esm/groupsFilterRaw/groupsFilterMenu.js +118 -8
- package/esm/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.js +811 -308
- package/esm/groupsFilterRaw/groupsFilterTestData.d.ts +155 -2
- package/esm/groupsFilterRaw/groupsFilterTestData.js +152 -57
- package/esm/groupsFilterRaw/groupsFilterTrigger.js +133 -34
- package/esm/groupsFilterRaw/groupsHelper.js +733 -207
- package/esm/groupsFilterRaw/stateReducer/stateReducerHelper.js +3 -1
- package/esm/groupsFilterRaw/types.d.ts +1 -0
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +101 -51
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +56 -8
- package/esm/header/components/mobileSearchControl/mobileSearchControl.js +113 -13
- package/esm/header/headerBack.js +58 -19
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/list/itemData/itemDataInternal.js +210 -50
- package/esm/list/listItem/listItem.js +162 -54
- package/esm/menu/components/menuErrorItem.js +27 -4
- package/esm/mobileSheet/mobileSheet.js +189 -68
- package/esm/modal/modal.js +265 -120
- package/esm/nav/nav.js +1 -1
- package/esm/nav/navFooter/navFooter.js +76 -38
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +46 -12
- package/esm/nav/navHeader/navHeader.js +80 -35
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +82 -28
- package/esm/nav/navItem/navItem.d.ts +3 -3
- package/esm/nav/navItem/navItem.js +35 -33
- package/esm/nav/navMobileBar/navMobileBar.js +61 -20
- package/esm/notification/notification.js +114 -18
- package/esm/pagination/paginationArrow.js +75 -10
- package/esm/pagination/paginationText/paginationText.js +39 -10
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +87 -23
- package/esm/pillBox/components/pillBoxItem.js +46 -8
- package/esm/pillBox/pillBox.js +115 -19
- package/esm/pillExpandable/pillExpandable.js +327 -138
- package/esm/rangeRaw/rangeRaw.js +480 -140
- package/esm/rangeRaw/utils/rangeHelper.js +203 -38
- package/esm/searchInputRaw/searchInputRaw.js +145 -43
- package/esm/skeleton/skeleton.js +45 -5
- package/esm/sortControl/sortControl.js +146 -41
- package/esm/stepperRaw/stepperRaw.js +112 -41
- package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.js +178 -19
- package/esm/summary/summary.js +88 -7
- package/esm/table/actions/actionsMenu.js +165 -77
- package/esm/table/flexible/columnSettings.js +74 -9
- package/esm/table/flexible/columnsList.js +104 -42
- package/esm/table/flexible/columnsPopup.js +71 -19
- package/esm/table/nested/useNestedRows.js +161 -76
- package/esm/table/selectable/selectableHeader.js +174 -40
- package/esm/table/selectable/useSelectableRows.js +264 -190
- package/esm/table/sortable/sortableHeader.js +147 -74
- package/esm/tabs/tabs.js +221 -117
- package/esm/timePickerRaw/timePickerRaw.js +272 -57
- package/esm/toastRaw/toastRaw.js +132 -31
- package/esm/toggleButton/toggleButton.d.ts +0 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.d.ts +1 -0
- package/esm/toggleButtonRaw/toggleButtonRaw.js +111 -18
- package/esm/utils/formatDate.js +995 -116
- package/{dist/utils/localization/translations/cs-json.js → esm/utils/localization/translations/cs.json} +11 -15
- package/{dist/utils/localization/translations/da-DK-json.js → esm/utils/localization/translations/da-DK.json} +31 -26
- package/{dist/utils/localization/translations/de-json.js → esm/utils/localization/translations/de.json} +12 -16
- package/esm/utils/localization/translations/en.json +308 -0
- package/{dist/utils/localization/translations/es-json.js → esm/utils/localization/translations/es.json} +11 -15
- package/{dist/utils/localization/translations/fi-FI-json.js → esm/utils/localization/translations/fi-FI.json} +31 -26
- package/{dist/utils/localization/translations/fr-FR-json.js → esm/utils/localization/translations/fr-FR.json} +12 -15
- package/{dist/utils/localization/translations/fr-json.js → esm/utils/localization/translations/fr.json} +11 -15
- package/{dist/utils/localization/translations/hu-HU-json.js → esm/utils/localization/translations/hu-HU.json} +31 -26
- package/{dist/utils/localization/translations/id-json.js → esm/utils/localization/translations/id.json} +11 -16
- package/{dist/utils/localization/translations/it-json.js → esm/utils/localization/translations/it.json} +11 -15
- package/{dist/utils/localization/translations/ja-json.js → esm/utils/localization/translations/ja.json} +11 -15
- package/{dist/utils/localization/translations/ko-KR-json.js → esm/utils/localization/translations/ko-KR.json} +24 -26
- package/{dist/utils/localization/translations/ms-json.js → esm/utils/localization/translations/ms.json} +11 -15
- package/{dist/utils/localization/translations/nb-NO-json.js → esm/utils/localization/translations/nb-NO.json} +31 -26
- package/{dist/utils/localization/translations/nl-json.js → esm/utils/localization/translations/nl.json} +11 -15
- package/{dist/utils/localization/translations/pl-json.js → esm/utils/localization/translations/pl.json} +11 -15
- package/{dist/utils/localization/translations/pt-BR-json.js → esm/utils/localization/translations/pt-BR.json} +11 -15
- package/{dist/utils/localization/translations/sk-SK-json.js → esm/utils/localization/translations/sk-SK.json} +31 -26
- package/{dist/utils/localization/translations/sv-json.js → esm/utils/localization/translations/sv.json} +11 -15
- package/{dist/utils/localization/translations/th-json.js → esm/utils/localization/translations/th.json} +11 -15
- package/{dist/utils/localization/translations/tr-json.js → esm/utils/localization/translations/tr.json} +11 -15
- package/{dist/utils/localization/translations/zh-Hans-json.js → esm/utils/localization/translations/zh-Hans.json} +11 -15
- package/{dist/utils/localization/translations/zh-TW-json.js → esm/utils/localization/translations/zh-TW.json} +11 -26
- package/esm/utils/localization/translationsDictionary.d.ts +2 -0
- package/esm/utils/localization/translationsDictionary.js +59 -0
- package/esm/utils/localization/useLanguage.js +1 -50
- package/package.json +17 -10
- package/dist/formField/hooks/useClasses.d.ts +0 -8
- package/dist/formField/hooks/useClasses.js +0 -25
- package/dist/utils/localization/translations/cs-json.d.ts +0 -251
- package/dist/utils/localization/translations/da-DK-json.d.ts +0 -252
- package/dist/utils/localization/translations/de-json.d.ts +0 -251
- package/dist/utils/localization/translations/en-json.d.ts +0 -314
- package/dist/utils/localization/translations/en-json.js +0 -317
- package/dist/utils/localization/translations/es-json.d.ts +0 -251
- package/dist/utils/localization/translations/fi-FI-json.d.ts +0 -252
- package/dist/utils/localization/translations/fr-FR-json.d.ts +0 -250
- package/dist/utils/localization/translations/fr-json.d.ts +0 -251
- package/dist/utils/localization/translations/hu-HU-json.d.ts +0 -252
- package/dist/utils/localization/translations/id-json.d.ts +0 -252
- package/dist/utils/localization/translations/it-json.d.ts +0 -251
- package/dist/utils/localization/translations/ja-json.d.ts +0 -251
- package/dist/utils/localization/translations/ko-KR-json.d.ts +0 -258
- package/dist/utils/localization/translations/ms-json.d.ts +0 -251
- package/dist/utils/localization/translations/nb-NO-json.d.ts +0 -252
- package/dist/utils/localization/translations/nl-json.d.ts +0 -251
- package/dist/utils/localization/translations/pl-json.d.ts +0 -251
- package/dist/utils/localization/translations/pt-BR-json.d.ts +0 -251
- package/dist/utils/localization/translations/sk-SK-json.d.ts +0 -251
- package/dist/utils/localization/translations/sv-json.d.ts +0 -251
- package/dist/utils/localization/translations/th-json.d.ts +0 -251
- package/dist/utils/localization/translations/tr-json.d.ts +0 -251
- package/dist/utils/localization/translations/zh-Hans-json.d.ts +0 -251
- package/dist/utils/localization/translations/zh-TW-json.d.ts +0 -271
- package/esm/formField/hooks/useClasses.d.ts +0 -8
- package/esm/formField/hooks/useClasses.js +0 -21
- package/esm/utils/localization/translations/cs-json.d.ts +0 -251
- package/esm/utils/localization/translations/da-DK-json.d.ts +0 -252
- package/esm/utils/localization/translations/de-json.d.ts +0 -251
- package/esm/utils/localization/translations/en-json.d.ts +0 -314
- package/esm/utils/localization/translations/en-json.js +0 -314
- package/esm/utils/localization/translations/es-json.d.ts +0 -251
- package/esm/utils/localization/translations/fi-FI-json.d.ts +0 -252
- package/esm/utils/localization/translations/fr-FR-json.d.ts +0 -250
- package/esm/utils/localization/translations/fr-json.d.ts +0 -251
- package/esm/utils/localization/translations/hu-HU-json.d.ts +0 -252
- package/esm/utils/localization/translations/id-json.d.ts +0 -252
- package/esm/utils/localization/translations/it-json.d.ts +0 -251
- package/esm/utils/localization/translations/ja-json.d.ts +0 -251
- package/esm/utils/localization/translations/ko-KR-json.d.ts +0 -258
- package/esm/utils/localization/translations/ms-json.d.ts +0 -251
- package/esm/utils/localization/translations/nb-NO-json.d.ts +0 -252
- package/esm/utils/localization/translations/nl-json.d.ts +0 -251
- package/esm/utils/localization/translations/pl-json.d.ts +0 -251
- package/esm/utils/localization/translations/pt-BR-json.d.ts +0 -251
- package/esm/utils/localization/translations/sk-SK-json.d.ts +0 -251
- package/esm/utils/localization/translations/sv-json.d.ts +0 -251
- package/esm/utils/localization/translations/th-json.d.ts +0 -251
- package/esm/utils/localization/translations/tr-json.d.ts +0 -251
- package/esm/utils/localization/translations/zh-Hans-json.d.ts +0 -251
- package/esm/utils/localization/translations/zh-TW-json.d.ts +0 -271
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
injectString
|
|
5
|
+
} = require("../../utils/localization/translationsDictionary");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
3
9
|
exports.FiltersSidePanel = void 0;
|
|
4
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
11
|
const react_1 = require("react");
|
|
@@ -25,188 +31,514 @@ const filtersHelper_1 = require("../filtersHelper");
|
|
|
25
31
|
const tabs_1 = require("../../tabs/tabs");
|
|
26
32
|
const filtersSidePanelItem_1 = require("./filtersSidePanelItem");
|
|
27
33
|
const filtersSaveModal_1 = require("./filtersSaveModal");
|
|
34
|
+
injectString("cs", "Selected", "Vybr\xE1no");
|
|
35
|
+
injectString("da-DK", "Selected", "Valgt");
|
|
36
|
+
injectString("de", "Selected", "Ausgew\xE4hlt");
|
|
37
|
+
injectString("en", "Selected", "Selected");
|
|
38
|
+
injectString("es", "Selected", "Seleccionado");
|
|
39
|
+
injectString("fi-FI", "Selected", "Valittu");
|
|
40
|
+
injectString("fr", "Selected", "S\xE9lectionn\xE9");
|
|
41
|
+
injectString("fr-FR", "Selected", "S\xE9lectionn\xE9");
|
|
42
|
+
injectString("hu-HU", "Selected", "Kiv\xE1lasztott");
|
|
43
|
+
injectString("id", "Selected", "Dipilih");
|
|
44
|
+
injectString("it", "Selected", "Selezionato");
|
|
45
|
+
injectString("ja", "Selected", "\u9078\u629E\u8ECA\u4E21");
|
|
46
|
+
injectString("ko-KR", "Selected", "\uC120\uD0DD\uB428");
|
|
47
|
+
injectString("ms", "Selected", "Dipilih");
|
|
48
|
+
injectString("nb-NO", "Selected", "Valgt");
|
|
49
|
+
injectString("nl", "Selected", "Geselecteerd");
|
|
50
|
+
injectString("pl", "Selected", "Wybrano");
|
|
51
|
+
injectString("pt-BR", "Selected", "Selecionado");
|
|
52
|
+
injectString("sk-SK", "Selected", "Vybran\xE9");
|
|
53
|
+
injectString("sv", "Selected", "Valda");
|
|
54
|
+
injectString("th", "Selected", "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27");
|
|
55
|
+
injectString("tr", "Selected", "Se\xE7ildi");
|
|
56
|
+
injectString("zh-Hans", "Selected", "\u9009\u4E2D\u7684");
|
|
57
|
+
injectString("zh-TW", "Selected", "\u5DF2\u9078\u53D6");
|
|
58
|
+
injectString("cs", "Reset", "Obnovit");
|
|
59
|
+
injectString("da-DK", "Reset", "Nulstil");
|
|
60
|
+
injectString("de", "Reset", "Zur\xFCcksetzen");
|
|
61
|
+
injectString("en", "Reset", "Reset");
|
|
62
|
+
injectString("es", "Reset", "Restaurar");
|
|
63
|
+
injectString("fi-FI", "Reset", "Palauta");
|
|
64
|
+
injectString("fr", "Reset", "R\xE9initialiser");
|
|
65
|
+
injectString("fr-FR", "Reset", "R\xE9initialiser");
|
|
66
|
+
injectString("hu-HU", "Reset", "\xC1ll\xEDtsd vissza.");
|
|
67
|
+
injectString("id", "Reset", "Atur Ulang");
|
|
68
|
+
injectString("it", "Reset", "Ripristinare");
|
|
69
|
+
injectString("ja", "Reset", "\u30EA\u30BB\u30C3\u30C8");
|
|
70
|
+
injectString("ko-KR", "Reset", "\uC7AC\uC124\uC815");
|
|
71
|
+
injectString("ms", "Reset", "Tetap Semula");
|
|
72
|
+
injectString("nb-NO", "Reset", "Tilbakestill");
|
|
73
|
+
injectString("nl", "Reset", "Herstellen");
|
|
74
|
+
injectString("pl", "Reset", "Resetuj");
|
|
75
|
+
injectString("pt-BR", "Reset", "Redefinir");
|
|
76
|
+
injectString("sk-SK", "Reset", "Obnov");
|
|
77
|
+
injectString("sv", "Reset", "\xC5terst\xE4ll");
|
|
78
|
+
injectString("th", "Reset", "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15");
|
|
79
|
+
injectString("tr", "Reset", "S\u0131f\u0131rla");
|
|
80
|
+
injectString("zh-Hans", "Reset", "\u91CD\u7F6E");
|
|
81
|
+
injectString("zh-TW", "Reset", "\u91CD\u8A2D");
|
|
82
|
+
injectString("cs", "Cancel", "Zru\u0161it");
|
|
83
|
+
injectString("da-DK", "Cancel", "Annuller");
|
|
84
|
+
injectString("de", "Cancel", "Abbrechen");
|
|
85
|
+
injectString("en", "Cancel", "Cancel");
|
|
86
|
+
injectString("es", "Cancel", "Cancelar");
|
|
87
|
+
injectString("fi-FI", "Cancel", "Peruuta");
|
|
88
|
+
injectString("fr", "Cancel", "Annuler");
|
|
89
|
+
injectString("fr-FR", "Cancel", "Annuler");
|
|
90
|
+
injectString("hu-HU", "Cancel", "M\xE9gse");
|
|
91
|
+
injectString("id", "Cancel", "Batalkan");
|
|
92
|
+
injectString("it", "Cancel", "Annullare");
|
|
93
|
+
injectString("ja", "Cancel", "\u30AD\u30E3\u30F3\u30BB\u30EB");
|
|
94
|
+
injectString("ko-KR", "Cancel", "\uCDE8\uC18C");
|
|
95
|
+
injectString("ms", "Cancel", "Batal");
|
|
96
|
+
injectString("nb-NO", "Cancel", "Avbryt");
|
|
97
|
+
injectString("nl", "Cancel", "Annuleren");
|
|
98
|
+
injectString("pl", "Cancel", "Anuluj");
|
|
99
|
+
injectString("pt-BR", "Cancel", "Cancelar");
|
|
100
|
+
injectString("sk-SK", "Cancel", "Zru\u0161.");
|
|
101
|
+
injectString("sv", "Cancel", "Avbryt");
|
|
102
|
+
injectString("th", "Cancel", "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01");
|
|
103
|
+
injectString("tr", "Cancel", "\u0130ptal");
|
|
104
|
+
injectString("zh-Hans", "Cancel", "\u53D6\u6D88");
|
|
105
|
+
injectString("zh-TW", "Cancel", "\u53D6\u6D88");
|
|
106
|
+
injectString("cs", "Apply", "Pou\u017E\xEDt");
|
|
107
|
+
injectString("da-DK", "Apply", "Anvend");
|
|
108
|
+
injectString("de", "Apply", "Anwenden");
|
|
109
|
+
injectString("en", "Apply", "Apply");
|
|
110
|
+
injectString("es", "Apply", "Aplicar");
|
|
111
|
+
injectString("fi-FI", "Apply", "K\xE4yt\xE4");
|
|
112
|
+
injectString("fr", "Apply", "Appliquer");
|
|
113
|
+
injectString("fr-FR", "Apply", "Appliquer");
|
|
114
|
+
injectString("hu-HU", "Apply", "Alkalmazd.");
|
|
115
|
+
injectString("id", "Apply", "Terapkan");
|
|
116
|
+
injectString("it", "Apply", "Applicare");
|
|
117
|
+
injectString("ja", "Apply", "\u9069\u7528");
|
|
118
|
+
injectString("ko-KR", "Apply", "\uC801\uC6A9");
|
|
119
|
+
injectString("ms", "Apply", "Gunakan");
|
|
120
|
+
injectString("nb-NO", "Apply", "Bruk");
|
|
121
|
+
injectString("nl", "Apply", "Toepassen");
|
|
122
|
+
injectString("pl", "Apply", "Zastosuj");
|
|
123
|
+
injectString("pt-BR", "Apply", "Aplicar");
|
|
124
|
+
injectString("sk-SK", "Apply", "Pou\u017Ei");
|
|
125
|
+
injectString("sv", "Apply", "Ans\xF6k");
|
|
126
|
+
injectString("th", "Apply", "\u0E43\u0E0A\u0E49");
|
|
127
|
+
injectString("tr", "Apply", "Uygula");
|
|
128
|
+
injectString("zh-Hans", "Apply", "\u5E94\u7528");
|
|
129
|
+
injectString("zh-TW", "Apply", "\u5957\u7528");
|
|
130
|
+
injectString("cs", "All Filters", "V\u0161echny filtry");
|
|
131
|
+
injectString("da-DK", "All Filters", "Alle filtre");
|
|
132
|
+
injectString("de", "All Filters", "Alle Filter");
|
|
133
|
+
injectString("en", "All Filters", "All Filters");
|
|
134
|
+
injectString("es", "All Filters", "Todos los filtros");
|
|
135
|
+
injectString("fi-FI", "All Filters", "Kaikki suodattimet");
|
|
136
|
+
injectString("fr", "All Filters", "Tous les filtres");
|
|
137
|
+
injectString("fr-FR", "All Filters", "Tous les filtres");
|
|
138
|
+
injectString("hu-HU", "All Filters", "Minden sz\u0171r\u0151");
|
|
139
|
+
injectString("id", "All Filters", "Semua Filter");
|
|
140
|
+
injectString("it", "All Filters", "Tutti i filtri");
|
|
141
|
+
injectString("ja", "All Filters", "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC");
|
|
142
|
+
injectString("ko-KR", "All Filters", "\uBAA8\uB4E0 \uD544\uD130");
|
|
143
|
+
injectString("ms", "All Filters", "Semua Penyaring");
|
|
144
|
+
injectString("nb-NO", "All Filters", "Alle filtre");
|
|
145
|
+
injectString("nl", "All Filters", "Alle filters");
|
|
146
|
+
injectString("pl", "All Filters", "Wszystkie filtry");
|
|
147
|
+
injectString("pt-BR", "All Filters", "Todos os filtros");
|
|
148
|
+
injectString("sk-SK", "All Filters", "V\u0161etky filtre");
|
|
149
|
+
injectString("sv", "All Filters", "Alla filter");
|
|
150
|
+
injectString("th", "All Filters", "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14");
|
|
151
|
+
injectString("tr", "All Filters", "T\xFCm Filtreler");
|
|
152
|
+
injectString("zh-Hans", "All Filters", "\u6240\u6709\u7B5B\u9009\u5668");
|
|
153
|
+
injectString("zh-TW", "All Filters", "\u6240\u6709\u7BE9\u9078\u5668");
|
|
154
|
+
injectString("cs", "Save", "Ulo\u017Eit");
|
|
155
|
+
injectString("da-DK", "Save", "Spare");
|
|
156
|
+
injectString("de", "Save", "Speichern");
|
|
157
|
+
injectString("en", "Save", "Save");
|
|
158
|
+
injectString("es", "Save", "Guardar");
|
|
159
|
+
injectString("fi-FI", "Save", "S\xE4\xE4st\xE4\xE4");
|
|
160
|
+
injectString("fr", "Save", "Enregistrer");
|
|
161
|
+
injectString("fr-FR", "Save", "Enregistrer");
|
|
162
|
+
injectString("hu-HU", "Save", "Ment\xE9s");
|
|
163
|
+
injectString("id", "Save", "Simpan");
|
|
164
|
+
injectString("it", "Save", "Salvare");
|
|
165
|
+
injectString("ja", "Save", "\u4FDD\u5B58");
|
|
166
|
+
injectString("ko-KR", "Save", "\uC800\uC7A5");
|
|
167
|
+
injectString("ms", "Save", "Simpan");
|
|
168
|
+
injectString("nb-NO", "Save", "Lagre");
|
|
169
|
+
injectString("nl", "Save", "Opslaan");
|
|
170
|
+
injectString("pl", "Save", "Zapisz");
|
|
171
|
+
injectString("pt-BR", "Save", "Salvar");
|
|
172
|
+
injectString("sk-SK", "Save", "Ulo\u017Ei\u0165");
|
|
173
|
+
injectString("sv", "Save", "Spara");
|
|
174
|
+
injectString("th", "Save", "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01");
|
|
175
|
+
injectString("tr", "Save", "Kaydet");
|
|
176
|
+
injectString("zh-Hans", "Save", "\u4FDD\u5B58");
|
|
177
|
+
injectString("zh-TW", "Save", "\u5132\u5B58");
|
|
178
|
+
injectString("en", "Pin", "Pin");
|
|
179
|
+
injectString("cs", "Close", "Zav\u0159\xEDt");
|
|
180
|
+
injectString("da-DK", "Close", "Luk");
|
|
181
|
+
injectString("de", "Close", "Schlie\xDFen");
|
|
182
|
+
injectString("en", "Close", "Close");
|
|
183
|
+
injectString("es", "Close", "Cerrar");
|
|
184
|
+
injectString("fi-FI", "Close", "Sulje");
|
|
185
|
+
injectString("fr", "Close", "Fermer");
|
|
186
|
+
injectString("fr-FR", "Close", "Fermer");
|
|
187
|
+
injectString("hu-HU", "Close", "Z\xE1rd be.");
|
|
188
|
+
injectString("id", "Close", "Tutup");
|
|
189
|
+
injectString("it", "Close", "Chiudere");
|
|
190
|
+
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
191
|
+
injectString("ko-KR", "Close", "\uB2EB\uAE30");
|
|
192
|
+
injectString("ms", "Close", "Tutup");
|
|
193
|
+
injectString("nb-NO", "Close", "Lukk");
|
|
194
|
+
injectString("nl", "Close", "Sluiten");
|
|
195
|
+
injectString("pl", "Close", "Zamknij");
|
|
196
|
+
injectString("pt-BR", "Close", "Fechar");
|
|
197
|
+
injectString("sk-SK", "Close", "Zatvor");
|
|
198
|
+
injectString("sv", "Close", "St\xE4ng");
|
|
199
|
+
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
200
|
+
injectString("tr", "Close", "Kapat");
|
|
201
|
+
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
202
|
+
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
28
203
|
const isElementsEqual_1 = require("../../utils/compareElementsUtils/isElementsEqual");
|
|
29
204
|
const filtersEmptySelectedList_1 = require("./filtersEmptySelectedList");
|
|
30
205
|
const SELECTED_TAB_ID = "Selected";
|
|
31
|
-
const getSelectedOption =
|
|
32
|
-
|
|
33
|
-
|
|
206
|
+
const getSelectedOption = translate => ({
|
|
207
|
+
id: SELECTED_TAB_ID,
|
|
208
|
+
name: translate("Selected")
|
|
34
209
|
});
|
|
35
|
-
const FiltersSidePanel = ({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (!inhibitedFilters.has(key)) {
|
|
110
|
-
stateForApply[key] = currentState[key];
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
onApply(stateForApply);
|
|
115
|
-
onClose();
|
|
116
|
-
}, [currentState, externalMode, inhibitedFilters, onApply, onClose]);
|
|
117
|
-
const handleCancelClick = (0, react_1.useCallback)(() => {
|
|
118
|
-
const newState = (0, filtersHelper_1.createStateObject)(filters, "state");
|
|
119
|
-
externalMode && setExternalState ? setExternalState(Object.assign({}, newState)) : setFiltersInternalState(newState);
|
|
120
|
-
onClose();
|
|
121
|
-
}, [externalMode, filters, onClose, setExternalState]);
|
|
122
|
-
const handleExternalModeClose = (0, react_1.useCallback)(() => {
|
|
123
|
-
if (!(externalMode && initialExternalState && setExternalState)) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
setExternalState(initialExternalState);
|
|
127
|
-
onClose();
|
|
128
|
-
}, [externalMode, initialExternalState, onClose, setExternalState]);
|
|
129
|
-
const toggleSaveModal = (0, react_1.useCallback)(() => {
|
|
130
|
-
var _a;
|
|
131
|
-
isSaveModalOpen && ((_a = saveButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus());
|
|
132
|
-
setIsSaveModalOpen(val => !val);
|
|
133
|
-
}, [isSaveModalOpen]);
|
|
134
|
-
const handleSaveFilters = (0, react_1.useCallback)((filterName) => {
|
|
135
|
-
const stateForApply = externalMode ? currentState : {};
|
|
136
|
-
if (!externalMode) {
|
|
137
|
-
Object.keys(currentState).forEach(key => {
|
|
138
|
-
if (!inhibitedFilters.has(key)) {
|
|
139
|
-
stateForApply[key] = currentState[key];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
onSave && onSave(filterName, stateForApply);
|
|
144
|
-
}, [externalMode, currentState, onSave, inhibitedFilters]);
|
|
145
|
-
const sidePanelItemChangeHandler = (0, react_1.useCallback)((id) => externalMode ? handleExternalFiltersStateChange(id) : handleInternalFiltersStateChange(id), [externalMode, handleExternalFiltersStateChange, handleInternalFiltersStateChange]);
|
|
146
|
-
const handleErrorCheck = (0, react_1.useCallback)((id) => (isError) => {
|
|
147
|
-
if (isError && errorItems.has(id) || !isError && !errorItems.has(id)) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const newErrorItems = new Set(errorItems);
|
|
151
|
-
newErrorItems[isError ? "add" : "delete"](id);
|
|
152
|
-
setErrorItems(newErrorItems);
|
|
153
|
-
}, [errorItems]);
|
|
154
|
-
const tabsContent = (0, react_1.useMemo)(() => filteredCurrentFilters
|
|
155
|
-
.map((item) => ((0, jsx_runtime_1.jsx)(filtersSidePanelItem_1.FiltersSidePanelItem, { item: item, itemState: currentState[item.props.id], changeHandler: sidePanelItemChangeHandler(item.props.id), errorCheck: handleErrorCheck(item.props.id) }, item.props.id))), [filteredCurrentFilters, currentState, sidePanelItemChangeHandler, handleErrorCheck]);
|
|
156
|
-
const defaultStateObject = (0, react_1.useMemo)(() => (0, filtersHelper_1.createStateObject)(filteredCurrentFilters, "defaultState"), [filteredCurrentFilters]);
|
|
157
|
-
const getSelectedIds = (0, react_1.useCallback)(() => {
|
|
158
|
-
const selected = [];
|
|
159
|
-
filteredCurrentFilters.forEach((el) => {
|
|
160
|
-
const itemState = currentState[el.props.id];
|
|
161
|
-
const defaultState = defaultStateObject[el.props.id];
|
|
162
|
-
if (!(0, isElementsEqual_1.isElementsEqual)(itemState, defaultState) && !inhibitedFilters.has(el.props.id)) {
|
|
163
|
-
selected.push(el.props.id);
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
return selected;
|
|
167
|
-
}, [currentState, defaultStateObject, filteredCurrentFilters, inhibitedFilters]);
|
|
168
|
-
const tabOptions = (0, react_1.useMemo)(() => [
|
|
169
|
-
(0, filtersSelect_1.getAllOption)(translate),
|
|
170
|
-
Object.assign(Object.assign({}, getSelectedOption(translate)), { quantity: getSelectedIds().length || undefined })
|
|
171
|
-
], [getSelectedIds, translate]);
|
|
172
|
-
const onTabChange = (newVal) => {
|
|
173
|
-
setActiveTabId(newVal);
|
|
210
|
+
const FiltersSidePanel = ({
|
|
211
|
+
isOpen,
|
|
212
|
+
onApply,
|
|
213
|
+
onClose,
|
|
214
|
+
onPin,
|
|
215
|
+
isPinned,
|
|
216
|
+
filters,
|
|
217
|
+
externalState,
|
|
218
|
+
setExternalState,
|
|
219
|
+
triggerRef
|
|
220
|
+
}) => {
|
|
221
|
+
var _a;
|
|
222
|
+
const {
|
|
223
|
+
translate
|
|
224
|
+
} = (0, useLanguage_1.useLanguage)();
|
|
225
|
+
const isLongTextLanguages = (0, react_1.useMemo)(() => `${translate("Reset")}${translate("Cancel")}${translate("Apply")}`.length > 31, [translate]);
|
|
226
|
+
const dataShieldId = (0, useUniqueId_1.useUniqueId)();
|
|
227
|
+
const iconDriveClassName = (0, useDriveClassName_1.useDriveClassName)("icon");
|
|
228
|
+
const {
|
|
229
|
+
dark
|
|
230
|
+
} = (0, react_1.useContext)(themeContext_1.themeContext);
|
|
231
|
+
const isMobile = (0, useMobile_1.useMobile)();
|
|
232
|
+
const {
|
|
233
|
+
setScrollHidden,
|
|
234
|
+
resetScroll
|
|
235
|
+
} = (0, useBodyScroll_1.useBodyScroll)();
|
|
236
|
+
const {
|
|
237
|
+
onSave
|
|
238
|
+
} = (0, filtersSavedItemsProvider_1.useFiltersSavedItems)();
|
|
239
|
+
const [activeTabId, setActiveTabId] = (0, react_1.useState)(filtersSelect_1.ALL_SELECT_OPTION_ID);
|
|
240
|
+
const [isSaveModalOpen, setIsSaveModalOpen] = (0, react_1.useState)(false);
|
|
241
|
+
const [filtersInternalState, setFiltersInternalState] = (0, react_1.useState)((0, filtersHelper_1.createStateObject)(filters, "state"));
|
|
242
|
+
const [initialExternalState, setInitialExternalState] = (0, react_1.useState)(externalState);
|
|
243
|
+
const prevIsOpenRef = (0, react_1.useRef)(false);
|
|
244
|
+
const [selectedIds, setSelectedIds] = (0, react_1.useState)([]);
|
|
245
|
+
const [errorItems, setErrorItems] = (0, react_1.useState)(new Set());
|
|
246
|
+
const saveButtonRef = (0, react_1.useRef)(null);
|
|
247
|
+
const externalMode = (0, react_1.useMemo)(() => {
|
|
248
|
+
if (externalState === undefined || setExternalState === undefined) {
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
return true;
|
|
252
|
+
}, [externalState, setExternalState]);
|
|
253
|
+
const handleInternalFiltersStateChange = (0, react_1.useCallback)(id => newState => {
|
|
254
|
+
setFiltersInternalState(prevState => Object.assign(Object.assign({}, prevState), {
|
|
255
|
+
[id]: newState
|
|
256
|
+
}));
|
|
257
|
+
}, []);
|
|
258
|
+
const handleExternalFiltersStateChange = (0, react_1.useCallback)(id => newState => {
|
|
259
|
+
setExternalState && setExternalState({
|
|
260
|
+
[id]: newState
|
|
261
|
+
});
|
|
262
|
+
}, [setExternalState]);
|
|
263
|
+
const currentState = (0, react_1.useMemo)(() => externalMode ? externalState : filtersInternalState, [externalMode, externalState, filtersInternalState]);
|
|
264
|
+
const currentFilters = (0, react_1.useMemo)(() => filters.filter(item => currentState.hasOwnProperty(item.props.id) && (typeof item.props.visible === "boolean" ? item.props.visible : item.props.visible === undefined ? true : item.props.visible([filtersSelect_1.ALL_SELECT_OPTION_ID], currentState) || item.props.visible([filtersSelect_1.ALL_SELECT_OPTION_ID]))), [currentState, filters]);
|
|
265
|
+
const inhibitedFilters = (0, react_1.useMemo)(() => {
|
|
266
|
+
const inhibited = new Set();
|
|
267
|
+
currentFilters.forEach(item => {
|
|
268
|
+
if (item.props.inhibit && item.props.inhibit.length > 0) {
|
|
269
|
+
item.props.inhibit.forEach(id => inhibited.add(id));
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
return inhibited;
|
|
273
|
+
}, [currentFilters]);
|
|
274
|
+
const filteredCurrentFilters = (0, react_1.useMemo)(() => currentFilters.filter(item => !externalMode ? !inhibitedFilters.has(item.props.id) : true), [currentFilters, externalMode, inhibitedFilters]);
|
|
275
|
+
const handleReadyForFocus = (0, react_1.useCallback)(isCurrentOpen => {
|
|
276
|
+
if (!isCurrentOpen) {
|
|
277
|
+
triggerRef.current.focus();
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
}, [triggerRef]);
|
|
281
|
+
(0, react_1.useEffect)(() => {
|
|
282
|
+
const handleOpen = () => {
|
|
283
|
+
setScrollHidden();
|
|
174
284
|
};
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
prevIsOpenRef.current = isOpen;
|
|
198
|
-
isOpen && resetInitialComponentState();
|
|
199
|
-
}
|
|
200
|
-
}, [isOpen, resetInitialComponentState]);
|
|
201
|
-
const handleHidePanel = (0, react_1.useCallback)((reason, shieldId) => {
|
|
202
|
-
if (isSaveModalOpen) {
|
|
203
|
-
return;
|
|
285
|
+
const handleClose = () => {
|
|
286
|
+
resetScroll();
|
|
287
|
+
};
|
|
288
|
+
if (isOpen) {
|
|
289
|
+
handleOpen();
|
|
290
|
+
} else {
|
|
291
|
+
handleClose();
|
|
292
|
+
}
|
|
293
|
+
return () => {
|
|
294
|
+
handleClose();
|
|
295
|
+
};
|
|
296
|
+
}, [isOpen, setScrollHidden, resetScroll]);
|
|
297
|
+
const handleClearClick = (0, react_1.useCallback)(() => {
|
|
298
|
+
const newState = (0, filtersHelper_1.createStateObject)(filters, "defaultState");
|
|
299
|
+
externalMode && setExternalState ? setExternalState(Object.assign({}, newState)) : setFiltersInternalState(newState);
|
|
300
|
+
}, [externalMode, filters, setExternalState]);
|
|
301
|
+
const handleApplyClick = (0, react_1.useCallback)(() => {
|
|
302
|
+
const stateForApply = externalMode ? currentState : {};
|
|
303
|
+
if (!externalMode) {
|
|
304
|
+
Object.keys(currentState).forEach(key => {
|
|
305
|
+
if (!inhibitedFilters.has(key)) {
|
|
306
|
+
stateForApply[key] = currentState[key];
|
|
204
307
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
onApply(stateForApply);
|
|
311
|
+
onClose();
|
|
312
|
+
}, [currentState, externalMode, inhibitedFilters, onApply, onClose]);
|
|
313
|
+
const handleCancelClick = (0, react_1.useCallback)(() => {
|
|
314
|
+
const newState = (0, filtersHelper_1.createStateObject)(filters, "state");
|
|
315
|
+
externalMode && setExternalState ? setExternalState(Object.assign({}, newState)) : setFiltersInternalState(newState);
|
|
316
|
+
onClose();
|
|
317
|
+
}, [externalMode, filters, onClose, setExternalState]);
|
|
318
|
+
const handleExternalModeClose = (0, react_1.useCallback)(() => {
|
|
319
|
+
if (!(externalMode && initialExternalState && setExternalState)) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
setExternalState(initialExternalState);
|
|
323
|
+
onClose();
|
|
324
|
+
}, [externalMode, initialExternalState, onClose, setExternalState]);
|
|
325
|
+
const toggleSaveModal = (0, react_1.useCallback)(() => {
|
|
326
|
+
var _a;
|
|
327
|
+
isSaveModalOpen && ((_a = saveButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus());
|
|
328
|
+
setIsSaveModalOpen(val => !val);
|
|
329
|
+
}, [isSaveModalOpen]);
|
|
330
|
+
const handleSaveFilters = (0, react_1.useCallback)(filterName => {
|
|
331
|
+
const stateForApply = externalMode ? currentState : {};
|
|
332
|
+
if (!externalMode) {
|
|
333
|
+
Object.keys(currentState).forEach(key => {
|
|
334
|
+
if (!inhibitedFilters.has(key)) {
|
|
335
|
+
stateForApply[key] = currentState[key];
|
|
208
336
|
}
|
|
209
|
-
|
|
210
|
-
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
onSave && onSave(filterName, stateForApply);
|
|
340
|
+
}, [externalMode, currentState, onSave, inhibitedFilters]);
|
|
341
|
+
const sidePanelItemChangeHandler = (0, react_1.useCallback)(id => externalMode ? handleExternalFiltersStateChange(id) : handleInternalFiltersStateChange(id), [externalMode, handleExternalFiltersStateChange, handleInternalFiltersStateChange]);
|
|
342
|
+
const handleErrorCheck = (0, react_1.useCallback)(id => isError => {
|
|
343
|
+
if (isError && errorItems.has(id) || !isError && !errorItems.has(id)) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
const newErrorItems = new Set(errorItems);
|
|
347
|
+
newErrorItems[isError ? "add" : "delete"](id);
|
|
348
|
+
setErrorItems(newErrorItems);
|
|
349
|
+
}, [errorItems]);
|
|
350
|
+
const tabsContent = (0, react_1.useMemo)(() => filteredCurrentFilters.map(item => (0, jsx_runtime_1.jsx)(filtersSidePanelItem_1.FiltersSidePanelItem, {
|
|
351
|
+
item: item,
|
|
352
|
+
itemState: currentState[item.props.id],
|
|
353
|
+
changeHandler: sidePanelItemChangeHandler(item.props.id),
|
|
354
|
+
errorCheck: handleErrorCheck(item.props.id)
|
|
355
|
+
}, item.props.id)), [filteredCurrentFilters, currentState, sidePanelItemChangeHandler, handleErrorCheck]);
|
|
356
|
+
const defaultStateObject = (0, react_1.useMemo)(() => (0, filtersHelper_1.createStateObject)(filteredCurrentFilters, "defaultState"), [filteredCurrentFilters]);
|
|
357
|
+
const getSelectedIds = (0, react_1.useCallback)(() => {
|
|
358
|
+
const selected = [];
|
|
359
|
+
filteredCurrentFilters.forEach(el => {
|
|
360
|
+
const itemState = currentState[el.props.id];
|
|
361
|
+
const defaultState = defaultStateObject[el.props.id];
|
|
362
|
+
if (!(0, isElementsEqual_1.isElementsEqual)(itemState, defaultState) && !inhibitedFilters.has(el.props.id)) {
|
|
363
|
+
selected.push(el.props.id);
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
return selected;
|
|
367
|
+
}, [currentState, defaultStateObject, filteredCurrentFilters, inhibitedFilters]);
|
|
368
|
+
const tabOptions = (0, react_1.useMemo)(() => [(0, filtersSelect_1.getAllOption)(translate), Object.assign(Object.assign({}, getSelectedOption(translate)), {
|
|
369
|
+
quantity: getSelectedIds().length || undefined
|
|
370
|
+
})], [getSelectedIds, translate]);
|
|
371
|
+
const onTabChange = newVal => {
|
|
372
|
+
setActiveTabId(newVal);
|
|
373
|
+
};
|
|
374
|
+
const selectedTabsContent = (0, react_1.useMemo)(() => selectedIds.length ? filteredCurrentFilters.filter(el => selectedIds.includes(el.props.id)).map(item => (0, jsx_runtime_1.jsx)(filtersSidePanelItem_1.FiltersSidePanelItem, {
|
|
375
|
+
item: item,
|
|
376
|
+
itemState: currentState[item.props.id],
|
|
377
|
+
changeHandler: sidePanelItemChangeHandler(item.props.id),
|
|
378
|
+
errorCheck: handleErrorCheck(item.props.id)
|
|
379
|
+
}, item.props.id)) : (0, jsx_runtime_1.jsx)(filtersEmptySelectedList_1.FiltersEmptySelectedList, {}), [selectedIds, filteredCurrentFilters, currentState, sidePanelItemChangeHandler, handleErrorCheck]);
|
|
380
|
+
(0, react_1.useEffect)(() => {
|
|
381
|
+
if (!isOpen) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
if (activeTabId === SELECTED_TAB_ID) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
setSelectedIds(getSelectedIds());
|
|
388
|
+
}, [activeTabId, getSelectedIds, isOpen]);
|
|
389
|
+
const resetInitialComponentState = (0, react_1.useCallback)(() => {
|
|
390
|
+
setIsSaveModalOpen(false);
|
|
391
|
+
setActiveTabId(filtersSelect_1.ALL_SELECT_OPTION_ID);
|
|
392
|
+
setFiltersInternalState((0, filtersHelper_1.createStateObject)(filters, "state"));
|
|
393
|
+
setInitialExternalState(externalState);
|
|
394
|
+
setSelectedIds([]);
|
|
395
|
+
setSelectedIds(getSelectedIds());
|
|
396
|
+
}, [externalState, filters, getSelectedIds]);
|
|
397
|
+
(0, react_1.useEffect)(() => {
|
|
398
|
+
if (isOpen !== prevIsOpenRef.current) {
|
|
399
|
+
prevIsOpenRef.current = isOpen;
|
|
400
|
+
isOpen && resetInitialComponentState();
|
|
401
|
+
}
|
|
402
|
+
}, [isOpen, resetInitialComponentState]);
|
|
403
|
+
const handleHidePanel = (0, react_1.useCallback)((reason, shieldId) => {
|
|
404
|
+
if (isSaveModalOpen) {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (reason === sidePanel_1.SidePanelCloseReason.ClickOutside && shieldId === dataShieldId || reason === sidePanel_1.SidePanelCloseReason.Escape) {
|
|
408
|
+
onClose();
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
}, [isSaveModalOpen, dataShieldId, onClose]);
|
|
412
|
+
return (0, jsx_runtime_1.jsxs)(react_1.Fragment, {
|
|
413
|
+
children: [(0, jsx_runtime_1.jsx)(shield_1.Shield, {
|
|
414
|
+
className: "zen-high-level-shield",
|
|
415
|
+
dataShieldId: dataShieldId,
|
|
416
|
+
isVisible: isOpen
|
|
417
|
+
}), (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(sidePanel_1.SidePanel, {
|
|
418
|
+
triggerRef: triggerRef,
|
|
419
|
+
isOpen: isOpen,
|
|
420
|
+
label: translate("All Filters"),
|
|
421
|
+
onHidePanel: handleHidePanel,
|
|
422
|
+
className: (0, classNames_1.classNames)(["zen-side-panel-filters", dark ? "zen-dark" : ""]),
|
|
423
|
+
onTransitionEnd: handleReadyForFocus,
|
|
424
|
+
children: (0, jsx_runtime_1.jsxs)("div", {
|
|
425
|
+
className: "zen-side-panel-filters-wrapper",
|
|
426
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
427
|
+
className: "zen-side-panel-filters__header",
|
|
428
|
+
children: [(0, jsx_runtime_1.jsx)("div", {
|
|
429
|
+
className: "zen-side-panel-filters__title-wrapper",
|
|
430
|
+
children: (0, jsx_runtime_1.jsx)("div", {
|
|
431
|
+
className: "zen-side-panel-filters__title zen-ellipsis",
|
|
432
|
+
children: translate("All Filters")
|
|
433
|
+
})
|
|
434
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
435
|
+
className: "zen-side-panel-filters__header-buttons",
|
|
436
|
+
children: [onSave && (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
437
|
+
type: "tertiary",
|
|
438
|
+
ref: saveButtonRef,
|
|
439
|
+
className: "zen-side-panel-filters__save-button zen-side-panel-filters__header-button",
|
|
440
|
+
title: translate("Save"),
|
|
441
|
+
"aria-label": translate("Save"),
|
|
442
|
+
onClick: toggleSaveModal,
|
|
443
|
+
children: (0, jsx_runtime_1.jsx)(iconDisk_1.IconDisk, {
|
|
444
|
+
description: translate("Save"),
|
|
445
|
+
className: "svgIcon",
|
|
446
|
+
size: iconDriveClassName ? "huge" : "large"
|
|
447
|
+
})
|
|
448
|
+
}), onPin && (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
449
|
+
type: "tertiary",
|
|
450
|
+
className: (0, classNames_1.classNames)(["zen-side-panel-filters__pin-button", isPinned ? "zen-side-panel-filters__header-button--active" : "", "zen-side-panel-filters__header-button"]),
|
|
451
|
+
title: translate("Pin"),
|
|
452
|
+
"aria-label": translate("Pin"),
|
|
453
|
+
onClick: onPin,
|
|
454
|
+
children: (0, jsx_runtime_1.jsx)(iconPin2_1.IconPin2, {
|
|
455
|
+
description: translate("Pin"),
|
|
456
|
+
className: "svgIcon",
|
|
457
|
+
size: iconDriveClassName ? "huge" : "large"
|
|
458
|
+
})
|
|
459
|
+
}), (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, {
|
|
460
|
+
type: "tertiary-black",
|
|
461
|
+
className: "zen-side-panel-filters__close-button",
|
|
462
|
+
icon: iconClose_1.IconClose,
|
|
463
|
+
iconSize: "large",
|
|
464
|
+
onClick: externalMode ? handleExternalModeClose : onClose,
|
|
465
|
+
iconPosition: textIconButton_1.ButtonIconPosition.Start,
|
|
466
|
+
title: translate("Close")
|
|
467
|
+
})]
|
|
468
|
+
})]
|
|
469
|
+
}), (0, jsx_runtime_1.jsx)(tabs_1.Tabs, {
|
|
470
|
+
activeTabId: activeTabId,
|
|
471
|
+
className: "zen-side-panel-filters__tab-header",
|
|
472
|
+
onTabChange: onTabChange,
|
|
473
|
+
tabs: tabOptions
|
|
474
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
475
|
+
className: "zen-side-panel-filters__content",
|
|
476
|
+
children: [(0, jsx_runtime_1.jsx)("div", {
|
|
477
|
+
id: `panel-${filtersSelect_1.ALL_SELECT_OPTION_ID}`,
|
|
478
|
+
className: (0, classNames_1.classNames)(["zen-side-panel-filters__tab-content", activeTabId === filtersSelect_1.ALL_SELECT_OPTION_ID ? "zen-side-panel-filters__tab-content--active" : "zen-side-panel-filters__tab-content--hidden"]),
|
|
479
|
+
role: "tabpanel",
|
|
480
|
+
"aria-labelledby": filtersSelect_1.ALL_SELECT_OPTION_ID,
|
|
481
|
+
children: activeTabId === filtersSelect_1.ALL_SELECT_OPTION_ID ? tabsContent : null
|
|
482
|
+
}), (0, jsx_runtime_1.jsx)("div", {
|
|
483
|
+
id: `panel-${SELECTED_TAB_ID}`,
|
|
484
|
+
className: (0, classNames_1.classNames)(["zen-side-panel-filters__tab-content", activeTabId === SELECTED_TAB_ID ? "zen-side-panel-filters__tab-content--active" : "zen-side-panel-filters__tab-content--hidden"]),
|
|
485
|
+
role: "tabpanel",
|
|
486
|
+
"aria-labelledby": SELECTED_TAB_ID,
|
|
487
|
+
children: activeTabId === SELECTED_TAB_ID ? selectedTabsContent : null
|
|
488
|
+
})]
|
|
489
|
+
}), (0, jsx_runtime_1.jsx)("div", {
|
|
490
|
+
className: (0, classNames_1.classNames)(["zen-side-panel-filters__footer", isMobile ? "zen-side-panel-filters__footer--mobile" : "", isLongTextLanguages && !isMobile ? "zen-side-panel-filters__footer--long-text" : ""]),
|
|
491
|
+
children: isMobile ? (0, jsx_runtime_1.jsxs)(footerButtons_1.FooterButtons, {
|
|
492
|
+
children: [(0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
493
|
+
className: "zen-side-panel-filters__apply-button",
|
|
494
|
+
onClick: handleApplyClick,
|
|
495
|
+
type: "primary",
|
|
496
|
+
disabled: errorItems.size > 0,
|
|
497
|
+
children: translate("Apply")
|
|
498
|
+
}), (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
499
|
+
className: "zen-side-panel-filters__cancel-button",
|
|
500
|
+
type: "secondary",
|
|
501
|
+
onClick: handleCancelClick,
|
|
502
|
+
children: translate("Cancel")
|
|
503
|
+
}), (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
504
|
+
className: "zen-side-panel-filters__clear-button",
|
|
505
|
+
onClick: handleClearClick,
|
|
506
|
+
type: "tertiary",
|
|
507
|
+
children: translate("Reset")
|
|
508
|
+
})]
|
|
509
|
+
}) : (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, {
|
|
510
|
+
children: [(0, jsx_runtime_1.jsx)("div", {
|
|
511
|
+
className: "zen-side-panel-filters__footer-section",
|
|
512
|
+
children: (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
513
|
+
type: "tertiary",
|
|
514
|
+
className: "zen-side-panel-filters__clear-button",
|
|
515
|
+
onClick: handleClearClick,
|
|
516
|
+
children: translate("Reset")
|
|
517
|
+
})
|
|
518
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
519
|
+
className: "zen-side-panel-filters__footer-section",
|
|
520
|
+
children: [(0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
521
|
+
className: "zen-side-panel-filters__cancel-button",
|
|
522
|
+
type: "secondary",
|
|
523
|
+
onClick: handleCancelClick,
|
|
524
|
+
children: translate("Cancel")
|
|
525
|
+
}), (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
526
|
+
className: "zen-side-panel-filters__apply-button zen-side-panel-filters__apply-button--desktop",
|
|
527
|
+
onClick: handleApplyClick,
|
|
528
|
+
type: "primary",
|
|
529
|
+
disabled: errorItems.size > 0,
|
|
530
|
+
children: translate("Apply")
|
|
531
|
+
})]
|
|
532
|
+
})]
|
|
533
|
+
})
|
|
534
|
+
})]
|
|
535
|
+
})
|
|
536
|
+
}), (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.body), (0, jsx_runtime_1.jsx)(filtersSaveModal_1.FiltersSaveModal, {
|
|
537
|
+
className: sidePanel_1.CUSTOM_POPUP_COMPONENT_CLASSNAME,
|
|
538
|
+
isOpen: isSaveModalOpen,
|
|
539
|
+
onClose: toggleSaveModal,
|
|
540
|
+
onSave: handleSaveFilters
|
|
541
|
+
})]
|
|
542
|
+
});
|
|
211
543
|
};
|
|
212
|
-
exports.FiltersSidePanel = FiltersSidePanel;
|
|
544
|
+
exports.FiltersSidePanel = FiltersSidePanel;
|