bitboss-ui 2.0.96 → 2.0.98

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 (244) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +13 -1
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +65 -19
  4. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -29
  5. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  6. package/dist/composables/useBbConfig.d.ts +3 -0
  7. package/dist/composables/useConfirm.d.ts +67 -32
  8. package/dist/composables/useLocale.d.ts +5 -0
  9. package/dist/i18n/en.d.ts +8 -0
  10. package/dist/i18n/index.d.ts +3 -0
  11. package/dist/i18n/it.d.ts +8 -0
  12. package/dist/index100.js +5 -5
  13. package/dist/index109.js +4 -4
  14. package/dist/index11.js +1 -1
  15. package/dist/index111.js +7 -7
  16. package/dist/index119.js +2 -2
  17. package/dist/index12.js +6 -6
  18. package/dist/index121.js +6 -6
  19. package/dist/index123.js +1 -1
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.js +1 -1
  24. package/dist/index130.js +2 -2
  25. package/dist/index131.js +1 -1
  26. package/dist/index132.js +340 -2
  27. package/dist/index133.js +22 -337
  28. package/dist/index134.js +2 -25
  29. package/dist/index135.js +5 -2
  30. package/dist/index136.js +9 -5
  31. package/dist/index137.js +5 -8
  32. package/dist/index138.js +3 -6
  33. package/dist/index139.js +1 -1
  34. package/dist/index140.js +1 -1
  35. package/dist/index141.js +1 -1
  36. package/dist/index142.js +1 -1
  37. package/dist/index143.js +1 -1
  38. package/dist/index144.js +1 -1
  39. package/dist/index145.js +1 -1
  40. package/dist/index146.js +1 -1
  41. package/dist/index147.js +1 -1
  42. package/dist/index148.js +1 -1
  43. package/dist/index149.js +1 -1
  44. package/dist/index15.js +4 -4
  45. package/dist/index150.js +1 -1
  46. package/dist/index151.js +1 -1
  47. package/dist/index152.js +1 -1
  48. package/dist/index153.js +1 -1
  49. package/dist/index154.js +1 -1
  50. package/dist/index155.js +1 -1
  51. package/dist/index156.js +1 -1
  52. package/dist/index157.js +1 -1
  53. package/dist/index158.js +1 -1
  54. package/dist/index159.js +1 -1
  55. package/dist/index160.js +1 -1
  56. package/dist/index161.js +1 -1
  57. package/dist/index162.js +1 -1
  58. package/dist/index163.js +1 -1
  59. package/dist/index164.js +1 -1
  60. package/dist/index165.js +2 -2
  61. package/dist/index169.js +5 -0
  62. package/dist/index17.js +3 -3
  63. package/dist/index170.js +1 -1
  64. package/dist/index171.js +1 -1
  65. package/dist/index172.js +1 -1
  66. package/dist/index173.js +1 -1
  67. package/dist/index174.js +1 -1
  68. package/dist/index175.js +1 -1
  69. package/dist/index176.js +2 -2
  70. package/dist/index178.js +4 -0
  71. package/dist/index179.js +3 -2
  72. package/dist/index180.js +1 -1
  73. package/dist/index181.js +1 -1
  74. package/dist/index182.js +1 -1
  75. package/dist/index183.js +1 -1
  76. package/dist/index184.js +1 -1
  77. package/dist/index185.js +1 -1
  78. package/dist/index186.js +1 -1
  79. package/dist/index187.js +1 -1
  80. package/dist/index188.js +2 -3
  81. package/dist/index189.js +3 -2
  82. package/dist/index19.js +49 -48
  83. package/dist/index190.js +1 -1
  84. package/dist/index191.js +1 -1
  85. package/dist/{index166.js → index195.js} +1 -1
  86. package/dist/index196.js +1 -1
  87. package/dist/index197.js +1 -1
  88. package/dist/index198.js +1 -1
  89. package/dist/index199.js +1 -1
  90. package/dist/index200.js +1 -1
  91. package/dist/index201.js +1 -1
  92. package/dist/index202.js +1 -1
  93. package/dist/index203.js +1 -1
  94. package/dist/index204.js +1 -1
  95. package/dist/index205.js +81 -3
  96. package/dist/index206.js +2 -81
  97. package/dist/index207.js +53 -2
  98. package/dist/index209.js +13 -126
  99. package/dist/index21.js +63 -56
  100. package/dist/index210.js +20 -5
  101. package/dist/index211.js +4 -125
  102. package/dist/index212.js +5 -19
  103. package/dist/index213.js +2 -2
  104. package/dist/index214.js +2 -2
  105. package/dist/index215.js +19 -2
  106. package/dist/index216.js +19 -2
  107. package/dist/index217.js +26 -40
  108. package/dist/index218.js +3 -20
  109. package/dist/index219.js +2 -6
  110. package/dist/index220.js +6 -51
  111. package/dist/index221.js +252 -0
  112. package/dist/index222.js +52 -13
  113. package/dist/index223.js +44 -5
  114. package/dist/index224.js +4 -11
  115. package/dist/index225.js +59 -368
  116. package/dist/index226.js +3 -19
  117. package/dist/index227.js +40 -26
  118. package/dist/index228.js +6 -3
  119. package/dist/index229.js +7 -250
  120. package/dist/index23.js +31 -31
  121. package/dist/index230.js +10 -50
  122. package/dist/index231.js +125 -43
  123. package/dist/index232.js +125 -5
  124. package/dist/index233.js +2 -60
  125. package/dist/index234.js +5 -164
  126. package/dist/index235.js +368 -83
  127. package/dist/index236.js +166 -0
  128. package/dist/index237.js +84 -3
  129. package/dist/index239.js +8 -2
  130. package/dist/index240.js +3 -4
  131. package/dist/index241.js +2 -2
  132. package/dist/index242.js +4 -4
  133. package/dist/index243.js +2 -3
  134. package/dist/index244.js +1 -1
  135. package/dist/index245.js +1 -1
  136. package/dist/index246.js +2 -2
  137. package/dist/index248.js +2 -2
  138. package/dist/index25.js +33 -32
  139. package/dist/index251.js +2 -10
  140. package/dist/index252.js +9 -2
  141. package/dist/index253.js +2 -8
  142. package/dist/index254.js +9 -23
  143. package/dist/index255.js +23 -89
  144. package/dist/index256.js +91 -0
  145. package/dist/index258.js +6 -16
  146. package/dist/index259.js +16 -9
  147. package/dist/index260.js +3 -9
  148. package/dist/index262.js +7 -3
  149. package/dist/index263.js +175 -11
  150. package/dist/index264.js +280 -8
  151. package/dist/index265.js +6 -17
  152. package/dist/index266.js +2 -4
  153. package/dist/index267.js +2 -281
  154. package/dist/index268.js +2 -6
  155. package/dist/index269.js +2 -2
  156. package/dist/index27.js +5 -2
  157. package/dist/index272.js +2 -2
  158. package/dist/index273.js +2 -2
  159. package/dist/index274.js +2 -2
  160. package/dist/index275.js +1 -1
  161. package/dist/index276.js +28 -2
  162. package/dist/index277.js +21 -1
  163. package/dist/index279.js +427 -24
  164. package/dist/index280.js +1 -21
  165. package/dist/index281.js +91 -0
  166. package/dist/index282.js +9 -7
  167. package/dist/index285.js +20 -429
  168. package/dist/index287.js +200 -3
  169. package/dist/index288.js +11 -0
  170. package/dist/index289.js +7 -21
  171. package/dist/index29.js +3 -3
  172. package/dist/index290.js +438 -0
  173. package/dist/index291.js +127 -2
  174. package/dist/index292.js +3 -4
  175. package/dist/index293.js +11 -199
  176. package/dist/index294.js +7 -434
  177. package/dist/index295.js +16 -126
  178. package/dist/index296.js +3 -88
  179. package/dist/index297.js +7 -224
  180. package/dist/index298.js +11 -3
  181. package/dist/index299.js +224 -3
  182. package/dist/index300.js +4 -213
  183. package/dist/index301.js +2 -66
  184. package/dist/index302.js +3 -5
  185. package/dist/index303.js +3 -2
  186. package/dist/index304.js +213 -3
  187. package/dist/index305.js +5 -3
  188. package/dist/index306.js +66 -3
  189. package/dist/index307.js +6 -57
  190. package/dist/index308.js +18 -10
  191. package/dist/index309.js +6 -6
  192. package/dist/index31.js +2 -2
  193. package/dist/index310.js +4 -18
  194. package/dist/index311.js +7 -6
  195. package/dist/index312.js +2 -32
  196. package/dist/index313.js +32 -46
  197. package/dist/index314.js +3 -5
  198. package/dist/index315.js +3 -8
  199. package/dist/index316.js +58 -2
  200. package/dist/index318.js +7 -479
  201. package/dist/index319.js +10 -0
  202. package/dist/index320.js +43 -420
  203. package/dist/index321.js +2 -47
  204. package/dist/index323.js +482 -0
  205. package/dist/index324.js +426 -0
  206. package/dist/index325.js +49 -0
  207. package/dist/index33.js +2 -2
  208. package/dist/index35.js +4 -4
  209. package/dist/index37.js +13 -13
  210. package/dist/index39.js +5 -5
  211. package/dist/index4.js +5 -4
  212. package/dist/index41.js +2 -2
  213. package/dist/index43.js +2 -2
  214. package/dist/index45.js +5 -5
  215. package/dist/index47.js +2 -2
  216. package/dist/index49.js +2 -2
  217. package/dist/index55.js +2 -2
  218. package/dist/index57.js +2 -2
  219. package/dist/index6.js +65 -51
  220. package/dist/index61.js +2 -2
  221. package/dist/index69.js +51 -59
  222. package/dist/index7.js +1 -1
  223. package/dist/index75.js +5 -5
  224. package/dist/index77.js +36 -34
  225. package/dist/index79.js +2 -2
  226. package/dist/index81.js +1 -1
  227. package/dist/index84.js +4 -4
  228. package/dist/index86.js +1 -1
  229. package/dist/index88.js +5 -5
  230. package/dist/index9.js +1 -1
  231. package/dist/index90.js +1 -1
  232. package/dist/style.css +1 -1
  233. package/package.json +2 -2
  234. package/dist/index177.js +0 -5
  235. package/dist/index192.js +0 -5
  236. package/dist/index208.js +0 -10
  237. package/dist/index238.js +0 -9
  238. package/dist/index257.js +0 -8
  239. package/dist/index261.js +0 -10
  240. package/dist/index278.js +0 -4
  241. package/dist/index286.js +0 -178
  242. /package/dist/{index168.js → index167.js} +0 -0
  243. /package/dist/{index194.js → index193.js} +0 -0
  244. /package/dist/{index322.js → index326.js} +0 -0
