@updog/data-editor-wc 0.1.40 → 0.1.42
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 +48 -36
- package/index.js +7585 -7420
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -464,8 +464,8 @@ declare var export_default = {
|
|
|
464
464
|
text: "Map imported columns to existing columns",
|
|
465
465
|
banner: "Some columns could not be automatically matched",
|
|
466
466
|
importedColumns: "Imported columns",
|
|
467
|
+
matchedCount: "{{matched}}/{{total}} matched",
|
|
467
468
|
targetColumns: "Target columns",
|
|
468
|
-
unmatchedCount: "{{count}} unmatched",
|
|
469
469
|
selectColumnPlaceholder: "Select column",
|
|
470
470
|
bestMatch: "Best match",
|
|
471
471
|
createColumn: "Create column",
|
|
@@ -491,12 +491,19 @@ declare var export_default = {
|
|
|
491
491
|
title: "Match values",
|
|
492
492
|
text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
|
|
493
493
|
importedValues: "Imported values",
|
|
494
|
+
matchedCount: "{{matched}}/{{total}} matched",
|
|
494
495
|
targetValue: "Target value",
|
|
495
|
-
unmatchedCount: "{{count}} unmatched",
|
|
496
496
|
selectValuePlaceholder: "Select value",
|
|
497
497
|
showMatched: "Show matched",
|
|
498
498
|
allMatched: "All values are matched",
|
|
499
|
-
unmatchedWarning:
|
|
499
|
+
unmatchedWarning:
|
|
500
|
+
"Unmatched values won't be imported. Match this value to keep the data. You can edit values after importing.",
|
|
501
|
+
createOption: "Create option",
|
|
502
|
+
createOptionTitle: "Create option",
|
|
503
|
+
createOptionNameLabel: "Option name",
|
|
504
|
+
createOptionNamePlaceholder: "Enter option name",
|
|
505
|
+
createOptionNameTaken: "This option already exists",
|
|
506
|
+
createOptionSubmit: "Create",
|
|
500
507
|
},
|
|
501
508
|
primaryKey: {
|
|
502
509
|
title: "Select primary key",
|
|
@@ -684,6 +691,11 @@ type SelectEditorCell = {
|
|
|
684
691
|
type: "select";
|
|
685
692
|
/** The list of options shown in the dropdown. Each string is both the stored value and the display label. */
|
|
686
693
|
options: string[];
|
|
694
|
+
/**
|
|
695
|
+
* Let users add options via "Create option" (matching step + grid); never
|
|
696
|
+
* created implicitly. Defaults to true; false for a strict closed enum.
|
|
697
|
+
*/
|
|
698
|
+
enableCustomValue?: boolean;
|
|
687
699
|
};
|
|
688
700
|
/** Number input cell with locale-aware formatting. */
|
|
689
701
|
type NumberEditorCell = {
|
|
@@ -807,39 +819,6 @@ type DataEditorColumn = {
|
|
|
807
819
|
locked?: boolean | ColumnLockMode;
|
|
808
820
|
};
|
|
809
821
|
|
|
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
822
|
/**
|
|
844
823
|
* A single operation the LLM wants to apply to rows in the current filtered view.
|
|
845
824
|
*
|
|
@@ -978,6 +957,39 @@ type DataEditorChat<TRow extends DataEditorRow = DataEditorRow> = {
|
|
|
978
957
|
onCancel?: () => void;
|
|
979
958
|
};
|
|
980
959
|
|
|
960
|
+
/**
|
|
961
|
+
* Categories of internal errors surfaced through the `onError` callback.
|
|
962
|
+
*
|
|
963
|
+
* Existing categories cover client-side failures. `scale.*` codes cover
|
|
964
|
+
* server-mode (Updog Scale) failures. `license.*` codes cover license
|
|
965
|
+
* validation failures (previously a separate `LicenseErrorCode` enum).
|
|
966
|
+
*/
|
|
967
|
+
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";
|
|
968
|
+
/**
|
|
969
|
+
* An internal error caught by the SDK and passed to `onError`. The SDK
|
|
970
|
+
* recovers gracefully where possible — `onError` is for your logging and
|
|
971
|
+
* monitoring (Sentry, Datadog, etc.).
|
|
972
|
+
*
|
|
973
|
+
* @example
|
|
974
|
+
* ```ts
|
|
975
|
+
* onError={(error) => {
|
|
976
|
+
* Sentry.captureException(error.originalError ?? error, {
|
|
977
|
+
* tags: { code: error.code, source: error.source },
|
|
978
|
+
* });
|
|
979
|
+
* }}
|
|
980
|
+
* ```
|
|
981
|
+
*/
|
|
982
|
+
type UpdogError = {
|
|
983
|
+
/** The error category. */
|
|
984
|
+
code: UpdogErrorCode;
|
|
985
|
+
/** Human-readable description. */
|
|
986
|
+
message: string;
|
|
987
|
+
/** Module or subsystem that raised the error. */
|
|
988
|
+
source: string;
|
|
989
|
+
/** The underlying thrown value, when available. */
|
|
990
|
+
originalError?: unknown;
|
|
991
|
+
};
|
|
992
|
+
|
|
981
993
|
type ScaleServerConfig = {
|
|
982
994
|
url: string;
|
|
983
995
|
};
|