kwikid-forms 0.6.31 → 0.6.33
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 +1230 -863
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.actions.definition.js +3 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.apis.definition.js +1 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.logs.definition.js +3 -1
- package/esm2015/lib/renderer/form-view/form-view.api.service.js +256 -0
- package/esm2015/lib/renderer/form-view/form-view.component.js +304 -259
- package/esm2015/lib/renderer/form-view/helpers/form-view.fields.helper.js +11 -2
- package/fesm2015/kwikid-forms.js +576 -267
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/form-view/definitions/form-view.actions.definition.d.ts +3 -1
- package/lib/renderer/form-view/definitions/form-view.apis.definition.d.ts +8 -0
- package/lib/renderer/form-view/definitions/form-view.logs.definition.d.ts +2 -0
- package/lib/renderer/form-view/form-view.api.service.d.ts +11 -0
- package/lib/renderer/form-view/form-view.component.d.ts +7 -2
- package/lib/renderer/form-view/helpers/form-view.fields.helper.d.ts +1 -0
- 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);
|
|
@@ -1001,6 +1002,16 @@
|
|
|
1001
1002
|
});
|
|
1002
1003
|
return field;
|
|
1003
1004
|
};
|
|
1005
|
+
var setApiTimerMessage = function (field, timer) {
|
|
1006
|
+
if (timer === void 0) { timer = undefined; }
|
|
1007
|
+
if (kwikidToolkit.checkObjectKeyExists(field, "api")) {
|
|
1008
|
+
field["api"]["timer"] = timer;
|
|
1009
|
+
}
|
|
1010
|
+
else {
|
|
1011
|
+
kwikidToolkit.setMissingKeyValue(field, "api", { timer: timer });
|
|
1012
|
+
}
|
|
1013
|
+
return field;
|
|
1014
|
+
};
|
|
1004
1015
|
function showFormFieldError(fields, errors, key, error) {
|
|
1005
1016
|
var fieldIndex = fields.findIndex(function (field) {
|
|
1006
1017
|
return field.key === key;
|
|
@@ -2737,8 +2748,8 @@
|
|
|
2737
2748
|
};
|
|
2738
2749
|
return KwikIDBuilderFormEditorComponent;
|
|
2739
2750
|
}());
|
|
2740
|
-
/** @nocollapse */ KwikIDBuilderFormEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorComponent, deps: [{ token:
|
|
2741
|
-
/** @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: [
|
|
2751
|
+
/** @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 });
|
|
2752
|
+
/** @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: [
|
|
2742
2753
|
animations.trigger("panelInOut", [
|
|
2743
2754
|
animations.transition(":enter", [
|
|
2744
2755
|
animations.style({ transform: "translateY(100%)" }),
|
|
@@ -2834,7 +2845,7 @@
|
|
|
2834
2845
|
])
|
|
2835
2846
|
]
|
|
2836
2847
|
}]
|
|
2837
|
-
}], ctorParameters: function () { return [{ type:
|
|
2848
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.KwikUILoaderService }, { type: KwikIDFormBuilderFormEditorService }]; }, propDecorators: { activeFormConfig: [{
|
|
2838
2849
|
type: i0.Input
|
|
2839
2850
|
}], onClickSaveActiveFormConfig: [{
|
|
2840
2851
|
type: i0.Output
|
|
@@ -2994,8 +3005,8 @@
|
|
|
2994
3005
|
};
|
|
2995
3006
|
return KwikIDFormsBuilderComponent;
|
|
2996
3007
|
}());
|
|
2997
|
-
/** @nocollapse */ KwikIDFormsBuilderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsBuilderComponent, deps: [{ token:
|
|
2998
|
-
/** @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:
|
|
3008
|
+
/** @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 });
|
|
3009
|
+
/** @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" }] });
|
|
2999
3010
|
__decorate([
|
|
3000
3011
|
kwikidToolkit.logMethod
|
|
3001
3012
|
], KwikIDFormsBuilderComponent.prototype, "fetchFormConfig", null);
|
|
@@ -3018,7 +3029,7 @@
|
|
|
3018
3029
|
templateUrl: "./builder.component.html",
|
|
3019
3030
|
styleUrls: ["./shared.scss", "./builder.component.scss"]
|
|
3020
3031
|
}]
|
|
3021
|
-
}], ctorParameters: function () { return [{ type:
|
|
3032
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.KwikUILoaderService }]; }, propDecorators: { userConfig: [{
|
|
3022
3033
|
type: i0.Input
|
|
3023
3034
|
}], fetchFormConfig: [], handleGetFormsList: [], handleOnClickSetActiveForm: [], handleOnClickSaveActiveFormConfig: [], toggleLoader: [] } });
|
|
3024
3035
|
|
|
@@ -3044,6 +3055,8 @@
|
|
|
3044
3055
|
EActionKey["SET_API_HEADER_VALIDITY"] = "SET_API_HEADER_VALIDITY";
|
|
3045
3056
|
EActionKey["SET_API_BODY_VALUE"] = "SET_API_BODY_VALUE";
|
|
3046
3057
|
EActionKey["SET_API_BODY_VALIDITY"] = "SET_API_BODY_VALIDITY";
|
|
3058
|
+
EActionKey["FIELD_API_TIMER_MESSAGE_SHOW"] = "FIELD_API_TIMER_MESSAGE_SHOW";
|
|
3059
|
+
EActionKey["FIELD_API_TIMER_MESSAGE_HIDE"] = "FIELD_API_TIMER_MESSAGE_HIDE";
|
|
3047
3060
|
EActionKey["SET_FIELD_VALIDITY"] = "SET_FIELD_VALIDITY";
|
|
3048
3061
|
EActionKey["FIELD_MESSAGE_SHOW"] = "FIELD_MESSAGE_SHOW";
|
|
3049
3062
|
EActionKey["FIELD_MESSAGES_HIDE"] = "FIELD_MESSAGES_HIDE";
|
|
@@ -3134,6 +3147,8 @@
|
|
|
3134
3147
|
ELogEventType["FORM__DIALOG_ERROR"] = "FORM__DIALOG_ERROR";
|
|
3135
3148
|
ELogEventType["FORM__DIALOG_HIDE"] = "FORM__DIALOG_HIDE";
|
|
3136
3149
|
ELogEventType["FORM__DIALOG_SHOW"] = "FORM__DIALOG_SHOW";
|
|
3150
|
+
ELogEventType["FORM__FIELD_API_TIMER_MESSAGE_SHOW"] = "FORM__FIELD_API_TIMER_MESSAGE_SHOW";
|
|
3151
|
+
ELogEventType["FORM__FIELD_API_TIMER_MESSAGE_HIDE"] = "FORM__FIELD_API_TIMER_MESSAGE_HIDE";
|
|
3137
3152
|
ELogEventType["FORM__FIELD_BUTTON_CLICK"] = "FORM__FIELD_BUTTON_CLICK";
|
|
3138
3153
|
ELogEventType["FORM__FIELD_CAMERA_BUTTON_CLICK"] = "FORM__FIELD_CAMERA_BUTTON_CLICK";
|
|
3139
3154
|
ELogEventType["FORM__FIELD_DISABLE"] = "FORM__FIELD_DISABLE";
|
|
@@ -3160,6 +3175,314 @@
|
|
|
3160
3175
|
ELogEventType["FORM__VIEW_BUTTON_CLICK"] = "FORM__VIEW_BUTTON_CLICK";
|
|
3161
3176
|
})(ELogEventType$1 || (ELogEventType$1 = {}));
|
|
3162
3177
|
|
|
3178
|
+
var KwikIDFormViewApiService = /** @class */ (function () {
|
|
3179
|
+
function KwikIDFormViewApiService() {
|
|
3180
|
+
this.bytecode = [0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38];
|
|
3181
|
+
}
|
|
3182
|
+
// Function to derive logic from data
|
|
3183
|
+
KwikIDFormViewApiService.prototype.dataDerivativeLogic = function (data) {
|
|
3184
|
+
var e_1, _c;
|
|
3185
|
+
if (kwikidToolkit.isNotEmptyValue(data)) {
|
|
3186
|
+
var dataString = JSON.stringify(data);
|
|
3187
|
+
var charCounts_1 = {};
|
|
3188
|
+
var targetCharacters = ["a", "i", "p", "t"];
|
|
3189
|
+
try {
|
|
3190
|
+
// Count occurrences of target characters in the data string
|
|
3191
|
+
for (var dataString_1 = __values(dataString), dataString_1_1 = dataString_1.next(); !dataString_1_1.done; dataString_1_1 = dataString_1.next()) {
|
|
3192
|
+
var char = dataString_1_1.value;
|
|
3193
|
+
if (targetCharacters.includes(char)) {
|
|
3194
|
+
charCounts_1[char] = (charCounts_1[char] || 0) + 1;
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3199
|
+
finally {
|
|
3200
|
+
try {
|
|
3201
|
+
if (dataString_1_1 && !dataString_1_1.done && (_c = dataString_1.return)) _c.call(dataString_1);
|
|
3202
|
+
}
|
|
3203
|
+
finally { if (e_1) throw e_1.error; }
|
|
3204
|
+
}
|
|
3205
|
+
// Construct the output string based on the character counts
|
|
3206
|
+
var outputString = targetCharacters
|
|
3207
|
+
.map(function (char) { return char + (charCounts_1[char] || 0); })
|
|
3208
|
+
.join("");
|
|
3209
|
+
return outputString;
|
|
3210
|
+
}
|
|
3211
|
+
else {
|
|
3212
|
+
return undefined;
|
|
3213
|
+
}
|
|
3214
|
+
};
|
|
3215
|
+
// Function to preprocess header data
|
|
3216
|
+
KwikIDFormViewApiService.prototype.preProcessHeader = function (headerData, isVerifySignature) {
|
|
3217
|
+
if (!headerData)
|
|
3218
|
+
headerData = {};
|
|
3219
|
+
if (!headerData.headers)
|
|
3220
|
+
headerData["headers"] = {};
|
|
3221
|
+
// Generate a unique identifier if signature verification is required
|
|
3222
|
+
if (isVerifySignature) {
|
|
3223
|
+
headerData["headers"]["xrid"] = uuid.v4();
|
|
3224
|
+
}
|
|
3225
|
+
// Retrieve session ID from local storage and add it to headers
|
|
3226
|
+
var session_id = localStorage.getItem("session_id");
|
|
3227
|
+
if (session_id)
|
|
3228
|
+
headerData["headers"]["ses"] = session_id;
|
|
3229
|
+
return headerData;
|
|
3230
|
+
};
|
|
3231
|
+
// Function to verify the signature
|
|
3232
|
+
KwikIDFormViewApiService.prototype.verifySignature = function (data, header, url, isVerifySignature) {
|
|
3233
|
+
return new Promise(function (resolve, reject) {
|
|
3234
|
+
// Log the function call for verification
|
|
3235
|
+
console.log("Verify Signature: Function Called For", url, header);
|
|
3236
|
+
// Check if the signature is disabled
|
|
3237
|
+
if (!isVerifySignature) {
|
|
3238
|
+
console.log("Verify Signature: Authentication Disabled");
|
|
3239
|
+
resolve(true);
|
|
3240
|
+
}
|
|
3241
|
+
// Check if data is invalid
|
|
3242
|
+
else if (!data) {
|
|
3243
|
+
console.log("Verify Signature: Data Not Available");
|
|
3244
|
+
resolve(true);
|
|
3245
|
+
}
|
|
3246
|
+
// Check if the signature is missing in headers when authentication is not skipped
|
|
3247
|
+
else if (isVerifySignature && header && !(header === null || header === void 0 ? void 0 : header.sig)) {
|
|
3248
|
+
console.log("Verify Signature Failure: Signature Not Present in Headers");
|
|
3249
|
+
reject(false);
|
|
3250
|
+
}
|
|
3251
|
+
// Verify the signature when public key and header with signature are present and authentication is not skipped
|
|
3252
|
+
else if (isVerifySignature && header && (header === null || header === void 0 ? void 0 : header.sig)) {
|
|
3253
|
+
console.log("Verify Signature: Signature Present in Headers");
|
|
3254
|
+
// Extract the signature and decode it
|
|
3255
|
+
var signature = header.sig.split(".")[0];
|
|
3256
|
+
var rawSignature = atob(signature);
|
|
3257
|
+
// Split the decoded signature to get the parts
|
|
3258
|
+
signature = rawSignature.split(".")[0];
|
|
3259
|
+
var exp = rawSignature.split(".")[1] + "000"; // Expiration time in milliseconds
|
|
3260
|
+
var iat = rawSignature.split(".")[2] + "000"; // Issued at time in milliseconds
|
|
3261
|
+
// Check if the signature is valid
|
|
3262
|
+
if (signature) {
|
|
3263
|
+
// Check if the current time is before the expiration time
|
|
3264
|
+
var dateValue = new Date().valueOf();
|
|
3265
|
+
var dateCheck = dateValue < parseInt(exp);
|
|
3266
|
+
// Check if the signature matches the data
|
|
3267
|
+
var res = signature === data;
|
|
3268
|
+
console.log("Verify Signature: Matching", signature, data);
|
|
3269
|
+
console.log("Verify Signature: Time", dateValue, parseInt(exp), parseInt(exp) - dateValue);
|
|
3270
|
+
console.log("Verify Signature: Date", new Date(dateValue), new Date(parseInt(exp)));
|
|
3271
|
+
console.log("Verify Signature: Signature Converted to Required Format");
|
|
3272
|
+
// Resolve the promise if the signature is valid and the date check passes
|
|
3273
|
+
if (res && dateCheck) {
|
|
3274
|
+
console.log("Verify Signature Success");
|
|
3275
|
+
resolve(res);
|
|
3276
|
+
}
|
|
3277
|
+
else {
|
|
3278
|
+
// Reject the promise if the signature is invalid or the date check fails
|
|
3279
|
+
console.log("Verify Signature Failure: Signature did not match");
|
|
3280
|
+
reject(res);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
else {
|
|
3284
|
+
// Reject the promise if the signature is not in the required format
|
|
3285
|
+
console.log("Verify Signature Failure: Signature Not Converted to Required Format");
|
|
3286
|
+
reject(false);
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
else {
|
|
3290
|
+
// Resolve the promise if the signature is missing in headers
|
|
3291
|
+
console.log("Verify Signature Failure: Signature Not Present in Headers");
|
|
3292
|
+
resolve(true);
|
|
3293
|
+
}
|
|
3294
|
+
});
|
|
3295
|
+
};
|
|
3296
|
+
// Function to perform POST request
|
|
3297
|
+
KwikIDFormViewApiService.prototype.post = function (url, body, headerData, isEncrypt, isDecrypt, isVerifySignature, isSkipHeaderAlteration) {
|
|
3298
|
+
var _this = this;
|
|
3299
|
+
if (isEncrypt === void 0) { isEncrypt = false; }
|
|
3300
|
+
if (isDecrypt === void 0) { isDecrypt = false; }
|
|
3301
|
+
if (isVerifySignature === void 0) { isVerifySignature = false; }
|
|
3302
|
+
if (isSkipHeaderAlteration === void 0) { isSkipHeaderAlteration = false; }
|
|
3303
|
+
var preProcessedHeader = headerData;
|
|
3304
|
+
// Preprocess header data unless instructed to skip
|
|
3305
|
+
if (!isSkipHeaderAlteration) {
|
|
3306
|
+
preProcessedHeader = this.preProcessHeader(headerData, isVerifySignature);
|
|
3307
|
+
}
|
|
3308
|
+
else {
|
|
3309
|
+
preProcessedHeader["observe"] = "response";
|
|
3310
|
+
}
|
|
3311
|
+
// Encrypt body if required
|
|
3312
|
+
if (isEncrypt) {
|
|
3313
|
+
body = kwikidToolkit.encryptWithAES(JSON.stringify(body));
|
|
3314
|
+
}
|
|
3315
|
+
return new rxjs.Observable(function (subscriber) {
|
|
3316
|
+
axios__default["default"].post(url, body, headerData).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
3317
|
+
var data, encryptedResponse, decryptedResponse;
|
|
3318
|
+
return __generator(this, function (_c) {
|
|
3319
|
+
switch (_c.label) {
|
|
3320
|
+
case 0:
|
|
3321
|
+
data = res["data"];
|
|
3322
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3323
|
+
encryptedResponse = data;
|
|
3324
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3325
|
+
case 1:
|
|
3326
|
+
decryptedResponse = _c.sent();
|
|
3327
|
+
data = JSON.parse(decryptedResponse);
|
|
3328
|
+
console.log("Decrypted Response", data);
|
|
3329
|
+
res.data = data;
|
|
3330
|
+
_c.label = 2;
|
|
3331
|
+
case 2:
|
|
3332
|
+
// Verify signature and handle response
|
|
3333
|
+
this.verifySignature(this.dataDerivativeLogic(data), res === null || res === void 0 ? void 0 : res.headers, url, isVerifySignature)
|
|
3334
|
+
.then(function (verification) {
|
|
3335
|
+
subscriber.next(res);
|
|
3336
|
+
subscriber.complete();
|
|
3337
|
+
})
|
|
3338
|
+
.catch(function (err) {
|
|
3339
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3340
|
+
});
|
|
3341
|
+
return [2 /*return*/];
|
|
3342
|
+
}
|
|
3343
|
+
});
|
|
3344
|
+
}); }, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
3345
|
+
var _a, _b, data, encryptedResponse, decryptedResponse;
|
|
3346
|
+
return __generator(this, function (_c) {
|
|
3347
|
+
switch (_c.label) {
|
|
3348
|
+
case 0:
|
|
3349
|
+
data = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
3350
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3351
|
+
encryptedResponse = data;
|
|
3352
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3353
|
+
case 1:
|
|
3354
|
+
decryptedResponse = _c.sent();
|
|
3355
|
+
data = JSON.parse(decryptedResponse);
|
|
3356
|
+
console.log("Decrypted Response", data);
|
|
3357
|
+
err.response.data = data;
|
|
3358
|
+
_c.label = 2;
|
|
3359
|
+
case 2:
|
|
3360
|
+
// Verify signature and handle response
|
|
3361
|
+
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)
|
|
3362
|
+
.then(function (verification) {
|
|
3363
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3364
|
+
})
|
|
3365
|
+
.catch(function (err) {
|
|
3366
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3367
|
+
});
|
|
3368
|
+
return [2 /*return*/];
|
|
3369
|
+
}
|
|
3370
|
+
});
|
|
3371
|
+
}); });
|
|
3372
|
+
});
|
|
3373
|
+
};
|
|
3374
|
+
// Function to perform GET request
|
|
3375
|
+
KwikIDFormViewApiService.prototype.get = function (url, headerData, isDecrypt, isVerifySignature, isSkipHeaderAlteration) {
|
|
3376
|
+
var _this = this;
|
|
3377
|
+
if (headerData === void 0) { headerData = undefined; }
|
|
3378
|
+
if (isDecrypt === void 0) { isDecrypt = false; }
|
|
3379
|
+
if (isVerifySignature === void 0) { isVerifySignature = false; }
|
|
3380
|
+
if (isSkipHeaderAlteration === void 0) { isSkipHeaderAlteration = false; }
|
|
3381
|
+
var preProcessedHeader = headerData;
|
|
3382
|
+
// Preprocess header data unless instructed to skip
|
|
3383
|
+
if (!isSkipHeaderAlteration) {
|
|
3384
|
+
preProcessedHeader = this.preProcessHeader(headerData, isVerifySignature);
|
|
3385
|
+
}
|
|
3386
|
+
else {
|
|
3387
|
+
preProcessedHeader["observe"] = "response";
|
|
3388
|
+
}
|
|
3389
|
+
return new rxjs.Observable(function (subscriber) {
|
|
3390
|
+
axios__default["default"].get(url, preProcessedHeader).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
3391
|
+
var data, encryptedResponse, decryptedResponse;
|
|
3392
|
+
return __generator(this, function (_c) {
|
|
3393
|
+
switch (_c.label) {
|
|
3394
|
+
case 0:
|
|
3395
|
+
data = res["data"];
|
|
3396
|
+
if (!isDecrypt) return [3 /*break*/, 2];
|
|
3397
|
+
encryptedResponse = data;
|
|
3398
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3399
|
+
case 1:
|
|
3400
|
+
decryptedResponse = _c.sent();
|
|
3401
|
+
data = JSON.parse(decryptedResponse);
|
|
3402
|
+
console.log("Decrypted Response", data);
|
|
3403
|
+
res.data = data;
|
|
3404
|
+
_c.label = 2;
|
|
3405
|
+
case 2:
|
|
3406
|
+
// Verify signature and handle response
|
|
3407
|
+
this.verifySignature(this.dataDerivativeLogic(data), res === null || res === void 0 ? void 0 : res.headers, url, isVerifySignature)
|
|
3408
|
+
.then(function (verification) {
|
|
3409
|
+
subscriber.next(res);
|
|
3410
|
+
subscriber.complete();
|
|
3411
|
+
})
|
|
3412
|
+
.catch(function (err) {
|
|
3413
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3414
|
+
});
|
|
3415
|
+
return [2 /*return*/];
|
|
3416
|
+
}
|
|
3417
|
+
});
|
|
3418
|
+
}); }, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
3419
|
+
var _a, _b, data, encryptedResponse, decryptedResponse;
|
|
3420
|
+
return __generator(this, function (_c) {
|
|
3421
|
+
switch (_c.label) {
|
|
3422
|
+
case 0:
|
|
3423
|
+
data = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
3424
|
+
if (!(data && isDecrypt)) return [3 /*break*/, 2];
|
|
3425
|
+
encryptedResponse = data;
|
|
3426
|
+
return [4 /*yield*/, kwikidToolkit.decryptWithAES(encryptedResponse)];
|
|
3427
|
+
case 1:
|
|
3428
|
+
decryptedResponse = _c.sent();
|
|
3429
|
+
data = JSON.parse(decryptedResponse);
|
|
3430
|
+
console.log("Decrypted Response", data);
|
|
3431
|
+
err.response.data = data;
|
|
3432
|
+
_c.label = 2;
|
|
3433
|
+
case 2:
|
|
3434
|
+
// Verify signature and handle response
|
|
3435
|
+
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)
|
|
3436
|
+
.then(function (verification) {
|
|
3437
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3438
|
+
})
|
|
3439
|
+
.catch(function (err) {
|
|
3440
|
+
subscriber.error(err === null || err === void 0 ? void 0 : err.response);
|
|
3441
|
+
});
|
|
3442
|
+
return [2 /*return*/];
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
3445
|
+
}); });
|
|
3446
|
+
});
|
|
3447
|
+
};
|
|
3448
|
+
// Function to execute API call based on method type
|
|
3449
|
+
KwikIDFormViewApiService.prototype.executeApiCall = function (url, method, body, headers, isEncrypt, isDecrypt, isVerifySignature) {
|
|
3450
|
+
var _this = this;
|
|
3451
|
+
return new Promise(function (resolve) {
|
|
3452
|
+
if (method == "GET") {
|
|
3453
|
+
_this.get(url, { headers: headers }, isDecrypt, isVerifySignature).subscribe(function (res) {
|
|
3454
|
+
resolve(res);
|
|
3455
|
+
}, function (err) {
|
|
3456
|
+
resolve(err);
|
|
3457
|
+
});
|
|
3458
|
+
}
|
|
3459
|
+
else {
|
|
3460
|
+
_this.post(url, body, { headers: headers }, isEncrypt, isDecrypt, isVerifySignature).subscribe(function (res) {
|
|
3461
|
+
resolve(res);
|
|
3462
|
+
}, function (err) {
|
|
3463
|
+
resolve(err);
|
|
3464
|
+
});
|
|
3465
|
+
}
|
|
3466
|
+
});
|
|
3467
|
+
};
|
|
3468
|
+
return KwikIDFormViewApiService;
|
|
3469
|
+
}());
|
|
3470
|
+
__decorate([
|
|
3471
|
+
kwikidToolkit.logMethod
|
|
3472
|
+
], KwikIDFormViewApiService.prototype, "dataDerivativeLogic", null);
|
|
3473
|
+
__decorate([
|
|
3474
|
+
kwikidToolkit.logMethod
|
|
3475
|
+
], KwikIDFormViewApiService.prototype, "preProcessHeader", null);
|
|
3476
|
+
__decorate([
|
|
3477
|
+
kwikidToolkit.logMethod
|
|
3478
|
+
], KwikIDFormViewApiService.prototype, "verifySignature", null);
|
|
3479
|
+
__decorate([
|
|
3480
|
+
kwikidToolkit.logMethod
|
|
3481
|
+
], KwikIDFormViewApiService.prototype, "post", null);
|
|
3482
|
+
__decorate([
|
|
3483
|
+
kwikidToolkit.logMethod
|
|
3484
|
+
], KwikIDFormViewApiService.prototype, "get", null);
|
|
3485
|
+
|
|
3163
3486
|
var Defaults = /** @class */ (function () {
|
|
3164
3487
|
function Defaults(field, formFields, allFormsData, formData, previousFormData, takeAction) {
|
|
3165
3488
|
this._field = field;
|
|
@@ -4448,9 +4771,10 @@
|
|
|
4448
4771
|
}] });
|
|
4449
4772
|
|
|
4450
4773
|
var KwikIDFormViewComponent = /** @class */ (function () {
|
|
4451
|
-
function KwikIDFormViewComponent(cd, formViewService, push, alertService, previewDialogService, dialogService, loaderService, cameraRecordService, ref) {
|
|
4774
|
+
function KwikIDFormViewComponent(cd, formViewService, formViewApiService, push, alertService, previewDialogService, dialogService, loaderService, cameraRecordService, ref) {
|
|
4452
4775
|
this.cd = cd;
|
|
4453
4776
|
this.formViewService = formViewService;
|
|
4777
|
+
this.formViewApiService = formViewApiService;
|
|
4454
4778
|
this.push = push;
|
|
4455
4779
|
this.alertService = alertService;
|
|
4456
4780
|
this.previewDialogService = previewDialogService;
|
|
@@ -4542,11 +4866,11 @@
|
|
|
4542
4866
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4543
4867
|
var res;
|
|
4544
4868
|
var _this = this;
|
|
4545
|
-
return __generator(this, function (
|
|
4546
|
-
switch (
|
|
4869
|
+
return __generator(this, function (_15) {
|
|
4870
|
+
switch (_15.label) {
|
|
4547
4871
|
case 0: return [4 /*yield*/, this.initFormConfig(this.formConfig)];
|
|
4548
4872
|
case 1:
|
|
4549
|
-
res =
|
|
4873
|
+
res = _15.sent();
|
|
4550
4874
|
if (res) {
|
|
4551
4875
|
this.loading = false;
|
|
4552
4876
|
this.cameraRecordingTimerSubcription = this.cameraRecordService
|
|
@@ -4569,7 +4893,7 @@
|
|
|
4569
4893
|
};
|
|
4570
4894
|
KwikIDFormViewComponent.prototype.ngAfterViewInit = function () { };
|
|
4571
4895
|
KwikIDFormViewComponent.prototype.ngOnChanges = function (changes) {
|
|
4572
|
-
var
|
|
4896
|
+
var _15, _16, _17;
|
|
4573
4897
|
var _this = this;
|
|
4574
4898
|
var _a, _b, _c, _d;
|
|
4575
4899
|
var verifyChange = function (key) {
|
|
@@ -4597,9 +4921,9 @@
|
|
|
4597
4921
|
? changes.popupFormCallback.currentValue.popupFormData["data"]
|
|
4598
4922
|
: changes.popupFormCallback.currentValue.popupFormData;
|
|
4599
4923
|
var popupFormConfig = changes.popupFormCallback.currentValue.popupFormConfig;
|
|
4600
|
-
this.popupFormData = kwikidToolkit.mergeObjects(this.popupFormData, (
|
|
4601
|
-
|
|
4602
|
-
|
|
4924
|
+
this.popupFormData = kwikidToolkit.mergeObjects(this.popupFormData, (_15 = {},
|
|
4925
|
+
_15[popupFormConfig.key] = popupFormData,
|
|
4926
|
+
_15));
|
|
4603
4927
|
this.formData = kwikidToolkit.mergeObjects(this.formData, this.popupFormData);
|
|
4604
4928
|
if (kwikidToolkit.checkObjectKeyExists(changes.popupFormCallback.currentValue, "stopTaskExecution")) {
|
|
4605
4929
|
this.stopTaskExecution =
|
|
@@ -4651,9 +4975,9 @@
|
|
|
4651
4975
|
emitEvent: false,
|
|
4652
4976
|
onlySelf: false
|
|
4653
4977
|
});
|
|
4654
|
-
this.formGroup.patchValue((
|
|
4655
|
-
|
|
4656
|
-
|
|
4978
|
+
this.formGroup.patchValue((_16 = {},
|
|
4979
|
+
_16[field_1.key] = kwikidToolkit.getObjectDeepCopy([image]),
|
|
4980
|
+
_16), { emitEvent: false });
|
|
4657
4981
|
this.formGroup.controls[field_1.key].updateValueAndValidity({
|
|
4658
4982
|
emitEvent: false
|
|
4659
4983
|
});
|
|
@@ -4673,11 +4997,11 @@
|
|
|
4673
4997
|
ALL_FORMS_DATA: this.allFormsData
|
|
4674
4998
|
}, this.takeAction.bind(this));
|
|
4675
4999
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4676
|
-
return __generator(this, function (
|
|
4677
|
-
switch (
|
|
5000
|
+
return __generator(this, function (_15) {
|
|
5001
|
+
switch (_15.label) {
|
|
4678
5002
|
case 0: return [4 /*yield*/, validations_1.validate(field_1.validation)];
|
|
4679
5003
|
case 1:
|
|
4680
|
-
|
|
5004
|
+
_15.sent();
|
|
4681
5005
|
return [2 /*return*/];
|
|
4682
5006
|
}
|
|
4683
5007
|
});
|
|
@@ -4717,9 +5041,9 @@
|
|
|
4717
5041
|
emitEvent: false,
|
|
4718
5042
|
onlySelf: false
|
|
4719
5043
|
});
|
|
4720
|
-
this.formGroup.patchValue((
|
|
4721
|
-
|
|
4722
|
-
|
|
5044
|
+
this.formGroup.patchValue((_17 = {},
|
|
5045
|
+
_17[field_1.key] = kwikidToolkit.getObjectDeepCopy([video]),
|
|
5046
|
+
_17), { emitEvent: false });
|
|
4723
5047
|
this.formGroup.controls[field_1.key].updateValueAndValidity({
|
|
4724
5048
|
emitEvent: false
|
|
4725
5049
|
});
|
|
@@ -4739,11 +5063,11 @@
|
|
|
4739
5063
|
ALL_FORMS_DATA: this.allFormsData
|
|
4740
5064
|
}, this.takeAction.bind(this));
|
|
4741
5065
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4742
|
-
return __generator(this, function (
|
|
4743
|
-
switch (
|
|
5066
|
+
return __generator(this, function (_15) {
|
|
5067
|
+
switch (_15.label) {
|
|
4744
5068
|
case 0: return [4 /*yield*/, validations_2.validate(field_1.validation)];
|
|
4745
5069
|
case 1:
|
|
4746
|
-
|
|
5070
|
+
_15.sent();
|
|
4747
5071
|
return [2 /*return*/];
|
|
4748
5072
|
}
|
|
4749
5073
|
});
|
|
@@ -4806,11 +5130,11 @@
|
|
|
4806
5130
|
ALL_FORMS_DATA: this.allFormsData
|
|
4807
5131
|
}, this.takeAction.bind(this));
|
|
4808
5132
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4809
|
-
return __generator(this, function (
|
|
4810
|
-
switch (
|
|
5133
|
+
return __generator(this, function (_15) {
|
|
5134
|
+
switch (_15.label) {
|
|
4811
5135
|
case 0: return [4 /*yield*/, validations_3.validate(field_2.validation)];
|
|
4812
5136
|
case 1:
|
|
4813
|
-
|
|
5137
|
+
_15.sent();
|
|
4814
5138
|
return [2 /*return*/];
|
|
4815
5139
|
}
|
|
4816
5140
|
});
|
|
@@ -4825,11 +5149,11 @@
|
|
|
4825
5149
|
if (verifyChange("formConfig")) {
|
|
4826
5150
|
this.formConfig = changes.formConfig.currentValue;
|
|
4827
5151
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
4828
|
-
return __generator(this, function (
|
|
4829
|
-
switch (
|
|
5152
|
+
return __generator(this, function (_15) {
|
|
5153
|
+
switch (_15.label) {
|
|
4830
5154
|
case 0: return [4 /*yield*/, this.initFormConfig(this.formConfig)];
|
|
4831
5155
|
case 1:
|
|
4832
|
-
|
|
5156
|
+
_15.sent();
|
|
4833
5157
|
return [2 /*return*/];
|
|
4834
5158
|
}
|
|
4835
5159
|
});
|
|
@@ -4849,11 +5173,11 @@
|
|
|
4849
5173
|
};
|
|
4850
5174
|
KwikIDFormViewComponent.prototype.initFormConfig = function (formConfig) {
|
|
4851
5175
|
return __awaiter(this, void 0, void 0, function () {
|
|
4852
|
-
var
|
|
4853
|
-
var e_1,
|
|
5176
|
+
var _15, _16, preTask, task, e_1_1, _17, _loop_1, this_1, _18, _19, field, _20, _21, field, validations, e_2_1;
|
|
5177
|
+
var e_1, _22, e_3, _23, e_2, _24;
|
|
4854
5178
|
var _this = this;
|
|
4855
|
-
return __generator(this, function (
|
|
4856
|
-
switch (
|
|
5179
|
+
return __generator(this, function (_25) {
|
|
5180
|
+
switch (_25.label) {
|
|
4857
5181
|
case 0:
|
|
4858
5182
|
formConfig = new Converter().convertFormConfig(formConfig);
|
|
4859
5183
|
formConfig = new Converter().updateFormConfigProperties(formConfig);
|
|
@@ -4867,14 +5191,14 @@
|
|
|
4867
5191
|
if (!(kwikidToolkit.checkObjectKeyExists(this.formConfig, "tasks") &&
|
|
4868
5192
|
kwikidToolkit.checkObjectKeyExists(this.formConfig.tasks, "pre"))) return [3 /*break*/, 10];
|
|
4869
5193
|
this.triggerLogs(ELogEventType$1.FORM__TASK_PRE, {});
|
|
4870
|
-
|
|
5194
|
+
_25.label = 1;
|
|
4871
5195
|
case 1:
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
5196
|
+
_25.trys.push([1, 7, 8, 9]);
|
|
5197
|
+
_15 = __values(this.formConfig.tasks.pre), _16 = _15.next();
|
|
5198
|
+
_25.label = 2;
|
|
4875
5199
|
case 2:
|
|
4876
|
-
if (!!
|
|
4877
|
-
preTask =
|
|
5200
|
+
if (!!_16.done) return [3 /*break*/, 6];
|
|
5201
|
+
preTask = _16.value;
|
|
4878
5202
|
task = new Tasks(preTask, {
|
|
4879
5203
|
FORM_CONFIG: this.formConfig,
|
|
4880
5204
|
FORM_FIELDS: this.formFields,
|
|
@@ -4892,7 +5216,7 @@
|
|
|
4892
5216
|
}
|
|
4893
5217
|
return [4 /*yield*/, task.execute()];
|
|
4894
5218
|
case 3:
|
|
4895
|
-
|
|
5219
|
+
_25.sent();
|
|
4896
5220
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
4897
5221
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
4898
5222
|
var intervalId = setInterval(function () {
|
|
@@ -4904,36 +5228,36 @@
|
|
|
4904
5228
|
})];
|
|
4905
5229
|
case 4:
|
|
4906
5230
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
4907
|
-
|
|
5231
|
+
_25.sent();
|
|
4908
5232
|
if (this.stopTaskExecution) {
|
|
4909
5233
|
return [3 /*break*/, 6];
|
|
4910
5234
|
}
|
|
4911
|
-
|
|
5235
|
+
_25.label = 5;
|
|
4912
5236
|
case 5:
|
|
4913
|
-
|
|
5237
|
+
_16 = _15.next();
|
|
4914
5238
|
return [3 /*break*/, 2];
|
|
4915
5239
|
case 6: return [3 /*break*/, 9];
|
|
4916
5240
|
case 7:
|
|
4917
|
-
e_1_1 =
|
|
5241
|
+
e_1_1 = _25.sent();
|
|
4918
5242
|
e_1 = { error: e_1_1 };
|
|
4919
5243
|
return [3 /*break*/, 9];
|
|
4920
5244
|
case 8:
|
|
4921
5245
|
try {
|
|
4922
|
-
if (
|
|
5246
|
+
if (_16 && !_16.done && (_22 = _15.return)) _22.call(_15);
|
|
4923
5247
|
}
|
|
4924
5248
|
finally { if (e_1) throw e_1.error; }
|
|
4925
5249
|
return [7 /*endfinally*/];
|
|
4926
5250
|
case 9:
|
|
4927
5251
|
this.formData = kwikidToolkit.mergeObjects(this.formData, this.popupFormData);
|
|
4928
|
-
|
|
5252
|
+
_25.label = 10;
|
|
4929
5253
|
case 10:
|
|
4930
5254
|
if (this.stopTaskExecution) {
|
|
4931
5255
|
return [2 /*return*/, false];
|
|
4932
5256
|
}
|
|
4933
|
-
|
|
5257
|
+
_17 = this;
|
|
4934
5258
|
return [4 /*yield*/, this.formViewService.createFormGroup(this.formFields, this.formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this))];
|
|
4935
5259
|
case 11:
|
|
4936
|
-
|
|
5260
|
+
_17.formGroup = _25.sent();
|
|
4937
5261
|
/**
|
|
4938
5262
|
* For some reason if their a field of type 'IMAGE' then
|
|
4939
5263
|
* formData is adding a 'undefined' key with last image's value from the array.
|
|
@@ -4943,10 +5267,10 @@
|
|
|
4943
5267
|
delete this.formData["undefined"];
|
|
4944
5268
|
}
|
|
4945
5269
|
_loop_1 = function (field) {
|
|
4946
|
-
var
|
|
5270
|
+
var _26, _27;
|
|
4947
5271
|
if (field.isFormElement) {
|
|
4948
|
-
this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (
|
|
4949
|
-
this_1.formData = Object.assign(Object.assign({}, this_1.formData), (
|
|
5272
|
+
this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (_26 = {}, _26[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _26));
|
|
5273
|
+
this_1.formData = Object.assign(Object.assign({}, this_1.formData), (_27 = {}, _27[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _27));
|
|
4950
5274
|
if (field.type === EFieldType.FILE) {
|
|
4951
5275
|
this_1.files[field.key] = this_1.formGroup.controls[field.key].value;
|
|
4952
5276
|
}
|
|
@@ -4960,11 +5284,11 @@
|
|
|
4960
5284
|
}
|
|
4961
5285
|
this_1.formGroup.controls[field.key].valueChanges
|
|
4962
5286
|
.pipe(operators.pairwise())
|
|
4963
|
-
.subscribe(function (
|
|
4964
|
-
var
|
|
4965
|
-
var
|
|
4966
|
-
_this.previousFormData = Object.assign(Object.assign({}, _this.previousFormData), (
|
|
4967
|
-
_this.formData = Object.assign(Object.assign({}, _this.formData), (
|
|
5287
|
+
.subscribe(function (_15) {
|
|
5288
|
+
var _16, _17;
|
|
5289
|
+
var _18 = __read(_15, 2), previousValue = _18[0], currentValue = _18[1];
|
|
5290
|
+
_this.previousFormData = Object.assign(Object.assign({}, _this.previousFormData), (_16 = {}, _16[field.key] = convertFormFieldValueToStandardFormat(field, previousValue), _16));
|
|
5291
|
+
_this.formData = Object.assign(Object.assign({}, _this.formData), (_17 = {}, _17[field.key] = convertFormFieldValueToStandardFormat(field, currentValue), _17));
|
|
4968
5292
|
if (field.type === EFieldType.FILE) {
|
|
4969
5293
|
_this.files[field.key] = currentValue;
|
|
4970
5294
|
}
|
|
@@ -4981,26 +5305,26 @@
|
|
|
4981
5305
|
};
|
|
4982
5306
|
this_1 = this;
|
|
4983
5307
|
try {
|
|
4984
|
-
for (
|
|
4985
|
-
field =
|
|
5308
|
+
for (_18 = __values(this.formFields), _19 = _18.next(); !_19.done; _19 = _18.next()) {
|
|
5309
|
+
field = _19.value;
|
|
4986
5310
|
_loop_1(field);
|
|
4987
5311
|
}
|
|
4988
5312
|
}
|
|
4989
5313
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
4990
5314
|
finally {
|
|
4991
5315
|
try {
|
|
4992
|
-
if (
|
|
5316
|
+
if (_19 && !_19.done && (_23 = _18.return)) _23.call(_18);
|
|
4993
5317
|
}
|
|
4994
5318
|
finally { if (e_3) throw e_3.error; }
|
|
4995
5319
|
}
|
|
4996
|
-
|
|
5320
|
+
_25.label = 12;
|
|
4997
5321
|
case 12:
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5322
|
+
_25.trys.push([12, 18, 19, 20]);
|
|
5323
|
+
_20 = __values(this.formFields), _21 = _20.next();
|
|
5324
|
+
_25.label = 13;
|
|
5001
5325
|
case 13:
|
|
5002
|
-
if (!!
|
|
5003
|
-
field =
|
|
5326
|
+
if (!!_21.done) return [3 /*break*/, 17];
|
|
5327
|
+
field = _21.value;
|
|
5004
5328
|
if (!field.isFormElement) return [3 /*break*/, 16];
|
|
5005
5329
|
if (!kwikidToolkit.checkObjectKeyExists(field, "validation")) return [3 /*break*/, 15];
|
|
5006
5330
|
if (!field.validation.triggers.includes("ON_INIT")) return [3 /*break*/, 15];
|
|
@@ -5014,8 +5338,8 @@
|
|
|
5014
5338
|
}, this.takeAction.bind(this));
|
|
5015
5339
|
return [4 /*yield*/, validations.validate(field.validation)];
|
|
5016
5340
|
case 14:
|
|
5017
|
-
|
|
5018
|
-
|
|
5341
|
+
_25.sent();
|
|
5342
|
+
_25.label = 15;
|
|
5019
5343
|
case 15:
|
|
5020
5344
|
if (kwikidToolkit.checkObjectKeyExists(field, "connectedElements")) {
|
|
5021
5345
|
this.handleConnectedElements({
|
|
@@ -5023,18 +5347,18 @@
|
|
|
5023
5347
|
value: this.formGroup.controls[field.key].value
|
|
5024
5348
|
}, "ON_INIT");
|
|
5025
5349
|
}
|
|
5026
|
-
|
|
5350
|
+
_25.label = 16;
|
|
5027
5351
|
case 16:
|
|
5028
|
-
|
|
5352
|
+
_21 = _20.next();
|
|
5029
5353
|
return [3 /*break*/, 13];
|
|
5030
5354
|
case 17: return [3 /*break*/, 20];
|
|
5031
5355
|
case 18:
|
|
5032
|
-
e_2_1 =
|
|
5356
|
+
e_2_1 = _25.sent();
|
|
5033
5357
|
e_2 = { error: e_2_1 };
|
|
5034
5358
|
return [3 /*break*/, 20];
|
|
5035
5359
|
case 19:
|
|
5036
5360
|
try {
|
|
5037
|
-
if (
|
|
5361
|
+
if (_21 && !_21.done && (_24 = _20.return)) _24.call(_20);
|
|
5038
5362
|
}
|
|
5039
5363
|
finally { if (e_2) throw e_2.error; }
|
|
5040
5364
|
return [7 /*endfinally*/];
|
|
@@ -5072,10 +5396,10 @@
|
|
|
5072
5396
|
};
|
|
5073
5397
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldGroupActions = function (childFieldGroupConfig, parentField) {
|
|
5074
5398
|
return __awaiter(this, void 0, void 0, function () {
|
|
5075
|
-
var rulesMapping,
|
|
5076
|
-
var e_4,
|
|
5077
|
-
return __generator(this, function (
|
|
5078
|
-
switch (
|
|
5399
|
+
var rulesMapping, _15, _16, action, conditionSuccess, actions, e_4_1;
|
|
5400
|
+
var e_4, _17;
|
|
5401
|
+
return __generator(this, function (_18) {
|
|
5402
|
+
switch (_18.label) {
|
|
5079
5403
|
case 0:
|
|
5080
5404
|
if (!kwikidToolkit.checkObjectKeyExists(childFieldGroupConfig, "rules")) return [3 /*break*/, 8];
|
|
5081
5405
|
rulesMapping = new kwikidToolkit.Rule(childFieldGroupConfig.rules, {
|
|
@@ -5085,14 +5409,14 @@
|
|
|
5085
5409
|
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5086
5410
|
ALL_FORMS_DATA: this.allFormsData
|
|
5087
5411
|
}).mapping();
|
|
5088
|
-
|
|
5412
|
+
_18.label = 1;
|
|
5089
5413
|
case 1:
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5414
|
+
_18.trys.push([1, 6, 7, 8]);
|
|
5415
|
+
_15 = __values(childFieldGroupConfig.actions), _16 = _15.next();
|
|
5416
|
+
_18.label = 2;
|
|
5093
5417
|
case 2:
|
|
5094
|
-
if (!!
|
|
5095
|
-
action =
|
|
5418
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
5419
|
+
action = _16.value;
|
|
5096
5420
|
conditionSuccess = new kwikidToolkit.Condition(action.condition, rulesMapping).evaluate();
|
|
5097
5421
|
if (!conditionSuccess) return [3 /*break*/, 4];
|
|
5098
5422
|
actions = new kwikidToolkit.Action(action, rulesMapping, {
|
|
@@ -5105,19 +5429,19 @@
|
|
|
5105
5429
|
}, this.takeActionOnFieldGroup.bind(this));
|
|
5106
5430
|
return [4 /*yield*/, actions.execute()];
|
|
5107
5431
|
case 3:
|
|
5108
|
-
|
|
5109
|
-
|
|
5432
|
+
_18.sent();
|
|
5433
|
+
_18.label = 4;
|
|
5110
5434
|
case 4:
|
|
5111
|
-
|
|
5435
|
+
_16 = _15.next();
|
|
5112
5436
|
return [3 /*break*/, 2];
|
|
5113
5437
|
case 5: return [3 /*break*/, 8];
|
|
5114
5438
|
case 6:
|
|
5115
|
-
e_4_1 =
|
|
5439
|
+
e_4_1 = _18.sent();
|
|
5116
5440
|
e_4 = { error: e_4_1 };
|
|
5117
5441
|
return [3 /*break*/, 8];
|
|
5118
5442
|
case 7:
|
|
5119
5443
|
try {
|
|
5120
|
-
if (
|
|
5444
|
+
if (_16 && !_16.done && (_17 = _15.return)) _17.call(_15);
|
|
5121
5445
|
}
|
|
5122
5446
|
finally { if (e_4) throw e_4.error; }
|
|
5123
5447
|
return [7 /*endfinally*/];
|
|
@@ -5128,15 +5452,15 @@
|
|
|
5128
5452
|
};
|
|
5129
5453
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldGroup = function (currentField, connectedFieldGroupConfig, eventType) {
|
|
5130
5454
|
return __awaiter(this, void 0, void 0, function () {
|
|
5131
|
-
return __generator(this, function (
|
|
5132
|
-
switch (
|
|
5455
|
+
return __generator(this, function (_15) {
|
|
5456
|
+
switch (_15.label) {
|
|
5133
5457
|
case 0:
|
|
5134
5458
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldGroupConfig, "triggers")) return [3 /*break*/, 2];
|
|
5135
5459
|
if (!connectedFieldGroupConfig.triggers.includes(eventType)) return [3 /*break*/, 2];
|
|
5136
5460
|
return [4 /*yield*/, this.handleConnectedElementFieldGroupActions(connectedFieldGroupConfig, currentField)];
|
|
5137
5461
|
case 1:
|
|
5138
|
-
|
|
5139
|
-
|
|
5462
|
+
_15.sent();
|
|
5463
|
+
_15.label = 2;
|
|
5140
5464
|
case 2: return [2 /*return*/];
|
|
5141
5465
|
}
|
|
5142
5466
|
});
|
|
@@ -5144,10 +5468,10 @@
|
|
|
5144
5468
|
};
|
|
5145
5469
|
KwikIDFormViewComponent.prototype.handleConnectedElementFieldActions = function (connectedFieldConfig, connectedField) {
|
|
5146
5470
|
return __awaiter(this, void 0, void 0, function () {
|
|
5147
|
-
var rulesMapping,
|
|
5148
|
-
var e_5,
|
|
5149
|
-
return __generator(this, function (
|
|
5150
|
-
switch (
|
|
5471
|
+
var rulesMapping, _15, _16, action, conditionSuccess, actions, e_5_1;
|
|
5472
|
+
var e_5, _17;
|
|
5473
|
+
return __generator(this, function (_18) {
|
|
5474
|
+
switch (_18.label) {
|
|
5151
5475
|
case 0:
|
|
5152
5476
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "rules")) return [3 /*break*/, 8];
|
|
5153
5477
|
rulesMapping = new kwikidToolkit.Rule(connectedFieldConfig.rules, {
|
|
@@ -5157,14 +5481,14 @@
|
|
|
5157
5481
|
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
5158
5482
|
ALL_FORMS_DATA: this.allFormsData
|
|
5159
5483
|
}).mapping();
|
|
5160
|
-
|
|
5484
|
+
_18.label = 1;
|
|
5161
5485
|
case 1:
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5486
|
+
_18.trys.push([1, 6, 7, 8]);
|
|
5487
|
+
_15 = __values(connectedFieldConfig.actions), _16 = _15.next();
|
|
5488
|
+
_18.label = 2;
|
|
5165
5489
|
case 2:
|
|
5166
|
-
if (!!
|
|
5167
|
-
action =
|
|
5490
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
5491
|
+
action = _16.value;
|
|
5168
5492
|
conditionSuccess = new kwikidToolkit.Condition(action.condition, rulesMapping).evaluate();
|
|
5169
5493
|
if (!conditionSuccess) return [3 /*break*/, 4];
|
|
5170
5494
|
actions = new kwikidToolkit.Action(action, rulesMapping, {
|
|
@@ -5177,19 +5501,19 @@
|
|
|
5177
5501
|
}, this.takeAction.bind(this));
|
|
5178
5502
|
return [4 /*yield*/, actions.execute()];
|
|
5179
5503
|
case 3:
|
|
5180
|
-
|
|
5181
|
-
|
|
5504
|
+
_18.sent();
|
|
5505
|
+
_18.label = 4;
|
|
5182
5506
|
case 4:
|
|
5183
|
-
|
|
5507
|
+
_16 = _15.next();
|
|
5184
5508
|
return [3 /*break*/, 2];
|
|
5185
5509
|
case 5: return [3 /*break*/, 8];
|
|
5186
5510
|
case 6:
|
|
5187
|
-
e_5_1 =
|
|
5511
|
+
e_5_1 = _18.sent();
|
|
5188
5512
|
e_5 = { error: e_5_1 };
|
|
5189
5513
|
return [3 /*break*/, 8];
|
|
5190
5514
|
case 7:
|
|
5191
5515
|
try {
|
|
5192
|
-
if (
|
|
5516
|
+
if (_16 && !_16.done && (_17 = _15.return)) _17.call(_15);
|
|
5193
5517
|
}
|
|
5194
5518
|
finally { if (e_5) throw e_5.error; }
|
|
5195
5519
|
return [7 /*endfinally*/];
|
|
@@ -5201,16 +5525,16 @@
|
|
|
5201
5525
|
KwikIDFormViewComponent.prototype.handleConnectedElementFields = function (currentField, connectedFieldConfig, eventType, nested) {
|
|
5202
5526
|
return __awaiter(this, void 0, void 0, function () {
|
|
5203
5527
|
var connectedField;
|
|
5204
|
-
return __generator(this, function (
|
|
5205
|
-
switch (
|
|
5528
|
+
return __generator(this, function (_15) {
|
|
5529
|
+
switch (_15.label) {
|
|
5206
5530
|
case 0:
|
|
5207
5531
|
connectedField = getFormFieldByKey(this.formFields, connectedFieldConfig["key"]);
|
|
5208
5532
|
if (!kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "triggers")) return [3 /*break*/, 2];
|
|
5209
5533
|
if (!connectedFieldConfig.triggers.includes(eventType)) return [3 /*break*/, 2];
|
|
5210
5534
|
return [4 /*yield*/, this.handleConnectedElementFieldActions(connectedFieldConfig, connectedField)];
|
|
5211
5535
|
case 1:
|
|
5212
|
-
connectedField =
|
|
5213
|
-
|
|
5536
|
+
connectedField = _15.sent();
|
|
5537
|
+
_15.label = 2;
|
|
5214
5538
|
case 2:
|
|
5215
5539
|
if (kwikidToolkit.checkObjectKeyExists(connectedFieldConfig, "handleNestedFields")) {
|
|
5216
5540
|
if (connectedFieldConfig.handleNestedFields) {
|
|
@@ -5225,67 +5549,67 @@
|
|
|
5225
5549
|
KwikIDFormViewComponent.prototype.handleConnectedElements = function (e, eventType) {
|
|
5226
5550
|
return __awaiter(this, void 0, void 0, function () {
|
|
5227
5551
|
var currentField, connectedFieldGroups, connectedFieldGroups_1, connectedFieldGroups_1_1, connectedFieldGroupConfig, e_6_1, connectedFields, connectedFields_1, connectedFields_1_1, connectedFieldConfig, e_7_1;
|
|
5228
|
-
var e_6,
|
|
5229
|
-
return __generator(this, function (
|
|
5230
|
-
switch (
|
|
5552
|
+
var e_6, _15, e_7, _16;
|
|
5553
|
+
return __generator(this, function (_17) {
|
|
5554
|
+
switch (_17.label) {
|
|
5231
5555
|
case 0:
|
|
5232
5556
|
currentField = getFormFieldByKey(this.formFields, e.key);
|
|
5233
5557
|
if (!(currentField !== undefined)) return [3 /*break*/, 17];
|
|
5234
5558
|
if (!kwikidToolkit.checkObjectKeyExists(currentField, "connectedElements")) return [3 /*break*/, 16];
|
|
5235
5559
|
if (!kwikidToolkit.checkObjectKeyExists(currentField.connectedElements, "connectedFieldGroups")) return [3 /*break*/, 8];
|
|
5236
5560
|
connectedFieldGroups = currentField.connectedElements.connectedFieldGroups;
|
|
5237
|
-
|
|
5561
|
+
_17.label = 1;
|
|
5238
5562
|
case 1:
|
|
5239
|
-
|
|
5563
|
+
_17.trys.push([1, 6, 7, 8]);
|
|
5240
5564
|
connectedFieldGroups_1 = __values(connectedFieldGroups), connectedFieldGroups_1_1 = connectedFieldGroups_1.next();
|
|
5241
|
-
|
|
5565
|
+
_17.label = 2;
|
|
5242
5566
|
case 2:
|
|
5243
5567
|
if (!!connectedFieldGroups_1_1.done) return [3 /*break*/, 5];
|
|
5244
5568
|
connectedFieldGroupConfig = connectedFieldGroups_1_1.value;
|
|
5245
5569
|
return [4 /*yield*/, this.handleConnectedElementFieldGroup(currentField, connectedFieldGroupConfig, eventType)];
|
|
5246
5570
|
case 3:
|
|
5247
|
-
|
|
5248
|
-
|
|
5571
|
+
_17.sent();
|
|
5572
|
+
_17.label = 4;
|
|
5249
5573
|
case 4:
|
|
5250
5574
|
connectedFieldGroups_1_1 = connectedFieldGroups_1.next();
|
|
5251
5575
|
return [3 /*break*/, 2];
|
|
5252
5576
|
case 5: return [3 /*break*/, 8];
|
|
5253
5577
|
case 6:
|
|
5254
|
-
e_6_1 =
|
|
5578
|
+
e_6_1 = _17.sent();
|
|
5255
5579
|
e_6 = { error: e_6_1 };
|
|
5256
5580
|
return [3 /*break*/, 8];
|
|
5257
5581
|
case 7:
|
|
5258
5582
|
try {
|
|
5259
|
-
if (connectedFieldGroups_1_1 && !connectedFieldGroups_1_1.done && (
|
|
5583
|
+
if (connectedFieldGroups_1_1 && !connectedFieldGroups_1_1.done && (_15 = connectedFieldGroups_1.return)) _15.call(connectedFieldGroups_1);
|
|
5260
5584
|
}
|
|
5261
5585
|
finally { if (e_6) throw e_6.error; }
|
|
5262
5586
|
return [7 /*endfinally*/];
|
|
5263
5587
|
case 8:
|
|
5264
5588
|
if (!kwikidToolkit.checkObjectKeyExists(currentField.connectedElements, "connectedFields")) return [3 /*break*/, 16];
|
|
5265
5589
|
connectedFields = currentField.connectedElements.connectedFields;
|
|
5266
|
-
|
|
5590
|
+
_17.label = 9;
|
|
5267
5591
|
case 9:
|
|
5268
|
-
|
|
5592
|
+
_17.trys.push([9, 14, 15, 16]);
|
|
5269
5593
|
connectedFields_1 = __values(connectedFields), connectedFields_1_1 = connectedFields_1.next();
|
|
5270
|
-
|
|
5594
|
+
_17.label = 10;
|
|
5271
5595
|
case 10:
|
|
5272
5596
|
if (!!connectedFields_1_1.done) return [3 /*break*/, 13];
|
|
5273
5597
|
connectedFieldConfig = connectedFields_1_1.value;
|
|
5274
5598
|
return [4 /*yield*/, this.handleConnectedElementFields(currentField, connectedFieldConfig, eventType, eventType)];
|
|
5275
5599
|
case 11:
|
|
5276
|
-
currentField =
|
|
5277
|
-
|
|
5600
|
+
currentField = _17.sent();
|
|
5601
|
+
_17.label = 12;
|
|
5278
5602
|
case 12:
|
|
5279
5603
|
connectedFields_1_1 = connectedFields_1.next();
|
|
5280
5604
|
return [3 /*break*/, 10];
|
|
5281
5605
|
case 13: return [3 /*break*/, 16];
|
|
5282
5606
|
case 14:
|
|
5283
|
-
e_7_1 =
|
|
5607
|
+
e_7_1 = _17.sent();
|
|
5284
5608
|
e_7 = { error: e_7_1 };
|
|
5285
5609
|
return [3 /*break*/, 16];
|
|
5286
5610
|
case 15:
|
|
5287
5611
|
try {
|
|
5288
|
-
if (connectedFields_1_1 && !connectedFields_1_1.done && (
|
|
5612
|
+
if (connectedFields_1_1 && !connectedFields_1_1.done && (_16 = connectedFields_1.return)) _16.call(connectedFields_1);
|
|
5289
5613
|
}
|
|
5290
5614
|
finally { if (e_7) throw e_7.error; }
|
|
5291
5615
|
return [7 /*endfinally*/];
|
|
@@ -5297,15 +5621,15 @@
|
|
|
5297
5621
|
});
|
|
5298
5622
|
};
|
|
5299
5623
|
KwikIDFormViewComponent.prototype.handleRemovedFile = function (e) {
|
|
5300
|
-
var
|
|
5624
|
+
var _15;
|
|
5301
5625
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5302
5626
|
this.showApiLoader();
|
|
5303
5627
|
if (this.formGroup["controls"][e.key].enabled) {
|
|
5304
5628
|
this.files[e.key] = e.files;
|
|
5305
5629
|
this.formData[e.key] = filterDuplicatesFiles(this.files[e.key]);
|
|
5306
|
-
this.formGroup.patchValue((
|
|
5307
|
-
|
|
5308
|
-
|
|
5630
|
+
this.formGroup.patchValue((_15 = {},
|
|
5631
|
+
_15[e.key] = this.formData[e.key],
|
|
5632
|
+
_15), { emitEvent: false });
|
|
5309
5633
|
}
|
|
5310
5634
|
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 })));
|
|
5311
5635
|
this.hideApiLoader();
|
|
@@ -5314,9 +5638,9 @@
|
|
|
5314
5638
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5315
5639
|
return __awaiter(this, void 0, void 0, function () {
|
|
5316
5640
|
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;
|
|
5317
|
-
var e_8,
|
|
5318
|
-
return __generator(this, function (
|
|
5319
|
-
switch (
|
|
5641
|
+
var e_8, _15, e_9, _16;
|
|
5642
|
+
return __generator(this, function (_17) {
|
|
5643
|
+
switch (_17.label) {
|
|
5320
5644
|
case 0:
|
|
5321
5645
|
this.showApiLoader();
|
|
5322
5646
|
field = getFormFieldByKey(this.formFields, e.key);
|
|
@@ -5324,42 +5648,42 @@
|
|
|
5324
5648
|
if (!(kwikidToolkit.checkObjectKeyExists(field, "properties") &&
|
|
5325
5649
|
kwikidToolkit.checkObjectKeyExists(field.properties, "uploadFileToServer") &&
|
|
5326
5650
|
field.properties.uploadFileToServer)) return [3 /*break*/, 9];
|
|
5327
|
-
|
|
5651
|
+
_17.label = 1;
|
|
5328
5652
|
case 1:
|
|
5329
|
-
|
|
5653
|
+
_17.trys.push([1, 6, 7, 8]);
|
|
5330
5654
|
values_1 = __values(values), values_1_1 = values_1.next();
|
|
5331
|
-
|
|
5655
|
+
_17.label = 2;
|
|
5332
5656
|
case 2:
|
|
5333
5657
|
if (!!values_1_1.done) return [3 /*break*/, 5];
|
|
5334
5658
|
value = values_1_1.value;
|
|
5335
5659
|
return [4 /*yield*/, this.uploadFile(field, value)];
|
|
5336
5660
|
case 3:
|
|
5337
|
-
|
|
5338
|
-
|
|
5661
|
+
_17.sent();
|
|
5662
|
+
_17.label = 4;
|
|
5339
5663
|
case 4:
|
|
5340
5664
|
values_1_1 = values_1.next();
|
|
5341
5665
|
return [3 /*break*/, 2];
|
|
5342
5666
|
case 5: return [3 /*break*/, 8];
|
|
5343
5667
|
case 6:
|
|
5344
|
-
e_8_1 =
|
|
5668
|
+
e_8_1 = _17.sent();
|
|
5345
5669
|
e_8 = { error: e_8_1 };
|
|
5346
5670
|
return [3 /*break*/, 8];
|
|
5347
5671
|
case 7:
|
|
5348
5672
|
try {
|
|
5349
|
-
if (values_1_1 && !values_1_1.done && (
|
|
5673
|
+
if (values_1_1 && !values_1_1.done && (_15 = values_1.return)) _15.call(values_1);
|
|
5350
5674
|
}
|
|
5351
5675
|
finally { if (e_8) throw e_8.error; }
|
|
5352
5676
|
return [7 /*endfinally*/];
|
|
5353
5677
|
case 8: return [3 /*break*/, 18];
|
|
5354
5678
|
case 9:
|
|
5355
5679
|
_loop_2 = function (value) {
|
|
5356
|
-
var updatedFile,
|
|
5357
|
-
return __generator(this, function (
|
|
5358
|
-
switch (
|
|
5680
|
+
var updatedFile, _18;
|
|
5681
|
+
return __generator(this, function (_19) {
|
|
5682
|
+
switch (_19.label) {
|
|
5359
5683
|
case 0:
|
|
5360
5684
|
this_2.updateFiles(value, "LOADING", e.key);
|
|
5361
5685
|
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 })));
|
|
5362
|
-
|
|
5686
|
+
_18 = kwikidToolkit.getObjectDeepCopy;
|
|
5363
5687
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
5364
5688
|
setTimeout(function () {
|
|
5365
5689
|
resolve({
|
|
@@ -5373,42 +5697,42 @@
|
|
|
5373
5697
|
}, 300); // 1000 ms = 1 sec
|
|
5374
5698
|
})];
|
|
5375
5699
|
case 1:
|
|
5376
|
-
updatedFile =
|
|
5700
|
+
updatedFile = _18.apply(void 0, [_19.sent()]);
|
|
5377
5701
|
this_2.updateFiles(updatedFile, "NORMAL", e.key);
|
|
5378
5702
|
return [2 /*return*/];
|
|
5379
5703
|
}
|
|
5380
5704
|
});
|
|
5381
5705
|
};
|
|
5382
5706
|
this_2 = this;
|
|
5383
|
-
|
|
5707
|
+
_17.label = 10;
|
|
5384
5708
|
case 10:
|
|
5385
|
-
|
|
5709
|
+
_17.trys.push([10, 15, 16, 17]);
|
|
5386
5710
|
values_2 = __values(values), values_2_1 = values_2.next();
|
|
5387
|
-
|
|
5711
|
+
_17.label = 11;
|
|
5388
5712
|
case 11:
|
|
5389
5713
|
if (!!values_2_1.done) return [3 /*break*/, 14];
|
|
5390
5714
|
value = values_2_1.value;
|
|
5391
5715
|
return [5 /*yield**/, _loop_2(value)];
|
|
5392
5716
|
case 12:
|
|
5393
|
-
|
|
5394
|
-
|
|
5717
|
+
_17.sent();
|
|
5718
|
+
_17.label = 13;
|
|
5395
5719
|
case 13:
|
|
5396
5720
|
values_2_1 = values_2.next();
|
|
5397
5721
|
return [3 /*break*/, 11];
|
|
5398
5722
|
case 14: return [3 /*break*/, 17];
|
|
5399
5723
|
case 15:
|
|
5400
|
-
e_9_1 =
|
|
5724
|
+
e_9_1 = _17.sent();
|
|
5401
5725
|
e_9 = { error: e_9_1 };
|
|
5402
5726
|
return [3 /*break*/, 17];
|
|
5403
5727
|
case 16:
|
|
5404
5728
|
try {
|
|
5405
|
-
if (values_2_1 && !values_2_1.done && (
|
|
5729
|
+
if (values_2_1 && !values_2_1.done && (_16 = values_2.return)) _16.call(values_2);
|
|
5406
5730
|
}
|
|
5407
5731
|
finally { if (e_9) throw e_9.error; }
|
|
5408
5732
|
return [7 /*endfinally*/];
|
|
5409
5733
|
case 17:
|
|
5410
5734
|
this.hideApiLoader();
|
|
5411
|
-
|
|
5735
|
+
_17.label = 18;
|
|
5412
5736
|
case 18: return [2 /*return*/];
|
|
5413
5737
|
}
|
|
5414
5738
|
});
|
|
@@ -5416,16 +5740,16 @@
|
|
|
5416
5740
|
};
|
|
5417
5741
|
/** Methods for Camera related fields like 'CAPTURE' or 'RECORD' */
|
|
5418
5742
|
KwikIDFormViewComponent.prototype.handleOnClickGetRemovedMediaFile = function (e) {
|
|
5419
|
-
var
|
|
5743
|
+
var _15;
|
|
5420
5744
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5421
5745
|
this.showApiLoader();
|
|
5422
5746
|
if (this.formGroup["controls"][e.key].enabled) {
|
|
5423
5747
|
this.resetCamera();
|
|
5424
5748
|
this.mediaFiles[e.key] = e.mediaFiles;
|
|
5425
5749
|
this.formData[e.key] = filterDuplicatesMediaFiles(this.mediaFiles[e.key]);
|
|
5426
|
-
this.formGroup.patchValue((
|
|
5427
|
-
|
|
5428
|
-
|
|
5750
|
+
this.formGroup.patchValue((_15 = {},
|
|
5751
|
+
_15[e.key] = this.formData[e.key],
|
|
5752
|
+
_15), { emitEvent: false });
|
|
5429
5753
|
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 })));
|
|
5430
5754
|
}
|
|
5431
5755
|
this.hideApiLoader();
|
|
@@ -5433,9 +5757,9 @@
|
|
|
5433
5757
|
KwikIDFormViewComponent.prototype.handleOnClickInputCamera = function (e, field) {
|
|
5434
5758
|
var _a, _b, _c, _d, _e, _f;
|
|
5435
5759
|
return __awaiter(this, void 0, void 0, function () {
|
|
5436
|
-
var fieldKey, fieldcameraConfig,
|
|
5437
|
-
return __generator(this, function (
|
|
5438
|
-
switch (
|
|
5760
|
+
var fieldKey, fieldcameraConfig, _15, cameraHelper, _16, _17;
|
|
5761
|
+
return __generator(this, function (_18) {
|
|
5762
|
+
switch (_18.label) {
|
|
5439
5763
|
case 0:
|
|
5440
5764
|
this.loaderService.show({
|
|
5441
5765
|
loaderText: "Loading Camera...",
|
|
@@ -5450,8 +5774,8 @@
|
|
|
5450
5774
|
field_type: field.type,
|
|
5451
5775
|
camera_type: this.cameraType
|
|
5452
5776
|
});
|
|
5453
|
-
|
|
5454
|
-
switch (
|
|
5777
|
+
_15 = this.cameraType;
|
|
5778
|
+
switch (_15) {
|
|
5455
5779
|
case "CAPTURE": return [3 /*break*/, 1];
|
|
5456
5780
|
case "RECORD": return [3 /*break*/, 5];
|
|
5457
5781
|
}
|
|
@@ -5464,16 +5788,16 @@
|
|
|
5464
5788
|
if (!(((_d = (_c = this.cameraConfig) === null || _c === void 0 ? void 0 : _c.others) === null || _d === void 0 ? void 0 : _d.isWatermark) ||
|
|
5465
5789
|
((_f = (_e = this.cameraConfig) === null || _e === void 0 ? void 0 : _e.others) === null || _f === void 0 ? void 0 : _f.isWatermarkForImageUpload))) return [3 /*break*/, 3];
|
|
5466
5790
|
cameraHelper = new CameraHelper(field, this.formFields, this.allFormsData, this.formData, this.previousFormData);
|
|
5467
|
-
|
|
5468
|
-
|
|
5791
|
+
_16 = this;
|
|
5792
|
+
_17 = {};
|
|
5469
5793
|
return [4 /*yield*/, cameraHelper.getCameraWatermarkData()];
|
|
5470
5794
|
case 2:
|
|
5471
|
-
|
|
5472
|
-
|
|
5795
|
+
_16.cameraData = (_17.watermark = _18.sent(),
|
|
5796
|
+
_17);
|
|
5473
5797
|
return [3 /*break*/, 4];
|
|
5474
5798
|
case 3:
|
|
5475
5799
|
this.cameraData = undefined;
|
|
5476
|
-
|
|
5800
|
+
_18.label = 4;
|
|
5477
5801
|
case 4: return [3 /*break*/, 7];
|
|
5478
5802
|
case 5:
|
|
5479
5803
|
this.cameraConfig = kwikidToolkit.mergeObjectsDeep([
|
|
@@ -5500,10 +5824,10 @@
|
|
|
5500
5824
|
KwikIDFormViewComponent.prototype.setCameraMedia = function (media) {
|
|
5501
5825
|
return __awaiter(this, void 0, void 0, function () {
|
|
5502
5826
|
var field, validations_4;
|
|
5503
|
-
var
|
|
5827
|
+
var _15;
|
|
5504
5828
|
var _this = this;
|
|
5505
|
-
return __generator(this, function (
|
|
5506
|
-
switch (
|
|
5829
|
+
return __generator(this, function (_16) {
|
|
5830
|
+
switch (_16.label) {
|
|
5507
5831
|
case 0:
|
|
5508
5832
|
field = getFormFieldByKey(this.formFields, this.cameraFieldKey);
|
|
5509
5833
|
if (!(kwikidToolkit.checkObjectKeyExists(field, "properties") &&
|
|
@@ -5511,7 +5835,7 @@
|
|
|
5511
5835
|
field.properties.uploadFileToServer)) return [3 /*break*/, 2];
|
|
5512
5836
|
return [4 /*yield*/, this.uploadFile(field, media)];
|
|
5513
5837
|
case 1:
|
|
5514
|
-
|
|
5838
|
+
_16.sent();
|
|
5515
5839
|
return [3 /*break*/, 3];
|
|
5516
5840
|
case 2:
|
|
5517
5841
|
this.resetCamera();
|
|
@@ -5521,9 +5845,9 @@
|
|
|
5521
5845
|
emitEvent: false,
|
|
5522
5846
|
onlySelf: false
|
|
5523
5847
|
});
|
|
5524
|
-
this.formGroup.patchValue((
|
|
5525
|
-
|
|
5526
|
-
|
|
5848
|
+
this.formGroup.patchValue((_15 = {},
|
|
5849
|
+
_15[field.key] = kwikidToolkit.getObjectDeepCopy([media]),
|
|
5850
|
+
_15), { emitEvent: false });
|
|
5527
5851
|
this.formGroup.controls[field.key].updateValueAndValidity({
|
|
5528
5852
|
emitEvent: false
|
|
5529
5853
|
});
|
|
@@ -5543,11 +5867,11 @@
|
|
|
5543
5867
|
ALL_FORMS_DATA: this.allFormsData
|
|
5544
5868
|
}, this.takeAction.bind(this));
|
|
5545
5869
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5546
|
-
return __generator(this, function (
|
|
5547
|
-
switch (
|
|
5870
|
+
return __generator(this, function (_15) {
|
|
5871
|
+
switch (_15.label) {
|
|
5548
5872
|
case 0: return [4 /*yield*/, validations_4.validate(field.validation)];
|
|
5549
5873
|
case 1:
|
|
5550
|
-
|
|
5874
|
+
_15.sent();
|
|
5551
5875
|
return [2 /*return*/];
|
|
5552
5876
|
}
|
|
5553
5877
|
});
|
|
@@ -5564,7 +5888,7 @@
|
|
|
5564
5888
|
field_key: field.key,
|
|
5565
5889
|
field_type: field.type
|
|
5566
5890
|
});
|
|
5567
|
-
|
|
5891
|
+
_16.label = 3;
|
|
5568
5892
|
case 3: return [2 /*return*/];
|
|
5569
5893
|
}
|
|
5570
5894
|
});
|
|
@@ -5676,7 +6000,7 @@
|
|
|
5676
6000
|
* 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.
|
|
5677
6001
|
*/
|
|
5678
6002
|
KwikIDFormViewComponent.prototype.updateFiles = function (file, state, key) {
|
|
5679
|
-
var
|
|
6003
|
+
var _15;
|
|
5680
6004
|
var _this = this;
|
|
5681
6005
|
var _a;
|
|
5682
6006
|
var fileWithState = kwikidToolkit.mergeObjects(file, { state: state });
|
|
@@ -5704,9 +6028,9 @@
|
|
|
5704
6028
|
emitEvent: false,
|
|
5705
6029
|
onlySelf: false
|
|
5706
6030
|
});
|
|
5707
|
-
this.formGroup.patchValue((
|
|
5708
|
-
|
|
5709
|
-
|
|
6031
|
+
this.formGroup.patchValue((_15 = {},
|
|
6032
|
+
_15[key] = normalFiles,
|
|
6033
|
+
_15), { emitEvent: false });
|
|
5710
6034
|
this.getUnsavedDataState.emit(true);
|
|
5711
6035
|
if (field.isFormElement &&
|
|
5712
6036
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
@@ -5720,11 +6044,11 @@
|
|
|
5720
6044
|
ALL_FORMS_DATA: this.allFormsData
|
|
5721
6045
|
}, this.takeAction.bind(this));
|
|
5722
6046
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5723
|
-
return __generator(this, function (
|
|
5724
|
-
switch (
|
|
6047
|
+
return __generator(this, function (_15) {
|
|
6048
|
+
switch (_15.label) {
|
|
5725
6049
|
case 0: return [4 /*yield*/, validations_5.validate(field.validation)];
|
|
5726
6050
|
case 1:
|
|
5727
|
-
|
|
6051
|
+
_15.sent();
|
|
5728
6052
|
return [2 /*return*/];
|
|
5729
6053
|
}
|
|
5730
6054
|
});
|
|
@@ -5743,7 +6067,7 @@
|
|
|
5743
6067
|
*/
|
|
5744
6068
|
KwikIDFormViewComponent.prototype.uploadFile = function (field, file) {
|
|
5745
6069
|
return __awaiter(this, void 0, void 0, function () {
|
|
5746
|
-
return __generator(this, function (
|
|
6070
|
+
return __generator(this, function (_15) {
|
|
5747
6071
|
switch (field.type) {
|
|
5748
6072
|
case EFieldType.FILE:
|
|
5749
6073
|
this.updateFiles(file, "LOADING", field.key);
|
|
@@ -5829,11 +6153,11 @@
|
|
|
5829
6153
|
});
|
|
5830
6154
|
};
|
|
5831
6155
|
KwikIDFormViewComponent.prototype.handleOnClickFormFieldButton = function (field) {
|
|
5832
|
-
var e_10,
|
|
6156
|
+
var e_10, _15;
|
|
5833
6157
|
var formData = this.formGroup.getRawValue();
|
|
5834
6158
|
try {
|
|
5835
|
-
for (var
|
|
5836
|
-
var field_3 =
|
|
6159
|
+
for (var _16 = __values(this.formFields), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6160
|
+
var field_3 = _17.value;
|
|
5837
6161
|
if (field_3.isFormElement) {
|
|
5838
6162
|
if (field_3.hidden) {
|
|
5839
6163
|
delete formData[field_3.key];
|
|
@@ -5847,22 +6171,22 @@
|
|
|
5847
6171
|
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
5848
6172
|
finally {
|
|
5849
6173
|
try {
|
|
5850
|
-
if (
|
|
6174
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
5851
6175
|
}
|
|
5852
6176
|
finally { if (e_10) throw e_10.error; }
|
|
5853
6177
|
}
|
|
5854
6178
|
var extendedFormData = this.formFields.reduce(function (result, field, index) {
|
|
5855
|
-
var
|
|
6179
|
+
var _15;
|
|
5856
6180
|
if (field.isFormElement && !field.hidden) {
|
|
5857
|
-
var fieldData = (
|
|
5858
|
-
|
|
6181
|
+
var fieldData = (_15 = {},
|
|
6182
|
+
_15[field.key] = {
|
|
5859
6183
|
key: field.key,
|
|
5860
6184
|
label: field.label,
|
|
5861
6185
|
value: kwikidToolkit.isEmptyValue(formData[field.key]) ? "" : formData[field.key],
|
|
5862
6186
|
type: field.type,
|
|
5863
6187
|
index: index
|
|
5864
6188
|
},
|
|
5865
|
-
|
|
6189
|
+
_15);
|
|
5866
6190
|
result[field.key] = fieldData[field.key];
|
|
5867
6191
|
}
|
|
5868
6192
|
return result;
|
|
@@ -5880,11 +6204,11 @@
|
|
|
5880
6204
|
};
|
|
5881
6205
|
// DOM Event Handlers
|
|
5882
6206
|
KwikIDFormViewComponent.prototype.handleGetKeyValue = function (e) {
|
|
5883
|
-
var
|
|
6207
|
+
var _15;
|
|
5884
6208
|
var _this = this;
|
|
5885
|
-
this.formGroup.patchValue((
|
|
5886
|
-
|
|
5887
|
-
|
|
6209
|
+
this.formGroup.patchValue((_15 = {},
|
|
6210
|
+
_15[e.key] = e.value,
|
|
6211
|
+
_15), { emitEvent: false });
|
|
5888
6212
|
var field = getFormFieldByKey(this.formFields, e.key);
|
|
5889
6213
|
this.formData[e.key] = convertFormFieldValueToStandardFormat(field, e.value);
|
|
5890
6214
|
this.getUnsavedDataState.emit(true);
|
|
@@ -5900,11 +6224,11 @@
|
|
|
5900
6224
|
ALL_FORMS_DATA: this.allFormsData
|
|
5901
6225
|
}, this.takeAction.bind(this));
|
|
5902
6226
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5903
|
-
return __generator(this, function (
|
|
5904
|
-
switch (
|
|
6227
|
+
return __generator(this, function (_15) {
|
|
6228
|
+
switch (_15.label) {
|
|
5905
6229
|
case 0: return [4 /*yield*/, validations_6.validate(field.validation)];
|
|
5906
6230
|
case 1:
|
|
5907
|
-
|
|
6231
|
+
_15.sent();
|
|
5908
6232
|
return [2 /*return*/];
|
|
5909
6233
|
}
|
|
5910
6234
|
});
|
|
@@ -5923,30 +6247,30 @@
|
|
|
5923
6247
|
return __awaiter(this, void 0, void 0, function () {
|
|
5924
6248
|
var resetFormFields, BYPASS_RESET_CONFIRM, CONFIRM_RESET;
|
|
5925
6249
|
var _this = this;
|
|
5926
|
-
return __generator(this, function (
|
|
6250
|
+
return __generator(this, function (_15) {
|
|
5927
6251
|
this.triggerLogs(ELogEventType$1.FORM__FIELD_RESET_BUTTON_CLICK, {
|
|
5928
6252
|
field_key: field.key
|
|
5929
6253
|
});
|
|
5930
6254
|
resetFormFields = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5931
|
-
var
|
|
5932
|
-
var e_12,
|
|
5933
|
-
return __generator(this, function (
|
|
5934
|
-
switch (
|
|
6255
|
+
var _15, _16, f, _17, _18, action, resetField, actions, e_11_1, e_12_1;
|
|
6256
|
+
var e_12, _19, e_11, _20;
|
|
6257
|
+
return __generator(this, function (_21) {
|
|
6258
|
+
switch (_21.label) {
|
|
5935
6259
|
case 0:
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
6260
|
+
_21.trys.push([0, 11, 12, 13]);
|
|
6261
|
+
_15 = __values(field.reset.fields), _16 = _15.next();
|
|
6262
|
+
_21.label = 1;
|
|
5939
6263
|
case 1:
|
|
5940
|
-
if (!!
|
|
5941
|
-
f =
|
|
5942
|
-
|
|
6264
|
+
if (!!_16.done) return [3 /*break*/, 10];
|
|
6265
|
+
f = _16.value;
|
|
6266
|
+
_21.label = 2;
|
|
5943
6267
|
case 2:
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
6268
|
+
_21.trys.push([2, 7, 8, 9]);
|
|
6269
|
+
_17 = (e_11 = void 0, __values(f.actions)), _18 = _17.next();
|
|
6270
|
+
_21.label = 3;
|
|
5947
6271
|
case 3:
|
|
5948
|
-
if (!!
|
|
5949
|
-
action =
|
|
6272
|
+
if (!!_18.done) return [3 /*break*/, 6];
|
|
6273
|
+
action = _18.value;
|
|
5950
6274
|
resetField = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
5951
6275
|
actions = new kwikidToolkit.Action(action, {}, {
|
|
5952
6276
|
FIELD_CONFIG: resetField,
|
|
@@ -5958,33 +6282,33 @@
|
|
|
5958
6282
|
}, this.takeAction.bind(this));
|
|
5959
6283
|
return [4 /*yield*/, actions.execute()];
|
|
5960
6284
|
case 4:
|
|
5961
|
-
|
|
5962
|
-
|
|
6285
|
+
_21.sent();
|
|
6286
|
+
_21.label = 5;
|
|
5963
6287
|
case 5:
|
|
5964
|
-
|
|
6288
|
+
_18 = _17.next();
|
|
5965
6289
|
return [3 /*break*/, 3];
|
|
5966
6290
|
case 6: return [3 /*break*/, 9];
|
|
5967
6291
|
case 7:
|
|
5968
|
-
e_11_1 =
|
|
6292
|
+
e_11_1 = _21.sent();
|
|
5969
6293
|
e_11 = { error: e_11_1 };
|
|
5970
6294
|
return [3 /*break*/, 9];
|
|
5971
6295
|
case 8:
|
|
5972
6296
|
try {
|
|
5973
|
-
if (
|
|
6297
|
+
if (_18 && !_18.done && (_20 = _17.return)) _20.call(_17);
|
|
5974
6298
|
}
|
|
5975
6299
|
finally { if (e_11) throw e_11.error; }
|
|
5976
6300
|
return [7 /*endfinally*/];
|
|
5977
6301
|
case 9:
|
|
5978
|
-
|
|
6302
|
+
_16 = _15.next();
|
|
5979
6303
|
return [3 /*break*/, 1];
|
|
5980
6304
|
case 10: return [3 /*break*/, 13];
|
|
5981
6305
|
case 11:
|
|
5982
|
-
e_12_1 =
|
|
6306
|
+
e_12_1 = _21.sent();
|
|
5983
6307
|
e_12 = { error: e_12_1 };
|
|
5984
6308
|
return [3 /*break*/, 13];
|
|
5985
6309
|
case 12:
|
|
5986
6310
|
try {
|
|
5987
|
-
if (
|
|
6311
|
+
if (_16 && !_16.done && (_19 = _15.return)) _19.call(_15);
|
|
5988
6312
|
}
|
|
5989
6313
|
finally { if (e_12) throw e_12.error; }
|
|
5990
6314
|
return [7 /*endfinally*/];
|
|
@@ -6009,9 +6333,9 @@
|
|
|
6009
6333
|
KwikIDFormViewComponent.prototype.handleFieldApiCall = function (field, api) {
|
|
6010
6334
|
return __awaiter(this, void 0, void 0, function () {
|
|
6011
6335
|
var apis;
|
|
6012
|
-
var
|
|
6013
|
-
return __generator(this, function (
|
|
6014
|
-
switch (
|
|
6336
|
+
var _15, _16;
|
|
6337
|
+
return __generator(this, function (_17) {
|
|
6338
|
+
switch (_17.label) {
|
|
6015
6339
|
case 0: return [4 /*yield*/, this.executeApiCall(api, {
|
|
6016
6340
|
FIELD_CONFIG: field,
|
|
6017
6341
|
API_CONFIG: api,
|
|
@@ -6022,13 +6346,13 @@
|
|
|
6022
6346
|
ALL_FORMS_DATA: this.allFormsData
|
|
6023
6347
|
})];
|
|
6024
6348
|
case 1:
|
|
6025
|
-
api =
|
|
6349
|
+
api = _17.sent();
|
|
6026
6350
|
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
|
|
6027
6351
|
if (kwikidToolkit.checkObjectKeyExists(field.api, "request")) {
|
|
6028
|
-
this.formData = Object.assign(Object.assign({}, this.formData), (
|
|
6029
|
-
this.formGroup.patchValue((
|
|
6030
|
-
|
|
6031
|
-
|
|
6352
|
+
this.formData = Object.assign(Object.assign({}, this.formData), (_15 = {}, _15[field.key] = api.response.value, _15));
|
|
6353
|
+
this.formGroup.patchValue((_16 = {},
|
|
6354
|
+
_16[field.key] = api.response.value,
|
|
6355
|
+
_16), { emitEvent: false });
|
|
6032
6356
|
}
|
|
6033
6357
|
apis = new Apis({
|
|
6034
6358
|
FIELD_CONFIG: field,
|
|
@@ -6042,14 +6366,14 @@
|
|
|
6042
6366
|
}, this.takeAction.bind(this));
|
|
6043
6367
|
return [4 /*yield*/, apis.validateResponse()];
|
|
6044
6368
|
case 2:
|
|
6045
|
-
api =
|
|
6369
|
+
api = _17.sent();
|
|
6046
6370
|
return [3 /*break*/, 4];
|
|
6047
6371
|
case 3:
|
|
6048
6372
|
setTimeout(function () {
|
|
6049
6373
|
field["api"]["status"]["value"] = EApiStatusType.FAILED;
|
|
6050
6374
|
field["showLoader"] = false;
|
|
6051
6375
|
}, 500);
|
|
6052
|
-
|
|
6376
|
+
_17.label = 4;
|
|
6053
6377
|
case 4: return [2 /*return*/, { field: field, api: api }];
|
|
6054
6378
|
}
|
|
6055
6379
|
});
|
|
@@ -6058,8 +6382,8 @@
|
|
|
6058
6382
|
KwikIDFormViewComponent.prototype.handleApiCall = function (api) {
|
|
6059
6383
|
return __awaiter(this, void 0, void 0, function () {
|
|
6060
6384
|
var apis;
|
|
6061
|
-
return __generator(this, function (
|
|
6062
|
-
switch (
|
|
6385
|
+
return __generator(this, function (_15) {
|
|
6386
|
+
switch (_15.label) {
|
|
6063
6387
|
case 0: return [4 /*yield*/, this.executeApiCall(api, {
|
|
6064
6388
|
FORM_CONFIG: this.formConfig,
|
|
6065
6389
|
API_CONFIG: api,
|
|
@@ -6070,7 +6394,7 @@
|
|
|
6070
6394
|
ALL_FORMS_DATA: this.allFormsData
|
|
6071
6395
|
})];
|
|
6072
6396
|
case 1:
|
|
6073
|
-
api =
|
|
6397
|
+
api = _15.sent();
|
|
6074
6398
|
apis = new Apis({
|
|
6075
6399
|
FORM_CONFIG: this.formConfig,
|
|
6076
6400
|
API_CONFIG: api,
|
|
@@ -6083,38 +6407,38 @@
|
|
|
6083
6407
|
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
|
|
6084
6408
|
return [4 /*yield*/, apis.validateResponse()];
|
|
6085
6409
|
case 2:
|
|
6086
|
-
api =
|
|
6087
|
-
|
|
6410
|
+
api = _15.sent();
|
|
6411
|
+
_15.label = 3;
|
|
6088
6412
|
case 3: return [2 /*return*/, { api: api }];
|
|
6089
6413
|
}
|
|
6090
6414
|
});
|
|
6091
6415
|
});
|
|
6092
6416
|
};
|
|
6093
6417
|
KwikIDFormViewComponent.prototype.executeApiCall = function (api, object) {
|
|
6094
|
-
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;
|
|
6418
|
+
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;
|
|
6095
6419
|
return __awaiter(this, void 0, void 0, function () {
|
|
6096
|
-
var apis, apiCallResponse, apiCallResponseStatusCode, url, method, headers,
|
|
6097
|
-
return __generator(this, function (
|
|
6098
|
-
switch (
|
|
6420
|
+
var apis, apiCallResponse, apiCallResponseStatusCode, url, method, headers, isDecryptResponse, isVerifySignature, executedApiCall, _13_1, body, isEncryptRequestBody, isDecryptResponse, isVerifySignature, executedApiCall, _14_1;
|
|
6421
|
+
return __generator(this, function (_15) {
|
|
6422
|
+
switch (_15.label) {
|
|
6099
6423
|
case 0:
|
|
6100
6424
|
apis = new Apis(object, this.takeAction.bind(this));
|
|
6101
6425
|
return [4 /*yield*/, apis.setUrl()];
|
|
6102
6426
|
case 1:
|
|
6103
|
-
api =
|
|
6427
|
+
api = _15.sent();
|
|
6104
6428
|
return [4 /*yield*/, apis.setRequestHeaders()];
|
|
6105
6429
|
case 2:
|
|
6106
|
-
api =
|
|
6430
|
+
api = _15.sent();
|
|
6107
6431
|
return [4 /*yield*/, apis.validateRequestHeaders()];
|
|
6108
6432
|
case 3:
|
|
6109
|
-
api =
|
|
6433
|
+
api = _15.sent();
|
|
6110
6434
|
return [4 /*yield*/, apis.setRequestBody()];
|
|
6111
6435
|
case 4:
|
|
6112
|
-
api =
|
|
6436
|
+
api = _15.sent();
|
|
6113
6437
|
return [4 /*yield*/, apis.validateRequestBody()];
|
|
6114
6438
|
case 5:
|
|
6115
|
-
api =
|
|
6439
|
+
api = _15.sent();
|
|
6116
6440
|
apiCallResponse = {};
|
|
6117
|
-
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/,
|
|
6441
|
+
if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 17];
|
|
6118
6442
|
if (!(api.request.url.hasOwnProperty("type") &&
|
|
6119
6443
|
api.request.url.type === EApiRequestUrlType.MOCK)) return [3 /*break*/, 7];
|
|
6120
6444
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
@@ -6123,100 +6447,76 @@
|
|
|
6123
6447
|
}, 1000); // 1000 ms = 1 sec
|
|
6124
6448
|
})];
|
|
6125
6449
|
case 6:
|
|
6126
|
-
apiCallResponse =
|
|
6450
|
+
apiCallResponse = _15.sent();
|
|
6127
6451
|
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
|
|
6128
|
-
return [3 /*break*/,
|
|
6452
|
+
return [3 /*break*/, 16];
|
|
6129
6453
|
case 7:
|
|
6130
6454
|
url = api.request.url.value;
|
|
6131
6455
|
method = (_d = (_c = api.request) === null || _c === void 0 ? void 0 : _c.method) !== null && _d !== void 0 ? _d : "POST";
|
|
6132
6456
|
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) || {}));
|
|
6133
|
-
if (!(method === "GET")) return [3 /*break*/,
|
|
6457
|
+
if (!(method === "GET")) return [3 /*break*/, 12];
|
|
6458
|
+
// Trigger logs for API request with the method and API key
|
|
6134
6459
|
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST, {
|
|
6135
6460
|
form_api_method: method,
|
|
6136
6461
|
form_api_key: (_g = api === null || api === void 0 ? void 0 : api.apiKey) !== null && _g !== void 0 ? _g : ""
|
|
6137
6462
|
});
|
|
6138
|
-
|
|
6463
|
+
_15.label = 8;
|
|
6139
6464
|
case 8:
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6465
|
+
_15.trys.push([8, 10, , 11]);
|
|
6466
|
+
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;
|
|
6467
|
+
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;
|
|
6468
|
+
return [4 /*yield*/, this.formViewApiService.executeApiCall(url, "GET", {}, // No request body for GET method
|
|
6469
|
+
headers, false, // isEncryptRequestBody is not applicable for GET method
|
|
6470
|
+
isDecryptResponse, isVerifySignature)];
|
|
6145
6471
|
case 9:
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
return [
|
|
6472
|
+
executedApiCall = _15.sent();
|
|
6473
|
+
apiCallResponse = executedApiCall.data;
|
|
6474
|
+
apiCallResponseStatusCode = executedApiCall.status;
|
|
6475
|
+
return [3 /*break*/, 11];
|
|
6150
6476
|
case 10:
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
apiCallResponse =
|
|
6154
|
-
|
|
6155
|
-
|
|
6477
|
+
_13_1 = _15.sent();
|
|
6478
|
+
// Handle any errors
|
|
6479
|
+
apiCallResponse = {};
|
|
6480
|
+
apiCallResponseStatusCode = 500; // Internal Server Error
|
|
6481
|
+
return [3 /*break*/, 11];
|
|
6482
|
+
case 11: return [3 /*break*/, 16];
|
|
6156
6483
|
case 12:
|
|
6157
|
-
|
|
6158
|
-
|
|
6484
|
+
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 : {};
|
|
6485
|
+
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;
|
|
6486
|
+
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;
|
|
6487
|
+
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;
|
|
6488
|
+
// Trigger logs for API request with the method and API key
|
|
6489
|
+
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 && {
|
|
6490
|
+
form_api_request_body: body
|
|
6491
|
+
})));
|
|
6492
|
+
_15.label = 13;
|
|
6159
6493
|
case 13:
|
|
6160
|
-
|
|
6161
|
-
return [
|
|
6494
|
+
_15.trys.push([13, 15, , 16]);
|
|
6495
|
+
return [4 /*yield*/, this.formViewApiService.executeApiCall(url, "POST", body, headers, isEncryptRequestBody, isDecryptResponse, isVerifySignature)];
|
|
6162
6496
|
case 14:
|
|
6163
|
-
|
|
6497
|
+
executedApiCall = _15.sent();
|
|
6498
|
+
apiCallResponse = executedApiCall.data;
|
|
6499
|
+
apiCallResponseStatusCode = executedApiCall.status;
|
|
6500
|
+
return [3 /*break*/, 16];
|
|
6501
|
+
case 15:
|
|
6502
|
+
_14_1 = _15.sent();
|
|
6503
|
+
// Handle any errors
|
|
6164
6504
|
apiCallResponse = {};
|
|
6165
|
-
apiCallResponseStatusCode = 500;
|
|
6166
|
-
return [3 /*break*/,
|
|
6167
|
-
case 15: return [3 /*break*/, 24];
|
|
6505
|
+
apiCallResponseStatusCode = 500; // Internal Server Error
|
|
6506
|
+
return [3 /*break*/, 16];
|
|
6168
6507
|
case 16:
|
|
6169
|
-
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 : {});
|
|
6170
|
-
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;
|
|
6171
|
-
if (isSecure) {
|
|
6172
|
-
body = kwikidToolkit.encryptWithAES(body);
|
|
6173
|
-
}
|
|
6174
|
-
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 && {
|
|
6175
|
-
form_api_request_body: body
|
|
6176
|
-
})));
|
|
6177
|
-
_7.label = 17;
|
|
6178
|
-
case 17:
|
|
6179
|
-
_7.trys.push([17, 23, , 24]);
|
|
6180
|
-
return [4 /*yield*/, fetch(url, {
|
|
6181
|
-
method: method,
|
|
6182
|
-
headers: Object.assign({}, headers),
|
|
6183
|
-
body: body
|
|
6184
|
-
})];
|
|
6185
|
-
case 18:
|
|
6186
|
-
response = _7.sent();
|
|
6187
|
-
isSecure_1 = (_r = api === null || api === void 0 ? void 0 : api.response) === null || _r === void 0 ? void 0 : _r.isSecure;
|
|
6188
|
-
if (!isSecure_1) return [3 /*break*/, 20];
|
|
6189
|
-
return [4 /*yield*/, response.text()];
|
|
6190
|
-
case 19:
|
|
6191
|
-
encryptedResponse = _7.sent();
|
|
6192
|
-
decryptedResponse = kwikidToolkit.decryptWithAES(encryptedResponse);
|
|
6193
|
-
apiCallResponse = JSON.parse(decryptedResponse);
|
|
6194
|
-
return [3 /*break*/, 22];
|
|
6195
|
-
case 20: return [4 /*yield*/, response.json()];
|
|
6196
|
-
case 21:
|
|
6197
|
-
apiCallResponse = _7.sent();
|
|
6198
|
-
_7.label = 22;
|
|
6199
|
-
case 22:
|
|
6200
|
-
apiCallResponseStatusCode = response.status;
|
|
6201
|
-
return [3 /*break*/, 24];
|
|
6202
|
-
case 23:
|
|
6203
|
-
err_2 = _7.sent();
|
|
6204
|
-
apiCallResponse = {};
|
|
6205
|
-
apiCallResponseStatusCode = 500;
|
|
6206
|
-
return [3 /*break*/, 24];
|
|
6207
|
-
case 24:
|
|
6208
6508
|
api.response = kwikidToolkit.setValueToObjectPath(api.response, "value", apiCallResponse);
|
|
6209
6509
|
api.response = kwikidToolkit.setValueToObjectPath(api.response, "status", apiCallResponseStatusCode);
|
|
6210
|
-
this.triggerLogs(ELogEventType$1.FORM__API_RESPONSE, Object.assign(Object.assign({ form_api_key: (
|
|
6510
|
+
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) && {
|
|
6211
6511
|
form_api_response_body: apiCallResponse !== null && apiCallResponse !== void 0 ? apiCallResponse : {}
|
|
6212
6512
|
})), { form_api_status_code: apiCallResponseStatusCode }));
|
|
6213
|
-
return [3 /*break*/,
|
|
6214
|
-
case
|
|
6215
|
-
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST_INVALID, Object.assign({ form_api_key: (
|
|
6216
|
-
form_api_request_body: (
|
|
6513
|
+
return [3 /*break*/, 18];
|
|
6514
|
+
case 17:
|
|
6515
|
+
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) && {
|
|
6516
|
+
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 : {}
|
|
6217
6517
|
})));
|
|
6218
|
-
|
|
6219
|
-
case
|
|
6518
|
+
_15.label = 18;
|
|
6519
|
+
case 18: return [2 /*return*/, api];
|
|
6220
6520
|
}
|
|
6221
6521
|
});
|
|
6222
6522
|
});
|
|
@@ -6253,8 +6553,8 @@
|
|
|
6253
6553
|
KwikIDFormViewComponent.prototype.handleOnClickApiCall = function (e) {
|
|
6254
6554
|
return __awaiter(this, void 0, void 0, function () {
|
|
6255
6555
|
var field, apis;
|
|
6256
|
-
return __generator(this, function (
|
|
6257
|
-
switch (
|
|
6556
|
+
return __generator(this, function (_15) {
|
|
6557
|
+
switch (_15.label) {
|
|
6258
6558
|
case 0:
|
|
6259
6559
|
field = getFormFieldByKey(this.formFields, e.key);
|
|
6260
6560
|
if (!(field.type === EFieldType.API)) return [3 /*break*/, 5];
|
|
@@ -6269,7 +6569,7 @@
|
|
|
6269
6569
|
if (!kwikidToolkit.checkObjectKeyExists(field.api, "request")) return [3 /*break*/, 2];
|
|
6270
6570
|
return [4 /*yield*/, this.handleFieldApiCall(field, field.api)];
|
|
6271
6571
|
case 1:
|
|
6272
|
-
|
|
6572
|
+
_15.sent();
|
|
6273
6573
|
return [3 /*break*/, 4];
|
|
6274
6574
|
case 2:
|
|
6275
6575
|
apis = new Apis({
|
|
@@ -6283,11 +6583,11 @@
|
|
|
6283
6583
|
}, this.takeAction.bind(this));
|
|
6284
6584
|
return [4 /*yield*/, apis.callNextApi(field.api.entrypoint)];
|
|
6285
6585
|
case 3:
|
|
6286
|
-
|
|
6287
|
-
|
|
6586
|
+
_15.sent();
|
|
6587
|
+
_15.label = 4;
|
|
6288
6588
|
case 4:
|
|
6289
6589
|
this.hideApiLoader();
|
|
6290
|
-
|
|
6590
|
+
_15.label = 5;
|
|
6291
6591
|
case 5: return [2 /*return*/];
|
|
6292
6592
|
}
|
|
6293
6593
|
});
|
|
@@ -6333,11 +6633,11 @@
|
|
|
6333
6633
|
};
|
|
6334
6634
|
KwikIDFormViewComponent.prototype.handleOnClickSaveForm = function (e) {
|
|
6335
6635
|
return __awaiter(this, void 0, void 0, function () {
|
|
6336
|
-
var controls, firstFieldWithError, controls_1, controls_1_1, control, field,
|
|
6337
|
-
var e_15,
|
|
6636
|
+
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;
|
|
6637
|
+
var e_15, _21, e_13, _22, e_16, _23, e_14, _24;
|
|
6338
6638
|
var _this = this;
|
|
6339
|
-
return __generator(this, function (
|
|
6340
|
-
switch (
|
|
6639
|
+
return __generator(this, function (_25) {
|
|
6640
|
+
switch (_25.label) {
|
|
6341
6641
|
case 0:
|
|
6342
6642
|
if (e) {
|
|
6343
6643
|
this.triggerLogs(ELogEventType$1.FORM__SAVE_BUTTON_CLICK, {});
|
|
@@ -6367,7 +6667,7 @@
|
|
|
6367
6667
|
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
6368
6668
|
finally {
|
|
6369
6669
|
try {
|
|
6370
|
-
if (controls_1_1 && !controls_1_1.done && (
|
|
6670
|
+
if (controls_1_1 && !controls_1_1.done && (_21 = controls_1.return)) _21.call(controls_1);
|
|
6371
6671
|
}
|
|
6372
6672
|
finally { if (e_15) throw e_15.error; }
|
|
6373
6673
|
}
|
|
@@ -6378,14 +6678,14 @@
|
|
|
6378
6678
|
}, 3000);
|
|
6379
6679
|
return [2 /*return*/];
|
|
6380
6680
|
}
|
|
6381
|
-
|
|
6681
|
+
_25.label = 1;
|
|
6382
6682
|
case 1:
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6683
|
+
_25.trys.push([1, 6, 7, 8]);
|
|
6684
|
+
_15 = __values(this.formFields), _16 = _15.next();
|
|
6685
|
+
_25.label = 2;
|
|
6386
6686
|
case 2:
|
|
6387
|
-
if (!!
|
|
6388
|
-
field =
|
|
6687
|
+
if (!!_16.done) return [3 /*break*/, 5];
|
|
6688
|
+
field = _16.value;
|
|
6389
6689
|
if (!(field.isFormElement &&
|
|
6390
6690
|
!field.hidden &&
|
|
6391
6691
|
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
@@ -6400,7 +6700,7 @@
|
|
|
6400
6700
|
}, this.takeAction.bind(this));
|
|
6401
6701
|
return [4 /*yield*/, validations.validate(field.validation)];
|
|
6402
6702
|
case 3:
|
|
6403
|
-
|
|
6703
|
+
_25.sent();
|
|
6404
6704
|
if (!field.validation.is_valid) {
|
|
6405
6705
|
this.toggleErrorNotification(true);
|
|
6406
6706
|
setTimeout(function () {
|
|
@@ -6408,26 +6708,26 @@
|
|
|
6408
6708
|
}, 3000);
|
|
6409
6709
|
return [2 /*return*/];
|
|
6410
6710
|
}
|
|
6411
|
-
|
|
6711
|
+
_25.label = 4;
|
|
6412
6712
|
case 4:
|
|
6413
|
-
|
|
6713
|
+
_16 = _15.next();
|
|
6414
6714
|
return [3 /*break*/, 2];
|
|
6415
6715
|
case 5: return [3 /*break*/, 8];
|
|
6416
6716
|
case 6:
|
|
6417
|
-
e_13_1 =
|
|
6717
|
+
e_13_1 = _25.sent();
|
|
6418
6718
|
e_13 = { error: e_13_1 };
|
|
6419
6719
|
return [3 /*break*/, 8];
|
|
6420
6720
|
case 7:
|
|
6421
6721
|
try {
|
|
6422
|
-
if (
|
|
6722
|
+
if (_16 && !_16.done && (_22 = _15.return)) _22.call(_15);
|
|
6423
6723
|
}
|
|
6424
6724
|
finally { if (e_13) throw e_13.error; }
|
|
6425
6725
|
return [7 /*endfinally*/];
|
|
6426
6726
|
case 8:
|
|
6427
6727
|
formData = this.formGroup.getRawValue();
|
|
6428
6728
|
try {
|
|
6429
|
-
for (
|
|
6430
|
-
field =
|
|
6729
|
+
for (_17 = __values(this.formFields), _18 = _17.next(); !_18.done; _18 = _17.next()) {
|
|
6730
|
+
field = _18.value;
|
|
6431
6731
|
if (field.isFormElement) {
|
|
6432
6732
|
if (field.hidden) {
|
|
6433
6733
|
delete formData[field.key];
|
|
@@ -6441,22 +6741,22 @@
|
|
|
6441
6741
|
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
6442
6742
|
finally {
|
|
6443
6743
|
try {
|
|
6444
|
-
if (
|
|
6744
|
+
if (_18 && !_18.done && (_23 = _17.return)) _23.call(_17);
|
|
6445
6745
|
}
|
|
6446
6746
|
finally { if (e_16) throw e_16.error; }
|
|
6447
6747
|
}
|
|
6448
6748
|
extendedFormData = this.formFields.reduce(function (result, field, index) {
|
|
6449
|
-
var
|
|
6749
|
+
var _15;
|
|
6450
6750
|
if (field.isFormElement && !field.hidden) {
|
|
6451
|
-
var fieldData = (
|
|
6452
|
-
|
|
6751
|
+
var fieldData = (_15 = {},
|
|
6752
|
+
_15[field.key] = {
|
|
6453
6753
|
key: field.key,
|
|
6454
6754
|
label: field.label,
|
|
6455
6755
|
value: kwikidToolkit.isEmptyValue(formData[field.key]) ? "" : formData[field.key],
|
|
6456
6756
|
type: field.type,
|
|
6457
6757
|
index: index
|
|
6458
6758
|
},
|
|
6459
|
-
|
|
6759
|
+
_15);
|
|
6460
6760
|
result[field.key] = fieldData[field.key];
|
|
6461
6761
|
}
|
|
6462
6762
|
return result;
|
|
@@ -6469,14 +6769,14 @@
|
|
|
6469
6769
|
if (!(kwikidToolkit.checkObjectKeyExists(this.formConfig, "tasks") &&
|
|
6470
6770
|
kwikidToolkit.checkObjectKeyExists(this.formConfig.tasks, "post"))) return [3 /*break*/, 18];
|
|
6471
6771
|
this.triggerLogs(ELogEventType$1.FORM__TASK_POST, {});
|
|
6472
|
-
|
|
6772
|
+
_25.label = 9;
|
|
6473
6773
|
case 9:
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6774
|
+
_25.trys.push([9, 15, 16, 17]);
|
|
6775
|
+
_19 = __values(this.formConfig.tasks.post), _20 = _19.next();
|
|
6776
|
+
_25.label = 10;
|
|
6477
6777
|
case 10:
|
|
6478
|
-
if (!!
|
|
6479
|
-
postTask =
|
|
6778
|
+
if (!!_20.done) return [3 /*break*/, 14];
|
|
6779
|
+
postTask = _20.value;
|
|
6480
6780
|
task = new Tasks(postTask, {
|
|
6481
6781
|
FORM_CONFIG: this.formConfig,
|
|
6482
6782
|
FORM_FIELDS: this.formFields,
|
|
@@ -6494,7 +6794,7 @@
|
|
|
6494
6794
|
}
|
|
6495
6795
|
return [4 /*yield*/, task.execute()];
|
|
6496
6796
|
case 11:
|
|
6497
|
-
|
|
6797
|
+
_25.sent();
|
|
6498
6798
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
6499
6799
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
6500
6800
|
var intervalId = setInterval(function () {
|
|
@@ -6506,22 +6806,22 @@
|
|
|
6506
6806
|
})];
|
|
6507
6807
|
case 12:
|
|
6508
6808
|
// Wait for ngOnChanges to be called before continuing to the next task
|
|
6509
|
-
|
|
6809
|
+
_25.sent();
|
|
6510
6810
|
if (this.stopTaskExecution) {
|
|
6511
6811
|
return [3 /*break*/, 14];
|
|
6512
6812
|
}
|
|
6513
|
-
|
|
6813
|
+
_25.label = 13;
|
|
6514
6814
|
case 13:
|
|
6515
|
-
|
|
6815
|
+
_20 = _19.next();
|
|
6516
6816
|
return [3 /*break*/, 10];
|
|
6517
6817
|
case 14: return [3 /*break*/, 17];
|
|
6518
6818
|
case 15:
|
|
6519
|
-
e_14_1 =
|
|
6819
|
+
e_14_1 = _25.sent();
|
|
6520
6820
|
e_14 = { error: e_14_1 };
|
|
6521
6821
|
return [3 /*break*/, 17];
|
|
6522
6822
|
case 16:
|
|
6523
6823
|
try {
|
|
6524
|
-
if (
|
|
6824
|
+
if (_20 && !_20.done && (_24 = _19.return)) _24.call(_19);
|
|
6525
6825
|
}
|
|
6526
6826
|
finally { if (e_14) throw e_14.error; }
|
|
6527
6827
|
return [7 /*endfinally*/];
|
|
@@ -6543,12 +6843,20 @@
|
|
|
6543
6843
|
data: kwikidToolkit.mergeObjects(formData, this.popupFormData, this.taskData),
|
|
6544
6844
|
extendedData: extendedFormData
|
|
6545
6845
|
});
|
|
6546
|
-
|
|
6846
|
+
_25.label = 19;
|
|
6547
6847
|
case 19: return [2 /*return*/];
|
|
6548
6848
|
}
|
|
6549
6849
|
});
|
|
6550
6850
|
});
|
|
6551
6851
|
};
|
|
6852
|
+
KwikIDFormViewComponent.prototype.handleOnApiTimerStop = function (e) {
|
|
6853
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6854
|
+
return __generator(this, function (_15) {
|
|
6855
|
+
this.fieldApiTimerMessageHide(e.key);
|
|
6856
|
+
return [2 /*return*/];
|
|
6857
|
+
});
|
|
6858
|
+
});
|
|
6859
|
+
};
|
|
6552
6860
|
KwikIDFormViewComponent.prototype.toggleErrorNotification = function (show) {
|
|
6553
6861
|
this.showErrorNotification = show;
|
|
6554
6862
|
};
|
|
@@ -6566,17 +6874,17 @@
|
|
|
6566
6874
|
});
|
|
6567
6875
|
};
|
|
6568
6876
|
KwikIDFormViewComponent.prototype.fieldGroupHide = function (fieldGroup) {
|
|
6569
|
-
var e_17,
|
|
6877
|
+
var e_17, _15;
|
|
6570
6878
|
try {
|
|
6571
|
-
for (var
|
|
6572
|
-
var fieldKey =
|
|
6879
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6880
|
+
var fieldKey = _17.value;
|
|
6573
6881
|
this.fieldHide(fieldKey);
|
|
6574
6882
|
}
|
|
6575
6883
|
}
|
|
6576
6884
|
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
6577
6885
|
finally {
|
|
6578
6886
|
try {
|
|
6579
|
-
if (
|
|
6887
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6580
6888
|
}
|
|
6581
6889
|
finally { if (e_17) throw e_17.error; }
|
|
6582
6890
|
}
|
|
@@ -6594,17 +6902,17 @@
|
|
|
6594
6902
|
});
|
|
6595
6903
|
};
|
|
6596
6904
|
KwikIDFormViewComponent.prototype.fieldGroupShow = function (fieldGroup) {
|
|
6597
|
-
var e_18,
|
|
6905
|
+
var e_18, _15;
|
|
6598
6906
|
try {
|
|
6599
|
-
for (var
|
|
6600
|
-
var fieldKey =
|
|
6907
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6908
|
+
var fieldKey = _17.value;
|
|
6601
6909
|
this.fieldShow(fieldKey);
|
|
6602
6910
|
}
|
|
6603
6911
|
}
|
|
6604
6912
|
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
6605
6913
|
finally {
|
|
6606
6914
|
try {
|
|
6607
|
-
if (
|
|
6915
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6608
6916
|
}
|
|
6609
6917
|
finally { if (e_18) throw e_18.error; }
|
|
6610
6918
|
}
|
|
@@ -6632,17 +6940,17 @@
|
|
|
6632
6940
|
});
|
|
6633
6941
|
};
|
|
6634
6942
|
KwikIDFormViewComponent.prototype.fieldGroupDisable = function (fieldGroup) {
|
|
6635
|
-
var e_19,
|
|
6943
|
+
var e_19, _15;
|
|
6636
6944
|
try {
|
|
6637
|
-
for (var
|
|
6638
|
-
var fieldKey =
|
|
6945
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6946
|
+
var fieldKey = _17.value;
|
|
6639
6947
|
this.fieldDisable(fieldKey);
|
|
6640
6948
|
}
|
|
6641
6949
|
}
|
|
6642
6950
|
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
6643
6951
|
finally {
|
|
6644
6952
|
try {
|
|
6645
|
-
if (
|
|
6953
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6646
6954
|
}
|
|
6647
6955
|
finally { if (e_19) throw e_19.error; }
|
|
6648
6956
|
}
|
|
@@ -6670,23 +6978,23 @@
|
|
|
6670
6978
|
});
|
|
6671
6979
|
};
|
|
6672
6980
|
KwikIDFormViewComponent.prototype.fieldGroupEnable = function (fieldGroup) {
|
|
6673
|
-
var e_20,
|
|
6981
|
+
var e_20, _15;
|
|
6674
6982
|
try {
|
|
6675
|
-
for (var
|
|
6676
|
-
var fieldKey =
|
|
6983
|
+
for (var _16 = __values(this.fieldGroups[fieldGroup]), _17 = _16.next(); !_17.done; _17 = _16.next()) {
|
|
6984
|
+
var fieldKey = _17.value;
|
|
6677
6985
|
this.fieldEnable(fieldKey);
|
|
6678
6986
|
}
|
|
6679
6987
|
}
|
|
6680
6988
|
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
6681
6989
|
finally {
|
|
6682
6990
|
try {
|
|
6683
|
-
if (
|
|
6991
|
+
if (_17 && !_17.done && (_15 = _16.return)) _15.call(_16);
|
|
6684
6992
|
}
|
|
6685
6993
|
finally { if (e_20) throw e_20.error; }
|
|
6686
6994
|
}
|
|
6687
6995
|
};
|
|
6688
6996
|
KwikIDFormViewComponent.prototype.fieldReset = function (fieldKey) {
|
|
6689
|
-
var
|
|
6997
|
+
var _15;
|
|
6690
6998
|
// Find the field and its index in the formFields array
|
|
6691
6999
|
var field = getFormFieldByKey(this.formFields, fieldKey);
|
|
6692
7000
|
var fieldIndex = getFormFieldIndexByKey(this.formFields, fieldKey);
|
|
@@ -6697,9 +7005,9 @@
|
|
|
6697
7005
|
emitEvent: false,
|
|
6698
7006
|
onlySelf: true
|
|
6699
7007
|
});
|
|
6700
|
-
this.formGroup.patchValue((
|
|
6701
|
-
|
|
6702
|
-
|
|
7008
|
+
this.formGroup.patchValue((_15 = {},
|
|
7009
|
+
_15[field.key] = resetValue,
|
|
7010
|
+
_15), { emitEvent: false });
|
|
6703
7011
|
this.formGroup.controls[field.key].updateValueAndValidity({
|
|
6704
7012
|
emitEvent: true
|
|
6705
7013
|
});
|
|
@@ -6796,16 +7104,84 @@
|
|
|
6796
7104
|
field_message: message
|
|
6797
7105
|
});
|
|
6798
7106
|
};
|
|
7107
|
+
KwikIDFormViewComponent.prototype.fieldApiTimerMessageShow = function (fieldKey, timer) {
|
|
7108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7109
|
+
var field, fieldIndex;
|
|
7110
|
+
return __generator(this, function (_15) {
|
|
7111
|
+
field = getFormFieldByKey(this.formFields, fieldKey);
|
|
7112
|
+
fieldIndex = this.formFields.findIndex(function (_) {
|
|
7113
|
+
return field.key === _.key;
|
|
7114
|
+
});
|
|
7115
|
+
field = setApiTimerMessage(field, timer);
|
|
7116
|
+
this.formFields[fieldIndex] = field;
|
|
7117
|
+
this.cd.detectChanges();
|
|
7118
|
+
this.triggerLogs(ELogEventType$1.FORM__FIELD_API_TIMER_MESSAGE_SHOW, {
|
|
7119
|
+
field_key: fieldKey,
|
|
7120
|
+
field_type: field.type,
|
|
7121
|
+
field_timer: timer
|
|
7122
|
+
});
|
|
7123
|
+
return [2 /*return*/];
|
|
7124
|
+
});
|
|
7125
|
+
});
|
|
7126
|
+
};
|
|
7127
|
+
KwikIDFormViewComponent.prototype.fieldApiTimerMessageHide = function (fieldKey) {
|
|
7128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7129
|
+
var field, fieldIndex, validations_7;
|
|
7130
|
+
var _this = this;
|
|
7131
|
+
return __generator(this, function (_15) {
|
|
7132
|
+
field = getFormFieldByKey(this.formFields, fieldKey);
|
|
7133
|
+
fieldIndex = this.formFields.findIndex(function (_) {
|
|
7134
|
+
return field.key === _.key;
|
|
7135
|
+
});
|
|
7136
|
+
field = setApiTimerMessage(field, undefined);
|
|
7137
|
+
if (field.isFormElement &&
|
|
7138
|
+
kwikidToolkit.checkObjectKeyExists(field, "validation") &&
|
|
7139
|
+
field.validation.triggers.includes("ON_API_TIMER_STOP")) {
|
|
7140
|
+
validations_7 = new kwikidToolkit.Validation({
|
|
7141
|
+
FIELD_CONFIG: field,
|
|
7142
|
+
FORM_FIELDS: this.formFields,
|
|
7143
|
+
FORM_DATA: this.formData,
|
|
7144
|
+
TASK_DATA: this.taskData,
|
|
7145
|
+
PREVIOUS_FORM_DATA: this.previousFormData,
|
|
7146
|
+
ALL_FORMS_DATA: this.allFormsData
|
|
7147
|
+
}, this.takeAction.bind(this));
|
|
7148
|
+
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
7149
|
+
return __generator(this, function (_15) {
|
|
7150
|
+
switch (_15.label) {
|
|
7151
|
+
case 0: return [4 /*yield*/, validations_7.validate(field.validation)];
|
|
7152
|
+
case 1:
|
|
7153
|
+
_15.sent();
|
|
7154
|
+
return [2 /*return*/];
|
|
7155
|
+
}
|
|
7156
|
+
});
|
|
7157
|
+
}); })();
|
|
7158
|
+
}
|
|
7159
|
+
if (kwikidToolkit.checkObjectKeyExists(field, "connectedElements")) {
|
|
7160
|
+
this.handleConnectedElements({
|
|
7161
|
+
key: field.key,
|
|
7162
|
+
value: this.formGroup.controls[field.key].value
|
|
7163
|
+
}, "ON_API_TIMER_STOP");
|
|
7164
|
+
}
|
|
7165
|
+
this.formFields[fieldIndex] = field;
|
|
7166
|
+
this.cd.detectChanges();
|
|
7167
|
+
this.triggerLogs(ELogEventType$1.FORM__FIELD_API_TIMER_MESSAGE_HIDE, {
|
|
7168
|
+
field_key: fieldKey,
|
|
7169
|
+
field_type: field.type
|
|
7170
|
+
});
|
|
7171
|
+
return [2 /*return*/];
|
|
7172
|
+
});
|
|
7173
|
+
});
|
|
7174
|
+
};
|
|
6799
7175
|
KwikIDFormViewComponent.prototype.setValue = function (action, object) {
|
|
6800
7176
|
return __awaiter(this, void 0, void 0, function () {
|
|
6801
7177
|
var source, sourceValue;
|
|
6802
|
-
return __generator(this, function (
|
|
6803
|
-
switch (
|
|
7178
|
+
return __generator(this, function (_15) {
|
|
7179
|
+
switch (_15.label) {
|
|
6804
7180
|
case 0:
|
|
6805
7181
|
source = new kwikidToolkit.Source(object);
|
|
6806
7182
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
6807
7183
|
case 1:
|
|
6808
|
-
sourceValue =
|
|
7184
|
+
sourceValue = _15.sent();
|
|
6809
7185
|
source.setValueToSource(action.props.value.destination, sourceValue);
|
|
6810
7186
|
object.FIELD_CONFIG = source.object.FIELD_CONFIG;
|
|
6811
7187
|
this.formData = source.object.FORM_DATA;
|
|
@@ -6820,13 +7196,13 @@
|
|
|
6820
7196
|
KwikIDFormViewComponent.prototype.setFieldDefaultValue = function (action, object) {
|
|
6821
7197
|
return __awaiter(this, void 0, void 0, function () {
|
|
6822
7198
|
var source, sourceValue;
|
|
6823
|
-
return __generator(this, function (
|
|
6824
|
-
switch (
|
|
7199
|
+
return __generator(this, function (_15) {
|
|
7200
|
+
switch (_15.label) {
|
|
6825
7201
|
case 0:
|
|
6826
7202
|
source = new kwikidToolkit.Source(object);
|
|
6827
7203
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
6828
7204
|
case 1:
|
|
6829
|
-
sourceValue =
|
|
7205
|
+
sourceValue = _15.sent();
|
|
6830
7206
|
source.setValueToSource({
|
|
6831
7207
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
6832
7208
|
props: {
|
|
@@ -6858,7 +7234,7 @@
|
|
|
6858
7234
|
KwikIDFormViewComponent.prototype.setApiStatus = function (action, object) {
|
|
6859
7235
|
return __awaiter(this, void 0, void 0, function () {
|
|
6860
7236
|
var source, sourceValue;
|
|
6861
|
-
return __generator(this, function (
|
|
7237
|
+
return __generator(this, function (_15) {
|
|
6862
7238
|
source = new kwikidToolkit.Source(object);
|
|
6863
7239
|
sourceValue = action.props.status;
|
|
6864
7240
|
source.setValueToSource({
|
|
@@ -6878,13 +7254,13 @@
|
|
|
6878
7254
|
KwikIDFormViewComponent.prototype.setApiHeaderValue = function (action, object) {
|
|
6879
7255
|
return __awaiter(this, void 0, void 0, function () {
|
|
6880
7256
|
var source, sourceValue;
|
|
6881
|
-
return __generator(this, function (
|
|
6882
|
-
switch (
|
|
7257
|
+
return __generator(this, function (_15) {
|
|
7258
|
+
switch (_15.label) {
|
|
6883
7259
|
case 0:
|
|
6884
7260
|
source = new kwikidToolkit.Source(object);
|
|
6885
7261
|
return [4 /*yield*/, source.getValueFromSource(action.props.source)];
|
|
6886
7262
|
case 1:
|
|
6887
|
-
sourceValue =
|
|
7263
|
+
sourceValue = _15.sent();
|
|
6888
7264
|
source.setValueToSource({
|
|
6889
7265
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
6890
7266
|
props: {
|
|
@@ -6903,7 +7279,7 @@
|
|
|
6903
7279
|
KwikIDFormViewComponent.prototype.setApiHeaderValidity = function (action, object) {
|
|
6904
7280
|
return __awaiter(this, void 0, void 0, function () {
|
|
6905
7281
|
var source, sourceValue;
|
|
6906
|
-
return __generator(this, function (
|
|
7282
|
+
return __generator(this, function (_15) {
|
|
6907
7283
|
source = new kwikidToolkit.Source(object);
|
|
6908
7284
|
sourceValue = action.props.valid;
|
|
6909
7285
|
source.setValueToSource({
|
|
@@ -6923,13 +7299,13 @@
|
|
|
6923
7299
|
KwikIDFormViewComponent.prototype.setApiBodyValue = function (action, object) {
|
|
6924
7300
|
return __awaiter(this, void 0, void 0, function () {
|
|
6925
7301
|
var source, sourceValue;
|
|
6926
|
-
return __generator(this, function (
|
|
6927
|
-
switch (
|
|
7302
|
+
return __generator(this, function (_15) {
|
|
7303
|
+
switch (_15.label) {
|
|
6928
7304
|
case 0:
|
|
6929
7305
|
source = new kwikidToolkit.Source(object);
|
|
6930
7306
|
return [4 /*yield*/, source.getValueFromSource(action.props.source)];
|
|
6931
7307
|
case 1:
|
|
6932
|
-
sourceValue =
|
|
7308
|
+
sourceValue = _15.sent();
|
|
6933
7309
|
source.setValueToSource({
|
|
6934
7310
|
key: kwikidToolkit.ESourceKey.OBJECT,
|
|
6935
7311
|
props: {
|
|
@@ -6948,7 +7324,7 @@
|
|
|
6948
7324
|
KwikIDFormViewComponent.prototype.setApiBodyValidity = function (action, object) {
|
|
6949
7325
|
return __awaiter(this, void 0, void 0, function () {
|
|
6950
7326
|
var source, sourceValue;
|
|
6951
|
-
return __generator(this, function (
|
|
7327
|
+
return __generator(this, function (_15) {
|
|
6952
7328
|
source = new kwikidToolkit.Source(object);
|
|
6953
7329
|
sourceValue = action.props.valid;
|
|
6954
7330
|
source.setValueToSource({
|
|
@@ -6968,7 +7344,7 @@
|
|
|
6968
7344
|
KwikIDFormViewComponent.prototype.setFieldValidity = function (action, object) {
|
|
6969
7345
|
return __awaiter(this, void 0, void 0, function () {
|
|
6970
7346
|
var source, sourceValue;
|
|
6971
|
-
return __generator(this, function (
|
|
7347
|
+
return __generator(this, function (_15) {
|
|
6972
7348
|
source = new kwikidToolkit.Source(object);
|
|
6973
7349
|
sourceValue = action.props.valid;
|
|
6974
7350
|
source.setValueToSource({
|
|
@@ -6988,18 +7364,18 @@
|
|
|
6988
7364
|
KwikIDFormViewComponent.prototype.setDropdownOptions = function (action, object) {
|
|
6989
7365
|
return __awaiter(this, void 0, void 0, function () {
|
|
6990
7366
|
var source, sourceValue, appendToPath, appendToPathStr, optionsPath;
|
|
6991
|
-
return __generator(this, function (
|
|
6992
|
-
switch (
|
|
7367
|
+
return __generator(this, function (_15) {
|
|
7368
|
+
switch (_15.label) {
|
|
6993
7369
|
case 0:
|
|
6994
7370
|
source = new kwikidToolkit.Source(object);
|
|
6995
7371
|
return [4 /*yield*/, source.getValueFromSource(action.props.value.source)];
|
|
6996
7372
|
case 1:
|
|
6997
|
-
sourceValue =
|
|
7373
|
+
sourceValue = _15.sent();
|
|
6998
7374
|
if (!kwikidToolkit.checkObjectKeyExists(action.props, "options")) return [3 /*break*/, 4];
|
|
6999
7375
|
if (!kwikidToolkit.checkObjectKeyExists(action.props.options, "appendToPath")) return [3 /*break*/, 3];
|
|
7000
7376
|
return [4 /*yield*/, source.getValueFromSource(action.props.options.appendToPath.source)];
|
|
7001
7377
|
case 2:
|
|
7002
|
-
appendToPath =
|
|
7378
|
+
appendToPath = _15.sent();
|
|
7003
7379
|
if (kwikidToolkit.isNotEmptyValue(appendToPath)) {
|
|
7004
7380
|
appendToPathStr = kwikidToolkit.replaceString(appendToPath.match("" + action.props.options.appendToPath.filterSourceValue)[0], "[^a-zA-Z0-9_]", "_");
|
|
7005
7381
|
optionsPath = "" + action.props.options.path + appendToPathStr;
|
|
@@ -7008,7 +7384,7 @@
|
|
|
7008
7384
|
return [3 /*break*/, 4];
|
|
7009
7385
|
case 3:
|
|
7010
7386
|
sourceValue = kwikidToolkit.getObjectValueFromPath(sourceValue, action.props.options.path);
|
|
7011
|
-
|
|
7387
|
+
_15.label = 4;
|
|
7012
7388
|
case 4:
|
|
7013
7389
|
source.setValueToSource(action.props.value.destination, sourceValue);
|
|
7014
7390
|
object.FIELD_CONFIG = source.object.FIELD_CONFIG;
|
|
@@ -7023,19 +7399,19 @@
|
|
|
7023
7399
|
KwikIDFormViewComponent.prototype.apiCall = function (action, object) {
|
|
7024
7400
|
return __awaiter(this, void 0, void 0, function () {
|
|
7025
7401
|
var apiConfig, response;
|
|
7026
|
-
var
|
|
7027
|
-
return __generator(this, function (
|
|
7028
|
-
switch (
|
|
7402
|
+
var _15;
|
|
7403
|
+
return __generator(this, function (_16) {
|
|
7404
|
+
switch (_16.label) {
|
|
7029
7405
|
case 0:
|
|
7030
7406
|
apiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
7031
7407
|
return [4 /*yield*/, this.handleApiCall(apiConfig)];
|
|
7032
7408
|
case 1:
|
|
7033
|
-
response =
|
|
7409
|
+
response = _16.sent();
|
|
7034
7410
|
apiConfig = response.api;
|
|
7035
7411
|
this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, apiConfig);
|
|
7036
|
-
this.formData = kwikidToolkit.mergeObjects(this.formData, (
|
|
7037
|
-
|
|
7038
|
-
|
|
7412
|
+
this.formData = kwikidToolkit.mergeObjects(this.formData, (_15 = {},
|
|
7413
|
+
_15[action.props.formApiKey] = apiConfig.response.value,
|
|
7414
|
+
_15));
|
|
7039
7415
|
return [2 /*return*/, apiConfig];
|
|
7040
7416
|
}
|
|
7041
7417
|
});
|
|
@@ -7044,13 +7420,13 @@
|
|
|
7044
7420
|
KwikIDFormViewComponent.prototype.fieldApiCall = function (action, object) {
|
|
7045
7421
|
return __awaiter(this, void 0, void 0, function () {
|
|
7046
7422
|
var apiConfig;
|
|
7047
|
-
return __generator(this, function (
|
|
7048
|
-
switch (
|
|
7423
|
+
return __generator(this, function (_15) {
|
|
7424
|
+
switch (_15.label) {
|
|
7049
7425
|
case 0:
|
|
7050
7426
|
this.showApiLoader();
|
|
7051
7427
|
return [4 /*yield*/, this.apiCall(action, object)];
|
|
7052
7428
|
case 1:
|
|
7053
|
-
apiConfig =
|
|
7429
|
+
apiConfig = _15.sent();
|
|
7054
7430
|
this.hideApiLoader();
|
|
7055
7431
|
return [2 /*return*/];
|
|
7056
7432
|
}
|
|
@@ -7060,8 +7436,8 @@
|
|
|
7060
7436
|
KwikIDFormViewComponent.prototype.fieldMultipleApiCalls = function (action, object) {
|
|
7061
7437
|
return __awaiter(this, void 0, void 0, function () {
|
|
7062
7438
|
var entrypointApiKey, field, endpoints, nextApiIndex, apiConfig, response;
|
|
7063
|
-
return __generator(this, function (
|
|
7064
|
-
switch (
|
|
7439
|
+
return __generator(this, function (_15) {
|
|
7440
|
+
switch (_15.label) {
|
|
7065
7441
|
case 0:
|
|
7066
7442
|
entrypointApiKey = action.props.apiKey;
|
|
7067
7443
|
field = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
@@ -7070,7 +7446,7 @@
|
|
|
7070
7446
|
apiConfig = endpoints[nextApiIndex];
|
|
7071
7447
|
return [4 /*yield*/, this.handleFieldApiCall(field, apiConfig)];
|
|
7072
7448
|
case 1:
|
|
7073
|
-
response =
|
|
7449
|
+
response = _15.sent();
|
|
7074
7450
|
field = response.field;
|
|
7075
7451
|
field.api.endpoints[nextApiIndex] = response.api;
|
|
7076
7452
|
return [2 /*return*/];
|
|
@@ -7081,15 +7457,15 @@
|
|
|
7081
7457
|
KwikIDFormViewComponent.prototype.fieldMultipleApiCallsEnd = function (action, object) {
|
|
7082
7458
|
return __awaiter(this, void 0, void 0, function () {
|
|
7083
7459
|
var field, multipleApiCallResponses;
|
|
7084
|
-
var
|
|
7085
|
-
return __generator(this, function (
|
|
7460
|
+
var _15;
|
|
7461
|
+
return __generator(this, function (_16) {
|
|
7086
7462
|
field = getFormFieldByKey(this.formFields, action.props.fieldKey);
|
|
7087
7463
|
multipleApiCallResponses = {};
|
|
7088
7464
|
field.api.endpoints.map(function (api) {
|
|
7089
7465
|
if (kwikidToolkit.checkObjectKeyExists(api.response, "value"))
|
|
7090
7466
|
multipleApiCallResponses = kwikidToolkit.setValueToObjectPath(multipleApiCallResponses, "" + api.apiKey, api.response.value);
|
|
7091
7467
|
});
|
|
7092
|
-
this.formData = Object.assign(Object.assign({}, this.formData), (
|
|
7468
|
+
this.formData = Object.assign(Object.assign({}, this.formData), (_15 = {}, _15[field.key] = multipleApiCallResponses, _15));
|
|
7093
7469
|
this.patchFormGroup(this.formData);
|
|
7094
7470
|
return [2 /*return*/];
|
|
7095
7471
|
});
|
|
@@ -7098,17 +7474,17 @@
|
|
|
7098
7474
|
KwikIDFormViewComponent.prototype.taskApiCall = function (action, object) {
|
|
7099
7475
|
return __awaiter(this, void 0, void 0, function () {
|
|
7100
7476
|
var apiConfig;
|
|
7101
|
-
var
|
|
7102
|
-
return __generator(this, function (
|
|
7103
|
-
switch (
|
|
7477
|
+
var _15;
|
|
7478
|
+
return __generator(this, function (_16) {
|
|
7479
|
+
switch (_16.label) {
|
|
7104
7480
|
case 0:
|
|
7105
7481
|
this.showApiLoader();
|
|
7106
7482
|
return [4 /*yield*/, this.apiCall(action, object)];
|
|
7107
7483
|
case 1:
|
|
7108
|
-
apiConfig =
|
|
7109
|
-
this.taskData = kwikidToolkit.mergeObjects(this.taskData, (
|
|
7110
|
-
|
|
7111
|
-
|
|
7484
|
+
apiConfig = _16.sent();
|
|
7485
|
+
this.taskData = kwikidToolkit.mergeObjects(this.taskData, (_15 = {},
|
|
7486
|
+
_15[action.props.formApiKey] = apiConfig.response.value,
|
|
7487
|
+
_15));
|
|
7112
7488
|
this.waitingForChanges = false;
|
|
7113
7489
|
this.hideApiLoader();
|
|
7114
7490
|
return [2 /*return*/];
|
|
@@ -7119,8 +7495,8 @@
|
|
|
7119
7495
|
KwikIDFormViewComponent.prototype.taskMultipleApiCalls = function (action, object) {
|
|
7120
7496
|
return __awaiter(this, void 0, void 0, function () {
|
|
7121
7497
|
var multipleApiConfig, entrypointApiKey_1, endpoints, nextApiIndex, apiConfig, response, apis;
|
|
7122
|
-
return __generator(this, function (
|
|
7123
|
-
switch (
|
|
7498
|
+
return __generator(this, function (_15) {
|
|
7499
|
+
switch (_15.label) {
|
|
7124
7500
|
case 0:
|
|
7125
7501
|
this.showApiLoader();
|
|
7126
7502
|
multipleApiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
@@ -7131,7 +7507,7 @@
|
|
|
7131
7507
|
apiConfig = endpoints[nextApiIndex];
|
|
7132
7508
|
return [4 /*yield*/, this.handleApiCall(apiConfig)];
|
|
7133
7509
|
case 1:
|
|
7134
|
-
response =
|
|
7510
|
+
response = _15.sent();
|
|
7135
7511
|
multipleApiConfig.endpoints[nextApiIndex] = response.api;
|
|
7136
7512
|
this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, multipleApiConfig);
|
|
7137
7513
|
this.hideApiLoader();
|
|
@@ -7148,8 +7524,8 @@
|
|
|
7148
7524
|
}, this.takeAction.bind(this));
|
|
7149
7525
|
return [4 /*yield*/, apis.callNextApi(multipleApiConfig.entrypoint)];
|
|
7150
7526
|
case 3:
|
|
7151
|
-
|
|
7152
|
-
|
|
7527
|
+
_15.sent();
|
|
7528
|
+
_15.label = 4;
|
|
7153
7529
|
case 4: return [2 /*return*/];
|
|
7154
7530
|
}
|
|
7155
7531
|
});
|
|
@@ -7158,15 +7534,15 @@
|
|
|
7158
7534
|
KwikIDFormViewComponent.prototype.taskMultipleApiCallsEnd = function (action, object) {
|
|
7159
7535
|
return __awaiter(this, void 0, void 0, function () {
|
|
7160
7536
|
var multipleApiConfig, multipleApiCallResponses;
|
|
7161
|
-
var
|
|
7162
|
-
return __generator(this, function (
|
|
7537
|
+
var _15;
|
|
7538
|
+
return __generator(this, function (_16) {
|
|
7163
7539
|
multipleApiConfig = this.formConfig.apis[action.props.formApiKey];
|
|
7164
7540
|
multipleApiCallResponses = {};
|
|
7165
7541
|
multipleApiConfig.endpoints.map(function (api) {
|
|
7166
7542
|
if (kwikidToolkit.checkObjectKeyExists(api.response, "value"))
|
|
7167
7543
|
multipleApiCallResponses = kwikidToolkit.setValueToObjectPath(multipleApiCallResponses, "" + api.apiKey, api.response.value);
|
|
7168
7544
|
});
|
|
7169
|
-
this.taskData = Object.assign(Object.assign({}, this.taskData), (
|
|
7545
|
+
this.taskData = Object.assign(Object.assign({}, this.taskData), (_15 = {}, _15[action.props.formApiKey] = multipleApiCallResponses, _15));
|
|
7170
7546
|
this.waitingForChanges = false;
|
|
7171
7547
|
this.hideApiLoader();
|
|
7172
7548
|
return [2 /*return*/];
|
|
@@ -7360,12 +7736,12 @@
|
|
|
7360
7736
|
this.alertService
|
|
7361
7737
|
.open("" + message, {
|
|
7362
7738
|
status: type === "error"
|
|
7363
|
-
?
|
|
7739
|
+
? i5.TuiNotification.Error
|
|
7364
7740
|
: type === "warning"
|
|
7365
|
-
?
|
|
7741
|
+
? i5.TuiNotification.Warning
|
|
7366
7742
|
: type === "success"
|
|
7367
|
-
?
|
|
7368
|
-
:
|
|
7743
|
+
? i5.TuiNotification.Success
|
|
7744
|
+
: i5.TuiNotification.Info
|
|
7369
7745
|
})
|
|
7370
7746
|
.subscribe({
|
|
7371
7747
|
error: function () {
|
|
@@ -7378,7 +7754,7 @@
|
|
|
7378
7754
|
};
|
|
7379
7755
|
KwikIDFormViewComponent.prototype.takeActionOnFieldGroup = function (action, object) {
|
|
7380
7756
|
return __awaiter(this, void 0, void 0, function () {
|
|
7381
|
-
return __generator(this, function (
|
|
7757
|
+
return __generator(this, function (_15) {
|
|
7382
7758
|
/**
|
|
7383
7759
|
* This below code is currently commented because not all actions need to be logged at backend.
|
|
7384
7760
|
* Will look later into where only specific actions needs to be logged or all.
|
|
@@ -7411,297 +7787,285 @@
|
|
|
7411
7787
|
});
|
|
7412
7788
|
};
|
|
7413
7789
|
KwikIDFormViewComponent.prototype.takeAction = function (action, object) {
|
|
7414
|
-
var _a;
|
|
7790
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7415
7791
|
return __awaiter(this, void 0, void 0, function () {
|
|
7416
|
-
var
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
case
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
case EActionKey.ALERT_SHOW: return [3 /*break*/, 61];
|
|
7464
|
-
case EActionKey.SET_HTML: return [3 /*break*/, 62];
|
|
7465
|
-
}
|
|
7466
|
-
return [3 /*break*/, 65];
|
|
7467
|
-
case 1:
|
|
7468
|
-
this.fieldHide(action.props.fieldKey);
|
|
7469
|
-
return [3 /*break*/, 66];
|
|
7470
|
-
case 2:
|
|
7471
|
-
this.fieldShow(action.props.fieldKey);
|
|
7472
|
-
return [3 /*break*/, 66];
|
|
7473
|
-
case 3:
|
|
7474
|
-
this.fieldDisable(action.props.fieldKey);
|
|
7475
|
-
return [3 /*break*/, 66];
|
|
7476
|
-
case 4:
|
|
7477
|
-
this.fieldEnable(action.props.fieldKey);
|
|
7478
|
-
return [3 /*break*/, 66];
|
|
7479
|
-
case 5:
|
|
7480
|
-
this.fieldReset(action.props.fieldKey);
|
|
7481
|
-
return [3 /*break*/, 66];
|
|
7482
|
-
case 6:
|
|
7483
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 8];
|
|
7484
|
-
fieldErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7485
|
-
return [4 /*yield*/, fieldErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7486
|
-
case 7:
|
|
7487
|
-
fieldErrorShowSourceValue = _8.sent();
|
|
7488
|
-
if (typeof fieldErrorShowSourceValue == "string" ||
|
|
7489
|
-
typeof fieldErrorShowSourceValue == "number") {
|
|
7490
|
-
fieldErrorShowSourceValue = String(fieldErrorShowSourceValue);
|
|
7491
|
-
}
|
|
7492
|
-
else {
|
|
7493
|
-
fieldErrorShowSourceValue = "";
|
|
7494
|
-
}
|
|
7495
|
-
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorShowSourceValue);
|
|
7496
|
-
_8.label = 8;
|
|
7497
|
-
case 8:
|
|
7498
|
-
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
7499
|
-
this.fieldErrorShow(action.props.fieldKey, action.props.message);
|
|
7500
|
-
return [3 /*break*/, 66];
|
|
7501
|
-
case 9:
|
|
7502
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 11];
|
|
7503
|
-
fieldErrorHide_Source = new kwikidToolkit.Source(object);
|
|
7504
|
-
return [4 /*yield*/, fieldErrorHide_Source.getValueFromSource(action.props.message.source)];
|
|
7505
|
-
case 10:
|
|
7506
|
-
fieldErrorHideSourceValue = _8.sent();
|
|
7507
|
-
if (typeof fieldErrorHideSourceValue == "string" ||
|
|
7508
|
-
typeof fieldErrorHideSourceValue == "number") {
|
|
7509
|
-
fieldErrorHideSourceValue = String(fieldErrorHideSourceValue);
|
|
7510
|
-
}
|
|
7511
|
-
else {
|
|
7512
|
-
fieldErrorHideSourceValue = "";
|
|
7513
|
-
}
|
|
7514
|
-
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorHideSourceValue);
|
|
7515
|
-
_8.label = 11;
|
|
7516
|
-
case 11:
|
|
7517
|
-
this.fieldErrorHide(action.props.fieldKey, action.props.message);
|
|
7518
|
-
return [3 /*break*/, 66];
|
|
7519
|
-
case 12:
|
|
7520
|
-
this.fieldMessageShow(action.props.fieldKey, action.props.message);
|
|
7521
|
-
return [3 /*break*/, 66];
|
|
7522
|
-
case 13:
|
|
7523
|
-
this.fieldMessageHide(action.props.fieldKey, action.props.message);
|
|
7524
|
-
return [3 /*break*/, 66];
|
|
7525
|
-
case 14: return [4 /*yield*/, this.setValue(action, object)];
|
|
7526
|
-
case 15:
|
|
7527
|
-
_8.sent();
|
|
7528
|
-
return [3 /*break*/, 66];
|
|
7529
|
-
case 16: return [4 /*yield*/, this.setFieldDefaultValue(action, object)];
|
|
7530
|
-
case 17:
|
|
7531
|
-
_8.sent();
|
|
7532
|
-
return [3 /*break*/, 66];
|
|
7533
|
-
case 18: return [4 /*yield*/, this.setApiStatus(action, object)];
|
|
7534
|
-
case 19:
|
|
7535
|
-
_8.sent();
|
|
7536
|
-
return [3 /*break*/, 66];
|
|
7537
|
-
case 20: return [4 /*yield*/, this.setApiHeaderValue(action, object)];
|
|
7538
|
-
case 21:
|
|
7539
|
-
_8.sent();
|
|
7540
|
-
return [3 /*break*/, 66];
|
|
7541
|
-
case 22: return [4 /*yield*/, this.setApiHeaderValidity(action, object)];
|
|
7542
|
-
case 23:
|
|
7543
|
-
_8.sent();
|
|
7544
|
-
return [3 /*break*/, 66];
|
|
7545
|
-
case 24: return [4 /*yield*/, this.setApiBodyValue(action, object)];
|
|
7546
|
-
case 25:
|
|
7547
|
-
_8.sent();
|
|
7548
|
-
return [3 /*break*/, 66];
|
|
7549
|
-
case 26: return [4 /*yield*/, this.setApiBodyValidity(action, object)];
|
|
7550
|
-
case 27:
|
|
7551
|
-
_8.sent();
|
|
7552
|
-
return [3 /*break*/, 66];
|
|
7553
|
-
case 28: return [4 /*yield*/, this.setDropdownOptions(action, object)];
|
|
7554
|
-
case 29:
|
|
7555
|
-
_8.sent();
|
|
7556
|
-
return [3 /*break*/, 66];
|
|
7557
|
-
case 30: return [4 /*yield*/, this.setFieldValidity(action, object)];
|
|
7558
|
-
case 31:
|
|
7559
|
-
_8.sent();
|
|
7560
|
-
return [3 /*break*/, 66];
|
|
7561
|
-
case 32:
|
|
7562
|
-
this.handleConnectedElements({ key: action.props.fieldKey }, "ON_ACTION");
|
|
7563
|
-
return [3 /*break*/, 66];
|
|
7564
|
-
case 33: return [4 /*yield*/, this.fieldApiCall(action, object)];
|
|
7565
|
-
case 34:
|
|
7566
|
-
_8.sent();
|
|
7567
|
-
return [3 /*break*/, 66];
|
|
7568
|
-
case 35: return [4 /*yield*/, this.fieldMultipleApiCalls(action, object)];
|
|
7569
|
-
case 36:
|
|
7570
|
-
_8.sent();
|
|
7571
|
-
return [3 /*break*/, 66];
|
|
7572
|
-
case 37: return [4 /*yield*/, this.fieldMultipleApiCallsEnd(action, object)];
|
|
7573
|
-
case 38:
|
|
7574
|
-
_8.sent();
|
|
7575
|
-
return [3 /*break*/, 66];
|
|
7576
|
-
case 39: return [4 /*yield*/, this.taskApiCall(action, object)];
|
|
7577
|
-
case 40:
|
|
7578
|
-
_8.sent();
|
|
7579
|
-
return [3 /*break*/, 66];
|
|
7580
|
-
case 41: return [4 /*yield*/, this.taskMultipleApiCalls(action, object)];
|
|
7581
|
-
case 42:
|
|
7582
|
-
_8.sent();
|
|
7583
|
-
return [3 /*break*/, 66];
|
|
7584
|
-
case 43: return [4 /*yield*/, this.taskMultipleApiCallsEnd(action, object)];
|
|
7585
|
-
case 44:
|
|
7586
|
-
_8.sent();
|
|
7587
|
-
return [3 /*break*/, 66];
|
|
7588
|
-
case 45:
|
|
7589
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.url, "source")) return [3 /*break*/, 47];
|
|
7590
|
-
redirectToUrl_Source = new kwikidToolkit.Source(object);
|
|
7591
|
-
return [4 /*yield*/, redirectToUrl_Source.getValueFromSource(action.props.url.source)];
|
|
7592
|
-
case 46:
|
|
7593
|
-
redirectToUrlSourceValue = _8.sent();
|
|
7594
|
-
if (kwikidToolkit.isEmptyString(redirectToUrlSourceValue)) {
|
|
7595
|
-
redirectToUrlSourceValue = "";
|
|
7596
|
-
}
|
|
7597
|
-
action = kwikidToolkit.setValueToObjectPath(action, "props.url.url", redirectToUrlSourceValue);
|
|
7598
|
-
_8.label = 47;
|
|
7599
|
-
case 47:
|
|
7600
|
-
this.redirectToUrl(action);
|
|
7601
|
-
_8.label = 48;
|
|
7602
|
-
case 48:
|
|
7603
|
-
this.showPreview(action.props);
|
|
7604
|
-
return [3 /*break*/, 66];
|
|
7605
|
-
case 49:
|
|
7606
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 51];
|
|
7607
|
-
previewErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7608
|
-
return [4 /*yield*/, previewErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7609
|
-
case 50:
|
|
7610
|
-
previewErrorShowSourceValue = _8.sent();
|
|
7611
|
-
if (typeof previewErrorShowSourceValue == "string" ||
|
|
7612
|
-
typeof previewErrorShowSourceValue == "number") {
|
|
7613
|
-
previewErrorShowSourceValue = String(previewErrorShowSourceValue);
|
|
7614
|
-
}
|
|
7615
|
-
else {
|
|
7616
|
-
previewErrorShowSourceValue = "";
|
|
7617
|
-
}
|
|
7618
|
-
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", previewErrorShowSourceValue);
|
|
7619
|
-
_8.label = 51;
|
|
7620
|
-
case 51:
|
|
7621
|
-
this.showErrorPreview(action.props);
|
|
7622
|
-
return [3 /*break*/, 66];
|
|
7623
|
-
case 52:
|
|
7624
|
-
this.showPopupForm(action.props.popupFormKey, (_c = (_b = action.props) === null || _b === void 0 ? void 0 : _b.popupType) !== null && _c !== void 0 ? _c : "DIALOG");
|
|
7625
|
-
return [3 /*break*/, 66];
|
|
7626
|
-
case 53:
|
|
7627
|
-
this.waitingForChanges = false;
|
|
7628
|
-
return [3 /*break*/, 66];
|
|
7629
|
-
case 54:
|
|
7630
|
-
this.toggleErrorNotification(true);
|
|
7631
|
-
return [3 /*break*/, 66];
|
|
7632
|
-
case 55:
|
|
7633
|
-
this.toggleErrorNotification(false);
|
|
7634
|
-
return [3 /*break*/, 66];
|
|
7635
|
-
case 56:
|
|
7636
|
-
this.stopTaskExecution = false;
|
|
7637
|
-
return [3 /*break*/, 66];
|
|
7638
|
-
case 57:
|
|
7639
|
-
this.stopTaskExecution = true;
|
|
7640
|
-
return [3 /*break*/, 66];
|
|
7641
|
-
case 58:
|
|
7642
|
-
this.dialogShow({
|
|
7643
|
-
html: (_d = action.props) === null || _d === void 0 ? void 0 : _d.html,
|
|
7644
|
-
label: (_e = action.props) === null || _e === void 0 ? void 0 : _e.label,
|
|
7645
|
-
size: (_f = action.props) === null || _f === void 0 ? void 0 : _f.size,
|
|
7646
|
-
button: (_g = action.props) === null || _g === void 0 ? void 0 : _g.button
|
|
7647
|
-
});
|
|
7648
|
-
return [3 /*break*/, 66];
|
|
7649
|
-
case 59:
|
|
7650
|
-
this.dialogHide();
|
|
7651
|
-
return [3 /*break*/, 66];
|
|
7652
|
-
case 60:
|
|
7653
|
-
this.handleOnClickSaveForm(undefined);
|
|
7654
|
-
return [3 /*break*/, 66];
|
|
7655
|
-
case 61:
|
|
7656
|
-
this.alertShow(action.props.type, action.props.message);
|
|
7657
|
-
return [3 /*break*/, 66];
|
|
7658
|
-
case 62:
|
|
7659
|
-
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 64];
|
|
7660
|
-
fieldHtmlMessage_Source = new kwikidToolkit.Source(object);
|
|
7661
|
-
return [4 /*yield*/, fieldHtmlMessage_Source.getValueFromSource(action.props.message.source)];
|
|
7662
|
-
case 63:
|
|
7663
|
-
fieldHtmlMessageSourceValue = _8.sent();
|
|
7664
|
-
if (typeof fieldHtmlMessageSourceValue == "string" ||
|
|
7665
|
-
typeof fieldHtmlMessageSourceValue == "number") {
|
|
7666
|
-
fieldHtmlMessageSourceValue = String(fieldHtmlMessageSourceValue);
|
|
7667
|
-
}
|
|
7668
|
-
else {
|
|
7669
|
-
fieldHtmlMessageSourceValue = "";
|
|
7670
|
-
}
|
|
7671
|
-
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldHtmlMessageSourceValue);
|
|
7672
|
-
_8.label = 64;
|
|
7673
|
-
case 64:
|
|
7674
|
-
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
7675
|
-
this.setHtml(action.props.fieldKey, action.props.message);
|
|
7676
|
-
return [3 /*break*/, 66];
|
|
7677
|
-
case 65: return [3 /*break*/, 66];
|
|
7678
|
-
case 66: return [2 /*return*/];
|
|
7792
|
+
var _15, fieldErrorShow_Source, fieldErrorShowSourceValue, fieldErrorHide_Source, fieldErrorHideSourceValue, redirectToUrl_Source, redirectToUrlSourceValue, previewErrorShow_Source, previewErrorShowSourceValue, fieldHtmlMessage_Source, fieldHtmlMessageSourceValue;
|
|
7793
|
+
return __generator(this, function (_16) {
|
|
7794
|
+
switch (_16.label) {
|
|
7795
|
+
case 0:
|
|
7796
|
+
_15 = action.key;
|
|
7797
|
+
switch (_15) {
|
|
7798
|
+
case EActionKey.FIELD_HIDE: return [3 /*break*/, 1];
|
|
7799
|
+
case EActionKey.FIELD_SHOW: return [3 /*break*/, 2];
|
|
7800
|
+
case EActionKey.FIELD_DISABLE: return [3 /*break*/, 3];
|
|
7801
|
+
case EActionKey.FIELD_ENABLE: return [3 /*break*/, 4];
|
|
7802
|
+
case EActionKey.FIELD_RESET: return [3 /*break*/, 5];
|
|
7803
|
+
case EActionKey.FIELD_ERROR_SHOW: return [3 /*break*/, 6];
|
|
7804
|
+
case EActionKey.FIELD_ERROR_HIDE: return [3 /*break*/, 9];
|
|
7805
|
+
case EActionKey.FIELD_MESSAGE_SHOW: return [3 /*break*/, 12];
|
|
7806
|
+
case EActionKey.FIELD_MESSAGES_HIDE: return [3 /*break*/, 13];
|
|
7807
|
+
case EActionKey.FIELD_API_TIMER_MESSAGE_SHOW: return [3 /*break*/, 14];
|
|
7808
|
+
case EActionKey.FIELD_API_TIMER_MESSAGE_HIDE: return [3 /*break*/, 16];
|
|
7809
|
+
case EActionKey.SET_VALUE: return [3 /*break*/, 18];
|
|
7810
|
+
case EActionKey.SET_FIELD_DEFAULT_VALUE: return [3 /*break*/, 20];
|
|
7811
|
+
case EActionKey.SET_API_STATUS: return [3 /*break*/, 22];
|
|
7812
|
+
case EActionKey.SET_API_HEADER_VALUE: return [3 /*break*/, 24];
|
|
7813
|
+
case EActionKey.SET_API_HEADER_VALIDITY: return [3 /*break*/, 26];
|
|
7814
|
+
case EActionKey.SET_API_BODY_VALUE: return [3 /*break*/, 28];
|
|
7815
|
+
case EActionKey.SET_API_BODY_VALIDITY: return [3 /*break*/, 30];
|
|
7816
|
+
case EActionKey.SET_DROPDOWN_OPTIONS: return [3 /*break*/, 32];
|
|
7817
|
+
case EActionKey.SET_FIELD_VALIDITY: return [3 /*break*/, 34];
|
|
7818
|
+
case EActionKey.HANDLE_CONNECTED_ELEMENTS: return [3 /*break*/, 36];
|
|
7819
|
+
case EActionKey.API_CALL: return [3 /*break*/, 37];
|
|
7820
|
+
case EActionKey.API_CALL_MULTIPLE: return [3 /*break*/, 39];
|
|
7821
|
+
case EActionKey.API_CALL_MULTIPLE_END: return [3 /*break*/, 41];
|
|
7822
|
+
case EActionKey.TASK_API_CALL: return [3 /*break*/, 43];
|
|
7823
|
+
case EActionKey.TASK_API_CALL_MULTIPLE: return [3 /*break*/, 45];
|
|
7824
|
+
case EActionKey.TASK_API_CALL_MULTIPLE_END: return [3 /*break*/, 47];
|
|
7825
|
+
case EActionKey.REDIRECT_TO_URL: return [3 /*break*/, 49];
|
|
7826
|
+
case EActionKey.PREVIEW_DIALOG_SHOW: return [3 /*break*/, 52];
|
|
7827
|
+
case EActionKey.PREVIEW_ERROR_SHOW: return [3 /*break*/, 53];
|
|
7828
|
+
case EActionKey.POPUP_FORM_SHOW: return [3 /*break*/, 56];
|
|
7829
|
+
case EActionKey.STOP_WAITING: return [3 /*break*/, 57];
|
|
7830
|
+
case EActionKey.NOTIFICATION_ERROR_SHOW: return [3 /*break*/, 58];
|
|
7831
|
+
case EActionKey.NOTIFICATION_ERROR_HIDE: return [3 /*break*/, 59];
|
|
7832
|
+
case EActionKey.RESUME_TASK_EXECUTION: return [3 /*break*/, 60];
|
|
7833
|
+
case EActionKey.STOP_TASK_EXECUTION: return [3 /*break*/, 61];
|
|
7834
|
+
case EActionKey.DIALOG_SHOW: return [3 /*break*/, 62];
|
|
7835
|
+
case EActionKey.DIALOG_HIDE: return [3 /*break*/, 63];
|
|
7836
|
+
case EActionKey.SAVE_FORM: return [3 /*break*/, 64];
|
|
7837
|
+
case EActionKey.ALERT_SHOW: return [3 /*break*/, 65];
|
|
7838
|
+
case EActionKey.SET_HTML: return [3 /*break*/, 66];
|
|
7679
7839
|
}
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7840
|
+
return [3 /*break*/, 69];
|
|
7841
|
+
case 1:
|
|
7842
|
+
this.fieldHide(action.props.fieldKey);
|
|
7843
|
+
return [3 /*break*/, 70];
|
|
7844
|
+
case 2:
|
|
7845
|
+
this.fieldShow(action.props.fieldKey);
|
|
7846
|
+
return [3 /*break*/, 70];
|
|
7847
|
+
case 3:
|
|
7848
|
+
this.fieldDisable(action.props.fieldKey);
|
|
7849
|
+
return [3 /*break*/, 70];
|
|
7850
|
+
case 4:
|
|
7851
|
+
this.fieldEnable(action.props.fieldKey);
|
|
7852
|
+
return [3 /*break*/, 70];
|
|
7853
|
+
case 5:
|
|
7854
|
+
this.fieldReset(action.props.fieldKey);
|
|
7855
|
+
return [3 /*break*/, 70];
|
|
7856
|
+
case 6:
|
|
7857
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 8];
|
|
7858
|
+
fieldErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7859
|
+
return [4 /*yield*/, fieldErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7860
|
+
case 7:
|
|
7861
|
+
fieldErrorShowSourceValue = _16.sent();
|
|
7862
|
+
if (typeof fieldErrorShowSourceValue == "string" ||
|
|
7863
|
+
typeof fieldErrorShowSourceValue == "number") {
|
|
7864
|
+
fieldErrorShowSourceValue = String(fieldErrorShowSourceValue);
|
|
7865
|
+
}
|
|
7866
|
+
else {
|
|
7867
|
+
fieldErrorShowSourceValue = "";
|
|
7868
|
+
}
|
|
7869
|
+
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorShowSourceValue);
|
|
7870
|
+
_16.label = 8;
|
|
7871
|
+
case 8:
|
|
7872
|
+
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
7873
|
+
this.fieldErrorShow(action.props.fieldKey, action.props.message);
|
|
7874
|
+
return [3 /*break*/, 70];
|
|
7875
|
+
case 9:
|
|
7876
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 11];
|
|
7877
|
+
fieldErrorHide_Source = new kwikidToolkit.Source(object);
|
|
7878
|
+
return [4 /*yield*/, fieldErrorHide_Source.getValueFromSource(action.props.message.source)];
|
|
7879
|
+
case 10:
|
|
7880
|
+
fieldErrorHideSourceValue = _16.sent();
|
|
7881
|
+
if (typeof fieldErrorHideSourceValue == "string" ||
|
|
7882
|
+
typeof fieldErrorHideSourceValue == "number") {
|
|
7883
|
+
fieldErrorHideSourceValue = String(fieldErrorHideSourceValue);
|
|
7884
|
+
}
|
|
7885
|
+
else {
|
|
7886
|
+
fieldErrorHideSourceValue = "";
|
|
7887
|
+
}
|
|
7888
|
+
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorHideSourceValue);
|
|
7889
|
+
_16.label = 11;
|
|
7890
|
+
case 11:
|
|
7891
|
+
this.fieldErrorHide(action.props.fieldKey, action.props.message);
|
|
7892
|
+
return [3 /*break*/, 70];
|
|
7893
|
+
case 12:
|
|
7894
|
+
this.fieldMessageShow(action.props.fieldKey, action.props.message);
|
|
7895
|
+
return [3 /*break*/, 70];
|
|
7896
|
+
case 13:
|
|
7897
|
+
this.fieldMessageHide(action.props.fieldKey, action.props.message);
|
|
7898
|
+
return [3 /*break*/, 70];
|
|
7899
|
+
case 14: return [4 /*yield*/, this.fieldApiTimerMessageShow(action.props.fieldKey, action.props.timer)];
|
|
7900
|
+
case 15:
|
|
7901
|
+
_16.sent();
|
|
7902
|
+
return [3 /*break*/, 70];
|
|
7903
|
+
case 16: return [4 /*yield*/, this.fieldApiTimerMessageHide(action.props.fieldKey)];
|
|
7904
|
+
case 17:
|
|
7905
|
+
_16.sent();
|
|
7906
|
+
return [3 /*break*/, 70];
|
|
7907
|
+
case 18: return [4 /*yield*/, this.setValue(action, object)];
|
|
7908
|
+
case 19:
|
|
7909
|
+
_16.sent();
|
|
7910
|
+
return [3 /*break*/, 70];
|
|
7911
|
+
case 20: return [4 /*yield*/, this.setFieldDefaultValue(action, object)];
|
|
7912
|
+
case 21:
|
|
7913
|
+
_16.sent();
|
|
7914
|
+
return [3 /*break*/, 70];
|
|
7915
|
+
case 22: return [4 /*yield*/, this.setApiStatus(action, object)];
|
|
7916
|
+
case 23:
|
|
7917
|
+
_16.sent();
|
|
7918
|
+
return [3 /*break*/, 70];
|
|
7919
|
+
case 24: return [4 /*yield*/, this.setApiHeaderValue(action, object)];
|
|
7920
|
+
case 25:
|
|
7921
|
+
_16.sent();
|
|
7922
|
+
return [3 /*break*/, 70];
|
|
7923
|
+
case 26: return [4 /*yield*/, this.setApiHeaderValidity(action, object)];
|
|
7924
|
+
case 27:
|
|
7925
|
+
_16.sent();
|
|
7926
|
+
return [3 /*break*/, 70];
|
|
7927
|
+
case 28: return [4 /*yield*/, this.setApiBodyValue(action, object)];
|
|
7928
|
+
case 29:
|
|
7929
|
+
_16.sent();
|
|
7930
|
+
return [3 /*break*/, 70];
|
|
7931
|
+
case 30: return [4 /*yield*/, this.setApiBodyValidity(action, object)];
|
|
7932
|
+
case 31:
|
|
7933
|
+
_16.sent();
|
|
7934
|
+
return [3 /*break*/, 70];
|
|
7935
|
+
case 32: return [4 /*yield*/, this.setDropdownOptions(action, object)];
|
|
7936
|
+
case 33:
|
|
7937
|
+
_16.sent();
|
|
7938
|
+
return [3 /*break*/, 70];
|
|
7939
|
+
case 34: return [4 /*yield*/, this.setFieldValidity(action, object)];
|
|
7940
|
+
case 35:
|
|
7941
|
+
_16.sent();
|
|
7942
|
+
return [3 /*break*/, 70];
|
|
7943
|
+
case 36:
|
|
7944
|
+
this.handleConnectedElements({ key: action.props.fieldKey }, "ON_ACTION");
|
|
7945
|
+
return [3 /*break*/, 70];
|
|
7946
|
+
case 37: return [4 /*yield*/, this.fieldApiCall(action, object)];
|
|
7947
|
+
case 38:
|
|
7948
|
+
_16.sent();
|
|
7949
|
+
return [3 /*break*/, 70];
|
|
7950
|
+
case 39: return [4 /*yield*/, this.fieldMultipleApiCalls(action, object)];
|
|
7951
|
+
case 40:
|
|
7952
|
+
_16.sent();
|
|
7953
|
+
return [3 /*break*/, 70];
|
|
7954
|
+
case 41: return [4 /*yield*/, this.fieldMultipleApiCallsEnd(action, object)];
|
|
7955
|
+
case 42:
|
|
7956
|
+
_16.sent();
|
|
7957
|
+
return [3 /*break*/, 70];
|
|
7958
|
+
case 43: return [4 /*yield*/, this.taskApiCall(action, object)];
|
|
7959
|
+
case 44:
|
|
7960
|
+
_16.sent();
|
|
7961
|
+
return [3 /*break*/, 70];
|
|
7962
|
+
case 45: return [4 /*yield*/, this.taskMultipleApiCalls(action, object)];
|
|
7963
|
+
case 46:
|
|
7964
|
+
_16.sent();
|
|
7965
|
+
return [3 /*break*/, 70];
|
|
7966
|
+
case 47: return [4 /*yield*/, this.taskMultipleApiCallsEnd(action, object)];
|
|
7967
|
+
case 48:
|
|
7968
|
+
_16.sent();
|
|
7969
|
+
return [3 /*break*/, 70];
|
|
7970
|
+
case 49:
|
|
7971
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.url, "source")) return [3 /*break*/, 51];
|
|
7972
|
+
redirectToUrl_Source = new kwikidToolkit.Source(object);
|
|
7973
|
+
return [4 /*yield*/, redirectToUrl_Source.getValueFromSource(action.props.url.source)];
|
|
7974
|
+
case 50:
|
|
7975
|
+
redirectToUrlSourceValue = _16.sent();
|
|
7976
|
+
if (kwikidToolkit.isEmptyString(redirectToUrlSourceValue)) {
|
|
7977
|
+
redirectToUrlSourceValue = "";
|
|
7978
|
+
}
|
|
7979
|
+
action = kwikidToolkit.setValueToObjectPath(action, "props.url.url", redirectToUrlSourceValue);
|
|
7980
|
+
_16.label = 51;
|
|
7981
|
+
case 51:
|
|
7982
|
+
this.redirectToUrl(action);
|
|
7983
|
+
_16.label = 52;
|
|
7984
|
+
case 52:
|
|
7985
|
+
this.showPreview(action.props);
|
|
7986
|
+
return [3 /*break*/, 70];
|
|
7987
|
+
case 53:
|
|
7988
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 55];
|
|
7989
|
+
previewErrorShow_Source = new kwikidToolkit.Source(object);
|
|
7990
|
+
return [4 /*yield*/, previewErrorShow_Source.getValueFromSource(action.props.message.source)];
|
|
7991
|
+
case 54:
|
|
7992
|
+
previewErrorShowSourceValue = _16.sent();
|
|
7993
|
+
if (typeof previewErrorShowSourceValue == "string" ||
|
|
7994
|
+
typeof previewErrorShowSourceValue == "number") {
|
|
7995
|
+
previewErrorShowSourceValue = String(previewErrorShowSourceValue);
|
|
7996
|
+
}
|
|
7997
|
+
else {
|
|
7998
|
+
previewErrorShowSourceValue = "";
|
|
7999
|
+
}
|
|
8000
|
+
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", previewErrorShowSourceValue);
|
|
8001
|
+
_16.label = 55;
|
|
8002
|
+
case 55:
|
|
8003
|
+
this.showErrorPreview(action.props);
|
|
8004
|
+
return [3 /*break*/, 70];
|
|
8005
|
+
case 56:
|
|
8006
|
+
this.showPopupForm(action.props.popupFormKey, (_b = (_a = action.props) === null || _a === void 0 ? void 0 : _a.popupType) !== null && _b !== void 0 ? _b : "DIALOG");
|
|
8007
|
+
return [3 /*break*/, 70];
|
|
8008
|
+
case 57:
|
|
8009
|
+
this.waitingForChanges = false;
|
|
8010
|
+
return [3 /*break*/, 70];
|
|
8011
|
+
case 58:
|
|
8012
|
+
this.toggleErrorNotification(true);
|
|
8013
|
+
return [3 /*break*/, 70];
|
|
8014
|
+
case 59:
|
|
8015
|
+
this.toggleErrorNotification(false);
|
|
8016
|
+
return [3 /*break*/, 70];
|
|
8017
|
+
case 60:
|
|
8018
|
+
this.stopTaskExecution = false;
|
|
8019
|
+
return [3 /*break*/, 70];
|
|
8020
|
+
case 61:
|
|
8021
|
+
this.stopTaskExecution = true;
|
|
8022
|
+
return [3 /*break*/, 70];
|
|
8023
|
+
case 62:
|
|
8024
|
+
this.dialogShow({
|
|
8025
|
+
html: (_c = action.props) === null || _c === void 0 ? void 0 : _c.html,
|
|
8026
|
+
label: (_d = action.props) === null || _d === void 0 ? void 0 : _d.label,
|
|
8027
|
+
size: (_e = action.props) === null || _e === void 0 ? void 0 : _e.size,
|
|
8028
|
+
button: (_f = action.props) === null || _f === void 0 ? void 0 : _f.button
|
|
7691
8029
|
});
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
8030
|
+
return [3 /*break*/, 70];
|
|
8031
|
+
case 63:
|
|
8032
|
+
this.dialogHide();
|
|
8033
|
+
return [3 /*break*/, 70];
|
|
8034
|
+
case 64:
|
|
8035
|
+
this.handleOnClickSaveForm(undefined);
|
|
8036
|
+
return [3 /*break*/, 70];
|
|
8037
|
+
case 65:
|
|
8038
|
+
this.alertShow(action.props.type, action.props.message);
|
|
8039
|
+
return [3 /*break*/, 70];
|
|
8040
|
+
case 66:
|
|
8041
|
+
if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 68];
|
|
8042
|
+
fieldHtmlMessage_Source = new kwikidToolkit.Source(object);
|
|
8043
|
+
return [4 /*yield*/, fieldHtmlMessage_Source.getValueFromSource(action.props.message.source)];
|
|
8044
|
+
case 67:
|
|
8045
|
+
fieldHtmlMessageSourceValue = _16.sent();
|
|
8046
|
+
if (typeof fieldHtmlMessageSourceValue == "string" ||
|
|
8047
|
+
typeof fieldHtmlMessageSourceValue == "number") {
|
|
8048
|
+
fieldHtmlMessageSourceValue = String(fieldHtmlMessageSourceValue);
|
|
8049
|
+
}
|
|
8050
|
+
else {
|
|
8051
|
+
fieldHtmlMessageSourceValue = "";
|
|
8052
|
+
}
|
|
8053
|
+
action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldHtmlMessageSourceValue);
|
|
8054
|
+
_16.label = 68;
|
|
8055
|
+
case 68:
|
|
8056
|
+
action.props.message.message = updateLanguage(action.props.message.message, getLanguage());
|
|
8057
|
+
this.setHtml(action.props.fieldKey, action.props.message);
|
|
8058
|
+
return [3 /*break*/, 70];
|
|
8059
|
+
case 69: return [3 /*break*/, 70];
|
|
8060
|
+
case 70: return [2 /*return*/];
|
|
7696
8061
|
}
|
|
7697
|
-
return [2 /*return*/];
|
|
7698
8062
|
});
|
|
7699
8063
|
});
|
|
7700
8064
|
};
|
|
7701
8065
|
return KwikIDFormViewComponent;
|
|
7702
8066
|
}());
|
|
7703
|
-
/** @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:
|
|
7704
|
-
/** @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 [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 ></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: ["apiStatus", "class", "disabled", "id", "label", "shape", "showLoader", "size", "styles"], outputs: ["onClick"] }, { 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 } });
|
|
8067
|
+
/** @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 });
|
|
8068
|
+
/** @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 <!-- 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: 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.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 } });
|
|
7705
8069
|
__decorate([
|
|
7706
8070
|
kwikidToolkit.logMethod
|
|
7707
8071
|
], KwikIDFormViewComponent.prototype, "resetCamera", null);
|
|
@@ -7813,6 +8177,9 @@
|
|
|
7813
8177
|
__decorate([
|
|
7814
8178
|
kwikidToolkit.logMethod
|
|
7815
8179
|
], KwikIDFormViewComponent.prototype, "handleOnClickSaveForm", null);
|
|
8180
|
+
__decorate([
|
|
8181
|
+
kwikidToolkit.logMethod
|
|
8182
|
+
], KwikIDFormViewComponent.prototype, "handleOnApiTimerStop", null);
|
|
7816
8183
|
__decorate([
|
|
7817
8184
|
kwikidToolkit.logMethod
|
|
7818
8185
|
], KwikIDFormViewComponent.prototype, "toggleErrorNotification", null);
|
|
@@ -7957,22 +8324,22 @@
|
|
|
7957
8324
|
selector: "kwikid-form-view",
|
|
7958
8325
|
templateUrl: "./form-view.component.html",
|
|
7959
8326
|
styleUrls: ["./form-view.component.scss", "../shared.scss"],
|
|
7960
|
-
providers: [KwikIDFormViewService]
|
|
8327
|
+
providers: [KwikIDFormViewService, KwikIDFormViewApiService]
|
|
7961
8328
|
}]
|
|
7962
8329
|
}], ctorParameters: function () {
|
|
7963
|
-
return [{ type: i0__namespace.ChangeDetectorRef }, { type: KwikIDFormViewService }, { type:
|
|
8330
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: KwikIDFormViewService }, { type: KwikIDFormViewApiService }, { type: i6__namespace.TuiPushService, decorators: [{
|
|
7964
8331
|
type: i0.Inject,
|
|
7965
|
-
args: [
|
|
7966
|
-
}] }, { type:
|
|
8332
|
+
args: [i6.TuiPushService]
|
|
8333
|
+
}] }, { type: i5__namespace.TuiAlertService, decorators: [{
|
|
7967
8334
|
type: i0.Inject,
|
|
7968
|
-
args: [
|
|
7969
|
-
}] }, { type:
|
|
8335
|
+
args: [i5.TuiAlertService]
|
|
8336
|
+
}] }, { type: i7__namespace.TuiPreviewDialogService, decorators: [{
|
|
7970
8337
|
type: i0.Inject,
|
|
7971
|
-
args: [
|
|
7972
|
-
}] }, { type:
|
|
8338
|
+
args: [i7.TuiPreviewDialogService]
|
|
8339
|
+
}] }, { type: i5__namespace.TuiDialogService, decorators: [{
|
|
7973
8340
|
type: i0.Inject,
|
|
7974
|
-
args: [
|
|
7975
|
-
}] }, { type:
|
|
8341
|
+
args: [i5.TuiDialogService]
|
|
8342
|
+
}] }, { type: i3__namespace.KwikUILoaderService }, { type: i4__namespace.KwikIDCameraRecordService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
7976
8343
|
}, propDecorators: { dialog: [{
|
|
7977
8344
|
type: i0.ViewChild,
|
|
7978
8345
|
args: ["dialog"]
|
|
@@ -8013,7 +8380,7 @@
|
|
|
8013
8380
|
type: i0.Output
|
|
8014
8381
|
}], onClickViewForms: [{
|
|
8015
8382
|
type: i0.Output
|
|
8016
|
-
}], 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: [], 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: [] } });
|
|
8383
|
+
}], 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: [] } });
|
|
8017
8384
|
|
|
8018
8385
|
var EFormType;
|
|
8019
8386
|
(function (EFormType) {
|
|
@@ -8235,7 +8602,7 @@
|
|
|
8235
8602
|
return KwikIDFormsListComponent;
|
|
8236
8603
|
}());
|
|
8237
8604
|
/** @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 });
|
|
8238
|
-
/** @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:
|
|
8605
|
+
/** @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 } });
|
|
8239
8606
|
__decorate([
|
|
8240
8607
|
kwikidToolkit.logMethod
|
|
8241
8608
|
], KwikIDFormsListComponent.prototype, "ngOnChanges", null);
|
|
@@ -9328,8 +9695,8 @@
|
|
|
9328
9695
|
};
|
|
9329
9696
|
return KwikIDFormsRendererComponent;
|
|
9330
9697
|
}());
|
|
9331
|
-
/** @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:
|
|
9332
|
-
/** @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: [
|
|
9698
|
+
/** @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 });
|
|
9699
|
+
/** @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: [
|
|
9333
9700
|
animations.trigger("panelInOut", [
|
|
9334
9701
|
animations.transition(":enter", [
|
|
9335
9702
|
animations.style({ transform: "translateY(100%)" }),
|
|
@@ -9431,12 +9798,12 @@
|
|
|
9431
9798
|
]
|
|
9432
9799
|
}]
|
|
9433
9800
|
}], ctorParameters: function () {
|
|
9434
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type:
|
|
9801
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i7__namespace.TuiPreviewDialogService, decorators: [{
|
|
9435
9802
|
type: i0.Inject,
|
|
9436
|
-
args: [
|
|
9437
|
-
}] }, { type:
|
|
9803
|
+
args: [i7.TuiPreviewDialogService]
|
|
9804
|
+
}] }, { type: i3__namespace.KwikUILoaderService }, { type: i5__namespace.TuiDialogService, decorators: [{
|
|
9438
9805
|
type: i0.Inject,
|
|
9439
|
-
args: [
|
|
9806
|
+
args: [i5.TuiDialogService]
|
|
9440
9807
|
}] }];
|
|
9441
9808
|
}, propDecorators: { windowResizeWatcher: [{
|
|
9442
9809
|
type: i0.HostListener,
|
|
@@ -9494,28 +9861,28 @@
|
|
|
9494
9861
|
return KwikIDBuilderFormEditorModule;
|
|
9495
9862
|
}());
|
|
9496
9863
|
/** @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 });
|
|
9497
|
-
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, declarations: [KwikIDBuilderFormEditorComponent, JsonFormatPipe], imports: [i3$
|
|
9864
|
+
/** @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,
|
|
9498
9865
|
i3.FormsModule,
|
|
9499
9866
|
i3.ReactiveFormsModule,
|
|
9500
|
-
|
|
9501
|
-
|
|
9867
|
+
i3$1.KwikUIModule,
|
|
9868
|
+
i5.TuiSvgModule], exports: [KwikIDBuilderFormEditorComponent] });
|
|
9502
9869
|
/** @nocollapse */ KwikIDBuilderFormEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, providers: [KwikIDFormBuilderFormEditorService], imports: [[
|
|
9503
|
-
i3$
|
|
9870
|
+
i3$2.CommonModule,
|
|
9504
9871
|
i3.FormsModule,
|
|
9505
9872
|
i3.ReactiveFormsModule,
|
|
9506
|
-
|
|
9507
|
-
|
|
9873
|
+
i3$1.KwikUIModule,
|
|
9874
|
+
i5.TuiSvgModule
|
|
9508
9875
|
]] });
|
|
9509
9876
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormEditorModule, decorators: [{
|
|
9510
9877
|
type: i0.NgModule,
|
|
9511
9878
|
args: [{
|
|
9512
9879
|
declarations: [KwikIDBuilderFormEditorComponent, JsonFormatPipe],
|
|
9513
9880
|
imports: [
|
|
9514
|
-
i3$
|
|
9881
|
+
i3$2.CommonModule,
|
|
9515
9882
|
i3.FormsModule,
|
|
9516
9883
|
i3.ReactiveFormsModule,
|
|
9517
|
-
|
|
9518
|
-
|
|
9884
|
+
i3$1.KwikUIModule,
|
|
9885
|
+
i5.TuiSvgModule
|
|
9519
9886
|
],
|
|
9520
9887
|
exports: [KwikIDBuilderFormEditorComponent],
|
|
9521
9888
|
providers: [KwikIDFormBuilderFormEditorService]
|
|
@@ -9528,31 +9895,31 @@
|
|
|
9528
9895
|
return KwikIDBuilderFormsListModule;
|
|
9529
9896
|
}());
|
|
9530
9897
|
/** @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 });
|
|
9531
|
-
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, declarations: [KwikIDBuilderFormsListComponent], imports: [i3$
|
|
9898
|
+
/** @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,
|
|
9532
9899
|
i3.FormsModule,
|
|
9533
9900
|
i3.ReactiveFormsModule,
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9901
|
+
i3$1.KwikUIPipeModule,
|
|
9902
|
+
i3$1.KwikUIModule,
|
|
9903
|
+
i5.TuiSvgModule], exports: [KwikIDBuilderFormsListComponent] });
|
|
9537
9904
|
/** @nocollapse */ KwikIDBuilderFormsListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, imports: [[
|
|
9538
|
-
i3$
|
|
9905
|
+
i3$2.CommonModule,
|
|
9539
9906
|
i3.FormsModule,
|
|
9540
9907
|
i3.ReactiveFormsModule,
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9908
|
+
i3$1.KwikUIPipeModule,
|
|
9909
|
+
i3$1.KwikUIModule,
|
|
9910
|
+
i5.TuiSvgModule
|
|
9544
9911
|
]] });
|
|
9545
9912
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDBuilderFormsListModule, decorators: [{
|
|
9546
9913
|
type: i0.NgModule,
|
|
9547
9914
|
args: [{
|
|
9548
9915
|
declarations: [KwikIDBuilderFormsListComponent],
|
|
9549
9916
|
imports: [
|
|
9550
|
-
i3$
|
|
9917
|
+
i3$2.CommonModule,
|
|
9551
9918
|
i3.FormsModule,
|
|
9552
9919
|
i3.ReactiveFormsModule,
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9920
|
+
i3$1.KwikUIPipeModule,
|
|
9921
|
+
i3$1.KwikUIModule,
|
|
9922
|
+
i5.TuiSvgModule
|
|
9556
9923
|
],
|
|
9557
9924
|
exports: [KwikIDBuilderFormsListComponent]
|
|
9558
9925
|
}]
|
|
@@ -9564,34 +9931,34 @@
|
|
|
9564
9931
|
return KwikIDFormBuilderModule;
|
|
9565
9932
|
}());
|
|
9566
9933
|
/** @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 });
|
|
9567
|
-
/** @nocollapse */ KwikIDFormBuilderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, declarations: [KwikIDFormsBuilderComponent], imports: [i3$
|
|
9934
|
+
/** @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,
|
|
9568
9935
|
i3.FormsModule,
|
|
9569
9936
|
i3.ReactiveFormsModule,
|
|
9570
9937
|
dragDrop.DragDropModule,
|
|
9571
9938
|
KwikIDBuilderFormsListModule,
|
|
9572
9939
|
KwikIDBuilderFormEditorModule,
|
|
9573
|
-
|
|
9940
|
+
i3$1.KwikUIModule], exports: [KwikIDFormsBuilderComponent] });
|
|
9574
9941
|
/** @nocollapse */ KwikIDFormBuilderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, providers: [], imports: [[
|
|
9575
|
-
i3$
|
|
9942
|
+
i3$2.CommonModule,
|
|
9576
9943
|
i3.FormsModule,
|
|
9577
9944
|
i3.ReactiveFormsModule,
|
|
9578
9945
|
dragDrop.DragDropModule,
|
|
9579
9946
|
KwikIDBuilderFormsListModule,
|
|
9580
9947
|
KwikIDBuilderFormEditorModule,
|
|
9581
|
-
|
|
9948
|
+
i3$1.KwikUIModule
|
|
9582
9949
|
]] });
|
|
9583
9950
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormBuilderModule, decorators: [{
|
|
9584
9951
|
type: i0.NgModule,
|
|
9585
9952
|
args: [{
|
|
9586
9953
|
declarations: [KwikIDFormsBuilderComponent],
|
|
9587
9954
|
imports: [
|
|
9588
|
-
i3$
|
|
9955
|
+
i3$2.CommonModule,
|
|
9589
9956
|
i3.FormsModule,
|
|
9590
9957
|
i3.ReactiveFormsModule,
|
|
9591
9958
|
dragDrop.DragDropModule,
|
|
9592
9959
|
KwikIDBuilderFormsListModule,
|
|
9593
9960
|
KwikIDBuilderFormEditorModule,
|
|
9594
|
-
|
|
9961
|
+
i3$1.KwikUIModule
|
|
9595
9962
|
],
|
|
9596
9963
|
providers: [],
|
|
9597
9964
|
exports: [KwikIDFormsBuilderComponent]
|
|
@@ -9604,58 +9971,58 @@
|
|
|
9604
9971
|
return KwikIDFormViewModule;
|
|
9605
9972
|
}());
|
|
9606
9973
|
/** @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 });
|
|
9607
|
-
/** @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$
|
|
9974
|
+
/** @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,
|
|
9608
9975
|
i3.FormsModule,
|
|
9609
9976
|
i3.ReactiveFormsModule,
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9977
|
+
i5.TuiLabelModule,
|
|
9978
|
+
i6.TuiPushModule,
|
|
9979
|
+
i5.TuiSvgModule,
|
|
9980
|
+
i7.TuiPreviewModule,
|
|
9981
|
+
i5.TuiButtonModule,
|
|
9982
|
+
i7.TuiPreviewActionModule,
|
|
9983
|
+
i5.TuiDialogModule,
|
|
9984
|
+
i3$1.KwikUIPipeModule,
|
|
9985
|
+
i3$1.KwikUIModule,
|
|
9986
|
+
i4.KwikIDCameraModule,
|
|
9987
|
+
i4.KwikUIInputCameraModule,
|
|
9988
|
+
i3$1.KwikUIInputEmailModule], exports: [KwikIDFormViewComponent] });
|
|
9622
9989
|
/** @nocollapse */ KwikIDFormViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, imports: [[
|
|
9623
|
-
i3$
|
|
9990
|
+
i3$2.CommonModule,
|
|
9624
9991
|
i3.FormsModule,
|
|
9625
9992
|
i3.ReactiveFormsModule,
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9993
|
+
i5.TuiLabelModule,
|
|
9994
|
+
i6.TuiPushModule,
|
|
9995
|
+
i5.TuiSvgModule,
|
|
9996
|
+
i7.TuiPreviewModule,
|
|
9997
|
+
i5.TuiButtonModule,
|
|
9998
|
+
i7.TuiPreviewActionModule,
|
|
9999
|
+
i5.TuiDialogModule,
|
|
10000
|
+
i3$1.KwikUIPipeModule,
|
|
10001
|
+
i3$1.KwikUIModule,
|
|
10002
|
+
i4.KwikIDCameraModule,
|
|
10003
|
+
i4.KwikUIInputCameraModule,
|
|
10004
|
+
i3$1.KwikUIInputEmailModule
|
|
9638
10005
|
]] });
|
|
9639
10006
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormViewModule, decorators: [{
|
|
9640
10007
|
type: i0.NgModule,
|
|
9641
10008
|
args: [{
|
|
9642
10009
|
declarations: [KwikIDFormViewComponent, StyleSanitizerPipe, TimerPipe],
|
|
9643
10010
|
imports: [
|
|
9644
|
-
i3$
|
|
10011
|
+
i3$2.CommonModule,
|
|
9645
10012
|
i3.FormsModule,
|
|
9646
10013
|
i3.ReactiveFormsModule,
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
10014
|
+
i5.TuiLabelModule,
|
|
10015
|
+
i6.TuiPushModule,
|
|
10016
|
+
i5.TuiSvgModule,
|
|
10017
|
+
i7.TuiPreviewModule,
|
|
10018
|
+
i5.TuiButtonModule,
|
|
10019
|
+
i7.TuiPreviewActionModule,
|
|
10020
|
+
i5.TuiDialogModule,
|
|
10021
|
+
i3$1.KwikUIPipeModule,
|
|
10022
|
+
i3$1.KwikUIModule,
|
|
10023
|
+
i4.KwikIDCameraModule,
|
|
10024
|
+
i4.KwikUIInputCameraModule,
|
|
10025
|
+
i3$1.KwikUIInputEmailModule
|
|
9659
10026
|
],
|
|
9660
10027
|
exports: [KwikIDFormViewComponent]
|
|
9661
10028
|
}]
|
|
@@ -9667,31 +10034,31 @@
|
|
|
9667
10034
|
return KwikIDFormsListModule;
|
|
9668
10035
|
}());
|
|
9669
10036
|
/** @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 });
|
|
9670
|
-
/** @nocollapse */ KwikIDFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, declarations: [KwikIDFormsListComponent], imports: [i3$
|
|
10037
|
+
/** @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,
|
|
9671
10038
|
i3.FormsModule,
|
|
9672
10039
|
i3.ReactiveFormsModule,
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
10040
|
+
i3$1.KwikUIPipeModule,
|
|
10041
|
+
i3$1.KwikUIModule,
|
|
10042
|
+
i5.TuiSvgModule], exports: [KwikIDFormsListComponent] });
|
|
9676
10043
|
/** @nocollapse */ KwikIDFormsListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, imports: [[
|
|
9677
|
-
i3$
|
|
10044
|
+
i3$2.CommonModule,
|
|
9678
10045
|
i3.FormsModule,
|
|
9679
10046
|
i3.ReactiveFormsModule,
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
10047
|
+
i3$1.KwikUIPipeModule,
|
|
10048
|
+
i3$1.KwikUIModule,
|
|
10049
|
+
i5.TuiSvgModule
|
|
9683
10050
|
]] });
|
|
9684
10051
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsListModule, decorators: [{
|
|
9685
10052
|
type: i0.NgModule,
|
|
9686
10053
|
args: [{
|
|
9687
10054
|
declarations: [KwikIDFormsListComponent],
|
|
9688
10055
|
imports: [
|
|
9689
|
-
i3$
|
|
10056
|
+
i3$2.CommonModule,
|
|
9690
10057
|
i3.FormsModule,
|
|
9691
10058
|
i3.ReactiveFormsModule,
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
10059
|
+
i3$1.KwikUIPipeModule,
|
|
10060
|
+
i3$1.KwikUIModule,
|
|
10061
|
+
i5.TuiSvgModule
|
|
9695
10062
|
],
|
|
9696
10063
|
exports: [KwikIDFormsListComponent]
|
|
9697
10064
|
}]
|
|
@@ -9703,49 +10070,49 @@
|
|
|
9703
10070
|
return KwikIDFormRendererModule;
|
|
9704
10071
|
}());
|
|
9705
10072
|
/** @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 });
|
|
9706
|
-
/** @nocollapse */ KwikIDFormRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, declarations: [KwikIDFormsRendererComponent], imports: [i3$
|
|
10073
|
+
/** @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,
|
|
9707
10074
|
http.HttpClientModule,
|
|
9708
10075
|
KwikIDFormViewModule,
|
|
9709
10076
|
KwikIDFormsListModule,
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
10077
|
+
i3$1.KwikUIModule,
|
|
10078
|
+
i5.TuiLoaderModule,
|
|
10079
|
+
i6.TuiPushModule,
|
|
10080
|
+
i7.TuiPreviewActionModule,
|
|
10081
|
+
i7.TuiPreviewModule,
|
|
10082
|
+
i5.TuiButtonModule,
|
|
10083
|
+
i7.TuiPreviewActionModule,
|
|
10084
|
+
i5.TuiSvgModule], exports: [KwikIDFormsRendererComponent] });
|
|
9718
10085
|
/** @nocollapse */ KwikIDFormRendererModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, providers: [], imports: [[
|
|
9719
|
-
i3$
|
|
10086
|
+
i3$2.CommonModule,
|
|
9720
10087
|
http.HttpClientModule,
|
|
9721
10088
|
KwikIDFormViewModule,
|
|
9722
10089
|
KwikIDFormsListModule,
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
10090
|
+
i3$1.KwikUIModule,
|
|
10091
|
+
i5.TuiLoaderModule,
|
|
10092
|
+
i6.TuiPushModule,
|
|
10093
|
+
i7.TuiPreviewActionModule,
|
|
10094
|
+
i7.TuiPreviewModule,
|
|
10095
|
+
i5.TuiButtonModule,
|
|
10096
|
+
i7.TuiPreviewActionModule,
|
|
10097
|
+
i5.TuiSvgModule
|
|
9731
10098
|
]] });
|
|
9732
10099
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormRendererModule, decorators: [{
|
|
9733
10100
|
type: i0.NgModule,
|
|
9734
10101
|
args: [{
|
|
9735
10102
|
declarations: [KwikIDFormsRendererComponent],
|
|
9736
10103
|
imports: [
|
|
9737
|
-
i3$
|
|
10104
|
+
i3$2.CommonModule,
|
|
9738
10105
|
http.HttpClientModule,
|
|
9739
10106
|
KwikIDFormViewModule,
|
|
9740
10107
|
KwikIDFormsListModule,
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
10108
|
+
i3$1.KwikUIModule,
|
|
10109
|
+
i5.TuiLoaderModule,
|
|
10110
|
+
i6.TuiPushModule,
|
|
10111
|
+
i7.TuiPreviewActionModule,
|
|
10112
|
+
i7.TuiPreviewModule,
|
|
10113
|
+
i5.TuiButtonModule,
|
|
10114
|
+
i7.TuiPreviewActionModule,
|
|
10115
|
+
i5.TuiSvgModule
|
|
9749
10116
|
],
|
|
9750
10117
|
providers: [],
|
|
9751
10118
|
exports: [KwikIDFormsRendererComponent]
|
|
@@ -9758,13 +10125,13 @@
|
|
|
9758
10125
|
return KwikIDFormsModule;
|
|
9759
10126
|
}());
|
|
9760
10127
|
/** @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 });
|
|
9761
|
-
/** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i3$
|
|
10128
|
+
/** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i3$2.CommonModule,
|
|
9762
10129
|
i3.FormsModule,
|
|
9763
10130
|
i3.ReactiveFormsModule,
|
|
9764
10131
|
KwikIDFormBuilderModule,
|
|
9765
10132
|
KwikIDFormRendererModule], exports: [KwikIDFormRendererModule, KwikIDFormBuilderModule] });
|
|
9766
10133
|
/** @nocollapse */ KwikIDFormsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [[
|
|
9767
|
-
i3$
|
|
10134
|
+
i3$2.CommonModule,
|
|
9768
10135
|
i3.FormsModule,
|
|
9769
10136
|
i3.ReactiveFormsModule,
|
|
9770
10137
|
KwikIDFormBuilderModule,
|
|
@@ -9775,7 +10142,7 @@
|
|
|
9775
10142
|
args: [{
|
|
9776
10143
|
declarations: [],
|
|
9777
10144
|
imports: [
|
|
9778
|
-
i3$
|
|
10145
|
+
i3$2.CommonModule,
|
|
9779
10146
|
i3.FormsModule,
|
|
9780
10147
|
i3.ReactiveFormsModule,
|
|
9781
10148
|
KwikIDFormBuilderModule,
|