@linzjs/step-ag-grid 7.18.0 → 7.19.1
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.
|
@@ -8,6 +8,7 @@ export declare const findCellContains: (rowId: number | string, colId: string, t
|
|
|
8
8
|
export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
|
|
9
9
|
export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
|
|
10
10
|
export declare const isCellReadOnly: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<boolean>;
|
|
11
|
+
export declare const findOpenPopover: () => Promise<HTMLElement>;
|
|
11
12
|
export declare const queryMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement | null>;
|
|
12
13
|
export declare const findMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement>;
|
|
13
14
|
export declare const validateMenuOptions: (rowId: number | string, colId: string, expectedMenuOptions: Array<string>) => Promise<boolean>;
|
|
@@ -26,5 +27,6 @@ export declare const typeInputByPlaceholder: (value: string, placeholder: string
|
|
|
26
27
|
export declare const typeOtherInput: (value: string) => Promise<void>;
|
|
27
28
|
export declare const typeOtherTextArea: (value: string) => Promise<void>;
|
|
28
29
|
export declare const closeMenu: () => void;
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const closePopover: () => void;
|
|
31
|
+
export declare const findActionButton: (text: string, container?: HTMLElement) => Promise<HTMLElement>;
|
|
32
|
+
export declare const clickActionButton: (text: string, container?: HTMLElement) => Promise<void>;
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -3983,7 +3983,7 @@ var GridFormPopoverMenu = function (props) {
|
|
|
3983
3983
|
* Popout burger menu
|
|
3984
3984
|
*/
|
|
3985
3985
|
var GridPopoverMenu = function (colDef, custom) {
|
|
3986
|
-
return GridCell(__assign(__assign({ maxWidth: 40, editable: colDef.editable != null ? colDef.editable : true, cellStyle: { justifyContent: "center" }, cellRenderer: GridRenderPopoutMenuCell }, colDef), { cellRendererParams: {
|
|
3986
|
+
return GridCell(__assign(__assign({ minWidth: 40, maxWidth: 40, width: 40, editable: colDef.editable != null ? colDef.editable : true, cellStyle: { justifyContent: "center" }, cellRenderer: GridRenderPopoutMenuCell }, colDef), { cellRendererParams: {
|
|
3987
3987
|
// Menus open on single click, this parameter is picked up in Grid.tsx
|
|
3988
3988
|
singleClickEdit: true
|
|
3989
3989
|
} }), __assign({ editor: GridFormPopoverMenu }, custom));
|
|
@@ -24625,7 +24625,7 @@ var editCell = function (rowId, colId, within) { return __awaiter(void 0, void 0
|
|
|
24625
24625
|
}); })];
|
|
24626
24626
|
case 1:
|
|
24627
24627
|
_a.sent();
|
|
24628
|
-
return [4 /*yield*/, waitForWrapper(
|
|
24628
|
+
return [4 /*yield*/, waitForWrapper(findOpenPopover)];
|
|
24629
24629
|
case 2:
|
|
24630
24630
|
_a.sent();
|
|
24631
24631
|
return [2 /*return*/];
|
|
@@ -24643,14 +24643,14 @@ var isCellReadOnly = function (rowId, colId, within) { return __awaiter(void 0,
|
|
|
24643
24643
|
}
|
|
24644
24644
|
});
|
|
24645
24645
|
}); };
|
|
24646
|
-
var
|
|
24646
|
+
var findOpenPopover = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24647
24647
|
return [2 /*return*/, findQuick({ classes: ".szh-menu--state-open" })];
|
|
24648
24648
|
}); }); };
|
|
24649
24649
|
var queryMenuOption = function (menuOptionText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24650
24650
|
var openMenu, els, matcher, result;
|
|
24651
24651
|
return __generator(this, function (_a) {
|
|
24652
24652
|
switch (_a.label) {
|
|
24653
|
-
case 0: return [4 /*yield*/,
|
|
24653
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24654
24654
|
case 1:
|
|
24655
24655
|
openMenu = _a.sent();
|
|
24656
24656
|
return [4 /*yield*/, getQueriesForElement(openMenu).findAllByRole("menuitem")];
|
|
@@ -24690,7 +24690,7 @@ var validateMenuOptions = function (rowId, colId, expectedMenuOptions) { return
|
|
|
24690
24690
|
case 0: return [4 /*yield*/, editCell(rowId, colId)];
|
|
24691
24691
|
case 1:
|
|
24692
24692
|
_a.sent();
|
|
24693
|
-
return [4 /*yield*/,
|
|
24693
|
+
return [4 /*yield*/, findOpenPopover()];
|
|
24694
24694
|
case 2:
|
|
24695
24695
|
openMenu = _a.sent();
|
|
24696
24696
|
return [4 /*yield*/, getQueriesForElement(openMenu).findAllByRole("menuitem")];
|
|
@@ -24749,7 +24749,7 @@ var getMultiSelectOptions = function () { return __awaiter(void 0, void 0, void
|
|
|
24749
24749
|
var openMenu;
|
|
24750
24750
|
return __generator(this, function (_a) {
|
|
24751
24751
|
switch (_a.label) {
|
|
24752
|
-
case 0: return [4 /*yield*/,
|
|
24752
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24753
24753
|
case 1:
|
|
24754
24754
|
openMenu = _a.sent();
|
|
24755
24755
|
return [2 /*return*/, getAllQuick({ role: "menuitem", child: { tagName: "input,textarea" } }, openMenu).map(function (input) {
|
|
@@ -24766,7 +24766,7 @@ var findMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24766
24766
|
var openMenu;
|
|
24767
24767
|
return __generator(this, function (_a) {
|
|
24768
24768
|
switch (_a.label) {
|
|
24769
|
-
case 0: return [4 /*yield*/,
|
|
24769
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24770
24770
|
case 1:
|
|
24771
24771
|
openMenu = _a.sent();
|
|
24772
24772
|
return [2 /*return*/, getQuick({ role: "menuitem", child: { tagName: "input[value='".concat(value, "']") } }, openMenu)];
|
|
@@ -24787,39 +24787,27 @@ var clickMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24787
24787
|
}); };
|
|
24788
24788
|
var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24789
24789
|
return __generator(this, function (_a) {
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
24795
|
-
|
|
24796
|
-
|
|
24797
|
-
|
|
24798
|
-
|
|
24799
|
-
|
|
24800
|
-
|
|
24801
|
-
|
|
24802
|
-
|
|
24803
|
-
|
|
24804
|
-
|
|
24805
|
-
|
|
24806
|
-
}); })];
|
|
24807
|
-
case 1:
|
|
24808
|
-
_a.sent();
|
|
24809
|
-
return [2 /*return*/];
|
|
24810
|
-
}
|
|
24811
|
-
});
|
|
24812
|
-
}); };
|
|
24813
|
-
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24814
|
-
return __generator(this, function (_a) {
|
|
24815
|
-
switch (_a.label) {
|
|
24816
|
-
case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[type='text'], textarea" } })];
|
|
24817
|
-
case 1:
|
|
24818
|
-
_a.sent();
|
|
24819
|
-
return [2 /*return*/];
|
|
24820
|
-
}
|
|
24790
|
+
return [2 /*return*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24791
|
+
var openMenu, input;
|
|
24792
|
+
return __generator(this, function (_a) {
|
|
24793
|
+
switch (_a.label) {
|
|
24794
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24795
|
+
case 1:
|
|
24796
|
+
openMenu = _a.sent();
|
|
24797
|
+
return [4 /*yield*/, findQuick(filter, openMenu)];
|
|
24798
|
+
case 2:
|
|
24799
|
+
input = _a.sent();
|
|
24800
|
+
userEvent.clear(input);
|
|
24801
|
+
userEvent.type(input, value);
|
|
24802
|
+
return [2 /*return*/];
|
|
24803
|
+
}
|
|
24804
|
+
});
|
|
24805
|
+
}); })];
|
|
24821
24806
|
});
|
|
24822
24807
|
}); };
|
|
24808
|
+
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24809
|
+
return [2 /*return*/, typeInput(value, { child: { tagName: "input[type='text'], textarea" } })];
|
|
24810
|
+
}); }); };
|
|
24823
24811
|
var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24824
24812
|
var labels, inputId;
|
|
24825
24813
|
return __generator(this, function (_a) {
|
|
@@ -24842,39 +24830,19 @@ var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, vo
|
|
|
24842
24830
|
}); };
|
|
24843
24831
|
var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24844
24832
|
return __generator(this, function (_a) {
|
|
24845
|
-
|
|
24846
|
-
|
|
24847
|
-
|
|
24848
|
-
})];
|
|
24849
|
-
case 1:
|
|
24850
|
-
_a.sent();
|
|
24851
|
-
return [2 /*return*/];
|
|
24852
|
-
}
|
|
24853
|
-
});
|
|
24854
|
-
}); };
|
|
24855
|
-
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24856
|
-
return __generator(this, function (_a) {
|
|
24857
|
-
switch (_a.label) {
|
|
24858
|
-
case 0: return [4 /*yield*/, typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } })];
|
|
24859
|
-
case 1:
|
|
24860
|
-
_a.sent();
|
|
24861
|
-
return [2 /*return*/];
|
|
24862
|
-
}
|
|
24863
|
-
});
|
|
24864
|
-
}); };
|
|
24865
|
-
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24866
|
-
return __generator(this, function (_a) {
|
|
24867
|
-
switch (_a.label) {
|
|
24868
|
-
case 0: return [4 /*yield*/, typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } })];
|
|
24869
|
-
case 1:
|
|
24870
|
-
_a.sent();
|
|
24871
|
-
return [2 /*return*/];
|
|
24872
|
-
}
|
|
24833
|
+
return [2 /*return*/, typeInput(value, {
|
|
24834
|
+
child: { tagName: "input[placeholder='".concat(placeholder, "'], textarea[placeholder='").concat(placeholder, "']") }
|
|
24835
|
+
})];
|
|
24873
24836
|
});
|
|
24874
24837
|
}); };
|
|
24875
|
-
var
|
|
24876
|
-
|
|
24877
|
-
};
|
|
24838
|
+
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24839
|
+
return [2 /*return*/, typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } })];
|
|
24840
|
+
}); }); };
|
|
24841
|
+
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24842
|
+
return [2 /*return*/, typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } })];
|
|
24843
|
+
}); }); };
|
|
24844
|
+
var closeMenu = function () { return userEvent.click(document.body); };
|
|
24845
|
+
var closePopover = function () { return userEvent.click(document.body); };
|
|
24878
24846
|
var findActionButton = function (text, container) {
|
|
24879
24847
|
return findQuick({ tagName: "button", child: { classes: ".ActionButton-minimalAreaDisplay", text: text } }, container);
|
|
24880
24848
|
};
|
|
@@ -24900,5 +24868,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
|
|
|
24900
24868
|
});
|
|
24901
24869
|
}); };
|
|
24902
24870
|
|
|
24903
|
-
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, GenericCellEditorComponentWrapper, Grid, GridCell, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridPopoutEditMultiSelect, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionValueFormatter, bearingNumberParser, bearingStringValidator, bearingValueFormatter, clickActionButton, clickMenuOption, clickMultiSelectOption, closeMenu, convertDDToDMS, countRows, deselectRow, editCell, findActionButton, findCell, findCellContains, findMenuOption, findMultiSelectOption, findParentWithClass, findRow, fnOrVar, getMultiSelectOptions, hasParentClass, isCellReadOnly, isFloat, isNotEmpty, openAndClickMenuOption, openAndFindMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeInputByLabel, typeInputByPlaceholder, typeOnlyInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, validateMenuOptions, wait$2 as wait };
|
|
24871
|
+
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, GenericCellEditorComponentWrapper, Grid, GridCell, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridPopoutEditMultiSelect, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionValueFormatter, bearingNumberParser, bearingStringValidator, bearingValueFormatter, clickActionButton, clickMenuOption, clickMultiSelectOption, closeMenu, closePopover, convertDDToDMS, countRows, deselectRow, editCell, findActionButton, findCell, findCellContains, findMenuOption, findMultiSelectOption, findOpenPopover, findParentWithClass, findRow, fnOrVar, getMultiSelectOptions, hasParentClass, isCellReadOnly, isFloat, isNotEmpty, openAndClickMenuOption, openAndFindMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeInputByLabel, typeInputByPlaceholder, typeOnlyInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, validateMenuOptions, wait$2 as wait };
|
|
24904
24872
|
//# sourceMappingURL=step-ag-grid.esm.js.map
|