@gct-paas/design-web 0.1.4-dev.7 → 0.1.4-dev.9

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 (48) hide show
  1. package/dist/index.esm.min.mjs +1597 -24
  2. package/dist/index.min.cjs +57 -1
  3. package/dist/index.min.css +1 -0
  4. package/dist/index.system.min.js +57 -1
  5. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  6. package/es/components/I18nSelect/index.d.ts +7 -0
  7. package/es/components/I18nSelect/src/i18n-modal.vue.d.ts +21 -0
  8. package/es/components/I18nSelect/src/i18n-modal.vue.mjs +151 -0
  9. package/es/components/I18nSelect/src/i18n-modal.vue2.mjs +5 -0
  10. package/es/components/I18nSelect/src/i18n-select-btn.css +58 -0
  11. package/es/components/I18nSelect/src/i18n-select-btn.vue.d.ts +18 -0
  12. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +7 -0
  13. package/es/components/I18nSelect/src/i18n-select-btn.vue2.mjs +138 -0
  14. package/es/components/I18nSelect/src/i18n-select-container.css +6 -0
  15. package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +10 -0
  16. package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +7 -0
  17. package/es/components/I18nSelect/src/i18n-select-container.vue2.mjs +250 -0
  18. package/es/components/I18nSelect/src/i18n-select-input-form.vue.d.ts +15 -0
  19. package/es/components/I18nSelect/src/i18n-select-input-form.vue.mjs +57 -0
  20. package/es/components/I18nSelect/src/i18n-select-input-form.vue2.mjs +5 -0
  21. package/es/components/I18nSelect/src/i18n-select-input.css +3 -0
  22. package/es/components/I18nSelect/src/i18n-select-input.vue.d.ts +51 -0
  23. package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +7 -0
  24. package/es/components/I18nSelect/src/i18n-select-input.vue2.mjs +129 -0
  25. package/es/components/{test-com/test-com.d.ts → I18nSelect/src/i18n-select-modal.vue.d.ts} +3 -2
  26. package/es/components/I18nSelect/src/i18n-select-modal.vue.mjs +21 -0
  27. package/es/components/I18nSelect/src/i18n-select-modal.vue2.mjs +5 -0
  28. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.d.ts +15 -0
  29. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.mjs +57 -0
  30. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue2.mjs +5 -0
  31. package/es/components/I18nSelect/src/i18n-select-textarea.css +17 -0
  32. package/es/components/I18nSelect/src/i18n-select-textarea.vue.d.ts +26 -0
  33. package/es/components/I18nSelect/src/i18n-select-textarea.vue.mjs +7 -0
  34. package/es/components/I18nSelect/src/i18n-select-textarea.vue2.mjs +93 -0
  35. package/es/components/I18nSelect/src/useI18nSelect.d.ts +13 -0
  36. package/es/components/I18nSelect/src/useI18nSelect.mjs +51 -0
  37. package/es/components/index.d.ts +1 -3
  38. package/es/index.d.ts +1 -0
  39. package/es/index.mjs +9 -7
  40. package/es/types/index.d.ts +4 -2
  41. package/package.json +15 -10
  42. package/dist/index.min.css.css +0 -1
  43. package/es/components/index.mjs +0 -4
  44. package/es/components/test-com/test-com.mjs +0 -21
  45. package/es/components/test-com/test-com.scss +0 -3
  46. package/es/components/test-vue-com/test-vue-com.vue +0 -15
  47. package/es/components/test-vue-com/test-vue-com.vue.d.ts +0 -2
  48. package/es/vite-env.d.ts +0 -1
