@geotab/zenith 2.0.0 → 3.0.0-beta.1
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 +13 -13
- 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
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
13
|
+
import { useCallback, useEffect, useId, useMemo, useState } from "react";
|
|
14
14
|
import { SelectList } from "../selectList/selectList";
|
|
15
15
|
import { CheckboxState } from "../checkbox/checkboxState";
|
|
16
16
|
import { Popup } from "../popup/popup";
|
|
@@ -44,7 +44,7 @@ export const ParallelSelection = ({ selected, items, triggerRef, title, onSelect
|
|
|
44
44
|
return _jsx(Popup, { alignment: alignment, className: classNames(["zen-parallel-selection zen-parallel-selection-popup", isMobileView ? "zen-parallel-selection-popup--mobile" : ""]), triggerRef: triggerRef, triggerBy: "click", outerIsOpen: outerIsOpen, recalculateOnScroll: true, children: selectList });
|
|
45
45
|
};
|
|
46
46
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
47
|
-
export const ParallelSelectionTrigger =
|
|
48
|
-
var { className, title } = _a, otherProps = __rest(_a, ["className", "title"]);
|
|
47
|
+
export const ParallelSelectionTrigger = (_a) => {
|
|
48
|
+
var { className, title, ref } = _a, otherProps = __rest(_a, ["className", "title", "ref"]);
|
|
49
49
|
return _jsx(TextIconButton, Object.assign({ className: className || "", type: "tertiary-black", icon: IconChevronDownSmall, ref: ref, title: title, iconPosition: ButtonIconPosition.Start }, otherProps));
|
|
50
|
-
}
|
|
50
|
+
};
|
|
@@ -4,11 +4,6 @@ import "./pillBoxItem.less";
|
|
|
4
4
|
interface IPillItem {
|
|
5
5
|
item: IPillData;
|
|
6
6
|
onRemove: (value: string) => void;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param translate - will be removed in the next major release
|
|
10
|
-
*/
|
|
11
|
-
translate?: (key: string) => string;
|
|
12
7
|
className: string;
|
|
13
8
|
}
|
|
14
9
|
export declare const PillBoxItem: React.FC<IPillItem>;
|
package/esm/pillBox/pillBox.d.ts
CHANGED
|
@@ -10,11 +10,6 @@ export interface IPillBox {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
selectedPills: IPillData[];
|
|
12
12
|
isAllSelected?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
* @param translate - will be removed in the next major release
|
|
16
|
-
*/
|
|
17
|
-
translate?: (key: string) => string;
|
|
18
13
|
onRemove?: (value: string) => void;
|
|
19
14
|
maxPills?: number;
|
|
20
15
|
hideSelectedLabel?: boolean;
|
|
@@ -108,10 +108,12 @@ const PillExpandableBase = ({ children, errorHandler, getData, text, description
|
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (isFunction(getData)) {
|
|
111
|
-
getData().then(result => {
|
|
111
|
+
void getData().then(result => {
|
|
112
112
|
setContent(result);
|
|
113
113
|
}).catch(e => {
|
|
114
|
-
|
|
114
|
+
if (errorHandler) {
|
|
115
|
+
void errorHandler(e);
|
|
116
|
+
}
|
|
115
117
|
});
|
|
116
118
|
}
|
|
117
119
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, RefObject } from "react";
|
|
2
2
|
import { IPillExpandable } from "./pillExpandable";
|
|
3
3
|
import { IIcon } from "../icons/icon";
|
|
4
4
|
interface IPillExpandableSimple extends IPillExpandable {
|
|
@@ -8,6 +8,10 @@ interface IPillExpandableSimple extends IPillExpandable {
|
|
|
8
8
|
onExpand?: () => void;
|
|
9
9
|
icon?: FC<IIcon> | false;
|
|
10
10
|
isBeta?: boolean;
|
|
11
|
+
ref?: RefObject<HTMLButtonElement | null>;
|
|
11
12
|
}
|
|
12
|
-
export declare const PillExpandableSimple:
|
|
13
|
+
export declare const PillExpandableSimple: {
|
|
14
|
+
({ onExpand, expandAriaText, text, expanded, includeExpandIcon, type, icon, isBeta, ref }: IPillExpandableSimple): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
13
17
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createElement,
|
|
2
|
+
import { createElement, useCallback } from "react";
|
|
3
3
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
4
4
|
import { IconChevronTop } from "../icons/iconChevronTop";
|
|
5
5
|
import { IconChevronBottom } from "../icons/iconChevronBottom";
|
|
6
6
|
import { IconException } from "../icons/iconException";
|
|
7
7
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
8
|
-
export const PillExpandableSimple =
|
|
8
|
+
export const PillExpandableSimple = ({ onExpand, expandAriaText, text, expanded, includeExpandIcon = true, type = "warning", icon = IconException, isBeta, ref }) => {
|
|
9
9
|
const iconDriveClassName = useDriveClassName("icon");
|
|
10
10
|
const containerDriveClassName = useDriveClassName("zen-status-pill__container");
|
|
11
11
|
const onExpandHandler = useCallback(() => {
|
|
@@ -26,5 +26,5 @@ export const PillExpandableSimple = forwardRef(({ onExpand, expandAriaText, text
|
|
|
26
26
|
}) }), hasText && _jsx("div", { className: `zen-status-pill__text zen-status-pill__text--${type} zen-ellipsis`, children: text }), includeExpandIcon && _jsx("div", { className: `zen-status-pill__expand-button zen-status-pill__expand-button--${type}`, "aria-label": expandAriaText, children: _jsx("div", { className: "zen-status-pill__icon", children: createElement(ChevronIcon, {
|
|
27
27
|
size: iconDriveClassName ? "huge" : "large"
|
|
28
28
|
}) }) })] });
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
PillExpandableSimple.displayName = "PillExpandableSimple";
|
package/esm/popup/popup.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import { TAlignment } from "../absolute/absolute";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
export interface IPopup extends IZenComponentProps {
|
|
5
5
|
trigger?: React.ReactElement;
|
|
6
|
-
triggerRef?:
|
|
6
|
+
triggerRef?: RefObject<HTMLElement | null>;
|
|
7
7
|
triggerBy?: "click" | "hover";
|
|
8
8
|
id?: string;
|
|
9
9
|
alignment?: TAlignment;
|
package/esm/popup/popup.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument */
|
|
2
3
|
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
3
4
|
import { ControlledPopup } from "../controlledPopup/controlledPopup";
|
|
4
5
|
export const Popup = ({ id, trigger, triggerRef, triggerBy = "click", alignment, children, inline, className, outerIsOpen, shouldHoldScroll = false, ariaLabel, ariaLabelledBy, recalculateOnScroll, onOpenChange = () => { } }) => {
|
|
6
|
+
var _a;
|
|
5
7
|
const [isOpen, setIsOpen] = useState(false);
|
|
6
8
|
const triggerElRef = useRef(null);
|
|
7
9
|
const memoizedOnChange = useCallback(onOpenChange, [onOpenChange]);
|
|
@@ -66,5 +68,5 @@ export const Popup = ({ id, trigger, triggerRef, triggerBy = "click", alignment,
|
|
|
66
68
|
throw new Error("Popup: either trigger or triggerRef property should be passed");
|
|
67
69
|
}
|
|
68
70
|
const triggerComp = renderTrigger();
|
|
69
|
-
return _jsxs(_Fragment, { children: [triggerComp, _jsx(ControlledPopup, { shouldHoldScroll: shouldHoldScroll, useTrapFocusWithTrigger: "on", isOpen: isOpen, triggerRef: triggerRef || triggerElRef, id: popupId, className: className, alignment: alignment, inline: inline, paddingY: 0, paddingX: 0, onOpenChange: setIsOpen, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledBy || (triggerComp === null || triggerComp === void 0 ? void 0 : triggerComp.props.id), recalculateOnScroll: recalculateOnScroll, children: children })] });
|
|
71
|
+
return _jsxs(_Fragment, { children: [triggerComp, _jsx(ControlledPopup, { shouldHoldScroll: shouldHoldScroll, useTrapFocusWithTrigger: "on", isOpen: isOpen, triggerRef: triggerRef || triggerElRef, id: popupId, className: className, alignment: alignment, inline: inline, paddingY: 0, paddingX: 0, onOpenChange: setIsOpen, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledBy || ((_a = triggerComp === null || triggerComp === void 0 ? void 0 : triggerComp.props) === null || _a === void 0 ? void 0 : _a.id), recalculateOnScroll: recalculateOnScroll, children: children })] });
|
|
70
72
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from "react";
|
|
2
2
|
import { IIcon } from "../icons/icon";
|
|
3
|
-
export declare const renderIcon: (iconComponent: FunctionComponent<IIcon> | ReactNode, className?: string) => string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").FunctionComponentElement<IIcon> | null | undefined;
|
|
3
|
+
export declare const renderIcon: (iconComponent: FunctionComponent<IIcon> | ReactNode, className?: string) => string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").FunctionComponentElement<IIcon> | null | undefined;
|
package/esm/radio/radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import "./radio.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
export interface IRadio extends IZenComponentProps {
|
|
@@ -17,5 +17,6 @@ export interface IRadio extends IZenComponentProps {
|
|
|
17
17
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
18
18
|
tabIndex?: number;
|
|
19
19
|
wrappedInLabel?: boolean;
|
|
20
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
20
21
|
}
|
|
21
|
-
export declare const Radio:
|
|
22
|
+
export declare const Radio: ({ fullWidth, id, reverse, checked, title, className, name, value, children, wrappedInLabel, disabled, ref, ...rest }: IRadio) => import("react/jsx-runtime").JSX.Element;
|
package/esm/radio/radio.js
CHANGED
|
@@ -14,10 +14,10 @@ import React from "react";
|
|
|
14
14
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
15
15
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17
|
-
export const Radio =
|
|
18
|
-
var { fullWidth, id, reverse, checked, title, className = "", name, value, children, wrappedInLabel, disabled } = _a, rest = __rest(_a, ["fullWidth", "id", "reverse", "checked", "title", "className", "name", "value", "children", "wrappedInLabel", "disabled"]);
|
|
17
|
+
export const Radio = (_a) => {
|
|
18
|
+
var { fullWidth, id, reverse, checked, title, className = "", name, value, children, wrappedInLabel, disabled, ref } = _a, rest = __rest(_a, ["fullWidth", "id", "reverse", "checked", "title", "className", "name", "value", "children", "wrappedInLabel", "disabled", "ref"]);
|
|
19
19
|
const generatedId = React.useId();
|
|
20
20
|
const intId = generatedId;
|
|
21
21
|
const driveClassess = useDriveClassName("zen-radio");
|
|
22
22
|
return _jsx("div", { className: classNames(["zen-radio", className, disabled ? "zen-radio--disabled" : ""]), children: _jsxs("div", { className: classNames(["zen-radio__wrapper", driveClassess || "", reverse ? "zen-radio__wrapper--reversed" : ""]), children: [wrappedInLabel ? null : _jsx("input", Object.assign({ type: "radio", className: "zen-radio__input", id: intId, name: name, value: value, checked: checked, disabled: disabled || false, ref: ref }, rest)), _jsxs("label", { className: classNames(["zen-radio__label", fullWidth ? "zen-radio__label--full-width" : "", wrappedInLabel ? "zen-radio__label--input-wrapper" : ""]), htmlFor: intId, title: title, "aria-label": title, children: [wrappedInLabel ? _jsx("input", Object.assign({ type: "radio", className: "zen-radio__input", id: intId, name: name, value: value, checked: checked, disabled: disabled || false, ref: ref }, rest)) : null, children ? _jsx("div", { className: "zen-radio__label-text", children: children }) : null] })] }) });
|
|
23
|
-
}
|
|
23
|
+
};
|
|
@@ -48,5 +48,5 @@ export const RadioGroup = ({ fullWidth, reverse, id, items, className, name, val
|
|
|
48
48
|
(_a = focusElementRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
49
49
|
}, [focusedIndex]);
|
|
50
50
|
const extraProps = selectItemOnFocus ? {} : ({ role: "radiogroup", tabIndex: 0 });
|
|
51
|
-
return _jsx("div", { id: intId, className: classNames([classes, className || ""]), children: _jsx("div", Object.assign({ className: "zen-radio-group__wrapper", onKeyDown: selectItemOnFocus ? undefined : handleKeyDown }, extraProps, { children: items.map((item, ind) => _createElement(Radio, Object.assign({}, item, { className: classNames(["zen-radio-group__item", wrappedInLabel ? "zen-radio-group__item--no-paddings" : "", type === "interactive" ? "zen-radio--interactive" : ""]), key: ind, checked: item.value === value, disabled: disabled ? disabled : item.disabled, name: name, reverse: reverse, fullWidth: fullWidth, value: item.value, onChange: onChange, wrappedInLabel: wrappedInLabel, tabIndex: selectItemOnFocus || disabled || item.disabled ? undefined : (ind === focusedIndex ? 0 : -1), ref: selectItemOnFocus ? undefined : (ind === focusedIndex ? focusElementRef :
|
|
51
|
+
return _jsx("div", { id: intId, className: classNames([classes, className || ""]), children: _jsx("div", Object.assign({ className: "zen-radio-group__wrapper", onKeyDown: selectItemOnFocus ? undefined : handleKeyDown }, extraProps, { children: items.map((item, ind) => _createElement(Radio, Object.assign({}, item, { className: classNames(["zen-radio-group__item", wrappedInLabel ? "zen-radio-group__item--no-paddings" : "", type === "interactive" ? "zen-radio--interactive" : ""]), key: ind, checked: item.value === value, disabled: disabled ? disabled : item.disabled, name: name, reverse: reverse, fullWidth: fullWidth, value: item.value, onChange: onChange, wrappedInLabel: wrappedInLabel, tabIndex: selectItemOnFocus || disabled || item.disabled ? undefined : (ind === focusedIndex ? 0 : -1), ref: selectItemOnFocus ? undefined : (ind === focusedIndex ? focusElementRef : undefined) }), item.children)) })) });
|
|
52
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import "./rangeField.less";
|
|
3
3
|
import { TDirection } from "../filtersBar/filtersBarSidePanel/hooks/useDirection";
|
|
4
4
|
export interface IRangeField {
|
|
@@ -12,7 +12,7 @@ export interface IRangeField {
|
|
|
12
12
|
min?: number;
|
|
13
13
|
max?: number;
|
|
14
14
|
id: string;
|
|
15
|
-
inputRef:
|
|
15
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
16
16
|
errorString?: string;
|
|
17
17
|
direction?: TDirection;
|
|
18
18
|
isMinField: boolean;
|
|
@@ -16,7 +16,7 @@ import { reforwardRef, cloneData, setOptions, setLabels, setDatasets } from "./u
|
|
|
16
16
|
const ChartComponent = function (props, ref) {
|
|
17
17
|
const _a = props, { height = 150, width = 300, redraw = false, datasetIdKey, type, data, options, plugins = [], fallbackContent, updateMode } = _a, canvasProps = __rest(_a, ["height", "width", "redraw", "datasetIdKey", "type", "data", "options", "plugins", "fallbackContent", "updateMode"]);
|
|
18
18
|
const canvasRef = useRef(null);
|
|
19
|
-
const chartRef = useRef();
|
|
19
|
+
const chartRef = useRef(null);
|
|
20
20
|
const renderChart = useCallback(() => {
|
|
21
21
|
if (!canvasRef.current) {
|
|
22
22
|
return;
|
|
@@ -52,7 +52,7 @@ export interface IChartProps<TType extends ChartType = ChartType, TData = Defaul
|
|
|
52
52
|
export type ChartJSOrUndefined<TType extends ChartType = ChartType, TData = DefaultDataPoint<TType>, TLabel = unknown> = Chart<TType, TData, TLabel> | undefined;
|
|
53
53
|
export type BaseChartComponent = <TType extends ChartType = ChartType, TData = DefaultDataPoint<TType>, TLabel = unknown>(props: IChartProps<TType, TData, TLabel> & {
|
|
54
54
|
ref?: ForwardedRef<ChartJSOrUndefined<TType, TData, TLabel>>;
|
|
55
|
-
}) => JSX.Element;
|
|
55
|
+
}) => React.JSX.Element;
|
|
56
56
|
export type TypedChartComponent<TDefaultType extends ChartType> = <TData = DefaultDataPoint<TDefaultType>, TLabel = unknown>(props: Omit<IChartProps<TDefaultType, TData, TLabel>, "type"> & {
|
|
57
57
|
ref?: ForwardedRef<ChartJSOrUndefined<TDefaultType, TData, TLabel>>;
|
|
58
|
-
}) => JSX.Element;
|
|
58
|
+
}) => React.JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { TFormFieldComponentProps } from "../formField/formField";
|
|
3
2
|
import { ISearchInputRaw } from "../searchInputRaw/searchInputRaw";
|
|
4
3
|
type TFormInput = TFormFieldComponentProps<ISearchInputRaw>;
|
|
5
4
|
export interface ISearchInput extends Omit<TFormInput, "counter"> {
|
|
6
5
|
}
|
|
7
|
-
export declare const SearchInput:
|
|
6
|
+
export declare const SearchInput: {
|
|
7
|
+
({ maxLength, ...props }: TFormInput): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
8
10
|
export {};
|
|
@@ -10,15 +10,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import React from "react";
|
|
14
13
|
import { FormField } from "../formField/formField";
|
|
15
14
|
import { SearchInputRaw } from "../searchInputRaw/searchInputRaw";
|
|
16
15
|
const FormInput = FormField(SearchInputRaw);
|
|
17
|
-
export const SearchInput =
|
|
16
|
+
export const SearchInput = (_a) => {
|
|
18
17
|
var { maxLength } = _a, props = __rest(_a, ["maxLength"]);
|
|
19
18
|
const normalizedMaxLength = maxLength && Math.max(maxLength, 1);
|
|
20
|
-
return _jsx(FormInput, Object.assign({}, props, {
|
|
19
|
+
return _jsx(FormInput, Object.assign({}, props, { maxLength: maxLength, counter: normalizedMaxLength
|
|
21
20
|
? `${Math.min((props.value).length, normalizedMaxLength)}/${normalizedMaxLength}`
|
|
22
21
|
: undefined }));
|
|
23
|
-
}
|
|
22
|
+
};
|
|
24
23
|
SearchInput.displayName = "SearchInput";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { RefObject } from "react";
|
|
2
3
|
import "./searchInputRaw.less";
|
|
3
4
|
export interface ISearchInputRaw {
|
|
4
5
|
value: string;
|
|
@@ -15,12 +16,11 @@ export interface ISearchInputRaw {
|
|
|
15
16
|
maxLength?: number;
|
|
16
17
|
withDefaultCloseIcon?: boolean;
|
|
17
18
|
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* @param withNewSearchIcon - will be removed in the next major release
|
|
21
|
-
*/
|
|
22
|
-
withNewSearchIcon?: boolean;
|
|
23
19
|
autoFocus?: boolean;
|
|
20
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
24
21
|
}
|
|
25
|
-
export declare const SearchInputRaw:
|
|
22
|
+
export declare const SearchInputRaw: {
|
|
23
|
+
({ value, className, disabled, onChange, onKeyDown, onFocus, onBlur, placeholder, ariaLabel, closeButtonTitle, isError, maxLength, withDefaultCloseIcon, autoFocus, id, ref }: ISearchInputRaw): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
26
|
export declare const TRANSLATIONS: string[];
|
|
@@ -8,7 +8,7 @@ import { IconClose } from "../icons/iconClose";
|
|
|
8
8
|
import { useLanguage } from "../utils/localization/useLanguage";
|
|
9
9
|
import { useDrive } from "../utils/theme/useDrive";
|
|
10
10
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
11
|
-
export const SearchInputRaw =
|
|
11
|
+
export const SearchInputRaw = ({ value, className = "", disabled, onChange, onKeyDown, onFocus, onBlur, placeholder, ariaLabel, closeButtonTitle, isError, maxLength, withDefaultCloseIcon = false, autoFocus, id, ref }) => {
|
|
12
12
|
const { translate } = useLanguage();
|
|
13
13
|
const placeholderValue = placeholder || translate("Search");
|
|
14
14
|
const closeButtonTitleValue = closeButtonTitle || translate("Clear");
|
|
@@ -43,7 +43,7 @@ export const SearchInputRaw = React.forwardRef(({ value, className = "", disable
|
|
|
43
43
|
}
|
|
44
44
|
}, [ref, innerRef]);
|
|
45
45
|
return (_jsx("div", { onClick: onClickHandler, role: "search", "aria-label": ariaLabelValue, className: classNames(["zen-search-input", className]), children: _jsx(InputAdornments, { id: id, value: value, maxLength: maxLength, isError: isError, startAdornment: searchIcon, className: classNames(["zen-search-input__input", disabledClassName, isError ? "zen-search-input__input--error" : ""]), disabled: disabled, onChange: handleChange, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, placeholder: placeholderValue, inputType: withDefaultCloseIcon ? "search" : "text", endAdornment: closeButton, ref: ref || innerRef, autoFocus: autoFocus }) }));
|
|
46
|
-
}
|
|
46
|
+
};
|
|
47
47
|
SearchInputRaw.displayName = "SearchInputRaw";
|
|
48
48
|
export const TRANSLATIONS = [
|
|
49
49
|
"Search",
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import React, { RefObject } from "react";
|
|
2
|
-
import "./searchList.less";
|
|
3
|
-
import { TIconId } from "../static/icons/icons";
|
|
4
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
5
1
|
export interface ITreeList {
|
|
6
2
|
id: string;
|
|
7
3
|
name: string;
|
|
8
4
|
parent?: ITreeList;
|
|
9
|
-
icon?: TIconId;
|
|
10
5
|
children?: ITreeList[];
|
|
11
6
|
}
|
|
12
|
-
export interface ISearchSingleList extends IZenComponentProps {
|
|
13
|
-
listData: ITreeList[];
|
|
14
|
-
selected: Set<string>;
|
|
15
|
-
onChange: (selected: string, unselect?: string[]) => void;
|
|
16
|
-
listId: string;
|
|
17
|
-
parentRef: RefObject<HTMLDivElement>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* @param translate - will be removed in the next major release
|
|
21
|
-
*/
|
|
22
|
-
translate?: (s: string) => string;
|
|
23
|
-
}
|
|
24
|
-
export declare const EmptyList: React.FC<Pick<ISearchSingleList, "translate" | "className">>;
|
|
25
|
-
export declare const WaitingList: React.FC<IZenComponentProps>;
|
|
26
|
-
export declare const TRANSLATIONS: string[];
|
|
27
|
-
declare const _default: React.NamedExoticComponent<ISearchSingleList>;
|
|
28
|
-
export default _default;
|
|
@@ -1,154 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
3
|
-
import { Waiting } from "../waiting/waiting";
|
|
4
|
-
import { ComboList } from "../comboList/comboList";
|
|
5
|
-
import { addAdditionalNavigation, addParentLinks, getChildren, getParents, searchTree, TRANSLATIONS as HelperText, getItemsWithChildren, allInSuffix } from "./searchListHelpers";
|
|
6
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
7
|
-
import { useLanguage } from "../utils/localization/useLanguage";
|
|
8
|
-
export const EmptyList = ({ className }) => {
|
|
9
|
-
const { translate } = useLanguage();
|
|
10
|
-
return _jsx("div", { className: classNames(["zen-search-list zen-search-list__container zen-search-list__container--empty", className || ""]), children: translate("No data") });
|
|
11
|
-
};
|
|
12
|
-
export const WaitingList = ({ className }) => _jsx("div", { className: classNames(["zen-search-list zen-search-list__container zen-search-list__container--empty", className || ""]), children: _jsx(Waiting, { isLoading: true, delay: Number.MAX_SAFE_INTEGER, hideOverlay: true }) });
|
|
13
|
-
const SearchSingleList = ({ onChange, listData, className, listId, parentRef, selected }) => {
|
|
14
|
-
const { translate } = useLanguage();
|
|
15
|
-
const [searchStack, setSearchStack] = useState([]);
|
|
16
|
-
const [checkedItems, setNewCheckedItems] = useState(selected);
|
|
17
|
-
const [hover, setHover] = useState("");
|
|
18
|
-
const root = useMemo(() => ({
|
|
19
|
-
id: "root",
|
|
20
|
-
name: "root",
|
|
21
|
-
children: listData
|
|
22
|
-
}), [listData]);
|
|
23
|
-
const getItemsWithChildrenToTree = useCallback(() => getItemsWithChildren(listData, [...selected]), [listData, selected]);
|
|
24
|
-
const addParentLinksToTree = useCallback(() => {
|
|
25
|
-
addParentLinks(listData, root);
|
|
26
|
-
}, [listData, root]);
|
|
27
|
-
const addAdditionalNavigationButton = useCallback(() => {
|
|
28
|
-
listData.length && addAdditionalNavigation(listData, translate);
|
|
29
|
-
}, [listData, translate]);
|
|
30
|
-
useLayoutEffect(() => {
|
|
31
|
-
addParentLinksToTree();
|
|
32
|
-
addAdditionalNavigationButton();
|
|
33
|
-
const ids = getItemsWithChildrenToTree();
|
|
34
|
-
ids.length && setNewCheckedItems(prevValue => {
|
|
35
|
-
const newSelection = new Set(prevValue);
|
|
36
|
-
ids.forEach(id => newSelection.add(`${allInSuffix}${id}`));
|
|
37
|
-
return newSelection;
|
|
38
|
-
});
|
|
39
|
-
}, [getItemsWithChildrenToTree, addAdditionalNavigationButton, addParentLinksToTree]);
|
|
40
|
-
const [showingList, setShowingList] = useState(root.children);
|
|
41
|
-
const onItemChange = useCallback((nodeId, state) => {
|
|
42
|
-
var _a, _b;
|
|
43
|
-
const node = searchTree(root, nodeId);
|
|
44
|
-
if (nodeId.indexOf("allIn") !== -1) {
|
|
45
|
-
const parentNode = searchTree(root, nodeId.split("allIn")[1]);
|
|
46
|
-
const idsToUncheck = getChildren((parentNode === null || parentNode === void 0 ? void 0 : parentNode.children) || []);
|
|
47
|
-
setNewCheckedItems(prevValue => {
|
|
48
|
-
const result = new Set(prevValue);
|
|
49
|
-
const action = state ? "add" : "delete";
|
|
50
|
-
idsToUncheck.forEach(idToUncheck => {
|
|
51
|
-
result.delete(idToUncheck);
|
|
52
|
-
});
|
|
53
|
-
result[action](nodeId);
|
|
54
|
-
result[action](nodeId.split("allIn")[1]);
|
|
55
|
-
return result;
|
|
56
|
-
});
|
|
57
|
-
setHover(nodeId);
|
|
58
|
-
onChange(nodeId.split("allIn")[1], idsToUncheck);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (nodeId.indexOf("levelUp") !== -1) {
|
|
62
|
-
setShowingList([...(((_b = (_a = searchStack[searchStack.length - 1]) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.children) || [])]);
|
|
63
|
-
const newHistory = [...searchStack];
|
|
64
|
-
newHistory.pop();
|
|
65
|
-
setHover((newHistory[0] && newHistory[0].children) ? newHistory[0].children[0].id : root.children[0].id);
|
|
66
|
-
setSearchStack(newHistory);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (node && node.children) {
|
|
70
|
-
setHover(node.children[0].id);
|
|
71
|
-
setSearchStack([...searchStack, node]);
|
|
72
|
-
setShowingList([...node.children]);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
setNewCheckedItems(prevValue => {
|
|
76
|
-
const result = new Set(prevValue);
|
|
77
|
-
if (node) {
|
|
78
|
-
getParents(node).forEach(id => {
|
|
79
|
-
result.delete(nodeId);
|
|
80
|
-
result.delete(`allIn${id}`);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
state ? result.add(nodeId) : result.delete(nodeId);
|
|
84
|
-
return result;
|
|
85
|
-
});
|
|
86
|
-
setHover(nodeId);
|
|
87
|
-
onChange(nodeId, node ? getParents(node) : undefined);
|
|
88
|
-
}, [onChange, root, searchStack]);
|
|
89
|
-
useEffect(() => {
|
|
90
|
-
const reference = parentRef.current;
|
|
91
|
-
const updateHover = (order) => {
|
|
92
|
-
var _a;
|
|
93
|
-
let updatedIndex = 0;
|
|
94
|
-
let currentIndex = 0;
|
|
95
|
-
showingList.forEach((el, index) => {
|
|
96
|
-
if (el.id !== hover) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (order === "next") {
|
|
100
|
-
updatedIndex = showingList[index + 1] ? index + 1 : 0;
|
|
101
|
-
currentIndex = showingList[index + 1] ? index : showingList.length - 1;
|
|
102
|
-
}
|
|
103
|
-
if (order === "previous") {
|
|
104
|
-
updatedIndex = showingList[index - 1] ? index - 1 : showingList.length - 1;
|
|
105
|
-
currentIndex = showingList[index - 1] ? index : 0;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
setHover((_a = showingList[updatedIndex]) === null || _a === void 0 ? void 0 : _a.id);
|
|
109
|
-
setShowingList([...showingList].map((el, index) => {
|
|
110
|
-
if (index === currentIndex) {
|
|
111
|
-
return Object.assign(Object.assign({}, el), { hover: false });
|
|
112
|
-
}
|
|
113
|
-
if (index === updatedIndex) {
|
|
114
|
-
return Object.assign(Object.assign({}, el), { hover: true });
|
|
115
|
-
}
|
|
116
|
-
return el;
|
|
117
|
-
}));
|
|
118
|
-
};
|
|
119
|
-
const eventHandler = (e) => {
|
|
120
|
-
var _a, _b;
|
|
121
|
-
if (e.key === "ArrowDown") {
|
|
122
|
-
if (!hover) {
|
|
123
|
-
setHover((_a = showingList[0]) === null || _a === void 0 ? void 0 : _a.id);
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
updateHover("next");
|
|
127
|
-
}
|
|
128
|
-
if (e.key === "ArrowUp") {
|
|
129
|
-
if (!hover) {
|
|
130
|
-
setHover((_b = showingList[0]) === null || _b === void 0 ? void 0 : _b.id);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
updateHover("previous");
|
|
134
|
-
}
|
|
135
|
-
if (e.key === "Enter") {
|
|
136
|
-
onItemChange(hover, !checkedItems.has(hover));
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
if (reference) {
|
|
140
|
-
reference.addEventListener("keydown", eventHandler);
|
|
141
|
-
}
|
|
142
|
-
return () => {
|
|
143
|
-
reference === null || reference === void 0 ? void 0 : reference.removeEventListener("keydown", eventHandler);
|
|
144
|
-
};
|
|
145
|
-
}, [parentRef, hover, showingList, onItemChange, root, checkedItems]);
|
|
146
|
-
const path = searchStack.map(el => el.name).join("/") || translate("List");
|
|
147
|
-
return _jsx("div", { className: classNames(["zen-search-list zen-search-list__container", className || ""]), children: _jsx(ComboList, { listId: listId, hoverId: hover, lastItemId: searchStack[searchStack.length - 1] ? searchStack[searchStack.length - 1].name : "", checkedItems: checkedItems, items: showingList, onChange: onItemChange, path: path }) });
|
|
148
|
-
};
|
|
149
|
-
export const TRANSLATIONS = [
|
|
150
|
-
...HelperText,
|
|
151
|
-
"List",
|
|
152
|
-
"No data"
|
|
153
|
-
];
|
|
154
|
-
export default memo(SearchSingleList);
|
|
1
|
+
export {};
|
package/esm/select/select.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ISelectRaw, ISelectStatePropsRaw, ISelectStateRaw } from "../selectRaw/selectRaw";
|
|
3
2
|
export interface ISelect extends ISelectRaw {
|
|
4
3
|
}
|
|
@@ -6,6 +5,7 @@ export interface ISelectState extends ISelectStateRaw {
|
|
|
6
5
|
}
|
|
7
6
|
export interface ISelectStateProps extends ISelectStatePropsRaw {
|
|
8
7
|
}
|
|
9
|
-
export declare const Select:
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export declare const Select: {
|
|
9
|
+
(props: import("../formField/formField").TFormFieldComponentProps<ISelectRaw>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export declare const SelectField: {
|
|
2
|
+
(props: import("..").TFormFieldComponentProps<import("../selectRaw/selectRaw").ISelectRaw>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
@@ -20,17 +20,17 @@ import { selectListReducer } from "./selectList.reducer";
|
|
|
20
20
|
import { SelectListItem } from "./selectListItem";
|
|
21
21
|
import { isChildOf } from "../utils/isChildOf";
|
|
22
22
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
23
|
-
import {
|
|
23
|
+
import { memo, useCallback, useEffect, useMemo, useReducer, useRef } from "react";
|
|
24
24
|
import { getScrollableParent } from "../utils/getScrollableParent";
|
|
25
25
|
export const defaultListItemHeight = 40;
|
|
26
26
|
const MemoizedSelectListItem = memo(SelectListItem);
|
|
27
|
-
const SelectListInnerComp =
|
|
27
|
+
const SelectListInnerComp = ({ id, items, value, disabled, activeIndex = -1, title, multiselect = false, showCheckbox = false, standalone, className = "", onClickItem, onChangeItem, onKeyDown, onFocus, onBlur, style = {}, ref: listRef }) => {
|
|
28
28
|
var _a;
|
|
29
29
|
const driveComponentClass = useDriveClassName("zen-select-list");
|
|
30
30
|
const state = getInitialState({ items, value, multiselect });
|
|
31
31
|
state.activeIndex = activeIndex;
|
|
32
32
|
return _jsx("ul", { id: id, ref: listRef, className: classNames(["zen-select-list", driveComponentClass || "", className]), role: "listbox", "aria-multiselectable": multiselect, "aria-activedescendant": standalone ? (getItemIdByIndex(state.itemsState, state.activeIndex) || ((_a = items.find(el => !el.disabled)) === null || _a === void 0 ? void 0 : _a.id)) : undefined, "aria-label": title, "aria-disabled": disabled, tabIndex: standalone && !disabled ? 0 : -1, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, style: style, children: items.map((item, index) => _createElement(MemoizedSelectListItem, Object.assign({}, item, { className: classNames(["zen-select-list__item", item.className || ""]), key: item.id, showCheckbox: showCheckbox, state: state.itemsState.get(item.id), focused: state.activeIndex === index, onChange: onChangeItem, onClick: onClickItem }), item.children)) });
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
SelectListInnerComp.displayName = "SelectListInnerComp";
|
|
35
35
|
const SelectListInner = memo(SelectListInnerComp);
|
|
36
36
|
export const SelectList = (_a) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
interface IUsePopupWidth {
|
|
3
3
|
minWidth: React.CSSProperties["minWidth"];
|
|
4
4
|
maxWidth: React.CSSProperties["maxWidth"];
|
|
5
5
|
width: React.CSSProperties["width"];
|
|
6
6
|
}
|
|
7
|
-
export declare const usePopupWidth: (ref:
|
|
7
|
+
export declare const usePopupWidth: (ref: RefObject<HTMLDivElement | null>) => IUsePopupWidth;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefCallback, RefObject } from "react";
|
|
2
2
|
import { IListState } from "../selectList/selectList";
|
|
3
3
|
import { ISelectListItem } from "../selectList/selectListItem";
|
|
4
4
|
import "./selectRaw.less";
|
|
@@ -13,13 +13,9 @@ export interface ISelectRaw extends IZenComponentProps {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
classNamePopup?: string;
|
|
15
15
|
forceSelection?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated
|
|
18
|
-
* @param maxPopupHeight - will be removed in the next major release
|
|
19
|
-
*/
|
|
20
|
-
maxPopupHeight?: number;
|
|
21
16
|
isError?: boolean;
|
|
22
17
|
onChange?: (id: string | undefined) => void;
|
|
18
|
+
ref?: RefObject<HTMLDivElement | null> | RefCallback<HTMLDivElement | null>;
|
|
23
19
|
}
|
|
24
20
|
export interface ISelectStateRaw extends IListState {
|
|
25
21
|
expanded: boolean;
|
|
@@ -28,4 +24,7 @@ export interface ISelectStatePropsRaw {
|
|
|
28
24
|
items: ISelectListItem[];
|
|
29
25
|
value?: string;
|
|
30
26
|
}
|
|
31
|
-
export declare const SelectRaw:
|
|
27
|
+
export declare const SelectRaw: {
|
|
28
|
+
(props: ISelectRaw): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useCallback, useId, useState } from "react";
|
|
2
|
+
import React, { useCallback, useId, useReducer, useState } from "react";
|
|
3
3
|
import { CheckboxState } from "../checkbox/checkboxState";
|
|
4
4
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
5
5
|
import { getKeysPressed, isKeyForSearch } from "../commonHelpers/keyboard";
|
|
@@ -39,11 +39,11 @@ const openListActionGetters = {
|
|
|
39
39
|
"default": (items, e) => ({ type: ListAction.SearchItem, payload: { items, key: e.key } })
|
|
40
40
|
};
|
|
41
41
|
const PassiveSelectListComp = React.memo(PassiveSelectList);
|
|
42
|
-
export const SelectRaw =
|
|
42
|
+
export const SelectRaw = (props) => {
|
|
43
43
|
var _a;
|
|
44
|
-
const { id, title, pageSize = 10, placeholder, disabled, className, classNamePopup, items: outerItems, value: outerValue, isError, onChange, forceSelection = false } = props;
|
|
44
|
+
const { id, title, pageSize = 10, placeholder, disabled, className, classNamePopup, items: outerItems, value: outerValue, isError, onChange, forceSelection = false, ref: selectRef } = props;
|
|
45
45
|
const items = React.useMemo(() => outerItems, [outerItems]);
|
|
46
|
-
const [state, dispatchState] =
|
|
46
|
+
const [state, dispatchState] = useReducer(selectReducer, { items, value: outerValue }, getSelectInitialState);
|
|
47
47
|
const value = getSelectValue(state.itemsState, items);
|
|
48
48
|
const innerTriggerRef = React.useRef(null);
|
|
49
49
|
const ref = React.useRef(null);
|
|
@@ -127,5 +127,5 @@ export const SelectRaw = React.forwardRef((props, selectRef) => {
|
|
|
127
127
|
isError ? "zen-text-input--error" : "",
|
|
128
128
|
"zen-caption zen-caption--full-width"
|
|
129
129
|
]), role: "combobox", tabIndex: disabled ? -1 : 0, "aria-activedescendant": (isOpen && state.activeIndex > -1) ? items[state.activeIndex].id : undefined, onClick: onPopupVisibilityChange, onKeyDown: onTriggerKeyDown, onBlur: onBlur, ref: innerTriggerRef, children: [_jsx("div", { className: classNames(["zen-select__text", "zen-ellipsis", "zen-caption__content", !value ? "zen-select__text--placeholder" : ""]), children: text }), _jsx(IconChevronDownSmall, { className: "zen-select__arrow zen-caption__post-content", size: "large" })] }), _jsx(Absolute, { recalculateOnScroll: true, className: classNames(["zen-select__popup", classNamePopup || ""]), triggerRef: innerTriggerRef, id: popupId, isOpen: isOpen, onOpenChange: onPopupVisibilityChange, children: _jsx(PassiveSelectListComp, { id: listId, title: title, disabled: disabled, multiselect: false, items: items.map(item => (Object.assign(Object.assign({}, item), { state: value === item.id ? CheckboxState.On : CheckboxState.Off }))), value: new Map(items.map(item => ([item.id, value === item.id ? CheckboxState.On : CheckboxState.Off]))), activeIndex: state.activeIndex, size: pageSize, onChangeItem: onChangeItem, style: { width, minWidth, maxWidth } }) })] });
|
|
130
|
-
}
|
|
130
|
+
};
|
|
131
131
|
SelectRaw.displayName = "SelectRaw";
|