kwikid-forms 0.6.6 → 0.6.7
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/bundles/kwikid-forms.umd.js +89 -13
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/builder/builder-form-editor/builder-form-editor.component.js +40 -4
- package/esm2015/lib/builder/builder-form-editor/builder-form-editor.module.js +4 -3
- package/esm2015/lib/builder/builder-form-editor/builder.form-editor.constants.js +2 -1
- package/esm2015/lib/builder/builder-form-editor/pipes/json-formatter.pipe.js +19 -0
- package/esm2015/lib/renderer/config-converter/config-converter.constants.js +7 -1
- package/esm2015/lib/renderer/config-converter/config-converter.js +10 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.fields.definition.js +2 -1
- package/esm2015/lib/renderer/form-view/form-view.component.js +2 -2
- package/esm2015/lib/renderer/form-view/form-view.module.js +8 -5
- package/fesm2015/kwikid-forms.js +83 -10
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/builder/builder-form-editor/builder-form-editor.component.d.ts +4 -0
- package/lib/builder/builder-form-editor/builder-form-editor.module.d.ts +6 -5
- package/lib/builder/builder-form-editor/pipes/json-formatter.pipe.d.ts +7 -0
- package/lib/renderer/config-converter/config-converter.constants.d.ts +6 -0
- package/lib/renderer/form-view/definitions/form-view.fields.definition.d.ts +12 -2
- package/lib/renderer/form-view/form-view.module.d.ts +1 -1
- package/package.json +2 -2
|
@@ -25,6 +25,8 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
|
|
|
25
25
|
activeFieldConfigValidatorsConfig: any;
|
|
26
26
|
showFieldConfigPropertiesConfigEditor: boolean;
|
|
27
27
|
activeFieldConfigPropertiesConfig: any;
|
|
28
|
+
showFieldConfigOptionsConfigEditor: boolean;
|
|
29
|
+
activeFieldConfigOptionsConfig: any;
|
|
28
30
|
editorTypeOptions: any[];
|
|
29
31
|
activeEditorType: TFormEditorType;
|
|
30
32
|
activeFormConfig_Fields: any[];
|
|
@@ -64,12 +66,14 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
|
|
|
64
66
|
*/
|
|
65
67
|
handleOnClickEditValidators(e: any): void;
|
|
66
68
|
handleOnClickEditProperties(e: any): void;
|
|
69
|
+
handleOnClickEditOptions(e: any): void;
|
|
67
70
|
/**
|
|
68
71
|
* Methods to handle change in input values for Fields Keys
|
|
69
72
|
*/
|
|
70
73
|
handleOnInput(e: any): void;
|
|
71
74
|
handleOnInputFieldConfigValidatorsConfig(e: any): void;
|
|
72
75
|
handleOnInputFieldConfigPropertiesConfig(e: any): void;
|
|
76
|
+
handleOnInputFieldConfigOptionsConfig(e: any): void;
|
|
73
77
|
/**
|
|
74
78
|
* Methods to handle deletion of field
|
|
75
79
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./builder-form-editor.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
3
|
+
import * as i2 from "./pipes/json-formatter.pipe";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "kwikui";
|
|
7
|
+
import * as i6 from "@taiga-ui/core";
|
|
7
8
|
export declare class KwikIDBuilderFormEditorModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDBuilderFormEditorModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDBuilderFormEditorModule, [typeof i1.KwikIDBuilderFormEditorComponent], [typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDBuilderFormEditorModule, [typeof i1.KwikIDBuilderFormEditorComponent, typeof i2.JsonFormatPipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.KwikUIModule, typeof i6.TuiSvgModule], [typeof i1.KwikIDBuilderFormEditorComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDBuilderFormEditorModule>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JsonFormatPipe implements PipeTransform {
|
|
4
|
+
transform(value: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormatPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<JsonFormatPipe, "jsonFormat">;
|
|
7
|
+
}
|
|
@@ -16,6 +16,12 @@ export declare const FIELD_PROPERTIES: {
|
|
|
16
16
|
postfix: string;
|
|
17
17
|
prefix: string;
|
|
18
18
|
};
|
|
19
|
+
email: {
|
|
20
|
+
case: string;
|
|
21
|
+
containerStyles: string;
|
|
22
|
+
postfix: string;
|
|
23
|
+
prefix: string;
|
|
24
|
+
};
|
|
19
25
|
password: {
|
|
20
26
|
containerStyles: string;
|
|
21
27
|
hintContent: string;
|
|
@@ -24,9 +24,10 @@ export declare enum EFieldType {
|
|
|
24
24
|
AADHAAR_NUMBER = "aadhaar-number",
|
|
25
25
|
SLIDER = "slider",
|
|
26
26
|
FILE = "file",
|
|
27
|
-
PASSWORD = "password"
|
|
27
|
+
PASSWORD = "password",
|
|
28
|
+
EMAIL = "email"
|
|
28
29
|
}
|
|
29
|
-
export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD;
|
|
30
|
+
export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD | EFieldType.EMAIL;
|
|
30
31
|
export declare type TFieldSelectOption = {
|
|
31
32
|
title: string;
|
|
32
33
|
value: string;
|
|
@@ -55,6 +56,12 @@ export declare type TFieldTextProperties = TFieldProperties & {
|
|
|
55
56
|
placeholder: string;
|
|
56
57
|
readOnly: string;
|
|
57
58
|
};
|
|
59
|
+
export declare type TFieldEmailProperties = TFieldProperties & {
|
|
60
|
+
case: string;
|
|
61
|
+
domains: Array<string>;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
readOnly: string;
|
|
64
|
+
};
|
|
58
65
|
export declare type TFieldPasswordProperties = TFieldProperties & {
|
|
59
66
|
placeholder: string;
|
|
60
67
|
hintContent: string;
|
|
@@ -183,6 +190,9 @@ export declare type TFieldRadio = TField & {
|
|
|
183
190
|
options: Array<TFieldRadioOption>;
|
|
184
191
|
properties: TFieldRadioProperties;
|
|
185
192
|
};
|
|
193
|
+
export declare type TFieldEmail = TField & {
|
|
194
|
+
properties: TFieldEmailProperties;
|
|
195
|
+
};
|
|
186
196
|
export declare type TFieldSelect = TField & {
|
|
187
197
|
options: Array<TFieldSelectOption>;
|
|
188
198
|
properties: TFieldSelectProperties;
|
|
@@ -9,6 +9,6 @@ import * as i7 from "@taiga-ui/addon-preview";
|
|
|
9
9
|
import * as i8 from "kwikui";
|
|
10
10
|
export declare class KwikIDFormViewModule {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormViewModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormViewModule, [typeof i1.KwikIDFormViewComponent, typeof i2.StyleSanitizerPipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.TuiLabelModule, typeof i6.TuiPushModule, typeof i5.TuiSvgModule, typeof i7.TuiPreviewModule, typeof i5.TuiButtonModule, typeof i7.TuiPreviewActionModule, typeof i5.TuiDialogModule, typeof i8.KwikUIPipeModule, typeof i8.KwikUIModule], [typeof i1.KwikIDFormViewComponent]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormViewModule, [typeof i1.KwikIDFormViewComponent, typeof i2.StyleSanitizerPipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.TuiLabelModule, typeof i6.TuiPushModule, typeof i5.TuiSvgModule, typeof i7.TuiPreviewModule, typeof i5.TuiButtonModule, typeof i7.TuiPreviewActionModule, typeof i5.TuiDialogModule, typeof i8.KwikUIPipeModule, typeof i8.KwikUIModule, typeof i8.KwikUIInputEmailModule], [typeof i1.KwikIDFormViewComponent]>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormViewModule>;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kwikid-forms",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "KwikID's JSON Configuration based Forms Renderer and Builder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baiju Dodhia"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"jsonpath": "^1.1.1",
|
|
25
25
|
"kwikid-toolkit": "^0.1.6",
|
|
26
|
-
"kwikui": "^0.3.
|
|
26
|
+
"kwikui": "^0.3.3",
|
|
27
27
|
"lodash": "^4.17.21",
|
|
28
28
|
"tslib": "^2.2.0"
|
|
29
29
|
},
|