@nice2dev/ui 1.0.18 → 1.0.19

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 (53) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/NiceErrorBoundary-DBCCmeyl.js +770 -0
  3. package/dist/NiceErrorBoundary-V6wkSSLP.cjs +1 -0
  4. package/dist/NiceForm-DLADlHAQ.js +5383 -0
  5. package/dist/NiceForm-DUkduLqG.cjs +382 -0
  6. package/dist/NiceForm.css +1 -1
  7. package/dist/NiceModal-CUdeVj-j.js +95 -0
  8. package/dist/NiceModal-Cc8R-DpX.cjs +1 -0
  9. package/dist/NiceModuleLifecyclePanel-4UEsYB5r.js +6553 -0
  10. package/dist/NiceModuleLifecyclePanel-C6agdtTI.cjs +1 -0
  11. package/dist/NiceModuleLifecyclePanel.css +1 -1
  12. package/dist/NicePagination-Cqr3Pe_F.js +171 -0
  13. package/dist/NicePagination-DyWWdtb3.cjs +1 -0
  14. package/dist/NicePinCodeInput-C6zJxUVf.cjs +419 -0
  15. package/dist/NicePinCodeInput-ltwzQf4r.js +12240 -0
  16. package/dist/NicePinCodeInput.css +1 -1
  17. package/dist/NiceSavedQueryPanel-BIXW0y1X.js +6455 -0
  18. package/dist/NiceSavedQueryPanel-CFHwMDIx.cjs +596 -0
  19. package/dist/NiceSavedQueryPanel.css +1 -1
  20. package/dist/NiceTabs-B9zxj6qd.js +1657 -0
  21. package/dist/NiceTabs-CNauJ4fu.cjs +1 -0
  22. package/dist/NiceWindow-Bo_yCa1o.js +1418 -0
  23. package/dist/NiceWindow-DPzJxOfx.cjs +1 -0
  24. package/dist/charts-C60va95_.js +4657 -0
  25. package/dist/charts-D_I1iwel.cjs +761 -0
  26. package/dist/charts.cjs +1 -1
  27. package/dist/charts.css +1 -1
  28. package/dist/charts.mjs +1 -1
  29. package/dist/core-Bcc4sz15.cjs +96 -0
  30. package/dist/core-Da1dGJN3.js +22401 -0
  31. package/dist/data.cjs +1 -1
  32. package/dist/data.d.ts +5 -0
  33. package/dist/data.mjs +1 -1
  34. package/dist/editors.cjs +1 -1
  35. package/dist/editors.d.ts +44 -1
  36. package/dist/editors.mjs +3 -3
  37. package/dist/feedback.cjs +1 -1
  38. package/dist/feedback.mjs +2 -2
  39. package/dist/index-DCDfWfAt.js +64336 -0
  40. package/dist/index-DpiCo0_e.cjs +5194 -0
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.css +1 -1
  43. package/dist/index.d.ts +166 -3
  44. package/dist/index.mjs +47 -47
  45. package/dist/lazy.cjs +1 -1
  46. package/dist/lazy.mjs +3 -3
  47. package/dist/navigation.cjs +1 -1
  48. package/dist/navigation.d.ts +15 -1
  49. package/dist/navigation.mjs +30 -30
  50. package/dist/overlays.cjs +1 -1
  51. package/dist/overlays.mjs +53 -53
  52. package/dist/style.css +6 -6
  53. package/package.json +3 -3
