@nice2dev/ui 1.3.6 → 1.3.8
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 +54 -0
- package/dist/NiceCodeEditor-B5YtKZOe.js +1222 -0
- package/dist/NiceCodeEditor-D0QZW88r.cjs +268 -0
- package/dist/NiceColorPicker-Bzvei7D6.cjs +1 -0
- package/dist/NiceColorPicker-DzzJhSXT.js +552 -0
- package/dist/NiceDataGrid-BSaBBoNr.js +2267 -0
- package/dist/NiceDataGrid-C_E6zIGS.cjs +10 -0
- package/dist/NiceForm-D2P6XuaT.cjs +1 -0
- package/dist/NiceForm-_kaB4Ikt.js +5017 -0
- package/dist/NiceHtmlEditor-CBCJdjmy.cjs +10 -0
- package/dist/NiceHtmlEditor-DfkdSxL3.js +901 -0
- package/dist/NiceLoginForm-BFvbroGJ.js +820 -0
- package/dist/NiceLoginForm-FGf32sro.cjs +1 -0
- package/dist/NiceMention-CctjYriS.cjs +430 -0
- package/dist/NiceMention-umOghLCf.js +11653 -0
- package/dist/NiceModal-BRVzjuUN.cjs +1 -0
- package/dist/NiceModal-CU9FqzIH.js +83 -0
- package/dist/NiceModuleLifecyclePanel-DQT_forg.js +7404 -0
- package/dist/NiceModuleLifecyclePanel-DtOlPChV.cjs +1 -0
- package/dist/NicePagination-CK4ZJgu4.cjs +1 -0
- package/dist/NicePagination-flHgG-FT.js +200 -0
- package/dist/NicePivotGrid-99ZeQ9j6.js +1180 -0
- package/dist/NicePivotGrid-CpsBxUhq.cjs +152 -0
- package/dist/NiceSavedQueryPanel-Br1LQR7u.js +5311 -0
- package/dist/NiceSavedQueryPanel-C4SU6W22.cjs +586 -0
- package/dist/NiceScheduler-CeYqH0Ux.cjs +5 -0
- package/dist/NiceScheduler-yTpVRxfe.js +1710 -0
- package/dist/NiceSelect-C3NqDYwR.js +495 -0
- package/dist/NiceSelect-CTwSAb8G.cjs +1 -0
- package/dist/charts-B0tHOpJ7.cjs +768 -0
- package/dist/charts-C3u-VyJj.js +5019 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-lazy-Bglo0hFt.cjs +1 -0
- package/dist/core-lazy-CRBgQkQl.js +351 -0
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +3 -3
- package/dist/devops-Bzp3ZqZ3.cjs +18 -0
- package/dist/devops-fLElpPvD.js +9128 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +5 -0
- package/dist/editors.mjs +7 -7
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +251 -251
- package/dist/index.d.ts +76 -9
- package/dist/index.mjs +15550 -15248
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +18 -18
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +42 -3
- package/dist/navigation.mjs +2 -2
- package/dist/no-code-Bt7SWzsN.js +8318 -0
- package/dist/no-code-DnT061qn.cjs +331 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -9372,7 +9372,7 @@ export declare const NiceCheckbox: default_2.ForwardRefExoticComponent<NiceCheck
|
|
|
9372
9372
|
* multi-selection. Keeps controlled / uncontrolled state in sync via
|
|
9373
9373
|
* the standard pattern.
|
|
9374
9374
|
*/
|
|
9375
|
-
export declare function NiceCheckboxGroup<T = string>({ value, defaultValue, options, disabled, direction, name, onChange, className, style, }: NiceCheckboxGroupProps<T>): default_2.ReactElement;
|
|
9375
|
+
export declare function NiceCheckboxGroup<T = string>({ value, defaultValue, options, disabled, direction, name, onChange, className, style, testId, 'data-testid': dataTestId, }: NiceCheckboxGroupProps<T>): default_2.ReactElement;
|
|
9376
9376
|
|
|
9377
9377
|
export declare namespace NiceCheckboxGroup {
|
|
9378
9378
|
var displayName: string;
|
|
@@ -15203,6 +15203,11 @@ export declare interface NiceLanguagePickerProps extends NiceFormFieldProps, Dua
|
|
|
15203
15203
|
allowClear?: boolean;
|
|
15204
15204
|
/** Size variant */
|
|
15205
15205
|
size?: NiceSize;
|
|
15206
|
+
/**
|
|
15207
|
+
* Accessible name of the trigger (1.3.8). Default: none while a `label` or the language's name
|
|
15208
|
+
* shows; otherwise (compact: a flag only) the translated "Language: {name}".
|
|
15209
|
+
*/
|
|
15210
|
+
'aria-label'?: string;
|
|
15206
15211
|
/** Test ID */
|
|
15207
15212
|
'data-testid'?: string;
|
|
15208
15213
|
}
|
|
@@ -17347,6 +17352,18 @@ export declare interface NiceNavShellProps {
|
|
|
17347
17352
|
colorStyle?: 'bar' | 'fill';
|
|
17348
17353
|
/** Extra props for the built-in NiceSidebarNav (rendered from `sidebarData`), e.g. `levelColors`. */
|
|
17349
17354
|
sidebarProps?: Partial<NiceSidebarNavProps>;
|
|
17355
|
+
/**
|
|
17356
|
+
* The sidebar's preferences when the host keeps them itself, e.g. on its server (1.3.8) — the
|
|
17357
|
+
* same object it passes to its own `NiceSidebarNav` as `preferences`. The preference pages
|
|
17358
|
+
* (`preferences/*`) then read and change these instead of the library's localStorage, the shell
|
|
17359
|
+
* takes `pageMode` / `colorStyle` from them, and the pages' routes are merged in even with your
|
|
17360
|
+
* own `sidebar` slot. The Order page lists the items of `sidebarData`; without it (which also
|
|
17361
|
+
* brings a NiceTopNav when there is no `topNav`), render `NiceSidebarPrefsOrder data={…}` under
|
|
17362
|
+
* a route of your own. The pages' route keys have no leading slash (`preferences/general`).
|
|
17363
|
+
*/
|
|
17364
|
+
sidebarPreferences?: Partial<SidebarNavUserPrefs>;
|
|
17365
|
+
/** Receives the preference pages' changes, like `NiceSidebarNav.onPreferencesChange` (1.3.8). */
|
|
17366
|
+
onSidebarPreferencesChange?: SidebarNavPrefsChangeHandler;
|
|
17350
17367
|
/**
|
|
17351
17368
|
* Resolves a route key to a URL. Forwarded to the auto-rendered
|
|
17352
17369
|
* `NiceSidebarNav` so its right-click context menu can show "Open in
|
|
@@ -17356,8 +17373,8 @@ export declare interface NiceNavShellProps {
|
|
|
17356
17373
|
/**
|
|
17357
17374
|
* Auto-merge the built-in sidebar preference page routes
|
|
17358
17375
|
* (`preferences/general`, `/display`, `/order`, `/hidden`, `/reset`) into
|
|
17359
|
-
* `routes`. Defaults to `true` when `sidebarData` is provided.
|
|
17360
|
-
* routes with matching keys still win.
|
|
17376
|
+
* `routes`. Defaults to `true` when `sidebarData` or `sidebarPreferences` (1.3.8) is provided.
|
|
17377
|
+
* User-defined routes with matching keys still win.
|
|
17361
17378
|
*/
|
|
17362
17379
|
includeSidebarPreferenceRoutes?: boolean;
|
|
17363
17380
|
/**
|
|
@@ -18194,6 +18211,11 @@ export declare interface NicePasswordRule {
|
|
|
18194
18211
|
label: string;
|
|
18195
18212
|
/** Test function — returns true if the rule is satisfied */
|
|
18196
18213
|
test: (value: string) => boolean;
|
|
18214
|
+
/**
|
|
18215
|
+
* A must-have rule (1.3.8): while it fails, the strength is `weak` however many other rules
|
|
18216
|
+
* pass — a 6-character password under a 12-character policy no longer reads "Good".
|
|
18217
|
+
*/
|
|
18218
|
+
required?: boolean;
|
|
18197
18219
|
}
|
|
18198
18220
|
|
|
18199
18221
|
/**
|
|
@@ -20763,8 +20785,13 @@ export declare interface NiceSetupWizardProps {
|
|
|
20763
20785
|
steps?: SetupWizardStep[];
|
|
20764
20786
|
/** Initial values */
|
|
20765
20787
|
initialValues?: Record<string, unknown>;
|
|
20766
|
-
/** Controlled current step */
|
|
20788
|
+
/** Controlled current step — a new value moves the wizard to that step (1.3.8: not only on mount). */
|
|
20767
20789
|
activeStep?: string;
|
|
20790
|
+
/**
|
|
20791
|
+
* Steps to show as completed (a check mark), whether or not they were visited in this mount
|
|
20792
|
+
* (1.3.8) — e.g. the steps a server already has done.
|
|
20793
|
+
*/
|
|
20794
|
+
completedSteps?: string[];
|
|
20768
20795
|
/** Layout variant */
|
|
20769
20796
|
layout?: SetupWizardLayout;
|
|
20770
20797
|
/** Size */
|
|
@@ -21012,8 +21039,13 @@ export declare interface NiceSidebarNavProps {
|
|
|
21012
21039
|
* loading from localStorage. Changes still fire onPreferencesChange.
|
|
21013
21040
|
*/
|
|
21014
21041
|
preferences?: Partial<SidebarNavUserPrefs>;
|
|
21015
|
-
/**
|
|
21016
|
-
|
|
21042
|
+
/**
|
|
21043
|
+
* Called whenever preferences change (for server-side persistence). `prefs` is the whole object,
|
|
21044
|
+
* including the defaults of fields the user never touched (e.g. `pageMode: 'auto'`) — a host
|
|
21045
|
+
* that stores it whole keeps those defaults as if chosen. `changed` (1.3.8) holds only the fields
|
|
21046
|
+
* this change set: store that to keep the user's choices alone.
|
|
21047
|
+
*/
|
|
21048
|
+
onPreferencesChange?: SidebarNavPrefsChangeHandler;
|
|
21017
21049
|
/** Sidebar width in px (default: 264) */
|
|
21018
21050
|
width?: number;
|
|
21019
21051
|
/** Sidebar width in px when collapsed/icon-only (default: 56). */
|
|
@@ -22692,6 +22724,11 @@ export declare interface NiceThemePickerProps extends NiceFormFieldProps, DualVi
|
|
|
22692
22724
|
allowClear?: boolean;
|
|
22693
22725
|
/** Size variant */
|
|
22694
22726
|
size?: NiceSize;
|
|
22727
|
+
/**
|
|
22728
|
+
* Accessible name of the trigger (1.3.8). Default: none while a `label` or the theme's name
|
|
22729
|
+
* shows; otherwise (compact: a swatch only) the translated "Theme: {name}".
|
|
22730
|
+
*/
|
|
22731
|
+
'aria-label'?: string;
|
|
22695
22732
|
/** Test ID */
|
|
22696
22733
|
'data-testid'?: string;
|
|
22697
22734
|
}
|
|
@@ -27097,6 +27134,18 @@ export declare interface SetupWizardStep {
|
|
|
27097
27134
|
badge?: default_2.ReactNode;
|
|
27098
27135
|
/** Estimated time to complete (displayed to user) */
|
|
27099
27136
|
estimatedTime?: string;
|
|
27137
|
+
/**
|
|
27138
|
+
* `false`: no way back from this step (1.3.8) — no Back button, and `goPrev` / LB do nothing
|
|
27139
|
+
* (e.g. while an installation runs and after it). Default: `true`.
|
|
27140
|
+
*/
|
|
27141
|
+
canGoBack?: boolean;
|
|
27142
|
+
/**
|
|
27143
|
+
* `false`: the main button is disabled on this step, without a validation message, and
|
|
27144
|
+
* `goNext` / RB do nothing (1.3.8) — e.g. until a restarted server is back. Default: `true`.
|
|
27145
|
+
*/
|
|
27146
|
+
canProceed?: boolean;
|
|
27147
|
+
/** Label of the main button on this step only (1.3.8); wins over `labels.next` / `labels.finish`. */
|
|
27148
|
+
nextLabel?: string;
|
|
27100
27149
|
}
|
|
27101
27150
|
|
|
27102
27151
|
export { SHADOW_DARK_MODE_VALUES }
|
|
@@ -27261,6 +27310,13 @@ export declare interface SidebarNavPathEntry {
|
|
|
27261
27310
|
icon?: ReactNode;
|
|
27262
27311
|
}
|
|
27263
27312
|
|
|
27313
|
+
/**
|
|
27314
|
+
* Receives the sidebar preferences after a change: `prefs` whole (defaults included), `changed`
|
|
27315
|
+
* only the fields this change set (1.3.8) — the part to store when the host keeps the user's
|
|
27316
|
+
* choices on its server.
|
|
27317
|
+
*/
|
|
27318
|
+
export declare type SidebarNavPrefsChangeHandler = (prefs: SidebarNavUserPrefs, changed: Partial<SidebarNavUserPrefs>) => void;
|
|
27319
|
+
|
|
27264
27320
|
/** A role grouping modules */
|
|
27265
27321
|
export declare interface SidebarNavRole extends SidebarNavBranchColors {
|
|
27266
27322
|
id: string;
|
|
@@ -27414,7 +27470,7 @@ export declare interface SidebarPrefsCategory {
|
|
|
27414
27470
|
icon: ReactNode;
|
|
27415
27471
|
}
|
|
27416
27472
|
|
|
27417
|
-
export declare function SidebarPrefsScopeProvider({ userId, data, tabsAvailable, children, }: SidebarPrefsScopeProviderProps): default_2.ReactElement;
|
|
27473
|
+
export declare function SidebarPrefsScopeProvider({ userId, data, tabsAvailable, preferences, onPreferencesChange, children, }: SidebarPrefsScopeProviderProps): default_2.ReactElement;
|
|
27418
27474
|
|
|
27419
27475
|
export declare interface SidebarPrefsScopeProviderProps extends SidebarPrefsScopeValue {
|
|
27420
27476
|
children: ReactNode;
|
|
@@ -27433,6 +27489,14 @@ export declare interface SidebarPrefsScopeValue {
|
|
|
27433
27489
|
* page then lets the user choose how pages open. Unset outside a NavShell.
|
|
27434
27490
|
*/
|
|
27435
27491
|
tabsAvailable?: boolean;
|
|
27492
|
+
/**
|
|
27493
|
+
* The preferences of a sidebar the host keeps itself (1.3.8) — e.g. on its server, passed to its
|
|
27494
|
+
* own `NiceSidebarNav` as `preferences`. The pages read and change these instead of the
|
|
27495
|
+
* library's localStorage; without them they keep to localStorage.
|
|
27496
|
+
*/
|
|
27497
|
+
preferences?: Partial<SidebarNavUserPrefs>;
|
|
27498
|
+
/** Receives the pages' changes, like `NiceSidebarNav.onPreferencesChange` (1.3.8). */
|
|
27499
|
+
onPreferencesChange?: SidebarNavPrefsChangeHandler;
|
|
27436
27500
|
}
|
|
27437
27501
|
|
|
27438
27502
|
export declare interface SignalRLiveChartSourceConfig {
|
|
@@ -29772,9 +29836,12 @@ export { useShowAt }
|
|
|
29772
29836
|
|
|
29773
29837
|
export { UseShowAtOptions }
|
|
29774
29838
|
|
|
29775
|
-
export declare function useSidebarNavPrefs(userId: string | undefined, initialEnableModeIcons: boolean | undefined, controlledPrefs: Partial<SidebarNavUserPrefs> | undefined, onChange:
|
|
29839
|
+
export declare function useSidebarNavPrefs(userId: string | undefined, initialEnableModeIcons: boolean | undefined, controlledPrefs: Partial<SidebarNavUserPrefs> | undefined, onChange: SidebarNavPrefsChangeHandler | undefined): [SidebarNavUserPrefs, SidebarNavHelpers];
|
|
29776
29840
|
|
|
29777
|
-
/**
|
|
29841
|
+
/**
|
|
29842
|
+
* Resolve `{ userId, data, tabsAvailable, preferences, onPreferencesChange }` for a preferences
|
|
29843
|
+
* page. Props override context.
|
|
29844
|
+
*/
|
|
29778
29845
|
export declare function useSidebarPrefsScope(overrides?: SidebarPrefsScopeValue): SidebarPrefsScopeValue;
|
|
29779
29846
|
|
|
29780
29847
|
/** Shortcut for pages that only need the userId. */
|