impact-ui 5.0.4-alpha.2 → 5.0.4-alpha.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/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +3 -3
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +2 -4
- package/dist/_virtual/index7.js +3 -3
- package/dist/_virtual/index8.js +3 -3
- package/dist/_virtual/index9.js +3 -3
- package/dist/components/DatePicker/DatePicker.types.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.d.ts +2 -0
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +32 -2
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +5 -1
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.js +2 -0
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +2 -0
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Select/Select.types.d.ts +7 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +44 -26
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +107 -115
- package/dist/components/TableV36/Table.types.d.ts +8 -7
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +39 -110
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +15 -14
- package/dist/components/TableV36/tableUtils.d.ts +0 -14
- package/dist/components/TableV36/tableUtils.d.ts.map +1 -1
- package/dist/components/TableV36/tableUtils.js +0 -32
- package/dist/mcp-component-registry.json +2 -7
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +256 -44
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/@mui/system/createStyled.js +6 -6
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableFunctions.tsx"],"names":[],"mappings":"AA8DA,eAAO,MAAM,oBAAoB,GAAI,WAAM,SAQ1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAG,QAM/B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,aAAQ,SAK5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAM,SAM9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,WAAM,EAAE,QAAG,SAM/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableFunctions.tsx"],"names":[],"mappings":"AA8DA,eAAO,MAAM,oBAAoB,GAAI,WAAM,SAQ1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAG,QAM/B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,aAAQ,SAK5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAM,SAM9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,WAAM,EAAE,QAAG,SAM/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+ItC,CAAC;AA+kBF,eAAO,MAAM,OAAO,mFAi5ClB,CAAC;AACH,eAAO,MAAM,yBAAyB,GAAI,iBAAY,WAgBrD,CAAC"}
|
|
@@ -73,11 +73,12 @@ const sortFunc = (columnData, sortBy, api) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
const getMainMenuItems = (params) => {
|
|
76
|
-
var _a, _b, _c;
|
|
76
|
+
var _a, _b, _c, _d, _e;
|
|
77
77
|
if (!(params == null ? void 0 : params.column)) {
|
|
78
78
|
return [];
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const onFontSizeChange = params.onFontSizeChange ?? ((_a = params.context) == null ? void 0 : _a.onFontSizeChange);
|
|
81
|
+
const onNumberFormatChange = params.onNumberFormatChange ?? ((_b = params.context) == null ? void 0 : _b.onNumberFormatChange);
|
|
81
82
|
const { colDef, pinned, sort, actualWidth } = params.column;
|
|
82
83
|
const columnMenuItems = [];
|
|
83
84
|
columnMenuItems.push(
|
|
@@ -128,7 +129,7 @@ const getMainMenuItems = (params) => {
|
|
|
128
129
|
onColMenuAutoAdjustClick(params);
|
|
129
130
|
},
|
|
130
131
|
// if extra.width property is not present- column is auto adjusted
|
|
131
|
-
checked: actualWidth !== ((
|
|
132
|
+
checked: actualWidth !== ((_c = colDef == null ? void 0 : colDef.extra) == null ? void 0 : _c.width)
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
name: "Custom width",
|
|
@@ -139,8 +140,8 @@ const getMainMenuItems = (params) => {
|
|
|
139
140
|
]);
|
|
140
141
|
},
|
|
141
142
|
// if extra.width property is present- column has custom width
|
|
142
|
-
checked: ((
|
|
143
|
-
disabled: !((
|
|
143
|
+
checked: ((_d = colDef == null ? void 0 : colDef.extra) == null ? void 0 : _d.width) === actualWidth,
|
|
144
|
+
disabled: !((_e = colDef == null ? void 0 : colDef.extra) == null ? void 0 : _e.width)
|
|
144
145
|
}
|
|
145
146
|
]
|
|
146
147
|
});
|
|
@@ -160,40 +161,40 @@ const getMainMenuItems = (params) => {
|
|
|
160
161
|
subMenu: [
|
|
161
162
|
{
|
|
162
163
|
name: "Full Number",
|
|
163
|
-
action: () => onNumberFormatChange("full")
|
|
164
|
+
action: () => onNumberFormatChange == null ? void 0 : onNumberFormatChange("full")
|
|
164
165
|
},
|
|
165
166
|
{
|
|
166
167
|
name: "In K",
|
|
167
|
-
action: () => onNumberFormatChange("thousand")
|
|
168
|
+
action: () => onNumberFormatChange == null ? void 0 : onNumberFormatChange("thousand")
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
171
|
name: "In Mn",
|
|
171
|
-
action: () => onNumberFormatChange("million")
|
|
172
|
+
action: () => onNumberFormatChange == null ? void 0 : onNumberFormatChange("million")
|
|
172
173
|
},
|
|
173
174
|
{
|
|
174
175
|
name: "In Bn",
|
|
175
|
-
action: () => onNumberFormatChange("billion")
|
|
176
|
+
action: () => onNumberFormatChange == null ? void 0 : onNumberFormatChange("billion")
|
|
176
177
|
}
|
|
177
178
|
],
|
|
178
|
-
disabled: !
|
|
179
|
+
disabled: !onNumberFormatChange
|
|
179
180
|
});
|
|
180
181
|
columnMenuItems.push({
|
|
181
182
|
name: "Font Size",
|
|
182
183
|
subMenu: [
|
|
183
184
|
{
|
|
184
185
|
name: "Small Font",
|
|
185
|
-
action: () => onFontSizeChange("small")
|
|
186
|
+
action: () => onFontSizeChange == null ? void 0 : onFontSizeChange("small")
|
|
186
187
|
},
|
|
187
188
|
{
|
|
188
189
|
name: "Medium Font",
|
|
189
|
-
action: () => onFontSizeChange("medium")
|
|
190
|
+
action: () => onFontSizeChange == null ? void 0 : onFontSizeChange("medium")
|
|
190
191
|
},
|
|
191
192
|
{
|
|
192
193
|
name: "Large Font",
|
|
193
|
-
action: () => onFontSizeChange("large")
|
|
194
|
+
action: () => onFontSizeChange == null ? void 0 : onFontSizeChange("large")
|
|
194
195
|
}
|
|
195
196
|
],
|
|
196
|
-
disabled: !
|
|
197
|
+
disabled: !onFontSizeChange
|
|
197
198
|
});
|
|
198
199
|
return columnMenuItems;
|
|
199
200
|
};
|
|
@@ -14,18 +14,4 @@ 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;
|
|
31
17
|
//# 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,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M,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B,GACrC,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,YAAY,MAAM,GAAG,IAAI,GAAG,SAAS,KACpC,sBAAsB,EAoBxB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,KAAK,OAAO,GAAG,IAAI,GAAG,SAAS,EAC/B,YAAY,MAAM,KACjB,IAOF,CAAC"}
|
|
@@ -52,41 +52,9 @@ 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
|
-
}
|
|
85
55
|
export {
|
|
86
|
-
TABLE_V36_FALLBACK_TOTAL_HEIGHT_PX,
|
|
87
56
|
collectVisibleLeafIds,
|
|
88
57
|
ensureColumnGroupsExpanded,
|
|
89
58
|
getSearchHighlightSegments,
|
|
90
|
-
resolveTableV36FallbackHeights,
|
|
91
59
|
syncColumnSearchTextToGrid
|
|
92
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-12T10:15:30.496Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"Menu": {
|
|
6
6
|
"title": "Components/Menu",
|
|
@@ -5405,7 +5405,7 @@
|
|
|
5405
5405
|
"rowBuffer": 8,
|
|
5406
5406
|
"animateRows": false,
|
|
5407
5407
|
"enableValueCache": false,
|
|
5408
|
-
"domLayout": "
|
|
5408
|
+
"domLayout": "normal"
|
|
5409
5409
|
},
|
|
5410
5410
|
"HeavyCellRenderer": {
|
|
5411
5411
|
"rowCount": 10000,
|
|
@@ -5512,11 +5512,6 @@
|
|
|
5512
5512
|
"defaultValue": [],
|
|
5513
5513
|
"required": false
|
|
5514
5514
|
},
|
|
5515
|
-
"height": {
|
|
5516
|
-
"description": "Grid area height in px. Omit for ~500px total (minus table header + card container vertical padding).",
|
|
5517
|
-
"type": "number | string",
|
|
5518
|
-
"required": true
|
|
5519
|
-
},
|
|
5520
5515
|
"rowHeight": {
|
|
5521
5516
|
"description": "You can choose different height of the Row of the Table.",
|
|
5522
5517
|
"type": "string",
|