package/dist/data.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceSavedQueryPanel-DSnj-3Es.cjs");exports.NiceCardView=e.NiceCardView;exports.NiceDataGrid=e.NiceDataGrid;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NicePivotGrid=e.NicePivotGrid;exports.NicePivotGridFieldChooser=e.NicePivotGridFieldChooser;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.computeAggregate=e.computeAggregate;exports.escapeCsvField=e.escapeCsvField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceSavedQueryPanel-CFHwMDIx.cjs");exports.NiceCardView=e.NiceCardView;exports.NiceDataGrid=e.NiceDataGrid;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NicePivotGrid=e.NicePivotGrid;exports.NicePivotGridFieldChooser=e.NicePivotGridFieldChooser;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.computeAggregate=e.computeAggregate;exports.escapeCsvField=e.escapeCsvField;
package/dist/data.d.ts CHANGED
@@ -1706,6 +1706,11 @@ export declare interface NiceTreeViewProps extends NiceBaseProps {
1706
1706
  editable?: boolean;
1707
1707
  /** Called when a node label is edited. */
1708
1708
  onNodeEdit?: (key: string, newText: string) => void;
1709
+ /**
1710
+ * Maximum nesting depth rendered (1..10). Beyond this, nodes are treated as
1711
+ * leaves (children not rendered, no expand toggle). Default: unlimited.
1712
+ */
1713
+ maxDepth?: number;
1709
1714
  }
1710
1715
 
