@geotab/zenith 3.14.0-beta.2 → 3.14.0-beta.3
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 +2 -3
- package/dist/index.css +0 -13
- package/dist/table/table.js +7 -5
- package/esm/table/table.js +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,9 +53,8 @@ Markdown reference for each component (used by AI tooling and IRIS) lives in [`d
|
|
|
53
53
|
|
|
54
54
|
- Add `prefix` prop to `Summary` component for mixed-color value styling
|
|
55
55
|
- Add logical alignment support to `Tooltip` for correct RTL popup direction
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
- Apply Tech Content-reviewed copy updates to component strings and translations
|
|
56
|
+
- Tooltip/Popup alignment updates for RTL support
|
|
57
|
+
- Updated translations
|
|
59
58
|
- Fix `DataFeed` calling `onFeedEnd` repeatedly — now fires once per approach
|
|
60
59
|
- Fix RTL scroll navigation direction in `Tabs`, `FiltersBar`, and `SummaryTileBar`
|
|
61
60
|
- Fix nested `Menu` submenu opening on the wrong side in RTL
|
package/dist/index.css
CHANGED
|
@@ -6679,19 +6679,6 @@ html:lang(ar) .zen-table-number {
|
|
|
6679
6679
|
min-width: 0;
|
|
6680
6680
|
transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6681
6681
|
}
|
|
6682
|
-
.zen-table-wrapper--fit-content .zen-table__content {
|
|
6683
|
-
height: auto;
|
|
6684
|
-
}
|
|
6685
|
-
.zen-table-wrapper--fit-content .zen-table__table {
|
|
6686
|
-
height: auto;
|
|
6687
|
-
}
|
|
6688
|
-
.zen-table-wrapper--fit-content .zen-data-grid-wrapper {
|
|
6689
|
-
contain: layout style;
|
|
6690
|
-
height: auto;
|
|
6691
|
-
}
|
|
6692
|
-
.zen-table-wrapper--fit-content .zen-data-grid {
|
|
6693
|
-
flex-shrink: 0;
|
|
6694
|
-
}
|
|
6695
6682
|
.pie-chart-1 {
|
|
6696
6683
|
width: 100%;
|
|
6697
6684
|
height: 12.5rem;
|
package/dist/table/table.js
CHANGED
|
@@ -252,8 +252,10 @@ const TableInner = ({
|
|
|
252
252
|
const handleOnTriggerClick = (0, react_1.useCallback)(() => setSelectMode(prev => !prev), []);
|
|
253
253
|
const hasPostActions = (0, react_1.useMemo)(() => columnsPopup || isMobile && selectable || !isMobile && fullscreenButton || isFeedVisible, [columnsPopup, fullscreenButton, isFeedVisible, isMobile, selectable]);
|
|
254
254
|
const hasToolbar = (0, react_1.useMemo)(() => bulkActions || feedSortControl || pagination && !isMobile || other.length || columnsPopup || !isMobile && fullscreenButton || isFeedVisible, [bulkActions, columnsPopup, feedSortControl, fullscreenButton, isFeedVisible, isMobile, other.length, pagination]);
|
|
255
|
-
const gridAutoHeight = (0, react_1.useMemo)(() => contentHeight
|
|
256
|
-
const
|
|
255
|
+
const gridAutoHeight = (0, react_1.useMemo)(() => contentHeight ? `${contentHeight}px` : undefined, [contentHeight]);
|
|
256
|
+
const minHeight = "400px";
|
|
257
|
+
const gridHeight = (0, react_1.useMemo)(() => height || gridAutoHeight || minHeight, [gridAutoHeight, height]);
|
|
258
|
+
// TODO: disadvantages?
|
|
257
259
|
const {
|
|
258
260
|
gridClasses,
|
|
259
261
|
restClasses
|
|
@@ -261,10 +263,10 @@ const TableInner = ({
|
|
|
261
263
|
return (0, jsx_runtime_1.jsx)(layoutFullScreen_1.LayoutFullScreen, {
|
|
262
264
|
className: (0, classNames_1.classNames)([...gridClasses]),
|
|
263
265
|
children: (0, jsx_runtime_1.jsxs)("div", {
|
|
264
|
-
style:
|
|
266
|
+
style: {
|
|
265
267
|
height: gridHeight
|
|
266
|
-
}
|
|
267
|
-
className: (0, classNames_1.classNames)(["zen-table-wrapper",
|
|
268
|
+
},
|
|
269
|
+
className: (0, classNames_1.classNames)(["zen-table-wrapper", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
|
|
268
270
|
children: [hasToolbar ? (0, jsx_runtime_1.jsxs)(entitiesListActions_1.EntitiesListActions, {
|
|
269
271
|
gridType: isMobile ? deviceType_1.DeviceType.Mobile : deviceType_1.DeviceType.Desktop,
|
|
270
272
|
children: [(0, jsx_runtime_1.jsxs)(entitiesListActions_1.EntitiesListActions.Actions, {
|
package/esm/table/table.js
CHANGED
|
@@ -202,8 +202,10 @@ const TableInner = ({
|
|
|
202
202
|
const handleOnTriggerClick = useCallback(() => setSelectMode(prev => !prev), []);
|
|
203
203
|
const hasPostActions = useMemo(() => columnsPopup || isMobile && selectable || !isMobile && fullscreenButton || isFeedVisible, [columnsPopup, fullscreenButton, isFeedVisible, isMobile, selectable]);
|
|
204
204
|
const hasToolbar = useMemo(() => bulkActions || feedSortControl || pagination && !isMobile || other.length || columnsPopup || !isMobile && fullscreenButton || isFeedVisible, [bulkActions, columnsPopup, feedSortControl, fullscreenButton, isFeedVisible, isMobile, other.length, pagination]);
|
|
205
|
-
const gridAutoHeight = useMemo(() => contentHeight
|
|
206
|
-
const
|
|
205
|
+
const gridAutoHeight = useMemo(() => contentHeight ? `${contentHeight}px` : undefined, [contentHeight]);
|
|
206
|
+
const minHeight = "400px";
|
|
207
|
+
const gridHeight = useMemo(() => height || gridAutoHeight || minHeight, [gridAutoHeight, height]);
|
|
208
|
+
// TODO: disadvantages?
|
|
207
209
|
const {
|
|
208
210
|
gridClasses,
|
|
209
211
|
restClasses
|
|
@@ -211,10 +213,10 @@ const TableInner = ({
|
|
|
211
213
|
return _jsx(LayoutFullScreen, {
|
|
212
214
|
className: classNames([...gridClasses]),
|
|
213
215
|
children: _jsxs("div", {
|
|
214
|
-
style:
|
|
216
|
+
style: {
|
|
215
217
|
height: gridHeight
|
|
216
|
-
}
|
|
217
|
-
className: classNames(["zen-table-wrapper",
|
|
218
|
+
},
|
|
219
|
+
className: classNames(["zen-table-wrapper", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
|
|
218
220
|
children: [hasToolbar ? _jsxs(EntitiesListActions, {
|
|
219
221
|
gridType: isMobile ? DeviceType.Mobile : DeviceType.Desktop,
|
|
220
222
|
children: [_jsxs(EntitiesListActions.Actions, {
|