bitboss-ui 2.1.73 → 2.1.75
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/BbRows/BbRows.vue.d.ts +3 -3
- package/dist/components/BbTable/BbTable.vue.d.ts +30 -6
- package/dist/components/BbTable/types.d.ts +46 -28
- package/dist/components/BbTable/utils.d.ts +23 -0
- package/dist/composables/useBbConfig.d.ts +5 -1
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +326 -304
- package/dist/index13.js +64 -33
- package/dist/index130.js +1 -1
- package/dist/index132.js +4 -4
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- 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/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +4 -34
- package/dist/index220.js +13 -9
- package/dist/index221.js +20 -2
- package/dist/index222.js +201 -4
- package/dist/index224.js +127 -3
- package/dist/{index225.js → index226.js} +1 -1
- package/dist/index228.js +27 -15
- package/dist/index229.js +15 -49
- package/dist/index23.js +11 -11
- package/dist/index230.js +48 -12
- package/dist/index231.js +15 -3
- package/dist/index232.js +3 -12
- package/dist/index233.js +11 -15
- package/dist/index234.js +15 -12
- package/dist/index235.js +13 -13
- package/dist/index237.js +32 -3
- package/dist/index238.js +27 -19
- package/dist/index240.js +4 -0
- package/dist/index241.js +11 -127
- package/dist/index242.js +10 -0
- package/dist/index243.js +9 -10
- package/dist/index244.js +3 -3
- package/dist/index245.js +2 -4
- package/dist/index246.js +2 -5
- package/dist/index247.js +9 -5
- package/dist/index248.js +34 -5
- package/dist/index249.js +2 -5
- package/dist/index25.js +2 -2
- package/dist/index250.js +3 -2
- package/dist/index251.js +187 -5
- package/dist/index252.js +4 -8
- package/dist/index253.js +7 -266
- package/dist/index254.js +40 -51
- package/dist/index255.js +5 -52
- package/dist/index256.js +5 -32
- package/dist/index257.js +5 -60
- package/dist/index258.js +5 -3
- package/dist/index259.js +2 -188
- package/dist/index260.js +6 -3
- package/dist/index261.js +266 -16
- package/dist/index262.js +52 -12
- package/dist/index263.js +47 -101
- package/dist/index264.js +34 -0
- package/dist/index265.js +55 -95
- package/dist/index266.js +6 -0
- package/dist/index267.js +22 -228
- package/dist/index268.js +106 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +99 -15
- package/dist/index272.js +3 -5
- package/dist/index273.js +3 -5
- package/dist/index274.js +9 -2
- package/dist/index275.js +23 -33
- package/dist/index276.js +5 -28
- package/dist/index277.js +7 -0
- package/dist/index278.js +5 -2
- package/dist/index279.js +5 -2
- package/dist/index280.js +18 -2
- package/dist/index281.js +11 -6
- package/dist/index282.js +229 -7
- package/dist/index283.js +8 -9
- package/dist/index284.js +2 -23
- package/dist/index285.js +6 -22
- package/dist/index286.js +7 -7
- package/dist/index287.js +10 -9
- package/dist/index288.js +3 -67
- package/dist/index289.js +67 -2
- package/dist/index29.js +2 -2
- package/dist/index290.js +7 -9
- package/dist/index291.js +6 -5
- package/dist/index292.js +16 -8
- package/dist/index294.js +3 -4
- package/dist/index295.js +5 -0
- package/dist/index296.js +1 -1
- package/dist/index297.js +2 -2
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index301.js +4 -4
- package/dist/index302.js +2 -280
- package/dist/index303.js +4 -2
- package/dist/index304.js +277 -13
- package/dist/index305.js +2 -2
- package/dist/index306.js +9 -9
- package/dist/index308.js +12 -23
- package/dist/index31.js +2 -2
- package/dist/index310.js +27 -2
- package/dist/index311.js +2 -2
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +2 -3
- package/dist/index316.js +2 -3
- package/dist/index317.js +5 -4
- package/dist/index318.js +3 -719
- package/dist/index319.js +3 -366
- package/dist/index320.js +123 -55
- package/dist/index321.js +2 -5
- package/dist/index322.js +15 -3
- package/dist/index323.js +2 -3
- package/dist/index324.js +19 -2
- package/dist/index325.js +2 -125
- package/dist/index326.js +4 -2
- package/dist/index327.js +2 -15
- package/dist/index328.js +2 -2
- package/dist/index329.js +5 -18
- package/dist/index33.js +8 -8
- package/dist/index330.js +8 -2
- package/dist/index331.js +6 -2
- package/dist/index332.js +8 -6
- package/dist/index333.js +34 -6
- package/dist/index334.js +6 -5
- package/dist/index335.js +128 -6
- package/dist/index336.js +395 -16
- package/dist/index337.js +58 -9
- package/dist/index338.js +57 -14
- package/dist/index339.js +227 -7
- package/dist/index340.js +6 -5
- package/dist/index341.js +19 -8
- package/dist/index342.js +8 -34
- package/dist/index343.js +15 -6
- package/dist/index344.js +5 -129
- package/dist/index345.js +6 -397
- package/dist/index346.js +92 -46
- package/dist/index347.js +719 -93
- package/dist/index348.js +365 -57
- package/dist/index349.js +56 -57
- package/dist/index35.js +4 -4
- package/dist/index350.js +131 -225
- package/dist/index353.js +44 -131
- package/dist/index37.js +17 -17
- package/dist/index39.js +6 -6
- package/dist/index4.js +12 -10
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +4 -4
- package/dist/index67.js +1 -1
- package/dist/index80.js +5 -5
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +2 -2
- package/dist/index93.js +2 -2
- package/dist/index95.js +4 -4
- package/package.json +1 -1
- package/dist/index223.js +0 -4
- package/dist/index227.js +0 -31
- package/dist/index239.js +0 -203
- package/dist/index269.js +0 -8
- package/dist/index271.js +0 -7
- package/dist/index293.js +0 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseColumn } from '../BbTable/types';
|
|
2
|
-
export type BbRowsColumn<
|
|
3
|
-
declare const _default: <
|
|
2
|
+
export type BbRowsColumn<Item = any> = BaseColumn<Item>;
|
|
3
|
+
declare const _default: <Item = any>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
6
|
readonly "onUpdate:unselectedItems"?: ((value: any[]) => any) | undefined;
|
|
7
7
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:unselectedItems"> & {
|
|
8
|
-
columns: BbRowsColumn<
|
|
8
|
+
columns: BbRowsColumn<Item>[];
|
|
9
9
|
/**
|
|
10
10
|
* Defines an array of dependencies that will trigger actions in the component upon change.
|
|
11
11
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BbTableProps, BbTableEvents } from './types';
|
|
2
1
|
import { Classes } from '../../types/Classes';
|
|
3
2
|
import { ColumnName } from '../../types/ColumnName';
|
|
4
|
-
|
|
3
|
+
import { BbTableColumn, BbTableEvents, BbTableProps, ItemKey } from './types';
|
|
4
|
+
declare const _default: <Item = any, T extends ItemKey<Item> = 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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
7
7
|
readonly "onClick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
@@ -11,7 +11,13 @@ declare const _default: <T extends string, Item extends object = any>(__VLS_prop
|
|
|
11
11
|
readonly "onUpdate:unselectedItems"?: ((value: any[]) => any) | undefined;
|
|
12
12
|
readonly "onItem:selected"?: ((value: any) => any) | undefined;
|
|
13
13
|
readonly "onItem:unselected"?: ((value: any) => any) | undefined;
|
|
14
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:unselectedItems" | "onClick:row" | "onContextmenu:row" | "onDblclick:row" | "onUpdate:selectAll" | "onItem:selected" | "onItem:unselected"> &
|
|
14
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:unselectedItems" | "onClick:row" | "onContextmenu:row" | "onDblclick:row" | "onUpdate:selectAll" | "onItem:selected" | "onItem:unselected"> & ({
|
|
15
|
+
selectAll?: boolean;
|
|
16
|
+
} & Omit<BbTableProps<Item>, "columns"> & {
|
|
17
|
+
columns: (Omit<BbTableColumn<Item>, "key"> & {
|
|
18
|
+
key: T;
|
|
19
|
+
})[];
|
|
20
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
15
21
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
16
22
|
attrs: any;
|
|
17
23
|
slots: Readonly<{
|
|
@@ -42,6 +48,15 @@ declare const _default: <T extends string, Item extends object = any>(__VLS_prop
|
|
|
42
48
|
inputName: string;
|
|
43
49
|
readonly: boolean;
|
|
44
50
|
}) => any) | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
[key: string]: (props: {
|
|
53
|
+
classes?: Classes[];
|
|
54
|
+
content?: any;
|
|
55
|
+
item: Item;
|
|
56
|
+
value?: any;
|
|
57
|
+
items?: Item[] | undefined;
|
|
58
|
+
label?: string;
|
|
59
|
+
}) => any;
|
|
45
60
|
} & { [K in ColumnName<T>]?: ((props: {
|
|
46
61
|
classes?: Classes[];
|
|
47
62
|
content?: any;
|
|
@@ -50,7 +65,7 @@ declare const _default: <T extends string, Item extends object = any>(__VLS_prop
|
|
|
50
65
|
}) => any) | undefined; } & { [K_1 in `header:${ColumnName<T>}`]?: ((props: {
|
|
51
66
|
classes?: Classes[];
|
|
52
67
|
content?: any;
|
|
53
|
-
items?: Item[]
|
|
68
|
+
items?: Item[];
|
|
54
69
|
label?: string;
|
|
55
70
|
}) => any) | undefined; }> & {
|
|
56
71
|
thead?: (props: object) => any;
|
|
@@ -80,6 +95,15 @@ declare const _default: <T extends string, Item extends object = any>(__VLS_prop
|
|
|
80
95
|
inputName: string;
|
|
81
96
|
readonly: boolean;
|
|
82
97
|
}) => any) | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
[key: string]: (props: {
|
|
100
|
+
classes?: Classes[];
|
|
101
|
+
content?: any;
|
|
102
|
+
item: Item;
|
|
103
|
+
value?: any;
|
|
104
|
+
items?: Item[] | undefined;
|
|
105
|
+
label?: string;
|
|
106
|
+
}) => any;
|
|
83
107
|
} & { [K in ColumnName<T>]?: ((props: {
|
|
84
108
|
classes?: Classes[];
|
|
85
109
|
content?: any;
|
|
@@ -88,10 +112,10 @@ declare const _default: <T extends string, Item extends object = any>(__VLS_prop
|
|
|
88
112
|
}) => any) | undefined; } & { [K_1 in `header:${ColumnName<T>}`]?: ((props: {
|
|
89
113
|
classes?: Classes[];
|
|
90
114
|
content?: any;
|
|
91
|
-
items?: Item[]
|
|
115
|
+
items?: Item[];
|
|
92
116
|
label?: string;
|
|
93
117
|
}) => any) | undefined; };
|
|
94
|
-
emit: BbTableEvents;
|
|
118
|
+
emit: BbTableEvents & ((evt: "update:selectAll", value: boolean) => void);
|
|
95
119
|
}>) => import('vue').VNode & {
|
|
96
120
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
97
121
|
};
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import { Classes } from '../../types/Classes';
|
|
2
2
|
import { Option } from '../../types/Option';
|
|
3
3
|
import { InputHTMLAttributes } from 'vue';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Recursively builds dot-notation paths from a type's keys.
|
|
6
|
+
* Depth-limited to 3 levels to avoid compiler performance issues.
|
|
7
|
+
*/
|
|
8
|
+
type NestedPaths<T, Depth extends unknown[] = []> = Depth['length'] extends 3 ? never : 0 extends 1 & T ? string : T extends object ? T extends any[] | Date | Function | RegExp | Map<any, any> | Set<any> ? never : {
|
|
9
|
+
[K in Extract<keyof T, string>]: K | `${K}.${NestedPaths<NonNullable<T[K]>, [...Depth, unknown]>}`;
|
|
10
|
+
}[Extract<keyof T, string>] : never;
|
|
11
|
+
/**
|
|
12
|
+
* Suggested keys for a column derived from an Item type.
|
|
13
|
+
* Provides autocomplete for nested dot-notation paths (up to 3 levels)
|
|
14
|
+
* while still allowing arbitrary string keys for virtual columns.
|
|
15
|
+
*/
|
|
16
|
+
export type ItemKey<Item = any> = NestedPaths<Item> | (string & {});
|
|
17
|
+
/**
|
|
18
|
+
* Skeleton placeholder style for the loading state.
|
|
19
|
+
* Matches the expected content type for a better loading experience.
|
|
20
|
+
*/
|
|
21
|
+
export type SkeletonType = 'text' | 'avatar' | 'avatar-text' | 'image' | 'badge';
|
|
22
|
+
export type BaseColumn<Item = any> = {
|
|
5
23
|
/**
|
|
6
24
|
* When set to false the formatter will not run on nullish values.
|
|
7
25
|
* By default is true so you can create virtual columns with keys that do not
|
|
@@ -19,7 +37,7 @@ export type BaseColumn<T extends string, Item extends object> = {
|
|
|
19
37
|
/**
|
|
20
38
|
* Key identifying the column.
|
|
21
39
|
*/
|
|
22
|
-
key:
|
|
40
|
+
key: ItemKey<Item>;
|
|
23
41
|
/**
|
|
24
42
|
* Text used in the header for this column.
|
|
25
43
|
*/
|
|
@@ -30,13 +48,17 @@ export type BaseColumn<T extends string, Item extends object> = {
|
|
|
30
48
|
placeholder?: string;
|
|
31
49
|
};
|
|
32
50
|
/**
|
|
33
|
-
*
|
|
51
|
+
* Column definition for BbTable. Controls data extraction, formatting, alignment, and styling.
|
|
34
52
|
*/
|
|
35
|
-
export type BbTableColumn<
|
|
53
|
+
export type BbTableColumn<Item = any> = BaseColumn<Item> & {
|
|
36
54
|
/**
|
|
37
55
|
* Text alignment of the column.
|
|
38
56
|
*/
|
|
39
57
|
align?: 'left' | 'right' | 'center';
|
|
58
|
+
/**
|
|
59
|
+
* Skeleton placeholder style shown during loading. Defaults to `'text'`.
|
|
60
|
+
*/
|
|
61
|
+
skeleton?: SkeletonType;
|
|
40
62
|
/**
|
|
41
63
|
* Defines the sorting direction of the column.
|
|
42
64
|
*/
|
|
@@ -50,12 +72,12 @@ export type BbTableColumn<T extends string = string, Item extends object = any>
|
|
|
50
72
|
*/
|
|
51
73
|
thClass?: Classes;
|
|
52
74
|
};
|
|
53
|
-
export type BbTableProps<
|
|
75
|
+
export type BbTableProps<Item = any> = {
|
|
54
76
|
/**
|
|
55
77
|
* Function that accepts the columns and the current item as
|
|
56
78
|
* arguments and returns a label to be used for accessibility purposes.
|
|
57
79
|
*/
|
|
58
|
-
accessibleLabel?: (columns: MappedCell
|
|
80
|
+
accessibleLabel?: (columns: MappedCell[], item: any) => string;
|
|
59
81
|
/**
|
|
60
82
|
* Displays the actions column.
|
|
61
83
|
*/
|
|
@@ -80,7 +102,7 @@ export type BbTableProps<T extends string, Item extends object> = {
|
|
|
80
102
|
* Array of definitions of how the columns should be rendered.
|
|
81
103
|
*
|
|
82
104
|
*/
|
|
83
|
-
columns: BbTableColumn<
|
|
105
|
+
columns: BbTableColumn<Item>[];
|
|
84
106
|
/**
|
|
85
107
|
* Adds a CSS class that applies a compact style to the component.
|
|
86
108
|
*/
|
|
@@ -155,11 +177,11 @@ export type BbTableProps<T extends string, Item extends object> = {
|
|
|
155
177
|
*/
|
|
156
178
|
noDataText?: string;
|
|
157
179
|
/**
|
|
158
|
-
* Current page number starting from 1
|
|
180
|
+
* Current page number starting from 1, used for accessibility purposes.
|
|
159
181
|
*/
|
|
160
182
|
page?: number;
|
|
161
183
|
/**
|
|
162
|
-
* Number of items per page.
|
|
184
|
+
* Number of items per page, used for accessibility purposes.
|
|
163
185
|
*/
|
|
164
186
|
perPage?: number;
|
|
165
187
|
/**
|
|
@@ -204,40 +226,40 @@ export type BbTableProps<T extends string, Item extends object> = {
|
|
|
204
226
|
/**
|
|
205
227
|
* We allow table data classes to be a function so it can depend on the item
|
|
206
228
|
*/
|
|
207
|
-
export type ColumnClasses<Item
|
|
229
|
+
export type ColumnClasses<Item = any> = Classes | ((content: any, key: string, item: Item) => Classes);
|
|
208
230
|
/**
|
|
209
231
|
* Projection that represents a row of cells with flags
|
|
210
232
|
* linked to the state of the item
|
|
211
233
|
*/
|
|
212
|
-
export type MappedItem
|
|
234
|
+
export type MappedItem = Option & {
|
|
213
235
|
accessibleLabel: string;
|
|
214
|
-
cols: MappedCell
|
|
236
|
+
cols: MappedCell[];
|
|
215
237
|
onRowClick: (event: MouseEvent) => void;
|
|
216
238
|
onRowContextMenu: (event: MouseEvent) => void;
|
|
217
239
|
onRowDblClick: (event: MouseEvent) => void;
|
|
218
240
|
rowIndex: number | undefined;
|
|
219
241
|
};
|
|
220
242
|
/**
|
|
221
|
-
* Projection that
|
|
243
|
+
* Projection that represents a header
|
|
222
244
|
*/
|
|
223
|
-
export type MappedHeader
|
|
245
|
+
export type MappedHeader = {
|
|
224
246
|
align: HTMLTableCellElement['align'];
|
|
225
|
-
classes?: Classes
|
|
247
|
+
classes?: Classes;
|
|
226
248
|
key: string;
|
|
227
249
|
label: string;
|
|
228
|
-
slotName:
|
|
250
|
+
slotName: string;
|
|
229
251
|
sortDirection?: 'ascending' | 'descending';
|
|
230
252
|
};
|
|
231
253
|
/**
|
|
232
|
-
* Projection that represents a cell of data.
|
|
254
|
+
* Projection that represents a cell of data for display.
|
|
233
255
|
*/
|
|
234
|
-
export type MappedCell
|
|
256
|
+
export type MappedCell = {
|
|
235
257
|
align: string;
|
|
236
|
-
classes: Classes
|
|
237
|
-
content:
|
|
258
|
+
classes: Classes;
|
|
259
|
+
content: any;
|
|
238
260
|
key: string;
|
|
239
261
|
label: string;
|
|
240
|
-
slotName:
|
|
262
|
+
slotName: string;
|
|
241
263
|
};
|
|
242
264
|
export type BbTableEvents = {
|
|
243
265
|
(e: 'click:row', event: MouseEvent, item: any, selected: boolean): void;
|
|
@@ -249,7 +271,7 @@ export type BbTableEvents = {
|
|
|
249
271
|
(e: 'item:selected', value: any): void;
|
|
250
272
|
(e: 'item:unselected', value: any): void;
|
|
251
273
|
};
|
|
252
|
-
export type BbTableSlots<
|
|
274
|
+
export type BbTableSlots<Item = any> = {
|
|
253
275
|
thead?: (props: object) => any;
|
|
254
276
|
tbody?: (props: object) => any;
|
|
255
277
|
tfoot?: (props: object) => any;
|
|
@@ -278,17 +300,13 @@ export type BbTableSlots<DynamicBodySlots extends string, DynamicHeaderSlots ext
|
|
|
278
300
|
readonly: boolean;
|
|
279
301
|
}) => any;
|
|
280
302
|
} & {
|
|
281
|
-
[
|
|
303
|
+
[key: string]: (props: {
|
|
282
304
|
classes?: Classes[];
|
|
283
305
|
content?: any;
|
|
284
306
|
item: Item;
|
|
285
307
|
value?: any;
|
|
286
|
-
}) => any;
|
|
287
|
-
} & {
|
|
288
|
-
[K in DynamicHeaderSlots]?: (props: {
|
|
289
|
-
classes?: Classes[];
|
|
290
|
-
content?: any;
|
|
291
308
|
items?: Item[];
|
|
292
309
|
label?: string;
|
|
293
310
|
}) => any;
|
|
294
311
|
};
|
|
312
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Classes } from '../../types/Classes';
|
|
2
|
+
import { ColumnClasses } from './types';
|
|
3
|
+
export type FixedColumnConfig = number | {
|
|
4
|
+
index: number;
|
|
5
|
+
position: 'left' | 'right';
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Applies sticky positioning to fixed table columns.
|
|
9
|
+
* Call after DOM updates (e.g. in watch with flush: 'post') to read layout.
|
|
10
|
+
*/
|
|
11
|
+
export declare const applyFixedTableColumns: (container: HTMLElement, fixedColumns: FixedColumnConfig[]) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a column key (e.g. "address.nested.value") to a slot-safe name (e.g. "address_nested_value").
|
|
14
|
+
*/
|
|
15
|
+
export declare const columnKeyToSlotName: (key: string) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Merges base classes with optional global and column-specific Classes (static only for headers).
|
|
18
|
+
*/
|
|
19
|
+
export declare const mergeHeaderClasses: (base: Classes, global?: Classes, column?: Classes) => Classes;
|
|
20
|
+
/**
|
|
21
|
+
* Merges base classes with optional global and column-specific ColumnClasses (supports functions for td).
|
|
22
|
+
*/
|
|
23
|
+
export declare const mergeCellClasses: (base: Classes, global?: ColumnClasses, column?: ColumnClasses, content?: any, key?: string, item?: any) => Classes;
|
|
@@ -3,12 +3,14 @@ import { locales } from '../i18n';
|
|
|
3
3
|
type Config = {
|
|
4
4
|
inertiaLinkName: string;
|
|
5
5
|
nuxtLinkName: string;
|
|
6
|
+
linkActiveClass: string;
|
|
7
|
+
linkExactActiveClass: string;
|
|
6
8
|
mobileMaxWidth: number;
|
|
7
9
|
locale: keyof typeof locales;
|
|
8
10
|
dialogDefaultSizes: Sizes;
|
|
9
11
|
offCanvasDefaultSizes: Sizes;
|
|
10
12
|
};
|
|
11
|
-
type EditableConfig = Pick<Config, 'inertiaLinkName' | 'nuxtLinkName' | 'locale' | 'mobileMaxWidth'> & {
|
|
13
|
+
type EditableConfig = Pick<Config, 'inertiaLinkName' | 'nuxtLinkName' | 'linkActiveClass' | 'linkExactActiveClass' | 'locale' | 'mobileMaxWidth'> & {
|
|
12
14
|
dialogDefaultSizes: Partial<Config['dialogDefaultSizes']>;
|
|
13
15
|
offCanvasDefaultSizes: Partial<Config['offCanvasDefaultSizes']>;
|
|
14
16
|
};
|
|
@@ -16,6 +18,8 @@ export declare const _config: {
|
|
|
16
18
|
[x: string]: any;
|
|
17
19
|
inertiaLinkName: string;
|
|
18
20
|
nuxtLinkName: string;
|
|
21
|
+
linkActiveClass: string;
|
|
22
|
+
linkExactActiveClass: string;
|
|
19
23
|
mobileMaxWidth: number;
|
|
20
24
|
locale: keyof typeof locales;
|
|
21
25
|
dialogDefaultSizes: {
|