@farris/ui-vue 1.1.6 → 1.1.8

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 (143) hide show
  1. package/components/accordion/package.json +1 -1
  2. package/components/avatar/package.json +1 -1
  3. package/components/border-editor/index.esm.js +1362 -1361
  4. package/components/border-editor/index.umd.cjs +6 -6
  5. package/components/border-editor/package.json +1 -1
  6. package/components/button/package.json +1 -1
  7. package/components/button-edit/package.json +1 -1
  8. package/components/button-group/package.json +1 -1
  9. package/components/calculator/package.json +1 -1
  10. package/components/calendar/package.json +1 -1
  11. package/components/capsule/package.json +1 -1
  12. package/components/checkbox/package.json +1 -1
  13. package/components/color-picker/package.json +1 -1
  14. package/components/combo-list/index.esm.js +22 -21
  15. package/components/combo-list/index.umd.cjs +1 -1
  16. package/components/combo-list/package.json +1 -1
  17. package/components/combo-tree/index.esm.js +1370 -1369
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/combo-tree/package.json +1 -1
  20. package/components/common/package.json +1 -1
  21. package/components/component/package.json +1 -1
  22. package/components/condition/index.esm.js +180 -179
  23. package/components/condition/index.umd.cjs +1 -1
  24. package/components/condition/package.json +1 -1
  25. package/components/content-container/package.json +1 -1
  26. package/components/data-grid/index.esm.js +22 -21
  27. package/components/data-grid/index.umd.cjs +1 -1
  28. package/components/data-grid/package.json +1 -1
  29. package/components/data-view/index.esm.js +22 -21
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/data-view/package.json +1 -1
  32. package/components/date-picker/package.json +1 -1
  33. package/components/designer-canvas/index.esm.js +52071 -0
  34. package/components/designer-canvas/index.umd.cjs +20 -0
  35. package/components/designer-canvas/package.json +8 -0
  36. package/components/designer-canvas/style.css +1 -0
  37. package/components/designer-outline/index.esm.js +22 -21
  38. package/components/designer-outline/index.umd.cjs +1 -1
  39. package/components/designer-outline/package.json +1 -1
  40. package/components/designer-toolbox/package.json +1 -1
  41. package/components/discussion-editor/package.json +1 -1
  42. package/components/discussion-list/package.json +1 -1
  43. package/components/dropdown/package.json +1 -1
  44. package/components/dynamic-form/index.esm.js +180 -179
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-form/package.json +1 -1
  47. package/components/dynamic-resolver/package.json +1 -1
  48. package/components/dynamic-view/index.esm.js +3661 -3660
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/dynamic-view/package.json +1 -1
  51. package/components/enum-editor/package.json +1 -1
  52. package/components/events-editor/package.json +1 -1
  53. package/components/expression-editor/package.json +1 -1
  54. package/components/external-container/index.esm.js +1365 -1364
  55. package/components/external-container/index.umd.cjs +7 -7
  56. package/components/external-container/package.json +1 -1
  57. package/components/field-selector/index.esm.js +182 -181
  58. package/components/field-selector/index.umd.cjs +1 -1
  59. package/components/field-selector/package.json +1 -1
  60. package/components/filter-bar/index.esm.js +182 -181
  61. package/components/filter-bar/index.umd.cjs +1 -1
  62. package/components/filter-bar/package.json +1 -1
  63. package/components/flow-canvas/index.esm.js +22 -21
  64. package/components/flow-canvas/index.umd.cjs +7 -7
  65. package/components/flow-canvas/package.json +1 -1
  66. package/components/image-cropper/package.json +1 -1
  67. package/components/input-group/package.json +1 -1
  68. package/components/layout/package.json +1 -1
  69. package/components/list-nav/package.json +1 -1
  70. package/components/list-view/index.esm.js +183 -182
  71. package/components/list-view/index.umd.cjs +1 -1
  72. package/components/list-view/package.json +1 -1
  73. package/components/loading/package.json +1 -1
  74. package/components/locale/package.json +1 -1
  75. package/components/lookup/index.esm.js +185 -184
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/lookup/package.json +1 -1
  78. package/components/mapping-editor/index.esm.js +181 -180
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/mapping-editor/package.json +1 -1
  81. package/components/message-box/package.json +1 -1
  82. package/components/modal/package.json +1 -1
  83. package/components/nav/package.json +1 -1
  84. package/components/notify/package.json +1 -1
  85. package/components/order/index.esm.js +182 -181
  86. package/components/order/index.umd.cjs +1 -1
  87. package/components/order/package.json +1 -1
  88. package/components/page-footer/package.json +1 -1
  89. package/components/page-header/package.json +1 -1
  90. package/components/pagination/package.json +1 -1
  91. package/components/plugin/package.json +1 -1
  92. package/components/popover/package.json +1 -1
  93. package/components/progress/package.json +1 -1
  94. package/components/property-editor/index.esm.js +2810 -2810
  95. package/components/property-editor/index.umd.cjs +7 -7
  96. package/components/property-editor/package.json +1 -1
  97. package/components/property-panel/index.esm.js +180 -179
  98. package/components/property-panel/index.umd.cjs +1 -1
  99. package/components/property-panel/package.json +1 -1
  100. package/components/radio-button/package.json +1 -1
  101. package/components/radio-group/package.json +1 -1
  102. package/components/rate/package.json +1 -1
  103. package/components/response-layout/package.json +1 -1
  104. package/components/response-layout-editor/index.esm.js +182 -181
  105. package/components/response-layout-editor/index.umd.cjs +1 -1
  106. package/components/response-layout-editor/package.json +1 -1
  107. package/components/response-toolbar/package.json +1 -1
  108. package/components/schema-selector/index.esm.js +22 -21
  109. package/components/schema-selector/index.umd.cjs +1 -1
  110. package/components/schema-selector/package.json +1 -1
  111. package/components/search-box/package.json +1 -1
  112. package/components/section/package.json +1 -1
  113. package/components/smoke-detector/package.json +1 -1
  114. package/components/spacing-editor/index.esm.js +22 -21
  115. package/components/spacing-editor/index.umd.cjs +1 -1
  116. package/components/spacing-editor/package.json +1 -1
  117. package/components/splitter/package.json +1 -1
  118. package/components/step/package.json +1 -1
  119. package/components/switch/package.json +1 -1
  120. package/components/tabs/index.esm.js +939 -938
  121. package/components/tabs/index.umd.cjs +1 -1
  122. package/components/tabs/package.json +1 -1
  123. package/components/tags/package.json +1 -1
  124. package/components/text/package.json +1 -1
  125. package/components/time-picker/package.json +1 -1
  126. package/components/tooltip/package.json +1 -1
  127. package/components/transfer/index.esm.js +183 -182
  128. package/components/transfer/index.umd.cjs +1 -1
  129. package/components/transfer/package.json +1 -1
  130. package/components/tree-grid/index.esm.js +22 -21
  131. package/components/tree-grid/index.umd.cjs +7 -7
  132. package/components/tree-grid/package.json +1 -1
  133. package/components/tree-view/index.esm.js +186 -185
  134. package/components/tree-view/index.umd.cjs +1 -1
  135. package/components/tree-view/package.json +1 -1
  136. package/components/uploader/package.json +1 -1
  137. package/components/verify-detail/package.json +1 -1
  138. package/components/video/package.json +1 -1
  139. package/components/weather/package.json +1 -1
  140. package/farris.all.esm.js +26 -26
  141. package/farris.all.umd.cjs +2 -2
  142. package/package.json +1 -1
  143. package/types/property-editor/src/composition/use-initialized-value.d.ts +1 -1
