bitboss-ui 2.0.85 → 2.0.86

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 (136) hide show
  1. package/dist/index110.js +4 -4
  2. package/dist/index118.js +1 -1
  3. package/dist/index120.js +5 -5
  4. package/dist/index126.js +7 -7
  5. package/dist/index127.js +1 -1
  6. package/dist/index128.js +1 -1
  7. package/dist/index13.js +1 -1
  8. package/dist/index130.js +1 -1
  9. package/dist/index132.js +2 -2
  10. package/dist/index133.js +2 -2
  11. package/dist/index15.js +4 -4
  12. package/dist/index17.js +3 -3
  13. package/dist/index19.js +2 -2
  14. package/dist/index204.js +81 -2
  15. package/dist/index205.js +5 -81
  16. package/dist/index206.js +14 -124
  17. package/dist/index207.js +16 -5
  18. package/dist/index208.js +17 -123
  19. package/dist/index209.js +18 -18
  20. package/dist/index21.js +14 -14
  21. package/dist/index210.js +24 -13
  22. package/dist/index211.js +3 -16
  23. package/dist/index212.js +2 -2
  24. package/dist/index213.js +8 -2
  25. package/dist/index214.js +248 -40
  26. package/dist/index215.js +50 -18
  27. package/dist/index216.js +43 -5
  28. package/dist/index217.js +4 -52
  29. package/dist/index218.js +62 -0
  30. package/dist/index219.js +52 -12
  31. package/dist/index221.js +13 -12
  32. package/dist/index222.js +17 -366
  33. package/dist/index223.js +4 -2
  34. package/dist/index224.js +2 -4
  35. package/dist/index225.js +164 -2
  36. package/dist/index226.js +84 -4
  37. package/dist/index228.js +2 -19
  38. package/dist/index229.js +4 -27
  39. package/dist/index23.js +16 -16
  40. package/dist/index230.js +2 -3
  41. package/dist/index231.js +3 -249
  42. package/dist/index232.js +41 -52
  43. package/dist/index233.js +5 -43
  44. package/dist/index234.js +7 -5
  45. package/dist/index235.js +10 -58
  46. package/dist/index236.js +126 -3
  47. package/dist/index237.js +125 -7
  48. package/dist/index238.js +2 -164
  49. package/dist/index239.js +5 -84
  50. package/dist/index240.js +371 -0
  51. package/dist/index241.js +1 -1
  52. package/dist/index244.js +1 -1
  53. package/dist/index246.js +1 -1
  54. package/dist/index25.js +6 -6
  55. package/dist/index251.js +281 -9
  56. package/dist/index252.js +6 -23
  57. package/dist/index253.js +2 -89
  58. package/dist/index254.js +4 -0
  59. package/dist/index255.js +2 -6
  60. package/dist/index256.js +2 -16
  61. package/dist/index257.js +2 -9
  62. package/dist/index258.js +2 -281
  63. package/dist/index259.js +2 -6
  64. package/dist/index260.js +2 -2
  65. package/dist/index261.js +2 -2
  66. package/dist/index262.js +2 -2
  67. package/dist/index263.js +28 -2
  68. package/dist/index264.js +22 -2
  69. package/dist/index266.js +5 -429
  70. package/dist/index267.js +6 -173
  71. package/dist/index268.js +23 -3
  72. package/dist/index269.js +91 -0
  73. package/dist/index271.js +5 -21
  74. package/dist/index272.js +18 -0
  75. package/dist/index273.js +3 -2
  76. package/dist/index275.js +167 -427
  77. package/dist/index276.js +7 -125
  78. package/dist/index277.js +3 -200
  79. package/dist/index278.js +12 -2
  80. package/dist/index279.js +9 -2
  81. package/dist/index280.js +9 -2
  82. package/dist/index281.js +17 -2
  83. package/dist/index282.js +4 -2
  84. package/dist/index283.js +4 -2
  85. package/dist/index284.js +427 -24
  86. package/dist/index285.js +1 -21
  87. package/dist/index286.js +91 -0
  88. package/dist/index287.js +2 -89
  89. package/dist/index288.js +126 -3
  90. package/dist/index289.js +22 -12
  91. package/dist/index29.js +3 -3
  92. package/dist/index291.js +199 -8
  93. package/dist/index292.js +224 -17
  94. package/dist/index293.js +435 -3
  95. package/dist/index294.js +121 -218
  96. package/dist/index297.js +2 -2
  97. package/dist/index301.js +5 -3
  98. package/dist/index302.js +8 -4
  99. package/dist/index303.js +3 -4
  100. package/dist/index304.js +3 -58
  101. package/dist/index305.js +4 -33
  102. package/dist/index306.js +4 -7
  103. package/dist/index307.js +57 -17
  104. package/dist/index308.js +6 -6
  105. package/dist/index309.js +18 -4
  106. package/dist/index31.js +2 -2
  107. package/dist/index310.js +32 -7
  108. package/dist/index311.js +6 -3
  109. package/dist/index312.js +10 -46
  110. package/dist/index313.js +46 -10
  111. package/dist/index315.js +1 -1
  112. package/dist/index33.js +2 -2
  113. package/dist/index35.js +3 -3
  114. package/dist/index37.js +10 -10
  115. package/dist/index39.js +3 -3
  116. package/dist/index41.js +2 -2
  117. package/dist/index43.js +2 -2
  118. package/dist/index45.js +4 -4
  119. package/dist/index47.js +2 -2
  120. package/dist/index49.js +2 -2
  121. package/dist/index55.js +1 -1
  122. package/dist/index57.js +1 -1
  123. package/dist/index75.js +3 -3
  124. package/dist/index79.js +2 -2
  125. package/dist/index81.js +1 -1
  126. package/dist/index84.js +3 -3
  127. package/dist/index86.js +1 -1
  128. package/dist/index88.js +4 -4
  129. package/dist/index90.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/index220.js +0 -7
  132. package/dist/index227.js +0 -10
  133. package/dist/index265.js +0 -128
  134. package/dist/index270.js +0 -9
  135. package/dist/index274.js +0 -6
  136. package/dist/index290.js +0 -11
