@geotab/zenith 3.12.3 → 3.13.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 +11 -3
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +29 -29
- package/dist/calendar/calendar.js +1 -1
- package/dist/chart/lineChart/getDefaultOptions.js +2 -7
- package/dist/chart/lineChart/useSummary.d.ts +2 -1
- package/dist/columnsSelector/columnsSelector.js +1 -1
- package/dist/commonHelpers/arrowNavigation/arrowNavigationHelper.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/arrowNavigationHelper.js +29 -12
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +2 -1
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +2 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.js +4 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.js +12 -3
- package/dist/commonHelpers/arrowNavigation/hooks/useScrolling.js +18 -6
- package/dist/commonStyles/caption/caption.less +3 -5
- package/dist/commonStyles/colors/colors.less +4 -19
- package/dist/commonStyles/columnsList.less +1 -0
- package/dist/commonStyles/common.less +1 -2
- package/dist/commonStyles/ellipsis.less +1 -1
- package/dist/commonStyles/fonts/roboto.less +7 -7
- package/dist/commonStyles/link/link.less +1 -1
- package/dist/commonStyles/notSelectable.less +0 -4
- package/dist/commonStyles/pillStyles/pillContent.less +6 -2
- package/dist/commonStyles/pillStyles/pillStyles.less +1 -1
- package/dist/commonStyles/pillStyles/pillTextContent.less +3 -0
- package/dist/commonStyles/pillStyles/pillTypes.less +10 -0
- package/dist/commonStyles/popupMixin.less +2 -2
- package/dist/commonStyles/rangeFieldMixin.less +3 -6
- package/dist/commonStyles/shadows/shadows.less +3 -3
- package/dist/commonStyles/typography/typography.less +24 -24
- package/dist/dataFeed/dataFeed.js +28 -2
- package/dist/dataGrid/columns/actionsColumn/actionsButton.js +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +1 -1
- package/dist/dateInputInner/dateInputInnerControlBlock.js +57 -57
- package/dist/divider/divider.js +1 -1
- package/dist/dropdownRaw/dropdownRaw.js +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.js +1 -1
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +31 -31
- package/dist/filtersBar/filtersContainer/filtersContainer.js +16 -5
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/dist/header/header.js +1 -1
- package/dist/header/headerMenu.js +1 -1
- package/dist/index.css +487 -571
- package/dist/list/itemData/itemDataInternal.js +1 -1
- package/dist/list/listItem/listItem.js +1 -1
- package/dist/menu/menu.js +1 -1
- package/dist/nav/navAddMenu/navAddMenu.js +1 -1
- package/dist/nav/navFooter/navFooter.js +4 -4
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/dist/nav/navHeader/navHeader.js +1 -1
- package/dist/nav/navHeader/navHeaderSearch/navHeaderSearch.js +1 -1
- package/dist/nav/navItem/navItem.js +2 -2
- package/dist/rangeRaw/rangeRaw.js +1 -1
- package/dist/rangeRaw/utils/rangeHelper.js +28 -28
- package/dist/sortControl/sortControl.js +1 -1
- package/dist/summary/summary.d.ts +3 -2
- package/dist/summary/summary.js +6 -2
- package/dist/summaryTileBar/summaryTileBar.js +3 -1
- package/dist/table/actions/actionsMenu.js +2 -2
- package/dist/table/flexible/columnsPopup.js +1 -1
- package/dist/table/table.js +5 -7
- package/dist/tabs/tabs.js +16 -5
- package/dist/toolbar/helpers/getWidthWithMargin.js +2 -2
- package/dist/tooltip/helpers/calculateArrowPosition.js +1 -7
- package/dist/tooltip/tooltip.js +7 -5
- package/dist/utils/localization/translations/ar.json +7 -7
- package/dist/utils/localization/translations/cs.json +7 -7
- package/dist/utils/localization/translations/da-DK.json +7 -7
- package/dist/utils/localization/translations/de.json +7 -7
- package/dist/utils/localization/translations/en.json +7 -7
- package/dist/utils/localization/translations/es.json +7 -7
- package/dist/utils/localization/translations/fi-FI.json +7 -7
- package/dist/utils/localization/translations/fr-FR.json +7 -7
- package/dist/utils/localization/translations/fr.json +7 -7
- package/dist/utils/localization/translations/hu-HU.json +7 -7
- package/dist/utils/localization/translations/id.json +7 -7
- package/dist/utils/localization/translations/it.json +7 -7
- package/dist/utils/localization/translations/ja.json +7 -7
- package/dist/utils/localization/translations/ko-KR.json +7 -7
- package/dist/utils/localization/translations/ms.json +7 -7
- package/dist/utils/localization/translations/nb-NO.json +7 -7
- package/dist/utils/localization/translations/nl.json +7 -7
- package/dist/utils/localization/translations/pl.json +7 -7
- package/dist/utils/localization/translations/pt-BR.json +7 -7
- package/dist/utils/localization/translations/pt-PT.json +7 -7
- package/dist/utils/localization/translations/ro-RO.json +7 -7
- package/dist/utils/localization/translations/sk-SK.json +7 -7
- package/dist/utils/localization/translations/sv.json +7 -7
- package/dist/utils/localization/translations/th.json +7 -7
- package/dist/utils/localization/translations/tr.json +7 -7
- package/dist/utils/localization/translations/zh-Hans.json +7 -7
- package/dist/utils/localization/translations/zh-TW.json +7 -7
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +29 -29
- package/esm/calendar/calendar.js +1 -1
- package/esm/chart/lineChart/getDefaultOptions.js +2 -7
- package/esm/chart/lineChart/useSummary.d.ts +2 -1
- package/esm/columnsSelector/columnsSelector.js +1 -1
- package/esm/commonHelpers/arrowNavigation/arrowNavigationHelper.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/arrowNavigationHelper.js +29 -12
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +2 -1
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +2 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.js +4 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.js +12 -3
- package/esm/commonHelpers/arrowNavigation/hooks/useScrolling.js +18 -6
- package/esm/dataFeed/dataFeed.js +28 -2
- package/esm/dataGrid/columns/actionsColumn/actionsButton.js +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +1 -1
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +1 -1
- package/esm/dateInputInner/dateInputInnerControlBlock.js +57 -57
- package/esm/divider/divider.js +1 -1
- package/esm/dropdownRaw/dropdownRaw.js +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.js +1 -1
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +31 -31
- package/esm/filtersBar/filtersContainer/filtersContainer.js +16 -5
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.js +1 -1
- package/esm/header/header.js +1 -1
- package/esm/header/headerMenu.js +1 -1
- package/esm/list/itemData/itemDataInternal.js +1 -1
- package/esm/list/listItem/listItem.js +1 -1
- package/esm/menu/menu.js +1 -1
- package/esm/nav/navAddMenu/navAddMenu.js +1 -1
- package/esm/nav/navFooter/navFooter.js +4 -4
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +1 -1
- package/esm/nav/navHeader/navHeader.js +1 -1
- package/esm/nav/navHeader/navHeaderSearch/navHeaderSearch.js +1 -1
- package/esm/nav/navItem/navItem.js +2 -2
- package/esm/rangeRaw/rangeRaw.js +1 -1
- package/esm/rangeRaw/utils/rangeHelper.js +28 -28
- package/esm/sortControl/sortControl.js +1 -1
- package/esm/summary/summary.d.ts +3 -2
- package/esm/summary/summary.js +6 -2
- package/esm/summaryTileBar/summaryTileBar.js +3 -1
- package/esm/table/actions/actionsMenu.js +2 -2
- package/esm/table/flexible/columnsPopup.js +1 -1
- package/esm/table/table.js +5 -7
- package/esm/tabs/tabs.js +16 -5
- package/esm/toolbar/helpers/getWidthWithMargin.js +2 -2
- package/esm/tooltip/helpers/calculateArrowPosition.js +1 -7
- package/esm/tooltip/tooltip.js +7 -5
- package/esm/utils/localization/translations/ar.json +7 -7
- package/esm/utils/localization/translations/cs.json +7 -7
- package/esm/utils/localization/translations/da-DK.json +7 -7
- package/esm/utils/localization/translations/de.json +7 -7
- package/esm/utils/localization/translations/en.json +7 -7
- package/esm/utils/localization/translations/es.json +7 -7
- package/esm/utils/localization/translations/fi-FI.json +7 -7
- package/esm/utils/localization/translations/fr-FR.json +7 -7
- package/esm/utils/localization/translations/fr.json +7 -7
- package/esm/utils/localization/translations/hu-HU.json +7 -7
- package/esm/utils/localization/translations/id.json +7 -7
- package/esm/utils/localization/translations/it.json +7 -7
- package/esm/utils/localization/translations/ja.json +7 -7
- package/esm/utils/localization/translations/ko-KR.json +7 -7
- package/esm/utils/localization/translations/ms.json +7 -7
- package/esm/utils/localization/translations/nb-NO.json +7 -7
- package/esm/utils/localization/translations/nl.json +7 -7
- package/esm/utils/localization/translations/pl.json +7 -7
- package/esm/utils/localization/translations/pt-BR.json +7 -7
- package/esm/utils/localization/translations/pt-PT.json +7 -7
- package/esm/utils/localization/translations/ro-RO.json +7 -7
- package/esm/utils/localization/translations/sk-SK.json +7 -7
- package/esm/utils/localization/translations/sv.json +7 -7
- package/esm/utils/localization/translations/th.json +7 -7
- package/esm/utils/localization/translations/tr.json +7 -7
- package/esm/utils/localization/translations/zh-Hans.json +7 -7
- package/esm/utils/localization/translations/zh-TW.json +7 -7
- package/package.json +10 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: Roboto;
|
|
3
3
|
font-style: normal;
|
|
4
4
|
font-weight: 300;
|
|
5
5
|
src:
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@font-face {
|
|
11
|
-
font-family:
|
|
11
|
+
font-family: Roboto;
|
|
12
12
|
font-style: normal;
|
|
13
13
|
font-weight: 400;
|
|
14
14
|
src:
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@font-face {
|
|
20
|
-
font-family:
|
|
20
|
+
font-family: Roboto;
|
|
21
21
|
font-style: normal;
|
|
22
22
|
font-weight: 500;
|
|
23
23
|
src:
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@font-face {
|
|
29
|
-
font-family:
|
|
29
|
+
font-family: Roboto;
|
|
30
30
|
font-style: normal;
|
|
31
31
|
font-weight: 700;
|
|
32
32
|
src:
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@font-face {
|
|
38
|
-
font-family:
|
|
38
|
+
font-family: Roboto;
|
|
39
39
|
font-style: italic;
|
|
40
40
|
font-weight: 300;
|
|
41
41
|
src:
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@font-face {
|
|
47
|
-
font-family:
|
|
47
|
+
font-family: Roboto;
|
|
48
48
|
font-style: italic;
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
src:
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@font-face {
|
|
56
|
-
font-family:
|
|
56
|
+
font-family: Roboto;
|
|
57
57
|
font-style: italic;
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
src:
|
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
@pill-height--mobile: 34px;
|
|
11
11
|
|
|
12
12
|
.zen-body-s-400();
|
|
13
|
-
display: flex;
|
|
14
13
|
align-items: center;
|
|
15
14
|
justify-content: space-between;
|
|
16
15
|
border-radius: (30 / @rem);
|
|
17
16
|
height: @pill-height;
|
|
18
17
|
display: grid;
|
|
19
18
|
grid-auto-flow: column;
|
|
20
|
-
|
|
21
19
|
gap: (8 / @rem);
|
|
22
20
|
|
|
23
21
|
&--icon-left {
|
|
@@ -44,9 +42,11 @@
|
|
|
44
42
|
&--hidden {
|
|
45
43
|
gap: (4 / @rem);
|
|
46
44
|
}
|
|
45
|
+
|
|
47
46
|
&.zen-pill-new-content--drive,
|
|
48
47
|
&.zen-pill-new-content--drive-tablet {
|
|
49
48
|
height: @pill-height--drive;
|
|
49
|
+
|
|
50
50
|
.zen-pill-non-actionable__icon {
|
|
51
51
|
min-width: (16 / @rem);
|
|
52
52
|
max-width: 16px;
|
|
@@ -70,9 +70,11 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
|
|
73
74
|
&.zen-pill-new-content--mobile {
|
|
74
75
|
height: @pill-height--mobile;
|
|
75
76
|
.zen-body-m-400-short();
|
|
77
|
+
|
|
76
78
|
.zen-pill-non-actionable__icon {
|
|
77
79
|
min-width: (16 / @rem);
|
|
78
80
|
max-width: 16px;
|
|
@@ -96,9 +98,11 @@
|
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
}
|
|
101
|
+
|
|
99
102
|
&.zen-pill-new-content--drive {
|
|
100
103
|
.zen-body-s-400-drive();
|
|
101
104
|
}
|
|
105
|
+
|
|
102
106
|
&.zen-pill-new-content--drive-tablet {
|
|
103
107
|
.zen-body-s-400-drive();
|
|
104
108
|
}
|
|
@@ -7,13 +7,16 @@
|
|
|
7
7
|
&--hidden {
|
|
8
8
|
visibility: hidden;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
&.zen-pill-text-content--drive,
|
|
11
12
|
&.zen-pill-text-content--drive-tablet {
|
|
12
13
|
height: 20px;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
&.zen-pill-text-content--drive {
|
|
15
17
|
.zen-body-s-400-drive();
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
&.zen-pill-text-content--drive-tablet {
|
|
18
21
|
.zen-body-s-400-drive();
|
|
19
22
|
}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
background: var(--backgrounds-content-1);
|
|
6
6
|
color: var(--text-primary);
|
|
7
7
|
fill: var(--text-primary);
|
|
8
|
+
|
|
8
9
|
.zen-pill-non-actionable__close-button {
|
|
9
10
|
fill: var(--text-primary);
|
|
11
|
+
|
|
10
12
|
&:active .zen-pill-non-actionable__close-icon,
|
|
11
13
|
&:hover .zen-pill-non-actionable__close-icon,
|
|
12
14
|
&:focus .zen-pill-non-actionable__close-icon {
|
|
@@ -21,8 +23,10 @@
|
|
|
21
23
|
color: var(--accents-success--detail);
|
|
22
24
|
background-color: var(--accents-success--main);
|
|
23
25
|
fill: var(--accents-success--detail);
|
|
26
|
+
|
|
24
27
|
.zen-pill-non-actionable__close-button {
|
|
25
28
|
fill: var(--accents-success--detail);
|
|
29
|
+
|
|
26
30
|
&:active .zen-pill-non-actionable__close-icon,
|
|
27
31
|
&:hover .zen-pill-non-actionable__close-icon,
|
|
28
32
|
&:focus .zen-pill-non-actionable__close-icon {
|
|
@@ -37,8 +41,10 @@
|
|
|
37
41
|
background-color: var(--accents-error--main);
|
|
38
42
|
color: var(--accents-error--detail);
|
|
39
43
|
fill: var(--accents-error--detail);
|
|
44
|
+
|
|
40
45
|
.zen-pill-non-actionable__close-button {
|
|
41
46
|
fill: var(--accents-error--detail);
|
|
47
|
+
|
|
42
48
|
&:active .zen-pill-non-actionable__close-icon,
|
|
43
49
|
&:hover .zen-pill-non-actionable__close-icon,
|
|
44
50
|
&:focus .zen-pill-non-actionable__close-icon {
|
|
@@ -53,8 +59,10 @@
|
|
|
53
59
|
background-color: var(--accents-warning--main);
|
|
54
60
|
color: var(--accents-warning--detail);
|
|
55
61
|
fill: var(--accents-warning--detail);
|
|
62
|
+
|
|
56
63
|
.zen-pill-non-actionable__close-button {
|
|
57
64
|
fill: var(--accents-warning--detail);
|
|
65
|
+
|
|
58
66
|
&:active .zen-pill-non-actionable__close-icon,
|
|
59
67
|
&:hover .zen-pill-non-actionable__close-icon,
|
|
60
68
|
&:focus .zen-pill-non-actionable__close-icon {
|
|
@@ -69,8 +77,10 @@
|
|
|
69
77
|
background-color: var(--accents-general--main);
|
|
70
78
|
color: var(--accents-general--detail);
|
|
71
79
|
fill: var(--accents-general--detail);
|
|
80
|
+
|
|
72
81
|
.zen-pill-non-actionable__close-button {
|
|
73
82
|
fill: var(--accents-general--detail);
|
|
83
|
+
|
|
74
84
|
&:active .zen-pill-non-actionable__close-icon,
|
|
75
85
|
&:hover .zen-pill-non-actionable__close-icon,
|
|
76
86
|
&:focus .zen-pill-non-actionable__close-icon {
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
grid-template-columns: minmax(min-content, auto) minmax(auto, 168px) minmax(0, auto);
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
5
|
gap: (4 / @rem) (8 / @rem);
|
|
6
|
-
|
|
7
|
-
justify-items: start;
|
|
6
|
+
place-items: center start;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
.zen-range-field-wrapper-row {
|
|
11
10
|
display: grid;
|
|
12
|
-
|
|
13
|
-
justify-items: start;
|
|
11
|
+
place-items: center start;
|
|
14
12
|
grid-template-columns:
|
|
15
13
|
minmax((24 / @rem), (32 / @rem))
|
|
16
14
|
minmax((64 / @rem), (64 / @rem))
|
|
@@ -18,6 +16,5 @@
|
|
|
18
16
|
minmax((24 / @rem), (32 / @rem))
|
|
19
17
|
minmax((64 / @rem), (64 / @rem))
|
|
20
18
|
minmax((24 / @rem), (32 / @rem));
|
|
21
|
-
|
|
22
|
-
column-gap: (8 / @rem);
|
|
19
|
+
gap: (4 / @rem) (8 / @rem);
|
|
23
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.zen-shadow-dropdown-default {
|
|
2
|
-
box-shadow:
|
|
2
|
+
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.zen-card-shadow {
|
|
6
|
-
box-shadow:
|
|
6
|
+
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.zen-chip-shadow {
|
|
10
|
-
box-shadow:
|
|
10
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
|
|
11
11
|
}
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
// Responsive overrides (mobile — max-width: 640px)
|
|
444
|
-
@media (
|
|
444
|
+
@media (width <= 640px) {
|
|
445
445
|
// Standard
|
|
446
446
|
.zen-heading-xl-300 {
|
|
447
447
|
.zen-font(@main-font-family, @heading-01-font-mobile-size, @heading-01-line-height, @weight: @heading-01-weight);
|
|
@@ -548,10 +548,10 @@
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
:root {
|
|
551
|
-
--main-font:
|
|
552
|
-
--main-font-data: "Roboto Mono", "Segoe UI",
|
|
553
|
-
--data-font-drive: "Roboto Mono", "Segoe UI",
|
|
554
|
-
--arabic-font-family: "Noto Sans Arabic",
|
|
551
|
+
--main-font: roboto, "Segoe UI", segoe, "Helvetica Neue", helvetica, sans-serif;
|
|
552
|
+
--main-font-data: "Roboto Mono", "Segoe UI", segoe, "Helvetica Neue", helvetica, sans-serif;
|
|
553
|
+
--data-font-drive: "Roboto Mono", "Segoe UI", segoe, "Helvetica Neue", helvetica, sans-serif;
|
|
554
|
+
--arabic-font-family: "Noto Sans Arabic", roboto, "Segoe UI", segoe, "Helvetica Neue", helvetica, sans-serif;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
// Labels
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400);
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
@media (
|
|
574
|
+
@media (width <= 640px) {
|
|
575
575
|
.tablet-label-400-drive {
|
|
576
576
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400);
|
|
577
577
|
}
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
.font(var(--main-font), 18px, @line-height: 28px, @letter-spacing: 0, @weight: 400);
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
@media (
|
|
622
|
+
@media (width <= 640px) {
|
|
623
623
|
.tablet-body-l-400-drive {
|
|
624
624
|
.font(var(--main-font), 18px, @line-height: 28px, @letter-spacing: 0, @weight: 400);
|
|
625
625
|
}
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
.font(var(--main-font), 16px, @line-height: 20px, @weight: 400);
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
-
@media (
|
|
638
|
+
@media (width <= 640px) {
|
|
639
639
|
.tablet-body-m-400-short-drive {
|
|
640
640
|
.font(var(--main-font), 16px, @line-height: 20px, @weight: 400);
|
|
641
641
|
}
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
.font(var(--main-font), 16px, @line-height: 26px, @weight: 400);
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
@media (
|
|
654
|
+
@media (width <= 640px) {
|
|
655
655
|
.tablet-body-m-400-tall-drive {
|
|
656
656
|
.font(var(--main-font), 16px, @line-height: 26px, @weight: 400);
|
|
657
657
|
}
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 700);
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
@media (
|
|
670
|
+
@media (width <= 640px) {
|
|
671
671
|
.tablet-body-s-700-drive {
|
|
672
672
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 700);
|
|
673
673
|
}
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
.font(var(--main-font), 14px, @line-height: 20px, @letter-spacing: 0.32px, @weight: 400);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
@media (
|
|
686
|
+
@media (width <= 640px) {
|
|
687
687
|
.tablet-body-s-400-drive {
|
|
688
688
|
.font(var(--main-font), 14px, @line-height: 20px, @letter-spacing: 0.32px, @weight: 400);
|
|
689
689
|
}
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
-
@media (
|
|
702
|
+
@media (width <= 640px) {
|
|
703
703
|
.tablet-body-s-400-italic-drive {
|
|
704
704
|
.font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
|
|
705
705
|
}
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
.font(var(--main-font), 20px, @line-height: 36px, @weight: 300);
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
@media (
|
|
719
|
+
@media (width <= 640px) {
|
|
720
720
|
.heading-xl-300 {
|
|
721
721
|
.font(var(--main-font), 20px, @line-height: 36px, @weight: 300);
|
|
722
722
|
}
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
.font(var(--main-font), 18px, @line-height: 28px, @weight: 300);
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
@media (
|
|
740
|
+
@media (width <= 640px) {
|
|
741
741
|
.heading-m-300 {
|
|
742
742
|
.font(var(--main-font), 18px, @line-height: 28px, @weight: 300);
|
|
743
743
|
}
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
.font(var(--main-font), 24px, 32px, @weight: 300);
|
|
774
774
|
}
|
|
775
775
|
|
|
776
|
-
@media (
|
|
776
|
+
@media (width <= 640px) {
|
|
777
777
|
.tablet-heading-xl-300-drive {
|
|
778
778
|
.font(var(--main-font), 24px, 32px, @weight: 300);
|
|
779
779
|
}
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
.font(var(--main-font), 22px, 28px, @weight: 400);
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
@media (
|
|
792
|
+
@media (width <= 640px) {
|
|
793
793
|
.tablet-heading-l-400-drive {
|
|
794
794
|
.font(var(--main-font), 22px, 28px, @weight: 400);
|
|
795
795
|
}
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
.font(var(--main-font), 18px, 24px, @weight: 300);
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
-
@media (
|
|
808
|
+
@media (width <= 640px) {
|
|
809
809
|
.tablet-heading-m-300-drive {
|
|
810
810
|
.font(var(--main-font), 18px, 24px, @weight: 300);
|
|
811
811
|
}
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
.font(var(--main-font), 18px, 26px, @weight: 500);
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
@media (
|
|
824
|
+
@media (width <= 640px) {
|
|
825
825
|
.tablet-heading-m-500-drive {
|
|
826
826
|
.font(var(--main-font), 18px, 26px, @weight: 500);
|
|
827
827
|
}
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
.font(var(--main-font), 16px, 20px, 0.16px, 500);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
@media (
|
|
840
|
+
@media (width <= 640px) {
|
|
841
841
|
.tablet-heading-s-500-drive {
|
|
842
842
|
.font(var(--main-font), 16px, 20px, 0.16px, 500);
|
|
843
843
|
}
|
|
@@ -861,7 +861,7 @@
|
|
|
861
861
|
.font(var(--main-font), 16px, 18px, 0.16px, 300);
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
-
@media (
|
|
864
|
+
@media (width <= 640px) {
|
|
865
865
|
.tablet-heading-s-300-drive {
|
|
866
866
|
.font(var(--main-font), 16px, 18px, 0.16px, 300);
|
|
867
867
|
}
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
.font(var(--data-font-drive), 32px, 40px, @arabic-font: var(--data-font-drive));
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
@media (
|
|
912
|
+
@media (width <= 640px) {
|
|
913
913
|
.tablet-data-xl-drive {
|
|
914
914
|
.font(var(--data-font-drive), 32px, 40px, @arabic-font: var(--data-font-drive));
|
|
915
915
|
}
|
|
@@ -925,7 +925,7 @@
|
|
|
925
925
|
.font(var(--data-font-drive), 20px, 24px, @arabic-font: var(--data-font-drive));
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
@media (
|
|
928
|
+
@media (width <= 640px) {
|
|
929
929
|
.tablet-data-l-drive {
|
|
930
930
|
.font(var(--data-font-drive), 20px, 24px, @arabic-font: var(--data-font-drive));
|
|
931
931
|
}
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
.font(var(--data-font-drive), 16px, 21px, @arabic-font: var(--data-font-drive));
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
@media (
|
|
944
|
+
@media (width <= 640px) {
|
|
945
945
|
.tablet-data-m-drive {
|
|
946
946
|
.font(var(--data-font-drive), 16px, 21px, @arabic-font: var(--data-font-drive));
|
|
947
947
|
}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
.font(var(--data-font-drive), 16px, 24px, @arabic-font: var(--data-font-drive));
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
@media (
|
|
960
|
+
@media (width <= 640px) {
|
|
961
961
|
.tablet-data-s-drive {
|
|
962
962
|
.font(var(--data-font-drive), 16px, 24px, @arabic-font: var(--data-font-drive));
|
|
963
963
|
}
|
|
@@ -33,8 +33,13 @@ const DataFeedInner = ({ entities, columns, feedWrappers, className, expanded, o
|
|
|
33
33
|
const { collapsedColumnsQty = 0, onFeedEnd, visibleColumns } = options;
|
|
34
34
|
const feedRef = (0, react_1.useRef)(null);
|
|
35
35
|
const lazyRenderTimerRef = (0, react_1.useRef)(0);
|
|
36
|
+
const feedEndFiredRef = (0, react_1.useRef)(false);
|
|
37
|
+
const prevEntitiesRef = (0, react_1.useRef)(entities);
|
|
36
38
|
(0, react_1.useEffect)(() => {
|
|
37
39
|
setPages(1);
|
|
40
|
+
// Re-arm the once-per-approach guard on a paginated reload (activePage change); in-place
|
|
41
|
+
// entity-list changes re-arm via the entities effect below.
|
|
42
|
+
feedEndFiredRef.current = false;
|
|
38
43
|
if (feedRef.current) {
|
|
39
44
|
feedRef.current.scrollTop = 0;
|
|
40
45
|
}
|
|
@@ -82,11 +87,21 @@ const DataFeedInner = ({ entities, columns, feedWrappers, className, expanded, o
|
|
|
82
87
|
newVisibleRows.forEach(row => newRowsSet.add(row));
|
|
83
88
|
setVisibleRows(newRowsSet);
|
|
84
89
|
}
|
|
85
|
-
|
|
90
|
+
const closeToTheEnd = checkCloseToTheEnd(feedRef.current);
|
|
91
|
+
if (visibleRows.size && closeToTheEnd) {
|
|
86
92
|
if (entities.length > data.length) {
|
|
87
93
|
setPages(pages + 1);
|
|
88
94
|
}
|
|
89
|
-
onFeedEnd
|
|
95
|
+
// Fire onFeedEnd once per approach to the bottom (re-armed below once scrolled out),
|
|
96
|
+
// matching DataGrid.onScrollEnd. Without the guard the consumer is called on every
|
|
97
|
+
// animation frame near the bottom and has to debounce it itself.
|
|
98
|
+
if (!feedEndFiredRef.current) {
|
|
99
|
+
feedEndFiredRef.current = true;
|
|
100
|
+
onFeedEnd && onFeedEnd();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else if (!closeToTheEnd) {
|
|
104
|
+
feedEndFiredRef.current = false;
|
|
90
105
|
}
|
|
91
106
|
});
|
|
92
107
|
}, [itemsMap, visibleRows, setVisibleRows, onFeedEnd, pages, setPages, entities, data.length]);
|
|
@@ -95,6 +110,17 @@ const DataFeedInner = ({ entities, columns, feedWrappers, className, expanded, o
|
|
|
95
110
|
(_a = zen_1.zen.cancelAnimationFrame) === null || _a === void 0 ? void 0 : _a.call(zen_1.zen, lazyRenderTimerRef.current);
|
|
96
111
|
lazyRenderTimerRef.current = scheduleVisibleChanges();
|
|
97
112
|
}, [scheduleVisibleChanges]);
|
|
113
|
+
(0, react_1.useEffect)(() => {
|
|
114
|
+
// An entity-list change (in-place filter/sort swap, or appended rows) re-arms the once-per-approach
|
|
115
|
+
// guard and re-checks fit, so a short result set still requests the next page and a stale guard
|
|
116
|
+
// can't suppress the next fire. Keyed on `entities`, not the internal `data` slice, so progressive
|
|
117
|
+
// `setPages` reveals don't reset the guard and cause repeat fires.
|
|
118
|
+
if (prevEntitiesRef.current !== entities) {
|
|
119
|
+
prevEntitiesRef.current = entities;
|
|
120
|
+
feedEndFiredRef.current = false;
|
|
121
|
+
scheduleLazyRender();
|
|
122
|
+
}
|
|
123
|
+
}, [entities, scheduleLazyRender]);
|
|
98
124
|
const handleScroll = (0, react_1.useCallback)(() => {
|
|
99
125
|
scheduleLazyRender();
|
|
100
126
|
}, [scheduleLazyRender]);
|
|
@@ -37,6 +37,6 @@ function ActionsButton({ action, entity }) {
|
|
|
37
37
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(actionsColumnCell_1.ActionColumnCell, { ref: buttonRef, tag: action.createLink !== undefined ? "a" : "button", hash: action.id, title: action.createTitle(entity), href: action.createLink !== undefined ? action.createLink(entity) : undefined, icon: action.icon, onClick: e => {
|
|
38
38
|
setIsMenuOpen(!isMenuOpen);
|
|
39
39
|
action.handler && action.handler(entity, e.target);
|
|
40
|
-
} }, action.id), items.length ? ((0, jsx_runtime_1.jsx)(controlledMenu_1.ControlledMenu, { triggerRef: buttonRef, alignment: "bottom-
|
|
40
|
+
} }, action.id), items.length ? ((0, jsx_runtime_1.jsx)(controlledMenu_1.ControlledMenu, { triggerRef: buttonRef, alignment: "bottom-end", isOpen: isMenuOpen, setIsOpen: setIsMenuOpen, title: action.createTitle(entity), children: items }, entityId + "-" + action.id + "-menu")) : null] }));
|
|
41
41
|
}
|
|
42
42
|
exports.ActionsButton = ActionsButton;
|
|
@@ -220,7 +220,7 @@ const withFlexibleColumns = DataGridComponent => {
|
|
|
220
220
|
}) : (0, jsx_runtime_1.jsx)(popup_1.Popup, {
|
|
221
221
|
ariaLabel: translate("Select visible columns"),
|
|
222
222
|
triggerRef: popupTriggerRef,
|
|
223
|
-
alignment: "bottom-
|
|
223
|
+
alignment: "bottom-end",
|
|
224
224
|
children: (0, jsx_runtime_1.jsx)(columnSettings_1.ColumnSettings, {
|
|
225
225
|
onReset: onResetListener,
|
|
226
226
|
children: listOfColumns
|
|
@@ -294,7 +294,7 @@ const withSelectableRows = DataGridComponent => {
|
|
|
294
294
|
triggerRef: selectMenuRef,
|
|
295
295
|
isOpen: isOpen,
|
|
296
296
|
onOpenChange: setIsOpen,
|
|
297
|
-
alignment: "bottom-
|
|
297
|
+
alignment: "bottom-start",
|
|
298
298
|
children: (0, jsx_runtime_1.jsx)(selectList_1.SelectList, {
|
|
299
299
|
id: selectId,
|
|
300
300
|
title: translate("Select menu"),
|