@nice2dev/ui 1.0.31 → 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.
- package/CHANGELOG.md +353 -0
- package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
- package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
- package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
- package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
- package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
- package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
- package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
- package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
- package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
- package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
- package/dist/NiceForm-C6F0HvrX.cjs +1 -0
- package/dist/NiceForm-CCyfWgIs.js +4805 -0
- package/dist/NiceGantt-CSFLZD2y.js +328 -0
- package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
- package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
- package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
- package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
- package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
- package/dist/NiceMention-CWoLD0SE.js +11082 -0
- package/dist/NiceMention-J1lUDLhg.cjs +430 -0
- package/dist/NiceMention.css +1 -0
- package/dist/NiceModal-0UxviEYE.cjs +1 -0
- package/dist/NiceModal-D-iOonog.js +95 -0
- package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
- package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-CPn-Q1h_.js +172 -0
- package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
- package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
- package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
- package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
- package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
- package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
- package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
- package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
- package/dist/NiceSelect-DHowflmX.js +433 -0
- package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
- package/dist/NiceWindow-xnTSHdHv.js +1623 -0
- package/dist/charts-B-sl1V9y.cjs +882 -0
- package/dist/charts-DO2z6Ziu.js +31920 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +7 -7
- package/dist/core-C2KhqEaU.cjs +1 -0
- package/dist/core-K2DIxXLn.js +795 -0
- package/dist/data-branching-DC6hcBQN.cjs +1 -0
- package/dist/data-branching-DykdTpjJ.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 +29 -7
- package/dist/data.mjs +18 -16
- package/dist/devops-CU0sOVEA.cjs +17 -0
- package/dist/devops-CXyEwQeM.js +8165 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +73 -1
- package/dist/editors.mjs +58 -54
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +5137 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +115 -13
- package/dist/index.mjs +66371 -992
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +6 -0
- package/dist/navigation.mjs +4 -4
- package/dist/no-code-C58g8_fb.cjs +332 -0
- package/dist/no-code-Cj4xJ3w9.js +7425 -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 +2 -0
- package/dist/overlays.mjs +2 -2
- package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
- package/dist/pickerCommons-COiSUiP2.js +1122 -0
- package/dist/style.css +6 -6
- package/dist/vendor-BPVpdtPp.js +271 -0
- package/dist/vendor-Bo2Q64AF.cjs +1 -0
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ import { IndexedDBAdapter } from '@nice2dev/ui-core';
|
|
|
141
141
|
import { InputStyleVariant } from '@nice2dev/ui-core';
|
|
142
142
|
import { isRecordValid } from '@nice2dev/ui-core';
|
|
143
143
|
import { ITracelessPolicy } from '@nice2dev/ui-core';
|
|
144
|
-
import { JSX
|
|
144
|
+
import { JSX } from 'react';
|
|
145
145
|
import { KeyboardShortcut } from '@nice2dev/ui-core';
|
|
146
146
|
import { LayoutPreferences } from '@nice2dev/ui-core';
|
|
147
147
|
import { LeakDetectorConfig } from '@nice2dev/ui-core';
|
|
@@ -7346,6 +7346,8 @@ export declare interface NiceActionSheetProps extends NiceBaseProps {
|
|
|
7346
7346
|
size?: NiceSize;
|
|
7347
7347
|
/** Disabled: dims the sheet + blocks every action. */
|
|
7348
7348
|
disabled?: boolean;
|
|
7349
|
+
/** Read-only: the action items are inert (only Cancel stays active), without dimming. */
|
|
7350
|
+
readOnly?: boolean;
|
|
7349
7351
|
/** Loading: a spinner overlay + aria-busy; actions blocked. */
|
|
7350
7352
|
loading?: boolean;
|
|
7351
7353
|
/** Error message shown at the top of the sheet. */
|
|
@@ -8714,6 +8716,24 @@ export declare interface NiceCalendarProps extends NiceBaseProps, TracelessStora
|
|
|
8714
8716
|
/** Array of selected dates when multiple=true. */
|
|
8715
8717
|
selectedDates?: string[];
|
|
8716
8718
|
onSelectedDatesChange?: (dates: string[]) => void;
|
|
8719
|
+
/**
|
|
8720
|
+
* `'single'` (default) selects one day via `value`/`onChange`. `'range'`
|
|
8721
|
+
* selects a start/end pair in two clicks, driven by `rangeStart`/`rangeEnd`
|
|
8722
|
+
* and reported through `onRangeChange`.
|
|
8723
|
+
*/
|
|
8724
|
+
selectionMode?: 'single' | 'range';
|
|
8725
|
+
/** First day of the selected range (ISO), when `selectionMode='range'`. */
|
|
8726
|
+
rangeStart?: string;
|
|
8727
|
+
/** Last day of the selected range (ISO), when `selectionMode='range'`. */
|
|
8728
|
+
rangeEnd?: string;
|
|
8729
|
+
/**
|
|
8730
|
+
* Fires on every range edit. The first click opens a new range (`end` empty),
|
|
8731
|
+
* the second closes it — clicking before the start swaps the two.
|
|
8732
|
+
*/
|
|
8733
|
+
onRangeChange?: (range: {
|
|
8734
|
+
start: string;
|
|
8735
|
+
end: string;
|
|
8736
|
+
}) => void;
|
|
8717
8737
|
/** Custom render for day cells. Return ReactNode to replace default number. */
|
|
8718
8738
|
renderDay?: (date: string, day: number) => default_2.ReactNode;
|
|
8719
8739
|
/** Show keyboard hints. */
|
|
@@ -11375,6 +11395,12 @@ export declare interface NiceDateRangeBoxProps extends NiceFormFieldProps {
|
|
|
11375
11395
|
startLabel?: string;
|
|
11376
11396
|
/** Label shown above (or before) the end picker. */
|
|
11377
11397
|
endLabel?: string;
|
|
11398
|
+
/**
|
|
11399
|
+
* Collapse the pair into ONE field with ONE popup: the field shows
|
|
11400
|
+
* `start – end` and the popup holds a single calendar on which the span is
|
|
11401
|
+
* painted in two clicks. Default `false` (two fields, two popups).
|
|
11402
|
+
*/
|
|
11403
|
+
singleField?: boolean;
|
|
11378
11404
|
/** Layout direction for the two pickers (default `horizontal`). */
|
|
11379
11405
|
layout?: 'horizontal' | 'vertical';
|
|
11380
11406
|
/** Custom separator rendered between pickers in horizontal layout (default `–`). Pass `''` to hide. */
|
|
@@ -11388,13 +11414,42 @@ export declare interface NiceDateRangeBoxProps extends NiceFormFieldProps {
|
|
|
11388
11414
|
* date, datetime (`'datetime-local'`), month, week or time, not just date.
|
|
11389
11415
|
*/
|
|
11390
11416
|
dateFormatPreset?: NiceDateFormatPreset;
|
|
11417
|
+
/**
|
|
11418
|
+
* BCP 47 locale forwarded to BOTH inner pickers, controlling the displayed
|
|
11419
|
+
* date mask (e.g. `'pl-PL'` → `dd.MM.yyyy`, `'en-US'` → `MM/dd/yyyy`). When
|
|
11420
|
+
* omitted the pickers fall back to the app locale (`<html lang>`) then the
|
|
11421
|
+
* browser locale. The emitted value stays ISO regardless of display locale.
|
|
11422
|
+
*/
|
|
11423
|
+
locale?: string;
|
|
11391
11424
|
/**
|
|
11392
11425
|
* @deprecated Use `dateFormatPreset`. Native input type forwarded to both
|
|
11393
11426
|
* inner pickers.
|
|
11394
11427
|
*/
|
|
11395
11428
|
type?: 'date' | 'datetime-local' | 'time' | 'month' | 'week';
|
|
11429
|
+
/**
|
|
11430
|
+
* How the end date is constrained relative to the start (default
|
|
11431
|
+
* `'greater-or-equal'` — the end can equal the start).
|
|
11432
|
+
*/
|
|
11433
|
+
endCondition?: NiceDateRangeEndCondition;
|
|
11434
|
+
/**
|
|
11435
|
+
* How the start date is constrained relative to today (default
|
|
11436
|
+
* `'today-or-greater'` — the start can't be in the past).
|
|
11437
|
+
*/
|
|
11438
|
+
startCondition?: NiceDateRangeStartCondition;
|
|
11439
|
+
/**
|
|
11440
|
+
* Time selector for datetime ranges, forwarded to both inner pickers:
|
|
11441
|
+
* `'spinners'` (default) or `'clock'` (analog clock face). Only relevant when
|
|
11442
|
+
* `dateFormatPreset` carries a time part.
|
|
11443
|
+
*/
|
|
11444
|
+
timeSelectorType?: 'spinners' | 'clock';
|
|
11396
11445
|
}
|
|
11397
11446
|
|
|
11447
|
+
/** How the end date is constrained relative to the start date. Extensible. */
|
|
11448
|
+
declare type NiceDateRangeEndCondition = 'greater-or-equal' | 'greater' | 'none';
|
|
11449
|
+
|
|
11450
|
+
/** How the start date is constrained relative to today. Extensible. */
|
|
11451
|
+
declare type NiceDateRangeStartCondition = 'today-or-greater' | 'greater-than-today' | 'none';
|
|
11452
|
+
|
|
11398
11453
|
/** Built-in countdown format presets (merged in from NiceTimePicker).
|
|
11399
11454
|
* NOTE: deliberately NOT named `NiceCountdownFormat` — that name is already a
|
|
11400
11455
|
* public export of the unrelated `NiceCountdown` display component. */
|
|
@@ -11460,6 +11515,13 @@ export declare interface NiceDateTimePickerProps extends NiceFormFieldProps {
|
|
|
11460
11515
|
* masked field always edits 24-hour digits and the emitted value stays ISO 24h.
|
|
11461
11516
|
*/
|
|
11462
11517
|
hourFormat?: '12' | '24';
|
|
11518
|
+
/**
|
|
11519
|
+
* Datetime/time: how the time-of-day is picked inside the popup. `'spinners'`
|
|
11520
|
+
* (default) are the scroll wheels; `'clock'` is an analog clock face with
|
|
11521
|
+
* hour/minute hands and an AM/PM toggle. A small in-popup toggle also lets the
|
|
11522
|
+
* user switch between the two at runtime. The emitted value stays ISO 24h.
|
|
11523
|
+
*/
|
|
11524
|
+
timeSelectorType?: 'spinners' | 'clock';
|
|
11463
11525
|
/**
|
|
11464
11526
|
* Datetime/time/date: show a "Now" button that fills the current date/time.
|
|
11465
11527
|
* Default: `false`.
|
|
@@ -11664,7 +11726,7 @@ export declare interface NiceDeviceTileQuickControls {
|
|
|
11664
11726
|
gain?: boolean;
|
|
11665
11727
|
}
|
|
11666
11728
|
|
|
11667
|
-
export declare function NiceDiagramDesigner({ initialSchema, onChange, onExport, className, style, tutorial, }: NiceDiagramDesignerProps): JSX.Element;
|
|
11729
|
+
export declare function NiceDiagramDesigner({ initialSchema, onChange, onExport, className, style, tutorial, }: NiceDiagramDesignerProps): default_2.JSX.Element;
|
|
11668
11730
|
|
|
11669
11731
|
export declare interface NiceDiagramDesignerProps {
|
|
11670
11732
|
/** Initial diagram schema. Accepts the canonical {@link DiagramSchema} or a looser input where nodes only need `id/x/y/label` and edges may use `from`/`to` aliases. */
|
|
@@ -12199,6 +12261,16 @@ export declare interface NiceDropDownBoxProps extends NiceFormFieldProps {
|
|
|
12199
12261
|
onOpenChange?: (open: boolean) => void;
|
|
12200
12262
|
/** Width of the dropdown panel. */
|
|
12201
12263
|
dropdownWidth?: number | string;
|
|
12264
|
+
/**
|
|
12265
|
+
* Show a search box at the top of the panel (default `true`). Because the panel
|
|
12266
|
+
* holds arbitrary `children`, filtering is the caller's job — the search box only
|
|
12267
|
+
* renders when an `onSearch` handler is provided.
|
|
12268
|
+
*/
|
|
12269
|
+
searchable?: boolean;
|
|
12270
|
+
/** Called with the query as the user types in the panel search box. */
|
|
12271
|
+
onSearch?: (query: string) => void;
|
|
12272
|
+
/** Placeholder for the panel search box. */
|
|
12273
|
+
searchPlaceholder?: string;
|
|
12202
12274
|
}
|
|
12203
12275
|
|
|
12204
12276
|
export declare const NiceDropDownButton: default_2.FC<NiceDropDownButtonProps>;
|
|
@@ -12419,7 +12491,7 @@ export declare class NiceErrorBoundary extends Component<NiceErrorBoundaryProps,
|
|
|
12419
12491
|
static getDerivedStateFromError(error: Error): NiceErrorBoundaryState;
|
|
12420
12492
|
componentDidCatch(error: Error, errorInfo: default_2.ErrorInfo): void;
|
|
12421
12493
|
handleReset: () => void;
|
|
12422
|
-
render(): string | number | boolean | Iterable<default_2.ReactNode> | default_2.JSX.Element | null | undefined;
|
|
12494
|
+
render(): string | number | bigint | boolean | Iterable<default_2.ReactNode> | Promise<string | number | bigint | boolean | default_2.ReactPortal | default_2.ReactElement<unknown, string | default_2.JSXElementConstructor<any>> | Iterable<default_2.ReactNode> | null | undefined> | default_2.JSX.Element | null | undefined;
|
|
12423
12495
|
}
|
|
12424
12496
|
|
|
12425
12497
|
/** Props for the {@link NiceErrorBoundary} component. */
|
|
@@ -13663,6 +13735,8 @@ export declare interface NiceGradientPickerProps extends NiceBaseProps {
|
|
|
13663
13735
|
loading?: boolean;
|
|
13664
13736
|
/** Error ring; a string value also renders the message. */
|
|
13665
13737
|
error?: string | boolean;
|
|
13738
|
+
/** Where the error message sits: below (default) or inline to the right. */
|
|
13739
|
+
errorPlacement?: 'bottom' | 'right';
|
|
13666
13740
|
/** Fixed width of the popup. Defaults to 340px. */
|
|
13667
13741
|
width?: string | number;
|
|
13668
13742
|
}
|
|
@@ -13691,7 +13765,7 @@ export declare interface NiceGradientValue {
|
|
|
13691
13765
|
|
|
13692
13766
|
export { NiceGraphQLConfig }
|
|
13693
13767
|
|
|
13694
|
-
export declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'triadic' | 'tetradic' | 'square' | 'shade-chain' | 'custom';
|
|
13768
|
+
export declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'analogous-complementary' | 'triadic' | 'tetradic' | 'square' | 'shade-chain' | 'custom';
|
|
13695
13769
|
|
|
13696
13770
|
/**
|
|
13697
13771
|
* Semantic heading with decoupled visual scale. Renders the correct
|
|
@@ -14402,6 +14476,12 @@ export declare interface NiceKanbanBoardProps extends NiceBaseProps, TracelessSt
|
|
|
14402
14476
|
size?: NiceSize;
|
|
14403
14477
|
/** Allow columns to be collapsed */
|
|
14404
14478
|
collapsible?: boolean;
|
|
14479
|
+
/**
|
|
14480
|
+
* Direction a collapsed column shrinks to (default `vertical`):
|
|
14481
|
+
* `vertical` → a slim vertical rail with a rotated chevron + count,
|
|
14482
|
+
* `horizontal` → a short horizontal bar keeping the header on one line.
|
|
14483
|
+
*/
|
|
14484
|
+
collapseDirection?: 'vertical' | 'horizontal';
|
|
14405
14485
|
/** Layout mode — `scroll` (default, horizontal scroll when overflowing) or `responsive` (columns wrap to fit container width). */
|
|
14406
14486
|
layoutMode?: NiceKanbanLayoutMode;
|
|
14407
14487
|
/** View mode (default, compact, detailed) */
|
|
@@ -16141,7 +16221,7 @@ export declare const NiceModuleGrid: <T extends Record<string, any>>(props: Nice
|
|
|
16141
16221
|
ref?: ForwardedRef<HTMLDivElement>;
|
|
16142
16222
|
}) => ReturnType<typeof NiceModuleGridInner>;
|
|
16143
16223
|
|
|
16144
|
-
declare function NiceModuleGridInner<T extends Record<string, any>>(props: NiceModuleGridProps<T>, ref: ForwardedRef<HTMLDivElement>):
|
|
16224
|
+
declare function NiceModuleGridInner<T extends Record<string, any>>(props: NiceModuleGridProps<T>, ref: ForwardedRef<HTMLDivElement>): JSX.Element;
|
|
16145
16225
|
|
|
16146
16226
|
/**
|
|
16147
16227
|
* Props for NiceModuleGrid — enterprise data grid for OmniVerk modules.
|
|
@@ -17740,6 +17820,8 @@ export declare interface NicePivotField {
|
|
|
17740
17820
|
field: string;
|
|
17741
17821
|
/** Display caption. */
|
|
17742
17822
|
caption: string;
|
|
17823
|
+
/** Data type shown beside the caption in the field chooser (e.g. `'text'`, `'integer'`, `'float'`, `'date'`). */
|
|
17824
|
+
dataType?: string;
|
|
17743
17825
|
/** Pivot area this field belongs to. */
|
|
17744
17826
|
area?: 'row' | 'column' | 'data' | 'filter';
|
|
17745
17827
|
/** Aggregation function applied in the data area. */
|
|
@@ -17758,9 +17840,14 @@ export declare interface NicePivotGridFieldChooserProps extends NiceBaseProps {
|
|
|
17758
17840
|
fields: NicePivotField[];
|
|
17759
17841
|
/** Called when the user rearranges fields. */
|
|
17760
17842
|
onChange: (fields: NicePivotField[]) => void;
|
|
17843
|
+
/**
|
|
17844
|
+
* Show a per-field area `NiceSelect` as an explicit (accessible) alternative to
|
|
17845
|
+
* drag-and-drop. Off by default — assignment is drag-and-drop first.
|
|
17846
|
+
*/
|
|
17847
|
+
showAreaSelect?: boolean;
|
|
17761
17848
|
}
|
|
17762
17849
|
|
|
17763
|
-
/** Props for the {@link NicePivotGrid} component — a cross-tab / pivot table with drag-and-drop field chooser, CSV export, and drill-through. */
|
|
17850
|
+
/** Props for the {@link NicePivotGrid} component — a cross-tab / pivot table with drag-and-drop field chooser, CSV/XLSX export, and drill-through. */
|
|
17764
17851
|
export declare interface NicePivotGridProps extends NiceBaseProps {
|
|
17765
17852
|
/** Raw data records. */
|
|
17766
17853
|
data: Record<string, any>[];
|
|
@@ -17774,9 +17861,11 @@ export declare interface NicePivotGridProps extends NiceBaseProps {
|
|
|
17774
17861
|
loading?: boolean;
|
|
17775
17862
|
/** Text shown when data is empty. */
|
|
17776
17863
|
emptyText?: string;
|
|
17777
|
-
/**
|
|
17864
|
+
/** Heading rendered at the left of the toolbar; the action buttons sit at its right. */
|
|
17865
|
+
headerText?: string;
|
|
17866
|
+
/** Enable data export (download menu offering CSV and XLSX). */
|
|
17778
17867
|
exportCsv?: boolean;
|
|
17779
|
-
/** Filename for
|
|
17868
|
+
/** Filename for exports (extension is appended). */
|
|
17780
17869
|
exportFilename?: string;
|
|
17781
17870
|
/** Callback when user clicks a cell to drill-through to underlying records. */
|
|
17782
17871
|
onDrillThrough?: (rowValue: string, colValue: string, records: Record<string, any>[]) => void;
|
|
@@ -17941,7 +18030,7 @@ export declare const NicePresenceCursors: default_2.ForwardRefExoticComponent<Ni
|
|
|
17941
18030
|
|
|
17942
18031
|
export declare interface NicePresenceCursorsProps extends NiceBaseProps {
|
|
17943
18032
|
/** Container ref for cursor positioning */
|
|
17944
|
-
containerRef?: default_2.RefObject<HTMLElement>;
|
|
18033
|
+
containerRef?: default_2.RefObject<HTMLElement | null>;
|
|
17945
18034
|
/** Show user name label */
|
|
17946
18035
|
showLabel?: boolean;
|
|
17947
18036
|
/** Label fade delay (ms) */
|
|
@@ -21197,6 +21286,12 @@ export declare interface NiceTabsProps extends NiceBaseProps {
|
|
|
21197
21286
|
iconOnly?: boolean;
|
|
21198
21287
|
/** Center the tab strip. `'auto'` (default) centers only when `iconOnly`. */
|
|
21199
21288
|
centered?: boolean | 'auto';
|
|
21289
|
+
/**
|
|
21290
|
+
* Where a tab's `badge`/count sits relative to the icon+label:
|
|
21291
|
+
* `'right'` (default) — inline after the label; `'bottom'` — stacked under the
|
|
21292
|
+
* icon as a heavily-rounded pill rectangle (not a circle).
|
|
21293
|
+
*/
|
|
21294
|
+
countLocation?: 'right' | 'bottom';
|
|
21200
21295
|
}
|
|
21201
21296
|
|
|
21202
21297
|
export declare const NiceTag: default_2.FC<NiceTagProps>;
|
|
@@ -21926,7 +22021,7 @@ export declare interface NiceTooltipProps {
|
|
|
21926
22021
|
/** Tooltip follows cursor position */
|
|
21927
22022
|
followCursor?: boolean;
|
|
21928
22023
|
/** Trigger element that the tooltip wraps. */
|
|
21929
|
-
children: default_2.ReactElement
|
|
22024
|
+
children: default_2.ReactElement<any>;
|
|
21930
22025
|
}
|
|
21931
22026
|
|
|
21932
22027
|
/** Concrete side a tooltip can be placed on (after `'auto'` is resolved). */
|
|
@@ -22356,7 +22451,7 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
|
|
|
22356
22451
|
onRowClick?: (row: T) => void;
|
|
22357
22452
|
}
|
|
22358
22453
|
|
|
22359
|
-
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;
|
|
22454
|
+
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;
|
|
22360
22455
|
|
|
22361
22456
|
/** A tree-list node for the {@link NiceTreeList} component. */
|
|
22362
22457
|
export declare interface NiceTreeListNode {
|
|
@@ -22388,8 +22483,10 @@ export declare interface NiceTreeListProps<T extends NiceTreeListNode = NiceTree
|
|
|
22388
22483
|
selectedKeys?: string[];
|
|
22389
22484
|
/** Called when selection changes. */
|
|
22390
22485
|
onSelectionChange?: (keys: string[]) => void;
|
|
22391
|
-
/** Enable row selection. */
|
|
22486
|
+
/** Enable row selection. Checking a parent row cascades to all its descendants. */
|
|
22392
22487
|
selectable?: boolean;
|
|
22488
|
+
/** Enable column sorting (opt-in per column via `NiceDataGridColumn.sortable`). */
|
|
22489
|
+
sortable?: boolean;
|
|
22393
22490
|
/** Show a loading skeleton. */
|
|
22394
22491
|
loading?: boolean;
|
|
22395
22492
|
/** Text shown when data is empty. */
|
|
@@ -22515,6 +22612,11 @@ export declare const NiceTreeView: default_2.FC<NiceTreeViewProps>;
|
|
|
22515
22612
|
export declare interface NiceTreeViewProps extends NiceBaseProps {
|
|
22516
22613
|
/** Root nodes. */
|
|
22517
22614
|
nodes: NiceTreeNode[];
|
|
22615
|
+
/**
|
|
22616
|
+
* Optional header rendered above the (optional) search box and the tree —
|
|
22617
|
+
* a title bar, toolbar or count. Pass any node; omit for no header.
|
|
22618
|
+
*/
|
|
22619
|
+
header?: default_2.ReactNode;
|
|
22518
22620
|
/** Currently selected node keys. */
|
|
22519
22621
|
selectedKeys?: string[];
|
|
22520
22622
|
/** Currently expanded node keys. */
|
|
@@ -28145,7 +28247,7 @@ export { useIsTouchDevice }
|
|
|
28145
28247
|
/**
|
|
28146
28248
|
* Hook for intersection observer based lazy loading
|
|
28147
28249
|
*/
|
|
28148
|
-
export declare function useLazyOnVisible(threshold?: number, rootMargin?: string): [default_2.RefObject<HTMLDivElement>, boolean];
|
|
28250
|
+
export declare function useLazyOnVisible(threshold?: number, rootMargin?: string): [default_2.RefObject<HTMLDivElement | null>, boolean];
|
|
28149
28251
|
|
|
28150
28252
|
export { useLiveAnnouncement }
|
|
28151
28253
|
|