bitboss-ui 2.0.110 → 2.0.112
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/composables/useConfirm.d.ts +79 -111
- package/dist/index100.js +7 -7
- package/dist/index111.js +10 -10
- package/dist/index119.js +1 -1
- package/dist/index121.js +5 -5
- 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 +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index205.js +2 -115
- package/dist/index206.js +115 -2
- package/dist/index207.js +3 -3
- package/dist/index208.js +3 -41
- package/dist/index209.js +41 -6
- package/dist/index21.js +15 -15
- package/dist/index210.js +6 -7
- package/dist/index211.js +7 -8
- package/dist/index212.js +6 -13
- package/dist/index213.js +14 -12
- package/dist/index214.js +13 -3
- package/dist/index215.js +1 -1
- package/dist/index216.js +86 -2
- package/dist/index218.js +25 -2
- package/dist/index219.js +14 -123
- package/dist/index220.js +48 -5
- package/dist/index221.js +15 -125
- package/dist/index222.js +12 -16
- package/dist/index223.js +16 -16
- package/dist/index224.js +53 -19
- package/dist/index226.js +13 -2
- package/dist/index227.js +2 -2
- package/dist/index228.js +4 -20
- package/dist/index229.js +2 -53
- package/dist/index23.js +18 -18
- package/dist/index230.js +22 -0
- package/dist/index231.js +3 -12
- package/dist/index232.js +5 -5
- package/dist/index233.js +14 -367
- package/dist/index234.js +16 -4
- package/dist/index235.js +19 -86
- package/dist/{index225.js → index236.js} +2 -2
- package/dist/index237.js +19 -25
- package/dist/index238.js +26 -16
- package/dist/index239.js +2 -48
- package/dist/index240.js +250 -15
- package/dist/index241.js +52 -12
- package/dist/index242.js +44 -16
- package/dist/index243.js +4 -105
- package/dist/{index253.js → index244.js} +1 -1
- package/dist/index245.js +124 -98
- package/dist/index246.js +127 -0
- package/dist/index247.js +2 -19
- package/dist/index248.js +5 -27
- package/dist/index249.js +366 -247
- package/dist/index25.js +7 -7
- package/dist/index250.js +100 -46
- package/dist/index252.js +100 -5
- package/dist/index263.js +3 -3
- package/dist/index267.js +222 -7
- package/dist/index268.js +1 -1
- package/dist/index269.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.js +1 -1
- package/dist/index271.js +2 -2
- package/dist/index273.js +26 -222
- package/dist/index274.js +3 -28
- package/dist/index275.js +17 -4
- package/dist/index276.js +9 -281
- package/dist/index277.js +4 -6
- package/dist/index278.js +200 -2
- package/dist/index279.js +3 -2
- package/dist/index281.js +7 -2
- package/dist/index282.js +176 -2
- package/dist/index283.js +9 -2
- package/dist/index284.js +8 -126
- package/dist/index285.js +279 -174
- package/dist/index286.js +6 -3
- package/dist/index287.js +4 -0
- package/dist/index288.js +2 -7
- package/dist/index289.js +2 -22
- package/dist/index29.js +3 -3
- package/dist/index291.js +2 -9
- package/dist/index292.js +2 -8
- package/dist/index293.js +2 -200
- package/dist/index294.js +2 -436
- package/dist/index295.js +2 -127
- package/dist/index296.js +2 -3
- package/dist/index297.js +2 -17
- package/dist/index298.js +22 -3
- package/dist/index300.js +2 -2
- package/dist/index301.js +126 -2
- package/dist/index302.js +21 -1
- package/dist/index304.js +3 -2
- package/dist/index305.js +3 -2
- package/dist/index306.js +435 -21
- package/dist/index307.js +129 -0
- package/dist/index308.js +2 -2
- package/dist/index309.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -2
- package/dist/index311.js +2 -5
- package/dist/index316.js +53 -5
- package/dist/index317.js +53 -8
- package/dist/index318.js +32 -52
- package/dist/index319.js +5 -53
- package/dist/index320.js +7 -3
- package/dist/index321.js +3 -32
- package/dist/index322.js +46 -6
- package/dist/index323.js +6 -46
- package/dist/index324.js +18 -6
- package/dist/index325.js +5 -17
- package/dist/index327.js +1 -1
- package/dist/index33.js +7 -7
- package/dist/index35.js +4 -4
- package/dist/index37.js +17 -17
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- package/dist/index45.js +16 -15
- 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 +1 -1
- package/dist/index6.js +49 -87
- package/dist/index61.js +1 -1
- package/dist/index69.js +76 -64
- package/dist/index77.js +1 -1
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index217.js +0 -6
- package/dist/index251.js +0 -46
- package/dist/index299.js +0 -5
- package/dist/index303.js +0 -4
- /package/dist/{index280.js → index290.js} +0 -0
@@ -1,129 +1,97 @@
|
|
1
1
|
import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
|
2
2
|
type State = {
|
3
|
-
|
4
|
-
|
5
|
-
*/
|
6
|
-
description: string;
|
7
|
-
/**
|
8
|
-
* The name of the theme it applies a css class to BbConfirm for styling.
|
9
|
-
*/
|
10
|
-
theme: string;
|
11
|
-
loading: boolean;
|
12
|
-
open: boolean;
|
13
|
-
/**
|
14
|
-
* Text content of the modal.
|
15
|
-
*/
|
16
|
-
text: string;
|
17
|
-
/**
|
18
|
-
* Tittle of the modal
|
19
|
-
*/
|
20
|
-
title: string;
|
21
|
-
/**
|
22
|
-
* Boolean that defines whether to display or hide the "Yes" action.
|
23
|
-
*/
|
24
|
-
yes: boolean;
|
25
|
-
/**
|
26
|
-
* Text content of the "Yes" action.
|
27
|
-
*/
|
28
|
-
yesText: string;
|
29
|
-
/**
|
30
|
-
* Boolean that defines whether to display or hide the "No" action.
|
31
|
-
*/
|
32
|
-
no: boolean;
|
33
|
-
/**
|
34
|
-
* Text content of the "No" action.
|
35
|
-
*/
|
36
|
-
noText: string;
|
37
|
-
/**
|
38
|
-
* Boolean that sets whether to display or hide the buttons.
|
39
|
-
* Confirms without actions can only be dismissed by clicking on the overlay or the close button.
|
40
|
-
*/
|
41
|
-
actions: boolean;
|
42
|
-
/**
|
43
|
-
* Size of the confirm modal. Use any sizes valid for `BbModal`.
|
44
|
-
*/
|
45
|
-
size: keyof Sizes;
|
46
|
-
/**
|
47
|
-
* Callback function that is called when the user clicks on the "Yes" action.
|
48
|
-
*/
|
49
|
-
onYes: ((...args: any[]) => void) | null;
|
50
|
-
/**
|
51
|
-
* Callback function that is called when the user clicks on the "No" action.
|
52
|
-
*/
|
53
|
-
onNo: ((...args: any[]) => void) | null;
|
54
|
-
/**
|
55
|
-
* Boolean that sets whether the confirm modal is busy after clicking on the "Yes" action.
|
56
|
-
*/
|
3
|
+
current: StackMessage | null;
|
4
|
+
processing: boolean;
|
57
5
|
yesBusy: boolean;
|
58
|
-
/**
|
59
|
-
* Boolean that sets whether the confirm modal is busy after clicking on the "No" action.
|
60
|
-
*/
|
61
6
|
noBusy: boolean;
|
7
|
+
loading: boolean;
|
62
8
|
};
|
63
|
-
type
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
9
|
+
type Message = {
|
10
|
+
title: string;
|
11
|
+
text: string;
|
12
|
+
theme?: string;
|
13
|
+
size?: keyof Sizes;
|
14
|
+
actions?: boolean;
|
15
|
+
yes?: boolean;
|
16
|
+
no?: boolean;
|
17
|
+
yesText?: string;
|
18
|
+
noText?: string;
|
19
|
+
onYes?: (...args: any[]) => any;
|
20
|
+
onNo?: (...args: any[]) => any;
|
21
|
+
returning?: boolean;
|
71
22
|
autoClose?: boolean;
|
23
|
+
timeout?: number;
|
24
|
+
};
|
25
|
+
type StackMessage = Message & {
|
26
|
+
resolve: (...args: any[]) => any;
|
27
|
+
reject: (...args: any[]) => any;
|
72
28
|
};
|
73
29
|
export declare const state: import('vue').Ref<{
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
30
|
+
current: {
|
31
|
+
title: string;
|
32
|
+
text: string;
|
33
|
+
theme?: string | undefined;
|
34
|
+
size?: keyof Sizes | undefined;
|
35
|
+
actions?: boolean | undefined;
|
36
|
+
yes?: boolean | undefined;
|
37
|
+
no?: boolean | undefined;
|
38
|
+
yesText?: string | undefined;
|
39
|
+
noText?: string | undefined;
|
40
|
+
onYes?: ((...args: any[]) => any) | undefined;
|
41
|
+
onNo?: ((...args: any[]) => any) | undefined;
|
42
|
+
returning?: boolean | undefined;
|
43
|
+
autoClose?: boolean | undefined;
|
44
|
+
timeout?: number | undefined;
|
45
|
+
resolve: (...args: any[]) => any;
|
46
|
+
reject: (...args: any[]) => any;
|
47
|
+
} | null;
|
48
|
+
processing: boolean;
|
88
49
|
yesBusy: boolean;
|
89
50
|
noBusy: boolean;
|
90
|
-
}, State | {
|
91
|
-
description: string;
|
92
|
-
theme: string;
|
93
51
|
loading: boolean;
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
52
|
+
}, State | {
|
53
|
+
current: {
|
54
|
+
title: string;
|
55
|
+
text: string;
|
56
|
+
theme?: string | undefined;
|
57
|
+
size?: keyof Sizes | undefined;
|
58
|
+
actions?: boolean | undefined;
|
59
|
+
yes?: boolean | undefined;
|
60
|
+
no?: boolean | undefined;
|
61
|
+
yesText?: string | undefined;
|
62
|
+
noText?: string | undefined;
|
63
|
+
onYes?: ((...args: any[]) => any) | undefined;
|
64
|
+
onNo?: ((...args: any[]) => any) | undefined;
|
65
|
+
returning?: boolean | undefined;
|
66
|
+
autoClose?: boolean | undefined;
|
67
|
+
timeout?: number | undefined;
|
68
|
+
resolve: (...args: any[]) => any;
|
69
|
+
reject: (...args: any[]) => any;
|
70
|
+
} | null;
|
71
|
+
processing: boolean;
|
105
72
|
yesBusy: boolean;
|
106
73
|
noBusy: boolean;
|
74
|
+
loading: boolean;
|
107
75
|
}>;
|
108
|
-
export declare const
|
109
|
-
text: string;
|
110
|
-
handler: () => Promise<void>;
|
111
|
-
}[]>;
|
76
|
+
export declare const processMessage: (value: boolean) => Promise<void>;
|
112
77
|
export declare const useConfirm: () => {
|
113
|
-
|
114
|
-
* The confirm function. It accepts a set of options defining
|
115
|
-
* the behavior of the modal and returns `Promise<boolean>`
|
116
|
-
* when the user accepts, declines, or ignores the modal.
|
117
|
-
*/
|
118
|
-
confirm: (options: Partial<UserOptions>) => Promise<boolean>;
|
119
|
-
/**
|
120
|
-
* Sets the state of the confirm to loading and displays a spinner.
|
121
|
-
*/
|
122
|
-
setLoading: (value?: boolean) => void;
|
123
|
-
/**
|
124
|
-
* Closes the confirmation modal. It is a manual operation
|
125
|
-
* so you can update the state while the modal is still open.
|
126
|
-
*/
|
78
|
+
confirm: <T extends Message>(message: T) => Promise<ReturnedValue<T>>;
|
127
79
|
close: () => Promise<void>;
|
80
|
+
setLoading: (value: boolean) => void;
|
128
81
|
};
|
82
|
+
/**
|
83
|
+
* A confirm can accept function to be called on yes or no.
|
84
|
+
* The function can return a value, which will be returned by the confirm promise if the `returning` property is true.
|
85
|
+
* If the `returning` property is false, the confirm promise will resolve with true or false.
|
86
|
+
*/
|
87
|
+
type ReturnedValue<T = object> = T extends {
|
88
|
+
returning: true;
|
89
|
+
} ? T extends {
|
90
|
+
onYes: (...args: any[]) => any;
|
91
|
+
onNo: (...args: any[]) => any;
|
92
|
+
} ? Awaited<ReturnType<T['onYes']>> | Awaited<ReturnType<T['onNo']>> : T extends {
|
93
|
+
onYes: (...args: any[]) => any;
|
94
|
+
} ? ReturnType<T['onYes']> | false : T extends {
|
95
|
+
onNo: (...args: any[]) => any;
|
96
|
+
} ? ReturnType<T['onNo']> | true : boolean : boolean;
|
129
97
|
export {};
|
package/dist/index100.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as P, mergeModels as b, computed as I, toRef as m, reactive as R, useModel as B, watch as j, openBlock as g, createElementBlock as k, Fragment as x, renderSlot as r, unref as E, createCommentVNode as G, renderList as U } from "vue";
|
2
|
-
import { useItemValue as W } from "./
|
2
|
+
import { useItemValue as W } from "./index276.js";
|
3
3
|
import { isNil as H } from "./index258.js";
|
4
|
-
import { indexBy as q } from "./
|
4
|
+
import { indexBy as q } from "./index284.js";
|
5
5
|
import { hash as w } from "./index215.js";
|
6
|
-
import { useItemsGetter as z } from "./
|
7
|
-
import { usePrefill as J } from "./
|
8
|
-
import { useIndexById as K } from "./
|
9
|
-
import { useBaseOptions as Q } from "./
|
10
|
-
import { useHashedWatcher as X } from "./
|
6
|
+
import { useItemsGetter as z } from "./index218.js";
|
7
|
+
import { usePrefill as J } from "./index223.js";
|
8
|
+
import { useIndexById as K } from "./index219.js";
|
9
|
+
import { useBaseOptions as Q } from "./index220.js";
|
10
|
+
import { useHashedWatcher as X } from "./index222.js";
|
11
11
|
const ne = /* @__PURE__ */ P({
|
12
12
|
__name: "BbRows",
|
13
13
|
props: /* @__PURE__ */ b({
|
package/dist/index111.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
import { defineComponent as me, mergeModels as K, ref as fe, computed as v, toRef as j, useModel as Q, watch as X, reactive as ye, openBlock as n, createBlock as Y, resolveDynamicComponent as he, normalizeClass as p, unref as b, withCtx as ve, createElementBlock as d, toDisplayString as m, createCommentVNode as _, createElementVNode as o, renderSlot as f, isRef as ke, Fragment as I, renderList as T, createVNode as Z, createTextVNode as _e, mergeProps as ge } from "vue";
|
2
|
-
import { add as Ce } from "./
|
3
|
-
import { clamp as we } from "./
|
2
|
+
import { add as Ce } from "./index311.js";
|
3
|
+
import { clamp as we } from "./index205.js";
|
4
4
|
import { isNil as $ } from "./index258.js";
|
5
5
|
import { useId as Ve } from "./index8.js";
|
6
|
-
import { useItemValue as Be } from "./
|
7
|
-
import { when as Ie } from "./
|
6
|
+
import { useItemValue as Be } from "./index276.js";
|
7
|
+
import { when as Ie } from "./index228.js";
|
8
8
|
import ee from "./index17.js";
|
9
9
|
/* empty css */
|
10
10
|
import Te from "./index31.js";
|
11
11
|
/* empty css */
|
12
12
|
import { hash as le } from "./index215.js";
|
13
|
-
import { useItemsGetter as $e } from "./
|
14
|
-
import { usePrefill as Ae } from "./
|
15
|
-
import { useIndexById as xe } from "./
|
16
|
-
import { useBaseOptions as Ne } from "./
|
17
|
-
import { useHashedWatcher as Le } from "./
|
18
|
-
import { useLocale as Se } from "./
|
13
|
+
import { useItemsGetter as $e } from "./index218.js";
|
14
|
+
import { usePrefill as Ae } from "./index223.js";
|
15
|
+
import { useIndexById as xe } from "./index219.js";
|
16
|
+
import { useBaseOptions as Ne } from "./index220.js";
|
17
|
+
import { useHashedWatcher as Le } from "./index222.js";
|
18
|
+
import { useLocale as Se } from "./index214.js";
|
19
19
|
const He = {
|
20
20
|
key: 0,
|
21
21
|
class: "sr-only"
|
package/dist/index119.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
|
2
2
|
import { state as k, useToast as b } from "./index11.js";
|
3
|
-
import C from "./
|
3
|
+
import C from "./index213.js";
|
4
4
|
import B from "./index309.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
package/dist/index121.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as V, ref as a, watch as H, computed as z, openBlock as B, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as E, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as C, createBlock as j, createCommentVNode as q } from "vue";
|
2
|
-
import { useFloating as A, arrow as G } from "./
|
2
|
+
import { useFloating as A, arrow as G } from "./index245.js";
|
3
3
|
import { useId as J } from "./index8.js";
|
4
4
|
import { wait as L } from "./index130.js";
|
5
5
|
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as Q } from "./
|
7
|
+
import { throttle as m } from "./index208.js";
|
8
|
+
import { waitFor as Q } from "./index210.js";
|
9
9
|
import X from "./index263.js";
|
10
10
|
/* empty css */
|
11
|
-
import { useLocale as Y } from "./
|
12
|
-
import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./
|
11
|
+
import { useLocale as Y } from "./index214.js";
|
12
|
+
import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./index249.js";
|
13
13
|
const me = /* @__PURE__ */ V({
|
14
14
|
__name: "BbTooltip",
|
15
15
|
props: {
|
package/dist/index123.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index310.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index125.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index214.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index127.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index227.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index128.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 "./index208.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index129.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index227.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, getCurrentInstance as p, shallowRef as C, watch as x, computed as d, openBlock as S, createBlock as L, resolveDynamicComponent as B, unref as N, mergeProps as $, withCtx as F, renderSlot as w, createTextVNode as A, toDisplayString as P, resolveComponent as f } from "vue";
|
2
2
|
import { _config as a } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index212.js";
|
4
4
|
import { hash as v } from "./index215.js";
|
5
5
|
const q = /* @__PURE__ */ h({
|
6
6
|
__name: "BaseButton",
|
package/dist/index131.js
CHANGED
package/dist/index132.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./
|
2
|
-
import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./
|
1
|
+
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index206.js";
|
2
|
+
import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index206.js";
|
3
3
|
import { computed as w, watch as z, ref as S, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
|
4
4
|
function L(l) {
|
5
5
|
var o;
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index319.js";
|
2
|
+
import { isPlainObject as c } from "./index320.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { defineComponent as v, ref as h, computed as g, watchPostEffect as C, openBlock as w, createElementBlock as B, Fragment as V, createVNode as t, normalizeClass as H, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as E, withModifiers as q, withDirectives as I, mergeProps as $, unref as d } from "vue";
|
2
|
-
import M from "./
|
2
|
+
import M from "./index224.js";
|
3
3
|
/* empty css */
|
4
|
-
import L from "./
|
5
|
-
import { vMaska as z } from "./
|
6
|
-
import { isHex as D } from "./
|
7
|
-
import { useLocale as F } from "./
|
4
|
+
import L from "./index226.js";
|
5
|
+
import { vMaska as z } from "./index230.js";
|
6
|
+
import { isHex as D } from "./index231.js";
|
7
|
+
import { useLocale as F } from "./index214.js";
|
8
8
|
const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], N = ["aria-invalid", "aria-label", "disabled", "required"], J = /* @__PURE__ */ v({
|
9
9
|
__name: "BaseColorInput",
|
10
10
|
props: {
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
2
|
+
import { isCssColor as y } from "./index227.js";
|
3
|
+
import { when as N } from "./index228.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index229.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index19.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as b, createVNode as R, mergeProps as T } from "vue";
|
2
2
|
import W from "./index17.js";
|
3
3
|
/* empty css */
|
4
|
-
import K from "./
|
4
|
+
import K from "./index216.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as N } from "./
|
7
|
-
import { useIndexById as w } from "./
|
8
|
-
import { useBaseOptions as U } from "./
|
9
|
-
import { useCoherence as q } from "./
|
6
|
+
import { useItemsGetter as N } from "./index218.js";
|
7
|
+
import { useIndexById as w } from "./index219.js";
|
8
|
+
import { useBaseOptions as U } from "./index220.js";
|
9
|
+
import { useCoherence as q } from "./index221.js";
|
10
10
|
import { hash as J } from "./index215.js";
|
11
|
-
import { useHashedWatcher as C } from "./
|
12
|
-
import { usePrefill as Q } from "./
|
11
|
+
import { useHashedWatcher as C } from "./index222.js";
|
12
|
+
import { usePrefill as Q } from "./index223.js";
|
13
13
|
const de = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseCheckboxGroup",
|
15
15
|
props: {
|
package/dist/index205.js
CHANGED
@@ -1,117 +1,4 @@
|
|
1
|
-
|
2
|
-
function V(e) {
|
3
|
-
return F() ? (O(e), !0) : !1;
|
4
|
-
}
|
5
|
-
function m(e) {
|
6
|
-
return typeof e == "function" ? e() : g(e);
|
7
|
-
}
|
8
|
-
const A = typeof window < "u" && typeof document < "u";
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const E = (e) => e != null, v = Object.prototype.toString, I = (e) => v.call(e) === "[object Object]", p = () => {
|
11
|
-
};
|
12
|
-
function h(e, o) {
|
13
|
-
function t(...n) {
|
14
|
-
return new Promise((r, i) => {
|
15
|
-
Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(r).catch(i);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
return t;
|
19
|
-
}
|
20
|
-
const M = (e) => e();
|
21
|
-
function T(e, o = {}) {
|
22
|
-
let t, n, r = p;
|
23
|
-
const i = (c) => {
|
24
|
-
clearTimeout(c), r(), r = p;
|
25
|
-
};
|
26
|
-
return (c) => {
|
27
|
-
const l = m(e), u = m(o.maxWait);
|
28
|
-
return t && i(t), l <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(c())) : new Promise((s, w) => {
|
29
|
-
r = o.rejectOnCancel ? w : s, u && !n && (n = setTimeout(() => {
|
30
|
-
t && i(t), n = null, s(c());
|
31
|
-
}, u)), t = setTimeout(() => {
|
32
|
-
n && i(n), n = null, s(c());
|
33
|
-
}, l);
|
34
|
-
});
|
35
|
-
};
|
36
|
-
}
|
37
|
-
function R(...e) {
|
38
|
-
let o = 0, t, n = !0, r = p, i, a, c, l, u;
|
39
|
-
!W(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1 } = e[0] : [a, c = !0, l = !0, u = !1] = e;
|
40
|
-
const s = () => {
|
41
|
-
t && (clearTimeout(t), t = void 0, r(), r = p);
|
42
|
-
};
|
43
|
-
return (j) => {
|
44
|
-
const f = m(a), b = Date.now() - o, d = () => i = j();
|
45
|
-
return s(), f <= 0 ? (o = Date.now(), d()) : (b > f && (l || !n) ? (o = Date.now(), d()) : c && (i = new Promise((y, D) => {
|
46
|
-
r = u ? D : y, t = setTimeout(() => {
|
47
|
-
o = Date.now(), n = !0, y(d()), s();
|
48
|
-
}, Math.max(0, f - b));
|
49
|
-
})), !l && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
function k(e) {
|
53
|
-
return C();
|
54
|
-
}
|
55
|
-
function N(e, o = 200, t = {}) {
|
56
|
-
return h(
|
57
|
-
T(o, t),
|
58
|
-
e
|
59
|
-
);
|
60
|
-
}
|
61
|
-
function _(e, o = 200, t = !1, n = !0, r = !1) {
|
62
|
-
return h(
|
63
|
-
R(o, t, n, r),
|
64
|
-
e
|
65
|
-
);
|
66
|
-
}
|
67
|
-
function G(e, o, t = {}) {
|
68
|
-
const {
|
69
|
-
eventFilter: n = M,
|
70
|
-
...r
|
71
|
-
} = t;
|
72
|
-
return P(
|
73
|
-
e,
|
74
|
-
h(
|
75
|
-
n,
|
76
|
-
o
|
77
|
-
),
|
78
|
-
r
|
79
|
-
);
|
80
|
-
}
|
81
|
-
function q(e, o = !0, t) {
|
82
|
-
k() ? x(e, t) : o ? e() : S(e);
|
83
|
-
}
|
84
|
-
function z(e, o, t = {}) {
|
85
|
-
const {
|
86
|
-
debounce: n = 0,
|
87
|
-
maxWait: r = void 0,
|
88
|
-
...i
|
89
|
-
} = t;
|
90
|
-
return G(
|
91
|
-
e,
|
92
|
-
o,
|
93
|
-
{
|
94
|
-
...i,
|
95
|
-
eventFilter: T(n, { maxWait: r })
|
96
|
-
}
|
97
|
-
);
|
98
|
-
}
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
99
2
|
export {
|
100
|
-
|
101
|
-
h as createFilterWrapper,
|
102
|
-
T as debounceFilter,
|
103
|
-
z as debouncedWatch,
|
104
|
-
k as getLifeCycleTarget,
|
105
|
-
A as isClient,
|
106
|
-
I as isObject,
|
107
|
-
p as noop,
|
108
|
-
E as notNullish,
|
109
|
-
R as throttleFilter,
|
110
|
-
m as toValue,
|
111
|
-
q as tryOnMounted,
|
112
|
-
V as tryOnScopeDispose,
|
113
|
-
N as useDebounceFn,
|
114
|
-
_ as useThrottleFn,
|
115
|
-
z as watchDebounced,
|
116
|
-
G as watchWithFilter
|
3
|
+
n as clamp
|
117
4
|
};
|
package/dist/index206.js
CHANGED
@@ -1,4 +1,117 @@
|
|
1
|
-
|
1
|
+
import { getCurrentScope as F, onScopeDispose as O, unref as g, onMounted as x, nextTick as S, isRef as W, getCurrentInstance as C, watch as P } from "vue";
|
2
|
+
function V(e) {
|
3
|
+
return F() ? (O(e), !0) : !1;
|
4
|
+
}
|
5
|
+
function m(e) {
|
6
|
+
return typeof e == "function" ? e() : g(e);
|
7
|
+
}
|
8
|
+
const A = typeof window < "u" && typeof document < "u";
|
9
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
+
const E = (e) => e != null, v = Object.prototype.toString, I = (e) => v.call(e) === "[object Object]", p = () => {
|
11
|
+
};
|
12
|
+
function h(e, o) {
|
13
|
+
function t(...n) {
|
14
|
+
return new Promise((r, i) => {
|
15
|
+
Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(r).catch(i);
|
16
|
+
});
|
17
|
+
}
|
18
|
+
return t;
|
19
|
+
}
|
20
|
+
const M = (e) => e();
|
21
|
+
function T(e, o = {}) {
|
22
|
+
let t, n, r = p;
|
23
|
+
const i = (c) => {
|
24
|
+
clearTimeout(c), r(), r = p;
|
25
|
+
};
|
26
|
+
return (c) => {
|
27
|
+
const l = m(e), u = m(o.maxWait);
|
28
|
+
return t && i(t), l <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(c())) : new Promise((s, w) => {
|
29
|
+
r = o.rejectOnCancel ? w : s, u && !n && (n = setTimeout(() => {
|
30
|
+
t && i(t), n = null, s(c());
|
31
|
+
}, u)), t = setTimeout(() => {
|
32
|
+
n && i(n), n = null, s(c());
|
33
|
+
}, l);
|
34
|
+
});
|
35
|
+
};
|
36
|
+
}
|
37
|
+
function R(...e) {
|
38
|
+
let o = 0, t, n = !0, r = p, i, a, c, l, u;
|
39
|
+
!W(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1 } = e[0] : [a, c = !0, l = !0, u = !1] = e;
|
40
|
+
const s = () => {
|
41
|
+
t && (clearTimeout(t), t = void 0, r(), r = p);
|
42
|
+
};
|
43
|
+
return (j) => {
|
44
|
+
const f = m(a), b = Date.now() - o, d = () => i = j();
|
45
|
+
return s(), f <= 0 ? (o = Date.now(), d()) : (b > f && (l || !n) ? (o = Date.now(), d()) : c && (i = new Promise((y, D) => {
|
46
|
+
r = u ? D : y, t = setTimeout(() => {
|
47
|
+
o = Date.now(), n = !0, y(d()), s();
|
48
|
+
}, Math.max(0, f - b));
|
49
|
+
})), !l && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
50
|
+
};
|
51
|
+
}
|
52
|
+
function k(e) {
|
53
|
+
return C();
|
54
|
+
}
|
55
|
+
function N(e, o = 200, t = {}) {
|
56
|
+
return h(
|
57
|
+
T(o, t),
|
58
|
+
e
|
59
|
+
);
|
60
|
+
}
|
61
|
+
function _(e, o = 200, t = !1, n = !0, r = !1) {
|
62
|
+
return h(
|
63
|
+
R(o, t, n, r),
|
64
|
+
e
|
65
|
+
);
|
66
|
+
}
|
67
|
+
function G(e, o, t = {}) {
|
68
|
+
const {
|
69
|
+
eventFilter: n = M,
|
70
|
+
...r
|
71
|
+
} = t;
|
72
|
+
return P(
|
73
|
+
e,
|
74
|
+
h(
|
75
|
+
n,
|
76
|
+
o
|
77
|
+
),
|
78
|
+
r
|
79
|
+
);
|
80
|
+
}
|
81
|
+
function q(e, o = !0, t) {
|
82
|
+
k() ? x(e, t) : o ? e() : S(e);
|
83
|
+
}
|
84
|
+
function z(e, o, t = {}) {
|
85
|
+
const {
|
86
|
+
debounce: n = 0,
|
87
|
+
maxWait: r = void 0,
|
88
|
+
...i
|
89
|
+
} = t;
|
90
|
+
return G(
|
91
|
+
e,
|
92
|
+
o,
|
93
|
+
{
|
94
|
+
...i,
|
95
|
+
eventFilter: T(n, { maxWait: r })
|
96
|
+
}
|
97
|
+
);
|
98
|
+
}
|
2
99
|
export {
|
3
|
-
|
100
|
+
M as bypassFilter,
|
101
|
+
h as createFilterWrapper,
|
102
|
+
T as debounceFilter,
|
103
|
+
z as debouncedWatch,
|
104
|
+
k as getLifeCycleTarget,
|
105
|
+
A as isClient,
|
106
|
+
I as isObject,
|
107
|
+
p as noop,
|
108
|
+
E as notNullish,
|
109
|
+
R as throttleFilter,
|
110
|
+
m as toValue,
|
111
|
+
q as tryOnMounted,
|
112
|
+
V as tryOnScopeDispose,
|
113
|
+
N as useDebounceFn,
|
114
|
+
_ as useThrottleFn,
|
115
|
+
z as watchDebounced,
|
116
|
+
G as watchWithFilter
|
4
117
|
};
|