kwikid-forms 0.5.6 → 0.5.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/bundles/kwikid-forms.umd.js +35 -9
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/config-converter/config-converter.js +5 -4
- package/esm2015/lib/renderer/form-view/form-view.component.js +7 -2
- package/esm2015/lib/renderer/forms-list/forms-list.component.js +14 -3
- package/esm2015/lib/renderer/renderer.component.js +15 -6
- package/fesm2015/kwikid-forms.js +36 -10
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/form-view/form-view.component.d.ts +2 -1
- package/lib/renderer/forms-list/forms-list.component.d.ts +2 -1
- package/lib/renderer/renderer.component.d.ts +2 -0
- package/package.json +2 -2
|
@@ -27,6 +27,7 @@ export declare class KwikIDFormViewComponent implements OnInit, AfterViewInit {
|
|
|
27
27
|
popupFormCallback: any;
|
|
28
28
|
onClickGoBack: EventEmitter<any>;
|
|
29
29
|
onClickViewForms: EventEmitter<any>;
|
|
30
|
+
getUnsavedDataState: EventEmitter<any>;
|
|
30
31
|
onClickSaveForm: EventEmitter<any>;
|
|
31
32
|
onClickApiCall: EventEmitter<any>;
|
|
32
33
|
onActionShowPopupForm: EventEmitter<any>;
|
|
@@ -148,5 +149,5 @@ export declare class KwikIDFormViewComponent implements OnInit, AfterViewInit {
|
|
|
148
149
|
takeActionOnFieldGroup(action: TAction, object: any): Promise<void>;
|
|
149
150
|
takeAction(action: TAction, object: any): Promise<void>;
|
|
150
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormViewComponent, never>;
|
|
151
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormViewComponent, "kwikid-form-view", never, { "formConfig": "formConfig"; "formData": "formData"; "isMobileView": "isMobileView"; "allFormsData": "allFormsData"; "userConfig": "userConfig"; "apiCallResponse": "apiCallResponse"; "popupFormCallback": "popupFormCallback"; }, { "onClickGoBack": "onClickGoBack"; "onClickViewForms": "onClickViewForms"; "onClickSaveForm": "onClickSaveForm"; "onClickApiCall": "onClickApiCall"; "onActionShowPopupForm": "onActionShowPopupForm"; }, never, never>;
|
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormViewComponent, "kwikid-form-view", never, { "formConfig": "formConfig"; "formData": "formData"; "isMobileView": "isMobileView"; "allFormsData": "allFormsData"; "userConfig": "userConfig"; "apiCallResponse": "apiCallResponse"; "popupFormCallback": "popupFormCallback"; }, { "onClickGoBack": "onClickGoBack"; "onClickViewForms": "onClickViewForms"; "getUnsavedDataState": "getUnsavedDataState"; "onClickSaveForm": "onClickSaveForm"; "onClickApiCall": "onClickApiCall"; "onActionShowPopupForm": "onActionShowPopupForm"; }, never, never>;
|
|
152
153
|
}
|
|
@@ -8,6 +8,7 @@ export declare class KwikIDFormsListComponent implements OnInit, OnChanges {
|
|
|
8
8
|
formsList: any[];
|
|
9
9
|
formsListCompleted: any[];
|
|
10
10
|
isMobileView: boolean;
|
|
11
|
+
isUnsavedData: boolean;
|
|
11
12
|
onClickSetActiveForm: EventEmitter<any>;
|
|
12
13
|
onClickHideFormsList: EventEmitter<any>;
|
|
13
14
|
onClickSubmitForms: EventEmitter<any>;
|
|
@@ -26,5 +27,5 @@ export declare class KwikIDFormsListComponent implements OnInit, OnChanges {
|
|
|
26
27
|
handleOnClickSetActiveForm(selectedForm: string): void;
|
|
27
28
|
handleOnSubmitForms(e: any): void;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormsListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormsListComponent, "kwikid-forms-list", never, { "showFormFields": "showFormFields"; "userConfig": "userConfig"; "stepConfig": "stepConfig"; "activeFormConfig": "activeFormConfig"; "formsList": "formsList"; "formsListCompleted": "formsListCompleted"; "isMobileView": "isMobileView"; }, { "onClickSetActiveForm": "onClickSetActiveForm"; "onClickHideFormsList": "onClickHideFormsList"; "onClickSubmitForms": "onClickSubmitForms"; }, never, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormsListComponent, "kwikid-forms-list", never, { "showFormFields": "showFormFields"; "userConfig": "userConfig"; "stepConfig": "stepConfig"; "activeFormConfig": "activeFormConfig"; "formsList": "formsList"; "formsListCompleted": "formsListCompleted"; "isMobileView": "isMobileView"; "isUnsavedData": "isUnsavedData"; }, { "onClickSetActiveForm": "onClickSetActiveForm"; "onClickHideFormsList": "onClickHideFormsList"; "onClickSubmitForms": "onClickSubmitForms"; }, never, never>;
|
|
30
31
|
}
|
|
@@ -37,6 +37,7 @@ export declare class KwikIDFormsRendererComponent implements OnInit, OnChanges {
|
|
|
37
37
|
showForm: boolean;
|
|
38
38
|
showFormFields: boolean;
|
|
39
39
|
showFormSections: boolean;
|
|
40
|
+
isUnsavedData: boolean;
|
|
40
41
|
constructor(hostElement: ElementRef, cdr: ChangeDetectorRef, previewDialogService: TuiPreviewDialogService, dialogs: TuiDialogService);
|
|
41
42
|
ngOnInit(): void;
|
|
42
43
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -88,6 +89,7 @@ export declare class KwikIDFormsRendererComponent implements OnInit, OnChanges {
|
|
|
88
89
|
* FormView - Listens to event of executing an API call from within the FormView and emits (read as passes) the same event to the library consumer.
|
|
89
90
|
* @param e any
|
|
90
91
|
*/
|
|
92
|
+
handleGetUnsavedState(e: any): void;
|
|
91
93
|
handleOnClickApiCall(e: any): void;
|
|
92
94
|
handleOnActionShowPopupForm(e: any, content: any): void;
|
|
93
95
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kwikid-forms",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Kwik.ID's JSON based Forms Builder and Renderer.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baiju Dodhia"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"jsonpath": "^1.1.1",
|
|
23
23
|
"kwikid-toolkit": "^0.1.3",
|
|
24
|
-
"kwikid-verify": "0.0.
|
|
24
|
+
"kwikid-verify": "0.0.3",
|
|
25
25
|
"kwikui": "^0.2.38",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"tslib": "^2.2.0"
|