@farris/ui-vue 1.2.4 → 1.2.6

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 (279) hide show
  1. package/components/accordion/index.esm.js +58 -58
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/accordion/package.json +1 -1
  4. package/components/avatar/index.esm.js +124 -116
  5. package/components/avatar/index.umd.cjs +1 -1
  6. package/components/avatar/package.json +1 -1
  7. package/components/border-editor/package.json +1 -1
  8. package/components/button/package.json +1 -1
  9. package/components/button-edit/index.css +1 -0
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/index.esm.js +1 -1
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/capsule/package.json +1 -1
  17. package/components/checkbox/index.esm.js +219 -209
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/checkbox/package.json +1 -1
  20. package/components/color-picker/package.json +1 -1
  21. package/components/combo-list/index.esm.js +36 -28
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-list/package.json +1 -1
  24. package/components/combo-tree/index.esm.js +340 -107
  25. package/components/combo-tree/index.umd.cjs +1 -1
  26. package/components/combo-tree/package.json +1 -1
  27. package/components/common/index.esm.js +2 -2
  28. package/components/common/index.umd.cjs +1 -1
  29. package/components/common/package.json +1 -1
  30. package/components/component/index.esm.js +36 -29
  31. package/components/component/index.umd.cjs +1 -1
  32. package/components/component/package.json +1 -1
  33. package/components/condition/index.esm.js +406 -402
  34. package/components/condition/index.umd.cjs +1 -1
  35. package/components/condition/package.json +1 -1
  36. package/components/content-container/index.esm.js +9 -13
  37. package/components/content-container/index.umd.cjs +1 -1
  38. package/components/content-container/package.json +1 -1
  39. package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
  40. package/components/data-grid/index.esm.js +4439 -4273
  41. package/components/data-grid/index.umd.cjs +1 -1
  42. package/components/data-grid/package.json +1 -1
  43. package/components/data-view/index.esm.js +2904 -2892
  44. package/components/data-view/index.umd.cjs +1 -1
  45. package/components/data-view/package.json +1 -1
  46. package/components/date-picker/index.esm.js +250 -242
  47. package/components/date-picker/index.umd.cjs +1 -1
  48. package/components/date-picker/package.json +1 -1
  49. package/components/designer-canvas/index.css +1 -0
  50. package/components/designer-canvas/index.esm.js +24 -21
  51. package/components/designer-canvas/index.umd.cjs +1 -1
  52. package/components/designer-canvas/package.json +1 -1
  53. package/components/designer-outline/index.esm.js +44 -42
  54. package/components/designer-outline/index.umd.cjs +1 -1
  55. package/components/designer-outline/package.json +1 -1
  56. package/components/designer-toolbox/index.esm.js +28 -467
  57. package/components/designer-toolbox/index.umd.cjs +1 -1
  58. package/components/designer-toolbox/package.json +1 -1
  59. package/components/discussion-editor/package.json +1 -1
  60. package/components/discussion-list/package.json +1 -1
  61. package/components/drawer/package.json +1 -1
  62. package/components/dropdown/index.esm.js +86 -86
  63. package/components/dropdown/index.umd.cjs +1 -1
  64. package/components/dropdown/package.json +1 -1
  65. package/components/dynamic-form/index.esm.js +984 -928
  66. package/components/dynamic-form/index.umd.cjs +1 -1
  67. package/components/dynamic-form/package.json +1 -1
  68. package/components/dynamic-resolver/index.esm.js +56 -47
  69. package/components/dynamic-resolver/index.umd.cjs +1 -1
  70. package/components/dynamic-resolver/package.json +1 -1
  71. package/components/dynamic-view/index.esm.js +281 -277
  72. package/components/dynamic-view/index.umd.cjs +1 -1
  73. package/components/dynamic-view/package.json +1 -1
  74. package/components/enum-editor/package.json +1 -1
  75. package/components/events-editor/package.json +1 -1
  76. package/components/expression-editor/package.json +1 -1
  77. package/components/external-container/index.css +1 -0
  78. package/components/external-container/index.esm.js +1917 -1901
  79. package/components/external-container/index.umd.cjs +1 -1
  80. package/components/external-container/package.json +1 -1
  81. package/components/field-selector/index.css +1 -0
  82. package/components/field-selector/index.esm.js +4185 -4023
  83. package/components/field-selector/index.umd.cjs +1 -1
  84. package/components/field-selector/package.json +1 -1
  85. package/components/filter-bar/{style.css → index.css} +1 -1
  86. package/components/filter-bar/index.esm.js +595 -581
  87. package/components/filter-bar/index.umd.cjs +1 -1
  88. package/components/filter-bar/package.json +1 -1
  89. package/components/flow-canvas/index.css +1 -0
  90. package/components/flow-canvas/index.esm.js +38 -35
  91. package/components/flow-canvas/index.umd.cjs +1 -1
  92. package/components/flow-canvas/package.json +1 -1
  93. package/components/image-cropper/package.json +1 -1
  94. package/components/input-group/index.esm.js +256 -248
  95. package/components/input-group/index.umd.cjs +1 -1
  96. package/components/input-group/package.json +1 -1
  97. package/components/layout/package.json +1 -1
  98. package/components/list-nav/package.json +1 -1
  99. package/components/list-view/index.esm.js +1522 -1519
  100. package/components/list-view/index.umd.cjs +1 -1
  101. package/components/list-view/package.json +1 -1
  102. package/components/loading/package.json +1 -1
  103. package/components/locale/package.json +1 -1
  104. package/components/lookup/index.css +1 -0
  105. package/components/lookup/index.esm.js +4629 -4410
  106. package/components/lookup/index.umd.cjs +1 -1
  107. package/components/lookup/package.json +1 -1
  108. package/components/mapping-editor/index.css +1 -0
  109. package/components/mapping-editor/index.esm.js +4454 -4255
  110. package/components/mapping-editor/index.umd.cjs +1 -1
  111. package/components/mapping-editor/package.json +1 -1
  112. package/components/message-box/index.css +1 -0
  113. package/components/message-box/index.esm.js +397 -386
  114. package/components/message-box/index.umd.cjs +1 -1
  115. package/components/message-box/package.json +1 -1
  116. package/components/modal/index.css +1 -0
  117. package/components/modal/index.esm.js +308 -297
  118. package/components/modal/index.umd.cjs +1 -1
  119. package/components/modal/package.json +1 -1
  120. package/components/nav/index.esm.js +511 -469
  121. package/components/nav/index.umd.cjs +2 -2
  122. package/components/nav/package.json +1 -1
  123. package/components/notify/package.json +1 -1
  124. package/components/order/index.esm.js +972 -920
  125. package/components/order/index.umd.cjs +1 -1
  126. package/components/order/package.json +1 -1
  127. package/components/page-footer/package.json +1 -1
  128. package/components/page-header/index.esm.js +917 -893
  129. package/components/page-header/index.umd.cjs +1 -1
  130. package/components/page-header/package.json +1 -1
  131. package/components/pagination/index.esm.js +491 -449
  132. package/components/pagination/index.umd.cjs +1 -1
  133. package/components/pagination/package.json +1 -1
  134. package/components/popover/package.json +1 -1
  135. package/components/progress/package.json +1 -1
  136. package/components/property-editor/index.esm.js +108 -101
  137. package/components/property-editor/index.umd.cjs +2 -2
  138. package/components/property-editor/package.json +1 -1
  139. package/components/property-panel/index.esm.js +361 -349
  140. package/components/property-panel/index.umd.cjs +1 -1
  141. package/components/property-panel/package.json +1 -1
  142. package/components/radio-button/package.json +1 -1
  143. package/components/radio-group/index.esm.js +72 -64
  144. package/components/radio-group/index.umd.cjs +1 -1
  145. package/components/radio-group/package.json +1 -1
  146. package/components/rate/package.json +1 -1
  147. package/components/response-layout/package.json +1 -1
  148. package/components/response-layout-editor/{style.css → index.css} +1 -1
  149. package/components/response-layout-editor/index.esm.js +452 -439
  150. package/components/response-layout-editor/index.umd.cjs +1 -1
  151. package/components/response-layout-editor/package.json +1 -1
  152. package/components/response-toolbar/index.esm.js +610 -592
  153. package/components/response-toolbar/index.umd.cjs +1 -1
  154. package/components/response-toolbar/package.json +1 -1
  155. package/components/schema-selector/index.css +1 -0
  156. package/components/schema-selector/index.esm.js +4041 -3749
  157. package/components/schema-selector/index.umd.cjs +8 -1
  158. package/components/schema-selector/package.json +1 -1
  159. package/components/search-box/package.json +1 -1
  160. package/components/section/index.esm.js +21 -14
  161. package/components/section/index.umd.cjs +1 -1
  162. package/components/section/package.json +1 -1
  163. package/components/smoke-detector/package.json +1 -1
  164. package/components/spacing-editor/package.json +1 -1
  165. package/components/splitter/package.json +1 -1
  166. package/components/step/package.json +1 -1
  167. package/components/switch/index.esm.js +159 -178
  168. package/components/switch/index.umd.cjs +1 -1
  169. package/components/switch/package.json +1 -1
  170. package/components/tabs/index.css +1 -0
  171. package/components/tabs/index.esm.js +1450 -1408
  172. package/components/tabs/index.umd.cjs +1 -1
  173. package/components/tabs/package.json +1 -1
  174. package/components/tags/package.json +1 -1
  175. package/components/text/package.json +1 -1
  176. package/components/textarea/index.esm.js +86 -78
  177. package/components/textarea/index.umd.cjs +1 -1
  178. package/components/textarea/package.json +1 -1
  179. package/components/time-picker/index.css +1 -0
  180. package/components/time-picker/index.esm.js +387 -379
  181. package/components/time-picker/index.umd.cjs +1 -1
  182. package/components/time-picker/package.json +1 -1
  183. package/components/tooltip/package.json +1 -1
  184. package/components/transfer/index.esm.js +95 -93
  185. package/components/transfer/index.umd.cjs +1 -1
  186. package/components/transfer/package.json +1 -1
  187. package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
  188. package/components/tree-grid/index.esm.js +4437 -4271
  189. package/components/tree-grid/index.umd.cjs +1 -1
  190. package/components/tree-grid/package.json +1 -1
  191. package/components/tree-view/index.esm.js +1989 -1985
  192. package/components/tree-view/index.umd.cjs +1 -1
  193. package/components/tree-view/package.json +1 -1
  194. package/components/uploader/package.json +1 -1
  195. package/components/verify-detail/package.json +1 -1
  196. package/components/video/package.json +1 -1
  197. package/components/weather/package.json +1 -1
  198. package/farris.all.esm.js +12989 -12513
  199. package/farris.all.umd.cjs +9 -9
  200. package/index.css +1 -0
  201. package/package.json +2 -2
  202. package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
  203. package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
  204. package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
  205. package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
  206. package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
  207. package/types/components.d.ts +1 -0
  208. package/types/condition/index.d.ts +60 -1
  209. package/types/data-grid/index.d.ts +5 -5
  210. package/types/data-grid/src/data-grid.component.d.ts +2 -2
  211. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  212. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
  213. package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
  214. package/types/data-view/composition/types.d.ts +2 -0
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
  216. package/types/designer-canvas/src/composition/types.d.ts +1 -0
  217. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
  218. package/types/dynamic-form/src/types.d.ts +1 -1
  219. package/types/dynamic-resolver/index.d.ts +1 -0
  220. package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
  221. package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
  222. package/types/list-view/src/composition/types.d.ts +1 -1
  223. package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
  224. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
  225. package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
  226. package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
  227. package/types/message-box/index.d.ts +84 -1
  228. package/types/modal/src/modal.component.d.ts +3 -3
  229. package/types/modal/src/modal.props.d.ts +3 -5
  230. package/types/notify/index.d.ts +84 -1
  231. package/types/page-header/src/page-header.props.d.ts +7 -0
  232. package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
  233. package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
  234. package/types/response-toolbar/index.d.ts +9 -3
  235. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
  236. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
  237. package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
  238. package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
  239. package/types/schema-selector/src/composition/types.d.ts +3 -1
  240. package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
  241. package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
  242. package/types/tabs/src/tabs.props.d.ts +8 -0
  243. package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
  244. package/components/button-edit/style.css +0 -1
  245. package/components/designer-canvas/style.css +0 -1
  246. package/components/external-container/style.css +0 -1
  247. package/components/field-selector/style.css +0 -1
  248. package/components/flow-canvas/style.css +0 -1
  249. package/components/lookup/style.css +0 -1
  250. package/components/mapping-editor/style.css +0 -1
  251. package/components/message-box/style.css +0 -1
  252. package/components/modal/style.css +0 -1
  253. package/components/schema-selector/style.css +0 -1
  254. package/components/tabs/style.css +0 -1
  255. package/components/time-picker/style.css +0 -1
  256. package/style.css +0 -1
  257. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
  258. /package/components/border-editor/{style.css → index.css} +0 -0
  259. /package/components/checkbox/{style.css → index.css} +0 -0
  260. /package/components/date-picker/{style.css → index.css} +0 -0
  261. /package/components/designer-outline/{style.css → index.css} +0 -0
  262. /package/components/designer-toolbox/{style.css → index.css} +0 -0
  263. /package/components/discussion-editor/{style.css → index.css} +0 -0
  264. /package/components/discussion-list/{style.css → index.css} +0 -0
  265. /package/components/drawer/{style.css → index.css} +0 -0
  266. /package/components/events-editor/{style.css → index.css} +0 -0
  267. /package/components/list-view/{style.css → index.css} +0 -0
  268. /package/components/order/{style.css → index.css} +0 -0
  269. /package/components/property-editor/{style.css → index.css} +0 -0
  270. /package/components/property-panel/{style.css → index.css} +0 -0
  271. /package/components/radio-button/{style.css → index.css} +0 -0
  272. /package/components/radio-group/{style.css → index.css} +0 -0
  273. /package/components/smoke-detector/{style.css → index.css} +0 -0
  274. /package/components/spacing-editor/{style.css → index.css} +0 -0
  275. /package/components/splitter/{style.css → index.css} +0 -0
  276. /package/components/switch/{style.css → index.css} +0 -0
  277. /package/components/transfer/{style.css → index.css} +0 -0
  278. /package/components/uploader/{style.css → index.css} +0 -0
  279. /package/components/weather/{style.css → index.css} +0 -0
