@nice2dev/ui 1.0.27 → 1.0.28

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.
Files changed (60) hide show
  1. package/dist/NiceConfirmDialog-BIppqGad.cjs +1 -0
  2. package/dist/NiceConfirmDialog-CtU3paTe.js +81 -0
  3. package/dist/NiceErrorBoundary-C9ZPRC1v.js +695 -0
  4. package/dist/NiceErrorBoundary-CNsxmX4m.cjs +1 -0
  5. package/dist/NiceForm-B-T7vnE3.cjs +382 -0
  6. package/dist/NiceForm-D3g3RUzs.js +5000 -0
  7. package/dist/NiceModal-Cg7Eo9Ig.cjs +1 -0
  8. package/dist/NiceModal-IHk7nfRN.js +95 -0
  9. package/dist/NiceModuleLifecyclePanel-BY3zmDOy.js +7582 -0
  10. package/dist/NiceModuleLifecyclePanel-Dmbqjb8W.cjs +1 -0
  11. package/dist/NicePagination-BAxcfqnE.js +171 -0
  12. package/dist/NicePagination-BONcK9M_.cjs +1 -0
  13. package/dist/NicePinCodeInput-BDR2PSoo.cjs +696 -0
  14. package/dist/NicePinCodeInput-xJwHHpeS.js +13102 -0
  15. package/dist/NiceSavedQueryPanel-CbE-wQLO.js +6893 -0
  16. package/dist/NiceSavedQueryPanel-DuE2wgV_.cjs +596 -0
  17. package/dist/NiceWindow--TIJTyxg.cjs +1 -0
  18. package/dist/NiceWindow-vqhh0tb_.js +1592 -0
  19. package/dist/charts-C877HM7d.js +4657 -0
  20. package/dist/charts-CjHdhW3E.cjs +761 -0
  21. package/dist/charts.cjs +1 -1
  22. package/dist/charts.mjs +1 -1
  23. package/dist/core-BbGBF3q0.js +25364 -0
  24. package/dist/core-DwOyxP1F.cjs +122 -0
  25. package/dist/data-branching-7B25ogCm.cjs +1 -0
  26. package/dist/data-branching-B_jX2zDY.js +6133 -0
  27. package/dist/data-branching.cjs +1 -1
  28. package/dist/data-branching.mjs +1 -1
  29. package/dist/data.cjs +1 -1
  30. package/dist/data.mjs +1 -1
  31. package/dist/devops-DbKWJZmr.cjs +17 -0
  32. package/dist/devops-nYQjPDoH.js +7684 -0
  33. package/dist/devops.cjs +1 -1
  34. package/dist/devops.mjs +1 -1
  35. package/dist/editors.cjs +1 -1
  36. package/dist/editors.mjs +3 -3
  37. package/dist/feedback.cjs +1 -1
  38. package/dist/feedback.mjs +15 -14
  39. package/dist/index-By5F3DMu.js +67607 -0
  40. package/dist/index-aAc_1dLg.cjs +5518 -0
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.css +1 -1
  43. package/dist/index.d.ts +76 -5
  44. package/dist/index.mjs +986 -985
  45. package/dist/lazy.cjs +1 -1
  46. package/dist/lazy.mjs +24 -24
  47. package/dist/navigation.cjs +1 -1
  48. package/dist/navigation.d.ts +332 -5
  49. package/dist/navigation.mjs +4 -4
  50. package/dist/no-code-C4DPSqYz.cjs +332 -0
  51. package/dist/no-code-zo1dWOLX.js +7133 -0
  52. package/dist/no-code.cjs +1 -1
  53. package/dist/no-code.mjs +1 -1
  54. package/dist/overlays.cjs +1 -1
  55. package/dist/overlays.mjs +2 -2
  56. package/dist/pickerCommons-BRJZMI3n.cjs +1 -0
  57. package/dist/pickerCommons-DWhw7aWu.js +2043 -0
  58. package/dist/pickerCommons.css +1 -0
  59. package/dist/style.css +4 -4
  60. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -19568,7 +19568,7 @@ export declare interface NiceSensorGaugePanelProps extends NiceBaseProps {
19568
19568
  * @example
19569
19569
  * ```tsx
19570
19570
  * <NiceSetupWizard
19571
- * layout="sidebar"
19571
+ * layout="vertical"
19572
19572
  * steps={[
19573
19573
  * { id: 'welcome', title: 'Welcome', content: <WelcomeScreen /> },
19574
19574
  * { id: 'account', title: 'Account', fields: [
@@ -19621,8 +19621,43 @@ export declare interface NiceSetupWizardProps {
19621
19621
  persistKey?: string;
19622
19622
  /** Animation type */
19623
19623
  animation?: 'slide' | 'fade' | 'none';
19624
- /** Brand/logo element */
19624
+ /** Brand/logo element. Rendered inline at the start of the header — swap it
19625
+ * per-product (e.g. your own logo + product name). */
19625
19626
  branding?: default_2.ReactNode;
19627
+ /**
19628
+ * Show the built-in {@link NiceLanguagePicker} inline in the header, right
19629
+ * after {@link branding}. Default: `false`. Wire it up via
19630
+ * {@link languagePickerProps} (`value` / `onChange` / `allowedCodes` …).
19631
+ */
19632
+ showLanguagePicker?: boolean;
19633
+ /**
19634
+ * Props forwarded to the built-in header {@link NiceLanguagePicker}. The
19635
+ * wizard defaults it to a dense `compact` `ghost` toolbar control; anything
19636
+ * here overrides those defaults. Provide `value` + `onChange` to control it.
19637
+ */
19638
+ languagePickerProps?: Partial<NiceLanguagePickerProps>;
19639
+ /**
19640
+ * Show the built-in {@link NiceThemePicker} inline in the header, right after
19641
+ * {@link branding} (and after the language picker when both are shown).
19642
+ * Default: `false`. Wire it up via {@link themePickerProps}.
19643
+ */
19644
+ showThemePicker?: boolean;
19645
+ /**
19646
+ * Props forwarded to the built-in header {@link NiceThemePicker}. The wizard
19647
+ * defaults it to a dense `compact` `ghost` toolbar control; anything here
19648
+ * overrides those defaults. Provide `value` + `onChange` to control it.
19649
+ */
19650
+ themePickerProps?: Partial<NiceThemePickerProps>;
19651
+ /**
19652
+ * Show the **restart** control (refresh icon) inline in the header. Clicking
19653
+ * it opens a confirmation popup (unless {@link NiceSetupWizardRestartConfig.skipConfirm})
19654
+ * and then fires {@link onRestart}. Default: `false`.
19655
+ */
19656
+ showRestart?: boolean;
19657
+ /** Fired when the user confirms the restart action (see {@link showRestart}). */
19658
+ onRestart?: () => void;
19659
+ /** Customize the restart control + its confirmation popup. */
19660
+ restart?: NiceSetupWizardRestartConfig;
19626
19661
  /** Header content */
19627
19662
  header?: default_2.ReactNode;
19628
19663
  /** Footer content */
@@ -19652,6 +19687,29 @@ export declare interface NiceSetupWizardProps {
19652
19687
  style?: default_2.CSSProperties;
19653
19688
  }
19654
19689
 
19690
+ /**
19691
+ * Configuration for the built-in header **restart** control — a refresh-icon
19692
+ * button that (by default) opens a confirmation popup before firing
19693
+ * {@link NiceSetupWizardProps.onRestart}. Use it to let operators start the
19694
+ * whole setup process over from the beginning.
19695
+ */
19696
+ export declare interface NiceSetupWizardRestartConfig {
19697
+ /** Custom icon. Defaults to a refresh / circular-arrow glyph. */
19698
+ icon?: default_2.ReactNode;
19699
+ /** Tooltip + accessible label for the button. */
19700
+ label?: string;
19701
+ /** Confirmation popup title. */
19702
+ confirmTitle?: string;
19703
+ /** Confirmation popup message/body. */
19704
+ confirmMessage?: default_2.ReactNode;
19705
+ /** Confirm (accept) button label. */
19706
+ confirmLabel?: string;
19707
+ /** Cancel (reject) button label. */
19708
+ cancelLabel?: string;
19709
+ /** Skip the confirmation popup and call `onRestart` immediately. Default: `false`. */
19710
+ skipConfirm?: boolean;
19711
+ }
19712
+
19655
19713
  export declare interface NiceShellProps extends NiceBaseProps {
19656
19714
  /** Navigation data for sidebar / menus. */
19657
19715
  menu?: NiceUserMenuResponse;
@@ -26108,8 +26166,9 @@ export declare interface SetupWizardContext {
26108
26166
  t: (key: string, defaultValue: string) => string;
26109
26167
  }
26110
26168
 
26111
- /** Layout variant */
26112
- export declare type SetupWizardLayout = 'horizontal' | 'vertical' | 'cards' | 'minimal' | 'sidebar';
26169
+ /** Layout variant. (`cards` + `sidebar` removed in 1.0.28; `vertical` now renders
26170
+ * the former sidebar-style stepper column with sticky, independently-scrollable nav.) */
26171
+ export declare type SetupWizardLayout = 'horizontal' | 'vertical' | 'minimal';
26113
26172
 
26114
26173
  /** Step definition */
26115
26174
  export declare interface SetupWizardStep {
@@ -26138,7 +26197,7 @@ export declare interface SetupWizardStep {
26138
26197
  minDuration?: number;
26139
26198
  /** Summary to show in review step */
26140
26199
  summary?: (values: Record<string, unknown>) => default_2.ReactNode;
26141
- /** Category/group for sidebar layout */
26200
+ /** Category/group for the vertical layout stepper */
26142
26201
  category?: string;
26143
26202
  /** Badge to show on step indicator */
26144
26203
  badge?: default_2.ReactNode;
@@ -26194,6 +26253,8 @@ export declare interface SidebarNavDataNode {
26194
26253
  export declare interface SidebarNavDataSource {
26195
26254
  id: string;
26196
26255
  label: string;
26256
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26257
+ tooltip?: ReactNode;
26197
26258
  icon?: ReactNode;
26198
26259
  color?: string;
26199
26260
  /** Server URL or connection string hint */
@@ -26205,6 +26266,8 @@ export declare interface SidebarNavDataSource {
26205
26266
  export declare interface SidebarNavFavorite {
26206
26267
  id: string;
26207
26268
  label: string;
26269
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26270
+ tooltip?: ReactNode;
26208
26271
  icon?: ReactNode;
26209
26272
  route?: string;
26210
26273
  sourceId?: string;
@@ -26249,6 +26312,8 @@ export declare type SidebarNavMode = 'all' | 'by-role' | 'by-unit' | 'favorites'
26249
26312
  export declare interface SidebarNavModule {
26250
26313
  id: string;
26251
26314
  label: string;
26315
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26316
+ tooltip?: ReactNode;
26252
26317
  icon?: ReactNode;
26253
26318
  views: SidebarNavView[];
26254
26319
  /** Source this module belongs to */
@@ -26259,6 +26324,8 @@ export declare interface SidebarNavModule {
26259
26324
  export declare interface SidebarNavRole {
26260
26325
  id: string;
26261
26326
  label: string;
26327
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26328
+ tooltip?: ReactNode;
26262
26329
  icon?: ReactNode;
26263
26330
  modules: SidebarNavModule[];
26264
26331
  /** Source this role belongs to */
@@ -26269,6 +26336,8 @@ export declare interface SidebarNavRole {
26269
26336
  export declare interface SidebarNavUnit {
26270
26337
  id: string;
26271
26338
  label: string;
26339
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26340
+ tooltip?: ReactNode;
26272
26341
  icon?: ReactNode;
26273
26342
  modules: SidebarNavModule[];
26274
26343
  /** Source this unit belongs to */
@@ -26322,6 +26391,8 @@ export declare interface SidebarNavUserPrefs {
26322
26391
  export declare interface SidebarNavView {
26323
26392
  id: string;
26324
26393
  label: string;
26394
+ /** Custom hover tooltip. Falls back to `label` when omitted. */
26395
+ tooltip?: ReactNode;
26325
26396
  icon?: ReactNode;
26326
26397
  /** Route path for navigation */
26327
26398
  route?: string;