@nice2dev/ui 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +198 -0
- package/dist/NiceErrorBoundary-B0262Ffc.js +770 -0
- package/dist/NiceErrorBoundary-BNhkOZtq.cjs +1 -0
- package/dist/NiceErrorBoundary-BXOLv-zG.cjs +1 -0
- package/dist/NiceErrorBoundary-DsreAsON.cjs +1 -0
- package/dist/NiceErrorBoundary-DyPWyuki.js +770 -0
- package/dist/NiceErrorBoundary-HMfrXIir.js +770 -0
- package/dist/NiceForm-B7D1MASh.js +5383 -0
- package/dist/NiceForm-BA9zZdm8.cjs +382 -0
- package/dist/NiceForm-Ba9rvBoT.cjs +382 -0
- package/dist/NiceForm-DAGMJpgx.js +5383 -0
- package/dist/NiceForm-D_ifvkIf.js +5386 -0
- package/dist/NiceForm-kd4essRP.cjs +382 -0
- package/dist/NiceForm.css +1 -1
- package/dist/NiceModal-4DLpDmAl.js +95 -0
- package/dist/NiceModal-BVT9cZbf.cjs +1 -0
- package/dist/NiceModal-CiOYOWJy.cjs +1 -0
- package/dist/NiceModal-D2xJTZZf.cjs +1 -0
- package/dist/NiceModal-DZbHCdKq.js +95 -0
- package/dist/NiceModal-MeC1cNtW.js +95 -0
- package/dist/NiceModuleLifecyclePanel-BZMUuDad.js +6807 -0
- package/dist/NiceModuleLifecyclePanel-BiX4KxaK.js +6781 -0
- package/dist/NiceModuleLifecyclePanel-C54g5eV_.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-CDo0iVfr.js +6781 -0
- package/dist/NiceModuleLifecyclePanel-DEJpoz5a.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DrDTpH6K.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-3be3_sVK.js +171 -0
- package/dist/NicePagination-BCRsVzkR.cjs +1 -0
- package/dist/NicePagination-C8gx6Bcl.js +171 -0
- package/dist/NicePagination-CNxEAb4C.cjs +1 -0
- package/dist/NicePagination-Cg_WEf-R.cjs +1 -0
- package/dist/NicePagination-DQXdzx7W.js +171 -0
- package/dist/NicePinCodeInput-3WugpLHi.js +12240 -0
- package/dist/NicePinCodeInput-BD2bMmVF.cjs +696 -0
- package/dist/NicePinCodeInput-CSfRHs4v.cjs +419 -0
- package/dist/NicePinCodeInput-CjwFvOEQ.js +13092 -0
- package/dist/NicePinCodeInput-DCLRLR8a.js +13097 -0
- package/dist/NicePinCodeInput-DoBQnMj9.cjs +694 -0
- package/dist/NiceSavedQueryPanel-DFDDuKWd.js +6597 -0
- package/dist/NiceSavedQueryPanel-DT9v7kUB.cjs +596 -0
- package/dist/NiceSavedQueryPanel-DTU4eiIH.cjs +596 -0
- package/dist/NiceSavedQueryPanel-RLj3BnDR.js +6866 -0
- package/dist/NiceSavedQueryPanel-qtWETcRP.cjs +596 -0
- package/dist/NiceSavedQueryPanel-z29D7N_A.js +6584 -0
- package/dist/NiceTabs-B4dM77y_.js +1657 -0
- package/dist/NiceTabs-BTVTtRZR.cjs +1 -0
- package/dist/NiceTabs-BXGmot7J.cjs +1 -0
- package/dist/NiceTabs-CFA8DGYR.cjs +1 -0
- package/dist/NiceTabs-Cx9DN6QD.js +1657 -0
- package/dist/NiceTabs-DJdhKste.js +1657 -0
- package/dist/NiceWindow-5VCSBJrc.js +1592 -0
- package/dist/NiceWindow-BEFAUTLp.cjs +1 -0
- package/dist/NiceWindow-Cs6-Dbci.js +1592 -0
- package/dist/NiceWindow-DYw4NCeb.js +1592 -0
- package/dist/NiceWindow-O_g8StvA.cjs +1 -0
- package/dist/NiceWindow-a4wB_m30.cjs +1 -0
- package/dist/NiceWindow.css +1 -0
- package/dist/charts-BDr6B81L.js +4657 -0
- package/dist/charts-Ci_KrAoU.cjs +761 -0
- package/dist/charts-ClxW-i5q.js +4657 -0
- package/dist/charts-De7FYS1U.cjs +761 -0
- package/dist/charts-DjFvhCdD.js +4657 -0
- package/dist/charts-Dr_FIPZT.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BIz6zQ5u.cjs +122 -0
- package/dist/core-BYxnKGOi.js +23141 -0
- package/dist/core-CT5vpy5U.js +25248 -0
- package/dist/core-CZE5v34h.cjs +122 -0
- package/dist/core-Cjw8oBvC.cjs +96 -0
- package/dist/core-xcuNJ-DB.js +24948 -0
- package/dist/data-branching-B7dCyaWr.cjs +1 -0
- package/dist/data-branching-BPAeL45o.js +6133 -0
- package/dist/data-branching-Byz79mmA.cjs +1 -0
- package/dist/data-branching-DjuerHfS.js +6133 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.d.ts +3 -0
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +45 -7
- package/dist/data.mjs +1 -1
- package/dist/devops-C3Pmbnxc.js +7684 -0
- package/dist/devops-CrXz348W.cjs +17 -0
- package/dist/devops-DYFov8j3.js +7684 -0
- package/dist/devops-g4qcLXah.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.d.ts +5 -0
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +175 -1
- package/dist/editors.mjs +44 -41
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -2
- package/dist/feedback.mjs +2 -2
- package/dist/index-9Gi1mNY7.js +67912 -0
- package/dist/index-AEO3cK4T.cjs +5194 -0
- package/dist/index-BMQ-F0zE.js +65054 -0
- package/dist/index-BNb9q4Ll.cjs +5490 -0
- package/dist/index-CjdfogVa.js +66711 -0
- package/dist/index-Di3Cgr1P.cjs +5518 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +752 -62
- package/dist/index.mjs +982 -963
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +11 -0
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +30 -4
- package/dist/navigation.mjs +34 -34
- package/dist/no-code-CHvv1KjZ.cjs +332 -0
- package/dist/no-code-CyvddsYt.js +7133 -0
- package/dist/no-code-Dl3ima61.cjs +332 -0
- package/dist/no-code-ktRzFaET.js +7133 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.d.ts +11 -0
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +38 -0
- package/dist/overlays.mjs +52 -52
- package/dist/style.css +7 -4
- package/package.json +1 -1
package/dist/editors.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
4
|
+
import { NiceComponentTutorial } from '@nice2dev/ui-core';
|
|
4
5
|
import { NiceDataSource } from '@nice2dev/ui-core';
|
|
5
6
|
import { NiceEditorSize } from '@nice2dev/ui-core';
|
|
6
7
|
import { NiceFormFieldProps } from '@nice2dev/ui-core';
|
|
@@ -597,8 +598,20 @@ export declare interface NiceCodeEditorProps {
|
|
|
597
598
|
* LSP bridge configuration. If provided, connects Monaco to the LSP server for enhanced language features.
|
|
598
599
|
*/
|
|
599
600
|
lsp?: NiceCodeEditorLspConfig;
|
|
601
|
+
/**
|
|
602
|
+
* Extra TypeScript/JavaScript declaration sources fed to Monaco for IntelliSense
|
|
603
|
+
* (e.g. a generated `ctx.d.ts` describing a script context). Each entry is registered
|
|
604
|
+
* via `monaco.languages.typescript.{typescript|javascript}Defaults.addExtraLib`.
|
|
605
|
+
* Only takes effect for `javascript` / `typescript` languages. Re-applied when the array changes.
|
|
606
|
+
*/
|
|
607
|
+
extraLibs?: Array<{
|
|
608
|
+
content: string;
|
|
609
|
+
filePath?: string;
|
|
610
|
+
}>;
|
|
600
611
|
/** Additional CSS class */
|
|
601
612
|
className?: string;
|
|
613
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
614
|
+
tutorial?: NiceComponentTutorial;
|
|
602
615
|
/** Test ID */
|
|
603
616
|
'data-testid'?: string;
|
|
604
617
|
}
|
|
@@ -890,6 +903,8 @@ export declare interface NiceCropEditorProps {
|
|
|
890
903
|
style?: default_2.CSSProperties;
|
|
891
904
|
/** Test ID */
|
|
892
905
|
'data-testid'?: string;
|
|
906
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
907
|
+
tutorial?: NiceComponentTutorial;
|
|
893
908
|
}
|
|
894
909
|
|
|
895
910
|
/**
|
|
@@ -1107,6 +1122,8 @@ export declare interface NiceDocumentEditorProps extends NiceBaseProps {
|
|
|
1107
1122
|
showToc?: boolean;
|
|
1108
1123
|
/** Show find & replace bar (Ctrl+F). */
|
|
1109
1124
|
showFindReplace?: boolean;
|
|
1125
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1126
|
+
tutorial?: NiceComponentTutorial;
|
|
1110
1127
|
}
|
|
1111
1128
|
|
|
1112
1129
|
export declare const NiceDropDownBox: default_2.FC<NiceDropDownBoxProps>;
|
|
@@ -1459,7 +1476,6 @@ declare interface NiceHtmlEditorAIRef {
|
|
|
1459
1476
|
/** Available toolbar commands for the {@link NiceHtmlEditor}. */
|
|
1460
1477
|
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';
|
|
1461
1478
|
|
|
1462
|
-
/** Props for the {@link NiceHtmlEditor} component � a WYSIWYG rich-text editor with toolbar, mentions, and image upload. */
|
|
1463
1479
|
export declare interface NiceHtmlEditorProps extends NiceFormFieldProps {
|
|
1464
1480
|
value: string;
|
|
1465
1481
|
onChange: (html: string) => void;
|
|
@@ -1491,6 +1507,8 @@ export declare interface NiceHtmlEditorProps extends NiceFormFieldProps {
|
|
|
1491
1507
|
label: string;
|
|
1492
1508
|
html: string;
|
|
1493
1509
|
}[];
|
|
1510
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1511
|
+
tutorial?: NiceComponentTutorial;
|
|
1494
1512
|
}
|
|
1495
1513
|
|
|
1496
1514
|
declare type NiceImageAnnotationType = 'text' | 'rect' | 'circle' | 'line' | 'arrow';
|
|
@@ -1570,6 +1588,8 @@ export declare interface NiceImageEditorProps extends NiceBaseProps {
|
|
|
1570
1588
|
onChange?: (state: NiceImageEditorState) => void;
|
|
1571
1589
|
width?: number | string;
|
|
1572
1590
|
height?: number | string;
|
|
1591
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1592
|
+
tutorial?: NiceComponentTutorial;
|
|
1573
1593
|
}
|
|
1574
1594
|
|
|
1575
1595
|
declare interface NiceImageEditorState {
|
|
@@ -1642,6 +1662,53 @@ export declare interface NiceInvoiceLineEditorProps extends NiceFormFieldProps {
|
|
|
1642
1662
|
maxLines?: number;
|
|
1643
1663
|
/** Fires with computed totals whenever lines change. */
|
|
1644
1664
|
onTotalsChange?: (totals: InvoiceTotals) => void;
|
|
1665
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1666
|
+
tutorial?: NiceComponentTutorial;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
export declare const NiceKeyValueEditor: ForwardRefExoticComponent<NiceKeyValueEditorProps & RefAttributes<HTMLDivElement>>;
|
|
1670
|
+
|
|
1671
|
+
export declare interface NiceKeyValueEditorProps extends NiceBaseProps {
|
|
1672
|
+
/** Current rows (controlled). */
|
|
1673
|
+
value: NiceKeyValuePair[];
|
|
1674
|
+
/** Change callback with the full updated array. */
|
|
1675
|
+
onChange: (pairs: NiceKeyValuePair[]) => void;
|
|
1676
|
+
/** Allow toggling a row's value between text and secret (adds a lock toggle). */
|
|
1677
|
+
allowSecret?: boolean;
|
|
1678
|
+
/** Show a per-row enable/disable checkbox. */
|
|
1679
|
+
allowToggle?: boolean;
|
|
1680
|
+
/** Show a per-row description input. */
|
|
1681
|
+
allowDescription?: boolean;
|
|
1682
|
+
/** Suggested keys (rendered via a shared `<datalist>`). */
|
|
1683
|
+
keySuggestions?: string[];
|
|
1684
|
+
/** Placeholder for the key input. Default `'Key'`. */
|
|
1685
|
+
keyPlaceholder?: string;
|
|
1686
|
+
/** Placeholder for the value input. Default `'Value'`. */
|
|
1687
|
+
valuePlaceholder?: string;
|
|
1688
|
+
/** Label for the add-row button. Default `'Add'`. */
|
|
1689
|
+
addLabel?: string;
|
|
1690
|
+
/** Render read-only (no editing, no add/remove). */
|
|
1691
|
+
readOnly?: boolean;
|
|
1692
|
+
/** Highlight duplicate keys. Default `true`. */
|
|
1693
|
+
duplicateKeyWarning?: boolean;
|
|
1694
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1695
|
+
tutorial?: NiceComponentTutorial;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/** A single key/value row. */
|
|
1699
|
+
export declare interface NiceKeyValuePair {
|
|
1700
|
+
/** Stable id (used as React key when present). */
|
|
1701
|
+
id?: string;
|
|
1702
|
+
/** The key/name. */
|
|
1703
|
+
key: string;
|
|
1704
|
+
/** The value. */
|
|
1705
|
+
value: string;
|
|
1706
|
+
/** `'secret'` renders the value masked with a reveal toggle. Default `'text'`. */
|
|
1707
|
+
type?: 'text' | 'secret';
|
|
1708
|
+
/** Whether the row is active. Only meaningful when `allowToggle` is set. */
|
|
1709
|
+
enabled?: boolean;
|
|
1710
|
+
/** Optional description / note. Only shown when `allowDescription` is set. */
|
|
1711
|
+
description?: string;
|
|
1645
1712
|
}
|
|
1646
1713
|
|
|
1647
1714
|
export declare const NiceKnob: default_2.ForwardRefExoticComponent<NiceKnobProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -1669,6 +1736,51 @@ export declare interface NiceKnobProps extends Omit<NiceFormFieldProps, 'size' |
|
|
|
1669
1736
|
isLabelCentered?: boolean;
|
|
1670
1737
|
}
|
|
1671
1738
|
|
|
1739
|
+
export declare const NiceLogConsole: ForwardRefExoticComponent<NiceLogConsoleProps & RefAttributes<HTMLDivElement>>;
|
|
1740
|
+
|
|
1741
|
+
export declare interface NiceLogConsoleProps extends NiceBaseProps {
|
|
1742
|
+
/** Entries to render, oldest → newest. */
|
|
1743
|
+
entries: NiceLogEntry[];
|
|
1744
|
+
/** Max height before the body scrolls. Number → px. Default `240`. */
|
|
1745
|
+
maxHeight?: number | string;
|
|
1746
|
+
/** Auto-scroll to the newest entry when `entries` grows. Default `true`. */
|
|
1747
|
+
autoScroll?: boolean;
|
|
1748
|
+
/** Show a per-entry timestamp gutter. Default `true`. */
|
|
1749
|
+
showTimestamps?: boolean;
|
|
1750
|
+
/** When set, only entries whose level is included are rendered. */
|
|
1751
|
+
levelFilter?: NiceLogLevel[];
|
|
1752
|
+
/** When provided, a "Clear" button is shown in the header. */
|
|
1753
|
+
onClear?: () => void;
|
|
1754
|
+
/** Header title. When omitted (and no `onClear`) the header is hidden. */
|
|
1755
|
+
title?: string;
|
|
1756
|
+
/** Content shown when there are no (visible) entries. Default `'No output'`. */
|
|
1757
|
+
emptyText?: React.ReactNode;
|
|
1758
|
+
/** Label for the clear button. Default `'Clear'`. */
|
|
1759
|
+
clearLabel?: string;
|
|
1760
|
+
/** Monospace font family override. */
|
|
1761
|
+
fontFamily?: string;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
/** A single line emitted to the console. */
|
|
1765
|
+
export declare interface NiceLogEntry {
|
|
1766
|
+
/** Severity — drives colour and optional filtering. Defaults to `'log'`. */
|
|
1767
|
+
level?: NiceLogLevel;
|
|
1768
|
+
/** Human-readable message. */
|
|
1769
|
+
message: string;
|
|
1770
|
+
/** When the entry was produced. Epoch ms or `Date`. */
|
|
1771
|
+
timestamp?: number | Date;
|
|
1772
|
+
/** Optional structured payload appended (pretty-printed JSON) below the message. */
|
|
1773
|
+
data?: unknown;
|
|
1774
|
+
/** Optional source/tag shown as a dim prefix (e.g. a script or provider id). */
|
|
1775
|
+
source?: string;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Severity of a single console entry. `'trace'` sits below `'debug'` to mirror
|
|
1780
|
+
* standard loggers (Microsoft.Extensions.Logging, Serilog, Python logging, …).
|
|
1781
|
+
*/
|
|
1782
|
+
export declare type NiceLogLevel = 'trace' | 'log' | 'info' | 'warn' | 'error' | 'debug';
|
|
1783
|
+
|
|
1672
1784
|
export declare const NiceLookup: default_2.FC<NiceLookupProps>;
|
|
1673
1785
|
|
|
1674
1786
|
/** Column definition for the mini-grid lookup mode. */
|
|
@@ -1727,6 +1839,8 @@ export declare interface NiceMarkdownEditorProps extends NiceBaseProps {
|
|
|
1727
1839
|
showLineNumbers?: boolean;
|
|
1728
1840
|
onExportHtml?: (html: string) => void;
|
|
1729
1841
|
onImageUpload?: (file: File) => Promise<string>;
|
|
1842
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1843
|
+
tutorial?: NiceComponentTutorial;
|
|
1730
1844
|
}
|
|
1731
1845
|
|
|
1732
1846
|
declare type NiceMarkdownPreviewMode = 'side' | 'tab' | 'none';
|
|
@@ -1911,6 +2025,8 @@ export declare interface NicePDFAnnotationEditorProps extends NiceFormFieldProps
|
|
|
1911
2025
|
onAnnotationClick?: (annotation: PDFAnnotation) => void;
|
|
1912
2026
|
/** Fires when an annotation is deleted. */
|
|
1913
2027
|
onAnnotationDelete?: (id: string) => void;
|
|
2028
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
2029
|
+
tutorial?: NiceComponentTutorial;
|
|
1914
2030
|
}
|
|
1915
2031
|
|
|
1916
2032
|
/**
|
|
@@ -2123,6 +2239,64 @@ export declare interface NiceScannerControlProps extends NiceFormFieldProps {
|
|
|
2123
2239
|
onCameraFrame?: (video: HTMLVideoElement) => void;
|
|
2124
2240
|
}
|
|
2125
2241
|
|
|
2242
|
+
export declare const NiceScriptRunner: ForwardRefExoticComponent<NiceScriptRunnerProps & RefAttributes<HTMLDivElement>>;
|
|
2243
|
+
|
|
2244
|
+
export declare interface NiceScriptRunnerProps extends NiceBaseProps {
|
|
2245
|
+
/** Script source (controlled). */
|
|
2246
|
+
value: string;
|
|
2247
|
+
/** Script change callback. */
|
|
2248
|
+
onChange?: (value: string) => void;
|
|
2249
|
+
/** Editor language. Default `'javascript'`. */
|
|
2250
|
+
language?: NiceCodeLanguage;
|
|
2251
|
+
/**
|
|
2252
|
+
* Executes the script. Receives the current code and parsed input.
|
|
2253
|
+
* Return (or resolve) a {@link NiceScriptRunResult}. Throwing is also supported —
|
|
2254
|
+
* the error is surfaced in the result pane.
|
|
2255
|
+
*/
|
|
2256
|
+
onRun: (code: string, input: unknown) => Promise<NiceScriptRunResult> | NiceScriptRunResult;
|
|
2257
|
+
/** Sample input (entity/payload). Edited as JSON; parsed before `onRun`. */
|
|
2258
|
+
input?: unknown;
|
|
2259
|
+
/** Called with the parsed input when the input editor changes. */
|
|
2260
|
+
onInputChange?: (input: unknown) => void;
|
|
2261
|
+
/** Show the input editor. Defaults to `true` when `input` is provided. */
|
|
2262
|
+
showInputPanel?: boolean;
|
|
2263
|
+
/** Declaration libs forwarded to the code editor for IntelliSense (e.g. `ctx.d.ts`). */
|
|
2264
|
+
extraLibs?: Array<{
|
|
2265
|
+
content: string;
|
|
2266
|
+
filePath?: string;
|
|
2267
|
+
}>;
|
|
2268
|
+
/** Editor height. Number → px. Default `260`. */
|
|
2269
|
+
height?: number | string;
|
|
2270
|
+
/** Externally-controlled running state. When omitted, the component manages its own. */
|
|
2271
|
+
running?: boolean;
|
|
2272
|
+
/** Debounced auto-run on code/input change. Default `false`. */
|
|
2273
|
+
autoRun?: boolean;
|
|
2274
|
+
/** Debounce for `autoRun`, ms. Default `600`. */
|
|
2275
|
+
autoRunDelay?: number;
|
|
2276
|
+
/** Panel arrangement. Default `'vertical'` (editor on top, output below). */
|
|
2277
|
+
layout?: 'horizontal' | 'vertical';
|
|
2278
|
+
/** Run button label. Default `'Run'`. */
|
|
2279
|
+
runLabel?: string;
|
|
2280
|
+
/** Editor theme. Default `'auto'`. */
|
|
2281
|
+
theme?: 'auto' | 'light' | 'dark' | 'vs' | 'vs-dark';
|
|
2282
|
+
/** Optional guided tour. `true` = built-in; array/object = custom steps. Shows a "?" button. */
|
|
2283
|
+
tutorial?: NiceComponentTutorial;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/** Outcome of a single script run, returned by {@link NiceScriptRunnerProps.onRun}. */
|
|
2287
|
+
export declare interface NiceScriptRunResult {
|
|
2288
|
+
/** Whether the run succeeded. */
|
|
2289
|
+
ok: boolean;
|
|
2290
|
+
/** Returned value (pretty-printed in the result pane). */
|
|
2291
|
+
result?: unknown;
|
|
2292
|
+
/** Log lines captured during the run. */
|
|
2293
|
+
logs?: NiceLogEntry[];
|
|
2294
|
+
/** Error message when `ok` is false. */
|
|
2295
|
+
error?: string;
|
|
2296
|
+
/** Wall-clock duration in milliseconds (shown in the status bar). */
|
|
2297
|
+
durationMs?: number;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2126
2300
|
export declare const NiceSelect: default_2.ForwardRefExoticComponent<NiceSelectProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
2127
2301
|
|
|
2128
2302
|
/** Props for the {@link NiceSelect} component. */
|
package/dist/editors.mjs
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
import { N as a, a as c, b as s, c as N, d as o, e as t } from "./NiceTabs-
|
|
2
|
-
import { M as n, N as d, a as
|
|
3
|
-
import { N as
|
|
1
|
+
import { N as a, a as c, b as s, c as N, d as o, e as t } from "./NiceTabs-Cx9DN6QD.js";
|
|
2
|
+
import { M as n, N as d, a as u, b as p, c as l, d as E, e as P, f as k, 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-D_ifvkIf.js";
|
|
3
|
+
import { N as D, a as b, b as L, c as f, d as K, e as M, f as h, g as w, h as y, i as B, j as F, k as _, l as j, m as G, n as H, o as O, p as v, q as V, r as q, s as z, t as J, u as U, v as W, w as Y, 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, J as re, K as ne, L as de } from "./NicePinCodeInput-DCLRLR8a.js";
|
|
4
4
|
export {
|
|
5
5
|
n as MASK_PRESETS,
|
|
6
|
-
|
|
6
|
+
D as NICE_COLOR_PRESET_KEYS,
|
|
7
7
|
b as NiceAccountPicker,
|
|
8
|
-
|
|
8
|
+
L as NiceAddressInput,
|
|
9
9
|
d as NiceAutocomplete,
|
|
10
|
-
|
|
10
|
+
f as NiceCalendar,
|
|
11
11
|
a as NiceCheckbox,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
K as NiceCodeEditor,
|
|
13
|
+
M as NiceCodeEditorAI,
|
|
14
|
+
h as NiceColorPalette,
|
|
15
15
|
c as NiceColorPicker,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
w as NiceContactPicker,
|
|
17
|
+
u as NiceCountryPicker,
|
|
18
|
+
y as NiceCropEditor,
|
|
19
|
+
B as NiceCurrencyInput,
|
|
20
|
+
p as NiceDatePicker,
|
|
21
|
+
F as NiceDateRangeBox,
|
|
22
|
+
l as NiceDateTimePicker,
|
|
23
|
+
_ as NiceDocumentEditor,
|
|
24
|
+
j as NiceDropDownBox,
|
|
25
|
+
G as NiceEmojiPicker,
|
|
26
|
+
E as NiceFileUpload,
|
|
27
|
+
P as NiceForm,
|
|
28
|
+
H as NiceGradientPicker,
|
|
29
29
|
O as NiceHtmlEditor,
|
|
30
30
|
v as NiceHtmlEditorAI,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
V as NiceImageAnnotator,
|
|
32
|
+
q as NiceImageEditor,
|
|
33
|
+
z as NiceInputOtp,
|
|
34
|
+
J as NiceInvoiceLineEditor,
|
|
35
|
+
U as NiceKeyValueEditor,
|
|
35
36
|
W as NiceKnob,
|
|
36
|
-
Y as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
Y as NiceLogConsole,
|
|
38
|
+
Q as NiceLookup,
|
|
39
|
+
X as NiceMarkdownEditor,
|
|
40
|
+
k as NiceMaskedInput,
|
|
41
|
+
Z as NiceMention,
|
|
40
42
|
s as NiceNumberInput,
|
|
41
|
-
|
|
43
|
+
$ as NicePDFAnnotationEditor,
|
|
42
44
|
I as NicePasswordInput,
|
|
43
45
|
m as NicePhoneInput,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
ee as NicePickList,
|
|
47
|
+
ie as NicePinCodeInput,
|
|
46
48
|
C as NiceRadioGroup,
|
|
47
|
-
|
|
49
|
+
ae as NiceRangeSlider,
|
|
48
50
|
g as NiceRating,
|
|
49
|
-
|
|
51
|
+
ce as NiceScannerControl,
|
|
52
|
+
se as NiceScriptRunner,
|
|
50
53
|
N as NiceSelect,
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
Ne as NiceSignature,
|
|
55
|
+
oe as NiceSignaturePad,
|
|
53
56
|
S as NiceSlider,
|
|
54
57
|
x as NiceTagBox,
|
|
55
|
-
|
|
58
|
+
te as NiceTaxRatePicker,
|
|
56
59
|
A as NiceTextArea,
|
|
57
60
|
o as NiceTextInput,
|
|
58
61
|
T as NiceTimePicker,
|
|
59
62
|
t as NiceToggle,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
re as NiceTreeSelect,
|
|
64
|
+
ne as NiceVatInput,
|
|
65
|
+
de as NiceWiki
|
|
63
66
|
};
|
package/dist/feedback.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceErrorBoundary-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceErrorBoundary-BNhkOZtq.cjs"),i=require("./NiceModal-D2xJTZZf.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.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { ForwardRefExoticComponent } from 'react';
|
|
4
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
4
|
import { NiceSize } from '@nice2dev/ui-core';
|
|
6
5
|
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
7
6
|
import { NiceVariant } from '@nice2dev/ui-core';
|
|
@@ -120,7 +119,7 @@ export declare class NiceErrorBoundary extends Component<NiceErrorBoundaryProps,
|
|
|
120
119
|
static getDerivedStateFromError(error: Error): NiceErrorBoundaryState;
|
|
121
120
|
componentDidCatch(error: Error, errorInfo: default_2.ErrorInfo): void;
|
|
122
121
|
handleReset: () => void;
|
|
123
|
-
render(): string | number | boolean | Iterable<default_2.ReactNode> |
|
|
122
|
+
render(): string | number | boolean | Iterable<default_2.ReactNode> | default_2.JSX.Element | null | undefined;
|
|
124
123
|
}
|
|
125
124
|
|
|
126
125
|
/** Props for the {@link NiceErrorBoundary} component. */
|
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-
|
|
2
|
-
import { N as C } from "./NiceModal-
|
|
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-DyPWyuki.js";
|
|
2
|
+
import { N as C } from "./NiceModal-4DLpDmAl.js";
|
|
3
3
|
export {
|
|
4
4
|
i as NiceAlert,
|
|
5
5
|
o as NiceConfirmDialog,
|