@kong-ui-public/entities-plugins 9.223.1 → 9.223.2
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/filler/cypress/index.js +152 -149
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts +2 -2
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/record.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts +7 -11
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts +1 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/array.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/record.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts +3 -6
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts.map +1 -1
- package/dist/filler/playwright/index.js +89 -89
- package/package.json +6 -6
|
@@ -1,238 +1,241 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { s as a, i as w, c as S, g as k, w as v, a as A, b as B, d as F } from "../field-walker-_YAwDcC1.js";
|
|
2
|
+
const f = { scrollBehavior: "center" };
|
|
3
|
+
function m(i) {
|
|
4
|
+
cy.get(i).then((n) => {
|
|
5
|
+
var t;
|
|
6
|
+
(t = n[0]) == null || t.scrollIntoView({ block: "center", inline: "nearest" });
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function I(i) {
|
|
10
|
+
const { fieldKey: n, value: t } = i, e = a.field(n);
|
|
11
|
+
m(e), cy.get(e).then((o) => {
|
|
12
|
+
cy.wrap(o).clear(f), t != null && t !== "" && cy.wrap(o).type(String(t), f);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
function C(
|
|
15
|
-
const { fieldKey:
|
|
16
|
-
cy.get(
|
|
17
|
-
|
|
15
|
+
function C(i) {
|
|
16
|
+
const { fieldKey: n, value: t } = i, e = a.field(n);
|
|
17
|
+
m(e), cy.get(e).then((o) => {
|
|
18
|
+
cy.wrap(o).clear(f), t != null && cy.wrap(o).type(String(t), f);
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function E(
|
|
21
|
-
const { fieldKey:
|
|
22
|
-
e === !0 ? cy.get(
|
|
21
|
+
function E(i) {
|
|
22
|
+
const { fieldKey: n, value: t } = i, e = a.field(n);
|
|
23
|
+
m(e), t === !0 ? cy.get(e).check(f) : t === !1 && cy.get(e).uncheck(f);
|
|
23
24
|
}
|
|
24
|
-
function j(
|
|
25
|
-
var
|
|
26
|
-
const { fieldKey:
|
|
27
|
-
|
|
28
|
-
const g =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}), y.includes(a) && (cy.get(g).find(n).scrollIntoView(), cy.get(g).find(n).click());
|
|
25
|
+
function j(i) {
|
|
26
|
+
var u;
|
|
27
|
+
const { fieldKey: n, fieldSchema: t, value: e } = i, o = w(t), y = o ? Array.isArray(e) ? e : [e] : [e], d = a.field(n);
|
|
28
|
+
m(d), cy.get(d).click(f);
|
|
29
|
+
const g = a.selectTrigger(n);
|
|
30
|
+
for (const h of t.one_of ?? ((u = t.elements) == null ? void 0 : u.one_of) ?? [])
|
|
31
|
+
if (h != null) {
|
|
32
|
+
const l = o ? a.multiSelectItem(String(h)) : a.selectItem(String(h));
|
|
33
|
+
o && cy.get(g).find(l).within((c) => {
|
|
34
|
+
c.find("button.selected").length > 0 && cy.get("button").click(f);
|
|
35
|
+
}), y.includes(h) && cy.get(g).find(l).click(f);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function x(
|
|
39
|
-
const { fieldKey:
|
|
40
|
-
cy.get(
|
|
38
|
+
function x(i) {
|
|
39
|
+
const { fieldKey: n, value: t } = i, e = Array.isArray(t) ? t : [t], o = a.tagInput(n);
|
|
40
|
+
m(o), cy.get(o).type(e.join(","), f);
|
|
41
41
|
}
|
|
42
|
-
function M(
|
|
43
|
-
const { fieldKey:
|
|
44
|
-
cy.get("body").then((
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const h =
|
|
48
|
-
cy.get("body").then((
|
|
49
|
-
const
|
|
50
|
-
|
|
42
|
+
function M(i) {
|
|
43
|
+
const { fieldKey: n, value: t, onFillItem: e } = i, o = a.arrayTabContainer(n), y = a.arrayBasicContainer(n);
|
|
44
|
+
cy.get("body").then((d) => {
|
|
45
|
+
const g = d.find(o).length > 0, u = d.find(y).length > 0;
|
|
46
|
+
if (g || u) {
|
|
47
|
+
const h = a.arrayRemoveBtns(n), l = () => {
|
|
48
|
+
cy.get("body").then((c) => {
|
|
49
|
+
const r = c.find(h).first();
|
|
50
|
+
r.length > 0 && (cy.wrap(r).click(f), l());
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
if (
|
|
53
|
+
if (l(), !Array.isArray(t))
|
|
54
54
|
return;
|
|
55
|
-
for (let
|
|
56
|
-
const
|
|
57
|
-
cy.get(
|
|
55
|
+
for (let c = 0; c < t.length; c++) {
|
|
56
|
+
const r = a.arrayAddBtn(n);
|
|
57
|
+
m(r), cy.get(r).click(f), cy.get(a.arrayItem(n, c)).should("exist"), e(c, t[c]);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const { fieldKey:
|
|
64
|
-
cy.get("body").then((
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
cy.get(
|
|
62
|
+
function R(i) {
|
|
63
|
+
const { fieldKey: n, value: t, onFillChildren: e } = i, o = a.objectSwitch(n);
|
|
64
|
+
cy.get("body").then((y) => {
|
|
65
|
+
const d = y.find(o).length > 0;
|
|
66
|
+
if (t == null && d) {
|
|
67
|
+
cy.get(o).uncheck({ force: !0 });
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
d && (cy.get(o).check({ force: !0 }), cy.get(a.objectContent(n)).should("not.have.class", "ff-slide-active")), e();
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
if (!
|
|
75
|
-
throw new Error(`Unable to find map entry test id for "${
|
|
76
|
-
const
|
|
77
|
-
if (!
|
|
78
|
-
throw new Error(`Unable to extract map entry kid id from test id "${
|
|
79
|
-
return
|
|
73
|
+
function T(i, n) {
|
|
74
|
+
if (!i)
|
|
75
|
+
throw new Error(`Unable to find map entry test id for "${n}"`);
|
|
76
|
+
const t = i.match(/kid:\d+/);
|
|
77
|
+
if (!t)
|
|
78
|
+
throw new Error(`Unable to extract map entry kid id from test id "${i}"`);
|
|
79
|
+
return t[0];
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const { fieldKey:
|
|
83
|
-
cy.get("body").then((
|
|
84
|
-
const
|
|
85
|
-
|
|
81
|
+
function N(i) {
|
|
82
|
+
const { fieldKey: n, value: t, onFillEntry: e } = i, o = a.mapRemoveBtns(n), y = () => {
|
|
83
|
+
cy.get("body").then((g) => {
|
|
84
|
+
const u = g.find(o).first();
|
|
85
|
+
u.length > 0 && (cy.wrap(u).click(f), y());
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
|
-
if (
|
|
88
|
+
if (y(), typeof t != "object" || t == null)
|
|
89
89
|
return;
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
for (let
|
|
93
|
-
const [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
const d = Object.entries(t);
|
|
91
|
+
if (d.length !== 0)
|
|
92
|
+
for (let g = 0; g < d.length; g++) {
|
|
93
|
+
const [u, h] = d[g], l = a.mapAddBtn(n);
|
|
94
|
+
m(l), cy.get(l).click(f);
|
|
95
|
+
const c = a.mapKey(n, g);
|
|
96
|
+
m(c), cy.get(c).clear(f), cy.get(c).type(String(u), f), cy.get(a.mapContainer(n, g)).find(`[data-testid*="${n}.kid:"]`).first().invoke("attr", "data-testid").then((r) => {
|
|
97
|
+
const s = T(r, n);
|
|
98
|
+
e(s, h);
|
|
97
99
|
});
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
function
|
|
101
|
-
const { fieldKey:
|
|
102
|
-
cy.get(
|
|
103
|
-
|
|
102
|
+
function O(i) {
|
|
103
|
+
const { fieldKey: n, value: t } = i, e = a.json(n), o = typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
104
|
+
m(e), cy.get(e).then((y) => {
|
|
105
|
+
cy.wrap(y.find("textarea")).clear(f), cy.wrap(y.find("textarea")).type(o, f);
|
|
104
106
|
});
|
|
105
107
|
}
|
|
106
|
-
function
|
|
107
|
-
const { fieldKey:
|
|
108
|
-
cy.get(
|
|
109
|
-
const
|
|
110
|
-
|
|
108
|
+
function V(i) {
|
|
109
|
+
const { fieldKey: n, value: t } = i, e = a.field(n);
|
|
110
|
+
m(e), cy.get(e).click(f);
|
|
111
|
+
const o = typeof t == "object" && (t != null && t.id) ? t.id : t;
|
|
112
|
+
o && cy.get(`[data-testid="select-item-${o}"]`).click(f);
|
|
111
113
|
}
|
|
112
|
-
const
|
|
113
|
-
fillString:
|
|
114
|
+
const H = {
|
|
115
|
+
fillString: I,
|
|
114
116
|
fillNumber: C,
|
|
115
117
|
fillBoolean: E,
|
|
116
118
|
fillEnum: j,
|
|
117
119
|
fillTag: x,
|
|
118
120
|
fillArray: M,
|
|
119
|
-
fillRecord:
|
|
120
|
-
fillMap:
|
|
121
|
-
fillJson:
|
|
122
|
-
fillForeign:
|
|
121
|
+
fillRecord: R,
|
|
122
|
+
fillMap: N,
|
|
123
|
+
fillJson: O,
|
|
124
|
+
fillForeign: V
|
|
123
125
|
};
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
function l
|
|
127
|
-
for (const s of
|
|
128
|
-
|
|
126
|
+
function K(i, n) {
|
|
127
|
+
const t = S(i), e = { ...H, ...n };
|
|
128
|
+
function o(l, c, r = "") {
|
|
129
|
+
for (const s of v(l, c, t, r))
|
|
130
|
+
y(s);
|
|
129
131
|
}
|
|
130
|
-
function
|
|
131
|
-
switch (
|
|
132
|
+
function y({ handlerType: l, fieldKey: c, fieldSchema: r, value: s }) {
|
|
133
|
+
switch (l) {
|
|
132
134
|
case "string":
|
|
133
|
-
|
|
135
|
+
e.fillString({ fieldKey: c, fieldSchema: r, value: s });
|
|
134
136
|
break;
|
|
135
137
|
case "number":
|
|
136
|
-
|
|
138
|
+
e.fillNumber({ fieldKey: c, fieldSchema: r, value: s });
|
|
137
139
|
break;
|
|
138
140
|
case "boolean":
|
|
139
|
-
|
|
141
|
+
e.fillBoolean({ fieldKey: c, fieldSchema: r, value: s });
|
|
140
142
|
break;
|
|
141
143
|
case "enum":
|
|
142
|
-
|
|
144
|
+
e.fillEnum({ fieldKey: c, fieldSchema: r, value: s });
|
|
143
145
|
break;
|
|
144
146
|
case "tag":
|
|
145
|
-
|
|
147
|
+
e.fillTag({ fieldKey: c, fieldSchema: r, value: s });
|
|
146
148
|
break;
|
|
147
149
|
case "map":
|
|
148
|
-
|
|
149
|
-
fieldKey:
|
|
150
|
-
fieldSchema:
|
|
150
|
+
e.fillMap({
|
|
151
|
+
fieldKey: c,
|
|
152
|
+
fieldSchema: r,
|
|
151
153
|
value: s,
|
|
152
|
-
onFillEntry: (
|
|
153
|
-
|
|
154
|
+
onFillEntry: (b, p) => {
|
|
155
|
+
g(t, c, b, p);
|
|
154
156
|
}
|
|
155
157
|
});
|
|
156
158
|
break;
|
|
157
159
|
case "json":
|
|
158
|
-
|
|
160
|
+
e.fillJson({ fieldKey: c, fieldSchema: r, value: s });
|
|
159
161
|
break;
|
|
160
162
|
case "foreign":
|
|
161
|
-
|
|
163
|
+
e.fillForeign({ fieldKey: c, fieldSchema: r, value: s });
|
|
162
164
|
break;
|
|
163
165
|
case "array":
|
|
164
|
-
|
|
165
|
-
fieldKey:
|
|
166
|
-
fieldSchema:
|
|
166
|
+
e.fillArray({
|
|
167
|
+
fieldKey: c,
|
|
168
|
+
fieldSchema: r,
|
|
167
169
|
value: s,
|
|
168
|
-
onFillItem: (
|
|
169
|
-
|
|
170
|
+
onFillItem: (b, p) => {
|
|
171
|
+
d(t, c, b, p);
|
|
170
172
|
}
|
|
171
173
|
});
|
|
172
174
|
break;
|
|
173
175
|
case "record":
|
|
174
|
-
|
|
175
|
-
fieldKey:
|
|
176
|
-
fieldSchema:
|
|
176
|
+
e.fillRecord({
|
|
177
|
+
fieldKey: c,
|
|
178
|
+
fieldSchema: r,
|
|
177
179
|
value: s,
|
|
178
180
|
onFillChildren: () => {
|
|
179
|
-
|
|
181
|
+
o(r.fields, s, c);
|
|
180
182
|
}
|
|
181
183
|
});
|
|
182
184
|
break;
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
|
-
function
|
|
186
|
-
const { itemKey:
|
|
187
|
-
|
|
188
|
-
handlerType:
|
|
189
|
-
fieldKey:
|
|
187
|
+
function d(l, c, r, s) {
|
|
188
|
+
const { itemKey: b, itemSchema: p } = A(c, r, l);
|
|
189
|
+
B(p) ? o(p.fields, s, b) : y({
|
|
190
|
+
handlerType: k(p),
|
|
191
|
+
fieldKey: b,
|
|
190
192
|
fieldSchema: p,
|
|
191
193
|
value: s
|
|
192
194
|
});
|
|
193
195
|
}
|
|
194
|
-
function
|
|
195
|
-
const { entryKey:
|
|
196
|
-
|
|
197
|
-
handlerType:
|
|
198
|
-
fieldKey:
|
|
196
|
+
function g(l, c, r, s) {
|
|
197
|
+
const { entryKey: b, entrySchema: p } = F(c, r, l);
|
|
198
|
+
y({
|
|
199
|
+
handlerType: k(p),
|
|
200
|
+
fieldKey: b,
|
|
199
201
|
fieldSchema: p,
|
|
200
202
|
value: s
|
|
201
203
|
});
|
|
202
204
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
+
function u(l) {
|
|
206
|
+
i.fields && Array.isArray(i.fields) && o(i.fields, l);
|
|
205
207
|
}
|
|
206
|
-
function h(
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
209
|
-
throw new Error(`Field schema for "${
|
|
210
|
-
|
|
211
|
-
handlerType:
|
|
212
|
-
fieldKey:
|
|
213
|
-
fieldSchema:
|
|
214
|
-
value:
|
|
215
|
-
}
|
|
208
|
+
function h(l, c) {
|
|
209
|
+
const r = t.schemaMap[l];
|
|
210
|
+
if (!r)
|
|
211
|
+
throw new Error(`Field schema for "${l}" not found in schema map`);
|
|
212
|
+
y({
|
|
213
|
+
handlerType: k(r),
|
|
214
|
+
fieldKey: l,
|
|
215
|
+
fieldSchema: r,
|
|
216
|
+
value: c
|
|
217
|
+
});
|
|
216
218
|
}
|
|
217
219
|
return {
|
|
218
|
-
fill:
|
|
220
|
+
fill: u,
|
|
219
221
|
fillField: h,
|
|
220
|
-
schemaMap:
|
|
221
|
-
handlers:
|
|
222
|
+
schemaMap: t.schemaMap,
|
|
223
|
+
handlers: e
|
|
222
224
|
};
|
|
223
225
|
}
|
|
224
226
|
export {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
f as SCROLL_BEHAVIOR,
|
|
228
|
+
K as createFiller,
|
|
227
229
|
M as fillArray,
|
|
228
230
|
E as fillBoolean,
|
|
229
231
|
j as fillEnum,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
V as fillForeign,
|
|
233
|
+
O as fillJson,
|
|
234
|
+
N as fillMap,
|
|
233
235
|
C as fillNumber,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
R as fillRecord,
|
|
237
|
+
I as fillString,
|
|
236
238
|
x as fillTag,
|
|
237
|
-
|
|
239
|
+
H as handlers,
|
|
240
|
+
m as scrollIntoViewNative
|
|
238
241
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type Handlers
|
|
1
|
+
import { type Handlers } from './handlers';
|
|
2
2
|
import type { FormSchema, UnionFieldSchema } from '../../../../types/plugins/form-schema';
|
|
3
3
|
export interface FillerInstance {
|
|
4
4
|
fill: (data: Record<string, any>) => void;
|
|
5
|
-
fillField: (fieldKey: string, value: any
|
|
5
|
+
fillField: (fieldKey: string, value: any) => void;
|
|
6
6
|
schemaMap: Record<string, UnionFieldSchema>;
|
|
7
7
|
handlers: Handlers;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-filler.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/free-form/filler/cypress/create-filler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"create-filler.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/free-form/filler/cypress/create-filler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAQjB,MAAM,uCAAuC,CAAA;AAc9C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;IACzC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACjD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC3C,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,UAAU,EAClB,cAAc,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GACjC,cAAc,CAsHhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAyC,MAAM,SAAS,CAAA;AAGxF,wBAAgB,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAmD1D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BooleanFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillBoolean(option: HandlerOption<BooleanFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAClF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAClF,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAY3E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StringFieldSchema, NumberLikeFieldSchema, SetFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillEnum(option: HandlerOption<StringFieldSchema | NumberLikeFieldSchema | SetFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/enum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AACxH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/enum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AACxH,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAInF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,GAAG,qBAAqB,GAAG,cAAc,CAAC,GAAG,IAAI,CAoChH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ForeignFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillForeign(option: HandlerOption<ForeignFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=foreign.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreign.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/foreign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAClF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"foreign.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/foreign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAClF,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAgB3E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JsonFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillJson(option: HandlerOption<JsonFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC/E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC/E,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,IAAI,CAYrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAyC,MAAM,SAAS,CAAA;AAiBtF,wBAAgB,OAAO,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CA+CtD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NumberLikeFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillNumber(option: HandlerOption<NumberLikeFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAA;AACrF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAA;AACrF,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAa7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,wBAAgB,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,wBAAgB,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAoC5D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StringFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillString(option: HandlerOption<StringFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAazE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SetFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
import type
|
|
2
|
+
import { type HandlerOption } from './types';
|
|
3
3
|
export declare function fillTag(option: HandlerOption<SetFieldSchema>): void;
|
|
4
4
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAC9E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAC9E,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,SAAS,CAAA;AAGnF,wBAAgB,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,IAAI,CAQnE"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import type { UnionFieldSchema } from '../../../../../types/plugins/form-schema';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
clear?: Partial<Cypress.ClearOptions> | false;
|
|
7
|
-
}
|
|
8
|
-
export declare const defaultActionOptions: ActionOptions;
|
|
2
|
+
export declare const SCROLL_BEHAVIOR: {
|
|
3
|
+
readonly scrollBehavior: "center";
|
|
4
|
+
};
|
|
5
|
+
export declare function scrollIntoViewNative(selector: string): void;
|
|
9
6
|
export type HandlerOption<T extends UnionFieldSchema = UnionFieldSchema> = {
|
|
10
7
|
fieldKey: string;
|
|
11
8
|
fieldSchema: T;
|
|
12
9
|
value: any;
|
|
13
|
-
actionOptions?: ActionOptions;
|
|
14
10
|
};
|
|
15
|
-
export type RecordHandlerOption =
|
|
11
|
+
export type RecordHandlerOption = HandlerOption & {
|
|
16
12
|
onFillChildren: () => void;
|
|
17
13
|
};
|
|
18
|
-
export type ArrayHandlerOption =
|
|
14
|
+
export type ArrayHandlerOption = HandlerOption & {
|
|
19
15
|
onFillItem: (index: number, itemValue: any) => void;
|
|
20
16
|
};
|
|
21
|
-
export type MapHandlerOption =
|
|
17
|
+
export type MapHandlerOption = HandlerOption & {
|
|
22
18
|
onFillEntry: (kidId: string, entryValue: any) => void;
|
|
23
19
|
};
|
|
24
20
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/cypress/handlers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAWhF,eAAO,MAAM,eAAe;;CAAwC,CAAA;AAWpE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAI3D;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAAI;IACzE,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,CAAC,CAAA;IACd,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,IAAI,CAAA;CACtD,CAAA"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { type Handlers } from './handlers';
|
|
2
2
|
import type { Page } from '@playwright/test';
|
|
3
3
|
import type { FormSchema, UnionFieldSchema } from '../../../../types/plugins/form-schema';
|
|
4
|
-
export interface TypeOptions {
|
|
5
|
-
delay?: number;
|
|
6
|
-
}
|
|
7
4
|
export interface FillerInstance {
|
|
8
5
|
fill: (data: Record<string, any>) => Promise<void>;
|
|
9
|
-
fillField: (fieldKey: string, value: any
|
|
6
|
+
fillField: (fieldKey: string, value: any) => Promise<void>;
|
|
10
7
|
schemaMap: Record<string, UnionFieldSchema>;
|
|
11
8
|
handlers: Handlers;
|
|
12
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-filler.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/free-form/filler/playwright/create-filler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAQjB,MAAM,uCAAuC,CAAA;AAc9C,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"create-filler.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/free-form/filler/playwright/create-filler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAQjB,MAAM,uCAAuC,CAAA;AAc9C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC3C,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,UAAU,EAClB,cAAc,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GACjC,cAAc,CAyHhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAGjD,wBAAsB,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAGjD,wBAAsB,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoCzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,wBAAsB,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,wBAAsB,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoC3E"}
|
|
@@ -5,17 +5,14 @@ export type HandlerOption<T extends UnionFieldSchema = UnionFieldSchema> = {
|
|
|
5
5
|
fieldKey: string;
|
|
6
6
|
fieldSchema: T;
|
|
7
7
|
value: any;
|
|
8
|
-
typeOptions?: {
|
|
9
|
-
delay?: number;
|
|
10
|
-
};
|
|
11
8
|
};
|
|
12
|
-
export type RecordHandlerOption =
|
|
9
|
+
export type RecordHandlerOption = HandlerOption & {
|
|
13
10
|
onFillChildren: () => Promise<void>;
|
|
14
11
|
};
|
|
15
|
-
export type ArrayHandlerOption =
|
|
12
|
+
export type ArrayHandlerOption = HandlerOption & {
|
|
16
13
|
onFillItem: (index: number, itemValue: any) => Promise<void>;
|
|
17
14
|
};
|
|
18
|
-
export type MapHandlerOption =
|
|
15
|
+
export type MapHandlerOption = HandlerOption & {
|
|
19
16
|
onFillEntry: (kidId: string, entryValue: any) => Promise<void>;
|
|
20
17
|
};
|
|
21
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAAI;IACzE,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,CAAC,CAAA;IACd,KAAK,EAAE,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/components/free-form/filler/playwright/handlers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAAI;IACzE,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,CAAC,CAAA;IACd,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7D,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/D,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as f, i as
|
|
2
|
-
async function
|
|
1
|
+
import { s as f, i as h, c as p, g as k, w as S, a as F, b as v, d as A } from "../field-walker-_YAwDcC1.js";
|
|
2
|
+
async function B(o) {
|
|
3
3
|
const { page: a, fieldKey: n, value: t } = o, e = f.field(n), i = a.locator(e);
|
|
4
4
|
await i.clear(), t != null && t !== "" && await i.fill(String(t));
|
|
5
5
|
}
|
|
@@ -9,17 +9,17 @@ async function C(o) {
|
|
|
9
9
|
}
|
|
10
10
|
async function E(o) {
|
|
11
11
|
const { page: a, fieldKey: n, value: t } = o, e = f.field(n), i = a.locator(e);
|
|
12
|
-
t === !0 ? await i.check(
|
|
12
|
+
t === !0 ? await i.check() : t === !1 && await i.uncheck();
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
15
|
-
var
|
|
16
|
-
const { page: a, fieldKey: n, fieldSchema: t, value: e } = o, i =
|
|
14
|
+
async function I(o) {
|
|
15
|
+
var b;
|
|
16
|
+
const { page: a, fieldKey: n, fieldSchema: t, value: e } = o, i = h(t), w = i ? Array.isArray(e) ? e : [e] : [e], d = f.field(n);
|
|
17
17
|
await a.locator(d).click();
|
|
18
|
-
const
|
|
19
|
-
for (const u of t.one_of ?? ((
|
|
18
|
+
const m = f.selectTrigger(n);
|
|
19
|
+
for (const u of t.one_of ?? ((b = t.elements) == null ? void 0 : b.one_of) ?? [])
|
|
20
20
|
if (u != null) {
|
|
21
|
-
const
|
|
22
|
-
i && await a.locator(
|
|
21
|
+
const l = i ? f.multiSelectItem(String(u)) : f.selectItem(String(u));
|
|
22
|
+
i && await a.locator(m).locator(`${l} button.selected`).count() > 0 && await a.locator(m).locator(l).click(), w.includes(u) && await a.locator(m).locator(l).click();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
async function j(o) {
|
|
@@ -27,28 +27,28 @@ async function j(o) {
|
|
|
27
27
|
await a.locator(i).fill(e.join(","));
|
|
28
28
|
}
|
|
29
29
|
async function M(o) {
|
|
30
|
-
const { page: a, fieldKey: n, value: t, onFillItem: e } = o, i = f.arrayTabContainer(n), w = f.arrayBasicContainer(n), d = await a.locator(i).count() > 0,
|
|
31
|
-
if (d ||
|
|
32
|
-
const
|
|
33
|
-
await a.locator(
|
|
30
|
+
const { page: a, fieldKey: n, value: t, onFillItem: e } = o, i = f.arrayTabContainer(n), w = f.arrayBasicContainer(n), d = await a.locator(i).count() > 0, m = await a.locator(w).count() > 0;
|
|
31
|
+
if (d || m) {
|
|
32
|
+
const b = f.arrayRemoveBtns(n), u = async () => {
|
|
33
|
+
await a.locator(b).count() > 0 && (await a.locator(b).first().click(), await u());
|
|
34
34
|
};
|
|
35
35
|
if (await u(), !Array.isArray(t))
|
|
36
36
|
return;
|
|
37
|
-
for (let
|
|
37
|
+
for (let l = 0; l < t.length; l++) {
|
|
38
38
|
const c = f.arrayAddBtn(n);
|
|
39
|
-
await a.locator(c).
|
|
39
|
+
await a.locator(c).click(), await e(l, t[l]);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
async function
|
|
43
|
+
async function T(o) {
|
|
44
44
|
const { page: a, fieldKey: n, onFillChildren: t } = o, e = f.objectSwitch(n), i = await a.locator(e).count() > 0;
|
|
45
45
|
if ((o.value === null || o.value === void 0) && i) {
|
|
46
|
-
await a.locator(e).locator("..").locator('[data-testid="switch-control"]').click(
|
|
46
|
+
await a.locator(e).locator("..").locator('[data-testid="switch-control"]').click();
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
i && await a.locator(e).locator("..").locator('[data-testid="switch-control"]').click(
|
|
49
|
+
i && (await a.locator(e).locator("..").locator('[data-testid="switch-control"]').click(), await a.locator(f.objectContent(n)).waitFor({ state: "visible" })), await t();
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function x(o, a) {
|
|
52
52
|
if (!o)
|
|
53
53
|
throw new Error(`Unable to find map entry test id for "${a}"`);
|
|
54
54
|
const n = o.match(/kid:\d+/);
|
|
@@ -66,88 +66,88 @@ async function R(o) {
|
|
|
66
66
|
const w = Object.entries(t);
|
|
67
67
|
if (w.length !== 0)
|
|
68
68
|
for (let d = 0; d < w.length; d++) {
|
|
69
|
-
const [
|
|
69
|
+
const [m, b] = w[d];
|
|
70
70
|
await a.locator(f.mapAddBtn(n)).click();
|
|
71
|
-
const u = f.mapContainer(n, d),
|
|
72
|
-
await
|
|
71
|
+
const u = f.mapContainer(n, d), l = a.locator(u);
|
|
72
|
+
await l.waitFor();
|
|
73
73
|
const c = a.locator(f.mapKey(n, d));
|
|
74
|
-
await c.clear(), await c.fill(String(
|
|
75
|
-
const
|
|
76
|
-
await
|
|
77
|
-
const
|
|
78
|
-
await e(
|
|
74
|
+
await c.clear(), await c.fill(String(m));
|
|
75
|
+
const r = l.locator(`[data-testid*="${n}.kid:"]`).first();
|
|
76
|
+
await r.waitFor();
|
|
77
|
+
const s = x(await r.getAttribute("data-testid"), n);
|
|
78
|
+
await e(s, b);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
async function $(o) {
|
|
82
82
|
const { page: a, fieldKey: n, value: t } = o, e = f.json(n), i = a.locator(e).locator("textarea"), w = typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
83
83
|
await i.clear(), await i.fill(w);
|
|
84
84
|
}
|
|
85
|
-
async function
|
|
85
|
+
async function N(o) {
|
|
86
86
|
const { page: a, fieldKey: n, value: t } = o, e = f.field(n);
|
|
87
87
|
await a.locator(e).click();
|
|
88
88
|
const i = typeof t == "object" && (t != null && t.id) ? t.id : t;
|
|
89
89
|
i && await a.locator(`[data-testid="select-item-${i}"]`).click();
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
fillString:
|
|
91
|
+
const J = {
|
|
92
|
+
fillString: B,
|
|
93
93
|
fillNumber: C,
|
|
94
94
|
fillBoolean: E,
|
|
95
|
-
fillEnum:
|
|
95
|
+
fillEnum: I,
|
|
96
96
|
fillTag: j,
|
|
97
97
|
fillArray: M,
|
|
98
|
-
fillRecord:
|
|
98
|
+
fillRecord: T,
|
|
99
99
|
fillMap: R,
|
|
100
100
|
fillJson: $,
|
|
101
|
-
fillForeign:
|
|
101
|
+
fillForeign: N
|
|
102
102
|
};
|
|
103
|
-
function
|
|
104
|
-
const t =
|
|
105
|
-
async function i(
|
|
106
|
-
for (const
|
|
107
|
-
await w(
|
|
103
|
+
function K(o, a, n) {
|
|
104
|
+
const t = p(a), e = { ...J, ...n };
|
|
105
|
+
async function i(l, c, r = "") {
|
|
106
|
+
for (const s of S(l, c, t, r))
|
|
107
|
+
await w(s);
|
|
108
108
|
}
|
|
109
|
-
async function w({ handlerType:
|
|
110
|
-
switch (
|
|
109
|
+
async function w({ handlerType: l, fieldKey: c, fieldSchema: r, value: s }) {
|
|
110
|
+
switch (l) {
|
|
111
111
|
case "string":
|
|
112
|
-
await e.fillString({ page: o, fieldKey: c, fieldSchema:
|
|
112
|
+
await e.fillString({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
113
113
|
break;
|
|
114
114
|
case "number":
|
|
115
|
-
await e.fillNumber({ page: o, fieldKey: c, fieldSchema:
|
|
115
|
+
await e.fillNumber({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
116
116
|
break;
|
|
117
117
|
case "boolean":
|
|
118
|
-
await e.fillBoolean({ page: o, fieldKey: c, fieldSchema:
|
|
118
|
+
await e.fillBoolean({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
119
119
|
break;
|
|
120
120
|
case "enum":
|
|
121
|
-
await e.fillEnum({ page: o, fieldKey: c, fieldSchema:
|
|
121
|
+
await e.fillEnum({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
122
122
|
break;
|
|
123
123
|
case "tag":
|
|
124
|
-
await e.fillTag({ page: o, fieldKey: c, fieldSchema:
|
|
124
|
+
await e.fillTag({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
125
125
|
break;
|
|
126
126
|
case "map":
|
|
127
127
|
await e.fillMap({
|
|
128
128
|
page: o,
|
|
129
129
|
fieldKey: c,
|
|
130
|
-
fieldSchema:
|
|
131
|
-
value:
|
|
132
|
-
onFillEntry: async (
|
|
133
|
-
await
|
|
130
|
+
fieldSchema: r,
|
|
131
|
+
value: s,
|
|
132
|
+
onFillEntry: async (g, y) => {
|
|
133
|
+
await m(t, c, g, y);
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
break;
|
|
137
137
|
case "json":
|
|
138
|
-
await e.fillJson({ page: o, fieldKey: c, fieldSchema:
|
|
138
|
+
await e.fillJson({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
139
139
|
break;
|
|
140
140
|
case "foreign":
|
|
141
|
-
await e.fillForeign({ page: o, fieldKey: c, fieldSchema:
|
|
141
|
+
await e.fillForeign({ page: o, fieldKey: c, fieldSchema: r, value: s });
|
|
142
142
|
break;
|
|
143
143
|
case "array":
|
|
144
144
|
await e.fillArray({
|
|
145
145
|
page: o,
|
|
146
146
|
fieldKey: c,
|
|
147
|
-
fieldSchema:
|
|
148
|
-
value:
|
|
149
|
-
onFillItem: async (
|
|
150
|
-
await d(t, c,
|
|
147
|
+
fieldSchema: r,
|
|
148
|
+
value: s,
|
|
149
|
+
onFillItem: async (g, y) => {
|
|
150
|
+
await d(t, c, g, y);
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
break;
|
|
@@ -155,65 +155,65 @@ function U(o, a, n) {
|
|
|
155
155
|
await e.fillRecord({
|
|
156
156
|
page: o,
|
|
157
157
|
fieldKey: c,
|
|
158
|
-
fieldSchema:
|
|
159
|
-
value:
|
|
158
|
+
fieldSchema: r,
|
|
159
|
+
value: s,
|
|
160
160
|
onFillChildren: async () => {
|
|
161
|
-
await i(
|
|
161
|
+
await i(r.fields, s, c);
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
async function d(
|
|
168
|
-
const { itemKey:
|
|
169
|
-
|
|
170
|
-
handlerType:
|
|
171
|
-
fieldKey:
|
|
172
|
-
fieldSchema:
|
|
173
|
-
value:
|
|
167
|
+
async function d(l, c, r, s) {
|
|
168
|
+
const { itemKey: g, itemSchema: y } = F(c, r, l);
|
|
169
|
+
v(y) ? await i(y.fields, s, g) : await w({
|
|
170
|
+
handlerType: k(y),
|
|
171
|
+
fieldKey: g,
|
|
172
|
+
fieldSchema: y,
|
|
173
|
+
value: s
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
async function
|
|
177
|
-
const { entryKey:
|
|
176
|
+
async function m(l, c, r, s) {
|
|
177
|
+
const { entryKey: g, entrySchema: y } = A(c, r, l);
|
|
178
178
|
await w({
|
|
179
|
-
handlerType:
|
|
180
|
-
fieldKey:
|
|
181
|
-
fieldSchema:
|
|
182
|
-
value:
|
|
179
|
+
handlerType: k(y),
|
|
180
|
+
fieldKey: g,
|
|
181
|
+
fieldSchema: y,
|
|
182
|
+
value: s
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
186
|
-
a.fields && Array.isArray(a.fields) && await i(a.fields,
|
|
185
|
+
async function b(l) {
|
|
186
|
+
a.fields && Array.isArray(a.fields) && await i(a.fields, l);
|
|
187
187
|
}
|
|
188
|
-
async function u(
|
|
189
|
-
const
|
|
190
|
-
if (!
|
|
191
|
-
throw new Error(`Field schema for "${
|
|
188
|
+
async function u(l, c) {
|
|
189
|
+
const r = t.schemaMap[l];
|
|
190
|
+
if (!r)
|
|
191
|
+
throw new Error(`Field schema for "${l}" not found in schema map`);
|
|
192
192
|
await w({
|
|
193
|
-
handlerType:
|
|
194
|
-
fieldKey:
|
|
195
|
-
fieldSchema:
|
|
193
|
+
handlerType: k(r),
|
|
194
|
+
fieldKey: l,
|
|
195
|
+
fieldSchema: r,
|
|
196
196
|
value: c
|
|
197
|
-
}
|
|
197
|
+
});
|
|
198
198
|
}
|
|
199
199
|
return {
|
|
200
|
-
fill:
|
|
200
|
+
fill: b,
|
|
201
201
|
fillField: u,
|
|
202
202
|
schemaMap: t.schemaMap,
|
|
203
203
|
handlers: e
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
export {
|
|
207
|
-
|
|
207
|
+
K as createFiller,
|
|
208
208
|
M as fillArray,
|
|
209
209
|
E as fillBoolean,
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
I as fillEnum,
|
|
211
|
+
N as fillForeign,
|
|
212
212
|
$ as fillJson,
|
|
213
213
|
R as fillMap,
|
|
214
214
|
C as fillNumber,
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
T as fillRecord,
|
|
216
|
+
B as fillString,
|
|
217
217
|
j as fillTag,
|
|
218
|
-
|
|
218
|
+
J as handlers
|
|
219
219
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.223.
|
|
3
|
+
"version": "9.223.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"vue-router": "^5.1.0",
|
|
93
93
|
"zod": "^4.4.3",
|
|
94
94
|
"@kong-ui-public/entities-shared": "^3.53.5",
|
|
95
|
-
"@kong-ui-public/entities-vaults": "^4.12.5",
|
|
96
95
|
"@kong-ui-public/i18n": "^2.4.6",
|
|
96
|
+
"@kong-ui-public/entities-vaults": "^4.12.5",
|
|
97
97
|
"@kong-ui-public/monaco-editor": "^0.22.23"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
@@ -115,14 +115,14 @@
|
|
|
115
115
|
"lodash-es": "^4.18.1",
|
|
116
116
|
"marked": "^14.1.4",
|
|
117
117
|
"@kong-ui-public/entities-consumer-groups": "^4.5.38",
|
|
118
|
-
"@kong-ui-public/entities-gateway-services": "^3.20.36",
|
|
119
|
-
"@kong-ui-public/entities-consumers": "^4.4.36",
|
|
120
|
-
"@kong-ui-public/entities-plugins-icon": "^1.6.7",
|
|
121
118
|
"@kong-ui-public/entities-plugins-metadata": "^1.13.3",
|
|
122
119
|
"@kong-ui-public/entities-redis-configurations": "^1.15.51",
|
|
120
|
+
"@kong-ui-public/entities-plugins-icon": "^1.6.7",
|
|
123
121
|
"@kong-ui-public/entities-routes": "^3.22.46",
|
|
122
|
+
"@kong-ui-public/entities-consumers": "^4.4.36",
|
|
124
123
|
"@kong-ui-public/entities-vaults": "^4.12.5",
|
|
125
|
-
"@kong-ui-public/forms": "^4.30.1"
|
|
124
|
+
"@kong-ui-public/forms": "^4.30.1",
|
|
125
|
+
"@kong-ui-public/entities-gateway-services": "^3.20.36"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"dev": "cross-env USE_SANDBOX=true vite",
|