@farris/ui-vue 1.3.1 → 1.3.3

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 (259) 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 +1171 -1277
  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 +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  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 +9518 -1198
  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 +1602 -1740
  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 +311 -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 +533 -563
  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 +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  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 +10537 -3249
  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 +9781 -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 +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  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.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,54 +1,58 @@
1
- import { defineComponent as j, createVNode as N, nextTick as G, ref as M, inject as S, computed as R, onMounted as W } from "vue";
2
- import { isPlainObject as E, cloneDeep as U } from "lodash-es";
1
+ import { defineComponent as j, createVNode as N, nextTick as q, ref as k, inject as S, computed as G, onMounted as W } from "vue";
2
+ import { isPlainObject as E, cloneDeep as _ } from "lodash-es";
3
3
  import "bignumber.js";
4
4
  const O = {}, V = {};
5
- function A(r) {
6
- const { properties: e, title: t, ignore: a } = r, n = a && Array.isArray(a), c = Object.keys(e).reduce((o, u) => ((!n || !a.find((y) => y == u)) && (o[u] = e[u].type === "object" && e[u].properties ? A(e[u]) : U(e[u].default)), o), {});
7
- return t && (!n || !a.find((o) => o == "id")) && (c.id = `${t}-${Date.now()}`), c;
5
+ function A(n) {
6
+ const { properties: e, title: t, ignore: r } = n, o = r && Array.isArray(r), c = Object.keys(e).reduce((a, u) => ((!o || !r.find((y) => y === u)) && (a[u] = e[u].type === "object" && e[u].properties ? A(e[u]) : _(e[u].default)), a), {});
7
+ if (t && (!o || !r.find((a) => a === "id"))) {
8
+ const a = t.toLowerCase().replace(/-/g, "_");
9
+ c.id = `${a}_${Math.random().toString().slice(2, 6)}`;
10
+ }
11
+ return c;
8
12
  }
9
- function $(r, e = {}, t) {
10
- const a = O[r];
11
- if (a) {
12
- let n = A(a);
13
- const c = V[r];
14
- return n = c ? c({ getSchemaByType: $ }, n, e, t) : n, n;
13
+ function $(n, e = {}, t) {
14
+ const r = O[n];
15
+ if (r) {
16
+ let o = A(r);
17
+ const c = V[n];
18
+ return o = c ? c({ getSchemaByType: $ }, o, e, t) : o, o;
15
19
  }
16
20
  return null;
17
21
  }
18
- function z(r, e) {
22
+ function U(n, e) {
19
23
  const t = A(e);
20
- return Object.keys(r).reduce((a, n) => (a[n] && E(a[n]) && E(r[n]) ? Object.assign(a[n], r[n]) : a[n] = r[n], a), t), t;
24
+ return Object.keys(t).reduce((r, o) => (r[o] && E(r[o]) && E(n[o] || !n[o]) ? Object.assign(r[o], n[o] || {}) : r[o] = n[o], r), t), t;
21
25
  }
22
- function _(r, e) {
23
- return Object.keys(r).filter((a) => r[a] != null).reduce((a, n) => {
24
- if (e.has(n)) {
25
- const c = e.get(n);
26
+ function z(n, e) {
27
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
28
+ if (e.has(o)) {
29
+ const c = e.get(o);
26
30
  if (typeof c == "string")
27
- a[c] = r[n];
31
+ r[c] = n[o];
28
32
  else {
29
- const o = c(n, r[n], r);
30
- Object.assign(a, o);
33
+ const a = c(o, n[o], n);
34
+ Object.assign(r, a);
31
35
  }
32
36
  } else
33
- a[n] = r[n];
34
- return a;
37
+ r[o] = n[o];
38
+ return r;
35
39
  }, {});
36
40
  }
37
- function J(r, e, t = /* @__PURE__ */ new Map()) {
38
- const a = z(r, e);
39
- return _(a, t);
41
+ function Q(n, e, t = /* @__PURE__ */ new Map()) {
42
+ const r = U(n, e);
43
+ return z(r, t);
40
44
  }
41
- function Q(r = {}) {
45
+ function J(n = {}) {
42
46
  function e(i, s, l, p) {
43
47
  if (typeof l == "number")
44
48
  return p[i].length === l;
45
49
  if (typeof l == "object") {
46
- const f = Object.keys(l)[0], h = l[f];
47
- if (f === "not")
50
+ const m = Object.keys(l)[0], h = l[m];
51
+ if (m === "not")
48
52
  return Number(p[i].length) !== Number(h);
49
- if (f === "moreThan")
53
+ if (m === "moreThan")
50
54
  return Number(p[i].length) >= Number(h);
51
- if (f === "lessThan")
55
+ if (m === "lessThan")
52
56
  return Number(p[i].length) <= Number(h);
53
57
  }
54
58
  return !1;
@@ -56,43 +60,43 @@ function Q(r = {}) {
56
60
  function t(i, s, l, p) {
57
61
  return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(l);
58
62
  }
59
- const a = /* @__PURE__ */ new Map([
63
+ const r = /* @__PURE__ */ new Map([
60
64
  ["length", e],
61
65
  ["getProperty", t]
62
66
  ]);
63
- Object.keys(r).reduce((i, s) => (i.set(s, r[s]), i), a);
64
- function n(i, s) {
67
+ Object.keys(n).reduce((i, s) => (i.set(s, n[s]), i), r);
68
+ function o(i, s) {
65
69
  const l = i;
66
70
  return typeof s == "number" ? [{ target: l, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: l, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
67
71
  if (p === "length")
68
72
  return { target: l, operator: "length", param: null, value: s[p] };
69
- const f = p, h = s[p];
70
- return { target: l, operator: "getProperty", param: f, value: h };
73
+ const m = p, h = s[p];
74
+ return { target: l, operator: "getProperty", param: m, value: h };
71
75
  }) : [];
72
76
  }
73
77
  function c(i) {
74
78
  return Object.keys(i).reduce((l, p) => {
75
- const f = n(p, i[p]);
76
- return l.push(...f), l;
79
+ const m = o(p, i[p]);
80
+ return l.push(...m), l;
77
81
  }, []);
78
82
  }
79
- function o(i, s) {
80
- if (a.has(i.operator)) {
81
- const l = a.get(i.operator);
83
+ function a(i, s) {
84
+ if (r.has(i.operator)) {
85
+ const l = r.get(i.operator);
82
86
  return l && l(i.target, i.param, i.value, s) || !1;
83
87
  }
84
88
  return !1;
85
89
  }
86
90
  function u(i, s) {
87
- return c(i).reduce((f, h) => f && o(h, s), !0);
91
+ return c(i).reduce((m, h) => m && a(h, s), !0);
88
92
  }
89
93
  function y(i, s) {
90
- const l = Object.keys(i), p = l.includes("allOf"), f = l.includes("anyOf"), h = p || f, b = (h ? i[h ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => u(k, s));
91
- return p ? !b.includes(!1) : b.includes(!0);
94
+ const l = Object.keys(i), p = l.includes("allOf"), m = l.includes("anyOf"), h = p || m, C = (h ? i[h ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((w) => u(w, s));
95
+ return p ? !C.includes(!1) : C.includes(!0);
92
96
  }
93
97
  return { parseValueSchema: y };
94
98
  }
95
- const g = {
99
+ const T = {
96
100
  button: { type: "button", name: "按钮", icon: "Button" },
97
101
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
98
102
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -130,16 +134,17 @@ const g = {
130
134
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
131
135
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
132
136
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
133
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
137
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
138
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
134
139
  }, X = {}, Y = {};
135
- Q();
136
- function Z(r, e, t = /* @__PURE__ */ new Map(), a = (o, u, y) => u, n = {}, c = (o) => o) {
137
- return O[e.title] = e, V[e.title] = a, X[e.title] = n, Y[e.title] = c, (o = {}) => {
138
- const u = J(o, e, t), y = Object.keys(r).reduce((i, s) => (i[s] = r[s].default, i), {});
140
+ J();
141
+ function Z(n, e, t = /* @__PURE__ */ new Map(), r = (a, u, y, i) => u, o = {}, c = (a) => a) {
142
+ return O[e.title] = e, V[e.title] = r, X[e.title] = o, Y[e.title] = c, (a = {}) => {
143
+ const u = Q(a, e, t), y = Object.keys(n).reduce((i, s) => (i[s] = n[s].default, i), {});
139
144
  return Object.assign(y, u);
140
145
  };
141
146
  }
142
- function H(r, e) {
147
+ function H(n, e) {
143
148
  return { customClass: e.class, customStyle: e.style };
144
149
  }
145
150
  const K = /* @__PURE__ */ new Map([
@@ -190,18 +195,18 @@ const K = /* @__PURE__ */ new Map([
190
195
  type: "boolean",
191
196
  default: !0
192
197
  }
193
- }, re = [
198
+ }, ae = [
194
199
  "id",
195
200
  "type",
196
201
  "contents"
197
- ], ae = {
202
+ ], re = {
198
203
  $schema: x,
199
204
  $id: I,
200
205
  title: ee,
201
206
  description: te,
202
207
  type: ne,
203
208
  properties: oe,
204
- required: re
209
+ required: ae
205
210
  }, ce = "content-container", ie = "A Farris Container Component", se = "object", le = {
206
211
  basic: {
207
212
  description: "Basic Infomation",
@@ -251,293 +256,304 @@ const K = /* @__PURE__ */ new Map([
251
256
  type: se,
252
257
  categories: le
253
258
  };
254
- function ue(r, e, t) {
259
+ function ue(n, e, t) {
255
260
  return e;
256
261
  }
257
262
  const P = {
258
263
  customClass: { type: String, default: "" },
259
264
  customStyle: { type: String, default: "" }
260
- }, B = Z(P, ae, K, ue, pe), w = /* @__PURE__ */ j({
265
+ }, B = Z(P, re, K, ue, pe), L = /* @__PURE__ */ j({
261
266
  name: "FContentContainer",
262
267
  props: P,
263
268
  emits: [],
264
- setup(r, e) {
269
+ setup(n, e) {
265
270
  return () => N("div", {
266
- class: r.customClass,
267
- style: r.customStyle
271
+ class: n.customClass,
272
+ style: n.customStyle
268
273
  }, [e.slots.default && e.slots.default()]);
269
274
  }
270
275
  });
271
276
  function fe() {
272
- function r(e, t) {
273
- var o;
277
+ function n(e, t) {
278
+ var a;
274
279
  if (!e)
275
280
  return !1;
276
- const a = ((o = e.targetContainer) == null ? void 0 : o.componentInstance) && e.targetContainer.componentInstance.value;
277
- if (!a)
281
+ const r = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
282
+ if (!r)
278
283
  return !1;
279
- const n = a.schema.type, c = t == null ? void 0 : t.formSchemaUtils.getComponentById(a.belongedComponentId);
280
- return !((e.controlCategory === "input" || e.controlType === "form-group") && ![g["response-layout-item"].type, g["response-form"].type].includes(n) || (e.controlType === g.tabs.type || e.controlType === g.section.type) && ((c == null ? void 0 : c.componentType) !== "frame" || ![g["content-container"].type, g["splitter-pane"].type, g["response-layout-item"].type].includes(n)));
284
+ const o = r.schema.type, c = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
285
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![T["response-layout-item"].type, T["response-form"].type].includes(o) || (e.componentType === T.tabs.type || e.componentType === T.section.type) && ((c == null ? void 0 : c.componentType) !== "frame" || ![T["content-container"].type, T["splitter-pane"].type, T["response-layout-item"].type].includes(o)));
281
286
  }
282
287
  return {
283
- basalDragulaRuleForContainer: r
288
+ basalDragulaRuleForContainer: n
284
289
  };
285
290
  }
286
291
  class me {
287
292
  getTemplateRule(e, t) {
288
- const a = t == null ? void 0 : t.formSchemaUtils, n = a == null ? void 0 : a.getFormTemplateRule(), c = { canAccept: !0, canDelete: !0, canMove: !0 };
289
- if (!n)
293
+ const r = t == null ? void 0 : t.formSchemaUtils, o = r == null ? void 0 : r.getFormTemplateRule(), c = { canAccept: !0, canDelete: !0, canMove: !0 };
294
+ if (!o)
290
295
  return c;
291
- const o = this.getComponentContext(e);
292
- return o.componentClassList.forEach((y) => {
293
- if (!y || !n[y])
296
+ const a = this.getComponentContext(e), { componentClassList: u } = a;
297
+ return u.forEach((y) => {
298
+ if (!y || !o[y])
294
299
  return;
295
- const { canMove: i, canDelete: s, canAccept: l } = n[y];
296
- c.canMove = c.canMove && this.resolveRuleValue(i, o), c.canDelete = c.canDelete && this.resolveRuleValue(s, o), c.canAccept = c.canAccept && this.resolveRuleValue(l, o);
300
+ const { canMove: i, canDelete: s, canAccept: l } = o[y];
301
+ c.canMove = c.canMove && this.resolveRuleValue(i, a), c.canDelete = c.canDelete && this.resolveRuleValue(s, a), c.canAccept = c.canAccept && this.resolveRuleValue(l, a);
297
302
  }), c;
298
303
  }
299
304
  resolveRuleValue(e, t) {
300
305
  return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
301
306
  }
302
307
  parseRuleValueSchema(e, t) {
303
- const a = e.invalidContext || [];
304
- let n = !0;
305
- for (const c of a) {
308
+ const r = e.invalidContext || [];
309
+ let o = !0;
310
+ for (const c of r) {
306
311
  if (c.firstLevelChild) {
307
312
  if (c.firstLevelChild.class) {
308
- const o = t.firstLevelChildClassList;
309
- if (o && !o.includes(c.firstLevelChild.class)) {
310
- n = !1;
313
+ const { firstLevelChildClassList: a } = t;
314
+ if (a && !a.includes(c.firstLevelChild.class)) {
315
+ o = !1;
311
316
  continue;
312
317
  }
313
318
  }
314
319
  if (c.firstLevelChild.type) {
315
- const o = t.firstLevelChildSchema;
316
- if (o && o.type !== c.firstLevelChild.type) {
317
- n = !1;
320
+ const { firstLevelChildSchema: a } = t;
321
+ if (!a || a.type !== c.firstLevelChild.type) {
322
+ o = !1;
318
323
  continue;
319
324
  }
320
325
  }
321
326
  }
322
327
  if (c.secondLevelChild) {
323
328
  if (c.secondLevelChild.class) {
324
- const o = t.secondLevelChildClassList;
325
- if (o && !o.includes(c.secondLevelChild.class)) {
326
- n = !1;
329
+ const { secondLevelChildClassList: a } = t;
330
+ if (a && !a.includes(c.secondLevelChild.class)) {
331
+ o = !1;
327
332
  continue;
328
333
  }
329
334
  }
330
335
  if (c.secondLevelChild.type) {
331
- const o = t.secondLevelChildSchema;
332
- if (o && o.type !== c.secondLevelChild.type) {
333
- n = !1;
336
+ const { secondLevelChildSchema: a } = t;
337
+ if (!a || a.type !== c.secondLevelChild.type) {
338
+ o = !1;
334
339
  continue;
335
340
  }
336
341
  }
337
342
  }
338
343
  if (c.parent) {
339
344
  if (c.parent.class) {
340
- const o = t.parentClassList;
341
- if (o && !o.includes(c.parent.class)) {
342
- n = !1;
345
+ const { parentClassList: a } = t;
346
+ if (a && !a.includes(c.parent.class)) {
347
+ o = !1;
343
348
  continue;
344
349
  }
345
350
  }
346
351
  if (c.parent.type) {
347
- const o = t.parentSchema;
348
- if (o && o.type !== c.parent.type) {
349
- n = !1;
352
+ const { parentSchema: a } = t;
353
+ if (a && a.type !== c.parent.type) {
354
+ o = !1;
350
355
  continue;
351
356
  }
352
357
  }
353
358
  }
354
- n = !0;
359
+ o = !0;
355
360
  break;
356
361
  }
357
- return !n;
362
+ return !o;
358
363
  }
359
364
  getComponentContext(e) {
360
- var D, T, b, L;
361
- const t = e.schema, a = t.appearance && t.appearance.class || "", n = a.split(" ") || [], c = t.contents || [], o = c.length ? c[0] : null, u = o && o.appearance ? o.appearance.class : "", y = u ? u.split(" ") : [], i = (D = o == null ? void 0 : o.contents) != null && D.length ? o == null ? void 0 : o.contents[0] : null, s = i && i.appearance ? i.appearance.class : "", l = s ? s.split(" ") : [], p = t.type === "component" ? (b = (T = e.parent) == null ? void 0 : T.parent) == null ? void 0 : b.schema : (L = e.parent) == null ? void 0 : L.schema, f = p && p.appearance && p.appearance.class || "", h = f ? f.split(" ") : [];
365
+ var g, D, C, M;
366
+ const t = e.schema, r = t.appearance && t.appearance.class || "", o = r.split(" ") || [], c = t.contents || [], a = c.length ? c[0] : null, u = a && a.appearance ? a.appearance.class : "", y = u ? u.split(" ") : [], i = (g = a == null ? void 0 : a.contents) != null && g.length ? a == null ? void 0 : a.contents[0] : null, s = i && i.appearance ? i.appearance.class : "", l = s ? s.split(" ") : [], p = t.type === "component" ? (C = (D = e.parent) == null ? void 0 : D.parent) == null ? void 0 : C.schema : (M = e.parent) == null ? void 0 : M.schema, m = p && p.appearance && p.appearance.class || "", h = m ? m.split(" ") : [];
362
367
  return {
363
- componentClass: a,
364
- componentClassList: n,
368
+ componentClass: r,
369
+ componentClassList: o,
365
370
  childContents: c,
366
- firstLevelChildSchema: o,
371
+ firstLevelChildSchema: a,
367
372
  firstLevelChildClass: u,
368
373
  firstLevelChildClassList: y,
369
374
  secondLevelChildSchema: i,
370
375
  secondLevelChildClass: s,
371
376
  secondLevelChildClassList: l,
372
377
  parentSchema: p,
373
- parentClass: f,
378
+ parentClass: m,
374
379
  parentClassList: h
375
380
  };
376
381
  }
377
382
  }
378
- function ye(r, e) {
379
- const t = r.schema, a = new me(), { canMove: n, canAccept: c, canDelete: o } = a.getTemplateRule(r, e);
380
- function u(f) {
381
- return fe().basalDragulaRuleForContainer(f, e) ? c : !1;
383
+ function ye(n, e) {
384
+ const t = n.schema, r = new me();
385
+ function o(s) {
386
+ if (!fe().basalDragulaRuleForContainer(s, e))
387
+ return !1;
388
+ const { canAccept: p } = r.getTemplateRule(n, e);
389
+ return p;
382
390
  }
383
- function y(f) {
384
- G();
391
+ function c(s) {
392
+ q();
385
393
  }
386
- function i() {
394
+ function a() {
387
395
  return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
388
396
  }
389
- function s() {
390
- return n;
397
+ function u() {
398
+ const { canMove: s } = r.getTemplateRule(n, e);
399
+ return s;
391
400
  }
392
- function l() {
393
- return o;
401
+ function y() {
402
+ const { canDelete: s } = r.getTemplateRule(n, e);
403
+ return s;
394
404
  }
395
- function p() {
396
- return !n && !o;
405
+ function i() {
406
+ const { canMove: s, canDelete: l } = r.getTemplateRule(n, e);
407
+ return !s && !l;
397
408
  }
398
409
  return {
399
- canAccepts: u,
400
- getStyles: i,
401
- onAcceptMovedChildElement: y,
402
- checkCanMoveComponent: s,
403
- checkCanDeleteComponent: l,
404
- hideNestedPaddingInDesginerView: p
410
+ canAccepts: o,
411
+ getStyles: a,
412
+ onAcceptMovedChildElement: c,
413
+ checkCanMoveComponent: u,
414
+ checkCanDeleteComponent: y,
415
+ hideNestedPaddingInDesginerView: i
405
416
  };
406
417
  }
407
- function he(r, e, t) {
418
+ function he(n, e, t) {
408
419
  var F;
420
+ const r = t && t.getStyles && t.getStyles() || "", o = t && t.getDesignerClass && t.getDesignerClass() || "", c = k();
409
421
  function a() {
410
- t != null && t.resolveComponentContext && t.resolveComponentContext();
411
- }
412
- a();
413
- const n = t && t.getStyles && t.getStyles() || "", c = t && t.getDesignerClass && t.getDesignerClass() || "", o = M();
414
- function u() {
415
422
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
416
423
  }
417
- function y() {
424
+ function u() {
418
425
  return !1;
419
426
  }
420
- function i() {
427
+ function y() {
421
428
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
422
429
  }
423
- function s() {
430
+ function i() {
424
431
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
425
432
  }
426
- function l(m) {
427
- if (!m || !m.value)
433
+ function s(f) {
434
+ if (!f || !f.value)
428
435
  return null;
429
- if (m.value.schema && m.value.schema.type === "component")
430
- return m.value;
431
- const d = M(m == null ? void 0 : m.value.parent), C = l(d);
432
- return C || null;
436
+ if (f.value.schema && f.value.schema.type === "component")
437
+ return f.value;
438
+ const d = k(f == null ? void 0 : f.value.parent), b = s(d);
439
+ return b || null;
433
440
  }
434
- function p(m = e) {
435
- const { componentInstance: d, designerItemElementRef: C } = m;
436
- return !d || !d.value ? null : d.value.canMove ? C : p(m.parent);
441
+ function l(f = e) {
442
+ const { componentInstance: d, designerItemElementRef: b } = f;
443
+ return !d || !d.value ? null : d.value.canMove ? b : l(f.parent);
437
444
  }
438
- function f(m) {
439
- return !!t && t.canAccepts(m);
445
+ function p(f) {
446
+ return !!t && t.canAccepts(f);
440
447
  }
441
- function h() {
448
+ function m() {
442
449
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
443
450
  }
444
- function D() {
451
+ function h() {
445
452
  }
446
- function T(m, d) {
453
+ function g(f, d) {
447
454
  d && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(d);
448
455
  }
449
- function b(m, d) {
450
- const { componentType: C } = m;
451
- let v = $(C, m, d);
452
- t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(m, v));
453
- const q = C.toLowerCase().replace("-", "_");
454
- return v && !v.id && v.type === C && (v.id = `${q}_${Math.random().toString().slice(2, 6)}`), v;
456
+ function D(f, d) {
457
+ const { componentType: b } = f;
458
+ let v = $(b, f, d);
459
+ t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(f, v));
460
+ const R = b.toLowerCase().replace(/-/g, "_");
461
+ return v && !v.id && v.type === b && (v.id = `${R}_${Math.random().toString().slice(2, 6)}`), v;
455
462
  }
456
- function L(m) {
463
+ function C(f) {
457
464
  }
458
- function k(...m) {
465
+ function M(...f) {
459
466
  if (t && t.getPropsConfig)
460
- return t.getPropsConfig(...m);
461
- }
462
- return o.value = {
463
- canMove: u(),
464
- canSelectParent: y(),
465
- canDelete: i(),
466
- canNested: !s(),
467
+ return t.getPropsConfig(...f);
468
+ }
469
+ function w() {
470
+ t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((f) => {
471
+ var v;
472
+ let d = f.id;
473
+ f.type === "component-ref" && (d = f.component);
474
+ const b = n.value.querySelector(`#${d}-design-item`);
475
+ (v = b == null ? void 0 : b.componentInstance) != null && v.value.onRemoveComponent && b.componentInstance.value.onRemoveComponent();
476
+ });
477
+ }
478
+ return c.value = {
479
+ canMove: a(),
480
+ canSelectParent: u(),
481
+ canDelete: y(),
482
+ canNested: !i(),
467
483
  contents: e == null ? void 0 : e.schema.contents,
468
- elementRef: r,
484
+ elementRef: n,
469
485
  parent: (F = e == null ? void 0 : e.parent) == null ? void 0 : F.componentInstance,
470
486
  schema: e == null ? void 0 : e.schema,
471
- styles: n,
472
- designerClass: c,
473
- canAccepts: f,
474
- getBelongedComponentInstance: l,
475
- getDraggableDesignItemElement: p,
476
- getDraggingDisplayText: h,
477
- getPropConfig: k,
478
- getDragScopeElement: D,
479
- onAcceptMovedChildElement: T,
480
- onChildElementMovedOut: L,
481
- addNewChildComponentSchema: b,
482
- updateDragAndDropRules: a,
483
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
484
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
485
- }, o;
487
+ styles: r,
488
+ designerClass: o,
489
+ canAccepts: p,
490
+ getBelongedComponentInstance: s,
491
+ getDraggableDesignItemElement: l,
492
+ getDraggingDisplayText: m,
493
+ getPropConfig: M,
494
+ getDragScopeElement: h,
495
+ onAcceptMovedChildElement: g,
496
+ onChildElementMovedOut: C,
497
+ addNewChildComponentSchema: D,
498
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
499
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1),
500
+ onRemoveComponent: w
501
+ }, c;
486
502
  }
487
503
  const de = ["moz", "ms", "webkit"];
488
- function Ce() {
489
- let r = 0;
504
+ function be() {
505
+ let n = 0;
490
506
  return (e) => {
491
- const t = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (t - r)), n = setTimeout(() => {
492
- e(t + a);
493
- }, a);
494
- return r = t + a, n;
507
+ const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), o = setTimeout(() => {
508
+ e(t + r);
509
+ }, r);
510
+ return n = t + r, o;
495
511
  };
496
512
  }
497
- function be() {
513
+ function ve() {
498
514
  if (typeof window > "u")
499
515
  return () => 0;
500
516
  if (window.requestAnimationFrame)
501
517
  return window.requestAnimationFrame.bind(window);
502
- const r = de.filter((e) => `${e}RequestAnimationFrame` in window)[0];
503
- return r ? window[`${r}RequestAnimationFrame`] : Ce();
518
+ const n = de.filter((e) => `${e}RequestAnimationFrame` in window)[0];
519
+ return n ? window[`${n}RequestAnimationFrame`] : be();
504
520
  }
505
- be();
506
- function ve(r, e) {
507
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, n) => (n && (a[n] = !0), a), r), r;
521
+ ve();
522
+ function Ce(n, e) {
523
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, o) => (o && (r[o] = !0), r), n), n;
508
524
  }
509
- const ge = /* @__PURE__ */ j({
525
+ const Te = /* @__PURE__ */ j({
510
526
  name: "FContentContainerDesign",
511
527
  props: P,
512
528
  emits: [],
513
- setup(r, e) {
514
- const t = M(), a = S("designer-host-service"), n = S("design-item-context"), c = ye(n, a), o = he(t, n, c), u = R(() => ve({
529
+ setup(n, e) {
530
+ const t = k(), r = S("designer-host-service"), o = S("design-item-context"), c = ye(o, r), a = he(t, o, c), u = G(() => Ce({
515
531
  "drag-container": !0
516
- }, r == null ? void 0 : r.customClass));
532
+ }, n == null ? void 0 : n.customClass));
517
533
  return W(() => {
518
- t.value.componentInstance = o;
519
- }), e.expose(o.value), () => N("div", {
534
+ t.value.componentInstance = a;
535
+ }), e.expose(a.value), () => N("div", {
520
536
  ref: t,
521
537
  class: u.value,
522
- style: r.customStyle,
523
- "data-dragref": `${n.schema.id}-container`
538
+ style: n.customStyle,
539
+ "data-dragref": `${o.schema.id}-container`
524
540
  }, [e.slots.default && e.slots.default()]);
525
541
  }
526
- }), Me = {
527
- install(r) {
528
- r.component(w.name, w);
542
+ }), ke = {
543
+ install(n) {
544
+ n.component(L.name, L);
529
545
  },
530
- register(r, e, t, a) {
531
- r["content-container"] = w, e["content-container"] = B;
546
+ register(n, e, t, r) {
547
+ n["content-container"] = L, e["content-container"] = B;
532
548
  },
533
- registerDesigner(r, e, t) {
534
- r["content-container"] = ge, e["content-container"] = B;
549
+ registerDesigner(n, e, t) {
550
+ n["content-container"] = Te, e["content-container"] = B;
535
551
  }
536
552
  };
537
553
  export {
538
- w as ContentContainer,
539
- ge as ContentContainerDesign,
554
+ L as ContentContainer,
555
+ Te as ContentContainerDesign,
540
556
  P as contentContainerProps,
541
- Me as default,
557
+ ke as default,
542
558
  B as propsResolver
543
559
  };