@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.
- package/LICENSE +21 -0
- package/README.md +59 -2
- package/dist/ScrollThumbs.vue.d.ts +14 -0
- package/dist/TabulaDraftMapping.vue.d.ts +65 -0
- package/dist/TabulaFind.vue.d.ts +454 -0
- package/dist/TabulaFormulaBar.vue.d.ts +385 -0
- package/dist/TabulaGrid.vue.d.ts +486 -0
- package/dist/TabulaIssues.vue.d.ts +171 -0
- package/dist/TabulaPreview.vue.d.ts +83 -0
- package/dist/TabulaSheetTabs.vue.d.ts +68 -0
- package/dist/TabulaStatusBar.vue.d.ts +399 -0
- package/dist/address.d.ts +13 -0
- package/dist/alignment.d.ts +4 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +4640 -0
- package/dist/index.js.map +1 -0
- package/dist/measure.d.ts +11 -0
- package/dist/messages.d.ts +48 -0
- package/dist/style.css +2 -0
- package/dist/types.d.ts +64 -0
- package/package.json +53 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 IONSIS (https://ionsis.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @nouxwell/tabula-vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Vue 3 components of [Tabula Grid](https://github.com/nouxwell/tabula-grid), an Excel-like
|
|
4
|
+
workspace for preparing, validating and processing bulk data in ERP and CRM screens.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm install @nouxwell/tabula-core @nouxwell/tabula-vue
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```vue
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import { ModuleSchema, RowStore, SheetValidator, VALUE_SETTINGS } from "@nouxwell/tabula-core"
|
|
13
|
+
import { TabulaGrid, TabulaIssues } from "@nouxwell/tabula-vue"
|
|
14
|
+
import "@nouxwell/tabula-vue/style.css"
|
|
15
|
+
|
|
16
|
+
const schema = ModuleSchema.from(json)
|
|
17
|
+
const store = new RowStore({ rows })
|
|
18
|
+
const validator = new SheetValidator(schema, store, VALUE_SETTINGS.tr)
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<div style="height: 480px">
|
|
23
|
+
<TabulaGrid :schema="schema" :store="store" :issues="validator" theme="auto" />
|
|
24
|
+
</div>
|
|
25
|
+
<TabulaIssues :issues="validator" :schema="schema" :store="store" />
|
|
26
|
+
</template>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- **`TabulaGrid`** draws only what is on screen, so 50,000 rows draw like 50. It moves, edits,
|
|
30
|
+
copies and pastes as Excel does, reads what is typed the sheet's way, marks the cells with
|
|
31
|
+
issues and the ones the user changed, undoes with Ctrl+Z, pins and hides columns, picks lookups
|
|
32
|
+
from a searched list, raises numbers by a percentage, adds and takes out rows, and opens a
|
|
33
|
+
right-click menu of its own, to which the host adds items.
|
|
34
|
+
- **`TabulaIssues`** lists the sheet's issues as cards, with counts, Previous and Next, the cell's
|
|
35
|
+
address and the row's name, says whether the browser or the server found each, and filters the sheet to the rows that have them. On a
|
|
36
|
+
phone it is a bar that opens the list from the bottom of the screen (`variant="sheet"`);
|
|
37
|
+
`closable` gives the panel a close button that emits `close`.
|
|
38
|
+
- **`TabulaFormulaBar`** shows the active cell's address and value, goes to an address typed into
|
|
39
|
+
it, and writes a value typed there, as a spreadsheet's formula bar. A formula shows by the fields'
|
|
40
|
+
names, each in the colour its column takes in the sheet.
|
|
41
|
+
- **`TabulaStatusBar`** counts the rows and issues and sums and averages the numbers selected.
|
|
42
|
+
- **`TabulaFind`** finds and replaces over the sheet, as a strip: in the cells selected, a column
|
|
43
|
+
or the whole sheet; the grid tints what it finds, and "Replace all" is one Ctrl+Z.
|
|
44
|
+
- **`TabulaSheetTabs`** draws a workbook's sheets as tabs under the sheet, with their errors
|
|
45
|
+
counted, and renames, duplicates, reorders, deletes and adds them.
|
|
46
|
+
- **`TabulaDraftMapping`** maps the fields of a draft saved under an older schema before it opens:
|
|
47
|
+
where each field the schema lost goes, its first values, and what would be lost or unreadable.
|
|
48
|
+
- **`TabulaPreview`** shows what a run would do before it is sent: new records, updates from the
|
|
49
|
+
old value to the new, and the rows that would not change, as the backend's check said.
|
|
50
|
+
|
|
51
|
+
IONSIS's palette, light, dark and following the system; a few `--tabula-*` CSS variables change it
|
|
52
|
+
and the rest follow. Turkish and English text. Vue 3.5 or later.
|
|
53
|
+
|
|
54
|
+
Everything is explained in the [repository's README](https://github.com/nouxwell/tabula-grid#readme);
|
|
55
|
+
what each version changed is in its [changelog](https://github.com/nouxwell/tabula-grid/blob/main/CHANGELOG.md).
|
|
56
|
+
For Nuxt, see [@nouxwell/tabula-nuxt](https://www.npmjs.com/package/@nouxwell/tabula-nuxt).
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
MIT
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
target: HTMLElement | null;
|
|
3
|
+
insetTop?: number;
|
|
4
|
+
insetLeft?: number;
|
|
5
|
+
/** The bars' z-index, over an area that floats over others, such as a list of suggestions. */
|
|
6
|
+
layer?: number;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
insetTop: number;
|
|
10
|
+
insetLeft: number;
|
|
11
|
+
layer: number;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type Draft, type ModuleSchema, type ValueSettings } from "@nouxwell/tabula-core";
|
|
2
|
+
import { type PropType } from "vue";
|
|
3
|
+
import { type GridLocale } from "./messages.js";
|
|
4
|
+
import type { GridTheme } from "./types.js";
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
draft: {
|
|
7
|
+
type: PropType<Draft>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
/** The schema the draft would open under. */
|
|
11
|
+
schema: {
|
|
12
|
+
type: PropType<ModuleSchema>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
locale: {
|
|
16
|
+
type: PropType<GridLocale>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
valueSettings: {
|
|
20
|
+
type: PropType<ValueSettings>;
|
|
21
|
+
default: () => ValueSettings;
|
|
22
|
+
};
|
|
23
|
+
theme: {
|
|
24
|
+
type: PropType<GridTheme>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
rename: {
|
|
28
|
+
type: PropType<Readonly<Record<string, string>>>;
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:rename": (value: Readonly<Record<string, string>>) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
draft: {
|
|
34
|
+
type: PropType<Draft>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
/** The schema the draft would open under. */
|
|
38
|
+
schema: {
|
|
39
|
+
type: PropType<ModuleSchema>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
locale: {
|
|
43
|
+
type: PropType<GridLocale>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
valueSettings: {
|
|
47
|
+
type: PropType<ValueSettings>;
|
|
48
|
+
default: () => ValueSettings;
|
|
49
|
+
};
|
|
50
|
+
theme: {
|
|
51
|
+
type: PropType<GridTheme>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
rename: {
|
|
55
|
+
type: PropType<Readonly<Record<string, string>>>;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
"onUpdate:rename"?: ((value: Readonly<Record<string, string>>) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
locale: GridLocale;
|
|
61
|
+
valueSettings: ValueSettings;
|
|
62
|
+
theme: GridTheme;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { type FoundCell, type ModuleSchema, type RowStore, type RowView, type ValueSettings } from "@nouxwell/tabula-core";
|
|
2
|
+
import { type PropType } from "vue";
|
|
3
|
+
import { type GridLocale } from "./messages.js";
|
|
4
|
+
import type TabulaGrid from "./TabulaGrid.vue.js";
|
|
5
|
+
import type { GridTheme } from "./types.js";
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
/** The grid it works on: its template ref. */
|
|
8
|
+
grid: {
|
|
9
|
+
type: PropType<InstanceType<typeof TabulaGrid> | null>;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
store: {
|
|
13
|
+
type: PropType<RowStore>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
schema: {
|
|
17
|
+
type: PropType<ModuleSchema>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
/** The rows looked through, in their order: the grid's `view`. Left out, every row of the store. */
|
|
21
|
+
view: {
|
|
22
|
+
type: PropType<RowView>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
valueSettings: {
|
|
26
|
+
type: PropType<ValueSettings>;
|
|
27
|
+
default: () => ValueSettings;
|
|
28
|
+
};
|
|
29
|
+
locale: {
|
|
30
|
+
type: PropType<GridLocale>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
theme: {
|
|
34
|
+
type: PropType<GridTheme>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
open: {
|
|
38
|
+
type: PropType<boolean>;
|
|
39
|
+
};
|
|
40
|
+
found: {
|
|
41
|
+
type: PropType<{
|
|
42
|
+
readonly cells: readonly FoundCell[];
|
|
43
|
+
readonly current: FoundCell | null;
|
|
44
|
+
} | null>;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
replaced: (count: number, skipped: number) => any;
|
|
48
|
+
"update:open": (value: boolean) => any;
|
|
49
|
+
"update:found": (value: {
|
|
50
|
+
readonly cells: readonly FoundCell[];
|
|
51
|
+
readonly current: FoundCell | null;
|
|
52
|
+
} | null) => any;
|
|
53
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
/** The grid it works on: its template ref. */
|
|
55
|
+
grid: {
|
|
56
|
+
type: PropType<InstanceType<typeof TabulaGrid> | null>;
|
|
57
|
+
default: null;
|
|
58
|
+
};
|
|
59
|
+
store: {
|
|
60
|
+
type: PropType<RowStore>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
schema: {
|
|
64
|
+
type: PropType<ModuleSchema>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
/** The rows looked through, in their order: the grid's `view`. Left out, every row of the store. */
|
|
68
|
+
view: {
|
|
69
|
+
type: PropType<RowView>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
valueSettings: {
|
|
73
|
+
type: PropType<ValueSettings>;
|
|
74
|
+
default: () => ValueSettings;
|
|
75
|
+
};
|
|
76
|
+
locale: {
|
|
77
|
+
type: PropType<GridLocale>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
theme: {
|
|
81
|
+
type: PropType<GridTheme>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
open: {
|
|
85
|
+
type: PropType<boolean>;
|
|
86
|
+
};
|
|
87
|
+
found: {
|
|
88
|
+
type: PropType<{
|
|
89
|
+
readonly cells: readonly FoundCell[];
|
|
90
|
+
readonly current: FoundCell | null;
|
|
91
|
+
} | null>;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{
|
|
94
|
+
onReplaced?: ((count: number, skipped: number) => any) | undefined;
|
|
95
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
96
|
+
"onUpdate:found"?: ((value: {
|
|
97
|
+
readonly cells: readonly FoundCell[];
|
|
98
|
+
readonly current: FoundCell | null;
|
|
99
|
+
} | null) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
view: RowView;
|
|
102
|
+
grid: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
schema: {
|
|
104
|
+
type: PropType<ModuleSchema>;
|
|
105
|
+
required: true;
|
|
106
|
+
};
|
|
107
|
+
store: {
|
|
108
|
+
type: PropType<RowStore>;
|
|
109
|
+
required: true;
|
|
110
|
+
};
|
|
111
|
+
columnSizing: {
|
|
112
|
+
type: PropType<Partial<import("@nouxwell/tabula-core").ColumnSizing>>;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
columnOverrides: {
|
|
116
|
+
type: PropType<Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>>;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
readonly: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
theme: {
|
|
124
|
+
type: PropType<GridTheme>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
valueSettings: {
|
|
128
|
+
type: PropType<ValueSettings>;
|
|
129
|
+
default: () => ValueSettings;
|
|
130
|
+
};
|
|
131
|
+
rowHeight: {
|
|
132
|
+
type: NumberConstructor;
|
|
133
|
+
default: number;
|
|
134
|
+
};
|
|
135
|
+
issues: {
|
|
136
|
+
type: PropType<import("@nouxwell/tabula-core").IssueSet>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
results: {
|
|
140
|
+
type: PropType<import("@nouxwell/tabula-core").RowResults>;
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
view: {
|
|
144
|
+
type: PropType<RowView>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
lookups: {
|
|
148
|
+
type: PropType<import("@nouxwell/tabula-core").LookupSearch>;
|
|
149
|
+
default: undefined;
|
|
150
|
+
};
|
|
151
|
+
history: {
|
|
152
|
+
type: PropType<import("@nouxwell/tabula-core").UndoHistory>;
|
|
153
|
+
default: undefined;
|
|
154
|
+
};
|
|
155
|
+
changes: {
|
|
156
|
+
type: PropType<import("@nouxwell/tabula-core").SheetChanges>;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
columnLetters: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
menuItems: {
|
|
164
|
+
type: PropType<readonly import("./types.js").GridMenuItem[]>;
|
|
165
|
+
default: () => never[];
|
|
166
|
+
};
|
|
167
|
+
locale: {
|
|
168
|
+
type: PropType<GridLocale>;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
marks: {
|
|
172
|
+
type: PropType<import("@nouxwell/tabula-core").CellMarks>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
found: {
|
|
176
|
+
type: PropType<{
|
|
177
|
+
readonly cells: readonly FoundCell[];
|
|
178
|
+
readonly current?: FoundCell | null;
|
|
179
|
+
}>;
|
|
180
|
+
default: undefined;
|
|
181
|
+
};
|
|
182
|
+
fit: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
totals: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
zoom: {
|
|
191
|
+
type: NumberConstructor;
|
|
192
|
+
default: number;
|
|
193
|
+
};
|
|
194
|
+
sort: {
|
|
195
|
+
type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
|
|
196
|
+
};
|
|
197
|
+
filters: {
|
|
198
|
+
type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
|
|
199
|
+
};
|
|
200
|
+
columnWidths: {
|
|
201
|
+
type: PropType<Readonly<Record<string, number>>>;
|
|
202
|
+
};
|
|
203
|
+
columns: {
|
|
204
|
+
type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
|
|
205
|
+
};
|
|
206
|
+
}>> & Readonly<{
|
|
207
|
+
onFind?: (() => any) | undefined;
|
|
208
|
+
onMenu?: ((key: string) => any) | undefined;
|
|
209
|
+
"onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
|
|
210
|
+
"onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
|
|
211
|
+
"onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
|
|
212
|
+
"onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
|
|
213
|
+
}>, {
|
|
214
|
+
selection: import("@nouxwell/tabula-core").Selection;
|
|
215
|
+
cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
|
|
216
|
+
selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
|
|
217
|
+
rows: import("vue").ComputedRef<Readonly<{
|
|
218
|
+
shown: number;
|
|
219
|
+
total: number;
|
|
220
|
+
}>>;
|
|
221
|
+
issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
|
|
222
|
+
formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
|
|
223
|
+
goTo: (rowId: string, field?: string | null) => boolean;
|
|
224
|
+
goToAddress: (address: string) => boolean;
|
|
225
|
+
writeCell: (rowId: string, key: string, input: string) => boolean;
|
|
226
|
+
adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
|
|
227
|
+
removeRows: () => number;
|
|
228
|
+
insertRows: (where: "above" | "below") => string[];
|
|
229
|
+
addressOf: (rowId: string, field: string) => string | null;
|
|
230
|
+
position: () => import("./types.js").GridPosition;
|
|
231
|
+
restorePosition: (at: import("./types.js").GridPosition) => void;
|
|
232
|
+
focus: () => void;
|
|
233
|
+
autoFit: (col: number) => void;
|
|
234
|
+
selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
|
|
235
|
+
selectedFields: () => string[];
|
|
236
|
+
markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
|
|
237
|
+
toggleSelection: (style: "bold" | "italic") => boolean;
|
|
238
|
+
clearSelectionMarks: () => boolean;
|
|
239
|
+
canEdit: (rowId: string, key: string) => boolean;
|
|
240
|
+
showCell: (rowId: string, field?: string | null) => boolean;
|
|
241
|
+
shownFields: () => string[];
|
|
242
|
+
undo: () => boolean;
|
|
243
|
+
redo: () => boolean;
|
|
244
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
245
|
+
find: () => any;
|
|
246
|
+
menu: (key: string) => any;
|
|
247
|
+
"update:columnWidths": (value: Readonly<Record<string, number>>) => any;
|
|
248
|
+
"update:columns": (value: import("@nouxwell/tabula-core").ColumnLayout) => any;
|
|
249
|
+
"update:filters": (value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any;
|
|
250
|
+
"update:sort": (value: import("@nouxwell/tabula-core").ColumnSort | null) => any;
|
|
251
|
+
}, import("vue").PublicProps, {
|
|
252
|
+
view: RowView;
|
|
253
|
+
results: import("@nouxwell/tabula-core").RowResults;
|
|
254
|
+
zoom: number;
|
|
255
|
+
issues: import("@nouxwell/tabula-core").IssueSet;
|
|
256
|
+
totals: boolean;
|
|
257
|
+
locale: GridLocale;
|
|
258
|
+
valueSettings: ValueSettings;
|
|
259
|
+
theme: GridTheme;
|
|
260
|
+
columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
|
|
261
|
+
columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
|
|
262
|
+
readonly: boolean;
|
|
263
|
+
rowHeight: number;
|
|
264
|
+
lookups: import("@nouxwell/tabula-core").LookupSearch;
|
|
265
|
+
history: import("@nouxwell/tabula-core").UndoHistory;
|
|
266
|
+
changes: import("@nouxwell/tabula-core").SheetChanges;
|
|
267
|
+
columnLetters: boolean;
|
|
268
|
+
menuItems: readonly import("./types.js").GridMenuItem[];
|
|
269
|
+
marks: import("@nouxwell/tabula-core").CellMarks;
|
|
270
|
+
found: {
|
|
271
|
+
readonly cells: readonly FoundCell[];
|
|
272
|
+
readonly current?: FoundCell | null;
|
|
273
|
+
};
|
|
274
|
+
fit: boolean;
|
|
275
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
276
|
+
P: {};
|
|
277
|
+
B: {};
|
|
278
|
+
D: {};
|
|
279
|
+
C: {};
|
|
280
|
+
M: {};
|
|
281
|
+
Defaults: {};
|
|
282
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
283
|
+
schema: {
|
|
284
|
+
type: PropType<ModuleSchema>;
|
|
285
|
+
required: true;
|
|
286
|
+
};
|
|
287
|
+
store: {
|
|
288
|
+
type: PropType<RowStore>;
|
|
289
|
+
required: true;
|
|
290
|
+
};
|
|
291
|
+
columnSizing: {
|
|
292
|
+
type: PropType<Partial<import("@nouxwell/tabula-core").ColumnSizing>>;
|
|
293
|
+
default: undefined;
|
|
294
|
+
};
|
|
295
|
+
columnOverrides: {
|
|
296
|
+
type: PropType<Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>>;
|
|
297
|
+
default: undefined;
|
|
298
|
+
};
|
|
299
|
+
readonly: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
theme: {
|
|
304
|
+
type: PropType<GridTheme>;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
valueSettings: {
|
|
308
|
+
type: PropType<ValueSettings>;
|
|
309
|
+
default: () => ValueSettings;
|
|
310
|
+
};
|
|
311
|
+
rowHeight: {
|
|
312
|
+
type: NumberConstructor;
|
|
313
|
+
default: number;
|
|
314
|
+
};
|
|
315
|
+
issues: {
|
|
316
|
+
type: PropType<import("@nouxwell/tabula-core").IssueSet>;
|
|
317
|
+
default: undefined;
|
|
318
|
+
};
|
|
319
|
+
results: {
|
|
320
|
+
type: PropType<import("@nouxwell/tabula-core").RowResults>;
|
|
321
|
+
default: undefined;
|
|
322
|
+
};
|
|
323
|
+
view: {
|
|
324
|
+
type: PropType<RowView>;
|
|
325
|
+
default: undefined;
|
|
326
|
+
};
|
|
327
|
+
lookups: {
|
|
328
|
+
type: PropType<import("@nouxwell/tabula-core").LookupSearch>;
|
|
329
|
+
default: undefined;
|
|
330
|
+
};
|
|
331
|
+
history: {
|
|
332
|
+
type: PropType<import("@nouxwell/tabula-core").UndoHistory>;
|
|
333
|
+
default: undefined;
|
|
334
|
+
};
|
|
335
|
+
changes: {
|
|
336
|
+
type: PropType<import("@nouxwell/tabula-core").SheetChanges>;
|
|
337
|
+
default: undefined;
|
|
338
|
+
};
|
|
339
|
+
columnLetters: {
|
|
340
|
+
type: BooleanConstructor;
|
|
341
|
+
default: boolean;
|
|
342
|
+
};
|
|
343
|
+
menuItems: {
|
|
344
|
+
type: PropType<readonly import("./types.js").GridMenuItem[]>;
|
|
345
|
+
default: () => never[];
|
|
346
|
+
};
|
|
347
|
+
locale: {
|
|
348
|
+
type: PropType<GridLocale>;
|
|
349
|
+
default: string;
|
|
350
|
+
};
|
|
351
|
+
marks: {
|
|
352
|
+
type: PropType<import("@nouxwell/tabula-core").CellMarks>;
|
|
353
|
+
default: undefined;
|
|
354
|
+
};
|
|
355
|
+
found: {
|
|
356
|
+
type: PropType<{
|
|
357
|
+
readonly cells: readonly FoundCell[];
|
|
358
|
+
readonly current?: FoundCell | null;
|
|
359
|
+
}>;
|
|
360
|
+
default: undefined;
|
|
361
|
+
};
|
|
362
|
+
fit: {
|
|
363
|
+
type: BooleanConstructor;
|
|
364
|
+
default: boolean;
|
|
365
|
+
};
|
|
366
|
+
totals: {
|
|
367
|
+
type: BooleanConstructor;
|
|
368
|
+
default: boolean;
|
|
369
|
+
};
|
|
370
|
+
zoom: {
|
|
371
|
+
type: NumberConstructor;
|
|
372
|
+
default: number;
|
|
373
|
+
};
|
|
374
|
+
sort: {
|
|
375
|
+
type: PropType<import("@nouxwell/tabula-core").ColumnSort | null>;
|
|
376
|
+
};
|
|
377
|
+
filters: {
|
|
378
|
+
type: PropType<Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>>;
|
|
379
|
+
};
|
|
380
|
+
columnWidths: {
|
|
381
|
+
type: PropType<Readonly<Record<string, number>>>;
|
|
382
|
+
};
|
|
383
|
+
columns: {
|
|
384
|
+
type: PropType<import("@nouxwell/tabula-core").ColumnLayout>;
|
|
385
|
+
};
|
|
386
|
+
}>> & Readonly<{
|
|
387
|
+
onFind?: (() => any) | undefined;
|
|
388
|
+
onMenu?: ((key: string) => any) | undefined;
|
|
389
|
+
"onUpdate:columnWidths"?: ((value: Readonly<Record<string, number>>) => any) | undefined;
|
|
390
|
+
"onUpdate:columns"?: ((value: import("@nouxwell/tabula-core").ColumnLayout) => any) | undefined;
|
|
391
|
+
"onUpdate:filters"?: ((value: Readonly<Record<string, import("@nouxwell/tabula-core").ColumnCondition>>) => any) | undefined;
|
|
392
|
+
"onUpdate:sort"?: ((value: import("@nouxwell/tabula-core").ColumnSort | null) => any) | undefined;
|
|
393
|
+
}>, {
|
|
394
|
+
selection: import("@nouxwell/tabula-core").Selection;
|
|
395
|
+
cell: import("vue").ComputedRef<import("./types.js").ActiveCell | null>;
|
|
396
|
+
selected: import("vue").ComputedRef<import("./types.js").SelectedCells | null>;
|
|
397
|
+
rows: import("vue").ComputedRef<Readonly<{
|
|
398
|
+
shown: number;
|
|
399
|
+
total: number;
|
|
400
|
+
}>>;
|
|
401
|
+
issueSummary: import("vue").ComputedRef<import("@nouxwell/tabula-core").IssueSummary>;
|
|
402
|
+
formatValue: (field: import("@nouxwell/tabula-core").FieldSchema, value: import("@nouxwell/tabula-core").CellValue) => string;
|
|
403
|
+
goTo: (rowId: string, field?: string | null) => boolean;
|
|
404
|
+
goToAddress: (address: string) => boolean;
|
|
405
|
+
writeCell: (rowId: string, key: string, input: string) => boolean;
|
|
406
|
+
adjustSelection: (adjustment: import("@nouxwell/tabula-core").Adjustment) => number;
|
|
407
|
+
removeRows: () => number;
|
|
408
|
+
insertRows: (where: "above" | "below") => string[];
|
|
409
|
+
addressOf: (rowId: string, field: string) => string | null;
|
|
410
|
+
position: () => import("./types.js").GridPosition;
|
|
411
|
+
restorePosition: (at: import("./types.js").GridPosition) => void;
|
|
412
|
+
focus: () => void;
|
|
413
|
+
autoFit: (col: number) => void;
|
|
414
|
+
selectedCells: () => import("@nouxwell/tabula-core").MarkedCell[];
|
|
415
|
+
selectedFields: () => string[];
|
|
416
|
+
markSelection: (change: import("@nouxwell/tabula-core").CellMarkChange) => boolean;
|
|
417
|
+
toggleSelection: (style: "bold" | "italic") => boolean;
|
|
418
|
+
clearSelectionMarks: () => boolean;
|
|
419
|
+
canEdit: (rowId: string, key: string) => boolean;
|
|
420
|
+
showCell: (rowId: string, field?: string | null) => boolean;
|
|
421
|
+
shownFields: () => string[];
|
|
422
|
+
undo: () => boolean;
|
|
423
|
+
redo: () => boolean;
|
|
424
|
+
}, {}, {}, {}, {
|
|
425
|
+
view: RowView;
|
|
426
|
+
results: import("@nouxwell/tabula-core").RowResults;
|
|
427
|
+
zoom: number;
|
|
428
|
+
issues: import("@nouxwell/tabula-core").IssueSet;
|
|
429
|
+
totals: boolean;
|
|
430
|
+
locale: GridLocale;
|
|
431
|
+
valueSettings: ValueSettings;
|
|
432
|
+
theme: GridTheme;
|
|
433
|
+
columnSizing: Partial<import("@nouxwell/tabula-core").ColumnSizing>;
|
|
434
|
+
columnOverrides: Readonly<Record<string, Partial<import("@nouxwell/tabula-core").ColumnSizing>>>;
|
|
435
|
+
readonly: boolean;
|
|
436
|
+
rowHeight: number;
|
|
437
|
+
lookups: import("@nouxwell/tabula-core").LookupSearch;
|
|
438
|
+
history: import("@nouxwell/tabula-core").UndoHistory;
|
|
439
|
+
changes: import("@nouxwell/tabula-core").SheetChanges;
|
|
440
|
+
columnLetters: boolean;
|
|
441
|
+
menuItems: readonly import("./types.js").GridMenuItem[];
|
|
442
|
+
marks: import("@nouxwell/tabula-core").CellMarks;
|
|
443
|
+
found: {
|
|
444
|
+
readonly cells: readonly FoundCell[];
|
|
445
|
+
readonly current?: FoundCell | null;
|
|
446
|
+
};
|
|
447
|
+
fit: boolean;
|
|
448
|
+
}> | null;
|
|
449
|
+
locale: GridLocale;
|
|
450
|
+
valueSettings: ValueSettings;
|
|
451
|
+
theme: GridTheme;
|
|
452
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
453
|
+
declare const _default: typeof __VLS_export;
|
|
454
|
+
export default _default;
|