1711
1716
  /**
package/dist/data.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { N as a, a as s, b as c, c as r, d as N, e as d, f as o, g as t, h as l, i as n, j as G, k as p, l as T, m as g, n as v, o as w, p as V, q as b } from "./NiceSavedQueryPanel-CE3QR4RY.js";
1
+ import { N as a, a as s, b as c, c as r, d as N, e as d, f as o, g as t, h as l, i as n, j as G, k as p, l as T, m as g, n as v, o as w, p as V, q as b } from "./NiceSavedQueryPanel-BIXW0y1X.js";
2
2
  export {
3
3
  a as NiceCardView,
4
4
  s as NiceDataGrid,
package/dist/editors.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./NiceTabs-32xjguOv.cjs"),i=require("./NiceForm-CU8Dldq-.cjs"),e=require("./NicePinCodeInput-DG_-eXXJ.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceColorPicker=c.NiceColorPicker;exports.NiceNumberInput=c.NiceNumberInput;exports.NiceSelect=c.NiceSelect;exports.NiceTextInput=c.NiceTextInput;exports.NiceToggle=c.NiceToggle;exports.MASK_PRESETS=i.MASK_PRESETS;exports.NiceAutocomplete=i.NiceAutocomplete;exports.NiceCountryPicker=i.NiceCountryPicker;exports.NiceDatePicker=i.NiceDatePicker;exports.NiceDateTimePicker=i.NiceDateTimePicker;exports.NiceFileUpload=i.NiceFileUpload;exports.NiceForm=i.NiceForm;exports.NiceMaskedInput=i.NiceMaskedInput;exports.NicePasswordInput=i.NicePasswordInput;exports.NicePhoneInput=i.NicePhoneInput;exports.NiceRadioGroup=i.NiceRadioGroup;exports.NiceRating=i.NiceRating;exports.NiceSlider=i.NiceSlider;exports.NiceTagBox=i.NiceTagBox;exports.NiceTextArea=i.NiceTextArea;exports.NiceTimePicker=i.NiceTimePicker;exports.NICE_COLOR_PRESET_KEYS=e.NICE_COLOR_PRESET_KEYS;exports.NiceAccountPicker=e.NiceAccountPicker;exports.NiceAddressInput=e.NiceAddressInput;exports.NiceCalendar=e.NiceCalendar;exports.NiceCodeEditor=e.NiceCodeEditor;exports.NiceCodeEditorAI=e.NiceCodeEditorAI;exports.NiceColorPalette=e.NiceColorPalette;exports.NiceContactPicker=e.NiceContactPicker;exports.NiceCropEditor=e.NiceCropEditor;exports.NiceCurrencyInput=e.NiceCurrencyInput;exports.NiceDateRangeBox=e.NiceDateRangeBox;exports.NiceDocumentEditor=e.NiceDocumentEditor;exports.NiceDropDownBox=e.NiceDropDownBox;exports.NiceEmojiPicker=e.NiceEmojiPicker;exports.NiceGradientPicker=e.NiceGradientPicker;exports.NiceHtmlEditor=e.NiceHtmlEditor;exports.NiceHtmlEditorAI=e.NiceHtmlEditorAI;exports.NiceImageAnnotator=e.NiceImageAnnotator;exports.NiceImageEditor=e.NiceImageEditor;exports.NiceInputOtp=e.NiceInputOtp;exports.NiceInvoiceLineEditor=e.NiceInvoiceLineEditor;exports.NiceKnob=e.NiceKnob;exports.NiceLookup=e.NiceLookup;exports.NiceMarkdownEditor=e.NiceMarkdownEditor;exports.NiceMention=e.NiceMention;exports.NicePDFAnnotationEditor=e.NicePDFAnnotationEditor;exports.NicePickList=e.NicePickList;exports.NicePinCodeInput=e.NicePinCodeInput;exports.NiceRangeSlider=e.NiceRangeSlider;exports.NiceScannerControl=e.NiceScannerControl;exports.NiceSignature=e.NiceSignature;exports.NiceSignaturePad=e.NiceSignaturePad;exports.NiceTaxRatePicker=e.NiceTaxRatePicker;exports.NiceTreeSelect=e.NiceTreeSelect;exports.NiceVatInput=e.NiceVatInput;exports.NiceWiki=e.NiceWiki;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./NiceTabs-CNauJ4fu.cjs"),i=require("./NiceForm-DUkduLqG.cjs"),e=require("./NicePinCodeInput-C6zJxUVf.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceColorPicker=c.NiceColorPicker;exports.NiceNumberInput=c.NiceNumberInput;exports.NiceSelect=c.NiceSelect;exports.NiceTextInput=c.NiceTextInput;exports.NiceToggle=c.NiceToggle;exports.MASK_PRESETS=i.MASK_PRESETS;exports.NiceAutocomplete=i.NiceAutocomplete;exports.NiceCountryPicker=i.NiceCountryPicker;exports.NiceDatePicker=i.NiceDatePicker;exports.NiceDateTimePicker=i.NiceDateTimePicker;exports.NiceFileUpload=i.NiceFileUpload;exports.NiceForm=i.NiceForm;exports.NiceMaskedInput=i.NiceMaskedInput;exports.NicePasswordInput=i.NicePasswordInput;exports.NicePhoneInput=i.NicePhoneInput;exports.NiceRadioGroup=i.NiceRadioGroup;exports.NiceRating=i.NiceRating;exports.NiceSlider=i.NiceSlider;exports.NiceTagBox=i.NiceTagBox;exports.NiceTextArea=i.NiceTextArea;exports.NiceTimePicker=i.NiceTimePicker;exports.NICE_COLOR_PRESET_KEYS=e.NICE_COLOR_PRESET_KEYS;exports.NiceAccountPicker=e.NiceAccountPicker;exports.NiceAddressInput=e.NiceAddressInput;exports.NiceCalendar=e.NiceCalendar;exports.NiceCodeEditor=e.NiceCodeEditor;exports.NiceCodeEditorAI=e.NiceCodeEditorAI;exports.NiceColorPalette=e.NiceColorPalette;exports.NiceContactPicker=e.NiceContactPicker;exports.NiceCropEditor=e.NiceCropEditor;exports.NiceCurrencyInput=e.NiceCurrencyInput;exports.NiceDateRangeBox=e.NiceDateRangeBox;exports.NiceDocumentEditor=e.NiceDocumentEditor;exports.NiceDropDownBox=e.NiceDropDownBox;exports.NiceEmojiPicker=e.NiceEmojiPicker;exports.NiceGradientPicker=e.NiceGradientPicker;exports.NiceHtmlEditor=e.NiceHtmlEditor;exports.NiceHtmlEditorAI=e.NiceHtmlEditorAI;exports.NiceImageAnnotator=e.NiceImageAnnotator;exports.NiceImageEditor=e.NiceImageEditor;exports.NiceInputOtp=e.NiceInputOtp;exports.NiceInvoiceLineEditor=e.NiceInvoiceLineEditor;exports.NiceKnob=e.NiceKnob;exports.NiceLookup=e.NiceLookup;exports.NiceMarkdownEditor=e.NiceMarkdownEditor;exports.NiceMention=e.NiceMention;exports.NicePDFAnnotationEditor=e.NicePDFAnnotationEditor;exports.NicePickList=e.NicePickList;exports.NicePinCodeInput=e.NicePinCodeInput;exports.NiceRangeSlider=e.NiceRangeSlider;exports.NiceScannerControl=e.NiceScannerControl;exports.NiceSignature=e.NiceSignature;exports.NiceSignaturePad=e.NiceSignaturePad;exports.NiceTaxRatePicker=e.NiceTaxRatePicker;exports.NiceTreeSelect=e.NiceTreeSelect;exports.NiceVatInput=e.NiceVatInput;exports.NiceWiki=e.NiceWiki;
package/dist/editors.d.ts CHANGED
@@ -699,6 +699,29 @@ export declare interface NiceColorPaletteProps extends NiceBaseProps {
699
699
  label?: string;
700
700
  /** Disabled state */
