@nice2dev/ui 1.0.8 → 1.0.11
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/dist/NiceErrorBoundary-B5nF-OVn.cjs +1 -0
- package/dist/NiceErrorBoundary-BZEHCXNM.cjs +1 -0
- package/dist/NiceErrorBoundary-D6jw6wwD.js +762 -0
- package/dist/NiceErrorBoundary-D75yr_WE.js +762 -0
- package/dist/NiceForm-BgR-m8T9.cjs +382 -0
- package/dist/NiceForm-CKoJA6NG.js +5131 -0
- package/dist/NiceForm-D7xnpnRJ.cjs +382 -0
- package/dist/NiceForm-DYKciCeR.js +5131 -0
- package/dist/NiceForm.css +1 -0
- package/dist/NiceModal-1QX7NhyH.js +95 -0
- package/dist/NiceModal-Br3J9jOV.cjs +1 -0
- package/dist/NiceModal-CAwsKVQ2.cjs +1 -0
- package/dist/NiceModal-DVAsBzHP.js +95 -0
- package/dist/NiceModuleLifecyclePanel-C9xMSjOF.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-CMrPbSw9.js +5249 -0
- package/dist/NiceModuleLifecyclePanel-D3azLDdj.js +5249 -0
- package/dist/NiceModuleLifecyclePanel-DEfAIhFf.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -0
- package/dist/NicePagination-CbB5P1N_.js +171 -0
- package/dist/NicePagination-DbE-uOkl.js +171 -0
- package/dist/NicePagination-DlealakT.cjs +1 -0
- package/dist/NicePagination-UGjzvRUS.cjs +1 -0
- package/dist/NicePinCodeInput-B8cI8zu8.js +11830 -0
- package/dist/NicePinCodeInput-BmRO9HSQ.js +11830 -0
- package/dist/NicePinCodeInput-D91uvVsF.cjs +419 -0
- package/dist/NicePinCodeInput-SGQaHvpE.cjs +419 -0
- package/dist/NicePinCodeInput.css +1 -1
- package/dist/NiceSavedQueryPanel-7nZe46t8.cjs +596 -0
- package/dist/NiceSavedQueryPanel-BSGzs7Oc.js +6449 -0
- package/dist/NiceSavedQueryPanel-CZ5bYOe_.js +6449 -0
- package/dist/NiceSavedQueryPanel-Ce2s060j.cjs +596 -0
- package/dist/NiceTabs-BeaxZzAO.js +1636 -0
- package/dist/NiceTabs-DcbYFIWR.cjs +1 -0
- package/dist/NiceTabs-DvOmxKyQ.cjs +1 -0
- package/dist/NiceTabs-DzLHzwuA.js +1636 -0
- package/dist/NiceWindow-Bga9fOkg.js +1409 -0
- package/dist/NiceWindow-CVgkxcCz.cjs +1 -0
- package/dist/NiceWindow-CxWTj5xH.cjs +1 -0
- package/dist/NiceWindow-DeC83yfE.js +1409 -0
- package/dist/charts-BAS21jkC.js +4621 -0
- package/dist/charts-BcvKWYUl.cjs +759 -0
- package/dist/charts-DShUbWrP.cjs +759 -0
- package/dist/charts-DZvmvfhM.js +4621 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.ts +42 -45
- package/dist/charts.mjs +1 -1
- package/dist/core-B4b1BmHt.js +22177 -0
- package/dist/core-C2ZmWe_u.cjs +96 -0
- package/dist/core-CjmLbclt.cjs +96 -0
- package/dist/core-Da43q-pO.js +22094 -0
- package/dist/data-branching-CJlrg8qf.cjs +1 -0
- package/dist/data-branching-DCUwI53s.js +6121 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.d.ts +1 -38
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +206 -192
- package/dist/data.mjs +1 -1
- package/dist/devops-CXynFG3X.cjs +17 -0
- package/dist/devops-D0TfzV5B.js +7660 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.d.ts +1 -38
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +311 -393
- package/dist/editors.mjs +61 -64
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +3 -44
- package/dist/feedback.mjs +11 -10
- package/dist/index-B8wxZ8Ps.cjs +5192 -0
- package/dist/index-DlHlXz8e.js +57319 -0
- package/dist/index-Dx726U90.cjs +5192 -0
- package/dist/index-pAuGTbuB.js +57319 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2249 -11141
- package/dist/index.mjs +880 -1018
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +7 -39
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +151 -216
- package/dist/navigation.mjs +52 -46
- package/dist/no-code-B5bzduNP.cjs +332 -0
- package/dist/no-code-D8RJ7lx0.js +7064 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.d.ts +1 -38
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +13 -45
- package/dist/overlays.mjs +243 -233
- package/package.json +5 -3
package/dist/navigation.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { NiceAccessMode } from '@nice2dev/ui-core';
|
|
4
|
+
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
5
|
+
import { NiceEntityMenuDto } from '@nice2dev/ui-core';
|
|
6
|
+
import { NiceFavoriteItem } from '@nice2dev/ui-core';
|
|
7
|
+
import { NiceFormFieldProps } from '@nice2dev/ui-core';
|
|
8
|
+
import { NiceModeInfo } from '@nice2dev/ui-core';
|
|
9
|
+
import { NiceModuleInfo } from '@nice2dev/ui-core';
|
|
10
|
+
import { NiceModuleStatus } from '@nice2dev/ui-core';
|
|
11
|
+
import { NiceOnboardingAnswer } from '@nice2dev/ui-core';
|
|
12
|
+
import { NiceOnboardingQuestion } from '@nice2dev/ui-core';
|
|
13
|
+
import { NiceOrganizationProfile } from '@nice2dev/ui-core';
|
|
14
|
+
import { NiceSize } from '@nice2dev/ui-core';
|
|
15
|
+
import { NiceTabDescriptor } from '@nice2dev/ui-core';
|
|
16
|
+
import { NiceTenantInfo } from '@nice2dev/ui-core';
|
|
17
|
+
import { NiceUserMenuResponse } from '@nice2dev/ui-core';
|
|
18
|
+
import { NiceWorkspaceState } from '@nice2dev/ui-core';
|
|
3
19
|
import { RefAttributes } from 'react';
|
|
4
20
|
|
|
5
21
|
declare interface ClosedTabEntry {
|
|
@@ -48,15 +64,6 @@ declare interface NavbarBreadcrumb {
|
|
|
48
64
|
onClick?: () => void;
|
|
49
65
|
}
|
|
50
66
|
|
|
51
|
-
/**
|
|
52
|
-
* Per-component visibility & interaction level used by the access control system.
|
|
53
|
-
* - `'full'` — fully interactive (default)
|
|
54
|
-
* - `'readOnly'` — renders but cannot be edited
|
|
55
|
-
* - `'disabled'` — renders greyed-out
|
|
56
|
-
* - `'hidden'` — not rendered at all
|
|
57
|
-
*/
|
|
58
|
-
declare type NiceAccessMode = 'full' | 'readOnly' | 'disabled' | 'hidden';
|
|
59
|
-
|
|
60
67
|
export declare const NiceAccordion: default_2.FC<NiceAccordionProps>;
|
|
61
68
|
|
|
62
69
|
/** A panel definition for the {@link NiceAccordion}. */
|
|
@@ -81,6 +88,12 @@ export declare interface NiceAccordionProps extends NiceBaseProps {
|
|
|
81
88
|
multiple?: boolean;
|
|
82
89
|
/** IDs of panels that are open by default. */
|
|
83
90
|
defaultOpen?: string[];
|
|
91
|
+
/** Constrain the accordion to a specific width (px or any CSS length). When unset the accordion fills its parent (`100%`). */
|
|
92
|
+
width?: number | string;
|
|
93
|
+
/** Optional maximum width (px or any CSS length). */
|
|
94
|
+
maxWidth?: number | string;
|
|
95
|
+
/** Open / close animation duration in milliseconds. Defaults to `220`. Set to `0` to disable animation. */
|
|
96
|
+
animationDuration?: number;
|
|
84
97
|
}
|
|
85
98
|
|
|
86
99
|
export declare const NiceAppLayout: default_2.ForwardRefExoticComponent<NiceAppLayoutProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -103,28 +116,6 @@ export declare interface NiceAppLayoutProps extends NiceBaseProps {
|
|
|
103
116
|
footer?: default_2.ReactNode;
|
|
104
117
|
}
|
|
105
118
|
|
|
106
|
-
/** Base props inherited by every NiceToDev component. */
|
|
107
|
-
declare interface NiceBaseProps {
|
|
108
|
-
/** Additional CSS class name(s). */
|
|
109
|
-
className?: string;
|
|
110
|
-
/** Inline style object. */
|
|
111
|
-
style?: React.CSSProperties;
|
|
112
|
-
/** HTML `id` attribute. When omitted a stable auto-generated id is used. */
|
|
113
|
-
id?: string;
|
|
114
|
-
/** Tooltip text shown on hover. */
|
|
115
|
-
title?: string;
|
|
116
|
-
/** Test identifier for integration / e2e test selectors. */
|
|
117
|
-
'data-testid'?: string;
|
|
118
|
-
/** Controls component visibility and interaction — see {@link NiceAccessMode}. */
|
|
119
|
-
accessMode?: NiceAccessMode;
|
|
120
|
-
/**
|
|
121
|
-
* Visual presentation style override.
|
|
122
|
-
* When set, overrides the global `displayStyle` from `NiceThemeProvider`.
|
|
123
|
-
* @see NiceDisplayStyle
|
|
124
|
-
*/
|
|
125
|
-
displayStyle?: NiceDisplayStyle;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
119
|
export declare const NiceBottomNavigation: default_2.ForwardRefExoticComponent<NiceBottomNavigationProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
129
120
|
|
|
130
121
|
/** A navigation item in the {@link NiceBottomNavigation} bar. */
|
|
@@ -191,6 +182,8 @@ export declare interface NiceCardProps extends NiceBaseProps {
|
|
|
191
182
|
footer?: default_2.ReactNode;
|
|
192
183
|
/** Elevate the card on hover. */
|
|
193
184
|
hoverable?: boolean;
|
|
185
|
+
/** Render a 1px border around the card. Defaults to `true`. Set to `false` for a frameless / shadow-only look. */
|
|
186
|
+
bordered?: boolean;
|
|
194
187
|
/** Makes the entire card clickable. */
|
|
195
188
|
onClick?: () => void;
|
|
196
189
|
}
|
|
@@ -273,7 +266,9 @@ declare interface NiceConsoleStatusItem {
|
|
|
273
266
|
/** Unique key. */
|
|
274
267
|
key: string;
|
|
275
268
|
/** Rendered content. */
|
|
276
|
-
content
|
|
269
|
+
content?: React.ReactNode;
|
|
270
|
+
/** Convenience alias for `content` (string label). */
|
|
271
|
+
label?: React.ReactNode;
|
|
277
272
|
/** Side of the status bar. */
|
|
278
273
|
position?: 'left' | 'right';
|
|
279
274
|
/** Click handler. */
|
|
@@ -290,8 +285,10 @@ declare interface NiceConsoleTab {
|
|
|
290
285
|
icon?: React.ReactNode;
|
|
291
286
|
/** Whether the tab can be closed. */
|
|
292
287
|
closable?: boolean;
|
|
293
|
-
/** Content renderer. */
|
|
294
|
-
render
|
|
288
|
+
/** Content renderer (function form). */
|
|
289
|
+
render?: () => React.ReactNode;
|
|
290
|
+
/** Content renderer (node form — convenience alias for `render`). */
|
|
291
|
+
content?: React.ReactNode;
|
|
295
292
|
}
|
|
296
293
|
|
|
297
294
|
export declare const NiceContextMenu: default_2.FC<NiceContextMenuProps>;
|
|
@@ -423,13 +420,6 @@ export declare interface NiceDesktopProps extends NiceBaseProps {
|
|
|
423
420
|
children?: React.ReactNode;
|
|
424
421
|
}
|
|
425
422
|
|
|
426
|
-
/**
|
|
427
|
-
* Cross-component visual presentation style.
|
|
428
|
-
* Each style maps 1:1 to a ThemeVariantConfig preset controlling
|
|
429
|
-
* buttons, inputs, cards, badges, tabs, toggles, tooltips, tables, etc.
|
|
430
|
-
*/
|
|
431
|
-
declare type NiceDisplayStyle = 'default' | 'minimal' | 'rounded' | 'sharp' | 'glass' | 'neumorphic' | 'playful' | 'enterprise' | 'modern3d' | 'brutalist' | 'luxe' | 'pill' | 'flat' | 'editorial' | 'dashboard' | 'softCloud' | 'cosmic' | 'corporate' | 'bank' | 'government' | 'military' | 'legal' | 'medical' | 'swiss' | 'scandinavian' | 'bauhaus' | 'notebook' | 'origami' | 'watercolor' | 'monochrome' | 'paper' | 'zen' | 'terminal' | 'hacker' | 'retro8bit' | 'synthwave' | 'cyberpunk' | 'steampunk' | 'vapor' | 'neon' | 'windows95' | 'material' | 'fluent' | 'cupertino' | 'ant' | 'bootstrap' | 'chakra' | 'notion' | 'linear' | 'vercel' | 'candy' | 'bubblegum' | 'cartoon' | 'kawaii' | 'circus' | 'gaming' | 'kiddo' | 'disco' | 'clown';
|
|
432
|
-
|
|
433
423
|
export declare const NiceDock: ForwardRefExoticComponent<NiceDockProps & RefAttributes<HTMLDivElement>>;
|
|
434
424
|
|
|
435
425
|
/** An item in the {@link NiceDock} bar. */
|
|
@@ -476,6 +466,8 @@ export declare interface NiceDockProps extends NiceBaseProps {
|
|
|
476
466
|
activeKey?: string;
|
|
477
467
|
/** Called when an item is clicked. */
|
|
478
468
|
onItemClick?: (key: string) => void;
|
|
469
|
+
/** Render inline within a parent container instead of fixed to viewport. */
|
|
470
|
+
contained?: boolean;
|
|
479
471
|
}
|
|
480
472
|
|
|
481
473
|
export declare const NiceDynamicSidebar: ForwardRefExoticComponent<NiceDynamicSidebarProps & RefAttributes<HTMLElement>>;
|
|
@@ -511,52 +503,6 @@ export declare interface NiceDynamicSidebarProps extends NiceBaseProps {
|
|
|
511
503
|
footer?: React.ReactNode;
|
|
512
504
|
}
|
|
513
505
|
|
|
514
|
-
/** A single entity (list view / form view) inside a module. */
|
|
515
|
-
declare interface NiceEntityMenuDto {
|
|
516
|
-
id: string;
|
|
517
|
-
name: string;
|
|
518
|
-
label: string;
|
|
519
|
-
icon?: string;
|
|
520
|
-
listViewId?: string;
|
|
521
|
-
formViewId?: string;
|
|
522
|
-
route: string;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
declare interface NiceFavoriteItem {
|
|
526
|
-
id: string;
|
|
527
|
-
label: string;
|
|
528
|
-
icon?: string;
|
|
529
|
-
route: string;
|
|
530
|
-
entityId?: string;
|
|
531
|
-
moduleId?: string;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
/** Extended base props for form-field components (inputs, selects, etc.). */
|
|
535
|
-
declare interface NiceFormFieldProps extends NiceBaseProps {
|
|
536
|
-
/** Field label displayed above or beside the control. */
|
|
537
|
-
label?: string;
|
|
538
|
-
/** Assistive text shown below the field. */
|
|
539
|
-
helperText?: string;
|
|
540
|
-
/** Validation error message — when set the field is styled as invalid. */
|
|
541
|
-
error?: string;
|
|
542
|
-
/** Marks the field as required (adds visual indicator). */
|
|
543
|
-
required?: boolean;
|
|
544
|
-
/** Disables the field. */
|
|
545
|
-
disabled?: boolean;
|
|
546
|
-
/** Makes the field read-only. */
|
|
547
|
-
readOnly?: boolean;
|
|
548
|
-
/** Visual size of the field. */
|
|
549
|
-
size?: NiceSize;
|
|
550
|
-
/** HTML `name` attribute used in form serialization. */
|
|
551
|
-
name?: string;
|
|
552
|
-
/** When true, pressing Enter will trigger the onSubmit callback (if provided). */
|
|
553
|
-
submitOnEnter?: boolean;
|
|
554
|
-
/** Callback triggered when Enter is pressed (if submitOnEnter is true). */
|
|
555
|
-
onSubmit?: () => void;
|
|
556
|
-
/** Show a keyboard shortcuts hint icon (?) next to the label. */
|
|
557
|
-
showKeyboardHints?: boolean;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
506
|
export declare const NiceHamburgerMenu: ForwardRefExoticComponent<NiceHamburgerMenuProps & RefAttributes<HTMLDivElement>>;
|
|
561
507
|
|
|
562
508
|
export declare interface NiceHamburgerMenuProps extends NiceBaseProps {
|
|
@@ -578,6 +524,29 @@ export declare interface NiceHamburgerMenuProps extends NiceBaseProps {
|
|
|
578
524
|
footer?: React.ReactNode;
|
|
579
525
|
}
|
|
580
526
|
|
|
527
|
+
export declare const NiceHybridShell: ForwardRefExoticComponent<NiceHybridShellProps & RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
529
|
+
export declare interface NiceHybridShellProps extends NiceBaseProps {
|
|
530
|
+
/** Sidebar navigation data. */
|
|
531
|
+
menu?: NiceUserMenuResponse;
|
|
532
|
+
/** Active route. */
|
|
533
|
+
activeRoute?: string;
|
|
534
|
+
/** Tenant info shown in the top bar. */
|
|
535
|
+
tenant?: NiceTenantInfo;
|
|
536
|
+
/** Top bar content. */
|
|
537
|
+
toolbar?: React.ReactNode;
|
|
538
|
+
/** Optional right inspector panel. */
|
|
539
|
+
inspector?: React.ReactNode;
|
|
540
|
+
/** Inspector default visibility. */
|
|
541
|
+
inspectorOpen?: boolean;
|
|
542
|
+
/** Status bar. */
|
|
543
|
+
statusBar?: React.ReactNode;
|
|
544
|
+
/** Navigation handler. */
|
|
545
|
+
onNavigate?: (route: string) => void;
|
|
546
|
+
/** Main content. */
|
|
547
|
+
children?: React.ReactNode;
|
|
548
|
+
}
|
|
549
|
+
|
|
581
550
|
export declare const NiceKioskShell: ForwardRefExoticComponent<NiceKioskShellProps & RefAttributes<HTMLDivElement>>;
|
|
582
551
|
|
|
583
552
|
export declare interface NiceKioskShellProps extends NiceBaseProps {
|
|
@@ -718,14 +687,40 @@ export declare interface NiceMenuProps extends NiceBaseProps {
|
|
|
718
687
|
onItemClick?: (item: NiceMenuItem) => void;
|
|
719
688
|
}
|
|
720
689
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
690
|
+
export declare const NiceMinimalShell: ForwardRefExoticComponent<NiceMinimalShellProps & RefAttributes<HTMLDivElement>>;
|
|
691
|
+
|
|
692
|
+
export declare interface NiceMinimalShellProps extends NiceBaseProps {
|
|
693
|
+
/** Optional slim header. */
|
|
694
|
+
header?: React.ReactNode;
|
|
695
|
+
/** Optional tenant info shown in the header. */
|
|
696
|
+
tenant?: NiceTenantInfo;
|
|
697
|
+
/** Maximum content width (px or css value). */
|
|
698
|
+
maxWidth?: number | string;
|
|
699
|
+
/** Centered? Default true. */
|
|
700
|
+
centered?: boolean;
|
|
701
|
+
/** Main content. */
|
|
702
|
+
children?: React.ReactNode;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export declare const NiceModernShell: ForwardRefExoticComponent<NiceModernShellProps & RefAttributes<HTMLDivElement>>;
|
|
706
|
+
|
|
707
|
+
export declare interface NiceModernShellProps extends NiceBaseProps {
|
|
708
|
+
/** Navigation data for the rail. */
|
|
709
|
+
menu?: NiceUserMenuResponse;
|
|
710
|
+
/** Currently active route. */
|
|
711
|
+
activeRoute?: string;
|
|
712
|
+
/** Tenant info shown in the top bar. */
|
|
713
|
+
tenant?: NiceTenantInfo;
|
|
714
|
+
/** Top bar right-aligned content (user menu, notifications). */
|
|
715
|
+
topBarActions?: React.ReactNode;
|
|
716
|
+
/** Optional global search slot. */
|
|
717
|
+
globalSearch?: React.ReactNode;
|
|
718
|
+
/** Footer content. */
|
|
719
|
+
footer?: React.ReactNode;
|
|
720
|
+
/** Called when navigating. */
|
|
721
|
+
onNavigate?: (route: string) => void;
|
|
722
|
+
/** Main content. */
|
|
723
|
+
children?: React.ReactNode;
|
|
729
724
|
}
|
|
730
725
|
|
|
731
726
|
export declare const NiceModeSelector: ForwardRefExoticComponent<NiceModeSelectorProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -753,20 +748,6 @@ export declare interface NiceModeSelectorProps extends NiceBaseProps {
|
|
|
753
748
|
|
|
754
749
|
declare type NiceModuleAction = 'activate' | 'deactivate' | 'install' | 'uninstall' | 'update';
|
|
755
750
|
|
|
756
|
-
/** A module entry in the lifecycle management panel. */
|
|
757
|
-
declare interface NiceModuleInfo {
|
|
758
|
-
id: string;
|
|
759
|
-
name: string;
|
|
760
|
-
label: string;
|
|
761
|
-
description: string;
|
|
762
|
-
version: string;
|
|
763
|
-
icon?: string;
|
|
764
|
-
status: NiceModuleStatus;
|
|
765
|
-
author?: string;
|
|
766
|
-
dependencies?: string[];
|
|
767
|
-
isCore?: boolean;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
751
|
export declare const NiceModuleLifecyclePanel: ForwardRefExoticComponent<NiceModuleLifecyclePanelProps & RefAttributes<HTMLDivElement>>;
|
|
771
752
|
|
|
772
753
|
export declare interface NiceModuleLifecyclePanelProps extends NiceBaseProps {
|
|
@@ -794,42 +775,41 @@ export declare interface NiceModuleLifecyclePanelProps extends NiceBaseProps {
|
|
|
794
775
|
onModuleClick?: (module: NiceModuleInfo) => void;
|
|
795
776
|
}
|
|
796
777
|
|
|
797
|
-
/** A top-level module in the navigation sidebar. */
|
|
798
|
-
declare interface NiceModuleMenuDto {
|
|
799
|
-
id: string;
|
|
800
|
-
name: string;
|
|
801
|
-
label: string;
|
|
802
|
-
icon?: string;
|
|
803
|
-
order: number;
|
|
804
|
-
isAvailable: boolean;
|
|
805
|
-
entities: NiceEntityMenuDto[];
|
|
806
|
-
children?: NiceModuleMenuDto[];
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
declare type NiceModuleStatus = 'available' | 'installed' | 'active' | 'disabled' | 'error' | 'updating';
|
|
810
|
-
|
|
811
778
|
export declare const NiceMultiView: default_2.FC<NiceMultiViewProps>;
|
|
812
779
|
|
|
813
780
|
/** A view entry in the {@link NiceMultiView}. */
|
|
814
781
|
declare interface NiceMultiViewItem {
|
|
815
782
|
/** Unique key. */
|
|
816
783
|
key: string;
|
|
784
|
+
/** Optional label shown in tabs / header. */
|
|
785
|
+
label?: string;
|
|
786
|
+
/** Optional icon shown in tabs / header. */
|
|
787
|
+
icon?: string;
|
|
817
788
|
/** Content renderer. */
|
|
818
789
|
render: () => default_2.ReactNode;
|
|
819
790
|
}
|
|
820
791
|
|
|
821
|
-
/**
|
|
792
|
+
/** Navigation style for the NiceMultiView. */
|
|
793
|
+
declare type NiceMultiViewNav = 'tabs' | 'dots' | 'arrows' | 'none';
|
|
794
|
+
|
|
795
|
+
/** Props for the {@link NiceMultiView} component. */
|
|
822
796
|
export declare interface NiceMultiViewProps extends NiceBaseProps {
|
|
823
797
|
/** Size variant. */
|
|
824
798
|
size?: NiceSize;
|
|
825
799
|
/** View definitions. */
|
|
826
800
|
items: NiceMultiViewItem[];
|
|
827
|
-
/** Currently visible view index. */
|
|
801
|
+
/** Currently visible view index (controlled). */
|
|
828
802
|
selectedIndex?: number;
|
|
829
803
|
/** Called when the visible index changes. */
|
|
830
804
|
onSelectedIndexChange?: (index: number) => void;
|
|
831
|
-
/** Enable slide transition animation. */
|
|
805
|
+
/** Enable slide transition animation (default: true). */
|
|
832
806
|
animationEnabled?: boolean;
|
|
807
|
+
/** Navigation style (default: 'tabs'). */
|
|
808
|
+
nav?: NiceMultiViewNav;
|
|
809
|
+
/** Show prev/next arrows alongside any nav style (default: true for 'dots' / 'none'). */
|
|
810
|
+
showArrows?: boolean;
|
|
811
|
+
/** Auto-cycle interval in ms (0 = disabled). */
|
|
812
|
+
autoPlay?: number;
|
|
833
813
|
}
|
|
834
814
|
|
|
835
815
|
/**
|
|
@@ -903,25 +883,6 @@ export declare interface NiceNavigationControlsProps extends NiceBaseProps {
|
|
|
903
883
|
stopIcon?: React.ReactNode;
|
|
904
884
|
}
|
|
905
885
|
|
|
906
|
-
/** Answer submitted for an onboarding question. */
|
|
907
|
-
declare interface NiceOnboardingAnswer {
|
|
908
|
-
questionId: string;
|
|
909
|
-
answer: string;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
/** A single question in the onboarding wizard. */
|
|
913
|
-
declare interface NiceOnboardingQuestion {
|
|
914
|
-
id: string;
|
|
915
|
-
question: string;
|
|
916
|
-
questionType: 'text' | 'select' | 'multiSelect' | 'boolean' | 'number' | 'date';
|
|
917
|
-
category: string;
|
|
918
|
-
orderIndex: number;
|
|
919
|
-
isRequired: boolean;
|
|
920
|
-
options?: string[];
|
|
921
|
-
helpText?: string;
|
|
922
|
-
defaultValue?: string;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
886
|
export declare const NiceOnboardingWizard: ForwardRefExoticComponent<NiceOnboardingWizardProps & RefAttributes<HTMLDivElement>>;
|
|
926
887
|
|
|
927
888
|
export declare interface NiceOnboardingWizardProps extends NiceBaseProps {
|
|
@@ -951,41 +912,6 @@ export declare interface NiceOnboardingWizardProps extends NiceBaseProps {
|
|
|
951
912
|
logo?: React.ReactNode;
|
|
952
913
|
}
|
|
953
914
|
|
|
954
|
-
/** Full organization profile DTO (30+ fields across 8 sections). */
|
|
955
|
-
declare interface NiceOrganizationProfile {
|
|
956
|
-
id?: string;
|
|
957
|
-
name: string;
|
|
958
|
-
legalName?: string;
|
|
959
|
-
taxId?: string;
|
|
960
|
-
registrationNumber?: string;
|
|
961
|
-
industry?: string;
|
|
962
|
-
employeeCount?: number;
|
|
963
|
-
email?: string;
|
|
964
|
-
phone?: string;
|
|
965
|
-
website?: string;
|
|
966
|
-
fax?: string;
|
|
967
|
-
street?: string;
|
|
968
|
-
city?: string;
|
|
969
|
-
state?: string;
|
|
970
|
-
postalCode?: string;
|
|
971
|
-
country?: string;
|
|
972
|
-
logoUrl?: string;
|
|
973
|
-
primaryColor?: string;
|
|
974
|
-
secondaryColor?: string;
|
|
975
|
-
defaultLanguage?: string;
|
|
976
|
-
defaultCurrency?: string;
|
|
977
|
-
defaultTimezone?: string;
|
|
978
|
-
dateFormat?: string;
|
|
979
|
-
fiscalYearStart?: string;
|
|
980
|
-
vatEnabled?: boolean;
|
|
981
|
-
defaultVatRate?: number;
|
|
982
|
-
workingDays?: string[];
|
|
983
|
-
workingHoursStart?: string;
|
|
984
|
-
workingHoursEnd?: string;
|
|
985
|
-
createdAt?: string;
|
|
986
|
-
updatedAt?: string;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
915
|
export declare const NiceOrganizationProfileForm: ForwardRefExoticComponent<NiceOrganizationProfileFormProps & RefAttributes<HTMLDivElement>>;
|
|
990
916
|
|
|
991
917
|
export declare interface NiceOrganizationProfileFormProps extends NiceBaseProps {
|
|
@@ -1031,7 +957,7 @@ declare type NiceOrgProfileSection = 'basic' | 'contact' | 'address' | 'branding
|
|
|
1031
957
|
|
|
1032
958
|
export declare const NicePagination: default_2.FC<NicePaginationProps>;
|
|
1033
959
|
|
|
1034
|
-
/** Props for the {@link NicePagination} component — a page navigation bar with numbered buttons, prev/next, and
|
|
960
|
+
/** Props for the {@link NicePagination} component — a page navigation bar with numbered buttons, prev/next, ellipsis, optional first/last, jump-to-page input and page-size selector. */
|
|
1035
961
|
export declare interface NicePaginationProps extends NiceBaseProps {
|
|
1036
962
|
/** Pagination size. */
|
|
1037
963
|
size?: NiceSize;
|
|
@@ -1045,14 +971,48 @@ export declare interface NicePaginationProps extends NiceBaseProps {
|
|
|
1045
971
|
showInfo?: boolean;
|
|
1046
972
|
/** Number of page buttons shown on each side of the current page. */
|
|
1047
973
|
siblingCount?: number;
|
|
974
|
+
/** Show ⏮ / ⏭ first/last page buttons. */
|
|
975
|
+
showFirstLast?: boolean;
|
|
976
|
+
/** Show a "Go to page" number input (uses NiceNumberInput). */
|
|
977
|
+
showJumpInput?: boolean;
|
|
978
|
+
/** Label for the jump input. Defaults to "Go to". */
|
|
979
|
+
jumpInputLabel?: string;
|
|
980
|
+
/** Show a page-size selector. Provide {@link pageSizeOptions} together with {@link onPageSizeChange}. */
|
|
981
|
+
showPageSize?: boolean;
|
|
982
|
+
/** Available page sizes. */
|
|
983
|
+
pageSizeOptions?: number[];
|
|
984
|
+
/** Currently selected page size. */
|
|
985
|
+
pageSize?: number;
|
|
986
|
+
/** Called when user selects a different page size. */
|
|
987
|
+
onPageSizeChange?: (size: number) => void;
|
|
988
|
+
/** Disable all interactions. */
|
|
989
|
+
disabled?: boolean;
|
|
1048
990
|
}
|
|
1049
991
|
|
|
1050
|
-
declare
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
992
|
+
export declare const NicePwaShell: ForwardRefExoticComponent<NicePwaShellProps & RefAttributes<HTMLDivElement>>;
|
|
993
|
+
|
|
994
|
+
export declare interface NicePwaShellProps extends NiceBaseProps {
|
|
995
|
+
/** App title shown in the top bar. */
|
|
996
|
+
appTitle?: string;
|
|
997
|
+
/** Optional tenant info (replaces the title when present). */
|
|
998
|
+
tenant?: NiceTenantInfo;
|
|
999
|
+
/** Top bar trailing actions (notifications, profile). */
|
|
1000
|
+
topBarActions?: React.ReactNode;
|
|
1001
|
+
/** Bottom tab items. */
|
|
1002
|
+
tabs?: Array<{
|
|
1003
|
+
id: string;
|
|
1004
|
+
label: string;
|
|
1005
|
+
icon?: React.ReactNode;
|
|
1006
|
+
route: string;
|
|
1007
|
+
}>;
|
|
1008
|
+
/** Active tab id. */
|
|
1009
|
+
activeTabId?: string;
|
|
1010
|
+
/** Tab-change handler. */
|
|
1011
|
+
onTabChange?: (id: string, route: string) => void;
|
|
1012
|
+
/** Optional FAB. */
|
|
1013
|
+
fab?: React.ReactNode;
|
|
1014
|
+
/** Main content. */
|
|
1015
|
+
children?: React.ReactNode;
|
|
1056
1016
|
}
|
|
1057
1017
|
|
|
1058
1018
|
export declare interface NiceRibbonGroup {
|
|
@@ -1221,6 +1181,10 @@ export declare interface NiceSidebarNavProps {
|
|
|
1221
1181
|
onPreferencesChange?: (prefs: SidebarNavUserPrefs) => void;
|
|
1222
1182
|
/** Sidebar width in px (default: 264) */
|
|
1223
1183
|
width?: number;
|
|
1184
|
+
/** Collapsed (icon-only) mode */
|
|
1185
|
+
collapsed?: boolean;
|
|
1186
|
+
/** Called when collapsed state changes (for toggle button) */
|
|
1187
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
1224
1188
|
/** Extra CSS class on the root element */
|
|
1225
1189
|
className?: string;
|
|
1226
1190
|
/** Size variant */
|
|
@@ -1228,9 +1192,6 @@ export declare interface NiceSidebarNavProps {
|
|
|
1228
1192
|
'data-testid'?: string;
|
|
1229
1193
|
}
|
|
1230
1194
|
|
|
1231
|
-
/** T-shirt sizing used across all components for consistent visual density. */
|
|
1232
|
-
declare type NiceSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
1233
|
-
|
|
1234
1195
|
export declare const NiceSplitter: default_2.FC<NiceSplitterProps>;
|
|
1235
1196
|
|
|
1236
1197
|
/** A resizable pane inside the {@link NiceSplitter}. */
|
|
@@ -1291,18 +1252,6 @@ export declare interface NiceSystemTrayItem {
|
|
|
1291
1252
|
onClick?: () => void;
|
|
1292
1253
|
}
|
|
1293
1254
|
|
|
1294
|
-
/** Descriptor for a single MDI tab. */
|
|
1295
|
-
declare interface NiceTabDescriptor {
|
|
1296
|
-
id: string;
|
|
1297
|
-
route: string;
|
|
1298
|
-
title: string;
|
|
1299
|
-
icon?: string;
|
|
1300
|
-
entityId?: string;
|
|
1301
|
-
isDirty?: boolean;
|
|
1302
|
-
isPinned?: boolean;
|
|
1303
|
-
closable?: boolean;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
1255
|
/** Definition of a single tab in a {@link NiceTabs} component. */
|
|
1307
1256
|
declare interface NiceTabItem {
|
|
1308
1257
|
/** Unique tab identifier. */
|
|
@@ -1487,13 +1436,6 @@ export declare interface NiceUserMenuProps extends NiceFormFieldProps {
|
|
|
1487
1436
|
status?: 'online' | 'away' | 'busy' | 'offline';
|
|
1488
1437
|
}
|
|
1489
1438
|
|
|
1490
|
-
/** Full API response for user-scoped navigation menu. */
|
|
1491
|
-
declare interface NiceUserMenuResponse {
|
|
1492
|
-
modules: NiceModuleMenuDto[];
|
|
1493
|
-
quickActions: NiceQuickAction[];
|
|
1494
|
-
favorites: NiceFavoriteItem[];
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
1439
|
/**
|
|
1498
1440
|
* {@link NiceWizard} — Multi-step wizard/stepper with per-step validation, optional steps, and step branching.
|
|
1499
1441
|
*/
|
|
@@ -1536,13 +1478,6 @@ export declare interface NiceWizardProps {
|
|
|
1536
1478
|
id?: string;
|
|
1537
1479
|
}
|
|
1538
1480
|
|
|
1539
|
-
/** Response from workspace state API. */
|
|
1540
|
-
declare interface NiceWorkspaceState {
|
|
1541
|
-
tabs: NiceTabDescriptor[];
|
|
1542
|
-
activeTabIndex: number;
|
|
1543
|
-
layoutPreferences?: Record<string, unknown>;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
1481
|
/** Field definition for schema-driven forms */
|
|
1547
1482
|
declare interface SetupField {
|
|
1548
1483
|
id: string;
|