@geotab/zenith 3.14.0 → 3.15.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 +32 -3
- package/dist/advancedGroupsFilter/advancedGroupsFilter.js +19 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.js +13 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +60 -8
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +7 -1
- package/dist/alert/banner.d.ts +2 -3
- package/dist/alert/hooks/useAlertState.d.ts +0 -1
- package/dist/alertRaw/alertRaw.js +6 -0
- package/dist/banner/bannerMultipLine.d.ts +0 -1
- package/dist/banner/bannerMultipLine.js +6 -0
- package/dist/banner/bannerSingleLine.d.ts +0 -1
- package/dist/banner/bannerSingleLine.js +6 -0
- package/dist/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/dist/banner/utils/useSummaryBannerProp.js +32 -0
- package/dist/betaPill/betaPill.js +34 -10
- package/dist/bookmark/bookmark.js +14 -2
- package/dist/bulkEditControl/bulkEditControl.js +32 -2
- package/dist/calendar/calendar.js +182 -2
- package/dist/calendar/calendarUtils.js +107 -19
- package/dist/calendar/dateUtils.js +2 -2
- package/dist/card/card.js +23 -7
- package/dist/card/components/content.d.ts +0 -1
- package/dist/cardContainer/helpers/getSizeClass.js +1 -2
- package/dist/chart/accessibleChart/accessibleChart.js +1 -1
- package/dist/chart/accessibleChart/accessibleChartNarrative.d.ts +1 -1
- package/dist/chart/accessibleChart/accessibleChartNarrative.js +189 -105
- package/dist/chart/accessibleChart/accessibleChartTable.js +42 -12
- package/dist/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/dist/chart/accessibleChart/generatePieNarrative.js +179 -0
- package/dist/chart/accessibleChart/interfaces.d.ts +1 -0
- package/dist/chart/barChart/getDefaultOptions.js +5 -6
- package/dist/chart/barChart.js +152 -50
- package/dist/chart/chart.js +15 -9
- package/dist/chart/chartAxis/chartAxis.js +14 -2
- package/dist/chart/interfaces.d.ts +0 -1
- package/dist/chart/lineChart/getDefaultOptions.js +5 -6
- package/dist/chart/lineChart/useChartTicks.d.ts +0 -1
- package/dist/chart/lineChart/useSummary.d.ts +7 -8
- package/dist/chart/lineChart.js +167 -59
- package/dist/chart/pieChart.js +174 -76
- package/dist/chart/plugins/linePlugin/getInterpolatedValue.js +1 -2
- package/dist/chart/plugins/linePlugin/linePlugin.js +29 -7
- package/dist/chart/utils/convertDates.d.ts +1 -1
- package/dist/chart/utils/getFormattedLabel.js +1 -2
- package/dist/chart/utils/getNiceAxisRange.d.ts +21 -0
- package/dist/chart/utils/getNiceAxisRange.js +76 -0
- package/dist/chart/utils/getRange.js +2 -2
- package/dist/chart/utils/getYAxisMeta.d.ts +2 -5
- package/dist/chart/utils/getYAxisMeta.js +17 -2
- package/dist/chart/utils/getYAxisTickCount.d.ts +15 -0
- package/dist/chart/utils/getYAxisTickCount.js +19 -0
- package/dist/chart/utils/resampleArrayEvenly.js +1 -2
- package/dist/checkbox/checkbox.js +17 -7
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -1
- package/dist/checkboxListWithAction/checkboxListWithAction.js +36 -12
- package/dist/chip/chip.d.ts +0 -1
- package/dist/chip/chip.js +6 -0
- package/dist/chip/utils/useChip.d.ts +0 -1
- package/dist/columnsSelector/columnsSelector.js +13 -1
- package/dist/columnsSelector/columnsTab/columnsTab.js +6 -0
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.js +6 -0
- package/dist/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +0 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/dist/commonHelpers/generateId.js +1 -2
- package/dist/commonHelpers/hooks/breakpoints.d.ts +4 -0
- package/dist/commonHelpers/hooks/breakpoints.js +7 -0
- package/dist/commonHelpers/hooks/fetch.reducer.d.ts +1 -1
- package/dist/commonHelpers/hooks/fetch.reducer.js +1 -2
- package/dist/commonHelpers/hooks/useDebouncedMemo.d.ts +0 -1
- package/dist/commonHelpers/hooks/useDebouncedMemo.js +1 -2
- package/dist/commonHelpers/hooks/useDeviceType.js +2 -2
- package/dist/commonHelpers/hooks/useEscape.d.ts +1 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/dist/commonHelpers/hooks/useMobileOrTablet.d.ts +1 -0
- package/dist/commonHelpers/hooks/useMobileOrTablet.js +21 -0
- package/dist/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/dist/{gridLayout → commonHelpers}/hooks/useTablet.js +8 -11
- package/dist/commonHelpers/utils.js +3 -3
- package/dist/commonStyles/colors/colors.less +1 -0
- package/dist/dataFeed/dataFeed.d.ts +1 -1
- package/dist/dataFeed/dataFeed.js +2 -2
- package/dist/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataFeed/feedExpandControl/feedExpandControl.js +64 -0
- package/dist/dataGrid/cell/cell.d.ts +3 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.js +1 -2
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +7 -1
- package/dist/dataGrid/dataGrid.d.ts +13 -1
- package/dist/dataGrid/dataGrid.js +54 -3
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/dist/dataGrid/emptySearchList/emptySearchList.js +7 -1
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +7 -1
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.js +22 -10
- package/dist/dataGrid/row/row.d.ts +3 -1
- package/dist/dataGrid/withActions/withActions.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +13 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +32 -0
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +6 -0
- package/dist/dataGrid/withLoading/withLoading.d.ts +1 -1
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +31 -1
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +1 -1
- package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +1 -1
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +50 -0
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +14 -2
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/dist/dateInputInner/dateInputInner.js +62 -20
- package/dist/dateInputInner/dateInputInnerControlBlock.js +12 -0
- package/dist/dateInputInner/dateInputInnerReducer.js +2 -2
- package/dist/dateInputRaw/dateInputRaw.js +18 -0
- package/dist/dateInputRaw/utils/getLabel.js +21 -9
- package/dist/dateRangeInner/dateRangeInner.js +6 -0
- package/dist/dateRangeRaw/dateRangeRaw.js +121 -9
- package/dist/dateRangeRaw/utils/areMapsEqual.js +1 -2
- package/dist/dateRangeRaw/utils/dateRangeUtils.js +108 -6
- package/dist/dateSelectionWrapper/dateSelectionWrapper.js +24 -0
- package/dist/dialog/dialog.d.ts +0 -1
- package/dist/dialog/dialogContent.js +6 -0
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdown/useDropdownState.d.ts +0 -1
- package/dist/dropdownRaw/dropdownHelper.js +2 -2
- package/dist/dropdownRaw/dropdownList.d.ts +3 -2
- package/dist/dropdownRaw/dropdownList.js +84 -48
- package/dist/dropdownRaw/dropdownPopup.js +19 -1
- package/dist/dropdownRaw/dropdownRaw.js +41 -14
- package/dist/dropdownRaw/dropdownSearchableTrigger.js +27 -3
- package/dist/dropdownRaw/stateReducer/stateReducer.d.ts +4 -1
- package/dist/dropdownRaw/stateReducer/stateReducer.js +33 -23
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +8 -13
- package/dist/dropdownRaw/types.d.ts +20 -0
- package/dist/favoriteButton/favoriteButton.js +7 -1
- package/dist/feedbackContainer/feedbackContainer.js +17 -7
- package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +0 -1
- package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +0 -1
- package/dist/fileUpload/components/dropZoneContent.js +25 -1
- package/dist/fileUpload/components/templateDownloadSection.js +6 -0
- package/dist/fileUpload/components/uploadedFilesSection.js +21 -9
- package/dist/fileUpload/fileUpload.js +55 -19
- package/dist/filters/components/filtersContainer.js +19 -1
- package/dist/filters/components/filtersDropdown.js +2 -2
- package/dist/filters/components/filtersEmptyState.js +30 -18
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSaveModal.js +57 -27
- package/dist/filters/components/filtersSavedChipComponent.js +113 -47
- package/dist/filters/components/filtersSearchItemData.js +6 -0
- package/dist/filters/components/filtersSearchList.d.ts +0 -1
- package/dist/filters/components/filtersSearchList.js +83 -29
- package/dist/filters/components/filtersSelect.d.ts +0 -1
- package/dist/filters/components/filtersSelect.js +6 -0
- package/dist/filters/components/filtersSelectCompact.d.ts +0 -1
- package/dist/filters/components/filtersSelectListItem.d.ts +0 -1
- package/dist/filters/components/filtersSelectListItem.js +12 -0
- package/dist/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- package/dist/filters/components/filtersSidePanel.js +58 -10
- package/dist/filters/components/filtersSidePanelItem.js +17 -7
- package/dist/filters/filters.js +45 -27
- package/dist/filters/filtersHelper.d.ts +1 -1
- package/dist/filters/filtersHelper.js +5 -5
- package/dist/filters/filtersHooks.d.ts +0 -1
- package/dist/filtersBar/components/filtersBarDropdownWithCheckbox/filtersBarDropdownWithCheckbox.js +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +116 -8
- package/dist/filtersBar/components/resetComponentButton.js +6 -0
- package/dist/filtersBar/filtersBar.js +2 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- package/dist/filtersBar/filtersBarActions/filtersBarActions.js +50 -0
- package/dist/filtersBar/filtersBarInterfaces.d.ts +0 -1
- package/dist/filtersBar/filtersBarReducer.js +2 -2
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.d.ts +4 -10
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +12 -0
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +31 -1
- package/dist/filtersBar/filtersBarSidePanel/sidePanelReducer.js +2 -2
- package/dist/filtersBar/filtersContainer/filtersContainer.js +20 -6
- package/dist/filtersBar/utils/getNumberOfChangedFilters.js +1 -2
- package/dist/footerButtons/footerButtons.js +17 -7
- package/dist/formField/components/formFieldAdditionalInfo.d.ts +0 -1
- package/dist/formField/components/formFieldCounter.d.ts +0 -1
- package/dist/formField/components/formFieldLoading.d.ts +0 -1
- package/dist/formField/components/formFieldSkeleton.d.ts +0 -1
- package/dist/formField/components/formFieldWithLabel.d.ts +0 -1
- package/dist/formField/components/formFieldWithoutLabel.d.ts +0 -1
- package/dist/formField/formField.d.ts +1 -1
- package/dist/formField/hooks/useBanner.d.ts +0 -1
- package/dist/formField/hooks/useDisabled.d.ts +1 -1
- package/dist/formField/hooks/useError.js +27 -9
- package/dist/formGroup/components/customRow/customRow.d.ts +0 -1
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +12 -0
- package/dist/formGroup/formGroup.js +17 -7
- package/dist/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- package/dist/formGroup/hooks/listHooks/useStateToElements.js +1 -1
- package/dist/formGroup/hooks/useToggle.js +15 -9
- package/dist/formGroup/utils/formGroupProvider.d.ts +0 -1
- package/dist/formGroup/utils/isFormLabel.d.ts +1 -1
- package/dist/formGroupItem/formGroupItem.d.ts +0 -1
- package/dist/formLayout/components/layoutColumn/layoutColum.d.ts +0 -1
- package/dist/formLayout/hooks/useError.js +36 -18
- package/dist/formLayout/hooks/useFormButtons.d.ts +1 -1
- package/dist/formLayout/hooks/useFormButtons.js +18 -0
- package/dist/formLayout/types.d.ts +0 -1
- package/dist/formLayout/utils/attachHeadings.d.ts +1 -1
- package/dist/formLayout/utils/attachSeparators.d.ts +0 -1
- package/dist/formLayout/utils/getChildrenWithCustomColumns.d.ts +1 -2
- package/dist/formLayout/utils/getChildrenWithCustomColumns.js +2 -2
- package/dist/formLayout/utils/getFieldLabel.js +5 -5
- package/dist/formSection/components/actions.d.ts +0 -1
- package/dist/formSection/components/additional.d.ts +0 -1
- package/dist/formSection/hooks/useError.js +36 -18
- package/dist/formSection/utils/isFormSection.d.ts +2 -4
- package/dist/formStepper/components/formStep.js +6 -0
- package/dist/formStepper/components/formStepRaw.d.ts +0 -1
- package/dist/formStepper/formStepper.d.ts +0 -1
- package/dist/formStepper/formStepper.js +17 -5
- package/dist/formStepperButtons/formStepperButtons.js +27 -3
- package/dist/gridLayout/hooks/useStretch.js +1 -1
- package/dist/gridLayout/utils/convertStateToClasses.js +1 -2
- package/dist/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/dist/gridLayout/utils/gridLayoutProvider.js +1 -1
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsHelper.d.ts +5 -5
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +24 -0
- package/dist/groupsFilterRaw/groupsFilterBox.js +20 -2
- package/dist/groupsFilterRaw/groupsFilterCommon.js +14 -2
- package/dist/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +30 -0
- package/dist/groupsFilterRaw/groupsFilterHelper.js +28 -16
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +52 -4
- package/dist/groupsFilterRaw/groupsFilterMenu.js +18 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.js +50 -2
- package/dist/groupsFilterRaw/groupsFilterTrigger.js +14 -2
- package/dist/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/dist/groupsFilterRaw/groupsHelper.js +136 -4
- package/dist/groupsFilterRaw/stateReducer/stateReducer.d.ts +1 -1
- package/dist/groupsFilterRaw/stateReducer/stateReducer.js +2 -2
- package/dist/groupsFilterRaw/testData.js +3 -4
- package/dist/groupsFilterRaw/uiStateReducer/uiStateReducer.js +2 -2
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.js +6 -0
- package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +5 -0
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +7 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.js +19 -1
- package/dist/header/header.js +17 -7
- package/dist/header/headerBack.js +6 -0
- package/dist/header/headerButton.d.ts +0 -1
- package/dist/header/headerContext.d.ts +1 -2
- package/dist/header/headerHelpers.d.ts +5 -5
- package/dist/header/headerHelpers.js +17 -7
- package/dist/header/hooks/useNonFittingElements.d.ts +3 -4
- package/dist/headerTitle/headerTitle.d.ts +0 -1
- package/dist/icons/iconAce.d.ts +3 -0
- package/dist/icons/iconAce.js +12 -0
- package/dist/icons/iconBreak.d.ts +3 -0
- package/dist/icons/iconBreak.js +12 -0
- package/dist/icons/iconChevronStepper.d.ts +3 -0
- package/dist/icons/iconChevronStepper.js +12 -0
- package/dist/icons/iconPotato.d.ts +3 -0
- package/dist/icons/iconPotato.js +12 -0
- package/dist/icons/iconToggleLarge.d.ts +3 -0
- package/dist/icons/iconToggleLarge.js +12 -0
- package/dist/icons/iconToggleSmall.d.ts +3 -0
- package/dist/icons/iconToggleSmall.js +12 -0
- package/dist/icons/iconTrendNeutral.d.ts +3 -0
- package/dist/icons/iconTrendNeutral.js +12 -0
- package/dist/icons/iconTruck.d.ts +3 -0
- package/dist/icons/iconTruck.js +12 -0
- package/dist/index.css +219 -169
- package/dist/index.d.ts +8 -0
- package/dist/index.js +30 -13
- package/dist/layout/layout.d.ts +2 -1
- package/dist/layout/layout.js +17 -7
- package/dist/layout/layoutBanner.d.ts +0 -1
- package/dist/lineChart/lineChart.d.ts +1 -0
- package/dist/lineChart/lineChart.js +135 -70
- package/dist/lineChartMini/lineChartMini.d.ts +1 -0
- package/dist/lineChartMini/lineChartMini.js +141 -73
- package/dist/list/itemData/itemData.d.ts +2 -1
- package/dist/list/itemData/itemDataInternal.d.ts +2 -1
- package/dist/list/itemData/itemDataInternal.js +12 -0
- package/dist/list/list.d.ts +0 -1
- package/dist/list/listItem/listItem.js +12 -0
- package/dist/list/utils/changeOrder.js +1 -2
- package/dist/list/utils/isDataListitem.d.ts +1 -1
- package/dist/list/viewportProvider/viewportContext.d.ts +0 -1
- package/dist/menu/components/controlledMenuList/controlledMenuList.d.ts +2 -4
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +3 -1
- package/dist/menu/components/createControlledMenuList.js +1 -2
- package/dist/menu/components/createMenuItem.js +1 -2
- package/dist/menu/components/menuErrorItem.js +30 -18
- package/dist/menu/contexts/usePathContext.js +1 -2
- package/dist/menu/utils/buildMenuContent.js +1 -2
- package/dist/menu/utils/findPrevFocusable.js +1 -2
- package/dist/menu/utils/useDisplayContent.d.ts +21 -0
- package/dist/menu/utils/useDisplayContent.js +35 -0
- package/dist/menu/utils/useMenuItemKeyboardNav.js +1 -2
- package/dist/miniTabs/miniTabsHelper.js +17 -7
- package/dist/mobileSheet/components/mobileSheetTitle.d.ts +0 -1
- package/dist/mobileSheet/mobileSheet.js +12 -0
- package/dist/modal/modal.js +23 -7
- package/dist/nav/context/nav.context.d.ts +0 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.js +12 -0
- package/dist/nav/navFooter/navFooter.d.ts +1 -1
- package/dist/nav/navFooter/navFooter.js +15 -9
- package/dist/nav/navFooter/navFooterAction/navFooterAction.d.ts +2 -1
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +9 -1
- package/dist/nav/navHeader/navHeader.js +30 -18
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +21 -9
- package/dist/nav/navItem/navItem.d.ts +2 -0
- package/dist/nav/navItem/navItem.js +56 -47
- package/dist/nav/navItem/navItemContent.d.ts +19 -0
- package/dist/nav/navItem/navItemContent.js +21 -0
- package/dist/nav/navItem/navItemType.d.ts +7 -0
- package/dist/nav/navItem/navItemType.js +9 -0
- package/dist/nav/navMobileBar/navMobileBar.js +6 -0
- package/dist/nav/utils/navUtils.d.ts +2 -4
- package/dist/nav/utils/navUtils.js +2 -2
- package/dist/notification/notification.js +6 -0
- package/dist/overview/overview.d.ts +0 -1
- package/dist/pageHeader/pageHeader.d.ts +1 -1
- package/dist/pageHeader/pageHeaderButton.d.ts +0 -1
- package/dist/pageHeader/pageHeaderHelpers.d.ts +1 -1
- package/dist/pageHeader/pageHeaderMenu.d.ts +0 -1
- package/dist/pagination/paginationArrow.d.ts +0 -1
- package/dist/pagination/paginationArrow.js +12 -0
- package/dist/pagination/paginationText/paginationText.js +6 -0
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +6 -0
- package/dist/pill/interfaces/pill.interface.d.ts +0 -1
- package/dist/pillBox/components/pillBoxItem.d.ts +1 -2
- package/dist/pillBox/components/pillBoxItem.js +6 -0
- package/dist/pillBox/pillBox.js +19 -1
- package/dist/pillExpandable/pillExpandable.js +6 -0
- package/dist/popup/popup.js +17 -7
- package/dist/progressIndicator/progressIndicator.d.ts +39 -0
- package/dist/progressIndicator/progressIndicator.js +30 -0
- package/dist/progressIndicator/progressIndicatorUtils.d.ts +12 -0
- package/dist/progressIndicator/progressIndicatorUtils.js +30 -0
- package/dist/radioGroupRaw/radioGroupRaw.js +17 -7
- package/dist/radioGroupRaw/types.d.ts +0 -1
- package/dist/rangeRaw/rangeRaw.js +44 -2
- package/dist/rangeRaw/utils/rangeHelper.js +45 -3
- package/dist/react-chartjs/dateFns/dateFns.js +10 -11
- package/dist/react-chartjs/utils.d.ts +3 -3
- package/dist/react-chartjs/utils.js +8 -9
- package/dist/searchInputRaw/searchInputRaw.js +29 -7
- package/dist/searchInputRaw/types.d.ts +0 -1
- package/dist/selectField/selectField.d.ts +2 -3
- package/dist/selectList/selectList.d.ts +0 -1
- package/dist/selectList/selectList.js +12 -0
- package/dist/selectRaw/hooks/usePopupWidth.js +17 -7
- package/dist/selectRaw/selectRaw.js +20 -7
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/dist/skeleton/skeleton.js +6 -0
- package/dist/sortControl/sortControl.js +36 -6
- package/dist/stepperRaw/stepperRaw.js +64 -0
- package/dist/summaries/utils/splitIntoPairs.js +1 -2
- package/dist/summary/summary.js +12 -0
- package/dist/summaryTile/summaryTile.js +23 -7
- package/dist/summaryTile/summaryTileTrigger.js +17 -7
- package/dist/table/actions/actionsMenu.d.ts +0 -1
- package/dist/table/actions/actionsMenu.js +12 -0
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/detailPanel/detailPanel.js +6 -0
- package/dist/table/detailPanel/detailPanelHeader.js +12 -0
- package/dist/table/detailPanel/interfaces.d.ts +0 -1
- package/dist/table/flexible/columnSettings.js +13 -1
- package/dist/table/flexible/columnsList.js +1 -2
- package/dist/table/flexible/columnsPopup.js +7 -1
- package/dist/table/loading/useLoading.d.ts +10 -10
- package/dist/table/nested/nestedData.d.ts +3 -1
- package/dist/table/nested/useNestedRows.d.ts +2 -2
- package/dist/table/nested/useNestedRows.js +12 -0
- package/dist/table/selectable/selectableHeader.d.ts +2 -1
- package/dist/table/selectable/selectableHeader.js +61 -4
- package/dist/table/selectable/useSelectableRows.d.ts +1 -1
- package/dist/table/selectable/useSelectableRows.js +19 -4
- package/dist/table/sortable/mobileSortControl.js +71 -1
- package/dist/table/sortable/sortableHeader.js +14 -2
- package/dist/table/table.d.ts +16 -1
- package/dist/table/table.js +131 -23
- package/dist/tabs/tabs.js +20 -6
- package/dist/tag/tag.d.ts +19 -0
- package/dist/tag/tag.js +14 -0
- package/dist/textIconButton/textIconButton.js +17 -7
- package/dist/timePickerRaw/timePickerRaw.js +47 -5
- package/dist/toastRaw/toastRaw.d.ts +1 -1
- package/dist/toastRaw/toastRaw.js +9 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +29 -7
- package/dist/toggleButtonRaw/types.d.ts +0 -1
- package/dist/tooltip/tooltip.js +29 -7
- package/dist/tooltipInfo/tooltipInfo.d.ts +0 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/utils/compareElementsUtils/isArraysEqualDeeply.js +1 -2
- package/dist/utils/compareElementsUtils/isElementsEqual.js +2 -2
- package/dist/utils/escapeHtml.js +1 -2
- package/dist/utils/formatDate.js +228 -6
- package/dist/utils/localization/directionContext.d.ts +0 -1
- package/dist/utils/localization/getSupportedLanguage.d.ts +1 -1
- package/dist/utils/localization/getSupportedLanguage.js +7 -1
- package/dist/utils/localization/languageContext.d.ts +1 -2
- package/dist/utils/localization/translations/ar.json +110 -83
- package/dist/utils/localization/translations/bg-BG.json +358 -0
- package/dist/utils/localization/translations/cs.json +18 -1
- package/dist/utils/localization/translations/da-DK.json +84 -59
- package/dist/utils/localization/translations/de.json +18 -1
- package/dist/utils/localization/translations/el-GR.json +358 -0
- package/dist/utils/localization/translations/en.json +12 -1
- package/dist/utils/localization/translations/es.json +18 -1
- package/dist/utils/localization/translations/et-EE.json +358 -0
- package/dist/utils/localization/translations/fi-FI.json +84 -59
- package/dist/utils/localization/translations/fr-FR.json +18 -1
- package/dist/utils/localization/translations/fr.json +18 -1
- package/dist/utils/localization/translations/hu-HU.json +84 -59
- package/dist/utils/localization/translations/id.json +18 -1
- package/dist/utils/localization/translations/it.json +18 -1
- package/dist/utils/localization/translations/ja.json +18 -1
- package/dist/utils/localization/translations/ka-GE.json +358 -0
- package/dist/utils/localization/translations/ko-KR.json +18 -1
- package/dist/utils/localization/translations/lt-LT.json +358 -0
- package/dist/utils/localization/translations/lv-LV.json +358 -0
- package/dist/utils/localization/translations/ms.json +92 -67
- package/dist/utils/localization/translations/nb-NO.json +84 -59
- package/dist/utils/localization/translations/nl.json +94 -69
- package/dist/utils/localization/translations/pl.json +18 -1
- package/dist/utils/localization/translations/pt-BR.json +94 -69
- package/dist/utils/localization/translations/pt-PT.json +18 -1
- package/dist/utils/localization/translations/ro-RO.json +18 -1
- package/dist/utils/localization/translations/sk-SK.json +85 -60
- package/dist/utils/localization/translations/sv.json +94 -69
- package/dist/utils/localization/translations/th.json +18 -1
- package/dist/utils/localization/translations/tr.json +18 -1
- package/dist/utils/localization/translations/zh-Hans.json +18 -1
- package/dist/utils/localization/translations/zh-TW.json +18 -1
- package/dist/utils/localization/translationsDictionary.js +7 -1
- package/dist/utils/theme/themeContext.d.ts +0 -1
- package/dist/utils/topWindow/topWindowContext.d.ts +0 -1
- package/dist/utils/useFadeComponent.d.ts +0 -1
- package/dist/utils/userFormat/userFormatContext.d.ts +0 -1
- package/dist/waiting/waiting.d.ts +2 -1
- package/dist/waiting/waiting.js +23 -6
- package/esm/advancedGroupsFilter/advancedGroupsFilter.js +19 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.js +13 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.js +43 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +7 -1
- package/esm/alert/banner.d.ts +2 -3
- package/esm/alert/hooks/useAlertState.d.ts +0 -1
- package/esm/alertRaw/alertRaw.js +6 -0
- package/esm/banner/bannerMultipLine.d.ts +0 -1
- package/esm/banner/bannerMultipLine.js +6 -0
- package/esm/banner/bannerSingleLine.d.ts +0 -1
- package/esm/banner/bannerSingleLine.js +6 -0
- package/esm/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/esm/banner/utils/useSummaryBannerProp.js +32 -0
- package/esm/betaPill/betaPill.js +34 -10
- package/esm/bookmark/bookmark.js +14 -2
- package/esm/bulkEditControl/bulkEditControl.js +32 -2
- package/esm/calendar/calendar.js +182 -2
- package/esm/calendar/calendarUtils.js +107 -19
- package/esm/card/card.js +6 -0
- package/esm/card/components/content.d.ts +0 -1
- package/esm/chart/accessibleChart/accessibleChart.js +1 -1
- package/esm/chart/accessibleChart/accessibleChartNarrative.d.ts +1 -1
- package/esm/chart/accessibleChart/accessibleChartNarrative.js +186 -102
- package/esm/chart/accessibleChart/accessibleChartTable.js +42 -12
- package/esm/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/esm/chart/accessibleChart/generatePieNarrative.js +167 -0
- package/esm/chart/accessibleChart/interfaces.d.ts +1 -0
- package/esm/chart/barChart/getDefaultOptions.js +5 -6
- package/esm/chart/barChart.js +147 -50
- package/esm/chart/chart.js +15 -9
- package/esm/chart/chartAxis/chartAxis.js +14 -2
- package/esm/chart/interfaces.d.ts +0 -1
- package/esm/chart/lineChart/getDefaultOptions.js +5 -6
- package/esm/chart/lineChart/useChartTicks.d.ts +0 -1
- package/esm/chart/lineChart/useSummary.d.ts +7 -8
- package/esm/chart/lineChart.js +162 -59
- package/esm/chart/pieChart.js +169 -76
- package/esm/chart/plugins/linePlugin/linePlugin.js +29 -7
- package/esm/chart/utils/convertDates.d.ts +1 -1
- package/esm/chart/utils/getNiceAxisRange.d.ts +21 -0
- package/esm/chart/utils/getNiceAxisRange.js +72 -0
- package/esm/chart/utils/getRange.js +2 -2
- package/esm/chart/utils/getYAxisMeta.d.ts +2 -5
- package/esm/chart/utils/getYAxisMeta.js +17 -2
- package/esm/chart/utils/getYAxisTickCount.d.ts +15 -0
- package/esm/chart/utils/getYAxisTickCount.js +15 -0
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -1
- package/esm/checkboxListWithAction/checkboxListWithAction.js +36 -12
- package/esm/chip/chip.d.ts +0 -1
- package/esm/chip/chip.js +6 -0
- package/esm/chip/utils/useChip.d.ts +0 -1
- package/esm/columnsSelector/columnsSelector.js +13 -1
- package/esm/columnsSelector/columnsTab/columnsTab.js +6 -0
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.js +6 -0
- package/esm/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +0 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/esm/commonHelpers/hooks/breakpoints.d.ts +4 -0
- package/esm/commonHelpers/hooks/breakpoints.js +4 -0
- package/esm/commonHelpers/hooks/fetch.reducer.d.ts +1 -1
- package/esm/commonHelpers/hooks/useDebouncedMemo.d.ts +0 -1
- package/esm/commonHelpers/hooks/useDeviceType.js +2 -2
- package/esm/commonHelpers/hooks/useEscape.d.ts +1 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/esm/commonHelpers/hooks/useMobileOrTablet.d.ts +1 -0
- package/esm/commonHelpers/hooks/useMobileOrTablet.js +17 -0
- package/esm/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/esm/commonHelpers/hooks/useTablet.js +17 -0
- package/esm/dataFeed/dataFeed.d.ts +1 -1
- package/esm/dataFeed/dataFeed.js +2 -2
- package/esm/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataFeed/feedExpandControl/feedExpandControl.js +64 -0
- package/esm/dataGrid/cell/cell.d.ts +3 -1
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +7 -1
- package/esm/dataGrid/dataGrid.d.ts +13 -1
- package/esm/dataGrid/dataGrid.js +54 -3
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/esm/dataGrid/emptySearchList/emptySearchList.js +7 -1
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +7 -1
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.js +22 -10
- package/esm/dataGrid/row/row.d.ts +3 -1
- package/esm/dataGrid/withActions/withActions.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +13 -1
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +32 -0
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +6 -0
- package/esm/dataGrid/withLoading/withLoading.d.ts +1 -1
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +31 -1
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +1 -1
- package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +1 -1
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +50 -0
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +14 -2
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/esm/dateInputInner/dateInputInner.js +62 -20
- package/esm/dateInputInner/dateInputInnerControlBlock.js +12 -0
- package/esm/dateInputRaw/dateInputRaw.js +18 -0
- package/esm/dateInputRaw/utils/getLabel.js +21 -9
- package/esm/dateRangeInner/dateRangeInner.js +6 -0
- package/esm/dateRangeRaw/dateRangeRaw.js +121 -9
- package/esm/dateRangeRaw/utils/dateRangeUtils.js +108 -6
- package/esm/dateSelectionWrapper/dateSelectionWrapper.js +24 -0
- package/esm/dialog/dialog.d.ts +0 -1
- package/esm/dialog/dialogContent.js +6 -0
- package/esm/dropdown/dropdown.js +1 -1
- package/esm/dropdown/useDropdownState.d.ts +0 -1
- package/esm/dropdownRaw/dropdownList.d.ts +3 -2
- package/esm/dropdownRaw/dropdownList.js +67 -41
- package/esm/dropdownRaw/dropdownPopup.js +19 -1
- package/esm/dropdownRaw/dropdownRaw.js +42 -15
- package/esm/dropdownRaw/dropdownSearchableTrigger.js +27 -3
- package/esm/dropdownRaw/stateReducer/stateReducer.d.ts +4 -1
- package/esm/dropdownRaw/stateReducer/stateReducer.js +32 -22
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.js +5 -10
- package/esm/dropdownRaw/types.d.ts +20 -0
- package/esm/favoriteButton/favoriteButton.js +7 -1
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +0 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +0 -1
- package/esm/fileUpload/components/dropZoneContent.js +25 -1
- package/esm/fileUpload/components/templateDownloadSection.js +6 -0
- package/esm/fileUpload/components/uploadedFilesSection.js +21 -9
- package/esm/fileUpload/fileUpload.js +55 -19
- package/esm/filters/components/filtersContainer.js +19 -1
- package/esm/filters/components/filtersEmptyState.js +30 -18
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSaveModal.js +57 -27
- package/esm/filters/components/filtersSavedChipComponent.js +113 -47
- package/esm/filters/components/filtersSearchItemData.js +6 -0
- package/esm/filters/components/filtersSearchList.d.ts +0 -1
- package/esm/filters/components/filtersSearchList.js +83 -29
- package/esm/filters/components/filtersSelect.d.ts +0 -1
- package/esm/filters/components/filtersSelect.js +6 -0
- package/esm/filters/components/filtersSelectCompact.d.ts +0 -1
- package/esm/filters/components/filtersSelectListItem.d.ts +0 -1
- package/esm/filters/components/filtersSelectListItem.js +12 -0
- package/esm/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- package/esm/filters/components/filtersSidePanel.js +58 -10
- package/esm/filters/filters.js +45 -27
- package/esm/filters/filtersHelper.d.ts +1 -1
- package/esm/filters/filtersHooks.d.ts +0 -1
- package/esm/filtersBar/components/filtersBarDropdownWithCheckbox/filtersBarDropdownWithCheckbox.js +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +114 -6
- package/esm/filtersBar/components/resetComponentButton.js +6 -0
- package/esm/filtersBar/filtersBar.js +2 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- package/esm/filtersBar/filtersBarActions/filtersBarActions.js +50 -0
- package/esm/filtersBar/filtersBarInterfaces.d.ts +0 -1
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.d.ts +4 -10
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +12 -0
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +31 -1
- package/esm/filtersBar/filtersContainer/filtersContainer.js +20 -6
- package/esm/formField/components/formFieldAdditionalInfo.d.ts +0 -1
- package/esm/formField/components/formFieldCounter.d.ts +0 -1
- package/esm/formField/components/formFieldLoading.d.ts +0 -1
- package/esm/formField/components/formFieldSkeleton.d.ts +0 -1
- package/esm/formField/components/formFieldWithLabel.d.ts +0 -1
- package/esm/formField/components/formFieldWithoutLabel.d.ts +0 -1
- package/esm/formField/formField.d.ts +1 -1
- package/esm/formField/hooks/useBanner.d.ts +0 -1
- package/esm/formField/hooks/useDisabled.d.ts +1 -1
- package/esm/formField/hooks/useError.js +27 -9
- package/esm/formGroup/components/customRow/customRow.d.ts +0 -1
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +12 -0
- package/esm/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- package/esm/formGroup/hooks/listHooks/useStateToElements.js +1 -1
- package/esm/formGroup/hooks/useToggle.js +15 -9
- package/esm/formGroup/utils/formGroupProvider.d.ts +0 -1
- package/esm/formGroup/utils/isFormLabel.d.ts +1 -1
- package/esm/formGroupItem/formGroupItem.d.ts +0 -1
- package/esm/formLayout/components/layoutColumn/layoutColum.d.ts +0 -1
- package/esm/formLayout/hooks/useError.js +36 -18
- package/esm/formLayout/hooks/useFormButtons.d.ts +1 -1
- package/esm/formLayout/hooks/useFormButtons.js +18 -0
- package/esm/formLayout/types.d.ts +0 -1
- package/esm/formLayout/utils/attachHeadings.d.ts +1 -1
- package/esm/formLayout/utils/attachSeparators.d.ts +0 -1
- package/esm/formLayout/utils/getChildrenWithCustomColumns.d.ts +1 -2
- package/esm/formLayout/utils/getChildrenWithCustomColumns.js +2 -2
- package/esm/formLayout/utils/getFieldLabel.js +5 -5
- package/esm/formSection/components/actions.d.ts +0 -1
- package/esm/formSection/components/additional.d.ts +0 -1
- package/esm/formSection/hooks/useError.js +36 -18
- package/esm/formSection/utils/isFormSection.d.ts +2 -4
- package/esm/formStepper/components/formStep.js +6 -0
- package/esm/formStepper/components/formStepRaw.d.ts +0 -1
- package/esm/formStepper/formStepper.d.ts +0 -1
- package/esm/formStepper/formStepper.js +17 -5
- package/esm/formStepperButtons/formStepperButtons.js +27 -3
- package/esm/gridLayout/hooks/useStretch.js +1 -1
- package/esm/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/esm/gridLayout/utils/gridLayoutProvider.js +1 -1
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsHelper.d.ts +5 -5
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +24 -0
- package/esm/groupsFilterRaw/groupsFilterBox.js +20 -2
- package/esm/groupsFilterRaw/groupsFilterCommon.js +14 -2
- package/esm/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +30 -0
- package/esm/groupsFilterRaw/groupsFilterHelper.js +12 -0
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +52 -4
- package/esm/groupsFilterRaw/groupsFilterMenu.js +18 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.js +50 -2
- package/esm/groupsFilterRaw/groupsFilterTrigger.js +14 -2
- package/esm/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/esm/groupsFilterRaw/groupsHelper.js +132 -0
- package/esm/groupsFilterRaw/stateReducer/stateReducer.d.ts +1 -1
- package/esm/groupsFilterRaw/testData.js +1 -2
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +6 -0
- package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +5 -0
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +7 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.js +19 -1
- package/esm/header/headerBack.js +6 -0
- package/esm/header/headerButton.d.ts +0 -1
- package/esm/header/headerContext.d.ts +1 -2
- package/esm/header/headerHelpers.d.ts +5 -5
- package/esm/header/hooks/useNonFittingElements.d.ts +3 -4
- package/esm/headerTitle/headerTitle.d.ts +0 -1
- package/esm/icons/iconAce.d.ts +3 -0
- package/esm/icons/iconAce.js +8 -0
- package/esm/icons/iconBreak.d.ts +3 -0
- package/esm/icons/iconBreak.js +8 -0
- package/esm/icons/iconChevronStepper.d.ts +3 -0
- package/esm/icons/iconChevronStepper.js +8 -0
- package/esm/icons/iconPotato.d.ts +3 -0
- package/esm/icons/iconPotato.js +8 -0
- package/esm/icons/iconToggleLarge.d.ts +3 -0
- package/esm/icons/iconToggleLarge.js +8 -0
- package/esm/icons/iconToggleSmall.d.ts +3 -0
- package/esm/icons/iconToggleSmall.js +8 -0
- package/esm/icons/iconTrendNeutral.d.ts +3 -0
- package/esm/icons/iconTrendNeutral.js +8 -0
- package/esm/icons/iconTruck.d.ts +3 -0
- package/esm/icons/iconTruck.js +8 -0
- package/esm/index.d.ts +8 -0
- package/esm/index.js +8 -0
- package/esm/layout/layout.d.ts +2 -1
- package/esm/layout/layoutBanner.d.ts +0 -1
- package/esm/lineChart/lineChart.d.ts +1 -0
- package/esm/lineChart/lineChart.js +129 -69
- package/esm/lineChartMini/lineChartMini.d.ts +1 -0
- package/esm/lineChartMini/lineChartMini.js +136 -73
- package/esm/list/itemData/itemData.d.ts +2 -1
- package/esm/list/itemData/itemDataInternal.d.ts +2 -1
- package/esm/list/itemData/itemDataInternal.js +12 -0
- package/esm/list/list.d.ts +0 -1
- package/esm/list/listItem/listItem.js +12 -0
- package/esm/list/utils/isDataListitem.d.ts +1 -1
- package/esm/list/viewportProvider/viewportContext.d.ts +0 -1
- package/esm/menu/components/controlledMenuList/controlledMenuList.d.ts +2 -4
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +3 -1
- package/esm/menu/components/menuErrorItem.js +30 -18
- package/esm/menu/utils/useDisplayContent.d.ts +21 -0
- package/esm/menu/utils/useDisplayContent.js +31 -0
- package/esm/mobileSheet/components/mobileSheetTitle.d.ts +0 -1
- package/esm/mobileSheet/mobileSheet.js +12 -0
- package/esm/modal/modal.js +6 -0
- package/esm/nav/context/nav.context.d.ts +0 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.js +12 -0
- package/esm/nav/navFooter/navFooter.d.ts +1 -1
- package/esm/nav/navFooter/navFooter.js +15 -9
- package/esm/nav/navFooter/navFooterAction/navFooterAction.d.ts +2 -1
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +9 -1
- package/esm/nav/navHeader/navHeader.js +30 -18
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +21 -9
- package/esm/nav/navItem/navItem.d.ts +2 -0
- package/esm/nav/navItem/navItem.js +57 -48
- package/esm/nav/navItem/navItemContent.d.ts +19 -0
- package/esm/nav/navItem/navItemContent.js +17 -0
- package/esm/nav/navItem/navItemType.d.ts +7 -0
- package/esm/nav/navItem/navItemType.js +6 -0
- package/esm/nav/navMobileBar/navMobileBar.js +6 -0
- package/esm/nav/utils/navUtils.d.ts +2 -4
- package/esm/notification/notification.js +6 -0
- package/esm/overview/overview.d.ts +0 -1
- package/esm/pageHeader/pageHeader.d.ts +1 -1
- package/esm/pageHeader/pageHeaderButton.d.ts +0 -1
- package/esm/pageHeader/pageHeaderHelpers.d.ts +1 -1
- package/esm/pageHeader/pageHeaderMenu.d.ts +0 -1
- package/esm/pagination/paginationArrow.d.ts +0 -1
- package/esm/pagination/paginationArrow.js +12 -0
- package/esm/pagination/paginationText/paginationText.js +6 -0
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +6 -0
- package/esm/pill/interfaces/pill.interface.d.ts +0 -1
- package/esm/pillBox/components/pillBoxItem.d.ts +1 -2
- package/esm/pillBox/components/pillBoxItem.js +6 -0
- package/esm/pillBox/pillBox.js +19 -1
- package/esm/pillExpandable/pillExpandable.js +6 -0
- package/esm/progressIndicator/progressIndicator.d.ts +39 -0
- package/esm/progressIndicator/progressIndicator.js +26 -0
- package/esm/progressIndicator/progressIndicatorUtils.d.ts +12 -0
- package/esm/progressIndicator/progressIndicatorUtils.js +25 -0
- package/esm/radioGroupRaw/types.d.ts +0 -1
- package/esm/rangeRaw/rangeRaw.js +44 -2
- package/esm/rangeRaw/utils/rangeHelper.js +45 -3
- package/esm/react-chartjs/utils.d.ts +3 -3
- package/esm/searchInputRaw/searchInputRaw.js +12 -0
- package/esm/searchInputRaw/types.d.ts +0 -1
- package/esm/selectField/selectField.d.ts +2 -3
- package/esm/selectList/selectList.d.ts +0 -1
- package/esm/selectList/selectList.js +12 -0
- package/esm/selectRaw/selectRaw.js +3 -0
- package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/esm/skeleton/skeleton.js +6 -0
- package/esm/sortControl/sortControl.js +36 -6
- package/esm/stepperRaw/stepperRaw.js +64 -0
- package/esm/summary/summary.js +12 -0
- package/esm/summaryTile/summaryTile.js +6 -0
- package/esm/table/actions/actionsMenu.d.ts +0 -1
- package/esm/table/actions/actionsMenu.js +12 -0
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/detailPanel/detailPanel.js +6 -0
- package/esm/table/detailPanel/detailPanelHeader.js +12 -0
- package/esm/table/detailPanel/interfaces.d.ts +0 -1
- package/esm/table/flexible/columnSettings.js +13 -1
- package/esm/table/flexible/columnsPopup.js +7 -1
- package/esm/table/loading/useLoading.d.ts +10 -10
- package/esm/table/nested/nestedData.d.ts +3 -1
- package/esm/table/nested/useNestedRows.d.ts +2 -2
- package/esm/table/nested/useNestedRows.js +12 -0
- package/esm/table/selectable/selectableHeader.d.ts +2 -1
- package/esm/table/selectable/selectableHeader.js +61 -4
- package/esm/table/selectable/useSelectableRows.d.ts +1 -1
- package/esm/table/selectable/useSelectableRows.js +19 -4
- package/esm/table/sortable/mobileSortControl.js +71 -1
- package/esm/table/sortable/sortableHeader.js +14 -2
- package/esm/table/table.d.ts +16 -1
- package/esm/table/table.js +132 -24
- package/esm/tabs/tabs.js +20 -6
- package/esm/tag/tag.d.ts +19 -0
- package/esm/tag/tag.js +10 -0
- package/esm/testHelpers/geotab-axe/index.d.ts +0 -1
- package/esm/timePickerRaw/timePickerRaw.js +47 -5
- package/esm/toastRaw/toastRaw.d.ts +1 -1
- package/esm/toastRaw/toastRaw.js +9 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +12 -0
- package/esm/toggleButtonRaw/types.d.ts +0 -1
- package/esm/tooltip/tooltip.js +12 -0
- package/esm/tooltipInfo/tooltipInfo.d.ts +0 -1
- package/esm/tsconfig.esm.tsbuildinfo +1 -0
- package/esm/utils/formatDate.js +228 -6
- package/esm/utils/localization/directionContext.d.ts +0 -1
- package/esm/utils/localization/getSupportedLanguage.d.ts +1 -1
- package/esm/utils/localization/getSupportedLanguage.js +7 -1
- package/esm/utils/localization/languageContext.d.ts +1 -2
- package/esm/utils/localization/translations/ar.json +110 -83
- package/esm/utils/localization/translations/bg-BG.json +358 -0
- package/esm/utils/localization/translations/cs.json +18 -1
- package/esm/utils/localization/translations/da-DK.json +84 -59
- package/esm/utils/localization/translations/de.json +18 -1
- package/esm/utils/localization/translations/el-GR.json +358 -0
- package/esm/utils/localization/translations/en.json +12 -1
- package/esm/utils/localization/translations/es.json +18 -1
- package/esm/utils/localization/translations/et-EE.json +358 -0
- package/esm/utils/localization/translations/fi-FI.json +84 -59
- package/esm/utils/localization/translations/fr-FR.json +18 -1
- package/esm/utils/localization/translations/fr.json +18 -1
- package/esm/utils/localization/translations/hu-HU.json +84 -59
- package/esm/utils/localization/translations/id.json +18 -1
- package/esm/utils/localization/translations/it.json +18 -1
- package/esm/utils/localization/translations/ja.json +18 -1
- package/esm/utils/localization/translations/ka-GE.json +358 -0
- package/esm/utils/localization/translations/ko-KR.json +18 -1
- package/esm/utils/localization/translations/lt-LT.json +358 -0
- package/esm/utils/localization/translations/lv-LV.json +358 -0
- package/esm/utils/localization/translations/ms.json +92 -67
- package/esm/utils/localization/translations/nb-NO.json +84 -59
- package/esm/utils/localization/translations/nl.json +94 -69
- package/esm/utils/localization/translations/pl.json +18 -1
- package/esm/utils/localization/translations/pt-BR.json +94 -69
- package/esm/utils/localization/translations/pt-PT.json +18 -1
- package/esm/utils/localization/translations/ro-RO.json +18 -1
- package/esm/utils/localization/translations/sk-SK.json +85 -60
- package/esm/utils/localization/translations/sv.json +94 -69
- package/esm/utils/localization/translations/th.json +18 -1
- package/esm/utils/localization/translations/tr.json +18 -1
- package/esm/utils/localization/translations/zh-Hans.json +18 -1
- package/esm/utils/localization/translations/zh-TW.json +18 -1
- package/esm/utils/localization/translationsDictionary.js +7 -1
- package/esm/utils/theme/themeContext.d.ts +0 -1
- package/esm/utils/topWindow/topWindowContext.d.ts +0 -1
- package/esm/utils/useFadeComponent.d.ts +0 -1
- package/esm/utils/userFormat/userFormatContext.d.ts +0 -1
- package/esm/waiting/waiting.d.ts +2 -1
- package/esm/waiting/waiting.js +24 -7
- package/package.json +13 -6
- package/esm/gridLayout/hooks/useTablet.js +0 -20
- /package/dist/{gridLayout → commonHelpers}/hooks/useTablet.d.ts +0 -0
- /package/esm/{gridLayout → commonHelpers}/hooks/useTablet.d.ts +0 -0
|
@@ -52,9 +52,32 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
52
52
|
const y = chart.verticalLine.y;
|
|
53
53
|
const topY = chart.chartArea.top;
|
|
54
54
|
const bottomY = chart.chartArea.bottom;
|
|
55
|
-
drawLine(ctx, x, topY, bottomY);
|
|
56
55
|
const datasets = chart.data.datasets;
|
|
57
56
|
let lowestValueY = Infinity;
|
|
57
|
+
const xScale = chart.scales.x;
|
|
58
|
+
let snappedX = x;
|
|
59
|
+
let closestDist = Infinity;
|
|
60
|
+
datasets.forEach((dataset, dsIndex) => {
|
|
61
|
+
if (!chart.isDatasetVisible(dsIndex)) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (chart.getDatasetMeta(dsIndex).type !== "line") {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const dataPoints = dataset.data;
|
|
68
|
+
for (const point of dataPoints) {
|
|
69
|
+
if (point.y === null) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const px = xScale.getPixelForValue(point.x);
|
|
73
|
+
const dist = Math.abs(px - x);
|
|
74
|
+
if (dist < closestDist) {
|
|
75
|
+
closestDist = dist;
|
|
76
|
+
snappedX = px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
drawLine(ctx, snappedX, topY, bottomY);
|
|
58
81
|
const items = datasets
|
|
59
82
|
.map((dataset, dsIndex) => {
|
|
60
83
|
if (!chart.isDatasetVisible(dsIndex)) {
|
|
@@ -63,8 +86,7 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
63
86
|
if (chart.getDatasetMeta(dsIndex).type !== "line") {
|
|
64
87
|
return undefined;
|
|
65
88
|
}
|
|
66
|
-
const
|
|
67
|
-
const value = getInterpolatedValue(xScale, chart.data, dsIndex, x);
|
|
89
|
+
const value = getInterpolatedValue(xScale, chart.data, dsIndex, snappedX);
|
|
68
90
|
const yAxisID = dataset.yAxisID || "y";
|
|
69
91
|
const yScale = chart.scales[yAxisID];
|
|
70
92
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
@@ -92,8 +114,8 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
92
114
|
return;
|
|
93
115
|
}
|
|
94
116
|
const chartRect = chart.canvas.getBoundingClientRect();
|
|
95
|
-
const top = chartRect.top + (lowestValueY
|
|
96
|
-
const left = chartRect.left +
|
|
117
|
+
const top = chartRect.top + (lowestValueY !== Infinity ? lowestValueY : y);
|
|
118
|
+
const left = chartRect.left + snappedX;
|
|
97
119
|
if (zen.document === undefined) {
|
|
98
120
|
return;
|
|
99
121
|
}
|
|
@@ -110,8 +132,8 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
110
132
|
xLabel = scaleLabels[elementIdx];
|
|
111
133
|
}
|
|
112
134
|
else {
|
|
113
|
-
const xValue = chart.scales.x.getValueForPixel(
|
|
114
|
-
xLabel = xValue ? chart.scales.x.getLabelForValue(xValue) : undefined;
|
|
135
|
+
const xValue = chart.scales.x.getValueForPixel(snappedX);
|
|
136
|
+
xLabel = xValue !== undefined ? chart.scales.x.getLabelForValue(xValue) : undefined;
|
|
115
137
|
}
|
|
116
138
|
renderTooltip(containerId, left + scrollLeft, top + scrollTop, "top", items, options === null || options === void 0 ? void 0 : options.title, options && options.subtitle !== undefined ? options.subtitle : xLabel, (options === null || options === void 0 ? void 0 : options.note) || undefined, isDark);
|
|
117
139
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IBarChartData } from "../barChart/interfaces";
|
|
2
2
|
import { ILineChartData } from "../lineChart/interfaces";
|
|
3
|
-
export declare const convertDates: (data: ILineChartData | IBarChartData, toLocalDateTime: (date: Date | string) => Date) =>
|
|
3
|
+
export declare const convertDates: (data: ILineChartData | IBarChartData, toLocalDateTime: (date: Date | string) => Date) => typeof data;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computes a Y-axis min/max pair that:
|
|
3
|
+
* - Fully contains the original [min, max] range.
|
|
4
|
+
* - Splits into exactly `tickCount - 1` equal, "nice" (round-number) steps, so an axis
|
|
5
|
+
* configured with this min/max and `ticks.count = tickCount` renders exactly `tickCount`
|
|
6
|
+
* human-friendly tick values (e.g. 0, 25, 50, 75, 100) instead of arbitrary decimals.
|
|
7
|
+
*
|
|
8
|
+
* This is what allows forcing the same `ticks.count` across multiple Y-axes (see
|
|
9
|
+
* getYAxisTickCount) without sacrificing round-number tick labels: Chart.js's own tick
|
|
10
|
+
* generator produces evenly-spaced (but not necessarily round) values whenever `ticks.count`
|
|
11
|
+
* is combined with an explicit `min`/`max`, so the min/max passed in must already be "niced".
|
|
12
|
+
*
|
|
13
|
+
* **Precondition:** `min <= max`. An inverted range (`min > max`) produces a negative
|
|
14
|
+
* `rawStep`, which causes an early return of the original pair unchanged — Chart.js does not
|
|
15
|
+
* handle inverted axes gracefully. The current call chain enforces this via `normalizeRange`,
|
|
16
|
+
* so the inverted case is unreachable in practice; direct callers must guarantee it themselves.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getNiceAxisRange: (min: number, max: number, tickCount: number) => {
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Classic "nice numbers" step candidates, used to pick human-friendly tick spacing
|
|
2
|
+
// (e.g. 1, 2, 2.5, 5, 10, 20, 25, 50, 100...) instead of arbitrary decimals. 2.5 is included
|
|
3
|
+
// alongside the more common 1-2-5 sequence because omitting it causes the axis range to
|
|
4
|
+
// overshoot the data significantly more often (e.g. a range of 94 rounds up to a step of 50,
|
|
5
|
+
// i.e. a span of 200, instead of a step of 25, i.e. a span of 100).
|
|
6
|
+
const NICE_STEP_MULTIPLIERS = [1, 2, 2.5, 5];
|
|
7
|
+
/**
|
|
8
|
+
* Returns a sorted list of "nice" step candidates at or above `minStep`, spanning a few orders
|
|
9
|
+
* of magnitude so callers can pick the smallest one that satisfies their range requirement.
|
|
10
|
+
*/
|
|
11
|
+
const getNiceStepCandidatesAtLeast = (minStep) => {
|
|
12
|
+
if (!Number.isFinite(minStep) || minStep <= 0) {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
const exponent = Math.floor(Math.log10(minStep));
|
|
16
|
+
const candidates = [];
|
|
17
|
+
// Search a window around the raw step's magnitude; one order of magnitude below covers
|
|
18
|
+
// rounding edge cases (e.g. minStep just above a power of ten), and several above ensure
|
|
19
|
+
// we can always find a candidate whose range covers the data even for very large steps.
|
|
20
|
+
for (let e = exponent - 1; e <= exponent + 6; e++) {
|
|
21
|
+
for (const multiplier of NICE_STEP_MULTIPLIERS) {
|
|
22
|
+
candidates.push(multiplier * Math.pow(10, e));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return candidates.filter(candidate => candidate >= minStep * 0.999).sort((a, b) => a - b);
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Rounds `value` to a sensible number of decimal places derived from `step`'s magnitude, to
|
|
29
|
+
* avoid floating point artifacts like 0.30000000000000004 ending up in tick labels.
|
|
30
|
+
*/
|
|
31
|
+
const roundToStepPrecision = (value, step) => {
|
|
32
|
+
const decimals = Math.max(0, -Math.floor(Math.log10(step)) + 2);
|
|
33
|
+
const factor = Math.pow(10, decimals);
|
|
34
|
+
return Math.round(value * factor) / factor;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Computes a Y-axis min/max pair that:
|
|
38
|
+
* - Fully contains the original [min, max] range.
|
|
39
|
+
* - Splits into exactly `tickCount - 1` equal, "nice" (round-number) steps, so an axis
|
|
40
|
+
* configured with this min/max and `ticks.count = tickCount` renders exactly `tickCount`
|
|
41
|
+
* human-friendly tick values (e.g. 0, 25, 50, 75, 100) instead of arbitrary decimals.
|
|
42
|
+
*
|
|
43
|
+
* This is what allows forcing the same `ticks.count` across multiple Y-axes (see
|
|
44
|
+
* getYAxisTickCount) without sacrificing round-number tick labels: Chart.js's own tick
|
|
45
|
+
* generator produces evenly-spaced (but not necessarily round) values whenever `ticks.count`
|
|
46
|
+
* is combined with an explicit `min`/`max`, so the min/max passed in must already be "niced".
|
|
47
|
+
*
|
|
48
|
+
* **Precondition:** `min <= max`. An inverted range (`min > max`) produces a negative
|
|
49
|
+
* `rawStep`, which causes an early return of the original pair unchanged — Chart.js does not
|
|
50
|
+
* handle inverted axes gracefully. The current call chain enforces this via `normalizeRange`,
|
|
51
|
+
* so the inverted case is unreachable in practice; direct callers must guarantee it themselves.
|
|
52
|
+
*/
|
|
53
|
+
export const getNiceAxisRange = (min, max, tickCount) => {
|
|
54
|
+
if (!Number.isFinite(min) || !Number.isFinite(max) || tickCount < 2) {
|
|
55
|
+
return { min, max };
|
|
56
|
+
}
|
|
57
|
+
const safeMax = min === max ? min + 1 : max;
|
|
58
|
+
const rawStep = (safeMax - min) / (tickCount - 1);
|
|
59
|
+
if (!(rawStep > 0)) {
|
|
60
|
+
return { min, max: safeMax };
|
|
61
|
+
}
|
|
62
|
+
const candidates = getNiceStepCandidatesAtLeast(rawStep);
|
|
63
|
+
for (const step of candidates) {
|
|
64
|
+
const niceMin = Math.floor(min / step) * step;
|
|
65
|
+
const niceMax = niceMin + step * (tickCount - 1);
|
|
66
|
+
if (niceMax >= safeMax) {
|
|
67
|
+
return { min: roundToStepPrecision(niceMin, step), max: roundToStepPrecision(niceMax, step) };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// Should be unreachable given the generated candidate range, but fall back safely.
|
|
71
|
+
return { min, max: safeMax };
|
|
72
|
+
};
|
|
@@ -3,12 +3,12 @@ export const getRange = (data) => {
|
|
|
3
3
|
const { min, max } = getMinMax(data);
|
|
4
4
|
let range = max - min;
|
|
5
5
|
if (range === 0) {
|
|
6
|
-
range = min * 0.1;
|
|
6
|
+
range = Math.abs(min) * 0.1;
|
|
7
7
|
}
|
|
8
8
|
const suggestedMin = min - range * 0.1;
|
|
9
9
|
const suggestedMax = max + range * 0.1;
|
|
10
10
|
return {
|
|
11
|
-
min: suggestedMin,
|
|
11
|
+
min: min >= 0 && suggestedMin < 0 ? 0 : suggestedMin,
|
|
12
12
|
max: suggestedMax
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
+
import { IYAxisMeta } from "../interfaces";
|
|
1
2
|
import { ILineChartData } from "../lineChart/interfaces";
|
|
2
3
|
import { IBarChartData } from "../barChart/interfaces";
|
|
3
|
-
export declare const getYAxisMeta: (data: ILineChartData | IBarChartData, stacked?: boolean) =>
|
|
4
|
-
min: number;
|
|
5
|
-
max: number;
|
|
6
|
-
name: string;
|
|
7
|
-
}[];
|
|
4
|
+
export declare const getYAxisMeta: (data: ILineChartData | IBarChartData, stacked?: boolean) => IYAxisMeta[];
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { getRange } from "./getRange";
|
|
2
2
|
import { mergeRanges } from "./mergeRanges";
|
|
3
3
|
import { normalizeRange } from "./normalizeRange";
|
|
4
|
+
import { getNiceAxisRange } from "./getNiceAxisRange";
|
|
5
|
+
import { getYAxisTickCount } from "./getYAxisTickCount";
|
|
6
|
+
// When there is more than one Y-axis, snap every axis's min/max to a shared "nice" tick count
|
|
7
|
+
// (see getYAxisTickCount/getNiceAxisRange) so the chart can render the same number of
|
|
8
|
+
// round-number tick increments on each axis, keeping their horizontal grid lines aligned.
|
|
9
|
+
// Single-axis charts are returned unchanged.
|
|
10
|
+
const alignYAxisRanges = (axes) => {
|
|
11
|
+
const tickCount = getYAxisTickCount(axes.length);
|
|
12
|
+
if (!tickCount) {
|
|
13
|
+
return axes;
|
|
14
|
+
}
|
|
15
|
+
return axes.map(axis => (Object.assign(Object.assign({}, axis), getNiceAxisRange(axis.min, axis.max, tickCount))));
|
|
16
|
+
};
|
|
4
17
|
export const getYAxisMeta = (data, stacked = false) => {
|
|
5
18
|
if (data.datasets.length === 0) {
|
|
6
19
|
return [
|
|
@@ -31,7 +44,7 @@ export const getYAxisMeta = (data, stacked = false) => {
|
|
|
31
44
|
valuesByX.set(xKey, existing);
|
|
32
45
|
});
|
|
33
46
|
});
|
|
34
|
-
|
|
47
|
+
const stackedResult = Object.values(axisMap).map(axis => {
|
|
35
48
|
const stackedValues = [];
|
|
36
49
|
axis.valuesByX.forEach(value => {
|
|
37
50
|
// Always include 0 as the baseline for stacked charts
|
|
@@ -49,6 +62,7 @@ export const getYAxisMeta = (data, stacked = false) => {
|
|
|
49
62
|
const normalized = normalizeRange(range);
|
|
50
63
|
return Object.assign({ name: axis.name }, normalized);
|
|
51
64
|
});
|
|
65
|
+
return alignYAxisRanges(stackedResult);
|
|
52
66
|
}
|
|
53
67
|
const axisMap = data.datasets.reduce((acc, ds) => {
|
|
54
68
|
const name = ds.yAxisID ? ds.yAxisID : "y";
|
|
@@ -59,5 +73,6 @@ export const getYAxisMeta = (data, stacked = false) => {
|
|
|
59
73
|
acc[name] = Object.assign({ name: name }, totalRange);
|
|
60
74
|
return acc;
|
|
61
75
|
}, {});
|
|
62
|
-
|
|
76
|
+
const result = Object.values(axisMap).map(el => (Object.assign(Object.assign({}, el), normalizeRange(el))));
|
|
77
|
+
return alignYAxisRanges(result);
|
|
63
78
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When a chart renders more than one Y-axis (e.g. a primary/left axis and a secondary/right
|
|
3
|
+
* axis), Chart.js computes "nice" tick values independently per axis by default. Because each
|
|
4
|
+
* axis has its own data range, this frequently produces a different number of tick increments
|
|
5
|
+
* on each axis, which causes the horizontal grid lines to misalign between axes.
|
|
6
|
+
*
|
|
7
|
+
* Forcing every Y-axis to the same explicit `ticks.count` makes Chart.js generate that exact
|
|
8
|
+
* number of evenly-spaced ticks between each axis's own min/max, so the number of increments
|
|
9
|
+
* (and therefore the grid line positions) stay consistent across all Y-axes.
|
|
10
|
+
*
|
|
11
|
+
* Single-axis charts are left untouched (returns `undefined`, so Chart.js falls back to its
|
|
12
|
+
* default "nice ticks" behavior) since there is no second axis to align against.
|
|
13
|
+
*/
|
|
14
|
+
export declare const DUAL_YAXIS_TICK_COUNT = 5;
|
|
15
|
+
export declare const getYAxisTickCount: (yAxisCount: number) => number | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When a chart renders more than one Y-axis (e.g. a primary/left axis and a secondary/right
|
|
3
|
+
* axis), Chart.js computes "nice" tick values independently per axis by default. Because each
|
|
4
|
+
* axis has its own data range, this frequently produces a different number of tick increments
|
|
5
|
+
* on each axis, which causes the horizontal grid lines to misalign between axes.
|
|
6
|
+
*
|
|
7
|
+
* Forcing every Y-axis to the same explicit `ticks.count` makes Chart.js generate that exact
|
|
8
|
+
* number of evenly-spaced ticks between each axis's own min/max, so the number of increments
|
|
9
|
+
* (and therefore the grid line positions) stay consistent across all Y-axes.
|
|
10
|
+
*
|
|
11
|
+
* Single-axis charts are left untouched (returns `undefined`, so Chart.js falls back to its
|
|
12
|
+
* default "nice ticks" behavior) since there is no second axis to align against.
|
|
13
|
+
*/
|
|
14
|
+
export const DUAL_YAXIS_TICK_COUNT = 5;
|
|
15
|
+
export const getYAxisTickCount = (yAxisCount) => (yAxisCount > 1 ? DUAL_YAXIS_TICK_COUNT : undefined);
|
|
@@ -34,7 +34,13 @@ injectString("tr", "Number of selected child groups - {count}", "Se\xE7ilen alt
|
|
|
34
34
|
injectString("zh-Hans", "Number of selected child groups - {count}", "\u9009\u4E2D\u7684\u5B50\u7EC4\u6570\u91CF - {count}");
|
|
35
35
|
injectString("zh-TW", "Number of selected child groups - {count}", "\u6240\u9078\u5B50\u7FA4\u7D44\u7684\u6578\u76EE - {count}");
|
|
36
36
|
injectString("ro-RO", "Number of selected child groups - {count}", "Num\u0103r de grupuri derivate selectate \u2013 {count}");
|
|
37
|
-
injectString("ar", "Number of selected child groups - {count}", "\u0639\u062F\u062F \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\
|
|
37
|
+
injectString("ar", "Number of selected child groups - {count}", "\u0639\u062F\u062F \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u062A\u0627\u0628\u0639\u0629 \u0627\u0644\u0645\u062D\u062F\u062F\u0629 - {count}");
|
|
38
|
+
injectString("lt-LT", "Number of selected child groups - {count}", "Pasirinkt\u0173 pogrupi\u0173 skai\u010Dius - {count}");
|
|
39
|
+
injectString("lv-LV", "Number of selected child groups - {count}", "Atlas\u012Bto apak\u0161grupu skaits - {count}");
|
|
40
|
+
injectString("ka-GE", "Number of selected child groups - {count}", "\u10D0\u10E0\u10E9\u10D4\u10E3\u10DA\u10D8 \u10E5\u10D5\u10D4\u10EF\u10D2\u10E3\u10E4\u10D4\u10D1\u10D8\u10E1 \u10E0\u10D0\u10DD\u10D3\u10D4\u10DC\u10DD\u10D1\u10D0 - {count}");
|
|
41
|
+
injectString("el-GR", "Number of selected child groups - {count}", "\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03C9\u03BD \u03C5\u03C0\u03BF\u03BF\u03BC\u03AC\u03B4\u03C9\u03BD - {count}");
|
|
42
|
+
injectString("et-EE", "Number of selected child groups - {count}", "Valitud alamgruppide arv - {count}");
|
|
43
|
+
injectString("bg-BG", "Number of selected child groups - {count}", "\u0411\u0440\u043E\u0439 \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u043F\u043E\u0434\u0433\u0440\u0443\u043F\u0438 - {count}");
|
|
38
44
|
injectString("cs", "View {groupName} children", "Zobrazit pod\u0159\xEDzen\xE9 pro {groupName}");
|
|
39
45
|
injectString("da-DK", "View {groupName} children", "Se {groupName} b\xF8rn");
|
|
40
46
|
injectString("de", "View {groupName} children", "Untergruppen von {groupName} ansehen");
|
|
@@ -61,7 +67,13 @@ injectString("tr", "View {groupName} children", "{groupName} alt \xF6\u011Feleri
|
|
|
61
67
|
injectString("zh-Hans", "View {groupName} children", "\u67E5\u770B {groupName} \u5B50\u7EC4");
|
|
62
68
|
injectString("zh-TW", "View {groupName} children", "\u6AA2\u8996\u300C{groupName}\u300D\u5B50\u7FA4\u7D44");
|
|
63
69
|
injectString("ro-RO", "View {groupName} children", "Vede\u021Bi derivatele {groupName}");
|
|
64
|
-
injectString("ar", "View {groupName} children", "\u0639\u0631\u0636 \
|
|
70
|
+
injectString("ar", "View {groupName} children", "\u0639\u0631\u0636 \u062A\u0648\u0627\u0628\u0639 {groupName}");
|
|
71
|
+
injectString("lt-LT", "View {groupName} children", "Per\u017Ei\u016Br\u0117ti {groupName} pogrupius");
|
|
72
|
+
injectString("lv-LV", "View {groupName} children", "Skat\u012Bt {groupName} apak\u0161grupas");
|
|
73
|
+
injectString("ka-GE", "View {groupName} children", "{groupName} \u10E5\u10D5\u10D4\u10EF\u10D2\u10E3\u10E4\u10D4\u10D1\u10D8\u10E1 \u10DC\u10D0\u10EE\u10D5\u10D0");
|
|
74
|
+
injectString("el-GR", "View {groupName} children", "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C5\u03C0\u03BF\u03BF\u03BC\u03AC\u03B4\u03C9\u03BD {groupName}");
|
|
75
|
+
injectString("et-EE", "View {groupName} children", "Vaata {groupName} alamgruppe");
|
|
76
|
+
injectString("bg-BG", "View {groupName} children", "\u041F\u0440\u0435\u0433\u043B\u0435\u0434 \u043D\u0430 \u043F\u043E\u0434\u0433\u0440\u0443\u043F\u0438 \u043D\u0430 {groupName}");
|
|
65
77
|
injectString("cs", "Toggle {groupName} filter", "P\u0159epnout filtr pro {groupName}");
|
|
66
78
|
injectString("da-DK", "Toggle {groupName} filter", "Sl\xE5 {groupName} filter til og fra");
|
|
67
79
|
injectString("de", "Toggle {groupName} filter", "Filter f\xFCr {groupName} ein-/ausschalten");
|
|
@@ -88,34 +100,46 @@ injectString("tr", "Toggle {groupName} filter", "{groupName} filtresini de\u011F
|
|
|
88
100
|
injectString("zh-Hans", "Toggle {groupName} filter", "\u5207\u6362 {groupName} \u7B5B\u9009\u5668");
|
|
89
101
|
injectString("zh-TW", "Toggle {groupName} filter", "\u5207\u63DB\u300C{groupName}\u300D\u7BE9\u9078\u689D\u4EF6");
|
|
90
102
|
injectString("ro-RO", "Toggle {groupName} filter", "Activa\u021Bi filtrul {groupName}");
|
|
91
|
-
injectString("ar", "Toggle {groupName} filter", "\u062A\u0628\u062F\u064A\u0644 \u062A\u0635\u0641\u064A\u0629 {groupName}");
|
|
103
|
+
injectString("ar", "Toggle {groupName} filter", "\u062A\u0628\u062F\u064A\u0644 \u0639\u0627\u0645\u0644 \u062A\u0635\u0641\u064A\u0629 {groupName}");
|
|
104
|
+
injectString("lt-LT", "Toggle {groupName} filter", "\u012Ejungti / i\u0161jungti {groupName} filtr\u0105");
|
|
105
|
+
injectString("lv-LV", "Toggle {groupName} filter", "Iesl\u0113gt/izsl\u0113gt {groupName} filtru");
|
|
106
|
+
injectString("ka-GE", "Toggle {groupName} filter", "{groupName} \u10E4\u10D8\u10DA\u10E2\u10E0\u10D8\u10E1 \u10D2\u10D0\u10D3\u10D0\u10E0\u10D7\u10D5\u10D0");
|
|
107
|
+
injectString("el-GR", "Toggle {groupName} filter", "\u0395\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C6\u03AF\u03BB\u03C4\u03C1\u03BF\u03C5 {groupName}");
|
|
108
|
+
injectString("et-EE", "Toggle {groupName} filter", "L\xFClita {groupName} filter");
|
|
109
|
+
injectString("bg-BG", "Toggle {groupName} filter", "\u041F\u0440\u0435\u0432\u043A\u043B\u044E\u0447\u0432\u0430\u043D\u0435 \u043D\u0430 \u0444\u0438\u043B\u0442\u044A\u0440\u0430 \u0437\u0430 {groupName}");
|
|
92
110
|
injectString("cs", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
93
|
-
injectString("da-DK", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
111
|
+
injectString("da-DK", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har yderligere handlinger. Brug h\xF8jre pil for at \xE5bne knappen, venstre pil for at vende tilbage.");
|
|
94
112
|
injectString("de", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
95
113
|
injectString("en", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
96
114
|
injectString("es", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
97
|
-
injectString("fi-FI", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
115
|
+
injectString("fi-FI", "Has additional actions. Use right arrow to access button, left arrow to return.", "Sis\xE4lt\xE4\xE4 lis\xE4toimintoja. Siirry painikkeeseen oikealla nuolella, palaa vasemmalla nuolella.");
|
|
98
116
|
injectString("fr", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
99
117
|
injectString("fr-FR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
100
|
-
injectString("hu-HU", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
118
|
+
injectString("hu-HU", "Has additional actions. Use right arrow to access button, left arrow to return.", "Tov\xE1bbi m\u0171veletek \xE9rhet\u0151k el. A gomb el\xE9r\xE9s\xE9hez haszn\xE1lja a jobb nyilat, a visszat\xE9r\xE9shez a bal nyilat.");
|
|
101
119
|
injectString("id", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
102
120
|
injectString("it", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
103
121
|
injectString("ja", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
104
122
|
injectString("ko-KR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
105
|
-
injectString("ms", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
106
|
-
injectString("nb-NO", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
107
|
-
injectString("nl", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
123
|
+
injectString("ms", "Has additional actions. Use right arrow to access button, left arrow to return.", "Mempunyai tindakan tambahan. Gunakan anak panah kanan untuk mengakses butang, anak panah kiri untuk kembali.");
|
|
124
|
+
injectString("nb-NO", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har flere handlinger. Bruk h\xF8yre pil for \xE5 \xE5pne knappen, venstre pil for \xE5 g\xE5 tilbake.");
|
|
125
|
+
injectString("nl", "Has additional actions. Use right arrow to access button, left arrow to return.", "Heeft aanvullende acties. Gebruik de rechter pijltoets om de knop te openen, de linker pijltoets om terug te keren.");
|
|
108
126
|
injectString("pl", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
109
|
-
injectString("pt-BR", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
127
|
+
injectString("pt-BR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Tem a\xE7\xF5es adicionais. Use a seta direita para acessar o bot\xE3o, a seta esquerda para retornar.");
|
|
110
128
|
injectString("pt-PT", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
111
|
-
injectString("sk-SK", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
112
|
-
injectString("sv", "Has additional actions. Use right arrow to access button, left arrow to return.", "
|
|
129
|
+
injectString("sk-SK", "Has additional actions. Use right arrow to access button, left arrow to return.", "M\xE1 \u010Fal\u0161ie akcie. Na pr\xEDstup k tla\u010Didlu pou\u017Eite \u0161\xEDpku vpravo, na n\xE1vrat \u0161\xEDpku v\u013Eavo.");
|
|
130
|
+
injectString("sv", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har ytterligare \xE5tg\xE4rder. Anv\xE4nd h\xF6ger piltangent f\xF6r att \xF6ppna knappen, v\xE4nster piltangent f\xF6r att \xE5terg\xE5.");
|
|
113
131
|
injectString("th", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
114
132
|
injectString("tr", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
115
133
|
injectString("zh-Hans", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
116
134
|
injectString("zh-TW", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
117
135
|
injectString("ro-RO", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
118
136
|
injectString("ar", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629. \u0627\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0645\u0646 \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0632\u0631\u060C \u0648\u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0633\u0631 \u0644\u0644\u0639\u0648\u062F\u0629.");
|
|
137
|
+
injectString("lt-LT", "Has additional actions. Use right arrow to access button, left arrow to return.", "Yra papildom\u0173 veiksm\u0173. De\u0161iniojo rodykl\u0117s klavi\u0161o paspauskite mygtuk\u0105, kairiojo - gr\u012F\u017Ekite.");
|
|
138
|
+
injectString("lv-LV", "Has additional actions. Use right arrow to access button, left arrow to return.", "Ir papildu darb\u012Bbas. Lab\u0101 bulti\u0146a - piek\u013C\u016Bt pogai, kreis\u0101 bulti\u0146a - atgriezties.");
|
|
139
|
+
injectString("ka-GE", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u10D3\u10D0\u10DB\u10D0\u10E2\u10D4\u10D1\u10D8\u10D7\u10D8 \u10DB\u10DD\u10E5\u10DB\u10D4\u10D3\u10D4\u10D1\u10D4\u10D1\u10D8 \u10D0\u10E0\u10E1\u10D4\u10D1\u10DD\u10D1\u10E1. \u10DB\u10D0\u10E0\u10EF\u10D5\u10D4\u10DC\u10D0 \u10D8\u10E1\u10E0\u10D8\u10D7 \u10EC\u10D5\u10D3\u10DD\u10DB\u10D8\u10E1\u10D7\u10D5\u10D8\u10E1, \u10DB\u10D0\u10E0\u10EA\u10EE\u10D4\u10DC\u10D8\u10D7 \u10D3\u10D0\u10E1\u10D0\u10D1\u10E0\u10E3\u10DC\u10D4\u10D1\u10DA\u10D0\u10D3.");
|
|
140
|
+
injectString("el-GR", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u03A5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B5\u03C2 \u03B5\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2. \u0394\u03B5\u03BE\u03AF \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7, \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03CC \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE.");
|
|
141
|
+
injectString("et-EE", "Has additional actions. Use right arrow to access button, left arrow to return.", "Sisaldab lisatoiminguid. Nupu avamiseks kasutage paremnoolt, tagasi p\xF6\xF6rdumiseks vasaknoolt.");
|
|
142
|
+
injectString("bg-BG", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u0418\u043C\u0430 \u0434\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u043D\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F. \u0414\u0435\u0441\u0435\u043D \u0441\u0442\u0440\u0435\u043B\u0435\u0446 \u0437\u0430 \u0434\u043E\u0441\u0442\u044A\u043F, \u043B\u044F\u0432 \u0441\u0442\u0440\u0435\u043B\u0435\u0446 \u0437\u0430 \u0432\u0440\u044A\u0449\u0430\u043D\u0435.");
|
|
119
143
|
export const CheckboxListWithAction = ({
|
|
120
144
|
label,
|
|
121
145
|
options,
|
package/esm/chip/chip.d.ts
CHANGED
package/esm/chip/chip.js
CHANGED
|
@@ -39,6 +39,12 @@ injectString("zh-Hans", "Clear selection", "\u6E05\u9664\u9009\u62E9");
|
|
|
39
39
|
injectString("zh-TW", "Clear selection", "\u6E05\u9664\u9078\u53D6\u9805\u76EE");
|
|
40
40
|
injectString("ro-RO", "Clear selection", "\u0218terge\u021Bi selec\u021Bia");
|
|
41
41
|
injectString("ar", "Clear selection", "\u0645\u0633\u062D \u0627\u0644\u062A\u062D\u062F\u064A\u062F");
|
|
42
|
+
injectString("lt-LT", "Clear selection", "I\u0161valyti pasirinkim\u0105");
|
|
43
|
+
injectString("lv-LV", "Clear selection", "Not\u012Br\u012Bt atlasi");
|
|
44
|
+
injectString("ka-GE", "Clear selection", "\u10DB\u10DD\u10DC\u10D8\u10E8\u10D5\u10DC\u10D8\u10E1 \u10D2\u10D0\u10E1\u10E3\u10E4\u10D7\u10D0\u10D5\u10D4\u10D1\u10D0");
|
|
45
|
+
injectString("el-GR", "Clear selection", "\u0395\u03BA\u03BA\u03B1\u03B8\u03AC\u03C1\u03B9\u03C3\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2");
|
|
46
|
+
injectString("et-EE", "Clear selection", "T\xFChjenda valik");
|
|
47
|
+
injectString("bg-BG", "Clear selection", "\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0438\u0437\u0431\u043E\u0440\u0430");
|
|
42
48
|
function isChipTrigger(props) {
|
|
43
49
|
return "triggerRef" in props;
|
|
44
50
|
}
|
|
@@ -38,7 +38,13 @@ injectString("tr", "Column Settings", "S\xFCtun Ayarlar\u0131");
|
|
|
38
38
|
injectString("zh-Hans", "Column Settings", "\u5217\u8BBE\u7F6E");
|
|
39
39
|
injectString("zh-TW", "Column Settings", "\u6B04\u8A2D\u5B9A");
|
|
40
40
|
injectString("ro-RO", "Column Settings", "Set\u0103ri coloane");
|
|
41
|
-
injectString("ar", "Column Settings", "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\
|
|
41
|
+
injectString("ar", "Column Settings", "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0639\u0645\u0648\u062F");
|
|
42
|
+
injectString("lt-LT", "Column Settings", "Stulpelio nustatymai");
|
|
43
|
+
injectString("lv-LV", "Column Settings", "Kolonnas iestat\u012Bjumi");
|
|
44
|
+
injectString("ka-GE", "Column Settings", "\u10E1\u10D5\u10D4\u10E2\u10D8\u10E1 \u10DE\u10D0\u10E0\u10D0\u10DB\u10D4\u10E2\u10E0\u10D4\u10D1\u10D8");
|
|
45
|
+
injectString("el-GR", "Column Settings", "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03C3\u03C4\u03AE\u03BB\u03B7\u03C2");
|
|
46
|
+
injectString("et-EE", "Column Settings", "Veeru seaded");
|
|
47
|
+
injectString("bg-BG", "Column Settings", "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u0438\u0442\u0435");
|
|
42
48
|
injectString("cs", "Reset to default", "Obnovit v\xFDchoz\xED");
|
|
43
49
|
injectString("da-DK", "Reset to default", "Nulstil til standard");
|
|
44
50
|
injectString("de", "Reset to default", "Auf Standard zur\xFCcksetzen");
|
|
@@ -66,6 +72,12 @@ injectString("zh-Hans", "Reset to default", "\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503
|
|
|
66
72
|
injectString("zh-TW", "Reset to default", "\u91CD\u8A2D\u70BA\u9810\u8A2D\u503C");
|
|
67
73
|
injectString("ro-RO", "Reset to default", "Reseta\u021Bi la implicit");
|
|
68
74
|
injectString("ar", "Reset to default", "\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0639\u064A\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A");
|
|
75
|
+
injectString("lt-LT", "Reset to default", "Atkurti numatyt\u0105j\u0105 reik\u0161m\u0119");
|
|
76
|
+
injectString("lv-LV", "Reset to default", "Atjaunot noklus\u0113jumu");
|
|
77
|
+
injectString("ka-GE", "Reset to default", "\u10DC\u10D0\u10D2\u10E3\u10DA\u10D8\u10E1\u10EE\u10DB\u10D4\u10D5\u10D6\u10D4 \u10D2\u10D0\u10D3\u10D0\u10E7\u10D4\u10DC\u10D4\u10D1\u10D0");
|
|
78
|
+
injectString("el-GR", "Reset to default", "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2");
|
|
79
|
+
injectString("et-EE", "Reset to default", "L\xE4htesta vaikev\xE4\xE4rtusele");
|
|
80
|
+
injectString("bg-BG", "Reset to default", "\u041D\u0443\u043B\u0438\u0440\u0430\u043D\u0435 \u043F\u043E \u043F\u043E\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043D\u0435");
|
|
69
81
|
export const ColumnsSelector = ({
|
|
70
82
|
id,
|
|
71
83
|
columns = [],
|
|
@@ -30,6 +30,12 @@ injectString("zh-Hans", "Columns", "\u5217");
|
|
|
30
30
|
injectString("zh-TW", "Columns", "\u6B04");
|
|
31
31
|
injectString("ro-RO", "Columns", "Coloane");
|
|
32
32
|
injectString("ar", "Columns", "\u0627\u0644\u0623\u0639\u0645\u062F\u0629");
|
|
33
|
+
injectString("lt-LT", "Columns", "Stulpeliai");
|
|
34
|
+
injectString("lv-LV", "Columns", "Kolonnas");
|
|
35
|
+
injectString("ka-GE", "Columns", "\u10E1\u10D5\u10D4\u10E2\u10D4\u10D1\u10D8");
|
|
36
|
+
injectString("el-GR", "Columns", "\u03A3\u03C4\u03AE\u03BB\u03B5\u03C2");
|
|
37
|
+
injectString("et-EE", "Columns", "Veerud");
|
|
38
|
+
injectString("bg-BG", "Columns", "\u041A\u043E\u043B\u043E\u043D\u0438");
|
|
33
39
|
export const ColumnsTab = ({
|
|
34
40
|
columns,
|
|
35
41
|
onColumnToggle,
|
|
@@ -31,6 +31,12 @@ injectString("zh-Hans", "Additional Properties", "\u5176\u4ED6\u5C5E\u6027");
|
|
|
31
31
|
injectString("zh-TW", "Additional Properties", "\u5176\u4ED6\u5C6C\u6027");
|
|
32
32
|
injectString("ro-RO", "Additional Properties", "Propriet\u0103\u021Bi suplimentare");
|
|
33
33
|
injectString("ar", "Additional Properties", "\u062E\u0635\u0627\u0626\u0635 \u0625\u0636\u0627\u0641\u064A\u0629");
|
|
34
|
+
injectString("lt-LT", "Additional Properties", "Papildomos savyb\u0117s");
|
|
35
|
+
injectString("lv-LV", "Additional Properties", "Papildu rekviz\u012Bti");
|
|
36
|
+
injectString("ka-GE", "Additional Properties", "\u10D3\u10D0\u10DB\u10D0\u10E2\u10D4\u10D1\u10D8\u10D7\u10D8 \u10D7\u10D5\u10D8\u10E1\u10D4\u10D1\u10D4\u10D1\u10D8");
|
|
37
|
+
injectString("el-GR", "Additional Properties", "\u03A0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B5\u03C2 \u03B9\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2");
|
|
38
|
+
injectString("et-EE", "Additional Properties", "Lisaomadused");
|
|
39
|
+
injectString("bg-BG", "Additional Properties", "\u0414\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u043D\u0438 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430");
|
|
34
40
|
export const ColumnsTabGroup = ({
|
|
35
41
|
columns,
|
|
36
42
|
onColumnToggle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const reducerLogger: <S, A extends IAction<string
|
|
1
|
+
export declare const reducerLogger: <S, A extends IAction<string>>(reducer: React.Reducer<S, A>, onBeforeAction?: (state: S, action: A) => void, onAfterAction?: (state: S, action: A) => void) => (state: S, action: A) => S;
|
|
@@ -6,5 +6,5 @@ export interface IFetchReducer<T> extends Reducer<IFetchState<T>, TFetchAction<T
|
|
|
6
6
|
export declare function fetchReducer<T>(state: IFetchState<T>, action: TFetchAction<T>): {
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
data?: T | undefined;
|
|
9
|
-
error?: Error
|
|
9
|
+
error?: Error;
|
|
10
10
|
};
|
|
@@ -2,13 +2,13 @@ import { useContext, useMemo, useState } from "react";
|
|
|
2
2
|
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect";
|
|
3
3
|
import { useResize } from "./useResize";
|
|
4
4
|
import { DeviceType } from "./deviceType";
|
|
5
|
+
import { Breakpoints } from "./breakpoints";
|
|
5
6
|
import { topWindowContext } from "../../utils/topWindow/topWindowContext";
|
|
6
7
|
import { getParentWindow } from "../../utils/getParentWindow";
|
|
7
8
|
import { zen } from "../../utils/zen";
|
|
8
9
|
import { SSRContext } from "./ssrProvider";
|
|
9
|
-
const MobileMaxWidth = 640;
|
|
10
10
|
export const getDeviceType = (width) => {
|
|
11
|
-
if (width > MobileMaxWidth) {
|
|
11
|
+
if (width > Breakpoints.MobileMaxWidth) {
|
|
12
12
|
return DeviceType.Desktop;
|
|
13
13
|
}
|
|
14
14
|
return DeviceType.Mobile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
export declare const useEscape: (containerRef: RefObject<HTMLElement | null>, callback: (e) => void, subscriptionTrigger: unknown, condition?: (t: unknown) => boolean) => void;
|
|
2
|
+
export declare const useEscape: (containerRef: RefObject<HTMLElement | null>, callback: (e: any) => void, subscriptionTrigger: unknown, condition?: (t: unknown) => boolean) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMobileOrTablet: () => boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useCallback, useContext, useMemo, useState } from "react";
|
|
2
|
+
import { topWindowContext } from "../../utils/topWindow/topWindowContext";
|
|
3
|
+
import { getParentWindow } from "../../utils/getParentWindow";
|
|
4
|
+
import { useResize } from "./useResize";
|
|
5
|
+
import { zen } from "../../utils/zen";
|
|
6
|
+
import { Breakpoints } from "./breakpoints";
|
|
7
|
+
const isMobileOrTabletUtil = (width) => width <= Breakpoints.TabletMaxWidth;
|
|
8
|
+
export const useMobileOrTablet = () => {
|
|
9
|
+
const { topWindow } = useContext(topWindowContext);
|
|
10
|
+
const win = useMemo(() => topWindow || getParentWindow(zen), [topWindow]);
|
|
11
|
+
const [value, setValue] = useState(isMobileOrTabletUtil(win.innerWidth));
|
|
12
|
+
const onResize = useCallback(() => {
|
|
13
|
+
setValue(isMobileOrTabletUtil(win.innerWidth));
|
|
14
|
+
}, [win]);
|
|
15
|
+
useResize(onResize, true);
|
|
16
|
+
return value;
|
|
17
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IPill } from "../../pill/interfaces/pill.interface";
|
|
3
2
|
import { IPillNonActionable } from "../../pill/interfaces/pillNonActionable.interface";
|
|
4
3
|
interface IPillSize extends Pick<IPill, "size">, Pick<IPillNonActionable, "onClose"> {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useCallback, useContext, useMemo, useState } from "react";
|
|
2
|
+
import { topWindowContext } from "../../utils/topWindow/topWindowContext";
|
|
3
|
+
import { getParentWindow } from "../../utils/getParentWindow";
|
|
4
|
+
import { useResize } from "./useResize";
|
|
5
|
+
import { zen } from "../../utils/zen";
|
|
6
|
+
import { Breakpoints } from "./breakpoints";
|
|
7
|
+
const isTabletUtil = (width) => width > Breakpoints.MobileMaxWidth && width <= Breakpoints.TabletMaxWidth;
|
|
8
|
+
export const useTablet = () => {
|
|
9
|
+
const { topWindow } = useContext(topWindowContext);
|
|
10
|
+
const win = useMemo(() => topWindow || getParentWindow(zen), [topWindow]);
|
|
11
|
+
const [isTablet, setIsTablet] = useState(isTabletUtil(win.innerWidth));
|
|
12
|
+
const onResize = useCallback(() => {
|
|
13
|
+
setIsTablet(isTabletUtil(win.innerWidth));
|
|
14
|
+
}, [win]);
|
|
15
|
+
useResize(onResize, true);
|
|
16
|
+
return isTablet;
|
|
17
|
+
};
|
|
@@ -30,7 +30,7 @@ export interface IDataFeed<T, N = T> extends IDataGrid<T, N> {
|
|
|
30
30
|
}
|
|
31
31
|
export declare const EmptyList: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export declare const Footer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
declare const DataFeedInner: <T extends IRowEntity<N>, N extends IEntityWithId>({ entities, columns, feedWrappers, className, expanded, options, description, children, actions, actionsAsync, primaryActions, itemsPerPage, rowClassName, expandedRows, onExpandedChange, activePage, onClick }: IDataFeed<T, N>, ref: ForwardedRef<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare const DataFeedInner: <T extends IRowEntity<N>, N extends IEntityWithId>({ entities, columns, feedWrappers, className, expanded, options, description, children, actions, actionsAsync, primaryActions, itemsPerPage, rowClassName, expandedRows, onExpandedChange, activePage, onClick, isLoading }: IDataFeed<T, N>, ref: ForwardedRef<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export interface IDataFeedStaticProps {
|
|
35
35
|
EmptyList: typeof EmptyList;
|
|
36
36
|
Footer: typeof Footer;
|