@sheetwrite/vue 0.1.0 → 0.3.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/README.md CHANGED
@@ -39,12 +39,25 @@ WASM initializes on client mount. Supply a `#fallback` slot while loading, obser
39
39
  ## Advanced component
40
40
 
41
41
  ```vue
42
- <SheetwriteGrid ref="gridComponent" :workbook="workbook" :data="data" fill />
42
+ <SheetwriteGrid
43
+ ref="gridComponent"
44
+ :workbook="workbook"
45
+ :data="data"
46
+ presentation="data-grid"
47
+ :editors="editors"
48
+ fill
49
+ />
43
50
  ```
44
51
 
45
- The exposed `grid` handle is published before `@ready="({ grid, generation, reason }) => …"` and clears during replacement/unmount. Reset-bound inputs are `workbook`, `data`, `datasource`, `datasourceStorage`, `renderer`, `workerUrl`, and `renderers`; `theme`, `readOnly`, `config`, `overscan`, and `minColumns` update live.
52
+ The exposed `grid` handle is published before
53
+ `@ready="({ grid, generation, reason }) => …"` and clears during
54
+ replacement/unmount. Reset-bound inputs are `workbook`, `data`, `datasource`,
55
+ `datasourceStorage`, `presentation`, `editors`, `protectionResolver`,
56
+ `mutationPolicy`, `transactionResourceLimits`, `renderer`, `workerUrl`, and
57
+ `renderers`; `theme`, `readOnly`, `config`, `overscan`, and `minColumns` update
58
+ live.
46
59
 
47
- Events are `grid-change`, `viewport-change`, `selection-change`, `edit-begin`, `edit-commit`, `search`, `active-sheet-change`, `ready`, and `initialization-error`. Native DOM change/scroll listeners remain available on the host.
60
+ Events are `grid-change`, `viewport-change`, `selection-change`, `edit-begin`, `edit-commit`, `search`, `command-state-change`, `active-sheet-change`, `mutation-rejected`, `renderer-fallback`, `datasource-error`, `export-error`, `ready`, and `initialization-error`. Native DOM change/scroll listeners remain available on the host.
48
61
 
