@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,19 +1,19 @@
1
- var ie = Object.defineProperty;
2
- var ne = (o, n, e) => n in o ? ie(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
- var y = (o, n, e) => ne(o, typeof n != "symbol" ? n + "" : n, e);
4
- import { computed as M, ref as N, createVNode as E, defineComponent as _, onMounted as H, watch as G, createTextVNode as J, nextTick as re, inject as D } from "vue";
5
- import { resolveAppearance as se, createPropsResolver as oe } from "../dynamic-resolver/index.esm.js";
1
+ var ne = Object.defineProperty;
2
+ var re = (o, n, e) => n in o ? ne(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
+ var y = (o, n, e) => re(o, typeof n != "symbol" ? n + "" : n, e);
4
+ import { computed as M, ref as N, createVNode as E, defineComponent as H, onMounted as J, watch as G, createTextVNode as Q, nextTick as se, inject as K } from "vue";
5
+ import { resolveAppearance as oe, createPropsResolver as le } from "../dynamic-resolver/index.esm.js";
6
6
  import I from "bignumber.js";
7
- import { useNumberLocales as le } from "../number-spinner/index.esm.js";
8
- import { DgControl as p, canvasChanged as R, refreshCanvas as ae, useDesignerComponent as de } from "../designer-canvas/index.esm.js";
9
- import { cloneDeep as ue } from "lodash-es";
10
- import { FormSchemaEntityField$Type as K, FormSchemaEntityFieldType$Type as ce, withInstall as pe } from "../common/index.esm.js";
11
- function ge(o, n, e) {
7
+ import { useNumberLocales as ae } from "../number-spinner/index.esm.js";
8
+ import { DgControl as p, canvasChanged as R, refreshCanvas as de, useDesignerComponent as ue } from "../designer-canvas/index.esm.js";
9
+ import { cloneDeep as ce } from "lodash-es";
10
+ import { FormSchemaEntityField$Type as Z, FormSchemaEntityFieldType$Type as pe, withInstall as ge } from "../common/index.esm.js";
11
+ function me(o, n, e) {
12
12
  return n;
13
13
  }
14
- const me = /* @__PURE__ */ new Map([
15
- ["appearance", se]
16
- ]), fe = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-design.gitee.io/number-range.schema.json", ye = "number-range", be = "A Farris Component", ve = "object", Ce = {
14
+ const fe = /* @__PURE__ */ new Map([
15
+ ["appearance", oe]
16
+ ]), he = "https://json-schema.org/draft/2020-12/schema", ye = "https://farris-design.gitee.io/number-range.schema.json", be = "number-range", ve = "A Farris Component", Ce = "object", we = {
17
17
  id: {
18
18
  description: "The unique identifier for a number-range",
19
19
  type: "string"
@@ -119,16 +119,16 @@ const me = /* @__PURE__ */ new Map([
119
119
  ],
120
120
  default: "left"
121
121
  }
122
- }, we = [
122
+ }, xe = [
123
123
  "type"
124
- ], xe = {
125
- $schema: fe,
126
- $id: he,
127
- title: ye,
128
- description: be,
129
- type: ve,
130
- properties: Ce,
131
- required: we
124
+ ], Ve = {
125
+ $schema: he,
126
+ $id: ye,
127
+ title: be,
128
+ description: ve,
129
+ type: Ce,
130
+ properties: we,
131
+ required: xe
132
132
  }, W = {
133
133
  /**
134
134
  * 组件标识
@@ -241,8 +241,8 @@ const me = /* @__PURE__ */ new Map([
241
241
  * 是否使用千分值
242
242
  */
243
243
  useThousands: { type: Boolean, default: !0 }
244
- }, Q = oe(W, xe, me, ge);
245
- function Y(o, n) {
244
+ }, Y = le(W, Ve, fe, me);
245
+ function ee(o, n) {
246
246
  const e = M(() => Number(o.precision) || 0);
247
247
  function t(l) {
248
248
  return l.toFixed(e.value);
@@ -251,34 +251,34 @@ function Y(o, n) {
251
251
  return isNaN(l) || l === null || l === void 0 || l === "";
252
252
  }
253
253
  function r(l) {
254
- const d = i(o.max) ? null : new I(String(o.max), 10), u = i(o.min) ? null : new I(String(o.min), 10);
255
- return d && l.gt(d) ? d : u && l.lt(u) ? u : l;
254
+ const u = i(o.max) ? null : new I(String(o.max), 10), d = i(o.min) ? null : new I(String(o.min), 10);
255
+ return u && l.gt(u) ? u : d && l.lt(d) ? d : l;
256
256
  }
257
- function s(l, d, u, a) {
258
- const g = new I(l, 10), f = i(u && u.value) ? null : new I(String(u.value), 10), m = i(d && d.value) ? null : new I(String(d.value), 10);
257
+ function s(l, u, d, a) {
258
+ const g = new I(l, 10), f = i(d && d.value) ? null : new I(String(d.value), 10), m = i(u && u.value) ? null : new I(String(u.value), 10);
259
259
  let h;
260
260
  return a ? h = f && g.gt(f) ? f : g : h = m && g.lt(m) ? m : g, h.toString();
261
261
  }
262
- function c(l, d = !0) {
262
+ function c(l, u = !0) {
263
263
  if (o.parser)
264
264
  return isNaN(Number(l)) ? o.parser(l) : l;
265
- let u = new I(l, 10);
266
- if (d && (u = r(u)), u.isNaN()) {
265
+ let d = new I(l, 10);
266
+ if (u && (d = r(d)), d.isNaN()) {
267
267
  if (o.nullable)
268
268
  return null;
269
269
  const g = new I("" + o.min, 10), f = new I("" + o.max, 10);
270
270
  if (!g.isNaN())
271
- u = g;
271
+ d = g;
272
272
  else if (!f.isNaN())
273
- u = f;
273
+ d = f;
274
274
  else
275
275
  return 0;
276
276
  }
277
- return t(u);
277
+ return t(d);
278
278
  }
279
279
  return { getRealValue: c, isEmpty: i, precision: e, getValidNumberObject: r, getValidNumberInRange: s };
280
280
  }
281
- function ee(o, n, e) {
281
+ function te(o, n, e) {
282
282
  const t = M(() => ({
283
283
  prefix: o.prefix,
284
284
  suffix: o.suffix,
@@ -286,21 +286,21 @@ function ee(o, n, e) {
286
286
  groupSeparator: o.useThousands ? o.groupSeparator : "",
287
287
  groupSize: o.groupSize
288
288
  })), { getValidNumberObject: i, precision: r } = e;
289
- function s(d) {
290
- return d = d == null || d === "" ? "" : String(d), d = d.replace(new RegExp(o.prefix, "g"), "").replace(new RegExp(o.suffix, "g"), "").replace(/,/g, ""), o.groupSeparator && o.groupSeparator !== "," && (d = d.replace(new RegExp(`\\${o.groupSeparator}`, "g"), "")), o.decimalSeparator && o.decimalSeparator !== "." && (d = d.replace(new RegExp(`\\${o.decimalSeparator}`, "g"), ".")), d;
289
+ function s(u) {
290
+ return u = u == null || u === "" ? "" : String(u), u = u.replace(new RegExp(o.prefix, "g"), "").replace(new RegExp(o.suffix, "g"), "").replace(/,/g, ""), o.groupSeparator && o.groupSeparator !== "," && (u = u.replace(new RegExp(`\\${o.groupSeparator}`, "g"), "")), o.decimalSeparator && o.decimalSeparator !== "." && (u = u.replace(new RegExp(`\\${o.decimalSeparator}`, "g"), ".")), u;
291
291
  }
292
- function c(d, u) {
293
- return o.precision !== null && o.precision !== void 0 ? d.toFormat(r.value, u) : d.toFormat(u);
292
+ function c(u, d) {
293
+ return o.precision !== null && o.precision !== void 0 ? u.toFormat(r.value, d) : u.toFormat(d);
294
294
  }
295
- function l(d, u = !0) {
296
- const a = s(d), g = new I(a, 10);
295
+ function l(u, d = !0) {
296
+ const a = s(u), g = new I(a, 10);
297
297
  let f = g;
298
- return u && (f = i(g)), f.valueOf() === "0" && !o.showZero || f.isNaN() ? "" : o.formatter ? o.formatter(f.toNumber()) : c(f, t.value);
298
+ return d && (f = i(g)), f.valueOf() === "0" && !o.showZero || f.isNaN() ? "" : o.formatter ? o.formatter(f.toNumber()) : c(f, t.value);
299
299
  }
300
300
  return { cleanFormat: s, format: l };
301
301
  }
302
- function A(o, n, e, t, i, r, s, c, l, d) {
303
- const { format: u } = i, { getRealValue: a, getValidNumberInRange: g } = r;
302
+ function A(o, n, e, t, i, r, s, c, l, u) {
303
+ const { format: d } = i, { getRealValue: a, getValidNumberInRange: g } = r;
304
304
  function f() {
305
305
  const v = new I(t.value || 0);
306
306
  return !((o.max || o.max === 0) && !new I(o.max).isNaN() && v.gte(new I(o.max)) && (t.value || t.value === 0));
@@ -315,9 +315,9 @@ function A(o, n, e, t, i, r, s, c, l, d) {
315
315
  const k = v === "up" ? f : m, F = v === "up" ? "plus" : "minus";
316
316
  if (k()) {
317
317
  let P = new I(t.value || 0)[F](Number(o.step)).toFixed();
318
- P = g(P, c, l, d);
318
+ P = g(P, c, l, u);
319
319
  const T = a(P);
320
- e.value = u(P), t.value !== T && (t.value = T, s(t.value));
320
+ e.value = d(P), t.value !== T && (t.value = T, s(t.value));
321
321
  }
322
322
  }
323
323
  function b() {
@@ -334,7 +334,7 @@ function A(o, n, e, t, i, r, s, c, l, d) {
334
334
  }
335
335
  return { canDownward: m, canUpward: f, downward: C, onClickDownButton: V, onClickUpButton: w, upward: b };
336
336
  }
337
- function O(o, n, e, t, i, r, s, c, l, d, u) {
337
+ function O(o, n, e, t, i, r, s, c, l, u, d) {
338
338
  const { cleanFormat: a, format: g } = i, { getRealValue: f, isEmpty: m, getValidNumberInRange: h } = r, { downward: b, upward: C } = s, w = M(() => e.value), V = N(!1);
339
339
  function v(x) {
340
340
  var z;
@@ -344,7 +344,7 @@ function O(o, n, e, t, i, r, s, c, l, d, u) {
344
344
  let P = (z = x.target) == null ? void 0 : z.value;
345
345
  o.nullable || (P = P || 0);
346
346
  let T = a(P);
347
- T = h(T, l, d, u);
347
+ T = h(T, l, u, d);
348
348
  const U = f(T);
349
349
  e.value = g(T), t.value !== U && (t.value = U, c(t.value)), n.emit("blur", { event: x, formatted: e.value, value: t.value });
350
350
  }
@@ -364,14 +364,14 @@ function O(o, n, e, t, i, r, s, c, l, d, u) {
364
364
  }
365
365
  return { textBoxValue: w, onBlurTextBox: v, onFocusTextBox: k, onInput: F, onKeyDown: S, isTextBoxFocused: V };
366
366
  }
367
- function Z(o, n, e, t, i) {
367
+ function X(o, n, e, t, i) {
368
368
  const {
369
369
  onBlurTextBox: r,
370
370
  onFocusTextBox: s,
371
371
  onInput: c,
372
372
  onKeyDown: l,
373
- textBoxValue: d
374
- } = e, u = M(() => o.disabled || o.readonly || !o.editable ? "" : t ? i.range.begin : i.range.end), a = M(() => ({
373
+ textBoxValue: u
374
+ } = e, d = M(() => o.disabled || o.readonly || !o.editable ? "" : t ? i.range.begin : i.range.end), a = M(() => ({
375
375
  "form-control": !0,
376
376
  "sub-input": !0
377
377
  })), g = M(() => ({
@@ -384,10 +384,10 @@ function Z(o, n, e, t, i) {
384
384
  class: a.value,
385
385
  style: g.value,
386
386
  type: "text",
387
- value: d.value,
387
+ value: u.value,
388
388
  disabled: o.disabled,
389
389
  readonly: o.readonly || !o.editable,
390
- placeholder: u.value,
390
+ placeholder: d.value,
391
391
  onBlur: r,
392
392
  onChange: f,
393
393
  onFocus: s,
@@ -410,10 +410,10 @@ function q(o, n, e) {
410
410
  btn: !0,
411
411
  "btn-secondary": !0,
412
412
  "btn-number-flag": !0
413
- })), d = M(() => ({
413
+ })), u = M(() => ({
414
414
  cursor: i() ? "pointer" : "not-allowed",
415
415
  "margin-left": 0
416
- })), u = M(() => ({
416
+ })), d = M(() => ({
417
417
  cursor: t() ? "pointer" : "not-allowed",
418
418
  "margin-left": 0
419
419
  }));
@@ -421,35 +421,35 @@ function q(o, n, e) {
421
421
  class: c.value
422
422
  }, [E("button", {
423
423
  class: l.value,
424
- style: d.value,
424
+ style: u.value,
425
425
  onClick: s,
426
426
  disabled: !i()
427
427
  }, [E("span", {
428
428
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
429
429
  }, null)]), E("button", {
430
430
  class: l.value,
431
- style: u.value,
431
+ style: d.value,
432
432
  onClick: r,
433
433
  disabled: !t()
434
434
  }, [E("span", {
435
435
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
436
436
  }, null)])]);
437
437
  }
438
- const $ = /* @__PURE__ */ _({
438
+ const $ = /* @__PURE__ */ H({
439
439
  name: "FNumberRange",
440
440
  props: W,
441
441
  emits: ["valueChange", "blur", "focus", "click", "input", "beginValueChange", "endValueChange"],
442
442
  setup(o, n) {
443
- const e = N(o.beginValue), t = N(""), i = N(o.endValue), r = N(""), s = Y(o), c = ee(o, n, s), l = le(o), d = (F) => {
443
+ const e = N(o.beginValue), t = N(""), i = N(o.endValue), r = N(""), s = ee(o), c = te(o, n, s), l = ae(o), u = (F) => {
444
444
  n.emit("beginValueChange", F);
445
- }, u = A(o, n, t, e, c, s, d, e, i, !0), a = O(o, n, t, e, c, s, u, d, e, i, !0), g = q(o, n, u), f = Z(o, n, a, !0, l), m = (F) => {
445
+ }, d = A(o, n, t, e, c, s, u, e, i, !0), a = O(o, n, t, e, c, s, d, u, e, i, !0), g = q(o, n, d), f = X(o, n, a, !0, l), m = (F) => {
446
446
  n.emit("endValueChange", F);
447
- }, h = A(o, n, r, i, c, s, m, e, i, !1), b = O(o, n, r, i, c, s, h, m, e, i, !1), C = q(o, n, h), w = Z(o, n, b, !1, l), {
447
+ }, h = A(o, n, r, i, c, s, m, e, i, !1), b = O(o, n, r, i, c, s, h, m, e, i, !1), C = q(o, n, h), w = X(o, n, b, !1, l), {
448
448
  getRealValue: V
449
449
  } = s, {
450
450
  format: v
451
451
  } = c, k = M(() => !o.disabled && !o.readonly && o.showButton);
452
- return H(() => {
452
+ return J(() => {
453
453
  const F = V(o.beginValue, !1), S = V(o.endValue, !1);
454
454
  t.value = v(F, !1), r.value = v(S, !1);
455
455
  }), G(() => [o.beginValue], ([F]) => {
@@ -472,19 +472,19 @@ const $ = /* @__PURE__ */ _({
472
472
  class: "sub-input-group"
473
473
  }, [f(), k.value && g()]), E("span", {
474
474
  class: "spliter"
475
- }, [J("~")]), E("div", {
475
+ }, [Q("~")]), E("div", {
476
476
  class: "sub-input-group"
477
477
  }, [w(), k.value && C()])])]);
478
478
  }
479
479
  });
480
- function X(o, n, e, t) {
480
+ function _(o, n, e, t) {
481
481
  const {
482
482
  onBlurTextBox: i,
483
483
  onFocusTextBox: r,
484
484
  onInput: s,
485
485
  onKeyDown: c,
486
486
  textBoxValue: l
487
- } = e, d = M(() => t ? o.beginPlaceholder : o.endPlaceholder), u = M(() => ({
487
+ } = e, u = M(() => t ? o.beginPlaceholder : o.endPlaceholder), d = M(() => ({
488
488
  "form-control": !0,
489
489
  "sub-input": !0
490
490
  })), a = M(() => ({
@@ -494,13 +494,13 @@ function X(o, n, e, t) {
494
494
  f.stopPropagation();
495
495
  }
496
496
  return () => E("input", {
497
- class: u.value,
497
+ class: d.value,
498
498
  style: a.value,
499
499
  type: "text",
500
500
  value: l.value,
501
501
  disabled: o.disabled,
502
502
  readonly: o.readonly || !o.editable,
503
- placeholder: d.value,
503
+ placeholder: u.value,
504
504
  onBlur: i,
505
505
  onChange: g,
506
506
  onFocus: r,
@@ -508,25 +508,25 @@ function X(o, n, e, t) {
508
508
  onKeydown: c
509
509
  }, null);
510
510
  }
511
- function Ve(o) {
511
+ function Fe(o) {
512
512
  const { formSchemaUtils: n, formStateMachineUtils: e } = o;
513
- function t(l, d = "") {
513
+ function t(l, u = "") {
514
514
  return {
515
- path: d + l.code,
515
+ path: u + l.code,
516
516
  field: l.id,
517
517
  fullPath: l.code
518
518
  };
519
519
  }
520
- function i(l, d = "") {
521
- const u = n.getViewModelById(l);
522
- return u ? u.states.map((a) => t(a, d)) : [];
520
+ function i(l, u = "") {
521
+ const d = n.getViewModelById(l);
522
+ return d ? d.states.map((a) => t(a, u)) : [];
523
523
  }
524
524
  function r(l) {
525
- const d = n.getRootViewModelId(), u = i(l);
526
- if (l === d)
527
- return u;
528
- const a = i(d, "root-component.");
529
- return [...u, ...a];
525
+ const u = n.getRootViewModelId(), d = i(l);
526
+ if (l === u)
527
+ return d;
528
+ const a = i(u, "root-component.");
529
+ return [...d, ...a];
530
530
  }
531
531
  function s(l) {
532
532
  return l.binding && l.binding.path || l.id || "";
@@ -536,7 +536,7 @@ function Ve(o) {
536
536
  }
537
537
  return { getVariables: r, getControlName: s, getStateMachines: c };
538
538
  }
539
- class te {
539
+ class ie {
540
540
  constructor(n) {
541
541
  y(this, "sessionVariables", [
542
542
  {
@@ -592,10 +592,10 @@ class te {
592
592
  convertTo: (t, i, r, s, c) => {
593
593
  var l;
594
594
  if (i === "dataPicking" && (r != null && r.target)) {
595
- const d = `${r.target}_dataPicking`;
595
+ const u = `${r.target}_dataPicking`;
596
596
  ((l = r.rules) == null ? void 0 : l.some(
597
- (a) => a.id === d && a.value
598
- )) ? t.dictPickingExpressionId = d : delete t.dictPickingExpressionId;
597
+ (a) => a.id === u && a.value
598
+ )) ? t.dictPickingExpressionId = u : delete t.dictPickingExpressionId;
599
599
  }
600
600
  s.updateExpression(r);
601
601
  }
@@ -655,10 +655,10 @@ class te {
655
655
  buildChildEntityTreeData(n = null, e) {
656
656
  const t = [];
657
657
  return n == null || n.forEach((i) => {
658
- var l, d;
658
+ var l, u;
659
659
  const r = this.createTreeNode(i, e);
660
660
  r.type = "entity";
661
- const s = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...e, i.label]), c = this.buildChildEntityTreeData((d = i.type) == null ? void 0 : d.entities, [...e, i.label]);
661
+ const s = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...e, i.label]), c = this.buildChildEntityTreeData((u = i.type) == null ? void 0 : u.entities, [...e, i.label]);
662
662
  c != null && c.length && (s == null || s.push(...c)), t.push({
663
663
  data: r,
664
664
  children: s || [],
@@ -721,19 +721,19 @@ class te {
721
721
  }
722
722
  updateExpression(n, e, t, i) {
723
723
  const r = e === "Field" ? n.binding.field : n.id, s = this.buildRule(r, t, i, n.type === "form-group" ? n.id : "");
724
- let l = this.getExpressionData().find((u) => u.targetType === e && u.target === r);
725
- const d = (u) => u.value.trim() === "";
724
+ let l = this.getExpressionData().find((d) => d.targetType === e && d.target === r);
725
+ const u = (d) => d.value.trim() === "";
726
726
  if (l) {
727
- const u = l.rules.find((a) => a.id === s.id);
728
- if (u)
729
- d(s) ? l.rules = l.rules.filter((a) => a.id !== s.id) : (Object.assign(u, s), i === "validate" && n.type === "form-group" && (u.elementId = n.id));
727
+ const d = l.rules.find((a) => a.id === s.id);
728
+ if (d)
729
+ u(s) ? l.rules = l.rules.filter((a) => a.id !== s.id) : (Object.assign(d, s), i === "validate" && n.type === "form-group" && (d.elementId = n.id));
730
730
  else {
731
- if (d(s))
731
+ if (u(s))
732
732
  return null;
733
733
  l.rules = l.rules || [], l.rules.push(s);
734
734
  }
735
735
  } else {
736
- if (d(s))
736
+ if (u(s))
737
737
  return null;
738
738
  l = {
739
739
  target: `${r}`,
@@ -745,10 +745,10 @@ class te {
745
745
  }
746
746
  getExpressionEditorOptions(n, e, t, i) {
747
747
  return t.reduce((r, s) => {
748
- var l, d;
748
+ var l, u;
749
749
  const c = e === "Field" ? (l = n == null ? void 0 : n.binding) == null ? void 0 : l.field : n.id;
750
750
  return r[s] = {
751
- hide: e === "Field" ? !!((d = n == null ? void 0 : n.binding) != null && d.field) : !1,
751
+ hide: e === "Field" ? !!((u = n == null ? void 0 : n.binding) != null && u.field) : !1,
752
752
  description: "",
753
753
  title: this.expressionNames[s],
754
754
  type: "string",
@@ -761,10 +761,10 @@ class te {
761
761
  showMessage: s === "validate" || s === "dataPicking" || s === "required",
762
762
  showMessageType: s === "dataPicking",
763
763
  beforeOpen: () => this.onBeforeOpenExpression(n, s, e),
764
- onSubmitModal: (u) => {
765
- const a = this.updateExpression(n, e, u, s);
764
+ onSubmitModal: (d) => {
765
+ const a = this.updateExpression(n, e, d, s);
766
766
  if (i) {
767
- const g = this.buildRule(c, u, s);
767
+ const g = this.buildRule(c, d, s);
768
768
  i(g);
769
769
  }
770
770
  return a;
@@ -803,7 +803,7 @@ class te {
803
803
  };
804
804
  }
805
805
  }
806
- class Fe {
806
+ class Ee {
807
807
  constructor(n, e) {
808
808
  y(this, "componentId");
809
809
  y(this, "viewModelId");
@@ -920,7 +920,7 @@ class Fe {
920
920
  * @returns
921
921
  */
922
922
  getPropertyEditorParams(n, e = [], t = "visible", i = {}, r = {}, s = "") {
923
- const { getVariables: c, getControlName: l, getStateMachines: d } = Ve(this.designerHostService), u = this.getRealTargetType(n), a = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], g = {
923
+ const { getVariables: c, getControlName: l, getStateMachines: u } = Fe(this.designerHostService), d = this.getRealTargetType(n), a = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], g = {
924
924
  type: "property-editor",
925
925
  propertyTypes: a
926
926
  };
@@ -933,10 +933,10 @@ class Fe {
933
933
  }, i);
934
934
  break;
935
935
  case "Expression":
936
- g.expressionConfig = this.getExpressionOptions(n, u, s || t);
936
+ g.expressionConfig = this.getExpressionOptions(n, d, s || t);
937
937
  break;
938
938
  case "StateMachine":
939
- g.stateMachines = d();
939
+ g.stateMachines = u();
940
940
  break;
941
941
  case "Variable":
942
942
  Object.assign(g, {
@@ -982,7 +982,7 @@ class Fe {
982
982
  return {
983
983
  ...r,
984
984
  properties: { ...s },
985
- setPropertyRelates(l, d) {
985
+ setPropertyRelates(l, u) {
986
986
  if (l) {
987
987
  switch (l.propertyID) {
988
988
  case "disabled":
@@ -991,7 +991,7 @@ class Fe {
991
991
  c.afterMutilEditorChanged(n, l);
992
992
  break;
993
993
  }
994
- i && i(l, d);
994
+ i && i(l, u);
995
995
  }
996
996
  }
997
997
  };
@@ -1014,8 +1014,8 @@ class Fe {
1014
1014
  const t = e && e.parent && e.parent.schema;
1015
1015
  if (!t)
1016
1016
  return;
1017
- const i = t.contents.findIndex((s) => s.id === n), r = ue(t.contents[i]);
1018
- t.contents.splice(i, 1), t.contents.splice(i, 0, r), ae();
1017
+ const i = t.contents.findIndex((s) => s.id === n), r = ce(t.contents[i]);
1018
+ t.contents.splice(i, 1), t.contents.splice(i, 0, r), de();
1019
1019
  }
1020
1020
  /**
1021
1021
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -1045,16 +1045,16 @@ class Fe {
1045
1045
  const e = n.propertyValue;
1046
1046
  if (!((e && e.type) === "Expression" && e.expressionInfo))
1047
1047
  return;
1048
- const { expressionId: r, expressionInfo: s } = e, { targetId: c, targetType: l, expressionType: d, value: u, message: a } = s, g = this.formSchemaUtils.getModule();
1048
+ const { expressionId: r, expressionInfo: s } = e, { targetId: c, targetType: l, expressionType: u, value: d, message: a } = s, g = this.formSchemaUtils.getModule();
1049
1049
  g.expressions = g.expressions || [];
1050
1050
  const { expressions: f } = g;
1051
1051
  let m = f.find((b) => b.target === c);
1052
1052
  m || (m = { target: c, rules: [], targetType: l }, f.push(m));
1053
- const h = m.rules.find((b) => b.type === d);
1053
+ const h = m.rules.find((b) => b.type === u);
1054
1054
  if (h)
1055
- h.value = u, h.message = a;
1055
+ h.value = d, h.message = a;
1056
1056
  else {
1057
- const b = { id: r, type: d, value: u, message: a };
1057
+ const b = { id: r, type: u, value: d, message: a };
1058
1058
  m.rules.push(b);
1059
1059
  }
1060
1060
  delete e.expressionInfo;
@@ -1069,11 +1069,11 @@ class Fe {
1069
1069
  const t = n.propertyValue;
1070
1070
  if (t && t.type === "Expression")
1071
1071
  return;
1072
- const r = n.propertyID, s = this.formSchemaUtils.getExpressions(), c = e.binding ? e.binding.field : e.id, l = s.find((d) => d.target === c);
1073
- !l || !l.rules || (l.rules = l.rules.filter((d) => d.type !== r));
1072
+ const r = n.propertyID, s = this.formSchemaUtils.getExpressions(), c = e.binding ? e.binding.field : e.id, l = s.find((u) => u.target === c);
1073
+ !l || !l.rules || (l.rules = l.rules.filter((u) => u.type !== r));
1074
1074
  }
1075
1075
  getExpressionOptions(n, e, t) {
1076
- return new te(this.formSchemaUtils).getExpressionOptions(n, e, t);
1076
+ return new ie(this.formSchemaUtils).getExpressionOptions(n, e, t);
1077
1077
  }
1078
1078
  getRealTargetType(n) {
1079
1079
  return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(n.type) > -1 ? "Button" : n.binding && n.binding.field ? "Field" : "Container";
@@ -1186,7 +1186,7 @@ y(B, "fieldControlTypeMapping", {
1186
1186
  });
1187
1187
  let j = B;
1188
1188
  var L = /* @__PURE__ */ ((o) => (o.Form = "Form", o.Variable = "Variable", o))(L || {});
1189
- class Ee {
1189
+ class D {
1190
1190
  constructor() {
1191
1191
  /** 控件标题 */
1192
1192
  y(this, "label", "");
@@ -1220,8 +1220,8 @@ function Ie(o) {
1220
1220
  let n, e;
1221
1221
  const t = /* @__PURE__ */ new Map();
1222
1222
  let i = [];
1223
- function r(u, a) {
1224
- const f = u.split(" ").filter((w) => w.startsWith("col-"));
1223
+ function r(d, a) {
1224
+ const f = ((d == null ? void 0 : d.split(" ")) || []).filter((w) => w.startsWith("col-"));
1225
1225
  if (f.length === 0) {
1226
1226
  a.isSupportedClass = !1;
1227
1227
  return;
@@ -1229,31 +1229,38 @@ function Ie(o) {
1229
1229
  let m = f.find((w) => /^col-([1-9]|10|11|12)$/.test(w)), h = f.find((w) => /^col-md-([1-9]|10|11|12)$/.test(w)), b = f.find((w) => /^col-xl-([1-9]|10|11|12)$/.test(w)), C = f.find((w) => /^col-el-([1-9]|10|11|12)$/.test(w));
1230
1230
  m = m || "col-12", a.columnInSM = parseInt(m.replace("col-", ""), 10), a.displayWidthInSM = a.columnInSM / 12, a.displayWidthInSM !== 1 && (a.isSupportedClass = !1), h = h || "col-md-" + a.columnInSM, a.columnInMD = parseInt(h.replace("col-md-", ""), 10), a.displayWidthInMD = a.columnInMD / 6, [1, 2].includes(a.displayWidthInMD) || (a.isSupportedClass = !1), b = b || "col-xl-" + a.columnInMD, a.columnInLG = parseInt(b.replace("col-xl-", ""), 10), a.displayWidthInLG = a.columnInLG / 3, [1, 2, 3, 4].includes(a.displayWidthInLG) || (a.isSupportedClass = !1), C = C || "col-el-" + a.columnInLG, a.columnInEL = parseInt(C.replace("col-el-", ""), 10), a.displayWidthInEL = a.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(a.displayWidthInEL) || (a.isSupportedClass = !1);
1231
1231
  }
1232
- function s(u, a, g, f = !1) {
1232
+ function s(d, a, g, f = !1) {
1233
1233
  let m = !1;
1234
- u.contents.forEach((h) => {
1234
+ if (!d.contents || d.contents.length === 0) {
1235
+ const h = new D();
1236
+ r(d.layout, h), a.push(h);
1237
+ return;
1238
+ }
1239
+ d.contents.forEach((h) => {
1235
1240
  if (h.type === "fieldset") {
1236
1241
  g += 1, s(h, a, g, !0), m = !0;
1237
1242
  return;
1238
1243
  }
1244
+ if (h.type === "dynamic-form")
1245
+ return;
1239
1246
  m && (g += 1, m = !1);
1240
- const b = h.appearance && h.appearance.class, C = new Ee();
1241
- b ? r(b, C) : C.isSupportedClass = !1, C.label = h.label || h.id, C.id = h.id, C.group = g, f && (C.fieldSetId = u.id), e === h.id && (n = g), t.set(h.id, h), a.push(C);
1247
+ const b = h.appearance && h.appearance.class, C = new D();
1248
+ b ? r(b, C) : C.isSupportedClass = !1, C.label = h.label || h.id, C.id = h.id, C.group = g, f && (C.fieldSetId = d.id), e === h.id && (n = g), t.set(h.id, h), a.push(C);
1242
1249
  });
1243
1250
  }
1244
- function c(u) {
1245
- const a = o.getComponentById(u);
1251
+ function c(d) {
1252
+ const a = o.getComponentById(d);
1246
1253
  if (!a || !a.componentType || !a.componentType.startsWith("form"))
1247
1254
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1248
1255
  const g = o.selectNode(a, (f) => f.type === p["response-form"].type);
1249
1256
  return !g || !g.contents || g.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: g };
1250
1257
  }
1251
- function l(u, a) {
1252
- a = a || u.id;
1258
+ function l(d, a) {
1259
+ a = a || d.id;
1253
1260
  const { result: g, message: f, formNode: m } = c(a);
1254
1261
  if (!g)
1255
1262
  return { result: g, message: f };
1256
- e = u.id, i = [], t.clear();
1263
+ e = d.id, i = [], t.clear();
1257
1264
  const h = m.contents[0].type === p.fieldset.type ? 0 : 1;
1258
1265
  s(m, i, h);
1259
1266
  const b = i.find((w) => !w.isSupportedClass);
@@ -1265,13 +1272,13 @@ function Ie(o) {
1265
1272
  importData: i
1266
1273
  };
1267
1274
  }
1268
- function d(u, a) {
1275
+ function u(d, a) {
1269
1276
  a = a;
1270
1277
  const { result: g, formNode: f } = c(a);
1271
1278
  if (!g)
1272
1279
  return "";
1273
1280
  const m = [];
1274
- return u.forEach((h) => {
1281
+ return d.forEach((h) => {
1275
1282
  var w;
1276
1283
  const b = t.get(h.id), C = b.appearance && b.appearance.class;
1277
1284
  if (C) {
@@ -1288,11 +1295,11 @@ function Ie(o) {
1288
1295
  return {
1289
1296
  checkCanFindFormNode: c,
1290
1297
  checkCanOpenLayoutEditor: l,
1291
- changeFormControlsByResponseLayoutConfig: d,
1298
+ changeFormControlsByResponseLayoutConfig: u,
1292
1299
  getResonseFormLayoutConfig: s
1293
1300
  };
1294
1301
  }
1295
- class Se extends Fe {
1302
+ class Se extends Ee {
1296
1303
  constructor(e, t) {
1297
1304
  super(e, t);
1298
1305
  y(this, "responseLayoutEditorFunction");
@@ -1316,7 +1323,7 @@ class Se extends Fe {
1316
1323
  return this.propertyConfig.categories = {}, this.getCommonPropertyConfig(e, t, "Grid"), this.getGridFieldEdtiorProperties ? this.propertyConfig.categories.editor = this.getGridFieldEdtiorProperties(e) : this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig.categories.expressons = this.getExpressionConfig(e, "Field"), this.propertyConfig.categories;
1317
1324
  }
1318
1325
  getBasicProperties(e, t, i = "Card") {
1319
- var d;
1326
+ var u;
1320
1327
  const r = this;
1321
1328
  this.setDesignViewModelField(e);
1322
1329
  const { canChangeControlType: s, editorTypeList: c } = this.getAvailableEditorType(e), l = {
@@ -1357,7 +1364,7 @@ class Se extends Fe {
1357
1364
  editor: {
1358
1365
  data: [{ id: "visible", name: "显示" }, { id: "reserve-space", name: "占位" }, { id: "none", name: "不显示" }]
1359
1366
  },
1360
- defaultValue: ((d = e.editor) == null ? void 0 : d.type) === "image" ? "none" : "visible"
1367
+ defaultValue: ((u = e.editor) == null ? void 0 : u.type) === "image" ? "none" : "visible"
1361
1368
  },
1362
1369
  binding: {
1363
1370
  description: "绑定的表单字段",
@@ -1378,19 +1385,19 @@ class Se extends Fe {
1378
1385
  readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
1379
1386
  }
1380
1387
  },
1381
- setPropertyRelates(u, a, g) {
1382
- if (u)
1383
- switch (u && u.propertyID) {
1388
+ setPropertyRelates(d, a, g) {
1389
+ if (d)
1390
+ switch (d && d.propertyID) {
1384
1391
  case "type": {
1385
- r.changeControlType(e, u, t);
1392
+ r.changeControlType(e, d, t);
1386
1393
  break;
1387
1394
  }
1388
1395
  case "label": {
1389
- u.needRefreshControlTree = !0;
1396
+ d.needRefreshControlTree = !0;
1390
1397
  break;
1391
1398
  }
1392
1399
  case "binding": {
1393
- r.changeBindingField(e, u, g);
1400
+ r.changeBindingField(e, d, g);
1394
1401
  break;
1395
1402
  }
1396
1403
  }
@@ -1408,7 +1415,7 @@ class Se extends Fe {
1408
1415
  if (e.binding.type === "Variable") {
1409
1416
  if (this.bindingVarible = this.formSchemaUtils.getVariableById(e.binding.field), !this.bindingVarible)
1410
1417
  return !1;
1411
- } else if (!this.designViewModelField || this.designViewModelField.$type !== K.SimpleField)
1418
+ } else if (!this.designViewModelField || this.designViewModelField.$type !== Z.SimpleField)
1412
1419
  return !1;
1413
1420
  return !0;
1414
1421
  }
@@ -1427,7 +1434,7 @@ class Se extends Fe {
1427
1434
  }]
1428
1435
  };
1429
1436
  let i = [];
1430
- return this.designViewModelField && this.designViewModelField.$type === K.SimpleField ? i = j.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = j.getEditorTypesByMDataType(this.bindingVarible.type, !!((s = this.designViewModelField) != null && s.multiLanguage))), { canChangeControlType: t, editorTypeList: i };
1437
+ return this.designViewModelField && this.designViewModelField.$type === Z.SimpleField ? i = j.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = j.getEditorTypesByMDataType(this.bindingVarible.type, !!((s = this.designViewModelField) != null && s.multiLanguage))), { canChangeControlType: t, editorTypeList: i };
1431
1438
  }
1432
1439
  changeBindingField(e, t, i) {
1433
1440
  t.needRefreshEntityTree = !0;
@@ -1500,28 +1507,28 @@ class Se extends Fe {
1500
1507
  const r = t.propertyValue, s = i && i.parent && i.parent.schema;
1501
1508
  if (!s)
1502
1509
  return;
1503
- const c = s.contents.findIndex((u) => u.id === e.id);
1510
+ const c = s.contents.findIndex((d) => d.id === e.id);
1504
1511
  if (c === -1)
1505
1512
  return;
1506
1513
  const l = s.contents[c];
1507
- let d;
1514
+ let u;
1508
1515
  if (this.designViewModelField) {
1509
1516
  const g = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((m) => m.id === this.designViewModelField.id).fieldSchema || {};
1510
- g.editor || (g.editor = {}), g.editor.$type = r, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, g, !1), d = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r);
1517
+ g.editor || (g.editor = {}), g.editor.$type = r, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, g, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r);
1511
1518
  }
1512
- d || (d = this.controlCreatorUtils.createFormGroupWithoutField(r)), Object.assign(d, {
1519
+ u || (u = this.controlCreatorUtils.createFormGroupWithoutField(r)), Object.assign(u, {
1513
1520
  id: l.id,
1514
1521
  appearance: l.appearance,
1515
1522
  size: l.size,
1516
1523
  label: l.label,
1517
1524
  binding: l.binding
1518
- }), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(d, { visible: l.visible }), l.editor && ["readonly", "required", "placeholder"].map((u) => {
1519
- Object.prototype.hasOwnProperty.call(l.editor, u) && (d.editor[u] = l.editor[u]);
1520
- }), i != null && i.updateContextSchema ? i.updateContextSchema(d) : (i.schema = Object.assign(l, d), Object.assign(e, d)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1521
- (u) => u.classList.remove("dgComponentSelected")
1525
+ }), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(u, { visible: l.visible }), l.editor && ["readonly", "required", "placeholder"].map((d) => {
1526
+ Object.prototype.hasOwnProperty.call(l.editor, d) && (u.editor[d] = l.editor[d]);
1527
+ }), i != null && i.updateContextSchema ? i.updateContextSchema(u) : (i.schema = Object.assign(l, u), Object.assign(e, u)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1528
+ (d) => d.classList.remove("dgComponentSelected")
1522
1529
  ), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
1523
- (u) => u.classList.remove("dgComponentFocused")
1524
- ), R.value++, re(() => {
1530
+ (d) => d.classList.remove("dgComponentFocused")
1531
+ ), R.value++, se(() => {
1525
1532
  this.getFormDesignerInstance().reloadPropertyPanel();
1526
1533
  });
1527
1534
  }
@@ -1533,7 +1540,7 @@ class Se extends Fe {
1533
1540
  type: "input-group",
1534
1541
  $converter: "/converter/property-editor.converter",
1535
1542
  parentPropertyID: "editor"
1536
- }, t), c = (g = e.binding) != null && g.field ? [] : ["Const", "Variable", "StateMachine"], l = this.getPropertyEditorParams(e, c, "readonly"), d = this.getPropertyEditorParams(e, c, "required"), u = {
1543
+ }, t), c = (g = e.binding) != null && g.field ? [] : ["Const", "Variable", "StateMachine"], l = this.getPropertyEditorParams(e, c, "readonly"), u = this.getPropertyEditorParams(e, c, "required"), d = {
1537
1544
  readonly: {
1538
1545
  description: "",
1539
1546
  title: "只读",
@@ -1543,7 +1550,7 @@ class Se extends Fe {
1543
1550
  description: "",
1544
1551
  title: "必填",
1545
1552
  type: "boolean",
1546
- editor: d,
1553
+ editor: u,
1547
1554
  visible: !!((f = e.binding) != null && f.field)
1548
1555
  },
1549
1556
  placeholder: {
@@ -1553,11 +1560,11 @@ class Se extends Fe {
1553
1560
  }
1554
1561
  };
1555
1562
  for (const m in i)
1556
- u[m] = Object.assign(u[m] || {}, i[m]);
1563
+ d[m] = Object.assign(d[m] || {}, i[m]);
1557
1564
  const a = this;
1558
1565
  return {
1559
1566
  ...s,
1560
- properties: { ...u },
1567
+ properties: { ...d },
1561
1568
  setPropertyRelates(m, h) {
1562
1569
  if (m) {
1563
1570
  switch (m.propertyID) {
@@ -1579,16 +1586,16 @@ class Se extends Fe {
1579
1586
  */
1580
1587
  updateUnifiedLayoutAfterControlChanged(e, t, i) {
1581
1588
  const r = e.split(" ");
1582
- let s = r.find((a) => /^col-([1-9]|10|11|12)$/.test(a)), c = r.find((a) => /^col-md-([1-9]|10|11|12)$/.test(a)), l = r.find((a) => /^col-xl-([1-9]|10|11|12)$/.test(a)), d = r.find((a) => /^col-el-([1-9]|10|11|12)$/.test(a));
1583
- s = s || "col-12", c = c || "col-md-" + s.replace("col-", ""), l = l || "col-xl-" + c.replace("col-md-", ""), d = d || "col-el-" + l.replace("col-xl-", "");
1584
- const u = {
1589
+ let s = r.find((a) => /^col-([1-9]|10|11|12)$/.test(a)), c = r.find((a) => /^col-md-([1-9]|10|11|12)$/.test(a)), l = r.find((a) => /^col-xl-([1-9]|10|11|12)$/.test(a)), u = r.find((a) => /^col-el-([1-9]|10|11|12)$/.test(a));
1590
+ s = s || "col-12", c = c || "col-md-" + s.replace("col-", ""), l = l || "col-xl-" + c.replace("col-md-", ""), u = u || "col-el-" + l.replace("col-xl-", "");
1591
+ const d = {
1585
1592
  id: t,
1586
1593
  columnInSM: parseInt(s.replace("col-", ""), 10),
1587
1594
  columnInMD: parseInt(c.replace("col-md-", ""), 10),
1588
1595
  columnInLG: parseInt(l.replace("col-xl-", ""), 10),
1589
- columnInEL: parseInt(d.replace("col-el-", ""), 10)
1596
+ columnInEL: parseInt(u.replace("col-el-", ""), 10)
1590
1597
  };
1591
- this.updateUnifiedLayoutAfterResponseLayoutChanged(i, u);
1598
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(i, d);
1592
1599
  }
1593
1600
  /**
1594
1601
  * 修改控件布局配置后更新Form统一布局配置
@@ -1604,9 +1611,9 @@ class Se extends Fe {
1604
1611
  const m = r.find((h) => h.id === t.id);
1605
1612
  Object.assign(m || {}, t);
1606
1613
  }
1607
- const s = r.map((m) => m.columnInSM), c = r.map((m) => m.columnInMD), l = r.map((m) => m.columnInLG), d = r.map((m) => m.columnInEL), u = this.checkIsUniqueColumn(s) ? s[0] : null, a = this.checkIsUniqueColumn(c) ? c[0] : null, g = this.checkIsUniqueColumn(l) ? l[0] : null, f = this.checkIsUniqueColumn(d) ? d[0] : null;
1614
+ const s = r.map((m) => m.columnInSM), c = r.map((m) => m.columnInMD), l = r.map((m) => m.columnInLG), u = r.map((m) => m.columnInEL), d = this.checkIsUniqueColumn(s) ? s[0] : null, a = this.checkIsUniqueColumn(c) ? c[0] : null, g = this.checkIsUniqueColumn(l) ? l[0] : null, f = this.checkIsUniqueColumn(u) ? u[0] : null;
1608
1615
  Object.assign(i.unifiedLayout, {
1609
- uniqueColClassInSM: u,
1616
+ uniqueColClassInSM: d,
1610
1617
  uniqueColClassInMD: a,
1611
1618
  uniqueColClassInLG: g,
1612
1619
  uniqueColClassInEL: f
@@ -1650,7 +1657,7 @@ class Se extends Fe {
1650
1657
  * @param propertyData 下拉框控件属性值
1651
1658
  */
1652
1659
  checkEnumDataReadonly(e) {
1653
- return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === ce.EnumType);
1660
+ return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === pe.EnumType);
1654
1661
  }
1655
1662
  /**
1656
1663
  * 将字段值变化前事件、变化后事件追加到交互面板
@@ -1706,7 +1713,7 @@ class Se extends Fe {
1706
1713
  };
1707
1714
  }
1708
1715
  getExpressionConfig(e, t, i = ["compute", "dependency", "validate"], r) {
1709
- return new te(this.formSchemaUtils).getExpressionConfig(
1716
+ return new ie(this.formSchemaUtils).getExpressionConfig(
1710
1717
  e,
1711
1718
  t,
1712
1719
  i,
@@ -1759,22 +1766,22 @@ function ke(o, n) {
1759
1766
  }
1760
1767
  return { getPropsConfig: t };
1761
1768
  }
1762
- const Pe = /* @__PURE__ */ _({
1769
+ const Pe = /* @__PURE__ */ H({
1763
1770
  name: "FNumberRangeDesign",
1764
1771
  props: W,
1765
1772
  emits: ["valueChange", "blur", "focus", "click", "input", "beginValueChange", "endValueChange"],
1766
1773
  setup(o, n) {
1767
- const e = N(o.beginValue), t = N(""), i = N(o.endValue), r = N(""), s = Y(o), c = ee(o, n, s), l = (x) => {
1774
+ const e = N(o.beginValue), t = N(""), i = N(o.endValue), r = N(""), s = ee(o), c = te(o, n, s), l = (x) => {
1768
1775
  n.emit("beginValueChange", x);
1769
- }, d = N(), u = D("designer-host-service"), a = D("design-item-context"), g = ke(a, u), f = de(d, a, g);
1770
- H(() => {
1771
- d.value.componentInstance = f;
1776
+ }, u = N(), d = K("designer-host-service"), a = K("design-item-context"), g = ke(a, d), f = ue(u, a, g);
1777
+ J(() => {
1778
+ u.value.componentInstance = f;
1772
1779
  }), n.expose(f.value);
1773
- const m = A(o, n, t, e, c, s, l, e, i, !0), h = O(o, n, t, e, c, s, m, l, e, i, !0), b = q(o, n, m), C = X(o, n, h, !0), w = (x) => {
1780
+ const m = A(o, n, t, e, c, s, l, e, i, !0), h = O(o, n, t, e, c, s, m, l, e, i, !0), b = q(o, n, m), C = _(o, n, h, !0), w = (x) => {
1774
1781
  n.emit("endValueChange", x);
1775
- }, V = A(o, n, r, i, c, s, w, e, i, !1), v = O(o, n, r, i, c, s, V, w, e, i, !1), k = q(o, n, V), F = X(o, n, v, !1), S = M(() => o.showButton);
1782
+ }, V = A(o, n, r, i, c, s, w, e, i, !1), v = O(o, n, r, i, c, s, V, w, e, i, !1), k = q(o, n, V), F = _(o, n, v, !1), S = M(() => o.showButton);
1776
1783
  return () => E("div", {
1777
- ref: d,
1784
+ ref: u,
1778
1785
  class: "input-group number-range f-cmp-number-spinner"
1779
1786
  }, [E("div", {
1780
1787
  class: "form-control input-container"
@@ -1782,21 +1789,21 @@ const Pe = /* @__PURE__ */ _({
1782
1789
  class: "sub-input-group"
1783
1790
  }, [C(), S.value && b()]), E("span", {
1784
1791
  class: "spliter"
1785
- }, [J("~")]), E("div", {
1792
+ }, [Q("~")]), E("div", {
1786
1793
  class: "sub-input-group"
1787
1794
  }, [F(), S.value && k()])])]);
1788
1795
  }
1789
1796
  });
1790
1797
  $.register = (o, n, e, t) => {
1791
- o["number-range"] = $, n["number-range"] = Q;
1798
+ o["number-range"] = $, n["number-range"] = Y;
1792
1799
  };
1793
1800
  $.registerDesigner = (o, n, e) => {
1794
- o["number-range"] = Pe, n["number-range"] = Q;
1801
+ o["number-range"] = Pe, n["number-range"] = Y;
1795
1802
  };
1796
- const qe = pe($);
1803
+ const qe = ge($);
1797
1804
  export {
1798
1805
  $ as FNumberRange,
1799
1806
  qe as default,
1800
1807
  W as numberRangeProps,
1801
- Q as propsResolver
1808
+ Y as propsResolver
1802
1809
  };