@nice2dev/ui 1.0.30 → 1.0.31
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 +495 -0
- package/README.md +30 -31
- package/dist/NiceCalendarScheduler.doc-BEtQkZjV.cjs +9 -0
- package/dist/NiceCalendarScheduler.doc-D__LRgOx.js +33 -0
- package/dist/NiceConfirmDialog-B57cl_F7.cjs +1 -0
- package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -0
- package/dist/NiceDrawingCanvas.doc-Dv5vB4gY.js +32 -0
- package/dist/NiceDrawingCanvas.doc-Ww9zz17x.cjs +8 -0
- package/dist/NiceErrorBoundary-BD-uqk_q.js +709 -0
- package/dist/NiceErrorBoundary-CIPXaYik.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-CKlnm6cX.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-Cg21DArG.js +25 -0
- package/dist/NiceForm-BNZB31Pg.js +4499 -0
- package/dist/NiceForm-CPyAXxBO.cjs +1 -0
- package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
- package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
- package/dist/NiceModal-Bj53SKLI.js +95 -0
- package/dist/NiceModal-DC0UlQhc.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-BBOg9g0b.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DtuXRiLR.js +6991 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-Bjxy9aEc.js +172 -0
- package/dist/NicePagination-CfFfNwrg.cjs +1 -0
- package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -0
- package/dist/NiceSavedQueryPanel-aQrEmmcC.cjs +596 -0
- package/dist/NiceScannerControl-Cd5KXJA9.js +12769 -0
- package/dist/NiceScannerControl-DZsERSw_.cjs +698 -0
- package/dist/NiceScannerControl.css +1 -0
- package/dist/NiceWindow-BoDzlGk-.js +1621 -0
- package/dist/NiceWindow-DgONWxBm.cjs +1 -0
- package/dist/charts-Bs0aDM0X.js +4671 -0
- package/dist/charts-DjjKkw0q.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BUsZ7_vI.js +27914 -0
- package/dist/core-CLfcCDKc.cjs +122 -0
- package/dist/data-branching-D7l_kILW.cjs +1 -0
- package/dist/data-branching-lJ07lDN-.js +6255 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +41 -37
- package/dist/data.mjs +18 -19
- package/dist/devops-Bi8MXtko.js +8165 -0
- package/dist/devops-On_1wRf9.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +215 -431
- package/dist/editors.mjs +48 -56
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index-BDH1yDSg.js +69235 -0
- package/dist/index-C9njkNOD.cjs +5470 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +441 -916
- package/dist/index.mjs +908 -933
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +25 -213
- package/dist/navigation.mjs +105 -113
- package/dist/no-code-8lO7o6xi.js +7425 -0
- package/dist/no-code-K8tOLNew.cjs +332 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +8 -0
- package/dist/overlays.mjs +36 -36
- package/dist/pickerCommons-CORo9j2a.js +2119 -0
- package/dist/pickerCommons-D3WShRrR.cjs +1 -0
- package/dist/style.css +5 -5
- package/package.json +3 -3
package/dist/data-branching.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./data-branching-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./data-branching-D7l_kILW.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;
|
package/dist/data-branching.mjs
CHANGED
package/dist/data.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceSavedQueryPanel-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceSavedQueryPanel-aQrEmmcC.cjs");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;
|
package/dist/data.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1006,6 +984,14 @@ export declare interface NiceListProps extends NiceBaseProps {
|
|
|
1006
984
|
emptyText?: string;
|
|
1007
985
|
/** Size preset. */
|
|
1008
986
|
size?: NiceSize;
|
|
987
|
+
/** Optional header shown above the list; stays visible during loading. */
|
|
988
|
+
header?: default_2.ReactNode;
|
|
989
|
+
/** Disable the whole list — dimmed and inert. */
|
|
990
|
+
disabled?: boolean;
|
|
991
|
+
/** Read-only: items are non-interactive but not dimmed. */
|
|
992
|
+
readOnly?: boolean;
|
|
993
|
+
/** Error message shown in place of the list. */
|
|
994
|
+
error?: string;
|
|
1009
995
|
/** Show border around the list. */
|
|
1010
996
|
bordered?: boolean;
|
|
1011
997
|
/** Swipe actions revealed on mobile swipe gesture. */
|
|
@@ -1468,6 +1454,14 @@ export declare interface NiceSpreadsheetProps extends NiceBaseProps {
|
|
|
1468
1454
|
showSheetTabs?: boolean;
|
|
1469
1455
|
/** Make the entire spreadsheet read-only. */
|
|
1470
1456
|
readOnly?: boolean;
|
|
1457
|
+
/** Disabled: dimmed + inert (blocks editing/selection). */
|
|
1458
|
+
disabled?: boolean;
|
|
1459
|
+
/** Loading: a spinner overlay + aria-busy. */
|
|
1460
|
+
loading?: boolean;
|
|
1461
|
+
/** Error message shown above the grid. */
|
|
1462
|
+
error?: string;
|
|
1463
|
+
/** Density size (xs..xl) — scales cell padding + font. */
|
|
1464
|
+
size?: NiceSize;
|
|
1471
1465
|
/** Called when any cell data changes. */
|
|
1472
1466
|
onChange?: (sheets: NiceSpreadsheetSheet[]) => void;
|
|
1473
1467
|
/** Called when the active sheet tab changes. */
|
|
@@ -1521,7 +1515,7 @@ declare interface NiceSpreadsheetSheet {
|
|
|
1521
1515
|
columnFilters?: Record<number, string>;
|
|
1522
1516
|
}
|
|
1523
1517
|
|
|
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;
|
|
1518
|
+
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
1519
|
|
|
1526
1520
|
/** Column definition for the {@link NiceTable} component. */
|
|
1527
1521
|
declare interface NiceTableColumn<T = any> {
|
|
@@ -1549,6 +1543,8 @@ export declare interface NiceTableProps<T extends Record<string, any> = any> ext
|
|
|
1549
1543
|
striped?: boolean;
|
|
1550
1544
|
/** Reduced padding. */
|
|
1551
1545
|
compact?: boolean;
|
|
1546
|
+
/** Table size (font + cell padding). Independent of `compact`. */
|
|
1547
|
+
size?: NiceSize;
|
|
1552
1548
|
/** Text shown when `data` is empty. */
|
|
1553
1549
|
emptyText?: string;
|
|
1554
1550
|
}
|
|
@@ -1599,7 +1595,7 @@ declare interface NiceTreeContextMenuItem {
|
|
|
1599
1595
|
disabled?: boolean;
|
|
1600
1596
|
}
|
|
1601
1597
|
|
|
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;
|
|
1598
|
+
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
1599
|
|
|
1604
1600
|
/** A row node in the {@link NiceTreeGrid} (supports index-signature for dynamic fields). */
|
|
1605
1601
|
export declare interface NiceTreeGridNode {
|
|
@@ -1648,8 +1644,16 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
1648
1644
|
striped?: boolean;
|
|
1649
1645
|
/** Reduced padding. */
|
|
1650
1646
|
compact?: boolean;
|
|
1647
|
+
/** Grid density size (xs..xl) — scales row padding + font. */
|
|
1648
|
+
size?: NiceSize;
|
|
1651
1649
|
/** Show a loading skeleton. */
|
|
1652
1650
|
loading?: boolean;
|
|
1651
|
+
/** Disable the whole grid — dimmed and inert. */
|
|
1652
|
+
disabled?: boolean;
|
|
1653
|
+
/** Read-only: rows non-interactive (no selection/row-click) but not dimmed; expand/collapse still works. */
|
|
1654
|
+
readOnly?: boolean;
|
|
1655
|
+
/** Error message shown in place of the grid body. */
|
|
1656
|
+
error?: string;
|
|
1653
1657
|
/** Text shown when data is empty. */
|
|
1654
1658
|
emptyText?: string;
|
|
1655
1659
|
/** Toolbar content rendered above the grid. */
|
package/dist/data.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
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
|
|
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 b, p as h } from "./NiceSavedQueryPanel-CH5c3rUG.js";
|
|
2
2
|
export {
|
|
3
|
-
a as
|
|
4
|
-
s as
|
|
5
|
-
c as
|
|
6
|
-
r as
|
|
7
|
-
N as
|
|
8
|
-
d as
|
|
9
|
-
o as
|
|
10
|
-
t as
|
|
11
|
-
l as
|
|
12
|
-
n as
|
|
13
|
-
G as
|
|
14
|
-
p as
|
|
15
|
-
T as
|
|
16
|
-
g as
|
|
17
|
-
v as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
b as escapeCsvField
|
|
3
|
+
a as NiceDataGrid,
|
|
4
|
+
s as NiceDataGridAI,
|
|
5
|
+
c as NiceKanbanBoard,
|
|
6
|
+
r as NiceList,
|
|
7
|
+
N as NiceModuleGrid,
|
|
8
|
+
d as NicePivotGrid,
|
|
9
|
+
o as NicePivotGridFieldChooser,
|
|
10
|
+
t as NiceReconciliationView,
|
|
11
|
+
l as NiceSavedQueryPanel,
|
|
12
|
+
n as NiceSpreadsheet,
|
|
13
|
+
G as NiceTable,
|
|
14
|
+
p as NiceTileView,
|
|
15
|
+
T as NiceTreeGrid,
|
|
16
|
+
g as NiceTreeList,
|
|
17
|
+
v as NiceTreeView,
|
|
18
|
+
b as computeAggregate,
|
|
19
|
+
h as escapeCsvField
|
|
21
20
|
};
|