@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,14 +1,14 @@
1
- var H = Object.defineProperty;
2
- var G = (y, n, e) => n in y ? H(y, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[n] = e;
3
- var g = (y, n, e) => G(y, typeof n != "symbol" ? n + "" : n, e);
4
- import O, { timePickerProps as W } from "../../components/time-picker/index.esm.js";
5
- import { resolveAppearance as z, createPropsResolver as X } from "../../components/dynamic-resolver/index.esm.js";
6
- import { nextTick as j, defineComponent as _, ref as x, inject as T, onMounted as J, createVNode as P, resolveComponent as Q } from "vue";
7
- import { FButtonEdit as Y } from "../../components/button-edit/index.esm.js";
8
- import { DgControl as o, canvasChanged as w, refreshCanvas as Z, useDesignerComponent as K } from "../../components/designer-canvas/index.esm.js";
9
- import { cloneDeep as D } from "lodash-es";
10
- import { FormSchemaEntityField$Type as B, FormSchemaEntityFieldType$Type as ee } from "../../components/common/index.esm.js";
11
- const te = {
1
+ var G = Object.defineProperty;
2
+ var O = (y, n, e) => n in y ? G(y, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[n] = e;
3
+ var f = (y, n, e) => O(y, typeof n != "symbol" ? n + "" : n, e);
4
+ import W, { timePickerProps as z } from "../../components/time-picker/index.esm.js";
5
+ import { resolveAppearance as X, createPropsResolver as j } from "../../components/dynamic-resolver/index.esm.js";
6
+ import { nextTick as _, defineComponent as J, ref as x, inject as T, onMounted as Q, createVNode as P, resolveComponent as Y } from "vue";
7
+ import { FButtonEdit as Z } from "../../components/button-edit/index.esm.js";
8
+ import { DgControl as o, canvasChanged as w, refreshCanvas as K, useDesignerComponent as D } from "../../components/designer-canvas/index.esm.js";
9
+ import { cloneDeep as ee } from "lodash-es";
10
+ import { FormSchemaEntityField$Type as B, FormSchemaEntityFieldType$Type as te } from "../../components/common/index.esm.js";
11
+ const ie = {
12
12
  /**
13
13
  * 组件值,这个是与指定的format格式相对应的值
14
14
  */
@@ -38,7 +38,7 @@ const te = {
38
38
  readonly: { type: Boolean, default: !1 },
39
39
  editable: { type: Boolean, default: !0 }
40
40
  };
41
- function ie(y) {
41
+ function ne(y) {
42
42
  const { formSchemaUtils: n, formStateMachineUtils: e } = y;
43
43
  function t(l, p = "") {
44
44
  return {
@@ -48,27 +48,27 @@ function ie(y) {
48
48
  };
49
49
  }
50
50
  function i(l, p = "") {
51
- const c = n.getViewModelById(l);
52
- return c ? c.states.map((d) => t(d, p)) : [];
51
+ const a = n.getViewModelById(l);
52
+ return a ? a.states.map((d) => t(d, p)) : [];
53
53
  }
54
54
  function s(l) {
55
- const p = n.getRootViewModelId(), c = i(l);
55
+ const p = n.getRootViewModelId(), a = i(l);
56
56
  if (l === p)
57
- return c;
57
+ return a;
58
58
  const d = i(p, "root-component.");
59
- return [...c, ...d];
59
+ return [...a, ...d];
60
60
  }
61
61
  function r(l) {
62
62
  return l.binding && l.binding.path || l.id || "";
63
63
  }
64
- function a() {
64
+ function c() {
65
65
  return e && e.getRenderStates() || [];
66
66
  }
67
- return { getVariables: s, getControlName: r, getStateMachines: a };
67
+ return { getVariables: s, getControlName: r, getStateMachines: c };
68
68
  }
69
- class N {
69
+ class U {
70
70
  constructor(n) {
71
- g(this, "sessionVariables", [
71
+ f(this, "sessionVariables", [
72
72
  {
73
73
  key: "CurrentSysOrgName",
74
74
  name: "当前组织Name",
@@ -105,7 +105,7 @@ class N {
105
105
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
106
106
  }
107
107
  ]);
108
- g(this, "expressionNames", {
108
+ f(this, "expressionNames", {
109
109
  compute: "计算表达式",
110
110
  dependency: "依赖表达式",
111
111
  validate: "验证表达式",
@@ -114,12 +114,12 @@ class N {
114
114
  readonly: "只读表达式",
115
115
  required: "必填表达式"
116
116
  });
117
- g(this, "getExpressionConverter", (n, e) => ({
117
+ f(this, "getExpressionConverter", (n, e) => ({
118
118
  convertFrom: (t, i, s, r) => {
119
- const a = s.getExpressionRuleValue(n, e || i);
120
- return a && a.value || "";
119
+ const c = s.getExpressionRuleValue(n, e || i);
120
+ return c && c.value || "";
121
121
  },
122
- convertTo: (t, i, s, r, a) => {
122
+ convertTo: (t, i, s, r, c) => {
123
123
  var l;
124
124
  if (i === "dataPicking" && (s != null && s.target)) {
125
125
  const p = `${s.target}_dataPicking`;
@@ -172,10 +172,10 @@ class N {
172
172
  buildEntityFieldsTreeData(n = null, e) {
173
173
  const t = [];
174
174
  return n == null || n.forEach((i) => {
175
- var a;
175
+ var c;
176
176
  const s = this.createTreeNode(i, e);
177
177
  let r = [];
178
- (a = i.type) != null && a.fields && (r = this.buildEntityFieldsTreeData(i.type.fields, [...e, i.label])), t.push({
178
+ (c = i.type) != null && c.fields && (r = this.buildEntityFieldsTreeData(i.type.fields, [...e, i.label])), t.push({
179
179
  data: s,
180
180
  children: r,
181
181
  expanded: !0
@@ -188,8 +188,8 @@ class N {
188
188
  var l, p;
189
189
  const s = this.createTreeNode(i, e);
190
190
  s.type = "entity";
191
- const r = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...e, i.label]), a = this.buildChildEntityTreeData((p = i.type) == null ? void 0 : p.entities, [...e, i.label]);
192
- a != null && a.length && (r == null || r.push(...a)), t.push({
191
+ const r = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...e, i.label]), c = this.buildChildEntityTreeData((p = i.type) == null ? void 0 : p.entities, [...e, i.label]);
192
+ c != null && c.length && (r == null || r.push(...c)), t.push({
193
193
  data: s,
194
194
  children: r || [],
195
195
  // 空值回退
@@ -231,19 +231,19 @@ class N {
231
231
  };
232
232
  }
233
233
  onBeforeOpenExpression(n, e, t) {
234
- const i = t === "Field" ? n.binding.field : n.id, s = this.getExpressionRule(i, e), r = this.getEntitiesAndVariables(), a = {
234
+ const i = t === "Field" ? n.binding.field : n.id, s = this.getExpressionRule(i, e), r = this.getEntitiesAndVariables(), c = {
235
235
  message: ["validate", "required", "dataPicking"].includes(e) && s ? s.message : "",
236
236
  ...r
237
237
  };
238
- return s.messageType != null && (a.messageType = s.messageType), a;
238
+ return s.messageType != null && (c.messageType = s.messageType), c;
239
239
  }
240
240
  buildRule(n, e, t, i) {
241
- const { expression: s, message: r, messageType: a } = e, l = {
241
+ const { expression: s, message: r, messageType: c } = e, l = {
242
242
  id: `${n}_${t}`,
243
243
  type: t,
244
244
  value: s
245
245
  };
246
- return (t === "validate" || t === "dataPicking" || t === "required") && (l.message = r), t === "dataPicking" && (l.messageType = a), t === "validate" && i && (l.elementId = i), l;
246
+ return (t === "validate" || t === "dataPicking" || t === "required") && (l.message = r), t === "dataPicking" && (l.messageType = c), t === "validate" && i && (l.elementId = i), l;
247
247
  }
248
248
  getExpressionData() {
249
249
  const { expressions: n } = this.formSchemaService.getFormSchema().module;
@@ -251,12 +251,12 @@ class N {
251
251
  }
252
252
  updateExpression(n, e, t, i) {
253
253
  const s = e === "Field" ? n.binding.field : n.id, r = this.buildRule(s, t, i, n.type === "form-group" ? n.id : "");
254
- let l = this.getExpressionData().find((c) => c.targetType === e && c.target === s);
255
- const p = (c) => c.value.trim() === "";
254
+ let l = this.getExpressionData().find((a) => a.targetType === e && a.target === s);
255
+ const p = (a) => a.value.trim() === "";
256
256
  if (l) {
257
- const c = l.rules.find((d) => d.id === r.id);
258
- if (c)
259
- p(r) ? l.rules = l.rules.filter((d) => d.id !== r.id) : (Object.assign(c, r), i === "validate" && n.type === "form-group" && (c.elementId = n.id));
257
+ const a = l.rules.find((d) => d.id === r.id);
258
+ if (a)
259
+ p(r) ? l.rules = l.rules.filter((d) => d.id !== r.id) : (Object.assign(a, r), i === "validate" && n.type === "form-group" && (a.elementId = n.id));
260
260
  else {
261
261
  if (p(r))
262
262
  return null;
@@ -276,13 +276,13 @@ class N {
276
276
  getExpressionEditorOptions(n, e, t, i) {
277
277
  return t.reduce((s, r) => {
278
278
  var l, p;
279
- const a = e === "Field" ? (l = n == null ? void 0 : n.binding) == null ? void 0 : l.field : n.id;
279
+ const c = e === "Field" ? (l = n == null ? void 0 : n.binding) == null ? void 0 : l.field : n.id;
280
280
  return s[r] = {
281
281
  hide: e === "Field" ? !!((p = n == null ? void 0 : n.binding) != null && p.field) : !1,
282
282
  description: "",
283
283
  title: this.expressionNames[r],
284
284
  type: "string",
285
- $converter: this.getExpressionConverter(a),
285
+ $converter: this.getExpressionConverter(c),
286
286
  refreshPanelAfterChanged: !0,
287
287
  editor: {
288
288
  type: "expression-editor",
@@ -291,10 +291,10 @@ class N {
291
291
  showMessage: r === "validate" || r === "dataPicking" || r === "required",
292
292
  showMessageType: r === "dataPicking",
293
293
  beforeOpen: () => this.onBeforeOpenExpression(n, r, e),
294
- onSubmitModal: (c) => {
295
- const d = this.updateExpression(n, e, c, r);
294
+ onSubmitModal: (a) => {
295
+ const d = this.updateExpression(n, e, a, r);
296
296
  if (i) {
297
- const m = this.buildRule(a, c, r);
297
+ const m = this.buildRule(c, a, r);
298
298
  i(m);
299
299
  }
300
300
  return d;
@@ -333,21 +333,21 @@ class N {
333
333
  };
334
334
  }
335
335
  }
336
- class ne {
336
+ class se {
337
337
  constructor(n, e) {
338
- g(this, "componentId");
339
- g(this, "viewModelId");
340
- g(this, "eventsEditorUtils");
341
- g(this, "formSchemaUtils");
342
- g(this, "formMetadataConverter");
343
- g(this, "designViewModelUtils");
344
- g(this, "designViewModelField");
345
- g(this, "controlCreatorUtils");
346
- g(this, "designerHostService");
347
- g(this, "designerContext");
348
- g(this, "schemaService", null);
349
- g(this, "metadataService", null);
350
- g(this, "propertyConfig", {
338
+ f(this, "componentId");
339
+ f(this, "viewModelId");
340
+ f(this, "eventsEditorUtils");
341
+ f(this, "formSchemaUtils");
342
+ f(this, "formMetadataConverter");
343
+ f(this, "designViewModelUtils");
344
+ f(this, "designViewModelField");
345
+ f(this, "controlCreatorUtils");
346
+ f(this, "designerHostService");
347
+ f(this, "designerContext");
348
+ f(this, "schemaService", null);
349
+ f(this, "metadataService", null);
350
+ f(this, "propertyConfig", {
351
351
  type: "object",
352
352
  categories: {}
353
353
  });
@@ -425,7 +425,7 @@ class ne {
425
425
  return {
426
426
  ...i,
427
427
  properties: { ...s },
428
- setPropertyRelates(r, a) {
428
+ setPropertyRelates(r, c) {
429
429
  if (r) {
430
430
  switch (r && r.propertyID) {
431
431
  case "class":
@@ -434,7 +434,7 @@ class ne {
434
434
  break;
435
435
  }
436
436
  }
437
- t && t(r, n, a);
437
+ t && t(r, n, c);
438
438
  }
439
439
  }
440
440
  };
@@ -450,12 +450,12 @@ class ne {
450
450
  * @returns
451
451
  */
452
452
  getPropertyEditorParams(n, e = [], t = "visible", i = {}, s = {}, r = "") {
453
- const { getVariables: a, getControlName: l, getStateMachines: p } = ie(this.designerHostService), c = this.getRealTargetType(n), d = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], m = {
453
+ const { getVariables: c, getControlName: l, getStateMachines: p } = ne(this.designerHostService), a = this.getRealTargetType(n), d = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], m = {
454
454
  type: "property-editor",
455
455
  propertyTypes: d
456
456
  };
457
- return d.map((f) => {
458
- switch (f) {
457
+ return d.map((h) => {
458
+ switch (h) {
459
459
  case "Const":
460
460
  Object.assign(m, {
461
461
  constType: "enum",
@@ -463,7 +463,7 @@ class ne {
463
463
  }, i);
464
464
  break;
465
465
  case "Expression":
466
- m.expressionConfig = this.getExpressionOptions(n, c, r || t);
466
+ m.expressionConfig = this.getExpressionOptions(n, a, r || t);
467
467
  break;
468
468
  case "StateMachine":
469
469
  m.stateMachines = p();
@@ -473,10 +473,10 @@ class ne {
473
473
  controlName: l(n),
474
474
  newVariablePrefix: "is",
475
475
  newVariableType: "Boolean",
476
- variables: a(this.viewModelId),
476
+ variables: c(this.viewModelId),
477
477
  parentComponentId: this.componentId === "root-component" ? "" : "root-component",
478
478
  onBeforeOpenVariables: (u) => {
479
- u.value = a(this.viewModelId);
479
+ u.value = c(this.viewModelId);
480
480
  }
481
481
  }, s), this.designerContext.designerMode === "PC_RTC" && (m.newVariablePrefix = "ext_" + m.newVariablePrefix);
482
482
  break;
@@ -508,7 +508,7 @@ class ne {
508
508
  }, r = this.getVisibleProperty(n, e);
509
509
  for (const l in t)
510
510
  r[l] = Object.assign(r[l] || {}, t[l]);
511
- const a = this;
511
+ const c = this;
512
512
  return {
513
513
  ...s,
514
514
  properties: { ...r },
@@ -518,7 +518,7 @@ class ne {
518
518
  case "disabled":
519
519
  case "readonly":
520
520
  case "visible":
521
- a.afterMutilEditorChanged(n, l);
521
+ c.afterMutilEditorChanged(n, l);
522
522
  break;
523
523
  }
524
524
  i && i(l, p);
@@ -544,8 +544,8 @@ class ne {
544
544
  const t = e && e.parent && e.parent.schema;
545
545
  if (!t)
546
546
  return;
547
- const i = t.contents.findIndex((r) => r.id === n), s = D(t.contents[i]);
548
- t.contents.splice(i, 1), t.contents.splice(i, 0, s), Z();
547
+ const i = t.contents.findIndex((r) => r.id === n), s = ee(t.contents[i]);
548
+ t.contents.splice(i, 1), t.contents.splice(i, 0, s), K();
549
549
  }
550
550
  /**
551
551
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -575,16 +575,16 @@ class ne {
575
575
  const e = n.propertyValue;
576
576
  if (!((e && e.type) === "Expression" && e.expressionInfo))
577
577
  return;
578
- const { expressionId: s, expressionInfo: r } = e, { targetId: a, targetType: l, expressionType: p, value: c, message: d } = r, m = this.formSchemaUtils.getModule();
578
+ const { expressionId: s, expressionInfo: r } = e, { targetId: c, targetType: l, expressionType: p, value: a, message: d } = r, m = this.formSchemaUtils.getModule();
579
579
  m.expressions = m.expressions || [];
580
- const { expressions: f } = m;
581
- let u = f.find((b) => b.target === a);
582
- u || (u = { target: a, rules: [], targetType: l }, f.push(u));
583
- const h = u.rules.find((b) => b.type === p);
584
- if (h)
585
- h.value = c, h.message = d;
580
+ const { expressions: h } = m;
581
+ let u = h.find((b) => b.target === c);
582
+ u || (u = { target: c, rules: [], targetType: l }, h.push(u));
583
+ const g = u.rules.find((b) => b.type === p);
584
+ if (g)
585
+ g.value = a, g.message = d;
586
586
  else {
587
- const b = { id: s, type: p, value: c, message: d };
587
+ const b = { id: s, type: p, value: a, message: d };
588
588
  u.rules.push(b);
589
589
  }
590
590
  delete e.expressionInfo;
@@ -599,11 +599,11 @@ class ne {
599
599
  const t = n.propertyValue;
600
600
  if (t && t.type === "Expression")
601
601
  return;
602
- const s = n.propertyID, r = this.formSchemaUtils.getExpressions(), a = e.binding ? e.binding.field : e.id, l = r.find((p) => p.target === a);
602
+ const s = n.propertyID, r = this.formSchemaUtils.getExpressions(), c = e.binding ? e.binding.field : e.id, l = r.find((p) => p.target === c);
603
603
  !l || !l.rules || (l.rules = l.rules.filter((p) => p.type !== s));
604
604
  }
605
605
  getExpressionOptions(n, e, t) {
606
- return new N(this.formSchemaUtils).getExpressionOptions(n, e, t);
606
+ return new U(this.formSchemaUtils).getExpressionOptions(n, e, t);
607
607
  }
608
608
  getRealTargetType(n) {
609
609
  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";
@@ -660,7 +660,7 @@ const F = class F {
660
660
  /**
661
661
  * <字段类型,可配置的控件类型列表>的映射
662
662
  */
663
- g(F, "fieldControlTypeMapping", {
663
+ f(F, "fieldControlTypeMapping", {
664
664
  String: [
665
665
  { key: o["input-group"].type, value: o["input-group"].name },
666
666
  { key: o.lookup.type, value: o.lookup.name },
@@ -716,76 +716,83 @@ g(F, "fieldControlTypeMapping", {
716
716
  });
717
717
  let V = F;
718
718
  var M = /* @__PURE__ */ ((y) => (y.Form = "Form", y.Variable = "Variable", y))(M || {});
719
- class se {
719
+ class N {
720
720
  constructor() {
721
721
  /** 控件标题 */
722
- g(this, "label", "");
722
+ f(this, "label", "");
723
723
  /** 控件id */
724
- g(this, "id", "");
724
+ f(this, "id", "");
725
725
  /** 每个控件占用的栅格数 */
726
- g(this, "columnInSM", 12);
727
- g(this, "columnInMD", 6);
728
- g(this, "columnInLG", 3);
729
- g(this, "columnInEL", 2);
726
+ f(this, "columnInSM", 12);
727
+ f(this, "columnInMD", 6);
728
+ f(this, "columnInLG", 3);
729
+ f(this, "columnInEL", 2);
730
730
  /** 每个控件占用的列数 */
731
- g(this, "displayWidthInSM", 1);
732
- g(this, "displayWidthInMD", 1);
733
- g(this, "displayWidthInLG", 1);
734
- g(this, "displayWidthInEL", 1);
731
+ f(this, "displayWidthInSM", 1);
732
+ f(this, "displayWidthInMD", 1);
733
+ f(this, "displayWidthInLG", 1);
734
+ f(this, "displayWidthInEL", 1);
735
735
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
736
- g(this, "displayColumnCountAtBreakPoint", "md");
736
+ f(this, "displayColumnCountAtBreakPoint", "md");
737
737
  /** 控件所在行,传0即可-----编辑器内部使用 */
738
- g(this, "tagRow", 0);
738
+ f(this, "tagRow", 0);
739
739
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
740
- g(this, "showTopBorder", 0);
740
+ f(this, "showTopBorder", 0);
741
741
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
742
- g(this, "group", 1);
742
+ f(this, "group", 1);
743
743
  /** 控件是否符合标准的class配置(设计器用的) */
744
- g(this, "isSupportedClass", !0);
744
+ f(this, "isSupportedClass", !0);
745
745
  /** 控件所在分组id(设计器用的) */
746
- g(this, "fieldSetId", "");
746
+ f(this, "fieldSetId", "");
747
747
  }
748
748
  }
749
749
  function re(y) {
750
750
  let n, e;
751
751
  const t = /* @__PURE__ */ new Map();
752
752
  let i = [];
753
- function s(c, d) {
754
- const f = c.split(" ").filter((v) => v.startsWith("col-"));
755
- if (f.length === 0) {
753
+ function s(a, d) {
754
+ const h = ((a == null ? void 0 : a.split(" ")) || []).filter((v) => v.startsWith("col-"));
755
+ if (h.length === 0) {
756
756
  d.isSupportedClass = !1;
757
757
  return;
758
758
  }
759
- let u = f.find((v) => /^col-([1-9]|10|11|12)$/.test(v)), h = f.find((v) => /^col-md-([1-9]|10|11|12)$/.test(v)), b = f.find((v) => /^col-xl-([1-9]|10|11|12)$/.test(v)), C = f.find((v) => /^col-el-([1-9]|10|11|12)$/.test(v));
760
- u = u || "col-12", d.columnInSM = parseInt(u.replace("col-", ""), 10), d.displayWidthInSM = d.columnInSM / 12, d.displayWidthInSM !== 1 && (d.isSupportedClass = !1), h = h || "col-md-" + d.columnInSM, d.columnInMD = parseInt(h.replace("col-md-", ""), 10), d.displayWidthInMD = d.columnInMD / 6, [1, 2].includes(d.displayWidthInMD) || (d.isSupportedClass = !1), b = b || "col-xl-" + d.columnInMD, d.columnInLG = parseInt(b.replace("col-xl-", ""), 10), d.displayWidthInLG = d.columnInLG / 3, [1, 2, 3, 4].includes(d.displayWidthInLG) || (d.isSupportedClass = !1), C = C || "col-el-" + d.columnInLG, d.columnInEL = parseInt(C.replace("col-el-", ""), 10), d.displayWidthInEL = d.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(d.displayWidthInEL) || (d.isSupportedClass = !1);
759
+ let u = h.find((v) => /^col-([1-9]|10|11|12)$/.test(v)), g = h.find((v) => /^col-md-([1-9]|10|11|12)$/.test(v)), b = h.find((v) => /^col-xl-([1-9]|10|11|12)$/.test(v)), C = h.find((v) => /^col-el-([1-9]|10|11|12)$/.test(v));
760
+ u = u || "col-12", d.columnInSM = parseInt(u.replace("col-", ""), 10), d.displayWidthInSM = d.columnInSM / 12, d.displayWidthInSM !== 1 && (d.isSupportedClass = !1), g = g || "col-md-" + d.columnInSM, d.columnInMD = parseInt(g.replace("col-md-", ""), 10), d.displayWidthInMD = d.columnInMD / 6, [1, 2].includes(d.displayWidthInMD) || (d.isSupportedClass = !1), b = b || "col-xl-" + d.columnInMD, d.columnInLG = parseInt(b.replace("col-xl-", ""), 10), d.displayWidthInLG = d.columnInLG / 3, [1, 2, 3, 4].includes(d.displayWidthInLG) || (d.isSupportedClass = !1), C = C || "col-el-" + d.columnInLG, d.columnInEL = parseInt(C.replace("col-el-", ""), 10), d.displayWidthInEL = d.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(d.displayWidthInEL) || (d.isSupportedClass = !1);
761
761
  }
762
- function r(c, d, m, f = !1) {
762
+ function r(a, d, m, h = !1) {
763
763
  let u = !1;
764
- c.contents.forEach((h) => {
765
- if (h.type === "fieldset") {
766
- m += 1, r(h, d, m, !0), u = !0;
764
+ if (!a.contents || a.contents.length === 0) {
765
+ const g = new N();
766
+ s(a.layout, g), d.push(g);
767
+ return;
768
+ }
769
+ a.contents.forEach((g) => {
770
+ if (g.type === "fieldset") {
771
+ m += 1, r(g, d, m, !0), u = !0;
767
772
  return;
768
773
  }
774
+ if (g.type === "dynamic-form")
775
+ return;
769
776
  u && (m += 1, u = !1);
770
- const b = h.appearance && h.appearance.class, C = new se();
771
- b ? s(b, C) : C.isSupportedClass = !1, C.label = h.label || h.id, C.id = h.id, C.group = m, f && (C.fieldSetId = c.id), e === h.id && (n = m), t.set(h.id, h), d.push(C);
777
+ const b = g.appearance && g.appearance.class, C = new N();
778
+ b ? s(b, C) : C.isSupportedClass = !1, C.label = g.label || g.id, C.id = g.id, C.group = m, h && (C.fieldSetId = a.id), e === g.id && (n = m), t.set(g.id, g), d.push(C);
772
779
  });
773
780
  }
774
- function a(c) {
775
- const d = y.getComponentById(c);
781
+ function c(a) {
782
+ const d = y.getComponentById(a);
776
783
  if (!d || !d.componentType || !d.componentType.startsWith("form"))
777
784
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
778
- const m = y.selectNode(d, (f) => f.type === o["response-form"].type);
785
+ const m = y.selectNode(d, (h) => h.type === o["response-form"].type);
779
786
  return !m || !m.contents || m.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: m };
780
787
  }
781
- function l(c, d) {
782
- d = d || c.id;
783
- const { result: m, message: f, formNode: u } = a(d);
788
+ function l(a, d) {
789
+ d = d || a.id;
790
+ const { result: m, message: h, formNode: u } = c(d);
784
791
  if (!m)
785
- return { result: m, message: f };
786
- e = c.id, i = [], t.clear();
787
- const h = u.contents[0].type === o.fieldset.type ? 0 : 1;
788
- r(u, i, h);
792
+ return { result: m, message: h };
793
+ e = a.id, i = [], t.clear();
794
+ const g = u.contents[0].type === o.fieldset.type ? 0 : 1;
795
+ r(u, i, g);
789
796
  const b = i.find((v) => !v.isSupportedClass);
790
797
  return {
791
798
  defaultState: {
@@ -795,40 +802,40 @@ function re(y) {
795
802
  importData: i
796
803
  };
797
804
  }
798
- function p(c, d) {
805
+ function p(a, d) {
799
806
  d = d;
800
- const { result: m, formNode: f } = a(d);
807
+ const { result: m, formNode: h } = c(d);
801
808
  if (!m)
802
809
  return "";
803
810
  const u = [];
804
- return c.forEach((h) => {
811
+ return a.forEach((g) => {
805
812
  var v;
806
- const b = t.get(h.id), C = b.appearance && b.appearance.class;
813
+ const b = t.get(g.id), C = b.appearance && b.appearance.class;
807
814
  if (C) {
808
- const E = C.split(" ").filter((R) => !R.startsWith("col-")), I = "col-" + h.columnInSM, L = "col-md-" + h.columnInMD, A = "col-xl-" + h.columnInLG, $ = "col-el-" + h.columnInEL, q = [I, L, A, $].concat(E);
815
+ const E = C.split(" ").filter((H) => !H.startsWith("col-")), I = "col-" + g.columnInSM, A = "col-md-" + g.columnInMD, $ = "col-xl-" + g.columnInLG, R = "col-el-" + g.columnInEL, q = [I, A, $, R].concat(E);
809
816
  b.appearance.class = q.join(" ");
810
817
  }
811
- if (h.fieldSetId) {
812
- const k = f.contents.find((I) => I.id === h.fieldSetId), E = u.find((I) => I.id === h.fieldSetId);
818
+ if (g.fieldSetId) {
819
+ const k = h.contents.find((I) => I.id === g.fieldSetId), E = u.find((I) => I.id === g.fieldSetId);
813
820
  E ? (v = E.contents) == null || v.push(b) : (u.push(k), k.contents = [b]);
814
821
  } else
815
822
  u.push(b);
816
- }), f.contents = u, f.id;
823
+ }), h.contents = u, h.id;
817
824
  }
818
825
  return {
819
- checkCanFindFormNode: a,
826
+ checkCanFindFormNode: c,
820
827
  checkCanOpenLayoutEditor: l,
821
828
  changeFormControlsByResponseLayoutConfig: p,
822
829
  getResonseFormLayoutConfig: r
823
830
  };
824
831
  }
825
- class oe extends ne {
832
+ class oe extends se {
826
833
  constructor(e, t) {
827
834
  super(e, t);
828
- g(this, "responseLayoutEditorFunction");
835
+ f(this, "responseLayoutEditorFunction");
829
836
  /** 控件绑定的变量 */
830
- g(this, "bindingVarible");
831
- g(this, "numberEditorOptions", {
837
+ f(this, "bindingVarible");
838
+ f(this, "numberEditorOptions", {
832
839
  type: "number-spinner",
833
840
  useThousands: !1,
834
841
  keyboard: !1,
@@ -849,7 +856,7 @@ class oe extends ne {
849
856
  var p;
850
857
  const s = this;
851
858
  this.setDesignViewModelField(e);
852
- const { canChangeControlType: r, editorTypeList: a } = this.getAvailableEditorType(e), l = {
859
+ const { canChangeControlType: r, editorTypeList: c } = this.getAvailableEditorType(e), l = {
853
860
  description: "Basic Information",
854
861
  title: "基本信息",
855
862
  properties: {
@@ -871,7 +878,7 @@ class oe extends ne {
871
878
  valueField: "key",
872
879
  idField: "key",
873
880
  editable: !1,
874
- data: a,
881
+ data: c,
875
882
  readonly: !r
876
883
  }
877
884
  },
@@ -908,19 +915,19 @@ class oe extends ne {
908
915
  readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
909
916
  }
910
917
  },
911
- setPropertyRelates(c, d, m) {
912
- if (c)
913
- switch (c && c.propertyID) {
918
+ setPropertyRelates(a, d, m) {
919
+ if (a)
920
+ switch (a && a.propertyID) {
914
921
  case "type": {
915
- s.changeControlType(e, c, t);
922
+ s.changeControlType(e, a, t);
916
923
  break;
917
924
  }
918
925
  case "label": {
919
- c.needRefreshControlTree = !0;
926
+ a.needRefreshControlTree = !0;
920
927
  break;
921
928
  }
922
929
  case "binding": {
923
- s.changeBindingField(e, c, m);
930
+ s.changeBindingField(e, a, m);
924
931
  break;
925
932
  }
926
933
  }
@@ -1030,10 +1037,10 @@ class oe extends ne {
1030
1037
  const s = t.propertyValue, r = i && i.parent && i.parent.schema;
1031
1038
  if (!r)
1032
1039
  return;
1033
- const a = r.contents.findIndex((c) => c.id === e.id);
1034
- if (a === -1)
1040
+ const c = r.contents.findIndex((a) => a.id === e.id);
1041
+ if (c === -1)
1035
1042
  return;
1036
- const l = r.contents[a];
1043
+ const l = r.contents[c];
1037
1044
  let p;
1038
1045
  if (this.designViewModelField) {
1039
1046
  const m = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((u) => u.id === this.designViewModelField.id).fieldSchema || {};
@@ -1045,25 +1052,25 @@ class oe extends ne {
1045
1052
  size: l.size,
1046
1053
  label: l.label,
1047
1054
  binding: l.binding
1048
- }), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(p, { visible: l.visible }), l.editor && ["readonly", "required", "placeholder"].map((c) => {
1049
- Object.prototype.hasOwnProperty.call(l.editor, c) && (p.editor[c] = l.editor[c]);
1055
+ }), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(p, { visible: l.visible }), l.editor && ["readonly", "required", "placeholder"].map((a) => {
1056
+ Object.prototype.hasOwnProperty.call(l.editor, a) && (p.editor[a] = l.editor[a]);
1050
1057
  }), i != null && i.updateContextSchema ? i.updateContextSchema(p) : (i.schema = Object.assign(l, p), Object.assign(e, p)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1051
- (c) => c.classList.remove("dgComponentSelected")
1058
+ (a) => a.classList.remove("dgComponentSelected")
1052
1059
  ), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
1053
- (c) => c.classList.remove("dgComponentFocused")
1054
- ), w.value++, j(() => {
1060
+ (a) => a.classList.remove("dgComponentFocused")
1061
+ ), w.value++, _(() => {
1055
1062
  this.getFormDesignerInstance().reloadPropertyPanel();
1056
1063
  });
1057
1064
  }
1058
1065
  getComponentConfig(e, t = {}, i = {}, s) {
1059
- var m, f;
1066
+ var m, h;
1060
1067
  const r = Object.assign({
1061
1068
  description: "编辑器",
1062
1069
  title: "编辑器",
1063
1070
  type: "input-group",
1064
1071
  $converter: "/converter/property-editor.converter",
1065
1072
  parentPropertyID: "editor"
1066
- }, t), a = (m = e.binding) != null && m.field ? [] : ["Const", "Variable", "StateMachine"], l = this.getPropertyEditorParams(e, a, "readonly"), p = this.getPropertyEditorParams(e, a, "required"), c = {
1073
+ }, t), c = (m = e.binding) != null && m.field ? [] : ["Const", "Variable", "StateMachine"], l = this.getPropertyEditorParams(e, c, "readonly"), p = this.getPropertyEditorParams(e, c, "required"), a = {
1067
1074
  readonly: {
1068
1075
  description: "",
1069
1076
  title: "只读",
@@ -1074,7 +1081,7 @@ class oe extends ne {
1074
1081
  title: "必填",
1075
1082
  type: "boolean",
1076
1083
  editor: p,
1077
- visible: !!((f = e.binding) != null && f.field)
1084
+ visible: !!((h = e.binding) != null && h.field)
1078
1085
  },
1079
1086
  placeholder: {
1080
1087
  description: "当控件没有值时在输入框中显示的文本",
@@ -1083,12 +1090,12 @@ class oe extends ne {
1083
1090
  }
1084
1091
  };
1085
1092
  for (const u in i)
1086
- c[u] = Object.assign(c[u] || {}, i[u]);
1093
+ a[u] = Object.assign(a[u] || {}, i[u]);
1087
1094
  const d = this;
1088
1095
  return {
1089
1096
  ...r,
1090
- properties: { ...c },
1091
- setPropertyRelates(u, h) {
1097
+ properties: { ...a },
1098
+ setPropertyRelates(u, g) {
1092
1099
  if (u) {
1093
1100
  switch (u.propertyID) {
1094
1101
  case "readonly":
@@ -1096,7 +1103,7 @@ class oe extends ne {
1096
1103
  d.afterMutilEditorChanged(e, u);
1097
1104
  break;
1098
1105
  }
1099
- s && s.bind(d)(u, e, h);
1106
+ s && s.bind(d)(u, e, g);
1100
1107
  }
1101
1108
  }
1102
1109
  };
@@ -1109,16 +1116,16 @@ class oe extends ne {
1109
1116
  */
1110
1117
  updateUnifiedLayoutAfterControlChanged(e, t, i) {
1111
1118
  const s = e.split(" ");
1112
- let r = s.find((d) => /^col-([1-9]|10|11|12)$/.test(d)), a = s.find((d) => /^col-md-([1-9]|10|11|12)$/.test(d)), l = s.find((d) => /^col-xl-([1-9]|10|11|12)$/.test(d)), p = s.find((d) => /^col-el-([1-9]|10|11|12)$/.test(d));
1113
- r = r || "col-12", a = a || "col-md-" + r.replace("col-", ""), l = l || "col-xl-" + a.replace("col-md-", ""), p = p || "col-el-" + l.replace("col-xl-", "");
1114
- const c = {
1119
+ let r = s.find((d) => /^col-([1-9]|10|11|12)$/.test(d)), c = s.find((d) => /^col-md-([1-9]|10|11|12)$/.test(d)), l = s.find((d) => /^col-xl-([1-9]|10|11|12)$/.test(d)), p = s.find((d) => /^col-el-([1-9]|10|11|12)$/.test(d));
1120
+ r = r || "col-12", c = c || "col-md-" + r.replace("col-", ""), l = l || "col-xl-" + c.replace("col-md-", ""), p = p || "col-el-" + l.replace("col-xl-", "");
1121
+ const a = {
1115
1122
  id: t,
1116
1123
  columnInSM: parseInt(r.replace("col-", ""), 10),
1117
- columnInMD: parseInt(a.replace("col-md-", ""), 10),
1124
+ columnInMD: parseInt(c.replace("col-md-", ""), 10),
1118
1125
  columnInLG: parseInt(l.replace("col-xl-", ""), 10),
1119
1126
  columnInEL: parseInt(p.replace("col-el-", ""), 10)
1120
1127
  };
1121
- this.updateUnifiedLayoutAfterResponseLayoutChanged(i, c);
1128
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(i, a);
1122
1129
  }
1123
1130
  /**
1124
1131
  * 修改控件布局配置后更新Form统一布局配置
@@ -1131,15 +1138,15 @@ class oe extends ne {
1131
1138
  return;
1132
1139
  const s = [];
1133
1140
  if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, s, 1), t) {
1134
- const u = s.find((h) => h.id === t.id);
1141
+ const u = s.find((g) => g.id === t.id);
1135
1142
  Object.assign(u || {}, t);
1136
1143
  }
1137
- const r = s.map((u) => u.columnInSM), a = s.map((u) => u.columnInMD), l = s.map((u) => u.columnInLG), p = s.map((u) => u.columnInEL), c = this.checkIsUniqueColumn(r) ? r[0] : null, d = this.checkIsUniqueColumn(a) ? a[0] : null, m = this.checkIsUniqueColumn(l) ? l[0] : null, f = this.checkIsUniqueColumn(p) ? p[0] : null;
1144
+ const r = s.map((u) => u.columnInSM), c = s.map((u) => u.columnInMD), l = s.map((u) => u.columnInLG), p = s.map((u) => u.columnInEL), a = this.checkIsUniqueColumn(r) ? r[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null, m = this.checkIsUniqueColumn(l) ? l[0] : null, h = this.checkIsUniqueColumn(p) ? p[0] : null;
1138
1145
  Object.assign(i.unifiedLayout, {
1139
- uniqueColClassInSM: c,
1146
+ uniqueColClassInSM: a,
1140
1147
  uniqueColClassInMD: d,
1141
1148
  uniqueColClassInLG: m,
1142
- uniqueColClassInEL: f
1149
+ uniqueColClassInEL: h
1143
1150
  });
1144
1151
  }
1145
1152
  /**
@@ -1180,7 +1187,7 @@ class oe extends ne {
1180
1187
  * @param propertyData 下拉框控件属性值
1181
1188
  */
1182
1189
  checkEnumDataReadonly(e) {
1183
- return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === ee.EnumType);
1190
+ return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === te.EnumType);
1184
1191
  }
1185
1192
  /**
1186
1193
  * 将字段值变化前事件、变化后事件追加到交互面板
@@ -1209,8 +1216,8 @@ class oe extends ne {
1209
1216
  */
1210
1217
  getEventPropertyConfig(e, t = "card", i, s) {
1211
1218
  const r = this;
1212
- let a = [];
1213
- if (i && (a = a.concat(i)), a.length === 0)
1219
+ let c = [];
1220
+ if (i && (c = c.concat(i)), c.length === 0)
1214
1221
  return {
1215
1222
  title: "事件",
1216
1223
  hideTitle: !0,
@@ -1219,8 +1226,8 @@ class oe extends ne {
1219
1226
  tabName: "交互",
1220
1227
  hide: !0
1221
1228
  };
1222
- this.appendFieldValueChangeEvents(e, a);
1223
- const l = r.eventsEditorUtils.formProperties(e, r.viewModelId, a);
1229
+ this.appendFieldValueChangeEvents(e, c);
1230
+ const l = r.eventsEditorUtils.formProperties(e, r.viewModelId, c);
1224
1231
  return {
1225
1232
  title: "事件",
1226
1233
  hideTitle: !0,
@@ -1228,15 +1235,15 @@ class oe extends ne {
1228
1235
  tabId: "commands",
1229
1236
  tabName: "交互",
1230
1237
  setPropertyRelates(d, m) {
1231
- const f = d.propertyValue;
1232
- delete e[r.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, f.controlInfo = { type: r.getControlMethodType(e), name: e.title }, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, f.events, f)), s && s(d, m, f);
1238
+ const h = d.propertyValue;
1239
+ delete e[r.viewModelId], h && (h.setPropertyRelates = this.setPropertyRelates, h.controlInfo = { type: r.getControlMethodType(e), name: e.title }, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, h.events, h)), s && s(d, m, h);
1233
1240
  const u = r.designViewModelUtils.getDgViewModel(r.viewModelId);
1234
1241
  u && r.designViewModelField && u.changeField(r.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
1235
1242
  }
1236
1243
  };
1237
1244
  }
1238
1245
  getExpressionConfig(e, t, i = ["compute", "dependency", "validate"], s) {
1239
- return new N(this.formSchemaUtils).getExpressionConfig(
1246
+ return new U(this.formSchemaUtils).getExpressionConfig(
1240
1247
  e,
1241
1248
  t,
1242
1249
  i,
@@ -1256,8 +1263,8 @@ class oe extends ne {
1256
1263
  setBooleanValue(e, t, i) {
1257
1264
  let s = i;
1258
1265
  this.getBindingDataType() === "string" && (s = (s || "").trim() || (t === "trueValue" ? "true" : "false"));
1259
- const a = t === "trueValue" ? "falseValue" : "trueValue";
1260
- e.editor[a] === s && (s = s + 1), this.updatePropertyValue(e, t, s);
1266
+ const c = t === "trueValue" ? "falseValue" : "trueValue";
1267
+ e.editor[c] === s && (s = s + 1), this.updatePropertyValue(e, t, s);
1261
1268
  }
1262
1269
  getBooleanValueConverter() {
1263
1270
  return {
@@ -1349,20 +1356,20 @@ function de(y, n) {
1349
1356
  }
1350
1357
  return { getPropsConfig: t };
1351
1358
  }
1352
- const S = /* @__PURE__ */ _({
1359
+ const S = /* @__PURE__ */ J({
1353
1360
  name: "FTimePickerDesign",
1354
- props: te,
1361
+ props: ie,
1355
1362
  emits: ["datePicked", "update:modelValue"],
1356
1363
  setup(y, n) {
1357
- const e = '<span class="f-icon f-icon-timepicker"></span>', t = x(y.modelValue), i = x(), s = x(), r = T("designer-host-service"), a = T("design-item-context"), l = de(a, r), p = K(s, a, l);
1358
- J(() => {
1364
+ const e = '<span class="f-icon f-icon-timepicker"></span>', t = x(y.modelValue), i = x(), s = x(), r = T("designer-host-service"), c = T("design-item-context"), l = de(c, r), p = D(s, c, l);
1365
+ Q(() => {
1359
1366
  s.value.componentInstance = p;
1360
1367
  }), n.expose(p.value);
1361
- function c() {
1368
+ function a() {
1362
1369
  }
1363
1370
  return () => P("div", {
1364
1371
  ref: s
1365
- }, [P(Y, {
1372
+ }, [P(Z, {
1366
1373
  ref: i,
1367
1374
  modelValue: t.value,
1368
1375
  "onUpdate:modelValue": (d) => t.value = d,
@@ -1372,11 +1379,11 @@ const S = /* @__PURE__ */ _({
1372
1379
  placeholder: y.placeholder,
1373
1380
  onClickButton: () => void 0
1374
1381
  }, {
1375
- default: () => [P(Q("f-time-picker-time-view"), null, null)]
1382
+ default: () => [P(Y("f-time-picker-time-view"), null, null)]
1376
1383
  })]);
1377
1384
  }
1378
1385
  }), ae = /* @__PURE__ */ new Map([
1379
- ["appearance", z]
1386
+ ["appearance", X]
1380
1387
  ]), ce = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/time-picker.schema.json", ue = "time-picker", me = "A Farris Input Component", ge = "object", fe = {
1381
1388
  id: {
1382
1389
  description: "The unique identifier for a time picker",
@@ -1494,15 +1501,15 @@ const S = /* @__PURE__ */ _({
1494
1501
  function Ce(y, n, e) {
1495
1502
  return n;
1496
1503
  }
1497
- const U = X(W, be, ae, Ce);
1504
+ const L = j(z, be, ae, Ce);
1498
1505
  S.register = (y, n, e, t) => {
1499
- y["time-picker"] = O, n["time-picker"] = U;
1506
+ y["time-picker"] = W, n["time-picker"] = L;
1500
1507
  };
1501
1508
  S.registerDesigner = (y, n, e) => {
1502
- y["time-picker"] = S, n["time-picker"] = U;
1509
+ y["time-picker"] = S, n["time-picker"] = L;
1503
1510
  };
1504
1511
  export {
1505
1512
  S as FTimePickerDesign,
1506
1513
  S as default,
1507
- U as propsResolver
1514
+ L as propsResolver
1508
1515
  };