bitboss-ui 2.0.90 → 2.0.91

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 (139) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/index109.js +5 -5
  3. package/dist/index117.js +2 -2
  4. package/dist/index119.js +5 -5
  5. package/dist/index12.js +1 -1
  6. package/dist/index121.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index126.js +1 -1
  9. package/dist/index127.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index131.js +2 -2
  12. package/dist/index132.js +2 -2
  13. package/dist/index14.js +4 -4
  14. package/dist/index16.js +3 -3
  15. package/dist/index18.js +2 -2
  16. package/dist/index20.js +12 -12
  17. package/dist/index203.js +2 -81
  18. package/dist/index204.js +81 -2
  19. package/dist/index205.js +2 -52
  20. package/dist/index206.js +6 -0
  21. package/dist/index207.js +2 -13
  22. package/dist/index208.js +50 -6
  23. package/dist/index210.js +13 -4
  24. package/dist/index211.js +157 -119
  25. package/dist/index212.js +84 -5
  26. package/dist/index214.js +5 -19
  27. package/dist/index215.js +2 -2
  28. package/dist/index216.js +2 -2
  29. package/dist/index217.js +19 -2
  30. package/dist/index218.js +19 -2
  31. package/dist/index219.js +26 -40
  32. package/dist/index22.js +14 -14
  33. package/dist/index220.js +3 -20
  34. package/dist/index221.js +2 -6
  35. package/dist/index222.js +8 -5
  36. package/dist/index223.js +247 -10
  37. package/dist/index224.js +50 -367
  38. package/dist/index225.js +44 -2
  39. package/dist/index226.js +5 -3
  40. package/dist/index227.js +60 -4
  41. package/dist/index228.js +126 -3
  42. package/dist/index229.js +125 -7
  43. package/dist/index230.js +2 -164
  44. package/dist/index231.js +41 -84
  45. package/dist/index232.js +22 -0
  46. package/dist/index233.js +6 -19
  47. package/dist/index234.js +5 -27
  48. package/dist/index235.js +12 -3
  49. package/dist/index236.js +366 -246
  50. package/dist/index237.js +3 -52
  51. package/dist/index238.js +7 -44
  52. package/dist/index239.js +3 -5
  53. package/dist/index24.js +6 -6
  54. package/dist/index240.js +4 -60
  55. package/dist/index243.js +1 -1
  56. package/dist/index245.js +1 -1
  57. package/dist/index250.js +9 -3
  58. package/dist/index251.js +25 -0
  59. package/dist/index252.js +89 -7
  60. package/dist/index254.js +6 -23
  61. package/dist/index255.js +14 -87
  62. package/dist/index256.js +6 -0
  63. package/dist/index257.js +3 -4
  64. package/dist/index259.js +7 -6
  65. package/dist/index26.js +1 -1
  66. package/dist/index260.js +3 -2
  67. package/dist/index261.js +12 -2
  68. package/dist/index262.js +9 -2
  69. package/dist/index263.js +9 -2
  70. package/dist/index264.js +17 -2
  71. package/dist/index265.js +3 -125
  72. package/dist/index266.js +277 -427
  73. package/dist/index267.js +5 -175
  74. package/dist/index268.js +2 -22
  75. package/dist/index270.js +2 -2
  76. package/dist/index271.js +2 -224
  77. package/dist/index272.js +2 -6
  78. package/dist/index273.js +2 -16
  79. package/dist/index274.js +2 -9
  80. package/dist/index275.js +2 -200
  81. package/dist/index276.js +2 -436
  82. package/dist/index277.js +2 -127
  83. package/dist/index278.js +24 -85
  84. package/dist/index279.js +22 -3
  85. package/dist/index28.js +3 -3
  86. package/dist/index281.js +2 -9
  87. package/dist/index282.js +125 -8
  88. package/dist/index283.js +429 -15
  89. package/dist/index284.js +175 -3
  90. package/dist/index285.js +22 -2
  91. package/dist/index287.js +1 -1
  92. package/dist/index288.js +9 -2
  93. package/dist/index289.js +436 -2
  94. package/dist/index290.js +127 -2
  95. package/dist/index291.js +197 -25
  96. package/dist/index292.js +224 -22
  97. package/dist/index293.js +91 -0
  98. package/dist/index297.js +1 -1
  99. package/dist/index298.js +66 -5
  100. package/dist/index299.js +5 -66
  101. package/dist/index30.js +2 -2
  102. package/dist/index300.js +4 -32
  103. package/dist/index301.js +7 -4
  104. package/dist/index302.js +3 -8
  105. package/dist/index303.js +3 -4
  106. package/dist/index304.js +3 -3
  107. package/dist/index305.js +58 -3
  108. package/dist/index306.js +33 -3
  109. package/dist/index307.js +6 -57
  110. package/dist/index308.js +18 -10
  111. package/dist/index310.js +10 -6
  112. package/dist/index311.js +3 -18
  113. package/dist/index313.js +1 -1
  114. package/dist/index315.js +1 -1
  115. package/dist/index32.js +2 -2
  116. package/dist/index34.js +3 -3
  117. package/dist/index36.js +10 -10
  118. package/dist/index38.js +3 -3
  119. package/dist/index40.js +2 -2
  120. package/dist/index42.js +2 -2
  121. package/dist/index44.js +4 -4
  122. package/dist/index46.js +2 -2
  123. package/dist/index48.js +2 -2
  124. package/dist/index54.js +1 -1
  125. package/dist/index56.js +1 -1
  126. package/dist/index74.js +3 -3
  127. package/dist/index78.js +2 -2
  128. package/dist/index80.js +1 -1
  129. package/dist/index83.js +3 -3
  130. package/dist/index85.js +1 -1
  131. package/dist/index87.js +4 -4
  132. package/dist/index89.js +1 -1
  133. package/package.json +2 -1
  134. package/dist/index209.js +0 -4
  135. package/dist/index213.js +0 -127
  136. package/dist/index253.js +0 -11
  137. package/dist/index258.js +0 -283
  138. package/dist/index280.js +0 -14
  139. /package/dist/{index286.js → index269.js} +0 -0