package/dist/index215.js CHANGED
@@ -1,22 +1,54 @@
1
- import { MaskInput as r } from "./index267.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);
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 "./index217.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");
15
17
  };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
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));
17
50
  }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
- };
51
+ });
20
52
  export {
21
- k as vMaska
53
+ C as default
22
54
  };
package/dist/index216.js CHANGED
@@ -1,8 +1,46 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
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
+ }
5
43
  });
6
44
  export {
7
- o as waitFor
45
+ E as default
8
46
  };
package/dist/index217.js CHANGED
@@ -1,55 +1,7 @@
1
- import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
2
- /* empty css */
3
- /* empty css */
4
- import a from "./index126.js";
1
+ import o from "./index264.js";
5
2
  /* empty css */
6
- import $ from "./index128.js";
7
- /* empty css */
8
- import b from "./index305.js";
9
- const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
10
- __name: "CommonInputInnerContainer",
11
- props: {
12
- "append:icon": {},
13
- "prepend:icon": {},
14
- preventFocus: { type: Boolean }
15
- },
16
- setup(m) {
17
- const u = m, o = d(), l = () => {
18
- var n;
19
- !o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
20
- };
21
- return (n, C) => (r(), _("span", {
22
- ref_key: "container",
23
- ref: o,
24
- class: "bb-common-input-inner-container",
25
- onClick: l
26
- }, [
27
- e(n.$slots, "prepend", {}, () => [
28
- t("span", y, [
29
- e(n.$slots, "prefix")
30
- ])
31
- ]),
32
- n.$props["prepend:icon"] ? (r(), s(p(a), {
33
- key: 0,
34
- class: "bb-common-input-inner-container__prepend-icon",
35
- type: n.$props["prepend:icon"]
36
- }, null, 8, ["type"])) : i("", !0),
37
- e(n.$slots, "default"),
38
- n.$props["append:icon"] ? (r(), s(p(a), {
39
- key: 1,
40
- class: "bb-common-input-inner-container__append-icon",
41
- type: n.$props["append:icon"]
42
- }, null, 8, ["type"])) : i("", !0),
43
- c(p($)),
44
- c(b),
45
- e(n.$slots, "append", {}, () => [
46
- t("span", k, [
47
- e(n.$slots, "suffix")
48
- ])
49
- ])
50
- ], 512));
51
- }
52
- });
3
+ import t from "./index266.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
53
5
  export {
54
- S as default
6
+ m as default
55
7
  };
