@geotab/zenith 3.11.0-beta.0 → 3.11.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 +3 -26
- package/dist/calendar/calendar.js +4 -7
- package/dist/card/components/title.js +1 -4
- package/dist/card/components/titleLink.js +2 -5
- package/dist/chart/barChart/getDefaultOptions.d.ts +1 -2
- package/dist/chart/barChart/getDefaultOptions.js +2 -5
- package/dist/chart/barChart.js +4 -6
- package/dist/chart/lineChart/getDefaultOptions.d.ts +1 -2
- package/dist/chart/lineChart/getDefaultOptions.js +2 -5
- package/dist/chart/lineChart.js +2 -4
- package/dist/checkboxListWithAction/checkboxListWithAction.js +1 -4
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
- package/dist/commonStyles/pillStyles/pillContent.less +14 -13
- package/dist/commonStyles/pillStyles/pillStyles.less +5 -4
- package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
- package/dist/commonStyles/typography/typography.less +19 -579
- package/dist/controlledPopup/controlledPopup.d.ts +0 -1
- package/dist/controlledPopup/controlledPopup.js +1 -3
- package/dist/dataGrid/cell/cell.d.ts +1 -2
- package/dist/dataGrid/cell/cell.js +2 -2
- package/dist/dataGrid/dataGrid.js +4 -7
- package/dist/dataGrid/listColumn.d.ts +0 -2
- package/dist/dataGrid/row/row.d.ts +1 -2
- package/dist/dataGrid/row/row.js +9 -13
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
- package/dist/dateRangeInner/dateRangeInner.js +2 -5
- package/dist/dateRangeRaw/dateRangeRaw.js +2 -5
- package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
- package/dist/dropdownRaw/dropdownRaw.js +6 -12
- package/dist/fileUpload/components/dropZoneContent.js +100 -100
- package/dist/fileUpload/fileUpload.js +100 -100
- package/dist/filters/components/filtersSearchList.js +1 -4
- package/dist/filtersBar/filtersContainer/filtersContainer.js +61 -62
- package/dist/formStepperButtons/formStepperButtons.js +1 -4
- package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -4
- package/dist/header/headerBack.js +1 -4
- package/dist/icons/iconAlignLeft.js +3 -1
- package/dist/icons/iconAlignmentLeft.js +3 -1
- package/dist/icons/iconAlignmentRight.js +3 -1
- package/dist/icons/iconArrowBottomLeft.js +3 -1
- package/dist/icons/iconArrowBottomRight.js +3 -1
- package/dist/icons/iconArrowLeftPath.js +3 -1
- package/dist/icons/iconArrowRight.js +3 -1
- package/dist/icons/iconArrowRightCircle.js +3 -1
- package/dist/icons/iconArrowRightPath.js +3 -1
- package/dist/icons/iconArrowTopLeft.js +3 -1
- package/dist/icons/iconArrowTopRight.js +3 -1
- package/dist/icons/iconChevronDoubleRight.js +3 -1
- package/dist/icons/iconChevronRight.js +3 -1
- package/dist/icons/iconChevronRightSmall.js +3 -1
- package/dist/icons/iconCornerDownLeft.js +3 -1
- package/dist/icons/iconCornerDownRight.js +3 -1
- package/dist/icons/iconCornerLeftDown.js +3 -1
- package/dist/icons/iconCornerLeftUp.js +3 -1
- package/dist/icons/iconCornerRightDown.js +3 -1
- package/dist/icons/iconCornerRightUp.js +3 -1
- package/dist/icons/iconCornerUpLeft.js +3 -1
- package/dist/icons/iconCornerUpRight.js +3 -1
- package/dist/index.css +2920 -3245
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/lineChartMini/lineChartMini.js +3 -15
- package/dist/list/itemData/itemDataInternal.js +1 -4
- package/dist/list/listItem/listItem.js +1 -4
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +1 -4
- package/dist/menu/components/menuButton.js +1 -4
- package/dist/menu/utils/useMenuItemCore.js +3 -4
- package/dist/nav/navItem/navItem.js +1 -4
- package/dist/pagination/paginationArrow.js +3 -10
- package/dist/radioGroupRaw/radioGroupRaw.js +1 -2
- package/dist/rangeRaw/rangeRaw.js +1 -0
- package/dist/selectList/selectList.helpers.d.ts +1 -1
- package/dist/selectList/selectList.helpers.js +4 -29
- package/dist/selectList/selectList.js +1 -3
- package/dist/selectList/selectList.reducer.js +2 -1
- package/dist/selectList/selectListItem.js +1 -4
- package/dist/sortControl/sortControl.js +4 -59
- package/dist/table/children/useTableChildren.d.ts +1 -1
- package/dist/table/children/useTableChildren.js +3 -3
- package/dist/table/flexible/columnsList.js +2 -4
- package/dist/table/selectable/useSelectableRows.d.ts +0 -8
- package/dist/table/selectable/useSelectableRows.js +6 -14
- package/dist/table/table.js +7 -1
- package/dist/tabs/tabs.js +58 -60
- package/dist/tabs/tabsTestHelper.js +2 -2
- package/dist/timePickerRaw/timePickerRaw.js +1 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +2 -5
- package/dist/utils/localization/translations/ar.json +1 -3
- package/dist/utils/localization/translations/cs.json +5 -9
- package/dist/utils/localization/translations/da-DK.json +5 -9
- package/dist/utils/localization/translations/de.json +5 -9
- package/dist/utils/localization/translations/en.json +1 -5
- package/dist/utils/localization/translations/es.json +5 -9
- package/dist/utils/localization/translations/fi-FI.json +5 -9
- package/dist/utils/localization/translations/fr-FR.json +5 -9
- package/dist/utils/localization/translations/fr.json +5 -9
- package/dist/utils/localization/translations/hu-HU.json +5 -9
- package/dist/utils/localization/translations/id.json +5 -9
- package/dist/utils/localization/translations/it.json +5 -9
- package/dist/utils/localization/translations/ja.json +5 -9
- package/dist/utils/localization/translations/ko-KR.json +5 -9
- package/dist/utils/localization/translations/ms.json +5 -9
- package/dist/utils/localization/translations/nb-NO.json +5 -9
- package/dist/utils/localization/translations/nl.json +5 -9
- package/dist/utils/localization/translations/pl.json +5 -9
- package/dist/utils/localization/translations/pt-BR.json +5 -9
- package/dist/utils/localization/translations/pt-PT.json +5 -9
- package/dist/utils/localization/translations/ro-RO.json +5 -9
- package/dist/utils/localization/translations/sk-SK.json +5 -9
- package/dist/utils/localization/translations/sv.json +5 -9
- package/dist/utils/localization/translations/th.json +5 -9
- package/dist/utils/localization/translations/tr.json +5 -9
- package/dist/utils/localization/translations/zh-Hans.json +5 -9
- package/dist/utils/localization/translations/zh-TW.json +5 -9
- package/dist/utils/positioningUtils/alignments.d.ts +2 -2
- package/dist/utils/positioningUtils/alignments.js +2 -2
- package/dist/utils/positioningUtils/calculatePosition.js +6 -4
- package/esm/calendar/calendar.js +4 -7
- package/esm/card/components/title.js +1 -4
- package/esm/card/components/titleLink.js +2 -5
- package/esm/chart/barChart/getDefaultOptions.d.ts +1 -2
- package/esm/chart/barChart/getDefaultOptions.js +2 -5
- package/esm/chart/barChart.js +4 -6
- package/esm/chart/lineChart/getDefaultOptions.d.ts +1 -2
- package/esm/chart/lineChart/getDefaultOptions.js +2 -5
- package/esm/chart/lineChart.js +2 -4
- package/esm/checkboxListWithAction/checkboxListWithAction.js +1 -4
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
- package/esm/controlledPopup/controlledPopup.d.ts +0 -1
- package/esm/controlledPopup/controlledPopup.js +1 -3
- package/esm/dataGrid/cell/cell.d.ts +1 -2
- package/esm/dataGrid/cell/cell.js +2 -2
- package/esm/dataGrid/dataGrid.js +4 -7
- package/esm/dataGrid/listColumn.d.ts +0 -2
- package/esm/dataGrid/row/row.d.ts +1 -2
- package/esm/dataGrid/row/row.js +9 -13
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
- package/esm/dateRangeInner/dateRangeInner.js +2 -5
- package/esm/dateRangeRaw/dateRangeRaw.js +2 -5
- package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
- package/esm/dropdownRaw/dropdownRaw.js +6 -12
- package/esm/fileUpload/components/dropZoneContent.js +100 -100
- package/esm/fileUpload/fileUpload.js +100 -100
- package/esm/filters/components/filtersSearchList.js +1 -4
- package/esm/filtersBar/filtersContainer/filtersContainer.js +61 -62
- package/esm/formStepperButtons/formStepperButtons.js +1 -4
- package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -4
- package/esm/header/headerBack.js +1 -4
- package/esm/icons/iconAlignLeft.js +3 -1
- package/esm/icons/iconAlignmentLeft.js +3 -1
- package/esm/icons/iconAlignmentRight.js +3 -1
- package/esm/icons/iconArrowBottomLeft.js +3 -1
- package/esm/icons/iconArrowBottomRight.js +3 -1
- package/esm/icons/iconArrowLeftPath.js +3 -1
- package/esm/icons/iconArrowRight.js +3 -1
- package/esm/icons/iconArrowRightCircle.js +3 -1
- package/esm/icons/iconArrowRightPath.js +3 -1
- package/esm/icons/iconArrowTopLeft.js +3 -1
- package/esm/icons/iconArrowTopRight.js +3 -1
- package/esm/icons/iconChevronDoubleRight.js +3 -1
- package/esm/icons/iconChevronRight.js +3 -1
- package/esm/icons/iconChevronRightSmall.js +3 -1
- package/esm/icons/iconCornerDownLeft.js +3 -1
- package/esm/icons/iconCornerDownRight.js +3 -1
- package/esm/icons/iconCornerLeftDown.js +3 -1
- package/esm/icons/iconCornerLeftUp.js +3 -1
- package/esm/icons/iconCornerRightDown.js +3 -1
- package/esm/icons/iconCornerRightUp.js +3 -1
- package/esm/icons/iconCornerUpLeft.js +3 -1
- package/esm/icons/iconCornerUpRight.js +3 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/lineChartMini/lineChartMini.js +3 -15
- package/esm/list/itemData/itemDataInternal.js +1 -4
- package/esm/list/listItem/listItem.js +1 -4
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +1 -4
- package/esm/menu/components/menuButton.js +1 -4
- package/esm/menu/utils/useMenuItemCore.js +3 -4
- package/esm/nav/navItem/navItem.js +1 -4
- package/esm/pagination/paginationArrow.js +3 -10
- package/esm/radioGroupRaw/radioGroupRaw.js +1 -2
- package/esm/rangeRaw/rangeRaw.js +1 -0
- package/esm/selectList/selectList.helpers.d.ts +1 -1
- package/esm/selectList/selectList.helpers.js +4 -29
- package/esm/selectList/selectList.js +1 -3
- package/esm/selectList/selectList.reducer.js +2 -1
- package/esm/selectList/selectListItem.js +1 -4
- package/esm/sortControl/sortControl.js +4 -59
- package/esm/table/children/useTableChildren.d.ts +1 -1
- package/esm/table/children/useTableChildren.js +3 -3
- package/esm/table/flexible/columnsList.js +2 -4
- package/esm/table/selectable/useSelectableRows.d.ts +0 -8
- package/esm/table/selectable/useSelectableRows.js +6 -14
- package/esm/table/table.js +7 -1
- package/esm/tabs/tabs.js +58 -60
- package/esm/tabs/tabsTestHelper.js +2 -2
- package/esm/timePickerRaw/timePickerRaw.js +1 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +2 -5
- package/esm/utils/localization/translations/ar.json +1 -3
- package/esm/utils/localization/translations/cs.json +5 -9
- package/esm/utils/localization/translations/da-DK.json +5 -9
- package/esm/utils/localization/translations/de.json +5 -9
- package/esm/utils/localization/translations/en.json +1 -5
- package/esm/utils/localization/translations/es.json +5 -9
- package/esm/utils/localization/translations/fi-FI.json +5 -9
- package/esm/utils/localization/translations/fr-FR.json +5 -9
- package/esm/utils/localization/translations/fr.json +5 -9
- package/esm/utils/localization/translations/hu-HU.json +5 -9
- package/esm/utils/localization/translations/id.json +5 -9
- package/esm/utils/localization/translations/it.json +5 -9
- package/esm/utils/localization/translations/ja.json +5 -9
- package/esm/utils/localization/translations/ko-KR.json +5 -9
- package/esm/utils/localization/translations/ms.json +5 -9
- package/esm/utils/localization/translations/nb-NO.json +5 -9
- package/esm/utils/localization/translations/nl.json +5 -9
- package/esm/utils/localization/translations/pl.json +5 -9
- package/esm/utils/localization/translations/pt-BR.json +5 -9
- package/esm/utils/localization/translations/pt-PT.json +5 -9
- package/esm/utils/localization/translations/ro-RO.json +5 -9
- package/esm/utils/localization/translations/sk-SK.json +5 -9
- package/esm/utils/localization/translations/sv.json +5 -9
- package/esm/utils/localization/translations/th.json +5 -9
- package/esm/utils/localization/translations/tr.json +5 -9
- package/esm/utils/localization/translations/zh-Hans.json +5 -9
- package/esm/utils/localization/translations/zh-TW.json +5 -9
- package/esm/utils/positioningUtils/alignments.d.ts +2 -2
- package/esm/utils/positioningUtils/alignments.js +2 -2
- package/esm/utils/positioningUtils/calculatePosition.js +6 -4
- package/package.json +122 -123
- package/dist/utils/localization/useDirectionalIcon.d.ts +0 -3
- package/dist/utils/localization/useDirectionalIcon.js +0 -9
- package/esm/testHelpers/mockAbsoluteAlignment.d.ts +0 -1
- package/esm/testHelpers/mockAbsoluteAlignment.js +0 -10
- package/esm/utils/localization/useDirectionalIcon.d.ts +0 -3
- package/esm/utils/localization/useDirectionalIcon.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -775,7 +775,6 @@ export { getNewFocusableItem, getFirstFocusableItem } from "./utils/keyboardHelp
|
|
|
775
775
|
export { LanguageProvider } from "./utils/localization/languageProvider";
|
|
776
776
|
export { dictionaries, injectString } from "./utils/localization/translationsDictionary";
|
|
777
777
|
export { useDirection } from "./utils/localization/useDirection";
|
|
778
|
-
export { useDirectionalIcon } from "./utils/localization/useDirectionalIcon";
|
|
779
778
|
export { useLanguage } from "./utils/localization/useLanguage";
|
|
780
779
|
export { ThemeDark } from "./utils/theme/themeDark";
|
|
781
780
|
export { ThemeDrive } from "./utils/theme/themeDrive";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.IconShield3 = exports.IconShield2 = exports.IconShield = exports.IconSha
|
|
|
17
17
|
exports.IconVolumeHalf = exports.IconVolumeFull = exports.IconVolumeDown = exports.IconVoice = exports.IconVisitPage = exports.IconVideoReplay = exports.IconVideo2 = exports.IconVideo = exports.IconUsbHub = exports.IconUsb = exports.IconUpload = exports.IconUnlocked = exports.IconUndock = exports.IconUndo2 = exports.IconUndo = exports.IconUnderline = exports.IconUmbrella = exports.IconTrailer = exports.IconThumbsUp = exports.IconThumbsDown = exports.IconThermometer = exports.IconThermograph = exports.IconTextSize = exports.IconTelevision2 = exports.IconTelevision = exports.IconTarget3 = exports.IconTarget2 = exports.IconTarget = exports.IconTachographTimeCard = exports.IconTachograph = exports.IconTable = exports.IconSupport = exports.IconSun = exports.IconStrikeThrough = exports.IconStore = exports.IconStorage = exports.IconStopwatch = exports.IconStarFilled = exports.IconStarAi = exports.IconStar = exports.IconSquare = exports.IconSpeaker = exports.IconSortVertical = exports.IconSortHorizontal = exports.IconSort2Vertical = exports.IconSort2Horizontal = exports.IconSmiley = exports.IconSign = exports.IconSidebar = exports.IconShield4 = void 0;
|
|
18
18
|
exports.isButton = exports.findPrevFocusable = exports.findNextFocusable = exports.findLastFocusable = exports.findFirstFocusable = exports.Menu = exports.ControlledMenu = exports.isDragNotClick = exports.changeOrder = exports.ListItem = exports.List = exports.ItemData = exports.ItemCompact = exports.LineChartMini = exports.getDefaultDatasetStyle = exports.htmlLegendPlugin = exports.LEGEND_PLUGIN_ID = exports.LineChart = exports.useLayoutSize = exports.LayoutFullScreenProvider = exports.useLayoutFullScreen = exports.LayoutFullScreenElementProvider = exports.useLayoutFullScreenElement = exports.Layout = exports.ImageTapToUpload = exports.ImageNothingFound = exports.ImageNoMatchingAssets = exports.ImageLooking = exports.ImageCloudUpload = exports.ImageAdjustFilter = exports.IconZoom2 = exports.IconZoom = exports.IconZone = exports.IconYen = exports.IconWrite = exports.IconWrench = exports.IconWorld = exports.IconWorkday = exports.IconWifi2 = exports.IconWifi = exports.IconWhisper = exports.IconWebcam = exports.IconWatch2 = exports.IconWatch = exports.IconWarning = exports.IconWallet1 = exports.IconWallet = exports.IconVolumeOn = exports.IconVolumeOff = exports.IconVolumeMinimum = void 0;
|
|
19
19
|
exports.SummaryTileBarDisplayName = exports.SummaryTileBar = exports.getTypeClassName = exports.SummaryTileTrigger = exports.SummaryTile = exports.SummaryTileDisplayName = exports.SummaryTileSize = exports.SummaryTileType = exports.Summary = exports.Summaries = exports.Stepper = exports.SortControl = exports.SortDirections = exports.Skeleton = exports.LazyContent = exports.SidePanel = exports.CUSTOM_POPUP_COMPONENT_CLASSNAME = exports.SidePanelCloseReason = exports.isChildPopup = exports.SelectField = exports.Select = exports.SearchInput = exports.Range = exports.RadioGroup = exports.Radio = exports.ProgressBar = exports.ProgreesBarSize = exports.ProgressBarType = exports.PrimaryIcon = exports.Popup = exports.PillExpandable = exports.Pill = exports.PaginationType = exports.Pagination = exports.PageLayout = exports.PageContentLayout = exports.PageHeaderMenu = exports.PageHeaderMenuDisplayName = exports.PageHeaderButton = exports.PageHeaderButtonDisplayName = exports.PageHeader = exports.PageHeaderDisplayName = exports.Notification = exports.getPredefinedFocusableItem = exports.DialogContentNew = exports.Modal = exports.MobileSheet = exports.MiniTabs = exports.MiniTabsSize = exports.isLink = void 0;
|
|
20
|
-
exports.Waiting = exports.UserFormatProvider = exports.useDrive = exports.ThemeProvider = exports.ThemeDrive = exports.ThemeDark = exports.useLanguage = exports.
|
|
20
|
+
exports.Waiting = exports.UserFormatProvider = exports.useDrive = exports.ThemeProvider = exports.ThemeDrive = exports.ThemeDark = exports.useLanguage = exports.useDirection = exports.injectString = exports.dictionaries = exports.LanguageProvider = exports.getFirstFocusableItem = exports.getNewFocusableItem = exports.HeaderButtonsProvider = exports.AbortablePromise = exports.Tooltip = exports.removeArrowClasses = exports.calculateArrowPosition = exports.ToggleButtonRaw = exports.ToggleButton = exports.Toast = exports.useToast = exports.TimePicker = exports.TextareaRaw = exports.Textarea = exports.TextInputRaw = exports.TextInput = exports.TextIconButton = exports.ButtonIconPosition = exports.Tabs = exports.TabsDisplayName = exports.ActionLinkColumn = exports.CheckboxColumn = exports.MainColumn = exports.ActionsColumn = exports.getSortableValue = exports.ColumnSortDirection = exports.getEmptySelection = exports.Table = exports.useNestedRows = exports.NestedData = exports.TabBarContent = exports.TabBar = void 0;
|
|
21
21
|
/* eslint-disable max-len */
|
|
22
22
|
var absolute_1 = require("./absolute/absolute");
|
|
23
23
|
Object.defineProperty(exports, "Absolute", { enumerable: true, get: function () { return absolute_1.Absolute; } });
|
|
@@ -1665,8 +1665,6 @@ Object.defineProperty(exports, "dictionaries", { enumerable: true, get: function
|
|
|
1665
1665
|
Object.defineProperty(exports, "injectString", { enumerable: true, get: function () { return translationsDictionary_1.injectString; } });
|
|
1666
1666
|
var useDirection_1 = require("./utils/localization/useDirection");
|
|
1667
1667
|
Object.defineProperty(exports, "useDirection", { enumerable: true, get: function () { return useDirection_1.useDirection; } });
|
|
1668
|
-
var useDirectionalIcon_1 = require("./utils/localization/useDirectionalIcon");
|
|
1669
|
-
Object.defineProperty(exports, "useDirectionalIcon", { enumerable: true, get: function () { return useDirectionalIcon_1.useDirectionalIcon; } });
|
|
1670
1668
|
var useLanguage_1 = require("./utils/localization/useLanguage");
|
|
1671
1669
|
Object.defineProperty(exports, "useLanguage", { enumerable: true, get: function () { return useLanguage_1.useLanguage; } });
|
|
1672
1670
|
var themeDark_1 = require("./utils/theme/themeDark");
|
|
@@ -21,7 +21,6 @@ const utils_2 = require("../lineChart/utils");
|
|
|
21
21
|
const useDrive_1 = require("../utils/theme/useDrive");
|
|
22
22
|
const useMobile_1 = require("../commonHelpers/hooks/useMobile");
|
|
23
23
|
const themeContext_1 = require("../utils/theme/themeContext");
|
|
24
|
-
const useIsRTL_1 = require("../utils/localization/useIsRTL");
|
|
25
24
|
const accessibleChart_1 = require("../chart/accessibleChart/accessibleChart");
|
|
26
25
|
auto_1.Chart.defaults.font = {
|
|
27
26
|
family: "Roboto",
|
|
@@ -34,26 +33,17 @@ const defaultGridStyle = {
|
|
|
34
33
|
const defaultGridBorderStyle = {
|
|
35
34
|
display: false
|
|
36
35
|
};
|
|
37
|
-
const
|
|
36
|
+
const defaultOptions = {
|
|
38
37
|
responsive: true,
|
|
39
38
|
maintainAspectRatio: false,
|
|
40
|
-
layout: {
|
|
41
|
-
padding: {
|
|
42
|
-
left: isRtl ? 16 : 0,
|
|
43
|
-
right: isRtl ? 0 : 16
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
39
|
scales: {
|
|
47
40
|
x: {
|
|
48
41
|
grid: defaultGridStyle,
|
|
49
|
-
border: defaultGridBorderStyle
|
|
50
|
-
reverse: isRtl,
|
|
51
|
-
offset: false
|
|
42
|
+
border: defaultGridBorderStyle
|
|
52
43
|
},
|
|
53
44
|
y: {
|
|
54
45
|
grid: defaultGridStyle,
|
|
55
46
|
border: defaultGridBorderStyle,
|
|
56
|
-
position: isRtl ? "right" : "left",
|
|
57
47
|
ticks: {
|
|
58
48
|
display: false
|
|
59
49
|
}
|
|
@@ -67,7 +57,7 @@ const getDefaultOptions = (isRtl) => ({
|
|
|
67
57
|
enabled: false
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
|
-
}
|
|
60
|
+
};
|
|
71
61
|
const LineChartMini = (_a) => {
|
|
72
62
|
var _b, _c;
|
|
73
63
|
var { data, options = {} } = _a, rest = __rest(_a, ["data", "options"]);
|
|
@@ -75,7 +65,6 @@ const LineChartMini = (_a) => {
|
|
|
75
65
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
76
66
|
const memoizedFontSize = (0, react_1.useMemo)(() => (isDrive ? (isMobile ? 14 : 16) : 12), [isDrive, isMobile]);
|
|
77
67
|
const { dark } = (0, react_1.useContext)(themeContext_1.themeContext);
|
|
78
|
-
const isRtl = (0, useIsRTL_1.useIsRTL)();
|
|
79
68
|
(0, react_1.useEffect)(() => {
|
|
80
69
|
auto_1.Chart.defaults.font = {
|
|
81
70
|
family: "Roboto",
|
|
@@ -84,7 +73,6 @@ const LineChartMini = (_a) => {
|
|
|
84
73
|
auto_1.Chart.defaults.color = dark ? "#FFFFFF" : "#1F2833";
|
|
85
74
|
}, [memoizedFontSize, dark]);
|
|
86
75
|
const adaptedData = Object.assign({}, data);
|
|
87
|
-
const defaultOptions = (0, react_1.useMemo)(() => getDefaultOptions(isRtl), [isRtl]);
|
|
88
76
|
const adaptedOptions = (0, utils_1.deepMerge)(defaultOptions, options);
|
|
89
77
|
if (((_b = adaptedData.labels) === null || _b === void 0 ? void 0 : _b.length) === 2) {
|
|
90
78
|
const maxLabelsCount = Math.max(...data.datasets.map(ds => ds.data.length));
|
|
@@ -14,8 +14,6 @@ const useLanguage_1 = require("../../utils/localization/useLanguage");
|
|
|
14
14
|
const button_1 = require("../../button/button");
|
|
15
15
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
16
16
|
const iconChevronRight_1 = require("../../icons/iconChevronRight");
|
|
17
|
-
const iconChevronLeft_1 = require("../../icons/iconChevronLeft");
|
|
18
|
-
const useDirectionalIcon_1 = require("../../utils/localization/useDirectionalIcon");
|
|
19
17
|
const iconDotVertical_1 = require("../../icons/iconDotVertical");
|
|
20
18
|
const menu_1 = require("../../menu/menu");
|
|
21
19
|
const isActiveElement_1 = require("../utils/isActiveElement");
|
|
@@ -97,7 +95,6 @@ const ItemDataInternalInner = ({
|
|
|
97
95
|
const {
|
|
98
96
|
translate
|
|
99
97
|
} = (0, useLanguage_1.useLanguage)();
|
|
100
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
101
98
|
const driveClassName = (0, react_1.useMemo)(() => isDrive ? isMobile ? "zen-item-data-drive" : "zen-item-data-drive-tablet" : "", [isDrive, isMobile]);
|
|
102
99
|
const mobileClassName = (0, useMobileClassName_1.useMobileClassName)("zen-item-data");
|
|
103
100
|
const aceClassName = (0, react_1.useMemo)(() => isTall ? "zen-item-data--tall" : "", [isTall]);
|
|
@@ -205,7 +202,7 @@ const ItemDataInternalInner = ({
|
|
|
205
202
|
onClick: onClick,
|
|
206
203
|
title: translate("Open"),
|
|
207
204
|
"aria-label": translate("Open"),
|
|
208
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
205
|
+
children: (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, {
|
|
209
206
|
size: "large",
|
|
210
207
|
className: "zen-item-data__click-icon"
|
|
211
208
|
})
|
|
@@ -74,8 +74,6 @@ const useDriveClassName_1 = require("../../utils/theme/useDriveClassName");
|
|
|
74
74
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
75
75
|
const useIconSize_1 = require("../../utils/theme/useIconSize");
|
|
76
76
|
const iconChevronRight_1 = require("../../icons/iconChevronRight");
|
|
77
|
-
const iconChevronLeft_1 = require("../../icons/iconChevronLeft");
|
|
78
|
-
const useDirectionalIcon_1 = require("../../utils/localization/useDirectionalIcon");
|
|
79
77
|
const isActiveElement_1 = require("../utils/isActiveElement");
|
|
80
78
|
const useMobileClassName_1 = require("../../utils/theme/useMobileClassName");
|
|
81
79
|
const ListItem = ({
|
|
@@ -99,7 +97,6 @@ const ListItem = ({
|
|
|
99
97
|
translate
|
|
100
98
|
} = (0, useLanguage_1.useLanguage)();
|
|
101
99
|
const itemRef = (0, react_1.useRef)(null);
|
|
102
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
103
100
|
const renderActions = (0, react_1.useCallback)(() => {
|
|
104
101
|
if (!actions || actions.length === 0) {
|
|
105
102
|
return null;
|
|
@@ -212,7 +209,7 @@ const ListItem = ({
|
|
|
212
209
|
link: link,
|
|
213
210
|
target: target,
|
|
214
211
|
title: translate("View details"),
|
|
215
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
212
|
+
children: (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, {
|
|
216
213
|
size: isMobile ? "huge" : "large",
|
|
217
214
|
className: "zen-list-item__click-icon"
|
|
218
215
|
})
|
|
@@ -20,12 +20,9 @@ const generateId_1 = require("../../../commonHelpers/generateId");
|
|
|
20
20
|
const pathProvider_1 = require("../../contexts/pathProvider");
|
|
21
21
|
const mobileSheet_1 = require("../../../mobileSheet/mobileSheet");
|
|
22
22
|
const menuSeparator_1 = require("../menuSeparator");
|
|
23
|
-
const iconArrowRight_1 = require("../../../icons/iconArrowRight");
|
|
24
|
-
const useDirectionalIcon_1 = require("../../../utils/localization/useDirectionalIcon");
|
|
25
23
|
const ControlledMenuListBase = (0, react_1.forwardRef)(({ children, setIsOpen, isOpen, className = "", listClassName = "", ariaLabel, defaultTooltipAlignment, defaultAlignment, direction = "vertical" }, ref) => {
|
|
26
24
|
const [deviceType, setDeviceType] = (0, react_1.useState)(deviceType_1.DeviceType.Desktop);
|
|
27
25
|
const isMobile = deviceType === deviceType_1.DeviceType.Mobile;
|
|
28
|
-
const BackArrowIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconArrowLeft_1.IconArrowLeft, iconArrowRight_1.IconArrowRight);
|
|
29
26
|
(0, useDeviceType_1.useDeviceType)(setDeviceType);
|
|
30
27
|
// True when mounted inside ControlledMenu, which injects setIsOpen and isOpen.
|
|
31
28
|
// Standalone usage leaves both undefined.
|
|
@@ -116,7 +113,7 @@ const ControlledMenuListBase = (0, react_1.forwardRef)(({ children, setIsOpen, i
|
|
|
116
113
|
className,
|
|
117
114
|
listClassName,
|
|
118
115
|
applyDirection && direction === "horizontal" ? "zen-menu-item--horizontal" : ""
|
|
119
|
-
]), children: [backParent ? ((0, jsx_runtime_1.jsx)(menuButton_1.MenuButton, { id: "root", name: (0, getItemLabel_1.getItemLabel)(backParent), icon:
|
|
116
|
+
]), children: [backParent ? ((0, jsx_runtime_1.jsx)(menuButton_1.MenuButton, { id: "root", name: (0, getItemLabel_1.getItemLabel)(backParent), icon: iconArrowLeft_1.IconArrowLeft, onClick: closeBranch, hasChildren: false, disabled: false }, "root")) : null, listContent] }) }));
|
|
120
117
|
const { sheetContent, sheetParent, sheetPathLength, sheetParentName } = (0, useLastValidSheet_1.useLastValidSheet)(nestedContent, nestedParent, path, children);
|
|
121
118
|
return ((0, jsx_runtime_1.jsxs)(pathProvider_1.PathProvider, { path: path, onOpenBranch: onOpenBranch, closeBranch: closeBranch, navigatedViaKeyboardRef: navigatedViaKeyboardRef, keyboardActiveRef: keyboardActiveRef, children: [renderList(content, parent, divRefCallback), !isEmbedded && isMobile && ((0, jsx_runtime_1.jsxs)(mobileSheet_1.MobileSheet, { label: sheetParentName, isOpen: path.length > 0, triggerRef: internalRef, onHidePanel: closeAll, onCloseClick: closeAll, children: [(0, jsx_runtime_1.jsx)(mobileSheet_1.MobileSheet.Title, { children: sheetParentName }), (0, jsx_runtime_1.jsx)(mobileSheet_1.MobileSheet.Content, { children: renderList(sheetContent, sheetPathLength > 1 ? sheetParent : null, undefined, false, onKeyDownVertical) })] }))] }));
|
|
122
119
|
});
|
|
@@ -5,8 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
7
7
|
const iconChevronRight_1 = require("../../icons/iconChevronRight");
|
|
8
|
-
const iconChevronLeft_1 = require("../../icons/iconChevronLeft");
|
|
9
|
-
const useDirectionalIcon_1 = require("../../utils/localization/useDirectionalIcon");
|
|
10
8
|
const useDriveClassName_1 = require("../../utils/theme/useDriveClassName");
|
|
11
9
|
const useDrive_1 = require("../../utils/theme/useDrive");
|
|
12
10
|
const getMenuButtonState_1 = require("../utils/getMenuButtonState");
|
|
@@ -16,7 +14,6 @@ const MenuButton = ({ id, onClick, hasChildren, disabled, icon, name, link, targ
|
|
|
16
14
|
const { hasState, isActive } = (0, getMenuButtonState_1.getMenuButtonState)(active, disabled);
|
|
17
15
|
const driveMenuButtonActionClasses = (0, useDriveClassName_1.useDriveClassName)("zen-menu-button__action");
|
|
18
16
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
19
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
20
17
|
const linkEvents = (0, react_1.useMemo)(() => ({
|
|
21
18
|
onKeyDown: e => {
|
|
22
19
|
if (e.key === " ") {
|
|
@@ -52,7 +49,7 @@ const MenuButton = ({ id, onClick, hasChildren, disabled, icon, name, link, targ
|
|
|
52
49
|
(0, react_1.createElement)(icon, {
|
|
53
50
|
size: isDrive ? "huge" : "large",
|
|
54
51
|
className: (0, classNames_1.classNames)(["zen-caption__pre-content", "zen-menu-button__icon"])
|
|
55
|
-
}), (0, jsx_runtime_1.jsx)("span", { className: "zen-menu-button__action-text", children: name }), !!hasChildren && ((0, jsx_runtime_1.jsx)(
|
|
52
|
+
}), (0, jsx_runtime_1.jsx)("span", { className: "zen-menu-button__action-text", children: name }), !!hasChildren && ((0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, { size: isDrive ? "huge" : "large", className: (0, classNames_1.classNames)(["zen-caption__pre-content", "zen-menu-button__more-icon"]) }))] }));
|
|
56
53
|
const linkTemplate = ((0, jsx_runtime_1.jsxs)("a", Object.assign({ "data-id": id, role: "menuitem", className: (0, classNames_1.classNames)([
|
|
57
54
|
"zen-menu-button__action",
|
|
58
55
|
"zen-caption",
|
|
@@ -6,16 +6,15 @@ const pathContext_1 = require("../contexts/pathContext");
|
|
|
6
6
|
const headerContext_1 = require("../../header/headerContext");
|
|
7
7
|
const buildMenuContent_1 = require("./buildMenuContent");
|
|
8
8
|
const useMenuItemKeyboardNav_1 = require("./useMenuItemKeyboardNav");
|
|
9
|
-
const
|
|
9
|
+
const useRTLAlignment_1 = require("../../utils/localization/useRTLAlignment");
|
|
10
10
|
/**
|
|
11
11
|
* Core menu item logic shared between MenuItem and createMenuItem.
|
|
12
12
|
* Consolidates context access, state computation, and callback memoization.
|
|
13
13
|
*/
|
|
14
14
|
const useMenuItemCore = ({ id, children, className, alignment, isMobile = false, setIsOpen, onClick, onOpenChange }) => {
|
|
15
15
|
const alignmentContext = (0, react_1.useContext)(headerContext_1.MenuAlignmentContext);
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const contentAlignment = alignment || alignmentContext.alignment || defaultAlignment;
|
|
16
|
+
const rawAlignment = alignment || alignmentContext.alignment || "right-top";
|
|
17
|
+
const contentAlignment = (0, useRTLAlignment_1.useRTLAlignment)(rawAlignment);
|
|
19
18
|
const { path, onOpenBranch, closeBranch, navigatedViaKeyboardRef } = (0, react_1.useContext)(pathContext_1.PathContext);
|
|
20
19
|
const ref = (0, react_1.useRef)(null);
|
|
21
20
|
const content = (0, react_1.useMemo)(() => (0, buildMenuContent_1.buildMenuContent)(children, isMobile, setIsOpen, className), [children, isMobile, setIsOpen, className]);
|
|
@@ -17,9 +17,7 @@ const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
|
17
17
|
const react_1 = require("react");
|
|
18
18
|
const iconBeta_1 = require("../../icons/iconBeta");
|
|
19
19
|
const iconChevronRight_1 = require("../../icons/iconChevronRight");
|
|
20
|
-
const iconChevronLeft_1 = require("../../icons/iconChevronLeft");
|
|
21
20
|
const iconOpen2_1 = require("../../icons/iconOpen2");
|
|
22
|
-
const useDirectionalIcon_1 = require("../../utils/localization/useDirectionalIcon");
|
|
23
21
|
const tooltip_1 = require("../../tooltip/tooltip");
|
|
24
22
|
const controlledMenu_1 = require("../../menu/controlledMenu");
|
|
25
23
|
const nav_context_1 = require("../context/nav.context");
|
|
@@ -31,12 +29,11 @@ const defaultTooltipAlignment = "right";
|
|
|
31
29
|
const isLinkNavItem = (item) => !!item.link;
|
|
32
30
|
const NavItemContent = ({ primaryIcon, secondaryIcon, isBeta, counter, collapsed, hasSubmenu, iconClass, level = 1, children }) => {
|
|
33
31
|
const primaryIconRef = (0, react_1.useRef)(null);
|
|
34
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
35
32
|
const PrimaryIconComponent = typeof primaryIcon === "function" ? primaryIcon : null;
|
|
36
33
|
const SecondaryIconComponent = secondaryIcon;
|
|
37
34
|
const iconSize = level > 1 ? SUBMENU_ICON_SIZE : ICON_SIZE;
|
|
38
35
|
const primaryIconComponent = primaryIcon ? ((0, jsx_runtime_1.jsx)("span", { ref: primaryIconRef, className: (0, classNames_1.classNames)(["zen-nav-item__icon", counter ? "zen-nav-item__icon--with-counter" : "", iconClass || ""]), children: PrimaryIconComponent ? (0, jsx_runtime_1.jsx)(PrimaryIconComponent, { size: iconSize }) : primaryIcon })) : null;
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-left", children: [isBeta && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__beta", children: (0, jsx_runtime_1.jsx)(iconBeta_1.IconBeta, { size: "big" }) })) : null, primaryIconComponent, SecondaryIconComponent && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__icon", children: (0, jsx_runtime_1.jsx)(SecondaryIconComponent, { size: iconSize }) })) : null, !collapsed ? (0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__title", children: children }) : null] }), !collapsed && (counter || hasSubmenu) ? ((0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-right", children: [counter ? (0, jsx_runtime_1.jsx)("div", { className: "zen-nav-item__counter", children: counter }) : null, hasSubmenu ? (0, jsx_runtime_1.jsx)(
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-left", children: [isBeta && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__beta", children: (0, jsx_runtime_1.jsx)(iconBeta_1.IconBeta, { size: "big" }) })) : null, primaryIconComponent, SecondaryIconComponent && !collapsed ? ((0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__icon", children: (0, jsx_runtime_1.jsx)(SecondaryIconComponent, { size: iconSize }) })) : null, !collapsed ? (0, jsx_runtime_1.jsx)("span", { className: "zen-nav-item__title", children: children }) : null] }), !collapsed && (counter || hasSubmenu) ? ((0, jsx_runtime_1.jsxs)("div", { className: "zen-nav-item__content-right", children: [counter ? (0, jsx_runtime_1.jsx)("div", { className: "zen-nav-item__counter", children: counter }) : null, hasSubmenu ? (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, { className: "zen-nav-item__title-icon", size: iconSize }) : null] })) : null] }));
|
|
40
37
|
};
|
|
41
38
|
const NavItemAction = ({ actionIcon, actionIconTitle = "", onActionIconClick, collapsed, isMenuItem, level = 1 }) => {
|
|
42
39
|
const ActionIconComponent = actionIcon;
|
|
@@ -8,16 +8,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
});
|
|
9
9
|
exports.TRANSLATIONS = exports.PaginationArrow = void 0;
|
|
10
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
11
12
|
const svgIconSize_1 = require("../svgIcon/svgIconSize");
|
|
12
13
|
const paginationType_1 = require("./paginationType");
|
|
13
14
|
const textIconButton_1 = require("../textIconButton/textIconButton");
|
|
14
15
|
const buttonType_1 = require("../button/buttonType");
|
|
15
16
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
16
17
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
17
|
-
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
18
18
|
const iconArrowRight_1 = require("../icons/iconArrowRight");
|
|
19
|
-
const iconArrowLeft_1 = require("../icons/iconArrowLeft");
|
|
20
|
-
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
21
19
|
injectString("cs", "Previous page", "P\u0159edchoz\xED str\xE1nka");
|
|
22
20
|
injectString("da-DK", "Previous page", "Forrige side");
|
|
23
21
|
injectString("de", "Previous page", "Vorherige Seite");
|
|
@@ -81,11 +79,6 @@ const PaginationArrow = ({
|
|
|
81
79
|
const {
|
|
82
80
|
translate
|
|
83
81
|
} = (0, useLanguage_1.useLanguage)();
|
|
84
|
-
const isPrevious = value === "previous";
|
|
85
|
-
const [ltrCompact, rtlCompact] = isPrevious ? [iconChevronLeft_1.IconChevronLeft, iconChevronRight_1.IconChevronRight] : [iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft];
|
|
86
|
-
const [ltrNormal, rtlNormal] = isPrevious ? [iconArrowLeft_1.IconArrowLeft, iconArrowRight_1.IconArrowRight] : [iconArrowRight_1.IconArrowRight, iconArrowLeft_1.IconArrowLeft];
|
|
87
|
-
const CompactIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(ltrCompact, rtlCompact);
|
|
88
|
-
const NormalIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(ltrNormal, rtlNormal);
|
|
89
82
|
const previousButtonTitle = translate("Previous page");
|
|
90
83
|
const nextButtonTitle = translate("Next page");
|
|
91
84
|
const buttonTitle = value === "next" ? nextButtonTitle : previousButtonTitle;
|
|
@@ -97,10 +90,10 @@ const PaginationArrow = ({
|
|
|
97
90
|
disabled: disabled,
|
|
98
91
|
onClick: arrowButtonHandler,
|
|
99
92
|
type: type === paginationType_1.PaginationType.Compact ? buttonType_1.ButtonType.TertiaryBlack : buttonType_1.ButtonType.Secondary,
|
|
100
|
-
icon: type === paginationType_1.PaginationType.Compact ?
|
|
93
|
+
icon: type === paginationType_1.PaginationType.Compact ? iconChevronRight_1.IconChevronRight : iconArrowRight_1.IconArrowRight,
|
|
101
94
|
iconSize: type === paginationType_1.PaginationType.Compact ? svgIconSize_1.SvgIconSize.Big : svgIconSize_1.SvgIconSize.Large,
|
|
102
95
|
iconPosition: textIconButton_1.ButtonIconPosition.Start,
|
|
103
|
-
iconClasses: "zen-pagination__arrow-navigation-button-icon"
|
|
96
|
+
iconClasses: (0, classNames_1.classNames)(["zen-pagination__arrow-navigation-button-icon", value === "previous" ? "zen-pagination__arrow-navigation-button-icon--rotate" : ""])
|
|
104
97
|
});
|
|
105
98
|
};
|
|
106
99
|
exports.PaginationArrow = PaginationArrow;
|
|
@@ -89,8 +89,7 @@ const RadioGroupRaw = (props) => {
|
|
|
89
89
|
"zen-radio-group__item",
|
|
90
90
|
wrappedInLabel ? "zen-radio-group__item--no-paddings" : "",
|
|
91
91
|
type === "interactive" ? "zen-radio--interactive" : "",
|
|
92
|
-
size === "small" ? "zen-radio-group__item--small" : ""
|
|
93
|
-
direction === "horizontal" ? "zen-radio--align-start" : ""
|
|
92
|
+
size === "small" ? "zen-radio-group__item--small" : ""
|
|
94
93
|
]), key: ind, checked: item.value === value, disabled: disabled ? disabled : item.disabled, name: name, reverse: reverse, fullWidth: fullWidth, value: item.value, onChange: onChangeInner, wrappedInLabel: wrappedInLabel, tabIndex: selectItemOnFocus || disabled || item.disabled ? undefined : ind === focusedIndex ? 0 : -1, ref: selectItemOnFocus ? undefined : ind === focusedIndex ? focusElementRef : undefined, role: itemRole }), item.children) }, `${ind}-li`))) })) }));
|
|
95
94
|
};
|
|
96
95
|
exports.RadioGroupRaw = RadioGroupRaw;
|
|
@@ -427,6 +427,7 @@ const RangeRaw = props => {
|
|
|
427
427
|
className: (0, classNames_1.classNames)(["zen-range-popup zen-shadow-dropdown-default", className ? className : ""]),
|
|
428
428
|
onOpenChange: handleTriggerClick,
|
|
429
429
|
useTrapFocusWithTrigger: "on",
|
|
430
|
+
alignment: "bottom-left",
|
|
430
431
|
shouldHoldScroll: true,
|
|
431
432
|
triggerRef: triggerRef,
|
|
432
433
|
ariaLabel: translate("Range Filter popup"),
|
|
@@ -5,7 +5,7 @@ export declare const getItemIdByIndex: (state: Map<string, CheckboxState>, index
|
|
|
5
5
|
export declare const getItemIndexById: (state: Map<string, CheckboxState>, id: string) => number;
|
|
6
6
|
export declare const updateItemState: (initialState: Map<string, CheckboxState>, multiselect: boolean, updatedId: string, newState: CheckboxState) => [Map<string, CheckboxState>, boolean];
|
|
7
7
|
export declare const searchItemIndex: (items: ISelectListItem[], searchStr: string) => number;
|
|
8
|
-
export declare const getFirstIndex: (items: ISelectListItem[]) =>
|
|
8
|
+
export declare const getFirstIndex: (items: ISelectListItem[]) => 0 | -1;
|
|
9
9
|
export declare const getLastIndex: (items: ISelectListItem[]) => number;
|
|
10
10
|
export declare const getNextIndex: (currIndex: number, items: ISelectListItem[]) => number;
|
|
11
11
|
export declare const getPrevIndex: (currIndex: number, items: ISelectListItem[]) => number;
|
|
@@ -42,47 +42,22 @@ const searchItemIndex = (items, searchStr) => {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
exports.searchItemIndex = searchItemIndex;
|
|
45
|
-
const getFirstIndex = (items) => items.
|
|
45
|
+
const getFirstIndex = (items) => (items.length > 0 ? 0 : -1);
|
|
46
46
|
exports.getFirstIndex = getFirstIndex;
|
|
47
|
-
const getLastIndex = (items) =>
|
|
48
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
49
|
-
if (!items[i].disabled) {
|
|
50
|
-
return i;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return -1;
|
|
54
|
-
};
|
|
47
|
+
const getLastIndex = (items) => (items.length > 0 ? items.length - 1 : -1);
|
|
55
48
|
exports.getLastIndex = getLastIndex;
|
|
56
49
|
const getNextIndex = (currIndex, items) => {
|
|
57
|
-
var _a;
|
|
58
50
|
if (items.length === 0) {
|
|
59
51
|
return -1;
|
|
60
52
|
}
|
|
61
|
-
|
|
62
|
-
const startIndex = nextIndex;
|
|
63
|
-
while ((_a = items[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled) {
|
|
64
|
-
nextIndex = nextIndex + 1 >= items.length ? 0 : nextIndex + 1;
|
|
65
|
-
if (nextIndex === startIndex) {
|
|
66
|
-
return currIndex;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return nextIndex;
|
|
53
|
+
return currIndex + 1 >= items.length ? 0 : currIndex + 1;
|
|
70
54
|
};
|
|
71
55
|
exports.getNextIndex = getNextIndex;
|
|
72
56
|
const getPrevIndex = (currIndex, items) => {
|
|
73
|
-
var _a;
|
|
74
57
|
if (items.length === 0) {
|
|
75
58
|
return -1;
|
|
76
59
|
}
|
|
77
|
-
|
|
78
|
-
const startIndex = prevIndex;
|
|
79
|
-
while ((_a = items[prevIndex]) === null || _a === void 0 ? void 0 : _a.disabled) {
|
|
80
|
-
prevIndex = prevIndex <= 0 ? items.length - 1 : prevIndex - 1;
|
|
81
|
-
if (prevIndex === startIndex) {
|
|
82
|
-
return currIndex;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return prevIndex;
|
|
60
|
+
return currIndex <= 0 || currIndex >= items.length ? items.length - 1 : currIndex - 1;
|
|
86
61
|
};
|
|
87
62
|
exports.getPrevIndex = getPrevIndex;
|
|
88
63
|
const getFirstActiveIndex = (state, items, multiselect) => {
|
|
@@ -51,9 +51,7 @@ const SelectList = (_a) => {
|
|
|
51
51
|
if (!multiselect && selectItemOnFocus) {
|
|
52
52
|
dispatchState({ type: selectList_actionTypes_1.ListAction.FocusFirst, payload: { items } });
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
dispatchState({ type: selectList_actionTypes_1.ListAction.Focus, payload: { items, multiselect } });
|
|
56
|
-
}
|
|
54
|
+
dispatchState({ type: selectList_actionTypes_1.ListAction.Focus, payload: { items, multiselect } });
|
|
57
55
|
}, [multiselect, items, selectItemOnFocus]);
|
|
58
56
|
(0, react_2.useEffect)(() => {
|
|
59
57
|
onChange && state.isItemsStateChanged && onChange(new Map(state.itemsState));
|
|
@@ -120,7 +120,8 @@ const selectListReducer = (state, action) => {
|
|
|
120
120
|
newItemsState = updatedState;
|
|
121
121
|
});
|
|
122
122
|
const prevActiveItemId = (0, selectList_helpers_1.getItemIdByIndex)(state.itemsState, state.activeIndex);
|
|
123
|
-
const
|
|
123
|
+
const newActiveItemIndex = !!prevActiveItemId && (0, selectList_helpers_1.getItemIndexById)(newItemsState, prevActiveItemId);
|
|
124
|
+
const activeIndex = newActiveItemIndex ? newActiveItemIndex : -1;
|
|
124
125
|
return Object.assign(Object.assign({}, state), { itemsState: newItemsState, activeIndex, isItemsStateChanged: false });
|
|
125
126
|
}
|
|
126
127
|
case selectList_actionTypes_1.ListAction.SetLevel: {
|
|
@@ -6,12 +6,9 @@ const checkboxState_1 = require("../checkbox/checkboxState");
|
|
|
6
6
|
const checkboxNonInteractive_1 = require("../checkboxNonInteractive/checkboxNonInteractive");
|
|
7
7
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
8
8
|
const iconChevronRight_1 = require("../icons/iconChevronRight");
|
|
9
|
-
const iconChevronLeft_1 = require("../icons/iconChevronLeft");
|
|
10
|
-
const useDirectionalIcon_1 = require("../utils/localization/useDirectionalIcon");
|
|
11
9
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
12
10
|
const SelectListItem = ({ id, disabled = false, state = checkboxState_1.CheckboxState.Off, showCheckbox = false, focused = false, onChange, onClick, multiLevel, className = "", children }) => {
|
|
13
11
|
const driveClassName = (0, useDriveClassName_1.useDriveClassName)("zen-select-item");
|
|
14
|
-
const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
|
|
15
12
|
const onClickFunc = () => {
|
|
16
13
|
if (disabled) {
|
|
17
14
|
return;
|
|
@@ -33,6 +30,6 @@ const SelectListItem = ({ id, disabled = false, state = checkboxState_1.Checkbox
|
|
|
33
30
|
"zen-select-item__wrapper",
|
|
34
31
|
"zen-ellipsis",
|
|
35
32
|
multiLevel ? "zen-select-item__wrapper--with-arrow" : ""
|
|
36
|
-
]), children: [showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children), multiLevel && !showCheckbox ? (0, jsx_runtime_1.jsx)(
|
|
33
|
+
]), children: [showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children), multiLevel && !showCheckbox ? (0, jsx_runtime_1.jsx)(iconChevronRight_1.IconChevronRight, { size: "large" }) : null] }) }));
|
|
37
34
|
};
|
|
38
35
|
exports.SelectListItem = SelectListItem;
|
|
@@ -66,60 +66,6 @@ injectString("zh-Hans", "Change sort direction", "\u66F4\u6539\u6392\u5E8F");
|
|
|
66
66
|
injectString("zh-TW", "Change sort direction", "\u8B8A\u66F4\u6392\u5E8F\u65B9\u5411");
|
|
67
67
|
injectString("ro-RO", "Change sort direction", "Schimba\u021Bi direc\u021Bia sort\u0103rii");
|
|
68
68
|
injectString("ar-SA", "Change sort direction", "\u062A\u063A\u064A\u064A\u0631 \u0627\u062A\u062C\u0627\u0647 \u0627\u0644\u062A\u0631\u062A\u064A\u0628");
|
|
69
|
-
injectString("cs", "Ascending", "Vzestupn\u011B");
|
|
70
|
-
injectString("da-DK", "Ascending", "Stigende");
|
|
71
|
-
injectString("de", "Ascending", "Aufsteigend");
|
|
72
|
-
injectString("en", "Ascending", "Ascending");
|
|
73
|
-
injectString("es", "Ascending", "Ascendente");
|
|
74
|
-
injectString("fi-FI", "Ascending", "Nouseva");
|
|
75
|
-
injectString("fr", "Ascending", "Croissant");
|
|
76
|
-
injectString("fr-FR", "Ascending", "Croissant");
|
|
77
|
-
injectString("hu-HU", "Ascending", "N\xF6vekv\u0151");
|
|
78
|
-
injectString("id", "Ascending", "Naik");
|
|
79
|
-
injectString("it", "Ascending", "Crescente");
|
|
80
|
-
injectString("ja", "Ascending", "\u6607\u9806");
|
|
81
|
-
injectString("ko-KR", "Ascending", "\uC624\uB984\uCC28\uC21C");
|
|
82
|
-
injectString("ms", "Ascending", "Menaik");
|
|
83
|
-
injectString("nb-NO", "Ascending", "Stigende");
|
|
84
|
-
injectString("nl", "Ascending", "Oplopend");
|
|
85
|
-
injectString("pl", "Ascending", "Rosn\u0105co");
|
|
86
|
-
injectString("pt-BR", "Ascending", "Crescente");
|
|
87
|
-
injectString("pt-PT", "Ascending", "Ascendente");
|
|
88
|
-
injectString("sk-SK", "Ascending", "Vzostupne");
|
|
89
|
-
injectString("sv", "Ascending", "Stigande");
|
|
90
|
-
injectString("th", "Ascending", "\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01");
|
|
91
|
-
injectString("tr", "Ascending", "Artan");
|
|
92
|
-
injectString("zh-Hans", "Ascending", "\u5347\u5E8F");
|
|
93
|
-
injectString("zh-TW", "Ascending", "\u905E\u589E");
|
|
94
|
-
injectString("ro-RO", "Ascending", "Ascensiune");
|
|
95
|
-
injectString("ar-SA", "Ascending", "\u062A\u0635\u0627\u0639\u062F\u064A");
|
|
96
|
-
injectString("cs", "Descending", "Sestupn\u011B");
|
|
97
|
-
injectString("da-DK", "Descending", "Faldende");
|
|
98
|
-
injectString("de", "Descending", "Absteigend");
|
|
99
|
-
injectString("en", "Descending", "Descending");
|
|
100
|
-
injectString("es", "Descending", "Descendente");
|
|
101
|
-
injectString("fi-FI", "Descending", "Laskeva");
|
|
102
|
-
injectString("fr", "Descending", "D\xE9croissant");
|
|
103
|
-
injectString("fr-FR", "Descending", "Descendant");
|
|
104
|
-
injectString("hu-HU", "Descending", "Cs\xF6kken\u0151");
|
|
105
|
-
injectString("id", "Descending", "Menurun");
|
|
106
|
-
injectString("it", "Descending", "Decrescente");
|
|
107
|
-
injectString("ja", "Descending", "\u964D\u9806");
|
|
108
|
-
injectString("ko-KR", "Descending", "\uB0B4\uB9BC\uCC28\uC21C");
|
|
109
|
-
injectString("ms", "Descending", "Menurun");
|
|
110
|
-
injectString("nb-NO", "Descending", "Synkende");
|
|
111
|
-
injectString("nl", "Descending", "Aflopend");
|
|
112
|
-
injectString("pl", "Descending", "Malej\u0105co");
|
|
113
|
-
injectString("pt-BR", "Descending", "Decrescente");
|
|
114
|
-
injectString("pt-PT", "Descending", "Descendente");
|
|
115
|
-
injectString("sk-SK", "Descending", "Zostupne");
|
|
116
|
-
injectString("sv", "Descending", "Fallande");
|
|
117
|
-
injectString("th", "Descending", "\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22");
|
|
118
|
-
injectString("tr", "Descending", "Azalan");
|
|
119
|
-
injectString("zh-Hans", "Descending", "\u964D\u5E8F");
|
|
120
|
-
injectString("zh-TW", "Descending", "\u905E\u6E1B");
|
|
121
|
-
injectString("ro-RO", "Descending", "Cobor\xE2re");
|
|
122
|
-
injectString("ar-SA", "Descending", "\u062A\u0646\u0627\u0632\u0644\u064A");
|
|
123
69
|
injectString("cs", "Sort Options", "Sort Options");
|
|
124
70
|
injectString("da-DK", "Sort Options", "Sorteringsmuligheder");
|
|
125
71
|
injectString("de", "Sort Options", "Sort Options");
|
|
@@ -154,6 +100,7 @@ const useDrive_1 = require("../utils/theme/useDrive");
|
|
|
154
100
|
const iconChevronDownSmall_1 = require("../icons/iconChevronDownSmall");
|
|
155
101
|
const iconFilter3Asc_1 = require("../icons/iconFilter3Asc");
|
|
156
102
|
const iconFilter3Desc_1 = require("../icons/iconFilter3Desc");
|
|
103
|
+
const MENU_POSITION = "bottom-left";
|
|
157
104
|
const BUTTON_TEXT_DEFAULT = "Sort by";
|
|
158
105
|
var SortDirections;
|
|
159
106
|
(function (SortDirections) {
|
|
@@ -210,6 +157,7 @@ const SortControl = ({
|
|
|
210
157
|
onClick: () => onSortDirectionToggle(),
|
|
211
158
|
disabled: disabled,
|
|
212
159
|
title: translate("Change sort direction"),
|
|
160
|
+
"aria-label": translate("Change sort direction"),
|
|
213
161
|
children: [directionIcon ? sortDirection === SortDirections.Ascending ? (0, jsx_runtime_1.jsx)(iconFilter3Asc_1.IconFilter3Asc, {
|
|
214
162
|
className: "zen-sort-container__sort-icon",
|
|
215
163
|
size: isDrive ? "huge" : "large"
|
|
@@ -222,9 +170,6 @@ const SortControl = ({
|
|
|
222
170
|
children: [buttonTextValue, ": "]
|
|
223
171
|
}), (0, jsx_runtime_1.jsx)("span", {
|
|
224
172
|
children: (items.find(item => item.id === sortBy) || items[0]).children
|
|
225
|
-
}), (0, jsx_runtime_1.jsxs)("span", {
|
|
226
|
-
className: "zen-visually-hidden",
|
|
227
|
-
children: [" ", sortDirection === SortDirections.Ascending ? translate("Ascending") : translate("Descending")]
|
|
228
173
|
})]
|
|
229
174
|
})]
|
|
230
175
|
}), isSingleItem ? "" : (0, jsx_runtime_1.jsx)(popup_1.Popup, {
|
|
@@ -238,7 +183,7 @@ const SortControl = ({
|
|
|
238
183
|
size: isDrive ? "huge" : "large"
|
|
239
184
|
})
|
|
240
185
|
}),
|
|
241
|
-
alignment:
|
|
186
|
+
alignment: MENU_POSITION,
|
|
242
187
|
onOpenChange: isCurrentlyOpen => onOptionsToggle(isCurrentlyOpen),
|
|
243
188
|
children: (0, jsx_runtime_1.jsx)(selectList_1.SelectList, {
|
|
244
189
|
id: "sortControlSelectList",
|
|
@@ -252,4 +197,4 @@ const SortControl = ({
|
|
|
252
197
|
});
|
|
253
198
|
};
|
|
254
199
|
exports.SortControl = SortControl;
|
|
255
|
-
exports.TRANSLATIONS = ["Sort by", "Sort Options", "Change sort direction"
|
|
200
|
+
exports.TRANSLATIONS = ["Sort by", "Sort Options", "Change sort direction"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
-
export declare const useTableChildren: (children: ReactNode, isMobile: boolean, selected: number, allSelected: boolean, clearSelection: () => void, activeId?: string, gridRef?: RefObject<HTMLElement | null>, onCloseDetailPanel?: () => void) => {
|
|
2
|
+
export declare const useTableChildren: (children: ReactNode, isMobile: boolean, selected: number, allSelected: boolean, clearSelection: () => void, selectAll: () => void, turnOffSelectAll?: boolean, activeId?: string, gridRef?: RefObject<HTMLElement | null>, onCloseDetailPanel?: () => void) => {
|
|
3
3
|
bulkActions: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
4
4
|
pagination: ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
5
5
|
activePage: number | undefined;
|
|
@@ -27,7 +27,7 @@ const isChildElement = function (child, expectedType) {
|
|
|
27
27
|
}
|
|
28
28
|
return false;
|
|
29
29
|
};
|
|
30
|
-
const useTableChildren = (children, isMobile, selected, allSelected, clearSelection, activeId, gridRef, onCloseDetailPanel) => (0, react_1.useMemo)(() => {
|
|
30
|
+
const useTableChildren = (children, isMobile, selected, allSelected, clearSelection, selectAll, turnOffSelectAll, activeId, gridRef, onCloseDetailPanel) => (0, react_1.useMemo)(() => {
|
|
31
31
|
let bulkActions = undefined;
|
|
32
32
|
let tablePagination = undefined;
|
|
33
33
|
let activePage = undefined;
|
|
@@ -42,7 +42,7 @@ const useTableChildren = (children, isMobile, selected, allSelected, clearSelect
|
|
|
42
42
|
}
|
|
43
43
|
if (isChildElement(child, tableBulkActions_1.TableBulkActions.displayName)) {
|
|
44
44
|
const bulkActionButtons = child.props.children || [];
|
|
45
|
-
bulkActions = ((0, jsx_runtime_1.jsx)(bulkActions_1.BulkActions, { gridType: isMobile ? deviceType_1.DeviceType.Mobile : deviceType_1.DeviceType.Desktop, selected: selected, allSelected: allSelected, onClearSelection: clearSelection, children: bulkActionButtons }));
|
|
45
|
+
bulkActions = ((0, jsx_runtime_1.jsx)(bulkActions_1.BulkActions, { gridType: isMobile ? deviceType_1.DeviceType.Mobile : deviceType_1.DeviceType.Desktop, selected: selected, allSelected: allSelected, onClearSelection: clearSelection, onSelectAll: selectAll, turnOffSelectAll: turnOffSelectAll, children: bulkActionButtons }));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
if (isChildElement(child, tablePagination_1.TablePagination.displayName)) {
|
|
@@ -103,5 +103,5 @@ const useTableChildren = (children, isMobile, selected, allSelected, clearSelect
|
|
|
103
103
|
detailPanel: detailPanel,
|
|
104
104
|
other: other
|
|
105
105
|
};
|
|
106
|
-
}, [children, clearSelection, isMobile, selected, gridRef, allSelected, activeId, onCloseDetailPanel]);
|
|
106
|
+
}, [children, clearSelection, isMobile, selected, gridRef, allSelected, selectAll, turnOffSelectAll, activeId, onCloseDetailPanel]);
|
|
107
107
|
exports.useTableChildren = useTableChildren;
|
|
@@ -65,7 +65,6 @@ const SubColumnsList = ({
|
|
|
65
65
|
showCheckbox: true,
|
|
66
66
|
children: c.title
|
|
67
67
|
})), [columns, sortColumnsInt, lastVisibleColumnId]);
|
|
68
|
-
const allDisabled = (0, react_1.useMemo)(() => items.every(item => item.disabled), [items]);
|
|
69
68
|
const state = columns.reduce((res, c) => {
|
|
70
69
|
res.set(c.id, settings.get(c.id) !== false ? checkboxState_1.CheckboxState.On : checkboxState_1.CheckboxState.Off);
|
|
71
70
|
return res;
|
|
@@ -85,9 +84,8 @@ const SubColumnsList = ({
|
|
|
85
84
|
title: title || translate("Select visible columns"),
|
|
86
85
|
multiselect: true,
|
|
87
86
|
showCheckbox: true,
|
|
88
|
-
onChange: onChangeItem
|
|
89
|
-
|
|
90
|
-
}), [id, items, state, title, translate, onChangeItem, allDisabled]);
|
|
87
|
+
onChange: onChangeItem
|
|
88
|
+
}), [id, items, state, title, translate, onChangeItem]);
|
|
91
89
|
if (!title) {
|
|
92
90
|
return list;
|
|
93
91
|
}
|
|
@@ -16,14 +16,6 @@ export interface ISelectableRowsOptions<T extends IRowEntity<N>, N extends IEnti
|
|
|
16
16
|
checkboxTitle?: (entity: T | N) => string;
|
|
17
17
|
headerTitle?: (state: SelectionState) => string;
|
|
18
18
|
turnOffSelectAll?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* When `true`, the header checkbox emits the current page's IDs instead of `{ all: true }`.
|
|
21
|
-
* When `undefined`, falls back to `turnOffSelectAll` for backward compatibility.
|
|
22
|
-
*
|
|
23
|
-
* Note: avoid setting this to `false` alongside `turnOffSelectAll: true` — the checkbox
|
|
24
|
-
* will emit `{ all: true }` while the dropdown hides the "Select all" option, which is inconsistent.
|
|
25
|
-
*/
|
|
26
|
-
checkboxSelectsCurrentPage?: boolean;
|
|
27
19
|
checkboxPlaceholder?: boolean;
|
|
28
20
|
strategy?: TSelectionStrategy;
|
|
29
21
|
selectAll?: boolean;
|