@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,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "./sidePanel.less";
|
|
3
2
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
3
|
+
import { RefObject } from "react";
|
|
4
4
|
import { ISidePanelCell } from "./sidePanelCell/sidePanelCell";
|
|
5
5
|
interface ISidePanelComponents {
|
|
6
6
|
Cell: React.FC<ISidePanelCell>;
|
|
@@ -16,7 +16,7 @@ export declare const CUSTOM_POPUP_COMPONENT_CLASSNAME = "zen-custom-component-po
|
|
|
16
16
|
export interface ISidePanel extends IZenComponentProps {
|
|
17
17
|
panelPosition?: TPanelPosition;
|
|
18
18
|
id?: string;
|
|
19
|
-
triggerRef:
|
|
19
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
20
20
|
isOpen: boolean;
|
|
21
21
|
label: string;
|
|
22
22
|
useTrapFocusWithTrigger?: boolean;
|
|
@@ -3,7 +3,7 @@ import "./sidePanelCell.less";
|
|
|
3
3
|
import { IZenComponentProps } from "../../commonHelpers/zenComponent";
|
|
4
4
|
export interface ISidePanelCell extends IZenComponentProps {
|
|
5
5
|
title: string;
|
|
6
|
-
footer?: JSX.Element;
|
|
6
|
+
footer?: React.JSX.Element;
|
|
7
7
|
withoutSidePaddings?: boolean;
|
|
8
8
|
role?: string;
|
|
9
9
|
labelledBy?: string;
|
|
@@ -9,11 +9,6 @@ export declare enum SortDirections {
|
|
|
9
9
|
export interface ISortControl extends IZenComponentProps {
|
|
10
10
|
id?: string;
|
|
11
11
|
buttonText?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @param translate - will be removed in the next major release
|
|
15
|
-
*/
|
|
16
|
-
translate?: (s: string) => string;
|
|
17
12
|
disabled?: boolean;
|
|
18
13
|
sortDirection?: SortDirections;
|
|
19
14
|
directionIcon?: boolean;
|
package/esm/stepper/stepper.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { TFormFieldComponentProps } from "../formField/formField";
|
|
3
2
|
import { IStepperRaw } from "../stepperRaw/stepperRaw";
|
|
4
3
|
type TFormInput = TFormFieldComponentProps<IStepperRaw>;
|
|
5
4
|
export interface IStepperInput extends Omit<TFormInput, "counter" | "maxLength"> {
|
|
6
5
|
}
|
|
7
|
-
export declare const Stepper:
|
|
6
|
+
export declare const Stepper: {
|
|
7
|
+
({ value, ...props }: TFormInput): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
8
10
|
export {};
|
package/esm/stepper/stepper.js
CHANGED
|
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import React from "react";
|
|
14
13
|
import { FormField } from "../formField/formField";
|
|
15
14
|
import { StepperRaw } from "../stepperRaw/stepperRaw";
|
|
16
15
|
const FormInput = FormField(StepperRaw);
|
|
17
|
-
export const Stepper =
|
|
16
|
+
export const Stepper = (_a) => {
|
|
18
17
|
var { value } = _a, props = __rest(_a, ["value"]);
|
|
19
|
-
return _jsx(FormInput, Object.assign({}, props, {
|
|
20
|
-
}
|
|
18
|
+
return _jsx(FormInput, Object.assign({}, props, { value: value }));
|
|
19
|
+
};
|
|
21
20
|
Stepper.displayName = "Stepper";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { IZenIdComponentProps } from "../commonHelpers/zenComponent";
|
|
3
3
|
import "./stepperRaw.less";
|
|
4
4
|
export interface IStepperRaw extends Partial<Omit<IZenIdComponentProps, "children">> {
|
|
@@ -14,8 +14,9 @@ export interface IStepperRaw extends Partial<Omit<IZenIdComponentProps, "childre
|
|
|
14
14
|
readonly?: boolean;
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
ariaLabel?: string;
|
|
17
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
17
18
|
}
|
|
18
19
|
export declare const INPUT_DEFAULT_WIDTH = 47;
|
|
19
20
|
export declare const INPUT_DEFAULT_WIDTH_DRIVE = 56;
|
|
20
|
-
export declare const StepperRaw:
|
|
21
|
+
export declare const StepperRaw: ({ min, max, step, width, disabled, readonly, value, isError, onChange, placeholder, className, maxLength, id, ariaLabel, ref }: IStepperRaw) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export declare const TRANSLATIONS: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useRef } from "react";
|
|
3
3
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
4
|
import { IconChevronDownSmall } from "../icons/iconChevronDownSmall";
|
|
5
5
|
import { ButtonIconPosition, TextIconButton } from "../textIconButton/textIconButton";
|
|
@@ -17,9 +17,7 @@ import { onBeforeInput } from "./utils/onBeforeInput";
|
|
|
17
17
|
// according to design
|
|
18
18
|
export const INPUT_DEFAULT_WIDTH = 47;
|
|
19
19
|
export const INPUT_DEFAULT_WIDTH_DRIVE = 56;
|
|
20
|
-
export const StepperRaw =
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
22
|
-
function InnerStepper({ min = -Infinity, max = +Infinity, step = 1, width, disabled = false, readonly = false, value = "", isError, onChange, placeholder = "", className = "", maxLength, id, ariaLabel }, ref) {
|
|
20
|
+
export const StepperRaw = ({ min = -Infinity, max = +Infinity, step = 1, width, disabled = false, readonly = false, value = "", isError, onChange, placeholder = "", className = "", maxLength, id, ariaLabel, ref }) => {
|
|
23
21
|
const driveComponentClass = useDriveClassName("zen-stepper-field");
|
|
24
22
|
const driveInputClass = useDriveClassName("zen-text-input");
|
|
25
23
|
const isDrive = useDrive();
|
|
@@ -51,7 +49,7 @@ function InnerStepper({ min = -Infinity, max = +Infinity, step = 1, width, disab
|
|
|
51
49
|
onChange(String(getDecreasedValue(validValue, validStep, min)));
|
|
52
50
|
(_a = currRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
53
51
|
}, "aria-label": translate("Decrease value") })] })] }) });
|
|
54
|
-
}
|
|
52
|
+
};
|
|
55
53
|
export const TRANSLATIONS = [
|
|
56
54
|
"Decrease value",
|
|
57
55
|
"Increase value"
|
package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
1
|
import { ISelectableRowsListSelections } from "../../../dataGrid/withSelectableRows/withSelectableRows";
|
|
2
|
+
import { RefObject } from "react";
|
|
3
3
|
interface IEntitiesListActionProps {
|
|
4
4
|
selectionQty: number;
|
|
5
5
|
pageSize: number;
|
|
@@ -7,12 +7,7 @@ interface IEntitiesListActionProps {
|
|
|
7
7
|
totalPage?: number;
|
|
8
8
|
fullScreen?: boolean;
|
|
9
9
|
selections: ISelectableRowsListSelections | undefined;
|
|
10
|
-
columnListButtonRef: RefObject<HTMLButtonElement>;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* @param translate - will be removed in the next major release
|
|
14
|
-
*/
|
|
15
|
-
translate?: (key: string) => string;
|
|
10
|
+
columnListButtonRef: RefObject<HTMLButtonElement | null>;
|
|
16
11
|
onClearSelection: () => void;
|
|
17
12
|
onBulkDelete: (selections?: ISelectableRowsListSelections) => void;
|
|
18
13
|
onBulkArchive: (selections?: ISelectableRowsListSelections) => void;
|
|
@@ -28,11 +28,6 @@ export interface ISummaryTile extends IZenComponentProps, IZenGridItem {
|
|
|
28
28
|
tooltipText?: React.ReactNode;
|
|
29
29
|
tooltipAlignment?: TAlignment;
|
|
30
30
|
tooltipSize?: TooltipSize;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated
|
|
33
|
-
* @param translate - will be removed in the next major release
|
|
34
|
-
*/
|
|
35
|
-
translate?: (s: string) => string;
|
|
36
31
|
}
|
|
37
32
|
export declare const SummaryTileDisplayName = "SummaryTile";
|
|
38
33
|
export declare const SummaryTile: React.FC<ISummaryTile>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IIcon } from "../icons/icon";
|
|
3
|
+
import { RefObject } from "react";
|
|
3
4
|
export interface ISummaryTileTrigger {
|
|
4
5
|
icon: React.FC<IIcon>;
|
|
6
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
5
7
|
}
|
|
6
|
-
export declare const SummaryTileTrigger:
|
|
8
|
+
export declare const SummaryTileTrigger: ({ icon, ref, ...restProps }: ISummaryTileTrigger) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,10 +11,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from "react";
|
|
14
|
-
export const SummaryTileTrigger =
|
|
15
|
-
var { icon } = _a, restProps = __rest(_a, ["icon"]);
|
|
14
|
+
export const SummaryTileTrigger = (_a) => {
|
|
15
|
+
var { icon, ref } = _a, restProps = __rest(_a, ["icon", "ref"]);
|
|
16
16
|
return _jsx("div", Object.assign({ className: "zen-summary-tile__trigger", ref: ref }, restProps, { children: React.createElement(icon, {
|
|
17
17
|
className: "zen-summary-tile__title-icon",
|
|
18
18
|
size: "large"
|
|
19
19
|
}) }));
|
|
20
|
-
}
|
|
20
|
+
};
|
|
@@ -3,9 +3,9 @@ import { IEntityWithId } from "../../commonHelpers/entity";
|
|
|
3
3
|
interface IActionsMenuProps<T extends object> {
|
|
4
4
|
entity: T;
|
|
5
5
|
isNested: boolean;
|
|
6
|
-
render?: (entity: T, isNested: boolean) => JSX.Element;
|
|
7
|
-
renderAsync?: (entity: T, isNested: boolean) => PromiseLike<JSX.Element>;
|
|
8
|
-
primaryActions?: JSX.Element;
|
|
6
|
+
render?: (entity: T, isNested: boolean) => React.JSX.Element;
|
|
7
|
+
renderAsync?: (entity: T, isNested: boolean) => PromiseLike<React.JSX.Element>;
|
|
8
|
+
primaryActions?: React.JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export declare const ActionsMenu: <T extends IEntityWithId>({ entity, isNested, render, renderAsync, primaryActions }: IActionsMenuProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IActionWithId } from "../../dataGrid/columns/actionsColumn/actionsColumn";
|
|
3
2
|
import { IListColumn } from "../table";
|
|
4
3
|
import { IRowEntity } from "../../dataGrid/row/row";
|
|
@@ -10,7 +9,7 @@ export declare const useActions: <T extends IRowEntity<N>, N extends IEntityWith
|
|
|
10
9
|
primaryActions?: undefined;
|
|
11
10
|
} | {
|
|
12
11
|
columnsWithActions: IListColumn<T, N>[];
|
|
13
|
-
actions: IActionWithId<T> | ((entity: T, isNested: boolean) => JSX.Element) | undefined;
|
|
14
|
-
actionsAsync: ((entity: T, isNested: boolean) => PromiseLike<JSX.Element>) | undefined;
|
|
12
|
+
actions: IActionWithId<T> | ((entity: T, isNested: boolean) => React.JSX.Element) | undefined;
|
|
13
|
+
actionsAsync: ((entity: T, isNested: boolean) => PromiseLike<React.JSX.Element>) | undefined;
|
|
15
14
|
primaryActions: IActionWithId<T>[] | ((entity: T, isNested: boolean) => IActionWithId<T>[]) | undefined;
|
|
16
15
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
export declare const useTableChildren: (children: ReactNode, isMobile: boolean, selected: number, allSelected: boolean, clearSelection: () => void, selectAll: () => void, turnOffSelectAll?: boolean, gridRef?:
|
|
3
|
-
bulkActions: ReactElement<
|
|
4
|
-
pagination: ReactElement<
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
+
export declare const useTableChildren: (children: ReactNode, isMobile: boolean, selected: number, allSelected: boolean, clearSelection: () => void, selectAll: () => void, turnOffSelectAll?: boolean, gridRef?: RefObject<HTMLElement | null>) => {
|
|
3
|
+
bulkActions: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
4
|
+
pagination: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
5
5
|
activePage: number | undefined;
|
|
6
|
-
fullscreenButton: ReactElement<
|
|
7
|
-
emptyList: ReactElement<
|
|
8
|
-
footer: ReactElement<
|
|
6
|
+
fullscreenButton: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
7
|
+
emptyList: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
8
|
+
footer: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
9
9
|
other: ReactNode[];
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Children, createElement, useMemo } from "react";
|
|
2
|
+
import { Children, createElement, isValidElement, useMemo } from "react";
|
|
3
3
|
import { DeviceType } from "../../commonHelpers/hooks/deviceType";
|
|
4
4
|
import { BulkActions } from "../../dataGrid/withSelectableRows/components/bulkActions/bulkActions";
|
|
5
5
|
import { TableBulkActions } from "./tableBulkActions";
|
|
@@ -12,36 +12,37 @@ import { TableEmpty } from "./tableEmpty";
|
|
|
12
12
|
import { EmptySearchList } from "../../dataGrid/emptySearchList/emptySearchList";
|
|
13
13
|
import { EmptyList, Footer } from "../../dataGrid/dataGrid";
|
|
14
14
|
import { TableFooter } from "./tableFooter";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (!child.type) {
|
|
15
|
+
const isChildElement = function (child, expectedType) {
|
|
16
|
+
if (!isValidElement(child) || !child.type) {
|
|
18
17
|
return false;
|
|
19
18
|
}
|
|
20
|
-
|
|
19
|
+
if ((typeof child.type === "object" || typeof child.type === "function") && "displayName" in child.type) {
|
|
20
|
+
return child.type.displayName === expectedType;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
21
23
|
};
|
|
22
24
|
export const useTableChildren = (children, isMobile, selected, allSelected, clearSelection, selectAll, turnOffSelectAll, gridRef) => useMemo(() => {
|
|
23
25
|
let bulkActions = undefined;
|
|
24
26
|
let tablePagination = undefined;
|
|
25
|
-
let activePage;
|
|
27
|
+
let activePage = undefined;
|
|
26
28
|
let tableFullscreen = undefined;
|
|
27
29
|
let emptyList = undefined;
|
|
28
30
|
let footer = undefined;
|
|
29
31
|
const other = [];
|
|
30
32
|
Children.forEach(children, child => {
|
|
31
|
-
var _a;
|
|
32
33
|
if (!child) {
|
|
33
34
|
return;
|
|
34
35
|
}
|
|
35
36
|
if (isChildElement(child, TableBulkActions.displayName)) {
|
|
36
|
-
const bulkActionButtons =
|
|
37
|
+
const bulkActionButtons = child.props.children || [];
|
|
37
38
|
bulkActions = _jsx(BulkActions, { gridType: isMobile ? DeviceType.Mobile : DeviceType.Desktop, selected: selected, allSelected: allSelected, onClearSelection: clearSelection, onSelectAll: selectAll, turnOffSelectAll: turnOffSelectAll, children: bulkActionButtons });
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
if (isChildElement(child, TablePagination.displayName)) {
|
|
41
42
|
tablePagination = createElement(Pagination, {
|
|
42
43
|
activePage: child.props.activePage,
|
|
43
|
-
total: child.props.total,
|
|
44
|
-
perPage: child.props.perPage,
|
|
44
|
+
total: child.props.total || 0,
|
|
45
|
+
perPage: child.props.perPage || 10,
|
|
45
46
|
onChange: child.props.onChange,
|
|
46
47
|
type: PaginationType.Compact,
|
|
47
48
|
includeText: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { IColumnSettings } from "./interfaces";
|
|
3
3
|
import { IListColumn } from "../table";
|
|
4
4
|
import "./columnsPopup.less";
|
|
@@ -11,7 +11,7 @@ interface IColumnsPopupProps<T extends IRowEntity<N>, N extends IEntityWithId> {
|
|
|
11
11
|
onChange: (newSettings: IColumnSettings[]) => void;
|
|
12
12
|
sortGroups?: (groupA: string, groupB: string) => number;
|
|
13
13
|
sortColumns?: (groupA: string, groupB: string) => number;
|
|
14
|
-
triggerRef:
|
|
14
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
15
15
|
}
|
|
16
16
|
export declare const ColumnsPopup: <T extends IRowEntity<N>, N extends IEntityWithId>({ onReset, onChange, columnSettings, columns, sortGroups, sortColumns, triggerRef }: IColumnsPopupProps<T, N>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -14,7 +14,7 @@ export interface IFlexibleColumnsOptions {
|
|
|
14
14
|
sortColumns?: (groupA: string, groupB: string) => number;
|
|
15
15
|
}
|
|
16
16
|
export declare const getColumnSettings: (pageName: string, defaultValue?: IColumnSettings[] | undefined) => import("./columnSettingsStorage").IColumnSettings[] | undefined;
|
|
17
|
-
export declare const useFlexibleColumns: <T extends IRowEntity<N>, N extends IEntityWithId>(columns: IListColumn<T, N>[], flexible: IFlexibleColumnsOptions | undefined, gridRef: RefObject<HTMLElement>, columnsPopupRef: RefObject<HTMLElement> | undefined, isFeed: boolean) => {
|
|
17
|
+
export declare const useFlexibleColumns: <T extends IRowEntity<N>, N extends IEntityWithId>(columns: IListColumn<T, N>[], flexible: IFlexibleColumnsOptions | undefined, gridRef: RefObject<HTMLElement | null>, columnsPopupRef: RefObject<HTMLElement | null> | undefined, isFeed: boolean) => {
|
|
18
18
|
flexibleColumns: IListColumn<T, N>[];
|
|
19
19
|
columnsPopup: import("react/jsx-runtime").JSX.Element | null;
|
|
20
20
|
};
|
|
@@ -32,8 +32,10 @@ const NestedDataInt = ({ entities, children, expandedRows, useChildrenDataHook,
|
|
|
32
32
|
}
|
|
33
33
|
return entity;
|
|
34
34
|
}), [entities, expandedRows, maxHooks, hookResults]);
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
35
36
|
const table = useMemo(() => cloneElement(children, {
|
|
36
37
|
entities: entitiesWithChildren
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
39
|
}), [children, entitiesWithChildren]);
|
|
38
40
|
return _jsx(_Fragment, { children: table });
|
|
39
41
|
};
|
|
@@ -17,4 +17,4 @@ export interface ITextIconButton extends IButton {
|
|
|
17
17
|
tabIndex?: number;
|
|
18
18
|
role?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare const TextIconButton:
|
|
20
|
+
export declare const TextIconButton: ({ icon, iconClasses, iconPosition, iconSize, children, className, contentClasses, ref, ...restProps }: ITextIconButton) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,8 +21,8 @@ export const ButtonIconPosition = {
|
|
|
21
21
|
End: "end"
|
|
22
22
|
};
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24
|
-
export const TextIconButton =
|
|
25
|
-
var { icon, iconClasses, iconPosition = ButtonIconPosition.Start, iconSize, children, className, contentClasses } = _a, restProps = __rest(_a, ["icon", "iconClasses", "iconPosition", "iconSize", "children", "className", "contentClasses"]);
|
|
24
|
+
export const TextIconButton = (_a) => {
|
|
25
|
+
var { icon, iconClasses, iconPosition = ButtonIconPosition.Start, iconSize, children, className, contentClasses, ref } = _a, restProps = __rest(_a, ["icon", "iconClasses", "iconPosition", "iconSize", "children", "className", "contentClasses", "ref"]);
|
|
26
26
|
const isDrive = useDrive();
|
|
27
27
|
const defaultIconSize = isDrive ? SvgIconSize.Huge : SvgIconSize.Large;
|
|
28
28
|
const isMobile = useMobile();
|
|
@@ -39,4 +39,4 @@ export const TextIconButton = React.forwardRef(function TextIcon(_a, ref) {
|
|
|
39
39
|
}), [icon, buttonIconSize, svgIconClasses]);
|
|
40
40
|
const isStartIconPosition = iconPosition === ButtonIconPosition.Start;
|
|
41
41
|
return _jsxs(Button, Object.assign({ ref: ref, className: buttonExtraClasses }, restProps, { children: [isStartIconPosition ? svgIcon : null, children && _jsx("span", { className: classNames(["zen-caption__content", contentClasses !== null && contentClasses !== void 0 ? contentClasses : ""]), children: children }), !isStartIconPosition ? svgIcon : null] }));
|
|
42
|
-
}
|
|
42
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { TFormFieldComponentProps } from "../formField/formField";
|
|
3
3
|
import { ITextInputRaw } from "../textInputRaw/textInputRaw";
|
|
4
4
|
type TFormInput = TFormFieldComponentProps<ITextInputRaw>;
|
|
5
|
-
export interface ITextInput extends Omit<TFormInput, "counter"> {
|
|
5
|
+
export interface ITextInput extends Omit<TFormInput, "counter" | "ref"> {
|
|
6
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
6
7
|
}
|
|
7
|
-
export declare const TextInput:
|
|
8
|
+
export declare const TextInput: {
|
|
9
|
+
({ maxLength, ...props }: ITextInput): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
8
12
|
export {};
|
|
@@ -10,15 +10,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
13
|
import { FormField } from "../formField/formField";
|
|
15
14
|
import { TextInputRaw } from "../textInputRaw/textInputRaw";
|
|
16
15
|
const FormInput = FormField(TextInputRaw);
|
|
17
|
-
export const TextInput =
|
|
16
|
+
export const TextInput = (_a) => {
|
|
18
17
|
var { maxLength } = _a, props = __rest(_a, ["maxLength"]);
|
|
19
18
|
const normalizedMaxLength = maxLength && Math.max(maxLength, 1);
|
|
20
|
-
return _jsx(FormInput, Object.assign({}, props, {
|
|
19
|
+
return _jsx(FormInput, Object.assign({}, props, { maxLength: maxLength, counter: normalizedMaxLength
|
|
21
20
|
? `${Math.min((props.value).length, normalizedMaxLength)}/${normalizedMaxLength}`
|
|
22
21
|
: undefined }));
|
|
23
|
-
}
|
|
22
|
+
};
|
|
24
23
|
TextInput.displayName = "TextInput";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "./textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
+
import { RefObject } from "react";
|
|
4
5
|
export interface ITextInputRaw extends IZenComponentProps {
|
|
5
6
|
id?: string;
|
|
6
7
|
value: string;
|
|
@@ -19,5 +20,6 @@ export interface ITextInputRaw extends IZenComponentProps {
|
|
|
19
20
|
ariaLabelledby?: string;
|
|
20
21
|
ariaLabel?: string;
|
|
21
22
|
autoFocus?: boolean;
|
|
23
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
22
24
|
}
|
|
23
|
-
export declare const TextInputRaw:
|
|
25
|
+
export declare const TextInputRaw: (props: ITextInputRaw) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
3
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
5
|
-
export const TextInputRaw =
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
React.forwardRef(function InnerInput(props, ref) {
|
|
4
|
+
export const TextInputRaw = (props) => {
|
|
8
5
|
const driveComponentClass = useDriveClassName("zen-text-input");
|
|
9
|
-
return _jsx("input", { id: props.id, ref: ref, type: props.type || "text", className: classNames([
|
|
6
|
+
return _jsx("input", { id: props.id, ref: props.ref, type: props.type || "text", className: classNames([
|
|
10
7
|
"zen-text-input",
|
|
11
8
|
driveComponentClass || "",
|
|
12
9
|
props.className || "",
|
|
13
10
|
props.isError ? "zen-text-input--error" : ""
|
|
14
11
|
]), value: props.maxLength ? props.value.substring(0, props.maxLength) : props.value, placeholder: props.placeholder, disabled: props.disabled, onChange: props.onChange, onKeyDown: props.onKeyDown, onBlur: props.onBlur, onFocus: props.onFocus, maxLength: props.maxLength, autoComplete: props.autocomplete, min: props.min, max: props.max, "aria-labelledby": props.ariaLabelledby, "aria-label": props.ariaLabel, autoFocus: props.autoFocus });
|
|
15
|
-
}
|
|
12
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { TFormFieldComponentProps } from "../formField/formField";
|
|
3
2
|
import { ITextareaRaw } from "../textareaRaw/textareaRaw";
|
|
4
3
|
type TFormTextareaInput = TFormFieldComponentProps<ITextareaRaw>;
|
|
5
4
|
export interface ITextarea extends Omit<TFormTextareaInput, "counter"> {
|
|
6
5
|
}
|
|
7
|
-
export declare const Textarea:
|
|
6
|
+
export declare const Textarea: {
|
|
7
|
+
({ maxLength, ...props }: TFormTextareaInput): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
8
10
|
export {};
|
package/esm/textarea/textarea.js
CHANGED
|
@@ -10,15 +10,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
13
|
import { FormField } from "../formField/formField";
|
|
15
14
|
import { TextareaRaw } from "../textareaRaw/textareaRaw";
|
|
16
15
|
const FormTextareaInput = FormField(TextareaRaw);
|
|
17
|
-
export const Textarea =
|
|
16
|
+
export const Textarea = (_a) => {
|
|
18
17
|
var { maxLength } = _a, props = __rest(_a, ["maxLength"]);
|
|
19
18
|
const normalizedMaxLength = maxLength && Math.max(maxLength, 1);
|
|
20
|
-
return _jsx(FormTextareaInput, Object.assign({}, props, {
|
|
19
|
+
return _jsx(FormTextareaInput, Object.assign({}, props, { maxLength: maxLength, counter: normalizedMaxLength
|
|
21
20
|
? `${Math.min((props.value).length, normalizedMaxLength)}/${normalizedMaxLength}`
|
|
22
21
|
: undefined }));
|
|
23
|
-
}
|
|
22
|
+
};
|
|
24
23
|
Textarea.displayName = "Textarea";
|
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import "../textInputRaw/textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
import "./textareaRaw.less";
|
|
5
|
+
import { RefObject } from "react";
|
|
5
6
|
export interface ITextareaRaw extends IZenComponentProps {
|
|
6
7
|
id?: string;
|
|
7
8
|
value: string;
|
|
@@ -18,5 +19,9 @@ export interface ITextareaRaw extends IZenComponentProps {
|
|
|
18
19
|
ariaLabel?: string;
|
|
19
20
|
resize?: boolean;
|
|
20
21
|
readonly?: boolean;
|
|
22
|
+
ref?: RefObject<HTMLTextAreaElement | null>;
|
|
21
23
|
}
|
|
22
|
-
export declare const TextareaRaw:
|
|
24
|
+
export declare const TextareaRaw: {
|
|
25
|
+
({ id, rows, maxLength, className, value, resize, readonly, placeholder, disabled, isError, ariaLabel, ariaLabelledby, onChange, onKeyDown, onFocus, onBlur, ref }: ITextareaRaw): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
3
|
import { useDriveClassName } from "../utils/theme/useDriveClassName";
|
|
5
|
-
export const TextareaRaw =
|
|
4
|
+
export const TextareaRaw = ({ id, rows = 6, maxLength, className = "", value, resize = true, readonly = false, placeholder, disabled, isError, ariaLabel, ariaLabelledby, onChange, onKeyDown, onFocus, onBlur, ref }) => {
|
|
6
5
|
const driveComponentClass = useDriveClassName("zen-text-input");
|
|
7
6
|
return _jsx("textarea", { ref: ref, id: id, rows: rows, maxLength: maxLength, className: classNames([
|
|
8
7
|
"zen-textarea",
|
|
@@ -12,5 +11,5 @@ export const TextareaRaw = React.forwardRef(({ id, rows = 6, maxLength, classNam
|
|
|
12
11
|
isError ? "zen-text-input--error" : "",
|
|
13
12
|
className
|
|
14
13
|
]), value: maxLength ? value.substring(0, maxLength) : value, placeholder: placeholder, disabled: disabled, onChange: onChange, onKeyDown: onKeyDown, onFocus: onFocus, readOnly: readonly, onBlur: onBlur, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel });
|
|
15
|
-
}
|
|
14
|
+
};
|
|
16
15
|
TextareaRaw.displayName = "TextAreaInput";
|
|
@@ -6,11 +6,6 @@ export interface ITimePicker extends IZenComponentProps {
|
|
|
6
6
|
value?: Date;
|
|
7
7
|
fullWidth?: boolean;
|
|
8
8
|
onChange: (date: Date) => void;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
* @param translate - will be removed in the next major release
|
|
12
|
-
*/
|
|
13
|
-
translate?: (key: string) => string;
|
|
14
9
|
isMobileView?: boolean;
|
|
15
10
|
dataTimeId?: string;
|
|
16
11
|
error?: string;
|
|
@@ -24,16 +24,21 @@ export const useToast = () => {
|
|
|
24
24
|
return {
|
|
25
25
|
id: generatedId,
|
|
26
26
|
hideToast: () => {
|
|
27
|
-
targetEvent.current.dispatchEvent(new CustomEvent("hideToast", { detail: { id: generatedId } }));
|
|
27
|
+
targetEvent.current && targetEvent.current.dispatchEvent(new CustomEvent("hideToast", { detail: { id: generatedId } }));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}, [setToasts, targetEvent]);
|
|
31
31
|
useWarning({ mode, name: "toasts" });
|
|
32
32
|
useEffect(() => {
|
|
33
33
|
const callback = (event) => hideToastCallback(event, hideToast);
|
|
34
|
-
targetEvent.current
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if (!targetEvent.current) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
const currentTarget = targetEvent.current;
|
|
38
|
+
currentTarget.addEventListener("hideToast", callback);
|
|
39
|
+
return () => {
|
|
40
|
+
currentTarget.removeEventListener("hideToast", callback);
|
|
41
|
+
};
|
|
37
42
|
}, [hideToast, isAPIMode, targetEvent]);
|
|
38
43
|
const shownToasts = useMemo(() => toasts.map((item) => _createElement(Toast, Object.assign({}, item, { onClose: () => hideToast(item.id), key: item.id, isOpen: true }))), [toasts, hideToast]);
|
|
39
44
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { IToastItem } from "../../feedbackContainer/types";
|
|
3
3
|
export interface IUseToast {
|
|
4
4
|
toasts: IToastItem[];
|
|
5
5
|
setToasts: React.Dispatch<React.SetStateAction<IToastItem[]>>;
|
|
6
|
-
targetEvent:
|
|
6
|
+
targetEvent: RefObject<EventTarget | null>;
|
|
7
7
|
}
|
|
8
8
|
export declare const useToastState: () => IUseToast;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "./toastRaw.less";
|
|
3
2
|
import { IZenComponentProps } from "./../commonHelpers/zenComponent";
|
|
3
|
+
import { ReactNode, RefObject } from "react";
|
|
4
4
|
import { TAnimationType } from "../feedbackContainer/types";
|
|
5
5
|
import { IIcon } from "../icons/icon";
|
|
6
6
|
import { TButtonIconPosition } from "../textIconButton/textIconButton";
|
|
@@ -17,11 +17,12 @@ export interface IToastRaw extends IZenComponentProps {
|
|
|
17
17
|
id: string;
|
|
18
18
|
onClose: () => void;
|
|
19
19
|
isOpen: boolean;
|
|
20
|
-
header:
|
|
20
|
+
header: ReactNode;
|
|
21
21
|
showSeconds?: number;
|
|
22
22
|
hasIcon?: boolean;
|
|
23
23
|
type?: TToastType;
|
|
24
24
|
animation?: TAnimationType;
|
|
25
25
|
action?: IAction;
|
|
26
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
26
27
|
}
|
|
27
|
-
export declare const ToastRaw:
|
|
28
|
+
export declare const ToastRaw: ({ isOpen, onClose, animation, type, hasIcon, header, id, action, showSeconds, ref }: IToastRaw) => import("react/jsx-runtime").JSX.Element;
|
package/esm/toastRaw/toastRaw.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { ToastAnimation } from "./components/toastAnimation";
|
|
3
3
|
import { IconCheckRadio } from "../icons/iconCheckRadio";
|
|
4
4
|
import { IconInfoCircle } from "../icons/iconInfoCircle";
|
|
5
|
-
import { createElement,
|
|
5
|
+
import { createElement, useCallback, useContext, useMemo } from "react";
|
|
6
6
|
import { useDrive } from "../utils/theme/useDrive";
|
|
7
7
|
import { Button } from "../button/button";
|
|
8
8
|
import { IconClose } from "../icons/iconClose";
|
|
@@ -17,9 +17,7 @@ const typedIcons = {
|
|
|
17
17
|
info: IconInfoCircle
|
|
18
18
|
};
|
|
19
19
|
const getIcon = (t) => typedIcons[t];
|
|
20
|
-
export const ToastRaw =
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
22
|
-
function ToastRawInner({ isOpen, onClose, animation, type, hasIcon = true, header, id, action, showSeconds = MIN_SECONDS_TO_SHOW }, ref) {
|
|
20
|
+
export const ToastRaw = ({ isOpen, onClose, animation, type, hasIcon = true, header, id, action, showSeconds = MIN_SECONDS_TO_SHOW, ref }) => {
|
|
23
21
|
const isDrive = useDrive();
|
|
24
22
|
const isMobile = useMobile();
|
|
25
23
|
const { dark } = useContext(themeContext);
|
|
@@ -46,4 +44,4 @@ function ToastRawInner({ isOpen, onClose, animation, type, hasIcon = true, heade
|
|
|
46
44
|
size: isDrive ? "huge" : "large",
|
|
47
45
|
className: `zen-toast__icon--${type || "info"}`
|
|
48
46
|
}), _jsx("div", { className: classNames(["zen-toast__header", `zen-toast__header--${type || "info"}`]), children: header })] }), _jsxs("div", { className: contentEndClasses, children: [actionButton, _jsx("button", { type: "button", className: classNames(["zen-toast__close-button", `zen-toast__close-button--${type || "info"}`]), onClick: onClose, title: translate("Close"), "aria-label": translate("Close"), children: _jsx(IconClose, { size: isDrive ? "huge" : "large" }) })] })] })] }) });
|
|
49
|
-
}
|
|
47
|
+
};
|
|
@@ -7,6 +7,6 @@ export interface IToggleButton extends IZenComponentProps {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
title?: string;
|
|
9
9
|
isReverted?: boolean;
|
|
10
|
-
onChange?: (
|
|
10
|
+
onChange?: (checked: boolean) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare const ToggleButton: React.FC<IToggleButton>;
|