@toolbox-web/grid-vue 0.2.0 → 0.3.1
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/README.md +18 -10
- package/chunks/use-grid-DwjXrO19.js +21 -0
- package/chunks/use-grid-DwjXrO19.js.map +1 -0
- package/features/export.d.ts +51 -10
- package/features/export.d.ts.map +1 -1
- package/features/export.js +54 -3
- package/features/export.js.map +1 -1
- package/features/filtering.d.ts +57 -7
- package/features/filtering.d.ts.map +1 -1
- package/features/filtering.js +70 -3
- package/features/filtering.js.map +1 -1
- package/features/print.d.ts +30 -7
- package/features/print.d.ts.map +1 -1
- package/features/print.js +27 -3
- package/features/print.js.map +1 -1
- package/features/selection.d.ts +43 -10
- package/features/selection.d.ts.map +1 -1
- package/features/selection.js +42 -3
- package/features/selection.js.map +1 -1
- package/features/undo-redo.d.ts +47 -7
- package/features/undo-redo.d.ts.map +1 -1
- package/features/undo-redo.js +48 -3
- package/features/undo-redo.js.map +1 -1
- package/index.d.ts +14 -2
- package/index.d.ts.map +1 -1
- package/index.js +547 -328
- package/index.js.map +1 -1
- package/lib/TbwGrid.vue.d.ts +10 -10
- package/lib/TbwGrid.vue.d.ts.map +1 -1
- package/lib/grid-type-registry.d.ts +27 -5
- package/lib/grid-type-registry.d.ts.map +1 -1
- package/lib/vue-column-config.d.ts +77 -15
- package/lib/vue-column-config.d.ts.map +1 -1
- package/lib/vue-grid-adapter.d.ts +91 -7
- package/lib/vue-grid-adapter.d.ts.map +1 -1
- package/package.json +1 -1
- package/typedoc-entry.d.ts +12 -2
- package/typedoc-entry.d.ts.map +1 -1
|
@@ -1,27 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnConfig as BaseColumnConfig, GridConfig as BaseGridConfig, CellRenderContext, ColumnEditorContext } from '@toolbox-web/grid';
|
|
2
2
|
import { Component, VNode } from 'vue';
|
|
3
3
|
/**
|
|
4
|
-
* Vue
|
|
4
|
+
* Vue render function or component for cell rendering.
|
|
5
|
+
*
|
|
6
|
+
* Can be either:
|
|
7
|
+
* - A render function receiving `CellRenderContext` and returning a `VNode`
|
|
8
|
+
* - A Vue component (SFC or defineComponent)
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import type { CellRenderer, ColumnConfig } from '@toolbox-web/grid-vue';
|
|
13
|
+
* import StatusBadge from './StatusBadge.vue';
|
|
14
|
+
*
|
|
15
|
+
* // As render function
|
|
16
|
+
* const statusRenderer: CellRenderer<Employee, string> = (ctx) =>
|
|
17
|
+
* h('span', { class: ctx.value }, ctx.value);
|
|
18
|
+
*
|
|
19
|
+
* // As Vue component
|
|
20
|
+
* const columns: ColumnConfig<Employee>[] = [
|
|
21
|
+
* { field: 'status', renderer: StatusBadge },
|
|
22
|
+
* ];
|
|
23
|
+
* ```
|
|
5
24
|
*/
|
|
6
|
-
export type
|
|
25
|
+
export type CellRenderer<TRow = unknown, TValue = unknown> = ((ctx: CellRenderContext<TRow, TValue>) => VNode) | Component;
|
|
7
26
|
/**
|
|
8
|
-
*
|
|
27
|
+
* @deprecated Use `CellRenderer` instead.
|
|
28
|
+
* @see {@link CellRenderer}
|
|
9
29
|
*/
|
|
10
|
-
export type
|
|
30
|
+
export type VueCellRenderer<TRow = unknown, TValue = unknown> = CellRenderer<TRow, TValue>;
|
|
11
31
|
/**
|
|
12
|
-
*
|
|
32
|
+
* Vue render function or component for cell editing.
|
|
33
|
+
*
|
|
34
|
+
* Can be either:
|
|
35
|
+
* - A render function receiving `ColumnEditorContext` and returning a `VNode`
|
|
36
|
+
* - A Vue component (SFC or defineComponent)
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import type { CellEditor, ColumnConfig } from '@toolbox-web/grid-vue';
|
|
41
|
+
*
|
|
42
|
+
* const statusEditor: CellEditor<Employee, string> = (ctx) =>
|
|
43
|
+
* h(StatusSelect, {
|
|
44
|
+
* modelValue: ctx.value,
|
|
45
|
+
* 'onUpdate:modelValue': ctx.commit,
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export type CellEditor<TRow = unknown, TValue = unknown> = ((ctx: ColumnEditorContext<TRow, TValue>) => VNode) | Component;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `CellEditor` instead.
|
|
52
|
+
* @see {@link CellEditor}
|
|
53
|
+
*/
|
|
54
|
+
export type VueCellEditor<TRow = unknown, TValue = unknown> = CellEditor<TRow, TValue>;
|
|
55
|
+
/**
|
|
56
|
+
* Column configuration for Vue applications.
|
|
13
57
|
*
|
|
14
58
|
* Extends the base ColumnConfig with `renderer` and `editor` properties
|
|
15
59
|
* that accept Vue components or render functions.
|
|
16
60
|
*
|
|
17
61
|
* @example
|
|
18
62
|
* ```ts
|
|
19
|
-
*
|
|
63
|
+
* import type { ColumnConfig } from '@toolbox-web/grid-vue';
|
|
64
|
+
* import StatusBadge from './StatusBadge.vue';
|
|
65
|
+
*
|
|
66
|
+
* const columns: ColumnConfig<Employee>[] = [
|
|
20
67
|
* { field: 'name', header: 'Name' },
|
|
21
68
|
* {
|
|
22
69
|
* field: 'status',
|
|
23
70
|
* header: 'Status',
|
|
24
|
-
* renderer:
|
|
71
|
+
* renderer: StatusBadge,
|
|
25
72
|
* editor: (ctx) => h(StatusSelect, {
|
|
26
73
|
* modelValue: ctx.value,
|
|
27
74
|
* 'onUpdate:modelValue': ctx.commit,
|
|
@@ -30,24 +77,34 @@ export type VueCellEditor<TRow = unknown, TValue = unknown> = ((ctx: ColumnEdito
|
|
|
30
77
|
* ];
|
|
31
78
|
* ```
|
|
32
79
|
*/
|
|
33
|
-
export interface
|
|
80
|
+
export interface ColumnConfig<TRow = unknown, TValue = unknown> extends Omit<BaseColumnConfig<TRow>, 'renderer' | 'editor'> {
|
|
34
81
|
/**
|
|
35
82
|
* Vue component or render function for custom cell rendering.
|
|
36
83
|
* Receives CellRenderContext with value, row, column, and indexes.
|
|
37
84
|
*/
|
|
38
|
-
renderer?:
|
|
85
|
+
renderer?: CellRenderer<TRow, TValue>;
|
|
39
86
|
/**
|
|
40
87
|
* Vue component or render function for custom cell editing.
|
|
41
88
|
* Receives ColumnEditorContext with value, row, commit, and cancel functions.
|
|
42
89
|
*/
|
|
43
|
-
editor?:
|
|
90
|
+
editor?: CellEditor<TRow, TValue>;
|
|
44
91
|
}
|
|
45
92
|
/**
|
|
46
|
-
*
|
|
93
|
+
* @deprecated Use `ColumnConfig` instead.
|
|
94
|
+
* @see {@link ColumnConfig}
|
|
95
|
+
*/
|
|
96
|
+
export type VueColumnConfig<TRow = unknown, TValue = unknown> = ColumnConfig<TRow, TValue>;
|
|
97
|
+
/**
|
|
98
|
+
* Grid configuration for Vue applications.
|
|
99
|
+
*
|
|
100
|
+
* Extends the base GridConfig with Vue-augmented ColumnConfig support.
|
|
47
101
|
*
|
|
48
102
|
* @example
|
|
49
103
|
* ```ts
|
|
50
|
-
*
|
|
104
|
+
* import type { GridConfig } from '@toolbox-web/grid-vue';
|
|
105
|
+
* import { SelectionPlugin } from '@toolbox-web/grid/all';
|
|
106
|
+
*
|
|
107
|
+
* const config: GridConfig<Employee> = {
|
|
51
108
|
* columns: [
|
|
52
109
|
* { field: 'name', header: 'Name' },
|
|
53
110
|
* {
|
|
@@ -60,10 +117,15 @@ export interface VueColumnConfig<TRow = unknown, TValue = unknown> extends Omit<
|
|
|
60
117
|
* };
|
|
61
118
|
* ```
|
|
62
119
|
*/
|
|
63
|
-
export interface
|
|
120
|
+
export interface GridConfig<TRow = unknown> extends Omit<BaseGridConfig<TRow>, 'columns'> {
|
|
64
121
|
/**
|
|
65
122
|
* Column definitions with Vue renderer/editor support.
|
|
66
123
|
*/
|
|
67
|
-
columns?:
|
|
124
|
+
columns?: ColumnConfig<TRow>[];
|
|
68
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated Use `GridConfig` instead.
|
|
128
|
+
* @see {@link GridConfig}
|
|
129
|
+
*/
|
|
130
|
+
export type VueGridConfig<TRow = unknown> = GridConfig<TRow>;
|
|
69
131
|
//# sourceMappingURL=vue-column-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-column-config.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/lib/vue-column-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"vue-column-config.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/lib/vue-column-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,UAAU,IAAI,cAAc,EAC5B,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IACrD,CAAC,CAAC,GAAG,EAAE,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,KAAK,CAAC,GACjD,SAAS,CAAC;AAEd;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAI3F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UAAU,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IACnD,CAAC,CAAC,GAAG,EAAE,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,KAAK,CAAC,GACnD,SAAS,CAAC;AAEd;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAIvF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,YAAY,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,CAAE,SAAQ,IAAI,CAC1E,gBAAgB,CAAC,IAAI,CAAC,EACtB,UAAU,GAAG,QAAQ,CACtB;IACC;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEtC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAI3F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,UAAU,CAAC,IAAI,GAAG,OAAO,CAAE,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IACvF;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,GAAG,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CellRenderContext, ColumnEditorContext, ColumnEditorSpec, ColumnViewRenderer, FrameworkAdapter
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
import { TypeDefaultsMap } from './grid-type-registry';
|
|
1
|
+
import { ColumnConfig as BaseColumnConfig, GridConfig as BaseGridConfig, TypeDefault as BaseTypeDefault, CellRenderContext, ColumnEditorContext, ColumnEditorSpec, ColumnViewRenderer, FrameworkAdapter } from '@toolbox-web/grid';
|
|
2
|
+
import { Component, VNode } from 'vue';
|
|
3
|
+
import { TypeDefault, TypeDefaultsMap } from './grid-type-registry';
|
|
4
|
+
import { ColumnConfig, GridConfig } from './vue-column-config';
|
|
4
5
|
/**
|
|
5
6
|
* Register a Vue cell renderer for a column element.
|
|
6
7
|
* Called by TbwGridColumn when it has a #cell slot.
|
|
@@ -31,6 +32,19 @@ export declare function getRegisteredFields(): string[];
|
|
|
31
32
|
* @internal - for testing only
|
|
32
33
|
*/
|
|
33
34
|
export declare function clearFieldRegistries(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Checks if a value is a Vue component (SFC or defineComponent result).
|
|
37
|
+
*
|
|
38
|
+
* Vue components are identified by:
|
|
39
|
+
* - Having `__name` (SFC compiled marker)
|
|
40
|
+
* - Having `setup` function (Composition API component)
|
|
41
|
+
* - Having `render` function (Options API component)
|
|
42
|
+
* - Being an ES6 class (class-based component)
|
|
43
|
+
*
|
|
44
|
+
* Regular functions `(ctx) => HTMLElement` that are already processed
|
|
45
|
+
* will not match these checks, making this idempotent.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isVueComponent(value: unknown): value is Component;
|
|
34
48
|
/**
|
|
35
49
|
* Framework adapter that enables Vue 3 component integration
|
|
36
50
|
* with the grid's light DOM configuration API.
|
|
@@ -42,10 +56,10 @@ export declare function clearFieldRegistries(): void;
|
|
|
42
56
|
*
|
|
43
57
|
* ```ts
|
|
44
58
|
* import { GridElement } from '@toolbox-web/grid';
|
|
45
|
-
* import {
|
|
59
|
+
* import { GridAdapter } from '@toolbox-web/grid-vue';
|
|
46
60
|
*
|
|
47
61
|
* // One-time registration
|
|
48
|
-
* GridElement.registerAdapter(new
|
|
62
|
+
* GridElement.registerAdapter(new GridAdapter());
|
|
49
63
|
* ```
|
|
50
64
|
*
|
|
51
65
|
* ## Declarative usage with TbwGrid:
|
|
@@ -60,9 +74,74 @@ export declare function clearFieldRegistries(): void;
|
|
|
60
74
|
* </TbwGrid>
|
|
61
75
|
* ```
|
|
62
76
|
*/
|
|
63
|
-
export declare class
|
|
77
|
+
export declare class GridAdapter implements FrameworkAdapter {
|
|
64
78
|
private mountedViews;
|
|
65
79
|
private typeDefaults;
|
|
80
|
+
/**
|
|
81
|
+
* Processes a Vue grid configuration, converting Vue component references
|
|
82
|
+
* and VNode-returning render functions to DOM-returning functions.
|
|
83
|
+
*
|
|
84
|
+
* This is idempotent — already-processed configs pass through safely.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { GridAdapter, type GridConfig } from '@toolbox-web/grid-vue';
|
|
89
|
+
* import StatusBadge from './StatusBadge.vue';
|
|
90
|
+
*
|
|
91
|
+
* const config: GridConfig<Employee> = {
|
|
92
|
+
* columns: [
|
|
93
|
+
* { field: 'status', renderer: StatusBadge },
|
|
94
|
+
* ],
|
|
95
|
+
* };
|
|
96
|
+
*
|
|
97
|
+
* const adapter = new GridAdapter();
|
|
98
|
+
* const processedConfig = adapter.processGridConfig(config);
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @param config - Vue grid config with possible component/VNode references
|
|
102
|
+
* @returns Processed config with DOM-returning functions
|
|
103
|
+
*/
|
|
104
|
+
processGridConfig<TRow = unknown>(config: GridConfig<TRow>): BaseGridConfig<TRow>;
|
|
105
|
+
/**
|
|
106
|
+
* Processes typeDefaults, converting Vue component/VNode references
|
|
107
|
+
* to DOM-returning functions.
|
|
108
|
+
*
|
|
109
|
+
* @param typeDefaults - Vue type defaults with possible component references
|
|
110
|
+
* @returns Processed TypeDefault record
|
|
111
|
+
*/
|
|
112
|
+
processTypeDefaults<TRow = unknown>(typeDefaults: Record<string, TypeDefault<TRow>>): Record<string, BaseTypeDefault<TRow>>;
|
|
113
|
+
/**
|
|
114
|
+
* Processes a single column configuration, converting Vue component references
|
|
115
|
+
* and VNode-returning render functions to DOM-returning functions.
|
|
116
|
+
*
|
|
117
|
+
* @param column - Vue column config
|
|
118
|
+
* @returns Processed ColumnConfig with DOM-returning functions
|
|
119
|
+
*/
|
|
120
|
+
processColumn<TRow = unknown>(column: ColumnConfig<TRow>): BaseColumnConfig<TRow>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates a DOM-returning renderer from a Vue component class.
|
|
123
|
+
* Used for config-based renderers (not slot-based).
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
private createConfigComponentRenderer;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a DOM-returning renderer from a VNode-returning render function.
|
|
129
|
+
* Used for config-based renderers (not slot-based).
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
private createConfigVNodeRenderer;
|
|
133
|
+
/**
|
|
134
|
+
* Creates a DOM-returning editor from a Vue component class.
|
|
135
|
+
* Used for config-based editors (not slot-based).
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
private createConfigComponentEditor;
|
|
139
|
+
/**
|
|
140
|
+
* Creates a DOM-returning editor from a VNode-returning render function.
|
|
141
|
+
* Used for config-based editors (not slot-based).
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
private createConfigVNodeEditor;
|
|
66
145
|
/**
|
|
67
146
|
* Sets the type defaults map for this adapter.
|
|
68
147
|
* Called by TbwGrid when it receives type defaults from context.
|
|
@@ -123,7 +202,7 @@ export declare class VueGridAdapter implements FrameworkAdapter {
|
|
|
123
202
|
* </template>
|
|
124
203
|
* ```
|
|
125
204
|
*/
|
|
126
|
-
getTypeDefault<TRow = unknown>(type: string):
|
|
205
|
+
getTypeDefault<TRow = unknown>(type: string): BaseTypeDefault<TRow> | undefined;
|
|
127
206
|
/**
|
|
128
207
|
* Creates a renderer function from a Vue render function for type defaults.
|
|
129
208
|
* @internal
|
|
@@ -139,4 +218,9 @@ export declare class VueGridAdapter implements FrameworkAdapter {
|
|
|
139
218
|
*/
|
|
140
219
|
cleanup(): void;
|
|
141
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use `GridAdapter` instead. This alias will be removed in a future version.
|
|
223
|
+
* @see {@link GridAdapter}
|
|
224
|
+
*/
|
|
225
|
+
export declare const VueGridAdapter: typeof GridAdapter;
|
|
142
226
|
//# sourceMappingURL=vue-grid-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-grid-adapter.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/lib/vue-grid-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"vue-grid-adapter.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/lib/vue-grid-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,UAAU,IAAI,cAAc,EAC5B,WAAW,IAAI,eAAe,EAC9B,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAoC,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,KAAK,CAAC;AAEnF,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAgBpE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,GAC5D,IAAI,CAaN;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,CAAC,GAAG,EAAE,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,GAC5D,IAAI,CAYN;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,GACnB,CAAC,CAAC,GAAG,EAAE,iBAAiB,CAAC,OAA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;;OAKG;IACH,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI;IAIvD;;;OAGG;IACH,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO;IAkBxC;;;OAGG;IACH,cAAc,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC;IAsExG;;;OAGG;IACH,YAAY,CAAC,IAAI,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC;IA0BpG;;;OAGG;IACH,kBAAkB,CAAC,IAAI,GAAG,OAAO,EAC/B,aAAa,EAAE,OAAO,GACrB,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG,SAAS;IAiC7D;;;OAGG;IACH,0BAA0B,CAAC,IAAI,GAAG,OAAO,EACvC,WAAW,EAAE,OAAO,GACnB,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG,SAAS;IAmC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,cAAc,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,SAAS;IA2B/E;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAsBxB;;OAEG;IACH,OAAO,IAAI,IAAI;CAWhB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,oBAAc,CAAC"}
|
package/package.json
CHANGED
package/typedoc-entry.d.ts
CHANGED
|
@@ -13,17 +13,27 @@ export type { DetailPanelContext } from './lib/detail-panel-registry';
|
|
|
13
13
|
export type { ResponsiveCardContext } from './lib/responsive-card-registry';
|
|
14
14
|
export type { CellSlotProps, EditorSlotProps } from './lib/slot-types';
|
|
15
15
|
export type { ToolPanelContext } from './lib/tool-panel-registry';
|
|
16
|
+
export { GridAdapter } from './lib/vue-grid-adapter';
|
|
17
|
+
/** @deprecated Use `GridAdapter` instead */
|
|
16
18
|
export { VueGridAdapter } from './lib/vue-grid-adapter';
|
|
17
19
|
export { GRID_ELEMENT_KEY, useGrid } from './lib/use-grid';
|
|
18
20
|
export type { UseGridReturn } from './lib/use-grid';
|
|
19
21
|
export { useGridEvent } from './lib/use-grid-event';
|
|
20
22
|
export type { GridEventMap } from './lib/use-grid-event';
|
|
21
|
-
export type {
|
|
23
|
+
export type { CellEditor, CellRenderer, ColumnConfig, GridConfig,
|
|
24
|
+
/** @deprecated Use `CellEditor` instead */
|
|
25
|
+
VueCellEditor,
|
|
26
|
+
/** @deprecated Use `CellRenderer` instead */
|
|
27
|
+
VueCellRenderer,
|
|
28
|
+
/** @deprecated Use `ColumnConfig` instead */
|
|
29
|
+
VueColumnConfig,
|
|
30
|
+
/** @deprecated Use `GridConfig` instead */
|
|
31
|
+
VueGridConfig, } from './lib/vue-column-config';
|
|
22
32
|
export type { AllFeatureProps, FeatureProps } from './lib/feature-props';
|
|
23
33
|
export { clearFeatureRegistry, createPluginFromFeature, getFeatureFactory, getRegisteredFeatures, isFeatureRegistered, registerFeature, } from './lib/feature-registry';
|
|
24
34
|
export type { FeatureName, PluginFactory } from './lib/feature-registry';
|
|
25
35
|
export { GRID_TYPE_DEFAULTS, GridTypeProvider, useGridTypeDefaults, useTypeDefault } from './lib/grid-type-registry';
|
|
26
|
-
export type { GridTypeProviderProps, TypeDefaultsMap, VueTypeDefault } from './lib/grid-type-registry';
|
|
36
|
+
export type { GridTypeProviderProps, TypeDefault, TypeDefaultsMap, VueTypeDefault } from './lib/grid-type-registry';
|
|
27
37
|
export { GRID_ICONS, GridIconProvider, useGridIcons } from './lib/grid-icon-registry';
|
|
28
38
|
export type { GridIconProviderProps } from './lib/grid-icon-registry';
|
|
29
39
|
export { GridProvider } from './lib/grid-provider';
|
package/typedoc-entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedoc-entry.d.ts","sourceRoot":"","sources":["../../../libs/grid-vue/src/typedoc-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,YAAY,
|
|
1
|
+
{"version":3,"file":"typedoc-entry.d.ts","sourceRoot":"","sources":["../../../libs/grid-vue/src/typedoc-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,4CAA4C;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,OAAO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