bitboss-ui 2.1.91 → 2.1.93
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/BbTab/BbTab.vue.d.ts +120 -91
- package/dist/index107.js +9 -9
- package/dist/index114.js +1 -1
- package/dist/index120.js +239 -167
- package/dist/index122.js +12 -12
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index215.js +138 -2
- package/dist/index216.js +2 -138
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +4 -5
- package/dist/index220.js +13 -5
- package/dist/index221.js +20 -5
- package/dist/index222.js +201 -5
- package/dist/index224.js +135 -2
- package/dist/index226.js +7 -8
- package/dist/index227.js +2 -268
- package/dist/index228.js +2 -52
- package/dist/index229.js +188 -52
- package/dist/index23.js +11 -11
- package/dist/index230.js +3 -32
- package/dist/index231.js +12 -59
- package/dist/index232.js +13 -13
- package/dist/index233.js +3 -4
- package/dist/index234.js +4 -20
- package/dist/index235.js +9 -200
- package/dist/index236.js +5 -0
- package/dist/index237.js +4 -135
- package/dist/index238.js +5 -0
- package/dist/index239.js +9 -10
- package/dist/index240.js +8 -3
- package/dist/index241.js +3 -4
- package/dist/index242.js +29 -3
- package/dist/index243.js +16 -86
- package/dist/index244.js +19 -0
- package/dist/index245.js +48 -26
- package/dist/index246.js +11 -16
- package/dist/index247.js +32 -50
- package/dist/index248.js +28 -15
- package/dist/index25.js +3 -3
- package/dist/index250.js +22 -15
- package/dist/index251.js +5 -34
- package/dist/index252.js +5 -9
- package/dist/index253.js +5 -13
- package/dist/index254.js +5 -23
- package/dist/index255.js +2 -9
- package/dist/index256.js +6 -23
- package/dist/index257.js +8 -2
- package/dist/index258.js +268 -2
- package/dist/index259.js +52 -4
- package/dist/index260.js +50 -7
- package/dist/index261.js +31 -52
- package/dist/index262.js +60 -2
- package/dist/index263.js +86 -2
- package/dist/index265.js +14 -32
- package/dist/index266.js +32 -26
- package/dist/index267.js +11 -0
- package/dist/index268.js +8 -10
- package/dist/index269.js +23 -5
- package/dist/index27.js +1 -1
- package/dist/index270.js +6 -3
- package/dist/index271.js +16 -6
- package/dist/index272.js +52 -15
- package/dist/index273.js +2 -106
- package/dist/index274.js +9 -0
- package/dist/index275.js +7 -100
- package/dist/index277.js +2 -3
- package/dist/index278.js +2 -13
- package/dist/index279.js +3 -5
- package/dist/index280.js +18 -5
- package/dist/index281.js +12 -5
- package/dist/index282.js +106 -3
- package/dist/index284.js +100 -7
- package/dist/index286.js +229 -3
- package/dist/index287.js +33 -2
- package/dist/index288.js +3 -7
- package/dist/index289.js +67 -7
- package/dist/index29.js +2 -2
- package/dist/index290.js +11 -67
- package/dist/index291.js +5 -18
- package/dist/index292.js +5 -12
- package/dist/index293.js +5 -229
- package/dist/index294.js +7 -0
- package/dist/index295.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +7 -17
- package/dist/index299.js +1 -1
- package/dist/index300.js +5 -3
- package/dist/index301.js +3 -6
- package/dist/index302.js +3 -280
- package/dist/index303.js +17 -2
- package/dist/index304.js +27 -15
- package/dist/index305.js +280 -2
- package/dist/index306.js +2 -16
- package/dist/index307.js +16 -2
- package/dist/index308.js +2 -27
- package/dist/index309.js +16 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -2
- package/dist/index311.js +27 -2
- package/dist/index312.js +2 -2
- package/dist/index313.js +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +1 -1
- package/dist/index316.js +2 -4
- package/dist/index317.js +2 -5
- package/dist/index318.js +2 -719
- package/dist/index319.js +716 -363
- package/dist/index320.js +366 -57
- package/dist/index321.js +57 -3
- package/dist/index322.js +4 -3
- package/dist/index323.js +3 -4
- package/dist/index324.js +3 -6
- package/dist/index325.js +2 -5
- package/dist/index326.js +5 -124
- package/dist/index327.js +5 -2
- package/dist/index328.js +2 -15
- package/dist/index329.js +8 -2
- package/dist/index33.js +8 -8
- package/dist/index330.js +5 -18
- package/dist/index331.js +8 -2
- package/dist/index332.js +5 -2
- package/dist/index333.js +6 -7
- package/dist/index334.js +6 -5
- package/dist/index335.js +19 -8
- package/dist/index336.js +9 -5
- package/dist/index337.js +14 -6
- package/dist/index338.js +226 -33
- package/dist/index339.js +35 -6
- package/dist/index340.js +6 -129
- package/dist/index341.js +113 -382
- package/dist/index342.js +397 -6
- package/dist/index343.js +57 -18
- package/dist/index344.js +58 -9
- package/dist/index345.js +124 -14
- package/dist/index346.js +2 -58
- package/dist/index347.js +15 -58
- package/dist/index348.js +2 -22
- package/dist/index349.js +21 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +2 -2
- package/dist/index351.js +21 -227
- package/dist/index353.js +130 -89
- package/dist/index354.js +43 -437
- package/dist/index355.js +91 -126
- package/dist/index356.js +515 -42
- package/dist/index357.js +424 -503
- package/dist/index358.js +126 -48
- package/dist/index359.js +52 -0
- package/dist/index37.js +18 -18
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- 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 +5 -5
- package/dist/index67.js +1 -1
- package/dist/index80.js +6 -6
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +17 -17
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/dist/utilities/functions/merge.d.ts +11 -1
- package/package.json +3 -3
- package/dist/index223.js +0 -5
- package/dist/index225.js +0 -8
- package/dist/index249.js +0 -14
- package/dist/index283.js +0 -10
- package/dist/index285.js +0 -190
- package/dist/index298.js +0 -30
- package/dist/index352.js +0 -136
- /package/dist/{index264.js → index276.js} +0 -0
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
import { CommonProps } from '../../types/CommonProps';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Inertia-specific options shared between `BbTabProps` (component-level defaults)
|
|
4
|
+
* and `BbTabItem` (per-item overrides). Item values always win over component values.
|
|
5
|
+
*/
|
|
6
|
+
export type BbTabInertiaOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* Additional HTTP headers forwarded to Inertia when navigation is triggered.
|
|
9
|
+
* Only meaningful in an Inertia context.
|
|
10
|
+
*/
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Limits which server-side props are refreshed during a partial Inertia reload.
|
|
14
|
+
* Only meaningful in an Inertia context.
|
|
15
|
+
*/
|
|
16
|
+
only?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Inertia lifecycle hook — fired just before the request is sent.
|
|
19
|
+
* Return `false` to cancel the visit.
|
|
20
|
+
*/
|
|
21
|
+
onBefore?: () => boolean | void;
|
|
22
|
+
/**
|
|
23
|
+
* Inertia lifecycle hook — fired when the request is cancelled.
|
|
24
|
+
*/
|
|
25
|
+
onCancel?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Inertia lifecycle hook — fired after the visit finishes (success or error).
|
|
28
|
+
*/
|
|
29
|
+
onFinish?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Inertia lifecycle hook — fired when the server returns validation errors.
|
|
32
|
+
*/
|
|
33
|
+
onError?: (errors: Record<string, string>) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Inertia lifecycle hook — fired when upload/download progress is available.
|
|
36
|
+
*/
|
|
37
|
+
onProgress?: (progress: {
|
|
38
|
+
percentage: number | undefined;
|
|
39
|
+
}) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Inertia lifecycle hook — fired when the request starts.
|
|
42
|
+
*/
|
|
43
|
+
onStart?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* Inertia lifecycle hook — fired when the visit completes successfully.
|
|
46
|
+
*/
|
|
47
|
+
onSuccess?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Controls whether Inertia preserves the scroll position after navigation.
|
|
50
|
+
* Only meaningful in an Inertia context.
|
|
51
|
+
*/
|
|
52
|
+
preserveScroll?: boolean | ((props: Record<string, unknown>) => boolean);
|
|
53
|
+
/**
|
|
54
|
+
* Controls whether Inertia preserves the current component state after navigation.
|
|
55
|
+
* Only meaningful in an Inertia context.
|
|
56
|
+
*/
|
|
57
|
+
preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null;
|
|
58
|
+
/**
|
|
59
|
+
* When true and in an Inertia context, triggers a real server-side Inertia
|
|
60
|
+
* visit (via `router.visit`) instead of a client-only `history.pushState`.
|
|
61
|
+
* All other Inertia options (`headers`, `only`, `preserveScroll`, etc.) and
|
|
62
|
+
* lifecycle hooks are forwarded to that visit.
|
|
63
|
+
*/
|
|
64
|
+
server?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type BbTabEvents = {
|
|
67
|
+
(e: 'update:modelValue', value: string): void;
|
|
68
|
+
};
|
|
69
|
+
export type BbTabItem<K extends string = string> = Pick<CommonProps, 'disabled'> & BbTabInertiaOptions & {
|
|
3
70
|
/**
|
|
4
71
|
* Used to render a tab even when not visible.
|
|
5
72
|
* It's useful if you want the content of a tab in the DOM
|
|
@@ -7,16 +74,22 @@ export type BbTabItem = Pick<CommonProps, 'disabled'> & {
|
|
|
7
74
|
* even when not visible for SEO purposes.
|
|
8
75
|
*/
|
|
9
76
|
eager?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Destination URL for this tab. In an Inertia context the tab button renders
|
|
79
|
+
* as an Inertia Link that navigates to this URL on click.
|
|
80
|
+
* Ignored when `server` is true (programmatic visit is used instead).
|
|
81
|
+
*/
|
|
82
|
+
href?: string;
|
|
10
83
|
/**
|
|
11
84
|
* String that identifies the tab.
|
|
12
85
|
*/
|
|
13
|
-
key:
|
|
86
|
+
key: K;
|
|
14
87
|
/**
|
|
15
88
|
* Label to use as the tab text.
|
|
16
89
|
*/
|
|
17
90
|
label?: string;
|
|
18
91
|
};
|
|
19
|
-
export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
|
|
92
|
+
export type BbTabProps<K extends string = string> = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & BbTabInertiaOptions & {
|
|
20
93
|
/**
|
|
21
94
|
* Enables transitions vertically
|
|
22
95
|
*/
|
|
@@ -32,11 +105,11 @@ export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
|
|
|
32
105
|
/**
|
|
33
106
|
* Array of items that define the tabs in the component.
|
|
34
107
|
*/
|
|
35
|
-
items: BbTabItem[];
|
|
108
|
+
items: BbTabItem<K>[];
|
|
36
109
|
/**
|
|
37
110
|
* The current tab. Used by v-model.
|
|
38
111
|
*/
|
|
39
|
-
modelValue?: null | BbTabItem['key'];
|
|
112
|
+
modelValue?: null | BbTabItem<K>['key'];
|
|
40
113
|
/**
|
|
41
114
|
* Synchronizes the current tab with the url.
|
|
42
115
|
*/
|
|
@@ -50,33 +123,18 @@ export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
|
|
|
50
123
|
*/
|
|
51
124
|
replace?: boolean;
|
|
52
125
|
};
|
|
53
|
-
declare const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
readonly querykey: string;
|
|
66
|
-
} & {
|
|
67
|
-
readonly replace: boolean;
|
|
68
|
-
readonly disabled: boolean;
|
|
69
|
-
readonly eager: boolean;
|
|
70
|
-
readonly navigation: boolean;
|
|
71
|
-
readonly animateX: boolean;
|
|
72
|
-
readonly animateY: boolean;
|
|
73
|
-
};
|
|
74
|
-
export type BbTabEvents = {
|
|
75
|
-
(e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;
|
|
76
|
-
};
|
|
77
|
-
declare const goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
78
|
-
declare function __VLS_template(): {
|
|
79
|
-
attrs: Partial<{}>;
|
|
126
|
+
declare const _default: <K extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
127
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
128
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
129
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & BbTabProps<K> & Partial<{}>> & import('vue').PublicProps;
|
|
130
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
131
|
+
isFirst: import('vue').ComputedRef<boolean>;
|
|
132
|
+
isLast: import('vue').ComputedRef<boolean>;
|
|
133
|
+
current: [K | null] extends [import('vue').Ref<any, any>] ? import('@vue/shared').IfAny<import('vue').Ref<any, any> & K, import('vue').Ref<import('vue').Ref<any, any> & K, import('vue').Ref<any, any> & K>, import('vue').Ref<any, any> & K> : import('vue').Ref<import('vue').UnwrapRef<K> | null, K | import('vue').UnwrapRef<K> | null>;
|
|
134
|
+
currentIndex: import('vue').ComputedRef<number>;
|
|
135
|
+
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
136
|
+
}>): void;
|
|
137
|
+
attrs: any;
|
|
80
138
|
slots: Readonly<{
|
|
81
139
|
'header:prepend'?: (props: {
|
|
82
140
|
isScrolling: boolean;
|
|
@@ -97,21 +155,19 @@ declare function __VLS_template(): {
|
|
|
97
155
|
selected: boolean;
|
|
98
156
|
text: BbTabItem["label"];
|
|
99
157
|
value: string;
|
|
100
|
-
goTo:
|
|
158
|
+
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
101
159
|
}) => any;
|
|
102
|
-
} & {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}) => any;
|
|
114
|
-
}> & {
|
|
160
|
+
} & Partial<Record<K | `label-${K}`, (props: {
|
|
161
|
+
current: string | null;
|
|
162
|
+
currentIndex: number;
|
|
163
|
+
disabled: boolean;
|
|
164
|
+
isFirst: boolean;
|
|
165
|
+
isLast: boolean;
|
|
166
|
+
selected: boolean;
|
|
167
|
+
text: BbTabItem["label"];
|
|
168
|
+
value: string;
|
|
169
|
+
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
170
|
+
}) => any>>> & {
|
|
115
171
|
'header:prepend'?: (props: {
|
|
116
172
|
isScrolling: boolean;
|
|
117
173
|
left: boolean;
|
|
@@ -131,51 +187,24 @@ declare function __VLS_template(): {
|
|
|
131
187
|
selected: boolean;
|
|
132
188
|
text: BbTabItem["label"];
|
|
133
189
|
value: string;
|
|
134
|
-
goTo:
|
|
135
|
-
}) => any;
|
|
136
|
-
} & {
|
|
137
|
-
[key: string]: (props: {
|
|
138
|
-
current: string | null;
|
|
139
|
-
currentIndex: number;
|
|
140
|
-
disabled: boolean;
|
|
141
|
-
isFirst: boolean;
|
|
142
|
-
isLast: boolean;
|
|
143
|
-
selected: boolean;
|
|
144
|
-
text: BbTabItem["label"];
|
|
145
|
-
value: string;
|
|
146
|
-
goTo: typeof goTo;
|
|
190
|
+
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
147
191
|
}) => any;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
192
|
+
} & Partial<Record<K | `label-${K}`, (props: {
|
|
193
|
+
current: string | null;
|
|
194
|
+
currentIndex: number;
|
|
195
|
+
disabled: boolean;
|
|
196
|
+
isFirst: boolean;
|
|
197
|
+
isLast: boolean;
|
|
198
|
+
selected: boolean;
|
|
199
|
+
text: BbTabItem["label"];
|
|
200
|
+
value: string;
|
|
201
|
+
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
202
|
+
}) => any>>;
|
|
203
|
+
emit: BbTabEvents;
|
|
204
|
+
}>) => import('vue').VNode & {
|
|
205
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
154
206
|
};
|
|
155
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
156
|
-
declare const __VLS_component: import('vue').DefineComponent<BbTabProps, {
|
|
157
|
-
isFirst: import('vue').ComputedRef<boolean>;
|
|
158
|
-
isLast: import('vue').ComputedRef<boolean>;
|
|
159
|
-
current: import('vue').Ref<string | null, string | null>;
|
|
160
|
-
currentIndex: import('vue').ComputedRef<number>;
|
|
161
|
-
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
162
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
163
|
-
"update:modelValue": (value: string) => any;
|
|
164
|
-
}, string, import('vue').PublicProps, Readonly<BbTabProps> & Readonly<{
|
|
165
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
166
|
-
}>, {
|
|
167
|
-
direction: "horizontal" | "vertical";
|
|
168
|
-
querykey: string;
|
|
169
|
-
animateX: boolean;
|
|
170
|
-
animateY: boolean;
|
|
171
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
172
|
-
tabs: HTMLDivElement;
|
|
173
|
-
tablist: HTMLUListElement;
|
|
174
|
-
}, HTMLDivElement>;
|
|
175
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
176
207
|
export default _default;
|
|
177
|
-
type
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
};
|
|
181
|
-
};
|
|
208
|
+
type __VLS_PrettifyLocal<T> = {
|
|
209
|
+
[K in keyof T]: T[K];
|
|
210
|
+
} & {};
|
package/dist/index107.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
|
|
2
|
-
import { useItemValue as G } from "./
|
|
3
|
-
import { isNil as k } from "./
|
|
4
|
-
import { indexBy as U } from "./
|
|
5
|
-
import { hash as p } from "./
|
|
6
|
-
import { useItemsGetter as W } from "./
|
|
7
|
-
import { usePrefill as q } from "./
|
|
8
|
-
import { useIndexById as z } from "./
|
|
9
|
-
import { useBaseOptions as J } from "./
|
|
10
|
-
import { useHashedWatcher as K } from "./
|
|
2
|
+
import { useItemValue as G } from "./index239.js";
|
|
3
|
+
import { isNil as k } from "./index227.js";
|
|
4
|
+
import { indexBy as U } from "./index240.js";
|
|
5
|
+
import { hash as p } from "./index241.js";
|
|
6
|
+
import { useItemsGetter as W } from "./index242.js";
|
|
7
|
+
import { usePrefill as q } from "./index243.js";
|
|
8
|
+
import { useIndexById as z } from "./index244.js";
|
|
9
|
+
import { useBaseOptions as J } from "./index245.js";
|
|
10
|
+
import { useHashedWatcher as K } from "./index246.js";
|
|
11
11
|
const oe = /* @__PURE__ */ D({
|
|
12
12
|
__name: "BbRows",
|
|
13
13
|
props: {
|
package/dist/index114.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
|
|
2
|
-
import { isCssColor as m } from "./
|
|
2
|
+
import { isCssColor as m } from "./index228.js";
|
|
3
3
|
const d = /* @__PURE__ */ p({
|
|
4
4
|
__name: "BbSpinner",
|
|
5
5
|
props: {
|