@nouxwell/tabula-vue 0.0.0-stage → 0.5.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.
@@ -0,0 +1,405 @@
1
+ import { type PropType } from "vue";
2
+ import { type GridLocale } from "./messages.js";
3
+ import type TabulaGrid from "./TabulaGrid.vue.js";
4
+ import type { GridTheme } from "./types.js";
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ /** The grid it belongs to: its template ref. */
7
+ grid: {
8
+ type: PropType<InstanceType<typeof TabulaGrid> | null>;
9
+ default: null;
10
+ };
11
+ locale: {
12
+ type: PropType<GridLocale>;
13
+ default: string;
14
+ };
15
+ theme: {
16
+ type: PropType<GridTheme>;
17
+ default: string;
18
+ };
19
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ /** The grid it belongs to: its template ref. */
21
+ grid: {
22
+ type: PropType<InstanceType<typeof TabulaGrid> | null>;
23
+ default: null;
24
+ };
25
+ locale: {
26
+ type: PropType<GridLocale>;
27
+ default: string;
28
+ };
29
+ theme: {
30
+ type: PropType<GridTheme>;
31
+ default: string;
32
+ };
33
+ }>> & Readonly<{}>, {
34
+ grid: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
35
+ schema: {
36
+ type: PropType<import("@nouxwell/tabula-core").ModuleSchema>;
37
+ required: true;
38
+ };
39
+ store: {
40
+ type: PropType<import("@nouxwell/tabula-core").RowStore>;
41
+ required: true;
42
+ };
43
+ columnSizing: {
44
+ type: PropType<Partial<import("@nouxwell/tabula-core").ColumnSizing>>;
45
+ default: undefined;
46
+ };
47
+ columnOverrides: {
48
+ type: PropType<Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>>;
49
+ default: undefined;
50
+ };
51
+ readonly: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ theme: {
56
+ type: PropType<GridTheme>;
57
+ default: string;
58
+ };
59
+ valueSettings: {
60
+ type: PropType<import("@nouxwell/tabula-core").ValueSettings>;
61
+ default: () => import("@nouxwell/tabula-core").ValueSettings;
62
+ };
63
+ rowHeight: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ };
67
+ issues: {
68
+ type: PropType<import("@nouxwell/tabula-core").IssueSet>;
69
+ default: undefined;
70
+ };
71
+ results: {
72
+ type: PropType<import("@nouxwell/tabula-core").RowResults>;
73
+ default: undefined;
74
+ };
75
+ view: {
76
+ type: PropType<import("@nouxwell/tabula-core").RowView>;
77
+ default: undefined;
78
+ };
79
+ lookups: {
80
+ type: PropType<import("@nouxwell/tabula-core").LookupSearch>;
81
+ default: undefined;
82
+ };
83
+ history: {
84
+ type: PropType<import("@nouxwell/tabula-core").UndoHistory>;
85
+ default: undefined;
86
+ };
87
+ changes: {
88
+ type: PropType<import("@nouxwell/tabula-core").SheetChanges>;
89
+ default: undefined;
90
+ };
91
+ columnLetters: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ menuItems: {
96
+ type: PropType<readonly import("./types.js").GridMenuItem[]>;
97
+ default: () => never[];
98
+ };
99
+ locale: {
100
+ type: PropType<GridLocale>;
101
+ default: string;
102
+ };
103
+ marks: {
104
+ type: PropType<import("@nouxwell/tabula-core").CellMarks>;
105
+ default: undefined;
106
+ };
107
+ found: {
108
+ type: PropType<{
109
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
110
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
111
+ }>;
112
+ default: undefined;
113
+ };
114
+ fit: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ totals: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ zoom: {
123
+ type: NumberConstructor;
124
+ default: number;
125
+ };
126
+ defaultFormats: {
127
+ type: PropType<import("@nouxwell/tabula-core").ColumnFormats>;
128
+ default: undefined;
129
+ };
130
+ newRow: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ sort: {
135
+ type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
136
+ };
137
+ filters: {
138
+ type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
139
+ };
140
+ columnWidths: {
141
+ type: PropType<Readonly<Record<string, number>>>;
142
+ };
143
+ columns: {
144
+ type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
145
+ };
146
+ }>> & Readonly<{
147
+ onFind?: (() => any) | undefined;
148
+ onMenu?: ((key: string) => any) | undefined;
149
+ "onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
150
+ "onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
151
+ "onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
152
+ "onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
153
+ }>, {
154
+ selection: import("@nouxwell/tabula-core").Selection;
155
+ cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
156
+ selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
157
+ rows: import("vue").ComputedRef<Readonly<{
158
+ shown: number;
159
+ total: number;
160
+ }>>;
161
+ issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
162
+ formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
163
+ goTo: (rowId: string, field?: string | null) => boolean;
164
+ goToAddress: (address: string) => boolean;
165
+ writeCell: (rowId: string, key: string, input: string) => boolean;
166
+ adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
167
+ removeRows: () => number;
168
+ insertRows: (where: "above" | "below") => string[];
169
+ addressOf: (rowId: string, field: string) => string | null;
170
+ position: () => import("./types.js").GridPosition;
171
+ restorePosition: (at: import("./types.js").GridPosition) => void;
172
+ focus: () => void;
173
+ autoFit: (col: number) => void;
174
+ selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
175
+ selectedFields: () => string[];
176
+ markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
177
+ toggleSelection: (style: "bold" | "italic") => boolean;
178
+ clearSelectionMarks: () => boolean;
179
+ canEdit: (rowId: string, key: string) => boolean;
180
+ showCell: (rowId: string, field?: string | null) => boolean;
181
+ shownFields: () => string[];
182
+ undo: () => boolean;
183
+ redo: () => boolean;
184
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
185
+ find: () => any;
186
+ menu: (key: string) => any;
187
+ "update:columnWidths": (value: Readonly<Record<string, number>>) => any;
188
+ "update:columns": (value: import("@nouxwell/tabula-core").ColumnLayout) => any;
189
+ "update:filters": (value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any;
190
+ "update:sort": (value: import("@nouxwell/tabula-core").ColumnSort | null) => any;
191
+ }, import("vue").PublicProps, {
192
+ view: import("@nouxwell/tabula-core").RowView;
193
+ results: import("@nouxwell/tabula-core").RowResults;
194
+ zoom: number;
195
+ issues: import("@nouxwell/tabula-core").IssueSet;
196
+ totals: boolean;
197
+ newRow: boolean;
198
+ locale: GridLocale;
199
+ valueSettings: import("@nouxwell/tabula-core").ValueSettings;
200
+ theme: GridTheme;
201
+ columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
202
+ columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
203
+ readonly: boolean;
204
+ rowHeight: number;
205
+ lookups: import("@nouxwell/tabula-core").LookupSearch;
206
+ history: import("@nouxwell/tabula-core").UndoHistory;
207
+ changes: import("@nouxwell/tabula-core").SheetChanges;
208
+ columnLetters: boolean;
209
+ menuItems: readonly import("./types.js").GridMenuItem[];
210
+ marks: import("@nouxwell/tabula-core").CellMarks;
211
+ found: {
212
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
213
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
214
+ };
215
+ fit: boolean;
216
+ defaultFormats: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnFormat>>;
217
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
218
+ P: {};
219
+ B: {};
220
+ D: {};
221
+ C: {};
222
+ M: {};
223
+ Defaults: {};
224
+ }, Readonly<import("vue").ExtractPropTypes<{
225
+ schema: {
226
+ type: PropType<import("@nouxwell/tabula-core").ModuleSchema>;
227
+ required: true;
228
+ };
229
+ store: {
230
+ type: PropType<import("@nouxwell/tabula-core").RowStore>;
231
+ required: true;
232
+ };
233
+ columnSizing: {
234
+ type: PropType<Partial<import("@nouxwell/tabula-core").ColumnSizing>>;
235
+ default: undefined;
236
+ };
237
+ columnOverrides: {
238
+ type: PropType<Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>>;
239
+ default: undefined;
240
+ };
241
+ readonly: {
242
+ type: BooleanConstructor;
243
+ default: boolean;
244
+ };
245
+ theme: {
246
+ type: PropType<GridTheme>;
247
+ default: string;
248
+ };
249
+ valueSettings: {
250
+ type: PropType<import("@nouxwell/tabula-core").ValueSettings>;
251
+ default: () => import("@nouxwell/tabula-core").ValueSettings;
252
+ };
253
+ rowHeight: {
254
+ type: NumberConstructor;
255
+ default: number;
256
+ };
257
+ issues: {
258
+ type: PropType<import("@nouxwell/tabula-core").IssueSet>;
259
+ default: undefined;
260
+ };
261
+ results: {
262
+ type: PropType<import("@nouxwell/tabula-core").RowResults>;
263
+ default: undefined;
264
+ };
265
+ view: {
266
+ type: PropType<import("@nouxwell/tabula-core").RowView>;
267
+ default: undefined;
268
+ };
269
+ lookups: {
270
+ type: PropType<import("@nouxwell/tabula-core").LookupSearch>;
271
+ default: undefined;
272
+ };
273
+ history: {
274
+ type: PropType<import("@nouxwell/tabula-core").UndoHistory>;
275
+ default: undefined;
276
+ };
277
+ changes: {
278
+ type: PropType<import("@nouxwell/tabula-core").SheetChanges>;
279
+ default: undefined;
280
+ };
281
+ columnLetters: {
282
+ type: BooleanConstructor;
283
+ default: boolean;
284
+ };
285
+ menuItems: {
286
+ type: PropType<readonly import("./types.js").GridMenuItem[]>;
287
+ default: () => never[];
288
+ };
289
+ locale: {
290
+ type: PropType<GridLocale>;
291
+ default: string;
292
+ };
293
+ marks: {
294
+ type: PropType<import("@nouxwell/tabula-core").CellMarks>;
295
+ default: undefined;
296
+ };
297
+ found: {
298
+ type: PropType<{
299
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
300
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
301
+ }>;
302
+ default: undefined;
303
+ };
304
+ fit: {
305
+ type: BooleanConstructor;
306
+ default: boolean;
307
+ };
308
+ totals: {
309
+ type: BooleanConstructor;
310
+ default: boolean;
311
+ };
312
+ zoom: {
313
+ type: NumberConstructor;
314
+ default: number;
315
+ };
316
+ defaultFormats: {
317
+ type: PropType<import("@nouxwell/tabula-core").ColumnFormats>;
318
+ default: undefined;
319
+ };
320
+ newRow: {
321
+ type: BooleanConstructor;
322
+ default: boolean;
323
+ };
324
+ sort: {
325
+ type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
326
+ };
327
+ filters: {
328
+ type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
329
+ };
330
+ columnWidths: {
331
+ type: PropType<Readonly<Record<string, number>>>;
332
+ };
333
+ columns: {
334
+ type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
335
+ };
336
+ }>> & Readonly<{
337
+ onFind?: (() => any) | undefined;
338
+ onMenu?: ((key: string) => any) | undefined;
339
+ "onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
340
+ "onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
341
+ "onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
342
+ "onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
343
+ }>, {
344
+ selection: import("@nouxwell/tabula-core").Selection;
345
+ cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
346
+ selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
347
+ rows: import("vue").ComputedRef<Readonly<{
348
+ shown: number;
349
+ total: number;
350
+ }>>;
351
+ issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
352
+ formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
353
+ goTo: (rowId: string, field?: string | null) => boolean;
354
+ goToAddress: (address: string) => boolean;
355
+ writeCell: (rowId: string, key: string, input: string) => boolean;
356
+ adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
357
+ removeRows: () => number;
358
+ insertRows: (where: "above" | "below") => string[];
359
+ addressOf: (rowId: string, field: string) => string | null;
360
+ position: () => import("./types.js").GridPosition;
361
+ restorePosition: (at: import("./types.js").GridPosition) => void;
362
+ focus: () => void;
363
+ autoFit: (col: number) => void;
364
+ selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
365
+ selectedFields: () => string[];
366
+ markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
367
+ toggleSelection: (style: "bold" | "italic") => boolean;
368
+ clearSelectionMarks: () => boolean;
369
+ canEdit: (rowId: string, key: string) => boolean;
370
+ showCell: (rowId: string, field?: string | null) => boolean;
371
+ shownFields: () => string[];
372
+ undo: () => boolean;
373
+ redo: () => boolean;
374
+ }, {}, {}, {}, {
375
+ view: import("@nouxwell/tabula-core").RowView;
376
+ results: import("@nouxwell/tabula-core").RowResults;
377
+ zoom: number;
378
+ issues: import("@nouxwell/tabula-core").IssueSet;
379
+ totals: boolean;
380
+ newRow: boolean;
381
+ locale: GridLocale;
382
+ valueSettings: import("@nouxwell/tabula-core").ValueSettings;
383
+ theme: GridTheme;
384
+ columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
385
+ columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
386
+ readonly: boolean;
387
+ rowHeight: number;
388
+ lookups: import("@nouxwell/tabula-core").LookupSearch;
389
+ history: import("@nouxwell/tabula-core").UndoHistory;
390
+ changes: import("@nouxwell/tabula-core").SheetChanges;
391
+ columnLetters: boolean;
392
+ menuItems: readonly import("./types.js").GridMenuItem[];
393
+ marks: import("@nouxwell/tabula-core").CellMarks;
394
+ found: {
395
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
396
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
397
+ };
398
+ fit: boolean;
399
+ defaultFormats: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnFormat>>;
400
+ }> | null;
401
+ locale: GridLocale;
402
+ theme: GridTheme;
403
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
404
+ declare const _default: typeof __VLS_export;
405
+ export default _default;