@farris/ui-vue 1.3.4 → 1.3.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 (145) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +9 -7
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +746 -730
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +9 -7
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3096 -3069
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +78 -82
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +501 -487
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +487 -472
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +440 -433
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +594 -587
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +2766 -2739
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +314 -298
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +862 -843
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +1031 -1015
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +776 -770
  88. package/components/query-solution/index.umd.cjs +6 -6
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +296 -283
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +634 -619
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +383 -376
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +595 -575
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +5492 -5470
  140. package/farris.all.umd.cjs +13 -13
  141. package/index.css +1 -1
  142. package/package.json +1 -1
  143. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  144. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  145. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
@@ -1,38 +1,52 @@
1
1
  var yt = Object.defineProperty;
2
2
  var Ct = (t, e, n) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var N = (t, e, n) => Ct(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as p, watch as Z, nextTick as ae, computed as B, createVNode as u, onMounted as te, withDirectives as wt, vModelText as Tt, createTextVNode as Be, Fragment as Me, defineComponent as se, shallowRef as ve, provide as xe, inject as J, onUnmounted as be, isVNode as ze, Teleport as xt, Transition as St, createApp as Bt, render as Ie, h as Mt, cloneVNode as kt, mergeProps as Ne, reactive as ue, getCurrentInstance as Pt, onBeforeUnmount as It, withModifiers as Et } from "vue";
5
- import { cloneDeep as Ve, isPlainObject as He } from "lodash-es";
4
+ import { ref as p, watch as Z, nextTick as ae, computed as B, createVNode as u, onMounted as te, withDirectives as wt, vModelText as Tt, createTextVNode as Be, Fragment as Me, defineComponent as se, shallowRef as ve, provide as xe, inject as J, onUnmounted as be, isVNode as Ne, Teleport as xt, Transition as St, createApp as Bt, render as Ie, h as Mt, cloneVNode as kt, mergeProps as Ve, reactive as ue, getCurrentInstance as Pt, onBeforeUnmount as It, withModifiers as Et } from "vue";
5
+ import { cloneDeep as Oe, isPlainObject as ze } from "lodash-es";
6
6
  import Dt from "../capsule/index.esm.js";
7
- import We from "../response-toolbar/index.esm.js";
7
+ import qe from "../response-toolbar/index.esm.js";
8
8
  import { createPropsResolver as Rt } from "../dynamic-resolver/index.esm.js";
9
9
  import jt from "../section/index.esm.js";
10
- import { useDesignerInnerComponent as qe } from "../designer-canvas/index.esm.js";
10
+ import { useDesignerInnerComponent as We } from "../designer-canvas/index.esm.js";
11
11
  import { getCustomClass as De } from "../common/index.esm.js";
12
12
  import "bignumber.js";
13
13
  const _e = {}, Ue = {};
14
- function Oe(t) {
15
- const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), s = Object.keys(e).reduce((l, r) => ((!a || !o.find((c) => c === r)) && (l[r] = e[r].type === "object" && e[r].properties ? Oe(e[r]) : Ve(e[r].default)), l), {});
14
+ function Ae(t) {
15
+ const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), s = Object.keys(e).reduce((l, r) => ((!a || !o.find((c) => c === r)) && (l[r] = e[r].type === "object" && e[r].properties ? Ae(e[r]) : Oe(e[r].default)), l), {});
16
16
  if (n && (!a || !o.find((l) => l === "id"))) {
17
17
  const l = n.toLowerCase().replace(/-/g, "_");
18
18
  s.id = `${l}_${Math.random().toString().slice(2, 6)}`;
19
19
  }
20
20
  return s;
21
21
  }
22
+ function Ot(t) {
23
+ const { properties: e, title: n, required: o } = t;
24
+ if (o && Array.isArray(o)) {
25
+ const a = o.reduce((s, l) => (s[l] = e[l].type === "object" && e[l].properties ? Ae(e[l]) : Oe(e[l].default), s), {});
26
+ if (n && o.find((s) => s === "id")) {
27
+ const s = n.toLowerCase().replace(/-/g, "_");
28
+ a.id = `${s}_${Math.random().toString().slice(2, 6)}`;
29
+ }
30
+ return a;
31
+ }
32
+ return {
33
+ type: n
34
+ };
35
+ }
22
36
  function pe(t, e = {}, n) {
23
37
  const o = _e[t];
24
38
  if (o) {
25
- let a = Oe(o);
39
+ let a = Ot(o);
26
40
  const s = Ue[t];
27
41
  return a = s ? s({ getSchemaByType: pe }, a, e, n) : a, a;
28
42
  }
29
43
  return null;
30
44
  }
