@nice2dev/ui 1.0.30 → 1.1.5

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 (126) hide show
  1. package/CHANGELOG.md +848 -0
  2. package/README.md +30 -31
  3. package/dist/NiceCalendarScheduler.doc-BEtQkZjV.cjs +9 -0
  4. package/dist/NiceCalendarScheduler.doc-D__LRgOx.js +33 -0
  5. package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
  6. package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
  7. package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
  8. package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
  9. package/dist/NiceConfirmDialog-B57cl_F7.cjs +1 -0
  10. package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
  11. package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -0
  12. package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
  13. package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
  14. package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
  15. package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
  16. package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
  17. package/dist/NiceDrawingCanvas.doc-Dv5vB4gY.js +32 -0
  18. package/dist/NiceDrawingCanvas.doc-Ww9zz17x.cjs +8 -0
  19. package/dist/NiceErrorBoundary-BD-uqk_q.js +709 -0
  20. package/dist/NiceErrorBoundary-CIPXaYik.cjs +1 -0
  21. package/dist/NiceFileManagerViews.doc-CKlnm6cX.cjs +1 -0
  22. package/dist/NiceFileManagerViews.doc-Cg21DArG.js +25 -0
  23. package/dist/NiceForm-BNZB31Pg.js +4499 -0
  24. package/dist/NiceForm-C6F0HvrX.cjs +1 -0
  25. package/dist/NiceForm-CCyfWgIs.js +4805 -0
  26. package/dist/NiceForm-CPyAXxBO.cjs +1 -0
  27. package/dist/NiceGantt-CSFLZD2y.js +328 -0
  28. package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
  29. package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
  30. package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
  31. package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
  32. package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
  33. package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
  34. package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
  35. package/dist/NiceMention-CWoLD0SE.js +11082 -0
  36. package/dist/NiceMention-J1lUDLhg.cjs +430 -0
  37. package/dist/NiceMention.css +1 -0
  38. package/dist/NiceModal-0UxviEYE.cjs +1 -0
  39. package/dist/NiceModal-Bj53SKLI.js +95 -0
  40. package/dist/NiceModal-D-iOonog.js +95 -0
  41. package/dist/NiceModal-DC0UlQhc.cjs +1 -0
  42. package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
  43. package/dist/NiceModuleLifecyclePanel-BBOg9g0b.cjs +1 -0
  44. package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
  45. package/dist/NiceModuleLifecyclePanel-DtuXRiLR.js +6991 -0
  46. package/dist/NiceModuleLifecyclePanel.css +1 -1
  47. package/dist/NicePagination-Bjxy9aEc.js +172 -0
  48. package/dist/NicePagination-CPn-Q1h_.js +172 -0
  49. package/dist/NicePagination-CfFfNwrg.cjs +1 -0
  50. package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
  51. package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
  52. package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
  53. package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
  54. package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -0
  55. package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
  56. package/dist/NiceSavedQueryPanel-aQrEmmcC.cjs +596 -0
  57. package/dist/NiceScannerControl-Cd5KXJA9.js +12769 -0
  58. package/dist/NiceScannerControl-DZsERSw_.cjs +698 -0
  59. package/dist/NiceScannerControl.css +1 -0
  60. package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
  61. package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
  62. package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
  63. package/dist/NiceSelect-DHowflmX.js +433 -0
  64. package/dist/NiceWindow-BoDzlGk-.js +1621 -0
  65. package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
  66. package/dist/NiceWindow-DgONWxBm.cjs +1 -0
  67. package/dist/NiceWindow-xnTSHdHv.js +1623 -0
  68. package/dist/charts-B-sl1V9y.cjs +882 -0
  69. package/dist/charts-Bs0aDM0X.js +4671 -0
  70. package/dist/charts-DO2z6Ziu.js +31920 -0
  71. package/dist/charts-DjjKkw0q.cjs +761 -0
  72. package/dist/charts.cjs +1 -1
  73. package/dist/charts.mjs +7 -7
  74. package/dist/core-BUsZ7_vI.js +27914 -0
  75. package/dist/core-C2KhqEaU.cjs +1 -0
  76. package/dist/core-CLfcCDKc.cjs +122 -0
  77. package/dist/core-K2DIxXLn.js +795 -0
  78. package/dist/data-branching-D7l_kILW.cjs +1 -0
  79. package/dist/data-branching-DC6hcBQN.cjs +1 -0
  80. package/dist/data-branching-DykdTpjJ.js +6255 -0
  81. package/dist/data-branching-lJ07lDN-.js +6255 -0
  82. package/dist/data-branching.cjs +1 -1
  83. package/dist/data-branching.mjs +1 -1
  84. package/dist/data.cjs +1 -1
  85. package/dist/data.d.ts +70 -44
  86. package/dist/data.mjs +17 -16
  87. package/dist/devops-Bi8MXtko.js +8165 -0
  88. package/dist/devops-CU0sOVEA.cjs +17 -0
  89. package/dist/devops-CXyEwQeM.js +8165 -0
  90. package/dist/devops-On_1wRf9.cjs +17 -0
  91. package/dist/devops.cjs +1 -1
  92. package/dist/devops.mjs +1 -1
  93. package/dist/editors.cjs +1 -1
  94. package/dist/editors.d.ts +288 -432
  95. package/dist/editors.mjs +58 -62
  96. package/dist/feedback.cjs +1 -1
  97. package/dist/feedback.d.ts +1 -1
  98. package/dist/feedback.mjs +3 -3
  99. package/dist/index-BDH1yDSg.js +69235 -0
  100. package/dist/index-C9njkNOD.cjs +5470 -0
  101. package/dist/index.cjs +5137 -1
  102. package/dist/index.css +1 -1
  103. package/dist/index.d.ts +556 -929
  104. package/dist/index.mjs +66371 -1017
  105. package/dist/lazy.cjs +1 -1
  106. package/dist/lazy.mjs +24 -24
  107. package/dist/navigation.cjs +1 -1
  108. package/dist/navigation.d.ts +31 -213
  109. package/dist/navigation.mjs +105 -113
  110. package/dist/no-code-8lO7o6xi.js +7425 -0
  111. package/dist/no-code-C58g8_fb.cjs +332 -0
  112. package/dist/no-code-Cj4xJ3w9.js +7425 -0
  113. package/dist/no-code-K8tOLNew.cjs +332 -0
  114. package/dist/no-code.cjs +1 -1
  115. package/dist/no-code.mjs +1 -1
  116. package/dist/overlays.cjs +1 -1
  117. package/dist/overlays.d.ts +10 -0
  118. package/dist/overlays.mjs +36 -36
  119. package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
  120. package/dist/pickerCommons-CORo9j2a.js +2119 -0
  121. package/dist/pickerCommons-COiSUiP2.js +1122 -0
  122. package/dist/pickerCommons-D3WShRrR.cjs +1 -0
  123. package/dist/style.css +6 -6
  124. package/dist/vendor-BPVpdtPp.js +271 -0
  125. package/dist/vendor-Bo2Q64AF.cjs +1 -0
  126. package/package.json +17 -17
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./data-branching-ByQdcjKO.cjs");exports.NiceDataBranchGraph=a.NiceDataBranchGraph;exports.NiceDataBranchManager=a.NiceDataBranchManager;exports.NiceDataConflictResolver=a.NiceDataConflictResolver;exports.NiceDataDiffViewer=a.NiceDataDiffViewer;exports.NiceDataMergeBuilder=a.NiceDataMergeBuilder;exports.NiceDataSnapshot=a.NiceDataSnapshot;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./data-branching-DC6hcBQN.cjs");exports.NiceDataBranchGraph=a.NiceDataBranchGraph;exports.NiceDataBranchManager=a.NiceDataBranchManager;exports.NiceDataConflictResolver=a.NiceDataConflictResolver;exports.NiceDataDiffViewer=a.NiceDataDiffViewer;exports.NiceDataMergeBuilder=a.NiceDataMergeBuilder;exports.NiceDataSnapshot=a.NiceDataSnapshot;
@@ -1,4 +1,4 @@
1
- import { N as c, a as i, b as r, c as t, d as s, e as D } from "./data-branching-psTzlcrT.js";
1
+ import { N as c, a as i, b as r, c as t, d as s, e as D } from "./data-branching-DykdTpjJ.js";
2
2
  export {
3
3
  c as NiceDataBranchGraph,
4
4
  i as NiceDataBranchManager,
package/dist/data.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceSavedQueryPanel-CsiVNkCT.cjs");exports.NiceCardView=e.NiceCardView;exports.NiceDataGrid=e.NiceDataGrid;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NicePivotGrid=e.NicePivotGrid;exports.NicePivotGridFieldChooser=e.NicePivotGridFieldChooser;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.computeAggregate=e.computeAggregate;exports.escapeCsvField=e.escapeCsvField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceDataGrid-3AIf2D3t.cjs"),e=require("./NiceSavedQueryPanel-BhjFJBvn.cjs"),c=require("./NicePivotGrid-Cmiolup9.cjs");exports.NiceDataGrid=i.NiceDataGrid;exports.computeAggregate=i.computeAggregate;exports.escapeCsvField=i.escapeCsvField;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.NicePivotGrid=c.NicePivotGrid;exports.NicePivotGridFieldChooser=c.NicePivotGridFieldChooser;
package/dist/data.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { ForwardedRef } from 'react';
3
3
  import { ForwardRefExoticComponent } from 'react';
