impact-ui 5.0.1-alpha.2 → 5.0.1-alpha.4
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/dist/_virtual/index3.js +4 -2
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +2 -4
- package/dist/_virtual/index6.js +2 -4
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/Table.types.d.ts +7 -8
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/TableV36/filterUtils.d.ts +0 -6
- package/dist/components/TableV36/filterUtils.d.ts.map +1 -1
- package/dist/components/TableV36/filterUtils.js +17 -62
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +113 -14
- package/dist/components/TableV36/tableUtils.d.ts +14 -0
- package/dist/components/TableV36/tableUtils.d.ts.map +1 -1
- package/dist/components/TableV36/tableUtils.js +32 -0
- package/dist/mcp-component-registry.json +7 -4
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/utils/helper.d.ts +0 -2
- package/dist/utils/helper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/TableV36/filterUtils.test.d.ts +0 -2
- package/dist/components/TableV36/filterUtils.test.d.ts.map +0 -1
|
@@ -14,4 +14,18 @@ export interface SearchHighlightSegment {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const getSearchHighlightSegments: (text: string | null | undefined, searchText: string | null | undefined) => SearchHighlightSegment[];
|
|
16
16
|
export declare const syncColumnSearchTextToGrid: (api: GridApi | null | undefined, searchText: string) => void;
|
|
17
|
+
export declare const TABLE_V36_FALLBACK_TOTAL_HEIGHT_PX = 500;
|
|
18
|
+
export interface TableV36FallbackHeights {
|
|
19
|
+
/** Value for `--ag-grid-height` (full grid block for `normal`, max row body for `autoHeight`). */
|
|
20
|
+
agGridHeightPx: number;
|
|
21
|
+
/** Max height for `.impact-ag-grid-table` (`500 −` Impact header / card padding). */
|
|
22
|
+
gridBlockPx: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* When `height` is omitted, keep `#myGrid` ≤ ~500px (or ≤ `totalHeightPx` when a caller passes
|
|
26
|
+
* a dynamically-measured budget).
|
|
27
|
+
* For `autoHeight`, subtract AG header and paging from the body cap so they are not stacked on
|
|
28
|
+
* top of `--ag-auto-height-max-body-height`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveTableV36FallbackHeights(container: HTMLElement, domLayout?: 'autoHeight' | 'normal', totalHeightPx?: number): TableV36FallbackHeights;
|
|
17
31
|
//# sourceMappingURL=tableUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableUtils.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,qBAAqB,GAAI,SAAS,cAAc,EAAE,KAAG,MAAM,EAgBvE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,KAAK,OAAO,GAAG,IAAI,GAAG,SAAS,EAC/B,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,KAC/B,IAYF,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B,GACrC,MAAM,MAAM,GAAG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AAM,CAAC;CACrB;AA0BD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,WAAW,EACtB,SAAS,GAAE,YAAY,GAAG,QAAmB,EAC7C,aAAa,GAAE,MAA2C,GACzD,uBAAuB,CAkBzB"}
|
|
@@ -52,9 +52,41 @@ const syncColumnSearchTextToGrid = (api, searchText) => {
|
|
|
52
52
|
}
|
|
53
53
|
api.refreshHeader();
|
|
54
54
|
};
|
|
55
|
+
const TABLE_V36_FALLBACK_TOTAL_HEIGHT_PX = 500;
|
|
56
|
+
function getTableV36FallbackExternalChromePx(container) {
|
|
57
|
+
const header = container.querySelector(".impact-table-main-header");
|
|
58
|
+
const headerPx = (header == null ? void 0 : header.offsetHeight) ?? 0;
|
|
59
|
+
const bulkActionBar = container.querySelector(".ia-bulk-action-bar");
|
|
60
|
+
const bulkActionBarPx = (bulkActionBar == null ? void 0 : bulkActionBar.offsetHeight) ?? 0;
|
|
61
|
+
let footerPx = 0;
|
|
62
|
+
const footer = container.querySelector(".table-footer-section");
|
|
63
|
+
if (footer) {
|
|
64
|
+
const footerPos = window.getComputedStyle(footer).position;
|
|
65
|
+
if (footerPos !== "absolute" && footerPos !== "fixed") {
|
|
66
|
+
footerPx = footer.offsetHeight ?? 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const style = window.getComputedStyle(container);
|
|
70
|
+
const containerVerticalChrome = (parseFloat(style.paddingTop) || 0) + (parseFloat(style.paddingBottom) || 0) + (parseFloat(style.borderTopWidth) || 0) + (parseFloat(style.borderBottomWidth) || 0);
|
|
71
|
+
return headerPx + bulkActionBarPx + footerPx + containerVerticalChrome;
|
|
72
|
+
}
|
|
73
|
+
function resolveTableV36FallbackHeights(container, domLayout = "normal", totalHeightPx = TABLE_V36_FALLBACK_TOTAL_HEIGHT_PX) {
|
|
74
|
+
const gridBlockPx = Math.max(0, totalHeightPx - getTableV36FallbackExternalChromePx(container));
|
|
75
|
+
if (domLayout === "normal") {
|
|
76
|
+
return { agGridHeightPx: gridBlockPx, gridBlockPx };
|
|
77
|
+
}
|
|
78
|
+
const paging = container.querySelector(".ag-paging-panel");
|
|
79
|
+
const agChrome = (paging == null ? void 0 : paging.offsetHeight) ?? 0;
|
|
80
|
+
return {
|
|
81
|
+
agGridHeightPx: Math.max(0, gridBlockPx - agChrome),
|
|
82
|
+
gridBlockPx
|
|
83
|
+
};
|
|
84
|
+
}
|
|
55
85
|
export {
|
|
86
|
+
TABLE_V36_FALLBACK_TOTAL_HEIGHT_PX,
|
|
56
87
|
collectVisibleLeafIds,
|
|
57
88
|
ensureColumnGroupsExpanded,
|
|
58
89
|
getSearchHighlightSegments,
|
|
90
|
+
resolveTableV36FallbackHeights,
|
|
59
91
|
syncColumnSearchTextToGrid
|
|
60
92
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-28T07:08:57.322Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"Menu": {
|
|
6
6
|
"title": "Components/Menu",
|
|
@@ -5381,7 +5381,7 @@
|
|
|
5381
5381
|
"rowBuffer": 8,
|
|
5382
5382
|
"animateRows": false,
|
|
5383
5383
|
"enableValueCache": false,
|
|
5384
|
-
"domLayout": "
|
|
5384
|
+
"domLayout": "autoHeight"
|
|
5385
5385
|
},
|
|
5386
5386
|
"HeavyCellRenderer": {
|
|
5387
5387
|
"rowCount": 10000,
|
|
@@ -5479,6 +5479,11 @@
|
|
|
5479
5479
|
"defaultValue": [],
|
|
5480
5480
|
"required": false
|
|
5481
5481
|
},
|
|
5482
|
+
"height": {
|
|
5483
|
+
"description": "Grid area height in px. Omit for ~500px total (minus table header + card container vertical padding).",
|
|
5484
|
+
"type": "number | string",
|
|
5485
|
+
"required": true
|
|
5486
|
+
},
|
|
5482
5487
|
"rowHeight": {
|
|
5483
5488
|
"description": "You can choose different height of the Row of the Table.",
|
|
5484
5489
|
"type": "string",
|
|
@@ -5916,7 +5921,6 @@
|
|
|
5916
5921
|
},
|
|
5917
5922
|
"storyArgs": {
|
|
5918
5923
|
"Default": {
|
|
5919
|
-
"tableHeader": "Table",
|
|
5920
5924
|
"cardContainer": true,
|
|
5921
5925
|
"emptyStateText": "No data to display",
|
|
5922
5926
|
"rowData": "carsData",
|
|
@@ -5966,7 +5970,6 @@
|
|
|
5966
5970
|
"viewPoint": "list",
|
|
5967
5971
|
"suppressRowClickSelection": true,
|
|
5968
5972
|
"suppressColumnMenu": true,
|
|
5969
|
-
"loading": true,
|
|
5970
5973
|
"defaultColDef": "{",
|
|
5971
5974
|
"maxWidth": 120
|
|
5972
5975
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as colorManipulator } from "../../../_virtual/colorManipulator.js";
|
|
2
2
|
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
|
-
import require$$1 from "../../../_virtual/
|
|
4
|
-
import require$$2 from "../../../_virtual/
|
|
3
|
+
import require$$1 from "../../../_virtual/index3.js";
|
|
4
|
+
import require$$2 from "../../../_virtual/index4.js";
|
|
5
5
|
var _interopRequireDefault = require$$0;
|
|
6
6
|
Object.defineProperty(colorManipulator, "__esModule", {
|
|
7
7
|
value: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../_virtual/index6.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
var hasRequiredReactIs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../_virtual/index5.js";
|
|
2
2
|
import { __require as requireReactIs_production } from "./cjs/react-is.production.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
if (process.env.NODE_ENV === "production") {
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -18,8 +18,6 @@ export interface ColumnDefinition {
|
|
|
18
18
|
isSearchable?: boolean;
|
|
19
19
|
inputProps?: Record<string, unknown>;
|
|
20
20
|
columnFieldsInAdvanceSearch?: string[];
|
|
21
|
-
/** Maps advance-search field names to AG Grid filterModel keys. Optional. */
|
|
22
|
-
columnFieldsFilterMap?: Record<string, string>;
|
|
23
21
|
toShowDuplicateColumnInAdvanceSearch?: boolean;
|
|
24
22
|
extra_params?: {
|
|
25
23
|
is_advance_search?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/utils/helper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC;IACvC,
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/utils/helper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,C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AAM,KAAG,MAM7B,CAAC;AAEd;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CASvE"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterUtils.test.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/filterUtils.test.ts"],"names":[],"mappings":""}
|