bitboss-ui 2.0.101 → 2.0.103

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 (172) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +10 -16
  2. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +109 -7
  3. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -16
  4. package/dist/composables/useBaseOptions.d.ts +31 -0
  5. package/dist/composables/useCoherence.d.ts +20 -0
  6. package/dist/composables/useHashedWatcher.d.ts +2 -0
  7. package/dist/composables/useIndexById.d.ts +11 -0
  8. package/dist/composables/useItemsGetter.d.ts +12 -0
  9. package/dist/composables/usePrefill.d.ts +12 -0
  10. package/dist/index100.js +88 -60
  11. package/dist/index101.js +10 -13
  12. package/dist/index111.js +154 -126
  13. package/dist/index119.js +1 -1
  14. package/dist/index121.js +4 -4
  15. package/dist/index123.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index129.js +1 -1
  19. package/dist/index13.js +54 -45
  20. package/dist/index131.js +1 -1
  21. package/dist/index132.js +69 -65
  22. package/dist/index133.js +2 -2
  23. package/dist/index15.js +4 -4
  24. package/dist/index17.js +3 -3
  25. package/dist/index19.js +126 -82
  26. package/dist/index205.js +52 -80
  27. package/dist/index207.js +13 -5
  28. package/dist/index208.js +19 -124
  29. package/dist/index209.js +4 -19
  30. package/dist/index21.js +14 -14
  31. package/dist/index210.js +124 -14
  32. package/dist/index211.js +5 -16
  33. package/dist/index212.js +125 -2
  34. package/dist/index213.js +19 -2
  35. package/dist/index214.js +15 -40
  36. package/dist/index215.js +15 -19
  37. package/dist/index216.js +2 -6
  38. package/dist/index217.js +2 -53
  39. package/dist/index218.js +43 -0
  40. package/dist/index219.js +6 -13
  41. package/dist/index220.js +2 -2
  42. package/dist/index222.js +3 -3
  43. package/dist/index223.js +2 -4
  44. package/dist/index224.js +4 -3
  45. package/dist/index225.js +2 -8
  46. package/dist/index226.js +3 -2
  47. package/dist/index227.js +7 -4
  48. package/dist/index228.js +8 -2
  49. package/dist/index229.js +3 -2
  50. package/dist/index23.js +13 -13
  51. package/dist/index230.js +84 -19
  52. package/dist/index232.js +8 -3
  53. package/dist/index233.js +23 -248
  54. package/dist/index234.js +17 -52
  55. package/dist/index235.js +47 -43
  56. package/dist/index236.js +15 -5
  57. package/dist/index237.js +12 -60
  58. package/dist/index238.js +16 -3
  59. package/dist/index239.js +19 -7
  60. package/dist/index240.js +25 -166
  61. package/dist/index241.js +243 -77
  62. package/dist/index242.js +54 -0
  63. package/dist/index243.js +43 -7
  64. package/dist/index244.js +5 -2
  65. package/dist/index245.js +59 -17
  66. package/dist/index246.js +2 -106
  67. package/dist/index247.js +117 -0
  68. package/dist/index248.js +3 -100
  69. package/dist/index249.js +4 -0
  70. package/dist/index25.js +5 -5
  71. package/dist/index250.js +18 -2
  72. package/dist/index251.js +106 -2
  73. package/dist/index253.js +100 -3
  74. package/dist/index255.js +12 -23
  75. package/dist/index256.js +2 -89
  76. package/dist/index257.js +4 -0
  77. package/dist/index258.js +10 -6
  78. package/dist/index259.js +3 -16
  79. package/dist/index260.js +6 -3
  80. package/dist/index261.js +18 -0
  81. package/dist/index262.js +8 -6
  82. package/dist/index263.js +23 -176
  83. package/dist/index264.js +89 -9
  84. package/dist/index266.js +3 -281
  85. package/dist/index268.js +7 -2
  86. package/dist/index269.js +176 -2
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +281 -2
  89. package/dist/index271.js +6 -2
  90. package/dist/index272.js +2 -2
  91. package/dist/index273.js +2 -126
  92. package/dist/index274.js +2 -431
  93. package/dist/index275.js +2 -22
  94. package/dist/index276.js +4 -0
  95. package/dist/index277.js +126 -2
  96. package/dist/index278.js +430 -3
  97. package/dist/index279.js +20 -7
  98. package/dist/index281.js +2 -2
  99. package/dist/index282.js +4 -2
  100. package/dist/index283.js +28 -2
  101. package/dist/index284.js +200 -2
  102. package/dist/index285.js +436 -2
  103. package/dist/index286.js +127 -2
  104. package/dist/index287.js +85 -24
  105. package/dist/index288.js +9 -22
  106. package/dist/{index302.js → index289.js} +1 -1
  107. package/dist/index29.js +3 -3
  108. package/dist/index290.js +6 -435
  109. package/dist/index291.js +10 -126
  110. package/dist/index292.js +14 -197
  111. package/dist/index293.js +9 -89
  112. package/dist/index294.js +8 -3
  113. package/dist/index295.js +2 -12
  114. package/dist/index296.js +2 -9
  115. package/dist/index297.js +2 -17
  116. package/dist/index298.js +2 -4
  117. package/dist/index299.js +2 -7
  118. package/dist/index300.js +2 -11
  119. package/dist/index301.js +22 -3
  120. package/dist/index303.js +224 -213
  121. package/dist/index304.js +3 -5
  122. package/dist/index305.js +3 -2
  123. package/dist/index306.js +206 -59
  124. package/dist/index307.js +2 -3
  125. package/dist/index308.js +5 -3
  126. package/dist/index309.js +66 -3
  127. package/dist/index31.js +2 -2
  128. package/dist/index310.js +3 -58
  129. package/dist/index311.js +3 -5
  130. package/dist/index312.js +57 -7
  131. package/dist/index313.js +1 -1
  132. package/dist/index314.js +4 -3
  133. package/dist/index315.js +7 -6
  134. package/dist/index316.js +3 -7
  135. package/dist/index317.js +3 -18
  136. package/dist/index320.js +6 -46
  137. package/dist/index321.js +19 -2
  138. package/dist/index322.js +9 -0
  139. package/dist/index323.js +47 -480
  140. package/dist/index324.js +2 -424
  141. package/dist/index326.js +480 -2
  142. package/dist/index327.js +426 -0
  143. package/dist/index329.js +4 -0
  144. package/dist/index33.js +102 -61
  145. package/dist/index35.js +3 -3
  146. package/dist/index37.js +284 -244
  147. package/dist/index39.js +5 -5
  148. package/dist/index41.js +2 -2
  149. package/dist/index43.js +129 -84
  150. package/dist/index45.js +122 -120
  151. package/dist/index47.js +2 -2
  152. package/dist/index49.js +2 -2
  153. package/dist/index55.js +1 -1
  154. package/dist/index57.js +2 -2
  155. package/dist/index61.js +13 -9
  156. package/dist/index75.js +3 -3
  157. package/dist/index79.js +2 -2
  158. package/dist/index81.js +1 -1
  159. package/dist/index84.js +2 -2
  160. package/dist/index86.js +1 -1
  161. package/dist/index88.js +4 -4
  162. package/dist/index90.js +1 -1
  163. package/package.json +1 -1
  164. package/dist/composables/useOptions.d.ts +0 -43
  165. package/dist/index206.js +0 -128
  166. package/dist/index231.js +0 -29
  167. package/dist/index252.js +0 -12
  168. package/dist/index254.js +0 -11
  169. package/dist/index265.js +0 -226
  170. package/dist/index267.js +0 -8
  171. package/dist/index280.js +0 -10
  172. /package/dist/{index325.js → index328.js} +0 -0
