@linzjs/step-ag-grid 7.1.1 → 7.3.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/dist/index.js +65 -41
- package/dist/index.js.map +1 -1
- package/dist/src/components/Grid.d.ts +2 -0
- package/dist/src/components/GridCellMultiSelectClassRules.d.ts +2 -0
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/testQuick.d.ts +2 -2
- package/dist/src/utils/testUtil.d.ts +5 -4
- package/dist/step-ag-grid.esm.js +64 -41
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +5 -0
- package/src/components/GridCell.tsx +2 -2
- package/src/components/GridCellMultiSelectClassRules.tsx +9 -0
- package/src/components/gridForm/GridFormDropDown.tsx +2 -2
- package/src/components/gridForm/GridFormMultiSelect.tsx +8 -1
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +1 -3
- package/src/index.ts +1 -1
- package/src/stories/grid/GridPopoutEditMultiSelect.stories.tsx +2 -29
- package/src/utils/testQuick.ts +15 -14
- package/src/utils/testUtil.ts +28 -15
- package/dist/src/components/GenericCellClass.d.ts +0 -2
- package/src/components/GenericCellClass.tsx +0 -15
|
@@ -17,6 +17,8 @@ export interface GridProps {
|
|
|
17
17
|
rowData: GridOptions["rowData"];
|
|
18
18
|
noRowsOverlayText?: string;
|
|
19
19
|
postSortRows?: GridOptions["postSortRows"];
|
|
20
|
+
animateRows?: boolean;
|
|
21
|
+
rowClassRules?: GridOptions["rowClassRules"];
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Wrapper for AgGrid to add commonly used functionality.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { Grid } from "./components/Grid";
|
|
|
12
12
|
export * from "./components/GridCell";
|
|
13
13
|
export { GridIcon } from "./components/GridIcon";
|
|
14
14
|
export { ComponentLoadingWrapper } from "./components/ComponentLoadingWrapper";
|
|
15
|
-
export {
|
|
15
|
+
export { GridCellMultiSelectClassRules } from "./components/GridCellMultiSelectClassRules";
|
|
16
16
|
export { GridLoadableCell } from "./components/GridLoadableCell";
|
|
17
17
|
export { useGridPopoverHook } from "./components/GridPopoverHook";
|
|
18
18
|
export { usePostSortRowsHook } from "./components/PostSortRowsHook";
|
|
@@ -12,14 +12,14 @@ import { IconName } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
|
|
|
12
12
|
export interface IQueryQuick {
|
|
13
13
|
testId?: string;
|
|
14
14
|
tagName?: "button" | "span" | "div" | "input" | "textarea" | any;
|
|
15
|
-
|
|
16
|
-
textContains?: string;
|
|
15
|
+
text?: string | RegExp;
|
|
17
16
|
icon?: IconName;
|
|
18
17
|
ariaLabel?: string;
|
|
19
18
|
role?: string;
|
|
20
19
|
classes?: string;
|
|
21
20
|
child?: IQueryQuick;
|
|
22
21
|
}
|
|
22
|
+
export declare const getMatcher: (matcherText: string | RegExp) => (e: HTMLElement) => boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Query by filter.
|
|
25
25
|
*
|
|
@@ -3,12 +3,13 @@ export declare const queryRow: (rowId: number | string, within?: HTMLElement) =>
|
|
|
3
3
|
export declare const selectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
|
|
4
4
|
export declare const deselectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
|
|
5
5
|
export declare const findCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<HTMLElement>;
|
|
6
|
+
export declare const cellContains: (rowId: number | string, colId: string, text: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
|
|
6
7
|
export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
|
|
7
8
|
export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
|
|
8
|
-
export declare const queryMenuOption: (menuOptionText: string) => Promise<HTMLElement | null>;
|
|
9
|
-
export declare const findMenuOption: (menuOptionText: string) => Promise<HTMLElement>;
|
|
10
|
-
export declare const clickMenuOption: (menuOptionText: string) => Promise<void>;
|
|
11
|
-
export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string, within?: HTMLElement) => Promise<void>;
|
|
9
|
+
export declare const queryMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement | null>;
|
|
10
|
+
export declare const findMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement>;
|
|
11
|
+
export declare const clickMenuOption: (menuOptionText: string | RegExp) => Promise<void>;
|
|
12
|
+
export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<void>;
|
|
12
13
|
export declare const getMultiSelectOptions: () => Promise<{
|
|
13
14
|
v: string;
|
|
14
15
|
c: boolean;
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2804,20 +2804,17 @@ var Grid = function (params) {
|
|
|
2804
2804
|
}, [columnDefs === null || columnDefs === void 0 ? void 0 : columnDefs.length, sizeColumnsToFit]);
|
|
2805
2805
|
return (jsxs("div", __assign({ "data-testid": params.dataTestId, className: clsx("Grid-container", "ag-theme-alpine", staleGrid && "Grid-sortIsStale") }, { children: [params.quickFilter && (jsx("div", __assign({ className: "Grid-quickFilter" }, { children: jsx("input", { "aria-label": "Search", className: "lui-margin-top-xxs lui-margin-bottom-xxs Grid-quickFilterBox", type: "text", placeholder: (_a = params.quickFilterPlaceholder) !== null && _a !== void 0 ? _a : "Search...", value: internalQuickFilter, onChange: function (event) {
|
|
2806
2806
|
setInternalQuickFilter(event.target.value);
|
|
2807
|
-
} }) }))), jsx(AgGridReact, { getRowId: function (params) { return "".concat(params.data.id); }, suppressRowClickSelection: true, rowSelection: "multiple", suppressBrowserResizeObserver: true, colResizeDefault: "shift", onFirstDataRendered: sizeColumnsToFit, onGridSizeChanged: sizeColumnsToFit, suppressClickEdit: true, onCellKeyPress: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, onCellEditingStopped: onCellEditingStopped, domLayout: params.domLayout, columnDefs: columnDefs, rowData: params.rowData, noRowsOverlayComponent: noRowsOverlayComponent, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: (_b = params.postSortRows) !== null && _b !== void 0 ? _b : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection })] })));
|
|
2807
|
+
} }) }))), jsx(AgGridReact, { animateRows: params.animateRows, rowClassRules: params.rowClassRules, defaultColDef: params.defaultColDef, getRowId: function (params) { return "".concat(params.data.id); }, suppressRowClickSelection: true, rowSelection: "multiple", suppressBrowserResizeObserver: true, colResizeDefault: "shift", onFirstDataRendered: sizeColumnsToFit, onGridSizeChanged: sizeColumnsToFit, suppressClickEdit: true, onCellKeyPress: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, onCellEditingStopped: onCellEditingStopped, domLayout: params.domLayout, columnDefs: columnDefs, rowData: params.rowData, noRowsOverlayComponent: noRowsOverlayComponent, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: (_b = params.postSortRows) !== null && _b !== void 0 ? _b : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection })] })));
|
|
2808
2808
|
};
|
|
2809
2809
|
|
|
2810
|
-
var
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
return
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
return rowSelected && api.getEditingCells().some(function (cell) { return cell.column.getColDef() === props.colDef; })
|
|
2819
|
-
? "ag-selected-for-edit"
|
|
2820
|
-
: "";
|
|
2810
|
+
var GridCellMultiSelectClassRules = {
|
|
2811
|
+
"ag-selected-for-edit": function (_a) {
|
|
2812
|
+
var api = _a.api, node = _a.node, colDef = _a.colDef;
|
|
2813
|
+
return api
|
|
2814
|
+
.getSelectedNodes()
|
|
2815
|
+
.map(function (row) { return row.id; })
|
|
2816
|
+
.includes(node.id) && api.getEditingCells().some(function (cell) { return cell.column.getColDef() === colDef; });
|
|
2817
|
+
}
|
|
2821
2818
|
};
|
|
2822
2819
|
|
|
2823
2820
|
function styleInject(css, ref) {
|
|
@@ -2895,7 +2892,7 @@ var GridCellRenderer = function (props) {
|
|
|
2895
2892
|
var GridCell = function (props, custom) {
|
|
2896
2893
|
var _a;
|
|
2897
2894
|
return __assign(__assign(__assign(__assign(__assign(__assign({ colId: props.field, sortable: !!((props === null || props === void 0 ? void 0 : props.field) || (props === null || props === void 0 ? void 0 : props.valueGetter)), resizable: true }, ((custom === null || custom === void 0 ? void 0 : custom.editor) && {
|
|
2898
|
-
|
|
2895
|
+
cellClassRules: GridCellMultiSelectClassRules,
|
|
2899
2896
|
editable: (_a = props.editable) !== null && _a !== void 0 ? _a : true,
|
|
2900
2897
|
cellEditor: GenericCellEditorComponentWrapper(custom)
|
|
2901
2898
|
})), { suppressKeyboardEvent: function (e) {
|
|
@@ -3347,7 +3344,7 @@ var GridFormDropDown = function (props) {
|
|
|
3347
3344
|
return (jsxs("div", __assign({ style: { display: "flex", flexDirection: "column", width: "100%" } }, { children: [jsx("input", { autoFocus: true, className: "LuiTextInput-input", ref: ref, type: "text", placeholder: (_b = props.filterPlaceholder) !== null && _b !== void 0 ? _b : "Placeholder", "data-testid": "filteredMenu-free-text-input", defaultValue: filter, "data-disableenterautosave": true, "data-allowtabtosave": true, onChange: function (e) { return setFilter(e.target.value); }, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }), props.filterHelpText && isNotEmpty(filter) && (jsx(FormError, { error: null, helpText: props.filterHelpText }))] })));
|
|
3348
3345
|
} })), jsx(MenuDivider, {}, "$$divider_filter")] }))), jsx(ComponentLoadingWrapper, __assign({ loading: !options, className: "GridFormDropDown-options" }, { children: jsxs(Fragment$1, { children: [options && options.length == (filteredValues === null || filteredValues === void 0 ? void 0 : filteredValues.length) && (jsx(MenuItem, __assign({ className: "GridPopoverEditDropDown-noOptions" }, { children: "No Options" }), "".concat(fieldToString(field), "-empty"))), options === null || options === void 0 ? void 0 : options.map(function (item, index) {
|
|
3349
3346
|
var _a;
|
|
3350
|
-
return item.value === MenuSeparatorString ? (jsx(MenuDivider, {}, "$$divider_".concat(index))) : item.value === MenuHeaderString ? (jsx(MenuHeader, { children: item.label }, "$$header_".concat(index))) : filteredValues.includes(item.value) ? null : (jsxs("div", { children: [
|
|
3347
|
+
return item.value === MenuSeparatorString ? (jsx(MenuDivider, {}, "$$divider_".concat(index))) : item.value === MenuHeaderString ? (jsx(MenuHeader, { children: item.label }, "$$header_".concat(index))) : filteredValues.includes(item.value) ? null : (jsxs("div", { children: [jsx(MenuItem, __assign({ disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== "boolean" ? item.disabled : "", value: item.value, onClick: function (e) {
|
|
3351
3348
|
if (item.subComponent) {
|
|
3352
3349
|
// toggle selection
|
|
3353
3350
|
setSelectedSubComponent(selectedSubComponent === item ? null : item);
|
|
@@ -3362,7 +3359,8 @@ var GridFormDropDown = function (props) {
|
|
|
3362
3359
|
: CloseReason.TAB_FORWARD
|
|
3363
3360
|
: CloseReason.CLICK).then();
|
|
3364
3361
|
}
|
|
3365
|
-
} }, { children:
|
|
3362
|
+
} }, { children: ((_a = item.label) !== null && _a !== void 0 ? _a : (item.value == null ? "<".concat(item.value, ">") : "".concat(item.value))) +
|
|
3363
|
+
(item.subComponent ? "..." : "") }), "".concat(fieldToString(field), "-").concat(index)), item.subComponent && selectedSubComponent === item && (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function (ref) { return (jsx(GridSubComponentContext.Provider, __assign({ value: {
|
|
3366
3364
|
context: { options: options },
|
|
3367
3365
|
data: data,
|
|
3368
3366
|
value: subSelectedValue,
|
|
@@ -3728,7 +3726,7 @@ var MenuRadioItem = function (props) {
|
|
|
3728
3726
|
e.keepOpen = true;
|
|
3729
3727
|
toggleValue(item);
|
|
3730
3728
|
}
|
|
3731
|
-
} }, { children: jsx(LuiCheckboxInput, { isChecked: (_a = item.checked) !== null && _a !== void 0 ? _a : false, value: "".concat(item.value), label: (_b = item.label) !== null && _b !== void 0 ? _b : (item.value == null ? "<".concat(item.value, ">") : "".concat(item.value)), inputProps: {
|
|
3729
|
+
} }, { children: jsx(LuiCheckboxInput, { isChecked: (_a = item.checked) !== null && _a !== void 0 ? _a : false, value: "".concat(item.value), label: jsxs(Fragment$1, { children: [item.warning && jsx(GridIcon, { icon: "ic_warning", title: item.warning }), (_b = item.label) !== null && _b !== void 0 ? _b : (item.value == null ? "<".concat(item.value, ">") : "".concat(item.value))] }), inputProps: {
|
|
3732
3730
|
onClick: function (e) {
|
|
3733
3731
|
// Click is handled by MenuItem onClick
|
|
3734
3732
|
e.preventDefault();
|
|
@@ -3908,7 +3906,7 @@ var GridFormPopoverMenu = function (props) {
|
|
|
3908
3906
|
* Popout burger menu
|
|
3909
3907
|
*/
|
|
3910
3908
|
var GridPopoverMenu = function (colDef, custom) {
|
|
3911
|
-
return GridCell(__assign(__assign({ maxWidth: 40, editable: colDef.editable != null ? colDef.editable : true, cellStyle: { justifyContent: "
|
|
3909
|
+
return GridCell(__assign(__assign({ maxWidth: 40, editable: colDef.editable != null ? colDef.editable : true, cellStyle: { justifyContent: "center" }, cellRenderer: GridRenderPopoutMenuCell }, colDef), { cellRendererParams: {
|
|
3912
3910
|
// Menus open on single click, this parameter is picked up in Grid.tsx
|
|
3913
3911
|
singleClickEdit: true
|
|
3914
3912
|
} }), __assign({ editor: GridFormPopoverMenu }, custom));
|
|
@@ -24238,6 +24236,12 @@ var queryAllBySelector = function (selector, container) {
|
|
|
24238
24236
|
return Array.from(container.querySelectorAll(selector));
|
|
24239
24237
|
};
|
|
24240
24238
|
var escapeSelectorParam = function (param) { return param.replace(/["\\]/g, "\\$&"); };
|
|
24239
|
+
var getMatcher = function (matcherText) {
|
|
24240
|
+
var textMatcher = typeof matcherText === "string"
|
|
24241
|
+
? function (text) { return text != null && text.toLowerCase() === matcherText.toLowerCase(); }
|
|
24242
|
+
: function (text) { return text != null && matcherText.test(text); };
|
|
24243
|
+
return function (e) { var _a, _b; return textMatcher((_a = e.innerHTML) === null || _a === void 0 ? void 0 : _a.trim()) || textMatcher((_b = e.innerText) === null || _b === void 0 ? void 0 : _b.trim()); };
|
|
24244
|
+
};
|
|
24241
24245
|
/**
|
|
24242
24246
|
* Build selector for quick operations.
|
|
24243
24247
|
*
|
|
@@ -24245,7 +24249,6 @@ var escapeSelectorParam = function (param) { return param.replace(/["\\]/g, "\\$
|
|
|
24245
24249
|
* @param container Optional container to search in.
|
|
24246
24250
|
*/
|
|
24247
24251
|
var quickSelector = function (props, container) {
|
|
24248
|
-
var _a, _b;
|
|
24249
24252
|
var selector = "";
|
|
24250
24253
|
var lastIQueryQuick = props;
|
|
24251
24254
|
for (var loop = props; loop; loop = loop.child) {
|
|
@@ -24262,16 +24265,9 @@ var quickSelector = function (props, container) {
|
|
|
24262
24265
|
throw "get/query/findQuick needs at least one defined parameter";
|
|
24263
24266
|
}
|
|
24264
24267
|
var els = queryAllBySelector(selector, container);
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
els = els.filter(
|
|
24268
|
-
}
|
|
24269
|
-
var textContains = (_b = lastIQueryQuick.textContains) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
24270
|
-
if (textContains != null) {
|
|
24271
|
-
els = els.filter(function (el) {
|
|
24272
|
-
return el.innerHTML.toLowerCase().indexOf(textContains) != -1 ||
|
|
24273
|
-
el.innerText.toLowerCase().indexOf(textContains) != -1;
|
|
24274
|
-
});
|
|
24268
|
+
if (lastIQueryQuick.text != null) {
|
|
24269
|
+
var matcher = getMatcher(lastIQueryQuick.text);
|
|
24270
|
+
els = els.filter(matcher);
|
|
24275
24271
|
}
|
|
24276
24272
|
return { selector: selector, els: els };
|
|
24277
24273
|
};
|
|
@@ -24286,7 +24282,7 @@ var queryQuick = function (filter, container) {
|
|
|
24286
24282
|
var _a;
|
|
24287
24283
|
var _b = quickSelector(filter, container), els = _b.els, selector = _b.selector;
|
|
24288
24284
|
if (els.length > 1) {
|
|
24289
|
-
throw "Found multiple(".concat(els.length, ") elements by selector ").concat(selector);
|
|
24285
|
+
throw "Found multiple(".concat(els.length, ") elements by selector ").concat(selector, "\n").concat(els.map(function (el, index) { var _a; return "".concat(index, ": ").concat((_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.innerHTML, "\n\n"); }));
|
|
24290
24286
|
}
|
|
24291
24287
|
return (_a = els[0]) !== null && _a !== void 0 ? _a : null;
|
|
24292
24288
|
};
|
|
@@ -24406,6 +24402,25 @@ var findCell = function (rowId, colId, within) { return __awaiter(void 0, void 0
|
|
|
24406
24402
|
}
|
|
24407
24403
|
});
|
|
24408
24404
|
}); };
|
|
24405
|
+
var cellContains = function (rowId, colId, text, within) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24406
|
+
return __generator(this, function (_a) {
|
|
24407
|
+
switch (_a.label) {
|
|
24408
|
+
case 0: return [4 /*yield*/, waitForWrapper(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24409
|
+
var row;
|
|
24410
|
+
return __generator(this, function (_a) {
|
|
24411
|
+
switch (_a.label) {
|
|
24412
|
+
case 0: return [4 /*yield*/, findRow(rowId, within)];
|
|
24413
|
+
case 1:
|
|
24414
|
+
row = _a.sent();
|
|
24415
|
+
return [4 /*yield*/, findQuick({ tagName: "[col-id='".concat(colId, "']"), text: text }, row)];
|
|
24416
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
24417
|
+
}
|
|
24418
|
+
});
|
|
24419
|
+
}); })];
|
|
24420
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
24421
|
+
}
|
|
24422
|
+
});
|
|
24423
|
+
}); };
|
|
24409
24424
|
var selectCell = function (rowId, colId, within) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24410
24425
|
return __generator(this, function (_a) {
|
|
24411
24426
|
switch (_a.label) {
|
|
@@ -24455,7 +24470,7 @@ var findOpenMenu = function () { return __awaiter(void 0, void 0, void 0, functi
|
|
|
24455
24470
|
return [2 /*return*/, findQuick({ classes: ".szh-menu--state-open" })];
|
|
24456
24471
|
}); }); };
|
|
24457
24472
|
var queryMenuOption = function (menuOptionText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24458
|
-
var openMenu, els, result;
|
|
24473
|
+
var openMenu, els, matcher, result;
|
|
24459
24474
|
return __generator(this, function (_a) {
|
|
24460
24475
|
switch (_a.label) {
|
|
24461
24476
|
case 0: return [4 /*yield*/, findOpenMenu()];
|
|
@@ -24464,22 +24479,30 @@ var queryMenuOption = function (menuOptionText) { return __awaiter(void 0, void
|
|
|
24464
24479
|
return [4 /*yield*/, getQueriesForElement(openMenu).findAllByRole("menuitem")];
|
|
24465
24480
|
case 2:
|
|
24466
24481
|
els = _a.sent();
|
|
24467
|
-
|
|
24482
|
+
matcher = getMatcher(menuOptionText);
|
|
24483
|
+
result = els.find(matcher);
|
|
24468
24484
|
return [2 /*return*/, result !== null && result !== void 0 ? result : null];
|
|
24469
24485
|
}
|
|
24470
24486
|
});
|
|
24471
24487
|
}); };
|
|
24472
24488
|
var findMenuOption = function (menuOptionText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24473
|
-
var menuOption;
|
|
24474
24489
|
return __generator(this, function (_a) {
|
|
24475
24490
|
switch (_a.label) {
|
|
24476
|
-
case 0: return [4 /*yield*/,
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24491
|
+
case 0: return [4 /*yield*/, waitForWrapper(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24492
|
+
var menuOption;
|
|
24493
|
+
return __generator(this, function (_a) {
|
|
24494
|
+
switch (_a.label) {
|
|
24495
|
+
case 0: return [4 /*yield*/, queryMenuOption(menuOptionText)];
|
|
24496
|
+
case 1:
|
|
24497
|
+
menuOption = _a.sent();
|
|
24498
|
+
if (menuOption == null) {
|
|
24499
|
+
throw Error("Unable to find menu option ".concat(menuOptionText));
|
|
24500
|
+
}
|
|
24501
|
+
return [2 /*return*/, menuOption];
|
|
24502
|
+
}
|
|
24503
|
+
});
|
|
24504
|
+
}); })];
|
|
24505
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
24483
24506
|
}
|
|
24484
24507
|
});
|
|
24485
24508
|
}); };
|
|
@@ -24591,7 +24614,7 @@ var closeMenu = function () {
|
|
|
24591
24614
|
userEvent.click(document.body);
|
|
24592
24615
|
};
|
|
24593
24616
|
var findActionButton = function (text, container) {
|
|
24594
|
-
return findQuick({ tagName: "button", child: { classes: ".ActionButton-minimalAreaDisplay",
|
|
24617
|
+
return findQuick({ tagName: "button", child: { classes: ".ActionButton-minimalAreaDisplay", text: text } }, container);
|
|
24595
24618
|
};
|
|
24596
24619
|
var clickActionButton = function (text, container) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24597
24620
|
return __generator(this, function (_a) {
|
|
@@ -24615,5 +24638,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
|
|
|
24615
24638
|
});
|
|
24616
24639
|
}); };
|
|
24617
24640
|
|
|
24618
|
-
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, FocusableItem, GenericCellEditorComponentWrapper,
|
|
24641
|
+
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, FocusableItem, GenericCellEditorComponentWrapper, Grid, GridCell, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridFormDropDown, GridFormMultiSelect, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridPopoutEditMultiSelect, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridRendererGenericCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionValueFormatter, bearingNumberParser, bearingStringValidator, bearingValueFormatter, cellContains, clickActionButton, clickMenuOption, clickMultiSelectOption, closeMenu, convertDDToDMS, deselectRow, editCell, findActionButton, findCell, findMenuOption, findMultiSelectOption, findRow, getMultiSelectOptions, hasParentClass, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, typeOtherInput, typeOtherTextArea, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait$2 as wait };
|
|
24619
24642
|
//# sourceMappingURL=step-ag-grid.esm.js.map
|