@farris/ui-vue 1.2.7 → 1.2.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 (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,62 +1,63 @@
1
- var kt = Object.defineProperty;
2
- var Pt = (t, n, e) => n in t ? kt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
- var f = (t, n, e) => Pt(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { ref as v, defineComponent as ne, watch as R, computed as V, onMounted as de, createVNode as w, createTextVNode as be, mergeProps as Ce, Teleport as Dt, createApp as Ot, onUnmounted as Ht, inject as pe, nextTick as Se, withDirectives as Bt, vShow as Ft, Fragment as Et, resolveComponent as St } from "vue";
5
- import { cloneDeep as Vt } from "lodash-es";
6
- import Nt from "@farris/ui-vue/components/button-edit";
1
+ var Pt = Object.defineProperty;
2
+ var Ot = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
+ var p = (t, n, e) => Ot(t, typeof n != "symbol" ? n + "" : n, e);
4
+ import { ref as b, defineComponent as re, watch as j, computed as N, onMounted as fe, createVNode as w, createTextVNode as ve, mergeProps as Pe, Teleport as Dt, createApp as Ht, onUnmounted as Bt, inject as me, nextTick as Se, withDirectives as Et, vShow as Vt, Fragment as Ft, resolveComponent as Nt } from "vue";
5
+ import { cloneDeep as St } from "lodash-es";
6
+ import Yt from "../button-edit/index.esm.js";
7
7
  import "bignumber.js";
8
- import { resolveAppearance as Lt } from "@farris/ui-vue/components/dynamic-resolver";
9
- import At from "@farris/ui-vue/components/tags";
10
- import Wt from "@farris/ui-vue/components/popover";
11
- import { withInstall as It } from "@farris/ui-vue/components/common";
12
- const qe = {}, _e = {};
13
- function ke(t) {
14
- const { properties: n, title: e } = t, r = Object.keys(n).reduce((o, a) => (o[a] = n[a].type === "object" && n[a].properties ? ke(n[a]) : Vt(n[a].default), o), {});
8
+ import { resolveAppearance as Wt, getSchemaByType as Ye } from "../dynamic-resolver/index.esm.js";
9
+ import qt from "../tags/index.esm.js";
10
+ import At from "../popover/index.esm.js";
11
+ import { useDesignerComponent as Lt } from "../designer-canvas/index.esm.js";
12
+ import { withInstall as _t } from "../common/index.esm.js";
13
+ const Re = {}, $e = {};
14
+ function Oe(t) {
15
+ const { properties: n, title: e } = t, r = Object.keys(n).reduce((o, a) => (o[a] = n[a].type === "object" && n[a].properties ? Oe(n[a]) : St(n[a].default), o), {});
15
16
  return r.id = `${e}-${Date.now()}`, r;
16
17
  }
17
- function ve(t, n = {}) {
18
- const e = qe[t];
18
+ function Me(t, n = {}) {
19
+ const e = Re[t];
19
20
  if (e) {
20
- let r = ke(e);
21
- const o = _e[t];
22
- return r = o ? o({ getSchemaByType: ve }, r, n) : r, r;
21
+ let r = Oe(e);
22
+ const o = $e[t];
23
+ return r = o ? o({ getSchemaByType: Me }, r, n) : r, r;
23
24
  }
24
25
  return null;
25
26
  }
26
- function Yt(t, n) {
27
- const e = ke(n);
28
- return Object.keys(t).reduce((r, o) => (r[o] = t[o], r), e), e;
27
+ function It(t, n) {
28
+ const e = Oe(n);
29
+ return Object.keys(t).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], t[o]) : r[o] = t[o], r), e), e;
29
30
  }
30
- function qt(t, n) {
31
+ function jt(t, n) {
31
32
  return Object.keys(t).filter((r) => t[r] != null).reduce((r, o) => {
32
33
  if (n.has(o)) {
33
34
  const a = n.get(o);
34
35
  if (typeof a == "string")
35
36
  r[a] = t[o];
36
37
  else {
37
- const i = a(o, t[o], t);
38
- Object.assign(r, i);
38
+ const s = a(o, t[o], t);
39
+ Object.assign(r, s);
39
40
  }
40
41
  } else
41
42
  r[o] = t[o];
42
43
  return r;
43
44
  }, {});
44
45
  }
45
- function _t(t, n, e = /* @__PURE__ */ new Map()) {
46
- const r = Yt(t, n);
47
- return qt(r, e);
46
+ function Rt(t, n, e = /* @__PURE__ */ new Map()) {
47
+ const r = It(t, n);
48
+ return jt(r, e);
48
49
  }
49
- function Rt(t = {}) {
50
+ function $t(t = {}) {
50
51
  function n(c, d, u, l) {
51
52
  if (typeof u == "number")
52
53
  return l[c].length === u;
53
54
  if (typeof u == "object") {
54
- const h = Object.keys(u)[0], y = u[h];
55
- if (h === "not")
55
+ const m = Object.keys(u)[0], y = u[m];
56
+ if (m === "not")
56
57
  return Number(l[c].length) !== Number(y);
57
- if (h === "moreThan")
58
+ if (m === "moreThan")
58
59
  return Number(l[c].length) >= Number(y);
59
- if (h === "lessThan")
60
+ if (m === "lessThan")
60
61
  return Number(l[c].length) <= Number(y);
61
62
  }
62
63
  return !1;
@@ -74,39 +75,37 @@ function Rt(t = {}) {
74
75
  return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((l) => {
75
76
  if (l === "length")
76
77
  return { target: u, operator: "length", param: null, value: d[l] };
77
- const h = l, y = d[l];
78
- return { target: u, operator: "getProperty", param: h, value: y };
78
+ const m = l, y = d[l];
79
+ return { target: u, operator: "getProperty", param: m, value: y };
79
80
  }) : [];
80
81
  }
81
82
  function a(c) {
82
83
  return Object.keys(c).reduce((u, l) => {
83
- const h = o(l, c[l]);
84
- return u.push(...h), u;
84
+ const m = o(l, c[l]);
85
+ return u.push(...m), u;
85
86
  }, []);
86
87
  }
87
- function i(c, d) {
88
+ function s(c, d) {
88
89
  if (r.has(c.operator)) {
89
90
  const u = r.get(c.operator);
90
91
  return u && u(c.target, c.param, c.value, d) || !1;
91
92
  }
92
93
  return !1;
93
94
  }
94
- function s(c, d) {
95
- return a(c).reduce((h, y) => h && i(y, d), !0);
95
+ function i(c, d) {
96
+ return a(c).reduce((m, y) => m && s(y, d), !0);
96
97
  }
97
- function p(c, d) {
98
- const u = Object.keys(c), l = u.includes("allOf"), h = u.includes("anyOf"), y = l || h, Y = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((g) => s(g, d));
99
- return l ? !Y.includes(!1) : Y.includes(!0);
98
+ function f(c, d) {
99
+ const u = Object.keys(c), l = u.includes("allOf"), m = u.includes("anyOf"), y = l || m, L = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((g) => i(g, d));
100
+ return l ? !L.includes(!1) : L.includes(!0);
100
101
  }
101
- return { parseValueSchema: p };
102
+ return { parseValueSchema: f };
102
103
  }
103
- const b = {
104
- Button: { type: "Button", name: "按钮", icon: "Button" },
105
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
104
+ const k = {
105
+ button: { type: "button", name: "按钮", icon: "Button" },
106
106
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
107
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
107
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
108
108
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
109
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
110
109
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
111
110
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
112
111
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -117,114 +116,43 @@ const b = {
117
116
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
118
117
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
119
118
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
120
- /** 暂时没用 */
121
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
122
- /** 暂时没用 */
123
- FlowLayout: { type: "FlowLayout", name: "流布局" },
124
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
125
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
119
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
120
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
121
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
126
122
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
127
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
128
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
129
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
130
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
123
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
131
124
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
132
125
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
133
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
134
- Module: { type: "Module", name: "模块", icon: "Module" },
126
+ module: { type: "Module", name: "模块", icon: "Module" },
135
127
  component: { type: "component", name: "组件", icon: "Component" },
136
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
137
- Image: { type: "Image", name: "图像", icon: "Image" },
138
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
139
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
140
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
141
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
142
128
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
143
129
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
144
130
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
145
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
146
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
147
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
148
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
149
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
150
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
151
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
131
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
152
132
  section: { type: "section", name: "分组面板", icon: "Section" },
153
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
154
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
155
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
156
- FormHeader: { type: "FormHeader", name: "翻页" },
157
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
158
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
159
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
160
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
161
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
162
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
163
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
164
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
165
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
166
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
167
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
168
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
169
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
170
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
171
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
172
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
173
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
174
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
175
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
176
- Footer: { type: "Footer", name: "页脚" },
177
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
178
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
179
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
180
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
181
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
133
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
134
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
135
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
136
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
137
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
138
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
182
139
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
183
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
184
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
185
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
186
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
187
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
188
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
189
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
190
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
191
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
192
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
193
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
194
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
195
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
196
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
197
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
198
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
199
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
200
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
201
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
202
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
203
- /** 查询类 start */
204
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
205
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
206
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
207
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
208
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
209
- /** 查询类 end */
210
- /** 审批类 start */
211
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
212
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
213
- /** 审批类 end */
214
- }, jt = {}, Qt = {};
215
- Rt();
216
- function Re(t, n, e = /* @__PURE__ */ new Map(), r = (i, s, p) => s, o = {}, a = (i) => i) {
217
- return qe[n.title] = n, _e[n.title] = r, jt[n.title] = o, Qt[n.title] = a, (i = {}) => {
218
- const s = _t(i, n, e), p = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
219
- return Object.assign(p, s);
140
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
141
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
142
+ }, Qt = {}, Gt = {};
143
+ $t();
144
+ function Qe(t, n, e = /* @__PURE__ */ new Map(), r = (s, i, f) => i, o = {}, a = (s) => s) {
145
+ return Re[n.title] = n, $e[n.title] = r, Qt[n.title] = o, Gt[n.title] = a, (s = {}) => {
146
+ const i = Rt(s, n, e), f = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
147
+ return Object.assign(f, i);
220
148
  };
221
149
  }
222
- function $t(t, n) {
150
+ function Xt(t, n) {
223
151
  return { customClass: n.class, customStyle: n.style };
224
152
  }
225
- const Gt = /* @__PURE__ */ new Map([
226
- ["appearance", $t]
227
- ]), Ut = "https://json-schema.org/draft/2020-12/schema", Xt = "https://farris-design.gitee.io/time-picker.schema.json", zt = "time-picker", Zt = "A Farris Input Component", Jt = "object", Kt = {
153
+ const Ut = /* @__PURE__ */ new Map([
154
+ ["appearance", Xt]
155
+ ]), zt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/time-picker.schema.json", Zt = "time-picker", Kt = "A Farris Input Component", en = "object", tn = {
228
156
  id: {
229
157
  description: "The unique identifier for a time picker",
230
158
  type: "string"
@@ -301,22 +229,22 @@ const Gt = /* @__PURE__ */ new Map([
301
229
  type: "boolean",
302
230
  default: !1
303
231
  }
304
- }, en = [
232
+ }, nn = [
305
233
  "id",
306
234
  "type"
307
- ], tn = {
308
- $schema: Ut,
309
- $id: Xt,
310
- title: zt,
311
- description: Zt,
312
- type: Jt,
313
- properties: Kt,
314
- required: en
235
+ ], rn = {
236
+ $schema: zt,
237
+ $id: Jt,
238
+ title: Zt,
239
+ description: Kt,
240
+ type: en,
241
+ properties: tn,
242
+ required: nn
315
243
  };
316
- function nn(t, n, e) {
244
+ function on(t, n, e) {
317
245
  return n;
318
246
  }
319
- const Pe = {
247
+ const De = {
320
248
  /**
321
249
  * 组件值,这个是与指定的format格式相对应的值
322
250
  */
@@ -344,7 +272,7 @@ const Pe = {
344
272
  disable: { type: Boolean, default: !1 },
345
273
  readonly: { type: Boolean, default: !1 },
346
274
  editable: { type: Boolean, default: !0 }
347
- }, je = Re(Pe, tn, Gt, nn), rn = {
275
+ }, Ge = Qe(De, rn, Ut, on), an = {
348
276
  modelValue: {
349
277
  type: String,
350
278
  default: ""
@@ -398,44 +326,44 @@ const Pe = {
398
326
  default: !1
399
327
  }
400
328
  };
401
- function q(t) {
329
+ function _(t) {
402
330
  const n = Object.prototype.toString.call(t);
403
331
  return t instanceof Date || typeof t == "object" && n === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || n === "[object Number]" || typeof t == "string" || n === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
404
332
  }
405
- function L(t, n) {
333
+ function Y(t, n) {
406
334
  return t instanceof Date ? new t.constructor(n) : new Date(n);
407
335
  }
408
- function Qe(t, n) {
409
- const e = q(t);
410
- return isNaN(n) ? L(t, NaN) : (n && e.setDate(e.getDate() + n), e);
336
+ function Xe(t, n) {
337
+ const e = _(t);
338
+ return isNaN(n) ? Y(t, NaN) : (n && e.setDate(e.getDate() + n), e);
411
339
  }
412
- const $e = 6048e5, on = 864e5, an = 6e4, sn = 36e5, un = 1e3;
413
- let ln = {};
414
- function re() {
415
- return ln;
340
+ const Ue = 6048e5, sn = 864e5, un = 6e4, ln = 36e5, cn = 1e3;
341
+ let dn = {};
342
+ function oe() {
343
+ return dn;
416
344
  }
417
345
  function z(t, n) {
418
- var s, p, c, d;
419
- const e = re(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : p.weekStartsOn) ?? e.weekStartsOn ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = q(t), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
420
- return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
346
+ var i, f, c, d;
347
+ const e = oe(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = _(t), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
348
+ return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
421
349
  }
422
- function te(t) {
350
+ function ne(t) {
423
351
  return z(t, { weekStartsOn: 1 });
424
352
  }
425
- function Ge(t) {
426
- const n = q(t), e = n.getFullYear(), r = L(t, 0);
353
+ function ze(t) {
354
+ const n = _(t), e = n.getFullYear(), r = Y(t, 0);
427
355
  r.setFullYear(e + 1, 0, 4), r.setHours(0, 0, 0, 0);
428
- const o = te(r), a = L(t, 0);
356
+ const o = ne(r), a = Y(t, 0);
429
357
  a.setFullYear(e, 0, 4), a.setHours(0, 0, 0, 0);
430
- const i = te(a);
431
- return n.getTime() >= o.getTime() ? e + 1 : n.getTime() >= i.getTime() ? e : e - 1;
358
+ const s = ne(a);
359
+ return n.getTime() >= o.getTime() ? e + 1 : n.getTime() >= s.getTime() ? e : e - 1;
432
360
  }
433
- function Ve(t) {
434
- const n = q(t);
361
+ function We(t) {
362
+ const n = _(t);
435
363
  return n.setHours(0, 0, 0, 0), n;
436
364
  }
437
- function me(t) {
438
- const n = q(t), e = new Date(
365
+ function he(t) {
366
+ const n = _(t), e = new Date(
439
367
  Date.UTC(
440
368
  n.getFullYear(),
441
369
  n.getMonth(),
@@ -448,28 +376,28 @@ function me(t) {
448
376
  );
449
377
  return e.setUTCFullYear(n.getFullYear()), +t - +e;
450
378
  }
451
- function cn(t, n) {
452
- const e = Ve(t), r = Ve(n), o = +e - me(e), a = +r - me(r);
453
- return Math.round((o - a) / on);
379
+ function fn(t, n) {
380
+ const e = We(t), r = We(n), o = +e - he(e), a = +r - he(r);
381
+ return Math.round((o - a) / sn);
454
382
  }
455
- function dn(t) {
456
- const n = Ge(t), e = L(t, 0);
457
- return e.setFullYear(n, 0, 4), e.setHours(0, 0, 0, 0), te(e);
383
+ function pn(t) {
384
+ const n = ze(t), e = Y(t, 0);
385
+ return e.setFullYear(n, 0, 4), e.setHours(0, 0, 0, 0), ne(e);
458
386
  }
459
- function fn(t) {
387
+ function mn(t) {
460
388
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
461
389
  }
462
- function Ue(t) {
463
- if (!fn(t) && typeof t != "number")
390
+ function Je(t) {
391
+ if (!mn(t) && typeof t != "number")
464
392
  return !1;
465
- const n = q(t);
393
+ const n = _(t);
466
394
  return !isNaN(Number(n));
467
395
  }
468
- function pn(t) {
469
- const n = q(t), e = L(t, 0);
396
+ function hn(t) {
397
+ const n = _(t), e = Y(t, 0);
470
398
  return e.setFullYear(n.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
471
399
  }
472
- const mn = {
400
+ const yn = {
473
401
  lessThanXSeconds: {
474
402
  one: "less than a second",
475
403
  other: "less than {{count}} seconds"
@@ -531,77 +459,77 @@ const mn = {
531
459
  one: "almost 1 year",
532
460
  other: "almost {{count}} years"
533
461
  }
534
- }, hn = (t, n, e) => {
462
+ }, gn = (t, n, e) => {
535
463
  let r;
536
- const o = mn[t];
464
+ const o = yn[t];
537
465
  return typeof o == "string" ? r = o : n === 1 ? r = o.one : r = o.other.replace("{{count}}", n.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + r : r + " ago" : r;
538
466
  };
539
- function we(t) {
467
+ function xe(t) {
540
468
  return (n = {}) => {
541
469
  const e = n.width ? String(n.width) : t.defaultWidth;
542
470
  return t.formats[e] || t.formats[t.defaultWidth];
543
471
  };
544
472
  }
545
- const yn = {
473
+ const bn = {
546
474
  full: "EEEE, MMMM do, y",
547
475
  long: "MMMM do, y",
548
476
  medium: "MMM d, y",
549
477
  short: "MM/dd/yyyy"
550
- }, gn = {
478
+ }, wn = {
551
479
  full: "h:mm:ss a zzzz",
552
480
  long: "h:mm:ss a z",
553
481
  medium: "h:mm:ss a",
554
482
  short: "h:mm a"
555
- }, bn = {
483
+ }, vn = {
556
484
  full: "{{date}} 'at' {{time}}",
557
485
  long: "{{date}} 'at' {{time}}",
558
486
  medium: "{{date}}, {{time}}",
559
487
  short: "{{date}}, {{time}}"
560
- }, wn = {
561
- date: we({
562
- formats: yn,
488
+ }, xn = {
489
+ date: xe({
490
+ formats: bn,
563
491
  defaultWidth: "full"
564
492
  }),
565
- time: we({
566
- formats: gn,
493
+ time: xe({
494
+ formats: wn,
567
495
  defaultWidth: "full"
568
496
  }),
569
- dateTime: we({
570
- formats: bn,
497
+ dateTime: xe({
498
+ formats: vn,
571
499
  defaultWidth: "full"
572
500
  })
573
- }, vn = {
501
+ }, Mn = {
574
502
  lastWeek: "'last' eeee 'at' p",
575
503
  yesterday: "'yesterday at' p",
576
504
  today: "'today at' p",
577
505
  tomorrow: "'tomorrow at' p",
578
506
  nextWeek: "eeee 'at' p",
579
507
  other: "P"
580
- }, xn = (t, n, e, r) => vn[t];
581
- function ue(t) {
508
+ }, Tn = (t, n, e, r) => Mn[t];
509
+ function le(t) {
582
510
  return (n, e) => {
583
511
  const r = e != null && e.context ? String(e.context) : "standalone";
584
512
  let o;
585
513
  if (r === "formatting" && t.formattingValues) {
586
- const i = t.defaultFormattingWidth || t.defaultWidth, s = e != null && e.width ? String(e.width) : i;
587
- o = t.formattingValues[s] || t.formattingValues[i];
514
+ const s = t.defaultFormattingWidth || t.defaultWidth, i = e != null && e.width ? String(e.width) : s;
515
+ o = t.formattingValues[i] || t.formattingValues[s];
588
516
  } else {
589
- const i = t.defaultWidth, s = e != null && e.width ? String(e.width) : t.defaultWidth;
590
- o = t.values[s] || t.values[i];
517
+ const s = t.defaultWidth, i = e != null && e.width ? String(e.width) : t.defaultWidth;
518
+ o = t.values[i] || t.values[s];
591
519
  }
592
520
  const a = t.argumentCallback ? t.argumentCallback(n) : n;
593
521
  return o[a];
594
522
  };
595
523
  }
596
- const Tn = {
524
+ const kn = {
597
525
  narrow: ["B", "A"],
598
526
  abbreviated: ["BC", "AD"],
599
527
  wide: ["Before Christ", "Anno Domini"]
600
- }, Mn = {
528
+ }, Cn = {
601
529
  narrow: ["1", "2", "3", "4"],
602
530
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
603
531
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
604
- }, Cn = {
532
+ }, Pn = {
605
533
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
606
534
  abbreviated: [
607
535
  "Jan",
@@ -631,7 +559,7 @@ const Tn = {
631
559
  "November",
632
560
  "December"
633
561
  ]
634
- }, kn = {
562
+ }, On = {
635
563
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
636
564
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
637
565
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -644,7 +572,7 @@ const Tn = {
644
572
  "Friday",
645
573
  "Saturday"
646
574
  ]
647
- }, Pn = {
575
+ }, Dn = {
648
576
  narrow: {
649
577
  am: "a",
650
578
  pm: "p",
@@ -675,7 +603,7 @@ const Tn = {
675
603
  evening: "evening",
676
604
  night: "night"
677
605
  }
678
- }, Dn = {
606
+ }, Hn = {
679
607
  narrow: {
680
608
  am: "a",
681
609
  pm: "p",
@@ -706,7 +634,7 @@ const Tn = {
706
634
  evening: "in the evening",
707
635
  night: "at night"
708
636
  }
709
- }, On = (t, n) => {
637
+ }, Bn = (t, n) => {
710
638
  const e = Number(t), r = e % 100;
711
639
  if (r > 20 || r < 10)
712
640
  switch (r % 10) {
@@ -718,51 +646,51 @@ const Tn = {
718
646
  return e + "rd";
719
647
  }
720
648
  return e + "th";
721
- }, Hn = {
722
- ordinalNumber: On,
723
- era: ue({
724
- values: Tn,
649
+ }, En = {
650
+ ordinalNumber: Bn,
651
+ era: le({
652
+ values: kn,
725
653
  defaultWidth: "wide"
726
654
  }),
727
- quarter: ue({
728
- values: Mn,
655
+ quarter: le({
656
+ values: Cn,
729
657
  defaultWidth: "wide",
730
658
  argumentCallback: (t) => t - 1
731
659
  }),
732
- month: ue({
733
- values: Cn,
660
+ month: le({
661
+ values: Pn,
734
662
  defaultWidth: "wide"
735
663
  }),
736
- day: ue({
737
- values: kn,
664
+ day: le({
665
+ values: On,
738
666
  defaultWidth: "wide"
739
667
  }),
740
- dayPeriod: ue({
741
- values: Pn,
668
+ dayPeriod: le({
669
+ values: Dn,
742
670
  defaultWidth: "wide",
743
- formattingValues: Dn,
671
+ formattingValues: Hn,
744
672
  defaultFormattingWidth: "wide"
745
673
  })
746
674
  };
747
- function le(t) {
675
+ function ce(t) {
748
676
  return (n, e = {}) => {
749
677
  const r = e.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = n.match(o);
750
678
  if (!a)
751
679
  return null;
752
- const i = a[0], s = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], p = Array.isArray(s) ? Fn(s, (u) => u.test(i)) : (
680
+ const s = a[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(i) ? Fn(i, (u) => u.test(s)) : (
753
681
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
754
- Bn(s, (u) => u.test(i))
682
+ Vn(i, (u) => u.test(s))
755
683
  );
756
684
  let c;
757
- c = t.valueCallback ? t.valueCallback(p) : p, c = e.valueCallback ? (
685
+ c = t.valueCallback ? t.valueCallback(f) : f, c = e.valueCallback ? (
758
686
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
759
687
  e.valueCallback(c)
760
688
  ) : c;
761
- const d = n.slice(i.length);
689
+ const d = n.slice(s.length);
762
690
  return { value: c, rest: d };
763
691
  };
764
692
  }
765
- function Bn(t, n) {
693
+ function Vn(t, n) {
766
694
  for (const e in t)
767
695
  if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
768
696
  return e;
@@ -772,35 +700,35 @@ function Fn(t, n) {
772
700
  if (n(t[e]))
773
701
  return e;
774
702
  }
775
- function En(t) {
703
+ function Nn(t) {
776
704
  return (n, e = {}) => {
777
705
  const r = n.match(t.matchPattern);
778
706
  if (!r) return null;
779
707
  const o = r[0], a = n.match(t.parsePattern);
780
708
  if (!a) return null;
781
- let i = t.valueCallback ? t.valueCallback(a[0]) : a[0];
782
- i = e.valueCallback ? e.valueCallback(i) : i;
783
- const s = n.slice(o.length);
784
- return { value: i, rest: s };
709
+ let s = t.valueCallback ? t.valueCallback(a[0]) : a[0];
710
+ s = e.valueCallback ? e.valueCallback(s) : s;
711
+ const i = n.slice(o.length);
712
+ return { value: s, rest: i };
785
713
  };
786
714
  }
787
- const Sn = /^(\d+)(th|st|nd|rd)?/i, Vn = /\d+/i, Nn = {
715
+ const Sn = /^(\d+)(th|st|nd|rd)?/i, Yn = /\d+/i, Wn = {
788
716
  narrow: /^(b|a)/i,
789
717
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
790
718
  wide: /^(before christ|before common era|anno domini|common era)/i
791
- }, Ln = {
719
+ }, qn = {
792
720
  any: [/^b/i, /^(a|c)/i]
793
721
  }, An = {
794
722
  narrow: /^[1234]/i,
795
723
  abbreviated: /^q[1234]/i,
796
724
  wide: /^[1234](th|st|nd|rd)? quarter/i
797
- }, Wn = {
725
+ }, Ln = {
798
726
  any: [/1/i, /2/i, /3/i, /4/i]
799
- }, In = {
727
+ }, _n = {
800
728
  narrow: /^[jfmasond]/i,
801
729
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
802
730
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
803
- }, Yn = {
731
+ }, In = {
804
732
  narrow: [
805
733
  /^j/i,
806
734
  /^f/i,
@@ -829,18 +757,18 @@ const Sn = /^(\d+)(th|st|nd|rd)?/i, Vn = /\d+/i, Nn = {
829
757
  /^n/i,
830
758
  /^d/i
831
759
  ]
832
- }, qn = {
760
+ }, jn = {
833
761
  narrow: /^[smtwf]/i,
834
762
  short: /^(su|mo|tu|we|th|fr|sa)/i,
835
763
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
836
764
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
837
- }, _n = {
765
+ }, Rn = {
838
766
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
839
767
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
840
- }, Rn = {
768
+ }, $n = {
841
769
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
842
770
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
843
- }, jn = {
771
+ }, Qn = {
844
772
  any: {
845
773
  am: /^a/i,
846
774
  pm: /^p/i,
@@ -851,99 +779,99 @@ const Sn = /^(\d+)(th|st|nd|rd)?/i, Vn = /\d+/i, Nn = {
851
779
  evening: /evening/i,
852
780
  night: /night/i
853
781
  }
854
- }, Qn = {
855
- ordinalNumber: En({
782
+ }, Gn = {
783
+ ordinalNumber: Nn({
856
784
  matchPattern: Sn,
857
- parsePattern: Vn,
785
+ parsePattern: Yn,
858
786
  valueCallback: (t) => parseInt(t, 10)
859
787
  }),
860
- era: le({
861
- matchPatterns: Nn,
788
+ era: ce({
789
+ matchPatterns: Wn,
862
790
  defaultMatchWidth: "wide",
863
- parsePatterns: Ln,
791
+ parsePatterns: qn,
864
792
  defaultParseWidth: "any"
865
793
  }),
866
- quarter: le({
794
+ quarter: ce({
867
795
  matchPatterns: An,
868
796
  defaultMatchWidth: "wide",
869
- parsePatterns: Wn,
797
+ parsePatterns: Ln,
870
798
  defaultParseWidth: "any",
871
799
  valueCallback: (t) => t + 1
872
800
  }),
873
- month: le({
874
- matchPatterns: In,
801
+ month: ce({
802
+ matchPatterns: _n,
875
803
  defaultMatchWidth: "wide",
876
- parsePatterns: Yn,
804
+ parsePatterns: In,
877
805
  defaultParseWidth: "any"
878
806
  }),
879
- day: le({
880
- matchPatterns: qn,
807
+ day: ce({
808
+ matchPatterns: jn,
881
809
  defaultMatchWidth: "wide",
882
- parsePatterns: _n,
810
+ parsePatterns: Rn,
883
811
  defaultParseWidth: "any"
884
812
  }),
885
- dayPeriod: le({
886
- matchPatterns: Rn,
813
+ dayPeriod: ce({
814
+ matchPatterns: $n,
887
815
  defaultMatchWidth: "any",
888
- parsePatterns: jn,
816
+ parsePatterns: Qn,
889
817
  defaultParseWidth: "any"
890
818
  })
891
- }, Xe = {
819
+ }, Ze = {
892
820
  code: "en-US",
893
- formatDistance: hn,
894
- formatLong: wn,
895
- formatRelative: xn,
896
- localize: Hn,
897
- match: Qn,
821
+ formatDistance: gn,
822
+ formatLong: xn,
823
+ formatRelative: Tn,
824
+ localize: En,
825
+ match: Gn,
898
826
  options: {
899
827
  weekStartsOn: 0,
900
828
  firstWeekContainsDate: 1
901
829
  }
902
830
  };
903
- function $n(t) {
904
- const n = q(t);
905
- return cn(n, pn(n)) + 1;
831
+ function Xn(t) {
832
+ const n = _(t);
833
+ return fn(n, hn(n)) + 1;
906
834
  }
907
- function ze(t) {
908
- const n = q(t), e = +te(n) - +dn(n);
909
- return Math.round(e / $e) + 1;
835
+ function Ke(t) {
836
+ const n = _(t), e = +ne(n) - +pn(n);
837
+ return Math.round(e / Ue) + 1;
910
838
  }
911
- function De(t, n) {
912
- var d, u, l, h;
913
- const e = q(t), r = e.getFullYear(), o = re(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = L(t, 0);
914
- i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
915
- const s = z(i, n), p = L(t, 0);
916
- p.setFullYear(r, 0, a), p.setHours(0, 0, 0, 0);
917
- const c = z(p, n);
918
- return e.getTime() >= s.getTime() ? r + 1 : e.getTime() >= c.getTime() ? r : r - 1;
839
+ function He(t, n) {
840
+ var d, u, l, m;
841
+ const e = _(t), r = e.getFullYear(), o = oe(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = Y(t, 0);
842
+ s.setFullYear(r + 1, 0, a), s.setHours(0, 0, 0, 0);
843
+ const i = z(s, n), f = Y(t, 0);
844
+ f.setFullYear(r, 0, a), f.setHours(0, 0, 0, 0);
845
+ const c = z(f, n);
846
+ return e.getTime() >= i.getTime() ? r + 1 : e.getTime() >= c.getTime() ? r : r - 1;
919
847
  }
920
- function Gn(t, n) {
921
- var s, p, c, d;
922
- const e = re(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((p = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : p.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = De(t, n), a = L(t, 0);
848
+ function Un(t, n) {
849
+ var i, f, c, d;
850
+ const e = oe(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = He(t, n), a = Y(t, 0);
923
851
  return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), z(a, n);
924
852
  }
925
- function Ze(t, n) {
926
- const e = q(t), r = +z(e, n) - +Gn(e, n);
927
- return Math.round(r / $e) + 1;
853
+ function et(t, n) {
854
+ const e = _(t), r = +z(e, n) - +Un(e, n);
855
+ return Math.round(r / Ue) + 1;
928
856
  }
929
- function D(t, n) {
857
+ function O(t, n) {
930
858
  const e = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(n, "0");
931
859
  return e + r;
932
860
  }
933
- const X = {
861
+ const U = {
934
862
  // Year
935
863
  y(t, n) {
936
864
  const e = t.getFullYear(), r = e > 0 ? e : 1 - e;
937
- return D(n === "yy" ? r % 100 : r, n.length);
865
+ return O(n === "yy" ? r % 100 : r, n.length);
938
866
  },
939
867
  // Month
940
868
  M(t, n) {
941
869
  const e = t.getMonth();
942
- return n === "M" ? String(e + 1) : D(e + 1, 2);
870
+ return n === "M" ? String(e + 1) : O(e + 1, 2);
943
871
  },
944
872
  // Day of the month
945
873
  d(t, n) {
946
- return D(t.getDate(), n.length);
874
+ return O(t.getDate(), n.length);
947
875
  },
948
876
  // AM or PM
949
877
  a(t, n) {
@@ -963,26 +891,26 @@ const X = {
963
891
  },
964
892
  // Hour [1-12]
965
893
  h(t, n) {
966
- return D(t.getHours() % 12 || 12, n.length);
894
+ return O(t.getHours() % 12 || 12, n.length);
967
895
  },
968
896
  // Hour [0-23]
969
897
  H(t, n) {
970
- return D(t.getHours(), n.length);
898
+ return O(t.getHours(), n.length);
971
899
  },
972
900
  // Minute
973
901
  m(t, n) {
974
- return D(t.getMinutes(), n.length);
902
+ return O(t.getMinutes(), n.length);
975
903
  },
976
904
  // Second
977
905
  s(t, n) {
978
- return D(t.getSeconds(), n.length);
906
+ return O(t.getSeconds(), n.length);
979
907
  },
980
908
  // Fraction of second
981
909
  S(t, n) {
982
910
  const e = n.length, r = t.getMilliseconds(), o = Math.trunc(
983
911
  r * Math.pow(10, e - 3)
984
912
  );
985
- return D(o, n.length);
913
+ return O(o, n.length);
986
914
  }
987
915
  }, K = {
988
916
  am: "am",
@@ -993,7 +921,7 @@ const X = {
993
921
  afternoon: "afternoon",
994
922
  evening: "evening",
995
923
  night: "night"
996
- }, Ne = {
924
+ }, qe = {
997
925
  // Era
998
926
  G: function(t, n, e) {
999
927
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -1015,21 +943,21 @@ const X = {
1015
943
  const r = t.getFullYear(), o = r > 0 ? r : 1 - r;
1016
944
  return e.ordinalNumber(o, { unit: "year" });
1017
945
  }
1018
- return X.y(t, n);
946
+ return U.y(t, n);
1019
947
  },
1020
948
  // Local week-numbering year
1021
949
  Y: function(t, n, e, r) {
1022
- const o = De(t, r), a = o > 0 ? o : 1 - o;
950
+ const o = He(t, r), a = o > 0 ? o : 1 - o;
1023
951
  if (n === "YY") {
1024
- const i = a % 100;
1025
- return D(i, 2);
952
+ const s = a % 100;
953
+ return O(s, 2);
1026
954
  }
1027
- return n === "Yo" ? e.ordinalNumber(a, { unit: "year" }) : D(a, n.length);
955
+ return n === "Yo" ? e.ordinalNumber(a, { unit: "year" }) : O(a, n.length);
1028
956
  },
1029
957
  // ISO week-numbering year
1030
958
  R: function(t, n) {
1031
- const e = Ge(t);
1032
- return D(e, n.length);
959
+ const e = ze(t);
960
+ return O(e, n.length);
1033
961
  },
1034
962
  // Extended year. This is a single number designating the year of this calendar system.
1035
963
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -1042,7 +970,7 @@ const X = {
1042
970
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1043
971
  u: function(t, n) {
1044
972
  const e = t.getFullYear();
1045
- return D(e, n.length);
973
+ return O(e, n.length);
1046
974
  },
1047
975
  // Quarter
1048
976
  Q: function(t, n, e) {
@@ -1051,7 +979,7 @@ const X = {
1051
979
  case "Q":
1052
980
  return String(r);
1053
981
  case "QQ":
1054
- return D(r, 2);
982
+ return O(r, 2);
1055
983
  case "Qo":
1056
984
  return e.ordinalNumber(r, { unit: "quarter" });
1057
985
  case "QQQ":
@@ -1079,7 +1007,7 @@ const X = {
1079
1007
  case "q":
1080
1008
  return String(r);
1081
1009
  case "qq":
1082
- return D(r, 2);
1010
+ return O(r, 2);
1083
1011
  case "qo":
1084
1012
  return e.ordinalNumber(r, { unit: "quarter" });
1085
1013
  case "qqq":
@@ -1106,7 +1034,7 @@ const X = {
1106
1034
  switch (n) {
1107
1035
  case "M":
1108
1036
  case "MM":
1109
- return X.M(t, n);
1037
+ return U.M(t, n);
1110
1038
  case "Mo":
1111
1039
  return e.ordinalNumber(r + 1, { unit: "month" });
1112
1040
  case "MMM":
@@ -1131,7 +1059,7 @@ const X = {
1131
1059
  case "L":
1132
1060
  return String(r + 1);
1133
1061
  case "LL":
1134
- return D(r + 1, 2);
1062
+ return O(r + 1, 2);
1135
1063
  case "Lo":
1136
1064
  return e.ordinalNumber(r + 1, { unit: "month" });
1137
1065
  case "LLL":
@@ -1151,22 +1079,22 @@ const X = {
1151
1079
  },
1152
1080
  // Local week of year
1153
1081
  w: function(t, n, e, r) {
1154
- const o = Ze(t, r);
1155
- return n === "wo" ? e.ordinalNumber(o, { unit: "week" }) : D(o, n.length);
1082
+ const o = et(t, r);
1083
+ return n === "wo" ? e.ordinalNumber(o, { unit: "week" }) : O(o, n.length);
1156
1084
  },
1157
1085
  // ISO week of year
1158
1086
  I: function(t, n, e) {
1159
- const r = ze(t);
1160
- return n === "Io" ? e.ordinalNumber(r, { unit: "week" }) : D(r, n.length);
1087
+ const r = Ke(t);
1088
+ return n === "Io" ? e.ordinalNumber(r, { unit: "week" }) : O(r, n.length);
1161
1089
  },
1162
1090
  // Day of the month
1163
1091
  d: function(t, n, e) {
1164
- return n === "do" ? e.ordinalNumber(t.getDate(), { unit: "date" }) : X.d(t, n);
1092
+ return n === "do" ? e.ordinalNumber(t.getDate(), { unit: "date" }) : U.d(t, n);
1165
1093
  },
1166
1094
  // Day of year
1167
1095
  D: function(t, n, e) {
1168
- const r = $n(t);
1169
- return n === "Do" ? e.ordinalNumber(r, { unit: "dayOfYear" }) : D(r, n.length);
1096
+ const r = Xn(t);
1097
+ return n === "Do" ? e.ordinalNumber(r, { unit: "dayOfYear" }) : O(r, n.length);
1170
1098
  },
1171
1099
  // Day of week
1172
1100
  E: function(t, n, e) {
@@ -1204,7 +1132,7 @@ const X = {
1204
1132
  case "e":
1205
1133
  return String(a);
1206
1134
  case "ee":
1207
- return D(a, 2);
1135
+ return O(a, 2);
1208
1136
  case "eo":
1209
1137
  return e.ordinalNumber(a, { unit: "day" });
1210
1138
  case "eee":
@@ -1237,7 +1165,7 @@ const X = {
1237
1165
  case "c":
1238
1166
  return String(a);
1239
1167
  case "cc":
1240
- return D(a, n.length);
1168
+ return O(a, n.length);
1241
1169
  case "co":
1242
1170
  return e.ordinalNumber(a, { unit: "day" });
1243
1171
  case "ccc":
@@ -1270,7 +1198,7 @@ const X = {
1270
1198
  case "i":
1271
1199
  return String(o);
1272
1200
  case "ii":
1273
- return D(o, n.length);
1201
+ return O(o, n.length);
1274
1202
  case "io":
1275
1203
  return e.ordinalNumber(o, { unit: "day" });
1276
1204
  case "iii":
@@ -1384,33 +1312,33 @@ const X = {
1384
1312
  let r = t.getHours() % 12;
1385
1313
  return r === 0 && (r = 12), e.ordinalNumber(r, { unit: "hour" });
1386
1314
  }
1387
- return X.h(t, n);
1315
+ return U.h(t, n);
1388
1316
  },
1389
1317
  // Hour [0-23]
1390
1318
  H: function(t, n, e) {
1391
- return n === "Ho" ? e.ordinalNumber(t.getHours(), { unit: "hour" }) : X.H(t, n);
1319
+ return n === "Ho" ? e.ordinalNumber(t.getHours(), { unit: "hour" }) : U.H(t, n);
1392
1320
  },
1393
1321
  // Hour [0-11]
1394
1322
  K: function(t, n, e) {
1395
1323
  const r = t.getHours() % 12;
1396
- return n === "Ko" ? e.ordinalNumber(r, { unit: "hour" }) : D(r, n.length);
1324
+ return n === "Ko" ? e.ordinalNumber(r, { unit: "hour" }) : O(r, n.length);
1397
1325
  },
1398
1326
  // Hour [1-24]
1399
1327
  k: function(t, n, e) {
1400
1328
  let r = t.getHours();
1401
- return r === 0 && (r = 24), n === "ko" ? e.ordinalNumber(r, { unit: "hour" }) : D(r, n.length);
1329
+ return r === 0 && (r = 24), n === "ko" ? e.ordinalNumber(r, { unit: "hour" }) : O(r, n.length);
1402
1330
  },
1403
1331
  // Minute
1404
1332
  m: function(t, n, e) {
1405
- return n === "mo" ? e.ordinalNumber(t.getMinutes(), { unit: "minute" }) : X.m(t, n);
1333
+ return n === "mo" ? e.ordinalNumber(t.getMinutes(), { unit: "minute" }) : U.m(t, n);
1406
1334
  },
1407
1335
  // Second
1408
1336
  s: function(t, n, e) {
1409
- return n === "so" ? e.ordinalNumber(t.getSeconds(), { unit: "second" }) : X.s(t, n);
1337
+ return n === "so" ? e.ordinalNumber(t.getSeconds(), { unit: "second" }) : U.s(t, n);
1410
1338
  },
1411
1339
  // Fraction of second
1412
1340
  S: function(t, n) {
1413
- return X.S(t, n);
1341
+ return U.S(t, n);
1414
1342
  },
1415
1343
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1416
1344
  X: function(t, n, e) {
@@ -1419,14 +1347,14 @@ const X = {
1419
1347
  return "Z";
1420
1348
  switch (n) {
1421
1349
  case "X":
1422
- return Ae(r);
1350
+ return Le(r);
1423
1351
  case "XXXX":
1424
1352
  case "XX":
1425
- return Z(r);
1353
+ return J(r);
1426
1354
  case "XXXXX":
1427
1355
  case "XXX":
1428
1356
  default:
1429
- return Z(r, ":");
1357
+ return J(r, ":");
1430
1358
  }
1431
1359
  },
1432
1360
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1434,14 +1362,14 @@ const X = {
1434
1362
  const r = t.getTimezoneOffset();
1435
1363
  switch (n) {
1436
1364
  case "x":
1437
- return Ae(r);
1365
+ return Le(r);
1438
1366
  case "xxxx":
1439
1367
  case "xx":
1440
- return Z(r);
1368
+ return J(r);
1441
1369
  case "xxxxx":
1442
1370
  case "xxx":
1443
1371
  default:
1444
- return Z(r, ":");
1372
+ return J(r, ":");
1445
1373
  }
1446
1374
  },
1447
1375
  // Timezone (GMT)
@@ -1451,10 +1379,10 @@ const X = {
1451
1379
  case "O":
1452
1380
  case "OO":
1453
1381
  case "OOO":
1454
- return "GMT" + Le(r, ":");
1382
+ return "GMT" + Ae(r, ":");
1455
1383
  case "OOOO":
1456
1384
  default:
1457
- return "GMT" + Z(r, ":");
1385
+ return "GMT" + J(r, ":");
1458
1386
  }
1459
1387
  },
1460
1388
  // Timezone (specific non-location)
@@ -1464,35 +1392,35 @@ const X = {
1464
1392
  case "z":
1465
1393
  case "zz":
1466
1394
  case "zzz":
1467
- return "GMT" + Le(r, ":");
1395
+ return "GMT" + Ae(r, ":");
1468
1396
  case "zzzz":
1469
1397
  default:
1470
- return "GMT" + Z(r, ":");
1398
+ return "GMT" + J(r, ":");
1471
1399
  }
1472
1400
  },
1473
1401
  // Seconds timestamp
1474
1402
  t: function(t, n, e) {
1475
1403
  const r = Math.trunc(t.getTime() / 1e3);
1476
- return D(r, n.length);
1404
+ return O(r, n.length);
1477
1405
  },
1478
1406
  // Milliseconds timestamp
1479
1407
  T: function(t, n, e) {
1480
1408
  const r = t.getTime();
1481
- return D(r, n.length);
1409
+ return O(r, n.length);
1482
1410
  }
1483
1411
  };
1484
- function Le(t, n = "") {
1412
+ function Ae(t, n = "") {
1485
1413
  const e = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), a = r % 60;
1486
- return a === 0 ? e + String(o) : e + String(o) + n + D(a, 2);
1414
+ return a === 0 ? e + String(o) : e + String(o) + n + O(a, 2);
1487
1415
  }
1488
- function Ae(t, n) {
1489
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + D(Math.abs(t) / 60, 2) : Z(t, n);
1416
+ function Le(t, n) {
1417
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + O(Math.abs(t) / 60, 2) : J(t, n);
1490
1418
  }
1491
- function Z(t, n = "") {
1492
- const e = t > 0 ? "-" : "+", r = Math.abs(t), o = D(Math.trunc(r / 60), 2), a = D(r % 60, 2);
1419
+ function J(t, n = "") {
1420
+ const e = t > 0 ? "-" : "+", r = Math.abs(t), o = O(Math.trunc(r / 60), 2), a = O(r % 60, 2);
1493
1421
  return e + o + n + a;
1494
1422
  }
1495
- const We = (t, n) => {
1423
+ const _e = (t, n) => {
1496
1424
  switch (t) {
1497
1425
  case "P":
1498
1426
  return n.date({ width: "short" });
@@ -1504,7 +1432,7 @@ const We = (t, n) => {
1504
1432
  default:
1505
1433
  return n.date({ width: "full" });
1506
1434
  }
1507
- }, Je = (t, n) => {
1435
+ }, tt = (t, n) => {
1508
1436
  switch (t) {
1509
1437
  case "p":
1510
1438
  return n.time({ width: "short" });
@@ -1516,10 +1444,10 @@ const We = (t, n) => {
1516
1444
  default:
1517
1445
  return n.time({ width: "full" });
1518
1446
  }
1519
- }, Un = (t, n) => {
1447
+ }, zn = (t, n) => {
1520
1448
  const e = t.match(/(P+)(p+)?/) || [], r = e[1], o = e[2];
1521
1449
  if (!o)
1522
- return We(t, n);
1450
+ return _e(t, n);
1523
1451
  let a;
1524
1452
  switch (r) {
1525
1453
  case "P":
@@ -1536,79 +1464,79 @@ const We = (t, n) => {
1536
1464
  a = n.dateTime({ width: "full" });
1537
1465
  break;
1538
1466
  }
1539
- return a.replace("{{date}}", We(r, n)).replace("{{time}}", Je(o, n));
1540
- }, xe = {
1541
- p: Je,
1542
- P: Un
1543
- }, Xn = /^D+$/, zn = /^Y+$/, Zn = ["D", "DD", "YY", "YYYY"];
1544
- function Ke(t) {
1545
- return Xn.test(t);
1467
+ return a.replace("{{date}}", _e(r, n)).replace("{{time}}", tt(o, n));
1468
+ }, Te = {
1469
+ p: tt,
1470
+ P: zn
1471
+ }, Jn = /^D+$/, Zn = /^Y+$/, Kn = ["D", "DD", "YY", "YYYY"];
1472
+ function nt(t) {
1473
+ return Jn.test(t);
1546
1474
  }
1547
- function et(t) {
1548
- return zn.test(t);
1475
+ function rt(t) {
1476
+ return Zn.test(t);
1549
1477
  }
1550
- function Te(t, n, e) {
1551
- const r = Jn(t, n, e);
1552
- if (console.warn(r), Zn.includes(t)) throw new RangeError(r);
1478
+ function ke(t, n, e) {
1479
+ const r = er(t, n, e);
1480
+ if (console.warn(r), Kn.includes(t)) throw new RangeError(r);
1553
1481
  }
1554
- function Jn(t, n, e) {
1482
+ function er(t, n, e) {
1555
1483
  const r = t[0] === "Y" ? "years" : "days of the month";
1556
1484
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1557
1485
  }
1558
- const Kn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, er = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tr = /^'([^]*?)'?$/, nr = /''/g, rr = /[a-zA-Z]/;
1486
+ const tr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, nr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, rr = /^'([^]*?)'?$/, or = /''/g, ar = /[a-zA-Z]/;
1559
1487
  function Ie(t, n, e) {
1560
- var d, u, l, h;
1561
- const r = re(), o = r.locale ?? Xe, a = r.firstWeekContainsDate ?? ((u = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, i = r.weekStartsOn ?? ((h = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = q(t);
1562
- if (!Ue(s))
1488
+ var d, u, l, m;
1489
+ const r = oe(), o = r.locale ?? Ze, a = r.firstWeekContainsDate ?? ((u = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((m = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = _(t);
1490
+ if (!Je(i))
1563
1491
  throw new RangeError("Invalid time value");
1564
- let p = n.match(er).map((y) => {
1492
+ let f = n.match(nr).map((y) => {
1565
1493
  const M = y[0];
1566
1494
  if (M === "p" || M === "P") {
1567
- const O = xe[M];
1568
- return O(y, o.formatLong);
1495
+ const D = Te[M];
1496
+ return D(y, o.formatLong);
1569
1497
  }
1570
1498
  return y;
1571
- }).join("").match(Kn).map((y) => {
1499
+ }).join("").match(tr).map((y) => {
1572
1500
  if (y === "''")
1573
1501
  return { isToken: !1, value: "'" };
1574
1502
  const M = y[0];
1575
1503
  if (M === "'")
1576
- return { isToken: !1, value: or(y) };
1577
- if (Ne[M])
1504
+ return { isToken: !1, value: ir(y) };
1505
+ if (qe[M])
1578
1506
  return { isToken: !0, value: y };
1579
- if (M.match(rr))
1507
+ if (M.match(ar))
1580
1508
  throw new RangeError(
1581
1509
  "Format string contains an unescaped latin alphabet character `" + M + "`"
1582
1510
  );
1583
1511
  return { isToken: !1, value: y };
1584
1512
  });
1585
- o.localize.preprocessor && (p = o.localize.preprocessor(s, p));
1513
+ o.localize.preprocessor && (f = o.localize.preprocessor(i, f));
1586
1514
  const c = {
1587
1515
  firstWeekContainsDate: a,
1588
- weekStartsOn: i,
1516
+ weekStartsOn: s,
1589
1517
  locale: o
1590
1518
  };
1591
- return p.map((y) => {
1519
+ return f.map((y) => {
1592
1520
  if (!y.isToken) return y.value;
1593
1521
  const M = y.value;
1594
- (et(M) || Ke(M)) && Te(M, n, String(t));
1595
- const O = Ne[M[0]];
1596
- return O(s, M, o.localize, c);
1522
+ (rt(M) || nt(M)) && ke(M, n, String(t));
1523
+ const D = qe[M[0]];
1524
+ return D(i, M, o.localize, c);
1597
1525
  }).join("");
1598
1526
  }
1599
- function or(t) {
1600
- const n = t.match(tr);
1601
- return n ? n[1].replace(nr, "'") : t;
1527
+ function ir(t) {
1528
+ const n = t.match(rr);
1529
+ return n ? n[1].replace(or, "'") : t;
1602
1530
  }
1603
- function ar() {
1604
- return Object.assign({}, re());
1531
+ function sr() {
1532
+ return Object.assign({}, oe());
1605
1533
  }
1606
- function ir(t) {
1607
- let e = q(t).getDay();
1534
+ function ur(t) {
1535
+ let e = _(t).getDay();
1608
1536
  return e === 0 && (e = 7), e;
1609
1537
  }
1610
- function sr(t, n) {
1611
- const e = n instanceof Date ? L(n, 0) : new n(0);
1538
+ function lr(t, n) {
1539
+ const e = n instanceof Date ? Y(n, 0) : new n(0);
1612
1540
  return e.setFullYear(
1613
1541
  t.getFullYear(),
1614
1542
  t.getMonth(),
@@ -1620,16 +1548,16 @@ function sr(t, n) {
1620
1548
  t.getMilliseconds()
1621
1549
  ), e;
1622
1550
  }
1623
- const ur = 10;
1624
- class tt {
1551
+ const cr = 10;
1552
+ class ot {
1625
1553
  constructor() {
1626
- f(this, "subPriority", 0);
1554
+ p(this, "subPriority", 0);
1627
1555
  }
1628
1556
  validate(n, e) {
1629
1557
  return !0;
1630
1558
  }
1631
1559
  }
1632
- class lr extends tt {
1560
+ class dr extends ot {
1633
1561
  constructor(n, e, r, o, a) {
1634
1562
  super(), this.value = n, this.validateValue = e, this.setValue = r, this.priority = o, a && (this.subPriority = a);
1635
1563
  }
@@ -1640,21 +1568,21 @@ class lr extends tt {
1640
1568
  return this.setValue(n, e, this.value, r);
1641
1569
  }
1642
1570
  }
1643
- class cr extends tt {
1571
+ class fr extends ot {
1644
1572
  constructor() {
1645
1573
  super(...arguments);
1646
- f(this, "priority", ur);
1647
- f(this, "subPriority", -1);
1574
+ p(this, "priority", cr);
1575
+ p(this, "subPriority", -1);
1648
1576
  }
1649
1577
  set(e, r) {
1650
- return r.timestampIsSet ? e : L(e, sr(e, Date));
1578
+ return r.timestampIsSet ? e : Y(e, lr(e, Date));
1651
1579
  }
1652
1580
  }
1653
1581
  class P {
1654
1582
  run(n, e, r, o) {
1655
1583
  const a = this.parse(n, e, r, o);
1656
1584
  return a ? {
1657
- setter: new lr(
1585
+ setter: new dr(
1658
1586
  a.value,
1659
1587
  this.validate,
1660
1588
  this.set,
@@ -1668,11 +1596,11 @@ class P {
1668
1596
  return !0;
1669
1597
  }
1670
1598
  }
1671
- class dr extends P {
1599
+ class pr extends P {
1672
1600
  constructor() {
1673
1601
  super(...arguments);
1674
- f(this, "priority", 140);
1675
- f(this, "incompatibleTokens", ["R", "u", "t", "T"]);
1602
+ p(this, "priority", 140);
1603
+ p(this, "incompatibleTokens", ["R", "u", "t", "T"]);
1676
1604
  }
1677
1605
  parse(e, r, o) {
1678
1606
  switch (r) {
@@ -1691,7 +1619,7 @@ class dr extends P {
1691
1619
  return r.era = o, e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
1692
1620
  }
1693
1621
  }
1694
- const W = {
1622
+ const q = {
1695
1623
  month: /^(1[0-2]|0?\d)/,
1696
1624
  // 0 to 12
1697
1625
  date: /^(3[0-1]|[0-2]?\d)/,
@@ -1736,20 +1664,20 @@ const W = {
1736
1664
  extended: /^([+-])(\d{2}):(\d{2})|Z/,
1737
1665
  extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
1738
1666
  };
1739
- function I(t, n) {
1667
+ function A(t, n) {
1740
1668
  return t && {
1741
1669
  value: n(t.value),
1742
1670
  rest: t.rest
1743
1671
  };
1744
1672
  }
1745
- function N(t, n) {
1673
+ function S(t, n) {
1746
1674
  const e = n.match(t);
1747
1675
  return e ? {
1748
1676
  value: parseInt(e[0], 10),
1749
1677
  rest: n.slice(e[0].length)
1750
1678
  } : null;
1751
1679
  }
1752
- function U(t, n) {
1680
+ function X(t, n) {
1753
1681
  const e = n.match(t);
1754
1682
  if (!e)
1755
1683
  return null;
@@ -1758,44 +1686,44 @@ function U(t, n) {
1758
1686
  value: 0,
1759
1687
  rest: n.slice(1)
1760
1688
  };
1761
- const r = e[1] === "+" ? 1 : -1, o = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, i = e[5] ? parseInt(e[5], 10) : 0;
1689
+ const r = e[1] === "+" ? 1 : -1, o = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, s = e[5] ? parseInt(e[5], 10) : 0;
1762
1690
  return {
1763
- value: r * (o * sn + a * an + i * un),
1691
+ value: r * (o * ln + a * un + s * cn),
1764
1692
  rest: n.slice(e[0].length)
1765
1693
  };
1766
1694
  }
1767
- function nt(t) {
1768
- return N(W.anyDigitsSigned, t);
1695
+ function at(t) {
1696
+ return S(q.anyDigitsSigned, t);
1769
1697
  }
1770
- function A(t, n) {
1698
+ function W(t, n) {
1771
1699
  switch (t) {
1772
1700
  case 1:
1773
- return N(W.singleDigit, n);
1701
+ return S(q.singleDigit, n);
1774
1702
  case 2:
1775
- return N(W.twoDigits, n);
1703
+ return S(q.twoDigits, n);
1776
1704
  case 3:
1777
- return N(W.threeDigits, n);
1705
+ return S(q.threeDigits, n);
1778
1706
  case 4:
1779
- return N(W.fourDigits, n);
1707
+ return S(q.fourDigits, n);
1780
1708
  default:
1781
- return N(new RegExp("^\\d{1," + t + "}"), n);
1709
+ return S(new RegExp("^\\d{1," + t + "}"), n);
1782
1710
  }
1783
1711
  }
1784
- function he(t, n) {
1712
+ function ye(t, n) {
1785
1713
  switch (t) {
1786
1714
  case 1:
1787
- return N(W.singleDigitSigned, n);
1715
+ return S(q.singleDigitSigned, n);
1788
1716
  case 2:
1789
- return N(W.twoDigitsSigned, n);
1717
+ return S(q.twoDigitsSigned, n);
1790
1718
  case 3:
1791
- return N(W.threeDigitsSigned, n);
1719
+ return S(q.threeDigitsSigned, n);
1792
1720
  case 4:
1793
- return N(W.fourDigitsSigned, n);
1721
+ return S(q.fourDigitsSigned, n);
1794
1722
  default:
1795
- return N(new RegExp("^-?\\d{1," + t + "}"), n);
1723
+ return S(new RegExp("^-?\\d{1," + t + "}"), n);
1796
1724
  }
1797
1725
  }
1798
- function Oe(t) {
1726
+ function Be(t) {
1799
1727
  switch (t) {
1800
1728
  case "morning":
1801
1729
  return 4;
@@ -1812,43 +1740,43 @@ function Oe(t) {
1812
1740
  return 0;
1813
1741
  }
1814
1742
  }
1815
- function rt(t, n) {
1743
+ function it(t, n) {
1816
1744
  const e = n > 0, r = e ? n : 1 - n;
1817
1745
  let o;
1818
1746
  if (r <= 50)
1819
1747
  o = t || 100;
1820
1748
  else {
1821
- const a = r + 50, i = Math.trunc(a / 100) * 100, s = t >= a % 100;
1822
- o = t + i - (s ? 100 : 0);
1749
+ const a = r + 50, s = Math.trunc(a / 100) * 100, i = t >= a % 100;
1750
+ o = t + s - (i ? 100 : 0);
1823
1751
  }
1824
1752
  return e ? o : 1 - o;
1825
1753
  }
1826
- function ot(t) {
1754
+ function st(t) {
1827
1755
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1828
1756
  }
1829
- class fr extends P {
1757
+ class mr extends P {
1830
1758
  constructor() {
1831
1759
  super(...arguments);
1832
- f(this, "priority", 130);
1833
- f(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
1760
+ p(this, "priority", 130);
1761
+ p(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
1834
1762
  }
1835
1763
  parse(e, r, o) {
1836
- const a = (i) => ({
1837
- year: i,
1764
+ const a = (s) => ({
1765
+ year: s,
1838
1766
  isTwoDigitYear: r === "yy"
1839
1767
  });
1840
1768
  switch (r) {
1841
1769
  case "y":
1842
- return I(A(4, e), a);
1770
+ return A(W(4, e), a);
1843
1771
  case "yo":
1844
- return I(
1772
+ return A(
1845
1773
  o.ordinalNumber(e, {
1846
1774
  unit: "year"
1847
1775
  }),
1848
1776
  a
1849
1777
  );
1850
1778
  default:
1851
- return I(A(r.length, e), a);
1779
+ return A(W(r.length, e), a);
1852
1780
  }
1853
1781
  }
1854
1782
  validate(e, r) {
@@ -1857,21 +1785,21 @@ class fr extends P {
1857
1785
  set(e, r, o) {
1858
1786
  const a = e.getFullYear();
1859
1787
  if (o.isTwoDigitYear) {
1860
- const s = rt(
1788
+ const i = it(
1861
1789
  o.year,
1862
1790
  a
1863
1791
  );
1864
- return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
1792
+ return e.setFullYear(i, 0, 1), e.setHours(0, 0, 0, 0), e;
1865
1793
  }
1866
- const i = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
1867
- return e.setFullYear(i, 0, 1), e.setHours(0, 0, 0, 0), e;
1794
+ const s = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
1795
+ return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
1868
1796
  }
1869
1797
  }
1870
- class pr extends P {
1798
+ class hr extends P {
1871
1799
  constructor() {
1872
1800
  super(...arguments);
1873
- f(this, "priority", 130);
1874
- f(this, "incompatibleTokens", [
1801
+ p(this, "priority", 130);
1802
+ p(this, "incompatibleTokens", [
1875
1803
  "y",
1876
1804
  "R",
1877
1805
  "u",
@@ -1888,49 +1816,49 @@ class pr extends P {
1888
1816
  ]);
1889
1817
  }
1890
1818
  parse(e, r, o) {
1891
- const a = (i) => ({
1892
- year: i,
1819
+ const a = (s) => ({
1820
+ year: s,
1893
1821
  isTwoDigitYear: r === "YY"
1894
1822
  });
1895
1823
  switch (r) {
1896
1824
  case "Y":
1897
- return I(A(4, e), a);
1825
+ return A(W(4, e), a);
1898
1826
  case "Yo":
1899
- return I(
1827
+ return A(
1900
1828
  o.ordinalNumber(e, {
1901
1829
  unit: "year"
1902
1830
  }),
1903
1831
  a
1904
1832
  );
1905
1833
  default:
1906
- return I(A(r.length, e), a);
1834
+ return A(W(r.length, e), a);
1907
1835
  }
1908
1836
  }
1909
1837
  validate(e, r) {
1910
1838
  return r.isTwoDigitYear || r.year > 0;
1911
1839
  }
1912
1840
  set(e, r, o, a) {
1913
- const i = De(e, a);
1841
+ const s = He(e, a);
1914
1842
  if (o.isTwoDigitYear) {
1915
- const p = rt(
1843
+ const f = it(
1916
1844
  o.year,
1917
- i
1845
+ s
1918
1846
  );
1919
1847
  return e.setFullYear(
1920
- p,
1848
+ f,
1921
1849
  0,
1922
1850
  a.firstWeekContainsDate
1923
1851
  ), e.setHours(0, 0, 0, 0), z(e, a);
1924
1852
  }
1925
- const s = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
1926
- return e.setFullYear(s, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), z(e, a);
1853
+ const i = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
1854
+ return e.setFullYear(i, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), z(e, a);
1927
1855
  }
1928
1856
  }
1929
- class mr extends P {
1857
+ class yr extends P {
1930
1858
  constructor() {
1931
1859
  super(...arguments);
1932
- f(this, "priority", 130);
1933
- f(this, "incompatibleTokens", [
1860
+ p(this, "priority", 130);
1861
+ p(this, "incompatibleTokens", [
1934
1862
  "G",
1935
1863
  "y",
1936
1864
  "Y",
@@ -1949,31 +1877,31 @@ class mr extends P {
1949
1877
  ]);
1950
1878
  }
1951
1879
  parse(e, r) {
1952
- return he(r === "R" ? 4 : r.length, e);
1880
+ return ye(r === "R" ? 4 : r.length, e);
1953
1881
  }
1954
1882
  set(e, r, o) {
1955
- const a = L(e, 0);
1956
- return a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0), te(a);
1883
+ const a = Y(e, 0);
1884
+ return a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0), ne(a);
1957
1885
  }
1958
1886
  }
1959
- class hr extends P {
1887
+ class gr extends P {
1960
1888
  constructor() {
1961
1889
  super(...arguments);
1962
- f(this, "priority", 130);
1963
- f(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
1890
+ p(this, "priority", 130);
1891
+ p(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
1964
1892
  }
1965
1893
  parse(e, r) {
1966
- return he(r === "u" ? 4 : r.length, e);
1894
+ return ye(r === "u" ? 4 : r.length, e);
1967
1895
  }
1968
1896
  set(e, r, o) {
1969
1897
  return e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
1970
1898
  }
1971
1899
  }
1972
- class yr extends P {
1900
+ class br extends P {
1973
1901
  constructor() {
1974
1902
  super(...arguments);
1975
- f(this, "priority", 120);
1976
- f(this, "incompatibleTokens", [
1903
+ p(this, "priority", 120);
1904
+ p(this, "incompatibleTokens", [
1977
1905
  "Y",
1978
1906
  "R",
1979
1907
  "q",
@@ -1994,7 +1922,7 @@ class yr extends P {
1994
1922
  switch (r) {
1995
1923
  case "Q":
1996
1924
  case "QQ":
1997
- return A(r.length, e);
1925
+ return W(r.length, e);
1998
1926
  case "Qo":
1999
1927
  return o.ordinalNumber(e, { unit: "quarter" });
2000
1928
  case "QQQ":
@@ -2031,11 +1959,11 @@ class yr extends P {
2031
1959
  return e.setMonth((o - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
2032
1960
  }
2033
1961
  }
2034
- class gr extends P {
1962
+ class wr extends P {
2035
1963
  constructor() {
2036
1964
  super(...arguments);
2037
- f(this, "priority", 120);
2038
- f(this, "incompatibleTokens", [
1965
+ p(this, "priority", 120);
1966
+ p(this, "incompatibleTokens", [
2039
1967
  "Y",
2040
1968
  "R",
2041
1969
  "Q",
@@ -2056,7 +1984,7 @@ class gr extends P {
2056
1984
  switch (r) {
2057
1985
  case "q":
2058
1986
  case "qq":
2059
- return A(r.length, e);
1987
+ return W(r.length, e);
2060
1988
  case "qo":
2061
1989
  return o.ordinalNumber(e, { unit: "quarter" });
2062
1990
  case "qqq":
@@ -2093,10 +2021,10 @@ class gr extends P {
2093
2021
  return e.setMonth((o - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
2094
2022
  }
2095
2023
  }
2096
- class br extends P {
2024
+ class vr extends P {
2097
2025
  constructor() {
2098
2026
  super(...arguments);
2099
- f(this, "incompatibleTokens", [
2027
+ p(this, "incompatibleTokens", [
2100
2028
  "Y",
2101
2029
  "R",
2102
2030
  "q",
@@ -2111,20 +2039,20 @@ class br extends P {
2111
2039
  "t",
2112
2040
  "T"
2113
2041
  ]);
2114
- f(this, "priority", 110);
2042
+ p(this, "priority", 110);
2115
2043
  }
2116
2044
  parse(e, r, o) {
2117
- const a = (i) => i - 1;
2045
+ const a = (s) => s - 1;
2118
2046
  switch (r) {
2119
2047
  case "M":
2120
- return I(
2121
- N(W.month, e),
2048
+ return A(
2049
+ S(q.month, e),
2122
2050
  a
2123
2051
  );
2124
2052
  case "MM":
2125
- return I(A(2, e), a);
2053
+ return A(W(2, e), a);
2126
2054
  case "Mo":
2127
- return I(
2055
+ return A(
2128
2056
  o.ordinalNumber(e, {
2129
2057
  unit: "month"
2130
2058
  }),
@@ -2155,11 +2083,11 @@ class br extends P {
2155
2083
  return e.setMonth(o, 1), e.setHours(0, 0, 0, 0), e;
2156
2084
  }
2157
2085
  }
2158
- class wr extends P {
2086
+ class xr extends P {
2159
2087
  constructor() {
2160
2088
  super(...arguments);
2161
- f(this, "priority", 110);
2162
- f(this, "incompatibleTokens", [
2089
+ p(this, "priority", 110);
2090
+ p(this, "incompatibleTokens", [
2163
2091
  "Y",
2164
2092
  "R",
2165
2093
  "q",
@@ -2176,17 +2104,17 @@ class wr extends P {
2176
2104
  ]);
2177
2105
  }
2178
2106
  parse(e, r, o) {
2179
- const a = (i) => i - 1;
2107
+ const a = (s) => s - 1;
2180
2108
  switch (r) {
2181
2109
  case "L":
2182
- return I(
2183
- N(W.month, e),
2110
+ return A(
2111
+ S(q.month, e),
2184
2112
  a
2185
2113
  );
2186
2114
  case "LL":
2187
- return I(A(2, e), a);
2115
+ return A(W(2, e), a);
2188
2116
  case "Lo":
2189
- return I(
2117
+ return A(
2190
2118
  o.ordinalNumber(e, {
2191
2119
  unit: "month"
2192
2120
  }),
@@ -2217,15 +2145,15 @@ class wr extends P {
2217
2145
  return e.setMonth(o, 1), e.setHours(0, 0, 0, 0), e;
2218
2146
  }
2219
2147
  }
2220
- function vr(t, n, e) {
2221
- const r = q(t), o = Ze(r, e) - n;
2148
+ function Mr(t, n, e) {
2149
+ const r = _(t), o = et(r, e) - n;
2222
2150
  return r.setDate(r.getDate() - o * 7), r;
2223
2151
  }
2224
- class xr extends P {
2152
+ class Tr extends P {
2225
2153
  constructor() {
2226
2154
  super(...arguments);
2227
- f(this, "priority", 100);
2228
- f(this, "incompatibleTokens", [
2155
+ p(this, "priority", 100);
2156
+ p(this, "incompatibleTokens", [
2229
2157
  "y",
2230
2158
  "R",
2231
2159
  "u",
@@ -2244,29 +2172,29 @@ class xr extends P {
2244
2172
  parse(e, r, o) {
2245
2173
  switch (r) {
2246
2174
  case "w":
2247
- return N(W.week, e);
2175
+ return S(q.week, e);
2248
2176
  case "wo":
2249
2177
  return o.ordinalNumber(e, { unit: "week" });
2250
2178
  default:
2251
- return A(r.length, e);
2179
+ return W(r.length, e);
2252
2180
  }
2253
2181
  }
2254
2182
  validate(e, r) {
2255
2183
  return r >= 1 && r <= 53;
2256
2184
  }
2257
2185
  set(e, r, o, a) {
2258
- return z(vr(e, o, a), a);
2186
+ return z(Mr(e, o, a), a);
2259
2187
  }
2260
2188
  }
2261
- function Tr(t, n) {
2262
- const e = q(t), r = ze(e) - n;
2189
+ function kr(t, n) {
2190
+ const e = _(t), r = Ke(e) - n;
2263
2191
  return e.setDate(e.getDate() - r * 7), e;
2264
2192
  }
2265
- class Mr extends P {
2193
+ class Cr extends P {
2266
2194
  constructor() {
2267
2195
  super(...arguments);
2268
- f(this, "priority", 100);
2269
- f(this, "incompatibleTokens", [
2196
+ p(this, "priority", 100);
2197
+ p(this, "incompatibleTokens", [
2270
2198
  "y",
2271
2199
  "Y",
2272
2200
  "u",
@@ -2286,21 +2214,21 @@ class Mr extends P {
2286
2214
  parse(e, r, o) {
2287
2215
  switch (r) {
2288
2216
  case "I":
2289
- return N(W.week, e);
2217
+ return S(q.week, e);
2290
2218
  case "Io":
2291
2219
  return o.ordinalNumber(e, { unit: "week" });
2292
2220
  default:
2293
- return A(r.length, e);
2221
+ return W(r.length, e);
2294
2222
  }
2295
2223
  }
2296
2224
  validate(e, r) {
2297
2225
  return r >= 1 && r <= 53;
2298
2226
  }
2299
2227
  set(e, r, o) {
2300
- return te(Tr(e, o));
2228
+ return ne(kr(e, o));
2301
2229
  }
2302
2230
  }
2303
- const Cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kr = [
2231
+ const Pr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Or = [
2304
2232
  31,
2305
2233
  29,
2306
2234
  31,
@@ -2314,12 +2242,12 @@ const Cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kr = [
2314
2242
  30,
2315
2243
  31
2316
2244
  ];
2317
- class Pr extends P {
2245
+ class Dr extends P {
2318
2246
  constructor() {
2319
2247
  super(...arguments);
2320
- f(this, "priority", 90);
2321
- f(this, "subPriority", 1);
2322
- f(this, "incompatibleTokens", [
2248
+ p(this, "priority", 90);
2249
+ p(this, "subPriority", 1);
2250
+ p(this, "incompatibleTokens", [
2323
2251
  "Y",
2324
2252
  "R",
2325
2253
  "q",
@@ -2337,27 +2265,27 @@ class Pr extends P {
2337
2265
  parse(e, r, o) {
2338
2266
  switch (r) {
2339
2267
  case "d":
2340
- return N(W.date, e);
2268
+ return S(q.date, e);
2341
2269
  case "do":
2342
2270
  return o.ordinalNumber(e, { unit: "date" });
2343
2271
  default:
2344
- return A(r.length, e);
2272
+ return W(r.length, e);
2345
2273
  }
2346
2274
  }
2347
2275
  validate(e, r) {
2348
- const o = e.getFullYear(), a = ot(o), i = e.getMonth();
2349
- return a ? r >= 1 && r <= kr[i] : r >= 1 && r <= Cr[i];
2276
+ const o = e.getFullYear(), a = st(o), s = e.getMonth();
2277
+ return a ? r >= 1 && r <= Or[s] : r >= 1 && r <= Pr[s];
2350
2278
  }
2351
2279
  set(e, r, o) {
2352
2280
  return e.setDate(o), e.setHours(0, 0, 0, 0), e;
2353
2281
  }
2354
2282
  }
2355
- class Dr extends P {
2283
+ class Hr extends P {
2356
2284
  constructor() {
2357
2285
  super(...arguments);
2358
- f(this, "priority", 90);
2359
- f(this, "subpriority", 1);
2360
- f(this, "incompatibleTokens", [
2286
+ p(this, "priority", 90);
2287
+ p(this, "subpriority", 1);
2288
+ p(this, "incompatibleTokens", [
2361
2289
  "Y",
2362
2290
  "R",
2363
2291
  "q",
@@ -2379,31 +2307,31 @@ class Dr extends P {
2379
2307
  switch (r) {
2380
2308
  case "D":
2381
2309
  case "DD":
2382
- return N(W.dayOfYear, e);
2310
+ return S(q.dayOfYear, e);
2383
2311
  case "Do":
2384
2312
  return o.ordinalNumber(e, { unit: "date" });
2385
2313
  default:
2386
- return A(r.length, e);
2314
+ return W(r.length, e);
2387
2315
  }
2388
2316
  }
2389
2317
  validate(e, r) {
2390
2318
  const o = e.getFullYear();
2391
- return ot(o) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
2319
+ return st(o) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
2392
2320
  }
2393
2321
  set(e, r, o) {
2394
2322
  return e.setMonth(0, o), e.setHours(0, 0, 0, 0), e;
2395
2323
  }
2396
2324
  }
2397
- function He(t, n, e) {
2398
- var u, l, h, y;
2399
- const r = re(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? r.weekStartsOn ?? ((y = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : y.weekStartsOn) ?? 0, a = q(t), i = a.getDay(), p = (n % 7 + 7) % 7, c = 7 - o, d = n < 0 || n > 6 ? n - (i + c) % 7 : (p + c) % 7 - (i + c) % 7;
2400
- return Qe(a, d);
2325
+ function Ee(t, n, e) {
2326
+ var u, l, m, y;
2327
+ const r = oe(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? r.weekStartsOn ?? ((y = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, a = _(t), s = a.getDay(), f = (n % 7 + 7) % 7, c = 7 - o, d = n < 0 || n > 6 ? n - (s + c) % 7 : (f + c) % 7 - (s + c) % 7;
2328
+ return Xe(a, d);
2401
2329
  }
2402
- class Or extends P {
2330
+ class Br extends P {
2403
2331
  constructor() {
2404
2332
  super(...arguments);
2405
- f(this, "priority", 90);
2406
- f(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
2333
+ p(this, "priority", 90);
2334
+ p(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
2407
2335
  }
2408
2336
  parse(e, r, o) {
2409
2337
  switch (r) {
@@ -2433,14 +2361,14 @@ class Or extends P {
2433
2361
  return r >= 0 && r <= 6;
2434
2362
  }
2435
2363
  set(e, r, o, a) {
2436
- return e = He(e, o, a), e.setHours(0, 0, 0, 0), e;
2364
+ return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2437
2365
  }
2438
2366
  }
2439
- class Hr extends P {
2367
+ class Er extends P {
2440
2368
  constructor() {
2441
2369
  super(...arguments);
2442
- f(this, "priority", 90);
2443
- f(this, "incompatibleTokens", [
2370
+ p(this, "priority", 90);
2371
+ p(this, "incompatibleTokens", [
2444
2372
  "y",
2445
2373
  "R",
2446
2374
  "u",
@@ -2459,20 +2387,20 @@ class Hr extends P {
2459
2387
  ]);
2460
2388
  }
2461
2389
  parse(e, r, o, a) {
2462
- const i = (s) => {
2463
- const p = Math.floor((s - 1) / 7) * 7;
2464
- return (s + a.weekStartsOn + 6) % 7 + p;
2390
+ const s = (i) => {
2391
+ const f = Math.floor((i - 1) / 7) * 7;
2392
+ return (i + a.weekStartsOn + 6) % 7 + f;
2465
2393
  };
2466
2394
  switch (r) {
2467
2395
  case "e":
2468
2396
  case "ee":
2469
- return I(A(r.length, e), i);
2397
+ return A(W(r.length, e), s);
2470
2398
  case "eo":
2471
- return I(
2399
+ return A(
2472
2400
  o.ordinalNumber(e, {
2473
2401
  unit: "day"
2474
2402
  }),
2475
- i
2403
+ s
2476
2404
  );
2477
2405
  case "eee":
2478
2406
  return o.day(e, {
@@ -2498,14 +2426,14 @@ class Hr extends P {
2498
2426
  return r >= 0 && r <= 6;
2499
2427
  }
2500
2428
  set(e, r, o, a) {
2501
- return e = He(e, o, a), e.setHours(0, 0, 0, 0), e;
2429
+ return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2502
2430
  }
2503
2431
  }
2504
- class Br extends P {
2432
+ class Vr extends P {
2505
2433
  constructor() {
2506
2434
  super(...arguments);
2507
- f(this, "priority", 90);
2508
- f(this, "incompatibleTokens", [
2435
+ p(this, "priority", 90);
2436
+ p(this, "incompatibleTokens", [
2509
2437
  "y",
2510
2438
  "R",
2511
2439
  "u",
@@ -2524,20 +2452,20 @@ class Br extends P {
2524
2452
  ]);
2525
2453
  }
2526
2454
  parse(e, r, o, a) {
2527
- const i = (s) => {
2528
- const p = Math.floor((s - 1) / 7) * 7;
2529
- return (s + a.weekStartsOn + 6) % 7 + p;
2455
+ const s = (i) => {
2456
+ const f = Math.floor((i - 1) / 7) * 7;
2457
+ return (i + a.weekStartsOn + 6) % 7 + f;
2530
2458
  };
2531
2459
  switch (r) {
2532
2460
  case "c":
2533
2461
  case "cc":
2534
- return I(A(r.length, e), i);
2462
+ return A(W(r.length, e), s);
2535
2463
  case "co":
2536
- return I(
2464
+ return A(
2537
2465
  o.ordinalNumber(e, {
2538
2466
  unit: "day"
2539
2467
  }),
2540
- i
2468
+ s
2541
2469
  );
2542
2470
  case "ccc":
2543
2471
  return o.day(e, {
@@ -2563,18 +2491,18 @@ class Br extends P {
2563
2491
  return r >= 0 && r <= 6;
2564
2492
  }
2565
2493
  set(e, r, o, a) {
2566
- return e = He(e, o, a), e.setHours(0, 0, 0, 0), e;
2494
+ return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2567
2495
  }
2568
2496
  }
2569
2497
  function Fr(t, n) {
2570
- const e = q(t), r = ir(e), o = n - r;
2571
- return Qe(e, o);
2498
+ const e = _(t), r = ur(e), o = n - r;
2499
+ return Xe(e, o);
2572
2500
  }
2573
- class Er extends P {
2501
+ class Nr extends P {
2574
2502
  constructor() {
2575
2503
  super(...arguments);
2576
- f(this, "priority", 90);
2577
- f(this, "incompatibleTokens", [
2504
+ p(this, "priority", 90);
2505
+ p(this, "incompatibleTokens", [
2578
2506
  "y",
2579
2507
  "Y",
2580
2508
  "u",
@@ -2593,15 +2521,15 @@ class Er extends P {
2593
2521
  ]);
2594
2522
  }
2595
2523
  parse(e, r, o) {
2596
- const a = (i) => i === 0 ? 7 : i;
2524
+ const a = (s) => s === 0 ? 7 : s;
2597
2525
  switch (r) {
2598
2526
  case "i":
2599
2527
  case "ii":
2600
- return A(r.length, e);
2528
+ return W(r.length, e);
2601
2529
  case "io":
2602
2530
  return o.ordinalNumber(e, { unit: "day" });
2603
2531
  case "iii":
2604
- return I(
2532
+ return A(
2605
2533
  o.day(e, {
2606
2534
  width: "abbreviated",
2607
2535
  context: "formatting"
@@ -2615,7 +2543,7 @@ class Er extends P {
2615
2543
  a
2616
2544
  );
2617
2545
  case "iiiii":
2618
- return I(
2546
+ return A(
2619
2547
  o.day(e, {
2620
2548
  width: "narrow",
2621
2549
  context: "formatting"
@@ -2623,7 +2551,7 @@ class Er extends P {
2623
2551
  a
2624
2552
  );
2625
2553
  case "iiiiii":
2626
- return I(
2554
+ return A(
2627
2555
  o.day(e, {
2628
2556
  width: "short",
2629
2557
  context: "formatting"
@@ -2635,7 +2563,7 @@ class Er extends P {
2635
2563
  );
2636
2564
  case "iiii":
2637
2565
  default:
2638
- return I(
2566
+ return A(
2639
2567
  o.day(e, {
2640
2568
  width: "wide",
2641
2569
  context: "formatting"
@@ -2663,8 +2591,8 @@ class Er extends P {
2663
2591
  class Sr extends P {
2664
2592
  constructor() {
2665
2593
  super(...arguments);
2666
- f(this, "priority", 80);
2667
- f(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
2594
+ p(this, "priority", 80);
2595
+ p(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
2668
2596
  }
2669
2597
  parse(e, r, o) {
2670
2598
  switch (r) {
@@ -2698,14 +2626,14 @@ class Sr extends P {
2698
2626
  }
2699
2627
  }
2700
2628
  set(e, r, o) {
2701
- return e.setHours(Oe(o), 0, 0, 0), e;
2629
+ return e.setHours(Be(o), 0, 0, 0), e;
2702
2630
  }
2703
2631
  }
2704
- class Vr extends P {
2632
+ class Yr extends P {
2705
2633
  constructor() {
2706
2634
  super(...arguments);
2707
- f(this, "priority", 80);
2708
- f(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
2635
+ p(this, "priority", 80);
2636
+ p(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
2709
2637
  }
2710
2638
  parse(e, r, o) {
2711
2639
  switch (r) {
@@ -2739,14 +2667,14 @@ class Vr extends P {
2739
2667
  }
2740
2668
  }
2741
2669
  set(e, r, o) {
2742
- return e.setHours(Oe(o), 0, 0, 0), e;
2670
+ return e.setHours(Be(o), 0, 0, 0), e;
2743
2671
  }
2744
2672
  }
2745
- class Nr extends P {
2673
+ class Wr extends P {
2746
2674
  constructor() {
2747
2675
  super(...arguments);
2748
- f(this, "priority", 80);
2749
- f(this, "incompatibleTokens", ["a", "b", "t", "T"]);
2676
+ p(this, "priority", 80);
2677
+ p(this, "incompatibleTokens", ["a", "b", "t", "T"]);
2750
2678
  }
2751
2679
  parse(e, r, o) {
2752
2680
  switch (r) {
@@ -2780,23 +2708,23 @@ class Nr extends P {
2780
2708
  }
2781
2709
  }
2782
2710
  set(e, r, o) {
2783
- return e.setHours(Oe(o), 0, 0, 0), e;
2711
+ return e.setHours(Be(o), 0, 0, 0), e;
2784
2712
  }
2785
2713
  }
2786
- class Lr extends P {
2714
+ class qr extends P {
2787
2715
  constructor() {
2788
2716
  super(...arguments);
2789
- f(this, "priority", 70);
2790
- f(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
2717
+ p(this, "priority", 70);
2718
+ p(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
2791
2719
  }
2792
2720
  parse(e, r, o) {
2793
2721
  switch (r) {
2794
2722
  case "h":
2795
- return N(W.hour12h, e);
2723
+ return S(q.hour12h, e);
2796
2724
  case "ho":
2797
2725
  return o.ordinalNumber(e, { unit: "hour" });
2798
2726
  default:
2799
- return A(r.length, e);
2727
+ return W(r.length, e);
2800
2728
  }
2801
2729
  }
2802
2730
  validate(e, r) {
@@ -2810,17 +2738,17 @@ class Lr extends P {
2810
2738
  class Ar extends P {
2811
2739
  constructor() {
2812
2740
  super(...arguments);
2813
- f(this, "priority", 70);
2814
- f(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
2741
+ p(this, "priority", 70);
2742
+ p(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
2815
2743
  }
2816
2744
  parse(e, r, o) {
2817
2745
  switch (r) {
2818
2746
  case "H":
2819
- return N(W.hour23h, e);
2747
+ return S(q.hour23h, e);
2820
2748
  case "Ho":
2821
2749
  return o.ordinalNumber(e, { unit: "hour" });
2822
2750
  default:
2823
- return A(r.length, e);
2751
+ return W(r.length, e);
2824
2752
  }
2825
2753
  }
2826
2754
  validate(e, r) {
@@ -2830,20 +2758,20 @@ class Ar extends P {
2830
2758
  return e.setHours(o, 0, 0, 0), e;
2831
2759
  }
2832
2760
  }
2833
- class Wr extends P {
2761
+ class Lr extends P {
2834
2762
  constructor() {
2835
2763
  super(...arguments);
2836
- f(this, "priority", 70);
2837
- f(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
2764
+ p(this, "priority", 70);
2765
+ p(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
2838
2766
  }
2839
2767
  parse(e, r, o) {
2840
2768
  switch (r) {
2841
2769
  case "K":
2842
- return N(W.hour11h, e);
2770
+ return S(q.hour11h, e);
2843
2771
  case "Ko":
2844
2772
  return o.ordinalNumber(e, { unit: "hour" });
2845
2773
  default:
2846
- return A(r.length, e);
2774
+ return W(r.length, e);
2847
2775
  }
2848
2776
  }
2849
2777
  validate(e, r) {
@@ -2853,20 +2781,20 @@ class Wr extends P {
2853
2781
  return e.getHours() >= 12 && o < 12 ? e.setHours(o + 12, 0, 0, 0) : e.setHours(o, 0, 0, 0), e;
2854
2782
  }
2855
2783
  }
2856
- class Ir extends P {
2784
+ class _r extends P {
2857
2785
  constructor() {
2858
2786
  super(...arguments);
2859
- f(this, "priority", 70);
2860
- f(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
2787
+ p(this, "priority", 70);
2788
+ p(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
2861
2789
  }
2862
2790
  parse(e, r, o) {
2863
2791
  switch (r) {
2864
2792
  case "k":
2865
- return N(W.hour24h, e);
2793
+ return S(q.hour24h, e);
2866
2794
  case "ko":
2867
2795
  return o.ordinalNumber(e, { unit: "hour" });
2868
2796
  default:
2869
- return A(r.length, e);
2797
+ return W(r.length, e);
2870
2798
  }
2871
2799
  }
2872
2800
  validate(e, r) {
@@ -2877,20 +2805,20 @@ class Ir extends P {
2877
2805
  return e.setHours(a, 0, 0, 0), e;
2878
2806
  }
2879
2807
  }
2880
- class Yr extends P {
2808
+ class Ir extends P {
2881
2809
  constructor() {
2882
2810
  super(...arguments);
2883
- f(this, "priority", 60);
2884
- f(this, "incompatibleTokens", ["t", "T"]);
2811
+ p(this, "priority", 60);
2812
+ p(this, "incompatibleTokens", ["t", "T"]);
2885
2813
  }
2886
2814
  parse(e, r, o) {
2887
2815
  switch (r) {
2888
2816
  case "m":
2889
- return N(W.minute, e);
2817
+ return S(q.minute, e);
2890
2818
  case "mo":
2891
2819
  return o.ordinalNumber(e, { unit: "minute" });
2892
2820
  default:
2893
- return A(r.length, e);
2821
+ return W(r.length, e);
2894
2822
  }
2895
2823
  }
2896
2824
  validate(e, r) {
@@ -2900,20 +2828,20 @@ class Yr extends P {
2900
2828
  return e.setMinutes(o, 0, 0), e;
2901
2829
  }
2902
2830
  }
2903
- class qr extends P {
2831
+ class jr extends P {
2904
2832
  constructor() {
2905
2833
  super(...arguments);
2906
- f(this, "priority", 50);
2907
- f(this, "incompatibleTokens", ["t", "T"]);
2834
+ p(this, "priority", 50);
2835
+ p(this, "incompatibleTokens", ["t", "T"]);
2908
2836
  }
2909
2837
  parse(e, r, o) {
2910
2838
  switch (r) {
2911
2839
  case "s":
2912
- return N(W.second, e);
2840
+ return S(q.second, e);
2913
2841
  case "so":
2914
2842
  return o.ordinalNumber(e, { unit: "second" });
2915
2843
  default:
2916
- return A(r.length, e);
2844
+ return W(r.length, e);
2917
2845
  }
2918
2846
  }
2919
2847
  validate(e, r) {
@@ -2923,257 +2851,257 @@ class qr extends P {
2923
2851
  return e.setSeconds(o, 0), e;
2924
2852
  }
2925
2853
  }
2926
- class _r extends P {
2854
+ class Rr extends P {
2927
2855
  constructor() {
2928
2856
  super(...arguments);
2929
- f(this, "priority", 30);
2930
- f(this, "incompatibleTokens", ["t", "T"]);
2857
+ p(this, "priority", 30);
2858
+ p(this, "incompatibleTokens", ["t", "T"]);
2931
2859
  }
2932
2860
  parse(e, r) {
2933
2861
  const o = (a) => Math.trunc(a * Math.pow(10, -r.length + 3));
2934
- return I(A(r.length, e), o);
2862
+ return A(W(r.length, e), o);
2935
2863
  }
2936
2864
  set(e, r, o) {
2937
2865
  return e.setMilliseconds(o), e;
2938
2866
  }
2939
2867
  }
2940
- class Rr extends P {
2868
+ class $r extends P {
2941
2869
  constructor() {
2942
2870
  super(...arguments);
2943
- f(this, "priority", 10);
2944
- f(this, "incompatibleTokens", ["t", "T", "x"]);
2871
+ p(this, "priority", 10);
2872
+ p(this, "incompatibleTokens", ["t", "T", "x"]);
2945
2873
  }
2946
2874
  parse(e, r) {
2947
2875
  switch (r) {
2948
2876
  case "X":
2949
- return U(
2877
+ return X(
2950
2878
  G.basicOptionalMinutes,
2951
2879
  e
2952
2880
  );
2953
2881
  case "XX":
2954
- return U(G.basic, e);
2882
+ return X(G.basic, e);
2955
2883
  case "XXXX":
2956
- return U(
2884
+ return X(
2957
2885
  G.basicOptionalSeconds,
2958
2886
  e
2959
2887
  );
2960
2888
  case "XXXXX":
2961
- return U(
2889
+ return X(
2962
2890
  G.extendedOptionalSeconds,
2963
2891
  e
2964
2892
  );
2965
2893
  case "XXX":
2966
2894
  default:
2967
- return U(G.extended, e);
2895
+ return X(G.extended, e);
2968
2896
  }
2969
2897
  }
2970
2898
  set(e, r, o) {
2971
- return r.timestampIsSet ? e : L(
2899
+ return r.timestampIsSet ? e : Y(
2972
2900
  e,
2973
- e.getTime() - me(e) - o
2901
+ e.getTime() - he(e) - o
2974
2902
  );
2975
2903
  }
2976
2904
  }
2977
- class jr extends P {
2905
+ class Qr extends P {
2978
2906
  constructor() {
2979
2907
  super(...arguments);
2980
- f(this, "priority", 10);
2981
- f(this, "incompatibleTokens", ["t", "T", "X"]);
2908
+ p(this, "priority", 10);
2909
+ p(this, "incompatibleTokens", ["t", "T", "X"]);
2982
2910
  }
2983
2911
  parse(e, r) {
2984
2912
  switch (r) {
2985
2913
  case "x":
2986
- return U(
2914
+ return X(
2987
2915
  G.basicOptionalMinutes,
2988
2916
  e
2989
2917
  );
2990
2918
  case "xx":
2991
- return U(G.basic, e);
2919
+ return X(G.basic, e);
2992
2920
  case "xxxx":
2993
- return U(
2921
+ return X(
2994
2922
  G.basicOptionalSeconds,
2995
2923
  e
2996
2924
  );
2997
2925
  case "xxxxx":
2998
- return U(
2926
+ return X(
2999
2927
  G.extendedOptionalSeconds,
3000
2928
  e
3001
2929
  );
3002
2930
  case "xxx":
3003
2931
  default:
3004
- return U(G.extended, e);
2932
+ return X(G.extended, e);
3005
2933
  }
3006
2934
  }
3007
2935
  set(e, r, o) {
3008
- return r.timestampIsSet ? e : L(
2936
+ return r.timestampIsSet ? e : Y(
3009
2937
  e,
3010
- e.getTime() - me(e) - o
2938
+ e.getTime() - he(e) - o
3011
2939
  );
3012
2940
  }
3013
2941
  }
3014
- class Qr extends P {
2942
+ class Gr extends P {
3015
2943
  constructor() {
3016
2944
  super(...arguments);
3017
- f(this, "priority", 40);
3018
- f(this, "incompatibleTokens", "*");
2945
+ p(this, "priority", 40);
2946
+ p(this, "incompatibleTokens", "*");
3019
2947
  }
3020
2948
  parse(e) {
3021
- return nt(e);
2949
+ return at(e);
3022
2950
  }
3023
2951
  set(e, r, o) {
3024
- return [L(e, o * 1e3), { timestampIsSet: !0 }];
2952
+ return [Y(e, o * 1e3), { timestampIsSet: !0 }];
3025
2953
  }
3026
2954
  }
3027
- class $r extends P {
2955
+ class Xr extends P {
3028
2956
  constructor() {
3029
2957
  super(...arguments);
3030
- f(this, "priority", 20);
3031
- f(this, "incompatibleTokens", "*");
2958
+ p(this, "priority", 20);
2959
+ p(this, "incompatibleTokens", "*");
3032
2960
  }
3033
2961
  parse(e) {
3034
- return nt(e);
2962
+ return at(e);
3035
2963
  }
3036
2964
  set(e, r, o) {
3037
- return [L(e, o), { timestampIsSet: !0 }];
2965
+ return [Y(e, o), { timestampIsSet: !0 }];
3038
2966
  }
3039
2967
  }
3040
- const Gr = {
3041
- G: new dr(),
3042
- y: new fr(),
3043
- Y: new pr(),
3044
- R: new mr(),
3045
- u: new hr(),
3046
- Q: new yr(),
3047
- q: new gr(),
3048
- M: new br(),
3049
- L: new wr(),
3050
- w: new xr(),
3051
- I: new Mr(),
3052
- d: new Pr(),
3053
- D: new Dr(),
3054
- E: new Or(),
3055
- e: new Hr(),
3056
- c: new Br(),
3057
- i: new Er(),
2968
+ const Ur = {
2969
+ G: new pr(),
2970
+ y: new mr(),
2971
+ Y: new hr(),
2972
+ R: new yr(),
2973
+ u: new gr(),
2974
+ Q: new br(),
2975
+ q: new wr(),
2976
+ M: new vr(),
2977
+ L: new xr(),
2978
+ w: new Tr(),
2979
+ I: new Cr(),
2980
+ d: new Dr(),
2981
+ D: new Hr(),
2982
+ E: new Br(),
2983
+ e: new Er(),
2984
+ c: new Vr(),
2985
+ i: new Nr(),
3058
2986
  a: new Sr(),
3059
- b: new Vr(),
3060
- B: new Nr(),
3061
- h: new Lr(),
2987
+ b: new Yr(),
2988
+ B: new Wr(),
2989
+ h: new qr(),
3062
2990
  H: new Ar(),
3063
- K: new Wr(),
3064
- k: new Ir(),
3065
- m: new Yr(),
3066
- s: new qr(),
3067
- S: new _r(),
3068
- X: new Rr(),
3069
- x: new jr(),
3070
- t: new Qr(),
3071
- T: new $r()
3072
- }, Ur = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, zr = /^'([^]*?)'?$/, Zr = /''/g, Jr = /\S/, Kr = /[a-zA-Z]/;
3073
- function Ye(t, n, e, r) {
3074
- var M, O, Y, _;
3075
- const o = ar(), a = o.locale ?? Xe, i = o.firstWeekContainsDate ?? ((O = (M = o.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = o.weekStartsOn ?? ((_ = (Y = o.locale) == null ? void 0 : Y.options) == null ? void 0 : _.weekStartsOn) ?? 0;
2991
+ K: new Lr(),
2992
+ k: new _r(),
2993
+ m: new Ir(),
2994
+ s: new jr(),
2995
+ S: new Rr(),
2996
+ X: new $r(),
2997
+ x: new Qr(),
2998
+ t: new Gr(),
2999
+ T: new Xr()
3000
+ }, zr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Jr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zr = /^'([^]*?)'?$/, Kr = /''/g, eo = /\S/, to = /[a-zA-Z]/;
3001
+ function je(t, n, e, r) {
3002
+ var M, D, L, I;
3003
+ const o = sr(), a = o.locale ?? Ze, s = o.firstWeekContainsDate ?? ((D = (M = o.locale) == null ? void 0 : M.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, i = o.weekStartsOn ?? ((I = (L = o.locale) == null ? void 0 : L.options) == null ? void 0 : I.weekStartsOn) ?? 0;
3076
3004
  if (n === "")
3077
- return t === "" ? q(e) : L(e, NaN);
3078
- const p = {
3079
- firstWeekContainsDate: i,
3080
- weekStartsOn: s,
3005
+ return t === "" ? _(e) : Y(e, NaN);
3006
+ const f = {
3007
+ firstWeekContainsDate: s,
3008
+ weekStartsOn: i,
3081
3009
  locale: a
3082
- }, c = [new cr()], d = n.match(Xr).map((g) => {
3083
- const C = g[0];
3084
- if (C in xe) {
3085
- const E = xe[C];
3086
- return E(g, a.formatLong);
3010
+ }, c = [new fr()], d = n.match(Jr).map((g) => {
3011
+ const T = g[0];
3012
+ if (T in Te) {
3013
+ const V = Te[T];
3014
+ return V(g, a.formatLong);
3087
3015
  }
3088
3016
  return g;
3089
- }).join("").match(Ur), u = [];
3017
+ }).join("").match(zr), u = [];
3090
3018
  for (let g of d) {
3091
- et(g) && Te(g, n, t), Ke(g) && Te(g, n, t);
3092
- const C = g[0], E = Gr[C];
3093
- if (E) {
3094
- const { incompatibleTokens: k } = E;
3095
- if (Array.isArray(k)) {
3019
+ rt(g) && ke(g, n, t), nt(g) && ke(g, n, t);
3020
+ const T = g[0], V = Ur[T];
3021
+ if (V) {
3022
+ const { incompatibleTokens: C } = V;
3023
+ if (Array.isArray(C)) {
3096
3024
  const H = u.find(
3097
- (T) => k.includes(T.token) || T.token === C
3025
+ (x) => C.includes(x.token) || x.token === T
3098
3026
  );
3099
3027
  if (H)
3100
3028
  throw new RangeError(
3101
3029
  `The format string mustn't contain \`${H.fullToken}\` and \`${g}\` at the same time`
3102
3030
  );
3103
- } else if (E.incompatibleTokens === "*" && u.length > 0)
3031
+ } else if (V.incompatibleTokens === "*" && u.length > 0)
3104
3032
  throw new RangeError(
3105
3033
  `The format string mustn't contain \`${g}\` and any other token at the same time`
3106
3034
  );
3107
- u.push({ token: C, fullToken: g });
3108
- const F = E.run(
3035
+ u.push({ token: T, fullToken: g });
3036
+ const E = V.run(
3109
3037
  t,
3110
3038
  g,
3111
3039
  a.match,
3112
- p
3040
+ f
3113
3041
  );
3114
- if (!F)
3115
- return L(e, NaN);
3116
- c.push(F.setter), t = F.rest;
3042
+ if (!E)
3043
+ return Y(e, NaN);
3044
+ c.push(E.setter), t = E.rest;
3117
3045
  } else {
3118
- if (C.match(Kr))
3046
+ if (T.match(to))
3119
3047
  throw new RangeError(
3120
- "Format string contains an unescaped latin alphabet character `" + C + "`"
3048
+ "Format string contains an unescaped latin alphabet character `" + T + "`"
3121
3049
  );
3122
- if (g === "''" ? g = "'" : C === "'" && (g = eo(g)), t.indexOf(g) === 0)
3050
+ if (g === "''" ? g = "'" : T === "'" && (g = no(g)), t.indexOf(g) === 0)
3123
3051
  t = t.slice(g.length);
3124
3052
  else
3125
- return L(e, NaN);
3053
+ return Y(e, NaN);
3126
3054
  }
3127
3055
  }
3128
- if (t.length > 0 && Jr.test(t))
3129
- return L(e, NaN);
3130
- const l = c.map((g) => g.priority).sort((g, C) => C - g).filter((g, C, E) => E.indexOf(g) === C).map(
3131
- (g) => c.filter((C) => C.priority === g).sort((C, E) => E.subPriority - C.subPriority)
3056
+ if (t.length > 0 && eo.test(t))
3057
+ return Y(e, NaN);
3058
+ const l = c.map((g) => g.priority).sort((g, T) => T - g).filter((g, T, V) => V.indexOf(g) === T).map(
3059
+ (g) => c.filter((T) => T.priority === g).sort((T, V) => V.subPriority - T.subPriority)
3132
3060
  ).map((g) => g[0]);
3133
- let h = q(e);
3134
- if (isNaN(h.getTime()))
3135
- return L(e, NaN);
3061
+ let m = _(e);
3062
+ if (isNaN(m.getTime()))
3063
+ return Y(e, NaN);
3136
3064
  const y = {};
3137
3065
  for (const g of l) {
3138
- if (!g.validate(h, p))
3139
- return L(e, NaN);
3140
- const C = g.set(h, y, p);
3141
- Array.isArray(C) ? (h = C[0], Object.assign(y, C[1])) : h = C;
3066
+ if (!g.validate(m, f))
3067
+ return Y(e, NaN);
3068
+ const T = g.set(m, y, f);
3069
+ Array.isArray(T) ? (m = T[0], Object.assign(y, T[1])) : m = T;
3142
3070
  }
3143
- return L(e, h);
3071
+ return Y(e, m);
3144
3072
  }
3145
- function eo(t) {
3146
- return t.match(zr)[1].replace(Zr, "'");
3073
+ function no(t) {
3074
+ return t.match(Zr)[1].replace(Kr, "'");
3147
3075
  }
3148
3076
  function B(t) {
3149
3077
  return typeof t < "u" && t !== null;
3150
3078
  }
3151
- function at(t, n = "hh:mm:ss") {
3079
+ function ut(t, n = "hh:mm:ss") {
3152
3080
  if (!(!t || !n))
3153
- return n.indexOf("ss") === -1 && t.split(":").length === 3 && (n = n + ":ss"), n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), Ye(t.toLowerCase(), n, /* @__PURE__ */ new Date())) : Ye(t, n, /* @__PURE__ */ new Date());
3081
+ return n.indexOf("ss") === -1 && t.split(":").length === 3 && (n = n + ":ss"), n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), je(t.toLowerCase(), n, /* @__PURE__ */ new Date())) : je(t, n, /* @__PURE__ */ new Date());
3154
3082
  }
3155
- function it(t, n = "hh:mm:ss", e = "AM") {
3083
+ function lt(t, n = "hh:mm:ss", e = "AM") {
3156
3084
  return !t || isNaN(t.getTime()) ? "" : n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), Ie(t, n).toUpperCase()) : Ie(t, n);
3157
3085
  }
3158
- function st(t, n) {
3086
+ function ct(t, n) {
3159
3087
  let e = t || "hh:mm:ss";
3160
3088
  return n ? (e = e ? e.replace(/H/g, "h") : "hh:mm:ss a", e.indexOf("a") === -1 && e.indexOf("A") === -1 && (e = e + " a")) : e = e ? e.replace(/h/g, "H") : "HH:mm:ss", e;
3161
3089
  }
3162
- class to {
3090
+ class ro {
3163
3091
  constructor() {
3164
- f(this, "hourStep", 1);
3165
- f(this, "minuteStep", 1);
3166
- f(this, "secondStep", 1);
3167
- f(this, "use12Hours", !1);
3168
- f(this, "changedValue", v({ text: "", value: void 0 }));
3169
- f(this, "format", "HH:mm:ss");
3170
- f(this, "temporaryHours");
3171
- f(this, "temporaryMinutes");
3172
- f(this, "temporarySeconds");
3173
- f(this, "temporaryText", "");
3174
- f(this, "temporaryValue");
3175
- f(this, "temporarySelected12Hours");
3176
- f(this, "temporaryDefaultOpenValue", /* @__PURE__ */ new Date());
3092
+ p(this, "hourStep", 1);
3093
+ p(this, "minuteStep", 1);
3094
+ p(this, "secondStep", 1);
3095
+ p(this, "use12Hours", !1);
3096
+ p(this, "changedValue", b({ text: "", value: void 0 }));
3097
+ p(this, "format", "HH:mm:ss");
3098
+ p(this, "temporaryHours");
3099
+ p(this, "temporaryMinutes");
3100
+ p(this, "temporarySeconds");
3101
+ p(this, "temporaryText", "");
3102
+ p(this, "temporaryValue");
3103
+ p(this, "temporarySelected12Hours");
3104
+ p(this, "temporaryDefaultOpenValue", /* @__PURE__ */ new Date());
3177
3105
  }
3178
3106
  /**
3179
3107
  * @description
@@ -3261,7 +3189,7 @@ class to {
3261
3189
  return this.temporaryValue;
3262
3190
  }
3263
3191
  set value(n) {
3264
- n !== this.temporaryValue && (this.temporaryValue = n, B(this.temporaryValue) && Ue(this.temporaryValue) ? (this.temporaryHours = this.temporaryValue.getHours(), this.temporaryMinutes = this.temporaryValue.getMinutes(), this.temporarySeconds = this.temporaryValue.getSeconds(), this.use12Hours && B(this.temporaryHours) && (this.temporarySelected12Hours = this.temporaryHours >= 12 ? "PM" : "AM")) : this.clearTimeValue());
3192
+ n !== this.temporaryValue && (this.temporaryValue = n, B(this.temporaryValue) && Je(this.temporaryValue) ? (this.temporaryHours = this.temporaryValue.getHours(), this.temporaryMinutes = this.temporaryValue.getMinutes(), this.temporarySeconds = this.temporaryValue.getSeconds(), this.use12Hours && B(this.temporaryHours) && (this.temporarySelected12Hours = this.temporaryHours >= 12 ? "PM" : "AM")) : this.clearTimeValue());
3265
3193
  }
3266
3194
  get selected12Hours() {
3267
3195
  return this.temporarySelected12Hours;
@@ -3308,7 +3236,7 @@ class to {
3308
3236
  B(this.temporaryValue) || (this.temporaryValue = new Date(this.defaultOpenValue));
3309
3237
  }
3310
3238
  update() {
3311
- this.isEmpty ? this.temporaryValue = void 0 : (B(this.temporaryHours) ? this.temporaryValue.setHours(this.hours) : this.temporaryHours = this.defaultHours, B(this.temporaryMinutes) ? this.temporaryValue.setMinutes(this.minutes) : this.temporaryMinutes = this.defaultMinutes, B(this.temporarySeconds) ? this.temporaryValue.setSeconds(this.seconds) : this.temporarySeconds = this.defaultSeconds, this.use12Hours && (B(this.temporarySelected12Hours) || (this.temporarySelected12Hours = this.default12Hours), this.selected12Hours === "PM" && this.temporaryHours < 12 && (this.temporaryHours += 12, this.temporaryValue.setHours(this.temporaryHours)), this.selected12Hours === "AM" && this.temporaryHours >= 12 && (this.temporaryHours -= 12, this.temporaryValue.setHours(this.temporaryHours))), this.temporaryValue = new Date(this.temporaryValue), this.text = it(
3239
+ this.isEmpty ? this.temporaryValue = void 0 : (B(this.temporaryHours) ? this.temporaryValue.setHours(this.hours) : this.temporaryHours = this.defaultHours, B(this.temporaryMinutes) ? this.temporaryValue.setMinutes(this.minutes) : this.temporaryMinutes = this.defaultMinutes, B(this.temporarySeconds) ? this.temporaryValue.setSeconds(this.seconds) : this.temporarySeconds = this.defaultSeconds, this.use12Hours && (B(this.temporarySelected12Hours) || (this.temporarySelected12Hours = this.default12Hours), this.selected12Hours === "PM" && this.temporaryHours < 12 && (this.temporaryHours += 12, this.temporaryValue.setHours(this.temporaryHours)), this.selected12Hours === "AM" && this.temporaryHours >= 12 && (this.temporaryHours -= 12, this.temporaryValue.setHours(this.temporaryHours))), this.temporaryValue = new Date(this.temporaryValue), this.text = lt(
3312
3240
  this.temporaryValue,
3313
3241
  this.format,
3314
3242
  this.selected12Hours
@@ -3325,8 +3253,8 @@ class to {
3325
3253
  return e === "PM" && n > 12 ? n - 12 : e === "AM" && n === 0 ? 12 : n;
3326
3254
  }
3327
3255
  }
3328
- const no = ["moz", "ms", "webkit"];
3329
- function ro() {
3256
+ const oo = ["moz", "ms", "webkit"];
3257
+ function ao() {
3330
3258
  let t = 0;
3331
3259
  return (n) => {
3332
3260
  const e = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (e - t)), o = setTimeout(() => {
@@ -3335,246 +3263,246 @@ function ro() {
3335
3263
  return t = e + r, o;
3336
3264
  };
3337
3265
  }
3338
- function oo() {
3266
+ function io() {
3339
3267
  if (typeof window > "u")
3340
3268
  return () => 0;
3341
3269
  if (window.requestAnimationFrame)
3342
3270
  return window.requestAnimationFrame.bind(window);
3343
- const t = no.filter((n) => `${n}RequestAnimationFrame` in window)[0];
3344
- return t ? window[`${t}RequestAnimationFrame`] : ro();
3271
+ const t = oo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
3272
+ return t ? window[`${t}RequestAnimationFrame`] : ao();
3345
3273
  }
3346
- const ao = oo();
3347
- function io(t, n, e, r, o, a) {
3348
- function i(d, u, l = 0, h, y) {
3349
- const M = s(u, h, y), O = d.children[0].children[M] || d.children[0].children[0];
3350
- p(d, O.offsetTop, l);
3274
+ const so = io();
3275
+ function uo(t, n, e, r, o, a) {
3276
+ function s(d, u, l = 0, m, y) {
3277
+ const M = i(u, m, y), D = d.children[0].children[M] || d.children[0].children[0];
3278
+ f(d, D.offsetTop, l);
3351
3279
  }
3352
- function s(d, u, l) {
3280
+ function i(d, u, l) {
3353
3281
  if (u === "hour") {
3354
- const h = t.disabledHours && t.disabledHours();
3282
+ const m = t.disabledHours && t.disabledHours();
3355
3283
  return c(
3356
- h,
3284
+ m,
3357
3285
  e.value.map((y) => y.index).indexOf(d)
3358
3286
  );
3359
3287
  }
3360
3288
  if (u === "minute") {
3361
- const h = t.disabledMinutes && t.disabledMinutes(l.hours);
3289
+ const m = t.disabledMinutes && t.disabledMinutes(l.hours);
3362
3290
  return c(
3363
- h,
3291
+ m,
3364
3292
  r.value.map((y) => y.index).indexOf(d)
3365
3293
  );
3366
3294
  }
3367
3295
  if (u === "second") {
3368
- const h = t.disabledSeconds && t.disabledSeconds(l.hours, l.minutes);
3296
+ const m = t.disabledSeconds && t.disabledSeconds(l.hours, l.minutes);
3369
3297
  return c(
3370
- h,
3298
+ m,
3371
3299
  o.value.map((y) => y.index).indexOf(d)
3372
3300
  );
3373
3301
  }
3374
3302
  return c(
3375
3303
  [],
3376
- a.value.map((h) => h.index).indexOf(d)
3304
+ a.value.map((m) => m.index).indexOf(d)
3377
3305
  );
3378
3306
  }
3379
- function p(d, u, l) {
3307
+ function f(d, u, l) {
3380
3308
  if (l <= 0) {
3381
3309
  d.scrollTop = u;
3382
3310
  return;
3383
3311
  }
3384
3312
  const y = (u - d.scrollTop) / l * 10;
3385
- ao(() => {
3386
- d.scrollTop += y, d.scrollTop !== u && p(d, u, l - 10);
3313
+ so(() => {
3314
+ d.scrollTop += y, d.scrollTop !== u && f(d, u, l - 10);
3387
3315
  });
3388
3316
  }
3389
3317
  function c(d, u) {
3390
- return d && d.length && t.hideDisabledElements ? u - d.reduce((l, h) => l + (h < u ? 1 : 0), 0) : u;
3318
+ return d && d.length && t.hideDisabledElements ? u - d.reduce((l, m) => l + (m < u ? 1 : 0), 0) : u;
3391
3319
  }
3392
- return { scrollToSelected: i };
3320
+ return { scrollToSelected: s };
3393
3321
  }
3394
- function so(t, n) {
3395
- function e(s) {
3396
- return s.index === t.viewHours || !B(t.viewHours) && s.index === t.defaultViewHours;
3322
+ function lo(t, n) {
3323
+ function e(i) {
3324
+ return i.index === t.viewHours || !B(t.viewHours) && i.index === t.defaultViewHours;
3397
3325
  }
3398
- function r(s) {
3399
- return s.index === t.minutes || !B(t.minutes) && s.index === t.defaultMinutes;
3326
+ function r(i) {
3327
+ return i.index === t.minutes || !B(t.minutes) && i.index === t.defaultMinutes;
3400
3328
  }
3401
- function o(s) {
3402
- return s.index === t.seconds || !B(t.seconds) && s.index === t.defaultSeconds;
3329
+ function o(i) {
3330
+ return i.index === t.seconds || !B(t.seconds) && i.index === t.defaultSeconds;
3403
3331
  }
3404
- function a(s) {
3405
- return s.value.toUpperCase() === t.selected12Hours || !B(t.selected12Hours) && s.value.toUpperCase() === t.default12Hours;
3332
+ function a(i) {
3333
+ return i.value.toUpperCase() === t.selected12Hours || !B(t.selected12Hours) && i.value.toUpperCase() === t.default12Hours;
3406
3334
  }
3407
- function i(s, p) {
3335
+ function s(i, f) {
3408
3336
  let c = "";
3409
3337
  const d = ` ${n}-select-option-selected `, u = ` ${n}-select-option-disabled `;
3410
3338
  let l = !1;
3411
- return p === "hour" ? l = e(s) : p === "minute" ? l = r(s) : p === "second" ? l = o(s) : l = a(s), l && (c += d), p === "12-hour" || s.disabled && (c += u), c;
3339
+ return f === "hour" ? l = e(i) : f === "minute" ? l = r(i) : f === "second" ? l = o(i) : l = a(i), l && (c += d), f === "12-hour" || i.disabled && (c += u), c;
3412
3340
  }
3413
- return { getSelectedClass: i };
3341
+ return { getSelectedClass: s };
3414
3342
  }
3415
- const Me = /* @__PURE__ */ ne({
3343
+ const Ce = /* @__PURE__ */ re({
3416
3344
  name: "FTimePickerTimeView",
3417
- props: rn,
3345
+ props: an,
3418
3346
  emits: ["valueChange", "formatedValueChange"],
3419
3347
  setup(t, n) {
3420
- const e = "time-picker-panel", r = v(0), o = v([]), a = v([]), i = v([]), s = v([]), p = v(), c = v(), d = v(), u = v(), l = new to(), {
3421
- scrollToSelected: h
3422
- } = io(t, n, o, a, i, s), {
3348
+ const e = "time-picker-panel", r = b(0), o = b([]), a = b([]), s = b([]), i = b([]), f = b(), c = b(), d = b(), u = b(), l = new ro(), {
3349
+ scrollToSelected: m
3350
+ } = uo(t, n, o, a, s, i), {
3423
3351
  getSelectedClass: y
3424
- } = so(l, e), M = v(t.hourStep), O = v(t.minuteStep), Y = v(t.secondStep), _ = v(), g = v(""), C = v(), E = v(t.hideDisabledElements), k = v(0);
3425
- R(() => t.defaultOpenValue, (m) => {
3426
- B(m) && (_.value = m);
3427
- }), R(_, (m) => {
3428
- B(m) && l.setDefaultOpenValue(m);
3429
- }), _.value = t.defaultOpenValue, R(l.changedValue, (m) => {
3430
- n.emit("valueChange", m);
3431
- }), R(() => t.modelValue, (m) => {
3432
- F(m);
3433
- }), R(() => t.format, (m) => {
3434
- B(m) ? g.value = m : g.value = "HH:mm:ss";
3435
- }), R(g, (m) => {
3436
- B(m) && (l.setFormat(g.value), k.value = 0, J.value && k.value++, oe.value && k.value++, ae.value && k.value++, C.value && (k.value++, Fe()), r.value = k.value * 66);
3437
- }), R(() => t.use12Hours, (m) => {
3438
- C.value = m;
3439
- }), R(C, (m) => {
3440
- g.value = st(g.value, m), l.setUse12Hours(m);
3441
- }), R(() => t.disabledHours, () => {
3442
- ge();
3443
- }), R(() => t.disabledMinutes, () => {
3444
- fe();
3445
- }), R(() => t.disabledSeconds, () => {
3446
- ie();
3352
+ } = lo(l, e), M = b(t.hourStep), D = b(t.minuteStep), L = b(t.secondStep), I = b(), g = b(""), T = b(), V = b(t.hideDisabledElements), C = b(0);
3353
+ j(() => t.defaultOpenValue, (h) => {
3354
+ B(h) && (I.value = h);
3355
+ }), j(I, (h) => {
3356
+ B(h) && l.setDefaultOpenValue(h);
3357
+ }), I.value = t.defaultOpenValue, j(l.changedValue, (h) => {
3358
+ n.emit("valueChange", h);
3359
+ }), j(() => t.modelValue, (h) => {
3360
+ E(h);
3361
+ }), j(() => t.format, (h) => {
3362
+ B(h) ? g.value = h : g.value = "HH:mm:ss";
3363
+ }), j(g, (h) => {
3364
+ B(h) && (l.setFormat(g.value), C.value = 0, Z.value && C.value++, ae.value && C.value++, ie.value && C.value++, T.value && (C.value++, Fe()), r.value = C.value * 66);
3365
+ }), j(() => t.use12Hours, (h) => {
3366
+ T.value = h;
3367
+ }), j(T, (h) => {
3368
+ g.value = ct(g.value, h), l.setUse12Hours(h);
3369
+ }), j(() => t.disabledHours, () => {
3370
+ we();
3371
+ }), j(() => t.disabledMinutes, () => {
3372
+ pe();
3373
+ }), j(() => t.disabledSeconds, () => {
3374
+ se();
3447
3375
  });
3448
- function F(m) {
3449
- if (B(m)) {
3450
- l.text = m;
3451
- const x = at(l.text, g.value);
3452
- l.setValue(x, C.value), Ee();
3376
+ function E(h) {
3377
+ if (B(h)) {
3378
+ l.text = h;
3379
+ const v = ut(l.text, g.value);
3380
+ l.setValue(v, T.value), Ne();
3453
3381
  } else
3454
- l.setUse12Hours(C.value);
3382
+ l.setUse12Hours(T.value);
3455
3383
  }
3456
3384
  function H() {
3457
- let m = [];
3458
- return t.disabledHours && (m = t.disabledHours(), C.value && (l.selected12Hours === "PM" ? m = m.filter((x) => x >= 12).map((x) => x > 12 ? x - 12 : x) : m = m.filter((x) => x < 12 || x === 24).map((x) => x === 24 || x === 0 ? 12 : x))), m;
3385
+ let h = [];
3386
+ return t.disabledHours && (h = t.disabledHours(), T.value && (l.selected12Hours === "PM" ? h = h.filter((v) => v >= 12).map((v) => v > 12 ? v - 12 : v) : h = h.filter((v) => v < 12 || v === 24).map((v) => v === 24 || v === 0 ? 12 : v))), h;
3459
3387
  }
3460
- function T(m = "hour") {
3461
- return g.value ? g.value.indexOf(m[0].toUpperCase()) > -1 || g.value.indexOf(m[0].toLowerCase()) > -1 : !1;
3388
+ function x(h = "hour") {
3389
+ return g.value ? g.value.indexOf(h[0].toUpperCase()) > -1 || g.value.indexOf(h[0].toLowerCase()) > -1 : !1;
3462
3390
  }
3463
- const j = V(() => ({
3391
+ const R = N(() => ({
3464
3392
  "time-picker-panel": !0,
3465
3393
  "time-picker-panel-column-3": !0,
3466
3394
  "time-picker-panel-placement-bottomLeft": !0,
3467
3395
  "f-area-show": !0
3468
- })), Q = V(() => ({
3469
- width: C.value ? `${r.value}px` : "100%"
3470
- })), J = V(() => T("hour")), oe = V(() => T("minute")), ae = V(() => T("second"));
3471
- function ye(m, x = 1, $ = 0) {
3472
- return x = Math.ceil(x), new Array(Math.ceil(m / x)).fill(0).map((S, se) => (se + $) * x);
3396
+ })), $ = N(() => ({
3397
+ width: T.value ? `${r.value}px` : "100%"
3398
+ })), Z = N(() => x("hour")), ae = N(() => x("minute")), ie = N(() => x("second"));
3399
+ function be(h, v = 1, Q = 0) {
3400
+ return v = Math.ceil(v), new Array(Math.ceil(h / v)).fill(0).map((F, ue) => (ue + Q) * v);
3473
3401
  }
3474
- function wt() {
3475
- if (J.value && p.value && h(p.value, B(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), oe.value && c.value && h(c.value, B(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), ae.value && d.value && h(d.value, B(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), C.value && u.value) {
3476
- const x = (B(l.selected12Hours) ? l.selected12Hours : l.default12Hours) === "AM" ? 0 : 1;
3477
- h(u.value, x, 0, "12-hour", l);
3402
+ function vt() {
3403
+ if (Z.value && f.value && m(f.value, B(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), ae.value && c.value && m(c.value, B(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), ie.value && d.value && m(d.value, B(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), T.value && u.value) {
3404
+ const v = (B(l.selected12Hours) ? l.selected12Hours : l.default12Hours) === "AM" ? 0 : 1;
3405
+ m(u.value, v, 0, "12-hour", l);
3478
3406
  }
3479
3407
  }
3480
- function ge() {
3481
- let m = 24, x = 0;
3482
- C.value && (m = 12, x = 1);
3483
- const $ = H();
3484
- if (o.value = ye(m, M.value, x).map((S) => ({
3485
- index: S,
3486
- disabled: $.length > 0 && $.indexOf(S) !== -1
3487
- })), C.value && o.value[o.value.length - 1].index === 12) {
3488
- const S = [...o.value];
3489
- S.unshift(S[S.length - 1]), S.splice(S.length - 1, 1), o.value = S;
3408
+ function we() {
3409
+ let h = 24, v = 0;
3410
+ T.value && (h = 12, v = 1);
3411
+ const Q = H();
3412
+ if (o.value = be(h, M.value, v).map((F) => ({
3413
+ index: F,
3414
+ disabled: Q.length > 0 && Q.indexOf(F) !== -1
3415
+ })), T.value && o.value[o.value.length - 1].index === 12) {
3416
+ const F = [...o.value];
3417
+ F.unshift(F[F.length - 1]), F.splice(F.length - 1, 1), o.value = F;
3490
3418
  }
3491
- o.value = o.value.filter((S) => !(E.value && S.disabled));
3419
+ o.value = o.value.filter((F) => !(V.value && F.disabled));
3492
3420
  }
3493
- function fe() {
3494
- a.value = ye(60, O.value).map((m) => ({
3495
- index: m,
3496
- disabled: !!t.disabledMinutes && t.disabledMinutes(l.hours).indexOf(m) !== -1
3497
- })), a.value = a.value.filter((m) => !(E.value && m.disabled));
3421
+ function pe() {
3422
+ a.value = be(60, D.value).map((h) => ({
3423
+ index: h,
3424
+ disabled: !!t.disabledMinutes && t.disabledMinutes(l.hours).indexOf(h) !== -1
3425
+ })), a.value = a.value.filter((h) => !(V.value && h.disabled));
3498
3426
  }
3499
- function ie() {
3500
- i.value = ye(60, Y.value).map((m) => ({
3501
- index: m,
3502
- disabled: !!t.disabledSeconds && t.disabledSeconds(l.hours, l.minutes).indexOf(m) !== -1
3503
- })), i.value = i.value.filter((m) => !(E.value && m.disabled));
3427
+ function se() {
3428
+ s.value = be(60, L.value).map((h) => ({
3429
+ index: h,
3430
+ disabled: !!t.disabledSeconds && t.disabledSeconds(l.hours, l.minutes).indexOf(h) !== -1
3431
+ })), s.value = s.value.filter((h) => !(V.value && h.disabled));
3504
3432
  }
3505
3433
  function Fe() {
3506
- const m = g.value.includes("A");
3507
- s.value = [{
3434
+ const h = g.value.includes("A");
3435
+ i.value = [{
3508
3436
  index: 0,
3509
- value: m ? "AM" : "am"
3437
+ value: h ? "AM" : "am"
3510
3438
  }, {
3511
3439
  index: 1,
3512
- value: m ? "PM" : "pm"
3513
- }], s.value = s.value.filter(() => !E.value);
3440
+ value: h ? "PM" : "pm"
3441
+ }], i.value = i.value.filter(() => !V.value);
3514
3442
  }
3515
- function vt(m, x) {
3516
- if (m.stopPropagation(), l.setHours(x.index, x.disabled), !x.disabled) {
3517
- if (h(p.value, x.index, 120, "hour", l), t.disabledMinutes !== null) {
3518
- fe();
3519
- const $ = a.value.filter((S) => !S.disabled);
3520
- if (!$.find((S) => S.index === l.minutes)) {
3443
+ function xt(h, v) {
3444
+ if (h.stopPropagation(), l.setHours(v.index, v.disabled), !v.disabled) {
3445
+ if (m(f.value, v.index, 120, "hour", l), t.disabledMinutes !== null) {
3446
+ pe();
3447
+ const Q = a.value.filter((F) => !F.disabled);
3448
+ if (!Q.find((F) => F.index === l.minutes)) {
3521
3449
  const {
3522
- index: S,
3523
- disabled: se
3524
- } = $[0];
3525
- l.setMinutes(S, se);
3450
+ index: F,
3451
+ disabled: ue
3452
+ } = Q[0];
3453
+ l.setMinutes(F, ue);
3526
3454
  }
3527
3455
  }
3528
- (t.disabledSeconds !== null || t.disabledMinutes !== null) && ie();
3456
+ (t.disabledSeconds !== null || t.disabledMinutes !== null) && se();
3529
3457
  }
3530
3458
  }
3531
- function xt(m, x) {
3532
- m.stopPropagation(), l.selected12Hours = x.value, ge(), fe(), ie(), h(u.value, x.index, 120, "12-hour", l);
3459
+ function Mt(h, v) {
3460
+ h.stopPropagation(), l.selected12Hours = v.value, we(), pe(), se(), m(u.value, v.index, 120, "12-hour", l);
3533
3461
  }
3534
- function Tt(m, x) {
3535
- if (m.stopPropagation(), l.setMinutes(x.index, x.disabled), !x.disabled && (h(c.value, x.index, 120, "minute", l), t.disabledSeconds !== null)) {
3536
- ie();
3537
- const $ = i.value.filter((S) => !S.disabled);
3538
- if (!$.find((S) => S.index === l.seconds)) {
3462
+ function Tt(h, v) {
3463
+ if (h.stopPropagation(), l.setMinutes(v.index, v.disabled), !v.disabled && (m(c.value, v.index, 120, "minute", l), t.disabledSeconds !== null)) {
3464
+ se();
3465
+ const Q = s.value.filter((F) => !F.disabled);
3466
+ if (!Q.find((F) => F.index === l.seconds)) {
3539
3467
  const {
3540
- index: S,
3541
- disabled: se
3542
- } = $[0];
3543
- l.setSeconds(S, se);
3468
+ index: F,
3469
+ disabled: ue
3470
+ } = Q[0];
3471
+ l.setSeconds(F, ue);
3544
3472
  }
3545
3473
  }
3546
3474
  }
3547
- function Mt(m, x) {
3548
- m.stopPropagation(), l.setSeconds(x.index, x.disabled), !x.disabled && h(d.value, x.index, 120, "second", l);
3475
+ function kt(h, v) {
3476
+ h.stopPropagation(), l.setSeconds(v.index, v.disabled), !v.disabled && m(d.value, v.index, 120, "second", l);
3549
3477
  }
3550
- function Ee() {
3551
- ge(), fe(), ie(), Fe();
3478
+ function Ne() {
3479
+ we(), pe(), se(), Fe();
3552
3480
  }
3553
- de(() => {
3554
- g.value = t.format, C.value = t.use12Hours, F(t.modelValue), Ee(), setTimeout(() => {
3555
- wt();
3481
+ fe(() => {
3482
+ g.value = t.format, T.value = t.use12Hours, E(t.modelValue), Ne(), setTimeout(() => {
3483
+ vt();
3556
3484
  }, 10);
3557
3485
  });
3558
3486
  function Ct() {
3559
3487
  return t.showHeader ? w("div", {
3560
3488
  class: e + "-combobox time-picker-panel-header",
3561
- style: Q.value
3562
- }, [J.value && w("div", {
3489
+ style: $.value
3490
+ }, [Z.value && w("div", {
3563
3491
  class: e + "-select",
3564
3492
  style: "height: 32px"
3565
3493
  }, [w("ul", null, [w("li", {
3566
- class: "time-header" + oe.value ? "time-header-split" : ""
3567
- }, [be("时")])])]), oe.value && w("div", {
3494
+ class: "time-header" + ae.value ? "time-header-split" : ""
3495
+ }, [ve("时")])])]), ae.value && w("div", {
3568
3496
  class: e + "-select",
3569
3497
  style: "height: 32px"
3570
3498
  }, [w("ul", null, [w("li", {
3571
- class: "time-header" + ae.value ? "time-header-split" : ""
3572
- }, [be("分")])])]), ae.value && w("div", {
3499
+ class: "time-header" + ie.value ? "time-header-split" : ""
3500
+ }, [ve("分")])])]), ie.value && w("div", {
3573
3501
  class: e + "-select",
3574
3502
  style: "height: 32px"
3575
3503
  }, [w("ul", null, [w("li", {
3576
3504
  class: "time-header"
3577
- }, [be("秒")])])]), t.use12Hours && w("div", {
3505
+ }, [ve("秒")])])]), t.use12Hours && w("div", {
3578
3506
  class: e + "-select",
3579
3507
  style: "height: 32px"
3580
3508
  }, [w("ul", null, [w("li", {
@@ -3582,66 +3510,66 @@ const Me = /* @__PURE__ */ ne({
3582
3510
  }, null)])])]) : null;
3583
3511
  }
3584
3512
  return () => w("div", {
3585
- class: j.value
3513
+ class: R.value
3586
3514
  }, [w("div", {
3587
3515
  class: "farris-timer-picker"
3588
3516
  }, [w("div", {
3589
3517
  class: e + "-inner"
3590
3518
  }, [Ct(), w("div", {
3591
3519
  class: e + "-combobox",
3592
- style: Q.value
3593
- }, [J.value && w("div", {
3520
+ style: $.value
3521
+ }, [Z.value && w("div", {
3594
3522
  class: e + "-select",
3595
- ref: p
3596
- }, [w("ul", null, [o.value.map((m) => w("li", {
3597
- class: y(m, "hour"),
3598
- onClick: (x) => vt(x, m)
3599
- }, [`${m.index}`]))])]), oe.value && w("div", {
3523
+ ref: f
3524
+ }, [w("ul", null, [o.value.map((h) => w("li", {
3525
+ class: y(h, "hour"),
3526
+ onClick: (v) => xt(v, h)
3527
+ }, [`${h.index}`]))])]), ae.value && w("div", {
3600
3528
  class: e + "-select",
3601
3529
  ref: c
3602
- }, [w("ul", null, [a.value.map((m) => w("li", {
3603
- class: y(m, "minute"),
3604
- onClick: (x) => Tt(x, m)
3605
- }, [`${m.index}`]))])]), ae.value && w("div", {
3530
+ }, [w("ul", null, [a.value.map((h) => w("li", {
3531
+ class: y(h, "minute"),
3532
+ onClick: (v) => Tt(v, h)
3533
+ }, [`${h.index}`]))])]), ie.value && w("div", {
3606
3534
  class: e + "-select",
3607
3535
  ref: d
3608
- }, [w("ul", null, [i.value.map((m) => w("li", {
3609
- class: y(m, "second"),
3610
- onClick: (x) => Mt(x, m)
3611
- }, [`${m.index}`]))])]), C.value && w("div", {
3536
+ }, [w("ul", null, [s.value.map((h) => w("li", {
3537
+ class: y(h, "second"),
3538
+ onClick: (v) => kt(v, h)
3539
+ }, [`${h.index}`]))])]), T.value && w("div", {
3612
3540
  class: e + "-select",
3613
3541
  ref: u
3614
- }, [w("ul", null, [s.value.map((m) => w("li", {
3615
- class: y(m, "12-hour"),
3616
- onClick: (x) => xt(x, m)
3617
- }, [`${m.value}`]))])])])])])]);
3542
+ }, [w("ul", null, [i.value.map((h) => w("li", {
3543
+ class: y(h, "12-hour"),
3544
+ onClick: (v) => Mt(v, h)
3545
+ }, [`${h.value}`]))])])])])])]);
3618
3546
  }
3619
- }), ee = /* @__PURE__ */ ne({
3547
+ }), te = /* @__PURE__ */ re({
3620
3548
  name: "FTimePicker",
3621
- props: Pe,
3549
+ props: De,
3622
3550
  emits: ["update:modelValue", "valueChange", "clear"],
3623
3551
  setup(t, n) {
3624
- const e = '<span class="f-icon f-icon-timepicker"></span>', r = v(t.modelValue), o = v(null), a = v(), i = V(() => st(t.format, t.use12Hours));
3625
- function s() {
3552
+ const e = '<span class="f-icon f-icon-timepicker"></span>', r = b(t.modelValue), o = b(null), a = b(), s = N(() => ct(t.format, t.use12Hours));
3553
+ function i() {
3626
3554
  r.value = "", n.emit("clear");
3627
3555
  }
3628
- function p() {
3556
+ function f() {
3629
3557
  if (r.value) {
3630
- const u = at(r.value, i.value);
3631
- r.value = it(u, i.value);
3558
+ const u = ut(r.value, s.value);
3559
+ r.value = lt(u, s.value);
3632
3560
  }
3633
3561
  }
3634
3562
  function c() {
3635
- p();
3563
+ f();
3636
3564
  }
3637
3565
  function d(u) {
3638
3566
  r.value = u.text;
3639
3567
  }
3640
- return p(), R(() => t.modelValue, (u) => {
3568
+ return f(), j(() => t.modelValue, (u) => {
3641
3569
  r.value = u;
3642
- }), R(r, (u) => {
3570
+ }), j(r, (u) => {
3643
3571
  n.emit("valueChange", u), n.emit("update:modelValue", u);
3644
- }), () => w(Nt, {
3572
+ }), () => w(Yt, {
3645
3573
  ref: o,
3646
3574
  modelValue: r.value,
3647
3575
  "onUpdate:modelValue": (u) => r.value = u,
@@ -3651,23 +3579,23 @@ const Me = /* @__PURE__ */ ne({
3651
3579
  buttonContent: e,
3652
3580
  placeholder: t.placeholder,
3653
3581
  enableClear: !0,
3654
- onClear: s,
3582
+ onClear: i,
3655
3583
  onBlur: c
3656
3584
  }, {
3657
- default: () => [w(Me, Ce({
3585
+ default: () => [w(Ce, Pe({
3658
3586
  ref: a
3659
3587
  }, t, {
3660
3588
  onValueChange: d
3661
3589
  }), null)]
3662
3590
  });
3663
3591
  }
3664
- }), uo = /* @__PURE__ */ new Map([
3665
- ["appearance", Lt]
3592
+ }), co = /* @__PURE__ */ new Map([
3593
+ ["appearance", Wt]
3666
3594
  ]);
3667
- function lo(t, n, e) {
3595
+ function fo(t, n, e) {
3668
3596
  return n;
3669
3597
  }
3670
- const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-design.gitee.io/button-edit.schema.json", po = "button-edit", mo = "A Farris Input Component", ho = "object", yo = {
3598
+ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-design.gitee.io/button-edit.schema.json", ho = "button-edit", yo = "A Farris Input Component", go = "object", bo = {
3671
3599
  id: {
3672
3600
  description: "The unique identifier for a Input Group",
3673
3601
  type: "string"
@@ -3851,18 +3779,18 @@ const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-
3851
3779
  type: "string",
3852
3780
  default: ""
3853
3781
  }
3854
- }, go = [
3782
+ }, wo = [
3855
3783
  "id",
3856
3784
  "type"
3857
- ], bo = {
3858
- $schema: co,
3859
- $id: fo,
3860
- title: po,
3861
- description: mo,
3862
- type: ho,
3863
- properties: yo,
3864
- required: go
3865
- }, wo = "buttonEdit", vo = "A Farris Component", xo = "object", To = {
3785
+ ], vo = {
3786
+ $schema: po,
3787
+ $id: mo,
3788
+ title: ho,
3789
+ description: yo,
3790
+ type: go,
3791
+ properties: bo,
3792
+ required: wo
3793
+ }, xo = "buttonEdit", Mo = "A Farris Component", To = "object", ko = {
3866
3794
  basic: {
3867
3795
  description: "Basic Infomation",
3868
3796
  title: "基本信息",
@@ -3944,12 +3872,12 @@ const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-
3944
3872
  }
3945
3873
  }
3946
3874
  }
3947
- }, Mo = {
3948
- title: wo,
3949
- description: vo,
3950
- type: xo,
3951
- categories: To
3952
- }, Be = {
3875
+ }, Co = {
3876
+ title: xo,
3877
+ description: Mo,
3878
+ type: To,
3879
+ categories: ko
3880
+ }, Ve = {
3953
3881
  /**
3954
3882
  * 组件标识
3955
3883
  */
@@ -4055,30 +3983,30 @@ const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-
4055
3983
  * 打开前
4056
3984
  */
4057
3985
  beforeOpen: { type: Function, default: null }
4058
- }, ut = Re(Be, bo, uo, lo, Mo), Co = {
3986
+ }, dt = Qe(Ve, vo, co, fo, Co), Po = {
4059
3987
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
4060
3988
  host: { type: Object },
4061
3989
  backgroundColor: { type: String, default: "" }
4062
- }, ko = /* @__PURE__ */ ne({
3990
+ }, Oo = /* @__PURE__ */ re({
4063
3991
  name: "FOverlay",
4064
- props: Co,
3992
+ props: Po,
4065
3993
  emits: ["click"],
4066
3994
  setup(t, n) {
4067
- const e = v(t.popupContentPosition), r = v(t.host), o = V(() => ({
3995
+ const e = b(t.popupContentPosition), r = b(t.host), o = N(() => ({
4068
3996
  backgroundColor: t.backgroundColor || "",
4069
3997
  pointerEvents: "auto"
4070
3998
  }));
4071
- function a(s) {
4072
- n.emit("click"), s.preventDefault(), s.stopPropagation();
3999
+ function a(i) {
4000
+ n.emit("click"), i.preventDefault(), i.stopPropagation();
4073
4001
  }
4074
- V(() => {
4075
- const s = r.value;
4076
- if (s) {
4077
- const p = s.getBoundingClientRect(), {
4002
+ N(() => {
4003
+ const i = r.value;
4004
+ if (i) {
4005
+ const f = i.getBoundingClientRect(), {
4078
4006
  left: c,
4079
4007
  top: d,
4080
4008
  height: u
4081
- } = p;
4009
+ } = f;
4082
4010
  return {
4083
4011
  left: c,
4084
4012
  top: d + u
@@ -4086,7 +4014,7 @@ const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-
4086
4014
  }
4087
4015
  return e.value;
4088
4016
  });
4089
- const i = V(() => ({
4017
+ const s = N(() => ({
4090
4018
  // position: 'relative',
4091
4019
  // left: `${position.value.left}px`,
4092
4020
  // top: `${position.value.top}px`
@@ -4095,25 +4023,25 @@ const co = "https://json-schema.org/draft/2020-12/schema", fo = "https://farris-
4095
4023
  to: "body"
4096
4024
  }, {
4097
4025
  default: () => {
4098
- var s, p;
4026
+ var i, f;
4099
4027
  return [w("div", {
4100
4028
  class: "overlay-container",
4101
4029
  onClick: (c) => a(c),
4102
4030
  style: o.value
4103
4031
  }, [w("div", {
4104
- style: i.value
4105
- }, [(p = (s = n.slots).default) == null ? void 0 : p.call(s)])])];
4032
+ style: s.value
4033
+ }, [(f = (i = n.slots).default) == null ? void 0 : f.call(i)])])];
4106
4034
  }
4107
4035
  });
4108
4036
  }
4109
4037
  });
4110
- function Po(t) {
4038
+ function Do(t) {
4111
4039
  if (t.content && t.content.render)
4112
4040
  return t.content.render;
4113
4041
  if (t.render && typeof t.render == "function")
4114
4042
  return t.render;
4115
4043
  }
4116
- function Do(t) {
4044
+ function Ho(t) {
4117
4045
  const n = document.createElement("div");
4118
4046
  n.style.display = "contents";
4119
4047
  let e;
@@ -4121,13 +4049,13 @@ function Do(t) {
4121
4049
  }), o = () => {
4122
4050
  r(), e && e.unmount();
4123
4051
  };
4124
- return e = Ot({
4052
+ return e = Ht({
4125
4053
  setup() {
4126
- Ht(() => {
4054
+ Bt(() => {
4127
4055
  document.body.removeChild(n);
4128
4056
  });
4129
- const a = Po(t);
4130
- return () => w(ko, {
4057
+ const a = Do(t);
4058
+ return () => w(Oo, {
4131
4059
  "popup-content-position": t.popupPosition,
4132
4060
  host: t.host,
4133
4061
  onClick: o,
@@ -4138,13 +4066,13 @@ function Do(t) {
4138
4066
  }
4139
4067
  }), document.body.appendChild(n), e.mount(n), e;
4140
4068
  }
4141
- class Oo {
4069
+ class Bo {
4142
4070
  static show(n) {
4143
- return Do(n);
4071
+ return Ho(n);
4144
4072
  }
4145
4073
  }
4146
- const Ho = Symbol("FModalService");
4147
- function lt(t, n) {
4074
+ const Eo = Symbol("FModalService");
4075
+ function ft(t, n) {
4148
4076
  function e() {
4149
4077
  const r = t.beforeOpen || t.beforeClickButton || null;
4150
4078
  let o = Promise.resolve(!0);
@@ -4158,57 +4086,57 @@ function lt(t, n) {
4158
4086
  }
4159
4087
  return { judgeCanOpen: e };
4160
4088
  }
4161
- function ct(t, n, e, r, o) {
4162
- const a = v(t.buttonBehavior), i = v(t.popupOnInput), s = V(() => ({
4089
+ function pt(t, n, e, r, o) {
4090
+ const a = b(t.buttonBehavior), s = b(t.popupOnInput), i = N(() => ({
4163
4091
  "input-group-append": !0,
4164
4092
  "append-force-show": t.showButtonWhenDisabled && (t.readonly || t.disable)
4165
- })), { judgeCanOpen: p } = lt(t, o), c = V(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), d = pe(Ho, null), u = v();
4093
+ })), { judgeCanOpen: f } = ft(t, o), c = N(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), d = me(Eo, null), u = b();
4166
4094
  async function l(M) {
4167
- if (await p() && c.value) {
4168
- const O = !!n.slots.default;
4095
+ if (await f() && c.value) {
4096
+ const D = !!n.slots.default;
4169
4097
  if (a.value === "Modal") {
4170
- const Y = t.modalOptions, _ = d == null ? void 0 : d.open({
4171
- ...Y,
4098
+ const L = t.modalOptions, I = d == null ? void 0 : d.open({
4099
+ ...L,
4172
4100
  render: () => n.slots.default && n.slots.default()
4173
4101
  });
4174
- u.value = _ == null ? void 0 : _.modalRef;
4102
+ u.value = I == null ? void 0 : I.modalRef;
4175
4103
  }
4176
- a.value === "Overlay" && Oo.show({
4104
+ a.value === "Overlay" && Bo.show({
4177
4105
  // host: buttonEditRef.value,
4178
4106
  host: document.body,
4179
4107
  backgroundColor: "rgba(0,0,0,.15)",
4180
4108
  render: () => n.slots.default && n.slots.default()
4181
- }), O && a.value === "Popup" && r.togglePopup(!0), O && i.value && r.hidePopup(), n.emit("clickButton", { origin: M, value: t.modelValue });
4109
+ }), D && a.value === "Popup" && r.togglePopup(!0), D && s.value && r.hidePopup(), n.emit("clickButton", { origin: M, value: t.modelValue });
4182
4110
  }
4183
4111
  }
4184
- function h(M) {
4112
+ function m(M) {
4185
4113
  n.emit("mouseEnterIcon", M);
4186
4114
  }
4187
4115
  function y(M) {
4188
4116
  n.emit("mouseLeaveIcon", M);
4189
4117
  }
4190
4118
  return {
4191
- buttonGroupClass: s,
4119
+ buttonGroupClass: i,
4192
4120
  onClickButton: l,
4193
- onMouseEnterButton: h,
4121
+ onMouseEnterButton: m,
4194
4122
  onMouseLeaveButton: y,
4195
4123
  modalRef: u
4196
4124
  };
4197
4125
  }
4198
- function dt(t, n, e, r, o, a) {
4199
- const i = v(!1), s = V(() => t.enableClear && !t.readonly && !t.disable), { changeTextBoxValue: p } = a;
4200
- function c(h) {
4201
- i.value = h;
4126
+ function mt(t, n, e, r, o, a) {
4127
+ const s = b(!1), i = N(() => t.enableClear && !t.readonly && !t.disable), { changeTextBoxValue: f } = a;
4128
+ function c(m) {
4129
+ s.value = m;
4202
4130
  }
4203
- R(o, () => {
4131
+ j(o, () => {
4204
4132
  c(!!o.value);
4205
4133
  });
4206
- function d(h) {
4134
+ function d(m) {
4207
4135
  const y = !t.readonly && !t.disable && t.editable, M = !t.editable;
4208
- h.stopPropagation(), (y || M) && (p("", !1), c(!i.value), n.emit("clear"));
4136
+ m.stopPropagation(), (y || M) && (f("", !1), c(!s.value), n.emit("clear"));
4209
4137
  }
4210
- function u(h) {
4211
- if (s.value) {
4138
+ function u(m) {
4139
+ if (i.value) {
4212
4140
  if (!e.value) {
4213
4141
  c(!1);
4214
4142
  return;
@@ -4216,132 +4144,132 @@ function dt(t, n, e, r, o, a) {
4216
4144
  !t.disable && !t.readonly && c(!0);
4217
4145
  }
4218
4146
  }
4219
- function l(h) {
4220
- s.value && c(!1);
4147
+ function l(m) {
4148
+ i.value && c(!1);
4221
4149
  }
4222
4150
  return {
4223
- enableClearButton: s,
4224
- showClearButton: i,
4151
+ enableClearButton: i,
4152
+ showClearButton: s,
4225
4153
  onClearValue: d,
4226
4154
  onMouseEnterTextBox: u,
4227
4155
  onMouseLeaveTextBox: l
4228
4156
  };
4229
4157
  }
4230
- function ft(t, n, e, r, o) {
4231
- const a = V(() => t.popupOnInput), i = V(() => t.popupOnFocus), { shouldPopupContent: s } = o, p = V(() => t.enableTitle ? e.value : ""), c = V(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = V(() => t.readonly || !t.editable), u = v(!1), l = V(() => !t.disable && u.value), h = V(() => ({
4158
+ function ht(t, n, e, r, o) {
4159
+ const a = N(() => t.popupOnInput), s = N(() => t.popupOnFocus), { shouldPopupContent: i } = o, f = N(() => t.enableTitle ? e.value : ""), c = N(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = N(() => t.readonly || !t.editable), u = b(!1), l = N(() => !t.disable && u.value), m = N(() => ({
4232
4160
  "text-left": t.textAlign === "left",
4233
4161
  "text-center": t.textAlign === "center",
4234
4162
  "text-right": t.textAlign === "right",
4235
4163
  "form-control": !0,
4236
4164
  "f-utils-fill": !0
4237
- })), y = V(() => ({
4165
+ })), y = N(() => ({
4238
4166
  "input-group": !0,
4239
4167
  "f-state-disable": t.disable,
4240
4168
  "f-state-editable": t.editable && !t.disable && !t.readonly,
4241
4169
  "f-state-readonly": t.readonly && !t.disable,
4242
4170
  "f-state-focus": l.value
4243
4171
  }));
4244
- function M(T, j = !0) {
4245
- e.value !== T && (e.value = T, j && n.emit("change", T), n.emit("update:modelValue", T));
4172
+ function M(x, R = !0) {
4173
+ e.value !== x && (e.value = x, R && n.emit("change", x), n.emit("update:modelValue", x));
4246
4174
  }
4247
- function O(T) {
4248
- s.value = !1, M(T, !0);
4175
+ function D(x) {
4176
+ i.value = !1, M(x, !0);
4249
4177
  }
4250
- R(
4178
+ j(
4251
4179
  () => t.modelValue,
4252
- (T) => {
4253
- e.value = T;
4180
+ (x) => {
4181
+ e.value = x;
4254
4182
  }
4255
4183
  );
4256
- function Y(T) {
4257
- u.value = !1, n.emit("blur", T), T.stopPropagation();
4184
+ function L(x) {
4185
+ u.value = !1, n.emit("blur", x), x.stopPropagation();
4258
4186
  }
4259
- function _(T) {
4260
- n.emit("click", T);
4187
+ function I(x) {
4188
+ n.emit("click", x);
4261
4189
  }
4262
- function g(T) {
4263
- t.disable || (u.value = !0, d.value || (n.emit("focus", T), i.value && !s.value && o.popup()));
4190
+ function g(x) {
4191
+ t.disable || (u.value = !0, d.value || (n.emit("focus", x), s.value && !i.value && o.popup()));
4264
4192
  }
4265
- function C(T) {
4266
- n.emit("input", T.target.value);
4267
- const j = T.target.value;
4268
- r.value = j, e.value !== j && M(j, !0), a.value && !s.value && o.popup();
4193
+ function T(x) {
4194
+ n.emit("input", x.target.value);
4195
+ const R = x.target.value;
4196
+ r.value = R, e.value !== R && M(R, !0), a.value && !i.value && o.popup();
4269
4197
  }
4270
- function E(T) {
4271
- T.target.tagName !== "INPUT" && T.preventDefault(), T.stopPropagation();
4198
+ function V(x) {
4199
+ x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
4272
4200
  }
4273
- function k(T) {
4274
- n.emit("keydown", T);
4201
+ function C(x) {
4202
+ n.emit("keydown", x);
4275
4203
  }
4276
- function F(T) {
4277
- T.key === "Enter" && (a.value || i.value) && o.hidePopup(), n.emit("keyup", T);
4204
+ function E(x) {
4205
+ x.key === "Enter" && (a.value || s.value) && o.hidePopup(), n.emit("keyup", x);
4278
4206
  }
4279
- function H(T) {
4280
- const j = T.target.value;
4281
- T.stopPropagation(), M(j);
4207
+ function H(x) {
4208
+ const R = x.target.value;
4209
+ x.stopPropagation(), M(R);
4282
4210
  }
4283
4211
  return {
4284
4212
  hasFocusedTextBox: l,
4285
4213
  isTextBoxReadonly: d,
4286
- textBoxClass: h,
4214
+ textBoxClass: m,
4287
4215
  textBoxPlaceholder: c,
4288
- textBoxTitle: p,
4216
+ textBoxTitle: f,
4289
4217
  inputGroupClass: y,
4290
4218
  changeTextBoxValue: M,
4291
- commitValue: O,
4292
- onBlurTextBox: Y,
4293
- onClickTextBox: _,
4219
+ commitValue: D,
4220
+ onBlurTextBox: L,
4221
+ onClickTextBox: I,
4294
4222
  onFocusTextBox: g,
4295
- onInput: C,
4296
- onKeyDownTextBox: k,
4297
- onKeyUpTextBox: F,
4298
- onMouseDownTextBox: E,
4223
+ onInput: T,
4224
+ onKeyDownTextBox: C,
4225
+ onKeyUpTextBox: E,
4226
+ onMouseDownTextBox: V,
4299
4227
  onTextBoxValueChange: H
4300
4228
  };
4301
4229
  }
4302
- function pt(t, n, e, r) {
4303
- const o = v(), a = v(!1), { judgeCanOpen: i } = lt(t, r);
4304
- function s() {
4230
+ function yt(t, n, e, r) {
4231
+ const o = b(), a = b(!1), { judgeCanOpen: s } = ft(t, r);
4232
+ function i() {
4305
4233
  const u = o.value;
4306
4234
  u && u.show(e.value);
4307
4235
  }
4308
- async function p(u = !1) {
4236
+ async function f(u = !1) {
4309
4237
  if (!!n.slots.default) {
4310
- if (!u && !a.value && !await i())
4238
+ if (!u && !a.value && !await s())
4311
4239
  return;
4312
- a.value = !a.value, await Se(), s();
4240
+ a.value = !a.value, await Se(), i();
4313
4241
  }
4314
4242
  }
4315
4243
  async function c(u = !1) {
4316
4244
  if (!!n.slots.default) {
4317
- if (!u && !await i())
4245
+ if (!u && !await s())
4318
4246
  return;
4319
- a.value = !0, await Se(), s();
4247
+ a.value = !0, await Se(), i();
4320
4248
  }
4321
4249
  }
4322
4250
  function d() {
4323
4251
  a.value = !1;
4324
4252
  }
4325
- return { hidePopup: d, popup: c, shouldPopupContent: a, togglePopup: p, popoverRef: o };
4253
+ return { hidePopup: d, popup: c, shouldPopupContent: a, togglePopup: f, popoverRef: o };
4326
4254
  }
4327
- function mt(t, n, e) {
4328
- const r = v(), {
4255
+ function gt(t, n, e) {
4256
+ const r = b(), {
4329
4257
  isTextBoxReadonly: o,
4330
4258
  textBoxClass: a,
4331
- textBoxPlaceholder: i,
4332
- textBoxTitle: s,
4333
- onBlurTextBox: p,
4259
+ textBoxPlaceholder: s,
4260
+ textBoxTitle: i,
4261
+ onBlurTextBox: f,
4334
4262
  onClickTextBox: c,
4335
4263
  onFocusTextBox: d,
4336
4264
  onInput: u,
4337
4265
  onKeyDownTextBox: l,
4338
- onKeyUpTextBox: h,
4266
+ onKeyUpTextBox: m,
4339
4267
  onMouseDownTextBox: y,
4340
4268
  onTextBoxValueChange: M
4341
4269
  } = e;
4342
- return de(() => {
4343
- var O, Y;
4344
- t.selectOnCreated && ((O = r.value) == null || O.select()), t.focusOnCreated && ((Y = r.value) == null || Y.focus());
4270
+ return fe(() => {
4271
+ var D, L;
4272
+ t.selectOnCreated && ((D = r.value) == null || D.select()), t.focusOnCreated && ((L = r.value) == null || L.focus());
4345
4273
  }), () => w("input", {
4346
4274
  ref: r,
4347
4275
  name: "input-group-value",
@@ -4350,83 +4278,83 @@ function mt(t, n, e) {
4350
4278
  disabled: t.disable,
4351
4279
  maxlength: t.maxLength,
4352
4280
  minlength: t.minLength,
4353
- placeholder: i.value,
4281
+ placeholder: s.value,
4354
4282
  readonly: o.value,
4355
4283
  tabindex: t.tabIndex,
4356
- title: s.value,
4284
+ title: i.value,
4357
4285
  type: t.inputType,
4358
4286
  value: n.value,
4359
- onBlur: p,
4287
+ onBlur: f,
4360
4288
  onChange: M,
4361
4289
  onClick: c,
4362
4290
  onFocus: d,
4363
4291
  onInput: u,
4364
4292
  onKeydown: l,
4365
- onKeyup: h,
4293
+ onKeyup: m,
4366
4294
  onMousedown: y
4367
4295
  }, null);
4368
4296
  }
4369
- function ht(t, n, e) {
4370
- const r = v(t.separator), {
4297
+ function bt(t, n, e) {
4298
+ const r = b(t.separator), {
4371
4299
  changeTextBoxValue: o
4372
- } = e, a = V(() => n.value ? n.value.split(r.value).map((s) => ({
4373
- name: s,
4300
+ } = e, a = N(() => n.value ? n.value.split(r.value).map((i) => ({
4301
+ name: i,
4374
4302
  selectable: !0
4375
4303
  })) : []);
4376
- function i(s) {
4377
- o(s.map((p) => p.name).join(r.value), !0);
4304
+ function s(i) {
4305
+ o(i.map((f) => f.name).join(r.value), !0);
4378
4306
  }
4379
- return () => w(At, {
4307
+ return () => w(qt, {
4380
4308
  id: `${t.id}-tag-editor`,
4381
4309
  class: "form-control",
4382
4310
  data: a.value,
4383
4311
  showClose: !0,
4384
4312
  showInput: !0,
4385
- onChange: i
4313
+ onChange: s
4386
4314
  }, null);
4387
4315
  }
4388
- function yt(t, n, e, r) {
4316
+ function wt(t, n, e, r) {
4389
4317
  const {
4390
4318
  buttonGroupClass: o,
4391
4319
  onClickButton: a,
4392
- onMouseEnterButton: i,
4393
- onMouseLeaveButton: s
4320
+ onMouseEnterButton: s,
4321
+ onMouseLeaveButton: i
4394
4322
  } = e, {
4395
- enableClearButton: p,
4323
+ enableClearButton: f,
4396
4324
  showClearButton: c,
4397
4325
  onClearValue: d
4398
- } = r, u = v();
4326
+ } = r, u = b();
4399
4327
  return {
4400
4328
  renderButtonGroup: () => w("div", {
4401
4329
  id: `${t.id}-button-group`,
4402
4330
  class: o.value
4403
- }, [p.value && Bt(w("span", {
4331
+ }, [f.value && Et(w("span", {
4404
4332
  class: "input-group-text input-group-clear",
4405
4333
  onClick: d
4406
4334
  }, [w("i", {
4407
4335
  class: "f-icon modal_close"
4408
- }, null)]), [[Ft, c.value]]), n.slots.buttonContent ? w("span", {
4336
+ }, null)]), [[Vt, c.value]]), n.slots.buttonContent ? w("span", {
4409
4337
  class: "input-group-text input-group-append-button",
4410
4338
  onClick: a,
4411
- onMouseenter: i,
4412
- onMouseleave: s
4339
+ onMouseenter: s,
4340
+ onMouseleave: i
4413
4341
  }, [n.slots.buttonContent()]) : t.buttonContent ? w("span", {
4414
4342
  class: "input-group-text input-group-append-button",
4415
4343
  innerHTML: t.buttonContent,
4416
4344
  ref: u,
4417
4345
  onClick: a,
4418
- onMouseenter: i,
4419
- onMouseleave: s
4346
+ onMouseenter: s,
4347
+ onMouseleave: i
4420
4348
  }, null) : null]),
4421
4349
  buttonHandleElement: u
4422
4350
  };
4423
4351
  }
4424
- function Bo(t, n, e) {
4425
- const r = v(t.popupMinWidth), {
4352
+ function Vo(t, n, e) {
4353
+ const r = b(t.popupMinWidth), {
4426
4354
  hidePopup: o,
4427
4355
  popoverRef: a
4428
4356
  } = e;
4429
- return () => w(Wt, {
4357
+ return () => w(At, {
4430
4358
  id: `${t.id}-popover`,
4431
4359
  ref: a,
4432
4360
  visible: !0,
@@ -4440,86 +4368,132 @@ function Bo(t, n, e) {
4440
4368
  onHidden: o
4441
4369
  }, {
4442
4370
  default: () => {
4443
- var i, s;
4444
- return [(s = (i = n.slots).default) == null ? void 0 : s.call(i)];
4371
+ var s, i;
4372
+ return [(i = (s = n.slots).default) == null ? void 0 : i.call(s)];
4445
4373
  }
4446
4374
  });
4447
4375
  }
4448
- const ce = /* @__PURE__ */ ne({
4376
+ const de = /* @__PURE__ */ re({
4449
4377
  name: "FButtonEdit",
4450
- props: Be,
4378
+ props: Ve,
4451
4379
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4452
4380
  setup(t, n) {
4453
- const e = v(), r = v(t.customClass), o = v(t.modelValue), a = pt(t, n, e, o), {
4454
- shouldPopupContent: i,
4455
- hidePopup: s,
4456
- togglePopup: p
4457
- } = a, c = ct(t, n, e, a, o), d = v(""), u = ft(t, n, o, d, a), {
4381
+ const e = b(), r = b(t.customClass), o = b(t.modelValue), a = yt(t, n, e, o), {
4382
+ shouldPopupContent: s,
4383
+ hidePopup: i,
4384
+ togglePopup: f
4385
+ } = a, c = pt(t, n, e, a, o), d = b(""), u = ht(t, n, o, d, a), {
4458
4386
  hasFocusedTextBox: l,
4459
- commitValue: h,
4387
+ commitValue: m,
4460
4388
  inputGroupClass: y
4461
- } = u, M = dt(t, n, o, l, d, u), {
4462
- onMouseEnterTextBox: O,
4463
- onMouseLeaveTextBox: Y
4464
- } = M, _ = V(() => {
4465
- const T = {
4389
+ } = u, M = mt(t, n, o, l, d, u), {
4390
+ onMouseEnterTextBox: D,
4391
+ onMouseLeaveTextBox: L
4392
+ } = M, I = N(() => {
4393
+ const x = {
4466
4394
  "f-button-edit": !0,
4467
4395
  "f-cmp-inputgroup": !0,
4468
4396
  "f-button-edit-nowrap": !t.wrapText
4469
4397
  };
4470
- return r.value && r.value.split(" ").reduce((j, Q) => (j[Q] = !0, j), T), T;
4398
+ return r.value && r.value.split(" ").reduce((R, $) => (R[$] = !0, R), x), x;
4471
4399
  });
4472
4400
  function g() {
4473
- return t.multiSelect && t.inputType === "tag" ? ht(t, o, u) : mt(t, o, u);
4401
+ return t.multiSelect && t.inputType === "tag" ? bt(t, o, u) : gt(t, o, u);
4474
4402
  }
4475
- let C = g();
4476
- R([() => t.multiSelect, () => t.inputType], () => {
4477
- C = g();
4403
+ let T = g();
4404
+ j([() => t.multiSelect, () => t.inputType], () => {
4405
+ T = g();
4478
4406
  });
4479
4407
  const {
4480
- renderButtonGroup: E,
4481
- buttonHandleElement: k
4482
- } = yt(t, n, c, M), F = Bo(t, n, a), H = {
4483
- commitValue: h,
4408
+ renderButtonGroup: V,
4409
+ buttonHandleElement: C
4410
+ } = wt(t, n, c, M), E = Vo(t, n, a), H = {
4411
+ commitValue: m,
4484
4412
  elementRef: e,
4485
- hidePopup: s,
4486
- shouldPopupContent: i,
4487
- togglePopup: p,
4413
+ hidePopup: i,
4414
+ shouldPopupContent: s,
4415
+ togglePopup: f,
4488
4416
  openDialog: () => {
4489
- k.value && t.buttonBehavior === "Modal" && k.value.click();
4417
+ C.value && t.buttonBehavior === "Modal" && C.value.click();
4490
4418
  },
4491
4419
  getModal: () => {
4492
- var T;
4493
- return t.buttonBehavior === "Modal" ? (T = c.modalRef.value) == null ? void 0 : T.value : null;
4420
+ var x;
4421
+ return t.buttonBehavior === "Modal" ? (x = c.modalRef.value) == null ? void 0 : x.value : null;
4494
4422
  }
4495
4423
  };
4496
- return de(() => {
4424
+ return fe(() => {
4497
4425
  e.value.componentInstance = H, window.onresize = () => {
4498
4426
  document.body.click();
4499
4427
  };
4500
- }), n.expose(H), () => w(Et, null, [w("div", Ce(n.attrs, {
4428
+ }), n.expose(H), () => w(Ft, null, [w("div", Pe(n.attrs, {
4501
4429
  ref: e,
4502
- class: _.value,
4430
+ class: I.value,
4503
4431
  id: t.id
4504
4432
  }), [w("div", {
4505
4433
  id: `${t.id}-input-group`,
4506
4434
  class: y.value,
4507
- onMouseenter: O,
4508
- onMouseleave: Y
4509
- }, [C(), E()])]), i.value && F()]);
4435
+ onMouseenter: D,
4436
+ onMouseleave: L
4437
+ }, [T(), V()])]), s.value && E()]);
4438
+ }
4439
+ }), Fo = /* @__PURE__ */ re({
4440
+ name: "FButtonEdit",
4441
+ props: Ve,
4442
+ emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4443
+ setup(t, n) {
4444
+ const e = b(), r = me("design-item-context"), o = Lt(e, r), a = b(t.customClass), s = b(t.modelValue), i = yt(t, n, e, s), f = pt(t, n, e, i, s), c = b(""), d = ht(t, n, s, c, i), {
4445
+ hasFocusedTextBox: u,
4446
+ inputGroupClass: l
4447
+ } = d, m = mt(t, n, s, u, c, d);
4448
+ fe(() => {
4449
+ e.value.componentInstance = o;
4450
+ }), n.expose(o.value);
4451
+ const y = N(() => {
4452
+ const g = {
4453
+ "f-button-edit": !0,
4454
+ "f-cmp-inputgroup": !0,
4455
+ "f-button-edit-nowrap": !t.wrapText
4456
+ };
4457
+ return a.value && a.value.split(" ").reduce((T, V) => (T[V] = !0, T), g), g;
4458
+ });
4459
+ function M() {
4460
+ return t.multiSelect && t.inputType === "tag" ? bt(t, s, d) : gt(t, s, d);
4461
+ }
4462
+ let D = M();
4463
+ j([() => t.multiSelect, () => t.inputType], () => {
4464
+ D = M();
4465
+ });
4466
+ const {
4467
+ renderButtonGroup: L,
4468
+ buttonHandleElement: I
4469
+ } = wt(t, n, f, m);
4470
+ return () => w("div", Pe(n.attrs, {
4471
+ ref: e,
4472
+ class: y.value,
4473
+ id: t.id
4474
+ }), [w("div", {
4475
+ class: l.value
4476
+ }, [D(), L()])]);
4510
4477
  }
4511
4478
  });
4512
- function gt(t, n, e) {
4513
- var E;
4479
+ de.register = (t, n, e, r) => {
4480
+ t["button-edit"] = de, n["button-edit"] = dt;
4481
+ };
4482
+ de.registerDesigner = (t, n, e) => {
4483
+ t["button-edit"] = Fo, n["button-edit"] = dt;
4484
+ };
4485
+ _t(de);
4486
+ function No(t, n, e) {
4487
+ var V;
4514
4488
  function r() {
4515
4489
  e != null && e.resolveComponentContext && e.resolveComponentContext();
4516
4490
  }
4517
4491
  r();
4518
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", i = v();
4519
- function s() {
4492
+ const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", s = b();
4493
+ function i() {
4520
4494
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
4521
4495
  }
4522
- function p() {
4496
+ function f() {
4523
4497
  return !1;
4524
4498
  }
4525
4499
  function c() {
@@ -4528,227 +4502,242 @@ function gt(t, n, e) {
4528
4502
  function d() {
4529
4503
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
4530
4504
  }
4531
- function u(k) {
4532
- if (!k || !k.value)
4505
+ function u(C) {
4506
+ if (!C || !C.value)
4533
4507
  return null;
4534
- if (k.value.schema && k.value.schema.type === "component")
4535
- return k.value;
4536
- const F = v(k == null ? void 0 : k.value.parent), H = u(F);
4508
+ if (C.value.schema && C.value.schema.type === "component")
4509
+ return C.value;
4510
+ const E = b(C == null ? void 0 : C.value.parent), H = u(E);
4537
4511
  return H || null;
4538
4512
  }
4539
- function l(k = n) {
4540
- const { componentInstance: F, designerItemElementRef: H } = k;
4541
- return !F || !F.value ? null : F.value.canMove ? H : l(k.parent);
4513
+ function l(C = n) {
4514
+ const { componentInstance: E, designerItemElementRef: H } = C;
4515
+ return !E || !E.value ? null : E.value.canMove ? H : l(C.parent);
4542
4516
  }
4543
- function h(k) {
4544
- return !!e && e.canAccepts(k);
4517
+ function m(C) {
4518
+ return !!e && e.canAccepts(C);
4545
4519
  }
4546
4520
  function y() {
4547
4521
  return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
4548
4522
  }
4549
4523
  function M() {
4550
4524
  }
4551
- function O(k, F) {
4552
- F && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(F);
4525
+ function D(C, E) {
4526
+ E && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(E);
4553
4527
  }
4554
- function Y(k) {
4555
- const { componentType: F } = k;
4556
- let H = ve(F, k);
4557
- e && e.onResolveNewComponentSchema && (H = e.onResolveNewComponentSchema(k, H));
4558
- const T = F.toLowerCase().replace("-", "_");
4559
- return H && !H.id && H.type === F && (H.id = `${T}_${Math.random().toString().slice(2, 6)}`), H;
4528
+ function L(C) {
4529
+ const { componentType: E } = C;
4530
+ let H = Me(E, C);
4531
+ e && e.onResolveNewComponentSchema && (H = e.onResolveNewComponentSchema(C, H));
4532
+ const x = E.toLowerCase().replace("-", "_");
4533
+ return H && !H.id && H.type === E && (H.id = `${x}_${Math.random().toString().slice(2, 6)}`), H;
4560
4534
  }
4561
- function _(k, F) {
4562
- const H = String(k.getAttribute("data-controltype")), T = k.getAttribute("data-feature"), j = T ? JSON.parse(T) : {};
4563
- j.parentComponentInstance = i.value;
4564
- let Q = ve(H, j);
4565
- e && e.onAcceptNewChildElement && (Q = e.onAcceptNewChildElement(k, F, Q));
4566
- const J = H.toLowerCase().replace("-", "_");
4567
- return Q && !Q.id && Q.type === H && (Q.id = `${J}_${Math.random().toString().slice(2, 6)}`), Q;
4535
+ function I(C, E) {
4536
+ const H = String(C.getAttribute("data-controltype")), x = C.getAttribute("data-feature"), R = x ? JSON.parse(x) : {};
4537
+ R.parentComponentInstance = s.value;
4538
+ let $ = Me(H, R);
4539
+ e && e.onAcceptNewChildElement && ($ = e.onAcceptNewChildElement(C, E, $));
4540
+ const Z = H.toLowerCase().replace("-", "_");
4541
+ return $ && !$.id && $.type === H && ($.id = `${Z}_${Math.random().toString().slice(2, 6)}`), $;
4568
4542
  }
4569
- function g(k) {
4543
+ function g(C) {
4570
4544
  }
4571
- function C(...k) {
4545
+ function T(...C) {
4572
4546
  if (e && e.getPropsConfig)
4573
- return e.getPropsConfig(...k);
4547
+ return e.getPropsConfig(...C);
4574
4548
  }
4575
- return i.value = {
4576
- canMove: s(),
4577
- canSelectParent: p(),
4549
+ return s.value = {
4550
+ canMove: i(),
4551
+ canSelectParent: f(),
4578
4552
  canDelete: c(),
4579
4553
  canNested: !d(),
4580
4554
  contents: n == null ? void 0 : n.schema.contents,
4581
4555
  elementRef: t,
4582
- parent: (E = n == null ? void 0 : n.parent) == null ? void 0 : E.componentInstance,
4556
+ parent: (V = n == null ? void 0 : n.parent) == null ? void 0 : V.componentInstance,
4583
4557
  schema: n == null ? void 0 : n.schema,
4584
4558
  styles: o,
4585
4559
  designerClass: a,
4586
- canAccepts: h,
4560
+ canAccepts: m,
4587
4561
  getBelongedComponentInstance: u,
4588
4562
  getDraggableDesignItemElement: l,
4589
4563
  getDraggingDisplayText: y,
4590
- getPropConfig: C,
4564
+ getPropConfig: T,
4591
4565
  getDragScopeElement: M,
4592
- onAcceptMovedChildElement: O,
4593
- onAcceptNewChildElement: _,
4566
+ onAcceptMovedChildElement: D,
4567
+ onAcceptNewChildElement: I,
4594
4568
  onChildElementMovedOut: g,
4595
- addNewChildComponentSchema: Y,
4569
+ addNewChildComponentSchema: L,
4596
4570
  updateDragAndDropRules: r,
4597
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || v(!1),
4598
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
4599
- }, i;
4571
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || b(!1),
4572
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
4573
+ }, s;
4600
4574
  }
4601
- const Fo = /* @__PURE__ */ ne({
4602
- name: "FButtonEdit",
4603
- props: Be,
4604
- emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4605
- setup(t, n) {
4606
- const e = v(), r = pe("design-item-context"), o = gt(e, r), a = v(t.customClass), i = v(t.modelValue), s = pt(t, n, e, i), p = ct(t, n, e, s, i), c = v(""), d = ft(t, n, i, c, s), {
4607
- hasFocusedTextBox: u,
4608
- inputGroupClass: l
4609
- } = d, h = dt(t, n, i, u, c, d);
4610
- de(() => {
4611
- e.value.componentInstance = o;
4612
- }), n.expose(o.value);
4613
- const y = V(() => {
4614
- const g = {
4615
- "f-button-edit": !0,
4616
- "f-cmp-inputgroup": !0,
4617
- "f-button-edit-nowrap": !t.wrapText
4618
- };
4619
- return a.value && a.value.split(" ").reduce((C, E) => (C[E] = !0, C), g), g;
4575
+ class So {
4576
+ constructor(n, e) {
4577
+ p(this, "componentId");
4578
+ p(this, "viewModelId");
4579
+ p(this, "eventsEditorUtils");
4580
+ p(this, "formSchemaUtils");
4581
+ p(this, "formMetadataConverter");
4582
+ p(this, "designViewModelUtils");
4583
+ p(this, "designViewModelField");
4584
+ p(this, "controlCreatorUtils");
4585
+ p(this, "designerHostService");
4586
+ p(this, "schemaService", null);
4587
+ p(this, "metadataService", null);
4588
+ p(this, "propertyConfig", {
4589
+ type: "object",
4590
+ categories: {}
4620
4591
  });
4621
- function M() {
4622
- return t.multiSelect && t.inputType === "tag" ? ht(t, i, d) : mt(t, i, d);
4592
+ var r;
4593
+ this.componentId = n, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
4594
+ }
4595
+ getTableInfo() {
4596
+ var n;
4597
+ return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
4598
+ }
4599
+ setDesignViewModelField(n) {
4600
+ const e = n.binding && n.binding.type === "Form" && n.binding.field;
4601
+ if (e) {
4602
+ if (!this.designViewModelField) {
4603
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
4604
+ this.designViewModelField = r.fields.find((o) => o.id === e);
4605
+ }
4606
+ n.updateOn = this.designViewModelField.updateOn;
4623
4607
  }
4624
- let O = M();
4625
- R([() => t.multiSelect, () => t.inputType], () => {
4626
- O = M();
4627
- });
4628
- const {
4629
- renderButtonGroup: Y,
4630
- buttonHandleElement: _
4631
- } = yt(t, n, p, h);
4632
- return () => w("div", Ce(n.attrs, {
4633
- ref: e,
4634
- class: y.value,
4635
- id: t.id
4636
- }), [w("div", {
4637
- class: l.value
4638
- }, [O(), Y()])]);
4639
4608
  }
4640
- });
4641
- ce.register = (t, n, e, r) => {
4642
- t["button-edit"] = ce, n["button-edit"] = ut;
4643
- };
4644
- ce.registerDesigner = (t, n, e) => {
4645
- t["button-edit"] = Fo, n["button-edit"] = ut;
4646
- };
4647
- It(ce);
4648
- class bt {
4609
+ changeFieldEditorType(n, e) {
4610
+ }
4611
+ getBasicPropConfig(n) {
4612
+ return {
4613
+ description: "Basic Information",
4614
+ title: "基本信息",
4615
+ properties: {
4616
+ id: {
4617
+ description: "组件标识",
4618
+ title: "标识",
4619
+ type: "string",
4620
+ readonly: !0
4621
+ },
4622
+ type: {
4623
+ description: "组件类型",
4624
+ title: "控件类型",
4625
+ type: "select",
4626
+ editor: {
4627
+ type: "combo-list",
4628
+ textField: "name",
4629
+ valueField: "value",
4630
+ data: [{ value: n.type, name: k[n.type].name }]
4631
+ }
4632
+ }
4633
+ }
4634
+ };
4635
+ }
4636
+ getAppearanceConfig(n = null) {
4637
+ return {
4638
+ title: "样式",
4639
+ description: "Appearance",
4640
+ properties: {
4641
+ class: {
4642
+ title: "class样式",
4643
+ type: "string",
4644
+ description: "组件的CSS样式",
4645
+ $converter: "/converter/appearance.converter"
4646
+ },
4647
+ style: {
4648
+ title: "style样式",
4649
+ type: "string",
4650
+ description: "组件的样式",
4651
+ $converter: "/converter/appearance.converter"
4652
+ }
4653
+ }
4654
+ };
4655
+ }
4656
+ }
4657
+ const ee = class ee {
4658
+ /**
4659
+ * 根据绑定字段类型获取可用的输入类控件
4660
+ */
4649
4661
  static getEditorTypesByMDataType(n) {
4650
- const e = this.fieldControlTypeMapping[n];
4662
+ const e = ee.fieldControlTypeMapping[n];
4651
4663
  return e || [{ key: "", value: "" }];
4652
4664
  }
4653
- }
4665
+ /**
4666
+ * 获取所有输入类控件
4667
+ */
4668
+ static getAllInputTypes() {
4669
+ const n = [];
4670
+ for (let e in ee.fieldControlTypeMapping)
4671
+ ee.fieldControlTypeMapping[e].forEach((r) => {
4672
+ n.find((o) => o.key === r.key && o.value === r.value) || n.push({ key: r.key, value: r.value });
4673
+ });
4674
+ return n;
4675
+ }
4676
+ };
4654
4677
  /**
4655
4678
  * <字段类型,可配置的控件类型列表>的映射
4656
4679
  */
4657
- f(bt, "fieldControlTypeMapping", {
4680
+ p(ee, "fieldControlTypeMapping", {
4658
4681
  String: [
4659
- { key: b["input-group"].type, value: b["input-group"].name },
4660
- { key: b.lookup.type, value: b.lookup.name },
4661
- { key: b.Image.type, value: b.Image.name },
4662
- { key: b["date-picker"].type, value: b["date-picker"].name },
4663
- { key: b["check-box"].type, value: b["check-box"].name },
4664
- { key: b["radio-group"].type, value: b["radio-group"].name },
4665
- { key: b["combo-list"].type, value: b["combo-list"].name },
4666
- { key: b.textarea.type, value: b.textarea.name }
4667
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
4682
+ { key: k["input-group"].type, value: k["input-group"].name },
4683
+ { key: k.lookup.type, value: k.lookup.name },
4684
+ { key: k["date-picker"].type, value: k["date-picker"].name },
4685
+ { key: k["check-box"].type, value: k["check-box"].name },
4686
+ { key: k["radio-group"].type, value: k["radio-group"].name },
4687
+ { key: k["combo-list"].type, value: k["combo-list"].name },
4688
+ { key: k.textarea.type, value: k.textarea.name }
4668
4689
  ],
4669
4690
  Text: [
4670
- { key: b.textarea.type, value: b.textarea.name },
4671
- { key: b.avatar.type, value: b.avatar.name },
4672
- { key: b.lookup.type, value: b.lookup.name }
4691
+ { key: k.textarea.type, value: k.textarea.name },
4692
+ { key: k.lookup.type, value: k.lookup.name }
4673
4693
  ],
4674
4694
  Decimal: [
4675
- { key: b["number-spinner"].type, value: b["number-spinner"].name }
4695
+ { key: k["number-spinner"].type, value: k["number-spinner"].name }
4676
4696
  ],
4677
4697
  Integer: [
4678
- { key: b["number-spinner"].type, value: b["number-spinner"].name }
4698
+ { key: k["number-spinner"].type, value: k["number-spinner"].name }
4679
4699
  ],
4680
4700
  Number: [
4681
- { key: b["number-spinner"].type, value: b["number-spinner"].name }
4701
+ { key: k["number-spinner"].type, value: k["number-spinner"].name }
4682
4702
  ],
4683
4703
  BigNumber: [
4684
- { key: b["number-spinner"].type, value: b["number-spinner"].name }
4704
+ { key: k["number-spinner"].type, value: k["number-spinner"].name }
4685
4705
  ],
4686
4706
  Date: [
4687
- { key: b["date-picker"].type, value: b["date-picker"].name }
4707
+ { key: k["date-picker"].type, value: k["date-picker"].name }
4688
4708
  ],
4689
4709
  DateTime: [
4690
- { key: b["date-picker"].type, value: b["date-picker"].name }
4710
+ { key: k["date-picker"].type, value: k["date-picker"].name }
4691
4711
  ],
4692
4712
  Boolean: [
4693
- { key: b.switch.type, value: b.switch.name },
4694
- { key: b["check-box"].type, value: b["check-box"].name }
4713
+ { key: k.switch.type, value: k.switch.name },
4714
+ { key: k["check-box"].type, value: k["check-box"].name }
4695
4715
  ],
4696
4716
  Enum: [
4697
- { key: b["combo-list"].type, value: b["combo-list"].name },
4698
- { key: b["radio-group"].type, value: b["radio-group"].name }
4717
+ { key: k["combo-list"].type, value: k["combo-list"].name },
4718
+ { key: k["radio-group"].type, value: k["radio-group"].name }
4699
4719
  ],
4700
4720
  Object: [
4701
- { key: b.lookup.type, value: b.lookup.name },
4702
- { key: b["combo-list"].type, value: b["combo-list"].name },
4703
- { key: b["radio-group"].type, value: b["radio-group"].name }
4704
- ],
4705
- EmployeeSelector: [
4706
- { key: b.EmployeeSelector.type, value: b.EmployeeSelector.name }
4707
- ],
4708
- AdminOrganizationSelector: [
4709
- { key: b.AdminOrganizationSelector.type, value: b.AdminOrganizationSelector.name }
4721
+ { key: k.lookup.type, value: k.lookup.name },
4722
+ { key: k["combo-list"].type, value: k["combo-list"].name },
4723
+ { key: k["radio-group"].type, value: k["radio-group"].name }
4710
4724
  ]
4711
4725
  });
4712
- class Eo {
4726
+ let ge = ee;
4727
+ const Yo = b(0);
4728
+ class Wo extends So {
4713
4729
  constructor(n, e) {
4714
- f(this, "componentId");
4715
- f(this, "viewModelId");
4716
- f(this, "eventsEditorUtils");
4717
- f(this, "formSchemaUtils");
4718
- f(this, "formMetadataConverter");
4719
- f(this, "designViewModelUtils");
4720
- f(this, "designViewModelField");
4721
- f(this, "controlCreatorUtils");
4722
- f(this, "designerHostService");
4723
- f(this, "schemaService", null);
4724
- f(this, "metadataService", null);
4725
- f(this, "propertyConfig", {
4726
- type: "object",
4727
- categories: {}
4728
- });
4729
- var r;
4730
- this.componentId = n, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
4731
- }
4732
- getTableInfo() {
4733
- var n;
4734
- return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
4735
- }
4736
- setDesignViewModelField(n) {
4737
- const e = n.binding && n.binding.type === "Form" && n.binding.field;
4738
- if (e) {
4739
- if (!this.designViewModelField) {
4740
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
4741
- this.designViewModelField = r.fields.find((o) => o.id === e);
4742
- }
4743
- n.updateOn = this.designViewModelField.updateOn;
4744
- }
4730
+ super(n, e);
4745
4731
  }
4746
- changeFieldEditorType(n, e) {
4732
+ getPropertyConfig(n, e) {
4733
+ return this.propertyConfig.categories.basic = this.getBasicProperties(n, e), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
4747
4734
  }
4748
- getBasicPropConfig(n) {
4749
- var r, o;
4750
- var e = this;
4751
- return this.setDesignViewModelField(n), {
4735
+ getBasicProperties(n, e) {
4736
+ var s;
4737
+ var r = this;
4738
+ this.setDesignViewModelField(n);
4739
+ const o = this.formSchemaUtils.getFormMetadataBasicInfo(), a = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
4740
+ return {
4752
4741
  description: "Basic Information",
4753
4742
  title: "基本信息",
4754
4743
  properties: {
@@ -4768,63 +4757,48 @@ class Eo {
4768
4757
  type: "combo-list",
4769
4758
  textField: "value",
4770
4759
  valueField: "key",
4771
- data: bt.getEditorTypesByMDataType(((o = (r = e.designViewModelField) == null ? void 0 : r.type) == null ? void 0 : o.name) || ""),
4772
- editable: !1
4760
+ editable: !1,
4761
+ data: r.designViewModelField ? ge.getEditorTypesByMDataType((s = r.designViewModelField.type) == null ? void 0 : s.name) : ge.getAllInputTypes()
4773
4762
  }
4774
4763
  },
4775
4764
  label: {
4776
4765
  title: "标签",
4777
4766
  type: "string",
4778
4767
  $converter: "/converter/form-group-label.converter"
4768
+ },
4769
+ binding: {
4770
+ description: "绑定的表单字段",
4771
+ title: "绑定",
4772
+ $converter: "/converter/field-selector.converter",
4773
+ editor: {
4774
+ type: "field-selector",
4775
+ bindingType: { enable: !1 },
4776
+ editorParams: {
4777
+ propertyData: n,
4778
+ formBasicInfo: o
4779
+ },
4780
+ columns: [
4781
+ { field: "name", title: "字段名称" },
4782
+ { field: "bindingField", title: "绑定字段" },
4783
+ { field: "fieldType", title: "字段类型" }
4784
+ ],
4785
+ textField: "bindingField",
4786
+ data: a
4787
+ }
4779
4788
  }
4780
4789
  },
4781
- setPropertyRelates(a, i) {
4782
- if (a)
4783
- switch (a && a.propertyID) {
4790
+ setPropertyRelates(i, f) {
4791
+ if (i)
4792
+ switch (i && i.propertyID) {
4784
4793
  case "type": {
4785
- e.changeControlType(n, a);
4794
+ r.changeControlType(n, i, e);
4786
4795
  break;
4787
4796
  }
4788
4797
  }
4789
4798
  }
4790
4799
  };
4791
4800
  }
4792
- /**
4793
- * 卡片控件:切换控件类型后事件
4794
- * @param propertyData 控件DOM属性
4795
- * @param newControlType 新控件类型
4796
- */
4797
- changeControlType(n, e) {
4798
- var c, d, u, l, h;
4799
- const r = e.propertyValue, o = this.formSchemaUtils.getComponentById(this.componentId);
4800
- let a = this.getControlParentContainer(n.id, o);
4801
- if (!a)
4802
- return;
4803
- const i = a.contents.findIndex((y) => y.id === n.id), s = a.contents[i];
4804
- let p;
4805
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
4806
- editor: {
4807
- $type: r
4808
- },
4809
- name: this.designViewModelField.name,
4810
- require: this.designViewModelField.require,
4811
- readonly: this.designViewModelField.readonly
4812
- }, !1), p = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, r)), Object.assign(p, {
4813
- id: s.id,
4814
- appearance: s.appearance,
4815
- size: s.size,
4816
- label: s.label
4817
- }), Object.assign(p.editor, {
4818
- isTextArea: p.isTextArea && s.isTextArea,
4819
- type: r || "",
4820
- placeHolder: (c = s.editor) == null ? void 0 : c.placeHolder,
4821
- holdPlace: (d = s.editor) == null ? void 0 : d.holdPlace,
4822
- readonly: (u = s.editor) == null ? void 0 : u.readonly,
4823
- require: (l = s.editor) == null ? void 0 : l.require,
4824
- visible: (h = s.editor) == null ? void 0 : h.visible
4825
- }), a.contents.splice(i, 1, p);
4826
- }
4827
- getAppearanceConfig(n = null) {
4801
+ getAppearanceProperties(n) {
4828
4802
  return {
4829
4803
  title: "样式",
4830
4804
  description: "Appearance",
@@ -4854,65 +4828,44 @@ class Eo {
4854
4828
  }
4855
4829
  };
4856
4830
  }
4857
- /**
4858
- * 获取控件:以contents为节点进行定位
4859
- * @param controlId 控件ID
4860
- * @param domJson 容器
4861
- */
4862
- getControlParentContainer(n, e) {
4863
- let r;
4864
- if (!e || !e.contents || e.contents.length === 0)
4865
- return null;
4866
- for (const o of e.contents) {
4867
- if (o.id === n)
4868
- return r = e, e;
4869
- if (r = this.getControlParentContainer(n, o), r)
4870
- return r;
4871
- }
4872
- }
4873
- }
4874
- class So extends Eo {
4875
- constructor(n, e) {
4876
- super(n, e);
4877
- }
4878
- getBasicProperties(n) {
4879
- let e = this.getBasicPropConfig(n);
4880
- return e.properties.binding = this.getFieldSelectorOptions(n), e;
4881
- }
4882
- getAppearanceProperties(n) {
4883
- return this.getAppearanceConfig(n);
4884
- }
4885
4831
  getEditorProperties(n) {
4886
4832
  return this.getComponentConfig(n);
4887
4833
  }
4888
- getPropertyConfig(n) {
4889
- return this.propertyConfig.categories.basic = this.getBasicProperties(n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
4890
- }
4891
- getFieldSelectorOptions(n) {
4892
- const e = this.formSchemaUtils.getFormMetadataBasicInfo(), r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
4893
- return {
4894
- description: "绑定的表单字段",
4895
- title: "绑定",
4896
- $converter: "/converter/field-selector.converter",
4834
+ /**
4835
+ * 卡片控件:切换控件类型后事件
4836
+ * @param propertyData 控件DOM属性
4837
+ * @param newControlType 新控件类型
4838
+ */
4839
+ changeControlType(n, e, r) {
4840
+ var c, d, u, l;
4841
+ const o = e.propertyValue, a = r && r.parent && r.parent.schema;
4842
+ if (!a)
4843
+ return;
4844
+ const s = a.contents.findIndex((m) => m.id === n.id), i = a.contents[s];
4845
+ let f;
4846
+ this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
4897
4847
  editor: {
4898
- type: "field-selector",
4899
- bindingType: { enable: !1 },
4900
- editorParams: {
4901
- propertyData: n,
4902
- formBasicInfo: e
4903
- },
4904
- columns: [
4905
- { field: "name", title: "字段名称" },
4906
- { field: "bindingField", title: "绑定字段" },
4907
- { field: "fieldType", title: "字段类型" }
4908
- ],
4909
- textField: "bindingField",
4910
- data: r
4911
- }
4912
- };
4913
- }
4914
- getBindingOtions(n) {
4915
- return this.getFieldSelectorOptions(n);
4848
+ $type: o
4849
+ },
4850
+ name: this.designViewModelField.name,
4851
+ require: this.designViewModelField.require,
4852
+ readonly: this.designViewModelField.readonly
4853
+ }, !1), f = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), f || (f = Ye("form-group") || {}, f.editor = Ye(o) || {}, delete f.editor.id, delete f.editor.binding, delete f.editor.appearance), Object.assign(f, {
4854
+ id: i.id,
4855
+ appearance: i.appearance,
4856
+ size: i.size,
4857
+ label: i.label,
4858
+ binding: i.binding,
4859
+ visible: i.visible
4860
+ }), Object.assign(f.editor, {
4861
+ isTextArea: f.isTextArea && i.isTextArea,
4862
+ placeholder: (c = i.editor) == null ? void 0 : c.placeholder,
4863
+ holdPlace: (d = i.editor) == null ? void 0 : d.holdPlace,
4864
+ readonly: (u = i.editor) == null ? void 0 : u.readonly,
4865
+ require: (l = i.editor) == null ? void 0 : l.require
4866
+ }), a.contents.splice(s, 1), a.contents.splice(s, 0, f), r.schema = Object.assign(i, f), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
4867
+ (m) => m.classList.remove("dgComponentSelected")
4868
+ ), Yo.value++;
4916
4869
  }
4917
4870
  getComponentConfig(n, e = {}, r = {}) {
4918
4871
  const o = Object.assign({
@@ -4945,7 +4898,7 @@ class So extends Eo {
4945
4898
  return { ...o, properties: { ...a } };
4946
4899
  }
4947
4900
  }
4948
- class Vo extends So {
4901
+ class qo extends Wo {
4949
4902
  constructor(n, e) {
4950
4903
  super(n, e);
4951
4904
  }
@@ -4985,22 +4938,22 @@ class Vo extends So {
4985
4938
  });
4986
4939
  }
4987
4940
  }
4988
- function No(t, n) {
4941
+ function Ao(t, n) {
4989
4942
  t.schema;
4990
- const e = v(!0), r = v(!0);
4943
+ const e = b(!0), r = b(!0);
4991
4944
  function o(u) {
4992
4945
  return !1;
4993
4946
  }
4994
4947
  function a() {
4995
4948
  return !1;
4996
4949
  }
4997
- function i() {
4950
+ function s() {
4998
4951
  return !1;
4999
4952
  }
5000
- function s() {
4953
+ function i() {
5001
4954
  return !0;
5002
4955
  }
5003
- function p(u) {
4956
+ function f(u) {
5004
4957
  }
5005
4958
  function c() {
5006
4959
  }
@@ -5010,9 +4963,9 @@ function No(t, n) {
5010
4963
  return {
5011
4964
  canAccepts: o,
5012
4965
  checkCanDeleteComponent: a,
5013
- checkCanMoveComponent: i,
5014
- hideNestedPaddingInDesginerView: s,
5015
- onAcceptMovedChildElement: p,
4966
+ checkCanMoveComponent: s,
4967
+ hideNestedPaddingInDesginerView: i,
4968
+ onAcceptMovedChildElement: f,
5016
4969
  resolveComponentContext: c,
5017
4970
  triggerBelongedComponentToMoveWhenMoved: e,
5018
4971
  triggerBelongedComponentToDeleteWhenDeleted: r,
@@ -5025,40 +4978,40 @@ function Lo(t, n) {
5025
4978
  checkCanDeleteComponent: r,
5026
4979
  checkCanMoveComponent: o,
5027
4980
  hideNestedPaddingInDesginerView: a,
5028
- onAcceptMovedChildElement: i,
5029
- resolveComponentContext: s,
5030
- triggerBelongedComponentToMoveWhenMoved: p,
4981
+ onAcceptMovedChildElement: s,
4982
+ resolveComponentContext: i,
4983
+ triggerBelongedComponentToMoveWhenMoved: f,
5031
4984
  triggerBelongedComponentToDeleteWhenDeleted: c
5032
- } = No(t), d = t.schema;
5033
- function u(l) {
5034
- return new Vo(l, n).getPropertyConfig(d);
4985
+ } = Ao(t), d = t.schema;
4986
+ function u(l, m) {
4987
+ return new qo(l, n).getPropertyConfig(d, m);
5035
4988
  }
5036
4989
  return {
5037
4990
  canAccepts: e,
5038
4991
  checkCanDeleteComponent: r,
5039
4992
  checkCanMoveComponent: o,
5040
4993
  hideNestedPaddingInDesginerView: a,
5041
- onAcceptMovedChildElement: i,
5042
- resolveComponentContext: s,
5043
- triggerBelongedComponentToMoveWhenMoved: p,
4994
+ onAcceptMovedChildElement: s,
4995
+ resolveComponentContext: i,
4996
+ triggerBelongedComponentToMoveWhenMoved: f,
5044
4997
  triggerBelongedComponentToDeleteWhenDeleted: c,
5045
4998
  getPropsConfig: u
5046
4999
  };
5047
5000
  }
5048
- const Ao = /* @__PURE__ */ ne({
5001
+ const _o = /* @__PURE__ */ re({
5049
5002
  name: "FTimePickerDesign",
5050
- props: Pe,
5003
+ props: De,
5051
5004
  emits: ["datePicked", "update:modelValue"],
5052
5005
  setup(t, n) {
5053
- const e = '<span class="f-icon f-icon-timepicker"></span>', r = v(t.modelValue), o = v(), a = v(), i = pe("designer-host-service"), s = pe("design-item-context"), p = Lo(s, i), c = gt(a, s, p);
5054
- de(() => {
5006
+ const e = '<span class="f-icon f-icon-timepicker"></span>', r = b(t.modelValue), o = b(), a = b(), s = me("designer-host-service"), i = me("design-item-context"), f = Lo(i, s), c = No(a, i, f);
5007
+ fe(() => {
5055
5008
  a.value.componentInstance = c;
5056
5009
  }), n.expose(c.value);
5057
5010
  function d() {
5058
5011
  }
5059
5012
  return () => w("div", {
5060
5013
  ref: a
5061
- }, [w(ce, {
5014
+ }, [w(de, {
5062
5015
  ref: o,
5063
5016
  modelValue: r.value,
5064
5017
  "onUpdate:modelValue": (u) => r.value = u,
@@ -5066,24 +5019,24 @@ const Ao = /* @__PURE__ */ ne({
5066
5019
  enableClear: !0,
5067
5020
  onClickButton: () => void 0
5068
5021
  }, {
5069
- default: () => [w(St("f-time-picker-time-view"), null, null)]
5022
+ default: () => [w(Nt("f-time-picker-time-view"), null, null)]
5070
5023
  })]);
5071
5024
  }
5072
5025
  });
5073
- ee.install = (t) => {
5074
- t.component(ee.name, ee).component(Me.name, Me);
5026
+ te.install = (t) => {
5027
+ t.component(te.name, te).component(Ce.name, Ce);
5075
5028
  };
5076
- ee.register = (t, n, e, r) => {
5077
- t["time-picker"] = ee, n["time-picker"] = je;
5029
+ te.register = (t, n, e, r) => {
5030
+ t["time-picker"] = te, n["time-picker"] = Ge;
5078
5031
  };
5079
- ee.registerDesigner = (t, n, e) => {
5080
- t["time-picker"] = Ao, n["time-picker"] = je;
5032
+ te.registerDesigner = (t, n, e) => {
5033
+ t["time-picker"] = _o, n["time-picker"] = Ge;
5081
5034
  };
5082
5035
  export {
5083
- ee as FTimePicker,
5084
- Me as FTimePickerTimeView,
5085
- ee as default,
5086
- je as propsResolver,
5087
- Pe as timePickerProps,
5088
- rn as timeProps
5036
+ te as FTimePicker,
5037
+ Ce as FTimePickerTimeView,
5038
+ te as default,
5039
+ Ge as propsResolver,
5040
+ De as timePickerProps,
5041
+ an as timeProps
5089
5042
  };