@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.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 (128) hide show
  1. package/components/avatar/index.esm.js +155 -148
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/button-edit/index.esm.js +1 -1
  4. package/components/button-edit/index.umd.cjs +1 -1
  5. package/components/calendar/index.esm.js +226 -224
  6. package/components/calendar/index.umd.cjs +3 -3
  7. package/components/collection-property-editor/index.esm.js +225 -223
  8. package/components/collection-property-editor/index.umd.cjs +2 -2
  9. package/components/combo-list/index.esm.js +76 -71
  10. package/components/combo-list/index.umd.cjs +1 -1
  11. package/components/comment/index.esm.js +169 -167
  12. package/components/comment/index.umd.cjs +6 -6
  13. package/components/component/index.esm.js +3691 -3043
  14. package/components/component/index.umd.cjs +2 -2
  15. package/components/condition/index.esm.js +2015 -1352
  16. package/components/condition/index.umd.cjs +2 -2
  17. package/components/data-grid/index.esm.js +407 -430
  18. package/components/data-grid/index.umd.cjs +1 -1
  19. package/components/data-view/index.esm.js +3082 -3196
  20. package/components/data-view/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.esm.js +3364 -2713
  22. package/components/designer-canvas/index.umd.cjs +1 -1
  23. package/components/drawer/index.esm.js +66 -64
  24. package/components/drawer/index.umd.cjs +2 -2
  25. package/components/dynamic-form/index.esm.js +1176 -524
  26. package/components/dynamic-form/index.umd.cjs +1 -1
  27. package/components/dynamic-resolver/index.esm.js +182 -180
  28. package/components/dynamic-resolver/index.umd.cjs +2 -2
  29. package/components/dynamic-view/index.esm.js +531 -455
  30. package/components/dynamic-view/index.umd.cjs +1 -1
  31. package/components/events-editor/index.esm.js +2352 -1700
  32. package/components/events-editor/index.umd.cjs +3 -3
  33. package/components/expression-editor/index.esm.js +8 -3
  34. package/components/expression-editor/index.umd.cjs +2 -2
  35. package/components/filter-bar/index.esm.js +422 -413
  36. package/components/filter-bar/index.umd.cjs +2 -2
  37. package/components/filter-condition-editor/index.esm.js +8 -3
  38. package/components/filter-condition-editor/index.umd.cjs +1 -1
  39. package/components/image/index.esm.js +363 -354
  40. package/components/image/index.umd.cjs +2 -2
  41. package/components/language-textbox/index.esm.js +189 -187
  42. package/components/language-textbox/index.umd.cjs +2 -2
  43. package/components/list-view/index.esm.js +388 -389
  44. package/components/list-view/index.umd.cjs +5 -5
  45. package/components/mapping-editor/index.esm.js +1465 -1488
  46. package/components/mapping-editor/index.umd.cjs +1 -1
  47. package/components/number-range/index.esm.js +180 -173
  48. package/components/number-range/index.umd.cjs +1 -1
  49. package/components/order/index.esm.js +815 -811
  50. package/components/order/index.umd.cjs +5 -5
  51. package/components/property-panel/index.esm.js +429 -420
  52. package/components/property-panel/index.umd.cjs +3 -3
  53. package/components/query-solution/index.esm.js +4746 -4085
  54. package/components/query-solution/index.umd.cjs +7 -7
  55. package/components/schema-selector/index.esm.js +1401 -1402
  56. package/components/schema-selector/index.umd.cjs +5 -5
  57. package/components/section/index.esm.js +102 -100
  58. package/components/section/index.umd.cjs +2 -2
  59. package/components/sort-condition-editor/index.esm.js +8 -3
  60. package/components/sort-condition-editor/index.umd.cjs +1 -1
  61. package/components/transfer/index.esm.js +537 -538
  62. package/components/transfer/index.umd.cjs +5 -5
  63. package/components/tree-grid/index.esm.js +280 -283
  64. package/components/tree-grid/index.umd.cjs +1 -1
  65. package/components/tree-view/index.esm.js +200 -202
  66. package/components/tree-view/index.umd.cjs +1 -1
  67. package/components/uploader/index.esm.js +533 -519
  68. package/components/uploader/index.umd.cjs +2 -2
  69. package/designer/data-grid/index.esm.js +3806 -3905
  70. package/designer/data-grid/index.umd.cjs +9 -9
  71. package/designer/drawer/index.esm.js +188 -186
  72. package/designer/drawer/index.umd.cjs +2 -2
  73. package/designer/dynamic-form/index.esm.js +1562 -1073
  74. package/designer/dynamic-form/index.umd.cjs +2 -2
  75. package/designer/farris-designer.all.esm.js +9793 -8613
  76. package/designer/farris-designer.all.umd.cjs +8 -8
  77. package/designer/list-view/index.esm.js +564 -564
  78. package/designer/list-view/index.umd.cjs +6 -6
  79. package/designer/radio-group/index.esm.js +236 -229
  80. package/designer/radio-group/index.umd.cjs +1 -1
  81. package/designer/response-layout-editor/index.esm.js +178 -171
  82. package/designer/response-layout-editor/index.umd.cjs +1 -1
  83. package/designer/tabs/index.esm.js +3154 -2508
  84. package/designer/tabs/index.umd.cjs +2 -2
  85. package/designer/time-picker/index.esm.js +193 -186
  86. package/designer/time-picker/index.umd.cjs +1 -1
  87. package/designer/tree-grid/index.esm.js +444 -447
  88. package/designer/tree-grid/index.umd.cjs +1 -1
  89. package/farris.all.esm.js +60126 -59649
  90. package/farris.all.umd.cjs +30 -30
  91. package/index.css +1 -1
  92. package/package.json +1 -1
  93. package/types/components.d.ts +1 -1
  94. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
  95. package/types/data-grid/index.d.ts +2 -5
  96. package/types/data-grid/src/data-grid.component.d.ts +1 -2
  97. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  98. package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
  99. package/types/data-view/composition/types.d.ts +0 -4
  100. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
  101. package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
  102. package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
  103. package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
  104. package/types/dynamic-form/designer.d.ts +0 -1
  105. package/types/dynamic-form/index.d.ts +4 -3
  106. package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
  107. package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
  108. package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
  109. package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
  110. package/types/dynamic-form/src/response-form.props.d.ts +13 -1
  111. package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
  112. package/types/dynamic-form/src/types.d.ts +1 -0
  113. package/types/dynamic-resolver/src/types.d.ts +1 -0
  114. package/types/dynamic-view/index.d.ts +43 -3
  115. package/types/dynamic-view/src/components/maps.d.ts +6 -6
  116. package/types/dynamic-view/src/composition/index.d.ts +5 -0
  117. package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
  118. package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
  119. package/types/language-textbox/index.d.ts +3 -3
  120. package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
  121. package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
  122. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
  123. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  124. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  125. package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
  126. package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
  127. package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
  128. package/types/tree-view/src/tree-view.props.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, ref as F, inject as _, onMounted as V, createVNode as T, computed as k, watch as L, withDirectives as Y, vModelText as ce, resolveDirective as de, Fragment as fe, toRefs as me } from "vue";
