@nice2dev/ui 1.3.9 → 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 +37 -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-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/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 +46 -5
- 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 +108 -108
- package/dist/index.css +1 -1
- package/dist/index.d.ts +51 -8
- package/dist/index.mjs +13739 -13579
- 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/index.d.ts
CHANGED
|
@@ -9114,6 +9114,8 @@ export declare interface NiceCardProps extends NiceBaseProps {
|
|
|
9114
9114
|
loading?: boolean;
|
|
9115
9115
|
/** Error state — adds an error border; a non-empty string also renders a message. */
|
|
9116
9116
|
error?: string | boolean;
|
|
9117
|
+
/** Test identifier (alias for `data-testid`), rendered on the card element. */
|
|
9118
|
+
testId?: string;
|
|
9117
9119
|
}
|
|
9118
9120
|
|
|
9119
9121
|
/** Value type used by selectable cards / card radio groups. */
|
|
@@ -15629,7 +15631,7 @@ export declare const NiceLiveDataGrid: (<T extends LiveGridRow = LiveGridRow>(pr
|
|
|
15629
15631
|
displayName: string;
|
|
15630
15632
|
};
|
|
15631
15633
|
|
|
15632
|
-
declare function NiceLiveDataGridInner<T extends LiveGridRow = LiveGridRow>({ columns, data: initialData, dataSource, rowKey, showConnectionStatus, highlightDuration, updateAnimation, maxRows, selectable, selectedIds, onSelectionChange, onRowClick, onUpdate, onConnectionStatusChange, emptyContent, loadingContent, sortable, sortField, sortDirection, onSortChange, virtualized: _virtualized, rowHeight, height, className, style, }: NiceLiveDataGridProps<T>, ref: default_2.ForwardedRef<NiceLiveDataGridRef<T>>): default_2.JSX.Element;
|
|
15634
|
+
declare function NiceLiveDataGridInner<T extends LiveGridRow = LiveGridRow>({ columns, data: initialData, dataSource, rowKey, showConnectionStatus, highlightDuration, updateAnimation, maxRows, selectable, selectedIds, onSelectionChange, onRowClick, onUpdate, onConnectionStatusChange, emptyContent, loadingContent, sortable, sortField, sortDirection, onSortChange, virtualized: _virtualized, rowHeight, height, className, style, 'data-testid': dataTestId, }: NiceLiveDataGridProps<T>, ref: default_2.ForwardedRef<NiceLiveDataGridRef<T>>): default_2.JSX.Element;
|
|
15633
15635
|
|
|
15634
15636
|
/** Props for NiceLiveDataGrid */
|
|
15635
15637
|
export declare interface NiceLiveDataGridProps<T extends LiveGridRow = LiveGridRow> extends NiceBaseProps {
|
|
@@ -17865,7 +17867,7 @@ export { NiceOnChange }
|
|
|
17865
17867
|
|
|
17866
17868
|
export { NiceOnOpenChange }
|
|
17867
17869
|
|
|
17868
|
-
export declare const NiceOnScreenKeyboard: (({ value: valueProp, defaultValue, caret: caretProp, onChange, onSubmit, onClose, language, languages, layout, multiline, masked, maxLength, enterLabel, showPreview, fieldLabel, modal, className, style, }: NiceOnScreenKeyboardProps) => default_2.JSX.Element) & {
|
|
17870
|
+
export declare const NiceOnScreenKeyboard: (({ value: valueProp, defaultValue, caret: caretProp, onChange, onSubmit, onClose, language, languages, layout, multiline, masked, maxLength, enterLabel, showPreview, fieldLabel, modal, className, "data-testid": dataTestId, style, }: NiceOnScreenKeyboardProps) => default_2.JSX.Element) & {
|
|
17869
17871
|
displayName: string;
|
|
17870
17872
|
};
|
|
17871
17873
|
|
|
@@ -21369,7 +21371,7 @@ export declare interface NiceSliderProps extends Omit<NiceFormFieldProps, 'label
|
|
|
21369
21371
|
showTickLabels?: boolean;
|
|
21370
21372
|
}
|
|
21371
21373
|
|
|
21372
|
-
export declare function NiceSortable<T extends Record<string, unknown>>({ items, keyField, onReorder, renderItem, direction, handle, group: _group, disabled, className, style, }: NiceSortableProps<T>): default_2.JSX.Element;
|
|
21374
|
+
export declare function NiceSortable<T extends Record<string, unknown>>({ items, keyField, onReorder, renderItem, direction, handle, group: _group, disabled, className, style, 'data-testid': dataTestId, }: NiceSortableProps<T>): default_2.JSX.Element;
|
|
21373
21375
|
|
|
21374
21376
|
export declare namespace NiceSortable {
|
|
21375
21377
|
var displayName: string;
|
|
@@ -22772,7 +22774,7 @@ export { NiceThemeVariantProvider }
|
|
|
22772
22774
|
|
|
22773
22775
|
export { NiceThemeVariantProviderProps }
|
|
22774
22776
|
|
|
22775
|
-
export declare function NiceTileView<T extends NiceTileViewItem>({ items, tileWidth, tileHeight, direction, renderTile, onTileClick, loading, emptyText, className, style, }: NiceTileViewProps<T>): default_2.JSX.Element;
|
|
22777
|
+
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;
|
|
22776
22778
|
|
|
22777
22779
|
/** A tile item displayed by the {@link NiceTileView} component. */
|
|
22778
22780
|
declare interface NiceTileViewItem {
|
|
@@ -23346,7 +23348,19 @@ export declare interface NiceTreeContextMenuItem {
|
|
|
23346
23348
|
disabled?: boolean;
|
|
23347
23349
|
}
|
|
23348
23350
|
|
|
23349
|
-
export declare function NiceTreeGrid<T extends NiceTreeGridNode>({ columns, data, keyField, parentKeyField, nested, childrenField, expandedKeys: controlledExpanded, defaultExpandedKeys, onExpandedChange, defaultExpandAll, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, checkable, checkedKeys, defaultCheckedKeys, onCheckedChange, checkStrategy, isRowCheckable, isRowDisabled, checkboxPlacement, checkOnRowClick, showCheckedCount, 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;
|
|
23351
|
+
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;
|
|
23352
|
+
|
|
23353
|
+
/** What a `checkedSummary` function of {@link NiceTreeGrid} gets. */
|
|
23354
|
+
declare interface NiceTreeGridCheckedSummaryInfo<T = NiceTreeGridNode> {
|
|
23355
|
+
/** Checked rows that count: rows with a checkbox and no checkboxes below them. */
|
|
23356
|
+
checked: number;
|
|
23357
|
+
/** All rows that count. */
|
|
23358
|
+
total: number;
|
|
23359
|
+
/** Keys of the checked rows that count. */
|
|
23360
|
+
leafKeys: string[];
|
|
23361
|
+
/** Their rows — e.g. to count distinct items when one item has a row under several parents. */
|
|
23362
|
+
rows: T[];
|
|
23363
|
+
}
|
|
23350
23364
|
|
|
23351
23365
|
/** What changed in a {@link NiceTreeGrid} check — the second argument of `onCheckedChange`. */
|
|
23352
23366
|
export declare interface NiceTreeGridCheckInfo<T = NiceTreeGridNode> {
|
|
@@ -23386,8 +23400,29 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
23386
23400
|
expandedKeys?: string[];
|
|
23387
23401
|
/** Rows expanded until the user expands or collapses one (uncontrolled). */
|
|
23388
23402
|
defaultExpandedKeys?: string[];
|
|
23389
|
-
/**
|
|
23403
|
+
/**
|
|
23404
|
+
* Called when expanded keys change — also for the rows the user opens or closes while searching
|
|
23405
|
+
* (they stay so after the search), but not for the rows a search opens by itself.
|
|
23406
|
+
*/
|
|
23390
23407
|
onExpandedChange?: (keys: string[]) => void;
|
|
23408
|
+
/**
|
|
23409
|
+
* Whether a row has children that are not in `data` yet. Such a row gets an expander; opening
|
|
23410
|
+
* it calls `loadChildren`, or — without it — shows a loading row until you add the children to
|
|
23411
|
+
* `data`. Default with `loadChildren`: every row without children, until its load returns none.
|
|
23412
|
+
*/
|
|
23413
|
+
hasChildren?: (row: T) => boolean;
|
|
23414
|
+
/**
|
|
23415
|
+
* Loads a row's children the first time it is opened; the grid keeps them. Flat rows may bring
|
|
23416
|
+
* deeper levels along through `parentKeyField`, nested rows through `childrenField`. A failed
|
|
23417
|
+
* load shows a row with a retry button. Search and "expand all" cover the loaded rows.
|
|
23418
|
+
*/
|
|
23419
|
+
loadChildren?: (row: T) => Promise<T[]>;
|
|
23420
|
+
/**
|
|
23421
|
+
* Built-in buttons in the rows: `true` for all, or a list. `'expandSubtree'` opens everything
|
|
23422
|
+
* below a row — loading lazy rows on the way — and closes it all once it is open. Without the
|
|
23423
|
+
* button, Alt- or Shift-click on an expander and Shift+→ / Shift+← do the same.
|
|
23424
|
+
*/
|
|
23425
|
+
rowActions?: boolean | NiceTreeGridRowAction[];
|
|
23391
23426
|
/** Expand all nodes by default — also rows that arrive later, until the user toggles one. */
|
|
23392
23427
|
defaultExpandAll?: boolean;
|
|
23393
23428
|
/** Enable sorting. */
|
|
@@ -23438,6 +23473,11 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
23438
23473
|
checkOnRowClick?: boolean;
|
|
23439
23474
|
/** Show a "checked / total" badge on rows with checkboxes below them. */
|
|
23440
23475
|
showCheckedCount?: boolean;
|
|
23476
|
+
/**
|
|
23477
|
+
* The selection summary in the toolbar ("{checked} of {total} selected"): `false` hides it, a
|
|
23478
|
+
* function renders your own — e.g. distinct items when one item has a row under several parents.
|
|
23479
|
+
*/
|
|
23480
|
+
checkedSummary?: false | ((info: NiceTreeGridCheckedSummaryInfo<T>) => default_2.ReactNode);
|
|
23441
23481
|
/** A "select all" checkbox in the header — while searching, it acts on the results. Default true. */
|
|
23442
23482
|
showSelectAll?: boolean;
|
|
23443
23483
|
/** Show only the checked rows (controlled). */
|
|
@@ -23467,7 +23507,7 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
23467
23507
|
searchFilter?: (row: T, query: string) => boolean;
|
|
23468
23508
|
/** A matching row keeps all rows below it, not only the matching ones. */
|
|
23469
23509
|
searchKeepDescendants?: boolean;
|
|
23470
|
-
/** Open the rows above every match while searching (default true);
|
|
23510
|
+
/** Open the rows above every match while searching (default true); they close again when the search is cleared. */
|
|
23471
23511
|
searchAutoExpand?: boolean;
|
|
23472
23512
|
/** Mark the matches in columns without a `render` (default true). */
|
|
23473
23513
|
highlightMatches?: boolean;
|
|
@@ -23506,10 +23546,13 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
23506
23546
|
onRowClick?: (row: T) => void;
|
|
23507
23547
|
}
|
|
23508
23548
|
|
|
23549
|
+
/** A built-in button in the rows of {@link NiceTreeGrid}. */
|
|
23550
|
+
declare type NiceTreeGridRowAction = 'expandSubtree';
|
|
23551
|
+
|
|
23509
23552
|
/** A built-in toolbar button of {@link NiceTreeGrid}. */
|
|
23510
23553
|
export declare type NiceTreeGridToolbarAction = 'expandAll' | 'collapseAll' | 'onlyChecked' | 'clearChecked';
|
|
23511
23554
|
|
|
23512
|
-
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;
|
|
23555
|
+
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;
|
|
23513
23556
|
|
|
23514
23557
|
/** A tree-list node for the {@link NiceTreeList} component. */
|
|
23515
23558
|
export declare interface NiceTreeListNode {
|