@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,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;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const availableIcons = {
|
|
3
|
-
"zen-checkmark": {
|
|
4
|
-
viewBox: "0 0 16 14",
|
|
5
|
-
svg: _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" })
|
|
6
|
-
},
|
|
7
|
-
"zen-info-circled": {
|
|
8
|
-
viewBox: "0 0 32 32",
|
|
9
|
-
// eslint-disable-next-line max-len
|
|
10
|
-
svg: _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" })
|
|
11
|
-
},
|
|
12
|
-
"zen-info-circle-tooltip": {
|
|
13
|
-
viewBox: "0 0 16 16",
|
|
14
|
-
svg: _jsxs(_Fragment, { children: [_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" }), _jsx("path", { d: "M7.667 5.333a.333.333 0 11.666 0 .333.333 0 01-.667 0Z" }), _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" })] })
|
|
15
|
-
},
|
|
16
|
-
"zen-error-new": {
|
|
17
|
-
viewBox: "0 0 24 24",
|
|
18
|
-
// eslint-disable-next-line max-len
|
|
19
|
-
svg: _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" })
|
|
20
|
-
},
|
|
21
|
-
"zen-success-new": {
|
|
22
|
-
viewBox: "0 0 16 16",
|
|
23
|
-
// eslint-disable-next-line max-len
|
|
24
|
-
svg: _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" })
|
|
25
|
-
},
|
|
26
|
-
"zen-warning-new": {
|
|
27
|
-
viewBox: "0 0 24 24",
|
|
28
|
-
// eslint-disable-next-line max-len
|
|
29
|
-
svg: _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" })
|
|
30
|
-
},
|
|
31
|
-
"zen-report-error": {
|
|
32
|
-
viewBox: "0 0 16 16",
|
|
33
|
-
// eslint-disable-next-line max-len
|
|
34
|
-
svg: _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" })
|
|
35
|
-
},
|
|
36
|
-
"zen-error": {
|
|
37
|
-
viewBox: "0 0 12 12",
|
|
38
|
-
// eslint-disable-next-line max-len
|
|
39
|
-
svg: _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" })
|
|
40
|
-
},
|
|
41
|
-
"zen-minus-icon": {
|
|
42
|
-
viewBox: "0 0 16 16",
|
|
43
|
-
svg: _jsx("rect", { width: "16", height: "3", y: "6.5", rx: "1" })
|
|
44
|
-
},
|
|
45
|
-
"zen-loupe": {
|
|
46
|
-
viewBox: "0 0 32 32",
|
|
47
|
-
svg: _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" })
|
|
48
|
-
},
|
|
49
|
-
"zen-globe": {
|
|
50
|
-
viewBox: "0 0 16 16",
|
|
51
|
-
svg: _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" })
|
|
52
|
-
},
|
|
53
|
-
"zen-circle-ok": {
|
|
54
|
-
viewBox: "0 0 32 32",
|
|
55
|
-
svg: _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" })
|
|
56
|
-
},
|
|
57
|
-
"zen-lvl-up": {
|
|
58
|
-
viewBox: "0 0 18 32",
|
|
59
|
-
svg: _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" })
|
|
60
|
-
},
|
|
61
|
-
"zen-arrow-top": {
|
|
62
|
-
viewBox: "0 0 12 12",
|
|
63
|
-
svg: _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" })
|
|
64
|
-
},
|
|
65
|
-
"zen-arrow-bottom": {
|
|
66
|
-
viewBox: "0 0 12 12",
|
|
67
|
-
svg: _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" })
|
|
68
|
-
},
|
|
69
|
-
"zen-calendar": {
|
|
70
|
-
viewBox: "0 0 24 24",
|
|
71
|
-
svg: _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" })
|
|
72
|
-
}
|
|
73
|
-
};
|
package/esm/svgIcon/svgIcon.d.ts
DELETED
|
@@ -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/esm/svgIcon/svgIcon.js
DELETED
|
@@ -1,16 +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 { useUniqueId } from "../commonHelpers/useUniqueId";
|
|
5
|
-
/**
|
|
6
|
-
@deprecated - will be removed in future releases
|
|
7
|
-
*/
|
|
8
|
-
export const SvgIcon = ({ iconId, className, size, title, description, focusable = false }) => {
|
|
9
|
-
const classes = React.useMemo(() => classNames([
|
|
10
|
-
"zen-icon",
|
|
11
|
-
(size ? `zen-icon--${size}` : ""),
|
|
12
|
-
className !== null && className !== void 0 ? className : ""
|
|
13
|
-
]), [size, className]);
|
|
14
|
-
const uniqueId = useUniqueId();
|
|
15
|
-
return _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 ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("use", { xlinkHref: `#${iconId}`, "data-id": "" })] });
|
|
16
|
-
};
|
|
File without changes
|
|
File without changes
|