bitboss-ui 2.0.103 → 2.0.104

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 (152) hide show
  1. package/dist/index100.js +9 -9
  2. package/dist/index111.js +11 -11
  3. package/dist/index119.js +1 -1
  4. package/dist/index121.js +5 -5
  5. package/dist/index123.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index129.js +1 -1
  9. package/dist/index13.js +23 -23
  10. package/dist/index131.js +1 -1
  11. package/dist/index132.js +2 -2
  12. package/dist/index133.js +2 -2
  13. package/dist/index15.js +4 -4
  14. package/dist/index17.js +3 -3
  15. package/dist/index19.js +9 -9
  16. package/dist/index205.js +2 -53
  17. package/dist/index206.js +117 -0
  18. package/dist/index207.js +5 -13
  19. package/dist/index208.js +15 -19
  20. package/dist/index209.js +16 -4
  21. package/dist/index21.js +14 -14
  22. package/dist/index210.js +17 -124
  23. package/dist/index211.js +19 -5
  24. package/dist/index212.js +23 -121
  25. package/dist/index213.js +3 -19
  26. package/dist/index214.js +2 -16
  27. package/dist/index215.js +8 -16
  28. package/dist/index216.js +250 -2
  29. package/dist/index217.js +52 -2
  30. package/dist/index218.js +44 -41
  31. package/dist/index219.js +5 -6
  32. package/dist/index220.js +60 -5
  33. package/dist/index221.js +126 -12
  34. package/dist/index222.js +122 -366
  35. package/dist/index223.js +2 -2
  36. package/dist/index224.js +41 -4
  37. package/dist/index225.js +20 -2
  38. package/dist/index226.js +6 -3
  39. package/dist/index227.js +53 -7
  40. package/dist/index229.js +13 -3
  41. package/dist/index23.js +16 -16
  42. package/dist/index230.js +5 -84
  43. package/dist/index231.js +14 -0
  44. package/dist/index232.js +369 -8
  45. package/dist/index233.js +4 -25
  46. package/dist/index234.js +84 -17
  47. package/dist/index236.js +8 -15
  48. package/dist/index237.js +24 -11
  49. package/dist/index238.js +15 -14
  50. package/dist/index239.js +47 -18
  51. package/dist/index240.js +15 -27
  52. package/dist/index241.js +12 -250
  53. package/dist/index242.js +16 -52
  54. package/dist/index243.js +2 -44
  55. package/dist/index244.js +4 -5
  56. package/dist/index245.js +2 -60
  57. package/dist/index246.js +3 -2
  58. package/dist/index247.js +7 -115
  59. package/dist/index248.js +2 -3
  60. package/dist/index249.js +18 -2
  61. package/dist/index25.js +6 -6
  62. package/dist/index250.js +105 -17
  63. package/dist/{index253.js → index252.js} +2 -2
  64. package/dist/index254.js +14 -0
  65. package/dist/index255.js +2 -12
  66. package/dist/index256.js +3 -2
  67. package/dist/index257.js +2 -2
  68. package/dist/index260.js +9 -6
  69. package/dist/index261.js +23 -16
  70. package/dist/index262.js +88 -8
  71. package/dist/index264.js +9 -89
  72. package/dist/index265.js +8 -0
  73. package/dist/index266.js +16 -3
  74. package/dist/index267.js +283 -0
  75. package/dist/index268.js +6 -7
  76. package/dist/index269.js +2 -176
  77. package/dist/index27.js +1 -1
  78. package/dist/index270.js +2 -281
  79. package/dist/index271.js +2 -6
  80. package/dist/index272.js +2 -2
  81. package/dist/index273.js +2 -2
  82. package/dist/index275.js +2 -2
  83. package/dist/index276.js +2 -2
  84. package/dist/index277.js +2 -126
  85. package/dist/index278.js +2 -431
  86. package/dist/index279.js +27 -21
  87. package/dist/index280.js +24 -0
  88. package/dist/index282.js +6 -3
  89. package/dist/index283.js +3 -28
  90. package/dist/index284.js +6 -199
  91. package/dist/index285.js +10 -435
  92. package/dist/index286.js +16 -126
  93. package/dist/index287.js +9 -89
  94. package/dist/index288.js +3 -9
  95. package/dist/index29.js +3 -3
  96. package/dist/index290.js +175 -6
  97. package/dist/index291.js +2 -11
  98. package/dist/index292.js +124 -15
  99. package/dist/index293.js +431 -9
  100. package/dist/index294.js +21 -7
  101. package/dist/index296.js +2 -2
  102. package/dist/index297.js +4 -2
  103. package/dist/index298.js +8 -2
  104. package/dist/index299.js +436 -2
  105. package/dist/index300.js +127 -2
  106. package/dist/index301.js +199 -21
  107. package/dist/index302.js +91 -0
  108. package/dist/index303.js +3 -224
  109. package/dist/index304.js +1 -1
  110. package/dist/index305.js +213 -3
  111. package/dist/index306.js +224 -213
  112. package/dist/index307.js +5 -2
  113. package/dist/index308.js +2 -5
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +3 -3
  116. package/dist/index311.js +7 -3
  117. package/dist/index312.js +17 -56
  118. package/dist/index313.js +4 -32
  119. package/dist/index314.js +7 -4
  120. package/dist/index315.js +3 -8
  121. package/dist/index316.js +3 -3
  122. package/dist/index317.js +57 -3
  123. package/dist/index320.js +6 -6
  124. package/dist/index321.js +3 -18
  125. package/dist/index322.js +32 -6
  126. package/dist/{index326.js → index325.js} +1 -1
  127. package/dist/index33.js +8 -8
  128. package/dist/index35.js +3 -3
  129. package/dist/index37.js +20 -20
  130. package/dist/index39.js +5 -5
  131. package/dist/index41.js +2 -2
  132. package/dist/index43.js +9 -9
  133. package/dist/index45.js +7 -7
  134. package/dist/index47.js +2 -2
  135. package/dist/index49.js +2 -2
  136. package/dist/index55.js +1 -1
  137. package/dist/index57.js +2 -2
  138. package/dist/index75.js +3 -3
  139. package/dist/index79.js +2 -2
  140. package/dist/index81.js +1 -1
  141. package/dist/index84.js +3 -3
  142. package/dist/index86.js +1 -1
  143. package/dist/index88.js +4 -4
  144. package/dist/index90.js +1 -1
  145. package/package.json +1 -1
  146. package/dist/index228.js +0 -10
  147. package/dist/index235.js +0 -50
  148. package/dist/index251.js +0 -108
  149. package/dist/index263.js +0 -25
  150. package/dist/index281.js +0 -4
  151. package/dist/index289.js +0 -5
  152. package/dist/index295.js +0 -4
