bitboss-ui 2.0.28 → 2.0.29

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 (132) hide show
  1. package/dist/index106.js +4 -4
  2. package/dist/index114.js +1 -1
  3. package/dist/index116.js +5 -5
  4. package/dist/index118.js +1 -1
  5. package/dist/index122.js +1 -1
  6. package/dist/index123.js +1 -1
  7. package/dist/index124.js +1 -1
  8. package/dist/index126.js +1 -1
  9. package/dist/index129.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index15.js +3 -3
  12. package/dist/index17.js +2 -2
  13. package/dist/index19.js +14 -14
  14. package/dist/index199.js +281 -2
  15. package/dist/index200.js +16 -8
  16. package/dist/index201.js +16 -3
  17. package/dist/index202.js +19 -3
  18. package/dist/index203.js +19 -35
  19. package/dist/index204.js +27 -6
  20. package/dist/index205.js +3 -7
  21. package/dist/index206.js +2 -43
  22. package/dist/index207.js +10 -0
  23. package/dist/index208.js +249 -13
  24. package/dist/index209.js +50 -279
  25. package/dist/index21.js +15 -15
  26. package/dist/index210.js +44 -16
  27. package/dist/index211.js +5 -16
  28. package/dist/index212.js +49 -19
  29. package/dist/index213.js +2 -19
  30. package/dist/index214.js +4 -27
  31. package/dist/index215.js +2 -3
  32. package/dist/index216.js +3 -2
  33. package/dist/index217.js +2 -249
  34. package/dist/index218.js +123 -49
  35. package/dist/index219.js +123 -44
  36. package/dist/index220.js +2 -5
  37. package/dist/index221.js +35 -49
  38. package/dist/index222.js +166 -118
  39. package/dist/index223.js +6 -123
  40. package/dist/index224.js +43 -2
  41. package/dist/index226.js +12 -4
  42. package/dist/index227.js +5 -369
  43. package/dist/index228.js +360 -149
  44. package/dist/index229.js +3 -84
  45. package/dist/index23.js +5 -5
  46. package/dist/index230.js +9 -0
  47. package/dist/index231.js +158 -2
  48. package/dist/index232.js +84 -4
  49. package/dist/index234.js +1 -1
  50. package/dist/index236.js +1 -1
  51. package/dist/index238.js +1 -1
  52. package/dist/index243.js +4 -224
  53. package/dist/index244.js +6 -3
  54. package/dist/index245.js +2 -9
  55. package/dist/index246.js +2 -23
  56. package/dist/index247.js +2 -6
  57. package/dist/index248.js +2 -16
  58. package/dist/index249.js +2 -9
  59. package/dist/index25.js +39 -36
  60. package/dist/index250.js +2 -431
  61. package/dist/index251.js +2 -89
  62. package/dist/index252.js +2 -3
  63. package/dist/index253.js +4 -0
  64. package/dist/index254.js +2 -7
  65. package/dist/index255.js +25 -197
  66. package/dist/index256.js +22 -6
  67. package/dist/index258.js +7 -2
  68. package/dist/index259.js +6 -2
  69. package/dist/index260.js +16 -2
  70. package/dist/index261.js +224 -2
  71. package/dist/index262.js +3 -2
  72. package/dist/index263.js +9 -2
  73. package/dist/index264.js +23 -2
  74. package/dist/index265.js +9 -2
  75. package/dist/index266.js +2 -2
  76. package/dist/index267.js +122 -24
  77. package/dist/index268.js +429 -20
  78. package/dist/index269.js +5 -0
  79. package/dist/index27.js +3 -3
  80. package/dist/index271.js +21 -125
  81. package/dist/index273.js +91 -0
  82. package/dist/index274.js +1 -1
  83. package/dist/index277.js +1 -1
  84. package/dist/index278.js +1 -1
  85. package/dist/index279.js +435 -3
  86. package/dist/index280.js +113 -422
  87. package/dist/index281.js +199 -126
  88. package/dist/index282.js +3 -5
  89. package/dist/index283.js +2 -65
  90. package/dist/index284.js +211 -2
  91. package/dist/index285.js +2 -3
  92. package/dist/index286.js +5 -3
  93. package/dist/index287.js +15 -211
  94. package/dist/index288.js +66 -15
  95. package/dist/index289.js +7 -79
  96. package/dist/index29.js +2 -2
  97. package/dist/index290.js +9 -0
  98. package/dist/index291.js +19 -4
  99. package/dist/index292.js +4 -4
  100. package/dist/index293.js +4 -59
  101. package/dist/index294.js +58 -6
  102. package/dist/index295.js +79 -7
  103. package/dist/index297.js +1 -1
  104. package/dist/index298.js +46 -10
  105. package/dist/index299.js +10 -46
  106. package/dist/index300.js +1 -1
  107. package/dist/index301.js +1 -1
  108. package/dist/index31.js +2 -2
  109. package/dist/index33.js +3 -3
  110. package/dist/index35.js +9 -9
  111. package/dist/index37.js +3 -3
  112. package/dist/index39.js +2 -2
  113. package/dist/index41.js +2 -2
  114. package/dist/index43.js +4 -4
  115. package/dist/index45.js +2 -2
  116. package/dist/index47.js +2 -2
  117. package/dist/index53.js +1 -1
  118. package/dist/index55.js +1 -1
  119. package/dist/index71.js +3 -3
  120. package/dist/index75.js +2 -2
  121. package/dist/index77.js +1 -1
  122. package/dist/index80.js +2 -2
  123. package/dist/index82.js +1 -1
  124. package/dist/index84.js +3 -3
  125. package/dist/index86.js +1 -1
  126. package/package.json +1 -1
  127. package/dist/index225.js +0 -176
  128. package/dist/index233.js +0 -4
  129. package/dist/index257.js +0 -4
  130. package/dist/index270.js +0 -4
  131. package/dist/index272.js +0 -24
  132. package/dist/index296.js +0 -21
