bitboss-ui 2.0.119 → 2.0.121

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 (169) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +3 -15
  2. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +6 -1
  3. package/dist/components/CommonFloating.vue.d.ts +1 -0
  4. package/dist/index100.js +9 -9
  5. package/dist/index111.js +11 -11
  6. package/dist/index119.js +2 -2
  7. package/dist/index121.js +6 -6
  8. package/dist/index123.js +1 -1
  9. package/dist/index125.js +1 -1
  10. package/dist/index127.js +1 -1
  11. package/dist/index128.js +1 -1
  12. package/dist/index129.js +1 -1
  13. package/dist/index13.js +2 -2
  14. package/dist/index133.js +2 -2
  15. package/dist/index15.js +5 -5
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +8 -8
  18. package/dist/index207.js +7 -125
  19. package/dist/index208.js +3 -5
  20. package/dist/index209.js +2 -125
  21. package/dist/index21.js +16 -16
  22. package/dist/index210.js +4 -16
  23. package/dist/index211.js +2 -16
  24. package/dist/index212.js +86 -19
  25. package/dist/index214.js +25 -2
  26. package/dist/index215.js +17 -2
  27. package/dist/index216.js +50 -40
  28. package/dist/index217.js +15 -13
  29. package/dist/index218.js +11 -19
  30. package/dist/index219.js +16 -6
  31. package/dist/index220.js +5 -15
  32. package/dist/index221.js +124 -64
  33. package/dist/index222.js +18 -0
  34. package/dist/index223.js +16 -13
  35. package/dist/index224.js +19 -5
  36. package/dist/index225.js +15 -2
  37. package/dist/index226.js +2 -369
  38. package/dist/index227.js +2 -4
  39. package/dist/index228.js +40 -18
  40. package/dist/index229.js +13 -27
  41. package/dist/index23.js +136 -158
  42. package/dist/index230.js +20 -3
  43. package/dist/index231.js +5 -7
  44. package/dist/index232.js +82 -242
  45. package/dist/index234.js +60 -39
  46. package/dist/index236.js +13 -60
  47. package/dist/index237.js +2 -86
  48. package/dist/index238.js +6 -0
  49. package/dist/index239.js +3 -25
  50. package/dist/index240.js +3 -17
  51. package/dist/index241.js +7 -51
  52. package/dist/index242.js +15 -15
  53. package/dist/index243.js +19 -12
  54. package/dist/index244.js +27 -16
  55. package/dist/index245.js +250 -2
  56. package/dist/index246.js +52 -4
  57. package/dist/index247.js +44 -2
  58. package/dist/index248.js +5 -3
  59. package/dist/index249.js +60 -7
  60. package/dist/index25.js +46 -50
  61. package/dist/index250.js +2 -3
  62. package/dist/index251.js +2 -106
  63. package/dist/{index255.js → index252.js} +1 -1
  64. package/dist/index253.js +124 -98
  65. package/dist/index254.js +108 -0
  66. package/dist/index256.js +100 -12
  67. package/dist/index258.js +12 -2
  68. package/dist/index259.js +214 -2
  69. package/dist/index260.js +367 -8
  70. package/dist/index261.js +9 -2
  71. package/dist/index262.js +3 -6
  72. package/dist/index263.js +8 -15
  73. package/dist/index264.js +23 -9
  74. package/dist/index265.js +6 -23
  75. package/dist/index266.js +15 -89
  76. package/dist/index267.js +11 -0
  77. package/dist/index268.js +27 -8
  78. package/dist/index269.js +4 -281
  79. package/dist/index27.js +1 -1
  80. package/dist/index270.js +3 -6
  81. package/dist/index271.js +17 -2
  82. package/dist/index272.js +9 -2
  83. package/dist/index273.js +281 -2
  84. package/dist/index274.js +6 -2
  85. package/dist/index275.js +2 -2
  86. package/dist/index276.js +2 -2
  87. package/dist/index277.js +2 -126
  88. package/dist/index278.js +2 -431
  89. package/dist/index279.js +2 -176
  90. package/dist/index280.js +2 -2
  91. package/dist/index281.js +431 -3
  92. package/dist/index282.js +178 -0
  93. package/dist/index283.js +3 -7
  94. package/dist/index284.js +3 -22
  95. package/dist/index286.js +6 -6
  96. package/dist/index287.js +7 -11
  97. package/dist/index288.js +10 -435
  98. package/dist/index289.js +218 -121
  99. package/dist/index29.js +2 -2
  100. package/dist/index290.js +2 -200
  101. package/dist/index291.js +88 -3
  102. package/dist/index292.js +197 -25
  103. package/dist/index293.js +2 -3
  104. package/dist/index294.js +2 -17
  105. package/dist/index295.js +2 -9
  106. package/dist/index296.js +2 -2
  107. package/dist/index297.js +2 -2
  108. package/dist/index298.js +1 -1
  109. package/dist/index299.js +21 -1
  110. package/dist/index301.js +8 -2
  111. package/dist/index302.js +125 -21
  112. package/dist/index303.js +5 -0
  113. package/dist/index304.js +3 -89
  114. package/dist/index305.js +2 -8
  115. package/dist/index306.js +431 -219
  116. package/dist/index307.js +127 -3
  117. package/dist/index308.js +3 -3
  118. package/dist/index309.js +3 -2
  119. package/dist/index31.js +2 -2
  120. package/dist/index310.js +58 -2
  121. package/dist/index311.js +67 -5
  122. package/dist/index312.js +5 -67
  123. package/dist/index313.js +2 -3
  124. package/dist/index314.js +5 -3
  125. package/dist/index315.js +7 -57
  126. package/dist/index316.js +32 -4
  127. package/dist/index317.js +25 -7
  128. package/dist/index318.js +480 -7
  129. package/dist/index319.js +52 -32
  130. package/dist/index320.js +52 -25
  131. package/dist/index322.js +7 -53
  132. package/dist/index323.js +7 -53
  133. package/dist/index324.js +19 -3
  134. package/dist/index325.js +46 -6
  135. package/dist/index326.js +2 -19
  136. package/dist/{index332.js → index329.js} +1 -1
  137. package/dist/index33.js +8 -8
  138. package/dist/index331.js +46 -479
  139. package/dist/index35.js +4 -4
  140. package/dist/index37.js +22 -22
  141. package/dist/index39.js +4 -4
  142. package/dist/index41.js +2 -2
  143. package/dist/index43.js +8 -8
  144. package/dist/index45.js +8 -8
  145. package/dist/index47.js +2 -2
  146. package/dist/index49.js +2 -2
  147. package/dist/index53.js +1 -1
  148. package/dist/index55.js +1 -1
  149. package/dist/index57.js +2 -2
  150. package/dist/index61.js +3 -3
  151. package/dist/index75.js +3 -3
  152. package/dist/index77.js +1 -1
  153. package/dist/index79.js +2 -2
  154. package/dist/index81.js +1 -1
  155. package/dist/index84.js +4 -4
  156. package/dist/index86.js +2 -2
  157. package/dist/index88.js +5 -5
  158. package/dist/style.css +1 -1
  159. package/package.json +1 -1
  160. package/dist/components/Transitions/SlideBack.vue.d.ts +0 -25
  161. package/dist/index213.js +0 -17
  162. package/dist/index233.js +0 -54
  163. package/dist/index235.js +0 -7
  164. package/dist/index257.js +0 -216
  165. package/dist/index300.js +0 -4
  166. package/dist/index327.js +0 -49
  167. package/dist/index328.js +0 -4
  168. package/dist/index333.js +0 -49
  169. /package/dist/{index334.js → index330.js} +0 -0