@@ -36281,7 +36281,7 @@ const q$ = /* @__PURE__ */ Z({
36281
36281
  function U$(e, t, n) {
36282
36282
  return t;
36283
36283
  }
36284
- const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-design.gitee.io/step.schema.json", Q$ = "step", Z$ = "A Farris Component", J$ = "object", e8 = {
36284
+ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-design.gitee.io/step.schema.json", Q$ = "step", Z$ = "A Farris Component", J$ = "object", eP = {
36285
36285
  id: {
36286
36286
  description: "The unique identifier for step",
36287
36287
  type: "string"
@@ -36343,18 +36343,18 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36343
36343
  type: "boolean",
36344
36344
  default: !0
36345
36345
  }
36346
- }, t8 = [
36346
+ }, tP = [
36347
36347
  "id",
36348
36348
  "type"
36349
- ], n8 = {
36349
+ ], nP = {
36350
36350
  $schema: K$,
36351
36351
  $id: X$,
36352
36352
  title: Q$,
36353
36353
  description: Z$,
36354
36354
  type: J$,
36355
- properties: e8,
36356
- required: t8
36357
- }, a8 = "step", o8 = "A Farris Component", i8 = "object", r8 = {
36355
+ properties: eP,
36356
+ required: tP
36357
+ }, aP = "step", oP = "A Farris Component", iP = "object", rP = {
36358
36358
  basic: {
36359
36359
  description: "Basic Infomation",
36360
36360
  title: "基本信息",
@@ -36376,11 +36376,11 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36376
36376
  }
36377
36377
  }
36378
36378
  }
36379
- }, s8 = {
36380
- title: a8,
36381
- description: o8,
36382
- type: i8,
36383
- categories: r8
36379
+ }, sP = {
36380
+ title: aP,
36381
+ description: oP,
36382
+ type: iP,
36383
+ categories: rP
36384
36384
  }, ys = {
36385
36385
  /** 步骤条方向 */
36386
36386
  direction: { type: String, default: "horizontal" },
@@ -36411,7 +36411,7 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36411
36411
  /** 步骤条点击后事件 */
36412
36412
  onClick: { type: Function, default: () => {
36413
36413
  } }
36414
- }, pc = ye(ys, n8, Y$, U$, s8), Wo = /* @__PURE__ */ Z({
36414
+ }, pc = ye(ys, nP, Y$, U$, sP), Wo = /* @__PURE__ */ Z({
36415
36415
  name: "FStep",
36416
36416
  props: ys,
36417
36417
  emits: ["click"],
@@ -36514,7 +36514,7 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36514
36514
  style: u.value
36515
36515
  }, [S()])]);
36516
36516
  }
36517
- }), l8 = /* @__PURE__ */ Z({
36517
+ }), lP = /* @__PURE__ */ Z({
36518
36518
  name: "FStepDesign",
36519
36519
  props: ys,
36520
36520
  emits: [],
@@ -36618,7 +36618,7 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36618
36618
  style: h.value
36619
36619
  }, [F()])]);
36620
36620
  }
36621
- }), c8 = {
36621
+ }), cP = {
36622
36622
  install(e) {
36623
36623
  e.component(Wo.name, Wo);
36624
36624
  },
@@ -36626,9 +36626,9 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36626
36626
  e.step = Wo, t.step = pc;
36627
36627
  },
36628
36628
  registerDesigner(e, t, n) {
36629
- e.step = l8, t.step = pc;
36629
+ e.step = lP, t.step = pc;
36630
36630
  }
36631
- }, u8 = /* @__PURE__ */ Z({
36631
+ }, uP = /* @__PURE__ */ Z({
36632
36632
  name: "FSwitchDesign",
36633
36633
  props: fs,
36634
36634
  emits: ["update:modelValue"],
@@ -36689,7 +36689,7 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36689
36689
  style: v.value
36690
36690
  }, [t.slots.default && t.slots.default()])]);
36691
36691
  }
36692
- }), d8 = {
36692
+ }), dP = {
36693
36693
  install(e) {
36694
36694
  e.component(ga.name, ga);
36695
36695
  },
@@ -36697,10 +36697,10 @@ const K$ = "https://json-schema.org/draft/2020-12/schema", X$ = "https://farris-
36697
36697
  e.switch = ga, t.switch = sc;
36698
36698
  },
36699
36699
  registerDesigner(e, t, n) {
36700
- e.switch = u8, t.switch = sc;
36700
+ e.switch = uP, t.switch = sc;
36701
36701
  }
36702
36702
  };
36703
- function f8(e, t, n, a, o) {
36703
+ function fP(e, t, n, a, o) {
36704
36704
  const {
36705
36705
  activeId: i,
36706
36706
  removeTab: s,
@@ -36782,7 +36782,7 @@ function f8(e, t, n, a, o) {
36782
36782
  onClick: C
36783
36783
  }, [g(t), x.value && b()])]);
36784
36784
  }
36785
- function p8(e, t, n, a, o, i, s) {
36785
+ function pP(e, t, n, a, o, i, s) {
36786
36786
  const {
36787
36787
  shouldShowNavigationButtons: l
36788
36788
  } = n, {
@@ -36835,7 +36835,7 @@ function p8(e, t, n, a, o, i, s) {
36835
36835
  class: f.value,
36836
36836
  style: d.value,
36837
36837
  ref: t
36838
- }, [p.value.map((v) => f8(e, v.props, v, a, o)), r("li", {
36838
+ }, [p.value.map((v) => fP(e, v.props, v, a, o)), r("li", {
36839
36839
  class: "nav-item"
36840
36840
  }, [r("a", {
36841
36841
  class: "nav-link tabs-text-truncate",
@@ -36846,7 +36846,7 @@ function p8(e, t, n, a, o, i, s) {
36846
36846
  style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
36847
36847
  }, null)])])])]);
36848
36848
  }
36849
- function v8(e, t) {
36849
+ function vP(e, t) {
36850
36850
  const n = Cn();
36851
36851
  let a = !1, o, i = !1;
36852
36852
  function s(f) {
@@ -36890,7 +36890,7 @@ function v8(e, t) {
36890
36890
  resolveComponentContext: u
36891
36891
  };
36892
36892
  }
36893
- function m8(e, t, n, a) {
36893
+ function mP(e, t, n, a) {
36894
36894
  const o = y([]), i = y(e.activeId || ""), s = y(!0), l = y(), p = y([]);
36895
36895
  function c(D) {
36896
36896
  const P = D.value.findIndex((M) => M.props.show !== !1 && !i.value && !M.props.disabled);
@@ -37000,7 +37000,7 @@ function m8(e, t, n, a) {
37000
37000
  toolbarSchema: l
37001
37001
  };
37002
37002
  }
37003
- function h8(e, t, n, a) {
37003
+ function hP(e, t, n, a) {
37004
37004
  const {
37005
37005
  toolbarItems: o,
37006
37006
  toolbarSchema: i
@@ -37029,12 +37029,12 @@ function h8(e, t, n, a) {
37029
37029
  }, null)]
37030
37030
  })])]);
37031
37031
  }
