@farris/ui-vue 1.2.6 → 1.2.7

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 (74) hide show
  1. package/components/accordion/index.esm.js +147 -139
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +11 -28
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/checkbox/index.esm.js +33 -50
  6. package/components/checkbox/index.umd.cjs +1 -1
  7. package/components/combo-list/index.esm.js +183 -171
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/condition/index.esm.js +236 -235
  10. package/components/condition/index.umd.cjs +1 -1
  11. package/components/data-grid/index.esm.js +1531 -1560
  12. package/components/data-grid/index.umd.cjs +1 -1
  13. package/components/data-view/index.esm.js +1299 -1300
  14. package/components/data-view/index.umd.cjs +1 -1
  15. package/components/date-picker/index.esm.js +235 -252
  16. package/components/date-picker/index.umd.cjs +1 -1
  17. package/components/dynamic-form/index.esm.js +127 -143
  18. package/components/dynamic-form/index.umd.cjs +1 -1
  19. package/components/dynamic-view/index.esm.js +206 -201
  20. package/components/dynamic-view/index.umd.cjs +1 -1
  21. package/components/external-container/index.esm.js +650 -647
  22. package/components/external-container/index.umd.cjs +1 -1
  23. package/components/field-selector/index.esm.js +1101 -1131
  24. package/components/field-selector/index.umd.cjs +1 -1
  25. package/components/filter-bar/index.esm.js +335 -332
  26. package/components/filter-bar/index.umd.cjs +1 -1
  27. package/components/input-group/index.esm.js +128 -145
  28. package/components/input-group/index.umd.cjs +1 -1
  29. package/components/list-view/index.esm.js +306 -303
  30. package/components/list-view/index.umd.cjs +1 -1
  31. package/components/lookup/index.esm.js +2470 -2469
  32. package/components/lookup/index.umd.cjs +1 -1
  33. package/components/mapping-editor/index.esm.js +1928 -1958
  34. package/components/mapping-editor/index.umd.cjs +1 -1
  35. package/components/order/index.esm.js +802 -788
  36. package/components/order/index.umd.cjs +1 -1
  37. package/components/page-header/index.esm.js +116 -137
  38. package/components/page-header/index.umd.cjs +1 -1
  39. package/components/property-editor/index.esm.js +533 -521
  40. package/components/property-editor/index.umd.cjs +2 -2
  41. package/components/property-panel/index.esm.js +178 -177
  42. package/components/property-panel/index.umd.cjs +1 -1
  43. package/components/radio-group/index.esm.js +56 -73
  44. package/components/radio-group/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +547 -518
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/response-toolbar/index.esm.js +260 -281
  48. package/components/response-toolbar/index.umd.cjs +1 -1
  49. package/components/schema-selector/index.esm.js +598 -617
  50. package/components/schema-selector/index.umd.cjs +2 -2
  51. package/components/switch/index.esm.js +137 -154
  52. package/components/switch/index.umd.cjs +1 -1
  53. package/components/tabs/index.esm.js +109 -130
  54. package/components/tabs/index.umd.cjs +1 -1
  55. package/components/textarea/index.esm.js +103 -120
  56. package/components/textarea/index.umd.cjs +1 -1
  57. package/components/time-picker/index.esm.js +172 -189
  58. package/components/time-picker/index.umd.cjs +1 -1
  59. package/components/transfer/index.esm.js +124 -122
  60. package/components/transfer/index.umd.cjs +1 -1
  61. package/components/tree-grid/index.esm.js +1600 -1630
  62. package/components/tree-grid/index.umd.cjs +1 -1
  63. package/components/tree-view/index.esm.js +245 -246
  64. package/components/tree-view/index.umd.cjs +1 -1
  65. package/farris.all.esm.js +4123 -4112
  66. package/farris.all.umd.cjs +8 -8
  67. package/package.json +1 -1
  68. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  69. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  70. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  71. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  72. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
  73. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
  74. package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
@@ -1,7 +1,7 @@
1
1
  var sa = Object.defineProperty;