@@ -1,33 +1,1606 @@
1
- import { defineComponent as c, ref as t, openBlock as i, createElementBlock as d, normalizeClass as p, unref as v, createElementVNode as n, toDisplayString as o, createVNode as _, createTextVNode as f } from "vue";
2
- import { useNamespace as l } from "@gct-paas/core";
3
- const s = /* @__PURE__ */ c({
4
- __name: "test-vue-com",
1
+ import { nextTick as it, h as ke, createVNode as m, defineComponent as D, ref as E, reactive as X, resolveComponent as x, openBlock as O, createBlock as B, mergeProps as j, unref as C, withCtx as v, createElementBlock as J, Fragment as se, renderList as He, toRaw as lt, computed as A, onMounted as st, createElementVNode as U, createTextVNode as Oe, toDisplayString as W, createApp as ct, watch as Ue, normalizeClass as ut, toValue as K, renderSlot as ft, createCommentVNode as dt } from "vue";
2
+ import { has as Ie, isEmpty as L, omit as We } from "lodash-es";
3
+ import { useModalInner as Ke, useModal as qe } from "@gct-paas/core-web";
4
+ import { t as k, ButtonSize as Te } from "@gct-paas/core";
5
+ function P(e, n) {
6
+ pt(e) && (e = "100%");
7
+ var t = mt(e);
8
+ return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
9
+ }
10
+ function pt(e) {
11
+ return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
12
+ }
13
+ function mt(e) {
14
+ return typeof e == "string" && e.indexOf("%") !== -1;
15
+ }
16
+ function gt(e) {
17
+ return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
18
+ }
19
+ function re(e) {
20
+ return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
21
+ }
22
+ function fe(e) {
23
+ return e.length === 1 ? "0" + e : String(e);
24
+ }
25
+ function yt(e, n, t) {
26
+ return {
27
+ r: P(e, 255) * 255,
28
+ g: P(n, 255) * 255,
29
+ b: P(t, 255) * 255
30
+ };
31
+ }
32
+ function de(e, n, t) {
33
+ return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (n - e) * (6 * t) : t < 1 / 2 ? n : t < 2 / 3 ? e + (n - e) * (2 / 3 - t) * 6 : e;
34
+ }
35
+ function bt(e, n, t) {
36
+ var r, a, o;
37
+ if (e = P(e, 360), n = P(n, 100), t = P(t, 100), n === 0)
38
+ a = t, o = t, r = t;
39
+ else {
40
+ var i = t < 0.5 ? t * (1 + n) : t + n - t * n, l = 2 * t - i;
41
+ r = de(l, i, e + 1 / 3), a = de(l, i, e), o = de(l, i, e - 1 / 3);
42
+ }
43
+ return { r: r * 255, g: a * 255, b: o * 255 };
44
+ }
45
+ function ht(e, n, t) {
46
+ e = P(e, 255), n = P(n, 255), t = P(t, 255);
47
+ var r = Math.max(e, n, t), a = Math.min(e, n, t), o = 0, i = r, l = r - a, s = r === 0 ? 0 : l / r;
48
+ if (r === a)
49
+ o = 0;
50
+ else {
51
+ switch (r) {
52
+ case e:
53
+ o = (n - t) / l + (n < t ? 6 : 0);
54
+ break;
55
+ case n:
56
+ o = (t - e) / l + 2;
57
+ break;
58
+ case t:
59
+ o = (e - n) / l + 4;
60
+ break;
61
+ }
62
+ o /= 6;
63
+ }
64
+ return { h: o, s, v: i };
65
+ }
66
+ function vt(e, n, t) {
67
+ e = P(e, 360) * 6, n = P(n, 100), t = P(t, 100);
68
+ var r = Math.floor(e), a = e - r, o = t * (1 - n), i = t * (1 - a * n), l = t * (1 - (1 - a) * n), s = r % 6, c = [t, i, o, o, l, t][s], p = [l, t, t, i, o, o][s], g = [o, o, l, t, t, i][s];
69
+ return { r: c * 255, g: p * 255, b: g * 255 };
70
+ }
71
+ function Ct(e, n, t, r) {
72
+ var a = [
73
+ fe(Math.round(e).toString(16)),
74
+ fe(Math.round(n).toString(16)),
75
+ fe(Math.round(t).toString(16))
76
+ ];
77
+ return a.join("");
78
+ }
79
+ function _e(e) {
80
+ return _(e) / 255;
81
+ }
82
+ function _(e) {
83
+ return parseInt(e, 16);
84
+ }
85
+ var Ee = {
86
+ aliceblue: "#f0f8ff",
87
+ antiquewhite: "#faebd7",
88
+ aqua: "#00ffff",
89
+ aquamarine: "#7fffd4",
90
+ azure: "#f0ffff",
91
+ beige: "#f5f5dc",
92
+ bisque: "#ffe4c4",
93
+ black: "#000000",
94
+ blanchedalmond: "#ffebcd",
95
+ blue: "#0000ff",
96
+ blueviolet: "#8a2be2",
97
+ brown: "#a52a2a",
98
+ burlywood: "#deb887",
99
+ cadetblue: "#5f9ea0",
100
+ chartreuse: "#7fff00",
101
+ chocolate: "#d2691e",
102
+ coral: "#ff7f50",
103
+ cornflowerblue: "#6495ed",
104
+ cornsilk: "#fff8dc",
105
+ crimson: "#dc143c",
106
+ cyan: "#00ffff",
107
+ darkblue: "#00008b",
108
+ darkcyan: "#008b8b",
109
+ darkgoldenrod: "#b8860b",
110
+ darkgray: "#a9a9a9",
111
+ darkgreen: "#006400",
112
+ darkgrey: "#a9a9a9",
113
+ darkkhaki: "#bdb76b",
114
+ darkmagenta: "#8b008b",
115
+ darkolivegreen: "#556b2f",
116
+ darkorange: "#ff8c00",
117
+ darkorchid: "#9932cc",
118
+ darkred: "#8b0000",
119
+ darksalmon: "#e9967a",
120
+ darkseagreen: "#8fbc8f",
121
+ darkslateblue: "#483d8b",
122
+ darkslategray: "#2f4f4f",
123
+ darkslategrey: "#2f4f4f",
124
+ darkturquoise: "#00ced1",
125
+ darkviolet: "#9400d3",
126
+ deeppink: "#ff1493",
127
+ deepskyblue: "#00bfff",
128
+ dimgray: "#696969",
129
+ dimgrey: "#696969",
130
+ dodgerblue: "#1e90ff",
131
+ firebrick: "#b22222",
132
+ floralwhite: "#fffaf0",
133
+ forestgreen: "#228b22",
134
+ fuchsia: "#ff00ff",
135
+ gainsboro: "#dcdcdc",
136
+ ghostwhite: "#f8f8ff",
137
+ goldenrod: "#daa520",
138
+ gold: "#ffd700",
139
+ gray: "#808080",
140
+ green: "#008000",
141
+ greenyellow: "#adff2f",
142
+ grey: "#808080",
143
+ honeydew: "#f0fff0",
144
+ hotpink: "#ff69b4",
145
+ indianred: "#cd5c5c",
146
+ indigo: "#4b0082",
147
+ ivory: "#fffff0",
148
+ khaki: "#f0e68c",
149
+ lavenderblush: "#fff0f5",
150
+ lavender: "#e6e6fa",
151
+ lawngreen: "#7cfc00",
152
+ lemonchiffon: "#fffacd",
153
+ lightblue: "#add8e6",
154
+ lightcoral: "#f08080",
155
+ lightcyan: "#e0ffff",
156
+ lightgoldenrodyellow: "#fafad2",
157
+ lightgray: "#d3d3d3",
158
+ lightgreen: "#90ee90",
159
+ lightgrey: "#d3d3d3",
160
+ lightpink: "#ffb6c1",
161
+ lightsalmon: "#ffa07a",
162
+ lightseagreen: "#20b2aa",
163
+ lightskyblue: "#87cefa",
164
+ lightslategray: "#778899",
165
+ lightslategrey: "#778899",
166
+ lightsteelblue: "#b0c4de",
167
+ lightyellow: "#ffffe0",
168
+ lime: "#00ff00",
169
+ limegreen: "#32cd32",
170
+ linen: "#faf0e6",
171
+ magenta: "#ff00ff",
172
+ maroon: "#800000",
173
+ mediumaquamarine: "#66cdaa",
174
+ mediumblue: "#0000cd",
175
+ mediumorchid: "#ba55d3",
176
+ mediumpurple: "#9370db",
177
+ mediumseagreen: "#3cb371",
178
+ mediumslateblue: "#7b68ee",
179
+ mediumspringgreen: "#00fa9a",
180
+ mediumturquoise: "#48d1cc",
181
+ mediumvioletred: "#c71585",
182
+ midnightblue: "#191970",
183
+ mintcream: "#f5fffa",
184
+ mistyrose: "#ffe4e1",
185
+ moccasin: "#ffe4b5",
186
+ navajowhite: "#ffdead",
187
+ navy: "#000080",
188
+ oldlace: "#fdf5e6",
189
+ olive: "#808000",
190
+ olivedrab: "#6b8e23",
191
+ orange: "#ffa500",
192
+ orangered: "#ff4500",
193
+ orchid: "#da70d6",
194
+ palegoldenrod: "#eee8aa",
195
+ palegreen: "#98fb98",
196
+ paleturquoise: "#afeeee",
197
+ palevioletred: "#db7093",
198
+ papayawhip: "#ffefd5",
199
+ peachpuff: "#ffdab9",
200
+ peru: "#cd853f",
201
+ pink: "#ffc0cb",
202
+ plum: "#dda0dd",
203
+ powderblue: "#b0e0e6",
204
+ purple: "#800080",
205
+ rebeccapurple: "#663399",
206
+ red: "#ff0000",
207
+ rosybrown: "#bc8f8f",
208
+ royalblue: "#4169e1",
209
+ saddlebrown: "#8b4513",
210
+ salmon: "#fa8072",
211
+ sandybrown: "#f4a460",
212
+ seagreen: "#2e8b57",
213
+ seashell: "#fff5ee",
214
+ sienna: "#a0522d",
215
+ silver: "#c0c0c0",
216
+ skyblue: "#87ceeb",
217
+ slateblue: "#6a5acd",
218
+ slategray: "#708090",
219
+ slategrey: "#708090",
220
+ snow: "#fffafa",
221
+ springgreen: "#00ff7f",
222
+ steelblue: "#4682b4",
223
+ tan: "#d2b48c",
224
+ teal: "#008080",
225
+ thistle: "#d8bfd8",
226
+ tomato: "#ff6347",
227
+ turquoise: "#40e0d0",
228
+ violet: "#ee82ee",
229
+ wheat: "#f5deb3",
230
+ white: "#ffffff",
231
+ whitesmoke: "#f5f5f5",
232
+ yellow: "#ffff00",
233
+ yellowgreen: "#9acd32"
234
+ };
235
+ function Z(e) {
236
+ var n = { r: 0, g: 0, b: 0 }, t = 1, r = null, a = null, o = null, i = !1, l = !1;
237
+ return typeof e == "string" && (e = St(e)), typeof e == "object" && (z(e.r) && z(e.g) && z(e.b) ? (n = yt(e.r, e.g, e.b), i = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : z(e.h) && z(e.s) && z(e.v) ? (r = re(e.s), a = re(e.v), n = vt(e.h, r, a), i = !0, l = "hsv") : z(e.h) && z(e.s) && z(e.l) && (r = re(e.s), o = re(e.l), n = bt(e.h, r, o), i = !0, l = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = gt(t), {
238
+ ok: i,
239
+ format: e.format || l,
240
+ r: Math.min(255, Math.max(n.r, 0)),
241
+ g: Math.min(255, Math.max(n.g, 0)),
242
+ b: Math.min(255, Math.max(n.b, 0)),
243
+ a: t
244
+ };
245
+ }
246
+ var xt = "[-\\+]?\\d+%?", wt = "[-\\+]?\\d*\\.\\d+%?", V = "(?:".concat(wt, ")|(?:").concat(xt, ")"), pe = "[\\s|\\(]+(".concat(V, ")[,|\\s]+(").concat(V, ")[,|\\s]+(").concat(V, ")\\s*\\)?"), me = "[\\s|\\(]+(".concat(V, ")[,|\\s]+(").concat(V, ")[,|\\s]+(").concat(V, ")[,|\\s]+(").concat(V, ")\\s*\\)?"), M = {
247
+ CSS_UNIT: new RegExp(V),
248
+ rgb: new RegExp("rgb" + pe),
249
+ rgba: new RegExp("rgba" + me),
250
+ hsl: new RegExp("hsl" + pe),
251
+ hsla: new RegExp("hsla" + me),
252
+ hsv: new RegExp("hsv" + pe),
253
+ hsva: new RegExp("hsva" + me),
254
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
255
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
256
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
257
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
258
+ };
259
+ function St(e) {
260
+ if (e = e.trim().toLowerCase(), e.length === 0)
261
+ return !1;
262
+ var n = !1;
263
+ if (Ee[e])
264
+ e = Ee[e], n = !0;
265
+ else if (e === "transparent")
266
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
267
+ var t = M.rgb.exec(e);
268
+ return t ? { r: t[1], g: t[2], b: t[3] } : (t = M.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = M.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = M.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = M.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = M.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = M.hex8.exec(e), t ? {
269
+ r: _(t[1]),
270
+ g: _(t[2]),
271
+ b: _(t[3]),
272
+ a: _e(t[4]),
273
+ format: n ? "name" : "hex8"
274
+ } : (t = M.hex6.exec(e), t ? {
275
+ r: _(t[1]),
276
+ g: _(t[2]),
277
+ b: _(t[3]),
278
+ format: n ? "name" : "hex"
279
+ } : (t = M.hex4.exec(e), t ? {
280
+ r: _(t[1] + t[1]),
281
+ g: _(t[2] + t[2]),
282
+ b: _(t[3] + t[3]),
283
+ a: _e(t[4] + t[4]),
284
+ format: n ? "name" : "hex8"
285
+ } : (t = M.hex3.exec(e), t ? {
286
+ r: _(t[1] + t[1]),
287
+ g: _(t[2] + t[2]),
288
+ b: _(t[3] + t[3]),
289
+ format: n ? "name" : "hex"
290
+ } : !1)))))))));
291
+ }
292
+ function z(e) {
293
+ return !!M.CSS_UNIT.exec(String(e));
294
+ }
295
+ var ae = 2, Ae = 0.16, kt = 0.05, Ot = 0.05, It = 0.15, Je = 5, Ge = 4, Tt = [{
296
+ index: 7,
297
+ opacity: 0.15
298
+ }, {
299
+ index: 6,
300
+ opacity: 0.25
301
+ }, {
302
+ index: 5,
303
+ opacity: 0.3
304
+ }, {
305
+ index: 5,
306
+ opacity: 0.45
307
+ }, {
308
+ index: 5,
309
+ opacity: 0.65
310
+ }, {
311
+ index: 5,
312
+ opacity: 0.85
313
+ }, {
314
+ index: 4,
315
+ opacity: 0.9
316
+ }, {
317
+ index: 3,
318
+ opacity: 0.95
319
+ }, {
320
+ index: 2,
321
+ opacity: 0.97
322
+ }, {
323
+ index: 1,
324
+ opacity: 0.98
325
+ }];
326
+ function Pe(e) {
327
+ var n = e.r, t = e.g, r = e.b, a = ht(n, t, r);
328
+ return {
329
+ h: a.h * 360,
330
+ s: a.s,
331
+ v: a.v
332
+ };
333
+ }
334
+ function oe(e) {
335
+ var n = e.r, t = e.g, r = e.b;
336
+ return "#".concat(Ct(n, t, r));
337
+ }
338
+ function _t(e, n, t) {
339
+ var r = t / 100, a = {
340
+ r: (n.r - e.r) * r + e.r,
341
+ g: (n.g - e.g) * r + e.g,
342
+ b: (n.b - e.b) * r + e.b
343
+ };
344
+ return a;
345
+ }
346
+ function Me(e, n, t) {
347
+ var r;
348
+ return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = t ? Math.round(e.h) - ae * n : Math.round(e.h) + ae * n : r = t ? Math.round(e.h) + ae * n : Math.round(e.h) - ae * n, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
349
+ }
350
+ function $e(e, n, t) {
351
+ if (e.h === 0 && e.s === 0)
352
+ return e.s;
353
+ var r;
354
+ return t ? r = e.s - Ae * n : n === Ge ? r = e.s + Ae : r = e.s + kt * n, r > 1 && (r = 1), t && n === Je && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
355
+ }
356
+ function je(e, n, t) {
357
+ var r;
358
+ return t ? r = e.v + Ot * n : r = e.v - It * n, r > 1 && (r = 1), Number(r.toFixed(2));
359
+ }
360
+ function Ce(e) {
361
+ for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], r = Z(e), a = Je; a > 0; a -= 1) {
362
+ var o = Pe(r), i = oe(Z({
363
+ h: Me(o, a, !0),
364
+ s: $e(o, a, !0),
365
+ v: je(o, a, !0)
366
+ }));
367
+ t.push(i);
368
+ }
369
+ t.push(oe(r));
370
+ for (var l = 1; l <= Ge; l += 1) {
371
+ var s = Pe(r), c = oe(Z({
372
+ h: Me(s, l),
373
+ s: $e(s, l),
374
+ v: je(s, l)
375
+ }));
376
+ t.push(c);
377
+ }
378
+ return n.theme === "dark" ? Tt.map(function(p) {
379
+ var g = p.index, b = p.opacity, f = oe(_t(Z(n.backgroundColor || "#141414"), Z(t[g]), b * 100));
380
+ return f;
381
+ }) : t;
382
+ }
383
+ var ge = {
384
+ red: "#F5222D",
385
+ volcano: "#FA541C",
386
+ orange: "#FA8C16",
387
+ gold: "#FAAD14",
388
+ yellow: "#FADB14",
389
+ lime: "#A0D911",
390
+ green: "#52C41A",
391
+ cyan: "#13C2C2",
392
+ blue: "#1890FF",
393
+ geekblue: "#2F54EB",
394
+ purple: "#722ED1",
395
+ magenta: "#EB2F96",
396
+ grey: "#666666"
397
+ }, ye = {}, be = {};
398
+ Object.keys(ge).forEach(function(e) {
399
+ ye[e] = Ce(ge[e]), ye[e].primary = ye[e][5], be[e] = Ce(ge[e], {
400
+ theme: "dark",
401
+ backgroundColor: "#141414"
402
+ }), be[e].primary = be[e][5];
403
+ });
404
+ var Re = [], Y = [], Et = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
405
+ function At() {
406
+ var e = document.createElement("style");
407
+ return e.setAttribute("type", "text/css"), e;
408
+ }
409
+ function Pt(e, n) {
410
+ if (n = n || {}, e === void 0)
411
+ throw new Error(Et);
412
+ var t = n.prepend === !0 ? "prepend" : "append", r = n.container !== void 0 ? n.container : document.querySelector("head"), a = Re.indexOf(r);
413
+ a === -1 && (a = Re.push(r) - 1, Y[a] = {});
414
+ var o;
415
+ return Y[a] !== void 0 && Y[a][t] !== void 0 ? o = Y[a][t] : (o = Y[a][t] = At(), t === "prepend" ? r.insertBefore(o, r.childNodes[0]) : r.appendChild(o)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), o.styleSheet ? o.styleSheet.cssText += e : o.textContent += e, o;
416
+ }
417
+ function Ne(e) {
418
+ for (var n = 1; n < arguments.length; n++) {
419
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
420
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
421
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
422
+ }))), r.forEach(function(a) {
423
+ Mt(e, a, t[a]);
424
+ });
425
+ }
426
+ return e;
427
+ }
428
+ function Mt(e, n, t) {
429
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
430
+ }
431
+ function $t(e, n) {
432
+ process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(n));
433
+ }
434
+ function jt(e, n) {
435
+ $t(e, "[@ant-design/icons-vue] ".concat(n));
436
+ }
437
+ function Fe(e) {
438
+ return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
439
+ }
440
+ function xe(e, n, t) {
441
+ return t ? ke(e.tag, Ne({
442
+ key: n
443
+ }, t, e.attrs), (e.children || []).map(function(r, a) {
444
+ return xe(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
445
+ })) : ke(e.tag, Ne({
446
+ key: n
447
+ }, e.attrs), (e.children || []).map(function(r, a) {
448
+ return xe(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
449
+ }));
450
+ }
451
+ function Ze(e) {
452
+ return Ce(e)[0];
453
+ }
454
+ function Ye(e) {
455
+ return e ? Array.isArray(e) ? e : [e] : [];
456
+ }
457
+ var Rt = `
458
+ .anticon {
459
+ display: inline-block;
460
+ color: inherit;
461
+ font-style: normal;
462
+ line-height: 0;
463
+ text-align: center;
464
+ text-transform: none;
465
+ vertical-align: -0.125em;
466
+ text-rendering: optimizeLegibility;
467
+ -webkit-font-smoothing: antialiased;
468
+ -moz-osx-font-smoothing: grayscale;
469
+ }
470
+
471
+ .anticon > * {
472
+ line-height: 1;
473
+ }
474
+
475
+ .anticon svg {
476
+ display: inline-block;
477
+ }
478
+
479
+ .anticon::before {
480
+ display: none;
481
+ }
482
+
483
+ .anticon .anticon-icon {
484
+ display: block;
485
+ }
486
+
487
+ .anticon[tabindex] {
488
+ cursor: pointer;
489
+ }
490
+
491
+ .anticon-spin::before,
492
+ .anticon-spin {
493
+ display: inline-block;
494
+ -webkit-animation: loadingCircle 1s infinite linear;
495
+ animation: loadingCircle 1s infinite linear;
496
+ }
497
+
498
+ @-webkit-keyframes loadingCircle {
499
+ 100% {
500
+ -webkit-transform: rotate(360deg);
501
+ transform: rotate(360deg);
502
+ }
503
+ }
504
+
505
+ @keyframes loadingCircle {
506
+ 100% {
507
+ -webkit-transform: rotate(360deg);
508
+ transform: rotate(360deg);
509
+ }
510
+ }
511
+ `, ze = !1, Nt = function() {
512
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Rt;
513
+ it(function() {
514
+ ze || (typeof window < "u" && window.document && window.document.documentElement && Pt(n, {
515
+ prepend: !0
516
+ }), ze = !0);
517
+ });
518
+ }, Ft = ["icon", "primaryColor", "secondaryColor"];
519
+ function zt(e, n) {
520
+ if (e == null) return {};
521
+ var t = Bt(e, n), r, a;
522
+ if (Object.getOwnPropertySymbols) {
523
+ var o = Object.getOwnPropertySymbols(e);
524
+ for (a = 0; a < o.length; a++)
525
+ r = o[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
526
+ }
527
+ return t;
528
+ }
529
+ function Bt(e, n) {
530
+ if (e == null) return {};
531
+ var t = {}, r = Object.keys(e), a, o;
532
+ for (o = 0; o < r.length; o++)
533
+ a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
534
+ return t;
535
+ }
536
+ function le(e) {
537
+ for (var n = 1; n < arguments.length; n++) {
538
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
539
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
540
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
541
+ }))), r.forEach(function(a) {
542
+ Vt(e, a, t[a]);
543
+ });
544
+ }
545
+ return e;
546
+ }
547
+ function Vt(e, n, t) {
548
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
549
+ }
550
+ var ee = {
551
+ primaryColor: "#333",
552
+ secondaryColor: "#E6E6E6",
553
+ calculated: !1
554
+ };
555
+ function Lt(e) {
556
+ var n = e.primaryColor, t = e.secondaryColor;
557
+ ee.primaryColor = n, ee.secondaryColor = t || Ze(n), ee.calculated = !!t;
558
+ }
559
+ function Dt() {
560
+ return le({}, ee);
561
+ }
562
+ var H = function(n, t) {
563
+ var r = le({}, n, t.attrs), a = r.icon, o = r.primaryColor, i = r.secondaryColor, l = zt(r, Ft), s = ee;
564
+ if (o && (s = {
565
+ primaryColor: o,
566
+ secondaryColor: i || Ze(o)
567
+ }), Nt(), jt(Fe(a), "icon should be icon definiton, but got ".concat(a)), !Fe(a))
568
+ return null;
569
+ var c = a;
570
+ return c && typeof c.icon == "function" && (c = le({}, c, {
571
+ icon: c.icon(s.primaryColor, s.secondaryColor)
572
+ })), xe(c.icon, "svg-".concat(c.name), le({}, l, {
573
+ "data-icon": c.name,
574
+ width: "1em",
575
+ height: "1em",
576
+ fill: "currentColor",
577
+ "aria-hidden": "true"
578
+ }));
579
+ };
580
+ H.props = {
581
+ icon: Object,
582
+ primaryColor: String,
583
+ secondaryColor: String,
584
+ focusable: String
585
+ };
586
+ H.inheritAttrs = !1;
587
+ H.displayName = "IconBase";
588
+ H.getTwoToneColors = Dt;
589
+ H.setTwoToneColors = Lt;
590
+ function Ht(e, n) {
591
+ return qt(e) || Kt(e, n) || Wt(e, n) || Ut();
592
+ }
593
+ function Ut() {
594
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
595
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
596
+ }
597
+ function Wt(e, n) {
598
+ if (e) {
599
+ if (typeof e == "string") return Be(e, n);
600
+ var t = Object.prototype.toString.call(e).slice(8, -1);
601
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
602
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Be(e, n);
603
+ }
604
+ }
605
+ function Be(e, n) {
606
+ (n == null || n > e.length) && (n = e.length);
607
+ for (var t = 0, r = new Array(n); t < n; t++)
608
+ r[t] = e[t];
609
+ return r;
610
+ }
611
+ function Kt(e, n) {
612
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
613
+ if (t != null) {
614
+ var r = [], a = !0, o = !1, i, l;
615
+ try {
616
+ for (t = t.call(e); !(a = (i = t.next()).done) && (r.push(i.value), !(n && r.length === n)); a = !0)
617
+ ;
618
+ } catch (s) {
619
+ o = !0, l = s;
620
+ } finally {
621
+ try {
622
+ !a && t.return != null && t.return();
623
+ } finally {
624
+ if (o) throw l;
625
+ }
626
+ }
627
+ return r;
628
+ }
629
+ }
630
+ function qt(e) {
631
+ if (Array.isArray(e)) return e;
632
+ }
633
+ function Qe(e) {
634
+ var n = Ye(e), t = Ht(n, 2), r = t[0], a = t[1];
635
+ return H.setTwoToneColors({
636
+ primaryColor: r,
637
+ secondaryColor: a
638
+ });
639
+ }
640
+ function Jt() {
641
+ var e = H.getTwoToneColors();
642
+ return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
643
+ }
644
+ var Gt = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
645
+ function Zt(e, n) {
646
+ return en(e) || Xt(e, n) || Qt(e, n) || Yt();
647
+ }
648
+ function Yt() {
649
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
650
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
651
+ }
652
+ function Qt(e, n) {
653
+ if (e) {
654
+ if (typeof e == "string") return Ve(e, n);
655
+ var t = Object.prototype.toString.call(e).slice(8, -1);
656
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
657
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ve(e, n);
658
+ }
659
+ }
660
+ function Ve(e, n) {
661
+ (n == null || n > e.length) && (n = e.length);
662
+ for (var t = 0, r = new Array(n); t < n; t++)
663
+ r[t] = e[t];
664
+ return r;
665
+ }
666
+ function Xt(e, n) {
667
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
668
+ if (t != null) {
669
+ var r = [], a = !0, o = !1, i, l;
670
+ try {
671
+ for (t = t.call(e); !(a = (i = t.next()).done) && (r.push(i.value), !(n && r.length === n)); a = !0)
672
+ ;
673
+ } catch (s) {
674
+ o = !0, l = s;
675
+ } finally {
676
+ try {
677
+ !a && t.return != null && t.return();
678
+ } finally {
679
+ if (o) throw l;
680
+ }
681
+ }
682
+ return r;
683
+ }
684
+ }
685
+ function en(e) {
686
+ if (Array.isArray(e)) return e;
687
+ }
688
+ function Le(e) {
689
+ for (var n = 1; n < arguments.length; n++) {
690
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
691
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
692
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
693
+ }))), r.forEach(function(a) {
694
+ we(e, a, t[a]);
695
+ });
696
+ }
697
+ return e;
698
+ }
699
+ function we(e, n, t) {
700
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
701
+ }
702
+ function tn(e, n) {
703
+ if (e == null) return {};
704
+ var t = nn(e, n), r, a;
705
+ if (Object.getOwnPropertySymbols) {
706
+ var o = Object.getOwnPropertySymbols(e);
707
+ for (a = 0; a < o.length; a++)
708
+ r = o[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
709
+ }
710
+ return t;
711
+ }
712
+ function nn(e, n) {
713
+ if (e == null) return {};
714
+ var t = {}, r = Object.keys(e), a, o;
715
+ for (o = 0; o < r.length; o++)
716
+ a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
717
+ return t;
718
+ }
719
+ Qe("#1890ff");
720
+ var G = function(n, t) {
721
+ var r, a = Le({}, n, t.attrs), o = a.class, i = a.icon, l = a.spin, s = a.rotate, c = a.tabindex, p = a.twoToneColor, g = a.onClick, b = tn(a, Gt), f = (r = {
722
+ anticon: !0
723
+ }, we(r, "anticon-".concat(i.name), !!i.name), we(r, o, o), r), w = l === "" || l || i.name === "loading" ? "anticon-spin" : "", y = c;
724
+ y === void 0 && g && (y = -1, b.tabindex = y);
725
+ var u = s ? {
726
+ msTransform: "rotate(".concat(s, "deg)"),
727
+ transform: "rotate(".concat(s, "deg)")
728
+ } : void 0, d = Ye(p), h = Zt(d, 2), R = h[0], N = h[1];
729
+ return m("span", Le({
730
+ role: "img",
731
+ "aria-label": i.name
732
+ }, b, {
733
+ onClick: g,
734
+ class: f
735
+ }), [m(H, {
736
+ class: w,
737
+ icon: i,
738
+ primaryColor: R,
739
+ secondaryColor: N,
740
+ style: u
741
+ }, null)]);
742
+ };
743
+ G.props = {
744
+ spin: Boolean,
745
+ rotate: Number,
746
+ icon: Object,
747
+ twoToneColor: String
748
+ };
749
+ G.displayName = "AntdIcon";
750
+ G.inheritAttrs = !1;
751
+ G.getTwoToneColor = Jt;
752
+ G.setTwoToneColor = Qe;
753
+ var rn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
754
+ function De(e) {
755
+ for (var n = 1; n < arguments.length; n++) {
756
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
757
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
758
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
759
+ }))), r.forEach(function(a) {
760
+ an(e, a, t[a]);
761
+ });
762
+ }
763
+ return e;
764
+ }
765
+ function an(e, n, t) {
766
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
767
+ }
768
+ var Se = function(n, t) {
769
+ var r = De({}, n, t.attrs);
770
+ return m(G, De({}, r, {
771
+ icon: rn
772
+ }), null);
773
+ };
774
+ Se.displayName = "SearchOutlined";
775
+ Se.inheritAttrs = !1;
776
+ const on = /* @__PURE__ */ D({
777
+ __name: "i18n-modal",
778
+ props: {
779
+ lang: {},
780
+ getContainer: { type: Function }
781
+ },
782
+ emits: ["ok", "register"],
783
+ setup(e, { emit: n }) {
784
+ const t = e, r = n, a = E(), o = X({
785
+ id: ""
786
+ }), i = E(!1), l = (y) => {
787
+ y && (i.value = !1);
788
+ }, [s, { closeModal: c }] = Ke((y) => {
789
+ y && p(y);
790
+ }), p = (y) => {
791
+ i.value = !0, o.id = y.key;
792
+ const { lang: u } = t;
793
+ console.log(u, "lang========");
794
+ for (const d of u) {
795
+ const h = d.dataIndex;
796
+ o[h] = y[h];
797
+ }
798
+ }, g = (y, u, d) => {
799
+ /^[a-zA-Z_.]*$/.test(u) || d(k("sys.i18n.validated18nKeyErrorMsg")), d();
800
+ }, b = async (y, u) => /^\s*$/g.test(u) ? Promise.reject(k("sys.notEmptySth", { sth: k("sys.i18n") })) : Promise.resolve(), f = () => {
801
+ a.value?.validate().then(() => {
802
+ r("ok", { ...lt(o) }, i.value), c();
803
+ });
804
+ }, w = () => {
805
+ a.value?.resetFields();
806
+ };
807
+ return (y, u) => {
808
+ const d = x("a-input"), h = x("a-form-item"), R = x("a-form"), N = x("BasicModal");
809
+ return O(), B(N, j(y.$attrs, {
810
+ title: i.value ? C(k)("sys.edit") : C(k)("sys.new"),
811
+ centered: "",
812
+ width: "640px",
813
+ "min-height": 100,
814
+ "mask-closable": !1,
815
+ "after-close": w,
816
+ "get-container": e.getContainer,
817
+ onRegister: C(s),
818
+ onOk: f,
819
+ onVisibleChange: l
820
+ }), {
821
+ default: v(() => [
822
+ m(R, {
823
+ ref_key: "formRef",
824
+ ref: a,
825
+ model: o,
826
+ "label-col": { span: 6 },
827
+ "wrapper-col": { span: 16 },
828
+ autocomplete: "off",
829
+ layout: "horizontal"
830
+ }, {
831
+ default: v(() => [
832
+ m(h, {
833
+ label: C(k)("sys.i18n.resourceIdentification"),
834
+ name: "id",
835
+ rules: [
836
+ {
837
+ required: !0,
838
+ message: C(k)("sys.pleaseInputSth", {
839
+ sth: C(k)("sys.i18n.resourceIdentification")
840
+ })
841
+ },
842
+ { validator: g }
843
+ ]
844
+ }, {
845
+ default: v(() => [
846
+ m(d, {
847
+ value: o.id,
848
+ "onUpdate:value": u[0] || (u[0] = ($) => o.id = $),
849
+ "show-count": "",
850
+ maxlength: 128,
851
+ disabled: i.value
852
+ }, null, 8, ["value", "disabled"])
853
+ ]),
854
+ _: 1
855
+ }, 8, ["label", "rules"]),
856
+ (O(!0), J(se, null, He(t.lang, ($) => (O(), B(h, {
857
+ key: $.dataIndex,
858
+ label: $.title,
859
+ name: $.dataIndex,
860
+ rules: [
861
+ {
862
+ required: !0,
863
+ message: C(k)("sys.pleaseInputSth", { sth: $.title })
864
+ },
865
+ {
866
+ validator: b
867
+ }
868
+ ]
869
+ }, {
870
+ default: v(() => [
871
+ m(d, {
872
+ value: o[$.dataIndex],
873
+ "onUpdate:value": (ue) => o[$.dataIndex] = ue,
874
+ "show-count": "",
875
+ maxlength: 300
876
+ }, null, 8, ["value", "onUpdate:value"])
877
+ ]),
878
+ _: 2
879
+ }, 1032, ["label", "name", "rules"]))), 128))
880
+ ]),
881
+ _: 1
882
+ }, 8, ["model"])
883
+ ]),
884
+ _: 1
885
+ }, 16, ["title", "get-container", "onRegister"]);
886
+ };
887
+ }
888
+ }), ln = { class: "i18n-select-container" }, sn = { class: "table-wrap" }, cn = /* @__PURE__ */ D({
889
+ __name: "i18n-select-container",
890
+ props: {
891
+ i18nModalKey: {},
892
+ destroyCallback: { type: Function },
893
+ saveCallback: { type: Function }
894
+ },
5
895
  setup(e) {
6
- const m = l("test-vue-com"), a = t("Hello World!"), u = t("Hello World2!");
7
- return (C, x) => (i(), d("div", {
8
- class: p(v(m).b())
9
- }, [
10
- n("div", null, o(a.value), 1),
11
- n("div", null, o(u.value), 1)
12
- ], 2));
13
- }
14
- }), r = /* @__PURE__ */ c({
15
- name: "TestCom",
16
- setup() {
17
- return {
18
- ns: l("test-com")
896
+ const [n, { closeModal: t }] = Ke(), [r, { openModal: a }] = qe(), o = e, i = () => document.querySelector(`#${o.i18nModalKey}`), l = E(), s = X({ keywords: "" }), c = X({
897
+ current: 1,
898
+ pageSize: 5,
899
+ total: 0,
900
+ size: "small",
901
+ showTotal: (S) => k("sys.component.table.total", { total: S })
902
+ }), p = E([]), g = E(), b = E({
903
+ type: "radio",
904
+ hideSelectAll: !0,
905
+ selectedRowKeys: [],
906
+ onChange: N
907
+ }), f = E(!1), w = A(() => []), y = async (S, I) => {
908
+ f.value = !0;
909
+ const T = await _api.apaas.i18NInfo.getPageList({
910
+ pageNo: I ?? c.current,
911
+ pageSize: c.pageSize,
912
+ searchKey: S
913
+ });
914
+ if (f.value = !1, T && T.data) {
915
+ const F = T.data.map((q) => {
916
+ const te = JSON.parse(q?.info);
917
+ return {
918
+ key: q.key,
919
+ type: q.type,
920
+ ...Object.fromEntries(te.map((ne) => [ne.locale, ne.info]))
921
+ };
922
+ });
923
+ c.total = T.totalCount, p.value = F;
924
+ }
925
+ };
926
+ st(y);
927
+ const u = () => {
928
+ l.value?.validate().then(async () => {
929
+ await y(s.keywords, 1);
930
+ });
931
+ }, d = (S) => {
932
+ const { current: I, total: T, pageSize: F } = S;
933
+ c.current = I, c.total = T, c.pageSize = F, y();
934
+ }, h = () => {
935
+ a();
936
+ }, R = async (S, I) => {
937
+ const T = w.value.map((F) => ({
938
+ locale: F.dataIndex,
939
+ info: S[F.dataIndex]
940
+ }));
941
+ f.value = !0;
942
+ try {
943
+ I ? await _api.apaas.i18NInfo.putKey(
944
+ { key: S.id },
945
+ { info: JSON.stringify(T) }
946
+ ) : await _api.apaas.i18NInfo.post({
947
+ info: JSON.stringify(T),
948
+ key: S.id
949
+ }), y(), N([S.id], [X(S)]);
950
+ } catch {
951
+ f.value = !1;
952
+ }
953
+ };
954
+ function N(S, I) {
955
+ b.value.selectedRowKeys = S, g.value = I;
956
+ }
957
+ const $ = () => {
958
+ o.destroyCallback && typeof o.destroyCallback == "function" && o.destroyCallback();
959
+ }, ue = async () => {
960
+ if (o.saveCallback && typeof o.saveCallback == "function") {
961
+ const S = b.value.selectedRowKeys, I = {};
962
+ if (S && S[0]) {
963
+ const T = g.value?.[0];
964
+ console.log("selectRow", T), Object.assign(I, {
965
+ i18nKey: S[0]
966
+ // i18nTitle: selectRow[getLocale],
967
+ });
968
+ }
969
+ o.saveCallback(I);
970
+ }
971
+ t();
972
+ };
973
+ return (S, I) => {
974
+ const T = x("a-input"), F = x("a-form-item"), q = x("a-col"), te = x("a-button"), ne = x("plus-outlined"), tt = x("a-row"), nt = x("a-form"), rt = x("a-table"), at = x("basic-modal");
975
+ return O(), B(at, j(S.$attrs, {
976
+ "min-height": 40,
977
+ title: C(k)("sys.i18n.i18nConfig"),
978
+ centered: "",
979
+ width: "640px",
980
+ "can-fullscreen": !1,
981
+ "mask-closable": !1,
982
+ "after-close": $,
983
+ "get-container": i,
984
+ onRegister: C(n),
985
+ onOk: ue
986
+ }), {
987
+ default: v(() => [
988
+ U("div", ln, [
989
+ m(nt, {
990
+ ref_key: "formRef",
991
+ ref: l,
992
+ model: s,
993
+ autocomplete: "off",
994
+ layout: "horizontal"
995
+ }, {
996
+ default: v(() => [
997
+ m(tt, null, {
998
+ default: v(() => [
999
+ m(q, { span: 12 }, {
1000
+ default: v(() => [
1001
+ m(F, {
1002
+ name: "keywords",
1003
+ label: C(k)("sys.keywords")
1004
+ }, {
1005
+ default: v(() => [
1006
+ m(T, {
1007
+ value: s.keywords,
1008
+ "onUpdate:value": I[0] || (I[0] = (ot) => s.keywords = ot),
1009
+ placeholder: C(k)("sys.keywordsPlaceholder"),
1010
+ style: { display: "inline-flex" }
1011
+ }, null, 8, ["value", "placeholder"])
1012
+ ]),
1013
+ _: 1
1014
+ }, 8, ["label"])
1015
+ ]),
1016
+ _: 1
1017
+ }),
1018
+ m(q, {
1019
+ span: 12,
1020
+ style: { "text-align": "right" }
1021
+ }, {
1022
+ default: v(() => [
1023
+ m(te, {
1024
+ type: "primary",
1025
+ onClick: u
1026
+ }, {
1027
+ icon: v(() => [
1028
+ m(C(Se))
1029
+ ]),
1030
+ default: v(() => [
1031
+ Oe(" " + W(C(k)("sys.queryText")), 1)
1032
+ ]),
1033
+ _: 1
1034
+ }),
1035
+ m(te, {
1036
+ style: { margin: "0 8px" },
1037
+ type: "primary",
1038
+ onClick: h
1039
+ }, {
1040
+ icon: v(() => [
1041
+ m(ne)
1042
+ ]),
1043
+ default: v(() => [
1044
+ Oe(" " + W(C(k)("sys.new")), 1)
1045
+ ]),
1046
+ _: 1
1047
+ })
1048
+ ]),
1049
+ _: 1
1050
+ })
1051
+ ]),
1052
+ _: 1
1053
+ })
1054
+ ]),
1055
+ _: 1
1056
+ }, 8, ["model"]),
1057
+ U("div", sn, [
1058
+ m(rt, {
1059
+ ref: "tableRef",
1060
+ "data-source": p.value,
1061
+ columns: w.value,
1062
+ "show-index-column": !1,
1063
+ pagination: c,
1064
+ striped: !1,
1065
+ bordered: !0,
1066
+ "row-selection": b.value,
1067
+ loading: f.value,
1068
+ onChange: d
1069
+ }, null, 8, ["data-source", "columns", "pagination", "row-selection", "loading"]),
1070
+ m(on, {
1071
+ lang: w.value,
1072
+ "get-container": i,
1073
+ onRegister: C(r),
1074
+ onOk: R
1075
+ }, null, 8, ["lang", "onRegister"])
1076
+ ])
1077
+ ])
1078
+ ]),
1079
+ _: 1
1080
+ }, 16, ["title", "onRegister"]);
1081
+ };
1082
+ }
1083
+ }), ce = (e, n) => {
1084
+ const t = e.__vccOpts || e;
1085
+ for (const [r, a] of n)
1086
+ t[r] = a;
1087
+ return t;
1088
+ }, un = /* @__PURE__ */ ce(cn, [["__scopeId", "data-v-0160ed5e"]]), fn = /* @__PURE__ */ D({
1089
+ __name: "i18n-select-modal",
1090
+ setup(e, { expose: n }) {
1091
+ const [t, { openModal: r }] = qe();
1092
+ return n({
1093
+ open: () => {
1094
+ r();
1095
+ }
1096
+ }), (o, i) => (O(), B(un, { onRegister: C(t) }, null, 8, ["onRegister"]));
1097
+ }
1098
+ });
1099
+ function dn() {
1100
+ let e = null, n = null;
1101
+ const t = E("");
1102
+ function r(o) {
1103
+ let i, l = document.body;
1104
+ if (Ie(o, "target") || Ie(o, "props")) {
1105
+ const c = o;
1106
+ i = c.props || {}, l = c.target || document.body;
1107
+ } else
1108
+ i = o;
1109
+ t.value = i.i18nModalKey || `i18n-select-modal-${Math.random().toString(16).substring(8)}`;
1110
+ const s = {
1111
+ ...i,
1112
+ destroyCallback: () => a(i?.destroyCallback),
1113
+ i18nModalKey: C(t)
1114
+ };
1115
+ if (!e) {
1116
+ const c = document.createElement("div");
1117
+ c.id = C(t), C(l)?.appendChild(c), e = ct(fn, s), n = e.mount(c);
1118
+ }
1119
+ n?.open();
1120
+ }
1121
+ function a(o) {
1122
+ typeof o == "function" && o(), document.querySelector(`#${C(t)}`).remove(), e && (e.unmount(), e = null);
1123
+ }
1124
+ return {
1125
+ open: r,
1126
+ close: a
1127
+ };
1128
+ }
1129
+ const pn = { class: "i18n-tooltip-title" }, mn = { style: { "margin-left": "4px" } }, gn = /* @__PURE__ */ D({
1130
+ __name: "i18n-select-btn",
1131
+ props: {
1132
+ i18nValue: {},
1133
+ buttonExtraProps: {},
1134
+ size: {},
1135
+ i18nModalKey: {},
1136
+ simpleBtn: { type: Boolean },
1137
+ btnHeight: {},
1138
+ btnWidth: {}
1139
+ },
1140
+ emits: ["on-select-i18n", "closed"],
1141
+ setup(e, { emit: n }) {
1142
+ const t = E(), r = dn(), a = e, o = n, i = X({}), l = A(() => !L(a.i18nValue)), s = async (p) => {
1143
+ const g = await _api.apaas.i18NInfo.getPageList({
1144
+ pageNo: 1,
1145
+ pageSize: 20,
1146
+ searchKey: p
1147
+ });
1148
+ if (g && g.data) {
1149
+ const b = g.data.find((f) => f.key === a.i18nValue);
1150
+ b && Object.assign(
1151
+ i,
1152
+ Object.fromEntries(
1153
+ Object.entries(JSON.parse(b.info)).map(([f, w]) => [
1154
+ w.locale,
1155
+ w.info
1156
+ ])
1157
+ )
1158
+ );
1159
+ }
1160
+ };
1161
+ Ue(
1162
+ () => a.i18nValue,
1163
+ () => {
1164
+ L(a.i18nValue) || s(a.i18nValue);
1165
+ },
1166
+ {
1167
+ immediate: !0
1168
+ }
1169
+ );
1170
+ const c = () => {
1171
+ r.open({
1172
+ i18nModalKey: a.i18nModalKey,
1173
+ saveCallback: (p) => {
1174
+ o("on-select-i18n", { ...p });
1175
+ },
1176
+ destroyCallback: () => {
1177
+ o("closed");
1178
+ }
1179
+ });
1180
+ };
1181
+ return (p, g) => {
1182
+ const b = x("Icon"), f = x("a-button"), w = x("a-tooltip");
1183
+ return e.simpleBtn ? (O(), B(b, {
1184
+ key: 0,
1185
+ class: ut(["i18n-icon simple-btn", { "is-highlight": l.value }]),
1186
+ icon: "ion:language",
1187
+ onClick: c
1188
+ }, null, 8, ["class"])) : l.value ? (O(), B(w, {
1189
+ key: 1,
1190
+ color: "#fff",
1191
+ placement: "topRight"
1192
+ }, {
1193
+ title: v(() => [
1194
+ U("div", pn, "语言标识:" + W(e.i18nValue), 1),
1195
+ (O(!0), J(se, null, He(t.value, (y) => (O(), J("div", {
1196
+ key: y.id,
1197
+ class: "i18n-tooltip-item"
1198
+ }, [
1199
+ U("strong", null, W(y.language) + ": ", 1),
1200
+ U("span", mn, W(i[y.languageTag]), 1)
1201
+ ]))), 128))
1202
+ ]),
1203
+ default: v(() => [
1204
+ m(f, j(e.buttonExtraProps, {
1205
+ class: { "is-highlight": l.value },
1206
+ style: {
1207
+ "--btn-width": e.btnWidth,
1208
+ "--btn-height": e.btnHeight
1209
+ },
1210
+ size: e.size,
1211
+ onClick: c
1212
+ }), {
1213
+ icon: v(() => [
1214
+ m(b, {
1215
+ class: "i18n-icon",
1216
+ icon: "ion:language"
1217
+ })
1218
+ ]),
1219
+ _: 1
1220
+ }, 16, ["class", "style", "size"])
1221
+ ]),
1222
+ _: 1
1223
+ })) : (O(), B(f, j({ key: 2 }, e.buttonExtraProps, {
1224
+ class: { "is-highlight": l.value },
1225
+ style: {
1226
+ "--btn-width": e.btnWidth,
1227
+ "--btn-height": e.btnHeight
1228
+ },
1229
+ size: e.size,
1230
+ onClick: c
1231
+ }), {
1232
+ icon: v(() => [
1233
+ m(b, {
1234
+ class: "i18n-icon",
1235
+ icon: "ion:language"
1236
+ })
1237
+ ]),
1238
+ _: 1
1239
+ }, 16, ["class", "style", "size"]));
1240
+ };
1241
+ }
1242
+ }), Xe = /* @__PURE__ */ ce(gn, [["__scopeId", "data-v-6ebc99d2"]]), yn = typeof window < "u" && typeof document < "u";
1243
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1244
+ const bn = Object.prototype.toString, hn = (e) => bn.call(e) === "[object Object]", ie = () => {
1245
+ };
1246
+ function he(e) {
1247
+ return Array.isArray(e) ? e : [e];
1248
+ }
1249
+ function vn(e, n, t) {
1250
+ return Ue(e, n, {
1251
+ ...t,
1252
+ immediate: !0
1253
+ });
1254
+ }
1255
+ const et = yn ? window : void 0;
1256
+ function Q(e) {
1257
+ var n;
1258
+ const t = K(e);
1259
+ return (n = t?.$el) !== null && n !== void 0 ? n : t;
1260
+ }
1261
+ function ve(...e) {
1262
+ const n = (r, a, o, i) => (r.addEventListener(a, o, i), () => r.removeEventListener(a, o, i)), t = A(() => {
1263
+ const r = he(K(e[0])).filter((a) => a != null);
1264
+ return r.every((a) => typeof a != "string") ? r : void 0;
1265
+ });
1266
+ return vn(() => {
1267
+ var r, a;
1268
+ return [
1269
+ (r = (a = t.value) === null || a === void 0 ? void 0 : a.map((o) => Q(o))) !== null && r !== void 0 ? r : [et].filter((o) => o != null),
1270
+ he(K(t.value ? e[1] : e[0])),
1271
+ he(C(t.value ? e[2] : e[1])),
1272
+ K(t.value ? e[3] : e[2])
1273
+ ];
1274
+ }, ([r, a, o, i], l, s) => {
1275
+ if (!r?.length || !a?.length || !o?.length) return;
1276
+ const c = hn(i) ? { ...i } : i, p = r.flatMap((g) => a.flatMap((b) => o.map((f) => n(g, b, f, c))));
1277
+ s(() => {
1278
+ p.forEach((g) => g());
1279
+ });
1280
+ }, { flush: "post" });
1281
+ }
1282
+ function Cn(e, n, t = {}) {
1283
+ const { window: r = et, ignore: a = [], capture: o = !0, detectIframe: i = !1, controls: l = !1 } = t;
1284
+ if (!r) return l ? {
1285
+ stop: ie,
1286
+ cancel: ie,
1287
+ trigger: ie
1288
+ } : ie;
1289
+ let s = !0;
1290
+ const c = (u) => K(a).some((d) => {
1291
+ if (typeof d == "string") return Array.from(r.document.querySelectorAll(d)).some((h) => h === u.target || u.composedPath().includes(h));
1292
+ {
1293
+ const h = Q(d);
1294
+ return h && (u.target === h || u.composedPath().includes(h));
1295
+ }
1296
+ });
1297
+ function p(u) {
1298
+ const d = K(u);
1299
+ return d && d.$.subTree.shapeFlag === 16;
1300
+ }
1301
+ function g(u, d) {
1302
+ const h = K(u), R = h.$.subTree && h.$.subTree.children;
1303
+ return R == null || !Array.isArray(R) ? !1 : R.some((N) => N.el === d.target || d.composedPath().includes(N.el));
1304
+ }
1305
+ const b = (u) => {
1306
+ const d = Q(e);
1307
+ if (u.target != null && !(!(d instanceof Element) && p(e) && g(e, u)) && !(!d || d === u.target || u.composedPath().includes(d))) {
1308
+ if ("detail" in u && u.detail === 0 && (s = !c(u)), !s) {
1309
+ s = !0;
1310
+ return;
1311
+ }
1312
+ n(u);
1313
+ }
1314
+ };
1315
+ let f = !1;
1316
+ const w = [
1317
+ ve(r, "click", (u) => {
1318
+ f || (f = !0, setTimeout(() => {
1319
+ f = !1;
1320
+ }, 0), b(u));
1321
+ }, {
1322
+ passive: !0,
1323
+ capture: o
1324
+ }),
1325
+ ve(r, "pointerdown", (u) => {
1326
+ const d = Q(e);
1327
+ s = !c(u) && !!(d && !u.composedPath().includes(d));
1328
+ }, { passive: !0 }),
1329
+ i && ve(r, "blur", (u) => {
1330
+ setTimeout(() => {
1331
+ var d;
1332
+ const h = Q(e);
1333
+ ((d = r.document.activeElement) === null || d === void 0 ? void 0 : d.tagName) === "IFRAME" && !h?.contains(r.document.activeElement) && n(u);
1334
+ }, 0);
1335
+ }, { passive: !0 })
1336
+ ].filter(Boolean), y = () => w.forEach((u) => u());
1337
+ return l ? {
1338
+ stop: y,
1339
+ cancel: () => {
1340
+ s = !1;
1341
+ },
1342
+ trigger: (u) => {
1343
+ s = !0, b(u), s = !1;
1344
+ }
1345
+ } : y;
1346
+ }
1347
+ const xn = /* @__PURE__ */ D({
1348
+ __name: "i18n-select-input",
1349
+ props: {
1350
+ attr: {},
1351
+ inputExtraProps: {},
1352
+ i18nConfig: {},
1353
+ i18nText: {},
1354
+ placeholderText: {},
1355
+ size: {},
1356
+ i18nModalKey: {},
1357
+ forceUpdate: { type: Boolean },
1358
+ btnHeight: {},
1359
+ btnWidth: {}
1360
+ },
1361
+ emits: [
1362
+ "update:i18nText",
1363
+ "update:i18nConfig",
1364
+ "on-i18n-select",
1365
+ "clickOutside",
1366
+ "focus",
1367
+ "blur"
1368
+ ],
1369
+ setup(e, { emit: n }) {
1370
+ const t = A(() => !!_gct.store.appInfo.id), r = e, a = n, o = A({
1371
+ get() {
1372
+ return r.i18nText ?? "";
1373
+ },
1374
+ set(f) {
1375
+ f !== r.i18nText && a("update:i18nText", f);
1376
+ }
1377
+ }), i = A(() => L(r.i18nConfig) ? {} : typeof r.i18nConfig == "string" ? JSON.parse(r.i18nConfig) ?? {} : r.i18nConfig ?? {}), l = A(() => i.value?.[r.attr]), s = (f) => {
1378
+ console.log("emit", f), f && ((L(o.value) || r.forceUpdate === !0) && a("update:i18nText", f.i18nTitle), a(
1379
+ "update:i18nConfig",
1380
+ JSON.stringify(
1381
+ L(f) ? We(i.value, r.attr) : { ...i.value, [r.attr]: f.i18nKey }
1382
+ )
1383
+ ), a("on-i18n-select", f));
1384
+ }, c = E(), p = () => {
1385
+ a("focus", c.value);
1386
+ }, g = () => {
1387
+ a("blur", c.value);
1388
+ }, b = E();
1389
+ return Cn(b, () => {
1390
+ a("clickOutside");
1391
+ }), (f, w) => {
1392
+ const y = x("a-input"), u = x("a-input-group");
1393
+ return O(), B(u, {
1394
+ id: "i18nInputGroup",
1395
+ ref_key: "i18nInputGroup",
1396
+ ref: b,
1397
+ compact: ""
1398
+ }, {
1399
+ default: v(() => [
1400
+ ft(f.$slots, "i18n-input", {}, () => [
1401
+ m(y, j({
1402
+ ref_key: "inputRef",
1403
+ ref: c
1404
+ }, e.inputExtraProps, {
1405
+ value: o.value,
1406
+ "onUpdate:value": w[0] || (w[0] = (d) => o.value = d),
1407
+ valueModifiers: { trim: !0 },
1408
+ style: {
1409
+ height: e.btnHeight ? e.btnHeight : e.size === C(Te).SMALL ? "26px" : "32px",
1410
+ width: t.value ? `calc(100% - ${e.btnWidth ? e.btnWidth : e.size === C(Te).SMALL ? "26px" : "32px"}` : "100%"
1411
+ },
1412
+ placeholder: e.placeholderText,
1413
+ size: e.size,
1414
+ "allow-clear": "",
1415
+ onFocus: p,
1416
+ onBlur: g
1417
+ }), null, 16, ["value", "style", "placeholder", "size"])
1418
+ ], !0),
1419
+ t.value ? (O(), B(Xe, {
1420
+ key: 0,
1421
+ "btn-height": e.btnHeight,
1422
+ "btn-width": e.btnWidth,
1423
+ "i18n-value": l.value,
1424
+ size: e.size,
1425
+ "i18n-modal-key": e.i18nModalKey,
1426
+ onOnSelectI18n: s,
1427
+ onClosed: w[1] || (w[1] = (d) => a("clickOutside"))
1428
+ }, null, 8, ["btn-height", "btn-width", "i18n-value", "size", "i18n-modal-key"])) : dt("", !0)
1429
+ ]),
1430
+ _: 3
1431
+ }, 512);
1432
+ };
1433
+ }
1434
+ }), wn = /* @__PURE__ */ ce(xn, [["__scopeId", "data-v-b6406133"]]), An = /* @__PURE__ */ D({
1435
+ __name: "i18n-select-input-form",
1436
+ props: {
1437
+ formItemName: {},
1438
+ fromItemExtraProps: {},
1439
+ inputExtraProps: {},
1440
+ i18nConfig: {},
1441
+ text: {},
1442
+ formRef: {}
1443
+ },
1444
+ emits: ["update:text"],
1445
+ setup(e, { emit: n }) {
1446
+ const t = e, r = n, a = A({
1447
+ get() {
1448
+ return t.text ?? "";
1449
+ },
1450
+ set(o) {
1451
+ r("update:text", o), t.formRef?.validateFields([t.formItemName]);
1452
+ }
1453
+ });
1454
+ return (o, i) => {
1455
+ const l = x("a-form-item");
1456
+ return O(), J(se, null, [
1457
+ m(l, j({ name: e.formItemName }, e.fromItemExtraProps), {
1458
+ default: v(() => [
1459
+ m(wn, j(o.$attrs, {
1460
+ "i18n-text": a.value,
1461
+ "onUpdate:i18nText": i[0] || (i[0] = (s) => a.value = s),
1462
+ "input-extra-props": e.inputExtraProps,
1463
+ "i18n-config": e.i18nConfig,
1464
+ attr: Array.isArray(e.formItemName) ? e.formItemName.join(".") : e.formItemName,
1465
+ "placeholder-text": o.$t("sys.inputText")
1466
+ }), null, 16, ["i18n-text", "input-extra-props", "i18n-config", "attr", "placeholder-text"])
1467
+ ]),
1468
+ _: 1
1469
+ }, 16, ["name"]),
1470
+ m(l, {
1471
+ name: "i18nConfig",
1472
+ hidden: ""
1473
+ }, {
1474
+ default: v(() => [
1475
+ U("span", null, W(e.i18nConfig), 1)
1476
+ ]),
1477
+ _: 1
1478
+ })
1479
+ ], 64);
19
1480
  };
1481
+ }
1482
+ }), Sn = { class: "inline-block w100% relative" }, kn = /* @__PURE__ */ D({
1483
+ __name: "i18n-select-textarea",
1484
+ props: {
1485
+ attr: {},
1486
+ inputExtraProps: {},
1487
+ i18nConfig: {},
1488
+ i18nText: {},
1489
+ placeholderText: {},
1490
+ rows: {},
1491
+ style: {}
20
1492
  },
21
- render() {
22
- return _("div", {
23
- class: this.ns.b()
24
- }, [f("TestCom")]);
1493
+ emits: [
1494
+ "update:i18nText",
1495
+ "update:i18nConfig",
1496
+ "on-i18n-select",
1497
+ "clickOutside",
1498
+ "focus"
1499
+ ],
1500
+ setup(e, { emit: n }) {
1501
+ const t = e, r = n, a = A({
1502
+ get() {
1503
+ return t.i18nText ?? "";
1504
+ },
1505
+ set(p) {
1506
+ r("update:i18nText", p);
1507
+ }
1508
+ }), o = A(() => L(t.i18nConfig) ? {} : typeof t.i18nConfig == "string" ? JSON.parse(t.i18nConfig) ?? {} : t.i18nConfig ?? {}), i = A(() => o.value?.[t.attr]), l = (p) => {
1509
+ p && (L(a.value) && r("update:i18nText", p.i18nTitle), r(
1510
+ "update:i18nConfig",
1511
+ JSON.stringify(
1512
+ L(p) ? We(o.value, t.attr) : { ...o.value, [t.attr]: p.i18nKey }
1513
+ )
1514
+ ), r("on-i18n-select", p));
1515
+ }, s = E(), c = () => {
1516
+ r("focus", s.value);
1517
+ };
1518
+ return (p, g) => {
1519
+ const b = x("a-textarea");
1520
+ return O(), J("div", Sn, [
1521
+ m(b, j({
1522
+ ref_key: "inputRef",
1523
+ ref: s,
1524
+ value: a.value,
1525
+ "onUpdate:value": g[0] || (g[0] = (f) => a.value = f),
1526
+ placeholder: e.placeholderText
1527
+ }, e.inputExtraProps, {
1528
+ style: {
1529
+ resize: "none",
1530
+ ...e.style
1531
+ },
1532
+ onFocus: c
1533
+ }), null, 16, ["value", "placeholder", "style"]),
1534
+ m(Xe, {
1535
+ "i18n-value": i.value,
1536
+ "simple-btn": !0,
1537
+ type: "text",
1538
+ onOnSelectI18n: l,
1539
+ onClosed: g[1] || (g[1] = (f) => r("clickOutside"))
1540
+ }, null, 8, ["i18n-value"])
1541
+ ]);
1542
+ };
1543
+ }
1544
+ }), On = /* @__PURE__ */ ce(kn, [["__scopeId", "data-v-cd95c416"]]), Pn = /* @__PURE__ */ D({
1545
+ __name: "i18n-select-textarea-form",
1546
+ props: {
1547
+ formItemName: {},
1548
+ fromItemExtraProps: {},
1549
+ inputExtraProps: {},
1550
+ i18nConfig: {},
1551
+ text: {},
1552
+ formRef: {}
1553
+ },
1554
+ emits: ["update:text"],
1555
+ setup(e, { emit: n }) {
1556
+ const t = e, r = n, a = A({
1557
+ get() {
1558
+ return t.text ?? "";
1559
+ },
1560
+ set(o) {
1561
+ r("update:text", o), t.formRef?.validateFields([t.formItemName]);
1562
+ }
1563
+ });
1564
+ return (o, i) => {
1565
+ const l = x("a-form-item");
1566
+ return O(), J(se, null, [
1567
+ m(l, j({ name: e.formItemName }, e.fromItemExtraProps), {
1568
+ default: v(() => [
1569
+ m(On, j(o.$attrs, {
1570
+ "i18n-text": a.value,
1571
+ "onUpdate:i18nText": i[0] || (i[0] = (s) => a.value = s),
1572
+ "placeholder-text": o.$t("sys.inputText"),
1573
+ "input-extra-props": e.inputExtraProps,
1574
+ "i18n-config": e.i18nConfig,
1575
+ attr: Array.isArray(e.formItemName) ? e.formItemName.join(".") : e.formItemName
1576
+ }), null, 16, ["i18n-text", "placeholder-text", "input-extra-props", "i18n-config", "attr"])
1577
+ ]),
1578
+ _: 1
1579
+ }, 16, ["name"]),
1580
+ m(l, {
1581
+ name: "i18nConfig",
1582
+ hidden: ""
1583
+ }, {
1584
+ default: v(() => [
1585
+ U("span", null, W(e.i18nConfig), 1)
1586
+ ]),
1587
+ _: 1
1588
+ })
1589
+ ], 64);
1590
+ };
25
1591
  }
26
- }), g = {
1592
+ }), Mn = {
27
1593
  install(e) {
28
- e.component(r.name, r), e.component(s.name, s);
1594
+ console.log("Design Web install", e);
29
1595
  }
30
1596
  };
31
1597
  export {
32
- g as default
1598
+ on as I18Modal,
1599
+ Xe as I18nSelectBtn,
1600
+ wn as I18nSelectInput,
1601
+ An as I18nSelectInputForm,
1602
+ On as I18nSelectTextarea,
1603
+ Pn as I18nSelectTextareaForm,
1604
+ Mn as default,
1605
+ dn as useI18nSelect
33
1606
  };