@farris/ui-vue 1.3.0 → 1.3.1

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