bitboss-ui 2.0.168 → 2.0.170

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 (187) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -10
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +10 -10
  3. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -8
  4. package/dist/components/CommonPopover.vue.d.ts +6 -6
  5. package/dist/index106.js +7 -7
  6. package/dist/index111.js +1 -1
  7. package/dist/index113.js +1 -1
  8. package/dist/index121.js +10 -10
  9. package/dist/index129.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index131.js +37 -37
  12. package/dist/index136.js +1 -1
  13. package/dist/index138.js +1 -1
  14. package/dist/index15.js +8 -8
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +8 -8
  17. package/dist/index207.js +2 -2
  18. package/dist/index208.js +2 -2
  19. package/dist/index209.js +5 -66
  20. package/dist/index21.js +16 -16
  21. package/dist/index210.js +7 -0
  22. package/dist/index211.js +5 -13
  23. package/dist/index212.js +5 -177
  24. package/dist/index213.js +5 -2
  25. package/dist/index214.js +5 -4
  26. package/dist/index215.js +5 -2
  27. package/dist/index216.js +3 -41
  28. package/dist/index217.js +2 -6
  29. package/dist/index218.js +8 -7
  30. package/dist/index219.js +246 -11
  31. package/dist/index220.js +51 -12
  32. package/dist/index221.js +44 -4
  33. package/dist/index222.js +5 -20
  34. package/dist/index223.js +56 -90
  35. package/dist/index224.js +15 -0
  36. package/dist/index225.js +2 -200
  37. package/dist/index226.js +6 -0
  38. package/dist/index227.js +2 -86
  39. package/dist/index228.js +36 -0
  40. package/dist/index229.js +2 -29
  41. package/dist/index23.js +17 -17
  42. package/dist/index230.js +2 -17
  43. package/dist/index231.js +86 -51
  44. package/dist/index233.js +29 -3
  45. package/dist/index234.js +16 -11
  46. package/dist/index235.js +48 -13
  47. package/dist/index236.js +15 -2
  48. package/dist/index237.js +11 -17
  49. package/dist/index238.js +15 -127
  50. package/dist/index239.js +3 -106
  51. package/dist/index240.js +6 -0
  52. package/dist/index241.js +41 -100
  53. package/dist/index242.js +22 -0
  54. package/dist/index243.js +94 -12
  55. package/dist/index245.js +191 -219
  56. package/dist/index247.js +63 -31
  57. package/dist/index249.js +13 -2
  58. package/dist/index25.js +5 -5
  59. package/dist/index250.js +6 -2
  60. package/dist/index251.js +7 -5
  61. package/dist/index252.js +15 -5
  62. package/dist/index253.js +18 -5
  63. package/dist/index254.js +128 -5
  64. package/dist/index255.js +106 -5
  65. package/dist/index257.js +100 -9
  66. package/dist/index259.js +12 -5
  67. package/dist/index260.js +2 -5
  68. package/dist/index261.js +226 -6
  69. package/dist/index262.js +365 -247
  70. package/dist/index263.js +2 -52
  71. package/dist/index264.js +5 -44
  72. package/dist/index265.js +9 -5
  73. package/dist/index266.js +176 -59
  74. package/dist/index267.js +8 -9
  75. package/dist/index268.js +10 -2
  76. package/dist/index269.js +100 -8
  77. package/dist/index27.js +1 -1
  78. package/dist/index271.js +23 -101
  79. package/dist/index272.js +12 -0
  80. package/dist/index273.js +3 -23
  81. package/dist/index274.js +6 -3
  82. package/dist/index275.js +16 -6
  83. package/dist/index276.js +3 -16
  84. package/dist/index277.js +1 -1
  85. package/dist/index280.js +1 -1
  86. package/dist/index282.js +1 -1
  87. package/dist/index283.js +1 -1
  88. package/dist/index284.js +280 -4
  89. package/dist/index285.js +2 -3
  90. package/dist/index286.js +18 -0
  91. package/dist/index287.js +2 -7
  92. package/dist/index288.js +15 -3
  93. package/dist/index289.js +2 -471
  94. package/dist/index29.js +3 -3
  95. package/dist/index290.js +19 -2
  96. package/dist/index291.js +2 -7
  97. package/dist/index292.js +14 -10
  98. package/dist/index293.js +2 -3
  99. package/dist/index294.js +19 -3
  100. package/dist/index295.js +2 -3
  101. package/dist/index296.js +27 -17
  102. package/dist/index297.js +2 -28
  103. package/dist/index298.js +1 -1
  104. package/dist/index299.js +2 -200
  105. package/dist/index300.js +2 -129
  106. package/dist/index301.js +2 -3
  107. package/dist/index302.js +28 -3
  108. package/dist/index303.js +21 -1
  109. package/dist/index305.js +6 -125
  110. package/dist/index306.js +7 -280
  111. package/dist/index307.js +11 -2
  112. package/dist/index308.js +4 -125
  113. package/dist/index309.js +2 -2
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +5 -15
  116. package/dist/index311.js +4 -2
  117. package/dist/index312.js +3 -16
  118. package/dist/index313.js +17 -2
  119. package/dist/index314.js +5 -19
  120. package/dist/index315.js +471 -2
  121. package/dist/index316.js +3 -15
  122. package/dist/index317.js +3 -2
  123. package/dist/index318.js +3 -5
  124. package/dist/index320.js +199 -18
  125. package/dist/index321.js +2 -2
  126. package/dist/index322.js +128 -26
  127. package/dist/index323.js +3 -2
  128. package/dist/index324.js +3 -2
  129. package/dist/index325.js +1 -1
  130. package/dist/index326.js +382 -2
  131. package/dist/index327.js +126 -2
  132. package/dist/index328.js +125 -22
  133. package/dist/index329.js +4 -0
  134. package/dist/index33.js +8 -8
  135. package/dist/index330.js +3 -5
  136. package/dist/index331.js +5 -3
  137. package/dist/index336.js +7 -5
  138. package/dist/index337.js +18 -6
  139. package/dist/index338.js +5 -17
  140. package/dist/index339.js +32 -227
  141. package/dist/index340.js +28 -47
  142. package/dist/index342.js +227 -57
  143. package/dist/index343.js +33 -33
  144. package/dist/index344.js +58 -8
  145. package/dist/index345.js +7 -5
  146. package/dist/index346.js +6 -8
  147. package/dist/index347.js +7 -32
  148. package/dist/index348.js +5 -28
  149. package/dist/index349.js +49 -0
  150. package/dist/index35.js +4 -4
  151. package/dist/index350.js +1 -1
  152. package/dist/index352.js +5 -0
  153. package/dist/index353.js +482 -3
  154. package/dist/index355.js +1 -1
  155. package/dist/index37.js +22 -22
  156. package/dist/index39.js +5 -5
  157. package/dist/index41.js +2 -2
  158. package/dist/index43.js +8 -8
  159. package/dist/index45.js +8 -8
  160. package/dist/index47.js +2 -2
  161. package/dist/index49.js +3 -3
  162. package/dist/index53.js +1 -1
  163. package/dist/index55.js +1 -1
  164. package/dist/index57.js +2 -2
  165. package/dist/index61.js +3 -3
  166. package/dist/index67.js +1 -1
  167. package/dist/index79.js +56 -56
  168. package/dist/index81.js +1 -1
  169. package/dist/index83.js +2 -2
  170. package/dist/index85.js +1 -1
  171. package/dist/index87.js +1 -1
  172. package/dist/index90.js +4 -4
  173. package/dist/index92.js +2 -2
  174. package/dist/index94.js +25 -25
  175. package/dist/index96.js +1 -1
  176. package/package.json +1 -1
  177. package/dist/index232.js +0 -17
  178. package/dist/index244.js +0 -4
  179. package/dist/index246.js +0 -370
  180. package/dist/index248.js +0 -4
  181. package/dist/index256.js +0 -7
  182. package/dist/index258.js +0 -5
  183. package/dist/index270.js +0 -13
  184. package/dist/index304.js +0 -384
  185. package/dist/index319.js +0 -8
  186. package/dist/index341.js +0 -9
  187. package/dist/index351.js +0 -484
