@cocoar/vue-data-grid 0.1.0-beta.25 → 1.0.0

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.
Files changed (37) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/dist/CoarDataGrid.vue.d.ts +25 -0
  4. package/dist/CoarDataGrid.vue.d.ts.map +1 -0
  5. package/dist/builders/coar-grid-builder.d.ts +145 -0
  6. package/dist/builders/coar-grid-builder.d.ts.map +1 -0
  7. package/dist/builders/coar-grid-column-builder.d.ts +81 -0
  8. package/dist/builders/coar-grid-column-builder.d.ts.map +1 -0
  9. package/dist/builders/coar-grid-column-factory.d.ts +72 -0
  10. package/dist/builders/coar-grid-column-factory.d.ts.map +1 -0
  11. package/dist/builders/index.d.ts +4 -0
  12. package/dist/builders/index.d.ts.map +1 -0
  13. package/dist/cell-renderers/DateCellRenderer.vue.d.ts +7 -0
  14. package/dist/cell-renderers/DateCellRenderer.vue.d.ts.map +1 -0
  15. package/dist/cell-renderers/IconCellRenderer.vue.d.ts +7 -0
  16. package/dist/cell-renderers/IconCellRenderer.vue.d.ts.map +1 -0
  17. package/dist/cell-renderers/TagCellRenderer.vue.d.ts +7 -0
  18. package/dist/cell-renderers/TagCellRenderer.vue.d.ts.map +1 -0
  19. package/dist/cell-renderers/date-cell-renderer.models.d.ts +7 -0
  20. package/dist/cell-renderers/date-cell-renderer.models.d.ts.map +1 -0
  21. package/dist/cell-renderers/icon-cell-renderer.models.d.ts +13 -0
  22. package/dist/cell-renderers/icon-cell-renderer.models.d.ts.map +1 -0
  23. package/dist/cell-renderers/index.d.ts +7 -0
  24. package/dist/cell-renderers/index.d.ts.map +1 -0
  25. package/dist/cell-renderers/tag-cell-renderer.models.d.ts +16 -0
  26. package/dist/cell-renderers/tag-cell-renderer.models.d.ts.map +1 -0
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/models/index.d.ts +5 -0
  30. package/dist/models/index.d.ts.map +1 -0
  31. package/dist/theme/cocoar-theme.d.ts +27 -0
  32. package/dist/theme/cocoar-theme.d.ts.map +1 -0
  33. package/dist/theme/index.d.ts +2 -0
  34. package/dist/theme/index.d.ts.map +1 -0
  35. package/dist/useDataGrid.d.ts +25 -0
  36. package/dist/useDataGrid.d.ts.map +1 -0
  37. package/package.json +19 -3
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @cocoar/vue-data-grid
2
+
3
+ AG Grid wrapper with Cocoar Design System theming for Vue 3.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @cocoar/vue-data-grid ag-grid-community ag-grid-vue3
9
+ ```
10
+
11
+ ## Documentation
12
+
13
+ Full documentation: **[docs.cocoar.dev/cocoar-ui-vue](https://docs.cocoar.dev/cocoar-ui-vue/components/data-grid)**
14
+
15
+ ## License
16
+
17
+ Apache-2.0
@@ -0,0 +1,25 @@
1
+ import { Theme } from 'ag-grid-community';
2
+ import { CoarGridBuilder } from './builders';
3
+ declare const _default: <TData = unknown>(__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
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
5
+ /** The grid builder configuration (required) */
6
+ builder: CoarGridBuilder<TData>;
7
+ /** AG Grid theme override (defaults to cocoarTheme) */
8
+ theme?: Theme;
9
+ /** Custom CSS class for the wrapper element */
10
+ class?: string;
11
+ /** Custom inline style for the wrapper element */
12
+ style?: string | Record<string, string>;
13
+ } & Partial<{}>> & import('vue').PublicProps;
14
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
15
+ attrs: any;
16
+ slots: {};
17
+ emit: {};
18
+ }>) => import('vue').VNode & {
19
+ __ctx?: Awaited<typeof __VLS_setup>;
20
+ };
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = {
23
+ [K in keyof T]: T[K];
24
+ } & {};
25
+ //# sourceMappingURL=CoarDataGrid.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoarDataGrid.vue.d.ts","sourceRoot":"","sources":["../src/CoarDataGrid.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAkB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,6BAA6B,CAAC;yBAEpB,KAAK,GAAG,OAAO,EAC/B,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAsJO,mBAAmB,CAAC;QA3IxB,gDAAgD;iBACvC,eAAe,CAAC,KAAK,CAAC;QAC/B,uDAAuD;gBAC/C,KAAK;QACb,+CAA+C;gBACvC,MAAM;QACd,kDAAkD;gBAC1C,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;mBAoImD,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjKzE,wBAiK4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,145 @@
1
+ import { Ref, WatchSource } from 'vue';
2
+ import { ColDef, GridApi, GridOptions, GridReadyEvent, RowClickedEvent, RowDoubleClickedEvent, CellClickedEvent, CellDoubleClickedEvent, GetRowIdFunc, RowClassParams, IRowNode, IsExternalFilterPresentParams, GridSizeChangedEvent, CellContextMenuEvent, ColumnState, PostSortRowsParams } from 'ag-grid-community';
3
+ import { CoarGridColumnBuilder } from './coar-grid-column-builder';
4
+ import { CoarGridColumnFactory } from './coar-grid-column-factory';
5
+ type ColumnBuilderLike<TData> = {
6
+ build(): ColDef<TData>;
7
+ };
8
+ /** Column definition input - either a builder or a factory function */
9
+ export type ColumnDefinition<TData> = ColumnBuilderLike<TData> | ((factory: CoarGridColumnFactory<TData>) => ColumnBuilderLike<TData>);
10
+ /** Options for row selection */
11
+ export interface RowSelectionOptions {
12
+ /** Show a checkbox column for selection (default: false for 'single', true for 'multiple') */
13
+ checkboxes?: boolean;
14
+ /** Show a select-all checkbox in the header (only applies to 'multiple' mode, default: true when checkboxes is true) */
15
+ headerCheckbox?: boolean;
16
+ /** Allow clicking anywhere on a row to select it (default: true) */
17
+ enableClickSelection?: boolean;
18
+ }
19
+ /**
20
+ * Fluent builder for AG Grid configuration.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const gridBuilder = CoarGridBuilder.create<User>()
25
+ * .columns([
26
+ * col => col.field('name').header('Name').flex(1),
27
+ * col => col.field('email').header('Email').flex(1),
28
+ * col => col.field('role').header('Role').width(100),
29
+ * ])
30
+ * .rowData(users)
31
+ * .rowId(user => user.id)
32
+ * .onRowClicked(event => console.log(event.data));
33
+ * ```
34
+ */
35
+ export declare class CoarGridBuilder<TData = unknown> {
36
+ #private;
37
+ /** Reactive flag that becomes true when grid is ready */
38
+ readonly gridReady: Readonly<Ref<boolean>>;
39
+ private constructor();
40
+ /** Create a new grid builder */
41
+ static create<TData>(): CoarGridBuilder<TData>;
42
+ /** Get the AG Grid API (available after grid ready) */
43
+ get api(): GridApi<TData> | undefined;
44
+ /** Define columns using builders or factory functions */
45
+ columns(definitions: ColumnDefinition<TData>[]): this;
46
+ /** Set default column definition applied to all columns */
47
+ defaultColDef(definition: Partial<ColDef<TData>> | ((builder: CoarGridColumnBuilder<TData>) => CoarGridColumnBuilder<TData>)): this;
48
+ /** Set row data (static array) */
49
+ rowData(data: TData[] | null): this;
50
+ /** Set row data (reactive ref) */
51
+ rowDataRef(data: Ref<TData[] | null | undefined>): this;
52
+ /** Set row ID getter for immutable data updates */
53
+ rowId(getRowId: GetRowIdFunc<TData>): this;
54
+ /**
55
+ * Enable row selection.
56
+ *
57
+ * @param mode - `'single'` or `'multiple'`
58
+ * @param options - Optional configuration for checkboxes and click behavior
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * // Click to select, no checkboxes
63
+ * .rowSelection('single')
64
+ *
65
+ * // Checkboxes + click to select
66
+ * .rowSelection('multiple', { checkboxes: true })
67
+ *
68
+ * // Checkboxes only, no click selection
69
+ * .rowSelection('multiple', { checkboxes: true, enableClickSelection: false })
70
+ * ```
71
+ */
72
+ rowSelection(mode: 'single' | 'multiple', options?: RowSelectionOptions): this;
73
+ /** Set row class rules */
74
+ rowClassRules(rules: Record<string, ((params: RowClassParams<TData>) => boolean) | string>): this;
75
+ /** Set dynamic row class */
76
+ rowClass(fn: (params: RowClassParams<TData>) => string | string[] | undefined): this;
77
+ /** Set initial sort column and direction */
78
+ defaultSort(field: string, direction: 'asc' | 'desc'): this;
79
+ /** Set custom post-sort function to reorder rows after AG Grid sorts */
80
+ sortFunction(fn: (params: PostSortRowsParams<TData>) => void): this;
81
+ /** Re-trigger sort and filter when the given watch source changes */
82
+ updateSortAndFilterWhen(trigger: WatchSource): this;
83
+ /** Merge column state to restore column widths, order, visibility */
84
+ columnState(state: ColumnState[] | Ref<ColumnState[] | undefined>): this;
85
+ /** Set which parent rows are expanded (reactive ref of row IDs) */
86
+ openRows(openRows: Ref<string[]>): this;
87
+ /** Enable full-row editing mode */
88
+ fullRowEdit(value?: boolean): this;
89
+ /** Stop cell editing when cells lose focus */
90
+ stopEditingWhenCellsLoseFocus(value?: boolean): this;
91
+ /** Enable shift-key column resize mode */
92
+ shiftResizeMode(value?: boolean): this;
93
+ /** Handle grid ready event */
94
+ onGridReady(handler: (event: GridReadyEvent<TData>) => void): this;
95
+ /** Handle row click */
96
+ onRowClicked(handler: (event: RowClickedEvent<TData>) => void): this;
97
+ /** Handle row double-click */
98
+ onRowDoubleClicked(handler: (event: RowDoubleClickedEvent<TData>) => void): this;
99
+ /** Handle cell click */
100
+ onCellClicked(handler: (event: CellClickedEvent<TData>) => void): this;
101
+ /** Handle cell double-click */
102
+ onCellDoubleClicked(handler: (event: CellDoubleClickedEvent<TData>) => void): this;
103
+ /** Handle grid size changed event */
104
+ onGridSizeChanged(handler: (event: GridSizeChangedEvent<TData>) => void): this;
105
+ /** Handle cell context menu (right-click). Ctrl+click is passed through to the browser. */
106
+ onCellContextMenu(handler: (event: CellContextMenuEvent<TData>) => void): this;
107
+ /**
108
+ * Handle click on the grid viewport (empty area outside cells).
109
+ * Wired by the wrapper component.
110
+ */
111
+ onViewportClick(handler: ($event: MouseEvent, api: GridApi<TData>) => void): this;
112
+ /**
113
+ * Handle context menu on the grid viewport (empty area outside cells).
114
+ * Wired by the wrapper component.
115
+ */
116
+ onViewportContextMenu(handler: ($event: MouseEvent, api: GridApi<TData>) => void): this;
117
+ /** Set external filter */
118
+ externalFilter(doesFilterPass: (node: IRowNode<TData>) => boolean, isFilterPresent?: (params: IsExternalFilterPresentParams<TData>) => boolean): this;
119
+ /** Re-trigger external filter when the given watch source changes */
120
+ updateExternalFilterWhen(trigger: WatchSource): this;
121
+ /** Enable row animation */
122
+ animateRows(value?: boolean): this;
123
+ /** Set any AG Grid option directly */
124
+ option<K extends keyof GridOptions<TData>>(key: K, value: GridOptions<TData>[K]): this;
125
+ /** Merge additional grid options */
126
+ options(options: GridOptions<TData>): this;
127
+ /** @internal Called by the wrapper component to bind to AG Grid */
128
+ _bind(api: GridApi<TData>): void;
129
+ /** @internal Called by the wrapper component on unmount */
130
+ _destroy(): void;
131
+ /** @internal Get viewport click handler (for wrapper component) */
132
+ _getViewportClickHandler(): (($event: MouseEvent, api: GridApi<TData>) => void) | undefined;
133
+ /** @internal Get viewport context menu handler (for wrapper component) */
134
+ _getViewportContextMenuHandler(): (($event: MouseEvent, api: GridApi<TData>) => void) | undefined;
135
+ /** @internal Check if a cell context menu handler is registered (for wrapper component) */
136
+ _hasCellContextMenuHandler(): boolean;
137
+ /** Get column definitions (for wrapper component) */
138
+ _getColumnDefs(): ColDef<TData>[];
139
+ /** Get grid options (for wrapper component) */
140
+ _getGridOptions(): GridOptions<TData>;
141
+ /** Get static row data (for wrapper component) */
142
+ _getRowData(): TData[] | null;
143
+ }
144
+ export {};
145
+ //# sourceMappingURL=coar-grid-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coar-grid-builder.d.ts","sourceRoot":"","sources":["../../src/builders/coar-grid-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAC;AACpE,OAAO,KAAK,EACV,MAAM,EACN,OAAO,EACP,WAAW,EACX,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,6BAA6B,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BA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,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,OAAO,GAC1E,IAAI;IAQP,qEAAqE;IACrE,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IASpD,2BAA2B;IAC3B,WAAW,CAAC,KAAK,UAAO,GAAG,IAAI;IAK/B,sCAAsC;IACtC,MAAM,CAAC,CAAC,SAAS,MAAM,WAAW,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAKtF,oCAAoC;IACpC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,IAAI;IAS1C,mEAAmE;IACnE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;IA6EhC,2DAA2D;IAC3D,QAAQ,IAAI,IAAI;IAShB,mEAAmE;IACnE,wBAAwB,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS;IAI3F,0EAA0E;IAC1E,8BAA8B,IAC1B,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,GACnD,SAAS;IAIb,2FAA2F;IAC3F,0BAA0B,IAAI,OAAO;IAIrC,qDAAqD;IACrD,cAAc,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE;IAIjC,+CAA+C;IAC/C,eAAe,IAAI,WAAW,CAAC,KAAK,CAAC;IAIrC,kDAAkD;IAClD,WAAW,IAAI,KAAK,EAAE,GAAG,IAAI;CAG9B"}
@@ -0,0 +1,81 @@
1
+ import { Component } from 'vue';
2
+ import { ColDef, CellClassParams, CellStyle, ValueFormatterParams, ValueGetterFunc, CellDoubleClickedEvent, ITooltipParams, GetQuickFilterTextParams, RowDragCallback, IRowNode } from 'ag-grid-community';
3
+ /**
4
+ * Fluent builder for AG Grid column definitions.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const column = new CoarGridColumnBuilder<User>('name')
9
+ * .header('Full Name')
10
+ * .sortable()
11
+ * .flex(1)
12
+ * .build();
13
+ * ```
14
+ */
15
+ export declare class CoarGridColumnBuilder<TData = unknown, TValue = unknown> {
16
+ #private;
17
+ constructor(field?: keyof TData | string);
18
+ /** Set the field name (data property) */
19
+ field(value: keyof TData | string): this;
20
+ /** Set the column header text */
21
+ header(value: string): this;
22
+ /** Set header tooltip */
23
+ headerTooltip(value: string): this;
24
+ /** Set fixed width in pixels */
25
+ width(value: number, minWidth?: number, maxWidth?: number): this;
26
+ /** Set fixed width (min, max, and width all the same) */
27
+ fixedWidth(value: number): this;
28
+ /** Set minimum width */
29
+ minWidth(value: number): this;
30
+ /** Set maximum width */
31
+ maxWidth(value: number): this;
32
+ /** Set flex grow factor for fluid width */
33
+ flex(value?: number): this;
34
+ /** Enable/disable sorting */
35
+ sortable(value?: boolean): this;
36
+ /** Enable/disable resizing */
37
+ resizable(value?: boolean): this;
38
+ /** Hide/show column */
39
+ hidden(value?: boolean): this;
40
+ /** Pin column to left or right */
41
+ pinned(value: 'left' | 'right' | null): this;
42
+ /** Lock column position */
43
+ lockPosition(value?: boolean | 'left' | 'right'): this;
44
+ /** Set custom cell renderer component */
45
+ cellRenderer(component: Component, params?: Record<string, unknown>): this;
46
+ /** Set cell renderer parameters */
47
+ cellRendererParams(params: Record<string, unknown>): this;
48
+ /** Set value formatter for display */
49
+ valueFormatter(fn: (params: ValueFormatterParams<TData, TValue>) => string): this;
50
+ /** Set value getter to transform data before display */
51
+ valueGetter(fn: ValueGetterFunc<TData, TValue>): this;
52
+ /** Set CSS class for cells */
53
+ cellClass(value: string | string[] | ((params: CellClassParams<TData, TValue>) => string | string[])): this;
54
+ /** Set CSS style for cells */
55
+ cellStyle(value: CellStyle | ((params: CellClassParams<TData, TValue>) => CellStyle | null | undefined)): this;
56
+ /** Add a conditional CSS class rule */
57
+ classRule(className: string, condition: string | ((params: CellClassParams<TData, TValue>) => boolean)): this;
58
+ /** Show tooltip with field value or custom function */
59
+ tooltip(value?: string | ((params: ITooltipParams<TData, TValue>) => string)): this;
60
+ /** Handle cell double-click */
61
+ onCellDoubleClicked(handler: (event: CellDoubleClickedEvent<TData, TValue>) => void): this;
62
+ /** Enable/disable filtering */
63
+ filter(value?: boolean | string): this;
64
+ /** Set filter parameters */
65
+ filterParams(params: Record<string, unknown>): this;
66
+ /** Set quick filter text extractor or disable quick filtering for this column */
67
+ quickFilter(fn: boolean | ((params: GetQuickFilterTextParams<TData, TValue>) => string)): this;
68
+ /** Set custom sort comparator */
69
+ comparator(fn: (valueA: TValue, valueB: TValue, nodeA: IRowNode<TData>, nodeB: IRowNode<TData>, isDescending: boolean) => number): this;
70
+ /** Enable row drag on this column */
71
+ rowDrag(value?: boolean | RowDragCallback<TData, TValue>): this;
72
+ /** Set cell renderer with config object (params wrapped in `config` key) */
73
+ cellRendererConfig(component: Component, config: Record<string, unknown> | object): this;
74
+ /** Set any AG Grid ColDef option directly */
75
+ option<K extends keyof ColDef<TData, TValue>>(key: K, value: ColDef<TData, TValue>[K]): this;
76
+ /** Apply custom modifications to the column definition */
77
+ customize(fn: (colDef: ColDef<TData, TValue>) => void): this;
78
+ /** Build and return the AG Grid ColDef */
79
+ build(): ColDef<TData, TValue>;
80
+ }
81
+ //# sourceMappingURL=coar-grid-column-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coar-grid-column-builder.d.ts","sourceRoot":"","sources":["../../src/builders/coar-grid-column-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,wBAAwB,EACxB,eAAe,E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C5B,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IASnD,iFAAiF;IACjF,WAAW,CACT,EAAE,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,wBAAwB,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GAC1E,IAAI;IAaP,iCAAiC;IACjC,UAAU,CACR,EAAE,EAAE,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EACtB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EACtB,YAAY,EAAE,OAAO,KAClB,MAAM,GACV,IAAI;IASP,qCAAqC;IACrC,OAAO,CAAC,KAAK,GAAE,OAAO,GAAG,eAAe,CAAC,KAAK,EAAE,MAAM,CAAQ,GAAG,IAAI;IASrE,4EAA4E;IAC5E,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAUxF,6CAA6C;IAC7C,MAAM,CAAC,CAAC,SAAS,MAAM,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAK5F,0DAA0D;IAC1D,SAAS,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,IAAI;IAS5D,0CAA0C;IAC1C,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;CAG/B"}
@@ -0,0 +1,72 @@
1
+ import { CoarGridColumnBuilder } from './coar-grid-column-builder';
2
+ import { TagCellRendererConfig } from '../cell-renderers/tag-cell-renderer.models';
3
+ import { IconCellRendererConfig } from '../cell-renderers/icon-cell-renderer.models';
4
+ import { DateCellRendererConfig } from '../cell-renderers/date-cell-renderer.models';
5
+ /**
6
+ * Factory for creating typed column builders.
7
+ * Provides convenient methods for common column types.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // In column definitions:
12
+ * CoarGridBuilder.create<User>()
13
+ * .columns([
14
+ * col => col.field('name').header('Name').flex(1),
15
+ * col => col.field('createdAt').header('Created').width(150),
16
+ * col => col.tag('status', { variantMap: { active: 'success' } }),
17
+ * col => col.icon('type', { size: 's' }),
18
+ * ])
19
+ * ```
20
+ */
21
+ export declare class CoarGridColumnFactory<TData = unknown> {
22
+ /**
23
+ * Create a column builder for the given field
24
+ */
25
+ field<TValue = unknown>(fieldName: keyof TData | string): CoarGridColumnBuilder<TData, TValue>;
26
+ /**
27
+ * Create a date column with standard or custom formatting.
28
+ *
29
+ * @param format - Preset name ('short' | 'long' | 'datetime'), Intl options object, or custom formatter function
30
+ */
31
+ date(fieldName: keyof TData | string, format?: string | Intl.DateTimeFormatOptions | ((date: Date) => string)): CoarGridColumnBuilder<TData, Date | string>;
32
+ /**
33
+ * Create a number column with standard formatting
34
+ */
35
+ number(fieldName: keyof TData | string, decimals?: number): CoarGridColumnBuilder<TData, number>;
36
+ /**
37
+ * Create a currency column
38
+ */
39
+ currency(fieldName: keyof TData | string, currency?: string): CoarGridColumnBuilder<TData, number>;
40
+ /**
41
+ * Create a boolean column (displays Yes/No or custom values)
42
+ */
43
+ boolean(fieldName: keyof TData | string, options?: {
44
+ trueValue?: string;
45
+ falseValue?: string;
46
+ }): CoarGridColumnBuilder<TData, boolean>;
47
+ /**
48
+ * Create a tag column that renders values as `<CoarTag>` elements.
49
+ *
50
+ * Supports string (split by separator), array, and object array values.
51
+ *
52
+ * @param config - Tag rendering configuration (variantMap, size, i18nPrefix, etc.)
53
+ */
54
+ tag(fieldName: keyof TData | string, config?: TagCellRendererConfig): CoarGridColumnBuilder<TData, string | string[]>;
55
+ /**
56
+ * Create an icon column that renders values as `<CoarIcon>` elements.
57
+ *
58
+ * The cell value is used as the icon name.
59
+ *
60
+ * @param config - Icon rendering configuration (size, source, color, onClick)
61
+ */
62
+ icon(fieldName: keyof TData | string, config?: IconCellRendererConfig): CoarGridColumnBuilder<TData, string>;
63
+ /**
64
+ * Create a date column with locale-aware rendering via a cell renderer component.
65
+ *
66
+ * Unlike `date()`, this uses a cell renderer component for full locale integration.
67
+ *
68
+ * @param config - Date rendering configuration (showSeconds, customFormat)
69
+ */
70
+ localDate(fieldName: keyof TData | string, config?: DateCellRendererConfig): CoarGridColumnBuilder<TData, Date | string>;
71
+ }
72
+ //# sourceMappingURL=coar-grid-column-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coar-grid-column-factory.d.ts","sourceRoot":"","sources":["../../src/builders/coar-grid-column-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAE1F;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,qBAAqB,CAAC,KAAK,GAAG,OAAO;IAChD;;OAEG;IACH,KAAK,CAAC,MAAM,GAAG,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,GAAG,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC;IAI9F;;;;OAIG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,MAAM,GAAE,MAAM,GAAG,IAAI,CAAC,qBAAqB,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAW,GAC/E,qBAAqB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;IAwC9C;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAAE,QAAQ,SAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC;IAkB3F;;OAEG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,QAAQ,SAAQ,GACf,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC;IAkBvC;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAO,GACxD,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC;IAgBxC;;;;;;OAMG;IACH,GAAG,CACD,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,MAAM,CAAC,EAAE,qBAAqB,GAC7B,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAwBlD;;;;;;OAMG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,MAAM,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC;IAMvC;;;;;;OAMG;IACH,SAAS,CACP,SAAS,EAAE,MAAM,KAAK,GAAG,MAAM,EAC/B,MAAM,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;CAM/C"}
@@ -0,0 +1,4 @@
1
+ export { CoarGridBuilder, type ColumnDefinition, type RowSelectionOptions } from './coar-grid-builder';
2
+ export { CoarGridColumnBuilder } from './coar-grid-column-builder';
3
+ export { CoarGridColumnFactory } from './coar-grid-column-factory';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/builders/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ICellRendererParams } from 'ag-grid-community';
2
+ type __VLS_Props = {
3
+ params: ICellRendererParams;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=DateCellRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/DateCellRenderer.vue"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AA4DF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import { ICellRendererParams } from 'ag-grid-community';
2
+ type __VLS_Props = {
3
+ params: ICellRendererParams;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=IconCellRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/IconCellRenderer.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAK7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AAkFF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import { ICellRendererParams } from 'ag-grid-community';
2
+ type __VLS_Props = {
3
+ params: ICellRendererParams;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=TagCellRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/TagCellRenderer.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAW7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AAmHF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ export interface DateCellRendererConfig {
2
+ /** Include seconds in time display */
3
+ showSeconds?: boolean;
4
+ /** Custom date format string */
5
+ customFormat?: string;
6
+ }
7
+ //# sourceMappingURL=date-cell-renderer.models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-cell-renderer.models.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/date-cell-renderer.models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gCAAgC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,13 @@
1
+ import { CoarIconSize } from '@cocoar/vue-ui';
2
+ import { ICellRendererParams } from 'ag-grid-community';
3
+ export interface IconCellRendererConfig {
4
+ /** Icon size (default: 's') */
5
+ size?: CoarIconSize;
6
+ /** Icon source registry key */
7
+ source?: string;
8
+ /** CSS color value for the icon */
9
+ color?: string;
10
+ /** Click handler - when set, the icon becomes clickable */
11
+ onClick?: (params: ICellRendererParams) => void;
12
+ }
13
+ //# sourceMappingURL=icon-cell-renderer.models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-cell-renderer.models.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/icon-cell-renderer.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,WAAW,sBAAsB;IACrC,+BAA+B;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACjD"}
@@ -0,0 +1,7 @@
1
+ export { default as TagCellRenderer } from './TagCellRenderer.vue';
2
+ export { default as IconCellRenderer } from './IconCellRenderer.vue';
3
+ export { default as DateCellRenderer } from './DateCellRenderer.vue';
4
+ export type { TagCellRendererConfig } from './tag-cell-renderer.models';
5
+ export type { IconCellRendererConfig } from './icon-cell-renderer.models';
6
+ export type { DateCellRendererConfig } from './date-cell-renderer.models';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGrE,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { TagVariant, TagSize } from '@cocoar/vue-ui';
2
+ export interface TagCellRendererConfig {
3
+ /** Delimiter to split a string value into multiple tags (default: ',') */
4
+ separator?: string;
5
+ /** Default variant applied to all tags */
6
+ variant?: TagVariant;
7
+ /** Map a tag value to a specific variant */
8
+ variantMap?: Record<string, TagVariant>;
9
+ /** Tag size (default: 's') */
10
+ size?: TagSize;
11
+ /** Prefix for i18n translation keys (optional). When set, translates via `i18n.t(prefix + value)` */
12
+ i18nPrefix?: string;
13
+ /** Property name to read the label from when values are objects */
14
+ labelProperty?: string;
15
+ }
16
+ //# sourceMappingURL=tag-cell-renderer.models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-cell-renderer.models.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/tag-cell-renderer.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,8BAA8B;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qGAAqG;IACrG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,10 @@
1
+ export { CoarGridBuilder, type ColumnDefinition } from './builders';
2
+ export { CoarGridColumnBuilder } from './builders';
3
+ export { CoarGridColumnFactory } from './builders';
4
+ export { TagCellRenderer, IconCellRenderer, DateCellRenderer } from './cell-renderers';
5
+ export type { TagCellRendererConfig, IconCellRendererConfig, DateCellRendererConfig } from './cell-renderers';
6
+ export { cocoarTheme, createCocoarTheme } from './theme';
7
+ export type { ColDef, GridOptions, GridApi, GridReadyEvent, RowClickedEvent, RowDoubleClickedEvent, CellClickedEvent, CellDoubleClickedEvent, CellContextMenuEvent, GridSizeChangedEvent, ColumnState, GetRowIdFunc, RowClassParams, ValueFormatterParams, ValueGetterParams, CellClassParams, ICellRendererParams, IRowNode, PostSortRowsParams, GetQuickFilterTextParams, RowDragCallback, } from './models';
8
+ export { default as CoarDataGrid } from './CoarDataGrid.vue';
9
+ export { useDataGrid } from './useDataGrid';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACvF,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG9G,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGzD,YAAY,EACV,MAAM,EACN,WAAW,EACX,OAAO,EACP,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,GAChB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-exports commonly used AG Grid types for convenience.
3
+ */
4
+ export type { ColDef, GridOptions, GridApi, GridReadyEvent, RowClickedEvent, RowDoubleClickedEvent, CellClickedEvent, CellDoubleClickedEvent, CellContextMenuEvent, GridSizeChangedEvent, ColumnState, GetRowIdFunc, RowClassParams, ValueFormatterParams, ValueGetterParams, CellClassParams, ICellRendererParams, IRowNode, PostSortRowsParams, GetQuickFilterTextParams, RowDragCallback, } from 'ag-grid-community';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,MAAM,EACN,WAAW,EACX,OAAO,EACP,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,GAChB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { Theme } from 'ag-grid-community';
2
+ /**
3
+ * Creates the Cocoar AG Grid theme
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * import { createCocoarTheme } from '@cocoar/vue-ui';
8
+ *
9
+ * const gridOptions = {
10
+ * theme: createCocoarTheme(),
11
+ * // ...
12
+ * };
13
+ * ```
14
+ */
15
+ export declare function createCocoarTheme(): Theme;
16
+ /**
17
+ * Pre-configured Cocoar theme instance
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * import { cocoarTheme } from '@cocoar/vue-ui';
22
+ *
23
+ * <AgGridVue :theme="cocoarTheme" />
24
+ * ```
25
+ */
26
+ export declare const cocoarTheme: Theme;
27
+ //# sourceMappingURL=cocoar-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cocoar-theme.d.ts","sourceRoot":"","sources":["../../src/theme/cocoar-theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,IAAI,KAAK,CAoCzC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,OAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createCocoarTheme, cocoarTheme } from './cocoar-theme';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { Ref } from 'vue';
2
+ import { CoarGridBuilder } from './builders';
3
+ /**
4
+ * Composable that creates a CoarGridBuilder for use with CoarDataGrid.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const { builder } = useDataGrid<User>();
9
+ *
10
+ * builder.columns([
11
+ * col => col.field('name').header('Name').flex(1),
12
+ * col => col.field('email').header('Email').flex(1),
13
+ * ]).rowDataRef(users);
14
+ * ```
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <CoarDataGrid :builder="builder" />
19
+ * ```
20
+ */
21
+ export declare function useDataGrid<TData = unknown>(): {
22
+ builder: CoarGridBuilder<TData>;
23
+ gridReady: Readonly<Ref<boolean>>;
24
+ };
25
+ //# sourceMappingURL=useDataGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDataGrid.d.ts","sourceRoot":"","sources":["../src/useDataGrid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,KAAK,GAAG,OAAO,KAAK;IAC9C,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;CACnC,CAOA"}
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "@cocoar/vue-data-grid",
3
- "version": "0.1.0-beta.25",
3
+ "version": "1.0.0",
4
+ "description": "AG Grid wrapper with Cocoar Design System theming for Vue 3",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/cocoar-dev/cocoar-ui-vue.git",
9
+ "directory": "packages/data-grid"
10
+ },
11
+ "homepage": "https://docs.cocoar.dev/cocoar-ui-vue/",
12
+ "bugs": "https://github.com/cocoar-dev/cocoar-ui-vue/issues",
13
+ "keywords": [
14
+ "vue",
15
+ "vue3",
16
+ "data-grid",
17
+ "ag-grid",
18
+ "table"
19
+ ],
4
20
  "type": "module",
5
21
  "sideEffects": [
6
22
  "*.css"
@@ -25,8 +41,8 @@
25
41
  },
26
42
  "peerDependencies": {
27
43
  "vue": "^3.5.0",
28
- "@cocoar/vue-ui": "0.1.0-beta.25",
29
- "@cocoar/vue-localization": "0.1.0-beta.25"
44
+ "@cocoar/vue-ui": "1.0.0",
45
+ "@cocoar/vue-localization": "1.0.0"
30
46
  },
31
47
  "devDependencies": {
32
48
  "vue": "^3.5.0",