package/dist/index21.js CHANGED
@@ -1,29 +1,29 @@
1
- import { defineComponent as N, ref as f, watch as Y, openBlock as m, createElementBlock as g, createVNode as i, createElementVNode as r, unref as u, withCtx as n, createTextVNode as x, toDisplayString as z, createBlock as k, createCommentVNode as w } from "vue";
1
+ import { defineComponent as z, ref as b, watch as U, openBlock as m, createElementBlock as k, createVNode as i, createElementVNode as r, unref as u, withCtx as n, createTextVNode as P, toDisplayString as W, createSlots as x, renderList as E, renderSlot as I, normalizeProps as T, guardReactiveProps as j, createBlock as w, createCommentVNode as V } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { useId as U } from "./index8.js";
4
+ import { useId as H } from "./index8.js";
5
5
  import p from "./index13.js";
6
6
  /* empty css */
7
- import s from "./index210.js";
8
- import W from "./index213.js";
9
- import E from "./index214.js";
10
- import I from "./index212.js";
11
- import T from "./index226.js";
12
- import j from "./index227.js";
13
- import { hash as V } from "./index228.js";
14
- import { last as H } from "./index216.js";
15
- import { useLogger as P } from "./index208.js";
16
- import Z from "./index229.js";
17
- import q from "./index230.js";
18
- import F from "./index231.js";
19
- import h from "./index232.js";
20
- import G from "./index233.js";
21
- const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__body" }, Q = { class: "bb-base-date-picker__controls" }, R = {
7
+ import s from "./index212.js";
8
+ import R from "./index213.js";
9
+ import Z from "./index214.js";
10
+ import q from "./index215.js";
11
+ import F from "./index216.js";
12
+ import G from "./index217.js";
13
+ import { hash as h } from "./index218.js";
14
+ import { last as J } from "./index219.js";
15
+ import { useLogger as K } from "./index220.js";
16
+ import Q from "./index221.js";
17
+ import X from "./index222.js";
18
+ import ee from "./index223.js";
19
+ import C from "./index224.js";
20
+ import ae from "./index225.js";
21
+ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker__body" }, oe = { class: "bb-base-date-picker__controls" }, re = {
22
22
  style: { transform: "rotate(180deg)" },
