kwikid-forms 0.6.5 → 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.
@@ -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 "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "kwikui";
6
- import * as i5 from "@taiga-ui/core";
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 i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.KwikUIModule, typeof i5.TuiSvgModule], [typeof i1.KwikIDBuilderFormEditorComponent]>;
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,18 @@ 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
+ };
25
+ password: {
26
+ containerStyles: string;
27
+ hintContent: string;
28
+ postfix: string;
29
+ prefix: string;
30
+ };
19
31
  "aadhaar-number": {
20
32
  containerStyles: string;
21
33
  mask: string;
@@ -23,9 +23,11 @@ export declare enum EFieldType {
23
23
  OTP = "otp",
24
24
  AADHAAR_NUMBER = "aadhaar-number",
25
25
  SLIDER = "slider",
26
- FILE = "file"
26
+ FILE = "file",
27
+ PASSWORD = "password",
28
+ EMAIL = "email"
27
29
  }
28
- 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;
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;
29
31
  export declare type TFieldSelectOption = {
30
32
  title: string;
31
33
  value: string;
@@ -54,6 +56,17 @@ export declare type TFieldTextProperties = TFieldProperties & {
54
56
  placeholder: string;
55
57
  readOnly: string;
56
58
  };
59
+ export declare type TFieldEmailProperties = TFieldProperties & {
60
+ case: string;
61
+ domains: Array<string>;
62
+ placeholder: string;
63
+ readOnly: string;
64
+ };
65
+ export declare type TFieldPasswordProperties = TFieldProperties & {
66
+ placeholder: string;
67
+ hintContent: string;
68
+ readOnly: string;
69
+ };
57
70
  export declare type TFieldTextareaProperties = TFieldProperties & {
58
71
  placeholder: string;
59
72
  readOnly: string;
@@ -177,6 +190,9 @@ export declare type TFieldRadio = TField & {
177
190
  options: Array<TFieldRadioOption>;
178
191
  properties: TFieldRadioProperties;
179
192
  };
193
+ export declare type TFieldEmail = TField & {
194
+ properties: TFieldEmailProperties;
195
+ };
180
196
  export declare type TFieldSelect = TField & {
181
197
  options: Array<TFieldSelectOption>;
182
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.5",
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"
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "jsonpath": "^1.1.1",
25
- "kwikid-toolkit": "^0.1.3",
26
- "kwikui": "^0.2.44",
25
+ "kwikid-toolkit": "^0.1.6",
26
+ "kwikui": "^0.3.3",
27
27
  "lodash": "^4.17.21",
28
28
  "tslib": "^2.2.0"
29
29
  },