@farris/ui-vue 1.2.7 → 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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,108 +1,130 @@
1
- import { cloneDeep as V } from "lodash-es";
1
+ import { cloneDeep as E } from "lodash-es";
2
2
  import "vue";
3
- const v = {}, h = {};
4
- function y(t) {
5
- const { properties: e, title: s } = t, n = Object.keys(e).reduce((o, a) => (o[a] = e[a].type === "object" && e[a].properties ? y(e[a]) : V(e[a].default), o), {});
6
- return n.id = `${s}-${Date.now()}`, n;
7
- }
8
- function R(t, e) {
9
- const s = y(e);
10
- return Object.keys(t).reduce((n, o) => (n[o] = t[o], n), s), s;
11
- }
12
- function E(t, e) {
13
- return Object.keys(t).filter((n) => t[n] != null).reduce((n, o) => {
14
- if (e.has(o)) {
15
- const a = e.get(o);
16
- if (typeof a == "string")
17
- n[a] = t[o];
3
+ const m = {}, O = {};
4
+ function b(t) {
5
+ const { properties: e, title: s, ignore: n } = t, r = n && Array.isArray(n), i = Object.keys(e).reduce((l, f) => ((!r || !n.find((g) => g == f)) && (l[f] = e[f].type === "object" && e[f].properties ? b(e[f]) : E(e[f].default)), l), {});
6
+ return (!r || !n.find((l) => l == "id")) && (i.id = `${s}-${Date.now()}`), i;
7
+ }
8
+ function I(t, e = {}, s) {
9
+ const n = m[t];
10
+ if (n) {
11
+ let r = b(n);
12
+ const i = O[t];
13
+ return r = i ? i({ getSchemaByType: I }, r, e, s) : r, r;
14
+ }
15
+ return null;
16
+ }
17
+ function y(t, e) {
18
+ const s = b(e);
19
+ return Object.keys(t).reduce((n, r) => (n[r] && typeof n[r] == "object" ? Object.assign(n[r], t[r]) : n[r] = t[r], n), s), s;
20
+ }
21
+ function B(t, e) {
22
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, r) => {
23
+ if (e.has(r)) {
24
+ const i = e.get(r);
25
+ if (typeof i == "string")
26
+ n[i] = t[r];
18
27
  else {
19
- const l = a(o, t[o], t);
28
+ const l = i(r, t[r], t);
20
29
  Object.assign(n, l);
21
30
  }
22
31
  } else
23
- n[o] = t[o];
32
+ n[r] = t[r];
24
33
  return n;
25
34
  }, {});
26
35
  }
27
- function I(t, e, s = /* @__PURE__ */ new Map()) {
28
- const n = R(t, e);
29
- return E(n, s);
36
+ function j(t, e, s = /* @__PURE__ */ new Map()) {
37
+ const n = y(t, e);
38
+ return B(n, s);
39
+ }
40
+ function M(t) {
41
+ var s;
42
+ const e = t.type;
43
+ if (e) {
44
+ const n = m[e], r = y(t, n), i = ((s = t.editor) == null ? void 0 : s.type) || "";
45
+ if (i) {
46
+ const l = m[i], f = y(t.editor, l);
47
+ r.editor = f;
48
+ }
49
+ return r;
50
+ }
51
+ return t;
30
52
  }
31
- function B(t = {}) {
32
- function e(r, u, c, i) {
53
+ function T(t = {}) {
54
+ function e(o, u, c, a) {
33
55
  if (typeof c == "number")
34
- return i[r].length === c;
56
+ return a[o].length === c;
35
57
  if (typeof c == "object") {
36
- const p = Object.keys(c)[0], f = c[p];
58
+ const p = Object.keys(c)[0], d = c[p];
37
59
  if (p === "not")
38
- return Number(i[r].length) !== Number(f);
60
+ return Number(a[o].length) !== Number(d);
39
61
  if (p === "moreThan")
40
- return Number(i[r].length) >= Number(f);
62
+ return Number(a[o].length) >= Number(d);
41
63
  if (p === "lessThan")
42
- return Number(i[r].length) <= Number(f);
64
+ return Number(a[o].length) <= Number(d);
43
65
  }
44
66
  return !1;
45
67
  }
46
- function s(r, u, c, i) {
47
- return i[r] && i[r].propertyValue && String(i[r].propertyValue.value) === String(c);
68
+ function s(o, u, c, a) {
69
+ return a[o] && a[o].propertyValue && String(a[o].propertyValue.value) === String(c);
48
70
  }
49
71
  const n = /* @__PURE__ */ new Map([
50
72
  ["length", e],
51
73
  ["getProperty", s]
52
74
  ]);
53
- Object.keys(t).reduce((r, u) => (r.set(u, t[u]), r), n);
54
- function o(r, u) {
55
- const c = r;
56
- return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param: r, value: !!u }] : typeof u == "object" ? Object.keys(u).map((i) => {
57
- if (i === "length")
58
- return { target: c, operator: "length", param: null, value: u[i] };
59
- const p = i, f = u[i];
60
- return { target: c, operator: "getProperty", param: p, value: f };
75
+ Object.keys(t).reduce((o, u) => (o.set(u, t[u]), o), n);
76
+ function r(o, u) {
77
+ const c = o;
78
+ return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param: o, value: !!u }] : typeof u == "object" ? Object.keys(u).map((a) => {
79
+ if (a === "length")
80
+ return { target: c, operator: "length", param: null, value: u[a] };
81
+ const p = a, d = u[a];
82
+ return { target: c, operator: "getProperty", param: p, value: d };
61
83
  }) : [];
62
84
  }
63
- function a(r) {
64
- return Object.keys(r).reduce((c, i) => {
65
- const p = o(i, r[i]);
85
+ function i(o) {
86
+ return Object.keys(o).reduce((c, a) => {
87
+ const p = r(a, o[a]);
66
88
  return c.push(...p), c;
67
89
  }, []);
68
90
  }
69
- function l(r, u) {
70
- if (n.has(r.operator)) {
71
- const c = n.get(r.operator);
72
- return c && c(r.target, r.param, r.value, u) || !1;
91
+ function l(o, u) {
92
+ if (n.has(o.operator)) {
93
+ const c = n.get(o.operator);
94
+ return c && c(o.target, o.param, o.value, u) || !1;
73
95
  }
74
96
  return !1;
75
97
  }
76
- function d(r, u) {
77
- return a(r).reduce((p, f) => p && l(f, u), !0);
98
+ function f(o, u) {
99
+ return i(o).reduce((p, d) => p && l(d, u), !0);
78
100
  }
79
- function g(r, u) {
80
- const c = Object.keys(r), i = c.includes("allOf"), p = c.includes("anyOf"), f = i || p, m = (f ? r[f ? i ? "allOf" : "anyOf" : "allOf"] : [r]).map((O) => d(O, u));
81
- return i ? !m.includes(!1) : m.includes(!0);
101
+ function g(o, u) {
102
+ const c = Object.keys(o), a = c.includes("allOf"), p = c.includes("anyOf"), d = a || p, v = (d ? o[d ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((R) => f(R, u));
103
+ return a ? !v.includes(!1) : v.includes(!0);
82
104
  }
83
105
  return { parseValueSchema: g };
84
106
  }
85
- const j = {}, P = {};
86
- B();
87
- function N(t, e, s = /* @__PURE__ */ new Map(), n = (l, d, g) => d, o = {}, a = (l) => l) {
88
- return v[e.title] = e, h[e.title] = n, j[e.title] = o, P[e.title] = a, (l = {}) => {
89
- const d = I(l, e, s), g = Object.keys(t).reduce((r, u) => (r[u] = t[u].default, r), {});
90
- return Object.assign(g, d);
107
+ const V = {}, P = {};
108
+ T();
109
+ function N(t, e, s = /* @__PURE__ */ new Map(), n = (l, f, g) => f, r = {}, i = (l) => l) {
110
+ return m[e.title] = e, O[e.title] = n, V[e.title] = r, P[e.title] = i, (l = {}) => {
111
+ const f = j(l, e, s), g = Object.keys(t).reduce((o, u) => (o[u] = t[u].default, o), {});
112
+ return Object.assign(g, f);
91
113
  };
92
114
  }
93
115
  function w(t, e) {
94
116
  return { customClass: e.class, customStyle: e.style };
95
117
  }
96
- function D(t, e) {
118
+ function A(t, e) {
97
119
  return { buttons: e.buttons };
98
120
  }
99
- function U() {
121
+ function G() {
100
122
  function t(e, s) {
101
- const { id: n } = e || {}, { field: o } = e.binding || {};
123
+ const { id: n } = e || {}, { field: r } = e.binding || {};
102
124
  return {
103
125
  modelValue: s.getValue(n),
104
- "onUpdate:modelValue": (a) => {
105
- s.setValue(n, o, a);
126
+ "onUpdate:modelValue": (i) => {
127
+ s.setValue(n, r, i);
106
128
  }
107
129
  };
108
130
  }
@@ -110,12 +132,12 @@ function U() {
110
132
  resolve: t
111
133
  };
112
134
  }
113
- function $() {
135
+ function U() {
114
136
  function t(e, s) {
115
- const { id: n } = e || {}, { dataSource: o } = e || {};
116
- return o === void 0 ? {} : {
137
+ const { id: n } = e || {}, { dataSource: r } = e || {};
138
+ return r === void 0 ? {} : {
117
139
  data: s.getValue(n),
118
- "onUpdate:data": (...a) => {
140
+ "onUpdate:data": (...i) => {
119
141
  }
120
142
  };
121
143
  }
@@ -123,11 +145,20 @@ function $() {
123
145
  resolve: t
124
146
  };
125
147
  }
148
+ function $() {
149
+ function t(e, s) {
150
+ const { dataSource: n } = e || {};
151
+ return n === void 0 ? {} : {};
152
+ }
153
+ return {
154
+ resolve: t
155
+ };
156
+ }
126
157
  function x() {
127
158
  function t(e, s) {
128
159
  const { path: n } = e.binding || {};
129
160
  return n ? {
130
- "onUpdate:dataMapping": (...o) => {
161
+ "onUpdate:dataMapping": (...r) => {
131
162
  }
132
163
  } : {};
133
164
  }
@@ -137,16 +168,16 @@ function x() {
137
168
  }
138
169
  function F() {
139
170
  return (t, e, s) => {
140
- const n = e.id, { type: o } = e, a = t.emits;
141
- return a ? a.filter((l) => l !== "update:modelValue").reduce((l, d) => {
142
- const g = `on${d.charAt(0).toUpperCase()}${d.slice(1)}`;
143
- return l[g] = (...r) => {
144
- s.dispatch(n, d, o, r);
171
+ const n = e.id, { type: r } = e, i = t.emits;
172
+ return i ? i.filter((l) => l !== "update:modelValue").reduce((l, f) => {
173
+ const g = `on${f.charAt(0).toUpperCase()}${f.slice(1)}`;
174
+ return l[g] = (...o) => {
175
+ s.dispatch(n, f, r, o);
145
176
  }, l;
146
177
  }, {}) : {};
147
178
  };
148
179
  }
149
- function G() {
180
+ function L() {
150
181
  function t(e, s) {
151
182
  return e.selectItemById(s);
152
183
  }
@@ -154,7 +185,7 @@ function G() {
154
185
  selectItemById: t
155
186
  };
156
187
  }
157
- function S() {
188
+ function W() {
158
189
  function t(e, s) {
159
190
  return e.selectItemById(s);
160
191
  }
@@ -162,7 +193,7 @@ function S() {
162
193
  selectItemById: t
163
194
  };
164
195
  }
165
- function A() {
196
+ function q() {
166
197
  function t(e) {
167
198
  return e.editor;
168
199
  }
@@ -170,7 +201,7 @@ function A() {
170
201
  resolve: t
171
202
  };
172
203
  }
173
- function L() {
204
+ function z() {
174
205
  function t(e) {
175
206
  return Object.prototype.hasOwnProperty.call(e, "visible") ? e.visible : null;
176
207
  }
@@ -179,15 +210,21 @@ function L() {
179
210
  };
180
211
  }
181
212
  export {
182
- $ as createCollectionBindingResolver,
183
- G as createDataGridSelectionItemResolver,
213
+ U as createCollectionBindingResolver,
214
+ L as createDataGridSelectionItemResolver,
184
215
  x as createDataMappingBindingResolver,
185
216
  F as createEventsResolver,
186
- U as createFormBindingResolver,
187
- A as createFormGroupEditorResolver,
217
+ G as createFormBindingResolver,
218
+ q as createFormGroupEditorResolver,
188
219
  N as createPropsResolver,
189
- S as createTreeGridSelectionItemResolver,
190
- L as createVisiblePropResolver,
220
+ $ as createTreeGridBindingResolver,
221
+ W as createTreeGridSelectionItemResolver,
222
+ z as createVisiblePropResolver,
223
+ I as getSchemaByType,
191
224
  w as resolveAppearance,
192
- D as resolveToolbar
225
+ j as resolveSchemaToProps,
226
+ M as resolveSchemaWithDefaultValue,
227
+ A as resolveToolbar,
228
+ m as schemaMap,
229
+ O as schemaResolverMap
193
230
  };
@@ -1 +1 @@
1
- (function(a,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("lodash-es"),require("vue")):typeof define=="function"&&define.amd?define(["exports","lodash-es","vue"],y):(a=typeof globalThis<"u"?globalThis:a||self,y(a["dynamic-resolver"]={},a.LodashES))})(this,function(a,y){"use strict";const R={},h={};function b(t){const{properties:e,title:s}=t,n=Object.keys(e).reduce((o,l)=>(o[l]=e[l].type==="object"&&e[l].properties?b(e[l]):y.cloneDeep(e[l].default),o),{});return n.id=`${s}-${Date.now()}`,n}function O(t,e){const s=b(e);return Object.keys(t).reduce((n,o)=>(n[o]=t[o],n),s),s}function V(t,e){return Object.keys(t).filter(n=>t[n]!=null).reduce((n,o)=>{if(e.has(o)){const l=e.get(o);if(typeof l=="string")n[l]=t[o];else{const f=l(o,t[o],t);Object.assign(n,f)}}else n[o]=t[o];return n},{})}function E(t,e,s=new Map){const n=O(t,e);return V(n,s)}function I(t={}){function e(r,u,i,c){if(typeof i=="number")return c[r].length===i;if(typeof i=="object"){const p=Object.keys(i)[0],d=i[p];if(p==="not")return Number(c[r].length)!==Number(d);if(p==="moreThan")return Number(c[r].length)>=Number(d);if(p==="lessThan")return Number(c[r].length)<=Number(d)}return!1}function s(r,u,i,c){return c[r]&&c[r].propertyValue&&String(c[r].propertyValue.value)===String(i)}const n=new Map([["length",e],["getProperty",s]]);Object.keys(t).reduce((r,u)=>(r.set(u,t[u]),r),n);function o(r,u){const i=r;return typeof u=="number"?[{target:i,operator:"length",param:null,value:Number(u)}]:typeof u=="boolean"?[{target:i,operator:"getProperty",param:r,value:!!u}]:typeof u=="object"?Object.keys(u).map(c=>{if(c==="length")return{target:i,operator:"length",param:null,value:u[c]};const p=c,d=u[c];return{target:i,operator:"getProperty",param:p,value:d}}):[]}function l(r){return Object.keys(r).reduce((i,c)=>{const p=o(c,r[c]);return i.push(...p),i},[])}function f(r,u){if(n.has(r.operator)){const i=n.get(r.operator);return i&&i(r.target,r.param,r.value,u)||!1}return!1}function g(r,u){return l(r).reduce((p,d)=>p&&f(d,u),!0)}function m(r,u){const i=Object.keys(r),c=i.includes("allOf"),p=i.includes("anyOf"),d=c||p,v=(d?r[d?c?"allOf":"anyOf":"allOf"]:[r]).map($=>g($,u));return c?!v.includes(!1):v.includes(!0)}return{parseValueSchema:m}}const B={},T={};I();function P(t,e,s=new Map,n=(f,g,m)=>g,o={},l=f=>f){return R[e.title]=e,h[e.title]=n,B[e.title]=o,T[e.title]=l,(f={})=>{const g=E(f,e,s),m=Object.keys(t).reduce((r,u)=>(r[u]=t[u].default,r),{});return Object.assign(m,g)}}function j(t,e){return{customClass:e.class,customStyle:e.style}}function M(t,e){return{buttons:e.buttons}}function C(){function t(e,s){const{id:n}=e||{},{field:o}=e.binding||{};return{modelValue:s.getValue(n),"onUpdate:modelValue":l=>{s.setValue(n,o,l)}}}return{resolve:t}}function S(){function t(e,s){const{id:n}=e||{},{dataSource:o}=e||{};return o===void 0?{}:{data:s.getValue(n),"onUpdate:data":(...l)=>{}}}return{resolve:t}}function k(){function t(e,s){const{path:n}=e.binding||{};return n?{"onUpdate:dataMapping":(...o)=>{}}:{}}return{resolve:t}}function D(){return(t,e,s)=>{const n=e.id,{type:o}=e,l=t.emits;return l?l.filter(f=>f!=="update:modelValue").reduce((f,g)=>{const m=`on${g.charAt(0).toUpperCase()}${g.slice(1)}`;return f[m]=(...r)=>{s.dispatch(n,g,o,r)},f},{}):{}}}function G(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function N(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function w(){function t(e){return e.editor}return{resolve:t}}function F(){function t(e){return Object.prototype.hasOwnProperty.call(e,"visible")?e.visible:null}return{resolve:t}}a.createCollectionBindingResolver=S,a.createDataGridSelectionItemResolver=G,a.createDataMappingBindingResolver=k,a.createEventsResolver=D,a.createFormBindingResolver=C,a.createFormGroupEditorResolver=w,a.createPropsResolver=P,a.createTreeGridSelectionItemResolver=N,a.createVisiblePropResolver=F,a.resolveAppearance=j,a.resolveToolbar=M,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
1
+ (function(i,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("lodash-es"),require("vue")):typeof define=="function"&&define.amd?define(["exports","lodash-es","vue"],y):(i=typeof globalThis<"u"?globalThis:i||self,y(i["dynamic-resolver"]={},i.LodashES))})(this,function(i,y){"use strict";const v={},b={};function h(t){const{properties:e,title:s,ignore:n}=t,r=n&&Array.isArray(n),c=Object.keys(e).reduce((f,d)=>((!r||!n.find(m=>m==d))&&(f[d]=e[d].type==="object"&&e[d].properties?h(e[d]):y.cloneDeep(e[d].default)),f),{});return(!r||!n.find(f=>f=="id"))&&(c.id=`${s}-${Date.now()}`),c}function T(t,e={},s){const n=v[t];if(n){let r=h(n);const c=b[t];return r=c?c({getSchemaByType:T},r,e,s):r,r}return null}function R(t,e){const s=h(e);return Object.keys(t).reduce((n,r)=>(n[r]&&typeof n[r]=="object"?Object.assign(n[r],t[r]):n[r]=t[r],n),s),s}function B(t,e){return Object.keys(t).filter(n=>t[n]!=null).reduce((n,r)=>{if(e.has(r)){const c=e.get(r);if(typeof c=="string")n[c]=t[r];else{const f=c(r,t[r],t);Object.assign(n,f)}}else n[r]=t[r];return n},{})}function O(t,e,s=new Map){const n=R(t,e);return B(n,s)}function E(t){var s;const e=t.type;if(e){const n=v[e],r=R(t,n),c=((s=t.editor)==null?void 0:s.type)||"";if(c){const f=v[c],d=R(t.editor,f);r.editor=d}return r}return t}function I(t={}){function e(o,u,a,l){if(typeof a=="number")return l[o].length===a;if(typeof a=="object"){const p=Object.keys(a)[0],g=a[p];if(p==="not")return Number(l[o].length)!==Number(g);if(p==="moreThan")return Number(l[o].length)>=Number(g);if(p==="lessThan")return Number(l[o].length)<=Number(g)}return!1}function s(o,u,a,l){return l[o]&&l[o].propertyValue&&String(l[o].propertyValue.value)===String(a)}const n=new Map([["length",e],["getProperty",s]]);Object.keys(t).reduce((o,u)=>(o.set(u,t[u]),o),n);function r(o,u){const a=o;return typeof u=="number"?[{target:a,operator:"length",param:null,value:Number(u)}]:typeof u=="boolean"?[{target:a,operator:"getProperty",param:o,value:!!u}]:typeof u=="object"?Object.keys(u).map(l=>{if(l==="length")return{target:a,operator:"length",param:null,value:u[l]};const p=l,g=u[l];return{target:a,operator:"getProperty",param:p,value:g}}):[]}function c(o){return Object.keys(o).reduce((a,l)=>{const p=r(l,o[l]);return a.push(...p),a},[])}function f(o,u){if(n.has(o.operator)){const a=n.get(o.operator);return a&&a(o.target,o.param,o.value,u)||!1}return!1}function d(o,u){return c(o).reduce((p,g)=>p&&f(g,u),!0)}function m(o,u){const a=Object.keys(o),l=a.includes("allOf"),p=a.includes("anyOf"),g=l||p,S=(g?o[g?l?"allOf":"anyOf":"allOf"]:[o]).map(q=>d(q,u));return l?!S.includes(!1):S.includes(!0)}return{parseValueSchema:m}}const P={},j={};I();function V(t,e,s=new Map,n=(f,d,m)=>d,r={},c=f=>f){return v[e.title]=e,b[e.title]=n,P[e.title]=r,j[e.title]=c,(f={})=>{const d=O(f,e,s),m=Object.keys(t).reduce((o,u)=>(o[u]=t[u].default,o),{});return Object.assign(m,d)}}function M(t,e){return{customClass:e.class,customStyle:e.style}}function D(t,e){return{buttons:e.buttons}}function C(){function t(e,s){const{id:n}=e||{},{field:r}=e.binding||{};return{modelValue:s.getValue(n),"onUpdate:modelValue":c=>{s.setValue(n,r,c)}}}return{resolve:t}}function G(){function t(e,s){const{id:n}=e||{},{dataSource:r}=e||{};return r===void 0?{}:{data:s.getValue(n),"onUpdate:data":(...c)=>{}}}return{resolve:t}}function k(){function t(e,s){const{dataSource:n}=e||{};return n===void 0?{}:{}}return{resolve:t}}function N(){function t(e,s){const{path:n}=e.binding||{};return n?{"onUpdate:dataMapping":(...r)=>{}}:{}}return{resolve:t}}function w(){return(t,e,s)=>{const n=e.id,{type:r}=e,c=t.emits;return c?c.filter(f=>f!=="update:modelValue").reduce((f,d)=>{const m=`on${d.charAt(0).toUpperCase()}${d.slice(1)}`;return f[m]=(...o)=>{s.dispatch(n,d,r,o)},f},{}):{}}}function A(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function F(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function U(){function t(e){return e.editor}return{resolve:t}}function $(){function t(e){return Object.prototype.hasOwnProperty.call(e,"visible")?e.visible:null}return{resolve:t}}i.createCollectionBindingResolver=G,i.createDataGridSelectionItemResolver=A,i.createDataMappingBindingResolver=N,i.createEventsResolver=w,i.createFormBindingResolver=C,i.createFormGroupEditorResolver=U,i.createPropsResolver=V,i.createTreeGridBindingResolver=k,i.createTreeGridSelectionItemResolver=F,i.createVisiblePropResolver=$,i.getSchemaByType=T,i.resolveAppearance=M,i.resolveSchemaToProps=O,i.resolveSchemaWithDefaultValue=E,i.resolveToolbar=D,i.schemaMap=v,i.schemaResolverMap=b,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});