package/dist/index241.js CHANGED
@@ -1,102 +1,43 @@
1
- import { defineComponent as F, ref as H, computed as L, watch as N, createElementBlock as d, openBlock as v, Fragment as S, renderList as A, withModifiers as O, normalizeClass as P, toDisplayString as V } from "vue";
2
- import { hash as f } from "./index233.js";
3
- import { isNil as i } from "./index250.js";
4
- const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
- __name: "CommaBox",
6
- props: {
7
- options: {}
8
- },
9
- emits: ["option:unselected"],
10
- setup(m, { expose: h, emit: x }) {
11
- const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
12
- const s = i(n.value) ? -1 : n.value;
13
- let o = (s + e) % t.options.length;
14
- for (; t.options[o].disabled && o !== s; )
15
- o = u(e + 1);
16
- return o;
17
- }, b = () => {
18
- if (!l.value) return;
19
- const e = u();
20
- n.value = e;
21
- }, c = (e = 1) => {
22
- const s = i(n.value) ? 0 : n.value;
23
- let o = (s - e + t.options.length) % t.options.length;
24
- for (; t.options[o].disabled && o !== s; )
25
- o = c(e + 1);
26
- return o;
27
- }, w = async () => {
28
- if (!l.value) return;
29
- const e = c();
30
- n.value = e;
31
- }, I = () => {
32
- if (!l.value) return;
33
- let e = 0;
34
- for (; t.options[e].disabled; )
35
- e++;
36
- n.value = e;
37
- }, g = () => {
38
- if (!l.value) return;
39
- let e = t.options.length - 1;
40
- for (; t.options[e].disabled && e !== 0; )
41
- e--;
42
- n.value = e;
43
- }, k = () => {
44
- if (!l.value) return;
45
- let e = 0;
46
- for (; !t.options[e].selected && t.options.length !== e; )
47
- e++;
48
- n.value = e;
49
- }, _ = () => {
50
- if (!l.value) return;
51
- let e = t.options.length - 1;
52
- for (; t.options[e].selected && e !== 0; )
53
- e--;
54
- n.value = e;
55
- }, C = (e) => {
56
- if (!l.value) return;
57
- const s = t.options.findIndex(
58
- (o) => o.valueHash === e
59
- );
60
- s >= 0 && (n.value = s);
61
- }, r = () => {
62
- n.value = null;
63
- }, y = () => {
64
- if (i(n.value)) return;
65
- const e = t.options[n.value];
66
- e.selected && a("option:unselected", e);
67
- }, B = () => i(n.value) ? void 0 : t.options[n.value];
68
- return N(
69
- () => t.options,
70
- (e, s) => {
71
- f(e) !== f(s) && r();
72
- },
73
- {
74
- flush: "post"
75
- }
76
- ), h({
77
- focusNext: b,
78
- focusPrevious: w,
79
- focusFirst: I,
80
- focusFirstSelected: k,
81
- focusLast: g,
82
- focusLastSelected: _,
83
- blur: r,
84
- confirmOption: y,
85
- focusByHash: C,
86
- getHighlighted: B
87
- }), (e, s) => (v(!0), d(S, null, A(e.options, (o, p) => (v(), d("span", {
88
- key: o.valueHash,
89
- class: P({
90
- "bb-commabox-item": !0,
91
- "bb-commabox-item--focused": p === n.value,
92
- "bb-commabox-item--has-comma": p !== e.options.length - 1
93
- }),
94
- clearable: !0,
95
- text: o.text,
96
- "onClick:clear": O((D) => a("option:unselected", o), ["stop"])
97
- }, V(o.text), 43, z))), 128));
98
- }
99
- });
1
+ import { unrefElement as g } from "./index137.js";
2
+ import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
3
+ import { createFocusTrap as F } from "./index315.js";
4
+ import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
5
+ function N(f, a = {}) {
6
+ let t;
7
+ const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
8
+ t && (t.pause(), r.value = !0);
9
+ }, m = () => {
10
+ t && (t.unpause(), r.value = !1);
11
+ }, h = T(() => {
12
+ const e = i(f);
13
+ return A(e).map((d) => {
14
+ const s = i(d);
15
+ return typeof s == "string" ? s : g(s);
16
+ }).filter(D);
17
+ });
18
+ return w(
19
+ h,
20
+ (e) => {
21
+ e.length && (t = F(e, {
22
+ ...p,
23
+ onActivate() {
24
+ o.value = !0, a.onActivate && a.onActivate();
25
+ },
26
+ onDeactivate() {
27
+ o.value = !1, a.onDeactivate && a.onDeactivate();
28
+ }
29
+ }), l && c());
30
+ },
31
+ { flush: "post" }
32
+ ), y(() => u()), {
33
+ hasFocus: o,
34
+ isPaused: r,
35
+ activate: c,
36
+ deactivate: u,
37
+ pause: v,
38
+ unpause: m
39
+ };
40
+ }
100
41
  export {
101
- j as default
42
+ N as useFocusTrap
102
43
  };
