@shwfed/nuxt 0.7.9 → 0.7.11
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/module.json +1 -1
- package/dist/runtime/components/app.d.vue.ts +7 -56
- package/dist/runtime/components/app.vue +17 -404
- package/dist/runtime/components/app.vue.d.ts +7 -56
- package/dist/runtime/components/fields.d.vue.ts +154 -132
- package/dist/runtime/components/fields.vue +30 -295
- package/dist/runtime/components/fields.vue.d.ts +154 -132
- package/dist/runtime/components/table.d.vue.ts +129 -59
- package/dist/runtime/components/table.vue +51 -617
- package/dist/runtime/components/table.vue.d.ts +129 -59
- package/dist/runtime/components/ui/app/App.d.vue.ts +86 -0
- package/dist/runtime/components/ui/app/App.vue +414 -0
- package/dist/runtime/components/ui/app/App.vue.d.ts +86 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +6 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +30 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +87 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +30 -0
- package/dist/runtime/components/ui/expression-editor/index.d.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/index.js +1 -0
- package/dist/runtime/components/ui/field/FieldContent.vue +1 -1
- package/dist/runtime/components/ui/field/FieldError.vue +2 -2
- package/dist/runtime/components/ui/field/FieldLabel.vue +1 -1
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +376 -0
- package/dist/runtime/components/ui/fields/Fields.vue +441 -0
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +376 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +163 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +363 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +163 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.d.vue.ts +15 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue +178 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue.d.ts +15 -0
- package/dist/runtime/components/ui/icon-picker/index.d.ts +1 -0
- package/dist/runtime/components/ui/icon-picker/index.js +1 -0
- package/dist/runtime/components/ui/input/Input.d.vue.ts +1 -0
- package/dist/runtime/components/ui/input/Input.vue +2 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +1 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +4 -1
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.d.vue.ts +8 -3
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue +8 -3
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue.d.ts +8 -3
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.d.vue.ts +8 -1
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue +11 -2
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue.d.ts +8 -1
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +1 -1
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.d.vue.ts +5 -2
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue +10 -4
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue.d.ts +5 -2
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +1 -1
- package/dist/runtime/components/ui/input-group/index.js +1 -1
- package/dist/runtime/components/ui/locale/Locale.d.vue.ts +20 -0
- package/dist/runtime/components/ui/locale/Locale.vue +291 -0
- package/dist/runtime/components/ui/locale/Locale.vue.d.ts +20 -0
- package/dist/runtime/components/ui/locale/index.d.ts +1 -0
- package/dist/runtime/components/ui/locale/index.js +1 -0
- package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +1 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +1 -0
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +4 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +1 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +1 -1
- package/dist/runtime/components/ui/switch/Switch.vue +2 -2
- package/dist/runtime/components/ui/table/Table.d.vue.ts +147 -0
- package/dist/runtime/components/ui/table/Table.vue +952 -0
- package/dist/runtime/components/ui/table/Table.vue.d.ts +147 -0
- package/dist/runtime/components/ui/table/schema.d.ts +151 -0
- package/dist/runtime/components/ui/table/schema.js +142 -0
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.d.vue.ts +128 -0
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue +2719 -0
- package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue.d.ts +128 -0
- package/dist/runtime/components/ui/table-configurator/menu.d.ts +37 -0
- package/dist/runtime/components/ui/table-configurator/menu.js +227 -0
- package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +24 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +30 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +24 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +25 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +27 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +1 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +4 -2
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +34 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue +32 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +34 -0
- package/dist/runtime/components/ui/toggle/index.d.ts +7 -0
- package/dist/runtime/components/ui/toggle/index.js +22 -0
- package/dist/runtime/composables/useTableRenderers.d.ts +2 -1
- package/dist/runtime/composables/useTableRenderers.js +2 -1
- package/dist/runtime/plugins/toast/index.d.ts +2 -2
- package/dist/runtime/style.css +1 -1
- package/dist/runtime/table-renderers/builtins.js +328 -137
- package/dist/runtime/table-renderers/registry.d.ts +2 -1
- package/dist/runtime/table-renderers/registry.js +3 -0
- package/dist/runtime/utils/coders.d.ts +29 -2
- package/dist/runtime/utils/coders.js +40 -2
- package/package.json +8 -6
- /package/dist/runtime/components/{logo.d.vue.ts → ui/logo/Logo.d.vue.ts} +0 -0
- /package/dist/runtime/components/{logo.vue → ui/logo/Logo.vue} +0 -0
- /package/dist/runtime/components/{logo.vue.d.ts → ui/logo/Logo.vue.d.ts} +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { type CellContext } from '@tanstack/vue-table';
|
|
2
|
+
import { Effect } from 'effect';
|
|
3
|
+
import { type TableConfig } from './schema.js';
|
|
4
|
+
export type { Accessor, Column, Expression, Markdown, Render, TableConfig } from './schema.js';
|
|
5
|
+
export { AccessorC, ColumnC, RenderC, TableConfigC } from './schema.js';
|
|
6
|
+
declare module '@tanstack/vue-table' {
|
|
7
|
+
interface ColumnMeta<TData extends import('@tanstack/vue-table').RowData, TValue> {
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
grow?: boolean;
|
|
10
|
+
accessor?: import('./schema').Accessor;
|
|
11
|
+
__types?: [TData, TValue];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
17
|
+
config: Effect.Effect<TableConfig>;
|
|
18
|
+
data: Array<unknown>;
|
|
19
|
+
rowCount?: number;
|
|
20
|
+
}, import("@tanstack/table-core").Table<unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:config": (args_0: Readonly<{
|
|
22
|
+
getRowId?: import("./schema.js").Expression;
|
|
23
|
+
getSubRows?: import("./schema.js").Expression;
|
|
24
|
+
enableRowSelection?: import("./schema.js").Expression;
|
|
25
|
+
enableMultiRowSelection?: import("./schema.js").Expression;
|
|
26
|
+
columns: readonly Readonly<{
|
|
27
|
+
id?: string;
|
|
28
|
+
title?: import("../../../utils/coders.js").LocaleValue;
|
|
29
|
+
accessor?: import("./schema.js").Accessor;
|
|
30
|
+
renderer?: import("./schema.js").Render;
|
|
31
|
+
tooltip?: import("../../../utils/coders.js").LocaleValue;
|
|
32
|
+
size?: number;
|
|
33
|
+
enableSorting?: boolean;
|
|
34
|
+
enableMultiSorting?: boolean;
|
|
35
|
+
enablePinning?: boolean;
|
|
36
|
+
columns?: readonly Readonly</*elided*/ any>[];
|
|
37
|
+
grow?: boolean;
|
|
38
|
+
}>[];
|
|
39
|
+
cellStyles?: import("./schema.js").Expression;
|
|
40
|
+
props?: Readonly<{
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
initialState?: Readonly<{
|
|
43
|
+
columnVisibility?: Record<string, boolean>;
|
|
44
|
+
columnOrder?: ReadonlyArray<string>;
|
|
45
|
+
columnPinning?: Readonly<{
|
|
46
|
+
left?: ReadonlyArray<string>;
|
|
47
|
+
right?: ReadonlyArray<string>;
|
|
48
|
+
}>;
|
|
49
|
+
rowPinning?: Readonly<{
|
|
50
|
+
top?: ReadonlyArray<string>;
|
|
51
|
+
bottom?: ReadonlyArray<string>;
|
|
52
|
+
}>;
|
|
53
|
+
columnFilters?: ReadonlyArray<Readonly<{
|
|
54
|
+
id: string;
|
|
55
|
+
value: unknown;
|
|
56
|
+
}>>;
|
|
57
|
+
globalFilter?: unknown;
|
|
58
|
+
sorting?: ReadonlyArray<Readonly<{
|
|
59
|
+
id: string;
|
|
60
|
+
desc: boolean;
|
|
61
|
+
}>>;
|
|
62
|
+
expanded?: boolean | Record<string, boolean>;
|
|
63
|
+
grouping?: ReadonlyArray<string>;
|
|
64
|
+
columnSizing?: Record<string, number>;
|
|
65
|
+
columnSizingInfo?: Record<string, unknown>;
|
|
66
|
+
pagination?: Readonly<{
|
|
67
|
+
pageIndex?: number;
|
|
68
|
+
pageSize?: number;
|
|
69
|
+
}>;
|
|
70
|
+
rowSelection?: Record<string, boolean>;
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
73
|
+
paginationLeft?: import("./schema.js").Markdown;
|
|
74
|
+
paginationRight?: import("./schema.js").Markdown;
|
|
75
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
76
|
+
}>) => any;
|
|
77
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
78
|
+
config: Effect.Effect<TableConfig>;
|
|
79
|
+
data: Array<unknown>;
|
|
80
|
+
rowCount?: number;
|
|
81
|
+
}> & Readonly<{
|
|
82
|
+
"onUpdate:config"?: ((args_0: Readonly<{
|
|
83
|
+
getRowId?: import("./schema.js").Expression;
|
|
84
|
+
getSubRows?: import("./schema.js").Expression;
|
|
85
|
+
enableRowSelection?: import("./schema.js").Expression;
|
|
86
|
+
enableMultiRowSelection?: import("./schema.js").Expression;
|
|
87
|
+
columns: readonly Readonly<{
|
|
88
|
+
id?: string;
|
|
89
|
+
title?: import("../../../utils/coders.js").LocaleValue;
|
|
90
|
+
accessor?: import("./schema.js").Accessor;
|
|
91
|
+
renderer?: import("./schema.js").Render;
|
|
92
|
+
tooltip?: import("../../../utils/coders.js").LocaleValue;
|
|
93
|
+
size?: number;
|
|
94
|
+
enableSorting?: boolean;
|
|
95
|
+
enableMultiSorting?: boolean;
|
|
96
|
+
enablePinning?: boolean;
|
|
97
|
+
columns?: readonly Readonly</*elided*/ any>[];
|
|
98
|
+
grow?: boolean;
|
|
99
|
+
}>[];
|
|
100
|
+
cellStyles?: import("./schema.js").Expression;
|
|
101
|
+
props?: Readonly<{
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
initialState?: Readonly<{
|
|
104
|
+
columnVisibility?: Record<string, boolean>;
|
|
105
|
+
columnOrder?: ReadonlyArray<string>;
|
|
106
|
+
columnPinning?: Readonly<{
|
|
107
|
+
left?: ReadonlyArray<string>;
|
|
108
|
+
right?: ReadonlyArray<string>;
|
|
109
|
+
}>;
|
|
110
|
+
rowPinning?: Readonly<{
|
|
111
|
+
top?: ReadonlyArray<string>;
|
|
112
|
+
bottom?: ReadonlyArray<string>;
|
|
113
|
+
}>;
|
|
114
|
+
columnFilters?: ReadonlyArray<Readonly<{
|
|
115
|
+
id: string;
|
|
116
|
+
value: unknown;
|
|
117
|
+
}>>;
|
|
118
|
+
globalFilter?: unknown;
|
|
119
|
+
sorting?: ReadonlyArray<Readonly<{
|
|
120
|
+
id: string;
|
|
121
|
+
desc: boolean;
|
|
122
|
+
}>>;
|
|
123
|
+
expanded?: boolean | Record<string, boolean>;
|
|
124
|
+
grouping?: ReadonlyArray<string>;
|
|
125
|
+
columnSizing?: Record<string, number>;
|
|
126
|
+
columnSizingInfo?: Record<string, unknown>;
|
|
127
|
+
pagination?: Readonly<{
|
|
128
|
+
pageIndex?: number;
|
|
129
|
+
pageSize?: number;
|
|
130
|
+
}>;
|
|
131
|
+
rowSelection?: Record<string, boolean>;
|
|
132
|
+
}>;
|
|
133
|
+
}>;
|
|
134
|
+
paginationLeft?: import("./schema.js").Markdown;
|
|
135
|
+
paginationRight?: import("./schema.js").Markdown;
|
|
136
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
137
|
+
}>) => any) | undefined;
|
|
138
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
139
|
+
[key: string]: (props: Readonly<{
|
|
140
|
+
cell: CellContext<unknown, unknown>;
|
|
141
|
+
}>) => void;
|
|
142
|
+
}>;
|
|
143
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
144
|
+
new (): {
|
|
145
|
+
$slots: S;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import type { LocaleValue } from '../../../utils/coders.js';
|
|
3
|
+
export type Expression = string;
|
|
4
|
+
export type Markdown = string;
|
|
5
|
+
export type Render = string | Readonly<{
|
|
6
|
+
id: string;
|
|
7
|
+
props: unknown;
|
|
8
|
+
}>;
|
|
9
|
+
export type Accessor = string | Readonly<{
|
|
10
|
+
read: Expression;
|
|
11
|
+
write: Expression;
|
|
12
|
+
}>;
|
|
13
|
+
export type Column = Readonly<{
|
|
14
|
+
id?: string;
|
|
15
|
+
title?: LocaleValue;
|
|
16
|
+
accessor?: Accessor;
|
|
17
|
+
renderer?: Render;
|
|
18
|
+
tooltip?: LocaleValue;
|
|
19
|
+
size?: number;
|
|
20
|
+
enableSorting?: boolean;
|
|
21
|
+
enableMultiSorting?: boolean;
|
|
22
|
+
enablePinning?: boolean;
|
|
23
|
+
columns?: ReadonlyArray<Column>;
|
|
24
|
+
grow?: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
type TableInitialState = Readonly<{
|
|
27
|
+
columnVisibility?: Record<string, boolean>;
|
|
28
|
+
columnOrder?: ReadonlyArray<string>;
|
|
29
|
+
columnPinning?: Readonly<{
|
|
30
|
+
left?: ReadonlyArray<string>;
|
|
31
|
+
right?: ReadonlyArray<string>;
|
|
32
|
+
}>;
|
|
33
|
+
rowPinning?: Readonly<{
|
|
34
|
+
top?: ReadonlyArray<string>;
|
|
35
|
+
bottom?: ReadonlyArray<string>;
|
|
36
|
+
}>;
|
|
37
|
+
columnFilters?: ReadonlyArray<Readonly<{
|
|
38
|
+
id: string;
|
|
39
|
+
value: unknown;
|
|
40
|
+
}>>;
|
|
41
|
+
globalFilter?: unknown;
|
|
42
|
+
sorting?: ReadonlyArray<Readonly<{
|
|
43
|
+
id: string;
|
|
44
|
+
desc: boolean;
|
|
45
|
+
}>>;
|
|
46
|
+
expanded?: boolean | Record<string, boolean>;
|
|
47
|
+
grouping?: ReadonlyArray<string>;
|
|
48
|
+
columnSizing?: Record<string, number>;
|
|
49
|
+
columnSizingInfo?: Record<string, unknown>;
|
|
50
|
+
pagination?: Readonly<{
|
|
51
|
+
pageIndex?: number;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
}>;
|
|
54
|
+
rowSelection?: Record<string, boolean>;
|
|
55
|
+
}>;
|
|
56
|
+
export type TableProps = Readonly<{
|
|
57
|
+
initialState?: TableInitialState;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const RenderC: z.ZodType<Render>;
|
|
61
|
+
export declare const AccessorC: z.ZodType<Accessor>;
|
|
62
|
+
export declare const ColumnC: z.ZodType<Column>;
|
|
63
|
+
export type TableConfig = Readonly<{
|
|
64
|
+
getRowId?: Expression;
|
|
65
|
+
getSubRows?: Expression;
|
|
66
|
+
enableRowSelection?: Expression;
|
|
67
|
+
enableMultiRowSelection?: Expression;
|
|
68
|
+
columns: ReadonlyArray<Column>;
|
|
69
|
+
cellStyles?: Expression;
|
|
70
|
+
props?: TableProps;
|
|
71
|
+
paginationLeft?: Markdown;
|
|
72
|
+
paginationRight?: Markdown;
|
|
73
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const TableConfigGetRowIdC: z.ZodOptional<z.ZodString>;
|
|
76
|
+
export declare const TableConfigGetSubRowsC: z.ZodOptional<z.ZodString>;
|
|
77
|
+
export declare const TableConfigEnableRowSelectionC: z.ZodOptional<z.ZodString>;
|
|
78
|
+
export declare const TableConfigEnableMultiRowSelectionC: z.ZodOptional<z.ZodString>;
|
|
79
|
+
export declare const TableConfigCellStylesC: z.ZodOptional<z.ZodString>;
|
|
80
|
+
export declare function normalizePaginationPageSizes(value: ReadonlyArray<number> | undefined): Array<number> | undefined;
|
|
81
|
+
export declare function resolvePaginationPageSize(pageSize: number | undefined, paginationPageSizes: ReadonlyArray<number> | undefined): number | undefined;
|
|
82
|
+
export declare const TableConfigPaginationPageSizesC: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
83
|
+
export declare const TableConfigC: z.ZodReadonly<z.ZodObject<{
|
|
84
|
+
getRowId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
getSubRows: z.ZodOptional<z.ZodString>;
|
|
86
|
+
enableRowSelection: z.ZodOptional<z.ZodString>;
|
|
87
|
+
enableMultiRowSelection: z.ZodOptional<z.ZodString>;
|
|
88
|
+
columns: z.ZodReadonly<z.ZodArray<z.ZodType<Readonly<{
|
|
89
|
+
id?: string;
|
|
90
|
+
title?: LocaleValue;
|
|
91
|
+
accessor?: Accessor;
|
|
92
|
+
renderer?: Render;
|
|
93
|
+
tooltip?: LocaleValue;
|
|
94
|
+
size?: number;
|
|
95
|
+
enableSorting?: boolean;
|
|
96
|
+
enableMultiSorting?: boolean;
|
|
97
|
+
enablePinning?: boolean;
|
|
98
|
+
columns?: ReadonlyArray<Column>;
|
|
99
|
+
grow?: boolean;
|
|
100
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
101
|
+
id?: string;
|
|
102
|
+
title?: LocaleValue;
|
|
103
|
+
accessor?: Accessor;
|
|
104
|
+
renderer?: Render;
|
|
105
|
+
tooltip?: LocaleValue;
|
|
106
|
+
size?: number;
|
|
107
|
+
enableSorting?: boolean;
|
|
108
|
+
enableMultiSorting?: boolean;
|
|
109
|
+
enablePinning?: boolean;
|
|
110
|
+
columns?: ReadonlyArray<Column>;
|
|
111
|
+
grow?: boolean;
|
|
112
|
+
}>, unknown>>>>;
|
|
113
|
+
cellStyles: z.ZodOptional<z.ZodString>;
|
|
114
|
+
props: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
initialState: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
116
|
+
columnVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
117
|
+
columnOrder: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
118
|
+
columnPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
119
|
+
left: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
120
|
+
right: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
rowPinning: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
123
|
+
top: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
124
|
+
bottom: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
columnFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
value: z.ZodUnknown;
|
|
129
|
+
}, z.core.$strip>>>>>;
|
|
130
|
+
globalFilter: z.ZodOptional<z.ZodUnknown>;
|
|
131
|
+
sorting: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
desc: z.ZodBoolean;
|
|
134
|
+
}, z.core.$strip>>>>>;
|
|
135
|
+
expanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
|
|
136
|
+
grouping: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
137
|
+
columnSizing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
138
|
+
columnSizingInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
139
|
+
pagination: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
140
|
+
pageIndex: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strip>>>;
|
|
143
|
+
rowSelection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
145
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
146
|
+
paginationLeft: z.ZodOptional<z.ZodString>;
|
|
147
|
+
paginationRight: z.ZodOptional<z.ZodString>;
|
|
148
|
+
paginationPageSizes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
export declare function getColumnTechnicalKey(column: Column): string | undefined;
|
|
151
|
+
export {};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { dotPropC, expressionC, localeC } from "../../../utils/coders.js";
|
|
3
|
+
export const RenderC = z.union([
|
|
4
|
+
z.string().describe("\u6E32\u67D3\u5668 ID\uFF0C\u4F8B\u5982 table.renderer.text\u3002"),
|
|
5
|
+
z.object({
|
|
6
|
+
id: z.string().describe("\u6E32\u67D3\u5668 ID\uFF0C\u4F8B\u5982 table.renderer.money\u3002"),
|
|
7
|
+
props: z.unknown().describe("\u6E32\u67D3\u5668\u914D\u7F6E\u9879\u3002\u5177\u4F53\u7ED3\u6784\u53D6\u51B3\u4E8E\u5BF9\u5E94 renderer \u7684 options schema\u3002")
|
|
8
|
+
}).readonly().describe("\u5E26\u81EA\u5B9A\u4E49\u914D\u7F6E\u9879\u7684\u6E32\u67D3\u5668\u5B9A\u4E49\u3002")
|
|
9
|
+
]).describe("\u5217\u6E32\u67D3\u5668\u914D\u7F6E\u3002\u5B57\u7B26\u4E32\u5F62\u5F0F\u4F7F\u7528\u9ED8\u8BA4\u9009\u9879\uFF1B\u5BF9\u8C61\u5F62\u5F0F\u5141\u8BB8\u4F20\u5165 renderer.props\u3002");
|
|
10
|
+
export const AccessorC = z.union([
|
|
11
|
+
dotPropC,
|
|
12
|
+
z.object({
|
|
13
|
+
read: expressionC(/.+/, { row: "dyn", index: "int" }).describe("\u8BFB\u53D6\u5217\u503C\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3002"),
|
|
14
|
+
write: z.string().describe("\u5199\u56DE\u5217\u503C\u65F6\u4F7F\u7528\u7684\u8868\u8FBE\u5F0F\u3002\u901A\u5E38\u4E0E dot-prop \u8DEF\u5F84\u6216\u540E\u7AEF\u5B57\u6BB5\u540D\u5BF9\u5E94\u3002")
|
|
15
|
+
}).readonly().describe("\u4F7F\u7528 CEL \u663E\u5F0F\u58F0\u660E\u8BFB\u5199\u903B\u8F91\u7684\u53D6\u503C\u914D\u7F6E\u3002")
|
|
16
|
+
]).describe("\u5217\u53D6\u503C\u914D\u7F6E\u3002\u5B57\u7B26\u4E32\u5F62\u5F0F\u4F7F\u7528 dot-prop \u8DEF\u5F84\uFF1B\u5BF9\u8C61\u5F62\u5F0F\u4F7F\u7528 CEL \u8BFB\u5199\u8868\u8FBE\u5F0F\u3002");
|
|
17
|
+
export const ColumnC = z.object({
|
|
18
|
+
id: z.string().optional().describe("\u5217\u552F\u4E00\u6807\u8BC6\u3002\u6D89\u53CA\u6392\u5E8F\u3001\u56FA\u5B9A\u3001\u521D\u59CB\u72B6\u6001\u7B49\u7A33\u5B9A\u5F15\u7528\u65F6\u5EFA\u8BAE\u663E\u5F0F\u8BBE\u7F6E\u3002"),
|
|
19
|
+
title: localeC.optional().describe("\u5217\u6807\u9898\u7684\u672C\u5730\u5316\u5185\u5BB9\u3002"),
|
|
20
|
+
accessor: AccessorC.optional(),
|
|
21
|
+
renderer: RenderC.optional(),
|
|
22
|
+
tooltip: localeC.optional().describe("\u5217\u5934\u63D0\u793A\u7684\u672C\u5730\u5316\u5185\u5BB9\uFF0C\u652F\u6301 Markdown \u6E32\u67D3\u3002"),
|
|
23
|
+
size: z.number().optional().describe("\u5217\u5BBD\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20\u3002"),
|
|
24
|
+
enableSorting: z.boolean().optional().describe("\u662F\u5426\u5141\u8BB8\u5BF9\u8BE5\u5217\u6392\u5E8F\u3002"),
|
|
25
|
+
enableMultiSorting: z.boolean().optional().describe("\u662F\u5426\u5141\u8BB8\u8BE5\u5217\u53C2\u4E0E\u591A\u5217\u6392\u5E8F\u3002"),
|
|
26
|
+
enablePinning: z.boolean().optional().describe("\u662F\u5426\u5141\u8BB8\u8BE5\u5217\u88AB\u56FA\u5B9A\u5230\u5DE6\u53F3\u4E24\u4FA7\u3002"),
|
|
27
|
+
columns: z.lazy(() => z.array(ColumnC).readonly()).optional().describe("\u5B50\u5217\u914D\u7F6E\u3002\u8BBE\u7F6E\u540E\u5F53\u524D\u5217\u4F5C\u4E3A\u5206\u7EC4\u5217\u3002"),
|
|
28
|
+
grow: z.boolean().optional().describe("\u662F\u5426\u5141\u8BB8\u8BE5\u5217\u5360\u636E\u5269\u4F59\u6C34\u5E73\u7A7A\u95F4\u3002")
|
|
29
|
+
}).strict().readonly().describe("\u8868\u683C\u5217\u914D\u7F6E\u3002\u53F6\u5B50\u5217\u8D1F\u8D23\u53D6\u503C\u548C\u6E32\u67D3\uFF1B\u542B\u6709 columns \u7684\u5217\u7528\u4E8E\u5206\u7EC4\u5C55\u793A\u3002");
|
|
30
|
+
const InitialTableColumnPinningC = z.object({
|
|
31
|
+
left: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u56FA\u5B9A\u5728\u5DE6\u4FA7\u7684\u53F6\u5B50\u5217 ID \u5217\u8868\u3002"),
|
|
32
|
+
right: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u56FA\u5B9A\u5728\u53F3\u4FA7\u7684\u53F6\u5B50\u5217 ID \u5217\u8868\u3002")
|
|
33
|
+
}).readonly().describe("\u5217\u56FA\u5B9A\u72B6\u6001\uFF0C\u6309\u53F6\u5B50\u5217 ID \u751F\u6548\u3002");
|
|
34
|
+
const InitialTableRowPinningC = z.object({
|
|
35
|
+
top: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u56FA\u5B9A\u5728\u9876\u90E8\u7684\u884C ID \u5217\u8868\u3002"),
|
|
36
|
+
bottom: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u56FA\u5B9A\u5728\u5E95\u90E8\u7684\u884C ID \u5217\u8868\u3002")
|
|
37
|
+
}).readonly().describe("\u884C\u56FA\u5B9A\u72B6\u6001\u3002");
|
|
38
|
+
const InitialTableColumnFilterC = z.object({
|
|
39
|
+
id: z.string().describe("\u88AB\u8FC7\u6EE4\u5217\u7684 ID\u3002"),
|
|
40
|
+
value: z.unknown().describe("\u8BE5\u5217\u7684\u8FC7\u6EE4\u503C\u3002\u5177\u4F53\u7ED3\u6784\u53D6\u51B3\u4E8E\u5217\u8FC7\u6EE4\u5668\u5B9E\u73B0\u3002")
|
|
41
|
+
}).readonly().describe("\u5355\u4E2A\u5217\u8FC7\u6EE4\u6761\u4EF6\u3002");
|
|
42
|
+
const InitialTableSortingItemC = z.object({
|
|
43
|
+
id: z.string().describe("\u53C2\u4E0E\u6392\u5E8F\u7684\u5217 ID\u3002"),
|
|
44
|
+
desc: z.boolean().describe("\u662F\u5426\u4E3A\u964D\u5E8F\u6392\u5E8F\u3002")
|
|
45
|
+
}).readonly().describe("\u5355\u4E2A\u6392\u5E8F\u89C4\u5219\u3002");
|
|
46
|
+
const InitialTablePaginationC = z.object({
|
|
47
|
+
pageIndex: z.number().optional().describe("\u521D\u59CB\u9875\u7801\uFF0C\u4ECE 0 \u5F00\u59CB\u3002"),
|
|
48
|
+
pageSize: z.number().optional().describe("\u521D\u59CB\u6BCF\u9875\u6761\u6570\u3002")
|
|
49
|
+
}).readonly().describe("\u521D\u59CB\u5206\u9875\u72B6\u6001\u3002");
|
|
50
|
+
const InitialTableStateC = z.object({
|
|
51
|
+
columnVisibility: z.record(z.string(), z.boolean()).optional().describe("\u5217\u663E\u793A\u72B6\u6001\uFF0Ckey \u4E3A\u5217 ID\uFF0Cvalue \u4E3A\u662F\u5426\u663E\u793A\u3002"),
|
|
52
|
+
columnOrder: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u5217\u987A\u5E8F\uFF0C\u6309\u53F6\u5B50\u5217 ID \u6392\u5217\u3002"),
|
|
53
|
+
columnPinning: InitialTableColumnPinningC.optional(),
|
|
54
|
+
rowPinning: InitialTableRowPinningC.optional(),
|
|
55
|
+
columnFilters: z.array(InitialTableColumnFilterC).readonly().optional().describe("\u521D\u59CB\u5217\u8FC7\u6EE4\u6761\u4EF6\u5217\u8868\u3002"),
|
|
56
|
+
globalFilter: z.unknown().optional().describe("\u5168\u5C40\u8FC7\u6EE4\u503C\u3002"),
|
|
57
|
+
sorting: z.array(InitialTableSortingItemC).readonly().optional().describe("\u521D\u59CB\u6392\u5E8F\u89C4\u5219\u5217\u8868\u3002"),
|
|
58
|
+
expanded: z.union([
|
|
59
|
+
z.boolean(),
|
|
60
|
+
z.record(z.string(), z.boolean())
|
|
61
|
+
]).optional().describe("\u521D\u59CB\u5C55\u5F00\u72B6\u6001\u3002true \u8868\u793A\u5168\u90E8\u5C55\u5F00\uFF1B\u5BF9\u8C61\u5F62\u5F0F\u6309\u884C ID \u63A7\u5236\u3002"),
|
|
62
|
+
grouping: z.array(z.string()).readonly().optional().describe("\u521D\u59CB\u5206\u7EC4\u5217 ID \u5217\u8868\u3002"),
|
|
63
|
+
columnSizing: z.record(z.string(), z.number()).optional().describe("\u5217\u5BBD\u72B6\u6001\uFF0Ckey \u4E3A\u5217 ID\uFF0Cvalue \u4E3A\u50CF\u7D20\u5BBD\u5EA6\u3002"),
|
|
64
|
+
columnSizingInfo: z.record(z.string(), z.unknown()).optional().describe("\u5217\u5BBD\u8C03\u6574\u8FC7\u7A0B\u4E2D\u7684\u5185\u90E8\u72B6\u6001\u3002"),
|
|
65
|
+
pagination: InitialTablePaginationC.optional(),
|
|
66
|
+
rowSelection: z.record(z.string(), z.boolean()).optional().describe("\u521D\u59CB\u884C\u9009\u62E9\u72B6\u6001\uFF0Ckey \u4E3A\u884C ID\u3002")
|
|
67
|
+
}).readonly().describe("\u8868\u683C\u521D\u59CB\u72B6\u6001\u3002\u8FD9\u91CC\u53EA\u663E\u5F0F\u6587\u6863\u5316\u7EC4\u4EF6\u4F1A\u6D88\u8D39\u548C\u900F\u4F20\u7684\u5E38\u7528\u5B57\u6BB5\u3002");
|
|
68
|
+
const TablePropsC = z.object({
|
|
69
|
+
initialState: InitialTableStateC.optional().describe("\u8868\u683C\u521D\u59CB\u72B6\u6001\u3002")
|
|
70
|
+
}).catchall(z.unknown()).optional().describe("\u900F\u4F20\u7ED9 TanStack Table \u7684\u989D\u5916 props\u3002\u9664 initialState \u5916\uFF0C\u5176\u4F59\u5B57\u6BB5\u4F1A\u539F\u6837\u4FDD\u7559\u3002");
|
|
71
|
+
export const TableConfigGetRowIdC = expressionC("string", { row: "dyn", index: "int", parent: "dyn" }).describe("\u8FD4\u56DE\u884C\u552F\u4E00 ID \u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3001parent\u3002\u5FC5\u987B\u8FD4\u56DE string\u3002").optional();
|
|
72
|
+
export const TableConfigGetSubRowsC = expressionC(/.+/, { row: "dyn", index: "int" }).describe("\u8FD4\u56DE\u5B50\u884C\u6570\u7EC4\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3002").optional();
|
|
73
|
+
export const TableConfigEnableRowSelectionC = expressionC("bool", { row: "dyn", index: "int", id: "string" }).describe("\u63A7\u5236\u5355\u884C\u662F\u5426\u53EF\u9009\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3001id\u3002\u5FC5\u987B\u8FD4\u56DE bool\u3002").optional();
|
|
74
|
+
export const TableConfigEnableMultiRowSelectionC = expressionC("bool", { row: "dyn", index: "int", id: "string" }).describe("\u63A7\u5236\u5F53\u524D\u884C\u662F\u5426\u5141\u8BB8\u53C2\u4E0E\u591A\u9009\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3001id\u3002\u5FC5\u987B\u8FD4\u56DE bool\u3002").optional();
|
|
75
|
+
export const TableConfigCellStylesC = expressionC(/^map/, {
|
|
76
|
+
row: "dyn",
|
|
77
|
+
index: "int",
|
|
78
|
+
id: "string",
|
|
79
|
+
selected: "bool",
|
|
80
|
+
pinned: "dyn"
|
|
81
|
+
}).describe("\u8FD4\u56DE\u5355\u5143\u683C\u6837\u5F0F\u5BF9\u8C61\u7684 CEL \u8868\u8FBE\u5F0F\u3002\u53EF\u7528\u53D8\u91CF\uFF1Arow\u3001index\u3001id\u3001selected\u3001pinned\u3002").optional();
|
|
82
|
+
function normalizePaginationPageSizesInput(value) {
|
|
83
|
+
if (value === void 0) {
|
|
84
|
+
return void 0;
|
|
85
|
+
}
|
|
86
|
+
if (!Array.isArray(value)) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
const normalizedValues = [];
|
|
90
|
+
for (const item of value) {
|
|
91
|
+
if (typeof item !== "number" || !Number.isInteger(item) || item <= 0 || normalizedValues.includes(item)) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
normalizedValues.push(item);
|
|
95
|
+
}
|
|
96
|
+
return normalizedValues.length > 0 ? normalizedValues : void 0;
|
|
97
|
+
}
|
|
98
|
+
export function normalizePaginationPageSizes(value) {
|
|
99
|
+
if (value === void 0) {
|
|
100
|
+
return void 0;
|
|
101
|
+
}
|
|
102
|
+
const normalized = normalizePaginationPageSizesInput(value);
|
|
103
|
+
if (!Array.isArray(normalized)) {
|
|
104
|
+
return void 0;
|
|
105
|
+
}
|
|
106
|
+
return normalized;
|
|
107
|
+
}
|
|
108
|
+
export function resolvePaginationPageSize(pageSize, paginationPageSizes) {
|
|
109
|
+
const normalizedPageSizes = normalizePaginationPageSizes(paginationPageSizes);
|
|
110
|
+
if (!normalizedPageSizes) {
|
|
111
|
+
return pageSize;
|
|
112
|
+
}
|
|
113
|
+
if (pageSize !== void 0 && normalizedPageSizes.includes(pageSize)) {
|
|
114
|
+
return pageSize;
|
|
115
|
+
}
|
|
116
|
+
return normalizedPageSizes[0];
|
|
117
|
+
}
|
|
118
|
+
export const TableConfigPaginationPageSizesC = z.preprocess(
|
|
119
|
+
normalizePaginationPageSizesInput,
|
|
120
|
+
z.array(z.number().int().positive()).readonly().optional()
|
|
121
|
+
).describe("\u53EF\u9009\u6BCF\u9875\u6761\u6570\u5217\u8868\u3002\u4F1A\u81EA\u52A8\u53BB\u91CD\u3001\u8FC7\u6EE4\u975E\u6B63\u6574\u6570\uFF0C\u5E76\u4FDD\u7559\u6700\u7EC8\u987A\u5E8F\u3002");
|
|
122
|
+
export const TableConfigC = z.object({
|
|
123
|
+
getRowId: TableConfigGetRowIdC,
|
|
124
|
+
getSubRows: TableConfigGetSubRowsC,
|
|
125
|
+
enableRowSelection: TableConfigEnableRowSelectionC,
|
|
126
|
+
enableMultiRowSelection: TableConfigEnableMultiRowSelectionC,
|
|
127
|
+
columns: z.array(ColumnC).readonly().describe("\u8868\u683C\u5217\u5B9A\u4E49\u5217\u8868\u3002"),
|
|
128
|
+
cellStyles: TableConfigCellStylesC,
|
|
129
|
+
props: TablePropsC,
|
|
130
|
+
paginationLeft: z.string().optional().describe("\u5206\u9875\u533A\u57DF\u5DE6\u4FA7\u7684 Markdown \u6587\u6848\u3002"),
|
|
131
|
+
paginationRight: z.string().optional().describe("\u5206\u9875\u533A\u57DF\u53F3\u4FA7\u7684 Markdown \u6587\u6848\u3002"),
|
|
132
|
+
paginationPageSizes: TableConfigPaginationPageSizesC
|
|
133
|
+
}).readonly().describe("\u8868\u683C\u7EC4\u4EF6\u914D\u7F6E\u3002\u7528\u4E8E\u63CF\u8FF0\u5217\u7ED3\u6784\u3001\u4EA4\u4E92\u80FD\u529B\u3001\u5206\u9875\u6587\u6848\u548C\u521D\u59CB\u72B6\u6001\u3002");
|
|
134
|
+
export function getColumnTechnicalKey(column) {
|
|
135
|
+
if (typeof column.accessor === "string") {
|
|
136
|
+
return column.accessor;
|
|
137
|
+
}
|
|
138
|
+
if (column.id) {
|
|
139
|
+
return column.id;
|
|
140
|
+
}
|
|
141
|
+
return column.accessor?.read;
|
|
142
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type LocaleValue } from '../../../utils/coders.js';
|
|
2
|
+
import type { TableConfig } from '../table/schema.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
config: TableConfig;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
'open'?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:open": (value: boolean) => any;
|
|
12
|
+
confirm: (args_0: Readonly<{
|
|
13
|
+
getRowId?: import("../table/schema.js").Expression;
|
|
14
|
+
getSubRows?: import("../table/schema.js").Expression;
|
|
15
|
+
enableRowSelection?: import("../table/schema.js").Expression;
|
|
16
|
+
enableMultiRowSelection?: import("../table/schema.js").Expression;
|
|
17
|
+
columns: readonly Readonly<{
|
|
18
|
+
id?: string;
|
|
19
|
+
title?: LocaleValue;
|
|
20
|
+
accessor?: import("../table/schema.js").Accessor;
|
|
21
|
+
renderer?: import("../table/schema.js").Render;
|
|
22
|
+
tooltip?: LocaleValue;
|
|
23
|
+
size?: number;
|
|
24
|
+
enableSorting?: boolean;
|
|
25
|
+
enableMultiSorting?: boolean;
|
|
26
|
+
enablePinning?: boolean;
|
|
27
|
+
columns?: readonly Readonly</*elided*/ any>[];
|
|
28
|
+
grow?: boolean;
|
|
29
|
+
}>[];
|
|
30
|
+
cellStyles?: import("../table/schema.js").Expression;
|
|
31
|
+
props?: Readonly<{
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
initialState?: Readonly<{
|
|
34
|
+
columnVisibility?: Record<string, boolean>;
|
|
35
|
+
columnOrder?: ReadonlyArray<string>;
|
|
36
|
+
columnPinning?: Readonly<{
|
|
37
|
+
left?: ReadonlyArray<string>;
|
|
38
|
+
right?: ReadonlyArray<string>;
|
|
39
|
+
}>;
|
|
40
|
+
rowPinning?: Readonly<{
|
|
41
|
+
top?: ReadonlyArray<string>;
|
|
42
|
+
bottom?: ReadonlyArray<string>;
|
|
43
|
+
}>;
|
|
44
|
+
columnFilters?: ReadonlyArray<Readonly<{
|
|
45
|
+
id: string;
|
|
46
|
+
value: unknown;
|
|
47
|
+
}>>;
|
|
48
|
+
globalFilter?: unknown;
|
|
49
|
+
sorting?: ReadonlyArray<Readonly<{
|
|
50
|
+
id: string;
|
|
51
|
+
desc: boolean;
|
|
52
|
+
}>>;
|
|
53
|
+
expanded?: boolean | Record<string, boolean>;
|
|
54
|
+
grouping?: ReadonlyArray<string>;
|
|
55
|
+
columnSizing?: Record<string, number>;
|
|
56
|
+
columnSizingInfo?: Record<string, unknown>;
|
|
57
|
+
pagination?: Readonly<{
|
|
58
|
+
pageIndex?: number;
|
|
59
|
+
pageSize?: number;
|
|
60
|
+
}>;
|
|
61
|
+
rowSelection?: Record<string, boolean>;
|
|
62
|
+
}>;
|
|
63
|
+
}>;
|
|
64
|
+
paginationLeft?: import("../table/schema.js").Markdown;
|
|
65
|
+
paginationRight?: import("../table/schema.js").Markdown;
|
|
66
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
67
|
+
}>) => any;
|
|
68
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
69
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
70
|
+
onConfirm?: ((args_0: Readonly<{
|
|
71
|
+
getRowId?: import("../table/schema.js").Expression;
|
|
72
|
+
getSubRows?: import("../table/schema.js").Expression;
|
|
73
|
+
enableRowSelection?: import("../table/schema.js").Expression;
|
|
74
|
+
enableMultiRowSelection?: import("../table/schema.js").Expression;
|
|
75
|
+
columns: readonly Readonly<{
|
|
76
|
+
id?: string;
|
|
77
|
+
title?: LocaleValue;
|
|
78
|
+
accessor?: import("../table/schema.js").Accessor;
|
|
79
|
+
renderer?: import("../table/schema.js").Render;
|
|
80
|
+
tooltip?: LocaleValue;
|
|
81
|
+
size?: number;
|
|
82
|
+
enableSorting?: boolean;
|
|
83
|
+
enableMultiSorting?: boolean;
|
|
84
|
+
enablePinning?: boolean;
|
|
85
|
+
columns?: readonly Readonly</*elided*/ any>[];
|
|
86
|
+
grow?: boolean;
|
|
87
|
+
}>[];
|
|
88
|
+
cellStyles?: import("../table/schema.js").Expression;
|
|
89
|
+
props?: Readonly<{
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
initialState?: Readonly<{
|
|
92
|
+
columnVisibility?: Record<string, boolean>;
|
|
93
|
+
columnOrder?: ReadonlyArray<string>;
|
|
94
|
+
columnPinning?: Readonly<{
|
|
95
|
+
left?: ReadonlyArray<string>;
|
|
96
|
+
right?: ReadonlyArray<string>;
|
|
97
|
+
}>;
|
|
98
|
+
rowPinning?: Readonly<{
|
|
99
|
+
top?: ReadonlyArray<string>;
|
|
100
|
+
bottom?: ReadonlyArray<string>;
|
|
101
|
+
}>;
|
|
102
|
+
columnFilters?: ReadonlyArray<Readonly<{
|
|
103
|
+
id: string;
|
|
104
|
+
value: unknown;
|
|
105
|
+
}>>;
|
|
106
|
+
globalFilter?: unknown;
|
|
107
|
+
sorting?: ReadonlyArray<Readonly<{
|
|
108
|
+
id: string;
|
|
109
|
+
desc: boolean;
|
|
110
|
+
}>>;
|
|
111
|
+
expanded?: boolean | Record<string, boolean>;
|
|
112
|
+
grouping?: ReadonlyArray<string>;
|
|
113
|
+
columnSizing?: Record<string, number>;
|
|
114
|
+
columnSizingInfo?: Record<string, unknown>;
|
|
115
|
+
pagination?: Readonly<{
|
|
116
|
+
pageIndex?: number;
|
|
117
|
+
pageSize?: number;
|
|
118
|
+
}>;
|
|
119
|
+
rowSelection?: Record<string, boolean>;
|
|
120
|
+
}>;
|
|
121
|
+
}>;
|
|
122
|
+
paginationLeft?: import("../table/schema.js").Markdown;
|
|
123
|
+
paginationRight?: import("../table/schema.js").Markdown;
|
|
124
|
+
paginationPageSizes?: ReadonlyArray<number>;
|
|
125
|
+
}>) => any) | undefined;
|
|
126
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
127
|
+
declare const _default: typeof __VLS_export;
|
|
128
|
+
export default _default;
|