@nice2dev/ui 1.1.9 → 1.1.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 +74 -0
- package/README.md +17 -16
- package/dist/NiceCodeEditor-BfkH1bsZ.cjs +260 -0
- package/dist/NiceCodeEditor-CduGYggj.js +1179 -0
- package/dist/NiceColorPicker-CdUnhM-A.cjs +1 -0
- package/dist/NiceColorPicker-DpXwnDwL.js +598 -0
- package/dist/NiceConfirmDialog-B7aNRL2K.cjs +1 -0
- package/dist/NiceConfirmDialog-BdhWenrO.js +81 -0
- package/dist/NiceDataGrid-CVYEo_nv.cjs +10 -0
- package/dist/NiceDataGrid-D-rm4lu8.js +2217 -0
- package/dist/NiceDocumentViewer-BgcgLWJ3.cjs +180 -0
- package/dist/NiceDocumentViewer-sukmGhRx.js +672 -0
- package/dist/NiceForm-DVc0Xoly.js +4819 -0
- package/dist/NiceForm-qD_RKPYz.cjs +1 -0
- package/dist/NiceGantt-4UBd4uJ8.cjs +1 -0
- package/dist/NiceGantt-B_1lwEsp.js +328 -0
- package/dist/NiceHtmlEditor-Bce9Vwe1.cjs +10 -0
- package/dist/NiceHtmlEditor-CGRgcu2h.js +848 -0
- package/dist/NiceLoginForm-BTuQ0eKk.cjs +1 -0
- package/dist/NiceLoginForm-o1A-TBcp.js +736 -0
- package/dist/NiceMention-Dds9GQzk.cjs +430 -0
- package/dist/NiceMention-DlLXWddO.js +11268 -0
- package/dist/NiceModal-Dr1e3nQZ.cjs +1 -0
- package/dist/NiceModal-sihGCfDy.js +95 -0
- package/dist/NiceModuleLifecyclePanel-Du7G3-RG.js +7053 -0
- package/dist/NiceModuleLifecyclePanel-js1p7LIY.cjs +1 -0
- package/dist/NicePagination-D44waj9o.cjs +1 -0
- package/dist/NicePagination-DdxH8KMG.js +179 -0
- package/dist/NicePivotGrid-B2YHP3Z6.js +1183 -0
- package/dist/NicePivotGrid-BtVUWiud.cjs +152 -0
- package/dist/NiceSavedQueryPanel-C0A-eoYN.js +5142 -0
- package/dist/NiceSavedQueryPanel-ZrilZRtf.cjs +586 -0
- package/dist/NiceScheduler-KSzaUQxC.js +1693 -0
- package/dist/NiceScheduler-O3AwmdGG.cjs +5 -0
- package/dist/NiceSelect-BCbWtu1v.js +433 -0
- package/dist/NiceSelect-BqtiQbfD.cjs +1 -0
- package/dist/NiceWindow-BU1Ce7gS.js +1623 -0
- package/dist/NiceWindow-jjdE6vGy.cjs +1 -0
- package/dist/charts-C44vJber.cjs +768 -0
- package/dist/charts-XVlDwU0y.js +4732 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +8 -8
- package/dist/core-BxiH7vkV.cjs +1 -0
- package/dist/core-DMV6_SEE.js +795 -0
- package/dist/data-branching-oEH04O3i.js +6273 -0
- package/dist/data-branching-wmsbLNfa.cjs +1 -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 +2 -2
- package/dist/data.mjs +3 -3
- package/dist/devops-Bt6EsfPa.cjs +17 -0
- package/dist/devops-CnZQ1rU5.js +8312 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +2 -1
- package/dist/editors.mjs +7 -7
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +142 -142
- package/dist/index.d.ts +45 -26
- package/dist/index.mjs +7480 -7459
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +69 -69
- package/dist/no-code-4GtIBr6f.js +7503 -0
- package/dist/no-code-Bdwh1vyS.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.mjs +102 -102
- package/dist/pickerCommons-31hyz1gs.js +1122 -0
- package/dist/pickerCommons-BifIkPdk.cjs +1 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ import { LeakReport } from '@nice2dev/ui-core';
|
|
|
150
150
|
import { LeakSeverity } from '@nice2dev/ui-core';
|
|
151
151
|
import { LeakType } from '@nice2dev/ui-core';
|
|
152
152
|
import { LiveRegionOptions } from '@nice2dev/ui-core';
|
|
153
|
+
import { loadNiceDictionary } from '@nice2dev/ui-core';
|
|
153
154
|
import { LocalStorageAdapter } from '@nice2dev/ui-core';
|
|
154
155
|
import { logicalProps } from '@nice2dev/ui-core';
|
|
155
156
|
import { matchesShortcut } from '@nice2dev/ui-core';
|
|
@@ -229,6 +230,8 @@ import { NiceHelpIcon } from '@nice2dev/ui-core';
|
|
|
229
230
|
import { NiceHelpIconProps } from '@nice2dev/ui-core';
|
|
230
231
|
import { NiceHelpProvider } from '@nice2dev/ui-core';
|
|
231
232
|
import { NiceHelpProviderProps } from '@nice2dev/ui-core';
|
|
233
|
+
import { NiceI18nLazyProvider } from '@nice2dev/ui-core';
|
|
234
|
+
import { NiceI18nLazyProviderProps } from '@nice2dev/ui-core';
|
|
232
235
|
import { NiceI18nProvider } from '@nice2dev/ui-core';
|
|
233
236
|
import { NiceIcon } from '@nice2dev/ui-core';
|
|
234
237
|
import { NiceIconProps } from '@nice2dev/ui-core';
|
|
@@ -6372,6 +6375,8 @@ export { LiveRegionOptions }
|
|
|
6372
6375
|
*/
|
|
6373
6376
|
export declare function loadComponentDoc(componentName: string): Promise<ComponentDoc | null>;
|
|
6374
6377
|
|
|
6378
|
+
export { loadNiceDictionary }
|
|
6379
|
+
|
|
6375
6380
|
/**
|
|
6376
6381
|
* Custom labels for localization.
|
|
6377
6382
|
*/
|
|
@@ -7198,8 +7203,8 @@ export declare interface NiceAccordionItem {
|
|
|
7198
7203
|
export declare interface NiceAccordionProps extends NiceBaseProps {
|
|
7199
7204
|
/** Accordion size. */
|
|
7200
7205
|
size?: NiceSize;
|
|
7201
|
-
/** Panel definitions. */
|
|
7202
|
-
items
|
|
7206
|
+
/** Panel definitions. Optional: without them the accordion renders empty. */
|
|
7207
|
+
items?: NiceAccordionItem[];
|
|
7203
7208
|
/** Allow multiple panels to be open at once. */
|
|
7204
7209
|
multiple?: boolean;
|
|
7205
7210
|
/** IDs of panels that are open by default. */
|
|
@@ -7908,8 +7913,8 @@ export declare interface NiceAuditFieldChange {
|
|
|
7908
7913
|
export declare function NiceAuditLog(props: NiceAuditLogProps): default_2.ReactElement;
|
|
7909
7914
|
|
|
7910
7915
|
export declare interface NiceAuditLogProps {
|
|
7911
|
-
/** Audit entries */
|
|
7912
|
-
entries
|
|
7916
|
+
/** Audit entries. Optional: without them the log shows its empty state. */
|
|
7917
|
+
entries?: NiceAuditEntry[];
|
|
7913
7918
|
/** Loading state */
|
|
7914
7919
|
loading?: boolean;
|
|
7915
7920
|
/** Load more callback (for infinite scroll) */
|
|
@@ -8044,7 +8049,8 @@ export declare const NiceAutocomplete: default_2.FC<NiceAutocompleteProps>;
|
|
|
8044
8049
|
|
|
8045
8050
|
/** Props for the {@link NiceAutocomplete} component — a text input with filtered suggestion dropdown and optional multi-select. */
|
|
8046
8051
|
export declare interface NiceAutocompleteProps extends NiceFormFieldProps {
|
|
8047
|
-
|
|
8052
|
+
/** Suggestions to pick from. Optional: without them the field is a plain text input. */
|
|
8053
|
+
options?: NiceOption[];
|
|
8048
8054
|
/** Single value or array of values if multiple=true (controlled). Omit it to let the field keep its own. */
|
|
8049
8055
|
value?: string | string[];
|
|
8050
8056
|
/** Initial value when uncontrolled. */
|
|
@@ -8989,8 +8995,8 @@ export declare const NiceCascadeSelect: default_2.FC<NiceCascadeSelectProps>;
|
|
|
8989
8995
|
|
|
8990
8996
|
/** Props for {@link NiceCascadeSelect} — multi-column cascading dropdown. */
|
|
8991
8997
|
export declare interface NiceCascadeSelectProps extends NiceStandardProps {
|
|
8992
|
-
/** Top-level option tree. */
|
|
8993
|
-
options
|
|
8998
|
+
/** Top-level option tree. Optional: without it the dropdown opens empty. */
|
|
8999
|
+
options?: NiceCascadeOption[];
|
|
8994
9000
|
/** Controlled selection path (root → leaf). */
|
|
8995
9001
|
value?: string[];
|
|
8996
9002
|
/** Default selection path (uncontrolled). */
|
|
@@ -9152,10 +9158,13 @@ export declare interface NiceChatMessage {
|
|
|
9152
9158
|
|
|
9153
9159
|
/** Props for the {@link NiceChat} component — a chat / messaging widget with message bubbles and input. */
|
|
9154
9160
|
export declare interface NiceChatProps extends NiceBaseProps {
|
|
9155
|
-
/** Chat messages. */
|
|
9156
|
-
messages
|
|
9157
|
-
/**
|
|
9158
|
-
|
|
9161
|
+
/** Chat messages. Optional: without them the chat starts empty. */
|
|
9162
|
+
messages?: NiceChatMessage[];
|
|
9163
|
+
/**
|
|
9164
|
+
* Called when the user sends a message. Optional: without it the chat is a read-only
|
|
9165
|
+
* transcript — no input field is rendered.
|
|
9166
|
+
*/
|
|
9167
|
+
onSend?: (text: string) => void;
|
|
9159
9168
|
/** Input placeholder text. */
|
|
9160
9169
|
placeholder?: string;
|
|
9161
9170
|
/** Chat window title. */
|
|
@@ -10670,8 +10679,11 @@ export declare interface NiceCountdownLabels {
|
|
|
10670
10679
|
|
|
10671
10680
|
/** Props for {@link NiceCountdown} — live countdown to a target Date. */
|
|
10672
10681
|
export declare interface NiceCountdownProps extends NiceStandardProps {
|
|
10673
|
-
/**
|
|
10674
|
-
|
|
10682
|
+
/**
|
|
10683
|
+
* Target instant. Component re-renders every second until this time. Optional: without
|
|
10684
|
+
* one the countdown shows zero, runs no timer and never fires `onComplete`.
|
|
10685
|
+
*/
|
|
10686
|
+
targetDate?: Date;
|
|
10675
10687
|
/** Fires once when the countdown reaches zero or below. */
|
|
10676
10688
|
onComplete?: () => void;
|
|
10677
10689
|
/**
|
|
@@ -12151,8 +12163,8 @@ export declare const NiceDocumentVersionList: default_2.ForwardRefExoticComponen
|
|
|
12151
12163
|
|
|
12152
12164
|
/** Props for the {@link NiceDocumentVersionList} component. */
|
|
12153
12165
|
export declare interface NiceDocumentVersionListProps extends NiceFormFieldProps {
|
|
12154
|
-
/** Document versions, newest first. */
|
|
12155
|
-
versions
|
|
12166
|
+
/** Document versions, newest first. Optional: without them the list is empty. */
|
|
12167
|
+
versions?: DocumentVersion[];
|
|
12156
12168
|
/** Fires when user clicks to view a version. */
|
|
12157
12169
|
onView?: (version: DocumentVersion) => void;
|
|
12158
12170
|
/** Fires when user requests restoring a version. */
|
|
@@ -14181,6 +14193,10 @@ declare interface NiceHTMLOptions extends NiceExportOptions {
|
|
|
14181
14193
|
standalone?: boolean;
|
|
14182
14194
|
}
|
|
14183
14195
|
|
|
14196
|
+
export { NiceI18nLazyProvider }
|
|
14197
|
+
|
|
14198
|
+
export { NiceI18nLazyProviderProps }
|
|
14199
|
+
|
|
14184
14200
|
export { NiceI18nProvider }
|
|
14185
14201
|
|
|
14186
14202
|
export { NiceIcon }
|
|
@@ -15822,12 +15838,15 @@ export declare interface NiceMapMarker {
|
|
|
15822
15838
|
|
|
15823
15839
|
/** Props for the {@link NiceMap} component — an interactive map with markers and click callbacks. */
|
|
15824
15840
|
export declare interface NiceMapProps extends NiceBaseProps {
|
|
15825
|
-
/**
|
|
15826
|
-
|
|
15841
|
+
/**
|
|
15842
|
+
* Map center coordinates. Optional: without it the map opens on the markers' midpoint,
|
|
15843
|
+
* or on the whole world when there are no markers.
|
|
15844
|
+
*/
|
|
15845
|
+
center?: {
|
|
15827
15846
|
lat: number;
|
|
15828
15847
|
lng: number;
|
|
15829
15848
|
};
|
|
15830
|
-
/** Zoom level. */
|
|
15849
|
+
/** Zoom level. Defaults to 10, or 2 for the whole-world view (no `center`, no markers). */
|
|
15831
15850
|
zoom?: number;
|
|
15832
15851
|
/** Map markers. */
|
|
15833
15852
|
markers?: NiceMapMarker[];
|
|
@@ -17798,10 +17817,10 @@ export declare const NicePermissionMatrix: default_2.ForwardRefExoticComponent<N
|
|
|
17798
17817
|
|
|
17799
17818
|
/** Props for the {@link NicePermissionMatrix} component. */
|
|
17800
17819
|
export declare interface NicePermissionMatrixProps {
|
|
17801
|
-
/** Rows — roles or subjects. */
|
|
17802
|
-
roles
|
|
17803
|
-
/** Columns — permissions/actions. */
|
|
17804
|
-
actions
|
|
17820
|
+
/** Rows — roles or subjects. Optional: without them the matrix has no rows. */
|
|
17821
|
+
roles?: PermissionRole[];
|
|
17822
|
+
/** Columns — permissions/actions. Optional: without them the matrix has no columns. */
|
|
17823
|
+
actions?: PermissionAction[];
|
|
17805
17824
|
/** Controlled permission values. Key format: "roleId:actionId". */
|
|
17806
17825
|
value?: PermissionMatrixValue;
|
|
17807
17826
|
/** Fires when a permission changes. */
|
|
@@ -22782,8 +22801,8 @@ export declare const NiceTreeView: default_2.FC<NiceTreeViewProps>;
|
|
|
22782
22801
|
|
|
22783
22802
|
/** Props for the {@link NiceTreeView} component — a hierarchical tree with selection, drag-drop, lazy loading, inline editing, and context menu. */
|
|
22784
22803
|
export declare interface NiceTreeViewProps extends NiceBaseProps {
|
|
22785
|
-
/** Root nodes. */
|
|
22786
|
-
nodes
|
|
22804
|
+
/** Root nodes. Optional: without them the tree renders empty. */
|
|
22805
|
+
nodes?: NiceTreeNode[];
|
|
22787
22806
|
/**
|
|
22788
22807
|
* Optional header rendered above the (optional) search box and the tree —
|
|
22789
22808
|
* a title bar, toolbar or count. Pass any node; omit for no header.
|
|
@@ -29425,8 +29444,8 @@ export declare interface WizardStep {
|
|
|
29425
29444
|
validate?: () => string | true | undefined;
|
|
29426
29445
|
/** Whether this step is optional (can be skipped). */
|
|
29427
29446
|
optional?: boolean;
|
|
29428
|
-
/** Content renderer. */
|
|
29429
|
-
content
|
|
29447
|
+
/** Content renderer. Optional: a step without content shows only its title and description. */
|
|
29448
|
+
content?: default_2.ReactNode | ((ctx: WizardStepContext) => default_2.ReactNode);
|
|
29430
29449
|
}
|
|
29431
29450
|
|
|
29432
29451
|
/** Context provided to each step's content renderer. */
|