@farris/ui-vue 1.3.1 → 1.3.4

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 (269) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1175 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4658 -4555
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2891 -2994
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9912 -1191
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1595 -1725
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +355 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +622 -633
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2079 -2178
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3062 -3322
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10581 -3225
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +10182 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +1909 -2007
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6292 -6244
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5165 -5062
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.css +1 -1
  108. package/components/property-panel/index.esm.js +650 -677
  109. package/components/property-panel/index.umd.cjs +1 -1
  110. package/components/query-solution/index.css +1 -1
  111. package/components/query-solution/index.esm.js +12607 -5080
  112. package/components/query-solution/index.umd.cjs +6 -1
  113. package/components/radio-button/index.esm.js +97 -97
  114. package/components/radio-button/index.umd.cjs +1 -1
  115. package/components/radio-group/index.css +1 -1
  116. package/components/radio-group/index.esm.js +1821 -565
  117. package/components/radio-group/index.umd.cjs +1 -1
  118. package/components/rate/index.esm.js +251 -244
  119. package/components/rate/index.umd.cjs +1 -1
  120. package/components/response-layout/index.esm.js +151 -140
  121. package/components/response-layout/index.umd.cjs +1 -1
  122. package/components/response-layout-editor/index.esm.js +707 -676
  123. package/components/response-layout-editor/index.umd.cjs +1 -1
  124. package/components/response-toolbar/index.esm.js +719 -740
  125. package/components/response-toolbar/index.umd.cjs +1 -1
  126. package/components/schema-selector/index.esm.js +5002 -5272
  127. package/components/schema-selector/index.umd.cjs +2 -2
  128. package/components/search-box/index.esm.js +145 -134
  129. package/components/search-box/index.umd.cjs +1 -1
  130. package/components/section/index.esm.js +2128 -427
  131. package/components/section/index.umd.cjs +1 -1
  132. package/components/smoke-detector/index.esm.js +141 -130
  133. package/components/smoke-detector/index.umd.cjs +1 -1
  134. package/components/splitter/index.esm.js +311 -301
  135. package/components/splitter/index.umd.cjs +1 -1
  136. package/components/step/index.esm.js +231 -220
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +385 -432
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2223 -2203
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +351 -340
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +209 -199
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +399 -421
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +619 -666
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +493 -486
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +2992 -3101
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2350 -2448
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +563 -554
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +287 -276
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +368 -324
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +498 -487
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +46910 -42804
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/entity/entity-schema.d.ts +26 -11
  177. package/types/common/index.d.ts +1 -0
  178. package/types/common/types.d.ts +2 -2
  179. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  180. package/types/condition/src/types.d.ts +6 -6
  181. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  182. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  183. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  184. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  185. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  186. package/types/data-view/composition/types.d.ts +2 -2
  187. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  188. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  189. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  190. package/types/designer-canvas/index.d.ts +2 -1
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  193. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  194. package/types/designer-canvas/src/types.d.ts +8 -20
  195. package/types/dynamic-form/index.d.ts +1 -1
  196. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +2 -0
  197. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  198. package/types/dynamic-form/src/types.d.ts +1 -1
  199. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  200. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  201. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +18 -0
  202. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  203. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  204. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  205. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  206. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  207. package/types/event-parameter/index.d.ts +31 -0
  208. package/types/event-parameter/src/composition/type.d.ts +77 -0
  209. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  212. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  213. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  214. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  215. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  216. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  217. package/types/events-editor/src/composition/types.d.ts +1 -1
  218. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  219. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  220. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  221. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  222. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  223. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  224. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  225. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  226. package/types/modal/src/composition/modal.service.d.ts +2 -1
  227. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  228. package/types/page-header/src/page-header.component.d.ts +1 -1
  229. package/types/property-panel/index.d.ts +2 -1
  230. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  231. package/types/property-panel/src/composition/type.d.ts +0 -13
  232. package/types/query-solution/src/composition/types.d.ts +90 -4
  233. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  234. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  235. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  236. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  237. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +18 -16
  238. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  239. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  240. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  241. package/types/query-solution/src/query-solution.d.ts +10 -2
  242. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  243. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  244. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  245. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  246. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  247. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  248. package/types/section/index.d.ts +15 -0
  249. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  250. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  251. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
  252. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  253. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  254. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  255. package/types/tabs/src/composition/types.d.ts +4 -1
  256. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  257. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  258. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  259. package/types/text/src/composition/types.d.ts +4 -4
  260. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  261. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  262. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  263. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  264. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  265. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  266. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  267. package/types/weather/src/composition/types.d.ts +0 -2
  268. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  269. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,100 +1,104 @@
1
1
  var Q = Object.defineProperty;