2
2
  var la = (t, n, e) => n in t ? sa(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var M = (t, n, e) => la(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { defineComponent as de, ref as d, computed as T, watch as q, createVNode as v, Fragment as Ie, onMounted as me, createTextVNode as xe, mergeProps as $e, nextTick as et, reactive as ua, withDirectives as Yt, resolveDirective as ca, inject as Ve, onUnmounted as da, Teleport as fa, vShow as ma } from "vue";
4
+ import { defineComponent as de, ref as d, computed as T, watch as q, createVNode as v, Fragment as Ve, onMounted as me, createTextVNode as xe, mergeProps as $e, nextTick as et, reactive as ua, withDirectives as Yt, resolveDirective as ca, inject as Ie, onUnmounted as da, Teleport as fa, vShow as ma } from "vue";
5
5
  import { cloneDeep as ha } from "lodash-es";
6
6
  import "bignumber.js";
7
7
  import { withInstall as ya, useDateFormat as pa } from "@farris/ui-vue/components/common";
@@ -99,8 +99,8 @@ function Pe() {
99
99
  let h = l[0];
100
100
  l[0] !== l[1] && (h = l[0] + l[1], l[2] && l[1] !== l[2] && (h += l[2]));
101
101
  const b = new RegExp("[" + h + "]"), x = i.split(b), C = s.split(b);
102
- for (let E = 0; E < C.length; E++)
103
- C[E].indexOf("yyyy") !== -1 && (y.year = Number(x[E])), C[E].indexOf("M") !== -1 && (y.month = Number(x[E] || "1")), C[E].indexOf("d") !== -1 && (y.day = Number(x[E] || "1"));
102
+ for (let H = 0; H < C.length; H++)
103
+ C[H].indexOf("yyyy") !== -1 && (y.year = Number(x[H])), C[H].indexOf("M") !== -1 && (y.month = Number(x[H] || "1")), C[H].indexOf("d") !== -1 && (y.day = Number(x[H] || "1"));
104
104
  } else {
105
105
  const h = (s + "").indexOf("yyyy"), b = (s + "").indexOf("MM"), x = (s + "").indexOf("dd");
106
106
  if (h >= 0) {
@@ -187,7 +187,7 @@ const tt = /* @__PURE__ */ de({
187
187
  equal: b,
188
188
  inPeriod: x,
189
189
  isInitializedDate: C,
190
- equalOrEarlier: E,
190
+ equalOrEarlier: H,
191
191
  isPoint: P
192
192
  } = Le(), {
193
193
  getKeyCodeFromEvent: w
@@ -201,7 +201,7 @@ const tt = /* @__PURE__ */ de({
201
201
  function k(p) {
202
202
  return x(p, m.value);
203
203
  }
204
- function H(p) {
204
+ function E(p) {
205
205
  return !!m.value && P(m.value, p);
206
206
  }
207
207
  function _(p) {
@@ -212,15 +212,15 @@ const tt = /* @__PURE__ */ de({
212
212
  }, p);
213
213
  }
214
214
  const X = (p, B, N) => {
215
- const R = s.value !== "week" && p.tag === ce.current && (u.value && k(p.date) && !H(p.date) || p.range), Q = p.tag === ce.previous || p.tag === ce.next, se = {
215
+ const R = s.value !== "week" && p.tag === ce.current && (u.value && k(p.date) && !E(p.date) || p.range), Q = p.tag === ce.previous || p.tag === ce.next, se = {
216
216
  "f-datepicker-range": R,
217
217
  "f-datepicker-no-currmonth": Q,
218
218
  "f-datepicker-disabled": p.disable,
219
219
  "f-datepicker-singledate": !p.disable
220
220
  }, le = `d_${B}_${N}`;
221
221
  return se[le] = !0, se;
222
- }, I = (p) => {
223
- const B = s.value !== "week" && p.tag === ce.current && (!u.value && _(p.date) || u.value && H(p.date)), N = p.isCurrent && r.value, R = p.highlight && (p.tag === ce.previous || p.tag === ce.next || p.disable);
222
+ }, V = (p) => {
223
+ const B = s.value !== "week" && p.tag === ce.current && (!u.value && _(p.date) || u.value && E(p.date)), N = p.isCurrent && r.value, R = p.highlight && (p.tag === ce.previous || p.tag === ce.next || p.disable);
224
224
  return {
225
225
  "f-datepicker-date": !0,
226
226
  "f-datepicker-selected": B,
@@ -236,14 +236,14 @@ const tt = /* @__PURE__ */ de({
236
236
  function S(p, B) {
237
237
  s.value === "week" && (p.stopPropagation(), n.emit("clickWeek", B));
238
238
  }
239
- function V(p, B) {
239
+ function I(p, B) {
240
240
  const N = w(p);
241
241
  N !== pe.tab && (p.preventDefault(), N === pe.enter || N === pe.space ? F(p, B) : o.value && n.emit("keyDown", B.date));
242
242
  }
243
243
  function ne(p) {
244
244
  m.value && C(m.value.from) && !C(m.value.to) && (e.value.forEach((B) => {
245
245
  B.days.forEach((N) => {
246
- N.range = !!m.value && (E(m.value.from, N.date) && E(N.date, p.date) || E(N.date, m.value.from) && E(p.date, N.date));
246
+ N.range = !!m.value && (H(m.value.from, N.date) && H(N.date, p.date) || H(N.date, m.value.from) && H(p.date, N.date));
247
247
  });
248
248
  }), n.emit("mouseEnter", p.date));
249
249
  }
@@ -254,7 +254,7 @@ const tt = /* @__PURE__ */ de({
254
254
  });
255
255
  }), n.emit("mouseLeave");
256
256
  }
257
- return () => v(Ie, null, [v("div", {
257
+ return () => v(Ve, null, [v("div", {
258
258
  class: "f-datepicker-table-wrapper"
259
259
  }, [v("table", {
260
260
  class: "f-datepicker-table",
@@ -276,7 +276,7 @@ const tt = /* @__PURE__ */ de({
276
276
  tabindex: "0",
277
277
  class: X(N, B, R),
278
278
  onClick: (Q) => F(Q, N),
279
- onKeydown: (Q) => V(Q, N),
279
+ onKeydown: (Q) => I(Q, N),
280
280
  onMouseenter: () => ne(N),
281
281
  onMouseleave: () => $()
282
282
  }, [N.marked && N.marked.marked && v("span", {
@@ -285,7 +285,7 @@ const tt = /* @__PURE__ */ de({
285
285
  "background-color": N.marked.color
286
286
  }
287
287
  }, null), v("div", {
288
- class: I(N)
288
+ class: V(N)
289
289
  }, [N.date.day])]))]))])])])]);
290
290
  }
291
291
  }), Ta = {
@@ -323,7 +323,7 @@ const tt = /* @__PURE__ */ de({
323
323
  })), C = T(() => ({
324
324
  "f-datepicker-header-btn": !0,
325
325
  "f-datepicker-header-btn-disabled": r.value
326
- })), E = T(() => !s.value && !l.value), P = T(() => ({
326
+ })), H = T(() => !s.value && !l.value), P = T(() => ({
327
327
  "f-datepicker-header-btn": !0,
328
328
  "f-datepicker-header-btn-disabled": u.value
329
329
  })), w = T(() => ({
@@ -340,7 +340,7 @@ const tt = /* @__PURE__ */ de({
340
340
  "f-datepicker-header-btn": !0,
341
341
  "f-datepicker-monthLabel": b.value,
342
342
  "f-datepicker-labelBtnNotEdit": !b.value
343
- })), H = T(() => {
343
+ })), E = T(() => {
344
344
  const p = o.value ? o.value.indexOf("yyyy") : 0, B = o.value ? o.value.indexOf("MM") : 0;
345
345
  return p > B ? "MM-yyyy" : "yyyy-MM";
346
346
  });
@@ -350,7 +350,7 @@ const tt = /* @__PURE__ */ de({
350
350
  function X(p) {
351
351
  p.stopPropagation(), n.emit("preRecord");
352
352
  }
353
- function I(p) {
353
+ function V(p) {
354
354
  p.stopPropagation(), n.emit("clickYear");
355
355
  }
356
356
  function F(p) {
@@ -359,7 +359,7 @@ const tt = /* @__PURE__ */ de({
359
359
  function S(p) {
360
360
  p.stopPropagation(), n.emit("nextRecord");
361
361
  }
362
- function V(p) {
362
+ function I(p) {
363
363
  p.stopPropagation(), n.emit("nextPage");
364
364
  }
365
365
  function ne() {
@@ -367,7 +367,7 @@ const tt = /* @__PURE__ */ de({
367
367
  type: "button",
368
368
  class: g.value,
369
369
  onClick: (p) => {
370
- h.value && I(p);
370
+ h.value && V(p);
371
371
  },
372
372
  tabindex: h.value ? "0" : "-1",
373
373
  disabled: y.value === "year"
@@ -393,7 +393,7 @@ const tt = /* @__PURE__ */ de({
393
393
  onClick: _
394
394
  }, [v("i", {
395
395
  class: "f-icon f-icon-arrow-double-60-left"
396
- }, null)]), E.value && v("button", {
396
+ }, null)]), H.value && v("button", {
397
397
  type: "button",
398
398
  "aria-label": e.value,
399
399
  class: P.value,
@@ -402,9 +402,9 @@ const tt = /* @__PURE__ */ de({
402
402
  class: "f-icon f-icon-arrow-chevron-left"
403
403
  }, null)])]), v("div", {
404
404
  class: "f-datepicker-monthYearText"
405
- }, [H.value === "yyyy-MM" ? [ne(), $()] : [$(), ne()]]), v("div", {
405
+ }, [E.value === "yyyy-MM" ? [ne(), $()] : [$(), ne()]]), v("div", {
406
406
  class: "f-datepicker-next-btn"
407
- }, [E.value && v("button", {
407
+ }, [H.value && v("button", {
408
408
  type: "button",
409
409
  "aria-label": a.value,
410
410
  class: w.value,
@@ -414,7 +414,7 @@ const tt = /* @__PURE__ */ de({
414
414
  }, null)]), v("button", {
415
415
  type: "button",
416
416
  class: O.value,
417
- onClick: V
417
+ onClick: I
418
418
  }, [v("i", {
419
419
  class: "f-icon f-icon-arrow-double-60-right"
420
420
  }, null)])])]);
@@ -433,16 +433,16 @@ const tt = /* @__PURE__ */ de({
433
433
  10: "十月",
434
434
  11: "十一月",
435
435
  12: "十二月"
436
- }, It = {}, Vt = {};
436
+ }, Vt = {}, It = {};
437
437
  function ut(t) {
438
438
  const { properties: n, title: e } = t, a = Object.keys(n).reduce((o, r) => (o[r] = n[r].type === "object" && n[r].properties ? ut(n[r]) : ha(n[r].default), o), {});
439
439
  return a.id = `${e}-${Date.now()}`, a;
440
440
  }
441
441
  function at(t, n = {}) {
442
- const e = It[t];
442
+ const e = Vt[t];
443
443
  if (e) {
444
444
  let a = ut(e);
445
- const o = Vt[t];
445
+ const o = It[t];
446
446
  return a = o ? o({ getSchemaByType: at }, a, n) : a, a;
447
447
  }
448
448
  return null;
@@ -638,7 +638,7 @@ const W = {
638
638
  }, Da = {}, Oa = {};
639
639
  Ca();
640
640
  function ct(t, n, e = /* @__PURE__ */ new Map(), a = (u, c, f) => c, o = {}, r = (u) => u) {
641
- return It[n.title] = n, Vt[n.title] = a, Da[n.title] = o, Oa[n.title] = r, (u = {}) => {
641
+ return Vt[n.title] = n, It[n.title] = a, Da[n.title] = o, Oa[n.title] = r, (u = {}) => {
642
642
  const c = Pa(u, n, e), f = Object.keys(t).reduce((m, i) => (m[i] = t[i].default, m), {});
643
643
  return Object.assign(f, c);
644
644
  };
@@ -652,7 +652,7 @@ const _t = /* @__PURE__ */ new Map([
652
652
  function $t(t, n, e) {
653
653
  return n;
654
654
  }
655
- const Ba = "https://json-schema.org/draft/2020-12/schema", Na = "https://farris-design.gitee.io/date-view.schema.json", Sa = "date-view", Ea = "A Farris Input Component", Ha = "object", Fa = {
655
+ const Ba = "https://json-schema.org/draft/2020-12/schema", Na = "https://farris-design.gitee.io/date-view.schema.json", Sa = "date-view", Ha = "A Farris Input Component", Ea = "object", Fa = {
656
656
  id: {
657
657
  description: "The unique identifier for date picker",
658
658
  type: "string"
@@ -691,11 +691,11 @@ const Ba = "https://json-schema.org/draft/2020-12/schema", Na = "https://farris-
691
691
  $schema: Ba,
692
692
  $id: Na,
693
693
  title: Sa,
694
- description: Ea,
695
- type: Ha,
694
+ description: Ha,
695
+ type: Ea,
696
696
  properties: Fa,
697
697
  required: Ya
698
- }, Wa = "date-view", Ia = "A Farris Component", Va = "object", La = {
698
+ }, Wa = "date-view", Va = "A Farris Component", Ia = "object", La = {
699
699
  basic: {
700
700
  description: "Basic Infomation",
701
701
  title: "基本信息",
@@ -730,8 +730,8 @@ const Ba = "https://json-schema.org/draft/2020-12/schema", Na = "https://farris-
730
730
  }
731
731
  }, _a = {
732
732
  title: Wa,
733
- description: Ia,
734
- type: Va,
733
+ description: Va,
734
+ type: Ia,
735
735
  categories: La
736
736
  }, Rt = {
737
737
  /** */
@@ -873,12 +873,12 @@ function qt(t, n) {
873
873
  }
874
874
  const Ut = 6048e5, Ra = 864e5, dt = 6e4, ft = 36e5, ja = 1e3;
875
875
  let qa = {};
876
- function He() {
876
+ function Ee() {
877
877
  return qa;
878
878
  }
879
879
  function be(t, n) {
880
880
  var c, f, m, i;
881
- const e = He(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((i = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = ue(t), r = o.getDay(), u = (r < a ? 7 : 0) + r - a;
881
+ const e = Ee(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((i = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = ue(t), r = o.getDay(), u = (r < a ? 7 : 0) + r - a;
882
882
  return o.setDate(o.getDate() - u), o.setHours(0, 0, 0, 0), o;
883
883
  }
884
884
  function Ne(t) {
@@ -1372,7 +1372,7 @@ function zt(t) {
1372
1372
  }
1373
1373
  function ht(t, n) {
1374
1374
  var i, s, l, y;
1375
- const e = ue(t), a = e.getFullYear(), o = He(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((s = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((y = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, u = ae(t, 0);
1375
+ const e = ue(t), a = e.getFullYear(), o = Ee(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((s = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((y = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, u = ae(t, 0);
1376
1376
  u.setFullYear(a + 1, 0, r), u.setHours(0, 0, 0, 0);
1377
1377
  const c = be(u, n), f = ae(t, 0);
1378
1378
  f.setFullYear(a, 0, r), f.setHours(0, 0, 0, 0);
@@ -1381,7 +1381,7 @@ function ht(t, n) {
1381
1381
  }
1382
1382
  function No(t, n) {
1383
1383
  var c, f, m, i;
1384
- const e = He(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((i = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, o = ht(t, n), r = ae(t, 0);
1384
+ const e = Ee(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((i = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, o = ht(t, n), r = ae(t, 0);
1385
1385
  return r.setFullYear(o, 0, a), r.setHours(0, 0, 0, 0), be(r, n);
1386
1386
  }
1387
1387
  function Xt(t, n) {
@@ -1881,7 +1881,7 @@ const ge = {
1881
1881
  return "Z";
1882
1882
  switch (n) {
1883
1883
  case "X":
1884
- return Et(a);
1884
+ return Ht(a);
1885
1885
  case "XXXX":
1886
1886
  case "XX":
1887
1887
  return ke(a);
@@ -1896,7 +1896,7 @@ const ge = {
1896
1896
  const a = t.getTimezoneOffset();
1897
1897
  switch (n) {
1898
1898
  case "x":
1899
- return Et(a);
1899
+ return Ht(a);
1900
1900
  case "xxxx":
1901
1901
  case "xx":
1902
1902
  return ke(a);
@@ -1947,14 +1947,14 @@ function St(t, n = "") {
1947
1947
  const e = t > 0 ? "-" : "+", a = Math.abs(t), o = Math.trunc(a / 60), r = a % 60;
1948
1948
  return r === 0 ? e + String(o) : e + String(o) + n + z(r, 2);
1949
1949
  }
1950
- function Et(t, n) {
1950
+ function Ht(t, n) {
1951
1951
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + z(Math.abs(t) / 60, 2) : ke(t, n);
1952
1952
  }
1953
1953
  function ke(t, n = "") {
1954
1954
  const e = t > 0 ? "-" : "+", a = Math.abs(t), o = z(Math.trunc(a / 60), 2), r = z(a % 60, 2);
1955
1955
  return e + o + n + r;
1956
1956
  }
1957
- const Ht = (t, n) => {
1957
+ const Et = (t, n) => {
1958
1958
  switch (t) {
1959
1959
  case "P":
1960
1960
  return n.date({ width: "short" });
@@ -1981,7 +1981,7 @@ const Ht = (t, n) => {
1981
1981
  }, So = (t, n) => {
1982
1982
  const e = t.match(/(P+)(p+)?/) || [], a = e[1], o = e[2];
1983
1983
  if (!o)
1984
- return Ht(t, n);
1984
+ return Et(t, n);
1985
1985
  let r;
1986
1986
  switch (a) {
1987
1987
  case "P":
@@ -1998,16 +1998,16 @@ const Ht = (t, n) => {
1998
1998
  r = n.dateTime({ width: "full" });
1999
1999
  break;
2000
2000
  }
2001
- return r.replace("{{date}}", Ht(a, n)).replace("{{time}}", Kt(o, n));
2001
+ return r.replace("{{date}}", Et(a, n)).replace("{{time}}", Kt(o, n));
2002
2002
  }, ot = {
2003
2003
  p: Kt,
2004
2004
  P: So
2005
- }, Eo = /^D+$/, Ho = /^Y+$/, Fo = ["D", "DD", "YY", "YYYY"];
2005
+ }, Ho = /^D+$/, Eo = /^Y+$/, Fo = ["D", "DD", "YY", "YYYY"];
2006
2006
  function Zt(t) {
2007
- return Eo.test(t);
2007
+ return Ho.test(t);
2008
2008
  }
2009
2009
  function Jt(t) {
2010
- return Ho.test(t);
2010
+ return Eo.test(t);
2011
2011
  }
2012
2012
  function rt(t, n, e) {
2013
2013
  const a = Yo(t, n, e);
@@ -2017,10 +2017,10 @@ function Yo(t, n, e) {
2017
2017
  const a = t[0] === "Y" ? "years" : "days of the month";
2018
2018
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${a} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2019
2019
  }
2020
- const Ao = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Io = /^'([^]*?)'?$/, Vo = /''/g, Lo = /[a-zA-Z]/;
2020
+ const Ao = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vo = /^'([^]*?)'?$/, Io = /''/g, Lo = /[a-zA-Z]/;
2021
2021
  function Oe(t, n, e) {
2022
2022
  var i, s, l, y;
2023
- const a = He(), o = a.locale ?? Qt, r = a.firstWeekContainsDate ?? ((s = (i = a.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? 1, u = a.weekStartsOn ?? ((y = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : y.weekStartsOn) ?? 0, c = ue(t);
2023
+ const a = Ee(), o = a.locale ?? Qt, r = a.firstWeekContainsDate ?? ((s = (i = a.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? 1, u = a.weekStartsOn ?? ((y = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : y.weekStartsOn) ?? 0, c = ue(t);
2024
2024
  if (!mt(c))
2025
2025
  throw new RangeError("Invalid time value");
2026
2026
  let f = n.match(Wo).map((h) => {
@@ -2059,11 +2059,11 @@ function Oe(t, n, e) {
2059
2059
  }).join("");
2060
2060
  }
2061
2061
  function _o(t) {
2062
- const n = t.match(Io);
2063
- return n ? n[1].replace(Vo, "'") : t;
2062
+ const n = t.match(Vo);
2063
+ return n ? n[1].replace(Io, "'") : t;
2064
2064
  }
2065
2065
  function $o() {
2066
- return Object.assign({}, He());
2066
+ return Object.assign({}, Ee());
2067
2067
  }
2068
2068
  function Ro(t) {
2069
2069
  let e = ue(t).getDay();
@@ -2858,7 +2858,7 @@ class cr extends U {
2858
2858
  }
2859
2859
  function pt(t, n, e) {
2860
2860
  var s, l, y, h;
2861
- const a = He(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (s = e == null ? void 0 : e.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? a.weekStartsOn ?? ((h = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : h.weekStartsOn) ?? 0, r = ue(t), u = r.getDay(), f = (n % 7 + 7) % 7, m = 7 - o, i = n < 0 || n > 6 ? n - (u + m) % 7 : (f + m) % 7 - (u + m) % 7;
2861
+ const a = Ee(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (s = e == null ? void 0 : e.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? a.weekStartsOn ?? ((h = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : h.weekStartsOn) ?? 0, r = ue(t), u = r.getDay(), f = (n % 7 + 7) % 7, m = 7 - o, i = n < 0 || n > 6 ? n - (u + m) % 7 : (f + m) % 7 - (u + m) % 7;
2862
2862
  return qt(r, i);
2863
2863
  }
2864
2864
  class dr extends U {
@@ -3531,17 +3531,17 @@ const Nr = {
3531
3531
  x: new Dr(),
3532
3532
  t: new Or(),
3533
3533
  T: new Br()
3534
- }, Sr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Er = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hr = /^'([^]*?)'?$/, Fr = /''/g, Yr = /\S/, Ar = /[a-zA-Z]/;
3534
+ }, Sr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Er = /^'([^]*?)'?$/, Fr = /''/g, Yr = /\S/, Ar = /[a-zA-Z]/;
3535
3535
  function Ft(t, n, e, a) {
3536
- var b, x, C, E;
3537
- const o = $o(), r = o.locale ?? Qt, u = o.firstWeekContainsDate ?? ((x = (b = o.locale) == null ? void 0 : b.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = o.weekStartsOn ?? ((E = (C = o.locale) == null ? void 0 : C.options) == null ? void 0 : E.weekStartsOn) ?? 0;
3536
+ var b, x, C, H;
3537
+ const o = $o(), r = o.locale ?? Qt, u = o.firstWeekContainsDate ?? ((x = (b = o.locale) == null ? void 0 : b.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = o.weekStartsOn ?? ((H = (C = o.locale) == null ? void 0 : C.options) == null ? void 0 : H.weekStartsOn) ?? 0;
3538
3538
  if (n === "")
3539
3539
  return t === "" ? ue(e) : ae(e, NaN);
3540
3540
  const f = {
3541
3541
  firstWeekContainsDate: u,
3542
3542
  weekStartsOn: c,
3543
3543
  locale: r
3544
- }, m = [new Go()], i = n.match(Er).map((P) => {
3544
+ }, m = [new Go()], i = n.match(Hr).map((P) => {
3545
3545
  const w = P[0];
3546
3546
  if (w in ot) {
3547
3547
  const O = ot[w];
@@ -3555,12 +3555,12 @@ function Ft(t, n, e, a) {
3555
3555
  if (O) {
3556
3556
  const { incompatibleTokens: g } = O;
3557
3557
  if (Array.isArray(g)) {
3558
- const H = s.find(
3558
+ const E = s.find(
3559
3559
  (_) => g.includes(_.token) || _.token === w
3560
3560
  );
3561
- if (H)
3561
+ if (E)
3562
3562
  throw new RangeError(
3563
- `The format string mustn't contain \`${H.fullToken}\` and \`${P}\` at the same time`
3563
+ `The format string mustn't contain \`${E.fullToken}\` and \`${P}\` at the same time`
3564
3564
  );
3565
3565
  } else if (O.incompatibleTokens === "*" && s.length > 0)
3566
3566
  throw new RangeError(
@@ -3605,7 +3605,7 @@ function Ft(t, n, e, a) {
3605
3605
  return ae(e, y);
3606
3606
  }
3607
3607
  function Wr(t) {
3608
- return t.match(Hr)[1].replace(Fr, "'");
3608
+ return t.match(Er)[1].replace(Fr, "'");
3609
3609
  }
3610
3610
  function Ze(t, n) {
3611
3611
  const a = _r(t);
@@ -3642,7 +3642,7 @@ const Re = {
3642
3642
  dateTimeDelimiter: /[T ]/,
3643
3643
  timeZoneDelimiter: /[Z ]/i,
3644
3644
  timezone: /([Z+-].*)$/
3645
- }, Ir = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Vr = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Lr = /^([+-])(\d{2})(?::?(\d{2}))?$/;
3645
+ }, Vr = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Ir = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Lr = /^([+-])(\d{2})(?::?(\d{2}))?$/;
3646
3646
  function _r(t) {
3647
3647
  const n = {}, e = t.split(Re.dateTimeDelimiter);
3648
3648
  let a;
@@ -3670,7 +3670,7 @@ function $r(t, n) {
3670
3670
  }
3671
3671
  function Rr(t, n) {
3672
3672
  if (n === null) return /* @__PURE__ */ new Date(NaN);
3673
- const e = t.match(Ir);
3673
+ const e = t.match(Vr);
3674
3674
  if (!e) return /* @__PURE__ */ new Date(NaN);
3675
3675
  const a = !!e[4], o = We(e[1]), r = We(e[2]) - 1, u = We(e[3]), c = We(e[4]), f = We(e[5]) - 1;
3676
3676
  if (a)
@@ -3684,7 +3684,7 @@ function We(t) {
3684
3684
  return t ? parseInt(t) : 1;
3685
3685
  }
3686
3686
  function jr(t) {
3687
- const n = t.match(Vr);
3687
+ const n = t.match(Ir);
3688
3688
  if (!n) return NaN;
3689
3689
  const e = Je(n[1]), a = Je(n[2]), o = Je(n[3]);
3690
3690
  return Kr(e, a, o) ? e * ft + a * dt + o * 1e3 : NaN;
@@ -3911,7 +3911,7 @@ function ti(t, n, e, a) {
3911
3911
  "text-left": f.value === "left",
3912
3912
  "text-center": f.value === "center",
3913
3913
  "text-right": f.value === "right"
3914
- })), E = T(() => {
3914
+ })), H = T(() => {
3915
3915
  const S = {
3916
3916
  "f-cmp-inputgroup": !0,
3917
3917
  "input-group": !0,
@@ -3922,16 +3922,16 @@ function ti(t, n, e, a) {
3922
3922
  };
3923
3923
  return (t.customClass || "").split(" ").reduce((ne, $) => (ne[$] = !0, ne), S), S;
3924
3924
  }), P = T(() => c.value ? "" : "border-width : 0 ");
3925
- function w(S, V = !0) {
3926
- e.value = S, a.value !== S && (a.value = S), V && n.emit("change", S), n.emit("update:modelValue", S), n.emit("update:value", S);
3925
+ function w(S, I = !0) {
3926
+ e.value = S, a.value !== S && (a.value = S), I && n.emit("change", S), n.emit("update:modelValue", S), n.emit("update:value", S);
3927
3927
  }
3928
3928
  q(
3929
3929
  () => t.modelValue,
3930
- (S, V) => {
3931
- S !== V && (e.value = S, a.value = S);
3930
+ (S, I) => {
3931
+ S !== I && (e.value = S, a.value = S);
3932
3932
  }
3933
- ), q(() => t.disabled, (S, V) => {
3934
- S !== V && (o.value = S);
3933
+ ), q(() => t.disabled, (S, I) => {
3934
+ S !== I && (o.value = S);
3935
3935
  });
3936
3936
  function O(S) {
3937
3937
  return r.value = !1, n.emit("blur", S), S.stopPropagation(), !1;
@@ -3942,10 +3942,10 @@ function ti(t, n, e, a) {
3942
3942
  function k(S) {
3943
3943
  t.disabled || (c.value && (r.value = !0), i.value && n.emit("focus", S));
3944
3944
  }
3945
- function H(S) {
3945
+ function E(S) {
3946
3946
  n.emit("input", S.target.value);
3947
- const V = S.target.value;
3948
- a.value = V, m.value === "input" && (n.emit("update:modelValue", V), n.emit("update:value", V));
3947
+ const I = S.target.value;
3948
+ a.value = I, m.value === "input" && (n.emit("update:modelValue", I), n.emit("update:value", I));
3949
3949
  }
3950
3950
  function _(S) {
3951
3951
  n.emit("keydown", S);
@@ -3953,13 +3953,13 @@ function ti(t, n, e, a) {
3953
3953
  function X(S) {
3954
3954
  n.emit("keyup", S);
3955
3955
  }
3956
- function I(S) {
3956
+ function V(S) {
3957
3957
  S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
3958
3958
  }
3959
3959
  function F(S) {
3960
3960
  if (m.value === "blur") {
3961
- const V = S.target.value;
3962
- S.stopPropagation(), w(V);
3961
+ const I = S.target.value;
3962
+ S.stopPropagation(), w(I);
3963
3963
  }
3964
3964
  }
3965
3965
  return {
@@ -3968,7 +3968,7 @@ function ti(t, n, e, a) {
3968
3968
  displayText: a,
3969
3969
  editable: s,
3970
3970
  hasFocused: l,
3971
- inputGroupClass: E,
3971
+ inputGroupClass: H,
3972
3972
  inputType: u,
3973
3973
  isEmpty: y,
3974
3974
  modelValue: e,
@@ -3976,10 +3976,10 @@ function ti(t, n, e, a) {
3976
3976
  onBlur: O,
3977
3977
  onClick: g,
3978
3978
  onFocus: k,
3979
- onInput: H,
3979
+ onInput: E,
3980
3980
  onKeydown: _,
3981
3981
  onKeyup: X,
3982
- onMousedown: I,
3982
+ onMousedown: V,
3983
3983
  onTextBoxValueChange: F,
3984
3984
  placeholder: h,
3985
3985
  textBoxClass: C,
@@ -4302,19 +4302,19 @@ const mi = /* @__PURE__ */ de({
4302
4302
  scrollToSelected: y
4303
4303
  } = di(t, n, o, r, u, c), {
4304
4304
  getSelectedClass: h
4305
- } = fi(l, e), b = d(t.hourStep), x = d(t.minuteStep), C = d(t.secondStep), E = d(), P = d(""), w = d(), O = d(t.hideDisabledElements), g = d(0);
4305
+ } = fi(l, e), b = d(t.hourStep), x = d(t.minuteStep), C = d(t.secondStep), H = d(), P = d(""), w = d(), O = d(t.hideDisabledElements), g = d(0);
4306
4306
  q(() => t.defaultOpenValue, (D) => {
4307
- Z(D) && (E.value = D);
4308
- }), q(E, (D) => {
4307
+ Z(D) && (H.value = D);
4308
+ }), q(H, (D) => {
4309
4309
  Z(D) && l.setDefaultOpenValue(D);
4310
- }), E.value = t.defaultOpenValue, q(l.changedValue, (D) => {
4310
+ }), H.value = t.defaultOpenValue, q(l.changedValue, (D) => {
4311
4311
  n.emit("valueChange", D);
4312
4312
  }), q(() => t.modelValue, (D) => {
4313
4313
  k(D);
4314
4314
  }), q(() => t.format, (D) => {
4315
4315
  Z(D) ? P.value = D : P.value = "HH:mm:ss";
4316
4316
  }), q(P, (D) => {
4317
- Z(D) && (l.setFormat(P.value), g.value = 0, F.value && g.value++, S.value && g.value++, V.value && g.value++, w.value && (g.value++, R()), a.value = g.value * 66);
4317
+ Z(D) && (l.setFormat(P.value), g.value = 0, F.value && g.value++, S.value && g.value++, I.value && g.value++, w.value && (g.value++, R()), a.value = g.value * 66);
4318
4318
  }), q(() => t.use12Hours, (D) => {
4319
4319
  w.value = D;
4320
4320
  }), q(w, (D) => {
@@ -4334,7 +4334,7 @@ const mi = /* @__PURE__ */ de({
4334
4334
  } else
4335
4335
  l.setUse12Hours(w.value);
4336
4336
  }
4337
- function H() {
4337
+ function E() {
4338
4338
  let D = [];
4339
4339
  return t.disabledHours && (D = t.disabledHours(), w.value && (l.selected12Hours === "PM" ? D = D.filter((A) => A >= 12).map((A) => A > 12 ? A - 12 : A) : D = D.filter((A) => A < 12 || A === 24).map((A) => A === 24 || A === 0 ? 12 : A))), D;
4340
4340
  }
@@ -4346,14 +4346,14 @@ const mi = /* @__PURE__ */ de({
4346
4346
  "time-picker-panel-column-3": !0,
4347
4347
  "time-picker-panel-placement-bottomLeft": !0,
4348
4348
  "f-area-show": !0
4349
- })), I = T(() => ({
4349
+ })), V = T(() => ({
4350
4350
  width: w.value ? `${a.value}px` : "100%"
4351
- })), F = T(() => _("hour")), S = T(() => _("minute")), V = T(() => _("second"));
4351
+ })), F = T(() => _("hour")), S = T(() => _("minute")), I = T(() => _("second"));
4352
4352
  function ne(D, A = 1, fe = 0) {
4353
4353
  return A = Math.ceil(A), new Array(Math.ceil(D / A)).fill(0).map((K, Te) => (Te + fe) * A);
4354
4354
  }
4355
4355
  function $() {
4356
- if (F.value && f.value && y(f.value, Z(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), S.value && m.value && y(m.value, Z(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), V.value && i.value && y(i.value, Z(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), w.value && s.value) {
4356
+ if (F.value && f.value && y(f.value, Z(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), S.value && m.value && y(m.value, Z(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), I.value && i.value && y(i.value, Z(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), w.value && s.value) {
4357
4357
  const A = (Z(l.selected12Hours) ? l.selected12Hours : l.default12Hours) === "AM" ? 0 : 1;
4358
4358
  y(s.value, A, 0, "12-hour", l);
4359
4359
  }
@@ -4361,7 +4361,7 @@ const mi = /* @__PURE__ */ de({
4361
4361
  function p() {
4362
4362
  let D = 24, A = 0;
4363
4363
  w.value && (D = 12, A = 1);
4364
- const fe = H();
4364
+ const fe = E();
4365
4365
  if (o.value = ne(D, b.value, A).map((K) => ({
4366
4366
  index: K,
4367
4367
  disabled: fe.length > 0 && fe.indexOf(K) !== -1
@@ -4439,7 +4439,7 @@ const mi = /* @__PURE__ */ de({
4439
4439
  function Me() {
4440
4440
  return t.showHeader ? v("div", {
4441
4441
  class: e + "-combobox time-picker-panel-header",
4442
- style: I.value
4442
+ style: V.value
4443
4443
  }, [F.value && v("div", {
4444
4444
  class: e + "-select",
4445
4445
  style: "height: 32px"
@@ -4449,8 +4449,8 @@ const mi = /* @__PURE__ */ de({
4449
4449
  class: e + "-select",
4450
4450
  style: "height: 32px"
4451
4451
  }, [v("ul", null, [v("li", {
4452
- class: "time-header" + V.value ? "time-header-split" : ""
4453
- }, [xe("分")])])]), V.value && v("div", {
4452
+ class: "time-header" + I.value ? "time-header-split" : ""
4453
+ }, [xe("分")])])]), I.value && v("div", {
4454
4454
  class: e + "-select",
4455
4455
  style: "height: 32px"
4456
4456
  }, [v("ul", null, [v("li", {
@@ -4470,7 +4470,7 @@ const mi = /* @__PURE__ */ de({
4470
4470
  class: e + "-inner"
4471
4471
  }, [Me(), v("div", {
4472
4472
  class: e + "-combobox",
4473
- style: I.value
4473
+ style: V.value
4474
4474
  }, [F.value && v("div", {
4475
4475
  class: e + "-select",
4476
4476
  ref: f
@@ -4483,7 +4483,7 @@ const mi = /* @__PURE__ */ de({
4483
4483
  }, [v("ul", null, [r.value.map((D) => v("li", {
4484
4484
  class: h(D, "minute"),
4485
4485
  onClick: (A) => le(A, D)
4486
- }, [`${D.index}`]))])]), V.value && v("div", {
4486
+ }, [`${D.index}`]))])]), I.value && v("div", {
4487
4487
  class: e + "-select",
4488
4488
  ref: i
4489
4489
  }, [v("ul", null, [u.value.map((D) => v("li", {
@@ -4552,7 +4552,7 @@ const mi = /* @__PURE__ */ de({
4552
4552
  month: O.month
4553
4553
  });
4554
4554
  }
4555
- function E(O) {
4555
+ function H(O) {
4556
4556
  return !!c.value && (f({
4557
4557
  year: c.value.from.month
4558
4558
  }, O) || f({
@@ -4565,7 +4565,7 @@ const mi = /* @__PURE__ */ de({
4565
4565
  const w = (O) => ({
4566
4566
  "f-datepicker-month-cell": !0,
4567
4567
  "f-datepicker-current": O.isCurrent && a.value,
4568
- "f-datepicker-selected": !r.value && C(O.date) || r.value && E(O.date),
4568
+ "f-datepicker-selected": !r.value && C(O.date) || r.value && H(O.date),
4569
4569
  "f-datepicker-disabled": O.disable,
4570
4570
  "f-datepicker-range": P(O.date) || O.range
4571
4571
  });
@@ -4573,9 +4573,9 @@ const mi = /* @__PURE__ */ de({
4573
4573
  class: "f-datepicker-table-wrapper"
4574
4574
  }, [v("table", {
4575
4575
  class: "f-datepicker-table"
4576
- }, [v("tbody", null, [e.value && e.value.map((O, g) => v("tr", null, [O.map((k, H) => v("td", {
4577
- id: `m_${g}_${H}`,
4578
- class: `m_${g}_${H}`,
4576
+ }, [v("tbody", null, [e.value && e.value.map((O, g) => v("tr", null, [O.map((k, E) => v("td", {
4577
+ id: `m_${g}_${E}`,
4578
+ class: `m_${g}_${E}`,
4579
4579
  onClick: (_) => y(_, k),
4580
4580
  onKeydown: (_) => h(_, k),
4581
4581
  onMouseenter: () => b(k),
@@ -4614,10 +4614,10 @@ const mi = /* @__PURE__ */ de({
4614
4614
  u.value = t.selected;
4615
4615
  });
4616
4616
  const y = (g, k) => {
4617
- const H = `y_${g}_${k}`, _ = {
4617
+ const E = `y_${g}_${k}`, _ = {
4618
4618
  "f-datepicker-no-currmonth": g === 0 && k === 0 || g === 3 && k === 2
4619
4619
  };
4620
- return _[H] = !0, _;
4620
+ return _[E] = !0, _;
4621
4621
  };
4622
4622
  function h(g) {
4623
4623
  return m(g, c.value);
@@ -4641,17 +4641,17 @@ const mi = /* @__PURE__ */ de({
4641
4641
  "f-datepicker-disabled": g.disable,
4642
4642
  "f-datepicker-range": h(g.date) || g.range
4643
4643
  });
4644
- function E(g, k) {
4644
+ function H(g, k) {
4645
4645
  g.stopPropagation(), !k.disable && n.emit("click", k);
4646
4646
  }
4647
4647
  function P(g, k) {
4648
- const H = l(g);
4649
- H !== pe.tab && (g.preventDefault(), H === pe.enter || H === pe.space ? E(g, k) : o.value && n.emit("keyDown", k));
4648
+ const E = l(g);
4649
+ E !== pe.tab && (g.preventDefault(), E === pe.enter || E === pe.space ? H(g, k) : o.value && n.emit("keyDown", k));
4650
4650
  }
4651
4651
  function w(g) {
4652
4652
  c.value && i(c.value.from) && !i(c.value.to) && (e.value.forEach((k) => {
4653
- k.forEach((H) => {
4654
- H.range = !!c.value && (s(c.value.from, H.date) && s(H.date, g.date) || s(H.date, c.value.from) && s(g.date, H.date));
4653
+ k.forEach((E) => {
4654
+ E.range = !!c.value && (s(c.value.from, E.date) && s(E.date, g.date) || s(E.date, c.value.from) && s(g.date, E.date));
4655
4655
  });
4656
4656
  }), n.emit("mouseEnter", g));
4657
4657
  }
@@ -4666,19 +4666,19 @@ const mi = /* @__PURE__ */ de({
4666
4666
  class: "f-datepicker-table-wrapper"
4667
4667
  }, [v("tbody", {
4668
4668
  class: "f-datepicker-table"
4669
- }, [e.value && e.value.map((g, k) => v("tr", null, [g.map((H, _) => v("td", {
4669
+ }, [e.value && e.value.map((g, k) => v("tr", null, [g.map((E, _) => v("td", {
4670
4670
  id: "y_{yi}_{i}",
4671
4671
  class: y(k, _),
4672
- onClick: (X) => E(X, H),
4673
- onKeydown: (X) => P(X, H),
4674
- onMouseenter: () => w(H),
4672
+ onClick: (X) => H(X, E),
4673
+ onKeydown: (X) => P(X, E),
4674
+ onMouseenter: () => w(E),
4675
4675
  onMouseleave: () => O(),
4676
4676
  tabindex: "0"
4677
4677
  }, [v("div", {
4678
4678
  class: "f-datepicker-year"
4679
4679
  }, [v("span", {
4680
- class: C(H)
4681
- }, [H.year])])]))]))])]);
4680
+ class: C(E)
4681
+ }, [E.year])])]))]))])]);
4682
4682
  }
4683
4683
  });
4684
4684
  function vt() {
@@ -4789,9 +4789,9 @@ function gt() {
4789
4789
  }
4790
4790
  function c(i, s, l, y) {
4791
4791
  const h = t(), b = [], { year: x } = s, C = 3;
4792
- for (let E = 1; E <= 12; E += C) {
4792
+ for (let H = 1; H <= 12; H += C) {
4793
4793
  const P = [];
4794
- for (let w = E; w < E + C; w++) {
4794
+ for (let w = H; w < H + C; w++) {
4795
4795
  const O = n({ year: x, month: w, day: 1 }, l) || e({ year: x, month: w, day: o(w, x || 0) }, y);
4796
4796
  P.push({
4797
4797
  month: w,
@@ -4834,39 +4834,39 @@ function gi({ isDisabledDate: t }) {
4834
4834
  function s(y, h, b, x, C) {
4835
4835
  return y === C.day && h === C.month && b === C.year && x === ce.current;
4836
4836
  }
4837
- function l(y, h, b, x, C, E, P, w, O) {
4838
- const g = [], k = n(), H = i(h, y, m(b)), _ = e(y, h), X = a(y, h);
4839
- let I = 1, F = ce.previous;
4837
+ function l(y, h, b, x, C, H, P, w, O) {
4838
+ const g = [], k = n(), E = i(h, y, m(b)), _ = e(y, h), X = a(y, h);
4839
+ let V = 1, F = ce.previous;
4840
4840
  for (let S = 1; S < 7; S++) {
4841
- const V = [];
4841
+ const I = [];
4842
4842
  if (S === 1) {
4843
- const $ = X - H + 1;
4843
+ const $ = X - E + 1;
4844
4844
  for (let B = $; B <= X; B++) {
4845
4845
  const N = {
4846
4846
  year: y === 1 ? h - 1 : h,
4847
4847
  month: y === 1 ? 12 : y - 1,
4848
4848
  day: B
4849
- }, R = s(B, y, h, F, k), Q = t(N), se = c(N, x, C), le = u(N, w, P, E);
4850
- V.push({ date: N, tag: F, isCurrent: R, disable: Q, marked: se, highlight: le });
4849
+ }, R = s(B, y, h, F, k), Q = t(N), se = c(N, x, C), le = u(N, w, P, H);
4850
+ I.push({ date: N, tag: F, isCurrent: R, disable: Q, marked: se, highlight: le });
4851
4851
  }
4852
4852
  F = ce.current;
4853
- const p = 7 - V.length;
4853
+ const p = 7 - I.length;
4854
4854
  for (let B = 0; B < p; B++) {
4855
- const N = { year: h, month: y, day: I }, R = s(I, y, h, F, k), Q = t(N), se = c(N, x, C), le = u(N, w, P, E);
4856
- V.push({ date: N, tag: F, isCurrent: R, disable: Q, marked: se, highlight: le }), I++;
4855
+ const N = { year: h, month: y, day: V }, R = s(V, y, h, F, k), Q = t(N), se = c(N, x, C), le = u(N, w, P, H);
4856
+ I.push({ date: N, tag: F, isCurrent: R, disable: Q, marked: se, highlight: le }), V++;
4857
4857
  }
4858
4858
  } else
4859
4859
  for (let $ = 1; $ <= 7; $++) {
4860
- I > _ && (I = 1, F = ce.next);
4860
+ V > _ && (V = 1, F = ce.next);
4861
4861
  const p = {
4862
4862
  year: F === ce.next && y === 12 ? h + 1 : h,
4863
4863
  month: F === ce.current ? y : F === ce.next && y < 12 ? y + 1 : 1,
4864
- day: I
4865
- }, B = s(I, y, h, F, k), N = t(p), R = c(p, x, C), Q = u(p, w, P, E);
4866
- V.push({ date: p, tag: F, isCurrent: B, disable: N, marked: R, highlight: Q }), I++;
4864
+ day: V
4865
+ }, B = s(V, y, h, F, k), N = t(p), R = c(p, x, C), Q = u(p, w, P, H);
4866
+ I.push({ date: p, tag: F, isCurrent: B, disable: N, marked: R, highlight: Q }), V++;
4867
4867
  }
4868
- const ne = O && b === "Mon." ? f(V[0].date) : 0;
4869
- g.push({ days: V, numberInTheYear: ne, year: h });
4868
+ const ne = O && b === "Mon." ? f(I[0].date) : 0;
4869
+ g.push({ days: I, numberInTheYear: ne, year: h });
4870
4870
  }
4871
4871
  return g;
4872
4872
  }
@@ -4876,9 +4876,9 @@ function bi() {
4876
4876
  const { getToday: t } = Pe(), { daysInMonth: n } = gt(), { isMonthDisabledByDisableSince: e, isMonthDisabledByDisableUntil: a } = un();
4877
4877
  function o(r, u, c, f, m, i) {
4878
4878
  const s = [], l = r - r % 10, { year: y, month: h } = u, b = t(), x = 3, C = l + 10;
4879
- for (let E = l - 1; E < C; E += x) {
4879
+ for (let H = l - 1; H < C; H += x) {
4880
4880
  const P = [];
4881
- for (let w = E; w < E + x; w++) {
4881
+ for (let w = H; w < H + x; w++) {
4882
4882
  const O = e({ year: w, month: h, day: 1 }, m) || a({ year: w, month: h, day: n(h || 0, w) }, i), g = w < c || w > f;
4883
4883
  P.push({
4884
4884
  year: w,
@@ -4976,9 +4976,9 @@ const Se = /* @__PURE__ */ de({
4976
4976
  props: Rt,
4977
4977
  emits: ["datePicked", "confirm"],
4978
4978
  setup(t, n) {
4979
- const e = d(), a = d(""), o = d(t.mode), r = d(t.top), u = d(t.left), c = d(t.position), f = d(t.enablePeriod), m = d(t.selectMode), i = d(t.dateFormat), s = d(t.nameOfMonths), l = d(t.valueFormat), y = d([]), h = d(!1), b = d(""), x = d(!1), C = d(""), E = d(), P = d(!1), w = d(!1), O = d(!1), g = d(!1), k = d(!1), H = d(!1), _ = d(!1), X = d(!1);
4979
+ const e = d(), a = d(""), o = d(t.mode), r = d(t.top), u = d(t.left), c = d(t.position), f = d(t.enablePeriod), m = d(t.selectMode), i = d(t.dateFormat), s = d(t.nameOfMonths), l = d(t.valueFormat), y = d([]), h = d(!1), b = d(""), x = d(!1), C = d(""), H = d(), P = d(!1), w = d(!1), O = d(!1), g = d(!1), k = d(!1), E = d(!1), _ = d(!1), X = d(!1);
4980
4980
  d(t.secondaryDates);
4981
- const I = d(t.daysInWeek), F = d(t.enableKeyboadNavigate), S = d(t.enableMarkCurrent), V = d(t.firstDayOfTheWeek), ne = d(t.showWeekNumber), $ = d(t.selectedDate), p = d(t.selectedSecondDate), B = d(t.value), N = d(t.selectedWeek), R = d(t.selectedPeriod), Q = d(t.weekTitle), se = d(t.secondaryMonths), le = d(t.selectedMonth), Ce = d(t.minYear), we = d(t.maxYear), Me = d(t.disableSince), D = d(t.disableUntil), A = d(t.disableDates), fe = d(t.disablePeriod), K = d(t.disableWeekdays), Te = d(t.disableWeekends), bn = pi(Ce.value, we.value, Me.value, D.value, A.value, fe.value, Te.value, K.value), {
4981
+ const V = d(t.daysInWeek), F = d(t.enableKeyboadNavigate), S = d(t.enableMarkCurrent), I = d(t.firstDayOfTheWeek), ne = d(t.showWeekNumber), $ = d(t.selectedDate), p = d(t.selectedSecondDate), B = d(t.value), N = d(t.selectedWeek), R = d(t.selectedPeriod), Q = d(t.weekTitle), se = d(t.secondaryMonths), le = d(t.selectedMonth), Ce = d(t.minYear), we = d(t.maxYear), Me = d(t.disableSince), D = d(t.disableUntil), A = d(t.disableDates), fe = d(t.disablePeriod), K = d(t.disableWeekdays), Te = d(t.disableWeekends), bn = pi(Ce.value, we.value, Me.value, D.value, A.value, fe.value, Te.value, K.value), {
4982
4982
  formatTo: wn
4983
4983
  } = ln(), {
4984
4984
  generateCalendar: Mt
@@ -5003,10 +5003,10 @@ const Se = /* @__PURE__ */ de({
5003
5003
  month: Dn,
5004
5004
  displayTextOfMonth: s.value[J.month || "1"],
5005
5005
  displayTextOfYear: `${Tt}`
5006
- }), On = T(() => Mt(j.value.month, j.value.year, V.value, [], {
5006
+ }), On = T(() => Mt(j.value.month, j.value.year, I.value, [], {
5007
5007
  marked: !0,
5008
5008
  color: ""
5009
- }, t.highlightDates, t.highlightSaturday, t.highlightSunday, ne.value)), Bn = T(() => Mt(Qe.value.month, Qe.value.year, V.value, [], {
5009
+ }, t.highlightDates, t.highlightSaturday, t.highlightSunday, ne.value)), Bn = T(() => Mt(Qe.value.month, Qe.value.year, I.value, [], {
5010
5010
  marked: !0,
5011
5011
  color: ""
5012
5012
  }, t.highlightDates, t.highlightSaturday, t.highlightSunday, ne.value)), Nn = T(() => kn(s.value, {
@@ -5024,13 +5024,13 @@ const Se = /* @__PURE__ */ de({
5024
5024
  q(() => t.enablePeriod, (Y, G) => {
5025
5025
  Y !== G && (f.value = Y);
5026
5026
  });
5027
- function En() {
5027
+ function Hn() {
5028
5028
  return f.value ? "" : t.showTime ? "487px" : "287px";
5029
5029
  }
5030
- const Hn = T(() => ({
5030
+ const En = T(() => ({
5031
5031
  top: `${r.value}px`,
5032
5032
  left: `${u.value}px`,
5033
- width: En(),
5033
+ width: Hn(),
5034
5034
  position: o.value === "Embedded" ? "relative" : "absolute",
5035
5035
  "z-index": o.value === "Embedded" ? 0 : 9999,
5036
5036
  "margin-top": "0px"
@@ -5081,10 +5081,10 @@ const Se = /* @__PURE__ */ de({
5081
5081
  function Wn(Y) {
5082
5082
  h.value = !h.value, x.value = !1;
5083
5083
  }
5084
- function In(Y) {
5084
+ function Vn(Y) {
5085
5085
  h.value = !1, x.value = !x.value;
5086
5086
  }
5087
- const Vn = T(() => ({
5087
+ const In = T(() => ({
5088
5088
  "active-month": j.value,
5089
5089
  "date-format": i.value,
5090
5090
  "disable-pre-page": P.value,
@@ -5099,7 +5099,7 @@ const Se = /* @__PURE__ */ de({
5099
5099
  "active-month": Qe.value,
5100
5100
  "date-format": i.value,
5101
5101
  "disable-pre-page": k.value,
5102
- "disable-pre-record": H.value,
5102
+ "disable-pre-record": E.value,
5103
5103
  "disable-next-record": _.value,
5104
5104
  "disable-next-page": X.value,
5105
5105
  years: y.value,
@@ -5114,16 +5114,16 @@ const Se = /* @__PURE__ */ de({
5114
5114
  onNextRecord: (L) => xt(),
5115
5115
  onNextPage: (L) => An(),
5116
5116
  onClickMonth: (L) => Wn(),
5117
- onClickYear: (L) => In()
5117
+ onClickYear: (L) => Vn()
5118
5118
  }), null);
5119
5119
  }
5120
- const Xe = T(() => !h.value && !x.value && !E.value || f.value && m.value !== "week" && !b.value && !C.value && !E.value), _n = T(() => h.value && !x.value), $n = T(() => x.value && !h.value), Rn = T(() => ({
5120
+ const Xe = T(() => !h.value && !x.value && !H.value || f.value && m.value !== "week" && !b.value && !C.value && !H.value), _n = T(() => h.value && !x.value), $n = T(() => x.value && !h.value), Rn = T(() => ({
5121
5121
  dates: On.value,
5122
- daysInWeek: I.value,
5122
+ daysInWeek: V.value,
5123
5123
  enableKeyboadNavigate: F.value,
5124
5124
  enableMarkCurrent: S.value,
5125
5125
  enablePeriod: f.value,
5126
- firstDayOfTheWeek: V.value,
5126
+ firstDayOfTheWeek: I.value,
5127
5127
  selected: $.value,
5128
5128
  selectedPeriod: R.value,
5129
5129
  selectedWeek: N.value,
@@ -5132,11 +5132,11 @@ const Se = /* @__PURE__ */ de({
5132
5132
  weekTitle: Q.value
5133
5133
  })), jn = T(() => ({
5134
5134
  dates: Bn.value,
5135
- daysInWeek: I.value,
5135
+ daysInWeek: V.value,
5136
5136
  enableKeyboadNavigate: F.value,
5137
5137
  enableMarkCurrent: S.value,
5138
5138
  enablePeriod: f.value,
5139
- firstDayOfTheWeek: V.value,
5139
+ firstDayOfTheWeek: I.value,
5140
5140
  selected: p.value,
5141
5141
  selectedPeriod: R.value,
5142
5142
  selectMode: m.value,
@@ -5148,7 +5148,7 @@ const Se = /* @__PURE__ */ de({
5148
5148
  L === "start" ? $.value = Y : p.value = Y, n.emit("datePicked", Y);
5149
5149
  else {
5150
5150
  $.value = Y;
5151
- const ia = l.value.split(" ")[1], ve = je(a.value, ia);
5151
+ const ia = l.value.split(" ") || "HH:mm:ss", ve = je(a.value, ia);
5152
5152
  $.value && ($.value.hour = (ve == null ? void 0 : ve.getHours()) || 0, $.value.minute = (ve == null ? void 0 : ve.getMinutes()) || 0, $.value.second = (ve == null ? void 0 : ve.getSeconds()) || 0);
5153
5153
  }
5154
5154
  }
@@ -5286,31 +5286,31 @@ const Se = /* @__PURE__ */ de({
5286
5286
  }
5287
5287
  function oa() {
5288
5288
  if (a.value) {
5289
- const G = l.value.split(" ")[1], L = je(a.value, G);
5289
+ const G = l.value.split(" ")[1] || "HH:mm:ss", L = je(a.value, G);
5290
5290
  a.value = rn(L, G);
5291
5291
  }
5292
5292
  }
5293
5293
  me(() => {
5294
5294
  if (t.showTime) {
5295
- const G = l.value.split(" ")[1];
5295
+ const G = l.value.split(" ")[1] || "HH:mm:ss";
5296
5296
  a.value = wn(B.value, G), oa();
5297
5297
  }
5298
5298
  });
5299
5299
  const ra = (Y) => {
5300
5300
  a.value = Y.text;
5301
- const L = l.value.split(" ")[1], ee = je(a.value, L);
5301
+ const L = l.value.split(" ")[1] || "HH:mm:ss", ee = je(a.value, L);
5302
5302
  $.value && ($.value.hour = (ee == null ? void 0 : ee.getHours()) || 0, $.value.minute = (ee == null ? void 0 : ee.getMinutes()) || 0, $.value.second = (ee == null ? void 0 : ee.getSeconds()) || 0);
5303
5303
  };
5304
5304
  return () => v("div", {
5305
5305
  class: Sn.value,
5306
- style: Hn.value,
5306
+ style: En.value,
5307
5307
  tabindex: "0",
5308
5308
  onKeyup: (Y) => void 0,
5309
5309
  onClick: (Y) => Fn(Y)
5310
5310
  }, [v("div", {
5311
5311
  class: "f-datepicker-content",
5312
5312
  style: "width:287px"
5313
- }, [Pt(!1, Vn.value), Ct(!1, Rn.value), h.value && Dt(!1, Un.value), x.value && Ot(!1, zn.value), v("div", {
5313
+ }, [Pt(!1, In.value), Ct(!1, Rn.value), h.value && Dt(!1, Un.value), x.value && Ot(!1, zn.value), v("div", {
5314
5314
  class: "f-datepicker-footer"
5315
5315
  }, [v("div", {
5316
5316
  class: "f-datepicker-redirect"
@@ -5508,10 +5508,10 @@ const Se = /* @__PURE__ */ de({
5508
5508
  }, dn = ct(_e, Ni, _t, $t), Si = /* @__PURE__ */ new Map([
5509
5509
  ["appearance", Lt]
5510
5510
  ]);
5511
- function Ei(t, n, e) {
5511
+ function Hi(t, n, e) {
5512
5512
  return n;
5513
5513
  }
5514
- const Hi = "https://json-schema.org/draft/2020-12/schema", Fi = "https://farris-design.gitee.io/input-group.schema.json", Yi = "input-group", Ai = "A Farris Input Component", Wi = "object", Ii = {
5514
+ const Ei = "https://json-schema.org/draft/2020-12/schema", Fi = "https://farris-design.gitee.io/input-group.schema.json", Yi = "input-group", Ai = "A Farris Input Component", Wi = "object", Vi = {
5515
5515
  id: {
5516
5516
  description: "The unique identifier for a Input Group",
5517
5517
  type: "string"
@@ -5713,17 +5713,17 @@ const Hi = "https://json-schema.org/draft/2020-12/schema", Fi = "https://farris-
5713
5713
  type: "string",
5714
5714
  default: ""
5715
5715
  }
5716
- }, Vi = [
5716
+ }, Ii = [
5717
5717
  "id",
5718
5718
  "type"
5719
5719
  ], Li = {
5720
- $schema: Hi,
5720
+ $schema: Ei,
5721
5721
  $id: Fi,
5722
5722
  title: Yi,
5723
5723
  description: Ai,
5724
5724
  type: Wi,
5725
- properties: Ii,
5726
- required: Vi
5725
+ properties: Vi,
5726
+ required: Ii
5727
5727
  }, bt = {
5728
5728
  /** 是否自动完成 */
5729
5729
  autocomplete: { Type: String, default: "off" },
@@ -5790,7 +5790,7 @@ const Hi = "https://json-schema.org/draft/2020-12/schema", Fi = "https://farris-
5790
5790
  * - input: 输入时更新
5791
5791
  */
5792
5792
  updateOn: { type: String, default: "blur" }
5793
- }, fn = ct(bt, Li, Si, Ei);
5793
+ }, fn = ct(bt, Li, Si, Hi);
5794
5794
  function mn(t, n) {
5795
5795
  const e = d(t.groupText), a = T(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), o = T(() => t.enableClear || !!t.groupText);
5796
5796
  return { appendedButtonClass: T(() => ({
@@ -5927,13 +5927,13 @@ function ji(t, n, e, a) {
5927
5927
  onFocus: b,
5928
5928
  onInput: x,
5929
5929
  onClick: C,
5930
- onKeydown: E,
5930
+ onKeydown: H,
5931
5931
  onKeyup: P,
5932
5932
  onMousedown: w,
5933
5933
  onTextBoxValueChange: O,
5934
5934
  readonly: g,
5935
5935
  placeholder: k,
5936
- textBoxClass: H,
5936
+ textBoxClass: E,
5937
5937
  textBoxTitle: _
5938
5938
  } = a;
5939
5939
  return me(() => {
@@ -5942,7 +5942,7 @@ function ji(t, n, e, a) {
5942
5942
  ref: o,
5943
5943
  name: "input-group-value",
5944
5944
  autocomplete: r.value,
5945
- class: H.value,
5945
+ class: E.value,
5946
5946
  disabled: s == null ? void 0 : s.value,
5947
5947
  maxlength: m.value,
5948
5948
  minlength: f.value,
@@ -5957,7 +5957,7 @@ function ji(t, n, e, a) {
5957
5957
  onChange: O,
5958
5958
  onFocus: b,
5959
5959
  onInput: x,
5960
- onKeydown: E,
5960
+ onKeydown: H,
5961
5961
  onKeyup: P,
5962
5962
  onMousedown: w
5963
5963
  }, null);
@@ -6009,14 +6009,14 @@ function yn(t, n, e, a, o) {
6009
6009
  originalEvent: k
6010
6010
  }), k.stopPropagation();
6011
6011
  }
6012
- const E = t.type === "password" ? o.onClickAppendedButton : C;
6012
+ const H = t.type === "password" ? o.onClickAppendedButton : C;
6013
6013
  function P() {
6014
6014
  return v("span", {
6015
6015
  class: "input-group-text",
6016
6016
  onMouseenter: (k) => b(k),
6017
6017
  onMouseleave: (k) => x(k),
6018
6018
  innerHTML: u.value,
6019
- onClick: (k) => E(k)
6019
+ onClick: (k) => H(k)
6020
6020
  }, null);
6021
6021
  }
6022
6022
  function w() {
@@ -6030,7 +6030,7 @@ function yn(t, n, e, a, o) {
6030
6030
  class: r.value
6031
6031
  }, [y.value && h(), g && g()]);
6032
6032
  }
6033
- const Ee = /* @__PURE__ */ de({
6033
+ const He = /* @__PURE__ */ de({
6034
6034
  name: "FInputGroup",
6035
6035
  props: bt,
6036
6036
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
@@ -6044,7 +6044,7 @@ const Ee = /* @__PURE__ */ de({
6044
6044
  } = f, i = sn(t, n, o), {
6045
6045
  onMouseEnter: s,
6046
6046
  onMouseLeave: l
6047
- } = i, y = hn(t, n, u, f), h = Ri(t, n), b = ji(t, n, y, o), x = yn(t, n, f, i, y), C = qi(t, n), E = T(() => t.type === "number");
6047
+ } = i, y = hn(t, n, u, f), h = Ri(t, n), b = ji(t, n, y, o), x = yn(t, n, f, i, y), C = qi(t, n), H = T(() => t.type === "number");
6048
6048
  q(() => [t.value], ([w]) => {
6049
6049
  e.value = w, a.value = w;
6050
6050
  }), q(() => [t.modelValue], ([w]) => {
@@ -6052,13 +6052,13 @@ const Ee = /* @__PURE__ */ de({
6052
6052
  }), me(() => {
6053
6053
  t.value && (e.value = t.value, a.value = t.value);
6054
6054
  });
6055
- const P = () => v(Ie, null, [v("div", {
6055
+ const P = () => v(Ve, null, [v("div", {
6056
6056
  id: "inputGroup",
6057
6057
  class: r.value,
6058
6058
  style: c.value,
6059
6059
  onMouseenter: s,
6060
6060
  onMouseleave: l
6061
- }, [E.value ? h() : v(Ie, null, [C(), b(), m.value && x()])])]);
6061
+ }, [H.value ? h() : v(Ve, null, [C(), b(), m.value && x()])])]);
6062
6062
  return () => P();
6063
6063
  }
6064
6064
  });
@@ -6321,27 +6321,6 @@ class Ui {
6321
6321
  return a;
6322
6322
  }
6323
6323
  }
6324
- getBindingFieldEditorOptions(n) {
6325
- const e = this.formSchemaUtils.getFormMetadataBasicInfo();
6326
- return {
6327
- type: "field-selector",
6328
- bindingType: { enable: !1 },
6329
- editorParams: {
6330
- propertyData: n,
6331
- formBasicInfo: e
6332
- },
6333
- columns: [
6334
- { field: "name", title: "字段名称" },
6335
- { field: "bindingField", title: "绑定字段" },
6336
- { field: "fieldType", title: "字段类型" }
6337
- ],
6338
- beforeOpenDialog: (a) => {
6339
- const o = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
6340
- a.instance.loadData(o);
6341
- },
6342
- textField: "bindingField"
6343
- };
6344
- }
6345
6324
  }
6346
6325
  class gn extends Ui {
6347
6326
  constructor(n, e) {
@@ -6378,10 +6357,14 @@ class gn extends Ui {
6378
6357
  { field: "bindingField", title: "绑定字段" },
6379
6358
  { field: "fieldType", title: "字段类型" }
6380
6359
  ],
6360
+ textField: "bindingField",
6381
6361
  data: a
6382
6362
  }
6383
6363
  };
6384
6364
  }
6365
+ getBindingOtions(n) {
6366
+ return this.getFieldSelectorOptions(n);
6367
+ }
6385
6368
  getComponentConfig(n, e = {}, a = {}) {
6386
6369
  const o = Object.assign({
6387
6370
  description: "组件信息",
@@ -6468,12 +6451,12 @@ function wt(t, n, e) {
6468
6451
  return null;
6469
6452
  if (g.value.schema && g.value.schema.type === "component")
6470
6453
  return g.value;
6471
- const k = d(g == null ? void 0 : g.value.parent), H = s(k);
6472
- return H || null;
6454
+ const k = d(g == null ? void 0 : g.value.parent), E = s(k);
6455
+ return E || null;
6473
6456
  }
6474
6457
  function l(g = n) {
6475
- const { componentInstance: k, designerItemElementRef: H } = g;
6476
- return !k || !k.value ? null : k.value.canMove ? H : l(g.parent);
6458
+ const { componentInstance: k, designerItemElementRef: E } = g;
6459
+ return !k || !k.value ? null : k.value.canMove ? E : l(g.parent);
6477
6460
  }
6478
6461
  function y(g) {
6479
6462
  return !!e && e.canAccepts(g);
@@ -6488,18 +6471,18 @@ function wt(t, n, e) {
6488
6471
  }
6489
6472
  function C(g) {
6490
6473
  const { componentType: k } = g;
6491
- let H = at(k, g);
6492
- e && e.onResolveNewComponentSchema && (H = e.onResolveNewComponentSchema(g, H));
6474
+ let E = at(k, g);
6475
+ e && e.onResolveNewComponentSchema && (E = e.onResolveNewComponentSchema(g, E));
6493
6476
  const _ = k.toLowerCase().replace("-", "_");
6494
- return H && !H.id && H.type === k && (H.id = `${_}_${Math.random().toString().slice(2, 6)}`), H;
6477
+ return E && !E.id && E.type === k && (E.id = `${_}_${Math.random().toString().slice(2, 6)}`), E;
6495
6478
  }
6496
- function E(g, k) {
6497
- const H = String(g.getAttribute("data-controltype")), _ = g.getAttribute("data-feature"), X = _ ? JSON.parse(_) : {};
6479
+ function H(g, k) {
6480
+ const E = String(g.getAttribute("data-controltype")), _ = g.getAttribute("data-feature"), X = _ ? JSON.parse(_) : {};
6498
6481
  X.parentComponentInstance = u.value;
6499
- let I = at(H, X);
6500
- e && e.onAcceptNewChildElement && (I = e.onAcceptNewChildElement(g, k, I));
6501
- const F = H.toLowerCase().replace("-", "_");
6502
- return I && !I.id && I.type === H && (I.id = `${F}_${Math.random().toString().slice(2, 6)}`), I;
6482
+ let V = at(E, X);
6483
+ e && e.onAcceptNewChildElement && (V = e.onAcceptNewChildElement(g, k, V));
6484
+ const F = E.toLowerCase().replace("-", "_");
6485
+ return V && !V.id && V.type === E && (V.id = `${F}_${Math.random().toString().slice(2, 6)}`), V;
6503
6486
  }
6504
6487
  function P(g) {
6505
6488
  }
@@ -6525,7 +6508,7 @@ function wt(t, n, e) {
6525
6508
  getPropConfig: w,
6526
6509
  getDragScopeElement: b,
6527
6510
  onAcceptMovedChildElement: x,
6528
- onAcceptNewChildElement: E,
6511
+ onAcceptNewChildElement: H,
6529
6512
  onChildElementMovedOut: P,
6530
6513
  addNewChildComponentSchema: C,
6531
6514
  updateDragAndDropRules: a,
@@ -6547,10 +6530,10 @@ const zi = /* @__PURE__ */ de({
6547
6530
  } = f, i = sn(t, n, o), {
6548
6531
  onMouseEnter: s,
6549
6532
  onMouseLeave: l
6550
- } = i, y = hn(t, n, u, f), h = d(), b = Ve("designer-host-service"), x = Ve("design-item-context"), C = Qi(x, b), E = wt(h, x, C);
6533
+ } = i, y = hn(t, n, u, f), h = d(), b = Ie("designer-host-service"), x = Ie("design-item-context"), C = Qi(x, b), H = wt(h, x, C);
6551
6534
  me(() => {
6552
- h.value.componentInstance = E;
6553
- }), n.expose(E.value);
6535
+ h.value.componentInstance = H;
6536
+ }), n.expose(H.value);
6554
6537
  const P = yn(t, n, f, i, y), w = d();
6555
6538
  return () => v("div", {
6556
6539
  id: "inputGroup",
@@ -6567,13 +6550,13 @@ const zi = /* @__PURE__ */ de({
6567
6550
  }, null), m.value && P()]);
6568
6551
  }
6569
6552
  });
6570
- Ee.register = (t, n, e, a) => {
6571
- t["input-group"] = Ee, n["input-group"] = fn;
6553
+ He.register = (t, n, e, a) => {
6554
+ t["input-group"] = He, n["input-group"] = fn;
6572
6555
  };
6573
- Ee.registerDesigner = (t, n, e) => {
6556
+ He.registerDesigner = (t, n, e) => {
6574
6557
  t["input-group"] = zi, n["input-group"] = fn;
6575
6558
  };
6576
- ci(Ee);
6559
+ ci(He);
6577
6560
  const Xi = {
6578
6561
  ..._e,
6579
6562
  /** 显示第二个日期输入框 */
@@ -6620,7 +6603,7 @@ function Zi(t) {
6620
6603
  }
6621
6604
  function Ji(t, n, e, a) {
6622
6605
  var $;
6623
- const o = d(0), r = d((($ = t.offsetX) == null ? void 0 : $.value) || 0), u = d(t.minWidth), c = d(-1), f = d(-1), m = d(t.placement), i = d(0), s = d(0), l = d(0), y = d(document.documentElement.scrollLeft), h = d(document.documentElement.scrollTop), { hostLeft: b, hostTop: x, hostWidth: C, hostHeight: E } = a;
6606
+ const o = d(0), r = d((($ = t.offsetX) == null ? void 0 : $.value) || 0), u = d(t.minWidth), c = d(-1), f = d(-1), m = d(t.placement), i = d(0), s = d(0), l = d(0), y = d(document.documentElement.scrollLeft), h = d(document.documentElement.scrollTop), { hostLeft: b, hostTop: x, hostWidth: C, hostHeight: H } = a;
6624
6607
  q(t.offsetX, (p) => {
6625
6608
  o.value = p - r.value;
6626
6609
  });
@@ -6645,10 +6628,10 @@ function Ji(t, n, e, a) {
6645
6628
  return N > 0 ? N : B;
6646
6629
  }
6647
6630
  function k(p, B) {
6648
- const N = E.value - p.height - 4;
6631
+ const N = H.value - p.height - 4;
6649
6632
  return N > 0 ? N : B;
6650
6633
  }
6651
- function H(p, B, N) {
6634
+ function E(p, B, N) {
6652
6635
  const R = i.value, Q = B.left - b.value + B.width / 2 + y.value, se = B.top - x.value - (p.height + N.height) + h.value;
6653
6636
  return { popoverLeft: Q, popoverTop: se, arrowLeft: R };
6654
6637
  }
@@ -6660,7 +6643,7 @@ function Ji(t, n, e, a) {
6660
6643
  const N = g(B, p), R = p <= N ? i.value : p - N;
6661
6644
  return { popoverLeft: Math.min(p, N), arrowLeft: R };
6662
6645
  }
6663
- function I(p, B, N) {
6646
+ function V(p, B, N) {
6664
6647
  const R = B.left - b.value + B.width / 2 - (N.width / 2 - (p.left - b.value)) + y.value, { arrowLeft: Q, popoverLeft: se } = X(R, p), le = _(p, B, N);
6665
6648
  return { popoverLeft: se, popoverTop: le, arrowLeft: Q };
6666
6649
  }
@@ -6669,11 +6652,11 @@ function Ji(t, n, e, a) {
6669
6652
  return { popoverLeft: se, popoverTop: le, arrowLeft: Q };
6670
6653
  }
6671
6654
  const S = /* @__PURE__ */ new Map([
6672
- ["top", H],
6673
- ["bottom", I],
6655
+ ["top", E],
6656
+ ["bottom", V],
6674
6657
  ["bottom-left", F]
6675
6658
  ]);
6676
- function V(p) {
6659
+ function I(p) {
6677
6660
  var se, le;
6678
6661
  const B = p.getBoundingClientRect();
6679
6662
  c.value = B.top, f.value = B.left;
@@ -6687,7 +6670,7 @@ function Ji(t, n, e, a) {
6687
6670
  function ne(p) {
6688
6671
  if (p) {
6689
6672
  const B = p.getBoundingClientRect();
6690
- (B.left !== f.value || B.top !== c.value) && V(p);
6673
+ (B.left !== f.value || B.top !== c.value) && I(p);
6691
6674
  }
6692
6675
  }
6693
6676
  return {
@@ -6697,7 +6680,7 @@ function Ji(t, n, e, a) {
6697
6680
  popoverWidth: u,
6698
6681
  fitToReference: O,
6699
6682
  followToReferencePosition: ne,
6700
- locateToReference: V
6683
+ locateToReference: I
6701
6684
  };
6702
6685
  }
6703
6686
  function es(t, n, e, a, o, r, u) {
@@ -6750,11 +6733,11 @@ const ns = /* @__PURE__ */ de({
6750
6733
  hidePopverOnClickBodyHandler: x
6751
6734
  } = es(t, n, e, a, o, r, m), {
6752
6735
  onResize: C
6753
- } = ts(t, n, o, r, m), E = T(() => {
6736
+ } = ts(t, n, o, r, m), H = T(() => {
6754
6737
  const w = `popover in popover-${i.value}`, O = `bs-popover-${i.value}`, g = {
6755
6738
  "popover-fitcontent": t.fitContent
6756
6739
  };
6757
- return g[w] = !0, g[O] = !0, (t.class || "").split(" ").reduce((H, _) => (H[_] = !0, H), g), g;
6740
+ return g[w] = !0, g[O] = !0, (t.class || "").split(" ").reduce((E, _) => (E[_] = !0, E), g), g;
6758
6741
  }), P = T(() => ({
6759
6742
  "popover-content": !0,
6760
6743
  "popover-body": !0
@@ -6770,7 +6753,7 @@ const ns = /* @__PURE__ */ de({
6770
6753
  var w;
6771
6754
  return [Yt(v("div", {
6772
6755
  ref: a,
6773
- class: E.value,
6756
+ class: H.value,
6774
6757
  style: l.value,
6775
6758
  onClick: (O) => {
6776
6759
  O.stopPropagation();
@@ -6796,7 +6779,7 @@ const ns = /* @__PURE__ */ de({
6796
6779
  d([t.disableSince]);
6797
6780
  const y = d([t.disableUntil]), h = d(!1), b = d(), x = d(), {
6798
6781
  formatTo: C
6799
- } = ln(), E = T(() => {
6782
+ } = ln(), H = T(() => {
6800
6783
  var F;
6801
6784
  return C((F = e.value.split("~")) == null ? void 0 : F[0], t.displayFormat);
6802
6785
  }), P = T(() => {
@@ -6820,7 +6803,7 @@ const ns = /* @__PURE__ */ de({
6820
6803
  h.value = !h.value, setTimeout(() => {
6821
6804
  h.value && g();
6822
6805
  });
6823
- }, H = () => {
6806
+ }, E = () => {
6824
6807
  h.value = !1;
6825
6808
  };
6826
6809
  function _() {
@@ -6829,25 +6812,25 @@ const ns = /* @__PURE__ */ de({
6829
6812
  const X = (F) => {
6830
6813
  const {
6831
6814
  startDate: S,
6832
- endDate: V
6833
- } = F, ne = `${S.year}-${S.month}-${S.day}`, $ = `${V.year}-${V.month}-${V.day}`, p = C(ne, t.valueFormat), B = C($, t.valueFormat), N = p + "~" + B;
6815
+ endDate: I
6816
+ } = F, ne = `${S.year}-${S.month}-${S.day}`, $ = `${I.year}-${I.month}-${I.day}`, p = C(ne, t.valueFormat), B = C($, t.valueFormat), N = p + "~" + B;
6834
6817
  e.value = N, n.emit("update:modeValue", N), n.emit("confirm", N), _();
6835
- }, I = () => {
6818
+ }, V = () => {
6836
6819
  };
6837
- return () => v(Ie, null, [v("div", {
6820
+ return () => v(Ve, null, [v("div", {
6838
6821
  ref: x,
6839
6822
  class: w.value,
6840
6823
  id: t.id
6841
6824
  }, [v("div", {
6842
6825
  class: O.value
6843
- }, [v(Ee, {
6844
- modelValue: E.value,
6845
- "onUpdate:modelValue": (F) => E.value = F,
6826
+ }, [v(He, {
6827
+ modelValue: H.value,
6828
+ "onUpdate:modelValue": (F) => H.value = F,
6846
6829
  showBorder: !1,
6847
6830
  onFocus: k
6848
6831
  }, null), v("span", {
6849
6832
  class: "f-icon f-icon-orientation-arrow sub-input-spliter"
6850
- }, null), v(Ee, {
6833
+ }, null), v(He, {
6851
6834
  modelValue: P.value,
6852
6835
  "onUpdate:modelValue": (F) => P.value = F,
6853
6836
  showBorder: !1,
@@ -6869,7 +6852,7 @@ const ns = /* @__PURE__ */ de({
6869
6852
  "right-boundary": t.popupRightBoundary,
6870
6853
  minWidth: 500,
6871
6854
  offsetX: t.popupOffsetX,
6872
- onHidden: H
6855
+ onHidden: E
6873
6856
  }, {
6874
6857
  default: () => {
6875
6858
  var F, S;
@@ -6889,8 +6872,8 @@ const ns = /* @__PURE__ */ de({
6889
6872
  disableWeekends: s.value,
6890
6873
  disableWeekdays: l.value,
6891
6874
  disableUntil: y.value,
6892
- onDatePicked: (V) => I(),
6893
- onConfirm: (V) => X(V)
6875
+ onDatePicked: (I) => V(),
6876
+ onConfirm: (I) => X(I)
6894
6877
  }, null)];
6895
6878
  }
6896
6879
  })]);
@@ -6902,33 +6885,33 @@ const ns = /* @__PURE__ */ de({
6902
6885
  setup(t, n) {
6903
6886
  const e = '<span class="f-icon f-icon-date"></span>', a = d(t.modelValue), o = d(null), r = d(t.maxYear), u = d(t.minYear), c = d(t.enablePeriod), f = d(a.value), m = d(t.highlightSaturday), i = d(t.highlightSunday), s = d(t.nameOfMonths), l = d(t.highlightDates), y = d(t.showWeekNumber), h = d(t.selectMode), b = d(t.displayTime), x = d(t.disableWeekends), C = d(t.disableWeekdays);
6904
6887
  d([t.disableSince]);
6905
- const E = d([t.disableUntil]), {
6888
+ const H = d([t.disableUntil]), {
6906
6889
  formatTo: P
6907
6890
  } = pa();
6908
6891
  function w() {
6909
6892
  }
6910
6893
  const O = T(() => P(f.value, t.displayFormat));
6911
- function g(I, F = !0) {
6912
- const S = P(I, t.valueFormat);
6894
+ function g(V, F = !0) {
6895
+ const S = P(V, t.valueFormat);
6913
6896
  a.value = S, f.value = S, F && n.emit("update:modelValue", S);
6914
6897
  }
6915
6898
  function k() {
6916
6899
  document.body.click();
6917
6900
  }
6918
- function H(I) {
6919
- let F = `${I.year}-${I.month}-${I.day}`;
6920
- t.showTime && (F += ` ${I.hour}:${I.minute}:${I.second}`), g(F), n.emit("datePicked", f.value), k();
6901
+ function E(V) {
6902
+ let F = `${V.year}-${V.month}-${V.day}`;
6903
+ t.showTime && (F += ` ${V.hour}:${V.minute}:${V.second}`), g(F), n.emit("datePicked", f.value), k();
6921
6904
  }
6922
6905
  function _() {
6923
6906
  g(""), n.emit("datePicked", f.value);
6924
6907
  }
6925
- q(() => t.modelValue, (I, F) => {
6926
- I !== F && g(I);
6908
+ q(() => t.modelValue, (V, F) => {
6909
+ V !== F && g(V);
6927
6910
  }), me(() => {
6928
6911
  a.value && g(a.value);
6929
6912
  });
6930
- const X = (I) => {
6931
- H(I);
6913
+ const X = (V) => {
6914
+ E(V);
6932
6915
  };
6933
6916
  return () => c.value ? v(as, t, null) : v(At, {
6934
6917
  ref: o,
@@ -6942,7 +6925,7 @@ const ns = /* @__PURE__ */ de({
6942
6925
  focusOnCreated: t.focusOnCreated,
6943
6926
  selectOnCreated: t.selectOnCreated
6944
6927
  }, {
6945
- default: () => v(Ie, null, [v(Se, {
6928
+ default: () => v(Ve, null, [v(Se, {
6946
6929
  mode: "Popup",
6947
6930
  value: f.value,
6948
6931
  valueFormat: t.valueFormat,
@@ -6958,9 +6941,9 @@ const ns = /* @__PURE__ */ de({
6958
6941
  displayTime: b.value,
6959
6942
  disableWeekends: x.value,
6960
6943
  disableWeekdays: C.value,
6961
- disableUntil: E.value,
6944
+ disableUntil: H.value,
6962
6945
  showTime: t.showTime,
6963
- onDatePicked: (I) => H(I),
6946
+ onDatePicked: (V) => E(V),
6964
6947
  onConfirm: X
6965
6948
  }, null)])
6966
6949
  });
@@ -7074,7 +7057,7 @@ const is = /* @__PURE__ */ de({
7074
7057
  props: _e,
7075
7058
  emits: ["update:modelValue", "datePicked"],
7076
7059
  setup(t, n) {
7077
- const e = '<span class="f-icon f-icon-date"></span>', a = d(t.modelValue), o = d(), r = Ve("designer-host-service"), u = Ve("design-item-context"), c = rs(u, r), f = wt(o, u, c);
7060
+ const e = '<span class="f-icon f-icon-date"></span>', a = d(t.modelValue), o = d(), r = Ie("designer-host-service"), u = Ie("design-item-context"), c = rs(u, r), f = wt(o, u, c);
7078
7061
  return me(() => {
7079
7062
  o.value.componentInstance = f;
7080
7063
  }), n.expose(f.value), () => v(At, {
@@ -7090,7 +7073,7 @@ const is = /* @__PURE__ */ de({
7090
7073
  props: _e,
7091
7074
  emits: [],
7092
7075
  setup(t, n) {
7093
- const e = d(), a = Ve("design-item-context"), o = wt(e, a);
7076
+ const e = d(), a = Ie("design-item-context"), o = wt(e, a);
7094
7077
  return me(() => {
7095
7078
  e.value.componentInstance = o;
7096
7079
  }), n.expose(o.value), () => v(Se, {