@updog/data-editor-wc 0.1.37 → 0.1.39

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 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: {
@@ -445,7 +448,11 @@ declare var export_default = {
445
448
  clickToUpload: "Click to upload",
446
449
  orDragAndDrop: "or drag and drop",
447
450
  formats: "CSV, TSV, XLSX, JSON, XML",
451
+ csvWarning_one: "{{count}} row had formatting issues (row {{rows}})",
452
+ csvWarning_other:
453
+ "{{count}} rows had formatting issues (rows {{rows}})",
448
454
  downloadExample: "Download sample file",
455
+ uploading: "Uploading file",
449
456
  },
450
457
  remoteSources: {
451
458
  browseFile: "Browse file",
@@ -495,7 +502,8 @@ declare var export_default = {
495
502
  title: "Select primary key",
496
503
  text: "Choose the column that uniquely identifies each row",
497
504
  none: "No primary key",
498
- noneHint: "All rows will be appended as new entries without deduplication.",
505
+ noneHint:
506
+ "All rows will be appended as new entries without deduplication.",
499
507
  },
500
508
  },
501
509
  chat: {
@@ -507,6 +515,7 @@ declare var export_default = {
507
515
  common: {
508
516
  cancel: "Cancel",
509
517
  collapse: "Collapse",
518
+ dropToImport: "Drop file to import",
510
519
  expand: "Expand",
511
520
  remove: "Remove",
512
521
  search: "Search",
@@ -528,13 +537,22 @@ type DeepPartial<T> = {
528
537
  * e.g. `{ createRows_one: string; createRows_other: string }` becomes
529
538
  * `{ createRows_zero?: string; createRows_one?: string; createRows_two?: string; ... }`
530
539
  */
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;
540
+ type ExpandPluralKeys<T> =
541
+ T extends Record<string, unknown>
542
+ ? {
543
+ [K in keyof T as K extends `${infer Base}${PluralSuffixes}`
544
+ ?
545
+ | `${Base}_zero`
546
+ | `${Base}_one`
547
+ | `${Base}_two`
548
+ | `${Base}_few`
549
+ | `${Base}_many`
550
+ | `${Base}_other`
551
+ : K]: T[K] extends Record<string, unknown>
552
+ ? ExpandPluralKeys<T[K]>
553
+ : T[K];
554
+ }
555
+ : T;
538
556
 
539
557
  /**
540
558
  * Consumer-facing translations type. All keys optional — consumers override only what they need.
@@ -616,8 +634,13 @@ type FunctionValidator = {
616
634
  */
617
635
  type ValidatorRule = BuiltInValidator | ExpressionValidator | FunctionValidator;
618
636
 
619
- /** Severity level for a validation message. */
620
- type ValidationLevel = "error";
637
+ /**
638
+ * Severity level for a validation message.
639
+ * - `"error"` — a validation failure: marks the row invalid, counts as an error.
640
+ * - `"misplaced"` — a structural suspicion after ragged-row realignment: flags
641
+ * the cell to check, but is not an error and does not invalidate the row.
642
+ */
643
+ type ValidationLevel = "error" | "misplaced";
621
644
  /**
622
645
  * A single validation message attached to a cell.
623
646
  * Return this from a `CellValidator` to flag a problem.