bitboss-ui 2.0.104 → 2.0.106

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 (174) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +1 -1
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +23 -23
  22. package/dist/index132.js +2 -2
  23. package/dist/index133.js +2 -2
  24. package/dist/index15.js +36 -35
  25. package/dist/index17.js +3 -3
  26. package/dist/index19.js +63 -64
  27. package/dist/index206.js +85 -114
  28. package/dist/index208.js +25 -16
  29. package/dist/index209.js +16 -15
  30. package/dist/index21.js +110 -103
  31. package/dist/index210.js +48 -19
  32. package/dist/index211.js +15 -19
  33. package/dist/index212.js +3 -27
  34. package/dist/index213.js +12 -3
  35. package/dist/index214.js +16 -2
  36. package/dist/index215.js +2 -8
  37. package/dist/index216.js +4 -250
  38. package/dist/index217.js +2 -52
  39. package/dist/index218.js +6 -42
  40. package/dist/index219.js +3 -5
  41. package/dist/index220.js +41 -60
  42. package/dist/index221.js +6 -126
  43. package/dist/index222.js +7 -125
  44. package/dist/index223.js +12 -2
  45. package/dist/index224.js +13 -41
  46. package/dist/index225.js +51 -18
  47. package/dist/index227.js +12 -52
  48. package/dist/index228.js +7 -0
  49. package/dist/index229.js +16 -13
  50. package/dist/index23.js +127 -119
  51. package/dist/index230.js +16 -5
  52. package/dist/index231.js +19 -12
  53. package/dist/index232.js +14 -368
  54. package/dist/index233.js +19 -4
  55. package/dist/index234.js +27 -84
  56. package/dist/index235.js +4 -0
  57. package/dist/index236.js +249 -7
  58. package/dist/index237.js +51 -24
  59. package/dist/index238.js +44 -17
  60. package/dist/index239.js +5 -48
  61. package/dist/index240.js +60 -15
  62. package/dist/index241.js +19 -11
  63. package/dist/index242.js +4 -16
  64. package/dist/index243.js +126 -2
  65. package/dist/index244.js +125 -4
  66. package/dist/index245.js +2 -2
  67. package/dist/index246.js +5 -3
  68. package/dist/index247.js +369 -7
  69. package/dist/index248.js +115 -2
  70. package/dist/index249.js +3 -18
  71. package/dist/index25.js +44 -41
  72. package/dist/index250.js +2 -106
  73. package/dist/index251.js +20 -0
  74. package/dist/index252.js +53 -47
  75. package/dist/index254.js +100 -12
  76. package/dist/index256.js +12 -3
  77. package/dist/index258.js +2 -10
  78. package/dist/index259.js +9 -2
  79. package/dist/index260.js +2 -8
  80. package/dist/index261.js +3 -23
  81. package/dist/index262.js +14 -86
  82. package/dist/index263.js +11 -0
  83. package/dist/index264.js +27 -8
  84. package/dist/index265.js +4 -6
  85. package/dist/index266.js +430 -15
  86. package/dist/index267.js +2 -281
  87. package/dist/index268.js +88 -5
  88. package/dist/index269.js +7 -2
  89. package/dist/index27.js +1 -1
  90. package/dist/index270.js +11 -2
  91. package/dist/index271.js +3 -2
  92. package/dist/index273.js +7 -2
  93. package/dist/index274.js +200 -2
  94. package/dist/index275.js +281 -2
  95. package/dist/index276.js +6 -2
  96. package/dist/index277.js +2 -2
  97. package/dist/index278.js +2 -2
  98. package/dist/index279.js +2 -28
  99. package/dist/index280.js +2 -22
  100. package/dist/index282.js +2 -7
  101. package/dist/index283.js +2 -3
  102. package/dist/index284.js +2 -7
  103. package/dist/index285.js +2 -11
  104. package/dist/index286.js +2 -17
  105. package/dist/index287.js +2 -9
  106. package/dist/index288.js +22 -3
  107. package/dist/index29.js +2 -2
  108. package/dist/index290.js +6 -173
  109. package/dist/index291.js +23 -2
  110. package/dist/index292.js +88 -125
  111. package/dist/index294.js +176 -22
  112. package/dist/index295.js +4 -0
  113. package/dist/index296.js +126 -2
  114. package/dist/index297.js +22 -4
  115. package/dist/index299.js +7 -434
  116. package/dist/index300.js +6 -127
  117. package/dist/index301.js +15 -199
  118. package/dist/index302.js +8 -89
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -224
  123. package/dist/index307.js +3 -5
  124. package/dist/index308.js +214 -2
  125. package/dist/index309.js +21 -20
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -3
  128. package/dist/index311.js +5 -7
  129. package/dist/index312.js +4 -18
  130. package/dist/index313.js +7 -4
  131. package/dist/index314.js +6 -7
  132. package/dist/index315.js +19 -3
  133. package/dist/index316.js +53 -3
  134. package/dist/index317.js +52 -57
  135. package/dist/index318.js +7 -8
  136. package/dist/index319.js +32 -7
  137. package/dist/index320.js +3 -6
  138. package/dist/index321.js +3 -4
  139. package/dist/index322.js +2 -32
  140. package/dist/index323.js +3 -47
  141. package/dist/index324.js +58 -2
  142. package/dist/index325.js +47 -480
  143. package/dist/index326.js +4 -0
  144. package/dist/index327.js +470 -414
  145. package/dist/index329.js +424 -2
  146. package/dist/index33.js +45 -45
  147. package/dist/index331.js +4 -0
  148. package/dist/index35.js +56 -55
  149. package/dist/index37.js +166 -165
  150. package/dist/index39.js +3 -3
  151. package/dist/index41.js +2 -2
  152. package/dist/index43.js +70 -71
  153. package/dist/index45.js +7 -7
  154. package/dist/index47.js +2 -2
  155. package/dist/index49.js +2 -2
  156. package/dist/index53.js +28 -27
  157. package/dist/index55.js +1 -1
  158. package/dist/index57.js +2 -2
  159. package/dist/index61.js +32 -31
  160. package/dist/index75.js +3 -3
  161. package/dist/index77.js +87 -86
  162. package/dist/index79.js +2 -2
  163. package/dist/index81.js +1 -1
  164. package/dist/index84.js +45 -44
  165. package/dist/index86.js +67 -66
  166. package/dist/index88.js +69 -67
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -7
  169. package/dist/index226.js +0 -8
  170. package/dist/index255.js +0 -4
  171. package/dist/index293.js +0 -433
  172. package/dist/index298.js +0 -10
  173. /package/dist/{index272.js → index281.js} +0 -0
  174. /package/dist/{index328.js → index330.js} +0 -0