@@ -1,22 +1,22 @@
1
- import { defineComponent as te, ref as A, watch as ye, computed as k, createVNode as E, createTextVNode as ne, nextTick as he, inject as be, onMounted as ve } from "vue";
2
- import { cloneDeep as me } from "lodash-es";
3
- var q = function(n, t) {
4
- return q = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
1
+ import { defineComponent as ce, ref as S, watch as ge, computed as F, createVNode as D, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Te } from "vue";
2
+ import { cloneDeep as Pe } from "lodash-es";
3
+ var Y = function(n, t) {
4
+ return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
5
5
  e.__proto__ = r;
6
6
  } || function(e, r) {
7
7
  for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
8
- }, q(n, t);
8
+ }, Y(n, t);
9
9
  };
10
- function re(n, t) {
10
+ function se(n, t) {
11
11
  if (typeof t != "function" && t !== null)
12
12
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
13
- q(n, t);
13
+ Y(n, t);
14
14
  function e() {
15
15
  this.constructor = n;
16
16
  }
17
17
  n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
18
18
  }
19
- function X(n) {
19
+ function ee(n) {
20
20
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
21
21
  if (e) return e.call(n);
22
22
  if (n && typeof n.length == "number") return {
@@ -26,38 +26,38 @@ function X(n) {
26
26
  };
27
27
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
28
28
  }
29
- function W(n, t) {
29
+ function G(n, t) {
30
30
  var e = typeof Symbol == "function" && n[Symbol.iterator];
31
31
  if (!e) return n;
32
- var r = e.call(n), a, o = [], u;
32
+ var r = e.call(n), a, o = [], f;
33
33
  try {
34
34
  for (; (t === void 0 || t-- > 0) && !(a = r.next()).done; ) o.push(a.value);
35
- } catch (y) {
36
- u = { error: y };
35
+ } catch (h) {
36
+ f = { error: h };
37
37
  } finally {
38
38
  try {
39
39
  a && !a.done && (e = r.return) && e.call(r);
40
40
  } finally {
41
- if (u) throw u.error;
41
+ if (f) throw f.error;
42
42
  }
43
43
  }
44
44
  return o;
45
45
  }
46
- function U(n, t, e) {
46
+ function J(n, t, e) {
47
47
  if (e || arguments.length === 2) for (var r = 0, a = t.length, o; r < a; r++)
48
48
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
49
49
  return n.concat(o || Array.prototype.slice.call(t));
50
50
  }
51
- function N(n) {
51
+ function O(n) {
52
52
  return typeof n == "function";
53
53
  }
54
- function ge(n) {
54
+ function Ae(n) {
55
55
  var t = function(r) {
56
56
  Error.call(r), r.stack = new Error().stack;
57
57
  }, e = n(t);
58
58
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
59
59
  }
60
- var L = ge(function(n) {
60
+ var W = Ae(function(n) {
61
61
  return function(e) {
62
62
  n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
63
63
  ` + e.map(function(r, a) {
@@ -66,13 +66,13 @@ var L = ge(function(n) {
66
66
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
67
67
  };
68
68
  });
69
- function Z(n, t) {
69
+ function te(n, t) {
70
70
  if (n) {
71
71
  var e = n.indexOf(t);
72
72
  0 <= e && n.splice(e, 1);
73
73
  }
74
74
  }
75
- var Y = function() {
75
+ var X = function() {
76
76
  function n(t) {
77
77
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
78
78
  }
@@ -80,62 +80,62 @@ var Y = function() {
80
80
  var t, e, r, a, o;
81
81
  if (!this.closed) {
82
82
  this.closed = !0;
83
- var u = this._parentage;
84
- if (u)
85
- if (this._parentage = null, Array.isArray(u))
83
+ var f = this._parentage;
84
+ if (f)
85
+ if (this._parentage = null, Array.isArray(f))
86
86
  try {
87
- for (var y = X(u), m = y.next(); !m.done; m = y.next()) {
88
- var f = m.value;
89
- f.remove(this);
87
+ for (var h = ee(f), v = h.next(); !v.done; v = h.next()) {
88
+ var p = v.value;
89
+ p.remove(this);
90
90
  }
91
- } catch (i) {
92
- t = { error: i };
91
+ } catch (c) {
92
+ t = { error: c };
93
93
  } finally {
94
94
  try {
95
- m && !m.done && (e = y.return) && e.call(y);
95
+ v && !v.done && (e = h.return) && e.call(h);
96
96
  } finally {
97
97
  if (t) throw t.error;
98
98
  }
99
99
  }
100
100
  else
101
- u.remove(this);
102
- var p = this.initialTeardown;
103
- if (N(p))
101
+ f.remove(this);
102
+ var l = this.initialTeardown;
103
+ if (O(l))
104
104
  try {
105
- p();
106
- } catch (i) {
107
- o = i instanceof L ? i.errors : [i];
105
+ l();
106
+ } catch (c) {
107
+ o = c instanceof W ? c.errors : [c];
108
108
  }
109
- var l = this._finalizers;
110
- if (l) {
109
+ var u = this._finalizers;
110
+ if (u) {
111
111
  this._finalizers = null;
112
112
  try {
113
- for (var b = X(l), g = b.next(); !g.done; g = b.next()) {
114
- var s = g.value;
113
+ for (var y = ee(u), g = y.next(); !g.done; g = y.next()) {
114
+ var i = g.value;
115
115
  try {
116
- R(s);
117
- } catch (i) {
118
- o = o ?? [], i instanceof L ? o = U(U([], W(o)), W(i.errors)) : o.push(i);
116
+ ne(i);
117
+ } catch (c) {
118
+ o = o ?? [], c instanceof W ? o = J(J([], G(o)), G(c.errors)) : o.push(c);
119
119
  }
120
120
  }
121
- } catch (i) {
122
- r = { error: i };
121
+ } catch (c) {
122
+ r = { error: c };
123
123
  } finally {
124
124
  try {
125
- g && !g.done && (a = b.return) && a.call(b);
125
+ g && !g.done && (a = y.return) && a.call(y);
126
126
  } finally {
127
127
  if (r) throw r.error;
128
128
  }
129
129
  }
130
130
  }
131
131
  if (o)
132
- throw new L(o);
132
+ throw new W(o);
133
133
  }
134
134
  }, n.prototype.add = function(t) {
135
135
  var e;
136
136
  if (t && t !== this)
137
137
  if (this.closed)
138
- R(t);
138
+ ne(t);
139
139
  else {
140
140
  if (t instanceof n) {
141
141
  if (t.closed || t._hasParent(this))
@@ -152,57 +152,57 @@ var Y = function() {
152
152
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
153
153
  }, n.prototype._removeParent = function(t) {
154
154
  var e = this._parentage;
155
- e === t ? this._parentage = null : Array.isArray(e) && Z(e, t);
155
+ e === t ? this._parentage = null : Array.isArray(e) && te(e, t);
156
156
  }, n.prototype.remove = function(t) {
157
157
  var e = this._finalizers;
158
- e && Z(e, t), t instanceof n && t._removeParent(this);
158
+ e && te(e, t), t instanceof n && t._removeParent(this);
159
159
  }, n.EMPTY = function() {
160
160
  var t = new n();
161
161
  return t.closed = !0, t;
162
162
  }(), n;
163
163
  }();
164
- Y.EMPTY;
165
- function oe(n) {
166
- return n instanceof Y || n && "closed" in n && N(n.remove) && N(n.add) && N(n.unsubscribe);
164
+ X.EMPTY;
165
+ function le(n) {
166
+ return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
167
167
  }
168
- function R(n) {
169
- N(n) ? n() : n.unsubscribe();
168
+ function ne(n) {
169
+ O(n) ? n() : n.unsubscribe();
170
170
  }
171
- var ae = {
171
+ var pe = {
172
172
  onUnhandledError: null,
173
173
  onStoppedNotification: null,
174
174
  Promise: void 0,
175
175
  useDeprecatedSynchronousErrorHandling: !1,
176
176
  useDeprecatedNextContext: !1
177
- }, je = {
177
+ }, Se = {
178
178
  setTimeout: function(n, t) {
179
179
  for (var e = [], r = 2; r < arguments.length; r++)
180
180
  e[r - 2] = arguments[r];
181
- return setTimeout.apply(void 0, U([n, t], W(e)));
181
+ return setTimeout.apply(void 0, J([n, t], G(e)));
182
182
  },
183
183
  clearTimeout: function(n) {
184
184
  return clearTimeout(n);
185
185
  },
186
186
  delegate: void 0
187
187
  };
188
- function Ce(n) {
189
- je.setTimeout(function() {
188
+ function Ee(n) {
189
+ Se.setTimeout(function() {
190
190
  throw n;
191
191
  });
192
192
  }
193
- function K() {
193
+ function re() {
194
194
  }
195
- function Pe(n) {
195
+ function De(n) {
196
196
  n();
197
197
  }
198
- var ie = function(n) {
199
- re(t, n);
198
+ var ue = function(n) {
199
+ se(t, n);
200
200
  function t(e) {
201
201
  var r = n.call(this) || this;
202
- return r.isStopped = !1, e ? (r.destination = e, oe(e) && e.add(r)) : r.destination = Ee, r;
202
+ return r.isStopped = !1, e ? (r.destination = e, le(e) && e.add(r)) : r.destination = ke, r;
203
203
  }
204
204
  return t.create = function(e, r, a) {
205
- return new z(e, r, a);
205
+ return new Q(e, r, a);
206
206
  }, t.prototype.next = function(e) {
207
207
  this.isStopped || this._next(e);
208
208
  }, t.prototype.error = function(e) {
@@ -226,11 +226,11 @@ var ie = function(n) {
226
226
  this.unsubscribe();
227
227
  }
228
228
  }, t;
229
- }(Y), Te = Function.prototype.bind;
230
- function V(n, t) {
231
- return Te.call(n, t);
229
+ }(X), we = Function.prototype.bind;
230
+ function U(n, t) {
231
+ return we.call(n, t);
232
232
  }
233
- var Ae = function() {
233
+ var Ne = function() {
234
234
  function n(t) {
235
235
  this.partialObserver = t;
236
236
  }
@@ -240,7 +240,7 @@ var Ae = function() {
240
240
  try {
241
241
  e.next(t);
242
242
  } catch (r) {
243
- F(r);
243
+ B(r);
244
244
  }
245
245
  }, n.prototype.error = function(t) {
246
246
  var e = this.partialObserver;
@@ -248,68 +248,68 @@ var Ae = function() {
248
248
  try {
249
249
  e.error(t);
250
250
  } catch (r) {
251
- F(r);
251
+ B(r);
252
252
  }
253
253
  else
254
- F(t);
254
+ B(t);
255
255
  }, n.prototype.complete = function() {
256
256
  var t = this.partialObserver;
257
257
  if (t.complete)
258
258
  try {
259
259
  t.complete();
260
260
  } catch (e) {
261
- F(e);
261
+ B(e);
262
262
  }
263
263
  }, n;
264
- }(), z = function(n) {
265
- re(t, n);
264
+ }(), Q = function(n) {
265
+ se(t, n);
266
266
  function t(e, r, a) {
267
- var o = n.call(this) || this, u;
268
- if (N(e) || !e)
269
- u = {
267
+ var o = n.call(this) || this, f;
268
+ if (O(e) || !e)
269
+ f = {
270
270
  next: e ?? void 0,
271
271
  error: r ?? void 0,
272
272
  complete: a ?? void 0
273
273
  };
274
274
  else {
275
- var y;
276
- o && ae.useDeprecatedNextContext ? (y = Object.create(e), y.unsubscribe = function() {
275
+ var h;
276
+ o && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
277
277
  return o.unsubscribe();
278
- }, u = {
279
- next: e.next && V(e.next, y),
280
- error: e.error && V(e.error, y),
281
- complete: e.complete && V(e.complete, y)
282
- }) : u = e;
278
+ }, f = {
279
+ next: e.next && U(e.next, h),
280
+ error: e.error && U(e.error, h),
281
+ complete: e.complete && U(e.complete, h)
282
+ }) : f = e;
283
283
  }
284
- return o.destination = new Ae(u), o;
284
+ return o.destination = new Ne(f), o;
285
285
  }
286
286
  return t;
287
- }(ie);
288
- function F(n) {
289
- Ce(n);
287
+ }(ue);
288
+ function B(n) {
289
+ Ee(n);
290
290
  }
291
- function Se(n) {
291
+ function Oe(n) {
292
292
  throw n;
293
293
  }
294
- var Ee = {
294
+ var ke = {
295
295
  closed: !0,
296
- next: K,
297
- error: Se,
298
- complete: K
299
- }, De = function() {
296
+ next: re,
297
+ error: Oe,
298
+ complete: re
299
+ }, Me = function() {
300
300
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
301
301
  }();
302
- function we(n) {
302
+ function _e(n) {
303
303
  return n;
304
304
  }
305
- function Ne(n) {
306
- return n.length === 0 ? we : n.length === 1 ? n[0] : function(e) {
305
+ function Fe(n) {
306
+ return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
307
307
  return n.reduce(function(r, a) {
308
308
  return a(r);
309
309
  }, e);
310
310
  };
311
311
  }
312
- var Oe = function() {
312
+ var $e = function() {
313
313
  function n(t) {
314
314
  t && (this._subscribe = t);
315
315
  }
@@ -317,10 +317,10 @@ var Oe = function() {
317
317
  var e = new n();
318
318
  return e.source = this, e.operator = t, e;
319
319
  }, n.prototype.subscribe = function(t, e, r) {
320
- var a = this, o = Me(t) ? t : new z(t, e, r);
321
- return Pe(function() {
322
- var u = a, y = u.operator, m = u.source;
323
- o.add(y ? y.call(o, m) : m ? a._subscribe(o) : a._trySubscribe(o));
320
+ var a = this, o = xe(t) ? t : new Q(t, e, r);
321
+ return De(function() {
322
+ var f = a, h = f.operator, v = f.source;
323
+ o.add(h ? h.call(o, v) : v ? a._subscribe(o) : a._trySubscribe(o));
324
324
  }), o;
325
325
  }, n.prototype._trySubscribe = function(t) {
326
326
  try {
@@ -330,37 +330,37 @@ var Oe = function() {
330
330
  }
331
331
  }, n.prototype.forEach = function(t, e) {
332
332
  var r = this;
333
- return e = I(e), new e(function(a, o) {
334
- var u = new z({
335
- next: function(y) {
333
+ return e = oe(e), new e(function(a, o) {
334
+ var f = new Q({
335
+ next: function(h) {
336
336
  try {
337
- t(y);
338
- } catch (m) {
339
- o(m), u.unsubscribe();
337
+ t(h);
338
+ } catch (v) {
339
+ o(v), f.unsubscribe();
340
340
  }
341
341
  },
342
342
  error: o,
343
343
  complete: a
344
344
  });
345
- r.subscribe(u);
345
+ r.subscribe(f);
346
346
  });
347
347
  }, n.prototype._subscribe = function(t) {
348
348
  var e;
349
349
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
350
- }, n.prototype[De] = function() {
350
+ }, n.prototype[Me] = function() {
351
351
  return this;
352
352
  }, n.prototype.pipe = function() {
353
353
  for (var t = [], e = 0; e < arguments.length; e++)
354
354
  t[e] = arguments[e];
355
- return Ne(t)(this);
355
+ return Fe(t)(this);
356
356
  }, n.prototype.toPromise = function(t) {
357
357
  var e = this;
358
- return t = I(t), new t(function(r, a) {
358
+ return t = oe(t), new t(function(r, a) {
359
359
  var o;
360
- e.subscribe(function(u) {
361
- return o = u;
362
- }, function(u) {
363
- return a(u);
360
+ e.subscribe(function(f) {
361
+ return o = f;
362
+ }, function(f) {
363
+ return a(f);
364
364
  }, function() {
365
365
  return r(o);
366
366
  });
@@ -369,121 +369,121 @@ var Oe = function() {
369
369
  return new n(t);
370
370
  }, n;
371
371
  }();
372
- function I(n) {
372
+ function oe(n) {
373
373
  var t;
374
- return (t = n ?? ae.Promise) !== null && t !== void 0 ? t : Promise;
374
+ return (t = n ?? pe.Promise) !== null && t !== void 0 ? t : Promise;
375
375
  }
376
- function ke(n) {
377
- return n && N(n.next) && N(n.error) && N(n.complete);
376
+ function Le(n) {
377
+ return n && O(n.next) && O(n.error) && O(n.complete);
378
378
  }
379
- function Me(n) {
380
- return n && n instanceof ie || ke(n) && oe(n);
379
+ function xe(n) {
380
+ return n && n instanceof ue || Le(n) && le(n);
381
381
  }
382
- const se = {}, ce = {};
383
- function G(n) {
384
- const { properties: t, title: e } = n, r = Object.keys(t).reduce((a, o) => (a[o] = t[o].type === "object" && t[o].properties ? G(t[o]) : me(t[o].default), a), {});
382
+ const fe = {}, de = {};
383
+ function Z(n) {
384
+ const { properties: t, title: e } = n, r = Object.keys(t).reduce((a, o) => (a[o] = t[o].type === "object" && t[o].properties ? Z(t[o]) : Pe(t[o].default), a), {});
385
385
  return r.id = `${e}-${Date.now()}`, r;
386
386
  }
387
- function _(n, t = {}) {
388
- const e = se[n];
387
+ function L(n, t = {}) {
388
+ const e = fe[n];
389
389
  if (e) {
390
- let r = G(e);
391
- const a = ce[n];
392
- return r = a ? a({ getSchemaByType: _ }, r, t) : r, r;
390
+ let r = Z(e);
391
+ const a = de[n];
392
+ return r = a ? a({ getSchemaByType: L }, r, t) : r, r;
393
393
  }
394
394
  return null;
395
395
  }
396
- function _e(n, t) {
397
- const e = G(t);
396
+ function Be(n, t) {
397
+ const e = Z(t);
398
398
  return Object.keys(n).reduce((r, a) => (r[a] = n[a], r), e), e;
399
399
  }
400
- function Fe(n, t) {
400
+ function Ve(n, t) {
401
401
  return Object.keys(n).filter((r) => n[r] != null).reduce((r, a) => {
402
402
  if (t.has(a)) {
403
403
  const o = t.get(a);
404
404
  if (typeof o == "string")
405
405
  r[o] = n[a];
406
406
  else {
407
- const u = o(a, n[a], n);
408
- Object.assign(r, u);
407
+ const f = o(a, n[a], n);
408
+ Object.assign(r, f);
409
409
  }
410
410
  } else
411
411
  r[a] = n[a];
412
412
  return r;
413
413
  }, {});
414
414
  }
415
- function $e(n, t, e = /* @__PURE__ */ new Map()) {
416
- const r = _e(n, t);
417
- return Fe(r, e);
415
+ function qe(n, t, e = /* @__PURE__ */ new Map()) {
416
+ const r = Be(n, t);
417
+ return Ve(r, e);
418
418
  }
419
- function Le(n = {}) {
420
- function t(f, p, l, b) {
421
- if (typeof l == "number")
422
- return b[f].length === l;
423
- if (typeof l == "object") {
424
- const g = Object.keys(l)[0], s = l[g];
419
+ function We(n = {}) {
420
+ function t(p, l, u, y) {
421
+ if (typeof u == "number")
422
+ return y[p].length === u;
423
+ if (typeof u == "object") {
424
+ const g = Object.keys(u)[0], i = u[g];
425
425
  if (g === "not")
426
- return Number(b[f].length) !== Number(s);
426
+ return Number(y[p].length) !== Number(i);
427
427
  if (g === "moreThan")
428
- return Number(b[f].length) >= Number(s);
428
+ return Number(y[p].length) >= Number(i);
429
429
  if (g === "lessThan")
430
- return Number(b[f].length) <= Number(s);
430
+ return Number(y[p].length) <= Number(i);
431
431
  }
432
432
  return !1;
433
433
  }
434
- function e(f, p, l, b) {
435
- return b[f] && b[f].propertyValue && String(b[f].propertyValue.value) === String(l);
434
+ function e(p, l, u, y) {
435
+ return y[p] && y[p].propertyValue && String(y[p].propertyValue.value) === String(u);
436
436
  }
437
437
  const r = /* @__PURE__ */ new Map([
438
438
  ["length", t],
439
439
  ["getProperty", e]
440
440
  ]);
441
- Object.keys(n).reduce((f, p) => (f.set(p, n[p]), f), r);
442
- function a(f, p) {
443
- const l = f;
444
- return typeof p == "number" ? [{ target: l, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: l, operator: "getProperty", param: f, value: !!p }] : typeof p == "object" ? Object.keys(p).map((b) => {
445
- if (b === "length")
446
- return { target: l, operator: "length", param: null, value: p[b] };
447
- const g = b, s = p[b];
448
- return { target: l, operator: "getProperty", param: g, value: s };
441
+ Object.keys(n).reduce((p, l) => (p.set(l, n[l]), p), r);
442
+ function a(p, l) {
443
+ const u = p;
444
+ return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: p, value: !!l }] : typeof l == "object" ? Object.keys(l).map((y) => {
445
+ if (y === "length")
446
+ return { target: u, operator: "length", param: null, value: l[y] };
447
+ const g = y, i = l[y];
448
+ return { target: u, operator: "getProperty", param: g, value: i };
449
449
  }) : [];
450
450
  }
451
- function o(f) {
452
- return Object.keys(f).reduce((l, b) => {
453
- const g = a(b, f[b]);
454
- return l.push(...g), l;
451
+ function o(p) {
452
+ return Object.keys(p).reduce((u, y) => {
453
+ const g = a(y, p[y]);
454
+ return u.push(...g), u;
455
455
  }, []);
456
456
  }
457
- function u(f, p) {
458
- if (r.has(f.operator)) {
459
- const l = r.get(f.operator);
460
- return l && l(f.target, f.param, f.value, p) || !1;
457
+ function f(p, l) {
458
+ if (r.has(p.operator)) {
459
+ const u = r.get(p.operator);
460
+ return u && u(p.target, p.param, p.value, l) || !1;
461
461
  }
462
462
  return !1;
463
463
  }
464
- function y(f, p) {
465
- return o(f).reduce((g, s) => g && u(s, p), !0);
464
+ function h(p, l) {
465
+ return o(p).reduce((g, i) => g && f(i, l), !0);
466
466
  }
467
- function m(f, p) {
468
- const l = Object.keys(f), b = l.includes("allOf"), g = l.includes("anyOf"), s = b || g, v = (s ? f[s ? b ? "allOf" : "anyOf" : "allOf"] : [f]).map((d) => y(d, p));
469
- return b ? !v.includes(!1) : v.includes(!0);
467
+ function v(p, l) {
468
+ const u = Object.keys(p), y = u.includes("allOf"), g = u.includes("anyOf"), i = y || g, b = (i ? p[i ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((C) => h(C, l));
469
+ return y ? !b.includes(!1) : b.includes(!0);
470
470
  }
471
- return { parseValueSchema: m };
471
+ return { parseValueSchema: v };
472
472
  }
473
- const Ve = {}, Be = {};
474
- Le();
475
- function xe(n, t, e = /* @__PURE__ */ new Map(), r = (u, y, m) => y, a = {}, o = (u) => u) {
476
- return se[t.title] = t, ce[t.title] = r, Ve[t.title] = a, Be[t.title] = o, (u = {}) => {
477
- const y = $e(u, t, e), m = Object.keys(n).reduce((f, p) => (f[p] = n[p].default, f), {});
478
- return Object.assign(m, y);
473
+ const Ue = {}, ze = {};
474
+ We();
475
+ function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h, a = {}, o = (f) => f) {
476
+ return fe[t.title] = t, de[t.title] = r, Ue[t.title] = a, ze[t.title] = o, (f = {}) => {
477
+ const h = qe(f, t, e), v = Object.keys(n).reduce((p, l) => (p[l] = n[l].default, p), {});
478
+ return Object.assign(v, h);
479
479
  };
480
480
  }
481
- function qe(n, t) {
481
+ function Ye(n, t) {
482
482
  return { customClass: t.class, customStyle: t.style };
483
483
  }
484
- const We = /* @__PURE__ */ new Map([
485
- ["appearance", qe]
486
- ]), Ue = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-design.gitee.io/nav.schema.json", Ye = "nav", Ge = "A Farris Component", He = "object", Je = {
484
+ const Ge = /* @__PURE__ */ new Map([
485
+ ["appearance", Ye]
486
+ ]), Je = "https://json-schema.org/draft/2020-12/schema", Qe = "https://farris-design.gitee.io/nav.schema.json", Xe = "nav", Ze = "A Farris Component", Re = "object", Ke = {
487
487
  id: {
488
488
  description: "The unique identifier for a nav",
489
489
  type: "string"
@@ -575,22 +575,22 @@ const We = /* @__PURE__ */ new Map([
575
575
  type: "sting",
576
576
  default: ""
577
577
  }
578
- }, Qe = [
578
+ }, Ie = [
579
579
  "id",
580
580
  "type"
581
- ], Xe = {
582
- $schema: Ue,
583
- $id: ze,
584
- title: Ye,
585
- description: Ge,
586
- type: He,
587
- properties: Je,
588
- required: Qe
581
+ ], et = {
582
+ $schema: Je,
583
+ $id: Qe,
584
+ title: Xe,
585
+ description: Ze,
586
+ type: Re,
587
+ properties: Ke,
588
+ required: Ie
589
589
  };
590
- function Ze(n, t, e) {
590
+ function tt(n, t, e) {
591
591
  return t;
592
592
  }
593
- const Re = "nav", Ke = "A Farris Component", Ie = "object", et = {
593
+ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
594
594
  basic: {
595
595
  description: "Basic Infomation",
596
596
  title: "基本信息",
@@ -672,12 +672,12 @@ const Re = "nav", Ke = "A Farris Component", Ie = "object", et = {
672
672
  }
673
673
  }
674
674
  }
675
- }, tt = {
676
- title: Re,
677
- description: Ke,
678
- type: Ie,
679
- categories: et
680
- }, H = {
675
+ }, ct = {
676
+ title: nt,
677
+ description: rt,
678
+ type: ot,
679
+ categories: at
680
+ }, R = {
681
681
  /** 未读最大值 */
682
682
  maxNum: { Type: Number, default: 99 },
683
683
  /** 导航数据 */
@@ -710,167 +710,167 @@ const Re = "nav", Ke = "A Farris Component", Ie = "object", et = {
710
710
  /** 当前激活的id */
711
711
  activeNavId: { Type: String, default: "1" },
712
712
  /** nav切换前事件 */
713
- navPicking: { Type: Function, default: (n) => Oe }
714
- }, ee = xe(H, Xe, We, Ze, tt), B = /* @__PURE__ */ te({
713
+ navPicking: { Type: Function, default: (n) => $e }
714
+ }, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
715
715
  name: "FNav",
716
- props: H,
716
+ props: R,
717
717
  emits: ["nav", "update:activeNavId"],
718
718
  setup(n, t) {
719
- const e = A(n.activeNavId), r = A(n.navData), a = A(n.horizontal);
720
- A(n.navPicking), ye(() => n.activeNavId, (p, l) => {
721
- p !== l && (e.value = p);
719
+ const e = S(n.activeNavId), r = S(n.navData), a = S(n.horizontal);
720
+ S(n.navPicking), ge(() => n.activeNavId, (l, u) => {
721
+ l !== u && (e.value = l);
722
722
  });
723
- const o = k({
723
+ const o = F({
724
724
  get() {
725
725
  return r.value;
726
726
  },
727
- set(p) {
728
- r.value = p, m();
727
+ set(l) {
728
+ r.value = l, v();
729
729
  }
730
- }), u = k({
730
+ }), f = F({
731
731
  get() {
732
732
  return e.value;
733
733
  },
734
- set(p) {
735
- if (e.value = p, e.value && o && o.value.length) {
736
- const l = o.value.find((b) => b.id === e.value);
737
- l && t.emit("nav", l);
734
+ set(l) {
735
+ if (e.value = l, e.value && o && o.value.length) {
736
+ const u = o.value.find((y) => y.id === e.value);
737
+ u && t.emit("nav", u);
738
738
  }
739
739
  }
740
- }), y = k({
741
- set(p) {
742
- a.value = p;
740
+ }), h = F({
741
+ set(l) {
742
+ a.value = l;
743
743
  },
744
744
  get() {
745
745
  return a.value;
746
746
  }
747
747
  });
748
- function m() {
748
+ function v() {
749
749
  if (o.value && o.value.length && !e.value) {
750
- const p = o.value.find((l) => !l.disable);
751
- p && (e.value = p.id);
750
+ const l = o.value.find((u) => !u.disable);
751
+ l && (e.value = l.id);
752
752
  }
753
753
  }
754
- function f(p) {
755
- p.disable || p.id === e.value || (e.value = p.id, t.emit("update:activeNavId", p.id), t.emit("nav", p));
754
+ function p(l) {
755
+ l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
756
756
  }
757
757
  return () => {
758
- var p;
759
- return E("div", {
758
+ var l;
759
+ return D("div", {
760
760
  class: ["farris-nav", {
761
- "farris-nav-vertical": !y.value
761
+ "farris-nav-vertical": !h.value
762
762
  }]
763
- }, [(p = o.value) == null ? void 0 : p.map((l) => E("div", {
763
+ }, [(l = o.value) == null ? void 0 : l.map((u) => D("div", {
764
764
  class: ["farris-nav-item", {
765
- active: l.id === u.value
765
+ active: u.id === f.value
766
766
  }, {
767
- disabled: l.disable
767
+ disabled: u.disable
768
768
  }],
769
- onClick: () => f(l)
770
- }, [E("div", {
769
+ onClick: () => p(u)
770
+ }, [D("div", {
771
771
  class: "farris-nav-item-link"
772
- }, [E("span", {
772
+ }, [D("span", {
773
773
  class: "farris-nav-item-link-text"
774
- }, [typeof l.text == "function" ? l.text() : l.text, l.num && E("div", {
774
+ }, [typeof u.text == "function" ? u.text() : u.text, u.num && D("div", {
775
775
  class: "farris-nav-item-tag"
776
- }, [l.num <= n.maxNum && E("span", {
776
+ }, [u.num <= n.maxNum && D("span", {
777
777
  class: "tag-text"
778
- }, [l.num]), l.num > n.maxNum && E("span", {
778
+ }, [u.num]), u.num > n.maxNum && D("span", {
779
779
  class: "tag-text"
780
- }, [n.maxNum, ne("+")])])])])]))]);
780
+ }, [n.maxNum, ie("+")])])])])]))]);
781
781
  };
782
782
  }
783
783
  });
784
- function nt(n, t, e) {
785
- var S;
784
+ function it(n, t, e) {
785
+ var M;
786
786
  function r() {
787
787
  e != null && e.resolveComponentContext && e.resolveComponentContext();
788
788
  }
789
789
  r();
790
- const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "", u = A();
791
- function y() {
790
+ const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "", f = S();
791
+ function h() {
792
792
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
793
793
  }
794
- function m() {
794
+ function v() {
795
795
  return !1;
796
796
  }
797
- function f() {
797
+ function p() {
798
798
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
799
799
  }
800
- function p() {
800
+ function l() {
801
801
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
802
802
  }
803
- function l(h) {
804
- if (!h || !h.value)
803
+ function u(m) {
804
+ if (!m || !m.value)
805
805
  return null;
806
- if (h.value.schema && h.value.schema.type === "component")
807
- return h.value;
808
- const C = A(h == null ? void 0 : h.value.parent), j = l(C);
809
- return j || null;
806
+ if (m.value.schema && m.value.schema.type === "component")
807
+ return m.value;
808
+ const A = S(m == null ? void 0 : m.value.parent), d = u(A);
809
+ return d || null;
810
810
  }
811
- function b(h = t) {
812
- const { componentInstance: C, designerItemElementRef: j } = h;
813
- return !C || !C.value ? null : C.value.canMove ? j : b(h.parent);
811
+ function y(m = t) {
812
+ const { componentInstance: A, designerItemElementRef: d } = m;
813
+ return !A || !A.value ? null : A.value.canMove ? d : y(m.parent);
814
814
  }
815
- function g(h) {
816
- return !!e && e.canAccepts(h);
815
+ function g(m) {
816
+ return !!e && e.canAccepts(m);
817
817
  }
818
- function s() {
818
+ function i() {
819
819
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
820
820
  }
821
- function i() {
821
+ function c() {
822
822
  }
823
- function c(h, C) {
824
- C && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(C);
823
+ function s(m, A) {
824
+ A && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(A);
825
825
  }
826
- function v(h) {
827
- const { componentType: C } = h;
828
- let j = _(C, h);
829
- e && e.onResolveNewComponentSchema && (j = e.onResolveNewComponentSchema(h, j));
830
- const D = C.toLowerCase().replace("-", "_");
831
- return j && !j.id && j.type === C && (j.id = `${D}_${Math.random().toString().slice(2, 6)}`), j;
826
+ function b(m) {
827
+ const { componentType: A } = m;
828
+ let d = L(A, m);
829
+ e && e.onResolveNewComponentSchema && (d = e.onResolveNewComponentSchema(m, d));
830
+ const j = A.toLowerCase().replace("-", "_");
831
+ return d && !d.id && d.type === A && (d.id = `${j}_${Math.random().toString().slice(2, 6)}`), d;
832
832
  }
833
- function T(h, C) {
834
- const j = String(h.getAttribute("data-controltype")), D = h.getAttribute("data-feature"), O = D ? JSON.parse(D) : {};
835
- O.parentComponentInstance = u.value;
836
- let w = _(j, O);
837
- e && e.onAcceptNewChildElement && (w = e.onAcceptNewChildElement(h, C, w));
838
- const M = j.toLowerCase().replace("-", "_");
839
- return w && !w.id && w.type === j && (w.id = `${M}_${Math.random().toString().slice(2, 6)}`), w;
833
+ function P(m, A) {
834
+ const d = String(m.getAttribute("data-controltype")), j = m.getAttribute("data-feature"), w = j ? JSON.parse(j) : {};
835
+ w.parentComponentInstance = f.value;
836
+ let T = L(d, w);
837
+ e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(m, A, T));
838
+ const k = d.toLowerCase().replace("-", "_");
839
+ return T && !T.id && T.type === d && (T.id = `${k}_${Math.random().toString().slice(2, 6)}`), T;
840
840
  }
841
- function d(h) {
841
+ function C(m) {
842
842
  }
843
- function P(...h) {
843
+ function E(...m) {
844
844
  if (e && e.getPropsConfig)
845
- return e.getPropsConfig(...h);
845
+ return e.getPropsConfig(...m);
846
846
  }
847
- return u.value = {
848
- canMove: y(),
849
- canSelectParent: m(),
850
- canDelete: f(),
851
- canNested: !p(),
847
+ return f.value = {
848
+ canMove: h(),
849
+ canSelectParent: v(),
850
+ canDelete: p(),
851
+ canNested: !l(),
852
852
  contents: t == null ? void 0 : t.schema.contents,
853
853
  elementRef: n,
854
- parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
854
+ parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
855
855
  schema: t == null ? void 0 : t.schema,
856
856
  styles: a,
857
857
  designerClass: o,
858
858
  canAccepts: g,
859
- getBelongedComponentInstance: l,
860
- getDraggableDesignItemElement: b,
861
- getDraggingDisplayText: s,
862
- getPropConfig: P,
863
- getDragScopeElement: i,
864
- onAcceptMovedChildElement: c,
865
- onAcceptNewChildElement: T,
866
- onChildElementMovedOut: d,
867
- addNewChildComponentSchema: v,
859
+ getBelongedComponentInstance: u,
860
+ getDraggableDesignItemElement: y,
861
+ getDraggingDisplayText: i,
862
+ getPropConfig: E,
863
+ getDragScopeElement: c,
864
+ onAcceptMovedChildElement: s,
865
+ onAcceptNewChildElement: P,
866
+ onChildElementMovedOut: C,
867
+ addNewChildComponentSchema: b,
868
868
  updateDragAndDropRules: r,
869
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || A(!1),
870
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || A(!1)
871
- }, u;
869
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || S(!1),
870
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
871
+ }, f;
872
872
  }
873
- function rt() {
873
+ function st() {
874
874
  function n(t) {
875
875
  var a, o;
876
876
  if (!t)
@@ -880,8 +880,8 @@ function rt() {
880
880
  return !1;
881
881
  const r = (o = e.schema.appearance) == null ? void 0 : o.class;
882
882
  if (t.controlCategory === "input" || t.controlType === "form-group") {
883
- const u = e.schema.type, y = (u === "response-form" || u === "content-container") && r && r.includes("farris-form");
884
- if (e.schema.type !== "response-layout-item" && !y)
883
+ const f = e.schema.type, h = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
884
+ if (e.schema.type !== "response-layout-item" && !h)
885
885
  return !1;
886
886
  }
887
887
  return t.controlType !== "field-set";
@@ -890,7 +890,7 @@ function rt() {
890
890
  basalDragulaRuleForContainer: n
891
891
  };
892
892
  }
893
- const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-design.gitee.io/dragging-rules.schema.json", it = "Dragging Rules", st = "The rules of designer canvas", ct = "object", pt = {
893
+ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-design.gitee.io/dragging-rules.schema.json", ut = "Dragging Rules", ft = "The rules of designer canvas", dt = "object", yt = {
894
894
  "f-page": {
895
895
  description: "The root class of page designed by farris.",
896
896
  type: "object",
@@ -1454,39 +1454,39 @@ const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-
1454
1454
  description: "",
1455
1455
  type: "object"
1456
1456
  }
1457
- }, lt = [], ut = {
1458
- $schema: ot,
1459
- $id: at,
1460
- title: it,
1461
- description: st,
1462
- type: ct,
1463
- properties: pt,
1464
- required: lt
1465
- }, x = /* @__PURE__ */ new Map();
1466
- function ft() {
1467
- function n(s, i, c, v) {
1468
- var T;
1469
- if (typeof c == "number")
1470
- return ((T = v[s]) == null ? void 0 : T.length) === c;
1471
- if (typeof c == "object") {
1472
- const d = Object.keys(c)[0], P = c[d];
1473
- if (d === "not")
1474
- return Number(v[s].length) !== Number(P);
1475
- if (d === "moreThan")
1476
- return Number(v[s].length) >= Number(P);
1477
- if (d === "lessThan")
1478
- return Number(v[s].length) <= Number(P);
1457
+ }, ht = [], bt = {
1458
+ $schema: lt,
1459
+ $id: pt,
1460
+ title: ut,
1461
+ description: ft,
1462
+ type: dt,
1463
+ properties: yt,
1464
+ required: ht
1465
+ }, H = /* @__PURE__ */ new Map();
1466
+ function mt() {
1467
+ function n(i, c, s, b) {
1468
+ var P;
1469
+ if (typeof s == "number")
1470
+ return ((P = b[i]) == null ? void 0 : P.length) === s;
1471
+ if (typeof s == "object") {
1472
+ const C = Object.keys(s)[0], E = s[C];
1473
+ if (C === "not")
1474
+ return Number(b[i].length) !== Number(E);
1475
+ if (C === "moreThan")
1476
+ return Number(b[i].length) >= Number(E);
1477
+ if (C === "lessThan")
1478
+ return Number(b[i].length) <= Number(E);
1479
1479
  }
1480
1480
  return !1;
1481
1481
  }
1482
- function t(s, i, c, v) {
1483
- return typeof c == "boolean" ? v.childrenClassList.includes(i) === !!c : !1;
1482
+ function t(i, c, s, b) {
1483
+ return typeof s == "boolean" ? b.childrenClassList.includes(c) === !!s : !1;
1484
1484
  }
1485
- function e(s, i, c, v) {
1486
- return typeof c == "boolean" ? v.parentClassList.includes(i) === !!c : !1;
1485
+ function e(i, c, s, b) {
1486
+ return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1487
1487
  }
1488
- function r(s, i, c, v) {
1489
- return typeof c == "boolean" ? v.parentClassList.includes(i) === !!c : !1;
1488
+ function r(i, c, s, b) {
1489
+ return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1490
1490
  }
1491
1491
  const a = /* @__PURE__ */ new Map([
1492
1492
  ["length", n],
@@ -1494,228 +1494,270 @@ function ft() {
1494
1494
  ["hasSibling", r],
1495
1495
  ["hasParent", e]
1496
1496
  ]);
1497
- function o(s, i) {
1498
- const c = s;
1499
- return typeof i == "number" ? [{ target: c, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((v) => {
1500
- if (v === "length")
1501
- return { target: c, operator: "length", param: null, value: i[v] };
1502
- const T = v, d = i[v];
1503
- return { target: c, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: T, value: d };
1497
+ function o(i, c) {
1498
+ const s = i;
1499
+ return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
1500
+ if (b === "length")
1501
+ return { target: s, operator: "length", param: null, value: c[b] };
1502
+ const P = b, C = c[b];
1503
+ return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: P, value: C };
1504
1504
  }) : [];
1505
1505
  }
1506
- function u(s, i) {
1507
- if (a.has(s.operator)) {
1508
- const c = a.get(s.operator);
1509
- return c && c(s.target, s.param, s.value, i) || !1;
1506
+ function f(i, c) {
1507
+ if (a.has(i.operator)) {
1508
+ const s = a.get(i.operator);
1509
+ return s && s(i.target, i.param, i.value, c) || !1;
1510
1510
  }
1511
1511
  return !1;
1512
1512
  }
1513
- function y(s, i) {
1514
- return Object.keys(s).reduce((d, P) => {
1515
- const S = o(P, s[P]);
1516
- return d.push(...S), d;
1517
- }, []).reduce((d, P) => d && u(P, i), !0);
1513
+ function h(i, c) {
1514
+ return Object.keys(i).reduce((C, E) => {
1515
+ const M = o(E, i[E]);
1516
+ return C.push(...M), C;
1517
+ }, []).reduce((C, E) => C && f(E, c), !0);
1518
1518
  }
1519
- function m(s, i) {
1520
- const c = Object.keys(s), v = c.includes("allOf"), T = c.includes("anyOf"), d = v || T, h = (d ? s[d ? v ? "allOf" : "anyOf" : "allOf"] : [s]).map((j) => y(j, i));
1521
- return v ? !h.includes(!1) : h.includes(!0);
1519
+ function v(i, c) {
1520
+ const s = Object.keys(i), b = s.includes("allOf"), P = s.includes("anyOf"), C = b || P, m = (C ? i[C ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => h(d, c));
1521
+ return b ? !m.includes(!1) : m.includes(!0);
1522
1522
  }
1523
- function f(s, i) {
1524
- const c = s.const;
1525
- return c ? typeof c == "boolean" ? c : typeof c == "object" ? m(c, i) : !1 : !1;
1523
+ function p(i, c) {
1524
+ const s = i.const;
1525
+ return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
1526
1526
  }
1527
- function p(s) {
1528
- return (i) => {
1529
- const c = { canAccept: !0, fixed: !1, hidePadding: !1 };
1530
- return s && s.properties && Object.keys(s.properties).reduce((v, T) => {
1531
- const d = s.properties[T];
1532
- return v[T] = f(d, i), v;
1533
- }, c), c;
1527
+ function l(i) {
1528
+ return (c) => {
1529
+ const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1530
+ return i && i.properties && Object.keys(i.properties).reduce((b, P) => {
1531
+ const C = i.properties[P];
1532
+ return b[P] = p(C, c), b;
1533
+ }, s), s;
1534
1534
  };
1535
1535
  }
1536
- function l(s, i, c) {
1537
- if (i.type === "object" && i.properties) {
1538
- const { rules: v, contents: T } = i.properties;
1539
- c.set(s, p(v)), T && Object.keys(T.properties).forEach(
1540
- (d) => l(d, T.properties[d], c)
1536
+ function u(i, c, s) {
1537
+ if (c.type === "object" && c.properties) {
1538
+ const { rules: b, contents: P } = c.properties;
1539
+ s.set(i, l(b)), P && Object.keys(P.properties).forEach(
1540
+ (C) => u(C, P.properties[C], s)
1541
1541
  );
1542
1542
  }
1543
1543
  }
1544
- function b() {
1545
- const { properties: s } = ut;
1546
- Object.keys(s).forEach((i) => {
1547
- l(i, s[i], x);
1544
+ function y() {
1545
+ const { properties: i } = bt;
1546
+ Object.keys(i).forEach((c) => {
1547
+ u(c, i[c], H);
1548
1548
  });
1549
1549
  }
1550
- function g(s, i) {
1551
- const c = { canAccept: !0, fixed: !1, hidePadding: !0 };
1552
- return x.has(s) ? x.get(s)(i) : c;
1550
+ function g(i, c) {
1551
+ const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1552
+ return H.has(i) ? H.get(i)(c) : s;
1553
1553
  }
1554
- return b(), { getRuleValue: g };
1554
+ return y(), { getRuleValue: g };
1555
1555
  }
1556
- function dt(n, t) {
1557
- const e = ft(), r = A(!1), a = A(!1);
1558
- let o = !0, u = !1, y, m = !1;
1559
- function f(d) {
1560
- return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
1556
+ function vt(n, t) {
1557
+ var A;
1558
+ const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema, a = mt(), o = S(!1), f = S(!1);
1559
+ let h = !0, v = !1, p, l = !1;
1560
+ function u(d) {
1561
+ return p && p.componentClassList && p.componentClassList.includes("f-form-layout") && p.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
1561
1562
  }
1562
- function p(d) {
1563
- return !(!rt().basalDragulaRuleForContainer(d) || !o || !f(d));
1563
+ function y(d) {
1564
+ return !(!st().basalDragulaRuleForContainer(d) || !h || !u(d));
1564
1565
  }
1565
- function l() {
1566
- r.value = !1, a.value = !1;
1567
- const d = n, P = d.appearance && d.appearance.class || "", S = P.split(" "), h = d.contents || [], C = h.length ? h[0] : null, j = C && C.appearance ? C.appearance.class : "", D = j ? j.split(" ") : [], O = h.length ? h.reduce((J, $) => {
1568
- const Q = $ && $.appearance ? $.appearance.class : "", de = Q ? Q.split(" ") : [];
1569
- return J.push(...de), J;
1570
- }, []) : [], w = t, M = w && w.appearance && w.appearance.class || "", pe = M ? M.split(" ") : [];
1571
- y = {
1572
- componentClass: P,
1573
- componentClassList: S,
1574
- childContents: h,
1575
- firstChildContent: C,
1576
- firstChildClass: j,
1577
- firstChildClassList: D,
1578
- parent: w,
1579
- parentClass: M,
1580
- parentClassList: pe,
1581
- children: h,
1582
- childrenClassList: O
1566
+ function g() {
1567
+ o.value = !1, f.value = !1;
1568
+ const d = e, j = d.appearance && d.appearance.class || "", w = j.split(" "), T = d.contents || [], k = T.length ? T[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], $ = T.length ? T.reduce((K, q) => {
1569
+ const I = q && q.appearance ? q.appearance.class : "", ve = I ? I.split(" ") : [];
1570
+ return K.push(...ve), K;
1571
+ }, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
1572
+ p = {
1573
+ componentClass: j,
1574
+ componentClassList: w,
1575
+ childContents: T,
1576
+ firstChildContent: k,
1577
+ firstChildClass: _,
1578
+ firstChildClassList: N,
1579
+ parent: x,
1580
+ parentClass: V,
1581
+ parentClassList: ye,
1582
+ children: T,
1583
+ childrenClassList: $
1583
1584
  };
1584
- const { canAccept: le, fixed: ue, hidePadding: fe } = e.getRuleValue(S[0], y);
1585
- return o = le, u = fe, m = ue, !0;
1585
+ const { canAccept: he, fixed: be, hidePadding: me } = a.getRuleValue(w[0], p);
1586
+ return h = he, v = me, l = be, !0;
1586
1587
  }
1587
- function b(d) {
1588
- he();
1588
+ function i(d) {
1589
+ je();
1589
1590
  }
1590
- function g() {
1591
- return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1591
+ function c() {
1592
+ return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1592
1593
  }
1593
- function s(d, P) {
1594
- const S = n;
1595
- if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
1596
- const { label: j } = d, D = _("form-group");
1597
- return D.editor = P, D.label = j, D;
1594
+ function s(d, j) {
1595
+ const w = e;
1596
+ if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
1597
+ const { label: _ } = d, N = L("form-group");
1598
+ return N.editor = j, N.label = _, b(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
1598
1599
  }
1599
- return P;
1600
+ return j;
1600
1601
  }
1601
- function i(d, P, S) {
1602
- const h = n;
1603
- if ((h.appearance && h.appearance.class || "").split(" ").includes("f-form-layout")) {
1604
- const D = String(d.innerText), O = _("form-group");
1605
- return O.editor = S, O.label = D, O;
1602
+ function b(d) {
1603
+ const j = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1604
+ if (j && j.schema && j.schema.componentType) {
1605
+ const w = j.schema.componentType, T = P(w);
1606
+ d.appearance || (d.appearance = {}), d.appearance.class = T;
1606
1607
  }
1607
- return S;
1608
1608
  }
1609
- function c() {
1610
- return !m;
1609
+ function P(d) {
1610
+ let j = "";
1611
+ switch (d) {
1612
+ case "form-col-1": {
1613
+ j = "col-12 col-md-12 col-xl-12 col-el-12";
1614
+ break;
1615
+ }
1616
+ case "form-col-12": {
1617
+ j = "col-12 col-md-12 col-xl-12 col-el-12";
1618
+ break;
1619
+ }
1620
+ case "form-col-2": {
1621
+ j = "col-12 col-md-6 col-xl-6 col-el-6";
1622
+ break;
1623
+ }
1624
+ case "form-col-3": {
1625
+ j = "col-12 col-md-6 col-xl-4 col-el-4";
1626
+ break;
1627
+ }
1628
+ case "form-col-4": {
1629
+ j = "col-12 col-md-6 col-xl-3 col-el-2";
1630
+ break;
1631
+ }
1632
+ case "form-col-6": {
1633
+ j = "col-12 col-md-6 col-xl-6 col-el-6";
1634
+ break;
1635
+ }
1636
+ case "frame": {
1637
+ j = "col-12";
1638
+ break;
1639
+ }
1640
+ }
1641
+ return j;
1611
1642
  }
1612
- function v() {
1613
- return !m;
1643
+ function C(d, j, w) {
1644
+ const T = e;
1645
+ if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1646
+ const N = String(d.innerText), $ = L("form-group");
1647
+ return $.editor = w, $.label = N, $;
1648
+ }
1649
+ return w;
1650
+ }
1651
+ function E() {
1652
+ return !l;
1614
1653
  }
1615
- function T() {
1616
- return u;
1654
+ function M() {
1655
+ return !l;
1656
+ }
1657
+ function m() {
1658
+ return v;
1617
1659
  }
1618
1660
  return {
1619
- canAccepts: p,
1620
- checkCanDeleteComponent: v,
1621
- checkCanMoveComponent: c,
1622
- getStyles: g,
1623
- hideNestedPaddingInDesginerView: T,
1624
- onAcceptNewChildElement: i,
1625
- onAcceptMovedChildElement: b,
1626
- resolveComponentContext: l,
1661
+ canAccepts: y,
1662
+ checkCanDeleteComponent: M,
1663
+ checkCanMoveComponent: E,
1664
+ getStyles: c,
1665
+ hideNestedPaddingInDesginerView: m,
1666
+ onAcceptNewChildElement: C,
1667
+ onAcceptMovedChildElement: i,
1668
+ resolveComponentContext: g,
1627
1669
  onResolveNewComponentSchema: s,
1628
- triggerBelongedComponentToMoveWhenMoved: r,
1629
- triggerBelongedComponentToDeleteWhenDeleted: a
1670
+ triggerBelongedComponentToMoveWhenMoved: o,
1671
+ triggerBelongedComponentToDeleteWhenDeleted: f
1630
1672
  };
1631
1673
  }
1632
- const yt = /* @__PURE__ */ te({
1674
+ const gt = /* @__PURE__ */ ce({
1633
1675
  name: "FNavDesign",
1634
- props: H,
1676
+ props: R,
1635
1677
  emits: ["nav"],
1636
1678
  setup(n, t) {
1637
- var s;
1638
- const e = A(n.activeNavId), r = A(n.navData), a = A(n.horizontal);
1639
- A(n.navPicking);
1640
- const o = A(), u = be("design-item-context"), y = dt(u.schema, (s = u.parent) == null ? void 0 : s.schema), m = nt(o, u, y);
1641
- ve(() => {
1642
- o.value.componentInstance = m;
1643
- }), t.expose(m.value);
1644
- const f = k({
1679
+ var i;
1680
+ const e = S(n.activeNavId), r = S(n.navData), a = S(n.horizontal);
1681
+ S(n.navPicking);
1682
+ const o = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(o, f, h);
1683
+ Te(() => {
1684
+ o.value.componentInstance = v;
1685
+ }), t.expose(v.value);
1686
+ const p = F({
1645
1687
  get() {
1646
1688
  return r.value;
1647
1689
  },
1648
- set(i) {
1649
- r.value = i, b();
1690
+ set(c) {
1691
+ r.value = c, y();
1650
1692
  }
1651
- }), p = k({
1693
+ }), l = F({
1652
1694
  get() {
1653
1695
  return e.value;
1654
1696
  },
1655
- set(i) {
1656
- if (e.value = i, e.value && f && f.value.length) {
1657
- const c = f.value.find((v) => v.id === e.value);
1658
- c && t.emit("nav", c);
1697
+ set(c) {
1698
+ if (e.value = c, e.value && p && p.value.length) {
1699
+ const s = p.value.find((b) => b.id === e.value);
1700
+ s && t.emit("nav", s);
1659
1701
  }
1660
1702
  }
1661
- }), l = k({
1662
- set(i) {
1663
- a.value = i;
1703
+ }), u = F({
1704
+ set(c) {
1705
+ a.value = c;
1664
1706
  },
1665
1707
  get() {
1666
1708
  return a.value;
1667
1709
  }
1668
1710
  });
1669
- function b() {
1670
- if (f.value && f.value.length && !e.value) {
1671
- const i = f.value.find((c) => !c.disable);
1672
- i && (e.value = i.id);
1711
+ function y() {
1712
+ if (p.value && p.value.length && !e.value) {
1713
+ const c = p.value.find((s) => !s.disable);
1714
+ c && (e.value = c.id);
1673
1715
  }
1674
1716
  }
1675
- function g(i) {
1676
- i.disable || i.id === e.value || (e.value = i.id, t.emit("nav", i));
1717
+ function g(c) {
1718
+ c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
1677
1719
  }
1678
1720
  return () => {
1679
- var i;
1680
- return E("div", {
1721
+ var c;
1722
+ return D("div", {
1681
1723
  ref: o,
1682
1724
  class: ["farris-nav", {
1683
- "farris-nav-vertical": !l.value
1725
+ "farris-nav-vertical": !u.value
1684
1726
  }]
1685
- }, [(i = f.value) == null ? void 0 : i.map((c) => E("div", {
1727
+ }, [(c = p.value) == null ? void 0 : c.map((s) => D("div", {
1686
1728
  class: ["farris-nav-item", {
1687
- active: c.id === p.value
1729
+ active: s.id === l.value
1688
1730
  }, {
1689
- disabled: c.disable
1731
+ disabled: s.disable
1690
1732
  }],
1691
- onClick: () => g(c)
1692
- }, [E("div", {
1733
+ onClick: () => g(s)
1734
+ }, [D("div", {
1693
1735
  class: "farris-nav-item-link"
1694
- }, [E("span", {
1736
+ }, [D("span", {
1695
1737
  class: "farris-nav-item-link-text"
1696
- }, [c.text, c.num && E("div", {
1738
+ }, [s.text, s.num && D("div", {
1697
1739
  class: "farris-nav-item-tag"
1698
- }, [c.num <= n.maxNum && E("span", {
1740
+ }, [s.num <= n.maxNum && D("span", {
1699
1741
  class: "tag-text"
1700
- }, [c.num]), c.num > n.maxNum && E("span", {
1742
+ }, [s.num]), s.num > n.maxNum && D("span", {
1701
1743
  class: "tag-text"
1702
- }, [n.maxNum, ne("+")])])])])]))]);
1744
+ }, [n.maxNum, ie("+")])])])])]))]);
1703
1745
  };
1704
1746
  }
1705
- }), vt = {
1747
+ }), Tt = {
1706
1748
  install(n) {
1707
- n.component(B.name, B);
1749
+ n.component(z.name, z);
1708
1750
  },
1709
1751
  register(n, t, e, r) {
1710
- n.nav = B, t.nav = ee;
1752
+ n.nav = z, t.nav = ae;
1711
1753
  },
1712
1754
  registerDesigner(n, t, e) {
1713
- n.nav = yt, t.nav = ee;
1755
+ n.nav = gt, t.nav = ae;
1714
1756
  }
1715
1757
  };
1716
1758
  export {
1717
- B as FNav,
1718
- vt as default,
1719
- H as navProps,
1720
- ee as propsResolver
1759
+ z as FNav,
1760
+ Tt as default,
1761
+ R as navProps,
1762
+ ae as propsResolver
1721
1763
  };