@nice2dev/ui 1.3.8 → 1.3.10
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/CHANGELOG.md +107 -0
- package/dist/NiceColorPicker-BLwYNSXJ.cjs +1 -0
- package/dist/NiceColorPicker-DS59tNkP.js +552 -0
- package/dist/NiceDataGrid-CL2_7fS7.cjs +10 -0
- package/dist/NiceDataGrid-CpJrRN_H.js +2269 -0
- package/dist/NiceForm-BQj-K7p7.cjs +1 -0
- package/dist/NiceForm-HQ4h7hX_.js +5023 -0
- package/dist/NiceGantt-BygumlaY.cjs +1 -0
- package/dist/NiceGantt-DTC7OH-v.js +334 -0
- package/dist/NiceHtmlEditor-BtpuaLln.js +901 -0
- package/dist/NiceHtmlEditor-C1OVtLQ6.cjs +10 -0
- package/dist/NiceMention-CVxxCVtQ.js +11668 -0
- package/dist/NiceMention-Te66Oid1.cjs +430 -0
- package/dist/NiceModuleLifecyclePanel-DCrFyUH8.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-Mt80MdET.js +7441 -0
- package/dist/NicePagination-CKsAP38Q.cjs +1 -0
- package/dist/NicePagination-zOed5QxG.js +202 -0
- package/dist/NicePivotGrid-Clue9FM5.js +1184 -0
- package/dist/NicePivotGrid-Cnkr9WkC.cjs +152 -0
- package/dist/NiceSavedQueryPanel-B8hVgWR2.cjs +587 -0
- package/dist/NiceSavedQueryPanel-BFtY9GOP.js +6002 -0
- package/dist/NiceSavedQueryPanel-NgG58w6i.js +6226 -0
- package/dist/NiceSavedQueryPanel-lTWY2plm.cjs +587 -0
- package/dist/NiceScheduler-BWwqFKEc.js +1712 -0
- package/dist/NiceScheduler-DqWEJU7g.cjs +5 -0
- package/dist/NiceSelect-BNPXs6FQ.cjs +1 -0
- package/dist/NiceSelect-DEruWHan.js +495 -0
- package/dist/NiceTree.doc-AIR9cRQp.js +40 -0
- package/dist/NiceTree.doc-DGrIAx3G.cjs +16 -0
- package/dist/NiceWindow-D3V7A69Q.js +2247 -0
- package/dist/NiceWindow-pgR4c-kQ.cjs +1 -0
- package/dist/core-lazy-Bjdu111n.js +351 -0
- package/dist/core-lazy-Bx_8BOlG.cjs +1 -0
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +189 -14
- package/dist/data.mjs +3 -3
- package/dist/devops-CqhA0rjL.js +9130 -0
- package/dist/devops-cgRBnZVX.cjs +18 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.mjs +7 -7
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +1 -1
- package/dist/index.cjs +130 -130
- package/dist/index.css +1 -1
- package/dist/index.d.ts +193 -17
- package/dist/index.mjs +14780 -14657
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +15 -15
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +2 -0
- package/dist/navigation.mjs +3 -3
- package/dist/no-code-BQqK8mvU.cjs +331 -0
- package/dist/no-code-Cppb-xz3.js +8320 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +1 -1
- package/dist/pickerCommons-BA3-D5RC.js +663 -0
- package/dist/pickerCommons-KrBqCBDn.cjs +1 -0
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/data.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { NiceComponentTutorial } from '@nice2dev/ui-core';
|
|
|
7
7
|
import { NiceDataSource } from '@nice2dev/ui-core';
|
|
8
8
|
import { NiceFilterGroup } from '@nice2dev/ui-core';
|
|
9
9
|
import { NiceSize } from '@nice2dev/ui-core';
|
|
10
|
+
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
10
11
|
import { ReactNode } from 'react';
|
|
11
12
|
import { RefAttributes } from 'react';
|
|
12
13
|
import { TracelessMode } from '@nice2dev/ui-core';
|
|
@@ -1617,7 +1618,7 @@ export declare interface NiceTableProps<T extends Record<string, any> = any> ext
|
|
|
1617
1618
|
emptyText?: string;
|
|
1618
1619
|
}
|
|
1619
1620
|
|
|
1620
|
-
export declare function NiceTileView<T extends NiceTileViewItem>({ items, tileWidth, tileHeight, direction, renderTile, onTileClick, loading, emptyText, className, style, }: NiceTileViewProps<T>): default_2.JSX.Element;
|
|
1621
|
+
export declare function NiceTileView<T extends NiceTileViewItem>({ items, tileWidth, tileHeight, direction, renderTile, onTileClick, loading, emptyText, className, style, 'data-testid': dataTestId, }: NiceTileViewProps<T>): default_2.JSX.Element;
|
|
1621
1622
|
|
|
1622
1623
|
/** A tile item displayed by the {@link NiceTileView} component. */
|
|
1623
1624
|
declare interface NiceTileViewItem {
|
|
@@ -1651,6 +1652,33 @@ export declare interface NiceTileViewProps<T extends NiceTileViewItem = NiceTile
|
|
|
1651
1652
|
emptyText?: string;
|
|
1652
1653
|
}
|
|
1653
1654
|
|
|
1655
|
+
/**
|
|
1656
|
+
* treeCheck — the check state of a tree with cascading checkboxes, shared by NiceTreeGrid,
|
|
1657
|
+
* NiceTreeList and NiceTreeView.
|
|
1658
|
+
*
|
|
1659
|
+
* - A **check node** is a node that can carry a checkbox (`isCheckable`, default true).
|
|
1660
|
+
* - A **check leaf** is a check node without check nodes below it — a module whose children are
|
|
1661
|
+
* only informational rows is a leaf. The check state lives on the leaves; every other node's
|
|
1662
|
+
* state is derived from the leaves below it: checked when all are, indeterminate when some are.
|
|
1663
|
+
* - A node that is **not checkable** never has a checkbox and is never emitted. Above check
|
|
1664
|
+
* nodes (a group header) it is transparent: its ancestors count the leaves below it.
|
|
1665
|
+
* - A **locked** leaf (disabled, or below a disabled node with `inheritDisabled`) keeps its
|
|
1666
|
+
* state when an ancestor is toggled. A parent still shows checked only when all its leaves are,
|
|
1667
|
+
* locked ones included.
|
|
1668
|
+
*
|
|
1669
|
+
* The leaves of every node form one contiguous slice of `index.leaves` (pre-order), so states
|
|
1670
|
+
* and counts are O(1) from a prefix sum; building the index and emitting keys are O(n).
|
|
1671
|
+
*/
|
|
1672
|
+
export declare type NiceTreeCheckState = 'checked' | 'unchecked' | 'indeterminate';
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* Which keys a checked tree reports:
|
|
1676
|
+
* - `'all'` — every check node whose leaves are all checked (parents and leaves);
|
|
1677
|
+
* - `'leaves'` — only the checked leaves;
|
|
1678
|
+
* - `'parents'` — the topmost fully checked nodes (a fully checked parent stands for its subtree).
|
|
1679
|
+
*/
|
|
1680
|
+
export declare type NiceTreeCheckStrategy = 'all' | 'leaves' | 'parents';
|
|
1681
|
+
|
|
1654
1682
|
/** A context-menu action for {@link NiceTreeView} nodes. */
|
|
1655
1683
|
declare interface NiceTreeContextMenuItem {
|
|
1656
1684
|
/** Unique key. */
|
|
@@ -1663,16 +1691,43 @@ declare interface NiceTreeContextMenuItem {
|
|
|
1663
1691
|
disabled?: boolean;
|
|
1664
1692
|
}
|
|
1665
1693
|
|
|
1666
|
-
export declare function NiceTreeGrid<T extends NiceTreeGridNode>({ columns, data, keyField, parentKeyField, nested, childrenField, expandedKeys: controlledExpanded, onExpandedChange, defaultExpandAll, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, searchable, searchPlaceholder, striped, compact, size, loading, disabled, readOnly, error, emptyText, toolbar, onRowClick, className, style, }: NiceTreeGridProps<T>): default_2.JSX.Element;
|
|
1694
|
+
export declare function NiceTreeGrid<T extends NiceTreeGridNode>({ columns, data, keyField, parentKeyField, nested, childrenField, expandedKeys: controlledExpanded, defaultExpandedKeys, onExpandedChange, hasChildren, loadChildren, rowActions, defaultExpandAll, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, checkable, checkedKeys, defaultCheckedKeys, onCheckedChange, checkStrategy, isRowCheckable, isRowDisabled, checkboxPlacement, checkOnRowClick, showCheckedCount, checkedSummary, showSelectAll, showOnlyChecked: controlledOnlyChecked, defaultShowOnlyChecked, onShowOnlyCheckedChange, toolbarActions, searchable, searchPlaceholder, searchText, defaultSearchText, onSearchChange, searchFields, searchFilter, searchKeepDescendants, searchAutoExpand, highlightMatches, rowClassName, getRowLabel, virtualScroll, rowHeight, height, striped, compact, size, loading, disabled, readOnly, error, emptyText, toolbar, onRowClick, className, style, id, testId, 'data-testid': dataTestId, accessMode, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: NiceTreeGridProps<T>): default_2.JSX.Element | null;
|
|
1695
|
+
|
|
1696
|
+
/** What a `checkedSummary` function of {@link NiceTreeGrid} gets. */
|
|
1697
|
+
declare interface NiceTreeGridCheckedSummaryInfo<T = NiceTreeGridNode> {
|
|
1698
|
+
/** Checked rows that count: rows with a checkbox and no checkboxes below them. */
|
|
1699
|
+
checked: number;
|
|
1700
|
+
/** All rows that count. */
|
|
1701
|
+
total: number;
|
|
1702
|
+
/** Keys of the checked rows that count. */
|
|
1703
|
+
leafKeys: string[];
|
|
1704
|
+
/** Their rows — e.g. to count distinct items when one item has a row under several parents. */
|
|
1705
|
+
rows: T[];
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
/** What changed in a {@link NiceTreeGrid} check — the second argument of `onCheckedChange`. */
|
|
1709
|
+
export declare interface NiceTreeGridCheckInfo<T = NiceTreeGridNode> {
|
|
1710
|
+
/** A row's checkbox (or Space / a row click), the header's "select all", or "clear selection". */
|
|
1711
|
+
source: 'row' | 'selectAll' | 'clear';
|
|
1712
|
+
/** Whether rows went on. */
|
|
1713
|
+
checked: boolean;
|
|
1714
|
+
/** The toggled row (source `'row'`). */
|
|
1715
|
+
key?: string;
|
|
1716
|
+
row?: T;
|
|
1717
|
+
/** The checked leaves, whatever `checkStrategy` reports. */
|
|
1718
|
+
leafKeys: string[];
|
|
1719
|
+
/** Rows with checkboxes that are partly checked. */
|
|
1720
|
+
halfCheckedKeys: string[];
|
|
1721
|
+
}
|
|
1667
1722
|
|
|
1668
1723
|
/** A row node in the {@link NiceTreeGrid} (supports index-signature for dynamic fields). */
|
|
1669
1724
|
export declare interface NiceTreeGridNode {
|
|
1670
1725
|
[field: string]: unknown;
|
|
1671
1726
|
}
|
|
1672
1727
|
|
|
1673
|
-
/** Props for the {@link NiceTreeGrid} component — a hierarchical data grid with sorting, selection, search, and NiceDataGrid column features. */
|
|
1674
|
-
export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTreeGridNode> extends
|
|
1675
|
-
/** Column definitions (reuses NiceDataGridColumn). */
|
|
1728
|
+
/** Props for the {@link NiceTreeGrid} component — a hierarchical data grid with sorting, selection, cascading checkboxes, search, and NiceDataGrid column features. */
|
|
1729
|
+
export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTreeGridNode> extends NiceStandardProps {
|
|
1730
|
+
/** Column definitions (reuses NiceDataGridColumn). The tree (indent, expander, checkbox) sits in the first one. */
|
|
1676
1731
|
columns?: NiceDataGridColumn<T>[];
|
|
1677
1732
|
/** Row data. */
|
|
1678
1733
|
data?: T[];
|
|
@@ -1686,9 +1741,32 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
1686
1741
|
childrenField?: string;
|
|
1687
1742
|
/** Currently expanded keys. */
|
|
1688
1743
|
expandedKeys?: string[];
|
|
1689
|
-
/**
|
|
1744
|
+
/** Rows expanded until the user expands or collapses one (uncontrolled). */
|
|
1745
|
+
defaultExpandedKeys?: string[];
|
|
1746
|
+
/**
|
|
1747
|
+
* Called when expanded keys change — also for the rows the user opens or closes while searching
|
|
1748
|
+
* (they stay so after the search), but not for the rows a search opens by itself.
|
|
1749
|
+
*/
|
|
1690
1750
|
onExpandedChange?: (keys: string[]) => void;
|
|
1691
|
-
/**
|
|
1751
|
+
/**
|
|
1752
|
+
* Whether a row has children that are not in `data` yet. Such a row gets an expander; opening
|
|
1753
|
+
* it calls `loadChildren`, or — without it — shows a loading row until you add the children to
|
|
1754
|
+
* `data`. Default with `loadChildren`: every row without children, until its load returns none.
|
|
1755
|
+
*/
|
|
1756
|
+
hasChildren?: (row: T) => boolean;
|
|
1757
|
+
/**
|
|
1758
|
+
* Loads a row's children the first time it is opened; the grid keeps them. Flat rows may bring
|
|
1759
|
+
* deeper levels along through `parentKeyField`, nested rows through `childrenField`. A failed
|
|
1760
|
+
* load shows a row with a retry button. Search and "expand all" cover the loaded rows.
|
|
1761
|
+
*/
|
|
1762
|
+
loadChildren?: (row: T) => Promise<T[]>;
|
|
1763
|
+
/**
|
|
1764
|
+
* Built-in buttons in the rows: `true` for all, or a list. `'expandSubtree'` opens everything
|
|
1765
|
+
* below a row — loading lazy rows on the way — and closes it all once it is open. Without the
|
|
1766
|
+
* button, Alt- or Shift-click on an expander and Shift+→ / Shift+← do the same.
|
|
1767
|
+
*/
|
|
1768
|
+
rowActions?: boolean | NiceTreeGridRowAction[];
|
|
1769
|
+
/** Expand all nodes by default — also rows that arrive later, until the user toggles one. */
|
|
1692
1770
|
defaultExpandAll?: boolean;
|
|
1693
1771
|
/** Enable sorting. */
|
|
1694
1772
|
sortable?: boolean;
|
|
@@ -1698,16 +1776,97 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
1698
1776
|
sortDirection?: SortDirection;
|
|
1699
1777
|
/** Called when sort changes. */
|
|
1700
1778
|
onSort?: (field: string, direction: SortDirection) => void;
|
|
1701
|
-
/**
|
|
1779
|
+
/**
|
|
1780
|
+
* Enable flat row selection: a checkbox per row, no cascade. With `checkable` the checkbox
|
|
1781
|
+
* belongs to the check and a row click toggles this selection (row highlight).
|
|
1782
|
+
*/
|
|
1702
1783
|
selectable?: boolean;
|
|
1703
1784
|
/** Currently selected keys. */
|
|
1704
1785
|
selectedKeys?: Set<string>;
|
|
1705
1786
|
/** Called when selection changes. */
|
|
1706
1787
|
onSelectionChange?: (keys: Set<string>) => void;
|
|
1788
|
+
/**
|
|
1789
|
+
* Cascading checkboxes: checking a parent checks every row below it, a parent shows checked
|
|
1790
|
+
* when all rows below it are and indeterminate when some are.
|
|
1791
|
+
*/
|
|
1792
|
+
checkable?: boolean;
|
|
1793
|
+
/** Checked keys (controlled). A parent key checks its whole subtree. */
|
|
1794
|
+
checkedKeys?: string[];
|
|
1795
|
+
/** Checked keys at mount (uncontrolled). */
|
|
1796
|
+
defaultCheckedKeys?: string[];
|
|
1797
|
+
/** Called with the checked keys (see `checkStrategy`) and what changed. */
|
|
1798
|
+
onCheckedChange?: (keys: string[], info: NiceTreeGridCheckInfo<T>) => void;
|
|
1799
|
+
/**
|
|
1800
|
+
* Which keys `onCheckedChange` reports: `'all'` (default) every fully checked row, parents
|
|
1801
|
+
* included; `'leaves'` only the checked rows with no checkboxes below them; `'parents'` the
|
|
1802
|
+
* topmost fully checked rows. Keys of rows not in `data` are kept.
|
|
1803
|
+
*/
|
|
1804
|
+
checkStrategy?: NiceTreeCheckStrategy;
|
|
1805
|
+
/**
|
|
1806
|
+
* `false` makes a row informational: no checkbox, never reported. Above checkable rows it is a
|
|
1807
|
+
* group header its ancestors count through; below a checkable row (a module's categories) the
|
|
1808
|
+
* checkable row counts as a leaf.
|
|
1809
|
+
*/
|
|
1810
|
+
isRowCheckable?: (row: T) => boolean;
|
|
1811
|
+
/** `true` locks a row and every row below it: their checks keep their state. */
|
|
1812
|
+
isRowDisabled?: (row: T) => boolean;
|
|
1813
|
+
/** Where the checkboxes go: after the expander in the tree column (default) or a column of their own. */
|
|
1814
|
+
checkboxPlacement?: 'tree' | 'column';
|
|
1815
|
+
/** A row click toggles the row's checkbox. */
|
|
1816
|
+
checkOnRowClick?: boolean;
|
|
1817
|
+
/** Show a "checked / total" badge on rows with checkboxes below them. */
|
|
1818
|
+
showCheckedCount?: boolean;
|
|
1819
|
+
/**
|
|
1820
|
+
* The selection summary in the toolbar ("{checked} of {total} selected"): `false` hides it, a
|
|
1821
|
+
* function renders your own — e.g. distinct items when one item has a row under several parents.
|
|
1822
|
+
*/
|
|
1823
|
+
checkedSummary?: false | ((info: NiceTreeGridCheckedSummaryInfo<T>) => default_2.ReactNode);
|
|
1824
|
+
/** A "select all" checkbox in the header — while searching, it acts on the results. Default true. */
|
|
1825
|
+
showSelectAll?: boolean;
|
|
1826
|
+
/** Show only the checked rows (controlled). */
|
|
1827
|
+
showOnlyChecked?: boolean;
|
|
1828
|
+
/** Show only the checked rows at mount (uncontrolled). */
|
|
1829
|
+
defaultShowOnlyChecked?: boolean;
|
|
1830
|
+
/** Called when "show selected only" is switched. */
|
|
1831
|
+
onShowOnlyCheckedChange?: (value: boolean) => void;
|
|
1832
|
+
/**
|
|
1833
|
+
* Built-in toolbar buttons: `true` for all that apply (expand all, collapse all and — when
|
|
1834
|
+
* `checkable` — show selected only, clear selection), or a list of them.
|
|
1835
|
+
*/
|
|
1836
|
+
toolbarActions?: boolean | NiceTreeGridToolbarAction[];
|
|
1707
1837
|
/** Show a search box. */
|
|
1708
1838
|
searchable?: boolean;
|
|
1709
1839
|
/** Search input placeholder. */
|
|
1710
1840
|
searchPlaceholder?: string;
|
|
1841
|
+
/** Search text (controlled). */
|
|
1842
|
+
searchText?: string;
|
|
1843
|
+
/** Search text at mount (uncontrolled). */
|
|
1844
|
+
defaultSearchText?: string;
|
|
1845
|
+
/** Called when the search text changes. */
|
|
1846
|
+
onSearchChange?: (text: string) => void;
|
|
1847
|
+
/** Fields the search looks in (default: the visible columns). */
|
|
1848
|
+
searchFields?: string[];
|
|
1849
|
+
/** Own match test, instead of a substring of `searchFields`. */
|
|
1850
|
+
searchFilter?: (row: T, query: string) => boolean;
|
|
1851
|
+
/** A matching row keeps all rows below it, not only the matching ones. */
|
|
1852
|
+
searchKeepDescendants?: boolean;
|
|
1853
|
+
/** Open the rows above every match while searching (default true); they close again when the search is cleared. */
|
|
1854
|
+
searchAutoExpand?: boolean;
|
|
1855
|
+
/** Mark the matches in columns without a `render` (default true). */
|
|
1856
|
+
highlightMatches?: boolean;
|
|
1857
|
+
/** Extra class name of a row. */
|
|
1858
|
+
rowClassName?: string | ((row: T, index: number) => string | undefined);
|
|
1859
|
+
/** A row's name for its checkbox label (default: its first column's value). */
|
|
1860
|
+
getRowLabel?: (row: T) => string;
|
|
1861
|
+
/**
|
|
1862
|
+
* Render only the rows in view, for thousands of rows. Rows get a fixed height (`rowHeight`)
|
|
1863
|
+
* and long cells are cut with an ellipsis.
|
|
1864
|
+
*/
|
|
1865
|
+
virtualScroll?: boolean;
|
|
1866
|
+
/** Row height in px with `virtualScroll` (default 36). */
|
|
1867
|
+
rowHeight?: number;
|
|
1868
|
+
/** Height of the scrolling body with `virtualScroll` (default 480). */
|
|
1869
|
+
height?: number | string;
|
|
1711
1870
|
/** Alternate row coloring. */
|
|
1712
1871
|
striped?: boolean;
|
|
1713
1872
|
/** Reduced padding. */
|
|
@@ -1730,7 +1889,13 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
1730
1889
|
onRowClick?: (row: T) => void;
|
|
1731
1890
|
}
|
|
1732
1891
|
|
|
1733
|
-
|
|
1892
|
+
/** A built-in button in the rows of {@link NiceTreeGrid}. */
|
|
1893
|
+
declare type NiceTreeGridRowAction = 'expandSubtree';
|
|
1894
|
+
|
|
1895
|
+
/** A built-in toolbar button of {@link NiceTreeGrid}. */
|
|
1896
|
+
export declare type NiceTreeGridToolbarAction = 'expandAll' | 'collapseAll' | 'onlyChecked' | 'clearChecked';
|
|
1897
|
+
|
|
1898
|
+
export declare function NiceTreeList<T extends NiceTreeListNode>({ columns, data, keyField, parentKeyField, expandedKeys: controlledExpanded, onExpandedChange, selectedKeys, onSelectionChange, selectable, sortable, loading, emptyText, className, style, accessMode, id, 'data-testid': dataTestId, }: NiceTreeListProps<T>): default_2.JSX.Element | null;
|
|
1734
1899
|
|
|
1735
1900
|
/** A tree-list node for the {@link NiceTreeList} component. */
|
|
1736
1901
|
declare interface NiceTreeListNode {
|
|
@@ -1758,11 +1923,17 @@ export declare interface NiceTreeListProps<T extends NiceTreeListNode = NiceTree
|
|
|
1758
1923
|
expandedKeys?: string[];
|
|
1759
1924
|
/** Called when expanded keys change. */
|
|
1760
1925
|
onExpandedChange?: (keys: string[]) => void;
|
|
1761
|
-
/**
|
|
1926
|
+
/**
|
|
1927
|
+
* Currently selected keys. A parent key selects its whole subtree. The keys handed back are every
|
|
1928
|
+
* fully selected row, parents included, in document order; keys of rows not in `data` are kept.
|
|
1929
|
+
*/
|
|
1762
1930
|
selectedKeys?: string[];
|
|
1763
1931
|
/** Called when selection changes. */
|
|
1764
1932
|
onSelectionChange?: (keys: string[]) => void;
|
|
1765
|
-
/**
|
|
1933
|
+
/**
|
|
1934
|
+
* Enable row selection. Checking a parent row cascades to all its descendants; a parent shows
|
|
1935
|
+
* checked when all its descendants are, indeterminate when some are.
|
|
1936
|
+
*/
|
|
1766
1937
|
selectable?: boolean;
|
|
1767
1938
|
/** Enable column sorting (opt-in per column via `NiceDataGridColumn.sortable`). */
|
|
1768
1939
|
sortable?: boolean;
|
|
@@ -1782,9 +1953,9 @@ declare interface NiceTreeNode {
|
|
|
1782
1953
|
icon?: default_2.ReactNode;
|
|
1783
1954
|
/** Child nodes. */
|
|
1784
1955
|
children?: NiceTreeNode[];
|
|
1785
|
-
/** Disable the node. */
|
|
1956
|
+
/** Disable the node. With cascading checkboxes, its own checkbox keeps its state. */
|
|
1786
1957
|
disabled?: boolean;
|
|
1787
|
-
/**
|
|
1958
|
+
/** Expanded when the tree mounts (uncontrolled `expandedKeys` only). */
|
|
1788
1959
|
expanded?: boolean;
|
|
1789
1960
|
/** If true, children are loaded lazily via onLoadChildren. */
|
|
1790
1961
|
leaf?: boolean;
|
|
@@ -1803,7 +1974,11 @@ export declare interface NiceTreeViewProps extends NiceBaseProps {
|
|
|
1803
1974
|
* a title bar, toolbar or count. Pass any node; omit for no header.
|
|
1804
1975
|
*/
|
|
1805
1976
|
header?: default_2.ReactNode;
|
|
1806
|
-
/**
|
|
1977
|
+
/**
|
|
1978
|
+
* Currently selected node keys. With `showCheckboxes` and `selectionMode="multiple"` the
|
|
1979
|
+
* checkboxes cascade: a parent key checks its subtree, and the keys handed back are every fully
|
|
1980
|
+
* checked node, parents included, in document order.
|
|
1981
|
+
*/
|
|
1807
1982
|
selectedKeys?: string[];
|
|
1808
1983
|
/** Currently expanded node keys. */
|
|
1809
1984
|
expandedKeys?: string[];
|
package/dist/data.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as i, a as r, b as s, c as t, d, e as o, f as c, m as N, r as l, w as m } from "./NiceDataGrid-
|
|
2
|
-
import { N as u, a as G, b as p, c as S, d as b, e as f, f as C, g, h as w, i as T, j as h, k as v } from "./NiceSavedQueryPanel-
|
|
3
|
-
import { N as x, a as V } from "./NicePivotGrid-
|
|
1
|
+
import { N as i, a as r, b as s, c as t, d, e as o, f as c, m as N, r as l, w as m } from "./NiceDataGrid-CpJrRN_H.js";
|
|
2
|
+
import { N as u, a as G, b as p, c as S, d as b, e as f, f as C, g, h as w, i as T, j as h, k as v } from "./NiceSavedQueryPanel-NgG58w6i.js";
|
|
3
|
+
import { N as x, a as V } from "./NicePivotGrid-Clue9FM5.js";
|
|
4
4
|
export {
|
|
5
5
|
i as NiceDataGrid,
|
|
6
6
|
u as NiceDataGridAI,
|