@updog/data-editor-wc 0.1.37 → 0.1.38

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.
Files changed (4) hide show
  1. package/index.css +1 -1
  2. package/index.d.ts +29 -10
  3. package/index.js +33980 -33559
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -215,6 +215,7 @@ declare var export_default = {
215
215
  formula: "Formula",
216
216
  lockedCannotFormula: "Can't apply a formula to a locked column",
217
217
  revertChanges: "Revert changes",
218
+ markAsCorrect: "Mark as correct",
218
219
  },
219
220
  formulaModal: {
220
221
  title: "Apply formula",
@@ -352,6 +353,7 @@ declare var export_default = {
352
353
  editedRows: "Changed rows",
353
354
  newRows: "New rows",
354
355
  rowsWithEmptyCells: "Rows with empty cells",
356
+ rowsWithMisplacedValues: "Rows with misplaced values",
355
357
  deletedRows: "Deleted rows",
356
358
  previousOccurrence: "Previous occurrence",
357
359
  nextOccurrence: "Next occurrence",
@@ -379,6 +381,7 @@ declare var export_default = {
379
381
  invalidOption: "Invalid option",
380
382
  outOfRange: "Out of range",
381
383
  required: "This field is required",
384
+ structuralMismatch: "This might be in the wrong column.",
382
385
  valueMustBeUnique: "Value must be unique",
383
386
  },
384
387
  license: {
@@ -495,7 +498,8 @@ declare var export_default = {
495
498
  title: "Select primary key",
496
499
  text: "Choose the column that uniquely identifies each row",
497
500
  none: "No primary key",
498
- noneHint: "All rows will be appended as new entries without deduplication.",
501
+ noneHint:
502
+ "All rows will be appended as new entries without deduplication.",
499
503
  },
500
504
  },
501
505
  chat: {
@@ -507,6 +511,7 @@ declare var export_default = {
507
511
  common: {
508
512
  cancel: "Cancel",
509
513
  collapse: "Collapse",
514
+ dropToImport: "Drop file to import",
510
515
  expand: "Expand",
511
516
  remove: "Remove",
512
517
  search: "Search",
@@ -528,13 +533,22 @@ type DeepPartial<T> = {
528
533
  * e.g. `{ createRows_one: string; createRows_other: string }` becomes
529
534
  * `{ createRows_zero?: string; createRows_one?: string; createRows_two?: string; ... }`
530
535
  */
531
- type ExpandPluralKeys<T> = T extends Record<string, unknown>
532
- ? {
533
- [K in keyof T as K extends `${infer Base}${PluralSuffixes}`
534
- ? `${Base}_zero` | `${Base}_one` | `${Base}_two` | `${Base}_few` | `${Base}_many` | `${Base}_other`
535
- : K]: T[K] extends Record<string, unknown> ? ExpandPluralKeys<T[K]> : T[K];
536
- }
537
- : T;
536
+ type ExpandPluralKeys<T> =
537
+ T extends Record<string, unknown>
538
+ ? {
539
+ [K in keyof T as K extends `${infer Base}${PluralSuffixes}`
540
+ ?
541
+ | `${Base}_zero`
542
+ | `${Base}_one`
543
+ | `${Base}_two`
544
+ | `${Base}_few`
545
+ | `${Base}_many`
546
+ | `${Base}_other`
547
+ : K]: T[K] extends Record<string, unknown>
548
+ ? ExpandPluralKeys<T[K]>
549
+ : T[K];
550
+ }
551
+ : T;
538
552
 
539
553
  /**
540
554
  * Consumer-facing translations type. All keys optional — consumers override only what they need.
@@ -616,8 +630,13 @@ type FunctionValidator = {
616
630
  */
617
631
  type ValidatorRule = BuiltInValidator | ExpressionValidator | FunctionValidator;
618
632
 
619
- /** Severity level for a validation message. */
620
- type ValidationLevel = "error";
633
+ /**
634
+ * Severity level for a validation message.
635
+ * - `"error"` — a validation failure: marks the row invalid, counts as an error.
636
+ * - `"misplaced"` — a structural suspicion after ragged-row realignment: flags
637
+ * the cell to check, but is not an error and does not invalidate the row.
638
+ */
639
+ type ValidationLevel = "error" | "misplaced";
621
640
  /**
622
641
  * A single validation message attached to a cell.
623
642
  * Return this from a `CellValidator` to flag a problem.