@farris/ui-vue 1.2.8 → 1.2.9

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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  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.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,16 +1,16 @@
1
- import { defineComponent as W, ref as N, computed as q, createVNode as P, nextTick as Z, inject as R, onMounted as K } from "vue";
1
+ import { defineComponent as W, ref as D, computed as _, createVNode as A, nextTick as Z, inject as R, onMounted as K } from "vue";
2
2
  import { cloneDeep as x } from "lodash-es";
3
- const _ = {}, G = {};
3
+ const q = {}, G = {};
4
4
  function k(n) {
5
- const { properties: e, title: t } = n, r = Object.keys(e).reduce((s, d) => (s[d] = e[d].type === "object" && e[d].properties ? k(e[d]) : x(e[d].default), s), {});
6
- return r.id = `${t}-${Date.now()}`, r;
5
+ const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), d = Object.keys(e).reduce((h, m) => ((!s || !r.find((v) => v == m)) && (h[m] = e[m].type === "object" && e[m].properties ? k(e[m]) : x(e[m].default)), h), {});
6
+ return (!s || !r.find((h) => h == "id")) && (d.id = `${t}-${Date.now()}`), d;
7
7
  }
8
- function S(n, e = {}) {
9
- const t = _[n];
10
- if (t) {
11
- let r = k(t);
12
- const s = G[n];
13
- return r = s ? s({ getSchemaByType: S }, r, e) : r, r;
8
+ function S(n, e = {}, t) {
9
+ const r = q[n];
10
+ if (r) {
11
+ let s = k(r);
12
+ const d = G[n];
13
+ return s = d ? d({ getSchemaByType: S }, s, e, t) : s, s;
14
14
  }
15
15
  return null;
16
16
  }
@@ -42,12 +42,12 @@ function ne(n = {}) {
42
42
  if (typeof u == "number")
43
43
  return b[c].length === u;
44
44
  if (typeof u == "object") {
45
- const C = Object.keys(u)[0], o = u[C];
46
- if (C === "not")
45
+ const j = Object.keys(u)[0], o = u[j];
46
+ if (j === "not")
47
47
  return Number(b[c].length) !== Number(o);
48
- if (C === "moreThan")
48
+ if (j === "moreThan")
49
49
  return Number(b[c].length) >= Number(o);
50
- if (C === "lessThan")
50
+ if (j === "lessThan")
51
51
  return Number(b[c].length) <= Number(o);
52
52
  }
53
53
  return !1;
@@ -65,14 +65,14 @@ function ne(n = {}) {
65
65
  return typeof y == "number" ? [{ target: u, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!y }] : typeof y == "object" ? Object.keys(y).map((b) => {
66
66
  if (b === "length")
67
67
  return { target: u, operator: "length", param: null, value: y[b] };
68
- const C = b, o = y[b];
69
- return { target: u, operator: "getProperty", param: C, value: o };
68
+ const j = b, o = y[b];
69
+ return { target: u, operator: "getProperty", param: j, value: o };
70
70
  }) : [];
71
71
  }
72
72
  function d(c) {
73
73
  return Object.keys(c).reduce((u, b) => {
74
- const C = s(b, c[b]);
75
- return u.push(...C), u;
74
+ const j = s(b, c[b]);
75
+ return u.push(...j), u;
76
76
  }, []);
77
77
  }
78
78
  function h(c, y) {
@@ -82,21 +82,21 @@ function ne(n = {}) {
82
82
  }
83
83
  return !1;
84
84
  }
85
- function v(c, y) {
86
- return d(c).reduce((C, o) => C && h(o, y), !0);
85
+ function m(c, y) {
86
+ return d(c).reduce((j, o) => j && h(o, y), !0);
87
87
  }
88
- function g(c, y) {
89
- const u = Object.keys(c), b = u.includes("allOf"), C = u.includes("anyOf"), o = b || C, f = (o ? c[o ? b ? "allOf" : "anyOf" : "allOf"] : [c]).map((i) => v(i, y));
88
+ function v(c, y) {
89
+ const u = Object.keys(c), b = u.includes("allOf"), j = u.includes("anyOf"), o = b || j, f = (o ? c[o ? b ? "allOf" : "anyOf" : "allOf"] : [c]).map((i) => m(i, y));
90
90
  return b ? !f.includes(!1) : f.includes(!0);
91
91
  }
92
- return { parseValueSchema: g };
92
+ return { parseValueSchema: v };
93
93
  }
94
94
  const oe = {}, re = {};
95
95
  ne();
96
- function se(n, e, t = /* @__PURE__ */ new Map(), r = (h, v, g) => v, s = {}, d = (h) => h) {
97
- return _[e.title] = e, G[e.title] = r, oe[e.title] = s, re[e.title] = d, (h = {}) => {
98
- const v = te(h, e, t), g = Object.keys(n).reduce((c, y) => (c[y] = n[y].default, c), {});
99
- return Object.assign(g, v);
96
+ function se(n, e, t = /* @__PURE__ */ new Map(), r = (h, m, v) => m, s = {}, d = (h) => h) {
97
+ return q[e.title] = e, G[e.title] = r, oe[e.title] = s, re[e.title] = d, (h = {}) => {
98
+ const m = te(h, e, t), v = Object.keys(n).reduce((c, y) => (c[y] = n[y].default, c), {});
99
+ return Object.assign(v, m);
100
100
  };
101
101
  }
102
102
  function ae(n, e) {
@@ -210,55 +210,55 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
210
210
  props: B,
211
211
  emits: ["collapse"],
212
212
  setup(n, e) {
213
- const t = N(n.position), r = N(n.title), s = N(n.folded), d = N(!1);
214
- function h(g) {
215
- g && g.stopPropagation(), !n.disabled && (d.value = !0, s.value = !s.value, e.emit("collapse", s.value));
213
+ const t = D(n.position), r = D(n.title), s = D(n.folded), d = D(!1);
214
+ function h(v) {
215
+ v && v.stopPropagation(), !n.disabled && (d.value = !0, s.value = !s.value, e.emit("collapse", s.value));
216
216
  }
217
- const v = q(() => {
218
- const g = {};
217
+ const m = _(() => {
218
+ const v = {};
219
219
  let c = ["top", "bottom"].indexOf(t.value) > -1 ? "height" : "width";
220
- return g[c] = s.value ? "0px" : n.size + "px", g;
220
+ return v[c] = s.value ? "0px" : n.size + "px", v;
221
221
  });
222
- return () => P("div", {
222
+ return () => A("div", {
223
223
  class: `f-list-nav f-list-nav-${t.value}`
224
- }, [P("div", {
224
+ }, [A("div", {
225
225
  class: "f-list-nav-in",
226
- style: v.value
227
- }, [P("div", {
226
+ style: m.value
227
+ }, [A("div", {
228
228
  class: "f-list-nav-main"
229
- }, [e.slots.navHeader && P("div", {
229
+ }, [e.slots.navHeader && A("div", {
230
230
  class: "f-list-nav-header"
231
- }, [e.slots.navHeader()]), !e.slots.navHeader && r.value && P("div", {
231
+ }, [e.slots.navHeader()]), !e.slots.navHeader && r.value && A("div", {
232
232
  class: "f-list-nav-header"
233
- }, [P("div", {
233
+ }, [A("div", {
234
234
  class: "f-list-nav-title"
235
- }, [r.value])]), e.slots.navContent && P("div", {
235
+ }, [r.value])]), e.slots.navContent && A("div", {
236
236
  class: "f-list-nav-content"
237
- }, [e.slots.navContent()]), e.slots.navFooter && P("div", {
237
+ }, [e.slots.navContent()]), e.slots.navFooter && A("div", {
238
238
  class: "f-list-nav-footer"
239
- }, [e.slots.navFooter()])]), n.collapsible && P("div", {
239
+ }, [e.slots.navFooter()])]), n.collapsible && A("div", {
240
240
  class: ["f-list-nav-toggle-sidebar", {
241
241
  disabled: n.disabled,
242
242
  active: s.value,
243
243
  "splitter-pane-collapse-animate": d.value
244
244
  }],
245
- onClick: (g) => h(g)
246
- }, [P("span", {
245
+ onClick: (v) => h(v)
246
+ }, [A("span", {
247
247
  class: "triangle"
248
248
  }, null)])])]);
249
249
  }
250
250
  });
251
- function Te(n, e, t) {
252
- var D;
251
+ function Pe(n, e, t) {
252
+ var O;
253
253
  function r() {
254
254
  t != null && t.resolveComponentContext && t.resolveComponentContext();
255
255
  }
256
256
  r();
257
- const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h = N();
258
- function v() {
257
+ const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h = D();
258
+ function m() {
259
259
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
260
260
  }
261
- function g() {
261
+ function v() {
262
262
  return !1;
263
263
  }
264
264
  function c() {
@@ -272,14 +272,14 @@ function Te(n, e, t) {
272
272
  return null;
273
273
  if (p.value.schema && p.value.schema.type === "component")
274
274
  return p.value;
275
- const j = N(p == null ? void 0 : p.value.parent), m = u(j);
276
- return m || null;
275
+ const P = D(p == null ? void 0 : p.value.parent), g = u(P);
276
+ return g || null;
277
277
  }
278
278
  function b(p = e) {
279
- const { componentInstance: j, designerItemElementRef: m } = p;
280
- return !j || !j.value ? null : j.value.canMove ? m : b(p.parent);
279
+ const { componentInstance: P, designerItemElementRef: g } = p;
280
+ return !P || !P.value ? null : P.value.canMove ? g : b(p.parent);
281
281
  }
282
- function C(p) {
282
+ function j(p) {
283
283
  return !!t && t.canAccepts(p);
284
284
  }
285
285
  function o() {
@@ -287,57 +287,57 @@ function Te(n, e, t) {
287
287
  }
288
288
  function l() {
289
289
  }
290
- function a(p, j) {
291
- j && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(j);
290
+ function a(p, P) {
291
+ P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
292
292
  }
293
- function f(p) {
294
- const { componentType: j } = p;
295
- let m = S(j, p);
296
- t && t.onResolveNewComponentSchema && (m = t.onResolveNewComponentSchema(p, m));
297
- const O = j.toLowerCase().replace("-", "_");
298
- return m && !m.id && m.type === j && (m.id = `${O}_${Math.random().toString().slice(2, 6)}`), m;
293
+ function f(p, P) {
294
+ const { componentType: g } = p;
295
+ let N = S(g, p, P);
296
+ t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(p, N));
297
+ const M = g.toLowerCase().replace("-", "_");
298
+ return N && !N.id && N.type === g && (N.id = `${M}_${Math.random().toString().slice(2, 6)}`), N;
299
299
  }
300
- function A(p, j) {
301
- const m = String(p.getAttribute("data-controltype")), O = p.getAttribute("data-feature"), M = O ? JSON.parse(O) : {};
300
+ function T(p, P) {
301
+ const g = String(p.getAttribute("data-controltype")), N = p.getAttribute("data-feature"), M = N ? JSON.parse(N) : {};
302
302
  M.parentComponentInstance = h.value;
303
- let w = S(m, M);
304
- t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(p, j, w));
305
- const E = m.toLowerCase().replace("-", "_");
306
- return w && !w.id && w.type === m && (w.id = `${E}_${Math.random().toString().slice(2, 6)}`), w;
303
+ let w = S(g, M);
304
+ t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(p, P, w));
305
+ const E = g.toLowerCase().replace("-", "_");
306
+ return w && !w.id && w.type === g && (w.id = `${E}_${Math.random().toString().slice(2, 6)}`), w;
307
307
  }
308
308
  function i(p) {
309
309
  }
310
- function T(...p) {
310
+ function C(...p) {
311
311
  if (t && t.getPropsConfig)
312
312
  return t.getPropsConfig(...p);
313
313
  }
314
314
  return h.value = {
315
- canMove: v(),
316
- canSelectParent: g(),
315
+ canMove: m(),
316
+ canSelectParent: v(),
317
317
  canDelete: c(),
318
318
  canNested: !y(),
319
319
  contents: e == null ? void 0 : e.schema.contents,
320
320
  elementRef: n,
321
- parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
321
+ parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
322
322
  schema: e == null ? void 0 : e.schema,
323
323
  styles: s,
324
324
  designerClass: d,
325
- canAccepts: C,
325
+ canAccepts: j,
326
326
  getBelongedComponentInstance: u,
327
327
  getDraggableDesignItemElement: b,
328
328
  getDraggingDisplayText: o,
329
- getPropConfig: T,
329
+ getPropConfig: C,
330
330
  getDragScopeElement: l,
331
331
  onAcceptMovedChildElement: a,
332
- onAcceptNewChildElement: A,
332
+ onAcceptNewChildElement: T,
333
333
  onChildElementMovedOut: i,
334
334
  addNewChildComponentSchema: f,
335
335
  updateDragAndDropRules: r,
336
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
337
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
336
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || D(!1),
337
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || D(!1)
338
338
  }, h;
339
339
  }
340
- function Pe() {
340
+ function Ae() {
341
341
  function n(e) {
342
342
  var s, d;
343
343
  if (!e)
@@ -347,8 +347,8 @@ function Pe() {
347
347
  return !1;
348
348
  const r = (d = t.schema.appearance) == null ? void 0 : d.class;
349
349
  if (e.controlCategory === "input" || e.controlType === "form-group") {
350
- const h = t.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
351
- if (t.schema.type !== "response-layout-item" && !v)
350
+ const h = t.schema.type, m = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
351
+ if (t.schema.type !== "response-layout-item" && !m)
352
352
  return !1;
353
353
  }
354
354
  return e.controlType !== "field-set";
@@ -357,7 +357,7 @@ function Pe() {
357
357
  basalDragulaRuleForContainer: n
358
358
  };
359
359
  }
360
- const Ae = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Oe = "The rules of designer canvas", we = "object", Me = {
360
+ const Te = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Oe = "The rules of designer canvas", we = "object", Me = {
361
361
  "f-page": {
362
362
  description: "The root class of page designed by farris.",
363
363
  type: "object",
@@ -776,6 +776,80 @@ const Ae = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-
776
776
  "f-list-nav-left": {
777
777
  description: "",
778
778
  type: "object"
779
+ },
780
+ "f-struct-data-grid-in-nav": {
781
+ description: "",
782
+ type: "object",
783
+ properties: {
784
+ contents: {
785
+ type: "object",
786
+ properties: {
787
+ "f-section-form": {
788
+ description: "",
789
+ type: "object",
790
+ properties: {
791
+ rules: {
792
+ type: "object",
793
+ properties: {
794
+ canAccept: {
795
+ type: "boolean",
796
+ const: !1
797
+ },
798
+ fixed: {
799
+ type: "boolean",
800
+ const: !0
801
+ },
802
+ hidePadding: {
803
+ type: "boolean",
804
+ const: !0
805
+ }
806
+ }
807
+ }
808
+ }
809
+ },
810
+ "f-section-grid": {
811
+ description: "",
812
+ type: "object",
813
+ properties: {
814
+ rules: {
815
+ type: "object",
816
+ properties: {
817
+ canAccept: {
818
+ type: "boolean",
819
+ const: !1
820
+ },
821
+ fixed: {
822
+ type: "boolean",
823
+ const: !0
824
+ },
825
+ hidePadding: {
826
+ type: "boolean",
827
+ const: !0
828
+ }
829
+ }
830
+ }
831
+ }
832
+ }
833
+ }
834
+ },
835
+ rules: {
836
+ type: "object",
837
+ properties: {
838
+ canAccept: {
839
+ type: "boolean",
840
+ const: !1
841
+ },
842
+ fixed: {
843
+ type: "boolean",
844
+ const: !0
845
+ },
846
+ hidePadding: {
847
+ type: "boolean",
848
+ const: !0
849
+ }
850
+ }
851
+ }
852
+ }
779
853
  }
780
854
  }
781
855
  }
@@ -921,28 +995,27 @@ const Ae = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-
921
995
  description: "",
922
996
  type: "object"
923
997
  }
924
- }, Ee = [], Se = {
925
- $schema: Ae,
998
+ }, Ee = {
999
+ $schema: Te,
926
1000
  $id: Ne,
927
1001
  title: De,
928
1002
  description: Oe,
929
1003
  type: we,
930
- properties: Me,
931
- required: Ee
1004
+ properties: Me
932
1005
  }, F = /* @__PURE__ */ new Map();
933
- function $e() {
1006
+ function Se() {
934
1007
  function n(o, l, a, f) {
935
- var A;
1008
+ var T;
936
1009
  if (typeof a == "number")
937
- return ((A = f[o]) == null ? void 0 : A.length) === a;
1010
+ return ((T = f[o]) == null ? void 0 : T.length) === a;
938
1011
  if (typeof a == "object") {
939
- const i = Object.keys(a)[0], T = a[i];
1012
+ const i = Object.keys(a)[0], C = a[i];
940
1013
  if (i === "not")
941
- return Number(f[o].length) !== Number(T);
1014
+ return Number(f[o].length) !== Number(C);
942
1015
  if (i === "moreThan")
943
- return Number(f[o].length) >= Number(T);
1016
+ return Number(f[o].length) >= Number(C);
944
1017
  if (i === "lessThan")
945
- return Number(f[o].length) <= Number(T);
1018
+ return Number(f[o].length) <= Number(C);
946
1019
  }
947
1020
  return !1;
948
1021
  }
@@ -966,8 +1039,8 @@ function $e() {
966
1039
  return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((f) => {
967
1040
  if (f === "length")
968
1041
  return { target: a, operator: "length", param: null, value: l[f] };
969
- const A = f, i = l[f];
970
- return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: A, value: i };
1042
+ const T = f, i = l[f];
1043
+ return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: T, value: i };
971
1044
  }) : [];
972
1045
  }
973
1046
  function h(o, l) {
@@ -977,115 +1050,115 @@ function $e() {
977
1050
  }
978
1051
  return !1;
979
1052
  }
980
- function v(o, l) {
981
- return Object.keys(o).reduce((i, T) => {
982
- const D = d(T, o[T]);
983
- return i.push(...D), i;
984
- }, []).reduce((i, T) => i && h(T, l), !0);
1053
+ function m(o, l) {
1054
+ return Object.keys(o).reduce((i, C) => {
1055
+ const O = d(C, o[C]);
1056
+ return i.push(...O), i;
1057
+ }, []).reduce((i, C) => i && h(C, l), !0);
985
1058
  }
986
- function g(o, l) {
987
- const a = Object.keys(o), f = a.includes("allOf"), A = a.includes("anyOf"), i = f || A, p = (i ? o[i ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((m) => v(m, l));
1059
+ function v(o, l) {
1060
+ const a = Object.keys(o), f = a.includes("allOf"), T = a.includes("anyOf"), i = f || T, p = (i ? o[i ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((g) => m(g, l));
988
1061
  return f ? !p.includes(!1) : p.includes(!0);
989
1062
  }
990
1063
  function c(o, l) {
991
1064
  const a = o.const;
992
- return a ? typeof a == "boolean" ? a : typeof a == "object" ? g(a, l) : !1 : !1;
1065
+ return a ? typeof a == "boolean" ? a : typeof a == "object" ? v(a, l) : !1 : !1;
993
1066
  }
994
1067
  function y(o) {
995
1068
  return (l) => {
996
1069
  const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
997
- return o && o.properties && Object.keys(o.properties).reduce((f, A) => {
998
- const i = o.properties[A];
999
- return f[A] = c(i, l), f;
1070
+ return o && o.properties && Object.keys(o.properties).reduce((f, T) => {
1071
+ const i = o.properties[T];
1072
+ return f[T] = c(i, l), f;
1000
1073
  }, a), a;
1001
1074
  };
1002
1075
  }
1003
1076
  function u(o, l, a) {
1004
1077
  if (l.type === "object" && l.properties) {
1005
- const { rules: f, contents: A } = l.properties;
1006
- a.set(o, y(f)), A && Object.keys(A.properties).forEach(
1007
- (i) => u(i, A.properties[i], a)
1078
+ const { rules: f, contents: T } = l.properties;
1079
+ a.set(o, y(f)), T && Object.keys(T.properties).forEach(
1080
+ (i) => u(i, T.properties[i], a)
1008
1081
  );
1009
1082
  }
1010
1083
  }
1011
1084
  function b() {
1012
- const { properties: o } = Se;
1085
+ const { properties: o } = Ee;
1013
1086
  Object.keys(o).forEach((l) => {
1014
1087
  u(l, o[l], F);
1015
1088
  });
1016
1089
  }
1017
- function C(o, l) {
1090
+ function j(o, l) {
1018
1091
  const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1019
1092
  return F.has(o) ? F.get(o)(l) : a;
1020
1093
  }
1021
- return b(), { getRuleValue: C };
1094
+ return b(), { getRuleValue: j };
1022
1095
  }
1023
- function Le(n, e) {
1024
- const t = $e(), r = N(!1), s = N(!1);
1025
- let d = !0, h = !1, v, g = !1;
1096
+ function $e(n, e) {
1097
+ const t = Se(), r = D(!1), s = D(!1);
1098
+ let d = !0, h = !1, m, v = !1;
1026
1099
  function c(i) {
1027
- return v && v.componentClassList && v.componentClassList.includes("f-form-layout") && v.componentClassList.includes("farris-form") ? i.sourceType === "control" && i.controlCategory === "input" || i.sourceType === "move" && i.controlType === "form-group" : !0;
1100
+ return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? i.sourceType === "control" && i.controlCategory === "input" || i.sourceType === "move" && i.controlType === "form-group" : !0;
1028
1101
  }
1029
1102
  function y(i) {
1030
- return !(!Pe().basalDragulaRuleForContainer(i) || !d || !c(i));
1103
+ return !(!Ae().basalDragulaRuleForContainer(i) || !d || !c(i));
1031
1104
  }
1032
1105
  function u() {
1033
1106
  r.value = !1, s.value = !1;
1034
- const i = n, T = i.appearance && i.appearance.class || "", D = T.split(" "), p = i.contents || [], j = p.length ? p[0] : null, m = j && j.appearance ? j.appearance.class : "", O = m ? m.split(" ") : [], M = p.length ? p.reduce((V, $) => {
1107
+ const i = n, C = i.appearance && i.appearance.class || "", O = C.split(" "), p = i.contents || [], P = p.length ? p[0] : null, g = P && P.appearance ? P.appearance.class : "", N = g ? g.split(" ") : [], M = p.length ? p.reduce((V, $) => {
1035
1108
  const z = $ && $.appearance ? $.appearance.class : "", Y = z ? z.split(" ") : [];
1036
1109
  return V.push(...Y), V;
1037
1110
  }, []) : [], w = e, E = w && w.appearance && w.appearance.class || "", J = E ? E.split(" ") : [];
1038
- v = {
1039
- componentClass: T,
1040
- componentClassList: D,
1111
+ m = {
1112
+ componentClass: C,
1113
+ componentClassList: O,
1041
1114
  childContents: p,
1042
- firstChildContent: j,
1043
- firstChildClass: m,
1044
- firstChildClassList: O,
1115
+ firstChildContent: P,
1116
+ firstChildClass: g,
1117
+ firstChildClassList: N,
1045
1118
  parent: w,
1046
1119
  parentClass: E,
1047
1120
  parentClassList: J,
1048
1121
  children: p,
1049
1122
  childrenClassList: M
1050
1123
  };
1051
- const { canAccept: Q, fixed: U, hidePadding: X } = t.getRuleValue(D[0], v);
1052
- return d = Q, h = X, g = U, !0;
1124
+ const { canAccept: Q, fixed: U, hidePadding: X } = t.getRuleValue(O[0], m);
1125
+ return d = Q, h = X, v = U, !0;
1053
1126
  }
1054
1127
  function b(i) {
1055
1128
  Z();
1056
1129
  }
1057
- function C() {
1130
+ function j() {
1058
1131
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1059
1132
  }
1060
- function o(i, T) {
1061
- const D = n;
1062
- if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
1063
- const { label: m } = i, O = S("form-group");
1064
- return O.editor = T, O.label = m, O;
1133
+ function o(i, C) {
1134
+ const O = n;
1135
+ if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
1136
+ const { label: g } = i, N = S("form-group");
1137
+ return N.editor = C, N.label = g, N;
1065
1138
  }
1066
- return T;
1139
+ return C;
1067
1140
  }
1068
- function l(i, T, D) {
1141
+ function l(i, C, O) {
1069
1142
  const p = n;
1070
1143
  if ((p.appearance && p.appearance.class || "").split(" ").includes("f-form-layout")) {
1071
- const O = String(i.innerText), M = S("form-group");
1072
- return M.editor = D, M.label = O, M;
1144
+ const N = String(i.innerText), M = S("form-group");
1145
+ return M.editor = O, M.label = N, M;
1073
1146
  }
1074
- return D;
1147
+ return O;
1075
1148
  }
1076
1149
  function a() {
1077
- return !g;
1150
+ return !v;
1078
1151
  }
1079
1152
  function f() {
1080
- return !g;
1153
+ return !v;
1081
1154
  }
1082
- function A() {
1155
+ function T() {
1083
1156
  return h;
1084
1157
  }
1085
1158
  return {
1086
1159
  canAccepts: y,
1087
1160
  resolveComponentContext: u,
1088
- getStyles: C,
1161
+ getStyles: j,
1089
1162
  onAcceptNewChildElement: l,
1090
1163
  onAcceptMovedChildElement: b,
1091
1164
  onResolveNewComponentSchema: o,
@@ -1093,52 +1166,52 @@ function Le(n, e) {
1093
1166
  triggerBelongedComponentToDeleteWhenDeleted: s,
1094
1167
  checkCanMoveComponent: a,
1095
1168
  checkCanDeleteComponent: f,
1096
- hideNestedPaddingInDesginerView: A
1169
+ hideNestedPaddingInDesginerView: T
1097
1170
  };
1098
1171
  }
1099
- const Fe = /* @__PURE__ */ W({
1172
+ const Le = /* @__PURE__ */ W({
1100
1173
  name: "FListNavDesign",
1101
1174
  props: B,
1102
1175
  emits: [],
1103
1176
  setup(n, e) {
1104
1177
  var u;
1105
- const t = N(), r = R("design-item-context"), s = Le(r.schema, (u = r.parent) == null ? void 0 : u.schema), d = Te(t, r, s);
1178
+ const t = D(), r = R("design-item-context"), s = $e(r.schema, (u = r.parent) == null ? void 0 : u.schema), d = Pe(t, r, s);
1106
1179
  d.value.canMove = !1, d.value.canNested = !1;
1107
- const h = N(n.position), v = N(n.title), g = N(!1), c = N(!1), y = q(() => {
1180
+ const h = D(n.position), m = D(n.title), v = D(!1), c = D(!1), y = _(() => {
1108
1181
  const b = {};
1109
- let C = ["top", "bottom"].indexOf(h.value) > -1 ? "height" : "width";
1110
- return b[C] = g.value ? "0px" : n.size + "px", b;
1182
+ let j = ["top", "bottom"].indexOf(h.value) > -1 ? "height" : "width";
1183
+ return b[j] = v.value ? "0px" : n.size + "px", b;
1111
1184
  });
1112
1185
  return K(() => {
1113
1186
  t.value.componentInstance = d;
1114
- }), e.expose(d.value), () => P("div", {
1187
+ }), e.expose(d.value), () => A("div", {
1115
1188
  class: `f-list-nav f-list-nav-${h.value}`
1116
- }, [P("div", {
1189
+ }, [A("div", {
1117
1190
  class: "f-list-nav-in",
1118
1191
  style: y.value
1119
- }, [P("div", {
1192
+ }, [A("div", {
1120
1193
  class: "f-list-nav-main"
1121
- }, [e.slots.navHeader && P("div", {
1194
+ }, [e.slots.navHeader && A("div", {
1122
1195
  class: "f-list-nav-header"
1123
- }, [e.slots.navHeader()]), !e.slots.navHeader && v.value && P("div", {
1196
+ }, [e.slots.navHeader()]), !e.slots.navHeader && m.value && A("div", {
1124
1197
  class: "f-list-nav-header"
1125
- }, [P("div", {
1198
+ }, [A("div", {
1126
1199
  class: "f-list-nav-title"
1127
- }, [v.value])]), e.slots.navContent && P("div", {
1200
+ }, [m.value])]), e.slots.navContent && A("div", {
1128
1201
  class: "f-list-nav-content"
1129
- }, [e.slots.navContent()]), e.slots.navFooter && P("div", {
1202
+ }, [e.slots.navContent()]), e.slots.navFooter && A("div", {
1130
1203
  class: "f-list-nav-footer"
1131
- }, [e.slots.navFooter()])]), n.collapsible && P("div", {
1204
+ }, [e.slots.navFooter()])]), n.collapsible && A("div", {
1132
1205
  class: ["f-list-nav-toggle-sidebar", {
1133
1206
  disabled: n.disabled,
1134
- active: g.value,
1207
+ active: v.value,
1135
1208
  "splitter-pane-collapse-animate": c.value
1136
1209
  }]
1137
- }, [P("span", {
1210
+ }, [A("span", {
1138
1211
  class: "triangle"
1139
1212
  }, null)])])]);
1140
1213
  }
1141
- }), Ve = {
1214
+ }), Be = {
1142
1215
  install(n) {
1143
1216
  n.component(L.name, L);
1144
1217
  },
@@ -1146,12 +1219,12 @@ const Fe = /* @__PURE__ */ W({
1146
1219
  n["list-nav"] = L, e["list-nav"] = H;
1147
1220
  },
1148
1221
  registerDesigner(n, e, t) {
1149
- n["list-nav"] = Fe, e["list-nav"] = H;
1222
+ n["list-nav"] = Le, e["list-nav"] = H;
1150
1223
  }
1151
1224
  };
1152
1225
  export {
1153
1226
  L as FListNav,
1154
- Ve as default,
1227
+ Be as default,
1155
1228
  B as listNavProps,
1156
1229
  H as propsResolver
1157
1230
  };