@linzjs/step-ag-grid 7.17.1 → 7.19.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.
|
@@ -8,11 +8,13 @@ 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>;
|
|
14
15
|
export declare const clickMenuOption: (menuOptionText: string | RegExp) => Promise<void>;
|
|
15
16
|
export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<void>;
|
|
17
|
+
export declare const openAndFindMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
|
|
16
18
|
export declare const getMultiSelectOptions: () => Promise<{
|
|
17
19
|
v: string;
|
|
18
20
|
c: boolean;
|
|
@@ -25,5 +27,6 @@ export declare const typeInputByPlaceholder: (value: string, placeholder: string
|
|
|
25
27
|
export declare const typeOtherInput: (value: string) => Promise<void>;
|
|
26
28
|
export declare const typeOtherTextArea: (value: string) => Promise<void>;
|
|
27
29
|
export declare const closeMenu: () => void;
|
|
28
|
-
export declare const
|
|
29
|
-
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
|
@@ -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")];
|
|
@@ -24734,11 +24734,22 @@ var openAndClickMenuOption = function (rowId, colId, menuOptionText, within) { r
|
|
|
24734
24734
|
}
|
|
24735
24735
|
});
|
|
24736
24736
|
}); };
|
|
24737
|
+
var openAndFindMenuOption = function (rowId, colId, menuOptionText, within) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24738
|
+
return __generator(this, function (_a) {
|
|
24739
|
+
switch (_a.label) {
|
|
24740
|
+
case 0: return [4 /*yield*/, editCell(rowId, colId, within)];
|
|
24741
|
+
case 1:
|
|
24742
|
+
_a.sent();
|
|
24743
|
+
return [4 /*yield*/, findMenuOption(menuOptionText)];
|
|
24744
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
24745
|
+
}
|
|
24746
|
+
});
|
|
24747
|
+
}); };
|
|
24737
24748
|
var getMultiSelectOptions = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24738
24749
|
var openMenu;
|
|
24739
24750
|
return __generator(this, function (_a) {
|
|
24740
24751
|
switch (_a.label) {
|
|
24741
|
-
case 0: return [4 /*yield*/,
|
|
24752
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24742
24753
|
case 1:
|
|
24743
24754
|
openMenu = _a.sent();
|
|
24744
24755
|
return [2 /*return*/, getAllQuick({ role: "menuitem", child: { tagName: "input,textarea" } }, openMenu).map(function (input) {
|
|
@@ -24755,7 +24766,7 @@ var findMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24755
24766
|
var openMenu;
|
|
24756
24767
|
return __generator(this, function (_a) {
|
|
24757
24768
|
switch (_a.label) {
|
|
24758
|
-
case 0: return [4 /*yield*/,
|
|
24769
|
+
case 0: return [4 /*yield*/, findOpenPopover()];
|
|
24759
24770
|
case 1:
|
|
24760
24771
|
openMenu = _a.sent();
|
|
24761
24772
|
return [2 /*return*/, getQuick({ role: "menuitem", child: { tagName: "input[value='".concat(value, "']") } }, openMenu)];
|
|
@@ -24776,39 +24787,27 @@ var clickMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24776
24787
|
}); };
|
|
24777
24788
|
var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24778
24789
|
return __generator(this, function (_a) {
|
|
24779
|
-
|
|
24780
|
-
|
|
24781
|
-
|
|
24782
|
-
|
|
24783
|
-
|
|
24784
|
-
|
|
24785
|
-
|
|
24786
|
-
|
|
24787
|
-
|
|
24788
|
-
|
|
24789
|
-
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
24795
|
-
}); })];
|
|
24796
|
-
case 1:
|
|
24797
|
-
_a.sent();
|
|
24798
|
-
return [2 /*return*/];
|
|
24799
|
-
}
|
|
24800
|
-
});
|
|
24801
|
-
}); };
|
|
24802
|
-
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24803
|
-
return __generator(this, function (_a) {
|
|
24804
|
-
switch (_a.label) {
|
|
24805
|
-
case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[type='text'], textarea" } })];
|
|
24806
|
-
case 1:
|
|
24807
|
-
_a.sent();
|
|
24808
|
-
return [2 /*return*/];
|
|
24809
|
-
}
|
|
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
|
+
}); })];
|
|
24810
24806
|
});
|
|
24811
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
|
+
}); }); };
|
|
24812
24811
|
var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24813
24812
|
var labels, inputId;
|
|
24814
24813
|
return __generator(this, function (_a) {
|
|
@@ -24831,39 +24830,19 @@ var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, vo
|
|
|
24831
24830
|
}); };
|
|
24832
24831
|
var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24833
24832
|
return __generator(this, function (_a) {
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
24837
|
-
})];
|
|
24838
|
-
case 1:
|
|
24839
|
-
_a.sent();
|
|
24840
|
-
return [2 /*return*/];
|
|
24841
|
-
}
|
|
24833
|
+
return [2 /*return*/, typeInput(value, {
|
|
24834
|
+
child: { tagName: "input[placeholder='".concat(placeholder, "'], textarea[placeholder='").concat(placeholder, "']") }
|
|
24835
|
+
})];
|
|
24842
24836
|
});
|
|
24843
24837
|
}); };
|
|
24844
|
-
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24845
|
-
return
|
|
24846
|
-
|
|
24847
|
-
|
|
24848
|
-
|
|
24849
|
-
|
|
24850
|
-
|
|
24851
|
-
|
|
24852
|
-
});
|
|
24853
|
-
}); };
|
|
24854
|
-
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24855
|
-
return __generator(this, function (_a) {
|
|
24856
|
-
switch (_a.label) {
|
|
24857
|
-
case 0: return [4 /*yield*/, typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } })];
|
|
24858
|
-
case 1:
|
|
24859
|
-
_a.sent();
|
|
24860
|
-
return [2 /*return*/];
|
|
24861
|
-
}
|
|
24862
|
-
});
|
|
24863
|
-
}); };
|
|
24864
|
-
var closeMenu = function () {
|
|
24865
|
-
userEvent.click(document.body);
|
|
24866
|
-
};
|
|
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); };
|
|
24867
24846
|
var findActionButton = function (text, container) {
|
|
24868
24847
|
return findQuick({ tagName: "button", child: { classes: ".ActionButton-minimalAreaDisplay", text: text } }, container);
|
|
24869
24848
|
};
|
|
@@ -24889,5 +24868,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
|
|
|
24889
24868
|
});
|
|
24890
24869
|
}); };
|
|
24891
24870
|
|
|
24892
|
-
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, 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 };
|
|
24893
24872
|
//# sourceMappingURL=step-ag-grid.esm.js.map
|