49
62
  For vanilla/preload control, use `initSheetwrite()` and `createGrid()` from `@sheetwrite/core`. See [installation](https://sheetwrite.vercel.app/docs/start/installation/), [Vue integration](https://sheetwrite.vercel.app/docs/frameworks/vue/), and [collaboration](https://sheetwrite.vercel.app/docs/guides/collaboration/).
50
63
 
package/dist/index.d.ts CHANGED
@@ -1,304 +1,118 @@
1
- import { type CellRenderer, type CellScalar, type ChangeEvent, type ColumnarData, type DataSource, type DataSourceStorageOptions, type Grid, type GridEvents, type GridOptions, type Selection, type Theme, type Workbook } from "@sheetwrite/core";
2
- import { type GridReadyEvent, type SheetwriteInitializationProps } from "@sheetwrite/core/adapter";
3
- import { type PropType } from "vue";
1
+ import { type CellRenderer, type CellScalar, type ChangeEvent, type ColumnarData, type DataSource, type DataSourceStorageOptions, type Grid, type GridEvents, type GridOptions, type Selection, type SheetwriteError, type Theme, type Workbook } from "@sheetwrite/core";
2
+ import { createSimpleRowBridge, type GridReadyEvent, type RowBridge, type RowBridgeHandler, type RowBridgeId, type SheetwriteInitializationProps, type SimpleColumn } from "@sheetwrite/core/adapter";
3
+ import { type AllowedComponentProps, type ComponentPublicInstance, type VNodeProps } from "vue";
4
4
  /** Imperative Grid handle exposed by the Vue advanced component. */
5
5
  export interface SheetwriteGridExpose {
6
6
  /** Live Grid after readiness, or `null` before initialization and during teardown. */
7
7
  grid: Grid | null;
8
8
  }
9
- declare const SheetwriteGridComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ /** Advanced Vue adapter props for workbook data or datasource ownership. */
10
+ export interface SheetwriteGridProps<Id extends RowBridgeId = RowBridgeId> {
10
11
  /** Live workbook schema adopted by the Grid. */
11
- workbook: {
12
- type: PropType<Workbook>;
13
- required: true;
14
- };
12
+ workbook: Workbook;
15
13
  /** Eager column-major values for the active sheet. */
16
- data: {
17
- type: PropType<ColumnarData>;
18
- default: undefined;
19
- };
14
+ data?: ColumnarData;
20
15
  /** Lazy row provider requested for visible windows. */
21
- datasource: {
22
- type: PropType<DataSource>;
23
- default: undefined;
24
- };
25
- /** Allocation and cache policy for datasource storage. */
26
- datasourceStorage: {
27
- type: PropType<DataSourceStorageOptions>;
28
- default: undefined;
29
- };
30
- /** Paint backend; defaults to main-thread canvas. */
31
- renderer: {
32
- type: PropType<GridOptions["renderer"]>;
33
- default: undefined;
34
- };
35
- /** Browser-fetchable worker module URL. */
36
- workerUrl: {
37
- type: PropType<GridOptions["workerUrl"]>;
38
- default: undefined;
39
- };
40
- /** Live overrides merged into the resolved Grid theme. */
41
- theme: {
42
- type: PropType<Partial<Theme>>;
43
- default: undefined;
44
- };
45
- /** Disables mutation while preserving navigation and selection. */
46
- readOnly: {
47
- type: BooleanConstructor;
48
- default: undefined;
49
- };
50
- /** Host-owned client permission check for protected ranges. */
51
- protectionResolver: {
52
- type: PropType<GridOptions["protectionResolver"]>;
53
- default: undefined;
54
- };
55
- /** Atomic or partial handling for denied local operations. */
56
- mutationPolicy: {
57
- type: PropType<GridOptions["mutationPolicy"]>;
58
- default: undefined;
59
- };
60
- /** Named custom renderers registered when the Grid is created. */
61
- renderers: {
62
- type: PropType<Record<string, CellRenderer>>;
63
- default: undefined;
64
- };
65
- /** Extra rows painted above and below the viewport. */
66
- overscan: {
67
- type: NumberConstructor;
68
- default: undefined;
69
- };
70
- /** Minimum rendered column count, including empty padding columns. */
71
- minColumns: {
72
- type: NumberConstructor;
73
- default: undefined;
74
- };
75
- /** Built-in toolbar, menu, keyboard, find, and tab controls. */
76
- config: {
77
- type: PropType<GridOptions["config"]>;
78
- default: undefined;
79
- };
80
- /** Explicit source passed to process-wide WASM initialization. */
81
- wasmSource: {
82
- type: PropType<SheetwriteInitializationProps["wasmSource"]>;
83
- default: undefined;
84
- };
85
- /** Host height in CSS pixels for numbers or any CSS length string. */
86
- height: {
87
- type: (NumberConstructor | StringConstructor)[];
88
- default: undefined;
89
- };
90
- /** Fills the parent's available width and height. */
91
- fill: {
92
- type: BooleanConstructor;
93
- default: undefined;
94
- };
95
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
96
- [key: string]: any;
97
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
98
- "grid-change": (_event: ChangeEvent) => boolean;
99
- "selection-change": (_selection: Selection | null) => boolean;
100
- "viewport-change": (_event: GridEvents["scroll"]) => boolean;
101
- "edit-begin": (_event: GridEvents["edit-begin"]) => boolean;
102
- "edit-commit": (_event: GridEvents["edit-commit"]) => boolean;
103
- search: (_result: GridEvents["search"]) => boolean;
104
- "active-sheet-change": (_event: GridEvents["active-sheet"]) => boolean;
105
- ready: (_event: GridReadyEvent) => boolean;
106
- "initialization-error": (_error: unknown) => boolean;
107
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
108
- /** Live workbook schema adopted by the Grid. */
109
- workbook: {
110
- type: PropType<Workbook>;
111
- required: true;
112
- };
113
- /** Eager column-major values for the active sheet. */
114
- data: {
115
- type: PropType<ColumnarData>;
116
- default: undefined;
117
- };
118
- /** Lazy row provider requested for visible windows. */
119
- datasource: {
120
- type: PropType<DataSource>;
121
- default: undefined;
122
- };
16
+ datasource?: DataSource;
123
17
  /** Allocation and cache policy for datasource storage. */
124
- datasourceStorage: {
125
- type: PropType<DataSourceStorageOptions>;
126
- default: undefined;
127
- };
18
+ datasourceStorage?: DataSourceStorageOptions;
19
+ /** Optional projection from canonical data-space operations to host row IDs. */
20
+ rowBridge?: RowBridge<Id>;
128
21
  /** Paint backend; defaults to main-thread canvas. */
129
- renderer: {
130
- type: PropType<GridOptions["renderer"]>;
131
- default: undefined;
132
- };
22
+ renderer?: GridOptions["renderer"];
133
23
  /** Browser-fetchable worker module URL. */
134
- workerUrl: {
135
- type: PropType<GridOptions["workerUrl"]>;
136
- default: undefined;
137
- };
24
+ workerUrl?: GridOptions["workerUrl"];
25
+ /** Positional spreadsheet or semantic data-grid headers. */
26
+ presentation?: GridOptions["presentation"];
138
27
  /** Live overrides merged into the resolved Grid theme. */
139
- theme: {
140
- type: PropType<Partial<Theme>>;
141
- default: undefined;
142
- };
28
+ theme?: Partial<Theme>;
143
29
  /** Disables mutation while preserving navigation and selection. */
144
- readOnly: {
145
- type: BooleanConstructor;
146
- default: undefined;
147
- };
30
+ readOnly?: boolean;
148
31
  /** Host-owned client permission check for protected ranges. */
149
- protectionResolver: {
150
- type: PropType<GridOptions["protectionResolver"]>;
151
- default: undefined;
152
- };
32
+ protectionResolver?: GridOptions["protectionResolver"];
153
33
  /** Atomic or partial handling for denied local operations. */
154
- mutationPolicy: {
155
- type: PropType<GridOptions["mutationPolicy"]>;
156
- default: undefined;
157
- };
34
+ mutationPolicy?: GridOptions["mutationPolicy"];
35
+ /** Overrides inclusive operation-count and encoded-byte ceilings for every atomic mutation. */
36
+ transactionResourceLimits?: GridOptions["transactionResourceLimits"];
37
+ /** Controls link activation: emit an event, also navigate internally, or disable it. */
38
+ hyperlinkActivation?: GridOptions["hyperlinkActivation"];
158
39
  /** Named custom renderers registered when the Grid is created. */
159
- renderers: {
160
- type: PropType<Record<string, CellRenderer>>;
161
- default: undefined;
162
- };
40
+ renderers?: Record<string, CellRenderer>;
41
+ /** Named custom editors registered when the Grid is created. */
42
+ editors?: GridOptions["editors"];
163
43
  /** Extra rows painted above and below the viewport. */
164
- overscan: {
165
- type: NumberConstructor;
166
- default: undefined;
167
- };
44
+ overscan?: number;
168
45
  /** Minimum rendered column count, including empty padding columns. */
169
- minColumns: {
170
- type: NumberConstructor;
171
- default: undefined;
172
- };
46
+ minColumns?: number;
173
47
  /** Built-in toolbar, menu, keyboard, find, and tab controls. */
174
- config: {
175
- type: PropType<GridOptions["config"]>;
176
- default: undefined;
177
- };
48
+ config?: GridOptions["config"];
178
49
  /** Explicit source passed to process-wide WASM initialization. */
179
- wasmSource: {
180
- type: PropType<SheetwriteInitializationProps["wasmSource"]>;
181
- default: undefined;
182
- };
50
+ wasmSource?: SheetwriteInitializationProps["wasmSource"];
183
51
  /** Host height in CSS pixels for numbers or any CSS length string. */
184
- height: {
185
- type: (NumberConstructor | StringConstructor)[];
186
- default: undefined;
187
- };
52
+ height?: number | string;
188
53
  /** Fills the parent's available width and height. */
189
- fill: {
190
- type: BooleanConstructor;
191
- default: undefined;
192
- };
193
- }>> & Readonly<{
194
- "onActive-sheet-change"?: ((_event: {
195
- sheet: import("@sheetwrite/core").SheetId;
196
- }) => any) | undefined;
197
- "onEdit-begin"?: ((_event: {
198
- addr: import("@sheetwrite/core").CellAddress;
199
- }) => any) | undefined;
200
- "onEdit-commit"?: ((_event: {
201
- addr: import("@sheetwrite/core").CellAddress;
202
- value: import("@sheetwrite/core").CellValue;
203
- }) => any) | undefined;
204
- "onGrid-change"?: ((_event: ChangeEvent) => any) | undefined;
205
- "onInitialization-error"?: ((_error: unknown) => any) | undefined;
206
- onReady?: ((_event: GridReadyEvent) => any) | undefined;
207
- onSearch?: ((_result: import("@sheetwrite/core").SearchResult) => any) | undefined;
208
- "onSelection-change"?: ((_selection: Selection | null) => any) | undefined;
209
- "onViewport-change"?: ((_event: {
210
- scrollTop: number;
211
- firstRow: number;
212
- lastRow: number;
213
- }) => any) | undefined;
214
- }>, {
215
- data: ColumnarData;
216
- datasource: DataSource;
217
- datasourceStorage: DataSourceStorageOptions;
218
- renderer: "canvas" | "worker" | undefined;
219
- workerUrl: string | URL | undefined;
220
- theme: Partial<Theme>;
221
- readOnly: boolean;
222
- protectionResolver: import("@sheetwrite/core").ProtectionResolver | undefined;
223
- mutationPolicy: import("@sheetwrite/core").MutationPolicyMode | undefined;
224
- renderers: Record<string, CellRenderer>;
225
- overscan: number;
226
- minColumns: number;
227
- config: import("@sheetwrite/core").GridConfig | undefined;
228
- wasmSource: string | WebAssembly.Module | Request | URL | BufferSource | undefined;
229
- height: string | number;
230
- fill: boolean;
231
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
232
- /** Advanced framework component for workbook data or datasource input. */
233
- export declare const SheetwriteGrid: typeof SheetwriteGridComponent & {
234
- new (): InstanceType<typeof SheetwriteGridComponent> & SheetwriteGridExpose;
235
- };
236
- /** Convenience component for local object rows with live option updates. */
237
- export declare const Sheetwrite: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
238
- /** Ordered schema used to derive the component-owned sheet. */
239
- columns: {
240
- type: PropType<readonly {
241
- key: string;
242
- title: string;
243
- }[]>;
244
- required: true;
245
- };
246
- /** Rows converted to initial columnar data; missing keys become `null`. */
247
- defaultRows: {
248
- type: PropType<readonly Record<string, CellScalar>[]>;
249
- required: true;
250
- };
251
- /** Generated sheet name; defaults to `Sheet 1`. */
252
- sheetName: {
253
- type: StringConstructor;
254
- default: undefined;
255
- };
256
- /** Host height in CSS pixels for numbers or any CSS length string. */
257
- height: {
258
- type: (NumberConstructor | StringConstructor)[];
259
- default: undefined;
260
- };
261
- /** Fills the parent; exactly one of `fill` or `height` is required. */
262
- fill: {
263
- type: BooleanConstructor;
264
- default: undefined;
265
- };
266
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
267
- [key: string]: any;
268
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
+ fill?: boolean;
55
+ }
56
+ /** Simple Vue adapter props for columns and default row objects. */
57
+ export interface SheetwriteProps<Row extends Record<string, CellScalar> = Record<string, CellScalar>, Id extends RowBridgeId = RowBridgeId> extends Omit<SheetwriteGridProps<Id>, "workbook" | "data" | "datasource" | "rowBridge"> {
269
58
  /** Ordered schema used to derive the component-owned sheet. */
270
- columns: {
271
- type: PropType<readonly {
272
- key: string;
273
- title: string;
274
- }[]>;
275
- required: true;
276
- };
59
+ columns: readonly SimpleColumn<Row>[];
277
60
  /** Rows converted to initial columnar data; missing keys become `null`. */
278
- defaultRows: {
279
- type: PropType<readonly Record<string, CellScalar>[]>;
280
- required: true;
281
- };
61
+ defaultRows: readonly Row[];
282
62
  /** Generated sheet name; defaults to `Sheet 1`. */
283
- sheetName: {
284
- type: StringConstructor;
285
- default: undefined;
286
- };
287
- /** Host height in CSS pixels for numbers or any CSS length string. */
288
- height: {
289
- type: (NumberConstructor | StringConstructor)[];
290
- default: undefined;
291
- };
292
- /** Fills the parent; exactly one of `fill` or `height` is required. */
293
- fill: {
294
- type: BooleanConstructor;
295
- default: undefined;
63
+ sheetName?: string;
64
+ /** Opt-in stable identity for each host row. */
65
+ getRowId?: (row: Row, index: number) => Id;
66
+ /** Creates stable identities for Grid-inserted rows. */
67
+ createRowId?: Parameters<typeof createSimpleRowBridge<Row, Id>>[0]["createRowId"];
68
+ }
69
+ /** Event payloads emitted by the Vue components, keyed by template event name. */
70
+ export interface SheetwriteGridEmits<Id extends RowBridgeId = RowBridgeId> {
71
+ /** Projected host-row changes. */
72
+ "row-delta": Parameters<RowBridgeHandler<Id>>[0];
73
+ /** Committed Grid change, including its applied transaction. */
74
+ "grid-change": ChangeEvent;
75
+ /** Current selection, or `null` after it is cleared. */
76
+ "selection-change": Selection | null;
77
+ /** Visible row bounds and vertical scroll offset after scrolling. */
78
+ "viewport-change": GridEvents["scroll"];
79
+ /** Cell editing began. */
80
+ "edit-begin": GridEvents["edit-begin"];
81
+ /** An edit committed its parsed cell value. */
82
+ "edit-commit": GridEvents["edit-commit"];
83
+ /** Refreshed search matches and active-match index. */
84
+ search: GridEvents["search"];
85
+ /** Command availability or formatting activity changed. */
86
+ "command-state-change": GridEvents["command-state-change"];
87
+ /** The visible sheet changed. */
88
+ "active-sheet-change": GridEvents["active-sheet"];
89
+ /** A Grid mutation was rejected. */
90
+ "mutation-rejected": GridEvents["mutation-rejected"];
91
+ /** Worker rendering fell back to the main-thread canvas renderer. */
92
+ "renderer-fallback": GridEvents["renderer-fallback"];
93
+ /** A datasource request failed. */
94
+ "datasource-error": GridEvents["datasource-error"];
95
+ /** A built-in XLSX export action failed. */
96
+ "export-error": GridEvents["export-error"];
97
+ /** The adapter published a ready Grid generation. */
98
+ ready: GridReadyEvent;
99
+ /** WASM initialization failed while the component stayed mounted. */
100
+ "initialization-error": SheetwriteError;
101
+ }
102
+ /**
103
+ * Vue constructor type for Sheetwrite components: Sheetwrite-owned props,
104
+ * emitted events exposed as `on*` listener props, and the exposed instance
105
+ * surface reachable through a template ref.
106
+ */
107
+ export type SheetwriteComponentConstructor<Props, Emits, Expose = object> = new () => Expose & ComponentPublicInstance & {
108
+ $props: AllowedComponentProps & Props & VNodeProps & {
109
+ [EventName in keyof Emits & string as `on${Capitalize<EventName>}`]?: (payload: Emits[EventName]) => void;
296
110
  };
297
- }>> & Readonly<{}>, {
298
- sheetName: string;
299
- height: string | number;
300
- fill: boolean;
301
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
302
- export type { CellScalar, Grid } from "@sheetwrite/core";
303
- export type { GridReadyEvent, SimpleColumn } from "@sheetwrite/core/adapter";
111
+ };
112
+ /** Advanced framework component for workbook data or datasource input. */
113
+ export declare const SheetwriteGrid: SheetwriteComponentConstructor<SheetwriteGridProps, SheetwriteGridEmits, SheetwriteGridExpose>;
114
+ /** Convenience component for local object rows with live option updates. */
115
+ export declare const Sheetwrite: SheetwriteComponentConstructor<SheetwriteProps, SheetwriteGridEmits>;
116
+ export type { CellEditor, CellEditorContext, CellEditorInstance, CellEditorNavigation, CellScalar, Grid, GridCommandName, GridCommandState, } from "@sheetwrite/core";
117
+ export type { GridReadyEvent, RowBridge, RowBridgeDelta, RowBridgeHandler, RowBridgeId, RowBridgeProjection, SimpleColumn, } from "@sheetwrite/core/adapter";
304
118
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAGhB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,KAAK,cAAc,EAInB,KAAK,6BAA6B,EAEnC,MAAM,0B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AC;AAEF,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,IAAI,EACJ,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,YAAY,GACb,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { initSheetwrite, isSheetwriteReady, } from "@sheetwrite/core";
2
- import { createGridController, createSimpleGridInput, getGridResetReason, gridSizeStyle, } from "@sheetwrite/core/adapter";
2
+ import { createGridController, createSimpleGridInput, createSimpleRowBridge, getGridResetReason, gridSizeStyle, } from "@sheetwrite/core/adapter";
3
3
  import { defineComponent, h, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, watch, } from "vue";
4
4
  const gridProps = {
5
5
  workbook: { type: Object, required: true },
@@ -9,11 +9,13 @@ const gridProps = {
9
9
  type: Object,
10
10
  default: undefined,
11
11
  },
12
+ rowBridge: { type: Object, default: undefined },
12
13
  renderer: { type: String, default: undefined },
13
14
  workerUrl: {
14
15
  type: [String, URL],
15
16
  default: undefined,
16
17
  },
18
+ presentation: { type: String, default: undefined },
17
19
  theme: { type: Object, default: undefined },
18
20
  readOnly: { type: Boolean, default: undefined },
19
21
  protectionResolver: {
@@ -24,7 +26,16 @@ const gridProps = {
24
26
  type: String,
25
27
  default: undefined,
26
28
  },
29
+ transactionResourceLimits: {
30
+ type: Object,
31
+ default: undefined,
32
+ },
33
+ hyperlinkActivation: {
34
+ type: String,
35
+ default: undefined,
36
+ },
27
37
  renderers: { type: Object, default: undefined },
38
+ editors: { type: Object, default: undefined },
28
39
  overscan: { type: Number, default: undefined },
29
40
  minColumns: { type: Number, default: undefined },
30
41
  config: { type: Object, default: undefined },
@@ -37,12 +48,18 @@ const gridProps = {
37
48
  };
38
49
  const gridEmits = {
39
50
  "grid-change": (_event) => true,
51
+ "row-delta": (_projection) => true,
40
52
  "selection-change": (_selection) => true,
41
53
  "viewport-change": (_event) => true,
42
54
  "edit-begin": (_event) => true,
43
55
  "edit-commit": (_event) => true,
44
56
  search: (_result) => true,
57
+ "command-state-change": (_event) => true,
45
58
  "active-sheet-change": (_event) => true,
59
+ "mutation-rejected": (_event) => true,
60
+ "renderer-fallback": (_event) => true,
61
+ "datasource-error": (_event) => true,
62
+ "export-error": (_event) => true,
46
63
  ready: (_event) => true,
47
64
  "initialization-error": (_error) => true,
48
65
  };
@@ -61,12 +78,18 @@ const SheetwriteGridComponent = defineComponent({
61
78
  let initializationToken = 0;
62
79
  const handlers = {
63
80
  onGridChange: (event) => emit("grid-change", event),
81
+ onRowDelta: (projection) => emit("row-delta", projection),
64
82
  onSelectionChange: (selection) => emit("selection-change", selection),
65
83
  onViewportChange: (event) => emit("viewport-change", event),
66
84
  onEditBegin: (event) => emit("edit-begin", event),
67
85
  onEditCommit: (event) => emit("edit-commit", event),
68
86
  onSearch: (result) => emit("search", result),
87
+ onCommandStateChange: (event) => emit("command-state-change", event),
69
88
  onActiveSheetChange: (event) => emit("active-sheet-change", event),
89
+ onMutationRejected: (event) => emit("mutation-rejected", event),
90
+ onRendererFallback: (event) => emit("renderer-fallback", event),
91
+ onDatasourceError: (event) => emit("datasource-error", event),
92
+ onExportError: (event) => emit("export-error", event),
70
93
  };
71
94
  function currentOptions() {
72
95
  return {
@@ -76,11 +99,15 @@ const SheetwriteGridComponent = defineComponent({
76
99
  datasourceStorage: props.datasourceStorage,
77
100
  renderer: props.renderer,
78
101
  workerUrl: props.workerUrl,
102
+ presentation: props.presentation,
79
103
  theme: props.theme,
80
104
  readOnly: props.readOnly,
81
105
  protectionResolver: props.protectionResolver,
82
106
  mutationPolicy: props.mutationPolicy,
107
+ transactionResourceLimits: props.transactionResourceLimits,
108
+ hyperlinkActivation: props.hyperlinkActivation,
83
109
  renderers: props.renderers,
110
+ editors: props.editors,
84
111
  overscan: props.overscan,
85
112
  minColumns: props.minColumns,
86
113
  config: props.config,
@@ -99,7 +126,7 @@ const SheetwriteGridComponent = defineComponent({
99
126
  ? "initial"
100
127
  : ((previousOptions && getGridResetReason(previousOptions, options)) ?? "input-reset");
101
128
  teardownGrid();
102
- const created = createGridController(host.value, options, handlers);
129
+ const created = createGridController(host.value, options, handlers, props.rowBridge);
103
130
  controller = created;
104
131
  generation += 1;
105
132
  previousOptions = options;
@@ -122,8 +149,9 @@ const SheetwriteGridComponent = defineComponent({
122
149
  }
123
150
  }
124
151
  catch (error) {
125
- if (mounted && token === initializationToken)
152
+ if (mounted && token === initializationToken) {
126
153
  emit("initialization-error", error);
154
+ }
127
155
  }
128
156
  }
129
157
  onMounted(() => {
@@ -143,11 +171,16 @@ const SheetwriteGridComponent = defineComponent({
143
171
  props.data,
144
172
  props.datasource,
145
173
  props.datasourceStorage,
174
+ props.rowBridge,
146
175
  props.renderer,
147
176
  props.workerUrl,
177
+ props.presentation,
148
178
  props.protectionResolver,
149
179
  props.mutationPolicy,
180
+ props.transactionResourceLimits,
181
+ props.hyperlinkActivation,
150
182
  props.renderers,
183
+ props.editors,
151
184
  ], () => {
152
185
  if (isSheetwriteReady())
153
186
  void createCurrentGrid();
@@ -168,13 +201,21 @@ const SheetwriteGridComponent = defineComponent({
168
201
  },
169
202
  });
170
203
  export const SheetwriteGrid = SheetwriteGridComponent;
171
- export const Sheetwrite = defineComponent({
204
+ const SheetwriteSimpleComponent = defineComponent({
172
205
  name: "SheetwriteComponent",
173
206
  inheritAttrs: false,
174
207
  props: {
175
208
  columns: { type: Array, required: true },
176
209
  defaultRows: { type: Array, required: true },
177
210
  sheetName: { type: String, default: undefined },
211
+ getRowId: {
212
+ type: Function,
213
+ default: undefined,
214
+ },
215
+ createRowId: {
216
+ type: Function,
217
+ default: undefined,
218
+ },
178
219
  height: { type: [Number, String], default: undefined },
179
220
  fill: { type: Boolean, default: undefined },
180
221
  },
@@ -183,6 +224,9 @@ export const Sheetwrite = defineComponent({
183
224
  let inputColumns = null;
184
225
  let inputRows = null;
185
226
  let inputSheetName;
227
+ let rowBridge;
228
+ let inputGetRowId;
229
+ let inputCreateRowId;
186
230
  return () => {
187
231
  if ((props.height === undefined && !props.fill) ||
188
232
  (props.height !== undefined && props.fill)) {
@@ -191,18 +235,29 @@ export const Sheetwrite = defineComponent({
191
235
  if (input === null ||
192
236
  inputColumns !== props.columns ||
193
237
  inputRows !== props.defaultRows ||
194
- inputSheetName !== props.sheetName) {
238
+ inputSheetName !== props.sheetName ||
239
+ inputGetRowId !== props.getRowId ||
240
+ inputCreateRowId !== props.createRowId) {
195
241
  input = createSimpleGridInput({
196
242
  columns: props.columns,
197
243
  defaultRows: props.defaultRows,
198
244
  sheetName: props.sheetName,
199
245
  });
246
+ rowBridge = createSimpleRowBridge({
247
+ columns: props.columns,
248
+ defaultRows: props.defaultRows,
249
+ ...(props.getRowId === undefined ? {} : { getRowId: props.getRowId }),
250
+ ...(props.createRowId === undefined ? {} : { createRowId: props.createRowId }),
251
+ });
200
252
  inputColumns = props.columns;
201
253
  inputRows = props.defaultRows;
202
254
  inputSheetName = props.sheetName;
255
+ inputGetRowId = props.getRowId;
256
+ inputCreateRowId = props.createRowId;
203
257
  }
204
- return h(SheetwriteGrid, { ...attrs, ...props, ...input }, slots);
258
+ return h(SheetwriteGrid, { ...attrs, height: props.height, fill: props.fill, ...input, rowBridge }, slots);
205
259
  };
206
260
  },
207
261
  });
262
+ export const Sheetwrite = SheetwriteSimpleComponent;
208
263
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,cAAc,EACd,iBAAiB,GAIlB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAKrB,kBAAkB,EAClB,aAAa,GAGd,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe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CAAC;gBACH,SAAS,GAAG,qBAAqB,CAAC;oBAChC,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,WAAW,EAAE,KAAK,CAAC,WAAW;oBAC9B,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACrE,GAAG,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC;iBAC/E,CAAC,CAAC;gBACH,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;gBAC7B,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC;gBAC9B,cAAc,GAAG,KAAK,CAAC,SAAS,CAAC;gBACjC,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAC/B,gBAAgB,GAAG,KAAK,CAAC,WAAW,CAAC;YACvC,CAAC;YACD,OAAO,CAAC,CACN,cAAc,EACd,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,EACzE,KAAK,CACN,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,UAAU,GAAG,yBAGzB,CAAC"}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@sheetwrite/vue",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Vue adapter for Sheetwrite.",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/chh-ay/Sheetwrite.git",
9
+ "url": "git+https://github.com/chh-ay/sheetwrite.git",
10
10
  "directory": "packages/vue"
11
11
  },
12
- "homepage": "https://chh-ay.github.io/Sheetwrite/",
12
+ "homepage": "https://sheetwrite.vercel.app/",
13
13
  "bugs": {
14
- "url": "https://github.com/chh-ay/Sheetwrite/issues"
14
+ "url": "https://github.com/chh-ay/sheetwrite/issues"
15
15
  },
16
16
  "keywords": [
17
17
  "spreadsheet",
@@ -45,6 +45,6 @@
45
45
  "vue": ">=3.4"
46
46
  },
47
47
  "dependencies": {
48
- "@sheetwrite/core": "0.1.0"
48
+ "@sheetwrite/core": "0.3.0"
49
49
  }
50
50
  }