bitboss-ui 2.0.176 → 2.1.1

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 (195) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
  2. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -4
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -4
  4. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  5. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -4
  6. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  7. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +33 -29
  8. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  9. package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -4
  10. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
  11. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  12. package/dist/index.css +1 -1
  13. package/dist/index106.js +8 -8
  14. package/dist/index107.js +29 -31
  15. package/dist/index111.js +1 -1
  16. package/dist/index113.js +1 -1
  17. package/dist/index121.js +11 -11
  18. package/dist/index129.js +1 -1
  19. package/dist/index13.js +1 -1
  20. package/dist/index131.js +13 -14
  21. package/dist/index133.js +1 -1
  22. package/dist/index136.js +1 -1
  23. package/dist/index138.js +1 -1
  24. package/dist/index139.js +2 -2
  25. package/dist/index15.js +13 -14
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +8 -8
  28. package/dist/index207.js +2 -2
  29. package/dist/index208.js +2 -2
  30. package/dist/index209.js +13 -13
  31. package/dist/index21.js +16 -16
  32. package/dist/index210.js +12 -65
  33. package/dist/index211.js +13 -0
  34. package/dist/index212.js +33 -176
  35. package/dist/index213.js +59 -79
  36. package/dist/index215.js +13 -29
  37. package/dist/index216.js +4 -17
  38. package/dist/index217.js +18 -49
  39. package/dist/index218.js +197 -15
  40. package/dist/index220.js +113 -12
  41. package/dist/index222.js +3 -34
  42. package/dist/index223.js +86 -2
  43. package/dist/index225.js +29 -2
  44. package/dist/index226.js +17 -5
  45. package/dist/index227.js +51 -5
  46. package/dist/index228.js +15 -5
  47. package/dist/index229.js +3 -5
  48. package/dist/index23.js +45 -46
  49. package/dist/index230.js +12 -5
  50. package/dist/index231.js +16 -5
  51. package/dist/index232.js +2 -2
  52. package/dist/index233.js +4 -2
  53. package/dist/index234.js +5 -2
  54. package/dist/index235.js +5 -13
  55. package/dist/index236.js +5 -11
  56. package/dist/index237.js +5 -20
  57. package/dist/index238.js +5 -113
  58. package/dist/index239.js +7 -0
  59. package/dist/index240.js +2 -106
  60. package/dist/index241.js +4 -0
  61. package/dist/index242.js +2 -100
  62. package/dist/index244.js +12 -4
  63. package/dist/index245.js +5 -196
  64. package/dist/index246.js +108 -0
  65. package/dist/index248.js +100 -12
  66. package/dist/index25.js +45 -51
  67. package/dist/index250.js +3 -3
  68. package/dist/index251.js +176 -12
  69. package/dist/index252.js +5 -3
  70. package/dist/index253.js +4 -4
  71. package/dist/index254.js +8 -5
  72. package/dist/index255.js +248 -6
  73. package/dist/index256.js +42 -240
  74. package/dist/index257.js +35 -43
  75. package/dist/index258.js +5 -44
  76. package/dist/index259.js +60 -5
  77. package/dist/index260.js +2 -60
  78. package/dist/index263.js +9 -8
  79. package/dist/index264.js +3 -23
  80. package/dist/index265.js +6 -10
  81. package/dist/index266.js +16 -3
  82. package/dist/index267.js +3 -41
  83. package/dist/index268.js +9 -7
  84. package/dist/index269.js +8 -14
  85. package/dist/index27.js +1 -1
  86. package/dist/index270.js +23 -3
  87. package/dist/index271.js +9 -6
  88. package/dist/index272.js +8 -16
  89. package/dist/index273.js +2 -9
  90. package/dist/index274.js +5 -9
  91. package/dist/index275.js +66 -7
  92. package/dist/index276.js +5 -2
  93. package/dist/index277.js +8 -5
  94. package/dist/index278.js +7 -67
  95. package/dist/index279.js +10 -4
  96. package/dist/index280.js +2 -8
  97. package/dist/{index348.js → index281.js} +1 -1
  98. package/dist/index283.js +7 -3
  99. package/dist/index284.js +4 -3
  100. package/dist/index285.js +5 -17
  101. package/dist/index286.js +4 -28
  102. package/dist/index287.js +3 -2
  103. package/dist/index288.js +17 -4
  104. package/dist/index289.js +28 -4
  105. package/dist/index29.js +3 -3
  106. package/dist/index290.js +3 -280
  107. package/dist/index291.js +3 -2
  108. package/dist/index292.js +271 -116
  109. package/dist/index293.js +2 -2
  110. package/dist/index294.js +123 -13
  111. package/dist/index295.js +2 -2
  112. package/dist/index296.js +13 -14
  113. package/dist/index298.js +9 -9
  114. package/dist/index300.js +14 -17
  115. package/dist/index302.js +19 -3
  116. package/dist/index303.js +2 -7
  117. package/dist/index304.js +3 -11
  118. package/dist/index305.js +1 -1
  119. package/dist/index306.js +2 -3
  120. package/dist/index307.js +6 -3
  121. package/dist/index308.js +18 -5
  122. package/dist/index309.js +2 -2
  123. package/dist/index31.js +2 -2
  124. package/dist/index310.js +27 -5
  125. package/dist/index311.js +2 -19
  126. package/dist/index312.js +2 -2
  127. package/dist/index313.js +2 -27
  128. package/dist/index314.js +2 -2
  129. package/dist/index315.js +1 -1
  130. package/dist/index316.js +21 -1
  131. package/dist/index318.js +5 -2
  132. package/dist/index319.js +701 -22
  133. package/dist/index320.js +356 -0
  134. package/dist/index321.js +53 -466
  135. package/dist/index322.js +1 -1
  136. package/dist/index323.js +8 -5
  137. package/dist/index324.js +6 -200
  138. package/dist/index325.js +7 -700
  139. package/dist/index326.js +7 -354
  140. package/dist/index327.js +221 -51
  141. package/dist/index328.js +58 -2
  142. package/dist/index329.js +58 -7
  143. package/dist/index33.js +8 -8
  144. package/dist/index330.js +32 -46
  145. package/dist/index331.js +27 -128
  146. package/dist/index333.js +128 -6
  147. package/dist/index334.js +366 -16
  148. package/dist/index335.js +46 -32
  149. package/dist/index336.js +7 -28
  150. package/dist/index337.js +21 -0
  151. package/dist/index338.js +92 -57
  152. package/dist/index340.js +3 -8
  153. package/dist/index341.js +128 -5
  154. package/dist/index342.js +434 -6
  155. package/dist/index343.js +125 -226
  156. package/dist/index344.js +474 -85
  157. package/dist/index345.js +43 -478
  158. package/dist/index35.js +4 -4
  159. package/dist/index37.js +19 -20
  160. package/dist/index39.js +13 -13
  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 +1 -1
  169. package/dist/index61.js +3 -3
  170. package/dist/index67.js +1 -1
  171. package/dist/index79.js +18 -19
  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 +152 -225
  177. package/dist/index92.js +2 -2
  178. package/dist/index94.js +11 -12
  179. package/dist/index96.js +1 -1
  180. package/dist/types/CommonProps.d.ts +0 -4
  181. package/package.json +2 -3
  182. package/dist/components/BbTeleport.vue.d.ts +0 -20
  183. package/dist/index219.js +0 -5
  184. package/dist/index221.js +0 -18
  185. package/dist/index224.js +0 -6
  186. package/dist/index249.js +0 -8
  187. package/dist/index282.js +0 -9
  188. package/dist/index317.js +0 -4
  189. package/dist/index332.js +0 -371
  190. package/dist/index339.js +0 -60
  191. package/dist/index346.js +0 -131
  192. package/dist/index349.js +0 -49
  193. package/dist/index350.js +0 -438
  194. package/dist/index351.js +0 -129
  195. /package/dist/{index247.js → index243.js} +0 -0
