@geotab/zenith 2.0.0 → 3.0.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 +40 -0
- package/dist/absolute/absolute.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.js +9 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/dist/alert/hooks/useAlertState.d.ts +1 -1
- package/dist/alertRaw/alertRaw.d.ts +4 -2
- package/dist/alertRaw/alertRaw.js +3 -4
- package/dist/banner/banner.d.ts +0 -15
- package/dist/banner/bannerUtils.d.ts +0 -2
- package/dist/banner/bannerUtils.js +1 -0
- package/dist/betaPill/betaPill.d.ts +0 -5
- package/dist/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/dist/button/button.d.ts +6 -1
- package/dist/button/button.js +4 -27
- package/dist/calendar/calendar.d.ts +0 -5
- package/dist/card/card.d.ts +4 -7
- package/dist/card/card.js +7 -4
- package/dist/card/components/status.d.ts +0 -5
- package/dist/card/components/title.d.ts +2 -0
- package/dist/card/components/title.js +11 -6
- package/dist/card/hooks/useCardSize.d.ts +2 -1
- package/dist/cardContainer/cardContainer.d.ts +3 -2
- package/dist/cardContainer/cardContainer.js +3 -4
- package/dist/chart/lineChart/useChartTicks.d.ts +1 -1
- package/dist/chart/lineChart/useSummary.d.ts +1 -1
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/dist/chip/utils/useChip.d.ts +1 -1
- package/dist/columnsSelector/columnsSelector.d.ts +0 -5
- package/dist/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/dist/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/dist/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/dist/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/dist/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/dist/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/dist/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/dist/commonHelpers/ref.d.ts +2 -0
- package/dist/controlledPopup/controlledPopup.d.ts +2 -2
- package/dist/dataFeed/dataFeed.d.ts +2 -2
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.js +3 -3
- package/dist/dataGrid/cell/cell.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -3
- package/dist/dataGrid/columns/basicColumn.d.ts +1 -1
- package/dist/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +2 -2
- package/dist/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/dist/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/dist/dataGrid/dataGrid.d.ts +1 -1
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/dist/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/dist/dataGrid/withActions/withActions.d.ts +6 -2
- package/dist/dataGrid/withActions/withActions.js +18 -16
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +123 -121
- package/dist/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/dist/dataGrid/withLoading/withLoading.js +34 -32
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.js +38 -36
- package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +165 -163
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/dist/dataGrid/withSortableColumns/withSortableColumns.js +3 -3
- package/dist/dateInput/dateInput.d.ts +0 -4
- package/dist/dateInputInner/dateInputInner.d.ts +0 -5
- package/dist/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/dist/dateInputInner/dateInputInnerControlBlock.js +4 -8
- package/dist/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dropdown/dropdown.d.ts +0 -5
- package/dist/dropdown/dropdownList.d.ts +1 -6
- package/dist/dropdown/dropdownPopup.d.ts +4 -4
- package/dist/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/dist/dropdown/dropdownSearchableTrigger.js +5 -27
- package/dist/dropdown/dropdownTrigger.d.ts +2 -7
- package/dist/feedbackContainer/feedbackContext.d.ts +3 -3
- package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/dist/filterButton/filterButton.d.ts +3 -2
- package/dist/filterButton/filterButton.js +4 -4
- package/dist/filters/components/filtersContainer.js +8 -4
- package/dist/filters/components/filtersDateRange.d.ts +1 -2
- package/dist/filters/components/filtersDropdown.d.ts +1 -1
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSearch.d.ts +6 -2
- package/dist/filters/components/filtersSearch.js +3 -2
- package/dist/filters/filters.js +20 -11
- package/dist/filters/filtersHelper.d.ts +1 -1
- package/dist/filters/filtersHelper.js +20 -14
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/dist/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/dist/filtersBar/filtersBar.d.ts +0 -5
- package/dist/filtersBar/filtersBar.js +3 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/dist/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/dist/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/dist/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/dist/filtersBar/utils/isCustomElementValid.js +7 -1
- package/dist/formField/formField.d.ts +6 -3
- package/dist/formField/formField.js +5 -9
- package/dist/formStepper/components/formStep.d.ts +2 -1
- package/dist/formStepper/components/formStep.js +3 -2
- package/dist/formStepper/components/formStepRaw.d.ts +2 -2
- package/dist/formStepper/components/formStepRaw.js +6 -4
- package/dist/formStepper/formStepper.d.ts +4 -1
- package/dist/formStepper/formStepper.js +20 -7
- package/dist/formStepper/utils/getOnClick.d.ts +1 -1
- package/dist/formStepper/utils/getOnClick.js +1 -1
- package/dist/formStepper/utils/getTabIndex.d.ts +1 -1
- package/dist/formStepper/utils/getTabIndex.js +4 -1
- package/dist/formStepperButtons/formStepperButtons.js +3 -2
- package/dist/gridLayout/hooks/useStretch.d.ts +1 -1
- package/dist/gridLayout/hooks/useStretch.js +3 -2
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsFilter.d.ts +1 -16
- package/dist/groupsFilter/groupsFilter.js +6 -6
- package/dist/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/dist/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterInitialState.js +1 -3
- package/dist/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/dist/groupsFilter/groupsFilterTrigger.js +5 -27
- package/dist/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +3 -3
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +3 -6
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/dist/header/header.d.ts +0 -10
- package/dist/header/header.js +15 -2
- package/dist/header/headerHelpers.d.ts +3 -3
- package/dist/header/headerHelpers.js +20 -16
- package/dist/header/hooks/useNonFittingElements.d.ts +1 -1
- package/dist/headerTitle/headerTitle.d.ts +0 -5
- package/dist/index.css +313 -933
- package/dist/index.d.ts +2 -9
- package/dist/index.js +15 -30
- package/dist/inputAdornments/inputAdornments.d.ts +6 -2
- package/dist/inputAdornments/inputAdornments.js +3 -26
- package/dist/layout/layout.js +1 -1
- package/dist/layout/layoutSummaryTiles.d.ts +3 -3
- package/dist/layout/layoutSummaryTiles.js +3 -2
- package/dist/list/hooks/useLazyLoading.d.ts +2 -1
- package/dist/list/hooks/useVirtualScroll.d.ts +2 -2
- package/dist/list/list.js +1 -0
- package/dist/menu/components/menuButton.d.ts +3 -2
- package/dist/menu/components/menuButton.js +3 -4
- package/dist/menu/components/menuItem.d.ts +1 -0
- package/dist/menu/components/menuItem.js +32 -7
- package/dist/menu/components/menuSeparator.d.ts +2 -1
- package/dist/menu/components/menuSeparator.js +15 -1
- package/dist/menu/controlledMenu.d.ts +1 -1
- package/dist/menu/controlledMenu.js +11 -10
- package/dist/menu/menu.d.ts +1 -1
- package/dist/menu/menu.js +3 -1
- package/dist/menu/utils/findContent.js +4 -3
- package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/dist/miniTabs/miniTabsHelper.d.ts +1 -1
- package/dist/miniTabs/miniTabsHelper.js +55 -10
- package/dist/mobileSheet/mobileSheet.d.ts +0 -5
- package/dist/mobileSheet/mobileSheet.js +4 -4
- package/dist/modal/modal.js +3 -0
- package/dist/nav/nav.js +2 -1
- package/dist/nav/navHeader/navHeader.js +4 -1
- package/dist/nav/utils/navUtils.d.ts +1 -1
- package/dist/nav/utils/navUtils.js +6 -7
- package/dist/notification/notification.d.ts +3 -2
- package/dist/notification/notification.js +3 -4
- package/dist/oldPill/pill.d.ts +3 -2
- package/dist/oldPill/pill.js +4 -27
- package/dist/pageHeader/pageHeaderActions.js +1 -1
- package/dist/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/dist/pageHeader/pageHeaderHelpers.js +3 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.js +3 -26
- package/dist/pagination/pagination.d.ts +2 -7
- package/dist/pagination/paginationText/paginationText.d.ts +0 -5
- package/dist/parallelSelection/parallelSelection.d.ts +4 -3
- package/dist/parallelSelection/parallelSelection.js +5 -27
- package/dist/pillBox/components/pillBoxItem.d.ts +0 -5
- package/dist/pillBox/pillBox.d.ts +0 -5
- package/dist/pillExpandable/pillExpandable.js +4 -2
- package/dist/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/dist/pillExpandable/pillExpandableSimple.js +3 -2
- package/dist/popup/popup.d.ts +2 -2
- package/dist/popup/popup.js +3 -1
- package/dist/primaryIcon/renderIcon.d.ts +1 -1
- package/dist/radio/radio.d.ts +3 -2
- package/dist/radio/radio.js +4 -3
- package/dist/radioGroup/radioGroup.js +1 -1
- package/dist/range/rangeField.d.ts +2 -2
- package/dist/react-chartjs/chart.js +1 -1
- package/dist/react-chartjs/types.d.ts +2 -2
- package/dist/searchInput/searchInput.d.ts +4 -2
- package/dist/searchInput/searchInput.js +4 -7
- package/dist/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/dist/searchInputRaw/searchInputRaw.js +3 -2
- package/dist/searchList/searchList.d.ts +0 -22
- package/dist/searchList/searchList.js +0 -157
- package/dist/select/select.d.ts +4 -4
- package/dist/selectField/selectField.d.ts +4 -4
- package/dist/selectList/selectList.js +2 -2
- package/dist/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/dist/selectRaw/selectRaw.d.ts +6 -7
- package/dist/selectRaw/selectRaw.js +5 -4
- package/dist/sidePanel/sidePanel.d.ts +2 -2
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/dist/sortControl/sortControl.d.ts +0 -5
- package/dist/stepper/stepper.d.ts +4 -2
- package/dist/stepper/stepper.js +4 -7
- package/dist/stepperRaw/stepperRaw.d.ts +3 -2
- package/dist/stepperRaw/stepperRaw.js +3 -4
- package/dist/summaryTile/summaryTile.d.ts +0 -5
- package/dist/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/dist/summaryTile/summaryTileTrigger.js +4 -3
- package/dist/table/actions/actionsMenu.d.ts +3 -3
- package/dist/table/actions/useActions.d.ts +2 -3
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/children/useTableChildren.js +10 -9
- package/dist/table/flexible/columnsPopup.d.ts +2 -2
- package/dist/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/dist/table/nested/nestedData.js +2 -0
- package/dist/textIconButton/textIconButton.d.ts +1 -1
- package/dist/textIconButton/textIconButton.js +4 -3
- package/dist/textInput/textInput.d.ts +7 -3
- package/dist/textInput/textInput.js +4 -27
- package/dist/textInputRaw/textInputRaw.d.ts +3 -1
- package/dist/textInputRaw/textInputRaw.js +4 -29
- package/dist/textarea/textarea.d.ts +4 -2
- package/dist/textarea/textarea.js +4 -27
- package/dist/textareaRaw/textareaRaw.d.ts +6 -1
- package/dist/textareaRaw/textareaRaw.js +3 -26
- package/dist/timePicker/timePicker.d.ts +0 -5
- package/dist/toast/hooks/useToast.js +9 -4
- package/dist/toast/hooks/useToastState.d.ts +2 -2
- package/dist/toastRaw/toastRaw.d.ts +4 -3
- package/dist/toastRaw/toastRaw.js +3 -4
- package/dist/toggleButton/toggleButton.d.ts +1 -1
- package/dist/toggleButton/toggleButton.js +2 -1
- package/dist/toolbar/toolbarContent.d.ts +3 -2
- package/dist/toolbar/toolbarContent.js +8 -5
- package/dist/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/dist/tooltip/tooltip.d.ts +2 -7
- package/dist/tooltip/tooltip.js +12 -7
- package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/dist/utils/positioningUtils/calculatePosition.js +21 -9
- package/dist/utils/useNodeText.d.ts +2 -1
- package/esm/absolute/absolute.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.js +9 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/esm/alert/hooks/useAlertState.d.ts +1 -1
- package/esm/alertRaw/alertRaw.d.ts +4 -2
- package/esm/alertRaw/alertRaw.js +3 -5
- package/esm/banner/banner.d.ts +0 -15
- package/esm/banner/bannerUtils.d.ts +0 -2
- package/esm/banner/bannerUtils.js +1 -0
- package/esm/betaPill/betaPill.d.ts +0 -5
- package/esm/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/esm/button/button.d.ts +6 -1
- package/esm/button/button.js +3 -4
- package/esm/calendar/calendar.d.ts +0 -5
- package/esm/card/card.d.ts +4 -7
- package/esm/card/card.js +7 -4
- package/esm/card/components/status.d.ts +0 -5
- package/esm/card/components/title.d.ts +2 -0
- package/esm/card/components/title.js +12 -7
- package/esm/card/hooks/useCardSize.d.ts +2 -1
- package/esm/cardContainer/cardContainer.d.ts +3 -2
- package/esm/cardContainer/cardContainer.js +3 -5
- package/esm/chart/lineChart/useChartTicks.d.ts +1 -1
- package/esm/chart/lineChart/useSummary.d.ts +1 -1
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/esm/chip/utils/useChip.d.ts +1 -1
- package/esm/columnsSelector/columnsSelector.d.ts +0 -5
- package/esm/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/esm/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/esm/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/esm/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/esm/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/esm/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/esm/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/esm/commonHelpers/ref.d.ts +2 -0
- package/esm/controlledPopup/controlledPopup.d.ts +2 -2
- package/esm/dataFeed/dataFeed.d.ts +2 -2
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.js +2 -3
- package/esm/dataGrid/cell/cell.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/esm/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -4
- package/esm/dataGrid/columns/basicColumn.d.ts +1 -1
- package/esm/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +3 -3
- package/esm/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/esm/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/esm/dataGrid/dataGrid.d.ts +1 -1
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/esm/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/esm/dataGrid/withActions/withActions.d.ts +6 -2
- package/esm/dataGrid/withActions/withActions.js +19 -17
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +124 -122
- package/esm/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/esm/dataGrid/withLoading/withLoading.js +35 -33
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.js +39 -37
- package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +166 -164
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/esm/dataGrid/withSortableColumns/withSortableColumns.js +4 -4
- package/esm/dateInput/dateInput.d.ts +0 -4
- package/esm/dateInputInner/dateInputInner.d.ts +0 -5
- package/esm/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/esm/dateInputInner/dateInputInnerControlBlock.js +3 -5
- package/esm/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/esm/dialog/dialogContent.js +1 -1
- package/esm/dropdown/dropdown.d.ts +0 -5
- package/esm/dropdown/dropdownList.d.ts +1 -6
- package/esm/dropdown/dropdownPopup.d.ts +4 -4
- package/esm/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/esm/dropdown/dropdownSearchableTrigger.js +4 -4
- package/esm/dropdown/dropdownTrigger.d.ts +2 -7
- package/esm/feedbackContainer/feedbackContext.d.ts +3 -3
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/esm/filterButton/filterButton.d.ts +3 -2
- package/esm/filterButton/filterButton.js +4 -5
- package/esm/filters/components/filtersContainer.js +8 -4
- package/esm/filters/components/filtersDateRange.d.ts +1 -2
- package/esm/filters/components/filtersDropdown.d.ts +1 -1
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSearch.d.ts +6 -2
- package/esm/filters/components/filtersSearch.js +2 -2
- package/esm/filters/filters.js +20 -11
- package/esm/filters/filtersHelper.d.ts +1 -1
- package/esm/filters/filtersHelper.js +20 -14
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/esm/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/esm/filtersBar/filtersBar.d.ts +0 -5
- package/esm/filtersBar/filtersBar.js +3 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/esm/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/esm/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/esm/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/esm/filtersBar/utils/isCustomElementValid.js +7 -1
- package/esm/formField/formField.d.ts +6 -3
- package/esm/formField/formField.js +5 -6
- package/esm/formStepper/components/formStep.d.ts +2 -1
- package/esm/formStepper/components/formStep.js +3 -2
- package/esm/formStepper/components/formStepRaw.d.ts +2 -2
- package/esm/formStepper/components/formStepRaw.js +6 -4
- package/esm/formStepper/formStepper.d.ts +4 -1
- package/esm/formStepper/formStepper.js +19 -6
- package/esm/formStepper/utils/getOnClick.d.ts +1 -1
- package/esm/formStepper/utils/getOnClick.js +1 -1
- package/esm/formStepper/utils/getTabIndex.d.ts +1 -1
- package/esm/formStepper/utils/getTabIndex.js +4 -1
- package/esm/formStepperButtons/formStepperButtons.js +3 -2
- package/esm/gridLayout/hooks/useStretch.d.ts +1 -1
- package/esm/gridLayout/hooks/useStretch.js +3 -2
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsFilter.d.ts +1 -16
- package/esm/groupsFilter/groupsFilter.js +6 -6
- package/esm/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/esm/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterInitialState.js +1 -3
- package/esm/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/esm/groupsFilter/groupsFilterTrigger.js +4 -4
- package/esm/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +4 -4
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +2 -3
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/esm/header/header.d.ts +0 -10
- package/esm/header/header.js +15 -2
- package/esm/header/headerHelpers.d.ts +3 -3
- package/esm/header/headerHelpers.js +20 -16
- package/esm/header/hooks/useNonFittingElements.d.ts +1 -1
- package/esm/headerTitle/headerTitle.d.ts +0 -5
- package/esm/index.d.ts +2 -9
- package/esm/index.js +1 -9
- package/esm/inputAdornments/inputAdornments.d.ts +6 -2
- package/esm/inputAdornments/inputAdornments.js +2 -3
- package/esm/layout/layout.js +1 -1
- package/esm/layout/layoutSummaryTiles.d.ts +3 -3
- package/esm/layout/layoutSummaryTiles.js +3 -3
- package/esm/list/hooks/useLazyLoading.d.ts +2 -1
- package/esm/list/hooks/useVirtualScroll.d.ts +2 -2
- package/esm/list/list.js +1 -0
- package/esm/menu/components/menuButton.d.ts +3 -2
- package/esm/menu/components/menuButton.js +3 -5
- package/esm/menu/components/menuItem.d.ts +1 -0
- package/esm/menu/components/menuItem.js +31 -7
- package/esm/menu/components/menuSeparator.d.ts +2 -1
- package/esm/menu/components/menuSeparator.js +13 -0
- package/esm/menu/controlledMenu.d.ts +1 -1
- package/esm/menu/controlledMenu.js +13 -12
- package/esm/menu/menu.d.ts +1 -1
- package/esm/menu/menu.js +3 -1
- package/esm/menu/utils/findContent.js +4 -3
- package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/esm/miniTabs/miniTabsHelper.d.ts +1 -1
- package/esm/miniTabs/miniTabsHelper.js +33 -8
- package/esm/mobileSheet/mobileSheet.d.ts +0 -5
- package/esm/mobileSheet/mobileSheet.js +5 -5
- package/esm/modal/modal.js +3 -0
- package/esm/nav/nav.js +2 -1
- package/esm/nav/navHeader/navHeader.js +4 -1
- package/esm/nav/utils/navUtils.d.ts +1 -1
- package/esm/nav/utils/navUtils.js +7 -8
- package/esm/notification/notification.d.ts +3 -2
- package/esm/notification/notification.js +3 -5
- package/esm/oldPill/pill.d.ts +3 -2
- package/esm/oldPill/pill.js +3 -4
- package/esm/pageHeader/pageHeaderActions.js +3 -3
- package/esm/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/esm/pageHeader/pageHeaderHelpers.js +3 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.js +2 -3
- package/esm/pagination/pagination.d.ts +2 -7
- package/esm/pagination/paginationText/paginationText.d.ts +0 -5
- package/esm/parallelSelection/parallelSelection.d.ts +4 -3
- package/esm/parallelSelection/parallelSelection.js +4 -4
- package/esm/pillBox/components/pillBoxItem.d.ts +0 -5
- package/esm/pillBox/pillBox.d.ts +0 -5
- package/esm/pillExpandable/pillExpandable.js +4 -2
- package/esm/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/esm/pillExpandable/pillExpandableSimple.js +3 -3
- package/esm/popup/popup.d.ts +2 -2
- package/esm/popup/popup.js +3 -1
- package/esm/primaryIcon/renderIcon.d.ts +1 -1
- package/esm/radio/radio.d.ts +3 -2
- package/esm/radio/radio.js +3 -3
- package/esm/radioGroup/radioGroup.js +1 -1
- package/esm/range/rangeField.d.ts +2 -2
- package/esm/react-chartjs/chart.js +1 -1
- package/esm/react-chartjs/types.d.ts +2 -2
- package/esm/searchInput/searchInput.d.ts +4 -2
- package/esm/searchInput/searchInput.js +3 -4
- package/esm/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/esm/searchInputRaw/searchInputRaw.js +2 -2
- package/esm/searchList/searchList.d.ts +0 -22
- package/esm/searchList/searchList.js +1 -154
- package/esm/select/select.d.ts +4 -4
- package/esm/selectField/selectField.d.ts +4 -4
- package/esm/selectList/selectList.js +3 -3
- package/esm/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/esm/selectRaw/selectRaw.d.ts +6 -7
- package/esm/selectRaw/selectRaw.js +5 -5
- package/esm/sidePanel/sidePanel.d.ts +2 -2
- package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/esm/sortControl/sortControl.d.ts +0 -5
- package/esm/stepper/stepper.d.ts +4 -2
- package/esm/stepper/stepper.js +3 -4
- package/esm/stepperRaw/stepperRaw.d.ts +3 -2
- package/esm/stepperRaw/stepperRaw.js +3 -5
- package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.d.ts +2 -7
- package/esm/summaryTile/summaryTile.d.ts +0 -5
- package/esm/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/esm/summaryTile/summaryTileTrigger.js +3 -3
- package/esm/table/actions/actionsMenu.d.ts +3 -3
- package/esm/table/actions/useActions.d.ts +2 -3
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/children/useTableChildren.js +11 -10
- package/esm/table/flexible/columnsPopup.d.ts +2 -2
- package/esm/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/esm/table/nested/nestedData.js +2 -0
- package/esm/textIconButton/textIconButton.d.ts +1 -1
- package/esm/textIconButton/textIconButton.js +3 -3
- package/esm/textInput/textInput.d.ts +7 -3
- package/esm/textInput/textInput.js +3 -4
- package/esm/textInputRaw/textInputRaw.d.ts +3 -1
- package/esm/textInputRaw/textInputRaw.js +3 -6
- package/esm/textarea/textarea.d.ts +4 -2
- package/esm/textarea/textarea.js +3 -4
- package/esm/textareaRaw/textareaRaw.d.ts +6 -1
- package/esm/textareaRaw/textareaRaw.js +2 -3
- package/esm/timePicker/timePicker.d.ts +0 -5
- package/esm/toast/hooks/useToast.js +9 -4
- package/esm/toast/hooks/useToastState.d.ts +2 -2
- package/esm/toastRaw/toastRaw.d.ts +4 -3
- package/esm/toastRaw/toastRaw.js +3 -5
- package/esm/toggleButton/toggleButton.d.ts +1 -1
- package/esm/toggleButton/toggleButton.js +3 -2
- package/esm/toolbar/toolbarContent.d.ts +3 -2
- package/esm/toolbar/toolbarContent.js +8 -6
- package/esm/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/esm/tooltip/tooltip.d.ts +2 -7
- package/esm/tooltip/tooltip.js +12 -7
- package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/esm/utils/positioningUtils/calculatePosition.js +21 -9
- package/esm/utils/useNodeText.d.ts +2 -1
- package/package.json +8 -8
- package/dist/bottomSection/bottomSection.d.ts +0 -13
- package/dist/bottomSection/bottomSection.js +0 -48
- package/dist/bottomSection/bottomSectionType.d.ts +0 -4
- package/dist/bottomSection/bottomSectionType.js +0 -8
- package/dist/comboList/comboList.d.ts +0 -24
- package/dist/comboList/comboList.js +0 -30
- package/dist/comboList/comboListHook.d.ts +0 -4
- package/dist/comboList/comboListHook.js +0 -14
- package/dist/combobox/combobox.d.ts +0 -27
- package/dist/combobox/combobox.js +0 -190
- package/dist/combobox/comboboxNavigation.d.ts +0 -3
- package/dist/combobox/comboboxNavigation.js +0 -26
- package/dist/commonHelpers/translatable.d.ts +0 -11
- package/dist/dropdownOld/dropdownOld.d.ts +0 -17
- package/dist/dropdownOld/dropdownOld.js +0 -54
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -10
- package/dist/icons/deprecated/iconActivity.d.ts +0 -7
- package/dist/icons/deprecated/iconActivity.js +0 -20
- package/dist/icons/deprecated/iconArchive.d.ts +0 -7
- package/dist/icons/deprecated/iconArchive.js +0 -20
- package/dist/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowBottom.js +0 -20
- package/dist/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowDown.js +0 -20
- package/dist/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowTop.js +0 -20
- package/dist/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/dist/icons/deprecated/iconAssetInactive.js +0 -20
- package/dist/icons/deprecated/iconBookmark.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmark.js +0 -20
- package/dist/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmarkFill.js +0 -20
- package/dist/icons/deprecated/iconCalendar.d.ts +0 -7
- package/dist/icons/deprecated/iconCalendar.js +0 -20
- package/dist/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronDownSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronLeftSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronRightSmall.js +0 -20
- package/dist/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/dist/icons/deprecated/iconCircleOk.js +0 -20
- package/dist/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/dist/icons/deprecated/iconCogSettings.js +0 -20
- package/dist/icons/deprecated/iconConditions.d.ts +0 -7
- package/dist/icons/deprecated/iconConditions.js +0 -20
- package/dist/icons/deprecated/iconDelete.d.ts +0 -7
- package/dist/icons/deprecated/iconDelete.js +0 -20
- package/dist/icons/deprecated/iconDownload.d.ts +0 -7
- package/dist/icons/deprecated/iconDownload.js +0 -20
- package/dist/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/dist/icons/deprecated/iconDragAndDrop.js +0 -20
- package/dist/icons/deprecated/iconEdit.d.ts +0 -7
- package/dist/icons/deprecated/iconEdit.js +0 -20
- package/dist/icons/deprecated/iconError.d.ts +0 -7
- package/dist/icons/deprecated/iconError.js +0 -20
- package/dist/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/dist/icons/deprecated/iconErrorNew.js +0 -20
- package/dist/icons/deprecated/iconExclude.d.ts +0 -7
- package/dist/icons/deprecated/iconExclude.js +0 -20
- package/dist/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/dist/icons/deprecated/iconFilterOutline.js +0 -20
- package/dist/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/dist/icons/deprecated/iconFolderNew.js +0 -20
- package/dist/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/dist/icons/deprecated/iconFullscreen.js +0 -20
- package/dist/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/dist/icons/deprecated/iconInfoCircled.js +0 -20
- package/dist/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/dist/icons/deprecated/iconLeftBracketLg.js +0 -20
- package/dist/icons/deprecated/iconLocation.d.ts +0 -7
- package/dist/icons/deprecated/iconLocation.js +0 -20
- package/dist/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/dist/icons/deprecated/iconLocationPin.js +0 -20
- package/dist/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/dist/icons/deprecated/iconLvlUp.js +0 -20
- package/dist/icons/deprecated/iconMap.d.ts +0 -7
- package/dist/icons/deprecated/iconMap.js +0 -20
- package/dist/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/dist/icons/deprecated/iconNarrowArrowRight.js +0 -20
- package/dist/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/dist/icons/deprecated/iconNotificationBell.js +0 -20
- package/dist/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/dist/icons/deprecated/iconOptionsIcon.js +0 -20
- package/dist/icons/deprecated/iconPlus.d.ts +0 -7
- package/dist/icons/deprecated/iconPlus.js +0 -20
- package/dist/icons/deprecated/iconReportError.d.ts +0 -7
- package/dist/icons/deprecated/iconReportError.js +0 -20
- package/dist/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconRightArrow.js +0 -20
- package/dist/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconSelectArrow.js +0 -20
- package/dist/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/dist/icons/deprecated/iconSettings6SliderThree.js +0 -20
- package/dist/icons/deprecated/iconShrink.d.ts +0 -7
- package/dist/icons/deprecated/iconShrink.js +0 -20
- package/dist/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/dist/icons/deprecated/iconSortAsc.js +0 -20
- package/dist/icons/deprecated/iconSortDec.d.ts +0 -7
- package/dist/icons/deprecated/iconSortDec.js +0 -20
- package/dist/icons/deprecated/iconSpinner.d.ts +0 -7
- package/dist/icons/deprecated/iconSpinner.js +0 -20
- package/dist/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/dist/icons/deprecated/iconStatusNoComm.js +0 -20
- package/dist/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/dist/icons/deprecated/iconSuccessNew.js +0 -20
- package/dist/icons/deprecated/iconTick.d.ts +0 -7
- package/dist/icons/deprecated/iconTick.js +0 -20
- package/dist/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/dist/icons/deprecated/iconVerticalEllipsis.js +0 -20
- package/dist/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/dist/icons/deprecated/iconWarningNew.js +0 -20
- package/dist/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/dist/icons/deprecated/iconZoneGeofence.js +0 -18
- package/dist/icons/iconAddPeople2.d.ts +0 -8
- package/dist/icons/iconAddPeople2.js +0 -21
- package/dist/icons/iconCalendar2.d.ts +0 -8
- package/dist/icons/iconCalendar2.js +0 -21
- package/dist/icons/iconCornerUpRight2.d.ts +0 -8
- package/dist/icons/iconCornerUpRight2.js +0 -21
- package/dist/icons/iconImac2.d.ts +0 -8
- package/dist/icons/iconImac2.js +0 -21
- package/dist/icons/iconInbox2.d.ts +0 -8
- package/dist/icons/iconInbox2.js +0 -21
- package/dist/icons/iconMenuCircle2.d.ts +0 -8
- package/dist/icons/iconMenuCircle2.js +0 -21
- package/dist/icons/iconShare2.d.ts +0 -8
- package/dist/icons/iconShare2.js +0 -21
- package/dist/icons/iconVolumeOf.d.ts +0 -8
- package/dist/icons/iconVolumeOf.js +0 -21
- package/dist/reportPopup/groupedReportsItem.d.ts +0 -7
- package/dist/reportPopup/groupedReportsItem.js +0 -10
- package/dist/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/errorNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/infoNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/dist/reportPopup/notificationTemplates/successNotification.js +0 -20
- package/dist/reportPopup/reportPopup.d.ts +0 -23
- package/dist/reportPopup/reportPopup.js +0 -56
- package/dist/reportPopup/reportPopupContent.d.ts +0 -12
- package/dist/reportPopup/reportPopupContent.js +0 -29
- package/dist/reportPopup/reports.d.ts +0 -7
- package/dist/reportPopup/reports.js +0 -11
- package/dist/reportPopup/reportsItem.d.ts +0 -12
- package/dist/reportPopup/reportsItem.js +0 -18
- package/dist/reportPopup/reportsItemFormats.d.ts +0 -10
- package/dist/reportPopup/reportsItemFormats.js +0 -14
- package/dist/searchList/searchListHelpers.d.ts +0 -20
- package/dist/searchList/searchListHelpers.js +0 -90
- package/dist/searchableField/searchableField.d.ts +0 -28
- package/dist/searchableField/searchableField.js +0 -31
- package/dist/static/icons/icons.d.ts +0 -67
- package/dist/static/icons/icons.js +0 -76
- package/dist/svgIcon/svgIcon.d.ts +0 -16
- package/dist/svgIcon/svgIcon.js +0 -43
- package/esm/bottomSection/bottomSection.d.ts +0 -13
- package/esm/bottomSection/bottomSection.js +0 -21
- package/esm/bottomSection/bottomSectionType.d.ts +0 -4
- package/esm/bottomSection/bottomSectionType.js +0 -5
- package/esm/comboList/comboList.d.ts +0 -24
- package/esm/comboList/comboList.js +0 -26
- package/esm/comboList/comboListHook.d.ts +0 -4
- package/esm/comboList/comboListHook.js +0 -10
- package/esm/combobox/combobox.d.ts +0 -27
- package/esm/combobox/combobox.js +0 -163
- package/esm/combobox/comboboxNavigation.d.ts +0 -3
- package/esm/combobox/comboboxNavigation.js +0 -21
- package/esm/commonHelpers/translatable.d.ts +0 -11
- package/esm/dropdownOld/dropdownOld.d.ts +0 -17
- package/esm/dropdownOld/dropdownOld.js +0 -50
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -6
- package/esm/icons/deprecated/iconActivity.d.ts +0 -7
- package/esm/icons/deprecated/iconActivity.js +0 -16
- package/esm/icons/deprecated/iconArchive.d.ts +0 -7
- package/esm/icons/deprecated/iconArchive.js +0 -16
- package/esm/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowBottom.js +0 -16
- package/esm/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowDown.js +0 -16
- package/esm/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowTop.js +0 -16
- package/esm/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/esm/icons/deprecated/iconAssetInactive.js +0 -16
- package/esm/icons/deprecated/iconBookmark.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmark.js +0 -16
- package/esm/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmarkFill.js +0 -16
- package/esm/icons/deprecated/iconCalendar.d.ts +0 -7
- package/esm/icons/deprecated/iconCalendar.js +0 -16
- package/esm/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronDownSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronLeftSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronRightSmall.js +0 -16
- package/esm/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/esm/icons/deprecated/iconCircleOk.js +0 -16
- package/esm/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/esm/icons/deprecated/iconCogSettings.js +0 -16
- package/esm/icons/deprecated/iconConditions.d.ts +0 -7
- package/esm/icons/deprecated/iconConditions.js +0 -16
- package/esm/icons/deprecated/iconDelete.d.ts +0 -7
- package/esm/icons/deprecated/iconDelete.js +0 -16
- package/esm/icons/deprecated/iconDownload.d.ts +0 -7
- package/esm/icons/deprecated/iconDownload.js +0 -16
- package/esm/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/esm/icons/deprecated/iconDragAndDrop.js +0 -16
- package/esm/icons/deprecated/iconEdit.d.ts +0 -7
- package/esm/icons/deprecated/iconEdit.js +0 -16
- package/esm/icons/deprecated/iconError.d.ts +0 -7
- package/esm/icons/deprecated/iconError.js +0 -16
- package/esm/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/esm/icons/deprecated/iconErrorNew.js +0 -16
- package/esm/icons/deprecated/iconExclude.d.ts +0 -7
- package/esm/icons/deprecated/iconExclude.js +0 -16
- package/esm/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/esm/icons/deprecated/iconFilterOutline.js +0 -16
- package/esm/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/esm/icons/deprecated/iconFolderNew.js +0 -16
- package/esm/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/esm/icons/deprecated/iconFullscreen.js +0 -16
- package/esm/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/esm/icons/deprecated/iconInfoCircled.js +0 -16
- package/esm/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/esm/icons/deprecated/iconLeftBracketLg.js +0 -16
- package/esm/icons/deprecated/iconLocation.d.ts +0 -7
- package/esm/icons/deprecated/iconLocation.js +0 -16
- package/esm/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/esm/icons/deprecated/iconLocationPin.js +0 -16
- package/esm/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/esm/icons/deprecated/iconLvlUp.js +0 -16
- package/esm/icons/deprecated/iconMap.d.ts +0 -7
- package/esm/icons/deprecated/iconMap.js +0 -16
- package/esm/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/esm/icons/deprecated/iconNarrowArrowRight.js +0 -16
- package/esm/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/esm/icons/deprecated/iconNotificationBell.js +0 -16
- package/esm/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/esm/icons/deprecated/iconOptionsIcon.js +0 -16
- package/esm/icons/deprecated/iconPlus.d.ts +0 -7
- package/esm/icons/deprecated/iconPlus.js +0 -16
- package/esm/icons/deprecated/iconReportError.d.ts +0 -7
- package/esm/icons/deprecated/iconReportError.js +0 -16
- package/esm/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconRightArrow.js +0 -16
- package/esm/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconSelectArrow.js +0 -16
- package/esm/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/esm/icons/deprecated/iconSettings6SliderThree.js +0 -16
- package/esm/icons/deprecated/iconShrink.d.ts +0 -7
- package/esm/icons/deprecated/iconShrink.js +0 -16
- package/esm/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/esm/icons/deprecated/iconSortAsc.js +0 -16
- package/esm/icons/deprecated/iconSortDec.d.ts +0 -7
- package/esm/icons/deprecated/iconSortDec.js +0 -16
- package/esm/icons/deprecated/iconSpinner.d.ts +0 -7
- package/esm/icons/deprecated/iconSpinner.js +0 -16
- package/esm/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/esm/icons/deprecated/iconStatusNoComm.js +0 -16
- package/esm/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/esm/icons/deprecated/iconSuccessNew.js +0 -16
- package/esm/icons/deprecated/iconTick.d.ts +0 -7
- package/esm/icons/deprecated/iconTick.js +0 -16
- package/esm/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/esm/icons/deprecated/iconVerticalEllipsis.js +0 -16
- package/esm/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/esm/icons/deprecated/iconWarningNew.js +0 -16
- package/esm/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/esm/icons/deprecated/iconZoneGeofence.js +0 -14
- package/esm/icons/iconAddPeople2.d.ts +0 -8
- package/esm/icons/iconAddPeople2.js +0 -17
- package/esm/icons/iconCalendar2.d.ts +0 -8
- package/esm/icons/iconCalendar2.js +0 -17
- package/esm/icons/iconCornerUpRight2.d.ts +0 -8
- package/esm/icons/iconCornerUpRight2.js +0 -17
- package/esm/icons/iconImac2.d.ts +0 -8
- package/esm/icons/iconImac2.js +0 -17
- package/esm/icons/iconInbox2.d.ts +0 -8
- package/esm/icons/iconInbox2.js +0 -17
- package/esm/icons/iconMenuCircle2.d.ts +0 -8
- package/esm/icons/iconMenuCircle2.js +0 -17
- package/esm/icons/iconShare2.d.ts +0 -8
- package/esm/icons/iconShare2.js +0 -17
- package/esm/icons/iconVolumeOf.d.ts +0 -8
- package/esm/icons/iconVolumeOf.js +0 -17
- package/esm/reportPopup/groupedReportsItem.d.ts +0 -7
- package/esm/reportPopup/groupedReportsItem.js +0 -6
- package/esm/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/errorNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/infoNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/esm/reportPopup/notificationTemplates/successNotification.js +0 -17
- package/esm/reportPopup/reportPopup.d.ts +0 -23
- package/esm/reportPopup/reportPopup.js +0 -52
- package/esm/reportPopup/reportPopupContent.d.ts +0 -12
- package/esm/reportPopup/reportPopupContent.js +0 -26
- package/esm/reportPopup/reports.d.ts +0 -7
- package/esm/reportPopup/reports.js +0 -7
- package/esm/reportPopup/reportsItem.d.ts +0 -12
- package/esm/reportPopup/reportsItem.js +0 -14
- package/esm/reportPopup/reportsItemFormats.d.ts +0 -10
- package/esm/reportPopup/reportsItemFormats.js +0 -10
- package/esm/searchList/searchListHelpers.d.ts +0 -20
- package/esm/searchList/searchListHelpers.js +0 -79
- package/esm/searchableField/searchableField.d.ts +0 -28
- package/esm/searchableField/searchableField.js +0 -27
- package/esm/static/icons/icons.d.ts +0 -67
- package/esm/static/icons/icons.js +0 -73
- package/esm/svgIcon/svgIcon.d.ts +0 -16
- package/esm/svgIcon/svgIcon.js +0 -16
- /package/dist/commonHelpers/{translatable.js → ref.js} +0 -0
- /package/esm/commonHelpers/{translatable.js → ref.js} +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isCustomElementValid = void 0;
|
|
4
|
-
const isCustomElementValid = (el) =>
|
|
4
|
+
const isCustomElementValid = (el) => {
|
|
5
|
+
if (!el || !el.props) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
const props = el.props;
|
|
9
|
+
return !!(props.id && props.state && props.onChange);
|
|
10
|
+
};
|
|
5
11
|
exports.isCustomElementValid = isCustomElementValid;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import "./formField.less";
|
|
3
3
|
export interface IFormField {
|
|
4
4
|
className?: string;
|
|
5
5
|
inputClassName?: string;
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: RefObject<HTMLElement | null>;
|
|
7
7
|
error?: string;
|
|
8
8
|
assistive?: string;
|
|
9
9
|
counter?: string;
|
|
@@ -12,4 +12,7 @@ export interface IFormFieldComponent {
|
|
|
12
12
|
isError?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export type TFormFieldComponentProps<T> = Omit<T, "isError"> & IFormField;
|
|
15
|
-
export declare const FormField: <T extends IFormFieldComponent>(WrappedComponent: React.FC<T>) =>
|
|
15
|
+
export declare const FormField: <T extends IFormFieldComponent>(WrappedComponent: React.FC<T>) => {
|
|
16
|
+
(props: TFormFieldComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -10,24 +10,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
}
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
14
|
exports.FormField = void 0;
|
|
18
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const react_1 = __importDefault(require("react"));
|
|
20
16
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
21
17
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
22
18
|
const formFieldError_1 = require("../formFieldError/formFieldError");
|
|
23
19
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24
20
|
const FormField = function formFieldInner(WrappedComponent) {
|
|
25
|
-
const
|
|
21
|
+
const InnerFormField = (props) => {
|
|
26
22
|
const { className, inputClassName, error, assistive, counter } = props, rest = __rest(props, ["className", "inputClassName", "error", "assistive", "counter"]);
|
|
27
23
|
const driveTextClass = (0, useDriveClassName_1.useDriveClassName)("zen-form-field__text");
|
|
28
24
|
const showAdditionalInfo = error || assistive || counter;
|
|
29
25
|
const componentClassName = (0, classNames_1.classNames)(["zen-form-field__input", inputClassName || ""]);
|
|
30
|
-
return (0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-form-field", className || ""]), children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-form-field__input-container", children: (0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, rest, { className: componentClassName,
|
|
26
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-form-field", className || ""]), children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-form-field__input-container", children: (0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, rest, { className: componentClassName, isError: !!error })) }), showAdditionalInfo ?
|
|
31
27
|
(0, jsx_runtime_1.jsxs)("div", { className: "zen-form-field__secondary", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)([
|
|
32
28
|
"zen-form-field__text",
|
|
33
29
|
driveTextClass || "",
|
|
@@ -36,8 +32,8 @@ const FormField = function formFieldInner(WrappedComponent) {
|
|
|
36
32
|
? (0, jsx_runtime_1.jsx)("div", { className: "zen-form-field__length", children: counter })
|
|
37
33
|
: ""] })
|
|
38
34
|
: null] });
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return
|
|
35
|
+
};
|
|
36
|
+
InnerFormField.displayName = "InnerFormField";
|
|
37
|
+
return InnerFormField;
|
|
42
38
|
};
|
|
43
39
|
exports.FormField = FormField;
|
|
@@ -8,9 +8,10 @@ export interface IStepItem {
|
|
|
8
8
|
export interface IFormStep extends IStepItem {
|
|
9
9
|
isFirst?: boolean;
|
|
10
10
|
value?: string | number;
|
|
11
|
-
onClick?: () => void;
|
|
11
|
+
onClick?: (() => void) | false;
|
|
12
12
|
isError?: boolean;
|
|
13
13
|
isCurrent?: boolean;
|
|
14
14
|
isComplete?: boolean;
|
|
15
|
+
compact?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare const FormStep: FC<IFormStep>;
|
|
@@ -6,12 +6,13 @@ const iconCheck_1 = require("../../icons/iconCheck");
|
|
|
6
6
|
const useMobile_1 = require("../../commonHelpers/hooks/useMobile");
|
|
7
7
|
const formStepRaw_1 = require("./formStepRaw");
|
|
8
8
|
const useLanguage_1 = require("../../utils/localization/useLanguage");
|
|
9
|
-
const FormStep = ({ isFirst, value, isError = false, isCurrent = false, isComplete = false, label, onClick, optional, id }) => {
|
|
9
|
+
const FormStep = ({ isFirst, value, isError = false, isCurrent = false, isComplete = false, label, onClick, optional, id, compact }) => {
|
|
10
10
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
11
|
+
const isCompactMode = compact || isMobile;
|
|
11
12
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
12
13
|
const type = isCurrent ? "current" : isError ? "error" : isComplete ? "complete" : "incomplete";
|
|
13
14
|
const content = isCurrent ? value : isError ? "!" : isComplete ? (0, jsx_runtime_1.jsx)(iconCheck_1.IconCheck, {}) : value;
|
|
14
15
|
const labelSecondary = optional ? translate("Optional") : undefined;
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `zen-form-step ${isFirst ? "zen-form-step--first" : ""} ${
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `zen-form-step ${isFirst ? "zen-form-step--first" : ""} ${isCompactMode ? "zen-form-step--mobile" : ""} zen-form-step--${type}`, children: (0, jsx_runtime_1.jsx)(formStepRaw_1.FormStepRaw, { id: id, type: type, isFirst: isFirst, isCompact: isCompactMode, onClick: onClick, content: content, label: label, labelSecondary: labelSecondary }) }));
|
|
16
17
|
};
|
|
17
18
|
exports.FormStep = FormStep;
|
|
@@ -6,10 +6,12 @@ const isAreaSelected_1 = require("../utils/isAreaSelected");
|
|
|
6
6
|
const getOnClick_1 = require("../utils/getOnClick");
|
|
7
7
|
const getTabIndex_1 = require("../utils/getTabIndex");
|
|
8
8
|
const getAriaLabelMobile_1 = require("../utils/getAriaLabelMobile");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
10
|
+
const FormStepRaw = ({ type, isFirst, isCompact, onClick, content, label, labelSecondary, id }) => {
|
|
11
|
+
const isNonClickable = onClick === false;
|
|
12
|
+
if (isCompact) {
|
|
13
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isFirst && (0, jsx_runtime_1.jsx)("div", { className: `zen-form-step__connector zen-form-step__connector--mobile zen-form-step__connector--${type}` }), (0, jsx_runtime_1.jsx)("button", { tabIndex: (0, getTabIndex_1.getTabIndex)(type, onClick), id: id, "aria-label": (0, getAriaLabelMobile_1.getAriaLabelMobile)(label, labelSecondary), "aria-selected": (0, isAreaSelected_1.isAreaSelected)(type), role: "tab", onClick: (0, getOnClick_1.getOnClick)(type, onClick), className: (0, classNames_1.classNames)(["zen-form-step__item", "zen-form-step__item--mobile"]), children: (0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)(["zen-form-step__marker", `zen-form-step__marker--${type}`, "zen-form-step__marker--mobile", isNonClickable ? "zen-form-step__marker--non-clickable" : ""]) }) })] });
|
|
12
14
|
}
|
|
13
|
-
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isFirst && (0, jsx_runtime_1.jsx)("div", { className: `zen-form-step__connector zen-form-step__connector--${type}` }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-form-step__item", children: [(0, jsx_runtime_1.jsx)("button", { onClick: (0, getOnClick_1.getOnClick)(type, onClick), tabIndex: (0, getTabIndex_1.getTabIndex)(type), id: id, "aria-selected": (0, isAreaSelected_1.isAreaSelected)(type), role: "tab", className: `zen-form-step__marker zen-form-step__marker--${type}`, children: (type === "current" || type === "error") ? ((0, jsx_runtime_1.jsx)("div", { className: "zen-form-step__marker--inner", children: content })) : content }), (0, jsx_runtime_1.jsxs)("label", { htmlFor: id, className: `zen-form-step__label zen-form-step__label--${type}`, children: [(0, jsx_runtime_1.jsx)("span", { className: "zen-form-step__label-primary", children: label }), labelSecondary && (0, jsx_runtime_1.jsx)("span", { className: "zen-form-step__label-secondary", children: labelSecondary })] })] })] });
|
|
15
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isFirst && (0, jsx_runtime_1.jsx)("div", { className: `zen-form-step__connector zen-form-step__connector--${type}` }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-form-step__item", children: [(0, jsx_runtime_1.jsx)("button", { onClick: (0, getOnClick_1.getOnClick)(type, onClick), tabIndex: (0, getTabIndex_1.getTabIndex)(type, onClick), id: id, "aria-selected": (0, isAreaSelected_1.isAreaSelected)(type), role: "tab", className: (0, classNames_1.classNames)([`zen-form-step__marker`, `zen-form-step__marker--${type}`, isNonClickable ? "zen-form-step__marker--non-clickable" : ""]), children: (type === "current" || type === "error") ? ((0, jsx_runtime_1.jsx)("div", { className: "zen-form-step__marker--inner", children: content })) : content }), (0, jsx_runtime_1.jsxs)("label", { htmlFor: id, className: `zen-form-step__label zen-form-step__label--${type}`, children: [(0, jsx_runtime_1.jsx)("span", { className: "zen-form-step__label-primary", children: label }), labelSecondary && (0, jsx_runtime_1.jsx)("span", { className: "zen-form-step__label-secondary", children: labelSecondary })] })] })] });
|
|
14
16
|
};
|
|
15
17
|
exports.FormStepRaw = FormStepRaw;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { IStepItem } from "./components/formStep";
|
|
3
3
|
import "./formStepper.less";
|
|
4
|
+
export declare const STEPPER_LAST_STEP = "lastStep";
|
|
5
|
+
export type TFormStepperMode = "default" | "compact";
|
|
4
6
|
export interface IFormStepper {
|
|
5
7
|
steps: IStepItem[];
|
|
6
8
|
current: string;
|
|
7
9
|
setCurrent: React.Dispatch<React.SetStateAction<string>>;
|
|
8
10
|
errors?: string[];
|
|
9
|
-
onStepClicked?: (id: string) => void;
|
|
11
|
+
onStepClicked?: ((id: string) => void) | false;
|
|
10
12
|
className?: string;
|
|
13
|
+
mode?: TFormStepperMode;
|
|
11
14
|
}
|
|
12
15
|
export declare const FormStepper: FC<IFormStepper>;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormStepper = void 0;
|
|
3
|
+
exports.FormStepper = exports.STEPPER_LAST_STEP = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const formStep_1 = require("./components/formStep");
|
|
7
7
|
const useMobile_1 = require("../commonHelpers/hooks/useMobile");
|
|
8
8
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
9
9
|
const MAX_STEPS = 7;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
exports.STEPPER_LAST_STEP = "lastStep";
|
|
11
|
+
const FormStepper = ({ steps, onStepClicked, className = "", current, errors, setCurrent, mode = "default" }) => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const activeStepIndex = (0, react_1.useMemo)(() => {
|
|
14
|
+
if (current === exports.STEPPER_LAST_STEP) {
|
|
15
|
+
return steps.length;
|
|
16
|
+
}
|
|
17
|
+
return steps.findIndex(step => step.id === current) || 0;
|
|
18
|
+
}, [steps, current]);
|
|
12
19
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
13
20
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
21
|
+
const isStepperNonClickable = onStepClicked === false;
|
|
14
22
|
const adjustedSteps = (0, react_1.useMemo)(() => {
|
|
15
23
|
if (steps.length > MAX_STEPS) {
|
|
16
24
|
return steps.slice(0, MAX_STEPS);
|
|
@@ -19,9 +27,14 @@ const FormStepper = ({ steps, onStepClicked, className = "", current, errors, se
|
|
|
19
27
|
}, [steps]);
|
|
20
28
|
const onStepClickedHandler = (0, react_1.useCallback)((id) => {
|
|
21
29
|
setCurrent(id);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
if (!isStepperNonClickable) {
|
|
31
|
+
onStepClicked === null || onStepClicked === void 0 ? void 0 : onStepClicked(id);
|
|
32
|
+
}
|
|
33
|
+
}, [setCurrent, isStepperNonClickable, onStepClicked]);
|
|
34
|
+
const isCompactMode = mode === "compact" || isMobile;
|
|
35
|
+
const isOptionalStep = isCompactMode && ((_a = adjustedSteps[activeStepIndex]) === null || _a === void 0 ? void 0 : _a.optional);
|
|
36
|
+
const stepNumber = current === exports.STEPPER_LAST_STEP ? adjustedSteps.length : activeStepIndex + 1;
|
|
37
|
+
const stepLabel = current === exports.STEPPER_LAST_STEP ? (_b = adjustedSteps[activeStepIndex - 1]) === null || _b === void 0 ? void 0 : _b.label : (_c = adjustedSteps[activeStepIndex]) === null || _c === void 0 ? void 0 : _c.label;
|
|
38
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: `zen-form-stepper ${className}`, role: "tablist", children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-form-stepper__steps", children: adjustedSteps.map((step, indx) => ((0, jsx_runtime_1.jsx)(formStep_1.FormStep, { id: step.id, label: step.label, isFirst: step.id === steps[0].id, value: indx + 1, onClick: isStepperNonClickable ? false : () => onStepClickedHandler(step.id), isError: errors === null || errors === void 0 ? void 0 : errors.includes(step.id), isCurrent: current === step.id, isComplete: indx < activeStepIndex, optional: step.optional, compact: isCompactMode }, step.id))) }), isCompactMode && (0, jsx_runtime_1.jsxs)("label", { className: "zen-form-stepper__mobile-labels", children: [(0, jsx_runtime_1.jsx)("span", { className: "zen-form-stepper__mobile-counter", children: translate("Step {0} of {1}").replace("{0}", String(stepNumber)).replace("{1}", String(adjustedSteps.length)) }), (0, jsx_runtime_1.jsx)("span", { title: stepLabel, className: "zen-form-stepper__mobile-label", children: stepLabel }), (0, jsx_runtime_1.jsx)("span", { title: translate("Optional"), className: `zen-form-stepper__mobile-secondary-label ${isOptionalStep ? "zen-form-stepper__mobile-secondary-label--visible" : ""}`, children: translate("Optional") })] })] });
|
|
26
39
|
};
|
|
27
40
|
exports.FormStepper = FormStepper;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TStepType } from "../components/formStepRaw";
|
|
2
|
-
export declare const getOnClick: (type: TStepType, onClick?: () => void) => (() => void) | undefined;
|
|
2
|
+
export declare const getOnClick: (type: TStepType, onClick?: (() => void) | false) => (() => void) | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOnClick = void 0;
|
|
4
4
|
const getOnClick = (type, onClick) => {
|
|
5
|
-
if (type === "error" || type === "complete") {
|
|
5
|
+
if ((type === "error" || type === "complete") && onClick !== false) {
|
|
6
6
|
return onClick;
|
|
7
7
|
}
|
|
8
8
|
return undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TStepType } from "../components/formStepRaw";
|
|
2
|
-
export declare const getTabIndex: (type: TStepType) => 0 | -1;
|
|
2
|
+
export declare const getTabIndex: (type: TStepType, onClick?: (() => void) | false) => 0 | -1;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTabIndex = void 0;
|
|
4
|
-
const getTabIndex = (type) => {
|
|
4
|
+
const getTabIndex = (type, onClick) => {
|
|
5
|
+
if (onClick === false) {
|
|
6
|
+
return -1;
|
|
7
|
+
}
|
|
5
8
|
switch (type) {
|
|
6
9
|
case "complete":
|
|
7
10
|
case "current":
|
|
@@ -7,11 +7,12 @@ const button_1 = require("../button/button");
|
|
|
7
7
|
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
8
8
|
const textIconButton_1 = require("../textIconButton/textIconButton");
|
|
9
9
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
10
|
+
const formStepper_1 = require("../formStepper/formStepper");
|
|
10
11
|
const FormStepperButtons = ({ onPrevious, onCancel, onContinue, onSubmit, current, setCurrent, steps, isNextDisabled, className = "" }) => {
|
|
11
12
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
12
13
|
const onPreviousHandler = (0, react_1.useCallback)(() => {
|
|
13
14
|
setCurrent((prev) => {
|
|
14
|
-
const currentIndex = steps.findIndex((step) => step.id === prev);
|
|
15
|
+
const currentIndex = prev === formStepper_1.STEPPER_LAST_STEP ? steps.length : steps.findIndex((step) => step.id === prev);
|
|
15
16
|
if (currentIndex === -1) {
|
|
16
17
|
return prev;
|
|
17
18
|
}
|
|
@@ -30,7 +31,7 @@ const FormStepperButtons = ({ onPrevious, onCancel, onContinue, onSubmit, curren
|
|
|
30
31
|
onContinue === null || onContinue === void 0 ? void 0 : onContinue();
|
|
31
32
|
}, [onContinue, setCurrent, steps]);
|
|
32
33
|
const isFirstStep = steps[0].id === current;
|
|
33
|
-
const isLastStep = steps[steps.length - 1].id === current;
|
|
34
|
+
const isLastStep = steps[steps.length - 1].id === current || current === formStepper_1.STEPPER_LAST_STEP;
|
|
34
35
|
return ((0, jsx_runtime_1.jsxs)("div", { className: `zen-form-step-buttons ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-form-step-buttons__left", children: !isFirstStep && (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { className: "zen-form-step-buttons__previous", icon: iconChevronLeft_1.IconChevronLeft, type: "tertiary-black", onClick: onPreviousHandler, children: translate("Previous step") }) }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-form-step-buttons__right", children: [(0, jsx_runtime_1.jsx)(button_1.Button, { className: "zen-form-step-buttons__cancel", type: "secondary", onClick: onCancel, children: translate("Cancel") }), isLastStep ? ((0, jsx_runtime_1.jsx)(button_1.Button, { disabled: isNextDisabled, className: "zen-form-step-buttons__submit", type: "primary", onClick: onSubmit, children: translate("Submit") })) : ((0, jsx_runtime_1.jsx)(button_1.Button, { disabled: isNextDisabled, className: "zen-form-step-buttons__continue", type: "primary", onClick: onContinueHandler, children: translate("Continue") }))] })] }));
|
|
35
36
|
};
|
|
36
37
|
exports.FormStepperButtons = FormStepperButtons;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReactElement, RefObject } from "react";
|
|
2
|
-
export declare const useStretch: (stretch: boolean, childrenArr: ReactElement[], ref: RefObject<HTMLDivElement>, setChildrenArrState: any) => void;
|
|
2
|
+
export declare const useStretch: (stretch: boolean, childrenArr: ReactElement[], ref: RefObject<HTMLDivElement | null>, setChildrenArrState: any) => void;
|
|
@@ -43,12 +43,13 @@ const useStretch = (stretch, childrenArr, ref, setChildrenArrState) => {
|
|
|
43
43
|
if (indx === maxIndexInRow) {
|
|
44
44
|
return child;
|
|
45
45
|
}
|
|
46
|
+
const childProps = child.props;
|
|
46
47
|
const clone = (0, react_1.cloneElement)(child, {
|
|
47
48
|
className: (0, classNames_1.classNames)([
|
|
48
|
-
|
|
49
|
+
childProps.className || "",
|
|
49
50
|
"zen-col-stretch"
|
|
50
51
|
]),
|
|
51
|
-
key:
|
|
52
|
+
key: childProps.id || child.key || indx
|
|
52
53
|
});
|
|
53
54
|
return clone;
|
|
54
55
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { IZenGridItem } from "../../commonHelpers/zenComponent";
|
|
3
|
-
export declare const isGridItem: (element: ReactElement
|
|
3
|
+
export declare const isGridItem: (element: ReactElement) => element is ReactElement<IZenGridItem, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IGroupItem, IGroupsFilterTotalState } from "./groupsFilterInterfaces";
|
|
3
3
|
import "./groupsFilter.less";
|
|
4
4
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
5
5
|
import { IChipsParent } from "../chip/chip";
|
|
6
6
|
interface IGroupsFilterOptions {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param placeholder - will be removed in the next major release
|
|
10
|
-
*/
|
|
11
|
-
placeholder?: string;
|
|
12
7
|
}
|
|
13
8
|
export declare const groupsFilterTotalStateDefault: {
|
|
14
9
|
groups: import("./groupsFilterInterfaces").ILeafStateItem<import("..").IEntityWithId>;
|
|
@@ -20,19 +15,9 @@ export interface IGroupsFilter extends IZenComponentProps, IChipsParent {
|
|
|
20
15
|
errorHandler: (e: Error) => void;
|
|
21
16
|
onChange: (state: IGroupsFilterTotalState) => void;
|
|
22
17
|
isWithColor?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated
|
|
25
|
-
* @param translate - will be removed in the next major release
|
|
26
|
-
*/
|
|
27
|
-
translate?: (s: string) => string;
|
|
28
18
|
fullSize?: boolean;
|
|
29
19
|
options?: IGroupsFilterOptions;
|
|
30
20
|
listLimit?: number;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated
|
|
33
|
-
* @param advancedDialog - will be removed in the next major release
|
|
34
|
-
*/
|
|
35
|
-
advancedDialog?: IAdvancedEntitiesNavigatorDialog;
|
|
36
21
|
}
|
|
37
22
|
export declare const GroupsFilter: React.FC<IGroupsFilter>;
|
|
38
23
|
export declare const TRANSLATIONS: string[];
|
|
@@ -31,10 +31,10 @@ const searchInput_1 = require("../searchInput/searchInput");
|
|
|
31
31
|
const chipStatusProvider_1 = require("../chip/chipStatusProvider");
|
|
32
32
|
exports.groupsFilterTotalStateDefault = { groups: (0, groupsHelper_1.getDefaultFilterState)(), sideWide: false };
|
|
33
33
|
// eslint-disable-next-line complexity
|
|
34
|
-
const GroupsFilter = ({ fullSize, className, dataLoader, errorHandler, isWithColor, onChange, initialFilterState,
|
|
34
|
+
const GroupsFilter = ({ fullSize, className, dataLoader, errorHandler, isWithColor, onChange, initialFilterState, listLimit = 500, chip, chipIcon, chipId, chipName }) => {
|
|
35
35
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
36
36
|
const chipStatus = (0, chipStatusProvider_1.useChipStatus)();
|
|
37
|
-
const [groupPlaceHolder, setGroupPlaceHolder] = (0, react_1.useState)(
|
|
37
|
+
const [groupPlaceHolder, setGroupPlaceHolder] = (0, react_1.useState)(translate("Groups"));
|
|
38
38
|
const [state, dispatchState] = (0, react_1.useReducer)(stateReducer_1.stateReducer, (0, stateReducer_1.getInitialState)(translate, initialFilterState));
|
|
39
39
|
const [uiState, dispatchUiState] = (0, react_1.useReducer)(uiStateReducer_1.uiStateReducer, uiStateReducer_1.uiInitialGroupsFilterState);
|
|
40
40
|
const [dataItems, setDataItems] = (0, react_1.useState)([]);
|
|
@@ -196,13 +196,13 @@ const GroupsFilter = ({ fullSize, className, dataLoader, errorHandler, isWithCol
|
|
|
196
196
|
const selectedValues = dataItems.filter((item) => { var _a; return (_a = state.frozenState.simpleFilterState) === null || _a === void 0 ? void 0 : _a.find((id) => id === item.id); }).map((item) => item.name);
|
|
197
197
|
const selectedValuesLabel = selectedValues.join(` ${translate(state.frozenState.relation)} `);
|
|
198
198
|
if (!label && !selectedValuesLabel) {
|
|
199
|
-
setGroupPlaceHolder(
|
|
199
|
+
setGroupPlaceHolder(translate("Groups"));
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
const separator = `${label && selectedValuesLabel ? ` ${translate(state.frozenState.relation)} ` : ""}`;
|
|
203
203
|
setGroupPlaceHolder(`${label}${separator}${selectedValuesLabel}`);
|
|
204
204
|
}, [uiState.searchValue, uiState.step, blocksMap, state, isWithColor, listLimit, uiState.currentAdjustmentId,
|
|
205
|
-
uiState.uncheckedAdjustmentIds, uiState.uncheckedAdvancedState, dataItems,
|
|
205
|
+
uiState.uncheckedAdjustmentIds, uiState.uncheckedAdvancedState, dataItems, translate]);
|
|
206
206
|
const getGroupsBox = () => (0, jsx_runtime_1.jsx)(groupsFilterBox_1.GroupsFilterBox, { step: uiState.step, currentId: uiState.currentAdjustmentId, isWithColor: isWithColor || false, state: state, search: uiState.searchValue, blocks: uiState.searchValue && uiState.step === groupsFilterInterfaces_1.FilterMenuStep.Initial ? [] : blocksMap[uiState.step], onChange: uiState.step === groupsFilterInterfaces_1.FilterMenuStep.CurrentlySelected ? handleCheckboxItemAdjustmentClick : handleCheckboxChange, onClick: handleCheckboxItemClick, uncheckedItems: uiState.step === groupsFilterInterfaces_1.FilterMenuStep.CurrentlySelected ? uiState.uncheckedAdjustmentIds : [], uncheckedAdvancedState: uiState.step === groupsFilterInterfaces_1.FilterMenuStep.CurrentlySelected ? uiState.uncheckedAdvancedState : undefined, listLimit: listLimit });
|
|
207
207
|
const onSideWideChange = (newState) => { dispatchState({ type: stateActionType_1.StateActionType.SideWide, payload: newState }); };
|
|
208
208
|
const onRelationChange = (newRelation) => { dispatchState({ type: stateActionType_1.StateActionType.Relation, payload: newRelation }); };
|
|
@@ -223,10 +223,10 @@ const GroupsFilter = ({ fullSize, className, dataLoader, errorHandler, isWithCol
|
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
225
|
const selectedValues = dataItems.filter(item => { var _a; return (_a = state.frozenState.simpleFilterState) === null || _a === void 0 ? void 0 : _a.find(id => id === item.id); }).map(item => item.name);
|
|
226
|
-
setGroupPlaceHolder(selectedValues.length > 0 ? selectedValues.join(", ") :
|
|
226
|
+
setGroupPlaceHolder(selectedValues.length > 0 ? selectedValues.join(", ") : translate("Groups"));
|
|
227
227
|
onChange(Object.assign({}, newState));
|
|
228
228
|
dispatchState({ type: stateActionType_1.StateActionType.TurnOfGlobalChanges, payload: undefined });
|
|
229
|
-
}, [state.globalChanges, dataItems, translate, state.frozenState, state.frozenSideWideState,
|
|
229
|
+
}, [state.globalChanges, dataItems, translate, state.frozenState, state.frozenSideWideState, onChange, initialFilterState === null || initialFilterState === void 0 ? void 0 : initialFilterState.sideWide, initialFilterState]);
|
|
230
230
|
(0, react_1.useEffect)(() => {
|
|
231
231
|
var _a;
|
|
232
232
|
if (((_a = prevInitialState.current) === null || _a === void 0 ? void 0 : _a.sideWide) === (initialFilterState === null || initialFilterState === void 0 ? void 0 : initialFilterState.sideWide)
|
|
@@ -7,11 +7,6 @@ export interface IGroupsFilterAdjustmentState extends IZenComponentProps {
|
|
|
7
7
|
onSelectAllClick: (isAllSelected: boolean) => void;
|
|
8
8
|
backButtonName?: string;
|
|
9
9
|
isAllSelected: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated
|
|
12
|
-
* @param translate - will be removed in the next major release
|
|
13
|
-
*/
|
|
14
|
-
translate?: (s: string) => string;
|
|
15
10
|
}
|
|
16
11
|
export declare const GroupsFilterAdjustmentState: React.FC<IGroupsFilterAdjustmentState>;
|
|
17
12
|
export declare const TRANSLATIONS: string[];
|
|
@@ -24,11 +24,6 @@ export interface IGroupsFilterBox {
|
|
|
24
24
|
search: string | undefined;
|
|
25
25
|
onChange: (value: IChangeCheckbox) => void;
|
|
26
26
|
onClick: (id: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated
|
|
29
|
-
* @param translate - will be removed in the next major release
|
|
30
|
-
*/
|
|
31
|
-
translate?: (s: string) => string;
|
|
32
27
|
state: IGroupsFilterState;
|
|
33
28
|
currentId: string | undefined;
|
|
34
29
|
isWithColor: boolean;
|
|
@@ -4,11 +4,6 @@ import "./groupsFilterMenu.less";
|
|
|
4
4
|
interface ICurrentlySelectedLabel {
|
|
5
5
|
count: number;
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param translate - will be removed in the next major release
|
|
10
|
-
*/
|
|
11
|
-
translate?: (s: string) => string;
|
|
12
7
|
}
|
|
13
8
|
export declare const GroupsFilterCurrentlySelectedLabel: React.FC<ICurrentlySelectedLabel>;
|
|
14
9
|
export declare const TRANSLATIONS: string[];
|
|
@@ -9,11 +9,6 @@ export interface IGroupsFilterCurrentlySelectedState extends IZenComponentProps
|
|
|
9
9
|
onRelationChange: (newRelation: RelationOperator) => void;
|
|
10
10
|
relation: RelationOperator;
|
|
11
11
|
count: number;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @param translate - will be removed in the next major release
|
|
15
|
-
*/
|
|
16
|
-
translate?: (s: string) => string;
|
|
17
12
|
}
|
|
18
13
|
export declare const GroupsFilterCurrentlySelectedState: React.FC<IGroupsFilterCurrentlySelectedState>;
|
|
19
14
|
export declare const TRANSLATIONS: string[];
|
|
@@ -14,9 +14,7 @@ const GroupsFilterCurrentlySelectedState = ({ children, siteWideState, relation,
|
|
|
14
14
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
15
15
|
const togglerId = (0, react_1.useId)();
|
|
16
16
|
const getActionButton = (label, title, icon, handleClick) => (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: handleClick, className: "zen-groups-filter-menu__item zen-groups-filter-menu__item--interactive zen-groups-filter-menu__action-button zen-groups-filter-menu__action-button-back", title: title, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, react_1.createElement)(icon, { className: "zen-groups-filter__icon zen-groups-filter-menu__action-icon", size: "large" }), (0, jsx_runtime_1.jsx)("div", { className: "zen-groups-filter-menu__action-label zen-groups-filter-menu__action-label--limited zen-ellipsis body-02-short", children: label })] }) });
|
|
17
|
-
const handleTogglerChange = (
|
|
18
|
-
onSiteWideChange(newState.target.checked);
|
|
19
|
-
};
|
|
17
|
+
const handleTogglerChange = (checked) => onSiteWideChange(checked);
|
|
20
18
|
const handleRelationChange = (newState) => {
|
|
21
19
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
|
22
20
|
onRelationChange(newState === groupsFilterInterfaces_1.RelationOperator.AND ? groupsFilterInterfaces_1.RelationOperator.AND : groupsFilterInterfaces_1.RelationOperator.OR);
|
|
@@ -8,11 +8,6 @@ export interface IGroupsFilterInitialState extends IZenComponentProps {
|
|
|
8
8
|
onDialogButtonClick: () => void;
|
|
9
9
|
onCurrentlySelectedClick: () => void;
|
|
10
10
|
onSiteWideChange: (newState: boolean) => void;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* @param translate - will be removed in the next major release
|
|
14
|
-
*/
|
|
15
|
-
translate?: (s: string) => string;
|
|
16
11
|
}
|
|
17
12
|
export declare const GroupsFilterInitialState: React.FC<IGroupsFilterInitialState>;
|
|
18
13
|
export declare const TRANSLATIONS: string[];
|
|
@@ -12,9 +12,7 @@ const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
|
12
12
|
const GroupsFilterInitialState = ({ children, siteWideState, searchResult, count, onCurrentlySelectedClick, onSiteWideChange, onDialogButtonClick }) => {
|
|
13
13
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
14
14
|
const togglerId = (0, react_1.useId)();
|
|
15
|
-
const handleTogglerChange = (newState) =>
|
|
16
|
-
onSiteWideChange(newState.target.checked);
|
|
17
|
-
};
|
|
15
|
+
const handleTogglerChange = (newState) => onSiteWideChange(newState);
|
|
18
16
|
const currentlySelectedAriaLabel = translate("View currently selected filters").concat(". ").concat(count ? translate("Number of selected groups - {count}").replace("{count}", count.toString()) : translate("All groups selected"));
|
|
19
17
|
return (0, jsx_runtime_1.jsxs)("div", { className: "zen-groups-filter-menu__content-initial", children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-groups-filter-menu__item-wrapper", children: [(0, jsx_runtime_1.jsx)(toggleButton_1.ToggleButton, { onChange: handleTogglerChange, id: togglerId, checked: siteWideState, isReverted: true, className: "zen-groups-filter-menu__item zen-groups-filter-menu__advanced-neighbor", title: translate("Apply site-wide"), children: (0, jsx_runtime_1.jsxs)("div", { className: "zen-groups-filter-menu__toggle-label zen-ellipsis", children: [(0, jsx_runtime_1.jsx)(iconGlobe_1.IconGlobe, { className: "zen-groups-filter__icon zen-groups-filter-menu__action-icon", size: "large" }), (0, jsx_runtime_1.jsx)("span", { className: "zen-groups-filter__label-element", children: translate("Apply site-wide") })] }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onDialogButtonClick, className: "zen-groups-filter-menu__item zen-groups-filter-menu__item--interactive zen-groups-filter-menu__item--end zen-groups-filter-menu__advanced-button", title: translate("Advanced groups filter"), "aria-label": translate("Advanced groups filter"), children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(iconOrgFilter_1.IconOrgFilter, { className: "zen-groups-filter__icon zen-groups-filter-menu__action-icon", size: "large" }), (0, jsx_runtime_1.jsx)("span", { className: "body-02-short zen-ellipsis", children: translate("Advanced") })] }) })] }), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onCurrentlySelectedClick, className: "zen-groups-filter-menu__item zen-groups-filter-menu__item--interactive zen-groups-filter-menu__item--stretched zen-groups-filter-menu__currently-selected-button", title: translate("View currently selected filters"), "aria-label": currentlySelectedAriaLabel, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(groupsFilterCommon_1.GroupsFilterCurrentlySelectedLabel, { count: count }), (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, { size: "large" })] }) }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-groups-filter-menu__item zen-groups-filter-menu__item--stretched", children: [(0, jsx_runtime_1.jsx)("span", { className: "zen-groups-filter-menu__select-filters body-02-short", children: translate("Select Filters:") }), (0, jsx_runtime_1.jsx)("span", { className: "zen-groups-filter-menu__additional-info--faded zen-groups-filter-menu__filter-count", children: searchResult ? `${searchResult} ${translate("Results")}` : "" })] }), (0, jsx_runtime_1.jsx)("div", { className: "zen-groups-filter-menu__separator" }), (0, jsx_runtime_1.jsx)("div", { className: "zen-groups-filter-menu__groups-box", children: children })] });
|
|
20
18
|
};
|
|
@@ -5,11 +5,6 @@ export interface IGroupsFilterMenu extends IZenComponentProps {
|
|
|
5
5
|
onCancelClick: () => void;
|
|
6
6
|
onApplyClick: () => void;
|
|
7
7
|
onResetClick: () => void;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated
|
|
10
|
-
* @param translate - will be removed in the next major release
|
|
11
|
-
*/
|
|
12
|
-
translate?: (s: string) => string;
|
|
13
8
|
isApplyDisabled: boolean;
|
|
14
9
|
}
|
|
15
10
|
export declare const GroupsFilterMenu: React.FC<IGroupsFilterMenu>;
|
|
@@ -5,19 +5,18 @@ interface IGroupsFilterTrigger {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
handleClick: () => void;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated
|
|
10
|
-
* @param translate - will be removed in the next major release
|
|
11
|
-
*/
|
|
12
|
-
translate?: (s: string) => string;
|
|
13
8
|
placeholder?: string;
|
|
14
9
|
id?: string;
|
|
15
10
|
isOpenPopup: boolean;
|
|
16
11
|
count: number;
|
|
17
12
|
withGlobeIcon: boolean;
|
|
18
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
13
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
19
14
|
fullSize?: boolean;
|
|
15
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
20
16
|
}
|
|
21
|
-
export declare const GroupsFilterTrigger:
|
|
17
|
+
export declare const GroupsFilterTrigger: {
|
|
18
|
+
({ value, className, onChange, placeholder, isOpenPopup, count, withGlobeIcon, inputRef, handleClick, fullSize, ref, ...otherProps }: IGroupsFilterTrigger): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
22
21
|
export declare const TRANSLATIONS: string[];
|
|
23
22
|
export {};
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
3
|
var t = {};
|
|
27
4
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -36,14 +13,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
36
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
14
|
exports.TRANSLATIONS = exports.GroupsFilterTrigger = void 0;
|
|
38
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
const react_1 =
|
|
16
|
+
const react_1 = require("react");
|
|
40
17
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
41
18
|
const groupsFilterLabelBox_1 = require("./groupsFilterLabelBox");
|
|
42
19
|
const textInputRaw_1 = require("../textInputRaw/textInputRaw");
|
|
43
20
|
const iconChevronDownSmall_1 = require("../icons/iconChevronDownSmall");
|
|
44
21
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
45
|
-
|
|
46
|
-
var { value, className = "", onChange, placeholder, isOpenPopup, count, withGlobeIcon, inputRef, handleClick,
|
|
22
|
+
const GroupsFilterTrigger = (_a) => {
|
|
23
|
+
var { value, className = "", onChange, placeholder, isOpenPopup, count, withGlobeIcon, inputRef, handleClick, fullSize, ref } = _a, otherProps = __rest(_a, ["value", "className", "onChange", "placeholder", "isOpenPopup", "count", "withGlobeIcon", "inputRef", "handleClick", "fullSize", "ref"]);
|
|
47
24
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
48
25
|
const groupsFilterId = (0, react_1.useId)();
|
|
49
26
|
const handleKeydown = (e) => {
|
|
@@ -62,7 +39,8 @@ exports.GroupsFilterTrigger = react_1.default.forwardRef((_a, ref) => {
|
|
|
62
39
|
handleClick();
|
|
63
40
|
};
|
|
64
41
|
return (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classNames_1.classNames)(["zen-groups-filter"]), ref: ref }, otherProps, { onClick: clickHandler, role: "combobox", children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-groups-filter__search-container", fullSize ? "zen-groups-filter__search-container--full-size" : "", className]), children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-groups-filter__input-container", onKeyDown: handleKeydown, children: (0, jsx_runtime_1.jsx)(textInputRaw_1.TextInputRaw, { value: value, placeholder: placeholder || translate("Filter by group"), className: (0, classNames_1.classNames)(["zen-groups-filter__input", count > 0 ? "zen-groups-filter__input--selected" : ""]), onChange: onChange, disabled: false, type: "text", ref: inputRef, id: groupsFilterId }) }), (0, jsx_runtime_1.jsx)("div", { className: "zen-groups-filter__search-input zen-groups-filter__search-input--post", children: (0, jsx_runtime_1.jsx)(groupsFilterLabelBox_1.GroupsFilterLabelBox, { count: count, withGlobeIcon: withGlobeIcon }) })] }), (0, jsx_runtime_1.jsx)("button", { tabIndex: -1, "aria-hidden": "true", type: "button", className: "zen-groups-filter__popup-trigger", title: translate("Open filter"), children: (0, jsx_runtime_1.jsx)(iconChevronDownSmall_1.IconChevronDownSmall, { className: isOpenPopup ? "zen-groups-filter__arrow-icon--up" : "zen-groups-filter__arrow-icon--down", size: "large" }) })] }));
|
|
65
|
-
}
|
|
42
|
+
};
|
|
43
|
+
exports.GroupsFilterTrigger = GroupsFilterTrigger;
|
|
66
44
|
exports.GroupsFilterTrigger.displayName = "GroupsFilterTrigger";
|
|
67
45
|
exports.TRANSLATIONS = [
|
|
68
46
|
"Filter by group",
|
|
@@ -6,7 +6,7 @@ export interface IBasicToolbar extends IZenComponentProps {
|
|
|
6
6
|
middleElements: ReactNode | undefined;
|
|
7
7
|
rightElements: ReactNode | undefined;
|
|
8
8
|
isMobile?: boolean;
|
|
9
|
-
leftElementsRef?: React.
|
|
10
|
-
rightElementsRef?: React.
|
|
9
|
+
leftElementsRef?: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
rightElementsRef?: React.RefObject<HTMLDivElement | null>;
|
|
11
11
|
}
|
|
12
12
|
export declare const BasicToolbar: React.FC<IBasicToolbar>;
|
|
@@ -3,7 +3,7 @@ import "./collapsedItemsControl.less";
|
|
|
3
3
|
import { IZenComponentProps } from "../../../commonHelpers/zenComponent";
|
|
4
4
|
import { IMenuItem } from "../../../menu/components/menuItem";
|
|
5
5
|
export interface ICustomContent {
|
|
6
|
-
[key: string]: React.ReactElement | undefined;
|
|
6
|
+
[key: string]: React.ReactElement<PropsWithChildren> | undefined;
|
|
7
7
|
}
|
|
8
8
|
export interface IHeaderCustomMenuComponent extends Pick<IMenuItem, "id" | "name" | "disabled" | "link" | "target" | "rel" | "icon"> {
|
|
9
9
|
}
|
|
@@ -16,11 +16,6 @@ export interface IHeaderCustomContent {
|
|
|
16
16
|
export declare const HeaderCustomContent: import("react").Context<IHeaderCustomContent>;
|
|
17
17
|
export declare const HeaderCustomContentProvider: ({ children, content, setContent }: IHeaderCustomContent & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export interface IPageToolbarCollapsedItemsControl extends IZenComponentProps {
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated
|
|
21
|
-
* @param translate - will be removed in the next major release
|
|
22
|
-
*/
|
|
23
|
-
translate?: (s: string) => string;
|
|
24
19
|
}
|
|
25
20
|
export declare const PageToolbarCollapsedItemsControl: FC<IPageToolbarCollapsedItemsControl>;
|
|
26
21
|
export declare const TRANSLATIONS: string[];
|