@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
package/esm/icons/iconShare2.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
-
import { useUniqueId } from "../commonHelpers/useUniqueId";
|
|
5
|
-
/**
|
|
6
|
-
@deprecated - will be removed in future releases
|
|
7
|
-
duplicate of **IconShare**, please use that instead
|
|
8
|
-
*/
|
|
9
|
-
export const IconShare2 = ({ className, size, title, description, focusable = false }) => {
|
|
10
|
-
const uniqueId = useUniqueId();
|
|
11
|
-
const classes = useMemo(() => classNames([
|
|
12
|
-
"zen-icon",
|
|
13
|
-
(size ? `zen-icon--${size}` : ""),
|
|
14
|
-
className !== null && className !== void 0 ? className : ""
|
|
15
|
-
]), [size, className]);
|
|
16
|
-
return _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 25", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconShare2", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.41 3.957a1 1 0 00-1.074.165l-9 8a1 1 0 000 1.495l9 8A1 1 0 0012 20.87v-3.493c3.59.057 5.51.428 6.678 1.012 1.18.59 1.682 1.436 2.428 2.928A1 1 0 0023 20.87c0-4.285-.614-7.508-2.58-9.62C18.59 9.288 15.8 8.498 12 8.385V4.87a1 1 0 00-.59-.913zM10 7.097V9.37a1 1 0 001 1c4.187 0 6.566.75 7.956 2.244.972 1.044 1.576 2.573 1.857 4.806a5.976 5.976 0 00-1.24-.82c-1.729-.864-4.314-1.23-8.573-1.23a1 1 0 00-1 1v2.273L3.505 12.87 10 7.096z" })] });
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
-
import { useUniqueId } from "../commonHelpers/useUniqueId";
|
|
5
|
-
/**
|
|
6
|
-
@deprecated - will be removed in future releases.
|
|
7
|
-
duplicate of **IconVolumeOn**, please use that instead
|
|
8
|
-
*/
|
|
9
|
-
export const IconVolumeOf = ({ className, size, title, description, focusable = false }) => {
|
|
10
|
-
const uniqueId = useUniqueId();
|
|
11
|
-
const classes = useMemo(() => classNames([
|
|
12
|
-
"zen-icon",
|
|
13
|
-
(size ? `zen-icon--${size}` : ""),
|
|
14
|
-
className !== null && className !== void 0 ? className : ""
|
|
15
|
-
]), [size, className]);
|
|
16
|
-
return _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 25", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconVolumeOf", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.472 3.988A1 1 0 0113 4.87v16a1 1 0 01-1.555.832L5.697 17.87H2a1 1 0 01-1-1v-8a1 1 0 011-1h3.697l5.748-3.832a1 1 0 011.027-.05zM11 6.738L6.555 9.702A1 1 0 016 9.87H3v6h3a1 1 0 01.555.168L11 19V6.738zm8 2.132a1 1 0 011 1v2h2a1 1 0 110 2h-2v2a1 1 0 11-2 0v-2h-2a1 1 0 110-2h2v-2a1 1 0 011-1z" })] });
|
|
17
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./groupedReportsItem.less";
|
|
3
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
-
export interface IGroupedReportsItemProps extends IZenComponentProps {
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const GroupedReportsItem: React.FC<IGroupedReportsItemProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Popup } from "../popup/popup";
|
|
3
|
-
import { SvgIconSize } from "../svgIcon/svgIconSize";
|
|
4
|
-
import { ButtonIconPosition, TextIconButton } from "../textIconButton/textIconButton";
|
|
5
|
-
import { IconSelectArrow } from "../icons/deprecated/iconSelectArrow";
|
|
6
|
-
export const GroupedReportsItem = ({ label, children }) => _jsx(Popup, { ariaLabel: label, className: "zen-report-popup", alignment: "right-top", trigger: _jsx(TextIconButton, { iconSize: SvgIconSize.Micro, className: "zen-grouped-reports-item", iconClasses: "zen-grouped-reports-item__icon", iconPosition: ButtonIconPosition.End, icon: IconSelectArrow, children: label }), children: children });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { INotificationProps } from "../../notification/notification";
|
|
3
|
-
import { IZenComponentProps, IZenIdComponentProps } from "../../commonHelpers/zenComponent";
|
|
4
|
-
interface IErrorNotification extends IZenIdComponentProps, IZenComponentProps, Pick<INotificationProps, "onClose" | "isOpen"> {
|
|
5
|
-
onGoToReports: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const ErrorNotification: import("react").ForwardRefExoticComponent<IErrorNotification & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export declare const TRANSLATIONS: string[];
|
|
9
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Notification } from "../../notification/notification";
|
|
4
|
-
import { Button } from "../../button/button";
|
|
5
|
-
import { ButtonType } from "../../button/buttonType";
|
|
6
|
-
import { useLanguage } from "../../utils/localization/useLanguage";
|
|
7
|
-
export const ErrorNotification = forwardRef(function errorNotification({ id, className, isOpen, onClose, onGoToReports }, ref) {
|
|
8
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9
|
-
const { translate } = useLanguage();
|
|
10
|
-
return _jsx(Notification, { id: id, type: "error", title: translate("There was an issue preparing your report"), text: translate("Try again or see more details on the My Reports page."), className: className, onClose: onClose, isOpen: isOpen, ref: ref, children: _jsx(Button, { onClick: onGoToReports, className: "zen-push__button", title: translate("Go to My Reports"), type: ButtonType.Secondary, children: translate("Go to My Reports") }) });
|
|
11
|
-
});
|
|
12
|
-
export const TRANSLATIONS = [
|
|
13
|
-
"Go to My Reports",
|
|
14
|
-
"There was an issue preparing your report",
|
|
15
|
-
"Try again or see more details on the My Reports page."
|
|
16
|
-
];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { INotificationProps } from "../../notification/notification";
|
|
3
|
-
import { IZenComponentProps, IZenIdComponentProps } from "../../commonHelpers/zenComponent";
|
|
4
|
-
interface IInfoNotification extends IZenIdComponentProps, IZenComponentProps, Pick<INotificationProps, "onClose" | "isOpen"> {
|
|
5
|
-
onGoToReports: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const InfoNotification: import("react").ForwardRefExoticComponent<IInfoNotification & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export declare const TRANSLATIONS: string[];
|
|
9
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Button } from "../../button/button";
|
|
4
|
-
import { ButtonType } from "../../button/buttonType";
|
|
5
|
-
import { Notification } from "../../notification/notification";
|
|
6
|
-
import { useLanguage } from "../../utils/localization/useLanguage";
|
|
7
|
-
export const InfoNotification = forwardRef(function infoNotification({ id, className, isOpen, onClose, onGoToReports }, ref) {
|
|
8
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9
|
-
const { translate } = useLanguage();
|
|
10
|
-
return _jsx(Notification, { id: id, type: "info", title: translate("Your report is being prepared"), text: translate("We will notify you when your report is ready. You can track the progress by going to the My Reports page."), className: className, onClose: onClose, isOpen: isOpen, ref: ref, children: _jsx(Button, { onClick: onGoToReports, className: "zen-push__button", title: translate("Go to My Reports"), type: ButtonType.Secondary, children: translate("Go to My Reports") }) });
|
|
11
|
-
});
|
|
12
|
-
export const TRANSLATIONS = [
|
|
13
|
-
"Your report is being prepared",
|
|
14
|
-
"We will notify you when your report is ready. You can track the progress by going to the My Reports page.",
|
|
15
|
-
"Go to My Reports"
|
|
16
|
-
];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { INotificationProps } from "../../notification/notification";
|
|
3
|
-
import { IZenComponentProps, IZenIdComponentProps } from "../../commonHelpers/zenComponent";
|
|
4
|
-
interface ISuccessNotification extends IZenIdComponentProps, IZenComponentProps, Pick<INotificationProps, "onClose" | "isOpen"> {
|
|
5
|
-
onGoToReports: () => void;
|
|
6
|
-
onDownload: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const SuccessNotification: import("react").ForwardRefExoticComponent<ISuccessNotification & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export declare const TRANSLATIONS: string[];
|
|
10
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Button } from "../../button/button";
|
|
4
|
-
import { ButtonType } from "../../button/buttonType";
|
|
5
|
-
import { Notification } from "../../notification/notification";
|
|
6
|
-
import { useLanguage } from "../../utils/localization/useLanguage";
|
|
7
|
-
export const SuccessNotification = forwardRef(function successNotification({ id, className, isOpen, onClose, onGoToReports, onDownload }, ref) {
|
|
8
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9
|
-
const { translate } = useLanguage();
|
|
10
|
-
return _jsxs(Notification, { id: id, type: "success", title: translate("Your report is ready to download"), text: translate("Download your report now, or see more details on the My Reports page."), className: className, onClose: onClose, isOpen: isOpen, ref: ref, children: [_jsx(Button, { onClick: onDownload, className: "zen-push__button", title: translate("Download now"), type: ButtonType.Secondary, children: translate("Download now") }), _jsx(Button, { onClick: onGoToReports, className: "zen-push__button", title: translate("Go to My Reports"), type: ButtonType.Tertiary, children: translate("Go to My Reports") })] });
|
|
11
|
-
});
|
|
12
|
-
export const TRANSLATIONS = [
|
|
13
|
-
"Your report is ready to download",
|
|
14
|
-
"Download your report now, or see more details on the My Reports page.",
|
|
15
|
-
"Download now",
|
|
16
|
-
"Go to My Reports"
|
|
17
|
-
];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./reportPopup.less";
|
|
3
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
-
export declare const WEB_ITEM_ID = "web";
|
|
5
|
-
export interface IReportPopupDataItem {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface IReportPopupGroupedDataItem extends IReportPopupDataItem {
|
|
11
|
-
templates?: IReportPopupDataItem[];
|
|
12
|
-
}
|
|
13
|
-
export type TReportDataItem = IReportPopupDataItem | IReportPopupGroupedDataItem;
|
|
14
|
-
export interface IReportPopup extends IZenComponentProps {
|
|
15
|
-
loader: () => Promise<TReportDataItem[]>;
|
|
16
|
-
onReportClick?: (id: string) => void;
|
|
17
|
-
onViewInBrowserClick?: (id: string) => void;
|
|
18
|
-
onPreparePDFClick?: (id: string) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated - will be removed in next major release
|
|
22
|
-
*/
|
|
23
|
-
export declare const ReportPopup: React.FC<IReportPopup>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-floating-promises */
|
|
3
|
-
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
4
|
-
import { FilterButton } from "../filterButton/filterButton";
|
|
5
|
-
import { Popup } from "../popup/popup";
|
|
6
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
7
|
-
import { ReportPopupContent } from "./reportPopupContent";
|
|
8
|
-
import { Waiting } from "../waiting/waiting";
|
|
9
|
-
import { FOCUSABLE_SELECTOR } from "../utils/focusableSelector";
|
|
10
|
-
export const WEB_ITEM_ID = "web";
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated - will be removed in next major release
|
|
13
|
-
*/
|
|
14
|
-
export const ReportPopup = ({ className, loader, onReportClick = () => { }, onViewInBrowserClick = () => { }, onPreparePDFClick = () => { } }) => {
|
|
15
|
-
const [reports, setReports] = useState([]);
|
|
16
|
-
const [isDataLoading, setIsDataLoading] = useState(false);
|
|
17
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
18
|
-
const [isGrouped, setIsGrouped] = useState(false);
|
|
19
|
-
const ref = useRef(null);
|
|
20
|
-
const triggerId = useId();
|
|
21
|
-
const onOpenChange = useCallback((v) => setIsOpen(v), [setIsOpen]);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
const isGroupedData = (dataItem) => "templates" in dataItem;
|
|
24
|
-
if (isOpen) {
|
|
25
|
-
setIsDataLoading(true);
|
|
26
|
-
setIsGrouped(false);
|
|
27
|
-
loader().then((data) => {
|
|
28
|
-
if (isGroupedData(data.filter(item => item.id !== WEB_ITEM_ID)[0])) {
|
|
29
|
-
setIsGrouped(true);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
setIsGrouped(false);
|
|
33
|
-
}
|
|
34
|
-
setReports([...data]);
|
|
35
|
-
}).finally(() => {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
setIsDataLoading(false);
|
|
38
|
-
(_b = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
setReports([]);
|
|
43
|
-
}
|
|
44
|
-
}, [isOpen, loader]);
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
var _a, _b;
|
|
47
|
-
!isDataLoading && ((_b = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus());
|
|
48
|
-
}, [isDataLoading]);
|
|
49
|
-
return _jsx(Popup, { className: classNames(["zen-report-popup", className || ""]), onOpenChange: onOpenChange, trigger: _jsx(FilterButton, { id: triggerId, isActive: isOpen, children: "Report" }), children: isOpen && (isDataLoading ?
|
|
50
|
-
_jsx(Waiting, { hideOverlay: true, delay: 0, isLoading: isDataLoading }) :
|
|
51
|
-
_jsx(ReportPopupContent, { ref: ref, onPreparePDFClick: (id) => { onPreparePDFClick(id); setIsOpen(false); }, onReportClick: (id) => { onReportClick(id); setIsOpen(false); }, onViewInBrowserClick: (id) => { onViewInBrowserClick(id); setIsOpen(false); }, isGrouped: isGrouped, reports: reports })) });
|
|
52
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IReportPopupDataItem, IReportPopupGroupedDataItem } from "./reportPopup";
|
|
3
|
-
import "./reportPopupContent.less";
|
|
4
|
-
interface IReportPopupContent {
|
|
5
|
-
isGrouped?: boolean;
|
|
6
|
-
reports: IReportPopupDataItem[] | IReportPopupGroupedDataItem[];
|
|
7
|
-
onReportClick: (id: string) => void;
|
|
8
|
-
onViewInBrowserClick: (id: string) => void;
|
|
9
|
-
onPreparePDFClick: (id: string) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const ReportPopupContent: import("react").ForwardRefExoticComponent<IReportPopupContent & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useCallback } from "react";
|
|
3
|
-
import { ReportsItem } from "./reportsItem";
|
|
4
|
-
import { WEB_ITEM_ID } from "./reportPopup";
|
|
5
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
6
|
-
import { ButtonType } from "../button/buttonType";
|
|
7
|
-
import { Reports } from "./reports";
|
|
8
|
-
import { GroupedReportsItem } from "./groupedReportsItem";
|
|
9
|
-
import { Button } from "../button/button";
|
|
10
|
-
export const ReportPopupContent =
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
forwardRef(function ReportsContent({ isGrouped = false, reports, onPreparePDFClick, onReportClick, onViewInBrowserClick }, ref) {
|
|
13
|
-
const renderReportItem = useCallback((report) => _jsx(ReportsItem, { isActive: report.isActive, id: report.id, onReportClick: () => { onReportClick(report.id); }, onPreparePDFClick: () => { onPreparePDFClick(report.id); }, onViewInBrowserClick: () => { onViewInBrowserClick(report.id); }, label: report.label }, report.id), [onReportClick, onPreparePDFClick, onViewInBrowserClick]);
|
|
14
|
-
const renderWebButton = useCallback((item) => _jsx(Button, { onClick: () => { onReportClick(item.id); }, className: classNames(["zen-report-popup-content__header-button", item.isActive ? "zen-report-popup-content__header-button--active" : ""]), type: ButtonType.Secondary, children: item.label }, item.id), [onReportClick]);
|
|
15
|
-
const renderGroupedReports = useCallback((data) => data.map((item) => {
|
|
16
|
-
var _a;
|
|
17
|
-
return item.id === WEB_ITEM_ID ?
|
|
18
|
-
renderWebButton(item) :
|
|
19
|
-
_jsx(GroupedReportsItem, { label: item.label, children: _jsx(Reports, { children: (_a = item.templates) === null || _a === void 0 ? void 0 : _a.map((report) => renderReportItem(report)) }) }, item.id);
|
|
20
|
-
}), [renderReportItem, renderWebButton]);
|
|
21
|
-
const renderReports = useCallback((data) => {
|
|
22
|
-
var _a;
|
|
23
|
-
return _jsxs(_Fragment, { children: [((_a = data[0]) === null || _a === void 0 ? void 0 : _a.id) === WEB_ITEM_ID ? renderWebButton(data[0]) : "", _jsx(Reports, { children: data.filter(report => report.id !== WEB_ITEM_ID).map((report) => renderReportItem(report)) })] });
|
|
24
|
-
}, [renderReportItem, renderWebButton]);
|
|
25
|
-
return _jsx("div", { className: "zen-report-popup-content", ref: ref, children: isGrouped ? renderGroupedReports(reports) : renderReports(reports) });
|
|
26
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
2
|
-
import "./reports.less";
|
|
3
|
-
interface IReportProps extends IZenComponentProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Reports: ({ children }: IReportProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const TRANSLATIONS: string[];
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useLanguage } from "../utils/localization/useLanguage";
|
|
3
|
-
export const Reports = ({ children }) => {
|
|
4
|
-
const { translate } = useLanguage();
|
|
5
|
-
return _jsxs(_Fragment, { children: [_jsxs("div", { className: "zen-reports-header", children: [_jsx("span", { className: "reports-header__item", children: translate("Prepare for download") }), _jsx("span", { className: "reports-header__item", children: translate("More formats") })] }), children] });
|
|
6
|
-
};
|
|
7
|
-
export const TRANSLATIONS = ["Prepare for download", "More formats"];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./reportsItem.less";
|
|
2
|
-
interface IReportsItemProps {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
onReportClick: (reportId: string) => void;
|
|
6
|
-
onPreparePDFClick: (reportId: string) => void;
|
|
7
|
-
onViewInBrowserClick: (reportId: string) => void;
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const ReportsItem: ({ id, label, onPreparePDFClick, onViewInBrowserClick, onReportClick, isActive }: IReportsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const TRANSLATIONS: string[];
|
|
12
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../button/button";
|
|
3
|
-
import { Popup } from "../popup/popup";
|
|
4
|
-
import { SvgIconSize } from "../svgIcon/svgIconSize";
|
|
5
|
-
import { ButtonIconPosition, TextIconButton } from "../textIconButton/textIconButton";
|
|
6
|
-
import { ReportsItemFormats } from "./reportsItemFormats";
|
|
7
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
8
|
-
import { IconOptionsIcon } from "../icons/deprecated/iconOptionsIcon";
|
|
9
|
-
import { useLanguage } from "../utils/localization/useLanguage";
|
|
10
|
-
export const ReportsItem = ({ id, label, onPreparePDFClick, onViewInBrowserClick, onReportClick, isActive }) => {
|
|
11
|
-
const { translate } = useLanguage();
|
|
12
|
-
return _jsxs("div", { className: "zen-reports-item", children: [_jsxs(Button, { onClick: () => onReportClick(id), className: classNames(["zen-reports-item__label-button", isActive ? "zen-reports-item__label-button--active" : ""]), children: [_jsx("span", { className: "zen-reports-item__label-button-icon zenIcons_excel" }), label] }), _jsx(Popup, { alignment: "right-top", trigger: _jsx(TextIconButton, { iconPosition: ButtonIconPosition.End, icon: IconOptionsIcon, iconSize: SvgIconSize.Large, className: "zen-reports-item__more-icon-button", iconClasses: "zen-reports-item__more-icon", title: translate("Show report formats") }), children: _jsx(ReportsItemFormats, { reportId: id, onPreparePDFClick: onPreparePDFClick, onViewInBrowserClick: onViewInBrowserClick }) })] });
|
|
13
|
-
};
|
|
14
|
-
export const TRANSLATIONS = ["Show report formats"];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./reportsItemFormats.less";
|
|
3
|
-
interface IReportItemFormats {
|
|
4
|
-
reportId: string;
|
|
5
|
-
onPreparePDFClick: (reportId: string) => void;
|
|
6
|
-
onViewInBrowserClick: (reportId: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ReportsItemFormats: React.FC<IReportItemFormats>;
|
|
9
|
-
export declare const TRANSLATIONS: string[];
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../button/button";
|
|
3
|
-
import { ButtonIconPosition, TextIconButton } from "../textIconButton/textIconButton";
|
|
4
|
-
import { IconLoupe } from "../icons/deprecated/iconLoupe";
|
|
5
|
-
import { useLanguage } from "../utils/localization/useLanguage";
|
|
6
|
-
export const ReportsItemFormats = ({ reportId, onPreparePDFClick, onViewInBrowserClick }) => {
|
|
7
|
-
const { translate } = useLanguage();
|
|
8
|
-
return _jsxs("div", { className: "zen-report-items-formats", children: [_jsxs(Button, { onClick: () => onPreparePDFClick(reportId), className: "zen-report-items-formats__button", children: [_jsx("span", { className: "zen-report-items-formats__icon zenIcons_pdf" }), translate("Prepare PDF")] }), _jsx(TextIconButton, { onClick: () => onViewInBrowserClick(reportId), className: "zen-report-items-formats__button", icon: IconLoupe, iconPosition: ButtonIconPosition.Start, children: translate("View in Browser") })] });
|
|
9
|
-
};
|
|
10
|
-
export const TRANSLATIONS = ["Prepare PDF", "View in Browser"];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TIconId } from "../static/icons/icons";
|
|
2
|
-
export interface ITreeList {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
parent?: ITreeList;
|
|
7
|
-
icon?: TIconId;
|
|
8
|
-
children?: ITreeList[];
|
|
9
|
-
path?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function searchTree(element: ITreeList, elementId: string): ITreeList | null;
|
|
12
|
-
export declare function addParentLinks(tree: ITreeList[], parent: ITreeList | undefined): void;
|
|
13
|
-
export declare function removeCheckedProp(tree: ITreeList[]): void;
|
|
14
|
-
export declare const getChildren: (tree: ITreeList[], result?: string[]) => string[];
|
|
15
|
-
export declare const getParents: (node: ITreeList, result?: string[]) => string[];
|
|
16
|
-
export declare const getItemsWithChildren: (tree: ITreeList[], ids: string[], result?: string[]) => string[];
|
|
17
|
-
export declare const allInSuffix = "allIn";
|
|
18
|
-
export declare const getAdditionalNavigation: (id: string, translate: (s: string) => string) => ITreeList[];
|
|
19
|
-
export declare const addAdditionalNavigation: (tree: ITreeList[], translate: (s: string) => string, path?: string) => void;
|
|
20
|
-
export declare const TRANSLATIONS: string[];
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export function searchTree(element, elementId) {
|
|
2
|
-
let node = null;
|
|
3
|
-
if (element.id === elementId) {
|
|
4
|
-
return element;
|
|
5
|
-
}
|
|
6
|
-
if (element.children) {
|
|
7
|
-
for (let i = 0; i < element.children.length; i++) {
|
|
8
|
-
node = node ? node : searchTree(element.children[i], elementId);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return node;
|
|
12
|
-
}
|
|
13
|
-
export function addParentLinks(tree, parent) {
|
|
14
|
-
for (const node of tree) {
|
|
15
|
-
if (!node.parent) {
|
|
16
|
-
node.parent = parent;
|
|
17
|
-
}
|
|
18
|
-
if (node.children) {
|
|
19
|
-
addParentLinks(node.children, node);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export function removeCheckedProp(tree) {
|
|
24
|
-
for (const node of tree) {
|
|
25
|
-
node.checked = false;
|
|
26
|
-
if (node.children) {
|
|
27
|
-
removeCheckedProp(node.children);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export const getChildren = (tree, result = []) => {
|
|
32
|
-
for (const node of tree) {
|
|
33
|
-
result.push(node.id);
|
|
34
|
-
if (node.children) {
|
|
35
|
-
getChildren(node.children, result);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
export const getParents = (node, result = []) => {
|
|
41
|
-
if (node.parent) {
|
|
42
|
-
result.push(node.parent.id);
|
|
43
|
-
getParents(node.parent, result);
|
|
44
|
-
}
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
export const getItemsWithChildren = (tree, ids, result = []) => {
|
|
48
|
-
for (const node of tree) {
|
|
49
|
-
if (ids.some(id => id === node.id) && node.children && node.children.length !== 0) {
|
|
50
|
-
result.push(node.id);
|
|
51
|
-
}
|
|
52
|
-
node.children && getItemsWithChildren(node.children, result);
|
|
53
|
-
}
|
|
54
|
-
return result;
|
|
55
|
-
};
|
|
56
|
-
export const allInSuffix = "allIn";
|
|
57
|
-
export const getAdditionalNavigation = (id, translate) => [{
|
|
58
|
-
id: `levelUp${id || ""}`,
|
|
59
|
-
icon: "zen-lvl-up",
|
|
60
|
-
path: `${translate("Go back to")} ${id}`,
|
|
61
|
-
name: translate("Level up")
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: `${allInSuffix}${id || ""}`,
|
|
65
|
-
icon: "zen-circle-ok",
|
|
66
|
-
path: `${translate("All in")} ${id}`,
|
|
67
|
-
name: `${translate("All in")} ${id || ""}`
|
|
68
|
-
}];
|
|
69
|
-
export const addAdditionalNavigation = (tree, translate, path) => {
|
|
70
|
-
for (const node of tree) {
|
|
71
|
-
if (node.children && node.children.length && node.children[0].id.indexOf("levelUp") === -1) {
|
|
72
|
-
node.children = [...getAdditionalNavigation(node.id || "", translate), ...node.children];
|
|
73
|
-
addAdditionalNavigation(node.children, translate, `${path ? "/" + path : path || ""}/${node.id}`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
export const TRANSLATIONS = [
|
|
78
|
-
"All in", "Go back to", "Level up"
|
|
79
|
-
];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./searchableField.less";
|
|
3
|
-
export interface ISearchableField {
|
|
4
|
-
inputId?: string;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated
|
|
7
|
-
* @param translate - will be removed in the next major release
|
|
8
|
-
*/
|
|
9
|
-
translate?: (s: string) => string;
|
|
10
|
-
onChange: (e: string) => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
openSearch?: boolean;
|
|
13
|
-
title?: string;
|
|
14
|
-
value: string;
|
|
15
|
-
width?: number;
|
|
16
|
-
onOpenSearch: () => void;
|
|
17
|
-
onFocus?: () => void;
|
|
18
|
-
onBlur?: () => void;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
ariaAutocomplete?: "none" | "inline" | "list" | "both";
|
|
21
|
-
ariaControls: string;
|
|
22
|
-
ariaOwns: string;
|
|
23
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
24
|
-
triggerRef?: React.RefObject<HTMLButtonElement>;
|
|
25
|
-
fullWidth?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare const SearchableField: React.FC<ISearchableField>;
|
|
28
|
-
export declare const TRANSLATIONS: string[];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
3
|
-
import { IconCrossThin } from "../icons/deprecated/iconCrossThin";
|
|
4
|
-
import { IconArrowDown } from "../icons/deprecated/iconArrowDown";
|
|
5
|
-
import { useLanguage } from "../utils/localization/useLanguage";
|
|
6
|
-
export const SearchableField = ({ openSearch, inputId, title, placeholder, value, width, disabled, ariaControls, onOpenSearch, ariaAutocomplete, ariaOwns, inputRef, onFocus, onBlur, onChange, triggerRef, fullWidth }) => {
|
|
7
|
-
const { translate } = useLanguage();
|
|
8
|
-
const clearSearch = () => {
|
|
9
|
-
var _a;
|
|
10
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
11
|
-
onChange("");
|
|
12
|
-
};
|
|
13
|
-
const handleChange = (e) => {
|
|
14
|
-
onChange(e.target.value);
|
|
15
|
-
};
|
|
16
|
-
const searchInputClass = classNames([
|
|
17
|
-
"zen-searchable-field__input",
|
|
18
|
-
value ? "zen-searchable-field__input--short" : "",
|
|
19
|
-
fullWidth ? "zen-searchable-field__input--full-width" : ""
|
|
20
|
-
]);
|
|
21
|
-
const inputStyle = width ? { width: `${width}px` } : undefined;
|
|
22
|
-
const openButtonClasses = `zen-searchable-field__field zen-searchable-field__button zen-searchable-field__button--small`;
|
|
23
|
-
return _jsxs("div", { "data-popup-id": ariaControls, id: ariaOwns, className: classNames(["zen-searchable-field", fullWidth ? "zen-searchable-field--full-width" : ""]), children: [_jsxs("div", { className: classNames(["zen-searchable-field__field", "zen-searchable-field__search", fullWidth ? "zen-searchable-field__field--full-width" : ""]), children: [_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 && _jsx("button", { type: "button", tabIndex: -1, "aria-hidden": "true", className: "zen-searchable-field__close-button", title: translate("Clear search"), onClick: clearSearch, disabled: disabled, children: _jsx(IconCrossThin, { size: "small" }) })] }), _jsx("button", { ref: triggerRef, type: "button", tabIndex: -1, className: openButtonClasses, title: title || translate("Open search"), disabled: disabled, onClick: onOpenSearch, children: _jsx(IconArrowDown, { className: openSearch ? "zen-searchable-field__arrow-icon--up" : "", size: "micro" }) })] });
|
|
24
|
-
};
|
|
25
|
-
export const TRANSLATIONS = [
|
|
26
|
-
"Search", "Clear search", "Open search"
|
|
27
|
-
];
|
|
@@ -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;
|