2
- var Y = (n, t, e) => t in n ? Q(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var g = (n, t, e) => Y(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as G, ref as F, computed as D, onMounted as W, createVNode as E, withDirectives as Z, vModelText as _, inject as U } from "vue";
5
- import { isPlainObject as x, cloneDeep as O } from "lodash-es";
6
- import { useTextBox as H, useClear as K } from "../common/index.esm.js";
7
- import { DgControl as $ } from "../designer-canvas/index.esm.js";
8
- const j = {}, q = {};
2
+ var _ = (n, t, e) => t in n ? Q(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var b = (n, t, e) => _(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as G, ref as B, computed as I, onMounted as q, createVNode as E, withDirectives as J, vModelText as Y, inject as U } from "vue";
5
+ import { isPlainObject as $, cloneDeep as W } from "lodash-es";
6
+ import { useTextBox as Z, useClear as K, withInstall as R } from "../common/index.esm.js";
7
+ import { DgControl as x } from "../designer-canvas/index.esm.js";
8
+ const O = {}, j = {};
9
9
  function A(n) {
10
- const { properties: t, title: e, ignore: r } = n, a = r && Array.isArray(r), l = Object.keys(t).reduce((c, f) => ((!a || !r.find((m) => m == f)) && (c[f] = t[f].type === "object" && t[f].properties ? A(t[f]) : O(t[f].default)), c), {});
11
- return e && (!a || !r.find((c) => c == "id")) && (l.id = `${e}-${Date.now()}`), l;
10
+ const { properties: t, title: e, ignore: a } = n, o = a && Array.isArray(a), l = Object.keys(t).reduce((s, y) => ((!o || !a.find((f) => f === y)) && (s[y] = t[y].type === "object" && t[y].properties ? A(t[y]) : W(t[y].default)), s), {});
11
+ if (e && (!o || !a.find((s) => s === "id"))) {
12
+ const s = e.toLowerCase().replace(/-/g, "_");
13
+ l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
14
+ }
15
+ return l;
12
16
  }
13
17
  function z(n, t = {}, e) {
14
- const r = j[n];
15
- if (r) {
16
- let a = A(r);
17
- const l = q[n];
18
- return a = l ? l({ getSchemaByType: z }, a, t, e) : a, a;
18
+ const a = O[n];
19
+ if (a) {
20
+ let o = A(a);
21
+ const l = j[n];
22
+ return o = l ? l({ getSchemaByType: z }, o, t, e) : o, o;
19
23
  }
20
24
  return null;
21
25
  }
22
- function R(n, t) {
26
+ function ee(n, t) {
23
27
  const e = A(t);
24
- return Object.keys(n).reduce((r, a) => (r[a] && x(r[a]) && x(n[a]) ? Object.assign(r[a], n[a]) : r[a] = n[a], r), e), e;
28
+ return Object.keys(e).reduce((a, o) => (a[o] && $(a[o]) && $(n[o] || !n[o]) ? Object.assign(a[o], n[o] || {}) : a[o] = n[o], a), e), e;
25
29
  }
26
- function ee(n, t) {
27
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, a) => {
28
- if (t.has(a)) {
29
- const l = t.get(a);
30
+ function te(n, t) {
31
+ return Object.keys(n).filter((a) => n[a] != null).reduce((a, o) => {
32
+ if (t.has(o)) {
33
+ const l = t.get(o);
30
34
  if (typeof l == "string")
31
- r[l] = n[a];
35
+ a[l] = n[o];
32
36
  else {
33
- const c = l(a, n[a], n);
34
- Object.assign(r, c);
37
+ const s = l(o, n[o], n);
38
+ Object.assign(a, s);
35
39
  }
36
40
  } else
37
- r[a] = n[a];
38
- return r;
41
+ a[o] = n[o];
42
+ return a;
39
43
  }, {});
40
44
  }
41
- function te(n, t, e = /* @__PURE__ */ new Map()) {
42
- const r = R(n, t);
43
- return ee(r, e);
45
+ function ne(n, t, e = /* @__PURE__ */ new Map()) {
46
+ const a = ee(n, t);
47
+ return te(a, e);
44
48
  }
45
- function ne(n = {}) {
46
- function t(i, s, o, p) {
47
- if (typeof o == "number")
48
- return p[i].length === o;
49
- if (typeof o == "object") {
50
- const y = Object.keys(o)[0], d = o[y];
51
- if (y === "not")
49
+ function oe(n = {}) {
50
+ function t(i, c, r, p) {
51
+ if (typeof r == "number")
52
+ return p[i].length === r;
53
+ if (typeof r == "object") {
54
+ const m = Object.keys(r)[0], d = r[m];
55
+ if (m === "not")
52
56
  return Number(p[i].length) !== Number(d);
53
- if (y === "moreThan")
57
+ if (m === "moreThan")
54
58
  return Number(p[i].length) >= Number(d);
55
- if (y === "lessThan")
59
+ if (m === "lessThan")
56
60
  return Number(p[i].length) <= Number(d);
57
61
  }
58
62
  return !1;
59
63
  }
60
- function e(i, s, o, p) {
61
- return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(o);
64
+ function e(i, c, r, p) {
65
+ return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(r);
62
66
  }
63
- const r = /* @__PURE__ */ new Map([
67
+ const a = /* @__PURE__ */ new Map([
64
68
  ["length", t],
65
69
  ["getProperty", e]
66
70
  ]);
67
- Object.keys(n).reduce((i, s) => (i.set(s, n[s]), i), r);
68
- function a(i, s) {
69
- const o = i;
70
- return typeof s == "number" ? [{ target: o, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: o, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
71
+ Object.keys(n).reduce((i, c) => (i.set(c, n[c]), i), a);
72
+ function o(i, c) {
73
+ const r = i;
74
+ return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
71
75
  if (p === "length")
72
- return { target: o, operator: "length", param: null, value: s[p] };
73
- const y = p, d = s[p];
74
- return { target: o, operator: "getProperty", param: y, value: d };
76
+ return { target: r, operator: "length", param: null, value: c[p] };
77
+ const m = p, d = c[p];
78
+ return { target: r, operator: "getProperty", param: m, value: d };
75
79
  }) : [];
76
80
  }
77
81
  function l(i) {
78
- return Object.keys(i).reduce((o, p) => {
79
- const y = a(p, i[p]);
80
- return o.push(...y), o;
82
+ return Object.keys(i).reduce((r, p) => {
83
+ const m = o(p, i[p]);
84
+ return r.push(...m), r;
81
85
  }, []);
82
86
  }
83
- function c(i, s) {
84
- if (r.has(i.operator)) {
85
- const o = r.get(i.operator);
86
- return o && o(i.target, i.param, i.value, s) || !1;
87
+ function s(i, c) {
88
+ if (a.has(i.operator)) {
89
+ const r = a.get(i.operator);
90
+ return r && r(i.target, i.param, i.value, c) || !1;
87
91
  }
88
92
  return !1;
89
93
  }
90
- function f(i, s) {
91
- return l(i).reduce((y, d) => y && c(d, s), !0);
94
+ function y(i, c) {
95
+ return l(i).reduce((m, d) => m && s(d, c), !0);
92
96
  }
93
- function m(i, s) {
94
- const o = Object.keys(i), p = o.includes("allOf"), y = o.includes("anyOf"), d = p || y, v = (d ? i[d ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((w) => f(w, s));
97
+ function f(i, c) {
98
+ const r = Object.keys(i), p = r.includes("allOf"), m = r.includes("anyOf"), d = p || m, v = (d ? i[d ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => y(k, c));
95
99
  return p ? !v.includes(!1) : v.includes(!0);
96
100
  }
97
- return { parseValueSchema: m };
101
+ return { parseValueSchema: f };
98
102
  }
99
103
  const u = {
100
104
  button: { type: "button", name: "按钮", icon: "Button" },
@@ -134,21 +138,22 @@ const u = {
134
138
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
135
139
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
136
140
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
137
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
138
- }, oe = {}, re = {};
139
- ne();
140
- function ae(n, t, e = /* @__PURE__ */ new Map(), r = (c, f, m) => f, a = {}, l = (c) => c) {
141
- return j[t.title] = t, q[t.title] = r, oe[t.title] = a, re[t.title] = l, (c = {}) => {
142
- const f = te(c, t, e), m = Object.keys(n).reduce((i, s) => (i[s] = n[s].default, i), {});
143
- return Object.assign(m, f);
141
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
142
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
143
+ }, re = {}, ae = {};
144
+ oe();
145
+ function ie(n, t, e = /* @__PURE__ */ new Map(), a = (s, y, f, i) => y, o = {}, l = (s) => s) {
146
+ return O[t.title] = t, j[t.title] = a, re[t.title] = o, ae[t.title] = l, (s = {}) => {
147
+ const y = ne(s, t, e), f = Object.keys(n).reduce((i, c) => (i[c] = n[c].default, i), {});
148
+ return Object.assign(f, y);
144
149
  };
145
150
  }
146
- function ie(n, t) {
151
+ function le(n, t) {
147
152
  return { customClass: t.class, customStyle: t.style };
148
153
  }
149
- const le = /* @__PURE__ */ new Map([
150
- ["appearance", ie]
151
- ]), se = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/switch.schema.json", pe = "textarea", ue = "A Farris Component", de = "object", me = {
154
+ const se = /* @__PURE__ */ new Map([
155
+ ["appearance", le]
156
+ ]), ce = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/switch.schema.json", ue = "textarea", de = "A Farris Component", me = "object", ye = {
152
157
  id: {
153
158
  description: "The unique identifier for a textarea",
154
159
  type: "string"
@@ -210,27 +215,39 @@ const le = /* @__PURE__ */ new Map([
210
215
  type: "boolean",
211
216
  default: !0
212
217
  },
213
- ignore: [
214
- "id",
215
- "appearance",
216
- "binding"
217
- ]
218
+ rows: {
219
+ description: "",
220
+ type: "number"
221
+ },
222
+ showCount: {
223
+ description: "",
224
+ type: "boolean",
225
+ default: !0
226
+ }
218
227
  }, fe = [
219
228
  "id",
220
229
  "type"
221
- ], ye = {
222
- $schema: se,
223
- $id: ce,
224
- title: pe,
225
- description: ue,
226
- type: de,
227
- properties: me,
228
- required: fe
230
+ ], he = [
231
+ "id",
232
+ "appearance",
233
+ "binding",
234
+ "visible"
235
+ ], ge = {
236
+ $schema: ce,
237
+ $id: pe,
238
+ title: ue,
239
+ description: de,
240
+ type: me,
241
+ properties: ye,
242
+ required: fe,
243
+ ignore: he
229
244
  };
230
- function he(n, t, e) {
245
+ function be(n, t, e) {
231
246
  return t;
232
247
  }
233
248
  const N = {
249
+ /** 是否撑开高度 */
250
+ autoHeight: { type: Boolean, default: !1 },
234
251
  /** 自动聚焦 */
235
252
  autofocus: { type: Boolean, default: !1 },
236
253
  /** 自动完成 */
@@ -251,45 +268,50 @@ const N = {
251
268
  placeholder: { type: String, default: "" },
252
269
  /** 只读 */
253
270
  readonly: { type: Boolean, default: !1 },
254
- /** 文本行数 */
255
- rows: { type: Boolean },
271
+ /** 文本区域可见的行数 */
272
+ rows: { type: Number, default: 2 },
256
273
  /** 展示输入文本数量 */
257
274
  showCount: { type: Boolean, default: !1 },
258
275
  /** 展示边线 */
259
276
  showBorder: { Type: Boolean, default: !0 },
260
277
  /** 键盘按键索引 */
261
278
  tabIndex: { type: Number, default: -1 }
262
- }, X = ae(N, ye, le, he), P = /* @__PURE__ */ G({
279
+ }, X = ie(N, ge, se, be), L = /* @__PURE__ */ G({
263
280
  name: "FTextarea",
264
281
  props: N,
265
282
  emits: ["update:modelValue", "valueChange"],
266
283
  setup(n, t) {
267
- const e = F(), r = F(n.modelValue), a = D(() => n.modelValue), l = H(n, t, r, a), {
268
- inputGroupClass: c,
269
- onBlur: f,
270
- onFocus: m
284
+ const e = B(), a = B(n.modelValue), o = I(() => n.modelValue), l = Z(n, t, a, o), {
285
+ inputGroupClass: s,
286
+ onBlur: y,
287
+ onFocus: f
271
288
  } = l, i = K(n, t, l), {
272
- onMouseEnter: s,
273
- onMouseLeave: o,
289
+ onMouseEnter: c,
290
+ onMouseLeave: r,
274
291
  clearButtonClass: p,
275
- shouldShowClearButton: y,
292
+ shouldShowClearButton: m,
276
293
  clearButtonStyle: d
277
- } = i, h = D(() => n.maxLength ? n.maxLength : n.modelValue.length), M = (C) => {
278
- var w, T;
279
- C.stopPropagation(), t.emit("update:modelValue", (w = C.target) == null ? void 0 : w.value), t.emit("valueChange", (T = C.target) == null ? void 0 : T.value);
280
- }, v = (C) => {
281
- C.stopPropagation(), e.value.value = "", t.emit("update:modelValue", ""), t.emit("valueChange", "");
282
- };
283
- return W(() => {
294
+ } = i, g = I(() => n.maxLength ? n.maxLength : n.modelValue.length), C = (k) => {
295
+ var F, h;
296
+ k.stopPropagation(), t.emit("update:modelValue", (F = k.target) == null ? void 0 : F.value), t.emit("valueChange", (h = k.target) == null ? void 0 : h.value);
297
+ }, v = (k) => {
298
+ k.stopPropagation(), e.value.value = "", t.emit("update:modelValue", ""), t.emit("valueChange", "");
299
+ }, M = I(() => ({
300
+ "form-control": !0,
301
+ "h-100": n.autoHeight
302
+ }));
303
+ return t.expose({
304
+ elementRef: e
305
+ }), q(() => {
284
306
  }), () => E("div", {
285
- class: c.value,
286
- onMouseenter: s,
287
- onMouseleave: o,
307
+ class: s.value,
308
+ onMouseenter: c,
309
+ onMouseleave: r,
288
310
  style: "position:relative"
289
- }, [Z(E("textarea", {
290
- class: "form-control",
311
+ }, [J(E("textarea", {
312
+ class: M.value,
291
313
  id: n.id,
292
- "onUpdate:modelValue": (C) => n.modelValue = C,
314
+ "onUpdate:modelValue": (k) => n.modelValue = k,
293
315
  ref: e,
294
316
  minlength: n.minLength,
295
317
  maxlength: n.maxLength ? n.maxLength : null,
@@ -300,133 +322,139 @@ const N = {
300
322
  placeholder: n.placeholder,
301
323
  autofocus: n.autofocus,
302
324
  rows: n.rows,
303
- onInput: M,
304
- onFocus: m,
305
- onBlur: f
306
- }, null), [[_, n.modelValue]]), y.value && E("span", {
325
+ onInput: C,
326
+ onFocus: f,
327
+ onBlur: y
328
+ }, null), [[Y, n.modelValue]]), m.value && E("span", {
307
329
  id: "clearIcon",
308
330
  class: p.value,
309
331
  style: d.value,
310
- onClick: (C) => v(C)
332
+ onClick: (k) => v(k)
311
333
  }, [E("i", {
312
334
  class: "f-icon modal_close"
313
335
  }, null)]), n.showCount && E("span", {
314
336
  style: "position: absolute;bottom: 5px;right: 10px"
315
- }, [`${n.modelValue.length}/${h.value}`])]);
337
+ }, [`${n.modelValue.length}/${g.value}`])]);
316
338
  }
317
339
  });
318
- function ge(n, t, e) {
319
- var T;
320
- function r() {
321
- e != null && e.resolveComponentContext && e.resolveComponentContext();
322
- }
323
- r();
324
- const a = e && e.getStyles && e.getStyles() || "", l = e && e.getDesignerClass && e.getDesignerClass() || "", c = F();
325
- function f() {
340
+ function ve(n, t, e) {
341
+ var F;
342
+ const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "", l = B();
343
+ function s() {
326
344
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
327
345
  }
328
- function m() {
346
+ function y() {
329
347
  return !1;
330
348
  }
331
- function i() {
349
+ function f() {
332
350
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
333
351
  }
334
- function s() {
352
+ function i() {
335
353
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
336
354
  }
337
- function o(b) {
338
- if (!b || !b.value)
355
+ function c(h) {
356
+ if (!h || !h.value)
339
357
  return null;
340
- if (b.value.schema && b.value.schema.type === "component")
341
- return b.value;
342
- const k = F(b == null ? void 0 : b.value.parent), S = o(k);
358
+ if (h.value.schema && h.value.schema.type === "component")
359
+ return h.value;
360
+ const w = B(h == null ? void 0 : h.value.parent), S = c(w);
343
361
  return S || null;
344
362
  }
345
- function p(b = t) {
346
- const { componentInstance: k, designerItemElementRef: S } = b;
347
- return !k || !k.value ? null : k.value.canMove ? S : p(b.parent);
363
+ function r(h = t) {
364
+ const { componentInstance: w, designerItemElementRef: S } = h;
365
+ return !w || !w.value ? null : w.value.canMove ? S : r(h.parent);
348
366
  }
349
- function y(b) {
350
- return !!e && e.canAccepts(b);
367
+ function p(h) {
368
+ return !!e && e.canAccepts(h);
351
369
  }
352
- function d() {
370
+ function m() {
353
371
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
354
372
  }
355
- function h() {
373
+ function d() {
356
374
  }
357
- function M(b, k) {
358
- k && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(k);
375
+ function g(h, w) {
376
+ w && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(w);
359
377
  }
360
- function v(b, k) {
361
- const { componentType: S } = b;
362
- let B = z(S, b, k);
363
- e && e.onResolveNewComponentSchema && (B = e.onResolveNewComponentSchema(b, B));
364
- const L = S.toLowerCase().replace("-", "_");
365
- return B && !B.id && B.type === S && (B.id = `${L}_${Math.random().toString().slice(2, 6)}`), B;
378
+ function C(h, w) {
379
+ const { componentType: S } = h;
380
+ let T = z(S, h, w);
381
+ e && e.onResolveNewComponentSchema && (T = e.onResolveNewComponentSchema(h, T));
382
+ const D = S.toLowerCase().replace(/-/g, "_");
383
+ return T && !T.id && T.type === S && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
366
384
  }
367
- function C(b) {
385
+ function v(h) {
368
386
  }
369
- function w(...b) {
387
+ function M(...h) {
370
388
  if (e && e.getPropsConfig)
371
- return e.getPropsConfig(...b);
389
+ return e.getPropsConfig(...h);
390
+ }
391
+ function k() {
392
+ e && e.onRemoveComponent && e.onRemoveComponent(), t != null && t.schema.contents && t.schema.contents.map((h) => {
393
+ var T;
394
+ let w = h.id;
395
+ h.type === "component-ref" && (w = h.component);
396
+ const S = n.value.querySelector(`#${w}-design-item`);
397
+ (T = S == null ? void 0 : S.componentInstance) != null && T.value.onRemoveComponent && S.componentInstance.value.onRemoveComponent();
398
+ });
372
399
  }
373
- return c.value = {
374
- canMove: f(),
375
- canSelectParent: m(),
376
- canDelete: i(),
377
- canNested: !s(),
400
+ return l.value = {
401
+ canMove: s(),
402
+ canSelectParent: y(),
403
+ canDelete: f(),
404
+ canNested: !i(),
378
405
  contents: t == null ? void 0 : t.schema.contents,
379
406
  elementRef: n,
380
- parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
407
+ parent: (F = t == null ? void 0 : t.parent) == null ? void 0 : F.componentInstance,
381
408
  schema: t == null ? void 0 : t.schema,
382
409
  styles: a,
383
- designerClass: l,
384
- canAccepts: y,
385
- getBelongedComponentInstance: o,
386
- getDraggableDesignItemElement: p,
387
- getDraggingDisplayText: d,
388
- getPropConfig: w,
389
- getDragScopeElement: h,
390
- onAcceptMovedChildElement: M,
391
- onChildElementMovedOut: C,
392
- addNewChildComponentSchema: v,
393
- updateDragAndDropRules: r,
394
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || F(!1),
395
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || F(!1)
396
- }, c;
410
+ designerClass: o,
411
+ canAccepts: p,
412
+ getBelongedComponentInstance: c,
413
+ getDraggableDesignItemElement: r,
414
+ getDraggingDisplayText: m,
415
+ getPropConfig: M,
416
+ getDragScopeElement: d,
417
+ onAcceptMovedChildElement: g,
418
+ onChildElementMovedOut: v,
419
+ addNewChildComponentSchema: C,
420
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || B(!1),
421
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || B(!1),
422
+ onRemoveComponent: k
423
+ }, l;
397
424
  }
398
425
  class Ce {
399
426
  constructor(t, e) {
400
- g(this, "componentId");
401
- g(this, "viewModelId");
402
- g(this, "eventsEditorUtils");
403
- g(this, "formSchemaUtils");
404
- g(this, "formMetadataConverter");
405
- g(this, "designViewModelUtils");
406
- g(this, "designViewModelField");
407
- g(this, "controlCreatorUtils");
408
- g(this, "designerHostService");
409
- g(this, "schemaService", null);
410
- g(this, "metadataService", null);
411
- g(this, "propertyConfig", {
427
+ b(this, "componentId");
428
+ b(this, "viewModelId");
429
+ b(this, "eventsEditorUtils");
430
+ b(this, "formSchemaUtils");
431
+ b(this, "formMetadataConverter");
432
+ b(this, "designViewModelUtils");
433
+ b(this, "designViewModelField");
434
+ b(this, "controlCreatorUtils");
435
+ b(this, "designerHostService");
436
+ b(this, "schemaService", null);
437
+ b(this, "metadataService", null);
438
+ b(this, "propertyConfig", {
412
439
  type: "object",
413
440
  categories: {}
414
441
  });
415
- var r;
416
- this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
442
+ var a;
443
+ this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((a = this.formSchemaUtils) == null ? void 0 : a.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
417
444
  }
418
445
  getTableInfo() {
419
446
  var t;
420
447
  return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
421
448
  }
422
449
  setDesignViewModelField(t) {
450
+ var a;
423
451
  const e = t.binding && t.binding.type === "Form" && t.binding.field;
424
452
  if (e) {
425
453
  if (!this.designViewModelField) {
426
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
427
- this.designViewModelField = r.fields.find((a) => a.id === e);
454
+ const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
455
+ this.designViewModelField = o.fields.find((l) => l.id === e);
428
456
  }
429
- t.updateOn = this.designViewModelField.updateOn;
457
+ t.updateOn = (a = this.designViewModelField) == null ? void 0 : a.updateOn;
430
458
  }
431
459
  }
432
460
  changeFieldEditorType(t, e) {
@@ -483,19 +511,19 @@ class Ce {
483
511
  * @returns
484
512
  */
485
513
  updateElementByParentContainer(t, e) {
486
- const r = e && e.parent && e.parent.schema;
487
- if (!r)
514
+ const a = e && e.parent && e.parent.schema;
515
+ if (!a)
488
516
  return;
489
- const a = r.contents.findIndex((c) => c.id === t), l = O(r.contents[a]);
490
- r.contents.splice(a, 1), r.contents.splice(a, 0, l);
517
+ const o = a.contents.findIndex((s) => s.id === t), l = W(a.contents[o]);
518
+ a.contents.splice(o, 1), a.contents.splice(o, 0, l);
491
519
  }
492
520
  }
493
- const I = class I {
521
+ const P = class P {
494
522
  /**
495
523
  * 根据绑定字段类型获取可用的输入类控件
496
524
  */
497
525
  static getEditorTypesByMDataType(t) {
498
- const e = I.fieldControlTypeMapping[t];
526
+ const e = P.fieldControlTypeMapping[t];
499
527
  return e || [{ key: "", value: "" }];
500
528
  }
501
529
  /**
@@ -503,9 +531,9 @@ const I = class I {
503
531
  */
504
532
  static getAllInputTypes() {
505
533
  const t = [];
506
- for (let e in I.fieldControlTypeMapping)
507
- I.fieldControlTypeMapping[e].forEach((r) => {
508
- t.find((a) => a.key === r.key && a.value === r.value) || t.push({ key: r.key, value: r.value });
534
+ for (const e in P.fieldControlTypeMapping)
535
+ P.fieldControlTypeMapping[e].forEach((a) => {
536
+ t.find((o) => o.key === a.key && o.value === a.value) || t.push({ key: a.key, value: a.value });
509
537
  });
510
538
  return t;
511
539
  }
@@ -513,7 +541,7 @@ const I = class I {
513
541
  /**
514
542
  * <字段类型,可配置的控件类型列表>的映射
515
543
  */
516
- g(I, "fieldControlTypeMapping", {
544
+ b(P, "fieldControlTypeMapping", {
517
545
  String: [
518
546
  { key: u["input-group"].type, value: u["input-group"].name },
519
547
  { key: u.lookup.type, value: u.lookup.name },
@@ -560,129 +588,127 @@ g(I, "fieldControlTypeMapping", {
560
588
  { key: u["radio-group"].type, value: u["radio-group"].name }
561
589
  ]
562
590
  });
563
- let V = I;
564
- const be = F(0);
565
- class ve {
591
+ let V = P;
592
+ const Me = B(0);
593
+ class ke {
566
594
  constructor() {
567
595
  /** 控件标题 */
568
- g(this, "label", "");
596
+ b(this, "label", "");
569
597
  /** 控件id */
570
- g(this, "id", "");
598
+ b(this, "id", "");
571
599
  /** 每个控件占用的栅格数 */
572
- g(this, "columnInSM", 12);
573
- g(this, "columnInMD", 6);
574
- g(this, "columnInLG", 3);
575
- g(this, "columnInEL", 2);
600
+ b(this, "columnInSM", 12);
601
+ b(this, "columnInMD", 6);
602
+ b(this, "columnInLG", 3);
603
+ b(this, "columnInEL", 2);
576
604
  /** 每个控件占用的列数 */
577
- g(this, "displayWidthInSM", 1);
578
- g(this, "displayWidthInMD", 1);
579
- g(this, "displayWidthInLG", 1);
580
- g(this, "displayWidthInEL", 1);
605
+ b(this, "displayWidthInSM", 1);
606
+ b(this, "displayWidthInMD", 1);
607
+ b(this, "displayWidthInLG", 1);
608
+ b(this, "displayWidthInEL", 1);
581
609
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
582
- g(this, "displayColumnCountAtBreakPoint", "md");
610
+ b(this, "displayColumnCountAtBreakPoint", "md");
583
611
  /** 控件所在行,传0即可-----编辑器内部使用 */
584
- g(this, "tagRow", 0);
612
+ b(this, "tagRow", 0);
585
613
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
586
- g(this, "showTopBorder", 0);
614
+ b(this, "showTopBorder", 0);
587
615
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
588
- g(this, "group", 1);
616
+ b(this, "group", 1);
589
617
  /** 控件是否符合标准的class配置(设计器用的) */
590
- g(this, "isSupportedClass", !0);
618
+ b(this, "isSupportedClass", !0);
591
619
  /** 控件所在分组id(设计器用的) */
592
- g(this, "fieldSetId", "");
620
+ b(this, "fieldSetId", "");
593
621
  }
594
622
  }
595
- function Me(n) {
623
+ function we(n) {
596
624
  let t, e;
597
- const r = /* @__PURE__ */ new Map();
598
- let a = [];
599
- function l(s, o) {
600
- const y = s.split(" ").filter((C) => C.startsWith("col-"));
601
- if (y.length === 0) {
602
- o.isSupportedClass = !1;
625
+ const a = /* @__PURE__ */ new Map();
626
+ let o = [];
627
+ function l(c, r) {
628
+ const m = c.split(" ").filter((M) => M.startsWith("col-"));
629
+ if (m.length === 0) {
630
+ r.isSupportedClass = !1;
603
631
  return;
604
632
  }
605
- let d = y.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), h = y.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), M = y.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), v = y.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
606
- d = d || "col-12", o.columnInSM = parseInt(d.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), h = h || "col-md-" + o.columnInSM, o.columnInMD = parseInt(h.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), M = M || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(M.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
633
+ let d = m.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), g = m.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), C = m.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), v = m.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
634
+ d = d || "col-12", r.columnInSM = parseInt(d.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), g = g || "col-md-" + r.columnInSM, r.columnInMD = parseInt(g.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), C = C || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(C.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), v = v || "col-el-" + r.columnInLG, r.columnInEL = parseInt(v.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
607
635
  }
608
- function c(s, o, p, y = !1) {
636
+ function s(c, r, p, m = !1) {
609
637
  let d = !1;
610
- s.contents.forEach((h) => {
611
- if (h.type === "fieldset") {
612
- p += 1, c(h, o, p, !0), d = !0;
638
+ c.contents.forEach((g) => {
639
+ if (g.type === "fieldset") {
640
+ p += 1, s(g, r, p, !0), d = !0;
613
641
  return;
614
642
  }
615
643
  d && (p += 1, d = !1);
616
- const M = h.appearance && h.appearance.class, v = new ve();
617
- M ? l(M, v) : v.isSupportedClass = !1, v.label = h.label || h.id, v.id = h.id, v.group = p, y && (v.fieldSetId = s.id), e === h.id && (t = p), r.set(h.id, h), o.push(v);
644
+ const C = g.appearance && g.appearance.class, v = new ke();
645
+ C ? l(C, v) : v.isSupportedClass = !1, v.label = g.label || g.id, v.id = g.id, v.group = p, m && (v.fieldSetId = c.id), e === g.id && (t = p), a.set(g.id, g), r.push(v);
618
646
  });
619
647
  }
620
- function f(s) {
621
- const o = n.getComponentById(s);
622
- if (!o || !o.componentType || !o.componentType.startsWith("form"))
648
+ function y(c) {
649
+ const r = n.getComponentById(c);
650
+ if (!r || !r.componentType || !r.componentType.startsWith("form"))
623
651
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
624
- const p = n.selectNode(o, (y) => y.type === $["response-form"].type);
652
+ const p = n.selectNode(r, (m) => m.type === x["response-form"].type);
625
653
  return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
626
654
  }
627
- function m(s, o) {
628
- o = o || s.id;
629
- const { result: p, message: y, formNode: d } = f(o);
655
+ function f(c, r) {
656
+ r = r || c.id;
657
+ const { result: p, message: m, formNode: d } = y(r);
630
658
  if (!p)
631
- return { result: p, message: y };
632
- e = s.id, a = [], r.clear();
633
- const h = d.contents[0].type === $.fieldset.type ? 0 : 1;
634
- c(d, a, h);
635
- const M = a.find((C) => !C.isSupportedClass);
659
+ return { result: p, message: m };
660
+ e = c.id, o = [], a.clear();
661
+ const g = d.contents[0].type === x.fieldset.type ? 0 : 1;
662
+ s(d, o, g);
663
+ const C = o.find((M) => !M.isSupportedClass);
636
664
  return {
637
665
  defaultState: {
638
666
  defaultGroupNumber: t || 1,
639
- model: M ? "customize" : "standard"
667
+ model: C ? "customize" : "standard"
640
668
  },
641
- importData: a
669
+ importData: o
642
670
  };
643
671
  }
644
- function i(s, o) {
645
- o = o;
646
- const { result: p, formNode: y } = f(o);
672
+ function i(c, r) {
673
+ r = r;
674
+ const { result: p, formNode: m } = y(r);
647
675
  if (!p)
648
676
  return "";
649
677
  const d = [];
650
- return s.forEach((h) => {
651
- var C;
652
- const M = r.get(h.id), v = M.appearance && M.appearance.class;
678
+ return c.forEach((g) => {
679
+ var M;
680
+ const C = a.get(g.id), v = C.appearance && C.appearance.class;
653
681
  if (v) {
654
- const T = v.split(" ").filter((J) => !J.startsWith("col-")), b = "col-" + h.columnInSM, k = "col-md-" + h.columnInMD, S = "col-xl-" + h.columnInLG, B = "col-el-" + h.columnInEL, L = [b, k, S, B].concat(T);
655
- M.appearance.class = L.join(" ");
682
+ const F = v.split(" ").filter((H) => !H.startsWith("col-")), h = "col-" + g.columnInSM, w = "col-md-" + g.columnInMD, S = "col-xl-" + g.columnInLG, T = "col-el-" + g.columnInEL, D = [h, w, S, T].concat(F);
683
+ C.appearance.class = D.join(" ");
656
684
  }
657
- if (h.fieldSetId) {
658
- const w = y.contents.find((b) => b.id === h.fieldSetId), T = d.find((b) => b.id === h.fieldSetId);
659
- T ? (C = T.contents) == null || C.push(M) : (d.push(w), w.contents = [M]);
685
+ if (g.fieldSetId) {
686
+ const k = m.contents.find((h) => h.id === g.fieldSetId), F = d.find((h) => h.id === g.fieldSetId);
687
+ F ? (M = F.contents) == null || M.push(C) : (d.push(k), k.contents = [C]);
660
688
  } else
661
- d.push(M);
662
- }), y.contents = d, y.id;
689
+ d.push(C);
690
+ }), m.contents = d, m.id;
663
691
  }
664
692
  return {
665
- checkCanFindFormNode: f,
666
- checkCanOpenLayoutEditor: m,
693
+ checkCanFindFormNode: y,
694
+ checkCanOpenLayoutEditor: f,
667
695
  changeFormControlsByResponseLayoutConfig: i,
668
- getResonseFormLayoutConfig: c
696
+ getResonseFormLayoutConfig: s
669
697
  };
670
698
  }
671
- class ke extends Ce {
672
- constructor(e, r) {
673
- super(e, r);
674
- g(this, "responseLayoutEditorFunction");
675
- this.responseLayoutEditorFunction = Me(this.formSchemaUtils);
676
- }
677
- getPropertyConfig(e, r) {
678
- return this.propertyConfig.categories.basic = this.getBasicProperties(e, r), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, r), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
679
- }
680
- getBasicProperties(e, r) {
681
- var f;
682
- var a = this;
683
- this.setDesignViewModelField(e);
684
- const l = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
685
- return {
699
+ class Se extends Ce {
700
+ constructor(e, a) {
701
+ super(e, a);
702
+ b(this, "responseLayoutEditorFunction");
703
+ this.responseLayoutEditorFunction = we(this.formSchemaUtils);
704
+ }
705
+ getPropertyConfig(e, a) {
706
+ return this.propertyConfig.categories.basic = this.getBasicProperties(e, a), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, a), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
707
+ }
708
+ getBasicProperties(e, a) {
709
+ var l;
710
+ const o = this;
711
+ return this.setDesignViewModelField(e), this.formSchemaUtils.getFormMetadataBasicInfo(), {
686
712
  description: "Basic Information",
687
713
  title: "基本信息",
688
714
  properties: {
@@ -703,7 +729,7 @@ class ke extends Ce {
703
729
  textField: "value",
704
730
  valueField: "key",
705
731
  editable: !1,
706
- data: a.designViewModelField ? V.getEditorTypesByMDataType((f = a.designViewModelField.type) == null ? void 0 : f.name) : V.getAllInputTypes()
732
+ data: o.designViewModelField ? V.getEditorTypesByMDataType((l = o.designViewModelField.type) == null ? void 0 : l.name) : V.getAllInputTypes()
707
733
  }
708
734
  },
709
735
  label: {
@@ -714,41 +740,37 @@ class ke extends Ce {
714
740
  binding: {
715
741
  description: "绑定的表单字段",
716
742
  title: "绑定",
717
- $converter: "/converter/field-selector.converter",
718
743
  editor: {
719
- type: "field-selector",
744
+ type: "binding-selector",
720
745
  bindingType: { enable: !1 },
721
746
  editorParams: {
722
- propertyData: e,
723
- formBasicInfo: l
747
+ componentSchema: e,
748
+ needSyncToViewModel: !0,
749
+ viewModelId: this.viewModelId,
750
+ designerHostService: this.designerHostService,
751
+ disableOccupiedFields: !0
724
752
  },
725
- columns: [
726
- { field: "name", title: "字段名称" },
727
- { field: "bindingField", title: "绑定字段" },
728
- { field: "fieldType", title: "字段类型" }
729
- ],
730
- textField: "bindingField",
731
- data: c
753
+ textField: "bindingField"
732
754
  }
733
755
  }
734
756
  },
735
- setPropertyRelates(m, i) {
736
- if (m)
737
- switch (m && m.propertyID) {
757
+ setPropertyRelates(s, y) {
758
+ if (s)
759
+ switch (s && s.propertyID) {
738
760
  case "type": {
739
- a.changeControlType(e, m, r);
761
+ o.changeControlType(e, s, a);
740
762
  break;
741
763
  }
742
764
  case "label": {
743
- m.needRefreshControlTree = !0;
765
+ s.needRefreshControlTree = !0;
744
766
  break;
745
767
  }
746
768
  }
747
769
  }
748
770
  };
749
771
  }
750
- getAppearanceProperties(e, r) {
751
- var a = this;
772
+ getAppearanceProperties(e, a) {
773
+ const o = this;
752
774
  return {
753
775
  title: "样式",
754
776
  description: "Appearance",
@@ -774,18 +796,18 @@ class ke extends Ce {
774
796
  refreshPanelAfterChanged: !0,
775
797
  editor: {
776
798
  type: "response-layout-editor-setting",
777
- initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, a.componentId)
799
+ initialState: o.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, o.componentId)
778
800
  }
779
801
  }
780
802
  },
781
- setPropertyRelates(l, c) {
803
+ setPropertyRelates(l, s) {
782
804
  if (l)
783
805
  switch (l && l.propertyID) {
784
806
  case "responseLayout":
785
- a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, a.componentId || e.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(e.id, r), delete e.responseLayout;
807
+ o.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, o.componentId || e.id), o.updateUnifiedLayoutAfterResponseLayoutChanged(o.componentId), o.updateElementByParentContainer(e.id, a), delete e.responseLayout;
786
808
  break;
787
809
  case "class":
788
- a.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), a.updateElementByParentContainer(e.id, r);
810
+ o.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), o.updateElementByParentContainer(e.id, a);
789
811
  break;
790
812
  }
791
813
  }
@@ -799,12 +821,12 @@ class ke extends Ce {
799
821
  * @param propertyData 控件DOM属性
800
822
  * @param newControlType 新控件类型
801
823
  */
802
- changeControlType(e, r, a) {
803
- var s, o, p, y;
804
- const l = r.propertyValue, c = a && a.parent && a.parent.schema;
805
- if (!c)
824
+ changeControlType(e, a, o) {
825
+ var c, r, p, m;
826
+ const l = a.propertyValue, s = o && o.parent && o.parent.schema;
827
+ if (!s)
806
828
  return;
807
- const f = c.contents.findIndex((d) => d.id === e.id), m = c.contents[f];
829
+ const y = s.contents.findIndex((d) => d.id === e.id), f = s.contents[y];
808
830
  let i;
809
831
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
810
832
  editor: {
@@ -814,29 +836,29 @@ class ke extends Ce {
814
836
  require: this.designViewModelField.require,
815
837
  readonly: this.designViewModelField.readonly
816
838
  }, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), i || (i = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(i, {
817
- id: m.id,
818
- appearance: m.appearance,
819
- size: m.size,
820
- label: m.label,
821
- binding: m.binding,
822
- visible: m.visible
839
+ id: f.id,
840
+ appearance: f.appearance,
841
+ size: f.size,
842
+ label: f.label,
843
+ binding: f.binding,
844
+ visible: f.visible
823
845
  }), Object.assign(i.editor, {
824
- isTextArea: i.isTextArea && m.isTextArea,
825
- placeholder: (s = m.editor) == null ? void 0 : s.placeholder,
826
- holdPlace: (o = m.editor) == null ? void 0 : o.holdPlace,
827
- readonly: (p = m.editor) == null ? void 0 : p.readonly,
828
- require: (y = m.editor) == null ? void 0 : y.require
829
- }), c.contents.splice(f, 1), c.contents.splice(f, 0, i), a.schema = Object.assign(m, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
846
+ isTextArea: i.isTextArea && f.isTextArea,
847
+ placeholder: (c = f.editor) == null ? void 0 : c.placeholder,
848
+ holdPlace: (r = f.editor) == null ? void 0 : r.holdPlace,
849
+ readonly: (p = f.editor) == null ? void 0 : p.readonly,
850
+ require: (m = f.editor) == null ? void 0 : m.require
851
+ }), s.contents.splice(y, 1), s.contents.splice(y, 0, i), o.schema = Object.assign(f, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
830
852
  (d) => d.classList.remove("dgComponentSelected")
831
- ), be.value++;
853
+ ), Me.value++;
832
854
  }
833
- getComponentConfig(e, r = {}, a = {}) {
855
+ getComponentConfig(e, a = {}, o = {}) {
834
856
  const l = Object.assign({
835
857
  description: "编辑器",
836
858
  title: "编辑器",
837
859
  type: "input-group",
838
860
  $converter: "/converter/property-editor.converter"
839
- }, r), c = Object.assign({
861
+ }, a), s = Object.assign({
840
862
  readonly: {
841
863
  description: "",
842
864
  title: "只读",
@@ -857,8 +879,8 @@ class ke extends Ce {
857
879
  title: "提示文本",
858
880
  type: "string"
859
881
  }
860
- }, a);
861
- return { ...l, properties: { ...c } };
882
+ }, o);
883
+ return { ...l, properties: { ...s } };
862
884
  }
863
885
  /**
864
886
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -866,135 +888,96 @@ class ke extends Ce {
866
888
  * @param controlId 控件Id
867
889
  * @param componentId 控件所在组件id
868
890
  */
869
- updateUnifiedLayoutAfterControlChanged(e, r, a) {
891
+ updateUnifiedLayoutAfterControlChanged(e, a, o) {
870
892
  const l = e.split(" ");
871
- let c = l.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), f = l.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), m = l.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), i = l.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
872
- c = c || "col-12", f = f || "col-md-" + c.replace("col-", ""), m = m || "col-xl-" + f.replace("col-md-", ""), i = i || "col-el-" + m.replace("col-xl-", "");
873
- const s = {
874
- id: r,
875
- columnInSM: parseInt(c.replace("col-", ""), 10),
876
- columnInMD: parseInt(f.replace("col-md-", ""), 10),
877
- columnInLG: parseInt(m.replace("col-xl-", ""), 10),
893
+ let s = l.find((r) => /^col-([1-9]|10|11|12)$/.test(r)), y = l.find((r) => /^col-md-([1-9]|10|11|12)$/.test(r)), f = l.find((r) => /^col-xl-([1-9]|10|11|12)$/.test(r)), i = l.find((r) => /^col-el-([1-9]|10|11|12)$/.test(r));
894
+ s = s || "col-12", y = y || "col-md-" + s.replace("col-", ""), f = f || "col-xl-" + y.replace("col-md-", ""), i = i || "col-el-" + f.replace("col-xl-", "");
895
+ const c = {
896
+ id: a,
897
+ columnInSM: parseInt(s.replace("col-", ""), 10),
898
+ columnInMD: parseInt(y.replace("col-md-", ""), 10),
899
+ columnInLG: parseInt(f.replace("col-xl-", ""), 10),
878
900
  columnInEL: parseInt(i.replace("col-el-", ""), 10)
879
901
  };
880
- this.updateUnifiedLayoutAfterResponseLayoutChanged(a, s);
902
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(o, c);
881
903
  }
882
904
  /**
883
905
  * 修改控件布局配置后更新Form统一布局配置
884
906
  * @param componentId 组件Id
885
907
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
886
908
  */
887
- updateUnifiedLayoutAfterResponseLayoutChanged(e, r) {
888
- const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
889
- if (!a || !a.unifiedLayout)
909
+ updateUnifiedLayoutAfterResponseLayoutChanged(e, a) {
910
+ const { formNode: o } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
911
+ if (!o || !o.unifiedLayout)
890
912
  return;
891
913
  const l = [];
892
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, l, 1), r) {
893
- const d = l.find((h) => h.id === r.id);
894
- Object.assign(d || {}, r);
914
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(o, l, 1), a) {
915
+ const d = l.find((g) => g.id === a.id);
916
+ Object.assign(d || {}, a);
895
917
  }
896
- const c = l.map((d) => d.columnInSM), f = l.map((d) => d.columnInMD), m = l.map((d) => d.columnInLG), i = l.map((d) => d.columnInEL), s = this.checkIsUniqueColumn(c) ? c[0] : null, o = this.checkIsUniqueColumn(f) ? f[0] : null, p = this.checkIsUniqueColumn(m) ? m[0] : null, y = this.checkIsUniqueColumn(i) ? i[0] : null;
897
- Object.assign(a.unifiedLayout, {
898
- uniqueColClassInSM: s,
899
- uniqueColClassInMD: o,
918
+ const s = l.map((d) => d.columnInSM), y = l.map((d) => d.columnInMD), f = l.map((d) => d.columnInLG), i = l.map((d) => d.columnInEL), c = this.checkIsUniqueColumn(s) ? s[0] : null, r = this.checkIsUniqueColumn(y) ? y[0] : null, p = this.checkIsUniqueColumn(f) ? f[0] : null, m = this.checkIsUniqueColumn(i) ? i[0] : null;
919
+ Object.assign(o.unifiedLayout, {
920
+ uniqueColClassInSM: c,
921
+ uniqueColClassInMD: r,
900
922
  uniqueColClassInLG: p,
901
- uniqueColClassInEL: y
923
+ uniqueColClassInEL: m
902
924
  });
903
925
  }
904
926
  /**
905
927
  * 校验宽度样式值是否一致
906
928
  */
907
929
  checkIsUniqueColumn(e) {
908
- const r = new Set(e);
909
- return Array.from(r).length === 1;
930
+ const a = new Set(e);
931
+ return Array.from(a).length === 1;
910
932
  }
911
933
  }
912
- class we extends ke {
934
+ class Te extends Se {
913
935
  constructor(t, e) {
914
936
  super(t, e);
915
937
  }
916
- }
917
- function Te(n, t) {
918
- n.schema;
919
- const e = F(!0), r = F(!0);
920
- function a(o) {
921
- return !1;
922
- }
923
- function l() {
924
- return !1;
925
- }
926
- function c() {
927
- return !1;
928
- }
929
- function f() {
930
- return !0;
931
- }
932
- function m(o) {
933
- }
934
- function i() {
935
- }
936
- function s(o) {
937
- return null;
938
+ getEditorProperties(t) {
939
+ return this.getComponentConfig(t, { type: "textarea" }, {
940
+ rows: {
941
+ description: "",
942
+ title: "文本区域可见的行数",
943
+ type: "number"
944
+ },
945
+ showCount: {
946
+ description: "",
947
+ title: "展示输入文本数量",
948
+ type: "boolean"
949
+ }
950
+ });
938
951
  }
939
- return {
940
- canAccepts: a,
941
- checkCanDeleteComponent: l,
942
- checkCanMoveComponent: c,
943
- hideNestedPaddingInDesginerView: f,
944
- onAcceptMovedChildElement: m,
945
- resolveComponentContext: i,
946
- triggerBelongedComponentToMoveWhenMoved: e,
947
- triggerBelongedComponentToDeleteWhenDeleted: r,
948
- getPropsConfig: s
949
- };
950
952
  }
951
- function Se(n, t) {
952
- const {
953
- canAccepts: e,
954
- checkCanDeleteComponent: r,
955
- checkCanMoveComponent: a,
956
- hideNestedPaddingInDesginerView: l,
957
- onAcceptMovedChildElement: c,
958
- resolveComponentContext: f,
959
- triggerBelongedComponentToMoveWhenMoved: m,
960
- triggerBelongedComponentToDeleteWhenDeleted: i
961
- } = Te(n), s = n.schema;
962
- function o(p, y) {
963
- return new we(p, t).getPropertyConfig(s, y);
953
+ function Fe(n, t) {
954
+ const e = n.schema;
955
+ function a(o, l) {
956
+ return new Te(o, t).getPropertyConfig(e, l);
964
957
  }
965
- return {
966
- canAccepts: e,
967
- checkCanDeleteComponent: r,
968
- checkCanMoveComponent: a,
969
- hideNestedPaddingInDesginerView: l,
970
- onAcceptMovedChildElement: c,
971
- resolveComponentContext: f,
972
- triggerBelongedComponentToMoveWhenMoved: m,
973
- triggerBelongedComponentToDeleteWhenDeleted: i,
974
- getPropsConfig: o
975
- };
958
+ return { getPropsConfig: a };
976
959
  }
977
- const Fe = /* @__PURE__ */ G({
960
+ const Ee = /* @__PURE__ */ G({
978
961
  name: "FTextareaDesign",
979
962
  props: N,
980
963
  emits: [""],
981
964
  setup(n, t) {
982
- const e = F(), r = U("designer-host-service"), a = U("design-item-context"), l = Se(a, r), c = ge(e, a, l), f = D(() => n.maxLength ? n.maxLength : n.modelValue.length), m = D(() => ({
965
+ const e = B(), a = U("designer-host-service"), o = U("design-item-context"), l = Fe(o, a), s = ve(e, o, l), y = I(() => n.maxLength ? n.maxLength : n.modelValue.length), f = I(() => ({
983
966
  position: "relative"
984
- })), i = D(() => ({
967
+ })), i = I(() => ({
985
968
  "box-shadow": "0 0 0 1px #dcdfe6 inset",
986
969
  border: "none",
987
970
  padding: "5px 10px",
988
971
  width: "100%"
989
- })), s = {
972
+ })), c = {
990
973
  position: "absolute",
991
974
  bottom: "5px",
992
975
  right: "10px"
993
976
  };
994
- return W(() => {
995
- e.value.componentInstance = c;
996
- }), t.expose(c.value), () => E("div", {
997
- style: m.value,
977
+ return q(() => {
978
+ e.value.componentInstance = s;
979
+ }), t.expose(s.value), () => E("div", {
980
+ style: f.value,
998
981
  ref: e
999
982
  }, [E("textarea", {
1000
983
  id: n.id,
@@ -1005,25 +988,20 @@ const Fe = /* @__PURE__ */ G({
1005
988
  placeholder: n.placeholder,
1006
989
  rows: n.rows
1007
990
  }, null), n.showCount && E("span", {
1008
- style: s
1009
- }, [`${n.modelValue.length}/${f.value}`])]);
991
+ style: c
992
+ }, [`${n.modelValue.length}/${y.value}`])]);
1010
993
  }
1011
- }), Be = (n) => {
1012
- const t = n;
1013
- return t.install = function(e) {
1014
- e.component(t.name, n);
1015
- }, n;
1016
- };
1017
- P.register = (n, t, e, r) => {
1018
- n.textarea = P, t.textarea = X;
994
+ });
995
+ L.register = (n, t, e, a) => {
996
+ n.textarea = L, t.textarea = X;
1019
997
  };
1020
- P.registerDesigner = (n, t, e) => {
1021
- n.textarea = Fe, t.textarea = X;
998
+ L.registerDesigner = (n, t, e) => {
999
+ n.textarea = Ee, t.textarea = X;
1022
1000
  };
1023
- const Le = Be(P);
1001
+ const De = R(L);
1024
1002
  export {
1025
- P as FTextarea,
1026
- Le as default,
1003
+ L as FTextarea,
1004
+ De as default,
1027
1005
  X as propsResolver,
1028
1006
  N as textAreaProps
1029
1007
  };