23
23
  viewBox: "0 0 24 24",
24
24
  width: "24px",
25
25
  xmlns: "http://www.w3.org/2000/svg"
26
- }, X = { class: "bb-base-date-picker__content" }, Ve = /* @__PURE__ */ N({
26
+ }, se = { class: "bb-base-date-picker__content" }, Se = /* @__PURE__ */ z({
27
27
  __name: "BaseDatePicker",
28
28
  props: {
29
29
  disabled: { type: Boolean },
@@ -39,23 +39,23 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
39
39
  selectable: {}
40
40
  },
41
41
  emits: ["update:modelValue"],
42
- setup(C, { expose: B, emit: _ }) {
43
- s.extend(j), s.extend(T), s.extend(W), s.extend(E), s.locale(I);
44
- const M = _, t = C;
42
+ setup(B, { expose: _, emit: M }) {
43
+ s.extend(G), s.extend(F), s.extend(R), s.extend(Z), s.locale(q);
44
+ const O = M, t = B;
45
45
  s.updateLocale("it", {
46
46
  weekStart: t.firstDayOfWeek
47
47
  });
48
- const O = t.id || U().id, c = P();
48
+ const S = t.id || H().id, c = K();
49
49
  t.multiple && t.range && c.throw("Date picker cannot be both multiple and range."), (t.multiple || t.range) && (Array.isArray(t.modelValue) || c.throw(
50
50
  "Date picker is set to select multiple dates but modelValue is not an array."
51
51
  ));
52
- const l = f(s()), v = (e) => {
52
+ const l = b(s()), v = (e) => {
53
53
  if (e)
54
54
  if (Array.isArray(e)) {
55
55
  if (e.length) {
56
56
  if (e.map((d) => s(d).valueOf()).includes(l.value.valueOf()))
57
57
  return;
58
- l.value = s(H(e)).startOf("day");
58
+ l.value = s(J(e)).startOf("day");
59
59
  return;
60
60
  }
61
61
  } else
@@ -64,43 +64,43 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
64
64
  l.value = s().startOf("day");
65
65
  };
66
66
  v(t.modelValue);
67
- const o = f("day"), y = (e) => {
67
+ const o = b("day"), y = (e) => {
68
68
  o.value === e ? o.value = "day" : o.value = e;
69
- }, S = (e) => {
69
+ }, $ = (e) => {
70
70
  l.value = l.value.set("month", e);
71
- }, A = () => {
71
+ }, L = () => {
72
72
  l.value = l.value.add(1, "month");
73
- }, D = () => {
73
+ }, A = () => {
74
74
  l.value = l.value.subtract(1, "month");
75
- }, L = (e) => {
75
+ }, D = (e) => {
76
76
  l.value = l.value.set("year", e);
77
- }, b = f(t.modelValue), $ = (e) => {
78
- b.value = e, M("update:modelValue", e);
77
+ }, f = b(t.modelValue), N = (e) => {
78
+ f.value = e, O("update:modelValue", e);
79
79
  };
80
- return Y(
80
+ return U(
81
81
  () => t.modelValue,
82
82
  () => {
83
- V(t.modelValue) !== V(b.value) && (b.value = t.modelValue, v(t.modelValue));
83
+ h(t.modelValue) !== h(f.value) && (f.value = t.modelValue, v(t.modelValue));
84
84
  }
85
- ), B({
85
+ ), _({
86
86
  resetStatus: () => {
87
87
  o.value = "day";
88
88
  }
89
- }), (e, a) => (m(), g("div", J, [
90
- i(q, {
89
+ }), (e, a) => (m(), k("div", le, [
90
+ i(X, {
91
91
  cursor: l.value,
92
92
  disabled: !!e.disabled,
93
93
  hidden: !e.header
94
94
  }, null, 8, ["cursor", "disabled", "hidden"]),
95
- r("div", K, [
96
- r("div", Q, [
95
+ r("div", te, [
96
+ r("div", oe, [
97
97
  i(u(p), {
98
98
  class: "bb-base-date-picker__control bb-base-date-picker__month-control",
99
99
  disabled: e.disabled,
100
100
  onClick: a[0] || (a[0] = (d) => y("month"))
101
101
  }, {
102
102
  default: n(() => [
103
- x(z(l.value.format("MMMM YYYY")) + " ", 1),
103
+ P(W(l.value.format("MMMM YYYY")) + " ", 1),
104
104
  a[5] || (a[5] = r("span", { class: "sr-only" }, "Seleziona un mese", -1))
105
105
  ]),
106
106
  _: 1
@@ -130,7 +130,7 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
130
130
  i(u(p), {
131
131
  class: "bb-base-date-picker__control",
132
132
  disabled: e.disabled || o.value !== "day",
133
- onClick: D
133
+ onClick: A
134
134
  }, {
135
135
  default: n(() => a[7] || (a[7] = [
136
136
  r("svg", {
@@ -150,10 +150,10 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
150
150
  i(u(p), {
151
151
  class: "bb-base-date-picker__control",
152
152
  disabled: e.disabled || o.value !== "day",
153
- onClick: A
153
+ onClick: L
154
154
  }, {
155
155
  default: n(() => [
156
- (m(), g("svg", R, a[8] || (a[8] = [
156
+ (m(), k("svg", re, a[8] || (a[8] = [
157
157
  r("path", {
158
158
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
159
159
  fill: "currentColor"
@@ -164,9 +164,9 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
164
164
  _: 1
165
165
  }, 8, ["disabled"])
166
166
  ]),
167
- r("div", X, [
168
- i(Z, {
169
- id: u(O),
167
+ r("div", se, [
168
+ i(Q, {
169
+ id: u(S),
170
170
  current: o.value === "day",
171
171
  cursor: l.value,
172
172
  disabled: !!e.disabled,
@@ -180,39 +180,46 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
180
180
  readonly: e.readonly,
181
181
  selectable: e.selectable,
182
182
  "onUpdate:cursor": a[2] || (a[2] = (d) => l.value = d),
183
- "onUpdate:modelValue": $
184
- }, null, 8, ["id", "current", "cursor", "disabled", "first-day-of-week", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
185
- i(h, {
183
+ "onUpdate:modelValue": N
184
+ }, x({ _: 2 }, [
185
+ E(e.$slots, (d, g) => ({
186
+ name: g,
187
+ fn: n((Y) => [
188
+ I(e.$slots, g, T(j(Y)))
189
+ ])
190
+ }))
191
+ ]), 1032, ["id", "current", "cursor", "disabled", "first-day-of-week", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
192
+ i(C, {
186
193
  direction: "right",
187
194
  duration: 500,
188
195
  gap: 30
189
196
  }, {
190
197
  default: n(() => [
191
- o.value === "month" ? (m(), k(F, {
198
+ o.value === "month" ? (m(), w(ee, {
192
199
  key: 0,
193
200
  cursor: l.value,
194
201
  disabled: !!e.disabled,
195
202
  "onUpdate:month": a[3] || (a[3] = (d) => {
196
- S(d), o.value = "day";
203
+ $(d), o.value = "day";
197
204
  })
198
- }, null, 8, ["cursor", "disabled"])) : w("", !0)
205
+ }, null, 8, ["cursor", "disabled"])) : V("", !0)
199
206
  ]),
200
207
  _: 1
201
208
  }),
202
- i(h, {
209
+ i(C, {
203
210
  direction: "top",
204
211
  duration: 500,
205
212
  gap: 30
206
213
  }, {
207
214
  default: n(() => [
208
- o.value === "year" ? (m(), k(G, {
215
+ o.value === "year" ? (m(), w(ae, {
209
216
  key: 0,
210
217
  cursor: l.value,
211
218
  disabled: !!e.disabled,
212
219
  "onUpdate:year": a[4] || (a[4] = (d) => {
213
- L(d), o.value = "day";
220
+ D(d), o.value = "day";
214
221
  })
215
- }, null, 8, ["cursor", "disabled"])) : w("", !0)
222
+ }, null, 8, ["cursor", "disabled"])) : V("", !0)
216
223
  ]),
217
224
  _: 1
218
225
  })
@@ -222,5 +229,5 @@ const J = { class: "bb-base-date-picker" }, K = { class: "bb-base-date-picker__b
222
229
  }
223
230
  });
224
231
  export {
225
- Ve as default
232
+ Se as default
226
233
  };
package/dist/index210.js CHANGED
@@ -1,7 +1,22 @@
1
- import { getDefaultExportFromCjs as r } from "./index268.js";
2
- import { __require as o } from "./index267.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ import { MaskInput as r } from "./index263.js";
2
+ const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
+ if (a.arg == null || a.instance == null) return;
4
+ const s = "setup" in a.instance.$.type;
5
+ a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
+ }, k = (a, n) => {
7
+ var s;
8
+ const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
+ if (t == null || (t == null ? void 0 : t.type) === "file") return;
10
+ let e = {};
11
+ if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
+ const l = (o) => {
13
+ const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
+ p(n, i);
15
+ };
16
+ e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
+ }
18
+ u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
+ };
5
20
  export {
6
- s as default
21
+ k as vMaska
7
22
  };
package/dist/index211.js CHANGED
@@ -1,127 +1,6 @@
1
- import { getDefaultExportFromCjs as et, commonjsGlobal as nt } from "./index268.js";
2
- import { __module as B } from "./index283.js";
3
- (function(I, at) {
4
- (function(U, k) {
5
- I.exports = k();
6
- })(nt, function() {
7
- var U = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, k = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, j = /\d/, L = /\d\d/, s = /\d\d?/, x = /\d*[^-_:/,()\s\d]+/, m = {}, Q = function(t) {
8
- return (t = +t) + (t > 68 ? 1900 : 2e3);
9
- }, o = function(t) {
10
- return function(r) {
11
- this[t] = +r;
12
- };
13
- }, X = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
14
- (this.zone || (this.zone = {})).offset = function(r) {
15
- if (!r || r === "Z") return 0;
16
- var e = r.match(/([+-]|\d\d)/g), n = 60 * e[1] + (+e[2] || 0);
17
- return n === 0 ? 0 : e[0] === "+" ? -n : n;
18
- }(t);
19
- }], F = function(t) {
20
- var r = m[t];
21
- return r && (r.indexOf ? r : r.s.concat(r.f));
22
- }, G = function(t, r) {
23
- var e, n = m.meridiem;
24
- if (n) {
25
- for (var h = 1; h <= 24; h += 1) if (t.indexOf(n(h, 0, r)) > -1) {
26
- e = h > 12;
27
- break;
28
- }
29
- } else e = t === (r ? "pm" : "PM");
30
- return e;
31
- }, J = { A: [x, function(t) {
32
- this.afternoon = G(t, !1);
33
- }], a: [x, function(t) {
34
- this.afternoon = G(t, !0);
35
- }], Q: [j, function(t) {
36
- this.month = 3 * (t - 1) + 1;
37
- }], S: [j, function(t) {
38
- this.milliseconds = 100 * +t;
39
- }], SS: [L, function(t) {
40
- this.milliseconds = 10 * +t;
41
- }], SSS: [/\d{3}/, function(t) {
42
- this.milliseconds = +t;
43
- }], s: [s, o("seconds")], ss: [s, o("seconds")], m: [s, o("minutes")], mm: [s, o("minutes")], H: [s, o("hours")], h: [s, o("hours")], HH: [s, o("hours")], hh: [s, o("hours")], D: [s, o("day")], DD: [L, o("day")], Do: [x, function(t) {
44
- var r = m.ordinal, e = t.match(/\d+/);
45
- if (this.day = e[0], r) for (var n = 1; n <= 31; n += 1) r(n).replace(/\[|\]/g, "") === t && (this.day = n);
46
- }], w: [s, o("week")], ww: [L, o("week")], M: [s, o("month")], MM: [L, o("month")], MMM: [x, function(t) {
47
- var r = F("months"), e = (F("monthsShort") || r.map(function(n) {
48
- return n.slice(0, 3);
49
- })).indexOf(t) + 1;
50
- if (e < 1) throw new Error();
51
- this.month = e % 12 || e;
52
- }], MMMM: [x, function(t) {
53
- var r = F("months").indexOf(t) + 1;
54
- if (r < 1) throw new Error();
55
- this.month = r % 12 || r;
56
- }], Y: [/[+-]?\d+/, o("year")], YY: [L, function(t) {
57
- this.year = Q(t);
58
- }], YYYY: [/\d{4}/, o("year")], Z: X, ZZ: X };
59
- function K(t) {
60
- var r, e;
61
- r = t, e = m && m.formats;
62
- for (var n = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, f) {
63
- var i = f && f.toUpperCase();
64
- return l || e[f] || U[f] || e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
65
- return Y || D.slice(1);
66
- });
67
- })).match(k), h = n.length, c = 0; c < h; c += 1) {
68
- var y = n[c], p = J[y], u = p && p[0], d = p && p[1];
69
- n[c] = d ? { regex: u, parser: d } : y.replace(/^\[|\]$/g, "");
70
- }
71
- return function(v) {
72
- for (var l = {}, f = 0, i = 0; f < h; f += 1) {
73
- var M = n[f];
74
- if (typeof M == "string") i += M.length;
75
- else {
76
- var Y = M.regex, D = M.parser, $ = v.slice(i), g = Y.exec($)[0];
77
- D.call(l, g), v = v.replace(g, "");
78
- }
79
- }
80
- return function(w) {
81
- var S = w.afternoon;
82
- if (S !== void 0) {
83
- var a = w.hours;
84
- S ? a < 12 && (w.hours += 12) : a === 12 && (w.hours = 0), delete w.afternoon;
85
- }
86
- }(l), l;
87
- };
88
- }
89
- return function(t, r, e) {
90
- e.p.customParseFormat = !0, t && t.parseTwoDigitYear && (Q = t.parseTwoDigitYear);
91
- var n = r.prototype, h = n.parse;
92
- n.parse = function(c) {
93
- var y = c.date, p = c.utc, u = c.args;
94
- this.$u = p;
95
- var d = u[1];
96
- if (typeof d == "string") {
97
- var v = u[2] === !0, l = u[3] === !0, f = v || l, i = u[2];
98
- l && (i = u[2]), m = this.$locale(), !v && i && (m = e.Ls[i]), this.$d = function($, g, w, S) {
99
- try {
100
- if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * $);
101
- var a = K(g)($), H = a.year, A = a.month, N = a.day, R = a.hours, W = a.minutes, tt = a.seconds, rt = a.milliseconds, V = a.zone, q = a.week, O = /* @__PURE__ */ new Date(), P = N || (H || A ? 1 : O.getDate()), z = H || O.getFullYear(), T = 0;
102
- H && !A || (T = A > 0 ? A - 1 : O.getMonth());
103
- var Z, C = R || 0, E = W || 0, _ = tt || 0, b = rt || 0;
104
- return V ? new Date(Date.UTC(z, T, P, C, E, _, b + 60 * V.offset * 1e3)) : w ? new Date(Date.UTC(z, T, P, C, E, _, b)) : (Z = new Date(z, T, P, C, E, _, b), q && (Z = S(Z).week(q).toDate()), Z);
105
- } catch {
106
- return /* @__PURE__ */ new Date("");
107
- }
108
- }(y, d, p, e), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), f && y != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
109
- } else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
110
- u[1] = d[Y - 1];
111
- var D = e.apply(this, u);
112
- if (D.isValid()) {
113
- this.$d = D.$d, this.$L = D.$L, this.init();
114
- break;
115
- }
116
- Y === M && (this.$d = /* @__PURE__ */ new Date(""));
117
- }
118
- else h.call(this, c);
119
- };
120
- };
121
- });
122
- })(B);
123
- var ot = B.exports;
124
- const ht = /* @__PURE__ */ et(ot);
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
125
4
  export {
126
- ht as default
5
+ x as isHex
127
6
  };
package/dist/index212.js CHANGED
@@ -1,21 +1,7 @@
1
- import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index268.js";
2
- import { __module as _ } from "./index272.js";
3
- import { __require as s } from "./index267.js";
4
- (function(n, d) {
5
- (function(t, o) {
6
- n.exports = o(s());
7
- })(m, function(t) {
8
- function o(e) {
9
- return e && typeof e == "object" && "default" in e ? e : { default: e };
10
- }
11
- var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
12
- return e + "º";
13
- } };
14
- return a.default.locale(r, null, !0), r;
15
- });
16
- })(_);
17
- var u = _.exports;
18
- const p = /* @__PURE__ */ i(u);
1
+ import { getDefaultExportFromCjs as r } from "./index265.js";
2
+ import { __require as o } from "./index264.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
19
5
  export {
20
- p as default
6
+ s as default
21
7
  };
package/dist/index213.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index268.js";
2
- import { __module as e } from "./index270.js";
1
+ import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index265.js";
2
+ import { __module as e } from "./index267.js";
3
3
  (function(s, a) {
4
4
  (function(i, t) {
5
5
  s.exports = t();
package/dist/index214.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index268.js";
2
- import { __module as t } from "./index271.js";
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index265.js";
2
+ import { __module as t } from "./index268.js";
3
3
  (function(s, a) {
4
4
  (function(f, o) {
5
5
  s.exports = o();
package/dist/index215.js CHANGED
@@ -1,4 +1,21 @@
1
- const e = (t) => t;
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index265.js";
2
+ import { __module as _ } from "./index269.js";
3
+ import { __require as s } from "./index264.js";
4
+ (function(n, d) {
5
+ (function(t, o) {
6
+ n.exports = o(s());
7
+ })(m, function(t) {
8
+ function o(e) {
9
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
10
+ }
11
+ var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
12
+ return e + "º";
13
+ } };
14
+ return a.default.locale(r, null, !0), r;
15
+ });
16
+ })(_);
17
+ var u = _.exports;
18
+ const p = /* @__PURE__ */ i(u);
2
19
  export {
3
- e as identity
20
+ p as default
4
21
  };
package/dist/index216.js CHANGED
@@ -1,4 +1,21 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index265.js";
2
+ import { __module as n } from "./index270.js";
3
+ (function(u, l) {
4
+ (function(c, e) {
5
+ u.exports = e();
6
+ })(s, function() {
7
+ return function(c, e, r) {
8
+ r.updateLocale = function(f, o) {
9
+ var t = r.Ls[f];
10
+ if (t) return (o ? Object.keys(o) : []).forEach(function(a) {
11
+ t[a] = o[a];
12
+ }), t;
13
+ };
14
+ };
15
+ });
16
+ })(n);
17
+ var i = n.exports;
18
+ const x = /* @__PURE__ */ p(i);
2
19
  export {
3
- e as last
20
+ x as default
4
21
  };
package/dist/index217.js CHANGED
@@ -1,43 +1,29 @@
1
- import { unrefElement as A } from "./index133.js";
2
- import { toValue as n, notNullish as g, tryOnScopeDispose as y } from "./index206.js";
3
- import { ref as i, computed as D, watch as F } from "vue";
4
- import { createFocusTrap as T } from "./index285.js";
5
- function E(f, a = {}) {
6
- let e;
7
- const { immediate: l, ...p } = a, r = i(!1), s = i(!1), c = (t) => e && e.activate(t), u = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, m = () => {
10
- e && (e.unpause(), s.value = !1);
11
- }, d = D(() => {
12
- const t = n(f);
13
- return (Array.isArray(t) ? t : [t]).map((h) => {
14
- const o = n(h);
15
- return typeof o == "string" ? o : A(o);
16
- }).filter(g);
17
- });
18
- return F(
19
- d,
20
- (t) => {
21
- t.length && (e = T(t, {
22
- ...p,
23
- onActivate() {
24
- r.value = !0, a.onActivate && a.onActivate();
25
- },
26
- onDeactivate() {
27
- r.value = !1, a.onDeactivate && a.onDeactivate();
1
+ import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index265.js";
2
+ import { __module as n } from "./index271.js";
3
+ (function(f, p) {
4
+ (function(r, e) {
5
+ f.exports = e();
6
+ })(k, function() {
7
+ var r = "week", e = "year";
8
+ return function(w, u, a) {
9
+ var o = u.prototype;
10
+ o.week = function(t) {
11
+ if (t === void 0 && (t = null), t !== null) return this.add(7 * (t - this.week()), "day");
12
+ var s = this.$locale().yearStart || 1;
13
+ if (this.month() === 11 && this.date() > 25) {
14
+ var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
15
+ if (l.isBefore(d)) return 1;
28
16
  }
29
- }), l && c());
30
- },
31
- { flush: "post" }
32
- ), y(() => u()), {
33
- hasFocus: r,
34
- isPaused: s,
35
- activate: c,
36
- deactivate: u,
37
- pause: v,
38
- unpause: m
39
- };
40
- }
17
+ var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
18
+ return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
19
+ }, o.weeks = function(t) {
20
+ return t === void 0 && (t = null), this.week(t);
21
+ };
22
+ };
23
+ });
24
+ })(n);
25
+ var m = n.exports;
26
+ const x = /* @__PURE__ */ c(m);
41
27
  export {
42
- E as useFocusTrap
28
+ x as default
43
29
  };
package/dist/index218.js CHANGED
@@ -1,22 +1,5 @@
1
- import { MaskInput as r } from "./index286.js";
2
- const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
- if (a.arg == null || a.instance == null) return;
4
- const s = "setup" in a.instance.$.type;
5
- a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
- }, k = (a, n) => {
7
- var s;
8
- const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
- if (t == null || (t == null ? void 0 : t.type) === "file") return;
10
- let e = {};
11
- if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
- const l = (o) => {
13
- const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
- p(n, i);
15
- };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
- }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
- };
1
+ import { hash as o } from "./index276.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
20
3
  export {
21
- k as vMaska
4
+ t as hash
22
5
  };
package/dist/index219.js CHANGED
@@ -1,8 +1,4 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
1
+ const e = (t) => t[t.length - 1];
6
2
  export {
7
- o as waitFor
3
+ e as last
8
4
  };