@yourself.create/ngx-form-designer 0.0.6 → 0.0.8
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/fesm2022/uch-web-ngx-form-designer.mjs +325 -77
- package/fesm2022/uch-web-ngx-form-designer.mjs.map +1 -1
- package/lib/data/data-provider.d.ts +4 -0
- package/lib/form-designer/data-panel/data-panel.component.d.ts +5 -1
- package/lib/form-designer/form-preview.component.d.ts +1 -1
- package/lib/form-designer/layout-canvas.component.d.ts +1 -1
- package/lib/form-designer/rules-editor/rules-panel/rules-panel.component.d.ts +1 -0
- package/lib/form-renderer/json-form-renderer.component.d.ts +4 -2
- package/lib/widgets/field-widgets/text-field/text-field.component.d.ts +8 -0
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export declare abstract class DataProvider {
|
|
|
17
17
|
abstract getList(field: FieldSchema, engine?: FormEngine): Promise<DataRow[]>;
|
|
18
18
|
abstract getValue(field: FieldSchema, engine?: FormEngine): Promise<unknown>;
|
|
19
19
|
abstract resolveValue(field: FieldSchema, value: unknown): Promise<string>;
|
|
20
|
+
getValueDisplayPrefix(_field: FieldSchema, _engine?: FormEngine): Promise<string>;
|
|
20
21
|
queryOptions(field: FieldSchema, query: {
|
|
21
22
|
term: string;
|
|
22
23
|
limit?: number;
|
|
@@ -49,10 +50,13 @@ export declare class DefaultDataProvider extends DataProvider {
|
|
|
49
50
|
getList(field: FieldSchema, engine?: FormEngine): Promise<DataRow[]>;
|
|
50
51
|
queryList(field: FieldSchema, query: ListQuery, engine?: FormEngine): Promise<ListResult>;
|
|
51
52
|
getValue(field: FieldSchema, engine?: FormEngine): Promise<unknown>;
|
|
53
|
+
getValueDisplayPrefix(field: FieldSchema, engine?: FormEngine): Promise<string>;
|
|
52
54
|
resolveValue(field: FieldSchema, value: unknown): Promise<string>;
|
|
53
55
|
private getRawRows;
|
|
56
|
+
private getCurrentFieldValue;
|
|
54
57
|
private getGlobalRows;
|
|
55
58
|
private getOptionRowContexts;
|
|
59
|
+
private getScalarValueContext;
|
|
56
60
|
private resolveCollectionRowContexts;
|
|
57
61
|
private resolveCollectionRows;
|
|
58
62
|
private extractRowContexts;
|
|
@@ -99,7 +99,11 @@ export declare class DataPanelComponent implements OnChanges {
|
|
|
99
99
|
showRowsPathControls(): boolean;
|
|
100
100
|
showScalarMappingControls(): boolean;
|
|
101
101
|
showOptionMappingControls(): boolean;
|
|
102
|
-
|
|
102
|
+
showDisplayFormattingControls(): boolean;
|
|
103
|
+
supportsNumericDisplayFormatting(): boolean;
|
|
104
|
+
displayFormattingTitle(): string;
|
|
105
|
+
displayFormattingDescription(): string;
|
|
106
|
+
numericDisplayFormattingLabel(): string;
|
|
103
107
|
showStaticOptionsEditor(): boolean;
|
|
104
108
|
showStaticScalarEditor(): boolean;
|
|
105
109
|
staticScalarLabel(): string;
|
|
@@ -33,7 +33,7 @@ export declare class FormPreviewComponent {
|
|
|
33
33
|
ok: boolean;
|
|
34
34
|
reason?: string;
|
|
35
35
|
}>;
|
|
36
|
-
getContainerWidth(): "
|
|
36
|
+
getContainerWidth(): "375px" | "576px" | "768px" | "992px" | "1200px" | "1400px" | "100%";
|
|
37
37
|
getPageStyle(): Record<string, any>;
|
|
38
38
|
close(): void;
|
|
39
39
|
updateData(data: any): void;
|
|
@@ -56,7 +56,7 @@ export declare class LayoutCanvasComponent implements AfterViewInit {
|
|
|
56
56
|
toggleLiveSchemaEditor(): void;
|
|
57
57
|
closeLiveSchemaEditor(): void;
|
|
58
58
|
onLiveSchemaEditorTextChange(nextText: string): void;
|
|
59
|
-
getCanvasWidth(): "
|
|
59
|
+
getCanvasWidth(): "375px" | "576px" | "768px" | "992px" | "1200px" | "1400px" | "100%";
|
|
60
60
|
getCanvasHeight(): "667px" | "800px";
|
|
61
61
|
getPageStyle(): Record<string, any>;
|
|
62
62
|
pageTransform(): string;
|
|
@@ -117,10 +117,12 @@ export declare class JsonFormRendererComponent implements OnInit, OnChanges, OnD
|
|
|
117
117
|
private readFileBytes;
|
|
118
118
|
private encodeBytesToBase64;
|
|
119
119
|
private toSingleOrList;
|
|
120
|
-
private
|
|
120
|
+
private buildFileSubmitValueEntries;
|
|
121
|
+
private normalizeFileFieldEntries;
|
|
122
|
+
private normalizeSingleFileFieldEntry;
|
|
123
|
+
private buildPendingSubmitFileValue;
|
|
121
124
|
private getUploadedFileRefs;
|
|
122
125
|
private buildFieldLabelMetadata;
|
|
123
|
-
private mergeFileMetadata;
|
|
124
126
|
private buildGroupedValues;
|
|
125
127
|
private buildCombinedValues;
|
|
126
128
|
private isFieldValue;
|
|
@@ -9,6 +9,8 @@ export declare class TextFieldWidgetComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
private readonly dependencyValueSnapshot;
|
|
10
10
|
private isControlFocused;
|
|
11
11
|
private isControlHovered;
|
|
12
|
+
protected displayPrefix: string;
|
|
13
|
+
protected formattedNumberValue: string;
|
|
12
14
|
set config(value: FieldSchema);
|
|
13
15
|
get config(): FieldSchema;
|
|
14
16
|
engine?: FormEngine;
|
|
@@ -23,6 +25,8 @@ export declare class TextFieldWidgetComponent implements OnInit, OnDestroy {
|
|
|
23
25
|
get fieldId(): string;
|
|
24
26
|
protected isTextarea(): boolean;
|
|
25
27
|
protected isColorField(): boolean;
|
|
28
|
+
protected usesFormattedNumberInput(): boolean;
|
|
29
|
+
protected hasDisplayPrefix(): boolean;
|
|
26
30
|
protected getControlClass(multiline?: boolean): string;
|
|
27
31
|
protected getAccessibleLabel(): string;
|
|
28
32
|
protected nativeLabel(): string;
|
|
@@ -41,6 +45,7 @@ export declare class TextFieldWidgetComponent implements OnInit, OnDestroy {
|
|
|
41
45
|
ngOnDestroy(): void;
|
|
42
46
|
getWrapperStyles(): Record<string, any>;
|
|
43
47
|
getControlStyles(): Record<string, any>;
|
|
48
|
+
getSingleLineControlStyles(): Record<string, any>;
|
|
44
49
|
private hasWrapperFrame;
|
|
45
50
|
get visible(): boolean;
|
|
46
51
|
get enabled(): boolean;
|
|
@@ -53,6 +58,9 @@ export declare class TextFieldWidgetComponent implements OnInit, OnDestroy {
|
|
|
53
58
|
private seedDependencySnapshot;
|
|
54
59
|
private haveDependencyValuesChanged;
|
|
55
60
|
private getDependencyFieldNames;
|
|
61
|
+
protected onFormattedNumberInput(event: Event): void;
|
|
62
|
+
private syncFormattedNumberValue;
|
|
63
|
+
private formatNumericValue;
|
|
56
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldWidgetComponent, never>;
|
|
57
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldWidgetComponent, "app-text-field-widget", never, { "config": { "alias": "config"; "required": false; }; "engine": { "alias": "engine"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
|
|
58
66
|
}
|