package/dist/index217.js CHANGED
@@ -1,4 +1,54 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { defineComponent as p, ref as b, watch as _, computed as m, openBlock as d, createElementBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
+ import k from "./index219.js";
3
+ const y = { class: "bb-base-date-picker__year-container" }, v = {
4
+ "aria-live": "polite",
5
+ class: "bb-base-date-picker__selected-day-label"
6
+ }, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
7
+ __name: "BaseDatePickerHeader",
8
+ props: {
9
+ cursor: {},
10
+ disabled: { type: Boolean },
11
+ hidden: { type: Boolean }
12
+ },
13
+ emits: ["mode:year", "mode:month"],
14
+ setup(n) {
15
+ const s = n, r = b("top"), l = (e, a) => {
16
+ e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
17
+ };
18
+ _(
19
+ () => s.cursor,
20
+ (e, a) => {
21
+ l(e, a);
22
+ }
23
+ );
24
+ const i = m(() => s.cursor.format("YYYY"));
25
+ return (e, a) => (d(), c("div", {
26
+ class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
27
+ }, [
28
+ t("div", y, [
29
+ h(k, {
30
+ direction: r.value,
31
+ duration: 500,
32
+ gap: 30
33
+ }, {
34
+ default: f(() => [
35
+ (d(), c("span", {
36
+ key: i.value,
37
+ "aria-live": "polite",
38
+ class: "bb-base-date-picker__year-button"
39
+ }, o(i.value), 1))
40
+ ]),
41
+ _: 1
42
+ }, 8, ["direction"])
43
+ ]),
44
+ t("div", v, [
45
+ t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
46
+ t("span", D, o(e.cursor.format("DD")), 1),
47
+ t("span", M, o(e.cursor.format("MMMM")), 1)
48
+ ])
49
+ ], 2));
50
+ }
51
+ });
2
52
  export {
3
- e as last
53
+ C as default
4
54
  };
