@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
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TAlignment } from "../absolute/absolute";
|
|
3
2
|
export declare const MenuAlignmentContext: import("react").Context<{
|
|
4
|
-
alignment?: TAlignment
|
|
3
|
+
alignment?: TAlignment;
|
|
5
4
|
}>;
|
|
6
5
|
export declare const HeaderMenuProvider: ({ alignment, children }: {
|
|
7
6
|
alignment: TAlignment;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
export declare const HeaderCustomMenuWrapper = "HeaderCustomMenuWrapper";
|
|
3
3
|
export declare const getArrayOfChildren: <T>(children: T | T[] | undefined) => T[];
|
|
4
|
-
export declare const isNamedChildComponent: <T>(item: any, componentName: string) => item is React.ReactElement<T
|
|
5
|
-
export declare const getItemsForRender: <T extends
|
|
6
|
-
export declare const getItemsForMeasure: <T extends
|
|
7
|
-
export declare const filterItems: <T extends
|
|
4
|
+
export declare const isNamedChildComponent: <T>(item: any, componentName: string) => item is React.ReactElement<T>;
|
|
5
|
+
export declare const getItemsForRender: <T extends ReactElement>(items: T[], isMobile: boolean) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
6
|
+
export declare const getItemsForMeasure: <T extends ReactElement>(items: T[], isMobile: boolean) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
7
|
+
export declare const filterItems: <T extends ReactElement>(items: T[], isMobile: boolean) => {
|
|
8
8
|
resizableElements: React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
9
9
|
leftElements: T[];
|
|
10
10
|
rightElements: T[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface INonFittingElementProps<T extends {
|
|
3
2
|
props?: {
|
|
4
3
|
id?: string;
|
|
@@ -12,9 +11,9 @@ interface INonFittingElementProps<T extends {
|
|
|
12
11
|
}
|
|
13
12
|
export declare const useNonFittingElements: <T extends {
|
|
14
13
|
props?: {
|
|
15
|
-
id?: string
|
|
16
|
-
inContextMenu?: boolean
|
|
17
|
-
}
|
|
14
|
+
id?: string;
|
|
15
|
+
inContextMenu?: boolean;
|
|
16
|
+
};
|
|
18
17
|
}>({ maxWidth, data, hiddenElementsCountToRender, widthDelta, reverseOrderOfVisible }: INonFittingElementProps<T>) => {
|
|
19
18
|
visibleElements: T[];
|
|
20
19
|
nonFittingElements: T[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconAce = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconAce", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M13.6611 4.30664L13.8945 4.33789L13.915 4.3418L14 4.36133C14.0207 4.36593 14.0414 4.37148 14.0615 4.37793L14.1377 4.40234C14.1501 4.40633 14.1626 4.41036 14.1748 4.41504C14.4779 4.53142 14.735 4.7523 14.8916 5.04297L14.9531 5.17188L15.752 7.1543C17.618 11.8336 19.4882 16.8472 21.4102 21.3096C21.4207 21.334 21.4305 21.3609 21.4404 21.3887L21.6221 21.8945C21.7731 22.3166 21.7019 22.7824 21.4375 23.1406C21.2074 23.4523 20.8582 23.6467 20.4834 23.6904C20.4702 23.692 20.4566 23.6936 20.4434 23.6943L20.3623 23.6992C20.3487 23.7 20.3349 23.7002 20.3213 23.7002H16.9971C16.4866 23.7001 16.0077 23.4208 15.7695 22.9629L15.7256 22.8682C15.4522 22.2265 15.2162 21.5119 15.002 20.8652C14.8897 20.5266 14.7802 20.2053 14.6729 19.9014H10.0869C9.74066 20.7858 9.47222 21.7369 9.11426 22.7783C8.92074 23.3411 8.38582 23.7001 7.80762 23.7002H4.67871C4.23995 23.7001 3.81999 23.4933 3.55762 23.1328C3.29372 22.7701 3.22679 22.3 3.38477 21.877C5.37214 16.5555 7.10753 12.4177 9.2998 7.36914C9.47546 6.96466 9.76874 6.57892 10.0479 6.26758C10.3434 5.93792 10.6984 5.60875 11.0713 5.32031C11.4387 5.03614 11.8645 4.75987 12.3076 4.56836C12.6361 4.42648 13.1238 4.26462 13.6611 4.30664ZM13.1406 6.45117C12.9064 6.55234 12.6311 6.72223 12.3516 6.93848C12.0746 7.15269 11.8129 7.39729 11.6035 7.63086C11.3857 7.87384 11.2585 8.06803 11.21 8.17969C9.15711 12.9072 7.5172 16.8149 5.69238 21.6445H7.30371C7.65518 20.5726 8.02548 19.3151 8.5459 18.2412L8.5957 18.1543C8.72453 17.9634 8.94124 17.8458 9.17578 17.8457H15.6289L15.7324 17.8535C15.9703 17.8891 16.1762 18.0458 16.2725 18.2715C16.5176 18.8469 16.7329 19.4874 16.9365 20.1016C17.1163 20.6438 17.2887 21.1651 17.4717 21.6445H19.2979C17.3053 16.9703 15.3168 11.6199 13.418 6.91016L13.2197 6.4209C13.1953 6.43014 13.1686 6.43911 13.1406 6.45117ZM12.4688 9.24707C12.7482 9.2402 13.0052 9.40029 13.1221 9.6543C14.1073 11.796 14.8137 13.8473 15.502 16.0986C15.5667 16.3108 15.5275 16.5414 15.3955 16.7197C15.2635 16.8981 15.054 17.0029 14.832 17.0029H10.1533C9.92392 17.0028 9.70884 16.8897 9.57812 16.7012C9.44765 16.5127 9.41777 16.2723 9.49805 16.0576C10.2824 13.9622 10.9869 11.8059 11.8359 9.68652L11.8818 9.59277C12.003 9.38584 12.2242 9.2532 12.4688 9.24707ZM12.54 13.7402C12.398 14.1394 12.2547 14.54 12.1094 14.9473H12.957C12.8218 14.5392 12.6825 14.138 12.54 13.7402Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1C8.30125 1 8.54545 1.24421 8.54545 1.54545C8.54545 2.33114 8.71991 2.77239 8.97376 3.02624C9.22761 3.28009 9.66886 3.45455 10.4545 3.45455C10.7558 3.45455 11 3.69875 11 4C11 4.30125 10.7558 4.54545 10.4545 4.54545C9.66886 4.54545 9.22761 4.71991 8.97376 4.97376C8.71991 5.22761 8.54545 5.66886 8.54545 6.45455C8.54545 6.75579 8.30125 7 8 7C7.69875 7 7.45455 6.75579 7.45455 6.45455C7.45455 5.66886 7.28009 5.22761 7.02624 4.97376C6.77239 4.71991 6.33114 4.54545 5.54545 4.54545C5.24421 4.54545 5 4.30125 5 4C5 3.69875 5.24421 3.45455 5.54545 3.45455C6.33114 3.45455 6.77239 3.28009 7.02624 3.02624C7.28009 2.77239 7.45455 2.33114 7.45455 1.54545C7.45455 1.24421 7.69875 1 8 1ZM8 3C7.8591 3.1881 7.70462 3.36688 7.53575 3.53575C7.36688 3.70462 7.1881 3.8591 7 4C7.1881 4.14091 7.36688 4.29538 7.53575 4.46425C7.70462 4.63313 7.8591 4.8119 8 5C8.14091 4.8119 8.29538 4.63313 8.46425 4.46425C8.63313 4.29538 8.8119 4.14091 9 4C8.8119 3.8591 8.63313 3.70462 8.46425 3.53575C8.29538 3.36688 8.14091 3.1881 8 3Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 6C5.75104 6 5.95455 6.20351 5.95455 6.45455C5.95455 7.10929 6.09993 7.47699 6.31147 7.68853C6.52301 7.90007 6.89071 8.04545 7.54545 8.04545C7.79649 8.04545 8 8.24896 8 8.5C8 8.75104 7.79649 8.95455 7.54545 8.95455C6.89071 8.95455 6.52301 9.09993 6.31147 9.31147C6.09993 9.52301 5.95455 9.89071 5.95455 10.5455C5.95455 10.7965 5.75104 11 5.5 11C5.24896 11 5.04545 10.7965 5.04545 10.5455C5.04545 9.89071 4.90007 9.52301 4.68853 9.31147C4.47699 9.09993 4.10929 8.95455 3.45455 8.95455C3.20351 8.95455 3 8.75104 3 8.5C3 8.24896 3.20351 8.04545 3.45455 8.04545C4.10929 8.04545 4.47699 7.90007 4.68853 7.68853C4.90007 7.47699 5.04545 7.10929 5.04545 6.45455C5.04545 6.20351 5.24896 6 5.5 6ZM5.5 8C5.42955 8.09405 5.35231 8.18344 5.26787 8.26787C5.18344 8.35231 5.09405 8.42955 5 8.5C5.09405 8.57045 5.18344 8.64769 5.26787 8.73213C5.35231 8.81656 5.42955 8.90595 5.5 9C5.57045 8.90595 5.64769 8.81656 5.73213 8.73213C5.81656 8.64769 5.90595 8.57045 6 8.5C5.90595 8.42955 5.81656 8.35231 5.73213 8.26787C5.64769 8.18344 5.57045 8.09405 5.5 8Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconBreak = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconBreak", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M5 21C4.71667 21 4.47917 20.9042 4.2875 20.7125C4.09583 20.5208 4 20.2833 4 20C4 19.7167 4.09583 19.4792 4.2875 19.2875C4.47917 19.0958 4.71667 19 5 19H19C19.2833 19 19.5208 19.0958 19.7125 19.2875C19.9042 19.4792 20 19.7167 20 20C20 20.2833 19.9042 20.5208 19.7125 20.7125C19.5208 20.9042 19.2833 21 19 21H5ZM8 17C6.9 17 5.95833 16.6083 5.175 15.825C4.39167 15.0417 4 14.1 4 13V5C4 4.45 4.19583 3.97917 4.5875 3.5875C4.97917 3.19583 5.45 3 6 3H20C20.55 3 21.0208 3.19583 21.4125 3.5875C21.8042 3.97917 22 4.45 22 5V8C22 8.55 21.8042 9.02083 21.4125 9.4125C21.0208 9.80417 20.55 10 20 10H18V13C18 14.1 17.6083 15.0417 16.825 15.825C16.0417 16.6083 15.1 17 14 17H8ZM8 15H14C14.55 15 15.0208 14.8042 15.4125 14.4125C15.8042 14.0208 16 13.55 16 13V5H6V13C6 13.55 6.19583 14.0208 6.5875 14.4125C6.97917 14.8042 7.45 15 8 15ZM18 8H20V5H18V8ZM8 15H6H16H8Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconChevronStepper = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconChevronStepper", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.7071 23.7071C12.3166 24.0976 11.6834 24.0976 11.2929 23.7071L7.29289 19.7071C6.90237 19.3166 6.90237 18.6834 7.29289 18.2929C7.68342 17.9024 8.31658 17.9024 8.70711 18.2929L12 21.5858L15.2929 18.2929C15.6834 17.9024 16.3166 17.9024 16.7071 18.2929C17.0976 18.6834 17.0976 19.3166 16.7071 19.7071L12.7071 23.7071Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.2929 0.292893C11.6834 -0.0976311 12.3166 -0.0976311 12.7071 0.292893L16.7071 4.29289C17.0976 4.68342 17.0976 5.31658 16.7071 5.70711C16.3166 6.09763 15.6834 6.09763 15.2929 5.70711L12 2.41421L8.70711 5.70711C8.31658 6.09763 7.68342 6.09763 7.29289 5.70711C6.90237 5.31658 6.90237 4.68342 7.29289 4.29289L11.2929 0.292893Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconPotato = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconPotato", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M10.3899 11.289C9.89584 11.289 9.49536 10.8885 9.49536 10.3945C9.49536 9.90049 9.89584 9.5 10.3899 9.5C10.8839 9.5 11.2844 9.90048 11.2844 10.3945C11.2844 10.8885 10.8839 11.289 10.3899 11.289Z" }), _jsx("path", { d: "M13.6101 11.289C13.1161 11.289 12.7156 10.8885 12.7156 10.3945C12.7156 9.90049 13.1161 9.5 13.6101 9.5C14.1041 9.5 14.5046 9.90048 14.5046 10.3945C14.5046 10.8885 14.1041 11.289 13.6101 11.289Z" }), _jsx("path", { d: "M11.0684 12.6198C11.245 12.9704 11.6083 13.211 12.0277 13.211C12.4471 13.211 12.8103 12.9705 12.9869 12.6199C13.1111 12.3734 13.3247 12.1381 13.6006 12.138L14.0044 12.1378C14.2806 12.1377 14.5098 12.3638 14.4553 12.6346C14.2259 13.7742 13.223 14.6337 12.0179 14.6422C10.8091 14.6376 9.8022 13.7766 9.57234 12.6344C9.51786 12.3637 9.74693 12.1376 10.0231 12.1376H10.4543C10.7304 12.1376 10.9442 12.3731 11.0684 12.6198Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9873 22.4883L13.5 22.5C16.4407 22.5 18.8869 20.3841 19.4004 17.5918C19.5323 16.8744 19.42 16.1408 19.2617 15.4287L18.9766 14.1436C18.6996 12.8971 18.5427 11.6271 18.5078 10.3516L18.5 9.80469V6.5C18.5 3.73858 16.2614 1.5 13.5 1.5C10.7335 1.5 8.43995 2.53321 6.85645 4.43262L6.57227 4.79297C5.19547 6.63968 4.5 9.1268 4.5 12C4.5 15.0646 5.29128 17.6898 6.85645 19.5674C8.34107 21.3482 10.4498 22.3679 12.9873 22.4883ZM16.5 9.80469V6.5C16.5 4.84314 15.1569 3.5 13.5 3.5C11.2662 3.5 9.55971 4.31436 8.39355 5.71289C7.2091 7.13364 6.5 9.25864 6.5 12C6.5 14.7414 7.2091 16.8664 8.39355 18.2871C9.55971 19.6856 11.2662 20.5 13.5 20.5C15.4583 20.5 17.0914 19.0907 17.4336 17.2305C17.4892 16.9282 17.4567 16.5245 17.3096 15.8623L17.0234 14.5771C16.6752 13.0102 16.5 11.4098 16.5 9.80469Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconToggleLarge = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconToggleLarge", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 12C1 8.68629 3.68629 6 7 6H17C20.3137 6 23 8.68629 23 12C23 15.3137 20.3137 18 17 18H7C3.68629 18 1 15.3137 1 12ZM17 16C19.2091 16 21 14.2091 21 12C21 9.79086 19.2091 8 17 8C14.7909 8 13 9.79086 13 12C13 14.2091 14.7909 16 17 16ZM12.5278 8C11.5777 9.06151 11 10.4633 11 12C11 13.5367 11.5777 14.9385 12.5278 16H7C4.79086 16 3 14.2091 3 12C3 9.79086 4.79086 8 7 8H12.5278Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconToggleSmall = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconToggleSmall", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 12C1 8.13401 4.13401 5 8 5H16C19.866 5 23 8.13401 23 12C23 15.866 19.866 19 16 19H8C4.13401 19 1 15.866 1 12ZM8 7C5.23858 7 3 9.23858 3 12C3 14.7614 5.23858 17 8 17H16C18.7614 17 21 14.7614 21 12C21 9.23858 18.7614 7 16 7H8ZM12 12C12 9.79086 13.7909 8 16 8C18.2091 8 20 9.79086 20 12C20 14.2091 18.2091 16 16 16C13.7909 16 12 14.2091 12 12ZM16 10C14.8954 10 14 10.8954 14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12C18 10.8954 17.1046 10 16 10Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconTrendNeutral = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconTrendNeutral", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", d: "M7 12a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1", clipRule: "evenodd" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconTruck = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconTruck", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 5C8 4.44772 8.44772 4 9 4H21C21.5523 4 22 4.44772 22 5V16C22 16.5523 21.5523 17 21 17H19.9646C19.7219 18.6961 18.2632 20 16.5 20C14.7368 20 13.2781 18.6961 13.0354 17H10.9646C10.7219 18.6961 9.26324 20 7.5 20C5.73676 20 4.27806 18.6961 4.03544 17H3C2.44772 17 2 16.5523 2 16V10C2 9.80258 2.05844 9.60957 2.16795 9.4453L4.16795 6.4453C4.35342 6.1671 4.66565 6 5 6H8V5ZM8 8H5.53518L4 10.3028V15H4.33682C4.89855 13.8175 6.1038 13 7.5 13C7.66976 13 7.8367 13.0121 8 13.0354V8ZM9.94949 14C10.2424 14.2871 10.4851 14.6252 10.6632 15H13.3368C13.8985 13.8175 15.1038 13 16.5 13C17.8962 13 19.1015 13.8175 19.6632 15H20V6H10V14H9.94949ZM7.5 15C6.67157 15 6 15.6716 6 16.5C6 17.3284 6.67157 18 7.5 18C8.32843 18 9 17.3284 9 16.5C9 15.6716 8.32843 15 7.5 15ZM16.5 15C15.6716 15 15 15.6716 15 16.5C15 17.3284 15.6716 18 16.5 18C17.3284 18 18 17.3284 18 16.5C18 15.6716 17.3284 15 16.5 15Z" })] }));
|
|
8
|
+
};
|
package/esm/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ export { type IHeaderButton, HeaderButtonDisplayName, HeaderButton } from "./hea
|
|
|
174
174
|
export { type IHeaderMenu, HeaderMenuDisplayName, HeaderMenu } from "./header/headerMenu";
|
|
175
175
|
export { useCustomMenu } from "./header/hooks/useCustomMenu";
|
|
176
176
|
export { type IIcon } from "./icons/icon";
|
|
177
|
+
export { IconAce } from "./icons/iconAce";
|
|
177
178
|
export { IconActivity } from "./icons/iconActivity";
|
|
178
179
|
export { IconAddPeople } from "./icons/iconAddPeople";
|
|
179
180
|
export { IconAiImages } from "./icons/iconAiImages";
|
|
@@ -243,6 +244,7 @@ export { IconBookmarkFill } from "./icons/iconBookmarkFill";
|
|
|
243
244
|
export { IconBookmarkPlus } from "./icons/iconBookmarkPlus";
|
|
244
245
|
export { IconBookmarkSelectedHover } from "./icons/iconBookmarkSelectedHover";
|
|
245
246
|
export { IconBranches } from "./icons/iconBranches";
|
|
247
|
+
export { IconBreak } from "./icons/iconBreak";
|
|
246
248
|
export { IconBrokenLink } from "./icons/iconBrokenLink";
|
|
247
249
|
export { IconBrowser } from "./icons/iconBrowser";
|
|
248
250
|
export { IconBrush } from "./icons/iconBrush";
|
|
@@ -294,6 +296,7 @@ export { IconChevronLeft } from "./icons/iconChevronLeft";
|
|
|
294
296
|
export { IconChevronLeftSmall } from "./icons/iconChevronLeftSmall";
|
|
295
297
|
export { IconChevronRight } from "./icons/iconChevronRight";
|
|
296
298
|
export { IconChevronRightSmall } from "./icons/iconChevronRightSmall";
|
|
299
|
+
export { IconChevronStepper } from "./icons/iconChevronStepper";
|
|
297
300
|
export { IconChevronTop } from "./icons/iconChevronTop";
|
|
298
301
|
export { IconChevronTopSmall } from "./icons/iconChevronTopSmall";
|
|
299
302
|
export { IconChromecast } from "./icons/iconChromecast";
|
|
@@ -567,6 +570,7 @@ export { IconPlusCircle } from "./icons/iconPlusCircle";
|
|
|
567
570
|
export { IconPlusFile } from "./icons/iconPlusFile";
|
|
568
571
|
export { IconPlusLines } from "./icons/iconPlusLines";
|
|
569
572
|
export { IconPlusSquare } from "./icons/iconPlusSquare";
|
|
573
|
+
export { IconPotato } from "./icons/iconPotato";
|
|
570
574
|
export { IconPound } from "./icons/iconPound";
|
|
571
575
|
export { IconPrinter } from "./icons/iconPrinter";
|
|
572
576
|
export { IconProcessor } from "./icons/iconProcessor";
|
|
@@ -647,7 +651,11 @@ export { IconThermograph } from "./icons/iconThermograph";
|
|
|
647
651
|
export { IconThermometer } from "./icons/iconThermometer";
|
|
648
652
|
export { IconThumbsDown } from "./icons/iconThumbsDown";
|
|
649
653
|
export { IconThumbsUp } from "./icons/iconThumbsUp";
|
|
654
|
+
export { IconToggleLarge } from "./icons/iconToggleLarge";
|
|
655
|
+
export { IconToggleSmall } from "./icons/iconToggleSmall";
|
|
650
656
|
export { IconTrailer } from "./icons/iconTrailer";
|
|
657
|
+
export { IconTrendNeutral } from "./icons/iconTrendNeutral";
|
|
658
|
+
export { IconTruck } from "./icons/iconTruck";
|
|
651
659
|
export { IconUmbrella } from "./icons/iconUmbrella";
|
|
652
660
|
export { IconUnderline } from "./icons/iconUnderline";
|
|
653
661
|
export { IconUndo } from "./icons/iconUndo";
|
package/esm/index.js
CHANGED
|
@@ -163,6 +163,7 @@ export { HeaderBackDisplayName, HeaderBack } from "./header/headerBack";
|
|
|
163
163
|
export { HeaderButtonDisplayName, HeaderButton } from "./header/headerButton";
|
|
164
164
|
export { HeaderMenuDisplayName, HeaderMenu } from "./header/headerMenu";
|
|
165
165
|
export { useCustomMenu } from "./header/hooks/useCustomMenu";
|
|
166
|
+
export { IconAce } from "./icons/iconAce";
|
|
166
167
|
export { IconActivity } from "./icons/iconActivity";
|
|
167
168
|
export { IconAddPeople } from "./icons/iconAddPeople";
|
|
168
169
|
export { IconAiImages } from "./icons/iconAiImages";
|
|
@@ -232,6 +233,7 @@ export { IconBookmarkFill } from "./icons/iconBookmarkFill";
|
|
|
232
233
|
export { IconBookmarkPlus } from "./icons/iconBookmarkPlus";
|
|
233
234
|
export { IconBookmarkSelectedHover } from "./icons/iconBookmarkSelectedHover";
|
|
234
235
|
export { IconBranches } from "./icons/iconBranches";
|
|
236
|
+
export { IconBreak } from "./icons/iconBreak";
|
|
235
237
|
export { IconBrokenLink } from "./icons/iconBrokenLink";
|
|
236
238
|
export { IconBrowser } from "./icons/iconBrowser";
|
|
237
239
|
export { IconBrush } from "./icons/iconBrush";
|
|
@@ -283,6 +285,7 @@ export { IconChevronLeft } from "./icons/iconChevronLeft";
|
|
|
283
285
|
export { IconChevronLeftSmall } from "./icons/iconChevronLeftSmall";
|
|
284
286
|
export { IconChevronRight } from "./icons/iconChevronRight";
|
|
285
287
|
export { IconChevronRightSmall } from "./icons/iconChevronRightSmall";
|
|
288
|
+
export { IconChevronStepper } from "./icons/iconChevronStepper";
|
|
286
289
|
export { IconChevronTop } from "./icons/iconChevronTop";
|
|
287
290
|
export { IconChevronTopSmall } from "./icons/iconChevronTopSmall";
|
|
288
291
|
export { IconChromecast } from "./icons/iconChromecast";
|
|
@@ -556,6 +559,7 @@ export { IconPlusCircle } from "./icons/iconPlusCircle";
|
|
|
556
559
|
export { IconPlusFile } from "./icons/iconPlusFile";
|
|
557
560
|
export { IconPlusLines } from "./icons/iconPlusLines";
|
|
558
561
|
export { IconPlusSquare } from "./icons/iconPlusSquare";
|
|
562
|
+
export { IconPotato } from "./icons/iconPotato";
|
|
559
563
|
export { IconPound } from "./icons/iconPound";
|
|
560
564
|
export { IconPrinter } from "./icons/iconPrinter";
|
|
561
565
|
export { IconProcessor } from "./icons/iconProcessor";
|
|
@@ -635,7 +639,11 @@ export { IconThermograph } from "./icons/iconThermograph";
|
|
|
635
639
|
export { IconThermometer } from "./icons/iconThermometer";
|
|
636
640
|
export { IconThumbsDown } from "./icons/iconThumbsDown";
|
|
637
641
|
export { IconThumbsUp } from "./icons/iconThumbsUp";
|
|
642
|
+
export { IconToggleLarge } from "./icons/iconToggleLarge";
|
|
643
|
+
export { IconToggleSmall } from "./icons/iconToggleSmall";
|
|
638
644
|
export { IconTrailer } from "./icons/iconTrailer";
|
|
645
|
+
export { IconTrendNeutral } from "./icons/iconTrendNeutral";
|
|
646
|
+
export { IconTruck } from "./icons/iconTruck";
|
|
639
647
|
export { IconUmbrella } from "./icons/iconUmbrella";
|
|
640
648
|
export { IconUnderline } from "./icons/iconUnderline";
|
|
641
649
|
export { IconUndo } from "./icons/iconUndo";
|
package/esm/layout/layout.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ interface ILayoutComponents {
|
|
|
22
22
|
FullScreenButton: React.FC<IFullScreenButton>;
|
|
23
23
|
}
|
|
24
24
|
export declare const getContentPaddings: (isMobile: boolean, startWithToolbar: boolean) => number;
|
|
25
|
-
|
|
25
|
+
declare const LayoutInner: ({ id, className, pageScrolling, children }: ILayout) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export declare const Layout: typeof LayoutInner & ILayoutComponents;
|
|
26
27
|
export {};
|
|
@@ -2,6 +2,7 @@ import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
|
2
2
|
import type { ChartData, ChartOptions, Plugin, PluginOptionsByType } from "chart.js/auto";
|
|
3
3
|
import "../react-chartjs/dateAdapter";
|
|
4
4
|
import { ILegendOptions } from "./plugins/htmlLegend";
|
|
5
|
+
import "./lineChart.less";
|
|
5
6
|
interface ILineChartPluginOptions extends Partial<PluginOptionsByType<"line">> {
|
|
6
7
|
htmlLegend?: ILegendOptions;
|
|
7
8
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
1
|
+
import { injectString } from "../utils/localization/translationsDictionary";
|
|
2
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
11
9
|
};
|
|
12
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
11
|
import { useContext, useEffect, useMemo } from "react";
|
|
@@ -20,73 +18,135 @@ import { LEGEND_PLUGIN_ID } from "./plugins/htmlLegend";
|
|
|
20
18
|
import { useDrive } from "../utils/theme/useDrive";
|
|
21
19
|
import { useMobile } from "../commonHelpers/hooks/useMobile";
|
|
22
20
|
import { themeContext } from "../utils/theme/themeContext";
|
|
21
|
+
import { useLanguage } from "../utils/localization/useLanguage";
|
|
22
|
+
injectString("cs", "Line chart", "Spojnicov\xFD graf");
|
|
23
|
+
injectString("da-DK", "Line chart", "Linjediagram");
|
|
24
|
+
injectString("de", "Line chart", "Liniendiagramm");
|
|
25
|
+
injectString("en", "Line chart", "Line chart");
|
|
26
|
+
injectString("es", "Line chart", "Gr\xE1fico de l\xEDneas");
|
|
27
|
+
injectString("fi-FI", "Line chart", "Viivakaavio");
|
|
28
|
+
injectString("fr", "Line chart", "Graphique lin\xE9aire");
|
|
29
|
+
injectString("fr-FR", "Line chart", "Graphique lin\xE9aire");
|
|
30
|
+
injectString("hu-HU", "Line chart", "Vonaldiagram");
|
|
31
|
+
injectString("id", "Line chart", "Bagan garis");
|
|
32
|
+
injectString("it", "Line chart", "Grafico a linee");
|
|
33
|
+
injectString("ja", "Line chart", "\u6298\u308C\u7DDA\u30B0\u30E9\u30D5");
|
|
34
|
+
injectString("ko-KR", "Line chart", "\uC120\uD615 \uCC28\uD2B8");
|
|
35
|
+
injectString("ms", "Line chart", "Carta garisan");
|
|
36
|
+
injectString("nb-NO", "Line chart", "Linjediagram");
|
|
37
|
+
injectString("nl", "Line chart", "Lijndiagram");
|
|
38
|
+
injectString("pl", "Line chart", "Wykres liniowy");
|
|
39
|
+
injectString("pt-BR", "Line chart", "Gr\xE1fico de linhas");
|
|
40
|
+
injectString("pt-PT", "Line chart", "Gr\xE1fico de linhas");
|
|
41
|
+
injectString("sk-SK", "Line chart", "\u010Ciarov\xFD graf");
|
|
42
|
+
injectString("sv", "Line chart", "Linjediagram");
|
|
43
|
+
injectString("th", "Line chart", "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E2A\u0E49\u0E19");
|
|
44
|
+
injectString("tr", "Line chart", "\xC7izgi grafik");
|
|
45
|
+
injectString("zh-Hans", "Line chart", "\u6298\u7EBF\u56FE");
|
|
46
|
+
injectString("zh-TW", "Line chart", "\u6298\u7DDA\u5716");
|
|
47
|
+
injectString("ro-RO", "Line chart", "Grafic liniar");
|
|
48
|
+
injectString("ar", "Line chart", "\u0645\u062E\u0637\u0637 \u062E\u0637\u064A");
|
|
49
|
+
injectString("lt-LT", "Line chart", "Linijin\u0117 diagrama");
|
|
50
|
+
injectString("lv-LV", "Line chart", "L\u012Bniju diagramma");
|
|
51
|
+
injectString("ka-GE", "Line chart", "\u10EE\u10D0\u10D6\u10DD\u10D5\u10D0\u10DC\u10D8 \u10E1\u10E5\u10D4\u10DB\u10D0");
|
|
52
|
+
injectString("el-GR", "Line chart", "\u0393\u03C1\u03AC\u03C6\u03B7\u03BC\u03B1 \u03B3\u03C1\u03B1\u03BC\u03BC\u03CE\u03BD");
|
|
53
|
+
injectString("et-EE", "Line chart", "Joondiagramm");
|
|
54
|
+
injectString("bg-BG", "Line chart", "\u041B\u0438\u043D\u0435\u0439\u043D\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430");
|
|
23
55
|
ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, Filler, TimeScale);
|
|
24
56
|
const defaultGridStyle = {
|
|
25
|
-
|
|
26
|
-
|
|
57
|
+
drawTicks: false,
|
|
58
|
+
color: "#C0CCD8"
|
|
27
59
|
};
|
|
28
60
|
const defaultGridBorderStyle = {
|
|
29
|
-
|
|
30
|
-
|
|
61
|
+
display: false,
|
|
62
|
+
dash: [2, 2]
|
|
31
63
|
};
|
|
32
64
|
const defTicksStyle = {
|
|
33
|
-
|
|
65
|
+
padding: 10
|
|
34
66
|
};
|
|
35
|
-
const getDefaultOptions =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
67
|
+
const getDefaultOptions = fontSize => {
|
|
68
|
+
const defTitleStyle = {
|
|
69
|
+
display: true,
|
|
70
|
+
font: {
|
|
71
|
+
size: fontSize,
|
|
72
|
+
weight: "400"
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
responsive: true,
|
|
77
|
+
maintainAspectRatio: false,
|
|
78
|
+
scales: {
|
|
79
|
+
x: {
|
|
80
|
+
grid: defaultGridStyle,
|
|
81
|
+
border: defaultGridBorderStyle,
|
|
82
|
+
ticks: defTicksStyle,
|
|
83
|
+
title: defTitleStyle
|
|
84
|
+
},
|
|
85
|
+
y: {
|
|
86
|
+
grid: defaultGridStyle,
|
|
87
|
+
border: defaultGridBorderStyle,
|
|
88
|
+
ticks: defTicksStyle,
|
|
89
|
+
title: defTitleStyle
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
plugins: {
|
|
93
|
+
legend: {
|
|
94
|
+
display: false
|
|
95
|
+
},
|
|
96
|
+
tooltip: {
|
|
97
|
+
enabled: true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
69
101
|
};
|
|
70
102
|
/**
|
|
71
103
|
* @deprecated - will be removed in the next releases.
|
|
72
104
|
*/
|
|
73
|
-
export const LineChart =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
export const LineChart = _a => {
|
|
106
|
+
var {
|
|
107
|
+
data,
|
|
108
|
+
options = {},
|
|
109
|
+
plugins,
|
|
110
|
+
className
|
|
111
|
+
} = _a,
|
|
112
|
+
rest = __rest(_a, ["data", "options", "plugins", "className"]);
|
|
113
|
+
const {
|
|
114
|
+
translate
|
|
115
|
+
} = useLanguage();
|
|
116
|
+
const isDrive = useDrive();
|
|
117
|
+
const isMobile = useMobile();
|
|
118
|
+
const memoizedFontSize = useMemo(() => isDrive ? isMobile ? 14 : 16 : 12, [isDrive, isMobile]);
|
|
119
|
+
const {
|
|
120
|
+
dark
|
|
121
|
+
} = useContext(themeContext);
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
ChartJS.defaults.font = {
|
|
124
|
+
family: "Roboto",
|
|
125
|
+
size: memoizedFontSize
|
|
126
|
+
};
|
|
127
|
+
ChartJS.defaults.color = dark ? "#FFFFFF" : "#1F2833";
|
|
128
|
+
}, [memoizedFontSize, dark]);
|
|
129
|
+
const adaptedData = Object.assign({}, data);
|
|
130
|
+
const memoizedDefaultOptions = useMemo(() => getDefaultOptions(memoizedFontSize), [memoizedFontSize]);
|
|
131
|
+
const adaptedOptions = deepMerge(memoizedDefaultOptions, options);
|
|
132
|
+
adaptedData.datasets = adaptedData.datasets.map((ds, i) => getDefaultDatasetStyle(ds, i));
|
|
133
|
+
const memoizedPlagins = useMemo(() => plugins === null || plugins === void 0 ? void 0 : plugins.map(el => el.id === LEGEND_PLUGIN_ID ? Object.assign(Object.assign({}, el), {
|
|
134
|
+
isDrive: isDrive
|
|
135
|
+
}) : el), [isDrive, plugins]);
|
|
136
|
+
return _jsx("div", {
|
|
137
|
+
className: "zen-line-chart",
|
|
138
|
+
tabIndex: 0,
|
|
139
|
+
style: {
|
|
140
|
+
width: "100%",
|
|
141
|
+
height: "100%"
|
|
142
|
+
},
|
|
143
|
+
role: "figure",
|
|
144
|
+
"aria-label": translate("Line chart"),
|
|
145
|
+
children: _jsx(Line, Object.assign({
|
|
146
|
+
options: adaptedOptions,
|
|
147
|
+
data: adaptedData,
|
|
148
|
+
plugins: memoizedPlagins,
|
|
149
|
+
className: className
|
|
150
|
+
}, rest))
|
|
151
|
+
});
|
|
152
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
2
2
|
import type { ChartData, ChartOptions } from "chart.js/auto";
|
|
3
|
+
import "./lineChartMini.less";
|
|
3
4
|
export interface ILineChartMini extends IZenComponentProps {
|
|
4
5
|
data: ChartData<"line">;
|
|
5
6
|
options?: ChartOptions<"line">;
|