ngx-form-designer 0.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/README.md +279 -0
- package/convert-legacy-rem-to-sass-function.mjs +198 -0
- package/fesm2022/ngx-form-designer.mjs +33548 -0
- package/fesm2022/ngx-form-designer.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/data/data-catalog.d.ts +46 -0
- package/lib/data/data-provider.d.ts +69 -0
- package/lib/data/data-source-client.d.ts +59 -0
- package/lib/data/data-source-parsers.d.ts +7 -0
- package/lib/data/external-data-source.d.ts +29 -0
- package/lib/data/file-upload-client.d.ts +19 -0
- package/lib/data/http-data-source-client.d.ts +31 -0
- package/lib/data/in-memory-data-catalog.service.d.ts +12 -0
- package/lib/data/runtime-field-data-access-registry.service.d.ts +29 -0
- package/lib/data/runtime-field-data-access.d.ts +32 -0
- package/lib/data/tree-utils.d.ts +28 -0
- package/lib/email-renderer/email-renderer.component.d.ts +21 -0
- package/lib/form-core/event-api-reference.d.ts +8 -0
- package/lib/form-core/form-engine.d.ts +55 -0
- package/lib/form-core/form-event-runner.d.ts +28 -0
- package/lib/form-core/models.d.ts +358 -0
- package/lib/form-core/plugin-metadata.d.ts +10 -0
- package/lib/form-core/rule-evaluation.service.d.ts +18 -0
- package/lib/form-core/schema-factory.d.ts +11 -0
- package/lib/form-core/schema-guard.d.ts +18 -0
- package/lib/form-core/schema-utils.d.ts +9 -0
- package/lib/form-designer/data-panel/data-panel.component.d.ts +101 -0
- package/lib/form-designer/designer-context.service.d.ts +29 -0
- package/lib/form-designer/designer-state.service.d.ts +167 -0
- package/lib/form-designer/dynamic-properties/dynamic-properties.component.d.ts +92 -0
- package/lib/form-designer/events-panel/events-panel.component.d.ts +21 -0
- package/lib/form-designer/events-workspace.component.d.ts +125 -0
- package/lib/form-designer/field-palette.component.d.ts +99 -0
- package/lib/form-designer/form-designer-shell.component.d.ts +81 -0
- package/lib/form-designer/form-preview.component.d.ts +36 -0
- package/lib/form-designer/form-settings-inspector.component.d.ts +15 -0
- package/lib/form-designer/global-data-manager.component.d.ts +32 -0
- package/lib/form-designer/inspector-sections/inspector-advanced-section.component.d.ts +17 -0
- package/lib/form-designer/inspector-sections/inspector-backgrounds-section.component.d.ts +14 -0
- package/lib/form-designer/inspector-sections/inspector-borders-section.component.d.ts +45 -0
- package/lib/form-designer/inspector-sections/inspector-effects-section.component.d.ts +22 -0
- package/lib/form-designer/inspector-sections/inspector-layout-section.component.d.ts +33 -0
- package/lib/form-designer/inspector-sections/inspector-position-section.component.d.ts +28 -0
- package/lib/form-designer/inspector-sections/inspector-size-section.component.d.ts +12 -0
- package/lib/form-designer/inspector-sections/inspector-spacing-section.component.d.ts +13 -0
- package/lib/form-designer/inspector-sections/inspector-typography-section.component.d.ts +31 -0
- package/lib/form-designer/json-form-designer.component.d.ts +17 -0
- package/lib/form-designer/layer-tree/layer-tree.component.d.ts +24 -0
- package/lib/form-designer/layout-canvas.component.d.ts +69 -0
- package/lib/form-designer/page-style.d.ts +2 -0
- package/lib/form-designer/properties-panel.component.d.ts +65 -0
- package/lib/form-designer/rules-editor/query-builder/query-builder.component.d.ts +23 -0
- package/lib/form-designer/rules-editor/rules-panel/rules-panel.component.d.ts +15 -0
- package/lib/form-designer/services/widget-definition-resolver.service.d.ts +38 -0
- package/lib/form-designer/template-library.d.ts +9 -0
- package/lib/form-designer/widget-inspector.component.d.ts +30 -0
- package/lib/form-renderer/form-viewer/form-viewer-readonly.component.d.ts +56 -0
- package/lib/form-renderer/form-viewer/form-viewer.component.d.ts +55 -0
- package/lib/form-renderer/json-form-renderer.component.d.ts +98 -0
- package/lib/form-renderer/layout-node.component.d.ts +94 -0
- package/lib/plugins/core-plugins.d.ts +5 -0
- package/lib/plugins/designer-plugin.d.ts +15 -0
- package/lib/plugins/plugin-context.d.ts +18 -0
- package/lib/plugins/plugin-providers.d.ts +3 -0
- package/lib/plugins/section-definition.d.ts +16 -0
- package/lib/theme/theme.service.d.ts +15 -0
- package/lib/ui/json-schema-editor.component.d.ts +27 -0
- package/lib/ui/monaco-editor.component.d.ts +24 -0
- package/lib/ui/ui-accordion.component.d.ts +11 -0
- package/lib/ui/ui-box-model.component.d.ts +55 -0
- package/lib/ui/ui-color-swatch.component.d.ts +12 -0
- package/lib/ui/ui-dimension.component.d.ts +21 -0
- package/lib/ui/ui-edge-box.component.d.ts +20 -0
- package/lib/ui/ui-field-wrapper.component.d.ts +8 -0
- package/lib/ui/ui-icon.module.d.ts +7 -0
- package/lib/ui/ui-input.component.d.ts +17 -0
- package/lib/ui/ui-range-number.component.d.ts +16 -0
- package/lib/ui/ui-select-icon.component.d.ts +18 -0
- package/lib/ui/ui-tabs.component.d.ts +25 -0
- package/lib/website/website-brick-studio.component.d.ts +67 -0
- package/lib/website/website-designer-shell.component.d.ts +53 -0
- package/lib/website/website-preview-shell.component.d.ts +25 -0
- package/lib/website/website-project.models.d.ts +78 -0
- package/lib/website/website-project.service.d.ts +50 -0
- package/lib/website/website-section-library.d.ts +6 -0
- package/lib/widgets/email-widgets/email-button-widget.component.d.ts +15 -0
- package/lib/widgets/email-widgets/email-heading-widget.component.d.ts +15 -0
- package/lib/widgets/email-widgets/email-text-widget.component.d.ts +13 -0
- package/lib/widgets/email-widgets.d.ts +2 -0
- package/lib/widgets/field-widgets/checkbox/checkbox-widget.component.d.ts +28 -0
- package/lib/widgets/field-widgets/checkbox-group/checkbox-group-widget.component.d.ts +40 -0
- package/lib/widgets/field-widgets/file-upload/file-upload-widget.component.d.ts +45 -0
- package/lib/widgets/field-widgets/radio/radio-widget.component.d.ts +39 -0
- package/lib/widgets/field-widgets/repeatable-group/repeatable-group-widget.component.d.ts +69 -0
- package/lib/widgets/field-widgets/rich-text/rich-text-widget.component.d.ts +17 -0
- package/lib/widgets/field-widgets/search/search-widget.component.d.ts +56 -0
- package/lib/widgets/field-widgets/select/select-widget.component.d.ts +53 -0
- package/lib/widgets/field-widgets/text-field/text-field.component.d.ts +39 -0
- package/lib/widgets/field-widgets/tree-select/tree-select-widget.component.d.ts +47 -0
- package/lib/widgets/page-link-context.d.ts +8 -0
- package/lib/widgets/page-widgets/brick-settings.component.d.ts +23 -0
- package/lib/widgets/page-widgets/brick-widget.component.d.ts +47 -0
- package/lib/widgets/page-widgets/button-link-settings.component.d.ts +23 -0
- package/lib/widgets/page-widgets/button-widget.component.d.ts +21 -0
- package/lib/widgets/page-widgets/heading-widget.component.d.ts +22 -0
- package/lib/widgets/page-widgets/inline-quill-editor.component.d.ts +35 -0
- package/lib/widgets/page-widgets/table-inspector.component.d.ts +17 -0
- package/lib/widgets/page-widgets/table-widget.component.d.ts +36 -0
- package/lib/widgets/page-widgets/text-block-widget.component.d.ts +22 -0
- package/lib/widgets/page-widgets.d.ts +2 -0
- package/lib/widgets/static-widgets/image/image-widget.component.d.ts +20 -0
- package/lib/widgets/style-helpers.d.ts +8 -0
- package/lib/widgets/style-properties.d.ts +28 -0
- package/lib/widgets/style-sections.d.ts +1 -0
- package/lib/widgets/table-widget.d.ts +2 -0
- package/lib/widgets/widget-definition.d.ts +81 -0
- package/lib/widgets/widget-editor-context.d.ts +8 -0
- package/lib/widgets/widget-packs.d.ts +4 -0
- package/lib/widgets/widgets.d.ts +2 -0
- package/package.json +47 -0
- package/public-api.d.ts +73 -0
- package/style-test-bug.scss +2562 -0
- package/tailwind.preset.js +62 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DesignerEventApiDefinition, FormSchema, UploadedFileRef, WidgetEventApiExecutor } from '../../form-core/models';
|
|
3
|
+
import { JsonFormRendererComponent, FormSubmitResult, FormValidationResult, FormValueMap, GroupedFormValues, CombinedFormValues } from '../json-form-renderer.component';
|
|
4
|
+
import { type FieldDataAccessMap, type RuntimeFieldDataAccessApi } from '../../data/runtime-field-data-access-registry.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface FormViewerOptions {
|
|
7
|
+
showSubmitButton?: boolean;
|
|
8
|
+
submitLabel?: string;
|
|
9
|
+
emitOnChange?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type FormViewerDataInput = Record<string, unknown> | FormValueMap | GroupedFormValues | CombinedFormValues | FormSubmitResult;
|
|
12
|
+
export declare class FormViewerComponent implements OnInit, OnDestroy {
|
|
13
|
+
schema: FormSchema;
|
|
14
|
+
set data(value: FormViewerDataInput);
|
|
15
|
+
get data(): FormViewerDataInput;
|
|
16
|
+
options: FormViewerOptions;
|
|
17
|
+
viewOnly: boolean;
|
|
18
|
+
eventApis: DesignerEventApiDefinition[];
|
|
19
|
+
eventApiExecutor?: WidgetEventApiExecutor;
|
|
20
|
+
fieldDataAccessMap?: FieldDataAccessMap;
|
|
21
|
+
fieldDataAccessApi?: RuntimeFieldDataAccessApi;
|
|
22
|
+
formContentId?: string;
|
|
23
|
+
formContentVersion?: string;
|
|
24
|
+
formDataChange: EventEmitter<FormValueMap>;
|
|
25
|
+
formValidationChange: EventEmitter<FormValidationResult>;
|
|
26
|
+
uploadedFilesChange: EventEmitter<Record<string, UploadedFileRef[]>>;
|
|
27
|
+
submit: EventEmitter<FormSubmitResult>;
|
|
28
|
+
renderer: JsonFormRendererComponent;
|
|
29
|
+
breakpoint: import("@angular/core").WritableSignal<"xs" | "sm" | "md" | "lg" | "xl" | "2xl">;
|
|
30
|
+
private el;
|
|
31
|
+
private zone;
|
|
32
|
+
private resizeObserver?;
|
|
33
|
+
private currentValues;
|
|
34
|
+
private _data;
|
|
35
|
+
protected normalizedInitialValues: Record<string, unknown>;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
private setupResizeObserver;
|
|
39
|
+
private updateBreakpoint;
|
|
40
|
+
onValueChange(values: FormValueMap): void;
|
|
41
|
+
onValidationChange(result: FormValidationResult): void;
|
|
42
|
+
onUploadedFilesChange(result: Record<string, UploadedFileRef[]>): void;
|
|
43
|
+
triggerSubmit(): void;
|
|
44
|
+
onRendererSubmit(result: FormSubmitResult): void;
|
|
45
|
+
private normalizeInitialValues;
|
|
46
|
+
private collectOutputShapeFields;
|
|
47
|
+
private deserializeFieldValue;
|
|
48
|
+
private formFieldMapToNameMap;
|
|
49
|
+
private isOutputShapeCandidate;
|
|
50
|
+
private isFormFieldMap;
|
|
51
|
+
private isFormFieldValue;
|
|
52
|
+
private isRecord;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormViewerComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormViewerComponent, "app-form-viewer", never, { "schema": { "alias": "schema"; "required": true; }; "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "viewOnly": { "alias": "viewOnly"; "required": false; }; "eventApis": { "alias": "eventApis"; "required": false; }; "eventApiExecutor": { "alias": "eventApiExecutor"; "required": false; }; "fieldDataAccessMap": { "alias": "fieldDataAccessMap"; "required": false; }; "fieldDataAccessApi": { "alias": "fieldDataAccessApi"; "required": false; }; "formContentId": { "alias": "formContentId"; "required": false; }; "formContentVersion": { "alias": "formContentVersion"; "required": false; }; }, { "formDataChange": "formDataChange"; "formValidationChange": "formValidationChange"; "uploadedFilesChange": "uploadedFilesChange"; "submit": "submit"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { DesignerEventApiDefinition, FormSchema, UploadedFileRef, WidgetEventApiExecutor } from '../form-core/models';
|
|
3
|
+
import { FormEngine } from '../form-core/form-engine';
|
|
4
|
+
import { DesignerStateService } from '../form-designer/designer-state.service';
|
|
5
|
+
import { type FieldDataAccessMap, type RuntimeFieldDataAccessApi } from '../data/runtime-field-data-access-registry.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface FormFieldValue {
|
|
8
|
+
fieldName: string;
|
|
9
|
+
fieldValue: unknown;
|
|
10
|
+
fileType?: string | string[];
|
|
11
|
+
data?: string | string[];
|
|
12
|
+
}
|
|
13
|
+
export type FormValueMap = Record<string, FormFieldValue>;
|
|
14
|
+
export type GroupedFormValues = Record<string, FormValueMap>;
|
|
15
|
+
export type CombinedFormValues = Record<string, FormFieldValue | FormValueMap>;
|
|
16
|
+
export interface FormValidationResult {
|
|
17
|
+
errors: Record<string, string[]>;
|
|
18
|
+
isValid: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface FormSubmitResult {
|
|
21
|
+
values: FormValueMap;
|
|
22
|
+
groupedValues?: GroupedFormValues;
|
|
23
|
+
combinedValues?: CombinedFormValues;
|
|
24
|
+
uploadedFiles: Record<string, UploadedFileRef[]>;
|
|
25
|
+
validation: FormValidationResult;
|
|
26
|
+
}
|
|
27
|
+
export declare class JsonFormRendererComponent implements OnInit, OnChanges, OnDestroy {
|
|
28
|
+
private designerState;
|
|
29
|
+
schema: FormSchema;
|
|
30
|
+
initialValues: Record<string, any>;
|
|
31
|
+
mode: 'live' | 'preview' | 'design';
|
|
32
|
+
device: 'desktop' | 'mobile';
|
|
33
|
+
breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
34
|
+
eventLogger?: {
|
|
35
|
+
log: (message: string, data?: unknown) => void;
|
|
36
|
+
warn: (message: string, data?: unknown) => void;
|
|
37
|
+
};
|
|
38
|
+
eventApis: DesignerEventApiDefinition[];
|
|
39
|
+
eventApiExecutor?: WidgetEventApiExecutor;
|
|
40
|
+
uploadOnSubmit: boolean;
|
|
41
|
+
fieldDataAccessMap?: FieldDataAccessMap;
|
|
42
|
+
fieldDataAccessApi?: RuntimeFieldDataAccessApi;
|
|
43
|
+
formContentId?: string;
|
|
44
|
+
formContentVersion?: string;
|
|
45
|
+
valueChange: EventEmitter<FormValueMap>;
|
|
46
|
+
groupedValueChange: EventEmitter<GroupedFormValues>;
|
|
47
|
+
combinedValueChange: EventEmitter<CombinedFormValues>;
|
|
48
|
+
validationChange: EventEmitter<FormValidationResult>;
|
|
49
|
+
uploadedFilesChange: EventEmitter<Record<string, UploadedFileRef[]>>;
|
|
50
|
+
formSubmit: EventEmitter<FormSubmitResult>;
|
|
51
|
+
engine: FormEngine;
|
|
52
|
+
private runner?;
|
|
53
|
+
private readonly uploadClient;
|
|
54
|
+
private readonly runtimeFieldDataAccessRegistry;
|
|
55
|
+
private readonly dataCatalog;
|
|
56
|
+
constructor(designerState: DesignerStateService);
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
private createEngine;
|
|
61
|
+
private syncRuntimeFieldDataAccessContext;
|
|
62
|
+
private unregisterRuntimeFieldDataAccessContext;
|
|
63
|
+
private emitValuePayload;
|
|
64
|
+
private disposeRunner;
|
|
65
|
+
private configureRunner;
|
|
66
|
+
private resolveEventApiExecutor;
|
|
67
|
+
private executeApiFromDefinitions;
|
|
68
|
+
private serializeQueryParams;
|
|
69
|
+
private writeEventDatasource;
|
|
70
|
+
private resolveEventApiDefinition;
|
|
71
|
+
private inferDatasourceSchema;
|
|
72
|
+
private inferDatasourceValueType;
|
|
73
|
+
onNodeSelect(nodeId: string): void;
|
|
74
|
+
onSubmit(event: Event): Promise<void>;
|
|
75
|
+
private getValidationResult;
|
|
76
|
+
private uploadPendingFiles;
|
|
77
|
+
private uploadPendingFilesInSchema;
|
|
78
|
+
private getPendingFiles;
|
|
79
|
+
private isFile;
|
|
80
|
+
private isFileList;
|
|
81
|
+
private isObjectRecord;
|
|
82
|
+
private buildFieldValueMap;
|
|
83
|
+
private buildFieldValueMapForSchema;
|
|
84
|
+
private buildFileFieldMetadata;
|
|
85
|
+
private readFileBase64;
|
|
86
|
+
private readFileBytes;
|
|
87
|
+
private encodeBytesToBase64;
|
|
88
|
+
private toSingleOrList;
|
|
89
|
+
private getUploadedFileRefs;
|
|
90
|
+
private mergeFileMetadata;
|
|
91
|
+
private buildGroupedValues;
|
|
92
|
+
private buildCombinedValues;
|
|
93
|
+
private isFieldValue;
|
|
94
|
+
private isGroupValue;
|
|
95
|
+
private isUploadedFileRef;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormRendererComponent, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JsonFormRendererComponent, "app-json-form-renderer", never, { "schema": { "alias": "schema"; "required": false; }; "initialValues": { "alias": "initialValues"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "device": { "alias": "device"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "eventLogger": { "alias": "eventLogger"; "required": false; }; "eventApis": { "alias": "eventApis"; "required": false; }; "eventApiExecutor": { "alias": "eventApiExecutor"; "required": false; }; "uploadOnSubmit": { "alias": "uploadOnSubmit"; "required": false; }; "fieldDataAccessMap": { "alias": "fieldDataAccessMap"; "required": false; }; "fieldDataAccessApi": { "alias": "fieldDataAccessApi"; "required": false; }; "formContentId": { "alias": "formContentId"; "required": false; }; "formContentVersion": { "alias": "formContentVersion"; "required": false; }; }, { "valueChange": "valueChange"; "groupedValueChange": "groupedValueChange"; "combinedValueChange": "combinedValueChange"; "validationChange": "validationChange"; "uploadedFilesChange": "uploadedFilesChange"; "formSubmit": "formSubmit"; }, never, never, true, never>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ViewContainerRef, OnInit, OnChanges, SimpleChanges, EventEmitter, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { LayoutNode, ColumnNode, RowNode, FieldSchema } from '../form-core/models';
|
|
3
|
+
import { WidgetDefinition } from '../widgets/widget-definition';
|
|
4
|
+
import { FormEngine } from '../form-core/form-engine';
|
|
5
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
|
+
import { DesignerStateService } from '../form-designer/designer-state.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class LayoutNodeComponent implements OnInit, OnChanges, OnDestroy {
|
|
9
|
+
private _widgetDefs;
|
|
10
|
+
private designerState;
|
|
11
|
+
private cdr;
|
|
12
|
+
private el;
|
|
13
|
+
node: LayoutNode;
|
|
14
|
+
engine: FormEngine;
|
|
15
|
+
fields: FieldSchema[];
|
|
16
|
+
designMode: boolean;
|
|
17
|
+
readOnlyMode: boolean;
|
|
18
|
+
scopePath: string[];
|
|
19
|
+
device: 'desktop' | 'mobile';
|
|
20
|
+
breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
21
|
+
nodeDrop: EventEmitter<CdkDragDrop<any, any, any>>;
|
|
22
|
+
nodeSelect: EventEmitter<string>;
|
|
23
|
+
widgetContainer: ViewContainerRef;
|
|
24
|
+
connectedDropLists: string[];
|
|
25
|
+
private readonly allWidgetDefs;
|
|
26
|
+
private widgetDefs;
|
|
27
|
+
private widgetComponentRef?;
|
|
28
|
+
private widgetDefId?;
|
|
29
|
+
private widgetControl?;
|
|
30
|
+
private widgetControlName?;
|
|
31
|
+
private renderEngineProxy?;
|
|
32
|
+
private renderEngineSource?;
|
|
33
|
+
private renderEngineMode;
|
|
34
|
+
private resizeStartX;
|
|
35
|
+
private resizeStartSpan;
|
|
36
|
+
private readonly destroyRef;
|
|
37
|
+
constructor(_widgetDefs: WidgetDefinition[][], designerState: DesignerStateService, cdr: ChangeDetectorRef, el: ElementRef);
|
|
38
|
+
get isSelected(): boolean;
|
|
39
|
+
protected isNodeSelected(nodeId: string): boolean;
|
|
40
|
+
onWidgetClick(e: Event): void;
|
|
41
|
+
onWidgetContextMenu(e: MouseEvent): void;
|
|
42
|
+
onColumnClick(e: Event): void;
|
|
43
|
+
onRowClick(e: Event): void;
|
|
44
|
+
onRowContextMenu(e: MouseEvent): void;
|
|
45
|
+
onColumnContextMenu(e: MouseEvent): void;
|
|
46
|
+
onDrop(event: CdkDragDrop<any>): void;
|
|
47
|
+
moveNodeUp(): void;
|
|
48
|
+
moveNodeDown(): void;
|
|
49
|
+
deleteNode(): void;
|
|
50
|
+
duplicateNode(): void;
|
|
51
|
+
insertRowInColumn(): void;
|
|
52
|
+
wrapWidgetInRow(): void;
|
|
53
|
+
getNodeTypeLabel(): string;
|
|
54
|
+
private resizeStartY;
|
|
55
|
+
private resizeStartHeight;
|
|
56
|
+
private resizingNode;
|
|
57
|
+
private resizingCol;
|
|
58
|
+
private resizeMoveListener;
|
|
59
|
+
private resizeUpListener;
|
|
60
|
+
get isResizing(): boolean;
|
|
61
|
+
ngOnInit(): void;
|
|
62
|
+
ngOnDestroy(): void;
|
|
63
|
+
onResizeStart(e: MouseEvent, node: LayoutNode): void;
|
|
64
|
+
onColResizeStart(e: MouseEvent, node: LayoutNode): void;
|
|
65
|
+
onResizeMove(e: MouseEvent): void;
|
|
66
|
+
onResizeEnd(): void;
|
|
67
|
+
onNodeDrop(event: CdkDragDrop<any>): void;
|
|
68
|
+
onNodeSelect(id: string): void;
|
|
69
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
70
|
+
renderWidget(forceRecreate?: boolean): void;
|
|
71
|
+
private updateWidgetDefinitions;
|
|
72
|
+
private resolveWidgetDefinition;
|
|
73
|
+
private createWidgetInjector;
|
|
74
|
+
private getWidgetControl;
|
|
75
|
+
/** TrackBy function for *ngFor to prevent unnecessary component destruction */
|
|
76
|
+
trackById(index: number, node: LayoutNode): string;
|
|
77
|
+
protected getScopedNodeId(nodeId: string): string;
|
|
78
|
+
protected hasActiveNestedSelection(): boolean;
|
|
79
|
+
asRow(node: LayoutNode): RowNode;
|
|
80
|
+
asCol(node: LayoutNode): ColumnNode;
|
|
81
|
+
getColClasses(node: LayoutNode): string;
|
|
82
|
+
getColContainerClasses(node: LayoutNode): string;
|
|
83
|
+
private getEffectiveSpan;
|
|
84
|
+
private getSpanClass;
|
|
85
|
+
getStyle(node: LayoutNode): Record<string, any>;
|
|
86
|
+
private getEngineForRender;
|
|
87
|
+
isNodeVisible(node: LayoutNode): boolean;
|
|
88
|
+
shouldShowRuleBlur(node: LayoutNode): boolean;
|
|
89
|
+
isRuleHidden(node: LayoutNode): boolean;
|
|
90
|
+
isRuleControlled(node: LayoutNode): boolean;
|
|
91
|
+
private getFieldForWidgetNode;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutNodeComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutNodeComponent, "app-layout-node", never, { "node": { "alias": "node"; "required": false; }; "engine": { "alias": "engine"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "designMode": { "alias": "designMode"; "required": false; }; "readOnlyMode": { "alias": "readOnlyMode"; "required": false; }; "scopePath": { "alias": "scopePath"; "required": false; }; "device": { "alias": "device"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "connectedDropLists": { "alias": "connectedDropLists"; "required": false; }; }, { "nodeDrop": "nodeDrop"; "nodeSelect": "nodeSelect"; }, never, never, true, never>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DesignerFlavor } from '../form-core/models';
|
|
2
|
+
import { WidgetDefinition } from '../widgets/widget-definition';
|
|
3
|
+
import { DesignerPlugin } from './designer-plugin';
|
|
4
|
+
export declare const CORE_DESIGNER_PLUGINS: DesignerPlugin[];
|
|
5
|
+
export declare function flattenPluginWidgets(plugins: DesignerPlugin[], flavor?: DesignerFlavor): WidgetDefinition[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DesignerFlavor } from '../form-core/models';
|
|
3
|
+
import { WidgetDefinition } from '../widgets/widget-definition';
|
|
4
|
+
import type { DesignerSectionDefinition } from './section-definition';
|
|
5
|
+
export interface DesignerPlugin {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
flavors: DesignerFlavor[];
|
|
10
|
+
widgets?: WidgetDefinition[];
|
|
11
|
+
sections?: DesignerSectionDefinition[];
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
version?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DESIGNER_PLUGINS: InjectionToken<DesignerPlugin[]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DesignerContext } from '../form-designer/designer-context.service';
|
|
2
|
+
import { FieldSchema } from '../form-core/models';
|
|
3
|
+
export interface PluginContext {
|
|
4
|
+
readonly pluginId: string;
|
|
5
|
+
getSchema(): ReturnType<DesignerContext['getSchema']>;
|
|
6
|
+
updateSchema(mutator: (schema: ReturnType<DesignerContext['getSchema']>) => ReturnType<DesignerContext['getSchema']>): void;
|
|
7
|
+
getFields(): FieldSchema[];
|
|
8
|
+
getFieldById(id: string): FieldSchema | undefined;
|
|
9
|
+
getMySchemaMeta<T = unknown>(): T | undefined;
|
|
10
|
+
setMySchemaMeta<T = unknown>(value: T): void;
|
|
11
|
+
getMyFieldMeta<T = unknown>(fieldId: string): T | undefined;
|
|
12
|
+
setMyFieldMeta<T = unknown>(fieldId: string, value: T): void;
|
|
13
|
+
style: {
|
|
14
|
+
normalize: (style?: Record<string, any>) => Record<string, any>;
|
|
15
|
+
merge: (base?: Record<string, any>, override?: Record<string, any>) => Record<string, any>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function createPluginContext(pluginId: string): PluginContext;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { DesignerFlavor, FieldSchema, RowNode } from '../form-core/models';
|
|
3
|
+
export interface DesignerSectionDraft {
|
|
4
|
+
fields: FieldSchema[];
|
|
5
|
+
layout: RowNode;
|
|
6
|
+
}
|
|
7
|
+
export interface DesignerSectionDefinition {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
category?: string;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
flavor?: DesignerFlavor;
|
|
14
|
+
build: () => DesignerSectionDraft;
|
|
15
|
+
}
|
|
16
|
+
export declare const DESIGNER_SECTIONS: InjectionToken<DesignerSectionDefinition[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface FormTheme {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
properties: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare class ThemeService {
|
|
8
|
+
private document;
|
|
9
|
+
private themes;
|
|
10
|
+
constructor(document: Document);
|
|
11
|
+
setTheme(themeId: string): void;
|
|
12
|
+
getThemes(): FormTheme[];
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JsonSchemaEditorComponent implements AfterViewInit, OnDestroy {
|
|
4
|
+
readonly schema: import("@angular/core").InputSignal<Record<string, unknown> | null>;
|
|
5
|
+
readonly value: import("@angular/core").InputSignal<Record<string, unknown> | null>;
|
|
6
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<Record<string, unknown>>;
|
|
8
|
+
private readonly containerRef;
|
|
9
|
+
readonly error: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
private editor?;
|
|
12
|
+
private editorReady;
|
|
13
|
+
private suppressChange;
|
|
14
|
+
private schemaKey;
|
|
15
|
+
private valueKey;
|
|
16
|
+
private readonly viewReady;
|
|
17
|
+
private initToken;
|
|
18
|
+
private static modulePromise;
|
|
19
|
+
private readonly syncInputs;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
private destroyEditor;
|
|
23
|
+
private static loadModule;
|
|
24
|
+
private initializeEditor;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonSchemaEditorComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JsonSchemaEditorComponent, "app-json-schema-editor", never, { "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MonacoEditorComponent implements AfterViewInit, OnDestroy {
|
|
4
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly language: import("@angular/core").InputSignal<string>;
|
|
6
|
+
readonly theme: import("@angular/core").InputSignal<string>;
|
|
7
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly minimap: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
readonly options: import("@angular/core").InputSignal<Record<string, unknown> | null>;
|
|
10
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
11
|
+
private readonly containerRef;
|
|
12
|
+
private static configured;
|
|
13
|
+
private monaco?;
|
|
14
|
+
private editor?;
|
|
15
|
+
private suppressChange;
|
|
16
|
+
private subscriptions;
|
|
17
|
+
private resizeObserver?;
|
|
18
|
+
private readonly editorReady;
|
|
19
|
+
private readonly syncInputs;
|
|
20
|
+
ngAfterViewInit(): Promise<void>;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonacoEditorComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonacoEditorComponent, "app-monaco-editor", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "minimap": { "alias": "minimap"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UiAccordionComponent {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
showAdd: boolean;
|
|
7
|
+
get isOpen(): boolean;
|
|
8
|
+
toggle(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiAccordionComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiAccordionComponent, "ui-accordion", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "showAdd": { "alias": "showAdd"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface BoxModelValues {
|
|
4
|
+
marginTop?: any;
|
|
5
|
+
marginRight?: any;
|
|
6
|
+
marginBottom?: any;
|
|
7
|
+
marginLeft?: any;
|
|
8
|
+
paddingTop?: any;
|
|
9
|
+
paddingRight?: any;
|
|
10
|
+
paddingBottom?: any;
|
|
11
|
+
paddingLeft?: any;
|
|
12
|
+
borderWidth?: any;
|
|
13
|
+
width?: any;
|
|
14
|
+
height?: any;
|
|
15
|
+
}
|
|
16
|
+
export declare class UiBoxModelComponent implements OnChanges {
|
|
17
|
+
label: string;
|
|
18
|
+
hint: string;
|
|
19
|
+
helpText: string;
|
|
20
|
+
marginTop: any;
|
|
21
|
+
marginRight: any;
|
|
22
|
+
marginBottom: any;
|
|
23
|
+
marginLeft: any;
|
|
24
|
+
paddingTop: any;
|
|
25
|
+
paddingRight: any;
|
|
26
|
+
paddingBottom: any;
|
|
27
|
+
paddingLeft: any;
|
|
28
|
+
borderWidth: any;
|
|
29
|
+
width: any;
|
|
30
|
+
height: any;
|
|
31
|
+
units: string[];
|
|
32
|
+
defaultUnit: string;
|
|
33
|
+
valueChange: EventEmitter<BoxModelValues>;
|
|
34
|
+
localMarginTop: any;
|
|
35
|
+
localMarginRight: any;
|
|
36
|
+
localMarginBottom: any;
|
|
37
|
+
localMarginLeft: any;
|
|
38
|
+
localPaddingTop: any;
|
|
39
|
+
localPaddingRight: any;
|
|
40
|
+
localPaddingBottom: any;
|
|
41
|
+
localPaddingLeft: any;
|
|
42
|
+
localBorderWidth: any;
|
|
43
|
+
localWidth: any;
|
|
44
|
+
localHeight: any;
|
|
45
|
+
unit: string;
|
|
46
|
+
private readonly fallbackUnits;
|
|
47
|
+
get unitOptions(): string[];
|
|
48
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
49
|
+
onUnitChange(value: string): void;
|
|
50
|
+
emitChange(): void;
|
|
51
|
+
private resolveUnit;
|
|
52
|
+
private normalizeValue;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiBoxModelComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiBoxModelComponent, "ui-box-model", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "paddingTop": { "alias": "paddingTop"; "required": false; }; "paddingRight": { "alias": "paddingRight"; "required": false; }; "paddingBottom": { "alias": "paddingBottom"; "required": false; }; "paddingLeft": { "alias": "paddingLeft"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "units": { "alias": "units"; "required": false; }; "defaultUnit": { "alias": "defaultUnit"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiColorSwatchComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
helpText: string;
|
|
7
|
+
value: string;
|
|
8
|
+
valueChange: EventEmitter<string>;
|
|
9
|
+
blur: EventEmitter<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiColorSwatchComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiColorSwatchComponent, "ui-color-swatch", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "blur": "blur"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiDimensionComponent implements OnChanges {
|
|
4
|
+
label: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
helpText: string;
|
|
7
|
+
width: any;
|
|
8
|
+
height: any;
|
|
9
|
+
valueChange: EventEmitter<{
|
|
10
|
+
width: any;
|
|
11
|
+
height: any;
|
|
12
|
+
}>;
|
|
13
|
+
localWidth: any;
|
|
14
|
+
localHeight: any;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
onWidthChange(value: any): void;
|
|
17
|
+
onHeightChange(value: any): void;
|
|
18
|
+
emitChange(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiDimensionComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiDimensionComponent, "ui-dimension", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiEdgeBoxComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
helpText: string;
|
|
7
|
+
top: any;
|
|
8
|
+
right: any;
|
|
9
|
+
bottom: any;
|
|
10
|
+
left: any;
|
|
11
|
+
valueChange: EventEmitter<{
|
|
12
|
+
top: any;
|
|
13
|
+
right: any;
|
|
14
|
+
bottom: any;
|
|
15
|
+
left: any;
|
|
16
|
+
}>;
|
|
17
|
+
emitChange(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiEdgeBoxComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiEdgeBoxComponent, "ui-edge-box", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "top": { "alias": "top"; "required": false; }; "right": { "alias": "right"; "required": false; }; "bottom": { "alias": "bottom"; "required": false; }; "left": { "alias": "left"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UiFieldWrapperComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
hint: string;
|
|
5
|
+
helpText: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFieldWrapperComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiFieldWrapperComponent, "ui-field-wrapper", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "lucide-angular";
|
|
3
|
+
export declare class UiIconModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiIconModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiIconModule, never, [typeof i1.LucideAngularModule], [typeof i1.LucideAngularModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UiIconModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiInputComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
helpText: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
type: 'text' | 'number';
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
model: any;
|
|
13
|
+
modelChange: EventEmitter<any>;
|
|
14
|
+
onBlur: EventEmitter<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiInputComponent, "ui-input", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiRangeNumberComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
helpText: string;
|
|
7
|
+
prefix: string;
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
step: number;
|
|
11
|
+
value: number;
|
|
12
|
+
valueChange: EventEmitter<number>;
|
|
13
|
+
emitChange(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiRangeNumberComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiRangeNumberComponent, "ui-range-number", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface IconOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
icon?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UiSelectIconComponent {
|
|
9
|
+
label: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
helpText: string;
|
|
12
|
+
options: IconOption[];
|
|
13
|
+
value: any;
|
|
14
|
+
valueChange: EventEmitter<any>;
|
|
15
|
+
select(val: any): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiSelectIconComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiSelectIconComponent, "ui-select-icon", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryList, AfterContentInit, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UiTabComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
badge?: string;
|
|
8
|
+
badgeTone: 'neutral' | 'accent';
|
|
9
|
+
template: TemplateRef<unknown>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTabComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTabComponent, "ui-tab", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "badgeTone": { "alias": "badgeTone"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class UiTabsComponent implements AfterContentInit {
|
|
14
|
+
tabQuery: QueryList<UiTabComponent>;
|
|
15
|
+
activeTab?: string;
|
|
16
|
+
activeTabChange: EventEmitter<string>;
|
|
17
|
+
private _internalIndex;
|
|
18
|
+
tabs: UiTabComponent[];
|
|
19
|
+
ngAfterContentInit(): void;
|
|
20
|
+
isActive(tab: UiTabComponent): boolean;
|
|
21
|
+
activate(tab: UiTabComponent): void;
|
|
22
|
+
get activeTemplate(): TemplateRef<unknown> | null;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTabsComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTabsComponent, "ui-tabs", never, { "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, ["tabQuery"], never, true, never>;
|
|
25
|
+
}
|