package/dist/index37.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as b, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as c, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index199.js";
2
+ import { clamp as le } from "./index215.js";
3
3
  import { head as O } from "./index240.js";
4
- import { isCssColor as Y } from "./index231.js";
4
+ import { isCssColor as Y } from "./index213.js";
5
5
  import { isNil as P } from "./index125.js";
6
6
  import { isNotNil as ne } from "./index130.js";
7
7
  import { transposeValue as y } from "./index126.js";
8
- import { hash as J } from "./index215.js";
8
+ import { hash as J } from "./index205.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index39.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as p, computed as n, watch as S, openBlock as h, createElementBlock as f, normalizeProps as r, guardReactiveProps as c, mergeProps as y, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as d } from "./index231.js";
3
- import { when as F } from "./index232.js";
2
+ import { isCssColor as d } from "./index213.js";
3
+ import { when as F } from "./index214.js";
4
4
  const N = { class: "bb-base-switch-container" }, x = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), J = [
5
5
  x
6
6
  ], L = /* @__PURE__ */ I({
package/dist/index41.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index228.js";
2
+ import { useOptions as F } from "./index231.js";
3
3
  import M from "./index39.js";
4
4
  /* empty css */
5
- import S from "./index229.js";
5
+ import S from "./index232.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ $({
8
8
  __name: "BaseSwitchGroup",
package/dist/index43.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index123.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index130.js";
7
- import { last as de } from "./index216.js";
8
- import { useOptions as pe } from "./index228.js";
7
+ import { last as de } from "./index206.js";
8
+ import { useOptions as pe } from "./index231.js";
9
9
  import ce from "./index236.js";
10
10
  /* empty css */
11
11
  import me from "./index238.js";
12
12
  /* empty css */
13
- import fe from "./index206.js";
13
+ import fe from "./index224.js";
14
14
  /* empty css */
15
- import ve from "./index208.js";
15
+ import ve from "./index226.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index45.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index208.js";
3
- import E from "./index206.js";
2
+ import v from "./index226.js";
3
+ import E from "./index224.js";
4
4
  /* empty css */
5
5
  import G from "./index123.js";
6
6
  /* empty css */
package/dist/index47.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, computed as c, openBlock as m, createElementBlock as b, Fragment as f, createVNode as r, normalizeClass as y, withCtx as n, renderSlot as t, createElementVNode as p, mergeProps as h } from "vue";
2
- import g from "./index206.js";
2
+ import g from "./index224.js";
3
3
  /* empty css */
4
- import B from "./index208.js";
4
+ import B from "./index226.js";
5
5
  const k = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], w = /* @__PURE__ */ p("span", null, null, -1), q = /* @__PURE__ */ i({
6
6
  __name: "BaseTextInput",
7
7
  props: {
package/dist/index53.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index231.js";
2
+ import { isCssColor as _ } from "./index213.js";
3
3
  import { wait as C } from "./index127.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index231.js";
2
+ import { isCssColor as r } from "./index213.js";
3
3
  import { isNil as B } from "./index125.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index71.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
2
- import { findRightIndex as H } from "./index245.js";
2
+ import { findRightIndex as H } from "./index263.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index127.js";
5
5
  import { useIntersectionObserver as ae } from "./index128.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import N from "./index246.js";
8
+ import N from "./index264.js";
9
9
  const me = /* @__PURE__ */ Q({
10
10
  __name: "BbDropdown",
11
11
  props: {
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
24
24
  },
25
25
  setup(V) {
26
26
  const j = W(
27
- () => import("./index244.js")
27
+ () => import("./index262.js")
28
28
  ), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
package/dist/index75.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index248.js";
2
+ import { findInTree as ae } from "./index260.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index123.js";
5
5
  /* empty css */
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
56
56
  const r = t.accept[a];
57
57
  if (r.includes("/")) e.push(r);
58
58
  else {
59
- b || (b = (await import("./index247.js")).default);
59
+ b || (b = (await import("./index259.js")).default);
60
60
  const o = b.getType(r);
61
61
  if (!o)
62
62
  throw new Error(
package/dist/index77.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index202.js";
2
+ import { throttle as c } from "./index229.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index80.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as te, ref as s, useAttrs as oe, getCurrentInstance as se, computed as v, nextTick as ae, onBeforeUnmount as x, onMounted as le, watch as ne, openBlock as _, createBlock as ie, Teleport as re, createElementVNode as a, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index203.js";
2
+ import { useFocusTrap as ce } from "./index221.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index127.js";
5
- import { useModalsState as p } from "./index205.js";
5
+ import { useModalsState as p } from "./index230.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], pe = /* @__PURE__ */ a("span", { class: "bb-offcanvas-close__icon" }, [
7
7
  /* @__PURE__ */ a("svg", {
8
8
  "aria-hidden": "true",
package/dist/index82.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, computed as f, ref as c, onMounted as E, onBeforeUnmount as P, openBlock as h, createElementBlock as y, normalizeClass as C, createElementVNode as i, createVNode as k, unref as V, withCtx as S, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index249.js";
2
+ import { debounce as F } from "./index265.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index84.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, defineAsyncComponent as S, ref as n, computed as w, openBlock as v, createElementBlock as H, mergeProps as q, createElementVNode as c, renderSlot as k, normalizeProps as A, guardReactiveProps as I, createBlock as y, unref as V, withCtx as _, createCommentVNode as C, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index203.js";
2
+ import { useFocusTrap as z } from "./index221.js";
3
3
  import { useId as R } from "./index8.js";
4
4
  import { useIntersectionObserver as j } from "./index128.js";
5
- import { waitFor as G } from "./index204.js";
5
+ import { waitFor as G } from "./index223.js";
6
6
  import J from "./index13.js";
7
7
  /* empty css */
8
8
  const K = /* @__PURE__ */ c("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1), Q = /* @__PURE__ */ c("svg", {
@@ -35,7 +35,7 @@ const K = /* @__PURE__ */ c("span", { class: "bb-popover__close-label sr-only" }
35
35
  emits: ["shown", "hidden"],
36
36
  setup($, { emit: T }) {
37
37
  const B = S(
38
- () => import("./index244.js")
38
+ () => import("./index262.js")
39
39
  ), t = $, s = T, { id: P } = R(), p = `bbp_${P.value}`, r = n(), i = n(), { activate: N, deactivate: D } = z(i, {
40
40
  /**
41
41
  * This traps all clicks outside so we are pressing
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index199.js";
2
+ import { clamp as p } from "./index215.js";
3
3
  import { getAsPercentageBetween as i } from "./index126.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index225.js DELETED
@@ -1,176 +0,0 @@
1
- /*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */
2
- var V = Object.defineProperty, P = (a, t, e) => t in a ? V(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, g = (a, t, e) => (P(a, typeof t != "symbol" ? t + "" : t, e), e);
3
- const R = {
4
- "#": { pattern: /[0-9]/ },
5
- "@": { pattern: /[a-zA-Z]/ },
6
- "*": { pattern: /[a-zA-Z0-9]/ }
7
- };
8
- class b {
9
- constructor(t = {}) {
10
- g(this, "opts", {}), g(this, "memo", /* @__PURE__ */ new Map());
11
- const e = { ...t };
12
- if (e.tokens != null) {
13
- e.tokens = e.tokensReplace ? { ...e.tokens } : { ...R, ...e.tokens };
14
- for (const s of Object.values(e.tokens))
15
- typeof s.pattern == "string" && (s.pattern = new RegExp(s.pattern));
16
- } else
17
- e.tokens = R;
18
- Array.isArray(e.mask) && (e.mask.length > 1 ? e.mask = [...e.mask].sort((s, n) => s.length - n.length) : e.mask = e.mask[0] ?? ""), e.mask === "" && (e.mask = null), this.opts = e;
19
- }
20
- masked(t) {
21
- return this.process(t, this.findMask(t));
22
- }
23
- unmasked(t) {
24
- return this.process(t, this.findMask(t), !1);
25
- }
26
- isEager() {
27
- return this.opts.eager === !0;
28
- }
29
- isReversed() {
30
- return this.opts.reversed === !0;
31
- }
32
- completed(t) {
33
- const e = this.findMask(t);
34
- if (this.opts.mask == null || e == null)
35
- return !1;
36
- const s = this.process(t, e).length;
37
- return typeof this.opts.mask == "string" ? s >= this.opts.mask.length : typeof this.opts.mask == "function" ? s >= e.length : this.opts.mask.filter((n) => s >= n.length).length === this.opts.mask.length;
38
- }
39
- findMask(t) {
40
- const e = this.opts.mask;
41
- if (e == null)
42
- return null;
43
- if (typeof e == "string")
44
- return e;
45
- if (typeof e == "function")
46
- return e(t);
47
- const s = this.process(t, e.slice(-1).pop() ?? "", !1);
48
- return e.find((n) => this.process(t, n, !1).length >= s.length) ?? "";
49
- }
50
- escapeMask(t) {
51
- const e = [], s = [];
52
- return t.split("").forEach((n, i) => {
53
- n === "!" && t[i - 1] !== "!" ? s.push(i - s.length) : e.push(n);
54
- }), { mask: e.join(""), escaped: s };
55
- }
56
- process(t, e, s = !0) {
57
- if (e == null)
58
- return t;
59
- const n = `value=${t},mask=${e},masked=${s ? 1 : 0}`;
60
- if (this.memo.has(n))
61
- return this.memo.get(n);
62
- const { mask: i, escaped: p } = this.escapeMask(e), o = [], k = this.opts.tokens != null ? this.opts.tokens : {}, l = this.isReversed() ? -1 : 1, m = this.isReversed() ? "unshift" : "push", c = this.isReversed() ? 0 : i.length - 1, T = this.isReversed() ? () => r > -1 && u > -1 : () => r < i.length && u < t.length, S = (d) => !this.isReversed() && d <= c || this.isReversed() && d >= c;
63
- let E, f = -1, r = this.isReversed() ? i.length - 1 : 0, u = this.isReversed() ? t.length - 1 : 0, y = !1;
64
- for (; T(); ) {
65
- const d = i.charAt(r), h = k[d], v = (h == null ? void 0 : h.transform) != null ? h.transform(t.charAt(u)) : t.charAt(u);
66
- if (!p.includes(r) && h != null ? (v.match(h.pattern) != null ? (o[m](v), h.repeated ? (f === -1 ? f = r : r === c && r !== f && (r = f - l), c === f && (r -= l)) : h.multiple && (y = !0, r -= l), r += l) : h.multiple ? y && (r += l, u -= l, y = !1) : v === E ? E = void 0 : h.optional && (r += l, u -= l), u += l) : (s && !this.isEager() && o[m](d), v === d && !this.isEager() ? u += l : E = d, this.isEager() || (r += l)), this.isEager())
67
- for (; S(r) && (k[i.charAt(r)] == null || p.includes(r)); )
68
- s ? o[m](i.charAt(r)) : i.charAt(r) === t.charAt(u) && (u += l), r += l;
69
- }
70
- return this.memo.set(n, o.join("")), this.memo.get(n);
71
- }
72
- }
73
- const O = (a) => JSON.parse(a.replaceAll("'", '"')), w = (a, t = {}) => {
74
- const e = { ...t };
75
- return a.dataset.maska != null && a.dataset.maska !== "" && (e.mask = W(a.dataset.maska)), a.dataset.maskaEager != null && (e.eager = M(a.dataset.maskaEager)), a.dataset.maskaReversed != null && (e.reversed = M(a.dataset.maskaReversed)), a.dataset.maskaTokensReplace != null && (e.tokensReplace = M(a.dataset.maskaTokensReplace)), a.dataset.maskaTokens != null && (e.tokens = j(a.dataset.maskaTokens)), e;
76
- }, M = (a) => a !== "" ? !!JSON.parse(a) : !0, W = (a) => a.startsWith("[") && a.endsWith("]") ? O(a) : a, j = (a) => {
77
- if (a.startsWith("{") && a.endsWith("}"))
78
- return O(a);
79
- const t = {};
80
- return a.split("|").forEach((e) => {
81
- const s = e.split(":");
82
- t[s[0]] = {
83
- pattern: new RegExp(s[1]),
84
- optional: s[2] === "optional",
85
- multiple: s[2] === "multiple",
86
- repeated: s[2] === "repeated"
87
- };
88
- }), t;
89
- };
90
- class L {
91
- constructor(t, e = {}) {
92
- g(this, "items", /* @__PURE__ */ new Map()), g(this, "beforeinputEvent", (s) => {
93
- const n = s.target, i = this.items.get(n);
94
- i.isEager() && "inputType" in s && s.inputType.startsWith("delete") && i.unmasked(n.value).length <= 1 && this.setMaskedValue(n, "");
95
- }), g(this, "inputEvent", (s) => {
96
- if (s instanceof CustomEvent && s.type === "input" && s.detail != null && typeof s.detail == "object" && "masked" in s.detail)
97
- return;
98
- const n = s.target, i = this.items.get(n), p = n.value, o = n.selectionStart, k = n.selectionEnd;
99
- let l = p;
100
- if (i.isEager()) {
101
- const m = i.masked(p), c = i.unmasked(p);
102
- c === "" && "data" in s && s.data != null ? l = s.data : c !== i.unmasked(m) && (l = c);
103
- }
104
- if (this.setMaskedValue(n, l), "inputType" in s && (s.inputType.startsWith("delete") || o != null && o < p.length))
105
- try {
106
- n.setSelectionRange(o, k);
107
- } catch {
108
- }
109
- }), this.options = e, typeof t == "string" ? this.init(
110
- Array.from(document.querySelectorAll(t)),
111
- this.getMaskOpts(e)
112
- ) : this.init(
113
- "length" in t ? Array.from(t) : [t],
114
- this.getMaskOpts(e)
115
- );
116
- }
117
- destroy() {
118
- for (const t of this.items.keys())
119
- t.removeEventListener("input", this.inputEvent), t.removeEventListener("beforeinput", this.beforeinputEvent);
120
- this.items.clear();
121
- }
122
- needUpdateOptions(t, e) {
123
- const s = this.items.get(t), n = new b(w(t, this.getMaskOpts(e)));
124
- return JSON.stringify(s.opts) !== JSON.stringify(n.opts);
125
- }
126
- needUpdateValue(t) {
127
- const e = t.dataset.maskaValue;
128
- return e == null && t.value !== "" || e != null && e !== t.value;
129
- }
130
- getMaskOpts(t) {
131
- const { onMaska: e, preProcess: s, postProcess: n, ...i } = t;
132
- return i;
133
- }
134
- init(t, e) {
135
- for (const s of t) {
136
- const n = new b(w(s, e));
137
- this.items.set(s, n), s.value !== "" && this.setMaskedValue(s, s.value), s.addEventListener("input", this.inputEvent), s.addEventListener("beforeinput", this.beforeinputEvent);
138
- }
139
- }
140
- setMaskedValue(t, e) {
141
- const s = this.items.get(t);
142
- this.options.preProcess != null && (e = this.options.preProcess(e));
143
- const n = s.masked(e), i = s.unmasked(s.isEager() ? n : e), p = s.completed(e), o = { masked: n, unmasked: i, completed: p };
144
- e = n, this.options.postProcess != null && (e = this.options.postProcess(e)), t.value = e, t.dataset.maskaValue = e, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((k) => k(o)) : this.options.onMaska(o)), t.dispatchEvent(new CustomEvent("maska", { detail: o })), t.dispatchEvent(new CustomEvent("input", { detail: o }));
145
- }
146
- }
147
- const A = /* @__PURE__ */ new WeakMap(), C = (a) => {
148
- setTimeout(() => {
149
- var t;
150
- ((t = A.get(a)) == null ? void 0 : t.needUpdateValue(a)) === !0 && a.dispatchEvent(new CustomEvent("input"));
151
- });
152
- }, J = (a, t) => {
153
- const e = a instanceof HTMLInputElement ? a : a.querySelector("input"), s = { ...t.arg };
154
- if (e == null || (e == null ? void 0 : e.type) === "file")
155
- return;
156
- C(e);
157
- const n = A.get(e);
158
- if (n != null) {
159
- if (!n.needUpdateOptions(e, s))
160
- return;
161
- n.destroy();
162
- }
163
- if (t.value != null) {
164
- const i = t.value, p = (o) => {
165
- i.masked = o.masked, i.unmasked = o.unmasked, i.completed = o.completed;
166
- };
167
- s.onMaska = s.onMaska == null ? p : Array.isArray(s.onMaska) ? [...s.onMaska, p] : [s.onMaska, p];
168
- }
169
- A.set(e, new L(e, s));
170
- };
171
- export {
172
- b as Mask,
173
- L as MaskInput,
174
- R as tokens,
175
- J as vMaska
176
- };
package/dist/index233.js DELETED
@@ -1,4 +0,0 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
2
- export {
3
- o as booleanishToBoolean
4
- };
package/dist/index257.js DELETED
@@ -1,4 +0,0 @@
1
- var a = { exports: {} };
2
- export {
3
- a as __module
4
- };
package/dist/index270.js DELETED
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };
package/dist/index272.js DELETED
@@ -1,24 +0,0 @@
1
- import { defineComponent as o, computed as i, openBlock as r, createBlock as d, Transition as l, normalizeStyle as s, withCtx as u, renderSlot as p } from "vue";
2
- const f = /* @__PURE__ */ o({
3
- __name: "SlideBack",
4
- props: {
5
- direction: { default: "right" },
6
- duration: { default: 500 },
7
- gap: { default: 0 }
8
- },
9
- setup(t) {
10
- const a = t, n = i(() => `bb-slide-back-in-${a.direction}`);
11
- return (e, c) => (r(), d(l, {
12
- name: n.value,
13
- style: s({ "--transition-duration": `${e.duration}ms`, "--gap": `${e.gap}px` })
14
- }, {
15
- default: u(() => [
16
- p(e.$slots, "default", {}, void 0, !0)
17
- ]),
18
- _: 3
19
- }, 8, ["name", "style"]));
20
- }
21
- });
22
- export {
23
- f as default
24
- };
package/dist/index296.js DELETED
@@ -1,21 +0,0 @@
1
- function l(t, ...e) {
2
- if (t.length) {
3
- const o = t[0];
4
- if (typeof o == "string") return [...t].sort(r);
5
- if (typeof o == "number") return [...t].sort(r);
6
- if (e && e.length)
7
- return [...t].sort((f, u) => {
8
- for (let n = 0; n < e.length; n++) {
9
- const i = e[n], s = r(f[i], u[i]);
10
- if (s) return s;
11
- }
12
- return 0;
13
- });
14
- throw new Error("Invalid comparison");
15
- }
16
- return t;
17
- }
18
- const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
19
- export {
20
- l as sort
21
- };