@nice2dev/ui 1.0.10 → 1.0.12
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/README.md +44 -0
- package/dist/NiceErrorBoundary-BZEHCXNM.cjs +1 -0
- package/dist/NiceErrorBoundary-D6jw6wwD.js +762 -0
- package/dist/NiceErrorBoundary-DT5XPTeu.cjs +1 -0
- package/dist/NiceErrorBoundary-SqPtbIxK.js +762 -0
- package/dist/NiceForm-BgR-m8T9.cjs +382 -0
- package/dist/NiceForm-CI_vgkD4.cjs +382 -0
- package/dist/NiceForm-DYKciCeR.js +5131 -0
- package/dist/NiceForm-t9zdH8kU.js +5343 -0
- package/dist/NiceForm.css +1 -1
- package/dist/NiceModal-Br3J9jOV.cjs +1 -0
- package/dist/NiceModal-DQ7u-xVm.cjs +1 -0
- package/dist/NiceModal-DVAsBzHP.js +95 -0
- package/dist/NiceModal-IkSunDgK.js +95 -0
- package/dist/NiceModuleLifecyclePanel-Cj4x54sw.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-D-xBAp1_.js +5228 -0
- package/dist/NiceModuleLifecyclePanel-D3azLDdj.js +5249 -0
- package/dist/NiceModuleLifecyclePanel-DEfAIhFf.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-CbB5P1N_.js +171 -0
- package/dist/NicePagination-DDFkSRr9.js +171 -0
- package/dist/NicePagination-DGHtXqy1.cjs +1 -0
- package/dist/NicePagination-UGjzvRUS.cjs +1 -0
- package/dist/NicePinCodeInput-BhIABBTV.cjs +419 -0
- package/dist/NicePinCodeInput-BmRO9HSQ.js +11830 -0
- package/dist/NicePinCodeInput-D91uvVsF.cjs +419 -0
- package/dist/NicePinCodeInput-jMNfPqOx.js +11866 -0
- package/dist/NicePinCodeInput.css +1 -1
- package/dist/NiceSavedQueryPanel-7nZe46t8.cjs +596 -0
- package/dist/NiceSavedQueryPanel-BSGzs7Oc.js +6449 -0
- package/dist/NiceSavedQueryPanel-BkYRk5cX.js +6441 -0
- package/dist/NiceSavedQueryPanel-CmFSi21-.cjs +596 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceTabs-BeaxZzAO.js +1636 -0
- package/dist/NiceTabs-C4H5un8J.cjs +1 -0
- package/dist/NiceTabs-DcbYFIWR.cjs +1 -0
- package/dist/NiceTabs-DlsCMth_.js +1622 -0
- package/dist/NiceWindow-BNrA5Dxq.js +1409 -0
- package/dist/NiceWindow-Bga9fOkg.js +1409 -0
- package/dist/NiceWindow-CbzJmurQ.cjs +1 -0
- package/dist/NiceWindow-CxWTj5xH.cjs +1 -0
- package/dist/charts-BcvKWYUl.cjs +759 -0
- package/dist/charts-DZvmvfhM.js +4621 -0
- package/dist/charts-F_b5-OR8.js +4621 -0
- package/dist/charts-e10jGjuF.cjs +759 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-B4b1BmHt.js +22177 -0
- package/dist/core-CSfXTICE.cjs +96 -0
- package/dist/core-CjmLbclt.cjs +96 -0
- package/dist/core-ClmvtMVZ.js +22253 -0
- package/dist/data-branching-B_9C6-hE.cjs +1 -0
- package/dist/data-branching-BmCKIXgr.js +6121 -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 +1 -1
- package/dist/devops-BL39OCVh.js +7660 -0
- package/dist/devops-CkuTC7RJ.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +92 -6
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +2 -2
- package/dist/index-BU6KCDpP.js +57872 -0
- package/dist/index-D7i7sZGV.cjs +5194 -0
- package/dist/index-DlHlXz8e.js +57319 -0
- package/dist/index-Dx726U90.cjs +5192 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +448 -20
- package/dist/index.mjs +881 -868
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.mjs +24 -24
- package/dist/no-code-Bb3QFKdm.cjs +332 -0
- package/dist/no-code-snLY0d6I.js +7065 -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 +81 -81
- package/dist/vendor-DF586kuF.js +271 -0
- package/dist/vendor-DHEorsoy.cjs +1 -0
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ import { default as default_2 } from 'react';
|
|
|
67
67
|
import { DEFAULT_VARIANT_CONFIG } from '@nice2dev/ui-core';
|
|
68
68
|
import { DENSITY_VALUES } from '@nice2dev/ui-core';
|
|
69
69
|
import { DensityVariant } from '@nice2dev/ui-core';
|
|
70
|
+
import { deprecateProp } from '@nice2dev/ui-core';
|
|
71
|
+
import { deprecateSymbol } from '@nice2dev/ui-core';
|
|
70
72
|
import { deserializeTheme } from '@nice2dev/ui-core';
|
|
71
73
|
import { Dispatch } from 'react';
|
|
72
74
|
import { DisplayPreferences } from '@nice2dev/ui-core';
|
|
@@ -167,11 +169,14 @@ import { NiceAIProvider } from '@nice2dev/ui-core';
|
|
|
167
169
|
import { NiceAnimationConfig } from '@nice2dev/ui-core';
|
|
168
170
|
import { NiceAnimationPreset } from '@nice2dev/ui-core';
|
|
169
171
|
import { NiceAnimationTiming } from '@nice2dev/ui-core';
|
|
172
|
+
import { NiceAriaProps } from '@nice2dev/ui-core';
|
|
170
173
|
import { NiceArrayDataSourceConfig } from '@nice2dev/ui-core';
|
|
171
174
|
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
172
175
|
import { NiceBreakpoint } from '@nice2dev/ui-core';
|
|
173
176
|
import { NiceBreakpoints } from '@nice2dev/ui-core';
|
|
174
177
|
import { NiceCacheConfig } from '@nice2dev/ui-core';
|
|
178
|
+
import { NiceChangeMeta } from '@nice2dev/ui-core';
|
|
179
|
+
import { NiceChangeReason } from '@nice2dev/ui-core';
|
|
175
180
|
import { NiceComponentType } from '@nice2dev/ui-core';
|
|
176
181
|
import { NiceCrossTabSyncConfig } from '@nice2dev/ui-core';
|
|
177
182
|
import { NiceCursorLoadOptions } from '@nice2dev/ui-core';
|
|
@@ -195,6 +200,8 @@ import { NiceEditorSize } from '@nice2dev/ui-core';
|
|
|
195
200
|
import { NiceEntityMenuDto } from '@nice2dev/ui-core';
|
|
196
201
|
import { NiceFavoriteItem } from '@nice2dev/ui-core';
|
|
197
202
|
import { NiceFieldState } from '@nice2dev/ui-core';
|
|
203
|
+
import { NiceFieldStatus } from '@nice2dev/ui-core';
|
|
204
|
+
import { NiceFieldStatusProps } from '@nice2dev/ui-core';
|
|
198
205
|
import { NiceFilterCondition } from '@nice2dev/ui-core';
|
|
199
206
|
import { NiceFilterGroup } from '@nice2dev/ui-core';
|
|
200
207
|
import { NiceFilterOperator } from '@nice2dev/ui-core';
|
|
@@ -229,6 +236,9 @@ import { NiceODataConfig } from '@nice2dev/ui-core';
|
|
|
229
236
|
import { NiceOfflineFirstConfig } from '@nice2dev/ui-core';
|
|
230
237
|
import { NiceOnboardingAnswer } from '@nice2dev/ui-core';
|
|
231
238
|
import { NiceOnboardingQuestion } from '@nice2dev/ui-core';
|
|
239
|
+
import { NiceOnChange } from '@nice2dev/ui-core';
|
|
240
|
+
import { NiceOnOpenChange } from '@nice2dev/ui-core';
|
|
241
|
+
import { NiceOnSelect } from '@nice2dev/ui-core';
|
|
232
242
|
import { NiceOptimisticConfig } from '@nice2dev/ui-core';
|
|
233
243
|
import { NiceOption } from '@nice2dev/ui-core';
|
|
234
244
|
import { NiceOrganizationProfile } from '@nice2dev/ui-core';
|
|
@@ -265,6 +275,8 @@ import { NiceSSEDataSource } from '@nice2dev/ui-core';
|
|
|
265
275
|
import { NiceSSEMessage } from '@nice2dev/ui-core';
|
|
266
276
|
import { NiceSSEMessageType } from '@nice2dev/ui-core';
|
|
267
277
|
import { niceStaggerDelay } from '@nice2dev/ui-core';
|
|
278
|
+
import { NiceStandardFieldProps } from '@nice2dev/ui-core';
|
|
279
|
+
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
268
280
|
import { NiceStateIO } from '@nice2dev/ui-core';
|
|
269
281
|
import { NiceStateSnapshot } from '@nice2dev/ui-core';
|
|
270
282
|
import { NiceSwipeableListItem } from '@nice2dev/ui-core';
|
|
@@ -300,6 +312,7 @@ import { NiceThemeVariantConfigurator } from '@nice2dev/ui-core';
|
|
|
300
312
|
import { NiceThemeVariantConfiguratorProps } from '@nice2dev/ui-core';
|
|
301
313
|
import { NiceThemeVariantProvider } from '@nice2dev/ui-core';
|
|
302
314
|
import { NiceThemeVariantProviderProps } from '@nice2dev/ui-core';
|
|
315
|
+
import { NiceTone } from '@nice2dev/ui-core';
|
|
303
316
|
import { NiceTouchTarget } from '@nice2dev/ui-core';
|
|
304
317
|
import { NiceTransitionState } from '@nice2dev/ui-core';
|
|
305
318
|
import { NiceTranslateFn } from '@nice2dev/ui-core';
|
|
@@ -309,6 +322,7 @@ import { NiceUserMenuResponse } from '@nice2dev/ui-core';
|
|
|
309
322
|
import { NiceUserPreferences } from '@nice2dev/ui-core';
|
|
310
323
|
import { NiceUserPreferencesProvider } from '@nice2dev/ui-core';
|
|
311
324
|
import { NiceUserPreferencesProviderProps } from '@nice2dev/ui-core';
|
|
325
|
+
import { NiceValidationStatus } from '@nice2dev/ui-core';
|
|
312
326
|
import { NiceVariant } from '@nice2dev/ui-core';
|
|
313
327
|
import { NiceVisuallyHidden } from '@nice2dev/ui-core';
|
|
314
328
|
import { NiceWebSocketConfig } from '@nice2dev/ui-core';
|
|
@@ -501,6 +515,7 @@ import { useComponentHelp } from '@nice2dev/ui-core';
|
|
|
501
515
|
import { useContainerSize } from '@nice2dev/ui-core';
|
|
502
516
|
import { UseContainerSizeResult } from '@nice2dev/ui-core';
|
|
503
517
|
import { useControlId } from '@nice2dev/ui-core';
|
|
518
|
+
import { useControllableState } from '@nice2dev/ui-core';
|
|
504
519
|
import { useControlPreferences } from '@nice2dev/ui-core';
|
|
505
520
|
import { useDarkMode } from '@nice2dev/ui-core';
|
|
506
521
|
import { UseDarkModeOptions } from '@nice2dev/ui-core';
|
|
@@ -1748,6 +1763,9 @@ export { buildAriaDescribedBy }
|
|
|
1748
1763
|
|
|
1749
1764
|
export { buildFormFieldAria }
|
|
1750
1765
|
|
|
1766
|
+
/** Build the iCalendar text body for the given events. */
|
|
1767
|
+
export declare function buildIcs(events: NiceIcsEvent[], options?: ExportIcsOptions): string;
|
|
1768
|
+
|
|
1751
1769
|
/** Bulk operation */
|
|
1752
1770
|
export declare interface BulkOperation {
|
|
1753
1771
|
id: string;
|
|
@@ -3068,6 +3086,10 @@ export { DENSITY_VALUES }
|
|
|
3068
3086
|
|
|
3069
3087
|
export { DensityVariant }
|
|
3070
3088
|
|
|
3089
|
+
export { deprecateProp }
|
|
3090
|
+
|
|
3091
|
+
export { deprecateSymbol }
|
|
3092
|
+
|
|
3071
3093
|
/** Deserialize and validate a module manifest from JSON. */
|
|
3072
3094
|
export declare function deserializeManifest(json: string): NiceModuleManifest;
|
|
3073
3095
|
|
|
@@ -3675,6 +3697,12 @@ export declare function downloadCSV<T extends Record<string, unknown>>(data: T[]
|
|
|
3675
3697
|
*/
|
|
3676
3698
|
export declare function downloadHTML<T extends Record<string, unknown>>(data: T[], columns: NiceExportColumn[], options?: NiceHTMLOptions): void;
|
|
3677
3699
|
|
|
3700
|
+
/**
|
|
3701
|
+
* Trigger a browser download of the events as an `.ics` file.
|
|
3702
|
+
* No-op outside the browser.
|
|
3703
|
+
*/
|
|
3704
|
+
export declare function downloadIcs(events: NiceIcsEvent[], filename?: string, options?: ExportIcsOptions): void;
|
|
3705
|
+
|
|
3678
3706
|
/**
|
|
3679
3707
|
* Downloads data as a JSON file.
|
|
3680
3708
|
*/
|
|
@@ -3717,6 +3745,24 @@ export declare interface DRMSettings {
|
|
|
3717
3745
|
/** DRM system */
|
|
3718
3746
|
export declare type DRMSystem = 'widevine' | 'fairplay' | 'playready' | 'clearkey';
|
|
3719
3747
|
|
|
3748
|
+
/** Dropdown horizontal alignment relative to the trigger. */
|
|
3749
|
+
export declare type DropdownAlign = 'auto' | 'left' | 'right';
|
|
3750
|
+
|
|
3751
|
+
/**
|
|
3752
|
+
* Dual-visibility props shared by NiceCountryPicker & NiceLanguagePicker.
|
|
3753
|
+
* "InValue" controls trigger rendering, "InMenu" controls dropdown options.
|
|
3754
|
+
*/
|
|
3755
|
+
export declare interface DualVisibilityProps {
|
|
3756
|
+
/** Show flag inside the trigger (selected value). Default: true */
|
|
3757
|
+
showFlagInValue?: boolean;
|
|
3758
|
+
/** Show flag inside dropdown options. Default: true */
|
|
3759
|
+
showFlagInMenu?: boolean;
|
|
3760
|
+
/** Show display text (country name / language name) inside the trigger. Default: false (compact) */
|
|
3761
|
+
showTextInValue?: boolean;
|
|
3762
|
+
/** Show display text inside dropdown options. Default: true */
|
|
3763
|
+
showTextInMenu?: boolean;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3720
3766
|
export declare const Dynamics365Connector: ConnectorDefinition;
|
|
3721
3767
|
|
|
3722
3768
|
export declare interface Dynamics365ConnectorConfig extends ConnectorConfig {
|
|
@@ -4288,6 +4334,20 @@ declare type ExportFormat_2 = 'zustand' | 'redux-toolkit' | 'jotai' | 'recoil' |
|
|
|
4288
4334
|
|
|
4289
4335
|
declare type ExportFormat_3 = 'sql' | 'json' | 'csv' | 'parquet';
|
|
4290
4336
|
|
|
4337
|
+
/**
|
|
4338
|
+
* Produce an RFC 5545 `text/calendar` Blob ready for download or attachment.
|
|
4339
|
+
*/
|
|
4340
|
+
export declare function exportIcs(events: NiceIcsEvent[], options?: ExportIcsOptions): Blob;
|
|
4341
|
+
|
|
4342
|
+
export declare interface ExportIcsOptions {
|
|
4343
|
+
/** Calendar PRODID. Default: `-//nice2dev//NiceToDev.UI//EN`. */
|
|
4344
|
+
prodId?: string;
|
|
4345
|
+
/** X-WR-CALNAME (calendar display name). */
|
|
4346
|
+
calendarName?: string;
|
|
4347
|
+
/** Method (PUBLISH, REQUEST, CANCEL). Default omitted. */
|
|
4348
|
+
method?: 'PUBLISH' | 'REQUEST' | 'CANCEL' | 'REPLY';
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4291
4351
|
export declare interface ExportProgress {
|
|
4292
4352
|
status: 'idle' | 'preparing' | 'encoding' | 'completed' | 'error';
|
|
4293
4353
|
progress: number;
|
|
@@ -4609,6 +4669,33 @@ export { filterNiceThemePacksByTag }
|
|
|
4609
4669
|
|
|
4610
4670
|
export declare type FilterType = 'brightness' | 'contrast' | 'saturation' | 'hue' | 'blur' | 'sharpen' | 'grayscale' | 'sepia' | 'invert' | 'vignette' | 'chromaKey' | 'colorCorrection';
|
|
4611
4671
|
|
|
4672
|
+
/**
|
|
4673
|
+
* Heraldically-correct flag icon rendered from `country-flag-icons` SVGs
|
|
4674
|
+
* (3:2 aspect ratio). Falls back to a coloured stripe swatch when the
|
|
4675
|
+
* ISO code is not recognised. Width is parameterised; height is always
|
|
4676
|
+
* `Math.round(size * 2 / 3)` to keep a true 3:2 ratio regardless of
|
|
4677
|
+
* caller. The SVG is inlined via `dangerouslySetInnerHTML` — content is
|
|
4678
|
+
* a static, audited string from the `country-flag-icons` package.
|
|
4679
|
+
*/
|
|
4680
|
+
export declare const FlagIcon: default_2.FC<{
|
|
4681
|
+
code: string;
|
|
4682
|
+
size?: number;
|
|
4683
|
+
className?: string;
|
|
4684
|
+
}>;
|
|
4685
|
+
|
|
4686
|
+
/**
|
|
4687
|
+
* Legacy coloured-stripe swatch using the {@link getFlagColors} commons
|
|
4688
|
+
* palette. Kept as a fallback for unknown ISO codes and for environments
|
|
4689
|
+
* that cannot ship the SVG bundle. New code should prefer {@link FlagIcon}.
|
|
4690
|
+
*
|
|
4691
|
+
* @deprecated Prefer {@link FlagIcon} for accurate, heraldically-correct flags.
|
|
4692
|
+
*/
|
|
4693
|
+
export declare const FlagSwatch: default_2.FC<{
|
|
4694
|
+
code: string;
|
|
4695
|
+
size?: number;
|
|
4696
|
+
className?: string;
|
|
4697
|
+
}>;
|
|
4698
|
+
|
|
4612
4699
|
/**
|
|
4613
4700
|
* Flat token map
|
|
4614
4701
|
*/
|
|
@@ -5583,6 +5670,30 @@ declare interface KnowledgeBaseArticle {
|
|
|
5583
5670
|
lastUpdated: string;
|
|
5584
5671
|
}
|
|
5585
5672
|
|
|
5673
|
+
export declare interface Language {
|
|
5674
|
+
/** BCP-47 language tag, e.g. 'en', 'en-US', 'pt-BR'. */
|
|
5675
|
+
code: string;
|
|
5676
|
+
/** Native language name (auto-glyph), e.g. 'Polski'. */
|
|
5677
|
+
nativeName: string;
|
|
5678
|
+
/** English language name, e.g. 'Polish'. */
|
|
5679
|
+
englishName: string;
|
|
5680
|
+
/**
|
|
5681
|
+
* ISO 3166-1 alpha-2 country code whose flag visually represents this
|
|
5682
|
+
* language entry (best-effort — language≠country, but flags are useful
|
|
5683
|
+
* affordances). Override per-row via `languages` prop.
|
|
5684
|
+
*/
|
|
5685
|
+
flagCountryCode: string;
|
|
5686
|
+
}
|
|
5687
|
+
|
|
5688
|
+
export declare type LanguageDisplayName = 'native' | 'english';
|
|
5689
|
+
|
|
5690
|
+
/**
|
|
5691
|
+
* Curated list of common languages. Region-specific entries (en-US, en-GB,
|
|
5692
|
+
* pt-BR, pt-PT) included where they meaningfully differ in usage. Add more
|
|
5693
|
+
* via the `languages` prop or PR.
|
|
5694
|
+
*/
|
|
5695
|
+
export declare const LANGUAGES: Language[];
|
|
5696
|
+
|
|
5586
5697
|
declare interface LayoutColumn {
|
|
5587
5698
|
id: string;
|
|
5588
5699
|
width: number;
|
|
@@ -7051,6 +7162,8 @@ export declare interface NiceAppManifest {
|
|
|
7051
7162
|
tenantId?: string;
|
|
7052
7163
|
}
|
|
7053
7164
|
|
|
7165
|
+
export { NiceAriaProps }
|
|
7166
|
+
|
|
7054
7167
|
export { NiceArrayDataSourceConfig }
|
|
7055
7168
|
|
|
7056
7169
|
export declare type NiceAuditAction = 'create' | 'update' | 'delete' | 'view' | 'export' | 'import' | 'login' | 'logout' | 'custom';
|
|
@@ -7853,6 +7966,10 @@ export declare interface NiceChangelogEntry {
|
|
|
7853
7966
|
changes: string[];
|
|
7854
7967
|
}
|
|
7855
7968
|
|
|
7969
|
+
export { NiceChangeMeta }
|
|
7970
|
+
|
|
7971
|
+
export { NiceChangeReason }
|
|
7972
|
+
|
|
7856
7973
|
export declare const NiceChart: default_2.FC<NiceChartProps>;
|
|
7857
7974
|
|
|
7858
7975
|
export declare const NiceChartAI: default_2.ForwardRefExoticComponent<NiceChartAIProps & default_2.RefAttributes<NiceChartAIRef>>;
|
|
@@ -8172,6 +8289,18 @@ declare interface NiceCodeEditorAIRef extends NiceCodeEditorRef {
|
|
|
8172
8289
|
dismissCompletion: () => void;
|
|
8173
8290
|
}
|
|
8174
8291
|
|
|
8292
|
+
declare interface NiceCodeEditorLspConfig {
|
|
8293
|
+
/**
|
|
8294
|
+
* Language Server Protocol bridge configuration.
|
|
8295
|
+
* url: WebSocket endpoint of the LSP server
|
|
8296
|
+
* language: Monaco language id
|
|
8297
|
+
* initOptions: Optional initialization options for the LSP
|
|
8298
|
+
*/
|
|
8299
|
+
url: string;
|
|
8300
|
+
language: string;
|
|
8301
|
+
initOptions?: any;
|
|
8302
|
+
}
|
|
8303
|
+
|
|
8175
8304
|
export declare interface NiceCodeEditorOptions {
|
|
8176
8305
|
/** Read only mode */
|
|
8177
8306
|
readOnly?: boolean;
|
|
@@ -8286,6 +8415,10 @@ export declare interface NiceCodeEditorProps {
|
|
|
8286
8415
|
showToolbar?: boolean;
|
|
8287
8416
|
/** Show status bar at bottom */
|
|
8288
8417
|
showStatusBar?: boolean;
|
|
8418
|
+
/**
|
|
8419
|
+
* LSP bridge configuration. If provided, connects Monaco to the LSP server for enhanced language features.
|
|
8420
|
+
*/
|
|
8421
|
+
lsp?: NiceCodeEditorLspConfig;
|
|
8289
8422
|
/** Additional CSS class */
|
|
8290
8423
|
className?: string;
|
|
8291
8424
|
/** Test ID */
|
|
@@ -9150,7 +9283,7 @@ declare type NiceCountdownFormat =
|
|
|
9150
9283
|
|
|
9151
9284
|
export declare const NiceCountryPicker: default_2.FC<NiceCountryPickerProps>;
|
|
9152
9285
|
|
|
9153
|
-
export declare interface NiceCountryPickerProps extends NiceFormFieldProps {
|
|
9286
|
+
export declare interface NiceCountryPickerProps extends NiceFormFieldProps, DualVisibilityProps {
|
|
9154
9287
|
/** Selected country code */
|
|
9155
9288
|
value?: string;
|
|
9156
9289
|
/** Default country code (uncontrolled) */
|
|
@@ -9163,10 +9296,36 @@ export declare interface NiceCountryPickerProps extends NiceFormFieldProps {
|
|
|
9163
9296
|
showSearch?: boolean;
|
|
9164
9297
|
/** Search placeholder */
|
|
9165
9298
|
searchPlaceholder?: string;
|
|
9166
|
-
/**
|
|
9299
|
+
/**
|
|
9300
|
+
* @deprecated Use `showDialCodeInValue` and `showDialCodeInMenu` for fine-grained control.
|
|
9301
|
+
* When set, applies to both trigger and menu (legacy behaviour).
|
|
9302
|
+
*/
|
|
9167
9303
|
showDialCode?: boolean;
|
|
9168
|
-
/**
|
|
9304
|
+
/**
|
|
9305
|
+
* @deprecated Use `showFlagInValue` and `showFlagInMenu` for fine-grained control.
|
|
9306
|
+
* When set, applies to both trigger and menu (legacy behaviour).
|
|
9307
|
+
*/
|
|
9169
9308
|
showFlag?: boolean;
|
|
9309
|
+
/** Show dial code in trigger (selected value). Default: false (compact) */
|
|
9310
|
+
showDialCodeInValue?: boolean;
|
|
9311
|
+
/** Show dial code in dropdown options. Default: true */
|
|
9312
|
+
showDialCodeInMenu?: boolean;
|
|
9313
|
+
/** Show ISO 3166-1 alpha-2 code (e.g. "PL") in trigger. Default: false. */
|
|
9314
|
+
showCodeInValue?: boolean;
|
|
9315
|
+
/** Show ISO 3166-1 alpha-2 code (e.g. "PL") in dropdown options. Default: false. */
|
|
9316
|
+
showCodeInMenu?: boolean;
|
|
9317
|
+
/**
|
|
9318
|
+
* Compact mode: minimal trigger width (flag + chevron only) and smart
|
|
9319
|
+
* dropdown alignment. Equivalent to setting all `*InValue` props to
|
|
9320
|
+
* false (except flag) and ignoring `controlWidth`. Default: false.
|
|
9321
|
+
*/
|
|
9322
|
+
compact?: boolean;
|
|
9323
|
+
/**
|
|
9324
|
+
* Dropdown horizontal alignment relative to the trigger. `'auto'` picks
|
|
9325
|
+
* the side with more available viewport space (right-edge preferred).
|
|
9326
|
+
* Default: `'auto'` in compact mode, `'left'` otherwise.
|
|
9327
|
+
*/
|
|
9328
|
+
dropdownAlign?: DropdownAlign;
|
|
9170
9329
|
/** Filter to only show certain countries */
|
|
9171
9330
|
countries?: string[];
|
|
9172
9331
|
/** Priority countries shown at top */
|
|
@@ -9431,7 +9590,7 @@ export declare interface NiceDataDiffViewerProps extends NiceBaseProps {
|
|
|
9431
9590
|
onSelectRecord?: (table: string, recordId: string) => void;
|
|
9432
9591
|
}
|
|
9433
9592
|
|
|
9434
|
-
export declare function NiceDataGrid<T extends Record<string, any>>({ columns, data: dataProp, keyField, dataSource, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, pagination, pageSize: initPageSize, page: controlledPage, onPageChange, totalRows, searchable, searchPlaceholder, virtualScroll, rowHeight, groupBy, groupRender, onCellEdit, editMode, formItems, formColumns, editFormTitle, formProps, onRowEdit, onRowAdd, onRowDelete, bulkActions, onBulkDelete, exportCsv, exportFilename, detailRow, expandedRowKeys: controlledExpandedRows, onExpandedRowChange, columnReorder, onColumnReorder, columnResize, rowDraggable, onRowReorder, striped, compact, loading: loadingProp, emptyText, toolbar, onRowClick, pinnedTopKeys, pinnedBottomKeys, colSpan: colSpanFn, showStatusBar, contextMenuItems, onContextMenuAction, printFriendly, keyboardNavigation, focusedCell: controlledFocusedCell, onFocusedCellChange, cellRangeSelection, selectedCellRange: controlledCellRange, onCellRangeChange, clipboard, clipboardFormat, onBeforeCopy, onCopy, onPaste, quickFilters, activeQuickFilters: controlledQuickFilters, onQuickFilterChange, columnGroups, stateStorageKey, initialState, onStateChange, flashRowKeys, flashDuration, autoFitColumns, showColumnStats, rowIndicator, frozenRows, className, style, accessMode, id, displayStyle, }: NiceDataGridProps<T>): JSX_2.Element | null;
|
|
9593
|
+
export declare function NiceDataGrid<T extends Record<string, any>>({ columns, data: dataProp, keyField, dataSource, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, pagination, pageSize: initPageSize, page: controlledPage, onPageChange, totalRows, searchable, searchPlaceholder, virtualScroll, rowHeight, groupBy, groupRender, onCellEdit, editMode, formItems, formColumns, editFormTitle, formProps, onRowEdit, onRowAdd, onRowDelete: _onRowDelete, bulkActions, onBulkDelete, exportCsv, exportFilename, detailRow, expandedRowKeys: controlledExpandedRows, onExpandedRowChange, columnReorder: _columnReorder, onColumnReorder: _onColumnReorder, columnResize, rowDraggable, onRowReorder, striped, compact, loading: loadingProp, emptyText, toolbar, onRowClick, pinnedTopKeys, pinnedBottomKeys, colSpan: colSpanFn, showStatusBar, contextMenuItems, onContextMenuAction, printFriendly, keyboardNavigation, focusedCell: controlledFocusedCell, onFocusedCellChange, cellRangeSelection, selectedCellRange: controlledCellRange, onCellRangeChange, clipboard, clipboardFormat, onBeforeCopy, onCopy, onPaste, quickFilters, activeQuickFilters: controlledQuickFilters, onQuickFilterChange, columnGroups: _columnGroups, stateStorageKey, initialState, onStateChange, flashRowKeys, flashDuration, autoFitColumns: _autoFitColumns, showColumnStats: _showColumnStats, rowIndicator, frozenRows: _frozenRows, className, style, accessMode, id, displayStyle, }: NiceDataGridProps<T>): JSX_2.Element | null;
|
|
9435
9594
|
|
|
9436
9595
|
export declare namespace NiceDataGrid {
|
|
9437
9596
|
var displayName: string;
|
|
@@ -9462,7 +9621,7 @@ export declare interface NiceDataGridAIProps<T extends Record<string, unknown>>
|
|
|
9462
9621
|
exampleQueries?: string[];
|
|
9463
9622
|
}
|
|
9464
9623
|
|
|
9465
|
-
declare interface NiceDataGridAIRef<
|
|
9624
|
+
declare interface NiceDataGridAIRef<_T> {
|
|
9466
9625
|
/** Apply natural language filter */
|
|
9467
9626
|
applyNLFilter: (query: string) => Promise<void>;
|
|
9468
9627
|
/** Clear AI filters */
|
|
@@ -9780,6 +9939,16 @@ export declare interface NiceDatePickerProps extends NiceFormFieldProps {
|
|
|
9780
9939
|
* to the browser locale (`navigator.language`).
|
|
9781
9940
|
*/
|
|
9782
9941
|
displayLocale?: string;
|
|
9942
|
+
/**
|
|
9943
|
+
* Enable date-shortcut keys (default: `true`):
|
|
9944
|
+
* - `T` — set to today
|
|
9945
|
+
* - `+`/`=` then `1` (or any digit) — today + N days
|
|
9946
|
+
* - `-` then `1` — today - N days
|
|
9947
|
+
* - `+`/`-` then `M` — ± 1 month
|
|
9948
|
+
* - `+`/`-` then `Y` — ± 1 year
|
|
9949
|
+
* Only fires for date / datetime / month presets.
|
|
9950
|
+
*/
|
|
9951
|
+
keyboardShortcuts?: boolean;
|
|
9783
9952
|
}
|
|
9784
9953
|
|
|
9785
9954
|
export declare const NiceDateRangeBox: default_2.FC<NiceDateRangeBoxProps>;
|
|
@@ -10141,7 +10310,7 @@ export declare interface NiceDocumentApprovalFlowProps extends NiceFormFieldProp
|
|
|
10141
10310
|
locale?: string;
|
|
10142
10311
|
}
|
|
10143
10312
|
|
|
10144
|
-
export declare function NiceDocumentationViewer({ doc, component, renderPreview, defaultTab, sections, compact, enableCodeEdit, className, style, }: NiceDocumentationViewerProps): JSX_2.Element;
|
|
10313
|
+
export declare function NiceDocumentationViewer({ doc, component: _component, renderPreview: _renderPreview, defaultTab, sections, compact, enableCodeEdit, className, style, }: NiceDocumentationViewerProps): JSX_2.Element;
|
|
10145
10314
|
|
|
10146
10315
|
export declare interface NiceDocumentationViewerProps {
|
|
10147
10316
|
/** Component documentation data */
|
|
@@ -10987,6 +11156,10 @@ export declare interface NiceFieldExpectation {
|
|
|
10987
11156
|
|
|
10988
11157
|
export { NiceFieldState }
|
|
10989
11158
|
|
|
11159
|
+
export { NiceFieldStatus }
|
|
11160
|
+
|
|
11161
|
+
export { NiceFieldStatusProps }
|
|
11162
|
+
|
|
10990
11163
|
/** A custom column in the {@link NiceFileManager} detail view. */
|
|
10991
11164
|
export declare interface NiceFileColumnDef {
|
|
10992
11165
|
/** Column key. */
|
|
@@ -12127,6 +12300,31 @@ export { NiceIconResolver }
|
|
|
12127
12300
|
|
|
12128
12301
|
export { NiceIconSize }
|
|
12129
12302
|
|
|
12303
|
+
/**
|
|
12304
|
+
* exportIcs — produce an RFC 5545 (`text/calendar`) Blob from a generic
|
|
12305
|
+
* event list. Useful for "Add to calendar" exports from any view that has
|
|
12306
|
+
* date+time data (NiceCalendar, NiceGantt, etc.).
|
|
12307
|
+
*
|
|
12308
|
+
* @example
|
|
12309
|
+
* const blob = exportIcs([{ uid: '1', summary: 'Meeting', start: new Date(), end: new Date(Date.now()+3600e3) }]);
|
|
12310
|
+
*/
|
|
12311
|
+
export declare interface NiceIcsEvent {
|
|
12312
|
+
uid: string;
|
|
12313
|
+
summary: string;
|
|
12314
|
+
start: Date;
|
|
12315
|
+
end?: Date;
|
|
12316
|
+
description?: string;
|
|
12317
|
+
location?: string;
|
|
12318
|
+
url?: string;
|
|
12319
|
+
/** RFC 5545 STATUS. */
|
|
12320
|
+
status?: 'TENTATIVE' | 'CONFIRMED' | 'CANCELLED';
|
|
12321
|
+
/** RRULE (e.g. `FREQ=WEEKLY;BYDAY=MO,WE`). */
|
|
12322
|
+
rrule?: string;
|
|
12323
|
+
/** All-day event — emits VALUE=DATE properties. */
|
|
12324
|
+
allDay?: boolean;
|
|
12325
|
+
categories?: string[];
|
|
12326
|
+
}
|
|
12327
|
+
|
|
12130
12328
|
declare type NiceImageAnnotationType = 'text' | 'rect' | 'circle' | 'line' | 'arrow';
|
|
12131
12329
|
|
|
12132
12330
|
export declare const NiceImageAnnotator: default_2.ForwardRefExoticComponent<NiceImageAnnotatorProps & default_2.RefAttributes<NiceImageAnnotatorRef>>;
|
|
@@ -12605,6 +12803,52 @@ export declare interface NiceKnobProps extends Omit<NiceFormFieldProps, 'size' |
|
|
|
12605
12803
|
isLabelCentered?: boolean;
|
|
12606
12804
|
}
|
|
12607
12805
|
|
|
12806
|
+
export declare const NiceLanguagePicker: default_2.FC<NiceLanguagePickerProps>;
|
|
12807
|
+
|
|
12808
|
+
export declare interface NiceLanguagePickerProps extends NiceFormFieldProps, DualVisibilityProps {
|
|
12809
|
+
/** Selected language code (BCP-47) */
|
|
12810
|
+
value?: string;
|
|
12811
|
+
/** Default selected code (uncontrolled) */
|
|
12812
|
+
defaultValue?: string;
|
|
12813
|
+
/** Callback when selection changes */
|
|
12814
|
+
onChange?: (language: Language | null) => void;
|
|
12815
|
+
/** Placeholder text shown when nothing selected (ignored in compact mode) */
|
|
12816
|
+
placeholder?: string;
|
|
12817
|
+
/** Enable search */
|
|
12818
|
+
showSearch?: boolean;
|
|
12819
|
+
/** Search placeholder */
|
|
12820
|
+
searchPlaceholder?: string;
|
|
12821
|
+
/** Show BCP-47 code in trigger. Default: false (compact) */
|
|
12822
|
+
showCodeInValue?: boolean;
|
|
12823
|
+
/** Show BCP-47 code in dropdown options. Default: true */
|
|
12824
|
+
showCodeInMenu?: boolean;
|
|
12825
|
+
/** Which name to render. Default: 'native' (best-practice for language switchers). */
|
|
12826
|
+
displayName?: LanguageDisplayName;
|
|
12827
|
+
/**
|
|
12828
|
+
* Compact mode: minimal trigger width (flag + chevron only) and smart
|
|
12829
|
+
* dropdown alignment. Default: false.
|
|
12830
|
+
*/
|
|
12831
|
+
compact?: boolean;
|
|
12832
|
+
/**
|
|
12833
|
+
* Dropdown horizontal alignment relative to trigger. `'auto'` picks the
|
|
12834
|
+
* side with more available viewport space. Default: `'auto'` in compact
|
|
12835
|
+
* mode, `'left'` otherwise.
|
|
12836
|
+
*/
|
|
12837
|
+
dropdownAlign?: DropdownAlign;
|
|
12838
|
+
/** Custom language list (overrides `LANGUAGES`). */
|
|
12839
|
+
languages?: Language[];
|
|
12840
|
+
/** Filter the default list to only show certain codes. */
|
|
12841
|
+
allowedCodes?: string[];
|
|
12842
|
+
/** Priority codes shown at the top. */
|
|
12843
|
+
priorityCodes?: string[];
|
|
12844
|
+
/** Allow clearing selection */
|
|
12845
|
+
allowClear?: boolean;
|
|
12846
|
+
/** Size variant */
|
|
12847
|
+
size?: NiceSize;
|
|
12848
|
+
/** Test ID */
|
|
12849
|
+
'data-testid'?: string;
|
|
12850
|
+
}
|
|
12851
|
+
|
|
12608
12852
|
/**
|
|
12609
12853
|
* {@link NiceLeaderboard} — Ranked list of players/entities with scores, deltas, avatars, and stat columns.
|
|
12610
12854
|
*/
|
|
@@ -13056,7 +13300,7 @@ export declare const NiceLockButton: default_2.FC<NiceLockButtonProps>;
|
|
|
13056
13300
|
|
|
13057
13301
|
export declare interface NiceLockButtonProps extends NiceBaseProps {
|
|
13058
13302
|
isLocked: boolean;
|
|
13059
|
-
|
|
13303
|
+
onLockChange: (locked: boolean) => void;
|
|
13060
13304
|
requireConfirm?: boolean;
|
|
13061
13305
|
confirmCode?: string;
|
|
13062
13306
|
size?: NiceSize;
|
|
@@ -13176,7 +13420,7 @@ export declare interface NiceLowCodeStudioProps {
|
|
|
13176
13420
|
className?: string;
|
|
13177
13421
|
}
|
|
13178
13422
|
|
|
13179
|
-
export declare function NiceMAM({ assets: initialAssets, folders: initialFolders, collections: initialCollections, people: initialPeople, currentUser, uploadEndpoint, enableAITagging, enableFaceRecognition, maxUploadSize, allowedTypes, onUpload, onDelete, onAnalyze, onDetectFaces, onSelectionChange, onPreview, renderAssetCard, className, style, children, ...baseProps }: NiceMAMProps): JSX_2.Element;
|
|
13423
|
+
export declare function NiceMAM({ assets: initialAssets, folders: initialFolders, collections: initialCollections, people: initialPeople, currentUser, uploadEndpoint: _uploadEndpoint, enableAITagging, enableFaceRecognition, maxUploadSize: _maxUploadSize, allowedTypes: _allowedTypes, onUpload: _onUpload, onDelete, onAnalyze, onDetectFaces, onSelectionChange: _onSelectionChange, onPreview, renderAssetCard, className, style, children, ...baseProps }: NiceMAMProps): JSX_2.Element;
|
|
13180
13424
|
|
|
13181
13425
|
export declare interface NiceMAMProps extends NiceBaseProps {
|
|
13182
13426
|
/** Initial assets */
|
|
@@ -14296,6 +14540,12 @@ export declare interface NiceOnboardingWizardProps extends NiceBaseProps {
|
|
|
14296
14540
|
logo?: React.ReactNode;
|
|
14297
14541
|
}
|
|
14298
14542
|
|
|
14543
|
+
export { NiceOnChange }
|
|
14544
|
+
|
|
14545
|
+
export { NiceOnOpenChange }
|
|
14546
|
+
|
|
14547
|
+
export { NiceOnSelect }
|
|
14548
|
+
|
|
14299
14549
|
export { NiceOptimisticConfig }
|
|
14300
14550
|
|
|
14301
14551
|
export { NiceOption }
|
|
@@ -14679,10 +14929,26 @@ export declare interface NicePickListProps<T = unknown> extends NiceBaseProps {
|
|
|
14679
14929
|
keyField?: string;
|
|
14680
14930
|
/** Label extractor */
|
|
14681
14931
|
labelField?: string;
|
|
14682
|
-
/** Custom item renderer */
|
|
14683
|
-
renderItem?: (item: T) => default_2.ReactNode;
|
|
14684
|
-
/** Enable filtering/search */
|
|
14932
|
+
/** Custom item renderer (receives item + side hint). */
|
|
14933
|
+
renderItem?: (item: T, side?: 'left' | 'right') => default_2.ReactNode;
|
|
14934
|
+
/** Enable filtering/search (legacy, equivalent to `searchable: 'both'`). */
|
|
14685
14935
|
filterable?: boolean;
|
|
14936
|
+
/**
|
|
14937
|
+
* Enable a search input on either or both columns.
|
|
14938
|
+
* `true` is equivalent to `'both'`. Default: `false`.
|
|
14939
|
+
*/
|
|
14940
|
+
searchable?: boolean | 'left' | 'right' | 'both';
|
|
14941
|
+
/** Optional grouping function. When provided, items are grouped under non-interactive headers. */
|
|
14942
|
+
groupBy?: (item: T) => string;
|
|
14943
|
+
/** Allow drag-and-drop reordering inside the right column. */
|
|
14944
|
+
sortable?: boolean;
|
|
14945
|
+
/** Show “move all” shortcut buttons (default: true). */
|
|
14946
|
+
bulkActions?: boolean | {
|
|
14947
|
+
moveAll?: boolean;
|
|
14948
|
+
removeAll?: boolean;
|
|
14949
|
+
};
|
|
14950
|
+
/** Maximum number of items allowed on the right side. Extra moves are blocked. */
|
|
14951
|
+
maxRight?: number;
|
|
14686
14952
|
/** Source list header */
|
|
14687
14953
|
sourceHeader?: default_2.ReactNode;
|
|
14688
14954
|
/** Target list header */
|
|
@@ -16759,7 +17025,7 @@ export declare interface NiceSliderProps extends Omit<NiceFormFieldProps, 'label
|
|
|
16759
17025
|
showTickLabels?: boolean;
|
|
16760
17026
|
}
|
|
16761
17027
|
|
|
16762
|
-
export declare function NiceSortable<T extends Record<string, unknown>>({ items, keyField, onReorder, renderItem, direction, handle, group, disabled, className, style, }: NiceSortableProps<T>): JSX_2.Element;
|
|
17028
|
+
export declare function NiceSortable<T extends Record<string, unknown>>({ items, keyField, onReorder, renderItem, direction, handle, group: _group, disabled, className, style, }: NiceSortableProps<T>): JSX_2.Element;
|
|
16763
17029
|
|
|
16764
17030
|
export declare namespace NiceSortable {
|
|
16765
17031
|
var displayName: string;
|
|
@@ -17019,6 +17285,10 @@ export { NiceSSEMessageType }
|
|
|
17019
17285
|
|
|
17020
17286
|
export { niceStaggerDelay }
|
|
17021
17287
|
|
|
17288
|
+
export { NiceStandardFieldProps }
|
|
17289
|
+
|
|
17290
|
+
export { NiceStandardProps }
|
|
17291
|
+
|
|
17022
17292
|
/** A menu entry in the {@link NiceDesktop} start menu. */
|
|
17023
17293
|
export declare interface NiceStartMenuItem {
|
|
17024
17294
|
/** Unique key. */
|
|
@@ -17187,7 +17457,7 @@ export declare interface NiceStoryMeta {
|
|
|
17187
17457
|
parameters?: Record<string, unknown>;
|
|
17188
17458
|
}
|
|
17189
17459
|
|
|
17190
|
-
export declare function NiceStreamDashboard({ platforms: initialPlatforms, scenes: initialScenes, config: initialConfig, enableWebRTC, rtmpServerUrl, maxChatMessages, autoRecord, recordingPath, onStreamStart, onStreamStop, onChatMessage, onAlert, onAnalyticsUpdate, onVODCreated, renderPreview, renderChatMessage, className, style, children, ...baseProps }: NiceStreamDashboardProps): JSX_2.Element;
|
|
17460
|
+
export declare function NiceStreamDashboard({ platforms: initialPlatforms, scenes: initialScenes, config: initialConfig, enableWebRTC: _enableWebRTC, rtmpServerUrl: _rtmpServerUrl, maxChatMessages: _maxChatMessages, autoRecord, recordingPath: _recordingPath, onStreamStart, onStreamStop, onChatMessage: _onChatMessage, onAlert, onAnalyticsUpdate: _onAnalyticsUpdate, onVODCreated, renderPreview, renderChatMessage, className, style, children, ...baseProps }: NiceStreamDashboardProps): JSX_2.Element;
|
|
17191
17461
|
|
|
17192
17462
|
export declare interface NiceStreamDashboardProps extends NiceBaseProps {
|
|
17193
17463
|
/** Initial platform connections */
|
|
@@ -17734,6 +18004,29 @@ export { niceThemeDark }
|
|
|
17734
18004
|
|
|
17735
18005
|
export { NiceThemeDarkMode }
|
|
17736
18006
|
|
|
18007
|
+
/**
|
|
18008
|
+
* Descriptor of a single theme available in the switcher. The `preview`
|
|
18009
|
+
* colours are used to render the mini page-thumbnail in the trigger and
|
|
18010
|
+
* dropdown options.
|
|
18011
|
+
*/
|
|
18012
|
+
export declare interface NiceThemeDescriptor {
|
|
18013
|
+
/** Stable theme id, e.g. `'omniverk-light'`, `'cyberpunk-neon'`. */
|
|
18014
|
+
id: string;
|
|
18015
|
+
/** Display name (English / fallback), e.g. `'Omniverk Light'`. */
|
|
18016
|
+
name: string;
|
|
18017
|
+
/** Native or translated name (optional). When present, takes precedence over `name`. */
|
|
18018
|
+
nativeName?: string;
|
|
18019
|
+
/** Colour swatches used to draw the preview thumbnail. */
|
|
18020
|
+
preview: ThemePreviewColors;
|
|
18021
|
+
/**
|
|
18022
|
+
* Whether the theme is built-in / read-only. Edit affordances are hidden
|
|
18023
|
+
* for read-only themes unless `edit.allowEditBuiltIn === true`.
|
|
18024
|
+
*/
|
|
18025
|
+
readOnly?: boolean;
|
|
18026
|
+
/** Free-form metadata (author, tags, etc.). Not interpreted by the picker. */
|
|
18027
|
+
meta?: Record<string, unknown>;
|
|
18028
|
+
}
|
|
18029
|
+
|
|
17737
18030
|
export declare const NiceThemeDesigner: ForwardRefExoticComponent<NiceThemeBuilderProps & RefAttributes<HTMLDivElement>>;
|
|
17738
18031
|
|
|
17739
18032
|
export declare type NiceThemeDesignerProps = NiceThemeBuilderProps;
|
|
@@ -17754,6 +18047,107 @@ export { NiceThemePackId }
|
|
|
17754
18047
|
|
|
17755
18048
|
export { NiceThemePackMeta }
|
|
17756
18049
|
|
|
18050
|
+
export declare const NiceThemePicker: default_2.FC<NiceThemePickerProps>;
|
|
18051
|
+
|
|
18052
|
+
/**
|
|
18053
|
+
* Configuration for the optional add/edit-theme affordances. When `enabled`
|
|
18054
|
+
* is true the dropdown gains:
|
|
18055
|
+
* - a sticky `[+] Add theme` button at the bottom,
|
|
18056
|
+
* - a pencil icon next to each editable theme option.
|
|
18057
|
+
*
|
|
18058
|
+
* Both actions navigate to a configured editor route and pass back a
|
|
18059
|
+
* `returnUrl` so the editor can return the user to where they came from.
|
|
18060
|
+
*/
|
|
18061
|
+
export declare interface NiceThemePickerEditConfig {
|
|
18062
|
+
enabled: boolean;
|
|
18063
|
+
/** Base editor route, e.g. `'/settings/themes'`. */
|
|
18064
|
+
editorRoute: string;
|
|
18065
|
+
/**
|
|
18066
|
+
* Builds the full URL to navigate to. Defaults to a query-string scheme:
|
|
18067
|
+
* edit: `${editorRoute}?themeId=${id}&returnUrl=${encoded}`
|
|
18068
|
+
* add: `${editorRoute}/new?returnUrl=${encoded}`
|
|
18069
|
+
*/
|
|
18070
|
+
buildUrl?: (params: {
|
|
18071
|
+
themeId?: string;
|
|
18072
|
+
returnUrl: string;
|
|
18073
|
+
}) => string;
|
|
18074
|
+
/**
|
|
18075
|
+
* Performs the navigation. Defaults to `window.location.href = url`.
|
|
18076
|
+
* Consumers using React Router / Next.js can pass `router.push` etc.
|
|
18077
|
+
*/
|
|
18078
|
+
navigate?: (url: string) => void;
|
|
18079
|
+
/** Override for the return URL. Default: `window.location.href`. */
|
|
18080
|
+
returnUrl?: string;
|
|
18081
|
+
/** Label for the add button. Default i18n key: `themePicker.addTheme`. */
|
|
18082
|
+
addLabel?: string;
|
|
18083
|
+
/** ARIA label for the per-row pencil icon. Default i18n key: `themePicker.editTheme`. */
|
|
18084
|
+
editLabel?: string;
|
|
18085
|
+
/** Allow the pencil icon to appear on read-only / built-in themes. Default: false. */
|
|
18086
|
+
allowEditBuiltIn?: boolean;
|
|
18087
|
+
/**
|
|
18088
|
+
* "Add new theme" button rendered at the TOP of the dropdown.
|
|
18089
|
+
* When omitted the add button falls back to the legacy bottom position
|
|
18090
|
+
* (driven by `enabled`) for backward compatibility.
|
|
18091
|
+
*/
|
|
18092
|
+
addNew?: {
|
|
18093
|
+
/** Whether to show the add-new button. Default: false. */
|
|
18094
|
+
enabled?: boolean;
|
|
18095
|
+
/** Button label. Overrides `addLabel`. */
|
|
18096
|
+
label?: string;
|
|
18097
|
+
};
|
|
18098
|
+
}
|
|
18099
|
+
|
|
18100
|
+
export declare interface NiceThemePickerProps extends NiceFormFieldProps, DualVisibilityProps {
|
|
18101
|
+
/** Selected theme id */
|
|
18102
|
+
value?: string;
|
|
18103
|
+
/** Default theme id (uncontrolled) */
|
|
18104
|
+
defaultValue?: string;
|
|
18105
|
+
/** Callback when selection changes */
|
|
18106
|
+
onChange?: (theme: NiceThemeDescriptor | null) => void;
|
|
18107
|
+
/** Available themes (required — picker is dumb on its own). */
|
|
18108
|
+
themes: NiceThemeDescriptor[];
|
|
18109
|
+
/** Placeholder shown when nothing is selected (ignored in compact mode). */
|
|
18110
|
+
placeholder?: string;
|
|
18111
|
+
/** Enable search */
|
|
18112
|
+
showSearch?: boolean;
|
|
18113
|
+
/** Search placeholder */
|
|
18114
|
+
searchPlaceholder?: string;
|
|
18115
|
+
/** Show preview thumbnail in trigger. Default: true */
|
|
18116
|
+
showPreviewInValue?: boolean;
|
|
18117
|
+
/** Show preview thumbnail in dropdown options. Default: true */
|
|
18118
|
+
showPreviewInMenu?: boolean;
|
|
18119
|
+
/** Show theme id in trigger. Default: false */
|
|
18120
|
+
showIdInValue?: boolean;
|
|
18121
|
+
/** Show theme id in dropdown options. Default: false */
|
|
18122
|
+
showIdInMenu?: boolean;
|
|
18123
|
+
/**
|
|
18124
|
+
* Compact mode: minimal trigger width (preview + chevron only) with smart
|
|
18125
|
+
* dropdown alignment. Default: false.
|
|
18126
|
+
*/
|
|
18127
|
+
compact?: boolean;
|
|
18128
|
+
/** Dropdown horizontal alignment. Default: `'auto'` in compact, `'left'` otherwise. */
|
|
18129
|
+
dropdownAlign?: DropdownAlign;
|
|
18130
|
+
/**
|
|
18131
|
+
* Preview thumbnail size (px) — width. Height is derived (~75% of width).
|
|
18132
|
+
* Defaults: 24 in compact, 32 in full mode.
|
|
18133
|
+
*/
|
|
18134
|
+
previewSize?: number;
|
|
18135
|
+
/**
|
|
18136
|
+
* Preview rendering style:
|
|
18137
|
+
* - `'page'` (default): a small "page" thumbnail with header/text/sidebar.
|
|
18138
|
+
* - `'swatch'`: a flag-like vertical colour stripe (cheaper, less informative).
|
|
18139
|
+
*/
|
|
18140
|
+
previewShape?: 'page' | 'swatch';
|
|
18141
|
+
/** Add/edit affordances. Hidden when `enabled` is false (default). */
|
|
18142
|
+
edit?: NiceThemePickerEditConfig;
|
|
18143
|
+
/** Allow clearing selection. Default: false (a theme is usually mandatory). */
|
|
18144
|
+
allowClear?: boolean;
|
|
18145
|
+
/** Size variant */
|
|
18146
|
+
size?: NiceSize;
|
|
18147
|
+
/** Test ID */
|
|
18148
|
+
'data-testid'?: string;
|
|
18149
|
+
}
|
|
18150
|
+
|
|
17757
18151
|
export declare const NiceThemePreview: default_2.ForwardRefExoticComponent<NiceThemePreviewProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
17758
18152
|
|
|
17759
18153
|
export declare interface NiceThemePreviewProps extends NiceBaseProps {
|
|
@@ -17794,7 +18188,7 @@ export { NiceThemeSpacing }
|
|
|
17794
18188
|
* <NiceThemeSwitcher themes={myThemes} storageMode="traceless" />
|
|
17795
18189
|
* ```
|
|
17796
18190
|
*/
|
|
17797
|
-
export declare function NiceThemeSwitcher({ variant, themes, size, showLabels, onThemeChange, defaultTheme, showSystemOption, className, style, disabled, label, hideLabel, cookies, localStorage, sessionStorage, storageMode, storageKey, }: NiceThemeSwitcherProps): default_2.ReactElement;
|
|
18191
|
+
export declare function NiceThemeSwitcher({ variant, themes, size, showLabels, onThemeChange, defaultTheme, showSystemOption, className, style, disabled, label, hideLabel, cookies: _cookies, localStorage: _localStorage, sessionStorage, storageMode: _storageMode, storageKey, }: NiceThemeSwitcherProps): default_2.ReactElement;
|
|
17798
18192
|
|
|
17799
18193
|
/**
|
|
17800
18194
|
* Props for NiceThemeSwitcher.
|
|
@@ -18018,6 +18412,8 @@ export declare interface NiceToggleProps extends NiceBaseProps {
|
|
|
18018
18412
|
controlWidth?: string | number;
|
|
18019
18413
|
}
|
|
18020
18414
|
|
|
18415
|
+
export { NiceTone }
|
|
18416
|
+
|
|
18021
18417
|
export declare const NiceToolbar: default_2.FC<NiceToolbarProps>;
|
|
18022
18418
|
|
|
18023
18419
|
/** A toolbar entry in the {@link NiceToolbar}. */
|
|
@@ -18074,7 +18470,7 @@ export declare interface NiceTopologyData {
|
|
|
18074
18470
|
|
|
18075
18471
|
export { NiceTouchTarget }
|
|
18076
18472
|
|
|
18077
|
-
export declare function NiceTranscoder({ jobs: initialJobs, profiles: initialProfiles, presets: customPresets, maxConcurrent, autoStart, defaultOutputDir, showThumbnails, enableDragDrop, onJobStatusChange, onJobComplete, onJobError, onProgress, renderJobItem, className, style, children, ...baseProps }: NiceTranscoderProps): JSX_2.Element;
|
|
18473
|
+
export declare function NiceTranscoder({ jobs: initialJobs, profiles: initialProfiles, presets: customPresets, maxConcurrent, autoStart, defaultOutputDir, showThumbnails, enableDragDrop, onJobStatusChange, onJobComplete: _onJobComplete, onJobError: _onJobError, onProgress: _onProgress, renderJobItem, className, style, children, ...baseProps }: NiceTranscoderProps): JSX_2.Element;
|
|
18078
18474
|
|
|
18079
18475
|
export declare interface NiceTranscoderProps extends NiceBaseProps {
|
|
18080
18476
|
/** Initial jobs */
|
|
@@ -18492,7 +18888,7 @@ export declare class NiceUndoManager<T = unknown> {
|
|
|
18492
18888
|
/** Total entries count */
|
|
18493
18889
|
get size(): number;
|
|
18494
18890
|
/** Start a batch group — all pushes until endBatch share a groupId */
|
|
18495
|
-
startBatch(
|
|
18891
|
+
startBatch(_label?: string): string;
|
|
18496
18892
|
/** End the current batch group */
|
|
18497
18893
|
endBatch(): void;
|
|
18498
18894
|
/** Execute a function within a batch */
|
|
@@ -18705,6 +19101,8 @@ export declare type NiceValidationRule = {
|
|
|
18705
19101
|
validationFunction?: (value: unknown) => boolean | string;
|
|
18706
19102
|
};
|
|
18707
19103
|
|
|
19104
|
+
export { NiceValidationStatus }
|
|
19105
|
+
|
|
18708
19106
|
export declare const NiceValidationSummary: default_2.FC<NiceValidationSummaryProps>;
|
|
18709
19107
|
|
|
18710
19108
|
/** Props for the {@link NiceValidationSummary} component — displays a list of validation errors from the parent {@link NiceValidationGroup}. */
|
|
@@ -18800,7 +19198,7 @@ export declare interface NiceVectorMapProps extends NiceBaseProps {
|
|
|
18800
19198
|
showTooltip?: boolean;
|
|
18801
19199
|
}
|
|
18802
19200
|
|
|
18803
|
-
export declare function NiceVideoAnnotator({ video: initialVideo, annotations: initialAnnotations, markers: initialMarkers, transcription: initialTranscription, speakers: initialSpeakers, currentUser, enableSpatialAnnotations, enableTranscription, enableComments, enableReview, autoSaveInterval, onAnnotationsChange, onMarkersChange, onTranscriptionChange, onAutoSave, onFrameExtracted, renderAnnotation, editorSize, className, style, children, ...baseProps }: NiceVideoAnnotatorProps): JSX_2.Element;
|
|
19201
|
+
export declare function NiceVideoAnnotator({ video: initialVideo, annotations: initialAnnotations, markers: initialMarkers, transcription: initialTranscription, speakers: initialSpeakers, currentUser, enableSpatialAnnotations, enableTranscription, enableComments, enableReview: _enableReview, autoSaveInterval: _autoSaveInterval, onAnnotationsChange, onMarkersChange, onTranscriptionChange: _onTranscriptionChange, onAutoSave: _onAutoSave, onFrameExtracted, renderAnnotation, editorSize, className, style, children, ...baseProps }: NiceVideoAnnotatorProps): JSX_2.Element;
|
|
18804
19202
|
|
|
18805
19203
|
export declare interface NiceVideoAnnotatorProps extends NiceBaseProps {
|
|
18806
19204
|
/** Editor layout size (minimal / compact / standard / fullscreen). */
|
|
@@ -22904,6 +23302,34 @@ export { themePink }
|
|
|
22904
23302
|
*/
|
|
22905
23303
|
export declare type ThemePreset = 'light' | 'dark' | 'system' | 'custom';
|
|
22906
23304
|
|
|
23305
|
+
/** Colours used to render a theme preview thumbnail. All optional except `background`. */
|
|
23306
|
+
export declare interface ThemePreviewColors {
|
|
23307
|
+
/** Main page background. */
|
|
23308
|
+
background: string;
|
|
23309
|
+
/** Sidebar / secondary surface (left bar in 'page' shape). */
|
|
23310
|
+
backgroundSecondary?: string;
|
|
23311
|
+
/** Accent / header bar colour. */
|
|
23312
|
+
primary: string;
|
|
23313
|
+
/** Body text colour (rendered as a thin line). */
|
|
23314
|
+
textColor: string;
|
|
23315
|
+
/** Optional border (defaults to a translucent overlay). */
|
|
23316
|
+
border?: string;
|
|
23317
|
+
}
|
|
23318
|
+
|
|
23319
|
+
/**
|
|
23320
|
+
* Renders a tiny "page" or "swatch" thumbnail of a theme.
|
|
23321
|
+
*
|
|
23322
|
+
* Pure CSS — a few absolutely-positioned `<span>`s — so it is cheap to
|
|
23323
|
+
* render in long lists. Width is parameterised; height is ~75% of width
|
|
23324
|
+
* so the thumbnail keeps a page-like aspect ratio.
|
|
23325
|
+
*/
|
|
23326
|
+
export declare const ThemePreviewSwatch: default_2.FC<{
|
|
23327
|
+
colors: ThemePreviewColors;
|
|
23328
|
+
size?: number;
|
|
23329
|
+
shape?: 'page' | 'swatch';
|
|
23330
|
+
className?: string;
|
|
23331
|
+
}>;
|
|
23332
|
+
|
|
22907
23333
|
export { themeRealEstate }
|
|
22908
23334
|
|
|
22909
23335
|
export { themeRetrowave }
|
|
@@ -23330,7 +23756,7 @@ export declare interface TracelessStorageProps {
|
|
|
23330
23756
|
/**
|
|
23331
23757
|
* Shows warning when functionality is degraded due to privacy settings.
|
|
23332
23758
|
*/
|
|
23333
|
-
export declare function TracelessWarning({ useCase, className, message: customMessage, variant, dismissible, onDismiss, }: TracelessWarningProps): default_2.ReactElement | null;
|
|
23759
|
+
export declare function TracelessWarning({ useCase: _useCase, className, message: customMessage, variant, dismissible, onDismiss, }: TracelessWarningProps): default_2.ReactElement | null;
|
|
23334
23760
|
|
|
23335
23761
|
/**
|
|
23336
23762
|
* Props for TracelessWarning.
|
|
@@ -23736,6 +24162,8 @@ export { UseContainerSizeResult }
|
|
|
23736
24162
|
|
|
23737
24163
|
export { useControlId }
|
|
23738
24164
|
|
|
24165
|
+
export { useControllableState }
|
|
24166
|
+
|
|
23739
24167
|
export { useControlPreferences }
|
|
23740
24168
|
|
|
23741
24169
|
/**
|
|
@@ -23826,7 +24254,7 @@ export declare function useGridStatePersistence({ storageKey, initialState, onSt
|
|
|
23826
24254
|
setState: Dispatch<SetStateAction<GridPersistentState>>;
|
|
23827
24255
|
clearState: () => void;
|
|
23828
24256
|
degraded: boolean;
|
|
23829
|
-
effectiveStorageType: "local" | "
|
|
24257
|
+
effectiveStorageType: "local" | "session" | "memory";
|
|
23830
24258
|
policy: ITracelessPolicy;
|
|
23831
24259
|
};
|
|
23832
24260
|
|
|
@@ -23874,7 +24302,7 @@ export { useNiceDataSource }
|
|
|
23874
24302
|
|
|
23875
24303
|
export { UseNiceDataSourceOptions }
|
|
23876
24304
|
|
|
23877
|
-
export declare function useNiceDataSourceTimeout<T = unknown>({ url, timeout, slowThreshold, onTimeout, retryOnTimeout, toastOnTimeout, fetcher, }: UseNiceDataSourceTimeoutOptions): UseNiceDataSourceTimeoutResult<T>;
|
|
24305
|
+
export declare function useNiceDataSourceTimeout<T = unknown>({ url, timeout, slowThreshold, onTimeout, retryOnTimeout: _retryOnTimeout, toastOnTimeout, fetcher, }: UseNiceDataSourceTimeoutOptions): UseNiceDataSourceTimeoutResult<T>;
|
|
23878
24306
|
|
|
23879
24307
|
export declare interface UseNiceDataSourceTimeoutOptions {
|
|
23880
24308
|
url: string;
|