@ndmspc/ndmspc-ui 1.4.11 → 1.4.13

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.ts CHANGED
@@ -4321,7 +4321,7 @@ export declare interface NdmspcTourTriggerProps {
4321
4321
  className?: string;
4322
4322
  }
4323
4323
 
4324
- export declare function NdmspcTree({ nodes, selectedId, disabled, onNodeClick, onBadgeClick, onToggle, empty, controls, className, }: NdmspcTreeProps): JSX.Element;
4324
+ export declare function NdmspcTree({ nodes, selectedId, multi, selectedIds, onSelectionChange, disabled, onNodeClick, onBadgeClick, onToggle, empty, controls, className, }: NdmspcTreeProps): JSX.Element;
4325
4325
 
4326
4326
  /** A small label a node carries beside it, and the action a click on that label carries out. */
4327
4327
  declare interface NdmspcTreeBadge {
@@ -4366,6 +4366,16 @@ export declare interface NdmspcTreeProps {
4366
4366
  nodes: NdmspcTreeNode[];
4367
4367
  /** The id of the selected node, highlighted. */
4368
4368
  selectedId?: string;
4369
+ /**
4370
+ * Pick **several** rows instead of one: each row carries a tick, and a press toggles it rather than
4371
+ * opening or reporting it — which is what lets a folder itself be picked (a whole branch, say) without
4372
+ * being opened. Off by default, so a tree that selects one thing keeps its behaviour.
4373
+ */
4374
+ multi?: boolean;
4375
+ /** The picked ids, when `multi` — held by the host, which decides what a selection means. */
4376
+ selectedIds?: string[];
4377
+ /** Called with the whole new selection (order kept) when a row is toggled in `multi` mode. */
4378
+ onSelectionChange?: (ids: string[]) => void;
4369
4379
  /** Disable every interaction (e.g. while a form runs). */
4370
4380
  disabled?: boolean;
4371
4381
  /** Called when a row is clicked — the host decides what that means. */