1
+ import { defineComponent as $, ref as F, inject as H, onMounted as V, createVNode as T, computed as k, watch as O, withDirectives as Y, vModelText as ce, resolveDirective as de, Fragment as fe, toRefs as me } from "vue";
2
2
  import { useDesignerComponent as pe } from "../designer-canvas/index.esm.js";
3
3
  import { InputBaseProperty as ve } from "../property-panel/index.esm.js";
4
4
  import ge from "../button-edit/index.esm.js";
@@ -6,9 +6,9 @@ import { createPropsResolver as be, getPropsResolverGenerator as ye } from "../d
6
6
  import { isPlainObject as U, cloneDeep as Z } from "lodash-es";
7
7
  import { FInputGroup as xe } from "../input-group/index.esm.js";
8
8
  import { LocaleService as J } from "../locale/index.esm.js";
9
- import { useTextBox as Te, useClear as he, withInstall as Ce, isMobilePhone as Se } from "../common/index.esm.js";
10
- import { useNumber as we, useFormat as Be, useSpinner as Fe, useTextBox as Pe, getSpinnerRender as ke, getNumberTextBoxRender as Oe } from "../number-spinner/index.esm.js";
11
- class Le extends ve {
9
+ import { useTextBox as Te, useClear as he, withInstall as Ce, isMobilePhone as we } from "../common/index.esm.js";
10
+ import { useNumber as Se, useFormat as Be, useSpinner as Fe, useTextBox as Pe, getSpinnerRender as ke, getNumberTextBoxRender as Le } from "../number-spinner/index.esm.js";
11
+ class Oe extends ve {
12
12
  constructor(t, n) {
13
13
  super(t, n);
14
14
  }
@@ -32,7 +32,7 @@ class Le extends ve {
32
32
  function Ee(e, t) {
33
33
  function n(o, c) {
34
34
  const b = e.schema;
35
- return new Le(o, t).getPropertyConfig(b, c);
35
+ return new Oe(o, t).getPropertyConfig(b, c);
36
36
  }
37
37
  return { getPropsConfig: n };
38
38
  }
@@ -45,10 +45,10 @@ const Me = /* @__PURE__ */ $({
45
45
  }
46
46
  },
47
47
  setup(e, t) {
48
- const n = F(), o = _("design-item-context"), c = _("designer-host-service"), b = Ee(o, c), u = pe(n, o, b);
48
+ const n = F(), o = H("design-item-context"), c = H("designer-host-service"), b = Ee(o, c), i = pe(n, o, b);
49
49
  return V(() => {
50
- n.value.componentInstance = u;
51
- }), t.expose(u.value), () => T("div", {
50
+ n.value.componentInstance = i;
51
+ }), t.expose(i.value), () => T("div", {
52
52
  class: "f-button-edit f-cmp-inputgroup f-button-edit-nowrap",
53
53
  ref: n
54
54
  }, [T("div", {
@@ -71,7 +71,7 @@ const Me = /* @__PURE__ */ $({
71
71
  function Q(e, t) {
72
72
  let n;
73
73
  function o(l) {
74
- const { properties: s, title: m, ignore: r } = l, a = r && Array.isArray(r), f = Object.keys(s).reduce((g, i) => ((!a || !r.find((S) => S === i)) && (g[i] = s[i].type === "object" && s[i].properties ? o(s[i]) : Z(s[i].default)), g), {});
74
+ const { properties: s, title: m, ignore: r } = l, a = r && Array.isArray(r), f = Object.keys(s).reduce((g, u) => ((!a || !r.find((w) => w === u)) && (g[u] = s[u].type === "object" && s[u].properties ? o(s[u]) : Z(s[u].default)), g), {});
75
75
  if (m && (!a || !r.find((g) => g === "id"))) {
76
76
  const g = m.toLowerCase().replace(/-/g, "_");
77
77
  f.id = `${g}_${Math.random().toString().slice(2, 6)}`;
@@ -101,7 +101,7 @@ function Q(e, t) {
101
101
  }
102
102
  return null;
103
103
  }
104
- function u(l, s) {
104
+ function i(l, s) {
105
105
  const m = o(s);
106
106
  return Object.keys(m).reduce((r, a) => (Object.prototype.hasOwnProperty.call(l, a) && (r[a] && U(r[a]) && U(l[a] || !l[a]) ? Object.assign(r[a], l[a] || {}) : r[a] = l[a]), r), m), m;
107
107
  }
@@ -120,8 +120,8 @@ function Q(e, t) {
120
120
  return r;
121
121
  }, {});
122
122
  }
123
- function w(l, s, m = /* @__PURE__ */ new Map()) {
124
- const r = u(l, s);
123
+ function S(l, s, m = /* @__PURE__ */ new Map()) {
124
+ const r = i(l, s);
125
125
  return C(r, m);
126
126
  }
127
127
  function d(l) {
@@ -131,10 +131,10 @@ function Q(e, t) {
131
131
  const r = e[s];
132
132
  if (!r)
133
133
  return l;
134
- const a = u(l, r), f = ((m = l.editor) == null ? void 0 : m.type) || "";
134
+ const a = i(l, r), f = ((m = l.editor) == null ? void 0 : m.type) || "";
135
135
  if (f) {
136
- const g = e[f], i = u(l.editor, g);
137
- a.editor = i;
136
+ const g = e[f], u = i(l.editor, g);
137
+ a.editor = u;
138
138
  }
139
139
  return a;
140
140
  }
@@ -143,7 +143,7 @@ function Q(e, t) {
143
143
  function p(l) {
144
144
  n = l;
145
145
  }
146
- return { getSchemaByType: b, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: w, mappingSchemaToProps: C, setDesignerContext: p };
146
+ return { getSchemaByType: b, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: S, mappingSchemaToProps: C, setDesignerContext: p };
147
147
  }
148
148
  const Ie = {}, Re = {}, { resolveSchemaWithDefaultValue: Ne } = Q(Ie, Re);
149
149
  function je(e = {}) {
@@ -184,7 +184,7 @@ function je(e = {}) {
184
184
  return l.push(...m), l;
185
185
  }, []);
186
186
  }
187
- function u(d, p) {
187
+ function i(d, p) {
188
188
  if (o.has(d.operator)) {
189
189
  const l = o.get(d.operator);
190
190
  return l && l(d.target, d.param, d.value, p) || !1;
@@ -192,13 +192,13 @@ function je(e = {}) {
192
192
  return !1;
193
193
  }
194
194
  function C(d, p) {
195
- return b(d).reduce((m, r) => m && u(r, p), !0);
195
+ return b(d).reduce((m, r) => m && i(r, p), !0);
196
196
  }
197
- function w(d, p) {
198
- const l = Object.keys(d), s = l.includes("allOf"), m = l.includes("anyOf"), r = s || m, g = (r ? d[r ? s ? "allOf" : "anyOf" : "allOf"] : [d]).map((S) => C(S, p));
197
+ function S(d, p) {
198
+ const l = Object.keys(d), s = l.includes("allOf"), m = l.includes("anyOf"), r = s || m, g = (r ? d[r ? s ? "allOf" : "anyOf" : "allOf"] : [d]).map((w) => C(w, p));
199
199
  return s ? !g.includes(!1) : g.includes(!0);
200
200
  }
201
- return { parseValueSchema: w };
201
+ return { parseValueSchema: S };
202
202
  }
203
203
  const De = {
204
204
  convertTo: (e, t, n, o) => {
@@ -266,19 +266,24 @@ const De = {
266
266
  "discussion-list": { type: "discussion-list", name: "评论列表" },
267
267
  comment: { type: "comment", name: "评论区" },
268
268
  "rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
269
- calendar: { type: "calendar", name: "日历", icon: "date-picker" }
270
- }, Ge = {
269
+ calendar: { type: "calendar", name: "日历", icon: "date-picker" },
270
+ wizard: { type: "wizard", name: "向导", icon: "wizard" },
271
+ "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
272
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
273
+ step: { type: "step", name: "步骤条", icon: "step" },
274
+ "dynamic-form": { type: "dynamic-form", name: "动态表单" }
275
+ }, ze = {
271
276
  convertFrom: (e, t, n) => {
272
277
  var c;
273
278
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
274
279
  return ((c = $e[o]) == null ? void 0 : c.name) || o;
275
280
  }
276
- }, ze = {
281
+ }, Ge = {
277
282
  convertTo: (e, t, n, o) => {
278
283
  e[t] = e[t];
279
284
  },
280
285
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
281
- }, He = {
286
+ }, We = {
282
287
  convertTo: (e, t, n, o) => {
283
288
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
284
289
  [t]: n
@@ -306,6 +311,8 @@ const De = {
306
311
  return e.formatter.customFormat;
307
312
  if (t === "type")
308
313
  return e.formatter.type || "none";
314
+ if (t === "customFormat")
315
+ return e.formmater.customFormat;
309
316
  }
310
317
  return "none";
311
318
  }
@@ -327,29 +334,17 @@ const De = {
327
334
  ]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
328
335
  {
329
336
  value: "add",
330
- text: {
331
- en: "add",
332
- "zh-CHS": "增加",
333
- "zh-CHT": "增加"
334
- },
337
+ text: "增加",
335
338
  type: "link"
336
339
  },
337
340
  {
338
341
  value: "edit",
339
- text: {
340
- en: "edit",
341
- "zh-CHS": "编辑",
342
- "zh-CHT": "編輯"
343
- },
342
+ text: "编辑",
344
343
  type: "danger"
345
344
  },
346
345
  {
347
346
  value: "remove",
348
- text: {
349
- en: "remove",
350
- "zh-CHS": "删除",
351
- "zh-CHT": "刪除"
352
- },
347
+ text: "删除",
353
348
  type: "remove"
354
349
  }
355
350
  ]), t === "enableType" && n === "unable" && (e.command.enable = !1);
@@ -358,7 +353,7 @@ const De = {
358
353
  var o, c;
359
354
  if (e.command) {
360
355
  if (t === "enableType") {
361
- const b = (c = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : c.find((u) => u.command === "edit" && u.type === "primary");
356
+ const b = (c = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : c.find((i) => i.command === "edit" && i.type === "primary");
362
357
  return e.command.enable ? b ? "default" : "custom" : "unable";
363
358
  }
364
359
  if (t === "commands")
@@ -367,10 +362,12 @@ const De = {
367
362
  return e.command.formatter;
368
363
  if (t === "count")
369
364
  return e.command.count;
365
+ if (t === "columnWidth")
366
+ return e.command.columnWidth || 150;
370
367
  }
371
368
  return "";
372
369
  }
373
- }, We = {
370
+ }, _e = {
374
371
  convertTo: (e, t, n, o) => {
375
372
  e.column ? e.column[t] = n : e.column = {
376
373
  [t]: n
@@ -385,7 +382,7 @@ const De = {
385
382
  }
386
383
  return "";
387
384
  }
388
- }, _e = {
385
+ }, He = {
389
386
  convertTo: (e, t, n, o) => {
390
387
  e.summary ? e.summary[t] = n : e.summary = {
391
388
  [t]: n
@@ -394,7 +391,10 @@ const De = {
394
391
  groupFields: []
395
392
  });
396
393
  },
397
- convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
394
+ convertFrom: (e, t, n) => {
395
+ var o;
396
+ return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
397
+ }
398
398
  }, Ue = {
399
399
  convertTo: (e, t, n, o) => {
400
400
  e.group ? e.group[t] = n : e.group = {
@@ -423,9 +423,9 @@ const De = {
423
423
  }
424
424
  }, Ye = {
425
425
  convertTo: (e, t, n, o) => {
426
- e.pagination || (e.pagination = {}), e.pagination[t] = n;
426
+ e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
427
427
  },
428
- convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
428
+ convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
429
429
  }, Je = {
430
430
  convertTo: (e, t, n, o) => {
431
431
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
@@ -488,6 +488,8 @@ const De = {
488
488
  return e.rowOption.customRowStyle;
489
489
  if (t === "customCellStyle")
490
490
  return e.rowOption.customCellStyle;
491
+ if (t === "height")
492
+ return e.rowOption.height;
491
493
  }
492
494
  return "";
493
495
  }
@@ -510,12 +512,12 @@ function X(e, t, n) {
510
512
  ["/converter/buttons.converter", Ve],
511
513
  ["/converter/property-editor.converter", Ae],
512
514
  ["/converter/items-count.converter", Xe],
513
- ["/converter/type.converter", Ge],
514
- ["/converter/change-editor.converter", ze],
515
- ["/converter/change-formatter.converter", He],
515
+ ["/converter/type.converter", ze],
516
+ ["/converter/change-editor.converter", Ge],
517
+ ["/converter/change-formatter.converter", We],
516
518
  ["/converter/column-command.converter", qe],
517
- ["/converter/column-option.converter", We],
518
- ["/converter/summary.converter", _e],
519
+ ["/converter/column-option.converter", _e],
520
+ ["/converter/summary.converter", He],
519
521
  ["/converter/group.converter", Ue],
520
522
  ["/converter/form-group-label.converter", Ke],
521
523
  ["/converter/field-selector.converter", Ze],
@@ -553,75 +555,75 @@ function X(e, t, n) {
553
555
  ["number", { type: "number-spinner", placeholder: "" }],
554
556
  ["events-editor", { type: "events-editor", hide: !0 }]
555
557
  ]), b = je();
556
- function u(r, a) {
558
+ function i(r, a) {
557
559
  return () => b.parseValueSchema(r, a);
558
560
  }
559
561
  function C(r, a, f) {
560
- return r.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : u(a.visible, f) : () => !0;
562
+ return r.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : i(a.visible, f) : () => !0;
561
563
  }
562
- function w(r, a, f) {
563
- return r.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : u(a.readonly, f) : () => !1;
564
+ function S(r, a, f) {
565
+ return r.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : i(a.readonly, f) : () => !1;
564
566
  }
565
567
  function d(r, a) {
566
568
  const f = r.$converter || a;
567
569
  return typeof f == "string" && f && o.has(f) ? o.get(f) || null : f || null;
568
570
  }
569
- function p(r, a, f, g, i, S = "", P = "") {
571
+ function p(r, a, f, g, u, w = "", P = "") {
570
572
  return Object.keys(r).map((v) => {
571
- const y = F(1), O = v, h = r[v], x = Object.keys(h), R = h.title, E = h.type, j = c.get(E) || { type: "input-group", enableClear: !1 }, N = h.editor ? Object.assign({}, j, h.editor) : Object.assign({}, j), G = C(x, h, a), A = w(x, h, a);
573
+ const y = F(1), L = v, h = r[v], x = Object.keys(h), R = h.title, E = h.type, j = c.get(E) || { type: "input-group", enableClear: !1 }, N = h.editor ? Object.assign({}, j, h.editor) : Object.assign({}, j), z = C(x, h, a), A = S(x, h, a);
572
574
  N.readonly = N.readonly === void 0 ? A() : N.readonly;
573
- const z = h.type === "cascade" ? p(h.properties, a, f, g, i, S, P) : [], H = !0;
575
+ const G = h.type === "cascade" ? p(h.properties, a, f, g, u, w, P) : [], W = !0;
574
576
  let M = d(h, P);
575
577
  const re = k({
576
578
  get() {
577
579
  if (y.value) {
578
- if (["class", "style"].find((se) => se === O) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
579
- return M.convertFrom(f, v, i, S);
580
+ if (["class", "style"].find((se) => se === L) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
581
+ return M.convertFrom(f, v, u, w);
580
582
  const I = f[v];
581
583
  return Object.prototype.hasOwnProperty.call(h, "defaultValue") && (I === void 0 || typeof I == "string" && I === "") ? h.type === "boolean" ? h.defaultValue : h.defaultValue || "" : I;
582
584
  }
583
585
  return null;
584
586
  },
585
587
  set(I) {
586
- y.value += 1, M && M.convertTo ? (M.convertTo(g, v, I, i, S), M.convertTo(f, v, I, i, S)) : (g[v] = I, f[v] = I);
588
+ y.value += 1, M && M.convertTo ? (M.convertTo(g, v, I, u, w), M.convertTo(f, v, I, u, w)) : (g[v] = I, f[v] = I);
587
589
  }
588
- }), { refreshPanelAfterChanged: ae, description: le, isExpand: ue, parentPropertyID: ie } = h, W = { propertyID: O, propertyName: R, propertyType: E, propertyValue: re, editor: N, visible: G, readonly: A, cascadeConfig: z, hideCascadeTitle: H, refreshPanelAfterChanged: ae, description: le, isExpand: ue, parentPropertyID: ie };
589
- return a[O] = W, W;
590
+ }), { refreshPanelAfterChanged: ae, description: le, isExpand: ie, parentPropertyID: ue } = h, _ = { propertyID: L, propertyName: R, propertyType: E, propertyValue: re, editor: N, visible: z, readonly: A, cascadeConfig: G, hideCascadeTitle: W, refreshPanelAfterChanged: ae, description: le, isExpand: ie, parentPropertyID: ue };
591
+ return a[L] = _, _;
590
592
  });
591
593
  }
592
594
  function l(r, a, f = {}) {
593
- const g = {}, i = e[r];
594
- return i && i.categories ? Object.keys(i.categories).map((P) => {
595
- const B = i.categories[P], v = B == null ? void 0 : B.title, y = p(B.properties || {}, g, {}, f, a);
595
+ const g = {}, u = e[r];
596
+ return u && u.categories ? Object.keys(u.categories).map((P) => {
597
+ const B = u.categories[P], v = B == null ? void 0 : B.title, y = p(B.properties || {}, g, {}, f, a);
596
598
  return { categoryId: P, categoryName: v, properties: y };
597
599
  }) : [];
598
600
  }
599
- function s(r, a, f, g, i = "") {
600
- const S = a.$ref.schema, P = a.$ref.converter, B = f[S], v = B.type, y = n(B), O = {}, h = e[v];
601
+ function s(r, a, f, g, u = "") {
602
+ const w = a.$ref.schema, P = a.$ref.converter, B = f[w], v = B.type, y = n(B), L = {}, h = e[v];
601
603
  if (h && h.categories) {
602
604
  const x = h.categories[r], R = x == null ? void 0 : x.title;
603
605
  P && Object.keys(x.properties).forEach((N) => {
604
606
  x.properties[N].$converter = P;
605
607
  });
606
- const E = (x == null ? void 0 : x.properties) || {}, j = p(E, O, y, B, g, i);
608
+ const E = (x == null ? void 0 : x.properties) || {}, j = p(E, L, y, B, g, u);
607
609
  return { categoryId: r, categoryName: R, properties: j };
608
610
  }
609
611
  return { categoryId: r, categoryName: "", properties: [] };
610
612
  }
611
- function m(r, a, f, g, i) {
612
- const S = r.type, P = n(r), B = {};
613
- let v = i || e[S];
613
+ function m(r, a, f, g, u) {
614
+ const w = r.type, P = n(r), B = {};
615
+ let v = u || e[w];
614
616
  if (!(v && Object.keys(v).length > 0) && f && f.getPropConfig && (v = f.getPropConfig(g)), v && v.categories) {
615
- const O = [];
617
+ const L = [];
616
618
  return Object.keys(v.categories).map((h) => {
617
619
  const x = v.categories[h];
618
620
  if (x.$ref) {
619
- O.push(s(h, x, r, a, g));
621
+ L.push(s(h, x, r, a, g));
620
622
  return;
621
623
  }
622
- const R = x == null ? void 0 : x.title, E = x == null ? void 0 : x.tabId, j = x == null ? void 0 : x.tabName, N = x == null ? void 0 : x.hide, G = x == null ? void 0 : x.hideTitle, A = p(x.properties || {}, B, P, r, a, g, x.$converter), { setPropertyRelates: z } = x, H = x == null ? void 0 : x.parentPropertyID;
623
- O.push({ categoryId: h, categoryName: R, tabId: E, tabName: j, hide: N, properties: A, hideTitle: G, setPropertyRelates: z, parentPropertyID: H });
624
- }), O;
624
+ const R = x == null ? void 0 : x.title, E = x == null ? void 0 : x.tabId, j = x == null ? void 0 : x.tabName, N = x == null ? void 0 : x.hide, z = x == null ? void 0 : x.hideTitle, A = p(x.properties || {}, B, P, r, a, g, x.$converter), { setPropertyRelates: G } = x, W = x == null ? void 0 : x.parentPropertyID;
625
+ L.push({ categoryId: h, categoryName: R, tabId: E, tabName: j, hide: N, properties: A, hideTitle: z, setPropertyRelates: G, parentPropertyID: W });
626
+ }), L;
625
627
  }
626
628
  return [];
627
629
  }
@@ -631,9 +633,9 @@ function X(e, t, n) {
631
633
  propertyConverterMap: o
632
634
  };
633
635
  }
634
- const lt = {}, ut = {};
635
- X(lt, ut, Ne);
636
- const it = {}, st = {}, { resolveSchemaWithDefaultValue: ct } = Q(it, st), dt = {}, ft = {};
636
+ const lt = {}, it = {};
637
+ X(lt, it, Ne);
638
+ const ut = {}, st = {}, { resolveSchemaWithDefaultValue: ct } = Q(ut, st), dt = {}, ft = {};
637
639
  X(dt, ft, ct);
638
640
  function mt(e, t) {
639
641
  return { customClass: t.class, customStyle: t.style };
@@ -785,7 +787,7 @@ const q = {
785
787
  tabIndex: { type: Number, default: -1 },
786
788
  enableTitle: { type: Boolean, default: !0 },
787
789
  maxLength: { type: Number, default: null }
788
- }, zt = be(q, ee, K, te), ne = ye(
790
+ }, Gt = be(q, ee, K, te), ne = ye(
789
791
  q,
790
792
  ee,
791
793
  K,
@@ -815,8 +817,8 @@ const q = {
815
817
  const n = F(e.languages), o = F(e.modelValue || {}), c = F();
816
818
  return V(() => {
817
819
  setTimeout(() => {
818
- var b, u;
819
- (u = (b = c.value) == null ? void 0 : b.querySelector("input")) == null || u.focus();
820
+ var b, i;
821
+ (i = (b = c.value) == null ? void 0 : b.querySelector("input")) == null || i.focus();
820
822
  }, 130);
821
823
  }), () => {
822
824
  var b;
@@ -824,7 +826,7 @@ const q = {
824
826
  class: "list-group",
825
827
  style: "background: white;",
826
828
  ref: c
827
- }, [(b = n.value) == null ? void 0 : b.map((u) => T("li", {
829
+ }, [(b = n.value) == null ? void 0 : b.map((i) => T("li", {
828
830
  class: "list-group-item border-0 p-2 px-2"
829
831
  }, [T("div", {
830
832
  class: "farris-group-wrap form-inline farris-form-inline"
@@ -835,21 +837,21 @@ const q = {
835
837
  class: "col-form-label"
836
838
  }, [T("span", {
837
839
  class: "farris-label-text",
838
- title: u.name
839
- }, [u.name])]), T("div", {
840
+ title: i.name
841
+ }, [i.name])]), T("div", {
840
842
  class: "farris-input-wrap"
841
843
  }, [T(xe, {
842
- id: e.id + "_" + u.code,
843
- modelValue: o.value[u.code],
844
+ id: e.id + "_" + i.code,
845
+ modelValue: o.value[i.code],
844
846
  "onUpdate:modelValue": (C) => {
845
- o.value[u.code] = C, t.emit("update:modelValue", o.value);
847
+ o.value[i.code] = C, t.emit("update:modelValue", o.value);
846
848
  },
847
849
  updateOn: "change",
848
850
  maxLength: e.maxLength
849
851
  }, null)])])])]))]);
850
852
  };
851
853
  }
852
- }), St = {
854
+ }), wt = {
853
855
  id: { Type: String, default: "" },
854
856
  /** 是否自动完成 */
855
857
  autocomplete: { Type: String, default: "off" },
@@ -933,7 +935,7 @@ const q = {
933
935
  */
934
936
  keyboard: { type: Boolean, default: !0 }
935
937
  };
936
- function wt(e, t) {
938
+ function St(e, t) {
937
939
  const n = F(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), c = k(() => e.type === "password" || e.showType === "password" || e.enableClear || !!e.groupText || o.value);
938
940
  return { appendedButtonClass: k(() => ({
939
941
  "input-group-append": !0,
@@ -941,24 +943,24 @@ function wt(e, t) {
941
943
  })), appendedContent: n, shouldShowAppendedButton: c };
942
944
  }
943
945
  function Bt(e, t, n, o) {
944
- const { appendedContent: c } = o, b = F(e.enableViewPassword), u = k(() => e.type === "password" || e.showType === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', w = '<span class="f-icon f-icon-eye"></span>', d = F(!1);
945
- L(() => [e.readonly, e.disabled], ([s, m]) => {
946
- u.value && (n.value = s || m ? "password" : n.value, c.value = e.readonly || e.disabled ? "" : b.value ? w : "");
946
+ const { appendedContent: c } = o, b = F(e.enableViewPassword), i = k(() => e.type === "password" || e.showType === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', S = '<span class="f-icon f-icon-eye"></span>', d = F(!1);
947
+ O(() => [e.readonly, e.disabled], ([s, m]) => {
948
+ i.value && (n.value = s || m ? "password" : n.value, c.value = e.readonly || e.disabled ? "" : b.value ? S : "");
947
949
  });
948
950
  function p() {
949
- return d.value = !d.value, n.value = d.value ? "text" : "password", c.value = d.value ? C : w, !1;
951
+ return d.value = !d.value, n.value = d.value ? "text" : "password", c.value = d.value ? C : S, !1;
950
952
  }
951
953
  function l() {
952
- n.value = u.value ? "password" : n.value, u.value && (c.value = e.readonly || e.disabled ? "" : b.value ? w : "");
954
+ n.value = i.value ? "password" : n.value, i.value && (c.value = e.readonly || e.disabled ? "" : b.value ? S : "");
953
955
  }
954
- return l(), { isPassword: u, onClickAppendedButton: p };
956
+ return l(), { isPassword: i, onClickAppendedButton: p };
955
957
  }
956
958
  function Ft(e, t) {
957
- const n = we(e, t), o = Be(e, t, n), c = Fe(e, t, o, n), b = Pe(e, t, o, n, c), u = ke(e, t, c), {
959
+ const n = Se(e, t), o = Be(e, t, n), c = Fe(e, t, o, n), b = Pe(e, t, o, n, c), i = ke(e, t, c), {
958
960
  displayValue: C,
959
- modelValue: w,
961
+ modelValue: S,
960
962
  getRealValue: d
961
- } = n, p = Oe(e, t, b), {
963
+ } = n, p = Le(e, t, b), {
962
964
  format: l
963
965
  } = o, {
964
966
  isFocus: s
@@ -966,17 +968,17 @@ function Ft(e, t) {
966
968
  return V(() => {
967
969
  const r = d(e.modelValue);
968
970
  C.value = l(r);
969
- }), L(() => [e.value], ([r]) => {
971
+ }), O(() => [e.value], ([r]) => {
970
972
  const a = d(r);
971
- w.value = a, C.value = l(a);
972
- }), L(() => [e.modelValue], ([r]) => {
973
- r !== w.value && (w.value = r, !s.value && (C.value = l(d(r))));
974
- }), L(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
975
- C.value = l(w.value);
973
+ S.value = a, C.value = l(a);
974
+ }), O(() => [e.modelValue], ([r]) => {
975
+ r !== S.value && (S.value = r, !s.value && (C.value = l(d(r))));
976
+ }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
977
+ C.value = l(S.value);
976
978
  }), () => T("div", {
977
979
  class: "input-group flex-row f-cmp-number-spinner",
978
980
  style: "border:none;"
979
- }, [p(), m.value && u()]);
981
+ }, [p(), m.value && i()]);
980
982
  }
981
983
  function Pt(e) {
982
984
  return e ? J.getRealPropertyValue(e, "请输入", "input-group.placeholder") : "";
@@ -984,14 +986,14 @@ function Pt(e) {
984
986
  function kt(e, t, n, o) {
985
987
  const c = F(), {
986
988
  inputGroupClass: b,
987
- onBlur: u,
989
+ onBlur: i,
988
990
  onFocus: C
989
991
  } = o, {
990
- clearButtonClass: w,
992
+ clearButtonClass: S,
991
993
  clearButtonStyle: d
992
994
  } = n, p = k(() => e.maxLength ? e.maxLength : e.modelValue ? e.modelValue.length : 0), l = (v) => {
993
- var y, O;
994
- v.stopPropagation(), t.emit("update:modelValue", (y = v.target) == null ? void 0 : y.value), t.emit("valueChange", (O = v.target) == null ? void 0 : O.value);
995
+ var y, L;
996
+ v.stopPropagation(), t.emit("update:modelValue", (y = v.target) == null ? void 0 : y.value), t.emit("valueChange", (L = v.target) == null ? void 0 : L.value);
995
997
  }, s = k(() => ({
996
998
  "form-control": !0,
997
999
  "h-100": e.autoHeight
@@ -1014,10 +1016,10 @@ function kt(e, t, n, o) {
1014
1016
  height: "auto",
1015
1017
  ...v
1016
1018
  } : v;
1017
- }), i = (v) => {
1019
+ }), u = (v) => {
1018
1020
  v.stopPropagation(), c.value.value = "", t.emit("update:modelValue", ""), t.emit("valueChange", "");
1019
1021
  };
1020
- function S() {
1022
+ function w() {
1021
1023
  return Y(T("textarea", {
1022
1024
  class: s.value,
1023
1025
  id: e.id,
@@ -1034,7 +1036,7 @@ function kt(e, t, n, o) {
1034
1036
  rows: e.rows,
1035
1037
  onInput: l,
1036
1038
  onFocus: C,
1037
- onBlur: u,
1039
+ onBlur: i,
1038
1040
  style: g.value
1039
1041
  }, null), [[ce, e.modelValue]]);
1040
1042
  }
@@ -1046,24 +1048,24 @@ function kt(e, t, n, o) {
1046
1048
  function B() {
1047
1049
  return m.value && T("span", {
1048
1050
  id: "clearIcon",
1049
- class: w.value,
1051
+ class: S.value,
1050
1052
  style: f.value,
1051
- onClick: (v) => i(v)
1053
+ onClick: (v) => u(v)
1052
1054
  }, [T("i", {
1053
1055
  class: "f-icon modal_close",
1054
1056
  style: "font-size:8px;color:#fff"
1055
1057
  }, null)]);
1056
1058
  }
1057
1059
  return {
1058
- renderTextarea: S,
1060
+ renderTextarea: w,
1059
1061
  renderCount: P,
1060
1062
  renderClear: B
1061
1063
  };
1062
1064
  }
1063
- function Ot(e, t, n, o) {
1064
- const c = F(), b = F(e.autocomplete), u = F(e.enableTitle), {
1065
+ function Lt(e, t, n, o) {
1066
+ const c = F(), b = F(e.autocomplete), i = F(e.enableTitle), {
1065
1067
  isPassword: C
1066
- } = n, w = F(e.minLength), d = F(e.maxLength), p = F(e.tabIndex), {
1068
+ } = n, S = F(e.minLength), d = F(e.maxLength), p = F(e.tabIndex), {
1067
1069
  disabled: l,
1068
1070
  displayText: s,
1069
1071
  inputType: m,
@@ -1071,13 +1073,13 @@ function Ot(e, t, n, o) {
1071
1073
  onFocus: a,
1072
1074
  onInput: f,
1073
1075
  onClick: g,
1074
- onKeydown: i,
1075
- onKeyup: S,
1076
+ onKeydown: u,
1077
+ onKeyup: w,
1076
1078
  onMousedown: P,
1077
1079
  onMouseup: B,
1078
1080
  onTextBoxValueChange: v,
1079
1081
  readonly: y,
1080
- placeholder: O,
1082
+ placeholder: L,
1081
1083
  textBoxClass: h,
1082
1084
  textBoxTitle: x
1083
1085
  } = o;
@@ -1094,11 +1096,11 @@ function Ot(e, t, n, o) {
1094
1096
  class: h.value,
1095
1097
  disabled: l == null ? void 0 : l.value,
1096
1098
  maxlength: d.value,
1097
- minlength: w.value,
1098
- placeholder: O.value,
1099
+ minlength: S.value,
1100
+ placeholder: L.value,
1099
1101
  readonly: y == null ? void 0 : y.value,
1100
1102
  tabindex: p.value,
1101
- title: u.value && !C.value ? x.value : "",
1103
+ title: i.value && !C.value ? x.value : "",
1102
1104
  type: m.value,
1103
1105
  value: s == null ? void 0 : s.value,
1104
1106
  onBlur: r,
@@ -1106,18 +1108,18 @@ function Ot(e, t, n, o) {
1106
1108
  onChange: v,
1107
1109
  onFocus: a,
1108
1110
  onInput: f,
1109
- onKeydown: i,
1110
- onKeyup: S,
1111
+ onKeydown: u,
1112
+ onKeyup: w,
1111
1113
  onMousedown: P,
1112
1114
  onMouseup: B
1113
1115
  }, null);
1114
1116
  }
1115
- function Lt(e, t) {
1117
+ function Ot(e, t) {
1116
1118
  const n = F(e.extendInfo), o = k(() => e.useExtendInfo && !!e.extendInfo), c = k(() => ({
1117
1119
  content: n.value
1118
1120
  }));
1119
- L(() => e.extendInfo, (u) => {
1120
- n.value = u;
1121
+ O(() => e.extendInfo, (i) => {
1122
+ n.value = i;
1121
1123
  });
1122
1124
  function b() {
1123
1125
  t.emit("updateExtendInfo");
@@ -1134,14 +1136,14 @@ function Lt(e, t) {
1134
1136
  function Et(e, t, n, o, c) {
1135
1137
  const {
1136
1138
  appendedButtonClass: b,
1137
- appendedContent: u
1138
- } = n, C = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), w = k(() => u.value && !t.slots.groupTextTemplate), d = k(() => !!t.slots.groupTextTemplate), {
1139
+ appendedContent: i
1140
+ } = n, C = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), S = k(() => i.value && !t.slots.groupTextTemplate), d = k(() => !!t.slots.groupTextTemplate), {
1139
1141
  clearButtonClass: p,
1140
1142
  clearButtonStyle: l,
1141
1143
  onClearValue: s,
1142
1144
  shouldShowClearButton: m
1143
1145
  } = o, r = F(0);
1144
- L(u, (y) => {
1146
+ O(i, (y) => {
1145
1147
  r.value++;
1146
1148
  });
1147
1149
  function a() {
@@ -1160,26 +1162,26 @@ function Et(e, t, n, o, c) {
1160
1162
  function g(y) {
1161
1163
  t.emit("iconMouseLeave", y);
1162
1164
  }
1163
- function i(y) {
1165
+ function u(y) {
1164
1166
  C.value && t.emit("clickHandle", {
1165
1167
  originalEvent: y
1166
1168
  }), y.stopPropagation();
1167
1169
  }
1168
- const S = e.type === "password" || e.showType === "password" ? c.onClickAppendedButton : i;
1170
+ const w = e.type === "password" || e.showType === "password" ? c.onClickAppendedButton : u;
1169
1171
  function P() {
1170
1172
  return T("span", {
1171
1173
  class: "input-group-text",
1172
1174
  onMouseenter: (y) => f(y),
1173
1175
  onMouseleave: (y) => g(y),
1174
- innerHTML: u.value,
1175
- onClick: (y) => S(y)
1176
+ innerHTML: i.value,
1177
+ onClick: (y) => w(y)
1176
1178
  }, null);
1177
1179
  }
1178
1180
  function B() {
1179
1181
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1180
1182
  }
1181
1183
  function v() {
1182
- return w.value ? P() : d.value ? B() : "";
1184
+ return S.value ? P() : d.value ? B() : "";
1183
1185
  }
1184
1186
  return () => T("div", {
1185
1187
  class: b.value,
@@ -1188,14 +1190,14 @@ function Et(e, t, n, o, c) {
1188
1190
  }
1189
1191
  const oe = /* @__PURE__ */ $({
1190
1192
  name: "FInputGroup",
1191
- props: St,
1193
+ props: wt,
1192
1194
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange", "mousedownEvent", "mouseupEvent"],
1193
1195
  setup(e, t) {
1194
1196
  const n = F(), o = F(e.modelValue), c = F(e.modelValue), b = Te(e, t, o, c, n), {
1195
- inputGroupClass: u,
1197
+ inputGroupClass: i,
1196
1198
  inputType: C,
1197
- inputGroupStyle: w
1198
- } = b, d = wt(e), {
1199
+ inputGroupStyle: S
1200
+ } = b, d = St(e), {
1199
1201
  shouldShowAppendedButton: p
1200
1202
  } = d, l = he(e, t, b), {
1201
1203
  onMouseEnter: s,
@@ -1203,24 +1205,24 @@ const oe = /* @__PURE__ */ $({
1203
1205
  } = l, r = Bt(e, t, C, d), a = Ft(e, t), {
1204
1206
  renderTextarea: f,
1205
1207
  renderCount: g,
1206
- renderClear: i
1207
- } = kt(e, t, l, b), S = Ot(e, t, r, b), P = Et(e, t, d, l, r), B = Lt(e, t), v = k(() => C.value === "number"), y = k(() => C.value === "textarea");
1208
- L(() => [e.value], ([h]) => {
1208
+ renderClear: u
1209
+ } = kt(e, t, l, b), w = Lt(e, t, r, b), P = Et(e, t, d, l, r), B = Ot(e, t), v = k(() => C.value === "number"), y = k(() => C.value === "textarea");
1210
+ O(() => [e.value], ([h]) => {
1209
1211
  o.value = h, c.value = h;
1210
- }), L(() => [e.modelValue], ([h]) => {
1212
+ }), O(() => [e.modelValue], ([h]) => {
1211
1213
  o.value = h, c.value = h;
1212
1214
  }), V(() => {
1213
1215
  e.value && (o.value = e.value, c.value = e.value);
1214
1216
  });
1215
- const O = () => T("div", {
1217
+ const L = () => T("div", {
1216
1218
  ref: n,
1217
1219
  id: e.id,
1218
- class: u.value,
1219
- style: w.value,
1220
+ class: i.value,
1221
+ style: S.value,
1220
1222
  onMouseenter: s,
1221
1223
  onMouseleave: m
1222
- }, [v.value ? a() : y.value ? f() : T(fe, null, [B(), S()]), !y.value && !v.value && p.value && P(), y.value && i(), y.value && g()]);
1223
- return () => O();
1224
+ }, [v.value ? a() : y.value ? f() : T(fe, null, [B(), w()]), !y.value && !v.value && p.value && P(), y.value && u(), y.value && g()]);
1225
+ return () => L();
1224
1226
  }
1225
1227
  });
1226
1228
  Ce(oe);
@@ -1233,67 +1235,67 @@ const D = /* @__PURE__ */ $({
1233
1235
  disabled: o,
1234
1236
  readonly: c,
1235
1237
  editable: b,
1236
- modelValue: u
1238
+ modelValue: i
1237
1239
  } = me(e), C = k(() => {
1238
- var i;
1239
- return (i = u.value) == null ? void 0 : i[n];
1240
- }), w = F();
1241
- L(() => e.modelValue, (i) => {
1242
- u.value = i;
1240
+ var u;
1241
+ return (u = i.value) == null ? void 0 : u[n];
1242
+ }), S = F();
1243
+ O(() => e.modelValue, (u) => {
1244
+ i.value = u;
1243
1245
  });
1244
- const d = (i) => {
1245
- if ((i == null ? void 0 : i.length) <= 1)
1246
+ const d = (u) => {
1247
+ if ((u == null ? void 0 : u.length) <= 1)
1246
1248
  return;
1247
- let S = -1;
1248
- const P = i.find((B, v) => {
1249
+ let w = -1;
1250
+ const P = u.find((B, v) => {
1249
1251
  const y = B.code === n;
1250
- return y && (S = v), y;
1252
+ return y && (w = v), y;
1251
1253
  });
1252
1254
  if (P) {
1253
1255
  const B = Object.assign({}, P);
1254
- i.splice(S, 1), i.unshift(B);
1256
+ u.splice(w, 1), u.unshift(B);
1255
1257
  }
1256
- return i;
1258
+ return u;
1257
1259
  }, p = F();
1258
- L(() => e.languages, (i) => {
1259
- p.value = d(i) || [];
1260
+ O(() => e.languages, (u) => {
1261
+ p.value = d(u) || [];
1260
1262
  });
1261
- function l(i) {
1262
- u.value = u.value || {}, u.value[n] !== i && (u.value[n] = i, t.emit("update:modelValue", u.value));
1263
+ function l(u) {
1264
+ i.value = i.value || {}, i.value[n] !== u && (i.value[n] = u, t.emit("update:modelValue", i.value));
1263
1265
  }
1264
1266
  const s = k(() => {
1265
- var S;
1266
- const i = (S = w.value) == null ? void 0 : S.popoverRef;
1267
- return i && p.value.length > 1 ? i.shown : !1;
1267
+ var w;
1268
+ const u = (w = S.value) == null ? void 0 : w.popoverRef;
1269
+ return u && p.value.length > 1 ? u.shown : !1;
1268
1270
  });
1269
1271
  V(() => {
1270
1272
  p.value = d(e.languages) || [];
1271
1273
  });
1272
- const m = (i) => {
1273
- u.value = i, t.emit("update:modelValue", u.value);
1274
+ const m = (u) => {
1275
+ i.value = u, t.emit("update:modelValue", i.value);
1274
1276
  }, r = () => {
1275
- var i;
1276
- return !(((i = p.value) == null ? void 0 : i.length) <= 1);
1277
+ var u;
1278
+ return !(((u = p.value) == null ? void 0 : u.length) <= 1);
1277
1279
  }, a = () => {
1278
- u.value = u.value || {}, u.value[n] && (u.value[n] = "", t.emit("update:modelValue", u.value));
1280
+ i.value = i.value || {}, i.value[n] && (i.value[n] = "", t.emit("update:modelValue", i.value));
1279
1281
  };
1280
- function f(i) {
1281
- u.value = u.value || {};
1282
- const S = i.target.value;
1283
- u.value[n] !== S && (u.value[n] = S, t.emit("update:modelValue", u.value));
1282
+ function f(u) {
1283
+ i.value = i.value || {};
1284
+ const w = u.target.value;
1285
+ i.value[n] !== w && (i.value[n] = w, t.emit("update:modelValue", i.value));
1284
1286
  }
1285
1287
  function g() {
1286
1288
  return T(oe, {
1287
1289
  disable: o.value,
1288
1290
  readonly: c.value,
1289
1291
  modelValue: C.value,
1290
- "onUpdate:modelValue": (i) => C.value = i,
1292
+ "onUpdate:modelValue": (u) => C.value = u,
1291
1293
  onInput: f,
1292
1294
  onClear: a
1293
1295
  }, null);
1294
1296
  }
1295
- return () => Se() ? g() : T(ge, {
1296
- ref: w,
1297
+ return () => we() ? g() : T(ge, {
1298
+ ref: S,
1297
1299
  id: e.id,
1298
1300
  forcePlaceholder: !1,
1299
1301
  disable: o.value,
@@ -1308,7 +1310,7 @@ const D = /* @__PURE__ */ $({
1308
1310
  inputType: "text",
1309
1311
  popupOnClick: !0,
1310
1312
  modelValue: C.value,
1311
- "onUpdate:modelValue": (i) => C.value = i,
1313
+ "onUpdate:modelValue": (u) => C.value = u,
1312
1314
  onChange: l,
1313
1315
  placement: "auto",
1314
1316
  popupMinWidth: 365,
@@ -1319,7 +1321,7 @@ const D = /* @__PURE__ */ $({
1319
1321
  default: () => [s.value && T(Ct, {
1320
1322
  id: e.id,
1321
1323
  languages: p.value,
1322
- modelValue: u.value,
1324
+ modelValue: i.value,
1323
1325
  maxLength: e.maxLength,
1324
1326
  "onUpdate:modelValue": m
1325
1327
  }, null)]
@@ -1339,6 +1341,6 @@ export {
1339
1341
  D as FLanguageTextbox,
1340
1342
  D as default,
1341
1343
  q as languageTextBoxProps,
1342
- zt as propsResolver,
1344
+ Gt as propsResolver,
1343
1345
  ne as propsResolverGenerator
1344
1346
  };