@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.
Files changed (32) hide show
  1. package/dist/filler/cypress/index.js +152 -149
  2. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts +2 -2
  3. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts.map +1 -1
  4. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts +1 -1
  5. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts.map +1 -1
  6. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts +1 -1
  7. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts.map +1 -1
  8. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts +1 -1
  9. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts.map +1 -1
  10. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts +1 -1
  11. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts.map +1 -1
  12. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts +1 -1
  13. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts.map +1 -1
  14. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts +1 -1
  15. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts.map +1 -1
  16. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts +1 -1
  17. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts.map +1 -1
  18. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/record.d.ts.map +1 -1
  19. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts +1 -1
  20. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts.map +1 -1
  21. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts +1 -1
  22. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts.map +1 -1
  23. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts +7 -11
  24. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts.map +1 -1
  25. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts +1 -4
  26. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts.map +1 -1
  27. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/array.d.ts.map +1 -1
  28. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/record.d.ts.map +1 -1
  29. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts +3 -6
  30. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts.map +1 -1
  31. package/dist/filler/playwright/index.js +89 -89
  32. package/package.json +6 -6
@@ -1,238 +1,241 @@
1
- import { s as f, i as w, c as S, g as b, w as A, a as I, b as v, d as F } from "../field-walker-_YAwDcC1.js";
2
- const m = {
3
- type: { force: !0 },
4
- click: { force: !0 },
5
- check: { force: !0 },
6
- clear: { force: !0 }
7
- };
8
- function B(r) {
9
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = f.field(c);
10
- cy.get(l).then((i) => {
11
- t.clear !== !1 && cy.wrap(i).clear(t.clear), e != null && e !== "" && cy.wrap(i).type(String(e), t.type);
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(r) {
15
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = f.field(c);
16
- cy.get(l).then((i) => {
17
- t.clear !== !1 && cy.wrap(i).clear(t.clear), e != null && cy.wrap(i).type(String(e), t.type);
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(r) {
21
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = f.field(c);
22
- e === !0 ? cy.get(l).check(t.check) : e === !1 && cy.get(l).uncheck(t.check);
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(r) {
25
- var h;
26
- const { fieldKey: c, fieldSchema: e, value: t, actionOptions: l = m } = r, i = w(e), y = i ? Array.isArray(t) ? t : [t] : [t], d = f.field(c);
27
- cy.get(d).scrollIntoView(), cy.get(d).click(l.click);
28
- const g = f.selectTrigger(c);
29
- cy.get(g).scrollIntoView();
30
- for (const a of e.one_of ?? ((h = e.elements) == null ? void 0 : h.one_of) ?? [])
31
- if (a != null) {
32
- const n = i ? f.multiSelectItem(String(a)) : f.selectItem(String(a));
33
- i && cy.get(g).find(n).within((o) => {
34
- o.find("button.selected").length > 0 && (cy.get("button").scrollIntoView(), cy.get("button").click());
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(r) {
39
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = Array.isArray(e) ? e : [e], i = f.tagInput(c);
40
- cy.get(i).type(l.join(","), t.type);
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(r) {
43
- const { fieldKey: c, value: e, onFillItem: t } = r, l = f.arrayTabContainer(c), i = f.arrayBasicContainer(c);
44
- cy.get("body").then((y) => {
45
- const d = y.find(l).length > 0, g = y.find(i).length > 0;
46
- if (d || g) {
47
- const h = f.arrayRemoveBtns(c), a = () => {
48
- cy.get("body").then((n) => {
49
- const o = n.find(h).first();
50
- o.length > 0 && (cy.wrap(o).click(), a());
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 (a(), !Array.isArray(e))
53
+ if (l(), !Array.isArray(t))
54
54
  return;
55
- for (let n = 0; n < e.length; n++) {
56
- const o = f.arrayAddBtn(c);
57
- cy.get(o).scrollIntoView(), cy.get(o).click({ force: !0 }), t(n, e[n]);
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 T(r) {
63
- const { fieldKey: c, value: e, onFillChildren: t } = r, l = f.objectSwitch(c);
64
- cy.get("body").then((i) => {
65
- const y = i.find(l).length > 0;
66
- if (e == null && y) {
67
- cy.get(l).uncheck({ force: !0 });
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
- y && cy.get(l).check({ force: !0 }), t();
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 R(r, c) {
74
- if (!r)
75
- throw new Error(`Unable to find map entry test id for "${c}"`);
76
- const e = r.match(/kid:\d+/);
77
- if (!e)
78
- throw new Error(`Unable to extract map entry kid id from test id "${r}"`);
79
- return e[0];
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 V(r) {
82
- const { fieldKey: c, value: e, onFillEntry: t } = r, l = f.mapRemoveBtns(c), i = () => {
83
- cy.get("body").then((d) => {
84
- const g = d.find(l).first();
85
- g.length > 0 && (cy.wrap(g).click(), i());
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 (i(), typeof e != "object" || e == null)
88
+ if (y(), typeof t != "object" || t == null)
89
89
  return;
90
- const y = Object.entries(e);
91
- if (y.length !== 0)
92
- for (let d = 0; d < y.length; d++) {
93
- const [g, h] = y[d];
94
- cy.get(f.mapAddBtn(c)).click(), cy.get(f.mapKey(c, d)).clear({ force: !0 }), cy.get(f.mapKey(c, d)).type(String(g), { force: !0 }), cy.get(f.mapContainer(c, d)).find(`[data-testid*="${c}.kid:"]`).first().invoke("attr", "data-testid").then((a) => {
95
- const n = R(a, c);
96
- t(n, h);
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 N(r) {
101
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = f.json(c), i = typeof e == "string" ? e : JSON.stringify(e, null, 2);
102
- cy.get(l).then((y) => {
103
- t.clear !== !1 && cy.wrap(y.find("textarea")).clear(t.clear), cy.wrap(y.find("textarea")).type(i, t.type);
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 O(r) {
107
- const { fieldKey: c, value: e, actionOptions: t = m } = r, l = f.field(c);
108
- cy.get(l).click(t.click);
109
- const i = typeof e == "object" && (e != null && e.id) ? e.id : e;
110
- i && cy.get(`[data-testid="select-item-${i}"]`).click(t.click);
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 J = {
113
- fillString: B,
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: T,
120
- fillMap: V,
121
- fillJson: N,
122
- fillForeign: O
121
+ fillRecord: R,
122
+ fillMap: N,
123
+ fillJson: O,
124
+ fillForeign: V
123
125
  };
124
- function $(r, c) {
125
- const e = S(r), t = { ...J, ...c };
126
- function l(a, n, o = "") {
127
- for (const s of A(a, n, e, o))
128
- i(s);
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 i({ handlerType: a, fieldKey: n, fieldSchema: o, value: s }, u) {
131
- switch (a) {
132
+ function y({ handlerType: l, fieldKey: c, fieldSchema: r, value: s }) {
133
+ switch (l) {
132
134
  case "string":
133
- t.fillString({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
135
+ e.fillString({ fieldKey: c, fieldSchema: r, value: s });
134
136
  break;
135
137
  case "number":
136
- t.fillNumber({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
138
+ e.fillNumber({ fieldKey: c, fieldSchema: r, value: s });
137
139
  break;
138
140
  case "boolean":
139
- t.fillBoolean({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
141
+ e.fillBoolean({ fieldKey: c, fieldSchema: r, value: s });
140
142
  break;
141
143
  case "enum":
142
- t.fillEnum({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
144
+ e.fillEnum({ fieldKey: c, fieldSchema: r, value: s });
143
145
  break;
144
146
  case "tag":
145
- t.fillTag({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
147
+ e.fillTag({ fieldKey: c, fieldSchema: r, value: s });
146
148
  break;
147
149
  case "map":
148
- t.fillMap({
149
- fieldKey: n,
150
- fieldSchema: o,
150
+ e.fillMap({
151
+ fieldKey: c,
152
+ fieldSchema: r,
151
153
  value: s,
152
- onFillEntry: (p, k) => {
153
- d(e, n, p, k);
154
+ onFillEntry: (b, p) => {
155
+ g(t, c, b, p);
154
156
  }
155
157
  });
156
158
  break;
157
159
  case "json":
158
- t.fillJson({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
160
+ e.fillJson({ fieldKey: c, fieldSchema: r, value: s });
159
161
  break;
160
162
  case "foreign":
161
- t.fillForeign({ fieldKey: n, fieldSchema: o, value: s, actionOptions: u });
163
+ e.fillForeign({ fieldKey: c, fieldSchema: r, value: s });
162
164
  break;
163
165
  case "array":
164
- t.fillArray({
165
- fieldKey: n,
166
- fieldSchema: o,
166
+ e.fillArray({
167
+ fieldKey: c,
168
+ fieldSchema: r,
167
169
  value: s,
168
- onFillItem: (p, k) => {
169
- y(e, n, p, k);
170
+ onFillItem: (b, p) => {
171
+ d(t, c, b, p);
170
172
  }
171
173
  });
172
174
  break;
173
175
  case "record":
174
- t.fillRecord({
175
- fieldKey: n,
176
- fieldSchema: o,
176
+ e.fillRecord({
177
+ fieldKey: c,
178
+ fieldSchema: r,
177
179
  value: s,
178
180
  onFillChildren: () => {
179
- l(o.fields, s, n);
181
+ o(r.fields, s, c);
180
182
  }
181
183
  });
182
184
  break;
183
185
  }
184
186
  }
185
- function y(a, n, o, s) {
186
- const { itemKey: u, itemSchema: p } = I(n, o, a);
187
- v(p) ? l(p.fields, s, u) : i({
188
- handlerType: b(p),
189
- fieldKey: u,
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 d(a, n, o, s) {
195
- const { entryKey: u, entrySchema: p } = F(n, o, a);
196
- i({
197
- handlerType: b(p),
198
- fieldKey: u,
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 g(a) {
204
- r.fields && Array.isArray(r.fields) && l(r.fields, a);
205
+ function u(l) {
206
+ i.fields && Array.isArray(i.fields) && o(i.fields, l);
205
207
  }
206
- function h(a, n, o) {
207
- const s = e.schemaMap[a];
208
- if (!s)
209
- throw new Error(`Field schema for "${a}" not found in schema map`);
210
- i({
211
- handlerType: b(s),
212
- fieldKey: a,
213
- fieldSchema: s,
214
- value: n
215
- }, o);
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: g,
220
+ fill: u,
219
221
  fillField: h,
220
- schemaMap: e.schemaMap,
221
- handlers: t
222
+ schemaMap: t.schemaMap,
223
+ handlers: e
222
224
  };
223
225
  }
224
226
  export {
225
- $ as createFiller,
226
- m as defaultActionOptions,
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
- O as fillForeign,
231
- N as fillJson,
232
- V as fillMap,
232
+ V as fillForeign,
233
+ O as fillJson,
234
+ N as fillMap,
233
235
  C as fillNumber,
234
- T as fillRecord,
235
- B as fillString,
236
+ R as fillRecord,
237
+ I as fillString,
236
238
  x as fillTag,
237
- J as handlers
239
+ H as handlers,
240
+ m as scrollIntoViewNative
238
241
  };
@@ -1,8 +1,8 @@
1
- import { type Handlers, type ActionOptions } from './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, actionOptions?: ActionOptions) => void;
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,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACxE,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,EAAE,aAAa,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IAChF,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
+ {"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,3 +1,3 @@
1
- import type { ArrayHandlerOption } from './types';
1
+ import { type ArrayHandlerOption } from './types';
2
2
  export declare function fillArray(option: ArrayHandlerOption): void;
3
3
  //# sourceMappingURL=array.d.ts.map
@@ -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,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAGjD,wBAAgB,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CA2C1D"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAU3E"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,GAAG,qBAAqB,GAAG,cAAc,CAAC,GAAG,IAAI,CAuChH"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAe3E"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,IAAI,CAYrE"}
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,3 +1,3 @@
1
- import type { MapHandlerOption } from './types';
1
+ import { type MapHandlerOption } from './types';
2
2
  export declare function fillMap(option: MapHandlerOption): void;
3
3
  //# sourceMappingURL=map.d.ts.map
@@ -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,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAiB/C,wBAAgB,OAAO,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CA2CtD"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAa7E"}
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,CAsB5D"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAazE"}
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 { HandlerOption } from './types';
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,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,wBAAgB,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,IAAI,CAOnE"}
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 interface ActionOptions {
3
- type?: Partial<Cypress.TypeOptions>;
4
- click?: Partial<Cypress.ClickOptions>;
5
- check?: Partial<Cypress.CheckOptions>;
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 = Omit<HandlerOption, 'actionOptions'> & {
11
+ export type RecordHandlerOption = HandlerOption & {
16
12
  onFillChildren: () => void;
17
13
  };
18
- export type ArrayHandlerOption = Omit<HandlerOption, 'actionOptions'> & {
14
+ export type ArrayHandlerOption = HandlerOption & {
19
15
  onFillItem: (index: number, itemValue: any) => void;
20
16
  };
21
- export type MapHandlerOption = Omit<HandlerOption, 'actionOptions'> & {
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;AAEhF,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,KAAK,CAAA;CAC9C;AAED,eAAO,MAAM,oBAAoB,EAAE,aAKlC,CAAA;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;IACV,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,GAAG;IACvE,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,GAAG;IACtE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,GAAG;IACpE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,IAAI,CAAA;CACtD,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, typeOptions?: TypeOptions) => Promise<void>;
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,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,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,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACrF,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
+ {"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,CAsCzE"}
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,CAgC3E"}
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 = Omit<HandlerOption, 'typeOptions'> & {
9
+ export type RecordHandlerOption = HandlerOption & {
13
10
  onFillChildren: () => Promise<void>;
14
11
  };
15
- export type ArrayHandlerOption = Omit<HandlerOption, 'typeOptions'> & {
12
+ export type ArrayHandlerOption = HandlerOption & {
16
13
  onFillItem: (index: number, itemValue: any) => Promise<void>;
17
14
  };
18
- export type MapHandlerOption = Omit<HandlerOption, 'typeOptions'> & {
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;IACV,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG;IACrE,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG;IACpE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7D,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG;IAClE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/D,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 S, c as F, g as h, w as v, a as A, b as p, d as B } from "../field-walker-_YAwDcC1.js";
2
- async function I(o) {
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({ force: !0 }) : t === !1 && await i.uncheck({ force: !0 });
12
+ t === !0 ? await i.check() : t === !1 && await i.uncheck();
13
13
  }
14
- async function T(o) {
15
- var k;
16
- const { page: a, fieldKey: n, fieldSchema: t, value: e } = o, i = S(t), w = i ? Array.isArray(e) ? e : [e] : [e], d = f.field(n);
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 g = f.selectTrigger(n);
19
- for (const u of t.one_of ?? ((k = t.elements) == null ? void 0 : k.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 r = i ? f.multiSelectItem(String(u)) : f.selectItem(String(u));
22
- i && await a.locator(g).locator(`${r} button.selected`).count() > 0 && await a.locator(g).locator(r).click(), w.includes(u) && await a.locator(g).locator(r).click();
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, g = await a.locator(w).count() > 0;
31
- if (d || g) {
32
- const k = f.arrayRemoveBtns(n), u = async () => {
33
- await a.locator(k).count() > 0 && (await a.locator(k).first().click(), await u());
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 r = 0; r < t.length; r++) {
37
+ for (let l = 0; l < t.length; l++) {
38
38
  const c = f.arrayAddBtn(n);
39
- await a.locator(c).scrollIntoViewIfNeeded(), await a.locator(c).click({ force: !0 }), await e(r, t[r]);
39
+ await a.locator(c).click(), await e(l, t[l]);
40
40
  }
41
41
  }
42
42
  }
43
- async function x(o) {
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({ force: !0 });
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({ force: !0 }), await new Promise((w) => setTimeout(w, 300)), await t();
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 N(o, a) {
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 [g, k] = w[d];
69
+ const [m, b] = w[d];
70
70
  await a.locator(f.mapAddBtn(n)).click();
71
- const u = f.mapContainer(n, d), r = a.locator(u);
72
- await r.waitFor();
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(g));
75
- const s = r.locator(`[data-testid*="${n}.kid:"]`).first();
76
- await s.waitFor();
77
- const l = N(await s.getAttribute("data-testid"), n);
78
- await e(l, k);
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 J(o) {
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 H = {
92
- fillString: I,
91
+ const J = {
92
+ fillString: B,
93
93
  fillNumber: C,
94
94
  fillBoolean: E,
95
- fillEnum: T,
95
+ fillEnum: I,
96
96
  fillTag: j,
97
97
  fillArray: M,
98
- fillRecord: x,
98
+ fillRecord: T,
99
99
  fillMap: R,
100
100
  fillJson: $,
101
- fillForeign: J
101
+ fillForeign: N
102
102
  };
103
- function U(o, a, n) {
104
- const t = F(a), e = { ...H, ...n };
105
- async function i(r, c, s = "") {
106
- for (const l of v(r, c, t, s))
107
- await w(l);
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: r, fieldKey: c, fieldSchema: s, value: l }, y) {
110
- switch (r) {
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: s, value: l, typeOptions: y });
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: s, value: l, typeOptions: y });
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: s, value: l, typeOptions: y });
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: s, value: l, typeOptions: y });
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: s, value: l, typeOptions: y });
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: s,
131
- value: l,
132
- onFillEntry: async (m, b) => {
133
- await g(t, c, m, b);
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: s, value: l, typeOptions: y });
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: s, value: l, typeOptions: y });
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: s,
148
- value: l,
149
- onFillItem: async (m, b) => {
150
- await d(t, c, m, b);
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: s,
159
- value: l,
158
+ fieldSchema: r,
159
+ value: s,
160
160
  onFillChildren: async () => {
161
- await i(s.fields, l, c);
161
+ await i(r.fields, s, c);
162
162
  }
163
163
  });
164
164
  break;
165
165
  }
166
166
  }
167
- async function d(r, c, s, l) {
168
- const { itemKey: y, itemSchema: m } = A(c, s, r);
169
- p(m) ? await i(m.fields, l, y) : await w({
170
- handlerType: h(m),
171
- fieldKey: y,
172
- fieldSchema: m,
173
- value: l
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 g(r, c, s, l) {
177
- const { entryKey: y, entrySchema: m } = B(c, s, r);
176
+ async function m(l, c, r, s) {
177
+ const { entryKey: g, entrySchema: y } = A(c, r, l);
178
178
  await w({
179
- handlerType: h(m),
180
- fieldKey: y,
181
- fieldSchema: m,
182
- value: l
179
+ handlerType: k(y),
180
+ fieldKey: g,
181
+ fieldSchema: y,
182
+ value: s
183
183
  });
184
184
  }
185
- async function k(r) {
186
- a.fields && Array.isArray(a.fields) && await i(a.fields, r);
185
+ async function b(l) {
186
+ a.fields && Array.isArray(a.fields) && await i(a.fields, l);
187
187
  }
188
- async function u(r, c, s) {
189
- const l = t.schemaMap[r];
190
- if (!l)
191
- throw new Error(`Field schema for "${r}" not found in schema map`);
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: h(l),
194
- fieldKey: r,
195
- fieldSchema: l,
193
+ handlerType: k(r),
194
+ fieldKey: l,
195
+ fieldSchema: r,
196
196
  value: c
197
- }, s);
197
+ });
198
198
  }
199
199
  return {
200
- fill: k,
200
+ fill: b,
201
201
  fillField: u,
202
202
  schemaMap: t.schemaMap,
203
203
  handlers: e
204
204
  };
205
205
  }
206
206
  export {
207
- U as createFiller,
207
+ K as createFiller,
208
208
  M as fillArray,
209
209
  E as fillBoolean,
210
- T as fillEnum,
211
- J as fillForeign,
210
+ I as fillEnum,
211
+ N as fillForeign,
212
212
  $ as fillJson,
213
213
  R as fillMap,
214
214
  C as fillNumber,
215
- x as fillRecord,
216
- I as fillString,
215
+ T as fillRecord,
216
+ B as fillString,
217
217
  j as fillTag,
218
- H as handlers
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.1",
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",