package/dist/index21.js CHANGED
@@ -1,29 +1,32 @@
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";
1
+ import { defineComponent as E, watchPostEffect as W, ref as v, watch as I, openBlock as c, createElementBlock as w, createVNode as n, createElementVNode as r, unref as i, withCtx as u, createTextVNode as T, toDisplayString as m, createSlots as j, renderList as H, renderSlot as R, normalizeProps as Z, guardReactiveProps as q, createBlock as _, createCommentVNode as V } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { useId as H } from "./index8.js";
5
- import p from "./index13.js";
4
+ import { _config as C } from "./index4.js";
5
+ import { useId as F } from "./index8.js";
6
+ import f from "./index13.js";
6
7
  /* empty css */
7
- import s from "./index207.js";
8
- import R from "./index208.js";
9
- import Z from "./index209.js";
10
- import q from "./index210.js";
11
- import F from "./index211.js";
12
- import G from "./index212.js";
13
- import { hash as h } from "./index213.js";
14
- import { last as J } from "./index214.js";
15
- import { useLogger as K } from "./index215.js";
16
- import Q from "./index216.js";
17
- import X from "./index217.js";
18
- import ee from "./index218.js";
19
- import C from "./index219.js";
20
- import ae from "./index220.js";
21
- const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker__body" }, oe = { class: "bb-base-date-picker__controls" }, re = {
8
+ import s from "./index228.js";
9
+ import G from "./index229.js";
10
+ import J from "./index230.js";
11
+ import K from "./index231.js";
12
+ import Q from "./index232.js";
13
+ import X from "./index233.js";
14
+ import ee from "./index234.js";
15
+ import { hash as M } from "./index212.js";
16
+ import { last as ae } from "./index235.js";
17
+ import { useLogger as te } from "./index218.js";
18
+ import oe from "./index236.js";
19
+ import le from "./index237.js";
20
+ import re from "./index238.js";
21
+ import B from "./index239.js";
22
+ import se from "./index240.js";
23
+ import { useLocale as de } from "./index224.js";
24
+ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
22
25
  style: { transform: "rotate(180deg)" },