701
701
  disabled?: boolean;
702
+ /**
703
+ * Target number of colors in the generated palette. Overrides the natural
704
+ * count of the active harmony mode (clamped between `minColors` and
705
+ * `maxColors`). When omitted, the harmony's natural angle count is used.
706
+ */
707
+ colorCount?: number;
708
+ /**
709
+ * Step size (HSV value delta) between adjacent colors in the `shade-chain`
710
+ * mode. Default 0.12.
711
+ */
712
+ shadeStep?: number;
713
+ /** Called when the user changes the shade step via the in-component control. */
714
+ onShadeStepChange?: (step: number) => void;
715
+ /**
716
+ * Custom harmony schemes. Appended to the built-in mode list in the
717
+ * selector and persisted via `localStorage` when `persistCustomSchemes`
718
+ * is true.
719
+ */
720
+ customSchemes?: NiceCustomHarmonyScheme[];
721
+ /** Called when the user edits the custom-schemes list. */
722
+ onCustomSchemesChange?: (schemes: NiceCustomHarmonyScheme[]) => void;
723
+ /** Persist custom schemes to `localStorage["nice-palette-custom-schemes"]`. Default true. */
724
+ persistCustomSchemes?: boolean;
702
725
  }
703
726
 
704
727
  export declare const NiceColorPicker: default_2.ForwardRefExoticComponent<NiceColorPickerProps & default_2.RefAttributes<HTMLInputElement>>;
@@ -796,6 +819,12 @@ export declare interface NiceCountryPickerProps extends NiceFormFieldProps, Dual
796
819
  * false (except flag) and ignoring `controlWidth`. Default: false.
797
820
  */
798
821
  compact?: boolean;
822
+ /**
823
+ * Visual variant. `'ghost'` removes border, background and the dropdown
824
+ * arrow — only the flag/icon is shown. Designed for dense toolbars
825
+ * (e.g. NiceTopNav narrow mode). Default: `'default'`.
826
+ */
827
+ variant?: 'default' | 'ghost';
799
828
  /**
800
829
  * Dropdown horizontal alignment relative to the trigger. `'auto'` picks
801
830
  * the side with more available viewport space (right-edge preferred).
@@ -896,6 +925,15 @@ export declare interface NiceCurrencyInputProps extends NiceFormFieldProps {
896
925
  onBlur?: (e: default_2.FocusEvent<HTMLInputElement>) => void;
897
926
  }
898
927
 
928
+ /** A user-defined harmony scheme (hue angles + optional lightness offsets). */
929
+ declare interface NiceCustomHarmonyScheme {
930
+ id: string;
931
+ name: string;
932
+ angles: number[];
933
+ /** Optional per-color lightness deltas applied on top of preset/base V. */
934
+ lightnessOffsets?: number[];
935
+ }
936
+
899
937
  /** Predefined date-format presets. */
900
938
  export declare type NiceDateFormatPreset = 'date-local' | 'date-utc' | 'datetime-local' | 'datetime-utc' | 'month-local' | 'month-utc' | 'week' | 'time';
