@updog/data-editor 0.1.47 → 0.1.48
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 +15 -1
- package/index.js +3308 -2883
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -498,6 +498,9 @@ declare var export_default = {
|
|
|
498
498
|
createOptionNamePlaceholder: "Enter option name",
|
|
499
499
|
createOptionNameTaken: "This option already exists",
|
|
500
500
|
createOptionSubmit: "Create",
|
|
501
|
+
reapplySeparator: "Reset to auto-detected separator",
|
|
502
|
+
separator: "Separator",
|
|
503
|
+
separatedBy: "Values separated by",
|
|
501
504
|
},
|
|
502
505
|
primaryKey: {
|
|
503
506
|
none: "No primary key",
|
|
@@ -723,6 +726,16 @@ type SelectEditorCell = {
|
|
|
723
726
|
*/
|
|
724
727
|
enableCustomValue?: boolean;
|
|
725
728
|
};
|
|
729
|
+
/** Multi-select cell. The user picks zero or more options; stored value is `string[]`. */
|
|
730
|
+
type MultiSelectEditorCell = {
|
|
731
|
+
type: "multiselect";
|
|
732
|
+
/** Options shown in the dropdown. Each string is both stored value and label. */
|
|
733
|
+
options: string[];
|
|
734
|
+
/** Let users add options via "Create option". Defaults to true. */
|
|
735
|
+
enableCustomValue?: boolean;
|
|
736
|
+
/** Splits a raw imported cell and joins on export. Omitted: import auto-detects, export joins with `", "`. */
|
|
737
|
+
delimiter?: string;
|
|
738
|
+
};
|
|
726
739
|
/** Number input cell with locale-aware formatting. */
|
|
727
740
|
type NumberEditorCell = {
|
|
728
741
|
type: "number";
|
|
@@ -741,9 +754,10 @@ type NumberEditorCell = {
|
|
|
741
754
|
* - `"text"` — plain text input (default).
|
|
742
755
|
* - `"date"` — date picker with optional min/max bounds.
|
|
743
756
|
* - `"select"` — dropdown with a fixed list of options.
|
|
757
|
+
* - `"multiselect"` — dropdown allowing zero or more options; stored as `string[]`.
|
|
744
758
|
* - `"number"` — number input with locale-aware formatting.
|
|
745
759
|
*/
|
|
746
|
-
type CellEditor = TextEditorCell | DateEditorCell | SelectEditorCell | NumberEditorCell;
|
|
760
|
+
type CellEditor = TextEditorCell | DateEditorCell | SelectEditorCell | MultiSelectEditorCell | NumberEditorCell;
|
|
747
761
|
/** Dropdown filter shown in the sidebar Filters panel. */
|
|
748
762
|
type SelectColumnFilter = {
|
|
749
763
|
type: "select";
|