@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,102 +1,102 @@
1
- import { defineComponent as B, ref as C, watch as $, computed as W, createVNode as o, onMounted as U, inject as oe } from "vue";
1
+ import { defineComponent as B, ref as T, watch as $, computed as W, createVNode as c, onMounted as U, inject as oe } from "vue";
2
2
  import { cloneDeep as se } from "lodash-es";
3
3
  const K = {}, ee = {};
4
4
  function Q(e) {
5
- const { properties: t, title: i } = e, m = Object.keys(t).reduce((v, d) => (v[d] = t[d].type === "object" && t[d].properties ? Q(t[d]) : se(t[d].default), v), {});
6
- return m.id = `${i}-${Date.now()}`, m;
5
+ const { properties: t, title: d, ignore: h } = e, y = h && Array.isArray(h), i = Object.keys(t).reduce((o, s) => ((!y || !h.find((k) => k == s)) && (o[s] = t[s].type === "object" && t[s].properties ? Q(t[s]) : se(t[s].default)), o), {});
6
+ return (!y || !h.find((o) => o == "id")) && (i.id = `${d}-${Date.now()}`), i;
7
7
  }
8
- function z(e, t = {}) {
9
- const i = K[e];
10
- if (i) {
11
- let m = Q(i);
12
- const v = ee[e];
13
- return m = v ? v({ getSchemaByType: z }, m, t) : m, m;
8
+ function z(e, t = {}, d) {
9
+ const h = K[e];
10
+ if (h) {
11
+ let y = Q(h);
12
+ const i = ee[e];
13
+ return y = i ? i({ getSchemaByType: z }, y, t, d) : y, y;
14
14
  }
15
15
  return null;
16
16
  }
17
17
  function ce(e, t) {
18
- const i = Q(t);
19
- return Object.keys(e).reduce((m, v) => (m[v] = e[v], m), i), i;
18
+ const d = Q(t);
19
+ return Object.keys(e).reduce((h, y) => (h[y] && typeof h[y] == "object" ? Object.assign(h[y], e[y]) : h[y] = e[y], h), d), d;
20
20
  }
21
21
  function le(e, t) {
22
- return Object.keys(e).filter((m) => e[m] != null).reduce((m, v) => {
23
- if (t.has(v)) {
24
- const d = t.get(v);
25
- if (typeof d == "string")
26
- m[d] = e[v];
22
+ return Object.keys(e).filter((h) => e[h] != null).reduce((h, y) => {
23
+ if (t.has(y)) {
24
+ const i = t.get(y);
25
+ if (typeof i == "string")
26
+ h[i] = e[y];
27
27
  else {
28
- const s = d(v, e[v], e);
29
- Object.assign(m, s);
28
+ const o = i(y, e[y], e);
29
+ Object.assign(h, o);
30
30
  }
31
31
  } else
32
- m[v] = e[v];
33
- return m;
32
+ h[y] = e[y];
33
+ return h;
34
34
  }, {});
35
35
  }
36
- function ue(e, t, i = /* @__PURE__ */ new Map()) {
37
- const m = ce(e, t);
38
- return le(m, i);
36
+ function ue(e, t, d = /* @__PURE__ */ new Map()) {
37
+ const h = ce(e, t);
38
+ return le(h, d);
39
39
  }
40
40
  function ie(e = {}) {
41
- function t(n, h, g, M) {
41
+ function t(n, m, g, M) {
42
42
  if (typeof g == "number")
43
43
  return M[n].length === g;
44
44
  if (typeof g == "object") {
45
- const l = Object.keys(g)[0], y = g[l];
45
+ const l = Object.keys(g)[0], v = g[l];
46
46
  if (l === "not")
47
- return Number(M[n].length) !== Number(y);
47
+ return Number(M[n].length) !== Number(v);
48
48
  if (l === "moreThan")
49
- return Number(M[n].length) >= Number(y);
49
+ return Number(M[n].length) >= Number(v);
50
50
  if (l === "lessThan")
51
- return Number(M[n].length) <= Number(y);
51
+ return Number(M[n].length) <= Number(v);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function i(n, h, g, M) {
55
+ function d(n, m, g, M) {
56
56
  return M[n] && M[n].propertyValue && String(M[n].propertyValue.value) === String(g);
57
57
  }
58
- const m = /* @__PURE__ */ new Map([
58
+ const h = /* @__PURE__ */ new Map([
59
59
  ["length", t],
60
- ["getProperty", i]
60
+ ["getProperty", d]
61
61
  ]);
62
- Object.keys(e).reduce((n, h) => (n.set(h, e[h]), n), m);
63
- function v(n, h) {
62
+ Object.keys(e).reduce((n, m) => (n.set(m, e[m]), n), h);
63
+ function y(n, m) {
64
64
  const g = n;
65
- return typeof h == "number" ? [{ target: g, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: g, operator: "getProperty", param: n, value: !!h }] : typeof h == "object" ? Object.keys(h).map((M) => {
65
+ return typeof m == "number" ? [{ target: g, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: g, operator: "getProperty", param: n, value: !!m }] : typeof m == "object" ? Object.keys(m).map((M) => {
66
66
  if (M === "length")
67
- return { target: g, operator: "length", param: null, value: h[M] };
68
- const l = M, y = h[M];
69
- return { target: g, operator: "getProperty", param: l, value: y };
67
+ return { target: g, operator: "length", param: null, value: m[M] };
68
+ const l = M, v = m[M];
69
+ return { target: g, operator: "getProperty", param: l, value: v };
70
70
  }) : [];
71
71
  }
72
- function d(n) {
72
+ function i(n) {
73
73
  return Object.keys(n).reduce((g, M) => {
74
- const l = v(M, n[M]);
74
+ const l = y(M, n[M]);
75
75
  return g.push(...l), g;
76
76
  }, []);
77
77
  }
78
- function s(n, h) {
79
- if (m.has(n.operator)) {
80
- const g = m.get(n.operator);
81
- return g && g(n.target, n.param, n.value, h) || !1;
78
+ function o(n, m) {
79
+ if (h.has(n.operator)) {
80
+ const g = h.get(n.operator);
81
+ return g && g(n.target, n.param, n.value, m) || !1;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function c(n, h) {
86
- return d(n).reduce((l, y) => l && s(y, h), !0);
85
+ function s(n, m) {
86
+ return i(n).reduce((l, v) => l && o(v, m), !0);
87
87
  }
88
- function b(n, h) {
89
- const g = Object.keys(n), M = g.includes("allOf"), l = g.includes("anyOf"), y = M || l, u = (y ? n[y ? M ? "allOf" : "anyOf" : "allOf"] : [n]).map((r) => c(r, h));
88
+ function k(n, m) {
89
+ const g = Object.keys(n), M = g.includes("allOf"), l = g.includes("anyOf"), v = M || l, u = (v ? n[v ? M ? "allOf" : "anyOf" : "allOf"] : [n]).map((r) => s(r, m));
90
90
  return M ? !u.includes(!1) : u.includes(!0);
91
91
  }
92
- return { parseValueSchema: b };
92
+ return { parseValueSchema: k };
93
93
  }
94
94
  const de = {}, ye = {};
95
95
  ie();
96
- function ve(e, t, i = /* @__PURE__ */ new Map(), m = (s, c, b) => c, v = {}, d = (s) => s) {
97
- return K[t.title] = t, ee[t.title] = m, de[t.title] = v, ye[t.title] = d, (s = {}) => {
98
- const c = ue(s, t, i), b = Object.keys(e).reduce((n, h) => (n[h] = e[h].default, n), {});
99
- return Object.assign(b, c);
96
+ function ve(e, t, d = /* @__PURE__ */ new Map(), h = (o, s, k) => s, y = {}, i = (o) => o) {
97
+ return K[t.title] = t, ee[t.title] = h, de[t.title] = y, ye[t.title] = i, (o = {}) => {
98
+ const s = ue(o, t, d), k = Object.keys(e).reduce((n, m) => (n[m] = e[m].default, n), {});
99
+ return Object.assign(k, s);
100
100
  };
101
101
  }
102
102
  function fe(e, t) {
@@ -105,7 +105,7 @@ function fe(e, t) {
105
105
  const he = /* @__PURE__ */ new Map([
106
106
  ["appearance", fe]
107
107
  ]);
108
- function me(e, t, i) {
108
+ function me(e, t, d) {
109
109
  return t;
110
110
  }
111
111
  const pe = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-design.gitee.io/calendar.schema.json", ge = "calendar", ke = "A Farris Input Component", De = "object", be = {
@@ -164,7 +164,7 @@ const pe = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-
164
164
  }
165
165
  }
166
166
  }
167
- }, We = {
167
+ }, Oe = {
168
168
  title: Ce,
169
169
  description: Ve,
170
170
  type: Pe,
@@ -172,9 +172,9 @@ const pe = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-
172
172
  }, X = {
173
173
  events: { Type: Array, default: [] },
174
174
  firstDayOfTheWeek: { type: String, default: "Sun." }
175
- }, ne = ve(X, Te, he, me, We), F = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
175
+ }, ne = ve(X, Te, he, me, Oe), F = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
176
176
  var E = /* @__PURE__ */ ((e) => (e[e.previous = 1] = "previous", e[e.current = 2] = "current", e[e.next = 3] = "next", e))(E || {});
177
- function L() {
177
+ function J() {
178
178
  function e() {
179
179
  return { year: 0, month: 0, day: 0 };
180
180
  }
@@ -189,9 +189,9 @@ function L() {
189
189
  0
190
190
  );
191
191
  }
192
- function i(n) {
193
- const h = /* @__PURE__ */ new Date();
194
- return n.year || (n.year = h.getFullYear()), n.month || (n.month = h.getMonth() + 1), n.day || (n.day = 1), new Date(
192
+ function d(n) {
193
+ const m = /* @__PURE__ */ new Date();
194
+ return n.year || (n.year = m.getFullYear()), n.month || (n.month = m.getMonth() + 1), n.day || (n.day = 1), new Date(
195
195
  n.year,
196
196
  n.month - 1,
197
197
  n.day,
@@ -201,7 +201,7 @@ function L() {
201
201
  0
202
202
  );
203
203
  }
204
- function m(n) {
204
+ function h(n) {
205
205
  return new Date(
206
206
  n.year || 1,
207
207
  (n.month || 1) - 1,
@@ -212,20 +212,20 @@ function L() {
212
212
  0
213
213
  ).getDay();
214
214
  }
215
- function v(n) {
215
+ function y(n) {
216
216
  return F.indexOf(n);
217
217
  }
218
- function d(n) {
218
+ function i(n) {
219
219
  return t(n).getTime();
220
220
  }
221
- function s(n) {
222
- return Math.round(d(n) / 1e3);
221
+ function o(n) {
222
+ return Math.round(i(n) / 1e3);
223
223
  }
224
- function c(n, h, g) {
225
- const M = d(h), l = d(g), y = d(n);
226
- return l - y > y - M ? h : g;
224
+ function s(n, m, g) {
225
+ const M = i(m), l = i(g), v = i(n);
226
+ return l - v > v - M ? m : g;
227
227
  }
228
- function b() {
228
+ function k() {
229
229
  const n = /* @__PURE__ */ new Date();
230
230
  return {
231
231
  year: n.getFullYear(),
@@ -236,79 +236,79 @@ function L() {
236
236
  second: n.getSeconds()
237
237
  };
238
238
  }
239
- return { emptyDate: e, getDate: t, getDate2: i, getDayNumber: m, getEpocTime: s, getNearDate: c, getWeekdayIndex: v, getTimeInMilliseconds: d, getToday: b };
239
+ return { emptyDate: e, getDate: t, getDate2: d, getDayNumber: h, getEpocTime: o, getNearDate: s, getWeekdayIndex: y, getTimeInMilliseconds: i, getToday: k };
240
240
  }
241
- function Oe() {
242
- function e(d, s) {
243
- return new Date(s, d, 0).getDate();
244
- }
245
- function t(d, s, c) {
246
- return new Date(d, s - 1, c, 0, 0, 0, 0);
247
- }
248
- function i(d, s) {
249
- const c = t(s, d, 1);
250
- return c.setMonth(c.getMonth() - 1), e(c.getMonth() + 1, c.getFullYear());
251
- }
252
- function m(d, s) {
253
- const c = {
254
- year: d === 12 ? s + 1 : s
255
- }, b = d === 12 ? 1 : d + 1;
256
- return c.month = b, c;
257
- }
258
- function v(d, s) {
259
- const c = {
260
- year: d === 1 ? s - 1 : s
261
- }, b = d === 1 ? 12 : d - 1;
262
- return c.month = b, c;
263
- }
264
- return { daysInMonth: e, daysInPreMonth: i, getNextMonth: m, getPreviousMonth: v };
241
+ function We() {
242
+ function e(i, o) {
243
+ return new Date(o, i, 0).getDate();
244
+ }
245
+ function t(i, o, s) {
246
+ return new Date(i, o - 1, s, 0, 0, 0, 0);
247
+ }
248
+ function d(i, o) {
249
+ const s = t(o, i, 1);
250
+ return s.setMonth(s.getMonth() - 1), e(s.getMonth() + 1, s.getFullYear());
251
+ }
252
+ function h(i, o) {
253
+ const s = {
254
+ year: i === 12 ? o + 1 : o
255
+ }, k = i === 12 ? 1 : i + 1;
256
+ return s.month = k, s;
257
+ }
258
+ function y(i, o) {
259
+ const s = {
260
+ year: i === 1 ? o - 1 : o
261
+ }, k = i === 1 ? 12 : i - 1;
262
+ return s.month = k, s;
263
+ }
264
+ return { daysInMonth: e, daysInPreMonth: d, getNextMonth: h, getPreviousMonth: y };
265
265
  }
266
266
  function te() {
267
- const { getToday: e, getDayNumber: t } = L(), { daysInMonth: i, daysInPreMonth: m, getNextMonth: v, getPreviousMonth: d } = Oe();
268
- function s(f) {
269
- const k = F.indexOf(f);
270
- return k > 0 ? 7 - k : 0;
267
+ const { getToday: e, getDayNumber: t } = J(), { daysInMonth: d, daysInPreMonth: h, getNextMonth: y, getPreviousMonth: i } = We();
268
+ function o(f) {
269
+ const D = F.indexOf(f);
270
+ return D > 0 ? 7 - D : 0;
271
271
  }
272
- function c(f) {
273
- const { day: k, month: u, year: a } = f;
274
- if (k === void 0 || u === void 0 || a === void 0)
272
+ function s(f) {
273
+ const { day: D, month: u, year: a } = f;
274
+ if (D === void 0 || u === void 0 || a === void 0)
275
275
  throw new Error("invalided date.");
276
- const r = k === 1, p = r ? m(u, a) : k - 1, D = r ? u - 1 : u, w = D < 1, T = w ? 12 : D;
276
+ const r = D === 1, p = r ? h(u, a) : D - 1, b = r ? u - 1 : u, w = b < 1, C = w ? 12 : b;
277
277
  return {
278
278
  year: w ? a - 1 : a,
279
- month: T,
279
+ month: C,
280
280
  day: p
281
281
  };
282
282
  }
283
- function b(f) {
284
- const { day: k, month: u, year: a } = f;
285
- if (k === void 0 || u === void 0 || a === void 0)
283
+ function k(f) {
284
+ const { day: D, month: u, year: a } = f;
285
+ if (D === void 0 || u === void 0 || a === void 0)
286
286
  throw new Error("invalided date.");
287
- const r = i(u, a), p = k === r, D = p ? 1 : k + 1, w = p ? u + 1 : u, T = w > 12, V = T ? 1 : w;
287
+ const r = d(u, a), p = D === r, b = p ? 1 : D + 1, w = p ? u + 1 : u, C = w > 12, V = C ? 1 : w;
288
288
  return {
289
- year: T ? a + 1 : a,
289
+ year: C ? a + 1 : a,
290
290
  month: V,
291
- day: D
291
+ day: b
292
292
  };
293
293
  }
294
294
  function n(f) {
295
- const k = d(f.month || 1, f.year || 1), u = i(k.month || 1, k.year || 1);
295
+ const D = i(f.month || 1, f.year || 1), u = d(D.month || 1, D.year || 1);
296
296
  return {
297
297
  day: (f.day || 1) <= u ? f.day : u,
298
- month: k.month,
299
- year: k.year
298
+ month: D.month,
299
+ year: D.year
300
300
  };
301
301
  }
302
- function h(f) {
303
- const k = v(f.month || 1, f.year || 1), u = i(k.month || 1, k.year || 1);
302
+ function m(f) {
303
+ const D = y(f.month || 1, f.year || 1), u = d(D.month || 1, D.year || 1);
304
304
  return {
305
305
  day: (f.day || 1) <= u ? f.day : u,
306
- month: k.month,
307
- year: k.year
306
+ month: D.month,
307
+ year: D.year
308
308
  };
309
309
  }
310
310
  function g(f) {
311
- const u = (f.day || 1) - 7, a = u < 1, r = a ? i(f.month || 1, f.year || 1) + u : u, p = a ? d(f.month || 1, f.year || 1) : f;
311
+ const u = (f.day || 1) - 7, a = u < 1, r = a ? d(f.month || 1, f.year || 1) + u : u, p = a ? i(f.month || 1, f.year || 1) : f;
312
312
  return {
313
313
  day: r,
314
314
  month: p.month,
@@ -316,103 +316,103 @@ function te() {
316
316
  };
317
317
  }
318
318
  function M(f) {
319
- const u = (f.day || 1) + 7, a = i(f.month || 1, f.year || 1), r = u > a, p = r ? u - a : u, D = r ? v(f.month || 1, f.year || 1) : f;
319
+ const u = (f.day || 1) + 7, a = d(f.month || 1, f.year || 1), r = u > a, p = r ? u - a : u, b = r ? y(f.month || 1, f.year || 1) : f;
320
320
  return {
321
321
  day: p,
322
- month: D.month,
323
- year: D.year
322
+ month: b.month,
323
+ year: b.year
324
324
  };
325
325
  }
326
- function l(f, k, u, a) {
327
- const r = { day: f, month: k, year: u }, D = s(a) === 0 ? 1 : 0, w = t(r) + D, T = e();
328
- let V = c(r);
329
- const S = [];
326
+ function l(f, D, u, a) {
327
+ const r = { day: f, month: D, year: u }, b = o(a) === 0 ? 1 : 0, w = t(r) + b, C = e();
328
+ let V = s(r);
329
+ const O = [];
330
330
  for (let j = w - 1; j >= 1; j--) {
331
- const R = V.month !== r.month ? E.previous : E.current, N = V.month === k && V.day === T.day && V.month === T.month && V.year === T.year;
332
- S.push({ date: V, monthTag: R, isCurrent: N }), j > 1 && (V = c(V));
331
+ const R = V.month !== r.month ? E.previous : E.current, N = V.month === D && V.day === C.day && V.month === C.month && V.year === C.year;
332
+ O.push({ date: V, monthTag: R, isCurrent: N }), j > 1 && (V = s(V));
333
333
  }
334
- let O = b(r);
334
+ let S = k(r);
335
335
  const A = [];
336
336
  for (let j = w + 1; j <= 7; j++) {
337
- const R = V.month !== r.month ? E.next : E.current, N = O.day === T.day && O.month === T.month && O.year === T.year;
338
- A.push({ date: O, monthTag: R, isCurrent: N }), j < 7 && (O = b(O));
337
+ const R = V.month !== r.month ? E.next : E.current, N = S.day === C.day && S.month === C.month && S.year === C.year;
338
+ A.push({ date: S, monthTag: R, isCurrent: N }), j < 7 && (S = k(S));
339
339
  }
340
- const P = f === T.day && k === T.month && u === T.year;
340
+ const P = f === C.day && D === C.month && u === C.year;
341
341
  return {
342
- days: [...S.reverse(), { date: r, monthTag: E.current, isCurrent: P }, ...A],
342
+ days: [...O.reverse(), { date: r, monthTag: E.current, isCurrent: P }, ...A],
343
343
  weekNumber: 0,
344
344
  year: u
345
345
  };
346
346
  }
347
- function y(f, k, u) {
348
- const a = [], r = i(f, k);
347
+ function v(f, D, u) {
348
+ const a = [], r = d(f, D);
349
349
  for (let p = 1; p <= r; p += 7) {
350
- const D = l(p, f, k, u);
351
- a.push(D);
350
+ const b = l(p, f, D, u);
351
+ a.push(b);
352
352
  }
353
353
  return a;
354
354
  }
355
355
  return {
356
- getMonthlyCalendar: y,
356
+ getMonthlyCalendar: v,
357
357
  getWeeklyCalendar: l,
358
- getPreviousDay: c,
359
- getNextDay: b,
358
+ getPreviousDay: s,
359
+ getNextDay: k,
360
360
  getDayInPreviousWeek: g,
361
361
  getDayInNextWeek: M,
362
362
  getDayInPreviousMonth: n,
363
- getDayInNextMonth: h
363
+ getDayInNextMonth: m
364
364
  };
365
365
  }
366
366
  function x() {
367
- const { getTimeInMilliseconds: e } = L();
367
+ const { getTimeInMilliseconds: e } = J();
368
368
  function t(l) {
369
369
  return l && l.year !== 0 && l.month !== 0 && l.day !== 0;
370
370
  }
371
- function i(l) {
371
+ function d(l) {
372
372
  return l && l.year !== 0 && l.month !== 0;
373
373
  }
374
- function m(l) {
374
+ function h(l) {
375
375
  return l && l.year !== 0;
376
376
  }
377
- function v(l, y) {
378
- return e(l) < e(y);
377
+ function y(l, v) {
378
+ return e(l) < e(v);
379
379
  }
380
- function d(l, y) {
381
- return e(l) <= e(y);
380
+ function i(l, v) {
381
+ return e(l) <= e(v);
382
382
  }
383
- function s(l, y) {
384
- return e(l) === e(y);
383
+ function o(l, v) {
384
+ return e(l) === e(v);
385
385
  }
386
- function c(l, y) {
387
- const f = e(y);
386
+ function s(l, v) {
387
+ const f = e(v);
388
388
  return e(l.from) === f || e(l.to) === f;
389
389
  }
390
- function b(l, y) {
391
- return !y || !t(y.to) || !t(y.from) ? !1 : d(y.from, l) && d(l, y.to);
390
+ function k(l, v) {
391
+ return !v || !t(v.to) || !t(v.from) ? !1 : i(v.from, l) && i(l, v.to);
392
392
  }
393
- function n(l, y) {
394
- return t(y) && e(l) >= e(y);
393
+ function n(l, v) {
394
+ return t(v) && e(l) >= e(v);
395
395
  }
396
- function h(l, y) {
397
- return t(y) && e(l) <= e(y);
396
+ function m(l, v) {
397
+ return t(v) && e(l) <= e(v);
398
398
  }
399
- function g(l, y) {
400
- return e({ year: l.year, month: l.month, day: l.day }) === e({ year: y.year, month: y.month, day: y.day });
399
+ function g(l, v) {
400
+ return e({ year: l.year, month: l.month, day: l.day }) === e({ year: v.year, month: v.month, day: v.day });
401
401
  }
402
- function M(l, y) {
403
- return e({ hour: l.hour, minute: l.minute, second: l.second }) === e({ hour: y.hour, minute: y.minute, second: y.second });
402
+ function M(l, v) {
403
+ return e({ hour: l.hour, minute: l.minute, second: l.second }) === e({ hour: v.hour, minute: v.minute, second: v.second });
404
404
  }
405
405
  return {
406
- isDateEarlier: v,
407
- equal: s,
408
- inPeriod: b,
409
- isPoint: c,
410
- equalOrEarlier: d,
406
+ isDateEarlier: y,
407
+ equal: o,
408
+ inPeriod: k,
409
+ isPoint: s,
410
+ equalOrEarlier: i,
411
411
  isInitializedDate: t,
412
- isInitializedMonth: i,
413
- isInitializedYear: m,
412
+ isInitializedMonth: d,
413
+ isInitializedYear: h,
414
414
  isMonthDisabledByDisableSince: n,
415
- isMonthDisabledByDisableUntil: h,
415
+ isMonthDisabledByDisableUntil: m,
416
416
  sameTime: M,
417
417
  sameDay: g
418
418
  };
@@ -441,69 +441,69 @@ const Z = {
441
441
  props: Se,
442
442
  emits: ["ViewChange", "Previous", "Next", "ResetToToday"],
443
443
  setup(e, t) {
444
- const i = C(e.title), m = C(e.dailyViewTitle), v = C(e.weeklyViewTitle), d = C(e.monthlyViewTitle), s = 2, c = 62, b = C(e.activeView), n = C("Today");
444
+ const d = T(e.title), h = T(e.dailyViewTitle), y = T(e.weeklyViewTitle), i = T(e.monthlyViewTitle), o = 2, s = 62, k = T(e.activeView), n = T("Today");
445
445
  $(() => e.title, () => {
446
- i.value = e.title;
446
+ d.value = e.title;
447
447
  });
448
- const h = W(() => ({
449
- top: `${s}px`,
450
- left: `${b.value * (s + 1) + (b.value - 1) * (c + 1)}px`
451
- })), g = W(() => b.value === 1 ? m.value : b.value === 2 ? v.value : d.value);
448
+ const m = W(() => ({
449
+ top: `${o}px`,
450
+ left: `${k.value * (o + 1) + (k.value - 1) * (s + 1)}px`
451
+ })), g = W(() => k.value === 1 ? h.value : k.value === 2 ? y.value : i.value);
452
452
  function M() {
453
- b.value = 1, t.emit("ViewChange", 1);
453
+ k.value = 1, t.emit("ViewChange", 1);
454
454
  }
455
455
  function l() {
456
- b.value = 2, t.emit("ViewChange", 2);
456
+ k.value = 2, t.emit("ViewChange", 2);
457
457
  }
458
- function y() {
459
- b.value = 3, t.emit("ViewChange", 3);
458
+ function v() {
459
+ k.value = 3, t.emit("ViewChange", 3);
460
460
  }
461
461
  function f() {
462
- t.emit("Previous", b.value);
462
+ t.emit("Previous", k.value);
463
463
  }
464
- function k() {
465
- t.emit("Next", b.value);
464
+ function D() {
465
+ t.emit("Next", k.value);
466
466
  }
467
467
  function u() {
468
468
  t.emit("ResetToToday");
469
469
  }
470
- return () => o("div", {
470
+ return () => c("div", {
471
471
  class: "f-calendar-header"
472
- }, [o("div", {
472
+ }, [c("div", {
473
473
  class: "f-calendar-title"
474
- }, [i.value]), o("div", {
474
+ }, [d.value]), c("div", {
475
475
  class: "f-calendar-navigator"
476
- }, [o("div", {
476
+ }, [c("div", {
477
477
  class: "f-calendar-navigator-today btn btn-default",
478
478
  onClick: () => u()
479
- }, [n.value]), o("div", {
479
+ }, [n.value]), c("div", {
480
480
  class: "f-calendar-navigator-button-group"
481
- }, [o("div", {
481
+ }, [c("div", {
482
482
  class: "f-calendar-navigator-previous btn btn-default",
483
483
  onClick: () => f()
484
- }, [o("i", {
484
+ }, [c("i", {
485
485
  class: "f-icon f-icon-arrow-chevron-left"
486
- }, null)]), o("div", {
486
+ }, null)]), c("div", {
487
487
  class: "f-calendar-navigator-next btn btn-default",
488
- onClick: () => k()
489
- }, [o("i", {
488
+ onClick: () => D()
489
+ }, [c("i", {
490
490
  class: "f-icon f-icon-arrow-chevron-right"
491
- }, null)])])]), o("div", {
491
+ }, null)])])]), c("div", {
492
492
  class: "f-calendar-view-switch"
493
- }, [o("div", {
493
+ }, [c("div", {
494
494
  class: "f-calendar-view-switch-panel"
495
- }, [o("span", {
495
+ }, [c("span", {
496
496
  class: "f-calendar-view-switch-daily",
497
497
  onClick: (a) => M()
498
- }, [m.value]), o("span", {
498
+ }, [h.value]), c("span", {
499
499
  class: "f-calendar-view-switch-weekly",
500
500
  onClick: (a) => l()
501
- }, [v.value]), o("span", {
501
+ }, [y.value]), c("span", {
502
502
  class: "f-calendar-view-switch-monthly",
503
- onClick: (a) => y()
504
- }, [d.value])]), o("div", {
503
+ onClick: (a) => v()
504
+ }, [i.value])]), c("div", {
505
505
  class: "f-calendar-view-switch-active-view",
506
- style: h.value
506
+ style: m.value
507
507
  }, [g.value])])]);
508
508
  }
509
509
  }), Ae = {
@@ -517,8 +517,8 @@ const Z = {
517
517
  var q = /* @__PURE__ */ ((e) => (e[e.enter = 13] = "enter", e[e.esc = 27] = "esc", e[e.space = 32] = "space", e[e.leftArrow = 37] = "leftArrow", e[e.upArrow = 38] = "upArrow", e[e.rightArrow = 39] = "rightArrow", e[e.downArrow = 40] = "downArrow", e[e.tab = 9] = "tab", e[e.shift = 16] = "shift", e))(q || {});
518
518
  function je() {
519
519
  function e(t) {
520
- const i = t.key || t.keyCode;
521
- return i === "Enter" || i === 13 ? 13 : i === "Escape" || i === 27 ? 27 : i === " " || i === 32 ? 32 : i === "ArrowLeft" || i === 37 ? 37 : i === "ArrowUp" || i === 38 ? 38 : i === "ArrowRight" || i === 39 ? 39 : i === "ArrowDown" || i === 40 ? 40 : i === "Tab" || i === 9 ? 9 : i === "Shift" || i === 16 ? 16 : -1;
520
+ const d = t.key || t.keyCode;
521
+ return d === "Enter" || d === 13 ? 13 : d === "Escape" || d === 27 ? 27 : d === " " || d === 32 ? 32 : d === "ArrowLeft" || d === 37 ? 37 : d === "ArrowUp" || d === 38 ? 38 : d === "ArrowRight" || d === 39 ? 39 : d === "ArrowDown" || d === 40 ? 40 : d === "Tab" || d === 9 ? 9 : d === "Shift" || d === 16 ? 16 : -1;
522
522
  }
523
523
  return { getKeyCodeFromEvent: e };
524
524
  }
@@ -527,42 +527,42 @@ const _ = /* @__PURE__ */ B({
527
527
  props: Ae,
528
528
  emits: ["click", "keyDown"],
529
529
  setup(e, t) {
530
- const i = C(e.daysInWeek), m = C(e.enableKeyboadNavigate), v = C(e.enableMarkCurrent), d = C(e.activeDay), s = C(e.events), {
531
- equal: c,
532
- sameDay: b
530
+ const d = T(e.daysInWeek), h = T(e.enableKeyboadNavigate), y = T(e.enableMarkCurrent), i = T(e.activeDay), o = T(e.events), {
531
+ equal: s,
532
+ sameDay: k
533
533
  } = x(), {
534
534
  getKeyCodeFromEvent: n
535
535
  } = je();
536
- function h(u, a) {
536
+ function m(u, a) {
537
537
  return u.forEach((r) => {
538
538
  r.days.forEach((p) => {
539
- const D = a.filter((w) => b(w.starts, p.date));
540
- D && D.length && (p.events = [...D]);
539
+ const b = a.filter((w) => k(w.starts, p.date));
540
+ b && b.length && (p.events = [...b]);
541
541
  });
542
542
  }), u;
543
543
  }
544
- const g = C(h(e.dates, s.value));
544
+ const g = T(m(e.dates, o.value));
545
545
  $(() => e.dates, () => {
546
- g.value = h(e.dates, s.value);
546
+ g.value = m(e.dates, o.value);
547
547
  }), $(() => e.activeDay, () => {
548
- d.value = e.activeDay;
548
+ i.value = e.activeDay;
549
549
  }), $(() => e.events, () => {
550
- s.value = e.events;
550
+ o.value = e.events;
551
551
  });
552
552
  function M(u) {
553
- return !!d.value && c({
554
- year: d.value.year,
555
- month: d.value.month,
556
- day: d.value.day
553
+ return !!i.value && s({
554
+ year: i.value.year,
555
+ month: i.value.month,
556
+ day: i.value.day
557
557
  }, u);
558
558
  }
559
559
  const l = (u, a, r) => {
560
- const D = {
560
+ const b = {
561
561
  "f-datepicker-no-currmonth": u.monthTag === E.previous || u.monthTag === E.next
562
562
  }, w = `d_${a}_${r}`;
563
- return D[w] = !0, D;
564
- }, y = (u) => {
565
- const a = u.monthTag === E.current && M(u.date), r = u.isCurrent && v.value;
563
+ return b[w] = !0, b;
564
+ }, v = (u) => {
565
+ const a = u.monthTag === E.current && M(u.date), r = u.isCurrent && y.value;
566
566
  return {
567
567
  "f-calendar-month-view-date": !0,
568
568
  "f-calendar-month-view-selected": a,
@@ -572,33 +572,33 @@ const _ = /* @__PURE__ */ B({
572
572
  function f(u, a) {
573
573
  u.stopPropagation(), t.emit("click", a.date);
574
574
  }
575
- function k(u, a) {
575
+ function D(u, a) {
576
576
  const r = n(u);
577
- r !== q.tab && (u.preventDefault(), r === q.enter || r === q.space ? f(u, a) : m.value && t.emit("keyDown", a.date));
577
+ r !== q.tab && (u.preventDefault(), r === q.enter || r === q.space ? f(u, a) : h.value && t.emit("keyDown", a.date));
578
578
  }
579
- return () => o("div", {
579
+ return () => c("div", {
580
580
  class: "f-calendar-month-view"
581
- }, [o("table", {
581
+ }, [c("table", {
582
582
  class: "f-datepicker-table",
583
583
  cellpadding: "0"
584
- }, [o("thead", null, [o("tr", null, [i.value && i.value.map((u) => o("th", {
584
+ }, [c("thead", null, [c("tr", null, [d.value && d.value.map((u) => c("th", {
585
585
  scope: "col",
586
586
  style: "padding: 4px 4px 8px"
587
- }, [u]))])]), o("tbody", null, [g.value && g.value.map((u, a) => o("tr", null, [u.days && u.days.map((r, p) => o("td", {
587
+ }, [u]))])]), c("tbody", null, [g.value && g.value.map((u, a) => c("tr", null, [u.days && u.days.map((r, p) => c("td", {
588
588
  id: `d_${a}_${p}`,
589
589
  tabindex: "0",
590
590
  class: l(r, a, p),
591
- onClick: (D) => f(D, r),
592
- onKeydown: (D) => k(D, r)
593
- }, [o("div", {
591
+ onClick: (b) => f(b, r),
592
+ onKeydown: (b) => D(b, r)
593
+ }, [c("div", {
594
594
  class: "f-calendar-month-view-title"
595
- }, [o("div", {
596
- class: y(r)
597
- }, [r.date.day]), o("div", {
595
+ }, [c("div", {
596
+ class: v(r)
597
+ }, [r.date.day]), c("div", {
598
598
  class: "f-calendar-month-view-date-month"
599
- }, [r.date.day === 1 ? Z[r.date.month || 1] : ""])]), r.events && r.events.length && r.events.map((D) => o("div", {
599
+ }, [r.date.day === 1 ? Z[r.date.month || 1] : ""])]), r.events && r.events.length && r.events.map((b) => c("div", {
600
600
  class: "f-calendar-month-view-event-item"
601
- }, [D.title]))]))]))])])]);
601
+ }, [b.title]))]))]))])])]);
602
602
  }
603
603
  }), Ee = {
604
604
  daysInWeek: { Type: Array, default: F },
@@ -610,87 +610,87 @@ const _ = /* @__PURE__ */ B({
610
610
  props: Ee,
611
611
  emits: [],
612
612
  setup(e) {
613
- const t = C(), i = C(), m = C(e.daysInWeek), v = C(e.week), d = C(e.enableMarkCurrent), s = C(e.events), c = C([]), {
614
- equal: b
613
+ const t = T(), d = T(), h = T(e.daysInWeek), y = T(e.week), i = T(e.enableMarkCurrent), o = T(e.events), s = T([]), {
614
+ equal: k
615
615
  } = x();
616
616
  function n(a) {
617
- return v.value.days.map((p) => {
618
- const D = {
617
+ return y.value.days.map((p) => {
618
+ const b = {
619
619
  year: p.date.year,
620
620
  month: p.date.month,
621
621
  day: p.date.day,
622
622
  hour: a.hour,
623
623
  minute: a.minute,
624
624
  second: a.second
625
- }, w = s.value.filter((T) => b(T.starts, D));
625
+ }, w = o.value.filter((C) => k(C.starts, b));
626
626
  return {
627
- day: D,
627
+ day: b,
628
628
  events: w
629
629
  };
630
630
  });
631
631
  }
632
- function h() {
632
+ function m() {
633
633
  const a = [];
634
634
  for (let r = 0; r < 24; r++) {
635
635
  const p = {
636
636
  hour: r,
637
637
  minute: 0,
638
638
  second: 0
639
- }, D = {
639
+ }, b = {
640
640
  hour: r,
641
641
  minute: 30,
642
642
  second: 0
643
- }, w = n(p), T = n(D);
643
+ }, w = n(p), C = n(b);
644
644
  a.push({
645
645
  time: p,
646
646
  events: w,
647
647
  title: r > 0 ? `${r}:00` : "",
648
648
  part: "upper"
649
649
  }), a.push({
650
- time: D,
651
- events: T,
650
+ time: b,
651
+ events: C,
652
652
  title: `${r}:30`,
653
653
  part: "lower"
654
654
  });
655
655
  }
656
- c.value = a;
656
+ s.value = a;
657
657
  }
658
- h(), $(() => e.week, () => {
659
- v.value = e.week, h();
658
+ m(), $(() => e.week, () => {
659
+ y.value = e.week, m();
660
660
  }), $(() => e.events, () => {
661
- s.value = e.events, h();
661
+ o.value = e.events, m();
662
662
  });
663
663
  const g = (a) => ({
664
664
  "f-calendar-week-view-date": !0,
665
- "f-calendar-week-view-current": a.isCurrent && d.value
665
+ "f-calendar-week-view-current": a.isCurrent && i.value
666
666
  });
667
667
  function M() {
668
- return o("div", {
668
+ return c("div", {
669
669
  class: "f-calendar-week-view-header"
670
- }, [o("div", {
670
+ }, [c("div", {
671
671
  class: "f-calendar-week-view-header-corner"
672
- }, null), o("div", {
672
+ }, null), c("div", {
673
673
  class: "f-calendar-week-view-header-primary"
674
- }, [o("div", {
674
+ }, [c("div", {
675
675
  class: "f-calendar-week-view-header-columns"
676
- }, [m.value.map((a, r) => o("div", {
676
+ }, [h.value.map((a, r) => c("div", {
677
677
  class: "f-calendar-week-view-header-cell"
678
- }, [o("div", {
679
- class: g(v.value.days[r])
680
- }, [v.value.days[r].date.day]), o("span", null, [a])]))])])]);
678
+ }, [c("div", {
679
+ class: g(y.value.days[r])
680
+ }, [y.value.days[r].date.day]), c("span", null, [a])]))])])]);
681
681
  }
682
682
  function l() {
683
- return o("div", {
683
+ return c("div", {
684
684
  class: "f-calendar-week-view-content-side"
685
- }, [o("div", {
685
+ }, [c("div", {
686
686
  class: "f-calendar-side"
687
- }, [c.value.map((a) => o("div", {
687
+ }, [s.value.map((a) => c("div", {
688
688
  class: "f-calendar-side-row"
689
- }, [o("div", {
689
+ }, [c("div", {
690
690
  class: "f-calendar-side-row-number"
691
691
  }, [a.part === "upper" ? a.title : ""])]))])]);
692
692
  }
693
- function y(a) {
693
+ function v(a) {
694
694
  return {
695
695
  "f-calendar-week-view-item": !0,
696
696
  "f-calendar-week-view-item-upper": a.part === "upper",
@@ -703,29 +703,29 @@ const _ = /* @__PURE__ */ B({
703
703
  height: `${44 * ((a.ends.hour || 0) + (a.ends.minute || 0) / 60 - V) - 2 - 2 - 1 - 1}px`
704
704
  };
705
705
  }
706
- function k() {
707
- return c.value.map((a) => o("div", {
708
- class: y(a)
709
- }, [a.events.map((r) => o("div", {
706
+ function D() {
707
+ return s.value.map((a) => c("div", {
708
+ class: v(a)
709
+ }, [a.events.map((r) => c("div", {
710
710
  class: "f-calendar-week-view-item-cell"
711
- }, [r.events.length > 0 && r.events.map((p) => o("div", {
711
+ }, [r.events.length > 0 && r.events.map((p) => c("div", {
712
712
  class: "f-calendar-event",
713
713
  style: f(p)
714
714
  }, [p.title]))]))]));
715
715
  }
716
716
  function u() {
717
- return o("div", {
718
- ref: i,
717
+ return c("div", {
718
+ ref: d,
719
719
  class: "f-calendar-content-primary"
720
- }, [o("div", {
720
+ }, [c("div", {
721
721
  class: "f-calendar-content-data"
722
- }, [k()])]);
722
+ }, [D()])]);
723
723
  }
724
724
  return U(() => {
725
725
  t.value && t.value.scrollTo(0, 250);
726
- }), () => o("div", {
726
+ }), () => c("div", {
727
727
  class: "f-calendar-week-view"
728
- }, [M(), o("div", {
728
+ }, [M(), c("div", {
729
729
  class: "f-calendar-week-view-content",
730
730
  ref: t
731
731
  }, [l(), u()])]);
@@ -735,90 +735,90 @@ const _ = /* @__PURE__ */ B({
735
735
  dayInWeek: { Type: String, default: "" },
736
736
  enableMarkCurrent: { Type: Boolean, default: !0 },
737
737
  events: { Type: Array, default: [] }
738
- }, J = /* @__PURE__ */ B({
738
+ }, L = /* @__PURE__ */ B({
739
739
  name: "FCalendarDayView",
740
740
  props: $e,
741
741
  emits: [],
742
742
  setup(e) {
743
- const t = C(), i = C(), m = C(e.dayInWeek), v = C(e.day), d = C(e.enableMarkCurrent), s = C(e.events), c = C([]), {
744
- equal: b
743
+ const t = T(), d = T(), h = T(e.dayInWeek), y = T(e.day), i = T(e.enableMarkCurrent), o = T(e.events), s = T([]), {
744
+ equal: k
745
745
  } = x();
746
746
  function n(a) {
747
747
  const r = {
748
- year: v.value.date.year,
749
- month: v.value.date.month,
750
- day: v.value.date.day,
748
+ year: y.value.date.year,
749
+ month: y.value.date.month,
750
+ day: y.value.date.day,
751
751
  hour: a.hour,
752
752
  minute: a.minute,
753
753
  second: a.second
754
- }, p = s.value.filter((D) => b(D.starts, r));
754
+ }, p = o.value.filter((b) => k(b.starts, r));
755
755
  return [{
756
756
  day: r,
757
757
  events: p
758
758
  }];
759
759
  }
760
- function h() {
760
+ function m() {
761
761
  const a = [];
762
762
  for (let r = 0; r < 24; r++) {
763
763
  const p = {
764
764
  hour: r,
765
765
  minute: 0,
766
766
  second: 0
767
- }, D = {
767
+ }, b = {
768
768
  hour: r,
769
769
  minute: 30,
770
770
  second: 0
771
- }, w = n(p), T = n(D);
771
+ }, w = n(p), C = n(b);
772
772
  a.push({
773
773
  time: p,
774
774
  events: w,
775
775
  title: r > 0 ? `${r}:00` : "",
776
776
  part: "upper"
777
777
  }), a.push({
778
- time: D,
779
- events: T,
778
+ time: b,
779
+ events: C,
780
780
  title: `${r}:30`,
781
781
  part: "lower"
782
782
  });
783
783
  }
784
- c.value = a;
784
+ s.value = a;
785
785
  }
786
- h(), $(() => e.day, () => {
787
- v.value = e.day, h();
786
+ m(), $(() => e.day, () => {
787
+ y.value = e.day, m();
788
788
  }), $(() => e.events, () => {
789
- s.value = e.events, h();
789
+ o.value = e.events, m();
790
790
  });
791
791
  const g = (a) => ({
792
792
  "f-calendar-day-view-date": !0,
793
- "f-calendar-day-view-current": a.isCurrent && d.value
793
+ "f-calendar-day-view-current": a.isCurrent && i.value
794
794
  });
795
795
  function M() {
796
- return o("div", {
796
+ return c("div", {
797
797
  class: "f-calendar-day-view-header"
798
- }, [o("div", {
798
+ }, [c("div", {
799
799
  class: "f-calendar-day-view-header-corner"
800
- }, null), o("div", {
800
+ }, null), c("div", {
801
801
  class: "f-calendar-day-view-header-primary"
802
- }, [o("div", {
802
+ }, [c("div", {
803
803
  class: "f-calendar-day-view-header-columns"
804
- }, [o("div", {
804
+ }, [c("div", {
805
805
  class: "f-calendar-day-view-header-cell"
806
- }, [o("div", {
807
- class: g(v.value)
808
- }, [v.value.date.day]), o("span", null, [m.value])])])])]);
806
+ }, [c("div", {
807
+ class: g(y.value)
808
+ }, [y.value.date.day]), c("span", null, [h.value])])])])]);
809
809
  }
810
810
  function l() {
811
- return o("div", {
811
+ return c("div", {
812
812
  class: "f-calendar-day-view-content-side"
813
- }, [o("div", {
813
+ }, [c("div", {
814
814
  class: "f-calendar-side"
815
- }, [c.value.map((a) => o("div", {
815
+ }, [s.value.map((a) => c("div", {
816
816
  class: "f-calendar-side-row"
817
- }, [o("div", {
817
+ }, [c("div", {
818
818
  class: "f-calendar-side-row-number"
819
819
  }, [a.part === "upper" ? a.title : ""])]))])]);
820
820
  }
821
- function y(a) {
821
+ function v(a) {
822
822
  return {
823
823
  "f-calendar-day-view-item": !0,
824
824
  "f-calendar-day-view-item-upper": a.part === "upper",
@@ -831,29 +831,29 @@ const _ = /* @__PURE__ */ B({
831
831
  height: `${44 * ((a.ends.hour || 0) + (a.ends.minute || 0) / 60 - V) - 2 - 2 - 1 - 1}px`
832
832
  };
833
833
  }
834
- function k() {
835
- return c.value.map((a) => o("div", {
836
- class: y(a)
837
- }, [a.events.map((r) => o("div", {
834
+ function D() {
835
+ return s.value.map((a) => c("div", {
836
+ class: v(a)
837
+ }, [a.events.map((r) => c("div", {
838
838
  class: "f-calendar-day-view-item-cell"
839
- }, [r.events.length > 0 && r.events.map((p) => o("div", {
839
+ }, [r.events.length > 0 && r.events.map((p) => c("div", {
840
840
  class: "f-calendar-event",
841
841
  style: f(p)
842
842
  }, [p.title]))]))]));
843
843
  }
844
844
  function u() {
845
- return o("div", {
846
- ref: i,
845
+ return c("div", {
846
+ ref: d,
847
847
  class: "f-calendar-content-primary"
848
- }, [o("div", {
848
+ }, [c("div", {
849
849
  class: "f-calendar-content-data"
850
- }, [k()])]);
850
+ }, [D()])]);
851
851
  }
852
852
  return U(() => {
853
853
  t.value && t.value.scrollTo(0, 250);
854
- }), () => o("div", {
854
+ }), () => c("div", {
855
855
  class: "f-calendar-day-view"
856
- }, [M(), o("div", {
856
+ }, [M(), c("div", {
857
857
  class: "f-calendar-day-view-content",
858
858
  ref: t
859
859
  }, [l(), u()])]);
@@ -866,78 +866,78 @@ const _ = /* @__PURE__ */ B({
866
866
  const {
867
867
  sameDay: t
868
868
  } = x(), {
869
- getToday: i
870
- } = L(), m = C(e.firstDayOfTheWeek), v = C(e.events), d = i(), s = C({
871
- year: d.year || 1,
872
- month: d.month || 1,
873
- day: d.day || 1
874
- }), c = C(3), {
875
- getMonthlyCalendar: b,
869
+ getToday: d
870
+ } = J(), h = T(e.firstDayOfTheWeek), y = T(e.events), i = d(), o = T({
871
+ year: i.year || 1,
872
+ month: i.month || 1,
873
+ day: i.day || 1
874
+ }), s = T(3), {
875
+ getMonthlyCalendar: k,
876
876
  getWeeklyCalendar: n,
877
- getPreviousDay: h,
877
+ getPreviousDay: m,
878
878
  getNextDay: g,
879
879
  getDayInPreviousWeek: M,
880
880
  getDayInNextWeek: l,
881
- getDayInPreviousMonth: y,
881
+ getDayInPreviousMonth: v,
882
882
  getDayInNextMonth: f
883
- } = te(), k = W(() => `${Z[s.value.month || 1]} ${s.value.year}`), u = W(() => b(s.value.month || 1, s.value.year || 1, m.value)), a = W(() => n(s.value.day || 1, s.value.month || 1, s.value.year || 1, m.value)), r = W(() => a.value.days.find((P) => t(P.date, s.value)) || a.value.days[1]), p = W(() => {
884
- const P = a.value.days.findIndex((j) => t(j.date, s.value)), H = P > -1 ? P : 1;
883
+ } = te(), D = W(() => `${Z[o.value.month || 1]} ${o.value.year}`), u = W(() => k(o.value.month || 1, o.value.year || 1, h.value)), a = W(() => n(o.value.day || 1, o.value.month || 1, o.value.year || 1, h.value)), r = W(() => a.value.days.find((P) => t(P.date, o.value)) || a.value.days[1]), p = W(() => {
884
+ const P = a.value.days.findIndex((j) => t(j.date, o.value)), H = P > -1 ? P : 1;
885
885
  return F[H];
886
- }), D = W(() => c.value === 3), w = W(() => c.value === 2), T = W(() => c.value === 1);
886
+ }), b = W(() => s.value === 3), w = W(() => s.value === 2), C = W(() => s.value === 1);
887
887
  function V(P) {
888
- c.value = P;
889
- }
890
- function S(P) {
891
- P === 1 && (s.value = h(s.value)), P === 2 && (s.value = M(s.value)), P === 3 && (s.value = y(s.value));
888
+ s.value = P;
892
889
  }
893
890
  function O(P) {
894
- P === 1 && (s.value = g(s.value)), P === 2 && (s.value = l(s.value)), P === 3 && (s.value = f(s.value));
891
+ P === 1 && (o.value = m(o.value)), P === 2 && (o.value = M(o.value)), P === 3 && (o.value = v(o.value));
892
+ }
893
+ function S(P) {
894
+ P === 1 && (o.value = g(o.value)), P === 2 && (o.value = l(o.value)), P === 3 && (o.value = f(o.value));
895
895
  }
896
896
  function A() {
897
- s.value = {
898
- year: d.year || 1,
899
- month: d.month || 1,
900
- day: d.day || 1
897
+ o.value = {
898
+ year: i.year || 1,
899
+ month: i.month || 1,
900
+ day: i.day || 1
901
901
  };
902
902
  }
903
- return () => o("div", {
903
+ return () => c("div", {
904
904
  class: "f-calendar"
905
- }, [o(G, {
906
- activeView: c.value,
907
- title: k.value,
905
+ }, [c(G, {
906
+ activeView: s.value,
907
+ title: D.value,
908
908
  onViewChange: (P) => V(P),
909
- onPrevious: (P) => S(P),
910
- onNext: (P) => O(P),
909
+ onPrevious: (P) => O(P),
910
+ onNext: (P) => S(P),
911
911
  onResetToToday: () => A()
912
- }, null), o("div", null, [T.value && o(J, {
912
+ }, null), c("div", null, [C.value && c(L, {
913
913
  day: r.value,
914
914
  dayInWeek: p.value,
915
- events: v.value
916
- }, null), w.value && o(Y, {
915
+ events: y.value
916
+ }, null), w.value && c(Y, {
917
917
  week: a.value,
918
- events: v.value
919
- }, null), D.value && o(_, {
920
- activeDay: s.value,
918
+ events: y.value
919
+ }, null), b.value && c(_, {
920
+ activeDay: o.value,
921
921
  dates: u.value,
922
- events: v.value
922
+ events: y.value
923
923
  }, null)])]);
924
924
  }
925
925
  });
926
- function Ie(e, t, i) {
927
- var D;
928
- function m() {
926
+ function Ie(e, t, d) {
927
+ var b;
928
+ function h() {
929
929
  }
930
- const v = "", d = "", s = C();
931
- function c() {
930
+ const y = "", i = "", o = T();
931
+ function s() {
932
932
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
933
933
  }
934
- function b() {
934
+ function k() {
935
935
  return !1;
936
936
  }
937
937
  function n() {
938
938
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
939
939
  }
940
- function h() {
940
+ function m() {
941
941
  return (t == null ? void 0 : t.schema.componentType) === "frame";
942
942
  }
943
943
  function g(w) {
@@ -945,33 +945,33 @@ function Ie(e, t, i) {
945
945
  return null;
946
946
  if (w.value.schema && w.value.schema.type === "component")
947
947
  return w.value;
948
- const T = C(w == null ? void 0 : w.value.parent), V = g(T);
948
+ const C = T(w == null ? void 0 : w.value.parent), V = g(C);
949
949
  return V || null;
950
950
  }
951
951
  function M(w = t) {
952
- const { componentInstance: T, designerItemElementRef: V } = w;
953
- return !T || !T.value ? null : T.value.canMove ? V : M(w.parent);
952
+ const { componentInstance: C, designerItemElementRef: V } = w;
953
+ return !C || !C.value ? null : C.value.canMove ? V : M(w.parent);
954
954
  }
955
955
  function l(w) {
956
- return !!i;
956
+ return !!d;
957
957
  }
958
- function y() {
958
+ function v() {
959
959
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
960
960
  }
961
961
  function f() {
962
962
  }
963
- function k(w, T) {
963
+ function D(w, C) {
964
964
  }
965
- function u(w) {
966
- const { componentType: T } = w;
967
- let V = z(T, w);
968
- const S = T.toLowerCase().replace("-", "_");
969
- return V && !V.id && V.type === T && (V.id = `${S}_${Math.random().toString().slice(2, 6)}`), V;
965
+ function u(w, C) {
966
+ const { componentType: V } = w;
967
+ let O = z(V, w, C);
968
+ const S = V.toLowerCase().replace("-", "_");
969
+ return O && !O.id && O.type === V && (O.id = `${S}_${Math.random().toString().slice(2, 6)}`), O;
970
970
  }
971
- function a(w, T) {
972
- const V = String(w.getAttribute("data-controltype")), S = w.getAttribute("data-feature"), O = S ? JSON.parse(S) : {};
973
- O.parentComponentInstance = s.value;
974
- let A = z(V, O);
971
+ function a(w, C) {
972
+ const V = String(w.getAttribute("data-controltype")), O = w.getAttribute("data-feature"), S = O ? JSON.parse(O) : {};
973
+ S.parentComponentInstance = o.value;
974
+ let A = z(V, S);
975
975
  const P = V.toLowerCase().replace("-", "_");
976
976
  return A && !A.id && A.type === V && (A.id = `${P}_${Math.random().toString().slice(2, 6)}`), A;
977
977
  }
@@ -979,31 +979,31 @@ function Ie(e, t, i) {
979
979
  }
980
980
  function p(...w) {
981
981
  }
982
- return s.value = {
983
- canMove: c(),
984
- canSelectParent: b(),
982
+ return o.value = {
983
+ canMove: s(),
984
+ canSelectParent: k(),
985
985
  canDelete: n(),
986
- canNested: !h(),
986
+ canNested: !m(),
987
987
  contents: t == null ? void 0 : t.schema.contents,
988
988
  elementRef: e,
989
- parent: (D = t == null ? void 0 : t.parent) == null ? void 0 : D.componentInstance,
989
+ parent: (b = t == null ? void 0 : t.parent) == null ? void 0 : b.componentInstance,
990
990
  schema: t == null ? void 0 : t.schema,
991
- styles: v,
992
- designerClass: d,
991
+ styles: y,
992
+ designerClass: i,
993
993
  canAccepts: l,
994
994
  getBelongedComponentInstance: g,
995
995
  getDraggableDesignItemElement: M,
996
- getDraggingDisplayText: y,
996
+ getDraggingDisplayText: v,
997
997
  getPropConfig: p,
998
998
  getDragScopeElement: f,
999
- onAcceptMovedChildElement: k,
999
+ onAcceptMovedChildElement: D,
1000
1000
  onAcceptNewChildElement: a,
1001
1001
  onChildElementMovedOut: r,
1002
1002
  addNewChildComponentSchema: u,
1003
- updateDragAndDropRules: m,
1004
- triggerBelongedComponentToMoveWhenMoved: C(!1),
1005
- triggerBelongedComponentToDeleteWhenDeleted: C(!1)
1006
- }, s;
1003
+ updateDragAndDropRules: h,
1004
+ triggerBelongedComponentToMoveWhenMoved: T(!1),
1005
+ triggerBelongedComponentToDeleteWhenDeleted: T(!1)
1006
+ }, o;
1007
1007
  }
1008
1008
  const Be = /* @__PURE__ */ B({
1009
1009
  name: "FCalendarDesign",
@@ -1011,82 +1011,82 @@ const Be = /* @__PURE__ */ B({
1011
1011
  emits: [],
1012
1012
  setup(e, t) {
1013
1013
  const {
1014
- sameDay: i
1014
+ sameDay: d
1015
1015
  } = x(), {
1016
- getToday: m
1017
- } = L(), v = C(e.firstDayOfTheWeek), d = C(e.events), s = m(), c = C({
1018
- year: s.year || 1,
1019
- month: s.month || 1,
1020
- day: s.day || 1
1021
- }), b = C(3), n = C(), h = oe("design-item-context"), g = Ie(n, h);
1016
+ getToday: h
1017
+ } = J(), y = T(e.firstDayOfTheWeek), i = T(e.events), o = h(), s = T({
1018
+ year: o.year || 1,
1019
+ month: o.month || 1,
1020
+ day: o.day || 1
1021
+ }), k = T(3), n = T(), m = oe("design-item-context"), g = Ie(n, m);
1022
1022
  U(() => {
1023
1023
  n.value.componentInstance = g;
1024
1024
  }), t.expose(g.value);
1025
1025
  const {
1026
1026
  getMonthlyCalendar: M,
1027
1027
  getWeeklyCalendar: l,
1028
- getPreviousDay: y,
1028
+ getPreviousDay: v,
1029
1029
  getNextDay: f,
1030
- getDayInPreviousWeek: k,
1030
+ getDayInPreviousWeek: D,
1031
1031
  getDayInNextWeek: u,
1032
1032
  getDayInPreviousMonth: a,
1033
1033
  getDayInNextMonth: r
1034
- } = te(), p = W(() => `${Z[c.value.month || 1]} ${c.value.year}`), D = W(() => M(c.value.month || 1, c.value.year || 1, v.value)), w = W(() => l(c.value.day || 1, c.value.month || 1, c.value.year || 1, v.value)), T = W(() => w.value.days.find((N) => i(N.date, c.value)) || w.value.days[1]), V = W(() => {
1035
- const N = w.value.days.findIndex((re) => i(re.date, c.value)), ae = N > -1 ? N : 1;
1034
+ } = te(), p = W(() => `${Z[s.value.month || 1]} ${s.value.year}`), b = W(() => M(s.value.month || 1, s.value.year || 1, y.value)), w = W(() => l(s.value.day || 1, s.value.month || 1, s.value.year || 1, y.value)), C = W(() => w.value.days.find((N) => d(N.date, s.value)) || w.value.days[1]), V = W(() => {
1035
+ const N = w.value.days.findIndex((re) => d(re.date, s.value)), ae = N > -1 ? N : 1;
1036
1036
  return F[ae];
1037
- }), S = W(() => b.value === 3), O = W(() => b.value === 2), A = W(() => b.value === 1);
1037
+ }), O = W(() => k.value === 3), S = W(() => k.value === 2), A = W(() => k.value === 1);
1038
1038
  function P(N) {
1039
- b.value = N;
1039
+ k.value = N;
1040
1040
  }
1041
1041
  function H(N) {
1042
- N === 1 && (c.value = y(c.value)), N === 2 && (c.value = k(c.value)), N === 3 && (c.value = a(c.value));
1042
+ N === 1 && (s.value = v(s.value)), N === 2 && (s.value = D(s.value)), N === 3 && (s.value = a(s.value));
1043
1043
  }
1044
1044
  function j(N) {
1045
- N === 1 && (c.value = f(c.value)), N === 2 && (c.value = u(c.value)), N === 3 && (c.value = r(c.value));
1045
+ N === 1 && (s.value = f(s.value)), N === 2 && (s.value = u(s.value)), N === 3 && (s.value = r(s.value));
1046
1046
  }
1047
1047
  function R() {
1048
- c.value = {
1049
- year: s.year || 1,
1050
- month: s.month || 1,
1051
- day: s.day || 1
1048
+ s.value = {
1049
+ year: o.year || 1,
1050
+ month: o.month || 1,
1051
+ day: o.day || 1
1052
1052
  };
1053
1053
  }
1054
- return () => o("div", {
1054
+ return () => c("div", {
1055
1055
  ref: n,
1056
1056
  class: "f-calendar"
1057
- }, [o(G, {
1058
- activeView: b.value,
1057
+ }, [c(G, {
1058
+ activeView: k.value,
1059
1059
  title: p.value,
1060
1060
  onViewChange: (N) => P(N),
1061
1061
  onPrevious: (N) => H(N),
1062
1062
  onNext: (N) => j(N),
1063
1063
  onResetToToday: () => R()
1064
- }, null), o("div", null, [A.value && o(J, {
1065
- day: T.value,
1064
+ }, null), c("div", null, [A.value && c(L, {
1065
+ day: C.value,
1066
1066
  dayInWeek: V.value,
1067
- events: d.value
1068
- }, null), O.value && o(Y, {
1067
+ events: i.value
1068
+ }, null), S.value && c(Y, {
1069
1069
  week: w.value,
1070
- events: d.value
1071
- }, null), S.value && o(_, {
1072
- activeDay: c.value,
1073
- dates: D.value,
1074
- events: d.value
1070
+ events: i.value
1071
+ }, null), O.value && c(_, {
1072
+ activeDay: s.value,
1073
+ dates: b.value,
1074
+ events: i.value
1075
1075
  }, null)])]);
1076
1076
  }
1077
1077
  });
1078
1078
  I.install = (e) => {
1079
- e.component(I.name, I).component(J.name, J).component(G.name, G).component(_.name, _).component(Y.name, Y);
1079
+ e.component(I.name, I).component(L.name, L).component(G.name, G).component(_.name, _).component(Y.name, Y);
1080
1080
  };
1081
- I.register = (e, t, i, m) => {
1081
+ I.register = (e, t, d, h) => {
1082
1082
  e.calendar = I, t.calendar = ne;
1083
1083
  };
1084
- I.registerDesigner = (e, t, i) => {
1084
+ I.registerDesigner = (e, t, d) => {
1085
1085
  e.calendar = Be, t.calendar = ne;
1086
1086
  };
1087
1087
  export {
1088
1088
  I as FCalendar,
1089
- J as FCalendarDayView,
1089
+ L as FCalendarDayView,
1090
1090
  G as FCalendarHeader,
1091
1091
  _ as FCalendarMonthView,
1092
1092
  Y as FCalendarWeekView,