@nouxwell/tabula-vue 0.0.0-stage → 0.4.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,385 @@
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
+ sort: {
127
+ type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
128
+ };
129
+ filters: {
130
+ type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
131
+ };
132
+ columnWidths: {
133
+ type: PropType<Readonly<Record<string, number>>>;
134
+ };
135
+ columns: {
136
+ type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
137
+ };
138
+ }>> & Readonly<{
139
+ onFind?: (() => any) | undefined;
140
+ onMenu?: ((key: string) => any) | undefined;
141
+ "onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
142
+ "onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
143
+ "onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
144
+ "onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
145
+ }>, {
146
+ selection: import("@nouxwell/tabula-core").Selection;
147
+ cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
148
+ selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
149
+ rows: import("vue").ComputedRef<Readonly<{
150
+ shown: number;
151
+ total: number;
152
+ }>>;
153
+ issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
154
+ formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
155
+ goTo: (rowId: string, field?: string | null) => boolean;
156
+ goToAddress: (address: string) => boolean;
157
+ writeCell: (rowId: string, key: string, input: string) => boolean;
158
+ adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
159
+ removeRows: () => number;
160
+ insertRows: (where: "above" | "below") => string[];
161
+ addressOf: (rowId: string, field: string) => string | null;
162
+ position: () => import("./types.js").GridPosition;
163
+ restorePosition: (at: import("./types.js").GridPosition) => void;
164
+ focus: () => void;
165
+ autoFit: (col: number) => void;
166
+ selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
167
+ selectedFields: () => string[];
168
+ markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
169
+ toggleSelection: (style: "bold" | "italic") => boolean;
170
+ clearSelectionMarks: () => boolean;
171
+ canEdit: (rowId: string, key: string) => boolean;
172
+ showCell: (rowId: string, field?: string | null) => boolean;
173
+ shownFields: () => string[];
174
+ undo: () => boolean;
175
+ redo: () => boolean;
176
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
177
+ find: () => any;
178
+ menu: (key: string) => any;
179
+ "update:columnWidths": (value: Readonly<Record<string, number>>) => any;
180
+ "update:columns": (value: import("@nouxwell/tabula-core").ColumnLayout) => any;
181
+ "update:filters": (value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any;
182
+ "update:sort": (value: import("@nouxwell/tabula-core").ColumnSort | null) => any;
183
+ }, import("vue").PublicProps, {
184
+ view: import("@nouxwell/tabula-core").RowView;
185
+ results: import("@nouxwell/tabula-core").RowResults;
186
+ zoom: number;
187
+ issues: import("@nouxwell/tabula-core").IssueSet;
188
+ totals: boolean;
189
+ locale: GridLocale;
190
+ valueSettings: import("@nouxwell/tabula-core").ValueSettings;
191
+ theme: GridTheme;
192
+ columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
193
+ columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
194
+ readonly: boolean;
195
+ rowHeight: number;
196
+ lookups: import("@nouxwell/tabula-core").LookupSearch;
197
+ history: import("@nouxwell/tabula-core").UndoHistory;
198
+ changes: import("@nouxwell/tabula-core").SheetChanges;
199
+ columnLetters: boolean;
200
+ menuItems: readonly import("./types.js").GridMenuItem[];
201
+ marks: import("@nouxwell/tabula-core").CellMarks;
202
+ found: {
203
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
204
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
205
+ };
206
+ fit: boolean;
207
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
208
+ P: {};
209
+ B: {};
210
+ D: {};
211
+ C: {};
212
+ M: {};
213
+ Defaults: {};
214
+ }, Readonly<import("vue").ExtractPropTypes<{
215
+ schema: {
216
+ type: PropType<import("@nouxwell/tabula-core").ModuleSchema>;
217
+ required: true;
218
+ };
219
+ store: {
220
+ type: PropType<import("@nouxwell/tabula-core").RowStore>;
221
+ required: true;
222
+ };
223
+ columnSizing: {
224
+ type: PropType<Partial<import("@nouxwell/tabula-core").ColumnSizing>>;
225
+ default: undefined;
226
+ };
227
+ columnOverrides: {
228
+ type: PropType<Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>>;
229
+ default: undefined;
230
+ };
231
+ readonly: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ theme: {
236
+ type: PropType<GridTheme>;
237
+ default: string;
238
+ };
239
+ valueSettings: {
240
+ type: PropType<import("@nouxwell/tabula-core").ValueSettings>;
241
+ default: () => import("@nouxwell/tabula-core").ValueSettings;
242
+ };
243
+ rowHeight: {
244
+ type: NumberConstructor;
245
+ default: number;
246
+ };
247
+ issues: {
248
+ type: PropType<import("@nouxwell/tabula-core").IssueSet>;
249
+ default: undefined;
250
+ };
251
+ results: {
252
+ type: PropType<import("@nouxwell/tabula-core").RowResults>;
253
+ default: undefined;
254
+ };
255
+ view: {
256
+ type: PropType<import("@nouxwell/tabula-core").RowView>;
257
+ default: undefined;
258
+ };
259
+ lookups: {
260
+ type: PropType<import("@nouxwell/tabula-core").LookupSearch>;
261
+ default: undefined;
262
+ };
263
+ history: {
264
+ type: PropType<import("@nouxwell/tabula-core").UndoHistory>;
265
+ default: undefined;
266
+ };
267
+ changes: {
268
+ type: PropType<import("@nouxwell/tabula-core").SheetChanges>;
269
+ default: undefined;
270
+ };
271
+ columnLetters: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ menuItems: {
276
+ type: PropType<readonly import("./types.js").GridMenuItem[]>;
277
+ default: () => never[];
278
+ };
279
+ locale: {
280
+ type: PropType<GridLocale>;
281
+ default: string;
282
+ };
283
+ marks: {
284
+ type: PropType<import("@nouxwell/tabula-core").CellMarks>;
285
+ default: undefined;
286
+ };
287
+ found: {
288
+ type: PropType<{
289
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
290
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
291
+ }>;
292
+ default: undefined;
293
+ };
294
+ fit: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ totals: {
299
+ type: BooleanConstructor;
300
+ default: boolean;
301
+ };
302
+ zoom: {
303
+ type: NumberConstructor;
304
+ default: number;
305
+ };
306
+ sort: {
307
+ type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
308
+ };
309
+ filters: {
310
+ type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
311
+ };
312
+ columnWidths: {
313
+ type: PropType<Readonly<Record<string, number>>>;
314
+ };
315
+ columns: {
316
+ type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
317
+ };
318
+ }>> & Readonly<{
319
+ onFind?: (() => any) | undefined;
320
+ onMenu?: ((key: string) => any) | undefined;
321
+ "onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
322
+ "onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
323
+ "onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
324
+ "onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
325
+ }>, {
326
+ selection: import("@nouxwell/tabula-core").Selection;
327
+ cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
328
+ selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
329
+ rows: import("vue").ComputedRef<Readonly<{
330
+ shown: number;
331
+ total: number;
332
+ }>>;
333
+ issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
334
+ formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
335
+ goTo: (rowId: string, field?: string | null) => boolean;
336
+ goToAddress: (address: string) => boolean;
337
+ writeCell: (rowId: string, key: string, input: string) => boolean;
338
+ adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
339
+ removeRows: () => number;
340
+ insertRows: (where: "above" | "below") => string[];
341
+ addressOf: (rowId: string, field: string) => string | null;
342
+ position: () => import("./types.js").GridPosition;
343
+ restorePosition: (at: import("./types.js").GridPosition) => void;
344
+ focus: () => void;
345
+ autoFit: (col: number) => void;
346
+ selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
347
+ selectedFields: () => string[];
348
+ markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
349
+ toggleSelection: (style: "bold" | "italic") => boolean;
350
+ clearSelectionMarks: () => boolean;
351
+ canEdit: (rowId: string, key: string) => boolean;
352
+ showCell: (rowId: string, field?: string | null) => boolean;
353
+ shownFields: () => string[];
354
+ undo: () => boolean;
355
+ redo: () => boolean;
356
+ }, {}, {}, {}, {
357
+ view: import("@nouxwell/tabula-core").RowView;
358
+ results: import("@nouxwell/tabula-core").RowResults;
359
+ zoom: number;
360
+ issues: import("@nouxwell/tabula-core").IssueSet;
361
+ totals: boolean;
362
+ locale: GridLocale;
363
+ valueSettings: import("@nouxwell/tabula-core").ValueSettings;
364
+ theme: GridTheme;
365
+ columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
366
+ columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
367
+ readonly: boolean;
368
+ rowHeight: number;
369
+ lookups: import("@nouxwell/tabula-core").LookupSearch;
370
+ history: import("@nouxwell/tabula-core").UndoHistory;
371
+ changes: import("@nouxwell/tabula-core").SheetChanges;
372
+ columnLetters: boolean;
373
+ menuItems: readonly import("./types.js").GridMenuItem[];
374
+ marks: import("@nouxwell/tabula-core").CellMarks;
375
+ found: {
376
+ readonly cells: readonly import("@nouxwell/tabula-core").FoundCell[];
377
+ readonly current?: import("@nouxwell/tabula-core").FoundCell | null;
378
+ };
379
+ fit: boolean;
380
+ }> | null;
381
+ locale: GridLocale;
382
+ theme: GridTheme;
383
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
384
+ declare const _default: typeof __VLS_export;
385
+ export default _default;