@geotab/zenith 3.11.1 → 3.12.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 +70 -0
- package/dist/absolute/absolute.d.ts +21 -1
- package/dist/absolute/absolute.js +46 -6
- package/dist/advancedGroupsFilter/advancedGroupsFilter.js +3 -3
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +7 -7
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -1
- package/dist/alert/banner.d.ts +3 -1
- package/dist/alertRaw/alertRaw.js +1 -1
- package/dist/banner/banner.d.ts +5 -2
- package/dist/banner/banner.js +13 -2
- package/dist/banner/bannerErrorSummary.d.ts +7 -0
- package/dist/banner/bannerErrorSummary.js +8 -0
- package/dist/banner/bannerMultipLine.js +1 -1
- package/dist/banner/bannerSingleLine.js +1 -1
- package/dist/banner/utils/buildSummaryErrorList.d.ts +1 -0
- package/dist/banner/utils/buildSummaryErrorList.js +16 -0
- package/dist/banner/utils/hasSummaryErrorChild.d.ts +1 -0
- package/dist/banner/utils/hasSummaryErrorChild.js +7 -0
- package/dist/banner/utils/isSummaryErrorBanner.d.ts +2 -0
- package/dist/banner/utils/isSummaryErrorBanner.js +6 -0
- package/dist/banner/utils/isSummaryErrorElement.d.ts +3 -0
- package/dist/banner/utils/isSummaryErrorElement.js +7 -0
- package/dist/banner/utils/useSummaryBannerProp.d.ts +6 -0
- package/dist/banner/utils/useSummaryBannerProp.js +34 -0
- package/dist/betaPill/betaPill.js +4 -4
- package/dist/bookmark/bookmark.js +2 -2
- package/dist/bulkEditControl/bulkEditControl.js +5 -5
- package/dist/calendar/calendar.js +37 -34
- package/dist/calendar/calendarUtils.js +6 -4
- package/dist/card/card.js +1 -1
- package/dist/card/components/title.js +4 -1
- package/dist/card/components/titleLink.js +5 -2
- package/dist/chart/accessibleChart/accessibleChartNarrative.js +13 -13
- package/dist/chart/accessibleChart/accessibleChartTable.js +5 -5
- package/dist/chart/barChart/getDefaultOptions.d.ts +2 -1
- package/dist/chart/barChart/getDefaultOptions.js +5 -2
- package/dist/chart/barChart.js +6 -4
- package/dist/chart/chart.js +1 -1
- package/dist/chart/chartAxis/chartAxis.js +2 -2
- package/dist/chart/lineChart/getDefaultOptions.d.ts +4 -1
- package/dist/chart/lineChart/getDefaultOptions.js +7 -2
- package/dist/chart/lineChart.js +7 -3
- package/dist/chart/plugins/linePlugin/linePlugin.js +5 -4
- package/dist/chart/utils/getXAxisMeta.js +8 -5
- package/dist/chart/utils/isDateRange.js +1 -1
- package/dist/chart/utils/useHidden.d.ts +1 -0
- package/dist/chart/utils/useHidden.js +1 -1
- package/dist/chart/utils/useLastVisibleXAxisMeta.d.ts +2 -0
- package/dist/chart/utils/useLastVisibleXAxisMeta.js +15 -0
- package/dist/checkboxListWithAction/checkboxListWithAction.js +8 -5
- package/dist/chip/chip.js +1 -1
- package/dist/columnsSelector/columnsSelector.js +2 -2
- package/dist/columnsSelector/columnsTab/columnsTab.js +1 -1
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.js +1 -1
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +4 -1
- package/dist/commonStyles/columnsList.less +59 -0
- package/dist/commonStyles/link/link.less +1 -1
- package/dist/commonStyles/pillStyles/pillContent.less +14 -15
- package/dist/commonStyles/pillStyles/pillStyles.less +4 -5
- package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
- package/dist/commonStyles/pillStyles/pillTypes.less +1 -1
- package/dist/commonStyles/popupMixin.less +1 -1
- package/dist/commonStyles/selectButton.less +1 -1
- package/dist/commonStyles/typography/typography.less +545 -19
- package/dist/controlledPopup/controlledPopup.d.ts +1 -0
- package/dist/controlledPopup/controlledPopup.js +3 -1
- package/dist/dataFeed/feedExpandControl/feedExpandControl.js +5 -0
- package/dist/dataGrid/cell/cell.d.ts +2 -1
- package/dist/dataGrid/cell/cell.js +2 -2
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +1 -1
- package/dist/dataGrid/dataGrid.js +8 -5
- package/dist/dataGrid/emptySearchList/emptySearchList.js +1 -1
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +1 -1
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.js +2 -2
- package/dist/dataGrid/listColumn.d.ts +2 -0
- package/dist/dataGrid/row/row.d.ts +2 -1
- package/dist/dataGrid/row/row.js +13 -9
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -2
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +45 -116
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +4 -0
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +4 -0
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +5 -5
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +4 -3
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +2 -2
- package/dist/dateInputInner/dateInputInner.js +7 -7
- package/dist/dateInputInner/dateInputInnerControlBlock.js +2 -2
- package/dist/dateInputRaw/dateInputRaw.js +4 -4
- package/dist/dateInputRaw/utils/getLabel.js +2 -2
- package/dist/dateRangeInner/dateRangeInner.js +6 -3
- package/dist/dateRangeRaw/dateRangeRaw.d.ts +1 -0
- package/dist/dateRangeRaw/dateRangeRaw.js +21 -15
- package/dist/dateRangeRaw/types.d.ts +1 -0
- package/dist/dateRangeRaw/utils/dateRangeUtils.js +17 -17
- package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
- package/dist/dateSelectionWrapper/dateSelectionWrapper.js +4 -4
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dropdown/dropdownTrigger.d.ts +1 -1
- package/dist/dropdownRaw/dropdownList.js +9 -9
- package/dist/dropdownRaw/dropdownPopup.js +3 -3
- package/dist/dropdownRaw/dropdownRaw.js +34 -17
- package/dist/dropdownRaw/dropdownSearchableTrigger.d.ts +2 -1
- package/dist/dropdownRaw/dropdownSearchableTrigger.js +8 -6
- package/dist/dropdownRaw/dropdownTrigger.d.ts +2 -1
- package/dist/dropdownRaw/dropdownTrigger.js +2 -2
- package/dist/dropdownRaw/types.d.ts +2 -0
- package/dist/favoriteButton/favoriteButton.js +1 -1
- package/dist/fileUpload/components/dropZoneContent.js +104 -104
- package/dist/fileUpload/components/templateDownloadSection.js +1 -1
- package/dist/fileUpload/components/uploadedFilesSection.js +2 -2
- package/dist/fileUpload/fileUpload.js +106 -106
- package/dist/filterButton/filterButton.d.ts +1 -0
- package/dist/filters/components/filtersContainer.js +2 -2
- package/dist/filters/components/filtersDropdown.d.ts +1 -1
- package/dist/filters/components/filtersEmptyState.js +2 -2
- package/dist/filters/components/filtersSaveModal.js +5 -5
- package/dist/filters/components/filtersSavedChipComponent.js +11 -11
- package/dist/filters/components/filtersSearchItemData.js +1 -1
- package/dist/filters/components/filtersSearchList.js +14 -11
- package/dist/filters/components/filtersSelect.js +1 -1
- package/dist/filters/components/filtersSelectListItem.js +2 -2
- package/dist/filters/components/filtersSidePanel.js +8 -8
- package/dist/filters/filters.js +7 -7
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +1 -0
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +18 -18
- package/dist/filtersBar/components/resetComponentButton.js +1 -1
- package/dist/filtersBar/filtersBarActions/filtersBarActions.js +3 -3
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +5 -5
- package/dist/filtersBar/filtersContainer/filtersContainer.js +62 -61
- package/dist/formField/hooks/useError.js +3 -3
- package/dist/formField/hooks/useFormFieldProps.d.ts +1 -1
- package/dist/formField/hooks/useFormFieldProps.js +4 -2
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +2 -2
- package/dist/formGroup/hooks/useCustomRow.js +46 -32
- package/dist/formGroup/hooks/useRowElements.js +9 -6
- package/dist/formGroup/hooks/useToggle.js +1 -1
- package/dist/formGroup/types.d.ts +4 -0
- package/dist/formGroup/utils/normalizeFieldId.d.ts +1 -0
- package/dist/formGroup/utils/normalizeFieldId.js +5 -0
- package/dist/formGroup/utils/resolveId.d.ts +7 -0
- package/dist/formGroup/utils/resolveId.js +6 -0
- package/dist/formLayout/components/getLayoutColumns.js +4 -2
- package/dist/formLayout/hooks/useError.js +3 -3
- package/dist/formLayout/hooks/useErrorSummary.d.ts +6 -0
- package/dist/formLayout/hooks/useErrorSummary.js +34 -0
- package/dist/formLayout/hooks/useFormButtons.js +3 -3
- package/dist/formLayout/utils/applyGridPropsStatic.js +1 -1
- package/dist/formLayout/utils/flattenErrors.d.ts +5 -0
- package/dist/formLayout/utils/flattenErrors.js +14 -0
- package/dist/formLayout/utils/getChildrenWithCustomColumns.js +3 -0
- package/dist/formLayout/utils/getFieldLabel.d.ts +1 -0
- package/dist/formLayout/utils/getFieldLabel.js +26 -0
- package/dist/formSection/hooks/useError.js +3 -3
- package/dist/formStepper/components/formStep.js +1 -1
- package/dist/formStepper/formStepper.js +2 -2
- package/dist/formStepperButtons/formStepperButtons.js +8 -5
- package/dist/gridLayout/hooks/useGridClasses.js +3 -9
- package/dist/groupButtonRaw/groupButtonRaw.js +2 -2
- package/dist/groupButtonRaw/types.d.ts +1 -0
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +8 -5
- package/dist/groupsFilterRaw/groupsFilterBox.js +3 -3
- package/dist/groupsFilterRaw/groupsFilterCommon.js +2 -2
- package/dist/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +5 -5
- package/dist/groupsFilterRaw/groupsFilterHelper.js +2 -2
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +12 -9
- package/dist/groupsFilterRaw/groupsFilterMenu.js +3 -3
- package/dist/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.js +15 -10
- package/dist/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/dist/groupsFilterRaw/groupsFilterTrigger.js +8 -5
- package/dist/groupsFilterRaw/groupsHelper.js +22 -22
- package/dist/groupsFilterRaw/types.d.ts +2 -0
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +1 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.js +3 -3
- package/dist/header/header.js +1 -1
- package/dist/header/headerBack.js +5 -2
- package/dist/header/headerHelpers.d.ts +1 -0
- package/dist/header/headerHelpers.js +10 -1
- package/dist/header/hooks/useNonFittingElements.js +1 -1
- package/dist/icons/iconAlignLeft.js +1 -3
- package/dist/icons/iconAlignmentLeft.js +1 -3
- package/dist/icons/iconAlignmentRight.js +1 -3
- package/dist/icons/iconArrowBottomLeft.js +1 -3
- package/dist/icons/iconArrowBottomRight.js +1 -3
- package/dist/icons/iconArrowLeftPath.js +1 -3
- package/dist/icons/iconArrowRight.js +1 -3
- package/dist/icons/iconArrowRightCircle.js +1 -3
- package/dist/icons/iconArrowRightPath.js +1 -3
- package/dist/icons/iconArrowTopLeft.js +1 -3
- package/dist/icons/iconArrowTopRight.js +1 -3
- package/dist/icons/iconChevronDoubleRight.js +1 -3
- package/dist/icons/iconChevronRight.js +1 -3
- package/dist/icons/iconChevronRightSmall.js +1 -3
- package/dist/icons/iconCornerDownLeft.js +1 -3
- package/dist/icons/iconCornerDownRight.js +1 -3
- package/dist/icons/iconCornerLeftDown.js +1 -3
- package/dist/icons/iconCornerLeftUp.js +1 -3
- package/dist/icons/iconCornerRightDown.js +1 -3
- package/dist/icons/iconCornerRightUp.js +1 -3
- package/dist/icons/iconCornerUpLeft.js +1 -3
- package/dist/icons/iconCornerUpRight.js +1 -3
- package/dist/index.css +3628 -3321
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -14
- package/dist/lineChartMini/lineChartMini.js +15 -3
- package/dist/list/itemData/itemDataInternal.js +6 -3
- package/dist/list/listItem/listItem.js +6 -3
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +4 -1
- package/dist/menu/components/menuButton.d.ts +2 -1
- package/dist/menu/components/menuButton.js +7 -4
- package/dist/menu/components/menuErrorItem.js +2 -2
- package/dist/menu/components/menuItem.js +4 -4
- package/dist/menu/utils/useMenuItemCore.js +4 -3
- package/dist/miniTabs/miniTabs.d.ts +1 -0
- package/dist/miniTabs/miniTabs.js +1 -1
- package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -1
- package/dist/miniTabs/miniTabsHeaderItem.js +1 -1
- package/dist/miniTabs/miniTabsItem.d.ts +1 -0
- package/dist/mobileSheet/mobileSheet.js +2 -2
- package/dist/modal/modal.js +1 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.js +2 -2
- package/dist/nav/navFooter/navFooter.js +1 -1
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/dist/nav/navHeader/navHeader.js +2 -2
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +2 -2
- package/dist/nav/navItem/navItem.js +4 -1
- package/dist/nav/navMobileBar/navMobileBar.js +1 -1
- package/dist/notification/notification.js +1 -1
- package/dist/pagination/paginationArrow.js +12 -5
- package/dist/pagination/paginationText/paginationText.js +1 -1
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +1 -1
- package/dist/pillBox/components/pillBoxItem.js +1 -1
- package/dist/pillBox/pillBox.js +3 -3
- package/dist/pillExpandable/pillContent.js +12 -3
- package/dist/pillExpandable/pillExpandable.d.ts +4 -1
- package/dist/pillExpandable/pillExpandable.js +5 -3
- package/dist/pillExpandable/pillExpandableSimple.d.ts +1 -1
- package/dist/pillExpandable/pillExpandableSimple.js +4 -4
- package/dist/radioGroupRaw/radioGroupRaw.js +2 -1
- package/dist/rangeRaw/rangeRaw.js +7 -8
- package/dist/rangeRaw/utils/rangeHelper.js +7 -7
- package/dist/searchInputRaw/searchInputRaw.js +6 -3
- package/dist/selectList/selectList.js +2 -2
- package/dist/selectList/selectListItem.js +4 -1
- package/dist/skeleton/skeleton.js +1 -1
- package/dist/sortControl/sortControl.js +6 -7
- package/dist/stepperRaw/stepperRaw.js +5 -0
- package/dist/summary/summary.js +2 -2
- package/dist/summaryTile/summaryTile.d.ts +4 -2
- package/dist/summaryTile/summaryTile.js +59 -26
- package/dist/summaryTileBar/summaryTileBar.d.ts +4 -2
- package/dist/summaryTileBar/summaryTileBar.js +2 -2
- package/dist/table/actions/actionsMenu.js +2 -2
- package/dist/table/children/useTableChildren.d.ts +1 -1
- package/dist/table/children/useTableChildren.js +3 -3
- package/dist/table/detailPanel/detailPanel.js +1 -1
- package/dist/table/detailPanel/detailPanelHeader.js +2 -2
- package/dist/table/flexible/columnSettings.js +2 -2
- package/dist/table/flexible/columnsList.js +47 -117
- package/dist/table/flexible/columnsPopup.d.ts +1 -1
- package/dist/table/flexible/columnsPopup.js +1 -1
- package/dist/table/nested/useNestedRows.js +2 -2
- package/dist/table/selectable/selectableHeader.js +5 -4
- package/dist/table/selectable/useSelectableRows.d.ts +8 -0
- package/dist/table/selectable/useSelectableRows.js +16 -8
- package/dist/table/sortable/mobileSortControl.js +1 -1
- package/dist/table/sortable/sortableHeader.js +2 -2
- package/dist/table/table.js +3 -9
- package/dist/tabs/tabItem/tabItem.d.ts +2 -1
- package/dist/tabs/tabItem/tabItem.js +7 -2
- package/dist/tabs/tabs.d.ts +2 -1
- package/dist/tabs/tabs.js +71 -61
- package/dist/tabs/tabsTestHelper.js +2 -2
- package/dist/timePickerRaw/timePickerRaw.js +11 -9
- package/dist/timePickerRaw/types.d.ts +1 -0
- package/dist/toastRaw/toastRaw.js +1 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +7 -4
- package/dist/tooltip/tooltip.js +13 -5
- package/dist/utils/formatDate.js +37 -37
- package/dist/utils/localization/flipAlignment.js +12 -1
- package/dist/utils/localization/languageContext.d.ts +1 -1
- package/dist/utils/localization/translations/cs.json +7 -5
- package/dist/utils/localization/translations/da-DK.json +7 -5
- package/dist/utils/localization/translations/de.json +7 -5
- package/dist/utils/localization/translations/en.json +12 -1
- package/dist/utils/localization/translations/es.json +7 -5
- package/dist/utils/localization/translations/fi-FI.json +7 -5
- package/dist/utils/localization/translations/fr-FR.json +7 -5
- package/dist/utils/localization/translations/fr.json +7 -5
- package/dist/utils/localization/translations/hu-HU.json +7 -5
- package/dist/utils/localization/translations/id.json +7 -5
- package/dist/utils/localization/translations/it.json +7 -5
- package/dist/utils/localization/translations/ja.json +7 -5
- package/dist/utils/localization/translations/ko-KR.json +7 -5
- package/dist/utils/localization/translations/ms.json +7 -5
- package/dist/utils/localization/translations/nb-NO.json +7 -5
- package/dist/utils/localization/translations/nl.json +7 -5
- package/dist/utils/localization/translations/pl.json +7 -5
- package/dist/utils/localization/translations/pt-BR.json +7 -5
- package/dist/utils/localization/translations/pt-PT.json +7 -5
- package/dist/utils/localization/translations/ro-RO.json +7 -5
- package/dist/utils/localization/translations/sk-SK.json +7 -5
- package/dist/utils/localization/translations/sv.json +7 -5
- package/dist/utils/localization/translations/th.json +7 -5
- package/dist/utils/localization/translations/tr.json +7 -5
- package/dist/utils/localization/translations/zh-Hans.json +7 -5
- package/dist/utils/localization/translations/zh-TW.json +7 -5
- package/dist/utils/localization/useDirectionalIcon.d.ts +3 -0
- package/dist/utils/localization/useDirectionalIcon.js +9 -0
- package/dist/utils/positioningUtils/alignments.d.ts +2 -2
- package/dist/utils/positioningUtils/alignments.js +2 -2
- package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/dist/utils/positioningUtils/calculatePosition.js +11 -11
- package/dist/utils/positioningUtils/normalizeLogicalAlignment.d.ts +4 -0
- package/dist/utils/positioningUtils/normalizeLogicalAlignment.js +36 -0
- package/esm/absolute/absolute.d.ts +21 -1
- package/esm/absolute/absolute.js +46 -6
- package/esm/advancedGroupsFilter/advancedGroupsFilter.js +3 -3
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.js +7 -7
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -1
- package/esm/alert/banner.d.ts +3 -1
- package/esm/alertRaw/alertRaw.js +1 -1
- package/esm/banner/banner.d.ts +5 -2
- package/esm/banner/banner.js +13 -2
- package/esm/banner/bannerErrorSummary.d.ts +7 -0
- package/esm/banner/bannerErrorSummary.js +4 -0
- package/esm/banner/bannerMultipLine.js +1 -1
- package/esm/banner/bannerSingleLine.js +1 -1
- package/esm/banner/utils/buildSummaryErrorList.d.ts +1 -0
- package/esm/banner/utils/buildSummaryErrorList.js +12 -0
- package/esm/banner/utils/hasSummaryErrorChild.d.ts +1 -0
- package/esm/banner/utils/hasSummaryErrorChild.js +3 -0
- package/esm/banner/utils/isSummaryErrorBanner.d.ts +2 -0
- package/esm/banner/utils/isSummaryErrorBanner.js +2 -0
- package/esm/banner/utils/isSummaryErrorElement.d.ts +3 -0
- package/esm/banner/utils/isSummaryErrorElement.js +3 -0
- package/esm/banner/utils/useSummaryBannerProp.d.ts +6 -0
- package/esm/banner/utils/useSummaryBannerProp.js +25 -0
- package/esm/betaPill/betaPill.js +4 -4
- package/esm/bookmark/bookmark.js +2 -2
- package/esm/bulkEditControl/bulkEditControl.js +5 -5
- package/esm/calendar/calendar.js +37 -34
- package/esm/calendar/calendarUtils.js +6 -4
- package/esm/card/card.js +1 -1
- package/esm/card/components/title.js +4 -1
- package/esm/card/components/titleLink.js +5 -2
- package/esm/chart/accessibleChart/accessibleChartNarrative.js +13 -13
- package/esm/chart/accessibleChart/accessibleChartTable.js +5 -5
- package/esm/chart/barChart/getDefaultOptions.d.ts +2 -1
- package/esm/chart/barChart/getDefaultOptions.js +5 -2
- package/esm/chart/barChart.js +6 -4
- package/esm/chart/chart.js +1 -1
- package/esm/chart/chartAxis/chartAxis.js +2 -2
- package/esm/chart/lineChart/getDefaultOptions.d.ts +4 -1
- package/esm/chart/lineChart/getDefaultOptions.js +7 -2
- package/esm/chart/lineChart.js +7 -3
- package/esm/chart/plugins/linePlugin/linePlugin.js +5 -4
- package/esm/chart/utils/getXAxisMeta.js +8 -5
- package/esm/chart/utils/isDateRange.js +1 -1
- package/esm/chart/utils/useHidden.d.ts +1 -0
- package/esm/chart/utils/useHidden.js +1 -1
- package/esm/chart/utils/useLastVisibleXAxisMeta.d.ts +2 -0
- package/esm/chart/utils/useLastVisibleXAxisMeta.js +11 -0
- package/esm/checkboxListWithAction/checkboxListWithAction.js +8 -5
- package/esm/chip/chip.js +1 -1
- package/esm/columnsSelector/columnsSelector.js +2 -2
- package/esm/columnsSelector/columnsTab/columnsTab.js +1 -1
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.js +1 -1
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +4 -1
- package/esm/controlledPopup/controlledPopup.d.ts +1 -0
- package/esm/controlledPopup/controlledPopup.js +3 -1
- package/esm/dataFeed/feedExpandControl/feedExpandControl.js +3 -0
- package/esm/dataGrid/cell/cell.d.ts +2 -1
- package/esm/dataGrid/cell/cell.js +2 -2
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +1 -1
- package/esm/dataGrid/dataGrid.js +8 -5
- package/esm/dataGrid/emptySearchList/emptySearchList.js +1 -1
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +1 -1
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.js +2 -2
- package/esm/dataGrid/listColumn.d.ts +2 -0
- package/esm/dataGrid/row/row.d.ts +2 -1
- package/esm/dataGrid/row/row.js +13 -9
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -2
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +44 -110
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +2 -0
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +4 -0
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +5 -5
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +4 -3
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +2 -2
- package/esm/dateInputInner/dateInputInner.js +7 -7
- package/esm/dateInputInner/dateInputInnerControlBlock.js +2 -2
- package/esm/dateInputRaw/dateInputRaw.js +4 -4
- package/esm/dateInputRaw/utils/getLabel.js +2 -2
- package/esm/dateRangeInner/dateRangeInner.js +6 -3
- package/esm/dateRangeRaw/dateRangeRaw.d.ts +1 -0
- package/esm/dateRangeRaw/dateRangeRaw.js +21 -15
- package/esm/dateRangeRaw/types.d.ts +1 -0
- package/esm/dateRangeRaw/utils/dateRangeUtils.js +17 -17
- package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
- package/esm/dateSelectionWrapper/dateSelectionWrapper.js +4 -4
- package/esm/dialog/dialogContent.js +1 -1
- package/esm/dropdown/dropdownTrigger.d.ts +1 -1
- package/esm/dropdownRaw/dropdownList.js +9 -9
- package/esm/dropdownRaw/dropdownPopup.js +3 -3
- package/esm/dropdownRaw/dropdownRaw.js +34 -17
- package/esm/dropdownRaw/dropdownSearchableTrigger.d.ts +2 -1
- package/esm/dropdownRaw/dropdownSearchableTrigger.js +8 -6
- package/esm/dropdownRaw/dropdownTrigger.d.ts +2 -1
- package/esm/dropdownRaw/dropdownTrigger.js +2 -2
- package/esm/dropdownRaw/types.d.ts +2 -0
- package/esm/favoriteButton/favoriteButton.js +1 -1
- package/esm/fileUpload/components/dropZoneContent.js +104 -104
- package/esm/fileUpload/components/templateDownloadSection.js +1 -1
- package/esm/fileUpload/components/uploadedFilesSection.js +2 -2
- package/esm/fileUpload/fileUpload.js +106 -106
- package/esm/filterButton/filterButton.d.ts +1 -0
- package/esm/filters/components/filtersContainer.js +2 -2
- package/esm/filters/components/filtersDropdown.d.ts +1 -1
- package/esm/filters/components/filtersEmptyState.js +2 -2
- package/esm/filters/components/filtersSaveModal.js +5 -5
- package/esm/filters/components/filtersSavedChipComponent.js +11 -11
- package/esm/filters/components/filtersSearchItemData.js +1 -1
- package/esm/filters/components/filtersSearchList.js +14 -11
- package/esm/filters/components/filtersSelect.js +1 -1
- package/esm/filters/components/filtersSelectListItem.js +2 -2
- package/esm/filters/components/filtersSidePanel.js +8 -8
- package/esm/filters/filters.js +7 -7
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +1 -0
- package/esm/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +18 -18
- package/esm/filtersBar/components/resetComponentButton.js +1 -1
- package/esm/filtersBar/filtersBarActions/filtersBarActions.js +3 -3
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +5 -5
- package/esm/filtersBar/filtersContainer/filtersContainer.js +62 -61
- package/esm/formField/hooks/useError.js +3 -3
- package/esm/formField/hooks/useFormFieldProps.d.ts +1 -1
- package/esm/formField/hooks/useFormFieldProps.js +4 -2
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +2 -2
- package/esm/formGroup/hooks/useCustomRow.js +46 -32
- package/esm/formGroup/hooks/useRowElements.js +9 -6
- package/esm/formGroup/hooks/useToggle.js +1 -1
- package/esm/formGroup/types.d.ts +4 -0
- package/esm/formGroup/utils/normalizeFieldId.d.ts +1 -0
- package/esm/formGroup/utils/normalizeFieldId.js +1 -0
- package/esm/formGroup/utils/resolveId.d.ts +7 -0
- package/esm/formGroup/utils/resolveId.js +2 -0
- package/esm/formLayout/components/getLayoutColumns.js +4 -2
- package/esm/formLayout/hooks/useError.js +3 -3
- package/esm/formLayout/hooks/useErrorSummary.d.ts +6 -0
- package/esm/formLayout/hooks/useErrorSummary.js +30 -0
- package/esm/formLayout/hooks/useFormButtons.js +3 -3
- package/esm/formLayout/utils/applyGridPropsStatic.js +1 -1
- package/esm/formLayout/utils/flattenErrors.d.ts +5 -0
- package/esm/formLayout/utils/flattenErrors.js +10 -0
- package/esm/formLayout/utils/getChildrenWithCustomColumns.js +3 -0
- package/esm/formLayout/utils/getFieldLabel.d.ts +1 -0
- package/esm/formLayout/utils/getFieldLabel.js +22 -0
- package/esm/formSection/hooks/useError.js +3 -3
- package/esm/formStepper/components/formStep.js +1 -1
- package/esm/formStepper/formStepper.js +2 -2
- package/esm/formStepperButtons/formStepperButtons.js +8 -5
- package/esm/gridLayout/hooks/useGridClasses.js +3 -9
- package/esm/groupButtonRaw/groupButtonRaw.js +2 -2
- package/esm/groupButtonRaw/types.d.ts +1 -0
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +8 -5
- package/esm/groupsFilterRaw/groupsFilterBox.js +3 -3
- package/esm/groupsFilterRaw/groupsFilterCommon.js +2 -2
- package/esm/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +5 -5
- package/esm/groupsFilterRaw/groupsFilterHelper.js +2 -2
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +12 -9
- package/esm/groupsFilterRaw/groupsFilterMenu.js +3 -3
- package/esm/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.js +15 -10
- package/esm/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/esm/groupsFilterRaw/groupsFilterTrigger.js +8 -5
- package/esm/groupsFilterRaw/groupsHelper.js +22 -22
- package/esm/groupsFilterRaw/types.d.ts +2 -0
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +1 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.js +3 -3
- package/esm/header/header.js +2 -2
- package/esm/header/headerBack.js +5 -2
- package/esm/header/headerHelpers.d.ts +1 -0
- package/esm/header/headerHelpers.js +8 -0
- package/esm/header/hooks/useNonFittingElements.js +1 -1
- package/esm/icons/iconAlignLeft.js +1 -3
- package/esm/icons/iconAlignmentLeft.js +1 -3
- package/esm/icons/iconAlignmentRight.js +1 -3
- package/esm/icons/iconArrowBottomLeft.js +1 -3
- package/esm/icons/iconArrowBottomRight.js +1 -3
- package/esm/icons/iconArrowLeftPath.js +1 -3
- package/esm/icons/iconArrowRight.js +1 -3
- package/esm/icons/iconArrowRightCircle.js +1 -3
- package/esm/icons/iconArrowRightPath.js +1 -3
- package/esm/icons/iconArrowTopLeft.js +1 -3
- package/esm/icons/iconArrowTopRight.js +1 -3
- package/esm/icons/iconChevronDoubleRight.js +1 -3
- package/esm/icons/iconChevronRight.js +1 -3
- package/esm/icons/iconChevronRightSmall.js +1 -3
- package/esm/icons/iconCornerDownLeft.js +1 -3
- package/esm/icons/iconCornerDownRight.js +1 -3
- package/esm/icons/iconCornerLeftDown.js +1 -3
- package/esm/icons/iconCornerLeftUp.js +1 -3
- package/esm/icons/iconCornerRightDown.js +1 -3
- package/esm/icons/iconCornerRightUp.js +1 -3
- package/esm/icons/iconCornerUpLeft.js +1 -3
- package/esm/icons/iconCornerUpRight.js +1 -3
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/lineChartMini/lineChartMini.js +15 -3
- package/esm/list/itemData/itemDataInternal.js +6 -3
- package/esm/list/listItem/listItem.js +6 -3
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +4 -1
- package/esm/menu/components/menuButton.d.ts +2 -1
- package/esm/menu/components/menuButton.js +7 -4
- package/esm/menu/components/menuErrorItem.js +2 -2
- package/esm/menu/components/menuItem.js +4 -4
- package/esm/menu/utils/useMenuItemCore.js +4 -3
- package/esm/miniTabs/miniTabs.d.ts +1 -0
- package/esm/miniTabs/miniTabs.js +1 -1
- package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -1
- package/esm/miniTabs/miniTabsHeaderItem.js +1 -1
- package/esm/miniTabs/miniTabsItem.d.ts +1 -0
- package/esm/mobileSheet/mobileSheet.js +2 -2
- package/esm/modal/modal.js +1 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.js +2 -2
- package/esm/nav/navFooter/navFooter.js +1 -1
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/esm/nav/navHeader/navHeader.js +2 -2
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +2 -2
- package/esm/nav/navItem/navItem.js +4 -1
- package/esm/nav/navMobileBar/navMobileBar.js +1 -1
- package/esm/notification/notification.js +1 -1
- package/esm/pagination/paginationArrow.js +12 -5
- package/esm/pagination/paginationText/paginationText.js +1 -1
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +1 -1
- package/esm/pillBox/components/pillBoxItem.js +1 -1
- package/esm/pillBox/pillBox.js +3 -3
- package/esm/pillExpandable/pillContent.js +12 -3
- package/esm/pillExpandable/pillExpandable.d.ts +4 -1
- package/esm/pillExpandable/pillExpandable.js +5 -3
- package/esm/pillExpandable/pillExpandableSimple.d.ts +1 -1
- package/esm/pillExpandable/pillExpandableSimple.js +4 -4
- package/esm/radioGroupRaw/radioGroupRaw.js +2 -1
- package/esm/rangeRaw/rangeRaw.js +7 -8
- package/esm/rangeRaw/utils/rangeHelper.js +7 -7
- package/esm/searchInputRaw/searchInputRaw.js +6 -3
- package/esm/selectList/selectList.js +2 -2
- package/esm/selectList/selectListItem.js +4 -1
- package/esm/skeleton/skeleton.js +1 -1
- package/esm/sortControl/sortControl.js +6 -7
- package/esm/stepperRaw/stepperRaw.js +3 -0
- package/esm/summary/summary.js +2 -2
- package/esm/summaryTile/summaryTile.d.ts +4 -2
- package/esm/summaryTile/summaryTile.js +59 -26
- package/esm/summaryTileBar/summaryTileBar.d.ts +4 -2
- package/esm/summaryTileBar/summaryTileBar.js +2 -2
- package/esm/table/actions/actionsMenu.js +2 -2
- package/esm/table/children/useTableChildren.d.ts +1 -1
- package/esm/table/children/useTableChildren.js +3 -3
- package/esm/table/detailPanel/detailPanel.js +1 -1
- package/esm/table/detailPanel/detailPanelHeader.js +2 -2
- package/esm/table/flexible/columnSettings.js +2 -2
- package/esm/table/flexible/columnsList.js +46 -111
- package/esm/table/flexible/columnsPopup.d.ts +1 -1
- package/esm/table/flexible/columnsPopup.js +1 -1
- package/esm/table/nested/useNestedRows.js +2 -2
- package/esm/table/selectable/selectableHeader.js +5 -4
- package/esm/table/selectable/useSelectableRows.d.ts +8 -0
- package/esm/table/selectable/useSelectableRows.js +16 -8
- package/esm/table/sortable/mobileSortControl.js +1 -1
- package/esm/table/sortable/sortableHeader.js +2 -2
- package/esm/table/table.js +3 -9
- package/esm/tabs/tabItem/tabItem.d.ts +2 -1
- package/esm/tabs/tabItem/tabItem.js +7 -2
- package/esm/tabs/tabs.d.ts +2 -1
- package/esm/tabs/tabs.js +71 -61
- package/esm/tabs/tabsTestHelper.js +2 -2
- package/esm/testHelpers/mockAbsoluteAlignment.d.ts +1 -0
- package/esm/testHelpers/mockAbsoluteAlignment.js +10 -0
- package/esm/timePickerRaw/timePickerRaw.js +11 -9
- package/esm/timePickerRaw/types.d.ts +1 -0
- package/esm/toastRaw/toastRaw.js +1 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +7 -4
- package/esm/tooltip/tooltip.js +13 -5
- package/esm/utils/formatDate.js +37 -37
- package/esm/utils/localization/flipAlignment.js +12 -1
- package/esm/utils/localization/languageContext.d.ts +1 -1
- package/esm/utils/localization/translations/cs.json +7 -5
- package/esm/utils/localization/translations/da-DK.json +7 -5
- package/esm/utils/localization/translations/de.json +7 -5
- package/esm/utils/localization/translations/en.json +12 -1
- package/esm/utils/localization/translations/es.json +7 -5
- package/esm/utils/localization/translations/fi-FI.json +7 -5
- package/esm/utils/localization/translations/fr-FR.json +7 -5
- package/esm/utils/localization/translations/fr.json +7 -5
- package/esm/utils/localization/translations/hu-HU.json +7 -5
- package/esm/utils/localization/translations/id.json +7 -5
- package/esm/utils/localization/translations/it.json +7 -5
- package/esm/utils/localization/translations/ja.json +7 -5
- package/esm/utils/localization/translations/ko-KR.json +7 -5
- package/esm/utils/localization/translations/ms.json +7 -5
- package/esm/utils/localization/translations/nb-NO.json +7 -5
- package/esm/utils/localization/translations/nl.json +7 -5
- package/esm/utils/localization/translations/pl.json +7 -5
- package/esm/utils/localization/translations/pt-BR.json +7 -5
- package/esm/utils/localization/translations/pt-PT.json +7 -5
- package/esm/utils/localization/translations/ro-RO.json +7 -5
- package/esm/utils/localization/translations/sk-SK.json +7 -5
- package/esm/utils/localization/translations/sv.json +7 -5
- package/esm/utils/localization/translations/th.json +7 -5
- package/esm/utils/localization/translations/tr.json +7 -5
- package/esm/utils/localization/translations/zh-Hans.json +7 -5
- package/esm/utils/localization/translations/zh-TW.json +7 -5
- package/esm/utils/localization/useDirectionalIcon.d.ts +3 -0
- package/esm/utils/localization/useDirectionalIcon.js +5 -0
- package/esm/utils/positioningUtils/alignments.d.ts +2 -2
- package/esm/utils/positioningUtils/alignments.js +2 -2
- package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/esm/utils/positioningUtils/calculatePosition.js +11 -11
- package/esm/utils/positioningUtils/normalizeLogicalAlignment.d.ts +4 -0
- package/esm/utils/positioningUtils/normalizeLogicalAlignment.js +32 -0
- package/package.json +11 -12
- package/dist/utils/localization/translations/en-json.d.ts +0 -317
- package/dist/utils/localization/translations/en-json.js +0 -320
- package/esm/utils/localization/translations/en-json.d.ts +0 -317
- package/esm/utils/localization/translations/en-json.js +0 -317
|
@@ -17,7 +17,9 @@ const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
|
17
17
|
const react_1 = require("react");
|
|
18
18
|
const iconBeta_1 = require("../../icons/iconBeta");
|
|
19
19
|
const iconChevronRight_1 = require("../../icons/iconChevronRight");
|
|
20
|
+
const iconChevronLeft_1 = require("../../icons/iconChevronLeft");
|
|
20
21
|
const iconOpen2_1 = require("../../icons/iconOpen2");
|
|
22
|
+
const useDirectionalIcon_1 = require("../../utils/localization/useDirectionalIcon");
|
|
21
23
|
const tooltip_1 = require("../../tooltip/tooltip");
|
|
22
24
|
const controlledMenu_1 = require("../../menu/controlledMenu");
|
|
23
25
|
const nav_context_1 = require("../context/nav.context");
|
|
@@ -29,11 +31,12 @@ const defaultTooltipAlignment = "right";
|
|
|
29
31
|
const isLinkNavItem = (item) => !!item.link;
|
|
30
32
|
const NavItemContent = ({ primaryIcon, secondaryIcon, isBeta, counter, collapsed, hasSubmenu, iconClass, level = 1, children }) => {
|
|
31
33
|
const primaryIconRef = (0, react_1.useRef)(null);
|
|
34
|
+
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
32
35
|
const PrimaryIconComponent = typeof primaryIcon === "function" ? primaryIcon : null;
|
|
33
36
|
const SecondaryIconComponent = secondaryIcon;
|
|
34
37
|
const iconSize = level > 1 ? SUBMENU_ICON_SIZE : ICON_SIZE;
|
|
35
38
|
const primaryIconComponent = primaryIcon ? ((0, jsx_runtime_1.jsx)("span", { ref: primaryIconRef, className: (0, classNames_1.classNames)(["zen-nav-item__icon", counter ? "zen-nav-item__icon--with-counter" : "", iconClass || ""]), children: PrimaryIconComponent ? (0, jsx_runtime_1.jsx)(PrimaryIconComponent, { size: iconSize }) : primaryIcon })) : null;
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-left", children: [isBeta && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__beta", children: (0, jsx_runtime_1.jsx)(iconBeta_1.IconBeta, { size: "big" }) })) : null, primaryIconComponent, SecondaryIconComponent && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__icon", children: (0, jsx_runtime_1.jsx)(SecondaryIconComponent, { size: iconSize }) })) : null, !collapsed ? (0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__title", children: children }) : null] }), !collapsed && (counter || hasSubmenu) ? ((0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-right", children: [counter ? (0, jsx_runtime_1.jsx)("div", { className: "zen-nav-item__counter", children: counter }) : null, hasSubmenu ? (0, jsx_runtime_1.jsx)(
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-left", children: [isBeta && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__beta", children: (0, jsx_runtime_1.jsx)(iconBeta_1.IconBeta, { size: "big" }) })) : null, primaryIconComponent, SecondaryIconComponent && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__icon", children: (0, jsx_runtime_1.jsx)(SecondaryIconComponent, { size: iconSize }) })) : null, !collapsed ? (0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__title", children: children }) : null] }), !collapsed && (counter || hasSubmenu) ? ((0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-right", children: [counter ? (0, jsx_runtime_1.jsx)("div", { className: "zen-nav-item__counter", children: counter }) : null, hasSubmenu ? (0, jsx_runtime_1.jsx)(ChevronIcon, { className: "zen-nav-item__title-icon", size: iconSize }) : null] })) : null] }));
|
|
37
40
|
};
|
|
38
41
|
const NavItemAction = ({ actionIcon, actionIconTitle = "", onActionIconClick, collapsed, isMenuItem, level = 1 }) => {
|
|
39
42
|
const ActionIconComponent = actionIcon;
|
|
@@ -36,7 +36,7 @@ injectString("tr", "More", "Di\u011Fer");
|
|
|
36
36
|
injectString("zh-Hans", "More", "\u66F4\u591A");
|
|
37
37
|
injectString("zh-TW", "More", "\u66F4\u591A");
|
|
38
38
|
injectString("ro-RO", "More", "Mai multe");
|
|
39
|
-
injectString("ar
|
|
39
|
+
injectString("ar", "More", "\u0627\u0644\u0645\u0632\u064A\u062F");
|
|
40
40
|
const navItem_1 = require("../navItem/navItem");
|
|
41
41
|
const iconMenu_1 = require("../../icons/iconMenu");
|
|
42
42
|
const iconClose_1 = require("../../icons/iconClose");
|
|
@@ -40,7 +40,7 @@ injectString("tr", "Close", "Kapat");
|
|
|
40
40
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
41
41
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
42
42
|
injectString("ro-RO", "Close", "\xCEnchide");
|
|
43
|
-
injectString("ar
|
|
43
|
+
injectString("ar", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
44
44
|
const pushNotification_1 = __importDefault(require("./pushNotification/pushNotification"));
|
|
45
45
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
46
46
|
const iconCrossThin_1 = require("../icons/deprecated/iconCrossThin");
|
|
@@ -8,14 +8,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
});
|
|
9
9
|
exports.TRANSLATIONS = exports.PaginationArrow = void 0;
|
|
10
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
12
11
|
const svgIconSize_1 = require("../svgIcon/svgIconSize");
|
|
13
12
|
const paginationType_1 = require("./paginationType");
|
|
14
13
|
const textIconButton_1 = require("../textIconButton/textIconButton");
|
|
15
14
|
const buttonType_1 = require("../button/buttonType");
|
|
16
15
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
17
16
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
17
|
+
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
18
18
|
const iconArrowRight_1 = require("../icons/iconArrowRight");
|
|
19
|
+
const iconArrowLeft_1 = require("../icons/iconArrowLeft");
|
|
20
|
+
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
19
21
|
injectString("cs", "Previous page", "P\u0159edchoz\xED str\xE1nka");
|
|
20
22
|
injectString("da-DK", "Previous page", "Forrige side");
|
|
21
23
|
injectString("de", "Previous page", "Vorherige Seite");
|
|
@@ -42,7 +44,7 @@ injectString("tr", "Previous page", "\xD6nceki sayfa");
|
|
|
42
44
|
injectString("zh-Hans", "Previous page", "\u4E0A\u4E00\u9875");
|
|
43
45
|
injectString("zh-TW", "Previous page", "\u4E0A\u4E00\u9801");
|
|
44
46
|
injectString("ro-RO", "Previous page", "Pagina anterioar\u0103");
|
|
45
|
-
injectString("ar
|
|
47
|
+
injectString("ar", "Previous page", "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629");
|
|
46
48
|
injectString("cs", "Next page", "Dal\u0161\xED str\xE1nka");
|
|
47
49
|
injectString("da-DK", "Next page", "N\xE6ste side");
|
|
48
50
|
injectString("de", "Next page", "N\xE4chste Seite");
|
|
@@ -69,7 +71,7 @@ injectString("tr", "Next page", "Sonraki sayfa");
|
|
|
69
71
|
injectString("zh-Hans", "Next page", "\u4E0B\u4E00\u9875");
|
|
70
72
|
injectString("zh-TW", "Next page", "\u4E0B\u4E00\u9801");
|
|
71
73
|
injectString("ro-RO", "Next page", "Pagina urm\u0103toare");
|
|
72
|
-
injectString("ar
|
|
74
|
+
injectString("ar", "Next page", "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629");
|
|
73
75
|
const PaginationArrow = ({
|
|
74
76
|
value,
|
|
75
77
|
disabled,
|
|
@@ -79,6 +81,11 @@ const PaginationArrow = ({
|
|
|
79
81
|
const {
|
|
80
82
|
translate
|
|
81
83
|
} = (0, useLanguage_1.useLanguage)();
|
|
84
|
+
const isPrevious = value === "previous";
|
|
85
|
+
const [ltrCompact, rtlCompact] = isPrevious ? [iconChevronLeft_1.IconChevronLeft, iconChevronRight_1.IconChevronRight] : [iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft];
|
|
86
|
+
const [ltrNormal, rtlNormal] = isPrevious ? [iconArrowLeft_1.IconArrowLeft, iconArrowRight_1.IconArrowRight] : [iconArrowRight_1.IconArrowRight, iconArrowLeft_1.IconArrowLeft];
|
|
87
|
+
const CompactIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(ltrCompact, rtlCompact);
|
|
88
|
+
const NormalIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(ltrNormal, rtlNormal);
|
|
82
89
|
const previousButtonTitle = translate("Previous page");
|
|
83
90
|
const nextButtonTitle = translate("Next page");
|
|
84
91
|
const buttonTitle = value === "next" ? nextButtonTitle : previousButtonTitle;
|
|
@@ -90,10 +97,10 @@ const PaginationArrow = ({
|
|
|
90
97
|
disabled: disabled,
|
|
91
98
|
onClick: arrowButtonHandler,
|
|
92
99
|
type: type === paginationType_1.PaginationType.Compact ? buttonType_1.ButtonType.TertiaryBlack : buttonType_1.ButtonType.Secondary,
|
|
93
|
-
icon: type === paginationType_1.PaginationType.Compact ?
|
|
100
|
+
icon: type === paginationType_1.PaginationType.Compact ? CompactIcon : NormalIcon,
|
|
94
101
|
iconSize: type === paginationType_1.PaginationType.Compact ? svgIconSize_1.SvgIconSize.Big : svgIconSize_1.SvgIconSize.Large,
|
|
95
102
|
iconPosition: textIconButton_1.ButtonIconPosition.Start,
|
|
96
|
-
iconClasses:
|
|
103
|
+
iconClasses: "zen-pagination__arrow-navigation-button-icon"
|
|
97
104
|
});
|
|
98
105
|
};
|
|
99
106
|
exports.PaginationArrow = PaginationArrow;
|
|
@@ -35,7 +35,7 @@ injectString("tr", "Showing {from} - {to} of {total}", "{from} - {to} / {total}
|
|
|
35
35
|
injectString("zh-Hans", "Showing {from} - {to} of {total}", "\u663E\u793A {from} - {to} \u9875\uFF0C\u5171 {total} \u9875");
|
|
36
36
|
injectString("zh-TW", "Showing {from} - {to} of {total}", "\u986F\u793A {from} - {to} (\u5171 {total})");
|
|
37
37
|
injectString("ro-RO", "Showing {from} - {to} of {total}", "Se afi\u0219eaz\u0103 {from}-{to} din {total}");
|
|
38
|
-
injectString("ar
|
|
38
|
+
injectString("ar", "Showing {from} - {to} of {total}", "\u0639\u0631\u0636 {from} - {to} \u0645\u0646 {total}");
|
|
39
39
|
const PaginationText = ({
|
|
40
40
|
amount,
|
|
41
41
|
from,
|
|
@@ -41,7 +41,7 @@ injectString("tr", "Close", "Kapat");
|
|
|
41
41
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
42
42
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
43
43
|
injectString("ro-RO", "Close", "\xCEnchide");
|
|
44
|
-
injectString("ar
|
|
44
|
+
injectString("ar", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
45
45
|
const useDriveClassName_1 = require("../../../utils/theme/useDriveClassName");
|
|
46
46
|
const NonActionablePill = ({
|
|
47
47
|
icon,
|
|
@@ -36,7 +36,7 @@ injectString("tr", "Remove selection", "Se\xE7imi kald\u0131r");
|
|
|
36
36
|
injectString("zh-Hans", "Remove selection", "\u5220\u9664\u6240\u9009\u5185\u5BB9");
|
|
37
37
|
injectString("zh-TW", "Remove selection", "\u79FB\u9664\u9078\u53D6\u9805\u76EE");
|
|
38
38
|
injectString("ro-RO", "Remove selection", "Elimina\u021Bi selec\u021Bia");
|
|
39
|
-
injectString("ar
|
|
39
|
+
injectString("ar", "Remove selection", "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062A\u062D\u062F\u064A\u062F");
|
|
40
40
|
const pill_1 = require("../../pill/pill");
|
|
41
41
|
const useLanguage_1 = require("../../utils/localization/useLanguage");
|
|
42
42
|
exports.PillBoxItem = (0, react_1.memo)(function innerPillItem({
|
package/dist/pillBox/pillBox.js
CHANGED
|
@@ -41,7 +41,7 @@ injectString("tr", "and {0} more", "ve {0} tane daha");
|
|
|
41
41
|
injectString("zh-Hans", "and {0} more", "\u548C\u53E6\u5916 {0} \u9879");
|
|
42
42
|
injectString("zh-TW", "and {0} more", "\u9084\u6709 {0} \u500B");
|
|
43
43
|
injectString("ro-RO", "and {0} more", "\u0219i {0} \xEEn plus");
|
|
44
|
-
injectString("ar
|
|
44
|
+
injectString("ar", "and {0} more", "\u0648 {0} \u0623\u062E\u0631\u0649");
|
|
45
45
|
injectString("cs", "Selected:", "Vybr\xE1no:");
|
|
46
46
|
injectString("da-DK", "Selected:", "Valgte:");
|
|
47
47
|
injectString("de", "Selected:", "Ausgew\xE4hlte Fahrer");
|
|
@@ -68,7 +68,7 @@ injectString("tr", "Selected:", "Se\xE7ilen:");
|
|
|
68
68
|
injectString("zh-Hans", "Selected:", "\u5DF2\u9009\uFF1A");
|
|
69
69
|
injectString("zh-TW", "Selected:", "\u5DF2\u9078\u53D6\uFF1A");
|
|
70
70
|
injectString("ro-RO", "Selected:", "Selec\u021Bie:");
|
|
71
|
-
injectString("ar
|
|
71
|
+
injectString("ar", "Selected:", "\u0627\u0644\u0645\u062D\u062F\u062F:");
|
|
72
72
|
injectString("cs", "All", "V\u0161e");
|
|
73
73
|
injectString("da-DK", "All", "Alle");
|
|
74
74
|
injectString("de", "All", "Alle");
|
|
@@ -95,7 +95,7 @@ injectString("tr", "All", "T\xFCm\xFC");
|
|
|
95
95
|
injectString("zh-Hans", "All", "\u5168\u90E8");
|
|
96
96
|
injectString("zh-TW", "All", "\u5168\u90E8");
|
|
97
97
|
injectString("ro-RO", "All", "Toate");
|
|
98
|
-
injectString("ar
|
|
98
|
+
injectString("ar", "All", "\u0627\u0644\u0643\u0644");
|
|
99
99
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
100
100
|
exports.DEFAULT_MAX_PILLS = 5;
|
|
101
101
|
const PillBox = ({
|
|
@@ -22,9 +22,18 @@ const PillContent = ({ date, count, descriptionText, mainAction, secondaryAction
|
|
|
22
22
|
onClick && onClick();
|
|
23
23
|
onActionClick();
|
|
24
24
|
}, [onActionClick]);
|
|
25
|
-
const renderMainButton = (0, react_1.useCallback)(data =>
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const renderMainButton = (0, react_1.useCallback)(data => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ link: data.link }, data.linkOptions, { onClick: mainActionClick(data.onClick), type: "primary", dataAnalyticsId: (_a = data.dataAnalyticsId) !== null && _a !== void 0 ? _a : (_b = data.linkOptions) === null || _b === void 0 ? void 0 : _b.dataAnalyticsId, children: data.text })));
|
|
28
|
+
}, [mainActionClick]);
|
|
29
|
+
const renderSecondaryButton = (0, react_1.useCallback)(data => {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ link: data.link }, data.linkOptions, { onClick: secondaryActionClick(data.onClick), type: "secondary", dataAnalyticsId: (_a = data.dataAnalyticsId) !== null && _a !== void 0 ? _a : (_b = data.linkOptions) === null || _b === void 0 ? void 0 : _b.dataAnalyticsId, children: data.text })));
|
|
32
|
+
}, [secondaryActionClick]);
|
|
33
|
+
const renderTertiaryButton = (0, react_1.useCallback)(data => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ link: data.link }, data.linkOptions, { onClick: tertiaryActionClick(data.onClick), type: "tertiary", dataAnalyticsId: (_a = data.dataAnalyticsId) !== null && _a !== void 0 ? _a : (_b = data.linkOptions) === null || _b === void 0 ? void 0 : _b.dataAnalyticsId, children: data.text })));
|
|
36
|
+
}, [tertiaryActionClick]);
|
|
28
37
|
const renderDescription = (0, react_1.useCallback)(data => ((0, jsx_runtime_1.jsx)("div", { id: descriptionId, className: (0, classNames_1.classNames)(["zen-status-pill-popup__description", descriptionDriveClassName || ""]), children: data })), [descriptionDriveClassName, descriptionId]);
|
|
29
38
|
const renderCount = (0, react_1.useCallback)(data => data ? ((0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)([
|
|
30
39
|
"zen-status-pill-popup__header-text zen-status-pill-popup__header-text--left",
|
|
@@ -14,6 +14,7 @@ export interface IPillExpandableAction {
|
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
link?: string;
|
|
16
16
|
linkOptions?: ILinkOptions;
|
|
17
|
+
dataAnalyticsId?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface IBaseData {
|
|
19
20
|
description?: TLazyContent<ReactNode>;
|
|
@@ -57,6 +58,8 @@ export interface IPillExpandableBase extends IZenComponentProps {
|
|
|
57
58
|
popoverSize?: TPopoverSize;
|
|
58
59
|
/** Title displayed in the popover title bar. If provided, the title bar will be shown. */
|
|
59
60
|
title?: string;
|
|
61
|
+
/** Analytics identifier applied as `data-analytics-id` on the pill trigger button. */
|
|
62
|
+
dataAnalyticsId?: string;
|
|
60
63
|
}
|
|
61
64
|
/** Props for standard PillExpandable (non-upsell) */
|
|
62
65
|
interface IPillExpandableStandard extends IPillExpandableBase {
|
|
@@ -72,6 +75,6 @@ interface IPillExpandableUpsell extends IPillExpandableBase {
|
|
|
72
75
|
/** Combined type using Exclusive to prevent mixing upsell with standard props */
|
|
73
76
|
export type IPillExpandable = Exclusive<IPillExpandableStandard, IPillExpandableUpsell>;
|
|
74
77
|
type TPillExpandable = IPillExpandable & TProps;
|
|
75
|
-
export declare const PillExpandable: React.MemoExoticComponent<({ children, errorHandler, getData, text, description, date, count, mainAction, secondaryAction, tertiaryAction, viewMoreAction, uniquePills, type, className, popupClassName, isLoading, isFlat, icon, secondaryIcon, isBeta, loadingWidth, hideCounterNumber, autoExpandChildren, popoverSize, title }: TPillExpandable) => import("react/jsx-runtime").JSX.Element>;
|
|
78
|
+
export declare const PillExpandable: React.MemoExoticComponent<({ children, errorHandler, getData, text, description, date, count, mainAction, secondaryAction, tertiaryAction, viewMoreAction, uniquePills, type, className, popupClassName, isLoading, isFlat, icon, secondaryIcon, isBeta, loadingWidth, hideCounterNumber, autoExpandChildren, popoverSize, title, dataAnalyticsId }: TPillExpandable) => import("react/jsx-runtime").JSX.Element>;
|
|
76
79
|
export declare const TRANSLATIONS: string[];
|
|
77
80
|
export {};
|
|
@@ -34,7 +34,7 @@ injectString("tr", "View all", "T\xFCm\xFCn\xFC g\xF6r\xFCnt\xFCle");
|
|
|
34
34
|
injectString("zh-Hans", "View all", "\u67E5\u770B\u5168\u90E8");
|
|
35
35
|
injectString("zh-TW", "View all", "\u6AA2\u8996\u5168\u90E8");
|
|
36
36
|
injectString("ro-RO", "View all", "Vezi tot");
|
|
37
|
-
injectString("ar
|
|
37
|
+
injectString("ar", "View all", "\u0639\u0631\u0636 \u0627\u0644\u0643\u0644");
|
|
38
38
|
const react_1 = require("react");
|
|
39
39
|
const absolute_1 = require("../absolute/absolute");
|
|
40
40
|
const focusableSelector_1 = require("../utils/focusableSelector");
|
|
@@ -404,7 +404,8 @@ const PillExpandableBase = ({
|
|
|
404
404
|
hideCounterNumber,
|
|
405
405
|
autoExpandChildren,
|
|
406
406
|
popoverSize = "medium",
|
|
407
|
-
title
|
|
407
|
+
title,
|
|
408
|
+
dataAnalyticsId
|
|
408
409
|
}) => {
|
|
409
410
|
const popupId = (0, react_1.useId)();
|
|
410
411
|
const descriptionId = (0, react_1.useId)();
|
|
@@ -573,7 +574,8 @@ const PillExpandableBase = ({
|
|
|
573
574
|
type: type,
|
|
574
575
|
errorHandler: errorHandler,
|
|
575
576
|
isBeta: isBeta,
|
|
576
|
-
isMobile: isMobile
|
|
577
|
+
isMobile: isMobile,
|
|
578
|
+
dataAnalyticsId: dataAnalyticsId
|
|
577
579
|
}), uniqueChildren && (0, jsx_runtime_1.jsx)(pillExpandableSimple_1.PillExpandableSimple, {
|
|
578
580
|
icon: secondaryIcon || effectiveIcon,
|
|
579
581
|
text: hideCounterNumber ? "" : counterText,
|
|
@@ -13,7 +13,7 @@ interface IPillExpandableSimple extends IPillExpandableBase {
|
|
|
13
13
|
type?: TPillType;
|
|
14
14
|
}
|
|
15
15
|
export declare const PillExpandableSimple: {
|
|
16
|
-
({ onExpand, text, expanded, includeExpandIcon, type, icon, isBeta, isMobile, ref, className, descriptionId }: IPillExpandableSimple): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
({ onExpand, text, expanded, includeExpandIcon, type, icon, isBeta, isMobile, ref, className, descriptionId, dataAnalyticsId }: IPillExpandableSimple): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
export {};
|
|
@@ -8,7 +8,7 @@ const iconChevronTop_1 = require("../icons/iconChevronTop");
|
|
|
8
8
|
const iconChevronBottom_1 = require("../icons/iconChevronBottom");
|
|
9
9
|
const iconException_1 = require("../icons/iconException");
|
|
10
10
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
11
|
-
const PillExpandableSimple = ({ onExpand, text, expanded, includeExpandIcon = true, type = "warning", icon = iconException_1.IconException, isBeta, isMobile, ref, className, descriptionId
|
|
11
|
+
const PillExpandableSimple = ({ onExpand, text, expanded, includeExpandIcon = true, type = "warning", icon = iconException_1.IconException, isBeta, isMobile, ref, className, descriptionId, dataAnalyticsId
|
|
12
12
|
// eslint-disable-next-line complexity
|
|
13
13
|
}) => {
|
|
14
14
|
const iconDriveClassName = (0, useDriveClassName_1.useDriveClassName)("icon");
|
|
@@ -21,13 +21,13 @@ const PillExpandableSimple = ({ onExpand, text, expanded, includeExpandIcon = tr
|
|
|
21
21
|
const iconSize = isBeta ? "big" : isLargeIcon ? "large" : "big";
|
|
22
22
|
const hasText = (text || "").trim().length > 0;
|
|
23
23
|
const isTextCentered = icon === false && !includeExpandIcon;
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", className: (0, classNames_1.classNames)([
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("button", Object.assign({ type: "button", className: (0, classNames_1.classNames)([
|
|
25
25
|
"zen-status-pill__container",
|
|
26
26
|
`zen-status-pill__container--${type}`,
|
|
27
27
|
containerDriveClassName || "",
|
|
28
28
|
className || "",
|
|
29
29
|
"zen-ellipsis"
|
|
30
|
-
]), ref: ref, onClick: onExpandHandler, tabIndex: !includeExpandIcon ? -1 : undefined, "aria-expanded": includeExpandIcon ? (expanded !== null && expanded !== void 0 ? expanded : false) : undefined, "aria-describedby": descriptionId, children: [icon !== false && ((0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)([
|
|
30
|
+
]), ref: ref, onClick: onExpandHandler, tabIndex: !includeExpandIcon ? -1 : undefined, "aria-expanded": includeExpandIcon ? (expanded !== null && expanded !== void 0 ? expanded : false) : undefined, "aria-describedby": descriptionId }, (dataAnalyticsId ? { "data-analytics-id": dataAnalyticsId } : {}), { children: [icon !== false && ((0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)([
|
|
31
31
|
"zen-status-pill__icon",
|
|
32
32
|
`zen-status-pill__icon--${type}`,
|
|
33
33
|
isLargeIcon ? "zen-status-pill__icon--large" : "",
|
|
@@ -41,7 +41,7 @@ const PillExpandableSimple = ({ onExpand, text, expanded, includeExpandIcon = tr
|
|
|
41
41
|
isTextCentered ? "zen-status-pill__text--centered" : ""
|
|
42
42
|
]), children: text })), includeExpandIcon && ((0, jsx_runtime_1.jsx)("div", { className: `zen-status-pill__expand-button zen-status-pill__expand-button--${type}`, children: (0, jsx_runtime_1.jsx)("div", { className: "zen-status-pill__icon", children: (0, react_1.createElement)(ChevronIcon, {
|
|
43
43
|
size: iconSize
|
|
44
|
-
}) }) }))] }));
|
|
44
|
+
}) }) }))] })));
|
|
45
45
|
};
|
|
46
46
|
exports.PillExpandableSimple = PillExpandableSimple;
|
|
47
47
|
exports.PillExpandableSimple.displayName = "PillExpandableSimple";
|
|
@@ -89,7 +89,8 @@ const RadioGroupRaw = (props) => {
|
|
|
89
89
|
"zen-radio-group__item",
|
|
90
90
|
wrappedInLabel ? "zen-radio-group__item--no-paddings" : "",
|
|
91
91
|
type === "interactive" ? "zen-radio--interactive" : "",
|
|
92
|
-
size === "small" ? "zen-radio-group__item--small" : ""
|
|
92
|
+
size === "small" ? "zen-radio-group__item--small" : "",
|
|
93
|
+
direction === "horizontal" ? "zen-radio--align-start" : ""
|
|
93
94
|
]), key: ind, checked: item.value === value, disabled: disabled ? disabled : item.disabled, name: name, reverse: reverse, fullWidth: fullWidth, value: item.value, onChange: onChangeInner, wrappedInLabel: wrappedInLabel, tabIndex: selectItemOnFocus || disabled || item.disabled ? undefined : ind === focusedIndex ? 0 : -1, ref: selectItemOnFocus ? undefined : ind === focusedIndex ? focusElementRef : undefined, role: itemRole }), item.children) }, `${ind}-li`))) })) }));
|
|
94
95
|
};
|
|
95
96
|
exports.RadioGroupRaw = RadioGroupRaw;
|
|
@@ -47,7 +47,7 @@ injectString("tr", "Min", "Min.");
|
|
|
47
47
|
injectString("zh-Hans", "Min", "\u6700\u5C0F");
|
|
48
48
|
injectString("zh-TW", "Min", "\u6700\u5C0F");
|
|
49
49
|
injectString("ro-RO", "Min", "Min.");
|
|
50
|
-
injectString("ar
|
|
50
|
+
injectString("ar", "Min", "\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u062F\u0646\u0649");
|
|
51
51
|
injectString("cs", "Max", "Max.");
|
|
52
52
|
injectString("da-DK", "Max", "Maks");
|
|
53
53
|
injectString("de", "Max", "Max");
|
|
@@ -74,7 +74,7 @@ injectString("tr", "Max", "Maks.");
|
|
|
74
74
|
injectString("zh-Hans", "Max", "\u6700\u5927");
|
|
75
75
|
injectString("zh-TW", "Max", "\u6700\u5927");
|
|
76
76
|
injectString("ro-RO", "Max", "Max.");
|
|
77
|
-
injectString("ar
|
|
77
|
+
injectString("ar", "Max", "\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649");
|
|
78
78
|
injectString("cs", "Range Filter popup", "Vyskakovac\xED okno Filtr rozmez\xED");
|
|
79
79
|
injectString("da-DK", "Range Filter popup", "Pop op-vindue med omr\xE5defilter");
|
|
80
80
|
injectString("de", "Range Filter popup", "Bereichsfilter-Popup");
|
|
@@ -101,7 +101,7 @@ injectString("tr", "Range Filter popup", "Aral\u0131k Filtresi a\xE7\u0131l\u013
|
|
|
101
101
|
injectString("zh-Hans", "Range Filter popup", "\u201C\u8303\u56F4\u7B5B\u9009\u6761\u4EF6\u201D\u5F39\u51FA\u7A97\u53E3");
|
|
102
102
|
injectString("zh-TW", "Range Filter popup", "\u7BC4\u570D\u7BE9\u9078\u5F48\u51FA\u8996\u7A97");
|
|
103
103
|
injectString("ro-RO", "Range Filter popup", "Pop-up filtru interval");
|
|
104
|
-
injectString("ar
|
|
104
|
+
injectString("ar", "Range Filter popup", "\u0646\u0627\u0641\u0630\u0629 \u062A\u0635\u0641\u064A\u0629 \u0627\u0644\u0646\u0637\u0627\u0642");
|
|
105
105
|
injectString("cs", "Clear", "Vymazat");
|
|
106
106
|
injectString("da-DK", "Clear", "Ryd");
|
|
107
107
|
injectString("de", "Clear", "L\xF6schen");
|
|
@@ -128,7 +128,7 @@ injectString("tr", "Clear", "Temizle");
|
|
|
128
128
|
injectString("zh-Hans", "Clear", "\u6E05\u9664");
|
|
129
129
|
injectString("zh-TW", "Clear", "\u6E05\u9664");
|
|
130
130
|
injectString("ro-RO", "Clear", "\u0218terge\u021Bi");
|
|
131
|
-
injectString("ar
|
|
131
|
+
injectString("ar", "Clear", "\u0645\u0633\u062D");
|
|
132
132
|
injectString("cs", "Cancel", "Zru\u0161it");
|
|
133
133
|
injectString("da-DK", "Cancel", "Annuller");
|
|
134
134
|
injectString("de", "Cancel", "Abbrechen");
|
|
@@ -155,7 +155,7 @@ injectString("tr", "Cancel", "\u0130ptal");
|
|
|
155
155
|
injectString("zh-Hans", "Cancel", "\u53D6\u6D88");
|
|
156
156
|
injectString("zh-TW", "Cancel", "\u53D6\u6D88");
|
|
157
157
|
injectString("ro-RO", "Cancel", "Anula\u021Bi");
|
|
158
|
-
injectString("ar
|
|
158
|
+
injectString("ar", "Cancel", "\u0625\u0644\u063A\u0627\u0621");
|
|
159
159
|
injectString("cs", "Apply", "Pou\u017E\xEDt");
|
|
160
160
|
injectString("da-DK", "Apply", "Anvend");
|
|
161
161
|
injectString("de", "Apply", "Anwenden");
|
|
@@ -182,7 +182,7 @@ injectString("tr", "Apply", "Uygula");
|
|
|
182
182
|
injectString("zh-Hans", "Apply", "\u5E94\u7528");
|
|
183
183
|
injectString("zh-TW", "Apply", "\u5957\u7528");
|
|
184
184
|
injectString("ro-RO", "Apply", "Aplica\u021Bi");
|
|
185
|
-
injectString("ar
|
|
185
|
+
injectString("ar", "Apply", "\u062A\u0637\u0628\u064A\u0642");
|
|
186
186
|
injectString("cs", "{rangeName} values {values}", "{rangeName} v hodnot\u011B {values}");
|
|
187
187
|
injectString("da-DK", "{rangeName} values {values}", "{rangeName} v\xE6rdier {values}");
|
|
188
188
|
injectString("de", "{rangeName} values {values}", "{rangeName}-Werte {values}");
|
|
@@ -209,7 +209,7 @@ injectString("tr", "{rangeName} values {values}", "{rangeName} de\u011Ferleri {v
|
|
|
209
209
|
injectString("zh-Hans", "{rangeName} values {values}", "{rangeName} \u503C {values}");
|
|
210
210
|
injectString("zh-TW", "{rangeName} values {values}", "{rangeName} \u7684\u503C\u70BA {values}");
|
|
211
211
|
injectString("ro-RO", "{rangeName} values {values}", "Valori {rangeName} {values}");
|
|
212
|
-
injectString("ar
|
|
212
|
+
injectString("ar", "{rangeName} values {values}", "\u0642\u064A\u0645 {rangeName} {values}");
|
|
213
213
|
const chip_1 = require("../chip/chip");
|
|
214
214
|
const chipStatusProvider_1 = require("../chip/chipStatusProvider");
|
|
215
215
|
const useMobile_1 = require("../commonHelpers/hooks/useMobile");
|
|
@@ -427,7 +427,6 @@ const RangeRaw = props => {
|
|
|
427
427
|
className: (0, classNames_1.classNames)(["zen-range-popup zen-shadow-dropdown-default", className ? className : ""]),
|
|
428
428
|
onOpenChange: handleTriggerClick,
|
|
429
429
|
useTrapFocusWithTrigger: "on",
|
|
430
|
-
alignment: "bottom-left",
|
|
431
430
|
shouldHoldScroll: true,
|
|
432
431
|
triggerRef: triggerRef,
|
|
433
432
|
ariaLabel: translate("Range Filter popup"),
|
|
@@ -29,7 +29,7 @@ injectString("tr", "Must be in range {min} - {max}", "{min} - {max} aral\u0131\u
|
|
|
29
29
|
injectString("zh-Hans", "Must be in range {min} - {max}", "\u5FC5\u987B\u5904\u4E8E {min} \u81F3 {max} \u8303\u56F4\u5185");
|
|
30
30
|
injectString("zh-TW", "Must be in range {min} - {max}", "\u5FC5\u9808\u5728 {min} - {max} \u7BC4\u570D\u5167");
|
|
31
31
|
injectString("ro-RO", "Must be in range {min} - {max}", "Trebuie s\u0103 fie \xEEn intervalul {min}-{max}");
|
|
32
|
-
injectString("ar
|
|
32
|
+
injectString("ar", "Must be in range {min} - {max}", "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0641\u064A \u0627\u0644\u0646\u0637\u0627\u0642 {min} - {max}");
|
|
33
33
|
injectString("cs", "Must be more than {value}", "Mus\xED b\xFDt v\u011Bt\u0161\xED ne\u017E {value}");
|
|
34
34
|
injectString("da-DK", "Must be more than {value}", "Skal v\xE6re mere end {value}");
|
|
35
35
|
injectString("de", "Must be more than {value}", "Muss gr\xF6\xDFer sein als {value}");
|
|
@@ -56,7 +56,7 @@ injectString("tr", "Must be more than {value}", "{value} de\u011Ferinden fazla o
|
|
|
56
56
|
injectString("zh-Hans", "Must be more than {value}", "\u5FC5\u987B\u5927\u4E8E {value}");
|
|
57
57
|
injectString("zh-TW", "Must be more than {value}", "\u5FC5\u9808\u5927\u65BC {value}");
|
|
58
58
|
injectString("ro-RO", "Must be more than {value}", "Trebuie s\u0103 fie mai mult de {value}");
|
|
59
|
-
injectString("ar
|
|
59
|
+
injectString("ar", "Must be more than {value}", "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0643\u062B\u0631 \u0645\u0646 {value}");
|
|
60
60
|
injectString("cs", "Must be less than {value}", "Mus\xED b\xFDt men\u0161\xED ne\u017E {value}");
|
|
61
61
|
injectString("da-DK", "Must be less than {value}", "Skal v\xE6re mindre end {value}");
|
|
62
62
|
injectString("de", "Must be less than {value}", "Muss kleiner sein als {value}");
|
|
@@ -83,7 +83,7 @@ injectString("tr", "Must be less than {value}", "{value} de\u011Ferinden az olma
|
|
|
83
83
|
injectString("zh-Hans", "Must be less than {value}", "\u5FC5\u987B\u5C0F\u4E8E {value}");
|
|
84
84
|
injectString("zh-TW", "Must be less than {value}", "\u5FC5\u9808\u5C0F\u65BC {value}");
|
|
85
85
|
injectString("ro-RO", "Must be less than {value}", "Trebuie s\u0103 fie mai pu\u021Bin de {value}");
|
|
86
|
-
injectString("ar
|
|
86
|
+
injectString("ar", "Must be less than {value}", "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0642\u0644 \u0645\u0646 {value}");
|
|
87
87
|
injectString("cs", "The min value must be set", "Mus\xED b\xFDt nastavena minim\xE1ln\xED hodnota");
|
|
88
88
|
injectString("da-DK", "The min value must be set", "Den mindste v\xE6rdi skal indstilles.");
|
|
89
89
|
injectString("de", "The min value must be set", "Mindestwert muss angegeben werden");
|
|
@@ -110,7 +110,7 @@ injectString("tr", "The min value must be set", "Min. de\u011Fer ayarlanmal\u013
|
|
|
110
110
|
injectString("zh-Hans", "The min value must be set", "\u5FC5\u987B\u8BBE\u7F6E\u6700\u5C0F\u503C");
|
|
111
111
|
injectString("zh-TW", "The min value must be set", "\u5FC5\u9808\u8A2D\u5B9A\u6700\u5C0F\u503C");
|
|
112
112
|
injectString("ro-RO", "The min value must be set", "Trebuie setat\u0103 valoarea min.");
|
|
113
|
-
injectString("ar
|
|
113
|
+
injectString("ar", "The min value must be set", "\u064A\u062C\u0628 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u062F\u0646\u0649");
|
|
114
114
|
injectString("cs", "The max value must be set", "Mus\xED b\xFDt nastavena maxim\xE1ln\xED hodnota");
|
|
115
115
|
injectString("da-DK", "The max value must be set", "Den maksimale v\xE6rdi skal indstilles");
|
|
116
116
|
injectString("de", "The max value must be set", "H\xF6chstwert muss angegeben werden");
|
|
@@ -137,7 +137,7 @@ injectString("tr", "The max value must be set", "Maks. de\u011Fer ayarlanmal\u01
|
|
|
137
137
|
injectString("zh-Hans", "The max value must be set", "\u5FC5\u987B\u8BBE\u7F6E\u6700\u5927\u503C");
|
|
138
138
|
injectString("zh-TW", "The max value must be set", "\u5FC5\u9808\u8A2D\u5B9A\u6700\u5927\u503C");
|
|
139
139
|
injectString("ro-RO", "The max value must be set", "Trebuie setat\u0103 valoarea max.");
|
|
140
|
-
injectString("ar
|
|
140
|
+
injectString("ar", "The max value must be set", "\u064A\u062C\u0628 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649");
|
|
141
141
|
injectString("cs", "Must be less than the max", "Mus\xED b\xFDt men\u0161\xED ne\u017E max.");
|
|
142
142
|
injectString("da-DK", "Must be less than the max", "Skal v\xE6re mindre end maks.");
|
|
143
143
|
injectString("de", "Must be less than the max", "Muss kleiner als Max. sein");
|
|
@@ -164,7 +164,7 @@ injectString("tr", "Must be less than the max", "Maks. de\u011Ferden az olmal\u0
|
|
|
164
164
|
injectString("zh-Hans", "Must be less than the max", "\u5FC5\u987B\u5C0F\u4E8E\u6700\u5927\u503C");
|
|
165
165
|
injectString("zh-TW", "Must be less than the max", "\u5FC5\u9808\u5C0F\u65BC\u6700\u5927\u503C");
|
|
166
166
|
injectString("ro-RO", "Must be less than the max", "Trebuie s\u0103 fie sub max.");
|
|
167
|
-
injectString("ar
|
|
167
|
+
injectString("ar", "Must be less than the max", "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0642\u0644 \u0645\u0646 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649");
|
|
168
168
|
injectString("cs", "Must be more than the min", "Mus\xED b\xFDt v\u011Bt\u0161\xED ne\u017E min.");
|
|
169
169
|
injectString("da-DK", "Must be more than the min", "Skal v\xE6re mere end minimum.");
|
|
170
170
|
injectString("de", "Must be more than the min", "Muss gr\xF6\xDFer als Min. sein");
|
|
@@ -191,7 +191,7 @@ injectString("tr", "Must be more than the min", "Min. de\u011Ferden fazla olmal\
|
|
|
191
191
|
injectString("zh-Hans", "Must be more than the min", "\u5FC5\u987B\u5927\u4E8E\u6700\u5C0F\u503C");
|
|
192
192
|
injectString("zh-TW", "Must be more than the min", "\u5FC5\u9808\u5927\u65BC\u6700\u5C0F\u503C");
|
|
193
193
|
injectString("ro-RO", "Must be more than the min", "Trebuie s\u0103 fie peste min.");
|
|
194
|
-
injectString("ar
|
|
194
|
+
injectString("ar", "Must be more than the min", "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u062F\u0646\u0649");
|
|
195
195
|
Object.defineProperty(exports, "__esModule", {
|
|
196
196
|
value: true
|
|
197
197
|
});
|
|
@@ -65,7 +65,7 @@ injectString("tr", "Search", "Ara");
|
|
|
65
65
|
injectString("zh-Hans", "Search", "\u641C\u7D22");
|
|
66
66
|
injectString("zh-TW", "Search", "\u641C\u5C0B");
|
|
67
67
|
injectString("ro-RO", "Search", "C\u0103uta\u021Bi");
|
|
68
|
-
injectString("ar
|
|
68
|
+
injectString("ar", "Search", "\u0628\u062D\u062B");
|
|
69
69
|
injectString("cs", "Clear", "Vymazat");
|
|
70
70
|
injectString("da-DK", "Clear", "Ryd");
|
|
71
71
|
injectString("de", "Clear", "L\xF6schen");
|
|
@@ -92,7 +92,7 @@ injectString("tr", "Clear", "Temizle");
|
|
|
92
92
|
injectString("zh-Hans", "Clear", "\u6E05\u9664");
|
|
93
93
|
injectString("zh-TW", "Clear", "\u6E05\u9664");
|
|
94
94
|
injectString("ro-RO", "Clear", "\u0218terge\u021Bi");
|
|
95
|
-
injectString("ar
|
|
95
|
+
injectString("ar", "Clear", "\u0645\u0633\u062D");
|
|
96
96
|
const React = __importStar(require("react"));
|
|
97
97
|
const react_1 = require("react");
|
|
98
98
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
@@ -152,11 +152,15 @@ const SearchInputRaw = props => {
|
|
|
152
152
|
const handleChange = event => {
|
|
153
153
|
onChange === null || onChange === void 0 ? void 0 : onChange(event.currentTarget.value);
|
|
154
154
|
};
|
|
155
|
+
const innerRef = React.useRef(null);
|
|
155
156
|
let closeButton = null;
|
|
156
157
|
if (!withDefaultCloseIcon) {
|
|
157
158
|
const closeButtonClassName = ["zen-search-input__close-button", value.length ? "zen-search-input__close-button--visible" : "", isMobile && !isDrive ? "zen-search-input__close-button--mobile" : "", driveCloseButtonClassName || ""];
|
|
158
159
|
const onClick = () => {
|
|
160
|
+
var _a;
|
|
159
161
|
onChange === null || onChange === void 0 ? void 0 : onChange("");
|
|
162
|
+
// Return focus to the input after clearing so keyboard users don't lose their place (WCAG 2.1 SC 2.1.1)
|
|
163
|
+
(_a = ref ? ref.current : innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
160
164
|
};
|
|
161
165
|
closeButton = (0, jsx_runtime_1.jsx)("button", {
|
|
162
166
|
type: "button",
|
|
@@ -170,7 +174,6 @@ const SearchInputRaw = props => {
|
|
|
170
174
|
})
|
|
171
175
|
});
|
|
172
176
|
}
|
|
173
|
-
const innerRef = React.useRef(null);
|
|
174
177
|
const onClickHandler = (0, react_1.useCallback)(() => {
|
|
175
178
|
var _a, _b;
|
|
176
179
|
if (ref) {
|
|
@@ -48,7 +48,7 @@ injectString("tr", "Checked", "\u0130\u015Faretlendi");
|
|
|
48
48
|
injectString("zh-Hans", "Checked", "\u5DF2\u9009\u4E2D");
|
|
49
49
|
injectString("zh-TW", "Checked", "\u5DF2\u52FE\u9078");
|
|
50
50
|
injectString("ro-RO", "Checked", "Bifat");
|
|
51
|
-
injectString("ar
|
|
51
|
+
injectString("ar", "Checked", "\u0645\u062D\u062F\u062F");
|
|
52
52
|
injectString("cs", "Unchecked", "Neza\u0161krtnuto");
|
|
53
53
|
injectString("da-DK", "Unchecked", "Ikke markeret");
|
|
54
54
|
injectString("de", "Unchecked", "Deaktiviert");
|
|
@@ -75,7 +75,7 @@ injectString("tr", "Unchecked", "\u0130\u015Faretlenmedi");
|
|
|
75
75
|
injectString("zh-Hans", "Unchecked", "\u672A\u9009\u4E2D");
|
|
76
76
|
injectString("zh-TW", "Unchecked", "\u672A\u52FE\u9078");
|
|
77
77
|
injectString("ro-RO", "Unchecked", "Nebifat");
|
|
78
|
-
injectString("ar
|
|
78
|
+
injectString("ar", "Unchecked", "\u063A\u064A\u0631 \u0645\u062D\u062F\u062F");
|
|
79
79
|
const selectList_reducer_1 = require("./selectList.reducer");
|
|
80
80
|
const selectListItem_1 = require("./selectListItem");
|
|
81
81
|
const isChildOf_1 = require("../utils/isChildOf");
|
|
@@ -6,6 +6,8 @@ const checkboxState_1 = require("../checkbox/checkboxState");
|
|
|
6
6
|
const checkboxNonInteractive_1 = require("../checkboxNonInteractive/checkboxNonInteractive");
|
|
7
7
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
8
8
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
9
|
+
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
10
|
+
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
9
11
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
10
12
|
const getAriaChecked = (showCheckbox, state) => {
|
|
11
13
|
if (!showCheckbox) {
|
|
@@ -26,6 +28,7 @@ const getTabIndex = (showCheckbox, focused, disabled) => {
|
|
|
26
28
|
};
|
|
27
29
|
const SelectListItem = ({ id, disabled = false, state = checkboxState_1.CheckboxState.Off, showCheckbox = false, focused = false, onChange, onClick, onFocusItem, multiLevel, className = "", children }) => {
|
|
28
30
|
const driveClassName = (0, useDriveClassName_1.useDriveClassName)("zen-select-item");
|
|
31
|
+
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
29
32
|
const onClickFunc = () => {
|
|
30
33
|
if (disabled) {
|
|
31
34
|
return;
|
|
@@ -47,6 +50,6 @@ const SelectListItem = ({ id, disabled = false, state = checkboxState_1.Checkbox
|
|
|
47
50
|
"zen-select-item__wrapper",
|
|
48
51
|
"zen-ellipsis",
|
|
49
52
|
multiLevel ? "zen-select-item__wrapper--with-arrow" : ""
|
|
50
|
-
]), children: [showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children), multiLevel && !showCheckbox ? (0, jsx_runtime_1.jsx)(
|
|
53
|
+
]), children: [showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children), multiLevel && !showCheckbox ? (0, jsx_runtime_1.jsx)(ChevronIcon, { size: "large" }) : null] }) }));
|
|
51
54
|
};
|
|
52
55
|
exports.SelectListItem = SelectListItem;
|
|
@@ -34,7 +34,7 @@ injectString("tr", "Loading", "Y\xFCkleniyor");
|
|
|
34
34
|
injectString("zh-Hans", "Loading", "\u6B63\u5728\u52A0\u8F7D");
|
|
35
35
|
injectString("zh-TW", "Loading", "\u8F09\u5165\u4E2D");
|
|
36
36
|
injectString("ro-RO", "Loading", "Se \xEEncarc\u0103");
|
|
37
|
-
injectString("ar
|
|
37
|
+
injectString("ar", "Loading", "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644");
|
|
38
38
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
39
39
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
40
40
|
const Skeleton = ({
|
|
@@ -38,7 +38,7 @@ injectString("tr", "Sort by", "S\u0131ralama \xF6l\xE7\xFCt\xFC");
|
|
|
38
38
|
injectString("zh-Hans", "Sort by", "\u6392\u5E8F\u4F9D\u636E");
|
|
39
39
|
injectString("zh-TW", "Sort by", "\u6392\u5E8F\u4F9D\u64DA");
|
|
40
40
|
injectString("ro-RO", "Sort by", "Sorta\u021Bi dup\u0103");
|
|
41
|
-
injectString("ar
|
|
41
|
+
injectString("ar", "Sort by", "\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628");
|
|
42
42
|
injectString("cs", "Change sort direction", "Zm\u011Bnit sm\u011Br \u0159azen\xED");
|
|
43
43
|
injectString("da-DK", "Change sort direction", "Skift sorteringsretning");
|
|
44
44
|
injectString("de", "Change sort direction", "Sortierrichtung \xE4ndern");
|
|
@@ -65,7 +65,7 @@ injectString("tr", "Change sort direction", "S\u0131ralama y\xF6n\xFCn\xFC de\u0
|
|
|
65
65
|
injectString("zh-Hans", "Change sort direction", "\u66F4\u6539\u6392\u5E8F");
|
|
66
66
|
injectString("zh-TW", "Change sort direction", "\u8B8A\u66F4\u6392\u5E8F\u65B9\u5411");
|
|
67
67
|
injectString("ro-RO", "Change sort direction", "Schimba\u021Bi direc\u021Bia sort\u0103rii");
|
|
68
|
-
injectString("ar
|
|
68
|
+
injectString("ar", "Change sort direction", "\u062A\u063A\u064A\u064A\u0631 \u0627\u062A\u062C\u0627\u0647 \u0627\u0644\u062A\u0631\u062A\u064A\u0628");
|
|
69
69
|
injectString("cs", "Ascending", "Vzestupn\u011B");
|
|
70
70
|
injectString("da-DK", "Ascending", "Stigende");
|
|
71
71
|
injectString("de", "Ascending", "Aufsteigend");
|
|
@@ -92,7 +92,7 @@ injectString("tr", "Ascending", "Artan");
|
|
|
92
92
|
injectString("zh-Hans", "Ascending", "\u5347\u5E8F");
|
|
93
93
|
injectString("zh-TW", "Ascending", "\u905E\u589E");
|
|
94
94
|
injectString("ro-RO", "Ascending", "Ascensiune");
|
|
95
|
-
injectString("ar
|
|
95
|
+
injectString("ar", "Ascending", "\u062A\u0635\u0627\u0639\u062F\u064A");
|
|
96
96
|
injectString("cs", "Descending", "Sestupn\u011B");
|
|
97
97
|
injectString("da-DK", "Descending", "Faldende");
|
|
98
98
|
injectString("de", "Descending", "Absteigend");
|
|
@@ -119,7 +119,7 @@ injectString("tr", "Descending", "Azalan");
|
|
|
119
119
|
injectString("zh-Hans", "Descending", "\u964D\u5E8F");
|
|
120
120
|
injectString("zh-TW", "Descending", "\u905E\u6E1B");
|
|
121
121
|
injectString("ro-RO", "Descending", "Cobor\xE2re");
|
|
122
|
-
injectString("ar
|
|
122
|
+
injectString("ar", "Descending", "\u062A\u0646\u0627\u0632\u0644\u064A");
|
|
123
123
|
injectString("cs", "Sort Options", "Sort Options");
|
|
124
124
|
injectString("da-DK", "Sort Options", "Sorteringsmuligheder");
|
|
125
125
|
injectString("de", "Sort Options", "Sort Options");
|
|
@@ -146,7 +146,7 @@ injectString("tr", "Sort Options", "Sort Options");
|
|
|
146
146
|
injectString("zh-Hans", "Sort Options", "Sort Options");
|
|
147
147
|
injectString("zh-TW", "Sort Options", "\u6392\u5E8F\u9078\u9805");
|
|
148
148
|
injectString("ro-RO", "Sort Options", "Op\u021Biuni de sortare");
|
|
149
|
-
injectString("ar
|
|
149
|
+
injectString("ar", "Sort Options", "\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u062A\u0631\u062A\u064A\u0628");
|
|
150
150
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
151
151
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
152
152
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
@@ -154,7 +154,6 @@ const useDrive_1 = require("../utils/theme/useDrive");
|
|
|
154
154
|
const iconChevronDownSmall_1 = require("../icons/iconChevronDownSmall");
|
|
155
155
|
const iconFilter3Asc_1 = require("../icons/iconFilter3Asc");
|
|
156
156
|
const iconFilter3Desc_1 = require("../icons/iconFilter3Desc");
|
|
157
|
-
const MENU_POSITION = "bottom-left";
|
|
158
157
|
const BUTTON_TEXT_DEFAULT = "Sort by";
|
|
159
158
|
var SortDirections;
|
|
160
159
|
(function (SortDirections) {
|
|
@@ -239,7 +238,7 @@ const SortControl = ({
|
|
|
239
238
|
size: isDrive ? "huge" : "large"
|
|
240
239
|
})
|
|
241
240
|
}),
|
|
242
|
-
alignment:
|
|
241
|
+
alignment: "bottom-left",
|
|
243
242
|
onOpenChange: isCurrentlyOpen => onOptionsToggle(isCurrentlyOpen),
|
|
244
243
|
children: (0, jsx_runtime_1.jsx)(selectList_1.SelectList, {
|
|
245
244
|
id: "sortControlSelectList",
|