4
- import { JSX as JSX_2 } from 'react';
4
+ import { JSX } from 'react';
5
5
  import { NiceBaseProps } from '@nice2dev/ui-core';
6
6
  import { NiceComponentTutorial } from '@nice2dev/ui-core';
7
7
  import { NiceDataSource } from '@nice2dev/ui-core';
@@ -378,40 +378,6 @@ declare interface ModuleViewPreferences {
378
378
  /** Supported aggregate functions for column footers. */
379
379
  declare type NiceAggregateType = 'sum' | 'avg' | 'count' | 'min' | 'max';
380
380
 
381
- export declare function NiceCardView<T extends NiceCardViewItem>({ items, renderCard, columns, gap, searchable, searchField, searchPlaceholder, loading, emptyText, onCardClick, className, style, accessMode, id, }: NiceCardViewProps<T>): default_2.JSX.Element | null;
382
-
383
- /** An item displayed by the {@link NiceCardView} component. */
384
- declare interface NiceCardViewItem {
385
- /** Unique key. */
386
- key: string;
387
- /** Additional data fields. */
388
- [field: string]: any;
389
- }
390
-
391
- /** Props for the {@link NiceCardView} component — a responsive card grid with search and custom card rendering. */
392
- export declare interface NiceCardViewProps<T extends NiceCardViewItem = NiceCardViewItem> extends NiceBaseProps {
393
- /** Data items. */
394
- items: T[];
395
- /** Custom card renderer. */
396
- renderCard: (item: T) => default_2.ReactNode;
397
- /** Number of grid columns. */
398
- columns?: number;
399
- /** Gap between cards (px or CSS value). */
400
- gap?: number | string;
401
- /** Show a search box. */
402
- searchable?: boolean;
403
- /** Field searched when searchable is enabled. */
404
- searchField?: string;
405
- /** Search input placeholder. */
406
- searchPlaceholder?: string;
407
- /** Show a loading skeleton. */
408
- loading?: boolean;
409
- /** Text shown when items is empty. */
410
- emptyText?: string;
411
- /** Called when a card is clicked. */
412
- onCardClick?: (item: T) => void;
413
- }
414
-
415
381
  declare interface NiceColumnState {
416
382
  field: string;
417
383
  visible: boolean;
@@ -459,7 +425,7 @@ declare interface NiceConditionalFormatRule {
459
425
  };
460
426
  }
461
427
 
462
- export declare function NiceDataGrid<T extends Record<string, any>>({ columns, data: dataProp, keyField, dataSource, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, showAdvancedFilter, advancedFilter, onAdvancedFilterChange, filterFields, filterPresets, onSaveFilterPreset, onDeleteFilterPreset, selectable, selectedKeys: controlledSelected, onSelectionChange, pagination, pageSize: initPageSize, page: controlledPage, onPageChange, totalRows, autoPagination, stickyHeader, stickyFooter, searchable, searchPlaceholder, virtualScroll, rowHeight, groupBy, groupRender, onCellEdit, editMode, formItems, formColumns, editFormTitle, formProps, onRowEdit, onRowAdd, onRowDelete: _onRowDelete, bulkActions, onBulkDelete, exportCsv, exportFilename, detailRow, expandedRowKeys: controlledExpandedRows, onExpandedRowChange, columnReorder: _columnReorder, onColumnReorder: _onColumnReorder, columnResize, rowDraggable, onRowReorder, striped, compact, loading: loadingProp, emptyText, toolbar, onRowClick, pinnedTopKeys, pinnedBottomKeys, colSpan: colSpanFn, showStatusBar, contextMenuItems, onContextMenuAction, printFriendly, keyboardNavigation, focusedCell: controlledFocusedCell, onFocusedCellChange, cellRangeSelection, selectedCellRange: controlledCellRange, onCellRangeChange, clipboard, clipboardFormat, onBeforeCopy, onCopy, onPaste, quickFilters, activeQuickFilters: controlledQuickFilters, onQuickFilterChange, columnGroups: _columnGroups, stateStorageKey, initialState, onStateChange, flashRowKeys, flashDuration, autoFitColumns: _autoFitColumns, showColumnStats: _showColumnStats, rowIndicator, frozenRows: _frozenRows, className, style, accessMode, id, displayStyle, }: NiceDataGridProps<T>): default_2.JSX.Element | null;
428
+ export declare function NiceDataGrid<T extends Record<string, any>>({ columns, data: dataProp, keyField, dataSource, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, showAdvancedFilter, advancedFilter, onAdvancedFilterChange, filterFields, filterPresets, onSaveFilterPreset, onDeleteFilterPreset, selectable, selectedKeys: controlledSelected, onSelectionChange, pagination, pageSize: initPageSize, page: controlledPage, onPageChange, totalRows, autoPagination, stickyHeader, stickyFooter, searchable, searchPlaceholder, virtualScroll, rowHeight, groupBy, groupRender, onCellEdit, editMode, formItems, formColumns, editFormTitle, formProps, onRowEdit, onRowAdd, onRowDelete: _onRowDelete, bulkActions, onBulkDelete, exportCsv, exportFilename, detailRow, expandedRowKeys: controlledExpandedRows, onExpandedRowChange, columnReorder: _columnReorder, onColumnReorder: _onColumnReorder, columnResize, rowDraggable, onRowReorder, striped, compact, size, loading: loadingProp, emptyText, toolbar, onRowClick, pinnedTopKeys, pinnedBottomKeys, colSpan: colSpanFn, showStatusBar, contextMenuItems, onContextMenuAction, printFriendly, keyboardNavigation, focusedCell: controlledFocusedCell, onFocusedCellChange, cellRangeSelection, selectedCellRange: controlledCellRange, onCellRangeChange, clipboard, clipboardFormat, onBeforeCopy, onCopy, onPaste, quickFilters, activeQuickFilters: controlledQuickFilters, onQuickFilterChange, columnGroups: _columnGroups, stateStorageKey, initialState, onStateChange, flashRowKeys, flashDuration, autoFitColumns: _autoFitColumns, showColumnStats: _showColumnStats, rowIndicator, frozenRows: _frozenRows, className, style, accessMode, id, displayStyle, disabled: disabledProp, readOnly: readOnlyProp, error, }: NiceDataGridProps<T>): default_2.JSX.Element | null;
463
429
 
464
430
  export declare namespace NiceDataGrid {
465
431
  var displayName: string;
@@ -665,7 +631,19 @@ export declare interface NiceDataGridProps<T extends Record<string, any> = any>
665
631
  onRowReorder?: (fromIndex: number, toIndex: number) => void;
666
632
  striped?: boolean;
667
633
  compact?: boolean;
634
+ /**
635
+ * Visual density of the grid rows (cell padding + font size). Maps to the
636
+ * `nice-table--{size}` scale. Independent of `compact` (which is tighter than
637
+ * the smallest size). Default `md`.
638
+ */
639
+ size?: NiceSize;
668
640
  loading?: boolean;
641
+ /** Disable the whole grid — dimmed and inert. */
642
+ disabled?: boolean;
643
+ /** Read-only: blocks inline editing (not dimmed). */
644
+ readOnly?: boolean;
645
+ /** Error message shown above the grid body. */
646
+ error?: string;
669
647
  emptyText?: string;
670
648
  toolbar?: React.ReactNode;
671
649
  onRowClick?: (row: T) => void;
@@ -888,6 +866,12 @@ export declare interface NiceKanbanBoardProps extends NiceBaseProps, TracelessSt
888
866
  size?: NiceSize;
889
867
  /** Allow columns to be collapsed */
890
868
  collapsible?: boolean;
869
+ /**
870
+ * Direction a collapsed column shrinks to (default `vertical`):
871
+ * `vertical` → a slim vertical rail with a rotated chevron + count,
872
+ * `horizontal` → a short horizontal bar keeping the header on one line.
873
+ */
874
+ collapseDirection?: 'vertical' | 'horizontal';
891
875
  /** Layout mode — `scroll` (default, horizontal scroll when overflowing) or `responsive` (columns wrap to fit container width). */
892
876
  layoutMode?: NiceKanbanLayoutMode;
893
877
  /** View mode (default, compact, detailed) */
@@ -1006,6 +990,14 @@ export declare interface NiceListProps extends NiceBaseProps {
1006
990
  emptyText?: string;
1007
991
  /** Size preset. */
1008
992
  size?: NiceSize;
993
+ /** Optional header shown above the list; stays visible during loading. */
994
+ header?: default_2.ReactNode;
995
+ /** Disable the whole list — dimmed and inert. */
996
+ disabled?: boolean;
997
+ /** Read-only: items are non-interactive but not dimmed. */
998
+ readOnly?: boolean;
999
+ /** Error message shown in place of the list. */
1000
+ error?: string;
1009
1001
  /** Show border around the list. */
1010
1002
  bordered?: boolean;
1011
1003
  /** Swipe actions revealed on mobile swipe gesture. */
@@ -1062,7 +1054,7 @@ export declare const NiceModuleGrid: <T extends Record<string, any>>(props: Nice
1062
1054
  ref?: ForwardedRef<HTMLDivElement>;
1063
1055
  }) => ReturnType<typeof NiceModuleGridInner>;
1064
1056
 
1065
- declare function NiceModuleGridInner<T extends Record<string, any>>(props: NiceModuleGridProps<T>, ref: ForwardedRef<HTMLDivElement>): JSX_2.Element;
1057
+ declare function NiceModuleGridInner<T extends Record<string, any>>(props: NiceModuleGridProps<T>, ref: ForwardedRef<HTMLDivElement>): JSX.Element;
1066
1058
 
1067
1059
  /**
1068
1060
  * Props for NiceModuleGrid — enterprise data grid for OmniVerk modules.
@@ -1228,6 +1220,8 @@ declare interface NicePivotField {
1228
1220
  field: string;
1229
1221
  /** Display caption. */
1230
1222
  caption: string;
1223
+ /** Data type shown beside the caption in the field chooser (e.g. `'text'`, `'integer'`, `'float'`, `'date'`). */
1224
+ dataType?: string;
1231
1225
  /** Pivot area this field belongs to. */
1232
1226
  area?: 'row' | 'column' | 'data' | 'filter';
1233
1227
  /** Aggregation function applied in the data area. */
@@ -1246,9 +1240,14 @@ export declare interface NicePivotGridFieldChooserProps extends NiceBaseProps {
1246
1240
  fields: NicePivotField[];
1247
1241
  /** Called when the user rearranges fields. */
1248
1242
  onChange: (fields: NicePivotField[]) => void;
1243
+ /**
1244
+ * Show a per-field area `NiceSelect` as an explicit (accessible) alternative to
1245
+ * drag-and-drop. Off by default — assignment is drag-and-drop first.
1246
+ */
1247
+ showAreaSelect?: boolean;
1249
1248
  }
1250
1249
 
1251
- /** Props for the {@link NicePivotGrid} component — a cross-tab / pivot table with drag-and-drop field chooser, CSV export, and drill-through. */
1250
+ /** Props for the {@link NicePivotGrid} component — a cross-tab / pivot table with drag-and-drop field chooser, CSV/XLSX export, and drill-through. */
1252
1251
  export declare interface NicePivotGridProps extends NiceBaseProps {
1253
1252
  /** Raw data records. */
1254
1253
  data: Record<string, any>[];
@@ -1262,9 +1261,11 @@ export declare interface NicePivotGridProps extends NiceBaseProps {
1262
1261
  loading?: boolean;
1263
1262
  /** Text shown when data is empty. */
1264
1263
  emptyText?: string;
1265
- /** Enable CSV export. */
1264
+ /** Heading rendered at the left of the toolbar; the action buttons sit at its right. */
1265
+ headerText?: string;
1266
+ /** Enable data export (download menu offering CSV and XLSX). */
1266
1267
  exportCsv?: boolean;
1267
- /** Filename for CSV export. */
1268
+ /** Filename for exports (extension is appended). */
1268
1269
  exportFilename?: string;
1269
1270
  /** Callback when user clicks a cell to drill-through to underlying records. */
1270
1271
  onDrillThrough?: (rowValue: string, colValue: string, records: Record<string, any>[]) => void;
@@ -1468,6 +1469,14 @@ export declare interface NiceSpreadsheetProps extends NiceBaseProps {
1468
1469
  showSheetTabs?: boolean;
1469
1470
  /** Make the entire spreadsheet read-only. */
1470
1471
  readOnly?: boolean;
1472
+ /** Disabled: dimmed + inert (blocks editing/selection). */
1473
+ disabled?: boolean;
1474
+ /** Loading: a spinner overlay + aria-busy. */
1475
+ loading?: boolean;
1476
+ /** Error message shown above the grid. */
1477
+ error?: string;
1478
+ /** Density size (xs..xl) — scales cell padding + font. */
1479
+ size?: NiceSize;
1471
1480
  /** Called when any cell data changes. */
1472
1481
  onChange?: (sheets: NiceSpreadsheetSheet[]) => void;
1473
1482
  /** Called when the active sheet tab changes. */
@@ -1521,7 +1530,7 @@ declare interface NiceSpreadsheetSheet {
1521
1530
  columnFilters?: Record<number, string>;
1522
1531
  }
1523
1532
 
1524
- export declare function NiceTable<T extends Record<string, any>>({ columns, data, striped, compact, emptyText, className, style, accessMode, id, displayStyle, }: NiceTableProps<T>): default_2.JSX.Element | null;
1533
+ export declare function NiceTable<T extends Record<string, any>>({ columns, data, striped, compact, size, emptyText, className, style, accessMode, id, displayStyle, }: NiceTableProps<T>): default_2.JSX.Element | null;
1525
1534
 
1526
1535
  /** Column definition for the {@link NiceTable} component. */
1527
1536
  declare interface NiceTableColumn<T = any> {
@@ -1549,6 +1558,8 @@ export declare interface NiceTableProps<T extends Record<string, any> = any> ext
1549
1558
  striped?: boolean;
1550
1559
  /** Reduced padding. */
1551
1560
  compact?: boolean;
1561
+ /** Table size (font + cell padding). Independent of `compact`. */
1562
+ size?: NiceSize;
1552
1563
  /** Text shown when `data` is empty. */
1553
1564
  emptyText?: string;
1554
1565
  }
@@ -1599,7 +1610,7 @@ declare interface NiceTreeContextMenuItem {
1599
1610
  disabled?: boolean;
1600
1611
  }
1601
1612
 
1602
- 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, loading, emptyText, toolbar, onRowClick, className, style, }: NiceTreeGridProps<T>): default_2.JSX.Element;
1613
+ 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;
1603
1614
 
1604
1615
  /** A row node in the {@link NiceTreeGrid} (supports index-signature for dynamic fields). */
1605
1616
  export declare interface NiceTreeGridNode {
@@ -1648,8 +1659,16 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
1648
1659
  striped?: boolean;
1649
1660
  /** Reduced padding. */
1650
1661
  compact?: boolean;
1662
+ /** Grid density size (xs..xl) — scales row padding + font. */
1663
+ size?: NiceSize;
1651
1664
  /** Show a loading skeleton. */
1652
1665
  loading?: boolean;
1666
+ /** Disable the whole grid — dimmed and inert. */
1667
+ disabled?: boolean;
1668
+ /** Read-only: rows non-interactive (no selection/row-click) but not dimmed; expand/collapse still works. */
1669
+ readOnly?: boolean;
1670
+ /** Error message shown in place of the grid body. */
1671
+ error?: string;
1653
1672
  /** Text shown when data is empty. */
1654
1673
  emptyText?: string;
1655
1674
  /** Toolbar content rendered above the grid. */
@@ -1658,7 +1677,7 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
1658
1677
  onRowClick?: (row: T) => void;
1659
1678
  }
1660
1679
 
1661
- export declare function NiceTreeList<T extends NiceTreeListNode>({ columns, data, keyField, parentKeyField, expandedKeys: controlledExpanded, onExpandedChange, selectedKeys, onSelectionChange, selectable, loading, emptyText, className, style, accessMode, id, }: NiceTreeListProps<T>): default_2.JSX.Element | null;
1680
+ export declare function NiceTreeList<T extends NiceTreeListNode>({ columns, data, keyField, parentKeyField, expandedKeys: controlledExpanded, onExpandedChange, selectedKeys, onSelectionChange, selectable, sortable, loading, emptyText, className, style, accessMode, id, }: NiceTreeListProps<T>): default_2.JSX.Element | null;
1662
1681
 
1663
1682
  /** A tree-list node for the {@link NiceTreeList} component. */
1664
1683
  declare interface NiceTreeListNode {
@@ -1690,8 +1709,10 @@ export declare interface NiceTreeListProps<T extends NiceTreeListNode = NiceTree
1690
1709
  selectedKeys?: string[];
1691
1710
  /** Called when selection changes. */
1692
1711
  onSelectionChange?: (keys: string[]) => void;
1693
- /** Enable row selection. */
1712
+ /** Enable row selection. Checking a parent row cascades to all its descendants. */
1694
1713
  selectable?: boolean;
1714
+ /** Enable column sorting (opt-in per column via `NiceDataGridColumn.sortable`). */
1715
+ sortable?: boolean;
1695
1716
  /** Show a loading skeleton. */
1696
1717
  loading?: boolean;
1697
1718
  /** Text shown when data is empty. */
@@ -1724,6 +1745,11 @@ export declare const NiceTreeView: default_2.FC<NiceTreeViewProps>;
1724
1745
  export declare interface NiceTreeViewProps extends NiceBaseProps {
1725
1746
  /** Root nodes. */
1726
1747
  nodes: NiceTreeNode[];
1748
+ /**
1749
+ * Optional header rendered above the (optional) search box and the tree —
1750
+ * a title bar, toolbar or count. Pass any node; omit for no header.
1751
+ */
1752
+ header?: default_2.ReactNode;
1727
1753
  /** Currently selected node keys. */
1728
1754
  selectedKeys?: string[];
1729
1755
  /** Currently expanded node keys. */
package/dist/data.mjs CHANGED
@@ -1,21 +1,22 @@
1
- import { N as a, a as s, b as c, c as r, d as N, e as d, f as o, g as t, h as l, i as n, j as G, k as p, l as T, m as g, n as v, o as w, p as V, q as b } from "./NiceSavedQueryPanel-BBFV4qiF.js";
1
+ import { N as a, c as s, e as c } from "./NiceDataGrid-CXCUAkRb.js";
2
+ import { N, a as o, b as d, c as t, d as l, e as p, f as G, g as n, h as T, i as f, j as g, k as m } from "./NiceSavedQueryPanel-KvyXTnFx.js";
3
+ import { N as b, a as h } from "./NicePivotGrid-DX_iUj2X.js";
2
4
  export {
3
- a as NiceCardView,
4
- s as NiceDataGrid,
5
- c as NiceDataGridAI,
6
- r as NiceKanbanBoard,
7
- N as NiceList,
8
- d as NiceModuleGrid,
9
- o as NicePivotGrid,
10
- t as NicePivotGridFieldChooser,
5
+ a as NiceDataGrid,
6
+ N as NiceDataGridAI,
7
+ o as NiceKanbanBoard,
8
+ d as NiceList,
9
+ t as NiceModuleGrid,
10
+ b as NicePivotGrid,
11
+ h as NicePivotGridFieldChooser,
11
12
  l as NiceReconciliationView,
12
- n as NiceSavedQueryPanel,
13
+ p as NiceSavedQueryPanel,
13
14
  G as NiceSpreadsheet,
14
- p as NiceTable,
15
+ n as NiceTable,
15
16
  T as NiceTileView,
16
- g as NiceTreeGrid,
17
- v as NiceTreeList,
18
- w as NiceTreeView,
19
- V as computeAggregate,
20
- b as escapeCsvField
17
+ f as NiceTreeGrid,
18
+ g as NiceTreeList,
19
+ m as NiceTreeView,
20
+ s as computeAggregate,
21
+ c as escapeCsvField
21
22
  };