package/dist/index231.js CHANGED
@@ -1,86 +1,43 @@
1
- import { defineComponent as b, openBlock as t, createElementBlock as n, normalizeClass as r, createElementVNode as l, renderSlot as s, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
2
- const p = { class: "bb-cr-container__container" }, u = {
3
- key: 0,
4
- class: "bb-cr-container__loading-container"
5
- }, g = {
6
- key: 1,
7
- class: "bb-cr-container__no-data-container"
8
- }, f = /* @__PURE__ */ b({
9
- __name: "OptionsContainer",
10
- props: {
11
- direction: {},
12
- hasErrors: { type: Boolean },
13
- hideLabel: { type: Boolean },
14
- loadingText: {},
15
- loading: { type: Boolean },
16
- noDataText: {},
17
- options: {}
18
- },
19
- setup(k) {
20
- return (a, y) => (t(), n("span", {
21
- ref: "container",
22
- class: r(["bb-cr-container", {
23
- "bb-cr-container--errors": a.hasErrors,
24
- "bb-cr-container--horizontal": a.direction === "horizontal",
25
- "bb-cr-container--vertical": a.direction === "vertical"
26
- }])
27
- }, [
28
- l("span", p, [
29
- s(a.$slots, "prepend"),
30
- !a.options.length && a.loading ? (t(), n("span", u, [
31
- s(a.$slots, "loading", {}, () => [
32
- o(d(a.loadingText), 1)
33
- ])
34
- ])) : a.options.length ? h("", !0) : (t(), n("span", g, [
35
- s(a.$slots, "no-data", {}, () => [
36
- o(d(a.noDataText), 1)
37
- ])
38
- ])),
39
- (t(!0), n(c, null, m(a.options, (e, i) => (t(), n(c, {
40
- key: (e == null ? void 0 : e.valueHash) || i
41
- }, [
42
- s(a.$slots, "option:prepend", {
43
- id: e.valueHash,
44
- checked: !!e.selected,
45
- disabled: !!e.disabled,
46
- item: e.item,
47
- text: e.text
48
- }),
49
- l("label", {
50
- class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
51
- }, [
52
- s(a.$slots, "input", {
53
- index: i,
54
- option: e
55
- }),
56
- l("span", {
57
- class: r({
58
- "bb-cr-container-option__text": !0,
59
- "sr-only": a.hideLabel
60
- })
61
- }, [
62
- s(a.$slots, "label", {
63
- checked: !!e.selected,
64
- item: e.item,
65
- text: e.text
66
- }, () => [
67
- o(d(e.text), 1)
68
- ])
69
- ], 2)
70
- ], 2),
71
- s(a.$slots, "option:append", {
72
- id: e.valueHash,
73
- checked: !!e.selected,
74
- disabled: !!e.disabled,
75
- item: e.item,
76
- text: e.text
77
- })
78
- ], 64))), 128)),
79
- s(a.$slots, "append")
80
- ])
81
- ], 2));
82
- }
83
- });
1
+ import { unrefElement as A } from "./index131.js";
2
+ import { toValue as n, notNullish as g, tryOnScopeDispose as y } from "./index204.js";
3
+ import { ref as i, computed as D, watch as F } from "vue";
4
+ import { createFocusTrap as T } from "./index283.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
+ }
84
41
  export {
85
- f as default
42
+ E as useFocusTrap
86
43
  };
