@nice2dev/ui 1.1.6 → 1.1.7

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 (162) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +50 -29
  3. package/css/legacy-bg-text-aliases.css +65 -61
  4. package/dist/NiceCodeEditor-Bc81wiaN.js +1134 -0
  5. package/dist/NiceCodeEditor-D6f8KdHN.js +1134 -0
  6. package/dist/NiceCodeEditor-DE3saxyt.cjs +260 -0
  7. package/dist/NiceCodeEditor-DZM16My5.cjs +260 -0
  8. package/dist/NiceCodeEditor-HqmcJjmZ.js +1179 -0
  9. package/dist/NiceColorPicker-6EqXaDj0.cjs +1 -0
  10. package/dist/NiceColorPicker-BiEWqWnd.js +596 -0
  11. package/dist/NiceColorPicker-Cuc6YXqz.cjs +1 -0
  12. package/dist/NiceColorPicker-DMATcNWG.js +596 -0
  13. package/dist/NiceColorPicker-R3O1nemp.js +596 -0
  14. package/dist/NiceConfirmDialog-B0e10fRL.cjs +1 -0
  15. package/dist/NiceConfirmDialog-BBDgEMHv.js +81 -0
  16. package/dist/NiceConfirmDialog-C7kdr8jJ.js +81 -0
  17. package/dist/NiceConfirmDialog-DMHqPfFM.js +81 -0
  18. package/dist/NiceConfirmDialog-ZJpQLQQS.cjs +1 -0
  19. package/dist/NiceDataGrid-BzUw4dSu.cjs +10 -0
  20. package/dist/NiceDataGrid-CPKcVOVz.js +1743 -0
  21. package/dist/NiceDataGrid-DJr33WMy.cjs +10 -0
  22. package/dist/NiceDataGrid-D_4gZ1Hu.js +1736 -0
  23. package/dist/NiceDataGrid-DlUAaXhD.js +1736 -0
  24. package/dist/NiceDocumentViewer-8ghRVtfO.js +672 -0
  25. package/dist/NiceDocumentViewer-ChWtA_Ry.cjs +180 -0
  26. package/dist/NiceDocumentViewer-DwLUV7Tc.js +672 -0
  27. package/dist/NiceDocumentViewer-goMzF1w3.cjs +180 -0
  28. package/dist/NiceDocumentViewer-gt1mxzP8.js +672 -0
  29. package/dist/NiceForm-CHEAHxDw.js +4805 -0
  30. package/dist/NiceForm-CJUp1CL0.cjs +1 -0
  31. package/dist/NiceForm-Cp_RH3Yj.js +4805 -0
  32. package/dist/NiceForm-a6tGr6ss.js +4819 -0
  33. package/dist/NiceForm-jU89oe2S.cjs +1 -0
  34. package/dist/NiceGantt-BnQwyTfG.cjs +1 -0
  35. package/dist/NiceGantt-D8coFAvK.js +328 -0
  36. package/dist/NiceGantt-DOZfT6r5.js +328 -0
  37. package/dist/NiceGantt-DQzH1V-R.js +328 -0
  38. package/dist/NiceGantt-jQ8ZpXko.cjs +1 -0
  39. package/dist/NiceHtmlEditor-B1nlXJNW.cjs +10 -0
  40. package/dist/NiceHtmlEditor-Bv3VqJPG.js +862 -0
  41. package/dist/NiceHtmlEditor-CKsGj-Ei.cjs +10 -0
  42. package/dist/NiceHtmlEditor-CloMgyzg.js +841 -0
  43. package/dist/NiceHtmlEditor-DUAHmkWI.js +841 -0
  44. package/dist/NiceLoginForm-Ce_QLnLf.js +736 -0
  45. package/dist/NiceLoginForm-DLpNTQlR.cjs +1 -0
  46. package/dist/NiceLoginForm-Dg0286Cc.js +736 -0
  47. package/dist/NiceLoginForm-X05Vadeg.js +708 -0
  48. package/dist/NiceLoginForm-f_dBCnUi.cjs +1 -0
  49. package/dist/NiceMention-BByI4nFG.js +11120 -0
  50. package/dist/NiceMention-C2TPiMph.cjs +430 -0
  51. package/dist/NiceMention-C67vT6m0.js +11145 -0
  52. package/dist/NiceMention-D1cdy63w.cjs +430 -0
  53. package/dist/NiceMention-QIuggb9Y.js +11122 -0
  54. package/dist/NiceMention.css +1 -1
  55. package/dist/NiceModal-CHaan9al.js +95 -0
  56. package/dist/NiceModal-Czq6OEAT.js +95 -0
  57. package/dist/NiceModal-D-HFwawr.js +95 -0
  58. package/dist/NiceModal-DOy2XTzc.cjs +1 -0
  59. package/dist/NiceModal-DkawKzEE.cjs +1 -0
  60. package/dist/NiceModuleLifecyclePanel-1CsP8Zst.js +6997 -0
  61. package/dist/NiceModuleLifecyclePanel-Bkx4Yg-3.cjs +1 -0
  62. package/dist/NiceModuleLifecyclePanel-C5oYtczk.js +6999 -0
  63. package/dist/NiceModuleLifecyclePanel-DCcy2yYi.cjs +1 -0
  64. package/dist/NiceModuleLifecyclePanel-DqdgW-0s.js +7004 -0
  65. package/dist/NiceModuleLifecyclePanel.css +1 -1
  66. package/dist/NicePagination-7od5KUa3.cjs +1 -0
  67. package/dist/NicePagination-DMrkR8hH.cjs +1 -0
  68. package/dist/NicePagination-DQmZpsSQ.js +179 -0
  69. package/dist/NicePagination-DipQRjPq.js +172 -0
  70. package/dist/NicePagination-KhlVXYaT.js +172 -0
  71. package/dist/NicePivotGrid-B-KthuqL.cjs +152 -0
  72. package/dist/NicePivotGrid-CLCTHkKO.cjs +152 -0
  73. package/dist/NicePivotGrid-DV54FCsH.js +1174 -0
  74. package/dist/NicePivotGrid-DoWLUPUs.js +1167 -0
  75. package/dist/NicePivotGrid-etwpfccz.js +1167 -0
  76. package/dist/NiceSavedQueryPanel-BABkTNc5.js +5129 -0
  77. package/dist/NiceSavedQueryPanel-Cfeig83P.cjs +586 -0
  78. package/dist/NiceSavedQueryPanel-DTWRLseb.cjs +586 -0
  79. package/dist/NiceSavedQueryPanel-Dy154sxE.js +5129 -0
  80. package/dist/NiceSavedQueryPanel-v7AffOOe.js +5129 -0
  81. package/dist/NiceSavedQueryPanel.css +1 -1
  82. package/dist/NiceScheduler-BEgB7ZgF.cjs +5 -0
  83. package/dist/NiceScheduler-C9JprsEI.cjs +5 -0
  84. package/dist/NiceScheduler-DSP-PPh0.js +1645 -0
  85. package/dist/NiceScheduler-DuPnaA3t.js +1652 -0
  86. package/dist/NiceScheduler-Oa89YZx9.js +1645 -0
  87. package/dist/NiceSelect-A336yeLZ.js +433 -0
  88. package/dist/NiceSelect-B5hTbqi2.js +433 -0
  89. package/dist/NiceSelect-BYSgDYzq.cjs +1 -0
  90. package/dist/NiceSelect-Dudf2T5T.js +433 -0
  91. package/dist/NiceSelect-DwBAIrX7.cjs +1 -0
  92. package/dist/NiceWindow-B6zjBTl9.cjs +1 -0
  93. package/dist/NiceWindow-BKQEx7Vf.js +1623 -0
  94. package/dist/NiceWindow-BnTH7Gy0.js +1623 -0
  95. package/dist/NiceWindow-CZN9NVZw.cjs +1 -0
  96. package/dist/NiceWindow-lxtPR7yZ.js +1623 -0
  97. package/dist/NiceWindow.css +1 -1
  98. package/dist/charts-B8_V3_nq.cjs +882 -0
  99. package/dist/charts-BZgyyybE.js +31933 -0
  100. package/dist/charts-FuDk5-r6.js +31958 -0
  101. package/dist/charts-INj3yFo5.js +31946 -0
  102. package/dist/charts-NolNXKUL.cjs +882 -0
  103. package/dist/charts.cjs +1 -1
  104. package/dist/charts.css +1 -1
  105. package/dist/charts.mjs +1 -1
  106. package/dist/core-A_A6c7an.js +795 -0
  107. package/dist/core-B2iH2J_X.js +795 -0
  108. package/dist/core-BmspZEfD.js +795 -0
  109. package/dist/core-DAfLOet6.cjs +1 -0
  110. package/dist/core-ZG3bgnBR.cjs +1 -0
  111. package/dist/data-branching-B3TOqXAO.cjs +1 -0
  112. package/dist/data-branching-BUGiICDZ.js +6275 -0
  113. package/dist/data-branching-DMXmcocj.js +6275 -0
  114. package/dist/data-branching-YE8P9M5P.js +6275 -0
  115. package/dist/data-branching-t6uhAwIm.cjs +1 -0
  116. package/dist/data-branching.cjs +1 -1
  117. package/dist/data-branching.mjs +1 -1
  118. package/dist/data.cjs +1 -1
  119. package/dist/data.d.ts +7 -2
  120. package/dist/data.mjs +3 -3
  121. package/dist/devops-BhV3OmF7.js +8285 -0
  122. package/dist/devops-BqUxnbRi.cjs +17 -0
  123. package/dist/devops-Bx-Qwj9w.cjs +17 -0
  124. package/dist/devops-DYZatW45.js +8251 -0
  125. package/dist/devops-R98k2zpd.js +8251 -0
  126. package/dist/devops.cjs +1 -1
  127. package/dist/devops.d.ts +29 -16
  128. package/dist/devops.mjs +1 -1
  129. package/dist/editors.cjs +1 -1
  130. package/dist/editors.d.ts +35 -20
  131. package/dist/editors.mjs +7 -7
  132. package/dist/feedback.cjs +1 -1
  133. package/dist/feedback.mjs +3 -3
  134. package/dist/index.cjs +445 -445
  135. package/dist/index.css +1 -1
  136. package/dist/index.d.ts +190 -111
  137. package/dist/index.mjs +16635 -16351
  138. package/dist/lazy.cjs +1 -1
  139. package/dist/lazy.d.ts +31 -18
  140. package/dist/lazy.mjs +24 -24
  141. package/dist/navigation.cjs +1 -1
  142. package/dist/navigation.d.ts +17 -14
  143. package/dist/navigation.mjs +130 -130
  144. package/dist/no-code-BPaAS4wW.cjs +332 -0
  145. package/dist/no-code-CBwUVL1i.js +7447 -0
  146. package/dist/no-code-CjktkQ50.js +7447 -0
  147. package/dist/no-code-DW2NrRba.js +7447 -0
  148. package/dist/no-code-DmFxrZ5T.cjs +332 -0
  149. package/dist/no-code.cjs +1 -1
  150. package/dist/no-code.d.ts +2 -2
  151. package/dist/no-code.mjs +1 -1
  152. package/dist/overlays.cjs +1 -1
  153. package/dist/overlays.d.ts +4 -4
  154. package/dist/overlays.mjs +2 -2
  155. package/dist/pickerCommons-C4XWRUvH.cjs +1 -0
  156. package/dist/pickerCommons-C_BpYs_m.cjs +1 -0
  157. package/dist/pickerCommons-DAOXH_u5.js +1122 -0
  158. package/dist/pickerCommons-Dn4wnDco.js +1122 -0
  159. package/dist/pickerCommons-DskswPS5.js +1122 -0
  160. package/dist/pickerCommons.css +1 -1
  161. package/dist/style.css +7 -7
  162. package/package.json +3 -3
