bitboss-ui 2.0.116 → 2.0.118

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