@@ -0,0 +1,62 @@
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 "./index311.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
+ });
60
+ export {
61
+ V as default
62
+ };
package/dist/index219.js CHANGED
@@ -1,15 +1,55 @@
1
- import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
1
+ import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ import a from "./index126.js";
2
5
  /* empty css */
3
- import r from "./index270.js";
4
- const s = {}, c = { class: "bb-common-input-outer-container" };
5
- function p(o, a) {
6
- return t(), n("span", c, [
7
- e(o.$slots, "prepend-outer"),
8
- e(o.$slots, "default"),
9
- e(o.$slots, "append-outer")
10
- ]);
11
- }
12
- const i = /* @__PURE__ */ r(s, [["render", p]]);
6
+ import $ from "./index128.js";
7
+ /* empty css */
8
+ import b from "./index310.js";
9
+ const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
10
+ __name: "CommonInputInnerContainer",
11
+ props: {
12
+ "append:icon": {},
13
+ "prepend:icon": {},
14
+ preventFocus: { type: Boolean }
15
+ },
16
+ setup(m) {
17
+ const u = m, o = d(), l = () => {
18
+ var n;
19
+ !o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
20
+ };
21
+ return (n, C) => (r(), _("span", {
22
+ ref_key: "container",
23
+ ref: o,
24
+ class: "bb-common-input-inner-container",
25
+ onClick: l
26
+ }, [
27
+ e(n.$slots, "prepend", {}, () => [
28
+ t("span", y, [
29
+ e(n.$slots, "prefix")
30
+ ])
31
+ ]),
32
+ n.$props["prepend:icon"] ? (r(), s(p(a), {
33
+ key: 0,
34
+ class: "bb-common-input-inner-container__prepend-icon",
35
+ type: n.$props["prepend:icon"]
36
+ }, null, 8, ["type"])) : i("", !0),
37
+ e(n.$slots, "default"),
38
+ n.$props["append:icon"] ? (r(), s(p(a), {
39
+ key: 1,
40
+ class: "bb-common-input-inner-container__append-icon",
41
+ type: n.$props["append:icon"]
42
+ }, null, 8, ["type"])) : i("", !0),
43
+ c(p($)),
44
+ c(b),
45
+ e(n.$slots, "append", {}, () => [
46
+ t("span", k, [
47
+ e(n.$slots, "suffix")
48
+ ])
49
+ ])
50
+ ], 512));
51
+ }
52
+ });
13
53
  export {
14
- i as default
54
+ S as default
15
55
  };
package/dist/index221.js CHANGED
@@ -1,14 +1,15 @@
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 { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
+ /* empty css */
3
+ import r from "./index266.js";
4
+ const s = {}, c = { class: "bb-common-input-outer-container" };
5
+ function p(o, a) {
6
+ return t(), n("span", c, [
7
+ e(o.$slots, "prepend-outer"),
8
+ e(o.$slots, "default"),
9
+ e(o.$slots, "append-outer")
10
+ ]);
11
+ }
12
+ const i = /* @__PURE__ */ r(s, [["render", p]]);
12
13
  export {
13
- m as default
14
+ i as default
14
15
  };