@farris/ui-vue 1.2.8 → 1.3.0

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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,108 +1,150 @@
1
- import { defineComponent as F, ref as O, onUnmounted as q, createVNode as $, createTextVNode as W, watch as J, inject as U, onMounted as G } from "vue";
2
- import { cloneDeep as H } from "lodash-es";
3
- const _ = {}, z = {};
4
- function L(a) {
5
- const { properties: e, title: o } = a, c = Object.keys(e).reduce((p, d) => (p[d] = e[d].type === "object" && e[d].properties ? L(e[d]) : H(e[d].default), p), {});
6
- return c.id = `${o}-${Date.now()}`, c;
1
+ var x = Object.defineProperty;
2
+ var K = (n, e, t) => e in n ? x(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var M = (n, e, t) => K(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as Y, ref as E, onUnmounted as J, createVNode as k, createTextVNode as Q, watch as I, inject as ee, onMounted as te } from "vue";
5
+ import { isPlainObject as _, cloneDeep as R } from "lodash-es";
6
+ const X = {}, Z = {};
7
+ function $(n) {
8
+ const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), l = Object.keys(e).reduce((u, m) => ((!s || !r.find((g) => g == m)) && (u[m] = e[m].type === "object" && e[m].properties ? $(e[m]) : R(e[m].default)), u), {});
9
+ return (!s || !r.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
7
10
  }
8
- function S(a, e = {}) {
9
- const o = _[a];
10
- if (o) {
11
- let c = L(o);
12
- const p = z[a];
13
- return c = p ? p({ getSchemaByType: S }, c, e) : c, c;
11
+ function F(n, e = {}, t) {
12
+ const r = X[n];
13
+ if (r) {
14
+ let s = $(r);
15
+ const l = Z[n];
16
+ return s = l ? l({ getSchemaByType: F }, s, e, t) : s, s;
14
17
  }
15
18
  return null;
16
19
  }
17
- function Q(a, e) {
18
- const o = L(e);
19
- return Object.keys(a).reduce((c, p) => (c[p] && typeof c[p] == "object" ? Object.assign(c[p], a[p]) : c[p] = a[p], c), o), o;
20
+ function oe(n, e) {
21
+ const t = $(e);
22
+ return Object.keys(n).reduce((r, s) => (r[s] && _(r[s]) && _(n[s]) ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
20
23
  }
21
- function X(a, e) {
22
- return Object.keys(a).filter((c) => a[c] != null).reduce((c, p) => {
23
- if (e.has(p)) {
24
- const d = e.get(p);
25
- if (typeof d == "string")
26
- c[d] = a[p];
24
+ function ne(n, e) {
25
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
26
+ if (e.has(s)) {
27
+ const l = e.get(s);
28
+ if (typeof l == "string")
29
+ r[l] = n[s];
27
30
  else {
28
- const h = d(p, a[p], a);
29
- Object.assign(c, h);
31
+ const u = l(s, n[s], n);
32
+ Object.assign(r, u);
30
33
  }
31
34
  } else
32
- c[p] = a[p];
33
- return c;
35
+ r[s] = n[s];
36
+ return r;
34
37
  }, {});
35
38
  }
36
- function Z(a, e, o = /* @__PURE__ */ new Map()) {
37
- const c = Q(a, e);
38
- return X(c, o);
39
+ function re(n, e, t = /* @__PURE__ */ new Map()) {
40
+ const r = oe(n, e);
41
+ return ne(r, t);
39
42
  }
40
- function R(a = {}) {
41
- function e(s, f, l, u) {
42
- if (typeof l == "number")
43
- return u[s].length === l;
44
- if (typeof l == "object") {
45
- const g = Object.keys(l)[0], r = l[g];
46
- if (g === "not")
47
- return Number(u[s].length) !== Number(r);
48
- if (g === "moreThan")
49
- return Number(u[s].length) >= Number(r);
50
- if (g === "lessThan")
51
- return Number(u[s].length) <= Number(r);
43
+ function ae(n = {}) {
44
+ function e(c, f, d, y) {
45
+ if (typeof d == "number")
46
+ return y[c].length === d;
47
+ if (typeof d == "object") {
48
+ const j = Object.keys(d)[0], i = d[j];
49
+ if (j === "not")
50
+ return Number(y[c].length) !== Number(i);
51
+ if (j === "moreThan")
52
+ return Number(y[c].length) >= Number(i);
53
+ if (j === "lessThan")
54
+ return Number(y[c].length) <= Number(i);
52
55
  }
53
56
  return !1;
54
57
  }
55
- function o(s, f, l, u) {
56
- return u[s] && u[s].propertyValue && String(u[s].propertyValue.value) === String(l);
58
+ function t(c, f, d, y) {
59
+ return y[c] && y[c].propertyValue && String(y[c].propertyValue.value) === String(d);
57
60
  }
58
- const c = /* @__PURE__ */ new Map([
61
+ const r = /* @__PURE__ */ new Map([
59
62
  ["length", e],
60
- ["getProperty", o]
63
+ ["getProperty", t]
61
64
  ]);
62
- Object.keys(a).reduce((s, f) => (s.set(f, a[f]), s), c);
63
- function p(s, f) {
64
- const l = s;
65
- return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!f }] : typeof f == "object" ? Object.keys(f).map((u) => {
66
- if (u === "length")
67
- return { target: l, operator: "length", param: null, value: f[u] };
68
- const g = u, r = f[u];
69
- return { target: l, operator: "getProperty", param: g, value: r };
65
+ Object.keys(n).reduce((c, f) => (c.set(f, n[f]), c), r);
66
+ function s(c, f) {
67
+ const d = c;
68
+ return typeof f == "number" ? [{ target: d, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: d, operator: "getProperty", param: c, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
69
+ if (y === "length")
70
+ return { target: d, operator: "length", param: null, value: f[y] };
71
+ const j = y, i = f[y];
72
+ return { target: d, operator: "getProperty", param: j, value: i };
70
73
  }) : [];
71
74
  }
72
- function d(s) {
73
- return Object.keys(s).reduce((l, u) => {
74
- const g = p(u, s[u]);
75
- return l.push(...g), l;
75
+ function l(c) {
76
+ return Object.keys(c).reduce((d, y) => {
77
+ const j = s(y, c[y]);
78
+ return d.push(...j), d;
76
79
  }, []);
77
80
  }
78
- function h(s, f) {
79
- if (c.has(s.operator)) {
80
- const l = c.get(s.operator);
81
- return l && l(s.target, s.param, s.value, f) || !1;
81
+ function u(c, f) {
82
+ if (r.has(c.operator)) {
83
+ const d = r.get(c.operator);
84
+ return d && d(c.target, c.param, c.value, f) || !1;
82
85
  }
83
86
  return !1;
84
87
  }
85
- function m(s, f) {
86
- return d(s).reduce((g, r) => g && h(r, f), !0);
88
+ function m(c, f) {
89
+ return l(c).reduce((j, i) => j && u(i, f), !0);
87
90
  }
88
- function v(s, f) {
89
- const l = Object.keys(s), u = l.includes("allOf"), g = l.includes("anyOf"), r = u || g, n = (r ? s[r ? u ? "allOf" : "anyOf" : "allOf"] : [s]).map((b) => m(b, f));
90
- return u ? !n.includes(!1) : n.includes(!0);
91
+ function g(c, f) {
92
+ const d = Object.keys(c), y = d.includes("allOf"), j = d.includes("anyOf"), i = y || j, a = (i ? c[i ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((b) => m(b, f));
93
+ return y ? !a.includes(!1) : a.includes(!0);
91
94
  }
92
- return { parseValueSchema: v };
95
+ return { parseValueSchema: g };
93
96
  }
94
- const K = {}, x = {};
95
- R();
96
- function I(a, e, o = /* @__PURE__ */ new Map(), c = (h, m, v) => m, p = {}, d = (h) => h) {
97
- return _[e.title] = e, z[e.title] = c, K[e.title] = p, x[e.title] = d, (h = {}) => {
98
- const m = Z(h, e, o), v = Object.keys(a).reduce((s, f) => (s[f] = a[f].default, s), {});
99
- return Object.assign(v, m);
97
+ const ie = {
98
+ button: { type: "button", name: "按钮", icon: "Button" },
99
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
101
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
102
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
103
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
104
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
105
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
106
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
107
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
108
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
109
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
110
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
111
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
112
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
113
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
114
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
115
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
116
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
117
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
118
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
119
+ module: { type: "Module", name: "模块", icon: "Module" },
120
+ component: { type: "component", name: "组件", icon: "Component" },
121
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
122
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
123
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
124
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
125
+ section: { type: "section", name: "分组面板", icon: "Section" },
126
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
127
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
128
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
129
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
130
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
131
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
132
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
+ }, se = {}, ce = {};
137
+ ae();
138
+ function pe(n, e, t = /* @__PURE__ */ new Map(), r = (u, m, g) => m, s = {}, l = (u) => u) {
139
+ return X[e.title] = e, Z[e.title] = r, se[e.title] = s, ce[e.title] = l, (u = {}) => {
140
+ const m = re(u, e, t), g = Object.keys(n).reduce((c, f) => (c[f] = n[f].default, c), {});
141
+ return Object.assign(g, m);
100
142
  };
101
143
  }
102
- function ee(a, e) {
144
+ function le(n, e) {
103
145
  return { customClass: e.class, customStyle: e.style };
104
146
  }
105
- const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/video.schema.json", ne = "video", re = "A Farris Video Component", ae = "object", ce = {
147
+ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/video.schema.json", fe = "video", ye = "A Farris Video Component", he = "object", me = {
106
148
  id: {
107
149
  description: "The unique identifier for a Video",
108
150
  type: "string"
@@ -130,24 +172,24 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
130
172
  type: "boolean",
131
173
  default: !0
132
174
  }
133
- }, se = [
175
+ }, be = [
134
176
  "id",
135
177
  "type"
136
- ], ie = {
137
- $schema: te,
138
- $id: oe,
139
- title: ne,
140
- description: re,
141
- type: ae,
142
- properties: ce,
143
- required: se
144
- }, pe = /* @__PURE__ */ new Map([
145
- ["appearance", ee]
178
+ ], ge = {
179
+ $schema: ue,
180
+ $id: de,
181
+ title: fe,
182
+ description: ye,
183
+ type: he,
184
+ properties: me,
185
+ required: be
186
+ }, je = /* @__PURE__ */ new Map([
187
+ ["appearance", le]
146
188
  ]);
147
- function le(a, e, o) {
189
+ function ve(n, e, t) {
148
190
  return e;
149
191
  }
150
- const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
192
+ const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
151
193
  basic: {
152
194
  description: "Basic Infomation",
153
195
  title: "基本信息",
@@ -169,12 +211,12 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
169
211
  }
170
212
  }
171
213
  }
172
- }, he = {
173
- title: ue,
174
- description: fe,
175
- type: de,
176
- categories: ye
177
- }, k = {
214
+ }, Ae = {
215
+ title: Pe,
216
+ description: Ce,
217
+ type: we,
218
+ categories: Me
219
+ }, L = {
178
220
  src: {
179
221
  type: String,
180
222
  required: !0,
@@ -211,206 +253,206 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
211
253
  type: [String, Number],
212
254
  default: 168
213
255
  }
214
- }, B = I(k, ie, pe, le, he);
215
- function be(a, e) {
216
- function o(t) {
217
- t.stopPropagation(), e.emit("abort");
256
+ }, z = pe(L, ge, je, ve, Ae);
257
+ function Te(n, e) {
258
+ function t(o) {
259
+ o.stopPropagation(), e.emit("abort");
218
260
  }
219
- function c(t) {
220
- t.stopPropagation(), e.emit("play");
261
+ function r(o) {
262
+ o.stopPropagation(), e.emit("play");
221
263
  }
222
- function p(t) {
223
- t.stopPropagation(), e.emit("pause");
264
+ function s(o) {
265
+ o.stopPropagation(), e.emit("pause");
224
266
  }
225
- function d(t) {
226
- t.stopPropagation(), e.emit("ended");
267
+ function l(o) {
268
+ o.stopPropagation(), e.emit("ended");
227
269
  }
228
- function h(t) {
229
- t.stopPropagation(), e.emit("durationchange");
270
+ function u(o) {
271
+ o.stopPropagation(), e.emit("durationchange");
230
272
  }
231
- function m(t) {
232
- t.stopPropagation(), e.emit("error");
273
+ function m(o) {
274
+ o.stopPropagation(), e.emit("error");
233
275
  }
234
- function v(t) {
235
- t.stopPropagation(), e.emit("loadeddata");
276
+ function g(o) {
277
+ o.stopPropagation(), e.emit("loadeddata");
236
278
  }
237
- function s(t) {
238
- t.stopPropagation(), e.emit("loadedmetadata");
279
+ function c(o) {
280
+ o.stopPropagation(), e.emit("loadedmetadata");
239
281
  }
240
- function f(t) {
241
- t.stopPropagation(), e.emit("loadstart");
282
+ function f(o) {
283
+ o.stopPropagation(), e.emit("loadstart");
242
284
  }
243
- function l(t) {
244
- t.stopPropagation(), e.emit("playing");
285
+ function d(o) {
286
+ o.stopPropagation(), e.emit("playing");
245
287
  }
246
- function u(t) {
247
- t.stopPropagation(), e.emit("progress");
288
+ function y(o) {
289
+ o.stopPropagation(), e.emit("progress");
248
290
  }
249
- function g(t) {
250
- t.stopPropagation(), e.emit("timeupdate");
291
+ function j(o) {
292
+ o.stopPropagation(), e.emit("timeupdate");
251
293
  }
252
- function r(t) {
253
- t.stopPropagation(), e.emit("volumechange");
294
+ function i(o) {
295
+ o.stopPropagation(), e.emit("volumechange");
254
296
  }
255
- function i(t) {
256
- t.stopPropagation(), e.emit("canplay");
297
+ function p(o) {
298
+ o.stopPropagation(), e.emit("canplay");
257
299
  }
258
300
  return {
259
- onAbort: o,
260
- onPlay: c,
261
- onPause: p,
262
- onEnded: d,
263
- onDurationchange: h,
301
+ onAbort: t,
302
+ onPlay: r,
303
+ onPause: s,
304
+ onEnded: l,
305
+ onDurationchange: u,
264
306
  onError: m,
265
- onLoadeddata: v,
266
- onLoadedmetadata: s,
307
+ onLoadeddata: g,
308
+ onLoadedmetadata: c,
267
309
  onLoadstart: f,
268
- onPlaying: l,
269
- onProgress: u,
270
- onTimeupdate: g,
271
- onVolumechange: r,
272
- onCanplay: i
310
+ onPlaying: d,
311
+ onProgress: y,
312
+ onTimeupdate: j,
313
+ onVolumechange: i,
314
+ onCanplay: p
273
315
  };
274
316
  }
275
- const V = /* @__PURE__ */ F({
317
+ const N = /* @__PURE__ */ Y({
276
318
  name: "FVideo",
277
- props: k,
319
+ props: L,
278
320
  emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
279
- setup(a, e) {
280
- const o = O(), {
281
- onAbort: c,
282
- onPlay: p,
283
- onPause: d,
284
- onEnded: h,
321
+ setup(n, e) {
322
+ const t = E(), {
323
+ onAbort: r,
324
+ onPlay: s,
325
+ onPause: l,
326
+ onEnded: u,
285
327
  onDurationchange: m,
286
- onError: v,
287
- onLoadeddata: s,
328
+ onError: g,
329
+ onLoadeddata: c,
288
330
  onLoadedmetadata: f,
289
- onLoadstart: l,
290
- onPlaying: u,
291
- onProgress: g,
292
- onTimeupdate: r,
293
- onVolumechange: i,
294
- onCanplay: t
295
- } = be(a, e);
296
- return q(() => {
297
- }), () => $("video", {
298
- ref: o,
299
- src: a.src,
300
- autoplay: a.autoplay,
301
- controls: a.controls,
302
- loop: a.loop,
303
- muted: a.muted,
304
- width: a.width,
305
- height: a.height,
306
- poster: a.poster,
307
- onAbort: (n) => c(n),
308
- onPlay: (n) => p(n),
309
- onPause: (n) => d(n),
310
- onEnded: (n) => h(n),
311
- onDurationchange: (n) => m(n),
312
- onError: (n) => v(n),
313
- onLoadeddata: (n) => s(n),
314
- onLoadedmetadata: (n) => f(n),
315
- onLoadstart: (n) => l(n),
316
- onPlaying: (n) => u(n),
317
- onProgress: (n) => g(n),
318
- onTimeupdate: (n) => r(n),
319
- onVolumechange: (n) => i(n),
320
- onCanplay: (n) => t(n)
321
- }, [W("Your browser does not support the video tag.")]);
331
+ onLoadstart: d,
332
+ onPlaying: y,
333
+ onProgress: j,
334
+ onTimeupdate: i,
335
+ onVolumechange: p,
336
+ onCanplay: o
337
+ } = Te(n, e);
338
+ return J(() => {
339
+ }), () => k("video", {
340
+ ref: t,
341
+ src: n.src,
342
+ autoplay: n.autoplay,
343
+ controls: n.controls,
344
+ loop: n.loop,
345
+ muted: n.muted,
346
+ width: n.width,
347
+ height: n.height,
348
+ poster: n.poster,
349
+ onAbort: (a) => r(a),
350
+ onPlay: (a) => s(a),
351
+ onPause: (a) => l(a),
352
+ onEnded: (a) => u(a),
353
+ onDurationchange: (a) => m(a),
354
+ onError: (a) => g(a),
355
+ onLoadeddata: (a) => c(a),
356
+ onLoadedmetadata: (a) => f(a),
357
+ onLoadstart: (a) => d(a),
358
+ onPlaying: (a) => y(a),
359
+ onProgress: (a) => j(a),
360
+ onTimeupdate: (a) => i(a),
361
+ onVolumechange: (a) => p(a),
362
+ onCanplay: (a) => o(a)
363
+ }, [Q("Your browser does not support the video tag.")]);
322
364
  }
323
365
  });
324
- function ge(a, e, o) {
325
- var D;
326
- function c() {
327
- o != null && o.resolveComponentContext && o.resolveComponentContext();
366
+ function Ee(n, e, t) {
367
+ var V;
368
+ function r() {
369
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
328
370
  }
329
- c();
330
- const p = o && o.getStyles && o.getStyles() || "", d = o && o.getDesignerClass && o.getDesignerClass() || "", h = O();
371
+ r();
372
+ const s = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = E();
331
373
  function m() {
332
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
374
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
333
375
  }
334
- function v() {
376
+ function g() {
335
377
  return !1;
336
378
  }
337
- function s() {
338
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
379
+ function c() {
380
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
339
381
  }
340
382
  function f() {
341
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : o && o.hideNestedPaddingInDesginerView ? o.hideNestedPaddingInDesginerView() : !1;
383
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
342
384
  }
343
- function l(y) {
344
- if (!y || !y.value)
385
+ function d(h) {
386
+ if (!h || !h.value)
345
387
  return null;
346
- if (y.value.schema && y.value.schema.type === "component")
347
- return y.value;
348
- const A = O(y == null ? void 0 : y.value.parent), j = l(A);
349
- return j || null;
388
+ if (h.value.schema && h.value.schema.type === "component")
389
+ return h.value;
390
+ const P = E(h == null ? void 0 : h.value.parent), C = d(P);
391
+ return C || null;
350
392
  }
351
- function u(y = e) {
352
- const { componentInstance: A, designerItemElementRef: j } = y;
353
- return !A || !A.value ? null : A.value.canMove ? j : u(y.parent);
393
+ function y(h = e) {
394
+ const { componentInstance: P, designerItemElementRef: C } = h;
395
+ return !P || !P.value ? null : P.value.canMove ? C : y(h.parent);
354
396
  }
355
- function g(y) {
356
- return !!o && o.canAccepts(y);
397
+ function j(h) {
398
+ return !!t && t.canAccepts(h);
357
399
  }
358
- function r() {
400
+ function i() {
359
401
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
360
402
  }
361
- function i() {
403
+ function p() {
362
404
  }
363
- function t(y, A) {
364
- A && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(A);
405
+ function o(h, P) {
406
+ P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
365
407
  }
366
- function n(y) {
367
- const { componentType: A } = y;
368
- let j = S(A, y);
369
- o && o.onResolveNewComponentSchema && (j = o.onResolveNewComponentSchema(y, j));
370
- const T = A.toLowerCase().replace("-", "_");
371
- return j && !j.id && j.type === A && (j.id = `${T}_${Math.random().toString().slice(2, 6)}`), j;
408
+ function a(h, P) {
409
+ const { componentType: C } = h;
410
+ let A = F(C, h, P);
411
+ t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(h, A));
412
+ const O = C.toLowerCase().replace("-", "_");
413
+ return A && !A.id && A.type === C && (A.id = `${O}_${Math.random().toString().slice(2, 6)}`), A;
372
414
  }
373
- function P(y, A) {
374
- const j = String(y.getAttribute("data-controltype")), T = y.getAttribute("data-feature"), E = T ? JSON.parse(T) : {};
375
- E.parentComponentInstance = h.value;
376
- let C = S(j, E);
377
- o && o.onAcceptNewChildElement && (C = o.onAcceptNewChildElement(y, A, C));
378
- const N = j.toLowerCase().replace("-", "_");
379
- return C && !C.id && C.type === j && (C.id = `${N}_${Math.random().toString().slice(2, 6)}`), C;
415
+ function v(h, P) {
416
+ const C = String(h.getAttribute("data-controltype")), A = h.getAttribute("data-feature"), O = A ? JSON.parse(A) : {};
417
+ O.parentComponentInstance = u.value;
418
+ let T = F(C, O);
419
+ t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(h, P, T));
420
+ const D = C.toLowerCase().replace("-", "_");
421
+ return T && !T.id && T.type === C && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
380
422
  }
381
- function b(y) {
423
+ function b(h) {
382
424
  }
383
- function w(...y) {
384
- if (o && o.getPropsConfig)
385
- return o.getPropsConfig(...y);
425
+ function w(...h) {
426
+ if (t && t.getPropsConfig)
427
+ return t.getPropsConfig(...h);
386
428
  }
387
- return h.value = {
429
+ return u.value = {
388
430
  canMove: m(),
389
- canSelectParent: v(),
390
- canDelete: s(),
431
+ canSelectParent: g(),
432
+ canDelete: c(),
391
433
  canNested: !f(),
392
434
  contents: e == null ? void 0 : e.schema.contents,
393
- elementRef: a,
394
- parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
435
+ elementRef: n,
436
+ parent: (V = e == null ? void 0 : e.parent) == null ? void 0 : V.componentInstance,
395
437
  schema: e == null ? void 0 : e.schema,
396
- styles: p,
397
- designerClass: d,
398
- canAccepts: g,
399
- getBelongedComponentInstance: l,
400
- getDraggableDesignItemElement: u,
401
- getDraggingDisplayText: r,
438
+ styles: s,
439
+ designerClass: l,
440
+ canAccepts: j,
441
+ getBelongedComponentInstance: d,
442
+ getDraggableDesignItemElement: y,
443
+ getDraggingDisplayText: i,
402
444
  getPropConfig: w,
403
- getDragScopeElement: i,
404
- onAcceptMovedChildElement: t,
405
- onAcceptNewChildElement: P,
445
+ getDragScopeElement: p,
446
+ onAcceptMovedChildElement: o,
447
+ onAcceptNewChildElement: v,
406
448
  onChildElementMovedOut: b,
407
- addNewChildComponentSchema: n,
408
- updateDragAndDropRules: c,
409
- triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || O(!1),
410
- triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || O(!1)
411
- }, h;
449
+ addNewChildComponentSchema: a,
450
+ updateDragAndDropRules: r,
451
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || E(!1),
452
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
453
+ }, u;
412
454
  }
413
- const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-design.gitee.io/dragging-rules.schema.json", Pe = "Dragging Rules", ve = "The rules of designer canvas", we = "object", Ae = {
455
+ const Ve = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Se = "The rules of designer canvas", Ne = "object", Be = {
414
456
  "f-page": {
415
457
  description: "The root class of page designed by farris.",
416
458
  type: "object",
@@ -829,6 +871,80 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
829
871
  "f-list-nav-left": {
830
872
  description: "",
831
873
  type: "object"
874
+ },
875
+ "f-struct-data-grid-in-nav": {
876
+ description: "",
877
+ type: "object",
878
+ properties: {
879
+ contents: {
880
+ type: "object",
881
+ properties: {
882
+ "f-section-form": {
883
+ description: "",
884
+ type: "object",
885
+ properties: {
886
+ rules: {
887
+ type: "object",
888
+ properties: {
889
+ canAccept: {
890
+ type: "boolean",
891
+ const: !1
892
+ },
893
+ fixed: {
894
+ type: "boolean",
895
+ const: !0
896
+ },
897
+ hidePadding: {
898
+ type: "boolean",
899
+ const: !0
900
+ }
901
+ }
902
+ }
903
+ }
904
+ },
905
+ "f-section-grid": {
906
+ description: "",
907
+ type: "object",
908
+ properties: {
909
+ rules: {
910
+ type: "object",
911
+ properties: {
912
+ canAccept: {
913
+ type: "boolean",
914
+ const: !1
915
+ },
916
+ fixed: {
917
+ type: "boolean",
918
+ const: !0
919
+ },
920
+ hidePadding: {
921
+ type: "boolean",
922
+ const: !0
923
+ }
924
+ }
925
+ }
926
+ }
927
+ }
928
+ }
929
+ },
930
+ rules: {
931
+ type: "object",
932
+ properties: {
933
+ canAccept: {
934
+ type: "boolean",
935
+ const: !1
936
+ },
937
+ fixed: {
938
+ type: "boolean",
939
+ const: !0
940
+ },
941
+ hidePadding: {
942
+ type: "boolean",
943
+ const: !0
944
+ }
945
+ }
946
+ }
947
+ }
832
948
  }
833
949
  }
834
950
  }
@@ -974,207 +1090,350 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
974
1090
  description: "",
975
1091
  type: "object"
976
1092
  }
977
- }, Ce = [], De = {
978
- $schema: me,
979
- $id: je,
980
- title: Pe,
981
- description: ve,
982
- type: we,
983
- properties: Ae,
984
- required: Ce
985
- }, M = /* @__PURE__ */ new Map();
986
- function Oe() {
987
- function a(r, i, t, n) {
988
- var P;
989
- if (typeof t == "number")
990
- return ((P = n[r]) == null ? void 0 : P.length) === t;
991
- if (typeof t == "object") {
992
- const b = Object.keys(t)[0], w = t[b];
1093
+ }, ke = {
1094
+ $schema: Ve,
1095
+ $id: Oe,
1096
+ title: De,
1097
+ description: Se,
1098
+ type: Ne,
1099
+ properties: Be
1100
+ }, B = /* @__PURE__ */ new Map();
1101
+ function Fe() {
1102
+ function n(i, p, o, a) {
1103
+ var v;
1104
+ if (typeof o == "number")
1105
+ return ((v = a[i]) == null ? void 0 : v.length) === o;
1106
+ if (typeof o == "object") {
1107
+ const b = Object.keys(o)[0], w = o[b];
993
1108
  if (b === "not")
994
- return Number(n[r].length) !== Number(w);
1109
+ return Number(a[i].length) !== Number(w);
995
1110
  if (b === "moreThan")
996
- return Number(n[r].length) >= Number(w);
1111
+ return Number(a[i].length) >= Number(w);
997
1112
  if (b === "lessThan")
998
- return Number(n[r].length) <= Number(w);
1113
+ return Number(a[i].length) <= Number(w);
999
1114
  }
1000
1115
  return !1;
1001
1116
  }
1002
- function e(r, i, t, n) {
1003
- return typeof t == "boolean" ? n.childrenClassList.includes(i) === !!t : !1;
1117
+ function e(i, p, o, a) {
1118
+ return typeof o == "boolean" ? a.childrenClassList.includes(p) === !!o : !1;
1004
1119
  }
1005
- function o(r, i, t, n) {
1006
- return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1120
+ function t(i, p, o, a) {
1121
+ return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
1007
1122
  }
1008
- function c(r, i, t, n) {
1009
- return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1123
+ function r(i, p, o, a) {
1124
+ return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
1010
1125
  }
1011
- const p = /* @__PURE__ */ new Map([
1012
- ["length", a],
1126
+ const s = /* @__PURE__ */ new Map([
1127
+ ["length", n],
1013
1128
  ["hasChildren", e],
1014
- ["hasSibling", c],
1015
- ["hasParent", o]
1129
+ ["hasSibling", r],
1130
+ ["hasParent", t]
1016
1131
  ]);
1017
- function d(r, i) {
1018
- const t = r;
1019
- return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((n) => {
1020
- if (n === "length")
1021
- return { target: t, operator: "length", param: null, value: i[n] };
1022
- const P = n, b = i[n];
1023
- return { target: t, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: P, value: b };
1132
+ function l(i, p) {
1133
+ const o = i;
1134
+ return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((a) => {
1135
+ if (a === "length")
1136
+ return { target: o, operator: "length", param: null, value: p[a] };
1137
+ const v = a, b = p[a];
1138
+ return { target: o, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: v, value: b };
1024
1139
  }) : [];
1025
1140
  }
1026
- function h(r, i) {
1027
- if (p.has(r.operator)) {
1028
- const t = p.get(r.operator);
1029
- return t && t(r.target, r.param, r.value, i) || !1;
1141
+ function u(i, p) {
1142
+ if (s.has(i.operator)) {
1143
+ const o = s.get(i.operator);
1144
+ return o && o(i.target, i.param, i.value, p) || !1;
1030
1145
  }
1031
1146
  return !1;
1032
1147
  }
1033
- function m(r, i) {
1034
- return Object.keys(r).reduce((b, w) => {
1035
- const D = d(w, r[w]);
1036
- return b.push(...D), b;
1037
- }, []).reduce((b, w) => b && h(w, i), !0);
1038
- }
1039
- function v(r, i) {
1040
- const t = Object.keys(r), n = t.includes("allOf"), P = t.includes("anyOf"), b = n || P, y = (b ? r[b ? n ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => m(j, i));
1041
- return n ? !y.includes(!1) : y.includes(!0);
1042
- }
1043
- function s(r, i) {
1044
- const t = r.const;
1045
- return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, i) : !1 : !1;
1046
- }
1047
- function f(r) {
1048
- return (i) => {
1049
- const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
1050
- return r && r.properties && Object.keys(r.properties).reduce((n, P) => {
1051
- const b = r.properties[P];
1052
- return n[P] = s(b, i), n;
1053
- }, t), t;
1148
+ function m(i, p) {
1149
+ return Object.keys(i).reduce((b, w) => {
1150
+ const V = l(w, i[w]);
1151
+ return b.push(...V), b;
1152
+ }, []).reduce((b, w) => b && u(w, p), !0);
1153
+ }
1154
+ function g(i, p) {
1155
+ const o = Object.keys(i), a = o.includes("allOf"), v = o.includes("anyOf"), b = a || v, h = (b ? i[b ? a ? "allOf" : "anyOf" : "allOf"] : [i]).map((C) => m(C, p));
1156
+ return a ? !h.includes(!1) : h.includes(!0);
1157
+ }
1158
+ function c(i, p) {
1159
+ const o = i.const;
1160
+ return o ? typeof o == "boolean" ? o : typeof o == "object" ? g(o, p) : !1 : !1;
1161
+ }
1162
+ function f(i) {
1163
+ return (p) => {
1164
+ const o = { canAccept: !0, fixed: !1, hidePadding: !1 };
1165
+ return i && i.properties && Object.keys(i.properties).reduce((a, v) => {
1166
+ const b = i.properties[v];
1167
+ return a[v] = c(b, p), a;
1168
+ }, o), o;
1054
1169
  };
1055
1170
  }
1056
- function l(r, i, t) {
1057
- if (i.type === "object" && i.properties) {
1058
- const { rules: n, contents: P } = i.properties;
1059
- t.set(r, f(n)), P && Object.keys(P.properties).forEach(
1060
- (b) => l(b, P.properties[b], t)
1171
+ function d(i, p, o) {
1172
+ if (p.type === "object" && p.properties) {
1173
+ const { rules: a, contents: v } = p.properties;
1174
+ o.set(i, f(a)), v && Object.keys(v.properties).forEach(
1175
+ (b) => d(b, v.properties[b], o)
1061
1176
  );
1062
1177
  }
1063
1178
  }
1064
- function u() {
1065
- const { properties: r } = De;
1066
- Object.keys(r).forEach((i) => {
1067
- l(i, r[i], M);
1179
+ function y() {
1180
+ const { properties: i } = ke;
1181
+ Object.keys(i).forEach((p) => {
1182
+ d(p, i[p], B);
1068
1183
  });
1069
1184
  }
1070
- function g(r, i) {
1071
- const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
1072
- return M.has(r) ? M.get(r)(i) : t;
1185
+ function j(i, p) {
1186
+ const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
1187
+ return B.has(i) ? B.get(i)(p) : o;
1073
1188
  }
1074
- return u(), { getRuleValue: g };
1189
+ return y(), { getRuleValue: j };
1075
1190
  }
1076
- function Te(a, e) {
1077
- const o = Oe();
1078
- let c = !1, p, d = !1;
1079
- const h = !1;
1080
- function m() {
1081
- return !1;
1191
+ class $e {
1192
+ constructor(e, t) {
1193
+ M(this, "componentId");
1194
+ M(this, "viewModelId");
1195
+ M(this, "eventsEditorUtils");
1196
+ M(this, "formSchemaUtils");
1197
+ M(this, "formMetadataConverter");
1198
+ M(this, "designViewModelUtils");
1199
+ M(this, "designViewModelField");
1200
+ M(this, "controlCreatorUtils");
1201
+ M(this, "designerHostService");
1202
+ M(this, "schemaService", null);
1203
+ M(this, "metadataService", null);
1204
+ M(this, "propertyConfig", {
1205
+ type: "object",
1206
+ categories: {}
1207
+ });
1208
+ var r;
1209
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1082
1210
  }
1083
- function v() {
1084
- return h || !d;
1211
+ getTableInfo() {
1212
+ var e;
1213
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
1085
1214
  }
1086
- function s() {
1087
- return !d;
1215
+ setDesignViewModelField(e) {
1216
+ const t = e.binding && e.binding.type === "Form" && e.binding.field;
1217
+ if (t) {
1218
+ if (!this.designViewModelField) {
1219
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1220
+ this.designViewModelField = r.fields.find((s) => s.id === t);
1221
+ }
1222
+ e.updateOn = this.designViewModelField.updateOn;
1223
+ }
1224
+ }
1225
+ changeFieldEditorType(e, t) {
1226
+ }
1227
+ getBasicPropConfig(e) {
1228
+ return {
1229
+ description: "Basic Information",
1230
+ title: "基本信息",
1231
+ properties: {
1232
+ id: {
1233
+ description: "组件标识",
1234
+ title: "标识",
1235
+ type: "string",
1236
+ readonly: !0
1237
+ },
1238
+ type: {
1239
+ description: "组件类型",
1240
+ title: "控件类型",
1241
+ type: "select",
1242
+ editor: {
1243
+ type: "combo-list",
1244
+ textField: "name",
1245
+ valueField: "value",
1246
+ data: [{ value: e.type, name: ie[e.type].name }]
1247
+ }
1248
+ }
1249
+ }
1250
+ };
1251
+ }
1252
+ getAppearanceConfig(e = null) {
1253
+ return {
1254
+ title: "样式",
1255
+ description: "Appearance",
1256
+ properties: {
1257
+ class: {
1258
+ title: "class样式",
1259
+ type: "string",
1260
+ description: "组件的CSS样式",
1261
+ $converter: "/converter/appearance.converter"
1262
+ },
1263
+ style: {
1264
+ title: "style样式",
1265
+ type: "string",
1266
+ description: "组件的样式",
1267
+ $converter: "/converter/appearance.converter"
1268
+ }
1269
+ }
1270
+ };
1271
+ }
1272
+ /**
1273
+ *
1274
+ * @param propertyId
1275
+ * @param componentInstance
1276
+ * @returns
1277
+ */
1278
+ updateElementByParentContainer(e, t) {
1279
+ const r = t && t.parent && t.parent.schema;
1280
+ if (!r)
1281
+ return;
1282
+ const s = r.contents.findIndex((u) => u.id === e), l = R(r.contents[s]);
1283
+ r.contents.splice(s, 1), r.contents.splice(s, 0, l);
1284
+ }
1285
+ }
1286
+ class Le extends $e {
1287
+ constructor(e, t) {
1288
+ super(e, t);
1289
+ }
1290
+ getPropertyConfig(e) {
1291
+ return this.propertyConfig.categories.basic = this.getBasicPropConfig(e), this.propertyConfig.categories.appearance = this.getAppearanceConfig(e), this.getEventPropConfig(e), this.propertyConfig;
1292
+ }
1293
+ getEventPropConfig(e) {
1294
+ const t = [
1295
+ {
1296
+ label: "onInit",
1297
+ name: "初始化事件"
1298
+ },
1299
+ {
1300
+ label: "onAfterViewInit",
1301
+ name: "视图初始化后事件"
1302
+ }
1303
+ ];
1304
+ var r = this;
1305
+ const s = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), l = {};
1306
+ l[r.viewModelId] = {
1307
+ type: "events-editor",
1308
+ editor: {
1309
+ initialData: s
1310
+ }
1311
+ }, this.propertyConfig.categories.eventsEditor = {
1312
+ title: "事件",
1313
+ hideTitle: !0,
1314
+ properties: l,
1315
+ // 这个属性,标记当属性变更得时候触发重新更新属性
1316
+ refreshPanelAfterChanged: !0,
1317
+ tabId: "commands",
1318
+ tabName: "交互",
1319
+ setPropertyRelates(u, m) {
1320
+ const g = u.propertyValue;
1321
+ delete e[r.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, g.events, g));
1322
+ }
1323
+ };
1324
+ }
1325
+ }
1326
+ function Ue(n, e) {
1327
+ const t = Fe();
1328
+ let r = !1, s, l = !1;
1329
+ const u = !1, m = n.schema;
1330
+ function g() {
1331
+ return !1;
1332
+ }
1333
+ function c() {
1334
+ return u || !l;
1088
1335
  }
1089
1336
  function f() {
1090
- d = !1;
1091
- const u = a, g = u.appearance && u.appearance.class || "", r = g.split(" "), i = u.contents || [], t = i.length ? i[0] : null, n = t && t.appearance ? t.appearance.class : "", P = n ? n.split(" ") : [], b = i.length ? i.reduce((E, C) => {
1092
- const N = C && C.appearance ? C.appearance.class : "", Y = N ? N.split(" ") : [];
1093
- return E.push(...Y), E;
1094
- }, []) : [], w = e, D = w && w.appearance && w.appearance.class || "", y = D ? D.split(" ") : [];
1095
- p = {
1096
- componentClass: g,
1097
- componentClassList: r,
1098
- childContents: i,
1099
- firstChildContent: t,
1100
- firstChildClass: n,
1101
- firstChildClassList: P,
1102
- parent: w,
1103
- parentClass: D,
1104
- parentClassList: y,
1105
- children: i,
1106
- childrenClassList: b
1337
+ return !l;
1338
+ }
1339
+ function d() {
1340
+ var U, G;
1341
+ l = !1;
1342
+ const i = n.schema, p = i.appearance && i.appearance.class || "", o = p.split(" "), a = i.contents || [], v = a.length ? a[0] : null, b = v && v.appearance ? v.appearance.class : "", w = b ? b.split(" ") : [], V = a.length ? a.reduce((W, S) => {
1343
+ const q = S && S.appearance ? S.appearance.class : "", H = q ? q.split(" ") : [];
1344
+ return W.push(...H), W;
1345
+ }, []) : [];
1346
+ if (((G = (U = n.parent) == null ? void 0 : U.schema) == null ? void 0 : G.type) !== "component-ref") {
1347
+ r = !0, l = !0;
1348
+ return;
1349
+ }
1350
+ const h = n.parent.parent, P = h && h.schema, C = P && P.appearance ? P.appearance.class : "", A = C ? C.split(" ") : [];
1351
+ s = {
1352
+ componentClass: p,
1353
+ componentClassList: o,
1354
+ childContents: a,
1355
+ firstChildContent: v,
1356
+ firstChildClass: b,
1357
+ firstChildClassList: w,
1358
+ parent: P,
1359
+ parentClass: C,
1360
+ parentClassList: A,
1361
+ children: a,
1362
+ childrenClassList: V
1107
1363
  };
1108
- const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], p);
1109
- return c = T, d = j, !0;
1364
+ const { canAccept: O, fixed: T, hidePadding: D } = t.getRuleValue(o[0], s);
1365
+ r = D, l = T;
1110
1366
  }
1111
- function l() {
1112
- return c;
1367
+ function y() {
1368
+ return r;
1113
1369
  }
1114
- return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: s, resolveComponentContext: f, hideNestedPaddingInDesginerView: l };
1370
+ function j(i) {
1371
+ return new Le(i, e).getPropertyConfig(m);
1372
+ }
1373
+ return { canAccepts: g, checkCanDeleteComponent: c, checkCanMoveComponent: f, resolveComponentContext: d, hideNestedPaddingInDesginerView: y, getPropsConfig: j };
1115
1374
  }
1116
- function Ee(a, e) {
1117
- const o = O(a.width), c = O(a.height);
1118
- let p;
1119
- J(e, (h) => {
1120
- h && (o.value = h.clientWidth, p = new ResizeObserver((m) => {
1375
+ function Ge(n, e) {
1376
+ const t = E(n.width), r = E(n.height);
1377
+ let s;
1378
+ I(e, (u) => {
1379
+ u && (t.value = u.clientWidth, s = new ResizeObserver((m) => {
1121
1380
  if (!m || m.length < 1)
1122
1381
  return;
1123
- const s = m[0].contentRect;
1124
- s && (o.value = s.width);
1125
- }), p.observe(h));
1382
+ const c = m[0].contentRect;
1383
+ c && (t.value = c.width);
1384
+ }), s.observe(u));
1126
1385
  });
1127
- function d() {
1128
- p && p.disconnect();
1386
+ function l() {
1387
+ s && s.disconnect();
1129
1388
  }
1130
1389
  return {
1131
- destory: d,
1132
- width: o,
1133
- height: c
1390
+ destory: l,
1391
+ width: t,
1392
+ height: r
1134
1393
  };
1135
1394
  }
1136
- const Ne = /* @__PURE__ */ F({
1395
+ const We = /* @__PURE__ */ Y({
1137
1396
  name: "FVideoDesign",
1138
- props: k,
1139
- setup(a, e) {
1140
- var s;
1141
- const o = O(), c = U("design-item-context"), p = Te(c.schema, (s = c.parent) == null ? void 0 : s.schema), d = ge(o, c, p), {
1142
- width: h,
1397
+ props: L,
1398
+ setup(n, e) {
1399
+ var c;
1400
+ const t = E(), r = ee("design-item-context"), s = Ue(r.schema, (c = r.parent) == null ? void 0 : c.schema), l = Ee(t, r, s), {
1401
+ width: u,
1143
1402
  height: m,
1144
- destory: v
1145
- } = Ee(a, o);
1146
- return G(() => {
1147
- o.value.componentInstance = d;
1148
- }), q(() => {
1149
- v();
1150
- }), e.expose(d.value), () => $("div", {
1151
- ref: o,
1403
+ destory: g
1404
+ } = Ge(n, t);
1405
+ return te(() => {
1406
+ t.value.componentInstance = l;
1407
+ }), J(() => {
1408
+ g();
1409
+ }), e.expose(l.value), () => k("div", {
1410
+ ref: t,
1152
1411
  class: "drag-container",
1153
- "data-dragref": `${c.schema.id}-container`
1154
- }, [$("video", {
1155
- src: a.src,
1156
- autoplay: a.autoplay,
1157
- controls: a.controls,
1158
- loop: a.loop,
1159
- muted: a.muted,
1160
- width: h.value,
1412
+ "data-dragref": `${r.schema.id}-container`
1413
+ }, [k("video", {
1414
+ src: n.src,
1415
+ autoplay: n.autoplay,
1416
+ controls: n.controls,
1417
+ loop: n.loop,
1418
+ muted: n.muted,
1419
+ width: u.value,
1161
1420
  height: m.value
1162
- }, [W("Your browser does not support the video tag.")])]);
1421
+ }, [Q("Your browser does not support the video tag.")])]);
1163
1422
  }
1164
- }), $e = {
1165
- install(a) {
1166
- a.component(V.name, V);
1423
+ }), Ye = {
1424
+ install(n) {
1425
+ n.component(N.name, N);
1167
1426
  },
1168
- register(a, e, o, c) {
1169
- a.video = V, e.video = B;
1427
+ register(n, e, t, r) {
1428
+ n.video = N, e.video = z;
1170
1429
  },
1171
- registerDesigner(a, e, o) {
1172
- a.video = Ne, e.video = B;
1430
+ registerDesigner(n, e, t) {
1431
+ n.video = We, e.video = z;
1173
1432
  }
1174
1433
  };
1175
1434
  export {
1176
- V as FVideo,
1177
- $e as default,
1178
- B as propsResolver,
1179
- k as videoProps
1435
+ N as FVideo,
1436
+ Ye as default,
1437
+ z as propsResolver,
1438
+ L as videoProps
1180
1439
  };