@linzjs/step-ag-grid 7.16.2 → 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
CHANGED
|
@@ -24779,40 +24779,61 @@ var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void
|
|
|
24779
24779
|
}); };
|
|
24780
24780
|
var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24781
24781
|
return __generator(this, function (_a) {
|
|
24782
|
-
|
|
24783
|
-
|
|
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
|
+
}
|
|
24784
24788
|
});
|
|
24785
24789
|
}); };
|
|
24786
24790
|
var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24787
24791
|
var labels;
|
|
24788
24792
|
return __generator(this, function (_a) {
|
|
24789
|
-
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
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*/];
|
|
24795
24806
|
}
|
|
24796
|
-
typeInput(value, { child: { tagName: "input[id='".concat(labels[0].getAttribute("for"), "']") } });
|
|
24797
|
-
return [2 /*return*/];
|
|
24798
24807
|
});
|
|
24799
24808
|
}); };
|
|
24800
24809
|
var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24801
24810
|
return __generator(this, function (_a) {
|
|
24802
|
-
|
|
24803
|
-
|
|
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
|
+
}
|
|
24804
24817
|
});
|
|
24805
24818
|
}); };
|
|
24806
24819
|
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24807
24820
|
return __generator(this, function (_a) {
|
|
24808
|
-
|
|
24809
|
-
|
|
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
|
+
}
|
|
24810
24827
|
});
|
|
24811
24828
|
}); };
|
|
24812
24829
|
var typeOtherTextArea = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24813
24830
|
return __generator(this, function (_a) {
|
|
24814
|
-
|
|
24815
|
-
|
|
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
|
+
}
|
|
24816
24837
|
});
|
|
24817
24838
|
}); };
|
|
24818
24839
|
var closeMenu = function () {
|