kwikid-forms 0.5.15 → 0.6.1
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 +147 -43
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/builder/builder-form-editor/builder-form-editor.component.js +27 -12
- package/esm2015/lib/builder/builder-form-editor/builder.form-editor.constants.js +35 -1
- package/esm2015/lib/renderer/config-converter/config-converter.constants.js +49 -15
- package/esm2015/lib/renderer/config-converter/config-converter.js +4 -1
- package/esm2015/lib/renderer/form-view/form-view.component.js +3 -3
- package/esm2015/lib/renderer/form-view/form-view.module.js +4 -3
- package/esm2015/lib/renderer/form-view/helpers/styles-sanitizer.pipe.js +20 -0
- package/fesm2015/kwikid-forms.js +132 -29
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/builder/builder-form-editor/builder-form-editor.component.d.ts +3 -1
- package/lib/builder/builder-form-editor/builder.form-editor.constants.d.ts +72 -0
- package/lib/renderer/config-converter/config-converter.constants.d.ts +34 -0
- package/lib/renderer/form-view/form-view.module.d.ts +8 -7
- package/lib/renderer/form-view/helpers/styles-sanitizer.pipe.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { FormGroup } from "@angular/forms";
|
|
3
|
+
import { KwikUILoaderService } from "kwikui";
|
|
3
4
|
import { TFormEditorType } from "./builder-form-editor.definitions";
|
|
4
5
|
import { KwikIDFormBuilderFormEditorService } from "./builder.form-editor.service";
|
|
5
|
-
import { KwikUILoaderService } from "kwikui";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChanges {
|
|
8
8
|
loaderService: KwikUILoaderService;
|
|
@@ -88,6 +88,8 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
|
|
|
88
88
|
* Other Helper Methods
|
|
89
89
|
*/
|
|
90
90
|
copyToClipboard(): void;
|
|
91
|
+
convertToMinifiedJson(): void;
|
|
92
|
+
convertToCompleteJson(): void;
|
|
91
93
|
downloadJSON(): void;
|
|
92
94
|
/**
|
|
93
95
|
* Misc Methods
|
|
@@ -3,6 +3,7 @@ export declare const OPTIONS: {
|
|
|
3
3
|
type: string[];
|
|
4
4
|
disabled: boolean[];
|
|
5
5
|
properties: {
|
|
6
|
+
button: {};
|
|
6
7
|
text: {
|
|
7
8
|
case: string[];
|
|
8
9
|
};
|
|
@@ -65,6 +66,10 @@ export declare const FIELD_PROPERTIES_COMMON_CONFIG: {
|
|
|
65
66
|
placeholder: string;
|
|
66
67
|
};
|
|
67
68
|
export declare const FIELD_PROPERTIES_CONFIG: {
|
|
69
|
+
button: {
|
|
70
|
+
readOnly: boolean;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
};
|
|
68
73
|
title: {
|
|
69
74
|
readOnly: boolean;
|
|
70
75
|
placeholder: string;
|
|
@@ -270,6 +275,27 @@ export declare const FIELD_CONFIG: {
|
|
|
270
275
|
max: number;
|
|
271
276
|
};
|
|
272
277
|
};
|
|
278
|
+
button: {
|
|
279
|
+
type: string;
|
|
280
|
+
properties: {
|
|
281
|
+
readOnly: boolean;
|
|
282
|
+
placeholder: string;
|
|
283
|
+
};
|
|
284
|
+
key: string;
|
|
285
|
+
label: string;
|
|
286
|
+
disabled: boolean;
|
|
287
|
+
validators: {
|
|
288
|
+
required: boolean;
|
|
289
|
+
minLength: number;
|
|
290
|
+
maxLength: number;
|
|
291
|
+
pattern: {
|
|
292
|
+
key: string;
|
|
293
|
+
pattern: string;
|
|
294
|
+
};
|
|
295
|
+
min: number;
|
|
296
|
+
max: number;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
273
299
|
textarea: {
|
|
274
300
|
type: string;
|
|
275
301
|
properties: {
|
|
@@ -719,3 +745,49 @@ export declare const FIELD_CONFIG: {
|
|
|
719
745
|
};
|
|
720
746
|
};
|
|
721
747
|
};
|
|
748
|
+
export declare const NOFIELD_CONFIG: {
|
|
749
|
+
required: boolean;
|
|
750
|
+
type: string;
|
|
751
|
+
props: {
|
|
752
|
+
url: string;
|
|
753
|
+
title: string;
|
|
754
|
+
};
|
|
755
|
+
hidden: boolean;
|
|
756
|
+
disabled: boolean;
|
|
757
|
+
dependentOn: any[];
|
|
758
|
+
title: string;
|
|
759
|
+
properties: {
|
|
760
|
+
header: {
|
|
761
|
+
logo: {
|
|
762
|
+
src: string;
|
|
763
|
+
alt: string;
|
|
764
|
+
hidden: boolean;
|
|
765
|
+
};
|
|
766
|
+
backButton: {
|
|
767
|
+
mode: string;
|
|
768
|
+
bypassConfirmation: boolean;
|
|
769
|
+
hidden: boolean;
|
|
770
|
+
};
|
|
771
|
+
title: {
|
|
772
|
+
hidden: boolean;
|
|
773
|
+
label: string;
|
|
774
|
+
};
|
|
775
|
+
steps: {
|
|
776
|
+
hidden: boolean;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
footer: {
|
|
780
|
+
viewFormsButton: {
|
|
781
|
+
bypassConfirmation: boolean;
|
|
782
|
+
hidden: boolean;
|
|
783
|
+
label: string;
|
|
784
|
+
};
|
|
785
|
+
saveButton: {
|
|
786
|
+
hidden: boolean;
|
|
787
|
+
label: string;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
isUnsavedDataAlertEnabled: boolean;
|
|
791
|
+
};
|
|
792
|
+
fieldGroups: {};
|
|
793
|
+
};
|
|
@@ -8,12 +8,15 @@ export declare const FIELD_PROPERTIES: {
|
|
|
8
8
|
iconRight: string;
|
|
9
9
|
shape: any;
|
|
10
10
|
size: string;
|
|
11
|
+
containerStyles: string;
|
|
11
12
|
};
|
|
12
13
|
text: {
|
|
13
14
|
case: string;
|
|
15
|
+
containerStyles: string;
|
|
14
16
|
};
|
|
15
17
|
"aadhaar-number": {
|
|
16
18
|
mask: string;
|
|
19
|
+
containerStyles: string;
|
|
17
20
|
};
|
|
18
21
|
number: {
|
|
19
22
|
decimal: string;
|
|
@@ -23,12 +26,34 @@ export declare const FIELD_PROPERTIES: {
|
|
|
23
26
|
prefix: string;
|
|
24
27
|
postfix: string;
|
|
25
28
|
precision: number;
|
|
29
|
+
containerStyles: string;
|
|
26
30
|
};
|
|
27
31
|
phone: {
|
|
28
32
|
countryCode: string;
|
|
29
33
|
phoneMaskAfterCountryCode: string;
|
|
30
34
|
removeCountryCodeFromValue: boolean;
|
|
31
35
|
placeholder: string;
|
|
36
|
+
containerStyles: string;
|
|
37
|
+
};
|
|
38
|
+
html: {
|
|
39
|
+
properties: {
|
|
40
|
+
containerStyles: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
checkbox: {
|
|
44
|
+
properties: {
|
|
45
|
+
containerStyles: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
textarea: {
|
|
49
|
+
properties: {
|
|
50
|
+
containerStyles: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
title: {
|
|
54
|
+
properties: {
|
|
55
|
+
containerStyles: string;
|
|
56
|
+
};
|
|
32
57
|
};
|
|
33
58
|
image: {
|
|
34
59
|
altText: string;
|
|
@@ -39,6 +64,7 @@ export declare const FIELD_PROPERTIES: {
|
|
|
39
64
|
loadingType: string;
|
|
40
65
|
styles: string;
|
|
41
66
|
class: string;
|
|
67
|
+
containerStyles: string;
|
|
42
68
|
};
|
|
43
69
|
date: {
|
|
44
70
|
minCalculatedFromToday: {
|
|
@@ -52,10 +78,12 @@ export declare const FIELD_PROPERTIES: {
|
|
|
52
78
|
day: number;
|
|
53
79
|
};
|
|
54
80
|
placeholder: string;
|
|
81
|
+
containerStyles: string;
|
|
55
82
|
};
|
|
56
83
|
radio: {
|
|
57
84
|
size: string;
|
|
58
85
|
orientation: string;
|
|
86
|
+
containerStyles: string;
|
|
59
87
|
};
|
|
60
88
|
slider: {
|
|
61
89
|
min: number;
|
|
@@ -63,16 +91,19 @@ export declare const FIELD_PROPERTIES: {
|
|
|
63
91
|
steps: number;
|
|
64
92
|
quantum: number;
|
|
65
93
|
size: string;
|
|
94
|
+
containerStyles: string;
|
|
66
95
|
};
|
|
67
96
|
api: {
|
|
68
97
|
shape: any;
|
|
69
98
|
size: string;
|
|
99
|
+
containerStyles: string;
|
|
70
100
|
};
|
|
71
101
|
otp: {
|
|
72
102
|
size: string;
|
|
73
103
|
mode: string;
|
|
74
104
|
otpLength: number;
|
|
75
105
|
placeholder: string;
|
|
106
|
+
containerStyles: string;
|
|
76
107
|
};
|
|
77
108
|
file: {
|
|
78
109
|
multiple: boolean;
|
|
@@ -82,11 +113,14 @@ export declare const FIELD_PROPERTIES: {
|
|
|
82
113
|
link: string;
|
|
83
114
|
size: string;
|
|
84
115
|
maxFileSize: number;
|
|
116
|
+
containerStyles: string;
|
|
85
117
|
};
|
|
86
118
|
select: {
|
|
87
119
|
searchable: boolean;
|
|
120
|
+
containerStyles: string;
|
|
88
121
|
};
|
|
89
122
|
"dropdown-with-search": {
|
|
90
123
|
searchable: boolean;
|
|
124
|
+
containerStyles: string;
|
|
91
125
|
};
|
|
92
126
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./form-view.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "@taiga-ui/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
8
|
-
import * as i7 from "
|
|
3
|
+
import * as i2 from "./helpers/styles-sanitizer.pipe";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@taiga-ui/core";
|
|
7
|
+
import * as i6 from "@taiga-ui/kit";
|
|
8
|
+
import * as i7 from "@taiga-ui/addon-preview";
|
|
9
|
+
import * as i8 from "kwikui";
|
|
9
10
|
export declare class KwikIDFormViewModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormViewModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormViewModule, [typeof i1.KwikIDFormViewComponent], [typeof
|
|
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
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormViewModule>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer, SafeStyle } from "@angular/platform-browser";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StyleSanitizerPipe implements PipeTransform {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
transform(style: string): SafeStyle;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleSanitizerPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<StyleSanitizerPipe, "styleSanitizer">;
|
|
10
|
+
}
|