37032
- const g8 = /* @__PURE__ */ Z({
37032
+ const gP = /* @__PURE__ */ Z({
37033
37033
  name: "FTabsDesign",
37034
37034
  props: ar,
37035
37035
  emits: ["tabChange", "tabRemove"],
37036
37036
  setup(e, t) {
37037
- const n = y(), a = he("design-item-context"), o = v8(a.schema, a.parent), i = Se(n, a, o), s = y(e.tabType), l = Pn(), p = Pn(), c = m8(e, t, l, a), {
37037
+ const n = y(), a = he("design-item-context"), o = vP(a.schema, a.parent), i = Se(n, a, o), s = y(e.tabType), l = Pn(), p = Pn(), c = mP(e, t, l, a), {
37038
37038
  activeId: u,
37039
37039
  changeTitleStyle: f,
37040
37040
  tabPages: d,
@@ -37050,7 +37050,7 @@ const g8 = /* @__PURE__ */ Z({
37050
37050
  updateNavigationLayout: B
37051
37051
  } = b, F = $u(e, c), {
37052
37052
  hideDropDown: T
37053
- } = F, A = p8(e, l, b, x, c, i, o), I = A, E = Au(e, l, b, x, c), D = /* @__PURE__ */ new Map([["default", A], ["one-page", I], ["pills", E]]);
37053
+ } = F, A = pP(e, l, b, x, c, i, o), I = A, E = Au(e, l, b, x, c), D = /* @__PURE__ */ new Map([["default", A], ["one-page", I], ["pills", E]]);
37054
37054
  $(() => {
37055
37055
  const z = d.value.find((Q) => Q.props.id === u.value);
37056
37056
  return z == null ? void 0 : z.slots;
@@ -37126,7 +37126,7 @@ const g8 = /* @__PURE__ */ Z({
37126
37126
  renderMorePagesButtton: L
37127
37127
  } = Iu(e, F, b, c);
37128
37128
  function Y() {
37129
- return !!g.value.length && h8(c, i, o, a);
37129
+ return !!g.value.length && hP(c, i, o, a);
37130
37130
  }
37131
37131
  const X = D.get(e.tabType) || D.get("default");
37132
37132
  function q() {
@@ -37157,7 +37157,7 @@ const g8 = /* @__PURE__ */ Z({
37157
37157
  }, [q(), G()]);
37158
37158
  }
37159
37159
  });
37160
- function y8(e, t) {
37160
+ function yP(e, t) {
37161
37161
  function n(o) {
37162
37162
  return !!Jt().basalDragulaRuleForContainer(o);
37163
37163
  }
@@ -37165,65 +37165,66 @@ function y8(e, t) {
37165
37165
  }
37166
37166
  return { canAccepts: n, onAcceptMovedChildElement: a };
37167
37167
  }
37168
- function b8(e) {
37168
+ function bP(e) {
37169
37169
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !$a(e);
37170
37170
  }
37171
- const x8 = /* @__PURE__ */ Z({
37171
+ const xP = /* @__PURE__ */ Z({
37172
37172
  name: "FTabPageDesign",
37173
37173
  props: sr,
37174
37174
  emits: [],
37175
37175
  setup(e, t) {
37176
- const n = y(), a = he("design-item-context"), o = y8(a.schema, a.parent), i = Se(n, a, o);
37176
+ const n = y(), a = he("design-item-context"), o = yP(a.schema, a.parent), i = Se(n, a, o);
37177
37177
  i.value.canNested = !1, i.value.canDelete = !1, i.value.canMove = !1, t.expose(i.value);
37178
37178
  const s = he("tabs"), l = y(!0), p = {
37179
37179
  slots: t.slots,
37180
37180
  props: e
37181
37181
  }, c = y((s == null ? void 0 : s.tabType.value) || "default");
37182
- function u() {
37183
- e.id === s.activeId.value ? a.designerItemElementRef.value.classList.remove("d-none") : a.designerItemElementRef.value.classList.add("d-none");
37184
- }
37185
37182
  ue(() => {
37186
37183
  n.value.componentInstance = i;
37187
- const g = s.tabPages.value.findIndex((x) => x.props.id === e.id);
37188
- !g || g === -1 ? s == null || s.addTab(p) : g > -1 && (l.value = !1, console.warn(`已经存在id为${e.id}的页签啦`)), u();
37184
+ const x = s.tabPages.value.findIndex((b) => b.props.id === e.id);
37185
+ !x || x === -1 ? s == null || s.addTab(p) : x > -1 && (l.value = !1, console.warn(`已经存在id为${e.id}的页签啦`));
37189
37186
  }), Ct(() => {
37190
37187
  });
37191
- const f = $(() => ({
37192
- display: (e == null ? void 0 : e.id) === (s == null ? void 0 : s.activeId.value) ? "" : "none"
37188
+ const u = $(() => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.activeId.value)), f = $(() => ({
37189
+ display: u.value ? "" : "none"
37193
37190
  }));
37194
- J(() => e, (g) => {
37191
+ J(() => e, (x) => {
37195
37192
  s == null || s.updateTab({
37196
- props: g,
37193
+ props: x,
37197
37194
  slots: t.slots
37198
37195
  });
37199
37196
  }, {
37200
37197
  immediate: !0,
37201
37198
  deep: !0
37202
- }), J(s.activeId, u);
37199
+ });
37203
37200
  function d() {
37204
- var x, b;
37205
- const g = (b = (x = t.slots).default) == null ? void 0 : b.call(x);
37201
+ var b, C;
37202
+ const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
37206
37203
  return r(Rn, {
37207
37204
  "main-title": e.title,
37208
37205
  class: "farris-tab-page"
37209
- }, b8(g) ? g : {
37210
- default: () => [g]
37206
+ }, bP(x) ? x : {
37207
+ default: () => [x]
37211
37208
  });
37212
37209
  }
37213
- function h() {
37214
- var x, b;
37215
- const g = (b = (x = t.slots).default) == null ? void 0 : b.call(x);
37210
+ const h = $(() => ({
37211
+ "farris-tab-page": !0,
37212
+ "drag-container": !0
37213
+ }));
37214
+ function m() {
37215
+ var b, C;
37216
+ const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
37216
37217
  return r("div", {
37217
37218
  ref: n,
37218
- class: "farris-tab-page drag-container",
37219
+ class: h.value,
37219
37220
  "data-dragref": `${a.schema.id}-container`,
37220
37221
  style: f.value
37221
- }, [g]);
37222
+ }, [x]);
37222
37223
  }
37223
- const v = (/* @__PURE__ */ new Map([["default", h], ["one-page", d]])).get(c.value) || h;
37224
- return () => l.value ? v() : null;
37224
+ const g = (/* @__PURE__ */ new Map([["default", m], ["one-page", d]])).get(c.value) || m;
37225
+ return () => l.value ? g() : null;
37225
37226
  }
37226
- }), C8 = {
37227
+ }), CP = {
37227
37228
  install(e) {
37228
37229
  e.component(oa.name, oa), e.component(yn.name, yn);
37229
37230
  },
@@ -37231,9 +37232,9 @@ const x8 = /* @__PURE__ */ Z({
37231
37232
  e.tabs = oa, e["tab-page"] = yn, t.tabs = Js, t["tab-page"] = ol;
37232
37233
  },
37233
37234
  registerDesigner(e, t, n) {
37234
- e.tabs = g8, e["tab-page"] = x8, t.tabs = Js, t["tab-page"] = ol;
37235
+ e.tabs = gP, e["tab-page"] = xP, t.tabs = Js, t["tab-page"] = ol;
37235
37236
  }
37236
- }, w8 = /* @__PURE__ */ Z({
37237
+ }, wP = /* @__PURE__ */ Z({
37237
37238
  name: "FTagsDesign",
37238
37239
  props: pr,
37239
37240
  emits: ["remove", "selectionChange", "change"],
@@ -37468,7 +37469,7 @@ const x8 = /* @__PURE__ */ Z({
37468
37469
  onWheel: (oe) => te(oe)
37469
37470
  }, [Q()])]);
37470
37471
  }
37471
- }), S8 = {
37472
+ }), SP = {
37472
37473
  install(e) {
37473
37474
  e.component(ia.name, ia);
37474
37475
  },
@@ -37476,15 +37477,15 @@ const x8 = /* @__PURE__ */ Z({
37476
37477
  e.tags = ia, t.tags = cl;
37477
37478
  },
37478
37479
  registerDesigner(e, t, n) {
37479
- e.tags = w8, t.tags = cl;
37480
+ e.tags = wP, t.tags = cl;
37480
37481
  }
37481
- }, k8 = /* @__PURE__ */ new Map([
37482
+ }, kP = /* @__PURE__ */ new Map([
37482
37483
  ["appearance", ke]
37483
37484
  ]);
37484
- function B8(e, t, n) {
37485
+ function BP(e, t, n) {
37485
37486
  return t;
37486
37487
  }
37487
- const D8 = "text", F8 = "A Farris Component", T8 = "object", A8 = {
37488
+ const DP = "text", FP = "A Farris Component", TP = "object", AP = {
37488
37489
  basic: {
37489
37490
  description: "Basic Infomation",
37490
37491
  title: "基本信息",
@@ -37506,12 +37507,12 @@ const D8 = "text", F8 = "A Farris Component", T8 = "object", A8 = {
37506
37507
  }
37507
37508
  }
37508
37509
  }
37509
- }, I8 = {
37510
- title: D8,
37511
- description: F8,
37512
- type: T8,
37513
- categories: A8
37514
- }, E8 = "https://json-schema.org/draft/2020-12/schema", $8 = "https://farris-design.gitee.io/text.schema.json", P8 = "text", M8 = "A Farris Component", O8 = "object", R8 = {
37510
+ }, IP = {
37511
+ title: DP,
37512
+ description: FP,
37513
+ type: TP,
37514
+ categories: AP
37515
+ }, EP = "https://json-schema.org/draft/2020-12/schema", $P = "https://farris-design.gitee.io/text.schema.json", PP = "text", MP = "A Farris Component", OP = "object", RP = {
37515
37516
  id: {
37516
37517
  description: "The unique identifier for text",
37517
37518
  type: "string"
@@ -37573,17 +37574,17 @@ const D8 = "text", F8 = "A Farris Component", T8 = "object", A8 = {
37573
37574
  type: "boolean",
37574
37575
  default: !0
37575
37576
  }
37576
- }, _8 = [
37577
+ }, _P = [
37577
37578
  "id",
37578
37579
  "type"
37579
- ], j8 = {
37580
- $schema: E8,
37581
- $id: $8,
37582
- title: P8,
37583
- description: M8,
37584
- type: O8,
37585
- properties: R8,
37586
- required: _8
37580
+ ], jP = {
37581
+ $schema: EP,
37582
+ $id: $P,
37583
+ title: PP,
37584
+ description: MP,
37585
+ type: OP,
37586
+ properties: RP,
37587
+ required: _P
37587
37588
  }, bs = {
37588
37589
  // 组件值
37589
37590
  modelValue: { type: [String, Number, Boolean], default: "" },
@@ -37625,12 +37626,12 @@ const D8 = "text", F8 = "A Farris Component", T8 = "object", A8 = {
37625
37626
  dateRangeDelimiter: { type: String, default: "~" },
37626
37627
  // 枚举项的分隔符
37627
37628
  enumDelimiter: { type: String, default: "," }
37628
- }, vc = ye(bs, j8, k8, B8, I8);
37629
- function H8(e) {
37629
+ }, vc = ye(bs, jP, kP, BP, IP);
37630
+ function HP(e) {
37630
37631
  let t;
37631
37632
  return /Y/g.test(e) === !0 ? t = e.replace(/Y/g, "y") : t = e, /D/g.test(t) === !0 && (t = t.replace(/D/g, "d")), t;
37632
37633
  }
37633
- function N8(e, t, n, a, o) {
37634
+ function NP(e, t, n, a, o) {
37634
37635
  if (e == null || e === "")
37635
37636
  return "";
37636
37637
  if (t && t.length) {
@@ -37645,26 +37646,26 @@ function N8(e, t, n, a, o) {
37645
37646
  }
37646
37647
  function mc(e, t) {
37647
37648
  let n;
37648
- return t || (t = "YYYY-MM-DD"), t === "timeago" ? gx().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = wr().formatTo(e, H8(t)), n);
37649
+ return t || (t = "YYYY-MM-DD"), t === "timeago" ? gx().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = wr().formatTo(e, HP(t)), n);
37649
37650
  }
37650
- function V8(e, t) {
37651
+ function VP(e, t) {
37651
37652
  return !e && !t || t && t.type && t.type === "number" && (t.formatter || (t.useThousands ? t.precision !== void 0 ? e = "n" + t.precision : e = "n2" : t.precision !== void 0 ? e = "f" + t.precision : e = "f2")), e;
37652
37653
  }
37653
- function L8(e) {
37654
+ function LP(e) {
37654
37655
  return e.replace(/[a-z]+/g, (t) => t.toUpperCase());
37655
37656
  }
37656
- function W8(e, t, n) {
37657
+ function WP(e, t, n) {
37657
37658
  return e.toString().indexOf(".") > -1 ? (console.warn("十进制转换仅限整型类型"), "") : (Array(t).join(n) + e).slice(-t);
37658
37659
  }
37659
- function z8(e, t) {
37660
+ function zP(e, t) {
37660
37661
  return Number(e * 100).toFixed(Number(t)) + "%";
37661
37662
  }
37662
- function q8(e, t, n, a, o, i, s) {
37663
+ function qP(e, t, n, a, o, i, s) {
37663
37664
  if (!t && !n)
37664
37665
  return e.toString();
37665
37666
  if (n && n.type && n.type === "number" && n.formatter)
37666
37667
  return n.formatter(e);
37667
- const l = L8(t.substring(0, 1)), p = Number(t.substring(1)), c = {};
37668
+ const l = LP(t.substring(0, 1)), p = Number(t.substring(1)), c = {};
37668
37669
  let u;
37669
37670
  if (!/C|D|F|N|P/g.test(l)) {
37670
37671
  console.log(`不支持format为 ${t} 类型的数字格式化`);
@@ -37677,7 +37678,7 @@ function q8(e, t, n, a, o, i, s) {
37677
37678
  Object.assign(c, { prefix: "¥", precision: p }), u = f(e, c);
37678
37679
  break;
37679
37680
  case "D":
37680
- u = W8(e, p, s);
37681
+ u = WP(e, p, s);
37681
37682
  break;
37682
37683
  case "F":
37683
37684
  Object.assign(c, { prefix: "", groupSeparator: "", precision: p }), u = f(e, c);
@@ -37686,12 +37687,12 @@ function q8(e, t, n, a, o, i, s) {
37686
37687
  Object.assign(c, { prefix: "", precision: p }), u = f(e, c);
37687
37688
  break;
37688
37689
  case "P":
37689
- u = z8(e, p);
37690
+ u = zP(e, p);
37690
37691
  break;
37691
37692
  }
37692
37693
  return u;
37693
37694
  }
37694
- function G8(e) {
37695
+ function GP(e) {
37695
37696
  return e === !0 ? "是" : e === !1 || e == null || e === "" || typeof e > "u" ? "否" : e;
37696
37697
  }
37697
37698
  const zo = /* @__PURE__ */ Z({
@@ -37743,13 +37744,13 @@ const zo = /* @__PURE__ */ Z({
37743
37744
  }
37744
37745
  break;
37745
37746
  case "number":
37746
- l.value = V8(l.value, e.numberOptions), x = q8(g, l.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
37747
+ l.value = VP(l.value, e.numberOptions), x = qP(g, l.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
37747
37748
  break;
37748
37749
  case "enum":
37749
- x = N8(g, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
37750
+ x = NP(g, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
37750
37751
  break;
37751
37752
  case "boolean":
37752
- x = G8(g);
37753
+ x = GP(g);
37753
37754
  break;
37754
37755
  }
37755
37756
  return x;
@@ -37768,7 +37769,7 @@ const zo = /* @__PURE__ */ Z({
37768
37769
  title: u.value
37769
37770
  }, [h.value]);
37770
37771
  }
37771
- }), Y8 = /* @__PURE__ */ Z({
37772
+ }), YP = /* @__PURE__ */ Z({
37772
37773
  name: "FTextDesign",
37773
37774
  props: bs,
37774
37775
  emits: ["update:modelValue"],
@@ -37793,7 +37794,7 @@ const zo = /* @__PURE__ */ Z({
37793
37794
  style: c.value
37794
37795
  }, [l.value]);
37795
37796
  }
37796
- }), U8 = {
37797
+ }), UP = {
37797
37798
  install(e) {
37798
37799
  e.component(zo.name, zo);
37799
37800
  },
@@ -37801,11 +37802,11 @@ const zo = /* @__PURE__ */ Z({
37801
37802
  e.text = zo, t.text = vc;
37802
37803
  },
37803
37804
  registerDesigner(e, t, n) {
37804
- e.text = Y8, t.text = vc;
37805
+ e.text = YP, t.text = vc;
37805
37806
  }
37806
- }, K8 = /* @__PURE__ */ new Map([
37807
+ }, KP = /* @__PURE__ */ new Map([
37807
37808
  ["appearance", ke]
37808
- ]), X8 = "https://json-schema.org/draft/2020-12/schema", Q8 = "https://farris-design.gitee.io/time-picker.schema.json", Z8 = "time-picker", J8 = "A Farris Input Component", eP = "object", tP = {
37809
+ ]), XP = "https://json-schema.org/draft/2020-12/schema", QP = "https://farris-design.gitee.io/time-picker.schema.json", ZP = "time-picker", JP = "A Farris Input Component", e8 = "object", t8 = {
37809
37810
  id: {
37810
37811
  description: "The unique identifier for a time picker",
37811
37812
  type: "string"
@@ -37867,22 +37868,22 @@ const zo = /* @__PURE__ */ Z({
37867
37868
  type: "boolean",
37868
37869
  default: !0
37869
37870
  }
37870
- }, nP = [
37871
+ }, n8 = [
37871
37872
  "id",
37872
37873
  "type"
37873
- ], aP = {
37874
- $schema: X8,
37875
- $id: Q8,
37876
- title: Z8,
37877
- description: J8,
37878
- type: eP,
37879
- properties: tP,
37880
- required: nP
37874
+ ], a8 = {
37875
+ $schema: XP,
37876
+ $id: QP,
37877
+ title: ZP,
37878
+ description: JP,
37879
+ type: e8,
37880
+ properties: t8,
37881
+ required: n8
37881
37882
  };
37882
- function oP(e, t, n) {
37883
+ function o8(e, t, n) {
37883
37884
  return t;
37884
37885
  }
37885
- const iP = "time-picker", rP = "A Farris Component", sP = "object", lP = {
37886
+ const i8 = "time-picker", r8 = "A Farris Component", s8 = "object", l8 = {
37886
37887
  basic: {
37887
37888
  description: "Basic Infomation",
37888
37889
  title: "基本信息",
@@ -37964,11 +37965,11 @@ const iP = "time-picker", rP = "A Farris Component", sP = "object", lP = {
37964
37965
  }
37965
37966
  }
37966
37967
  }
37967
- }, cP = {
37968
- title: iP,
37969
- description: rP,
37970
- type: sP,
37971
- categories: lP
37968
+ }, c8 = {
37969
+ title: i8,
37970
+ description: r8,
37971
+ type: s8,
37972
+ categories: l8
37972
37973
  }, xs = {
37973
37974
  /**
37974
37975
  * 组件值,这个是与指定的format格式相对应的值
@@ -37997,7 +37998,7 @@ const iP = "time-picker", rP = "A Farris Component", sP = "object", lP = {
37997
37998
  disable: { type: Boolean, default: !1 },
37998
37999
  readonly: { type: Boolean, default: !1 },
37999
38000
  editable: { type: Boolean, default: !0 }
38000
- }, hc = ye(xs, aP, K8, oP, cP), uP = {
38001
+ }, hc = ye(xs, a8, KP, o8, c8), u8 = {
38001
38002
  modelValue: {
38002
38003
  type: String,
38003
38004
  default: ""
@@ -38065,7 +38066,7 @@ function Pf(e, t) {
38065
38066
  let n = e || "hh:mm:ss";
38066
38067
  return t ? (n = n ? n.replace(/H/g, "h") : "hh:mm:ss a", n.indexOf("a") === -1 && n.indexOf("A") === -1 && (n = n + " a")) : n = n ? n.replace(/h/g, "H") : "HH:mm:ss", n;
38067
38068
  }
38068
- class dP {
38069
+ class d8 {
38069
38070
  constructor() {
38070
38071
  j(this, "hourStep", 1);
38071
38072
  j(this, "minuteStep", 1);
@@ -38231,7 +38232,7 @@ class dP {
38231
38232
  return n === "PM" && t > 12 ? t - 12 : n === "AM" && t === 0 ? 12 : t;
38232
38233
  }
38233
38234
  }
38234
- function fP(e, t, n, a, o, i) {
38235
+ function f8(e, t, n, a, o, i) {
38235
38236
  function s(u, f, d = 0, h, m) {
38236
38237
  const v = l(f, h, m), g = u.children[0].children[v] || u.children[0].children[0];
38237
38238
  p(u, g.offsetTop, d);
@@ -38278,7 +38279,7 @@ function fP(e, t, n, a, o, i) {
38278
38279
  }
38279
38280
  return { scrollToSelected: s };
38280
38281
  }
38281
- function pP(e, t) {
38282
+ function p8(e, t) {
38282
38283
  function n(l) {
38283
38284
  return l.index === e.viewHours || !Je(e.viewHours) && l.index === e.defaultViewHours;
38284
38285
  }
@@ -38301,14 +38302,14 @@ function pP(e, t) {
38301
38302
  }
38302
38303
  const Ki = /* @__PURE__ */ Z({
38303
38304
  name: "FTimePickerTimeView",
38304
- props: uP,
38305
+ props: u8,
38305
38306
  emits: ["valueChange", "formatedValueChange"],
38306
38307
  setup(e, t) {
38307
- const n = "time-picker-panel", a = y(0), o = y([]), i = y([]), s = y([]), l = y([]), p = y(), c = y(), u = y(), f = y(), d = new dP(), {
38308
+ const n = "time-picker-panel", a = y(0), o = y([]), i = y([]), s = y([]), l = y([]), p = y(), c = y(), u = y(), f = y(), d = new d8(), {
38308
38309
  scrollToSelected: h
38309
- } = fP(e, t, o, i, s, l), {
38310
+ } = f8(e, t, o, i, s, l), {
38310
38311
  getSelectedClass: m
38311
- } = pP(d, n), v = y(e.hourStep), g = y(e.minuteStep), x = y(e.secondStep), b = y(), C = y(""), w = y(), S = y(e.hideDisabledElements), k = y(0);
38312
+ } = p8(d, n), v = y(e.hourStep), g = y(e.minuteStep), x = y(e.secondStep), b = y(), C = y(""), w = y(), S = y(e.hideDisabledElements), k = y(0);
38312
38313
  J(() => e.defaultOpenValue, (q) => {
38313
38314
  Je(q) && (b.value = q);
38314
38315
  }), J(b, (q) => {
@@ -38548,7 +38549,7 @@ const Ki = /* @__PURE__ */ Z({
38548
38549
  }), null)]
38549
38550
  });
38550
38551
  }
38551
- }), vP = /* @__PURE__ */ Z({
38552
+ }), v8 = /* @__PURE__ */ Z({
38552
38553
  name: "FTimePickerDesign",
38553
38554
  props: xs,
38554
38555
  emits: ["datePicked", "update:modelValue"],
@@ -38572,7 +38573,7 @@ const Ki = /* @__PURE__ */ Z({
38572
38573
  default: () => [r(Qe("f-time-picker-time-view"), null, null)]
38573
38574
  })]);
38574
38575
  }
38575
- }), mP = {
38576
+ }), m8 = {
38576
38577
  install(e) {
38577
38578
  e.component(qo.name, qo).component(Ki.name, Ki);
38578
38579
  },
@@ -38580,9 +38581,9 @@ const Ki = /* @__PURE__ */ Z({
38580
38581
  e["time-picker"] = qo, t["time-picker"] = hc;
38581
38582
  },
38582
38583
  registerDesigner(e, t, n) {
38583
- e["time-picker"] = vP, t["time-picker"] = hc;
38584
+ e["time-picker"] = v8, t["time-picker"] = hc;
38584
38585
  }
38585
- }, hP = /* @__PURE__ */ Z({
38586
+ }, h8 = /* @__PURE__ */ Z({
38586
38587
  name: "FTransferDesign",
38587
38588
  props: nr,
38588
38589
  emits: ["change"],
@@ -38683,7 +38684,7 @@ const Ki = /* @__PURE__ */ Z({
38683
38684
  style: "height:480px"
38684
38685
  }, [x(), S()]);
38685
38686
  }
38686
- }), gP = {
38687
+ }), g8 = {
38687
38688
  install(e) {
38688
38689
  e.component(Mn.name, Mn);
38689
38690
  },
@@ -38691,16 +38692,16 @@ const Ki = /* @__PURE__ */ Z({
38691
38692
  e.transfer = Mn, t.transfer = Xs;
38692
38693
  },
38693
38694
  registerDesigner(e, t, n) {
38694
- e.transfer = hP, t.transfer = Xs;
38695
+ e.transfer = h8, t.transfer = Xs;
38695
38696
  }
38696
- }, yP = {
38697
+ }, y8 = {
38697
38698
  // 是否被选中
38698
38699
  checked: { type: Boolean, default: !1 },
38699
38700
  // 进度条状态 默认'normal'
38700
38701
  id: { type: String, default: "" },
38701
38702
  // 禁用
38702
38703
  disabled: { type: Boolean, default: !1 }
38703
- }, bP = {
38704
+ }, b8 = {
38704
38705
  // 是否显示进度条信息
38705
38706
  showInfo: { type: Boolean, default: !0 },
38706
38707
  // 进度条状态 默认'normal'
@@ -38708,7 +38709,7 @@ const Ki = /* @__PURE__ */ Z({
38708
38709
  // 已完成的分段百分比
38709
38710
  percent: { type: Number, default: 0 },
38710
38711
  maxWidth: { type: Number, default: 0 }
38711
- }, xP = {
38712
+ }, x8 = {
38712
38713
  /**
38713
38714
  * 按钮文本
38714
38715
  */
@@ -38741,9 +38742,9 @@ const Ki = /* @__PURE__ */ Z({
38741
38742
  * 附件服务器端服务注入的Token
38742
38743
  */
38743
38744
  uploadServerToken: { type: String, default: "" }
38744
- }, CP = /* @__PURE__ */ Z({
38745
+ }, C8 = /* @__PURE__ */ Z({
38745
38746
  name: "FUploadProgress",
38746
- props: bP,
38747
+ props: b8,
38747
38748
  setup(e, t) {
38748
38749
  const {
38749
38750
  showInfo: n,
@@ -38773,7 +38774,7 @@ const Ki = /* @__PURE__ */ Z({
38773
38774
  }
38774
38775
  }), Mf = /* @__PURE__ */ Z({
38775
38776
  name: "FPreviewCheckbox",
38776
- props: yP,
38777
+ props: y8,
38777
38778
  emits: ["checkedChange"],
38778
38779
  setup(e, t) {
38779
38780
  const {
@@ -38804,7 +38805,7 @@ const Ki = /* @__PURE__ */ Z({
38804
38805
  }
38805
38806
  });
38806
38807
  var Rt = /* @__PURE__ */ ((e) => (e[e.Queue = 0] = "Queue", e[e.Uploading = 1] = "Uploading", e[e.Done = 2] = "Done", e[e.Cancelled = 3] = "Cancelled", e[e.Remove = 4] = "Remove", e[e.Error = 5] = "Error", e))(Rt || {});
38807
- class wP {
38808
+ class w8 {
38808
38809
  constructor(t = {}, n = {}) {
38809
38810
  /**
38810
38811
  * 上传配置
@@ -38828,7 +38829,7 @@ function gc(e, t) {
38828
38829
  let n = "";
38829
38830
  return e.indexOf(".") === -1 && t.hasOwnProperty(e) ? n = t[e] : n = e.split(".").reduce((a, o) => a ? a[o] : null, t), n;
38830
38831
  }
38831
- function SP(e) {
38832
+ function S8(e) {
38832
38833
  return (t, n) => {
38833
38834
  if (!t.hasOwnProperty(e) || t[e] === void 0 || t[e] === null)
38834
38835
  return 1;
@@ -38917,15 +38918,15 @@ function bc(e) {
38917
38918
  }
38918
38919
  return 5;
38919
38920
  }
38920
- function kP(e) {
38921
+ function k8(e) {
38921
38922
  let t = e;
38922
38923
  return e ? (typeof e == "string" && (t = parseInt(e, 10)), Vn(t)) : "0 Byte";
38923
38924
  }
38924
- const BP = () => Math.random().toString(36).substring(7);
38925
+ const B8 = () => Math.random().toString(36).substring(7);
38925
38926
  function xc(e, t) {
38926
38927
  return {
38927
38928
  fileIndex: t,
38928
- id: BP(),
38929
+ id: B8(),
38929
38930
  name: e.name,
38930
38931
  size: e.size,
38931
38932
  type: e.type,
@@ -38946,7 +38947,7 @@ function xc(e, t) {
38946
38947
  nativeFile: e
38947
38948
  };
38948
38949
  }
38949
- function DP(e) {
38950
+ function D8(e) {
38950
38951
  const t = [];
38951
38952
  return e.forEach((n) => {
38952
38953
  const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
@@ -38957,14 +38958,14 @@ function DP(e) {
38957
38958
  t.push(a);
38958
38959
  }), t;
38959
38960
  }
38960
- function FP(e, t) {
38961
+ function F8(e, t) {
38961
38962
  return e ? t <= e * 1024 * 1024 : !0;
38962
38963
  }
38963
- function TP(e) {
38964
+ function T8(e) {
38964
38965
  return e.find((t) => t === "*") !== void 0;
38965
38966
  }
38966
- function AP(e, t) {
38967
- if (!e || e.length === 0 || TP(e))
38967
+ function A8(e, t) {
38968
+ if (!e || e.length === 0 || T8(e))
38968
38969
  return !0;
38969
38970
  if (t.lastIndexOf(".") < 0)
38970
38971
  return !1;
@@ -38973,7 +38974,7 @@ function AP(e, t) {
38973
38974
  (a) => a.toLowerCase() === n.toLowerCase()
38974
38975
  ) > -1;
38975
38976
  }
38976
- function IP(e) {
38977
+ function I8(e) {
38977
38978
  if (e)
38978
38979
  return e.split(`
38979
38980
  `).map((t) => t.split(/: */, 2)).filter((t) => t[0]).reduce((t, n) => (t[n[0]] = n[1], t), {});
@@ -38981,7 +38982,7 @@ function IP(e) {
38981
38982
  function Cc(e) {
38982
38983
  return new Date(e * 1e3).toISOString().substr(11, 8);
38983
38984
  }
38984
- class EP extends wP {
38985
+ class E8 extends w8 {
38985
38986
  upload(t, n, a, o) {
38986
38987
  const i = t[0];
38987
38988
  return new Promise((s, l) => {
@@ -39027,7 +39028,7 @@ class EP extends wP {
39027
39028
  } catch {
39028
39029
  i.response = d.response;
39029
39030
  }
39030
- i.responseHeaders = IP(d.getAllResponseHeaders()), s({ type: "done", files: [i] });
39031
+ i.responseHeaders = I8(d.getAllResponseHeaders()), s({ type: "done", files: [i] });
39031
39032
  }
39032
39033
  }, d.open(c, p, !0), d.withCredentials = !!n.withCredentials;
39033
39034
  try {
@@ -39053,21 +39054,21 @@ class EP extends wP {
39053
39054
  });
39054
39055
  }
39055
39056
  }
39056
- const $P = (e = "") => {
39057
+ const $8 = (e = "") => {
39057
39058
  let t;
39058
39059
  return e && he(e, null) && (t = he(e)), t || (t = new Kr()), t;
39059
- }, PP = (e = "") => {
39060
+ }, P8 = (e = "") => {
39060
39061
  let t;
39061
39062
  if (e && he(e, null)) {
39062
39063
  const n = he(e);
39063
39064
  n && n() && (t = n());
39064
39065
  }
39065
- return t || (t = new EP()), t;
39066
+ return t || (t = new E8()), t;
39066
39067
  }, jf = {
39067
- getNotify: $P,
39068
- getServerAPI: PP
39068
+ getNotify: $8,
39069
+ getServerAPI: P8
39069
39070
  };
39070
- class MP {
39071
+ class M8 {
39071
39072
  constructor(t, n) {
39072
39073
  // 记录在上传的附件数组
39073
39074
  j(this, "queue");
@@ -39144,7 +39145,7 @@ class MP {
39144
39145
  */
39145
39146
  rejectedReason(t, n, a) {
39146
39147
  let o = !1, i = "";
39147
- return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !AP(this.uploadOpts.allowedContentTypes, t) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : FP(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : o = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
39148
+ return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !A8(this.uploadOpts.allowedContentTypes, t) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : F8(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : o = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
39148
39149
  allowed: o,
39149
39150
  message: i
39150
39151
  };
@@ -39272,10 +39273,10 @@ class MP {
39272
39273
  }
39273
39274
  const Hf = /* @__PURE__ */ Z({
39274
39275
  name: "FFileSelect",
39275
- props: xP,
39276
+ props: x8,
39276
39277
  emits: ["change", "stateChange"],
39277
39278
  setup(e, t) {
39278
- const n = new MP(t, e.uploadServerToken), a = Zi(), o = y("*");
39279
+ const n = new M8(t, e.uploadServerToken), a = Zi(), o = y("*");
39279
39280
  let i;
39280
39281
  const s = () => {
39281
39282
  i.files && (t.emit("change", i.files), n.handleFiles(i.files), i.value = null);
@@ -39323,7 +39324,7 @@ const Hf = /* @__PURE__ */ Z({
39323
39324
  style: "top: 2px;position: relative;"
39324
39325
  }, null), e.selectText])]);
39325
39326
  }
39326
- }), OP = "https://json-schema.org/draft/2020-12/schema", RP = "https://farris-design.gitee.io/uploader.schema.json", _P = "uploader", jP = "A Farris Component", HP = "object", NP = {
39327
+ }), O8 = "https://json-schema.org/draft/2020-12/schema", R8 = "https://farris-design.gitee.io/uploader.schema.json", _8 = "uploader", j8 = "A Farris Component", H8 = "object", N8 = {
39327
39328
  id: {
39328
39329
  description: "The unique identifier for uploader",
39329
39330
  type: "string"
@@ -39375,24 +39376,24 @@ const Hf = /* @__PURE__ */ Z({
39375
39376
  type: "boolean",
39376
39377
  default: !0
39377
39378
  }
39378
- }, VP = [
39379
+ }, V8 = [
39379
39380
  "id",
39380
39381
  "type"
39381
- ], LP = {
39382
- $schema: OP,
39383
- $id: RP,
39384
- title: _P,
39385
- description: jP,
39386
- type: HP,
39387
- properties: NP,
39388
- required: VP
39389
- }, WP = /* @__PURE__ */ new Map([
39382
+ ], L8 = {
39383
+ $schema: O8,
39384
+ $id: R8,
39385
+ title: _8,
39386
+ description: j8,
39387
+ type: H8,
39388
+ properties: N8,
39389
+ required: V8
39390
+ }, W8 = /* @__PURE__ */ new Map([
39390
39391
  ["appearance", ke]
39391
39392
  ]);
39392
- function zP(e, t, n) {
39393
+ function z8(e, t, n) {
39393
39394
  return t;
39394
39395
  }
39395
- const qP = "uploader", GP = "A Farris Component", YP = "object", UP = {
39396
+ const q8 = "uploader", G8 = "A Farris Component", Y8 = "object", U8 = {
39396
39397
  basic: {
39397
39398
  description: "Basic Infomation",
39398
39399
  title: "基本信息",
@@ -39414,11 +39415,11 @@ const qP = "uploader", GP = "A Farris Component", YP = "object", UP = {
39414
39415
  }
39415
39416
  }
39416
39417
  }
39417
- }, KP = {
39418
- title: qP,
39419
- description: GP,
39420
- type: YP,
39421
- categories: UP
39418
+ }, K8 = {
39419
+ title: q8,
39420
+ description: G8,
39421
+ type: Y8,
39422
+ categories: U8
39422
39423
  }, ws = {
39423
39424
  /** 内容区域填充 */
39424
39425
  contentFill: { type: Boolean, default: !1 },
@@ -39483,7 +39484,7 @@ const qP = "uploader", GP = "A Farris Component", YP = "object", UP = {
39483
39484
  * 提示服务注入的Token
39484
39485
  */
39485
39486
  notifyServiceToken: { type: String, default: "" }
39486
- }, wc = ye(ws, LP, WP, zP, KP);
39487
+ }, wc = ye(ws, L8, W8, z8, K8);
39487
39488
  function Nf(e, t, n) {
39488
39489
  const a = jf.getNotify(e.notifyServiceToken), o = y(e.fileInfos), {
39489
39490
  disabled: i,
@@ -39499,7 +39500,7 @@ function Nf(e, t, n) {
39499
39500
  } = Gn(e), v = y(!1), g = y([]), x = $(() => g.value.length), b = y([]), C = y(""), w = $(() => {
39500
39501
  (!o.value.length || g.value.length !== o.value.length) && (v.value = !1);
39501
39502
  const N = o.value.map((W) => (W.hasOwnProperty("size") || (W.size = void 0), W.hasOwnProperty("createTime") || (W.createTime = void 0), W));
39502
- if (N.sort(SP(c.value)), u.value) {
39503
+ if (N.sort(S8(c.value)), u.value) {
39503
39504
  const W = N.map((L) => (L.checked = !!g.value.find((Y) => Y.id === L.id) || v.value, L));
39504
39505
  return g.value = [...W].filter((L) => L.checked), W;
39505
39506
  }
@@ -39579,7 +39580,7 @@ function Nf(e, t, n) {
39579
39580
  size: L.size,
39580
39581
  createTime: Cs(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
39581
39582
  }));
39582
- o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent", DP(N.files || []));
39583
+ o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent", D8(N.files || []));
39583
39584
  } else N.type === "cancelled" || N.type === "removed" || N.type === "error" ? (b.value = b.value.filter((W) => N.files && N.files.findIndex((L) => {
39584
39585
  var Y;
39585
39586
  return ((Y = W == null ? void 0 : W.file) == null ? void 0 : Y.id) === L.id;
@@ -39616,7 +39617,7 @@ function Nf(e, t, n) {
39616
39617
  const Go = /* @__PURE__ */ Z({
39617
39618
  name: "FUploader",
39618
39619
  components: {
39619
- "f-upload-progress": CP,
39620
+ "f-upload-progress": C8,
39620
39621
  "f-preview-checkbox": Mf,
39621
39622
  "f-file-select": Hf
39622
39623
  },
@@ -39722,7 +39723,7 @@ const Go = /* @__PURE__ */ Z({
39722
39723
  function U(K, te, le) {
39723
39724
  return r("div", {
39724
39725
  class: "uploadAndpreview--filesize-container"
39725
- }, [K === "preview" && le ? r("span", null, [kP(le.size)]) : null, K === "upload" && te ? r("span", null, [bc(te)]) : null]);
39726
+ }, [K === "preview" && le ? r("span", null, [k8(le.size)]) : null, K === "upload" && te ? r("span", null, [bc(te)]) : null]);
39726
39727
  }
39727
39728
  function _(K, te) {
39728
39729
  return r("div", {
@@ -39917,7 +39918,7 @@ const Go = /* @__PURE__ */ Z({
39917
39918
  class: "table table-bordered uploadAndpreview--table"
39918
39919
  }, [r("thead", null, [G()]), r("tbody", null, [z(), Q()])]) : null]) : null, D.value ? O() : null]);
39919
39920
  }
39920
- }), XP = /* @__PURE__ */ Z({
39921
+ }), X8 = /* @__PURE__ */ Z({
39921
39922
  name: "FUploaderDesign",
39922
39923
  components: {
39923
39924
  "f-preview-checkbox": Mf,
@@ -40119,7 +40120,7 @@ const Go = /* @__PURE__ */ Z({
40119
40120
  class: "table table-bordered uploadAndpreview--table"
40120
40121
  }, [r("thead", null, [I()]), r("tbody", null, [E()])])]), b()]) : null]);
40121
40122
  }
40122
- }), QP = {
40123
+ }), Q8 = {
40123
40124
  install(e) {
40124
40125
  e.component(Go.name, Go);
40125
40126
  },
@@ -40127,12 +40128,12 @@ const Go = /* @__PURE__ */ Z({
40127
40128
  e.uploader = Go, t.uploader = wc;
40128
40129
  },
40129
40130
  registerDesigner(e, t, n) {
40130
- e.uploader = XP, t.uploader = wc;
40131
+ e.uploader = X8, t.uploader = wc;
40131
40132
  }
40132
- }, ZP = /* @__PURE__ */ new Map([
40133
+ }, Z8 = /* @__PURE__ */ new Map([
40133
40134
  ["appearance", ke]
40134
40135
  ]);
40135
- function JP(e, t, n) {
40136
+ function J8(e, t, n) {
40136
40137
  return t;
40137
40138
  }
40138
40139
  const eM = "https://json-schema.org/draft/2020-12/schema", tM = "https://farris-design.gitee.io/verify-detail.schema.json", nM = "verify-detail", aM = "A Farris Component", oM = "object", iM = {
@@ -40275,7 +40276,7 @@ const eM = "https://json-schema.org/draft/2020-12/schema", tM = "https://farris-
40275
40276
  },
40276
40277
  customClass: { type: String, default: "" },
40277
40278
  maxHeight: { type: Number, default: 200 }
40278
- }, Sc = ye(Ss, sM, ZP, JP, fM), ya = /* @__PURE__ */ Z({
40279
+ }, Sc = ye(Ss, sM, Z8, J8, fM), ya = /* @__PURE__ */ Z({
40279
40280
  name: "FVerifyDetail",
40280
40281
  props: Ss,
40281
40282
  emits: ["validatorClick", "listshow"],
@@ -47090,7 +47091,7 @@ const Y5 = /* @__PURE__ */ Z({
47090
47091
  }, De = {}, Fe = {}, Ae = {};
47091
47092
  let cu = !1;
47092
47093
  function K5() {
47093
- cu || (cu = !0, u1.register(De, Fe, Ae), Yx.register(De, Fe, Ae), f1.register(De, Fe, Ae), $1.registerDesigner(De, Fe, Ae), tC.register(De, Fe, Ae), aC.register(De, Fe, Ae), oC.register(De, Fe, Ae), rC.register(De, Fe, Ae), SC.register(De, Fe), kw.register(De, Fe, Ae), rw.registerDesigner(De, Fe, Ae), s2.register(De, Fe, Ae), T2.register(De, Fe, Ae), G2.register(De, Fe, Ae), Z5.register(De, Fe, Ae), dk.register(De, Fe, Ae), tB.register(De, Fe, Ae), xB.register(De, Fe, Ae), wB.register(De, Fe, Ae), ZB.register(De, Fe, Ae), $D.register(De, Fe, Ae), hD.registerDesigner(De, Fe, Ae), rF.register(De, Fe, Ae), IF.register(De, Fe, Ae), YF.register(De, Fe, Ae), uT.register(De, Fe, Ae), TT.register(De, Fe, Ae), IT.register(De, Fe, Ae), tA.register(De, Fe, Ae), yA.register(De, Fe, Ae), OA.register(De, Fe, Ae), iI.register(De, Fe, Ae), AI.register(De, Fe, Ae), EI.register(De, Fe, Ae), KI.register(De, Fe, Ae), x4.register(De, Fe, Ae), TE.register(De, Fe, Ae), UT.register(De, Fe, Ae), GE.register(De, Fe, Ae), KE.register(De, Fe, Ae), f$.register(De, Fe, Ae), G$.register(De, Fe, Ae), c8.register(De, Fe, Ae), d8.register(De, Fe, Ae), C8.register(De, Fe, Ae), S8.register(De, Fe, Ae), U8.register(De, Fe, Ae), mP.register(De, Fe, Ae), gP.register(De, Fe, Ae), F3.register(De, Fe, Ae), mM.register(De, Fe, Ae), QP.register(De, Fe, Ae), A5.register(De, Fe, Ae), U5.register(De, Fe, Ae));
47094
+ cu || (cu = !0, u1.register(De, Fe, Ae), Yx.register(De, Fe, Ae), f1.register(De, Fe, Ae), $1.registerDesigner(De, Fe, Ae), tC.register(De, Fe, Ae), aC.register(De, Fe, Ae), oC.register(De, Fe, Ae), rC.register(De, Fe, Ae), SC.register(De, Fe), kw.register(De, Fe, Ae), rw.registerDesigner(De, Fe, Ae), s2.register(De, Fe, Ae), T2.register(De, Fe, Ae), G2.register(De, Fe, Ae), Z5.register(De, Fe, Ae), dk.register(De, Fe, Ae), tB.register(De, Fe, Ae), xB.register(De, Fe, Ae), wB.register(De, Fe, Ae), ZB.register(De, Fe, Ae), $D.register(De, Fe, Ae), hD.registerDesigner(De, Fe, Ae), rF.register(De, Fe, Ae), IF.register(De, Fe, Ae), YF.register(De, Fe, Ae), uT.register(De, Fe, Ae), TT.register(De, Fe, Ae), IT.register(De, Fe, Ae), tA.register(De, Fe, Ae), yA.register(De, Fe, Ae), OA.register(De, Fe, Ae), iI.register(De, Fe, Ae), AI.register(De, Fe, Ae), EI.register(De, Fe, Ae), KI.register(De, Fe, Ae), x4.register(De, Fe, Ae), TE.register(De, Fe, Ae), UT.register(De, Fe, Ae), GE.register(De, Fe, Ae), KE.register(De, Fe, Ae), f$.register(De, Fe, Ae), G$.register(De, Fe, Ae), cP.register(De, Fe, Ae), dP.register(De, Fe, Ae), CP.register(De, Fe, Ae), SP.register(De, Fe, Ae), UP.register(De, Fe, Ae), m8.register(De, Fe, Ae), g8.register(De, Fe, Ae), F3.register(De, Fe, Ae), mM.register(De, Fe, Ae), Q8.register(De, Fe, Ae), A5.register(De, Fe, Ae), U5.register(De, Fe, Ae));
47094
47095
  }
47095
47096
  function Uf() {
47096
47097
  K5();