@cocoar/vue-data-grid 1.17.0 → 2.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.
- package/dist/builders/coar-grid-builder.d.ts +6 -1
- package/dist/builders/coar-grid-builder.d.ts.map +1 -1
- package/dist/builders/coar-grid-column-builder.d.ts +20 -0
- package/dist/builders/coar-grid-column-builder.d.ts.map +1 -1
- package/dist/builders/coar-grid-column-factory.d.ts +202 -2
- package/dist/builders/coar-grid-column-factory.d.ts.map +1 -1
- package/dist/cell-renderers/CoarCheckboxCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarCheckboxCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarCheckboxCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarCheckboxCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarMultiSelectCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarMultiSelectCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarMultiSelectCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarMultiSelectCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarNumberCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarNumberCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarPlainDateCellEditor.vue.d.ts +52 -0
- package/dist/cell-renderers/CoarPlainDateCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarPlainDateCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarPlainDateCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarPlainDateTimeCellEditor.vue.d.ts +56 -0
- package/dist/cell-renderers/CoarPlainDateTimeCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarPlainDateTimeCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarPlainDateTimeCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarSelectCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarSelectCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarSelectCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarSelectCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarTagSelectCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarTagSelectCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarTextCellEditor.vue.d.ts +15 -0
- package/dist/cell-renderers/CoarTextCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarZonedDateTimeCellEditor.vue.d.ts +66 -0
- package/dist/cell-renderers/CoarZonedDateTimeCellEditor.vue.d.ts.map +1 -0
- package/dist/cell-renderers/CoarZonedDateTimeCellRenderer.vue.d.ts +7 -0
- package/dist/cell-renderers/CoarZonedDateTimeCellRenderer.vue.d.ts.map +1 -0
- package/dist/cell-renderers/checkbox-cell-renderer.models.d.ts +18 -0
- package/dist/cell-renderers/checkbox-cell-renderer.models.d.ts.map +1 -0
- package/dist/cell-renderers/index.d.ts +22 -0
- package/dist/cell-renderers/index.d.ts.map +1 -1
- package/dist/cell-renderers/multi-select-cell-editor.models.d.ts +41 -0
- package/dist/cell-renderers/multi-select-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/number-cell-editor.models.d.ts +23 -0
- package/dist/cell-renderers/number-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/plain-date-cell-editor.models.d.ts +30 -0
- package/dist/cell-renderers/plain-date-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/plain-date-time-cell-editor.models.d.ts +29 -0
- package/dist/cell-renderers/plain-date-time-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/select-cell-editor.models.d.ts +24 -0
- package/dist/cell-renderers/select-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/text-cell-editor.models.d.ts +19 -0
- package/dist/cell-renderers/text-cell-editor.models.d.ts.map +1 -0
- package/dist/cell-renderers/use-popup-editor-focus-guard.d.ts +29 -0
- package/dist/cell-renderers/use-popup-editor-focus-guard.d.ts.map +1 -0
- package/dist/cell-renderers/zoned-date-time-cell-editor.models.d.ts +52 -0
- package/dist/cell-renderers/zoned-date-time-cell-editor.models.d.ts.map +1 -0
- package/dist/configurators/CheckboxColumnConfigurator.d.ts +29 -0
- package/dist/configurators/CheckboxColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/MultiSelectColumnConfigurator.d.ts +46 -0
- package/dist/configurators/MultiSelectColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/NumberColumnConfigurator.d.ts +45 -0
- package/dist/configurators/NumberColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/PlainDateColumnConfigurator.d.ts +42 -0
- package/dist/configurators/PlainDateColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/PlainDateTimeColumnConfigurator.d.ts +33 -0
- package/dist/configurators/PlainDateTimeColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/SelectColumnConfigurator.d.ts +36 -0
- package/dist/configurators/SelectColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/TagSelectColumnConfigurator.d.ts +48 -0
- package/dist/configurators/TagSelectColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/TextColumnConfigurator.d.ts +32 -0
- package/dist/configurators/TextColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/ZonedDateTimeColumnConfigurator.d.ts +53 -0
- package/dist/configurators/ZonedDateTimeColumnConfigurator.d.ts.map +1 -0
- package/dist/configurators/index.d.ts +10 -0
- package/dist/configurators/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5537 -4715
- package/package.json +5 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, WatchSource } from 'vue';
|
|
2
|
-
import { ColDef, GridApi, GridOptions, GridReadyEvent, RowClickedEvent, RowDoubleClickedEvent, CellClickedEvent, CellDoubleClickedEvent, GetRowIdFunc, RowClassParams, IRowNode, IsExternalFilterPresentParams, GridSizeChangedEvent, CellContextMenuEvent, ColumnState, PostSortRowsParams, RowDragEndEvent } from 'ag-grid-community';
|
|
2
|
+
import { ColDef, GridApi, GridOptions, GridReadyEvent, RowClickedEvent, RowDoubleClickedEvent, CellClickedEvent, CellDoubleClickedEvent, CellValueChangedEvent, GetRowIdFunc, RowClassParams, IRowNode, IsExternalFilterPresentParams, GridSizeChangedEvent, CellContextMenuEvent, ColumnState, PostSortRowsParams, RowDragEndEvent } from 'ag-grid-community';
|
|
3
3
|
import { CoarGridColumnBuilder } from './coar-grid-column-builder';
|
|
4
4
|
import { CoarGridColumnFactory } from './coar-grid-column-factory';
|
|
5
5
|
type ColumnBuilderLike<TData> = {
|
|
@@ -300,6 +300,11 @@ export declare class CoarGridBuilder<TData = unknown> {
|
|
|
300
300
|
onCellClicked(handler: (event: CellClickedEvent<TData>) => void): this;
|
|
301
301
|
/** Handle cell double-click */
|
|
302
302
|
onCellDoubleClicked(handler: (event: CellDoubleClickedEvent<TData>) => void): this;
|
|
303
|
+
/**
|
|
304
|
+
* Handle cell value change after an in-cell edit is committed.
|
|
305
|
+
* Fires once per cell commit. Use together with column-level `editable()` and (optionally) `cellEditorConfig()`.
|
|
306
|
+
*/
|
|
307
|
+
onCellValueChanged(handler: (event: CellValueChangedEvent<TData>) => void): this;
|
|
303
308
|
/** Handle grid size changed event */
|
|
304
309
|
onGridSizeChanged(handler: (event: GridSizeChangedEvent<TData>) => void): this;
|
|
305
310
|
/** Handle cell context menu (right-click). Ctrl+click is passed through to the browser. */
|
|
@@ -1 +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,EAAq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;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,KAAK,UAAO,GAAG,IAAI;IASnC,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;IAkX1C,mEAAmE;IACnE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI;IAqI3D,2DAA2D;IAC3D,QAAQ,IAAI,IAAI;IAchB,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;IAQ7B,2FAA2F;IAC3F,YAAY,IAAI,OAAO;CAGxB"}
|
|
@@ -111,6 +111,26 @@ export declare class CoarGridColumnBuilder<TData = unknown, TValue = unknown> {
|
|
|
111
111
|
rowDrag(value?: boolean | RowDragCallback<TData, TValue>): this;
|
|
112
112
|
/** Set cell renderer with config object (params wrapped in `config` key) */
|
|
113
113
|
cellRendererConfig(component: Component, config: Record<string, unknown> | object): this;
|
|
114
|
+
/**
|
|
115
|
+
* Make this column editable. Accepts a static boolean or a row predicate.
|
|
116
|
+
*
|
|
117
|
+
* Without `cellEditorConfig()`, AG Grid uses its default text editor.
|
|
118
|
+
* Use together with `gridBuilder.onCellValueChanged()` to react to commits.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* column.field('name').editable(true)
|
|
123
|
+
* column.field('price').editable(row => !row.locked)
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
editable(value: boolean | ((row: TData) => boolean)): this;
|
|
127
|
+
/**
|
|
128
|
+
* Set a custom cell editor with a config object (params wrapped in `config` key).
|
|
129
|
+
* Mirrors `cellRendererConfig`. The component must expose `getValue()` per AG Grid contract.
|
|
130
|
+
*
|
|
131
|
+
* Note: orthogonal to `editable()` — set both, otherwise the editor never opens.
|
|
132
|
+
*/
|
|
133
|
+
cellEditorConfig(component: Component, config: Record<string, unknown> | object): this;
|
|
114
134
|
/** Set any AG Grid ColDef option directly */
|
|
115
135
|
option<K extends keyof ColDef<TData, TValue>>(key: K, value: ColDef<TData, TValue>[K]): this;
|
|
116
136
|
/** Apply custom modifications to the column definition */
|
|
@@ -1 +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,eAAe,EACf,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,wBAAwB,CAAC;A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G,IAAI;IASrE,4EAA4E;IAC5E,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAUxF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,IAAI;IAS1D;;;;;OAKG;IACH,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAUtF,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"}
|
|
@@ -6,6 +6,16 @@ import { DateCellRendererConfig } from '../cell-renderers/date-cell-renderer.mod
|
|
|
6
6
|
import { NumberCellRendererConfig } from '../cell-renderers/number-cell-renderer.models';
|
|
7
7
|
import { CurrencyCellRendererConfig } from '../cell-renderers/currency-cell-renderer.models';
|
|
8
8
|
import { TreeCellRendererConfig } from '../cell-renderers/tree-cell-renderer.models';
|
|
9
|
+
import { CheckboxColumnConfigurator } from '../configurators/CheckboxColumnConfigurator';
|
|
10
|
+
import { TextColumnConfigurator } from '../configurators/TextColumnConfigurator';
|
|
11
|
+
import { NumberColumnConfigurator } from '../configurators/NumberColumnConfigurator';
|
|
12
|
+
import { SelectColumnConfigurator } from '../configurators/SelectColumnConfigurator';
|
|
13
|
+
import { MultiSelectColumnConfigurator } from '../configurators/MultiSelectColumnConfigurator';
|
|
14
|
+
import { TagSelectColumnConfigurator } from '../configurators/TagSelectColumnConfigurator';
|
|
15
|
+
import { PlainDateColumnConfigurator } from '../configurators/PlainDateColumnConfigurator';
|
|
16
|
+
import { PlainDateTimeColumnConfigurator } from '../configurators/PlainDateTimeColumnConfigurator';
|
|
17
|
+
import { ZonedDateTimeColumnConfigurator } from '../configurators/ZonedDateTimeColumnConfigurator';
|
|
18
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
9
19
|
/**
|
|
10
20
|
* Factory for creating typed column builders.
|
|
11
21
|
* Provides convenient methods for common column types.
|
|
@@ -42,9 +52,39 @@ export declare class CoarGridColumnFactory<TData = unknown> {
|
|
|
42
52
|
* Uses the localization system (`useL10n().fmtNumber()`) for formatting,
|
|
43
53
|
* so the display updates reactively on locale change.
|
|
44
54
|
*
|
|
45
|
-
*
|
|
55
|
+
* Two forms — both work, no breaking change:
|
|
56
|
+
* - **Config-object** (legacy): `col.number('amount', { decimals: 2 })`
|
|
57
|
+
* - **Configurator callback** (new): `col.number('amount', n => n.decimals(2).min(0).max(100))`
|
|
58
|
+
*
|
|
59
|
+
* The callback form bundles `CoarNumberCellEditor` automatically, so adding
|
|
60
|
+
* `.editable(true)` on the outer chain enables Coar-styled in-cell editing.
|
|
61
|
+
* The config-object form keeps current behavior (renderer only).
|
|
62
|
+
*
|
|
63
|
+
* @param configOrCallback - Plain config object or a configurator callback
|
|
64
|
+
*/
|
|
65
|
+
number(fieldName: keyof TData | string, configOrCallback?: NumberCellRendererConfig | ((n: NumberColumnConfigurator) => NumberColumnConfigurator)): CoarGridColumnBuilder<TData, number>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a text column.
|
|
68
|
+
*
|
|
69
|
+
* Uses AG Grid's default text rendering for display. When chained with
|
|
70
|
+
* `.editable(true)` (or a row-predicate), opens `CoarTextCellEditor` on
|
|
71
|
+
* double-click / Enter / F2 — visual consistency with form text inputs,
|
|
72
|
+
* plus AG Grid's standard Tab-through-edit-mode navigation.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* // simple editable text column
|
|
77
|
+
* col.text('name').editable(true)
|
|
78
|
+
*
|
|
79
|
+
* // with editor config
|
|
80
|
+
* col.text('email', t => t.placeholder('user@example.com').maxLength(120))
|
|
81
|
+
* .editable(true)
|
|
82
|
+
*
|
|
83
|
+
* // gated by row state
|
|
84
|
+
* col.text('comment', t => t.maxLength(500)).editable(row => !row.locked)
|
|
85
|
+
* ```
|
|
46
86
|
*/
|
|
47
|
-
|
|
87
|
+
text(fieldName: keyof TData | string, configurator?: (t: TextColumnConfigurator) => TextColumnConfigurator): CoarGridColumnBuilder<TData, string>;
|
|
48
88
|
/**
|
|
49
89
|
* Create a currency column with locale-aware rendering.
|
|
50
90
|
*
|
|
@@ -61,6 +101,166 @@ export declare class CoarGridColumnFactory<TData = unknown> {
|
|
|
61
101
|
trueValue?: string;
|
|
62
102
|
falseValue?: string;
|
|
63
103
|
}): CoarGridColumnBuilder<TData, boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Create a select column.
|
|
106
|
+
*
|
|
107
|
+
* Renderer displays the LABEL of the option matching the cell value (falls
|
|
108
|
+
* back to the raw value if no option matches). Editor opens a `<CoarSelect>`
|
|
109
|
+
* dropdown on double-click / Enter / F2 — selecting an option auto-commits
|
|
110
|
+
* via `cellValueChanged` and exits edit-mode.
|
|
111
|
+
*
|
|
112
|
+
* Whether the column is editable is gated by the column-level `editable()`
|
|
113
|
+
* chain — same pattern as text/number/checkbox.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const ROLES = [
|
|
118
|
+
* { value: 'eng', label: 'Engineer' },
|
|
119
|
+
* { value: 'des', label: 'Designer' },
|
|
120
|
+
* { value: 'mgr', label: 'Manager' },
|
|
121
|
+
* ];
|
|
122
|
+
*
|
|
123
|
+
* col.select('role', s => s.options(ROLES)).editable(true)
|
|
124
|
+
*
|
|
125
|
+
* // dynamic options
|
|
126
|
+
* col.select('parent', s => s.options(row => allowedParents(row))).editable(true)
|
|
127
|
+
*
|
|
128
|
+
* // searchable + clearable
|
|
129
|
+
* col.select('country', s => s.options(COUNTRIES).searchable().clearable())
|
|
130
|
+
* .editable(true)
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
select<T = unknown>(fieldName: keyof TData | string, configurator: (s: SelectColumnConfigurator<TData, T>) => SelectColumnConfigurator<TData, T>): CoarGridColumnBuilder<TData, T>;
|
|
134
|
+
/**
|
|
135
|
+
* Create a multi-select column with a checkbox-list dropdown editor.
|
|
136
|
+
*
|
|
137
|
+
* Cell value is `T[]`. The renderer looks up labels from `options` and shows
|
|
138
|
+
* them comma-separated by default; opt into chips via `.display('chips')`.
|
|
139
|
+
* The editor opens a `<CoarMultiSelect>` dropdown that stays open while the
|
|
140
|
+
* user toggles checkboxes — focus-preservation prevents AG Grid from
|
|
141
|
+
* committing prematurely. Commit happens via the standard focus-loss path
|
|
142
|
+
* (click outside / Tab / Enter), AG Grid pulls the final array via
|
|
143
|
+
* `getValue()`.
|
|
144
|
+
*
|
|
145
|
+
* Whether the column is editable is gated by the column-level `.editable()`
|
|
146
|
+
* chain — same pattern as text/number/select/checkbox.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* col.multiSelect('tags', s => s
|
|
151
|
+
* .options([{ value: 'a', label: 'Alpha' }, { value: 'b', label: 'Beta' }])
|
|
152
|
+
* .searchable()
|
|
153
|
+
* .showSelectAll()
|
|
154
|
+
* .display('chips')
|
|
155
|
+
* ).editable(true)
|
|
156
|
+
*
|
|
157
|
+
* // row-aware options
|
|
158
|
+
* col.multiSelect('perms', s => s.options(row => permsFor(row.role)))
|
|
159
|
+
* .editable(true)
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
multiSelect<T = unknown>(fieldName: keyof TData | string, configurator: (s: MultiSelectColumnConfigurator<TData, T>) => MultiSelectColumnConfigurator<TData, T>): CoarGridColumnBuilder<TData, T[]>;
|
|
163
|
+
/**
|
|
164
|
+
* Create a tag-style multi-select column. Cell value is `T[]`.
|
|
165
|
+
*
|
|
166
|
+
* Same renderer as `col.multiSelect()` (comma-separated by default,
|
|
167
|
+
* chips opt-in). The editor uses `<CoarTagSelect>` — selected values render
|
|
168
|
+
* as removable chips inside the trigger, and the dropdown only lists
|
|
169
|
+
* not-yet-selected options. With `.allowCreate()`, the user can type
|
|
170
|
+
* free-form values that aren't in `options`; those round-trip into the cell
|
|
171
|
+
* array verbatim, and the renderer falls back to `String(value)` for
|
|
172
|
+
* unknown labels.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* col.tagSelect('skills', s => s
|
|
177
|
+
* .options([{ value: 'ts', label: 'TypeScript' }, { value: 'go', label: 'Go' }])
|
|
178
|
+
* .allowCreate()
|
|
179
|
+
* .display('chips')
|
|
180
|
+
* ).editable(true)
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
tagSelect<T = unknown>(fieldName: keyof TData | string, configurator: (s: TagSelectColumnConfigurator<TData, T>) => TagSelectColumnConfigurator<TData, T>): CoarGridColumnBuilder<TData, T[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Create a column for `Temporal.PlainDate` values (calendar date, no time).
|
|
186
|
+
*
|
|
187
|
+
* Renderer formats via `toLocaleString` (date-style: medium); editor wraps
|
|
188
|
+
* `<CoarPlainDatePicker>`. Cell value MUST be `Temporal.PlainDate | null` —
|
|
189
|
+
* consumers convert ISO strings / native `Date` at the data layer (the
|
|
190
|
+
* Temporal-only contract matches the calendar package).
|
|
191
|
+
*
|
|
192
|
+
* The legacy `col.date()` shortcut (Date | string display-only, no editor)
|
|
193
|
+
* remains unchanged for back-compat with existing consumer code.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```ts
|
|
197
|
+
* col.plainDate('startsOn', d => d.size('s').highlightWeekends())
|
|
198
|
+
* .editable(true)
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
plainDate(fieldName: keyof TData | string, configurator?: (d: PlainDateColumnConfigurator<TData>) => PlainDateColumnConfigurator<TData>): CoarGridColumnBuilder<TData, Temporal.PlainDate | null>;
|
|
202
|
+
/**
|
|
203
|
+
* Create a column for `Temporal.PlainDateTime` values (floating wallclock).
|
|
204
|
+
*
|
|
205
|
+
* Renderer formats with date-style: medium + time-style: short. Editor
|
|
206
|
+
* wraps `<CoarPlainDateTimePicker>`.
|
|
207
|
+
*
|
|
208
|
+
* Use `col.zonedDateTime()` when the event lives in a specific IANA zone
|
|
209
|
+
* (cross-zone tools, calendar integration, etc.).
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* col.plainDateTime('localizedAt', d => d.size('s')).editable(true)
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
plainDateTime(fieldName: keyof TData | string, configurator?: (d: PlainDateTimeColumnConfigurator<TData>) => PlainDateTimeColumnConfigurator<TData>): CoarGridColumnBuilder<TData, Temporal.PlainDateTime | null>;
|
|
217
|
+
/**
|
|
218
|
+
* Create a column for `Temporal.ZonedDateTime` values (date+time+zone).
|
|
219
|
+
*
|
|
220
|
+
* Renderer formats with date-style: medium + time-style: short + a short
|
|
221
|
+
* zone-name suffix so cross-zone columns stay unambiguous at a glance.
|
|
222
|
+
* Editor wraps `<CoarZonedDateTimePicker>`, which surfaces its own zone
|
|
223
|
+
* selector.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```ts
|
|
227
|
+
* col.zonedDateTime('eventAt', d => d
|
|
228
|
+
* .timeZone('Europe/Vienna')
|
|
229
|
+
* .timezoneFilter(['Europe/*', 'America/*'])
|
|
230
|
+
* ).editable(true)
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
zonedDateTime(fieldName: keyof TData | string, configurator?: (d: ZonedDateTimeColumnConfigurator<TData>) => ZonedDateTimeColumnConfigurator<TData>): CoarGridColumnBuilder<TData, Temporal.ZonedDateTime | null>;
|
|
234
|
+
/**
|
|
235
|
+
* Create a checkbox column.
|
|
236
|
+
*
|
|
237
|
+
* The renderer is **always read-only** (`<CoarCheckbox>` with pointer-events
|
|
238
|
+
* disabled) — the same pattern as text/number/select columns. To allow editing,
|
|
239
|
+
* chain `.editable(true)` or `.editable(row => …)` on the outer column builder.
|
|
240
|
+
* AG Grid then opens `<CoarCheckboxCellEditor>` on double-click / Enter / F2.
|
|
241
|
+
* Inside edit-mode, Space toggles, Tab commits and moves to the next editable
|
|
242
|
+
* cell (opening its editor), Enter commits, Escape cancels — standard AG Grid
|
|
243
|
+
* keyboard navigation.
|
|
244
|
+
*
|
|
245
|
+
* Toggles fire `cellValueChanged` like any other editor commit, so a single
|
|
246
|
+
* `gridBuilder.onCellValueChanged()` handler covers all column types.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```ts
|
|
250
|
+
* // readonly indicator
|
|
251
|
+
* col.checkbox('done')
|
|
252
|
+
*
|
|
253
|
+
* // interactive (double-click → toggle → Tab to next editable cell)
|
|
254
|
+
* col.checkbox('done').editable(true)
|
|
255
|
+
*
|
|
256
|
+
* // gated by row state
|
|
257
|
+
* col.checkbox('done').editable(row => !row.locked)
|
|
258
|
+
*
|
|
259
|
+
* // with configurator (label / indeterminate / size)
|
|
260
|
+
* col.checkbox('done', c => c.label('Done').size('s')).editable(true)
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
checkbox(fieldName: keyof TData | string, configurator?: (c: CheckboxColumnConfigurator<TData>) => CheckboxColumnConfigurator<TData>): CoarGridColumnBuilder<TData, boolean>;
|
|
64
264
|
/**
|
|
65
265
|
* Create a tag column that renders values as `<CoarTag>` elements.
|
|
66
266
|
*
|
|
@@ -1 +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;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;
|
|
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;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAsBlF,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;AAC1F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,+BAA+B,EA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EAAE,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,GAC1C,4BAA4B,CAAC,KAAK,EAAE,MAAM,CAAC;CAG/C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { CheckboxCellRendererConfig } from './checkbox-cell-renderer.models';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
params: ICellEditorParams<unknown, boolean> & {
|
|
5
|
+
config?: CheckboxCellRendererConfig<unknown>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getValue: () => boolean;
|
|
10
|
+
afterGuiAttached: () => void;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
rootRef: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=CoarCheckboxCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarCheckboxCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarCheckboxCellEditor.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;QAC5C,MAAM,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC;;;;;;;AAkHF,wBASG"}
|
|
@@ -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, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=CoarCheckboxCellRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarCheckboxCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarCheckboxCellRenderer.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AAuFF,wBAMG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { MultiSelectCellEditorConfig } from './multi-select-cell-editor.models';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
params: ICellEditorParams<unknown, unknown[]> & {
|
|
5
|
+
config?: MultiSelectCellEditorConfig<unknown, unknown>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getValue: () => unknown[];
|
|
10
|
+
afterGuiAttached: () => void;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
rootRef: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=CoarMultiSelectCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMultiSelectCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarMultiSelectCellEditor.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAGrF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG;QAC9C,MAAM,CAAC,EAAE,2BAA2B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;KACxD,CAAC;CACH,CAAC;;;;;;;AAwHF,wBASG"}
|
|
@@ -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=CoarMultiSelectCellRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMultiSelectCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarMultiSelectCellRenderer.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAK7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AA+FF,wBAOG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { NumberCellEditorConfig } from './number-cell-editor.models';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
params: ICellEditorParams<unknown, number> & {
|
|
5
|
+
config?: NumberCellEditorConfig;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getValue: () => number | null;
|
|
10
|
+
afterGuiAttached: () => void;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
rootRef: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=CoarNumberCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarNumberCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarNumberCellEditor.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG;QAC3C,MAAM,CAAC,EAAE,sBAAsB,CAAC;KACjC,CAAC;CACH,CAAC;;;;;;;AAsHF,wBASG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { PlainDateCellEditorConfig } from './plain-date-cell-editor.models';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
params: ICellEditorParams<unknown, Temporal.PlainDate | null> & {
|
|
6
|
+
config?: PlainDateCellEditorConfig<unknown>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
|
+
getValue: () => {
|
|
11
|
+
readonly era: string | undefined;
|
|
12
|
+
readonly eraYear: number | undefined;
|
|
13
|
+
readonly year: number;
|
|
14
|
+
readonly month: number;
|
|
15
|
+
readonly monthCode: string;
|
|
16
|
+
readonly day: number;
|
|
17
|
+
readonly calendarId: string;
|
|
18
|
+
readonly dayOfWeek: number;
|
|
19
|
+
readonly dayOfYear: number;
|
|
20
|
+
readonly weekOfYear: number | undefined;
|
|
21
|
+
readonly yearOfWeek: number | undefined;
|
|
22
|
+
readonly daysInWeek: number;
|
|
23
|
+
readonly daysInYear: number;
|
|
24
|
+
readonly daysInMonth: number;
|
|
25
|
+
readonly monthsInYear: number;
|
|
26
|
+
readonly inLeapYear: boolean;
|
|
27
|
+
equals: (other: Temporal.PlainDate | Temporal.PlainDateLike | string) => boolean;
|
|
28
|
+
with: (dateLike: Temporal.PlainDateLike, options?: Temporal.AssignmentOptions) => Temporal.PlainDate;
|
|
29
|
+
withCalendar: (calendar: Temporal.CalendarLike) => Temporal.PlainDate;
|
|
30
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainDate;
|
|
31
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainDate;
|
|
32
|
+
until: (other: Temporal.PlainDate | Temporal.PlainDateLike | string, options?: Temporal.DifferenceOptions<"year" | "month" | "week" | "day">) => Temporal.Duration;
|
|
33
|
+
since: (other: Temporal.PlainDate | Temporal.PlainDateLike | string, options?: Temporal.DifferenceOptions<"year" | "month" | "week" | "day">) => Temporal.Duration;
|
|
34
|
+
toPlainDateTime: (temporalTime?: Temporal.PlainTime | Temporal.PlainTimeLike | string) => Temporal.PlainDateTime;
|
|
35
|
+
toZonedDateTime: (timeZoneAndTime: string | {
|
|
36
|
+
timeZone: Temporal.TimeZoneLike;
|
|
37
|
+
plainTime?: Temporal.PlainTime | Temporal.PlainTimeLike | string;
|
|
38
|
+
}) => Temporal.ZonedDateTime;
|
|
39
|
+
toPlainYearMonth: () => Temporal.PlainYearMonth;
|
|
40
|
+
toPlainMonthDay: () => Temporal.PlainMonthDay;
|
|
41
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
42
|
+
toJSON: () => string;
|
|
43
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
44
|
+
valueOf: () => never;
|
|
45
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainDate";
|
|
46
|
+
} | null;
|
|
47
|
+
afterGuiAttached: () => void;
|
|
48
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
49
|
+
rootRef: HTMLDivElement;
|
|
50
|
+
}, HTMLDivElement>;
|
|
51
|
+
export default _default;
|
|
52
|
+
//# sourceMappingURL=CoarPlainDateCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarPlainDateCellEditor.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAkB,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAejG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG;QAC9D,MAAM,CAAC,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC;KAC7C,CAAC;CACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoImtkB,CAAC;;;;;;;;;;;;;;AAjBttkB,wBASG"}
|
|
@@ -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=CoarPlainDateCellRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarPlainDateCellRenderer.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AA2DF,wBAOG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { PlainDateTimeCellEditorConfig } from './plain-date-time-cell-editor.models';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
params: ICellEditorParams<unknown, Temporal.PlainDateTime | null> & {
|
|
6
|
+
config?: PlainDateTimeCellEditorConfig<unknown>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
|
+
getValue: () => {
|
|
11
|
+
readonly era: string | undefined;
|
|
12
|
+
readonly eraYear: number | undefined;
|
|
13
|
+
readonly year: number;
|
|
14
|
+
readonly month: number;
|
|
15
|
+
readonly monthCode: string;
|
|
16
|
+
readonly day: number;
|
|
17
|
+
readonly hour: number;
|
|
18
|
+
readonly minute: number;
|
|
19
|
+
readonly second: number;
|
|
20
|
+
readonly millisecond: number;
|
|
21
|
+
readonly microsecond: number;
|
|
22
|
+
readonly nanosecond: number;
|
|
23
|
+
readonly calendarId: string;
|
|
24
|
+
readonly dayOfWeek: number;
|
|
25
|
+
readonly dayOfYear: number;
|
|
26
|
+
readonly weekOfYear: number | undefined;
|
|
27
|
+
readonly yearOfWeek: number | undefined;
|
|
28
|
+
readonly daysInWeek: number;
|
|
29
|
+
readonly daysInYear: number;
|
|
30
|
+
readonly daysInMonth: number;
|
|
31
|
+
readonly monthsInYear: number;
|
|
32
|
+
readonly inLeapYear: boolean;
|
|
33
|
+
equals: (other: Temporal.PlainDateTime | Temporal.PlainDateTimeLike | string) => boolean;
|
|
34
|
+
with: (dateTimeLike: Temporal.PlainDateTimeLike, options?: Temporal.AssignmentOptions) => Temporal.PlainDateTime;
|
|
35
|
+
withPlainTime: (timeLike?: Temporal.PlainTime | Temporal.PlainTimeLike | string) => Temporal.PlainDateTime;
|
|
36
|
+
withCalendar: (calendar: Temporal.CalendarLike) => Temporal.PlainDateTime;
|
|
37
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainDateTime;
|
|
38
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainDateTime;
|
|
39
|
+
until: (other: Temporal.PlainDateTime | Temporal.PlainDateTimeLike | string, options?: Temporal.DifferenceOptions<"year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond">) => Temporal.Duration;
|
|
40
|
+
since: (other: Temporal.PlainDateTime | Temporal.PlainDateTimeLike | string, options?: Temporal.DifferenceOptions<"year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond">) => Temporal.Duration;
|
|
41
|
+
round: (roundTo: Temporal.RoundTo<"day" | "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond">) => Temporal.PlainDateTime;
|
|
42
|
+
toZonedDateTime: (tzLike: Temporal.TimeZoneLike, options?: Temporal.ToInstantOptions) => Temporal.ZonedDateTime;
|
|
43
|
+
toPlainDate: () => Temporal.PlainDate;
|
|
44
|
+
toPlainTime: () => Temporal.PlainTime;
|
|
45
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
46
|
+
toJSON: () => string;
|
|
47
|
+
toString: (options?: Temporal.CalendarTypeToStringOptions) => string;
|
|
48
|
+
valueOf: () => never;
|
|
49
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainDateTime";
|
|
50
|
+
} | null;
|
|
51
|
+
afterGuiAttached: () => void;
|
|
52
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
53
|
+
rootRef: HTMLDivElement;
|
|
54
|
+
}, HTMLDivElement>;
|
|
55
|
+
export default _default;
|
|
56
|
+
//# sourceMappingURL=CoarPlainDateTimeCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimeCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarPlainDateTimeCellEditor.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAQ1F,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG;QAClE,MAAM,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;KACjD,CAAC;CACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GF,wBASG"}
|
|
@@ -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=CoarPlainDateTimeCellRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimeCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarPlainDateTimeCellRenderer.vue"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AA2DF,wBAOG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { SelectCellEditorConfig } from './select-cell-editor.models';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
params: ICellEditorParams<unknown, unknown> & {
|
|
5
|
+
config?: SelectCellEditorConfig<unknown, unknown>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getValue: () => unknown;
|
|
10
|
+
afterGuiAttached: () => void;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
rootRef: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=CoarSelectCellEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarSelectCellEditor.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarSelectCellEditor.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAG1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;QAC5C,MAAM,CAAC,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;KACnD,CAAC;CACH,CAAC;;;;;;;AAsIF,wBASG"}
|
|
@@ -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=CoarSelectCellRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarSelectCellRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/cell-renderers/CoarSelectCellRenderer.vue"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;;AAgEF,wBAOG"}
|