@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
|
@@ -44,7 +44,13 @@ injectString("tr", "Value", "De\u011Fer");
|
|
|
44
44
|
injectString("zh-Hans", "Value", "\u503C");
|
|
45
45
|
injectString("zh-TW", "Value", "\u503C");
|
|
46
46
|
injectString("ro-RO", "Value", "Valoare");
|
|
47
|
-
injectString("ar", "Value", "\
|
|
47
|
+
injectString("ar", "Value", "\u0642\u064A\u0645\u0629");
|
|
48
|
+
injectString("lt-LT", "Value", "Reik\u0161m\u0117");
|
|
49
|
+
injectString("lv-LV", "Value", "V\u0113rt\u012Bba");
|
|
50
|
+
injectString("ka-GE", "Value", "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0");
|
|
51
|
+
injectString("el-GR", "Value", "\u03A4\u03B9\u03BC\u03AE");
|
|
52
|
+
injectString("et-EE", "Value", "V\xE4\xE4rtus");
|
|
53
|
+
injectString("bg-BG", "Value", "\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442");
|
|
48
54
|
injectString("cs", "Chart data", "Data grafu");
|
|
49
55
|
injectString("da-DK", "Chart data", "Diagramdata");
|
|
50
56
|
injectString("de", "Chart data", "Diagrammdaten");
|
|
@@ -71,34 +77,46 @@ injectString("tr", "Chart data", "Grafik verileri");
|
|
|
71
77
|
injectString("zh-Hans", "Chart data", "\u56FE\u8868\u6570\u636E");
|
|
72
78
|
injectString("zh-TW", "Chart data", "\u5716\u8868\u8CC7\u6599");
|
|
73
79
|
injectString("ro-RO", "Chart data", "Date grafic");
|
|
74
|
-
injectString("ar", "Chart data", "\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\
|
|
80
|
+
injectString("ar", "Chart data", "\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062E\u0637\u0637");
|
|
81
|
+
injectString("lt-LT", "Chart data", "Diagramos duomenys");
|
|
82
|
+
injectString("lv-LV", "Chart data", "Diagrammas dati");
|
|
83
|
+
injectString("ka-GE", "Chart data", "\u10E1\u10E5\u10D4\u10DB\u10D8\u10E1 \u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8");
|
|
84
|
+
injectString("el-GR", "Chart data", "\u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1 \u03B3\u03C1\u03B1\u03C6\u03AE\u03BC\u03B1\u03C4\u03BF\u03C2");
|
|
85
|
+
injectString("et-EE", "Chart data", "Diagrammi andmed");
|
|
86
|
+
injectString("bg-BG", "Chart data", "\u0414\u0430\u043D\u043D\u0438 \u043E\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430\u0442\u0430");
|
|
75
87
|
injectString("cs", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
76
|
-
injectString("da-DK", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
88
|
+
injectString("da-DK", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagrammet indeholder for mange datapunkter, s\xE5 antallet er blevet reduceret. Hvis du vil se flere, skal du \xE6ndre rapportintervallet");
|
|
77
89
|
injectString("de", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
78
90
|
injectString("en", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
79
91
|
injectString("es", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
80
|
-
injectString("fi-FI", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
92
|
+
injectString("fi-FI", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Kaavio sis\xE4lt\xE4\xE4 liian monta datapistett\xE4, joten niiden m\xE4\xE4r\xE4\xE4 on v\xE4hennetty. Jos haluat n\xE4hd\xE4 enemm\xE4n, muuta raportin aikav\xE4li\xE4");
|
|
81
93
|
injectString("fr", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
82
94
|
injectString("fr-FR", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
83
|
-
injectString("hu-HU", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
95
|
+
injectString("hu-HU", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "A diagram t\xFAl sok adatpontot tartalmaz, ez\xE9rt sz\xE1muk cs\xF6kkentve lett. Ha t\xF6bbet szeretne l\xE1tni, m\xF3dos\xEDtsa a jelent\xE9s tartom\xE1ny\xE1t");
|
|
84
96
|
injectString("id", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
85
97
|
injectString("it", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
86
98
|
injectString("ja", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
87
99
|
injectString("ko-KR", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
88
|
-
injectString("ms", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
89
|
-
injectString("nb-NO", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
90
|
-
injectString("nl", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
100
|
+
injectString("ms", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Carta mengandungi terlalu banyak titik data jadi bilangannya telah dikurangkan. Jika anda ingin melihat lebih banyak, tukar Julat Laporan");
|
|
101
|
+
injectString("nb-NO", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagrammet inneholder for mange datapunkter, s\xE5 antallet er redusert. Hvis du vil se flere, kan du endre rapportintervallet");
|
|
102
|
+
injectString("nl", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "De grafiek bevat te veel gegevenspunten, waardoor hun aantal is verminderd. Als u meer wilt zien, wijzigt u het rapportbereik");
|
|
91
103
|
injectString("pl", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
92
|
-
injectString("pt-BR", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
104
|
+
injectString("pt-BR", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "O gr\xE1fico cont\xE9m muitos pontos de dados, ent\xE3o seu n\xFAmero foi reduzido. Se quiser ver mais, altere o Intervalo do Relat\xF3rio");
|
|
93
105
|
injectString("pt-PT", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "O gr\xE1fico cont\xE9m muitos pontos de dados, por isso o seu n\xFAmero foi reduzido. Se quiser ver mais, altere o intervalo do relat\xF3rio.");
|
|
94
|
-
injectString("sk-SK", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
95
|
-
injectString("sv", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "
|
|
106
|
+
injectString("sk-SK", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Graf obsahuje pr\xEDli\u0161 ve\u013Ea d\xE1tov\xFDch bodov, ich po\u010Det bol zn\xED\u017Een\xFD. Ak chcete vidie\u0165 viac, zme\u0148te rozsah spr\xE1vy");
|
|
107
|
+
injectString("sv", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagrammet inneh\xE5ller f\xF6r m\xE5nga datapunkter s\xE5 deras antal har minskats. Om du vill se fler \xE4ndrar du rapportintervallet");
|
|
96
108
|
injectString("th", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
97
109
|
injectString("tr", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
98
110
|
injectString("zh-Hans", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
99
111
|
injectString("zh-TW", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
100
112
|
injectString("ro-RO", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Graficul con\u021Bine prea multe puncte de date, a\u0219adar num\u0103rul lor a fost redus. Dac\u0103 dori\u021Bi s\u0103 vede\u021Bi mai mult, schimba\u021Bi intervalul raportului");
|
|
101
113
|
injectString("ar", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "\u064A\u062D\u062A\u0648\u064A \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0628\u064A\u0627\u0646\u064A \u0639\u0644\u0649 \u0639\u062F\u062F \u0643\u0628\u064A\u0631 \u062C\u062F\u0627\u064B \u0645\u0646 \u0646\u0642\u0627\u0637 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0644\u0630\u0644\u0643 \u062A\u0645 \u062A\u0642\u0644\u064A\u0644 \u0639\u062F\u062F\u0647\u0627. \u0625\u0630\u0627 \u0623\u0631\u062F\u062A \u0631\u0624\u064A\u0629 \u0627\u0644\u0645\u0632\u064A\u062F\u060C \u063A\u064A\u0651\u0631 \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0642\u0631\u064A\u0631");
|
|
114
|
+
injectString("lt-LT", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagramoje per daug duomen\u0173 ta\u0161k\u0173, tod\u0117l j\u0173 skai\u010Dius buvo suma\u017Eintas. Nor\u0117dami matyti daugiau, pakeiskite ataskaitos diapazon\u0105.");
|
|
115
|
+
injectString("lv-LV", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagramm\u0101 ir p\u0101r\u0101k daudz datu punktu un to skaits tika samazin\u0101ts. Lai redz\u0113tu vair\u0101k, mainiet atskaites diapazonu.");
|
|
116
|
+
injectString("ka-GE", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "\u10E1\u10E5\u10D4\u10DB\u10D0 \u10D6\u10D4\u10D3\u10DB\u10D4\u10E2 \u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D8\u10E1 \u10EC\u10D4\u10E0\u10E2\u10D8\u10DA\u10E1 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10E1, \u10D0\u10DB\u10D8\u10E2\u10DD\u10DB \u10DB\u10D0\u10D7\u10D8 \u10E0\u10D0\u10DD\u10D3\u10D4\u10DC\u10DD\u10D1\u10D0 \u10E8\u10D4\u10DB\u10EA\u10D8\u10E0\u10D3\u10D0. \u10DB\u10D4\u10E2\u10D8\u10E1 \u10E1\u10D0\u10DC\u10D0\u10EE\u10D0\u10D5\u10D0\u10D3 \u10E8\u10D4\u10EA\u10D5\u10D0\u10DA\u10D4\u10D7 \u10D0\u10DC\u10D2\u10D0\u10E0\u10D8\u10E8\u10D8\u10E1 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8.");
|
|
117
|
+
injectString("el-GR", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "\u03A4\u03BF \u03B3\u03C1\u03AC\u03C6\u03B7\u03BC\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C0\u03AC\u03C1\u03B1 \u03C0\u03BF\u03BB\u03BB\u03AC \u03C3\u03B7\u03BC\u03B5\u03AF\u03B1 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u03BA\u03B1\u03B9 \u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03BF\u03C5\u03C2 \u03BC\u03B5\u03B9\u03CE\u03B8\u03B7\u03BA\u03B5. \u0391\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B4\u03B5\u03AF\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1, \u03B1\u03BB\u03BB\u03AC\u03BE\u03C4\u03B5 \u03C4\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2 \u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.");
|
|
118
|
+
injectString("et-EE", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Diagramm sisaldab liiga palju andmepunkte ja nende arvu on v\xE4hendatud. Rohkema n\xE4gemiseks muutke aruandevahemikku.");
|
|
119
|
+
injectString("bg-BG", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u0430\u0442\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u0442\u0432\u044A\u0440\u0434\u0435 \u043C\u043D\u043E\u0433\u043E \u0442\u043E\u0447\u043A\u0438 \u0441 \u0434\u0430\u043D\u043D\u0438 \u0438 \u0442\u0435 \u0431\u044F\u0445\u0430 \u043D\u0430\u043C\u0430\u043B\u0435\u043D\u0438. \u0410\u043A\u043E \u0438\u0441\u043A\u0430\u0442\u0435 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435, \u043F\u0440\u043E\u043C\u0435\u043D\u0435\u0442\u0435 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u043D\u0430 \u043E\u0442\u0447\u0435\u0442\u0430.");
|
|
102
120
|
injectString("cs", "X-axis", "Osa X");
|
|
103
121
|
injectString("da-DK", "X-axis", "X-akse");
|
|
104
122
|
injectString("de", "X-axis", "X-Achse");
|
|
@@ -125,7 +143,13 @@ injectString("tr", "X-axis", "X ekseni");
|
|
|
125
143
|
injectString("zh-Hans", "X-axis", "X \u8F74");
|
|
126
144
|
injectString("zh-TW", "X-axis", "X \u8EF8");
|
|
127
145
|
injectString("ro-RO", "X-axis", "Axa X");
|
|
128
|
-
injectString("ar", "X-axis", "\u0627\u0644\u0645\u062D\u0648\u0631 \u0633");
|
|
146
|
+
injectString("ar", "X-axis", "\u0627\u0644\u0645\u062D\u0648\u0631 \u0627\u0644\u0633\u064A\u0646\u064A");
|
|
147
|
+
injectString("lt-LT", "X-axis", "X a\u0161is");
|
|
148
|
+
injectString("lv-LV", "X-axis", "X ass");
|
|
149
|
+
injectString("ka-GE", "X-axis", "X-\u10E6\u10D4\u10E0\u10EB\u10D8");
|
|
150
|
+
injectString("el-GR", "X-axis", "\u0386\u03BE\u03BF\u03BD\u03B1\u03C2 \u03A7");
|
|
151
|
+
injectString("et-EE", "X-axis", "X-telg");
|
|
152
|
+
injectString("bg-BG", "X-axis", "\u041E\u0441 X");
|
|
129
153
|
injectString("cs", "Category", "Kategorie");
|
|
130
154
|
injectString("da-DK", "Category", "Kategori");
|
|
131
155
|
injectString("de", "Category", "Kategorie");
|
|
@@ -153,6 +177,12 @@ injectString("zh-Hans", "Category", "\u7C7B\u522B");
|
|
|
153
177
|
injectString("zh-TW", "Category", "\u7A2E\u985E");
|
|
154
178
|
injectString("ro-RO", "Category", "Categorie");
|
|
155
179
|
injectString("ar", "Category", "\u0627\u0644\u0641\u0626\u0629");
|
|
180
|
+
injectString("lt-LT", "Category", "Kategorija");
|
|
181
|
+
injectString("lv-LV", "Category", "Kategorija");
|
|
182
|
+
injectString("ka-GE", "Category", "\u10D9\u10D0\u10E2\u10D4\u10D2\u10DD\u10E0\u10D8\u10D0");
|
|
183
|
+
injectString("el-GR", "Category", "\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1");
|
|
184
|
+
injectString("et-EE", "Category", "Kategooria");
|
|
185
|
+
injectString("bg-BG", "Category", "\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F");
|
|
156
186
|
const MAX_TABLE_ROWS = 150;
|
|
157
187
|
const getXLabels = (type, data, translate) => {
|
|
158
188
|
if (type === "pie") {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartData } from "chart.js";
|
|
2
|
+
export declare const PIE_LARGE_DATASET_THRESHOLD = 6;
|
|
3
|
+
export declare const PIE_LARGEST_COUNT = 3;
|
|
4
|
+
export declare function formatPieSlice(label: string, value: number, total: number, decimalLength: number): string;
|
|
5
|
+
export declare function generatePieSliceDetails(values: number[], labels: string[], total: number, decimalLength: number): string[];
|
|
6
|
+
export declare function generatePieSummaryLines(values: number[], labels: string[], total: number, decimalLength: number, details: string[], translate: (s: string) => string): string[];
|
|
7
|
+
export declare function generatePieNarrative(data: ChartData, translate: (s: string) => string): string[];
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
injectString
|
|
5
|
+
} = require("../../utils/localization/translationsDictionary");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.PIE_LARGEST_COUNT = exports.PIE_LARGE_DATASET_THRESHOLD = void 0;
|
|
10
|
+
exports.formatPieSlice = formatPieSlice;
|
|
11
|
+
exports.generatePieSliceDetails = generatePieSliceDetails;
|
|
12
|
+
exports.generatePieSummaryLines = generatePieSummaryLines;
|
|
13
|
+
exports.generatePieNarrative = generatePieNarrative;
|
|
14
|
+
const calculateMinTruncationPrecision_1 = require("../utils/calculateMinTruncationPrecision");
|
|
15
|
+
const truncateDecimals_1 = require("../../utils/truncateDecimals");
|
|
16
|
+
injectString("da-DK", "Summary: {COUNT} slices.", "Oversigt: {COUNT} udsnit.");
|
|
17
|
+
injectString("en", "Summary: {COUNT} slices.", "Summary: {COUNT} slices.");
|
|
18
|
+
injectString("fi-FI", "Summary: {COUNT} slices.", "Yhteenveto: {COUNT} segmentti\xE4.");
|
|
19
|
+
injectString("hu-HU", "Summary: {COUNT} slices.", "\xD6sszefoglal\xE1s: {COUNT} szelet.");
|
|
20
|
+
injectString("ms", "Summary: {COUNT} slices.", "Ringkasan: {COUNT} hirisan.");
|
|
21
|
+
injectString("nb-NO", "Summary: {COUNT} slices.", "Sammendrag: {COUNT} utsnitt.");
|
|
22
|
+
injectString("nl", "Summary: {COUNT} slices.", "Samenvatting: {COUNT} segmenten.");
|
|
23
|
+
injectString("pt-BR", "Summary: {COUNT} slices.", "Resumo: {COUNT} fatias.");
|
|
24
|
+
injectString("sk-SK", "Summary: {COUNT} slices.", "S\xFAhrn: {COUNT} v\xFDsekov.");
|
|
25
|
+
injectString("sv", "Summary: {COUNT} slices.", "Sammanfattning: {COUNT} segment.");
|
|
26
|
+
injectString("ar", "Summary: {COUNT} slices.", "\u0627\u0644\u0645\u0644\u062E\u0635: {COUNT} \u0634\u0631\u064A\u062D\u0629.");
|
|
27
|
+
injectString("lt-LT", "Summary: {COUNT} slices.", "Santrauka: {COUNT} segmentai.");
|
|
28
|
+
injectString("lv-LV", "Summary: {COUNT} slices.", "Kopsavilkums: {COUNT} sektori.");
|
|
29
|
+
injectString("ka-GE", "Summary: {COUNT} slices.", "\u10E8\u10D4\u10EF\u10D0\u10DB\u10D4\u10D1\u10D0: {COUNT} \u10E1\u10D4\u10D2\u10DB\u10D4\u10DC\u10E2\u10D8.");
|
|
30
|
+
injectString("el-GR", "Summary: {COUNT} slices.", "\u03A3\u03CD\u03BD\u03BF\u03C8\u03B7: {COUNT} \u03C4\u03BC\u03AE\u03BC\u03B1\u03C4\u03B1.");
|
|
31
|
+
injectString("et-EE", "Summary: {COUNT} slices.", "Kokkuv\xF5te: {COUNT} sektorit.");
|
|
32
|
+
injectString("bg-BG", "Summary: {COUNT} slices.", "\u041E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u0435: {COUNT} \u0441\u0435\u0433\u043C\u0435\u043D\u0442\u0430.");
|
|
33
|
+
injectString("da-DK", "Largest:", "St\xF8rst:");
|
|
34
|
+
injectString("en", "Largest:", "Largest:");
|
|
35
|
+
injectString("fi-FI", "Largest:", "Suurin:");
|
|
36
|
+
injectString("hu-HU", "Largest:", "Legnagyobb:");
|
|
37
|
+
injectString("ms", "Largest:", "Terbesar:");
|
|
38
|
+
injectString("nb-NO", "Largest:", "St\xF8rst:");
|
|
39
|
+
injectString("nl", "Largest:", "Grootste:");
|
|
40
|
+
injectString("pt-BR", "Largest:", "Maior:");
|
|
41
|
+
injectString("sk-SK", "Largest:", "Najv\xE4\u010D\u0161\xED:");
|
|
42
|
+
injectString("sv", "Largest:", "St\xF6rst:");
|
|
43
|
+
injectString("ar", "Largest:", "\u0627\u0644\u0623\u0643\u0628\u0631:");
|
|
44
|
+
injectString("lt-LT", "Largest:", "Did\u017Eiausias:");
|
|
45
|
+
injectString("lv-LV", "Largest:", "Liel\u0101kais:");
|
|
46
|
+
injectString("ka-GE", "Largest:", "\u10E7\u10D5\u10D4\u10DA\u10D0\u10D6\u10D4 \u10D3\u10D8\u10D3\u10D8:");
|
|
47
|
+
injectString("el-GR", "Largest:", "\u039C\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03BF:");
|
|
48
|
+
injectString("et-EE", "Largest:", "Suurim:");
|
|
49
|
+
injectString("bg-BG", "Largest:", "\u041D\u0430\u0439-\u0433\u043E\u043B\u044F\u043C:");
|
|
50
|
+
injectString("da-DK", "Smallest:", "Mindst:");
|
|
51
|
+
injectString("en", "Smallest:", "Smallest:");
|
|
52
|
+
injectString("fi-FI", "Smallest:", "Pienin:");
|
|
53
|
+
injectString("hu-HU", "Smallest:", "Legkisebb:");
|
|
54
|
+
injectString("ms", "Smallest:", "Terkecil:");
|
|
55
|
+
injectString("nb-NO", "Smallest:", "Minst:");
|
|
56
|
+
injectString("nl", "Smallest:", "Kleinste:");
|
|
57
|
+
injectString("pt-BR", "Smallest:", "Menor:");
|
|
58
|
+
injectString("sk-SK", "Smallest:", "Najmen\u0161\xED:");
|
|
59
|
+
injectString("sv", "Smallest:", "Minst:");
|
|
60
|
+
injectString("ar", "Smallest:", "\u0627\u0644\u0623\u0635\u063A\u0631:");
|
|
61
|
+
injectString("lt-LT", "Smallest:", "Ma\u017Eiausias:");
|
|
62
|
+
injectString("lv-LV", "Smallest:", "Maz\u0101kais:");
|
|
63
|
+
injectString("ka-GE", "Smallest:", "\u10E7\u10D5\u10D4\u10DA\u10D0\u10D6\u10D4 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0:");
|
|
64
|
+
injectString("el-GR", "Smallest:", "\u039C\u03B9\u03BA\u03C1\u03CC\u03C4\u03B5\u03C1\u03BF:");
|
|
65
|
+
injectString("et-EE", "Smallest:", "V\xE4ikseim:");
|
|
66
|
+
injectString("bg-BG", "Smallest:", "\u041D\u0430\u0439-\u043C\u0430\u043B\u044A\u043A:");
|
|
67
|
+
injectString("da-DK", "Rest: {COUNT} other slices account for {PCT}%.", "Resten: {COUNT} andre udsnit udg\xF8r {PCT}%.");
|
|
68
|
+
injectString("en", "Rest: {COUNT} other slices account for {PCT}%.", "Rest: {COUNT} other slices account for {PCT}%.");
|
|
69
|
+
injectString("fi-FI", "Rest: {COUNT} other slices account for {PCT}%.", "Muut: {COUNT} muuta segmentti\xE4 kattaa {PCT}%.");
|
|
70
|
+
injectString("hu-HU", "Rest: {COUNT} other slices account for {PCT}%.", "T\xF6bbi: {COUNT} egy\xE9b szelet teszi ki a {PCT}%-ot.");
|
|
71
|
+
injectString("ms", "Rest: {COUNT} other slices account for {PCT}%.", "Selebihnya: {COUNT} hirisan lain mewakili {PCT}%.");
|
|
72
|
+
injectString("nb-NO", "Rest: {COUNT} other slices account for {PCT}%.", "Resten: {COUNT} andre utsnitt utgj\xF8r {PCT}%.");
|
|
73
|
+
injectString("nl", "Rest: {COUNT} other slices account for {PCT}%.", "Rest: {COUNT} andere segmenten zijn goed voor {PCT}%.");
|
|
74
|
+
injectString("pt-BR", "Rest: {COUNT} other slices account for {PCT}%.", "Restante: {COUNT} outras fatias representam {PCT}%.");
|
|
75
|
+
injectString("sk-SK", "Rest: {COUNT} other slices account for {PCT}%.", "Zvy\u0161ok: {COUNT} \u010Fal\u0161\xEDch v\xFDsekov tvor\xED {PCT}%.");
|
|
76
|
+
injectString("sv", "Rest: {COUNT} other slices account for {PCT}%.", "\xD6vriga: {COUNT} andra segment svarar f\xF6r {PCT}%.");
|
|
77
|
+
injectString("ar", "Rest: {COUNT} other slices account for {PCT}%.", "\u0627\u0644\u0645\u062A\u0628\u0642\u064A: {COUNT} \u0634\u0631\u064A\u062D\u0629 \u0623\u062E\u0631\u0649 \u062A\u0645\u062B\u0651\u0644 {PCT}\u066A.");
|
|
78
|
+
injectString("lt-LT", "Rest: {COUNT} other slices account for {PCT}%.", "Kiti: {COUNT} segmentai sudaro {PCT}%.");
|
|
79
|
+
injectString("lv-LV", "Rest: {COUNT} other slices account for {PCT}%.", "P\u0101r\u0113jie: {COUNT} sektori veido {PCT}%.");
|
|
80
|
+
injectString("ka-GE", "Rest: {COUNT} other slices account for {PCT}%.", "\u10D3\u10D0\u10DC\u10D0\u10E0\u10E9\u10D4\u10DC\u10D8: {COUNT} \u10E1\u10D4\u10D2\u10DB\u10D4\u10DC\u10E2\u10D8 \u10E8\u10D4\u10D0\u10D3\u10D2\u10D4\u10DC\u10E1 {PCT}%-\u10E1.");
|
|
81
|
+
injectString("el-GR", "Rest: {COUNT} other slices account for {PCT}%.", "\u03A5\u03C0\u03CC\u03BB\u03BF\u03B9\u03C0\u03B1: {COUNT} \u03C4\u03BC\u03AE\u03BC\u03B1\u03C4\u03B1 \u03B1\u03BD\u03C4\u03B9\u03C3\u03C4\u03BF\u03B9\u03C7\u03BF\u03CD\u03BD \u03C3\u03C4\u03BF {PCT}%.");
|
|
82
|
+
injectString("et-EE", "Rest: {COUNT} other slices account for {PCT}%.", "\xDClej\xE4\xE4nud: {COUNT} sektorit moodustavad {PCT}%.");
|
|
83
|
+
injectString("bg-BG", "Rest: {COUNT} other slices account for {PCT}%.", "\u041E\u0441\u0442\u0430\u043D\u0430\u043B\u0438\u0442\u0435: {COUNT} \u0441\u0435\u0433\u043C\u0435\u043D\u0442\u0430 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0432\u0430\u0442 {PCT}%.");
|
|
84
|
+
injectString("da-DK", "Details, {COUNT} items:", "Detaljer, {COUNT} elementer:");
|
|
85
|
+
injectString("en", "Details, {COUNT} items:", "Details, {COUNT} items:");
|
|
86
|
+
injectString("fi-FI", "Details, {COUNT} items:", "Tiedot, {COUNT} kohdetta:");
|
|
87
|
+
injectString("hu-HU", "Details, {COUNT} items:", "R\xE9szletek, {COUNT} elem:");
|
|
88
|
+
injectString("ms", "Details, {COUNT} items:", "Butiran, {COUNT} item:");
|
|
89
|
+
injectString("nb-NO", "Details, {COUNT} items:", "Detaljer, {COUNT} elementer:");
|
|
90
|
+
injectString("nl", "Details, {COUNT} items:", "Details, {COUNT} items:");
|
|
91
|
+
injectString("pt-BR", "Details, {COUNT} items:", "Detalhes, {COUNT} itens:");
|
|
92
|
+
injectString("sk-SK", "Details, {COUNT} items:", "Podrobnosti, {COUNT} polo\u017Eiek:");
|
|
93
|
+
injectString("sv", "Details, {COUNT} items:", "Detaljer, {COUNT} objekt:");
|
|
94
|
+
injectString("ar", "Details, {COUNT} items:", "\u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644\u060C {COUNT} \u0639\u0646\u0627\u0635\u0631:");
|
|
95
|
+
injectString("lt-LT", "Details, {COUNT} items:", "Detal\u0117s, {COUNT} elementai:");
|
|
96
|
+
injectString("lv-LV", "Details, {COUNT} items:", "Deta\u013Cas, {COUNT} vienumi:");
|
|
97
|
+
injectString("ka-GE", "Details, {COUNT} items:", "\u10D3\u10D4\u10E2\u10D0\u10DA\u10D4\u10D1\u10D8, {COUNT} \u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8:");
|
|
98
|
+
injectString("el-GR", "Details, {COUNT} items:", "\u039B\u03B5\u03C0\u03C4\u03BF\u03BC\u03AD\u03C1\u03B5\u03B9\u03B5\u03C2, {COUNT} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1:");
|
|
99
|
+
injectString("et-EE", "Details, {COUNT} items:", "\xDCksikasjad, {COUNT} \xFCksust:");
|
|
100
|
+
injectString("bg-BG", "Details, {COUNT} items:", "\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438, {COUNT} \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430:");
|
|
101
|
+
injectString("cs", "No data available", "Nejsou k\xA0dispozici \u017E\xE1dn\xE1 data");
|
|
102
|
+
injectString("da-DK", "No data available", "Ingen data tilg\xE6ngelige");
|
|
103
|
+
injectString("de", "No data available", "Keine Daten verf\xFCgbar");
|
|
104
|
+
injectString("en", "No data available", "No data available");
|
|
105
|
+
injectString("es", "No data available", "No hay datos disponibles");
|
|
106
|
+
injectString("fi-FI", "No data available", "Tietoja ei saatavilla");
|
|
107
|
+
injectString("fr", "No data available", "Aucune donn\xE9e disponible");
|
|
108
|
+
injectString("fr-FR", "No data available", "Aucune donn\xE9e disponible");
|
|
109
|
+
injectString("hu-HU", "No data available", "Nincsenek rendelkez\xE9sre \xE1ll\xF3 adatok");
|
|
110
|
+
injectString("id", "No data available", "Tidak ada data tersedia");
|
|
111
|
+
injectString("it", "No data available", "Nessun dato disponibile");
|
|
112
|
+
injectString("ja", "No data available", "\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093");
|
|
113
|
+
injectString("ko-KR", "No data available", "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
114
|
+
injectString("ms", "No data available", "Tiada data tersedia");
|
|
115
|
+
injectString("nb-NO", "No data available", "Ingen data tilgjengelig");
|
|
116
|
+
injectString("nl", "No data available", "Geen gegevens beschikbaar");
|
|
117
|
+
injectString("pl", "No data available", "Brak dost\u0119pnych danych");
|
|
118
|
+
injectString("pt-BR", "No data available", "Nenhum dado dispon\xEDvel");
|
|
119
|
+
injectString("pt-PT", "No data available", "Sem dados dispon\xEDveis");
|
|
120
|
+
injectString("sk-SK", "No data available", "Nie s\xFA k dispoz\xEDcii \u017Eiadne \xFAdaje");
|
|
121
|
+
injectString("sv", "No data available", "Det finns inga tillg\xE4ngliga data");
|
|
122
|
+
injectString("th", "No data available", "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25");
|
|
123
|
+
injectString("tr", "No data available", "Mevcut veri yok");
|
|
124
|
+
injectString("zh-Hans", "No data available", "\u65E0\u53EF\u7528\u6570\u636E");
|
|
125
|
+
injectString("zh-TW", "No data available", "\u6C92\u6709\u53EF\u7528\u8CC7\u6599");
|
|
126
|
+
injectString("ro-RO", "No data available", "Nu exist\u0103 date disponibile");
|
|
127
|
+
injectString("ar", "No data available", "\u0644\u0627 \u062A\u0648\u0641\u0631 \u0628\u064A\u0627\u0646\u0627\u062A");
|
|
128
|
+
injectString("lt-LT", "No data available", "Duomen\u0173 n\u0117ra");
|
|
129
|
+
injectString("lv-LV", "No data available", "Nav pieejamu datu");
|
|
130
|
+
injectString("ka-GE", "No data available", "\u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1");
|
|
131
|
+
injectString("el-GR", "No data available", "\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B1 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1");
|
|
132
|
+
injectString("et-EE", "No data available", "Andmed puuduvad");
|
|
133
|
+
injectString("bg-BG", "No data available", "\u041D\u044F\u043C\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0438 \u0434\u0430\u043D\u043D\u0438");
|
|
134
|
+
exports.PIE_LARGE_DATASET_THRESHOLD = 6;
|
|
135
|
+
exports.PIE_LARGEST_COUNT = 3;
|
|
136
|
+
function formatPieSlice(label, value, total, decimalLength) {
|
|
137
|
+
const pct = Math.round(value / total * 100);
|
|
138
|
+
return `${label}: ${(0, truncateDecimals_1.truncateDecimals)(value, decimalLength)} (${pct}%)`;
|
|
139
|
+
}
|
|
140
|
+
function generatePieSliceDetails(values, labels, total, decimalLength) {
|
|
141
|
+
return values.map((value, index) => {
|
|
142
|
+
var _a;
|
|
143
|
+
return formatPieSlice((_a = labels[index]) !== null && _a !== void 0 ? _a : String(index + 1), value, total, decimalLength);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function generatePieSummaryLines(values, labels, total, decimalLength, details, translate) {
|
|
147
|
+
var _a;
|
|
148
|
+
const indexed = values.map((value, index) => ({
|
|
149
|
+
value,
|
|
150
|
+
index
|
|
151
|
+
}));
|
|
152
|
+
const sorted = [...indexed].sort((a, b) => b.value - a.value);
|
|
153
|
+
const largestItems = sorted.slice(0, exports.PIE_LARGEST_COUNT);
|
|
154
|
+
const smallestItem = sorted[sorted.length - 1];
|
|
155
|
+
const restItems = sorted.slice(exports.PIE_LARGEST_COUNT, sorted.length - 1);
|
|
156
|
+
const restTotal = restItems.reduce((sum, item) => sum + item.value, 0);
|
|
157
|
+
const restPct = Math.round(restTotal / total * 100);
|
|
158
|
+
const largestStr = largestItems.map(item => {
|
|
159
|
+
var _a;
|
|
160
|
+
return formatPieSlice((_a = labels[item.index]) !== null && _a !== void 0 ? _a : String(item.index + 1), item.value, total, decimalLength);
|
|
161
|
+
}).join(", ");
|
|
162
|
+
const smallestStr = formatPieSlice((_a = labels[smallestItem.index]) !== null && _a !== void 0 ? _a : String(smallestItem.index + 1), smallestItem.value, total, decimalLength);
|
|
163
|
+
return [translate("Summary: {COUNT} slices.").replace("{COUNT}", String(values.length)), `${translate("Largest:")} ${largestStr}.`, `${translate("Smallest:")} ${smallestStr}.`, translate("Rest: {COUNT} other slices account for {PCT}%.").replace("{COUNT}", String(restItems.length)).replace("{PCT}", String(restPct)), translate("Details, {COUNT} items:").replace("{COUNT}", String(values.length)), ...details];
|
|
164
|
+
}
|
|
165
|
+
function generatePieNarrative(data, translate) {
|
|
166
|
+
var _a, _b, _c;
|
|
167
|
+
const values = (_b = (_a = data.datasets[0]) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : [];
|
|
168
|
+
const labels = (_c = data.labels) !== null && _c !== void 0 ? _c : [];
|
|
169
|
+
const total = values.reduce((sum, v) => sum + (typeof v === "number" ? v : 0), 0);
|
|
170
|
+
if (total === 0 || values.length === 0) {
|
|
171
|
+
return [translate("No data available")];
|
|
172
|
+
}
|
|
173
|
+
const decimalLength = (0, calculateMinTruncationPrecision_1.calculateMinTruncationPrecision)(values.filter(v => typeof v === "number"));
|
|
174
|
+
const details = generatePieSliceDetails(values, labels, total, decimalLength);
|
|
175
|
+
if (values.length <= exports.PIE_LARGE_DATASET_THRESHOLD) {
|
|
176
|
+
return details;
|
|
177
|
+
}
|
|
178
|
+
return generatePieSummaryLines(values, labels, total, decimalLength, details, translate);
|
|
179
|
+
}
|
|
@@ -10,6 +10,7 @@ export interface IAccessibleChart {
|
|
|
10
10
|
data: AccessibleChartData;
|
|
11
11
|
type: AccessibleChartType;
|
|
12
12
|
options?: ILineChartOptions | IBarChartOptions;
|
|
13
|
+
narrativeId?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface IChartTrend {
|
|
15
16
|
trendDirection: "increases" | "decreases" | "flat" | "complex" | "undefined";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDefaultOptions = void 0;
|
|
4
4
|
const formatDate_1 = require("../../utils/formatDate");
|
|
5
|
+
const getYAxisTickCount_1 = require("../utils/getYAxisTickCount");
|
|
5
6
|
const getDefaultGridStyle = (isDark) => ({
|
|
6
7
|
drawTicks: false,
|
|
7
8
|
color: isDark ? "#C0CCD8" : "#4E677E"
|
|
@@ -43,18 +44,16 @@ const getDefaultOptions = (yAxis, isTimedData, isDark, translate, isRtl = false)
|
|
|
43
44
|
border: defaultGridBorderStyle
|
|
44
45
|
}
|
|
45
46
|
};
|
|
47
|
+
// When there is more than one Y-axis, force every axis to render the same number of tick
|
|
48
|
+
// increments so their horizontal grid lines line up (see getYAxisTickCount for details).
|
|
49
|
+
const yAxisTickCount = (0, getYAxisTickCount_1.getYAxisTickCount)(yAxis.length);
|
|
46
50
|
for (let i = 0; i < yAxis.length; i++) {
|
|
47
51
|
const yAxisId = yAxis[i].name;
|
|
48
52
|
scales[yAxisId] = {
|
|
49
53
|
title: {
|
|
50
54
|
display: false
|
|
51
55
|
},
|
|
52
|
-
ticks: {
|
|
53
|
-
color: textColor,
|
|
54
|
-
padding: 10,
|
|
55
|
-
source: "data",
|
|
56
|
-
autoSkip: true
|
|
57
|
-
},
|
|
56
|
+
ticks: Object.assign({ color: textColor, padding: 10, source: "data", autoSkip: yAxisTickCount === undefined }, (yAxisTickCount !== undefined && { count: yAxisTickCount })),
|
|
58
57
|
beginAtZero: true,
|
|
59
58
|
grid: i === 0 ? getDefaultGridStyle(isDark) : { display: false },
|
|
60
59
|
border: defaultGridBorderStyle,
|
package/dist/chart/barChart.js
CHANGED
|
@@ -1,19 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
injectString
|
|
5
|
+
} = require("../utils/localization/translationsDictionary");
|
|
6
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
7
|
+
var t = {};
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
12
13
|
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
14
17
|
exports.BarChart = void 0;
|
|
15
18
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
19
|
const react_1 = require("react");
|
|
20
|
+
injectString("cs", "Bar chart", "Sloupcov\xFD graf");
|
|
21
|
+
injectString("da-DK", "Bar chart", "S\xF8jlediagram");
|
|
22
|
+
injectString("de", "Bar chart", "Balkendiagramm");
|
|
23
|
+
injectString("en", "Bar chart", "Bar chart");
|
|
24
|
+
injectString("es", "Bar chart", "Gr\xE1fico de barras");
|
|
25
|
+
injectString("fi-FI", "Bar chart", "Pylv\xE4sdiagrammi");
|
|
26
|
+
injectString("fr", "Bar chart", "Graphique \xE0 barres");
|
|
27
|
+
injectString("fr-FR", "Bar chart", "Diagramme \xE0 barres");
|
|
28
|
+
injectString("hu-HU", "Bar chart", "Oszlopdiagram");
|
|
29
|
+
injectString("id", "Bar chart", "Bagan batang");
|
|
30
|
+
injectString("it", "Bar chart", "Grafico a barre");
|
|
31
|
+
injectString("ja", "Bar chart", "\u68D2\u30B0\u30E9\u30D5");
|
|
32
|
+
injectString("ko-KR", "Bar chart", "\uB9C9\uB300\uD615 \uCC28\uD2B8");
|
|
33
|
+
injectString("ms", "Bar chart", "Carta bar");
|
|
34
|
+
injectString("nb-NO", "Bar chart", "S\xF8ylediagram");
|
|
35
|
+
injectString("nl", "Bar chart", "Staafdiagram");
|
|
36
|
+
injectString("pl", "Bar chart", "Wykres s\u0142upkowy");
|
|
37
|
+
injectString("pt-BR", "Bar chart", "Gr\xE1fico de barras");
|
|
38
|
+
injectString("pt-PT", "Bar chart", "Gr\xE1fico de barras");
|
|
39
|
+
injectString("sk-SK", "Bar chart", "St\u013Apcov\xFD graf");
|
|
40
|
+
injectString("sv", "Bar chart", "Stapeldiagram");
|
|
41
|
+
injectString("th", "Bar chart", "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07");
|
|
42
|
+
injectString("tr", "Bar chart", "\xC7ubuk grafik");
|
|
43
|
+
injectString("zh-Hans", "Bar chart", "\u6761\u5F62\u56FE");
|
|
44
|
+
injectString("zh-TW", "Bar chart", "\u6A6B\u689D\u5716");
|
|
45
|
+
injectString("ro-RO", "Bar chart", "Grafic de bare");
|
|
46
|
+
injectString("ar", "Bar chart", "\u0645\u062E\u0637\u0637 \u0634\u0631\u064A\u0637\u064A");
|
|
47
|
+
injectString("lt-LT", "Bar chart", "Stulpelin\u0117 diagrama");
|
|
48
|
+
injectString("lv-LV", "Bar chart", "Joslu diagramma");
|
|
49
|
+
injectString("ka-GE", "Bar chart", "\u10D6\u10DD\u10DA\u10DD\u10D5\u10D0\u10DC\u10D8 \u10E1\u10E5\u10D4\u10DB\u10D0");
|
|
50
|
+
injectString("el-GR", "Bar chart", "\u0393\u03C1\u03AC\u03C6\u03B7\u03BC\u03B1 \u03C1\u03AC\u03B2\u03B4\u03C9\u03BD");
|
|
51
|
+
injectString("et-EE", "Bar chart", "Tulpdiagramm");
|
|
52
|
+
injectString("bg-BG", "Bar chart", "\u0421\u0442\u044A\u043B\u0431\u043E\u0432\u0438\u0434\u043D\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430");
|
|
17
53
|
const typedCharts_1 = require("../react-chartjs/typedCharts");
|
|
18
54
|
const auto_1 = require("chart.js/auto");
|
|
19
55
|
require("../react-chartjs/dateAdapter");
|
|
@@ -40,43 +76,109 @@ const userFormatContext_1 = require("../utils/userFormat/userFormatContext");
|
|
|
40
76
|
const summary_1 = require("../summary/summary");
|
|
41
77
|
const accessibleChart_1 = require("./accessibleChart/accessibleChart");
|
|
42
78
|
auto_1.Chart.register(auto_1.BarController, auto_1.BarElement, auto_1.CategoryScale, auto_1.LinearScale);
|
|
43
|
-
const BarChart =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
const BarChart = _a => {
|
|
80
|
+
var {
|
|
81
|
+
data,
|
|
82
|
+
options = {},
|
|
83
|
+
axis,
|
|
84
|
+
insight,
|
|
85
|
+
summary,
|
|
86
|
+
legend,
|
|
87
|
+
tooltip,
|
|
88
|
+
plugins,
|
|
89
|
+
className
|
|
90
|
+
} = _a,
|
|
91
|
+
rest = __rest(_a, ["data", "options", "axis", "insight", "summary", "legend", "tooltip", "plugins", "className"]);
|
|
92
|
+
const {
|
|
93
|
+
translate
|
|
94
|
+
} = (0, useLanguage_1.useLanguage)();
|
|
95
|
+
const isDrive = (0, useDrive_1.useDrive)();
|
|
96
|
+
const isMobile = (0, useMobile_1.useMobile)();
|
|
97
|
+
const isRtl = (0, useIsRTL_1.useIsRTL)();
|
|
98
|
+
const fontSize = (0, react_1.useMemo)(() => isDrive ? isMobile ? 14 : 16 : 12, [isDrive, isMobile]);
|
|
99
|
+
const {
|
|
100
|
+
dark
|
|
101
|
+
} = (0, react_1.useContext)(themeContext_1.themeContext);
|
|
102
|
+
(0, react_1.useEffect)(() => {
|
|
103
|
+
auto_1.Chart.defaults.font = {
|
|
104
|
+
family: "Roboto",
|
|
105
|
+
size: fontSize
|
|
106
|
+
};
|
|
107
|
+
auto_1.Chart.defaults.color = dark ? "#FFFFFF" : "#1F2833";
|
|
108
|
+
}, [fontSize, dark]);
|
|
109
|
+
const legendId = (0, react_1.useId)();
|
|
110
|
+
const tooltipId = (0, react_1.useId)();
|
|
111
|
+
const narrativeId = (0, react_1.useId)();
|
|
112
|
+
const {
|
|
113
|
+
toLocalDateTime
|
|
114
|
+
} = (0, react_1.useContext)(userFormatContext_1.userFormatContext);
|
|
115
|
+
const isTimedData = (0, react_1.useMemo)(() => (0, isDateRange_1.isDateRange)(data, false), [data]);
|
|
116
|
+
const isStacked = (0, react_1.useMemo)(() => {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
return ((_b = (_a = options.scales) === null || _a === void 0 ? void 0 : _a.y) === null || _b === void 0 ? void 0 : _b.stacked) === true;
|
|
119
|
+
}, [options]);
|
|
120
|
+
const yAxisMeta = (0, react_1.useMemo)(() => (0, getYAxisMeta_1.getYAxisMeta)(data, isStacked), [data, isStacked]);
|
|
121
|
+
const defOptions = (0, react_1.useMemo)(() => (0, getDefaultOptions_1.getDefaultOptions)(yAxisMeta, isTimedData, dark, translate, isRtl), [yAxisMeta, isTimedData, dark, translate, isRtl]);
|
|
122
|
+
const chartOptions = (0, utils_1.deepMerge)(defOptions, options);
|
|
123
|
+
const {
|
|
124
|
+
isHidden,
|
|
125
|
+
toggleHidden
|
|
126
|
+
} = (0, useHidden_1.useHidden)();
|
|
127
|
+
const chartData = (0, react_1.useMemo)(() => {
|
|
128
|
+
const chData = (0, convertDates_1.convertDates)(data, toLocalDateTime);
|
|
129
|
+
chData.datasets = chData.datasets.map((ds, i) => (0, getDefaultDatasetStyle_1.getDefaultDatasetStyle)(ds, i));
|
|
130
|
+
chData.datasets = chData.datasets.map((ds, i) => Object.assign(Object.assign({}, ds), {
|
|
131
|
+
hidden: isHidden(i),
|
|
132
|
+
order: isRtl ? chData.datasets.length - 1 - i : i
|
|
133
|
+
}));
|
|
134
|
+
return chData;
|
|
135
|
+
}, [data, isHidden, toLocalDateTime, isRtl]);
|
|
136
|
+
const chartTooltip = (0, react_1.useMemo)(() => (0, tooltipPlugin_1.TooltipPlugin)(tooltipId, tooltip, "top", isHidden, dark), [tooltipId, tooltip, isHidden, dark]);
|
|
137
|
+
const chartLegend = (0, react_1.useMemo)(() => (0, legendPlugin_1.legendPlugin)(legendId, legend, isDrive, isHidden, toggleHidden), [isDrive, isHidden, legend, legendId, toggleHidden]);
|
|
138
|
+
const chartPlugins = (0, react_1.useMemo)(() => [...(plugins || []), chartTooltip, chartLegend], [chartLegend, chartTooltip, plugins]);
|
|
139
|
+
const {
|
|
140
|
+
xLabels,
|
|
141
|
+
yLabels
|
|
142
|
+
} = (0, useAxisLabels_1.useAxisLabels)(axis, chartOptions);
|
|
143
|
+
const intSummary = (0, useSummary_1.useSummary)(summary, chartData);
|
|
144
|
+
const isMainHidden = (0, react_1.useMemo)(() => isHidden(0), [isHidden]);
|
|
145
|
+
const toggleMainData = (0, react_1.useCallback)(() => toggleHidden(0), [toggleHidden]);
|
|
146
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, {
|
|
147
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
148
|
+
className: (0, classNames_1.classNames)(["zen-chart", className || ""]),
|
|
149
|
+
tabIndex: 0,
|
|
150
|
+
role: "figure",
|
|
151
|
+
"aria-label": translate("Bar chart"),
|
|
152
|
+
"aria-describedby": narrativeId,
|
|
153
|
+
children: [insight ? (0, jsx_runtime_1.jsx)(chartInsight_1.ChartInsight, Object.assign({}, insight)) : null, summary ? (0, jsx_runtime_1.jsx)(summary_1.Summary, Object.assign({
|
|
154
|
+
onToggle: toggleMainData,
|
|
155
|
+
isEnabled: isMainHidden
|
|
156
|
+
}, intSummary)) : null, (isDrive ? undefined : xLabels) || yLabels.length > 0 ? (0, jsx_runtime_1.jsx)(chartAxis_1.ChartAxis, {
|
|
157
|
+
xLabel: isDrive ? undefined : xLabels,
|
|
158
|
+
yLabels: yLabels,
|
|
159
|
+
yAxisPosition: isRtl ? "left" : "right"
|
|
160
|
+
}) : null, (0, jsx_runtime_1.jsx)("div", {
|
|
161
|
+
className: "zen-chart__chart",
|
|
162
|
+
children: (0, jsx_runtime_1.jsx)(typedCharts_1.Bar, Object.assign({
|
|
163
|
+
options: chartOptions,
|
|
164
|
+
data: chartData,
|
|
165
|
+
plugins: chartPlugins
|
|
166
|
+
}, rest, {
|
|
167
|
+
"aria-hidden": true
|
|
168
|
+
}))
|
|
169
|
+
}), (0, jsx_runtime_1.jsx)("div", {
|
|
170
|
+
className: "zen-chart__legend",
|
|
171
|
+
id: legendId
|
|
172
|
+
}), isDrive && xLabels ? (0, jsx_runtime_1.jsx)("div", {
|
|
173
|
+
className: "zen-chart__x-axis",
|
|
174
|
+
children: xLabels
|
|
175
|
+
}) : null]
|
|
176
|
+
}), (0, jsx_runtime_1.jsx)(accessibleChart_1.AccessibleChart, {
|
|
177
|
+
type: "bar",
|
|
178
|
+
data: chartData,
|
|
179
|
+
options: chartOptions,
|
|
180
|
+
narrativeId: narrativeId
|
|
181
|
+
})]
|
|
182
|
+
});
|
|
81
183
|
};
|
|
82
|
-
exports.BarChart = BarChart;
|
|
184
|
+
exports.BarChart = BarChart;
|