package/dist/index218.js CHANGED
@@ -1,43 +1,46 @@
1
- import { unrefElement as A } from "./index132.js";
2
- import { toValue as n, notNullish as g, tryOnScopeDispose as y } from "./index247.js";
3
- import { ref as i, computed as D, watch as F } from "vue";
4
- import { createFocusTrap as T } from "./index278.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
- }
1
+ import { defineComponent as _, computed as a, openBlock as o, createElementBlock as c, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
2
+ import C from "./index13.js";
3
+ /* empty css */
4
+ const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
+ __name: "BaseDatePickerMonthSelector",
6
+ props: {
7
+ cursor: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:month"],
11
+ setup(l, { emit: d }) {
12
+ const s = l, m = d, i = a(() => s.cursor.month()), u = a(
13
+ () => new Array(12).fill(0).map((r, t) => {
14
+ const n = s.cursor.clone().startOf("year").add(t, "month");
15
+ return {
16
+ text: n.format("MMMM"),
17
+ key: n.unix(),
18
+ selected: n.month() === i.value,
19
+ handler: () => m("update:month", t)
20
+ };
21
+ })
22
+ );
23
+ return (r, t) => (o(), c("div", M, [
24
+ p("div", v, [
25
+ (o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
26
+ key: e.key,
27
+ class: f({
28
+ content__btn: !0,
29
+ "content__btn--selected": e.selected
30
+ }),
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
34
+ }, {
35
+ default: y(() => [
36
+ x(B(e.text), 1)
37
+ ]),
38
+ _: 2
39
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
40
+ ])
41
+ ]));
42
+ }
43
+ });
41
44
  export {
42
- E as useFocusTrap
45
+ E as default
43
46
  };
package/dist/index219.js CHANGED
@@ -1,8 +1,7 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
1
+ import o from "./index280.js";
2
+ /* empty css */
3
+ import t from "./index282.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
6
5
  export {
7
- o as waitFor
6
+ m as default
8
7
  };
package/dist/index220.js CHANGED
@@ -1,7 +1,62 @@
1
- import o from "./index279.js";
2
- /* empty css */
3
- import t from "./index268.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb4d6ef0"]]);
1
+ import { defineComponent as g, ref as i, computed as d, onMounted as h, openBlock as u, createElementBlock as m, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
+ import { range as H } from "./index320.js";
3
+ import M from "./index13.js";
4
+ /* empty css */
5
+ const n = 10, l = 3, V = /* @__PURE__ */ g({
6
+ __name: "BaseDatePickerYearSelector",
7
+ props: {
8
+ cursor: {},
9
+ disabled: { type: Boolean }
10
+ },
11
+ emits: ["update:year"],
12
+ setup(p, { emit: _ }) {
13
+ const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
+ () => H(c.value, s.value).map((e) => ({
15
+ text: e,
16
+ key: e,
17
+ selected: e === r.value,
18
+ handler: () => b("update:year", e)
19
+ }))
20
+ ), k = (e) => {
21
+ const t = e.target;
22
+ t.scrollTop <= 100 ? c.value = Math.max(
23
+ c.value - n * l,
24
+ r.value - 200
25
+ ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
+ };
27
+ return h(() => {
28
+ if (!o.value) return;
29
+ const e = o.value.querySelector(
30
+ ".content__btn--selected"
31
+ );
32
+ e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
+ }), (e, t) => (u(), m("div", {
34
+ ref_key: "container",
35
+ ref: o,
36
+ class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
+ }, [
38
+ y("div", {
39
+ class: "content",
40
+ onScrollPassive: k
41
+ }, [
42
+ (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
+ key: a.key,
44
+ class: S({
45
+ content__btn: !0,
46
+ "content__btn--selected": a.selected
47
+ }),
48
+ disabled: e.disabled,
49
+ onClick: a.handler
50
+ }, {
51
+ default: T(() => [
52
+ E(w(a.text), 1)
53
+ ]),
54
+ _: 2
55
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
56
+ ], 32)
57
+ ], 512));
58
+ }
59
+ });
5
60
  export {
6
- e as default
61
+ V as default
7
62
  };
package/dist/index221.js CHANGED
@@ -1,14 +1,128 @@
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
- });
1
+ import { arrow as j, computePosition as A } from "./index232.js";
2
+ import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index232.js";
3
+ import { isNode as B, getNodeName as F } from "./index292.js";
4
+ import { getOverflowAncestors as le } from "./index292.js";
5
+ import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function g(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
+ }
14
+ return e;
15
+ }
16
+ function o(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = g(o(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const x = t.whileElementsMounted, V = a(() => {
42
+ var n;
43
+ return (n = o(t.open)) != null ? n : !0;
44
+ }), D = a(() => o(t.middleware)), d = a(() => {
45
+ var n;
46
+ return (n = o(t.placement)) != null ? n : "bottom";
47
+ }), v = a(() => {
48
+ var n;
49
+ return (n = o(t.strategy)) != null ? n : "absolute";
50
+ }), S = a(() => {
51
+ var n;
52
+ return (n = o(t.transform)) != null ? n : !0;
53
+ }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
+ const n = {
55
+ position: c.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const R = C(u.value, p.value), b = C(u.value, w.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + R + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: c.value,
70
+ left: R + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let s;
75
+ function m() {
76
+ i.value == null || u.value == null || A(i.value, u.value, {
77
+ middleware: D.value,
78
+ placement: d.value,
79
+ strategy: v.value
80
+ }).then((n) => {
81
+ p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
+ });
83
+ }
84
+ function E() {
85
+ typeof s == "function" && (s(), s = void 0);
86
+ }
87
+ function N() {
88
+ if (E(), x === void 0) {
89
+ m();
90
+ return;
91
+ }
92
+ if (i.value != null && u.value != null) {
93
+ s = x(i.value, u.value, m);
94
+ return;
95
+ }
96
+ }
97
+ function $() {
98
+ V.value || (y.value = !1);
99
+ }
100
+ return h([D, d, v], m, {
101
+ flush: "sync"
102
+ }), h([i, u], N, {
103
+ flush: "sync"
104
+ }), h(V, $, {
105
+ flush: "sync"
106
+ }), U() && k(E), {
107
+ x: r(p),
108
+ y: r(w),
109
+ strategy: r(c),
110
+ placement: r(O),
111
+ middlewareData: r(P),
112
+ isPositioned: r(y),
113
+ floatingStyles: _,
114
+ update: m
115
+ };
116
+ }
12
117
  export {
13
- m as default
118
+ K as arrow,
119
+ W as autoUpdate,
120
+ A as computePosition,
121
+ X as flip,
122
+ le as getOverflowAncestors,
123
+ Y as hide,
124
+ Z as offset,
125
+ ee as platform,
126
+ ne as shift,
127
+ L as useFloating
14
128
  };