package/dist/index23.js CHANGED
@@ -1,32 +1,30 @@
1
- import { defineComponent as oe, watchEffect as ne, ref as r, computed as v, watch as le, openBlock as D, createBlock as V, normalizeClass as $, withCtx as n, renderSlot as p, createVNode as E, unref as l, withDirectives as ie, createElementVNode as s, mergeProps as P, withModifiers as se, toDisplayString as _, normalizeStyle as ue, KeepAlive as de, createCommentVNode as A } from "vue";
2
- import { useFloating as ce } from "./index207.js";
3
- import o from "./index208.js";
4
- import pe from "./index209.js";
5
- import me from "./index210.js";
6
- import fe from "./index211.js";
7
- import be from "./index212.js";
8
- import ve from "./index213.js";
9
- import { identity as ye } from "./index214.js";
10
- import { last as ge } from "./index215.js";
11
- import { useFocusTrap as ke } from "./index216.js";
12
- import { useId as he } from "./index8.js";
13
- import { useIntersectionObserver as Me } from "./index132.js";
14
- import { useLocale as De } from "./index217.js";
15
- import { useMobile as Ve } from "./index9.js";
16
- import { vMaska as we } from "./index218.js";
17
- import { wait as Ce } from "./index130.js";
18
- import { waitFor as Ye } from "./index219.js";
19
- import Se from "./index21.js";
1
+ import { defineComponent as ee, watchEffect as te, ref as r, computed as D, watch as ae, openBlock as B, createBlock as O, normalizeClass as $, withCtx as n, renderSlot as p, createVNode as _, unref as l, withDirectives as re, createElementVNode as i, mergeProps as P, withModifiers as oe, toDisplayString as E, createCommentVNode as ne } from "vue";
2
+ import o from "./index220.js";
3
+ import le from "./index221.js";
4
+ import ie from "./index222.js";
5
+ import se from "./index223.js";
6
+ import ue from "./index224.js";
7
+ import de from "./index225.js";
8
+ import { identity as ce } from "./index226.js";
9
+ import { last as pe } from "./index227.js";
10
+ import { useFocusTrap as me } from "./index228.js";
11
+ import { useId as fe } from "./index8.js";
12
+ import { useIntersectionObserver as be } from "./index132.js";
13
+ import { useLocale as ve } from "./index229.js";
14
+ import { useMobile as ke } from "./index9.js";
15
+ import { vMaska as ge } from "./index230.js";
16
+ import { wait as ye } from "./index130.js";
17
+ import { waitFor as he } from "./index231.js";
18
+ import De from "./index21.js";
20
19
  /* empty css */
