@geotab/zenith 3.12.3-beta.0 → 3.12.3-nightly.20260716.8a91cf9
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/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +17 -7
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +29 -29
- package/dist/alert/banner.d.ts +2 -3
- package/dist/alert/hooks/useAlertState.d.ts +0 -1
- package/dist/banner/bannerMultipLine.d.ts +0 -1
- package/dist/banner/bannerSingleLine.d.ts +0 -1
- package/dist/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/dist/calendar/calendar.js +1 -1
- package/dist/calendar/dateUtils.js +2 -2
- package/dist/card/card.js +17 -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 +11 -5
- package/dist/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/dist/chart/accessibleChart/generatePieNarrative.js +93 -0
- package/dist/chart/accessibleChart/interfaces.d.ts +1 -0
- package/dist/chart/barChart.js +146 -50
- package/dist/chart/interfaces.d.ts +0 -1
- package/dist/chart/lineChart/useChartTicks.d.ts +0 -1
- package/dist/chart/lineChart/useSummary.d.ts +9 -9
- package/dist/chart/lineChart.js +161 -59
- package/dist/chart/pieChart.js +168 -76
- package/dist/chart/plugins/linePlugin/getInterpolatedValue.js +1 -2
- package/dist/chart/utils/convertDates.d.ts +1 -1
- package/dist/chart/utils/getFormattedLabel.js +1 -2
- package/dist/chart/utils/getRange.js +2 -2
- 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/chip/chip.d.ts +0 -1
- package/dist/chip/utils/useChip.d.ts +0 -1
- package/dist/columnsSelector/columnsSelector.js +1 -1
- package/dist/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/arrowNavigationHelper.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/arrowNavigationHelper.js +29 -12
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +2 -2
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +2 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.js +4 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.js +12 -3
- package/dist/commonHelpers/arrowNavigation/hooks/useScrolling.js +18 -6
- package/dist/commonHelpers/generateId.js +1 -2
- 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/useEscape.d.ts +1 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/dist/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/dist/commonHelpers/utils.js +3 -3
- package/dist/commonStyles/caption/caption.less +3 -5
- package/dist/commonStyles/colors/colors.less +4 -19
- package/dist/commonStyles/columnsList.less +1 -0
- package/dist/commonStyles/common.less +1 -2
- package/dist/commonStyles/ellipsis.less +1 -1
- package/dist/commonStyles/fonts/roboto.less +7 -7
- package/dist/commonStyles/link/link.less +1 -1
- package/dist/commonStyles/notSelectable.less +0 -4
- package/dist/commonStyles/pillStyles/pillContent.less +6 -2
- package/dist/commonStyles/pillStyles/pillStyles.less +1 -1
- package/dist/commonStyles/pillStyles/pillTextContent.less +3 -0
- package/dist/commonStyles/pillStyles/pillTypes.less +10 -0
- package/dist/commonStyles/popupMixin.less +2 -2
- package/dist/commonStyles/rangeFieldMixin.less +3 -6
- package/dist/commonStyles/shadows/shadows.less +3 -3
- package/dist/commonStyles/typography/typography.less +24 -24
- package/dist/dataFeed/dataFeed.d.ts +1 -1
- package/dist/dataFeed/dataFeed.js +30 -4
- package/dist/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataGrid/cell/cell.d.ts +3 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.js +2 -3
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/dist/dataGrid/dataGrid.d.ts +13 -1
- package/dist/dataGrid/dataGrid.js +48 -3
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/dist/dataGrid/row/row.d.ts +3 -1
- package/dist/dataGrid/withActions/withActions.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/dist/dataGrid/withLoading/withLoading.d.ts +1 -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 +1 -1
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/dist/dateInputInner/dateInputInnerControlBlock.js +57 -57
- package/dist/dateInputInner/dateInputInnerReducer.js +2 -2
- package/dist/dateRangeRaw/utils/areMapsEqual.js +1 -2
- package/dist/dialog/dialog.d.ts +0 -1
- package/dist/divider/divider.js +1 -1
- package/dist/dropdown/useDropdownState.d.ts +0 -1
- package/dist/dropdownRaw/dropdownHelper.js +2 -2
- package/dist/dropdownRaw/dropdownList.js +17 -7
- package/dist/dropdownRaw/dropdownRaw.js +5 -3
- package/dist/dropdownRaw/stateReducer/stateReducer.js +2 -2
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +2 -2
- 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/filters/components/filtersDropdown.js +2 -2
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSearch.js +17 -7
- package/dist/filters/components/filtersSearchList.d.ts +0 -1
- package/dist/filters/components/filtersSelect.d.ts +0 -1
- package/dist/filters/components/filtersSelectCompact.d.ts +0 -1
- package/dist/filters/components/filtersSelectListItem.d.ts +0 -1
- package/dist/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- package/dist/filters/components/filtersSidePanelItem.js +17 -7
- 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/filtersBarPeriodPicker.js +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +2 -2
- package/dist/filtersBar/filtersBar.js +2 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- 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/filtersBarSidePanel.js +31 -31
- package/dist/filtersBar/filtersBarSidePanel/sidePanelReducer.js +2 -2
- package/dist/filtersBar/filtersContainer/filtersContainer.js +16 -5
- 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/formGroup/components/customRow/customRow.d.ts +0 -1
- package/dist/formGroup/formGroup.js +17 -7
- package/dist/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- 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/useFormButtons.d.ts +1 -1
- 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/utils/isFormSection.d.ts +2 -4
- package/dist/formStepper/components/formStepRaw.d.ts +0 -1
- package/dist/formStepper/formStepper.d.ts +0 -1
- package/dist/gridLayout/utils/convertStateToClasses.js +1 -2
- package/dist/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsHelper.d.ts +5 -5
- package/dist/groupsFilterRaw/groupsFilterHelper.js +16 -16
- package/dist/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/dist/groupsFilterRaw/groupsHelper.js +4 -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 +1 -1
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/dist/header/header.js +18 -8
- 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/headerMenu.js +1 -1
- package/dist/header/hooks/useNonFittingElements.d.ts +3 -4
- package/dist/headerTitle/headerTitle.d.ts +0 -1
- package/dist/index.css +512 -575
- package/dist/index.d.ts +2 -0
- package/dist/index.js +27 -17
- 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 +129 -70
- package/dist/lineChartMini/lineChartMini.d.ts +1 -0
- package/dist/lineChartMini/lineChartMini.js +135 -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 +1 -1
- package/dist/list/list.d.ts +0 -1
- package/dist/list/listItem/listItem.js +1 -1
- 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/contexts/usePathContext.js +1 -2
- package/dist/menu/menu.js +1 -1
- 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/modal/modal.js +17 -7
- package/dist/nav/context/nav.context.d.ts +0 -1
- package/dist/nav/navAddMenu/navAddMenu.js +1 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/dist/nav/navFooter/navFooter.js +4 -4
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/dist/nav/navHeader/navHeader.js +1 -1
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +1 -1
- package/dist/nav/navItem/navItem.js +52 -45
- package/dist/nav/navItem/navItemContent.d.ts +19 -0
- package/dist/nav/navItem/navItemContent.js +21 -0
- package/dist/nav/utils/navUtils.d.ts +2 -4
- package/dist/nav/utils/navUtils.js +2 -2
- 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/pill/interfaces/pill.interface.d.ts +0 -1
- package/dist/pillBox/components/pillBoxItem.d.ts +1 -2
- package/dist/popup/popup.js +17 -7
- package/dist/radioGroupRaw/radioGroupRaw.js +17 -7
- package/dist/radioGroupRaw/types.d.ts +0 -1
- package/dist/rangeRaw/rangeRaw.js +1 -1
- package/dist/rangeRaw/utils/rangeHelper.js +28 -28
- 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 +17 -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/selectRaw/hooks/usePopupWidth.js +17 -7
- package/dist/selectRaw/selectRaw.js +17 -7
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/dist/sortControl/sortControl.js +1 -1
- package/dist/summaries/utils/splitIntoPairs.js +1 -2
- package/dist/summary/summary.d.ts +3 -2
- package/dist/summary/summary.js +6 -2
- package/dist/summaryTile/summaryTile.js +17 -7
- package/dist/summaryTile/summaryTileTrigger.js +17 -7
- package/dist/summaryTileBar/summaryTileBar.js +3 -1
- package/dist/table/actions/actionsMenu.d.ts +0 -1
- package/dist/table/actions/actionsMenu.js +2 -2
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/detailPanel/interfaces.d.ts +0 -1
- package/dist/table/flexible/columnsList.js +1 -2
- package/dist/table/flexible/columnsPopup.js +1 -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/selectable/selectableHeader.d.ts +2 -1
- package/dist/table/selectable/selectableHeader.js +4 -3
- package/dist/table/selectable/useSelectableRows.d.ts +1 -1
- package/dist/table/selectable/useSelectableRows.js +7 -4
- package/dist/table/table.d.ts +16 -1
- package/dist/table/table.js +58 -12
- package/dist/tabs/tabs.js +16 -5
- package/dist/textIconButton/textIconButton.js +17 -7
- package/dist/toggleButtonRaw/toggleButtonRaw.js +17 -7
- package/dist/toggleButtonRaw/types.d.ts +0 -1
- package/dist/toolbar/helpers/getWidthWithMargin.js +2 -2
- package/dist/tooltip/helpers/calculateArrowPosition.js +1 -7
- package/dist/tooltip/tooltip.js +24 -12
- 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/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 +11 -8
- package/dist/utils/localization/translations/bg-BG.json +1 -0
- package/dist/utils/localization/translations/cs.json +11 -8
- package/dist/utils/localization/translations/da-DK.json +11 -8
- package/dist/utils/localization/translations/de.json +11 -8
- package/dist/utils/localization/translations/el-GR.json +1 -0
- package/dist/utils/localization/translations/en.json +19 -8
- package/dist/utils/localization/translations/es.json +11 -8
- package/dist/utils/localization/translations/et-EE.json +1 -0
- package/dist/utils/localization/translations/fi-FI.json +11 -8
- package/dist/utils/localization/translations/fr-FR.json +11 -8
- package/dist/utils/localization/translations/fr.json +11 -8
- package/dist/utils/localization/translations/hu-HU.json +11 -8
- package/dist/utils/localization/translations/id.json +11 -8
- package/dist/utils/localization/translations/it.json +11 -8
- package/dist/utils/localization/translations/ja.json +11 -8
- package/dist/utils/localization/translations/ka-GE.json +1 -0
- package/dist/utils/localization/translations/ko-KR.json +11 -8
- package/dist/utils/localization/translations/lt-LT.json +1 -0
- package/dist/utils/localization/translations/lv-LV.json +1 -0
- package/dist/utils/localization/translations/ms.json +11 -8
- package/dist/utils/localization/translations/nb-NO.json +11 -8
- package/dist/utils/localization/translations/nl.json +11 -8
- package/dist/utils/localization/translations/pl.json +11 -8
- package/dist/utils/localization/translations/pt-BR.json +11 -8
- package/dist/utils/localization/translations/pt-PT.json +11 -8
- package/dist/utils/localization/translations/ro-RO.json +11 -8
- package/dist/utils/localization/translations/sk-SK.json +11 -8
- package/dist/utils/localization/translations/sv.json +11 -8
- package/dist/utils/localization/translations/th.json +11 -8
- package/dist/utils/localization/translations/tr.json +11 -8
- package/dist/utils/localization/translations/zh-Hans.json +11 -8
- package/dist/utils/localization/translations/zh-TW.json +11 -8
- 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/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +29 -29
- package/esm/alert/banner.d.ts +2 -3
- package/esm/alert/hooks/useAlertState.d.ts +0 -1
- package/esm/banner/bannerMultipLine.d.ts +0 -1
- package/esm/banner/bannerSingleLine.d.ts +0 -1
- package/esm/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/esm/calendar/calendar.js +1 -1
- 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 +8 -2
- package/esm/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/esm/chart/accessibleChart/generatePieNarrative.js +81 -0
- package/esm/chart/accessibleChart/interfaces.d.ts +1 -0
- package/esm/chart/barChart.js +141 -50
- package/esm/chart/interfaces.d.ts +0 -1
- package/esm/chart/lineChart/useChartTicks.d.ts +0 -1
- package/esm/chart/lineChart/useSummary.d.ts +9 -9
- package/esm/chart/lineChart.js +156 -59
- package/esm/chart/pieChart.js +163 -76
- package/esm/chart/utils/convertDates.d.ts +1 -1
- package/esm/chart/utils/getRange.js +2 -2
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -1
- package/esm/chip/chip.d.ts +0 -1
- package/esm/chip/utils/useChip.d.ts +0 -1
- package/esm/columnsSelector/columnsSelector.js +1 -1
- package/esm/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/arrowNavigationHelper.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/arrowNavigationHelper.js +29 -12
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +2 -2
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +2 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.js +4 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.js +12 -3
- package/esm/commonHelpers/arrowNavigation/hooks/useScrolling.js +18 -6
- package/esm/commonHelpers/hooks/fetch.reducer.d.ts +1 -1
- package/esm/commonHelpers/hooks/useDebouncedMemo.d.ts +0 -1
- package/esm/commonHelpers/hooks/useEscape.d.ts +1 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/esm/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/esm/dataFeed/dataFeed.d.ts +1 -1
- package/esm/dataFeed/dataFeed.js +30 -4
- package/esm/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataGrid/cell/cell.d.ts +3 -1
- package/esm/dataGrid/columns/actionsColumn/actionsButton.js +1 -1
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/esm/dataGrid/dataGrid.d.ts +13 -1
- package/esm/dataGrid/dataGrid.js +48 -3
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/esm/dataGrid/row/row.d.ts +3 -1
- package/esm/dataGrid/withActions/withActions.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/esm/dataGrid/withLoading/withLoading.d.ts +1 -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 +1 -1
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/esm/dateInputInner/dateInputInnerControlBlock.js +57 -57
- package/esm/dialog/dialog.d.ts +0 -1
- package/esm/divider/divider.js +1 -1
- package/esm/dropdown/useDropdownState.d.ts +0 -1
- package/esm/dropdownRaw/dropdownRaw.js +5 -3
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +0 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +0 -1
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSearchList.d.ts +0 -1
- package/esm/filters/components/filtersSelect.d.ts +0 -1
- package/esm/filters/components/filtersSelectCompact.d.ts +0 -1
- package/esm/filters/components/filtersSelectListItem.d.ts +0 -1
- package/esm/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- 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/filtersBarPeriodPicker.js +1 -1
- package/esm/filtersBar/filtersBar.js +2 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- package/esm/filtersBar/filtersBarInterfaces.d.ts +0 -1
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.d.ts +4 -10
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +31 -31
- package/esm/filtersBar/filtersContainer/filtersContainer.js +16 -5
- 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/formGroup/components/customRow/customRow.d.ts +0 -1
- package/esm/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- 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/useFormButtons.d.ts +1 -1
- 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/utils/isFormSection.d.ts +2 -4
- package/esm/formStepper/components/formStepRaw.d.ts +0 -1
- package/esm/formStepper/formStepper.d.ts +0 -1
- package/esm/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsHelper.d.ts +5 -5
- package/esm/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/esm/groupsFilterRaw/stateReducer/stateReducer.d.ts +1 -1
- package/esm/groupsFilterRaw/testData.js +1 -2
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/esm/header/header.js +1 -1
- 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/headerMenu.js +1 -1
- package/esm/header/hooks/useNonFittingElements.d.ts +3 -4
- package/esm/headerTitle/headerTitle.d.ts +0 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -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 +123 -69
- package/esm/lineChartMini/lineChartMini.d.ts +1 -0
- package/esm/lineChartMini/lineChartMini.js +130 -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 +1 -1
- package/esm/list/list.d.ts +0 -1
- package/esm/list/listItem/listItem.js +1 -1
- 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/menu.js +1 -1
- 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/nav/context/nav.context.d.ts +0 -1
- package/esm/nav/navAddMenu/navAddMenu.js +1 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/esm/nav/navFooter/navFooter.js +4 -4
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/esm/nav/navHeader/navHeader.js +1 -1
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +1 -1
- package/esm/nav/navItem/navItem.js +53 -46
- package/esm/nav/navItem/navItemContent.d.ts +19 -0
- package/esm/nav/navItem/navItemContent.js +17 -0
- package/esm/nav/utils/navUtils.d.ts +2 -4
- 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/pill/interfaces/pill.interface.d.ts +0 -1
- package/esm/pillBox/components/pillBoxItem.d.ts +1 -2
- package/esm/radioGroupRaw/types.d.ts +0 -1
- package/esm/rangeRaw/rangeRaw.js +1 -1
- package/esm/rangeRaw/utils/rangeHelper.js +28 -28
- package/esm/react-chartjs/utils.d.ts +3 -3
- 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/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/esm/sortControl/sortControl.js +1 -1
- package/esm/summary/summary.d.ts +3 -2
- package/esm/summary/summary.js +6 -2
- package/esm/summaryTileBar/summaryTileBar.js +3 -1
- package/esm/table/actions/actionsMenu.d.ts +0 -1
- package/esm/table/actions/actionsMenu.js +2 -2
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/detailPanel/interfaces.d.ts +0 -1
- package/esm/table/flexible/columnsPopup.js +1 -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/selectable/selectableHeader.d.ts +2 -1
- package/esm/table/selectable/selectableHeader.js +4 -3
- package/esm/table/selectable/useSelectableRows.d.ts +1 -1
- package/esm/table/selectable/useSelectableRows.js +7 -4
- package/esm/table/table.d.ts +16 -1
- package/esm/table/table.js +59 -13
- package/esm/tabs/tabs.js +16 -5
- package/esm/testHelpers/geotab-axe/index.d.ts +0 -1
- package/esm/toggleButtonRaw/types.d.ts +0 -1
- package/esm/toolbar/helpers/getWidthWithMargin.js +2 -2
- package/esm/tooltip/helpers/calculateArrowPosition.js +1 -7
- package/esm/tooltip/tooltip.js +7 -5
- package/esm/tooltipInfo/tooltipInfo.d.ts +0 -1
- package/esm/tsconfig.esm.tsbuildinfo +1 -0
- 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 +11 -8
- package/esm/utils/localization/translations/bg-BG.json +1 -0
- package/esm/utils/localization/translations/cs.json +11 -8
- package/esm/utils/localization/translations/da-DK.json +11 -8
- package/esm/utils/localization/translations/de.json +11 -8
- package/esm/utils/localization/translations/el-GR.json +1 -0
- package/esm/utils/localization/translations/en.json +19 -8
- package/esm/utils/localization/translations/es.json +11 -8
- package/esm/utils/localization/translations/et-EE.json +1 -0
- package/esm/utils/localization/translations/fi-FI.json +11 -8
- package/esm/utils/localization/translations/fr-FR.json +11 -8
- package/esm/utils/localization/translations/fr.json +11 -8
- package/esm/utils/localization/translations/hu-HU.json +11 -8
- package/esm/utils/localization/translations/id.json +11 -8
- package/esm/utils/localization/translations/it.json +11 -8
- package/esm/utils/localization/translations/ja.json +11 -8
- package/esm/utils/localization/translations/ka-GE.json +1 -0
- package/esm/utils/localization/translations/ko-KR.json +11 -8
- package/esm/utils/localization/translations/lt-LT.json +1 -0
- package/esm/utils/localization/translations/lv-LV.json +1 -0
- package/esm/utils/localization/translations/ms.json +11 -8
- package/esm/utils/localization/translations/nb-NO.json +11 -8
- package/esm/utils/localization/translations/nl.json +11 -8
- package/esm/utils/localization/translations/pl.json +11 -8
- package/esm/utils/localization/translations/pt-BR.json +11 -8
- package/esm/utils/localization/translations/pt-PT.json +11 -8
- package/esm/utils/localization/translations/ro-RO.json +11 -8
- package/esm/utils/localization/translations/sk-SK.json +11 -8
- package/esm/utils/localization/translations/sv.json +11 -8
- package/esm/utils/localization/translations/th.json +11 -8
- package/esm/utils/localization/translations/tr.json +11 -8
- package/esm/utils/localization/translations/zh-Hans.json +11 -8
- package/esm/utils/localization/translations/zh-TW.json +11 -8
- 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/package.json +18 -6
|
@@ -27,13 +27,23 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
|
|
|
27
27
|
} : function (o, v) {
|
|
28
28
|
o["default"] = v;
|
|
29
29
|
});
|
|
30
|
-
var __importStar = this && this.__importStar || function (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
30
|
+
var __importStar = this && this.__importStar || function () {
|
|
31
|
+
var ownKeys = function (o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
37
47
|
Object.defineProperty(exports, "__esModule", {
|
|
38
48
|
value: true
|
|
39
49
|
});
|
|
@@ -9,33 +9,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.TRANSLATIONS = exports.AdvancedGroupsFilterSectionTooltip = void 0;
|
|
10
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
const tooltip_1 = require("../tooltip/tooltip");
|
|
12
|
-
injectString("cs", "Use multiple
|
|
13
|
-
injectString("da-DK", "Use multiple
|
|
14
|
-
injectString("de", "Use multiple
|
|
15
|
-
injectString("en", "Use multiple
|
|
16
|
-
injectString("es", "Use multiple
|
|
17
|
-
injectString("fi-FI", "Use multiple
|
|
18
|
-
injectString("fr", "Use multiple
|
|
19
|
-
injectString("fr-FR", "Use multiple
|
|
20
|
-
injectString("hu-HU", "Use multiple
|
|
21
|
-
injectString("id", "Use multiple
|
|
22
|
-
injectString("it", "Use multiple
|
|
23
|
-
injectString("ja", "Use multiple
|
|
24
|
-
injectString("ko-KR", "Use multiple
|
|
25
|
-
injectString("ms", "Use multiple
|
|
26
|
-
injectString("nb-NO", "Use multiple
|
|
27
|
-
injectString("nl", "Use multiple
|
|
28
|
-
injectString("pl", "Use multiple
|
|
29
|
-
injectString("pt-BR", "Use multiple
|
|
30
|
-
injectString("pt-PT", "Use multiple
|
|
31
|
-
injectString("sk-SK", "Use multiple
|
|
32
|
-
injectString("sv", "Use multiple
|
|
33
|
-
injectString("th", "Use multiple
|
|
34
|
-
injectString("tr", "Use multiple
|
|
35
|
-
injectString("zh-Hans", "Use multiple
|
|
36
|
-
injectString("zh-TW", "Use multiple
|
|
37
|
-
injectString("ro-RO", "Use multiple
|
|
38
|
-
injectString("ar", "Use multiple
|
|
12
|
+
injectString("cs", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "P\u0159i hled\xE1n\xED konkr\xE9tn\xED skupiny pou\u017Eijte v\xEDce oper\xE1tor\u016F. Nap\u0159\xEDklad p\u0159i filtrov\xE1n\xED prost\u0159edk\u016F, kter\xE9 spadaj\xED do skupiny Traktory, skupina Toronto zobraz\xED seznam traktor\u016F, kter\xE9 pat\u0159\xED do pobo\u010Dky v Torontu.");
|
|
13
|
+
injectString("da-DK", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Brug flere operatorer, n\xE5r du s\xF8ger efter en bestemt gruppe. Hvis du f.eks. filtrerer efter aktiver, der tilh\xF8rer gruppen Traktor og Toronto-gruppen, vises en liste over traktorer, der tilh\xF8rer Toronto-grenen.");
|
|
14
|
+
injectString("de", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Verwenden Sie mehrere Operatoren, wenn Sie nach einer bestimmten Gruppe suchen. Benutzen Sie beispielsweise bei der Suche nach Assets die Gruppenfilter \u201ETraktor\u201C und \u201EToronto\u201C, wird eine Liste mit allen Traktoren f\xFCr den Standort Toronto angezeigt.");
|
|
15
|
+
injectString("en", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.");
|
|
16
|
+
injectString("es", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Utilice varios operadores cuando busque un grupo espec\xEDfico. Por ejemplo, al fltrar por activos que pertenecen al grupo Tractor y al grupo Toronto se muestra una lista de tractores que pertenecen a la sucursal de Toronto.");
|
|
17
|
+
injectString("fi-FI", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "K\xE4yt\xE4 useita operaattoreita, kun etsit tietty\xE4 ryhm\xE4\xE4. Esimerkiksi traktoriryhm\xE4\xE4n ja Toronto-ryhm\xE4\xE4n kuuluvien varojen suodattaminen n\xE4ytt\xE4\xE4 luettelon traktoreista, jotka kuuluvat Toronto-sivuliikkeeseen.");
|
|
18
|
+
injectString("fr", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Utilisez plusieurs op\xE9rateurs lors de la recherche d\u2019un groupe sp\xE9cifique. Par exemple, le filtrage des actifs appartenant au groupe Tracteur et au groupe Toronto affiche une liste des tracteurs appartenant \xE0 la succursale de Toronto.");
|
|
19
|
+
injectString("fr-FR", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Utilisez plusieurs op\xE9rateurs lors de la recherche d\u2019un groupe sp\xE9cifique. Par exemple, filtrer des actifs appartenant au groupe Tracteurs et au groupe Toronto affiche une liste des tracteurs appartenant \xE0 la branche de Toronto.");
|
|
20
|
+
injectString("hu-HU", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Haszn\xE1lj t\xF6bb oper\xE1tort, amikor egy adott csoportot keresel. P\xE9ld\xE1ul, ha a Traktor \xE9s a Toront\xF3i csoporthoz tartoz\xF3 eszk\xF6z\xF6kre sz\u0171rsz, akkor a Toront\xF3i fi\xF3khoz tartoz\xF3 traktorok list\xE1ja jelenik meg.");
|
|
21
|
+
injectString("id", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Gunakan beberapa Operator saat mencari grup tertentu. Contohnya, memfilter aset yang termasuk dalam grup Traktor dan grup Toronto akan menampilkan daftar traktor yang termasuk dalam cabang Toronto.");
|
|
22
|
+
injectString("it", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Utilizzare pi\xF9 operatori durante la ricerca di un gruppo specifico. Ad esempio, filtrando per asset appartenenti al gruppo Trattore e Toronto, viene visualizzato un elenco di trattori appartenenti alla filiale di Toronto.");
|
|
23
|
+
injectString("ja", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\u7279\u5B9A\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u691C\u7D22\u3059\u308B\u3068\u304D\u306F\u3001\u8907\u6570\u306E\u6F14\u7B97\u5B50\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u4F8B\u3048\u3070\u3001Tractor \u30B0\u30EB\u30FC\u30D7\u3068 Toronto \u30B0\u30EB\u30FC\u30D7\u306B\u5C5E\u3059\u308B\u30A2\u30BB\u30C3\u30C8\u3092\u30D5\u30A3\u30EB\u30BF\u30EA\u30F3\u30B0\u3059\u308B\u3068\u3001Toronto \u652F\u5E97\u306B\u5C5E\u3059\u308B\u30C8\u30E9\u30AF\u30BF\u30FC\u306E\u30EA\u30B9\u30C8\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002");
|
|
24
|
+
injectString("ko-KR", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\uD2B9\uC815 \uADF8\uB8F9\uC744 \uAC80\uC0C9\uD560 \uB54C\uB294 \uC5EC\uB7EC \uC5F0\uC0B0\uC790\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC608\uB97C \uB4E4\uC5B4, \uD2B8\uB799\uD130 \uADF8\uB8F9\uACFC \uD1A0\uB860\uD1A0 \uADF8\uB8F9\uC5D0 \uC18D\uD55C \uC790\uC0B0\uC744 \uD544\uD130\uB9C1\uD558\uBA74 \uD1A0\uB860\uD1A0 \uC9C0\uC810\uC5D0 \uC18D\uD55C \uD2B8\uB799\uD130 \uBAA9\uB85D\uC774 \uD45C\uC2DC\uB429\uB2C8\uB2E4.");
|
|
25
|
+
injectString("ms", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Gunakan berbilang Operator apabila mencari kumpulan khusus. Contohnya, penyaringan untuk aset yang dimiliki kumpulan Traktor dan kumpulan Toronto memaparkan senarai traktor yang dimiliki oleh cawangan Toronto.");
|
|
26
|
+
injectString("nb-NO", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Bruk flere operat\xF8rer n\xE5r du s\xF8ker etter en bestemt gruppe. Hvis du for eksempel filtrerer for eiendeler som tilh\xF8rer traktorgruppen og Toronto-gruppen, vises en liste over traktorer som tilh\xF8rer Toronto-grenen.");
|
|
27
|
+
injectString("nl", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Gebruik meerdere opties bij het zoeken naar een specifieke groep. Als u bijvoorbeeld filtert op assets die behoren tot de tractorgroep en de Toronto-groep, wordt een lijst weergegeven met tractoren die tot de Toronto-tak behoren.");
|
|
28
|
+
injectString("pl", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "U\u017Cyj wielu operator\xF3w podczas wyszukiwania okre\u015Blonej grupy. Na przyk\u0142ad filtrowanie zasob\xF3w nale\u017C\u0105cych do grupy Ci\u0105gnik i grupy Toronto wy\u015Bwietla list\u0119 ci\u0105gnik\xF3w nale\u017C\u0105cych do oddzia\u0142u w Toronto.");
|
|
29
|
+
injectString("pt-BR", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Use v\xE1rios operadores para pesquisar um grupo espec\xEDfico. Por exemplo, a filtragem por ativos que pertencem ao grupo Tratores e ao grupo Toronto exibe uma lista de tratores que pertencem \xE0 divis\xE3o de Toronto.");
|
|
30
|
+
injectString("pt-PT", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Use m\xFAltiplos operadores ao pesquisar por um grupo espec\xEDfico. Por exemplo, filtrar por ativos que pertencem ao grupo Trator e ao grupo Toronto exibe uma lista de tratores que pertencem \xE0 filial de Toronto.");
|
|
31
|
+
injectString("sk-SK", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Pri h\u013Eadan\xED konkr\xE9tnej skupiny pou\u017Ei viacero oper\xE1torov. Napr\xEDklad filtrovanie akt\xEDv, ktor\xE9 patria do skupiny Traktory a skupiny Toronto, zobraz\xED zoznam traktorov, ktor\xE9 patria do pobo\u010Dky Toronto.");
|
|
32
|
+
injectString("sv", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Anv\xE4nd flera operat\xF6rer n\xE4r du s\xF6ker efter en viss grupp. Om du till exempel filtrerar efter tillg\xE5ngar som tillh\xF6r gruppen \"Dragbilar\" och gruppen \"Toronto\" visas en lista med dragbilar som tillh\xF6r lokalkontoret i Toronto.");
|
|
33
|
+
injectString("th", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\u0E43\u0E0A\u0E49\u0E15\u0E31\u0E27\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2B\u0E25\u0E32\u0E22\u0E15\u0E31\u0E27\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E09\u0E1E\u0E32\u0E30 \u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E48\u0E19 \u0E01\u0E32\u0E23\u0E01\u0E23\u0E2D\u0E07\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E34\u0E19\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E01\u0E25\u0E38\u0E48\u0E21\u0E23\u0E16\u0E41\u0E17\u0E23\u0E01\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E01\u0E25\u0E38\u0E48\u0E21\u0E42\u0E17\u0E23\u0E2D\u0E19\u0E42\u0E15\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E23\u0E16\u0E41\u0E17\u0E23\u0E01\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E2A\u0E32\u0E02\u0E32\u0E42\u0E17\u0E23\u0E2D\u0E19\u0E42\u0E15");
|
|
34
|
+
injectString("tr", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Belirli bir grubu ararken birden \xE7ok operat\xF6r kullan\u0131n. \xD6rne\u011Fin, Trakt\xF6r grubuna ve Toronto grubuna ait varl\u0131klar i\xE7in filtreleme yap\u0131l\u0131rken Toronto \u015Fubesine ait trakt\xF6rlerin listesi g\xF6r\xFCnt\xFClenir.");
|
|
35
|
+
injectString("zh-Hans", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\u641C\u7D22\u7279\u5B9A\u7EC4\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528\u591A\u4E2A\u8FD0\u7B97\u7B26\u3002\u4F8B\u5982\uFF0C\u7B5B\u9009\u5C5E\u4E8E\u201C\u7275\u5F15\u8F66\u201D\u7EC4\u548C\u201C\u591A\u4F26\u591A\u201D\u7EC4\u7684\u8D44\u4EA7\uFF0C\u5C31\u4F1A\u663E\u793A\u5C5E\u4E8E\u591A\u4F26\u591A\u5206\u652F\u7684\u7275\u5F15\u8F66\u5217\u8868\u3002");
|
|
36
|
+
injectString("zh-TW", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\u641C\u5C0B\u7279\u5B9A\u7FA4\u7D44\u6642\uFF0C\u8ACB\u4F7F\u7528\u591A\u500B\u904B\u7B97\u5B50\u3002\u4F8B\u5982\uFF0C\u82E5\u7BE9\u9078\u5C6C\u65BC\u727D\u5F15\u6A5F\u7FA4\u7D44\u548C\u591A\u502B\u591A\u7FA4\u7D44\u7684\u8CC7\u7522\uFF0C\u5247\u6703\u986F\u793A\u5C6C\u65BC\u591A\u502B\u591A\u5206\u516C\u53F8\u7684\u727D\u5F15\u6A5F\u6E05\u55AE\u3002");
|
|
37
|
+
injectString("ro-RO", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "Utiliza\u021Bi mai mul\u021Bi operatori c\xE2nd c\u0103uta\u021Bi un anumit grup. De exemplu, prin filtrarea activelor care apar\u021Bin grupului Tractor \u0219i grupului Toronto, se afi\u0219eaz\u0103 o list\u0103 de tractoare care apar\u021Bin filialei Toronto.");
|
|
38
|
+
injectString("ar", "Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.", "\u0627\u0633\u062A\u062E\u062F\u0645 \u0639\u0648\u0627\u0645\u0644 \u062A\u0634\u063A\u064A\u0644 \u0645\u062A\u0639\u062F\u062F\u0629 \u0639\u0646\u062F \u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u0645\u062C\u0645\u0648\u0639\u0629 \u0645\u0639\u064A\u0646\u0629. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C \u062A\u0635\u0641\u064A\u0629 \u0627\u0644\u0623\u0635\u0648\u0644 \u0627\u0644\u062A\u064A \u062A\u0646\u062A\u0645\u064A \u0625\u0644\u0649 \u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u062C\u0631\u0627\u0631\u0627\u062A \u0648\u0645\u062C\u0645\u0648\u0639\u0629 \u062A\u0648\u0631\u0646\u062A\u0648 \u062A\u0639\u0631\u0636 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062C\u0631\u0627\u0631\u0627\u062A \u0627\u0644\u062A\u064A \u062A\u0646\u062A\u0645\u064A \u0625\u0644\u0649 \u0641\u0631\u0639 \u062A\u0648\u0631\u0646\u062A\u0648.");
|
|
39
39
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
40
40
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
41
41
|
const AdvancedGroupsFilterSectionTooltip = ({
|
|
@@ -46,7 +46,7 @@ const AdvancedGroupsFilterSectionTooltip = ({
|
|
|
46
46
|
const {
|
|
47
47
|
translate
|
|
48
48
|
} = (0, useLanguage_1.useLanguage)();
|
|
49
|
-
const defaultTooltipText = translate("Use multiple
|
|
49
|
+
const defaultTooltipText = translate("Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.");
|
|
50
50
|
return (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, {
|
|
51
51
|
className: (0, classNames_1.classNames)(["zen-advanced-groups-filter-section-tooltip__item", className || ""]),
|
|
52
52
|
alignment: alignment,
|
|
@@ -54,4 +54,4 @@ const AdvancedGroupsFilterSectionTooltip = ({
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
exports.AdvancedGroupsFilterSectionTooltip = AdvancedGroupsFilterSectionTooltip;
|
|
57
|
-
exports.TRANSLATIONS = ["Use multiple
|
|
57
|
+
exports.TRANSLATIONS = ["Use multiple Operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch."];
|
package/dist/alert/banner.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
ErrorSummary: import("react").FC<import("../banner/bannerErrorSummary").IBannerErrorSummary>;
|
|
1
|
+
export declare const Banner: import("react").FC<import("..").IBanner> & {
|
|
2
|
+
ErrorSummary: typeof import("../banner/bannerErrorSummary").BannerErrorSummary;
|
|
4
3
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IBannerErrorSummary } from "../bannerErrorSummary";
|
|
3
|
-
export declare const isSummaryErrorElement: (child: React.ReactNode) => child is
|
|
2
|
+
export declare const isSummaryErrorElement: (child: React.ReactNode) => child is React.ReactElement<IBannerErrorSummary>;
|
|
@@ -1130,7 +1130,7 @@ const Calendar = ({
|
|
|
1130
1130
|
title: translate("Select year"),
|
|
1131
1131
|
onSelect: year => changeView((0, dateUtils_1.setYear)(viewDate, year)),
|
|
1132
1132
|
isMobileView: isMobileView,
|
|
1133
|
-
alignment: onTodayButtonClick ? "bottom" : "bottom-
|
|
1133
|
+
alignment: onTodayButtonClick ? "bottom" : "bottom-end"
|
|
1134
1134
|
})]
|
|
1135
1135
|
}), onTodayButtonClick ? (0, jsx_runtime_1.jsx)(button_1.Button, {
|
|
1136
1136
|
type: buttonType_1.ButtonType.Tertiary,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getValidTime = exports.getValidDatesForEnd = exports.getValidDatesForStart = exports.isDifferentPeriod = exports.isValidationDateError = exports.isValidDate = exports.getSelectableYears = exports.isDisableDate = exports.isDisableYear = exports.getAvailablePeriod = exports.toDayStart = exports.setYear = exports.getSameDateOrTheLastForMonth = exports.addMonth = exports.getEndOfWeek = exports.getStartOfWeek = exports.getDayOfWeekOffset = exports.
|
|
3
|
+
exports.getValidTime = exports.getValidDatesForEnd = exports.getValidDatesForStart = exports.isDifferentPeriod = exports.isValidationDateError = exports.isValidDate = exports.getSelectableYears = exports.isDisableDate = exports.isDisableYear = exports.getAvailablePeriod = exports.toDayStart = exports.setYear = exports.getSameDateOrTheLastForMonth = exports.addMonth = exports.getEndOfWeek = exports.getStartOfWeek = exports.getDayOfWeekOffset = exports.addDays = exports.addMinutes = exports.getNewEndDate = exports.getNewStartDate = exports.getCalendarMonthDates = exports.getEndOfMonth = exports.getStartOfMonth = exports.dayNames = void 0;
|
|
4
|
+
exports.addMonths = addMonths;
|
|
4
5
|
exports.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
5
6
|
const getStartOfMonth = (d) => {
|
|
6
7
|
const date = new Date(Date.parse(d));
|
|
@@ -90,7 +91,6 @@ function addMonths(date, num) {
|
|
|
90
91
|
date.setDate(Math.min(day, Math.round((monthAdded.getTime() - date.getTime()) / 86400000)));
|
|
91
92
|
return date;
|
|
92
93
|
}
|
|
93
|
-
exports.addMonths = addMonths;
|
|
94
94
|
const getDayOfWeekOffset = (nowDate, firstDayOfWeek) => {
|
|
95
95
|
const dayOfWeek = nowDate.getDay();
|
|
96
96
|
const startDayOfWeek = firstDayOfWeek ? exports.dayNames.indexOf(firstDayOfWeek) : 0;
|
package/dist/card/card.js
CHANGED
|
@@ -27,13 +27,23 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
|
|
|
27
27
|
} : function (o, v) {
|
|
28
28
|
o["default"] = v;
|
|
29
29
|
});
|
|
30
|
-
var __importStar = this && this.__importStar || function (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
30
|
+
var __importStar = this && this.__importStar || function () {
|
|
31
|
+
var ownKeys = function (o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
37
47
|
Object.defineProperty(exports, "__esModule", {
|
|
38
48
|
value: true
|
|
39
49
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSizeClass =
|
|
3
|
+
exports.getSizeClass = getSizeClass;
|
|
4
4
|
function getSizeClass(className, size) {
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
6
6
|
switch (size) {
|
|
@@ -22,4 +22,3 @@ function getSizeClass(className, size) {
|
|
|
22
22
|
return "";
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
exports.getSizeClass = getSizeClass;
|
|
@@ -5,5 +5,5 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const userFormatProvider_1 = require("../../utils/userFormat/userFormatProvider");
|
|
6
6
|
const accessibleChartNarrative_1 = require("./accessibleChartNarrative");
|
|
7
7
|
const accessibleChartTable_1 = require("./accessibleChartTable");
|
|
8
|
-
const AccessibleChart = (props) => ((0, jsx_runtime_1.jsxs)(userFormatProvider_1.UserFormatProvider, { dateFormat: "d MMMM yyyy", children: [
|
|
8
|
+
const AccessibleChart = (props) => ((0, jsx_runtime_1.jsxs)(userFormatProvider_1.UserFormatProvider, { dateFormat: "d MMMM yyyy", children: [(0, jsx_runtime_1.jsx)(accessibleChartNarrative_1.AccessibleChartNarrative, Object.assign({}, props)), (0, jsx_runtime_1.jsx)(accessibleChartTable_1.AccessibleChartTable, Object.assign({}, props))] }));
|
|
9
9
|
exports.AccessibleChart = AccessibleChart;
|
|
@@ -3,4 +3,4 @@ import { IBarChartOptions } from "../barChart/interfaces";
|
|
|
3
3
|
import { ILineChartOptions, ILineChartPoint } from "../lineChart/interfaces";
|
|
4
4
|
export declare function collectAllPoints(dataset: AccessibleChartDataset, dateFormatter: (d: Date | string, format?: string) => string, miniChartLabels?: string[], options?: ILineChartOptions | IBarChartOptions): IAccessiblePoint[];
|
|
5
5
|
export declare function simplifyData(data: ILineChartPoint[]): ILineChartPoint[];
|
|
6
|
-
export declare const AccessibleChartNarrative: ({ data, options }: IAccessibleChart) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const AccessibleChartNarrative: ({ data, type, options, narrativeId }: IAccessibleChart) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,9 @@ const {
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.AccessibleChartNarrative =
|
|
9
|
+
exports.AccessibleChartNarrative = void 0;
|
|
10
|
+
exports.collectAllPoints = collectAllPoints;
|
|
11
|
+
exports.simplifyData = simplifyData;
|
|
10
12
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
13
|
const useLanguage_1 = require("../../utils/localization/useLanguage");
|
|
12
14
|
const react_1 = require("react");
|
|
@@ -17,6 +19,7 @@ const getFormattedLabel_1 = require("../utils/getFormattedLabel");
|
|
|
17
19
|
const truncateDecimals_1 = require("../../utils/truncateDecimals");
|
|
18
20
|
const calculateMinTruncationPrecision_1 = require("../utils/calculateMinTruncationPrecision");
|
|
19
21
|
const removeTrendDataFromDatasets_1 = require("../utils/removeTrendDataFromDatasets");
|
|
22
|
+
const generatePieNarrative_1 = require("./generatePieNarrative");
|
|
20
23
|
injectString("cs", "Data", "Data");
|
|
21
24
|
injectString("da-DK", "Data", "Data");
|
|
22
25
|
injectString("de", "Data", "Daten");
|
|
@@ -407,7 +410,6 @@ function collectAllPoints(dataset, dateFormatter, miniChartLabels, options) {
|
|
|
407
410
|
}
|
|
408
411
|
return allPoints;
|
|
409
412
|
}
|
|
410
|
-
exports.collectAllPoints = collectAllPoints;
|
|
411
413
|
function simplifyData(data) {
|
|
412
414
|
// Need at least 3 points to find a peak or valley
|
|
413
415
|
if (data.length < 3) {
|
|
@@ -569,7 +571,6 @@ function simplifyData(data) {
|
|
|
569
571
|
}
|
|
570
572
|
return finalResult;
|
|
571
573
|
}
|
|
572
|
-
exports.simplifyData = simplifyData;
|
|
573
574
|
function getTrendDirectionBySlope(slope) {
|
|
574
575
|
const slopeThreshold = 1e-10;
|
|
575
576
|
if (slope > slopeThreshold) {
|
|
@@ -957,7 +958,9 @@ function detectDatasetTrend(dataset, translate, dateFormatter, miniChartLabels,
|
|
|
957
958
|
}
|
|
958
959
|
const AccessibleChartNarrative = ({
|
|
959
960
|
data,
|
|
960
|
-
|
|
961
|
+
type,
|
|
962
|
+
options,
|
|
963
|
+
narrativeId
|
|
961
964
|
}) => {
|
|
962
965
|
const {
|
|
963
966
|
translate
|
|
@@ -969,6 +972,7 @@ const AccessibleChartNarrative = ({
|
|
|
969
972
|
} = (0, react_1.useContext)(userFormatContext_1.userFormatContext);
|
|
970
973
|
const dateFormatter = (0, react_1.useCallback)((d, format = dateFormat) => (0, formatDate_1.formatDate)(toLocalDateTime(d), format, translate), [toLocalDateTime, dateFormat, translate]);
|
|
971
974
|
const filteredDatasets = (0, removeTrendDataFromDatasets_1.removeTrendDataFromDatasets)(data.datasets);
|
|
975
|
+
const pieAnalysis = (0, react_1.useMemo)(() => type === "pie" ? (0, generatePieNarrative_1.generatePieNarrative)(data, translate) : null, [type, data, translate]);
|
|
972
976
|
const datasetsWithAnalysis = (0, react_1.useMemo)(() => filteredDatasets.map(dataset => {
|
|
973
977
|
const datasetObj = Object.assign({}, dataset);
|
|
974
978
|
try {
|
|
@@ -980,9 +984,11 @@ const AccessibleChartNarrative = ({
|
|
|
980
984
|
return errMsg;
|
|
981
985
|
}
|
|
982
986
|
}), [filteredDatasets, translate, dateFormatter, miniChartLabels, options]);
|
|
987
|
+
const lines = pieAnalysis !== null && pieAnalysis !== void 0 ? pieAnalysis : datasetsWithAnalysis;
|
|
983
988
|
return (0, jsx_runtime_1.jsx)("div", {
|
|
989
|
+
id: narrativeId,
|
|
984
990
|
className: "screen-reader-only",
|
|
985
|
-
children:
|
|
991
|
+
children: lines.map((analysis, index) => (0, jsx_runtime_1.jsx)("div", {
|
|
986
992
|
children: analysis
|
|
987
993
|
}, index))
|
|
988
994
|
});
|
|
@@ -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,93 @@
|
|
|
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("en", "Summary: {COUNT} slices.", "Summary: {COUNT} slices.");
|
|
17
|
+
injectString("en", "Largest:", "Largest:");
|
|
18
|
+
injectString("en", "Smallest:", "Smallest:");
|
|
19
|
+
injectString("en", "Rest: {COUNT} other slices account for {PCT}%.", "Rest: {COUNT} other slices account for {PCT}%.");
|
|
20
|
+
injectString("en", "Details, {COUNT} items:", "Details, {COUNT} items:");
|
|
21
|
+
injectString("cs", "No data available", "Nejsou k\xA0dispozici \u017E\xE1dn\xE1 data");
|
|
22
|
+
injectString("da-DK", "No data available", "Ingen data tilg\xE6ngelige");
|
|
23
|
+
injectString("de", "No data available", "Keine Daten verf\xFCgbar");
|
|
24
|
+
injectString("en", "No data available", "No data available");
|
|
25
|
+
injectString("es", "No data available", "No hay datos disponibles");
|
|
26
|
+
injectString("fi-FI", "No data available", "Tietoja ei saatavilla");
|
|
27
|
+
injectString("fr", "No data available", "Aucune donn\xE9e disponible");
|
|
28
|
+
injectString("fr-FR", "No data available", "Aucune donn\xE9e disponible");
|
|
29
|
+
injectString("hu-HU", "No data available", "Nincsenek rendelkez\xE9sre \xE1ll\xF3 adatok");
|
|
30
|
+
injectString("id", "No data available", "Tidak ada data tersedia");
|
|
31
|
+
injectString("it", "No data available", "Nessun dato disponibile");
|
|
32
|
+
injectString("ja", "No data available", "\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093");
|
|
33
|
+
injectString("ko-KR", "No data available", "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
34
|
+
injectString("ms", "No data available", "Tiada data tersedia");
|
|
35
|
+
injectString("nb-NO", "No data available", "Ingen data tilgjengelig");
|
|
36
|
+
injectString("nl", "No data available", "Geen gegevens beschikbaar");
|
|
37
|
+
injectString("pl", "No data available", "Brak dost\u0119pnych danych");
|
|
38
|
+
injectString("pt-BR", "No data available", "Nenhum dado dispon\xEDvel");
|
|
39
|
+
injectString("pt-PT", "No data available", "Sem dados dispon\xEDveis");
|
|
40
|
+
injectString("sk-SK", "No data available", "Nie s\xFA k dispoz\xEDcii \u017Eiadne \xFAdaje");
|
|
41
|
+
injectString("sv", "No data available", "Det finns inga tillg\xE4ngliga data");
|
|
42
|
+
injectString("th", "No data available", "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25");
|
|
43
|
+
injectString("tr", "No data available", "Mevcut veri yok");
|
|
44
|
+
injectString("zh-Hans", "No data available", "\u65E0\u53EF\u7528\u6570\u636E");
|
|
45
|
+
injectString("zh-TW", "No data available", "\u6C92\u6709\u53EF\u7528\u8CC7\u6599");
|
|
46
|
+
injectString("ro-RO", "No data available", "Nu exist\u0103 date disponibile");
|
|
47
|
+
injectString("ar", "No data available", "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A \u0645\u062A\u0627\u062D\u0629");
|
|
48
|
+
exports.PIE_LARGE_DATASET_THRESHOLD = 6;
|
|
49
|
+
exports.PIE_LARGEST_COUNT = 3;
|
|
50
|
+
function formatPieSlice(label, value, total, decimalLength) {
|
|
51
|
+
const pct = Math.round(value / total * 100);
|
|
52
|
+
return `${label}: ${(0, truncateDecimals_1.truncateDecimals)(value, decimalLength)} (${pct}%)`;
|
|
53
|
+
}
|
|
54
|
+
function generatePieSliceDetails(values, labels, total, decimalLength) {
|
|
55
|
+
return values.map((value, index) => {
|
|
56
|
+
var _a;
|
|
57
|
+
return formatPieSlice((_a = labels[index]) !== null && _a !== void 0 ? _a : String(index + 1), value, total, decimalLength);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function generatePieSummaryLines(values, labels, total, decimalLength, details, translate) {
|
|
61
|
+
var _a;
|
|
62
|
+
const indexed = values.map((value, index) => ({
|
|
63
|
+
value,
|
|
64
|
+
index
|
|
65
|
+
}));
|
|
66
|
+
const sorted = [...indexed].sort((a, b) => b.value - a.value);
|
|
67
|
+
const largestItems = sorted.slice(0, exports.PIE_LARGEST_COUNT);
|
|
68
|
+
const smallestItem = sorted[sorted.length - 1];
|
|
69
|
+
const restItems = sorted.slice(exports.PIE_LARGEST_COUNT, sorted.length - 1);
|
|
70
|
+
const restTotal = restItems.reduce((sum, item) => sum + item.value, 0);
|
|
71
|
+
const restPct = Math.round(restTotal / total * 100);
|
|
72
|
+
const largestStr = largestItems.map(item => {
|
|
73
|
+
var _a;
|
|
74
|
+
return formatPieSlice((_a = labels[item.index]) !== null && _a !== void 0 ? _a : String(item.index + 1), item.value, total, decimalLength);
|
|
75
|
+
}).join(", ");
|
|
76
|
+
const smallestStr = formatPieSlice((_a = labels[smallestItem.index]) !== null && _a !== void 0 ? _a : String(smallestItem.index + 1), smallestItem.value, total, decimalLength);
|
|
77
|
+
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];
|
|
78
|
+
}
|
|
79
|
+
function generatePieNarrative(data, translate) {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
const values = (_b = (_a = data.datasets[0]) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : [];
|
|
82
|
+
const labels = (_c = data.labels) !== null && _c !== void 0 ? _c : [];
|
|
83
|
+
const total = values.reduce((sum, v) => sum + (typeof v === "number" ? v : 0), 0);
|
|
84
|
+
if (total === 0 || values.length === 0) {
|
|
85
|
+
return [translate("No data available")];
|
|
86
|
+
}
|
|
87
|
+
const decimalLength = (0, calculateMinTruncationPrecision_1.calculateMinTruncationPrecision)(values.filter(v => typeof v === "number"));
|
|
88
|
+
const details = generatePieSliceDetails(values, labels, total, decimalLength);
|
|
89
|
+
if (values.length <= exports.PIE_LARGE_DATASET_THRESHOLD) {
|
|
90
|
+
return details;
|
|
91
|
+
}
|
|
92
|
+
return generatePieSummaryLines(values, labels, total, decimalLength, details, translate);
|
|
93
|
+
}
|
|
@@ -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";
|