901
939
 
@@ -1358,7 +1396,7 @@ declare interface NiceGradientValue {
1358
1396
  stops: NiceGradientStop[];
1359
1397
  }
1360
1398
 
1361
- declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'triadic' | 'tetradic' | 'square' | 'custom';
1399
+ declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'triadic' | 'tetradic' | 'square' | 'shade-chain' | 'custom';
1362
1400
 
1363
1401
  export declare const NiceHtmlEditor: default_2.FC<NiceHtmlEditorProps>;
1364
1402
 
@@ -2501,6 +2539,11 @@ export declare interface NiceTreeSelectProps extends NiceFormFieldProps {
2501
2539
  /** Only allow selection of leaf nodes */
2502
2540
  selectableLeafsOnly?: boolean;
2503
2541
  clearable?: boolean;
2542
+ /**
2543
+ * Maximum nesting depth rendered (1..10). Beyond this, nodes are treated as
2544
+ * leaves (children not rendered, no expand toggle). Default: unlimited.
2545
+ */
2546
+ maxDepth?: number;
2504
2547
  }
2505
2548
 
2506
2549
  /**
package/dist/editors.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { N as a, a as c, b as s, c as N, d as o, e as t } from "./NiceTabs-Blk0h4jY.js";
2
- import { M as n, N as d, a as p, b as u, c as P, d as k, e as E, f as l, g as I, h as m, i as C, j as g, k as S, l as x, m as A, n as T } from "./NiceForm-COk1rNVa.js";
3
- import { N as R, a as b, b as f, c as M, d as h, e as w, f as B, g as F, h as L, i as _, j, k as y, l as G, m as H, n as K, o as O, p as v, q, r as z, s as U, t as V, u as W, v as Y, w as J, x as Q, y as X, z as Z, A as $, B as ee, C as ie, D as ae, E as ce, F as se, G as Ne, H as oe, I as te } from "./NicePinCodeInput-g-yUiepm.js";
1
+ import { N as a, a as c, b as s, c as N, d as o, e as t } from "./NiceTabs-B9zxj6qd.js";
2
+ import { M as n, N as d, a as p, b as u, c as P, d as k, e as E, f as l, g as I, h as m, i as C, j as g, k as S, l as x, m as A, n as T } from "./NiceForm-DLADlHAQ.js";
3
+ import { N as R, a as b, b as f, c as M, d as h, e as w, f as B, g as F, h as L, i as _, j, k as y, l as G, m as H, n as K, o as O, p as v, q, r as z, s as U, t as V, u as W, v as Y, w as J, x as Q, y as X, z as Z, A as $, B as ee, C as ie, D as ae, E as ce, F as se, G as Ne, H as oe, I as te } from "./NicePinCodeInput-ltwzQf4r.js";
4
4
  export {
5
5
  n as MASK_PRESETS,
6
6
  R 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("./NiceErrorBoundary-CR-_ZScD.cjs"),i=require("./NiceModal-CIITx65V.cjs");exports.NiceAlert=e.NiceAlert;exports.NiceConfirmDialog=e.NiceConfirmDialog;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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceErrorBoundary-V6wkSSLP.cjs"),i=require("./NiceModal-Cc8R-DpX.cjs");exports.NiceAlert=e.NiceAlert;exports.NiceConfirmDialog=e.NiceConfirmDialog;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;
package/dist/feedback.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { N as i, a as o, b as s, c as r, d as c, e as N, f as n, g as t, h as f, i as l, j as m, u as d } from "./NiceErrorBoundary-COY0cEsF.js";
2
- import { N as C } from "./NiceModal-CN23FZsc.js";
1
+ import { N as i, a as o, b as s, c as r, d as c, e as N, f as n, g as t, h as f, i as l, j as m, u as d } from "./NiceErrorBoundary-DBCCmeyl.js";
2
+ import { N as C } from "./NiceModal-CUdeVj-j.js";
3
3
  export {
4
4
  i as NiceAlert,
5
5
  o as NiceConfirmDialog,