bitboss-ui 2.0.105 → 2.0.107
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/BaseDialog/BaseDialog.vue.d.ts +0 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
- package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +1 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
- package/dist/components/BbTable/types.d.ts +13 -0
- package/dist/components/ListBox.vue.d.ts +0 -2
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/it.d.ts +45 -0
- package/dist/index100.js +46 -45
- package/dist/index111.js +223 -205
- package/dist/index119.js +2 -2
- package/dist/index121.js +55 -54
- package/dist/index123.js +1 -1
- package/dist/index125.js +14 -13
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +36 -35
- package/dist/index17.js +3 -3
- package/dist/index19.js +63 -64
- package/dist/index207.js +8 -2
- package/dist/index208.js +3 -4
- package/dist/index209.js +53 -2
- package/dist/index21.js +110 -103
- package/dist/index211.js +13 -16
- package/dist/index212.js +3 -16
- package/dist/index213.js +40 -18
- package/dist/index214.js +6 -19
- package/dist/index215.js +7 -27
- package/dist/index216.js +12 -3
- package/dist/index217.js +13 -2
- package/dist/index218.js +2 -8
- package/dist/index219.js +4 -250
- package/dist/index220.js +2 -52
- package/dist/index221.js +3 -44
- package/dist/index222.js +20 -5
- package/dist/index223.js +4 -60
- package/dist/index224.js +281 -84
- package/dist/index225.js +18 -0
- package/dist/index226.js +16 -8
- package/dist/index227.js +18 -24
- package/dist/index228.js +14 -16
- package/dist/index229.js +18 -47
- package/dist/index23.js +127 -119
- package/dist/index230.js +27 -15
- package/dist/index231.js +2 -12
- package/dist/index232.js +250 -16
- package/dist/index233.js +52 -3
- package/dist/index234.js +44 -41
- package/dist/index235.js +5 -6
- package/dist/index236.js +60 -7
- package/dist/index237.js +126 -12
- package/dist/index238.js +124 -52
- package/dist/index239.js +4 -0
- package/dist/index240.js +4 -12
- package/dist/index241.js +369 -3
- package/dist/index242.js +85 -125
- package/dist/index244.js +25 -2
- package/dist/index245.js +16 -19
- package/dist/index246.js +48 -5
- package/dist/index247.js +12 -366
- package/dist/index248.js +12 -4
- package/dist/index249.js +16 -2
- package/dist/index25.js +44 -41
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +105 -17
- package/dist/{index255.js → index254.js} +2 -2
- package/dist/index256.js +14 -0
- package/dist/index257.js +2 -12
- package/dist/index258.js +2 -10
- package/dist/index259.js +9 -2
- package/dist/index260.js +3 -6
- package/dist/index261.js +8 -15
- package/dist/index262.js +23 -9
- package/dist/index263.js +88 -8
- package/dist/index265.js +6 -89
- package/dist/index266.js +18 -0
- package/dist/index267.js +9 -4
- package/dist/index268.js +9 -6
- package/dist/index269.js +8 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +28 -2
- package/dist/index271.js +3 -2
- package/dist/index273.js +7 -2
- package/dist/index274.js +431 -2
- package/dist/index275.js +1 -1
- package/dist/index276.js +89 -2
- package/dist/index277.js +7 -2
- package/dist/index278.js +11 -2
- package/dist/index279.js +4 -28
- package/dist/index280.js +224 -22
- package/dist/index281.js +202 -0
- package/dist/index282.js +175 -6
- package/dist/index283.js +6 -3
- package/dist/index284.js +2 -7
- package/dist/index285.js +2 -11
- package/dist/index286.js +2 -17
- package/dist/index287.js +2 -9
- package/dist/index288.js +2 -431
- package/dist/index289.js +2 -2
- package/dist/index29.js +2 -2
- package/dist/index290.js +2 -89
- package/dist/index291.js +2 -3
- package/dist/index292.js +4 -0
- package/dist/index293.js +2 -224
- package/dist/index294.js +2 -200
- package/dist/index295.js +22 -2
- package/dist/index297.js +2 -176
- package/dist/index298.js +125 -21
- package/dist/index299.js +24 -0
- package/dist/index301.js +3 -436
- package/dist/index302.js +16 -126
- package/dist/index303.js +436 -3
- package/dist/index304.js +127 -3
- package/dist/index305.js +3 -213
- package/dist/index306.js +3 -3
- package/dist/index307.js +214 -3
- package/dist/index308.js +3 -58
- package/dist/index309.js +3 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -19
- package/dist/index311.js +56 -64
- package/dist/index312.js +2 -7
- package/dist/index313.js +67 -2
- package/dist/index314.js +5 -5
- package/dist/index315.js +32 -7
- package/dist/index316.js +7 -8
- package/dist/index317.js +18 -7
- package/dist/index318.js +53 -5
- package/dist/index319.js +53 -3
- package/dist/index320.js +46 -3
- package/dist/index321.js +6 -32
- package/dist/index322.js +4 -46
- package/dist/index323.js +8 -2
- package/dist/index324.js +2 -2
- package/dist/index325.js +6 -0
- package/dist/index326.js +2 -424
- package/dist/index328.js +424 -2
- package/dist/index33.js +45 -45
- package/dist/index35.js +56 -55
- package/dist/index37.js +166 -165
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +70 -71
- package/dist/index45.js +7 -7
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +28 -27
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +32 -31
- package/dist/index75.js +3 -3
- package/dist/index77.js +87 -86
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +45 -44
- package/dist/index86.js +67 -66
- package/dist/index88.js +69 -67
- package/package.json +1 -1
- package/dist/index210.js +0 -283
- package/dist/index243.js +0 -127
- package/dist/index253.js +0 -108
- package/dist/index264.js +0 -25
- package/dist/index296.js +0 -128
- package/dist/index300.js +0 -10
- /package/dist/{index327.js → index329.js} +0 -0
- /package/dist/{index272.js → index330.js} +0 -0
@@ -77,7 +77,6 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDialogProps, {}
|
|
77
77
|
size?: any;
|
78
78
|
} & string) | keyof Sizes;
|
79
79
|
transition: string;
|
80
|
-
closeLabel: string;
|
81
80
|
panelClasses: import('../../types/Classes').Classes;
|
82
81
|
overlayClasses: import('../../types/Classes').Classes;
|
83
82
|
showClose: boolean;
|
@@ -469,8 +469,6 @@ declare function __VLS_template(): {
|
|
469
469
|
"option:selected": (option: BaseOption) => any;
|
470
470
|
}, string, {
|
471
471
|
transitionDuration: number;
|
472
|
-
loadingText: string;
|
473
|
-
noDataText: string;
|
474
472
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
475
473
|
beforeCreate?: (() => void) | (() => void)[];
|
476
474
|
created?: (() => void) | (() => void)[];
|
@@ -493,8 +491,6 @@ declare function __VLS_template(): {
|
|
493
491
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
494
492
|
} & Readonly<{
|
495
493
|
transitionDuration: number;
|
496
|
-
loadingText: string;
|
497
|
-
noDataText: string;
|
498
494
|
}> & Omit<Readonly<{
|
499
495
|
compact?: boolean;
|
500
496
|
options: BaseOption[];
|
@@ -506,7 +502,7 @@ declare function __VLS_template(): {
|
|
506
502
|
}> & Readonly<{
|
507
503
|
"onOption:unselected"?: ((option: BaseOption) => any) | undefined;
|
508
504
|
"onOption:selected"?: ((option: BaseOption) => any) | undefined;
|
509
|
-
}>, "blur" | "focusNext" | "focusPrevious" | "focusFirst" | "focusFirstSelected" | "focusLast" | "focusLastSelected" | "confirmOption" | "focusByHash" | "getHighlighted"
|
505
|
+
}>, "transitionDuration" | "blur" | "focusNext" | "focusPrevious" | "focusFirst" | "focusFirstSelected" | "focusLast" | "focusLastSelected" | "confirmOption" | "focusByHash" | "getHighlighted"> & import('vue').ShallowUnwrapRef<{
|
510
506
|
focusNext: () => void;
|
511
507
|
focusPrevious: () => Promise<void>;
|
512
508
|
focusFirst: () => void;
|
@@ -560,9 +556,7 @@ declare const __VLS_component: import('vue').DefineComponent<BaseSelectProps, {}
|
|
560
556
|
allowWriting: boolean | "not-mobile";
|
561
557
|
dependencies: any[];
|
562
558
|
depsDebounceTime: number;
|
563
|
-
loadingText: string;
|
564
559
|
modelValueDebounceTime: number;
|
565
|
-
noDataText: string;
|
566
560
|
max: number;
|
567
561
|
prefill: boolean | "focus";
|
568
562
|
filterBy: string | string[] | false | ((value: any, item: any) => boolean) | null;
|
@@ -42,7 +42,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbAlertProps, {}, {
|
|
42
42
|
}, string, import('vue').PublicProps, Readonly<BbAlertProps> & Readonly<{
|
43
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
44
44
|
}>, {
|
45
|
-
closeLabel: string;
|
46
45
|
theme: string;
|
47
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
48
47
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -28,7 +28,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbChipProps, {}, {}
|
|
28
28
|
"onClick:clear"?: ((...args: any[]) => any) | undefined;
|
29
29
|
}>, {
|
30
30
|
clearable: boolean;
|
31
|
-
clearableLabel: string;
|
32
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
33
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
34
33
|
export default _default;
|
@@ -84,7 +84,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbOffCanvasProps, {
|
|
84
84
|
size?: any;
|
85
85
|
} & string) | keyof Sizes;
|
86
86
|
transition: string;
|
87
|
-
closeLabel: string;
|
88
87
|
panelClasses: import('../../types/Classes').Classes;
|
89
88
|
overlayClasses: import('../../types/Classes').Classes;
|
90
89
|
showClose: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CommonProps } from '../../types/CommonProps';
|
2
2
|
import { Placement } from '@floating-ui/vue';
|
3
|
-
export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
|
3
|
+
export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
|
4
4
|
/**
|
5
5
|
* Elements that obtains focus immediately after opening the popover.
|
6
6
|
* By default it's the first tabbable item.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BbTableProps,
|
1
|
+
import { BbTableProps, BbTableColumn } from './types';
|
2
2
|
import { Classes } from '../../types/Classes';
|
3
3
|
declare let __VLS_typeProps: BbTableProps;
|
4
4
|
type __VLS_PublicProps = {
|
@@ -109,23 +109,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
109
109
|
}>, {
|
110
110
|
dependencies: any[];
|
111
111
|
depsDebounceTime: number;
|
112
|
-
loadingText: string;
|
113
112
|
multiple: boolean;
|
114
|
-
noDataText: string;
|
115
113
|
modelValue: any;
|
116
114
|
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
117
115
|
max: number;
|
118
116
|
align: "left" | "center" | "right";
|
119
117
|
columns: BbTableColumn[];
|
120
|
-
actionsText: string;
|
121
118
|
allowSelectAll: boolean;
|
122
119
|
fixedColumns: (number | {
|
123
120
|
index: number;
|
124
121
|
position: "left" | "right";
|
125
122
|
})[];
|
126
|
-
|
127
|
-
selectText: string;
|
128
|
-
accessibleLabel: (columns: MappedCell[], item: any) => string;
|
123
|
+
actionsText: string;
|
129
124
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
130
125
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
131
126
|
export default _default;
|
@@ -150,6 +150,14 @@ export type BbTableProps = {
|
|
150
150
|
* String displayed when there are no items to display.
|
151
151
|
*/
|
152
152
|
noDataText?: string;
|
153
|
+
/**
|
154
|
+
* Current page number starting from 1
|
155
|
+
*/
|
156
|
+
page?: number;
|
157
|
+
/**
|
158
|
+
* Number of items per page.
|
159
|
+
*/
|
160
|
+
perPage?: number;
|
153
161
|
/**
|
154
162
|
* Sets the input in a readonly state.
|
155
163
|
*/
|
@@ -176,6 +184,10 @@ export type BbTableProps = {
|
|
176
184
|
* Defines the classes to be passed to the `<th>`.
|
177
185
|
*/
|
178
186
|
thClass?: Classes;
|
187
|
+
/**
|
188
|
+
* Total number of items there is.
|
189
|
+
*/
|
190
|
+
totalItems?: number;
|
179
191
|
};
|
180
192
|
/**
|
181
193
|
* We allow table data classes to be a function so it can depend on the item
|
@@ -191,6 +203,7 @@ export type MappedItem = Option & {
|
|
191
203
|
onRowClick: (event: MouseEvent) => void;
|
192
204
|
onRowContextMenu: (event: MouseEvent) => void;
|
193
205
|
onRowDblClick: (event: MouseEvent) => void;
|
206
|
+
rowIndex: number | undefined;
|
194
207
|
};
|
195
208
|
/**
|
196
209
|
* Projection that represnets a header
|
@@ -50,8 +50,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
50
50
|
"onOption:selected"?: ((option: Option) => any) | undefined;
|
51
51
|
}>, {
|
52
52
|
transitionDuration: number;
|
53
|
-
loadingText: string;
|
54
|
-
noDataText: string;
|
55
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
56
54
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
57
55
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Locale } from '../i18n';
|
2
2
|
import { NestedKeyOf } from '../types/NestedKeyOf';
|
3
3
|
export declare const useLocale: () => {
|
4
|
-
t: (path: NestedKeyOf<Locale
|
4
|
+
t: (path: NestedKeyOf<Locale>, ...args: any[]) => Readonly<import('vue').Ref<any, any>>;
|
5
5
|
};
|
package/dist/i18n/en.d.ts
CHANGED
@@ -4,5 +4,50 @@ declare const _default: {
|
|
4
4
|
loadingText: string;
|
5
5
|
noDataText: string;
|
6
6
|
};
|
7
|
+
colorInput: {
|
8
|
+
paletteLabel: string;
|
9
|
+
};
|
10
|
+
datePicker: {
|
11
|
+
monthLabel: string;
|
12
|
+
yearLabel: string;
|
13
|
+
previousMonthLabel: string;
|
14
|
+
nextMonthLabel: string;
|
15
|
+
};
|
16
|
+
baseDatePickerInput: {
|
17
|
+
dateFormat: string;
|
18
|
+
dateFormatSingle: string;
|
19
|
+
dateFormatRange: string;
|
20
|
+
emptyRange: string;
|
21
|
+
changeSelectionRange: string;
|
22
|
+
changeSelection: string;
|
23
|
+
emptySelection: string;
|
24
|
+
};
|
25
|
+
dialog: {
|
26
|
+
closeLabel: string;
|
27
|
+
};
|
28
|
+
dropdownButton: {
|
29
|
+
open: string;
|
30
|
+
close: string;
|
31
|
+
};
|
32
|
+
rating: {
|
33
|
+
singleStar: string;
|
34
|
+
multipleStars: string;
|
35
|
+
};
|
36
|
+
select: {
|
37
|
+
multipleMaxReached: string;
|
38
|
+
};
|
39
|
+
chip: {
|
40
|
+
clearLabel: string;
|
41
|
+
};
|
42
|
+
pagination: {
|
43
|
+
previous: string;
|
44
|
+
next: string;
|
45
|
+
};
|
46
|
+
table: {
|
47
|
+
noDataText: string;
|
48
|
+
selectAllLabel: string;
|
49
|
+
selectText: string;
|
50
|
+
select: string;
|
51
|
+
};
|
7
52
|
};
|
8
53
|
export default _default;
|
package/dist/i18n/it.d.ts
CHANGED
@@ -4,5 +4,50 @@ declare const _default: {
|
|
4
4
|
loadingText: string;
|
5
5
|
noDataText: string;
|
6
6
|
};
|
7
|
+
colorInput: {
|
8
|
+
paletteLabel: string;
|
9
|
+
};
|
10
|
+
datePicker: {
|
11
|
+
monthLabel: string;
|
12
|
+
yearLabel: string;
|
13
|
+
previousMonthLabel: string;
|
14
|
+
nextMonthLabel: string;
|
15
|
+
};
|
16
|
+
baseDatePickerInput: {
|
17
|
+
dateFormat: string;
|
18
|
+
dateFormatSingle: string;
|
19
|
+
dateFormatRange: string;
|
20
|
+
emptyRange: string;
|
21
|
+
changeSelectionRange: string;
|
22
|
+
changeSelection: string;
|
23
|
+
emptySelection: string;
|
24
|
+
};
|
25
|
+
dialog: {
|
26
|
+
closeLabel: string;
|
27
|
+
};
|
28
|
+
dropdownButton: {
|
29
|
+
open: string;
|
30
|
+
close: string;
|
31
|
+
};
|
32
|
+
rating: {
|
33
|
+
singleStar: string;
|
34
|
+
multipleStars: string;
|
35
|
+
};
|
36
|
+
select: {
|
37
|
+
multipleMaxReached: string;
|
38
|
+
};
|
39
|
+
chip: {
|
40
|
+
clearLabel: string;
|
41
|
+
};
|
42
|
+
pagination: {
|
43
|
+
previous: string;
|
44
|
+
next: string;
|
45
|
+
};
|
46
|
+
table: {
|
47
|
+
noDataText: string;
|
48
|
+
selectAllLabel: string;
|
49
|
+
selectText: string;
|
50
|
+
select: string;
|
51
|
+
};
|
7
52
|
};
|
8
53
|
export default _default;
|
package/dist/index100.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useItemValue as
|
3
|
-
import { isNil as
|
4
|
-
import { indexBy as
|
5
|
-
import { hash as
|
6
|
-
import { useItemsGetter as
|
7
|
-
import { usePrefill as
|
8
|
-
import { useIndexById as
|
9
|
-
import { useBaseOptions as
|
10
|
-
import { useHashedWatcher as
|
11
|
-
const ne = /* @__PURE__ */
|
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 "./index268.js";
|
3
|
+
import { isNil as H } from "./index257.js";
|
4
|
+
import { indexBy as q } from "./index269.js";
|
5
|
+
import { hash as w } from "./index208.js";
|
6
|
+
import { useItemsGetter as z } from "./index244.js";
|
7
|
+
import { usePrefill as J } from "./index249.js";
|
8
|
+
import { useIndexById as K } from "./index245.js";
|
9
|
+
import { useBaseOptions as Q } from "./index246.js";
|
10
|
+
import { useHashedWatcher as X } from "./index248.js";
|
11
|
+
const ne = /* @__PURE__ */ P({
|
12
12
|
__name: "BbRows",
|
13
|
-
props: /* @__PURE__ */
|
13
|
+
props: /* @__PURE__ */ b({
|
14
14
|
columns: { default: () => [] },
|
15
15
|
dependencies: { default: () => [] },
|
16
16
|
depsDebounceTime: { default: 0 },
|
@@ -30,24 +30,24 @@ const ne = /* @__PURE__ */ L({
|
|
30
30
|
"select-all": { type: Boolean, default: !1 },
|
31
31
|
"select-allModifiers": {}
|
32
32
|
}),
|
33
|
-
emits: /* @__PURE__ */
|
34
|
-
setup(d, { emit:
|
35
|
-
const l = d, u =
|
33
|
+
emits: /* @__PURE__ */ b(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
|
34
|
+
setup(d, { emit: M }) {
|
35
|
+
const l = d, u = M, { getItemValue: O } = W(), p = I(() => !!(l.loading || S.value)), {
|
36
36
|
getter: f,
|
37
37
|
items: v,
|
38
|
-
loading:
|
39
|
-
} =
|
38
|
+
loading: S
|
39
|
+
} = z({
|
40
40
|
items: m(l, "items")
|
41
|
-
}), { hasPrefilled:
|
41
|
+
}), { hasPrefilled: F } = J({
|
42
42
|
onStart: !0,
|
43
43
|
currentValue: l.modelValue,
|
44
44
|
multiple: l.multiple,
|
45
45
|
fn: async ({ prefill: e }) => {
|
46
46
|
await f(e, l.modelValue);
|
47
47
|
}
|
48
|
-
}), { data: y } =
|
48
|
+
}), { data: y } = K({
|
49
49
|
items: m(l, "modelValue")
|
50
|
-
}), { options:
|
50
|
+
}), { options: N } = Q({
|
51
51
|
disabled: m(l, "disabled"),
|
52
52
|
items: v,
|
53
53
|
itemText: void 0,
|
@@ -55,36 +55,36 @@ const ne = /* @__PURE__ */ L({
|
|
55
55
|
max: l.max,
|
56
56
|
selectable: !0,
|
57
57
|
selectedIndexedByHash: y
|
58
|
-
}),
|
58
|
+
}), T = async (e) => {
|
59
59
|
l.multiple ? u("update:modelValue", l.modelValue.concat(e.value)) : u("update:modelValue", e.value);
|
60
|
-
},
|
60
|
+
}, $ = async (e) => {
|
61
61
|
if (l.multiple) {
|
62
62
|
const t = { ...y.value };
|
63
63
|
delete t[e.valueHash], u("update:modelValue", Object.values(t));
|
64
64
|
} else
|
65
65
|
u("update:modelValue", null);
|
66
66
|
};
|
67
|
-
|
67
|
+
X(
|
68
68
|
() => [l.dependencies, l.items],
|
69
69
|
async () => {
|
70
|
-
|
70
|
+
F.value && await f(!1, l.modelValue);
|
71
71
|
},
|
72
72
|
{
|
73
73
|
debounce: l.depsDebounceTime
|
74
74
|
}
|
75
75
|
);
|
76
|
-
const h =
|
76
|
+
const h = I(() => N.value.map((e) => {
|
77
77
|
let t = !l.selectable;
|
78
78
|
return typeof l.selectable == "function" && (t = !l.selectable(e.item)), t = t || !!e.disabled, {
|
79
|
-
columns:
|
79
|
+
columns: q(
|
80
80
|
l.columns.map((a) => {
|
81
|
-
const { label:
|
82
|
-
let o =
|
81
|
+
const { label: D, key: L } = a;
|
82
|
+
let o = O(e.item, a.key);
|
83
83
|
return a.formatter && // By default the formatter runs anyway
|
84
|
-
(!
|
84
|
+
(!H(o) || a.formatOnNull !== !1) && (o = a.formatter(o, a.key, e.item)), a.placeholder && H(o) && (o = a.placeholder), {
|
85
85
|
value: o,
|
86
|
-
key:
|
87
|
-
label:
|
86
|
+
key: L,
|
87
|
+
label: D
|
88
88
|
};
|
89
89
|
}),
|
90
90
|
(a) => a.key
|
@@ -96,29 +96,30 @@ const ne = /* @__PURE__ */ L({
|
|
96
96
|
selected: !!(e.selected || i.value),
|
97
97
|
disabled: t
|
98
98
|
};
|
99
|
-
})),
|
100
|
-
i.value ||
|
101
|
-
(t) =>
|
99
|
+
})), A = (e) => {
|
100
|
+
i.value || T(e), c.delete(e.valueHash), n.value = n.value.filter(
|
101
|
+
(t) => w(t) !== w(e.item)
|
102
102
|
);
|
103
|
-
},
|
104
|
-
c.add(e.valueHash), n.value.push(e.item),
|
105
|
-
}, c =
|
106
|
-
let i =
|
107
|
-
return
|
103
|
+
}, C = (e) => {
|
104
|
+
c.add(e.valueHash), n.value.push(e.item), $(e);
|
105
|
+
}, c = R(/* @__PURE__ */ new Set()), n = B(d, "unselected-items");
|
106
|
+
let i = B(d, "select-all");
|
107
|
+
return j(i, () => {
|
108
108
|
c.clear(), n.value = [], u("update:modelValue", []);
|
109
|
-
}), (e, t) => (
|
109
|
+
}), (e, t) => (g(), k(x, null, [
|
110
110
|
p.value ? r(e.$slots, "loading", {
|
111
111
|
key: 0,
|
112
|
-
items:
|
113
|
-
}) :
|
114
|
-
h.value.length ? (
|
112
|
+
items: E(v)
|
113
|
+
}) : G("", !0),
|
114
|
+
h.value.length ? (g(!0), k(x, { key: 2 }, U(h.value, (s, V) => r(e.$slots, "default", {
|
115
115
|
key: s.valueHash,
|
116
116
|
checked: s.selected,
|
117
117
|
columns: s.columns,
|
118
118
|
disabled: s.disabled,
|
119
|
+
index: V,
|
119
120
|
item: s.item,
|
120
|
-
select: () =>
|
121
|
-
unselect: () =>
|
121
|
+
select: () => A(s),
|
122
|
+
unselect: () => C(s),
|
122
123
|
value: s.value
|
123
124
|
})), 128)) : r(e.$slots, "no-data", {
|
124
125
|
key: 1,
|