bitboss-ui 2.0.143 → 2.0.145
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.
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +16 -0
- package/dist/index100.js +9 -9
- package/dist/index111.js +12 -12
- package/dist/index119.js +2 -2
- package/dist/index121.js +6 -6
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +39 -52
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index206.js +115 -2
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -115
- package/dist/index209.js +5 -8
- package/dist/index21.js +16 -16
- package/dist/index210.js +16 -3
- package/dist/index211.js +16 -4
- package/dist/index212.js +18 -40
- package/dist/index213.js +15 -20
- package/dist/index214.js +19 -94
- package/dist/index215.js +29 -0
- package/dist/index216.js +3 -200
- package/dist/index217.js +4 -0
- package/dist/index218.js +6 -64
- package/dist/{index233.js → index219.js} +6 -6
- package/dist/index220.js +52 -13
- package/dist/index221.js +43 -12
- package/dist/index222.js +5 -2
- package/dist/index223.js +60 -4
- package/dist/index224.js +13 -2
- package/dist/index225.js +2 -5
- package/dist/index226.js +4 -16
- package/dist/index227.js +2 -16
- package/dist/index228.js +34 -19
- package/dist/index229.js +4 -15
- package/dist/index23.js +16 -16
- package/dist/index230.js +40 -18
- package/dist/index231.js +19 -26
- package/dist/index232.js +94 -2
- package/dist/index234.js +189 -41
- package/dist/index236.js +65 -4
- package/dist/index238.js +13 -125
- package/dist/index239.js +86 -2
- package/dist/index241.js +29 -2
- package/dist/index242.js +17 -86
- package/dist/index243.js +53 -0
- package/dist/index244.js +12 -26
- package/dist/index245.js +11 -16
- package/dist/index246.js +13 -48
- package/dist/index247.js +125 -15
- package/dist/index248.js +2 -12
- package/dist/index249.js +6 -16
- package/dist/index25.js +7 -7
- package/dist/index250.js +2 -3
- package/dist/index251.js +3 -7
- package/dist/index252.js +3 -15
- package/dist/index253.js +7 -3
- package/dist/index254.js +15 -2
- package/dist/index255.js +2 -2
- package/dist/index256.js +2 -18
- package/dist/index257.js +17 -125
- package/dist/index258.js +124 -104
- package/dist/index259.js +108 -0
- package/dist/{index260.js → index261.js} +2 -2
- package/dist/index263.js +12 -228
- package/dist/index264.js +226 -367
- package/dist/index265.js +367 -8
- package/dist/index266.js +9 -2
- package/dist/index267.js +3 -6
- package/dist/index268.js +8 -15
- package/dist/index269.js +23 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -23
- package/dist/index271.js +6 -28
- package/dist/index272.js +16 -9
- package/dist/index273.js +277 -427
- package/dist/index274.js +5 -175
- package/dist/index275.js +2 -3
- package/dist/index276.js +2 -3
- package/dist/index277.js +2 -3
- package/dist/index279.js +2 -7
- package/dist/index280.js +2 -7
- package/dist/index281.js +2 -11
- package/dist/index282.js +2 -9
- package/dist/index283.js +2 -8
- package/dist/index284.js +2 -4
- package/dist/index285.js +2 -200
- package/dist/index286.js +27 -280
- package/dist/index287.js +22 -6
- package/dist/index289.js +7 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -2
- package/dist/index291.js +11 -2
- package/dist/index292.js +4 -2
- package/dist/index293.js +2 -2
- package/dist/index294.js +431 -2
- package/dist/index295.js +176 -2
- package/dist/index296.js +3 -2
- package/dist/index297.js +3 -2
- package/dist/index298.js +3 -2
- package/dist/index300.js +5 -0
- package/dist/index301.js +17 -2
- package/dist/index302.js +9 -3
- package/dist/index303.js +197 -14
- package/dist/index304.js +2 -2
- package/dist/index305.js +8 -89
- package/dist/index306.js +1 -1
- package/dist/index307.js +2 -126
- package/dist/index308.js +89 -3
- package/dist/index309.js +126 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -2
- package/dist/index311.js +3 -436
- package/dist/index312.js +2 -127
- package/dist/index313.js +436 -2
- package/dist/index314.js +127 -5
- package/dist/index315.js +5 -67
- package/dist/index316.js +2 -5
- package/dist/index317.js +67 -8
- package/dist/index321.js +6 -3
- package/dist/index322.js +18 -7
- package/dist/index323.js +58 -6
- package/dist/index324.js +57 -7
- package/dist/index325.js +32 -6
- package/dist/index326.js +27 -18
- package/dist/index328.js +5 -58
- package/dist/index329.js +8 -58
- package/dist/index33.js +8 -8
- package/dist/index331.js +7 -32
- package/dist/index332.js +6 -28
- package/dist/index333.js +10 -0
- package/dist/index334.js +480 -47
- package/dist/index335.js +4 -2
- package/dist/index336.js +49 -0
- package/dist/index337.js +2 -3
- package/dist/index339.js +3 -424
- package/dist/index340.js +420 -43
- package/dist/index341.js +4 -0
- package/dist/index342.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +10 -12
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +5 -5
- package/dist/index90.js +1 -1
- package/package.json +2 -2
- package/dist/index235.js +0 -46
- package/dist/index237.js +0 -62
- package/dist/index240.js +0 -8
- package/dist/index262.js +0 -14
- package/dist/index288.js +0 -4
- package/dist/index299.js +0 -24
- package/dist/index327.js +0 -482
- /package/dist/{index338.js → index278.js} +0 -0
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index128.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index217.js";
|
7
|
+
import { useBaseOptions as ne } from "./index243.js";
|
8
|
+
import { useIndexById as re } from "./index242.js";
|
9
|
+
import ie from "./index259.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index261.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index236.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index238.js";
|
16
|
+
import { isEmpty as pe } from "./index250.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index238.js";
|
3
|
+
import G from "./index236.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index128.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as B, withCtx as n, renderSlot as l, unref as g, createElementVNode as p, mergeProps as h } from "vue";
|
2
|
-
import $ from "./
|
2
|
+
import $ from "./index236.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index238.js";
|
5
5
|
import { isNotNil as C } from "./index135.js";
|
6
6
|
const V = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], M = /* @__PURE__ */ m({
|
7
7
|
__name: "BaseTextInput",
|
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index225.js";
|
3
3
|
import { wait as C } from "./index130.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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 "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as r } from "./index225.js";
|
3
|
+
import { isNil as B } from "./index256.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,10 +7,10 @@ import p from "./index127.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index129.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as
|
12
|
-
import { useLocale as
|
13
|
-
const
|
10
|
+
import { pickBy as W } from "./index266.js";
|
11
|
+
import { noop as D } from "./index267.js";
|
12
|
+
import { useLocale as E } from "./index224.js";
|
13
|
+
const O = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
16
16
|
}, X = /* @__PURE__ */ k({
|
@@ -52,14 +52,12 @@ const E = {
|
|
52
52
|
type: {}
|
53
53
|
},
|
54
54
|
setup(b) {
|
55
|
-
const e = b, { t: m } =
|
55
|
+
const e = b, { t: m } = E(), l = C(0), t = c(
|
56
56
|
() => e.loading || !!l.value && e.autoLoading
|
57
|
-
), f = c(() => e.disabled), { onClick: y =
|
58
|
-
if (o.stopImmediatePropagation(), t.value && e.disabledWhileLoading)
|
59
|
-
e.type === "submit" && o.preventDefault();
|
60
|
-
|
61
|
-
}
|
62
|
-
l.value++, await y(o), l.value--;
|
57
|
+
), f = c(() => e.disabled), { onClick: y = D } = h(), g = (o) => {
|
58
|
+
if (o.stopImmediatePropagation(), t.value && e.disabledWhileLoading)
|
59
|
+
return (e.type === "submit" || e.href || e.to) && o.preventDefault(), null;
|
60
|
+
l.value++, y(o), l.value--;
|
63
61
|
}, _ = typeof e.size == "string" ? { default: e.size } : { default: "md", ...e.size }, B = Object.entries(_).reduce(
|
64
62
|
(o, [n, d]) => (n === "default" ? o[`data-${d}`] = "" : o[`data-${n}:${d}`] = "", o),
|
65
63
|
{}
|
@@ -110,7 +108,7 @@ const E = {
|
|
110
108
|
F(u(o.text), 1)
|
111
109
|
])
|
112
110
|
], 2),
|
113
|
-
t.value ? (a(), N("span",
|
111
|
+
t.value ? (a(), N("span", O, u(r(m)("common.loadingText")), 1)) : s("", !0),
|
114
112
|
!o.icon && e["append:icon"] ? (a(), i(p, {
|
115
113
|
key: 3,
|
116
114
|
class: "bb-button__append-icon",
|
package/dist/index75.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as X, computed as F, ref as y, openBlock as h, createElementBlock as D, mergeProps as A, createElementVNode as _, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as B, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as j, toDisplayString as te } from "vue";
|
2
|
-
import { findRightIndex as H } from "./
|
2
|
+
import { findRightIndex as H } from "./index268.js";
|
3
3
|
import { useId as ne } from "./index8.js";
|
4
4
|
import { wait as oe } from "./index130.js";
|
5
5
|
import { useIntersectionObserver as ae } from "./index132.js";
|
6
6
|
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import N from "./
|
9
|
-
import se from "./
|
8
|
+
import N from "./index269.js";
|
9
|
+
import se from "./index232.js";
|
10
10
|
/* empty css */
|
11
11
|
import V from "./index127.js";
|
12
12
|
/* empty css */
|
package/dist/index77.js
CHANGED
@@ -9,7 +9,7 @@ import S from "./index127.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import R from "./index129.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as T } from "./
|
12
|
+
import { useLocale as T } from "./index224.js";
|
13
13
|
const Z = { class: "bb-dropdown-button__content" }, q = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index79.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 "./
|
2
|
+
import { findInTree as ae } from "./index272.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index128.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index271.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index81.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 "./
|
2
|
+
import { throttle as c } from "./index252.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, nextTick as re, onBeforeUnmount as A, onMounted as ue, watch as ce, openBlock as g, createBlock as de, withCtx as fe, createElementVNode as s, mergeProps as E, createElementBlock as $, renderSlot as n, createTextVNode as ve, toDisplayString as H, unref as pe, createCommentVNode as T } from "vue";
|
2
|
-
import { useFocusTrap as be } from "./
|
2
|
+
import { useFocusTrap as be } from "./index230.js";
|
3
3
|
import { useId as I } from "./index8.js";
|
4
4
|
import { wait as D } from "./index130.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import me from "./
|
5
|
+
import { useModalsState as b } from "./index253.js";
|
6
|
+
import me from "./index254.js";
|
7
7
|
import { useMobile as ye } from "./index9.js";
|
8
|
-
import { useLocale as he } from "./
|
8
|
+
import { useLocale as he } from "./index224.js";
|
9
9
|
const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
|
10
10
|
__name: "BbOffCanvas",
|
11
11
|
props: {
|
package/dist/index86.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { defineComponent as E, computed as h, ref as g, onMounted as P, onBeforeUnmount as W, openBlock as k, createElementBlock as V, normalizeClass as $, createElementVNode as i, createVNode as S, unref as v, withCtx as w, renderSlot as c, toDisplayString as m, Fragment as R, renderList as F, nextTick as x } from "vue";
|
2
|
-
import { debounce as T } from "./
|
2
|
+
import { debounce as T } from "./index270.js";
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
import z from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { useLocale as D } from "./
|
7
|
+
import { useLocale as D } from "./index224.js";
|
8
8
|
const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
|
9
9
|
__name: "BbPagination",
|
10
10
|
props: {
|
package/dist/index88.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
|
2
|
-
import { useFocusTrap as j } from "./
|
2
|
+
import { useFocusTrap as j } from "./index230.js";
|
3
3
|
import { useId as G } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
-
import { waitFor as K } from "./
|
5
|
+
import { waitFor as K } from "./index249.js";
|
6
6
|
import Q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import U from "./
|
8
|
+
import U from "./index232.js";
|
9
9
|
/* empty css */
|
10
|
-
import { useLocale as X } from "./
|
11
|
-
import { useDebounceFn as Y } from "./
|
10
|
+
import { useLocale as X } from "./index224.js";
|
11
|
+
import { useDebounceFn as Y } from "./index206.js";
|
12
12
|
const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
|
13
13
|
__name: "BbPopover",
|
14
14
|
props: {
|
package/dist/index90.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 "./
|
2
|
+
import { clamp as p } from "./index208.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index131.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index235.js
DELETED
@@ -1,46 +0,0 @@
|
|
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
|
-
});
|
44
|
-
export {
|
45
|
-
E as default
|
46
|
-
};
|
package/dist/index237.js
DELETED
@@ -1,62 +0,0 @@
|
|
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 "./index330.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/index240.js
DELETED
package/dist/index262.js
DELETED
@@ -1,14 +0,0 @@
|
|
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
|
-
};
|
12
|
-
export {
|
13
|
-
n as useArray
|
14
|
-
};
|
package/dist/index288.js
DELETED
package/dist/index299.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { defineComponent as a, 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__ */ a({
|
3
|
-
__name: "Slide",
|
4
|
-
props: {
|
5
|
-
direction: { default: "right" },
|
6
|
-
duration: { default: 500 },
|
7
|
-
gap: { default: 0 }
|
8
|
-
},
|
9
|
-
setup(t) {
|
10
|
-
const n = t, o = i(() => `bb-slide-in-${n.direction}`);
|
11
|
-
return (e, m) => (r(), d(l, {
|
12
|
-
name: o.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
|
-
};
|