@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1

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 (193) hide show
  1. package/components/avatar/index.esm.js +138 -1526
  2. package/components/avatar/index.umd.cjs +1 -6
  3. package/components/button/index.css +1 -1
  4. package/components/button/index.esm.js +15951 -15410
  5. package/components/button/index.umd.cjs +27 -27
  6. package/components/calendar/index.esm.js +269 -255
  7. package/components/calendar/index.umd.cjs +3 -3
  8. package/components/collection-property-editor/index.esm.js +243 -229
  9. package/components/collection-property-editor/index.umd.cjs +2 -2
  10. package/components/combo-list/index.esm.js +32 -32
  11. package/components/combo-list/index.umd.cjs +1 -1
  12. package/components/comment/index.esm.js +473 -456
  13. package/components/comment/index.umd.cjs +6 -6
  14. package/components/component/index.css +1 -1
  15. package/components/component/index.esm.js +2503 -2239
  16. package/components/component/index.umd.cjs +2 -2
  17. package/components/condition/index.esm.js +1064 -954
  18. package/components/condition/index.umd.cjs +2 -2
  19. package/components/data-grid/index.esm.js +1 -1
  20. package/components/data-grid/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.css +1 -1
  22. package/components/designer-canvas/index.esm.js +3894 -3058
  23. package/components/designer-canvas/index.umd.cjs +1 -1
  24. package/components/drawer/index.esm.js +91 -77
  25. package/components/drawer/index.umd.cjs +2 -2
  26. package/components/dynamic-form/index.esm.js +220 -215
  27. package/components/dynamic-form/index.umd.cjs +1 -1
  28. package/components/dynamic-resolver/index.esm.js +145 -131
  29. package/components/dynamic-resolver/index.umd.cjs +2 -2
  30. package/components/dynamic-view/index.esm.js +336 -329
  31. package/components/dynamic-view/index.umd.cjs +1 -1
  32. package/components/events-editor/index.esm.js +1611 -1536
  33. package/components/events-editor/index.umd.cjs +3 -3
  34. package/components/expression-editor/index.esm.js +219 -219
  35. package/components/expression-editor/index.umd.cjs +2 -2
  36. package/components/external-container/index.esm.js +179 -178
  37. package/components/external-container/index.umd.cjs +1 -1
  38. package/components/fieldset/index.esm.js +285 -221
  39. package/components/fieldset/index.umd.cjs +1 -1
  40. package/components/filter-bar/index.css +1 -0
  41. package/components/filter-bar/index.esm.js +1512 -1290
  42. package/components/filter-bar/index.umd.cjs +7 -7
  43. package/components/filter-condition-editor/index.esm.js +851 -831
  44. package/components/filter-condition-editor/index.umd.cjs +3 -3
  45. package/components/flow-canvas/index.esm.js +520 -501
  46. package/components/flow-canvas/index.umd.cjs +8 -8
  47. package/components/image/index.esm.js +101 -79
  48. package/components/image/index.umd.cjs +3 -3
  49. package/components/language-textbox/index.esm.js +330 -251
  50. package/components/language-textbox/index.umd.cjs +2 -2
  51. package/components/list-nav/index.esm.js +399 -313
  52. package/components/list-nav/index.umd.cjs +1 -1
  53. package/components/locale/index.esm.js +3 -0
  54. package/components/locale/index.umd.cjs +1 -1
  55. package/components/lookup/index.esm.js +997 -976
  56. package/components/lookup/index.umd.cjs +2 -2
  57. package/components/mapping-editor/index.esm.js +725 -705
  58. package/components/mapping-editor/index.umd.cjs +1 -1
  59. package/components/message-box/index.esm.js +542 -522
  60. package/components/message-box/index.umd.cjs +1 -1
  61. package/components/nav/index.esm.js +95 -308
  62. package/components/nav/index.umd.cjs +1 -1
  63. package/components/number-range/index.esm.js +115 -107
  64. package/components/number-range/index.umd.cjs +2 -2
  65. package/components/order/index.esm.js +56 -54
  66. package/components/order/index.umd.cjs +1 -1
  67. package/components/page-footer/index.esm.js +135 -123
  68. package/components/page-footer/index.umd.cjs +1 -1
  69. package/components/page-header/index.esm.js +266 -222
  70. package/components/page-header/index.umd.cjs +1 -1
  71. package/components/property-panel/index.esm.js +402 -375
  72. package/components/property-panel/index.umd.cjs +4 -4
  73. package/components/query-solution/index.esm.js +3171 -3061
  74. package/components/query-solution/index.umd.cjs +7 -7
  75. package/components/response-toolbar/index.esm.js +1 -1
  76. package/components/response-toolbar/index.umd.cjs +1 -1
  77. package/components/schema-selector/index.esm.js +1620 -1608
  78. package/components/schema-selector/index.umd.cjs +5 -5
  79. package/components/scroll-navbar/index.esm.js +150 -136
  80. package/components/scroll-navbar/index.umd.cjs +2 -2
  81. package/components/section/index.esm.js +323 -311
  82. package/components/section/index.umd.cjs +2 -2
  83. package/components/sort-condition-editor/index.esm.js +850 -830
  84. package/components/sort-condition-editor/index.umd.cjs +3 -3
  85. package/components/step/index.esm.js +991 -224
  86. package/components/step/index.umd.cjs +1 -1
  87. package/components/tabs/index.esm.js +356 -334
  88. package/components/tabs/index.umd.cjs +1 -1
  89. package/components/wizard/index.esm.js +159 -162
  90. package/components/wizard/index.umd.cjs +1 -1
  91. package/designer/avatar/index.esm.js +1721 -0
  92. package/designer/avatar/index.umd.cjs +6 -0
  93. package/designer/button-edit/index.esm.js +2 -1
  94. package/designer/button-edit/index.umd.cjs +1 -1
  95. package/designer/data-grid/index.esm.js +693 -659
  96. package/designer/data-grid/index.umd.cjs +6 -6
  97. package/designer/data-view/index.esm.js +90 -78
  98. package/designer/data-view/index.umd.cjs +2 -2
  99. package/designer/date-picker/index.esm.js +203 -203
  100. package/designer/date-picker/index.umd.cjs +1 -1
  101. package/designer/drawer/index.esm.js +181 -167
  102. package/designer/drawer/index.umd.cjs +2 -2
  103. package/designer/dynamic-form/index.esm.js +228 -206
  104. package/designer/dynamic-form/index.umd.cjs +2 -2
  105. package/designer/farris-designer.all.esm.js +10014 -9692
  106. package/designer/farris-designer.all.umd.cjs +18 -18
  107. package/designer/index.css +1 -1
  108. package/designer/input-group/index.esm.js +15 -15
  109. package/designer/input-group/index.umd.cjs +1 -1
  110. package/designer/nav/index.esm.js +1719 -0
  111. package/designer/nav/index.umd.cjs +6 -0
  112. package/designer/number-spinner/index.esm.js +8 -7
  113. package/designer/number-spinner/index.umd.cjs +1 -1
  114. package/designer/radio-group/index.esm.js +133 -125
  115. package/designer/radio-group/index.umd.cjs +2 -2
  116. package/designer/response-toolbar/index.esm.js +864 -863
  117. package/designer/response-toolbar/index.umd.cjs +1 -1
  118. package/designer/section/index.esm.js +245 -183
  119. package/designer/section/index.umd.cjs +1 -1
  120. package/designer/tabs/index.css +1 -1
  121. package/designer/tabs/index.esm.js +3667 -2810
  122. package/designer/tabs/index.umd.cjs +2 -2
  123. package/designer/time-picker/index.esm.js +26 -17
  124. package/designer/time-picker/index.umd.cjs +2 -2
  125. package/designer/tree-grid/index.esm.js +69 -37
  126. package/designer/tree-grid/index.umd.cjs +1 -1
  127. package/designer/wizard/index.esm.js +110 -110
  128. package/designer/wizard/index.umd.cjs +3 -3
  129. package/farris.all.esm.js +39993 -39089
  130. package/farris.all.umd.cjs +36 -36
  131. package/index.css +1 -1
  132. package/locales/filter-bar/ui/en.json +1 -0
  133. package/locales/filter-bar/ui/zh-CHS.json +1 -0
  134. package/locales/filter-bar/ui/zh-CHT.json +1 -0
  135. package/locales/ui/en.json +1 -0
  136. package/locales/ui/zh-CHS.json +1 -0
  137. package/locales/ui/zh-CHT.json +1 -0
  138. package/package.json +1 -1
  139. package/types/avatar/designer.d.ts +28 -0
  140. package/types/avatar/index.d.ts +0 -15
  141. package/types/avatar/src/composition/types.d.ts +3 -0
  142. package/types/avatar/src/composition/use-file.d.ts +19 -0
  143. package/types/avatar/src/composition/use-image.d.ts +1 -1
  144. package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
  145. package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
  146. package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
  147. package/types/components.d.ts +3 -0
  148. package/types/condition/index.d.ts +18 -6
  149. package/types/condition/src/condition-fields.component.d.ts +9 -3
  150. package/types/condition/src/condition-fields.design.component.d.ts +9 -3
  151. package/types/condition/src/condition-list.component.d.ts +9 -3
  152. package/types/condition/src/condition.props.d.ts +11 -0
  153. package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
  154. package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
  155. package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
  156. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
  157. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
  158. package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
  159. package/types/dynamic-view/src/components/maps.d.ts +130 -4
  160. package/types/filter-bar/src/composition/types.d.ts +2 -0
  161. package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
  162. package/types/filter-bar/src/locale/locale.d.ts +2 -1
  163. package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
  164. package/types/language-textbox/index.d.ts +65 -2
  165. package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
  166. package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
  167. package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
  168. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  169. package/types/lookup/src/composition/use-compat.d.ts +28 -0
  170. package/types/lookup/src/composition/use-state.d.ts +1 -0
  171. package/types/message-box/src/message-box.service.d.ts +2 -1
  172. package/types/nav/designer.d.ts +28 -0
  173. package/types/nav/index.d.ts +24 -20
  174. package/types/nav/src/designer/nav.design.props.d.ts +29 -0
  175. package/types/nav/src/designer/use-design-rules.d.ts +3 -0
  176. package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
  177. package/types/nav/src/schema/schema-mapper.d.ts +4 -0
  178. package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
  179. package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
  180. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
  182. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
  183. package/types/section/src/designer/section.design.props.d.ts +4 -0
  184. package/types/section/src/property-config/section.property-config.d.ts +39 -0
  185. package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
  186. package/types/step/src/designer/use-designer-rules.d.ts +3 -0
  187. package/types/step/src/designer/use-step-creator.d.ts +6 -0
  188. package/types/step/src/property-config/step.property-config.d.ts +15 -0
  189. package/types/step/src/schema/schema-resolver.d.ts +2 -1
  190. package/types/tabs/src/composition/types.d.ts +4 -0
  191. package/types/tabs/src/tabs.props.d.ts +6 -0
  192. package/types/tooltip/index.d.ts +3 -3
  193. package/types/tooltip/src/tooltip.component.d.ts +2 -2
