bitboss-ui 2.0.33 → 2.0.34
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/index104.js +1 -1
- package/dist/index106.js +4 -4
- package/dist/index114.js +1 -1
- package/dist/index116.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index15.js +3 -3
- package/dist/index17.js +2 -2
- package/dist/index19.js +6 -6
- package/dist/index198.js +2 -2
- package/dist/index199.js +4 -116
- package/dist/index200.js +2 -8
- package/dist/index201.js +2 -2
- package/dist/index202.js +2 -2
- package/dist/index203.js +2 -2
- package/dist/index204.js +3 -3
- package/dist/index205.js +2 -2
- package/dist/index206.js +2 -2
- package/dist/index207.js +1 -1
- package/dist/index209.js +6 -247
- package/dist/index21.js +10 -10
- package/dist/index210.js +239 -42
- package/dist/index211.js +43 -35
- package/dist/index212.js +44 -5
- package/dist/index213.js +5 -49
- package/dist/index214.js +48 -125
- package/dist/index215.js +122 -119
- package/dist/index216.js +123 -2
- package/dist/index217.js +2 -35
- package/dist/index218.js +33 -172
- package/dist/index219.js +174 -6
- package/dist/index220.js +5 -42
- package/dist/index221.js +45 -0
- package/dist/index223.js +12 -4
- package/dist/index224.js +5 -369
- package/dist/index225.js +369 -3
- package/dist/index226.js +2 -3
- package/dist/index227.js +3 -7
- package/dist/index228.js +7 -158
- package/dist/index229.js +115 -83
- package/dist/index23.js +5 -5
- package/dist/index230.js +5 -0
- package/dist/index231.js +158 -2
- package/dist/index232.js +84 -4
- package/dist/index234.js +2 -2
- package/dist/index235.js +2 -18
- package/dist/index236.js +17 -105
- package/dist/index237.js +108 -0
- package/dist/index243.js +4 -281
- package/dist/index244.js +280 -5
- package/dist/index245.js +6 -2
- package/dist/index246.js +2 -2
- package/dist/index25.js +36 -39
- package/dist/index251.js +2 -2
- package/dist/index254.js +1 -1
- package/dist/index255.js +2 -28
- package/dist/index256.js +27 -21
- package/dist/index257.js +24 -0
- package/dist/index259.js +7 -2
- package/dist/index260.js +2 -126
- package/dist/index261.js +118 -423
- package/dist/index262.js +431 -3
- package/dist/index263.js +5 -0
- package/dist/index267.js +86 -197
- package/dist/index268.js +7 -434
- package/dist/index269.js +3 -127
- package/dist/index27.js +3 -3
- package/dist/index270.js +9 -3
- package/dist/index271.js +23 -9
- package/dist/index272.js +6 -23
- package/dist/index273.js +16 -9
- package/dist/index274.js +200 -6
- package/dist/index275.js +435 -15
- package/dist/index276.js +125 -87
- package/dist/index277.js +224 -3
- package/dist/index278.js +3 -12
- package/dist/index279.js +12 -9
- package/dist/index280.js +8 -8
- package/dist/index281.js +7 -15
- package/dist/index282.js +17 -4
- package/dist/index283.js +34 -2
- package/dist/index284.js +1 -1
- package/dist/index285.js +3 -211
- package/dist/index286.js +211 -15
- package/dist/index288.js +6 -6
- package/dist/index289.js +18 -6
- package/dist/index29.js +2 -2
- package/dist/index290.js +5 -17
- package/dist/index291.js +15 -66
- package/dist/index293.js +63 -32
- package/dist/index294.js +3 -3
- package/dist/index299.js +10 -46
- package/dist/index301.js +47 -2
- package/dist/index302.js +2 -480
- package/dist/index303.js +482 -0
- package/dist/index31.js +2 -2
- package/dist/index33.js +3 -3
- package/dist/index35.js +12 -12
- package/dist/index37.js +3 -3
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +5 -5
- package/dist/index45.js +2 -2
- package/dist/index47.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index71.js +3 -3
- package/dist/index75.js +2 -2
- package/dist/index77.js +1 -1
- package/dist/index80.js +2 -2
- package/dist/index82.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/package.json +1 -1
- package/dist/index222.js +0 -15
- package/dist/index233.js +0 -4
- package/dist/index240.js +0 -4
- package/dist/index258.js +0 -9
- package/dist/index266.js +0 -226
- package/dist/index300.js +0 -13
- /package/dist/{index238.js → index239.js} +0 -0
- /package/dist/{index264.js → index265.js} +0 -0
package/dist/index104.js
CHANGED
@@ -8,7 +8,7 @@ import ke from "./index13.js";
|
|
8
8
|
/* empty css */
|
9
9
|
import ge from "./index123.js";
|
10
10
|
/* empty css */
|
11
|
-
import { throttledWatch as _e } from "./
|
11
|
+
import { throttledWatch as _e } from "./index229.js";
|
12
12
|
const we = ["id"], $e = { class: "bb-tab__label-boundary" }, Se = { class: "bb-tab__label" }, qe = { class: "bb-tab__panes-container" }, Te = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ ae({
|
13
13
|
__name: "BbTab",
|
14
14
|
props: {
|
package/dist/index106.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as oe, ref as x, computed as h, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as k, createElementVNode as s, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
|
2
2
|
import { add as ue } from "./index287.js";
|
3
|
-
import { clamp as pe } from "./
|
3
|
+
import { clamp as pe } from "./index226.js";
|
4
4
|
import { isNil as M } from "./index125.js";
|
5
5
|
import { useId as fe } from "./index8.js";
|
6
|
-
import { useItemValue as me } from "./
|
7
|
-
import { when as he } from "./
|
6
|
+
import { useItemValue as me } from "./index281.js";
|
7
|
+
import { when as he } from "./index199.js";
|
8
8
|
import J from "./index15.js";
|
9
9
|
/* empty css */
|
10
10
|
import ye from "./index29.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useOptions as _e } from "./
|
12
|
+
import { useOptions as _e } from "./index231.js";
|
13
13
|
const ke = {
|
14
14
|
key: 0,
|
15
15
|
class: "sr-only"
|
package/dist/index114.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
|
2
2
|
import { state as k, useToast as C } from "./index11.js";
|
3
|
-
import B from "./
|
3
|
+
import B from "./index293.js";
|
4
4
|
const N = /* @__PURE__ */ s({
|
5
5
|
__name: "BbToast",
|
6
6
|
props: {
|
package/dist/index116.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as z, defineAsyncComponent as A, ref as a, computed as _, watch as I, openBlock as b, createElementBlock as R, mergeProps as U, createElementVNode as c, renderSlot as D, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as L, withCtx as $, createCommentVNode as M } from "vue";
|
2
|
-
import { useFloating as q, arrow as G } from "./
|
2
|
+
import { useFloating as q, arrow as G } from "./index215.js";
|
3
3
|
import { useId as J } from "./index8.js";
|
4
4
|
import { wait as P } from "./index127.js";
|
5
5
|
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as w } from "./
|
8
|
-
import { waitFor as Q } from "./
|
9
|
-
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./
|
7
|
+
import { throttle as w } from "./index227.js";
|
8
|
+
import { waitFor as Q } from "./index220.js";
|
9
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index225.js";
|
10
10
|
const ee = /* @__PURE__ */ c("svg", {
|
11
11
|
fill: "none",
|
12
12
|
viewBox: "0 0 24 24",
|
@@ -35,7 +35,7 @@ const ee = /* @__PURE__ */ c("svg", {
|
|
35
35
|
},
|
36
36
|
setup(F) {
|
37
37
|
const O = A(
|
38
|
-
() => import("./
|
38
|
+
() => import("./index269.js")
|
39
39
|
), t = F, g = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), T = a(), { floatingStyles: te, placement: h, middlewareData: f } = q(
|
40
40
|
s,
|
41
41
|
d,
|
package/dist/index122.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
|
2
|
-
import { isCssColor as w } from "./
|
2
|
+
import { isCssColor as w } from "./index198.js";
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index123.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index227.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index124.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index198.js";
|
3
3
|
const y = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), d = [
|
4
4
|
y
|
5
5
|
], g = /* @__PURE__ */ p({
|
package/dist/index126.js
CHANGED
package/dist/index128.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./
|
2
|
-
import { bypassFilter as fe, createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as he, throttleFilter as me, throttledWatch as pe, throttledWatch as be, watchWithFilter as ge } from "./
|
1
|
+
import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index229.js";
|
2
|
+
import { bypassFilter as fe, createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as he, throttleFilter as me, throttledWatch as pe, throttledWatch as be, watchWithFilter as ge } from "./index229.js";
|
3
3
|
import { computed as T, ref as O, watch as V, reactive as k, watchEffect as U, getCurrentInstance as Z, onMounted as ee } from "vue";
|
4
4
|
function N(l) {
|
5
5
|
var r;
|
package/dist/index129.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isArray as b, isPlainObject as m } from "./
|
1
|
+
import { isArray as b, isPlainObject as m } from "./index291.js";
|
2
2
|
function i(e, n, l, o, r) {
|
3
3
|
const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
|
4
4
|
u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index13.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
|
2
2
|
import { _config as o } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index209.js";
|
4
4
|
const P = /* @__PURE__ */ y({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|
package/dist/index15.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
|
2
|
-
import { isCssColor as k } from "./
|
3
|
-
import { when as F } from "./
|
4
|
-
import { booleanishToBoolean as N } from "./
|
2
|
+
import { isCssColor as k } from "./index198.js";
|
3
|
+
import { when as F } from "./index199.js";
|
4
|
+
import { booleanishToBoolean as N } from "./index200.js";
|
5
5
|
const S = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index17.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
|
2
|
-
import { useOptions as z } from "./
|
2
|
+
import { useOptions as z } from "./index231.js";
|
3
3
|
import F from "./index15.js";
|
4
4
|
/* empty css */
|
5
|
-
import M from "./
|
5
|
+
import M from "./index232.js";
|
6
6
|
/* empty css */
|
7
7
|
const G = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseCheckboxGroup",
|
package/dist/index19.js
CHANGED
@@ -11,12 +11,12 @@ import E from "./index205.js";
|
|
11
11
|
import T from "./index206.js";
|
12
12
|
import { hash as g } from "./index207.js";
|
13
13
|
import { last as j } from "./index208.js";
|
14
|
-
import { useLogger as H } from "./
|
15
|
-
import P from "./
|
16
|
-
import Z from "./
|
17
|
-
import q from "./
|
18
|
-
import w from "./
|
19
|
-
import F from "./
|
14
|
+
import { useLogger as H } from "./index209.js";
|
15
|
+
import P from "./index210.js";
|
16
|
+
import Z from "./index211.js";
|
17
|
+
import q from "./index212.js";
|
18
|
+
import w from "./index213.js";
|
19
|
+
import F from "./index214.js";
|
20
20
|
const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__body" }, J = { class: "bb-base-date-picker__controls" }, K = /* @__PURE__ */ l("span", { class: "sr-only" }, "Seleziona un mese", -1), Q = /* @__PURE__ */ l("svg", {
|
21
21
|
fill: "none",
|
22
22
|
height: "6",
|
package/dist/index198.js
CHANGED
package/dist/index199.js
CHANGED
@@ -1,118 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
return F() ? (O(t), !0) : !1;
|
4
|
-
}
|
5
|
-
function d(t) {
|
6
|
-
return typeof t == "function" ? t() : D(t);
|
7
|
-
}
|
8
|
-
const A = typeof window < "u" && typeof document < "u";
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const E = (t) => t != null, M = Object.prototype.toString, I = (t) => M.call(t) === "[object Object]", p = () => {
|
11
|
-
};
|
12
|
-
function h(t, r) {
|
13
|
-
function e(...n) {
|
14
|
-
return new Promise((o, i) => {
|
15
|
-
Promise.resolve(t(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
return e;
|
19
|
-
}
|
20
|
-
const R = (t) => t();
|
21
|
-
function k(t, r = {}) {
|
22
|
-
let e, n, o = p;
|
23
|
-
const i = (l) => {
|
24
|
-
clearTimeout(l), o(), o = p;
|
25
|
-
};
|
26
|
-
return (l) => {
|
27
|
-
const c = d(t), u = d(r.maxWait);
|
28
|
-
return e && i(e), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((a, w) => {
|
29
|
-
o = r.rejectOnCancel ? w : a, u && !n && (n = setTimeout(() => {
|
30
|
-
e && i(e), n = null, a(l());
|
31
|
-
}, u)), e = setTimeout(() => {
|
32
|
-
n && i(n), n = null, a(l());
|
33
|
-
}, c);
|
34
|
-
});
|
35
|
-
};
|
36
|
-
}
|
37
|
-
function b(...t) {
|
38
|
-
let r = 0, e, n = !0, o = p, i, s, l, c, u;
|
39
|
-
!x(t[0]) && typeof t[0] == "object" ? { delay: s, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = t[0] : [s, l = !0, c = !0, u = !1] = t;
|
40
|
-
const a = () => {
|
41
|
-
e && (clearTimeout(e), e = void 0, o(), o = p);
|
42
|
-
};
|
43
|
-
return (g) => {
|
44
|
-
const f = d(s), T = Date.now() - r, m = () => i = g();
|
45
|
-
return a(), f <= 0 ? (r = Date.now(), m()) : (T > f && (c || !n) ? (r = Date.now(), m()) : l && (i = new Promise((y, j) => {
|
46
|
-
o = u ? j : y, e = setTimeout(() => {
|
47
|
-
r = Date.now(), n = !0, y(m()), a();
|
48
|
-
}, Math.max(0, f - T));
|
49
|
-
})), !c && !e && (e = setTimeout(() => n = !0, f)), n = !1, i);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
function v(t) {
|
53
|
-
return P();
|
54
|
-
}
|
55
|
-
function N(t, r = 200, e = {}) {
|
56
|
-
return h(
|
57
|
-
k(r, e),
|
58
|
-
t
|
59
|
-
);
|
60
|
-
}
|
61
|
-
function _(t, r = 200, e = !1, n = !0, o = !1) {
|
62
|
-
return h(
|
63
|
-
b(r, e, n, o),
|
64
|
-
t
|
65
|
-
);
|
66
|
-
}
|
67
|
-
function G(t, r, e = {}) {
|
68
|
-
const {
|
69
|
-
eventFilter: n = R,
|
70
|
-
...o
|
71
|
-
} = e;
|
72
|
-
return S(
|
73
|
-
t,
|
74
|
-
h(
|
75
|
-
n,
|
76
|
-
r
|
77
|
-
),
|
78
|
-
o
|
79
|
-
);
|
80
|
-
}
|
81
|
-
function q(t, r = !0, e) {
|
82
|
-
v() ? C(t, e) : r ? t() : W(t);
|
83
|
-
}
|
84
|
-
function z(t, r, e = {}) {
|
85
|
-
const {
|
86
|
-
throttle: n = 0,
|
87
|
-
trailing: o = !0,
|
88
|
-
leading: i = !0,
|
89
|
-
...s
|
90
|
-
} = e;
|
91
|
-
return G(
|
92
|
-
t,
|
93
|
-
r,
|
94
|
-
{
|
95
|
-
...s,
|
96
|
-
eventFilter: b(n, o, i)
|
97
|
-
}
|
98
|
-
);
|
99
|
-
}
|
1
|
+
import { curry as e } from "./index243.js";
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
100
3
|
export {
|
101
|
-
|
102
|
-
|
103
|
-
k as debounceFilter,
|
104
|
-
v as getLifeCycleTarget,
|
105
|
-
A as isClient,
|
106
|
-
I as isObject,
|
107
|
-
p as noop,
|
108
|
-
E as notNullish,
|
109
|
-
b as throttleFilter,
|
110
|
-
z as throttledWatch,
|
111
|
-
d as toValue,
|
112
|
-
q as tryOnMounted,
|
113
|
-
V as tryOnScopeDispose,
|
114
|
-
N as useDebounceFn,
|
115
|
-
_ as useThrottleFn,
|
116
|
-
z as watchThrottled,
|
117
|
-
G as watchWithFilter
|
4
|
+
t as baseWhen,
|
5
|
+
s as when
|
118
6
|
};
|
package/dist/index200.js
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
const o =
|
2
|
-
warn: (r) => console.warn(`${o}${r}`),
|
3
|
-
error: (r) => console.error(`${o}${r}`),
|
4
|
-
throw: (r) => {
|
5
|
-
throw new Error(`${o}${r}`);
|
6
|
-
}
|
7
|
-
});
|
1
|
+
const o = (e) => typeof e == "boolean" ? e : e === "true";
|
8
2
|
export {
|
9
|
-
|
3
|
+
o as booleanishToBoolean
|
10
4
|
};
|
package/dist/index201.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as r } from "./
|
2
|
-
import { __require as o } from "./
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index245.js";
|
2
|
+
import { __require as o } from "./index244.js";
|
3
3
|
var t = o();
|
4
4
|
const s = /* @__PURE__ */ r(t);
|
5
5
|
export {
|
package/dist/index202.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./
|
2
|
-
import { __module as e } from "./
|
1
|
+
import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index245.js";
|
2
|
+
import { __module as e } from "./index247.js";
|
3
3
|
(function(s, a) {
|
4
4
|
(function(i, t) {
|
5
5
|
s.exports = t();
|
package/dist/index203.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./
|
2
|
-
import { __module as t } from "./
|
1
|
+
import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index245.js";
|
2
|
+
import { __module as t } from "./index248.js";
|
3
3
|
(function(s, a) {
|
4
4
|
(function(f, o) {
|
5
5
|
s.exports = o();
|
package/dist/index204.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./
|
2
|
-
import { __module as _ } from "./
|
3
|
-
import { __require as s } from "./
|
1
|
+
import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index245.js";
|
2
|
+
import { __module as _ } from "./index249.js";
|
3
|
+
import { __require as s } from "./index244.js";
|
4
4
|
(function(n, d) {
|
5
5
|
(function(t, o) {
|
6
6
|
n.exports = o(s());
|
package/dist/index205.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./
|
2
|
-
import { __module as n } from "./
|
1
|
+
import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index245.js";
|
2
|
+
import { __module as n } from "./index250.js";
|
3
3
|
(function(u, l) {
|
4
4
|
(function(c, e) {
|
5
5
|
u.exports = e();
|
package/dist/index206.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./
|
2
|
-
import { __module as n } from "./
|
1
|
+
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index245.js";
|
2
|
+
import { __module as n } from "./index251.js";
|
3
3
|
(function(f, p) {
|
4
4
|
(function(r, e) {
|
5
5
|
f.exports = e();
|
package/dist/index207.js
CHANGED
package/dist/index209.js
CHANGED
@@ -1,251 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
import { sort as T } from "./index290.js";
|
7
|
-
import b from "./index201.js";
|
8
|
-
import he from "./index212.js";
|
9
|
-
const ye = ["onKeydown"], _e = { class: "bb-base-date-picker__header-container" }, ke = ["abbr"], Oe = ["id", "disabled", "tabindex"], Ce = /* @__PURE__ */ de({
|
10
|
-
__name: "BaseDatePickerInputDaySelector",
|
11
|
-
props: {
|
12
|
-
cursor: {},
|
13
|
-
current: { type: Boolean },
|
14
|
-
disabled: { type: Boolean },
|
15
|
-
firstDayOfWeek: {},
|
16
|
-
modelValue: {},
|
17
|
-
max: {},
|
18
|
-
min: {},
|
19
|
-
selectable: { type: Function },
|
20
|
-
range: { type: Boolean },
|
21
|
-
multiple: { type: Boolean },
|
22
|
-
readonly: { type: Boolean }
|
23
|
-
},
|
24
|
-
emits: ["update:modelValue", "update:cursor"],
|
25
|
-
setup(E, { emit: N }) {
|
26
|
-
const a = E, s = N, g = A(null), x = b().startOf("day"), m = _(() => {
|
27
|
-
let e = 1 / 0, r = -1 / 0, o = {};
|
28
|
-
return a.modelValue && [].concat(a.modelValue).filter(be).map((i) => b(i).startOf("day")).map((i) => i.valueOf()).forEach((i, h) => {
|
29
|
-
i < e && (e = i), i > r && (r = i), o[i] = h;
|
30
|
-
}), {
|
31
|
-
min: e,
|
32
|
-
max: r,
|
33
|
-
index: (t) => o[t.valueOf()],
|
34
|
-
selected: (t) => me(o[t.valueOf()]),
|
35
|
-
isFirstOfRange: (t) => t.valueOf() === e,
|
36
|
-
isLastOfRange: (t) => t.valueOf() === r,
|
37
|
-
isBetween: (t) => t.valueOf() > e && t.valueOf() < r
|
38
|
-
};
|
39
|
-
}), R = _(() => new Array(7).fill("").map((e, r) => b().day((r + a.firstDayOfWeek) % 7)).map((e) => ({
|
40
|
-
accessibleLabel: e.format("dddd"),
|
41
|
-
label: e.format("dd").slice(0, 1).toUpperCase(),
|
42
|
-
id: e.toISOString(),
|
43
|
-
original: e
|
44
|
-
}))), v = _(() => {
|
45
|
-
const e = a.cursor.year().toString(), r = a.cursor.month().toString();
|
46
|
-
let t = a.cursor.clone().startOf("month").clone().startOf("week"), h = a.cursor.clone().endOf("month").clone().endOf("week"), Y = b(a.cursor).startOf("day"), D = [];
|
47
|
-
for (let n = t; n.isBefore(h); n = n.add(1, "day"))
|
48
|
-
D.push(n.clone());
|
49
|
-
const Z = D.map((n) => {
|
50
|
-
const y = n.toISOString(), ee = n.week().toString();
|
51
|
-
let te = m.value.selected(n);
|
52
|
-
const B = a.range && m.value.isFirstOfRange(n), I = a.range && m.value.isLastOfRange(n), re = a.range && !B && !I && m.value.isBetween(n), ae = n.month().toString() === r && n.year().toString() === e, oe = n.isSame(x), ne = n.isSame(Y), se = d(n), ie = n.get("D").toString();
|
53
|
-
return {
|
54
|
-
buttonId: "date_" + y,
|
55
|
-
current: ne,
|
56
|
-
disabled: se,
|
57
|
-
first: B,
|
58
|
-
highlighted: ae,
|
59
|
-
id: y,
|
60
|
-
label: ie,
|
61
|
-
last: I,
|
62
|
-
middle: re,
|
63
|
-
original: n,
|
64
|
-
selected: te,
|
65
|
-
slotName: y,
|
66
|
-
today: oe,
|
67
|
-
week: ee
|
68
|
-
};
|
69
|
-
});
|
70
|
-
return pe(Z, 7);
|
71
|
-
}), d = (e) => {
|
72
|
-
let r = !0;
|
73
|
-
return a.min && r && (r = e.isSameOrAfter(b(a.min).startOf("day"))), a.max && r && (r = e.isSameOrBefore(b(a.max).startOf("day"))), typeof a.selectable == "function" && r && (r = a.selectable(e.toDate())), !r;
|
74
|
-
}, w = A("left"), K = (e, r) => {
|
75
|
-
e && r && (w.value = e.isBefore(r) ? "left" : "right");
|
76
|
-
};
|
77
|
-
le(
|
78
|
-
() => a.cursor,
|
79
|
-
(e, r) => {
|
80
|
-
K(e, r);
|
81
|
-
}
|
82
|
-
);
|
83
|
-
const V = (e) => s("update:cursor", e), l = async () => {
|
84
|
-
if (!g.value) return;
|
85
|
-
await fe();
|
86
|
-
const e = ge([
|
87
|
-
...g.value.querySelectorAll(
|
88
|
-
".bb-base-date-picker__date--current button"
|
89
|
-
)
|
90
|
-
]);
|
91
|
-
e instanceof HTMLElement && e.focus();
|
92
|
-
}, F = (e) => {
|
93
|
-
if (!a.readonly && e.target instanceof HTMLButtonElement) {
|
94
|
-
const [, r] = e.target.id.split("_"), o = b(r);
|
95
|
-
if (a.cursor.month() !== o.month()) {
|
96
|
-
V(o);
|
97
|
-
return;
|
98
|
-
}
|
99
|
-
const t = v.value.flat().find((i) => i.id === r);
|
100
|
-
if (t.disabled) return;
|
101
|
-
V(o), H(t);
|
102
|
-
}
|
103
|
-
}, H = (e) => {
|
104
|
-
a.range ? P(e) : a.multiple ? U(e) : W(e);
|
105
|
-
}, P = (e) => {
|
106
|
-
if (!Array.isArray(a.modelValue)) return;
|
107
|
-
const r = e.original.toISOString();
|
108
|
-
if (a.modelValue.length !== 1) s("update:modelValue", [r]);
|
109
|
-
else {
|
110
|
-
const o = T([a.modelValue[0], e.original.toISOString()]);
|
111
|
-
s("update:modelValue", o);
|
112
|
-
}
|
113
|
-
}, U = (e) => {
|
114
|
-
if (Array.isArray(a.modelValue))
|
115
|
-
if (e.selected) {
|
116
|
-
const r = e.original.toISOString(), o = a.modelValue.filter((t) => t !== r);
|
117
|
-
s("update:modelValue", o);
|
118
|
-
} else {
|
119
|
-
const r = T([...a.modelValue, e.original.toISOString()]);
|
120
|
-
s("update:modelValue", r);
|
121
|
-
}
|
122
|
-
}, W = (e) => {
|
123
|
-
e.selected ? s("update:modelValue", null) : s("update:modelValue", e.original.toISOString());
|
124
|
-
}, $ = () => {
|
125
|
-
const e = a.cursor.clone().add(1, "day");
|
126
|
-
d(e) || (s("update:cursor", e), l());
|
127
|
-
}, j = () => {
|
128
|
-
const e = a.cursor.clone().subtract(1, "day");
|
129
|
-
d(e) || (s("update:cursor", e), l());
|
130
|
-
}, q = () => {
|
131
|
-
const e = a.cursor.clone().subtract(1, "week");
|
132
|
-
d(e) || (s("update:cursor", e), l());
|
133
|
-
}, z = () => {
|
134
|
-
const e = a.cursor.clone().add(1, "week");
|
135
|
-
d(e) || (s("update:cursor", e), l());
|
136
|
-
}, G = () => {
|
137
|
-
const e = a.cursor.clone().endOf("week");
|
138
|
-
d(e) || (s("update:cursor", e), l());
|
139
|
-
}, J = () => {
|
140
|
-
const e = a.cursor.clone().startOf("week");
|
141
|
-
d(e) || (s("update:cursor", e), l());
|
142
|
-
}, Q = (e) => {
|
143
|
-
if (e.shiftKey) {
|
144
|
-
const r = a.cursor.clone().subtract(1, "year");
|
145
|
-
if (d(r)) return;
|
146
|
-
s("update:cursor", r);
|
147
|
-
} else {
|
148
|
-
const r = a.cursor.clone().subtract(1, "month");
|
149
|
-
if (d(r)) return;
|
150
|
-
s("update:cursor", r);
|
151
|
-
}
|
152
|
-
l();
|
153
|
-
}, X = (e) => {
|
154
|
-
if (e.shiftKey) {
|
155
|
-
const r = a.cursor.clone().add(1, "year");
|
156
|
-
if (d(r)) return;
|
157
|
-
s("update:cursor", r);
|
158
|
-
} else {
|
159
|
-
const r = a.cursor.clone().add(1, "month");
|
160
|
-
if (d(r)) return;
|
161
|
-
s("update:cursor", r);
|
162
|
-
}
|
163
|
-
l();
|
164
|
-
};
|
165
|
-
return (e, r) => (c(), u("div", {
|
166
|
-
ref_key: "calendar",
|
167
|
-
ref: g,
|
168
|
-
class: k(["bb-base-date-picker__days-selector", { "bb-base-date-picker__days-selector--hidden": !e.current }]),
|
169
|
-
onKeydown: [
|
170
|
-
f(p(z, ["prevent"]), ["down"]),
|
171
|
-
f(p(G, ["prevent"]), ["end"]),
|
172
|
-
f(p(J, ["prevent"]), ["home"]),
|
173
|
-
f(p(j, ["prevent"]), ["left"]),
|
174
|
-
f(p(X, ["prevent"]), ["page-down"]),
|
175
|
-
f(p(Q, ["prevent"]), ["page-up"]),
|
176
|
-
f(p($, ["prevent"]), ["right"]),
|
177
|
-
f(p(q, ["prevent"]), ["up"])
|
178
|
-
]
|
179
|
-
}, [
|
180
|
-
ce(he, {
|
181
|
-
direction: w.value,
|
182
|
-
gap: 30
|
183
|
-
}, {
|
184
|
-
default: ue(() => [
|
185
|
-
(c(), u("div", {
|
186
|
-
key: e.cursor.month().toString(),
|
187
|
-
class: "bb-base-date-picker__month"
|
188
|
-
}, [
|
189
|
-
M("div", _e, [
|
190
|
-
(c(!0), u(O, null, S(R.value, (o) => (c(), u("div", {
|
191
|
-
key: o.id,
|
192
|
-
abbr: o.accessibleLabel,
|
193
|
-
class: "bb-base-date-picker__header-cell"
|
194
|
-
}, C(o.label), 9, ke))), 128))
|
195
|
-
]),
|
196
|
-
(c(!0), u(O, null, S(v.value, (o) => (c(), u("div", {
|
197
|
-
key: o[0].id,
|
198
|
-
class: "bb-base-date-picker__week"
|
199
|
-
}, [
|
200
|
-
(c(!0), u(O, null, S(o, (t) => (c(), u("div", {
|
201
|
-
key: t.id,
|
202
|
-
class: k({
|
203
|
-
"bb-base-date-picker__date--current": t.current,
|
204
|
-
"bb-base-date-picker__date--disabled": e.disabled || t.disabled,
|
205
|
-
"bb-base-date-picker__date--first": t.first,
|
206
|
-
"bb-base-date-picker__date--highlighted": t.highlighted,
|
207
|
-
"bb-base-date-picker__date--last": t.last,
|
208
|
-
"bb-base-date-picker__date--middle": t.middle,
|
209
|
-
"bb-base-date-picker__date--selected": t.selected,
|
210
|
-
"bb-base-date-picker__date--today": t.today,
|
211
|
-
"bb-base-date-picker__date": !0
|
212
|
-
})
|
213
|
-
}, [
|
214
|
-
M("button", {
|
215
|
-
id: t.buttonId,
|
216
|
-
class: k("bb-base-date-picker__date-button"),
|
217
|
-
disabled: e.disabled || t.disabled,
|
218
|
-
tabindex: Number(t.current) - 1,
|
219
|
-
type: "button",
|
220
|
-
onClick: F
|
221
|
-
}, C(t.label), 9, Oe),
|
222
|
-
L(e.$slots, "day", {
|
223
|
-
first: t.first,
|
224
|
-
highlighted: t.highlighted,
|
225
|
-
item: t.original,
|
226
|
-
label: t.label,
|
227
|
-
last: t.last,
|
228
|
-
middle: t.middle,
|
229
|
-
selected: t.selected
|
230
|
-
}),
|
231
|
-
L(e.$slots, t.slotName, {
|
232
|
-
first: t.first,
|
233
|
-
highlighted: t.highlighted,
|
234
|
-
item: t.original,
|
235
|
-
label: t.label,
|
236
|
-
last: t.last,
|
237
|
-
middle: t.middle,
|
238
|
-
selected: t.selected
|
239
|
-
})
|
240
|
-
], 2))), 128))
|
241
|
-
]))), 128))
|
242
|
-
]))
|
243
|
-
]),
|
244
|
-
_: 3
|
245
|
-
}, 8, ["direction"])
|
246
|
-
], 42, ye));
|
1
|
+
const o = "bitboss-ui | ", e = () => ({
|
2
|
+
warn: (r) => console.warn(`${o}${r}`),
|
3
|
+
error: (r) => console.error(`${o}${r}`),
|
4
|
+
throw: (r) => {
|
5
|
+
throw new Error(`${o}${r}`);
|
247
6
|
}
|
248
7
|
});
|
249
8
|
export {
|
250
|
-
|
9
|
+
e as useLogger
|
251
10
|
};
|