@geotab/zenith 3.11.1 → 3.12.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 +70 -0
- package/dist/absolute/absolute.d.ts +21 -1
- package/dist/absolute/absolute.js +46 -6
- package/dist/advancedGroupsFilter/advancedGroupsFilter.js +3 -3
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +7 -7
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -1
- package/dist/alert/banner.d.ts +3 -1
- package/dist/alertRaw/alertRaw.js +1 -1
- package/dist/banner/banner.d.ts +5 -2
- package/dist/banner/banner.js +13 -2
- package/dist/banner/bannerErrorSummary.d.ts +7 -0
- package/dist/banner/bannerErrorSummary.js +8 -0
- package/dist/banner/bannerMultipLine.js +1 -1
- package/dist/banner/bannerSingleLine.js +1 -1
- package/dist/banner/utils/buildSummaryErrorList.d.ts +1 -0
- package/dist/banner/utils/buildSummaryErrorList.js +16 -0
- package/dist/banner/utils/hasSummaryErrorChild.d.ts +1 -0
- package/dist/banner/utils/hasSummaryErrorChild.js +7 -0
- package/dist/banner/utils/isSummaryErrorBanner.d.ts +2 -0
- package/dist/banner/utils/isSummaryErrorBanner.js +6 -0
- package/dist/banner/utils/isSummaryErrorElement.d.ts +3 -0
- package/dist/banner/utils/isSummaryErrorElement.js +7 -0
- package/dist/banner/utils/useSummaryBannerProp.d.ts +6 -0
- package/dist/banner/utils/useSummaryBannerProp.js +34 -0
- package/dist/betaPill/betaPill.js +4 -4
- package/dist/bookmark/bookmark.js +2 -2
- package/dist/bulkEditControl/bulkEditControl.js +5 -5
- package/dist/calendar/calendar.js +37 -34
- package/dist/calendar/calendarUtils.js +6 -4
- package/dist/card/card.js +1 -1
- package/dist/card/components/title.js +4 -1
- package/dist/card/components/titleLink.js +5 -2
- package/dist/chart/accessibleChart/accessibleChartNarrative.js +13 -13
- package/dist/chart/accessibleChart/accessibleChartTable.js +5 -5
- package/dist/chart/barChart/getDefaultOptions.d.ts +2 -1
- package/dist/chart/barChart/getDefaultOptions.js +5 -2
- package/dist/chart/barChart.js +6 -4
- package/dist/chart/chart.js +1 -1
- package/dist/chart/chartAxis/chartAxis.js +2 -2
- package/dist/chart/lineChart/getDefaultOptions.d.ts +4 -1
- package/dist/chart/lineChart/getDefaultOptions.js +7 -2
- package/dist/chart/lineChart.js +7 -3
- package/dist/chart/plugins/linePlugin/linePlugin.js +5 -4
- package/dist/chart/utils/getXAxisMeta.js +8 -5
- package/dist/chart/utils/isDateRange.js +1 -1
- package/dist/chart/utils/useHidden.d.ts +1 -0
- package/dist/chart/utils/useHidden.js +1 -1
- package/dist/chart/utils/useLastVisibleXAxisMeta.d.ts +2 -0
- package/dist/chart/utils/useLastVisibleXAxisMeta.js +15 -0
- package/dist/checkboxListWithAction/checkboxListWithAction.js +8 -5
- package/dist/chip/chip.js +1 -1
- package/dist/columnsSelector/columnsSelector.js +2 -2
- package/dist/columnsSelector/columnsTab/columnsTab.js +1 -1
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.js +1 -1
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +4 -1
- package/dist/commonStyles/columnsList.less +59 -0
- package/dist/commonStyles/link/link.less +1 -1
- package/dist/commonStyles/pillStyles/pillContent.less +14 -15
- package/dist/commonStyles/pillStyles/pillStyles.less +4 -5
- package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
- package/dist/commonStyles/pillStyles/pillTypes.less +1 -1
- package/dist/commonStyles/popupMixin.less +1 -1
- package/dist/commonStyles/selectButton.less +1 -1
- package/dist/commonStyles/typography/typography.less +545 -19
- package/dist/controlledPopup/controlledPopup.d.ts +1 -0
- package/dist/controlledPopup/controlledPopup.js +3 -1
- package/dist/dataFeed/feedExpandControl/feedExpandControl.js +5 -0
- package/dist/dataGrid/cell/cell.d.ts +2 -1
- package/dist/dataGrid/cell/cell.js +2 -2
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +1 -1
- package/dist/dataGrid/dataGrid.js +8 -5
- package/dist/dataGrid/emptySearchList/emptySearchList.js +1 -1
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +1 -1
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.js +2 -2
- package/dist/dataGrid/listColumn.d.ts +2 -0
- package/dist/dataGrid/row/row.d.ts +2 -1
- package/dist/dataGrid/row/row.js +13 -9
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -2
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +45 -116
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +4 -0
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +4 -0
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +5 -5
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +4 -3
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +2 -2
- package/dist/dateInputInner/dateInputInner.js +7 -7
- package/dist/dateInputInner/dateInputInnerControlBlock.js +2 -2
- package/dist/dateInputRaw/dateInputRaw.js +4 -4
- package/dist/dateInputRaw/utils/getLabel.js +2 -2
- package/dist/dateRangeInner/dateRangeInner.js +6 -3
- package/dist/dateRangeRaw/dateRangeRaw.d.ts +1 -0
- package/dist/dateRangeRaw/dateRangeRaw.js +21 -15
- package/dist/dateRangeRaw/types.d.ts +1 -0
- package/dist/dateRangeRaw/utils/dateRangeUtils.js +17 -17
- package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
- package/dist/dateSelectionWrapper/dateSelectionWrapper.js +4 -4
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dropdown/dropdownTrigger.d.ts +1 -1
- package/dist/dropdownRaw/dropdownList.js +9 -9
- package/dist/dropdownRaw/dropdownPopup.js +3 -3
- package/dist/dropdownRaw/dropdownRaw.js +34 -17
- package/dist/dropdownRaw/dropdownSearchableTrigger.d.ts +2 -1
- package/dist/dropdownRaw/dropdownSearchableTrigger.js +8 -6
- package/dist/dropdownRaw/dropdownTrigger.d.ts +2 -1
- package/dist/dropdownRaw/dropdownTrigger.js +2 -2
- package/dist/dropdownRaw/types.d.ts +2 -0
- package/dist/favoriteButton/favoriteButton.js +1 -1
- package/dist/fileUpload/components/dropZoneContent.js +104 -104
- package/dist/fileUpload/components/templateDownloadSection.js +1 -1
- package/dist/fileUpload/components/uploadedFilesSection.js +2 -2
- package/dist/fileUpload/fileUpload.js +106 -106
- package/dist/filterButton/filterButton.d.ts +1 -0
- package/dist/filters/components/filtersContainer.js +2 -2
- package/dist/filters/components/filtersDropdown.d.ts +1 -1
- package/dist/filters/components/filtersEmptyState.js +2 -2
- package/dist/filters/components/filtersSaveModal.js +5 -5
- package/dist/filters/components/filtersSavedChipComponent.js +11 -11
- package/dist/filters/components/filtersSearchItemData.js +1 -1
- package/dist/filters/components/filtersSearchList.js +14 -11
- package/dist/filters/components/filtersSelect.js +1 -1
- package/dist/filters/components/filtersSelectListItem.js +2 -2
- package/dist/filters/components/filtersSidePanel.js +8 -8
- package/dist/filters/filters.js +7 -7
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +1 -0
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +18 -18
- package/dist/filtersBar/components/resetComponentButton.js +1 -1
- package/dist/filtersBar/filtersBarActions/filtersBarActions.js +3 -3
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +5 -5
- package/dist/filtersBar/filtersContainer/filtersContainer.js +62 -61
- package/dist/formField/hooks/useError.js +3 -3
- package/dist/formField/hooks/useFormFieldProps.d.ts +1 -1
- package/dist/formField/hooks/useFormFieldProps.js +4 -2
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +2 -2
- package/dist/formGroup/hooks/useCustomRow.js +46 -32
- package/dist/formGroup/hooks/useRowElements.js +9 -6
- package/dist/formGroup/hooks/useToggle.js +1 -1
- package/dist/formGroup/types.d.ts +4 -0
- package/dist/formGroup/utils/normalizeFieldId.d.ts +1 -0
- package/dist/formGroup/utils/normalizeFieldId.js +5 -0
- package/dist/formGroup/utils/resolveId.d.ts +7 -0
- package/dist/formGroup/utils/resolveId.js +6 -0
- package/dist/formLayout/components/getLayoutColumns.js +4 -2
- package/dist/formLayout/hooks/useError.js +3 -3
- package/dist/formLayout/hooks/useErrorSummary.d.ts +6 -0
- package/dist/formLayout/hooks/useErrorSummary.js +34 -0
- package/dist/formLayout/hooks/useFormButtons.js +3 -3
- package/dist/formLayout/utils/applyGridPropsStatic.js +1 -1
- package/dist/formLayout/utils/flattenErrors.d.ts +5 -0
- package/dist/formLayout/utils/flattenErrors.js +14 -0
- package/dist/formLayout/utils/getChildrenWithCustomColumns.js +3 -0
- package/dist/formLayout/utils/getFieldLabel.d.ts +1 -0
- package/dist/formLayout/utils/getFieldLabel.js +26 -0
- package/dist/formSection/hooks/useError.js +3 -3
- package/dist/formStepper/components/formStep.js +1 -1
- package/dist/formStepper/formStepper.js +2 -2
- package/dist/formStepperButtons/formStepperButtons.js +8 -5
- package/dist/gridLayout/hooks/useGridClasses.js +3 -9
- package/dist/groupButtonRaw/groupButtonRaw.js +2 -2
- package/dist/groupButtonRaw/types.d.ts +1 -0
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +8 -5
- package/dist/groupsFilterRaw/groupsFilterBox.js +3 -3
- package/dist/groupsFilterRaw/groupsFilterCommon.js +2 -2
- package/dist/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +5 -5
- package/dist/groupsFilterRaw/groupsFilterHelper.js +2 -2
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +12 -9
- package/dist/groupsFilterRaw/groupsFilterMenu.js +3 -3
- package/dist/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.js +15 -10
- package/dist/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/dist/groupsFilterRaw/groupsFilterTrigger.js +8 -5
- package/dist/groupsFilterRaw/groupsHelper.js +22 -22
- package/dist/groupsFilterRaw/types.d.ts +2 -0
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +1 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.js +3 -3
- package/dist/header/header.js +1 -1
- package/dist/header/headerBack.js +5 -2
- package/dist/header/headerHelpers.d.ts +1 -0
- package/dist/header/headerHelpers.js +10 -1
- package/dist/header/hooks/useNonFittingElements.js +1 -1
- package/dist/icons/iconAlignLeft.js +1 -3
- package/dist/icons/iconAlignmentLeft.js +1 -3
- package/dist/icons/iconAlignmentRight.js +1 -3
- package/dist/icons/iconArrowBottomLeft.js +1 -3
- package/dist/icons/iconArrowBottomRight.js +1 -3
- package/dist/icons/iconArrowLeftPath.js +1 -3
- package/dist/icons/iconArrowRight.js +1 -3
- package/dist/icons/iconArrowRightCircle.js +1 -3
- package/dist/icons/iconArrowRightPath.js +1 -3
- package/dist/icons/iconArrowTopLeft.js +1 -3
- package/dist/icons/iconArrowTopRight.js +1 -3
- package/dist/icons/iconChevronDoubleRight.js +1 -3
- package/dist/icons/iconChevronRight.js +1 -3
- package/dist/icons/iconChevronRightSmall.js +1 -3
- package/dist/icons/iconCornerDownLeft.js +1 -3
- package/dist/icons/iconCornerDownRight.js +1 -3
- package/dist/icons/iconCornerLeftDown.js +1 -3
- package/dist/icons/iconCornerLeftUp.js +1 -3
- package/dist/icons/iconCornerRightDown.js +1 -3
- package/dist/icons/iconCornerRightUp.js +1 -3
- package/dist/icons/iconCornerUpLeft.js +1 -3
- package/dist/icons/iconCornerUpRight.js +1 -3
- package/dist/index.css +3628 -3321
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -14
- package/dist/lineChartMini/lineChartMini.js +15 -3
- package/dist/list/itemData/itemDataInternal.js +6 -3
- package/dist/list/listItem/listItem.js +6 -3
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +4 -1
- package/dist/menu/components/menuButton.d.ts +2 -1
- package/dist/menu/components/menuButton.js +7 -4
- package/dist/menu/components/menuErrorItem.js +2 -2
- package/dist/menu/components/menuItem.js +4 -4
- package/dist/menu/utils/useMenuItemCore.js +4 -3
- package/dist/miniTabs/miniTabs.d.ts +1 -0
- package/dist/miniTabs/miniTabs.js +1 -1
- package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -1
- package/dist/miniTabs/miniTabsHeaderItem.js +1 -1
- package/dist/miniTabs/miniTabsItem.d.ts +1 -0
- package/dist/mobileSheet/mobileSheet.js +2 -2
- package/dist/modal/modal.js +1 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.js +2 -2
- package/dist/nav/navFooter/navFooter.js +1 -1
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/dist/nav/navHeader/navHeader.js +2 -2
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +2 -2
- package/dist/nav/navItem/navItem.js +4 -1
- package/dist/nav/navMobileBar/navMobileBar.js +1 -1
- package/dist/notification/notification.js +1 -1
- package/dist/pagination/paginationArrow.js +12 -5
- package/dist/pagination/paginationText/paginationText.js +1 -1
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +1 -1
- package/dist/pillBox/components/pillBoxItem.js +1 -1
- package/dist/pillBox/pillBox.js +3 -3
- package/dist/pillExpandable/pillContent.js +12 -3
- package/dist/pillExpandable/pillExpandable.d.ts +4 -1
- package/dist/pillExpandable/pillExpandable.js +5 -3
- package/dist/pillExpandable/pillExpandableSimple.d.ts +1 -1
- package/dist/pillExpandable/pillExpandableSimple.js +4 -4
- package/dist/radioGroupRaw/radioGroupRaw.js +2 -1
- package/dist/rangeRaw/rangeRaw.js +7 -8
- package/dist/rangeRaw/utils/rangeHelper.js +7 -7
- package/dist/searchInputRaw/searchInputRaw.js +6 -3
- package/dist/selectList/selectList.js +2 -2
- package/dist/selectList/selectListItem.js +4 -1
- package/dist/skeleton/skeleton.js +1 -1
- package/dist/sortControl/sortControl.js +6 -7
- package/dist/stepperRaw/stepperRaw.js +5 -0
- package/dist/summary/summary.js +2 -2
- package/dist/summaryTile/summaryTile.d.ts +4 -2
- package/dist/summaryTile/summaryTile.js +59 -26
- package/dist/summaryTileBar/summaryTileBar.d.ts +4 -2
- package/dist/summaryTileBar/summaryTileBar.js +2 -2
- package/dist/table/actions/actionsMenu.js +2 -2
- package/dist/table/children/useTableChildren.d.ts +1 -1
- package/dist/table/children/useTableChildren.js +3 -3
- package/dist/table/detailPanel/detailPanel.js +1 -1
- package/dist/table/detailPanel/detailPanelHeader.js +2 -2
- package/dist/table/flexible/columnSettings.js +2 -2
- package/dist/table/flexible/columnsList.js +47 -117
- package/dist/table/flexible/columnsPopup.d.ts +1 -1
- package/dist/table/flexible/columnsPopup.js +1 -1
- package/dist/table/nested/useNestedRows.js +2 -2
- package/dist/table/selectable/selectableHeader.js +5 -4
- package/dist/table/selectable/useSelectableRows.d.ts +8 -0
- package/dist/table/selectable/useSelectableRows.js +16 -8
- package/dist/table/sortable/mobileSortControl.js +1 -1
- package/dist/table/sortable/sortableHeader.js +2 -2
- package/dist/table/table.js +3 -9
- package/dist/tabs/tabItem/tabItem.d.ts +2 -1
- package/dist/tabs/tabItem/tabItem.js +7 -2
- package/dist/tabs/tabs.d.ts +2 -1
- package/dist/tabs/tabs.js +71 -61
- package/dist/tabs/tabsTestHelper.js +2 -2
- package/dist/timePickerRaw/timePickerRaw.js +11 -9
- package/dist/timePickerRaw/types.d.ts +1 -0
- package/dist/toastRaw/toastRaw.js +1 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +7 -4
- package/dist/tooltip/tooltip.js +13 -5
- package/dist/utils/formatDate.js +37 -37
- package/dist/utils/localization/flipAlignment.js +12 -1
- package/dist/utils/localization/languageContext.d.ts +1 -1
- package/dist/utils/localization/translations/cs.json +7 -5
- package/dist/utils/localization/translations/da-DK.json +7 -5
- package/dist/utils/localization/translations/de.json +7 -5
- package/dist/utils/localization/translations/en.json +12 -1
- package/dist/utils/localization/translations/es.json +7 -5
- package/dist/utils/localization/translations/fi-FI.json +7 -5
- package/dist/utils/localization/translations/fr-FR.json +7 -5
- package/dist/utils/localization/translations/fr.json +7 -5
- package/dist/utils/localization/translations/hu-HU.json +7 -5
- package/dist/utils/localization/translations/id.json +7 -5
- package/dist/utils/localization/translations/it.json +7 -5
- package/dist/utils/localization/translations/ja.json +7 -5
- package/dist/utils/localization/translations/ko-KR.json +7 -5
- package/dist/utils/localization/translations/ms.json +7 -5
- package/dist/utils/localization/translations/nb-NO.json +7 -5
- package/dist/utils/localization/translations/nl.json +7 -5
- package/dist/utils/localization/translations/pl.json +7 -5
- package/dist/utils/localization/translations/pt-BR.json +7 -5
- package/dist/utils/localization/translations/pt-PT.json +7 -5
- package/dist/utils/localization/translations/ro-RO.json +7 -5
- package/dist/utils/localization/translations/sk-SK.json +7 -5
- package/dist/utils/localization/translations/sv.json +7 -5
- package/dist/utils/localization/translations/th.json +7 -5
- package/dist/utils/localization/translations/tr.json +7 -5
- package/dist/utils/localization/translations/zh-Hans.json +7 -5
- package/dist/utils/localization/translations/zh-TW.json +7 -5
- package/dist/utils/localization/useDirectionalIcon.d.ts +3 -0
- package/dist/utils/localization/useDirectionalIcon.js +9 -0
- package/dist/utils/positioningUtils/alignments.d.ts +2 -2
- package/dist/utils/positioningUtils/alignments.js +2 -2
- package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/dist/utils/positioningUtils/calculatePosition.js +11 -11
- package/dist/utils/positioningUtils/normalizeLogicalAlignment.d.ts +4 -0
- package/dist/utils/positioningUtils/normalizeLogicalAlignment.js +36 -0
- package/esm/absolute/absolute.d.ts +21 -1
- package/esm/absolute/absolute.js +46 -6
- package/esm/advancedGroupsFilter/advancedGroupsFilter.js +3 -3
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.js +7 -7
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -1
- package/esm/alert/banner.d.ts +3 -1
- package/esm/alertRaw/alertRaw.js +1 -1
- package/esm/banner/banner.d.ts +5 -2
- package/esm/banner/banner.js +13 -2
- package/esm/banner/bannerErrorSummary.d.ts +7 -0
- package/esm/banner/bannerErrorSummary.js +4 -0
- package/esm/banner/bannerMultipLine.js +1 -1
- package/esm/banner/bannerSingleLine.js +1 -1
- package/esm/banner/utils/buildSummaryErrorList.d.ts +1 -0
- package/esm/banner/utils/buildSummaryErrorList.js +12 -0
- package/esm/banner/utils/hasSummaryErrorChild.d.ts +1 -0
- package/esm/banner/utils/hasSummaryErrorChild.js +3 -0
- package/esm/banner/utils/isSummaryErrorBanner.d.ts +2 -0
- package/esm/banner/utils/isSummaryErrorBanner.js +2 -0
- package/esm/banner/utils/isSummaryErrorElement.d.ts +3 -0
- package/esm/banner/utils/isSummaryErrorElement.js +3 -0
- package/esm/banner/utils/useSummaryBannerProp.d.ts +6 -0
- package/esm/banner/utils/useSummaryBannerProp.js +25 -0
- package/esm/betaPill/betaPill.js +4 -4
- package/esm/bookmark/bookmark.js +2 -2
- package/esm/bulkEditControl/bulkEditControl.js +5 -5
- package/esm/calendar/calendar.js +37 -34
- package/esm/calendar/calendarUtils.js +6 -4
- package/esm/card/card.js +1 -1
- package/esm/card/components/title.js +4 -1
- package/esm/card/components/titleLink.js +5 -2
- package/esm/chart/accessibleChart/accessibleChartNarrative.js +13 -13
- package/esm/chart/accessibleChart/accessibleChartTable.js +5 -5
- package/esm/chart/barChart/getDefaultOptions.d.ts +2 -1
- package/esm/chart/barChart/getDefaultOptions.js +5 -2
- package/esm/chart/barChart.js +6 -4
- package/esm/chart/chart.js +1 -1
- package/esm/chart/chartAxis/chartAxis.js +2 -2
- package/esm/chart/lineChart/getDefaultOptions.d.ts +4 -1
- package/esm/chart/lineChart/getDefaultOptions.js +7 -2
- package/esm/chart/lineChart.js +7 -3
- package/esm/chart/plugins/linePlugin/linePlugin.js +5 -4
- package/esm/chart/utils/getXAxisMeta.js +8 -5
- package/esm/chart/utils/isDateRange.js +1 -1
- package/esm/chart/utils/useHidden.d.ts +1 -0
- package/esm/chart/utils/useHidden.js +1 -1
- package/esm/chart/utils/useLastVisibleXAxisMeta.d.ts +2 -0
- package/esm/chart/utils/useLastVisibleXAxisMeta.js +11 -0
- package/esm/checkboxListWithAction/checkboxListWithAction.js +8 -5
- package/esm/chip/chip.js +1 -1
- package/esm/columnsSelector/columnsSelector.js +2 -2
- package/esm/columnsSelector/columnsTab/columnsTab.js +1 -1
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.js +1 -1
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +4 -1
- package/esm/controlledPopup/controlledPopup.d.ts +1 -0
- package/esm/controlledPopup/controlledPopup.js +3 -1
- package/esm/dataFeed/feedExpandControl/feedExpandControl.js +3 -0
- package/esm/dataGrid/cell/cell.d.ts +2 -1
- package/esm/dataGrid/cell/cell.js +2 -2
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +1 -1
- package/esm/dataGrid/dataGrid.js +8 -5
- package/esm/dataGrid/emptySearchList/emptySearchList.js +1 -1
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +1 -1
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.js +2 -2
- package/esm/dataGrid/listColumn.d.ts +2 -0
- package/esm/dataGrid/row/row.d.ts +2 -1
- package/esm/dataGrid/row/row.js +13 -9
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -2
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +44 -110
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +2 -0
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +4 -0
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +5 -5
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +4 -3
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.js +2 -2
- package/esm/dateInputInner/dateInputInner.js +7 -7
- package/esm/dateInputInner/dateInputInnerControlBlock.js +2 -2
- package/esm/dateInputRaw/dateInputRaw.js +4 -4
- package/esm/dateInputRaw/utils/getLabel.js +2 -2
- package/esm/dateRangeInner/dateRangeInner.js +6 -3
- package/esm/dateRangeRaw/dateRangeRaw.d.ts +1 -0
- package/esm/dateRangeRaw/dateRangeRaw.js +21 -15
- package/esm/dateRangeRaw/types.d.ts +1 -0
- package/esm/dateRangeRaw/utils/dateRangeUtils.js +17 -17
- package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
- package/esm/dateSelectionWrapper/dateSelectionWrapper.js +4 -4
- package/esm/dialog/dialogContent.js +1 -1
- package/esm/dropdown/dropdownTrigger.d.ts +1 -1
- package/esm/dropdownRaw/dropdownList.js +9 -9
- package/esm/dropdownRaw/dropdownPopup.js +3 -3
- package/esm/dropdownRaw/dropdownRaw.js +34 -17
- package/esm/dropdownRaw/dropdownSearchableTrigger.d.ts +2 -1
- package/esm/dropdownRaw/dropdownSearchableTrigger.js +8 -6
- package/esm/dropdownRaw/dropdownTrigger.d.ts +2 -1
- package/esm/dropdownRaw/dropdownTrigger.js +2 -2
- package/esm/dropdownRaw/types.d.ts +2 -0
- package/esm/favoriteButton/favoriteButton.js +1 -1
- package/esm/fileUpload/components/dropZoneContent.js +104 -104
- package/esm/fileUpload/components/templateDownloadSection.js +1 -1
- package/esm/fileUpload/components/uploadedFilesSection.js +2 -2
- package/esm/fileUpload/fileUpload.js +106 -106
- package/esm/filterButton/filterButton.d.ts +1 -0
- package/esm/filters/components/filtersContainer.js +2 -2
- package/esm/filters/components/filtersDropdown.d.ts +1 -1
- package/esm/filters/components/filtersEmptyState.js +2 -2
- package/esm/filters/components/filtersSaveModal.js +5 -5
- package/esm/filters/components/filtersSavedChipComponent.js +11 -11
- package/esm/filters/components/filtersSearchItemData.js +1 -1
- package/esm/filters/components/filtersSearchList.js +14 -11
- package/esm/filters/components/filtersSelect.js +1 -1
- package/esm/filters/components/filtersSelectListItem.js +2 -2
- package/esm/filters/components/filtersSidePanel.js +8 -8
- package/esm/filters/filters.js +7 -7
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +1 -0
- package/esm/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +18 -18
- package/esm/filtersBar/components/resetComponentButton.js +1 -1
- package/esm/filtersBar/filtersBarActions/filtersBarActions.js +3 -3
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +5 -5
- package/esm/filtersBar/filtersContainer/filtersContainer.js +62 -61
- package/esm/formField/hooks/useError.js +3 -3
- package/esm/formField/hooks/useFormFieldProps.d.ts +1 -1
- package/esm/formField/hooks/useFormFieldProps.js +4 -2
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +2 -2
- package/esm/formGroup/hooks/useCustomRow.js +46 -32
- package/esm/formGroup/hooks/useRowElements.js +9 -6
- package/esm/formGroup/hooks/useToggle.js +1 -1
- package/esm/formGroup/types.d.ts +4 -0
- package/esm/formGroup/utils/normalizeFieldId.d.ts +1 -0
- package/esm/formGroup/utils/normalizeFieldId.js +1 -0
- package/esm/formGroup/utils/resolveId.d.ts +7 -0
- package/esm/formGroup/utils/resolveId.js +2 -0
- package/esm/formLayout/components/getLayoutColumns.js +4 -2
- package/esm/formLayout/hooks/useError.js +3 -3
- package/esm/formLayout/hooks/useErrorSummary.d.ts +6 -0
- package/esm/formLayout/hooks/useErrorSummary.js +30 -0
- package/esm/formLayout/hooks/useFormButtons.js +3 -3
- package/esm/formLayout/utils/applyGridPropsStatic.js +1 -1
- package/esm/formLayout/utils/flattenErrors.d.ts +5 -0
- package/esm/formLayout/utils/flattenErrors.js +10 -0
- package/esm/formLayout/utils/getChildrenWithCustomColumns.js +3 -0
- package/esm/formLayout/utils/getFieldLabel.d.ts +1 -0
- package/esm/formLayout/utils/getFieldLabel.js +22 -0
- package/esm/formSection/hooks/useError.js +3 -3
- package/esm/formStepper/components/formStep.js +1 -1
- package/esm/formStepper/formStepper.js +2 -2
- package/esm/formStepperButtons/formStepperButtons.js +8 -5
- package/esm/gridLayout/hooks/useGridClasses.js +3 -9
- package/esm/groupButtonRaw/groupButtonRaw.js +2 -2
- package/esm/groupButtonRaw/types.d.ts +1 -0
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +8 -5
- package/esm/groupsFilterRaw/groupsFilterBox.js +3 -3
- package/esm/groupsFilterRaw/groupsFilterCommon.js +2 -2
- package/esm/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +5 -5
- package/esm/groupsFilterRaw/groupsFilterHelper.js +2 -2
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +12 -9
- package/esm/groupsFilterRaw/groupsFilterMenu.js +3 -3
- package/esm/groupsFilterRaw/groupsFilterRaw.d.ts +1 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.js +15 -10
- package/esm/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/esm/groupsFilterRaw/groupsFilterTrigger.js +8 -5
- package/esm/groupsFilterRaw/groupsHelper.js +22 -22
- package/esm/groupsFilterRaw/types.d.ts +2 -0
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +1 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.js +3 -3
- package/esm/header/header.js +2 -2
- package/esm/header/headerBack.js +5 -2
- package/esm/header/headerHelpers.d.ts +1 -0
- package/esm/header/headerHelpers.js +8 -0
- package/esm/header/hooks/useNonFittingElements.js +1 -1
- package/esm/icons/iconAlignLeft.js +1 -3
- package/esm/icons/iconAlignmentLeft.js +1 -3
- package/esm/icons/iconAlignmentRight.js +1 -3
- package/esm/icons/iconArrowBottomLeft.js +1 -3
- package/esm/icons/iconArrowBottomRight.js +1 -3
- package/esm/icons/iconArrowLeftPath.js +1 -3
- package/esm/icons/iconArrowRight.js +1 -3
- package/esm/icons/iconArrowRightCircle.js +1 -3
- package/esm/icons/iconArrowRightPath.js +1 -3
- package/esm/icons/iconArrowTopLeft.js +1 -3
- package/esm/icons/iconArrowTopRight.js +1 -3
- package/esm/icons/iconChevronDoubleRight.js +1 -3
- package/esm/icons/iconChevronRight.js +1 -3
- package/esm/icons/iconChevronRightSmall.js +1 -3
- package/esm/icons/iconCornerDownLeft.js +1 -3
- package/esm/icons/iconCornerDownRight.js +1 -3
- package/esm/icons/iconCornerLeftDown.js +1 -3
- package/esm/icons/iconCornerLeftUp.js +1 -3
- package/esm/icons/iconCornerRightDown.js +1 -3
- package/esm/icons/iconCornerRightUp.js +1 -3
- package/esm/icons/iconCornerUpLeft.js +1 -3
- package/esm/icons/iconCornerUpRight.js +1 -3
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/lineChartMini/lineChartMini.js +15 -3
- package/esm/list/itemData/itemDataInternal.js +6 -3
- package/esm/list/listItem/listItem.js +6 -3
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +4 -1
- package/esm/menu/components/menuButton.d.ts +2 -1
- package/esm/menu/components/menuButton.js +7 -4
- package/esm/menu/components/menuErrorItem.js +2 -2
- package/esm/menu/components/menuItem.js +4 -4
- package/esm/menu/utils/useMenuItemCore.js +4 -3
- package/esm/miniTabs/miniTabs.d.ts +1 -0
- package/esm/miniTabs/miniTabs.js +1 -1
- package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -1
- package/esm/miniTabs/miniTabsHeaderItem.js +1 -1
- package/esm/miniTabs/miniTabsItem.d.ts +1 -0
- package/esm/mobileSheet/mobileSheet.js +2 -2
- package/esm/modal/modal.js +1 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.js +2 -2
- package/esm/nav/navFooter/navFooter.js +1 -1
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/esm/nav/navHeader/navHeader.js +2 -2
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +2 -2
- package/esm/nav/navItem/navItem.js +4 -1
- package/esm/nav/navMobileBar/navMobileBar.js +1 -1
- package/esm/notification/notification.js +1 -1
- package/esm/pagination/paginationArrow.js +12 -5
- package/esm/pagination/paginationText/paginationText.js +1 -1
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +1 -1
- package/esm/pillBox/components/pillBoxItem.js +1 -1
- package/esm/pillBox/pillBox.js +3 -3
- package/esm/pillExpandable/pillContent.js +12 -3
- package/esm/pillExpandable/pillExpandable.d.ts +4 -1
- package/esm/pillExpandable/pillExpandable.js +5 -3
- package/esm/pillExpandable/pillExpandableSimple.d.ts +1 -1
- package/esm/pillExpandable/pillExpandableSimple.js +4 -4
- package/esm/radioGroupRaw/radioGroupRaw.js +2 -1
- package/esm/rangeRaw/rangeRaw.js +7 -8
- package/esm/rangeRaw/utils/rangeHelper.js +7 -7
- package/esm/searchInputRaw/searchInputRaw.js +6 -3
- package/esm/selectList/selectList.js +2 -2
- package/esm/selectList/selectListItem.js +4 -1
- package/esm/skeleton/skeleton.js +1 -1
- package/esm/sortControl/sortControl.js +6 -7
- package/esm/stepperRaw/stepperRaw.js +3 -0
- package/esm/summary/summary.js +2 -2
- package/esm/summaryTile/summaryTile.d.ts +4 -2
- package/esm/summaryTile/summaryTile.js +59 -26
- package/esm/summaryTileBar/summaryTileBar.d.ts +4 -2
- package/esm/summaryTileBar/summaryTileBar.js +2 -2
- package/esm/table/actions/actionsMenu.js +2 -2
- package/esm/table/children/useTableChildren.d.ts +1 -1
- package/esm/table/children/useTableChildren.js +3 -3
- package/esm/table/detailPanel/detailPanel.js +1 -1
- package/esm/table/detailPanel/detailPanelHeader.js +2 -2
- package/esm/table/flexible/columnSettings.js +2 -2
- package/esm/table/flexible/columnsList.js +46 -111
- package/esm/table/flexible/columnsPopup.d.ts +1 -1
- package/esm/table/flexible/columnsPopup.js +1 -1
- package/esm/table/nested/useNestedRows.js +2 -2
- package/esm/table/selectable/selectableHeader.js +5 -4
- package/esm/table/selectable/useSelectableRows.d.ts +8 -0
- package/esm/table/selectable/useSelectableRows.js +16 -8
- package/esm/table/sortable/mobileSortControl.js +1 -1
- package/esm/table/sortable/sortableHeader.js +2 -2
- package/esm/table/table.js +3 -9
- package/esm/tabs/tabItem/tabItem.d.ts +2 -1
- package/esm/tabs/tabItem/tabItem.js +7 -2
- package/esm/tabs/tabs.d.ts +2 -1
- package/esm/tabs/tabs.js +71 -61
- package/esm/tabs/tabsTestHelper.js +2 -2
- package/esm/testHelpers/mockAbsoluteAlignment.d.ts +1 -0
- package/esm/testHelpers/mockAbsoluteAlignment.js +10 -0
- package/esm/timePickerRaw/timePickerRaw.js +11 -9
- package/esm/timePickerRaw/types.d.ts +1 -0
- package/esm/toastRaw/toastRaw.js +1 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +7 -4
- package/esm/tooltip/tooltip.js +13 -5
- package/esm/utils/formatDate.js +37 -37
- package/esm/utils/localization/flipAlignment.js +12 -1
- package/esm/utils/localization/languageContext.d.ts +1 -1
- package/esm/utils/localization/translations/cs.json +7 -5
- package/esm/utils/localization/translations/da-DK.json +7 -5
- package/esm/utils/localization/translations/de.json +7 -5
- package/esm/utils/localization/translations/en.json +12 -1
- package/esm/utils/localization/translations/es.json +7 -5
- package/esm/utils/localization/translations/fi-FI.json +7 -5
- package/esm/utils/localization/translations/fr-FR.json +7 -5
- package/esm/utils/localization/translations/fr.json +7 -5
- package/esm/utils/localization/translations/hu-HU.json +7 -5
- package/esm/utils/localization/translations/id.json +7 -5
- package/esm/utils/localization/translations/it.json +7 -5
- package/esm/utils/localization/translations/ja.json +7 -5
- package/esm/utils/localization/translations/ko-KR.json +7 -5
- package/esm/utils/localization/translations/ms.json +7 -5
- package/esm/utils/localization/translations/nb-NO.json +7 -5
- package/esm/utils/localization/translations/nl.json +7 -5
- package/esm/utils/localization/translations/pl.json +7 -5
- package/esm/utils/localization/translations/pt-BR.json +7 -5
- package/esm/utils/localization/translations/pt-PT.json +7 -5
- package/esm/utils/localization/translations/ro-RO.json +7 -5
- package/esm/utils/localization/translations/sk-SK.json +7 -5
- package/esm/utils/localization/translations/sv.json +7 -5
- package/esm/utils/localization/translations/th.json +7 -5
- package/esm/utils/localization/translations/tr.json +7 -5
- package/esm/utils/localization/translations/zh-Hans.json +7 -5
- package/esm/utils/localization/translations/zh-TW.json +7 -5
- package/esm/utils/localization/useDirectionalIcon.d.ts +3 -0
- package/esm/utils/localization/useDirectionalIcon.js +5 -0
- package/esm/utils/positioningUtils/alignments.d.ts +2 -2
- package/esm/utils/positioningUtils/alignments.js +2 -2
- package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/esm/utils/positioningUtils/calculatePosition.js +11 -11
- package/esm/utils/positioningUtils/normalizeLogicalAlignment.d.ts +4 -0
- package/esm/utils/positioningUtils/normalizeLogicalAlignment.js +32 -0
- package/package.json +11 -12
- package/dist/utils/localization/translations/en-json.d.ts +0 -317
- package/dist/utils/localization/translations/en-json.js +0 -320
- package/esm/utils/localization/translations/en-json.d.ts +0 -317
- package/esm/utils/localization/translations/en-json.js +0 -317
|
@@ -44,7 +44,7 @@ injectString("tr", "Value", "De\u011Fer");
|
|
|
44
44
|
injectString("zh-Hans", "Value", "\u503C");
|
|
45
45
|
injectString("zh-TW", "Value", "\u503C");
|
|
46
46
|
injectString("ro-RO", "Value", "Valoare");
|
|
47
|
-
injectString("ar
|
|
47
|
+
injectString("ar", "Value", "\u0627\u0644\u0642\u064A\u0645\u0629");
|
|
48
48
|
injectString("cs", "Chart data", "Data grafu");
|
|
49
49
|
injectString("da-DK", "Chart data", "Diagramdata");
|
|
50
50
|
injectString("de", "Chart data", "Diagrammdaten");
|
|
@@ -71,7 +71,7 @@ injectString("tr", "Chart data", "Grafik verileri");
|
|
|
71
71
|
injectString("zh-Hans", "Chart data", "\u56FE\u8868\u6570\u636E");
|
|
72
72
|
injectString("zh-TW", "Chart data", "\u5716\u8868\u8CC7\u6599");
|
|
73
73
|
injectString("ro-RO", "Chart data", "Date grafic");
|
|
74
|
-
injectString("ar
|
|
74
|
+
injectString("ar", "Chart data", "\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0628\u064A\u0627\u0646\u064A");
|
|
75
75
|
injectString("cs", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
76
76
|
injectString("da-DK", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
77
77
|
injectString("de", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
@@ -98,7 +98,7 @@ injectString("tr", "Chart contains too many data points so their number has been
|
|
|
98
98
|
injectString("zh-Hans", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
99
99
|
injectString("zh-TW", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range");
|
|
100
100
|
injectString("ro-RO", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "Graficul con\u021Bine prea multe puncte de date, a\u0219adar num\u0103rul lor a fost redus. Dac\u0103 dori\u021Bi s\u0103 vede\u021Bi mai mult, schimba\u021Bi intervalul raportului");
|
|
101
|
-
injectString("ar
|
|
101
|
+
injectString("ar", "Chart contains too many data points so their number has been reduced. If you want to see more, change the Report Range", "\u064A\u062D\u062A\u0648\u064A \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0628\u064A\u0627\u0646\u064A \u0639\u0644\u0649 \u0639\u062F\u062F \u0643\u0628\u064A\u0631 \u062C\u062F\u0627\u064B \u0645\u0646 \u0646\u0642\u0627\u0637 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0644\u0630\u0644\u0643 \u062A\u0645 \u062A\u0642\u0644\u064A\u0644 \u0639\u062F\u062F\u0647\u0627. \u0625\u0630\u0627 \u0623\u0631\u062F\u062A \u0631\u0624\u064A\u0629 \u0627\u0644\u0645\u0632\u064A\u062F\u060C \u063A\u064A\u0651\u0631 \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0642\u0631\u064A\u0631");
|
|
102
102
|
injectString("cs", "X-axis", "Osa X");
|
|
103
103
|
injectString("da-DK", "X-axis", "X-akse");
|
|
104
104
|
injectString("de", "X-axis", "X-Achse");
|
|
@@ -125,7 +125,7 @@ injectString("tr", "X-axis", "X ekseni");
|
|
|
125
125
|
injectString("zh-Hans", "X-axis", "X \u8F74");
|
|
126
126
|
injectString("zh-TW", "X-axis", "X \u8EF8");
|
|
127
127
|
injectString("ro-RO", "X-axis", "Axa X");
|
|
128
|
-
injectString("ar
|
|
128
|
+
injectString("ar", "X-axis", "\u0627\u0644\u0645\u062D\u0648\u0631 \u0633");
|
|
129
129
|
injectString("cs", "Category", "Kategorie");
|
|
130
130
|
injectString("da-DK", "Category", "Kategori");
|
|
131
131
|
injectString("de", "Category", "Kategorie");
|
|
@@ -152,7 +152,7 @@ injectString("tr", "Category", "Kategori");
|
|
|
152
152
|
injectString("zh-Hans", "Category", "\u7C7B\u522B");
|
|
153
153
|
injectString("zh-TW", "Category", "\u7A2E\u985E");
|
|
154
154
|
injectString("ro-RO", "Category", "Categorie");
|
|
155
|
-
injectString("ar
|
|
155
|
+
injectString("ar", "Category", "\u0627\u0644\u0641\u0626\u0629");
|
|
156
156
|
const MAX_TABLE_ROWS = 150;
|
|
157
157
|
const getXLabels = (type, data, translate) => {
|
|
158
158
|
if (type === "pie") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IYAxisMeta } from "../interfaces";
|
|
2
|
-
export declare const getDefaultOptions: (yAxis: IYAxisMeta[], isTimedData: boolean, isDark: boolean, translate: (s: string) => string) => {
|
|
2
|
+
export declare const getDefaultOptions: (yAxis: IYAxisMeta[], isTimedData: boolean, isDark: boolean, translate: (s: string) => string, isRtl?: boolean) => {
|
|
3
3
|
responsive: boolean;
|
|
4
4
|
maintainAspectRatio: boolean;
|
|
5
5
|
scales: {
|
|
@@ -10,6 +10,7 @@ export declare const getDefaultOptions: (yAxis: IYAxisMeta[], isTimedData: boole
|
|
|
10
10
|
grid: {
|
|
11
11
|
display: boolean;
|
|
12
12
|
};
|
|
13
|
+
reverse: boolean;
|
|
13
14
|
type: string;
|
|
14
15
|
ticks: {
|
|
15
16
|
source: string;
|
|
@@ -10,8 +10,10 @@ const defaultGridBorderStyle = {
|
|
|
10
10
|
display: false,
|
|
11
11
|
dash: [2, 2]
|
|
12
12
|
};
|
|
13
|
-
const getDefaultOptions = (yAxis, isTimedData, isDark, translate) => {
|
|
13
|
+
const getDefaultOptions = (yAxis, isTimedData, isDark, translate, isRtl = false) => {
|
|
14
14
|
const textColor = isDark ? "#C0CCD8" : "#4E677E";
|
|
15
|
+
const primaryYPosition = isRtl ? "right" : "left";
|
|
16
|
+
const secondaryYPosition = isRtl ? "left" : "right";
|
|
15
17
|
const scales = {
|
|
16
18
|
x: {
|
|
17
19
|
title: {
|
|
@@ -20,6 +22,7 @@ const getDefaultOptions = (yAxis, isTimedData, isDark, translate) => {
|
|
|
20
22
|
grid: {
|
|
21
23
|
display: false
|
|
22
24
|
},
|
|
25
|
+
reverse: isRtl,
|
|
23
26
|
type: isTimedData ? "time" : "category",
|
|
24
27
|
ticks: isTimedData
|
|
25
28
|
? {
|
|
@@ -57,7 +60,7 @@ const getDefaultOptions = (yAxis, isTimedData, isDark, translate) => {
|
|
|
57
60
|
border: defaultGridBorderStyle,
|
|
58
61
|
min: yAxis[i].min,
|
|
59
62
|
max: yAxis[i].max,
|
|
60
|
-
position: i === 0 ?
|
|
63
|
+
position: i === 0 ? primaryYPosition : secondaryYPosition
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
return {
|
package/dist/chart/barChart.js
CHANGED
|
@@ -25,6 +25,7 @@ const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
|
25
25
|
const legendPlugin_1 = require("./plugins/legend/legendPlugin");
|
|
26
26
|
const chartAxis_1 = require("./chartAxis/chartAxis");
|
|
27
27
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
28
|
+
const useIsRTL_1 = require("../utils/localization/useIsRTL");
|
|
28
29
|
const isDateRange_1 = require("./utils/isDateRange");
|
|
29
30
|
const getYAxisMeta_1 = require("./utils/getYAxisMeta");
|
|
30
31
|
const getDefaultOptions_1 = require("./barChart/getDefaultOptions");
|
|
@@ -44,6 +45,7 @@ const BarChart = (_a) => {
|
|
|
44
45
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
45
46
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
46
47
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
48
|
+
const isRtl = (0, useIsRTL_1.useIsRTL)();
|
|
47
49
|
const fontSize = (0, react_1.useMemo)(() => (isDrive ? (isMobile ? 14 : 16) : 12), [isDrive, isMobile]);
|
|
48
50
|
const { dark } = (0, react_1.useContext)(themeContext_1.themeContext);
|
|
49
51
|
(0, react_1.useEffect)(() => {
|
|
@@ -59,15 +61,15 @@ const BarChart = (_a) => {
|
|
|
59
61
|
const isTimedData = (0, react_1.useMemo)(() => (0, isDateRange_1.isDateRange)(data, false), [data]);
|
|
60
62
|
const isStacked = (0, react_1.useMemo)(() => { var _a, _b; return ((_b = (_a = options.scales) === null || _a === void 0 ? void 0 : _a.y) === null || _b === void 0 ? void 0 : _b.stacked) === true; }, [options]);
|
|
61
63
|
const yAxisMeta = (0, react_1.useMemo)(() => (0, getYAxisMeta_1.getYAxisMeta)(data, isStacked), [data, isStacked]);
|
|
62
|
-
const defOptions = (0, react_1.useMemo)(() => (0, getDefaultOptions_1.getDefaultOptions)(yAxisMeta, isTimedData, dark, translate), [yAxisMeta, isTimedData, dark, translate]);
|
|
64
|
+
const defOptions = (0, react_1.useMemo)(() => (0, getDefaultOptions_1.getDefaultOptions)(yAxisMeta, isTimedData, dark, translate, isRtl), [yAxisMeta, isTimedData, dark, translate, isRtl]);
|
|
63
65
|
const chartOptions = (0, utils_1.deepMerge)(defOptions, options);
|
|
64
66
|
const { isHidden, toggleHidden } = (0, useHidden_1.useHidden)();
|
|
65
67
|
const chartData = (0, react_1.useMemo)(() => {
|
|
66
68
|
const chData = (0, convertDates_1.convertDates)(data, toLocalDateTime);
|
|
67
69
|
chData.datasets = chData.datasets.map((ds, i) => (0, getDefaultDatasetStyle_1.getDefaultDatasetStyle)(ds, i));
|
|
68
|
-
chData.datasets = chData.datasets.map((ds, i) => (Object.assign(Object.assign({}, ds), { hidden: isHidden(i) })));
|
|
70
|
+
chData.datasets = chData.datasets.map((ds, i) => (Object.assign(Object.assign({}, ds), { hidden: isHidden(i), order: isRtl ? chData.datasets.length - 1 - i : i })));
|
|
69
71
|
return chData;
|
|
70
|
-
}, [data, isHidden, toLocalDateTime]);
|
|
72
|
+
}, [data, isHidden, toLocalDateTime, isRtl]);
|
|
71
73
|
const chartTooltip = (0, react_1.useMemo)(() => (0, tooltipPlugin_1.TooltipPlugin)(tooltipId, tooltip, "top", isHidden, dark), [tooltipId, tooltip, isHidden, dark]);
|
|
72
74
|
const chartLegend = (0, react_1.useMemo)(() => (0, legendPlugin_1.legendPlugin)(legendId, legend, isDrive, isHidden, toggleHidden), [isDrive, isHidden, legend, legendId, toggleHidden]);
|
|
73
75
|
const chartPlugins = (0, react_1.useMemo)(() => [...(plugins || []), chartTooltip, chartLegend], [chartLegend, chartTooltip, plugins]);
|
|
@@ -75,6 +77,6 @@ const BarChart = (_a) => {
|
|
|
75
77
|
const intSummary = (0, useSummary_1.useSummary)(summary, chartData);
|
|
76
78
|
const isMainHidden = (0, react_1.useMemo)(() => isHidden(0), [isHidden]);
|
|
77
79
|
const toggleMainData = (0, react_1.useCallback)(() => toggleHidden(0), [toggleHidden]);
|
|
78
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-chart", className || ""]), children: [insight ? (0, jsx_runtime_1.jsx)(chartInsight_1.ChartInsight, Object.assign({}, insight)) : null, summary ? (0, jsx_runtime_1.jsx)(summary_1.Summary, Object.assign({ onToggle: toggleMainData, isEnabled: isMainHidden }, intSummary)) : null, (isDrive ? undefined : xLabels) || yLabels.length > 0 ? ((0, jsx_runtime_1.jsx)(chartAxis_1.ChartAxis, { xLabel: isDrive ? undefined : xLabels, yLabels: yLabels, yAxisPosition: "right" })) : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__chart", children: (0, jsx_runtime_1.jsx)(typedCharts_1.Bar, Object.assign({ options: chartOptions, data: chartData, plugins: chartPlugins }, rest, { "aria-hidden": true })) }), (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__legend", id: legendId }), isDrive && xLabels ? (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__x-axis", children: xLabels }) : null, (0, jsx_runtime_1.jsx)(accessibleChart_1.AccessibleChart, { type: "bar", data: chartData, options: chartOptions })] }));
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-chart", className || ""]), children: [insight ? (0, jsx_runtime_1.jsx)(chartInsight_1.ChartInsight, Object.assign({}, insight)) : null, summary ? (0, jsx_runtime_1.jsx)(summary_1.Summary, Object.assign({ onToggle: toggleMainData, isEnabled: isMainHidden }, intSummary)) : null, (isDrive ? undefined : xLabels) || yLabels.length > 0 ? ((0, jsx_runtime_1.jsx)(chartAxis_1.ChartAxis, { xLabel: isDrive ? undefined : xLabels, yLabels: yLabels, yAxisPosition: isRtl ? "left" : "right" })) : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__chart", children: (0, jsx_runtime_1.jsx)(typedCharts_1.Bar, Object.assign({ options: chartOptions, data: chartData, plugins: chartPlugins }, rest, { "aria-hidden": true })) }), (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__legend", id: legendId }), isDrive && xLabels ? (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__x-axis", children: xLabels }) : null, (0, jsx_runtime_1.jsx)(accessibleChart_1.AccessibleChart, { type: "bar", data: chartData, options: chartOptions })] }));
|
|
79
81
|
};
|
|
80
82
|
exports.BarChart = BarChart;
|
package/dist/chart/chart.js
CHANGED
|
@@ -46,7 +46,7 @@ injectString("tr", "Chart data table and visualization", "Chart data table and v
|
|
|
46
46
|
injectString("zh-Hans", "Chart data table and visualization", "Chart data table and visualization");
|
|
47
47
|
injectString("zh-TW", "Chart data table and visualization", "Chart data table and visualization");
|
|
48
48
|
injectString("ro-RO", "Chart data table and visualization", "Tabelul \u0219i vizualizarea datelor din grafic");
|
|
49
|
-
injectString("ar
|
|
49
|
+
injectString("ar", "Chart data table and visualization", "\u062C\u062F\u0648\u0644 \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0628\u064A\u0627\u0646\u064A \u0648\u0627\u0644\u062A\u0635\u0648\u0631");
|
|
50
50
|
const isPieChart = (type, _) => type === "pie";
|
|
51
51
|
const isBarChart = (type, _) => type === "bar";
|
|
52
52
|
const Chart = _a => {
|
|
@@ -37,7 +37,7 @@ injectString("tr", "Y-axis", "Y ekseni");
|
|
|
37
37
|
injectString("zh-Hans", "Y-axis", "Y \u8F74");
|
|
38
38
|
injectString("zh-TW", "Y-axis", "Y \u8EF8");
|
|
39
39
|
injectString("ro-RO", "Y-axis", "Axa Y");
|
|
40
|
-
injectString("ar
|
|
40
|
+
injectString("ar", "Y-axis", "\u0627\u0644\u0645\u062D\u0648\u0631 \u0635");
|
|
41
41
|
injectString("cs", "X-axis", "Osa X");
|
|
42
42
|
injectString("da-DK", "X-axis", "X-akse");
|
|
43
43
|
injectString("de", "X-axis", "X-Achse");
|
|
@@ -64,7 +64,7 @@ injectString("tr", "X-axis", "X ekseni");
|
|
|
64
64
|
injectString("zh-Hans", "X-axis", "X \u8F74");
|
|
65
65
|
injectString("zh-TW", "X-axis", "X \u8EF8");
|
|
66
66
|
injectString("ro-RO", "X-axis", "Axa X");
|
|
67
|
-
injectString("ar
|
|
67
|
+
injectString("ar", "X-axis", "\u0627\u0644\u0645\u062D\u0648\u0631 \u0633");
|
|
68
68
|
const ChartAxis = ({
|
|
69
69
|
xLabel,
|
|
70
70
|
yLabels,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IXAxisMeta, IYAxisMeta } from "../interfaces";
|
|
2
|
-
export declare const getDefaultOptions: (yAxis: IYAxisMeta[], xAxis: IXAxisMeta, isTimedData: boolean, ticks: number, isDark: boolean, translate: (s: string) => string) => {
|
|
2
|
+
export declare const getDefaultOptions: (yAxis: IYAxisMeta[], xAxis: IXAxisMeta, isTimedData: boolean, ticks: number, isDark: boolean, translate: (s: string) => string, isRtl?: boolean) => {
|
|
3
3
|
responsive: boolean;
|
|
4
4
|
maintainAspectRatio: boolean;
|
|
5
5
|
scales: {
|
|
@@ -10,6 +10,7 @@ export declare const getDefaultOptions: (yAxis: IYAxisMeta[], xAxis: IXAxisMeta,
|
|
|
10
10
|
grid: {
|
|
11
11
|
display: boolean;
|
|
12
12
|
};
|
|
13
|
+
reverse: boolean;
|
|
13
14
|
type: string;
|
|
14
15
|
time: {
|
|
15
16
|
unit: string;
|
|
@@ -17,6 +18,8 @@ export declare const getDefaultOptions: (yAxis: IYAxisMeta[], xAxis: IXAxisMeta,
|
|
|
17
18
|
[x: string]: string;
|
|
18
19
|
};
|
|
19
20
|
} | undefined;
|
|
21
|
+
min: number | undefined;
|
|
22
|
+
max: number | undefined;
|
|
20
23
|
ticks: {
|
|
21
24
|
autoSkip: boolean;
|
|
22
25
|
maxRotation: number;
|
|
@@ -47,9 +47,11 @@ const getFormatFromDateRange = (minDate, maxDate, ticks) => {
|
|
|
47
47
|
}
|
|
48
48
|
return { unit: "millisecond", format: "HH:mm:ss.l" };
|
|
49
49
|
};
|
|
50
|
-
const getDefaultOptions = (yAxis, xAxis, isTimedData, ticks, isDark, translate) => {
|
|
50
|
+
const getDefaultOptions = (yAxis, xAxis, isTimedData, ticks, isDark, translate, isRtl = false) => {
|
|
51
51
|
const time = getFormatFromDateRange(xAxis.minDate, xAxis.maxDate, ticks);
|
|
52
52
|
const textColor = isDark ? "#C0CCD8" : "#4E677E";
|
|
53
|
+
const primaryYPosition = isRtl ? "right" : "left";
|
|
54
|
+
const secondaryYPosition = isRtl ? "left" : "right";
|
|
53
55
|
const scales = {
|
|
54
56
|
x: {
|
|
55
57
|
title: {
|
|
@@ -58,6 +60,7 @@ const getDefaultOptions = (yAxis, xAxis, isTimedData, ticks, isDark, translate)
|
|
|
58
60
|
grid: {
|
|
59
61
|
display: false
|
|
60
62
|
},
|
|
63
|
+
reverse: isRtl,
|
|
61
64
|
type: isTimedData ? "time" : "linear",
|
|
62
65
|
time: isTimedData
|
|
63
66
|
? {
|
|
@@ -67,6 +70,8 @@ const getDefaultOptions = (yAxis, xAxis, isTimedData, ticks, isDark, translate)
|
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
: undefined,
|
|
73
|
+
min: isTimedData ? Date.parse(xAxis.minDate) : undefined,
|
|
74
|
+
max: isTimedData ? Date.parse(xAxis.maxDate) : undefined,
|
|
70
75
|
ticks: isTimedData
|
|
71
76
|
? {
|
|
72
77
|
autoSkip: false,
|
|
@@ -104,7 +109,7 @@ const getDefaultOptions = (yAxis, xAxis, isTimedData, ticks, isDark, translate)
|
|
|
104
109
|
border: defaultGridBorderStyle,
|
|
105
110
|
min: yAxis[i].min,
|
|
106
111
|
max: yAxis[i].max,
|
|
107
|
-
position: i === 0 ?
|
|
112
|
+
position: i === 0 ? primaryYPosition : secondaryYPosition
|
|
108
113
|
};
|
|
109
114
|
}
|
|
110
115
|
return {
|
package/dist/chart/lineChart.js
CHANGED
|
@@ -32,8 +32,10 @@ const useAxisLabels_1 = require("./lineChart/useAxisLabels");
|
|
|
32
32
|
const getYAxisMeta_1 = require("./utils/getYAxisMeta");
|
|
33
33
|
const getDefaultOptions_1 = require("./lineChart/getDefaultOptions");
|
|
34
34
|
const useHidden_1 = require("./utils/useHidden");
|
|
35
|
+
const useLastVisibleXAxisMeta_1 = require("./utils/useLastVisibleXAxisMeta");
|
|
35
36
|
const linePlugin_1 = require("./plugins/linePlugin/linePlugin");
|
|
36
37
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
38
|
+
const useIsRTL_1 = require("../utils/localization/useIsRTL");
|
|
37
39
|
const useChartTicks_1 = require("./lineChart/useChartTicks");
|
|
38
40
|
const chartInsight_1 = require("./chartInsight/chartInsight");
|
|
39
41
|
const getXAxisMeta_1 = require("./utils/getXAxisMeta");
|
|
@@ -46,6 +48,7 @@ const LineChart = (_a) => {
|
|
|
46
48
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
47
49
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
48
50
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
51
|
+
const isRtl = (0, useIsRTL_1.useIsRTL)();
|
|
49
52
|
const fontSize = (0, react_1.useMemo)(() => (isDrive ? (isMobile ? 14 : 16) : 12), [isDrive, isMobile]);
|
|
50
53
|
const { dark } = (0, react_1.useContext)(themeContext_1.themeContext);
|
|
51
54
|
(0, react_1.useEffect)(() => {
|
|
@@ -57,7 +60,7 @@ const LineChart = (_a) => {
|
|
|
57
60
|
}, [fontSize, dark]);
|
|
58
61
|
const legendId = (0, react_1.useId)();
|
|
59
62
|
const tooltipId = (0, react_1.useId)();
|
|
60
|
-
const { isHidden, toggleHidden } = (0, useHidden_1.useHidden)();
|
|
63
|
+
const { isHidden, toggleHidden, hiddenCount } = (0, useHidden_1.useHidden)();
|
|
61
64
|
const { toLocalDateTime } = (0, react_1.useContext)(userFormatContext_1.userFormatContext);
|
|
62
65
|
const isTimedData = (0, react_1.useMemo)(() => (0, isDateRange_1.isDateRange)(data, true), [data]);
|
|
63
66
|
const chartData = (0, react_1.useMemo)(() => {
|
|
@@ -75,8 +78,9 @@ const LineChart = (_a) => {
|
|
|
75
78
|
}, [data, isHidden, toLocalDateTime]);
|
|
76
79
|
const yAxisMeta = (0, react_1.useMemo)(() => (0, getYAxisMeta_1.getYAxisMeta)(chartData), [chartData]);
|
|
77
80
|
const xAxisMeta = (0, react_1.useMemo)(() => (0, getXAxisMeta_1.getXAxisMeta)(chartData, isTimedData), [chartData, isTimedData]);
|
|
81
|
+
const stableXAxisMeta = (0, useLastVisibleXAxisMeta_1.useLastVisibleXAxisMeta)(xAxisMeta, hiddenCount, data.datasets.length);
|
|
78
82
|
const { chartRef, ticks } = (0, useChartTicks_1.useChartTicks)();
|
|
79
|
-
const defOptions = (0, react_1.useMemo)(() => (0, getDefaultOptions_1.getDefaultOptions)(yAxisMeta,
|
|
83
|
+
const defOptions = (0, react_1.useMemo)(() => (0, getDefaultOptions_1.getDefaultOptions)(yAxisMeta, stableXAxisMeta, isTimedData, ticks, dark, translate, isRtl), [yAxisMeta, stableXAxisMeta, isTimedData, ticks, dark, translate, isRtl]);
|
|
80
84
|
const chartOptions = (0, utils_1.deepMerge)(defOptions, options);
|
|
81
85
|
const chartTooltip = (0, react_1.useMemo)(() => (0, linePlugin_1.LinePlugin)(tooltipId, tooltip, dark), [tooltip, tooltipId, dark]);
|
|
82
86
|
const chartLegend = (0, react_1.useMemo)(() => (0, legendPlugin_1.legendPlugin)(legendId, legend, isDrive, isHidden, toggleHidden), [isDrive, legend, legendId, isHidden, toggleHidden]);
|
|
@@ -85,6 +89,6 @@ const LineChart = (_a) => {
|
|
|
85
89
|
const intSummary = (0, useSummary_1.useSummary)(summary, chartData);
|
|
86
90
|
const isMainHidden = (0, react_1.useMemo)(() => isHidden(0), [isHidden]);
|
|
87
91
|
const toggleMainDataset = (0, react_1.useCallback)(() => toggleHidden(0), [toggleHidden]);
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-chart", className || ""]), ref: chartRef, children: [insight ? (0, jsx_runtime_1.jsx)(chartInsight_1.ChartInsight, Object.assign({}, insight)) : null, summary !== false ? (0, jsx_runtime_1.jsx)(summary_1.Summary, Object.assign({}, intSummary, { onToggle: toggleMainDataset, isEnabled: isMainHidden })) : null, (isDrive ? undefined : xLabels) || yLabels.length > 0 ? (0, jsx_runtime_1.jsx)(chartAxis_1.ChartAxis, { xLabel: isDrive ? undefined : xLabels, yLabels: yLabels }) : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__chart", children: (0, jsx_runtime_1.jsx)(typedCharts_1.Line, Object.assign({ width: 100, height: 100, options: chartOptions, data: chartData, plugins: chartPlugins, "aria-hidden": true }, rest)) }), (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__legend", id: legendId }), isDrive && xLabels ? (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__x-axis", children: xLabels }) : null, (0, jsx_runtime_1.jsx)(accessibleChart_1.AccessibleChart, { type: "line", data: chartData, options: chartOptions })] }));
|
|
92
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-chart", className || ""]), ref: chartRef, children: [insight ? (0, jsx_runtime_1.jsx)(chartInsight_1.ChartInsight, Object.assign({}, insight)) : null, summary !== false ? (0, jsx_runtime_1.jsx)(summary_1.Summary, Object.assign({}, intSummary, { onToggle: toggleMainDataset, isEnabled: isMainHidden })) : null, (isDrive ? undefined : xLabels) || yLabels.length > 0 ? ((0, jsx_runtime_1.jsx)(chartAxis_1.ChartAxis, { xLabel: isDrive ? undefined : xLabels, yLabels: yLabels, yAxisPosition: isRtl ? "left" : "right" })) : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__chart", children: (0, jsx_runtime_1.jsx)(typedCharts_1.Line, Object.assign({ width: 100, height: 100, options: chartOptions, data: chartData, plugins: chartPlugins, "aria-hidden": true }, rest)) }), (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__legend", id: legendId }), isDrive && xLabels ? (0, jsx_runtime_1.jsx)("div", { className: "zen-chart__x-axis", children: xLabels }) : null, (0, jsx_runtime_1.jsx)(accessibleChart_1.AccessibleChart, { type: "line", data: chartData, options: chartOptions })] }));
|
|
89
93
|
};
|
|
90
94
|
exports.LineChart = LineChart;
|
|
@@ -44,11 +44,12 @@ const LinePlugin = (containerId, options, isDark) => ({
|
|
|
44
44
|
canvas.addEventListener("mouseout", chart.verticalLine.mouseOut);
|
|
45
45
|
},
|
|
46
46
|
afterDraw: (chart) => {
|
|
47
|
-
var _a, _b;
|
|
47
|
+
var _a, _b, _c;
|
|
48
48
|
if (options === false) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
52
|
+
if ((_a = chart.verticalLine) === null || _a === void 0 ? void 0 : _a.enabled) {
|
|
52
53
|
const ctx = chart.ctx;
|
|
53
54
|
const x = chart.verticalLine.x;
|
|
54
55
|
const y = chart.verticalLine.y;
|
|
@@ -99,8 +100,8 @@ const LinePlugin = (containerId, options, isDark) => ({
|
|
|
99
100
|
if (zen_1.zen.document === undefined) {
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
|
-
const scrollTop = zen_1.zen.document.body.scrollTop + (((
|
|
103
|
-
const scrollLeft = zen_1.zen.document.body.scrollLeft + (((
|
|
103
|
+
const scrollTop = zen_1.zen.document.body.scrollTop + (((_b = zen_1.zen.document.body.parentElement) === null || _b === void 0 ? void 0 : _b.scrollTop) || 0);
|
|
104
|
+
const scrollLeft = zen_1.zen.document.body.scrollLeft + (((_c = zen_1.zen.document.body.parentElement) === null || _c === void 0 ? void 0 : _c.scrollLeft) || 0);
|
|
104
105
|
let elementIdx = undefined;
|
|
105
106
|
const elementIds = new Set(chart.getActiveElements().map(el => el.index));
|
|
106
107
|
if (elementIds.size === 1) {
|
|
@@ -17,12 +17,15 @@ const getXAxisMeta = (data, isTimedData) => {
|
|
|
17
17
|
const point = dataset.data[j];
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
19
19
|
if (point && typeof point === "object" && point.x) {
|
|
20
|
-
const date = point.x;
|
|
21
|
-
if (date.getTime()
|
|
22
|
-
|
|
20
|
+
const date = new Date(point.x);
|
|
21
|
+
if (isNaN(date.getTime())) {
|
|
22
|
+
continue;
|
|
23
23
|
}
|
|
24
|
-
if (date.getTime()
|
|
25
|
-
|
|
24
|
+
if (date.getTime() < minDate.getTime()) {
|
|
25
|
+
minDate = date;
|
|
26
|
+
}
|
|
27
|
+
if (date.getTime() > maxDate.getTime()) {
|
|
28
|
+
maxDate = date;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -12,7 +12,7 @@ const isDateRange = (data, defaultValue) => {
|
|
|
12
12
|
}
|
|
13
13
|
const point = dataset.data[0];
|
|
14
14
|
if (point.x) {
|
|
15
|
-
return typeof point.x === "string" && (0, isDateString_1.isDateString)(point.x);
|
|
15
|
+
return (typeof point.x === "string" && (0, isDateString_1.isDateString)(point.x)) || (point.x instanceof Date && !isNaN(point.x.getTime()));
|
|
16
16
|
}
|
|
17
17
|
return defaultValue;
|
|
18
18
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLastVisibleXAxisMeta = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useLastVisibleXAxisMeta = (xAxisMeta, hiddenCount, totalCount) => {
|
|
6
|
+
const allDatasetsHidden = totalCount > 0 && hiddenCount === totalCount;
|
|
7
|
+
const lastKnownMeta = (0, react_1.useRef)(xAxisMeta);
|
|
8
|
+
const lastVisibleXAxisMeta = (0, react_1.useRef)(xAxisMeta);
|
|
9
|
+
if (!allDatasetsHidden || lastKnownMeta.current.minDate !== xAxisMeta.minDate || lastKnownMeta.current.maxDate !== xAxisMeta.maxDate) {
|
|
10
|
+
lastVisibleXAxisMeta.current = xAxisMeta;
|
|
11
|
+
lastKnownMeta.current = xAxisMeta;
|
|
12
|
+
}
|
|
13
|
+
return lastVisibleXAxisMeta.current;
|
|
14
|
+
};
|
|
15
|
+
exports.useLastVisibleXAxisMeta = useLastVisibleXAxisMeta;
|
|
@@ -35,7 +35,7 @@ injectString("tr", "Number of selected child groups - {count}", "Se\xE7ilen alt
|
|
|
35
35
|
injectString("zh-Hans", "Number of selected child groups - {count}", "\u9009\u4E2D\u7684\u5B50\u7EC4\u6570\u91CF - {count}");
|
|
36
36
|
injectString("zh-TW", "Number of selected child groups - {count}", "\u6240\u9078\u5B50\u7FA4\u7D44\u7684\u6578\u76EE - {count}");
|
|
37
37
|
injectString("ro-RO", "Number of selected child groups - {count}", "Num\u0103r de grupuri derivate selectate \u2013 {count}");
|
|
38
|
-
injectString("ar
|
|
38
|
+
injectString("ar", "Number of selected child groups - {count}", "\u0639\u062F\u062F \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0641\u0631\u0639\u064A\u0629 \u0627\u0644\u0645\u062D\u062F\u062F\u0629 - {count}");
|
|
39
39
|
injectString("cs", "View {groupName} children", "Zobrazit pod\u0159\xEDzen\xE9 pro {groupName}");
|
|
40
40
|
injectString("da-DK", "View {groupName} children", "Se {groupName} b\xF8rn");
|
|
41
41
|
injectString("de", "View {groupName} children", "Untergruppen von {groupName} ansehen");
|
|
@@ -62,7 +62,7 @@ injectString("tr", "View {groupName} children", "{groupName} alt \xF6\u011Feleri
|
|
|
62
62
|
injectString("zh-Hans", "View {groupName} children", "\u67E5\u770B {groupName} \u5B50\u7EC4");
|
|
63
63
|
injectString("zh-TW", "View {groupName} children", "\u6AA2\u8996\u300C{groupName}\u300D\u5B50\u7FA4\u7D44");
|
|
64
64
|
injectString("ro-RO", "View {groupName} children", "Vede\u021Bi derivatele {groupName}");
|
|
65
|
-
injectString("ar
|
|
65
|
+
injectString("ar", "View {groupName} children", "\u0639\u0631\u0636 \u0639\u0646\u0627\u0635\u0631 {groupName} \u0627\u0644\u0641\u0631\u0639\u064A\u0629");
|
|
66
66
|
injectString("cs", "Toggle {groupName} filter", "P\u0159epnout filtr pro {groupName}");
|
|
67
67
|
injectString("da-DK", "Toggle {groupName} filter", "Sl\xE5 {groupName} filter til og fra");
|
|
68
68
|
injectString("de", "Toggle {groupName} filter", "Filter f\xFCr {groupName} ein-/ausschalten");
|
|
@@ -89,7 +89,7 @@ injectString("tr", "Toggle {groupName} filter", "{groupName} filtresini de\u011F
|
|
|
89
89
|
injectString("zh-Hans", "Toggle {groupName} filter", "\u5207\u6362 {groupName} \u7B5B\u9009\u5668");
|
|
90
90
|
injectString("zh-TW", "Toggle {groupName} filter", "\u5207\u63DB\u300C{groupName}\u300D\u7BE9\u9078\u689D\u4EF6");
|
|
91
91
|
injectString("ro-RO", "Toggle {groupName} filter", "Activa\u021Bi filtrul {groupName}");
|
|
92
|
-
injectString("ar
|
|
92
|
+
injectString("ar", "Toggle {groupName} filter", "\u062A\u0628\u062F\u064A\u0644 \u062A\u0635\u0641\u064A\u0629 {groupName}");
|
|
93
93
|
injectString("cs", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
94
94
|
injectString("da-DK", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
95
95
|
injectString("de", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
@@ -116,10 +116,12 @@ injectString("tr", "Has additional actions. Use right arrow to access button, le
|
|
|
116
116
|
injectString("zh-Hans", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
117
117
|
injectString("zh-TW", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
118
118
|
injectString("ro-RO", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
|
|
119
|
-
injectString("ar
|
|
119
|
+
injectString("ar", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629. \u0627\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0645\u0646 \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0632\u0631\u060C \u0648\u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0633\u0631 \u0644\u0644\u0639\u0648\u062F\u0629.");
|
|
120
120
|
const checkbox_1 = require("../checkbox/checkbox");
|
|
121
121
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
122
122
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
123
|
+
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
124
|
+
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
123
125
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
124
126
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
125
127
|
const CheckboxListWithAction = ({
|
|
@@ -135,6 +137,7 @@ const CheckboxListWithAction = ({
|
|
|
135
137
|
translate
|
|
136
138
|
} = (0, useLanguage_1.useLanguage)();
|
|
137
139
|
const driveComponentClass = (0, useDriveClassName_1.useDriveClassName)("zen-checkbox-list-with-action");
|
|
140
|
+
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
138
141
|
const listId = (0, react_1.useId)();
|
|
139
142
|
const checkboxId = `${listId}_check_list-item_`;
|
|
140
143
|
const navigationInstructionsId = `${listId}_navigation_instructions`;
|
|
@@ -367,7 +370,7 @@ const CheckboxListWithAction = ({
|
|
|
367
370
|
})), (0, jsx_runtime_1.jsxs)("div", Object.assign({
|
|
368
371
|
className: "zen-checkbox-list-with-action__label-info"
|
|
369
372
|
}, otherArgs, {
|
|
370
|
-
children: [getLabelColorInfo(option.color, option.isWithAction, option.partialChecked, otherArgs), option.isWithAction && (0, jsx_runtime_1.jsx)(
|
|
373
|
+
children: [getLabelColorInfo(option.color, option.isWithAction, option.partialChecked, otherArgs), option.isWithAction && (0, jsx_runtime_1.jsx)(ChevronIcon, {
|
|
371
374
|
size: "large"
|
|
372
375
|
})]
|
|
373
376
|
}))]
|
package/dist/chip/chip.js
CHANGED
|
@@ -34,7 +34,7 @@ injectString("tr", "Clear selection", "Se\xE7imi temizle");
|
|
|
34
34
|
injectString("zh-Hans", "Clear selection", "\u6E05\u9664\u9009\u62E9");
|
|
35
35
|
injectString("zh-TW", "Clear selection", "\u6E05\u9664\u9078\u53D6\u9805\u76EE");
|
|
36
36
|
injectString("ro-RO", "Clear selection", "\u0218terge\u021Bi selec\u021Bia");
|
|
37
|
-
injectString("ar
|
|
37
|
+
injectString("ar", "Clear selection", "\u0645\u0633\u062D \u0627\u0644\u062A\u062D\u062F\u064A\u062F");
|
|
38
38
|
const react_1 = require("react");
|
|
39
39
|
const useDrive_1 = require("../utils/theme/useDrive");
|
|
40
40
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
@@ -37,7 +37,7 @@ injectString("tr", "Column Settings", "S\xFCtun Ayarlar\u0131");
|
|
|
37
37
|
injectString("zh-Hans", "Column Settings", "\u5217\u8BBE\u7F6E");
|
|
38
38
|
injectString("zh-TW", "Column Settings", "\u6B04\u8A2D\u5B9A");
|
|
39
39
|
injectString("ro-RO", "Column Settings", "Set\u0103ri coloane");
|
|
40
|
-
injectString("ar
|
|
40
|
+
injectString("ar", "Column Settings", "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0623\u0639\u0645\u062F\u0629");
|
|
41
41
|
injectString("cs", "Reset to default", "Obnovit v\xFDchoz\xED");
|
|
42
42
|
injectString("da-DK", "Reset to default", "Nulstil til standard");
|
|
43
43
|
injectString("de", "Reset to default", "Auf Standard zur\xFCcksetzen");
|
|
@@ -64,7 +64,7 @@ injectString("tr", "Reset to default", "Varsay\u0131lana s\u0131f\u0131rla");
|
|
|
64
64
|
injectString("zh-Hans", "Reset to default", "\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C");
|
|
65
65
|
injectString("zh-TW", "Reset to default", "\u91CD\u8A2D\u70BA\u9810\u8A2D\u503C");
|
|
66
66
|
injectString("ro-RO", "Reset to default", "Reseta\u021Bi la implicit");
|
|
67
|
-
injectString("ar
|
|
67
|
+
injectString("ar", "Reset to default", "\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0639\u064A\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A");
|
|
68
68
|
const svgIconSize_1 = require("../svgIcon/svgIconSize");
|
|
69
69
|
const textIconButton_1 = require("../textIconButton/textIconButton");
|
|
70
70
|
const iconRefresh_1 = require("../icons/deprecated/iconRefresh");
|
|
@@ -37,7 +37,7 @@ injectString("tr", "Columns", "S\xFCtunlar");
|
|
|
37
37
|
injectString("zh-Hans", "Columns", "\u5217");
|
|
38
38
|
injectString("zh-TW", "Columns", "\u6B04");
|
|
39
39
|
injectString("ro-RO", "Columns", "Coloane");
|
|
40
|
-
injectString("ar
|
|
40
|
+
injectString("ar", "Columns", "\u0627\u0644\u0623\u0639\u0645\u062F\u0629");
|
|
41
41
|
const ColumnsTab = ({
|
|
42
42
|
columns,
|
|
43
43
|
onColumnToggle,
|
|
@@ -38,7 +38,7 @@ injectString("tr", "Additional Properties", "Ek \xD6zellikler");
|
|
|
38
38
|
injectString("zh-Hans", "Additional Properties", "\u5176\u4ED6\u5C5E\u6027");
|
|
39
39
|
injectString("zh-TW", "Additional Properties", "\u5176\u4ED6\u5C6C\u6027");
|
|
40
40
|
injectString("ro-RO", "Additional Properties", "Propriet\u0103\u021Bi suplimentare");
|
|
41
|
-
injectString("ar
|
|
41
|
+
injectString("ar", "Additional Properties", "\u062E\u0635\u0627\u0626\u0635 \u0625\u0636\u0627\u0641\u064A\u0629");
|
|
42
42
|
const ColumnsTabGroup = ({
|
|
43
43
|
columns,
|
|
44
44
|
onColumnToggle
|
|
@@ -7,10 +7,13 @@ const button_1 = require("../../../../button/button");
|
|
|
7
7
|
const iconChevronLeft_1 = require("../../../../icons/iconChevronLeft");
|
|
8
8
|
const iconChevronRight_1 = require("../../../../icons/iconChevronRight");
|
|
9
9
|
const useDrive_1 = require("../../../../utils/theme/useDrive");
|
|
10
|
+
const useDirectionalIcon_1 = require("../../../../utils/localization/useDirectionalIcon");
|
|
10
11
|
const svgIconSize_1 = require("../../../../svgIcon/svgIconSize");
|
|
11
12
|
const ArrowNavButton = ({ value, isHidden, disabled, className, arrowButtonHandler, onMouseDown, onMouseUp }) => {
|
|
12
13
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
13
14
|
const iconSize = isDrive ? (0, svgIconSize_1.driveIconSize)("large") : "large";
|
|
14
|
-
|
|
15
|
+
const LeftIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronLeft_1.IconChevronLeft, iconChevronRight_1.IconChevronRight);
|
|
16
|
+
const RightIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "tertiary-black", className: (0, classNames_1.classNames)(["zen-arrow-nav-button", isHidden ? "zen-arrow-nav-button--invisible" : "", className !== null && className !== void 0 ? className : ""]), "aria-label": value, disabled: disabled, onClick: arrowButtonHandler, "data-action": value, onMouseDown: onMouseDown, onMouseUp: onMouseUp, children: value === "left" ? ((0, jsx_runtime_1.jsx)(LeftIcon, { size: iconSize, className: "zen-arrow-nav-button__icon" })) : ((0, jsx_runtime_1.jsx)(RightIcon, { size: iconSize, className: "zen-arrow-nav-button__icon" })) }));
|
|
15
18
|
};
|
|
16
19
|
exports.ArrowNavButton = ArrowNavButton;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import (reference) "./common.less";
|
|
2
|
+
|
|
3
|
+
// Shared styles for the DataGrid and Table flexible-columns selector popup.
|
|
4
|
+
// Kept in one place so the bundle only emits .zen-columns-list once.
|
|
5
|
+
|
|
6
|
+
// Make the popup a flex column so the list shrinks to min(550px, available viewport
|
|
7
|
+
// space). Without this the list keeps its fixed 550px height and the popup adds its
|
|
8
|
+
// own scrollbar on short viewports, producing a double scrollbar.
|
|
9
|
+
.zen-popup:has(> .zen-columns-list) {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.zen-columns-list {
|
|
15
|
+
.box-sizing();
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-height: (550 / @rem);
|
|
18
|
+
display: flex;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
flex: 1 1 auto;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
// Establish a containing block so SelectList's absolutely-positioned aria-live
|
|
24
|
+
// region is clipped here instead of leaking into the popup's scroll area.
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
&__content {
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
min-height: 0;
|
|
30
|
+
overflow: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__footer {
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
border-block-start: 1px solid var(--borders-general);
|
|
36
|
+
padding: (2 / @rem) (8 / @rem);
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
.zen-columns-list__reset:focus {
|
|
40
|
+
outline: none;
|
|
41
|
+
border: 1px solid var(--borders-form-field--active);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__sub-section {
|
|
46
|
+
border-block-start: 1px solid var(--borders-general);
|
|
47
|
+
padding: (8 / @rem) 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__sub-section:first-child {
|
|
51
|
+
border-block-start: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__title {
|
|
55
|
+
padding: 0 (10 / @rem);
|
|
56
|
+
color: var(--text-secondary);
|
|
57
|
+
.zen-body-label-400();
|
|
58
|
+
}
|
|
59
|
+
}
|