@@ -0,0 +1,22 @@
1
+ import { MaskInput as r } from "./index284.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
+ };
20
+ export {
21
+ k as vMaska
22
+ };
package/dist/index233.js CHANGED
@@ -1,21 +1,8 @@
1
- import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index259.js";
2
- import { __module as n } from "./index285.js";
3
- (function(u, l) {
4
- (function(c, e) {
5
- u.exports = e();
6
- })(s, function() {
7
- return function(c, e, r) {
8
- r.updateLocale = function(f, o) {
9
- var t = r.Ls[f];
10
- if (t) return (o ? Object.keys(o) : []).forEach(function(a) {
11
- t[a] = o[a];
12
- }), t;
13
- };
14
- };
15
- });
16
- })(n);
17
- var i = n.exports;
18
- const x = /* @__PURE__ */ p(i);
1
+ const o = (e, t = 50) => new Promise((r) => {
2
+ const n = setInterval(() => {
3
+ e() && (clearInterval(n), r());
4
+ }, t);
5
+ });
19
6
  export {
20
- x as default
7
+ o as waitFor
21
8
  };
package/dist/index234.js CHANGED
@@ -1,29 +1,7 @@
1
- import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index259.js";
2
- import { __module as n } from "./index286.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);
1
+ import o from "./index285.js";
2
+ /* empty css */
3
+ import t from "./index259.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb4d6ef0"]]);
27
5
  export {
28
- x as default
6
+ e as default
29
7
  };
package/dist/index235.js CHANGED
@@ -1,5 +1,14 @@
1
- import { hash as o } from "./index291.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
1
+ import { defineComponent as n, getCurrentInstance as s, openBlock as p, createBlock as c, Teleport as l, unref as u, renderSlot as a } from "vue";
2
+ const m = /* @__PURE__ */ n({
3
+ __name: "BbTeleport",
4
+ setup(_) {
5
+ var e, t;
6
+ const o = !!((t = (e = s()) == null ? void 0 : e.proxy) != null && t.$nuxt) ? "#teleports" : "body";
7
+ return (r, d) => (p(), c(l, { to: u(o) }, [
8
+ a(r.$slots, "default")
9
+ ], 8, ["to"]));
10
+ }
11
+ });
3
12
  export {
4
- t as hash
13
+ m as default
5
14
  };