21
- import Be from "./index220.js";
22
- import Ie from "./index221.js";
20
+ import Me from "./index232.js";
23
21
  /* empty css */
24
- import Oe from "./index223.js";
25
- import $e from "./index224.js";
26
- import { _config as Ee } from "./index4.js";
27
- import { isEmpty as Pe } from "./index225.js";
28
- import { autoUpdate as _e, flip as Ae, offset as Fe, shift as Le, hide as je } from "./index226.js";
29
- const qe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], We = ["aria-label", "disabled"], He = ["id"], vt = /* @__PURE__ */ oe({
22
+ import Ve from "./index234.js";
23
+ /* empty css */
24
+ import we from "./index236.js";
25
+ import { _config as Ce } from "./index4.js";
26
+ import { isEmpty as Ye } from "./index237.js";
27
+ const Se = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Ie = ["aria-label", "disabled"], Be = ["id"], Oe = ["inert"], rt = /* @__PURE__ */ ee({
30
28
  __name: "BaseDatePickerInput",
31
29
  props: {
32
30
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -53,125 +51,116 @@ const qe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
53
51
  teleportTarget: {}
54
52
  },
55
53
  emits: ["active", "error", "focus", "inactive", "update:modelValue"],
56
- setup(F, { emit: L }) {
57
- const j = { it: be, en: ve };
58
- o.extend(pe), o.extend(me), o.extend(fe), ne(() => {
59
- o.locale(j[Ee.locale]);
54
+ setup(L, { emit: A }) {
55
+ const F = { it: ue, en: de };
56
+ o.extend(le), o.extend(ie), o.extend(se), te(() => {
57
+ o.locale(F[Ce.locale]);
60
58
  });
61
- const t = F, u = L, { t: d } = De(), c = r(null), w = r(null), m = r(null), q = r(null), y = r(null), S = r(), g = t.id || `bdpi-${he().id.value}`, { isMobile: W } = Ve(), H = v(
62
- () => t.allowWriting === "not-mobile" && W.value ? "none" : "numeric"
63
- ), C = r(!0);
64
- Me(
59
+ const t = L, s = A, { t: u } = ve(), m = r(null), M = r(null), f = r(null), j = r(null), v = r(null), C = r(), k = t.id || `bdpi-${fe().id.value}`, { isMobile: q } = ke(), W = D(
60
+ () => t.allowWriting === "not-mobile" && q.value ? "none" : "numeric"
61
+ ), V = r(!0);
62
+ be(
65
63
  // @ts-expect-error wrong inferred type
66
- m,
64
+ f,
67
65
  ([{ intersectionRatio: e }]) => {
68
- e === 1 ? C.value = !0 : (C.value = !1, f.value && (O(), m.value && m.value.$el.querySelector(
66
+ e === 1 ? V.value = !0 : (V.value = !1, d.value && (I(), f.value && f.value.$el.querySelector(
69
67
  ".bb-base-date-picker-input__calendar-btn"
70
- ).focus(), M()));
68
+ ).focus(), h()));
71
69
  },
72
70
  { threshold: [0, 1] }
73
71
  );
74
- const T = v(() => ({
72
+ const H = D(() => ({
75
73
  "bb-base-date-picker-input": !0,
76
- "bb-base-date-picker-input--active": k.value,
74
+ "bb-base-date-picker-input--active": g.value,
77
75
  "bb-base-date-picker-input--errors": t.hasErrors,
78
76
  "bb-base-date-picker-input--loading": t.loading,
79
77
  "bb-base-date-picker-input--readonly": t.readonly,
80
78
  "bb-base-date-picker-input--disabled": t.disabled,
81
79
  "bb-base-date-picker-input--compact": t.compact
82
- })), R = {
80
+ })), T = {
83
81
  onInput: (e) => {
84
82
  if (!t.range && e.target instanceof HTMLInputElement)
85
- if (y.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
83
+ if (v.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
86
84
  const a = o(e.target.value, "DD/MM/YYYY");
87
- te(a) ? (e.target.value = "", u("update:modelValue", null), u("error", "invalid_date_typed")) : u("update:modelValue", a.toISOString());
88
- } else e.target.value === "" && u("update:modelValue", null);
85
+ Q(a) ? (e.target.value = "", s("update:modelValue", null), s("error", "invalid_date_typed")) : s("update:modelValue", a.toISOString());
86
+ } else e.target.value === "" && s("update:modelValue", null);
89
87
  }
90
- }, k = r(!1), z = () => {
91
- k.value || (u("active"), k.value = !0, document.addEventListener("focusin", h), document.addEventListener("click", h));
92
- }, h = (e) => {
93
- var a, i;
94
- b.value || e.target instanceof HTMLElement && (a = w.value) != null && a.$el && !w.value.$el.contains(e.target) && !((i = c.value) != null && i.contains(e.target)) && (k.value = !1, u("inactive"), document.removeEventListener("focusin", h), document.removeEventListener("click", h));
95
- }, B = (e) => {
88
+ }, g = r(!1), R = () => {
89
+ g.value || (s("active"), g.value = !0, document.addEventListener("focusin", y), document.addEventListener("click", y));
90
+ }, y = (e) => {
91
+ var a, c;
92
+ b.value || e.target instanceof HTMLElement && (a = M.value) != null && a.$el && !M.value.$el.contains(e.target) && !((c = m.value) != null && c.contains(e.target)) && (g.value = !1, s("inactive"), document.removeEventListener("focusin", y), document.removeEventListener("click", y));
93
+ }, Y = (e) => {
96
94
  if (e)
97
95
  if (Array.isArray(e)) {
98
- let a, i;
99
- return e.length && (a = e[0]), e.length > 1 && (i = ge(e)), [a, i].filter(ye).map((re) => o(re).format("DD/MM/YYYY")).join(" - ");
96
+ let a, c;
97
+ return e.length && (a = e[0]), e.length > 1 && (c = pe(e)), [a, c].filter(ce).map((x) => o(x).format("DD/MM/YYYY")).join(" - ");
100
98
  } else
101
99
  return o(e).format("DD/MM/YYYY");
102
100
  return null;
103
- }, N = v(() => y.value ? y.value : B(t.modelValue));
104
- le(
101
+ }, N = D(() => v.value ? v.value : Y(t.modelValue));
102
+ ae(
105
103
  () => t.modelValue,
106
104
  (e) => {
107
- y.value = B(e);
105
+ v.value = Y(e);
108
106
  }
109
107
  );
110
- const { floatingStyles: U, placement: K } = ce(m, c, {
111
- placement: "bottom",
112
- whileElementsMounted: _e,
113
- middleware: [Ae(), Fe(5), Le({ padding: 6 }), je()]
114
- }), Z = v(() => {
115
- const e = {
116
- ...U.value
117
- };
118
- return c.value, e;
119
- }), f = r(!1), G = async () => {
120
- f.value = !0;
121
- }, M = async () => {
108
+ const d = r(!1), z = async () => {
109
+ d.value = !0;
110
+ }, h = async () => {
122
111
  var e;
123
- f.value = !1, (e = S.value) == null || e.resetStatus();
124
- }, I = r(!1), J = async () => {
125
- b.value || (I.value = !0, await Ye(() => !!c.value), await G(), Q());
126
- }, b = r(!1), { activate: Q, deactivate: O } = ke(c, {
112
+ d.value = !1, (e = C.value) == null || e.resetStatus();
113
+ }, S = r(!1), U = async () => {
114
+ b.value || (S.value = !0, await he(() => !!m.value), await z(), Z());
115
+ }, b = r(!1), { activate: Z, deactivate: I } = me(m, {
127
116
  onActivate: () => b.value = !0,
128
117
  // On post activation focus on current date
129
118
  onPostActivate: () => {
130
119
  var e;
131
- (e = c.value.querySelector(
120
+ (e = m.value.querySelector(
132
121
  ".bb-base-date-picker-date--current button"
133
122
  )) == null || e.focus();
134
123
  },
135
124
  onPostDeactivate: async () => {
136
- await Ce(200), b.value = !1;
125
+ await ye(200), b.value = !1;
137
126
  },
138
127
  /* On esc deactivate the trap, return focus and then close the modal */
139
- escapeDeactivates: () => (Y.value = !1, M(), !0),
140
- clickOutsideDeactivates: () => (Y.value = !1, M(), !0),
128
+ escapeDeactivates: () => (w.value = !1, h(), !0),
129
+ clickOutsideDeactivates: () => (w.value = !1, h(), !0),
141
130
  allowOutsideClick: !0,
142
131
  preventScroll: !0
143
- }), Y = r(!t.allowWriting || t.range), X = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, x = {
132
+ }), w = r(!t.allowWriting || t.range), G = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, J = {
144
133
  "onUpdate:modelValue": (e) => {
145
- u("update:modelValue", e), X(e) && (Y.value = !1, O({
134
+ s("update:modelValue", e), G(e) && (w.value = !1, I({
146
135
  onPostDeactivate: () => {
147
- b.value = !1, M();
136
+ b.value = !1, h();
148
137
  }
149
138
  }));
150
139
  }
151
- }, ee = v(() => {
140
+ }, K = D(() => {
152
141
  if (t.range) {
153
142
  if (!t.modelValue || t.modelValue.length < 2)
154
- return d("baseDatePickerInput.emptyRange").value;
143
+ return u("baseDatePickerInput.emptyRange").value;
155
144
  const e = o(t.modelValue[0]).format("D MMMM YYYY"), a = o(t.modelValue[1]).format("D MMMM YYYY");
156
145
  if (t.range && t.modelValue.length === 2)
157
- return d("baseDatePickerInput.changeSelectionRange", e, a).value;
146
+ return u("baseDatePickerInput.changeSelectionRange", e, a).value;
158
147
  } else if (typeof t.modelValue == "string") {
159
148
  const e = o(t.modelValue).format("D MMMM YYYY");
160
- return d("baseDatePickerInput.changeSelection", e).value;
149
+ return u("baseDatePickerInput.changeSelection", e).value;
161
150
  }
162
- return d("baseDatePickerInput.emptySelection").value;
163
- }), te = (e) => {
151
+ return u("baseDatePickerInput.emptySelection").value;
152
+ }), Q = (e) => {
164
153
  let a = !0;
165
154
  return t.min && a && (a = e.isSameOrAfter(o(t.min).startOf("day"))), t.max && a && (a = e.isSameOrBefore(o(t.max).startOf("day"))), typeof t.selectable == "function" && a && (a = t.selectable(e.toDate())), !a;
166
- }, ae = () => {
155
+ }, X = () => {
167
156
  let e = null;
168
- t.range && (e = []), u("update:modelValue", e);
157
+ t.range && (e = []), s("update:modelValue", e);
169
158
  };
170
- return (e, a) => (D(), V(Oe, {
159
+ return (e, a) => (B(), O(we, {
171
160
  ref_key: "outerContainer",
172
- ref: w,
173
- class: $(T.value),
174
- onFocusin: z
161
+ ref: M,
162
+ class: $(H.value),
163
+ onFocusin: R
175
164
  }, {
176
165
  "prepend-outer": n(() => [
177
166
  p(e.$slots, "prepend-outer")
@@ -180,13 +169,13 @@ const qe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
180
169
  p(e.$slots, "append-outer")
181
170
  ]),
182
171
  default: n(() => [
183
- E(Ie, {
172
+ _(Ve, {
184
173
  ref_key: "innerContainer",
185
- ref: m,
174
+ ref: f,
186
175
  "append:icon": t["append:icon"],
187
- clearable: t.clearable && !l(Pe)(e.modelValue),
176
+ clearable: t.clearable && !l(Ye)(e.modelValue),
188
177
  "prepend:icon": t["prepend:icon"],
189
- "onClick:clear": ae
178
+ "onClick:clear": X
190
179
  }, {
191
180
  prepend: n(() => [
192
181
  p(e.$slots, "prepend")
@@ -201,122 +190,111 @@ const qe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
201
190
  p(e.$slots, "suffix")
202
191
  ]),
203
192
  default: n(() => [
204
- ie(s("input", P({
205
- id: l(g),
193
+ re(i("input", P({
194
+ id: l(k),
206
195
  ref_key: "input",
207
- ref: q,
208
- "aria-describedby": `bdpi-description_${l(g)}`,
196
+ ref: j,
197
+ "aria-describedby": `bdpi-description_${l(k)}`,
209
198
  autocomplete: e.autocomplete,
210
199
  autofocus: e.autofocus,
211
200
  "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
212
201
  disabled: e.disabled,
213
- inputmode: H.value,
202
+ inputmode: W.value,
214
203
  name: e.name,
215
204
  placeholder: e.placeholder,
216
205
  readonly: e.readonly || e.range || !e.allowWriting,
217
206
  required: e.required
218
- }, R, {
207
+ }, T, {
219
208
  size: "1",
220
209
  type: "text",
221
210
  value: N.value
222
- }), null, 16, qe), [
223
- [l(we)]
211
+ }), null, 16, Se), [
212
+ [l(ge)]
224
213
  ]),
225
- s("button", {
226
- "aria-label": ee.value,
214
+ i("button", {
215
+ "aria-label": K.value,
227
216
  class: "bb-base-date-picker-input__calendar-btn",
228
- disabled: e.disabled || e.readonly || !C.value,
217
+ disabled: e.disabled || e.readonly || !V.value,
229
218
  type: "button",
230
- onClick: se(J, ["stop"])
219
+ onClick: oe(U, ["stop"])
231
220
  }, a[0] || (a[0] = [
232
- s("svg", {
221
+ i("svg", {
233
222
  fill: "none",
234
223
  viewBox: "0 0 16 16",
235
224
  xmlns: "http://www.w3.org/2000/svg"
236
225
  }, [
237
- s("path", {
226
+ i("path", {
238
227
  d: "M12.6667 2.66667H3.33333C2.59695 2.66667 2 3.26363 2 4.00001V13.3333C2 14.0697 2.59695 14.6667 3.33333 14.6667H12.6667C13.403 14.6667 14 14.0697 14 13.3333V4.00001C14 3.26363 13.403 2.66667 12.6667 2.66667Z",
239
228
  stroke: "currentColor",
240
229
  "stroke-linecap": "round",
241
230
  "stroke-linejoin": "round"
242
231
  }),
243
- s("path", {
232
+ i("path", {
244
233
  d: "M10.6667 1.33333V3.99999",
245
234
  stroke: "currentColor",
246
235
  "stroke-linecap": "round",
247
236
  "stroke-linejoin": "round"
248
237
  }),
249
- s("path", {
238
+ i("path", {
250
239
  d: "M5.33333 1.33333V3.99999",
251
240
  stroke: "currentColor",
252
241
  "stroke-linecap": "round",
253
242
  "stroke-linejoin": "round"
254
243
  }),
255
- s("path", {
244
+ i("path", {
256
245
  d: "M2 6.66667H14",
257
246
  stroke: "currentColor",
258
247
  "stroke-linecap": "round",
259
248
  "stroke-linejoin": "round"
260
249
  })
261
250
  ], -1)
262
- ]), 8, We),
263
- s("span", {
264
- id: `bdpi-description_${l(g)}`,
251
+ ]), 8, Ie),
252
+ i("span", {
253
+ id: `bdpi-description_${l(k)}`,
265
254
  class: "bb-base-date-picker-input__accessible-description sr-only"
266
- }, _(l(d)("baseDatePickerInput.dateFormat")) + " " + _(t.range ? l(d)("baseDatePickerInput.dateFormatRange") : l(d)("baseDatePickerInput.dateFormatSingle")), 9, He)
255
+ }, E(l(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? l(u)("baseDatePickerInput.dateFormatRange") : l(u)("baseDatePickerInput.dateFormatSingle")), 9, Be)
267
256
  ]),
268
257
  _: 3
269
258
  }, 8, ["append:icon", "clearable", "prepend:icon"]),
270
- I.value ? (D(), V(Be, {
259
+ S.value ? (B(), O(Me, {
271
260
  key: 0,
272
- target: e.teleportTarget
261
+ "base-class": "bb-base-date-picker-input",
262
+ offset: 4,
263
+ open: d.value,
264
+ "teleport-target": e.teleportTarget,
265
+ "transition-duration": 300,
266
+ wrapper: f.value
273
267
  }, {
274
- default: n(() => {
275
- var i;
276
- return [
277
- s("div", {
278
- ref_key: "calendar",
279
- ref: c,
280
- class: $(["bb-base-date-picker-input__calendar", {
281
- "bb-base-date-picker-input__calendar--shown": f.value
282
- }]),
283
- style: ue(Z.value)
284
- }, [
285
- E($e, {
286
- direction: (i = l(K)) != null && i.includes("top") ? "bottom" : "top",
287
- duration: 300
288
- }, {
289
- default: n(() => [
290
- (D(), V(de, null, [
291
- f.value ? (D(), V(Se, P({
292
- key: 0,
293
- id: l(g)
294
- }, x, {
295
- ref_key: "basedatepicker",
296
- ref: S,
297
- disabled: e.disabled,
298
- "first-day-of-week": e.firstDayOfWeek,
299
- max: e.max,
300
- min: e.min,
301
- "model-value": e.modelValue,
302
- range: e.range,
303
- readonly: e.readonly,
304
- selectable: e.selectable
305
- }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])) : A("", !0)
306
- ], 1024))
307
- ]),
308
- _: 1
309
- }, 8, ["direction"])
310
- ], 6)
311
- ];
312
- }),
268
+ default: n(() => [
269
+ i("div", {
270
+ ref_key: "calendar",
271
+ ref: m,
272
+ class: $(["bb-base-date-picker-input__calendar", {
273
+ "bb-base-date-picker-input__calendar--shown": d.value
274
+ }]),
275
+ inert: !d.value
276
+ }, [
277
+ _(De, P({ id: l(k) }, J, {
278
+ ref_key: "basedatepicker",
279
+ ref: C,
280
+ disabled: e.disabled,
281
+ "first-day-of-week": e.firstDayOfWeek,
282
+ max: e.max,
283
+ min: e.min,
284
+ "model-value": e.modelValue,
285
+ range: e.range,
286
+ readonly: e.readonly,
287
+ selectable: e.selectable
288
+ }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
289
+ ], 10, Oe)
290
+ ]),
313
291
  _: 1
314
- }, 8, ["target"])) : A("", !0)
292
+ }, 8, ["open", "teleport-target", "wrapper"])) : ne("", !0)
315
293
  ]),
316
294
  _: 3
317
295
  }, 8, ["class"]));
318
296
  }
319
297
  });
320
298
  export {
321
- vt as default
299
+ rt as default
322
300
  };
package/dist/index230.js CHANGED
@@ -1,5 +1,22 @@
1
- import { hash as o } from "./index292.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
1
+ import { MaskInput as r } from "./index282.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
+ };
3
20
  export {
4
- t as hash
21
+ k as vMaska
5
22
  };
package/dist/index231.js CHANGED
@@ -1,10 +1,8 @@
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
- }
1
+ const o = (e, t = 50) => new Promise((r) => {
2
+ const n = setInterval(() => {
3
+ e() && (clearInterval(n), r());
4
+ }, t);
7
5
  });
8
6
  export {
9
- e as useLogger
7
+ o as waitFor
10
8
  };