@geomak/ui 7.12.0 → 7.13.0

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/dist/index.d.cts CHANGED
@@ -444,6 +444,8 @@ interface MenuButtonItem {
444
444
  danger?: boolean;
445
445
  /** Render a divider above this item. */
446
446
  separatorBefore?: boolean;
447
+ /** Nested sub-menu items. When set, this row opens a sub-menu instead of firing `onSelect`. */
448
+ children?: MenuButtonItem[];
447
449
  }
448
450
  interface MenuButtonProps {
449
451
  /** Trigger label. */
@@ -2757,6 +2759,12 @@ interface DataGridProps {
2757
2759
  column: string;
2758
2760
  value: string;
2759
2761
  }) => void;
2762
+ /** Enable right-click menus: Copy/Cut/Paste on cells, Add/Delete on rows. Default false. */
2763
+ contextMenu?: boolean;
2764
+ /** Insert a blank row at `index` (from the row right-click menu). */
2765
+ onInsertRow?: (index: number) => void;
2766
+ /** Delete the row at `index` (from the row right-click menu). */
2767
+ onDeleteRow?: (index: number) => void;
2760
2768
  className?: string;
2761
2769
  style?: react__default.CSSProperties;
2762
2770
  /** Shown when there are no rows. */
@@ -2773,7 +2781,7 @@ interface DataGridProps {
2773
2781
  * `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
2774
2782
  * switching, file parsing and export.
2775
2783
  */
2776
- declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
2784
+ declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, contextMenu, onInsertRow, onDeleteRow, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
2777
2785
 
2778
2786
  interface Cell {
2779
2787
  value: CellValue;
package/dist/index.d.ts CHANGED
@@ -444,6 +444,8 @@ interface MenuButtonItem {
444
444
  danger?: boolean;
445
445
  /** Render a divider above this item. */
446
446
  separatorBefore?: boolean;
447
+ /** Nested sub-menu items. When set, this row opens a sub-menu instead of firing `onSelect`. */
448
+ children?: MenuButtonItem[];
447
449
  }
448
450
  interface MenuButtonProps {
449
451
  /** Trigger label. */
@@ -2757,6 +2759,12 @@ interface DataGridProps {
2757
2759
  column: string;
2758
2760
  value: string;
2759
2761
  }) => void;
2762
+ /** Enable right-click menus: Copy/Cut/Paste on cells, Add/Delete on rows. Default false. */
2763
+ contextMenu?: boolean;
2764
+ /** Insert a blank row at `index` (from the row right-click menu). */
2765
+ onInsertRow?: (index: number) => void;
2766
+ /** Delete the row at `index` (from the row right-click menu). */
2767
+ onDeleteRow?: (index: number) => void;
2760
2768
  className?: string;
2761
2769
  style?: react__default.CSSProperties;
2762
2770
  /** Shown when there are no rows. */
@@ -2773,7 +2781,7 @@ interface DataGridProps {
2773
2781
  * `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
2774
2782
  * switching, file parsing and export.
2775
2783
  */
2776
- declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
2784
+ declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, contextMenu, onInsertRow, onDeleteRow, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
2777
2785
 
2778
2786
  interface Cell {
2779
2787
  value: CellValue;