kwikid-forms 0.6.32 → 0.6.34
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 +1413 -769
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/config-converter/config-converter.constants.js +11 -1
- package/esm2015/lib/renderer/config-converter/config-converter.js +36 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.actions.definition.js +5 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.fields.definition.js +2 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.logs.definition.js +7 -2
- package/esm2015/lib/renderer/form-view/form-view.api.service.js +256 -0
- package/esm2015/lib/renderer/form-view/form-view.component.js +319 -64
- package/fesm2015/kwikid-forms.js +635 -74
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/config-converter/config-converter.constants.d.ts +10 -0
- package/lib/renderer/form-view/definitions/form-view.actions.definition.d.ts +5 -1
- package/lib/renderer/form-view/definitions/form-view.fields.definition.d.ts +17 -2
- package/lib/renderer/form-view/definitions/form-view.logs.definition.d.ts +6 -1
- package/lib/renderer/form-view/form-view.api.service.d.ts +11 -0
- package/lib/renderer/form-view/form-view.component.d.ts +9 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikid-toolkit'), require('kwikui'), require('@angular/forms'), require('@taiga-ui/core'), require('@angular/common'), require('@angular/animations'), require('lodash'), require('@taiga-ui/cdk'), require('@taiga-ui/addon-preview'), require('@taiga-ui/kit'), require('rxjs/operators'), require('uuid'), require('kwikid-camera'), require('@angular/platform-browser'), require('@angular/cdk/drag-drop'), require('@angular/common/http')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('kwikid-forms', ['exports', '@angular/core', 'kwikid-toolkit', 'kwikui', '@angular/forms', '@taiga-ui/core', '@angular/common', '@angular/animations', 'lodash', '@taiga-ui/cdk', '@taiga-ui/addon-preview', '@taiga-ui/kit', 'rxjs/operators', 'uuid', 'kwikid-camera', '@angular/platform-browser', '@angular/cdk/drag-drop', '@angular/common/http'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-forms"] = {}, global.ng.core, global["kwikid-toolkit"], global.kwikui, global.ng.forms, global["@taiga-ui/core"], global.ng.common, global.ng.animations, global.lodash, global["@taiga-ui/cdk"], global["@taiga-ui/addon-preview"], global["@taiga-ui/kit"], global.rxjs.operators, global.uuid, global["kwikid-camera"], global.ng.platformBrowser, global.ng.cdk.dragDrop, global.ng.common.http));
|
|
5
|
-
})(this, (function (exports, i0, kwikidToolkit,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikid-toolkit'), require('kwikui'), require('@angular/forms'), require('@taiga-ui/core'), require('@angular/common'), require('@angular/animations'), require('lodash'), require('@taiga-ui/cdk'), require('@taiga-ui/addon-preview'), require('@taiga-ui/kit'), require('rxjs/operators'), require('uuid'), require('axios'), require('rxjs'), require('kwikid-camera'), require('@angular/platform-browser'), require('@angular/cdk/drag-drop'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('kwikid-forms', ['exports', '@angular/core', 'kwikid-toolkit', 'kwikui', '@angular/forms', '@taiga-ui/core', '@angular/common', '@angular/animations', 'lodash', '@taiga-ui/cdk', '@taiga-ui/addon-preview', '@taiga-ui/kit', 'rxjs/operators', 'uuid', 'axios', 'rxjs', 'kwikid-camera', '@angular/platform-browser', '@angular/cdk/drag-drop', '@angular/common/http'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-forms"] = {}, global.ng.core, global["kwikid-toolkit"], global.kwikui, global.ng.forms, global["@taiga-ui/core"], global.ng.common, global.ng.animations, global.lodash, global["@taiga-ui/cdk"], global["@taiga-ui/addon-preview"], global["@taiga-ui/kit"], global.rxjs.operators, global.uuid, global.axios, global.rxjs, global["kwikid-camera"], global.ng.platformBrowser, global.ng.cdk.dragDrop, global.ng.common.http));
|
|
5
|
+
})(this, (function (exports, i0, kwikidToolkit, i3$1, i3, i5, i3$2, animations, _, cdk, i7, i6, operators, uuid, axios, rxjs, i4, i1, dragDrop, http) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var
|
|
29
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
30
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
31
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
32
|
-
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
33
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
29
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3);
|
|
34
30
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
35
31
|
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
32
|
+
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
33
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
34
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
35
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
36
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
36
37
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
37
38
|
|
|
38
39
|
/******************************************************************************
|
|
@@ -638,7 +639,7 @@
|
|
|
638
639
|
return KwikIDBuilderFormsListComponent;
|
|
639
640
|
}());
|
|
640
641
|
/** @nocollapse */ KwikIDBuilderFormsListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
641
|
-
/** @nocollapse */ KwikIDBuilderFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDBuilderFormsListComponent, selector: "kwikid-builder-forms-list", inputs: { activeFormConfig: "activeFormConfig", formsList: "formsList" }, outputs: { onClickSetActiveForm: "onClickSetActiveForm", getFormsList: "getFormsList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"container\">\n <form\n class=\"add-form-container\"\n [formGroup]=\"addForm\"\n >\n <input\n type=\"text\"\n formControlName=\"key\"\n placeholder=\"form key\"\n />\n <input\n type=\"text\"\n formControlName=\"title\"\n placeholder=\"form title\"\n />\n <kwikui-button\n size=\"s\"\n styles=\"width: 100%\"\n label=\"add form\"\n shape=\"rounded\"\n (click)=\"handleOnClickAddForm()\"\n ></kwikui-button>\n </form>\n <hr />\n <div class=\"forms-list\">\n <ng-container *ngIf=\"formsList.length > 0; else NoForms\">\n <ng-container *ngFor=\"let form of formsList\">\n <ng-container [ngSwitch]=\"form.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'HTML'\">\n <div [innerHtml]=\"form.props.htmlContent | kwikuiSafeHtml\"></div>\n </ng-container>\n <!-- Type FORM -->\n <ng-container *ngSwitchCase=\"'FORM'\">\n <ng-container\n [ngTemplateOutlet]=\"FORM_BUTTON\"\n [ngTemplateOutletContext]=\"{\n form: form,\n activeFormConfig: activeFormConfig\n }\"\n >\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-template #NoForms>\n <div class=\"no-form\">\n <div class=\"no-fields disclaimer\">\n <div class=\"icon\"><h1>+</h1></div>\n <div><p>Please add a new form to start</p></div>\n </div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"formsList.length > 0\">\n <hr />\n <div>\n <b>Total Forms: {{ formsList.length }}</b>\n </div>\n </ng-container>\n</div>\n\n<ng-template\n #FORM_BUTTON\n let-form=\"form\"\n let-activeFormConfig=\"activeFormConfig\"\n>\n <div\n [class]=\"'uf-section-item'\"\n [class.active]=\"\n activeFormConfig !== undefined && form.key === activeFormConfig.key\n \"\n (click)=\"handleOnClickSetActiveForm(form.key)\"\n >\n <div class=\"uf-form-section-card-title\">\n {{ form.props.title }} <span *ngIf=\"form?.required\">*</span>\n </div>\n <div class=\"uf-form-section-card-status\">\n <div class=\"uf-form-section-card-status-img edit\">\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;height:100%}.container{width:100%;min-width:280px;max-width:400px;height:100%;display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:stretch;padding:1rem;border:1px solid #ccc}.container>*:not(:last-child){margin-bottom:1rem}.container .add-form-container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end}.container .add-form-container>*:not(:last-child){margin-bottom:1rem}.container .forms-list{display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;flex-grow:1;overflow:auto;padding-right:.5rem}.container .forms-list>*:not(:last-child){margin-bottom:1rem}.container .forms-list .uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;cursor:pointer;box-shadow:0 1px 3px -1px var(--tui-base-05);border-radius:.5rem;background-color:var(--tui-base-02);position:relative}.container .forms-list .uf-section-item>*:not(:last-child){margin-right:1rem}.container .forms-list .uf-section-item:hover{box-shadow:0 1px 3px -1px var(--tui-base-08)}.container .forms-list .uf-section-item .uf-form-section-card-title{font-size:1em;text-align:left;line-height:1.25em;font-weight:bold;white-space:nowrap}.container .forms-list .uf-section-item .uf-form-section-card-status{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.container .forms-list .uf-section-item .uf-form-section-card-status .uf-form-section-card-status-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.container .forms-list .uf-section-item .uf-form-section-card-status .uf-form-section-card-status-img.edit{background-color:var(--tui-error-fill);padding:.25rem;border-radius:50%;color:#fff}.container .forms-list .form-item{background-color:#ccc3;border:1px solid gray;color:gray;cursor:pointer;display:inline-block;padding:12px 6px;text-decoration:none}.container .forms-list .form-item.active{background-color:#007bff0f;border:1px solid #007bff;color:#007bff}.container .forms-list .form-item.active span{transform:scaleX(-1)}.container .forms-list .no-form{height:100%;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;text-align:center}\n"], components: [{ type:
|
|
642
|
+
/** @nocollapse */ KwikIDBuilderFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDBuilderFormsListComponent, selector: "kwikid-builder-forms-list", inputs: { activeFormConfig: "activeFormConfig", formsList: "formsList" }, outputs: { onClickSetActiveForm: "onClickSetActiveForm", getFormsList: "getFormsList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"container\">\n <form\n class=\"add-form-container\"\n [formGroup]=\"addForm\"\n >\n <input\n type=\"text\"\n formControlName=\"key\"\n placeholder=\"form key\"\n />\n <input\n type=\"text\"\n formControlName=\"title\"\n placeholder=\"form title\"\n />\n <kwikui-button\n size=\"s\"\n styles=\"width: 100%\"\n label=\"add form\"\n shape=\"rounded\"\n (click)=\"handleOnClickAddForm()\"\n ></kwikui-button>\n </form>\n <hr />\n <div class=\"forms-list\">\n <ng-container *ngIf=\"formsList.length > 0; else NoForms\">\n <ng-container *ngFor=\"let form of formsList\">\n <ng-container [ngSwitch]=\"form.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'HTML'\">\n <div [innerHtml]=\"form.props.htmlContent | kwikuiSafeHtml\"></div>\n </ng-container>\n <!-- Type FORM -->\n <ng-container *ngSwitchCase=\"'FORM'\">\n <ng-container\n [ngTemplateOutlet]=\"FORM_BUTTON\"\n [ngTemplateOutletContext]=\"{\n form: form,\n activeFormConfig: activeFormConfig\n }\"\n >\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-template #NoForms>\n <div class=\"no-form\">\n <div class=\"no-fields disclaimer\">\n <div class=\"icon\"><h1>+</h1></div>\n <div><p>Please add a new form to start</p></div>\n </div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"formsList.length > 0\">\n <hr />\n <div>\n <b>Total Forms: {{ formsList.length }}</b>\n </div>\n </ng-container>\n</div>\n\n<ng-template\n #FORM_BUTTON\n let-form=\"form\"\n let-activeFormConfig=\"activeFormConfig\"\n>\n <div\n [class]=\"'uf-section-item'\"\n [class.active]=\"\n activeFormConfig !== undefined && form.key === activeFormConfig.key\n \"\n (click)=\"handleOnClickSetActiveForm(form.key)\"\n >\n <div class=\"uf-form-section-card-title\">\n {{ form.props.title }} <span *ngIf=\"form?.required\">*</span>\n </div>\n <div class=\"uf-form-section-card-status\">\n <div class=\"uf-form-section-card-status-img edit\">\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;height:100%}.container{width:100%;min-width:280px;max-width:400px;height:100%;display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:stretch;padding:1rem;border:1px solid #ccc}.container>*:not(:last-child){margin-bottom:1rem}.container .add-form-container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end}.container .add-form-container>*:not(:last-child){margin-bottom:1rem}.container .forms-list{display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;flex-grow:1;overflow:auto;padding-right:.5rem}.container .forms-list>*:not(:last-child){margin-bottom:1rem}.container .forms-list .uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;cursor:pointer;box-shadow:0 1px 3px -1px var(--tui-base-05);border-radius:.5rem;background-color:var(--tui-base-02);position:relative}.container .forms-list .uf-section-item>*:not(:last-child){margin-right:1rem}.container .forms-list .uf-section-item:hover{box-shadow:0 1px 3px -1px var(--tui-base-08)}.container .forms-list .uf-section-item .uf-form-section-card-title{font-size:1em;text-align:left;line-height:1.25em;font-weight:bold;white-space:nowrap}.container .forms-list .uf-section-item .uf-form-section-card-status{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.container .forms-list .uf-section-item .uf-form-section-card-status .uf-form-section-card-status-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.container .forms-list .uf-section-item .uf-form-section-card-status .uf-form-section-card-status-img.edit{background-color:var(--tui-error-fill);padding:.25rem;border-radius:50%;color:#fff}.container .forms-list .form-item{background-color:#ccc3;border:1px solid gray;color:gray;cursor:pointer;display:inline-block;padding:12px 6px;text-decoration:none}.container .forms-list .form-item.active{background-color:#007bff0f;border:1px solid #007bff;color:#007bff}.container .forms-list .form-item.active span{transform:scaleX(-1)}.container .forms-list .no-form{height:100%;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;text-align:center}\n"], components: [{ type: i3__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type"], outputs: ["onClick"] }, { type: i5__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i3__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "kwikuiSafeHtml": i3__namespace.KwikUISafeHtmlPipe } });
|
|
642
643
|
__decorate([
|
|
643
644
|
kwikidToolkit.logMethod
|
|
644
645
|
], KwikIDBuilderFormsListComponent.prototype, "ngOnChanges", null);
|
|
@@ -693,6 +694,7 @@
|
|
|
693
694
|
EFieldType["CAPTURE"] = "capture";
|
|
694
695
|
EFieldType["RECORD"] = "record";
|
|
695
696
|
EFieldType["STAR_RATING"] = "star-rating";
|
|
697
|
+
EFieldType["LIVE_LOCATION"] = "live-location";
|
|
696
698
|
})(EFieldType || (EFieldType = {}));
|
|
697
699
|
|
|
698
700
|
var FIELD_PROPERTIES = {
|
|
@@ -921,6 +923,16 @@
|
|
|
921
923
|
min: 0,
|
|
922
924
|
placeholder: "",
|
|
923
925
|
size: "m"
|
|
926
|
+
},
|
|
927
|
+
"live-location": {
|
|
928
|
+
isGetLocationFromLatLong: true,
|
|
929
|
+
isShowLatLongCaptureTimestamp: true,
|
|
930
|
+
color: "var(--tui-primary)",
|
|
931
|
+
containerStyles: "",
|
|
932
|
+
placeholder: "",
|
|
933
|
+
size: "m",
|
|
934
|
+
styles: "",
|
|
935
|
+
shape: "curved"
|
|
924
936
|
}
|
|
925
937
|
};
|
|
926
938
|
|
|
@@ -1601,6 +1613,32 @@
|
|
|
1601
1613
|
}
|
|
1602
1614
|
return field;
|
|
1603
1615
|
};
|
|
1616
|
+
var formatFieldTypeLiveLocation = function (field) {
|
|
1617
|
+
field = setFieldAsFormElement(field, true);
|
|
1618
|
+
field = updateFormFieldProperties(field);
|
|
1619
|
+
if (!kwikidToolkit.checkObjectKeyExists(field, "showLoader")) {
|
|
1620
|
+
field = setFieldKeyValue(field, "showLoader", false);
|
|
1621
|
+
}
|
|
1622
|
+
if (!kwikidToolkit.checkObjectKeyExists(field, "api")) {
|
|
1623
|
+
var fieldApiDefaults = {
|
|
1624
|
+
url: "",
|
|
1625
|
+
request: {},
|
|
1626
|
+
response: {},
|
|
1627
|
+
status: {
|
|
1628
|
+
value: "default",
|
|
1629
|
+
labels: {
|
|
1630
|
+
default: "Get Live Location",
|
|
1631
|
+
loading: "Getting Live Location",
|
|
1632
|
+
retry: "Get Live Location",
|
|
1633
|
+
success: "Live Location",
|
|
1634
|
+
failed: "Live Location"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
field.api = kwikidToolkit.getObjectDeepCopy(kwikidToolkit.mergeObjects(fieldApiDefaults, fieldApiDefaults));
|
|
1639
|
+
}
|
|
1640
|
+
return field;
|
|
1641
|
+
};
|
|
1604
1642
|
var formatFieldTypeOtp = function (field) {
|
|
1605
1643
|
var _a, _b;
|
|
1606
1644
|
field = setFieldKeyHidden(field);
|
|
@@ -1701,8 +1739,14 @@
|
|
|
1701
1739
|
field = setFieldKeyValue(field, "type", "api");
|
|
1702
1740
|
field = formatFieldTypeApi(field);
|
|
1703
1741
|
break;
|
|
1742
|
+
case EFieldType.LIVE_LOCATION:
|
|
1743
|
+
field = formatFieldTypeLiveLocation(field);
|
|
1744
|
+
break;
|
|
1704
1745
|
case EFieldType.API:
|
|
1705
1746
|
field = formatFieldTypeApi(field);
|
|
1747
|
+
case EFieldType.LIVE_LOCATION:
|
|
1748
|
+
field = formatFieldTypeLiveLocation(field);
|
|
1749
|
+
break;
|
|
1706
1750
|
break;
|
|
1707
1751
|
case EFieldType.OTP:
|
|
1708
1752
|
field = formatFieldTypeOtp(field);
|
|
@@ -2012,6 +2056,9 @@
|
|
|
2012
2056
|
case EFieldType.API_CALL:
|
|
2013
2057
|
field["api"]["status"]["labels"] = updateApiStatus(field["api"]["status"]["labels"]);
|
|
2014
2058
|
break;
|
|
2059
|
+
case EFieldType.LIVE_LOCATION:
|
|
2060
|
+
field["api"]["status"]["labels"] = updateApiStatus(field["api"]["status"]["labels"]);
|
|
2061
|
+
break;
|
|
2015
2062
|
default:
|
|
2016
2063
|
break;
|
|
2017
2064
|
}
|
|
@@ -2747,8 +2794,8 @@
|
|
|
2747
2794
|
};
|
|
2748
2795
|
return KwikIDBuilderFormEditorComponent;
|
|
2749
2796
|
}());
|
|
2750
|
-
/** @nocollapse */ KwikIDBuilderFormEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorComponent, deps: [{ token:
|
|
2751
|
-
/** @nocollapse */ KwikIDBuilderFormEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDBuilderFormEditorComponent, selector: "kwikid-builder-form-editor", inputs: { activeFormConfig: "activeFormConfig" }, outputs: { onClickSaveActiveFormConfig: "onClickSaveActiveFormConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<!-- Component Loader -->\n<kwikui-loader></kwikui-loader>\n\n<!-- Component Main View -->\n<div class=\"container\">\n <ng-container *ngIf=\"activeFormConfig; else noFormSelectedTemplate\">\n <header>\n <div>\n Editing Config of Form: <b>{{ activeFormConfig.props.title }}</b>\n </div>\n <div class=\"header-form-editor-btns\">\n <button (click)=\"handleOnClickPreview()\">preview</button>\n <div>Editor Type:</div>\n <select (change)=\"handleOnClickChangeActiveEditor($event.target.value)\">\n <option\n *ngFor=\"let option of editorTypeOptions\"\n [value]=\"option.key\"\n [selected]=\"option.key === activeEditorType\"\n >\n {{ option.label }}\n </option>\n </select>\n </div>\n </header>\n <main>\n <div\n class=\"form-config-fields\"\n *ngIf=\"activeEditorType == 'FIELDS'; else nonFieldsEditorTemplate\"\n >\n <ng-container *ngIf=\"rows.length <= 0\">\n <div class=\"no-fields disclaimer\">\n <div><p>Please add field to get started</p></div>\n <div class=\"icon\"><h1>+</h1></div>\n <button (click)=\"handleOnClickAddField()\">add field</button>\n </div>\n </ng-container>\n <table>\n <thead>\n <tr>\n <th *ngFor=\"let column of columns\">\n {{ column }}\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor=\"let row of rows; let i = index; trackBy: trackByFn\"\n >\n <tr>\n <ng-container *ngFor=\"let column of columns; let j = index\">\n <td>\n <div [class]=\"column\">\n <ng-container\n *ngIf=\"\n column !== 'delete' &&\n column !== 'validators' &&\n column !== 'properties' &&\n column !== 'type' &&\n column !== 'disabled' &&\n column !== 'options'\n \"\n [ngTemplateOutlet]=\"getFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n fieldValue: row[column],\n fieldKey: column,\n parentPath: ''\n }\"\n ></ng-container>\n <ng-container *ngIf=\"column === 'type'\">\n <ng-container\n [ngTemplateOutlet]=\"optionFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n key: column,\n value: row[column],\n path: '',\n options: memoizedGetOptions(\n i,\n row[column],\n column,\n ''\n )\n }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"column === 'disabled'\">\n <ng-container\n [ngTemplateOutlet]=\"booleanFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n key: column,\n value: row[column],\n path: '',\n options: memoizedGetOptions(\n i,\n row[column],\n column,\n ''\n )\n }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"column === 'delete'\">\n <button\n (click)=\"\n handleOnClickDeleteField({\n index: i,\n key: row['key']\n })\n \"\n [disabled]=\"rows.length === 1\"\n >\n delete\n </button>\n </ng-container>\n <ng-container *ngIf=\"column === 'validators'\">\n <button\n (click)=\"\n handleOnClickEditValidators({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n edit\n </button>\n </ng-container>\n <ng-container *ngIf=\"column === 'properties'\">\n <button\n (click)=\"\n handleOnClickEditProperties({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n edit\n </button>\n </ng-container>\n <ng-container\n *ngIf=\"row['type'] === 'radio' && column === 'options'\"\n >\n <button\n (click)=\"\n handleOnClickEditOptions({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n add\n </button>\n </ng-container>\n <ng-container\n *ngIf=\"row['type'] === 'select' && column === 'options'\"\n >\n <button\n (click)=\"\n handleOnClickEditOptions({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n add\n </button>\n </ng-container>\n </div>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div class=\"add-field-btn-container\"> </div>\n </div>\n <ng-template #nonFieldsEditorTemplate>\n <div class=\"form-config-no-fields\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnClickSaveActiveFormConfig_NoFields(\n $event.target.innerHTML\n )\n \"\n >\n {{ activeFormConfig_NoFields | json }}\n </div>\n </div>\n </ng-template>\n </main>\n <footer>\n <button\n *ngIf=\"rows.length > 0\"\n (click)=\"handleOnClickAddField()\"\n >\n add field\n </button>\n <button\n (click)=\"handleOnClickSaveActiveFormConfig()\"\n [class.secondary]=\"!savedConfig\"\n >\n {{ savedConfig ? \"saved\" : \"unsaved\" }}\n </button>\n </footer>\n </ng-container>\n <ng-template #noFormSelectedTemplate>\n <div class=\"no-form-selected disclaimer\">\n <div class=\"icon\"><h1>➦</h1></div>\n <div><p>Please select a form to edit it's fields</p></div>\n </div>\n </ng-template>\n</div>\n\n<!-- Component Dialog -->\n<div\n class=\"modal\"\n [class.error]=\"dialogError === true\"\n *ngIf=\"\n dialogOpen ||\n showFieldConfigValidatorsConfigEditor ||\n showFieldConfigPropertiesConfigEditor ||\n showFieldConfigOptionsConfigEditor\n \"\n [@panelInOut]\n>\n <div class=\"modal-box\">\n <div\n class=\"modal-content\"\n *ngIf=\"dialogOpen\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Config Preview\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"convertToMinifiedJson()\">minify</button>\n <button (click)=\"convertToCompleteJson()\">full</button>\n <button (click)=\"downloadJSON()\">download</button>\n <button (click)=\"copyToClipboard()\">copy</button>\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div class=\"json-editor\">\n <code>{{ activeFormConfig | json }}</code>\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigValidatorsConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Validator Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigValidatorsConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigValidatorsConfig | json }}\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigPropertiesConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Properties Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigPropertiesConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigPropertiesConfig | json }}\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigOptionsConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Options Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigOptionsConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigOptionsConfig | json }}\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END -->\n\n<!-- Template for rendering different field types -->\n<!-- General Field Template -->\n<ng-template\n #getFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <div>\n <ng-container\n [ngTemplateOutlet]=\"\n isObject(value) ? objectFieldTemplate : notObjectFieldTemplate\n \"\n [ngTemplateOutletContext]=\"{\n index: index,\n fieldValue: value,\n fieldKey: key,\n parentPath: path\n }\"\n >\n </ng-container>\n </div>\n</ng-template>\n\n<!-- Object Type Field Template -->\n<ng-template\n #objectFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <ng-container *ngFor=\"let item of value | keyvalue\">\n <ng-container\n [ngTemplateOutlet]=\"getFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: index,\n fieldValue: item.value,\n fieldKey: item.key,\n parentPath: path === '' ? key : path + '.' + key\n }\"\n >\n </ng-container>\n </ng-container>\n</ng-template>\n\n<!-- Non Object Type Field Template -->\n<ng-template\n #notObjectFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <div>\n <ng-container *ngIf=\"isOptions(index, value, key, path)\">\n <ng-container\n [ngTemplateOutlet]=\"optionFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: index,\n key: key,\n value: value,\n path: path,\n options: memoizedGetOptions(index, value, key, path)\n }\"\n ></ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"!isOptions(index, value, key, path) && isString(value)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n textFieldTemplate;\n context: { index: index, key: key, value: value, path: path }\n \"\n ></ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"!isOptions(index, value, key, path) && isNumber(value)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n numberFieldTemplate;\n context: { index: index, key: key, value: value, path: path }\n \"\n ></ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Options Field Template -->\n<ng-template\n #optionFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n let-options=\"options\"\n>\n <div class=\"field-container options\">\n <select\n (change)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n >\n <option\n *ngFor=\"let option of options\"\n [value]=\"option\"\n [selected]=\"option === value\"\n >{{ option }}</option\n >\n </select>\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Boolean Field Template -->\n<ng-template\n #booleanFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container checkbox\">\n <input\n type=\"checkbox\"\n [checked]=\"value\"\n (change)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.checked }, path })\"\n />\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Text Field Template -->\n<ng-template\n #textFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container text\">\n <input\n placeholder=\"Enter {{ key }}\"\n type=\"text\"\n [value]=\"value\"\n (blur)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n />\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Number Field Template -->\n<ng-template\n #numberFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container number\">\n <input\n placeholder=\"Enter {{ key }}\"\n type=\"number\"\n [value]=\"value\"\n (blur)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n />\n </div>\n</ng-template>\n<!-- END -->\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;width:100%;height:100%;overflow:auto}.container{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;height:100%;border:1px solid #ccc}.container header{padding:.5rem;display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;border-bottom:1px solid #ccc}.container header .header-form-editor-btns{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center}.container header .header-form-editor-btns>*:not(:last-child){margin-right:1rem}.container main{padding:.5rem;flex-grow:1;overflow:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;white-space:nowrap;position:relative}.container main>*:not(:last-child){margin-right:1rem}.container main .no-fields{position:absolute;top:0;left:0;background:white}.container main .form-config-no-fields{overflow:auto;width:100%}.container main .form-config-fields{overflow:auto;width:100%}.container main .form-config-fields .add-field-btn-container{width:100%;text-align:center}.container main .validators,.container main .properties{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.container main .validators>*:not(:last-child),.container main .properties>*:not(:last-child){margin-bottom:.5rem}.container main .input-checkbox-container{display:flex;flex-direction:row}.container footer{padding:.5rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:stretch;border-top:1px solid lightgray}.container footer>*:not(:last-child){margin-right:1rem}.modal{position:absolute;top:0;background-color:#0000004d;width:100%;height:100%;display:flex;justify-content:center;align-items:center;left:0;flex-direction:row}.modal.error{background-color:#ff00004d}.modal-box{width:75%;height:75%;margin:auto;background-color:#fff;border-radius:1rem;box-shadow:#64646f33 0 7px 29px}.modal-content{display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;width:100%;height:100%}.modal-heading{padding:.5rem 1rem;width:100%;display:flex;flex-direction:row;justify-content:space-between;border-bottom:1px solid lightgray;align-items:center}.modal-title{font-weight:bold;font-size:1rem}.modal-actions{display:flex;flex-direction:row;cursor:pointer}.modal-actions>*:not(:last-child){margin-right:1rem}.modal-body{overflow:auto;flex:1}.modal-body .json-editor{font-family:monospace;white-space:pre-wrap;border:none;padding:0;background-color:#f5f5f5;height:100%;outline:none;overflow:auto}.json-editor{font-family:monospace;white-space:pre-wrap;border:none;padding:0;background-color:#f5f5f5;height:100%;outline:none;overflow:auto}table{width:100%;border-collapse:collapse;margin-bottom:20px}table th,table td{padding:8px;text-align:left;border:1px solid #ccc;vertical-align:top}table th{background-color:#f2f2f2}table tr:nth-child(even){background-color:#f9f9f9}table tr:hover{background-color:#eaeaea}\n"], components: [{ type: i2__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "json": i3__namespace$1.JsonPipe, "keyvalue": i3__namespace$1.KeyValuePipe }, animations: [
|
|
2797
|
+
/** @nocollapse */ KwikIDBuilderFormEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorComponent, deps: [{ token: i3__namespace.KwikUILoaderService }, { token: KwikIDFormBuilderFormEditorService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2798
|
+
/** @nocollapse */ KwikIDBuilderFormEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDBuilderFormEditorComponent, selector: "kwikid-builder-form-editor", inputs: { activeFormConfig: "activeFormConfig" }, outputs: { onClickSaveActiveFormConfig: "onClickSaveActiveFormConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<!-- Component Loader -->\n<kwikui-loader></kwikui-loader>\n\n<!-- Component Main View -->\n<div class=\"container\">\n <ng-container *ngIf=\"activeFormConfig; else noFormSelectedTemplate\">\n <header>\n <div>\n Editing Config of Form: <b>{{ activeFormConfig.props.title }}</b>\n </div>\n <div class=\"header-form-editor-btns\">\n <button (click)=\"handleOnClickPreview()\">preview</button>\n <div>Editor Type:</div>\n <select (change)=\"handleOnClickChangeActiveEditor($event.target.value)\">\n <option\n *ngFor=\"let option of editorTypeOptions\"\n [value]=\"option.key\"\n [selected]=\"option.key === activeEditorType\"\n >\n {{ option.label }}\n </option>\n </select>\n </div>\n </header>\n <main>\n <div\n class=\"form-config-fields\"\n *ngIf=\"activeEditorType == 'FIELDS'; else nonFieldsEditorTemplate\"\n >\n <ng-container *ngIf=\"rows.length <= 0\">\n <div class=\"no-fields disclaimer\">\n <div><p>Please add field to get started</p></div>\n <div class=\"icon\"><h1>+</h1></div>\n <button (click)=\"handleOnClickAddField()\">add field</button>\n </div>\n </ng-container>\n <table>\n <thead>\n <tr>\n <th *ngFor=\"let column of columns\">\n {{ column }}\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor=\"let row of rows; let i = index; trackBy: trackByFn\"\n >\n <tr>\n <ng-container *ngFor=\"let column of columns; let j = index\">\n <td>\n <div [class]=\"column\">\n <ng-container\n *ngIf=\"\n column !== 'delete' &&\n column !== 'validators' &&\n column !== 'properties' &&\n column !== 'type' &&\n column !== 'disabled' &&\n column !== 'options'\n \"\n [ngTemplateOutlet]=\"getFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n fieldValue: row[column],\n fieldKey: column,\n parentPath: ''\n }\"\n ></ng-container>\n <ng-container *ngIf=\"column === 'type'\">\n <ng-container\n [ngTemplateOutlet]=\"optionFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n key: column,\n value: row[column],\n path: '',\n options: memoizedGetOptions(\n i,\n row[column],\n column,\n ''\n )\n }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"column === 'disabled'\">\n <ng-container\n [ngTemplateOutlet]=\"booleanFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: i,\n key: column,\n value: row[column],\n path: '',\n options: memoizedGetOptions(\n i,\n row[column],\n column,\n ''\n )\n }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"column === 'delete'\">\n <button\n (click)=\"\n handleOnClickDeleteField({\n index: i,\n key: row['key']\n })\n \"\n [disabled]=\"rows.length === 1\"\n >\n delete\n </button>\n </ng-container>\n <ng-container *ngIf=\"column === 'validators'\">\n <button\n (click)=\"\n handleOnClickEditValidators({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n edit\n </button>\n </ng-container>\n <ng-container *ngIf=\"column === 'properties'\">\n <button\n (click)=\"\n handleOnClickEditProperties({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n edit\n </button>\n </ng-container>\n <ng-container\n *ngIf=\"row['type'] === 'radio' && column === 'options'\"\n >\n <button\n (click)=\"\n handleOnClickEditOptions({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n add\n </button>\n </ng-container>\n <ng-container\n *ngIf=\"row['type'] === 'select' && column === 'options'\"\n >\n <button\n (click)=\"\n handleOnClickEditOptions({\n index: i,\n key: row['key'],\n type: row['type']\n })\n \"\n >\n add\n </button>\n </ng-container>\n </div>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div class=\"add-field-btn-container\"> </div>\n </div>\n <ng-template #nonFieldsEditorTemplate>\n <div class=\"form-config-no-fields\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnClickSaveActiveFormConfig_NoFields(\n $event.target.innerHTML\n )\n \"\n >\n {{ activeFormConfig_NoFields | json }}\n </div>\n </div>\n </ng-template>\n </main>\n <footer>\n <button\n *ngIf=\"rows.length > 0\"\n (click)=\"handleOnClickAddField()\"\n >\n add field\n </button>\n <button\n (click)=\"handleOnClickSaveActiveFormConfig()\"\n [class.secondary]=\"!savedConfig\"\n >\n {{ savedConfig ? \"saved\" : \"unsaved\" }}\n </button>\n </footer>\n </ng-container>\n <ng-template #noFormSelectedTemplate>\n <div class=\"no-form-selected disclaimer\">\n <div class=\"icon\"><h1>➦</h1></div>\n <div><p>Please select a form to edit it's fields</p></div>\n </div>\n </ng-template>\n</div>\n\n<!-- Component Dialog -->\n<div\n class=\"modal\"\n [class.error]=\"dialogError === true\"\n *ngIf=\"\n dialogOpen ||\n showFieldConfigValidatorsConfigEditor ||\n showFieldConfigPropertiesConfigEditor ||\n showFieldConfigOptionsConfigEditor\n \"\n [@panelInOut]\n>\n <div class=\"modal-box\">\n <div\n class=\"modal-content\"\n *ngIf=\"dialogOpen\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Config Preview\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"convertToMinifiedJson()\">minify</button>\n <button (click)=\"convertToCompleteJson()\">full</button>\n <button (click)=\"downloadJSON()\">download</button>\n <button (click)=\"copyToClipboard()\">copy</button>\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div class=\"json-editor\">\n <code>{{ activeFormConfig | json }}</code>\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigValidatorsConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Validator Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigValidatorsConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigValidatorsConfig | json }}\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigPropertiesConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Properties Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigPropertiesConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigPropertiesConfig | json }}\n </div>\n </div>\n </div>\n <div\n class=\"modal-content\"\n *ngIf=\"showFieldConfigOptionsConfigEditor\"\n >\n <div class=\"modal-heading\">\n <div class=\"modal-title\">\n {{ activeFormConfig.props.title }}'s Options Config Editor\n </div>\n <div class=\"modal-actions\">\n <button (click)=\"closeJSONPopup()\">close</button>\n </div>\n </div>\n <div class=\"modal-body\">\n <div\n class=\"json-editor\"\n contenteditable=\"true\"\n (keyup)=\"\n handleOnInputFieldConfigOptionsConfig($event.target.innerHTML)\n \"\n >\n {{ this.activeFieldConfigOptionsConfig | json }}\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END -->\n\n<!-- Template for rendering different field types -->\n<!-- General Field Template -->\n<ng-template\n #getFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <div>\n <ng-container\n [ngTemplateOutlet]=\"\n isObject(value) ? objectFieldTemplate : notObjectFieldTemplate\n \"\n [ngTemplateOutletContext]=\"{\n index: index,\n fieldValue: value,\n fieldKey: key,\n parentPath: path\n }\"\n >\n </ng-container>\n </div>\n</ng-template>\n\n<!-- Object Type Field Template -->\n<ng-template\n #objectFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <ng-container *ngFor=\"let item of value | keyvalue\">\n <ng-container\n [ngTemplateOutlet]=\"getFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: index,\n fieldValue: item.value,\n fieldKey: item.key,\n parentPath: path === '' ? key : path + '.' + key\n }\"\n >\n </ng-container>\n </ng-container>\n</ng-template>\n\n<!-- Non Object Type Field Template -->\n<ng-template\n #notObjectFieldTemplate\n let-index=\"index\"\n let-value=\"fieldValue\"\n let-key=\"fieldKey\"\n let-path=\"parentPath\"\n>\n <div>\n <ng-container *ngIf=\"isOptions(index, value, key, path)\">\n <ng-container\n [ngTemplateOutlet]=\"optionFieldTemplate\"\n [ngTemplateOutletContext]=\"{\n index: index,\n key: key,\n value: value,\n path: path,\n options: memoizedGetOptions(index, value, key, path)\n }\"\n ></ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"!isOptions(index, value, key, path) && isString(value)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n textFieldTemplate;\n context: { index: index, key: key, value: value, path: path }\n \"\n ></ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"!isOptions(index, value, key, path) && isNumber(value)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n numberFieldTemplate;\n context: { index: index, key: key, value: value, path: path }\n \"\n ></ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Options Field Template -->\n<ng-template\n #optionFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n let-options=\"options\"\n>\n <div class=\"field-container options\">\n <select\n (change)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n >\n <option\n *ngFor=\"let option of options\"\n [value]=\"option\"\n [selected]=\"option === value\"\n >{{ option }}</option\n >\n </select>\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Boolean Field Template -->\n<ng-template\n #booleanFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container checkbox\">\n <input\n type=\"checkbox\"\n [checked]=\"value\"\n (change)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.checked }, path })\"\n />\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Text Field Template -->\n<ng-template\n #textFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container text\">\n <input\n placeholder=\"Enter {{ key }}\"\n type=\"text\"\n [value]=\"value\"\n (blur)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n />\n </div>\n</ng-template>\n\n<!-- Non Object Type Field :: Number Field Template -->\n<ng-template\n #numberFieldTemplate\n let-index=\"index\"\n let-key=\"key\"\n let-value=\"value\"\n let-path=\"path\"\n>\n <div class=\"field-container number\">\n <input\n placeholder=\"Enter {{ key }}\"\n type=\"number\"\n [value]=\"value\"\n (blur)=\"handleOnInput({ index, key, value: { previous: value, new: $event.target.value }, path })\"\n />\n </div>\n</ng-template>\n<!-- END -->\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;width:100%;height:100%;overflow:auto}.container{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;height:100%;border:1px solid #ccc}.container header{padding:.5rem;display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;border-bottom:1px solid #ccc}.container header .header-form-editor-btns{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center}.container header .header-form-editor-btns>*:not(:last-child){margin-right:1rem}.container main{padding:.5rem;flex-grow:1;overflow:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;white-space:nowrap;position:relative}.container main>*:not(:last-child){margin-right:1rem}.container main .no-fields{position:absolute;top:0;left:0;background:white}.container main .form-config-no-fields{overflow:auto;width:100%}.container main .form-config-fields{overflow:auto;width:100%}.container main .form-config-fields .add-field-btn-container{width:100%;text-align:center}.container main .validators,.container main .properties{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.container main .validators>*:not(:last-child),.container main .properties>*:not(:last-child){margin-bottom:.5rem}.container main .input-checkbox-container{display:flex;flex-direction:row}.container footer{padding:.5rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:stretch;border-top:1px solid lightgray}.container footer>*:not(:last-child){margin-right:1rem}.modal{position:absolute;top:0;background-color:#0000004d;width:100%;height:100%;display:flex;justify-content:center;align-items:center;left:0;flex-direction:row}.modal.error{background-color:#ff00004d}.modal-box{width:75%;height:75%;margin:auto;background-color:#fff;border-radius:1rem;box-shadow:#64646f33 0 7px 29px}.modal-content{display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;width:100%;height:100%}.modal-heading{padding:.5rem 1rem;width:100%;display:flex;flex-direction:row;justify-content:space-between;border-bottom:1px solid lightgray;align-items:center}.modal-title{font-weight:bold;font-size:1rem}.modal-actions{display:flex;flex-direction:row;cursor:pointer}.modal-actions>*:not(:last-child){margin-right:1rem}.modal-body{overflow:auto;flex:1}.modal-body .json-editor{font-family:monospace;white-space:pre-wrap;border:none;padding:0;background-color:#f5f5f5;height:100%;outline:none;overflow:auto}.json-editor{font-family:monospace;white-space:pre-wrap;border:none;padding:0;background-color:#f5f5f5;height:100%;outline:none;overflow:auto}table{width:100%;border-collapse:collapse;margin-bottom:20px}table th,table td{padding:8px;text-align:left;border:1px solid #ccc;vertical-align:top}table th{background-color:#f2f2f2}table tr:nth-child(even){background-color:#f9f9f9}table tr:hover{background-color:#eaeaea}\n"], components: [{ type: i3__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }], directives: [{ type: i3__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "json": i3__namespace$2.JsonPipe, "keyvalue": i3__namespace$2.KeyValuePipe }, animations: [
|
|
2752
2799
|
animations.trigger("panelInOut", [
|
|
2753
2800
|
animations.transition(":enter", [
|
|
2754
2801
|
animations.style({ transform: "translateY(100%)" }),
|
|
@@ -2844,7 +2891,7 @@
|
|
|
2844
2891
|
])
|
|
2845
2892
|
]
|
|
2846
2893
|
}]
|
|
2847
|
-
}], ctorParameters: function () { return [{ type:
|
|
2894
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.KwikUILoaderService }, { type: KwikIDFormBuilderFormEditorService }]; }, propDecorators: { activeFormConfig: [{
|
|
2848
2895
|
type: i0.Input
|
|
2849
2896
|
}], onClickSaveActiveFormConfig: [{
|
|
2850
2897
|
type: i0.Output
|
|
@@ -3004,8 +3051,8 @@
|
|
|
3004
3051
|
};
|
|
3005
3052
|
return KwikIDFormsBuilderComponent;
|
|
3006
3053
|
}());
|
|
3007
|
-
/** @nocollapse */ KwikIDFormsBuilderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsBuilderComponent, deps: [{ token:
|
|
3008
|
-
/** @nocollapse */ KwikIDFormsBuilderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsBuilderComponent, selector: "kwikid-forms-builder", inputs: { userConfig: "userConfig" }, ngImport: i0__namespace, template: "<div class=\"container\">\n <kwikid-builder-forms-list\n [activeFormConfig]=\"this.activeFormConfig\"\n [formsList]=\"this.formsList\"\n (getFormsList)=\"this.handleGetFormsList($event)\"\n (onClickSetActiveForm)=\"this.handleOnClickSetActiveForm($event)\"\n ></kwikid-builder-forms-list>\n <kwikid-builder-form-editor\n [activeFormConfig]=\"activeFormConfig\"\n (onClickSaveActiveFormConfig)=\"\n this.handleOnClickSaveActiveFormConfig($event)\n \"\n ></kwikid-builder-form-editor>\n</div>\n\n<kwikui-loader\n></kwikui-loader>\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;width:100%;height:100%}.container{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;padding:1rem}.container>*:not(:last-child){margin-right:1rem}\n"], components: [{ type: KwikIDBuilderFormsListComponent, selector: "kwikid-builder-forms-list", inputs: ["activeFormConfig", "formsList"], outputs: ["onClickSetActiveForm", "getFormsList"] }, { type: KwikIDBuilderFormEditorComponent, selector: "kwikid-builder-form-editor", inputs: ["activeFormConfig"], outputs: ["onClickSaveActiveFormConfig"] }, { type:
|
|
3054
|
+
/** @nocollapse */ KwikIDFormsBuilderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsBuilderComponent, deps: [{ token: i3__namespace.KwikUILoaderService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3055
|
+
/** @nocollapse */ KwikIDFormsBuilderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsBuilderComponent, selector: "kwikid-forms-builder", inputs: { userConfig: "userConfig" }, ngImport: i0__namespace, template: "<div class=\"container\">\n <kwikid-builder-forms-list\n [activeFormConfig]=\"this.activeFormConfig\"\n [formsList]=\"this.formsList\"\n (getFormsList)=\"this.handleGetFormsList($event)\"\n (onClickSetActiveForm)=\"this.handleOnClickSetActiveForm($event)\"\n ></kwikid-builder-forms-list>\n <kwikid-builder-form-editor\n [activeFormConfig]=\"activeFormConfig\"\n (onClickSaveActiveFormConfig)=\"\n this.handleOnClickSaveActiveFormConfig($event)\n \"\n ></kwikid-builder-form-editor>\n</div>\n\n<kwikui-loader\n></kwikui-loader>\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}input[type=text],input[type=number]{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;appearance:auto!important}input[type=checkbox]{appearance:auto!important;width:1rem;height:1rem}select{width:100%;padding:8px 12px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}textarea{overflow-wrap:anywhere;resize:none;unicode-bidi:embed;white-space:pre-wrap}button{display:inline-block;padding:8px 12px;background-color:#007bff;color:#fff;text-decoration:none;border-radius:4px;border:none;cursor:pointer}button:hover{background-color:#0069d9}button:active{background-color:#0056b3}button:focus{outline:none}button.secondary{padding:7px 11px;border:1px solid #007bff;background-color:#fff;color:#007bff}button.secondary:hover{background-color:#b7daff}button.secondary:active{background-color:#b7daff}button.secondary:focus{outline:none}.field-container{display:flex}.field-container label{color:gray}.field-container.checkbox{flex-direction:row;align-items:center;justify-content:center;padding:8px 12px;margin:auto}.field-container.options,.field-container.number,.field-container.text{flex-direction:column}.disclaimer{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#121212;width:100%;height:100%}.disclaimer>*:not(:last-child){margin-bottom:1.5rem}.disclaimer .icon{width:3rem;height:3rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.disclaimer.no-form-selected h1{transform:scaleX(-1)}.disclaimer h1{font-size:5rem;font-weight:100}.disclaimer p{font-size:1rem}\n", ":host{all:unset;position:relative;width:100%;height:100%}.container{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;padding:1rem}.container>*:not(:last-child){margin-right:1rem}\n"], components: [{ type: KwikIDBuilderFormsListComponent, selector: "kwikid-builder-forms-list", inputs: ["activeFormConfig", "formsList"], outputs: ["onClickSetActiveForm", "getFormsList"] }, { type: KwikIDBuilderFormEditorComponent, selector: "kwikid-builder-form-editor", inputs: ["activeFormConfig"], outputs: ["onClickSaveActiveFormConfig"] }, { type: i3__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }] });
|
|
3009
3056
|
__decorate([
|
|
3010
3057
|
kwikidToolkit.logMethod
|
|
3011
3058
|
], KwikIDFormsBuilderComponent.prototype, "fetchFormConfig", null);
|
|
@@ -3028,7 +3075,7 @@
|
|
|
3028
3075
|
templateUrl: "./builder.component.html",
|
|
3029
3076
|
styleUrls: ["./shared.scss", "./builder.component.scss"]
|
|
3030
3077
|
}]
|
|
3031
|
-
}], ctorParameters: function () { return [{ type:
|
|
3078
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.KwikUILoaderService }]; }, propDecorators: { userConfig: [{
|
|
3032
3079
|
type: i0.Input
|
|
3033
3080
|
}], fetchFormConfig: [], handleGetFormsList: [], handleOnClickSetActiveForm: [], handleOnClickSaveActiveFormConfig: [], toggleLoader: [] } });
|
|
3034
3081
|
|
|
@@ -3066,6 +3113,10 @@
|
|
|
3066
3113
|
EActionKey["FIELD_ENABLE"] = "FIELD_ENABLE";
|
|
3067
3114
|
EActionKey["FIELD_DISABLE"] = "FIELD_DISABLE";
|
|
3068
3115
|
EActionKey["FIELD_RESET"] = "FIELD_RESET";
|
|
3116
|
+
EActionKey["FIELD_GROUP_SHOW_API_LOADER"] = "FIELD_GROUP_SHOW_API_LOADER";
|
|
3117
|
+
EActionKey["FIELD_GROUP_HIDE_API_LOADER"] = "FIELD_GROUP_HIDE_API_LOADER";
|
|
3118
|
+
EActionKey["FIELD_SHOW_API_LOADER"] = "FIELD_SHOW_API_LOADER";
|
|
3119
|
+
EActionKey["FIELD_HIDE_API_LOADER"] = "FIELD_HIDE_API_LOADER";
|
|
3069
3120
|
EActionKey["HANDLE_CONNECTED_ELEMENTS"] = "HANDLE_CONNECTED_ELEMENTS";
|
|
3070
3121
|
EActionKey["CUSTOM"] = "CUSTOM";
|
|
3071
3122
|
EActionKey["FIELD_GROUP_SHOW"] = "FIELD_GROUP_SHOW";
|
|
@@ -3132,10 +3183,12 @@
|
|
|
3132
3183
|
ELogEventType["FORM__API_BUTTON_CLICK"] = "FORM__API_BUTTON_CLICK";
|
|
3133
3184
|
ELogEventType["FORM__API_REQUEST"] = "FORM__API_REQUEST";
|
|
3134
3185
|
ELogEventType["FORM__API_REQUEST_INVALID"] = "FORM__API_REQUEST_INVALID";
|
|
3186
|
+
ELogEventType["FORM__API_REQUEST_REVERSE_LAT_LONG"] = "FORM__API_REQUEST_REVERSE_LAT_LONG";
|
|
3135
3187
|
ELogEventType["FORM__API_REQUEST_UPLOAD_FILE"] = "FORM__API_REQUEST_UPLOAD_FILE";
|
|
3136
3188
|
ELogEventType["FORM__API_REQUEST_UPLOAD_IMAGE"] = "FORM__API_REQUEST_UPLOAD_IMAGE";
|
|
3137
3189
|
ELogEventType["FORM__API_REQUEST_UPLOAD_VIDEO"] = "FORM__API_REQUEST_UPLOAD_VIDEO";
|
|
3138
3190
|
ELogEventType["FORM__API_RESPONSE"] = "FORM__API_RESPONSE";
|
|
3191
|
+
ELogEventType["FORM__API_RESPONSE_REVERSE_LAT_LONG"] = "FORM__API_RESPONSE_REVERSE_LAT_LONG";
|
|
3139
3192
|
ELogEventType["FORM__API_RESPONSE_UPLOAD_FILE"] = "FORM__API_RESPONSE_UPLOAD_FILE";
|
|
3140
3193
|
ELogEventType["FORM__API_RESPONSE_UPLOAD_IMAGE"] = "FORM__API_RESPONSE_UPLOAD_IMAGE";
|
|
3141
3194
|
ELogEventType["FORM__API_RESPONSE_UPLOAD_VIDEO"] = "FORM__API_RESPONSE_UPLOAD_VIDEO";
|
|
@@ -3146,8 +3199,8 @@
|
|
|
3146
3199
|
ELogEventType["FORM__DIALOG_ERROR"] = "FORM__DIALOG_ERROR";
|
|
3147
3200
|
ELogEventType["FORM__DIALOG_HIDE"] = "FORM__DIALOG_HIDE";
|
|
3148
3201
|
ELogEventType["FORM__DIALOG_SHOW"] = "FORM__DIALOG_SHOW";
|
|
3149
|
-
ELogEventType["FORM__FIELD_API_TIMER_MESSAGE_SHOW"] = "FORM__FIELD_API_TIMER_MESSAGE_SHOW";
|
|
3150
3202
|
ELogEventType["FORM__FIELD_API_TIMER_MESSAGE_HIDE"] = "FORM__FIELD_API_TIMER_MESSAGE_HIDE";
|
|
3203
|
+
ELogEventType["FORM__FIELD_API_TIMER_MESSAGE_SHOW"] = "FORM__FIELD_API_TIMER_MESSAGE_SHOW";
|
|
3151
3204
|
ELogEventType["FORM__FIELD_BUTTON_CLICK"] = "FORM__FIELD_BUTTON_CLICK";
|
|
3152
3205
|
ELogEventType["FORM__FIELD_CAMERA_BUTTON_CLICK"] = "FORM__FIELD_CAMERA_BUTTON_CLICK";
|
|
3153
3206
|
ELogEventType["FORM__FIELD_DISABLE"] = "FORM__FIELD_DISABLE";
|
|
@@ -3163,6 +3216,9 @@
|
|
|
3163
3216
|
ELogEventType["FORM__FIELD_RESET"] = "FORM__FIELD_RESET";
|
|
3164
3217
|
ELogEventType["FORM__FIELD_RESET_BUTTON_CLICK"] = "FORM__FIELD_RESET_BUTTON_CLICK";
|
|
3165
3218
|
ELogEventType["FORM__FIELD_SHOW"] = "FORM__FIELD_SHOW";
|
|
3219
|
+
ELogEventType["FORM__LIVE_LOCATION_BUTTON_CLICK"] = "FORM__LIVE_LOCATION_BUTTON_CLICK";
|
|
3220
|
+
ELogEventType["FORM__LIVE_LOCATION_PERMISSION_ERROR"] = "FORM__LIVE_LOCATION_PERMISSION_ERROR";
|
|
3221
|
+
ELogEventType["FORM__LIVE_LOCATION_PERMISSION_SUCCESS"] = "FORM__LIVE_LOCATION_PERMISSION_SUCCESS";
|
|
3166
3222
|
ELogEventType["FORM__PREVIEW_ERROR"] = "FORM__PREVIEW_ERROR";
|
|
3167
3223
|
ELogEventType["FORM__PREVIEW_HIDE"] = "FORM__PREVIEW_HIDE";
|
|
3168
3224
|
ELogEventType["FORM__PREVIEW_SHOW"] = "FORM__PREVIEW_SHOW";
|
|
@@ -3174,6 +3230,314 @@
|
|
|
3174
3230
|
ELogEventType["FORM__VIEW_BUTTON_CLICK"] = "FORM__VIEW_BUTTON_CLICK";
|
|
3175
3231
|
})(ELogEventType$1 || (ELogEventType$1 = {}));
|
|
3176
3232
|
|
|
3233
|
+
var KwikIDFormViewApiService = /** @class */ (function () {
|
|
3234
|
+
function KwikIDFormViewApiService() {
|
|
3235
|
+
this.bytecode = [0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38];
|
|
3236
|
+
}
|
|
3237
|
+
// Function to derive logic from data
|
|
3238
|
+
KwikIDFormViewApiService.prototype.dataDerivativeLogic = function (data) {
|
|
3239
|
+
var e_1, _c;
|
|
3240
|
+
if (kwikidToolkit.isNotEmptyValue(data)) {
|
|
3241
|
+
var dataString = JSON.stringify(data);
|
|
3242
|
+
var charCounts_1 = {};
|
|
3243
|
+
var targetCharacters = ["a", "i", "p", "t"];
|
|
3244
|
+
try {
|
|
3245
|
+
// Count occurrences of target characters in the data string
|
|
3246
|
+
for (var dataString_1 = __values(dataString), dataString_1_1 = dataString_1.next(); !dataString_1_1.done; dataString_1_1 = dataString_1.next()) {
|
|
3247
|
+
var char = dataString_1_1.value;
|
|
3248
|
+
if (targetCharacters.includes(char)) {
|
|
3249
|
+
charCounts_1[char] = (charCounts_1[char] || 0) + 1;
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3254
|
+
finally {
|
|
3255
|
+
try {
|
|
3256
|
+
if (dataString_1_1 && !dataString_1_1.done && (_c = dataString_1.return)) _c.call(dataString_1);
|
|
3257
|
+
}
|
|
3258
|
+
finally { if (e_1) throw e_1.error; }
|
|
3259
|
+
}
|
|
3260
|
+
// Construct the output string based on the character counts
|
|
3261
|
+
var outputString = targetCharacters
|
|
3262
|
+
.map(function (char) { return char + (charCounts_1[char] || 0); })
|
|
3263
|
+
.join("");
|
|
3264
|
+
return outputString;
|
|
3265
|
+
}
|
|
3266
|
+
else {
|
|
3267
|
+
return undefined;
|
|
3268
|
+
}
|
|
3269
|
+
};
|
|
3270
|
+
// Function to preprocess header data
|
|
3271
|
+
KwikIDFormViewApiService.prototype.preProcessHeader = function (headerData, isVerifySignature) {
|
|
3272
|
+
if (!headerData)
|
|
3273
|
+
headerData = {};
|
|
3274
|
+
if (!headerData.headers)
|
|
3275
|
+
headerData["headers"] = {};
|
|
3276
|
+
// Generate a unique identifier if signature verification is required
|
|
3277
|
+
if (isVerifySignature) {
|
|
3278
|
+
headerData["headers"]["xrid"] = uuid.v4();
|
|
3279
|
+
}
|
|
3280
|
+
// Retrieve session ID from local storage and add it to headers
|
|
3281
|
+
var session_id = localStorage.getItem("session_id");
|
|
3282
|
+
if (session_id)
|
|
3283
|
+
headerData["headers"]["ses"] = session_id;
|
|
3284
|
+
return headerData;
|
|
3285
|
+
};
|
|
3286
|
+
// Function to verify the signature
|
|
3287
|
+
KwikIDFormViewApiService.prototype.verifySignature = function (data, header, url, isVerifySignature) {
|
|
3288
|
+
return new Promise(function (resolve, reject) {
|
|
3289
|
+
// Log the function call for verification
|
|
3290
|
+
console.log("Verify Signature: Function Called For", url, header);
|
|
3291
|
+
// Check if the signature is disabled
|
|
3292
|
+
if (!isVerifySignature) {
|
|
3293
|
+
console.log("Verify Signature: Authentication Disabled");
|
|
3294
|
+
resolve(true);
|
|
3295
|
+
}
|
|
3296
|
+
// Check if data is invalid
|
|
3297
|
+
else if (!data) {
|
|
3298
|
+
console.log("Verify Signature: Data Not Available");
|
|
3299
|
+
resolve(true);
|
|
3300
|
+
}
|
|
3301
|
+
// Check if the signature is missing in headers when authentication is not skipped
|
|
3302
|
+
else if (isVerifySignature && header && !(header === null || header === void 0 ? void 0 : header.sig)) {
|
|
3303
|
+
console.log("Verify Signature Failure: Signature Not Present in Headers");
|
|
3304
|
+
reject(false);
|
|
3305
|
+
}
|
|
3306
|
+
// Verify the signature when public key and header with signature are present and authentication is not skipped
|
|
3307
|
+
else if (isVerifySignature && header && (header === null || header === void 0 ? void 0 : header.sig)) {
|
|
3308
|
+
console.log("Verify Signature: Signature Present in Headers");
|
|
3309
|
+
// Extract the signature and decode it
|
|
3310
|
+
var signature = header.sig.split(".")[0];
|
|
3311
|
+
var rawSignature = atob(signature);
|
|
3312
|
+
// Split the decoded signature to get the parts
|
|
3313
|
+
signature = rawSignature.split(".")[0];
|
|
3314
|
+
var exp = rawSignature.split(".")[1] + "000"; // Expiration time in milliseconds
|
|
3315
|
+
var iat = rawSignature.split(".")[2] + "000"; // Issued at time in milliseconds
|
|
3316
|
+
// Check if the signature is valid
|
|
3317
|
+
if (signature) {
|
|
3318
|
+
// Check if the current time is before the expiration time
|
|
3319
|
+
var dateValue = new Date().valueOf();
|
|
3320
|
+
var dateCheck = dateValue < parseInt(exp);
|
|
3321
|
+
// Check if the signature matches the data
|
|
3322
|
+
var res = signature === data;
|
|
3323
|
+
console.log("Verify Signature: Matching", signature, data);
|
|
3324
|
+
console.log("Verify Signature: Time", dateValue, parseInt(exp), parseInt(exp) - dateValue);
|
|
3325
|
+
console.log("Verify Signature: Date", new Date(dateValue), new Date(parseInt(exp)));
|
|
3326
|
+
console.log("Verify Signature: Signature Converted to Required Format");
|
|
3327
|
+
// Resolve the promise if the signature is valid and the date check passes
|
|
3328
|
+
if (res && dateCheck) {
|
|
3329
|
+
console.log("Verify Signature Success");
|
|
3330
|
+
resolve(res);
|
|
3331
|
+
}
|
|
3332
|
+
else {
|
|
3333
|
+
// Reject the promise if the signature is invalid or the date check fails
|
|
3334
|
+
console.log("Verify Signature Failure: Signature did not match");
|
|
3335
|
+
reject(res);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
else {
|
|
3339
|
+
// Reject the promise if the signature is not in the required format
|
|
3340
|
+
console.log("Verify Signature Failure: Signature Not Converted to Required Format");
|
|
3341
|
+
reject(false);
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
else {
|
|
3345
|
+
// Resolve the promise if the signature is missing in headers
|
|
3346
|
+
console.log("Verify Signature Failure: Signature Not Present in Headers");
|
|
3347
|
+
resolve(true);
|
|
3348
|
+
}
|
|
3349
|
+
});
|
|
3350
|
+
};
|
|
3351
|
+
// Function to perform POST request
|
|
3352
|
+
KwikIDFormViewApiService.prototype.post = function (url, body, headerData, isEncrypt, isDecrypt, isVerifySignature, isSkipHeaderAlteration) {
|
|
3353
|
+
var _this = this;
|
|
3354
|
+
if (isEncrypt === void 0) { isEncrypt = false; }
|
|
3355
|
+
if (isDecrypt === void 0) { isDecrypt = false; }
|
|
3356
|
+
if (isVerifySignature === void 0) { isVerifySignature = false; }
|
|
3357
|
+
if (isSkipHeaderAlteration === void 0) { isSkipHeaderAlteration = false; }
|
|
3358
|
+
var preProcessedHeader = headerData;
|
|
3359
|
+
// Preprocess header data unless instructed to skip
|
|
3360
|
+
if (!isSkipHeaderAlteration) {
|
|
3361
|
+
preProcessedHeader = this.preProcessHeader(headerData, isVerifySignature);
|
|
3362
|
+
}
|
|
3363
|
+
else {
|
|
3364
|
+
preProcessedHeader["observe"] = "response";
|
|
3365
|
+
}
|
|
3366
|
+
// Encrypt body if required
|
|
3367
|
+
if (isEncrypt) {
|
|
3368
|
+
body = kwikidToolkit.encryptWithAES(JSON.stringify(body));
|
|
3369
|
+
}
|
|
3370
|
+
return new rxjs.Observable(function (subscriber) {
|
|
3371
|
+
axios__default["default"].post(url, body, headerData).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
3372
|
+
var data, encryptedResponse, decryptedResponse;
|
|
3373
|
+
return __generator(this, function (_c) {
|
|
3374
|
+
switch (_c.label) {
|
|
3375
|
+
case 0:
|
|
3376
|
+
data = res["data"];
|
|
3377
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3378
|
+
encryptedResponse = data;
|
|
3379
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3380
|
+
case 1:
|
|
3381
|
+
decryptedResponse = _c.sent();
|
|
3382
|
+
data = JSON.parse(decryptedResponse);
|
|
3383
|
+
console.log("Decrypted Response", data);
|
|
3384
|
+
res.data = data;
|
|
3385
|
+
_c.label = 2;
|
|
3386
|
+
case 2:
|
|
3387
|
+
// Verify signature and handle response
|
|
3388
|
+
this.verifySignature(this.dataDerivativeLogic(data), res === null || res === void 0 ? void 0 : res.headers, url, isVerifySignature)
|
|
3389
|
+
.then(function (verification) {
|
|
3390
|
+
subscriber.next(res);
|
|
3391
|
+
subscriber.complete();
|
|
3392
|
+
})
|
|
3393
|
+
.catch(function (err) {
|
|
3394
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3395
|
+
});
|
|
3396
|
+
return [2 /*return*/];
|
|
3397
|
+
}
|
|
3398
|
+
});
|
|
3399
|
+
}); }, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
3400
|
+
var _a, _b, data, encryptedResponse, decryptedResponse;
|
|
3401
|
+
return __generator(this, function (_c) {
|
|
3402
|
+
switch (_c.label) {
|
|
3403
|
+
case 0:
|
|
3404
|
+
data = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
3405
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3406
|
+
encryptedResponse = data;
|
|
3407
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3408
|
+
case 1:
|
|
3409
|
+
decryptedResponse = _c.sent();
|
|
3410
|
+
data = JSON.parse(decryptedResponse);
|
|
3411
|
+
console.log("Decrypted Response", data);
|
|
3412
|
+
err.response.data = data;
|
|
3413
|
+
_c.label = 2;
|
|
3414
|
+
case 2:
|
|
3415
|
+
// Verify signature and handle response
|
|
3416
|
+
this.verifySignature(this.dataDerivativeLogic(data), (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.headers, url, isVerifySignature)
|
|
3417
|
+
.then(function (verification) {
|
|
3418
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3419
|
+
})
|
|
3420
|
+
.catch(function (err) {
|
|
3421
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3422
|
+
});
|
|
3423
|
+
return [2 /*return*/];
|
|
3424
|
+
}
|
|
3425
|
+
});
|
|
3426
|
+
}); });
|
|
3427
|
+
});
|
|
3428
|
+
};
|
|
3429
|
+
// Function to perform GET request
|
|
3430
|
+
KwikIDFormViewApiService.prototype.get = function (url, headerData, isDecrypt, isVerifySignature, isSkipHeaderAlteration) {
|
|
3431
|
+
var _this = this;
|
|
3432
|
+
if (headerData === void 0) { headerData = undefined; }
|
|
3433
|
+
if (isDecrypt === void 0) { isDecrypt = false; }
|
|
3434
|
+
if (isVerifySignature === void 0) { isVerifySignature = false; }
|
|
3435
|
+
if (isSkipHeaderAlteration === void 0) { isSkipHeaderAlteration = false; }
|
|
3436
|
+
var preProcessedHeader = headerData;
|
|
3437
|
+
// Preprocess header data unless instructed to skip
|
|
3438
|
+
if (!isSkipHeaderAlteration) {
|
|
3439
|
+
preProcessedHeader = this.preProcessHeader(headerData, isVerifySignature);
|
|
3440
|
+
}
|
|
3441
|
+
else {
|
|
3442
|
+
preProcessedHeader["observe"] = "response";
|
|
3443
|
+
}
|
|
3444
|
+
return new rxjs.Observable(function (subscriber) {
|
|
3445
|
+
axios__default["default"].get(url, preProcessedHeader).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
3446
|
+
var data, encryptedResponse, decryptedResponse;
|
|
3447
|
+
return __generator(this, function (_c) {
|
|
3448
|
+
switch (_c.label) {
|
|
3449
|
+
case 0:
|
|
3450
|
+
data = res["data"];
|
|
3451
|
+
if (!isDecrypt) return [3 /*break*/, 2];
|
|
3452
|
+
encryptedResponse = data;
|
|
3453
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3454
|
+
case 1:
|
|
3455
|
+
decryptedResponse = _c.sent();
|
|
3456
|
+
data = JSON.parse(decryptedResponse);
|
|
3457
|
+
console.log("Decrypted Response", data);
|
|
3458
|
+
res.data = data;
|
|
3459
|
+
_c.label = 2;
|
|
3460
|
+
case 2:
|
|
3461
|
+
// Verify signature and handle response
|
|
3462
|
+
this.verifySignature(this.dataDerivativeLogic(data), res === null || res === void 0 ? void 0 : res.headers, url, isVerifySignature)
|
|
3463
|
+
.then(function (verification) {
|
|
3464
|
+
subscriber.next(res);
|
|
3465
|
+
subscriber.complete();
|
|
3466
|
+
})
|
|
3467
|
+
.catch(function (err) {
|
|
3468
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3469
|
+
});
|
|
3470
|
+
return [2 /*return*/];
|
|
3471
|
+
}
|
|
3472
|
+
});
|
|
3473
|
+
}); }, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
3474
|
+
var _a, _b, data, encryptedResponse, decryptedResponse;
|
|
3475
|
+
return __generator(this, function (_c) {
|
|
3476
|
+
switch (_c.label) {
|
|
3477
|
+
case 0:
|
|
3478
|
+
data = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
3479
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3480
|
+
encryptedResponse = data;
|
|
3481
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3482
|
+
case 1:
|
|
3483
|
+
decryptedResponse = _c.sent();
|
|
3484
|
+
data = JSON.parse(decryptedResponse);
|
|
3485
|
+
console.log("Decrypted Response", data);
|
|
3486
|
+
err.response.data = data;
|
|
3487
|
+
_c.label = 2;
|
|
3488
|
+
case 2:
|
|
3489
|
+
// Verify signature and handle response
|
|
3490
|
+
this.verifySignature(this.dataDerivativeLogic(data), (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.headers, url, isVerifySignature)
|
|
3491
|
+
.then(function (verification) {
|
|
3492
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3493
|
+
})
|
|
3494
|
+
.catch(function (err) {
|
|
3495
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3496
|
+
});
|
|
3497
|
+
return [2 /*return*/];
|
|
3498
|
+
}
|
|
3499
|
+
});
|
|
3500
|
+
}); });
|
|
3501
|
+
});
|
|
3502
|
+
};
|
|
3503
|
+
// Function to execute API call based on method type
|
|
3504
|
+
KwikIDFormViewApiService.prototype.executeApiCall = function (url, method, body, headers, isEncrypt, isDecrypt, isVerifySignature) {
|
|
3505
|
+
var _this = this;
|
|
3506
|
+
return new Promise(function (resolve) {
|
|
3507
|
+
if (method == "GET") {
|
|
3508
|
+
_this.get(url, { headers: headers }, isDecrypt, isVerifySignature).subscribe(function (res) {
|
|
3509
|
+
resolve(res);
|
|
3510
|
+
}, function (err) {
|
|
3511
|
+
resolve(err);
|
|
3512
|
+
});
|
|
3513
|
+
}
|
|
3514
|
+
else {
|
|
3515
|
+
_this.post(url, body, { headers: headers }, isEncrypt, isDecrypt, isVerifySignature).subscribe(function (res) {
|
|
3516
|
+
resolve(res);
|
|
3517
|
+
}, function (err) {
|
|
3518
|
+
resolve(err);
|
|
3519
|
+
});
|
|
3520
|
+
}
|
|
3521
|
+
});
|
|
3522
|
+
};
|
|
3523
|
+
return KwikIDFormViewApiService;
|
|
3524
|
+
}());
|
|
3525
|
+
__decorate([
|
|
3526
|
+
kwikidToolkit.logMethod
|
|
3527
|
+
], KwikIDFormViewApiService.prototype, "dataDerivativeLogic", null);
|
|
3528
|
+
__decorate([
|
|
3529
|
+
kwikidToolkit.logMethod
|
|
3530
|
+
], KwikIDFormViewApiService.prototype, "preProcessHeader", null);
|
|
3531
|
+
__decorate([
|
|
3532
|
+
kwikidToolkit.logMethod
|
|
3533
|
+
], KwikIDFormViewApiService.prototype, "verifySignature", null);
|
|
3534
|
+
__decorate([
|
|
3535
|
+
kwikidToolkit.logMethod
|
|
3536
|
+
], KwikIDFormViewApiService.prototype, "post", null);
|
|
3537
|
+
__decorate([
|
|
3538
|
+
kwikidToolkit.logMethod
|
|
3539
|
+
], KwikIDFormViewApiService.prototype, "get", null);
|
|
3540
|
+
|
|
3177
3541
|
var Defaults = /** @class */ (function () {
|
|
3178
3542
|
function Defaults(field, formFields, allFormsData, formData, previousFormData, takeAction) {
|
|
3179
3543
|
this._field = field;
|
|
@@ -4462,9 +4826,10 @@
|
|
|
4462
4826
|
}] });
|
|
4463
4827
|
|
|
4464
4828
|
var KwikIDFormViewComponent = /** @class */ (function () {
|
|
4465
|
-
function KwikIDFormViewComponent(cd, formViewService, push, alertService, previewDialogService, dialogService, loaderService, cameraRecordService, ref) {
|
|
4829
|
+
function KwikIDFormViewComponent(cd, formViewService, formViewApiService, push, alertService, previewDialogService, dialogService, loaderService, cameraRecordService, ref) {
|
|
4466
4830
|
this.cd = cd;
|
|
4467
4831
|
this.formViewService = formViewService;
|
|
4832
|
+
this.formViewApiService = formViewApiService;
|
|
4468
4833
|
this.push = push;
|
|
4469
4834
|
this.alertService = alertService;
|
|
4470
4835
|
this.previewDialogService = previewDialogService;
|
|
@@ -4537,6 +4902,7 @@
|
|
|
4537
4902
|
this.taskData = {};
|
|
4538
4903
|
this.formGroup = new i3.FormGroup({});
|
|
4539
4904
|
this.showErrorNotification = false;
|
|
4905
|
+
this.showPermissionErrorNotification = false;
|
|
4540
4906
|
this.dialogRef = undefined;
|
|
4541
4907
|
}
|
|
4542
4908
|
KwikIDFormViewComponent.prototype.resetCamera = function () {
|
|
@@ -4556,11 +4922,11 @@
|
|
|
4556
4922
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4557
4923
|
var res;
|
|
4558
4924
|
var _this = this;
|
|
4559
|
-
return __generator(this, function (
|
|
4560
|
-
switch (
|
|
4925
|
+
return __generator(this, function (_15) {
|
|
4926
|
+
switch (_15.label) {
|
|
4561
4927
|
case 0: return [4 /*yield*/, this.initFormConfig(this.formConfig)];
|
|
4562
4928
|
case 1:
|
|
4563
|
-
res =
|
|
4929
|
+
res = _15.sent();
|
|
4564
4930
|
if (res) {
|
|
4565
4931
|
this.loading = false;
|
|
4566
4932
|
this.cameraRecordingTimerSubcription = this.cameraRecordService
|
|
@@ -4583,7 +4949,7 @@
|
|
|
4583
4949
|
};
|
|
4584
4950
|
KwikIDFormViewComponent.prototype.ngAfterViewInit = function () { };
|
|
4585
4951
|
KwikIDFormViewComponent.prototype.ngOnChanges = function (changes) {
|
|
4586
|
-
var
|
|
4952
|
+
var _15, _16, _17, _18;
|
|
4587
4953
|
var _this = this;
|
|
4588
4954
|
var _a, _b, _c, _d;
|
|
4589
4955
|
var verifyChange = function (key) {
|
|
@@ -4611,9 +4977,9 @@
|
|
|
4611
4977
|
? changes.popupFormCallback.currentValue.popupFormData["data"]
|
|
4612
4978
|
: changes.popupFormCallback.currentValue.popupFormData;
|
|
4613
4979
|
var popupFormConfig = changes.popupFormCallback.currentValue.popupFormConfig;
|
|
4614
|
-
this.popupFormData = kwikidToolkit.mergeObjects(this.popupFormData, (
|
|
4615
|
-
|
|
4616
|
-
|
|
4980
|
+
this.popupFormData = kwikidToolkit.mergeObjects(this.popupFormData, (_15 = {},
|
|
4981
|
+
_15[popupFormConfig.key] = popupFormData,
|
|
4982
|
+
_15));
|
|
4617
4983
|
this.formData = kwikidToolkit.mergeObjects(this.formData, this.popupFormData);
|
|
4618
4984
|
if (kwikidToolkit.checkObjectKeyExists(changes.popupFormCallback.currentValue, "stopTaskExecution")) {
|
|
4619
4985
|
this.stopTaskExecution =
|
|
@@ -4665,9 +5031,9 @@
|
|
|
4665
5031
|
emitEvent: false,
|
|
4666
5032
|
onlySelf: false
|
|
4667
5033
|
});
|
|
4668
|
-
this.formGroup.patchValue((
|
|
4669
|
-
|
|
4670
|
-
|
|
5034
|
+
this.formGroup.patchValue((_16 = {},
|
|
5035
|
+
_16[field_1.key] = kwikidToolkit.getObjectDeepCopy([image]),
|
|
5036
|
+
_16), { emitEvent: false });
|
|
4671
5037
|
this.formGroup.controls[field_1.key].updateValueAndValidity({
|
|
4672
5038
|
emitEvent: false
|
|
4673
5039
|
});
|
|
@@ -4687,11 +5053,11 @@
|
|
|
4687
5053
|
ALL_FORMS_DATA: this.allFormsData
|
|
4688
5054
|
}, this.takeAction.bind(this));
|
|
4689
5055
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4690
|
-
return __generator(this, function (
|
|
4691
|
-
switch (
|
|
5056
|
+
return __generator(this, function (_15) {
|
|
5057
|
+
switch (_15.label) {
|
|
4692
5058
|
case 0: return [4 /*yield*/, validations_1.validate(field_1.validation)];
|
|
4693
5059
|
case 1:
|
|
4694
|
-
|
|
5060
|
+
_15.sent();
|
|
4695
5061
|
return [2 /*return*/];
|
|
4696
5062
|
}
|
|
4697
5063
|
});
|
|
@@ -4731,9 +5097,9 @@
|
|
|
4731
5097
|
emitEvent: false,
|
|
4732
5098
|
onlySelf: false
|
|
4733
5099
|
});
|
|
4734
|
-
this.formGroup.patchValue((
|
|
4735
|
-
|
|
4736
|
-
|
|
5100
|
+
this.formGroup.patchValue((_17 = {},
|
|
5101
|
+
_17[field_1.key] = kwikidToolkit.getObjectDeepCopy([video]),
|
|
5102
|
+
_17), { emitEvent: false });
|
|
4737
5103
|
this.formGroup.controls[field_1.key].updateValueAndValidity({
|
|
4738
5104
|
emitEvent: false
|
|
4739
5105
|
});
|
|
@@ -4753,11 +5119,11 @@
|
|
|
4753
5119
|
ALL_FORMS_DATA: this.allFormsData
|
|
4754
5120
|
}, this.takeAction.bind(this));
|
|
4755
5121
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4756
|
-
return __generator(this, function (
|
|
4757
|
-
switch (
|
|
5122
|
+
return __generator(this, function (_15) {
|
|
5123
|
+
switch (_15.label) {
|
|
4758
5124
|
case 0: return [4 /*yield*/, validations_2.validate(field_1.validation)];
|
|
4759
5125
|
case 1:
|
|
4760
|
-
|
|
5126
|
+
_15.sent();
|
|
4761
5127
|
return [2 /*return*/];
|
|
4762
5128
|
}
|
|
4763
5129
|
});
|
|
@@ -4787,6 +5153,115 @@
|
|
|
4787
5153
|
}
|
|
4788
5154
|
this.hideApiLoader();
|
|
4789
5155
|
break;
|
|
5156
|
+
case EFieldType.LIVE_LOCATION:
|
|
5157
|
+
if (response) {
|
|
5158
|
+
this.formData[field_1.key] = kwikidToolkit.getObjectDeepCopy(response);
|
|
5159
|
+
this.mediaFiles[field_1.key] = kwikidToolkit.getObjectDeepCopy(response);
|
|
5160
|
+
this.formGroup.controls[field_1.key].patchValue(kwikidToolkit.getObjectDeepCopy(response), {
|
|
5161
|
+
emitEvent: false,
|
|
5162
|
+
onlySelf: false
|
|
5163
|
+
});
|
|
5164
|
+
this.formGroup.patchValue((_18 = {},
|
|
5165
|
+
_18[field_1.key] = kwikidToolkit.getObjectDeepCopy(response),
|
|
5166
|
+
_18), { emitEvent: false });
|
|
5167
|
+
this.formGroup.controls[field_1.key].updateValueAndValidity({
|
|
5168
|
+
emitEvent: false
|
|
5169
|
+
});
|
|
5170
|
+
this.formGroup.updateValueAndValidity({
|
|
5171
|
+
emitEvent: false
|
|
5172
|
+
});
|
|
5173
|
+
this.getUnsavedDataState.emit(true);
|
|
5174
|
+
var apis_1 = new Apis({
|
|
5175
|
+
FIELD_CONFIG: field_1,
|
|
5176
|
+
API_CONFIG: field_1.api,
|
|
5177
|
+
API_RESPONSE: response,
|
|
5178
|
+
FORM_FIELDS: this.formFields,
|
|
5179
|
+
FORM_DATA: this.formData,
|
|
5180
|
+
TASK_DATA: this.taskData,
|
|
5181
|
+
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5182
|
+
ALL_FORMS_DATA: this.allFormsData
|
|
5183
|
+
}, this.takeAction.bind(this));
|
|
5184
|
+
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5185
|
+
var api;
|
|
5186
|
+
return __generator(this, function (_15) {
|
|
5187
|
+
switch (_15.label) {
|
|
5188
|
+
case 0: return [4 /*yield*/, apis_1.validateResponse()];
|
|
5189
|
+
case 1:
|
|
5190
|
+
api = _15.sent();
|
|
5191
|
+
field_1.api = api;
|
|
5192
|
+
return [2 /*return*/];
|
|
5193
|
+
}
|
|
5194
|
+
});
|
|
5195
|
+
}); })();
|
|
5196
|
+
if (field_1.isFormElement &&
|
|
5197
|
+
kwikidToolkit.checkObjectKeyExists(field_1, "validation") &&
|
|
5198
|
+
field_1.validation.triggers.includes("ON_CHANGE")) {
|
|
5199
|
+
var validations_3 = new kwikidToolkit.Validation({
|
|
5200
|
+
FIELD_CONFIG: field_1,
|
|
5201
|
+
FORM_FIELDS: this.formFields,
|
|
5202
|
+
FORM_DATA: this.formData,
|
|
5203
|
+
TASK_DATA: this.taskData,
|
|
5204
|
+
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5205
|
+
ALL_FORMS_DATA: this.allFormsData
|
|
5206
|
+
}, this.takeAction.bind(this));
|
|
5207
|
+
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5208
|
+
return __generator(this, function (_15) {
|
|
5209
|
+
switch (_15.label) {
|
|
5210
|
+
case 0: return [4 /*yield*/, validations_3.validate(field_1.validation)];
|
|
5211
|
+
case 1:
|
|
5212
|
+
_15.sent();
|
|
5213
|
+
return [2 /*return*/];
|
|
5214
|
+
}
|
|
5215
|
+
});
|
|
5216
|
+
}); })();
|
|
5217
|
+
}
|
|
5218
|
+
if (field_1.isFormElement &&
|
|
5219
|
+
kwikidToolkit.checkObjectKeyExists(field_1, "connectedElements")) {
|
|
5220
|
+
this.handleConnectedElements({
|
|
5221
|
+
key: field_1.key,
|
|
5222
|
+
value: this.formGroup.controls[field_1.key].value
|
|
5223
|
+
}, "ON_CHANGE");
|
|
5224
|
+
}
|
|
5225
|
+
this.hideApiLoader();
|
|
5226
|
+
this.triggerLogs(ELogEventType$1.FORM__API_RESPONSE_REVERSE_LAT_LONG, {
|
|
5227
|
+
api_key: this.apiCallResponse.key,
|
|
5228
|
+
field_key: this.apiCallResponse.key,
|
|
5229
|
+
response_type: "REVERSE_LAT_LONG_API_SUCCESS",
|
|
5230
|
+
response: response
|
|
5231
|
+
});
|
|
5232
|
+
}
|
|
5233
|
+
else {
|
|
5234
|
+
this.triggerLogs(ELogEventType$1.FORM__API_RESPONSE_REVERSE_LAT_LONG, {
|
|
5235
|
+
api_key: this.apiCallResponse.key,
|
|
5236
|
+
field_key: this.apiCallResponse.key,
|
|
5237
|
+
response_type: "REVERSE_LAT_LONG_API_ERROR"
|
|
5238
|
+
});
|
|
5239
|
+
var apis_2 = new Apis({
|
|
5240
|
+
FIELD_CONFIG: field_1,
|
|
5241
|
+
API_CONFIG: field_1.api,
|
|
5242
|
+
API_RESPONSE: {},
|
|
5243
|
+
FORM_FIELDS: this.formFields,
|
|
5244
|
+
FORM_DATA: this.formData,
|
|
5245
|
+
TASK_DATA: this.taskData,
|
|
5246
|
+
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5247
|
+
ALL_FORMS_DATA: this.allFormsData
|
|
5248
|
+
}, this.takeAction.bind(this));
|
|
5249
|
+
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5250
|
+
var api;
|
|
5251
|
+
return __generator(this, function (_15) {
|
|
5252
|
+
switch (_15.label) {
|
|
5253
|
+
case 0: return [4 /*yield*/, apis_2.validateResponse()];
|
|
5254
|
+
case 1:
|
|
5255
|
+
api = _15.sent();
|
|
5256
|
+
field_1.api = api;
|
|
5257
|
+
return [2 /*return*/];
|
|
5258
|
+
}
|
|
5259
|
+
});
|
|
5260
|
+
}); })();
|
|
5261
|
+
console.error("Reverse Location for LatLong Failed");
|
|
5262
|
+
}
|
|
5263
|
+
this.hideApiLoader();
|
|
5264
|
+
break;
|
|
4790
5265
|
default:
|
|
4791
5266
|
break;
|
|
4792
5267
|
}
|
|
@@ -4811,7 +5286,7 @@
|
|
|
4811
5286
|
if (kwikidToolkit.checkObjectKeyExists(field_2, "validation")) {
|
|
4812
5287
|
if (kwikidToolkit.checkObjectKeyExists(field_2.validation, "triggers") &&
|
|
4813
5288
|
field_2.validation.triggers.includes("ON_RESPONSE")) {
|
|
4814
|
-
var
|
|
5289
|
+
var validations_4 = new kwikidToolkit.Validation({
|
|
4815
5290
|
FIELD_CONFIG: field_2,
|
|
4816
5291
|
FORM_FIELDS: this.formFields,
|
|
4817
5292
|
FORM_DATA: this.formData,
|
|
@@ -4820,11 +5295,11 @@
|
|
|
4820
5295
|
ALL_FORMS_DATA: this.allFormsData
|
|
4821
5296
|
}, this.takeAction.bind(this));
|
|
4822
5297
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4823
|
-
return __generator(this, function (
|
|
4824
|
-
switch (
|
|
4825
|
-
case 0: return [4 /*yield*/,
|
|
5298
|
+
return __generator(this, function (_15) {
|
|
5299
|
+
switch (_15.label) {
|
|
5300
|
+
case 0: return [4 /*yield*/, validations_4.validate(field_2.validation)];
|
|
4826
5301
|
case 1:
|
|
4827
|
-
|
|
5302
|
+
_15.sent();
|
|
4828
5303
|
return [2 /*return*/];
|
|
4829
5304
|
}
|
|
4830
5305
|
});
|
|
@@ -4839,11 +5314,11 @@
|
|
|
4839
5314
|
if (verifyChange("formConfig")) {
|
|
4840
5315
|
this.formConfig = changes.formConfig.currentValue;
|
|
4841
5316
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4842
|
-
return __generator(this, function (
|
|
4843
|
-
switch (
|
|
5317
|
+
return __generator(this, function (_15) {
|
|
5318
|
+
switch (_15.label) {
|
|
4844
5319
|
case 0: return [4 /*yield*/, this.initFormConfig(this.formConfig)];
|
|
4845
5320
|
case 1:
|
|
4846
|
-
|
|
5321
|
+
_15.sent();
|
|
4847
5322
|
return [2 /*return*/];
|
|
4848
5323
|
}
|
|
4849
5324
|
});
|
|
@@ -4863,11 +5338,11 @@
|
|
|
4863
5338
|
};
|
|
4864
5339
|
KwikIDFormViewComponent.prototype.initFormConfig = function (formConfig) {
|
|
4865
5340
|
return __awaiter(this, void 0, void 0, function () {
|
|
4866
|
-
var
|
|
4867
|
-
var e_1,
|
|
5341
|
+
var _15, _16, preTask, task, e_1_1, _17, _loop_1, this_1, _18, _19, field, _20, _21, field, validations, e_2_1;
|
|
5342
|
+
var e_1, _22, e_3, _23, e_2, _24;
|
|
4868
5343
|
var _this = this;
|
|
4869
|
-
return __generator(this, function (
|
|
4870
|
-
switch (
|
|
5344
|
+
return __generator(this, function (_25) {
|
|
5345
|
+
switch (_25.label) {
|
|
4871
5346
|
case 0:
|
|
4872
5347
|
formConfig = new Converter().convertFormConfig(formConfig);
|
|
4873
5348
|
formConfig = new Converter().updateFormConfigProperties(formConfig);
|
|
@@ -4881,14 +5356,14 @@
|
|
|
4881
5356
|
if (!(kwikidToolkit.checkObjectKeyExists(this.formConfig, "tasks") &&
|
|
4882
5357
|
kwikidToolkit.checkObjectKeyExists(this.formConfig.tasks, "pre"))) return [3 /*break*/, 10];
|
|
4883
5358
|
this.triggerLogs(ELogEventType$1.FORM__TASK_PRE, {});
|
|
4884
|
-
|
|
5359
|
+
_25.label = 1;
|
|
4885
5360
|
case 1:
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
5361
|
+
_25.trys.push([1, 7, 8, 9]);
|
|
5362
|
+
_15 = __values(this.formConfig.tasks.pre), _16 = _15.next();
|
|
5363
|
+
_25.label = 2;
|
|
4889
5364
|
case 2:
|
|
4890
|
-
if (!!
|
|
4891
|
-
preTask =
|
|
5365
|
+
if (!!_16.done) return [3 /*break*/, 6];
|
|
5366
|
+
preTask = _16.value;
|
|
4892
5367
|
task = new Tasks(preTask, {
|
|
4893
5368
|
FORM_CONFIG: this.formConfig,
|
|
4894
5369
|
FORM_FIELDS: this.formFields,
|
|
@@ -4906,7 +5381,7 @@
|
|
|
4906
5381
|
}
|
|
4907
5382
|
return [4 /*yield*/, task.execute()];
|
|
4908
5383
|
case 3:
|
|
4909
|
-
|
|
5384
|
+
_25.sent();
|
|
4910
5385
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
4911
5386
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
4912
5387
|
var intervalId = setInterval(function () {
|
|
@@ -4918,36 +5393,36 @@
|
|
|
4918
5393
|
})];
|
|
4919
5394
|
case 4:
|
|
4920
5395
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
4921
|
-
|
|
5396
|
+
_25.sent();
|
|
4922
5397
|
if (this.stopTaskExecution) {
|
|
4923
5398
|
return [3 /*break*/, 6];
|
|
4924
5399
|
}
|
|
4925
|
-
|
|
5400
|
+
_25.label = 5;
|
|
4926
5401
|
case 5:
|
|
4927
|
-
|
|
5402
|
+
_16 = _15.next();
|
|
4928
5403
|
return [3 /*break*/, 2];
|
|
4929
5404
|
case 6: return [3 /*break*/, 9];
|
|
4930
5405
|
case 7:
|
|
4931
|
-
e_1_1 =
|
|
5406
|
+
e_1_1 = _25.sent();
|
|
4932
5407
|
e_1 = { error: e_1_1 };
|
|
4933
5408
|
return [3 /*break*/, 9];
|
|
4934
5409
|
case 8:
|
|
4935
5410
|
try {
|
|
4936
|
-
if (
|
|
5411
|
+
if (_16 && !_16.done && (_22 = _15.return)) _22.call(_15);
|
|
4937
5412
|
}
|
|
4938
5413
|
finally { if (e_1) throw e_1.error; }
|
|
4939
5414
|
return [7 /*endfinally*/];
|
|
4940
5415
|
case 9:
|
|
4941
5416
|
this.formData = kwikidToolkit.mergeObjects(this.formData, this.popupFormData);
|
|
4942
|
-
|
|
5417
|
+
_25.label = 10;
|
|
4943
5418
|
case 10:
|
|
4944
5419
|
if (this.stopTaskExecution) {
|
|
4945
5420
|
return [2 /*return*/, false];
|
|
4946
5421
|
}
|
|
4947
|
-
|
|
5422
|
+
_17 = this;
|
|
4948
5423
|
return [4 /*yield*/, this.formViewService.createFormGroup(this.formFields, this.formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this))];
|
|
4949
5424
|
case 11:
|
|
4950
|
-
|
|
5425
|
+
_17.formGroup = _25.sent();
|
|
4951
5426
|
/**
|
|
4952
5427
|
* For some reason if their a field of type 'IMAGE' then
|
|
4953
5428
|
* formData is adding a 'undefined' key with last image's value from the array.
|
|
@@ -4957,10 +5432,10 @@
|
|
|
4957
5432
|
delete this.formData["undefined"];
|
|
4958
5433
|
}
|
|
4959
5434
|
_loop_1 = function (field) {
|
|
4960
|
-
var
|
|
5435
|
+
var _26, _27;
|
|
4961
5436
|
if (field.isFormElement) {
|
|
4962
|
-
this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (
|
|
4963
|
-
this_1.formData = Object.assign(Object.assign({}, this_1.formData), (
|
|
5437
|
+
this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (_26 = {}, _26[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _26));
|
|
5438
|
+
this_1.formData = Object.assign(Object.assign({}, this_1.formData), (_27 = {}, _27[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _27));
|
|
4964
5439
|
if (field.type === EFieldType.FILE) {
|
|
4965
5440
|
this_1.files[field.key] = this_1.formGroup.controls[field.key].value;
|
|
4966
5441
|
}
|
|
@@ -4974,11 +5449,11 @@
|
|
|
4974
5449
|
}
|
|
4975
5450
|
this_1.formGroup.controls[field.key].valueChanges
|
|
4976
5451
|
.pipe(operators.pairwise())
|
|
4977
|
-
.subscribe(function (
|
|
4978
|
-
var
|
|
4979
|
-
var
|
|
4980
|
-
_this.previousFormData = Object.assign(Object.assign({}, _this.previousFormData), (
|
|
4981
|
-
_this.formData = Object.assign(Object.assign({}, _this.formData), (
|
|
5452
|
+
.subscribe(function (_15) {
|
|
5453
|
+
var _16, _17;
|
|
5454
|
+
var _18 = __read(_15, 2), previousValue = _18[0], currentValue = _18[1];
|
|
5455
|
+
_this.previousFormData = Object.assign(Object.assign({}, _this.previousFormData), (_16 = {}, _16[field.key] = convertFormFieldValueToStandardFormat(field, previousValue), _16));
|
|
5456
|
+
_this.formData = Object.assign(Object.assign({}, _this.formData), (_17 = {}, _17[field.key] = convertFormFieldValueToStandardFormat(field, currentValue), _17));
|
|
4982
5457
|
if (field.type === EFieldType.FILE) {
|
|
4983
5458
|
_this.files[field.key] = currentValue;
|
|
4984
5459
|
}
|
|
@@ -4995,26 +5470,26 @@
|
|
|
4995
5470
|
};
|
|
4996
5471
|
this_1 = this;
|
|
4997
5472
|
try {
|
|
4998
|
-
for (
|
|
4999
|
-
field =
|
|
5473
|
+
for (_18 = __values(this.formFields), _19 = _18.next(); !_19.done; _19 = _18.next()) {
|
|
5474
|
+
field = _19.value;
|
|
5000
5475
|
_loop_1(field);
|
|
5001
5476
|
}
|
|
5002
5477
|
}
|
|
5003
5478
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
5004
5479
|
finally {
|
|
5005
5480
|
try {
|
|
5006
|
-
if (
|
|
5481
|
+
if (_19 && !_19.done && (_23 = _18.return)) _23.call(_18);
|
|
5007
5482
|
}
|
|
5008
5483
|
finally { if (e_3) throw e_3.error; }
|
|
5009
5484
|
}
|
|
5010
|
-
|
|
5485
|
+
_25.label = 12;
|
|
5011
5486
|
case 12:
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5487
|
+
_25.trys.push([12, 18, 19, 20]);
|
|
5488
|
+
_20 = __values(this.formFields), _21 = _20.next();
|
|
5489
|
+
_25.label = 13;
|
|
5015
5490
|
case 13:
|
|
5016
|
-
if (!!
|
|
5017
|
-
field =
|
|
5491
|
+
if (!!_21.done) return [3 /*break*/, 17];
|
|
5492
|
+
field = _21.value;
|
|
5018
5493
|
if (!field.isFormElement) return [3 /*break*/, 16];
|
|
5019
5494
|
if (!kwikidToolkit.checkObjectKeyExists(field, "validation")) return [3 /*break*/, 15];
|
|
5020
5495
|
if (!field.validation.triggers.includes("ON_INIT")) return [3 /*break*/, 15];
|
|
@@ -5028,8 +5503,8 @@
|
|
|
5028
5503
|
}, this.takeAction.bind(this));
|
|
5029
5504
|
return [4 /*yield*/, validations.validate(field.validation)];
|
|
5030
5505
|
case 14:
|
|
5031
|
-
|
|
5032
|
-
|
|
5506
|
+
_25.sent();
|
|
5507
|
+
_25.label = 15;
|
|
5033
5508
|
case 15:
|
|
5034
5509
|
if (kwikidToolkit.checkObjectKeyExists(field, "connectedElements")) {
|
|
5035
5510
|
this.handleConnectedElements({
|
|
@@ -5037,18 +5512,18 @@
|
|
|
5037
5512
|
value: this.formGroup.controls[field.key].value
|
|
5038
5513
|
}, "ON_INIT");
|
|
5039
5514
|
}
|
|
5040
|
-
|
|
5515
|
+
_25.label = 16;
|
|
5041
5516
|
case 16:
|
|
5042
|
-
|
|
5517
|
+
_21 = _20.next();
|
|
5043
5518
|
return [3 /*break*/, 13];
|
|
5044
5519
|
case 17: return [3 /*break*/, 20];
|
|
5045
5520
|
case 18:
|
|
5046
|
-
e_2_1 =
|
|
5521
|
+
e_2_1 = _25.sent();
|
|
5047
5522
|
e_2 = { error: e_2_1 };
|
|
5048
5523
|
return [3 /*break*/, 20];
|
|
5049
5524
|
case 19:
|
|
5050
5525
|
try {
|
|
5051
|
-
if (
|
|
5526
|
+
if (_21 && !_21.done && (_24 = _20.return)) _24.call(_20);
|
|
5052
5527
|
}
|
|
5053
5528
|
finally { if (e_2) throw e_2.error; }
|
|
5054
5529
|
return [7 /*endfinally*/];
|
|
@@ -5086,10 +5561,10 @@
|
|
|
5086
5561
|
};
|
|
5087
5562
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldGroupActions = function (childFieldGroupConfig, parentField) {
|
|
5088
5563
|
return __awaiter(this, void 0, void 0, function () {
|
|
5089
|
-
var rulesMapping,
|
|
5090
|
-
var e_4,
|
|
5091
|
-
return __generator(this, function (
|
|
5092
|
-
switch (
|
|
5564
|
+
var rulesMapping, _15, _16, action, conditionSuccess, actions, e_4_1;
|
|
5565
|
+
var e_4, _17;
|
|
5566
|
+
return __generator(this, function (_18) {
|
|
5567
|
+
switch (_18.label) {
|
|
5093
5568
|
case 0:
|
|
5094
5569
|
if (!kwikidToolkit.checkObjectKeyExists(childFieldGroupConfig, "rules")) return [3 /*break*/, 8];
|
|
5095
5570
|
rulesMapping = new kwikidToolkit.Rule(childFieldGroupConfig.rules, {
|
|
@@ -5099,14 +5574,14 @@
|
|
|
5099
5574
|
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5100
5575
|
ALL_FORMS_DATA: this.allFormsData
|
|
5101
5576
|
}).mapping();
|
|
5102
|
-
|
|
5577
|
+
_18.label = 1;
|
|
5103
5578
|
case 1:
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5579
|
+
_18.trys.push([1, 6, 7, 8]);
|
|
5580
|
+
_15 = __values(childFieldGroupConfig.actions), _16 = _15.next();
|
|
5581
|
+
_18.label = 2;
|
|
5107
5582
|
case 2:
|
|
5108
|
-
if (!!
|
|
5109
|
-
action =
|
|
5583
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
5584
|
+
action = _16.value;
|
|
5110
5585
|
conditionSuccess = new kwikidToolkit.Condition(action.condition, rulesMapping).evaluate();
|
|
5111
5586
|
if (!conditionSuccess) return [3 /*break*/, 4];
|
|
5112
5587
|
actions = new kwikidToolkit.Action(action, rulesMapping, {
|
|
@@ -5119,19 +5594,19 @@
|
|
|
5119
5594
|
}, this.takeActionOnFieldGroup.bind(this));
|
|
5120
5595
|
return [4 /*yield*/, actions.execute()];
|
|
5121
5596
|
case 3:
|
|
5122
|
-
|
|
5123
|
-
|
|
5597
|
+
_18.sent();
|
|
5598
|
+
_18.label = 4;
|
|
5124
5599
|
case 4:
|
|
5125
|
-
|
|
5600
|
+
_16 = _15.next();
|
|
5126
5601
|
return [3 /*break*/, 2];
|
|
5127
5602
|
case 5: return [3 /*break*/, 8];
|
|
5128
5603
|
case 6:
|
|
5129
|
-
e_4_1 =
|
|
5604
|
+
e_4_1 = _18.sent();
|
|
5130
5605
|
e_4 = { error: e_4_1 };
|
|
5131
5606
|
return [3 /*break*/, 8];
|
|
5132
5607
|
case 7:
|
|
5133
5608
|
try {
|
|
5134
|
-
if (
|
|
5609
|
+
if (_16 && !_16.done && (_17 = _15.return)) _17.call(_15);
|
|
5135
5610
|
}
|
|
5136
5611
|
finally { if (e_4) throw e_4.error; }
|
|
5137
5612
|
return [7 /*endfinally*/];
|
|
@@ -5142,15 +5617,15 @@
|
|
|
5142
5617
|
};
|
|
5143
5618
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldGroup = function (currentField, connectedFieldGroupConfig, eventType) {
|
|
5144
5619
|
return __awaiter(this, void 0, void 0, function () {
|
|
5145
|
-
return __generator(this, function (
|
|
5146
|
-
switch (
|
|
5620
|
+
return __generator(this, function (_15) {
|
|
5621
|
+
switch (_15.label) {
|
|
5147
5622
|
case 0:
|
|
5148
5623
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldGroupConfig, "triggers")) return [3 /*break*/, 2];
|
|
5149
5624
|
if (!connectedFieldGroupConfig.triggers.includes(eventType)) return [3 /*break*/, 2];
|
|
5150
5625
|
return [4 /*yield*/, this.handleConnectedElementFieldGroupActions(connectedFieldGroupConfig, currentField)];
|
|
5151
5626
|
case 1:
|
|
5152
|
-
|
|
5153
|
-
|
|
5627
|
+
_15.sent();
|
|
5628
|
+
_15.label = 2;
|
|
5154
5629
|
case 2: return [2 /*return*/];
|
|
5155
5630
|
}
|
|
5156
5631
|
});
|
|
@@ -5158,10 +5633,10 @@
|
|
|
5158
5633
|
};
|
|
5159
5634
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldActions = function (connectedFieldConfig, connectedField) {
|
|
5160
5635
|
return __awaiter(this, void 0, void 0, function () {
|
|
5161
|
-
var rulesMapping,
|
|
5162
|
-
var e_5,
|
|
5163
|
-
return __generator(this, function (
|
|
5164
|
-
switch (
|
|
5636
|
+
var rulesMapping, _15, _16, action, conditionSuccess, actions, e_5_1;
|
|
5637
|
+
var e_5, _17;
|
|
5638
|
+
return __generator(this, function (_18) {
|
|
5639
|
+
switch (_18.label) {
|
|
5165
5640
|
case 0:
|
|
5166
5641
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "rules")) return [3 /*break*/, 8];
|
|
5167
5642
|
rulesMapping = new kwikidToolkit.Rule(connectedFieldConfig.rules, {
|
|
@@ -5171,14 +5646,14 @@
|
|
|
5171
5646
|
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5172
5647
|
ALL_FORMS_DATA: this.allFormsData
|
|
5173
5648
|
}).mapping();
|
|
5174
|
-
|
|
5649
|
+
_18.label = 1;
|
|
5175
5650
|
case 1:
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5651
|
+
_18.trys.push([1, 6, 7, 8]);
|
|
5652
|
+
_15 = __values(connectedFieldConfig.actions), _16 = _15.next();
|
|
5653
|
+
_18.label = 2;
|
|
5179
5654
|
case 2:
|
|
5180
|
-
if (!!
|
|
5181
|
-
action =
|
|
5655
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
5656
|
+
action = _16.value;
|
|
5182
5657
|
conditionSuccess = new kwikidToolkit.Condition(action.condition, rulesMapping).evaluate();
|
|
5183
5658
|
if (!conditionSuccess) return [3 /*break*/, 4];
|
|
5184
5659
|
actions = new kwikidToolkit.Action(action, rulesMapping, {
|
|
@@ -5191,19 +5666,19 @@
|
|
|
5191
5666
|
}, this.takeAction.bind(this));
|
|
5192
5667
|
return [4 /*yield*/, actions.execute()];
|
|
5193
5668
|
case 3:
|
|
5194
|
-
|
|
5195
|
-
|
|
5669
|
+
_18.sent();
|
|
5670
|
+
_18.label = 4;
|
|
5196
5671
|
case 4:
|
|
5197
|
-
|
|
5672
|
+
_16 = _15.next();
|
|
5198
5673
|
return [3 /*break*/, 2];
|
|
5199
5674
|
case 5: return [3 /*break*/, 8];
|
|
5200
5675
|
case 6:
|
|
5201
|
-
e_5_1 =
|
|
5676
|
+
e_5_1 = _18.sent();
|
|
5202
5677
|
e_5 = { error: e_5_1 };
|
|
5203
5678
|
return [3 /*break*/, 8];
|
|
5204
5679
|
case 7:
|
|
5205
5680
|
try {
|
|
5206
|
-
if (
|
|
5681
|
+
if (_16 && !_16.done && (_17 = _15.return)) _17.call(_15);
|
|
5207
5682
|
}
|
|
5208
5683
|
finally { if (e_5) throw e_5.error; }
|
|
5209
5684
|
return [7 /*endfinally*/];
|
|
@@ -5215,16 +5690,16 @@
|
|
|
5215
5690
|
KwikIDFormViewComponent.prototype.handleConnectedElementFields = function (currentField, connectedFieldConfig, eventType, nested) {
|
|
5216
5691
|
return __awaiter(this, void 0, void 0, function () {
|
|
5217
5692
|
var connectedField;
|
|
5218
|
-
return __generator(this, function (
|
|
5219
|
-
switch (
|
|
5693
|
+
return __generator(this, function (_15) {
|
|
5694
|
+
switch (_15.label) {
|
|
5220
5695
|
case 0:
|
|
5221
5696
|
connectedField = getFormFieldByKey(this.formFields, connectedFieldConfig["key"]);
|
|
5222
5697
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "triggers")) return [3 /*break*/, 2];
|
|
5223
5698
|
if (!connectedFieldConfig.triggers.includes(eventType)) return [3 /*break*/, 2];
|
|
5224
5699
|
return [4 /*yield*/, this.handleConnectedElementFieldActions(connectedFieldConfig, connectedField)];
|
|
5225
5700
|
case 1:
|
|
5226
|
-
connectedField =
|
|
5227
|
-
|
|
5701
|
+
connectedField = _15.sent();
|
|
5702
|
+
_15.label = 2;
|
|
5228
5703
|
case 2:
|
|
5229
5704
|
if (kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "handleNestedFields")) {
|
|
5230
5705
|
if (connectedFieldConfig.handleNestedFields) {
|
|
@@ -5239,67 +5714,67 @@
|
|
|
5239
5714
|
KwikIDFormViewComponent.prototype.handleConnectedElements = function (e, eventType) {
|
|
5240
5715
|
return __awaiter(this, void 0, void 0, function () {
|
|
5241
5716
|
var currentField, connectedFieldGroups, connectedFieldGroups_1, connectedFieldGroups_1_1, connectedFieldGroupConfig, e_6_1, connectedFields, connectedFields_1, connectedFields_1_1, connectedFieldConfig, e_7_1;
|
|
5242
|
-
var e_6,
|
|
5243
|
-
return __generator(this, function (
|
|
5244
|
-
switch (
|
|
5717
|
+
var e_6, _15, e_7, _16;
|
|
5718
|
+
return __generator(this, function (_17) {
|
|
5719
|
+
switch (_17.label) {
|
|
5245
5720
|
case 0:
|
|
5246
5721
|
currentField = getFormFieldByKey(this.formFields, e.key);
|
|
5247
5722
|
if (!(currentField !== undefined)) return [3 /*break*/, 17];
|
|
5248
5723
|
if (!kwikidToolkit.checkObjectKeyExists(currentField, "connectedElements")) return [3 /*break*/, 16];
|
|
5249
5724
|
if (!kwikidToolkit.checkObjectKeyExists(currentField.connectedElements, "connectedFieldGroups")) return [3 /*break*/, 8];
|
|
5250
5725
|
connectedFieldGroups = currentField.connectedElements.connectedFieldGroups;
|
|
5251
|
-
|
|
5726
|
+
_17.label = 1;
|
|
5252
5727
|
case 1:
|
|
5253
|
-
|
|
5728
|
+
_17.trys.push([1, 6, 7, 8]);
|
|
5254
5729
|
connectedFieldGroups_1 = __values(connectedFieldGroups), connectedFieldGroups_1_1 = connectedFieldGroups_1.next();
|
|
5255
|
-
|
|
5730
|
+
_17.label = 2;
|
|
5256
5731
|
case 2:
|
|
5257
5732
|
if (!!connectedFieldGroups_1_1.done) return [3 /*break*/, 5];
|
|
5258
5733
|
connectedFieldGroupConfig = connectedFieldGroups_1_1.value;
|
|
5259
5734
|
return [4 /*yield*/, this.handleConnectedElementFieldGroup(currentField, connectedFieldGroupConfig, eventType)];
|
|
5260
5735
|
case 3:
|
|
5261
|
-
|
|
5262
|
-
|
|
5736
|
+
_17.sent();
|
|
5737
|
+
_17.label = 4;
|
|
5263
5738
|
case 4:
|
|
5264
5739
|
connectedFieldGroups_1_1 = connectedFieldGroups_1.next();
|
|
5265
5740
|
return [3 /*break*/, 2];
|
|
5266
5741
|
case 5: return [3 /*break*/, 8];
|
|
5267
5742
|
case 6:
|
|
5268
|
-
e_6_1 =
|
|
5743
|
+
e_6_1 = _17.sent();
|
|
5269
5744
|
e_6 = { error: e_6_1 };
|
|
5270
5745
|
return [3 /*break*/, 8];
|
|
5271
5746
|
case 7:
|
|
5272
5747
|
try {
|
|
5273
|
-
if (connectedFieldGroups_1_1 && !connectedFieldGroups_1_1.done && (
|
|
5748
|
+
if (connectedFieldGroups_1_1 && !connectedFieldGroups_1_1.done && (_15 = connectedFieldGroups_1.return)) _15.call(connectedFieldGroups_1);
|
|
5274
5749
|
}
|
|
5275
5750
|
finally { if (e_6) throw e_6.error; }
|
|
5276
5751
|
return [7 /*endfinally*/];
|
|
5277
5752
|
case 8:
|
|
5278
5753
|
if (!kwikidToolkit.checkObjectKeyExists(currentField.connectedElements, "connectedFields")) return [3 /*break*/, 16];
|
|
5279
5754
|
connectedFields = currentField.connectedElements.connectedFields;
|
|
5280
|
-
|
|
5755
|
+
_17.label = 9;
|
|
5281
5756
|
case 9:
|
|
5282
|
-
|
|
5757
|
+
_17.trys.push([9, 14, 15, 16]);
|
|
5283
5758
|
connectedFields_1 = __values(connectedFields), connectedFields_1_1 = connectedFields_1.next();
|
|
5284
|
-
|
|
5759
|
+
_17.label = 10;
|
|
5285
5760
|
case 10:
|
|
5286
5761
|
if (!!connectedFields_1_1.done) return [3 /*break*/, 13];
|
|
5287
5762
|
connectedFieldConfig = connectedFields_1_1.value;
|
|
5288
5763
|
return [4 /*yield*/, this.handleConnectedElementFields(currentField, connectedFieldConfig, eventType, eventType)];
|
|
5289
5764
|
case 11:
|
|
5290
|
-
currentField =
|
|
5291
|
-
|
|
5765
|
+
currentField = _17.sent();
|
|
5766
|
+
_17.label = 12;
|
|
5292
5767
|
case 12:
|
|
5293
5768
|
connectedFields_1_1 = connectedFields_1.next();
|
|
5294
5769
|
return [3 /*break*/, 10];
|
|
5295
5770
|
case 13: return [3 /*break*/, 16];
|
|
5296
5771
|
case 14:
|
|
5297
|
-
e_7_1 =
|
|
5772
|
+
e_7_1 = _17.sent();
|
|
5298
5773
|
e_7 = { error: e_7_1 };
|
|
5299
5774
|
return [3 /*break*/, 16];
|
|
5300
5775
|
case 15:
|
|
5301
5776
|
try {
|
|
5302
|
-
if (connectedFields_1_1 && !connectedFields_1_1.done && (
|
|
5777
|
+
if (connectedFields_1_1 && !connectedFields_1_1.done && (_16 = connectedFields_1.return)) _16.call(connectedFields_1);
|
|
5303
5778
|
}
|
|
5304
5779
|
finally { if (e_7) throw e_7.error; }
|
|
5305
5780
|
return [7 /*endfinally*/];
|
|
@@ -5311,15 +5786,15 @@
|
|
|
5311
5786
|
});
|
|
5312
5787
|
};
|
|
5313
5788
|
KwikIDFormViewComponent.prototype.handleRemovedFile = function (e) {
|
|
5314
|
-
var
|
|
5789
|
+
var _15;
|
|
5315
5790
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5316
5791
|
this.showApiLoader();
|
|
5317
5792
|
if (this.formGroup["controls"][e.key].enabled) {
|
|
5318
5793
|
this.files[e.key] = e.files;
|
|
5319
5794
|
this.formData[e.key] = filterDuplicatesFiles(this.files[e.key]);
|
|
5320
|
-
this.formGroup.patchValue((
|
|
5321
|
-
|
|
5322
|
-
|
|
5795
|
+
this.formGroup.patchValue((_15 = {},
|
|
5796
|
+
_15[e.key] = this.formData[e.key],
|
|
5797
|
+
_15), { emitEvent: false });
|
|
5323
5798
|
}
|
|
5324
5799
|
this.triggerLogs(ELogEventType$1.FORM__FIELD_FILE_REMOVE, Object.assign(Object.assign(Object.assign({ field_key: e.key }, ((_b = (_a = e.file) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : { file_name: (_c = e.file) === null || _c === void 0 ? void 0 : _c.name })), ((_e = (_d = e.file) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : { file_size: (_f = e.file) === null || _f === void 0 ? void 0 : _f.size })), ((_h = (_g = e.file) === null || _g === void 0 ? void 0 : _g.type) !== null && _h !== void 0 ? _h : { file_type: (_j = e.file) === null || _j === void 0 ? void 0 : _j.type })));
|
|
5325
5800
|
this.hideApiLoader();
|
|
@@ -5328,9 +5803,9 @@
|
|
|
5328
5803
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5329
5804
|
return __awaiter(this, void 0, void 0, function () {
|
|
5330
5805
|
var field, values, values_1, values_1_1, value, e_8_1, _loop_2, this_2, values_2, values_2_1, value, e_9_1;
|
|
5331
|
-
var e_8,
|
|
5332
|
-
return __generator(this, function (
|
|
5333
|
-
switch (
|
|
5806
|
+
var e_8, _15, e_9, _16;
|
|
5807
|
+
return __generator(this, function (_17) {
|
|
5808
|
+
switch (_17.label) {
|
|
5334
5809
|
case 0:
|
|
5335
5810
|
this.showApiLoader();
|
|
5336
5811
|
field = getFormFieldByKey(this.formFields, e.key);
|
|
@@ -5338,42 +5813,42 @@
|
|
|
5338
5813
|
if (!(kwikidToolkit.checkObjectKeyExists(field, "properties") &&
|
|
5339
5814
|
kwikidToolkit.checkObjectKeyExists(field.properties, "uploadFileToServer") &&
|
|
5340
5815
|
field.properties.uploadFileToServer)) return [3 /*break*/, 9];
|
|
5341
|
-
|
|
5816
|
+
_17.label = 1;
|
|
5342
5817
|
case 1:
|
|
5343
|
-
|
|
5818
|
+
_17.trys.push([1, 6, 7, 8]);
|
|
5344
5819
|
values_1 = __values(values), values_1_1 = values_1.next();
|
|
5345
|
-
|
|
5820
|
+
_17.label = 2;
|
|
5346
5821
|
case 2:
|
|
5347
5822
|
if (!!values_1_1.done) return [3 /*break*/, 5];
|
|
5348
5823
|
value = values_1_1.value;
|
|
5349
5824
|
return [4 /*yield*/, this.uploadFile(field, value)];
|
|
5350
5825
|
case 3:
|
|
5351
|
-
|
|
5352
|
-
|
|
5826
|
+
_17.sent();
|
|
5827
|
+
_17.label = 4;
|
|
5353
5828
|
case 4:
|
|
5354
5829
|
values_1_1 = values_1.next();
|
|
5355
5830
|
return [3 /*break*/, 2];
|
|
5356
5831
|
case 5: return [3 /*break*/, 8];
|
|
5357
5832
|
case 6:
|
|
5358
|
-
e_8_1 =
|
|
5833
|
+
e_8_1 = _17.sent();
|
|
5359
5834
|
e_8 = { error: e_8_1 };
|
|
5360
5835
|
return [3 /*break*/, 8];
|
|
5361
5836
|
case 7:
|
|
5362
5837
|
try {
|
|
5363
|
-
if (values_1_1 && !values_1_1.done && (
|
|
5838
|
+
if (values_1_1 && !values_1_1.done && (_15 = values_1.return)) _15.call(values_1);
|
|
5364
5839
|
}
|
|
5365
5840
|
finally { if (e_8) throw e_8.error; }
|
|
5366
5841
|
return [7 /*endfinally*/];
|
|
5367
5842
|
case 8: return [3 /*break*/, 18];
|
|
5368
5843
|
case 9:
|
|
5369
5844
|
_loop_2 = function (value) {
|
|
5370
|
-
var updatedFile,
|
|
5371
|
-
return __generator(this, function (
|
|
5372
|
-
switch (
|
|
5845
|
+
var updatedFile, _18;
|
|
5846
|
+
return __generator(this, function (_19) {
|
|
5847
|
+
switch (_19.label) {
|
|
5373
5848
|
case 0:
|
|
5374
5849
|
this_2.updateFiles(value, "LOADING", e.key);
|
|
5375
5850
|
this_2.triggerLogs(ELogEventType$1.FORM__FIELD_FILE_ADD, Object.assign(Object.assign(Object.assign({ field_key: e.key }, ((_b = (_a = e.file) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : { file_name: (_c = e.file) === null || _c === void 0 ? void 0 : _c.name })), ((_e = (_d = e.file) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : { file_size: (_f = e.file) === null || _f === void 0 ? void 0 : _f.size })), ((_h = (_g = e.file) === null || _g === void 0 ? void 0 : _g.type) !== null && _h !== void 0 ? _h : { file_type: (_j = e.file) === null || _j === void 0 ? void 0 : _j.type })));
|
|
5376
|
-
|
|
5851
|
+
_18 = kwikidToolkit.getObjectDeepCopy;
|
|
5377
5852
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
5378
5853
|
setTimeout(function () {
|
|
5379
5854
|
resolve({
|
|
@@ -5387,42 +5862,42 @@
|
|
|
5387
5862
|
}, 300); // 1000 ms = 1 sec
|
|
5388
5863
|
})];
|
|
5389
5864
|
case 1:
|
|
5390
|
-
updatedFile =
|
|
5865
|
+
updatedFile = _18.apply(void 0, [_19.sent()]);
|
|
5391
5866
|
this_2.updateFiles(updatedFile, "NORMAL", e.key);
|
|
5392
5867
|
return [2 /*return*/];
|
|
5393
5868
|
}
|
|
5394
5869
|
});
|
|
5395
5870
|
};
|
|
5396
5871
|
this_2 = this;
|
|
5397
|
-
|
|
5872
|
+
_17.label = 10;
|
|
5398
5873
|
case 10:
|
|
5399
|
-
|
|
5874
|
+
_17.trys.push([10, 15, 16, 17]);
|
|
5400
5875
|
values_2 = __values(values), values_2_1 = values_2.next();
|
|
5401
|
-
|
|
5876
|
+
_17.label = 11;
|
|
5402
5877
|
case 11:
|
|
5403
5878
|
if (!!values_2_1.done) return [3 /*break*/, 14];
|
|
5404
5879
|
value = values_2_1.value;
|
|
5405
5880
|
return [5 /*yield**/, _loop_2(value)];
|
|
5406
5881
|
case 12:
|
|
5407
|
-
|
|
5408
|
-
|
|
5882
|
+
_17.sent();
|
|
5883
|
+
_17.label = 13;
|
|
5409
5884
|
case 13:
|
|
5410
5885
|
values_2_1 = values_2.next();
|
|
5411
5886
|
return [3 /*break*/, 11];
|
|
5412
5887
|
case 14: return [3 /*break*/, 17];
|
|
5413
5888
|
case 15:
|
|
5414
|
-
e_9_1 =
|
|
5889
|
+
e_9_1 = _17.sent();
|
|
5415
5890
|
e_9 = { error: e_9_1 };
|
|
5416
5891
|
return [3 /*break*/, 17];
|
|
5417
5892
|
case 16:
|
|
5418
5893
|
try {
|
|
5419
|
-
if (values_2_1 && !values_2_1.done && (
|
|
5894
|
+
if (values_2_1 && !values_2_1.done && (_16 = values_2.return)) _16.call(values_2);
|
|
5420
5895
|
}
|
|
5421
5896
|
finally { if (e_9) throw e_9.error; }
|
|
5422
5897
|
return [7 /*endfinally*/];
|
|
5423
5898
|
case 17:
|
|
5424
5899
|
this.hideApiLoader();
|
|
5425
|
-
|
|
5900
|
+
_17.label = 18;
|
|
5426
5901
|
case 18: return [2 /*return*/];
|
|
5427
5902
|
}
|
|
5428
5903
|
});
|
|
@@ -5430,16 +5905,16 @@
|
|
|
5430
5905
|
};
|
|
5431
5906
|
/** Methods for Camera related fields like 'CAPTURE' or 'RECORD' */
|
|
5432
5907
|
KwikIDFormViewComponent.prototype.handleOnClickGetRemovedMediaFile = function (e) {
|
|
5433
|
-
var
|
|
5908
|
+
var _15;
|
|
5434
5909
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5435
5910
|
this.showApiLoader();
|
|
5436
5911
|
if (this.formGroup["controls"][e.key].enabled) {
|
|
5437
5912
|
this.resetCamera();
|
|
5438
5913
|
this.mediaFiles[e.key] = e.mediaFiles;
|
|
5439
5914
|
this.formData[e.key] = filterDuplicatesMediaFiles(this.mediaFiles[e.key]);
|
|
5440
|
-
this.formGroup.patchValue((
|
|
5441
|
-
|
|
5442
|
-
|
|
5915
|
+
this.formGroup.patchValue((_15 = {},
|
|
5916
|
+
_15[e.key] = this.formData[e.key],
|
|
5917
|
+
_15), { emitEvent: false });
|
|
5443
5918
|
this.triggerLogs(ELogEventType$1.FORM__FIELD_MEDIA_FILE_REMOVE, Object.assign(Object.assign(Object.assign({ field_key: e.key }, ((_b = (_a = e.file) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : { file_name: (_c = e.file) === null || _c === void 0 ? void 0 : _c.name })), ((_e = (_d = e.file) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : { file_size: (_f = e.file) === null || _f === void 0 ? void 0 : _f.size })), ((_h = (_g = e.file) === null || _g === void 0 ? void 0 : _g.type) !== null && _h !== void 0 ? _h : { file_type: (_j = e.file) === null || _j === void 0 ? void 0 : _j.type })));
|
|
5444
5919
|
}
|
|
5445
5920
|
this.hideApiLoader();
|
|
@@ -5447,9 +5922,9 @@
|
|
|
5447
5922
|
KwikIDFormViewComponent.prototype.handleOnClickInputCamera = function (e, field) {
|
|
5448
5923
|
var _a, _b, _c, _d, _e, _f;
|
|
5449
5924
|
return __awaiter(this, void 0, void 0, function () {
|
|
5450
|
-
var fieldKey, fieldcameraConfig,
|
|
5451
|
-
return __generator(this, function (
|
|
5452
|
-
switch (
|
|
5925
|
+
var fieldKey, fieldcameraConfig, _15, cameraHelper, _16, _17;
|
|
5926
|
+
return __generator(this, function (_18) {
|
|
5927
|
+
switch (_18.label) {
|
|
5453
5928
|
case 0:
|
|
5454
5929
|
this.loaderService.show({
|
|
5455
5930
|
loaderText: "Loading Camera...",
|
|
@@ -5464,8 +5939,8 @@
|
|
|
5464
5939
|
field_type: field.type,
|
|
5465
5940
|
camera_type: this.cameraType
|
|
5466
5941
|
});
|
|
5467
|
-
|
|
5468
|
-
switch (
|
|
5942
|
+
_15 = this.cameraType;
|
|
5943
|
+
switch (_15) {
|
|
5469
5944
|
case "CAPTURE": return [3 /*break*/, 1];
|
|
5470
5945
|
case "RECORD": return [3 /*break*/, 5];
|
|
5471
5946
|
}
|
|
@@ -5478,16 +5953,16 @@
|
|
|
5478
5953
|
if (!(((_d = (_c = this.cameraConfig) === null || _c === void 0 ? void 0 : _c.others) === null || _d === void 0 ? void 0 : _d.isWatermark) ||
|
|
5479
5954
|
((_f = (_e = this.cameraConfig) === null || _e === void 0 ? void 0 : _e.others) === null || _f === void 0 ? void 0 : _f.isWatermarkForImageUpload))) return [3 /*break*/, 3];
|
|
5480
5955
|
cameraHelper = new CameraHelper(field, this.formFields, this.allFormsData, this.formData, this.previousFormData);
|
|
5481
|
-
|
|
5482
|
-
|
|
5956
|
+
_16 = this;
|
|
5957
|
+
_17 = {};
|
|
5483
5958
|
return [4 /*yield*/, cameraHelper.getCameraWatermarkData()];
|
|
5484
5959
|
case 2:
|
|
5485
|
-
|
|
5486
|
-
|
|
5960
|
+
_16.cameraData = (_17.watermark = _18.sent(),
|
|
5961
|
+
_17);
|
|
5487
5962
|
return [3 /*break*/, 4];
|
|
5488
5963
|
case 3:
|
|
5489
5964
|
this.cameraData = undefined;
|
|
5490
|
-
|
|
5965
|
+
_18.label = 4;
|
|
5491
5966
|
case 4: return [3 /*break*/, 7];
|
|
5492
5967
|
case 5:
|
|
5493
5968
|
this.cameraConfig = kwikidToolkit.mergeObjectsDeep([
|
|
@@ -5513,11 +5988,11 @@
|
|
|
5513
5988
|
/** CameraType = CAPTURE */
|
|
5514
5989
|
KwikIDFormViewComponent.prototype.setCameraMedia = function (media) {
|
|
5515
5990
|
return __awaiter(this, void 0, void 0, function () {
|
|
5516
|
-
var field,
|
|
5517
|
-
var
|
|
5991
|
+
var field, validations_5;
|
|
5992
|
+
var _15;
|
|
5518
5993
|
var _this = this;
|
|
5519
|
-
return __generator(this, function (
|
|
5520
|
-
switch (
|
|
5994
|
+
return __generator(this, function (_16) {
|
|
5995
|
+
switch (_16.label) {
|
|
5521
5996
|
case 0:
|
|
5522
5997
|
field = getFormFieldByKey(this.formFields, this.cameraFieldKey);
|
|
5523
5998
|
if (!(kwikidToolkit.checkObjectKeyExists(field, "properties") &&
|
|
@@ -5525,7 +6000,7 @@
|
|
|
5525
6000
|
field.properties.uploadFileToServer)) return [3 /*break*/, 2];
|
|
5526
6001
|
return [4 /*yield*/, this.uploadFile(field, media)];
|
|
5527
6002
|
case 1:
|
|
5528
|
-
|
|
6003
|
+
_16.sent();
|
|
5529
6004
|
return [3 /*break*/, 3];
|
|
5530
6005
|
case 2:
|
|
5531
6006
|
this.resetCamera();
|
|
@@ -5535,9 +6010,9 @@
|
|
|
5535
6010
|
emitEvent: false,
|
|
5536
6011
|
onlySelf: false
|
|
5537
6012
|
});
|
|
5538
|
-
this.formGroup.patchValue((
|
|
5539
|
-
|
|
5540
|
-
|
|
6013
|
+
this.formGroup.patchValue((_15 = {},
|
|
6014
|
+
_15[field.key] = kwikidToolkit.getObjectDeepCopy([media]),
|
|
6015
|
+
_15), { emitEvent: false });
|
|
5541
6016
|
this.formGroup.controls[field.key].updateValueAndValidity({
|
|
5542
6017
|
emitEvent: false
|
|
5543
6018
|
});
|
|
@@ -5548,7 +6023,7 @@
|
|
|
5548
6023
|
if (field.isFormElement &&
|
|
5549
6024
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
5550
6025
|
field.validation.triggers.includes("ON_CHANGE")) {
|
|
5551
|
-
|
|
6026
|
+
validations_5 = new kwikidToolkit.Validation({
|
|
5552
6027
|
FIELD_CONFIG: field,
|
|
5553
6028
|
FORM_FIELDS: this.formFields,
|
|
5554
6029
|
FORM_DATA: this.formData,
|
|
@@ -5557,11 +6032,11 @@
|
|
|
5557
6032
|
ALL_FORMS_DATA: this.allFormsData
|
|
5558
6033
|
}, this.takeAction.bind(this));
|
|
5559
6034
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5560
|
-
return __generator(this, function (
|
|
5561
|
-
switch (
|
|
5562
|
-
case 0: return [4 /*yield*/,
|
|
6035
|
+
return __generator(this, function (_15) {
|
|
6036
|
+
switch (_15.label) {
|
|
6037
|
+
case 0: return [4 /*yield*/, validations_5.validate(field.validation)];
|
|
5563
6038
|
case 1:
|
|
5564
|
-
|
|
6039
|
+
_15.sent();
|
|
5565
6040
|
return [2 /*return*/];
|
|
5566
6041
|
}
|
|
5567
6042
|
});
|
|
@@ -5578,7 +6053,7 @@
|
|
|
5578
6053
|
field_key: field.key,
|
|
5579
6054
|
field_type: field.type
|
|
5580
6055
|
});
|
|
5581
|
-
|
|
6056
|
+
_16.label = 3;
|
|
5582
6057
|
case 3: return [2 /*return*/];
|
|
5583
6058
|
}
|
|
5584
6059
|
});
|
|
@@ -5690,7 +6165,7 @@
|
|
|
5690
6165
|
* This method is used to update the files array with the new file and it's state and response from the api of uploading the file.
|
|
5691
6166
|
*/
|
|
5692
6167
|
KwikIDFormViewComponent.prototype.updateFiles = function (file, state, key) {
|
|
5693
|
-
var
|
|
6168
|
+
var _15;
|
|
5694
6169
|
var _this = this;
|
|
5695
6170
|
var _a;
|
|
5696
6171
|
var fileWithState = kwikidToolkit.mergeObjects(file, { state: state });
|
|
@@ -5718,14 +6193,14 @@
|
|
|
5718
6193
|
emitEvent: false,
|
|
5719
6194
|
onlySelf: false
|
|
5720
6195
|
});
|
|
5721
|
-
this.formGroup.patchValue((
|
|
5722
|
-
|
|
5723
|
-
|
|
6196
|
+
this.formGroup.patchValue((_15 = {},
|
|
6197
|
+
_15[key] = normalFiles,
|
|
6198
|
+
_15), { emitEvent: false });
|
|
5724
6199
|
this.getUnsavedDataState.emit(true);
|
|
5725
6200
|
if (field.isFormElement &&
|
|
5726
6201
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
5727
6202
|
field.validation.triggers.includes("ON_CHANGE")) {
|
|
5728
|
-
var
|
|
6203
|
+
var validations_6 = new kwikidToolkit.Validation({
|
|
5729
6204
|
FIELD_CONFIG: field,
|
|
5730
6205
|
FORM_FIELDS: this.formFields,
|
|
5731
6206
|
FORM_DATA: this.formData,
|
|
@@ -5734,11 +6209,11 @@
|
|
|
5734
6209
|
ALL_FORMS_DATA: this.allFormsData
|
|
5735
6210
|
}, this.takeAction.bind(this));
|
|
5736
6211
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5737
|
-
return __generator(this, function (
|
|
5738
|
-
switch (
|
|
5739
|
-
case 0: return [4 /*yield*/,
|
|
6212
|
+
return __generator(this, function (_15) {
|
|
6213
|
+
switch (_15.label) {
|
|
6214
|
+
case 0: return [4 /*yield*/, validations_6.validate(field.validation)];
|
|
5740
6215
|
case 1:
|
|
5741
|
-
|
|
6216
|
+
_15.sent();
|
|
5742
6217
|
return [2 /*return*/];
|
|
5743
6218
|
}
|
|
5744
6219
|
});
|
|
@@ -5757,7 +6232,7 @@
|
|
|
5757
6232
|
*/
|
|
5758
6233
|
KwikIDFormViewComponent.prototype.uploadFile = function (field, file) {
|
|
5759
6234
|
return __awaiter(this, void 0, void 0, function () {
|
|
5760
|
-
return __generator(this, function (
|
|
6235
|
+
return __generator(this, function (_15) {
|
|
5761
6236
|
switch (field.type) {
|
|
5762
6237
|
case EFieldType.FILE:
|
|
5763
6238
|
this.updateFiles(file, "LOADING", field.key);
|
|
@@ -5843,11 +6318,11 @@
|
|
|
5843
6318
|
});
|
|
5844
6319
|
};
|
|
5845
6320
|
KwikIDFormViewComponent.prototype.handleOnClickFormFieldButton = function (field) {
|
|
5846
|
-
var e_10,
|
|
6321
|
+
var e_10, _15;
|
|
5847
6322
|
var formData = this.formGroup.getRawValue();
|
|
5848
6323
|
try {
|
|
5849
|
-
for (var
|
|
5850
|
-
var field_3 =
|
|
6324
|
+
for (var _16 = __values(this.formFields), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6325
|
+
var field_3 = _17.value;
|
|
5851
6326
|
if (field_3.isFormElement) {
|
|
5852
6327
|
if (field_3.hidden) {
|
|
5853
6328
|
delete formData[field_3.key];
|
|
@@ -5861,22 +6336,22 @@
|
|
|
5861
6336
|
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
5862
6337
|
finally {
|
|
5863
6338
|
try {
|
|
5864
|
-
if (
|
|
6339
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
5865
6340
|
}
|
|
5866
6341
|
finally { if (e_10) throw e_10.error; }
|
|
5867
6342
|
}
|
|
5868
6343
|
var extendedFormData = this.formFields.reduce(function (result, field, index) {
|
|
5869
|
-
var
|
|
6344
|
+
var _15;
|
|
5870
6345
|
if (field.isFormElement && !field.hidden) {
|
|
5871
|
-
var fieldData = (
|
|
5872
|
-
|
|
6346
|
+
var fieldData = (_15 = {},
|
|
6347
|
+
_15[field.key] = {
|
|
5873
6348
|
key: field.key,
|
|
5874
6349
|
label: field.label,
|
|
5875
6350
|
value: kwikidToolkit.isEmptyValue(formData[field.key]) ? "" : formData[field.key],
|
|
5876
6351
|
type: field.type,
|
|
5877
6352
|
index: index
|
|
5878
6353
|
},
|
|
5879
|
-
|
|
6354
|
+
_15);
|
|
5880
6355
|
result[field.key] = fieldData[field.key];
|
|
5881
6356
|
}
|
|
5882
6357
|
return result;
|
|
@@ -5892,20 +6367,134 @@
|
|
|
5892
6367
|
extendedData: extendedFormData
|
|
5893
6368
|
});
|
|
5894
6369
|
};
|
|
6370
|
+
KwikIDFormViewComponent.prototype.handleOnLocationPermission = function (e) {
|
|
6371
|
+
var _this = this;
|
|
6372
|
+
var field = getFormFieldByKey(this.formFields, e.key);
|
|
6373
|
+
var fieldIndex = this.formFields.findIndex(function (_) {
|
|
6374
|
+
return field.key === _.key;
|
|
6375
|
+
});
|
|
6376
|
+
// set button status to default
|
|
6377
|
+
field["api"]["status"]["value"] = EApiStatusType.LOADING;
|
|
6378
|
+
field["showLoader"] = true;
|
|
6379
|
+
this.formFields[fieldIndex] = field;
|
|
6380
|
+
this.showApiLoader();
|
|
6381
|
+
this.fieldShowApiLoader(field.key);
|
|
6382
|
+
if (!e.permission) {
|
|
6383
|
+
this.triggerLogs(ELogEventType$1.FORM__LIVE_LOCATION_PERMISSION_ERROR, {
|
|
6384
|
+
field_key: field.key,
|
|
6385
|
+
field_type: field.type
|
|
6386
|
+
});
|
|
6387
|
+
this.togglePermissionErrorNotification(true);
|
|
6388
|
+
setTimeout(function () {
|
|
6389
|
+
_this.togglePermissionErrorNotification(false);
|
|
6390
|
+
}, 3000);
|
|
6391
|
+
}
|
|
6392
|
+
else {
|
|
6393
|
+
this.triggerLogs(ELogEventType$1.FORM__LIVE_LOCATION_PERMISSION_SUCCESS, {
|
|
6394
|
+
field_key: field.key,
|
|
6395
|
+
field_type: field.type
|
|
6396
|
+
});
|
|
6397
|
+
}
|
|
6398
|
+
setTimeout(function () {
|
|
6399
|
+
// set button status to default
|
|
6400
|
+
field["api"]["status"]["value"] = EApiStatusType.DEFAULT;
|
|
6401
|
+
field["showLoader"] = false;
|
|
6402
|
+
_this.formFields[fieldIndex] = field;
|
|
6403
|
+
_this.hideApiLoader();
|
|
6404
|
+
_this.fieldHideApiLoader(field.key);
|
|
6405
|
+
}, 500);
|
|
6406
|
+
};
|
|
6407
|
+
KwikIDFormViewComponent.prototype.handleOnClickLiveLocation = function (e) {
|
|
6408
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6409
|
+
var field, validations_7;
|
|
6410
|
+
var _15;
|
|
6411
|
+
var _this = this;
|
|
6412
|
+
return __generator(this, function (_16) {
|
|
6413
|
+
switch (_16.label) {
|
|
6414
|
+
case 0:
|
|
6415
|
+
field = getFormFieldByKey(this.formFields, e.key);
|
|
6416
|
+
this.triggerLogs(ELogEventType$1.FORM__LIVE_LOCATION_BUTTON_CLICK, {
|
|
6417
|
+
field_key: field.key,
|
|
6418
|
+
field_type: field.type
|
|
6419
|
+
});
|
|
6420
|
+
// set button status to loading
|
|
6421
|
+
field["api"]["status"]["value"] = EApiStatusType.LOADING;
|
|
6422
|
+
field["showLoader"] = true;
|
|
6423
|
+
this.showApiLoader();
|
|
6424
|
+
this.formGroup.patchValue((_15 = {},
|
|
6425
|
+
_15[e.key] = e.value,
|
|
6426
|
+
_15), { emitEvent: false });
|
|
6427
|
+
this.formData[e.key] = convertFormFieldValueToStandardFormat(field, e.value);
|
|
6428
|
+
this.getUnsavedDataState.emit(true);
|
|
6429
|
+
if (!(kwikidToolkit.checkObjectKeyExists(field, "properties") &&
|
|
6430
|
+
kwikidToolkit.checkObjectKeyExists(field.properties, "isGetLocationFromLatLong") &&
|
|
6431
|
+
field.properties.isGetLocationFromLatLong)) return [3 /*break*/, 1];
|
|
6432
|
+
this.onClickApiCall.emit({
|
|
6433
|
+
key: field.key,
|
|
6434
|
+
type: field.type,
|
|
6435
|
+
payload: Object.assign({}, e.liveLocation)
|
|
6436
|
+
});
|
|
6437
|
+
return [3 /*break*/, 3];
|
|
6438
|
+
case 1: return [4 /*yield*/, new Promise(function (resolve) {
|
|
6439
|
+
setTimeout(function () {
|
|
6440
|
+
resolve(true);
|
|
6441
|
+
}, 300); // 1000 ms = 1 sec
|
|
6442
|
+
})];
|
|
6443
|
+
case 2:
|
|
6444
|
+
_16.sent();
|
|
6445
|
+
// set button status to success
|
|
6446
|
+
field["api"]["status"]["value"] = EApiStatusType.SUCCESS;
|
|
6447
|
+
field["showLoader"] = false;
|
|
6448
|
+
if (field.isFormElement &&
|
|
6449
|
+
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
6450
|
+
field.validation.triggers.includes("ON_CHANGE")) {
|
|
6451
|
+
validations_7 = new kwikidToolkit.Validation({
|
|
6452
|
+
FIELD_CONFIG: field,
|
|
6453
|
+
FORM_FIELDS: this.formFields,
|
|
6454
|
+
FORM_DATA: this.formData,
|
|
6455
|
+
TASK_DATA: this.taskData,
|
|
6456
|
+
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
6457
|
+
ALL_FORMS_DATA: this.allFormsData
|
|
6458
|
+
}, this.takeAction.bind(this));
|
|
6459
|
+
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6460
|
+
return __generator(this, function (_15) {
|
|
6461
|
+
switch (_15.label) {
|
|
6462
|
+
case 0: return [4 /*yield*/, validations_7.validate(field.validation)];
|
|
6463
|
+
case 1:
|
|
6464
|
+
_15.sent();
|
|
6465
|
+
return [2 /*return*/];
|
|
6466
|
+
}
|
|
6467
|
+
});
|
|
6468
|
+
}); })();
|
|
6469
|
+
}
|
|
6470
|
+
if (field.isFormElement &&
|
|
6471
|
+
kwikidToolkit.checkObjectKeyExists(field, "connectedElements")) {
|
|
6472
|
+
this.handleConnectedElements({
|
|
6473
|
+
key: field.key,
|
|
6474
|
+
value: this.formGroup.controls[field.key].value
|
|
6475
|
+
}, "ON_CHANGE");
|
|
6476
|
+
}
|
|
6477
|
+
this.hideApiLoader();
|
|
6478
|
+
_16.label = 3;
|
|
6479
|
+
case 3: return [2 /*return*/];
|
|
6480
|
+
}
|
|
6481
|
+
});
|
|
6482
|
+
});
|
|
6483
|
+
};
|
|
5895
6484
|
// DOM Event Handlers
|
|
5896
6485
|
KwikIDFormViewComponent.prototype.handleGetKeyValue = function (e) {
|
|
5897
|
-
var
|
|
6486
|
+
var _15;
|
|
5898
6487
|
var _this = this;
|
|
5899
|
-
this.formGroup.patchValue((
|
|
5900
|
-
|
|
5901
|
-
|
|
6488
|
+
this.formGroup.patchValue((_15 = {},
|
|
6489
|
+
_15[e.key] = e.value,
|
|
6490
|
+
_15), { emitEvent: false });
|
|
5902
6491
|
var field = getFormFieldByKey(this.formFields, e.key);
|
|
5903
6492
|
this.formData[e.key] = convertFormFieldValueToStandardFormat(field, e.value);
|
|
5904
6493
|
this.getUnsavedDataState.emit(true);
|
|
5905
6494
|
if (field.isFormElement &&
|
|
5906
6495
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
5907
6496
|
field.validation.triggers.includes("ON_CHANGE")) {
|
|
5908
|
-
var
|
|
6497
|
+
var validations_8 = new kwikidToolkit.Validation({
|
|
5909
6498
|
FIELD_CONFIG: field,
|
|
5910
6499
|
FORM_FIELDS: this.formFields,
|
|
5911
6500
|
FORM_DATA: this.formData,
|
|
@@ -5914,11 +6503,11 @@
|
|
|
5914
6503
|
ALL_FORMS_DATA: this.allFormsData
|
|
5915
6504
|
}, this.takeAction.bind(this));
|
|
5916
6505
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5917
|
-
return __generator(this, function (
|
|
5918
|
-
switch (
|
|
5919
|
-
case 0: return [4 /*yield*/,
|
|
6506
|
+
return __generator(this, function (_15) {
|
|
6507
|
+
switch (_15.label) {
|
|
6508
|
+
case 0: return [4 /*yield*/, validations_8.validate(field.validation)];
|
|
5920
6509
|
case 1:
|
|
5921
|
-
|
|
6510
|
+
_15.sent();
|
|
5922
6511
|
return [2 /*return*/];
|
|
5923
6512
|
}
|
|
5924
6513
|
});
|
|
@@ -5937,30 +6526,30 @@
|
|
|
5937
6526
|
return __awaiter(this, void 0, void 0, function () {
|
|
5938
6527
|
var resetFormFields, BYPASS_RESET_CONFIRM, CONFIRM_RESET;
|
|
5939
6528
|
var _this = this;
|
|
5940
|
-
return __generator(this, function (
|
|
6529
|
+
return __generator(this, function (_15) {
|
|
5941
6530
|
this.triggerLogs(ELogEventType$1.FORM__FIELD_RESET_BUTTON_CLICK, {
|
|
5942
6531
|
field_key: field.key
|
|
5943
6532
|
});
|
|
5944
6533
|
resetFormFields = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5945
|
-
var
|
|
5946
|
-
var e_12,
|
|
5947
|
-
return __generator(this, function (
|
|
5948
|
-
switch (
|
|
6534
|
+
var _15, _16, f, _17, _18, action, resetField, actions, e_11_1, e_12_1;
|
|
6535
|
+
var e_12, _19, e_11, _20;
|
|
6536
|
+
return __generator(this, function (_21) {
|
|
6537
|
+
switch (_21.label) {
|
|
5949
6538
|
case 0:
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
6539
|
+
_21.trys.push([0, 11, 12, 13]);
|
|
6540
|
+
_15 = __values(field.reset.fields), _16 = _15.next();
|
|
6541
|
+
_21.label = 1;
|
|
5953
6542
|
case 1:
|
|
5954
|
-
if (!!
|
|
5955
|
-
f =
|
|
5956
|
-
|
|
6543
|
+
if (!!_16.done) return [3 /*break*/, 10];
|
|
6544
|
+
f = _16.value;
|
|
6545
|
+
_21.label = 2;
|
|
5957
6546
|
case 2:
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
6547
|
+
_21.trys.push([2, 7, 8, 9]);
|
|
6548
|
+
_17 = (e_11 = void 0, __values(f.actions)), _18 = _17.next();
|
|
6549
|
+
_21.label = 3;
|
|
5961
6550
|
case 3:
|
|
5962
|
-
if (!!
|
|
5963
|
-
action =
|
|
6551
|
+
if (!!_18.done) return [3 /*break*/, 6];
|
|
6552
|
+
action = _18.value;
|
|
5964
6553
|
resetField = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
5965
6554
|
actions = new kwikidToolkit.Action(action, {}, {
|
|
5966
6555
|
FIELD_CONFIG: resetField,
|
|
@@ -5972,33 +6561,33 @@
|
|
|
5972
6561
|
}, this.takeAction.bind(this));
|
|
5973
6562
|
return [4 /*yield*/, actions.execute()];
|
|
5974
6563
|
case 4:
|
|
5975
|
-
|
|
5976
|
-
|
|
6564
|
+
_21.sent();
|
|
6565
|
+
_21.label = 5;
|
|
5977
6566
|
case 5:
|
|
5978
|
-
|
|
6567
|
+
_18 = _17.next();
|
|
5979
6568
|
return [3 /*break*/, 3];
|
|
5980
6569
|
case 6: return [3 /*break*/, 9];
|
|
5981
6570
|
case 7:
|
|
5982
|
-
e_11_1 =
|
|
6571
|
+
e_11_1 = _21.sent();
|
|
5983
6572
|
e_11 = { error: e_11_1 };
|
|
5984
6573
|
return [3 /*break*/, 9];
|
|
5985
6574
|
case 8:
|
|
5986
6575
|
try {
|
|
5987
|
-
if (
|
|
6576
|
+
if (_18 && !_18.done && (_20 = _17.return)) _20.call(_17);
|
|
5988
6577
|
}
|
|
5989
6578
|
finally { if (e_11) throw e_11.error; }
|
|
5990
6579
|
return [7 /*endfinally*/];
|
|
5991
6580
|
case 9:
|
|
5992
|
-
|
|
6581
|
+
_16 = _15.next();
|
|
5993
6582
|
return [3 /*break*/, 1];
|
|
5994
6583
|
case 10: return [3 /*break*/, 13];
|
|
5995
6584
|
case 11:
|
|
5996
|
-
e_12_1 =
|
|
6585
|
+
e_12_1 = _21.sent();
|
|
5997
6586
|
e_12 = { error: e_12_1 };
|
|
5998
6587
|
return [3 /*break*/, 13];
|
|
5999
6588
|
case 12:
|
|
6000
6589
|
try {
|
|
6001
|
-
if (
|
|
6590
|
+
if (_16 && !_16.done && (_19 = _15.return)) _19.call(_15);
|
|
6002
6591
|
}
|
|
6003
6592
|
finally { if (e_12) throw e_12.error; }
|
|
6004
6593
|
return [7 /*endfinally*/];
|
|
@@ -6023,9 +6612,9 @@
|
|
|
6023
6612
|
KwikIDFormViewComponent.prototype.handleFieldApiCall = function (field, api) {
|
|
6024
6613
|
return __awaiter(this, void 0, void 0, function () {
|
|
6025
6614
|
var apis;
|
|
6026
|
-
var
|
|
6027
|
-
return __generator(this, function (
|
|
6028
|
-
switch (
|
|
6615
|
+
var _15, _16;
|
|
6616
|
+
return __generator(this, function (_17) {
|
|
6617
|
+
switch (_17.label) {
|
|
6029
6618
|
case 0: return [4 /*yield*/, this.executeApiCall(api, {
|
|
6030
6619
|
FIELD_CONFIG: field,
|
|
6031
6620
|
API_CONFIG: api,
|
|
@@ -6036,13 +6625,13 @@
|
|
|
6036
6625
|
ALL_FORMS_DATA: this.allFormsData
|
|
6037
6626
|
})];
|
|
6038
6627
|
case 1:
|
|
6039
|
-
api =
|
|
6628
|
+
api = _17.sent();
|
|
6040
6629
|
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
|
|
6041
6630
|
if (kwikidToolkit.checkObjectKeyExists(field.api, "request")) {
|
|
6042
|
-
this.formData = Object.assign(Object.assign({}, this.formData), (
|
|
6043
|
-
this.formGroup.patchValue((
|
|
6044
|
-
|
|
6045
|
-
|
|
6631
|
+
this.formData = Object.assign(Object.assign({}, this.formData), (_15 = {}, _15[field.key] = api.response.value, _15));
|
|
6632
|
+
this.formGroup.patchValue((_16 = {},
|
|
6633
|
+
_16[field.key] = api.response.value,
|
|
6634
|
+
_16), { emitEvent: false });
|
|
6046
6635
|
}
|
|
6047
6636
|
apis = new Apis({
|
|
6048
6637
|
FIELD_CONFIG: field,
|
|
@@ -6056,14 +6645,14 @@
|
|
|
6056
6645
|
}, this.takeAction.bind(this));
|
|
6057
6646
|
return [4 /*yield*/, apis.validateResponse()];
|
|
6058
6647
|
case 2:
|
|
6059
|
-
api =
|
|
6648
|
+
api = _17.sent();
|
|
6060
6649
|
return [3 /*break*/, 4];
|
|
6061
6650
|
case 3:
|
|
6062
6651
|
setTimeout(function () {
|
|
6063
6652
|
field["api"]["status"]["value"] = EApiStatusType.FAILED;
|
|
6064
6653
|
field["showLoader"] = false;
|
|
6065
6654
|
}, 500);
|
|
6066
|
-
|
|
6655
|
+
_17.label = 4;
|
|
6067
6656
|
case 4: return [2 /*return*/, { field: field, api: api }];
|
|
6068
6657
|
}
|
|
6069
6658
|
});
|
|
@@ -6072,8 +6661,8 @@
|
|
|
6072
6661
|
KwikIDFormViewComponent.prototype.handleApiCall = function (api) {
|
|
6073
6662
|
return __awaiter(this, void 0, void 0, function () {
|
|
6074
6663
|
var apis;
|
|
6075
|
-
return __generator(this, function (
|
|
6076
|
-
switch (
|
|
6664
|
+
return __generator(this, function (_15) {
|
|
6665
|
+
switch (_15.label) {
|
|
6077
6666
|
case 0: return [4 /*yield*/, this.executeApiCall(api, {
|
|
6078
6667
|
FORM_CONFIG: this.formConfig,
|
|
6079
6668
|
API_CONFIG: api,
|
|
@@ -6084,7 +6673,7 @@
|
|
|
6084
6673
|
ALL_FORMS_DATA: this.allFormsData
|
|
6085
6674
|
})];
|
|
6086
6675
|
case 1:
|
|
6087
|
-
api =
|
|
6676
|
+
api = _15.sent();
|
|
6088
6677
|
apis = new Apis({
|
|
6089
6678
|
FORM_CONFIG: this.formConfig,
|
|
6090
6679
|
API_CONFIG: api,
|
|
@@ -6097,38 +6686,38 @@
|
|
|
6097
6686
|
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
|
|
6098
6687
|
return [4 /*yield*/, apis.validateResponse()];
|
|
6099
6688
|
case 2:
|
|
6100
|
-
api =
|
|
6101
|
-
|
|
6689
|
+
api = _15.sent();
|
|
6690
|
+
_15.label = 3;
|
|
6102
6691
|
case 3: return [2 /*return*/, { api: api }];
|
|
6103
6692
|
}
|
|
6104
6693
|
});
|
|
6105
6694
|
});
|
|
6106
6695
|
};
|
|
6107
6696
|
KwikIDFormViewComponent.prototype.executeApiCall = function (api, object) {
|
|
6108
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
6697
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
|
|
6109
6698
|
return __awaiter(this, void 0, void 0, function () {
|
|
6110
|
-
var apis, apiCallResponse, apiCallResponseStatusCode, url, method, headers,
|
|
6111
|
-
return __generator(this, function (
|
|
6112
|
-
switch (
|
|
6699
|
+
var apis, apiCallResponse, apiCallResponseStatusCode, url, method, headers, isDecryptResponse, isVerifySignature, executedApiCall, _13_1, body, isEncryptRequestBody, isDecryptResponse, isVerifySignature, executedApiCall, _14_1;
|
|
6700
|
+
return __generator(this, function (_15) {
|
|
6701
|
+
switch (_15.label) {
|
|
6113
6702
|
case 0:
|
|
6114
6703
|
apis = new Apis(object, this.takeAction.bind(this));
|
|
6115
6704
|
return [4 /*yield*/, apis.setUrl()];
|
|
6116
6705
|
case 1:
|
|
6117
|
-
api =
|
|
6706
|
+
api = _15.sent();
|
|
6118
6707
|
return [4 /*yield*/, apis.setRequestHeaders()];
|
|
6119
6708
|
case 2:
|
|
6120
|
-
api =
|
|
6709
|
+
api = _15.sent();
|
|
6121
6710
|
return [4 /*yield*/, apis.validateRequestHeaders()];
|
|
6122
6711
|
case 3:
|
|
6123
|
-
api =
|
|
6712
|
+
api = _15.sent();
|
|
6124
6713
|
return [4 /*yield*/, apis.setRequestBody()];
|
|
6125
6714
|
case 4:
|
|
6126
|
-
api =
|
|
6715
|
+
api = _15.sent();
|
|
6127
6716
|
return [4 /*yield*/, apis.validateRequestBody()];
|
|
6128
6717
|
case 5:
|
|
6129
|
-
api =
|
|
6718
|
+
api = _15.sent();
|
|
6130
6719
|
apiCallResponse = {};
|
|
6131
|
-
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/,
|
|
6720
|
+
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 17];
|
|
6132
6721
|
if (!(api.request.url.hasOwnProperty("type") &&
|
|
6133
6722
|
api.request.url.type === EApiRequestUrlType.MOCK)) return [3 /*break*/, 7];
|
|
6134
6723
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
@@ -6137,100 +6726,76 @@
|
|
|
6137
6726
|
}, 1000); // 1000 ms = 1 sec
|
|
6138
6727
|
})];
|
|
6139
6728
|
case 6:
|
|
6140
|
-
apiCallResponse =
|
|
6729
|
+
apiCallResponse = _15.sent();
|
|
6141
6730
|
apiCallResponseStatusCode = (_b = (_a = api.request.url.props) === null || _a === void 0 ? void 0 : _a.statusCode) !== null && _b !== void 0 ? _b : 200; // Default Status Code for Mocked APIs
|
|
6142
|
-
return [3 /*break*/,
|
|
6731
|
+
return [3 /*break*/, 16];
|
|
6143
6732
|
case 7:
|
|
6144
6733
|
url = api.request.url.value;
|
|
6145
6734
|
method = (_d = (_c = api.request) === null || _c === void 0 ? void 0 : _c.method) !== null && _d !== void 0 ? _d : "POST";
|
|
6146
6735
|
headers = Object.assign({ "Content-Type": "application/json" }, (((_f = (_e = api.request) === null || _e === void 0 ? void 0 : _e.headers) === null || _f === void 0 ? void 0 : _f.value) || {}));
|
|
6147
|
-
if (!(method === "GET")) return [3 /*break*/,
|
|
6736
|
+
if (!(method === "GET")) return [3 /*break*/, 12];
|
|
6737
|
+
// Trigger logs for API request with the method and API key
|
|
6148
6738
|
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST, {
|
|
6149
6739
|
form_api_method: method,
|
|
6150
6740
|
form_api_key: (_g = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _g !== void 0 ? _g : ""
|
|
6151
6741
|
});
|
|
6152
|
-
|
|
6742
|
+
_15.label = 8;
|
|
6153
6743
|
case 8:
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6744
|
+
_15.trys.push([8, 10, , 11]);
|
|
6745
|
+
isDecryptResponse = (_j = (_h = api === null || api === void 0 ? void 0 : api.response) === null || _h === void 0 ? void 0 : _h.isSecure) !== null && _j !== void 0 ? _j : false;
|
|
6746
|
+
isVerifySignature = (_l = (_k = api === null || api === void 0 ? void 0 : api.response) === null || _k === void 0 ? void 0 : _k.isVerifySignature) !== null && _l !== void 0 ? _l : false;
|
|
6747
|
+
return [4 /*yield*/, this.formViewApiService.executeApiCall(url, "GET", {}, // No request body for GET method
|
|
6748
|
+
headers, false, // isEncryptRequestBody is not applicable for GET method
|
|
6749
|
+
isDecryptResponse, isVerifySignature)];
|
|
6159
6750
|
case 9:
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
return [
|
|
6751
|
+
executedApiCall = _15.sent();
|
|
6752
|
+
apiCallResponse = executedApiCall.data;
|
|
6753
|
+
apiCallResponseStatusCode = executedApiCall.status;
|
|
6754
|
+
return [3 /*break*/, 11];
|
|
6164
6755
|
case 10:
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
apiCallResponse =
|
|
6168
|
-
|
|
6169
|
-
|
|
6756
|
+
_13_1 = _15.sent();
|
|
6757
|
+
// Handle any errors
|
|
6758
|
+
apiCallResponse = {};
|
|
6759
|
+
apiCallResponseStatusCode = 500; // Internal Server Error
|
|
6760
|
+
return [3 /*break*/, 11];
|
|
6761
|
+
case 11: return [3 /*break*/, 16];
|
|
6170
6762
|
case 12:
|
|
6171
|
-
|
|
6172
|
-
|
|
6763
|
+
body = (_p = (_o = (_m = api === null || api === void 0 ? void 0 : api.request) === null || _m === void 0 ? void 0 : _m.body) === null || _o === void 0 ? void 0 : _o.value) !== null && _p !== void 0 ? _p : {};
|
|
6764
|
+
isEncryptRequestBody = (_s = (_r = (_q = api === null || api === void 0 ? void 0 : api.request) === null || _q === void 0 ? void 0 : _q.body) === null || _r === void 0 ? void 0 : _r.isSecure) !== null && _s !== void 0 ? _s : false;
|
|
6765
|
+
isDecryptResponse = (_u = (_t = api === null || api === void 0 ? void 0 : api.response) === null || _t === void 0 ? void 0 : _t.isSecure) !== null && _u !== void 0 ? _u : false;
|
|
6766
|
+
isVerifySignature = (_w = (_v = api === null || api === void 0 ? void 0 : api.response) === null || _v === void 0 ? void 0 : _v.isVerifySignature) !== null && _w !== void 0 ? _w : false;
|
|
6767
|
+
// Trigger logs for API request with the method and API key
|
|
6768
|
+
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST, Object.assign({ form_api_method: method, form_api_key: (_x = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _x !== void 0 ? _x : "", form_api_request_encrypted: isEncryptRequestBody }, (!isEncryptRequestBody && {
|
|
6769
|
+
form_api_request_body: body
|
|
6770
|
+
})));
|
|
6771
|
+
_15.label = 13;
|
|
6173
6772
|
case 13:
|
|
6174
|
-
|
|
6175
|
-
return [
|
|
6773
|
+
_15.trys.push([13, 15, , 16]);
|
|
6774
|
+
return [4 /*yield*/, this.formViewApiService.executeApiCall(url, "POST", body, headers, isEncryptRequestBody, isDecryptResponse, isVerifySignature)];
|
|
6176
6775
|
case 14:
|
|
6177
|
-
|
|
6776
|
+
executedApiCall = _15.sent();
|
|
6777
|
+
apiCallResponse = executedApiCall.data;
|
|
6778
|
+
apiCallResponseStatusCode = executedApiCall.status;
|
|
6779
|
+
return [3 /*break*/, 16];
|
|
6780
|
+
case 15:
|
|
6781
|
+
_14_1 = _15.sent();
|
|
6782
|
+
// Handle any errors
|
|
6178
6783
|
apiCallResponse = {};
|
|
6179
|
-
apiCallResponseStatusCode = 500;
|
|
6180
|
-
return [3 /*break*/,
|
|
6181
|
-
case 15: return [3 /*break*/, 24];
|
|
6784
|
+
apiCallResponseStatusCode = 500; // Internal Server Error
|
|
6785
|
+
return [3 /*break*/, 16];
|
|
6182
6786
|
case 16:
|
|
6183
|
-
body = JSON.stringify((_l = (_k = (_j = api === null || api === void 0 ? void 0 : api.request) === null || _j === void 0 ? void 0 : _j.body) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : {});
|
|
6184
|
-
isSecure = (_p = (_o = (_m = api === null || api === void 0 ? void 0 : api.request) === null || _m === void 0 ? void 0 : _m.body) === null || _o === void 0 ? void 0 : _o.isSecure) !== null && _p !== void 0 ? _p : false;
|
|
6185
|
-
if (isSecure) {
|
|
6186
|
-
body = kwikidToolkit.encryptWithAES(body);
|
|
6187
|
-
}
|
|
6188
|
-
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST, Object.assign({ form_api_method: method, form_api_key: (_q = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _q !== void 0 ? _q : "", form_api_request_encrypted: isSecure }, (!isSecure && {
|
|
6189
|
-
form_api_request_body: body
|
|
6190
|
-
})));
|
|
6191
|
-
_7.label = 17;
|
|
6192
|
-
case 17:
|
|
6193
|
-
_7.trys.push([17, 23, , 24]);
|
|
6194
|
-
return [4 /*yield*/, fetch(url, {
|
|
6195
|
-
method: method,
|
|
6196
|
-
headers: Object.assign({}, headers),
|
|
6197
|
-
body: body
|
|
6198
|
-
})];
|
|
6199
|
-
case 18:
|
|
6200
|
-
response = _7.sent();
|
|
6201
|
-
isSecure_1 = (_r = api === null || api === void 0 ? void 0 : api.response) === null || _r === void 0 ? void 0 : _r.isSecure;
|
|
6202
|
-
if (!isSecure_1) return [3 /*break*/, 20];
|
|
6203
|
-
return [4 /*yield*/, response.text()];
|
|
6204
|
-
case 19:
|
|
6205
|
-
encryptedResponse = _7.sent();
|
|
6206
|
-
decryptedResponse = kwikidToolkit.decryptWithAES(encryptedResponse);
|
|
6207
|
-
apiCallResponse = JSON.parse(decryptedResponse);
|
|
6208
|
-
return [3 /*break*/, 22];
|
|
6209
|
-
case 20: return [4 /*yield*/, response.json()];
|
|
6210
|
-
case 21:
|
|
6211
|
-
apiCallResponse = _7.sent();
|
|
6212
|
-
_7.label = 22;
|
|
6213
|
-
case 22:
|
|
6214
|
-
apiCallResponseStatusCode = response.status;
|
|
6215
|
-
return [3 /*break*/, 24];
|
|
6216
|
-
case 23:
|
|
6217
|
-
err_2 = _7.sent();
|
|
6218
|
-
apiCallResponse = {};
|
|
6219
|
-
apiCallResponseStatusCode = 500;
|
|
6220
|
-
return [3 /*break*/, 24];
|
|
6221
|
-
case 24:
|
|
6222
6787
|
api.response = kwikidToolkit.setValueToObjectPath(api.response, "value", apiCallResponse);
|
|
6223
6788
|
api.response = kwikidToolkit.setValueToObjectPath(api.response, "status", apiCallResponseStatusCode);
|
|
6224
|
-
this.triggerLogs(ELogEventType$1.FORM__API_RESPONSE, Object.assign(Object.assign({ form_api_key: (
|
|
6789
|
+
this.triggerLogs(ELogEventType$1.FORM__API_RESPONSE, Object.assign(Object.assign({ form_api_key: (_y = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _y !== void 0 ? _y : "", form_api_response_encrypted: (_0 = (_z = api === null || api === void 0 ? void 0 : api.response) === null || _z === void 0 ? void 0 : _z.isSecure) !== null && _0 !== void 0 ? _0 : false }, (((_2 = !((_1 = api === null || api === void 0 ? void 0 : api.response) === null || _1 === void 0 ? void 0 : _1.isSecure)) !== null && _2 !== void 0 ? _2 : false) && {
|
|
6225
6790
|
form_api_response_body: apiCallResponse !== null && apiCallResponse !== void 0 ? apiCallResponse : {}
|
|
6226
6791
|
})), { form_api_status_code: apiCallResponseStatusCode }));
|
|
6227
|
-
return [3 /*break*/,
|
|
6228
|
-
case
|
|
6229
|
-
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST_INVALID, Object.assign({ form_api_key: (
|
|
6230
|
-
form_api_request_body: (
|
|
6792
|
+
return [3 /*break*/, 18];
|
|
6793
|
+
case 17:
|
|
6794
|
+
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST_INVALID, Object.assign({ form_api_key: (_3 = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _3 !== void 0 ? _3 : "", form_api_request_encrypted: (_6 = (_5 = (_4 = api === null || api === void 0 ? void 0 : api.request) === null || _4 === void 0 ? void 0 : _4.body) === null || _5 === void 0 ? void 0 : _5.isSecure) !== null && _6 !== void 0 ? _6 : false }, (((_9 = !((_8 = (_7 = api === null || api === void 0 ? void 0 : api.request) === null || _7 === void 0 ? void 0 : _7.body) === null || _8 === void 0 ? void 0 : _8.isSecure)) !== null && _9 !== void 0 ? _9 : false) && {
|
|
6795
|
+
form_api_request_body: (_12 = (_11 = (_10 = api === null || api === void 0 ? void 0 : api.request) === null || _10 === void 0 ? void 0 : _10.body) === null || _11 === void 0 ? void 0 : _11.value) !== null && _12 !== void 0 ? _12 : {}
|
|
6231
6796
|
})));
|
|
6232
|
-
|
|
6233
|
-
case
|
|
6797
|
+
_15.label = 18;
|
|
6798
|
+
case 18: return [2 /*return*/, api];
|
|
6234
6799
|
}
|
|
6235
6800
|
});
|
|
6236
6801
|
});
|
|
@@ -6267,8 +6832,8 @@
|
|
|
6267
6832
|
KwikIDFormViewComponent.prototype.handleOnClickApiCall = function (e) {
|
|
6268
6833
|
return __awaiter(this, void 0, void 0, function () {
|
|
6269
6834
|
var field, apis;
|
|
6270
|
-
return __generator(this, function (
|
|
6271
|
-
switch (
|
|
6835
|
+
return __generator(this, function (_15) {
|
|
6836
|
+
switch (_15.label) {
|
|
6272
6837
|
case 0:
|
|
6273
6838
|
field = getFormFieldByKey(this.formFields, e.key);
|
|
6274
6839
|
if (!(field.type === EFieldType.API)) return [3 /*break*/, 5];
|
|
@@ -6283,7 +6848,7 @@
|
|
|
6283
6848
|
if (!kwikidToolkit.checkObjectKeyExists(field.api, "request")) return [3 /*break*/, 2];
|
|
6284
6849
|
return [4 /*yield*/, this.handleFieldApiCall(field, field.api)];
|
|
6285
6850
|
case 1:
|
|
6286
|
-
|
|
6851
|
+
_15.sent();
|
|
6287
6852
|
return [3 /*break*/, 4];
|
|
6288
6853
|
case 2:
|
|
6289
6854
|
apis = new Apis({
|
|
@@ -6297,11 +6862,11 @@
|
|
|
6297
6862
|
}, this.takeAction.bind(this));
|
|
6298
6863
|
return [4 /*yield*/, apis.callNextApi(field.api.entrypoint)];
|
|
6299
6864
|
case 3:
|
|
6300
|
-
|
|
6301
|
-
|
|
6865
|
+
_15.sent();
|
|
6866
|
+
_15.label = 4;
|
|
6302
6867
|
case 4:
|
|
6303
6868
|
this.hideApiLoader();
|
|
6304
|
-
|
|
6869
|
+
_15.label = 5;
|
|
6305
6870
|
case 5: return [2 /*return*/];
|
|
6306
6871
|
}
|
|
6307
6872
|
});
|
|
@@ -6347,11 +6912,11 @@
|
|
|
6347
6912
|
};
|
|
6348
6913
|
KwikIDFormViewComponent.prototype.handleOnClickSaveForm = function (e) {
|
|
6349
6914
|
return __awaiter(this, void 0, void 0, function () {
|
|
6350
|
-
var controls, firstFieldWithError, controls_1, controls_1_1, control, field,
|
|
6351
|
-
var e_15,
|
|
6915
|
+
var controls, firstFieldWithError, controls_1, controls_1_1, control, field, _15, _16, field, validations, e_13_1, formData, _17, _18, field, extendedFormData, _19, _20, postTask, task, e_14_1;
|
|
6916
|
+
var e_15, _21, e_13, _22, e_16, _23, e_14, _24;
|
|
6352
6917
|
var _this = this;
|
|
6353
|
-
return __generator(this, function (
|
|
6354
|
-
switch (
|
|
6918
|
+
return __generator(this, function (_25) {
|
|
6919
|
+
switch (_25.label) {
|
|
6355
6920
|
case 0:
|
|
6356
6921
|
if (e) {
|
|
6357
6922
|
this.triggerLogs(ELogEventType$1.FORM__SAVE_BUTTON_CLICK, {});
|
|
@@ -6381,7 +6946,7 @@
|
|
|
6381
6946
|
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
6382
6947
|
finally {
|
|
6383
6948
|
try {
|
|
6384
|
-
if (controls_1_1 && !controls_1_1.done && (
|
|
6949
|
+
if (controls_1_1 && !controls_1_1.done && (_21 = controls_1.return)) _21.call(controls_1);
|
|
6385
6950
|
}
|
|
6386
6951
|
finally { if (e_15) throw e_15.error; }
|
|
6387
6952
|
}
|
|
@@ -6392,14 +6957,14 @@
|
|
|
6392
6957
|
}, 3000);
|
|
6393
6958
|
return [2 /*return*/];
|
|
6394
6959
|
}
|
|
6395
|
-
|
|
6960
|
+
_25.label = 1;
|
|
6396
6961
|
case 1:
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6962
|
+
_25.trys.push([1, 6, 7, 8]);
|
|
6963
|
+
_15 = __values(this.formFields), _16 = _15.next();
|
|
6964
|
+
_25.label = 2;
|
|
6400
6965
|
case 2:
|
|
6401
|
-
if (!!
|
|
6402
|
-
field =
|
|
6966
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
6967
|
+
field = _16.value;
|
|
6403
6968
|
if (!(field.isFormElement &&
|
|
6404
6969
|
!field.hidden &&
|
|
6405
6970
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
@@ -6414,7 +6979,7 @@
|
|
|
6414
6979
|
}, this.takeAction.bind(this));
|
|
6415
6980
|
return [4 /*yield*/, validations.validate(field.validation)];
|
|
6416
6981
|
case 3:
|
|
6417
|
-
|
|
6982
|
+
_25.sent();
|
|
6418
6983
|
if (!field.validation.is_valid) {
|
|
6419
6984
|
this.toggleErrorNotification(true);
|
|
6420
6985
|
setTimeout(function () {
|
|
@@ -6422,26 +6987,26 @@
|
|
|
6422
6987
|
}, 3000);
|
|
6423
6988
|
return [2 /*return*/];
|
|
6424
6989
|
}
|
|
6425
|
-
|
|
6990
|
+
_25.label = 4;
|
|
6426
6991
|
case 4:
|
|
6427
|
-
|
|
6992
|
+
_16 = _15.next();
|
|
6428
6993
|
return [3 /*break*/, 2];
|
|
6429
6994
|
case 5: return [3 /*break*/, 8];
|
|
6430
6995
|
case 6:
|
|
6431
|
-
e_13_1 =
|
|
6996
|
+
e_13_1 = _25.sent();
|
|
6432
6997
|
e_13 = { error: e_13_1 };
|
|
6433
6998
|
return [3 /*break*/, 8];
|
|
6434
6999
|
case 7:
|
|
6435
7000
|
try {
|
|
6436
|
-
if (
|
|
7001
|
+
if (_16 && !_16.done && (_22 = _15.return)) _22.call(_15);
|
|
6437
7002
|
}
|
|
6438
7003
|
finally { if (e_13) throw e_13.error; }
|
|
6439
7004
|
return [7 /*endfinally*/];
|
|
6440
7005
|
case 8:
|
|
6441
7006
|
formData = this.formGroup.getRawValue();
|
|
6442
7007
|
try {
|
|
6443
|
-
for (
|
|
6444
|
-
field =
|
|
7008
|
+
for (_17 = __values(this.formFields), _18 = _17.next(); !_18.done; _18 = _17.next()) {
|
|
7009
|
+
field = _18.value;
|
|
6445
7010
|
if (field.isFormElement) {
|
|
6446
7011
|
if (field.hidden) {
|
|
6447
7012
|
delete formData[field.key];
|
|
@@ -6455,22 +7020,22 @@
|
|
|
6455
7020
|
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
6456
7021
|
finally {
|
|
6457
7022
|
try {
|
|
6458
|
-
if (
|
|
7023
|
+
if (_18 && !_18.done && (_23 = _17.return)) _23.call(_17);
|
|
6459
7024
|
}
|
|
6460
7025
|
finally { if (e_16) throw e_16.error; }
|
|
6461
7026
|
}
|
|
6462
7027
|
extendedFormData = this.formFields.reduce(function (result, field, index) {
|
|
6463
|
-
var
|
|
7028
|
+
var _15;
|
|
6464
7029
|
if (field.isFormElement && !field.hidden) {
|
|
6465
|
-
var fieldData = (
|
|
6466
|
-
|
|
7030
|
+
var fieldData = (_15 = {},
|
|
7031
|
+
_15[field.key] = {
|
|
6467
7032
|
key: field.key,
|
|
6468
7033
|
label: field.label,
|
|
6469
7034
|
value: kwikidToolkit.isEmptyValue(formData[field.key]) ? "" : formData[field.key],
|
|
6470
7035
|
type: field.type,
|
|
6471
7036
|
index: index
|
|
6472
7037
|
},
|
|
6473
|
-
|
|
7038
|
+
_15);
|
|
6474
7039
|
result[field.key] = fieldData[field.key];
|
|
6475
7040
|
}
|
|
6476
7041
|
return result;
|
|
@@ -6483,14 +7048,14 @@
|
|
|
6483
7048
|
if (!(kwikidToolkit.checkObjectKeyExists(this.formConfig, "tasks") &&
|
|
6484
7049
|
kwikidToolkit.checkObjectKeyExists(this.formConfig.tasks, "post"))) return [3 /*break*/, 18];
|
|
6485
7050
|
this.triggerLogs(ELogEventType$1.FORM__TASK_POST, {});
|
|
6486
|
-
|
|
7051
|
+
_25.label = 9;
|
|
6487
7052
|
case 9:
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
7053
|
+
_25.trys.push([9, 15, 16, 17]);
|
|
7054
|
+
_19 = __values(this.formConfig.tasks.post), _20 = _19.next();
|
|
7055
|
+
_25.label = 10;
|
|
6491
7056
|
case 10:
|
|
6492
|
-
if (!!
|
|
6493
|
-
postTask =
|
|
7057
|
+
if (!!_20.done) return [3 /*break*/, 14];
|
|
7058
|
+
postTask = _20.value;
|
|
6494
7059
|
task = new Tasks(postTask, {
|
|
6495
7060
|
FORM_CONFIG: this.formConfig,
|
|
6496
7061
|
FORM_FIELDS: this.formFields,
|
|
@@ -6508,7 +7073,7 @@
|
|
|
6508
7073
|
}
|
|
6509
7074
|
return [4 /*yield*/, task.execute()];
|
|
6510
7075
|
case 11:
|
|
6511
|
-
|
|
7076
|
+
_25.sent();
|
|
6512
7077
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
6513
7078
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
6514
7079
|
var intervalId = setInterval(function () {
|
|
@@ -6520,22 +7085,22 @@
|
|
|
6520
7085
|
})];
|
|
6521
7086
|
case 12:
|
|
6522
7087
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
6523
|
-
|
|
7088
|
+
_25.sent();
|
|
6524
7089
|
if (this.stopTaskExecution) {
|
|
6525
7090
|
return [3 /*break*/, 14];
|
|
6526
7091
|
}
|
|
6527
|
-
|
|
7092
|
+
_25.label = 13;
|
|
6528
7093
|
case 13:
|
|
6529
|
-
|
|
7094
|
+
_20 = _19.next();
|
|
6530
7095
|
return [3 /*break*/, 10];
|
|
6531
7096
|
case 14: return [3 /*break*/, 17];
|
|
6532
7097
|
case 15:
|
|
6533
|
-
e_14_1 =
|
|
7098
|
+
e_14_1 = _25.sent();
|
|
6534
7099
|
e_14 = { error: e_14_1 };
|
|
6535
7100
|
return [3 /*break*/, 17];
|
|
6536
7101
|
case 16:
|
|
6537
7102
|
try {
|
|
6538
|
-
if (
|
|
7103
|
+
if (_20 && !_20.done && (_24 = _19.return)) _24.call(_19);
|
|
6539
7104
|
}
|
|
6540
7105
|
finally { if (e_14) throw e_14.error; }
|
|
6541
7106
|
return [7 /*endfinally*/];
|
|
@@ -6557,7 +7122,7 @@
|
|
|
6557
7122
|
data: kwikidToolkit.mergeObjects(formData, this.popupFormData, this.taskData),
|
|
6558
7123
|
extendedData: extendedFormData
|
|
6559
7124
|
});
|
|
6560
|
-
|
|
7125
|
+
_25.label = 19;
|
|
6561
7126
|
case 19: return [2 /*return*/];
|
|
6562
7127
|
}
|
|
6563
7128
|
});
|
|
@@ -6565,7 +7130,7 @@
|
|
|
6565
7130
|
};
|
|
6566
7131
|
KwikIDFormViewComponent.prototype.handleOnApiTimerStop = function (e) {
|
|
6567
7132
|
return __awaiter(this, void 0, void 0, function () {
|
|
6568
|
-
return __generator(this, function (
|
|
7133
|
+
return __generator(this, function (_15) {
|
|
6569
7134
|
this.fieldApiTimerMessageHide(e.key);
|
|
6570
7135
|
return [2 /*return*/];
|
|
6571
7136
|
});
|
|
@@ -6574,6 +7139,9 @@
|
|
|
6574
7139
|
KwikIDFormViewComponent.prototype.toggleErrorNotification = function (show) {
|
|
6575
7140
|
this.showErrorNotification = show;
|
|
6576
7141
|
};
|
|
7142
|
+
KwikIDFormViewComponent.prototype.togglePermissionErrorNotification = function (show) {
|
|
7143
|
+
this.showPermissionErrorNotification = show;
|
|
7144
|
+
};
|
|
6577
7145
|
// Component Helpers
|
|
6578
7146
|
KwikIDFormViewComponent.prototype.fieldHide = function (fieldKey) {
|
|
6579
7147
|
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
@@ -6588,17 +7156,17 @@
|
|
|
6588
7156
|
});
|
|
6589
7157
|
};
|
|
6590
7158
|
KwikIDFormViewComponent.prototype.fieldGroupHide = function (fieldGroup) {
|
|
6591
|
-
var e_17,
|
|
7159
|
+
var e_17, _15;
|
|
6592
7160
|
try {
|
|
6593
|
-
for (var
|
|
6594
|
-
var fieldKey =
|
|
7161
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
7162
|
+
var fieldKey = _17.value;
|
|
6595
7163
|
this.fieldHide(fieldKey);
|
|
6596
7164
|
}
|
|
6597
7165
|
}
|
|
6598
7166
|
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
6599
7167
|
finally {
|
|
6600
7168
|
try {
|
|
6601
|
-
if (
|
|
7169
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6602
7170
|
}
|
|
6603
7171
|
finally { if (e_17) throw e_17.error; }
|
|
6604
7172
|
}
|
|
@@ -6616,17 +7184,17 @@
|
|
|
6616
7184
|
});
|
|
6617
7185
|
};
|
|
6618
7186
|
KwikIDFormViewComponent.prototype.fieldGroupShow = function (fieldGroup) {
|
|
6619
|
-
var e_18,
|
|
7187
|
+
var e_18, _15;
|
|
6620
7188
|
try {
|
|
6621
|
-
for (var
|
|
6622
|
-
var fieldKey =
|
|
7189
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
7190
|
+
var fieldKey = _17.value;
|
|
6623
7191
|
this.fieldShow(fieldKey);
|
|
6624
7192
|
}
|
|
6625
7193
|
}
|
|
6626
7194
|
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
6627
7195
|
finally {
|
|
6628
7196
|
try {
|
|
6629
|
-
if (
|
|
7197
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6630
7198
|
}
|
|
6631
7199
|
finally { if (e_18) throw e_18.error; }
|
|
6632
7200
|
}
|
|
@@ -6654,17 +7222,17 @@
|
|
|
6654
7222
|
});
|
|
6655
7223
|
};
|
|
6656
7224
|
KwikIDFormViewComponent.prototype.fieldGroupDisable = function (fieldGroup) {
|
|
6657
|
-
var e_19,
|
|
7225
|
+
var e_19, _15;
|
|
6658
7226
|
try {
|
|
6659
|
-
for (var
|
|
6660
|
-
var fieldKey =
|
|
7227
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
7228
|
+
var fieldKey = _17.value;
|
|
6661
7229
|
this.fieldDisable(fieldKey);
|
|
6662
7230
|
}
|
|
6663
7231
|
}
|
|
6664
7232
|
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
6665
7233
|
finally {
|
|
6666
7234
|
try {
|
|
6667
|
-
if (
|
|
7235
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6668
7236
|
}
|
|
6669
7237
|
finally { if (e_19) throw e_19.error; }
|
|
6670
7238
|
}
|
|
@@ -6692,23 +7260,23 @@
|
|
|
6692
7260
|
});
|
|
6693
7261
|
};
|
|
6694
7262
|
KwikIDFormViewComponent.prototype.fieldGroupEnable = function (fieldGroup) {
|
|
6695
|
-
var e_20,
|
|
7263
|
+
var e_20, _15;
|
|
6696
7264
|
try {
|
|
6697
|
-
for (var
|
|
6698
|
-
var fieldKey =
|
|
7265
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
7266
|
+
var fieldKey = _17.value;
|
|
6699
7267
|
this.fieldEnable(fieldKey);
|
|
6700
7268
|
}
|
|
6701
7269
|
}
|
|
6702
7270
|
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
6703
7271
|
finally {
|
|
6704
7272
|
try {
|
|
6705
|
-
if (
|
|
7273
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6706
7274
|
}
|
|
6707
7275
|
finally { if (e_20) throw e_20.error; }
|
|
6708
7276
|
}
|
|
6709
7277
|
};
|
|
6710
7278
|
KwikIDFormViewComponent.prototype.fieldReset = function (fieldKey) {
|
|
6711
|
-
var
|
|
7279
|
+
var _15;
|
|
6712
7280
|
// Find the field and its index in the formFields array
|
|
6713
7281
|
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
6714
7282
|
var fieldIndex = getFormFieldIndexByKey(this.formFields, fieldKey);
|
|
@@ -6719,9 +7287,9 @@
|
|
|
6719
7287
|
emitEvent: false,
|
|
6720
7288
|
onlySelf: true
|
|
6721
7289
|
});
|
|
6722
|
-
this.formGroup.patchValue((
|
|
6723
|
-
|
|
6724
|
-
|
|
7290
|
+
this.formGroup.patchValue((_15 = {},
|
|
7291
|
+
_15[field.key] = resetValue,
|
|
7292
|
+
_15), { emitEvent: false });
|
|
6725
7293
|
this.formGroup.controls[field.key].updateValueAndValidity({
|
|
6726
7294
|
emitEvent: true
|
|
6727
7295
|
});
|
|
@@ -6745,6 +7313,11 @@
|
|
|
6745
7313
|
fieldApiCall.api.status.value = EApiStatusType.DEFAULT;
|
|
6746
7314
|
this.formFields[fieldIndex] = fieldApiCall;
|
|
6747
7315
|
break;
|
|
7316
|
+
case EFieldType.LIVE_LOCATION:
|
|
7317
|
+
var fieldLiveLocation = field;
|
|
7318
|
+
fieldLiveLocation.api.status.value = EApiStatusType.DEFAULT;
|
|
7319
|
+
this.formFields[fieldIndex] = fieldLiveLocation;
|
|
7320
|
+
break;
|
|
6748
7321
|
default:
|
|
6749
7322
|
field.focus = false;
|
|
6750
7323
|
field.invalid = false;
|
|
@@ -6756,6 +7329,48 @@
|
|
|
6756
7329
|
field_type: field.type
|
|
6757
7330
|
});
|
|
6758
7331
|
};
|
|
7332
|
+
KwikIDFormViewComponent.prototype.fieldHideApiLoader = function (fieldKey) {
|
|
7333
|
+
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
7334
|
+
var fieldIndex = this.formFields.findIndex(function (_) {
|
|
7335
|
+
return field.key === _.key;
|
|
7336
|
+
});
|
|
7337
|
+
// Reset the value of the field in the formFields array
|
|
7338
|
+
switch (field.type) {
|
|
7339
|
+
case EFieldType.API:
|
|
7340
|
+
var fieldApiCall = field;
|
|
7341
|
+
fieldApiCall.disabled = false;
|
|
7342
|
+
this.formFields[fieldIndex] = fieldApiCall;
|
|
7343
|
+
break;
|
|
7344
|
+
case EFieldType.LIVE_LOCATION:
|
|
7345
|
+
var fieldLiveLocation = field;
|
|
7346
|
+
fieldLiveLocation.disabled = false;
|
|
7347
|
+
this.formFields[fieldIndex] = fieldLiveLocation;
|
|
7348
|
+
break;
|
|
7349
|
+
default:
|
|
7350
|
+
break;
|
|
7351
|
+
}
|
|
7352
|
+
};
|
|
7353
|
+
KwikIDFormViewComponent.prototype.fieldShowApiLoader = function (fieldKey) {
|
|
7354
|
+
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
7355
|
+
var fieldIndex = this.formFields.findIndex(function (_) {
|
|
7356
|
+
return field.key === _.key;
|
|
7357
|
+
});
|
|
7358
|
+
// Reset the value of the field in the formFields array
|
|
7359
|
+
switch (field.type) {
|
|
7360
|
+
case EFieldType.API:
|
|
7361
|
+
var fieldApiCall = field;
|
|
7362
|
+
fieldApiCall.disabled = true;
|
|
7363
|
+
this.formFields[fieldIndex] = fieldApiCall;
|
|
7364
|
+
break;
|
|
7365
|
+
case EFieldType.LIVE_LOCATION:
|
|
7366
|
+
var fieldLiveLocation = field;
|
|
7367
|
+
fieldLiveLocation.disabled = true;
|
|
7368
|
+
this.formFields[fieldIndex] = fieldLiveLocation;
|
|
7369
|
+
break;
|
|
7370
|
+
default:
|
|
7371
|
+
break;
|
|
7372
|
+
}
|
|
7373
|
+
};
|
|
6759
7374
|
KwikIDFormViewComponent.prototype.setHtml = function (fieldKey, message) {
|
|
6760
7375
|
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
6761
7376
|
var fieldIndex = this.formFields.findIndex(function (_) {
|
|
@@ -6821,7 +7436,7 @@
|
|
|
6821
7436
|
KwikIDFormViewComponent.prototype.fieldApiTimerMessageShow = function (fieldKey, timer) {
|
|
6822
7437
|
return __awaiter(this, void 0, void 0, function () {
|
|
6823
7438
|
var field, fieldIndex;
|
|
6824
|
-
return __generator(this, function (
|
|
7439
|
+
return __generator(this, function (_15) {
|
|
6825
7440
|
field = getFormFieldByKey(this.formFields, fieldKey);
|
|
6826
7441
|
fieldIndex = this.formFields.findIndex(function (_) {
|
|
6827
7442
|
return field.key === _.key;
|
|
@@ -6840,9 +7455,9 @@
|
|
|
6840
7455
|
};
|
|
6841
7456
|
KwikIDFormViewComponent.prototype.fieldApiTimerMessageHide = function (fieldKey) {
|
|
6842
7457
|
return __awaiter(this, void 0, void 0, function () {
|
|
6843
|
-
var field, fieldIndex,
|
|
7458
|
+
var field, fieldIndex, validations_9;
|
|
6844
7459
|
var _this = this;
|
|
6845
|
-
return __generator(this, function (
|
|
7460
|
+
return __generator(this, function (_15) {
|
|
6846
7461
|
field = getFormFieldByKey(this.formFields, fieldKey);
|
|
6847
7462
|
fieldIndex = this.formFields.findIndex(function (_) {
|
|
6848
7463
|
return field.key === _.key;
|
|
@@ -6851,7 +7466,7 @@
|
|
|
6851
7466
|
if (field.isFormElement &&
|
|
6852
7467
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
6853
7468
|
field.validation.triggers.includes("ON_API_TIMER_STOP")) {
|
|
6854
|
-
|
|
7469
|
+
validations_9 = new kwikidToolkit.Validation({
|
|
6855
7470
|
FIELD_CONFIG: field,
|
|
6856
7471
|
FORM_FIELDS: this.formFields,
|
|
6857
7472
|
FORM_DATA: this.formData,
|
|
@@ -6860,11 +7475,11 @@
|
|
|
6860
7475
|
ALL_FORMS_DATA: this.allFormsData
|
|
6861
7476
|
}, this.takeAction.bind(this));
|
|
6862
7477
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6863
|
-
return __generator(this, function (
|
|
6864
|
-
switch (
|
|
6865
|
-
case 0: return [4 /*yield*/,
|
|
7478
|
+
return __generator(this, function (_15) {
|
|
7479
|
+
switch (_15.label) {
|
|
7480
|
+
case 0: return [4 /*yield*/, validations_9.validate(field.validation)];
|
|
6866
7481
|
case 1:
|
|
6867
|
-
|
|
7482
|
+
_15.sent();
|
|
6868
7483
|
return [2 /*return*/];
|
|
6869
7484
|
}
|
|
6870
7485
|
});
|
|
@@ -6889,13 +7504,13 @@
|
|
|
6889
7504
|
KwikIDFormViewComponent.prototype.setValue = function (action, object) {
|
|
6890
7505
|
return __awaiter(this, void 0, void 0, function () {
|
|
6891
7506
|
var source, sourceValue;
|
|
6892
|
-
return __generator(this, function (
|
|
6893
|
-
switch (
|
|
7507
|
+
return __generator(this, function (_15) {
|
|
7508
|
+
switch (_15.label) {
|
|
6894
7509
|
case 0:
|
|
6895
7510
|
source = new kwikidToolkit.Source(object);
|
|
6896
7511
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
6897
7512
|
case 1:
|
|
6898
|
-
sourceValue =
|
|
7513
|
+
sourceValue = _15.sent();
|
|
6899
7514
|
source.setValueToSource(action.props.value.destination, sourceValue);
|
|
6900
7515
|
object.FIELD_CONFIG = source.object.FIELD_CONFIG;
|
|
6901
7516
|
this.formData = source.object.FORM_DATA;
|
|
@@ -6910,13 +7525,13 @@
|
|
|
6910
7525
|
KwikIDFormViewComponent.prototype.setFieldDefaultValue = function (action, object) {
|
|
6911
7526
|
return __awaiter(this, void 0, void 0, function () {
|
|
6912
7527
|
var source, sourceValue;
|
|
6913
|
-
return __generator(this, function (
|
|
6914
|
-
switch (
|
|
7528
|
+
return __generator(this, function (_15) {
|
|
7529
|
+
switch (_15.label) {
|
|
6915
7530
|
case 0:
|
|
6916
7531
|
source = new kwikidToolkit.Source(object);
|
|
6917
7532
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
6918
7533
|
case 1:
|
|
6919
|
-
sourceValue =
|
|
7534
|
+
sourceValue = _15.sent();
|
|
6920
7535
|
source.setValueToSource({
|
|
6921
7536
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
6922
7537
|
props: {
|
|
@@ -6948,7 +7563,7 @@
|
|
|
6948
7563
|
KwikIDFormViewComponent.prototype.setApiStatus = function (action, object) {
|
|
6949
7564
|
return __awaiter(this, void 0, void 0, function () {
|
|
6950
7565
|
var source, sourceValue;
|
|
6951
|
-
return __generator(this, function (
|
|
7566
|
+
return __generator(this, function (_15) {
|
|
6952
7567
|
source = new kwikidToolkit.Source(object);
|
|
6953
7568
|
sourceValue = action.props.status;
|
|
6954
7569
|
source.setValueToSource({
|
|
@@ -6968,13 +7583,13 @@
|
|
|
6968
7583
|
KwikIDFormViewComponent.prototype.setApiHeaderValue = function (action, object) {
|
|
6969
7584
|
return __awaiter(this, void 0, void 0, function () {
|
|
6970
7585
|
var source, sourceValue;
|
|
6971
|
-
return __generator(this, function (
|
|
6972
|
-
switch (
|
|
7586
|
+
return __generator(this, function (_15) {
|
|
7587
|
+
switch (_15.label) {
|
|
6973
7588
|
case 0:
|
|
6974
7589
|
source = new kwikidToolkit.Source(object);
|
|
6975
7590
|
return [4 /*yield*/, source.getValueFromSource(action.props.source)];
|
|
6976
7591
|
case 1:
|
|
6977
|
-
sourceValue =
|
|
7592
|
+
sourceValue = _15.sent();
|
|
6978
7593
|
source.setValueToSource({
|
|
6979
7594
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
6980
7595
|
props: {
|
|
@@ -6993,7 +7608,7 @@
|
|
|
6993
7608
|
KwikIDFormViewComponent.prototype.setApiHeaderValidity = function (action, object) {
|
|
6994
7609
|
return __awaiter(this, void 0, void 0, function () {
|
|
6995
7610
|
var source, sourceValue;
|
|
6996
|
-
return __generator(this, function (
|
|
7611
|
+
return __generator(this, function (_15) {
|
|
6997
7612
|
source = new kwikidToolkit.Source(object);
|
|
6998
7613
|
sourceValue = action.props.valid;
|
|
6999
7614
|
source.setValueToSource({
|
|
@@ -7013,13 +7628,13 @@
|
|
|
7013
7628
|
KwikIDFormViewComponent.prototype.setApiBodyValue = function (action, object) {
|
|
7014
7629
|
return __awaiter(this, void 0, void 0, function () {
|
|
7015
7630
|
var source, sourceValue;
|
|
7016
|
-
return __generator(this, function (
|
|
7017
|
-
switch (
|
|
7631
|
+
return __generator(this, function (_15) {
|
|
7632
|
+
switch (_15.label) {
|
|
7018
7633
|
case 0:
|
|
7019
7634
|
source = new kwikidToolkit.Source(object);
|
|
7020
7635
|
return [4 /*yield*/, source.getValueFromSource(action.props.source)];
|
|
7021
7636
|
case 1:
|
|
7022
|
-
sourceValue =
|
|
7637
|
+
sourceValue = _15.sent();
|
|
7023
7638
|
source.setValueToSource({
|
|
7024
7639
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
7025
7640
|
props: {
|
|
@@ -7038,7 +7653,7 @@
|
|
|
7038
7653
|
KwikIDFormViewComponent.prototype.setApiBodyValidity = function (action, object) {
|
|
7039
7654
|
return __awaiter(this, void 0, void 0, function () {
|
|
7040
7655
|
var source, sourceValue;
|
|
7041
|
-
return __generator(this, function (
|
|
7656
|
+
return __generator(this, function (_15) {
|
|
7042
7657
|
source = new kwikidToolkit.Source(object);
|
|
7043
7658
|
sourceValue = action.props.valid;
|
|
7044
7659
|
source.setValueToSource({
|
|
@@ -7058,7 +7673,7 @@
|
|
|
7058
7673
|
KwikIDFormViewComponent.prototype.setFieldValidity = function (action, object) {
|
|
7059
7674
|
return __awaiter(this, void 0, void 0, function () {
|
|
7060
7675
|
var source, sourceValue;
|
|
7061
|
-
return __generator(this, function (
|
|
7676
|
+
return __generator(this, function (_15) {
|
|
7062
7677
|
source = new kwikidToolkit.Source(object);
|
|
7063
7678
|
sourceValue = action.props.valid;
|
|
7064
7679
|
source.setValueToSource({
|
|
@@ -7078,18 +7693,18 @@
|
|
|
7078
7693
|
KwikIDFormViewComponent.prototype.setDropdownOptions = function (action, object) {
|
|
7079
7694
|
return __awaiter(this, void 0, void 0, function () {
|
|
7080
7695
|
var source, sourceValue, appendToPath, appendToPathStr, optionsPath;
|
|
7081
|
-
return __generator(this, function (
|
|
7082
|
-
switch (
|
|
7696
|
+
return __generator(this, function (_15) {
|
|
7697
|
+
switch (_15.label) {
|
|
7083
7698
|
case 0:
|
|
7084
7699
|
source = new kwikidToolkit.Source(object);
|
|
7085
7700
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
7086
7701
|
case 1:
|
|
7087
|
-
sourceValue =
|
|
7702
|
+
sourceValue = _15.sent();
|
|
7088
7703
|
if (!kwikidToolkit.checkObjectKeyExists(action.props, "options")) return [3 /*break*/, 4];
|
|
7089
7704
|
if (!kwikidToolkit.checkObjectKeyExists(action.props.options, "appendToPath")) return [3 /*break*/, 3];
|
|
7090
7705
|
return [4 /*yield*/, source.getValueFromSource(action.props.options.appendToPath.source)];
|
|
7091
7706
|
case 2:
|
|
7092
|
-
appendToPath =
|
|
7707
|
+
appendToPath = _15.sent();
|
|
7093
7708
|
if (kwikidToolkit.isNotEmptyValue(appendToPath)) {
|
|
7094
7709
|
appendToPathStr = kwikidToolkit.replaceString(appendToPath.match("" + action.props.options.appendToPath.filterSourceValue)[0], "[^a-zA-Z0-9_]", "_");
|
|
7095
7710
|
optionsPath = "" + action.props.options.path + appendToPathStr;
|
|
@@ -7098,7 +7713,7 @@
|
|
|
7098
7713
|
return [3 /*break*/, 4];
|
|
7099
7714
|
case 3:
|
|
7100
7715
|
sourceValue = kwikidToolkit.getObjectValueFromPath(sourceValue, action.props.options.path);
|
|
7101
|
-
|
|
7716
|
+
_15.label = 4;
|
|
7102
7717
|
case 4:
|
|
7103
7718
|
source.setValueToSource(action.props.value.destination, sourceValue);
|
|
7104
7719
|
object.FIELD_CONFIG = source.object.FIELD_CONFIG;
|
|
@@ -7113,19 +7728,19 @@
|
|
|
7113
7728
|
KwikIDFormViewComponent.prototype.apiCall = function (action, object) {
|
|
7114
7729
|
return __awaiter(this, void 0, void 0, function () {
|
|
7115
7730
|
var apiConfig, response;
|
|
7116
|
-
var
|
|
7117
|
-
return __generator(this, function (
|
|
7118
|
-
switch (
|
|
7731
|
+
var _15;
|
|
7732
|
+
return __generator(this, function (_16) {
|
|
7733
|
+
switch (_16.label) {
|
|
7119
7734
|
case 0:
|
|
7120
7735
|
apiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
7121
7736
|
return [4 /*yield*/, this.handleApiCall(apiConfig)];
|
|
7122
7737
|
case 1:
|
|
7123
|
-
response =
|
|
7738
|
+
response = _16.sent();
|
|
7124
7739
|
apiConfig = response.api;
|
|
7125
7740
|
this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, apiConfig);
|
|
7126
|
-
this.formData = kwikidToolkit.mergeObjects(this.formData, (
|
|
7127
|
-
|
|
7128
|
-
|
|
7741
|
+
this.formData = kwikidToolkit.mergeObjects(this.formData, (_15 = {},
|
|
7742
|
+
_15[action.props.formApiKey] = apiConfig.response.value,
|
|
7743
|
+
_15));
|
|
7129
7744
|
return [2 /*return*/, apiConfig];
|
|
7130
7745
|
}
|
|
7131
7746
|
});
|
|
@@ -7134,13 +7749,13 @@
|
|
|
7134
7749
|
KwikIDFormViewComponent.prototype.fieldApiCall = function (action, object) {
|
|
7135
7750
|
return __awaiter(this, void 0, void 0, function () {
|
|
7136
7751
|
var apiConfig;
|
|
7137
|
-
return __generator(this, function (
|
|
7138
|
-
switch (
|
|
7752
|
+
return __generator(this, function (_15) {
|
|
7753
|
+
switch (_15.label) {
|
|
7139
7754
|
case 0:
|
|
7140
7755
|
this.showApiLoader();
|
|
7141
7756
|
return [4 /*yield*/, this.apiCall(action, object)];
|
|
7142
7757
|
case 1:
|
|
7143
|
-
apiConfig =
|
|
7758
|
+
apiConfig = _15.sent();
|
|
7144
7759
|
this.hideApiLoader();
|
|
7145
7760
|
return [2 /*return*/];
|
|
7146
7761
|
}
|
|
@@ -7150,8 +7765,8 @@
|
|
|
7150
7765
|
KwikIDFormViewComponent.prototype.fieldMultipleApiCalls = function (action, object) {
|
|
7151
7766
|
return __awaiter(this, void 0, void 0, function () {
|
|
7152
7767
|
var entrypointApiKey, field, endpoints, nextApiIndex, apiConfig, response;
|
|
7153
|
-
return __generator(this, function (
|
|
7154
|
-
switch (
|
|
7768
|
+
return __generator(this, function (_15) {
|
|
7769
|
+
switch (_15.label) {
|
|
7155
7770
|
case 0:
|
|
7156
7771
|
entrypointApiKey = action.props.apiKey;
|
|
7157
7772
|
field = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
@@ -7160,7 +7775,7 @@
|
|
|
7160
7775
|
apiConfig = endpoints[nextApiIndex];
|
|
7161
7776
|
return [4 /*yield*/, this.handleFieldApiCall(field, apiConfig)];
|
|
7162
7777
|
case 1:
|
|
7163
|
-
response =
|
|
7778
|
+
response = _15.sent();
|
|
7164
7779
|
field = response.field;
|
|
7165
7780
|
field.api.endpoints[nextApiIndex] = response.api;
|
|
7166
7781
|
return [2 /*return*/];
|
|
@@ -7171,15 +7786,15 @@
|
|
|
7171
7786
|
KwikIDFormViewComponent.prototype.fieldMultipleApiCallsEnd = function (action, object) {
|
|
7172
7787
|
return __awaiter(this, void 0, void 0, function () {
|
|
7173
7788
|
var field, multipleApiCallResponses;
|
|
7174
|
-
var
|
|
7175
|
-
return __generator(this, function (
|
|
7789
|
+
var _15;
|
|
7790
|
+
return __generator(this, function (_16) {
|
|
7176
7791
|
field = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
7177
7792
|
multipleApiCallResponses = {};
|
|
7178
7793
|
field.api.endpoints.map(function (api) {
|
|
7179
7794
|
if (kwikidToolkit.checkObjectKeyExists(api.response, "value"))
|
|
7180
7795
|
multipleApiCallResponses = kwikidToolkit.setValueToObjectPath(multipleApiCallResponses, "" + api.apiKey, api.response.value);
|
|
7181
7796
|
});
|
|
7182
|
-
this.formData = Object.assign(Object.assign({}, this.formData), (
|
|
7797
|
+
this.formData = Object.assign(Object.assign({}, this.formData), (_15 = {}, _15[field.key] = multipleApiCallResponses, _15));
|
|
7183
7798
|
this.patchFormGroup(this.formData);
|
|
7184
7799
|
return [2 /*return*/];
|
|
7185
7800
|
});
|
|
@@ -7188,17 +7803,17 @@
|
|
|
7188
7803
|
KwikIDFormViewComponent.prototype.taskApiCall = function (action, object) {
|
|
7189
7804
|
return __awaiter(this, void 0, void 0, function () {
|
|
7190
7805
|
var apiConfig;
|
|
7191
|
-
var
|
|
7192
|
-
return __generator(this, function (
|
|
7193
|
-
switch (
|
|
7806
|
+
var _15;
|
|
7807
|
+
return __generator(this, function (_16) {
|
|
7808
|
+
switch (_16.label) {
|
|
7194
7809
|
case 0:
|
|
7195
7810
|
this.showApiLoader();
|
|
7196
7811
|
return [4 /*yield*/, this.apiCall(action, object)];
|
|
7197
7812
|
case 1:
|
|
7198
|
-
apiConfig =
|
|
7199
|
-
this.taskData = kwikidToolkit.mergeObjects(this.taskData, (
|
|
7200
|
-
|
|
7201
|
-
|
|
7813
|
+
apiConfig = _16.sent();
|
|
7814
|
+
this.taskData = kwikidToolkit.mergeObjects(this.taskData, (_15 = {},
|
|
7815
|
+
_15[action.props.formApiKey] = apiConfig.response.value,
|
|
7816
|
+
_15));
|
|
7202
7817
|
this.waitingForChanges = false;
|
|
7203
7818
|
this.hideApiLoader();
|
|
7204
7819
|
return [2 /*return*/];
|
|
@@ -7209,8 +7824,8 @@
|
|
|
7209
7824
|
KwikIDFormViewComponent.prototype.taskMultipleApiCalls = function (action, object) {
|
|
7210
7825
|
return __awaiter(this, void 0, void 0, function () {
|
|
7211
7826
|
var multipleApiConfig, entrypointApiKey_1, endpoints, nextApiIndex, apiConfig, response, apis;
|
|
7212
|
-
return __generator(this, function (
|
|
7213
|
-
switch (
|
|
7827
|
+
return __generator(this, function (_15) {
|
|
7828
|
+
switch (_15.label) {
|
|
7214
7829
|
case 0:
|
|
7215
7830
|
this.showApiLoader();
|
|
7216
7831
|
multipleApiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
@@ -7221,7 +7836,7 @@
|
|
|
7221
7836
|
apiConfig = endpoints[nextApiIndex];
|
|
7222
7837
|
return [4 /*yield*/, this.handleApiCall(apiConfig)];
|
|
7223
7838
|
case 1:
|
|
7224
|
-
response =
|
|
7839
|
+
response = _15.sent();
|
|
7225
7840
|
multipleApiConfig.endpoints[nextApiIndex] = response.api;
|
|
7226
7841
|
this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, multipleApiConfig);
|
|
7227
7842
|
this.hideApiLoader();
|
|
@@ -7238,8 +7853,8 @@
|
|
|
7238
7853
|
}, this.takeAction.bind(this));
|
|
7239
7854
|
return [4 /*yield*/, apis.callNextApi(multipleApiConfig.entrypoint)];
|
|
7240
7855
|
case 3:
|
|
7241
|
-
|
|
7242
|
-
|
|
7856
|
+
_15.sent();
|
|
7857
|
+
_15.label = 4;
|
|
7243
7858
|
case 4: return [2 /*return*/];
|
|
7244
7859
|
}
|
|
7245
7860
|
});
|
|
@@ -7248,15 +7863,15 @@
|
|
|
7248
7863
|
KwikIDFormViewComponent.prototype.taskMultipleApiCallsEnd = function (action, object) {
|
|
7249
7864
|
return __awaiter(this, void 0, void 0, function () {
|
|
7250
7865
|
var multipleApiConfig, multipleApiCallResponses;
|
|
7251
|
-
var
|
|
7252
|
-
return __generator(this, function (
|
|
7866
|
+
var _15;
|
|
7867
|
+
return __generator(this, function (_16) {
|
|
7253
7868
|
multipleApiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
7254
7869
|
multipleApiCallResponses = {};
|
|
7255
7870
|
multipleApiConfig.endpoints.map(function (api) {
|
|
7256
7871
|
if (kwikidToolkit.checkObjectKeyExists(api.response, "value"))
|
|
7257
7872
|
multipleApiCallResponses = kwikidToolkit.setValueToObjectPath(multipleApiCallResponses, "" + api.apiKey, api.response.value);
|
|
7258
7873
|
});
|
|
7259
|
-
this.taskData = Object.assign(Object.assign({}, this.taskData), (
|
|
7874
|
+
this.taskData = Object.assign(Object.assign({}, this.taskData), (_15 = {}, _15[action.props.formApiKey] = multipleApiCallResponses, _15));
|
|
7260
7875
|
this.waitingForChanges = false;
|
|
7261
7876
|
this.hideApiLoader();
|
|
7262
7877
|
return [2 /*return*/];
|
|
@@ -7450,12 +8065,12 @@
|
|
|
7450
8065
|
this.alertService
|
|
7451
8066
|
.open("" + message, {
|
|
7452
8067
|
status: type === "error"
|
|
7453
|
-
?
|
|
8068
|
+
? i5.TuiNotification.Error
|
|
7454
8069
|
: type === "warning"
|
|
7455
|
-
?
|
|
8070
|
+
? i5.TuiNotification.Warning
|
|
7456
8071
|
: type === "success"
|
|
7457
|
-
?
|
|
7458
|
-
:
|
|
8072
|
+
? i5.TuiNotification.Success
|
|
8073
|
+
: i5.TuiNotification.Info
|
|
7459
8074
|
})
|
|
7460
8075
|
.subscribe({
|
|
7461
8076
|
error: function () {
|
|
@@ -7468,7 +8083,7 @@
|
|
|
7468
8083
|
};
|
|
7469
8084
|
KwikIDFormViewComponent.prototype.takeActionOnFieldGroup = function (action, object) {
|
|
7470
8085
|
return __awaiter(this, void 0, void 0, function () {
|
|
7471
|
-
return __generator(this, function (
|
|
8086
|
+
return __generator(this, function (_15) {
|
|
7472
8087
|
/**
|
|
7473
8088
|
* This below code is currently commented because not all actions need to be logged at backend.
|
|
7474
8089
|
* Will look later into where only specific actions needs to be logged or all.
|
|
@@ -7493,6 +8108,12 @@
|
|
|
7493
8108
|
case EActionKey.FIELD_GROUP_DISABLE:
|
|
7494
8109
|
this.fieldGroupDisable(action.props.groupKey);
|
|
7495
8110
|
break;
|
|
8111
|
+
case EActionKey.FIELD_GROUP_SHOW_API_LOADER:
|
|
8112
|
+
this.fieldGroupDisable(action.props.groupKey);
|
|
8113
|
+
break;
|
|
8114
|
+
case EActionKey.FIELD_GROUP_HIDE_API_LOADER:
|
|
8115
|
+
this.fieldGroupDisable(action.props.groupKey);
|
|
8116
|
+
break;
|
|
7496
8117
|
default:
|
|
7497
8118
|
break;
|
|
7498
8119
|
}
|
|
@@ -7503,76 +8124,84 @@
|
|
|
7503
8124
|
KwikIDFormViewComponent.prototype.takeAction = function (action, object) {
|
|
7504
8125
|
var _a, _b, _c, _d, _e, _f;
|
|
7505
8126
|
return __awaiter(this, void 0, void 0, function () {
|
|
7506
|
-
var
|
|
7507
|
-
return __generator(this, function (
|
|
7508
|
-
switch (
|
|
8127
|
+
var _15, fieldErrorShow_Source, fieldErrorShowSourceValue, fieldErrorHide_Source, fieldErrorHideSourceValue, redirectToUrl_Source, redirectToUrlSourceValue, previewErrorShow_Source, previewErrorShowSourceValue, fieldHtmlMessage_Source, fieldHtmlMessageSourceValue;
|
|
8128
|
+
return __generator(this, function (_16) {
|
|
8129
|
+
switch (_16.label) {
|
|
7509
8130
|
case 0:
|
|
7510
|
-
|
|
7511
|
-
switch (
|
|
8131
|
+
_15 = action.key;
|
|
8132
|
+
switch (_15) {
|
|
7512
8133
|
case EActionKey.FIELD_HIDE: return [3 /*break*/, 1];
|
|
7513
8134
|
case EActionKey.FIELD_SHOW: return [3 /*break*/, 2];
|
|
7514
8135
|
case EActionKey.FIELD_DISABLE: return [3 /*break*/, 3];
|
|
7515
8136
|
case EActionKey.FIELD_ENABLE: return [3 /*break*/, 4];
|
|
7516
|
-
case EActionKey.
|
|
7517
|
-
case EActionKey.
|
|
7518
|
-
case EActionKey.
|
|
7519
|
-
case EActionKey.
|
|
7520
|
-
case EActionKey.
|
|
7521
|
-
case EActionKey.
|
|
7522
|
-
case EActionKey.
|
|
7523
|
-
case EActionKey.
|
|
7524
|
-
case EActionKey.
|
|
7525
|
-
case EActionKey.
|
|
7526
|
-
case EActionKey.
|
|
7527
|
-
case EActionKey.
|
|
7528
|
-
case EActionKey.
|
|
7529
|
-
case EActionKey.
|
|
7530
|
-
case EActionKey.
|
|
7531
|
-
case EActionKey.
|
|
7532
|
-
case EActionKey.
|
|
7533
|
-
case EActionKey.
|
|
7534
|
-
case EActionKey.
|
|
7535
|
-
case EActionKey.
|
|
7536
|
-
case EActionKey.
|
|
7537
|
-
case EActionKey.
|
|
7538
|
-
case EActionKey.
|
|
7539
|
-
case EActionKey.
|
|
7540
|
-
case EActionKey.
|
|
7541
|
-
case EActionKey.
|
|
7542
|
-
case EActionKey.
|
|
7543
|
-
case EActionKey.
|
|
7544
|
-
case EActionKey.
|
|
7545
|
-
case EActionKey.
|
|
7546
|
-
case EActionKey.
|
|
7547
|
-
case EActionKey.
|
|
7548
|
-
case EActionKey.
|
|
7549
|
-
case EActionKey.
|
|
7550
|
-
case EActionKey.
|
|
7551
|
-
case EActionKey.
|
|
7552
|
-
case EActionKey.
|
|
7553
|
-
|
|
7554
|
-
|
|
8137
|
+
case EActionKey.FIELD_SHOW_API_LOADER: return [3 /*break*/, 5];
|
|
8138
|
+
case EActionKey.FIELD_HIDE_API_LOADER: return [3 /*break*/, 6];
|
|
8139
|
+
case EActionKey.FIELD_RESET: return [3 /*break*/, 7];
|
|
8140
|
+
case EActionKey.FIELD_ERROR_SHOW: return [3 /*break*/, 8];
|
|
8141
|
+
case EActionKey.FIELD_ERROR_HIDE: return [3 /*break*/, 11];
|
|
8142
|
+
case EActionKey.FIELD_MESSAGE_SHOW: return [3 /*break*/, 14];
|
|
8143
|
+
case EActionKey.FIELD_MESSAGES_HIDE: return [3 /*break*/, 15];
|
|
8144
|
+
case EActionKey.FIELD_API_TIMER_MESSAGE_SHOW: return [3 /*break*/, 16];
|
|
8145
|
+
case EActionKey.FIELD_API_TIMER_MESSAGE_HIDE: return [3 /*break*/, 18];
|
|
8146
|
+
case EActionKey.SET_VALUE: return [3 /*break*/, 20];
|
|
8147
|
+
case EActionKey.SET_FIELD_DEFAULT_VALUE: return [3 /*break*/, 22];
|
|
8148
|
+
case EActionKey.SET_API_STATUS: return [3 /*break*/, 24];
|
|
8149
|
+
case EActionKey.SET_API_HEADER_VALUE: return [3 /*break*/, 26];
|
|
8150
|
+
case EActionKey.SET_API_HEADER_VALIDITY: return [3 /*break*/, 28];
|
|
8151
|
+
case EActionKey.SET_API_BODY_VALUE: return [3 /*break*/, 30];
|
|
8152
|
+
case EActionKey.SET_API_BODY_VALIDITY: return [3 /*break*/, 32];
|
|
8153
|
+
case EActionKey.SET_DROPDOWN_OPTIONS: return [3 /*break*/, 34];
|
|
8154
|
+
case EActionKey.SET_FIELD_VALIDITY: return [3 /*break*/, 36];
|
|
8155
|
+
case EActionKey.HANDLE_CONNECTED_ELEMENTS: return [3 /*break*/, 38];
|
|
8156
|
+
case EActionKey.API_CALL: return [3 /*break*/, 39];
|
|
8157
|
+
case EActionKey.API_CALL_MULTIPLE: return [3 /*break*/, 41];
|
|
8158
|
+
case EActionKey.API_CALL_MULTIPLE_END: return [3 /*break*/, 43];
|
|
8159
|
+
case EActionKey.TASK_API_CALL: return [3 /*break*/, 45];
|
|
8160
|
+
case EActionKey.TASK_API_CALL_MULTIPLE: return [3 /*break*/, 47];
|
|
8161
|
+
case EActionKey.TASK_API_CALL_MULTIPLE_END: return [3 /*break*/, 49];
|
|
8162
|
+
case EActionKey.REDIRECT_TO_URL: return [3 /*break*/, 51];
|
|
8163
|
+
case EActionKey.PREVIEW_DIALOG_SHOW: return [3 /*break*/, 54];
|
|
8164
|
+
case EActionKey.PREVIEW_ERROR_SHOW: return [3 /*break*/, 55];
|
|
8165
|
+
case EActionKey.POPUP_FORM_SHOW: return [3 /*break*/, 58];
|
|
8166
|
+
case EActionKey.STOP_WAITING: return [3 /*break*/, 59];
|
|
8167
|
+
case EActionKey.NOTIFICATION_ERROR_SHOW: return [3 /*break*/, 60];
|
|
8168
|
+
case EActionKey.NOTIFICATION_ERROR_HIDE: return [3 /*break*/, 61];
|
|
8169
|
+
case EActionKey.RESUME_TASK_EXECUTION: return [3 /*break*/, 62];
|
|
8170
|
+
case EActionKey.STOP_TASK_EXECUTION: return [3 /*break*/, 63];
|
|
8171
|
+
case EActionKey.DIALOG_SHOW: return [3 /*break*/, 64];
|
|
8172
|
+
case EActionKey.DIALOG_HIDE: return [3 /*break*/, 65];
|
|
8173
|
+
case EActionKey.SAVE_FORM: return [3 /*break*/, 66];
|
|
8174
|
+
case EActionKey.ALERT_SHOW: return [3 /*break*/, 67];
|
|
8175
|
+
case EActionKey.SET_HTML: return [3 /*break*/, 68];
|
|
8176
|
+
}
|
|
8177
|
+
return [3 /*break*/, 71];
|
|
7555
8178
|
case 1:
|
|
7556
8179
|
this.fieldHide(action.props.fieldKey);
|
|
7557
|
-
return [3 /*break*/,
|
|
8180
|
+
return [3 /*break*/, 72];
|
|
7558
8181
|
case 2:
|
|
7559
8182
|
this.fieldShow(action.props.fieldKey);
|
|
7560
|
-
return [3 /*break*/,
|
|
8183
|
+
return [3 /*break*/, 72];
|
|
7561
8184
|
case 3:
|
|
7562
8185
|
this.fieldDisable(action.props.fieldKey);
|
|
7563
|
-
return [3 /*break*/,
|
|
8186
|
+
return [3 /*break*/, 72];
|
|
7564
8187
|
case 4:
|
|
7565
8188
|
this.fieldEnable(action.props.fieldKey);
|
|
7566
|
-
return [3 /*break*/,
|
|
8189
|
+
return [3 /*break*/, 72];
|
|
7567
8190
|
case 5:
|
|
7568
|
-
this.
|
|
7569
|
-
return [3 /*break*/,
|
|
8191
|
+
this.fieldEnable(action.props.fieldKey);
|
|
8192
|
+
return [3 /*break*/, 72];
|
|
7570
8193
|
case 6:
|
|
7571
|
-
|
|
8194
|
+
this.fieldEnable(action.props.fieldKey);
|
|
8195
|
+
return [3 /*break*/, 72];
|
|
8196
|
+
case 7:
|
|
8197
|
+
this.fieldReset(action.props.fieldKey);
|
|
8198
|
+
return [3 /*break*/, 72];
|
|
8199
|
+
case 8:
|
|
8200
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 10];
|
|
7572
8201
|
fieldErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7573
8202
|
return [4 /*yield*/, fieldErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7574
|
-
case
|
|
7575
|
-
fieldErrorShowSourceValue =
|
|
8203
|
+
case 9:
|
|
8204
|
+
fieldErrorShowSourceValue = _16.sent();
|
|
7576
8205
|
if (typeof fieldErrorShowSourceValue == "string" ||
|
|
7577
8206
|
typeof fieldErrorShowSourceValue == "number") {
|
|
7578
8207
|
fieldErrorShowSourceValue = String(fieldErrorShowSourceValue);
|
|
@@ -7581,17 +8210,17 @@
|
|
|
7581
8210
|
fieldErrorShowSourceValue = "";
|
|
7582
8211
|
}
|
|
7583
8212
|
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorShowSourceValue);
|
|
7584
|
-
|
|
7585
|
-
case
|
|
8213
|
+
_16.label = 10;
|
|
8214
|
+
case 10:
|
|
7586
8215
|
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
7587
8216
|
this.fieldErrorShow(action.props.fieldKey, action.props.message);
|
|
7588
|
-
return [3 /*break*/,
|
|
7589
|
-
case
|
|
7590
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/,
|
|
8217
|
+
return [3 /*break*/, 72];
|
|
8218
|
+
case 11:
|
|
8219
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 13];
|
|
7591
8220
|
fieldErrorHide_Source = new kwikidToolkit.Source(object);
|
|
7592
8221
|
return [4 /*yield*/, fieldErrorHide_Source.getValueFromSource(action.props.message.source)];
|
|
7593
|
-
case
|
|
7594
|
-
fieldErrorHideSourceValue =
|
|
8222
|
+
case 12:
|
|
8223
|
+
fieldErrorHideSourceValue = _16.sent();
|
|
7595
8224
|
if (typeof fieldErrorHideSourceValue == "string" ||
|
|
7596
8225
|
typeof fieldErrorHideSourceValue == "number") {
|
|
7597
8226
|
fieldErrorHideSourceValue = String(fieldErrorHideSourceValue);
|
|
@@ -7600,110 +8229,110 @@
|
|
|
7600
8229
|
fieldErrorHideSourceValue = "";
|
|
7601
8230
|
}
|
|
7602
8231
|
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorHideSourceValue);
|
|
7603
|
-
|
|
7604
|
-
case
|
|
8232
|
+
_16.label = 13;
|
|
8233
|
+
case 13:
|
|
7605
8234
|
this.fieldErrorHide(action.props.fieldKey, action.props.message);
|
|
7606
|
-
return [3 /*break*/,
|
|
7607
|
-
case
|
|
8235
|
+
return [3 /*break*/, 72];
|
|
8236
|
+
case 14:
|
|
7608
8237
|
this.fieldMessageShow(action.props.fieldKey, action.props.message);
|
|
7609
|
-
return [3 /*break*/,
|
|
7610
|
-
case 13:
|
|
7611
|
-
this.fieldMessageHide(action.props.fieldKey, action.props.message);
|
|
7612
|
-
return [3 /*break*/, 70];
|
|
7613
|
-
case 14: return [4 /*yield*/, this.fieldApiTimerMessageShow(action.props.fieldKey, action.props.timer)];
|
|
8238
|
+
return [3 /*break*/, 72];
|
|
7614
8239
|
case 15:
|
|
7615
|
-
|
|
7616
|
-
return [3 /*break*/,
|
|
7617
|
-
case 16: return [4 /*yield*/, this.
|
|
8240
|
+
this.fieldMessageHide(action.props.fieldKey, action.props.message);
|
|
8241
|
+
return [3 /*break*/, 72];
|
|
8242
|
+
case 16: return [4 /*yield*/, this.fieldApiTimerMessageShow(action.props.fieldKey, action.props.timer)];
|
|
7618
8243
|
case 17:
|
|
7619
|
-
|
|
7620
|
-
return [3 /*break*/,
|
|
7621
|
-
case 18: return [4 /*yield*/, this.
|
|
8244
|
+
_16.sent();
|
|
8245
|
+
return [3 /*break*/, 72];
|
|
8246
|
+
case 18: return [4 /*yield*/, this.fieldApiTimerMessageHide(action.props.fieldKey)];
|
|
7622
8247
|
case 19:
|
|
7623
|
-
|
|
7624
|
-
return [3 /*break*/,
|
|
7625
|
-
case 20: return [4 /*yield*/, this.
|
|
8248
|
+
_16.sent();
|
|
8249
|
+
return [3 /*break*/, 72];
|
|
8250
|
+
case 20: return [4 /*yield*/, this.setValue(action, object)];
|
|
7626
8251
|
case 21:
|
|
7627
|
-
|
|
7628
|
-
return [3 /*break*/,
|
|
7629
|
-
case 22: return [4 /*yield*/, this.
|
|
8252
|
+
_16.sent();
|
|
8253
|
+
return [3 /*break*/, 72];
|
|
8254
|
+
case 22: return [4 /*yield*/, this.setFieldDefaultValue(action, object)];
|
|
7630
8255
|
case 23:
|
|
7631
|
-
|
|
7632
|
-
return [3 /*break*/,
|
|
7633
|
-
case 24: return [4 /*yield*/, this.
|
|
8256
|
+
_16.sent();
|
|
8257
|
+
return [3 /*break*/, 72];
|
|
8258
|
+
case 24: return [4 /*yield*/, this.setApiStatus(action, object)];
|
|
7634
8259
|
case 25:
|
|
7635
|
-
|
|
7636
|
-
return [3 /*break*/,
|
|
7637
|
-
case 26: return [4 /*yield*/, this.
|
|
8260
|
+
_16.sent();
|
|
8261
|
+
return [3 /*break*/, 72];
|
|
8262
|
+
case 26: return [4 /*yield*/, this.setApiHeaderValue(action, object)];
|
|
7638
8263
|
case 27:
|
|
7639
|
-
|
|
7640
|
-
return [3 /*break*/,
|
|
7641
|
-
case 28: return [4 /*yield*/, this.
|
|
8264
|
+
_16.sent();
|
|
8265
|
+
return [3 /*break*/, 72];
|
|
8266
|
+
case 28: return [4 /*yield*/, this.setApiHeaderValidity(action, object)];
|
|
7642
8267
|
case 29:
|
|
7643
|
-
|
|
7644
|
-
return [3 /*break*/,
|
|
7645
|
-
case 30: return [4 /*yield*/, this.
|
|
8268
|
+
_16.sent();
|
|
8269
|
+
return [3 /*break*/, 72];
|
|
8270
|
+
case 30: return [4 /*yield*/, this.setApiBodyValue(action, object)];
|
|
7646
8271
|
case 31:
|
|
7647
|
-
|
|
7648
|
-
return [3 /*break*/,
|
|
7649
|
-
case 32: return [4 /*yield*/, this.
|
|
8272
|
+
_16.sent();
|
|
8273
|
+
return [3 /*break*/, 72];
|
|
8274
|
+
case 32: return [4 /*yield*/, this.setApiBodyValidity(action, object)];
|
|
7650
8275
|
case 33:
|
|
7651
|
-
|
|
7652
|
-
return [3 /*break*/,
|
|
7653
|
-
case 34: return [4 /*yield*/, this.
|
|
8276
|
+
_16.sent();
|
|
8277
|
+
return [3 /*break*/, 72];
|
|
8278
|
+
case 34: return [4 /*yield*/, this.setDropdownOptions(action, object)];
|
|
7654
8279
|
case 35:
|
|
7655
|
-
|
|
7656
|
-
return [3 /*break*/,
|
|
7657
|
-
case 36:
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
8280
|
+
_16.sent();
|
|
8281
|
+
return [3 /*break*/, 72];
|
|
8282
|
+
case 36: return [4 /*yield*/, this.setFieldValidity(action, object)];
|
|
8283
|
+
case 37:
|
|
8284
|
+
_16.sent();
|
|
8285
|
+
return [3 /*break*/, 72];
|
|
7661
8286
|
case 38:
|
|
7662
|
-
|
|
7663
|
-
return [3 /*break*/,
|
|
7664
|
-
case 39: return [4 /*yield*/, this.
|
|
8287
|
+
this.handleConnectedElements({ key: action.props.fieldKey }, "ON_ACTION");
|
|
8288
|
+
return [3 /*break*/, 72];
|
|
8289
|
+
case 39: return [4 /*yield*/, this.fieldApiCall(action, object)];
|
|
7665
8290
|
case 40:
|
|
7666
|
-
|
|
7667
|
-
return [3 /*break*/,
|
|
7668
|
-
case 41: return [4 /*yield*/, this.
|
|
8291
|
+
_16.sent();
|
|
8292
|
+
return [3 /*break*/, 72];
|
|
8293
|
+
case 41: return [4 /*yield*/, this.fieldMultipleApiCalls(action, object)];
|
|
7669
8294
|
case 42:
|
|
7670
|
-
|
|
7671
|
-
return [3 /*break*/,
|
|
7672
|
-
case 43: return [4 /*yield*/, this.
|
|
8295
|
+
_16.sent();
|
|
8296
|
+
return [3 /*break*/, 72];
|
|
8297
|
+
case 43: return [4 /*yield*/, this.fieldMultipleApiCallsEnd(action, object)];
|
|
7673
8298
|
case 44:
|
|
7674
|
-
|
|
7675
|
-
return [3 /*break*/,
|
|
7676
|
-
case 45: return [4 /*yield*/, this.
|
|
8299
|
+
_16.sent();
|
|
8300
|
+
return [3 /*break*/, 72];
|
|
8301
|
+
case 45: return [4 /*yield*/, this.taskApiCall(action, object)];
|
|
7677
8302
|
case 46:
|
|
7678
|
-
|
|
7679
|
-
return [3 /*break*/,
|
|
7680
|
-
case 47: return [4 /*yield*/, this.
|
|
8303
|
+
_16.sent();
|
|
8304
|
+
return [3 /*break*/, 72];
|
|
8305
|
+
case 47: return [4 /*yield*/, this.taskMultipleApiCalls(action, object)];
|
|
7681
8306
|
case 48:
|
|
7682
|
-
|
|
7683
|
-
return [3 /*break*/,
|
|
7684
|
-
case 49:
|
|
7685
|
-
|
|
8307
|
+
_16.sent();
|
|
8308
|
+
return [3 /*break*/, 72];
|
|
8309
|
+
case 49: return [4 /*yield*/, this.taskMultipleApiCallsEnd(action, object)];
|
|
8310
|
+
case 50:
|
|
8311
|
+
_16.sent();
|
|
8312
|
+
return [3 /*break*/, 72];
|
|
8313
|
+
case 51:
|
|
8314
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.url, "source")) return [3 /*break*/, 53];
|
|
7686
8315
|
redirectToUrl_Source = new kwikidToolkit.Source(object);
|
|
7687
8316
|
return [4 /*yield*/, redirectToUrl_Source.getValueFromSource(action.props.url.source)];
|
|
7688
|
-
case
|
|
7689
|
-
redirectToUrlSourceValue =
|
|
8317
|
+
case 52:
|
|
8318
|
+
redirectToUrlSourceValue = _16.sent();
|
|
7690
8319
|
if (kwikidToolkit.isEmptyString(redirectToUrlSourceValue)) {
|
|
7691
8320
|
redirectToUrlSourceValue = "";
|
|
7692
8321
|
}
|
|
7693
8322
|
action = kwikidToolkit.setValueToObjectPath(action, "props.url.url", redirectToUrlSourceValue);
|
|
7694
|
-
|
|
7695
|
-
case
|
|
8323
|
+
_16.label = 53;
|
|
8324
|
+
case 53:
|
|
7696
8325
|
this.redirectToUrl(action);
|
|
7697
|
-
|
|
7698
|
-
case
|
|
8326
|
+
_16.label = 54;
|
|
8327
|
+
case 54:
|
|
7699
8328
|
this.showPreview(action.props);
|
|
7700
|
-
return [3 /*break*/,
|
|
7701
|
-
case
|
|
7702
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/,
|
|
8329
|
+
return [3 /*break*/, 72];
|
|
8330
|
+
case 55:
|
|
8331
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 57];
|
|
7703
8332
|
previewErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7704
8333
|
return [4 /*yield*/, previewErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7705
|
-
case
|
|
7706
|
-
previewErrorShowSourceValue =
|
|
8334
|
+
case 56:
|
|
8335
|
+
previewErrorShowSourceValue = _16.sent();
|
|
7707
8336
|
if (typeof previewErrorShowSourceValue == "string" ||
|
|
7708
8337
|
typeof previewErrorShowSourceValue == "number") {
|
|
7709
8338
|
previewErrorShowSourceValue = String(previewErrorShowSourceValue);
|
|
@@ -7712,51 +8341,51 @@
|
|
|
7712
8341
|
previewErrorShowSourceValue = "";
|
|
7713
8342
|
}
|
|
7714
8343
|
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", previewErrorShowSourceValue);
|
|
7715
|
-
|
|
7716
|
-
case
|
|
8344
|
+
_16.label = 57;
|
|
8345
|
+
case 57:
|
|
7717
8346
|
this.showErrorPreview(action.props);
|
|
7718
|
-
return [3 /*break*/,
|
|
7719
|
-
case
|
|
8347
|
+
return [3 /*break*/, 72];
|
|
8348
|
+
case 58:
|
|
7720
8349
|
this.showPopupForm(action.props.popupFormKey, (_b = (_a = action.props) === null || _a === void 0 ? void 0 : _a.popupType) !== null && _b !== void 0 ? _b : "DIALOG");
|
|
7721
|
-
return [3 /*break*/,
|
|
7722
|
-
case
|
|
8350
|
+
return [3 /*break*/, 72];
|
|
8351
|
+
case 59:
|
|
7723
8352
|
this.waitingForChanges = false;
|
|
7724
|
-
return [3 /*break*/,
|
|
7725
|
-
case
|
|
8353
|
+
return [3 /*break*/, 72];
|
|
8354
|
+
case 60:
|
|
7726
8355
|
this.toggleErrorNotification(true);
|
|
7727
|
-
return [3 /*break*/,
|
|
7728
|
-
case
|
|
8356
|
+
return [3 /*break*/, 72];
|
|
8357
|
+
case 61:
|
|
7729
8358
|
this.toggleErrorNotification(false);
|
|
7730
|
-
return [3 /*break*/,
|
|
7731
|
-
case
|
|
8359
|
+
return [3 /*break*/, 72];
|
|
8360
|
+
case 62:
|
|
7732
8361
|
this.stopTaskExecution = false;
|
|
7733
|
-
return [3 /*break*/,
|
|
7734
|
-
case
|
|
8362
|
+
return [3 /*break*/, 72];
|
|
8363
|
+
case 63:
|
|
7735
8364
|
this.stopTaskExecution = true;
|
|
7736
|
-
return [3 /*break*/,
|
|
7737
|
-
case
|
|
8365
|
+
return [3 /*break*/, 72];
|
|
8366
|
+
case 64:
|
|
7738
8367
|
this.dialogShow({
|
|
7739
8368
|
html: (_c = action.props) === null || _c === void 0 ? void 0 : _c.html,
|
|
7740
8369
|
label: (_d = action.props) === null || _d === void 0 ? void 0 : _d.label,
|
|
7741
8370
|
size: (_e = action.props) === null || _e === void 0 ? void 0 : _e.size,
|
|
7742
8371
|
button: (_f = action.props) === null || _f === void 0 ? void 0 : _f.button
|
|
7743
8372
|
});
|
|
7744
|
-
return [3 /*break*/,
|
|
7745
|
-
case
|
|
8373
|
+
return [3 /*break*/, 72];
|
|
8374
|
+
case 65:
|
|
7746
8375
|
this.dialogHide();
|
|
7747
|
-
return [3 /*break*/,
|
|
7748
|
-
case
|
|
8376
|
+
return [3 /*break*/, 72];
|
|
8377
|
+
case 66:
|
|
7749
8378
|
this.handleOnClickSaveForm(undefined);
|
|
7750
|
-
return [3 /*break*/,
|
|
7751
|
-
case
|
|
8379
|
+
return [3 /*break*/, 72];
|
|
8380
|
+
case 67:
|
|
7752
8381
|
this.alertShow(action.props.type, action.props.message);
|
|
7753
|
-
return [3 /*break*/,
|
|
7754
|
-
case
|
|
7755
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/,
|
|
8382
|
+
return [3 /*break*/, 72];
|
|
8383
|
+
case 68:
|
|
8384
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 70];
|
|
7756
8385
|
fieldHtmlMessage_Source = new kwikidToolkit.Source(object);
|
|
7757
8386
|
return [4 /*yield*/, fieldHtmlMessage_Source.getValueFromSource(action.props.message.source)];
|
|
7758
|
-
case
|
|
7759
|
-
fieldHtmlMessageSourceValue =
|
|
8387
|
+
case 69:
|
|
8388
|
+
fieldHtmlMessageSourceValue = _16.sent();
|
|
7760
8389
|
if (typeof fieldHtmlMessageSourceValue == "string" ||
|
|
7761
8390
|
typeof fieldHtmlMessageSourceValue == "number") {
|
|
7762
8391
|
fieldHtmlMessageSourceValue = String(fieldHtmlMessageSourceValue);
|
|
@@ -7765,21 +8394,21 @@
|
|
|
7765
8394
|
fieldHtmlMessageSourceValue = "";
|
|
7766
8395
|
}
|
|
7767
8396
|
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldHtmlMessageSourceValue);
|
|
7768
|
-
|
|
7769
|
-
case
|
|
8397
|
+
_16.label = 70;
|
|
8398
|
+
case 70:
|
|
7770
8399
|
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
7771
8400
|
this.setHtml(action.props.fieldKey, action.props.message);
|
|
7772
|
-
return [3 /*break*/,
|
|
7773
|
-
case
|
|
7774
|
-
case
|
|
8401
|
+
return [3 /*break*/, 72];
|
|
8402
|
+
case 71: return [3 /*break*/, 72];
|
|
8403
|
+
case 72: return [2 /*return*/];
|
|
7775
8404
|
}
|
|
7776
8405
|
});
|
|
7777
8406
|
});
|
|
7778
8407
|
};
|
|
7779
8408
|
return KwikIDFormViewComponent;
|
|
7780
8409
|
}());
|
|
7781
|
-
/** @nocollapse */ KwikIDFormViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: KwikIDFormViewService }, { token:
|
|
7782
|
-
/** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { allFormsData: "allFormsData", apiCallResponse: "apiCallResponse", buttonClickResponse: "buttonClickResponse", formConfig: "formConfig", formData: "formData", isMobileView: "isMobileView", popupFormCallback: "popupFormCallback", userConfig: "userConfig", stepConfig: "stepConfig" }, outputs: { getLogs: "getLogs", getUnsavedDataState: "getUnsavedDataState", onActionShowPopupForm: "onActionShowPopupForm", onClickApiCall: "onClickApiCall", onClickFormFieldButton: "onClickFormFieldButton", onClickGoBack: "onClickGoBack", onClickSaveForm: "onClickSaveForm", onClickViewForms: "onClickViewForms" }, providers: [KwikIDFormViewService], viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }, { propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"kwikid-form-container\"\n *ngIf=\"!loading\"\n>\n <div\n id=\"uf-form-fields-header-container\"\n *ngIf=\"\n !formConfig.properties?.header?.title?.hidden ||\n !formConfig.properties?.header?.logo?.hidden ||\n !formConfig.properties?.header?.steps?.hidden ||\n !formConfig.properties?.header?.backButton?.hidden\n \"\n >\n <img\n id=\"uf-header-logo\"\n *ngIf=\"!formConfig.properties?.header?.logo?.hidden && isMobileView\"\n [src]=\"formConfig.properties?.header?.logo?.src\"\n [alt]=\"formConfig.properties?.header?.logo?.alt\"\n [style]=\"\n formConfig.properties?.header?.logo?.styles ?? '' | styleSanitizer\n \"\n />\n <div id=\"uf-form-fields-header-main\">\n <div id=\"uf-form-fields-header-left\">\n <kwikui-button\n *ngIf=\"\n !formConfig.properties?.header.backButton.hidden && isMobileView\n \"\n [disabled]=\"backButton.disabled\"\n [showLoader]=\"backButton.showLoader\"\n appearance=\"mono\"\n icon=\"tuiIconArrowLeft\"\n shape=\"rounded\"\n (onClick)=\"\n handleOnClickGoBack(\n $event,\n formConfig.properties?.header.backButton.mode\n )\n \"\n ></kwikui-button>\n </div>\n <div id=\"uf-form-fields-header-right\">\n <div\n id=\"uf-form-fields-title\"\n *ngIf=\"!formConfig.properties?.header.title.hidden\"\n >{{ formConfig.properties?.header.title.label }}</div\n >\n <div\n id=\"uf-form-fields-steps\"\n *ngIf=\"!formConfig.properties?.header.steps.hidden\"\n >\n Step {{ formConfig.sequenceNo }} of {{ formConfig.formsListLength }}\n </div>\n </div>\n </div>\n <hr\n *ngIf=\"\n !formConfig.properties?.header.title.hidden ||\n !formConfig.properties?.header.steps.hidden ||\n !formConfig.properties?.header.backButton.hidden\n \"\n />\n </div>\n <form\n class=\"kwikid-form show\"\n [style]=\"formConfig.properties?.main?.styles ?? '' | styleSanitizer\"\n [formGroup]=\"formGroup\"\n >\n <ng-container\n *ngFor=\"\n let field of formFields;\n let i = index;\n trackBy: getUniqueIdentifier\n \"\n >\n <ng-container [ngSwitch]=\"field.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'html'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <div [innerHtml]=\"field.html | kwikuiSafeHtml\"></div>\n </div>\n </ng-container>\n <!-- Form Title -->\n <ng-container *ngSwitchCase=\"'title'\">\n <div\n class=\"title\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n [class.hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <div>\n {{ field.label }}\n </div>\n <kwikui-button\n *ngIf=\"field?.reset\"\n appearance=\"whiteblock\"\n size=\"s\"\n [label]=\"field?.properties?.resetButtonLabel ?? 'Reset'\"\n (onClick)=\"handleOnClickResetFormFields($event, field)\"\n ></kwikui-button>\n </div>\n </ng-container>\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-button\n [appearance]=\"field?.properties?.appearance ?? 'primary'\"\n [class]=\"field?.properties?.class\"\n [disabled]=\"field?.disabled\"\n [icon]=\"field?.properties?.icon\"\n [iconRight]=\"field?.properties?.iconRight\"\n [id]=\"field?.key\"\n [label]=\"field?.label\"\n [shape]=\"field?.properties?.shape\"\n [showLoader]=\"field?.properties?.loading ?? false\"\n [size]=\"field?.properties?.size\"\n [styles]=\"field?.properties?.styles\"\n [type]=\"'button'\"\n (onClick)=\"handleOnClickFormFieldButton(field)\"\n ></kwikui-button>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Text -->\n <ng-container *ngSwitchCase=\"'text'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input\n [case]=\"field?.properties?.case\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [type]=\"'text'\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Email -->\n <ng-container *ngSwitchCase=\"'email'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-email\n [case]=\"field?.properties?.case\"\n [disabled]=\"field?.disabled\"\n [domains]=\"field?.properties?.domains\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-email>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Password -->\n <ng-container *ngSwitchCase=\"'password'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-password\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [hintContent]=\"field?.properties?.hintContent\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-password>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Textarea -->\n <ng-container *ngSwitchCase=\"'textarea'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-textarea\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-textarea>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Checkbox -->\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-checkbox\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.properties?.placeholder\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size ?? 'l'\"\n [validators]=\"field?.validators\"\n [variant]=\"field?.properties?.variant ?? 'block'\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-checkbox>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Number -->\n <ng-container *ngSwitchCase=\"'number'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-number\n [decimal]=\"field?.properties?.decimal\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix ?? ''\"\n [precision]=\"field?.properties?.precision\"\n [prefix]=\"field?.properties?.prefix ?? ''\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-number>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Date -->\n <ng-container *ngSwitchCase=\"'date'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-date\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [maxCalculatedFromToday]=\"\n field?.properties?.maxCalculatedFromToday\n \"\n [min]=\"field?.properties?.min\"\n [minCalculatedFromToday]=\"\n field?.properties?.minCalculatedFromToday\n \"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-date>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Time -->\n <ng-container *ngSwitchCase=\"'time'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-time\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [items]=\"field?.properties?.items\"\n [label]=\"field?.label\"\n [mode]=\"field?.properties?.mode\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-time>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Phone -->\n <ng-container *ngSwitchCase=\"'phone'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-phone\n [countryCode]=\"field?.properties?.countryCode\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [phoneMaskAfterCountryCode]=\"\n field?.properties?.phoneMaskAfterCountryCode\n \"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [removeCountryCodeFromValue]=\"\n field?.properties?.removeCountryCodeFromValue\n \"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-phone>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Radio -->\n <ng-container *ngSwitchCase=\"'radio'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto; padding: 0px 0.5rem\"\n >\n <kwikui-input-radio\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [items]=\"field?.options\"\n [label]=\"field?.label\"\n [orientation]=\"field?.properties?.orientation\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-radio>\n </label>\n <ng-template #labelTemplate>\n <p\n class=\"tui-space_bottom-2\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Dropdown -->\n <ng-container *ngSwitchCase=\"'select'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-select\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [options]=\"field.options\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [searchable]=\"field?.properties?.searchable\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-select>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Slider -->\n <ng-container *ngSwitchCase=\"'slider'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-slider\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [quantum]=\"field?.properties?.quantum\"\n [size]=\"field?.properties?.size\"\n [steps]=\"field?.properties?.steps\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-slider>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- API Call -->\n <ng-container *ngSwitchCase=\"'api'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-button-api-call\n [apiStatus]=\"field?.api?.status?.value\"\n [apiTimer]=\"field?.api?.timer\"\n [class]=\"field?.class\"\n [disabled]=\"field?.disabled\"\n [id]=\"field.key\"\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\n [showLoader]=\"field?.disabled === 'loading'\"\n [size]=\"field?.properties?.size\"\n styles=\"width: fit-content\"\n (onClick)=\"handleOnClickApiCall($event)\"\n (onApiTimerStop)=\"handleOnApiTimerStop($event)\"\n ></kwikui-button-api-call>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Mobile OTP -->\n <ng-container *ngSwitchCase=\"'otp'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-otp\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [mask]=\"field?.properties?.mask\"\n [mode]=\"field?.properties?.mode\"\n [otpLength]=\"field?.properties?.otpLength\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-otp>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Aadhaar Number -->\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-aadhaar\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [mask]=\"field?.properties?.mask\"\n [placeholder]=\"field?.placeholder\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-aadhaar>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Preview Image -->\n <ng-container *ngSwitchCase=\"'image'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-image\n [altText]=\"field?.properties?.altText\"\n [class]=\"field?.properties?.class\"\n [html]=\"field?.properties?.html\"\n [id]=\"field.key\"\n [imageSrc]=\"field?.default?.value?.value ?? ''\"\n [imageType]=\"field?.properties?.imageType\"\n [loadingType]=\"field?.properties?.loadingType\"\n [styles]=\"field?.properties?.styles\"\n ></kwikui-image>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- File Upload -->\n <ng-container *ngSwitchCase=\"'file'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto\"\n >\n <kwikui-input-files\n [accept]=\"field?.properties?.accept\"\n [class]=\"field?.properties?.class\"\n [disabled]=\"field?.disabled\"\n [files]=\"files[field.key]\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field?.key\"\n [label]=\"field?.properties?.label\"\n [link]=\"field?.properties?.link\"\n [maxFileSize]=\"field?.properties?.maxFileSize\"\n [multiple]=\"field?.properties?.multiple\"\n [setFileTypesToForm]=\"['NORMAL']\"\n [styles]=\"field?.properties?.styles\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValueFile($event)\"\n (getRemovedFile)=\"handleRemovedFile($event)\"\n ></kwikui-input-files>\n </label>\n <ng-template #labelTemplate>\n <p\n style=\"padding: 0px 0.25rem; margin-bottom: 0.25rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Camera Capture -->\n <ng-container *ngSwitchCase=\"'capture'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n *ngIf=\"\n field?.label !== '' &&\n field?.label !== undefined &&\n field?.label !== null\n \"\n style=\"min-height: auto\"\n >\n <p\n *ngIf=\"field?.label !== ''\"\n style=\"padding: 0px 0.25rem; margin-bottom: 0.5rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </label>\n <kwikui-input-camera\n [buttonText]=\"field?.properties?.buttonText\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [mediaFiles]=\"mediaFiles[field.key]\"\n [properties]=\"field?.properties\"\n [showMediaFiles]=\"field?.properties?.showMediaFiles\"\n [type]=\"'capture'\"\n [validators]=\"field?.validators\"\n (onClick)=\"handleOnClickInputCamera($event, field)\"\n (getRemovedFile)=\"handleOnClickGetRemovedMediaFile($event)\"\n ></kwikui-input-camera>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Camera Record -->\n <ng-container *ngSwitchCase=\"'record'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n *ngIf=\"\n field?.label !== '' &&\n field?.label !== undefined &&\n field?.label !== null\n \"\n style=\"min-height: auto\"\n >\n <p\n *ngIf=\"field?.label !== ''\"\n style=\"padding: 0px 0.25rem; margin-bottom: 0.5rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </label>\n <kwikui-input-camera\n [buttonText]=\"field?.properties?.buttonText\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [mediaFiles]=\"mediaFiles[field.key]\"\n [properties]=\"field?.properties\"\n [showMediaFiles]=\"field?.properties?.showMediaFiles\"\n [type]=\"'record'\"\n [validators]=\"field?.validators\"\n (onClick)=\"handleOnClickInputCamera($event, field)\"\n (getRemovedFile)=\"handleOnClickGetRemovedMediaFile($event)\"\n ></kwikui-input-camera>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Star Rating -->\n <ng-container *ngSwitchCase=\"'star-rating'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto; padding: 0px 0.5rem\"\n >\n <kwikui-star-rating\n [color]=\"field?.properties?.color\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [iconMarked]=\"field?.properties?.iconMarked\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-star-rating>\n </label>\n <ng-template #labelTemplate>\n <p>\n <b\n >{{ field?.properties?.placeholder }}\n <span *ngIf=\"field.validators?.required\">*</span></b\n >\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </form>\n <div\n class=\"kwikid-form-buttons\"\n *ngIf=\"\n !formConfig.properties.footer.viewFormsButton.hidden ||\n !formConfig.properties.footer.saveButton.hidden\n \"\n >\n <kwikui-button\n *ngIf=\"\n !formConfig.properties.footer.viewFormsButton.hidden && isMobileView\n \"\n [appearance]=\"'secondary'\"\n [disabled]=\"viewFormsButton.disabled\"\n [label]=\"formConfig.properties.footer.viewFormsButton.label\"\n [showLoader]=\"viewFormsButton.showLoader\"\n [styles]=\"'width: 100%'\"\n (onClick)=\"handleOnClickViewForms($event)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"!formConfig.properties.footer.saveButton.hidden\"\n [disabled]=\"saveFormButton.disabled\"\n [label]=\"formConfig.properties.footer.saveButton.label\"\n [showLoader]=\"saveFormButton.showLoader\"\n [styles]=\"'width: 100%'\"\n (onClick)=\"handleOnClickSaveForm($event)\"\n ></kwikui-button>\n </div>\n</div>\n<div\n class=\"kwikid-form-container-loading\"\n *ngIf=\"loading\"\n>\n <div\n *ngFor=\"let item of [].constructor(7); let i = index\"\n class=\"large-wrapper tui-skeleton tui-skeleton_rounded\"\n >\n </div>\n</div>\n\n<kwikui-loader></kwikui-loader>\n\n<tui-push\n id=\"field-error-notification\"\n *tuiPush=\"showErrorNotification\"\n heading=\"Missing/Incorrect Fields!\"\n type=\"Error\"\n (close)=\"toggleErrorNotification(false)\"\n>\n <tui-svg\n src=\"tuiIconXCircle\"\n style=\"color: #fff !important\"\n >\n </tui-svg>\n</tui-push>\n\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n >\n <tui-preview-title *ngIf=\"previewProperties.title !== ''\">{{\n previewProperties.title\n }}</tui-preview-title>\n\n <ng-container *ngIf=\"!previewProperties.unavailable\">\n <div\n *ngIf=\"previewProperties?.html?.before !== ''\"\n class=\"preview-html preview-html-before\"\n [style]=\"previewProperties?.html?.beforeStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.before | kwikuiSafeHtml\"\n ></div>\n\n <!-- Content within the iframe -->\n <div\n class=\"preview-iframe-content\"\n [style]=\"\n previewProperties?.iframe?.containerStyles ?? '' | styleSanitizer\n \"\n *ngIf=\"previewProperties.iframe.src !== ''\"\n >\n <!-- Your HTML content here -->\n <iframe\n [src]=\"previewProperties.iframe.src | kwikuiSafeUrl\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n [title]=\"previewProperties.iframe.title\"\n class=\"preview-iframe\"\n scrolling=\"auto\"\n ></iframe>\n </div>\n\n <div\n *ngIf=\"previewProperties?.html?.after !== ''\"\n class=\"preview-html preview-html-after\"\n [style]=\"previewProperties?.html?.afterStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.after | kwikuiSafeHtml\"\n ></div>\n </ng-container>\n\n <ng-container *ngIf=\"previewProperties.unavailable\">\n <div class=\"preview-unavailable\">\n <tui-svg\n src=\"tuiIconFileLarge\"\n class=\"t-icon\"\n ></tui-svg>\n <div>Preview unavailable</div>\n </div>\n </ng-container>\n\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n </tui-preview>\n</ng-template>\n\n<ng-template\n #dialog\n let-dialog\n>\n <div class=\"preview-container\">\n <ng-container *ngIf=\"!previewProperties.unavailable\">\n <div\n *ngIf=\"previewProperties?.html?.before !== ''\"\n class=\"preview-html preview-html-before\"\n [style]=\"previewProperties?.html?.beforeStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.before | kwikuiSafeHtml\"\n ></div>\n\n <!-- Content within the iframe -->\n <div\n class=\"preview-iframe-content\"\n [style]=\"\n previewProperties?.iframe?.containerStyles ?? '' | styleSanitizer\n \"\n *ngIf=\"previewProperties.iframe.src !== ''\"\n >\n <!-- Your HTML content here -->\n <iframe\n [src]=\"previewProperties.iframe.src | kwikuiSafeUrl\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n [title]=\"previewProperties.iframe.title\"\n class=\"preview-iframe\"\n scrolling=\"auto\"\n ></iframe>\n </div>\n\n <div\n *ngIf=\"previewProperties?.html?.after !== ''\"\n class=\"preview-html preview-html-after\"\n [style]=\"previewProperties?.html?.afterStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.after | kwikuiSafeHtml\"\n ></div>\n </ng-container>\n\n <ng-container *ngIf=\"previewProperties.unavailable\">\n <div class=\"preview-unavailable\">\n <tui-svg\n src=\"tuiIconFileLarge\"\n class=\"t-icon\"\n ></tui-svg>\n <div>Preview unavailable</div>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n id=\"kwikid-camera-container\"\n *ngIf=\"isShowCamera\"\n>\n <div\n id=\"kwikid-camera-wrapper\"\n [class.fullscreen]=\"isShowCameraFullscreen\"\n >\n <kwikid-camera\n [type]=\"cameraType\"\n [data]=\"cameraData\"\n [image]=\"cameraImage\"\n [video]=\"cameraVideo\"\n [config]=\"cameraConfig\"\n (getImage)=\"handleGetCameraMedia($event, 'CAPTURE')\"\n (getVideo)=\"handleGetCameraMedia($event, 'RECORD')\"\n (onClickBack)=\"handleOnClickCameraBack($event)\"\n (onClickClose)=\"handleOnClickCameraClose($event)\"\n (onClickSave)=\"handleOnClickSaveCameraMedia($event, cameraType)\"\n >\n <ng-container\n *ngIf=\"cameraType === 'CAPTURE'\"\n slot=\"capture-header\"\n >\n <div class=\"capture-header-container\">\n <div class=\"capture-header-left\"> </div>\n <div class=\"capture-header-center\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.title !== ''\"\n appearance=\"whiteblock\"\n [label]=\"cameraConfig?.header?.title\"\n shape=\"rounded\"\n size=\"s\"\n ></kwikui-button>\n </div>\n <div class=\"capture-header-right\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isExpand\"\n id=\"kwikid-camera-header-enlarge-button\"\n appearance=\"whiteblock\"\n [icon]=\"\n isShowCameraFullscreen ? 'tuiIconMinimize2' : 'tuiIconMaximize2'\n \"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"isShowCameraFullscreen = !isShowCameraFullscreen\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isClose\"\n id=\"kwikid-camera-header-close-button\"\n appearance=\"whiteblock\"\n icon=\"tuiIconCloseLarge\"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"handleOnClickCameraClose($event)\"\n ></kwikui-button>\n </div>\n </div>\n </ng-container>\n <ng-container\n *ngIf=\"cameraType === 'RECORD'\"\n slot=\"record-header\"\n >\n <div class=\"record-header-container\">\n <div class=\"record-header-row row-1\">\n <div class=\"record-header-left\">\n <kwikui-button\n *ngIf=\"\n cameraConfig?.header?.isBack && cameraRecordingState == 'NONE'\n \"\n appearance=\"whiteblock\"\n icon=\"tuiIconArrowLeft\"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"handleOnClickCameraClose($event)\"\n ></kwikui-button>\n </div>\n <div class=\"record-header-center\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.title !== ''\"\n appearance=\"whiteblock\"\n [label]=\"cameraConfig?.header?.title\"\n shape=\"rounded\"\n size=\"s\"\n ></kwikui-button>\n </div>\n <div class=\"record-header-right\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isExpand\"\n id=\"kwikid-camera-header-enlarge-button\"\n appearance=\"whiteblock\"\n [icon]=\"\n isShowCameraFullscreen\n ? 'tuiIconMinimize2'\n : 'tuiIconMaximize2'\n \"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"isShowCameraFullscreen = !isShowCameraFullscreen\"\n ></kwikui-button>\n </div>\n </div>\n <div class=\"record-header-row row-2\">\n <div\n id=\"blinking-dot-container\"\n [class.recording]=\"cameraRecordingState == 'RECORDING'\"\n [class.paused]=\"cameraRecordingState == 'PAUSED'\"\n [class.recorded]=\"\n cameraRecordingState == 'NONE' ||\n cameraRecordingState === 'RECORDED'\n \"\n >\n <div\n *ngIf=\"cameraRecordingState == 'RECORDING'\"\n class=\"dot recording blink\"\n >\n </div>\n <div\n *ngIf=\"cameraRecordingState === 'PAUSED'\"\n class=\"dot paused\"\n >\n </div>\n <div\n *ngIf=\"\n cameraRecordingState == 'NONE' ||\n cameraRecordingState === 'RECORDED'\n \"\n class=\"dot recorded\"\n >\n </div>\n <div>\n {{ cameraRecordingTime | formatTimer }}\n <ng-container\n *ngIf=\"cameraConfig?.others?.maxRecordingTimeInSeconds\"\n >\n /\n {{\n cameraConfig?.others?.maxRecordingTimeInSeconds\n | formatTimer\n }}\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </kwikid-camera>\n </div>\n</div>\n", styles: [".kwikid-form-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}.kwikid-form.show{width:100%;height:100%;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.kwikid-form.show>*:not(:last-child){margin-bottom:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.kwikid-form-buttons>*:not(:last-child){margin-right:1rem}.kwikid-form-buttons *{flex-grow:1}#uf-form-fields-header-container{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start;padding:1rem 1rem 0}#uf-form-fields-header-container>*:not(:last-child){margin-bottom:.5rem}#uf-form-fields-header-container #uf-header-logo{width:-moz-fit-content;width:fit-content;height:50px}#uf-form-fields-header-container #uf-form-fields-header-main{display:flex;flex-direction:row;align-content:center;justify-content:flex-start;align-items:center;width:100%}#uf-form-fields-header-container #uf-form-fields-header-main>*:not(:last-child){margin-right:.25rem}#uf-form-fields-header-container #uf-form-fields-header-main #uf-form-fields-header-right{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start}#uf-form-fields-header-container #uf-form-fields-header-main #uf-form-fields-header-right>*{margin-bottom:.5rem}#uf-form-fields-header-container hr{width:100%}#uf-form-fields-title{color:#000;font-size:1.75em;font-weight:bold}#uf-form-fields-steps{color:var(--color-on-secondary-container);font-size:1rem}.title{border-left:.25rem solid var(--tui-primary);padding:.75rem;font-size:1.4em;font-weight:bold;background-color:var(--tui-secondary);display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center}.title>*:not(:last-child){margin-right:.5rem}.title:not(:first-child){margin-top:.5rem}.title.hidden{display:none}.large-wrapper{width:100%;height:60px}.large-wrapper:first-child{margin-bottom:auto}.large-wrapper:last-child{margin-top:auto}.kwikid-form-container-loading{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;padding:1rem}.kwikid-form-container-loading>* :not(:last-child){margin-bottom:1rem}#field-error-notification{background-color:var(--tui-error-fill);color:#fff!important}#field-error-notification .t-top{color:#fff!important}#field-error-notification .t-close{color:#fff!important}.preview-container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;align-content:center;height:calc(100vh - 3rem)}@media only screen and (min-width: 768px){.preview-container{height:calc(100vh - 10rem);width:calc(100vw - 10rem)}}.preview-container>*:not(:last-child){margin-bottom:1rem}.preview-container .preview-html{flex-grow:1}.preview-container .preview-iframe-content{height:100%;flex-grow:1}.preview-container .preview-iframe-content .preview-iframe{width:100%;height:100%}.preview-container .preview-unavailable{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#fff;font-size:1.2rem;top:50%;left:50%;width:100%;height:100vh}.preview-container .preview-unavailable>*:not(:last-child){margin-bottom:1rem}#kwikid-camera-container{width:100%;height:100%;position:fixed;top:50%;left:50%;background-color:#0000008f;transform:translate(-50%,-50%);z-index:100}#kwikid-camera-container #kwikid-camera-wrapper{width:min(80%);height:max(85%);box-shadow:#0000008f 0 22px 70px 4px;overflow:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:1rem;background-color:#000;transition:5s linear ease}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container{display:flex;width:100%;max-width:100%;padding:0}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-left{flex:1;text-align:left}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-center{flex:1;width:100%;min-width:max-content;text-align:center;margin:auto}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-right{flex:1;text-align:right;display:flex;justify-content:flex-end;grid-gap:1rem;gap:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container{display:flex;width:100%;max-width:100%;padding:0;color:#fff;flex-direction:column;justify-content:flex-start;align-items:stretch}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-left{flex:1;display:flex;justify-content:flex-start;grid-gap:1rem;gap:1rem;text-align:left}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-center{flex:1;width:100%;min-width:max-content;text-align:center;margin:auto}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-right{flex:1;text-align:right;display:flex;justify-content:flex-end;grid-gap:1rem;gap:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2{display:flex;flex-direction:row;justify-content:center;align-items:center}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;grid-gap:.25rem;gap:.25rem;padding:.35rem .6rem;width:-moz-fit-content;width:fit-content;border-radius:2rem;background-color:#f5f5f5}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.recording{color:red;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.paused{color:#525252;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.recorded{color:#000;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot{display:inline-block;width:.75rem;height:.75rem;border-radius:100%}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.recording{background-color:red;box-shadow:0 0 5px -1px red}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.paused{background-color:#525252;box-shadow:0 0 5px -1px #000}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.recorded{background-color:#000;box-shadow:0 0 5px -1px #000}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.blink{animation:blinker 1s cubic-bezier(.5,0,1,1) infinite alternate}@keyframes blinker{0%{opacity:1}to{opacity:0}}#kwikid-camera-container #kwikid-camera-wrapper.fullscreen{width:100%;height:100%;border-radius:0;transition:5s linear ease}@media only screen and (max-width: 600px){#kwikid-camera-container #kwikid-camera-wrapper{width:100%;height:100%;border-radius:0;transition:5s linear ease}#kwikid-camera-container #kwikid-camera-wrapper #kwikid-camera-header-enlarge-button{display:none}}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["id", "messages"] }, { type: i2__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputEmailComponent, selector: "kwikui-input-email", inputs: ["case", "disabled", "domains", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputPasswordComponent, selector: "kwikui-input-password", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUITextareaComponent, selector: "kwikui-textarea", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUICheckboxComponent, selector: "kwikui-checkbox", inputs: ["contentAlign", "disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "placeholder", "properties", "size", "validators", "variant"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["decimal", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "min", "placeholder", "postfix", "precision", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxCalculatedFromToday", "min", "minCalculatedFromToday", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputTimeComponent, selector: "kwikui-input-time", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "items", "invalid", "label", "mode", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["countryCode", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "phoneMaskAfterCountryCode", "placeholder", "postfix", "prefix", "properties", "removeCountryCodeFromValue", "size", "validators"], outputs: ["getKeyValue"] }, { type: i4__namespace.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i2__namespace.KwikUIInputRadioComponent, selector: "kwikui-input-radio", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "items", "label", "orientation", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputSliderComponent, selector: "kwikui-input-slider", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "min", "placeholder", "postfix", "prefix", "properties", "quantum", "size", "steps", "type", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["apiTimer", "apiStatus", "class", "disabled", "id", "label", "shape", "showLoader", "size", "styles"], outputs: ["onClick", "onApiTimerStop"] }, { type: i2__namespace.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "mask", "mode", "otpLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "mask", "placeholder", "properties", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIImageComponent, selector: "kwikui-image", inputs: ["altText", "class", "html", "id", "imageSrc", "imageType", "loadingType", "styles"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIInputFilesComponent, selector: "kwikui-input-files", inputs: ["accept", "class", "disabled", "files", "formControl", "formControlName", "icon", "id", "label", "link", "maxFileSize", "multiple", "setFileTypesToForm", "showAddedFiles", "size", "styles", "validators"], outputs: ["getKeyValue", "getRemovedFile"] }, { type: i3__namespace$2.KwikUIInputCameraComponent, selector: "kwikui-input-camera", inputs: ["buttonText", "disabled", "focus", "formControl", "formControlName", "icon", "id", "invalid", "mediaFiles", "properties", "showMediaFiles", "size", "type", "validators"], outputs: ["onClick", "getRemovedFile"] }, { type: i2__namespace.KwikUIStarRatingComponent, selector: "kwikui-star-rating", inputs: ["color", "disabled", "focus", "formControl", "formControlName", "icon", "iconMarked", "id", "invalid", "label", "max", "min", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: i5__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }, { type: i4__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i6__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i6__namespace.TuiPreviewTitleComponent, selector: "tui-preview-title" }, { type: i4__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i3__namespace$2.KwikIDCameraComponent, selector: "kwikid-camera", inputs: ["type", "config", "data", "image", "video"], outputs: ["getImage", "onClickSave", "getVideo"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i5__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i5__namespace.TuiPushDirective, selector: "tui-push" }, { type: i6__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], pipes: { "styleSanitizer": StyleSanitizerPipe, "kwikuiSafeHtml": i2__namespace.KwikUISafeHtmlPipe, "kwikuiSafeUrl": i2__namespace.KwikUISafeUrlPipe, "formatTimer": TimerPipe } });
|
|
8410
|
+
/** @nocollapse */ KwikIDFormViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: KwikIDFormViewService }, { token: KwikIDFormViewApiService }, { token: i6.TuiPushService }, { token: i5.TuiAlertService }, { token: i7.TuiPreviewDialogService }, { token: i5.TuiDialogService }, { token: i3__namespace.KwikUILoaderService }, { token: i4__namespace.KwikIDCameraRecordService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8411
|
+
/** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { allFormsData: "allFormsData", apiCallResponse: "apiCallResponse", buttonClickResponse: "buttonClickResponse", formConfig: "formConfig", formData: "formData", isMobileView: "isMobileView", popupFormCallback: "popupFormCallback", userConfig: "userConfig", stepConfig: "stepConfig" }, outputs: { getLogs: "getLogs", getUnsavedDataState: "getUnsavedDataState", onActionShowPopupForm: "onActionShowPopupForm", onClickApiCall: "onClickApiCall", onClickFormFieldButton: "onClickFormFieldButton", onClickGoBack: "onClickGoBack", onClickSaveForm: "onClickSaveForm", onClickViewForms: "onClickViewForms" }, providers: [KwikIDFormViewService, KwikIDFormViewApiService], viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }, { propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"kwikid-form-container\"\n *ngIf=\"!loading\"\n>\n <div\n id=\"uf-form-fields-header-container\"\n *ngIf=\"\n !formConfig.properties?.header?.title?.hidden ||\n !formConfig.properties?.header?.logo?.hidden ||\n !formConfig.properties?.header?.steps?.hidden ||\n !formConfig.properties?.header?.backButton?.hidden\n \"\n >\n <img\n id=\"uf-header-logo\"\n *ngIf=\"!formConfig.properties?.header?.logo?.hidden && isMobileView\"\n [src]=\"formConfig.properties?.header?.logo?.src\"\n [alt]=\"formConfig.properties?.header?.logo?.alt\"\n [style]=\"\n formConfig.properties?.header?.logo?.styles ?? '' | styleSanitizer\n \"\n />\n <div id=\"uf-form-fields-header-main\">\n <div id=\"uf-form-fields-header-left\">\n <kwikui-button\n *ngIf=\"\n !formConfig.properties?.header.backButton.hidden && isMobileView\n \"\n [disabled]=\"backButton.disabled\"\n [showLoader]=\"backButton.showLoader\"\n appearance=\"mono\"\n icon=\"tuiIconArrowLeft\"\n shape=\"rounded\"\n (onClick)=\"\n handleOnClickGoBack(\n $event,\n formConfig.properties?.header.backButton.mode\n )\n \"\n ></kwikui-button>\n </div>\n <div id=\"uf-form-fields-header-right\">\n <div\n id=\"uf-form-fields-title\"\n *ngIf=\"!formConfig.properties?.header.title.hidden\"\n >{{ formConfig.properties?.header.title.label }}</div\n >\n <div\n id=\"uf-form-fields-steps\"\n *ngIf=\"!formConfig.properties?.header.steps.hidden\"\n >\n Step {{ formConfig.sequenceNo }} of {{ formConfig.formsListLength }}\n </div>\n </div>\n </div>\n <hr\n *ngIf=\"\n !formConfig.properties?.header.title.hidden ||\n !formConfig.properties?.header.steps.hidden ||\n !formConfig.properties?.header.backButton.hidden\n \"\n />\n </div>\n <form\n class=\"kwikid-form show\"\n [style]=\"formConfig.properties?.main?.styles ?? '' | styleSanitizer\"\n [formGroup]=\"formGroup\"\n >\n <ng-container\n *ngFor=\"\n let field of formFields;\n let i = index;\n trackBy: getUniqueIdentifier\n \"\n >\n <ng-container [ngSwitch]=\"field.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'html'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <div [innerHtml]=\"field.html | kwikuiSafeHtml\"></div>\n </div>\n </ng-container>\n <!-- Form Title -->\n <ng-container *ngSwitchCase=\"'title'\">\n <div\n class=\"title\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n [class.hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <div>\n {{ field.label }}\n </div>\n <kwikui-button\n *ngIf=\"field?.reset\"\n appearance=\"whiteblock\"\n size=\"s\"\n [label]=\"field?.properties?.resetButtonLabel ?? 'Reset'\"\n (onClick)=\"handleOnClickResetFormFields($event, field)\"\n ></kwikui-button>\n </div>\n </ng-container>\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-button\n [appearance]=\"field?.properties?.appearance ?? 'primary'\"\n [class]=\"field?.properties?.class\"\n [disabled]=\"field?.disabled\"\n [icon]=\"field?.properties?.icon\"\n [iconRight]=\"field?.properties?.iconRight\"\n [id]=\"field?.key\"\n [label]=\"field?.label\"\n [shape]=\"field?.properties?.shape\"\n [showLoader]=\"field?.properties?.loading ?? false\"\n [size]=\"field?.properties?.size\"\n [styles]=\"field?.properties?.styles\"\n [type]=\"'button'\"\n (onClick)=\"handleOnClickFormFieldButton(field)\"\n ></kwikui-button>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Text -->\n <ng-container *ngSwitchCase=\"'text'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input\n [case]=\"field?.properties?.case\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [type]=\"'text'\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Email -->\n <ng-container *ngSwitchCase=\"'email'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-email\n [case]=\"field?.properties?.case\"\n [disabled]=\"field?.disabled\"\n [domains]=\"field?.properties?.domains\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-email>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Password -->\n <ng-container *ngSwitchCase=\"'password'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-password\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [hintContent]=\"field?.properties?.hintContent\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-password>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Textarea -->\n <ng-container *ngSwitchCase=\"'textarea'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-textarea\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-textarea>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Checkbox -->\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-checkbox\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.properties?.placeholder\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size ?? 'l'\"\n [validators]=\"field?.validators\"\n [variant]=\"field?.properties?.variant ?? 'block'\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-checkbox>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Number -->\n <ng-container *ngSwitchCase=\"'number'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-number\n [decimal]=\"field?.properties?.decimal\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix ?? ''\"\n [precision]=\"field?.properties?.precision\"\n [prefix]=\"field?.properties?.prefix ?? ''\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-number>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Date -->\n <ng-container *ngSwitchCase=\"'date'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-date\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [maxCalculatedFromToday]=\"\n field?.properties?.maxCalculatedFromToday\n \"\n [min]=\"field?.properties?.min\"\n [minCalculatedFromToday]=\"\n field?.properties?.minCalculatedFromToday\n \"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-date>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Time -->\n <ng-container *ngSwitchCase=\"'time'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-time\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [items]=\"field?.properties?.items\"\n [label]=\"field?.label\"\n [mode]=\"field?.properties?.mode\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-time>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Phone -->\n <ng-container *ngSwitchCase=\"'phone'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-phone\n [countryCode]=\"field?.properties?.countryCode\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [phoneMaskAfterCountryCode]=\"\n field?.properties?.phoneMaskAfterCountryCode\n \"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [removeCountryCodeFromValue]=\"\n field?.properties?.removeCountryCodeFromValue\n \"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-phone>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Radio -->\n <ng-container *ngSwitchCase=\"'radio'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto; padding: 0px 0.5rem\"\n >\n <kwikui-input-radio\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [items]=\"field?.options\"\n [label]=\"field?.label\"\n [orientation]=\"field?.properties?.orientation\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-radio>\n </label>\n <ng-template #labelTemplate>\n <p\n class=\"tui-space_bottom-2\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Dropdown -->\n <ng-container *ngSwitchCase=\"'select'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-select\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [options]=\"field.options\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [searchable]=\"field?.properties?.searchable\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-select>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Input Slider -->\n <ng-container *ngSwitchCase=\"'slider'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-slider\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [postfix]=\"field?.properties?.postfix\"\n [prefix]=\"field?.properties?.prefix\"\n [properties]=\"field?.properties\"\n [quantum]=\"field?.properties?.quantum\"\n [size]=\"field?.properties?.size\"\n [steps]=\"field?.properties?.steps\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-slider>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- API Call -->\n <ng-container *ngSwitchCase=\"'api'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-button-api-call\n [apiStatus]=\"field?.api?.status?.value\"\n [apiTimer]=\"field?.api?.timer\"\n [class]=\"field?.class\"\n [disabled]=\"field?.disabled\"\n [id]=\"field.key\"\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\n [showLoader]=\"field?.disabled === 'loading'\"\n [size]=\"field?.properties?.size\"\n styles=\"width: fit-content\"\n (onClick)=\"handleOnClickApiCall($event)\"\n (onApiTimerStop)=\"handleOnApiTimerStop($event)\"\n ></kwikui-button-api-call>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Live Location -->\n <ng-container *ngSwitchCase=\"'live-location'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-button-live-location\n [class]=\"field?.class\"\n [disabled]=\"field?.disabled\"\n [id]=\"field.key\"\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\n [liveLocationStatus]=\"field?.api?.status?.value\"\n [shape]=\"field?.properties?.shape\"\n [isShowLatLongCaptureTimestamp]=\"\n field?.properties?.isShowLatLongCaptureTimestamp\n \"\n [showLoader]=\"field?.disabled\"\n [size]=\"field?.properties?.size\"\n styles=\"width: fit-content\"\n (onClick)=\"handleOnClickLiveLocation($event)\"\n (onLocationPermission)=\"handleOnLocationPermission($event)\"\n ></kwikui-button-live-location>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Mobile OTP -->\n <ng-container *ngSwitchCase=\"'otp'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-otp\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [mask]=\"field?.properties?.mask\"\n [mode]=\"field?.properties?.mode\"\n [otpLength]=\"field?.properties?.otpLength\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-otp>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Aadhaar Number -->\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-input-aadhaar\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [mask]=\"field?.properties?.mask\"\n [placeholder]=\"field?.placeholder\"\n [properties]=\"field?.properties\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input-aadhaar>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Preview Image -->\n <ng-container *ngSwitchCase=\"'image'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <kwikui-image\n [altText]=\"field?.properties?.altText\"\n [class]=\"field?.properties?.class\"\n [html]=\"field?.properties?.html\"\n [id]=\"field.key\"\n [imageSrc]=\"field?.default?.value?.value ?? ''\"\n [imageType]=\"field?.properties?.imageType\"\n [loadingType]=\"field?.properties?.loadingType\"\n [styles]=\"field?.properties?.styles\"\n ></kwikui-image>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- File Upload -->\n <ng-container *ngSwitchCase=\"'file'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto\"\n >\n <kwikui-input-files\n [accept]=\"field?.properties?.accept\"\n [class]=\"field?.properties?.class\"\n [disabled]=\"field?.disabled\"\n [files]=\"files[field.key]\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [id]=\"field?.key\"\n [label]=\"field?.properties?.label\"\n [link]=\"field?.properties?.link\"\n [maxFileSize]=\"field?.properties?.maxFileSize\"\n [multiple]=\"field?.properties?.multiple\"\n [setFileTypesToForm]=\"['NORMAL']\"\n [styles]=\"field?.properties?.styles\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValueFile($event)\"\n (getRemovedFile)=\"handleRemovedFile($event)\"\n ></kwikui-input-files>\n </label>\n <ng-template #labelTemplate>\n <p\n style=\"padding: 0px 0.25rem; margin-bottom: 0.25rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Camera Capture -->\n <ng-container *ngSwitchCase=\"'capture'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n *ngIf=\"\n field?.label !== '' &&\n field?.label !== undefined &&\n field?.label !== null\n \"\n style=\"min-height: auto\"\n >\n <p\n *ngIf=\"field?.label !== ''\"\n style=\"padding: 0px 0.25rem; margin-bottom: 0.5rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </label>\n <kwikui-input-camera\n [buttonText]=\"field?.properties?.buttonText\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [mediaFiles]=\"mediaFiles[field.key]\"\n [properties]=\"field?.properties\"\n [showMediaFiles]=\"field?.properties?.showMediaFiles\"\n [type]=\"'capture'\"\n [validators]=\"field?.validators\"\n (onClick)=\"handleOnClickInputCamera($event, field)\"\n (getRemovedFile)=\"handleOnClickGetRemovedMediaFile($event)\"\n ></kwikui-input-camera>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Camera Record -->\n <ng-container *ngSwitchCase=\"'record'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n *ngIf=\"\n field?.label !== '' &&\n field?.label !== undefined &&\n field?.label !== null\n \"\n style=\"min-height: auto\"\n >\n <p\n *ngIf=\"field?.label !== ''\"\n style=\"padding: 0px 0.25rem; margin-bottom: 0.5rem\"\n [hidden]=\"field?.hidden\"\n id=\"field_{{ field.key }}\"\n >\n <b>\n {{ field.label }}\n <span *ngIf=\"field.validators?.required\">*</span>\n </b>\n </p>\n </label>\n <kwikui-input-camera\n [buttonText]=\"field?.properties?.buttonText\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [mediaFiles]=\"mediaFiles[field.key]\"\n [properties]=\"field?.properties\"\n [showMediaFiles]=\"field?.properties?.showMediaFiles\"\n [type]=\"'record'\"\n [validators]=\"field?.validators\"\n (onClick)=\"handleOnClickInputCamera($event, field)\"\n (getRemovedFile)=\"handleOnClickGetRemovedMediaFile($event)\"\n ></kwikui-input-camera>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n <!-- Star Rating -->\n <ng-container *ngSwitchCase=\"'star-rating'\">\n <div\n [hidden]=\"field?.hidden\"\n [style]=\"field?.properties?.containerStyles ?? '' | styleSanitizer\"\n id=\"field_{{ field.key }}\"\n >\n <label\n [tuiLabel]=\"labelTemplate\"\n style=\"min-height: auto; padding: 0px 0.5rem\"\n >\n <kwikui-star-rating\n [color]=\"field?.properties?.color\"\n [disabled]=\"field?.disabled\"\n [focus]=\"field?.focus\"\n [formControl]=\"formGroup.controls[field.key]\"\n [formControlName]=\"field.key\"\n [icon]=\"field?.properties?.icon\"\n [iconMarked]=\"field?.properties?.iconMarked\"\n [id]=\"field.key\"\n [invalid]=\"field?.invalid\"\n [label]=\"field?.label\"\n [max]=\"field?.properties?.max\"\n [min]=\"field?.properties?.min\"\n [placeholder]=\"field?.properties?.placeholder\"\n [properties]=\"field?.properties\"\n [size]=\"field?.properties?.size\"\n [validators]=\"field?.validators\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-star-rating>\n </label>\n <ng-template #labelTemplate>\n <p>\n <b\n >{{ field?.properties?.placeholder }}\n <span *ngIf=\"field.validators?.required\">*</span></b\n >\n </p>\n </ng-template>\n <kwikui-messages\n [messages]=\"field.messages\"\n [id]=\"field.key\"\n ></kwikui-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </form>\n <div\n class=\"kwikid-form-buttons\"\n *ngIf=\"\n !formConfig.properties.footer.viewFormsButton.hidden ||\n !formConfig.properties.footer.saveButton.hidden\n \"\n >\n <kwikui-button\n *ngIf=\"\n !formConfig.properties.footer.viewFormsButton.hidden && isMobileView\n \"\n [appearance]=\"'secondary'\"\n [disabled]=\"viewFormsButton.disabled\"\n [label]=\"formConfig.properties.footer.viewFormsButton.label\"\n [showLoader]=\"viewFormsButton.showLoader\"\n [styles]=\"'width: 100%'\"\n (onClick)=\"handleOnClickViewForms($event)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"!formConfig.properties.footer.saveButton.hidden\"\n [disabled]=\"saveFormButton.disabled\"\n [label]=\"formConfig.properties.footer.saveButton.label\"\n [showLoader]=\"saveFormButton.showLoader\"\n [styles]=\"'width: 100%'\"\n (onClick)=\"handleOnClickSaveForm($event)\"\n ></kwikui-button>\n </div>\n</div>\n<div\n class=\"kwikid-form-container-loading\"\n *ngIf=\"loading\"\n>\n <div\n *ngFor=\"let item of [].constructor(7); let i = index\"\n class=\"large-wrapper tui-skeleton tui-skeleton_rounded\"\n >\n </div>\n</div>\n\n<kwikui-loader></kwikui-loader>\n\n<tui-push\n id=\"field-error-notification\"\n *tuiPush=\"showErrorNotification\"\n heading=\"Missing/Incorrect Fields!\"\n type=\"Error\"\n (close)=\"toggleErrorNotification(false)\"\n>\n <tui-svg\n src=\"tuiIconXCircle\"\n style=\"color: #fff !important\"\n >\n </tui-svg>\n</tui-push>\n\n<tui-push\n id=\"permission-error-notification\"\n *tuiPush=\"showPermissionErrorNotification\"\n heading=\"Please provide required permissions!\"\n type=\"Error\"\n (close)=\"togglePermissionErrorNotification(false)\"\n>\n <tui-svg\n src=\"tuiIconXCircle\"\n style=\"color: #fff !important\"\n >\n </tui-svg>\n</tui-push>\n\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n >\n <tui-preview-title *ngIf=\"previewProperties.title !== ''\">{{\n previewProperties.title\n }}</tui-preview-title>\n\n <ng-container *ngIf=\"!previewProperties.unavailable\">\n <div\n *ngIf=\"previewProperties?.html?.before !== ''\"\n class=\"preview-html preview-html-before\"\n [style]=\"previewProperties?.html?.beforeStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.before | kwikuiSafeHtml\"\n ></div>\n\n <!-- Content within the iframe -->\n <div\n class=\"preview-iframe-content\"\n [style]=\"\n previewProperties?.iframe?.containerStyles ?? '' | styleSanitizer\n \"\n *ngIf=\"previewProperties.iframe.src !== ''\"\n >\n <!-- Your HTML content here -->\n <iframe\n [src]=\"previewProperties.iframe.src | kwikuiSafeUrl\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n [title]=\"previewProperties.iframe.title\"\n class=\"preview-iframe\"\n scrolling=\"auto\"\n ></iframe>\n </div>\n\n <div\n *ngIf=\"previewProperties?.html?.after !== ''\"\n class=\"preview-html preview-html-after\"\n [style]=\"previewProperties?.html?.afterStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.after | kwikuiSafeHtml\"\n ></div>\n </ng-container>\n\n <ng-container *ngIf=\"previewProperties.unavailable\">\n <div class=\"preview-unavailable\">\n <tui-svg\n src=\"tuiIconFileLarge\"\n class=\"t-icon\"\n ></tui-svg>\n <div>Preview unavailable</div>\n </div>\n </ng-container>\n\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n </tui-preview>\n</ng-template>\n\n<ng-template\n #dialog\n let-dialog\n>\n <div class=\"preview-container\">\n <ng-container *ngIf=\"!previewProperties.unavailable\">\n <div\n *ngIf=\"previewProperties?.html?.before !== ''\"\n class=\"preview-html preview-html-before\"\n [style]=\"previewProperties?.html?.beforeStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.before | kwikuiSafeHtml\"\n ></div>\n\n <!-- Content within the iframe -->\n <div\n class=\"preview-iframe-content\"\n [style]=\"\n previewProperties?.iframe?.containerStyles ?? '' | styleSanitizer\n \"\n *ngIf=\"previewProperties.iframe.src !== ''\"\n >\n <!-- Your HTML content here -->\n <iframe\n [src]=\"previewProperties.iframe.src | kwikuiSafeUrl\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n [title]=\"previewProperties.iframe.title\"\n class=\"preview-iframe\"\n scrolling=\"auto\"\n ></iframe>\n </div>\n\n <div\n *ngIf=\"previewProperties?.html?.after !== ''\"\n class=\"preview-html preview-html-after\"\n [style]=\"previewProperties?.html?.afterStyles ?? '' | styleSanitizer\"\n [innerHtml]=\"previewProperties.html.after | kwikuiSafeHtml\"\n ></div>\n </ng-container>\n\n <ng-container *ngIf=\"previewProperties.unavailable\">\n <div class=\"preview-unavailable\">\n <tui-svg\n src=\"tuiIconFileLarge\"\n class=\"t-icon\"\n ></tui-svg>\n <div>Preview unavailable</div>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n id=\"kwikid-camera-container\"\n *ngIf=\"isShowCamera\"\n>\n <div\n id=\"kwikid-camera-wrapper\"\n [class.fullscreen]=\"isShowCameraFullscreen\"\n >\n <kwikid-camera\n [type]=\"cameraType\"\n [data]=\"cameraData\"\n [image]=\"cameraImage\"\n [video]=\"cameraVideo\"\n [config]=\"cameraConfig\"\n (getImage)=\"handleGetCameraMedia($event, 'CAPTURE')\"\n (getVideo)=\"handleGetCameraMedia($event, 'RECORD')\"\n (onClickBack)=\"handleOnClickCameraBack($event)\"\n (onClickClose)=\"handleOnClickCameraClose($event)\"\n (onClickSave)=\"handleOnClickSaveCameraMedia($event, cameraType)\"\n >\n <ng-container\n *ngIf=\"cameraType === 'CAPTURE'\"\n slot=\"capture-header\"\n >\n <div class=\"capture-header-container\">\n <div class=\"capture-header-left\"> </div>\n <div class=\"capture-header-center\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.title !== ''\"\n appearance=\"whiteblock\"\n [label]=\"cameraConfig?.header?.title\"\n shape=\"rounded\"\n size=\"s\"\n ></kwikui-button>\n </div>\n <div class=\"capture-header-right\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isExpand\"\n id=\"kwikid-camera-header-enlarge-button\"\n appearance=\"whiteblock\"\n [icon]=\"\n isShowCameraFullscreen ? 'tuiIconMinimize2' : 'tuiIconMaximize2'\n \"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"isShowCameraFullscreen = !isShowCameraFullscreen\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isClose\"\n id=\"kwikid-camera-header-close-button\"\n appearance=\"whiteblock\"\n icon=\"tuiIconCloseLarge\"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"handleOnClickCameraClose($event)\"\n ></kwikui-button>\n </div>\n </div>\n </ng-container>\n <ng-container\n *ngIf=\"cameraType === 'RECORD'\"\n slot=\"record-header\"\n >\n <div class=\"record-header-container\">\n <div class=\"record-header-row row-1\">\n <div class=\"record-header-left\">\n <kwikui-button\n *ngIf=\"\n cameraConfig?.header?.isBack && cameraRecordingState == 'NONE'\n \"\n appearance=\"whiteblock\"\n icon=\"tuiIconArrowLeft\"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"handleOnClickCameraClose($event)\"\n ></kwikui-button>\n </div>\n <div class=\"record-header-center\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.title !== ''\"\n appearance=\"whiteblock\"\n [label]=\"cameraConfig?.header?.title\"\n shape=\"rounded\"\n size=\"s\"\n ></kwikui-button>\n </div>\n <div class=\"record-header-right\">\n <kwikui-button\n *ngIf=\"cameraConfig?.header?.isExpand\"\n id=\"kwikid-camera-header-enlarge-button\"\n appearance=\"whiteblock\"\n [icon]=\"\n isShowCameraFullscreen\n ? 'tuiIconMinimize2'\n : 'tuiIconMaximize2'\n \"\n shape=\"rounded\"\n size=\"s\"\n (click)=\"isShowCameraFullscreen = !isShowCameraFullscreen\"\n ></kwikui-button>\n </div>\n </div>\n <div class=\"record-header-row row-2\">\n <div\n id=\"blinking-dot-container\"\n [class.recording]=\"cameraRecordingState == 'RECORDING'\"\n [class.paused]=\"cameraRecordingState == 'PAUSED'\"\n [class.recorded]=\"\n cameraRecordingState == 'NONE' ||\n cameraRecordingState === 'RECORDED'\n \"\n >\n <div\n *ngIf=\"cameraRecordingState == 'RECORDING'\"\n class=\"dot recording blink\"\n >\n </div>\n <div\n *ngIf=\"cameraRecordingState === 'PAUSED'\"\n class=\"dot paused\"\n >\n </div>\n <div\n *ngIf=\"\n cameraRecordingState == 'NONE' ||\n cameraRecordingState === 'RECORDED'\n \"\n class=\"dot recorded\"\n >\n </div>\n <div>\n {{ cameraRecordingTime | formatTimer }}\n <ng-container\n *ngIf=\"cameraConfig?.others?.maxRecordingTimeInSeconds\"\n >\n /\n {{\n cameraConfig?.others?.maxRecordingTimeInSeconds\n | formatTimer\n }}\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </kwikid-camera>\n </div>\n</div>\n", styles: [".kwikid-form-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}.kwikid-form.show{width:100%;height:100%;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.kwikid-form.show>*:not(:last-child){margin-bottom:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.kwikid-form-buttons>*:not(:last-child){margin-right:1rem}.kwikid-form-buttons *{flex-grow:1}#uf-form-fields-header-container{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start;padding:1rem 1rem 0}#uf-form-fields-header-container>*:not(:last-child){margin-bottom:.5rem}#uf-form-fields-header-container #uf-header-logo{width:-moz-fit-content;width:fit-content;height:50px}#uf-form-fields-header-container #uf-form-fields-header-main{display:flex;flex-direction:row;align-content:center;justify-content:flex-start;align-items:center;width:100%}#uf-form-fields-header-container #uf-form-fields-header-main>*:not(:last-child){margin-right:.25rem}#uf-form-fields-header-container #uf-form-fields-header-main #uf-form-fields-header-right{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start}#uf-form-fields-header-container #uf-form-fields-header-main #uf-form-fields-header-right>*{margin-bottom:.5rem}#uf-form-fields-header-container hr{width:100%}#uf-form-fields-title{color:#000;font-size:1.75em;font-weight:bold}#uf-form-fields-steps{color:var(--color-on-secondary-container);font-size:1rem}.title{border-left:.25rem solid var(--tui-primary);padding:.75rem;font-size:1.4em;font-weight:bold;background-color:var(--tui-secondary);display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center}.title>*:not(:last-child){margin-right:.5rem}.title:not(:first-child){margin-top:.5rem}.title.hidden{display:none}.large-wrapper{width:100%;height:60px}.large-wrapper:first-child{margin-bottom:auto}.large-wrapper:last-child{margin-top:auto}.kwikid-form-container-loading{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;padding:1rem}.kwikid-form-container-loading>* :not(:last-child){margin-bottom:1rem}#field-error-notification,#permission-error-notification{background-color:var(--tui-error-fill);color:#fff!important}#field-error-notification .t-top,#permission-error-notification .t-top{color:#fff!important}#field-error-notification .t-close,#permission-error-notification .t-close{color:#fff!important}.preview-container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;align-content:center;height:calc(100vh - 3rem)}@media only screen and (min-width: 768px){.preview-container{height:calc(100vh - 10rem);width:calc(100vw - 10rem)}}.preview-container>*:not(:last-child){margin-bottom:1rem}.preview-container .preview-html{flex-grow:1}.preview-container .preview-iframe-content{height:100%;flex-grow:1}.preview-container .preview-iframe-content .preview-iframe{width:100%;height:100%}.preview-container .preview-unavailable{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#fff;font-size:1.2rem;top:50%;left:50%;width:100%;height:100vh}.preview-container .preview-unavailable>*:not(:last-child){margin-bottom:1rem}#kwikid-camera-container{width:100%;height:100%;position:fixed;top:50%;left:50%;background-color:#0000008f;transform:translate(-50%,-50%);z-index:100}#kwikid-camera-container #kwikid-camera-wrapper{width:min(80%);height:max(85%);box-shadow:#0000008f 0 22px 70px 4px;overflow:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:1rem;background-color:#000;transition:5s linear ease}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container{display:flex;width:100%;max-width:100%;padding:0}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-left{flex:1;text-align:left}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-center{flex:1;width:100%;min-width:max-content;text-align:center;margin:auto}#kwikid-camera-container #kwikid-camera-wrapper .capture-header-container .capture-header-right{flex:1;text-align:right;display:flex;justify-content:flex-end;grid-gap:1rem;gap:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container{display:flex;width:100%;max-width:100%;padding:0;color:#fff;flex-direction:column;justify-content:flex-start;align-items:stretch}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-left{flex:1;display:flex;justify-content:flex-start;grid-gap:1rem;gap:1rem;text-align:left}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-center{flex:1;width:100%;min-width:max-content;text-align:center;margin:auto}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-1 .record-header-right{flex:1;text-align:right;display:flex;justify-content:flex-end;grid-gap:1rem;gap:1rem}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2{display:flex;flex-direction:row;justify-content:center;align-items:center}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;grid-gap:.25rem;gap:.25rem;padding:.35rem .6rem;width:-moz-fit-content;width:fit-content;border-radius:2rem;background-color:#f5f5f5}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.recording{color:red;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.paused{color:#525252;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container.recorded{color:#000;font-weight:bold}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot{display:inline-block;width:.75rem;height:.75rem;border-radius:100%}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.recording{background-color:red;box-shadow:0 0 5px -1px red}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.paused{background-color:#525252;box-shadow:0 0 5px -1px #000}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.recorded{background-color:#000;box-shadow:0 0 5px -1px #000}#kwikid-camera-container #kwikid-camera-wrapper .record-header-container .record-header-row.row-2 #blinking-dot-container .dot.blink{animation:blinker 1s cubic-bezier(.5,0,1,1) infinite alternate}@keyframes blinker{0%{opacity:1}to{opacity:0}}#kwikid-camera-container #kwikid-camera-wrapper.fullscreen{width:100%;height:100%;border-radius:0;transition:5s linear ease}@media only screen and (max-width: 600px){#kwikid-camera-container #kwikid-camera-wrapper{width:100%;height:100%;border-radius:0;transition:5s linear ease}#kwikid-camera-container #kwikid-camera-wrapper #kwikid-camera-header-enlarge-button{display:none}}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i3__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type"], outputs: ["onClick"] }, { type: i3__namespace.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["id", "messages"] }, { type: i3__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputEmailComponent, selector: "kwikui-input-email", inputs: ["case", "disabled", "domains", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputPasswordComponent, selector: "kwikui-input-password", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUITextareaComponent, selector: "kwikui-textarea", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUICheckboxComponent, selector: "kwikui-checkbox", inputs: ["contentAlign", "disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "placeholder", "properties", "size", "validators", "variant"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["decimal", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "min", "placeholder", "postfix", "precision", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxCalculatedFromToday", "min", "minCalculatedFromToday", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputTimeComponent, selector: "kwikui-input-time", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "items", "invalid", "label", "mode", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["countryCode", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "phoneMaskAfterCountryCode", "placeholder", "postfix", "prefix", "properties", "removeCountryCodeFromValue", "size", "validators"], outputs: ["getKeyValue"] }, { type: i5__namespace.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i3__namespace.KwikUIInputRadioComponent, selector: "kwikui-input-radio", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "items", "label", "orientation", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputSliderComponent, selector: "kwikui-input-slider", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "min", "placeholder", "postfix", "prefix", "properties", "quantum", "size", "steps", "type", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["apiTimer", "apiStatus", "class", "disabled", "id", "label", "shape", "showLoader", "size", "styles"], outputs: ["onClick", "onApiTimerStop"] }, { type: i3__namespace.KwikUIButtonLiveLocationComponent, selector: "kwikui-button-live-location", inputs: ["liveLocationStatus", "class", "disabled", "id", "label", "shape", "showLoader", "size", "styles", "isShowLatLongCaptureTimestamp"], outputs: ["onClick", "onLocationPermission"] }, { type: i3__namespace.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "mask", "mode", "otpLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["disabled", "focus", "formControl", "formControlName", "id", "invalid", "label", "mask", "placeholder", "properties", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUIImageComponent, selector: "kwikui-image", inputs: ["altText", "class", "html", "id", "imageSrc", "imageType", "loadingType", "styles"], outputs: ["onClick"] }, { type: i3__namespace.KwikUIInputFilesComponent, selector: "kwikui-input-files", inputs: ["accept", "class", "disabled", "files", "formControl", "formControlName", "icon", "id", "label", "link", "maxFileSize", "multiple", "setFileTypesToForm", "showAddedFiles", "size", "styles", "validators"], outputs: ["getKeyValue", "getRemovedFile"] }, { type: i4__namespace.KwikUIInputCameraComponent, selector: "kwikui-input-camera", inputs: ["buttonText", "disabled", "focus", "formControl", "formControlName", "icon", "id", "invalid", "mediaFiles", "properties", "showMediaFiles", "size", "type", "validators"], outputs: ["onClick", "getRemovedFile"] }, { type: i3__namespace.KwikUIStarRatingComponent, selector: "kwikui-star-rating", inputs: ["color", "disabled", "focus", "formControl", "formControlName", "icon", "iconMarked", "id", "invalid", "label", "max", "min", "placeholder", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i3__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: i6__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }, { type: i5__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i7__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i7__namespace.TuiPreviewTitleComponent, selector: "tui-preview-title" }, { type: i5__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i4__namespace.KwikIDCameraComponent, selector: "kwikid-camera", inputs: ["type", "config", "data", "image", "video"], outputs: ["getImage", "onClickSave", "getVideo"] }], directives: [{ type: i3__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i6__namespace.TuiPushDirective, selector: "tui-push" }, { type: i7__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], pipes: { "styleSanitizer": StyleSanitizerPipe, "kwikuiSafeHtml": i3__namespace.KwikUISafeHtmlPipe, "kwikuiSafeUrl": i3__namespace.KwikUISafeUrlPipe, "formatTimer": TimerPipe } });
|
|
7783
8412
|
__decorate([
|
|
7784
8413
|
kwikidToolkit.logMethod
|
|
7785
8414
|
], KwikIDFormViewComponent.prototype, "resetCamera", null);
|
|
@@ -7861,6 +8490,12 @@
|
|
|
7861
8490
|
__decorate([
|
|
7862
8491
|
kwikidToolkit.logMethod
|
|
7863
8492
|
], KwikIDFormViewComponent.prototype, "handleOnClickFormFieldButton", null);
|
|
8493
|
+
__decorate([
|
|
8494
|
+
kwikidToolkit.logMethod
|
|
8495
|
+
], KwikIDFormViewComponent.prototype, "handleOnLocationPermission", null);
|
|
8496
|
+
__decorate([
|
|
8497
|
+
kwikidToolkit.logMethod
|
|
8498
|
+
], KwikIDFormViewComponent.prototype, "handleOnClickLiveLocation", null);
|
|
7864
8499
|
__decorate([
|
|
7865
8500
|
kwikidToolkit.logMethod
|
|
7866
8501
|
], KwikIDFormViewComponent.prototype, "handleGetKeyValue", null);
|
|
@@ -7897,6 +8532,9 @@
|
|
|
7897
8532
|
__decorate([
|
|
7898
8533
|
kwikidToolkit.logMethod
|
|
7899
8534
|
], KwikIDFormViewComponent.prototype, "toggleErrorNotification", null);
|
|
8535
|
+
__decorate([
|
|
8536
|
+
kwikidToolkit.logMethod
|
|
8537
|
+
], KwikIDFormViewComponent.prototype, "togglePermissionErrorNotification", null);
|
|
7900
8538
|
__decorate([
|
|
7901
8539
|
kwikidToolkit.logMethod
|
|
7902
8540
|
], KwikIDFormViewComponent.prototype, "fieldHide", null);
|
|
@@ -7924,6 +8562,12 @@
|
|
|
7924
8562
|
__decorate([
|
|
7925
8563
|
kwikidToolkit.logMethod
|
|
7926
8564
|
], KwikIDFormViewComponent.prototype, "fieldReset", null);
|
|
8565
|
+
__decorate([
|
|
8566
|
+
kwikidToolkit.logMethod
|
|
8567
|
+
], KwikIDFormViewComponent.prototype, "fieldHideApiLoader", null);
|
|
8568
|
+
__decorate([
|
|
8569
|
+
kwikidToolkit.logMethod
|
|
8570
|
+
], KwikIDFormViewComponent.prototype, "fieldShowApiLoader", null);
|
|
7927
8571
|
__decorate([
|
|
7928
8572
|
kwikidToolkit.logMethod
|
|
7929
8573
|
], KwikIDFormViewComponent.prototype, "setHtml", null);
|
|
@@ -8038,22 +8682,22 @@
|
|
|
8038
8682
|
selector: "kwikid-form-view",
|
|
8039
8683
|
templateUrl: "./form-view.component.html",
|
|
8040
8684
|
styleUrls: ["./form-view.component.scss", "../shared.scss"],
|
|
8041
|
-
providers: [KwikIDFormViewService]
|
|
8685
|
+
providers: [KwikIDFormViewService, KwikIDFormViewApiService]
|
|
8042
8686
|
}]
|
|
8043
8687
|
}], ctorParameters: function () {
|
|
8044
|
-
return [{ type: i0__namespace.ChangeDetectorRef }, { type: KwikIDFormViewService }, { type:
|
|
8688
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: KwikIDFormViewService }, { type: KwikIDFormViewApiService }, { type: i6__namespace.TuiPushService, decorators: [{
|
|
8045
8689
|
type: i0.Inject,
|
|
8046
|
-
args: [
|
|
8047
|
-
}] }, { type:
|
|
8690
|
+
args: [i6.TuiPushService]
|
|
8691
|
+
}] }, { type: i5__namespace.TuiAlertService, decorators: [{
|
|
8048
8692
|
type: i0.Inject,
|
|
8049
|
-
args: [
|
|
8050
|
-
}] }, { type:
|
|
8693
|
+
args: [i5.TuiAlertService]
|
|
8694
|
+
}] }, { type: i7__namespace.TuiPreviewDialogService, decorators: [{
|
|
8051
8695
|
type: i0.Inject,
|
|
8052
|
-
args: [
|
|
8053
|
-
}] }, { type:
|
|
8696
|
+
args: [i7.TuiPreviewDialogService]
|
|
8697
|
+
}] }, { type: i5__namespace.TuiDialogService, decorators: [{
|
|
8054
8698
|
type: i0.Inject,
|
|
8055
|
-
args: [
|
|
8056
|
-
}] }, { type:
|
|
8699
|
+
args: [i5.TuiDialogService]
|
|
8700
|
+
}] }, { type: i3__namespace.KwikUILoaderService }, { type: i4__namespace.KwikIDCameraRecordService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8057
8701
|
}, propDecorators: { dialog: [{
|
|
8058
8702
|
type: i0.ViewChild,
|
|
8059
8703
|
args: ["dialog"]
|
|
@@ -8094,7 +8738,7 @@
|
|
|
8094
8738
|
type: i0.Output
|
|
8095
8739
|
}], onClickViewForms: [{
|
|
8096
8740
|
type: i0.Output
|
|
8097
|
-
}], resetCamera: [], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], ngOnDestroy: [], triggerLogs: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormFieldGroupsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldGroupActions: [], handleConnectedElementFieldGroup: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleRemovedFile: [], handleGetKeyValueFile: [], handleOnClickGetRemovedMediaFile: [], handleOnClickInputCamera: [], setCameraMedia: [], handleGetCameraMedia: [], handleOnClickSaveCameraMedia: [], handleOnClickCameraBack: [], handleOnClickCameraClose: [], updateFiles: [], uploadFile: [], handleOnClickFormFieldButton: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleFieldApiCall: [], handleApiCall: [], executeApiCall: [], isValidRequestHeadersAndBody: [], handleOnClickApiCall: [], handleOnClickGoBack: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], handleOnApiTimerStop: [], toggleErrorNotification: [], fieldHide: [], fieldGroupHide: [], fieldShow: [], fieldGroupShow: [], fieldDisable: [], fieldGroupDisable: [], fieldEnable: [], fieldGroupEnable: [], fieldReset: [], setHtml: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setValue: [], setFieldDefaultValue: [], setApiStatus: [], setApiHeaderValue: [], setApiHeaderValidity: [], setApiBodyValue: [], setApiBodyValidity: [], setFieldValidity: [], setDropdownOptions: [], apiCall: [], fieldApiCall: [], fieldMultipleApiCalls: [], fieldMultipleApiCallsEnd: [], taskApiCall: [], taskMultipleApiCalls: [], taskMultipleApiCallsEnd: [], dialogShow: [], dialogHide: [], redirectToUrl: [], patchFieldControlValue: [], setFieldControlValue: [], patchFormGroup: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], showPreview: [], showErrorPreview: [], showPopupForm: [], alertShow: [], takeActionOnFieldGroup: [], takeAction: [] } });
|
|
8741
|
+
}], resetCamera: [], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], ngOnDestroy: [], triggerLogs: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormFieldGroupsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldGroupActions: [], handleConnectedElementFieldGroup: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleRemovedFile: [], handleGetKeyValueFile: [], handleOnClickGetRemovedMediaFile: [], handleOnClickInputCamera: [], setCameraMedia: [], handleGetCameraMedia: [], handleOnClickSaveCameraMedia: [], handleOnClickCameraBack: [], handleOnClickCameraClose: [], updateFiles: [], uploadFile: [], handleOnClickFormFieldButton: [], handleOnLocationPermission: [], handleOnClickLiveLocation: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleFieldApiCall: [], handleApiCall: [], executeApiCall: [], isValidRequestHeadersAndBody: [], handleOnClickApiCall: [], handleOnClickGoBack: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], handleOnApiTimerStop: [], toggleErrorNotification: [], togglePermissionErrorNotification: [], fieldHide: [], fieldGroupHide: [], fieldShow: [], fieldGroupShow: [], fieldDisable: [], fieldGroupDisable: [], fieldEnable: [], fieldGroupEnable: [], fieldReset: [], fieldHideApiLoader: [], fieldShowApiLoader: [], setHtml: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setValue: [], setFieldDefaultValue: [], setApiStatus: [], setApiHeaderValue: [], setApiHeaderValidity: [], setApiBodyValue: [], setApiBodyValidity: [], setFieldValidity: [], setDropdownOptions: [], apiCall: [], fieldApiCall: [], fieldMultipleApiCalls: [], fieldMultipleApiCallsEnd: [], taskApiCall: [], taskMultipleApiCalls: [], taskMultipleApiCallsEnd: [], dialogShow: [], dialogHide: [], redirectToUrl: [], patchFieldControlValue: [], setFieldControlValue: [], patchFormGroup: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], showPreview: [], showErrorPreview: [], showPopupForm: [], alertShow: [], takeActionOnFieldGroup: [], takeAction: [] } });
|
|
8098
8742
|
|
|
8099
8743
|
var EFormType;
|
|
8100
8744
|
(function (EFormType) {
|
|
@@ -8316,7 +8960,7 @@
|
|
|
8316
8960
|
return KwikIDFormsListComponent;
|
|
8317
8961
|
}());
|
|
8318
8962
|
/** @nocollapse */ KwikIDFormsListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8319
|
-
/** @nocollapse */ KwikIDFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: { showFormFields: "showFormFields", userConfig: "userConfig", stepConfig: "stepConfig", activeFormConfig: "activeFormConfig", formsList: "formsList", formsListCompleted: "formsListCompleted", isMobileView: "isMobileView", isUnsavedData: "isUnsavedData" }, outputs: { getLogs: "getLogs", onClickSetActiveForm: "onClickSetActiveForm", onClickHideFormsList: "onClickHideFormsList", onClickSubmitForms: "onClickSubmitForms" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n id=\"sidebar-container\"\n *ngIf=\"!loading\"\n>\n <div id=\"sidebar\">\n <div ngClass=\"kwikid-form-header\">\n <div id=\"uf-header\">\n <div id=\"uf-header-logo-container\">\n <img\n id=\"uf-header-logo\"\n src=\"{{ this.userConfig.theme.clientLogo }}\"\n [ngClass]=\"'large-icon'\"\n />\n </div>\n </div>\n <hr />\n </div>\n <div id=\"uf-progress\">\n <div id=\"uf-progress-steps\">\n {{ this.formsListCompleted.length }} / {{ this.formsListLength }} Steps\n Completed\n </div>\n <kwikui-progress-segmented\n [max]=\"this.formsListLength\"\n size=\"m\"\n [value]=\"this.formsListCompleted.length\"\n ></kwikui-progress-segmented>\n </div>\n <div id=\"uf-sections-container\">\n <ng-container *ngFor=\"let form of formsList; let i = index\">\n <ng-container [ngSwitch]=\"form.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'HTML'\">\n <div [innerHtml]=\"form.props.htmlContent | kwikuiSafeHtml\"></div>\n </ng-container>\n <!-- Type FORM -->\n <ng-container *ngSwitchCase=\"'FORM'\">\n <ng-container\n [ngTemplateOutlet]=\"FORM_BUTTON\"\n [ngTemplateOutletContext]=\"{\n form: form,\n activeFormConfig: activeFormConfig\n }\"\n >\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <div id=\"submit-sidebar-btn-container\">\n <kwikui-button\n *ngIf=\"\n !stepConfig.props.formListProperties.footer.submitFormButton.hidden\n \"\n label=\"{{\n stepConfig.props.formListProperties.footer.submitFormButton.label\n }}\"\n type=\"submit\"\n styles=\"width: 100%\"\n (onClick)=\"handleOnSubmitForms($event)\"\n ></kwikui-button>\n </div>\n </div>\n</div>\n\n<ng-template\n #FORM_BUTTON\n let-form=\"form\"\n let-activeFormConfig=\"activeFormConfig\"\n>\n <div\n [class]=\"'uf-section-item'\"\n [class.completed]=\"form.status === 'completed' && !form.disabled\"\n [class.edit]=\"form.status === 'editable' && !form.disabled\"\n [class.locked]=\"form.status === 'locked' && form.disabled\"\n [class.active]=\"\n activeFormConfig !== undefined && form.key === activeFormConfig.key\n \"\n (click)=\"\n form.status === 'locked' && form.disabled\n ? undefined\n : handleOnClickSetActiveForm(form.key)\n \"\n >\n <div class=\"uf-form-section-card-title\">\n {{ form.props.title }} <span *ngIf=\"form?.required\">*</span>\n </div>\n <div class=\"uf-form-section-card-status\">\n <div\n *ngIf=\"form.status === 'completed' && !form.disabled\"\n class=\"uf-form-section-card-status-img completed\"\n >\n <tui-svg src=\"tuiIconCheckLarge\"></tui-svg>\n </div>\n <div\n *ngIf=\"form.status !== 'completed' && !form.disabled\"\n class=\"uf-form-section-card-status-img edit\"\n >\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\n </div>\n <div\n *ngIf=\"form.status !== 'completed' && form.disabled\"\n class=\"uf-form-section-card-status-img locked\"\n >\n <tui-svg src=\"tuiIconLock\"></tui-svg>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["#sidebar-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}#sidebar{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;cursor:pointer;box-shadow:0 1px 3px -1px var(--tui-base-05);border-radius:.5rem;background-color:var(--tui-base-02);position:relative}.uf-section-item>*:not(:last-child){margin-right:1rem}.uf-section-item:hover{box-shadow:0 1px 3px -1px var(--tui-base-08)}#submit-sidebar-btn-container{width:100%;bottom:0px;z-index:1;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#submit-sidebar-btn-container>*:not(:last-child){margin-right:1rem}#submit-sidebar-btn-container *{flex-grow:1}#uf-sections-container{display:flex;flex-direction:column;height:100%;padding:1rem;overflow-y:auto}#uf-sections-container>*:not(:last-child){margin-bottom:1rem}.uf-form-section-card{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;border:none;border-radius:8px;background-color:#e9e9e9;height:-moz-fit-content;height:fit-content;min-height:60px;padding:10px 15px;width:100%;max-width:350px;margin:0 auto}.uf-form-section-card>*:not(:last-child){margin-right:.5rem}.uf-section-item.locked{-webkit-user-select:none;user-select:none;cursor:not-allowed}.uf-form-section-card .uf-form-section-card-title{font-size:1.2em;text-align:left;line-height:1.25em}.uf-form-section-card .uf-form-section-card-status{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.uf-form-section-card .uf-form-section-card-status .uf-form-section-card-status-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.uf-form-section-card-status-img.completed{background-color:var(--tui-success-fill);padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-status-img.edit{background-color:var(--tui-error-fill);padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-status-img.locked{background-color:var(--tui-neutral-fill);padding:.25rem;border-radius:50%;color:#fff}#uf-progress{display:flex;padding:1rem;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}#uf-progress>*:not(:last-child){margin-bottom:.5rem}#uf-progress-steps{font-size:1em;text-align:right;color:#3d3d3d}.uf-form-section-card-title{font-size:1em;font-weight:bold;color:#000}@media screen and (max-width: 600px){#sidebar-container{max-width:unset}}.kwikid-form-header{height:70px;z-index:6}.kwikid-form-header hr{width:calc(100% - 1rem);margin-left:auto;margin-right:auto}#uf-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:flex-start;padding:10px 20px;width:100%;max-width:calc(400px + 50vw + 2rem);margin:0 auto;height:70px;z-index:1}#uf-header>*:not(:last-child){margin-right:1rem}#uf-header #uf-header-goback-container{display:none}#uf-header #uf-header-goback-container:hover{border-radius:50%;background-color:#d3d3d3}#uf-header #uf-header-goback-container #uf-header-goback{width:100%;height:auto}#uf-header #uf-header-logo-container{display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#uf-header #uf-header-logo-container #uf-header-logo.small-icon{width:100%;height:50px}#uf-header #uf-header-logo-container #uf-header-logo.large-icon{width:100%;height:50px}#uf-header #uf-header-title-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}#uf-header #uf-header-title-container>*:not(:last-child){margin-bottom:.5rem}#uf-header #uf-header-title-container #uf-header-title{font-size:1.4em;color:#121212}#uf-header #uf-header-title-container #uf-header-subtitle{font-size:1.2em;color:#121212}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type:
|
|
8963
|
+
/** @nocollapse */ KwikIDFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: { showFormFields: "showFormFields", userConfig: "userConfig", stepConfig: "stepConfig", activeFormConfig: "activeFormConfig", formsList: "formsList", formsListCompleted: "formsListCompleted", isMobileView: "isMobileView", isUnsavedData: "isUnsavedData" }, outputs: { getLogs: "getLogs", onClickSetActiveForm: "onClickSetActiveForm", onClickHideFormsList: "onClickHideFormsList", onClickSubmitForms: "onClickSubmitForms" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n id=\"sidebar-container\"\n *ngIf=\"!loading\"\n>\n <div id=\"sidebar\">\n <div ngClass=\"kwikid-form-header\">\n <div id=\"uf-header\">\n <div id=\"uf-header-logo-container\">\n <img\n id=\"uf-header-logo\"\n src=\"{{ this.userConfig.theme.clientLogo }}\"\n [ngClass]=\"'large-icon'\"\n />\n </div>\n </div>\n <hr />\n </div>\n <div id=\"uf-progress\">\n <div id=\"uf-progress-steps\">\n {{ this.formsListCompleted.length }} / {{ this.formsListLength }} Steps\n Completed\n </div>\n <kwikui-progress-segmented\n [max]=\"this.formsListLength\"\n size=\"m\"\n [value]=\"this.formsListCompleted.length\"\n ></kwikui-progress-segmented>\n </div>\n <div id=\"uf-sections-container\">\n <ng-container *ngFor=\"let form of formsList; let i = index\">\n <ng-container [ngSwitch]=\"form.type\">\n <!-- HTML Content -->\n <ng-container *ngSwitchCase=\"'HTML'\">\n <div [innerHtml]=\"form.props.htmlContent | kwikuiSafeHtml\"></div>\n </ng-container>\n <!-- Type FORM -->\n <ng-container *ngSwitchCase=\"'FORM'\">\n <ng-container\n [ngTemplateOutlet]=\"FORM_BUTTON\"\n [ngTemplateOutletContext]=\"{\n form: form,\n activeFormConfig: activeFormConfig\n }\"\n >\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <div id=\"submit-sidebar-btn-container\">\n <kwikui-button\n *ngIf=\"\n !stepConfig.props.formListProperties.footer.submitFormButton.hidden\n \"\n label=\"{{\n stepConfig.props.formListProperties.footer.submitFormButton.label\n }}\"\n type=\"submit\"\n styles=\"width: 100%\"\n (onClick)=\"handleOnSubmitForms($event)\"\n ></kwikui-button>\n </div>\n </div>\n</div>\n\n<ng-template\n #FORM_BUTTON\n let-form=\"form\"\n let-activeFormConfig=\"activeFormConfig\"\n>\n <div\n [class]=\"'uf-section-item'\"\n [class.completed]=\"form.status === 'completed' && !form.disabled\"\n [class.edit]=\"form.status === 'editable' && !form.disabled\"\n [class.locked]=\"form.status === 'locked' && form.disabled\"\n [class.active]=\"\n activeFormConfig !== undefined && form.key === activeFormConfig.key\n \"\n (click)=\"\n form.status === 'locked' && form.disabled\n ? undefined\n : handleOnClickSetActiveForm(form.key)\n \"\n >\n <div class=\"uf-form-section-card-title\">\n {{ form.props.title }} <span *ngIf=\"form?.required\">*</span>\n </div>\n <div class=\"uf-form-section-card-status\">\n <div\n *ngIf=\"form.status === 'completed' && !form.disabled\"\n class=\"uf-form-section-card-status-img completed\"\n >\n <tui-svg src=\"tuiIconCheckLarge\"></tui-svg>\n </div>\n <div\n *ngIf=\"form.status !== 'completed' && !form.disabled\"\n class=\"uf-form-section-card-status-img edit\"\n >\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\n </div>\n <div\n *ngIf=\"form.status !== 'completed' && form.disabled\"\n class=\"uf-form-section-card-status-img locked\"\n >\n <tui-svg src=\"tuiIconLock\"></tui-svg>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["#sidebar-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}#sidebar{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;cursor:pointer;box-shadow:0 1px 3px -1px var(--tui-base-05);border-radius:.5rem;background-color:var(--tui-base-02);position:relative}.uf-section-item>*:not(:last-child){margin-right:1rem}.uf-section-item:hover{box-shadow:0 1px 3px -1px var(--tui-base-08)}#submit-sidebar-btn-container{width:100%;bottom:0px;z-index:1;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#submit-sidebar-btn-container>*:not(:last-child){margin-right:1rem}#submit-sidebar-btn-container *{flex-grow:1}#uf-sections-container{display:flex;flex-direction:column;height:100%;padding:1rem;overflow-y:auto}#uf-sections-container>*:not(:last-child){margin-bottom:1rem}.uf-form-section-card{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;border:none;border-radius:8px;background-color:#e9e9e9;height:-moz-fit-content;height:fit-content;min-height:60px;padding:10px 15px;width:100%;max-width:350px;margin:0 auto}.uf-form-section-card>*:not(:last-child){margin-right:.5rem}.uf-section-item.locked{-webkit-user-select:none;user-select:none;cursor:not-allowed}.uf-form-section-card .uf-form-section-card-title{font-size:1.2em;text-align:left;line-height:1.25em}.uf-form-section-card .uf-form-section-card-status{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.uf-form-section-card .uf-form-section-card-status .uf-form-section-card-status-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.uf-form-section-card-status-img.completed{background-color:var(--tui-success-fill);padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-status-img.edit{background-color:var(--tui-error-fill);padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-status-img.locked{background-color:var(--tui-neutral-fill);padding:.25rem;border-radius:50%;color:#fff}#uf-progress{display:flex;padding:1rem;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}#uf-progress>*:not(:last-child){margin-bottom:.5rem}#uf-progress-steps{font-size:1em;text-align:right;color:#3d3d3d}.uf-form-section-card-title{font-size:1em;font-weight:bold;color:#000}@media screen and (max-width: 600px){#sidebar-container{max-width:unset}}.kwikid-form-header{height:70px;z-index:6}.kwikid-form-header hr{width:calc(100% - 1rem);margin-left:auto;margin-right:auto}#uf-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:flex-start;padding:10px 20px;width:100%;max-width:calc(400px + 50vw + 2rem);margin:0 auto;height:70px;z-index:1}#uf-header>*:not(:last-child){margin-right:1rem}#uf-header #uf-header-goback-container{display:none}#uf-header #uf-header-goback-container:hover{border-radius:50%;background-color:#d3d3d3}#uf-header #uf-header-goback-container #uf-header-goback{width:100%;height:auto}#uf-header #uf-header-logo-container{display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#uf-header #uf-header-logo-container #uf-header-logo.small-icon{width:100%;height:50px}#uf-header #uf-header-logo-container #uf-header-logo.large-icon{width:100%;height:50px}#uf-header #uf-header-title-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}#uf-header #uf-header-title-container>*:not(:last-child){margin-bottom:.5rem}#uf-header #uf-header-title-container #uf-header-title{font-size:1.4em;color:#121212}#uf-header #uf-header-title-container #uf-header-subtitle{font-size:1.2em;color:#121212}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i3__namespace.KwikUIProgressSegmentedComponent, selector: "kwikui-progress-segmented", inputs: ["colors", "id", "max", "size", "value"] }, { type: i3__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type"], outputs: ["onClick"] }, { type: i5__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i3__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "kwikuiSafeHtml": i3__namespace.KwikUISafeHtmlPipe } });
|
|
8320
8964
|
__decorate([
|
|
8321
8965
|
kwikidToolkit.logMethod
|
|
8322
8966
|
], KwikIDFormsListComponent.prototype, "ngOnChanges", null);
|
|
@@ -9409,8 +10053,8 @@
|
|
|
9409
10053
|
};
|
|
9410
10054
|
return KwikIDFormsRendererComponent;
|
|
9411
10055
|
}());
|
|
9412
|
-
/** @nocollapse */ KwikIDFormsRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsRendererComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token:
|
|
9413
|
-
/** @nocollapse */ KwikIDFormsRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsRendererComponent, selector: "kwikid-forms-renderer", inputs: { stepConfig: "stepConfig", userConfig: "userConfig", formsData: "formsData", activeFormData: "activeFormData", apiCallResponse: "apiCallResponse", buttonClickResponse: "buttonClickResponse" }, outputs: { onClickSubmit: "onClickSubmit", getFormData: "getFormData", onClickApiCall: "onClickApiCall", getLogs: "getLogs", onClickFormFieldButton: "onClickFormFieldButton" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div ngClass=\"kwikid-renderer\">\n <div\n ngClass=\"kwikid-layout-container\"\n *ngIf=\"!loading\"\n >\n <div\n ngClass=\"kwikid-sections-container\"\n *ngIf=\"showFormSections\"\n class=\"active\"\n [class.active]=\"showFormSections\"\n [class.mobile]=\"isMobileView\"\n >\n <kwikid-forms-list\n [showFormFields]=\"this.showFormFields\"\n [activeFormConfig]=\"this.activeFormConfig\"\n [userConfig]=\"this.userConfig\"\n [formsList]=\"this.formsList\"\n [stepConfig]=\"this.stepConfig\"\n [isUnsavedData]=\"this.isUnsavedData\"\n [formsListCompleted]=\"this.formsListCompleted\"\n [isMobileView]=\"this.isMobileView\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSetActiveForm)=\"\n this.handleOnClickSetActiveForm($event, 'BUTTON_CLICK')\n \"\n (onClickSubmitForms)=\"this.handleOnClickSubmitForms($event)\"\n ></kwikid-forms-list>\n </div>\n <div\n ngClass=\"kwikid-forms-container\"\n *ngIf=\"\n this.showForm &&\n this.showFormFields &&\n this.activeFormConfig !== undefined\n \"\n [class.active]=\"showFormFields\"\n [class.mobile]=\"isMobileView\"\n [@panelInOut]\n >\n <kwikid-form-view\n *ngIf=\"this.activeFormConfig.type === 'FORM'\"\n [formConfig]=\"this.activeFormConfig\"\n [allFormsData]=\"this.allFormsData\"\n [isMobileView]=\"this.isMobileView\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [popupFormCallback]=\"this.popupFormCallback\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getUnsavedDataState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onActionShowPopupForm)=\"\n this.handleOnActionShowPopupForm($event, content)\n \"\n (onClickGoBack)=\"this.handleOnClickGoBack($event)\"\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'FORM', undefined)\n \"\n ></kwikid-form-view>\n </div>\n </div>\n</div>\n\n<kwikui-loader></kwikui-loader>\n\n<tui-push\n id=\"error-notification\"\n *tuiPush=\"showErrorNotification\"\n heading=\"Please complete the required Forms!\"\n type=\"Error\"\n (close)=\"toggleErrorNotification(false)\"\n>\n <tui-svg\n src=\"tuiIconXCircle\"\n style=\"color: #fff !important\"\n >\n </tui-svg>\n</tui-push>\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n *ngIf=\"popupFormConfig\"\n >\n <tui-preview-title *ngIf=\"previewProperties.title !== ''\">{{\n previewProperties.title\n }}</tui-preview-title>\n\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formData]=\"activePopupFormData\"\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"allFormsData\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [isMobileView]=\"this.isMobileView\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getSavedState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'POPUP_FORM', undefined)\n \"\n ></kwikid-form-view>\n </div>\n\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n </tui-preview>\n</ng-template>\n<ng-template\n #content\n let-context\n>\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formData]=\"activePopupFormData\"\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"allFormsData\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [isMobileView]=\"this.isMobileView\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getSavedState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'POPUP_FORM', context)\n \"\n ></kwikid-form-view>\n </div>\n</ng-template>\n", styles: [":host{position:relative;height:100%}.kwikid-root{width:100%;height:100%}.kwikid-renderer{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-layout-container{display:flex;flex-direction:row;padding:0 1rem;height:100%;justify-content:center;align-items:stretch;background:var(--tui-secondary-active);position:relative}.kwikid-sections-container{display:block;width:100%;max-width:400px;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);margin:auto 1rem auto 0;box-shadow:0 0 12px -8px var(--tui-secondary)}.kwikid-sections-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}.kwikid-forms-container{display:block;width:100%;max-width:min(50%,600px);margin:auto 0;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-forms-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}@media screen and (max-width: 600px){.kwikid-layout-container{padding:0;background:transparent}.kwikid-sections-container{position:absolute;max-width:100%;bottom:-10000px;left:-10000px;opacity:0;padding:0;visibility:hidden}.kwikid-sections-container.active{visibility:visible}.kwikid-sections-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container{display:none;max-width:100%;height:100%;padding:0;border-radius:0;box-shadow:none}.kwikid-forms-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container.active{display:block}}#error-notification{background-color:var(--tui-error-fill);color:#fff!important}#error-notification .t-top{color:#fff!important}#error-notification .t-close{color:#fff!important}.preview-container{display:flex!important;flex-grow:1!important;flex-direction:column!important;align-content:center!important;justify-content:space-between!important;align-items:stretch!important}.preview-container .preview-iframe{width:100vw;height:100vh}.preview-container .preview-unavailable{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#fff;font-size:1.2rem;top:50%;left:50%;width:100%;height:100vh}.preview-container .preview-unavailable>*:not(:last-child){margin-bottom:1rem}.kwikid-form-view-popup-container{border-radius:1rem;background:var(--tui-base-01)}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: ["showFormFields", "userConfig", "stepConfig", "activeFormConfig", "formsList", "formsListCompleted", "isMobileView", "isUnsavedData"], outputs: ["getLogs", "onClickSetActiveForm", "onClickHideFormsList", "onClickSubmitForms"] }, { type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }, { type: i2__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: i5__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }, { type: i4__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i6__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i6__namespace.TuiPreviewTitleComponent, selector: "tui-preview-title" }, { type: i4__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i3__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i5__namespace.TuiPushDirective, selector: "tui-push" }, { type: i6__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], animations: [
|
|
10056
|
+
/** @nocollapse */ KwikIDFormsRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsRendererComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i7.TuiPreviewDialogService }, { token: i3__namespace.KwikUILoaderService }, { token: i5.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10057
|
+
/** @nocollapse */ KwikIDFormsRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDFormsRendererComponent, selector: "kwikid-forms-renderer", inputs: { stepConfig: "stepConfig", userConfig: "userConfig", formsData: "formsData", activeFormData: "activeFormData", apiCallResponse: "apiCallResponse", buttonClickResponse: "buttonClickResponse" }, outputs: { onClickSubmit: "onClickSubmit", getFormData: "getFormData", onClickApiCall: "onClickApiCall", getLogs: "getLogs", onClickFormFieldButton: "onClickFormFieldButton" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div ngClass=\"kwikid-renderer\">\n <div\n ngClass=\"kwikid-layout-container\"\n *ngIf=\"!loading\"\n >\n <div\n ngClass=\"kwikid-sections-container\"\n *ngIf=\"showFormSections\"\n class=\"active\"\n [class.active]=\"showFormSections\"\n [class.mobile]=\"isMobileView\"\n >\n <kwikid-forms-list\n [showFormFields]=\"this.showFormFields\"\n [activeFormConfig]=\"this.activeFormConfig\"\n [userConfig]=\"this.userConfig\"\n [formsList]=\"this.formsList\"\n [stepConfig]=\"this.stepConfig\"\n [isUnsavedData]=\"this.isUnsavedData\"\n [formsListCompleted]=\"this.formsListCompleted\"\n [isMobileView]=\"this.isMobileView\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSetActiveForm)=\"\n this.handleOnClickSetActiveForm($event, 'BUTTON_CLICK')\n \"\n (onClickSubmitForms)=\"this.handleOnClickSubmitForms($event)\"\n ></kwikid-forms-list>\n </div>\n <div\n ngClass=\"kwikid-forms-container\"\n *ngIf=\"\n this.showForm &&\n this.showFormFields &&\n this.activeFormConfig !== undefined\n \"\n [class.active]=\"showFormFields\"\n [class.mobile]=\"isMobileView\"\n [@panelInOut]\n >\n <kwikid-form-view\n *ngIf=\"this.activeFormConfig.type === 'FORM'\"\n [formConfig]=\"this.activeFormConfig\"\n [allFormsData]=\"this.allFormsData\"\n [isMobileView]=\"this.isMobileView\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [popupFormCallback]=\"this.popupFormCallback\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getUnsavedDataState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onActionShowPopupForm)=\"\n this.handleOnActionShowPopupForm($event, content)\n \"\n (onClickGoBack)=\"this.handleOnClickGoBack($event)\"\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'FORM', undefined)\n \"\n ></kwikid-form-view>\n </div>\n </div>\n</div>\n\n<kwikui-loader></kwikui-loader>\n\n<tui-push\n id=\"error-notification\"\n *tuiPush=\"showErrorNotification\"\n heading=\"Please complete the required Forms!\"\n type=\"Error\"\n (close)=\"toggleErrorNotification(false)\"\n>\n <tui-svg\n src=\"tuiIconXCircle\"\n style=\"color: #fff !important\"\n >\n </tui-svg>\n</tui-push>\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n *ngIf=\"popupFormConfig\"\n >\n <tui-preview-title *ngIf=\"previewProperties.title !== ''\">{{\n previewProperties.title\n }}</tui-preview-title>\n\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formData]=\"activePopupFormData\"\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"allFormsData\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [isMobileView]=\"this.isMobileView\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getSavedState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'POPUP_FORM', undefined)\n \"\n ></kwikid-form-view>\n </div>\n\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n </tui-preview>\n</ng-template>\n<ng-template\n #content\n let-context\n>\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formData]=\"activePopupFormData\"\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"allFormsData\"\n [userConfig]=\"this.userConfig\"\n [stepConfig]=\"this.stepConfig\"\n [isMobileView]=\"this.isMobileView\"\n [apiCallResponse]=\"this.apiCallResponse\"\n [buttonClickResponse]=\"this.buttonClickResponse\"\n (onClickFormFieldButton)=\"handleOnClickFormFieldButton($event)\"\n (getSavedState)=\"handleGetUnsavedState($event)\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (getLogs)=\"handleGetLogs($event)\"\n (onClickSaveForm)=\"\n this.handleOnClickSaveForm($event, 'POPUP_FORM', context)\n \"\n ></kwikid-form-view>\n </div>\n</ng-template>\n", styles: [":host{position:relative;height:100%}.kwikid-root{width:100%;height:100%}.kwikid-renderer{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-layout-container{display:flex;flex-direction:row;padding:0 1rem;height:100%;justify-content:center;align-items:stretch;background:var(--tui-secondary-active);position:relative}.kwikid-sections-container{display:block;width:100%;max-width:400px;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);margin:auto 1rem auto 0;box-shadow:0 0 12px -8px var(--tui-secondary)}.kwikid-sections-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}.kwikid-forms-container{display:block;width:100%;max-width:min(50%,600px);margin:auto 0;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-forms-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}@media screen and (max-width: 600px){.kwikid-layout-container{padding:0;background:transparent}.kwikid-sections-container{position:absolute;max-width:100%;bottom:-10000px;left:-10000px;opacity:0;padding:0;visibility:hidden}.kwikid-sections-container.active{visibility:visible}.kwikid-sections-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container{display:none;max-width:100%;height:100%;padding:0;border-radius:0;box-shadow:none}.kwikid-forms-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container.active{display:block}}#error-notification{background-color:var(--tui-error-fill);color:#fff!important}#error-notification .t-top{color:#fff!important}#error-notification .t-close{color:#fff!important}.preview-container{display:flex!important;flex-grow:1!important;flex-direction:column!important;align-content:center!important;justify-content:space-between!important;align-items:stretch!important}.preview-container .preview-iframe{width:100vw;height:100vh}.preview-container .preview-unavailable{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;color:#fff;font-size:1.2rem;top:50%;left:50%;width:100%;height:100vh}.preview-container .preview-unavailable>*:not(:last-child){margin-bottom:1rem}.kwikid-form-view-popup-container{border-radius:1rem;background:var(--tui-base-01)}\n", "::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: ["showFormFields", "userConfig", "stepConfig", "activeFormConfig", "formsList", "formsListCompleted", "isMobileView", "isUnsavedData"], outputs: ["getLogs", "onClickSetActiveForm", "onClickHideFormsList", "onClickSubmitForms"] }, { type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }, { type: i3__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: i6__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }, { type: i5__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i7__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i7__namespace.TuiPreviewTitleComponent, selector: "tui-preview-title" }, { type: i5__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i3__namespace$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i6__namespace.TuiPushDirective, selector: "tui-push" }, { type: i7__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], animations: [
|
|
9414
10058
|
animations.trigger("panelInOut", [
|
|
9415
10059
|
animations.transition(":enter", [
|
|
9416
10060
|
animations.style({ transform: "translateY(100%)" }),
|
|
@@ -9512,12 +10156,12 @@
|
|
|
9512
10156
|
]
|
|
9513
10157
|
}]
|
|
9514
10158
|
}], ctorParameters: function () {
|
|
9515
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type:
|
|
10159
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i7__namespace.TuiPreviewDialogService, decorators: [{
|
|
9516
10160
|
type: i0.Inject,
|
|
9517
|
-
args: [
|
|
9518
|
-
}] }, { type:
|
|
10161
|
+
args: [i7.TuiPreviewDialogService]
|
|
10162
|
+
}] }, { type: i3__namespace.KwikUILoaderService }, { type: i5__namespace.TuiDialogService, decorators: [{
|
|
9519
10163
|
type: i0.Inject,
|
|
9520
|
-
args: [
|
|
10164
|
+
args: [i5.TuiDialogService]
|
|
9521
10165
|
}] }];
|
|
9522
10166
|
}, propDecorators: { windowResizeWatcher: [{
|
|
9523
10167
|
type: i0.HostListener,
|
|
@@ -9575,28 +10219,28 @@
|
|
|
9575
10219
|
return KwikIDBuilderFormEditorModule;
|
|
9576
10220
|
}());
|
|
9577
10221
|
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9578
|
-
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, declarations: [KwikIDBuilderFormEditorComponent, JsonFormatPipe], imports: [i3$
|
|
10222
|
+
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, declarations: [KwikIDBuilderFormEditorComponent, JsonFormatPipe], imports: [i3$2.CommonModule,
|
|
9579
10223
|
i3.FormsModule,
|
|
9580
10224
|
i3.ReactiveFormsModule,
|
|
9581
|
-
|
|
9582
|
-
|
|
10225
|
+
i3$1.KwikUIModule,
|
|
10226
|
+
i5.TuiSvgModule], exports: [KwikIDBuilderFormEditorComponent] });
|
|
9583
10227
|
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, providers: [KwikIDFormBuilderFormEditorService], imports: [[
|
|
9584
|
-
i3$
|
|
10228
|
+
i3$2.CommonModule,
|
|
9585
10229
|
i3.FormsModule,
|
|
9586
10230
|
i3.ReactiveFormsModule,
|
|
9587
|
-
|
|
9588
|
-
|
|
10231
|
+
i3$1.KwikUIModule,
|
|
10232
|
+
i5.TuiSvgModule
|
|
9589
10233
|
]] });
|
|
9590
10234
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, decorators: [{
|
|
9591
10235
|
type: i0.NgModule,
|
|
9592
10236
|
args: [{
|
|
9593
10237
|
declarations: [KwikIDBuilderFormEditorComponent, JsonFormatPipe],
|
|
9594
10238
|
imports: [
|
|
9595
|
-
i3$
|
|
10239
|
+
i3$2.CommonModule,
|
|
9596
10240
|
i3.FormsModule,
|
|
9597
10241
|
i3.ReactiveFormsModule,
|
|
9598
|
-
|
|
9599
|
-
|
|
10242
|
+
i3$1.KwikUIModule,
|
|
10243
|
+
i5.TuiSvgModule
|
|
9600
10244
|
],
|
|
9601
10245
|
exports: [KwikIDBuilderFormEditorComponent],
|
|
9602
10246
|
providers: [KwikIDFormBuilderFormEditorService]
|
|
@@ -9609,31 +10253,31 @@
|
|
|
9609
10253
|
return KwikIDBuilderFormsListModule;
|
|
9610
10254
|
}());
|
|
9611
10255
|
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9612
|
-
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, declarations: [KwikIDBuilderFormsListComponent], imports: [i3$
|
|
10256
|
+
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, declarations: [KwikIDBuilderFormsListComponent], imports: [i3$2.CommonModule,
|
|
9613
10257
|
i3.FormsModule,
|
|
9614
10258
|
i3.ReactiveFormsModule,
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
10259
|
+
i3$1.KwikUIPipeModule,
|
|
10260
|
+
i3$1.KwikUIModule,
|
|
10261
|
+
i5.TuiSvgModule], exports: [KwikIDBuilderFormsListComponent] });
|
|
9618
10262
|
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, imports: [[
|
|
9619
|
-
i3$
|
|
10263
|
+
i3$2.CommonModule,
|
|
9620
10264
|
i3.FormsModule,
|
|
9621
10265
|
i3.ReactiveFormsModule,
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
10266
|
+
i3$1.KwikUIPipeModule,
|
|
10267
|
+
i3$1.KwikUIModule,
|
|
10268
|
+
i5.TuiSvgModule
|
|
9625
10269
|
]] });
|
|
9626
10270
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, decorators: [{
|
|
9627
10271
|
type: i0.NgModule,
|
|
9628
10272
|
args: [{
|
|
9629
10273
|
declarations: [KwikIDBuilderFormsListComponent],
|
|
9630
10274
|
imports: [
|
|
9631
|
-
i3$
|
|
10275
|
+
i3$2.CommonModule,
|
|
9632
10276
|
i3.FormsModule,
|
|
9633
10277
|
i3.ReactiveFormsModule,
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
10278
|
+
i3$1.KwikUIPipeModule,
|
|
10279
|
+
i3$1.KwikUIModule,
|
|
10280
|
+
i5.TuiSvgModule
|
|
9637
10281
|
],
|
|
9638
10282
|
exports: [KwikIDBuilderFormsListComponent]
|
|
9639
10283
|
}]
|
|
@@ -9645,34 +10289,34 @@
|
|
|
9645
10289
|
return KwikIDFormBuilderModule;
|
|
9646
10290
|
}());
|
|
9647
10291
|
/** @nocollapse */ KwikIDFormBuilderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9648
|
-
/** @nocollapse */ KwikIDFormBuilderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, declarations: [KwikIDFormsBuilderComponent], imports: [i3$
|
|
10292
|
+
/** @nocollapse */ KwikIDFormBuilderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, declarations: [KwikIDFormsBuilderComponent], imports: [i3$2.CommonModule,
|
|
9649
10293
|
i3.FormsModule,
|
|
9650
10294
|
i3.ReactiveFormsModule,
|
|
9651
10295
|
dragDrop.DragDropModule,
|
|
9652
10296
|
KwikIDBuilderFormsListModule,
|
|
9653
10297
|
KwikIDBuilderFormEditorModule,
|
|
9654
|
-
|
|
10298
|
+
i3$1.KwikUIModule], exports: [KwikIDFormsBuilderComponent] });
|
|
9655
10299
|
/** @nocollapse */ KwikIDFormBuilderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, providers: [], imports: [[
|
|
9656
|
-
i3$
|
|
10300
|
+
i3$2.CommonModule,
|
|
9657
10301
|
i3.FormsModule,
|
|
9658
10302
|
i3.ReactiveFormsModule,
|
|
9659
10303
|
dragDrop.DragDropModule,
|
|
9660
10304
|
KwikIDBuilderFormsListModule,
|
|
9661
10305
|
KwikIDBuilderFormEditorModule,
|
|
9662
|
-
|
|
10306
|
+
i3$1.KwikUIModule
|
|
9663
10307
|
]] });
|
|
9664
10308
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, decorators: [{
|
|
9665
10309
|
type: i0.NgModule,
|
|
9666
10310
|
args: [{
|
|
9667
10311
|
declarations: [KwikIDFormsBuilderComponent],
|
|
9668
10312
|
imports: [
|
|
9669
|
-
i3$
|
|
10313
|
+
i3$2.CommonModule,
|
|
9670
10314
|
i3.FormsModule,
|
|
9671
10315
|
i3.ReactiveFormsModule,
|
|
9672
10316
|
dragDrop.DragDropModule,
|
|
9673
10317
|
KwikIDBuilderFormsListModule,
|
|
9674
10318
|
KwikIDBuilderFormEditorModule,
|
|
9675
|
-
|
|
10319
|
+
i3$1.KwikUIModule
|
|
9676
10320
|
],
|
|
9677
10321
|
providers: [],
|
|
9678
10322
|
exports: [KwikIDFormsBuilderComponent]
|
|
@@ -9685,58 +10329,58 @@
|
|
|
9685
10329
|
return KwikIDFormViewModule;
|
|
9686
10330
|
}());
|
|
9687
10331
|
/** @nocollapse */ KwikIDFormViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9688
|
-
/** @nocollapse */ KwikIDFormViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, declarations: [KwikIDFormViewComponent, StyleSanitizerPipe, TimerPipe], imports: [i3$
|
|
10332
|
+
/** @nocollapse */ KwikIDFormViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, declarations: [KwikIDFormViewComponent, StyleSanitizerPipe, TimerPipe], imports: [i3$2.CommonModule,
|
|
9689
10333
|
i3.FormsModule,
|
|
9690
10334
|
i3.ReactiveFormsModule,
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
10335
|
+
i5.TuiLabelModule,
|
|
10336
|
+
i6.TuiPushModule,
|
|
10337
|
+
i5.TuiSvgModule,
|
|
10338
|
+
i7.TuiPreviewModule,
|
|
10339
|
+
i5.TuiButtonModule,
|
|
10340
|
+
i7.TuiPreviewActionModule,
|
|
10341
|
+
i5.TuiDialogModule,
|
|
10342
|
+
i3$1.KwikUIPipeModule,
|
|
10343
|
+
i3$1.KwikUIModule,
|
|
10344
|
+
i4.KwikIDCameraModule,
|
|
10345
|
+
i4.KwikUIInputCameraModule,
|
|
10346
|
+
i3$1.KwikUIInputEmailModule], exports: [KwikIDFormViewComponent] });
|
|
9703
10347
|
/** @nocollapse */ KwikIDFormViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, imports: [[
|
|
9704
|
-
i3$
|
|
10348
|
+
i3$2.CommonModule,
|
|
9705
10349
|
i3.FormsModule,
|
|
9706
10350
|
i3.ReactiveFormsModule,
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
10351
|
+
i5.TuiLabelModule,
|
|
10352
|
+
i6.TuiPushModule,
|
|
10353
|
+
i5.TuiSvgModule,
|
|
10354
|
+
i7.TuiPreviewModule,
|
|
10355
|
+
i5.TuiButtonModule,
|
|
10356
|
+
i7.TuiPreviewActionModule,
|
|
10357
|
+
i5.TuiDialogModule,
|
|
10358
|
+
i3$1.KwikUIPipeModule,
|
|
10359
|
+
i3$1.KwikUIModule,
|
|
10360
|
+
i4.KwikIDCameraModule,
|
|
10361
|
+
i4.KwikUIInputCameraModule,
|
|
10362
|
+
i3$1.KwikUIInputEmailModule
|
|
9719
10363
|
]] });
|
|
9720
10364
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, decorators: [{
|
|
9721
10365
|
type: i0.NgModule,
|
|
9722
10366
|
args: [{
|
|
9723
10367
|
declarations: [KwikIDFormViewComponent, StyleSanitizerPipe, TimerPipe],
|
|
9724
10368
|
imports: [
|
|
9725
|
-
i3$
|
|
10369
|
+
i3$2.CommonModule,
|
|
9726
10370
|
i3.FormsModule,
|
|
9727
10371
|
i3.ReactiveFormsModule,
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
10372
|
+
i5.TuiLabelModule,
|
|
10373
|
+
i6.TuiPushModule,
|
|
10374
|
+
i5.TuiSvgModule,
|
|
10375
|
+
i7.TuiPreviewModule,
|
|
10376
|
+
i5.TuiButtonModule,
|
|
10377
|
+
i7.TuiPreviewActionModule,
|
|
10378
|
+
i5.TuiDialogModule,
|
|
10379
|
+
i3$1.KwikUIPipeModule,
|
|
10380
|
+
i3$1.KwikUIModule,
|
|
10381
|
+
i4.KwikIDCameraModule,
|
|
10382
|
+
i4.KwikUIInputCameraModule,
|
|
10383
|
+
i3$1.KwikUIInputEmailModule
|
|
9740
10384
|
],
|
|
9741
10385
|
exports: [KwikIDFormViewComponent]
|
|
9742
10386
|
}]
|
|
@@ -9748,31 +10392,31 @@
|
|
|
9748
10392
|
return KwikIDFormsListModule;
|
|
9749
10393
|
}());
|
|
9750
10394
|
/** @nocollapse */ KwikIDFormsListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9751
|
-
/** @nocollapse */ KwikIDFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, declarations: [KwikIDFormsListComponent], imports: [i3$
|
|
10395
|
+
/** @nocollapse */ KwikIDFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, declarations: [KwikIDFormsListComponent], imports: [i3$2.CommonModule,
|
|
9752
10396
|
i3.FormsModule,
|
|
9753
10397
|
i3.ReactiveFormsModule,
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
10398
|
+
i3$1.KwikUIPipeModule,
|
|
10399
|
+
i3$1.KwikUIModule,
|
|
10400
|
+
i5.TuiSvgModule], exports: [KwikIDFormsListComponent] });
|
|
9757
10401
|
/** @nocollapse */ KwikIDFormsListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, imports: [[
|
|
9758
|
-
i3$
|
|
10402
|
+
i3$2.CommonModule,
|
|
9759
10403
|
i3.FormsModule,
|
|
9760
10404
|
i3.ReactiveFormsModule,
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
10405
|
+
i3$1.KwikUIPipeModule,
|
|
10406
|
+
i3$1.KwikUIModule,
|
|
10407
|
+
i5.TuiSvgModule
|
|
9764
10408
|
]] });
|
|
9765
10409
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, decorators: [{
|
|
9766
10410
|
type: i0.NgModule,
|
|
9767
10411
|
args: [{
|
|
9768
10412
|
declarations: [KwikIDFormsListComponent],
|
|
9769
10413
|
imports: [
|
|
9770
|
-
i3$
|
|
10414
|
+
i3$2.CommonModule,
|
|
9771
10415
|
i3.FormsModule,
|
|
9772
10416
|
i3.ReactiveFormsModule,
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
10417
|
+
i3$1.KwikUIPipeModule,
|
|
10418
|
+
i3$1.KwikUIModule,
|
|
10419
|
+
i5.TuiSvgModule
|
|
9776
10420
|
],
|
|
9777
10421
|
exports: [KwikIDFormsListComponent]
|
|
9778
10422
|
}]
|
|
@@ -9784,49 +10428,49 @@
|
|
|
9784
10428
|
return KwikIDFormRendererModule;
|
|
9785
10429
|
}());
|
|
9786
10430
|
/** @nocollapse */ KwikIDFormRendererModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9787
|
-
/** @nocollapse */ KwikIDFormRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, declarations: [KwikIDFormsRendererComponent], imports: [i3$
|
|
10431
|
+
/** @nocollapse */ KwikIDFormRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, declarations: [KwikIDFormsRendererComponent], imports: [i3$2.CommonModule,
|
|
9788
10432
|
http.HttpClientModule,
|
|
9789
10433
|
KwikIDFormViewModule,
|
|
9790
10434
|
KwikIDFormsListModule,
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
10435
|
+
i3$1.KwikUIModule,
|
|
10436
|
+
i5.TuiLoaderModule,
|
|
10437
|
+
i6.TuiPushModule,
|
|
10438
|
+
i7.TuiPreviewActionModule,
|
|
10439
|
+
i7.TuiPreviewModule,
|
|
10440
|
+
i5.TuiButtonModule,
|
|
10441
|
+
i7.TuiPreviewActionModule,
|
|
10442
|
+
i5.TuiSvgModule], exports: [KwikIDFormsRendererComponent] });
|
|
9799
10443
|
/** @nocollapse */ KwikIDFormRendererModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, providers: [], imports: [[
|
|
9800
|
-
i3$
|
|
10444
|
+
i3$2.CommonModule,
|
|
9801
10445
|
http.HttpClientModule,
|
|
9802
10446
|
KwikIDFormViewModule,
|
|
9803
10447
|
KwikIDFormsListModule,
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
10448
|
+
i3$1.KwikUIModule,
|
|
10449
|
+
i5.TuiLoaderModule,
|
|
10450
|
+
i6.TuiPushModule,
|
|
10451
|
+
i7.TuiPreviewActionModule,
|
|
10452
|
+
i7.TuiPreviewModule,
|
|
10453
|
+
i5.TuiButtonModule,
|
|
10454
|
+
i7.TuiPreviewActionModule,
|
|
10455
|
+
i5.TuiSvgModule
|
|
9812
10456
|
]] });
|
|
9813
10457
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, decorators: [{
|
|
9814
10458
|
type: i0.NgModule,
|
|
9815
10459
|
args: [{
|
|
9816
10460
|
declarations: [KwikIDFormsRendererComponent],
|
|
9817
10461
|
imports: [
|
|
9818
|
-
i3$
|
|
10462
|
+
i3$2.CommonModule,
|
|
9819
10463
|
http.HttpClientModule,
|
|
9820
10464
|
KwikIDFormViewModule,
|
|
9821
10465
|
KwikIDFormsListModule,
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
10466
|
+
i3$1.KwikUIModule,
|
|
10467
|
+
i5.TuiLoaderModule,
|
|
10468
|
+
i6.TuiPushModule,
|
|
10469
|
+
i7.TuiPreviewActionModule,
|
|
10470
|
+
i7.TuiPreviewModule,
|
|
10471
|
+
i5.TuiButtonModule,
|
|
10472
|
+
i7.TuiPreviewActionModule,
|
|
10473
|
+
i5.TuiSvgModule
|
|
9830
10474
|
],
|
|
9831
10475
|
providers: [],
|
|
9832
10476
|
exports: [KwikIDFormsRendererComponent]
|
|
@@ -9839,13 +10483,13 @@
|
|
|
9839
10483
|
return KwikIDFormsModule;
|
|
9840
10484
|
}());
|
|
9841
10485
|
/** @nocollapse */ KwikIDFormsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
9842
|
-
/** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i3$
|
|
10486
|
+
/** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i3$2.CommonModule,
|
|
9843
10487
|
i3.FormsModule,
|
|
9844
10488
|
i3.ReactiveFormsModule,
|
|
9845
10489
|
KwikIDFormBuilderModule,
|
|
9846
10490
|
KwikIDFormRendererModule], exports: [KwikIDFormRendererModule, KwikIDFormBuilderModule] });
|
|
9847
10491
|
/** @nocollapse */ KwikIDFormsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [[
|
|
9848
|
-
i3$
|
|
10492
|
+
i3$2.CommonModule,
|
|
9849
10493
|
i3.FormsModule,
|
|
9850
10494
|
i3.ReactiveFormsModule,
|
|
9851
10495
|
KwikIDFormBuilderModule,
|
|
@@ -9856,7 +10500,7 @@
|
|
|
9856
10500
|
args: [{
|
|
9857
10501
|
declarations: [],
|
|
9858
10502
|
imports: [
|
|
9859
|
-
i3$
|
|
10503
|
+
i3$2.CommonModule,
|
|
9860
10504
|
i3.FormsModule,
|
|
9861
10505
|
i3.ReactiveFormsModule,
|
|
9862
10506
|
KwikIDFormBuilderModule,
|