@linzjs/step-ag-grid 7.16.0 → 7.16.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.
- package/README.md +4 -0
- package/dist/src/utils/testUtil.d.ts +3 -1
- package/dist/step-ag-grid.esm.js +33 -27
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/testUtil.ts +24 -11
package/README.md
CHANGED
|
@@ -147,6 +147,7 @@ The following testing calls can be imported from step-ag-grid:
|
|
|
147
147
|
- selectCell
|
|
148
148
|
- editCell
|
|
149
149
|
- findOpenMenu
|
|
150
|
+
- validateMenuOptions
|
|
150
151
|
- queryMenuOption
|
|
151
152
|
- findMenuOption
|
|
152
153
|
- clickMenuOption
|
|
@@ -154,6 +155,9 @@ The following testing calls can be imported from step-ag-grid:
|
|
|
154
155
|
- getMultiSelectOptions
|
|
155
156
|
- findMultiSelectOption
|
|
156
157
|
- clickMultiSelectOption
|
|
158
|
+
- typeOnlyInput
|
|
159
|
+
- typeInputByLabel
|
|
160
|
+
- typeInputByPlaceholder
|
|
157
161
|
- typeOtherInput
|
|
158
162
|
- typeOtherTextArea
|
|
159
163
|
- closeMenu
|
|
@@ -18,7 +18,9 @@ export declare const getMultiSelectOptions: () => Promise<{
|
|
|
18
18
|
}[]>;
|
|
19
19
|
export declare const findMultiSelectOption: (value: string) => Promise<HTMLElement>;
|
|
20
20
|
export declare const clickMultiSelectOption: (value: string) => Promise<void>;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const typeOnlyInput: (value: string) => Promise<void>;
|
|
22
|
+
export declare const typeInputByLabel: (value: string, labelText: string) => Promise<void>;
|
|
23
|
+
export declare const typeInputByPlaceholder: (value: string, placeholder: string) => Promise<void>;
|
|
22
24
|
export declare const typeOtherInput: (value: string) => Promise<void>;
|
|
23
25
|
export declare const typeOtherTextArea: (value: string) => Promise<void>;
|
|
24
26
|
export declare const closeMenu: () => void;
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -24752,14 +24752,14 @@ var clickMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24752
24752
|
}
|
|
24753
24753
|
});
|
|
24754
24754
|
}); };
|
|
24755
|
-
var typeInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24755
|
+
var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24756
24756
|
var openMenu, input;
|
|
24757
24757
|
return __generator(this, function (_a) {
|
|
24758
24758
|
switch (_a.label) {
|
|
24759
24759
|
case 0: return [4 /*yield*/, findOpenMenu()];
|
|
24760
24760
|
case 1:
|
|
24761
24761
|
openMenu = _a.sent();
|
|
24762
|
-
return [4 /*yield*/, findQuick(
|
|
24762
|
+
return [4 /*yield*/, findQuick(filter, openMenu)];
|
|
24763
24763
|
case 2:
|
|
24764
24764
|
input = _a.sent();
|
|
24765
24765
|
userEvent.clear(input);
|
|
@@ -24768,36 +24768,42 @@ var typeInput = function (value) { return __awaiter(void 0, void 0, void 0, func
|
|
|
24768
24768
|
}
|
|
24769
24769
|
});
|
|
24770
24770
|
}); };
|
|
24771
|
-
var
|
|
24772
|
-
var openMenu, otherInput;
|
|
24771
|
+
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24773
24772
|
return __generator(this, function (_a) {
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
|
|
24778
|
-
|
|
24779
|
-
|
|
24780
|
-
|
|
24781
|
-
|
|
24782
|
-
|
|
24783
|
-
|
|
24773
|
+
typeInput(value, { child: { tagName: "input[type='text']" } });
|
|
24774
|
+
return [2 /*return*/];
|
|
24775
|
+
});
|
|
24776
|
+
}); };
|
|
24777
|
+
var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24778
|
+
var labels;
|
|
24779
|
+
return __generator(this, function (_a) {
|
|
24780
|
+
labels = getAllQuick({ child: { tagName: "label" } }).filter(function (l) { return l.textContent == labelText; });
|
|
24781
|
+
if (labels.length == 0) {
|
|
24782
|
+
throw Error("Label not found for text: ".concat(labelText));
|
|
24784
24783
|
}
|
|
24784
|
+
if (labels.length > 1) {
|
|
24785
|
+
throw Error("Multiple labels found for text: ".concat(labelText));
|
|
24786
|
+
}
|
|
24787
|
+
typeInput(value, { child: { tagName: "input[id='".concat(labels[0].getAttribute("for"), "']") } });
|
|
24788
|
+
return [2 /*return*/];
|
|
24789
|
+
});
|
|
24790
|
+
}); };
|
|
24791
|
+
var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24792
|
+
return __generator(this, function (_a) {
|
|
24793
|
+
typeInput(value, { child: { tagName: "input[placeholder='".concat(placeholder, "']") } });
|
|
24794
|
+
return [2 /*return*/];
|
|
24795
|
+
});
|
|
24796
|
+
}); };
|
|
24797
|
+
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24798
|
+
return __generator(this, function (_a) {
|
|
24799
|
+
typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } });
|
|
24800
|
+
return [2 /*return*/];
|
|
24785
24801
|
});
|
|
24786
24802
|
}); };
|
|
24787
24803
|
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24788
|
-
var openMenu, otherTextArea;
|
|
24789
24804
|
return __generator(this, function (_a) {
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
case 1:
|
|
24793
|
-
openMenu = _a.sent();
|
|
24794
|
-
return [4 /*yield*/, findQuick({ classes: ".subComponent", child: { tagName: "textarea" } }, openMenu)];
|
|
24795
|
-
case 2:
|
|
24796
|
-
otherTextArea = _a.sent();
|
|
24797
|
-
userEvent.clear(otherTextArea);
|
|
24798
|
-
userEvent.type(otherTextArea, value);
|
|
24799
|
-
return [2 /*return*/];
|
|
24800
|
-
}
|
|
24805
|
+
typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } });
|
|
24806
|
+
return [2 /*return*/];
|
|
24801
24807
|
});
|
|
24802
24808
|
}); };
|
|
24803
24809
|
var closeMenu = function () {
|
|
@@ -24828,5 +24834,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
|
|
|
24828
24834
|
});
|
|
24829
24835
|
}); };
|
|
24830
24836
|
|
|
24831
|
-
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, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents,
|
|
24837
|
+
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, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeInputByLabel, typeInputByPlaceholder, typeOnlyInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, validateMenuOptions, wait$2 as wait };
|
|
24832
24838
|
//# sourceMappingURL=step-ag-grid.esm.js.map
|