bitboss-ui 2.0.172 → 2.0.174

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