@linzjs/step-ag-grid 7.16.1 → 7.16.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/step-ag-grid.esm.js +54 -24
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/testUtil.ts +11 -9
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -24753,57 +24753,87 @@ var clickMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24753
24753
|
});
|
|
24754
24754
|
}); };
|
|
24755
24755
|
var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24756
|
-
var openMenu, input;
|
|
24757
24756
|
return __generator(this, function (_a) {
|
|
24758
24757
|
switch (_a.label) {
|
|
24759
|
-
case 0: return [4 /*yield*/,
|
|
24758
|
+
case 0: return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
24759
|
+
var openMenu, input;
|
|
24760
|
+
return __generator(this, function (_a) {
|
|
24761
|
+
switch (_a.label) {
|
|
24762
|
+
case 0: return [4 /*yield*/, findOpenMenu()];
|
|
24763
|
+
case 1:
|
|
24764
|
+
openMenu = _a.sent();
|
|
24765
|
+
return [4 /*yield*/, findQuick(filter, openMenu)];
|
|
24766
|
+
case 2:
|
|
24767
|
+
input = _a.sent();
|
|
24768
|
+
userEvent.clear(input);
|
|
24769
|
+
userEvent.type(input, value);
|
|
24770
|
+
return [2 /*return*/];
|
|
24771
|
+
}
|
|
24772
|
+
});
|
|
24773
|
+
}); })];
|
|
24760
24774
|
case 1:
|
|
24761
|
-
|
|
24762
|
-
return [4 /*yield*/, findQuick(filter, openMenu)];
|
|
24763
|
-
case 2:
|
|
24764
|
-
input = _a.sent();
|
|
24765
|
-
userEvent.clear(input);
|
|
24766
|
-
userEvent.type(input, value);
|
|
24775
|
+
_a.sent();
|
|
24767
24776
|
return [2 /*return*/];
|
|
24768
24777
|
}
|
|
24769
24778
|
});
|
|
24770
24779
|
}); };
|
|
24771
24780
|
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24772
24781
|
return __generator(this, function (_a) {
|
|
24773
|
-
|
|
24774
|
-
|
|
24782
|
+
switch (_a.label) {
|
|
24783
|
+
case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[type='text']" } })];
|
|
24784
|
+
case 1:
|
|
24785
|
+
_a.sent();
|
|
24786
|
+
return [2 /*return*/];
|
|
24787
|
+
}
|
|
24775
24788
|
});
|
|
24776
24789
|
}); };
|
|
24777
24790
|
var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24778
24791
|
var labels;
|
|
24779
24792
|
return __generator(this, function (_a) {
|
|
24780
|
-
|
|
24781
|
-
|
|
24782
|
-
|
|
24783
|
-
|
|
24784
|
-
|
|
24785
|
-
|
|
24793
|
+
switch (_a.label) {
|
|
24794
|
+
case 0:
|
|
24795
|
+
labels = getAllQuick({ child: { tagName: "label" } }).filter(function (l) { return l.textContent == labelText; });
|
|
24796
|
+
if (labels.length == 0) {
|
|
24797
|
+
throw Error("Label not found for text: ".concat(labelText));
|
|
24798
|
+
}
|
|
24799
|
+
if (labels.length > 1) {
|
|
24800
|
+
throw Error("Multiple labels found for text: ".concat(labelText));
|
|
24801
|
+
}
|
|
24802
|
+
return [4 /*yield*/, typeInput(value, { child: { tagName: "input[id='".concat(labels[0].getAttribute("for"), "']") } })];
|
|
24803
|
+
case 1:
|
|
24804
|
+
_a.sent();
|
|
24805
|
+
return [2 /*return*/];
|
|
24786
24806
|
}
|
|
24787
|
-
typeInput(value, { child: { tagName: "input[id='".concat(labels[0].getAttribute("for"), "']") } });
|
|
24788
|
-
return [2 /*return*/];
|
|
24789
24807
|
});
|
|
24790
24808
|
}); };
|
|
24791
24809
|
var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24792
24810
|
return __generator(this, function (_a) {
|
|
24793
|
-
|
|
24794
|
-
|
|
24811
|
+
switch (_a.label) {
|
|
24812
|
+
case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[placeholder='".concat(placeholder, "']") } })];
|
|
24813
|
+
case 1:
|
|
24814
|
+
_a.sent();
|
|
24815
|
+
return [2 /*return*/];
|
|
24816
|
+
}
|
|
24795
24817
|
});
|
|
24796
24818
|
}); };
|
|
24797
24819
|
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24798
24820
|
return __generator(this, function (_a) {
|
|
24799
|
-
|
|
24800
|
-
|
|
24821
|
+
switch (_a.label) {
|
|
24822
|
+
case 0: return [4 /*yield*/, typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } })];
|
|
24823
|
+
case 1:
|
|
24824
|
+
_a.sent();
|
|
24825
|
+
return [2 /*return*/];
|
|
24826
|
+
}
|
|
24801
24827
|
});
|
|
24802
24828
|
}); };
|
|
24803
24829
|
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24804
24830
|
return __generator(this, function (_a) {
|
|
24805
|
-
|
|
24806
|
-
|
|
24831
|
+
switch (_a.label) {
|
|
24832
|
+
case 0: return [4 /*yield*/, typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } })];
|
|
24833
|
+
case 1:
|
|
24834
|
+
_a.sent();
|
|
24835
|
+
return [2 /*return*/];
|
|
24836
|
+
}
|
|
24807
24837
|
});
|
|
24808
24838
|
}); };
|
|
24809
24839
|
var closeMenu = function () {
|