@updog/data-editor-wc 0.1.89 → 0.1.91
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/index.d.ts +12 -0
- package/index.js +4813 -4753
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -522,6 +522,8 @@ declare var export_default = {
|
|
|
522
522
|
showSampleValues: "Show example values from {{column}}",
|
|
523
523
|
unmatchedWarning:
|
|
524
524
|
"Unmatched columns won't be imported. Match this column to keep the data. You can transform columns after importing.",
|
|
525
|
+
unmatchedWarningWithRowHook:
|
|
526
|
+
"The import can read this column without a match. If you match it, the import may still change the values.",
|
|
525
527
|
},
|
|
526
528
|
sheetPreview: {
|
|
527
529
|
cancel: "Cancel processing",
|
|
@@ -859,6 +861,11 @@ type DataEditorColumn = {
|
|
|
859
861
|
editor?: CellEditor;
|
|
860
862
|
/** Adds a filter control for this column in the sidebar Filters panel. */
|
|
861
863
|
filter?: ColumnFilter;
|
|
864
|
+
/**
|
|
865
|
+
* Whether this column is offered as a target on the column-matching step.
|
|
866
|
+
* Set false for fields your `onRowImport` callback fills. @default true
|
|
867
|
+
*/
|
|
868
|
+
mappable?: boolean;
|
|
862
869
|
/**
|
|
863
870
|
* Whether this column can be pinned to the left (right in RTL) via the
|
|
864
871
|
* header context menu. @default true
|
|
@@ -1176,6 +1183,11 @@ type RowImportMeta = {
|
|
|
1176
1183
|
mapping: Record<string, string | undefined>;
|
|
1177
1184
|
/** The `context` prop, untouched. */
|
|
1178
1185
|
context: unknown;
|
|
1186
|
+
/**
|
|
1187
|
+
* Aborted when the import is cancelled and when the chunk's 30-second
|
|
1188
|
+
* timeout fires; hand it to your own fetch.
|
|
1189
|
+
*/
|
|
1190
|
+
signal: AbortSignal;
|
|
1179
1191
|
};
|
|
1180
1192
|
/**
|
|
1181
1193
|
* Chunk in, chunk out. The returned array is positional: element `i` answers
|