@@ -1,58 +1,58 @@
1
- var $e = Object.defineProperty;
2
- var Re = (i, t, e) => t in i ? $e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var S = (i, t, e) => Re(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { ref as w, computed as R, createVNode as b, defineComponent as Q, inject as _, onMounted as K, mergeProps as je, createTextVNode as z, Fragment as te, Teleport as qe, nextTick as ie, provide as ce, watch as ue, onUnmounted as fe } from "vue";
5
- import { resolveAppearance as We, getSchemaByType as se, createPropsResolver as ze } from "../dynamic-resolver/index.esm.js";
6
- import { DgControl as g, canvasChanged as Z, refreshCanvas as Ge, useDesignerComponent as De } from "../designer-canvas/index.esm.js";
7
- import { useGuid as le, getMaxZIndex as Qe, getCustomStyle as pe, FormSchemaEntityField$Type as ae, FormSchemaEntityFieldType$Type as _e } from "../common/index.esm.js";
8
- import { useConditionValue as He, useConditionUtils as ne } from "../condition/index.esm.js";
9
- import { useCondition as Xe, useSolutionUtils as me } from "../query-solution/index.esm.js";
10
- import { FNotifyService as Ze } from "../notify/index.esm.js";
11
- import { LocaleService as ge } from "../locale/index.esm.js";
12
- import { cloneDeep as H, isPlainObject as de } from "lodash-es";
13
- import { FDynamicFormGroup as Je, useTypeResolver as ve } from "../dynamic-form/index.esm.js";
14
- import { radioGroupProps as Ye } from "../radio-group/index.esm.js";
15
- import { useDataSource as Ke, FComboListContainer as et } from "../combo-list/index.esm.js";
16
- import { DgControl as tt } from "../designer-canvas/index.esm.js/";
17
- const he = /* @__PURE__ */ new Map([
18
- ["appearance", We]
1
+ var We = Object.defineProperty;
2
+ var qe = (t, i, e) => i in t ? We(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
+ var E = (t, i, e) => qe(t, typeof i != "symbol" ? i + "" : i, e);
4
+ import { ref as F, computed as W, createVNode as y, defineComponent as Q, inject as X, onMounted as ee, mergeProps as je, createTextVNode as j, Fragment as ie, Teleport as ze, nextTick as ne, provide as me, watch as ge, onUnmounted as ve } from "vue";
5
+ import { resolveAppearance as Ge, getSchemaByType as ae, createPropsResolver as De } from "../dynamic-resolver/index.esm.js";
6
+ import { DgControl as v, canvasChanged as J, refreshCanvas as He, useDesignerComponent as Qe } from "../designer-canvas/index.esm.js";
7
+ import { useGuid as de, getMaxZIndex as _e, getCustomClass as Xe, getCustomStyle as he, FormSchemaEntityField$Type as ce, FormSchemaEntityFieldType$Type as Ze } from "../common/index.esm.js";
8
+ import { useConditionValue as Je, useConditionUtils as re, FConditionFields as ue, FConditionFieldsDesign as fe } from "../condition/index.esm.js";
9
+ import { useCondition as Ye, useSolutionUtils as ye } from "../query-solution/index.esm.js";
10
+ import { FNotifyService as Ke } from "../notify/index.esm.js";
11
+ import { LocaleService as oe } from "../locale/index.esm.js";
12
+ import { cloneDeep as Z, isPlainObject as pe } from "lodash-es";
13
+ import { FDynamicFormGroup as et, useTypeResolver as be } from "../dynamic-form/index.esm.js";
14
+ import { radioGroupProps as tt } from "../radio-group/index.esm.js";
15
+ import { useDataSource as it, FComboListContainer as nt } from "../combo-list/index.esm.js";
16
+ import { DgControl as rt } from "../designer-canvas/index.esm.js/";
17
+ const Ce = /* @__PURE__ */ new Map([
18
+ ["appearance", Ge]
19
19
  ]);
20
- function it(i, t) {
21
- const e = t == null ? void 0 : t.formSchemaUtils, n = i.parentComponentInstance, r = "54bddc89-5f7e-4b91-9c45-80dd6606cfe9";
22
- function s() {
23
- const c = se(g["content-container"].type), u = se(g["filter-bar"].type);
24
- if (!c || !u)
20
+ function ot(t, i) {
21
+ const e = i == null ? void 0 : i.formSchemaUtils, n = t.parentComponentInstance, r = "54bddc89-5f7e-4b91-9c45-80dd6606cfe9";
22
+ function l() {
23
+ const u = ae(v["content-container"].type), f = ae(v["filter-bar"].type);
24
+ if (!u || !f)
25
25
  return;
26
26
  const o = Math.random().toString(36).substr(2, 4);
27
- Object.assign(c, {
27
+ Object.assign(u, {
28
28
  id: "filter-container-" + o,
29
29
  appearance: {
30
30
  class: "f-filter-container"
31
31
  },
32
- contents: [u]
33
- }), Object.assign(u, {
32
+ contents: [f]
33
+ }), Object.assign(f, {
34
34
  id: "filter-" + o,
35
35
  fields: []
36
36
  });
37
- const d = n.belongedComponentId, v = e.getViewModelIdByComponentId(d), f = e.getViewModelById(v);
38
- return f != null && f.states && (f.states.find((p) => p.code === "originalFilterConditionList") || f.states.push(
37
+ const c = n.belongedComponentId, g = e.getViewModelIdByComponentId(c), d = e.getViewModelById(g);
38
+ return d != null && d.states && (d.states.find((p) => p.code === "originalFilterConditionList") || d.states.push(
39
39
  {
40
- id: le().guid(),
40
+ id: de().guid(),
41
41
  category: "locale",
42
42
  code: "originalFilterConditionList",
43
43
  name: "筛选条过滤条件",
44
44
  type: "String"
45
45
  }
46
- )), { filterBar: u, filterBarContainer: c };
46
+ )), { filterBar: f, filterBarContainer: u };
47
47
  }
48
- function l() {
49
- const c = e.getViewModelIdByComponentId(n.belongedComponentId), u = e.getViewModelById(c);
48
+ function s() {
49
+ const u = e.getViewModelIdByComponentId(n.belongedComponentId), f = e.getViewModelById(u);
50
50
  let o;
51
- if (u && u.commands) {
52
- if (o = u.commands.find((d) => d.handlerName === "Filter" && d.cmpId === r), !o)
51
+ if (f && f.commands) {
52
+ if (o = f.commands.find((c) => c.handlerName === "Filter" && c.cmpId === r), !o)
53
53
  o = {
54
- id: le().guid(),
55
- code: `${u.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
54
+ id: de().guid(),
55
+ code: `${f.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
56
56
  name: "过滤并加载数据1",
57
57
  params: [
58
58
  {
@@ -70,48 +70,48 @@ function it(i, t) {
70
70
  ],
71
71
  handlerName: "Filter",
72
72
  cmpId: r
73
- }, u.commands.push(o);
73
+ }, f.commands.push(o);
74
74
  else if (o.params && o.params.length) {
75
- const d = o.params.find((v) => v.name === "filter");
76
- d && (d.value = `{UISTATE~/#{${n.belongedComponentId}}/originalFilterConditionList}`);
75
+ const c = o.params.find((g) => g.name === "filter");
76
+ c && (c.value = `{UISTATE~/#{${n.belongedComponentId}}/originalFilterConditionList}`);
77
77
  }
78
78
  }
79
79
  return { filterInGridViewModel: o };
80
80
  }
81
- function m(c) {
82
- const u = e.getCommands();
83
- if (!u)
81
+ function m(u) {
82
+ const f = e.getCommands();
83
+ if (!f)
84
84
  return;
85
- let o = u.find((d) => d.id === r);
85
+ let o = f.find((c) => c.id === r);
86
86
  o || (o = {
87
87
  id: r,
88
88
  path: "igix/Web/WebCmp/bo-webcmp/metadata/webcmd/data-commands",
89
89
  name: "LoadCommands.webcmd",
90
90
  refedHandlers: []
91
- }, e.getCommands().push(o)), c && !o.refedHandlers.find((d) => d.host === c.id) && o.refedHandlers.push(
91
+ }, e.getCommands().push(o)), u && !o.refedHandlers.find((c) => c.host === u.id) && o.refedHandlers.push(
92
92
  {
93
- host: c.id,
93
+ host: u.id,
94
94
  handler: "Filter"
95
95
  }
96
96
  );
97
97
  }
98
98
  function a() {
99
- const { filterBar: c, filterBarContainer: u } = s(), { filterInGridViewModel: o } = l();
100
- c && o && (c.onQuery = o.code), m(o);
101
- const d = t == null ? void 0 : t.useFormCommand;
102
- return d && d.checkCommands(), u;
99
+ const { filterBar: u, filterBarContainer: f } = l(), { filterInGridViewModel: o } = s();
100
+ u && o && (u.onQuery = o.code), m(o);
101
+ const c = i == null ? void 0 : i.useFormCommand;
102
+ return c && c.checkCommands(), f;
103
103
  }
104
104
  return { createFilterBar: a };
105
105
  }
106
- function be(i, t, e, n) {
106
+ function Fe(t, i, e, n) {
107
107
  if (e.parentComponentInstance && n) {
108
- const l = it(e, n).createFilterBar();
109
- if (l)
110
- return l;
108
+ const s = ot(e, n).createFilterBar();
109
+ if (s)
110
+ return s;
111
111
  }
112
- return t;
112
+ return i;
113
113
  }
114
- const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-design.gitee.io/filter-bar.schema.json", ot = "filter-bar", st = "A Farris Component", lt = "object", at = {
114
+ const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/filter-bar.schema.json", at = "filter-bar", dt = "A Farris Component", ct = "object", ut = {
115
115
  id: {
116
116
  description: "The unique identifier for filter-bar",
117
117
  type: "string"
@@ -154,22 +154,55 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
154
154
  resetText: {
155
155
  description: "",
156
156
  type: "string"
157
+ },
158
+ filterText: {
159
+ description: "",
160
+ type: "string"
161
+ },
162
+ filterType: {
163
+ description: "",
164
+ type: "string",
165
+ default: "light"
166
+ },
167
+ tileShowType: {
168
+ description: "",
169
+ type: "string",
170
+ default: "multiline"
171
+ },
172
+ liveSearch: {
173
+ description: "",
174
+ type: "boolean",
175
+ default: !0
176
+ },
177
+ allInOneAlign: {
178
+ description: "",
179
+ type: "string",
180
+ default: "left"
181
+ },
182
+ lineLabelWidth: {
183
+ description: "",
184
+ type: "string",
185
+ default: "fixed"
186
+ },
187
+ itemClass: {
188
+ description: "",
189
+ type: "string"
157
190
  }
158
- }, dt = [
191
+ }, ft = [
159
192
  "id",
160
193
  "type"
161
- ], ct = {
194
+ ], pt = {
162
195
  onQuery: "查询事件"
163
- }, ye = {
164
- $schema: nt,
165
- $id: rt,
166
- title: ot,
167
- description: st,
168
- type: lt,
169
- properties: at,
170
- required: dt,
171
- events: ct
172
- }, re = {
196
+ }, we = {
197
+ $schema: lt,
198
+ $id: st,
199
+ title: at,
200
+ description: dt,
201
+ type: ct,
202
+ properties: ut,
203
+ required: ft,
204
+ events: pt
205
+ }, le = {
173
206
  /** 指定已设的筛选条件列表 */
174
207
  defaultValues: {
175
208
  type: Array,
@@ -185,134 +218,165 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
185
218
  disabled: { type: Boolean, default: !1 },
186
219
  /** 清空值文字 */
187
220
  resetText: { type: String, default: "清空筛选" },
221
+ /** 筛选按钮文本 */
222
+ filterText: { type: String, default: "筛选" },
188
223
  customClass: { type: String, default: "" },
189
- customStyle: { type: String, default: "" }
190
- }, ut = ze(re, ye, he, be);
191
- function ee() {
192
- const { getLocaleValue: i } = ge;
224
+ customStyle: { type: String, default: "" },
225
+ // 筛选类型:轻量 | 平铺
226
+ filterType: { type: String, default: "light" },
227
+ // 平铺筛选的展示方式:单行展示、多行展示、所有在一行(会出现滚动条)
228
+ tileShowType: { type: String, default: "multiline" },
229
+ // 是否即时搜索
230
+ liveSearch: { type: Boolean, default: !0 },
231
+ // 是否左对齐--all-in-one时才生效
232
+ allInOneAlign: { type: String, default: "left" },
233
+ // 行展示方式下,标签是否自动宽度自动
234
+ lineLabelWidth: { type: String, default: "fixed" },
235
+ // 项的样式
236
+ itemClass: { type: String, default: "" }
237
+ }, mt = De(le, we, Ce, Fe);
238
+ function te() {
239
+ const { getLocaleValue: t } = oe;
193
240
  return {
194
- confirm: i("filterBar.confirm"),
195
- cancel: i("filterBar.cancel"),
196
- advancedFilter: i("filterBar.advancedFilter"),
197
- clearAll: i("filterBar.clearAll"),
198
- expand: i("filterBar.expand"),
199
- fold: i("filterBar.fold"),
200
- require: i("filterBar.require")
241
+ confirm: t("filterBar.confirm"),
242
+ cancel: t("filterBar.cancel"),
243
+ advancedFilter: t("filterBar.advancedFilter"),
244
+ clearAll: t("filterBar.clearAll"),
245
+ expand: t("filterBar.expand"),
246
+ fold: t("filterBar.fold"),
247
+ require: t("filterBar.require")
201
248
  };
202
249
  }
203
- function ft(i) {
204
- return ge.getRealPropertyValue(i, "清空筛选", "filterBar.reset");
250
+ function gt(t) {
251
+ return oe.getRealPropertyValue(t, "清空筛选", "filterBar.reset");
252
+ }
253
+ function vt(t) {
254
+ return oe.getRealPropertyValue(t, "筛选", "filterBar.filter");
205
255
  }
206
- function pt(i, t, e, n) {
207
- const r = w([]), s = w([]), l = w([]), m = w("");
208
- w(i.mode);
209
- const a = /* @__PURE__ */ new Map(), { createConditionValue: c } = He(), { convertToControls: u } = ne("filter-bar"), o = Xe(i, t), { getFilterConditions: d } = o, { fieldToCondition: v, judgeLoadNewValue: f } = me(), p = new Ze(), h = ee();
210
- let y = "[]";
211
- function C(I) {
212
- return !i.disabled && !I.value.isEmpty();
213
- }
214
- function V(I) {
215
- s.value = u(I), s.value.reduce((P, A) => (P.set(A.labelCode, A), P), a);
216
- }
217
- function B(I) {
218
- const P = Array.isArray(I) ? I : [];
219
- l.value = s.value.map((A) => {
220
- const E = P.find((x) => x.id === A.id);
221
- if (E) {
222
- const x = v(A, E.value);
223
- return f(x, A) && x.value.clear(), x;
256
+ function ht(t, i, e, n) {
257
+ const r = F([]), l = F([]), s = F([]), m = F("");
258
+ F(t.mode);
259
+ const a = /* @__PURE__ */ new Map(), { createConditionValue: u } = Je(), { convertToControls: f } = re("filter-bar"), o = Ye(t, i), { getFilterConditions: c } = o, { fieldToCondition: g, judgeLoadNewValue: d } = ye(), p = new Ke(), h = te();
260
+ let b = "[]";
261
+ function w(x) {
262
+ return !t.disabled && !x.value.isEmpty();
263
+ }
264
+ function O(x) {
265
+ l.value = f(x), l.value.reduce((P, C) => (P.set(C.labelCode, C), P), a);
266
+ }
267
+ function L(x) {
268
+ const P = Array.isArray(x) ? x : [];
269
+ s.value = l.value.map((C) => {
270
+ const B = P.find((S) => S.id === C.id);
271
+ if (B) {
272
+ const S = g(C, B.value);
273
+ return d(S, C) && S.value.clear(), S;
224
274
  }
225
- return v(A);
275
+ return g(C);
226
276
  });
227
277
  }
228
- function T(I) {
229
- l.value = l.value.filter((P) => P.id !== I.id), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), s.value = s.value.filter((P) => P.id !== I.id), t.emit("remove", I.fieldCode);
278
+ function T(x) {
279
+ s.value = s.value.filter((P) => P.id !== x.id), r.value = r.value.filter((P) => P.fieldCode !== x.fieldCode), l.value = l.value.filter((P) => P.id !== x.id), i.emit("remove", x.fieldCode);
230
280
  }
231
- function k() {
232
- var I;
233
- i.disabled ? e.value = !1 : e.value = ((I = l.value) == null ? void 0 : I.findIndex((P) => {
234
- var A;
235
- return P.value && !((A = P.value) != null && A.isEmpty());
281
+ function V() {
282
+ var x;
283
+ t.disabled ? e.value = !1 : t.filterType === "tile" ? e.value = !0 : e.value = ((x = s.value) == null ? void 0 : x.findIndex((P) => {
284
+ var C;
285
+ return P.value && !((C = P.value) != null && C.isEmpty());
236
286
  })) > -1;
237
287
  }
238
- function U(I, P = []) {
239
- const A = JSON.stringify(I || []);
240
- A !== y && (t.emit("conditionChange", I), y = A, P.length === 0 && t.emit("query", I));
241
- }
242
- function N() {
243
- var E;
244
- k();
245
- const I = [];
246
- (l.value || []).map((x) => {
247
- x.required && (!x.value || x.value.isEmpty()) && I.push(x.fieldName || "");
248
- });
249
- const P = (E = l.value) == null ? void 0 : E.filter((x) => {
250
- var $;
251
- return x.value && !(($ = x.value) != null && $.isEmpty());
288
+ function A() {
289
+ var P;
290
+ const x = (P = s.value) == null ? void 0 : P.filter((C) => {
291
+ var B;
292
+ return C.value && !((B = C.value) != null && B.isEmpty());
252
293
  });
253
- if (P.length && I.length > 0) {
254
- p.warning({ message: h.require.replace("[fields]", I.join(",")), position: "top-center" });
294
+ return c(x, l.value);
295
+ }
296
+ function R(x = !0) {
297
+ const P = A(), C = JSON.stringify(P || []);
298
+ C !== b && (x && i.emit("conditionChange", P), b = C);
299
+ }
300
+ function k() {
301
+ console.log("====================进入查询方法==================================");
302
+ const x = [];
303
+ if ((s.value || []).map((P) => {
304
+ P.required && (!P.value || P.value.isEmpty()) && x.push(P.fieldName || "");
305
+ }), x.length > 0) {
306
+ p.warning({ message: h.require.replace("[fields]", x.join(",")), position: "top-center" });
255
307
  return;
256
308
  }
257
- const A = d(P, s.value);
258
- U(A, I);
309
+ i.emit("query", A());
259
310
  }
260
- function M(I, P, A = !0) {
261
- V(I), B(P), A && N();
311
+ function I(x, P, C = !0) {
312
+ O(x), L(P), V(), C && (R(), k());
262
313
  }
263
- function F(I) {
264
- I.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), t.emit("clear", I.fieldCode), N();
314
+ function $(x) {
315
+ x.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== x.fieldCode), i.emit("clear", x.fieldCode), V(), R(), t.liveSearch && k();
265
316
  }
266
- function j() {
267
- l.value.forEach((I) => I.value.clear());
317
+ function N() {
318
+ s.value.forEach((x) => x.value.clear());
268
319
  }
269
- function O() {
270
- l.value.forEach((I) => {
271
- I.value.clear();
272
- }), t.emit("reset"), N(), n.resizeFilerBar();
320
+ function U() {
321
+ s.value.forEach((x) => {
322
+ x.value.clear();
323
+ }), i.emit("reset"), V(), R(), t.liveSearch && k(), n.resizeFilerBar();
273
324
  }
274
325
  return {
275
- clearAll: j,
276
- clearFilterItem: F,
326
+ clearAll: N,
327
+ clearFilterItem: $,
277
328
  currentFilterId: m,
278
- filterFields: s,
279
- filterItems: l,
329
+ filterFields: l,
330
+ filterItems: s,
280
331
  fieldMap: a,
281
- loadFilterItems: M,
332
+ loadFilterItems: I,
282
333
  removeFilterItem: T,
283
- reset: O,
284
- shouldShowClearButtonInFilterItem: C,
285
- handleQuery: N
334
+ reset: U,
335
+ shouldShowClearButtonInFilterItem: w,
336
+ handleQuery: k,
337
+ updateResetButtonState: V,
338
+ handleConditionChange: R
286
339
  };
287
340
  }
288
- function mt(i, t, e, n) {
289
- const r = w([]), s = ee(), l = w(s.advancedFilter), m = w(ft(i.resetText)), a = w(!1), {
290
- clearAll: c,
291
- reset: u,
341
+ function yt(t, i, e, n) {
342
+ const r = F([]), l = te(), s = F(l.advancedFilter), m = F(gt(t.resetText)), a = F(!1), {
343
+ clearAll: u,
344
+ reset: f,
292
345
  filterItems: o
293
346
  } = e;
294
- function d() {
347
+ function c() {
295
348
  r.value = o.value.filter((h) => h.isExtend);
296
349
  }
297
- d();
298
- const v = R(() => r.value && r.value.length > 0);
299
- function f(h) {
350
+ c();
351
+ const g = W(() => r.value && r.value.length > 0);
352
+ function d(h) {
300
353
  a.value = !0;
301
354
  }
302
355
  function p(h) {
303
- i.mode === "display-only" ? c() : u();
356
+ t.mode === "display-only" ? u() : f();
304
357
  }
305
- return () => b("div", {
306
- class: "f-filter-toolbars"
307
- }, [v.value && b("button", {
358
+ return () => y("div", {
359
+ class: "f-filter-toolbars",
360
+ style: "flex-shrink:0;"
361
+ }, [t.filterType === "light" && g.value && y("button", {
308
362
  class: "btn btn-link",
309
- onClick: (h) => f()
310
- }, [l.value]), n.value && b("button", {
363
+ onClick: (h) => d()
364
+ }, [s.value]), t.filterType === "light" && n.value && y("button", {
311
365
  class: "btn btn-link",
312
366
  onClick: (h) => p()
313
- }, [m.value])]);
367
+ }, [m.value]), t.filterType === "tile" && g.value && y("button", {
368
+ class: "btn btn-secondary filter-search-btn-reset",
369
+ onClick: (h) => d()
370
+ }, [y("span", {
371
+ class: "f-icon f-icon-filtrate"
372
+ }, null)]), t.filterType === "tile" && !t.liveSearch && y("button", {
373
+ class: "btn btn-secondary filter-search-btn-reset",
374
+ onClick: (h) => p()
375
+ }, [y("span", {
376
+ class: "f-icon f-icon-remove"
377
+ }, null)])]);
314
378
  }
315
- const gt = {
379
+ const bt = {
316
380
  filterItem: { type: Object, default: null },
317
381
  position: { type: Object, default: null },
318
382
  /**
@@ -321,457 +385,507 @@ const gt = {
321
385
  reference: {
322
386
  type: Object
323
387
  }
324
- }, vt = Object.assign({}, Ye), ht = /* @__PURE__ */ Q({
388
+ }, Ct = Object.assign({}, tt), Ft = /* @__PURE__ */ Q({
325
389
  name: "FFilterRadioGroup",
326
- props: vt,
390
+ props: Ct,
327
391
  emits: ["update:modelValue", "change"],
328
- setup(i, t) {
329
- const e = w(), {
392
+ setup(t, i) {
393
+ const e = F(), {
330
394
  dataSource: n,
331
395
  displayText: r,
332
- modelValue: s
333
- } = Ke(i);
334
- function l(m) {
335
- r.value = m.map((c) => c[i.textField]).join(i.separator);
396
+ modelValue: l
397
+ } = it(t);
398
+ function s(m) {
399
+ r.value = m.map((u) => u[t.textField]).join(t.separator);
336
400
  let a = "";
337
- m.length === 1 ? a = m[0][i.valueField] : a = m.map((c) => c[i.valueField]).join(i.separator), s.value !== a && (s.value = a, t.emit("update:modelValue", s.value), t.emit("change", s.value));
401
+ m.length === 1 ? a = m[0][t.valueField] : a = m.map((u) => u[t.valueField]).join(t.separator), l.value !== a && (l.value = a, i.emit("update:modelValue", l.value), i.emit("change", l.value));
338
402
  }
339
- return () => b(et, {
403
+ return () => y(nt, {
340
404
  style: "margin: -2px -15px;padding: 0;",
341
405
  ref: e,
342
- idField: i.valueField,
343
- valueField: i.valueField,
344
- textField: i.textField,
345
- titleField: i.titleField,
406
+ idField: t.valueField,
407
+ valueField: t.valueField,
408
+ textField: t.textField,
409
+ titleField: t.titleField,
346
410
  dataSource: n.value,
347
- selectedValues: s.value,
411
+ selectedValues: l.value,
348
412
  multiSelect: !1,
349
413
  enableSearch: !1,
350
414
  onSelectionChange: (m) => {
351
- l(m);
415
+ s(m);
352
416
  }
353
417
  }, null);
354
418
  }
355
- }), bt = /* @__PURE__ */ Q({
419
+ }), wt = /* @__PURE__ */ Q({
356
420
  name: "FFilterBarItemCondition",
357
- props: gt,
421
+ props: bt,
358
422
  emits: ["cancel", "confirm", "clearFilter"],
359
- setup(i, t) {
360
- const e = w(H(i.filterItem)), n = w(), r = ee(), s = w("0px"), l = w("0px"), m = w("0px"), a = w("auto"), c = R(() => ({
423
+ setup(t, i) {
424
+ const e = F(Z(t.filterItem)), n = F(), r = te(), l = F("0px"), s = F("0px"), m = F("0px"), a = F("auto"), u = W(() => ({
361
425
  left: a.value === "auto" ? "26px" : "auto",
362
426
  right: a.value
363
- })), u = R(() => ({
364
- left: s.value,
365
- top: l.value
366
- })), o = R(() => ({
427
+ })), f = W(() => ({
428
+ left: l.value,
429
+ top: s.value
430
+ })), o = W(() => ({
367
431
  width: m.value === "0px" ? null : m.value,
368
432
  maxWidth: m.value === "0px" ? null : m.value
369
- })), d = w(), {
370
- useFilterItemsComposition: v,
371
- resolveEditorProps: f
372
- } = _("useFilterItemsComposition"), {
433
+ })), c = F(), {
434
+ useFilterItemsComposition: g,
435
+ resolveEditorProps: d
436
+ } = X("useFilterItemsComposition"), {
373
437
  fieldMap: p
374
- } = v, {
438
+ } = g, {
375
439
  renderFieldConditionEditor: h,
376
- conditionChangeHandler: y
377
- } = ne("filter-bar"), C = w("");
378
- let V = !1, B = {};
379
- const T = w(!0);
380
- function k() {
381
- var q, X;
382
- if (!i.reference || !d.value)
440
+ conditionChangeHandler: b
441
+ } = re("filter-bar"), w = F("");
442
+ let O = !1, L = {};
443
+ const T = F(!0);
444
+ function V() {
445
+ var q, G;
446
+ if (!t.reference || !c.value)
383
447
  return;
384
- const E = (q = i.reference) == null ? void 0 : q.getBoundingClientRect();
385
- let x = (X = d.value) == null ? void 0 : X.getBoundingClientRect().width;
386
- const $ = document.body.clientWidth - E.x - 30, L = document.body.clientWidth - E.y - 30;
387
- x > $ && x > L && (x = Math.max($, L)), E.left > document.body.clientWidth - x - 20 ? (s.value = E.left + E.width - x + "px", l.value = E.top + E.height + "px", a.value = "26px") : (s.value = E.left + "px", l.value = E.top + E.height + "px", a.value = "auto"), m.value = x + "px";
448
+ const C = (q = t.reference) == null ? void 0 : q.getBoundingClientRect();
449
+ let B = (G = c.value) == null ? void 0 : G.getBoundingClientRect().width;
450
+ const S = document.body.clientWidth - C.x - 30, M = document.body.clientWidth - C.y - 30;
451
+ B > S && B > M && (B = Math.max(S, M)), C.left > document.body.clientWidth - B - 20 ? (l.value = C.left + C.width - B + "px", s.value = C.top + C.height + "px", a.value = "26px") : (l.value = C.left + "px", s.value = C.top + C.height + "px", a.value = "auto"), m.value = B + "px";
388
452
  }
389
- function U(E, x, $, L) {
390
- V = !0, B = {
391
- value: x,
392
- editor: $,
393
- option: L
453
+ function A(C, B, S, M) {
454
+ O = !0, L = {
455
+ value: B,
456
+ editor: S,
457
+ option: M
394
458
  };
395
459
  }
396
- function N() {
460
+ function R() {
397
461
  if (!n.value)
398
462
  return !1;
399
- const E = n.value.parentElement, x = Array.from(E.children);
400
- return x ? !!x.find((L) => !L || !L.classList ? !1 : L.classList.contains("popover") && L.style.visibility === "visible") : !1;
463
+ const C = n.value.parentElement, B = Array.from(C.children);
464
+ return B ? !!B.find((M) => !M || !M.classList ? !1 : M.classList.contains("popover") && M.style.visibility === "visible") : !1;
401
465
  }
402
- function M(E, x, $, L) {
403
- y(E, x, $, L), t.emit("confirm", e.value);
466
+ function k(C, B, S, M) {
467
+ b(C, B, S, M), i.emit("confirm", e.value);
404
468
  }
405
- function F() {
469
+ function I() {
406
470
  const {
407
- id: E,
408
- editor: x,
409
- needEmitChange: $
410
- } = h(p, e.value, U);
411
- if (C.value = "filter-panel--" + x.type, x.type === "radio-group") {
412
- const L = f(x.type, x);
413
- return T.value = !1, b(ht, je(L, {
471
+ id: C,
472
+ editor: B,
473
+ needEmitChange: S
474
+ } = h(p, e.value, A);
475
+ if (w.value = "filter-panel--" + B.type, B.type === "radio-group") {
476
+ const M = d(B.type, B);
477
+ return T.value = !1, y(Ft, je(M, {
414
478
  modelValue: e.value.value.value,
415
479
  "onUpdate:modelValue": (q) => e.value.value.value = q,
416
480
  onChange: (q) => {
417
- M(e.value, q, x);
481
+ k(e.value, q, B);
418
482
  }
419
483
  }), {
420
- default: () => [z(" ")]
484
+ default: () => [j(" ")]
421
485
  });
422
486
  }
423
- return b(Je, {
487
+ return y(et, {
424
488
  showLabelType: "force-none",
425
- id: E,
426
- key: E,
427
- editor: x,
489
+ id: C,
490
+ key: C,
491
+ editor: B,
428
492
  modelValue: e.value.value.value,
429
- "onUpdate:modelValue": (L) => e.value.value.value = L,
430
- onChange: (L, q) => {
431
- $ && U(e.value, L, x, q);
493
+ "onUpdate:modelValue": (M) => e.value.value.value = M,
494
+ onChange: (M, q) => {
495
+ S && A(e.value, M, B, q);
432
496
  }
433
497
  }, null);
434
498
  }
435
- K(() => {
436
- k();
499
+ ee(() => {
500
+ V();
437
501
  });
438
- function j(E) {
439
- const x = C.value.replace("filter-panel--", "");
440
- ["input", "radio-group", "switch"].findIndex(($) => $ === x) > -1 ? t.emit("cancel") : N() || t.emit("cancel");
502
+ function $(C) {
503
+ const B = w.value.replace("filter-panel--", "");
504
+ ["input", "radio-group", "switch"].findIndex((S) => S === B) > -1 ? i.emit("cancel") : R() || i.emit("cancel");
441
505
  }
442
- function O(E) {
443
- E.stopPropagation(), V && y(e.value, B.value, B.editor, B.option), t.emit("confirm", e.value);
506
+ function N(C) {
507
+ C.stopPropagation(), O && b(e.value, L.value, L.editor, L.option), i.emit("confirm", e.value);
444
508
  }
445
- function I(E) {
446
- e.value.value.clear(), E.stopPropagation(), t.emit("confirm", e.value);
509
+ function U(C) {
510
+ e.value.value.clear(), C.stopPropagation(), i.emit("confirm", e.value);
447
511
  }
448
- function P() {
449
- const E = Qe();
512
+ function x() {
513
+ const C = _e();
450
514
  return {
451
- zIndex: Math.max(E, 1050)
515
+ zIndex: Math.max(C, 1050)
452
516
  };
453
517
  }
454
- const A = P();
455
- return () => b("div", {
518
+ const P = x();
519
+ return () => y("div", {
456
520
  class: "f-filter-panel-wrapper can-close",
457
521
  ref: n,
458
- onClick: j,
522
+ onClick: $,
459
523
  style: {
460
- zIndex: A
524
+ zIndex: P
461
525
  }
462
- }, [b("div", {
463
- class: "f-filter-panel " + C.value,
464
- ref: d,
465
- style: u.value
466
- }, [b("div", {
526
+ }, [y("div", {
527
+ class: "f-filter-panel " + w.value,
528
+ ref: c,
529
+ style: f.value
530
+ }, [y("div", {
467
531
  class: "f-filter-panel-inner",
468
532
  style: o.value,
469
- onClick: (E) => E.stopPropagation()
470
- }, [b("div", {
533
+ onClick: (C) => C.stopPropagation()
534
+ }, [y("div", {
471
535
  class: "f-filter-panel-arrow",
472
- style: c.value
473
- }, null), F(), T.value && b("div", {
536
+ style: u.value
537
+ }, null), I(), T.value && y("div", {
474
538
  class: "f-filter-panel-footer"
475
- }, [b("div", {
539
+ }, [y("div", {
476
540
  class: "filter-panel-clear"
477
- }, [b("button", {
541
+ }, [y("button", {
478
542
  class: "btn btn-link",
479
- onClick: I,
543
+ onClick: U,
480
544
  style: "padding-left:0;"
481
- }, [r.clearAll])]), b("div", {
545
+ }, [r.clearAll])]), y("div", {
482
546
  class: "filter-panel-btns"
483
- }, [b("button", {
547
+ }, [y("button", {
484
548
  class: "btn btn-secondary can-close",
485
- onClick: j
486
- }, [r.cancel]), b("button", {
549
+ onClick: $
550
+ }, [r.cancel]), y("button", {
487
551
  class: "filter-panel-submit btn btn-primary",
488
- onClick: O
552
+ onClick: N
489
553
  }, [r.confirm])])])])])]);
490
554
  }
491
- }), Ce = {
555
+ }), xe = {
492
556
  filterItem: { type: Object, default: null },
493
- disabled: { type: Boolean, default: !1 }
494
- }, yt = /* @__PURE__ */ Q({
557
+ disabled: { type: Boolean, default: !1 },
558
+ customClass: { type: String, default: "" }
559
+ }, xt = /* @__PURE__ */ Q({
495
560
  name: "FFilterBarItem",
496
- props: Ce,
561
+ props: xe,
497
562
  emits: ["confirm"],
498
- setup(i, t) {
499
- const e = w(i.filterItem), {
563
+ setup(t, i) {
564
+ const e = F(t.filterItem), {
500
565
  useFilterItemsComposition: n
501
- } = _("useFilterItemsComposition"), {
566
+ } = X("useFilterItemsComposition"), {
502
567
  clearFilterItem: r,
503
- currentFilterId: s,
504
- removeFilterItem: l,
568
+ currentFilterId: l,
569
+ removeFilterItem: s,
505
570
  shouldShowClearButtonInFilterItem: m
506
- } = n, a = w(!1), c = w(!1), u = w(), o = w(""), d = w(), v = function() {
507
- return {
571
+ } = n, a = F(!1), u = F(!1), f = F(), o = F(""), c = F(), g = function() {
572
+ const T = {
508
573
  "f-filter-item": !0,
509
- "f-state-disabled": i.disabled,
574
+ "f-state-disabled": t.disabled,
510
575
  "f-filter-item-actived": !e.value.value.isEmpty(),
511
576
  // 'f-filter-item-last': index === filterItems.value.length - 1,
512
- "f-filter-item-edit": e.value.id === s.value || a.value
577
+ "f-filter-item-edit": e.value.id === l.value || a.value
513
578
  };
579
+ return Xe(T, t.customClass);
514
580
  };
515
- R(() => !i.disabled && i.mode === "editable");
516
- function f(T) {
517
- i.disabled || (i.mode === "display-only" ? l(e.value) : r(e.value));
581
+ W(() => !t.disabled && t.mode === "editable");
582
+ function d(T) {
583
+ t.disabled || (t.mode === "display-only" ? s(e.value) : r(e.value));
518
584
  }
519
585
  function p(T) {
520
- i.disabled || (a.value = !0);
586
+ t.disabled || (a.value = !0);
521
587
  }
522
588
  function h() {
523
589
  a.value = !1;
524
590
  }
525
- function y() {
526
- d.value && d.value.scrollWidth > d.value.clientWidth ? o.value = d.value.innerHTML : o.value = "";
591
+ function b() {
592
+ c.value && c.value.scrollWidth > c.value.clientWidth ? o.value = c.value.innerHTML : o.value = "";
527
593
  }
528
- function C(T) {
529
- a.value = !1, e.value.value = T.value, t.emit("confirm", T), ie(() => {
530
- y();
594
+ function w(T) {
595
+ a.value = !1, e.value.value = T.value, i.emit("confirm", T), ne(() => {
596
+ b();
531
597
  });
532
598
  }
533
- function V() {
534
- c.value = i.disabled ? !1 : m(e.value);
599
+ function O() {
600
+ u.value = t.disabled ? !1 : m(e.value);
535
601
  }
536
- function B() {
537
- c.value = !1;
602
+ function L() {
603
+ u.value = !1;
538
604
  }
539
- return K(() => {
540
- y();
541
- }), () => b("div", {
605
+ return ee(() => {
606
+ b();
607
+ }), () => y("div", {
542
608
  key: e.value.id,
543
609
  id: e.value.id,
544
- class: v(),
545
- onMouseenter: () => V(),
546
- onMouseleave: () => B()
547
- }, [b("div", {
610
+ class: g(),
611
+ onMouseenter: () => O(),
612
+ onMouseleave: () => L()
613
+ }, [y("div", {
548
614
  class: "f-filter-item-inner",
549
- ref: u,
615
+ ref: f,
550
616
  onClick: (T) => p()
551
- }, [e.value.required && b("span", {
617
+ }, [e.value.required && y("span", {
552
618
  class: "f-filter-item-required text-danger"
553
- }, [z("*")]), b("span", {
619
+ }, [j("*")]), y("span", {
554
620
  class: "f-filter-item-text"
555
- }, [e.value.fieldName]), !e.value.value.isEmpty() && b(te, null, [b("span", {
621
+ }, [e.value.fieldName]), !e.value.value.isEmpty() && y(ie, null, [y("span", {
556
622
  class: "f-filter-item-tip"
557
- }, [z(":")]), b("span", {
623
+ }, [j(":")]), y("span", {
558
624
  class: "f-filter-item-content",
559
- ref: d,
625
+ ref: c,
560
626
  title: o.value
561
- }, [e.value.value.getDisplayText()])]), !i.disabled && b("span", {
627
+ }, [e.value.value.getDisplayText()])]), !t.disabled && y("span", {
562
628
  class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
563
- }, null)]), c.value && b("span", {
629
+ }, null)]), u.value && y("span", {
564
630
  class: "mr-3 f-filter-item-clear",
565
- onClick: (T) => f()
566
- }, [b("span", {
631
+ onClick: (T) => d()
632
+ }, [y("span", {
567
633
  class: "f-icon f-icon-close-circle"
568
- }, null)]), a.value && b(qe, {
634
+ }, null)]), a.value && y(ze, {
569
635
  to: "body"
570
636
  }, {
571
- default: () => [b(bt, {
637
+ default: () => [y(wt, {
572
638
  filterItem: e.value,
573
- reference: u.value,
574
- onConfirm: C,
639
+ reference: f.value,
640
+ onConfirm: w,
575
641
  onCancel: h
576
642
  }, null)]
577
643
  })]);
578
644
  }
579
645
  });
580
- function Fe(i, t) {
581
- const e = w(null), n = 15;
646
+ function Ie(t, i) {
647
+ const e = F(null), n = 15;
582
648
  let r = 0;
583
- function s(a = -1, c = -1) {
584
- var f;
585
- if (!i.value)
649
+ function l(a = -1, u = -1) {
650
+ var d;
651
+ if (!t.value)
586
652
  return;
587
- const u = (f = i.value) == null ? void 0 : f.querySelector(".f-filter-list");
588
- if (!u)
653
+ const f = (d = t.value) == null ? void 0 : d.querySelector(".f-filter-list");
654
+ if (!f)
589
655
  return;
590
- const o = u.children;
591
- if (!o || o.length === 0 || (a < 0 && (a = i.value.clientWidth), r = c < 0 ? r : c, Math.abs(a - r) < n))
656
+ const o = f.children;
657
+ if (!o || o.length === 0 || (a < 0 && (a = t.value.clientWidth), r = u < 0 ? r : u, Math.abs(a - r) < n))
592
658
  return;
593
659
  Array.from(o).forEach((p) => {
594
660
  p.style.display = "flex";
595
- }), t.value = u.clientWidth < u.scrollWidth;
596
- let d = !1, v = 0;
661
+ }), i.value = f.clientWidth < f.scrollWidth;
662
+ let c = !1, g = 0;
597
663
  for (let p = 0; p < o.length; p++) {
598
- const h = o[p], y = Math.ceil(h.offsetWidth + (parseFloat(getComputedStyle(h).marginRight) || 0) + parseFloat(getComputedStyle(h).marginLeft));
599
- !d && v + y <= a ? v += y : (h.style.display = "none", d = !0);
664
+ const h = o[p], b = Math.ceil(h.offsetWidth + (parseFloat(getComputedStyle(h).marginRight) || 0) + parseFloat(getComputedStyle(h).marginLeft));
665
+ !c && g + b <= a ? g += b : (h.style.display = "none", c = !0);
600
666
  }
601
667
  r = a;
602
668
  }
603
- function l() {
604
- var c, u;
605
- if (!i.value)
669
+ function s() {
670
+ var u, f;
671
+ if (!t.value)
606
672
  return;
607
- (c = e.value) == null || c.unobserve(i.value);
608
- const a = ((u = i.value.querySelector(".f-filter-list")) == null ? void 0 : u.children) || [];
673
+ (u = e.value) == null || u.unobserve(t.value);
674
+ const a = ((f = t.value.querySelector(".f-filter-list")) == null ? void 0 : f.children) || [];
609
675
  Array.from(a).forEach((o) => {
610
676
  o.style.display = "flex";
611
677
  }), r = 0;
612
678
  }
613
679
  function m() {
614
- if (!i.value)
680
+ if (!t.value)
615
681
  return;
616
- const a = new ResizeObserver((c) => {
617
- const u = c[0].contentRect.width;
618
- s(u);
682
+ const a = new ResizeObserver((u) => {
683
+ const f = u[0].contentRect.width;
684
+ l(f);
619
685
  });
620
- return a.observe(i.value), e.value = a, a;
686
+ return a.observe(t.value), e.value = a, a;
621
687
  }
622
688
  return {
623
689
  setupWidthObserver: m,
624
- cancelWidthObserver: l,
625
- handleVisibleChildren: s
690
+ cancelWidthObserver: s,
691
+ handleVisibleChildren: l
626
692
  };
627
693
  }
628
- const D = /* @__PURE__ */ Q({
694
+ const H = /* @__PURE__ */ Q({
629
695
  name: "FFilterBar",
630
- props: re,
696
+ props: le,
631
697
  emits: ["clear", "remove", "reset", "conditionChange", "change", "query"],
632
- setup(i, t) {
633
- const e = w(!1), n = w(!1), r = w(null), s = w(!1), l = w(0), m = Fe(r, n), {
634
- cancelWidthObserver: a,
635
- setupWidthObserver: c,
636
- handleVisibleChildren: u
637
- } = m, o = {
698
+ setup(t, i) {
699
+ const e = F(!1), n = F(!1), r = F(null), l = F(!1), s = F(vt(t.filterText)), m = F(0), a = Ie(r, n), {
700
+ cancelWidthObserver: u,
701
+ setupWidthObserver: f,
702
+ handleVisibleChildren: o
703
+ } = a, c = {
638
704
  resizeFilerBar: () => {
639
- e.value || ie(() => {
640
- u(-1, 0);
705
+ e.value || ne(() => {
706
+ o(-1, 0);
641
707
  });
642
708
  }
643
- }, d = pt(i, t, s, o), {
644
- filterFields: v,
645
- filterItems: f,
646
- loadFilterItems: p,
647
- handleQuery: h
648
- } = d, {
649
- resolveEditorProps: y
650
- } = ve();
651
- ce("useFilterItemsComposition", {
652
- useFilterItemsComposition: d,
653
- resolveEditorProps: y
709
+ }, g = ht(t, i, l, c), {
710
+ filterFields: d,
711
+ filterItems: p,
712
+ loadFilterItems: h,
713
+ handleQuery: b,
714
+ updateResetButtonState: w,
715
+ handleConditionChange: O
716
+ } = g, {
717
+ resolveEditorProps: L
718
+ } = be();
719
+ me("useFilterItemsComposition", {
720
+ useFilterItemsComposition: g,
721
+ resolveEditorProps: L
654
722
  });
655
- const C = ee(), V = R(() => {
656
- const O = {
657
- display: v.value && v.value.length ? "" : "none"
723
+ const T = te(), V = W(() => {
724
+ const S = {
725
+ display: t.filterType === "tile" || d.value && d.value.length ? "" : "none"
658
726
  };
659
- return pe(O, i == null ? void 0 : i.customStyle);
660
- });
661
- p(i.fields, i.defaultValues, !!(i.defaultValues && i.defaultValues.length > 0)), ue([() => i.defaultValues, () => i.fields], ([O, I]) => {
662
- p(I, O), l.value++, o.resizeFilerBar();
663
- }), K(() => {
664
- c();
665
- }), fe(() => {
666
- a();
727
+ return he(S, t == null ? void 0 : t.customStyle);
728
+ }), A = F();
729
+ h(t.fields, t.defaultValues, !!(t.defaultValues && t.defaultValues.length > 0)), ge([() => t.defaultValues, () => t.fields], ([S, M]) => {
730
+ h(M, S), m.value++, c.resizeFilerBar();
731
+ }), ee(() => {
732
+ if (f(), t.filterType === "tile" && t.tileShowType === "all-in-one") {
733
+ const S = A.value.querySelector(".condition-div");
734
+ S.scrollWidth > S.clientWidth && (A.value.className = A.value.className + " all-in-one--item-fill");
735
+ }
736
+ }), ve(() => {
737
+ u();
667
738
  });
668
- const B = R(() => ({
739
+ const R = W(() => ({
669
740
  "f-filter-list": !0,
670
741
  "f-filter-list-extend": e.value
671
742
  // 'f-utils-overflow-hidden': true
672
- })), T = R(() => ({
743
+ })), k = W(() => ({
673
744
  "extend-btn-arrow": !0,
674
745
  "f-icon": !0,
675
746
  "f-icon-arrow-chevron-up": e.value,
676
747
  "f-icon-arrow-chevron-down": !e.value
677
- })), k = R(() => !e.value && n.value);
678
- function U() {
679
- e.value = !e.value, e.value ? a() : c();
748
+ })), I = W(() => !e.value && n.value);
749
+ function $() {
750
+ e.value = !e.value, e.value ? u() : f();
680
751
  }
681
- const N = mt(i, t, d, s);
682
- function M(O) {
683
- t.emit("change", O), h(), o.resizeFilerBar();
752
+ const N = yt(t, i, g, l);
753
+ function U(S, M = !0) {
754
+ i.emit("change", S), M && w(), O(), t.liveSearch && b(), M && c.resizeFilerBar();
684
755
  }
685
- function F() {
686
- return b("div", {
687
- class: B.value,
688
- key: i.id + "-main-" + l.value
689
- }, [f.value.map((O, I) => !O.isExtend && b(yt, {
690
- filterItem: O,
691
- onConfirm: M,
692
- disabled: i.disabled || O.disabled
756
+ function x() {
757
+ return y("div", {
758
+ class: R.value,
759
+ key: t.id + "-main-" + m.value
760
+ }, [p.value.map((S, M) => !S.isExtend && y(xt, {
761
+ filterItem: S,
762
+ onConfirm: U,
763
+ disabled: t.disabled || S.disabled
693
764
  }, null)), e.value && N()]);
694
765
  }
695
- function j() {
696
- return k.value && b("div", {
766
+ function P() {
767
+ return I.value && y("div", {
697
768
  class: "f-filter-list-ellipsis",
698
- onClick: (O) => U()
699
- }, [z("...")]);
769
+ onClick: (S) => $()
770
+ }, [j("...")]);
771
+ }
772
+ function C() {
773
+ O(), b();
774
+ }
775
+ function B() {
776
+ let S = "", M;
777
+ t.tileShowType !== "all-in-one" && (S = t.lineLabelWidth === "auto" ? " filter-item-wrap" : "", M = t.tileShowType === "single" ? "col-12" + S : S ? "col-12 col-md-6 col-xl-3 col-el-2" + S : void 0);
778
+ const q = t.tileShowType === "multiline";
779
+ return y("div", {
780
+ class: "f-list-filter d-flex list-filter--" + t.tileShowType + t.customClass,
781
+ style: V.value
782
+ }, [t.tileShowType !== "all-in-one" && y("div", {
783
+ class: "flex-fill"
784
+ }, [y(ue, {
785
+ fields: d.value,
786
+ conditions: p.value,
787
+ itemClass: M,
788
+ autoResponse: q,
789
+ onValueChange: (G, _) => U(_)
790
+ }, null), j(" ")]), t.tileShowType === "all-in-one" && y("div", {
791
+ class: "filter-inputs-main-basis-wrapper" + t.customClass,
792
+ ref: A,
793
+ style: V.value
794
+ }, [y(ue, {
795
+ style: "flex-wrap:nowrap!important;overflow-x:auto;",
796
+ fields: d.value,
797
+ customClass: t.allInOneAlign === "right" ? "justify-content-end" : "",
798
+ conditions: p.value,
799
+ itemClass: "filter-input-list filter-item-wrap",
800
+ autoResponse: !1,
801
+ onValueChange: (G, _) => U(_)
802
+ }, null)]), !t.liveSearch && y("div", {
803
+ class: "filter-search-btn filter-search-btn--filter",
804
+ onClick: C
805
+ }, [y("button", {
806
+ class: "btn btn-primary"
807
+ }, [s.value])]), N()]);
700
808
  }
701
- return () => b("div", {
702
- class: "f-filter-wrapper " + i.customClass,
809
+ return () => t.filterType === "light" ? y("div", {
810
+ class: "f-filter-wrapper " + t.customClass,
703
811
  style: V.value
704
- }, [b("div", {
812
+ }, [y("div", {
705
813
  class: "f-filter-wrapper-inner f-utils-fill"
706
- }, [b("div", {
814
+ }, [y("div", {
707
815
  class: "f-filter-main f-utils-fill"
708
- }, [b("div", {
816
+ }, [y("div", {
709
817
  class: "f-filter-list-wrapper flex-fill",
710
818
  ref: r
711
- }, [F()]), j(), !e.value && N()]), n.value && b("div", {
819
+ }, [x()]), P(), !e.value && N()]), !t.liveSearch && y("div", {
820
+ class: "filter-search-btn filter-search-btn--filter",
821
+ style: "margin:0 8px 0 0;",
822
+ onClick: C
823
+ }, [y("button", {
824
+ class: "btn btn-primary"
825
+ }, [s.value])]), n.value && y("div", {
712
826
  class: "f-filter-extend-btn"
713
- }, [b("button", {
827
+ }, [y("button", {
714
828
  class: "btn btn-link",
715
- onClick: U
716
- }, [b("span", {
829
+ onClick: $
830
+ }, [y("span", {
717
831
  class: "extend-btn-text"
718
- }, [e.value ? C.fold : C.expand]), b("span", {
719
- class: T.value
720
- }, null)])])])]);
832
+ }, [e.value ? T.fold : T.expand]), y("span", {
833
+ class: k.value
834
+ }, null)])])])]) : B();
721
835
  }
722
836
  });
723
- function Ct(i, t) {
724
- w([]);
725
- const e = w([]), n = w([]), r = w("");
726
- w(!1), w(i.mode);
727
- const s = /* @__PURE__ */ new Map(), { convertToControls: l } = ne("filter-bar"), { fieldToCondition: m } = me();
728
- function a(d) {
729
- return !d.value.isEmpty();
837
+ function It(t, i) {
838
+ F([]);
839
+ const e = F([]), n = F([]), r = F("");
840
+ F(!1), F(t.mode);
841
+ const l = /* @__PURE__ */ new Map(), { convertToControls: s } = re("filter-bar"), { fieldToCondition: m } = ye();
842
+ function a(c) {
843
+ return !c.value.isEmpty();
730
844
  }
731
- function c(d) {
732
- e.value = H(d), e.value.reduce((v, f) => (v.set(f.labelCode, f), v), s);
845
+ function u(c) {
846
+ e.value = Z(c), e.value.reduce((g, d) => (g.set(d.labelCode, d), g), l);
733
847
  }
734
- function u(d) {
735
- n.value = e.value.map((v) => m(v));
848
+ function f(c) {
849
+ n.value = e.value.map((g) => m(g));
736
850
  }
737
- function o(d, v) {
738
- c(d), u();
851
+ function o(c, g) {
852
+ u(c), f();
739
853
  }
740
- return o(i.fields), {
854
+ return o(t.fields), {
741
855
  currentFilterId: r,
742
856
  filterFields: e,
743
857
  filterItems: n,
744
- fieldMap: s,
858
+ fieldMap: l,
745
859
  loadFilterItems: o,
746
860
  shouldShowClearButtonInFilterItem: a
747
861
  };
748
862
  }
749
- function Ft(i, t, e) {
750
- const n = w([]), r = w("更多筛选"), {
751
- filterItems: s
863
+ function St(t, i, e) {
864
+ const n = F([]), r = F("更多筛选"), {
865
+ filterItems: l
752
866
  } = e;
753
- function l() {
754
- n.value = s.value.filter((a) => a.isExtend);
867
+ function s() {
868
+ n.value = l.value.filter((a) => a.isExtend);
755
869
  }
756
- l();
757
- const m = R(() => n.value && n.value.length > 0);
758
- return () => b("div", {
870
+ s();
871
+ const m = W(() => n.value && n.value.length > 0);
872
+ return () => y("div", {
759
873
  class: "f-filter-toolbars"
760
- }, [m.value && b("button", {
874
+ }, [m.value && y("button", {
761
875
  class: "btn btn-link"
762
876
  }, [r.value])]);
763
877
  }
764
- const wt = /* @__PURE__ */ Q({
878
+ const Tt = /* @__PURE__ */ Q({
765
879
  name: "FFilterBarItemDesign",
766
- props: Ce,
880
+ props: xe,
767
881
  emits: ["confirm"],
768
- setup(i, t) {
769
- const e = w(i.filterItem), {
882
+ setup(t, i) {
883
+ const e = F(t.filterItem), {
770
884
  useFilterItemsComposition: n
771
- } = _("useFilterItemsComposition"), {
885
+ } = X("useFilterItemsComposition"), {
772
886
  currentFilterId: r,
773
- shouldShowClearButtonInFilterItem: s
774
- } = n, l = w(i.disabled), m = function() {
887
+ shouldShowClearButtonInFilterItem: l
888
+ } = n, s = F(t.disabled), m = function() {
775
889
  return {
776
890
  "f-filter-item": !0,
777
891
  "f-filter-item-actived": !e.value.value.isEmpty(),
@@ -779,60 +893,60 @@ const wt = /* @__PURE__ */ Q({
779
893
  "f-filter-item-edit": e.value.id === r.value
780
894
  };
781
895
  };
782
- return () => b("div", {
896
+ return () => y("div", {
783
897
  key: e.value.id,
784
898
  id: e.value.id,
785
899
  class: m()
786
- }, [b("div", {
900
+ }, [y("div", {
787
901
  class: "f-filter-item-inner"
788
- }, [e.value.required && b("span", {
902
+ }, [e.value.required && y("span", {
789
903
  class: "f-filter-item-required text-danger"
790
- }, [z("*")]), b("span", {
904
+ }, [j("*")]), y("span", {
791
905
  class: "f-filter-item-text"
792
- }, [e.value.fieldName]), e.value.value.getDisplayText() && b(te, null, [b("span", {
906
+ }, [e.value.fieldName]), e.value.value.getDisplayText() && y(ie, null, [y("span", {
793
907
  class: "f-filter-item-tip"
794
- }, [z(":")]), b("span", {
908
+ }, [j(":")]), y("span", {
795
909
  class: "f-filter-item-content"
796
- }, [e.value.value.getDisplayText()])]), !l.value && b("span", {
910
+ }, [e.value.value.getDisplayText()])]), !s.value && y("span", {
797
911
  class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
798
- }, null)]), s(e.value) && b("span", {
912
+ }, null)]), l(e.value) && y("span", {
799
913
  class: "mr-3 f-filter-item-clear"
800
- }, [b("span", {
914
+ }, [y("span", {
801
915
  class: "f-icon f-icon-close-circle"
802
916
  }, null)])]);
803
917
  }
804
918
  });
805
- function It(i) {
806
- const { formSchemaUtils: t, formStateMachineUtils: e } = i;
807
- function n(a, c = "") {
919
+ function Et(t) {
920
+ const { formSchemaUtils: i, formStateMachineUtils: e } = t;
921
+ function n(a, u = "") {
808
922
  return {
809
- path: c + a.code,
923
+ path: u + a.code,
810
924
  field: a.id,
811
925
  fullPath: a.code
812
926
  };
813
927
  }
814
- function r(a, c = "") {
815
- const u = t.getViewModelById(a);
816
- return u ? u.states.map((o) => n(o, c)) : [];
817
- }
818
- function s(a) {
819
- const c = t.getRootViewModelId(), u = r(a);
820
- if (a === c)
821
- return u;
822
- const o = r(c, "root-component.");
823
- return [...u, ...o];
928
+ function r(a, u = "") {
929
+ const f = i.getViewModelById(a);
930
+ return f ? f.states.map((o) => n(o, u)) : [];
824
931
  }
825
932
  function l(a) {
933
+ const u = i.getRootViewModelId(), f = r(a);
934
+ if (a === u)
935
+ return f;
936
+ const o = r(u, "root-component.");
937
+ return [...f, ...o];
938
+ }
939
+ function s(a) {
826
940
  return a.binding && a.binding.path || a.id || "";
827
941
  }
828
942
  function m() {
829
943
  return e && e.getRenderStates() || [];
830
944
  }
831
- return { getVariables: s, getControlName: l, getStateMachines: m };
945
+ return { getVariables: l, getControlName: s, getStateMachines: m };
832
946
  }
833
- class we {
834
- constructor(t) {
835
- S(this, "sessionVariables", [
947
+ class Se {
948
+ constructor(i) {
949
+ E(this, "sessionVariables", [
836
950
  {
837
951
  key: "CurrentSysOrgName",
838
952
  name: "当前组织Name",
@@ -869,7 +983,7 @@ class we {
869
983
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
870
984
  }
871
985
  ]);
872
- S(this, "expressionNames", {
986
+ E(this, "expressionNames", {
873
987
  compute: "计算表达式",
874
988
  dependency: "依赖表达式",
875
989
  validate: "验证表达式",
@@ -878,94 +992,94 @@ class we {
878
992
  readonly: "只读表达式",
879
993
  required: "必填表达式"
880
994
  });
881
- S(this, "getExpressionConverter", (t, e) => ({
882
- convertFrom: (n, r, s, l) => {
883
- const m = s.getExpressionRuleValue(t, e || r);
995
+ E(this, "getExpressionConverter", (i, e) => ({
996
+ convertFrom: (n, r, l, s) => {
997
+ const m = l.getExpressionRuleValue(i, e || r);
884
998
  return m && m.value || "";
885
999
  },
886
- convertTo: (n, r, s, l, m) => {
1000
+ convertTo: (n, r, l, s, m) => {
887
1001
  var a;
888
- if (r === "dataPicking" && (s != null && s.target)) {
889
- const c = `${s.target}_dataPicking`;
890
- ((a = s.rules) == null ? void 0 : a.some(
891
- (o) => o.id === c && o.value
892
- )) ? n.dictPickingExpressionId = c : delete n.dictPickingExpressionId;
1002
+ if (r === "dataPicking" && (l != null && l.target)) {
1003
+ const u = `${l.target}_dataPicking`;
1004
+ ((a = l.rules) == null ? void 0 : a.some(
1005
+ (o) => o.id === u && o.value
1006
+ )) ? n.dictPickingExpressionId = u : delete n.dictPickingExpressionId;
893
1007
  }
894
- l.updateExpression(s);
1008
+ s.updateExpression(l);
895
1009
  }
896
1010
  }));
897
- this.formSchemaService = t;
1011
+ this.formSchemaService = i;
898
1012
  }
899
- getExpressionRule(t, e) {
1013
+ getExpressionRule(i, e) {
900
1014
  const n = this.formSchemaService.getExpressions();
901
1015
  if (!n)
902
1016
  return "";
903
- const r = n.find((l) => l.target === t);
1017
+ const r = n.find((s) => s.target === i);
904
1018
  if (!r)
905
1019
  return "";
906
- const s = r.rules.find((l) => l.type === e);
907
- return s || "";
1020
+ const l = r.rules.find((s) => s.type === e);
1021
+ return l || "";
908
1022
  }
909
1023
  // 获取上下文表单变量
910
1024
  getContextFormVariables() {
911
- const { module: t } = this.formSchemaService.getFormSchema();
912
- if (!t.viewmodels || t.viewmodels.length === 0)
1025
+ const { module: i } = this.formSchemaService.getFormSchema();
1026
+ if (!i.viewmodels || i.viewmodels.length === 0)
913
1027
  return [];
914
1028
  const e = this.formSchemaService.getRootViewModelId(), n = this.formSchemaService.getViewModelById(e);
915
1029
  if (!n || !n.states || n.states.length === 0)
916
1030
  return [];
917
1031
  const r = [];
918
- return n.states.filter((s) => s.category === "remote").forEach((s) => {
1032
+ return n.states.filter((l) => l.category === "remote").forEach((l) => {
919
1033
  r.push({
920
- key: s.code,
921
- name: s.name,
922
- description: s.name,
923
- category: s.category
1034
+ key: l.code,
1035
+ name: l.name,
1036
+ description: l.name,
1037
+ category: l.category
924
1038
  });
925
1039
  }), r;
926
1040
  }
927
- createTreeNode(t, e, n = "label") {
1041
+ createTreeNode(i, e, n = "label") {
928
1042
  return {
929
- id: t.id,
930
- name: t.name,
931
- bindingPath: t[n],
1043
+ id: i.id,
1044
+ name: i.name,
1045
+ bindingPath: i[n],
932
1046
  parents: e,
933
1047
  type: "field"
934
1048
  };
935
1049
  }
936
- buildEntityFieldsTreeData(t = null, e) {
1050
+ buildEntityFieldsTreeData(i = null, e) {
937
1051
  const n = [];
938
- return t == null || t.forEach((r) => {
1052
+ return i == null || i.forEach((r) => {
939
1053
  var m;
940
- const s = this.createTreeNode(r, e);
941
- let l = [];
942
- (m = r.type) != null && m.fields && (l = this.buildEntityFieldsTreeData(r.type.fields, [...e, r.label])), n.push({
943
- data: s,
944
- children: l,
1054
+ const l = this.createTreeNode(r, e);
1055
+ let s = [];
1056
+ (m = r.type) != null && m.fields && (s = this.buildEntityFieldsTreeData(r.type.fields, [...e, r.label])), n.push({
1057
+ data: l,
1058
+ children: s,
945
1059
  expanded: !0
946
1060
  });
947
1061
  }), n;
948
1062
  }
949
- buildChildEntityTreeData(t = null, e) {
1063
+ buildChildEntityTreeData(i = null, e) {
950
1064
  const n = [];
951
- return t == null || t.forEach((r) => {
952
- var a, c;
953
- const s = this.createTreeNode(r, e);
954
- s.type = "entity";
955
- const l = this.buildEntityFieldsTreeData((a = r.type) == null ? void 0 : a.fields, [...e, r.label]), m = this.buildChildEntityTreeData((c = r.type) == null ? void 0 : c.entities, [...e, r.label]);
956
- m != null && m.length && (l == null || l.push(...m)), n.push({
957
- data: s,
958
- children: l || [],
1065
+ return i == null || i.forEach((r) => {
1066
+ var a, u;
1067
+ const l = this.createTreeNode(r, e);
1068
+ l.type = "entity";
1069
+ const s = this.buildEntityFieldsTreeData((a = r.type) == null ? void 0 : a.fields, [...e, r.label]), m = this.buildChildEntityTreeData((u = r.type) == null ? void 0 : u.entities, [...e, r.label]);
1070
+ m != null && m.length && (s == null || s.push(...m)), n.push({
1071
+ data: l,
1072
+ children: s || [],
959
1073
  // 空值回退
960
1074
  expanded: !0
961
1075
  });
962
1076
  }), n;
963
1077
  }
964
1078
  getEntitiesTreeData() {
965
- const t = this.formSchemaService.getSchemaEntities();
966
- if (!(t != null && t.length))
1079
+ const i = this.formSchemaService.getSchemaEntities();
1080
+ if (!(i != null && i.length))
967
1081
  return [];
968
- const e = t[0];
1082
+ const e = i[0];
969
1083
  if (!(e != null && e.type))
970
1084
  return [];
971
1085
  const n = this.buildEntityFieldsTreeData(e.type.fields, [e.code]), r = this.buildChildEntityTreeData(e.type.entities, [e.code]);
@@ -994,150 +1108,150 @@ class we {
994
1108
  }
995
1109
  };
996
1110
  }
997
- onBeforeOpenExpression(t, e, n) {
998
- const r = n === "Field" ? t.binding.field : t.id, s = this.getExpressionRule(r, e), l = this.getEntitiesAndVariables(), m = {
999
- message: ["validate", "required", "dataPicking"].includes(e) && s ? s.message : "",
1000
- ...l
1111
+ onBeforeOpenExpression(i, e, n) {
1112
+ const r = n === "Field" ? i.binding.field : i.id, l = this.getExpressionRule(r, e), s = this.getEntitiesAndVariables(), m = {
1113
+ message: ["validate", "required", "dataPicking"].includes(e) && l ? l.message : "",
1114
+ ...s
1001
1115
  };
1002
- return s.messageType != null && (m.messageType = s.messageType), m;
1116
+ return l.messageType != null && (m.messageType = l.messageType), m;
1003
1117
  }
1004
- buildRule(t, e, n, r) {
1005
- const { expression: s, message: l, messageType: m } = e, a = {
1006
- id: `${t}_${n}`,
1118
+ buildRule(i, e, n, r) {
1119
+ const { expression: l, message: s, messageType: m } = e, a = {
1120
+ id: `${i}_${n}`,
1007
1121
  type: n,
1008
- value: s
1122
+ value: l
1009
1123
  };
1010
- return (n === "validate" || n === "dataPicking" || n === "required") && (a.message = l), n === "dataPicking" && (a.messageType = m), n === "validate" && r && (a.elementId = r), a;
1124
+ return (n === "validate" || n === "dataPicking" || n === "required") && (a.message = s), n === "dataPicking" && (a.messageType = m), n === "validate" && r && (a.elementId = r), a;
1011
1125
  }
1012
1126
  getExpressionData() {
1013
- const { expressions: t } = this.formSchemaService.getFormSchema().module;
1014
- return t || [];
1127
+ const { expressions: i } = this.formSchemaService.getFormSchema().module;
1128
+ return i || [];
1015
1129
  }
1016
- updateExpression(t, e, n, r) {
1017
- const s = e === "Field" ? t.binding.field : t.id, l = this.buildRule(s, n, r, t.type === "form-group" ? t.id : "");
1018
- let a = this.getExpressionData().find((u) => u.targetType === e && u.target === s);
1019
- const c = (u) => u.value.trim() === "";
1130
+ updateExpression(i, e, n, r) {
1131
+ const l = e === "Field" ? i.binding.field : i.id, s = this.buildRule(l, n, r, i.type === "form-group" ? i.id : "");
1132
+ let a = this.getExpressionData().find((f) => f.targetType === e && f.target === l);
1133
+ const u = (f) => f.value.trim() === "";
1020
1134
  if (a) {
1021
- const u = a.rules.find((o) => o.id === l.id);
1022
- if (u)
1023
- c(l) ? a.rules = a.rules.filter((o) => o.id !== l.id) : (Object.assign(u, l), r === "validate" && t.type === "form-group" && (u.elementId = t.id));
1135
+ const f = a.rules.find((o) => o.id === s.id);
1136
+ if (f)
1137
+ u(s) ? a.rules = a.rules.filter((o) => o.id !== s.id) : (Object.assign(f, s), r === "validate" && i.type === "form-group" && (f.elementId = i.id));
1024
1138
  else {
1025
- if (c(l))
1139
+ if (u(s))
1026
1140
  return null;
1027
- a.rules = a.rules || [], a.rules.push(l);
1141
+ a.rules = a.rules || [], a.rules.push(s);
1028
1142
  }
1029
1143
  } else {
1030
- if (c(l))
1144
+ if (u(s))
1031
1145
  return null;
1032
1146
  a = {
1033
- target: `${s}`,
1034
- rules: [l],
1147
+ target: `${l}`,
1148
+ rules: [s],
1035
1149
  targetType: e
1036
1150
  };
1037
1151
  }
1038
1152
  return a;
1039
1153
  }
1040
- getExpressionEditorOptions(t, e, n, r) {
1041
- return n.reduce((s, l) => {
1042
- var a, c;
1043
- const m = e === "Field" ? (a = t == null ? void 0 : t.binding) == null ? void 0 : a.field : t.id;
1044
- return s[l] = {
1045
- hide: e === "Field" ? !!((c = t == null ? void 0 : t.binding) != null && c.field) : !1,
1154
+ getExpressionEditorOptions(i, e, n, r) {
1155
+ return n.reduce((l, s) => {
1156
+ var a, u;
1157
+ const m = e === "Field" ? (a = i == null ? void 0 : i.binding) == null ? void 0 : a.field : i.id;
1158
+ return l[s] = {
1159
+ hide: e === "Field" ? !!((u = i == null ? void 0 : i.binding) != null && u.field) : !1,
1046
1160
  description: "",
1047
- title: this.expressionNames[l],
1161
+ title: this.expressionNames[s],
1048
1162
  type: "string",
1049
1163
  $converter: this.getExpressionConverter(m),
1050
1164
  refreshPanelAfterChanged: !0,
1051
1165
  editor: {
1052
1166
  type: "expression-editor",
1053
1167
  singleExpand: !1,
1054
- dialogTitle: `${this.expressionNames[l]}编辑器`,
1055
- showMessage: l === "validate" || l === "dataPicking" || l === "required",
1056
- showMessageType: l === "dataPicking",
1057
- beforeOpen: () => this.onBeforeOpenExpression(t, l, e),
1058
- onSubmitModal: (u) => {
1059
- const o = this.updateExpression(t, e, u, l);
1168
+ dialogTitle: `${this.expressionNames[s]}编辑器`,
1169
+ showMessage: s === "validate" || s === "dataPicking" || s === "required",
1170
+ showMessageType: s === "dataPicking",
1171
+ beforeOpen: () => this.onBeforeOpenExpression(i, s, e),
1172
+ onSubmitModal: (f) => {
1173
+ const o = this.updateExpression(i, e, f, s);
1060
1174
  if (r) {
1061
- const d = this.buildRule(m, u, l);
1062
- r(d);
1175
+ const c = this.buildRule(m, f, s);
1176
+ r(c);
1063
1177
  }
1064
1178
  return o;
1065
1179
  }
1066
1180
  }
1067
- }, s;
1181
+ }, l;
1068
1182
  }, {});
1069
1183
  }
1070
- getExpressionInfo(t, e, n) {
1071
- const r = e === "Field" ? t.binding.field : t.id, s = this.getExpressionRule(r, n), l = {
1072
- value: s && s.value,
1184
+ getExpressionInfo(i, e, n) {
1185
+ const r = e === "Field" ? i.binding.field : i.id, l = this.getExpressionRule(r, n), s = {
1186
+ value: l && l.value,
1073
1187
  targetId: r,
1074
1188
  targetType: e,
1075
1189
  expressionType: n
1076
1190
  };
1077
- return s && s.message && (l.message = s.message), l;
1191
+ return l && l.message && (s.message = l.message), s;
1078
1192
  }
1079
- getExpressionConfig(t, e, n = ["compute", "dependency", "validate"], r) {
1193
+ getExpressionConfig(i, e, n = ["compute", "dependency", "validate"], r) {
1080
1194
  return {
1081
1195
  description: "表达式",
1082
1196
  title: "表达式",
1083
- hide: !t.binding,
1197
+ hide: !i.binding,
1084
1198
  properties: {
1085
- ...this.getExpressionEditorOptions(t, e, n, r)
1199
+ ...this.getExpressionEditorOptions(i, e, n, r)
1086
1200
  }
1087
1201
  };
1088
1202
  }
1089
- getExpressionOptions(t, e, n) {
1090
- const r = this.getExpressionInfo(t, e, n);
1203
+ getExpressionOptions(i, e, n) {
1204
+ const r = this.getExpressionInfo(i, e, n);
1091
1205
  return {
1092
1206
  dialogTitle: `${this.expressionNames[n]}编辑器`,
1093
1207
  singleExpand: !1,
1094
1208
  showMessage: n === "required",
1095
- beforeOpen: () => this.onBeforeOpenExpression(t, n, e),
1209
+ beforeOpen: () => this.onBeforeOpenExpression(i, n, e),
1096
1210
  expressionInfo: r
1097
1211
  };
1098
1212
  }
1099
1213
  }
1100
- class xt {
1101
- constructor(t, e) {
1102
- S(this, "componentId");
1103
- S(this, "viewModelId");
1104
- S(this, "eventsEditorUtils");
1105
- S(this, "formSchemaUtils");
1106
- S(this, "formMetadataConverter");
1107
- S(this, "designViewModelUtils");
1108
- S(this, "designViewModelField");
1109
- S(this, "controlCreatorUtils");
1110
- S(this, "designerHostService");
1111
- S(this, "designerContext");
1112
- S(this, "schemaService", null);
1113
- S(this, "metadataService", null);
1114
- S(this, "propertyConfig", {
1214
+ class Mt {
1215
+ constructor(i, e) {
1216
+ E(this, "componentId");
1217
+ E(this, "viewModelId");
1218
+ E(this, "eventsEditorUtils");
1219
+ E(this, "formSchemaUtils");
1220
+ E(this, "formMetadataConverter");
1221
+ E(this, "designViewModelUtils");
1222
+ E(this, "designViewModelField");
1223
+ E(this, "controlCreatorUtils");
1224
+ E(this, "designerHostService");
1225
+ E(this, "designerContext");
1226
+ E(this, "schemaService", null);
1227
+ E(this, "metadataService", null);
1228
+ E(this, "propertyConfig", {
1115
1229
  type: "object",
1116
1230
  categories: {}
1117
1231
  });
1118
1232
  var n;
1119
- this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService, this.designerContext = e.designerContext;
1233
+ this.componentId = i, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(i)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService, this.designerContext = e.designerContext;
1120
1234
  }
1121
1235
  getFormDesignerInstance() {
1122
- var t, e;
1123
- return (e = (t = this.designerContext) == null ? void 0 : t.instances) == null ? void 0 : e.formDesigner.value;
1236
+ var i, e;
1237
+ return (e = (i = this.designerContext) == null ? void 0 : i.instances) == null ? void 0 : e.formDesigner.value;
1124
1238
  }
1125
1239
  getTableInfo() {
1126
- var t;
1127
- return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
1240
+ var i;
1241
+ return (i = this.schemaService) == null ? void 0 : i.getTableInfoByViewModelId(this.viewModelId);
1128
1242
  }
1129
- setDesignViewModelField(t) {
1243
+ setDesignViewModelField(i) {
1130
1244
  var n;
1131
- const e = t.binding && t.binding.type === "Form" && t.binding.field;
1245
+ const e = i.binding && i.binding.type === "Form" && i.binding.field;
1132
1246
  if (e) {
1133
1247
  if (!this.designViewModelField) {
1134
1248
  const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1135
- this.designViewModelField = r.fields.find((s) => s.id === e);
1249
+ this.designViewModelField = r.fields.find((l) => l.id === e);
1136
1250
  }
1137
- t.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
1251
+ i.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
1138
1252
  }
1139
1253
  }
1140
- getBasicPropConfig(t) {
1254
+ getBasicPropConfig(i) {
1141
1255
  return {
1142
1256
  description: "Basic Information",
1143
1257
  title: "基本信息",
@@ -1158,17 +1272,17 @@ class xt {
1158
1272
  valueField: "value",
1159
1273
  idField: "value",
1160
1274
  editable: !1,
1161
- data: [{ value: t.type, name: g[t.type] && g[t.type].name }]
1275
+ data: [{ value: i.type, name: v[i.type] && v[i.type].name }]
1162
1276
  }
1163
1277
  }
1164
1278
  }
1165
1279
  };
1166
1280
  }
1167
- getAppearanceConfig(t = null, e = {}, n) {
1281
+ getAppearanceConfig(i = null, e = {}, n) {
1168
1282
  const r = {
1169
1283
  title: "外观",
1170
1284
  description: "Appearance"
1171
- }, s = {
1285
+ }, l = {
1172
1286
  class: {
1173
1287
  title: "class样式",
1174
1288
  type: "string",
@@ -1184,21 +1298,21 @@ class xt {
1184
1298
  parentPropertyID: "appearance"
1185
1299
  }
1186
1300
  };
1187
- for (const l in e)
1188
- s[l] = Object.assign(s[l] || {}, e[l]);
1301
+ for (const s in e)
1302
+ l[s] = Object.assign(l[s] || {}, e[s]);
1189
1303
  return {
1190
1304
  ...r,
1191
- properties: { ...s },
1192
- setPropertyRelates(l, m) {
1193
- if (l) {
1194
- switch (l && l.propertyID) {
1305
+ properties: { ...l },
1306
+ setPropertyRelates(s, m) {
1307
+ if (s) {
1308
+ switch (s && s.propertyID) {
1195
1309
  case "class":
1196
1310
  case "style": {
1197
- Z.value++;
1311
+ J.value++;
1198
1312
  break;
1199
1313
  }
1200
1314
  }
1201
- n && n(l, t, m);
1315
+ n && n(s, i, m);
1202
1316
  }
1203
1317
  }
1204
1318
  };
@@ -1213,49 +1327,49 @@ class xt {
1213
1327
  * @param expressionType 指定表达式类型,存在属性和表达式类型不一致的情况
1214
1328
  * @returns
1215
1329
  */
1216
- getPropertyEditorParams(t, e = [], n = "visible", r = {}, s = {}, l = "") {
1217
- const { getVariables: m, getControlName: a, getStateMachines: c } = It(this.designerHostService), u = this.getRealTargetType(t), o = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], d = {
1330
+ getPropertyEditorParams(i, e = [], n = "visible", r = {}, l = {}, s = "") {
1331
+ const { getVariables: m, getControlName: a, getStateMachines: u } = Et(this.designerHostService), f = this.getRealTargetType(i), o = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], c = {
1218
1332
  type: "property-editor",
1219
1333
  propertyTypes: o
1220
1334
  };
1221
- return o.map((v) => {
1222
- switch (v) {
1335
+ return o.map((g) => {
1336
+ switch (g) {
1223
1337
  case "Const":
1224
- Object.assign(d, {
1338
+ Object.assign(c, {
1225
1339
  constType: "enum",
1226
1340
  constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
1227
1341
  }, r);
1228
1342
  break;
1229
1343
  case "Expression":
1230
- d.expressionConfig = this.getExpressionOptions(t, u, l || n);
1344
+ c.expressionConfig = this.getExpressionOptions(i, f, s || n);
1231
1345
  break;
1232
1346
  case "StateMachine":
1233
- d.stateMachines = c();
1347
+ c.stateMachines = u();
1234
1348
  break;
1235
1349
  case "Variable":
1236
- Object.assign(d, {
1237
- controlName: a(t),
1350
+ Object.assign(c, {
1351
+ controlName: a(i),
1238
1352
  newVariablePrefix: "is",
1239
1353
  newVariableType: "Boolean",
1240
1354
  variables: m(this.viewModelId),
1241
1355
  parentComponentId: this.componentId === "root-component" ? "" : "root-component",
1242
- onBeforeOpenVariables: (f) => {
1243
- f.value = m(this.viewModelId);
1356
+ onBeforeOpenVariables: (d) => {
1357
+ d.value = m(this.viewModelId);
1244
1358
  }
1245
- }, s), this.designerContext.designerMode === "PC_RTC" && (d.newVariablePrefix = "ext_" + d.newVariablePrefix);
1359
+ }, l), this.designerContext.designerMode === "PC_RTC" && (c.newVariablePrefix = "ext_" + c.newVariablePrefix);
1246
1360
  break;
1247
1361
  }
1248
- }), d;
1362
+ }), c;
1249
1363
  }
1250
- getVisibleProperty(t, e = "") {
1251
- var s;
1364
+ getVisibleProperty(i, e = "") {
1365
+ var l;
1252
1366
  let n = ["Const", "Variable", "StateMachine", "Expression"];
1253
- return e === "gridFieldEditor" ? n = ["Const", "Expression"] : e === "form-group" && !((s = t.binding) != null && s.field) ? n = ["Const", "Variable", "StateMachine"] : (e === "dataGrid" || e === "treeGrid" || e === "wizard") && (n = ["Const", "Variable", "Expression"]), {
1367
+ return e === "gridFieldEditor" ? n = ["Const", "Expression"] : e === "form-group" && !((l = i.binding) != null && l.field) ? n = ["Const", "Variable", "StateMachine"] : (e === "dataGrid" || e === "treeGrid" || e === "wizard") && (n = ["Const", "Variable", "Expression"]), {
1254
1368
  visible: {
1255
1369
  title: "是否可见",
1256
1370
  type: "boolean",
1257
1371
  description: "运行时组件是否可见",
1258
- editor: this.getPropertyEditorParams(t, n, "visible")
1372
+ editor: this.getPropertyEditorParams(i, n, "visible")
1259
1373
  }
1260
1374
  };
1261
1375
  }
@@ -1265,27 +1379,27 @@ class xt {
1265
1379
  * @param viewModelId
1266
1380
  * @returns
1267
1381
  */
1268
- getBehaviorConfig(t, e = "", n = {}, r) {
1269
- const s = {
1382
+ getBehaviorConfig(i, e = "", n = {}, r) {
1383
+ const l = {
1270
1384
  title: "行为",
1271
1385
  description: ""
1272
- }, l = this.getVisibleProperty(t, e);
1386
+ }, s = this.getVisibleProperty(i, e);
1273
1387
  for (const a in n)
1274
- l[a] = Object.assign(l[a] || {}, n[a]);
1388
+ s[a] = Object.assign(s[a] || {}, n[a]);
1275
1389
  const m = this;
1276
1390
  return {
1277
- ...s,
1278
- properties: { ...l },
1279
- setPropertyRelates(a, c) {
1391
+ ...l,
1392
+ properties: { ...s },
1393
+ setPropertyRelates(a, u) {
1280
1394
  if (a) {
1281
1395
  switch (a.propertyID) {
1282
1396
  case "disabled":
1283
1397
  case "readonly":
1284
1398
  case "visible":
1285
- m.afterMutilEditorChanged(t, a);
1399
+ m.afterMutilEditorChanged(i, a);
1286
1400
  break;
1287
1401
  }
1288
- r && r(a, c);
1402
+ r && r(a, u);
1289
1403
  }
1290
1404
  }
1291
1405
  };
@@ -1295,8 +1409,8 @@ class xt {
1295
1409
  * @param propertyData
1296
1410
  * @param changeObject
1297
1411
  */
1298
- afterMutilEditorChanged(t, e) {
1299
- this.addNewVariableToViewModel(e, this.viewModelId), this.updateExpressionValue(e), this.clearExpression(e, t);
1412
+ afterMutilEditorChanged(i, e) {
1413
+ this.addNewVariableToViewModel(e, this.viewModelId), this.updateExpressionValue(e), this.clearExpression(e, i);
1300
1414
  }
1301
1415
  /**
1302
1416
  *
@@ -1304,12 +1418,12 @@ class xt {
1304
1418
  * @param componentInstance
1305
1419
  * @returns
1306
1420
  */
1307
- updateElementByParentContainer(t, e) {
1421
+ updateElementByParentContainer(i, e) {
1308
1422
  const n = e && e.parent && e.parent.schema;
1309
1423
  if (!n)
1310
1424
  return;
1311
- const r = n.contents.findIndex((l) => l.id === t), s = H(n.contents[r]);
1312
- n.contents.splice(r, 1), n.contents.splice(r, 0, s), Ge();
1425
+ const r = n.contents.findIndex((s) => s.id === i), l = Z(n.contents[r]);
1426
+ n.contents.splice(r, 1), n.contents.splice(r, 0, l), He();
1313
1427
  }
1314
1428
  /**
1315
1429
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -1317,11 +1431,11 @@ class xt {
1317
1431
  * @param viewModelId
1318
1432
  * @returns
1319
1433
  */
1320
- addNewVariableToViewModel(t, e) {
1321
- const n = t.propertyValue;
1434
+ addNewVariableToViewModel(i, e) {
1435
+ const n = i.propertyValue;
1322
1436
  if (!(n && typeof n == "object") || !(n.type === "Variable" && n.isNewVariable))
1323
1437
  return;
1324
- const l = {
1438
+ const s = {
1325
1439
  id: n.field,
1326
1440
  category: "locale",
1327
1441
  code: n.fullPath,
@@ -1329,27 +1443,27 @@ class xt {
1329
1443
  type: n.newVariableType || "String",
1330
1444
  isRtcVariable: this.designerContext.designerMode === "PC_RTC" ? !0 : void 0
1331
1445
  };
1332
- delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(l.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(l);
1446
+ delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(s.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(s);
1333
1447
  }
1334
1448
  /**
1335
1449
  * 更新表达式到expressions节点
1336
1450
  * @param changeObject
1337
1451
  */
1338
- updateExpressionValue(t) {
1339
- const e = t.propertyValue;
1452
+ updateExpressionValue(i) {
1453
+ const e = i.propertyValue;
1340
1454
  if (!((e && e.type) === "Expression" && e.expressionInfo))
1341
1455
  return;
1342
- const { expressionId: s, expressionInfo: l } = e, { targetId: m, targetType: a, expressionType: c, value: u, message: o } = l, d = this.formSchemaUtils.getModule();
1343
- d.expressions = d.expressions || [];
1344
- const { expressions: v } = d;
1345
- let f = v.find((h) => h.target === m);
1346
- f || (f = { target: m, rules: [], targetType: a }, v.push(f));
1347
- const p = f.rules.find((h) => h.type === c);
1456
+ const { expressionId: l, expressionInfo: s } = e, { targetId: m, targetType: a, expressionType: u, value: f, message: o } = s, c = this.formSchemaUtils.getModule();
1457
+ c.expressions = c.expressions || [];
1458
+ const { expressions: g } = c;
1459
+ let d = g.find((h) => h.target === m);
1460
+ d || (d = { target: m, rules: [], targetType: a }, g.push(d));
1461
+ const p = d.rules.find((h) => h.type === u);
1348
1462
  if (p)
1349
- p.value = u, p.message = o;
1463
+ p.value = f, p.message = o;
1350
1464
  else {
1351
- const h = { id: s, type: c, value: u, message: o };
1352
- f.rules.push(h);
1465
+ const h = { id: l, type: u, value: f, message: o };
1466
+ d.rules.push(h);
1353
1467
  }
1354
1468
  delete e.expressionInfo;
1355
1469
  }
@@ -1359,25 +1473,25 @@ class xt {
1359
1473
  * @param propertyData
1360
1474
  * @returns
1361
1475
  */
1362
- clearExpression(t, e) {
1363
- const n = t.propertyValue;
1476
+ clearExpression(i, e) {
1477
+ const n = i.propertyValue;
1364
1478
  if (n && n.type === "Expression")
1365
1479
  return;
1366
- const s = t.propertyID, l = this.formSchemaUtils.getExpressions(), m = e.binding ? e.binding.field : e.id, a = l.find((c) => c.target === m);
1367
- !a || !a.rules || (a.rules = a.rules.filter((c) => c.type !== s));
1480
+ const l = i.propertyID, s = this.formSchemaUtils.getExpressions(), m = e.binding ? e.binding.field : e.id, a = s.find((u) => u.target === m);
1481
+ !a || !a.rules || (a.rules = a.rules.filter((u) => u.type !== l));
1368
1482
  }
1369
- getExpressionOptions(t, e, n) {
1370
- return new we(this.formSchemaUtils).getExpressionOptions(t, e, n);
1483
+ getExpressionOptions(i, e, n) {
1484
+ return new Se(this.formSchemaUtils).getExpressionOptions(i, e, n);
1371
1485
  }
1372
- getRealTargetType(t) {
1373
- return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
1486
+ getRealTargetType(i) {
1487
+ return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(i.type) > -1 ? "Button" : i.binding && i.binding.field ? "Field" : "Container";
1374
1488
  }
1375
- createBaseEventProperty(t) {
1489
+ createBaseEventProperty(i) {
1376
1490
  const e = {};
1377
1491
  return e[this.viewModelId] = {
1378
1492
  type: "events-editor",
1379
1493
  editor: {
1380
- initialData: t,
1494
+ initialData: i,
1381
1495
  viewSourceHandle: (n) => {
1382
1496
  var r;
1383
1497
  ((r = n.controller) == null ? void 0 : r.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(n);
@@ -1386,17 +1500,17 @@ class xt {
1386
1500
  }, e;
1387
1501
  }
1388
1502
  }
1389
- const G = class G {
1503
+ const D = class D {
1390
1504
  /**
1391
1505
  * 根据绑定字段类型获取可用的输入类控件
1392
1506
  */
1393
- static getEditorTypesByMDataType(t, e = !1, n = "") {
1507
+ static getEditorTypesByMDataType(i, e = !1, n = "") {
1394
1508
  if (e)
1395
- return [{ key: g["language-textbox"].type, value: g["language-textbox"].name }];
1396
- let r = G.fieldControlTypeMapping[t];
1509
+ return [{ key: v["language-textbox"].type, value: v["language-textbox"].name }];
1510
+ let r = D.fieldControlTypeMapping[i];
1397
1511
  if (n === "data-grid-column" && (r != null && r.length)) {
1398
- const s = [g["check-group"].type, g["radio-group"].type, g.image.type, g["rich-text-editor"].type];
1399
- r = r.filter((l) => !s.includes(l.key));
1512
+ const l = [v["check-group"].type, v["radio-group"].type, v.image.type, v["rich-text-editor"].type];
1513
+ r = r.filter((s) => !l.includes(s.key));
1400
1514
  }
1401
1515
  return r;
1402
1516
  }
@@ -1404,203 +1518,204 @@ const G = class G {
1404
1518
  * 获取所有输入类控件
1405
1519
  */
1406
1520
  static getAllInputTypes() {
1407
- const t = [];
1408
- for (const e in G.fieldControlTypeMapping)
1409
- G.fieldControlTypeMapping[e].forEach((n) => {
1410
- t.find((r) => r.key === n.key && r.value === n.value) || t.push({ key: n.key, value: n.value });
1521
+ const i = [];
1522
+ for (const e in D.fieldControlTypeMapping)
1523
+ D.fieldControlTypeMapping[e].forEach((n) => {
1524
+ i.find((r) => r.key === n.key && r.value === n.value) || i.push({ key: n.key, value: n.value });
1411
1525
  });
1412
- return t;
1526
+ return i;
1413
1527
  }
1414
1528
  /**
1415
1529
  * 提供schema字段基础属性和DOM控件属性的映射
1416
1530
  * @param control 控件元数据
1417
1531
  */
1418
- static mappingDomPropAndSchemaProp(t, e) {
1419
- var s;
1420
- const n = (s = t.editor) == null ? void 0 : s.type, r = [];
1421
- return (t.type === g["data-grid-column"].type || t.type === g["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && r.push({ domField: "title", schemaField: "name" }), r.push({ domField: "label", schemaField: "name" }), r.push({ domField: "editor.required", schemaField: "require" }), r.push({ domField: "editor.readonly", schemaField: "readonly" }), (n === g["input-group"].type || n === g.textarea.type || n === g["number-spinner"].type) && r.push({ domField: "editor.maxLength", schemaField: "type.length" }), n === g["number-spinner"].type && r.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === g["data-grid-column"].type || t.type === g["tree-grid-column"].type) && r.push({ domField: "formatter.precision", schemaField: "type.precision" }), (n === g["combo-list"].type || n === g["radio-group"].type) && r.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === g["data-grid-column"].type || t.type === g["tree-grid-column"].type) && r.push({ domField: "formatter.data", schemaField: "type.enumValues" }), n === g["date-picker"].type && (r.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), r.push({ domField: "editor.fieldType", schemaField: "type.name" })), n === g["number-spinner"].type && (r.push({ domField: "editor.max", schemaField: "editor.maxValue" }), r.push({ domField: "editor.min", schemaField: "editor.minValue" })), n === g.lookup.type && (r.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), r.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), r.push({ domField: "editor.textField", schemaField: "editor.textField" }), r.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), r.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), r.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), r.push({ domField: "path", schemaField: "bindingPath" }), r.push({ domField: "binding.path", schemaField: "bindingField" }), r.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === g["data-grid-column"].type || t.type === g["tree-grid-column"].type) && r.push({ domField: "field", schemaField: "bindingPath" }), r;
1532
+ static mappingDomPropAndSchemaProp(i, e) {
1533
+ var l;
1534
+ const n = (l = i.editor) == null ? void 0 : l.type, r = [];
1535
+ return (i.type === v["data-grid-column"].type || i.type === v["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && r.push({ domField: "title", schemaField: "name" }), r.push({ domField: "label", schemaField: "name" }), r.push({ domField: "editor.required", schemaField: "require" }), r.push({ domField: "editor.readonly", schemaField: "readonly" }), (n === v["input-group"].type || n === v.textarea.type || n === v["number-spinner"].type) && r.push({ domField: "editor.maxLength", schemaField: "type.length" }), n === v["number-spinner"].type && r.push({ domField: "editor.precision", schemaField: "type.precision" }), (i.type === v["data-grid-column"].type || i.type === v["tree-grid-column"].type) && r.push({ domField: "formatter.precision", schemaField: "type.precision" }), (n === v["combo-list"].type || n === v["radio-group"].type) && r.push({ domField: "editor.data", schemaField: "type.enumValues" }), (i.type === v["data-grid-column"].type || i.type === v["tree-grid-column"].type) && r.push({ domField: "formatter.data", schemaField: "type.enumValues" }), n === v["date-picker"].type && (r.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), r.push({ domField: "editor.fieldType", schemaField: "type.name" })), n === v["number-spinner"].type && (r.push({ domField: "editor.max", schemaField: "editor.maxValue" }), r.push({ domField: "editor.min", schemaField: "editor.minValue" })), n === v.lookup.type && (r.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), r.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), r.push({ domField: "editor.textField", schemaField: "editor.textField" }), r.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), r.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), r.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), r.push({ domField: "path", schemaField: "bindingPath" }), r.push({ domField: "binding.path", schemaField: "bindingField" }), r.push({ domField: "binding.fullPath", schemaField: "path" }), (i.type === v["data-grid-column"].type || i.type === v["tree-grid-column"].type) && r.push({ domField: "field", schemaField: "bindingPath" }), r;
1422
1536
  }
1423
1537
  };
1424
1538
  /**
1425
1539
  * <字段类型,可配置的控件类型列表>的映射
1426
1540
  */
1427
- S(G, "fieldControlTypeMapping", {
1541
+ E(D, "fieldControlTypeMapping", {
1428
1542
  String: [
1429
- { key: g["input-group"].type, value: g["input-group"].name },
1430
- { key: g.lookup.type, value: g.lookup.name },
1431
- { key: g.image.type, value: g.image.name },
1432
- { key: g["date-picker"].type, value: g["date-picker"].name },
1433
- { key: g.switch.type, value: g.switch.name },
1434
- { key: g["check-box"].type, value: g["check-box"].name },
1435
- { key: g["check-group"].type, value: g["check-group"].name },
1436
- { key: g["radio-group"].type, value: g["radio-group"].name },
1437
- { key: g["combo-list"].type, value: g["combo-list"].name },
1438
- { key: g.textarea.type, value: g.textarea.name },
1439
- { key: g["time-picker"].type, value: g["time-picker"].name }
1543
+ { key: v["input-group"].type, value: v["input-group"].name },
1544
+ { key: v.lookup.type, value: v.lookup.name },
1545
+ { key: v.image.type, value: v.image.name },
1546
+ { key: v["date-picker"].type, value: v["date-picker"].name },
1547
+ { key: v.switch.type, value: v.switch.name },
1548
+ { key: v["check-box"].type, value: v["check-box"].name },
1549
+ { key: v["check-group"].type, value: v["check-group"].name },
1550
+ { key: v["radio-group"].type, value: v["radio-group"].name },
1551
+ { key: v["combo-list"].type, value: v["combo-list"].name },
1552
+ { key: v.textarea.type, value: v.textarea.name },
1553
+ { key: v["time-picker"].type, value: v["time-picker"].name }
1440
1554
  ],
1441
1555
  Text: [
1442
- { key: g.textarea.type, value: g.textarea.name },
1443
- { key: g.lookup.type, value: g.lookup.name },
1444
- { key: g.image.type, value: g.image.name },
1445
- { key: g["rich-text-editor"].type, value: g["rich-text-editor"].name }
1556
+ { key: v.textarea.type, value: v.textarea.name },
1557
+ { key: v.lookup.type, value: v.lookup.name },
1558
+ { key: v.image.type, value: v.image.name },
1559
+ { key: v.avatar.type, value: v.avatar.name },
1560
+ { key: v["rich-text-editor"].type, value: v["rich-text-editor"].name }
1446
1561
  ],
1447
1562
  Decimal: [
1448
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1563
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1449
1564
  ],
1450
1565
  Integer: [
1451
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1566
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1452
1567
  ],
1453
1568
  Number: [
1454
- { key: g["number-spinner"].type, value: g["number-spinner"].name },
1455
- { key: g.switch.type, value: g.switch.name },
1456
- { key: g["check-box"].type, value: g["check-box"].name }
1569
+ { key: v["number-spinner"].type, value: v["number-spinner"].name },
1570
+ { key: v.switch.type, value: v.switch.name },
1571
+ { key: v["check-box"].type, value: v["check-box"].name }
1457
1572
  ],
1458
1573
  BigNumber: [
1459
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1574
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1460
1575
  ],
1461
1576
  Date: [
1462
- { key: g["date-picker"].type, value: g["date-picker"].name }
1577
+ { key: v["date-picker"].type, value: v["date-picker"].name }
1463
1578
  ],
1464
1579
  DateTime: [
1465
- { key: g["date-picker"].type, value: g["date-picker"].name }
1580
+ { key: v["date-picker"].type, value: v["date-picker"].name }
1466
1581
  ],
1467
1582
  Boolean: [
1468
- { key: g.switch.type, value: g.switch.name },
1469
- { key: g["check-box"].type, value: g["check-box"].name }
1583
+ { key: v.switch.type, value: v.switch.name },
1584
+ { key: v["check-box"].type, value: v["check-box"].name }
1470
1585
  ],
1471
1586
  Enum: [
1472
- { key: g["combo-list"].type, value: g["combo-list"].name },
1473
- { key: g["radio-group"].type, value: g["radio-group"].name }
1587
+ { key: v["combo-list"].type, value: v["combo-list"].name },
1588
+ { key: v["radio-group"].type, value: v["radio-group"].name }
1474
1589
  ],
1475
1590
  Object: [
1476
- { key: g.lookup.type, value: g.lookup.name },
1477
- { key: g["combo-list"].type, value: g["combo-list"].name },
1478
- { key: g["radio-group"].type, value: g["radio-group"].name }
1591
+ { key: v.lookup.type, value: v.lookup.name },
1592
+ { key: v["combo-list"].type, value: v["combo-list"].name },
1593
+ { key: v["radio-group"].type, value: v["radio-group"].name }
1479
1594
  ]
1480
1595
  });
1481
- let Y = G;
1482
- var J = /* @__PURE__ */ ((i) => (i.Form = "Form", i.Variable = "Variable", i))(J || {});
1483
- class Et {
1596
+ let K = D;
1597
+ var Y = /* @__PURE__ */ ((t) => (t.Form = "Form", t.Variable = "Variable", t))(Y || {});
1598
+ class kt {
1484
1599
  constructor() {
1485
1600
  /** 控件标题 */
1486
- S(this, "label", "");
1601
+ E(this, "label", "");
1487
1602
  /** 控件id */
1488
- S(this, "id", "");
1603
+ E(this, "id", "");
1489
1604
  /** 每个控件占用的栅格数 */
1490
- S(this, "columnInSM", 12);
1491
- S(this, "columnInMD", 6);
1492
- S(this, "columnInLG", 3);
1493
- S(this, "columnInEL", 2);
1605
+ E(this, "columnInSM", 12);
1606
+ E(this, "columnInMD", 6);
1607
+ E(this, "columnInLG", 3);
1608
+ E(this, "columnInEL", 2);
1494
1609
  /** 每个控件占用的列数 */
1495
- S(this, "displayWidthInSM", 1);
1496
- S(this, "displayWidthInMD", 1);
1497
- S(this, "displayWidthInLG", 1);
1498
- S(this, "displayWidthInEL", 1);
1610
+ E(this, "displayWidthInSM", 1);
1611
+ E(this, "displayWidthInMD", 1);
1612
+ E(this, "displayWidthInLG", 1);
1613
+ E(this, "displayWidthInEL", 1);
1499
1614
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
1500
- S(this, "displayColumnCountAtBreakPoint", "md");
1615
+ E(this, "displayColumnCountAtBreakPoint", "md");
1501
1616
  /** 控件所在行,传0即可-----编辑器内部使用 */
1502
- S(this, "tagRow", 0);
1617
+ E(this, "tagRow", 0);
1503
1618
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
1504
- S(this, "showTopBorder", 0);
1619
+ E(this, "showTopBorder", 0);
1505
1620
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
1506
- S(this, "group", 1);
1621
+ E(this, "group", 1);
1507
1622
  /** 控件是否符合标准的class配置(设计器用的) */
1508
- S(this, "isSupportedClass", !0);
1623
+ E(this, "isSupportedClass", !0);
1509
1624
  /** 控件所在分组id(设计器用的) */
1510
- S(this, "fieldSetId", "");
1625
+ E(this, "fieldSetId", "");
1511
1626
  }
1512
1627
  }
1513
- function St(i) {
1514
- let t, e;
1628
+ function Pt(t) {
1629
+ let i, e;
1515
1630
  const n = /* @__PURE__ */ new Map();
1516
1631
  let r = [];
1517
- function s(u, o) {
1518
- const v = u.split(" ").filter((C) => C.startsWith("col-"));
1519
- if (v.length === 0) {
1632
+ function l(f, o) {
1633
+ const g = f.split(" ").filter((w) => w.startsWith("col-"));
1634
+ if (g.length === 0) {
1520
1635
  o.isSupportedClass = !1;
1521
1636
  return;
1522
1637
  }
1523
- let f = v.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), p = v.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), h = v.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), y = v.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
1524
- f = f || "col-12", o.columnInSM = parseInt(f.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), p = p || "col-md-" + o.columnInSM, o.columnInMD = parseInt(p.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), h = h || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(h.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), y = y || "col-el-" + o.columnInLG, o.columnInEL = parseInt(y.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
1638
+ let d = g.find((w) => /^col-([1-9]|10|11|12)$/.test(w)), p = g.find((w) => /^col-md-([1-9]|10|11|12)$/.test(w)), h = g.find((w) => /^col-xl-([1-9]|10|11|12)$/.test(w)), b = g.find((w) => /^col-el-([1-9]|10|11|12)$/.test(w));
1639
+ d = d || "col-12", o.columnInSM = parseInt(d.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), p = p || "col-md-" + o.columnInSM, o.columnInMD = parseInt(p.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), h = h || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(h.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), b = b || "col-el-" + o.columnInLG, o.columnInEL = parseInt(b.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
1525
1640
  }
1526
- function l(u, o, d, v = !1) {
1527
- let f = !1;
1528
- u.contents.forEach((p) => {
1641
+ function s(f, o, c, g = !1) {
1642
+ let d = !1;
1643
+ f.contents.forEach((p) => {
1529
1644
  if (p.type === "fieldset") {
1530
- d += 1, l(p, o, d, !0), f = !0;
1645
+ c += 1, s(p, o, c, !0), d = !0;
1531
1646
  return;
1532
1647
  }
1533
- f && (d += 1, f = !1);
1534
- const h = p.appearance && p.appearance.class, y = new Et();
1535
- h ? s(h, y) : y.isSupportedClass = !1, y.label = p.label || p.id, y.id = p.id, y.group = d, v && (y.fieldSetId = u.id), e === p.id && (t = d), n.set(p.id, p), o.push(y);
1648
+ d && (c += 1, d = !1);
1649
+ const h = p.appearance && p.appearance.class, b = new kt();
1650
+ h ? l(h, b) : b.isSupportedClass = !1, b.label = p.label || p.id, b.id = p.id, b.group = c, g && (b.fieldSetId = f.id), e === p.id && (i = c), n.set(p.id, p), o.push(b);
1536
1651
  });
1537
1652
  }
1538
- function m(u) {
1539
- const o = i.getComponentById(u);
1653
+ function m(f) {
1654
+ const o = t.getComponentById(f);
1540
1655
  if (!o || !o.componentType || !o.componentType.startsWith("form"))
1541
1656
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1542
- const d = i.selectNode(o, (v) => v.type === g["response-form"].type);
1543
- return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
1544
- }
1545
- function a(u, o) {
1546
- o = o || u.id;
1547
- const { result: d, message: v, formNode: f } = m(o);
1548
- if (!d)
1549
- return { result: d, message: v };
1550
- e = u.id, r = [], n.clear();
1551
- const p = f.contents[0].type === g.fieldset.type ? 0 : 1;
1552
- l(f, r, p);
1553
- const h = r.find((C) => !C.isSupportedClass);
1657
+ const c = t.selectNode(o, (g) => g.type === v["response-form"].type);
1658
+ return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
1659
+ }
1660
+ function a(f, o) {
1661
+ o = o || f.id;
1662
+ const { result: c, message: g, formNode: d } = m(o);
1663
+ if (!c)
1664
+ return { result: c, message: g };
1665
+ e = f.id, r = [], n.clear();
1666
+ const p = d.contents[0].type === v.fieldset.type ? 0 : 1;
1667
+ s(d, r, p);
1668
+ const h = r.find((w) => !w.isSupportedClass);
1554
1669
  return {
1555
1670
  defaultState: {
1556
- defaultGroupNumber: t || 1,
1671
+ defaultGroupNumber: i || 1,
1557
1672
  model: h ? "customize" : "standard"
1558
1673
  },
1559
1674
  importData: r
1560
1675
  };
1561
1676
  }
1562
- function c(u, o) {
1677
+ function u(f, o) {
1563
1678
  o = o;
1564
- const { result: d, formNode: v } = m(o);
1565
- if (!d)
1679
+ const { result: c, formNode: g } = m(o);
1680
+ if (!c)
1566
1681
  return "";
1567
- const f = [];
1568
- return u.forEach((p) => {
1569
- var C;
1570
- const h = n.get(p.id), y = h.appearance && h.appearance.class;
1571
- if (y) {
1572
- const B = y.split(" ").filter((F) => !F.startsWith("col-")), T = "col-" + p.columnInSM, k = "col-md-" + p.columnInMD, U = "col-xl-" + p.columnInLG, N = "col-el-" + p.columnInEL, M = [T, k, U, N].concat(B);
1573
- h.appearance.class = M.join(" ");
1682
+ const d = [];
1683
+ return f.forEach((p) => {
1684
+ var w;
1685
+ const h = n.get(p.id), b = h.appearance && h.appearance.class;
1686
+ if (b) {
1687
+ const L = b.split(" ").filter((I) => !I.startsWith("col-")), T = "col-" + p.columnInSM, V = "col-md-" + p.columnInMD, A = "col-xl-" + p.columnInLG, R = "col-el-" + p.columnInEL, k = [T, V, A, R].concat(L);
1688
+ h.appearance.class = k.join(" ");
1574
1689
  }
1575
1690
  if (p.fieldSetId) {
1576
- const V = v.contents.find((T) => T.id === p.fieldSetId), B = f.find((T) => T.id === p.fieldSetId);
1577
- B ? (C = B.contents) == null || C.push(h) : (f.push(V), V.contents = [h]);
1691
+ const O = g.contents.find((T) => T.id === p.fieldSetId), L = d.find((T) => T.id === p.fieldSetId);
1692
+ L ? (w = L.contents) == null || w.push(h) : (d.push(O), O.contents = [h]);
1578
1693
  } else
1579
- f.push(h);
1580
- }), v.contents = f, v.id;
1694
+ d.push(h);
1695
+ }), g.contents = d, g.id;
1581
1696
  }
1582
1697
  return {
1583
1698
  checkCanFindFormNode: m,
1584
1699
  checkCanOpenLayoutEditor: a,
1585
- changeFormControlsByResponseLayoutConfig: c,
1586
- getResonseFormLayoutConfig: l
1700
+ changeFormControlsByResponseLayoutConfig: u,
1701
+ getResonseFormLayoutConfig: s
1587
1702
  };
1588
1703
  }
1589
- const Tt = (i) => b(te, null, [b("h5", null, [z("代码示例")]), b("pre", {
1704
+ const Vt = (t) => y(ie, null, [y("h5", null, [j("代码示例")]), y("pre", {
1590
1705
  style: "background-color: #f5f5f5; padding: 10px; border-radius: 5px;"
1591
- }, [b("code", null, [`
1706
+ }, [y("code", null, [`
1592
1707
  <h3>Tips:</h3>
1593
1708
  <span style="color: blue;">
1594
1709
  自定义提示内容
1595
1710
  </span>
1596
1711
  `])])]);
1597
- class Mt extends xt {
1712
+ class Bt extends Mt {
1598
1713
  constructor(e, n) {
1599
1714
  super(e, n);
1600
- S(this, "responseLayoutEditorFunction");
1715
+ E(this, "responseLayoutEditorFunction");
1601
1716
  /** 控件绑定的变量 */
1602
- S(this, "bindingVarible");
1603
- S(this, "formGroupEvents", [
1717
+ E(this, "bindingVarible");
1718
+ E(this, "formGroupEvents", [
1604
1719
  {
1605
1720
  label: "fieldValueChanging",
1606
1721
  name: "绑定字段值变化前事件"
@@ -1611,21 +1726,21 @@ class Mt extends xt {
1611
1726
  },
1612
1727
  {
1613
1728
  label: "onClickLabel",
1614
- name: "点击标签事件"
1729
+ name: "标签点击事件"
1615
1730
  }
1616
1731
  ]);
1617
- S(this, "numberEditorOptions", {
1732
+ E(this, "numberEditorOptions", {
1618
1733
  type: "number-spinner",
1619
1734
  useThousands: !1,
1620
1735
  keyboard: !1,
1621
1736
  showButton: !1
1622
1737
  });
1623
- this.responseLayoutEditorFunction = St(this.formSchemaUtils);
1738
+ this.responseLayoutEditorFunction = Pt(this.formSchemaUtils);
1624
1739
  }
1625
1740
  getCommonPropertyConfig(e, n, r = "Card") {
1626
1741
  if (this.propertyConfig.categories.basic = this.getBasicProperties(e, n, r), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, n), this.propertyConfig.categories.behavior = this.getBehaviorConfig(e, "form-group"), r === "Card") {
1627
- const s = this.getTipsConfig(e);
1628
- this.propertyConfig.categories.behavior.properties = { ...this.propertyConfig.categories.behavior.properties, ...s }, ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group"].includes(e.editor.type) && (this.propertyConfig.categories.expansion = this.getExpandProperties(e));
1742
+ const l = this.getTipsConfig(e);
1743
+ this.propertyConfig.categories.behavior.properties = { ...this.propertyConfig.categories.behavior.properties, ...l }, ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "language-textbox"].includes(e.editor.type) && (this.propertyConfig.categories.expansion = this.getExpandProperties(e));
1629
1744
  }
1630
1745
  }
1631
1746
  getPropertyConfig(e, n) {
@@ -1635,10 +1750,10 @@ class Mt extends xt {
1635
1750
  return this.propertyConfig.categories = {}, this.getCommonPropertyConfig(e, n, "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;
1636
1751
  }
1637
1752
  getBasicProperties(e, n, r = "Card") {
1638
- var c;
1639
- const s = this;
1753
+ var u;
1754
+ const l = this;
1640
1755
  this.setDesignViewModelField(e);
1641
- const { canChangeControlType: l, editorTypeList: m } = this.getAvailableEditorType(e), a = {
1756
+ const { canChangeControlType: s, editorTypeList: m } = this.getAvailableEditorType(e), a = {
1642
1757
  description: "Basic Information",
1643
1758
  title: "基本信息",
1644
1759
  properties: {
@@ -1661,7 +1776,7 @@ class Mt extends xt {
1661
1776
  idField: "key",
1662
1777
  editable: !1,
1663
1778
  data: m,
1664
- readonly: !l
1779
+ readonly: !s
1665
1780
  }
1666
1781
  },
1667
1782
  label: {
@@ -1676,7 +1791,7 @@ class Mt extends xt {
1676
1791
  editor: {
1677
1792
  data: [{ id: "visible", name: "显示" }, { id: "reserve-space", name: "占位" }, { id: "none", name: "不显示" }]
1678
1793
  },
1679
- defaultValue: ((c = e.editor) == null ? void 0 : c.type) === "image" ? "none" : "visible"
1794
+ defaultValue: ((u = e.editor) == null ? void 0 : u.type) === "image" ? "none" : "visible"
1680
1795
  },
1681
1796
  binding: {
1682
1797
  description: "绑定的表单字段",
@@ -1697,19 +1812,19 @@ class Mt extends xt {
1697
1812
  readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
1698
1813
  }
1699
1814
  },
1700
- setPropertyRelates(u, o, d) {
1701
- if (u)
1702
- switch (u && u.propertyID) {
1815
+ setPropertyRelates(f, o, c) {
1816
+ if (f)
1817
+ switch (f && f.propertyID) {
1703
1818
  case "type": {
1704
- s.changeControlType(e, u, n);
1819
+ l.changeControlType(e, f, n);
1705
1820
  break;
1706
1821
  }
1707
1822
  case "label": {
1708
- u.needRefreshControlTree = !0;
1823
+ f.needRefreshControlTree = !0;
1709
1824
  break;
1710
1825
  }
1711
1826
  case "binding": {
1712
- s.changeBindingField(e, u, d);
1827
+ l.changeBindingField(e, f, c);
1713
1828
  break;
1714
1829
  }
1715
1830
  }
@@ -1718,7 +1833,7 @@ class Mt extends xt {
1718
1833
  return r.toLocaleLowerCase() !== "card" && delete a.properties.showLabelType, a;
1719
1834
  }
1720
1835
  getExpandProperties(e) {
1721
- const n = this, r = ["Const", "Variable"], s = this.getPropertyEditorParams(e, r, "expandable"), l = this.getPropertyEditorParams(e, r, "expandDisabled");
1836
+ const n = this, r = ["Const", "Variable"], l = this.getPropertyEditorParams(e, r, "expandable"), s = this.getPropertyEditorParams(e, r, "expandDisabled");
1722
1837
  return {
1723
1838
  description: "Expand Information",
1724
1839
  title: "扩展区域",
@@ -1728,7 +1843,7 @@ class Mt extends xt {
1728
1843
  title: "启用扩展区域",
1729
1844
  refreshPanelAfterChanged: !0,
1730
1845
  $converter: "/converter/property-editor.converter",
1731
- editor: s
1846
+ editor: l
1732
1847
  },
1733
1848
  expandMode: {
1734
1849
  description: "扩展模式 text | button",
@@ -1753,11 +1868,11 @@ class Mt extends xt {
1753
1868
  $converter: "/converter/property-editor.converter",
1754
1869
  description: "是否隐藏扩展区域",
1755
1870
  title: "隐藏扩展区域",
1756
- editor: l,
1871
+ editor: s,
1757
1872
  visible: !!e.editor.expandable
1758
1873
  }
1759
1874
  },
1760
- setPropertyRelates(a, c) {
1875
+ setPropertyRelates(a, u) {
1761
1876
  if (a)
1762
1877
  switch (a.propertyID) {
1763
1878
  case "expandable":
@@ -1778,7 +1893,7 @@ class Mt extends xt {
1778
1893
  if (e.binding.type === "Variable") {
1779
1894
  if (this.bindingVarible = this.formSchemaUtils.getVariableById(e.binding.field), !this.bindingVarible)
1780
1895
  return !1;
1781
- } else if (!this.designViewModelField || this.designViewModelField.$type !== ae.SimpleField)
1896
+ } else if (!this.designViewModelField || this.designViewModelField.$type !== ce.SimpleField)
1782
1897
  return !1;
1783
1898
  return !0;
1784
1899
  }
@@ -1786,18 +1901,18 @@ class Mt extends xt {
1786
1901
  * 获取可选的编辑器类型
1787
1902
  */
1788
1903
  getAvailableEditorType(e) {
1789
- var s;
1904
+ var l;
1790
1905
  const n = this.checkCanChangeControlType(e, this.viewModelId);
1791
1906
  if (!n)
1792
1907
  return {
1793
1908
  canChangeControlType: !1,
1794
1909
  editorTypeList: [{
1795
1910
  key: e.editor.type,
1796
- value: ((s = g[e.editor.type]) == null ? void 0 : s.name) || e.editor.type
1911
+ value: ((l = v[e.editor.type]) == null ? void 0 : l.name) || e.editor.type
1797
1912
  }]
1798
1913
  };
1799
1914
  let r = [];
1800
- return this.designViewModelField && this.designViewModelField.$type === ae.SimpleField ? r = Y.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (r = Y.getEditorTypesByMDataType(this.bindingVarible.type, !1)), { canChangeControlType: n, editorTypeList: r };
1915
+ return this.designViewModelField && this.designViewModelField.$type === ce.SimpleField ? r = K.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (r = K.getEditorTypesByMDataType(this.bindingVarible.type, !1)), { canChangeControlType: n, editorTypeList: r };
1801
1916
  }
1802
1917
  changeBindingField(e, n, r) {
1803
1918
  n.needRefreshEntityTree = !0;
@@ -1841,17 +1956,17 @@ class Mt extends xt {
1841
1956
  }
1842
1957
  }
1843
1958
  },
1844
- setPropertyRelates(s, l) {
1845
- if (s)
1846
- switch (s && s.propertyID) {
1959
+ setPropertyRelates(l, s) {
1960
+ if (l)
1961
+ switch (l && l.propertyID) {
1847
1962
  case "responseLayout":
1848
- r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, n), delete e.responseLayout;
1963
+ r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, n), delete e.responseLayout;
1849
1964
  break;
1850
1965
  case "class":
1851
- r.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId), Z.value++;
1966
+ r.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), J.value++;
1852
1967
  break;
1853
1968
  case "style": {
1854
- Z.value++;
1969
+ J.value++;
1855
1970
  break;
1856
1971
  }
1857
1972
  }
@@ -1867,36 +1982,36 @@ class Mt extends xt {
1867
1982
  * @param newControlType 新控件类型
1868
1983
  */
1869
1984
  changeControlType(e, n, r) {
1870
- const s = n.propertyValue, l = r && r.parent && r.parent.schema;
1871
- if (!l)
1985
+ const l = n.propertyValue, s = r && r.parent && r.parent.schema;
1986
+ if (!s)
1872
1987
  return;
1873
- const m = l.contents.findIndex((u) => u.id === e.id);
1988
+ const m = s.contents.findIndex((f) => f.id === e.id);
1874
1989
  if (m === -1)
1875
1990
  return;
1876
- const a = l.contents[m];
1877
- let c;
1991
+ const a = s.contents[m];
1992
+ let u;
1878
1993
  if (this.designViewModelField) {
1879
- const d = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
1880
- d.editor || (d.editor = {}), d.editor.$type = s, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, d, !1), c = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s);
1994
+ const c = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((d) => d.id === this.designViewModelField.id).fieldSchema || {};
1995
+ c.editor || (c.editor = {}), c.editor.$type = l, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l);
1881
1996
  }
1882
- c || (c = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(c, {
1997
+ u || (u = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(u, {
1883
1998
  id: a.id,
1884
1999
  appearance: a.appearance,
1885
2000
  size: a.size,
1886
2001
  label: a.label,
1887
2002
  binding: a.binding
1888
- }), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(c, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((u) => {
1889
- Object.prototype.hasOwnProperty.call(a.editor, u) && (c.editor[u] = a.editor[u]);
1890
- }), r != null && r.updateContextSchema ? r.updateContextSchema(c) : (r.schema = Object.assign(a, c), Object.assign(e, c)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1891
- (u) => u.classList.remove("dgComponentSelected")
2003
+ }), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(u, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((f) => {
2004
+ Object.prototype.hasOwnProperty.call(a.editor, f) && (u.editor[f] = a.editor[f]);
2005
+ }), r != null && r.updateContextSchema ? r.updateContextSchema(u) : (r.schema = Object.assign(a, u), Object.assign(e, u)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2006
+ (f) => f.classList.remove("dgComponentSelected")
1892
2007
  ), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
1893
- (u) => u.classList.remove("dgComponentFocused")
1894
- ), Z.value++, ie(() => {
2008
+ (f) => f.classList.remove("dgComponentFocused")
2009
+ ), J.value++, ne(() => {
1895
2010
  this.getFormDesignerInstance().reloadPropertyPanel();
1896
2011
  });
1897
2012
  }
1898
2013
  getTipsConfig(e) {
1899
- return ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "textarea", "rich-text-editor"].includes(e.editor.type) ? {
2014
+ return ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "textarea", "rich-text-editor", "language-textbox"].includes(e.editor.type) ? {
1900
2015
  enableTips: {
1901
2016
  refreshPanelAfterChanged: !0,
1902
2017
  description: "",
@@ -1911,21 +2026,21 @@ class Mt extends xt {
1911
2026
  editor: {
1912
2027
  type: "code-editor",
1913
2028
  language: "html",
1914
- leftTemplate: Tt
2029
+ leftTemplate: Vt
1915
2030
  },
1916
2031
  visible: !!e.enableTips
1917
2032
  }
1918
2033
  } : {};
1919
2034
  }
1920
- getComponentConfig(e, n = {}, r = {}, s) {
1921
- var d, v;
1922
- const l = Object.assign({
2035
+ getComponentConfig(e, n = {}, r = {}, l) {
2036
+ var c, g;
2037
+ const s = Object.assign({
1923
2038
  description: "编辑器",
1924
2039
  title: "编辑器",
1925
2040
  type: "input-group",
1926
2041
  $converter: "/converter/property-editor.converter",
1927
2042
  parentPropertyID: "editor"
1928
- }, n), m = (d = e.binding) != null && d.field ? [] : ["Const", "Variable", "StateMachine"], a = this.getPropertyEditorParams(e, m, "readonly"), c = this.getPropertyEditorParams(e, m, "required"), u = {
2043
+ }, n), m = (c = e.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], a = this.getPropertyEditorParams(e, m, "readonly"), u = this.getPropertyEditorParams(e, m, "required"), f = {
1929
2044
  readonly: {
1930
2045
  description: "",
1931
2046
  title: "只读",
@@ -1935,8 +2050,8 @@ class Mt extends xt {
1935
2050
  description: "",
1936
2051
  title: "必填",
1937
2052
  type: "boolean",
1938
- editor: c,
1939
- visible: !!((v = e.binding) != null && v.field)
2053
+ editor: u,
2054
+ visible: !!((g = e.binding) != null && g.field)
1940
2055
  },
1941
2056
  placeholder: {
1942
2057
  description: "当控件没有值时在输入框中显示的文本",
@@ -1944,21 +2059,21 @@ class Mt extends xt {
1944
2059
  type: "string"
1945
2060
  }
1946
2061
  };
1947
- for (const f in r)
1948
- u[f] = Object.assign(u[f] || {}, r[f]);
2062
+ for (const d in r)
2063
+ f[d] = Object.assign(f[d] || {}, r[d]);
1949
2064
  const o = this;
1950
2065
  return {
1951
- ...l,
1952
- properties: { ...u },
1953
- setPropertyRelates(f, p) {
1954
- if (f) {
1955
- switch (f.propertyID) {
2066
+ ...s,
2067
+ properties: { ...f },
2068
+ setPropertyRelates(d, p) {
2069
+ if (d) {
2070
+ switch (d.propertyID) {
1956
2071
  case "readonly":
1957
2072
  case "required":
1958
- o.afterMutilEditorChanged(e, f);
2073
+ o.afterMutilEditorChanged(e, d);
1959
2074
  break;
1960
2075
  }
1961
- s && s.bind(o)(f, e, p);
2076
+ l && l.bind(o)(d, e, p);
1962
2077
  }
1963
2078
  }
1964
2079
  };
@@ -1970,17 +2085,17 @@ class Mt extends xt {
1970
2085
  * @param componentId 控件所在组件id
1971
2086
  */
1972
2087
  updateUnifiedLayoutAfterControlChanged(e, n, r) {
1973
- const s = e.split(" ");
1974
- let l = s.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), m = s.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), a = s.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), c = s.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
1975
- l = l || "col-12", m = m || "col-md-" + l.replace("col-", ""), a = a || "col-xl-" + m.replace("col-md-", ""), c = c || "col-el-" + a.replace("col-xl-", "");
1976
- const u = {
2088
+ const l = e.split(" ");
2089
+ let s = l.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), m = l.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), a = l.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), u = l.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
2090
+ s = s || "col-12", m = m || "col-md-" + s.replace("col-", ""), a = a || "col-xl-" + m.replace("col-md-", ""), u = u || "col-el-" + a.replace("col-xl-", "");
2091
+ const f = {
1977
2092
  id: n,
1978
- columnInSM: parseInt(l.replace("col-", ""), 10),
2093
+ columnInSM: parseInt(s.replace("col-", ""), 10),
1979
2094
  columnInMD: parseInt(m.replace("col-md-", ""), 10),
1980
2095
  columnInLG: parseInt(a.replace("col-xl-", ""), 10),
1981
- columnInEL: parseInt(c.replace("col-el-", ""), 10)
2096
+ columnInEL: parseInt(u.replace("col-el-", ""), 10)
1982
2097
  };
1983
- this.updateUnifiedLayoutAfterResponseLayoutChanged(r, u);
2098
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(r, f);
1984
2099
  }
1985
2100
  /**
1986
2101
  * 修改控件布局配置后更新Form统一布局配置
@@ -1991,17 +2106,17 @@ class Mt extends xt {
1991
2106
  const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
1992
2107
  if (!r || !r.unifiedLayout)
1993
2108
  return;
1994
- const s = [];
1995
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, s, 1), n) {
1996
- const f = s.find((p) => p.id === n.id);
1997
- Object.assign(f || {}, n);
2109
+ const l = [];
2110
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, l, 1), n) {
2111
+ const d = l.find((p) => p.id === n.id);
2112
+ Object.assign(d || {}, n);
1998
2113
  }
1999
- const l = s.map((f) => f.columnInSM), m = s.map((f) => f.columnInMD), a = s.map((f) => f.columnInLG), c = s.map((f) => f.columnInEL), u = this.checkIsUniqueColumn(l) ? l[0] : null, o = this.checkIsUniqueColumn(m) ? m[0] : null, d = this.checkIsUniqueColumn(a) ? a[0] : null, v = this.checkIsUniqueColumn(c) ? c[0] : null;
2114
+ const s = l.map((d) => d.columnInSM), m = l.map((d) => d.columnInMD), a = l.map((d) => d.columnInLG), u = l.map((d) => d.columnInEL), f = this.checkIsUniqueColumn(s) ? s[0] : null, o = this.checkIsUniqueColumn(m) ? m[0] : null, c = this.checkIsUniqueColumn(a) ? a[0] : null, g = this.checkIsUniqueColumn(u) ? u[0] : null;
2000
2115
  Object.assign(r.unifiedLayout, {
2001
- uniqueColClassInSM: u,
2116
+ uniqueColClassInSM: f,
2002
2117
  uniqueColClassInMD: o,
2003
- uniqueColClassInLG: d,
2004
- uniqueColClassInEL: v
2118
+ uniqueColClassInLG: c,
2119
+ uniqueColClassInEL: g
2005
2120
  });
2006
2121
  }
2007
2122
  /**
@@ -2042,26 +2157,33 @@ class Mt extends xt {
2042
2157
  * @param propertyData 下拉框控件属性值
2043
2158
  */
2044
2159
  checkEnumDataReadonly(e) {
2045
- return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === _e.EnumType);
2160
+ return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Ze.EnumType);
2046
2161
  }
2047
2162
  /**
2048
2163
  * 将字段值变化前事件、变化后事件追加到交互面板
2049
2164
  * 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
2050
2165
  */
2051
2166
  appendFieldValueChangeEvents(e, n) {
2052
- e.binding && e.binding.type === J.Form && e.binding.field ? (n.find((r) => r.label === "fieldValueChanging"), n.find((r) => r.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : n = n.filter((r) => r.label !== "fieldValueChanging" && r.label !== "fieldValueChanged");
2167
+ e.binding && e.binding.type === Y.Form && e.binding.field ? (n.find((r) => r.label === "fieldValueChanging"), n.find((r) => r.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : n = n.filter((r) => r.label !== "fieldValueChanging" && r.label !== "fieldValueChanged");
2053
2168
  }
2054
2169
  getControlMethodType(e) {
2055
2170
  if (!e.binding)
2056
2171
  return e.type;
2057
2172
  switch (e.binding.type) {
2058
- case J.Form:
2173
+ case Y.Form:
2059
2174
  return e.binding.path || e.type;
2060
- case J.Variable:
2175
+ case Y.Variable:
2061
2176
  return e.binding.fullPath || e.type;
2062
2177
  }
2063
2178
  return e.type;
2064
2179
  }
2180
+ updateLinkedLabel(e, n) {
2181
+ if (e.boundEventsList && e.boundEventsList.length > 0) {
2182
+ const r = e.boundEventsList.find((l) => l.boundEvents && l.boundEvents.label === "onClickLabel");
2183
+ n.linkLabel = !!r;
2184
+ } else
2185
+ n.linkLabel = !1;
2186
+ }
2065
2187
  /**
2066
2188
  * 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
2067
2189
  * @param propertyData 属性值
@@ -2069,8 +2191,8 @@ class Mt extends xt {
2069
2191
  * @param showPosition 面板展示位置
2070
2192
  * @param customEvent 输入控件特有的事件配置
2071
2193
  */
2072
- getEventPropertyConfig(e, n = "card", r, s) {
2073
- const l = this;
2194
+ getEventPropertyConfig(e, n = "card", r, l) {
2195
+ const s = this;
2074
2196
  let m = [...this.formGroupEvents];
2075
2197
  if (["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group"].includes(e.editor.type) && m.push({
2076
2198
  lable: "onClear",
@@ -2085,27 +2207,27 @@ class Mt extends xt {
2085
2207
  hide: !0
2086
2208
  };
2087
2209
  this.appendFieldValueChangeEvents(e, m);
2088
- const c = l.eventsEditorUtils.formProperties(e, l.viewModelId, m);
2210
+ const u = s.eventsEditorUtils.formProperties(e, s.viewModelId, m);
2089
2211
  return {
2090
2212
  title: "事件",
2091
2213
  hideTitle: !0,
2092
- properties: l.createBaseEventProperty(c),
2214
+ properties: s.createBaseEventProperty(u),
2093
2215
  tabId: "commands",
2094
2216
  tabName: "交互",
2095
- setPropertyRelates(d, v) {
2096
- const f = d.propertyValue;
2097
- delete e[l.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, f.controlInfo = { type: l.getControlMethodType(e), name: e.title }, l.eventsEditorUtils.saveRelatedParameters(e, l.viewModelId, f.events, f)), s && s(d, v, f);
2098
- const p = l.designViewModelUtils.getDgViewModel(l.viewModelId);
2099
- p && l.designViewModelField && p.changeField(l.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
2217
+ setPropertyRelates(c, g) {
2218
+ const d = c.propertyValue;
2219
+ delete e[s.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, d.controlInfo = { type: s.getControlMethodType(e), name: e.title }, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, d.events, d), s.updateLinkedLabel(d, g)), l && l(c, g, d);
2220
+ const p = s.designViewModelUtils.getDgViewModel(s.viewModelId);
2221
+ p && s.designViewModelField && p.changeField(s.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
2100
2222
  }
2101
2223
  };
2102
2224
  }
2103
- getExpressionConfig(e, n, r = ["compute", "dependency", "validate"], s) {
2104
- return new we(this.formSchemaUtils).getExpressionConfig(
2225
+ getExpressionConfig(e, n, r = ["compute", "dependency", "validate"], l) {
2226
+ return new Se(this.formSchemaUtils).getExpressionConfig(
2105
2227
  e,
2106
2228
  n,
2107
2229
  r,
2108
- s
2230
+ l
2109
2231
  );
2110
2232
  }
2111
2233
  getBindingDataType() {
@@ -2115,14 +2237,14 @@ class Mt extends xt {
2115
2237
  return this.getBindingDataType() === "number" ? this.numberEditorOptions : {};
2116
2238
  }
2117
2239
  updatePropertyValue(e, n, r) {
2118
- var s;
2119
- e.editor[n] !== r ? e.editor[n] = r : (s = this.getFormDesignerInstance()) == null || s.reloadPropertyPanel();
2240
+ var l;
2241
+ e.editor[n] !== r ? e.editor[n] = r : (l = this.getFormDesignerInstance()) == null || l.reloadPropertyPanel();
2120
2242
  }
2121
2243
  setBooleanValue(e, n, r) {
2122
- let s = r;
2123
- this.getBindingDataType() === "string" && (s = (s || "").trim() || (n === "trueValue" ? "true" : "false"));
2244
+ let l = r;
2245
+ this.getBindingDataType() === "string" && (l = (l || "").trim() || (n === "trueValue" ? "true" : "false"));
2124
2246
  const m = n === "trueValue" ? "falseValue" : "trueValue";
2125
- e.editor[m] === s && (s = s + 1), this.updatePropertyValue(e, n, s);
2247
+ e.editor[m] === l && (l = l + 1), this.updatePropertyValue(e, n, l);
2126
2248
  }
2127
2249
  getBooleanValueConverter() {
2128
2250
  return {
@@ -2133,42 +2255,99 @@ class Mt extends xt {
2133
2255
  };
2134
2256
  }
2135
2257
  }
2136
- class Pt extends Mt {
2137
- getPropertyConfig(t, e) {
2138
- return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.appearance = this.getAppearanceConfig(), this.getBehaviorConfig(t), this.getFilterBarConfig(t), this.getEventPropConfig(t), this.propertyConfig;
2139
- }
2140
- getBehaviorConfig(t) {
2141
- this.propertyConfig.categories.apperance = {
2142
- description: "Basic Infomation",
2143
- title: "行为",
2144
- properties: {
2145
- // showExtendSiderbar: {
2146
- // description: "是否在侧边栏中展示收起的控件",
2147
- // type: "boolean",
2148
- // title: "启用侧边栏收折",
2149
- // refreshPanelAfterChanged: true
2150
- // },
2151
- resetText: {
2152
- description: "选择筛选条件后,按钮“清空筛选”的文本",
2153
- type: "string",
2154
- title: "按钮“清空筛选”的文本"
2258
+ class Lt extends Bt {
2259
+ getPropertyConfig(i, e) {
2260
+ return this.propertyConfig.categories.basic = this.getBasicPropConfig(i), this.propertyConfig.categories.appearance = this.getAppearanceConfig(i, {
2261
+ // showExtendSiderbar: {
2262
+ // description: "是否在侧边栏中展示收起的控件",
2263
+ // type: "boolean",
2264
+ // title: "启用侧边栏收折",
2265
+ // refreshPanelAfterChanged: true
2266
+ // },
2267
+ resetText: {
2268
+ description: "选择筛选条件后,按钮“清空筛选”的文本",
2269
+ type: "string",
2270
+ title: "清空筛选按钮的文本"
2271
+ },
2272
+ filterText: {
2273
+ description: "设置筛选按钮的文本",
2274
+ type: "string",
2275
+ title: "筛选按钮的文本"
2276
+ },
2277
+ filterType: {
2278
+ description: "筛选的类型有两种:轻量筛选和平铺筛选",
2279
+ type: "enum",
2280
+ title: "筛选类型",
2281
+ editor: {
2282
+ default: "light",
2283
+ data: [
2284
+ { id: "light", name: "轻量" },
2285
+ { id: "tile", name: "平铺" }
2286
+ ]
2287
+ },
2288
+ refreshPanelAfterChanged: !0
2289
+ },
2290
+ tileShowType: {
2291
+ description: "多行展示:类似卡片输入控件的布局方式,筛选项多时会自动折行展示;在一行展示:筛选项多时会出现滚动条进行展示;单行展示:每个筛选项单独占一行展示。",
2292
+ type: "enum",
2293
+ title: "平铺筛选的展示方式",
2294
+ visible: i.filterType === "tile",
2295
+ editor: {
2296
+ default: "multiline",
2297
+ data: [
2298
+ { id: "multiline", name: "多行展示" },
2299
+ { id: "all-in-one", name: "在一行展示" },
2300
+ { id: "aline", name: "单行展示" }
2301
+ ]
2302
+ },
2303
+ refreshPanelAfterChanged: !0
2304
+ },
2305
+ allInOneAlign: {
2306
+ description: "在一行展示的方式下,可以左对齐或者右对齐",
2307
+ type: "enum",
2308
+ title: "对齐方式",
2309
+ visible: i.tileShowType === "all-in-one",
2310
+ editor: {
2311
+ default: "left",
2312
+ data: [
2313
+ { id: "left", name: "左对齐" },
2314
+ { id: "right", name: "右对齐" }
2315
+ ]
2316
+ }
2317
+ },
2318
+ lineLabelWidth: {
2319
+ description: "行展示方式下,筛选条件的文字标签的宽度是否固定,固定宽度:标签宽度固定;自动宽度:标签宽度不固定跟随内容变化",
2320
+ type: "enum",
2321
+ title: "标签宽度",
2322
+ visible: i.tileShowType !== "all-in-one",
2323
+ editor: {
2324
+ default: "fixed",
2325
+ data: [
2326
+ { id: "fixed", name: "固定宽度" },
2327
+ { id: "auto", name: "自动宽度" }
2328
+ ]
2155
2329
  }
2156
2330
  }
2157
- };
2331
+ }), this.propertyConfig.categories.behavior = this.getBehaviorConfig(i), this.getFilterBarConfig(i), this.getEventPropConfig(i), this.propertyConfig;
2158
2332
  }
2159
- getFilterBarConfig(t) {
2333
+ getFilterBarConfig(i) {
2160
2334
  const e = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId), n = this;
2161
- this.getPropertyEditorParams(t, [], "visible"), this.getPropertyEditorParams(t, [], "disable"), this.propertyConfig.categories.control = {
2335
+ this.propertyConfig.categories.control = {
2162
2336
  description: "Basic Infomation",
2163
2337
  title: "编辑器",
2164
2338
  properties: {
2339
+ liveSearch: {
2340
+ description: "即时搜索,条件变更触发查询事件;非即时搜索,通过点击筛选按钮触发查询事件。",
2341
+ type: "boolean",
2342
+ title: "即时搜索"
2343
+ },
2165
2344
  fields: {
2166
2345
  description: "筛选条字段设置",
2167
2346
  title: "筛选条字段",
2168
2347
  type: "",
2169
2348
  editor: {
2170
2349
  type: "query-solution-config",
2171
- source: "filter-bar",
2350
+ source: i.filterType === "tile" ? "filter-tile" : "filter-bar",
2172
2351
  title: "筛选条字段",
2173
2352
  fieldsConfig: e,
2174
2353
  formSchemaUtils: this.formSchemaUtils,
@@ -2179,29 +2358,19 @@ class Pt extends Mt {
2179
2358
  schemaService: this.schemaService
2180
2359
  }
2181
2360
  },
2182
- // visible: {
2183
- // description: "运行时组件是否可见",
2184
- // title: "是否可见",
2185
- // editor: visibleEditor
2186
- // },
2187
- // disable: {
2188
- // description: "是否禁用",
2189
- // title: "是否禁用",
2190
- // editor: disableEditor
2191
- // },
2192
2361
  defaultValues: {
2193
2362
  description: "默认值绑定字段",
2194
2363
  type: "object",
2195
2364
  title: "默认值绑定字段",
2196
- editor: this.getPropertyEditorParams(t, ["Variable"], "", {}, { newVariableType: "Object" })
2365
+ editor: this.getPropertyEditorParams(i, ["Variable"], "", {}, { newVariableType: "Object" })
2197
2366
  }
2198
2367
  },
2199
- setPropertyRelates(r, s) {
2368
+ setPropertyRelates(r, l) {
2200
2369
  if (r)
2201
2370
  switch (r.propertyID) {
2202
2371
  case "visible":
2203
2372
  case "disable":
2204
- n.afterMutilEditorChanged(t, r);
2373
+ n.afterMutilEditorChanged(i, r);
2205
2374
  break;
2206
2375
  case "defaultValues":
2207
2376
  n.addNewVariableToViewModel(r, n.viewModelId);
@@ -2210,32 +2379,32 @@ class Pt extends Mt {
2210
2379
  }
2211
2380
  };
2212
2381
  }
2213
- getEventPropConfig(t) {
2382
+ getEventPropConfig(i) {
2214
2383
  const e = [
2215
2384
  {
2216
2385
  label: "onQuery",
2217
2386
  name: "查询事件"
2218
2387
  }
2219
- ], n = this, r = n.eventsEditorUtils.formProperties(t, n.viewModelId, e), s = n.createBaseEventProperty(r);
2388
+ ], n = this, r = n.eventsEditorUtils.formProperties(i, n.viewModelId, e), l = n.createBaseEventProperty(r);
2220
2389
  this.propertyConfig.categories.eventsEditor = {
2221
2390
  title: "事件",
2222
2391
  hideTitle: !0,
2223
- properties: s,
2392
+ properties: l,
2224
2393
  // 这个属性,标记当属性变更得时候触发重新更新属性
2225
2394
  refreshPanelAfterChanged: !0,
2226
2395
  tabId: "commands",
2227
2396
  tabName: "交互",
2228
- setPropertyRelates(l, m) {
2229
- const a = l.propertyValue;
2230
- delete t[n.viewModelId], a && (a.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(t, n.viewModelId, a.events, a)), t.remoteSort = !!t.columnSorted;
2397
+ setPropertyRelates(s, m) {
2398
+ const a = s.propertyValue;
2399
+ delete i[n.viewModelId], a && (a.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(i, n.viewModelId, a.events, a)), i.remoteSort = !!i.columnSorted;
2231
2400
  }
2232
2401
  };
2233
2402
  }
2234
2403
  }
2235
- function kt(i, t) {
2404
+ function Ot(t, i) {
2236
2405
  function e(m, a) {
2237
- const c = i.schema;
2238
- return new Pt(m, t).getPropertyConfig(c, a);
2406
+ const u = t.schema;
2407
+ return new Lt(m, i).getPropertyConfig(u, a);
2239
2408
  }
2240
2409
  function n() {
2241
2410
  return !1;
@@ -2243,20 +2412,20 @@ function kt(i, t) {
2243
2412
  function r() {
2244
2413
  return !1;
2245
2414
  }
2246
- function s() {
2415
+ function l() {
2247
2416
  return !1;
2248
2417
  }
2249
- function l() {
2418
+ function s() {
2250
2419
  var m;
2251
- if (i && t) {
2252
- const { formSchemaUtils: a } = t, c = a.getControlBasicInfoMap(), { schema: u } = i, o = tt["filter-bar"].name;
2253
- c.set(u.id, {
2420
+ if (t && i) {
2421
+ const { formSchemaUtils: a } = i, u = a.getControlBasicInfoMap(), { schema: f } = t, o = rt["filter-bar"].name;
2422
+ u.set(f.id, {
2254
2423
  componentTitle: o,
2255
2424
  parentPathName: o
2256
- }), (m = u.fields) != null && m.length && u.fields.map((d) => {
2257
- c.set(d.id, {
2258
- componentTitle: d.name,
2259
- parentPathName: `${o} > ${d.name}`
2425
+ }), (m = f.fields) != null && m.length && f.fields.map((c) => {
2426
+ u.set(c.id, {
2427
+ componentTitle: c.name,
2428
+ parentPathName: `${o} > ${c.name}`
2260
2429
  });
2261
2430
  });
2262
2431
  }
@@ -2265,155 +2434,155 @@ function kt(i, t) {
2265
2434
  getPropsConfig: e,
2266
2435
  canAccepts: n,
2267
2436
  checkCanDeleteComponent: r,
2268
- checkCanMoveComponent: s,
2269
- setComponentBasicInfoMap: l
2437
+ checkCanMoveComponent: l,
2438
+ setComponentBasicInfoMap: s
2270
2439
  };
2271
2440
  }
2272
- function Ie(i, t) {
2441
+ function Te(t, i) {
2273
2442
  let e;
2274
2443
  function n(o) {
2275
- const { properties: d, title: v, ignore: f } = o, p = f && Array.isArray(f), h = Object.keys(d).reduce((y, C) => ((!p || !f.find((V) => V === C)) && (y[C] = d[C].type === "object" && d[C].properties ? n(d[C]) : H(d[C].default)), y), {});
2276
- if (v && (!p || !f.find((y) => y === "id"))) {
2277
- const y = v.toLowerCase().replace(/-/g, "_");
2278
- h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
2444
+ const { properties: c, title: g, ignore: d } = o, p = d && Array.isArray(d), h = Object.keys(c).reduce((b, w) => ((!p || !d.find((O) => O === w)) && (b[w] = c[w].type === "object" && c[w].properties ? n(c[w]) : Z(c[w].default)), b), {});
2445
+ if (g && (!p || !d.find((b) => b === "id"))) {
2446
+ const b = g.toLowerCase().replace(/-/g, "_");
2447
+ h.id = `${b}_${Math.random().toString().slice(2, 6)}`;
2279
2448
  }
2280
2449
  return h;
2281
2450
  }
2282
2451
  function r(o) {
2283
- const { properties: d, title: v, required: f } = o;
2284
- if (f && Array.isArray(f)) {
2285
- const p = f.reduce((h, y) => (h[y] = d[y].type === "object" && d[y].properties ? n(d[y]) : H(d[y].default), h), {});
2286
- if (v && f.find((h) => h === "id")) {
2287
- const h = v.toLowerCase().replace(/-/g, "_");
2452
+ const { properties: c, title: g, required: d } = o;
2453
+ if (d && Array.isArray(d)) {
2454
+ const p = d.reduce((h, b) => (h[b] = c[b].type === "object" && c[b].properties ? n(c[b]) : Z(c[b].default), h), {});
2455
+ if (g && d.find((h) => h === "id")) {
2456
+ const h = g.toLowerCase().replace(/-/g, "_");
2288
2457
  p.id = `${h}_${Math.random().toString().slice(2, 6)}`;
2289
2458
  }
2290
2459
  return p;
2291
2460
  }
2292
2461
  return {
2293
- type: v
2462
+ type: g
2294
2463
  };
2295
2464
  }
2296
- function s(o, d = {}, v) {
2297
- const f = i[o];
2298
- if (f) {
2299
- let p = r(f);
2300
- const h = t[o];
2301
- return p = h ? h({ getSchemaByType: s }, p, d, v) : p, e != null && e.appendIdentifyForNewControl && e.appendIdentifyForNewControl(p), p;
2465
+ function l(o, c = {}, g) {
2466
+ const d = t[o];
2467
+ if (d) {
2468
+ let p = r(d);
2469
+ const h = i[o];
2470
+ return p = h ? h({ getSchemaByType: l }, p, c, g) : p, e != null && e.appendIdentifyForNewControl && e.appendIdentifyForNewControl(p), p;
2302
2471
  }
2303
2472
  return null;
2304
2473
  }
2305
- function l(o, d) {
2306
- const v = n(d);
2307
- return Object.keys(v).reduce((f, p) => (Object.prototype.hasOwnProperty.call(o, p) && (f[p] && de(f[p]) && de(o[p] || !o[p]) ? Object.assign(f[p], o[p] || {}) : f[p] = o[p]), f), v), v;
2474
+ function s(o, c) {
2475
+ const g = n(c);
2476
+ return Object.keys(g).reduce((d, p) => (Object.prototype.hasOwnProperty.call(o, p) && (d[p] && pe(d[p]) && pe(o[p] || !o[p]) ? Object.assign(d[p], o[p] || {}) : d[p] = o[p]), d), g), g;
2308
2477
  }
2309
- function m(o, d) {
2310
- return Object.keys(o).filter((f) => o[f] != null).reduce((f, p) => {
2311
- if (d.has(p)) {
2312
- const h = d.get(p);
2478
+ function m(o, c) {
2479
+ return Object.keys(o).filter((d) => o[d] != null).reduce((d, p) => {
2480
+ if (c.has(p)) {
2481
+ const h = c.get(p);
2313
2482
  if (typeof h == "string")
2314
- f[h] = o[p];
2483
+ d[h] = o[p];
2315
2484
  else {
2316
- const y = h(p, o[p], o);
2317
- Object.assign(f, y);
2485
+ const b = h(p, o[p], o);
2486
+ Object.assign(d, b);
2318
2487
  }
2319
2488
  } else
2320
- f[p] = o[p];
2321
- return f;
2489
+ d[p] = o[p];
2490
+ return d;
2322
2491
  }, {});
2323
2492
  }
2324
- function a(o, d, v = /* @__PURE__ */ new Map()) {
2325
- const f = l(o, d);
2326
- return m(f, v);
2493
+ function a(o, c, g = /* @__PURE__ */ new Map()) {
2494
+ const d = s(o, c);
2495
+ return m(d, g);
2327
2496
  }
2328
- function c(o) {
2329
- var v;
2330
- const d = o.type;
2331
- if (d) {
2332
- const f = i[d];
2333
- if (!f)
2497
+ function u(o) {
2498
+ var g;
2499
+ const c = o.type;
2500
+ if (c) {
2501
+ const d = t[c];
2502
+ if (!d)
2334
2503
  return o;
2335
- const p = l(o, f), h = ((v = o.editor) == null ? void 0 : v.type) || "";
2504
+ const p = s(o, d), h = ((g = o.editor) == null ? void 0 : g.type) || "";
2336
2505
  if (h) {
2337
- const y = i[h], C = l(o.editor, y);
2338
- p.editor = C;
2506
+ const b = t[h], w = s(o.editor, b);
2507
+ p.editor = w;
2339
2508
  }
2340
2509
  return p;
2341
2510
  }
2342
2511
  return o;
2343
2512
  }
2344
- function u(o) {
2513
+ function f(o) {
2345
2514
  e = o;
2346
2515
  }
2347
- return { getSchemaByType: s, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext: u };
2516
+ return { getSchemaByType: l, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext: f };
2348
2517
  }
2349
- const xe = {}, Ee = {}, { resolveSchemaWithDefaultValue: Vt, resolveSchemaToProps: Bt, mappingSchemaToProps: Lt } = Ie(xe, Ee);
2350
- function Nt(i = {}) {
2351
- function t(c, u, o, d) {
2518
+ const Ee = {}, Me = {}, { resolveSchemaWithDefaultValue: Nt, resolveSchemaToProps: At, mappingSchemaToProps: Rt } = Te(Ee, Me);
2519
+ function Ut(t = {}) {
2520
+ function i(u, f, o, c) {
2352
2521
  if (typeof o == "number")
2353
- return d[c].length === o;
2522
+ return c[u].length === o;
2354
2523
  if (typeof o == "object") {
2355
- const v = Object.keys(o)[0], f = o[v];
2356
- if (v === "not")
2357
- return Number(d[c].length) !== Number(f);
2358
- if (v === "moreThan")
2359
- return Number(d[c].length) >= Number(f);
2360
- if (v === "lessThan")
2361
- return Number(d[c].length) <= Number(f);
2524
+ const g = Object.keys(o)[0], d = o[g];
2525
+ if (g === "not")
2526
+ return Number(c[u].length) !== Number(d);
2527
+ if (g === "moreThan")
2528
+ return Number(c[u].length) >= Number(d);
2529
+ if (g === "lessThan")
2530
+ return Number(c[u].length) <= Number(d);
2362
2531
  }
2363
2532
  return !1;
2364
2533
  }
2365
- function e(c, u, o, d) {
2366
- return d[c] && d[c].propertyValue && String(d[c].propertyValue.value) === String(o);
2534
+ function e(u, f, o, c) {
2535
+ return c[u] && c[u].propertyValue && String(c[u].propertyValue.value) === String(o);
2367
2536
  }
2368
2537
  const n = /* @__PURE__ */ new Map([
2369
- ["length", t],
2538
+ ["length", i],
2370
2539
  ["getProperty", e]
2371
2540
  ]);
2372
- Object.keys(i).reduce((c, u) => (c.set(u, i[u]), c), n);
2373
- function r(c, u) {
2374
- const o = c;
2375
- return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: c, value: !!u }] : typeof u == "object" ? Object.keys(u).map((d) => {
2376
- if (d === "length")
2377
- return { target: o, operator: "length", param: null, value: u[d] };
2378
- const v = d, f = u[d];
2379
- return { target: o, operator: "getProperty", param: v, value: f };
2541
+ Object.keys(t).reduce((u, f) => (u.set(f, t[f]), u), n);
2542
+ function r(u, f) {
2543
+ const o = u;
2544
+ return typeof f == "number" ? [{ target: o, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: o, operator: "getProperty", param: u, value: !!f }] : typeof f == "object" ? Object.keys(f).map((c) => {
2545
+ if (c === "length")
2546
+ return { target: o, operator: "length", param: null, value: f[c] };
2547
+ const g = c, d = f[c];
2548
+ return { target: o, operator: "getProperty", param: g, value: d };
2380
2549
  }) : [];
2381
2550
  }
2382
- function s(c) {
2383
- return Object.keys(c).reduce((o, d) => {
2384
- const v = r(d, c[d]);
2385
- return o.push(...v), o;
2551
+ function l(u) {
2552
+ return Object.keys(u).reduce((o, c) => {
2553
+ const g = r(c, u[c]);
2554
+ return o.push(...g), o;
2386
2555
  }, []);
2387
2556
  }
2388
- function l(c, u) {
2389
- if (n.has(c.operator)) {
2390
- const o = n.get(c.operator);
2391
- return o && o(c.target, c.param, c.value, u) || !1;
2557
+ function s(u, f) {
2558
+ if (n.has(u.operator)) {
2559
+ const o = n.get(u.operator);
2560
+ return o && o(u.target, u.param, u.value, f) || !1;
2392
2561
  }
2393
2562
  return !1;
2394
2563
  }
2395
- function m(c, u) {
2396
- return s(c).reduce((v, f) => v && l(f, u), !0);
2564
+ function m(u, f) {
2565
+ return l(u).reduce((g, d) => g && s(d, f), !0);
2397
2566
  }
2398
- function a(c, u) {
2399
- const o = Object.keys(c), d = o.includes("allOf"), v = o.includes("anyOf"), f = d || v, y = (f ? c[f ? d ? "allOf" : "anyOf" : "allOf"] : [c]).map((V) => m(V, u));
2400
- return d ? !y.includes(!1) : y.includes(!0);
2567
+ function a(u, f) {
2568
+ const o = Object.keys(u), c = o.includes("allOf"), g = o.includes("anyOf"), d = c || g, b = (d ? u[d ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((O) => m(O, f));
2569
+ return c ? !b.includes(!1) : b.includes(!0);
2401
2570
  }
2402
2571
  return { parseValueSchema: a };
2403
2572
  }
2404
- const Ot = {
2405
- convertTo: (i, t, e, n) => {
2406
- i.appearance || (i.appearance = {}), i.appearance[t] = e;
2573
+ const $t = {
2574
+ convertTo: (t, i, e, n) => {
2575
+ t.appearance || (t.appearance = {}), t.appearance[i] = e;
2407
2576
  },
2408
- convertFrom: (i, t, e) => i.appearance ? i.appearance[t] : i[t]
2409
- }, At = {
2410
- convertFrom: (i, t, e) => i.buttons && i.buttons.length ? `共 ${i.buttons.length} 项` : "无"
2411
- }, Ut = {
2412
- convertTo: (i, t, e, n) => {
2413
- i.editor && (i.editor[t] = e);
2577
+ convertFrom: (t, i, e) => t.appearance ? t.appearance[i] : t[i]
2578
+ }, Wt = {
2579
+ convertFrom: (t, i, e) => t.buttons && t.buttons.length ? `共 ${t.buttons.length} 项` : "无"
2580
+ }, qt = {
2581
+ convertTo: (t, i, e, n) => {
2582
+ t.editor && (t.editor[i] = e);
2414
2583
  },
2415
- convertFrom: (i, t, e) => i.editor && Object.prototype.hasOwnProperty.call(i.editor, t) ? i.editor[t] : i[t]
2416
- }, $t = {
2584
+ convertFrom: (t, i, e) => t.editor && Object.prototype.hasOwnProperty.call(t.editor, i) ? t.editor[i] : t[i]
2585
+ }, jt = {
2417
2586
  button: { type: "button", name: "按钮" },
2418
2587
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
2419
2588
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -2459,10 +2628,12 @@ const Ot = {
2459
2628
  drawer: { type: "drawer", name: "抽屉" },
2460
2629
  "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
2461
2630
  "list-nav": { type: "list-nav", name: "列表导航" },
2631
+ nav: { type: "nav", name: "标签类导航" },
2462
2632
  "list-view": { type: "list-view", name: "列表" },
2463
2633
  "filter-bar": { type: "filter-bar", name: "筛选条" },
2464
2634
  "language-textbox": { type: "language-textbox", name: "多语输入框" },
2465
2635
  image: { type: "image", name: "图像" },
2636
+ avatar: { type: "avatar", name: "头像" },
2466
2637
  "discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
2467
2638
  "discussion-list": { type: "discussion-list", name: "评论列表" },
2468
2639
  comment: { type: "comment", name: "评论区" },
@@ -2470,56 +2641,57 @@ const Ot = {
2470
2641
  calendar: { type: "calendar", name: "日历", icon: "date-picker" },
2471
2642
  wizard: { type: "wizard", name: "向导", icon: "wizard" },
2472
2643
  "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
2473
- "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
2474
- }, Rt = {
2475
- convertFrom: (i, t, e) => {
2644
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
2645
+ step: { type: "step", name: "步骤条", icon: "step" }
2646
+ }, zt = {
2647
+ convertFrom: (t, i, e) => {
2476
2648
  var r;
2477
- const n = i.editor && i.editor[t] ? i.editor[t] : i[t];
2478
- return ((r = $t[n]) == null ? void 0 : r.name) || n;
2649
+ const n = t.editor && t.editor[i] ? t.editor[i] : t[i];
2650
+ return ((r = jt[n]) == null ? void 0 : r.name) || n;
2479
2651
  }
2480
- }, jt = {
2481
- convertTo: (i, t, e, n) => {
2482
- i[t] = i[t];
2652
+ }, Gt = {
2653
+ convertTo: (t, i, e, n) => {
2654
+ t[i] = t[i];
2483
2655
  },
2484
- convertFrom: (i, t, e) => i.editor ? e.getRealEditorType(i.editor.type) : ""
2485
- }, qt = {
2486
- convertTo: (i, t, e, n) => {
2487
- (i.type === "data-grid-column" || i.type === "tree-grid-column") && (i.formatter ? i.formatter[t] = e : i.formatter = {
2488
- [t]: e
2656
+ convertFrom: (t, i, e) => t.editor ? e.getRealEditorType(t.editor.type) : ""
2657
+ }, Dt = {
2658
+ convertTo: (t, i, e, n) => {
2659
+ (t.type === "data-grid-column" || t.type === "tree-grid-column") && (t.formatter ? t.formatter[i] = e : t.formatter = {
2660
+ [i]: e
2489
2661
  });
2490
2662
  },
2491
- convertFrom: (i, t, e) => {
2492
- if (i.formatter) {
2493
- if (t === "trueText")
2494
- return i.formatter.trueText;
2495
- if (t === "falseText")
2496
- return i.formatter.falseText;
2497
- if (t === "prefix")
2498
- return i.formatter.prefix;
2499
- if (t === "suffix")
2500
- return i.formatter.suffix;
2501
- if (t === "precision")
2502
- return i.formatter.precision;
2503
- if (t === "decimal")
2504
- return i.formatter.decimal;
2505
- if (t === "thousand")
2506
- return i.formatter.thousand;
2507
- if (t === "dateFormat")
2508
- return i.formatter.dateFormat || "yyyy-MM-dd";
2509
- if (t === "customFormat")
2510
- return i.formatter.customFormat;
2511
- if (t === "type")
2512
- return i.formatter.type || "none";
2513
- if (t === "customFormat")
2514
- return i.formmater.customFormat;
2663
+ convertFrom: (t, i, e) => {
2664
+ if (t.formatter) {
2665
+ if (i === "trueText")
2666
+ return t.formatter.trueText;
2667
+ if (i === "falseText")
2668
+ return t.formatter.falseText;
2669
+ if (i === "prefix")
2670
+ return t.formatter.prefix;
2671
+ if (i === "suffix")
2672
+ return t.formatter.suffix;
2673
+ if (i === "precision")
2674
+ return t.formatter.precision;
2675
+ if (i === "decimal")
2676
+ return t.formatter.decimal;
2677
+ if (i === "thousand")
2678
+ return t.formatter.thousand;
2679
+ if (i === "dateFormat")
2680
+ return t.formatter.dateFormat || "yyyy-MM-dd";
2681
+ if (i === "customFormat")
2682
+ return t.formatter.customFormat;
2683
+ if (i === "type")
2684
+ return t.formatter.type || "none";
2685
+ if (i === "customFormat")
2686
+ return t.formmater.customFormat;
2515
2687
  }
2516
2688
  return "none";
2517
2689
  }
2518
- }, Wt = {
2519
- convertTo: (i, t, e, n) => {
2520
- i.command ? i.command[t] = e : i.command = {
2521
- [t]: e
2522
- }, t === "enableType" && e === "default" && (i.command.enable = !0, i.command.commands = [
2690
+ }, Ht = {
2691
+ convertTo: (t, i, e, n) => {
2692
+ t.command ? t.command[i] = e : t.command = {
2693
+ [i]: e
2694
+ }, i === "enableType" && e === "default" && (t.command.enable = !0, t.command.commands = [
2523
2695
  {
2524
2696
  text: "编辑",
2525
2697
  type: "primary",
@@ -2530,7 +2702,7 @@ const Ot = {
2530
2702
  type: "danger",
2531
2703
  command: "remove"
2532
2704
  }
2533
- ]), t === "enableType" && e === "custom" && (i.command.enable = !0, i.command.commands = [
2705
+ ]), i === "enableType" && e === "custom" && (t.command.enable = !0, t.command.commands = [
2534
2706
  {
2535
2707
  value: "add",
2536
2708
  text: {
@@ -2558,187 +2730,198 @@ const Ot = {
2558
2730
  },
2559
2731
  type: "remove"
2560
2732
  }
2561
- ]), t === "enableType" && e === "unable" && (i.command.enable = !1);
2733
+ ]), i === "enableType" && e === "unable" && (t.command.enable = !1);
2562
2734
  },
2563
- convertFrom: (i, t, e) => {
2735
+ convertFrom: (t, i, e) => {
2564
2736
  var n, r;
2565
- if (i.command) {
2566
- if (t === "enableType") {
2567
- const s = (r = (n = i.command) == null ? void 0 : n.commands) == null ? void 0 : r.find((l) => l.command === "edit" && l.type === "primary");
2568
- return i.command.enable ? s ? "default" : "custom" : "unable";
2737
+ if (t.command) {
2738
+ if (i === "enableType") {
2739
+ const l = (r = (n = t.command) == null ? void 0 : n.commands) == null ? void 0 : r.find((s) => s.command === "edit" && s.type === "primary");
2740
+ return t.command.enable ? l ? "default" : "custom" : "unable";
2569
2741
  }
2570
- if (t === "commands")
2571
- return i.command.enableType === "custom" ? i.command.commands : [];
2572
- if (t === "formatter")
2573
- return i.command.formatter;
2574
- if (t === "count")
2575
- return i.command.count;
2742
+ if (i === "commands")
2743
+ return t.command.enableType === "custom" ? t.command.commands : [];
2744
+ if (i === "formatter")
2745
+ return t.command.formatter;
2746
+ if (i === "count")
2747
+ return t.command.count;
2576
2748
  }
2577
2749
  return "";
2578
2750
  }
2579
- }, zt = {
2580
- convertTo: (i, t, e, n) => {
2581
- i.column ? i.column[t] = e : i.column = {
2582
- [t]: e
2583
- }, t === "fitColumns" && e && (i.column.fitMode || (i.column.fitMode = "average"));
2751
+ }, Qt = {
2752
+ convertTo: (t, i, e, n) => {
2753
+ t.column ? t.column[i] = e : t.column = {
2754
+ [i]: e
2755
+ }, i === "fitColumns" && e && (t.column.fitMode || (t.column.fitMode = "average"));
2584
2756
  },
2585
- convertFrom: (i, t, e) => {
2586
- if (i.column) {
2587
- if (t === "fitColumns")
2588
- return i.column.fitColumns;
2589
- if (t === "fitMode")
2590
- return i.column.fitMode;
2757
+ convertFrom: (t, i, e) => {
2758
+ if (t.column) {
2759
+ if (i === "fitColumns")
2760
+ return t.column.fitColumns;
2761
+ if (i === "fitMode")
2762
+ return t.column.fitMode;
2591
2763
  }
2592
2764
  return "";
2593
2765
  }
2594
- }, Gt = {
2595
- convertTo: (i, t, e, n) => {
2596
- i.summary ? i.summary[t] = e : i.summary = {
2597
- [t]: e
2598
- }, t === "enable" && e && (i.summary ? i.summary.groupFields || (i.summary.groupFields = []) : i.summary = {
2766
+ }, _t = {
2767
+ convertTo: (t, i, e, n) => {
2768
+ t.summary ? t.summary[i] = e : t.summary = {
2769
+ [i]: e
2770
+ }, i === "enable" && e && (t.summary ? t.summary.groupFields || (t.summary.groupFields = []) : t.summary = {
2599
2771
  enable: e,
2600
2772
  groupFields: []
2601
2773
  });
2602
2774
  },
2603
- convertFrom: (i, t, e) => {
2775
+ convertFrom: (t, i, e) => {
2604
2776
  var n;
2605
- return t === "customSummaryStyle" ? i.summary.customSummaryStyle : t === "position" ? ((n = i.summary) == null ? void 0 : n[t]) || "bottom" : i.summary && t === "enable" ? i.summary.enable : i.type === "data-grid-column" ? i.enableSummary === void 0 ? !1 : i.enableSummary : "";
2777
+ return i === "customSummaryStyle" ? t.summary.customSummaryStyle : i === "position" ? ((n = t.summary) == null ? void 0 : n[i]) || "bottom" : t.summary && i === "enable" ? t.summary.enable : t.type === "data-grid-column" ? t.enableSummary === void 0 ? !1 : t.enableSummary : "";
2606
2778
  }
2607
- }, Dt = {
2608
- convertTo: (i, t, e, n) => {
2609
- i.group ? i.group[t] = e : i.group = {
2610
- [t]: e
2611
- }, t === "enable" && e && (i.group ? i.group.groupFields || (i.group.groupFields = []) : i.group = {
2779
+ }, Xt = {
2780
+ convertTo: (t, i, e, n) => {
2781
+ t.group ? t.group[i] = e : t.group = {
2782
+ [i]: e
2783
+ }, i === "enable" && e && (t.group ? t.group.groupFields || (t.group.groupFields = []) : t.group = {
2612
2784
  enable: e,
2613
2785
  groupFields: [],
2614
2786
  showSummary: !1
2615
2787
  });
2616
2788
  },
2617
- convertFrom: (i, t, e) => {
2618
- if (i.group) {
2619
- if (t === "enable")
2620
- return i.group.enable;
2621
- if (t === "showSummary")
2622
- return i.group.showSummary;
2789
+ convertFrom: (t, i, e) => {
2790
+ if (t.group) {
2791
+ if (i === "enable")
2792
+ return t.group.enable;
2793
+ if (i === "showSummary")
2794
+ return t.group.showSummary;
2623
2795
  }
2624
2796
  }
2625
- }, Qt = {
2626
- convertFrom: (i, t) => i.binding ? i.binding.path : "",
2627
- convertTo: (i, t, e) => {
2797
+ }, Zt = {
2798
+ convertFrom: (t, i) => t.binding ? t.binding.path : "",
2799
+ convertTo: (t, i, e) => {
2628
2800
  if (e && e.length > 0) {
2629
2801
  const n = e[0];
2630
- i.binding || (i.binding = {}), i.binding.type = "Form", i.binding.path = n.bindingField, i.binding.field = n.id, i.binding.fullPath = n.path, i.path = n.bindingPath;
2802
+ t.binding || (t.binding = {}), t.binding.type = "Form", t.binding.path = n.bindingField, t.binding.field = n.id, t.binding.fullPath = n.path, t.path = n.bindingPath;
2631
2803
  }
2632
2804
  }
2633
- }, _t = {
2634
- convertTo: (i, t, e, n) => {
2635
- i.pagination || (i.pagination = {}), t === "sizeLimits" ? i.pagination.sizeLimits = e.split(",") : i.pagination[t] = e;
2805
+ }, Jt = {
2806
+ convertTo: (t, i, e, n) => {
2807
+ t.pagination || (t.pagination = {}), i === "sizeLimits" ? t.pagination.sizeLimits = e.split(",") : t.pagination[i] = e;
2636
2808
  },
2637
- convertFrom: (i, t, e) => i.pagination ? t === "sizeLimits" ? i.pagination.sizeLimits.join(",") : i.pagination[t] : i[t]
2638
- }, Ht = {
2639
- convertTo: (i, t, e, n) => {
2640
- i.rowNumber || (i.rowNumber = {}), i.rowNumber[t] = e;
2809
+ convertFrom: (t, i, e) => t.pagination ? i === "sizeLimits" ? t.pagination.sizeLimits.join(",") : t.pagination[i] : t[i]
2810
+ }, Yt = {
2811
+ convertTo: (t, i, e, n) => {
2812
+ t.rowNumber || (t.rowNumber = {}), t.rowNumber[i] = e;
2641
2813
  },
2642
- convertFrom: (i, t, e) => i.rowNumber ? i.rowNumber[t] : i[t]
2643
- }, Xt = {
2644
- convertTo: (i, t, e, n) => {
2645
- i.selection || (i.selection = {}), i.selection[t] = e;
2814
+ convertFrom: (t, i, e) => t.rowNumber ? t.rowNumber[i] : t[i]
2815
+ }, Kt = {
2816
+ convertTo: (t, i, e, n) => {
2817
+ t.selection || (t.selection = {}), t.selection[i] = e;
2646
2818
  },
2647
- convertFrom: (i, t, e) => {
2819
+ convertFrom: (t, i, e) => {
2648
2820
  var n, r;
2649
- return t === "showCheckbox" ? (n = i.selection) != null && n.multiSelect ? !0 : (r = i.selection) == null ? void 0 : r.showCheckbox : i.selection ? i.selection[t] : i[t];
2821
+ return i === "showCheckbox" ? (n = t.selection) != null && n.multiSelect ? !0 : (r = t.selection) == null ? void 0 : r.showCheckbox : t.selection ? t.selection[i] : t[i];
2650
2822
  }
2651
- }, Zt = {
2652
- convertFrom: (i, t, e) => i[t] && i[t].length ? `共 ${i[t].length} 项` : ""
2653
- }, Jt = {
2654
- convertFrom: (i, t) => i[t] || "",
2655
- convertTo: (i, t, e) => {
2656
- i[t] = e;
2823
+ }, ei = {
2824
+ convertFrom: (t, i, e) => t[i] && t[i].length ? `共 ${t[i].length} 项` : ""
2825
+ }, ti = {
2826
+ convertFrom: (t, i) => t[i] || "",
2827
+ convertTo: (t, i, e) => {
2828
+ t[i] = e;
2657
2829
  }
2658
- }, Yt = {
2659
- convertTo: (i, t, e, n) => {
2660
- i.size || (i.size = {}), i.size[t] = e;
2830
+ }, ii = {
2831
+ convertTo: (t, i, e, n) => {
2832
+ t.size || (t.size = {}), t.size[i] = e;
2661
2833
  },
2662
- convertFrom: (i, t, e) => i.size ? i.size[t] : i[t]
2663
- }, Kt = {
2664
- convertFrom: (i, t, e) => {
2834
+ convertFrom: (t, i, e) => t.size ? t.size[i] : t[i]
2835
+ }, ni = {
2836
+ convertFrom: (t, i, e) => {
2665
2837
  var n, r;
2666
- return (n = i.formatter) != null && n.data && t === "formatterEnumData" && !i.formatterEnumData ? (r = i.formatter) == null ? void 0 : r.data : i.formatterEnumData;
2838
+ return (n = t.formatter) != null && n.data && i === "formatterEnumData" && !t.formatterEnumData ? (r = t.formatter) == null ? void 0 : r.data : t.formatterEnumData;
2667
2839
  }
2668
- }, ei = {
2669
- convertTo: (i, t, e, n) => {
2670
- i.sort || (i.sort = {}), i.sort[t] = e;
2840
+ }, ri = {
2841
+ convertTo: (t, i, e, n) => {
2842
+ t.sort || (t.sort = {}), t.sort[i] = e;
2671
2843
  },
2672
- convertFrom: (i, t, e) => {
2844
+ convertFrom: (t, i, e) => {
2673
2845
  var n, r;
2674
- if (t === "mode")
2675
- return ((n = i.sort) == null ? void 0 : n.mode) || "client";
2676
- if (t === "multiSort")
2677
- return !!((r = i.sort) != null && r.multiSort);
2678
- }
2679
- }, ti = {
2680
- convertTo: (i, t, e, n) => {
2681
- i.filter || (i.filter = {}), i.filter[t] = e;
2846
+ if (i === "mode")
2847
+ return ((n = t.sort) == null ? void 0 : n.mode) || "client";
2848
+ if (i === "multiSort")
2849
+ return !!((r = t.sort) != null && r.multiSort);
2850
+ }
2851
+ }, oi = {
2852
+ convertTo: (t, i, e, n) => {
2853
+ t.filter || (t.filter = {}), t.filter[i] = e;
2682
2854
  },
2683
- convertFrom: (i, t, e) => {
2855
+ convertFrom: (t, i, e) => {
2684
2856
  var n;
2685
- if (t === "mode")
2686
- return ((n = i.filter) == null ? void 0 : n.mode) || "client";
2857
+ if (i === "mode")
2858
+ return ((n = t.filter) == null ? void 0 : n.mode) || "client";
2687
2859
  }
2688
- }, ii = {
2689
- convertTo: (i, t, e, n) => {
2690
- i.rowOption ? i.rowOption[t] = e : i.rowOption = {
2691
- [t]: e
2860
+ }, li = {
2861
+ convertTo: (t, i, e, n) => {
2862
+ t.rowOption ? t.rowOption[i] = e : t.rowOption = {
2863
+ [i]: e
2692
2864
  };
2693
2865
  },
2694
- convertFrom: (i, t, e) => {
2695
- if (i.rowOption) {
2696
- if (t === "customRowStyle")
2697
- return i.rowOption.customRowStyle;
2698
- if (t === "customCellStyle")
2699
- return i.rowOption.customCellStyle;
2700
- if (t === "height")
2701
- return i.rowOption.height;
2866
+ convertFrom: (t, i, e) => {
2867
+ if (t.rowOption) {
2868
+ if (i === "customRowStyle")
2869
+ return t.rowOption.customRowStyle;
2870
+ if (i === "customCellStyle")
2871
+ return t.rowOption.customCellStyle;
2872
+ if (i === "height")
2873
+ return t.rowOption.height;
2702
2874
  }
2703
2875
  return "";
2704
2876
  }
2705
- }, ni = {
2706
- convertTo: (i, t, e, n) => {
2707
- (i.type === "data-grid-column" || i.type === "tree-grid-column") && (i[t] = e, t === "columnTemplateType" && e === "hyperlink" && (i.onClickLinkCommand ? i.columnTemplate = `
2877
+ }, si = {
2878
+ convertTo: (t, i, e, n) => {
2879
+ (t.type === "data-grid-column" || t.type === "tree-grid-column") && (t[i] = e, i === "columnTemplateType" && e === "hyperlink" && (t.onClickLinkCommand ? t.columnTemplate = `
2708
2880
  <span class="f-pretend-link f-cursor-pointer"
2709
- @click="(ctx)=>viewModel.current.${i.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
2710
- {{rowData.${i.field}}}
2711
- </span>` : i.columnTemplate = `
2881
+ @click="(ctx)=>viewModel.current.${t.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
2882
+ {{rowData.${t.field}}}
2883
+ </span>` : t.columnTemplate = `
2712
2884
  <span class="f-pretend-link f-cursor-pointer">
2713
- {{rowData.${i.field}}}
2714
- </span>`), t === "columnTemplateType" && e === "default" && (i.columnTemplate = ""), t === "columnTemplateType" && e === "custom" && (i.columnTemplate = ""));
2885
+ {{rowData.${t.field}}}
2886
+ </span>`), i === "columnTemplateType" && e === "default" && (t.columnTemplate = ""), i === "columnTemplateType" && e === "custom" && (t.columnTemplate = ""));
2887
+ },
2888
+ convertFrom: (t, i, e) => i === "columnTemplate" ? t.columnTemplate : i === "columnTemplateType" ? t.columnTemplateType ? t.columnTemplateType || "default" : t.columnTemplate && !t.onClickLinkCommand ? "custom" : t.columnTemplate && t.onClickLinkCommand ? "hyperlink" : "default" : ""
2889
+ }, ai = {
2890
+ convertTo: (t, i, e, n) => {
2891
+ t.hierarchy || (t.hierarchy = {
2892
+ cascadeOption: {}
2893
+ }), t.hierarchy.cascadeOption || (t.hierarchy.cascadeOption = {}), t.hierarchy.cascadeOption[i] = e;
2715
2894
  },
2716
- convertFrom: (i, t, e) => t === "columnTemplate" ? i.columnTemplate : t === "columnTemplateType" ? i.columnTemplateType ? i.columnTemplateType || "default" : i.columnTemplate && !i.onClickLinkCommand ? "custom" : i.columnTemplate && i.onClickLinkCommand ? "hyperlink" : "default" : ""
2895
+ convertFrom: (t, i, e) => {
2896
+ var n, r;
2897
+ return !!((r = (n = t.hierarchy) == null ? void 0 : n.cascadeOption) != null && r[i]);
2898
+ }
2717
2899
  };
2718
- function Se(i, t, e) {
2900
+ function ke(t, i, e) {
2719
2901
  const n = /* @__PURE__ */ new Map([
2720
- ["/converter/appearance.converter", Ot],
2721
- ["/converter/buttons.converter", At],
2722
- ["/converter/property-editor.converter", Ut],
2723
- ["/converter/items-count.converter", Zt],
2724
- ["/converter/type.converter", Rt],
2725
- ["/converter/change-editor.converter", jt],
2726
- ["/converter/change-formatter.converter", qt],
2727
- ["/converter/column-command.converter", Wt],
2728
- ["/converter/column-option.converter", zt],
2729
- ["/converter/summary.converter", Gt],
2730
- ["/converter/group.converter", Dt],
2731
- ["/converter/form-group-label.converter", Jt],
2732
- ["/converter/field-selector.converter", Qt],
2733
- ["/converter/pagination.converter", _t],
2734
- ["/converter/row-number.converter", Ht],
2735
- ["/converter/grid-selection.converter", Xt],
2736
- ["/converter/size.converter", Yt],
2737
- ["/converter/change-formatter-enum.converter", Kt],
2738
- ["/converter/grid-sort.converter", ei],
2739
- ["/converter/grid-filter.converter", ti],
2740
- ["/converter/row-option.converter", ii],
2741
- ["/converter/change-formatter-type.converter", ni]
2902
+ ["/converter/appearance.converter", $t],
2903
+ ["/converter/buttons.converter", Wt],
2904
+ ["/converter/property-editor.converter", qt],
2905
+ ["/converter/items-count.converter", ei],
2906
+ ["/converter/type.converter", zt],
2907
+ ["/converter/change-editor.converter", Gt],
2908
+ ["/converter/change-formatter.converter", Dt],
2909
+ ["/converter/column-command.converter", Ht],
2910
+ ["/converter/column-option.converter", Qt],
2911
+ ["/converter/summary.converter", _t],
2912
+ ["/converter/group.converter", Xt],
2913
+ ["/converter/form-group-label.converter", ti],
2914
+ ["/converter/field-selector.converter", Zt],
2915
+ ["/converter/pagination.converter", Jt],
2916
+ ["/converter/row-number.converter", Yt],
2917
+ ["/converter/grid-selection.converter", Kt],
2918
+ ["/converter/size.converter", ii],
2919
+ ["/converter/change-formatter-enum.converter", ni],
2920
+ ["/converter/grid-sort.converter", ri],
2921
+ ["/converter/grid-filter.converter", oi],
2922
+ ["/converter/row-option.converter", li],
2923
+ ["/converter/change-formatter-type.converter", si],
2924
+ ["/converter/tree-auto-check.converter", ai]
2742
2925
  ]), r = /* @__PURE__ */ new Map([
2743
2926
  ["string", { type: "input-group", enableClear: !1 }],
2744
2927
  ["boolean", {
@@ -2763,185 +2946,224 @@ function Se(i, t, e) {
2763
2946
  ["array", { type: "button-edit" }],
2764
2947
  ["number", { type: "number-spinner", placeholder: "" }],
2765
2948
  ["events-editor", { type: "events-editor", hide: !0 }]
2766
- ]), s = Nt();
2767
- function l(f, p) {
2768
- return () => s.parseValueSchema(f, p);
2949
+ ]), l = Ut();
2950
+ function s(d, p) {
2951
+ return () => l.parseValueSchema(d, p);
2769
2952
  }
2770
- function m(f, p, h) {
2771
- return f.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : l(p.visible, h) : () => !0;
2953
+ function m(d, p, h) {
2954
+ return d.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : s(p.visible, h) : () => !0;
2772
2955
  }
2773
- function a(f, p, h) {
2774
- return f.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : l(p.readonly, h) : () => !1;
2956
+ function a(d, p, h) {
2957
+ return d.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : s(p.readonly, h) : () => !1;
2775
2958
  }
2776
- function c(f, p) {
2777
- const h = f.$converter || p;
2959
+ function u(d, p) {
2960
+ const h = d.$converter || p;
2778
2961
  return typeof h == "string" && h && n.has(h) ? n.get(h) || null : h || null;
2779
2962
  }
2780
- function u(f, p, h, y, C, V = "", B = "") {
2781
- return Object.keys(f).map((k) => {
2782
- const U = w(1), N = k, M = f[k], F = Object.keys(M), j = M.title, O = M.type, I = r.get(O) || { type: "input-group", enableClear: !1 }, P = M.editor ? Object.assign({}, I, M.editor) : Object.assign({}, I), A = m(F, M, p), E = a(F, M, p);
2783
- P.readonly = P.readonly === void 0 ? E() : P.readonly;
2784
- const x = M.type === "cascade" ? u(M.properties, p, h, y, C, V, B) : [], $ = !0;
2785
- let L = c(M, B);
2786
- const q = R({
2963
+ function f(d, p, h, b, w, O = "", L = "") {
2964
+ return Object.keys(d).map((V) => {
2965
+ const A = F(1), R = V, k = d[V], I = Object.keys(k), $ = k.title, N = k.type, U = r.get(N) || { type: "input-group", enableClear: !1 }, x = k.editor ? Object.assign({}, U, k.editor) : Object.assign({}, U), P = m(I, k, p), C = a(I, k, p);
2966
+ x.readonly = x.readonly === void 0 ? C() : x.readonly;
2967
+ const B = k.type === "cascade" ? f(k.properties, p, h, b, w, O, L) : [], S = !0;
2968
+ let M = u(k, L);
2969
+ const q = W({
2787
2970
  get() {
2788
- if (U.value) {
2789
- if (["class", "style"].find((Ue) => Ue === N) && !L && (L = n.get("/converter/appearance.converter") || null), L && L.convertFrom)
2790
- return L.convertFrom(h, k, C, V);
2791
- const W = h[k];
2792
- return Object.prototype.hasOwnProperty.call(M, "defaultValue") && (W === void 0 || typeof W == "string" && W === "") ? M.type === "boolean" ? M.defaultValue : M.defaultValue || "" : W;
2971
+ if (A.value) {
2972
+ if (["class", "style"].find(($e) => $e === R) && !M && (M = n.get("/converter/appearance.converter") || null), M && M.convertFrom)
2973
+ return M.convertFrom(h, V, w, O);
2974
+ const z = h[V];
2975
+ return Object.prototype.hasOwnProperty.call(k, "defaultValue") && (z === void 0 || typeof z == "string" && z === "") ? k.type === "boolean" ? k.defaultValue : k.defaultValue || "" : z;
2793
2976
  }
2794
2977
  return null;
2795
2978
  },
2796
- set(W) {
2797
- U.value += 1, L && L.convertTo ? (L.convertTo(y, k, W, C, V), L.convertTo(h, k, W, C, V)) : (y[k] = W, h[k] = W);
2979
+ set(z) {
2980
+ A.value += 1, M && M.convertTo ? (M.convertTo(b, V, z, w, O), M.convertTo(h, V, z, w, O)) : (b[V] = z, h[V] = z);
2798
2981
  }
2799
- }), { refreshPanelAfterChanged: X, description: Ne, isExpand: Oe, parentPropertyID: Ae } = M, oe = { propertyID: N, propertyName: j, propertyType: O, propertyValue: q, editor: P, visible: A, readonly: E, cascadeConfig: x, hideCascadeTitle: $, refreshPanelAfterChanged: X, description: Ne, isExpand: Oe, parentPropertyID: Ae };
2800
- return p[N] = oe, oe;
2982
+ }), { refreshPanelAfterChanged: G, description: _, isExpand: Re, parentPropertyID: Ue } = k, se = { propertyID: R, propertyName: $, propertyType: N, propertyValue: q, editor: x, visible: P, readonly: C, cascadeConfig: B, hideCascadeTitle: S, refreshPanelAfterChanged: G, description: _, isExpand: Re, parentPropertyID: Ue };
2983
+ return p[R] = se, se;
2801
2984
  });
2802
2985
  }
2803
- function o(f, p, h = {}) {
2804
- const y = {}, C = i[f];
2805
- return C && C.categories ? Object.keys(C.categories).map((B) => {
2806
- const T = C.categories[B], k = T == null ? void 0 : T.title, U = u(T.properties || {}, y, {}, h, p);
2807
- return { categoryId: B, categoryName: k, properties: U };
2986
+ function o(d, p, h = {}) {
2987
+ const b = {}, w = t[d];
2988
+ return w && w.categories ? Object.keys(w.categories).map((L) => {
2989
+ const T = w.categories[L], V = T == null ? void 0 : T.title, A = f(T.properties || {}, b, {}, h, p);
2990
+ return { categoryId: L, categoryName: V, properties: A };
2808
2991
  }) : [];
2809
2992
  }
2810
- function d(f, p, h, y, C = "") {
2811
- const V = p.$ref.schema, B = p.$ref.converter, T = h[V], k = T.type, U = e(T), N = {}, M = i[k];
2812
- if (M && M.categories) {
2813
- const F = M.categories[f], j = F == null ? void 0 : F.title;
2814
- B && Object.keys(F.properties).forEach((P) => {
2815
- F.properties[P].$converter = B;
2993
+ function c(d, p, h, b, w = "") {
2994
+ const O = p.$ref.schema, L = p.$ref.converter, T = h[O], V = T.type, A = e(T), R = {}, k = t[V];
2995
+ if (k && k.categories) {
2996
+ const I = k.categories[d], $ = I == null ? void 0 : I.title;
2997
+ L && Object.keys(I.properties).forEach((x) => {
2998
+ I.properties[x].$converter = L;
2816
2999
  });
2817
- const O = (F == null ? void 0 : F.properties) || {}, I = u(O, N, U, T, y, C);
2818
- return { categoryId: f, categoryName: j, properties: I };
3000
+ const N = (I == null ? void 0 : I.properties) || {}, U = f(N, R, A, T, b, w);
3001
+ return { categoryId: d, categoryName: $, properties: U };
2819
3002
  }
2820
- return { categoryId: f, categoryName: "", properties: [] };
2821
- }
2822
- function v(f, p, h, y, C) {
2823
- const V = f.type, B = e(f), T = {};
2824
- let k = C || i[V];
2825
- if (!(k && Object.keys(k).length > 0) && h && h.getPropConfig && (k = h.getPropConfig(y)), k && k.categories) {
2826
- const N = [];
2827
- return Object.keys(k.categories).map((M) => {
2828
- const F = k.categories[M];
2829
- if (F.$ref) {
2830
- N.push(d(M, F, f, p, y));
3003
+ return { categoryId: d, categoryName: "", properties: [] };
3004
+ }
3005
+ function g(d, p, h, b, w) {
3006
+ const O = d.type, L = e(d), T = {};
3007
+ let V = w || t[O];
3008
+ if (!(V && Object.keys(V).length > 0) && h && h.getPropConfig && (V = h.getPropConfig(b)), V && V.categories) {
3009
+ const R = [];
3010
+ return Object.keys(V.categories).map((k) => {
3011
+ const I = V.categories[k];
3012
+ if (I.$ref) {
3013
+ R.push(c(k, I, d, p, b));
2831
3014
  return;
2832
3015
  }
2833
- const j = F == null ? void 0 : F.title, O = F == null ? void 0 : F.tabId, I = F == null ? void 0 : F.tabName, P = F == null ? void 0 : F.hide, A = F == null ? void 0 : F.hideTitle, E = u(F.properties || {}, T, B, f, p, y, F.$converter), { setPropertyRelates: x } = F, $ = F == null ? void 0 : F.parentPropertyID;
2834
- N.push({ categoryId: M, categoryName: j, tabId: O, tabName: I, hide: P, properties: E, hideTitle: A, setPropertyRelates: x, parentPropertyID: $ });
2835
- }), N;
3016
+ const $ = I == null ? void 0 : I.title, N = I == null ? void 0 : I.tabId, U = I == null ? void 0 : I.tabName, x = I == null ? void 0 : I.hide, P = I == null ? void 0 : I.hideTitle, C = f(I.properties || {}, T, L, d, p, b, I.$converter), { setPropertyRelates: B } = I, S = I == null ? void 0 : I.parentPropertyID;
3017
+ R.push({ categoryId: k, categoryName: $, tabId: N, tabName: U, hide: x, properties: C, hideTitle: P, setPropertyRelates: B, parentPropertyID: S });
3018
+ }), R;
2836
3019
  }
2837
3020
  return [];
2838
3021
  }
2839
3022
  return {
2840
- getPropertyConfigBySchema: v,
3023
+ getPropertyConfigBySchema: g,
2841
3024
  getPropertyConfigByType: o,
2842
3025
  propertyConverterMap: n
2843
3026
  };
2844
3027
  }
2845
- const Te = {}, Me = {};
2846
- Se(Te, Me, Vt);
2847
- const Pe = {}, ke = {}, { resolveSchemaWithDefaultValue: ri } = Ie(Pe, ke), Ve = {}, Be = {};
2848
- Se(Ve, Be, ri);
2849
- function oi(i, t, e = /* @__PURE__ */ new Map(), n = (l, m, a, c) => m, r = {}, s = (l) => l) {
2850
- return xe[t.title] = t, Ee[t.title] = n, Te[t.title] = r, Me[t.title] = s, Pe[t.title] = t, ke[t.title] = n, Ve[t.title] = r, Be[t.title] = s, (l = {}, m = !0) => {
3028
+ const Pe = {}, Ve = {};
3029
+ ke(Pe, Ve, Nt);
3030
+ const Be = {}, Le = {}, { resolveSchemaWithDefaultValue: di } = Te(Be, Le), Oe = {}, Ne = {};
3031
+ ke(Oe, Ne, di);
3032
+ function ci(t, i, e = /* @__PURE__ */ new Map(), n = (s, m, a, u) => m, r = {}, l = (s) => s) {
3033
+ return Ee[i.title] = i, Me[i.title] = n, Pe[i.title] = r, Ve[i.title] = l, Be[i.title] = i, Le[i.title] = n, Oe[i.title] = r, Ne[i.title] = l, (s = {}, m = !0) => {
2851
3034
  if (!m)
2852
- return Lt(l, e);
2853
- const a = Bt(l, t, e), c = Object.keys(i).reduce((u, o) => (u[o] = i[o].default, u), {});
2854
- return Object.assign(c, a);
3035
+ return Rt(s, e);
3036
+ const a = At(s, i, e), u = Object.keys(t).reduce((f, o) => (f[o] = t[o].default, f), {});
3037
+ return Object.assign(u, a);
2855
3038
  };
2856
3039
  }
2857
- const Le = Object.assign({}, re, {
3040
+ const Ae = Object.assign({}, le, {
2858
3041
  componentId: { type: String, default: "" }
2859
- }), si = oi(Le, ye, he, be), li = /* @__PURE__ */ Q({
3042
+ }), ui = ci(Ae, we, Ce, Fe), fi = /* @__PURE__ */ Q({
2860
3043
  name: "FFilterBarDesign",
2861
- props: Le,
3044
+ props: Ae,
2862
3045
  emits: ["Clear", "Remove", "Reset"],
2863
- setup(i, t) {
2864
- const e = w(!1), n = w(!1), r = w(!1), s = w(null), l = Ct(i), {
3046
+ setup(t, i) {
3047
+ const e = F(!1), n = F(!1), r = F(!1), l = F(null), s = It(t), {
2865
3048
  filterFields: m,
2866
3049
  filterItems: a,
2867
- loadFilterItems: c
2868
- } = l, u = w(0), o = w(), d = _("design-item-context"), v = _("designer-host-service"), f = kt(d, v), p = De(o, d, f), h = Fe(s, r), {
2869
- cancelWidthObserver: y,
2870
- setupWidthObserver: C
3050
+ loadFilterItems: u
3051
+ } = s, f = F(0), o = F(), c = X("design-item-context"), g = X("designer-host-service"), d = Ot(c, g), p = Qe(o, c, d), h = Ie(l, r), {
3052
+ cancelWidthObserver: b,
3053
+ setupWidthObserver: w
2871
3054
  } = h, {
2872
- resolveEditorProps: V
2873
- } = ve();
2874
- ce("useFilterItemsComposition", {
2875
- useFilterItemsComposition: l,
2876
- resolveEditorProps: V
3055
+ resolveEditorProps: O
3056
+ } = be();
3057
+ me("useFilterItemsComposition", {
3058
+ useFilterItemsComposition: s,
3059
+ resolveEditorProps: O
2877
3060
  });
2878
- const B = R(() => {
2879
- const F = {
3061
+ const L = F(), T = W(() => {
3062
+ const N = {
2880
3063
  display: m.value && m.value.length ? "" : "none"
2881
3064
  };
2882
- return pe(F, i == null ? void 0 : i.customStyle);
3065
+ return he(N, t == null ? void 0 : t.customStyle);
2883
3066
  });
2884
- K(() => {
2885
- o.value.componentInstance = p, C();
2886
- }), fe(() => {
2887
- y();
2888
- }), t.expose(p.value), ue(() => i.fields, (F) => {
2889
- c(F, []), u.value++;
3067
+ ee(() => {
3068
+ if (o.value.componentInstance = p, w(), t.filterType === "tile" && t.tileShowType === "all-in-one") {
3069
+ const N = L.value.querySelector(".condition-div");
3070
+ N.scrollWidth > N.clientWidth && (L.value.className = L.value.className + " all-in-one--item-fill");
3071
+ }
3072
+ }), ve(() => {
3073
+ b();
3074
+ }), i.expose(p.value), ge(() => t.fields, (N) => {
3075
+ u(N, []), f.value++;
2890
3076
  }, {
2891
3077
  immediate: !0
2892
3078
  });
2893
- const T = R(() => n.value && e.value), k = R(() => ({
3079
+ const V = W(() => n.value && e.value), A = W(() => ({
2894
3080
  "f-filter-list": !0,
2895
- "f-filter-list-extend": T.value
3081
+ "f-filter-list-extend": V.value
2896
3082
  }));
2897
- function U() {
2898
- return b("div", {
2899
- class: k.value,
2900
- key: i.id + "-main-" + u.value
2901
- }, [a.value.map((F, j) => b(wt, {
2902
- filterItem: F
3083
+ function R() {
3084
+ return y("div", {
3085
+ class: A.value,
3086
+ key: t.id + "-main-" + f.value
3087
+ }, [a.value.map((N, U) => y(Tt, {
3088
+ filterItem: N
2903
3089
  }, null))]);
2904
3090
  }
2905
- function N() {
2906
- return r.value && b("div", {
3091
+ function k() {
3092
+ return r.value && y("div", {
2907
3093
  class: "f-filter-list-ellipsis"
2908
- }, [z("...")]);
3094
+ }, [j("...")]);
3095
+ }
3096
+ const I = St(t, i, s);
3097
+ function $() {
3098
+ let N = "", U;
3099
+ t.tileShowType !== "all-in-one" && (N = t.lineLabelWidth === "auto" ? " filter-item-wrap" : "", U = t.tileShowType === "single" ? "col-12" + N : N ? "col-12 col-md-6 col-xl-3 col-el-2" + N : void 0);
3100
+ const x = t.tileShowType === "multiline";
3101
+ return y("div", {
3102
+ class: "f-list-filter d-flex" + t.customClass,
3103
+ style: T.value
3104
+ }, [t.tileShowType !== "all-in-one" && y("div", {
3105
+ class: "flex-fill"
3106
+ }, [y(fe, {
3107
+ fields: m.value,
3108
+ conditions: a.value,
3109
+ itemClass: U,
3110
+ autoResponse: x
3111
+ }, null), j(" ")]), t.tileShowType === "all-in-one" && y("div", {
3112
+ class: "filter-inputs-main-basis-wrapper filter-input--all-in-one" + t.customClass,
3113
+ ref: L,
3114
+ style: T.value
3115
+ }, [y(fe, {
3116
+ style: "flex-wrap:nowrap!important;overflow-x:auto;",
3117
+ fields: m.value,
3118
+ customClass: t.allInOneAlign === "right" ? "justify-content-end" : "",
3119
+ conditions: a.value,
3120
+ itemClass: "filter-input-list filter-item-wrap",
3121
+ autoResponse: !1
3122
+ }, null)]), !t.liveSearch && y("div", {
3123
+ class: "filter-search-btn filter-search-btn--filter"
3124
+ }, [y("button", {
3125
+ class: "btn btn-primary"
3126
+ }, [t.filterText])]), I()]);
2909
3127
  }
2910
- const M = Ft(i, t, l);
2911
- return () => b("div", {
3128
+ return () => t.filterType === "light" ? y("div", {
2912
3129
  ref: o,
2913
- class: "f-filter-wrapper " + i.customClass,
2914
- style: B.value
2915
- }, [b("div", {
3130
+ class: "f-filter-wrapper " + t.customClass,
3131
+ style: T.value
3132
+ }, [y("div", {
2916
3133
  class: "f-filter-wrapper-inner f-utils-fill"
2917
- }, [b("div", {
3134
+ }, [y("div", {
2918
3135
  class: "f-filter-main f-utils-fill"
2919
- }, [b("div", {
3136
+ }, [y("div", {
2920
3137
  class: "f-filter-list-wrapper flex-fill",
2921
- ref: s
2922
- }, [U()]), N(), M()]), r.value && b("div", {
3138
+ ref: l
3139
+ }, [R()]), k(), I()]), !t.liveSearch && y("div", {
3140
+ class: "filter-search-btn filter-search-btn--filter",
3141
+ style: "margin:0 8px 0 0;"
3142
+ }, [y("button", {
3143
+ class: "btn btn-primary"
3144
+ }, [t.filterText])]), r.value && y("div", {
2923
3145
  class: "f-filter-extend-btn"
2924
- }, [b("button", {
3146
+ }, [y("button", {
2925
3147
  class: "btn btn-link"
2926
- }, [b("span", {
3148
+ }, [y("span", {
2927
3149
  class: "extend-btn-text"
2928
- }, [z("展开")]), b("span", {
3150
+ }, [j("展开")]), y("span", {
2929
3151
  class: "extend-btn-arrow f-icon f-icon-arrow-chevron-down"
2930
- }, null)])])])]);
3152
+ }, null)])])])]) : $();
2931
3153
  }
2932
3154
  });
2933
- D.install = (i) => {
2934
- i.component(D.name, D);
3155
+ H.install = (t) => {
3156
+ t.component(H.name, H);
2935
3157
  };
2936
- D.register = (i, t, e, n) => {
2937
- i["filter-bar"] = D, t["filter-bar"] = ut;
3158
+ H.register = (t, i, e, n) => {
3159
+ t["filter-bar"] = H, i["filter-bar"] = mt;
2938
3160
  };
2939
- D.registerDesigner = (i, t, e) => {
2940
- i["filter-bar"] = li, t["filter-bar"] = si;
3161
+ H.registerDesigner = (t, i, e) => {
3162
+ t["filter-bar"] = fi, i["filter-bar"] = ui;
2941
3163
  };
2942
3164
  export {
2943
- D as FFilterBar,
2944
- D as default,
2945
- re as filterBarProps,
2946
- ut as propsResolver
3165
+ H as FFilterBar,
3166
+ H as default,
3167
+ le as filterBarProps,
3168
+ mt as propsResolver
2947
3169
  };