@updog/data-editor-wc 0.1.41 → 0.1.43
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.css +1 -1
- package/index.d.ts +46 -45
- package/index.js +7604 -7522
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -441,9 +441,6 @@ declare var export_default = {
|
|
|
441
441
|
primaryKey: "Primary key",
|
|
442
442
|
},
|
|
443
443
|
uploadFile: {
|
|
444
|
-
title: "Upload file",
|
|
445
|
-
text: "Upload a CSV, TSV, Excel, JSON or XML file to import data",
|
|
446
|
-
textDynamic: "Upload a {{formats}} file to import data",
|
|
447
444
|
parseError: "Failed to parse file",
|
|
448
445
|
clickToUpload: "Click to upload",
|
|
449
446
|
orDragAndDrop: "or drag and drop",
|
|
@@ -460,8 +457,6 @@ declare var export_default = {
|
|
|
460
457
|
fetchError: "Failed to load data",
|
|
461
458
|
},
|
|
462
459
|
matchColumns: {
|
|
463
|
-
title: "Match columns",
|
|
464
|
-
text: "Map imported columns to existing columns",
|
|
465
460
|
banner: "Some columns could not be automatically matched",
|
|
466
461
|
importedColumns: "Imported columns",
|
|
467
462
|
matchedCount: "{{matched}}/{{total}} matched",
|
|
@@ -482,25 +477,26 @@ declare var export_default = {
|
|
|
482
477
|
"Unmatched columns won't be imported. Match this column to keep the data. You can transform columns after importing.",
|
|
483
478
|
},
|
|
484
479
|
sheetSelection: {
|
|
485
|
-
title: "Select sheet",
|
|
486
|
-
text: "This file contains multiple sheets. Choose which sheet to import.",
|
|
487
480
|
rowCount: "{{count}} rows",
|
|
488
481
|
emptySheet: "Empty sheet",
|
|
489
482
|
},
|
|
490
483
|
matchValues: {
|
|
491
|
-
title: "Match values",
|
|
492
|
-
text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
|
|
493
484
|
importedValues: "Imported values",
|
|
494
485
|
matchedCount: "{{matched}}/{{total}} matched",
|
|
495
486
|
targetValue: "Target value",
|
|
496
487
|
selectValuePlaceholder: "Select value",
|
|
497
488
|
showMatched: "Show matched",
|
|
498
489
|
allMatched: "All values are matched",
|
|
499
|
-
unmatchedWarning:
|
|
490
|
+
unmatchedWarning:
|
|
491
|
+
"Unmatched values won't be imported. Match this value to keep the data. You can edit values after importing.",
|
|
492
|
+
createOption: "Create option",
|
|
493
|
+
createOptionTitle: "Create option",
|
|
494
|
+
createOptionNameLabel: "Option name",
|
|
495
|
+
createOptionNamePlaceholder: "Enter option name",
|
|
496
|
+
createOptionNameTaken: "This option already exists",
|
|
497
|
+
createOptionSubmit: "Create",
|
|
500
498
|
},
|
|
501
499
|
primaryKey: {
|
|
502
|
-
title: "Select primary key",
|
|
503
|
-
text: "Choose the column that uniquely identifies each row",
|
|
504
500
|
none: "No primary key",
|
|
505
501
|
noneHint:
|
|
506
502
|
"All rows will be appended as new entries without deduplication.",
|
|
@@ -684,6 +680,11 @@ type SelectEditorCell = {
|
|
|
684
680
|
type: "select";
|
|
685
681
|
/** The list of options shown in the dropdown. Each string is both the stored value and the display label. */
|
|
686
682
|
options: string[];
|
|
683
|
+
/**
|
|
684
|
+
* Let users add options via "Create option" (matching step + grid); never
|
|
685
|
+
* created implicitly. Defaults to true; false for a strict closed enum.
|
|
686
|
+
*/
|
|
687
|
+
enableCustomValue?: boolean;
|
|
687
688
|
};
|
|
688
689
|
/** Number input cell with locale-aware formatting. */
|
|
689
690
|
type NumberEditorCell = {
|
|
@@ -807,39 +808,6 @@ type DataEditorColumn = {
|
|
|
807
808
|
locked?: boolean | ColumnLockMode;
|
|
808
809
|
};
|
|
809
810
|
|
|
810
|
-
/**
|
|
811
|
-
* Categories of internal errors surfaced through the `onError` callback.
|
|
812
|
-
*
|
|
813
|
-
* Existing categories cover client-side failures. `scale.*` codes cover
|
|
814
|
-
* server-mode (Updog Scale) failures. `license.*` codes cover license
|
|
815
|
-
* validation failures (previously a separate `LicenseErrorCode` enum).
|
|
816
|
-
*/
|
|
817
|
-
type UpdogErrorCode = "PARSE_ERROR" | "RENDER_ERROR" | "TRANSFORM_ERROR" | "VALIDATION_ERROR" | "WORKER_ERROR" | "COMMAND_ERROR" | "OPERATION_ERROR" | "license.invalid" | "license.missing" | "license.domain_not_allowed" | "license.subscription_inactive" | "license.trial_expired" | "scale.bootstrap_failed" | "scale.workspace_lost" | "scale.unreachable" | "scale.server_error";
|
|
818
|
-
/**
|
|
819
|
-
* An internal error caught by the SDK and passed to `onError`. The SDK
|
|
820
|
-
* recovers gracefully where possible — `onError` is for your logging and
|
|
821
|
-
* monitoring (Sentry, Datadog, etc.).
|
|
822
|
-
*
|
|
823
|
-
* @example
|
|
824
|
-
* ```ts
|
|
825
|
-
* onError={(error) => {
|
|
826
|
-
* Sentry.captureException(error.originalError ?? error, {
|
|
827
|
-
* tags: { code: error.code, source: error.source },
|
|
828
|
-
* });
|
|
829
|
-
* }}
|
|
830
|
-
* ```
|
|
831
|
-
*/
|
|
832
|
-
type UpdogError = {
|
|
833
|
-
/** The error category. */
|
|
834
|
-
code: UpdogErrorCode;
|
|
835
|
-
/** Human-readable description. */
|
|
836
|
-
message: string;
|
|
837
|
-
/** Module or subsystem that raised the error. */
|
|
838
|
-
source: string;
|
|
839
|
-
/** The underlying thrown value, when available. */
|
|
840
|
-
originalError?: unknown;
|
|
841
|
-
};
|
|
842
|
-
|
|
843
811
|
/**
|
|
844
812
|
* A single operation the LLM wants to apply to rows in the current filtered view.
|
|
845
813
|
*
|
|
@@ -978,6 +946,39 @@ type DataEditorChat<TRow extends DataEditorRow = DataEditorRow> = {
|
|
|
978
946
|
onCancel?: () => void;
|
|
979
947
|
};
|
|
980
948
|
|
|
949
|
+
/**
|
|
950
|
+
* Categories of internal errors surfaced through the `onError` callback.
|
|
951
|
+
*
|
|
952
|
+
* Existing categories cover client-side failures. `scale.*` codes cover
|
|
953
|
+
* server-mode (Updog Scale) failures. `license.*` codes cover license
|
|
954
|
+
* validation failures (previously a separate `LicenseErrorCode` enum).
|
|
955
|
+
*/
|
|
956
|
+
type UpdogErrorCode = "PARSE_ERROR" | "RENDER_ERROR" | "TRANSFORM_ERROR" | "VALIDATION_ERROR" | "WORKER_ERROR" | "COMMAND_ERROR" | "OPERATION_ERROR" | "license.invalid" | "license.missing" | "license.domain_not_allowed" | "license.subscription_inactive" | "license.trial_expired" | "scale.bootstrap_failed" | "scale.workspace_lost" | "scale.unreachable" | "scale.server_error";
|
|
957
|
+
/**
|
|
958
|
+
* An internal error caught by the SDK and passed to `onError`. The SDK
|
|
959
|
+
* recovers gracefully where possible — `onError` is for your logging and
|
|
960
|
+
* monitoring (Sentry, Datadog, etc.).
|
|
961
|
+
*
|
|
962
|
+
* @example
|
|
963
|
+
* ```ts
|
|
964
|
+
* onError={(error) => {
|
|
965
|
+
* Sentry.captureException(error.originalError ?? error, {
|
|
966
|
+
* tags: { code: error.code, source: error.source },
|
|
967
|
+
* });
|
|
968
|
+
* }}
|
|
969
|
+
* ```
|
|
970
|
+
*/
|
|
971
|
+
type UpdogError = {
|
|
972
|
+
/** The error category. */
|
|
973
|
+
code: UpdogErrorCode;
|
|
974
|
+
/** Human-readable description. */
|
|
975
|
+
message: string;
|
|
976
|
+
/** Module or subsystem that raised the error. */
|
|
977
|
+
source: string;
|
|
978
|
+
/** The underlying thrown value, when available. */
|
|
979
|
+
originalError?: unknown;
|
|
980
|
+
};
|
|
981
|
+
|
|
981
982
|
type ScaleServerConfig = {
|
|
982
983
|
url: string;
|
|
983
984
|
};
|