package/dist/devops.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./devops-CU0sOVEA.cjs");exports.NiceBranchManager=e.NiceBranchManager;exports.NiceGitBlame=e.NiceGitBlame;exports.NiceGitConflictResolver=e.NiceGitConflictResolver;exports.NiceGitDiffViewer=e.NiceGitDiffViewer;exports.NiceGitGraph=e.NiceGitGraph;exports.NiceGitHooks=e.NiceGitHooks;exports.NiceMergeRequestBuilder=e.NiceMergeRequestBuilder;exports.NicePipelineEditor=e.NicePipelineEditor;exports.NicePipelineMonitor=e.NicePipelineMonitor;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./devops-BqUxnbRi.cjs");exports.NiceBranchManager=e.NiceBranchManager;exports.NiceGitBlame=e.NiceGitBlame;exports.NiceGitConflictResolver=e.NiceGitConflictResolver;exports.NiceGitDiffViewer=e.NiceGitDiffViewer;exports.NiceGitGraph=e.NiceGitGraph;exports.NiceGitHooks=e.NiceGitHooks;exports.NiceMergeRequestBuilder=e.NiceMergeRequestBuilder;exports.NicePipelineEditor=e.NicePipelineEditor;exports.NicePipelineMonitor=e.NicePipelineMonitor;
package/dist/devops.d.ts CHANGED
@@ -395,8 +395,8 @@ export declare interface NiceGitConflictResolverProps extends NiceBaseProps {
395
395
  export declare const NiceGitDiffViewer: default_2.FC<NiceGitDiffViewerProps>;
396
396
 
397
397
  export declare interface NiceGitDiffViewerProps extends NiceBaseProps {
398
- /** Diff files */
399
- files: DiffFile[];
398
+ /** Diff files. Defaults to none. */
399
+ files?: DiffFile[];
400
400
  /** View mode */
401
401
  viewMode?: DiffViewMode;
402
402
  /** Show whitespace changes */
@@ -423,12 +423,12 @@ export declare interface NiceGitDiffViewerProps extends NiceBaseProps {
423
423
  export declare const NiceGitGraph: default_2.FC<NiceGitGraphProps>;
424
424
 
425
425
  export declare interface NiceGitGraphProps extends NiceBaseProps {
426
- /** Commits to display (newest first) */
427
- commits: GitCommit[];
428
- /** All branches */
429
- branches: GitBranch[];
430
- /** All tags */
431
- tags: GitTag[];
426
+ /** Commits to display (newest first). Defaults to none. */
427
+ commits?: GitCommit[];
428
+ /** All branches. Defaults to none. */
429
+ branches?: GitBranch[];
430
+ /** All tags. Defaults to none. */
431
+ tags?: GitTag[];
432
432
  /** Currently checked out branch/commit */
433
433
  head?: string;
434
434
  /** Selected commit hash */
@@ -467,8 +467,13 @@ export declare interface NiceGitGraphProps extends NiceBaseProps {
467
467
  export declare const NiceGitHooks: default_2.FC<NiceGitHooksProps>;
468
468
 
469
469
  export declare interface NiceGitHooksProps extends NiceBaseProps {
470
- /** Current hooks configuration */
471
- hooks: GitHook[];
470
+ /**
471
+ * Hooks configuration. Controlled only together with `onHooksChange`; on its own it is
472
+ * the initial configuration the editor then keeps in a local copy.
473
+ */
474
+ hooks?: GitHook[];
475
+ /** Initial hooks configuration when uncontrolled. */
476
+ defaultHooks?: GitHook[];
472
477
  /** Available templates */
473
478
  templates?: HookTemplate[];
474
479
  /** Hook manager type */
@@ -477,7 +482,10 @@ export declare interface NiceGitHooksProps extends NiceBaseProps {
477
482
  repoPath?: string;
478
483
  /** Currently editing hook */
479
484
  selectedHook?: GitHookType;
485
+ /** Called with each hook the user changed. */
480
486
  onHookChange?: (hook: GitHook) => void;
487
+ /** Called with the whole hooks list after any change. */
488
+ onHooksChange?: (hooks: GitHook[]) => void;
481
489
  onHookToggle?: (hookType: GitHookType, enabled: boolean) => void;
482
490
  onActionAdd?: (hookType: GitHookType, action: HookAction) => void;
483
491
  onActionRemove?: (hookType: GitHookType, actionId: string) => void;
@@ -490,8 +498,8 @@ export declare interface NiceGitHooksProps extends NiceBaseProps {
490
498
  export declare const NiceMergeRequestBuilder: default_2.FC<NiceMergeRequestBuilderProps>;
491
499
 
492
500
  export declare interface NiceMergeRequestBuilderProps extends NiceBaseProps {
493
- /** Available branches */
494
- branches: Array<{
501
+ /** Available branches. Defaults to none. */
502
+ branches?: Array<{
495
503
  name: string;
496
504
  isRemote?: boolean;
497
505
  }>;
@@ -524,9 +532,13 @@ export declare interface NiceMergeRequestBuilderProps extends NiceBaseProps {
524
532
  export declare const NicePipelineEditor: default_2.FC<NicePipelineEditorProps>;
525
533
 
526
534
  export declare interface NicePipelineEditorProps extends NiceBaseProps {
527
- pipeline: Pipeline;
535
+ /** The pipeline (controlled). Omit it to let the editor keep its own. */
536
+ pipeline?: Pipeline;
537
+ /** Initial pipeline when uncontrolled. */
538
+ defaultPipeline?: Pipeline;
528
539
  templates: PipelineTemplate[];
529
- runners: Array<{
540
+ /** Runners a job can be assigned to. Defaults to none. */
541
+ runners?: Array<{
530
542
  id: string;
531
543
  name: string;
532
544
  os: string;
@@ -537,7 +549,7 @@ export declare interface NicePipelineEditorProps extends NiceBaseProps {
537
549
  name: string;
538
550
  protection: boolean;
539
551
  }>;
540
- onPipelineChange: (pipeline: Pipeline) => void;
552
+ onPipelineChange?: (pipeline: Pipeline) => void;
541
553
  onStageAdd: () => void;
542
554
  onStageRemove: (stageId: string) => void;
543
555
  onStageMove: (stageId: string, direction: 'up' | 'down') => void;
@@ -560,7 +572,8 @@ export declare interface NicePipelineEditorProps extends NiceBaseProps {
560
572
  export declare const NicePipelineMonitor: default_2.FC<NicePipelineMonitorProps>;
561
573
 
562
574
  export declare interface NicePipelineMonitorProps extends NiceBaseProps {
563
- runs: PipelineRun[];
575
+ /** Pipeline runs. Defaults to none. */
576
+ runs?: PipelineRun[];
564
577
  stats?: PipelineStats;
565
578
  selectedRunId?: string;
566
579
  onRunSelect: (runId: string) => void;
package/dist/devops.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a, b as c, c as s, d as r, e as t, f as o, g as N, h as l, i as n } from "./devops-CXyEwQeM.js";
1
+ import { a, b as c, c as s, d as r, e as t, f as o, g as N, h as l, i as n } from "./devops-BhV3OmF7.js";
2
2
  export {
3
3
  a as NiceBranchManager,
4
4
  c as NiceGitBlame,
package/dist/editors.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./pickerCommons-B-wOzHFh.cjs"),i=require("./NiceForm-C6F0HvrX.cjs"),e=require("./NiceMention-BjeLN4Jx.cjs"),o=require("./NiceSelect-BVoqtfYN.cjs"),N=require("./NiceColorPicker-CKVbjicN.cjs"),t=require("./NiceHtmlEditor-D8RQcBNp.cjs"),r=require("./NiceCodeEditor-cIqUSk3j.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceNumberInput=c.NiceNumberInput;exports.NiceTextInput=c.NiceTextInput;exports.NiceToggle=c.NiceToggle;exports.MASK_PRESETS=i.MASK_PRESETS;exports.NiceAutocomplete=i.NiceAutocomplete;exports.NiceCalendar=i.NiceCalendar;exports.NiceCountryPicker=i.NiceCountryPicker;exports.NiceDateTimePicker=i.NiceDateTimePicker;exports.NiceForm=i.NiceForm;exports.NiceMaskedInput=i.NiceMaskedInput;exports.NicePasswordInput=i.NicePasswordInput;exports.NiceRadioGroup=i.NiceRadioGroup;exports.NiceRating=i.NiceRating;exports.NiceSlider=i.NiceSlider;exports.NiceTagBox=i.NiceTagBox;exports.NiceTextArea=i.NiceTextArea;exports.NiceUpload=i.NiceUpload;exports.NICE_COLOR_PRESET_KEYS=e.NICE_COLOR_PRESET_KEYS;exports.NiceAccountPicker=e.NiceAccountPicker;exports.NiceAddressInput=e.NiceAddressInput;exports.NiceCodeEditorAI=e.NiceCodeEditorAI;exports.NiceColorPalette=e.NiceColorPalette;exports.NiceContactPicker=e.NiceContactPicker;exports.NiceCropEditor=e.NiceCropEditor;exports.NiceDateRangeBox=e.NiceDateRangeBox;exports.NiceDocumentEditor=e.NiceDocumentEditor;exports.NiceDropDownBox=e.NiceDropDownBox;exports.NiceEmojiPicker=e.NiceEmojiPicker;exports.NiceGradientPicker=e.NiceGradientPicker;exports.NiceHtmlEditorAI=e.NiceHtmlEditorAI;exports.NiceImageAnnotator=e.NiceImageAnnotator;exports.NiceImageEditor=e.NiceImageEditor;exports.NiceInputOtp=e.NiceInputOtp;exports.NiceInvoiceLineEditor=e.NiceInvoiceLineEditor;exports.NiceKeyValueEditor=e.NiceKeyValueEditor;exports.NiceKnob=e.NiceKnob;exports.NiceLogConsole=e.NiceLogConsole;exports.NiceLookup=e.NiceLookup;exports.NiceMarkdownEditor=e.NiceMarkdownEditor;exports.NiceMention=e.NiceMention;exports.NicePDFAnnotationEditor=e.NicePDFAnnotationEditor;exports.NicePickList=e.NicePickList;exports.NiceRangeSlider=e.NiceRangeSlider;exports.NiceScannerControl=e.NiceScannerControl;exports.NiceScriptRunner=e.NiceScriptRunner;exports.NiceSignature=e.NiceSignature;exports.NiceTreeSelect=e.NiceTreeSelect;exports.NiceWiki=e.NiceWiki;exports.NiceSelect=o.NiceSelect;exports.NiceColorPicker=N.NiceColorPicker;exports.NiceHtmlEditor=t.NiceHtmlEditor;exports.NiceCodeEditor=r.NiceCodeEditor;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./pickerCommons-C_BpYs_m.cjs"),i=require("./NiceForm-jU89oe2S.cjs"),e=require("./NiceMention-C2TPiMph.cjs"),o=require("./NiceSelect-BYSgDYzq.cjs"),N=require("./NiceColorPicker-Cuc6YXqz.cjs"),t=require("./NiceHtmlEditor-B1nlXJNW.cjs"),r=require("./NiceCodeEditor-DZM16My5.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceNumberInput=c.NiceNumberInput;exports.NiceTextInput=c.NiceTextInput;exports.NiceToggle=c.NiceToggle;exports.MASK_PRESETS=i.MASK_PRESETS;exports.NiceAutocomplete=i.NiceAutocomplete;exports.NiceCalendar=i.NiceCalendar;exports.NiceCountryPicker=i.NiceCountryPicker;exports.NiceDateTimePicker=i.NiceDateTimePicker;exports.NiceForm=i.NiceForm;exports.NiceMaskedInput=i.NiceMaskedInput;exports.NicePasswordInput=i.NicePasswordInput;exports.NiceRadioGroup=i.NiceRadioGroup;exports.NiceRating=i.NiceRating;exports.NiceSlider=i.NiceSlider;exports.NiceTagBox=i.NiceTagBox;exports.NiceTextArea=i.NiceTextArea;exports.NiceUpload=i.NiceUpload;exports.NICE_COLOR_PRESET_KEYS=e.NICE_COLOR_PRESET_KEYS;exports.NiceAccountPicker=e.NiceAccountPicker;exports.NiceAddressInput=e.NiceAddressInput;exports.NiceCodeEditorAI=e.NiceCodeEditorAI;exports.NiceColorPalette=e.NiceColorPalette;exports.NiceContactPicker=e.NiceContactPicker;exports.NiceCropEditor=e.NiceCropEditor;exports.NiceDateRangeBox=e.NiceDateRangeBox;exports.NiceDocumentEditor=e.NiceDocumentEditor;exports.NiceDropDownBox=e.NiceDropDownBox;exports.NiceEmojiPicker=e.NiceEmojiPicker;exports.NiceGradientPicker=e.NiceGradientPicker;exports.NiceHtmlEditorAI=e.NiceHtmlEditorAI;exports.NiceImageAnnotator=e.NiceImageAnnotator;exports.NiceImageEditor=e.NiceImageEditor;exports.NiceInputOtp=e.NiceInputOtp;exports.NiceInvoiceLineEditor=e.NiceInvoiceLineEditor;exports.NiceKeyValueEditor=e.NiceKeyValueEditor;exports.NiceKnob=e.NiceKnob;exports.NiceLogConsole=e.NiceLogConsole;exports.NiceLookup=e.NiceLookup;exports.NiceMarkdownEditor=e.NiceMarkdownEditor;exports.NiceMention=e.NiceMention;exports.NicePDFAnnotationEditor=e.NicePDFAnnotationEditor;exports.NicePickList=e.NicePickList;exports.NiceRangeSlider=e.NiceRangeSlider;exports.NiceScannerControl=e.NiceScannerControl;exports.NiceScriptRunner=e.NiceScriptRunner;exports.NiceSignature=e.NiceSignature;exports.NiceTreeSelect=e.NiceTreeSelect;exports.NiceWiki=e.NiceWiki;exports.NiceSelect=o.NiceSelect;exports.NiceColorPicker=N.NiceColorPicker;exports.NiceHtmlEditor=t.NiceHtmlEditor;exports.NiceCodeEditor=r.NiceCodeEditor;
package/dist/editors.d.ts CHANGED
@@ -296,8 +296,10 @@ export declare const NiceAutocomplete: default_2.FC<NiceAutocompleteProps>;
296
296
  /** Props for the {@link NiceAutocomplete} component — a text input with filtered suggestion dropdown and optional multi-select. */
297
297
  export declare interface NiceAutocompleteProps extends NiceFormFieldProps {
298
298
  options: NiceOption[];
299
- /** Single value or array of values if multiple=true. */
300
- value: string | string[];
299
+ /** Single value or array of values if multiple=true (controlled). Omit it to let the field keep its own. */
300
+ value?: string | string[];
301
+ /** Initial value when uncontrolled. */
302
+ defaultValue?: string | string[];
301
303
  onChange?: (value: string | string[]) => void;
302
304
  minSearchLength?: number;
303
305
  maxResults?: number;
@@ -572,8 +574,10 @@ declare interface NiceCodeEditorOptions {
572
574
  export declare interface NiceCodeEditorProps {
573
575
  /** Editor layout size (minimal / compact / standard / fullscreen). */
574
576
  editorSize?: NiceEditorSize;
575
- /** Code value */
576
- value: string;
577
+ /** Code (controlled). Omit it to let the editor keep its own. */
578
+ value?: string;
579
+ /** Initial code when uncontrolled. */
580
+ defaultValue?: string;
577
581
  /** Value change callback */
578
582
  onChange?: (value: string) => void;
579
583
  /** Language */
@@ -1488,8 +1492,12 @@ declare interface NiceHtmlEditorAIRef {
1488
1492
  declare type NiceHtmlEditorCommand = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'h1' | 'h2' | 'h3' | 'ul' | 'ol' | 'link' | 'unlink' | 'undo' | 'redo' | 'clear' | 'table' | 'image' | 'code' | 'markdown' | 'blockquote' | 'hr' | 'fontSize' | 'fontColor' | 'bgColor' | 'subscript' | 'superscript' | 'indent' | 'outdent' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'fullscreen' | 'removeFormat' | 'print' | 'source' | 'emoji' | 'findReplace';
1489
1493
 
1490
1494
  export declare interface NiceHtmlEditorProps extends NiceFormFieldProps {
1491
- value: string;
1492
- onChange: (html: string) => void;
1495
+ /** HTML content (controlled). Omit it to let the editor keep its own. */
1496
+ value?: string;
1497
+ /** Initial HTML content when uncontrolled. */
1498
+ defaultValue?: string;
1499
+ /** Called with the new HTML after every edit. */
1500
+ onChange?: (html: string) => void;
1493
1501
  placeholder?: string;
1494
1502
  height?: number | string;
1495
1503
  toolbar?: NiceHtmlEditorCommand[];
@@ -1680,10 +1688,12 @@ export declare interface NiceInvoiceLineEditorProps extends NiceFormFieldProps {
1680
1688
  export declare const NiceKeyValueEditor: ForwardRefExoticComponent<NiceKeyValueEditorProps & RefAttributes<HTMLDivElement>>;
1681
1689
 
1682
1690
  export declare interface NiceKeyValueEditorProps extends NiceBaseProps {
1683
- /** Current rows (controlled). */
1684
- value: NiceKeyValuePair[];
1691
+ /** Current rows (controlled). Omit it to let the editor keep its own. */
1692
+ value?: NiceKeyValuePair[];
1693
+ /** Initial rows when uncontrolled. */
1694
+ defaultValue?: NiceKeyValuePair[];
1685
1695
  /** Change callback with the full updated array. */
1686
- onChange: (pairs: NiceKeyValuePair[]) => void;
1696
+ onChange?: (pairs: NiceKeyValuePair[]) => void;
1687
1697
  /** Allow toggling a row's value between text and secret (adds a lock toggle). */
1688
1698
  allowSecret?: boolean;
1689
1699
  /** Show a per-row enable/disable checkbox. */
@@ -1808,10 +1818,12 @@ declare interface NiceLookupColumn {
1808
1818
  export declare interface NiceLookupProps extends NiceFormFieldProps {
1809
1819
  /** Available options. Used when `data`/`columns` aren't provided. */
1810
1820
  options?: NiceOption[];
1811
- /** Selected value. */
1812
- value: string;
1821
+ /** Selected value (controlled). Omit it to let the lookup keep its own. */
1822
+ value?: string;
1823
+ /** Initial selection when uncontrolled. */
1824
+ defaultValue?: string;
1813
1825
  /** Called when the selection changes. */
1814
- onChange: (value: string) => void;
1826
+ onChange?: (value: string) => void;
1815
1827
  /** Enable search/filter in the dropdown. */
1816
1828
  searchable?: boolean;
1817
1829
  /** Show a clear button. */
@@ -2204,8 +2216,10 @@ export declare interface NiceScannerControlProps extends NiceFormFieldProps {
2204
2216
  export declare const NiceScriptRunner: ForwardRefExoticComponent<NiceScriptRunnerProps & RefAttributes<HTMLDivElement>>;
2205
2217
 
2206
2218
  export declare interface NiceScriptRunnerProps extends NiceBaseProps {
2207
- /** Script source (controlled). */
2208
- value: string;
2219
+ /** Script source (controlled). Omit it to let the runner keep its own. */
2220
+ value?: string;
2221
+ /** Initial script source when uncontrolled. */
2222
+ defaultValue?: string;
2209
2223
  /** Script change callback. */
2210
2224
  onChange?: (value: string) => void;
2211
2225
  /** Editor language. Default `'javascript'`. */
@@ -2453,10 +2467,12 @@ export declare const NiceTagBox: default_2.FC<NiceTagBoxProps>;
2453
2467
  export declare interface NiceTagBoxProps extends NiceFormFieldProps {
2454
2468
  /** Available options. */
2455
2469
  options?: NiceOption[];
2456
- /** Array of selected values. */
2457
- value: string[];
2470
+ /** Array of selected values (controlled). Omit it to let the box keep its own. */
2471
+ value?: string[];
2472
+ /** Initial selection when uncontrolled. */
2473
+ defaultValue?: string[];
2458
2474
  /** Called when the selection changes. */
2459
- onChange: (value: string[]) => void;
2475
+ onChange?: (value: string[]) => void;
2460
2476
  /** Enable search/filter within the dropdown. */
2461
2477
  searchable?: boolean;
2462
2478
  /** Show a clear-all button. */
@@ -2683,10 +2699,9 @@ export declare interface NiceUploadProps extends NiceBaseProps {
2683
2699
  */
2684
2700
  export declare const NiceWiki: default_2.ForwardRefExoticComponent<NiceWikiProps & default_2.RefAttributes<HTMLDivElement>>;
2685
2701
 
2686
- /** Props for the {@link NiceWiki} component. */
2687
2702
  export declare interface NiceWikiProps extends NiceFormFieldProps {
2688
- /** Page tree. */
2689
- pages: WikiPage[];
2703
+ /** Page tree. Defaults to none. */
2704
+ pages?: WikiPage[];
2690
2705
  /** Currently selected page id. */
2691
2706
  selectedPageId?: string | number;
2692
2707
  /** Content of the currently selected page (HTML or Markdown). */
package/dist/editors.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { N as a, a as c, b as o, c as s } from "./pickerCommons-COiSUiP2.js";
2
- import { M as r, N as t, a as n, b as d, c as p, d as l, e as m, f as E, g as u, h as k, i as x, j as C, k as P, l as g } from "./NiceForm-CCyfWgIs.js";
3
- import { N as S, a as A, b as f, c as R, d as T, e as D, f as b, g as L, h as M, i as w, j as B, k as K, l as _, m as h, n as j, o as y, p as O, q as v, r as F, s as G, t as H, u as q, v as z, w as U, x as V, y as W, z as Y, A as J, B as Q, C as X, D as Z } from "./NiceMention-OaCi-GNO.js";
4
- import { N as ee } from "./NiceSelect-DHowflmX.js";
5
- import { N as ae } from "./NiceColorPicker-C8NZZcXE.js";
6
- import { NiceHtmlEditor as oe } from "./NiceHtmlEditor-B8B8AcSC.js";
7
- import { NiceCodeEditor as Ne } from "./NiceCodeEditor-BVUwp9yX.js";
1
+ import { N as a, a as c, b as o, c as s } from "./pickerCommons-Dn4wnDco.js";
2
+ import { M as r, N as t, a as n, b as d, c as p, d as l, e as m, f as E, g as u, h as k, i as x, j as C, k as P, l as g } from "./NiceForm-a6tGr6ss.js";
3
+ import { N as S, a as A, b as f, c as R, d as T, e as D, f as b, g as L, h as M, i as w, j as B, k as K, l as _, m as h, n as j, o as y, p as O, q as v, r as F, s as G, t as H, u as q, v as z, w as U, x as V, y as W, z as Y, A as J, B as Q, C as X, D as Z } from "./NiceMention-C67vT6m0.js";
4
+ import { N as ee } from "./NiceSelect-A336yeLZ.js";
5
+ import { N as ae } from "./NiceColorPicker-BiEWqWnd.js";
6
+ import { NiceHtmlEditor as oe } from "./NiceHtmlEditor-Bv3VqJPG.js";
7
+ import { NiceCodeEditor as Ne } from "./NiceCodeEditor-HqmcJjmZ.js";
8
8
  export {
9
9
  r as MASK_PRESETS,
10
10
  S as NICE_COLOR_PRESET_KEYS,
package/dist/feedback.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceLoginForm-BrvIc-wq.cjs"),i=require("./NiceModal-0UxviEYE.cjs"),o=require("./NiceConfirmDialog-oSxVpsCs.cjs");exports.NiceAlert=e.NiceAlert;exports.NiceCookieConsent=e.NiceCookieConsent;exports.NiceDrawer=e.NiceDrawer;exports.NiceErrorBoundary=e.NiceErrorBoundary;exports.NiceLoginForm=e.NiceLoginForm;exports.NiceOfflineBanner=e.NiceOfflineBanner;exports.NiceRetryPanel=e.NiceRetryPanel;exports.NiceTimeoutFeedback=e.NiceTimeoutFeedback;exports.NiceToastContainer=e.NiceToastContainer;exports.alertIcons=e.alertIcons;exports.useNiceToast=e.useNiceToast;exports.NiceModal=i.NiceModal;exports.NiceConfirmDialog=o.NiceConfirmDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceLoginForm-f_dBCnUi.cjs"),i=require("./NiceModal-DkawKzEE.cjs"),o=require("./NiceConfirmDialog-ZJpQLQQS.cjs");exports.NiceAlert=e.NiceAlert;exports.NiceCookieConsent=e.NiceCookieConsent;exports.NiceDrawer=e.NiceDrawer;exports.NiceErrorBoundary=e.NiceErrorBoundary;exports.NiceLoginForm=e.NiceLoginForm;exports.NiceOfflineBanner=e.NiceOfflineBanner;exports.NiceRetryPanel=e.NiceRetryPanel;exports.NiceTimeoutFeedback=e.NiceTimeoutFeedback;exports.NiceToastContainer=e.NiceToastContainer;exports.alertIcons=e.alertIcons;exports.useNiceToast=e.useNiceToast;exports.NiceModal=i.NiceModal;exports.NiceConfirmDialog=o.NiceConfirmDialog;
package/dist/feedback.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { N as o, a as i, b as r, c as s, d as c, e as N, f as n, g as t, h as f, i as l, u as m } from "./NiceLoginForm-Bai7aN8V.js";
2
- import { N as u } from "./NiceModal-D-iOonog.js";
3
- import { N as g } from "./NiceConfirmDialog-DmBX1Iea.js";
1
+ import { N as o, a as i, b as r, c as s, d as c, e as N, f as n, g as t, h as f, i as l, u as m } from "./NiceLoginForm-Ce_QLnLf.js";
2
+ import { N as u } from "./NiceModal-CHaan9al.js";
3
+ import { N as g } from "./NiceConfirmDialog-C7kdr8jJ.js";
4
4
  export {
5
5
  o as NiceAlert,
6
6
  g as NiceConfirmDialog,