@yourself.create/ngx-form-designer 0.0.1 → 0.0.3
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/README.md +8 -8
- package/fesm2022/{notdefined-ngx-form-designer.mjs → uch-web-ngx-form-designer.mjs} +2 -2
- package/fesm2022/uch-web-ngx-form-designer.mjs.map +1 -0
- package/index.d.ts +1 -1
- package/lib/ai/ai-tool-registry.service.d.ts +1 -1
- package/lib/ai/plugins/form-designer-tool-plugin.d.ts +1 -1
- package/lib/ai/tools/designer-read-tools.d.ts +1 -1
- package/lib/ai/tools/designer-write-tools.d.ts +1 -1
- package/lib/ai/tools/schema-patch-tool.d.ts +1 -1
- package/lib/form-designer/layout-canvas.component.d.ts +1 -1
- package/lib/form-designer/widget-inspector.component.d.ts +1 -1
- package/lib/website/website-designer-shell.component.d.ts +4 -4
- package/lib/website/website-preview-shell.component.d.ts +3 -3
- package/lib/widgets/page-widgets/brick-settings.component.d.ts +1 -1
- package/package.json +4 -4
- package/fesm2022/notdefined-ngx-form-designer.mjs.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DesignerStateService } from '../form-designer/designer-state.service';
|
|
2
2
|
import { DesignerEventApiDefinition } from '../form-core/models';
|
|
3
3
|
import { WidgetDefinition } from '../widgets/widget-definition';
|
|
4
|
-
import type { AiToolRuntimeContext, AiToolPlugin, AiToolDescriptor, AiToolRegistry, AiToolResult } from '@
|
|
4
|
+
import type { AiToolRuntimeContext, AiToolPlugin, AiToolDescriptor, AiToolRegistry, AiToolResult } from '@uch-web/angai';
|
|
5
5
|
import { FormDesignerToolContext } from './plugins/form-designer-tool-plugin';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AiToolRegistryService implements AiToolRegistry {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DesignerEventApiDefinition } from '../../form-core/models';
|
|
2
2
|
import type { DesignerStateService } from '../../form-designer/designer-state.service';
|
|
3
3
|
import type { WidgetDefinition } from '../../widgets/widget-definition';
|
|
4
|
-
import type { AiToolPlugin } from '@
|
|
4
|
+
import type { AiToolPlugin } from '@uch-web/angai';
|
|
5
5
|
export interface FormDesignerToolContext {
|
|
6
6
|
state: DesignerStateService;
|
|
7
7
|
eventApis: DesignerEventApiDefinition[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DesignerStateService } from '../../form-designer/designer-state.service';
|
|
2
2
|
import { DesignerEventApiDefinition } from '../../form-core/models';
|
|
3
3
|
import type { WidgetDefinition } from '../../widgets/widget-definition';
|
|
4
|
-
import type { AiToolResult } from '@
|
|
4
|
+
import type { AiToolResult } from '@uch-web/angai';
|
|
5
5
|
export declare function getFormSummary(state: DesignerStateService): AiToolResult;
|
|
6
6
|
export declare function listFields(state: DesignerStateService): AiToolResult;
|
|
7
7
|
export declare function getFieldDetails(state: DesignerStateService, args: unknown): AiToolResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignerStateService } from '../../form-designer/designer-state.service';
|
|
2
2
|
import type { WidgetDefinition } from '../../widgets/widget-definition';
|
|
3
|
-
import type { AiToolResult } from '@
|
|
3
|
+
import type { AiToolResult } from '@uch-web/angai';
|
|
4
4
|
export declare function createFormFromIntent(state: DesignerStateService, args: unknown): Promise<AiToolResult>;
|
|
5
5
|
export declare function addField(state: DesignerStateService, args: unknown): Promise<AiToolResult>;
|
|
6
6
|
export declare function insertField(state: DesignerStateService, args: unknown): Promise<AiToolResult>;
|
|
@@ -12,7 +12,7 @@ export declare class LayoutCanvasComponent implements AfterViewInit {
|
|
|
12
12
|
pageWrapper: ElementRef<HTMLDivElement>;
|
|
13
13
|
breakpoints: readonly ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
14
14
|
constructor(state: DesignerStateService);
|
|
15
|
-
get schema(): import("@angular/core").WritableSignal<import("@
|
|
15
|
+
get schema(): import("@angular/core").WritableSignal<import("@uch-web/ngx-form-designer").FormSchema>;
|
|
16
16
|
get device(): "mobile" | "desktop";
|
|
17
17
|
get breakpoint(): "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
18
18
|
readonly zoom: import("@angular/core").WritableSignal<number>;
|
|
@@ -18,7 +18,7 @@ export declare class WidgetInspectorComponent {
|
|
|
18
18
|
readonly inspectorField: import("@angular/core").Signal<FieldSchema>;
|
|
19
19
|
currentStyle: import("@angular/core").Signal<Partial<StyleTokenSet>>;
|
|
20
20
|
dataConsumer: import("@angular/core").Signal<"image" | "none" | "value" | "list">;
|
|
21
|
-
bindingShape: import("@angular/core").Signal<import("@
|
|
21
|
+
bindingShape: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").DataShape | null>;
|
|
22
22
|
dataTargetPath: import("@angular/core").Signal<string>;
|
|
23
23
|
getWidgetIcon(): string;
|
|
24
24
|
onStyleChange(style: Partial<StyleTokenSet>): void;
|
|
@@ -13,10 +13,10 @@ export declare class WebsiteDesignerShellComponent implements OnInit {
|
|
|
13
13
|
private readonly pluginSections;
|
|
14
14
|
private readonly pluginSectionsFlat;
|
|
15
15
|
readonly project: import("@angular/core").Signal<WebsiteProject>;
|
|
16
|
-
readonly pages: import("@angular/core").Signal<import("@
|
|
17
|
-
readonly savedSections: import("@angular/core").Signal<import("@
|
|
18
|
-
readonly bricks: import("@angular/core").Signal<import("@
|
|
19
|
-
readonly activePage: import("@angular/core").Signal<import("@
|
|
16
|
+
readonly pages: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsitePage[]>;
|
|
17
|
+
readonly savedSections: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsiteSection[]>;
|
|
18
|
+
readonly bricks: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsiteBrick[]>;
|
|
19
|
+
readonly activePage: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsitePage | null>;
|
|
20
20
|
readonly activePageId: import("@angular/core").WritableSignal<string>;
|
|
21
21
|
readonly canRemovePage: import("@angular/core").Signal<boolean>;
|
|
22
22
|
readonly sectionLibraryList: import("@angular/core").Signal<DesignerSectionDefinition[]>;
|
|
@@ -2,13 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class WebsitePreviewShellComponent {
|
|
3
3
|
private readonly router;
|
|
4
4
|
private readonly projectService;
|
|
5
|
-
readonly project: import("@angular/core").Signal<import("@
|
|
6
|
-
readonly pages: import("@angular/core").Signal<import("@
|
|
5
|
+
readonly project: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsiteProject>;
|
|
6
|
+
readonly pages: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsitePage[]>;
|
|
7
7
|
readonly breakpoints: readonly ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
8
8
|
readonly breakpoint: import("@angular/core").WritableSignal<"xs" | "sm" | "md" | "lg" | "xl" | "2xl">;
|
|
9
9
|
readonly activeDevice: import("@angular/core").Signal<"mobile" | "desktop">;
|
|
10
10
|
private readonly url;
|
|
11
|
-
readonly activePage: import("@angular/core").Signal<import("@
|
|
11
|
+
readonly activePage: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsitePage | null>;
|
|
12
12
|
setBreakpoint(bp: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'): void;
|
|
13
13
|
getPageStyle(schema: {
|
|
14
14
|
ui?: {
|
|
@@ -6,7 +6,7 @@ export declare class BrickSettingsComponent implements OnChanges {
|
|
|
6
6
|
setValue: (path: string, value: unknown) => void;
|
|
7
7
|
onChange: () => void;
|
|
8
8
|
private readonly projectService;
|
|
9
|
-
protected readonly bricks: import("@angular/core").Signal<import("@
|
|
9
|
+
protected readonly bricks: import("@angular/core").Signal<import("@uch-web/ngx-form-designer").WebsiteBrick[]>;
|
|
10
10
|
protected propsValue: Record<string, unknown>;
|
|
11
11
|
protected propsSchema: Record<string, unknown> | null;
|
|
12
12
|
private lastBrickId;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yourself.create/ngx-form-designer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0",
|
|
7
7
|
"@angular/forms": "^19.0.0",
|
|
8
|
-
"@
|
|
8
|
+
"@uch-web/angai": "^0.0.1",
|
|
9
9
|
"@angular/cdk": "^19.0.0",
|
|
10
10
|
"@monaco-editor/loader": "^1.4.0",
|
|
11
11
|
"lucide-angular": "^0.469.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"uuid": "^13.0.0"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
37
|
-
"module": "fesm2022/
|
|
37
|
+
"module": "fesm2022/uch-web-ngx-form-designer.mjs",
|
|
38
38
|
"typings": "index.d.ts",
|
|
39
39
|
"exports": {
|
|
40
40
|
"./package.json": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
".": {
|
|
44
44
|
"types": "./index.d.ts",
|
|
45
|
-
"default": "./fesm2022/
|
|
45
|
+
"default": "./fesm2022/uch-web-ngx-form-designer.mjs"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|