31
- function Ot(t, e) {
32
- const n = Oe(e);
33
- return Object.keys(n).reduce((o, a) => (o[a] && He(o[a]) && He(t[a] || !t[a]) ? Object.assign(o[a], t[a] || {}) : o[a] = t[a], o), n), n;
34
- }
35
45
  function At(t, e) {
46
+ const n = Ae(e);
47
+ return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(t, a) && (o[a] && ze(o[a]) && ze(t[a] || !t[a]) ? Object.assign(o[a], t[a] || {}) : o[a] = t[a]), o), n), n;
48
+ }
49
+ function $t(t, e) {
36
50
  return Object.keys(t).filter((o) => t[o] != null).reduce((o, a) => {
37
51
  if (e.has(a)) {
38
52
  const s = e.get(a);
@@ -47,11 +61,11 @@ function At(t, e) {
47
61
  return o;
48
62
  }, {});
49
63
  }
50
- function $t(t, e, n = /* @__PURE__ */ new Map()) {
51
- const o = Ot(t, e);
52
- return At(o, n);
64
+ function Lt(t, e, n = /* @__PURE__ */ new Map()) {
65
+ const o = At(t, e);
66
+ return $t(o, n);
53
67
  }
54
- function Lt(t = {}) {
68
+ function Ft(t = {}) {
55
69
  function e(d, f, m, w) {
56
70
  if (typeof m == "number")
57
71
  return w[d].length === m;
@@ -145,18 +159,18 @@ const ee = {
145
159
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
146
160
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
147
161
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
148
- }, Ft = {}, Ht = {};
149
- Lt();
162
+ }, Ht = {}, zt = {};
163
+ Ft();
150
164
  function he(t, e, n = /* @__PURE__ */ new Map(), o = (l, r, c, d) => r, a = {}, s = (l) => l) {
151
- return _e[e.title] = e, Ue[e.title] = o, Ft[e.title] = a, Ht[e.title] = s, (l = {}) => {
152
- const r = $t(l, e, n), c = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
165
+ return _e[e.title] = e, Ue[e.title] = o, Ht[e.title] = a, zt[e.title] = s, (l = {}) => {
166
+ const r = Lt(l, e, n), c = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
153
167
  return Object.assign(c, r);
154
168
  };
155
169
  }
156
170
  function ke(t, e) {
157
171
  return { customClass: e.class, customStyle: e.style };
158
172
  }
159
- function zt() {
173
+ function Nt() {
160
174
  function t(e, n) {
161
175
  const o = e.contents;
162
176
  if (!o || o.length < 1)
@@ -174,10 +188,10 @@ function zt() {
174
188
  resolve: t
175
189
  };
176
190
  }
177
- const Ae = /* @__PURE__ */ new Map([
191
+ const $e = /* @__PURE__ */ new Map([
178
192
  ["appearance", ke]
179
193
  ]);
180
- function Nt(t, e) {
194
+ function Vt(t, e) {
181
195
  const n = Math.random().toString().slice(2, 6), o = e.parentComponentInstance, a = t.getSchemaByType("tab-page");
182
196
  a.id = `tab-page-${n}`;
183
197
  const s = t.getSchemaByType("tabs");
@@ -219,16 +233,16 @@ function Nt(t, e) {
219
233
  }
220
234
  function Ge(t, e, n) {
221
235
  if (n.parentComponentInstance)
222
- return Nt(t, n);
236
+ return Vt(t, n);
223
237
  {
224
238
  const a = t.getSchemaByType("tab-page");
225
239
  return e.contents = [a], e;
226
240
  }
227
241
  }
228
- function Vt(t, e, n) {
242
+ function qt(t, e, n) {
229
243
  return e;
230
244
  }
231
- const Wt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-design.gitee.io/tabs.schema.json", _t = "tabs", Ut = "A Farris Container Component", Gt = "object", Xt = {
245
+ const Wt = "https://json-schema.org/draft/2020-12/schema", _t = "https://farris-design.gitee.io/tabs.schema.json", Ut = "tabs", Gt = "A Farris Container Component", Xt = "object", Yt = {
232
246
  id: {
233
247
  description: "The unique identifier for a Tabs",
234
248
  type: "string"
@@ -276,19 +290,19 @@ const Wt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-
276
290
  type: "boolean",
277
291
  default: !1
278
292
  }
279
- }, Yt = [
293
+ }, Jt = [
280
294
  "id",
281
295
  "type",
282
296
  "contents"
283
297
  ], Xe = {
284
298
  $schema: Wt,
285
- $id: qt,
286
- title: _t,
287
- description: Ut,
288
- type: Gt,
289
- properties: Xt,
290
- required: Yt
291
- }, $e = {
299
+ $id: _t,
300
+ title: Ut,
301
+ description: Gt,
302
+ type: Xt,
303
+ properties: Yt,
304
+ required: Jt
305
+ }, Le = {
292
306
  tabType: { type: String, default: "default" },
293
307
  autoTitleWidth: { type: Boolean, default: !1 },
294
308
  titleLength: { type: Number, default: 7 },
@@ -306,10 +320,10 @@ const Wt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-
306
320
  activeId: { type: String },
307
321
  fill: { type: Boolean, default: !1 },
308
322
  justifyContent: { type: String, default: "left" }
309
- }, Jt = he($e, Xe, Ae, Ge), Ye = Object.assign({}, $e, {
323
+ }, Qt = he(Le, Xe, $e, Ge), Ye = Object.assign({}, Le, {
310
324
  componentId: { type: String, default: "" }
311
- }), Qt = he(Ye, Xe, Ae, Ge), Zt = zt();
312
- function Kt(t, e, n) {
325
+ }), Zt = he(Ye, Xe, $e, Ge), Kt = Nt();
326
+ function en(t, e, n) {
313
327
  const o = p([]), a = p(t.activeId || ""), s = p(!0), l = p([]);
314
328
  Z(() => t.activeId, (h, S) => {
315
329
  h !== S && (a.value = h);
@@ -376,7 +390,7 @@ function Kt(t, e, n) {
376
390
  toolbarItems: l
377
391
  };
378
392
  }
379
- function en(t, e, n, o, a) {
393
+ function tn(t, e, n, o, a) {
380
394
  const {
381
395
  activeId: s,
382
396
  removeTab: l,
@@ -430,7 +444,7 @@ function en(t, e, n, o, a) {
430
444
  onClick: b
431
445
  }, [x(e), h.value && S()])]);
432
446
  }
433
- function tn(t, e, n, o, a) {
447
+ function nn(t, e, n, o, a) {
434
448
  const {
435
449
  shouldShowNavigationButtons: s
436
450
  } = n, {
@@ -457,7 +471,7 @@ function tn(t, e, n, o, a) {
457
471
  }, [u("ul", {
458
472
  class: d.value,
459
473
  ref: e
460
- }, [l.value.map((f) => en(t, f.props, f, o, a))])]);
474
+ }, [l.value.map((f) => tn(t, f.props, f, o, a))])]);
461
475
  }
462
476
  function Je(t, e, n, o, a) {
463
477
  const s = p(), {
@@ -501,7 +515,7 @@ function Je(t, e, n, o, a) {
501
515
  ref: s
502
516
  }, null)]);
503
517
  }
504
- function nn(t, e, n, o) {
518
+ function on(t, e, n, o) {
505
519
  const {
506
520
  activeId: a,
507
521
  removeTab: s,
@@ -576,7 +590,7 @@ function Qe(t, e, n, o) {
576
590
  hideDropDown: a
577
591
  } = e, {
578
592
  renderDropdownMenu: s
579
- } = nn(t, e, n, o), l = p(t.showDropdown);
593
+ } = on(t, e, n, o), l = p(t.showDropdown);
580
594
  function r() {
581
595
  return l.value && u(Me, null, [u("button", {
582
596
  title: "toggle-button",
@@ -684,10 +698,10 @@ function et(t, e, n) {
684
698
  }
685
699
  const me = /* @__PURE__ */ se({
686
700
  name: "FTabs",
687
- props: $e,
701
+ props: Le,
688
702
  emits: ["tabChange", "tabRemove", "update:activeId", "Click"],
689
703
  setup(t, e) {
690
- const n = p(t.tabType), o = ve(), a = p(t.customClass), s = ve(), l = ve(), r = Kt(t, e, s), {
704
+ const n = p(t.tabType), o = ve(), a = p(t.customClass), s = ve(), l = ve(), r = en(t, e, s), {
691
705
  activeId: c,
692
706
  changeTitleStyle: d,
693
707
  tabPages: f,
@@ -703,14 +717,14 @@ const me = /* @__PURE__ */ se({
703
717
  updateNavigationLayout: j
704
718
  } = S, $ = Ke(t, r), {
705
719
  hideDropDown: k
706
- } = $, L = tn(t, s, S, h, r), W = L, D = Je(t, s, S, h, r), g = /* @__PURE__ */ new Map([["default", L], ["one-page", W], ["pills", D]]);
720
+ } = $, L = nn(t, s, S, h, r), q = L, D = Je(t, s, S, h, r), g = /* @__PURE__ */ new Map([["default", L], ["one-page", q], ["pills", D]]);
707
721
  B(() => {
708
- const q = f.value.find((X) => X.props.id === c.value);
709
- return q == null ? void 0 : q.slots;
722
+ const W = f.value.find((X) => X.props.id === c.value);
723
+ return W == null ? void 0 : W.slots;
710
724
  });
711
725
  const i = B(() => {
712
- const q = f.value.find((ne) => ne.props.id === c.value);
713
- return (q == null ? void 0 : q.props.toolbarPosition) === "inHead";
726
+ const W = f.value.find((ne) => ne.props.id === c.value);
727
+ return (W == null ? void 0 : W.props.toolbarPosition) === "inHead";
714
728
  }), y = B(() => t.fill || t.tabType === "fill");
715
729
  xe("tabs", {
716
730
  activeId: c,
@@ -729,7 +743,7 @@ const me = /* @__PURE__ */ se({
729
743
  })), H = B(() => ({
730
744
  width: i.value && t.titleWidth ? `${t.titleWidth}%` : ""
731
745
  })), E = B(() => {
732
- const q = {
746
+ const W = {
733
747
  "farris-tabs": !0,
734
748
  "f-utils-fill-flex-column": y.value,
735
749
  "flex-column": t.position === "top",
@@ -738,14 +752,14 @@ const me = /* @__PURE__ */ se({
738
752
  "flex-row-reverse": t.position === "right",
739
753
  "one-page": t.tabType === "one-page"
740
754
  };
741
- return a.value && a.value.split(" ").reduce((X, ne) => (X[ne] = !0, X), q), q;
755
+ return a.value && a.value.split(" ").reduce((X, ne) => (X[ne] = !0, X), W), W;
742
756
  });
743
757
  te(() => {
744
758
  f.value.length && (c.value = t.activeId || f.value[0].props.id, C(c.value)), ae(() => {
745
759
  j();
746
- }), d(s), window.addEventListener("click", (q) => {
760
+ }), d(s), window.addEventListener("click", (W) => {
747
761
  var X;
748
- k.value || (X = o.value) != null && X.contains(q.target) || (k.value = !0);
762
+ k.value || (X = o.value) != null && X.contains(W.target) || (k.value = !0);
749
763
  }), window.addEventListener("resize", () => {
750
764
  j();
751
765
  });
@@ -772,11 +786,11 @@ const me = /* @__PURE__ */ se({
772
786
  }
773
787
  const {
774
788
  renderMorePagesButtton: I
775
- } = Qe(t, $, S, r), R = (q, X) => {
776
- e.emit("Click", q, X, c.value);
789
+ } = Qe(t, $, S, r), R = (W, X) => {
790
+ e.emit("Click", W, X, c.value);
777
791
  };
778
792
  function V() {
779
- return x.value.length ? u(We, {
793
+ return x.value.length ? u(qe, {
780
794
  class: "f-utils-fill",
781
795
  items: x.value,
782
796
  onClick: R
@@ -784,12 +798,12 @@ const me = /* @__PURE__ */ se({
784
798
  }
785
799
  const G = g.get(t.tabType) || g.get("default");
786
800
  function K() {
787
- var q, X, ne, ce;
801
+ var W, X, ne, ce;
788
802
  return u("div", {
789
803
  class: F.value
790
804
  }, [u("div", {
791
805
  class: "farris-tabs-header-pre"
792
- }, [(X = (q = e.slots).headerPrefix) == null ? void 0 : X.call(q)]), u("div", {
806
+ }, [(X = (W = e.slots).headerPrefix) == null ? void 0 : X.call(W)]), u("div", {
793
807
  class: "farris-tabs-title scroll-tabs",
794
808
  style: H.value
795
809
  }, [v(), G && G(), u("div", {
@@ -803,11 +817,11 @@ const me = /* @__PURE__ */ se({
803
817
  "f-utils-fill-flex-column": y.value
804
818
  }));
805
819
  function re() {
806
- var q, X;
820
+ var W, X;
807
821
  return u("div", {
808
822
  class: le.value,
809
823
  ref: l
810
- }, [(X = (q = e.slots).default) == null ? void 0 : X.call(q)]);
824
+ }, [(X = (W = e.slots).default) == null ? void 0 : X.call(W)]);
811
825
  }
812
826
  return () => u("div", {
813
827
  class: E.value,
@@ -815,15 +829,15 @@ const me = /* @__PURE__ */ se({
815
829
  }, [K(), re()]);
816
830
  }
817
831
  });
818
- function on(t, e, n) {
832
+ function an(t, e, n) {
819
833
  return e && e.contents && e.contents.length && (e.contents.forEach((o) => {
820
834
  o.title && (o.text = o.title);
821
835
  }), e.buttons = e.contents, delete e.contents), { toolbar: e };
822
836
  }
823
- const an = /* @__PURE__ */ new Map([
837
+ const sn = /* @__PURE__ */ new Map([
824
838
  ["appearance", ke],
825
- ["toolbar", on]
826
- ]), sn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-design.gitee.io/tab-page.schema.json", rn = "tab-page", cn = "A Farris Container Component", un = "object", dn = {
839
+ ["toolbar", an]
840
+ ]), ln = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/tab-page.schema.json", cn = "tab-page", un = "A Farris Container Component", dn = "object", pn = {
827
841
  id: {
828
842
  description: "The unique identifier for a tab-page Item",
829
843
  type: "string"
@@ -862,19 +876,19 @@ const an = /* @__PURE__ */ new Map([
862
876
  description: "",
863
877
  type: "object"
864
878
  }
865
- }, pn = [
879
+ }, fn = [
866
880
  "id",
867
881
  "type",
868
882
  "contents"
869
- ], fn = {
870
- $schema: sn,
871
- $id: ln,
872
- title: rn,
873
- description: cn,
874
- type: un,
875
- properties: dn,
876
- required: pn
877
- }, Le = {
883
+ ], vn = {
884
+ $schema: ln,
885
+ $id: rn,
886
+ title: cn,
887
+ description: un,
888
+ type: dn,
889
+ properties: pn,
890
+ required: fn
891
+ }, Fe = {
878
892
  tabWidth: { type: Number, default: -1 },
879
893
  id: { type: String, default: "" },
880
894
  customTitleClass: { type: String, default: "" },
@@ -886,13 +900,13 @@ const an = /* @__PURE__ */ new Map([
886
900
  show: { type: Boolean, default: !0 },
887
901
  toolbar: { type: Object, default: {} },
888
902
  toolbarPosition: { type: String, default: "inHead" }
889
- }, tt = Rt(Le, fn, an);
890
- function vn(t) {
891
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ze(t);
903
+ }, tt = Rt(Fe, vn, sn);
904
+ function mn(t) {
905
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Ne(t);
892
906
  }
893
907
  const Re = /* @__PURE__ */ se({
894
908
  name: "FTabPage",
895
- props: Le,
909
+ props: Fe,
896
910
  emits: [],
897
911
  setup(t, e) {
898
912
  const n = J("tabs"), o = p(t.show), a = {
@@ -922,7 +936,7 @@ const Re = /* @__PURE__ */ se({
922
936
  return u(jt, {
923
937
  "main-title": t.title,
924
938
  class: "farris-tab-page"
925
- }, vn(C) ? C : {
939
+ }, mn(C) ? C : {
926
940
  default: () => [C]
927
941
  });
928
942
  }
@@ -944,7 +958,7 @@ const Re = /* @__PURE__ */ se({
944
958
  const w = (/* @__PURE__ */ new Map([["default", f], ["one-page", c]])).get(s.value) || f;
945
959
  return () => o.value ? w() : null;
946
960
  }
947
- }), mn = {
961
+ }), hn = {
948
962
  width: { Type: Number, default: 400 },
949
963
  type: { Type: String, default: "info" },
950
964
  title: { Type: String, default: "" },
@@ -954,15 +968,15 @@ const Re = /* @__PURE__ */ se({
954
968
  exceptionInfo: { Type: Object, default: null },
955
969
  promptEditorType: { Type: String, default: "text-area" }
956
970
  };
957
- function Fe() {
971
+ function He() {
958
972
  return new DOMException("The request is not allowed", "NotAllowedError");
959
973
  }
960
- async function hn(t) {
974
+ async function gn(t) {
961
975
  if (!navigator.clipboard)
962
- throw Fe();
976
+ throw He();
963
977
  return navigator.clipboard.writeText(t);
964
978
  }
965
- async function gn(t) {
979
+ async function bn(t) {
966
980
  const e = document.createElement("span");
967
981
  e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
968
982
  const n = window.getSelection(), o = window.document.createRange();
@@ -974,26 +988,26 @@ async function gn(t) {
974
988
  n == null || n.removeAllRanges(), window.document.body.removeChild(e);
975
989
  }
976
990
  if (!a)
977
- throw Fe();
991
+ throw He();
978
992
  }
979
- async function bn(t) {
993
+ async function yn(t) {
980
994
  try {
981
- await hn(t);
995
+ await gn(t);
982
996
  } catch (e) {
983
997
  try {
984
- await gn(t);
998
+ await bn(t);
985
999
  } catch (n) {
986
- throw n || e || Fe();
1000
+ throw n || e || He();
987
1001
  }
988
1002
  }
989
1003
  }
990
- function yn() {
1004
+ function Cn() {
991
1005
  async function t(e) {
992
- await bn(e);
1006
+ await yn(e);
993
1007
  }
994
1008
  return { onCopy: t };
995
1009
  }
996
- function Cn(t, e, n, o) {
1010
+ function wn(t, e, n, o) {
997
1011
  const a = p(14), s = p(140), l = p(""), r = p(o.value.length), c = B(() => o.value), d = B(() => ({
998
1012
  "font-size": `${a.value}px`,
999
1013
  height: "100%"
@@ -1018,14 +1032,14 @@ function Cn(t, e, n, o) {
1018
1032
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
1019
1033
  }, [r.value + " / " + s.value])]);
1020
1034
  }
1021
- function wn(t, e, n, o) {
1022
- const a = Cn(t, e, n, o), s = /* @__PURE__ */ new Map([["text-area", a]]);
1035
+ function Tn(t, e, n, o) {
1036
+ const a = wn(t, e, n, o), s = /* @__PURE__ */ new Map([["text-area", a]]);
1023
1037
  function l(r) {
1024
1038
  return s.get(r) || null;
1025
1039
  }
1026
1040
  return { getEditorRender: l };
1027
1041
  }
1028
- function Tn() {
1042
+ function xn() {
1029
1043
  const t = p(!1), e = p("复制成功");
1030
1044
  return {
1031
1045
  feedbackStyle: B(() => {
@@ -1051,11 +1065,11 @@ function Tn() {
1051
1065
  toShowFeedback: t
1052
1066
  };
1053
1067
  }
1054
- function xn(t, e) {
1068
+ function Sn(t, e) {
1055
1069
  const n = e.getEditorRender(t.promptEditorType);
1056
1070
  return () => n && n();
1057
1071
  }
1058
- function Sn(t) {
1072
+ function Bn(t) {
1059
1073
  const e = p(3), n = p(480), o = B(() => !!t.value && !!t.value.date), a = B(() => `发生时间 : ${t.value && t.value.date || ""}`), s = B(() => !!t.value && !!t.value.detail), l = B(() => {
1060
1074
  const S = `${n.value}px`;
1061
1075
  return {
@@ -1100,13 +1114,13 @@ function Sn(t) {
1100
1114
  style: "cursor: pointer;"
1101
1115
  }, [f.value])])]);
1102
1116
  }
1103
- function Bn(t) {
1117
+ function Mn(t) {
1104
1118
  return () => u("p", {
1105
1119
  class: "toast-msg-detail",
1106
1120
  innerHTML: t.value
1107
1121
  }, null);
1108
1122
  }
1109
- function Mn(t, e, n, o) {
1123
+ function kn(t, e, n, o) {
1110
1124
  const a = p(t.exceptionInfo), s = B(() => {
1111
1125
  const w = {
1112
1126
  "f-icon": !0
@@ -1114,7 +1128,7 @@ function Mn(t, e, n, o) {
1114
1128
  return w[C] = !0, w;
1115
1129
  }), l = B(() => n.value || a.value && a.value.message), r = B(() => o.value), c = B(() => !!o.value), d = B(() => !!a.value);
1116
1130
  function f() {
1117
- return d.value ? Sn(a) : c.value ? Bn(r) : () => null;
1131
+ return d.value ? Bn(a) : c.value ? Mn(r) : () => null;
1118
1132
  }
1119
1133
  const m = f();
1120
1134
  return () => u(Me, null, [u("div", {
@@ -1128,7 +1142,7 @@ function Mn(t, e, n, o) {
1128
1142
  innerHTML: l.value
1129
1143
  }, null), m()])]);
1130
1144
  }
1131
- function kn(t, e, n) {
1145
+ function Pn(t, e, n) {
1132
1146
  const {
1133
1147
  onCopy: o
1134
1148
  } = e, {
@@ -1154,8 +1168,8 @@ function kn(t, e, n) {
1154
1168
  style: "cursor: pointer;"
1155
1169
  }, [l.value])]);
1156
1170
  }
1157
- function Pn(t, e, n, o) {
1158
- const a = p(t.type), s = p([]), l = p(t.exceptionInfo), r = p(t.okButtonText), c = p(t.cancelButtonText), d = p(!0), f = p(!0), m = B(() => !!(s.value && s.value.length)), w = B(() => l.value && l.value.date && l.value.message && l.value.detail), C = B(() => !(s.value && s.value.length) && (r.value || c.value)), x = B(() => f.value && r.value), h = B(() => d.value && c.value), S = kn(t, n, o);
1171
+ function In(t, e, n, o) {
1172
+ const a = p(t.type), s = p([]), l = p(t.exceptionInfo), r = p(t.okButtonText), c = p(t.cancelButtonText), d = p(!0), f = p(!0), m = B(() => !!(s.value && s.value.length)), w = B(() => l.value && l.value.date && l.value.message && l.value.detail), C = B(() => !(s.value && s.value.length) && (r.value || c.value)), x = B(() => f.value && r.value), h = B(() => d.value && c.value), S = Pn(t, n, o);
1159
1173
  function b(O) {
1160
1174
  a.value === "question" && e.emit("reject"), e.emit("close");
1161
1175
  }
@@ -1182,7 +1196,7 @@ function Pn(t, e, n, o) {
1182
1196
  }
1183
1197
  const Te = /* @__PURE__ */ se({
1184
1198
  name: "FMessageBox",
1185
- props: mn,
1199
+ props: hn,
1186
1200
  emits: ["accept", "reject", "close"],
1187
1201
  setup(t, e) {
1188
1202
  const n = p(t.type), o = p(t.title), a = p(t.detail), s = B(() => {
@@ -1195,7 +1209,7 @@ const Te = /* @__PURE__ */ se({
1195
1209
  }), l = B(() => {
1196
1210
  const S = {};
1197
1211
  return n.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
1198
- }), r = yn(), c = wn(t, n, o, a), d = Tn(), {
1212
+ }), r = Cn(), c = Tn(t, n, o, a), d = xn(), {
1199
1213
  feedbackStyle: f,
1200
1214
  feedbackMessage: m
1201
1215
  } = d;
@@ -1207,12 +1221,12 @@ const Te = /* @__PURE__ */ se({
1207
1221
  function C() {
1208
1222
  switch (n.value) {
1209
1223
  case "prompt":
1210
- return xn(t, c);
1224
+ return Sn(t, c);
1211
1225
  default:
1212
- return Mn(t, n, o, a);
1226
+ return kn(t, n, o, a);
1213
1227
  }
1214
1228
  }
1215
- const x = C(), h = Pn(t, e, r, d);
1229
+ const x = C(), h = In(t, e, r, d);
1216
1230
  return () => u("div", {
1217
1231
  class: "farris-messager"
1218
1232
  }, [u("section", {
@@ -1220,7 +1234,7 @@ const Te = /* @__PURE__ */ se({
1220
1234
  style: l.value
1221
1235
  }, [x()]), h(), w()]);
1222
1236
  }
1223
- }), In = {
1237
+ }), En = {
1224
1238
  /**
1225
1239
  * 自定义类
1226
1240
  */
@@ -1364,7 +1378,7 @@ class de {
1364
1378
  return this.width = e.width, this.height = e.height, this;
1365
1379
  }
1366
1380
  }
1367
- function En(t, e) {
1381
+ function Dn(t, e) {
1368
1382
  const n = p(), o = p(), a = p(), s = p(), l = p(), r = p(), c = p(), d = p(), f = p(), m = p(), w = p(), C = p(), x = p(t.draggable), h = p(!1);
1369
1383
  function S() {
1370
1384
  const E = o.value || document.body, v = window.getComputedStyle(E);
@@ -1448,11 +1462,11 @@ function En(t, e) {
1448
1462
  }
1449
1463
  a.value = void 0, s.value = null, l.value = null, r.value = null, c.value = null, d.value = null, f.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", L);
1450
1464
  }
1451
- function W() {
1465
+ function q() {
1452
1466
  document.addEventListener("mousemove", $), document.addEventListener("mouseup", L);
1453
1467
  }
1454
1468
  function D(E) {
1455
- E instanceof MouseEvent && E.button === 2 || x.value && (E.stopPropagation(), E.preventDefault(), a.value = Y.fromEvent(E), f.value = E.target, b(E), W());
1469
+ E instanceof MouseEvent && E.button === 2 || x.value && (E.stopPropagation(), E.preventDefault(), a.value = Y.fromEvent(E), f.value = E.target, b(E), q());
1456
1470
  }
1457
1471
  function g(E) {
1458
1472
  return n.value = E, u(Me, null, [u("div", {
@@ -1549,7 +1563,7 @@ function En(t, e) {
1549
1563
  unWindowResizeHandle: H
1550
1564
  };
1551
1565
  }
1552
- function Dn(t, e, n) {
1566
+ function Rn(t, e, n) {
1553
1567
  const o = p(), a = p(t.draggable), s = p(t.lockAxis), l = p(), r = p(), c = p(!1), d = p(new Y(0, 0)), f = p(new Y(0, 0)), m = p(new Y(0, 0)), w = p(new Y(0, 0));
1554
1568
  Z(() => n.value, (k) => {
1555
1569
  l.value.style.cursor = k ? "move" : "default";
@@ -1559,8 +1573,8 @@ function Dn(t, e, n) {
1559
1573
  return !1;
1560
1574
  if (L === k)
1561
1575
  return !0;
1562
- for (const W in L.children)
1563
- if (Object.prototype.hasOwnProperty.call(L.children, W) && C(k, L.children[W]))
1576
+ for (const q in L.children)
1577
+ if (Object.prototype.hasOwnProperty.call(L.children, q) && C(k, L.children[q]))
1564
1578
  return !0;
1565
1579
  return !1;
1566
1580
  }
@@ -1568,19 +1582,19 @@ function Dn(t, e, n) {
1568
1582
  var D, g;
1569
1583
  let k = m.value.x + f.value.x, L = m.value.y + f.value.y;
1570
1584
  s.value === "x" ? (k = ((D = d.value) == null ? void 0 : D.x) || 0, m.value.x = 0) : s.value === "y" && (L = ((g = d.value) == null ? void 0 : g.y) || 0, m.value.y = 0);
1571
- const W = `translate3d(${Math.round(k)}px, ${Math.round(L)}px, 0px)`;
1572
- o.value && (o.value.style.transform = W), w.value.x = k, w.value.y = L;
1585
+ const q = `translate3d(${Math.round(k)}px, ${Math.round(L)}px, 0px)`;
1586
+ o.value && (o.value.style.transform = q), w.value.x = k, w.value.y = L;
1573
1587
  }
1574
1588
  function h() {
1575
1589
  if (!r.value || !o.value)
1576
1590
  return null;
1577
- const k = r.value.getBoundingClientRect(), L = o.value.getBoundingClientRect(), W = {
1591
+ const k = r.value.getBoundingClientRect(), L = o.value.getBoundingClientRect(), q = {
1578
1592
  top: k.top < L.top,
1579
1593
  right: k.right > L.right,
1580
1594
  bottom: k.bottom > L.bottom,
1581
1595
  left: k.left < L.left
1582
1596
  };
1583
- return W.top || (m.value.y -= L.top - k.top), W.bottom || (m.value.y -= L.bottom - k.bottom), W.right || (m.value.x -= L.right - k.right), W.left || (m.value.x -= L.left - k.left), x(), W;
1597
+ return q.top || (m.value.y -= L.top - k.top), q.bottom || (m.value.y -= L.bottom - k.bottom), q.right || (m.value.x -= L.right - k.right), q.left || (m.value.x -= L.left - k.left), x(), q;
1584
1598
  }
1585
1599
  function S(k) {
1586
1600
  k && (d.value && k.subtract(d.value), m.value.set(k), x(), h());
@@ -1609,7 +1623,7 @@ function Dn(t, e, n) {
1609
1623
  const L = k.target || k.srcElement;
1610
1624
  l.value !== void 0 && L && !C(L, l.value) || a.value !== !1 && (document.body.click(), k.stopPropagation(), k.preventDefault(), d.value = Y.fromEvent(k, o.value), z(), O());
1611
1625
  }
1612
- function $(k, L, W) {
1626
+ function $(k, L, q) {
1613
1627
  if (a.value && L) {
1614
1628
  if (k)
1615
1629
  l.value = k;
@@ -1621,7 +1635,7 @@ function Dn(t, e, n) {
1621
1635
  D && (l.value = D);
1622
1636
  }
1623
1637
  }
1624
- o.value = L, r.value = W, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", j);
1638
+ o.value = L, r.value = q, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", j);
1625
1639
  }
1626
1640
  }
1627
1641
  return {
@@ -1639,7 +1653,7 @@ function nt(t, e) {
1639
1653
  };
1640
1654
  }
1641
1655
  }
1642
- function Rn(t, e) {
1656
+ function jn(t, e) {
1643
1657
  const n = p(t.enableEsc);
1644
1658
  let o = null;
1645
1659
  return n.value ? (o = nt("Escape", (a) => {
@@ -1648,7 +1662,7 @@ function Rn(t, e) {
1648
1662
  remove: o
1649
1663
  }) : null;
1650
1664
  }
1651
- function jn(t, e) {
1665
+ function On(t, e) {
1652
1666
  const n = p(t.enableEnter);
1653
1667
  let o = null;
1654
1668
  return n.value ? (o = nt("Enter", (a) => {
@@ -1659,7 +1673,7 @@ function jn(t, e) {
1659
1673
  }
1660
1674
  const ot = /* @__PURE__ */ se({
1661
1675
  name: "FModal",
1662
- props: In,
1676
+ props: En,
1663
1677
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
1664
1678
  setup(t, e) {
1665
1679
  const n = p(t.width || 300), o = p(t.height || 200), a = p(t.modelValue), s = p(""), l = p(t.class), r = p(t.fitContent), c = p(t.showHeader), d = p(""), f = p(t.showCloseButton), m = p(t.showMaxButton), w = p(!1), C = p(""), x = p(""), h = p(""), S = p(t.showButtons), b = p(t.title), T = p(t.reiszeable), O = p(t.containment || null), z = p();
@@ -1680,7 +1694,7 @@ const ot = /* @__PURE__ */ se({
1680
1694
  handle: (A) => {
1681
1695
  j(A, !0);
1682
1696
  }
1683
- }], k = p(t.buttons && t.buttons.length ? t.buttons : $), L = B(() => !!d.value), W = B(() => !!S.value && !!k.value), D = p(), g = p(), i = p(!1), {
1697
+ }], k = p(t.buttons && t.buttons.length ? t.buttons : $), L = B(() => !!d.value), q = B(() => !!S.value && !!k.value), D = p(), g = p(), i = p(!1), {
1684
1698
  renderResizeBar: y,
1685
1699
  maximize: P,
1686
1700
  restore: F,
@@ -1688,9 +1702,9 @@ const ot = /* @__PURE__ */ se({
1688
1702
  resizedEventParam: E,
1689
1703
  allowDrag: v,
1690
1704
  unWindowResizeHandle: M
1691
- } = En(t), {
1705
+ } = Dn(t), {
1692
1706
  registerDraggle: I
1693
- } = Dn(t, e, v);
1707
+ } = Rn(t, e, v);
1694
1708
  Z(() => t.title, (A, U) => {
1695
1709
  A !== U && (b.value = A);
1696
1710
  }), Z(() => t.modelValue, (A, U) => {
@@ -1732,7 +1746,7 @@ const ot = /* @__PURE__ */ se({
1732
1746
  })), re = B(() => ({
1733
1747
  "modal-content": !0,
1734
1748
  "modal-content-has-header": c.value
1735
- })), q = B(() => {
1749
+ })), W = B(() => {
1736
1750
  const A = {
1737
1751
  display: c.value ? "" : "none"
1738
1752
  };
@@ -1769,7 +1783,7 @@ const ot = /* @__PURE__ */ se({
1769
1783
  }
1770
1784
  let oe = null, fe = null;
1771
1785
  te(() => {
1772
- g.value && !O.value && (O.value = g.value.parentElement, H.value = O.value, I(D.value, g.value, H.value)), V.value && document.body.classList.add("modal-open"), oe = Rn(t, e), fe = jn(t, e);
1786
+ g.value && !O.value && (O.value = g.value.parentElement, H.value = O.value, I(D.value, g.value, H.value)), V.value && document.body.classList.add("modal-open"), oe = jn(t, e), fe = On(t, e);
1773
1787
  }), be(() => {
1774
1788
  R(), M && M(), oe && oe.remove(), fe && fe.remove();
1775
1789
  }), e.expose({
@@ -1816,7 +1830,7 @@ const ot = /* @__PURE__ */ se({
1816
1830
  return u("div", {
1817
1831
  ref: D,
1818
1832
  class: "modal-header",
1819
- style: q.value
1833
+ style: W.value
1820
1834
  }, [u("div", {
1821
1835
  class: "modal-title"
1822
1836
  }, [L.value && u("span", {
@@ -1860,7 +1874,7 @@ const ot = /* @__PURE__ */ se({
1860
1874
  width: "100%",
1861
1875
  frameborder: "0",
1862
1876
  src: x.value
1863
- }, null)]), W.value && mt()]), !r.value && T.value && g.value && y(g.value)])])];
1877
+ }, null)]), q.value && mt()]), !r.value && T.value && g.value && y(g.value)])])];
1864
1878
  }
1865
1879
  })]
1866
1880
  });
@@ -1872,7 +1886,7 @@ function at(t) {
1872
1886
  if (t.render && typeof t.render == "function")
1873
1887
  return t.render;
1874
1888
  }
1875
- function On(t) {
1889
+ function An(t) {
1876
1890
  const e = document.createElement("div");
1877
1891
  e.style.display = "contents";
1878
1892
  const n = Bt({
@@ -1915,7 +1929,7 @@ function On(t) {
1915
1929
  });
1916
1930
  return document.body.appendChild(e), n.mount(e), n;
1917
1931
  }
1918
- class An {
1932
+ class $n {
1919
1933
  constructor(e) {
1920
1934
  N(this, "appContext", null);
1921
1935
  N(this, "modalRef", p());
@@ -1934,7 +1948,7 @@ class An {
1934
1948
  showButtons: !0,
1935
1949
  showHeader: !0
1936
1950
  }, e);
1937
- return On(n);
1951
+ return An(n);
1938
1952
  }
1939
1953
  open(e) {
1940
1954
  const n = document.createDocumentFragment();
@@ -1965,7 +1979,7 @@ class An {
1965
1979
  }, C = (b) => {
1966
1980
  var T;
1967
1981
  this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((T = this.activeModalInstance.value) == null || T.close(b == null ? void 0 : b.event));
1968
- }, x = () => u(ot, Ne({
1982
+ }, x = () => u(ot, Ve({
1969
1983
  ref: this.modalRef,
1970
1984
  modelValue: a.value,
1971
1985
  "onUpdate:modelValue": (b) => a.value = b
@@ -2005,7 +2019,7 @@ class ie {
2005
2019
  }), o = !1, a = n.type === "error" || n.type === "prompt", s = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
2006
2020
  }), r = n.rejectCallback || (() => {
2007
2021
  });
2008
- let c = null, d = new An(c);
2022
+ let c = null, d = new $n(c);
2009
2023
  const f = () => {
2010
2024
  c && (c == null || c.destroy(), d = null);
2011
2025
  };
@@ -2017,7 +2031,7 @@ class ie {
2017
2031
  width: n.width || 400,
2018
2032
  fitContent: !0,
2019
2033
  showMaxButton: !1,
2020
- render: () => u(Te, Ne(n, {
2034
+ render: () => u(Te, Ve(n, {
2021
2035
  onAccept: l,
2022
2036
  onReject: r,
2023
2037
  onClose: f
@@ -2094,7 +2108,7 @@ class ie {
2094
2108
  Te.install = (t) => {
2095
2109
  t.component(Te.name, Te), t.provide("FMessageBoxService", ie);
2096
2110
  };
2097
- function $n(t, e, n, o, a, s) {
2111
+ function Ln(t, e, n, o, a, s) {
2098
2112
  const {
2099
2113
  activeId: l,
2100
2114
  removeTab: r,
@@ -2153,7 +2167,7 @@ function $n(t, e, n, o, a, s) {
2153
2167
  function L(i) {
2154
2168
  m(i, e.id);
2155
2169
  }
2156
- function W() {
2170
+ function q() {
2157
2171
  return u("div", {
2158
2172
  role: "button",
2159
2173
  class: "btn component-settings-button",
@@ -2179,7 +2193,7 @@ function $n(t, e, n, o, a, s) {
2179
2193
  return u("div", {
2180
2194
  class: "component-btn-group",
2181
2195
  "data-noattach": "true"
2182
- }, [u("div", null, [W(), !e.toolbar || !e.toolbar.buttons || !e.toolbar.buttons.length ? D() : ""])]);
2196
+ }, [u("div", null, [q(), !e.toolbar || !e.toolbar.buttons || !e.toolbar.buttons.length ? D() : ""])]);
2183
2197
  }
2184
2198
  return u("li", {
2185
2199
  onClick: (i) => $(i),
@@ -2191,7 +2205,7 @@ function $n(t, e, n, o, a, s) {
2191
2205
  onClick: j
2192
2206
  }, [T(e), O.value && z()])]);
2193
2207
  }
2194
- function Ln(t, e, n, o, a, s, l) {
2208
+ function Fn(t, e, n, o, a, s, l) {
2195
2209
  const {
2196
2210
  shouldShowNavigationButtons: r
2197
2211
  } = n, {
@@ -2229,7 +2243,7 @@ function Ln(t, e, n, o, a, s, l) {
2229
2243
  class: m.value,
2230
2244
  style: w.value,
2231
2245
  ref: e
2232
- }, [c.value.map((x) => $n(t, x.props, x, o, a, s)), u("li", {
2246
+ }, [c.value.map((x) => Ln(t, x.props, x, o, a, s)), u("li", {
2233
2247
  class: "nav-item"
2234
2248
  }, [u("a", {
2235
2249
  class: "nav-link tabs-text-truncate",
@@ -2282,8 +2296,8 @@ function st(t, e, n) {
2282
2296
  const { componentType: k } = j;
2283
2297
  let L = pe(k, j, $);
2284
2298
  n && n.onResolveNewComponentSchema && (L = n.onResolveNewComponentSchema(j, L));
2285
- const W = k.toLowerCase().replace(/-/g, "_");
2286
- return L && !L.id && L.type === k && (L.id = `${W}_${Math.random().toString().slice(2, 6)}`), L;
2299
+ const q = k.toLowerCase().replace(/-/g, "_");
2300
+ return L && !L.id && L.type === k && (L.id = `${q}_${Math.random().toString().slice(2, 6)}`), L;
2287
2301
  }
2288
2302
  function b(j) {
2289
2303
  }
@@ -2509,11 +2523,11 @@ class ye {
2509
2523
  const o = n && n.parent && n.parent.schema;
2510
2524
  if (!o)
2511
2525
  return;
2512
- const a = o.contents.findIndex((l) => l.id === e), s = Ve(o.contents[a]);
2526
+ const a = o.contents.findIndex((l) => l.id === e), s = Oe(o.contents[a]);
2513
2527
  o.contents.splice(a, 1), o.contents.splice(a, 0, s);
2514
2528
  }
2515
2529
  }
2516
- class Fn extends ye {
2530
+ class Hn extends ye {
2517
2531
  constructor(e, n) {
2518
2532
  super(e, n);
2519
2533
  }
@@ -2572,7 +2586,7 @@ class Fn extends ye {
2572
2586
  };
2573
2587
  }
2574
2588
  }
2575
- class Hn extends ye {
2589
+ class zn extends ye {
2576
2590
  constructor(e, n) {
2577
2591
  super(e, n);
2578
2592
  }
@@ -2612,7 +2626,7 @@ class Hn extends ye {
2612
2626
  };
2613
2627
  }
2614
2628
  }
2615
- function zn(t, e) {
2629
+ function Nn(t, e) {
2616
2630
  const n = t.schema, o = new lt(), { canMove: a, canAccept: s, canDelete: l } = o.getTemplateRule(t, e);
2617
2631
  function r(w) {
2618
2632
  return s;
@@ -2628,7 +2642,7 @@ function zn(t, e) {
2628
2642
  }
2629
2643
  function m(w) {
2630
2644
  var h;
2631
- return (((h = document.querySelector(".dgComponentFocused")) == null ? void 0 : h.id) === `${n.id}-design-item` ? new Hn(w, e) : new Fn(w, e)).getPropertyConfig(n);
2645
+ return (((h = document.querySelector(".dgComponentFocused")) == null ? void 0 : h.id) === `${n.id}-design-item` ? new zn(w, e) : new Hn(w, e)).getPropertyConfig(n);
2632
2646
  }
2633
2647
  return {
2634
2648
  canAccepts: r,
@@ -2639,11 +2653,11 @@ function zn(t, e) {
2639
2653
  };
2640
2654
  }
2641
2655
  const je = p(0);
2642
- function Nn(t, e) {
2656
+ function Vn(t, e) {
2643
2657
  const n = e.getBoundingClientRect(), o = t.getBoundingClientRect(), a = o.top >= n.top, s = o.top <= n.bottom;
2644
2658
  return a && s;
2645
2659
  }
2646
- function Vn(t) {
2660
+ function qn(t) {
2647
2661
  if (!t)
2648
2662
  return;
2649
2663
  let e;
@@ -2654,7 +2668,7 @@ function Vn(t) {
2654
2668
  return;
2655
2669
  const o = e.querySelector(".component-btn-group");
2656
2670
  if (o) {
2657
- if (!Nn(e, t)) {
2671
+ if (!Vn(e, t)) {
2658
2672
  o.style.display = "none";
2659
2673
  return;
2660
2674
  }
@@ -2748,7 +2762,7 @@ function Wn(t, e, n, o) {
2748
2762
  const I = o.schema.contents, R = I == null ? void 0 : I.findIndex((G) => G.id === M);
2749
2763
  R === -1 || R === void 0 || (I == null || I.splice(R, 1), h(M), b(), (V = o == null ? void 0 : o.setupContext) == null || V.emit("selectionChange"), je.value++);
2750
2764
  }
2751
- function W() {
2765
+ function q() {
2752
2766
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
2753
2767
  (M) => M.classList.remove("dgComponentFocused")
2754
2768
  );
@@ -2785,7 +2799,7 @@ function Wn(t, e, n, o) {
2785
2799
  });
2786
2800
  }
2787
2801
  function F(v, M, I) {
2788
- W(), $(v), D(v), g(M, I);
2802
+ q(), $(v), D(v), g(M, I);
2789
2803
  const R = v.currentTarget;
2790
2804
  y(R);
2791
2805
  }
@@ -2828,20 +2842,20 @@ function Wn(t, e, n, o) {
2828
2842
  setHorizontalScrollbarPosition: H
2829
2843
  };
2830
2844
  }
2831
- const qn = /* @__PURE__ */ new Map([
2845
+ const _n = /* @__PURE__ */ new Map([
2832
2846
  ["buttons", "items"],
2833
2847
  ["appearance", ke]
2834
2848
  ]);
2835
- function _n(t, e) {
2849
+ function Un(t, e) {
2836
2850
  return { class: e.class, style: e.style };
2837
2851
  }
2838
- const Un = /* @__PURE__ */ new Map([
2839
- ["appearance", _n]
2852
+ const Gn = /* @__PURE__ */ new Map([
2853
+ ["appearance", Un]
2840
2854
  ]);
2841
2855
  function it(t, e, n) {
2842
2856
  return e;
2843
2857
  }
2844
- const Gn = "https://json-schema.org/draft/2020-12/schema", Xn = "https://farris-design.gitee.io/response-toolbar.schema.json", Yn = "response-toolbar", Jn = "A Farris Toolbar Component", Qn = "object", Zn = {
2858
+ const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-design.gitee.io/response-toolbar.schema.json", Jn = "response-toolbar", Qn = "A Farris Toolbar Component", Zn = "object", Kn = {
2845
2859
  id: {
2846
2860
  description: "The unique identifier for a Response Toolbar",
2847
2861
  type: "string"
@@ -2871,19 +2885,19 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Xn = "https://farris-
2871
2885
  type: "array",
2872
2886
  default: []
2873
2887
  }
2874
- }, Kn = [
2888
+ }, eo = [
2875
2889
  "id",
2876
2890
  "type",
2877
2891
  "buttons"
2878
- ], eo = {
2879
- $schema: Gn,
2880
- $id: Xn,
2881
- title: Yn,
2882
- description: Jn,
2883
- type: Qn,
2884
- properties: Zn,
2885
- required: Kn
2886
- }, to = "https://json-schema.org/draft/2020-12/schema", no = "https://farris-design.gitee.io/response-toolbar-item.schema.json", oo = "response-toolbar-item", ao = "A Farris Toolbar Item Component", so = "object", lo = {
2892
+ ], to = {
2893
+ $schema: Xn,
2894
+ $id: Yn,
2895
+ title: Jn,
2896
+ description: Qn,
2897
+ type: Zn,
2898
+ properties: Kn,
2899
+ required: eo
2900
+ }, no = "https://json-schema.org/draft/2020-12/schema", oo = "https://farris-design.gitee.io/response-toolbar-item.schema.json", ao = "response-toolbar-item", so = "A Farris Toolbar Item Component", lo = "object", io = {
2887
2901
  id: {
2888
2902
  description: "The unique identifier for a Response Toolbar",
2889
2903
  type: "string"
@@ -2928,18 +2942,18 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Xn = "https://farris-
2928
2942
  type: "string",
2929
2943
  default: ""
2930
2944
  }
2931
- }, io = [
2945
+ }, ro = [
2932
2946
  "id",
2933
2947
  "type",
2934
2948
  "text"
2935
- ], ro = {
2936
- $schema: to,
2937
- $id: no,
2938
- title: oo,
2939
- description: ao,
2940
- type: so,
2941
- properties: lo,
2942
- required: io
2949
+ ], co = {
2950
+ $schema: no,
2951
+ $id: oo,
2952
+ title: ao,
2953
+ description: so,
2954
+ type: lo,
2955
+ properties: io,
2956
+ required: ro
2943
2957
  }, rt = {
2944
2958
  /** 组件自定义样式 */
2945
2959
  customClass: { type: String, default: "" },
@@ -2948,13 +2962,13 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Xn = "https://farris-
2948
2962
  Type: Array,
2949
2963
  default: []
2950
2964
  }
2951
- }, co = Object.assign({}, rt, {
2965
+ }, uo = Object.assign({}, rt, {
2952
2966
  componentId: { type: String, default: "" }
2953
2967
  });
2954
2968
  he(
2955
2969
  rt,
2956
- eo,
2957
- qn,
2970
+ to,
2971
+ _n,
2958
2972
  it
2959
2973
  );
2960
2974
  const ct = {
@@ -2969,8 +2983,8 @@ const ct = {
2969
2983
  };
2970
2984
  he(
2971
2985
  ct,
2972
- ro,
2973
- Un,
2986
+ co,
2987
+ Gn,
2974
2988
  it
2975
2989
  );
2976
2990
  class ut {
@@ -3035,19 +3049,19 @@ class ut {
3035
3049
  return this.visible ? this.width : !1;
3036
3050
  }
3037
3051
  }
3038
- class uo extends ut {
3052
+ class po extends ut {
3039
3053
  constructor(e) {
3040
3054
  super(e);
3041
3055
  }
3042
3056
  }
3043
- function po() {
3057
+ function fo() {
3044
3058
  function t(e) {
3045
3059
  const n = [];
3046
- return e.reduce((o, a) => (a.children && a.children.length > 0 ? o.push(new Se(a)) : o.push(new uo(a)), o), n), n;
3060
+ return e.reduce((o, a) => (a.children && a.children.length > 0 ? o.push(new Se(a)) : o.push(new po(a)), o), n), n;
3047
3061
  }
3048
3062
  return { buildResponseToolbarItems: t };
3049
3063
  }
3050
- const { buildResponseToolbarItems: fo } = po();
3064
+ const { buildResponseToolbarItems: vo } = fo();
3051
3065
  class Se extends ut {
3052
3066
  constructor(n) {
3053
3067
  super(n);
@@ -3064,10 +3078,10 @@ class Se extends ut {
3064
3078
  const o = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
3065
3079
  Object.keys(n).filter((a) => o.indexOf(a) > -1).forEach((a) => {
3066
3080
  this[a] = n[a];
3067
- }), n.children && n.children.length && (this.children = fo(n.children));
3081
+ }), n.children && n.children.length && (this.children = vo(n.children));
3068
3082
  }
3069
3083
  }
3070
- function vo() {
3084
+ function mo() {
3071
3085
  function t(n) {
3072
3086
  const o = {
3073
3087
  "f-icon": !0
@@ -3083,7 +3097,7 @@ function vo() {
3083
3097
  }
3084
3098
  return { iconClass: t, shouldShowIcon: e };
3085
3099
  }
3086
- function mo(t, e) {
3100
+ function ho(t, e) {
3087
3101
  const n = J("design-item-context"), o = J("toolbar-item-handler", () => {
3088
3102
  });
3089
3103
  function a() {
@@ -3292,7 +3306,7 @@ function mo(t, e) {
3292
3306
  class: t.iconClass(i)
3293
3307
  }, null), i.text]));
3294
3308
  }
3295
- function W(g, i, y) {
3309
+ function q(g, i, y) {
3296
3310
  const P = {
3297
3311
  display: g.expanded ? "block" : "none",
3298
3312
  position: "fixed",
@@ -3315,8 +3329,8 @@ function mo(t, e) {
3315
3329
  const re = le.getBoundingClientRect();
3316
3330
  if (y) {
3317
3331
  P.top = `${v - 6}px`;
3318
- const q = Math.ceil(M + I);
3319
- P.left = `${q}px`;
3332
+ const W = Math.ceil(M + I);
3333
+ P.left = `${W}px`;
3320
3334
  }
3321
3335
  F - I - M < re.width && (P.left = `${(y ? I : R) - re.width}px`);
3322
3336
  }
@@ -3328,7 +3342,7 @@ function mo(t, e) {
3328
3342
  const y = Pt(), P = i ? i.id : g.id, F = (E = (H = y == null ? void 0 : y.exposed) == null ? void 0 : H.elementRef.value) == null ? void 0 : E.querySelector("#" + P);
3329
3343
  return u("ul", {
3330
3344
  class: s(g),
3331
- style: W(g, F, i),
3345
+ style: q(g, F, i),
3332
3346
  id: g.id + "_menu"
3333
3347
  }, [L(g)]);
3334
3348
  };
@@ -3342,11 +3356,11 @@ function mo(t, e) {
3342
3356
  clearAllDropDownMenu: D
3343
3357
  };
3344
3358
  }
3345
- function ho(t, e, n) {
3359
+ function go(t, e, n) {
3346
3360
  const o = p(t.alignment), {
3347
3361
  renderDropdownMenu: a,
3348
3362
  clearAllDropDownMenu: s
3349
- } = mo(e, n), l = J("design-item-context"), r = J("toolbar-item-handler", () => {
3363
+ } = ho(e, n), l = J("design-item-context"), r = J("toolbar-item-handler", () => {
3350
3364
  });
3351
3365
  function c() {
3352
3366
  r && r();
@@ -3500,15 +3514,15 @@ function ho(t, e, n) {
3500
3514
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
3501
3515
  }, null)]), a(D)]);
3502
3516
  }
3503
- function W() {
3517
+ function q() {
3504
3518
  s();
3505
3519
  }
3506
3520
  return {
3507
3521
  renderToolbarDropdown: L,
3508
- clearAllDropDown: W
3522
+ clearAllDropDown: q
3509
3523
  };
3510
3524
  }
3511
- class go extends ye {
3525
+ class bo extends ye {
3512
3526
  constructor(e, n) {
3513
3527
  super(e, n);
3514
3528
  }
@@ -3591,7 +3605,7 @@ class go extends ye {
3591
3605
  };
3592
3606
  }
3593
3607
  }
3594
- function bo(t, e) {
3608
+ function yo(t, e) {
3595
3609
  const n = t.schema;
3596
3610
  function o(f) {
3597
3611
  return !1;
@@ -3612,7 +3626,7 @@ function bo(t, e) {
3612
3626
  return !0;
3613
3627
  }
3614
3628
  function d(f) {
3615
- return new go(f, e).getPropertyConfig(n);
3629
+ return new bo(f, e).getPropertyConfig(n);
3616
3630
  }
3617
3631
  return {
3618
3632
  canAccepts: o,
@@ -3624,7 +3638,7 @@ function bo(t, e) {
3624
3638
  getPropsConfig: d
3625
3639
  };
3626
3640
  }
3627
- const yo = {
3641
+ const Co = {
3628
3642
  id: { type: String, default: "" },
3629
3643
  componentId: { type: String, default: "" },
3630
3644
  canAdd: { type: Boolean, default: !1 },
@@ -3638,7 +3652,7 @@ const yo = {
3638
3652
  */
3639
3653
  modelValue: { type: Object }
3640
3654
  };
3641
- function Co(t, e, n) {
3655
+ function wo(t, e, n) {
3642
3656
  var z;
3643
3657
  const o = "", a = p();
3644
3658
  function s() {
@@ -3679,8 +3693,8 @@ function Co(t, e, n) {
3679
3693
  function S(j) {
3680
3694
  const { componentType: $ } = j, k = J("designer-host-service");
3681
3695
  let L = pe($, j, k);
3682
- const W = $.toLowerCase().replace(/-/g, "_");
3683
- return L && !L.id && L.type === $ && (L.id = `${W}_${Math.random().toString().slice(2, 6)}`), L;
3696
+ const q = $.toLowerCase().replace(/-/g, "_");
3697
+ return L && !L.id && L.type === $ && (L.id = `${q}_${Math.random().toString().slice(2, 6)}`), L;
3684
3698
  }
3685
3699
  function b(j) {
3686
3700
  }
@@ -3716,7 +3730,7 @@ function Co(t, e, n) {
3716
3730
  }
3717
3731
  const dt = /* @__PURE__ */ se({
3718
3732
  name: "FDesignerInnerItem",
3719
- props: yo,
3733
+ props: Co,
3720
3734
  emits: ["selectionChange", "addComponent", "removeComponent"],
3721
3735
  setup(t, e) {
3722
3736
  const n = p(t.canMove), o = p(t.canAdd), a = p(t.canDelete), s = p(!1), l = p(t.contentKey), r = p(t.childType), c = p(t.childLabel), d = p(t.modelValue), f = p(""), m = p(), w = J("canvas-dragula"), C = p(), x = J("design-item-context"), h = {
@@ -3808,22 +3822,22 @@ const dt = /* @__PURE__ */ se({
3808
3822
  });
3809
3823
  function L(i) {
3810
3824
  const y = i.target;
3811
- Vn(y);
3825
+ qn(y);
3812
3826
  }
3813
- function W() {
3827
+ function q() {
3814
3828
  var i, y;
3815
3829
  (y = (i = d.value) == null ? void 0 : i.contents) != null && y.length && m.value && m.value.addEventListener("scroll", L);
3816
3830
  }
3817
3831
  function D() {
3818
3832
  const i = m.value, y = p(i.children[1]);
3819
- return Co(y, h).value;
3833
+ return wo(y, h).value;
3820
3834
  }
3821
3835
  te(() => {
3822
3836
  if (m.value) {
3823
3837
  const i = m.value.querySelector(`[data-dragref='${d.value.id}-container']`);
3824
3838
  C.value = i && i.componentInstance ? i.componentInstance.value : D(), w && i && w.attachComponents(i, d.value), s.value = C.value.canNested !== void 0 ? C.value.canNested : s.value, o.value = C.value.canAdd !== void 0 ? C.value.canAdd : o.value, a.value = C.value.canDelete !== void 0 ? C.value.canDelete : a.value, n.value = C.value.canMove !== void 0 ? C.value.canMove : n.value, f.value = C.value.styles || "", m.value && (m.value.componentInstance = C, m.value.designItemContext = h);
3825
3839
  }
3826
- W(), je.value++;
3840
+ q(), je.value++;
3827
3841
  }), It(() => {
3828
3842
  m.value && m.value.removeEventListener("scroll", L);
3829
3843
  });
@@ -3848,7 +3862,7 @@ const dt = /* @__PURE__ */ se({
3848
3862
  }, [k(d.value), e.slots.default && e.slots.default()]);
3849
3863
  }
3850
3864
  });
3851
- class wo extends ye {
3865
+ class To extends ye {
3852
3866
  constructor(e, n) {
3853
3867
  super(e, n);
3854
3868
  }
@@ -3930,7 +3944,7 @@ class wo extends ye {
3930
3944
  };
3931
3945
  }
3932
3946
  }
3933
- class To extends ye {
3947
+ class xo extends ye {
3934
3948
  constructor(e, n) {
3935
3949
  super(e, n);
3936
3950
  }
@@ -4028,7 +4042,7 @@ class To extends ye {
4028
4042
  };
4029
4043
  }
4030
4044
  }
4031
- function xo(t, e) {
4045
+ function So(t, e) {
4032
4046
  function n(r) {
4033
4047
  return !1;
4034
4048
  }
@@ -4045,10 +4059,10 @@ function xo(t, e) {
4045
4059
  let c;
4046
4060
  switch (t.schema.type) {
4047
4061
  case "tab-toolbar-item":
4048
- c = new wo(r, e);
4062
+ c = new To(r, e);
4049
4063
  break;
4050
4064
  default:
4051
- c = new To(r, e);
4065
+ c = new xo(r, e);
4052
4066
  }
4053
4067
  return c.getPropertyConfig(t.schema);
4054
4068
  }
@@ -4060,7 +4074,7 @@ function xo(t, e) {
4060
4074
  getPropsConfig: l
4061
4075
  };
4062
4076
  }
4063
- const So = /* @__PURE__ */ se({
4077
+ const Bo = /* @__PURE__ */ se({
4064
4078
  name: "FResponseToolbarItemDesign",
4065
4079
  props: ct,
4066
4080
  emits: ["Click"],
@@ -4071,7 +4085,7 @@ const So = /* @__PURE__ */ se({
4071
4085
  text: "More"
4072
4086
  }, a = p(new Se(o));
4073
4087
  B(() => a.value.children.length > 0);
4074
- const s = p(), l = J("designer-host-service"), r = J("design-item-context"), c = xo(r, l), d = qe(s, r, c);
4088
+ const s = p(), l = J("designer-host-service"), r = J("design-item-context"), c = So(r, l), d = We(s, r, c);
4075
4089
  J("toolbar-item-handler", () => {
4076
4090
  }), te(() => {
4077
4091
  s.value.componentInstance = d;
@@ -4109,9 +4123,9 @@ const So = /* @__PURE__ */ se({
4109
4123
  class: f()
4110
4124
  }, null), t.text])]);
4111
4125
  }
4112
- }), Bo = /* @__PURE__ */ se({
4126
+ }), Mo = /* @__PURE__ */ se({
4113
4127
  name: "FResponseToolbarDesign",
4114
- props: co,
4128
+ props: uo,
4115
4129
  emits: ["Click"],
4116
4130
  setup(t, e) {
4117
4131
  const n = p(t.items);
@@ -4119,9 +4133,9 @@ const So = /* @__PURE__ */ se({
4119
4133
  const a = p(), s = p(), l = p(t.alignment), r = {
4120
4134
  id: "__more_buttons__",
4121
4135
  text: "More"
4122
- }, c = p(new Se(r)), d = vo();
4136
+ }, c = p(new Se(r)), d = mo();
4123
4137
  B(() => c.value.children.length > 0);
4124
- const f = p(), m = J("designer-host-service"), w = J("design-item-context"), C = bo(w, m), x = qe(f, w, C), h = J("toolbar-item-handler", () => {
4138
+ const f = p(), m = J("designer-host-service"), w = J("design-item-context"), C = yo(w, m), x = We(f, w, C), h = J("toolbar-item-handler", () => {
4125
4139
  });
4126
4140
  te(() => {
4127
4141
  f.value.componentInstance = x;
@@ -4141,7 +4155,7 @@ const So = /* @__PURE__ */ se({
4141
4155
  })), {
4142
4156
  renderToolbarDropdown: O,
4143
4157
  clearAllDropDown: z
4144
- } = ho(t, d, x);
4158
+ } = go(t, d, x);
4145
4159
  function j() {
4146
4160
  n.value.filter((i) => i.children && i.children.length > 0).forEach((i) => {
4147
4161
  i.expanded = !1;
@@ -4177,7 +4191,7 @@ const So = /* @__PURE__ */ se({
4177
4191
  const M = new Se(v), I = n.value.reduce((R, V) => ($.has(V.id) && M.children.push(V), V.visible = !$.has(V.id), R.push(V), R), []);
4178
4192
  c.value = M, n.value = I;
4179
4193
  }
4180
- const W = new ResizeObserver((i) => {
4194
+ const q = new ResizeObserver((i) => {
4181
4195
  if (i.length) {
4182
4196
  const P = i[0].contentRect.width, H = s.value.getBoundingClientRect().width;
4183
4197
  (P < H || k.length) && L(P);
@@ -4185,9 +4199,9 @@ const So = /* @__PURE__ */ se({
4185
4199
  });
4186
4200
  te(() => {
4187
4201
  const i = a.value;
4188
- W.observe(i), document.body.addEventListener("click", j);
4202
+ q.observe(i), document.body.addEventListener("click", j);
4189
4203
  }), be(() => {
4190
- W.disconnect(), document.body.removeEventListener("click", j);
4204
+ q.disconnect(), document.body.removeEventListener("click", j);
4191
4205
  }), Z(() => t.items, () => {
4192
4206
  n.value = t.items;
4193
4207
  }, {
@@ -4230,7 +4244,7 @@ const So = /* @__PURE__ */ se({
4230
4244
  }, {
4231
4245
  default: () => {
4232
4246
  var P;
4233
- return [u(So, {
4247
+ return [u(Bo, {
4234
4248
  id: i.id,
4235
4249
  disabled: i.disabled,
4236
4250
  text: i.text,
@@ -4243,7 +4257,7 @@ const So = /* @__PURE__ */ se({
4243
4257
  }))])])]);
4244
4258
  }
4245
4259
  });
4246
- function Mo(t, e, n, o, a) {
4260
+ function ko(t, e, n, o, a) {
4247
4261
  const {
4248
4262
  toolbarItems: s,
4249
4263
  toolbarSchema: l,
@@ -4274,18 +4288,18 @@ function Mo(t, e, n, o, a) {
4274
4288
  componentId: a,
4275
4289
  onAddComponent: d
4276
4290
  }, {
4277
- default: () => [u(Bo, {
4291
+ default: () => [u(Mo, {
4278
4292
  items: s.value,
4279
4293
  componentId: a
4280
4294
  }, null)]
4281
4295
  })])]);
4282
4296
  }
4283
- const ko = /* @__PURE__ */ se({
4297
+ const Po = /* @__PURE__ */ se({
4284
4298
  name: "FTabsDesign",
4285
4299
  props: Ye,
4286
4300
  emits: ["tabChange", "tabRemove"],
4287
4301
  setup(t, e) {
4288
- const n = p(), o = J("designer-host-service"), a = J("design-item-context"), s = zn(a, o), l = st(n, a, s), r = p(t.tabType), c = ve(), d = ve(), f = Wn(t, e, c, a), {
4302
+ const n = p(), o = J("designer-host-service"), a = J("design-item-context"), s = Nn(a, o), l = st(n, a, s), r = p(t.tabType), c = ve(), d = ve(), f = Wn(t, e, c, a), {
4289
4303
  activeId: m,
4290
4304
  changeTitleStyle: w,
4291
4305
  tabPages: C,
@@ -4299,12 +4313,12 @@ const ko = /* @__PURE__ */ se({
4299
4313
  } = f, j = et(t, d, f), $ = Ze(t, c, j, f), {
4300
4314
  previousButtonClass: k,
4301
4315
  nextButtonClass: L,
4302
- nextButtonGroupClass: W,
4316
+ nextButtonGroupClass: q,
4303
4317
  scrollTab: D,
4304
4318
  updateNavigationLayout: g
4305
4319
  } = $, i = Ke(t, f), {
4306
4320
  hideDropDown: y
4307
- } = i, P = Ln(t, c, $, j, f, l), F = P, H = Je(t, c, $, j, f), E = /* @__PURE__ */ new Map([["default", P], ["one-page", F], ["pills", H]]);
4321
+ } = i, P = Fn(t, c, $, j, f, l), F = P, H = Je(t, c, $, j, f), E = /* @__PURE__ */ new Map([["default", P], ["one-page", F], ["pills", H]]);
4308
4322
  B(() => {
4309
4323
  const _ = C.value.find((Q) => Q.props.id === m.value);
4310
4324
  return _ == null ? void 0 : _.slots;
@@ -4368,7 +4382,7 @@ const ko = /* @__PURE__ */ se({
4368
4382
  }
4369
4383
  }, null);
4370
4384
  }
4371
- function q() {
4385
+ function W() {
4372
4386
  return u("button", {
4373
4387
  title: "right-arrow-button",
4374
4388
  type: "button",
@@ -4382,7 +4396,7 @@ const ko = /* @__PURE__ */ se({
4382
4396
  renderMorePagesButtton: X
4383
4397
  } = Qe(t, i, $, f);
4384
4398
  function ne() {
4385
- return !!b.value.length && Mo(f, l, s, a, t.componentId);
4399
+ return !!b.value.length && ko(f, l, s, a, t.componentId);
4386
4400
  }
4387
4401
  const ce = E.get(t.tabType) || E.get("default");
4388
4402
  function Pe() {
@@ -4395,8 +4409,8 @@ const ko = /* @__PURE__ */ se({
4395
4409
  class: "farris-tabs-title scroll-tabs",
4396
4410
  style: K.value
4397
4411
  }, [re(), ce && ce(), u("div", {
4398
- class: W.value
4399
- }, [q(), X()])]), ne(), u("div", {
4412
+ class: q.value
4413
+ }, [W(), X()])]), ne(), u("div", {
4400
4414
  class: "farris-tabs-header-post"
4401
4415
  }, [(fe = (oe = e.slots).headerSuffix) == null ? void 0 : fe.call(oe)])]);
4402
4416
  }
@@ -4413,29 +4427,28 @@ const ko = /* @__PURE__ */ se({
4413
4427
  }, [Pe(), Ce()]);
4414
4428
  }
4415
4429
  });
4416
- function Po(t, e, n) {
4430
+ function Io(t, e, n) {
4417
4431
  return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
4418
4432
  }
4419
- function Io(t, e) {
4433
+ function Eo(t, e) {
4420
4434
  return {
4421
4435
  buttons: e.buttons,
4422
4436
  buttonPosition: e.position
4423
4437
  };
4424
4438
  }
4425
- const Eo = /* @__PURE__ */ new Map([
4439
+ const Do = /* @__PURE__ */ new Map([
4426
4440
  ["appearance", ke],
4427
4441
  ["expanded", "expandStatus"],
4428
- ["enableAccordion", Po],
4429
- ["toolbar", Io]
4442
+ ["enableAccordion", Io],
4443
+ ["toolbar", Eo]
4430
4444
  ]);
4431
- function Do(t, e, n) {
4445
+ function Ro(t, e, n) {
4432
4446
  const o = Math.random().toString().slice(2, 6), a = n.parentComponentInstance;
4433
4447
  Object.assign(e, {
4434
4448
  id: `section-${o}`,
4435
4449
  appearance: {
4436
4450
  class: "f-section-in-mainsubcard"
4437
4451
  },
4438
- enableAccordion: !1,
4439
4452
  mainTitle: n.mainTitle || e.mainTitle || "标题"
4440
4453
  });
4441
4454
  const s = t.getSchemaByType("content-container");
@@ -4456,10 +4469,10 @@ function Do(t, e, n) {
4456
4469
  const r = a.elementRef, c = window.getComputedStyle(r);
4457
4470
  return c && c.display === "flex" && (s.appearance.class += " d-block"), s;
4458
4471
  }
4459
- function Ro(t, e, n) {
4460
- return n.parentComponentInstance ? Do(t, e, n) : e;
4472
+ function jo(t, e, n) {
4473
+ return n.parentComponentInstance ? Ro(t, e, n) : e;
4461
4474
  }
4462
- const jo = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-design.gitee.io/section.schema.json", Ao = "section", $o = "A Farris Container Component", Lo = "object", Fo = {
4475
+ const Oo = "https://json-schema.org/draft/2020-12/schema", Ao = "https://farris-design.gitee.io/section.schema.json", $o = "section", Lo = "A Farris Container Component", Fo = "object", Ho = {
4463
4476
  id: {
4464
4477
  description: "The unique identifier for a Section",
4465
4478
  type: "string"
@@ -4584,18 +4597,18 @@ const jo = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
4584
4597
  },
4585
4598
  default: null
4586
4599
  }
4587
- }, Ho = [
4600
+ }, zo = [
4588
4601
  "id",
4589
4602
  "type",
4590
4603
  "contents"
4591
- ], zo = {
4592
- $schema: jo,
4593
- $id: Oo,
4594
- title: Ao,
4595
- description: $o,
4596
- type: Lo,
4597
- properties: Fo,
4598
- required: Ho
4604
+ ], No = {
4605
+ $schema: Oo,
4606
+ $id: Ao,
4607
+ title: $o,
4608
+ description: Lo,
4609
+ type: Fo,
4610
+ properties: Ho,
4611
+ required: zo
4599
4612
  }, pt = {
4600
4613
  /** 设置内容区域样式 */
4601
4614
  contentClass: { type: String, default: "" },
@@ -4642,8 +4655,8 @@ const jo = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
4642
4655
  // toolbarButtons: { type: Array<object>, default: [] },
4643
4656
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
4644
4657
  };
4645
- he(pt, zo, Eo, Ro);
4646
- function No(t, e, n) {
4658
+ he(pt, No, Do, jo);
4659
+ function Vo(t, e, n) {
4647
4660
  let o;
4648
4661
  function a(c = 1) {
4649
4662
  const d = [
@@ -4684,18 +4697,18 @@ function ft(t, e) {
4684
4697
  function l(r) {
4685
4698
  e.emit("Click", r);
4686
4699
  }
4687
- return () => s.value && u(We, {
4700
+ return () => s.value && u(qe, {
4688
4701
  customClass: a.value,
4689
4702
  items: n.value,
4690
4703
  onClick: l,
4691
4704
  alignment: o.value
4692
4705
  }, null);
4693
4706
  }
4694
- function Vo(t, e, n, o, a, s) {
4707
+ function qo(t, e, n, o, a, s) {
4695
4708
  p(t.subTitle);
4696
4709
  const l = B(() => t.buttonPosition), r = ft(t, e), {
4697
4710
  onClickMaxMinIcon: c
4698
- } = No(o, a, s), d = B(() => !!t.subTitle), f = B(() => t.enableMaximize), m = B(() => t.enableAccordion !== ""), w = B(() => {
4711
+ } = Vo(o, a, s), d = B(() => !!t.subTitle), f = B(() => t.enableMaximize), m = B(() => t.enableAccordion !== ""), w = B(() => {
4699
4712
  const O = {
4700
4713
  "f-section-header": !0
4701
4714
  };
@@ -4757,7 +4770,7 @@ function Vo(t, e, n, o, a, s) {
4757
4770
  return () => t.showHeader && (e.slots.header ? h() : T());
4758
4771
  }
4759
4772
  const Wo = ["moz", "ms", "webkit"];
4760
- function qo() {
4773
+ function _o() {
4761
4774
  let t = 0;
4762
4775
  return (e) => {
4763
4776
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
@@ -4766,24 +4779,24 @@ function qo() {
4766
4779
  return t = n + o, a;
4767
4780
  };
4768
4781
  }
4769
- function _o() {
4782
+ function Uo() {
4770
4783
  if (typeof window > "u")
4771
4784
  return () => 0;
4772
4785
  if (window.requestAnimationFrame)
4773
4786
  return window.requestAnimationFrame.bind(window);
4774
4787
  const t = Wo.filter((e) => `${e}RequestAnimationFrame` in window)[0];
4775
- return t ? window[`${t}RequestAnimationFrame`] : qo();
4788
+ return t ? window[`${t}RequestAnimationFrame`] : _o();
4776
4789
  }
4777
- _o();
4790
+ Uo();
4778
4791
  function Ee(t, e) {
4779
4792
  return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, a) => (a && (o[a] = !0), o), t), t;
4780
4793
  }
4781
- const Uo = /* @__PURE__ */ se({
4794
+ const Go = /* @__PURE__ */ se({
4782
4795
  name: "FSection",
4783
4796
  props: pt,
4784
4797
  emits: [],
4785
4798
  setup(t, e) {
4786
- const n = p(), o = p(), a = p(t.customClass), s = B(() => t.enableAccordion), l = p(t.expandStatus), r = B(() => t.buttonPosition), c = p(!1), d = Vo(t, e, l, n, o, c), f = ft(t, e), m = B(() => {
4799
+ const n = p(), o = p(), a = p(t.customClass), s = B(() => t.enableAccordion), l = p(t.expandStatus), r = B(() => t.buttonPosition), c = p(!1), d = qo(t, e, l, n, o, c), f = ft(t, e), m = B(() => {
4787
4800
  const S = {
4788
4801
  "f-section": !0,
4789
4802
  "f-section-accordion": s.value === "default",
@@ -4819,7 +4832,7 @@ const Uo = /* @__PURE__ */ se({
4819
4832
  }, [d(), x(), h()]);
4820
4833
  }
4821
4834
  });
4822
- function Go() {
4835
+ function Xo() {
4823
4836
  function t(e, n) {
4824
4837
  var l;
4825
4838
  if (!e)
@@ -4834,25 +4847,25 @@ function Go() {
4834
4847
  basalDragulaRuleForContainer: t
4835
4848
  };
4836
4849
  }
4837
- function Xo(t, e) {
4850
+ function Yo(t, e) {
4838
4851
  const n = new lt(), { canAccept: o } = n.getTemplateRule(t, e);
4839
4852
  function a(s) {
4840
- if (!Go().basalDragulaRuleForContainer(s, e))
4853
+ if (!Xo().basalDragulaRuleForContainer(s, e))
4841
4854
  return !1;
4842
4855
  const { schema: r } = t;
4843
4856
  return r.contents && r.contents.length > 0 ? !1 : o;
4844
4857
  }
4845
4858
  return { canAccepts: a };
4846
4859
  }
4847
- function Yo(t) {
4848
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ze(t);
4860
+ function Jo(t) {
4861
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Ne(t);
4849
4862
  }
4850
- const Jo = /* @__PURE__ */ se({
4863
+ const Qo = /* @__PURE__ */ se({
4851
4864
  name: "FTabPageDesign",
4852
- props: Le,
4865
+ props: Fe,
4853
4866
  emits: [],
4854
4867
  setup(t, e) {
4855
- const n = p(), o = J("design-item-context"), a = J("designer-host-service"), s = Xo(o, a), l = st(n, o, s);
4868
+ const n = p(), o = J("design-item-context"), a = J("designer-host-service"), s = Yo(o, a), l = st(n, o, s);
4856
4869
  l.value.canNested = !1, l.value.canDelete = !1, l.value.canMove = !1, e.expose(l.value);
4857
4870
  const r = J("tabs"), c = p(!0), d = {
4858
4871
  slots: e.slots,
@@ -4879,10 +4892,10 @@ const Jo = /* @__PURE__ */ se({
4879
4892
  function C() {
4880
4893
  var O, z;
4881
4894
  const T = (z = (O = e.slots).default) == null ? void 0 : z.call(O);
4882
- return u(Uo, {
4895
+ return u(Go, {
4883
4896
  "main-title": t.title,
4884
4897
  class: "farris-tab-page"
4885
- }, Yo(T) ? T : {
4898
+ }, Jo(T) ? T : {
4886
4899
  default: () => [T]
4887
4900
  });
4888
4901
  }
@@ -4903,7 +4916,7 @@ const Jo = /* @__PURE__ */ se({
4903
4916
  const b = (/* @__PURE__ */ new Map([["default", h], ["one-page", C]])).get(f.value) || h;
4904
4917
  return () => c.value ? b() : null;
4905
4918
  }
4906
- }), Qo = "https://json-schema.org/draft/2020-12/schema", Zo = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", Ko = "tab-toolbar-item", ea = "A Farris Toolbar Item Component", ta = "object", na = {
4919
+ }), Zo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", ea = "tab-toolbar-item", ta = "A Farris Toolbar Item Component", na = "object", oa = {
4907
4920
  id: {
4908
4921
  description: "The unique identifier for a Response Toolbar",
4909
4922
  type: "string"
@@ -4941,40 +4954,40 @@ const Jo = /* @__PURE__ */ se({
4941
4954
  type: "string",
4942
4955
  default: ""
4943
4956
  }
4944
- }, oa = [
4957
+ }, aa = [
4945
4958
  "id",
4946
4959
  "type",
4947
4960
  "text"
4948
- ], aa = {
4949
- $schema: Qo,
4950
- $id: Zo,
4951
- title: Ko,
4952
- description: ea,
4953
- type: ta,
4954
- properties: na,
4955
- required: oa
4956
- }, sa = {
4961
+ ], sa = {
4962
+ $schema: Zo,
4963
+ $id: Ko,
4964
+ title: ea,
4965
+ description: ta,
4966
+ type: na,
4967
+ properties: oa,
4968
+ required: aa
4969
+ }, la = {
4957
4970
  text: { type: String, default: "" },
4958
4971
  icon: { type: String, default: "" }
4959
- }, la = he(sa, aa, Ae, Vt);
4972
+ }, ia = he(la, sa, $e, qt);
4960
4973
  me.install = (t) => {
4961
4974
  t.component(me.name, me), t.component(Re.name, Re);
4962
4975
  };
4963
4976
  me.register = (t, e, n, o) => {
4964
- t.tabs = me, t["tab-page"] = Re, e.tabs = Jt, e["tab-page"] = tt, o.tabs = { eventHandlerResolver: Zt };
4977
+ t.tabs = me, t["tab-page"] = Re, e.tabs = Qt, e["tab-page"] = tt, o.tabs = { eventHandlerResolver: Kt };
4965
4978
  };
4966
4979
  me.registerDesigner = (t, e, n) => {
4967
- t.tabs = ko, t["tab-page"] = Jo, e.tabs = Qt, e["tab-page"] = tt, e["tab-toolbar-item"] = la;
4980
+ t.tabs = Po, t["tab-page"] = Qo, e.tabs = Zt, e["tab-page"] = tt, e["tab-toolbar-item"] = ia;
4968
4981
  };
4969
4982
  export {
4970
4983
  Re as FTabPage,
4971
4984
  me as FTabs,
4972
4985
  me as default,
4973
- Zt as eventHandlerResolver,
4974
- Le as tabPageProps,
4986
+ Kt as eventHandlerResolver,
4987
+ Fe as tabPageProps,
4975
4988
  tt as tabPagePropsResolver,
4976
4989
  Ye as tabsDesignProps,
4977
- Qt as tabsDesignPropsResolver,
4978
- $e as tabsProps,
4979
- Jt as tabsPropsResolver
4990
+ Zt as tabsDesignPropsResolver,
4991
+ Le as tabsProps,
4992
+ Qt as tabsPropsResolver
4980
4993
  };