@nice2dev/ui 1.3.10 → 1.3.11
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 +51 -0
- package/README.md +16 -18
- package/dist/NicePropertyGrid.doc-BWNyWrWq.cjs +7 -0
- package/dist/NicePropertyGrid.doc-C_I3F4w8.js +31 -0
- package/dist/data.d.ts +1 -1
- package/dist/index.cjs +130 -144
- package/dist/index.css +1 -1
- package/dist/index.d.ts +62 -42
- package/dist/index.mjs +11898 -11925
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -11507,7 +11507,7 @@ export declare interface NiceDataGridProps<T extends Record<string, any> = any>
|
|
|
11507
11507
|
formColumns?: number;
|
|
11508
11508
|
/** Modal title for popup edit. Defaults to `'Edit row'`. */
|
|
11509
11509
|
editFormTitle?: string;
|
|
11510
|
-
/** Escape-hatch: extra props forwarded to the underlying `NiceForm` in the popup (e.g. `labelPosition`, `gap`, `size`, `responsiveColumns`).
|
|
11510
|
+
/** Escape-hatch: extra props forwarded to the underlying `NiceForm` in the popup (e.g. `labelPosition`, `gap`, `size`, `responsiveColumns`). Takes the props of `NiceForm` itself. */
|
|
11511
11511
|
formProps?: Partial<Omit<NiceFormProps, 'items' | 'data' | 'onFieldChange' | 'onSubmit' | 'columns' | 'showActions' | 'submitLabel'>>;
|
|
11512
11512
|
/** Called when the popup form is submitted with the merged row. */
|
|
11513
11513
|
onRowEdit?: (rowKey: string, updatedRow: T) => void;
|
|
@@ -17010,7 +17010,10 @@ export declare interface NiceModuleLoaderState {
|
|
|
17010
17010
|
errors: Map<string, Error>;
|
|
17011
17011
|
}
|
|
17012
17012
|
|
|
17013
|
-
/**
|
|
17013
|
+
/**
|
|
17014
|
+
* Full runtime manifest of a front-end micro-module (loader, routes, flags). Not the seed
|
|
17015
|
+
* `*.manifest.json` of an ERP module — see the file header.
|
|
17016
|
+
*/
|
|
17014
17017
|
export declare interface NiceModuleManifest {
|
|
17015
17018
|
/** Unique module identifier (kebab-case, e.g. "sales-orders"). */
|
|
17016
17019
|
id: string;
|
|
@@ -22516,41 +22519,6 @@ export { niceThemeBootstrap }
|
|
|
22516
22519
|
|
|
22517
22520
|
export { NiceThemeBorders }
|
|
22518
22521
|
|
|
22519
|
-
/** Props for the {@link NiceThemeBuilder} component — an advanced visual theme editor with section pickers, presets, live preview, and export. */
|
|
22520
|
-
declare interface NiceThemeBuilderProps extends NiceBaseProps {
|
|
22521
|
-
/** Initial theme to edit (defaults to Light) */
|
|
22522
|
-
theme?: NiceTheme;
|
|
22523
|
-
/** Preset themes to offer in the picker */
|
|
22524
|
-
presets?: NiceTheme[];
|
|
22525
|
-
/** Sections to show (default: all) */
|
|
22526
|
-
sections?: NiceThemeBuilderSection[];
|
|
22527
|
-
/** Called when theme changes */
|
|
22528
|
-
onChange?: (theme: NiceTheme) => void;
|
|
22529
|
-
/**
|
|
22530
|
-
* Called when user clicks Apply, after the theme went to the page: the enclosing
|
|
22531
|
-
* NiceThemeProvider when there is one, otherwise the document root.
|
|
22532
|
-
*/
|
|
22533
|
-
onApply?: (theme: NiceTheme) => void;
|
|
22534
|
-
/** Called when user clicks Export; without it the button downloads the theme as `<name>.json`. */
|
|
22535
|
-
onExport?: (json: string, cssVars: Record<string, string>) => void;
|
|
22536
|
-
/**
|
|
22537
|
-
* Apply every edit to the page live (default: false) — through the enclosing NiceThemeProvider
|
|
22538
|
-
* when there is one, otherwise to the document root.
|
|
22539
|
-
*/
|
|
22540
|
-
livePreview?: boolean;
|
|
22541
|
-
/** Currently focused token from NiceThemePreview (auto-switches section + scrolls) */
|
|
22542
|
-
focusedToken?: string;
|
|
22543
|
-
/** Show the embedded NiceThemePreview pane (default: true) */
|
|
22544
|
-
showPreview?: boolean;
|
|
22545
|
-
/** Layout placement of the preview pane (default: 'right') */
|
|
22546
|
-
previewPlacement?: 'right' | 'bottom';
|
|
22547
|
-
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
22548
|
-
tutorial?: NiceComponentTutorial;
|
|
22549
|
-
}
|
|
22550
|
-
|
|
22551
|
-
/** Editable sections in the {@link NiceThemeBuilder}. */
|
|
22552
|
-
declare type NiceThemeBuilderSection = 'general' | 'colors' | 'backgrounds' | 'background-image' | 'text' | 'borders' | 'spacing' | 'typography' | 'shadows' | 'transitions' | 'nesting';
|
|
22553
|
-
|
|
22554
22522
|
export { NiceThemeColors }
|
|
22555
22523
|
|
|
22556
22524
|
export { NiceThemeContext }
|
|
@@ -22582,13 +22550,44 @@ export declare interface NiceThemeDescriptor {
|
|
|
22582
22550
|
meta?: Record<string, unknown>;
|
|
22583
22551
|
}
|
|
22584
22552
|
|
|
22585
|
-
export declare const NiceThemeDesigner: ForwardRefExoticComponent<
|
|
22553
|
+
export declare const NiceThemeDesigner: default_2.ForwardRefExoticComponent<NiceThemeDesignerProps & default_2.RefAttributes<HTMLDivElement>> & {
|
|
22586
22554
|
displayName: string;
|
|
22587
22555
|
};
|
|
22588
22556
|
|
|
22589
|
-
|
|
22557
|
+
/** Props for the {@link NiceThemeDesigner} component — an advanced visual theme editor with section pickers, presets, live preview, and export. */
|
|
22558
|
+
export declare interface NiceThemeDesignerProps extends NiceBaseProps {
|
|
22559
|
+
/** Initial theme to edit (defaults to Light) */
|
|
22560
|
+
theme?: NiceTheme;
|
|
22561
|
+
/** Preset themes to offer in the picker */
|
|
22562
|
+
presets?: NiceTheme[];
|
|
22563
|
+
/** Sections to show (default: all) */
|
|
22564
|
+
sections?: NiceThemeDesignerSection[];
|
|
22565
|
+
/** Called when theme changes */
|
|
22566
|
+
onChange?: (theme: NiceTheme) => void;
|
|
22567
|
+
/**
|
|
22568
|
+
* Called when user clicks Apply, after the theme went to the page: the enclosing
|
|
22569
|
+
* NiceThemeProvider when there is one, otherwise the document root.
|
|
22570
|
+
*/
|
|
22571
|
+
onApply?: (theme: NiceTheme) => void;
|
|
22572
|
+
/** Called when user clicks Export; without it the button downloads the theme as `<name>.json`. */
|
|
22573
|
+
onExport?: (json: string, cssVars: Record<string, string>) => void;
|
|
22574
|
+
/**
|
|
22575
|
+
* Apply every edit to the page live (default: false) — through the enclosing NiceThemeProvider
|
|
22576
|
+
* when there is one, otherwise to the document root.
|
|
22577
|
+
*/
|
|
22578
|
+
livePreview?: boolean;
|
|
22579
|
+
/** Currently focused token from NiceThemePreview (auto-switches section + scrolls) */
|
|
22580
|
+
focusedToken?: string;
|
|
22581
|
+
/** Show the embedded NiceThemePreview pane (default: true) */
|
|
22582
|
+
showPreview?: boolean;
|
|
22583
|
+
/** Layout placement of the preview pane (default: 'right') */
|
|
22584
|
+
previewPlacement?: 'right' | 'bottom';
|
|
22585
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
22586
|
+
tutorial?: NiceComponentTutorial;
|
|
22587
|
+
}
|
|
22590
22588
|
|
|
22591
|
-
|
|
22589
|
+
/** Editable sections in the {@link NiceThemeDesigner}. */
|
|
22590
|
+
export declare type NiceThemeDesignerSection = 'general' | 'colors' | 'backgrounds' | 'background-image' | 'text' | 'borders' | 'spacing' | 'typography' | 'shadows' | 'transitions' | 'nesting';
|
|
22592
22591
|
|
|
22593
22592
|
export { niceThemeFluent }
|
|
22594
22593
|
|
|
@@ -24559,8 +24558,15 @@ export declare interface NiceViewContainer {
|
|
|
24559
24558
|
export declare interface NiceViewDataSourceRef {
|
|
24560
24559
|
/** Unique key within this view (e.g. "customers", "orders") */
|
|
24561
24560
|
key: string;
|
|
24562
|
-
/**
|
|
24563
|
-
|
|
24561
|
+
/**
|
|
24562
|
+
* Where the rows come from: an adapter ("rest" | "odata" | "graphql" | "static"), a query the
|
|
24563
|
+
* module defines ("query", by `ref` — a `NiceDataSourceDef.key`), or a module entity ("entity").
|
|
24564
|
+
*/
|
|
24565
|
+
type: 'rest' | 'odata' | 'graphql' | 'static' | 'query' | 'entity';
|
|
24566
|
+
/** The module data source this view reads (type="query"): the `key` of a `NiceDataSourceDef`. */
|
|
24567
|
+
ref?: string;
|
|
24568
|
+
/** The module entity this view reads (type="entity"). */
|
|
24569
|
+
entity?: string;
|
|
24564
24570
|
/** URL or resource path (for rest/odata/graphql) */
|
|
24565
24571
|
endpoint?: string;
|
|
24566
24572
|
/** Static data (for type="static") */
|
|
@@ -24658,6 +24664,14 @@ export declare interface NiceViewEditorProps extends NiceStandardProps {
|
|
|
24658
24664
|
registry?: NiceViewRegistry;
|
|
24659
24665
|
/** Entities available for "New from entity" + binding field hints. */
|
|
24660
24666
|
entities?: NiceEntityLike[];
|
|
24667
|
+
/**
|
|
24668
|
+
* The module's data sources (`NiceDataSourceDef` keys) a "query" data source can point at.
|
|
24669
|
+
* Without them its `ref` is typed in by hand.
|
|
24670
|
+
*/
|
|
24671
|
+
dataSourceOptions?: Array<{
|
|
24672
|
+
key: string;
|
|
24673
|
+
label?: string;
|
|
24674
|
+
}>;
|
|
24661
24675
|
/** Save callback (shows a Save button when provided). */
|
|
24662
24676
|
onSave?: (view: NiceViewDefinition) => void;
|
|
24663
24677
|
/**
|
|
@@ -28805,6 +28819,12 @@ export { TouchPoint }
|
|
|
28805
28819
|
|
|
28806
28820
|
export { TouchTargetProps }
|
|
28807
28821
|
|
|
28822
|
+
/**
|
|
28823
|
+
* The view-standard data source that reads this one: `type: 'query'` with `ref` = its key, so a
|
|
28824
|
+
* view (NiceViewEditor / NiceViewRenderer) binds to the module's query by name.
|
|
28825
|
+
*/
|
|
28826
|
+
export declare function toViewDataSourceRef(def: Pick<NiceDataSourceDef, 'key'>, key?: string): NiceViewDataSourceRef;
|
|
28827
|
+
|
|
28808
28828
|
export { TRACELESS_MODE_PRESETS }
|
|
28809
28829
|
|
|
28810
28830
|
/**
|