@geotab/zenith 2.0.0-beta.2 → 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 +75 -1
- package/dist/absolute/absolute.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.js +9 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/dist/alert/hooks/useAlertState.d.ts +1 -1
- package/dist/alertRaw/alertRaw.d.ts +4 -2
- package/dist/alertRaw/alertRaw.js +3 -4
- package/dist/banner/banner.d.ts +0 -15
- package/dist/banner/bannerUtils.d.ts +0 -2
- package/dist/banner/bannerUtils.js +1 -0
- package/dist/betaPill/betaPill.d.ts +0 -5
- package/dist/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/dist/button/button.d.ts +6 -1
- package/dist/button/button.js +4 -27
- package/dist/calendar/calendar.d.ts +0 -5
- package/dist/card/card.d.ts +4 -7
- package/dist/card/card.js +7 -4
- package/dist/card/components/status.d.ts +0 -5
- package/dist/card/components/title.d.ts +2 -0
- package/dist/card/components/title.js +11 -6
- package/dist/card/hooks/useCardSize.d.ts +2 -1
- package/dist/cardContainer/cardContainer.d.ts +3 -2
- package/dist/cardContainer/cardContainer.js +3 -4
- package/dist/chart/lineChart/useChartTicks.d.ts +1 -1
- package/dist/chart/lineChart/useSummary.d.ts +1 -1
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/dist/chip/utils/useChip.d.ts +1 -1
- package/dist/columnsSelector/columnsSelector.d.ts +0 -5
- package/dist/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/dist/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/dist/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/dist/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/dist/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/dist/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/dist/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/dist/commonHelpers/ref.d.ts +2 -0
- package/dist/controlledPopup/controlledPopup.d.ts +2 -2
- package/dist/dataFeed/dataFeed.d.ts +2 -2
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.js +3 -3
- package/dist/dataGrid/cell/cell.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -3
- package/dist/dataGrid/columns/basicColumn.d.ts +1 -1
- package/dist/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +2 -2
- package/dist/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/dist/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/dist/dataGrid/dataGrid.d.ts +1 -1
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/dist/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/dist/dataGrid/withActions/withActions.d.ts +6 -2
- package/dist/dataGrid/withActions/withActions.js +18 -16
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +123 -121
- package/dist/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/dist/dataGrid/withLoading/withLoading.js +34 -32
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.js +38 -36
- package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +165 -163
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/dist/dataGrid/withSortableColumns/withSortableColumns.js +3 -3
- package/dist/dateInput/dateInput.d.ts +0 -4
- package/dist/dateInputInner/dateInputInner.d.ts +0 -5
- package/dist/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/dist/dateInputInner/dateInputInnerControlBlock.js +4 -8
- package/dist/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dropdown/dropdown.d.ts +0 -5
- package/dist/dropdown/dropdownList.d.ts +1 -6
- package/dist/dropdown/dropdownPopup.d.ts +4 -4
- package/dist/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/dist/dropdown/dropdownSearchableTrigger.js +5 -27
- package/dist/dropdown/dropdownTrigger.d.ts +2 -7
- package/dist/feedbackContainer/feedbackContext.d.ts +3 -3
- package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/dist/filterButton/filterButton.d.ts +3 -2
- package/dist/filterButton/filterButton.js +4 -4
- package/dist/filters/components/filtersContainer.js +8 -4
- package/dist/filters/components/filtersDateRange.d.ts +1 -2
- package/dist/filters/components/filtersDropdown.d.ts +1 -1
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSearch.d.ts +6 -2
- package/dist/filters/components/filtersSearch.js +3 -2
- package/dist/filters/filters.js +20 -11
- package/dist/filters/filtersHelper.d.ts +1 -1
- package/dist/filters/filtersHelper.js +20 -14
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/dist/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/dist/filtersBar/filtersBar.d.ts +0 -5
- package/dist/filtersBar/filtersBar.js +3 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/dist/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/dist/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/dist/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/dist/filtersBar/utils/isCustomElementValid.js +7 -1
- package/dist/formField/formField.d.ts +6 -3
- package/dist/formField/formField.js +5 -9
- package/dist/formStepper/components/formStep.d.ts +2 -1
- package/dist/formStepper/components/formStep.js +3 -2
- package/dist/formStepper/components/formStepRaw.d.ts +2 -2
- package/dist/formStepper/components/formStepRaw.js +6 -4
- package/dist/formStepper/formStepper.d.ts +4 -1
- package/dist/formStepper/formStepper.js +20 -7
- package/dist/formStepper/utils/getOnClick.d.ts +1 -1
- package/dist/formStepper/utils/getOnClick.js +1 -1
- package/dist/formStepper/utils/getTabIndex.d.ts +1 -1
- package/dist/formStepper/utils/getTabIndex.js +4 -1
- package/dist/formStepperButtons/formStepperButtons.js +3 -2
- package/dist/gridLayout/hooks/useStretch.d.ts +1 -1
- package/dist/gridLayout/hooks/useStretch.js +3 -2
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsFilter.d.ts +1 -16
- package/dist/groupsFilter/groupsFilter.js +6 -6
- package/dist/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/dist/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterInitialState.js +1 -3
- package/dist/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/dist/groupsFilter/groupsFilterTrigger.js +5 -27
- package/dist/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +3 -3
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +3 -6
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/dist/header/header.d.ts +0 -10
- package/dist/header/header.js +15 -2
- package/dist/header/headerHelpers.d.ts +3 -3
- package/dist/header/headerHelpers.js +20 -16
- package/dist/header/hooks/useNonFittingElements.d.ts +1 -1
- package/dist/headerTitle/headerTitle.d.ts +0 -5
- package/dist/index.css +313 -933
- package/dist/index.d.ts +2 -9
- package/dist/index.js +15 -30
- package/dist/inputAdornments/inputAdornments.d.ts +6 -2
- package/dist/inputAdornments/inputAdornments.js +3 -26
- package/dist/layout/layout.js +1 -1
- package/dist/layout/layoutSummaryTiles.d.ts +3 -3
- package/dist/layout/layoutSummaryTiles.js +3 -2
- package/dist/list/hooks/useLazyLoading.d.ts +2 -1
- package/dist/list/hooks/useVirtualScroll.d.ts +2 -2
- package/dist/list/list.js +1 -0
- package/dist/menu/components/menuButton.d.ts +3 -2
- package/dist/menu/components/menuButton.js +3 -4
- package/dist/menu/components/menuItem.d.ts +1 -0
- package/dist/menu/components/menuItem.js +32 -7
- package/dist/menu/components/menuSeparator.d.ts +2 -1
- package/dist/menu/components/menuSeparator.js +15 -1
- package/dist/menu/controlledMenu.d.ts +1 -1
- package/dist/menu/controlledMenu.js +11 -10
- package/dist/menu/menu.d.ts +1 -1
- package/dist/menu/menu.js +3 -1
- package/dist/menu/utils/findContent.js +4 -3
- package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/dist/miniTabs/miniTabsHelper.d.ts +1 -1
- package/dist/miniTabs/miniTabsHelper.js +55 -10
- package/dist/mobileSheet/mobileSheet.d.ts +0 -5
- package/dist/mobileSheet/mobileSheet.js +4 -4
- package/dist/modal/modal.js +3 -0
- package/dist/nav/nav.js +2 -1
- package/dist/nav/navHeader/navHeader.js +4 -1
- package/dist/nav/utils/navUtils.d.ts +1 -1
- package/dist/nav/utils/navUtils.js +6 -7
- package/dist/notification/notification.d.ts +3 -2
- package/dist/notification/notification.js +3 -4
- package/dist/oldPill/pill.d.ts +3 -2
- package/dist/oldPill/pill.js +4 -27
- package/dist/pageHeader/pageHeaderActions.js +1 -1
- package/dist/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/dist/pageHeader/pageHeaderHelpers.js +3 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.js +3 -26
- package/dist/pagination/pagination.d.ts +2 -7
- package/dist/pagination/paginationText/paginationText.d.ts +0 -5
- package/dist/parallelSelection/parallelSelection.d.ts +4 -3
- package/dist/parallelSelection/parallelSelection.js +5 -27
- package/dist/pillBox/components/pillBoxItem.d.ts +0 -5
- package/dist/pillBox/pillBox.d.ts +0 -5
- package/dist/pillExpandable/pillExpandable.js +4 -2
- package/dist/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/dist/pillExpandable/pillExpandableSimple.js +3 -2
- package/dist/popup/popup.d.ts +2 -2
- package/dist/popup/popup.js +3 -1
- package/dist/primaryIcon/renderIcon.d.ts +1 -1
- package/dist/radio/radio.d.ts +3 -2
- package/dist/radio/radio.js +4 -3
- package/dist/radioGroup/radioGroup.js +1 -1
- package/dist/range/rangeField.d.ts +2 -2
- package/dist/react-chartjs/chart.js +1 -1
- package/dist/react-chartjs/types.d.ts +2 -2
- package/dist/searchInput/searchInput.d.ts +4 -2
- package/dist/searchInput/searchInput.js +4 -7
- package/dist/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/dist/searchInputRaw/searchInputRaw.js +3 -2
- package/dist/searchList/searchList.d.ts +0 -22
- package/dist/searchList/searchList.js +0 -157
- package/dist/select/select.d.ts +4 -4
- package/dist/selectField/selectField.d.ts +4 -4
- package/dist/selectList/selectList.js +2 -2
- package/dist/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/dist/selectRaw/selectRaw.d.ts +6 -7
- package/dist/selectRaw/selectRaw.js +5 -4
- package/dist/sidePanel/sidePanel.d.ts +2 -2
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/dist/sortControl/sortControl.d.ts +0 -5
- package/dist/stepper/stepper.d.ts +4 -2
- package/dist/stepper/stepper.js +4 -7
- package/dist/stepperRaw/stepperRaw.d.ts +3 -2
- package/dist/stepperRaw/stepperRaw.js +3 -4
- package/dist/summaryTile/summaryTile.d.ts +0 -5
- package/dist/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/dist/summaryTile/summaryTileTrigger.js +4 -3
- package/dist/table/actions/actionsMenu.d.ts +3 -3
- package/dist/table/actions/useActions.d.ts +2 -3
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/children/useTableChildren.js +10 -9
- package/dist/table/flexible/columnsPopup.d.ts +2 -2
- package/dist/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/dist/table/nested/nestedData.js +2 -0
- package/dist/textIconButton/textIconButton.d.ts +1 -1
- package/dist/textIconButton/textIconButton.js +4 -3
- package/dist/textInput/textInput.d.ts +7 -3
- package/dist/textInput/textInput.js +4 -27
- package/dist/textInputRaw/textInputRaw.d.ts +3 -1
- package/dist/textInputRaw/textInputRaw.js +4 -29
- package/dist/textarea/textarea.d.ts +4 -2
- package/dist/textarea/textarea.js +4 -27
- package/dist/textareaRaw/textareaRaw.d.ts +6 -1
- package/dist/textareaRaw/textareaRaw.js +3 -26
- package/dist/timePicker/timePicker.d.ts +0 -5
- package/dist/toast/hooks/useToast.js +9 -4
- package/dist/toast/hooks/useToastState.d.ts +2 -2
- package/dist/toastRaw/toastRaw.d.ts +4 -3
- package/dist/toastRaw/toastRaw.js +3 -4
- package/dist/toggleButton/toggleButton.d.ts +1 -1
- package/dist/toggleButton/toggleButton.js +2 -1
- package/dist/toolbar/toolbarContent.d.ts +3 -2
- package/dist/toolbar/toolbarContent.js +8 -5
- package/dist/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/dist/tooltip/tooltip.d.ts +2 -7
- package/dist/tooltip/tooltip.js +12 -7
- package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/dist/utils/positioningUtils/calculatePosition.js +21 -9
- package/dist/utils/useNodeText.d.ts +2 -1
- package/esm/absolute/absolute.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.js +9 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/esm/alert/hooks/useAlertState.d.ts +1 -1
- package/esm/alertRaw/alertRaw.d.ts +4 -2
- package/esm/alertRaw/alertRaw.js +3 -5
- package/esm/banner/banner.d.ts +0 -15
- package/esm/banner/bannerUtils.d.ts +0 -2
- package/esm/banner/bannerUtils.js +1 -0
- package/esm/betaPill/betaPill.d.ts +0 -5
- package/esm/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/esm/button/button.d.ts +6 -1
- package/esm/button/button.js +3 -4
- package/esm/calendar/calendar.d.ts +0 -5
- package/esm/card/card.d.ts +4 -7
- package/esm/card/card.js +7 -4
- package/esm/card/components/status.d.ts +0 -5
- package/esm/card/components/title.d.ts +2 -0
- package/esm/card/components/title.js +12 -7
- package/esm/card/hooks/useCardSize.d.ts +2 -1
- package/esm/cardContainer/cardContainer.d.ts +3 -2
- package/esm/cardContainer/cardContainer.js +3 -5
- package/esm/chart/lineChart/useChartTicks.d.ts +1 -1
- package/esm/chart/lineChart/useSummary.d.ts +1 -1
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/esm/chip/utils/useChip.d.ts +1 -1
- package/esm/columnsSelector/columnsSelector.d.ts +0 -5
- package/esm/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/esm/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/esm/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/esm/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/esm/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/esm/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/esm/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/esm/commonHelpers/ref.d.ts +2 -0
- package/esm/controlledPopup/controlledPopup.d.ts +2 -2
- package/esm/dataFeed/dataFeed.d.ts +2 -2
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.js +2 -3
- package/esm/dataGrid/cell/cell.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/esm/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -4
- package/esm/dataGrid/columns/basicColumn.d.ts +1 -1
- package/esm/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +3 -3
- package/esm/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/esm/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/esm/dataGrid/dataGrid.d.ts +1 -1
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/esm/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/esm/dataGrid/withActions/withActions.d.ts +6 -2
- package/esm/dataGrid/withActions/withActions.js +19 -17
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +124 -122
- package/esm/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/esm/dataGrid/withLoading/withLoading.js +35 -33
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.js +39 -37
- package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +166 -164
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/esm/dataGrid/withSortableColumns/withSortableColumns.js +4 -4
- package/esm/dateInput/dateInput.d.ts +0 -4
- package/esm/dateInputInner/dateInputInner.d.ts +0 -5
- package/esm/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/esm/dateInputInner/dateInputInnerControlBlock.js +3 -5
- package/esm/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/esm/dialog/dialogContent.js +1 -1
- package/esm/dropdown/dropdown.d.ts +0 -5
- package/esm/dropdown/dropdownList.d.ts +1 -6
- package/esm/dropdown/dropdownPopup.d.ts +4 -4
- package/esm/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/esm/dropdown/dropdownSearchableTrigger.js +4 -4
- package/esm/dropdown/dropdownTrigger.d.ts +2 -7
- package/esm/feedbackContainer/feedbackContext.d.ts +3 -3
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/esm/filterButton/filterButton.d.ts +3 -2
- package/esm/filterButton/filterButton.js +4 -5
- package/esm/filters/components/filtersContainer.js +8 -4
- package/esm/filters/components/filtersDateRange.d.ts +1 -2
- package/esm/filters/components/filtersDropdown.d.ts +1 -1
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSearch.d.ts +6 -2
- package/esm/filters/components/filtersSearch.js +2 -2
- package/esm/filters/filters.js +20 -11
- package/esm/filters/filtersHelper.d.ts +1 -1
- package/esm/filters/filtersHelper.js +20 -14
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/esm/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/esm/filtersBar/filtersBar.d.ts +0 -5
- package/esm/filtersBar/filtersBar.js +3 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/esm/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/esm/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/esm/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/esm/filtersBar/utils/isCustomElementValid.js +7 -1
- package/esm/formField/formField.d.ts +6 -3
- package/esm/formField/formField.js +5 -6
- package/esm/formStepper/components/formStep.d.ts +2 -1
- package/esm/formStepper/components/formStep.js +3 -2
- package/esm/formStepper/components/formStepRaw.d.ts +2 -2
- package/esm/formStepper/components/formStepRaw.js +6 -4
- package/esm/formStepper/formStepper.d.ts +4 -1
- package/esm/formStepper/formStepper.js +19 -6
- package/esm/formStepper/utils/getOnClick.d.ts +1 -1
- package/esm/formStepper/utils/getOnClick.js +1 -1
- package/esm/formStepper/utils/getTabIndex.d.ts +1 -1
- package/esm/formStepper/utils/getTabIndex.js +4 -1
- package/esm/formStepperButtons/formStepperButtons.js +3 -2
- package/esm/gridLayout/hooks/useStretch.d.ts +1 -1
- package/esm/gridLayout/hooks/useStretch.js +3 -2
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsFilter.d.ts +1 -16
- package/esm/groupsFilter/groupsFilter.js +6 -6
- package/esm/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/esm/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterInitialState.js +1 -3
- package/esm/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/esm/groupsFilter/groupsFilterTrigger.js +4 -4
- package/esm/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +4 -4
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +2 -3
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/esm/header/header.d.ts +0 -10
- package/esm/header/header.js +15 -2
- package/esm/header/headerHelpers.d.ts +3 -3
- package/esm/header/headerHelpers.js +20 -16
- package/esm/header/hooks/useNonFittingElements.d.ts +1 -1
- package/esm/headerTitle/headerTitle.d.ts +0 -5
- package/esm/index.d.ts +2 -9
- package/esm/index.js +1 -9
- package/esm/inputAdornments/inputAdornments.d.ts +6 -2
- package/esm/inputAdornments/inputAdornments.js +2 -3
- package/esm/layout/layout.js +1 -1
- package/esm/layout/layoutSummaryTiles.d.ts +3 -3
- package/esm/layout/layoutSummaryTiles.js +3 -3
- package/esm/list/hooks/useLazyLoading.d.ts +2 -1
- package/esm/list/hooks/useVirtualScroll.d.ts +2 -2
- package/esm/list/list.js +1 -0
- package/esm/menu/components/menuButton.d.ts +3 -2
- package/esm/menu/components/menuButton.js +3 -5
- package/esm/menu/components/menuItem.d.ts +1 -0
- package/esm/menu/components/menuItem.js +31 -7
- package/esm/menu/components/menuSeparator.d.ts +2 -1
- package/esm/menu/components/menuSeparator.js +13 -0
- package/esm/menu/controlledMenu.d.ts +1 -1
- package/esm/menu/controlledMenu.js +13 -12
- package/esm/menu/menu.d.ts +1 -1
- package/esm/menu/menu.js +3 -1
- package/esm/menu/utils/findContent.js +4 -3
- package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/esm/miniTabs/miniTabsHelper.d.ts +1 -1
- package/esm/miniTabs/miniTabsHelper.js +33 -8
- package/esm/mobileSheet/mobileSheet.d.ts +0 -5
- package/esm/mobileSheet/mobileSheet.js +5 -5
- package/esm/modal/modal.js +3 -0
- package/esm/nav/nav.js +2 -1
- package/esm/nav/navHeader/navHeader.js +4 -1
- package/esm/nav/utils/navUtils.d.ts +1 -1
- package/esm/nav/utils/navUtils.js +7 -8
- package/esm/notification/notification.d.ts +3 -2
- package/esm/notification/notification.js +3 -5
- package/esm/oldPill/pill.d.ts +3 -2
- package/esm/oldPill/pill.js +3 -4
- package/esm/pageHeader/pageHeaderActions.js +3 -3
- package/esm/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/esm/pageHeader/pageHeaderHelpers.js +3 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.js +2 -3
- package/esm/pagination/pagination.d.ts +2 -7
- package/esm/pagination/paginationText/paginationText.d.ts +0 -5
- package/esm/parallelSelection/parallelSelection.d.ts +4 -3
- package/esm/parallelSelection/parallelSelection.js +4 -4
- package/esm/pillBox/components/pillBoxItem.d.ts +0 -5
- package/esm/pillBox/pillBox.d.ts +0 -5
- package/esm/pillExpandable/pillExpandable.js +4 -2
- package/esm/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/esm/pillExpandable/pillExpandableSimple.js +3 -3
- package/esm/popup/popup.d.ts +2 -2
- package/esm/popup/popup.js +3 -1
- package/esm/primaryIcon/renderIcon.d.ts +1 -1
- package/esm/radio/radio.d.ts +3 -2
- package/esm/radio/radio.js +3 -3
- package/esm/radioGroup/radioGroup.js +1 -1
- package/esm/range/rangeField.d.ts +2 -2
- package/esm/react-chartjs/chart.js +1 -1
- package/esm/react-chartjs/types.d.ts +2 -2
- package/esm/searchInput/searchInput.d.ts +4 -2
- package/esm/searchInput/searchInput.js +3 -4
- package/esm/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/esm/searchInputRaw/searchInputRaw.js +2 -2
- package/esm/searchList/searchList.d.ts +0 -22
- package/esm/searchList/searchList.js +1 -154
- package/esm/select/select.d.ts +4 -4
- package/esm/selectField/selectField.d.ts +4 -4
- package/esm/selectList/selectList.js +3 -3
- package/esm/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/esm/selectRaw/selectRaw.d.ts +6 -7
- package/esm/selectRaw/selectRaw.js +5 -5
- package/esm/sidePanel/sidePanel.d.ts +2 -2
- package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/esm/sortControl/sortControl.d.ts +0 -5
- package/esm/stepper/stepper.d.ts +4 -2
- package/esm/stepper/stepper.js +3 -4
- package/esm/stepperRaw/stepperRaw.d.ts +3 -2
- package/esm/stepperRaw/stepperRaw.js +3 -5
- package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.d.ts +2 -7
- package/esm/summaryTile/summaryTile.d.ts +0 -5
- package/esm/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/esm/summaryTile/summaryTileTrigger.js +3 -3
- package/esm/table/actions/actionsMenu.d.ts +3 -3
- package/esm/table/actions/useActions.d.ts +2 -3
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/children/useTableChildren.js +11 -10
- package/esm/table/flexible/columnsPopup.d.ts +2 -2
- package/esm/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/esm/table/nested/nestedData.js +2 -0
- package/esm/textIconButton/textIconButton.d.ts +1 -1
- package/esm/textIconButton/textIconButton.js +3 -3
- package/esm/textInput/textInput.d.ts +7 -3
- package/esm/textInput/textInput.js +3 -4
- package/esm/textInputRaw/textInputRaw.d.ts +3 -1
- package/esm/textInputRaw/textInputRaw.js +3 -6
- package/esm/textarea/textarea.d.ts +4 -2
- package/esm/textarea/textarea.js +3 -4
- package/esm/textareaRaw/textareaRaw.d.ts +6 -1
- package/esm/textareaRaw/textareaRaw.js +2 -3
- package/esm/timePicker/timePicker.d.ts +0 -5
- package/esm/toast/hooks/useToast.js +9 -4
- package/esm/toast/hooks/useToastState.d.ts +2 -2
- package/esm/toastRaw/toastRaw.d.ts +4 -3
- package/esm/toastRaw/toastRaw.js +3 -5
- package/esm/toggleButton/toggleButton.d.ts +1 -1
- package/esm/toggleButton/toggleButton.js +3 -2
- package/esm/toolbar/toolbarContent.d.ts +3 -2
- package/esm/toolbar/toolbarContent.js +8 -6
- package/esm/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/esm/tooltip/tooltip.d.ts +2 -7
- package/esm/tooltip/tooltip.js +12 -7
- package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/esm/utils/positioningUtils/calculatePosition.js +21 -9
- package/esm/utils/useNodeText.d.ts +2 -1
- package/package.json +13 -13
- package/dist/bottomSection/bottomSection.d.ts +0 -13
- package/dist/bottomSection/bottomSection.js +0 -48
- package/dist/bottomSection/bottomSectionType.d.ts +0 -4
- package/dist/bottomSection/bottomSectionType.js +0 -8
- package/dist/comboList/comboList.d.ts +0 -24
- package/dist/comboList/comboList.js +0 -30
- package/dist/comboList/comboListHook.d.ts +0 -4
- package/dist/comboList/comboListHook.js +0 -14
- package/dist/combobox/combobox.d.ts +0 -27
- package/dist/combobox/combobox.js +0 -190
- package/dist/combobox/comboboxNavigation.d.ts +0 -3
- package/dist/combobox/comboboxNavigation.js +0 -26
- package/dist/commonHelpers/translatable.d.ts +0 -11
- package/dist/dropdownOld/dropdownOld.d.ts +0 -17
- package/dist/dropdownOld/dropdownOld.js +0 -54
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -10
- package/dist/icons/deprecated/iconActivity.d.ts +0 -7
- package/dist/icons/deprecated/iconActivity.js +0 -20
- package/dist/icons/deprecated/iconArchive.d.ts +0 -7
- package/dist/icons/deprecated/iconArchive.js +0 -20
- package/dist/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowBottom.js +0 -20
- package/dist/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowDown.js +0 -20
- package/dist/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowTop.js +0 -20
- package/dist/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/dist/icons/deprecated/iconAssetInactive.js +0 -20
- package/dist/icons/deprecated/iconBookmark.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmark.js +0 -20
- package/dist/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmarkFill.js +0 -20
- package/dist/icons/deprecated/iconCalendar.d.ts +0 -7
- package/dist/icons/deprecated/iconCalendar.js +0 -20
- package/dist/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronDownSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronLeftSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronRightSmall.js +0 -20
- package/dist/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/dist/icons/deprecated/iconCircleOk.js +0 -20
- package/dist/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/dist/icons/deprecated/iconCogSettings.js +0 -20
- package/dist/icons/deprecated/iconConditions.d.ts +0 -7
- package/dist/icons/deprecated/iconConditions.js +0 -20
- package/dist/icons/deprecated/iconDelete.d.ts +0 -7
- package/dist/icons/deprecated/iconDelete.js +0 -20
- package/dist/icons/deprecated/iconDownload.d.ts +0 -7
- package/dist/icons/deprecated/iconDownload.js +0 -20
- package/dist/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/dist/icons/deprecated/iconDragAndDrop.js +0 -20
- package/dist/icons/deprecated/iconEdit.d.ts +0 -7
- package/dist/icons/deprecated/iconEdit.js +0 -20
- package/dist/icons/deprecated/iconError.d.ts +0 -7
- package/dist/icons/deprecated/iconError.js +0 -20
- package/dist/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/dist/icons/deprecated/iconErrorNew.js +0 -20
- package/dist/icons/deprecated/iconExclude.d.ts +0 -7
- package/dist/icons/deprecated/iconExclude.js +0 -20
- package/dist/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/dist/icons/deprecated/iconFilterOutline.js +0 -20
- package/dist/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/dist/icons/deprecated/iconFolderNew.js +0 -20
- package/dist/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/dist/icons/deprecated/iconFullscreen.js +0 -20
- package/dist/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/dist/icons/deprecated/iconInfoCircled.js +0 -20
- package/dist/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/dist/icons/deprecated/iconLeftBracketLg.js +0 -20
- package/dist/icons/deprecated/iconLocation.d.ts +0 -7
- package/dist/icons/deprecated/iconLocation.js +0 -20
- package/dist/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/dist/icons/deprecated/iconLocationPin.js +0 -20
- package/dist/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/dist/icons/deprecated/iconLvlUp.js +0 -20
- package/dist/icons/deprecated/iconMap.d.ts +0 -7
- package/dist/icons/deprecated/iconMap.js +0 -20
- package/dist/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/dist/icons/deprecated/iconNarrowArrowRight.js +0 -20
- package/dist/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/dist/icons/deprecated/iconNotificationBell.js +0 -20
- package/dist/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/dist/icons/deprecated/iconOptionsIcon.js +0 -20
- package/dist/icons/deprecated/iconPlus.d.ts +0 -7
- package/dist/icons/deprecated/iconPlus.js +0 -20
- package/dist/icons/deprecated/iconReportError.d.ts +0 -7
- package/dist/icons/deprecated/iconReportError.js +0 -20
- package/dist/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconRightArrow.js +0 -20
- package/dist/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconSelectArrow.js +0 -20
- package/dist/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/dist/icons/deprecated/iconSettings6SliderThree.js +0 -20
- package/dist/icons/deprecated/iconShrink.d.ts +0 -7
- package/dist/icons/deprecated/iconShrink.js +0 -20
- package/dist/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/dist/icons/deprecated/iconSortAsc.js +0 -20
- package/dist/icons/deprecated/iconSortDec.d.ts +0 -7
- package/dist/icons/deprecated/iconSortDec.js +0 -20
- package/dist/icons/deprecated/iconSpinner.d.ts +0 -7
- package/dist/icons/deprecated/iconSpinner.js +0 -20
- package/dist/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/dist/icons/deprecated/iconStatusNoComm.js +0 -20
- package/dist/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/dist/icons/deprecated/iconSuccessNew.js +0 -20
- package/dist/icons/deprecated/iconTick.d.ts +0 -7
- package/dist/icons/deprecated/iconTick.js +0 -20
- package/dist/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/dist/icons/deprecated/iconVerticalEllipsis.js +0 -20
- package/dist/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/dist/icons/deprecated/iconWarningNew.js +0 -20
- package/dist/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/dist/icons/deprecated/iconZoneGeofence.js +0 -18
- package/dist/icons/iconAddPeople2.d.ts +0 -8
- package/dist/icons/iconAddPeople2.js +0 -21
- package/dist/icons/iconCalendar2.d.ts +0 -8
- package/dist/icons/iconCalendar2.js +0 -21
- package/dist/icons/iconCornerUpRight2.d.ts +0 -8
- package/dist/icons/iconCornerUpRight2.js +0 -21
- package/dist/icons/iconImac2.d.ts +0 -8
- package/dist/icons/iconImac2.js +0 -21
- package/dist/icons/iconInbox2.d.ts +0 -8
- package/dist/icons/iconInbox2.js +0 -21
- package/dist/icons/iconMenuCircle2.d.ts +0 -8
- package/dist/icons/iconMenuCircle2.js +0 -21
- package/dist/icons/iconShare2.d.ts +0 -8
- package/dist/icons/iconShare2.js +0 -21
- package/dist/icons/iconVolumeOf.d.ts +0 -8
- package/dist/icons/iconVolumeOf.js +0 -21
- package/dist/reportPopup/groupedReportsItem.d.ts +0 -7
- package/dist/reportPopup/groupedReportsItem.js +0 -10
- package/dist/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/errorNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/infoNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/dist/reportPopup/notificationTemplates/successNotification.js +0 -20
- package/dist/reportPopup/reportPopup.d.ts +0 -23
- package/dist/reportPopup/reportPopup.js +0 -56
- package/dist/reportPopup/reportPopupContent.d.ts +0 -12
- package/dist/reportPopup/reportPopupContent.js +0 -29
- package/dist/reportPopup/reports.d.ts +0 -7
- package/dist/reportPopup/reports.js +0 -11
- package/dist/reportPopup/reportsItem.d.ts +0 -12
- package/dist/reportPopup/reportsItem.js +0 -18
- package/dist/reportPopup/reportsItemFormats.d.ts +0 -10
- package/dist/reportPopup/reportsItemFormats.js +0 -14
- package/dist/searchList/searchListHelpers.d.ts +0 -20
- package/dist/searchList/searchListHelpers.js +0 -90
- package/dist/searchableField/searchableField.d.ts +0 -28
- package/dist/searchableField/searchableField.js +0 -31
- package/dist/static/icons/icons.d.ts +0 -67
- package/dist/static/icons/icons.js +0 -76
- package/dist/svgIcon/svgIcon.d.ts +0 -16
- package/dist/svgIcon/svgIcon.js +0 -43
- package/esm/bottomSection/bottomSection.d.ts +0 -13
- package/esm/bottomSection/bottomSection.js +0 -21
- package/esm/bottomSection/bottomSectionType.d.ts +0 -4
- package/esm/bottomSection/bottomSectionType.js +0 -5
- package/esm/comboList/comboList.d.ts +0 -24
- package/esm/comboList/comboList.js +0 -26
- package/esm/comboList/comboListHook.d.ts +0 -4
- package/esm/comboList/comboListHook.js +0 -10
- package/esm/combobox/combobox.d.ts +0 -27
- package/esm/combobox/combobox.js +0 -163
- package/esm/combobox/comboboxNavigation.d.ts +0 -3
- package/esm/combobox/comboboxNavigation.js +0 -21
- package/esm/commonHelpers/translatable.d.ts +0 -11
- package/esm/dropdownOld/dropdownOld.d.ts +0 -17
- package/esm/dropdownOld/dropdownOld.js +0 -50
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -6
- package/esm/icons/deprecated/iconActivity.d.ts +0 -7
- package/esm/icons/deprecated/iconActivity.js +0 -16
- package/esm/icons/deprecated/iconArchive.d.ts +0 -7
- package/esm/icons/deprecated/iconArchive.js +0 -16
- package/esm/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowBottom.js +0 -16
- package/esm/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowDown.js +0 -16
- package/esm/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowTop.js +0 -16
- package/esm/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/esm/icons/deprecated/iconAssetInactive.js +0 -16
- package/esm/icons/deprecated/iconBookmark.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmark.js +0 -16
- package/esm/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmarkFill.js +0 -16
- package/esm/icons/deprecated/iconCalendar.d.ts +0 -7
- package/esm/icons/deprecated/iconCalendar.js +0 -16
- package/esm/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronDownSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronLeftSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronRightSmall.js +0 -16
- package/esm/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/esm/icons/deprecated/iconCircleOk.js +0 -16
- package/esm/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/esm/icons/deprecated/iconCogSettings.js +0 -16
- package/esm/icons/deprecated/iconConditions.d.ts +0 -7
- package/esm/icons/deprecated/iconConditions.js +0 -16
- package/esm/icons/deprecated/iconDelete.d.ts +0 -7
- package/esm/icons/deprecated/iconDelete.js +0 -16
- package/esm/icons/deprecated/iconDownload.d.ts +0 -7
- package/esm/icons/deprecated/iconDownload.js +0 -16
- package/esm/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/esm/icons/deprecated/iconDragAndDrop.js +0 -16
- package/esm/icons/deprecated/iconEdit.d.ts +0 -7
- package/esm/icons/deprecated/iconEdit.js +0 -16
- package/esm/icons/deprecated/iconError.d.ts +0 -7
- package/esm/icons/deprecated/iconError.js +0 -16
- package/esm/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/esm/icons/deprecated/iconErrorNew.js +0 -16
- package/esm/icons/deprecated/iconExclude.d.ts +0 -7
- package/esm/icons/deprecated/iconExclude.js +0 -16
- package/esm/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/esm/icons/deprecated/iconFilterOutline.js +0 -16
- package/esm/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/esm/icons/deprecated/iconFolderNew.js +0 -16
- package/esm/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/esm/icons/deprecated/iconFullscreen.js +0 -16
- package/esm/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/esm/icons/deprecated/iconInfoCircled.js +0 -16
- package/esm/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/esm/icons/deprecated/iconLeftBracketLg.js +0 -16
- package/esm/icons/deprecated/iconLocation.d.ts +0 -7
- package/esm/icons/deprecated/iconLocation.js +0 -16
- package/esm/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/esm/icons/deprecated/iconLocationPin.js +0 -16
- package/esm/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/esm/icons/deprecated/iconLvlUp.js +0 -16
- package/esm/icons/deprecated/iconMap.d.ts +0 -7
- package/esm/icons/deprecated/iconMap.js +0 -16
- package/esm/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/esm/icons/deprecated/iconNarrowArrowRight.js +0 -16
- package/esm/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/esm/icons/deprecated/iconNotificationBell.js +0 -16
- package/esm/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/esm/icons/deprecated/iconOptionsIcon.js +0 -16
- package/esm/icons/deprecated/iconPlus.d.ts +0 -7
- package/esm/icons/deprecated/iconPlus.js +0 -16
- package/esm/icons/deprecated/iconReportError.d.ts +0 -7
- package/esm/icons/deprecated/iconReportError.js +0 -16
- package/esm/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconRightArrow.js +0 -16
- package/esm/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconSelectArrow.js +0 -16
- package/esm/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/esm/icons/deprecated/iconSettings6SliderThree.js +0 -16
- package/esm/icons/deprecated/iconShrink.d.ts +0 -7
- package/esm/icons/deprecated/iconShrink.js +0 -16
- package/esm/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/esm/icons/deprecated/iconSortAsc.js +0 -16
- package/esm/icons/deprecated/iconSortDec.d.ts +0 -7
- package/esm/icons/deprecated/iconSortDec.js +0 -16
- package/esm/icons/deprecated/iconSpinner.d.ts +0 -7
- package/esm/icons/deprecated/iconSpinner.js +0 -16
- package/esm/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/esm/icons/deprecated/iconStatusNoComm.js +0 -16
- package/esm/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/esm/icons/deprecated/iconSuccessNew.js +0 -16
- package/esm/icons/deprecated/iconTick.d.ts +0 -7
- package/esm/icons/deprecated/iconTick.js +0 -16
- package/esm/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/esm/icons/deprecated/iconVerticalEllipsis.js +0 -16
- package/esm/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/esm/icons/deprecated/iconWarningNew.js +0 -16
- package/esm/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/esm/icons/deprecated/iconZoneGeofence.js +0 -14
- package/esm/icons/iconAddPeople2.d.ts +0 -8
- package/esm/icons/iconAddPeople2.js +0 -17
- package/esm/icons/iconCalendar2.d.ts +0 -8
- package/esm/icons/iconCalendar2.js +0 -17
- package/esm/icons/iconCornerUpRight2.d.ts +0 -8
- package/esm/icons/iconCornerUpRight2.js +0 -17
- package/esm/icons/iconImac2.d.ts +0 -8
- package/esm/icons/iconImac2.js +0 -17
- package/esm/icons/iconInbox2.d.ts +0 -8
- package/esm/icons/iconInbox2.js +0 -17
- package/esm/icons/iconMenuCircle2.d.ts +0 -8
- package/esm/icons/iconMenuCircle2.js +0 -17
- package/esm/icons/iconShare2.d.ts +0 -8
- package/esm/icons/iconShare2.js +0 -17
- package/esm/icons/iconVolumeOf.d.ts +0 -8
- package/esm/icons/iconVolumeOf.js +0 -17
- package/esm/reportPopup/groupedReportsItem.d.ts +0 -7
- package/esm/reportPopup/groupedReportsItem.js +0 -6
- package/esm/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/errorNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/infoNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/esm/reportPopup/notificationTemplates/successNotification.js +0 -17
- package/esm/reportPopup/reportPopup.d.ts +0 -23
- package/esm/reportPopup/reportPopup.js +0 -52
- package/esm/reportPopup/reportPopupContent.d.ts +0 -12
- package/esm/reportPopup/reportPopupContent.js +0 -26
- package/esm/reportPopup/reports.d.ts +0 -7
- package/esm/reportPopup/reports.js +0 -7
- package/esm/reportPopup/reportsItem.d.ts +0 -12
- package/esm/reportPopup/reportsItem.js +0 -14
- package/esm/reportPopup/reportsItemFormats.d.ts +0 -10
- package/esm/reportPopup/reportsItemFormats.js +0 -10
- package/esm/searchList/searchListHelpers.d.ts +0 -20
- package/esm/searchList/searchListHelpers.js +0 -79
- package/esm/searchableField/searchableField.d.ts +0 -28
- package/esm/searchableField/searchableField.js +0 -27
- package/esm/static/icons/icons.d.ts +0 -67
- package/esm/static/icons/icons.js +0 -73
- package/esm/svgIcon/svgIcon.d.ts +0 -16
- package/esm/svgIcon/svgIcon.js +0 -16
- /package/dist/commonHelpers/{translatable.js → ref.js} +0 -0
- /package/esm/commonHelpers/{translatable.js → ref.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
2
|
import { IListColumnWrapper } from "../../listColumn";
|
|
3
3
|
import "./checkboxColumn.less";
|
|
4
4
|
import { SimpleEventHandler } from "../../../commonHelpers/simpleEventHandler";
|
|
@@ -35,10 +35,10 @@ export declare class CheckboxColumnWrapper<T extends IEntityWithId> extends Simp
|
|
|
35
35
|
private readonly actionsClickHandler;
|
|
36
36
|
private readonly changeHandler;
|
|
37
37
|
private readonly changeHandlerAll;
|
|
38
|
-
constructor(selections: Set<string>, options: ICheckboxColumnOptions<T>, menuTriggerRef:
|
|
38
|
+
constructor(selections: Set<string>, options: ICheckboxColumnOptions<T>, menuTriggerRef: RefObject<HTMLButtonElement | null>);
|
|
39
39
|
get selectionState(): SelectionState;
|
|
40
40
|
set selectionState(state: SelectionState);
|
|
41
41
|
render(value: ReactNode, entity?: T): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
-
renderHeader(title: ReactNode): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
42
|
+
renderHeader(title: ReactNode): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
43
43
|
static readonly translations: string[];
|
|
44
44
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FC,
|
|
1
|
+
import { FC, MouseEventHandler, PropsWithChildren, ReactElement, RefObject } from "react";
|
|
2
2
|
import { IZenComponentProps } from "../../../commonHelpers/zenComponent";
|
|
3
|
-
import { ITranslatable } from "../../../commonHelpers/translatable";
|
|
4
3
|
import "./checkboxColumn.less";
|
|
5
|
-
interface ICheckboxHandler
|
|
4
|
+
interface ICheckboxHandler {
|
|
6
5
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
ref?: RefObject<HTMLButtonElement | null>;
|
|
7
7
|
}
|
|
8
8
|
interface ICheckboxHeaderCellProps extends IZenComponentProps {
|
|
9
9
|
label: string;
|
|
@@ -15,7 +15,7 @@ interface ICheckboxHeaderCellProps extends IZenComponentProps {
|
|
|
15
15
|
onChange?: (checked: boolean) => void;
|
|
16
16
|
}
|
|
17
17
|
export interface ICheckboxHeaderCell extends FC<ICheckboxHeaderCellProps> {
|
|
18
|
-
Actions:
|
|
18
|
+
Actions: FC<ICheckboxHandler>;
|
|
19
19
|
Content: FC<PropsWithChildren>;
|
|
20
20
|
}
|
|
21
21
|
export declare const CheckboxHeaderCell: ICheckboxHeaderCell;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Children
|
|
2
|
+
import { Children } from "react";
|
|
3
3
|
import { ButtonIconPosition, TextIconButton } from "../../../textIconButton/textIconButton";
|
|
4
4
|
import { ButtonType } from "../../../button/buttonType";
|
|
5
5
|
import { Checkbox } from "../../../checkbox/checkbox";
|
|
6
6
|
import { IconChevronDownSmall } from "../../../icons/iconChevronDownSmall";
|
|
7
7
|
import { useLanguage } from "../../../utils/localization/useLanguage";
|
|
8
|
-
const CheckboxHandler =
|
|
8
|
+
const CheckboxHandler = ({ onClick, ref }) => {
|
|
9
9
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
10
10
|
const { translate } = useLanguage();
|
|
11
11
|
return _jsx(TextIconButton, { ref: ref, className: "zen-checkbox-column__popup", iconClasses: "zen-icon--no-events", icon: IconChevronDownSmall, iconPosition: ButtonIconPosition.Start, iconSize: "large", title: translate("Multiple row selection menu"), "aria-label": translate("Multiple row selection menu"), type: ButtonType.Light, onClick: onClick });
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
export const CheckboxHeaderCell = ({ label, actions, checked, indeterminate, disabled, children, onChange }) => {
|
|
14
14
|
const actionsComp = Children.toArray(children).find(child => { var _a; return ((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) === "Actions"; });
|
|
15
15
|
const contentComp = Children.toArray(children).find(child => { var _a; return ((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) === "Content"; });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
2
|
import { IEntityWithId } from "../../../commonHelpers/entity";
|
|
3
3
|
import { CheckboxColumnWrapper, ICheckboxColumnOptions } from "./checkboxColumnWrapper";
|
|
4
4
|
export interface ILimitedCheckboxColumnOptions<T> extends ICheckboxColumnOptions<T> {
|
|
@@ -7,6 +7,6 @@ export interface ILimitedCheckboxColumnOptions<T> extends ICheckboxColumnOptions
|
|
|
7
7
|
export declare class LimitedCheckboxColumnWrapper<T extends IEntityWithId> extends CheckboxColumnWrapper<T> {
|
|
8
8
|
private readonly selected;
|
|
9
9
|
private readonly opts;
|
|
10
|
-
constructor(selections: Set<string>, options: ILimitedCheckboxColumnOptions<T>, menuTriggerRef:
|
|
10
|
+
constructor(selections: Set<string>, options: ILimitedCheckboxColumnOptions<T>, menuTriggerRef: RefObject<HTMLButtonElement | null>);
|
|
11
11
|
renderHeader(title: ReactNode): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
}
|
|
@@ -27,7 +27,7 @@ export interface IMainColumnOptions<T> {
|
|
|
27
27
|
icon?: IActionIcon<T>;
|
|
28
28
|
mainText?: IMainText<T>;
|
|
29
29
|
descriptionText?: IDescriptionText<T>;
|
|
30
|
-
render?: (entity: T) => JSX.Element;
|
|
30
|
+
render?: (entity: T) => React.JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export interface IMainColumnWrapper<T, N = T> extends IListColumnWrapper<T, N> {
|
|
33
33
|
renderIcon: (entity: T | N, isNested: boolean) => ReactNode;
|
|
@@ -5,7 +5,7 @@ import React, { FC, ForwardedRef, PropsWithChildren } from "react";
|
|
|
5
5
|
import { IRowEntity } from "./row/row";
|
|
6
6
|
import { TRowClassName } from "./getRowClassName";
|
|
7
7
|
import { IEntityWithId } from "../commonHelpers/entity";
|
|
8
|
-
export interface IDataGrid<T, N = T> extends IZenComponentProps {
|
|
8
|
+
export interface IDataGrid<T, N = T> extends Omit<IZenComponentProps, "children"> {
|
|
9
9
|
entities: T[];
|
|
10
10
|
columns: IListColumn<T, N>[];
|
|
11
11
|
description?: string;
|
|
@@ -4,11 +4,6 @@ import "./emptySearchList.less";
|
|
|
4
4
|
export interface IEmptySearchList extends IZenComponentProps {
|
|
5
5
|
description?: string;
|
|
6
6
|
image?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param translate - will be removed in the next major release
|
|
10
|
-
*/
|
|
11
|
-
translate?: (s: string) => string;
|
|
12
7
|
}
|
|
13
8
|
export declare const EmptySearchList: {
|
|
14
9
|
({ className, children, description, image }: IEmptySearchList): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface IColumnsListButton extends ITranslatable {
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
export interface IColumnsListButton {
|
|
4
3
|
onClick?: () => void;
|
|
5
|
-
|
|
4
|
+
ref?: RefObject<HTMLButtonElement | null>;
|
|
6
5
|
}
|
|
7
|
-
export declare const ColumnsListButton:
|
|
6
|
+
export declare const ColumnsListButton: (({ onClick, ref }: IColumnsListButton) => import("react/jsx-runtime").JSX.Element) & {
|
|
8
7
|
translations: string[];
|
|
9
8
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { SvgIconSize } from "../../../svgIcon/svgIconSize";
|
|
4
3
|
import { ButtonIconPosition, TextIconButton } from "../../../textIconButton/textIconButton";
|
|
5
4
|
import { ButtonType } from "../../../button/buttonType";
|
|
6
5
|
import { IconSettings3 } from "../../../icons/iconSettings3";
|
|
7
6
|
import { useLanguage } from "../../../utils/localization/useLanguage";
|
|
8
|
-
|
|
9
|
-
const ColumnsListButtonInner = forwardRef(function Inner({ onClick }, ref) {
|
|
7
|
+
const ColumnsListButtonInner = ({ onClick, ref }) => {
|
|
10
8
|
const { translate } = useLanguage();
|
|
11
9
|
return _jsx(TextIconButton, { ref: ref, icon: IconSettings3, iconSize: SvgIconSize.Large, iconPosition: ButtonIconPosition.Start, "aria-label": translate("Show list of columns"), title: translate("Show list of columns"), onClick: onClick, type: ButtonType.TertiaryBlack });
|
|
12
|
-
}
|
|
10
|
+
};
|
|
13
11
|
export const ColumnsListButton = Object.assign(ColumnsListButtonInner, { translations: [
|
|
14
12
|
"Show list of columns"
|
|
15
13
|
] });
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { IZenTranslatableComponent } from "../../../commonHelpers/translatable";
|
|
2
1
|
export interface IFullScreenButton {
|
|
3
2
|
fullScreen?: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
* @param translate - will be removed in the next major release
|
|
7
|
-
*/
|
|
8
|
-
translate?: (s: string) => string;
|
|
9
3
|
onClick?: (isFulScreen: boolean) => void;
|
|
10
4
|
title?: string;
|
|
11
5
|
}
|
|
12
|
-
export declare const FullScreenButton:
|
|
6
|
+
export declare const FullScreenButton: {
|
|
7
|
+
({ fullScreen, title, onClick }: IFullScreenButton): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
translations: string[];
|
|
9
|
+
};
|
|
@@ -2,7 +2,7 @@ import { FC, PropsWithChildren } from "react";
|
|
|
2
2
|
import { IZenComponentProps } from "../../commonHelpers/zenComponent";
|
|
3
3
|
import "./entitiesListActions.less";
|
|
4
4
|
import { DeviceType } from "../../commonHelpers/hooks/deviceType";
|
|
5
|
-
export interface IEntitiesListActionsProps extends IZenComponentProps {
|
|
5
|
+
export interface IEntitiesListActionsProps extends Omit<IZenComponentProps, "children"> {
|
|
6
6
|
gridType?: DeviceType | null;
|
|
7
7
|
children?: ReturnType<typeof EntitiesListActions.Actions> | ReturnType<typeof EntitiesListActions.Pagination> | ReturnType<typeof EntitiesListActions.PostActions>;
|
|
8
8
|
}
|
|
@@ -3,7 +3,11 @@ import { ComponentType, RefObject } from "react";
|
|
|
3
3
|
import { IEntityWithId } from "../../commonHelpers/entity";
|
|
4
4
|
import { IListColumn } from "../listColumn";
|
|
5
5
|
export interface IActionColumnsProps<T extends IEntityWithId> {
|
|
6
|
-
popupTriggerRef?: RefObject<HTMLElement>;
|
|
6
|
+
popupTriggerRef?: RefObject<HTMLElement | null>;
|
|
7
7
|
columns: IListColumn<T, T>[];
|
|
8
|
+
ref?: RefObject<HTMLElement | null>;
|
|
8
9
|
}
|
|
9
|
-
export declare const withActions: <T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>) =>
|
|
10
|
+
export declare const withActions: <T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>) => {
|
|
11
|
+
(props: IActionColumnsProps<T> & P): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useMemo } from "react";
|
|
3
3
|
import { toBasicColumn } from "../extensions/toBasicColumn";
|
|
4
4
|
import { ActionsColumn } from "../columns/actionsColumn/actionsColumn";
|
|
5
5
|
// T - type of entity
|
|
6
6
|
// P - props of wrapped component
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
-
export const withActions = (DataGridComponent) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})
|
|
8
|
+
export const withActions = (DataGridComponent) => {
|
|
9
|
+
const WithActionsInner = (props) => {
|
|
10
|
+
const { columns } = props;
|
|
11
|
+
let actions = undefined;
|
|
12
|
+
let actionsAsync = undefined;
|
|
13
|
+
const columnsWithActions = columns.find(el => el.columnComponent instanceof ActionsColumn);
|
|
14
|
+
if (columnsWithActions && columnsWithActions.columnComponent) {
|
|
15
|
+
const colComp = columnsWithActions.columnComponent;
|
|
16
|
+
const colActions = colComp.columnActions;
|
|
17
|
+
actions = colActions ? colActions : undefined;
|
|
18
|
+
actionsAsync = colComp.columnActionsAsync;
|
|
19
|
+
}
|
|
20
|
+
const allColumns = useMemo(() => columns.filter(el => !(el.columnComponent instanceof ActionsColumn)).map(column => (Object.assign({}, toBasicColumn(Object.assign({}, column))))), [columns]);
|
|
21
|
+
return _jsx(DataGridComponent, Object.assign({}, props, { columns: [...allColumns], actions: actions, actionsAsync: actionsAsync, ref: props.ref }), "grid");
|
|
22
|
+
};
|
|
23
|
+
WithActionsInner.displayName = `withActions(${DataGridComponent.displayName || DataGridComponent.name})`;
|
|
24
|
+
return WithActionsInner;
|
|
25
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ITranslatable } from "../../../commonHelpers/translatable";
|
|
3
1
|
import { IZenComponentProps } from "../../../commonHelpers/zenComponent";
|
|
4
|
-
|
|
2
|
+
import { RefObject } from "react";
|
|
3
|
+
interface IColumnSettings extends IZenComponentProps {
|
|
5
4
|
onReset: () => void;
|
|
6
5
|
showFooter?: boolean;
|
|
6
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
7
7
|
}
|
|
8
|
-
export declare const ColumnSettings:
|
|
8
|
+
export declare const ColumnSettings: (({ onReset, showFooter, children, ref }: IColumnSettings) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
9
|
translations: string[];
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { Button } from "../../../button/button";
|
|
4
3
|
import { ButtonType } from "../../../button/buttonType";
|
|
5
4
|
import { useLanguage } from "../../../utils/localization/useLanguage";
|
|
6
|
-
const ColumnSettingsInner = ({ onReset, showFooter = true, children
|
|
5
|
+
const ColumnSettingsInner = ({ onReset, showFooter = true, children, ref }) => {
|
|
7
6
|
const { translate } = useLanguage();
|
|
8
7
|
return _jsxs("div", { className: "zen-columns-list", ref: ref, children: [_jsx("div", { className: "zen-columns-list__content", children: children }), showFooter
|
|
9
8
|
? _jsx("div", { className: "zen-columns-list__footer", children: _jsx(Button, { "aria-label": translate("Reset column settings"), className: "zen-columns-list__reset", type: ButtonType.Tertiary, onClick: onReset, children: translate("Reset") }) })
|
|
10
9
|
: null] });
|
|
11
10
|
};
|
|
12
|
-
const ColumnSettingsComp =
|
|
11
|
+
const ColumnSettingsComp = ColumnSettingsInner;
|
|
13
12
|
export const ColumnSettings = Object.assign(ColumnSettingsComp, { translations: [
|
|
14
13
|
"Reset column settings",
|
|
15
14
|
"Reset"
|
|
@@ -5,7 +5,7 @@ import { Button } from "../../../button/button";
|
|
|
5
5
|
import { useLanguage } from "../../../utils/localization/useLanguage";
|
|
6
6
|
const ColumnSettingsSidePanelComp = ({ triggerRef, isOpen, onOpen, onClose, onReset, children }) => {
|
|
7
7
|
const { translate } = useLanguage();
|
|
8
|
-
const abortEventsControllerRef = useRef();
|
|
8
|
+
const abortEventsControllerRef = useRef(null);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
var _a;
|
|
11
11
|
if (triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.current) {
|
|
@@ -13,21 +13,20 @@ interface IColumnSettingsStorageOptions {
|
|
|
13
13
|
isFeed?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export interface IFlexibleColumnsListProps<T> {
|
|
16
|
-
popupTriggerRef?: RefObject<HTMLElement>;
|
|
16
|
+
popupTriggerRef?: RefObject<HTMLElement | null>;
|
|
17
17
|
columns: IListFlexibleColumn<T, T>[];
|
|
18
18
|
options: IColumnSettingsStorageOptions;
|
|
19
19
|
onChangeSettings: (newSettings: IColumnSettings[]) => void;
|
|
20
20
|
onResetSettings?: () => void;
|
|
21
21
|
sortGroups?: (groupA: string, groupB: string) => number;
|
|
22
22
|
sortColumns?: (groupA: string, groupB: string) => number;
|
|
23
|
-
|
|
24
|
-
* @deprecated
|
|
25
|
-
* @param translate - will be removed in the next major release
|
|
26
|
-
*/
|
|
27
|
-
translate?: (key: string) => string;
|
|
23
|
+
ref?: RefObject<HTMLElement | null>;
|
|
28
24
|
}
|
|
29
25
|
export declare const withFlexibleColumns: {
|
|
30
|
-
<T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>):
|
|
26
|
+
<T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>): {
|
|
27
|
+
(props: IFlexibleColumnsListProps<T> & P): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
31
30
|
translations: string[];
|
|
32
31
|
};
|
|
33
32
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { ColumnsSettingsStorage, mergeColumnsSettings } from "./flexibleColumnsStorage";
|
|
4
4
|
import { FlexibleColumnResizer } from "./flexibleColumnsResizer";
|
|
5
5
|
import { FlexibleColumnReorder } from "./flexibleColumnsReorder";
|
|
@@ -13,131 +13,133 @@ import { ColumnSettingsSidePanel } from "./components/columnSettingsSidePanel";
|
|
|
13
13
|
// T - type of entity
|
|
14
14
|
// P - props of wrapped component
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
16
|
-
export const withFlexibleColumns = (DataGridComponent) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
export const withFlexibleColumns = (DataGridComponent) => {
|
|
17
|
+
const FlexibleColumnsComponent = (props) => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const { columns, options, popupTriggerRef, onChangeSettings, onResetSettings = () => { }, sortGroups, sortColumns } = props;
|
|
20
|
+
const settingsStore = useMemo(() => { var _a, _b; return new ColumnsSettingsStorage(((_a = options.columnsSettingsStorage) === null || _a === void 0 ? void 0 : _a.pageName) || "", (_b = options.columnsSettingsStorage) === null || _b === void 0 ? void 0 : _b.storage); }, [(_a = options.columnsSettingsStorage) === null || _a === void 0 ? void 0 : _a.pageName, (_b = options.columnsSettingsStorage) === null || _b === void 0 ? void 0 : _b.storage]);
|
|
21
|
+
const [isPanelOpen, setIsPanelOpen] = useState(false);
|
|
22
|
+
const allColumns = useMemo(() => columns.map(column => (Object.assign(Object.assign({}, toBasicColumn(Object.assign({}, column))), { visible: column.visible !== false, group: column.group || "" }))), [columns]);
|
|
23
|
+
const columnsSettings = useMemo(() => mergeColumnsSettings(allColumns, options.columnsSettings || settingsStore.getItem()), [allColumns, options.columnsSettings, settingsStore]);
|
|
24
|
+
const visibleColumns = useMemo(() => {
|
|
25
|
+
const visibleColumnsMap = new Map(allColumns.map(c => [c.name, c]));
|
|
26
|
+
return columnsSettings.map((s, index) => {
|
|
27
|
+
const column = visibleColumnsMap.get(s.name);
|
|
28
|
+
if (column === undefined || !s.visible) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const wrappers = column.wrappers;
|
|
32
|
+
return (Object.assign(Object.assign({}, column), { meta: Object.assign(Object.assign({}, column.meta), { defaultWidth: s.width }), wrappers: wrappers.some(w => w instanceof FlexibleColumnWrapper) ? wrappers : [
|
|
33
|
+
...wrappers,
|
|
34
|
+
new FlexibleColumnWrapper({
|
|
35
|
+
draggable: !(column.columnComponent instanceof ActionsColumn),
|
|
36
|
+
resizable: index !== 0
|
|
37
|
+
})
|
|
38
|
+
] }));
|
|
39
|
+
}).filter(c => c !== undefined);
|
|
40
|
+
}, [allColumns, columnsSettings]);
|
|
41
|
+
const gridRef = useRef(null);
|
|
42
|
+
const resizerRef = useRef(null);
|
|
43
|
+
const reordererRef = useRef(null);
|
|
44
|
+
useImperativeHandle(props.ref, () => gridRef.current, []);
|
|
45
|
+
const saveSettingsToTheStore = useCallback((newSettings) =>
|
|
46
|
+
// not to block main thread this operation can be postponed
|
|
47
|
+
new Promise((resolve, reject) => {
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
try {
|
|
50
|
+
settingsStore.setItem(newSettings);
|
|
51
|
+
resolve();
|
|
52
|
+
}
|
|
53
|
+
catch (e) {
|
|
54
|
+
reject(e);
|
|
55
|
+
}
|
|
56
|
+
}, 0);
|
|
57
|
+
}), [settingsStore]);
|
|
58
|
+
const listOfColumns = useMemo(() => {
|
|
59
|
+
var _a;
|
|
60
|
+
const firstColumn = (((_a = visibleColumns[0]) === null || _a === void 0 ? void 0 : _a.name) || "");
|
|
61
|
+
const columnSettingsMap = new Map(columnsSettings.map(s => [s.name, s.visible]));
|
|
62
|
+
return _jsx(ColumnSettingsList, { columns: allColumns.filter(c => c.title), settings: columnSettingsMap, firstColumn: firstColumn, onChange: async (newSettings) => {
|
|
63
|
+
const settings = (columnsSettings.map(s => {
|
|
64
|
+
const visible = newSettings.get(s.name) !== false;
|
|
65
|
+
return Object.assign(Object.assign({}, s), { visible });
|
|
66
|
+
}));
|
|
67
|
+
await saveSettingsToTheStore(settings);
|
|
68
|
+
onChangeSettings(settings);
|
|
69
|
+
}, sortGroups: sortGroups, sortColumns: sortColumns });
|
|
70
|
+
}, [columnsSettings, allColumns, saveSettingsToTheStore, onChangeSettings, visibleColumns, sortGroups, sortColumns]);
|
|
71
|
+
const onReorderListener = useCallback(async ([from, to]) => {
|
|
72
|
+
if (from === to) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const column = visibleColumns[from];
|
|
76
|
+
// we should avoid moving actions column
|
|
77
|
+
const limitedTo = Math.min(to, visibleColumns.length - 1);
|
|
78
|
+
const where = visibleColumns[limitedTo];
|
|
79
|
+
if (column === undefined) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
// update order in settings
|
|
83
|
+
const settingsWithoutColumn = columnsSettings.filter(s => s.name !== column.name);
|
|
84
|
+
const originalSettings = columnsSettings.filter(s => s.name === column.name)[0];
|
|
85
|
+
const sIndex = settingsWithoutColumn.findIndex(s => s.name === where.name);
|
|
86
|
+
const newColumnSettings = [
|
|
87
|
+
...settingsWithoutColumn.slice(0, sIndex),
|
|
88
|
+
originalSettings,
|
|
89
|
+
...settingsWithoutColumn.slice(sIndex)
|
|
90
|
+
];
|
|
91
|
+
await saveSettingsToTheStore(newColumnSettings);
|
|
92
|
+
onChangeSettings(newColumnSettings);
|
|
93
|
+
}, [columnsSettings, visibleColumns, onChangeSettings, saveSettingsToTheStore]);
|
|
94
|
+
const onResizeColumn = useCallback(async ([index, width]) => {
|
|
95
|
+
const column = visibleColumns[index];
|
|
96
|
+
if (column === undefined) {
|
|
97
|
+
return;
|
|
31
98
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const reordererRef = useRef();
|
|
45
|
-
useImperativeHandle(ref, () => gridRef.current, []);
|
|
46
|
-
const saveSettingsToTheStore = useCallback((newSettings) =>
|
|
47
|
-
// not to block main thread this operation can be postponed
|
|
48
|
-
new Promise((resolve, reject) => {
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
try {
|
|
51
|
-
settingsStore.setItem(newSettings);
|
|
52
|
-
resolve();
|
|
99
|
+
const newColumnSettings = columnsSettings.map(s => {
|
|
100
|
+
if (s.name === column.name) {
|
|
101
|
+
return Object.assign(Object.assign({}, s), { width });
|
|
102
|
+
}
|
|
103
|
+
return s;
|
|
104
|
+
});
|
|
105
|
+
await saveSettingsToTheStore(newColumnSettings);
|
|
106
|
+
onChangeSettings(newColumnSettings);
|
|
107
|
+
}, [columnsSettings, visibleColumns, onChangeSettings, saveSettingsToTheStore]);
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
if (!gridRef.current) {
|
|
110
|
+
return;
|
|
53
111
|
}
|
|
54
|
-
|
|
55
|
-
|
|
112
|
+
// resizer
|
|
113
|
+
if (!resizerRef.current) {
|
|
114
|
+
const resizer = new FlexibleColumnResizer(gridRef.current);
|
|
115
|
+
resizerRef.current = resizer;
|
|
56
116
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const settings = (columnsSettings.map(s => {
|
|
65
|
-
const visible = newSettings.get(s.name) !== false;
|
|
66
|
-
return Object.assign(Object.assign({}, s), { visible });
|
|
67
|
-
}));
|
|
68
|
-
await saveSettingsToTheStore(settings);
|
|
69
|
-
onChangeSettings(settings);
|
|
70
|
-
}, sortGroups: sortGroups, sortColumns: sortColumns });
|
|
71
|
-
}, [columnsSettings, allColumns, saveSettingsToTheStore, onChangeSettings, visibleColumns, sortGroups, sortColumns]);
|
|
72
|
-
const onReorderListener = useCallback(async ([from, to]) => {
|
|
73
|
-
if (from === to) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const column = visibleColumns[from];
|
|
77
|
-
// we should avoid moving actions column
|
|
78
|
-
const limitedTo = Math.min(to, visibleColumns.length - 1);
|
|
79
|
-
const where = visibleColumns[limitedTo];
|
|
80
|
-
if (column === undefined) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
// update order in settings
|
|
84
|
-
const settingsWithoutColumn = columnsSettings.filter(s => s.name !== column.name);
|
|
85
|
-
const originalSettings = columnsSettings.filter(s => s.name === column.name)[0];
|
|
86
|
-
const sIndex = settingsWithoutColumn.findIndex(s => s.name === where.name);
|
|
87
|
-
const newColumnSettings = [
|
|
88
|
-
...settingsWithoutColumn.slice(0, sIndex),
|
|
89
|
-
originalSettings,
|
|
90
|
-
...settingsWithoutColumn.slice(sIndex)
|
|
91
|
-
];
|
|
92
|
-
await saveSettingsToTheStore(newColumnSettings);
|
|
93
|
-
onChangeSettings(newColumnSettings);
|
|
94
|
-
}, [columnsSettings, visibleColumns, onChangeSettings, saveSettingsToTheStore]);
|
|
95
|
-
const onResizeColumn = useCallback(async ([index, width]) => {
|
|
96
|
-
const column = visibleColumns[index];
|
|
97
|
-
if (column === undefined) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const newColumnSettings = columnsSettings.map(s => {
|
|
101
|
-
if (s.name === column.name) {
|
|
102
|
-
return Object.assign(Object.assign({}, s), { width });
|
|
117
|
+
resizerRef.current.detach("resize");
|
|
118
|
+
resizerRef.current.attach("resize", onResizeColumn);
|
|
119
|
+
resizerRef.current.add(visibleColumns);
|
|
120
|
+
// reorder
|
|
121
|
+
if (!reordererRef.current) {
|
|
122
|
+
const reorder = new FlexibleColumnReorder(gridRef.current, resizerRef.current, () => true);
|
|
123
|
+
reordererRef.current = reorder;
|
|
103
124
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (!reordererRef.current) {
|
|
123
|
-
const reorder = new FlexibleColumnReorder(gridRef.current, resizerRef.current, () => true);
|
|
124
|
-
reordererRef.current = reorder;
|
|
125
|
-
}
|
|
126
|
-
reordererRef.current.detach("reorder");
|
|
127
|
-
reordererRef.current.attach("reorder", onReorderListener);
|
|
128
|
-
reordererRef.current.add();
|
|
129
|
-
}, [columnsSettings, visibleColumns, onResizeColumn, onReorderListener]);
|
|
130
|
-
const onResetListener = useCallback(async () => {
|
|
131
|
-
await saveSettingsToTheStore([]);
|
|
132
|
-
onResetSettings();
|
|
133
|
-
setIsPanelOpen(false);
|
|
134
|
-
}, [onResetSettings, saveSettingsToTheStore]);
|
|
135
|
-
return _jsxs(_Fragment, { children: [popupTriggerRef && visibleColumns.length > 0
|
|
136
|
-
? options.isFeed
|
|
137
|
-
? _jsx(ColumnSettingsSidePanel, { triggerRef: popupTriggerRef, isOpen: isPanelOpen, onOpen: () => setIsPanelOpen(true), onClose: () => setIsPanelOpen(false), onReset: onResetListener, children: _jsx(ColumnSettings, { onReset: onResetListener, showFooter: false, children: listOfColumns }) })
|
|
138
|
-
: _jsx(Popup, { triggerRef: popupTriggerRef, alignment: "bottom-right", children: _jsx(ColumnSettings, { onReset: onResetListener, children: listOfColumns }) }, "flexible-popup")
|
|
139
|
-
: null, _jsx(DataGridComponent, Object.assign({}, props, { columns: [...visibleColumns], ref: gridRef }), "grid")] });
|
|
140
|
-
});
|
|
125
|
+
reordererRef.current.detach("reorder");
|
|
126
|
+
reordererRef.current.attach("reorder", onReorderListener);
|
|
127
|
+
reordererRef.current.add();
|
|
128
|
+
}, [columnsSettings, visibleColumns, onResizeColumn, onReorderListener]);
|
|
129
|
+
const onResetListener = useCallback(async () => {
|
|
130
|
+
await saveSettingsToTheStore([]);
|
|
131
|
+
onResetSettings();
|
|
132
|
+
setIsPanelOpen(false);
|
|
133
|
+
}, [onResetSettings, saveSettingsToTheStore]);
|
|
134
|
+
return _jsxs(_Fragment, { children: [popupTriggerRef && visibleColumns.length > 0
|
|
135
|
+
? options.isFeed
|
|
136
|
+
? _jsx(ColumnSettingsSidePanel, { triggerRef: popupTriggerRef, isOpen: isPanelOpen, onOpen: () => setIsPanelOpen(true), onClose: () => setIsPanelOpen(false), onReset: onResetListener, children: _jsx(ColumnSettings, { onReset: onResetListener, showFooter: false, children: listOfColumns }) })
|
|
137
|
+
: _jsx(Popup, { triggerRef: popupTriggerRef, alignment: "bottom-right", children: _jsx(ColumnSettings, { onReset: onResetListener, children: listOfColumns }) }, "flexible-popup")
|
|
138
|
+
: null, _jsx(DataGridComponent, Object.assign({}, props, { columns: [...visibleColumns], ref: gridRef }), "grid")] });
|
|
139
|
+
};
|
|
140
|
+
FlexibleColumnsComponent.displayName = `withFlexibleColumns(${DataGridComponent.displayName || DataGridComponent.name || "Component"})`;
|
|
141
|
+
return FlexibleColumnsComponent;
|
|
142
|
+
};
|
|
141
143
|
withFlexibleColumns.translations = [
|
|
142
144
|
...ColumnSettings.translations,
|
|
143
145
|
...ColumnSettingsSidePanel.translations
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
1
|
+
import { ComponentType, RefObject } from "react";
|
|
2
2
|
import { IEntityWithId } from "../../commonHelpers/entity";
|
|
3
3
|
import { IDataGrid } from "../dataGrid";
|
|
4
|
-
import { ITranslatable } from "../../commonHelpers/translatable";
|
|
5
4
|
import { IListColumn, IListColumnBasic } from "../listColumn";
|
|
6
5
|
import { ISelectableRowsList } from "../withSelectableRows/withSelectableRows";
|
|
7
6
|
export declare const DEFAULT_LOADING_ROWS = 20;
|
|
8
7
|
export interface IListColumnWithLoading<T> extends IListColumn<T, T> {
|
|
9
8
|
loadingEntitiesColumnComponent?: IListColumnBasic<T & ILoadingEntity, T & ILoadingEntity>;
|
|
10
9
|
}
|
|
11
|
-
export interface IWithLoadingProps<T>
|
|
10
|
+
export interface IWithLoadingProps<T> {
|
|
12
11
|
loadingRows?: number;
|
|
13
12
|
entitiesPromise?: Promise<T[]>;
|
|
14
13
|
columns: IListColumnWithLoading<T>[];
|
|
15
14
|
options?: {
|
|
16
15
|
addToEnd?: boolean;
|
|
17
16
|
};
|
|
17
|
+
ref?: RefObject<HTMLElement | null>;
|
|
18
18
|
}
|
|
19
19
|
export interface ILoadingEntity extends IEntityWithId {
|
|
20
20
|
isLoading?: boolean;
|
|
21
21
|
}
|
|
22
|
-
export declare const withLoading: <T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>) =>
|
|
22
|
+
export declare const withLoading: <T extends IEntityWithId, P extends IDataGrid<T, T>>(DataGridComponent: ComponentType<P>) => {
|
|
23
|
+
(props: IWithLoadingProps<T> & Partial<Pick<ISelectableRowsList<T, T>, "selectMode">> & P): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|