23
26
  viewBox: "0 0 24 24",
24
27
  width: "24px",
25
28
  xmlns: "http://www.w3.org/2000/svg"
26
- }, se = { class: "bb-base-date-picker__content" }, Se = /* @__PURE__ */ z({
29
+ }, be = { class: "sr-only" }, ve = { class: "bb-base-date-picker__content" }, Ie = /* @__PURE__ */ E({
27
30
  __name: "BaseDatePicker",
28
31
  props: {
29
32
  disabled: { type: Boolean },
@@ -39,79 +42,83 @@ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker_
39
42
  selectable: {}
40
43
  },
41
44
  emits: ["update:modelValue"],
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
+ setup(L, { expose: O, emit: S }) {
46
+ s.extend(ee), s.extend(X), s.extend(G), s.extend(J);
47
+ const $ = { it: K, en: Q };
48
+ W(() => {
49
+ s.locale($[C.locale]);
50
+ });
51
+ const P = S, o = L, { t: p } = de();
45
52
  s.updateLocale("it", {
46
- weekStart: t.firstDayOfWeek
53
+ weekStart: o.firstDayOfWeek
47
54
  });
48
- const S = t.id || H().id, c = K();
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(
55
+ const A = o.id || F().id, y = te();
56
+ o.multiple && o.range && y.throw("Date picker cannot be both multiple and range."), (o.multiple || o.range) && (Array.isArray(o.modelValue) || y.throw(
50
57
  "Date picker is set to select multiple dates but modelValue is not an array."
51
58
  ));
52
- const l = b(s()), v = (e) => {
59
+ const a = v(s()), k = (e) => {
53
60
  if (e)
54
61
  if (Array.isArray(e)) {
55
62
  if (e.length) {
56
- if (e.map((d) => s(d).valueOf()).includes(l.value.valueOf()))
63
+ if (e.map((d) => s(d).valueOf()).includes(a.value.valueOf()))
57
64
  return;
58
- l.value = s(J(e)).startOf("day");
65
+ a.value = s(ae(e)).startOf("day");
59
66
  return;
60
67
  }
61
68
  } else
62
- l.value = s(e).startOf("day");
69
+ a.value = s(e).startOf("day");
63
70
  else
64
- l.value = s().startOf("day");
71
+ a.value = s().startOf("day");
65
72
  };
66
- v(t.modelValue);
67
- const o = b("day"), y = (e) => {
68
- o.value === e ? o.value = "day" : o.value = e;
69
- }, $ = (e) => {
70
- l.value = l.value.set("month", e);
71
- }, L = () => {
72
- l.value = l.value.add(1, "month");
73
- }, A = () => {
74
- l.value = l.value.subtract(1, "month");
73
+ k(o.modelValue);
74
+ const l = v("day"), h = (e) => {
75
+ l.value === e ? l.value = "day" : l.value = e;
75
76
  }, D = (e) => {
76
- l.value = l.value.set("year", e);
77
- }, f = b(t.modelValue), N = (e) => {
78
- f.value = e, O("update:modelValue", e);
77
+ a.value = a.value.set("month", e);
78
+ }, N = () => {
79
+ a.value = a.value.add(1, "month");
80
+ }, Y = () => {
81
+ a.value = a.value.subtract(1, "month");
82
+ }, U = (e) => {
83
+ a.value = a.value.set("year", e);
84
+ }, b = v(o.modelValue), x = (e) => {
85
+ b.value = e, P("update:modelValue", e);
79
86
  };
80
- return U(
81
- () => t.modelValue,
87
+ return I(
88
+ () => o.modelValue,
82
89
  () => {
83
- h(t.modelValue) !== h(f.value) && (f.value = t.modelValue, v(t.modelValue));
90
+ M(o.modelValue) !== M(b.value) && (b.value = o.modelValue, k(o.modelValue));
84
91
  }
85
- ), _({
92
+ ), O({
86
93
  resetStatus: () => {
87
- o.value = "day";
94
+ l.value = "day";
88
95
  }
89
- }), (e, a) => (m(), k("div", le, [
90
- i(X, {
91
- cursor: l.value,
96
+ }), (e, t) => (c(), w("div", ie, [
97
+ n(le, {
98
+ cursor: a.value,
92
99
  disabled: !!e.disabled,
93
100
  hidden: !e.header
94
101
  }, null, 8, ["cursor", "disabled", "hidden"]),
95
- r("div", te, [
96
- r("div", oe, [
97
- i(u(p), {
102
+ r("div", ne, [
103
+ r("div", ue, [
104
+ n(i(f), {
98
105
  class: "bb-base-date-picker__control bb-base-date-picker__month-control",
99
106
  disabled: e.disabled,
100
- onClick: a[0] || (a[0] = (d) => y("month"))
107
+ onClick: t[0] || (t[0] = (d) => h("month"))
101
108
  }, {
102
- default: n(() => [
103
- P(W(l.value.format("MMMM YYYY")) + " ", 1),
104
- a[5] || (a[5] = r("span", { class: "sr-only" }, "Seleziona un mese", -1))
109
+ default: u(() => [
110
+ T(m(a.value.locale(i(C).locale).format("MMMM YYYY")) + " ", 1),
111
+ r("span", me, m(i(p)("datePicker.monthLabel")), 1)
105
112
  ]),
106
113
  _: 1
107
114
  }, 8, ["disabled"]),
108
- i(u(p), {
115
+ n(i(f), {
109
116
  class: "bb-base-date-picker__control bb-base-date-picker__year-control",
110
117
  disabled: e.disabled,
111
- onClick: a[1] || (a[1] = (d) => y("year"))
118
+ onClick: t[1] || (t[1] = (d) => h("year"))
112
119
  }, {
113
- default: n(() => a[6] || (a[6] = [
114
- r("svg", {
120
+ default: u(() => [
121
+ t[5] || (t[5] = r("svg", {
115
122
  fill: "none",
116
123
  height: "6",
117
124
  viewBox: "0 0 10 6",
@@ -122,18 +129,18 @@ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker_
122
129
  d: "M5.24124 5.81871L9.52771 1.39839C9.79517 1.12257 9.63305 0.595276 9.28077 0.595276H0.707839C0.355562 0.595276 0.193433 1.12257 0.460901 1.39839L4.74736 5.81871C4.88946 5.96524 5.09914 5.96524 5.24124 5.81871Z",
123
130
  fill: "currentColor"
124
131
  })
125
- ], -1),
126
- r("span", { class: "sr-only" }, "Seleziona anno", -1)
127
- ])),
132
+ ], -1)),
133
+ r("span", pe, m(i(p)("datePicker.yearLabel")), 1)
134
+ ]),
128
135
  _: 1
129
136
  }, 8, ["disabled"]),
130
- i(u(p), {
137
+ n(i(f), {
131
138
  class: "bb-base-date-picker__control",
132
- disabled: e.disabled || o.value !== "day",
133
- onClick: A
139
+ disabled: e.disabled || l.value !== "day",
140
+ onClick: Y
134
141
  }, {
135
- default: n(() => a[7] || (a[7] = [
136
- r("svg", {
142
+ default: u(() => [
143
+ t[6] || (t[6] = r("svg", {
137
144
  viewBox: "0 0 24 24",
138
145
  width: "24px",
139
146
  xmlns: "http://www.w3.org/2000/svg"
@@ -142,36 +149,36 @@ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker_
142
149
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
143
150
  fill: "currentColor"
144
151
  })
145
- ], -1),
146
- r("span", { class: "sr-only" }, "Vai indietro di un mese", -1)
147
- ])),
152
+ ], -1)),
153
+ r("span", ce, m(i(p)("datePicker.previousMonthLabel")), 1)
154
+ ]),
148
155
  _: 1
149
156
  }, 8, ["disabled"]),
150
- i(u(p), {
157
+ n(i(f), {
151
158
  class: "bb-base-date-picker__control",
152
- disabled: e.disabled || o.value !== "day",
153
- onClick: L
159
+ disabled: e.disabled || l.value !== "day",
160
+ onClick: N
154
161
  }, {
155
- default: n(() => [
156
- (m(), k("svg", re, a[8] || (a[8] = [
162
+ default: u(() => [
163
+ (c(), w("svg", fe, t[7] || (t[7] = [
157
164
  r("path", {
158
165
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
159
166
  fill: "currentColor"
160
167
  }, null, -1)
161
168
  ]))),
162
- a[9] || (a[9] = r("span", { class: "sr-only" }, "Vai avanti di un mese", -1))
169
+ r("span", be, m(i(p)("datePicker.nextMonthLabel")), 1)
163
170
  ]),
164
171
  _: 1
165
172
  }, 8, ["disabled"])
166
173
  ]),
167
- r("div", se, [
168
- i(Q, {
169
- id: u(S),
170
- current: o.value === "day",
171
- cursor: l.value,
174
+ r("div", ve, [
175
+ n(oe, {
176
+ id: i(A),
177
+ current: l.value === "day",
178
+ cursor: a.value,
172
179
  disabled: !!e.disabled,
173
180
  "first-day-of-week": e.firstDayOfWeek,
174
- inert: o.value !== "day",
181
+ inert: l.value !== "day",
175
182
  max: e.max,
176
183
  min: e.min,
177
184
  "model-value": e.modelValue,
@@ -179,45 +186,45 @@ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker_
179
186
  range: e.range,
180
187
  readonly: e.readonly,
181
188
  selectable: e.selectable,
182
- "onUpdate:cursor": a[2] || (a[2] = (d) => l.value = d),
183
- "onUpdate:modelValue": N
184
- }, x({ _: 2 }, [
185
- E(e.$slots, (d, g) => ({
189
+ "onUpdate:cursor": t[2] || (t[2] = (d) => a.value = d),
190
+ "onUpdate:modelValue": x
191
+ }, j({ _: 2 }, [
192
+ H(e.$slots, (d, g) => ({
186
193
  name: g,
187
- fn: n((Y) => [
188
- I(e.$slots, g, T(j(Y)))
194
+ fn: u((z) => [
195
+ R(e.$slots, g, Z(q(z)))
189
196
  ])
190
197
  }))
191
198
  ]), 1032, ["id", "current", "cursor", "disabled", "first-day-of-week", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
192
- i(C, {
199
+ n(B, {
193
200
  direction: "right",
194
201
  duration: 500,
195
202
  gap: 30
196
203
  }, {
197
- default: n(() => [
198
- o.value === "month" ? (m(), w(ee, {
204
+ default: u(() => [
205
+ l.value === "month" ? (c(), _(re, {
199
206
  key: 0,
200
- cursor: l.value,
207
+ cursor: a.value,
201
208
  disabled: !!e.disabled,
202
- "onUpdate:month": a[3] || (a[3] = (d) => {
203
- $(d), o.value = "day";
209
+ "onUpdate:month": t[3] || (t[3] = (d) => {
210
+ D(d), l.value = "day";
204
211
  })
205
212
  }, null, 8, ["cursor", "disabled"])) : V("", !0)
206
213
  ]),
207
214
  _: 1
208
215
  }),
209
- i(C, {
216
+ n(B, {
210
217
  direction: "top",
211
218
  duration: 500,
212
219
  gap: 30
213
220
  }, {
214
- default: n(() => [
215
- o.value === "year" ? (m(), w(ae, {
221
+ default: u(() => [
222
+ l.value === "year" ? (c(), _(se, {
216
223
  key: 0,
217
- cursor: l.value,
224
+ cursor: a.value,
218
225
  disabled: !!e.disabled,
219
- "onUpdate:year": a[4] || (a[4] = (d) => {
220
- D(d), o.value = "day";
226
+ "onUpdate:year": t[4] || (t[4] = (d) => {
227
+ U(d), l.value = "day";
221
228
  })
222
229
  }, null, 8, ["cursor", "disabled"])) : V("", !0)
223
230
  ]),
@@ -229,5 +236,5 @@ const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker_
229
236
  }
230
237
  });
231
238
  export {
232
- Se as default
239
+ Ie as default
233
240
  };
package/dist/index210.js CHANGED
@@ -1,21 +1,50 @@
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 { computed as d, unref as s } from "vue";
2
+ import { useItemText as y } from "./index262.js";
3
+ import { useItemValue as x } from "./index263.js";
4
+ import { hash as w } from "./index212.js";
5
+ import { useLogger as D } from "./index218.js";
6
+ const { getItemText: O } = y(), { getItemValue: V } = x(), { warn: H } = D(), T = (i, l, t, a, c) => l || i.disabled ? !0 : typeof t == "function" ? !t(i) : !!(typeof t == "boolean" && !t || a && c >= a), q = ({
7
+ items: i,
8
+ disabled: l,
9
+ selectable: t,
10
+ itemText: a,
11
+ itemValue: c,
12
+ selectedIndexedByHash: p,
13
+ max: b = 1 / 0
14
+ }) => {
15
+ const v = d(() => s(l)), f = d(() => s(i)), h = Object.keys(p.value).length, g = s(b), m = (e) => {
16
+ const n = V(e, s(c)), o = w(n), u = O(e, s(a)), r = p.value[o] !== void 0, I = T(
17
+ e,
18
+ v.value,
19
+ t,
20
+ g,
21
+ h
22
+ );
23
+ return {
24
+ item: e,
25
+ text: u,
26
+ value: n,
27
+ valueHash: o,
28
+ selected: r,
29
+ disabled: s(I)
30
+ };
31
+ };
32
+ return {
33
+ options: d(() => {
34
+ const e = [], n = /* @__PURE__ */ new Set();
35
+ for (let o = 0; o < f.value.length; o++) {
36
+ const u = f.value[o];
37
+ u.disabled && H(
38
+ "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
39
+ );
40
+ const r = m(u);
41
+ n.has(r.valueHash) || (n.add(r.valueHash), e.push(r));
42
+ }
43
+ return e;
44
+ }),
45
+ createOption: m
46
+ };
47
+ };
19
48
  export {
20
- p as default
49
+ q as useBaseOptions
21
50
  };
package/dist/index211.js CHANGED
@@ -1,21 +1,17 @@
1
- import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index268.js";
2
- import { __module as n } from "./index273.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);
1
+ import { isNil as f } from "./index258.js";
2
+ import { computed as t, unref as o } from "vue";
3
+ const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
4
+ const i = t(
5
+ () => new Array().concat(o(e))
6
+ ), s = t(() => i.value.reduce(
7
+ (r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
8
+ { coherent: [], incoherent: [] }
9
+ )), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
10
+ return {
11
+ status: s,
12
+ coherent: c
13
+ };
14
+ };
19
15
  export {
20
- x as default
16
+ a as useCoherence
21
17
  };
package/dist/index212.js CHANGED
@@ -1,29 +1,5 @@
1
- import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index268.js";
2
- import { __module as n } from "./index274.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;
16
- }
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);
1
+ import { hash as o } from "./index264.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
27
3
  export {
28
- x as default
4
+ t as hash
29
5
  };
package/dist/index213.js CHANGED
@@ -1,5 +1,14 @@
1
- import { hash as o } from "./index279.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
1
+ import { hash as e } from "./index212.js";
2
+ import { debouncedWatch as s } from "./index248.js";
3
+ const n = (o, c, h) => {
4
+ s(
5
+ o,
6
+ (r, t) => {
7
+ e(r) !== e(t) && c(r, t);
8
+ },
9
+ h
10
+ );
11
+ };
3
12
  export {
4
- t as hash
13
+ n as useHashedWatcher
5
14
  };
package/dist/index214.js CHANGED
@@ -1,4 +1,18 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { isNotNil as n } from "./index134.js";
2
+ import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
3
+ const h = ({
4
+ fn: i,
5
+ onStart: s,
6
+ multiple: f,
7
+ currentValue: o
8
+ }) => {
9
+ const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
10
+ e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
11
+ };
12
+ return a && (u(r), c(async () => {
13
+ l.value || await r();
14
+ })), { isPrefilling: e, hasPrefilled: l, prefill: r };
15
+ };
2
16
  export {
3
- e as last
17
+ h as usePrefill
4
18
  };
package/dist/index215.js CHANGED
@@ -1,10 +1,4 @@
1
- const o = "bitboss-ui | ", e = () => ({
2
- warn: (r) => console.warn(`${o}${r}`),
3
- error: (r) => console.error(`${o}${r}`),
4
- throw: (r) => {
5
- throw new Error(`${o}${r}`);
6
- }
7
- });
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
8
2
  export {
9
- e as useLogger
3
+ s as isCssColor
10
4
  };