package/dist/index19.js CHANGED
@@ -1,11 +1,17 @@
1
- import { defineComponent as w, ref as v, toRef as l, openBlock as O, createBlock as x, unref as d, withCtx as i, renderSlot as s, normalizeProps as p, guardReactiveProps as f, createVNode as F, mergeProps as g } from "vue";
2
- import { useOptions as M } from "./index240.js";
3
- import H from "./index17.js";
1
+ import { defineComponent as z, ref as B, toRef as d, openBlock as G, createBlock as R, unref as u, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as W, mergeProps as w } from "vue";
2
+ import K from "./index17.js";
4
3
  /* empty css */
5
- import P from "./index241.js";
4
+ import N from "./index230.js";
6
5
  /* empty css */
7
- import { useLocale as z } from "./index243.js";
8
- const N = /* @__PURE__ */ w({
6
+ import { useLocale as U } from "./index232.js";
7
+ import { useItemsGetter as q } from "./index233.js";
8
+ import { useIndexById as C } from "./index234.js";
9
+ import { useBaseOptions as J } from "./index235.js";
10
+ import { useCoherence as Q } from "./index236.js";
11
+ import { hash as X } from "./index229.js";
12
+ import { useHashedWatcher as E } from "./index237.js";
13
+ import { usePrefill as Y } from "./index238.js";
14
+ const me = /* @__PURE__ */ z({
9
15
  __name: "BaseCheckboxGroup",
10
16
  props: {
11
17
  ariaDescribedby: {},
@@ -23,7 +29,7 @@ const N = /* @__PURE__ */ w({
23
29
  itemText: {},
24
30
  itemValue: {},
25
31
  loadingText: {},
26
- max: {},
32
+ max: { default: 1 / 0 },
27
33
  modelValue: {},
28
34
  modelValueDebounceTime: { default: 0 },
29
35
  name: {},
@@ -31,110 +37,148 @@ const N = /* @__PURE__ */ w({
31
37
  readonly: { type: Boolean }
32
38
  },
33
39
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
34
- setup(y, { emit: T }) {
35
- const n = y, t = T, { t: b } = z(), h = v(), r = v(!1), {
36
- innerLoading: k,
37
- options: D,
38
- selectOption: L,
39
- unselectOption: C
40
- } = M({
41
- dependencies: l(n, "dependencies"),
42
- depsDebounceTime: n.depsDebounceTime,
43
- disabled: l(n, "disabled"),
44
- emit: t,
45
- enforceCoherence: n.enforceCoherence,
46
- items: l(n, "items"),
47
- itemText: n.itemText,
48
- itemValue: n.itemValue,
49
- max: n.max,
50
- modelValue: l(n, "modelValue"),
51
- modelValueDebounceTime: n.modelValueDebounceTime,
40
+ setup(L, { emit: D }) {
41
+ const o = L, a = D;
42
+ if (!Array.isArray(o.modelValue))
43
+ throw new Error("Model value must be an array in checkbox group.");
44
+ const { t: y } = U(), g = B(), i = B(!1), {
45
+ getter: c,
46
+ items: I,
47
+ loading: $
48
+ } = q({
49
+ items: d(o, "items"),
50
+ debounce: 0
51
+ }), m = () => {
52
+ o.enforceCoherence && !T.value && a("update:modelValue", F.value.coherent);
53
+ }, { hasPrefilled: x } = Y({
54
+ onStart: !0,
55
+ currentValue: o.modelValue,
52
56
  multiple: !0,
53
- prefill: !0,
54
- queryDebounceTime: 0,
55
- resetQueryOnOptionSelected: !1,
56
- stash: !1
57
- }), E = (e) => {
58
- if (n.id)
59
- return [n.id, e.valueHash].filter(Boolean).join("-");
60
- }, V = (e, a) => {
61
- t("change", e), a.selected ? C(a) : L(a);
62
- }, B = {
63
- onBlur: (e) => t("blur", e),
64
- onClick: (e) => t("click", e),
57
+ fn: async ({ prefill: e }) => {
58
+ await c(e, o.modelValue), m();
59
+ }
60
+ }), { data: V } = C({
61
+ items: d(o, "modelValue")
62
+ }), { options: k } = J({
63
+ disabled: d(o, "disabled"),
64
+ items: I,
65
+ itemText: o.itemText,
66
+ itemValue: o.itemValue,
67
+ max: o.max,
68
+ selectable: !0,
69
+ selectedIndexedByHash: V
70
+ }), H = async (e) => {
71
+ a("update:modelValue", o.modelValue.concat(e.value));
72
+ }, M = async (e) => {
73
+ const t = { ...V.value };
74
+ delete t[e.valueHash], a("update:modelValue", Object.values(t));
75
+ }, { data: P } = C({
76
+ items: k,
77
+ key: "valueHash"
78
+ }), { coherent: T, status: F } = Q({
79
+ modelValue: d(o, "modelValue"),
80
+ multiple: !0,
81
+ iteratee: (e) => !!P.value[X(e)]
82
+ });
83
+ let r = 0;
84
+ E(
85
+ () => o.modelValue,
86
+ async () => {
87
+ r++, T.value || (await c(!1, o.modelValue), m()), r--;
88
+ },
89
+ {
90
+ debounce: o.modelValueDebounceTime
91
+ }
92
+ ), E(
93
+ () => [o.dependencies, o.items],
94
+ async () => {
95
+ x.value && (r++, await c(!1, o.modelValue), r === 1 && m(), r--);
96
+ },
97
+ {
98
+ debounce: o.depsDebounceTime
99
+ }
100
+ );
101
+ const O = (e) => {
102
+ if (o.id)
103
+ return [o.id, e.valueHash].filter(Boolean).join("-");
104
+ }, S = (e, t) => {
105
+ a("change", e), t.selected ? M(t) : H(t);
106
+ }, A = {
107
+ onBlur: (e) => a("blur", e),
108
+ onClick: (e) => a("click", e),
65
109
  onFocus: (e) => {
66
- t("focus", e), r.value || (document.addEventListener("focusin", u, { passive: !0 }), document.addEventListener("click", c, { passive: !0 }), r.value = !0);
110
+ a("focus", e), i.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), i.value = !0);
67
111
  },
68
- onInput: (e) => t("input", e),
69
- onKeydown: (e) => t("keydown", e),
70
- onMousedown: (e) => t("mousedown", e),
71
- onMouseup: (e) => t("mouseup", e)
72
- }, u = (e) => {
73
- var a;
74
- e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
75
- }, c = (e) => {
76
- var a;
77
- e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
112
+ onInput: (e) => a("input", e),
113
+ onKeydown: (e) => a("keydown", e),
114
+ onMousedown: (e) => a("mousedown", e),
115
+ onMouseup: (e) => a("mouseup", e)
116
+ }, p = (e) => {
117
+ var t;
118
+ e.target instanceof HTMLElement && ((t = g.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
119
+ }, f = (e) => {
120
+ var t;
121
+ e.target instanceof HTMLElement && ((t = g.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
78
122
  };
79
- return (e, a) => (O(), x(P, {
123
+ return (e, t) => (G(), R(N, {
80
124
  class: "bb-base-checkbox-group",
81
125
  direction: e.direction,
82
126
  "has-errors": e.hasErrors,
83
127
  "hide-label": e.hideLabel,
84
- loading: !!d(k),
85
- "loading-text": e.loadingText || d(b)("common.loadingText"),
86
- "no-data-text": e.noDataText || d(b)("common.noDataText"),
87
- options: d(D)
128
+ loading: !!u($),
129
+ "loading-text": e.loadingText || u(y)("common.loadingText"),
130
+ "no-data-text": e.noDataText || u(y)("common.noDataText"),
131
+ options: u(k)
88
132
  }, {
89
- prepend: i(() => [
90
- s(e.$slots, "prepend")
133
+ prepend: s(() => [
134
+ l(e.$slots, "prepend")
91
135
  ]),
92
- loading: i(() => [
93
- s(e.$slots, "loading")
136
+ loading: s(() => [
137
+ l(e.$slots, "loading")
94
138
  ]),
95
- "no-data": i(() => [
96
- s(e.$slots, "no-data")
139
+ "no-data": s(() => [
140
+ l(e.$slots, "no-data")
97
141
  ]),
98
- label: i((o) => [
99
- s(e.$slots, "label", p(f(o)))
142
+ label: s((n) => [
143
+ l(e.$slots, "label", b(v(n)))
100
144
  ]),
101
- "option:prepend": i((o) => [
102
- s(e.$slots, "option:prepend", p(f(o)))
145
+ "option:prepend": s((n) => [
146
+ l(e.$slots, "option:prepend", b(v(n)))
103
147
  ]),
104
- input: i(({ option: o, index: $ }) => [
105
- F(H, g({
106
- id: E(o),
148
+ input: s(({ option: n, index: j }) => [
149
+ W(K, w({
150
+ id: O(n),
107
151
  "aria-describedby": e.ariaDescribedby,
108
- autofocus: e.autofocus && !$,
109
- checked: o.selected,
152
+ autofocus: e.autofocus && !j,
153
+ checked: n.selected,
110
154
  color: e.color,
111
- disabled: o.disabled,
155
+ disabled: n.disabled,
112
156
  "has-errors": e.hasErrors,
113
157
  name: e.name,
114
158
  readonly: e.readonly,
115
- "true-value": o.value
116
- }, B, {
117
- onChange: (m) => V(m, o)
159
+ "true-value": n.value
160
+ }, A, {
161
+ onChange: (h) => S(h, n)
118
162
  }), {
119
- icon: i((m) => [
120
- s(e.$slots, "icon", g({
121
- item: o.item,
122
- text: o.text
123
- }, m))
163
+ icon: s((h) => [
164
+ l(e.$slots, "icon", w({
165
+ item: n.item,
166
+ text: n.text
167
+ }, h))
124
168
  ]),
125
169
  _: 2
126
170
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
127
171
  ]),
128
- "option:append": i((o) => [
129
- s(e.$slots, "option:append", p(f(o)))
172
+ "option:append": s((n) => [
173
+ l(e.$slots, "option:append", b(v(n)))
130
174
  ]),
131
- append: i(() => [
132
- s(e.$slots, "append")
175
+ append: s(() => [
176
+ l(e.$slots, "append")
133
177
  ]),
134
178
  _: 3
135
179
  }, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
136
180
  }
137
181
  });
138
182
  export {
139
- N as default
183
+ me as default
140
184
  };
package/dist/index205.js CHANGED
@@ -1,83 +1,55 @@
1
- import { getCurrentScope as g, onScopeDispose as D, unref as x, onMounted as O, nextTick as S, isRef as C, getCurrentInstance as F } from "vue";
2
- function G(e) {
3
- return g() ? (D(e), !0) : !1;
4
- }
5
- function d(e) {
6
- return typeof e == "function" ? e() : x(e);
7
- }
8
- const L = typeof window < "u" && typeof document < "u";
9
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
11
- };
12
- function h(e, r) {
13
- function t(...n) {
14
- return new Promise((o, i) => {
15
- Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
16
- });
1
+ import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ import a from "./index127.js";
5
+ /* empty css */
6
+ import $ from "./index129.js";
7
+ /* empty css */
8
+ import b from "./index313.js";
9
+ const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
10
+ __name: "CommonInputInnerContainer",
11
+ props: {
12
+ "append:icon": {},
13
+ "prepend:icon": {},
14
+ preventFocus: { type: Boolean }
15
+ },
16
+ setup(m) {
17
+ const u = m, o = d(), l = () => {
18
+ var n;
19
+ !o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
20
+ };
21
+ return (n, C) => (r(), _("span", {
22
+ ref_key: "container",
23
+ ref: o,
24
+ class: "bb-common-input-inner-container",
25
+ onClick: l
26
+ }, [
27
+ e(n.$slots, "prepend", {}, () => [
28
+ t("span", y, [
29
+ e(n.$slots, "prefix")
30
+ ])
31
+ ]),
32
+ n.$props["prepend:icon"] ? (r(), s(p(a), {
33
+ key: 0,
34
+ class: "bb-common-input-inner-container__prepend-icon",
35
+ type: n.$props["prepend:icon"]
36
+ }, null, 8, ["type"])) : i("", !0),
37
+ e(n.$slots, "default"),
38
+ n.$props["append:icon"] ? (r(), s(p(a), {
39
+ key: 1,
40
+ class: "bb-common-input-inner-container__append-icon",
41
+ type: n.$props["append:icon"]
42
+ }, null, 8, ["type"])) : i("", !0),
43
+ c(p($)),
44
+ c(b),
45
+ e(n.$slots, "append", {}, () => [
46
+ t("span", k, [
47
+ e(n.$slots, "suffix")
48
+ ])
49
+ ])
50
+ ], 512));
17
51
  }
18
- return t;
19
- }
20
- function W(e, r = {}) {
21
- let t, n, o = m;
22
- const i = (l) => {
23
- clearTimeout(l), o(), o = m;
24
- };
25
- return (l) => {
26
- const c = d(e), u = d(r.maxWait);
27
- return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
28
- o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
29
- t && i(t), n = null, s(l());
30
- }, u)), t = setTimeout(() => {
31
- n && i(n), n = null, s(l());
32
- }, c);
33
- });
34
- };
35
- }
36
- function M(...e) {
37
- let r = 0, t, n = !0, o = m, i, a, l, c, u;
38
- !C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
39
- const s = () => {
40
- t && (clearTimeout(t), t = void 0, o(), o = m);
41
- };
42
- return (w) => {
43
- const f = d(a), y = Date.now() - r, p = () => i = w();
44
- return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
45
- o = u ? j : b, t = setTimeout(() => {
46
- r = Date.now(), n = !0, b(p()), s();
47
- }, Math.max(0, f - y));
48
- })), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
49
- };
50
- }
51
- function R(e) {
52
- return F();
53
- }
54
- function E(e, r = 200, t = {}) {
55
- return h(
56
- W(r, t),
57
- e
58
- );
59
- }
60
- function I(e, r = 200, t = !1, n = !0, o = !1) {
61
- return h(
62
- M(r, t, n, o),
63
- e
64
- );
65
- }
66
- function N(e, r = !0, t) {
67
- R() ? O(e, t) : r ? e() : S(e);
68
- }
52
+ });
69
53
  export {
70
- h as createFilterWrapper,
71
- W as debounceFilter,
72
- R as getLifeCycleTarget,
73
- L as isClient,
74
- A as isObject,
75
- m as noop,
76
- V as notNullish,
77
- M as throttleFilter,
78
- d as toValue,
79
- N as tryOnMounted,
80
- G as tryOnScopeDispose,
81
- E as useDebounceFn,
82
- I as useThrottleFn
54
+ S as default
83
55
  };
package/dist/index207.js CHANGED
@@ -1,7 +1,15 @@
1
- import { getDefaultExportFromCjs as r } from "./index267.js";
2
- import { __require as o } from "./index266.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
+ /* empty css */
3
+ import r from "./index268.js";
4
+ const s = {}, c = { class: "bb-common-input-outer-container" };
5
+ function p(o, a) {
6
+ return t(), n("span", c, [
7
+ e(o.$slots, "prepend-outer"),
8
+ e(o.$slots, "default"),
9
+ e(o.$slots, "append-outer")
10
+ ]);
11
+ }
12
+ const i = /* @__PURE__ */ r(s, [["render", p]]);
5
13
  export {
6
- s as default
14
+ i as default
7
15
  };
package/dist/index208.js CHANGED
@@ -1,127 +1,22 @@
1
- import { getDefaultExportFromCjs as et, commonjsGlobal as nt } from "./index267.js";
2
- import { __module as B } from "./index269.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
- };
1
+ import { MaskInput as r } from "./index269.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);
120
15
  };
121
- });
122
- })(B);
123
- var ot = B.exports;
124
- const ht = /* @__PURE__ */ et(ot);
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
+ };
125
20
  export {
126
- ht as default
21
+ k as vMaska
127
22
  };
package/dist/index209.js CHANGED
@@ -1,21 +1,6 @@
1
- import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index267.js";
2
- import { __module as _ } from "./index270.js";
3
- import { __require as s } from "./index266.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
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
19
4
  export {
20
- p as default
5
+ x as isHex
21
6
  };
package/dist/index21.js CHANGED
@@ -4,20 +4,20 @@ import { defineComponent as z, ref as b, watch as U, openBlock as m, createEleme
4
4
  import { useId as H } from "./index8.js";
5
5
  import p from "./index13.js";
6
6
  /* empty css */
7
- import s from "./index207.js";
8
- import R from "./index210.js";
9
- import Z from "./index211.js";
10
- import q from "./index209.js";
11
- import F from "./index230.js";
12
- import G from "./index231.js";
13
- import { hash as h } from "./index232.js";
14
- import { last as J } from "./index213.js";
15
- import { useLogger as K } from "./index225.js";
16
- import Q from "./index233.js";
17
- import X from "./index234.js";
18
- import ee from "./index235.js";
19
- import C from "./index236.js";
20
- import ae from "./index237.js";
7
+ import s from "./index211.js";
8
+ import R from "./index214.js";
9
+ import Z from "./index215.js";
10
+ import q from "./index213.js";
11
+ import F from "./index239.js";
12
+ import G from "./index240.js";
13
+ import { hash as h } from "./index229.js";
14
+ import { last as J } from "./index217.js";
15
+ import { useLogger as K } from "./index228.js";
16
+ import Q from "./index241.js";
17
+ import X from "./index242.js";
18
+ import ee from "./index243.js";
19
+ import C from "./index244.js";
20
+ import ae from "./index245.js";
21
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",