bitboss-ui 2.0.171 → 2.0.172

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