bitboss-ui 0.2.2 → 0.2.4
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/BbTable/BbTable.vue.d.ts +36 -36
- package/dist/components/BbTable/types.d.ts +137 -81
- package/dist/index101.js +17 -17
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +3 -3
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +7 -7
- package/dist/index19.js +3 -3
- package/dist/index195.js +235 -2
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +5 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +16 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +16 -235
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -2
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +20 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +29 -3
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +8 -35
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +2 -5
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -16
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +3 -19
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +35 -20
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -29
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +3 -8
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +3 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +4 -4
- package/dist/index213.js +2 -2
- package/dist/index214.js +2 -186
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +186 -23
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -369
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -3
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +9 -2
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -2
- package/dist/index222.js +2 -28
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +27 -12
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +12 -8
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index228.js +291 -431
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -88
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +2 -6
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -2
- package/dist/index232.js +2 -295
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -2
- package/dist/index235.js +2 -117
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -106
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +68 -199
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +162 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -2
- package/dist/index240.js +224 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +258 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +430 -219
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +83 -252
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -162
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +117 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +105 -68
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +200 -2
- package/dist/index248.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index252.js +1 -1
- package/dist/index253.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index31.js +5 -5
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +3 -3
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
10
10
|
compact?: boolean | undefined;
|
|
11
11
|
dependencies?: any[] | undefined;
|
|
12
12
|
depsDebounceTime?: number | undefined;
|
|
13
|
-
itemValue?:
|
|
13
|
+
itemValue?: string | ((item: any) => any) | undefined;
|
|
14
14
|
loading?: boolean | undefined;
|
|
15
15
|
loadingText?: string | undefined;
|
|
16
16
|
matchStrategy?: "string" | "equality" | undefined;
|
|
@@ -18,29 +18,29 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
18
18
|
noDataText?: string | undefined;
|
|
19
19
|
modelValue?: any;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
21
|
-
items:
|
|
22
|
-
selectable?: boolean | ((item:
|
|
21
|
+
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
22
|
+
selectable?: boolean | ((item: any) => boolean) | undefined;
|
|
23
23
|
actions?: boolean | undefined;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
"onClick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
25
|
+
"onContextmenu:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
26
|
+
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
28
|
+
accessibleLabel?: ((columns: MappedCell[], item: any) => string) | undefined;
|
|
27
29
|
actionsText?: string | undefined;
|
|
28
30
|
align?: "left" | "center" | "right" | undefined;
|
|
29
31
|
allowSelectAll?: boolean | undefined;
|
|
30
|
-
columns: TableColumn
|
|
32
|
+
columns: TableColumn[];
|
|
31
33
|
displayCaption?: boolean | undefined;
|
|
32
|
-
fixedHeader?: boolean | undefined;
|
|
33
34
|
fixedColumns?: (number | {
|
|
34
35
|
index: number;
|
|
35
36
|
position: "left" | "right";
|
|
36
37
|
})[] | undefined;
|
|
38
|
+
fixedHeader?: boolean | undefined;
|
|
37
39
|
selectAll?: boolean | undefined;
|
|
38
40
|
selectAllText?: string | undefined;
|
|
39
41
|
selectText?: string | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
43
|
-
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
42
|
+
tdClass?: import("./types").ColumnClasses | undefined;
|
|
43
|
+
thClass?: Classes | undefined;
|
|
44
44
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
45
45
|
attrs: any;
|
|
46
46
|
slots: Readonly<{
|
|
@@ -92,7 +92,7 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
92
92
|
compact?: boolean | undefined;
|
|
93
93
|
dependencies?: any[] | undefined;
|
|
94
94
|
depsDebounceTime?: number | undefined;
|
|
95
|
-
itemValue?:
|
|
95
|
+
itemValue?: string | ((item: any) => any) | undefined;
|
|
96
96
|
loading?: boolean | undefined;
|
|
97
97
|
loadingText?: string | undefined;
|
|
98
98
|
matchStrategy?: "string" | "equality" | undefined;
|
|
@@ -100,29 +100,29 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
100
100
|
noDataText?: string | undefined;
|
|
101
101
|
modelValue?: any;
|
|
102
102
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
103
|
-
items:
|
|
104
|
-
selectable?: boolean | ((item:
|
|
103
|
+
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
104
|
+
selectable?: boolean | ((item: any) => boolean) | undefined;
|
|
105
105
|
actions?: boolean | undefined;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
"onClick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
107
|
+
"onContextmenu:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
108
|
+
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
109
|
+
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
110
|
+
accessibleLabel?: ((columns: MappedCell[], item: any) => string) | undefined;
|
|
109
111
|
actionsText?: string | undefined;
|
|
110
112
|
align?: "left" | "center" | "right" | undefined;
|
|
111
113
|
allowSelectAll?: boolean | undefined;
|
|
112
|
-
columns: TableColumn
|
|
114
|
+
columns: TableColumn[];
|
|
113
115
|
displayCaption?: boolean | undefined;
|
|
114
|
-
fixedHeader?: boolean | undefined;
|
|
115
116
|
fixedColumns?: (number | {
|
|
116
117
|
index: number;
|
|
117
118
|
position: "left" | "right";
|
|
118
119
|
})[] | undefined;
|
|
120
|
+
fixedHeader?: boolean | undefined;
|
|
119
121
|
selectAll?: boolean | undefined;
|
|
120
122
|
selectAllText?: string | undefined;
|
|
121
123
|
selectText?: string | undefined;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
125
|
-
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
124
|
+
tdClass?: import("./types").ColumnClasses | undefined;
|
|
125
|
+
thClass?: Classes | undefined;
|
|
126
126
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
127
127
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
128
128
|
attrs: any;
|
|
@@ -178,7 +178,7 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
178
178
|
compact?: boolean | undefined;
|
|
179
179
|
dependencies?: any[] | undefined;
|
|
180
180
|
depsDebounceTime?: number | undefined;
|
|
181
|
-
itemValue?:
|
|
181
|
+
itemValue?: string | ((item: any) => any) | undefined;
|
|
182
182
|
loading?: boolean | undefined;
|
|
183
183
|
loadingText?: string | undefined;
|
|
184
184
|
matchStrategy?: "string" | "equality" | undefined;
|
|
@@ -186,29 +186,29 @@ declare const _default: <T extends object>(__VLS_props: {
|
|
|
186
186
|
noDataText?: string | undefined;
|
|
187
187
|
modelValue?: any;
|
|
188
188
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
189
|
-
items:
|
|
190
|
-
selectable?: boolean | ((item:
|
|
189
|
+
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
190
|
+
selectable?: boolean | ((item: any) => boolean) | undefined;
|
|
191
191
|
actions?: boolean | undefined;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
"onClick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
193
|
+
"onContextmenu:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
194
|
+
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
195
|
+
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
196
|
+
accessibleLabel?: ((columns: MappedCell[], item: any) => string) | undefined;
|
|
195
197
|
actionsText?: string | undefined;
|
|
196
198
|
align?: "left" | "center" | "right" | undefined;
|
|
197
199
|
allowSelectAll?: boolean | undefined;
|
|
198
|
-
columns: TableColumn
|
|
200
|
+
columns: TableColumn[];
|
|
199
201
|
displayCaption?: boolean | undefined;
|
|
200
|
-
fixedHeader?: boolean | undefined;
|
|
201
202
|
fixedColumns?: (number | {
|
|
202
203
|
index: number;
|
|
203
204
|
position: "left" | "right";
|
|
204
205
|
})[] | undefined;
|
|
206
|
+
fixedHeader?: boolean | undefined;
|
|
205
207
|
selectAll?: boolean | undefined;
|
|
206
208
|
selectAllText?: string | undefined;
|
|
207
209
|
selectText?: string | undefined;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
211
|
-
"onUpdate:selectAll"?: ((value: Boolean) => any) | undefined;
|
|
210
|
+
tdClass?: import("./types").ColumnClasses | undefined;
|
|
211
|
+
thClass?: Classes | undefined;
|
|
212
212
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
213
213
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
214
214
|
attrs: any;
|
|
@@ -1,125 +1,182 @@
|
|
|
1
1
|
import type { Classes } from '../../types/Classes';
|
|
2
|
-
import type {
|
|
3
|
-
type NestedKeyOf<ObjectType extends object> = {
|
|
4
|
-
[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : `${Key}`;
|
|
5
|
-
}[keyof ObjectType & (string | number)];
|
|
6
|
-
type Path<T extends object> = NestedKeyOf<T> | (string & Record<never, never>);
|
|
2
|
+
import type { InputHTMLAttributes } from "vue";
|
|
7
3
|
/**
|
|
8
4
|
* Column as defined from outside
|
|
9
5
|
*/
|
|
10
|
-
export type TableColumn
|
|
6
|
+
export type TableColumn = {
|
|
11
7
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
* Text alignment of the column.
|
|
9
|
+
*/
|
|
14
10
|
align?: "left" | "right" | "center";
|
|
15
11
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
* When set to false the formatter will not run on nullish values.
|
|
13
|
+
* By default is true so you can create virtual columns with keys that do not
|
|
14
|
+
* reference a prop in the `item` and still extract data from the other
|
|
15
|
+
* arguments in the formatting function.
|
|
16
|
+
*/
|
|
21
17
|
formatOnNull?: boolean;
|
|
22
18
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
formatter?: (content: any, key: string, item:
|
|
19
|
+
* Formatting function used to generate enhanced content.
|
|
20
|
+
* @param content The content generated by the extraction of `Item[key]`
|
|
21
|
+
* @param key Key of the column taken from the column definition.
|
|
22
|
+
* @param item Item of the row.
|
|
23
|
+
*/
|
|
24
|
+
formatter?: (content: any, key: string, item: any) => any;
|
|
29
25
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
key:
|
|
26
|
+
* Key identifying the column.
|
|
27
|
+
*/
|
|
28
|
+
key: string;
|
|
33
29
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
* Text used in the header for this column.
|
|
31
|
+
*/
|
|
36
32
|
label: string;
|
|
37
33
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
* Placeholder used when the pipeline returns null content.
|
|
35
|
+
*/
|
|
40
36
|
placeholder?: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
|
|
39
|
+
*/
|
|
40
|
+
tdClass?: ColumnClasses;
|
|
41
|
+
/**
|
|
42
|
+
* Defines the classes to be passed to the `<th>`.
|
|
43
|
+
*/
|
|
44
|
+
thClass?: Classes;
|
|
45
|
+
};
|
|
46
|
+
export type BbTableProps = {
|
|
47
|
+
/**
|
|
48
|
+
* Function that accepts the columns and the current item as
|
|
49
|
+
* arguments and returns a label to be used for accessibility purposes.
|
|
50
|
+
*/
|
|
51
|
+
accessibleLabel?: (columns: MappedCell[], item: any) => string;
|
|
52
|
+
/**
|
|
53
|
+
* Displays the actions column.
|
|
54
|
+
*/
|
|
54
55
|
actions?: boolean;
|
|
55
56
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
* Label used in the header of the actions column.
|
|
58
|
+
*/
|
|
58
59
|
actionsText?: string;
|
|
59
60
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
* Text alignment of the columns.
|
|
62
|
+
*/
|
|
62
63
|
align?: "left" | "center" | "right";
|
|
63
64
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
* Boolean that defines whether to display a "Select all" checkbox.
|
|
66
|
+
*/
|
|
66
67
|
allowSelectAll?: boolean;
|
|
67
68
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
* Caption that describes the content of the table. Used for accessibility purposes.
|
|
70
|
+
*/
|
|
70
71
|
caption?: string;
|
|
71
72
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
columns: TableColumn
|
|
73
|
+
* Array of definitions of how the columns should be rendered.
|
|
74
|
+
*/
|
|
75
|
+
columns: TableColumn[];
|
|
76
|
+
/**
|
|
77
|
+
* Adds a CSS class that applies a compact style to the component.
|
|
78
|
+
*/
|
|
79
|
+
compact?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Defines an array of dependencies that will trigger actions in the component upon change.
|
|
82
|
+
*/
|
|
83
|
+
dependencies?: any[];
|
|
84
|
+
/**
|
|
85
|
+
* Timeout used to debounce response to changes to dependencies.
|
|
86
|
+
*/
|
|
87
|
+
depsDebounceTime?: number;
|
|
75
88
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
89
|
+
* Disables the component
|
|
90
|
+
*/
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Boolean that defines whether to display or hide the caption.
|
|
94
|
+
* By default is true and the caption is hidden.
|
|
95
|
+
*/
|
|
79
96
|
displayCaption?: boolean;
|
|
80
97
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
98
|
+
* Defines the table layout as fixed
|
|
99
|
+
* making each column take up the same amount of space.
|
|
100
|
+
*/
|
|
84
101
|
fixed?: boolean;
|
|
85
102
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* Definition for which column should be fixed.
|
|
91
|
-
* It can be an array of index of the column to fix on the left side of the table or
|
|
92
|
-
* an array of objects indicating the index and the position `left` or `right` where to affix the columns.
|
|
93
|
-
*/
|
|
103
|
+
* Definition for which column should be fixed.
|
|
104
|
+
* It can be an array of index of the column to fix on the left side of the table or
|
|
105
|
+
* an array of objects indicating the index and the position `left` or `right` where to affix the columns.
|
|
106
|
+
*/
|
|
94
107
|
fixedColumns?: (number | {
|
|
95
108
|
index: number;
|
|
96
109
|
position: "left" | "right";
|
|
97
110
|
})[];
|
|
98
111
|
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
112
|
+
* Boolean that sets the headers as sticky top the top of the table.
|
|
113
|
+
*/
|
|
114
|
+
fixedHeader?: boolean;
|
|
115
|
+
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
|
116
|
+
itemValue?: string | ((item: any) => any);
|
|
117
|
+
/**
|
|
118
|
+
* Text content of the legend.
|
|
119
|
+
*/
|
|
120
|
+
legend?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Sets the component in a loading state, usually triggering some visual styles.
|
|
123
|
+
*/
|
|
124
|
+
loading?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* String displayed while items are being loaded.
|
|
127
|
+
*/
|
|
128
|
+
loadingText?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Defines the strategy used to understand whether an option has been selected.
|
|
131
|
+
* `string` is 40% faster but relies on property order.
|
|
132
|
+
* `equality` is more reliable but is slower.
|
|
133
|
+
*/
|
|
134
|
+
matchStrategy?: "string" | "equality";
|
|
135
|
+
/**
|
|
136
|
+
* Used by v-model. Can be any serializable type.
|
|
137
|
+
*/
|
|
138
|
+
modelValue?: any;
|
|
139
|
+
/**
|
|
140
|
+
* Allows the selection of multiple items.
|
|
141
|
+
*/
|
|
142
|
+
multiple?: boolean;
|
|
104
143
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
144
|
+
* Defines the name of the input.
|
|
145
|
+
*/
|
|
146
|
+
name?: InputHTMLAttributes["name"];
|
|
147
|
+
/**
|
|
148
|
+
* String displayed when there are no items to display.
|
|
149
|
+
*/
|
|
150
|
+
noDataText?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Sets the input in a readonly state.
|
|
153
|
+
*/
|
|
154
|
+
readonly?: InputHTMLAttributes["readonly"];
|
|
155
|
+
/**
|
|
156
|
+
* Defines whether the table is selectable.
|
|
157
|
+
* Can be a global boolean that affects all rows or a function
|
|
158
|
+
* that accepts an otem and returns a boolean that only affects that item.
|
|
159
|
+
*/
|
|
160
|
+
selectable?: boolean | ((item: any) => boolean);
|
|
161
|
+
/**
|
|
162
|
+
* Used by v-model:selectAll. Indicates whether the "Select all" checkbox is checked or not.
|
|
163
|
+
*/
|
|
107
164
|
selectAll?: boolean;
|
|
108
165
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
166
|
+
* Text of the label used by the "Select all" boolean.
|
|
167
|
+
*/
|
|
111
168
|
selectAllText?: string;
|
|
112
169
|
/**
|
|
113
|
-
|
|
114
|
-
|
|
170
|
+
* Text of the header used for the radio inputs when the table is not `multiple`.
|
|
171
|
+
*/
|
|
115
172
|
selectText?: string;
|
|
116
173
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
174
|
+
* Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
|
|
175
|
+
*/
|
|
119
176
|
tdClass?: ColumnClasses;
|
|
120
177
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
178
|
+
* Defines the classes to be passed to the `<th>`.
|
|
179
|
+
*/
|
|
123
180
|
thClass?: Classes;
|
|
124
181
|
};
|
|
125
182
|
/**
|
|
@@ -154,8 +211,8 @@ export type MappedHeader = {
|
|
|
154
211
|
align: string;
|
|
155
212
|
classes?: Classes[];
|
|
156
213
|
key: string;
|
|
157
|
-
slotName: string;
|
|
158
214
|
label: string;
|
|
215
|
+
slotName: string;
|
|
159
216
|
};
|
|
160
217
|
/**
|
|
161
218
|
* Projection that represents a cell of data.
|
|
@@ -212,4 +269,3 @@ export type BbTableSlots<T = any> = {
|
|
|
212
269
|
value?: any;
|
|
213
270
|
}) => any;
|
|
214
271
|
};
|
|
215
|
-
export {};
|
package/dist/index101.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as O, computed as p, onMounted as de, watch as q, openBlock as c, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as pe, mergeProps as fe } from "vue";
|
|
2
2
|
import { add as me } from "./index226.js";
|
|
3
|
-
import { clamp as ye } from "./
|
|
3
|
+
import { clamp as ye } from "./index206.js";
|
|
4
4
|
import { deepEqual as he } from "./index123.js";
|
|
5
5
|
import { isNil as j } from "./index120.js";
|
|
6
6
|
import { isNotNil as _e } from "./index124.js";
|
|
7
7
|
import { useId as ke } from "./index7.js";
|
|
8
8
|
import { useItemValue as ge } from "./index126.js";
|
|
9
|
-
import { when as ve } from "./
|
|
9
|
+
import { when as ve } from "./index205.js";
|
|
10
10
|
import G from "./index11.js";
|
|
11
11
|
import "./index12.js";
|
|
12
12
|
import Ce from "./index25.js";
|
|
@@ -28,32 +28,32 @@ const we = { key: 0 }, Ve = { class: "bb-table-header-row" }, Ne = { class: "bb-
|
|
|
28
28
|
], ze = { class: "bb-table-no-data__row" }, Oe = ["colspan"], qe = { class: "bb-table-no-data__text" }, Je = ["onClick", "onContextmenu", "onDblclick"], je = { class: "bb-table-check__label-text" }, Me = { class: "bb-table-radio__label-text" }, al = /* @__PURE__ */ ie({
|
|
29
29
|
__name: "BbTable",
|
|
30
30
|
props: {
|
|
31
|
+
accessibleLabel: { type: Function, default: (S) => ["Seleziona"].concat(S.map(($) => $.content)).join(" ") },
|
|
32
|
+
actions: { type: Boolean },
|
|
33
|
+
actionsText: { default: "Azioni" },
|
|
34
|
+
align: { default: "left" },
|
|
35
|
+
allowSelectAll: { type: Boolean, default: !0 },
|
|
36
|
+
caption: {},
|
|
37
|
+
columns: { default: () => [] },
|
|
31
38
|
compact: { type: Boolean },
|
|
32
39
|
dependencies: { default: () => [] },
|
|
33
40
|
depsDebounceTime: { default: 0 },
|
|
34
41
|
disabled: { type: Boolean },
|
|
42
|
+
displayCaption: { type: Boolean },
|
|
43
|
+
fixed: { type: Boolean },
|
|
44
|
+
fixedColumns: { default: () => [] },
|
|
45
|
+
fixedHeader: { type: Boolean },
|
|
46
|
+
items: { type: [Array, Function], default: () => [] },
|
|
47
|
+
itemValue: {},
|
|
48
|
+
legend: {},
|
|
35
49
|
loading: { type: Boolean },
|
|
36
50
|
loadingText: { default: "Caricamento" },
|
|
37
51
|
matchStrategy: { default: "string" },
|
|
52
|
+
modelValue: {},
|
|
38
53
|
multiple: { type: Boolean, default: !0 },
|
|
39
54
|
name: {},
|
|
40
55
|
noDataText: { default: "Non ci sono elementi da visualizzare" },
|
|
41
56
|
readonly: {},
|
|
42
|
-
itemValue: {},
|
|
43
|
-
items: { type: [Array, Function], default: () => [] },
|
|
44
|
-
legend: {},
|
|
45
|
-
modelValue: {},
|
|
46
|
-
accessibleLabel: { type: Function, default: (S) => ["Seleziona"].concat(S.map(($) => $.content)).join(" ") },
|
|
47
|
-
actions: { type: Boolean },
|
|
48
|
-
actionsText: { default: "Azioni" },
|
|
49
|
-
align: { default: "left" },
|
|
50
|
-
allowSelectAll: { type: Boolean, default: !0 },
|
|
51
|
-
caption: {},
|
|
52
|
-
columns: { default: () => [] },
|
|
53
|
-
displayCaption: { type: Boolean },
|
|
54
|
-
fixed: { type: Boolean },
|
|
55
|
-
fixedHeader: { type: Boolean },
|
|
56
|
-
fixedColumns: { default: () => [] },
|
|
57
57
|
selectable: { type: [Boolean, Function] },
|
|
58
58
|
selectAll: { type: Boolean },
|
|
59
59
|
selectAllText: { default: "Seleziona tutti gli elementi di questa pagina" },
|