@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,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TRANSLATIONS = exports.SearchableField = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
6
|
-
const iconCrossThin_1 = require("../icons/deprecated/iconCrossThin");
|
|
7
|
-
const iconArrowDown_1 = require("../icons/deprecated/iconArrowDown");
|
|
8
|
-
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
9
|
-
const SearchableField = ({ openSearch, inputId, title, placeholder, value, width, disabled, ariaControls, onOpenSearch, ariaAutocomplete, ariaOwns, inputRef, onFocus, onBlur, onChange, triggerRef, fullWidth }) => {
|
|
10
|
-
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
11
|
-
const clearSearch = () => {
|
|
12
|
-
var _a;
|
|
13
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14
|
-
onChange("");
|
|
15
|
-
};
|
|
16
|
-
const handleChange = (e) => {
|
|
17
|
-
onChange(e.target.value);
|
|
18
|
-
};
|
|
19
|
-
const searchInputClass = (0, classNames_1.classNames)([
|
|
20
|
-
"zen-searchable-field__input",
|
|
21
|
-
value ? "zen-searchable-field__input--short" : "",
|
|
22
|
-
fullWidth ? "zen-searchable-field__input--full-width" : ""
|
|
23
|
-
]);
|
|
24
|
-
const inputStyle = width ? { width: `${width}px` } : undefined;
|
|
25
|
-
const openButtonClasses = `zen-searchable-field__field zen-searchable-field__button zen-searchable-field__button--small`;
|
|
26
|
-
return (0, jsx_runtime_1.jsxs)("div", { "data-popup-id": ariaControls, id: ariaOwns, className: (0, classNames_1.classNames)(["zen-searchable-field", fullWidth ? "zen-searchable-field--full-width" : ""]), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-searchable-field__field", "zen-searchable-field__search", fullWidth ? "zen-searchable-field__field--full-width" : ""]), children: [(0, jsx_runtime_1.jsx)("input", { style: inputStyle, id: inputId, onFocus: onFocus, onBlur: onBlur, type: "text", "aria-expanded": openSearch, "aria-controls": ariaControls, "aria-autocomplete": ariaAutocomplete, "aria-haspopup": "listbox", role: "combobox", className: searchInputClass, disabled: disabled, ref: inputRef, onChange: handleChange, value: value, placeholder: placeholder || translate("Search") }), value && (0, jsx_runtime_1.jsx)("button", { type: "button", tabIndex: -1, "aria-hidden": "true", className: "zen-searchable-field__close-button", title: translate("Clear search"), onClick: clearSearch, disabled: disabled, children: (0, jsx_runtime_1.jsx)(iconCrossThin_1.IconCrossThin, { size: "small" }) })] }), (0, jsx_runtime_1.jsx)("button", { ref: triggerRef, type: "button", tabIndex: -1, className: openButtonClasses, title: title || translate("Open search"), disabled: disabled, onClick: onOpenSearch, children: (0, jsx_runtime_1.jsx)(iconArrowDown_1.IconArrowDown, { className: openSearch ? "zen-searchable-field__arrow-icon--up" : "", size: "micro" }) })] });
|
|
27
|
-
};
|
|
28
|
-
exports.SearchableField = SearchableField;
|
|
29
|
-
exports.TRANSLATIONS = [
|
|
30
|
-
"Search", "Clear search", "Open search"
|
|
31
|
-
];
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export declare const availableIcons: {
|
|
2
|
-
"zen-checkmark": {
|
|
3
|
-
viewBox: string;
|
|
4
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
"zen-info-circled": {
|
|
7
|
-
viewBox: string;
|
|
8
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
"zen-info-circle-tooltip": {
|
|
11
|
-
viewBox: string;
|
|
12
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
"zen-error-new": {
|
|
15
|
-
viewBox: string;
|
|
16
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
"zen-success-new": {
|
|
19
|
-
viewBox: string;
|
|
20
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
};
|
|
22
|
-
"zen-warning-new": {
|
|
23
|
-
viewBox: string;
|
|
24
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
};
|
|
26
|
-
"zen-report-error": {
|
|
27
|
-
viewBox: string;
|
|
28
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
"zen-error": {
|
|
31
|
-
viewBox: string;
|
|
32
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
};
|
|
34
|
-
"zen-minus-icon": {
|
|
35
|
-
viewBox: string;
|
|
36
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
};
|
|
38
|
-
"zen-loupe": {
|
|
39
|
-
viewBox: string;
|
|
40
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
};
|
|
42
|
-
"zen-globe": {
|
|
43
|
-
viewBox: string;
|
|
44
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
};
|
|
46
|
-
"zen-circle-ok": {
|
|
47
|
-
viewBox: string;
|
|
48
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
};
|
|
50
|
-
"zen-lvl-up": {
|
|
51
|
-
viewBox: string;
|
|
52
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
};
|
|
54
|
-
"zen-arrow-top": {
|
|
55
|
-
viewBox: string;
|
|
56
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
};
|
|
58
|
-
"zen-arrow-bottom": {
|
|
59
|
-
viewBox: string;
|
|
60
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
};
|
|
62
|
-
"zen-calendar": {
|
|
63
|
-
viewBox: string;
|
|
64
|
-
svg: import("react/jsx-runtime").JSX.Element;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export type TIconId = keyof typeof availableIcons;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.availableIcons = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
exports.availableIcons = {
|
|
6
|
-
"zen-checkmark": {
|
|
7
|
-
viewBox: "0 0 16 14",
|
|
8
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M15.467.6c.589.442.708 1.278.266 1.867l-8 10.666a1.333 1.333 0 01-1.964.186L.436 8.462A1.333 1.333 0 012.23 6.49l4.249 3.87L13.6.867A1.333 1.333 0 0115.467.6z", clipRule: "evenodd" })
|
|
9
|
-
},
|
|
10
|
-
"zen-info-circled": {
|
|
11
|
-
viewBox: "0 0 32 32",
|
|
12
|
-
// eslint-disable-next-line max-len
|
|
13
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M21.233 25.99v-3.303q0-.297-.185-.483-.186-.185-.446-.185h-2.004V11.405q0-.297-.185-.482-.186-.186-.482-.186h-6.606q-.297 0-.482.186-.186.185-.186.482v3.303q0 .297.186.482.185.186.482.186h1.967v6.643h-1.967q-.297 0-.482.185-.186.186-.186.483v3.302q0 .297.186.483.185.185.482.185h9.277q.26 0 .446-.185.185-.186.185-.483zM18.598 7.434V4.132q0-.297-.185-.483-.186-.185-.482-.185H13.96q-.297 0-.483.185-.185.186-.185.483v3.303q0 .296.185.482.186.185.483.185h3.97q.297 0 .483-.185.185-.186.185-.482zm13.249 8.609q0 4.342-2.116 7.979-2.115 3.636-5.789 5.789-3.674 2.152-7.978 2.152-4.305 0-8.016-2.152-3.711-2.153-5.752-5.79Q.155 20.387.044 16.045q-.112-4.342 2.152-7.979Q4.46 4.43 7.948 2.276 11.436.124 15.964.124q4.527 0 7.978 2.152 3.451 2.153 5.79 5.79 2.337 3.636 2.115 7.978z" })
|
|
14
|
-
},
|
|
15
|
-
"zen-info-circle-tooltip": {
|
|
16
|
-
viewBox: "0 0 16 16",
|
|
17
|
-
svg: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M8 2.667a5.333 5.333 0 100 10.666A5.333 5.333 0 008 2.667ZM1.333 8a6.667 6.667 0 1113.334 0A6.667 6.667 0 011.334 8Zm5.334-.667c0-.368.298-.666.667-.666H8c.368 0 .667.298.667.666v3.334a.667.667 0 11-1.333 0V8a.667.667 0 01-.667-.667Z", clipRule: "evenodd" }), (0, jsx_runtime_1.jsx)("path", { d: "M7.667 5.333a.333.333 0 11.666 0 .333.333 0 01-.667 0Z" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M8 6a.667.667 0 110-1.333A.667.667 0 018 6Zm0-1a.333.333 0 100 .667A.333.333 0 008 5Z", clipRule: "evenodd" })] })
|
|
18
|
-
},
|
|
19
|
-
"zen-error-new": {
|
|
20
|
-
viewBox: "0 0 24 24",
|
|
21
|
-
// eslint-disable-next-line max-len
|
|
22
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M3.994 11.995a8 8 0 1116 0 8 8 0 01-16 0Zm8-10c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm1.389 5.508a1.404 1.404 0 10-2.802-.023l.31 5.353a1.05 1.05 0 002.096.016l.396-5.346ZM10.928 17.59c.29.27.648.404 1.075.404.414 0 .766-.135 1.056-.404.29-.27.434-.603.434-1 0-.398-.145-.73-.434-1a1.494 1.494 0 00-1.056-.404c-.427 0-.786.135-1.075.404a1.31 1.31 0 00-.435 1c0 .397.145.73.435 1Z", clipRule: "evenodd" })
|
|
23
|
-
},
|
|
24
|
-
"zen-success-new": {
|
|
25
|
-
viewBox: "0 0 16 16",
|
|
26
|
-
// eslint-disable-next-line max-len
|
|
27
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M8 2.667a5.333 5.333 0 100 10.666A5.333 5.333 0 008 2.667ZM1.333 8a6.667 6.667 0 1113.334 0A6.667 6.667 0 011.333 8Zm9.09-2.183a.667.667 0 01.093.939l-3 3.666a.667.667 0 01-.987.05L5.195 9.137a.667.667 0 11.943-.943l.813.813L9.484 5.91a.667.667 0 01.938-.094Z", clipRule: "evenodd" })
|
|
28
|
-
},
|
|
29
|
-
"zen-warning-new": {
|
|
30
|
-
viewBox: "0 0 24 24",
|
|
31
|
-
// eslint-disable-next-line max-len
|
|
32
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M9.963 5.077c.884-1.426 2.975-1.438 3.875-.022l7.305 11.487c.949 1.491-.122 3.458-1.93 3.458H4.784c-1.796 0-2.87-1.944-1.944-3.436L9.963 5.077Zm5.563-1.095c-1.692-2.66-5.602-2.638-7.263.04L1.141 15.51C-.625 18.357 1.448 22 4.785 22h14.427c3.36 0 5.428-3.686 3.619-6.531L15.526 3.982Zm-2.139 3.526a1.404 1.404 0 10-2.802-.022l.311 5.352a1.05 1.05 0 002.095.017l.396-5.347Zm-2.454 10.088c.29.27.649.404 1.076.404.414 0 .766-.135 1.055-.404.29-.27.435-.602.435-1 0-.397-.145-.73-.435-1a1.493 1.493 0 00-1.055-.404c-.428 0-.786.135-1.076.404a1.31 1.31 0 00-.434 1c0 .398.145.73.434 1Z", clipRule: "evenodd" })
|
|
33
|
-
},
|
|
34
|
-
"zen-report-error": {
|
|
35
|
-
viewBox: "0 0 16 16",
|
|
36
|
-
// eslint-disable-next-line max-len
|
|
37
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M15.413 13.333L9.18 1.433a1.333 1.333 0 00-2.362 0l-6.232 11.9a1.333 1.333 0 001.182 1.952H14.23a1.333 1.333 0 001.182-1.952zm-8.08-7.718a.667.667 0 011.334 0v4a.667.667 0 01-1.334 0v-4zm.7 7.674h-.018A1.019 1.019 0 017 12.309a.984.984 0 01.947-1.02h.037c.546 0 .995.432 1.016.978a.983.983 0 01-.944 1.021h-.023z" })
|
|
38
|
-
},
|
|
39
|
-
"zen-error": {
|
|
40
|
-
viewBox: "0 0 12 12",
|
|
41
|
-
// eslint-disable-next-line max-len
|
|
42
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M11.56 10L6.885 1.075a1 1 0 00-1.771 0L.44 10a1 1 0 00.886 1.464h9.347A1 1 0 0011.56 10zM5.5 4.212a.5.5 0 011 0v3a.5.5 0 01-1 0v-3zm.525 5.755h-.014a.764.764 0 01-.761-.736.738.738 0 01.71-.764h.028c.41 0 .746.323.762.733a.738.738 0 01-.708.766h-.017z" })
|
|
43
|
-
},
|
|
44
|
-
"zen-minus-icon": {
|
|
45
|
-
viewBox: "0 0 16 16",
|
|
46
|
-
svg: (0, jsx_runtime_1.jsx)("rect", { width: "16", height: "3", y: "6.5", rx: "1" })
|
|
47
|
-
},
|
|
48
|
-
"zen-loupe": {
|
|
49
|
-
viewBox: "0 0 32 32",
|
|
50
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M31.538 29.11l-8.874-8.867c4.219-5.542 3.143-13.453-2.404-17.669C14.713-1.64 6.795-.567 2.576 4.975-1.643 10.518-.568 18.43 4.98 22.645a12.627 12.627 0 0015.28 0l8.875 8.866a1.721 1.721 0 002.403 0c.63-.657.602-1.718 0-2.401zM3.491 12.651c0-5.063 4.108-9.167 9.175-9.167 5.067 0 9.175 4.104 9.175 9.167s-4.108 9.167-9.175 9.167c-5.064-.005-9.17-4.107-9.175-9.167z" })
|
|
51
|
-
},
|
|
52
|
-
"zen-globe": {
|
|
53
|
-
viewBox: "0 0 16 16",
|
|
54
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M.199 7.832C.165 12.168 3.592 15.8 7.979 15.8c4.378 0 7.823-3.256 7.823-7.83 0-2.277-.763-4.222-2.128-5.6C12.31.995 10.356.2 8.004.2 3.275.2.201 3.685.198 7.832zm13.654 3.201H11.07c.302-.924.482-1.85.538-2.766h2.987a6.625 6.625 0 01-.742 2.766zm-.802 1.2a6.64 6.64 0 01-3.66 2.214 15.07 15.07 0 001.218-2.214h2.442zm-3.25-1.2c.342-.935.542-1.861.604-2.766H5.601c.062.905.262 1.83.605 2.766H9.8zm-1.798 3.313a14.748 14.748 0 01-1.282-2.113h2.564a14.75 14.75 0 01-1.282 2.113zM1.409 8.267h2.99c.055.917.235 1.842.537 2.766H2.178a6.668 6.668 0 01-.77-2.766zm5.195 6.165a6.703 6.703 0 01-3.612-2.199h2.405a15.06 15.06 0 001.207 2.199zm4.424-10.13c.33.893.523 1.819.58 2.765h2.933a6.559 6.559 0 00-1.053-2.766h-2.46zm-.622 2.765a8.484 8.484 0 00-.67-2.766H6.27a8.488 8.488 0 00-.669 2.766h4.805zm-6.008 0a9.656 9.656 0 01.581-2.766H2.458a6.397 6.397 0 00-1.014 2.766H4.4zm6.096-3.966h1.957a6.557 6.557 0 00-2.934-1.534c.375.496.7 1.008.977 1.534zm-3.601 0a10.63 10.63 0 011.11-1.486c.426.479.798.978 1.11 1.486h-2.22zm-1.38 0c.281-.535.613-1.056.997-1.56a6.414 6.414 0 00-3.03 1.56h2.033z", clipRule: "evenodd" })
|
|
55
|
-
},
|
|
56
|
-
"zen-circle-ok": {
|
|
57
|
-
viewBox: "0 0 32 32",
|
|
58
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M24.64 8.599a1.665 1.665 0 00-2.328.352l-.001.001-7.899 10.72-5.023-4.019a1.669 1.669 0 00-2.084 2.604l6.378 5.102c.732.573 1.79.444 2.364-.29l.018-.024L25 10.93a1.668 1.668 0 00-.359-2.33c.001 0 0 0 0 0zM16 0C7.164 0 0 7.164 0 16s7.164 16 16 16 16-7.164 16-16C31.99 7.168 24.832.01 16 0zm0 29.333C8.636 29.333 2.667 23.364 2.667 16S8.636 2.667 16 2.667 29.333 8.636 29.333 16C29.325 23.36 23.36 29.325 16 29.333z" })
|
|
59
|
-
},
|
|
60
|
-
"zen-lvl-up": {
|
|
61
|
-
viewBox: "0 0 18 32",
|
|
62
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M14.78 6.973c.51.536.51 1.404 0 1.94a1.282 1.282 0 01-.926.401H9.546a.335.335 0 00-.327.343v18.572c0 .189.146.342.327.342h6.818c.903 0 1.636.769 1.636 1.715 0 .946-.733 1.714-1.636 1.714H7.582c-.903 0-1.636-.768-1.636-1.714V9.656a.335.335 0 00-.327-.342h-4.31C.586 9.314 0 8.7 0 7.943c0-.364.137-.712.384-.97L6.657.401a1.268 1.268 0 011.85 0z" })
|
|
63
|
-
},
|
|
64
|
-
"zen-arrow-top": {
|
|
65
|
-
viewBox: "0 0 12 12",
|
|
66
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M6 1.5a.5.5 0 01.354.146l3 3a.5.5 0 11-.708.708L6.5 3.207V10a.5.5 0 01-1 0V3.207L3.354 5.354a.5.5 0 11-.708-.708l3-3A.5.5 0 016 1.5Z", clipRule: "evenodd" })
|
|
67
|
-
},
|
|
68
|
-
"zen-arrow-bottom": {
|
|
69
|
-
viewBox: "0 0 12 12",
|
|
70
|
-
svg: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M6 10.5a.5.5 0 01-.354-.146l-3-3a.5.5 0 11.708-.708L5.5 8.793V2a.5.5 0 011 0v6.793l2.146-2.147a.5.5 0 11.708.708l-3 3A.5.5 0 016 10.5Z", clipRule: "evenodd" })
|
|
71
|
-
},
|
|
72
|
-
"zen-calendar": {
|
|
73
|
-
viewBox: "0 0 24 24",
|
|
74
|
-
svg: (0, jsx_runtime_1.jsx)("path", { d: "M8 2C8.55228 2 9 2.44772 9 3V4H15V3C15 2.44772 15.4477 2 16 2C16.5523 2 17 2.44772 17 3V4H20C20.5523 4 21 4.44772 21 5V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V5C3 4.44772 3.44772 4 4 4H7V3C7 2.44772 7.44772 2 8 2ZM5 6V9H19V6H5ZM19 11H5V19H19V11Z" })
|
|
75
|
-
}
|
|
76
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { TSvgIconSize } from "./svgIconSize";
|
|
3
|
-
import "./svgIcon.less";
|
|
4
|
-
import { TIconId } from "../static/icons/icons";
|
|
5
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
6
|
-
export interface ISvgIcon extends IZenComponentProps {
|
|
7
|
-
iconId: TIconId;
|
|
8
|
-
size?: TSvgIconSize;
|
|
9
|
-
focusable?: boolean;
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
@deprecated - will be removed in future releases
|
|
15
|
-
*/
|
|
16
|
-
export declare const SvgIcon: React.FC<ISvgIcon>;
|
package/dist/svgIcon/svgIcon.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SvgIcon = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
30
|
-
const useUniqueId_1 = require("../commonHelpers/useUniqueId");
|
|
31
|
-
/**
|
|
32
|
-
@deprecated - will be removed in future releases
|
|
33
|
-
*/
|
|
34
|
-
const SvgIcon = ({ iconId, className, size, title, description, focusable = false }) => {
|
|
35
|
-
const classes = React.useMemo(() => (0, classNames_1.classNames)([
|
|
36
|
-
"zen-icon",
|
|
37
|
-
(size ? `zen-icon--${size}` : ""),
|
|
38
|
-
className !== null && className !== void 0 ? className : ""
|
|
39
|
-
]), [size, className]);
|
|
40
|
-
const uniqueId = (0, useUniqueId_1.useUniqueId)();
|
|
41
|
-
return (0, jsx_runtime_1.jsxs)("svg", { focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, children: [title ? (0, jsx_runtime_1.jsx)("title", { id: uniqueId, children: title }) : null, description ? (0, jsx_runtime_1.jsx)("desc", { children: description }) : null, (0, jsx_runtime_1.jsx)("use", { xlinkHref: `#${iconId}`, "data-id": "" })] });
|
|
42
|
-
};
|
|
43
|
-
exports.SvgIcon = SvgIcon;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { BottomSectionType } from "./bottomSectionType";
|
|
3
|
-
import "./bottomSection.less";
|
|
4
|
-
import { IIcon } from "../icons/icon";
|
|
5
|
-
import { TIconSize } from "../icons/iconSize";
|
|
6
|
-
export interface IBottomSection {
|
|
7
|
-
message: string;
|
|
8
|
-
type?: BottomSectionType;
|
|
9
|
-
icon?: React.FC<IIcon>;
|
|
10
|
-
className?: string;
|
|
11
|
-
size?: TIconSize;
|
|
12
|
-
}
|
|
13
|
-
export declare const BottomSection: React.FC<IBottomSection>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
-
import { BottomSectionType } from "./bottomSectionType";
|
|
5
|
-
const getSelectorsByType = (type) => {
|
|
6
|
-
switch (type) {
|
|
7
|
-
case BottomSectionType.Info:
|
|
8
|
-
return ["zen-bottom-section__icon--info", "zen-bottom-section__message--info"];
|
|
9
|
-
case BottomSectionType.Error:
|
|
10
|
-
return ["zen-bottom-section__icon--error", "zen-bottom-section__message--error"];
|
|
11
|
-
default:
|
|
12
|
-
return ["", ""];
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export const BottomSection = ({ message, type = BottomSectionType.Info, icon, size, className = "" }) => {
|
|
16
|
-
const [selectorIcon, selectorMessage] = getSelectorsByType(type);
|
|
17
|
-
return _jsxs("div", { className: classNames(["zen-bottom-section", className]), children: [icon && React.createElement(icon, {
|
|
18
|
-
size: size,
|
|
19
|
-
className: classNames(["zen-bottom-section__icon", selectorIcon])
|
|
20
|
-
}), _jsx("span", { className: classNames(["zen-bottom-section__message", selectorMessage]), children: message })] });
|
|
21
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./comboList.less";
|
|
3
|
-
import { TIconId } from "../static/icons/icons";
|
|
4
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
5
|
-
export interface IItemTree {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
children?: IItemTree[];
|
|
11
|
-
icon?: TIconId;
|
|
12
|
-
hover?: boolean;
|
|
13
|
-
path?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IComboList extends IZenComponentProps {
|
|
16
|
-
items: IItemTree[];
|
|
17
|
-
checkedItems: Set<string>;
|
|
18
|
-
lastItemId: string;
|
|
19
|
-
hoverId: string;
|
|
20
|
-
path: string;
|
|
21
|
-
listId: string;
|
|
22
|
-
onChange: (id: string, state: boolean) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const ComboList: React.FC<IComboList>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable react/prop-types */
|
|
3
|
-
import { createElement, useRef } from "react";
|
|
4
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
5
|
-
import { useAutoScroll } from "./comboListHook";
|
|
6
|
-
import { IconFolderNew } from "../icons/deprecated/iconFolderNew";
|
|
7
|
-
const FolderItem = ({ children }) => _jsxs("div", { className: "zen-combo-list__item-container", children: [_jsx(IconFolderNew, { className: "zen-combo-list__icon", size: "large" }), children] });
|
|
8
|
-
const CheckBox = ({ children, icon }) => _jsx("div", { className: "zen-combo-list__item-container", children: _jsxs(_Fragment, { children: [icon ? createElement(icon, { className: "zen-combo-list__icon" }) : "", " ", children] }) });
|
|
9
|
-
export const ComboList = ({ className, items, onChange, listId, path, checkedItems, hoverId }) => {
|
|
10
|
-
const listClassName = classNames(["zen-combo-list", className || ""]);
|
|
11
|
-
const hoveredItem = useRef(null);
|
|
12
|
-
useAutoScroll(hoverId, items, hoveredItem);
|
|
13
|
-
return _jsx("ul", { className: listClassName, id: listId, role: "listbox", tabIndex: 0, "aria-label": path, ref: hoveredItem, children: items.map(item => {
|
|
14
|
-
const itemClassName = classNames([
|
|
15
|
-
"zen-combo-list__item",
|
|
16
|
-
hoverId === item.id ? "zen-combo-list__item--hover" : "",
|
|
17
|
-
checkedItems.has(item.id) && !(item.children && item.children.length) ? "zen-combo-list__item--selected" : "",
|
|
18
|
-
item.className || ""
|
|
19
|
-
]);
|
|
20
|
-
const title = item.path ? item.path : `${path ? path + "/" : ""}${item.name}`;
|
|
21
|
-
return _jsx("li", { className: itemClassName, onClick: () => onChange(item.id, !checkedItems.has(item.id)), "aria-selected": checkedItems.has(item.id), role: "option", title: title, children: item.children ?
|
|
22
|
-
_jsx(FolderItem, { children: item.name })
|
|
23
|
-
:
|
|
24
|
-
_jsx(CheckBox, { icon: item.icon, id: item.id, onChange: onChange, checked: checkedItems.has(item.id), children: item.name }) }, item.id);
|
|
25
|
-
}) });
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
export const useAutoScroll = (hoverId, items, ref) => {
|
|
3
|
-
useEffect(() => {
|
|
4
|
-
if (ref.current) {
|
|
5
|
-
const elementIndex = items.reduce((acc, item, index) => item.id === hoverId ? index : acc, 0);
|
|
6
|
-
const hoverElement = ref.current.children[elementIndex];
|
|
7
|
-
hoverElement && hoverElement.scrollIntoView && hoverElement.scrollIntoView({ block: "nearest" });
|
|
8
|
-
}
|
|
9
|
-
}, [hoverId, items, ref]);
|
|
10
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./combobox.less";
|
|
3
|
-
import { ITreeList } from "../searchList/searchList";
|
|
4
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
5
|
-
export interface ICombobox extends IZenComponentProps {
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
* @param translate - will be removed in the next major release
|
|
9
|
-
*/
|
|
10
|
-
translate?: (s: string) => string;
|
|
11
|
-
inputId?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
dialogAriaLabel?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
width?: number;
|
|
17
|
-
selection: Set<string>;
|
|
18
|
-
onSelect: (selected: string[]) => void;
|
|
19
|
-
getData: (signal?: AbortSignal, searchValue?: string) => Promise<ITreeList[]>;
|
|
20
|
-
inline?: boolean;
|
|
21
|
-
fullWidth?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated - will be removed in future releases
|
|
25
|
-
*/
|
|
26
|
-
export declare const Combobox: React.FC<ICombobox>;
|
|
27
|
-
export declare const TRANSLATIONS: string[];
|
package/esm/combobox/combobox.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
-
import { SearchableField, TRANSLATIONS as InputTranslations } from "../searchableField/searchableField";
|
|
4
|
-
import SearchSingleList, { EmptyList, WaitingList, TRANSLATIONS as ListTranslations } from "../searchList/searchList";
|
|
5
|
-
import { Absolute } from "../absolute/absolute";
|
|
6
|
-
import { useClickOutside, useComboboxNavigation } from "./comboboxNavigation";
|
|
7
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated - will be removed in future releases
|
|
10
|
-
*/
|
|
11
|
-
export const Combobox = ({ getData, inputId, placeholder, dialogAriaLabel, title, disabled, onSelect, width, className, selection, inline = true, fullWidth }) => {
|
|
12
|
-
const ariaComboboxId = "listbox";
|
|
13
|
-
const ariaControlId = React.useId();
|
|
14
|
-
const listId = React.useId();
|
|
15
|
-
const [newListData, setNewListData] = useState([]);
|
|
16
|
-
const [showWaiting, setShowWaiting] = useState(false);
|
|
17
|
-
const [showList, setShowList] = useState(() => false);
|
|
18
|
-
const [showEmptyList, setShowEmptyList] = useState(false);
|
|
19
|
-
const [value, setInputValue] = useState("");
|
|
20
|
-
const abortToken = useRef(new AbortController());
|
|
21
|
-
const triggerRef = useRef(null);
|
|
22
|
-
const comboboxRef = useRef(null);
|
|
23
|
-
const inputRef = useRef(null);
|
|
24
|
-
const searchListParentRef = useRef(null);
|
|
25
|
-
const handleHighLevelKeyboardNavigation = useCallback((key, e) => {
|
|
26
|
-
if (key === "Escape") {
|
|
27
|
-
!showList && setInputValue("");
|
|
28
|
-
setShowList(false);
|
|
29
|
-
setShowWaiting(false);
|
|
30
|
-
setShowEmptyList(false);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (key === "Tab") {
|
|
34
|
-
setShowList(false);
|
|
35
|
-
setShowWaiting(false);
|
|
36
|
-
setShowEmptyList(false);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (key === "ArrowDown" && showList && !showWaiting && !showEmptyList) {
|
|
40
|
-
e.preventDefault();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (key === "ArrowUp" && showList && !showWaiting && !showEmptyList) {
|
|
44
|
-
e.preventDefault();
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
}, [showList, showWaiting, showEmptyList]);
|
|
48
|
-
const showListPopup = (newVal) => {
|
|
49
|
-
setShowList(newVal);
|
|
50
|
-
};
|
|
51
|
-
const showWaitingPopup = (newVal) => {
|
|
52
|
-
setShowWaiting(newVal);
|
|
53
|
-
};
|
|
54
|
-
const showEmptyPopup = (newVal) => {
|
|
55
|
-
setShowEmptyList(newVal);
|
|
56
|
-
};
|
|
57
|
-
const controlData = useCallback((signal, searchValue) => {
|
|
58
|
-
showWaitingPopup(true);
|
|
59
|
-
showEmptyPopup(false);
|
|
60
|
-
showListPopup(false);
|
|
61
|
-
getData(signal, searchValue).then(data => {
|
|
62
|
-
setNewListData(data);
|
|
63
|
-
showWaitingPopup(false);
|
|
64
|
-
data.length ? showListPopup(true) : showEmptyPopup(true);
|
|
65
|
-
}).catch(() => {
|
|
66
|
-
showListPopup(false);
|
|
67
|
-
showEmptyPopup(false);
|
|
68
|
-
showWaitingPopup(false);
|
|
69
|
-
});
|
|
70
|
-
}, [getData]);
|
|
71
|
-
const onOpenSearch = useCallback(() => {
|
|
72
|
-
const currentAbort = abortToken.current;
|
|
73
|
-
if (showList) {
|
|
74
|
-
showListPopup(false);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
controlData(currentAbort.signal, value);
|
|
78
|
-
}, [controlData, showList, value]);
|
|
79
|
-
const onSingleChange = useCallback((selected, unselect) => {
|
|
80
|
-
var _a;
|
|
81
|
-
const newSetSelection = new Set(selection);
|
|
82
|
-
const action = newSetSelection.has(selected) ? "delete" : "add";
|
|
83
|
-
unselect && unselect.forEach(item => newSetSelection.delete(item));
|
|
84
|
-
newSetSelection[action](selected);
|
|
85
|
-
onSelect([...newSetSelection]);
|
|
86
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
87
|
-
}, [onSelect, selection]);
|
|
88
|
-
const subscriptionCondition = (trigger) => trigger.current !== null;
|
|
89
|
-
const onFocus = () => {
|
|
90
|
-
!showWaiting && !showList && !showEmptyList && controlData(undefined, value);
|
|
91
|
-
};
|
|
92
|
-
const onInput = (val) => {
|
|
93
|
-
abortToken.current.abort();
|
|
94
|
-
abortToken.current = new AbortController();
|
|
95
|
-
controlData(abortToken.current.signal, val);
|
|
96
|
-
setInputValue(val);
|
|
97
|
-
};
|
|
98
|
-
const containerClassName = classNames([
|
|
99
|
-
"zen-combobox",
|
|
100
|
-
"zen-combobox__container",
|
|
101
|
-
className || ""
|
|
102
|
-
]);
|
|
103
|
-
useComboboxNavigation(handleHighLevelKeyboardNavigation, comboboxRef, subscriptionCondition);
|
|
104
|
-
useClickOutside(comboboxRef, () => {
|
|
105
|
-
if (inline) {
|
|
106
|
-
showListPopup(false);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
useClickOutside(searchListParentRef, () => {
|
|
110
|
-
if (!inline) {
|
|
111
|
-
showListPopup(false);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
useEffect(() => {
|
|
115
|
-
const disableKeyCode = ["ArrowDown", "ArrowUp"];
|
|
116
|
-
const input = inputRef.current;
|
|
117
|
-
const handler = (e) => {
|
|
118
|
-
if (disableKeyCode.some(key => e.key === key)) {
|
|
119
|
-
e.preventDefault();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
input === null || input === void 0 ? void 0 : input.addEventListener("keydown", handler);
|
|
123
|
-
return () => {
|
|
124
|
-
input === null || input === void 0 ? void 0 : input.removeEventListener("keydown", handler);
|
|
125
|
-
};
|
|
126
|
-
}, []);
|
|
127
|
-
useEffect(() => {
|
|
128
|
-
var _a;
|
|
129
|
-
if (showList) {
|
|
130
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
131
|
-
}
|
|
132
|
-
}, [showList]);
|
|
133
|
-
const popupAlignment = inline ? undefined : "bottom-right";
|
|
134
|
-
const openChange = useCallback(() => {
|
|
135
|
-
if (showWaiting) {
|
|
136
|
-
return setShowWaiting;
|
|
137
|
-
}
|
|
138
|
-
if (showEmptyList) {
|
|
139
|
-
return setShowEmptyList;
|
|
140
|
-
}
|
|
141
|
-
if (showList) {
|
|
142
|
-
return setShowList;
|
|
143
|
-
}
|
|
144
|
-
return () => { };
|
|
145
|
-
}, [showWaiting, showEmptyList, showList]);
|
|
146
|
-
const getPopupContent = useMemo(() => {
|
|
147
|
-
if (showWaiting) {
|
|
148
|
-
return _jsx(WaitingList, {});
|
|
149
|
-
}
|
|
150
|
-
if (showEmptyList) {
|
|
151
|
-
return _jsx(EmptyList, {});
|
|
152
|
-
}
|
|
153
|
-
if (showList) {
|
|
154
|
-
return _jsx("div", { ref: searchListParentRef, children: _jsx(SearchSingleList, { selected: selection, parentRef: comboboxRef, listId: listId, listData: newListData, onChange: onSingleChange }) });
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
}, [showWaiting, showEmptyList, showList, selection, newListData, onSingleChange, listId]);
|
|
158
|
-
return _jsxs("div", { className: containerClassName, ref: comboboxRef, children: [_jsx(SearchableField, { width: width, inputId: inputId, inputRef: inputRef, title: title, placeholder: placeholder, onChange: onInput, onOpenSearch: onOpenSearch, onFocus: onFocus, openSearch: showList || showWaiting || showEmptyList, disabled: disabled, ariaAutocomplete: "list", ariaControls: ariaControlId, ariaOwns: ariaComboboxId, triggerRef: inline ? undefined : triggerRef, fullWidth: fullWidth, value: value }), _jsx(Absolute, { alignment: popupAlignment, onOpenChange: openChange, className: "zen-combobox-popup zen-shadow-dropdown-default", stateFullChilds: showList, inline: inline, isOpen: true, id: ariaControlId, triggerRef: triggerRef, ariaLabel: dialogAriaLabel || placeholder, role: "region", children: getPopupContent })] });
|
|
159
|
-
};
|
|
160
|
-
export const TRANSLATIONS = [
|
|
161
|
-
...InputTranslations,
|
|
162
|
-
...ListTranslations
|
|
163
|
-
];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
export declare const useComboboxNavigation: <T extends HTMLElement>(callback: (event: string, e: KeyboardEvent) => void, subscriptionTrigger: RefObject<T>, condition?: (_) => boolean) => void;
|
|
3
|
-
export declare const useClickOutside: (ref: any, callback: any) => void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect } from "react";
|
|
2
|
-
import { useKeydown } from "../commonHelpers/hooks/useKeydown";
|
|
3
|
-
export const useComboboxNavigation = (callback, subscriptionTrigger, condition) => {
|
|
4
|
-
const handleKeyDown = useCallback((e) => {
|
|
5
|
-
callback(e.key, e);
|
|
6
|
-
}, [callback]);
|
|
7
|
-
useKeydown(handleKeyDown, subscriptionTrigger, condition);
|
|
8
|
-
};
|
|
9
|
-
export const useClickOutside = (ref, callback) => {
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const handleClick = (event) => {
|
|
12
|
-
if (ref.current && !ref.current.contains(event.target)) {
|
|
13
|
-
callback();
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
document.body.addEventListener("click", handleClick, true);
|
|
17
|
-
return () => {
|
|
18
|
-
document.body.removeEventListener("click", handleClick, true);
|
|
19
|
-
};
|
|
20
|
-
}, [ref, callback]);
|
|
21
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface ITranslatable {
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
* @param translate - will be removed in the next major release
|
|
6
|
-
*/
|
|
7
|
-
translate?: (key: string) => string;
|
|
8
|
-
}
|
|
9
|
-
export interface IZenTranslatableComponent<Props = object> extends FC<Props> {
|
|
10
|
-
translations: string[];
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./dropdownOld.less";
|
|
3
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
-
import { ISelectListItem } from "../selectList/selectListItem";
|
|
5
|
-
export interface IDropdownOld extends IZenComponentProps {
|
|
6
|
-
onChange: (selectedIds: string[]) => void;
|
|
7
|
-
items: ISelectListItem[];
|
|
8
|
-
selectedOption: string[];
|
|
9
|
-
title: string;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
id?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
multiselect?: boolean;
|
|
14
|
-
footer?: JSX.Element;
|
|
15
|
-
fullWidth?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const DropdownOld: React.FC<IDropdownOld>;
|