kwikid-forms 0.6.4 → 0.6.6

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.
@@ -1,123 +1,129 @@
1
1
  export declare const FIELD_PROPERTIES: {
2
2
  button: {
3
- loading: boolean;
4
- styles: string;
5
- class: string;
6
3
  appearance: string;
4
+ class: string;
5
+ containerStyles: string;
7
6
  icon: string;
8
7
  iconRight: string;
8
+ loading: boolean;
9
9
  shape: any;
10
10
  size: string;
11
- containerStyles: string;
11
+ styles: string;
12
12
  };
13
13
  text: {
14
14
  case: string;
15
15
  containerStyles: string;
16
+ postfix: string;
17
+ prefix: string;
18
+ };
19
+ password: {
20
+ containerStyles: string;
21
+ hintContent: string;
22
+ postfix: string;
23
+ prefix: string;
16
24
  };
17
25
  "aadhaar-number": {
18
- mask: string;
19
26
  containerStyles: string;
27
+ mask: string;
20
28
  };
21
29
  number: {
30
+ containerStyles: string;
22
31
  decimal: string;
23
- min: number;
24
32
  max: number;
33
+ min: number;
25
34
  placeholder: string;
26
- prefix: string;
27
35
  postfix: string;
28
36
  precision: number;
29
- containerStyles: string;
37
+ prefix: string;
30
38
  };
31
39
  phone: {
40
+ containerStyles: string;
32
41
  countryCode: string;
33
42
  phoneMaskAfterCountryCode: string;
34
- removeCountryCodeFromValue: boolean;
35
43
  placeholder: string;
36
- containerStyles: string;
44
+ postfix: string;
45
+ prefix: string;
46
+ removeCountryCodeFromValue: boolean;
37
47
  };
38
48
  html: {
39
- properties: {
40
- containerStyles: string;
41
- };
49
+ containerStyles: string;
42
50
  };
43
51
  checkbox: {
44
- properties: {
45
- containerStyles: string;
46
- };
52
+ containerStyles: string;
47
53
  };
48
54
  textarea: {
49
- properties: {
50
- containerStyles: string;
51
- };
55
+ containerStyles: string;
52
56
  };
53
57
  title: {
54
- properties: {
55
- containerStyles: string;
56
- };
58
+ containerStyles: string;
57
59
  };
58
60
  image: {
61
+ after: string;
59
62
  altText: string;
60
- html: {};
61
63
  before: string;
62
- after: string;
64
+ class: string;
65
+ containerStyles: string;
66
+ html: {};
63
67
  imageType: string;
64
68
  loadingType: string;
65
69
  styles: string;
66
- class: string;
67
- containerStyles: string;
68
70
  };
69
71
  date: {
70
- minCalculatedFromToday: {
72
+ containerStyles: string;
73
+ maxCalculatedFromToday: {
71
74
  year: number;
72
75
  month: number;
73
76
  day: number;
74
77
  };
75
- maxCalculatedFromToday: {
78
+ minCalculatedFromToday: {
76
79
  year: number;
77
80
  month: number;
78
81
  day: number;
79
82
  };
80
83
  placeholder: string;
81
- containerStyles: string;
84
+ postfix: string;
85
+ prefix: string;
82
86
  };
83
87
  radio: {
84
- size: string;
85
- orientation: string;
86
88
  containerStyles: string;
89
+ orientation: string;
90
+ size: string;
87
91
  };
88
92
  slider: {
89
- min: number;
93
+ containerStyles: string;
90
94
  max: number;
91
- steps: number;
95
+ min: number;
96
+ postfix: string;
97
+ prefix: string;
92
98
  quantum: number;
93
99
  size: string;
94
- containerStyles: string;
100
+ steps: number;
95
101
  };
96
102
  api: {
103
+ containerStyles: string;
97
104
  shape: any;
98
105
  size: string;
99
- containerStyles: string;
100
106
  };
101
107
  otp: {
102
- size: string;
108
+ containerStyles: string;
103
109
  mode: string;
104
110
  otpLength: number;
105
111
  placeholder: string;
106
- containerStyles: string;
112
+ size: string;
107
113
  };
108
114
  file: {
109
- multiple: boolean;
110
115
  accept: string;
116
+ containerStyles: string;
111
117
  label: string;
112
- uploadFileToServer: boolean;
113
118
  link: string;
114
- size: string;
115
119
  maxFileSize: number;
116
- containerStyles: string;
120
+ multiple: boolean;
121
+ size: string;
122
+ uploadFileToServer: boolean;
117
123
  };
118
124
  select: {
119
- searchable: boolean;
120
125
  containerStyles: string;
126
+ searchable: boolean;
121
127
  };
122
128
  "dropdown-with-search": {
123
129
  searchable: boolean;
@@ -23,9 +23,10 @@ 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"
27
28
  }
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;
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;
29
30
  export declare type TFieldSelectOption = {
30
31
  title: string;
31
32
  value: string;
@@ -54,6 +55,11 @@ export declare type TFieldTextProperties = TFieldProperties & {
54
55
  placeholder: string;
55
56
  readOnly: string;
56
57
  };
58
+ export declare type TFieldPasswordProperties = TFieldProperties & {
59
+ placeholder: string;
60
+ hintContent: string;
61
+ readOnly: string;
62
+ };
57
63
  export declare type TFieldTextareaProperties = TFieldProperties & {
58
64
  placeholder: string;
59
65
  readOnly: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
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.2",
27
27
  "lodash": "^4.17.21",
28
28
  "tslib": "^2.2.0"
29
29
  },