@updog/data-editor-wc 0.1.47 → 0.1.49

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 +15 -1
  3. package/index.js +5958 -5420
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -496,6 +496,9 @@ declare var export_default = {
496
496
  createOptionNamePlaceholder: "Enter option name",
497
497
  createOptionNameTaken: "This option already exists",
498
498
  createOptionSubmit: "Create",
499
+ reapplySeparator: "Reset to auto-detected separator",
500
+ separator: "Separator",
501
+ separatedBy: "Values separated by",
499
502
  },
500
503
  primaryKey: {
501
504
  none: "No primary key",
@@ -687,6 +690,16 @@ type SelectEditorCell = {
687
690
  */
688
691
  enableCustomValue?: boolean;
689
692
  };
693
+ /** Multi-select cell. The user picks zero or more options; stored value is `string[]`. */
694
+ type MultiSelectEditorCell = {
695
+ type: "multiselect";
696
+ /** Options shown in the dropdown. Each string is both stored value and label. */
697
+ options: string[];
698
+ /** Let users add options via "Create option". Defaults to true. */
699
+ enableCustomValue?: boolean;
700
+ /** Splits a raw imported cell and joins on export. Omitted: import auto-detects, export joins with `", "`. */
701
+ delimiter?: string;
702
+ };
690
703
  /** Number input cell with locale-aware formatting. */
691
704
  type NumberEditorCell = {
692
705
  type: "number";
@@ -705,9 +718,10 @@ type NumberEditorCell = {
705
718
  * - `"text"` — plain text input (default).
706
719
  * - `"date"` — date picker with optional min/max bounds.
707
720
  * - `"select"` — dropdown with a fixed list of options.
721
+ * - `"multiselect"` — dropdown allowing zero or more options; stored as `string[]`.
708
722
  * - `"number"` — number input with locale-aware formatting.
709
723
  */
710
- type CellEditor = TextEditorCell | DateEditorCell | SelectEditorCell | NumberEditorCell;
724
+ type CellEditor = TextEditorCell | DateEditorCell | SelectEditorCell | MultiSelectEditorCell | NumberEditorCell;
711
725
  /** Dropdown filter shown in the sidebar Filters panel. */
712
726
  type SelectColumnFilter = {
713
727
  type: "select";