@@ -0,0 +1,22 @@
1
+ import { MaskInput as r } from "./index266.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/index243.js CHANGED
@@ -1,14 +1,96 @@
1
- import { ref as t } from "vue";
2
- const n = () => {
3
- const e = t([]);
4
- return { array: e, set: (...r) => {
5
- e.value = r;
6
- }, add: (...r) => {
7
- e.value.push(...r);
8
- }, remove: (r) => {
9
- e.value = e.value.filter(r);
10
- } };
11
- };
1
+ import { defineComponent as h, toRef as y, ref as o, computed as n, watch as x, createBlock as $, openBlock as b, withCtx as A, createElementBlock as k, mergeProps as l, createElementVNode as f, renderSlot as B } from "vue";
2
+ import C from "./index252.js";
3
+ import c from "./index348.js";
4
+ import { useFloating as D, arrow as E } from "./index254.js";
5
+ import { flip as P, offset as F, shift as M, autoUpdate as S } from "./index262.js";
6
+ const W = /* @__PURE__ */ h({
7
+ __name: "CommonFloating",
8
+ props: {
9
+ arrowPadding: {},
10
+ eager: { type: Boolean },
11
+ offset: {},
12
+ padding: {},
13
+ placement: {},
14
+ theme: { default: "default" },
15
+ transitionDuration: {},
16
+ containerAttributes: { default: () => ({}) },
17
+ bubbleAttributes: {},
18
+ wrapper: {},
19
+ baseClass: {},
20
+ open: { type: Boolean },
21
+ teleportTarget: {}
22
+ },
23
+ setup(d) {
24
+ const e = d, m = y(e, "wrapper"), i = o(), s = o(), p = o(), { floatingStyles: g, placement: w, middlewareData: a } = D(
25
+ i,
26
+ s,
27
+ {
28
+ placement: e.placement,
29
+ whileElementsMounted: S,
30
+ middleware: [
31
+ P(),
32
+ F(e.offset),
33
+ M({ padding: e.padding }),
34
+ E({
35
+ element: p,
36
+ padding: e.arrowPadding
37
+ })
38
+ ]
39
+ }
40
+ ), _ = n(() => {
41
+ if (a.value.arrow) {
42
+ const { x: t, y: r } = a.value.arrow;
43
+ return {
44
+ style: {
45
+ left: `${t}px`,
46
+ top: `${r}px`
47
+ }
48
+ };
49
+ }
50
+ }), u = n(() => {
51
+ var t, r;
52
+ return c({}, e.containerAttributes, {
53
+ class: {
54
+ "bb-floating": !0,
55
+ [`bb-floating--${w.value}`]: !0,
56
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
57
+ "bb-floating--hidden": !e.open,
58
+ "bb-floating--open": e.open
59
+ },
60
+ style: {
61
+ ...g.value,
62
+ "--transition-duration": `${e.transitionDuration}ms`,
63
+ "--arrow-offset-x": Math.round(((r = (t = a.value) == null ? void 0 : t.arrow) == null ? void 0 : r.x) ?? 0) + "px"
64
+ },
65
+ tabindex: e.open ? void 0 : -1
66
+ });
67
+ }), v = n(() => c({}, e.bubbleAttributes, {}));
68
+ return x(
69
+ () => e.open,
70
+ (t) => {
71
+ t && (i.value = m.value);
72
+ }
73
+ ), (t, r) => (b(), $(C, { target: t.teleportTarget }, {
74
+ default: A(() => [
75
+ (b(), k("span", l(u.value, {
76
+ key: u.value.id,
77
+ ref_key: "content",
78
+ ref: s
79
+ }), [
80
+ f("span", l({
81
+ ref_key: "bubblearrow",
82
+ ref: p,
83
+ class: "bb-floating__arrow"
84
+ }, _.value), null, 16),
85
+ f("span", l({ class: "bb-floating__bubble" }, v.value), [
86
+ B(t.$slots, "default")
87
+ ], 16)
88
+ ], 16))
89
+ ]),
90
+ _: 3
91
+ }, 8, ["target"]));
92
+ }
93
+ });
12
94
  export {
13
- n as useArray
95
+ W as default
14
96
  };