package/dist/index23.js CHANGED
@@ -1,25 +1,25 @@
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";
1
+ import { defineComponent as K, watchEffect as Q, ref as l, computed as g, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as i, createVNode as B, unref as n, createCommentVNode as X, withDirectives as x, createElementVNode as s, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
2
2
  import { _config as te } from "./index4.js";
3
- import o from "./index226.js";
4
- import ae from "./index227.js";
5
- import oe from "./index228.js";
6
- import re from "./index229.js";
7
- import ne from "./index230.js";
8
- import le from "./index231.js";
9
- import { identity as ie } from "./index232.js";
10
- import { isEmpty as se } from "./index233.js";
11
- import { last as de } from "./index234.js";
3
+ import o from "./index234.js";
4
+ import ae from "./index235.js";
5
+ import oe from "./index236.js";
6
+ import ne from "./index237.js";
7
+ import re from "./index238.js";
8
+ import le from "./index239.js";
9
+ import { identity as ie } from "./index240.js";
10
+ import { isEmpty as se } from "./index241.js";
11
+ import { last as de } from "./index242.js";
12
12
  import { useId as ue } from "./index8.js";
13
- import { useLocale as pe } from "./index235.js";
13
+ import { useLocale as pe } from "./index210.js";
14
14
  import { useMobile as ce } from "./index9.js";
15
- import { useUntil as me } from "./index236.js";
16
- import { vMaska as fe } from "./index237.js";
15
+ import { useUntil as me } from "./index211.js";
16
+ import { vMaska as fe } from "./index217.js";
17
17
  import be from "./index21.js";
18
18
  /* empty css */
19
- import ge from "./index210.js";
19
+ import ke from "./index213.js";
20
20
  /* empty css */
21
- import ke from "./index209.js";
22
- import ye from "./index238.js";
21
+ import ge from "./index215.js";
22
+ import ye from "./index220.js";
23
23
  /* empty css */
24
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({
25
25
  __name: "BaseDatePickerInput",
@@ -44,18 +44,17 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
44
44
  range: { type: Boolean },
45
45
  readonly: { type: Boolean },
46
46
  required: { type: Boolean },
47
- selectable: {},
48
- teleportTarget: {}
47
+ selectable: {}
49
48
  },
50
49
  emits: ["active", "error", "focus", "inactive", "update:modelValue"],
51
50
  setup(I, { emit: $ }) {
52
51
  const L = { it: le, en: oe };
53
- o.extend(ae), o.extend(re), o.extend(ne), Q(() => {
52
+ o.extend(ae), o.extend(ne), o.extend(re), Q(() => {
54
53
  o.locale(L[te.locale]);
55
54
  });
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(
55
+ 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 = g(
57
56
  () => t.allowWriting === "not-mobile" && P.value ? "none" : "numeric"
58
- ), j = k(() => ({
57
+ ), j = g(() => ({
59
58
  "bb-base-date-picker-input": !0,
60
59
  "bb-base-date-picker-input--active": b.value,
61
60
  "bb-base-date-picker-input--errors": t.hasErrors,
@@ -72,10 +71,10 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
72
71
  } else e.target.value === "" && d("update:modelValue", null);
73
72
  }
74
73
  }, b = l(!1), H = () => {
75
- b.value || (d("active"), b.value = !0, document.addEventListener("focusin", g), document.addEventListener("click", g));
76
- }, g = (e) => {
74
+ b.value || (d("active"), b.value = !0, document.addEventListener("focusin", k), document.addEventListener("click", k));
75
+ }, k = (e) => {
77
76
  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));
77
+ 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", k), document.removeEventListener("click", k));
79
78
  }, M = (e) => {
80
79
  if (e)
81
80
  if (Array.isArray(e)) {
@@ -84,28 +83,28 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
84
83
  } else
85
84
  return o(e).format("DD/MM/YYYY");
86
85
  return null;
87
- }, W = k(() => m.value ? m.value : M(t.modelValue));
86
+ }, W = g(() => m.value ? m.value : M(t.modelValue));
88
87
  D(
89
88
  () => t.modelValue,
90
89
  (e) => {
91
90
  m.value = M(e);
92
91
  }
93
92
  );
94
- const n = l(!1), q = me(n), h = (e) => {
93
+ const r = l(!1), q = me(r), h = (e) => {
95
94
  const a = e.target;
96
- a && a instanceof HTMLDialogElement && (n.value = !1);
95
+ a && a instanceof HTMLDialogElement && (r.value = !1);
97
96
  }, R = async () => {
98
- t.disabled || t.readonly || (n.value = !0);
97
+ t.disabled || t.readonly || (r.value = !0);
99
98
  };
100
- D(n, (e) => {
99
+ D(r, (e) => {
101
100
  var a;
102
101
  e ? document.addEventListener("click", h, { passive: !0 }) : ((a = V.value) == null || a.resetStatus(), document.removeEventListener("click", h));
103
102
  });
104
- const T = l(!t.allowWriting || t.range), N = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
103
+ const N = l(!t.allowWriting || t.range), T = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
105
104
  "onUpdate:modelValue": (e) => {
106
- d("update:modelValue", e), N(e) && (T.value = !1, n.value = !1);
105
+ d("update:modelValue", e), T(e) && (N.value = !1, r.value = !1);
107
106
  }
108
- }, z = k(() => {
107
+ }, z = g(() => {
109
108
  if (t.range) {
110
109
  if (!t.modelValue || t.modelValue.length < 2)
111
110
  return u("baseDatePickerInput.emptyRange").value;
@@ -124,7 +123,7 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
124
123
  let e = null;
125
124
  t.range && (e = []), d("update:modelValue", e);
126
125
  };
127
- return (e, a) => (Y(), C(ke, {
126
+ return (e, a) => (Y(), C(ge, {
128
127
  ref_key: "outerContainer",
129
128
  ref: y,
130
129
  class: w(j.value),
@@ -137,11 +136,11 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
137
136
  c(e.$slots, "append-outer")
138
137
  ]),
139
138
  default: i(() => [
140
- B(ge, {
139
+ B(ke, {
141
140
  ref_key: "innerContainer",
142
141
  ref: O,
143
142
  "append:icon": t["append:icon"],
144
- clearable: t.clearable && !r(se)(e.modelValue),
143
+ clearable: t.clearable && !n(se)(e.modelValue),
145
144
  "prepend:icon": t["prepend:icon"],
146
145
  "onClick:clear": G
147
146
  }, {
@@ -158,10 +157,10 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
158
157
  c(e.$slots, "suffix")
159
158
  ]),
160
159
  default: i(() => [
161
- r(q) ? (Y(), C(ye, {
160
+ n(q) ? (Y(), C(ye, {
162
161
  key: 0,
163
- modelValue: n.value,
164
- "onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p),
162
+ modelValue: r.value,
163
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => r.value = p),
165
164
  block: !0,
166
165
  dialog: "",
167
166
  offset: 4
@@ -171,11 +170,11 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
171
170
  ref_key: "calendar",
172
171
  ref: v,
173
172
  class: w(["bb-base-date-picker-input__calendar", {
174
- "bb-base-date-picker-input__calendar--shown": n.value
173
+ "bb-base-date-picker-input__calendar--shown": r.value
175
174
  }]),
176
- inert: !n.value
175
+ inert: !r.value
177
176
  }, [
178
- B(be, S({ id: r(f) }, U, {
177
+ B(be, S({ id: n(f) }, U, {
179
178
  ref_key: "basedatepicker",
180
179
  ref: V,
181
180
  disabled: e.disabled,
@@ -192,10 +191,10 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
192
191
  _: 1
193
192
  }, 8, ["modelValue"])) : X("", !0),
194
193
  x(s("input", S({
195
- id: r(f),
194
+ id: n(f),
196
195
  ref_key: "input",
197
196
  ref: _,
198
- "aria-describedby": `bdpi-description_${r(f)}`,
197
+ "aria-describedby": `bdpi-description_${n(f)}`,
199
198
  autocomplete: e.autocomplete,
200
199
  autofocus: e.autofocus,
201
200
  "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
@@ -210,7 +209,7 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
210
209
  type: "text",
211
210
  value: W.value
212
211
  }), null, 16, Ve), [
213
- [r(fe)]
212
+ [n(fe)]
214
213
  ]),
215
214
  s("button", {
216
215
  "aria-label": z.value,
@@ -251,9 +250,9 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
251
250
  ], -1)
252
251
  ]), 8, Me),
253
252
  s("span", {
254
- id: `bdpi-description_${r(f)}`,
253
+ id: `bdpi-description_${n(f)}`,
255
254
  class: "bb-base-date-picker-input__accessible-description sr-only"
256
- }, E(r(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? r(u)("baseDatePickerInput.dateFormatRange") : r(u)("baseDatePickerInput.dateFormatSingle")), 9, he)
255
+ }, E(n(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? n(u)("baseDatePickerInput.dateFormatRange") : n(u)("baseDatePickerInput.dateFormatSingle")), 9, he)
257
256
  ]),
258
257
  _: 3
259
258
  }, 8, ["append:icon", "clearable", "prepend:icon"])
package/dist/index230.js CHANGED
@@ -1,7 +1,14 @@
1
- import { getDefaultExportFromCjs as r } from "./index308.js";
2
- import { __require as e } from "./index298.js";
3
- var o = e();
4
- const m = /* @__PURE__ */ r(o);
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
+ };
5
12
  export {
6
- m as default
13
+ n as useHashedWatcher
7
14
  };
package/dist/index231.js CHANGED
@@ -1,7 +1,18 @@
1
- import { getDefaultExportFromCjs as r } from "./index308.js";
2
- import { __require as t } from "./index300.js";
3
- var o = t();
4
- const a = /* @__PURE__ */ r(o);
1
+ import { isNotNil as n } from "./index140.js";
2
+ import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
3
+ const h = ({
4
+ fn: i,
5
+ onStart: s,
6
+ multiple: f,
7
+ currentValue: o
8
+ }) => {
9
+ const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
10
+ e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
11
+ };
12
+ return a && (u(r), c(async () => {
13
+ l.value || await r();
14
+ })), { isPrefilling: e, hasPrefilled: l, prefill: r };
15
+ };
5
16
  export {
6
- a as default
17
+ h as usePrefill
7
18
  };
package/dist/index232.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = (t) => t;
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
2
  export {
3
- e as identity
3
+ s as isCssColor
4
4
  };
package/dist/index233.js CHANGED
@@ -1,4 +1,6 @@
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 { curry as e } from "./index286.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
2
3
  export {
3
- n as isEmpty
4
+ t as baseWhen,
5
+ s as when
4
6
  };
package/dist/index234.js CHANGED
@@ -1,4 +1,7 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as o } from "./index292.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- e as last
6
+ s as default
4
7
  };
package/dist/index235.js CHANGED
@@ -1,15 +1,7 @@
1
- import { locales as t } from "./index303.js";
2
- import { _config as m } from "./index4.js";
3
- import { get as c } from "./index304.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
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as o } from "./index294.js";
3
+ var t = o();
4
+ const m = /* @__PURE__ */ r(t);
13
5
  export {
14
- d as useLocale
6
+ m as default
15
7
  };
package/dist/index236.js CHANGED
@@ -1,13 +1,7 @@
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
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as e } from "./index296.js";
3
+ var o = e();
4
+ const m = /* @__PURE__ */ r(o);
11
5
  export {
12
- i as useUntil
6
+ m as default
13
7
  };
package/dist/index237.js CHANGED
@@ -1,22 +1,7 @@
1
- import { MaskInput as r } from "./index212.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
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as e } from "./index298.js";
3
+ var t = e();
4
+ const m = /* @__PURE__ */ r(t);
20
5
  export {
21
- k as vMaska
6
+ m as default
22
7
  };
package/dist/index238.js CHANGED
@@ -1,115 +1,7 @@
1
- import { defineComponent as P, mergeModels as D, useModel as V, ref as r, watch as A, onMounted as x, computed as S, createBlock as b, openBlock as v, resolveDynamicComponent as g, normalizeStyle as z, normalizeClass as E, unref as n, withCtx as w, renderSlot as y, createCommentVNode as N, mergeProps as h, createElementVNode as C } from "vue";
2
- import { wait as F } from "./index135.js";
3
- import { useFloating as U, arrow as j } from "./index331.js";
4
- import { flip as q, offset as G, shift as H, hide as I, autoUpdate as J } from "./index332.js";
5
- const K = { class: "bb-common-popover__bubble" }, W = /* @__PURE__ */ P({
6
- __name: "CommonPopover",
7
- props: /* @__PURE__ */ D({
8
- arrowPadding: {},
9
- offset: {},
10
- block: { type: Boolean },
11
- padding: { default: 0 },
12
- placement: {},
13
- transitionDuration: { default: 250 },
14
- containerAttributes: {},
15
- dialog: { type: Boolean },
16
- renderContent: { type: Boolean, default: !0 },
17
- tag: { default: "span" }
18
- }, {
19
- modelValue: { type: Boolean, default: !1 },
20
- modelModifiers: {}
21
- }),
22
- emits: ["update:modelValue"],
23
- setup(s) {
24
- const o = s, a = V(s, "modelValue"), i = r(), t = r(), p = r(), { floatingStyles: k, placement: _, middlewareData: l, update: M } = U(
25
- i,
26
- t,
27
- {
28
- placement: o.placement,
29
- whileElementsMounted: J,
30
- middleware: [
31
- q(),
32
- G(o.offset),
33
- H({ padding: o.padding }),
34
- I(),
35
- j({
36
- element: p,
37
- padding: o.arrowPadding
38
- })
39
- ],
40
- strategy: "fixed"
41
- }
42
- ), d = (e) => {
43
- e ? (M(), o.dialog ? t.value.showModal() : t.value.showPopover()) : F(o.transitionDuration).then(() => {
44
- t.value && (o.dialog ? t.value.close() : t.value.hidePopover());
45
- });
46
- };
47
- A(a, d, { flush: "post" }), x(() => {
48
- a.value && d(a.value);
49
- });
50
- const $ = S(() => {
51
- if (l.value.arrow) {
52
- const { x: e, y: u } = l.value.arrow;
53
- return {
54
- style: {
55
- left: `${e}px`,
56
- top: `${u}px`
57
- }
58
- };
59
- }
60
- }), B = () => {
61
- a.value = !1;
62
- };
63
- return (e, u) => (v(), b(g(e.dialog ? "div" : e.tag), {
64
- ref_key: "wrapper",
65
- ref: i,
66
- class: E(["bb-common-popover", {
67
- "bb-common-popover--open": a.value && !!t.value,
68
- "bb-common-popover--block": o.block,
69
- [`bb-common-popover--${n(_)}`]: !0
70
- }]),
71
- style: z({
72
- "--transition-duration": `${o.transitionDuration}ms`
73
- })
74
- }, {
75
- default: w(() => {
76
- var m, c, f;
77
- return [
78
- y(e.$slots, "activator"),
79
- e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
80
- key: 0,
81
- ref_key: "content",
82
- ref: t,
83
- class: ["bb-common-popover__bubble-container", {
84
- "bb-common-popover__bubble-container--open": a.value && !!t.value
85
- }],
86
- popover: "manual",
87
- style: {
88
- ...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
89
- ...n(k),
90
- "--arrow-offset-x": Math.round(((f = (c = n(l)) == null ? void 0 : c.arrow) == null ? void 0 : f.x) ?? 0) + "px",
91
- "--page-padding": `${e.padding}px`
92
- },
93
- tabindex: a.value ? void 0 : -1
94
- }, e.containerAttributes, { onClose: n(B) }), {
95
- default: w(() => [
96
- C("span", h({
97
- ref_key: "bubblearrow",
98
- ref: p,
99
- class: "bb-common-popover__arrow"
100
- }, $.value), null, 16),
101
- C("span", K, [
102
- y(e.$slots, "default")
103
- ])
104
- ]),
105
- _: 3
106
- }, 16, ["class", "style", "tabindex", "onClose"])) : N("", !0)
107
- ];
108
- }),
109
- _: 3
110
- }, 8, ["class", "style"]));
111
- }
112
- });
1
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as e } from "./index300.js";
3
+ var o = e();
4
+ const m = /* @__PURE__ */ r(o);
113
5
  export {
114
- W as default
6
+ m as default
115
7
  };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./index307.js";
2
+ import { __require as t } from "./index302.js";
3
+ var o = t();
4
+ const a = /* @__PURE__ */ r(o);
5
+ export {
6
+ a as default
7
+ };
package/dist/index240.js CHANGED
@@ -1,108 +1,4 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index219.js";
3
- import { isNil as l } from "./index262.js";
4
- import E from "./index67.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: P({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": O((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
- }
105
- });
1
+ const e = (t) => t;
106
2
  export {
107
- K as default
3
+ e as identity
108
4
  };
@@ -0,0 +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;
2
+ export {
3
+ n as isEmpty
4
+ };