kwikid-forms 0.1.2 → 0.1.3
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 +176 -179
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/form-view/form-view.component.js +42 -42
- package/esm2015/lib/renderer/form-view/form-view.service.js +3 -3
- package/esm2015/lib/renderer/form-view/helpers/form-view.actions.helper.js +3 -3
- package/esm2015/lib/renderer/form-view/helpers/form-view.apis.helper.js +5 -5
- package/esm2015/lib/renderer/form-view/helpers/form-view.condition.helper.js +3 -3
- package/esm2015/lib/renderer/form-view/helpers/form-view.defaults.helper.js +3 -3
- package/esm2015/lib/renderer/form-view/helpers/form-view.rules.helper.js +4 -4
- package/esm2015/lib/renderer/form-view/helpers/form-view.sources.helper.js +4 -4
- package/esm2015/lib/renderer/form-view/helpers/form-view.validations.helper.js +6 -6
- package/esm2015/lib/renderer/forms-list/forms-list.component.js +7 -2
- package/esm2015/lib/renderer/helpers/renderer.actions.helper.js +4 -3
- package/esm2015/lib/renderer/helpers/renderer.rules.helper.js +4 -3
- package/esm2015/lib/renderer/helpers/renderer.sources.helper.js +28 -2
- package/esm2015/lib/renderer/helpers/renderer.validations.helper.js +11 -4
- package/esm2015/lib/renderer/renderer.component.js +12 -6
- package/esm2015/lib/renderer/renderer.config-converter.helper.js +4 -3
- package/esm2015/lib/renderer/renderer.service.js +45 -3
- package/fesm2015/kwikid-forms.js +156 -163
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/helpers/renderer.actions.helper.d.ts +2 -1
- package/lib/renderer/helpers/renderer.rules.helper.d.ts +2 -1
- package/lib/renderer/helpers/renderer.sources.helper.d.ts +6 -1
- package/lib/renderer/helpers/renderer.validations.helper.d.ts +4 -1
- package/lib/renderer/renderer.component.d.ts +1 -1
- package/package.json +2 -1
- package/esm2015/lib/renderer/form-view/form-view.decorators.js +0 -93
- package/lib/renderer/form-view/form-view.decorators.d.ts +0 -7
package/fesm2015/kwikid-forms.js
CHANGED
|
@@ -7,6 +7,7 @@ import * as i2 from 'kwikui';
|
|
|
7
7
|
import { KwikUIButtonComponent, KwikUIProgressSegmentedComponent, KwikUIInputComponent, KwikUIModule } from 'kwikui';
|
|
8
8
|
import _, { cloneDeep } from 'lodash';
|
|
9
9
|
import { __decorate, __awaiter } from 'tslib';
|
|
10
|
+
import { logMethod } from 'kwikid-toolkit';
|
|
10
11
|
import * as i3 from '@taiga-ui/core';
|
|
11
12
|
import { TuiAlertService, TuiLabelModule, TuiSvgModule, TuiLoaderModule } from '@taiga-ui/core';
|
|
12
13
|
import * as i4 from '@taiga-ui/kit';
|
|
@@ -295,99 +296,6 @@ var EFieldType;
|
|
|
295
296
|
EFieldType["AADHAAR_NUMBER"] = "aadhaar-number";
|
|
296
297
|
})(EFieldType || (EFieldType = {}));
|
|
297
298
|
|
|
298
|
-
/**
|
|
299
|
-
* A function that logs the execution of a method.
|
|
300
|
-
* @param {any} target - The object the method belongs to.
|
|
301
|
-
* @param {string} propertyKey - The name of the method.
|
|
302
|
-
* @param {PropertyDescriptor} descriptor - The property descriptor for the method.
|
|
303
|
-
*/
|
|
304
|
-
function log(target, propertyKey, descriptor) {
|
|
305
|
-
// save a reference to the original method
|
|
306
|
-
const originalMethod = descriptor.value;
|
|
307
|
-
// update the descriptor value with a new function that will log and execute the original method
|
|
308
|
-
descriptor.value = function (...args) {
|
|
309
|
-
console.group("Logging Method"); // start a new logging group
|
|
310
|
-
console.time("Execution Time:"); // start a timer
|
|
311
|
-
let result; // declare result variable
|
|
312
|
-
try {
|
|
313
|
-
// execute the original method and save the result
|
|
314
|
-
result = originalMethod.apply(this, args);
|
|
315
|
-
}
|
|
316
|
-
catch (error) {
|
|
317
|
-
// if an error is thrown, log the error and throw it again
|
|
318
|
-
logSyncMethodError(target.constructor.name, propertyKey, args, error);
|
|
319
|
-
console.timeEnd(`Execution Time:`); // stop the timer
|
|
320
|
-
console.groupEnd(); // end the logging group
|
|
321
|
-
throw error;
|
|
322
|
-
}
|
|
323
|
-
// if the result is a Promise, handle it as an async method
|
|
324
|
-
if (result instanceof Promise) {
|
|
325
|
-
result = result
|
|
326
|
-
.then((resolvedValue) => {
|
|
327
|
-
// on success, log the resolved value and return it
|
|
328
|
-
logAsyncMethod(target.constructor.name, propertyKey, args, resolvedValue);
|
|
329
|
-
console.timeEnd(`Execution Time:`); // stop the timer
|
|
330
|
-
console.groupEnd(); // end the logging group
|
|
331
|
-
return resolvedValue;
|
|
332
|
-
})
|
|
333
|
-
.catch((error) => {
|
|
334
|
-
// on error, log the error and throw it again
|
|
335
|
-
logAsyncMethodError(target.constructor.name, propertyKey, args, error);
|
|
336
|
-
console.timeEnd(`Execution Time:`); // stop the timer
|
|
337
|
-
console.groupEnd(); // end the logging group
|
|
338
|
-
throw error;
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
// if the result is not a Promise, handle it as a sync method
|
|
343
|
-
logSyncMethod(target.constructor.name, propertyKey, args, result);
|
|
344
|
-
console.timeEnd("Execution Time:");
|
|
345
|
-
console.groupEnd();
|
|
346
|
-
}
|
|
347
|
-
return result;
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* This function logs a sync method's information to the console.
|
|
352
|
-
* @param {string} className - The name of the class where the method belongs.
|
|
353
|
-
* @param {string} methodName - The name of the method being called.
|
|
354
|
-
* @param {any[]} args - An array of arguments passed to the method.
|
|
355
|
-
* @param {any} result - The result of the method.
|
|
356
|
-
*/
|
|
357
|
-
function logSyncMethod(className, methodName, args, result) {
|
|
358
|
-
console.log("%cType: Sync Method -", "color: #0d47a1; font-weight: bold;", "\nClass:", className, "\nMethod:", methodName, "\nArgs:", args, "\nReturn:", result);
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Logs an error that occurred during the execution of a synchronous method.
|
|
362
|
-
* @param {string} className - The name of the class the method belongs to.
|
|
363
|
-
* @param {string} methodName - The name of the method.
|
|
364
|
-
* @param {any[]} args - The arguments passed to the method.
|
|
365
|
-
* @param {Error} error - The error that occurred.
|
|
366
|
-
*/
|
|
367
|
-
function logSyncMethodError(className, methodName, args, error) {
|
|
368
|
-
console.log("%cType: Sync Method -", "color: #0d47a1; font-weight: bold;", "\nClass:", className, "\nMethod:", methodName, "\nArgs:", args, "\nError:", error);
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Logs the result of the execution of an asynchronous method.
|
|
372
|
-
* @param {string} className - The name of the class the method belongs to.
|
|
373
|
-
* @param {string} methodName - The name of the method.
|
|
374
|
-
* @param {any[]} args - The arguments passed to the method.
|
|
375
|
-
* @param {any} result - The result of the method execution.
|
|
376
|
-
*/
|
|
377
|
-
function logAsyncMethod(className, methodName, args, result) {
|
|
378
|
-
console.log("%cType: Async Method -", "color: #1565c0; font-weight: bold;", "\nClass:", className, "\nMethod:", methodName, "\nArgs:", args, "\nReturn:", result);
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Logs an error that occurred during the execution of an asynchronous method.
|
|
382
|
-
* @param {string} className - The name of the class the method belongs to.
|
|
383
|
-
* @param {string} methodName - The name of the method.
|
|
384
|
-
* @param {any[]} args - The arguments passed to the method.
|
|
385
|
-
* @param {Error} error - The error that occurred.
|
|
386
|
-
*/
|
|
387
|
-
function logAsyncMethodError(className, methodName, args, error) {
|
|
388
|
-
console.log("%cType: Async Method -", "color: #1565c0; font-weight: bold;", "\nClass:", className, "\nMethod:", methodName, "\nArgs:", args, "\nError:", error);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
299
|
const hasKey$2 = (object, key) => {
|
|
392
300
|
return object.hasOwnProperty(key);
|
|
393
301
|
};
|
|
@@ -609,7 +517,7 @@ class Condition$1 {
|
|
|
609
517
|
}
|
|
610
518
|
}
|
|
611
519
|
__decorate([
|
|
612
|
-
|
|
520
|
+
logMethod
|
|
613
521
|
], Condition$1.prototype, "evaluate", null);
|
|
614
522
|
|
|
615
523
|
class Actions$1 {
|
|
@@ -633,7 +541,7 @@ class Actions$1 {
|
|
|
633
541
|
}
|
|
634
542
|
}
|
|
635
543
|
__decorate([
|
|
636
|
-
|
|
544
|
+
logMethod
|
|
637
545
|
], Actions$1.prototype, "execute", null);
|
|
638
546
|
|
|
639
547
|
var ERuleKey;
|
|
@@ -811,10 +719,10 @@ class Sources$1 {
|
|
|
811
719
|
}
|
|
812
720
|
}
|
|
813
721
|
__decorate([
|
|
814
|
-
|
|
722
|
+
logMethod
|
|
815
723
|
], Sources$1.prototype, "getValueFromSource", null);
|
|
816
724
|
__decorate([
|
|
817
|
-
|
|
725
|
+
logMethod
|
|
818
726
|
], Sources$1.prototype, "setValueToSource", null);
|
|
819
727
|
|
|
820
728
|
class Rules$1 {
|
|
@@ -887,10 +795,10 @@ class Rules$1 {
|
|
|
887
795
|
}
|
|
888
796
|
}
|
|
889
797
|
__decorate([
|
|
890
|
-
|
|
798
|
+
logMethod
|
|
891
799
|
], Rules$1.prototype, "evaluate", null);
|
|
892
800
|
__decorate([
|
|
893
|
-
|
|
801
|
+
logMethod
|
|
894
802
|
], Rules$1.prototype, "mapping", null);
|
|
895
803
|
|
|
896
804
|
class Defaults {
|
|
@@ -934,7 +842,7 @@ class Defaults {
|
|
|
934
842
|
}
|
|
935
843
|
}
|
|
936
844
|
__decorate([
|
|
937
|
-
|
|
845
|
+
logMethod
|
|
938
846
|
], Defaults.prototype, "getDefaultValue", null);
|
|
939
847
|
|
|
940
848
|
const findFieldFromKey = (fields, key) => {
|
|
@@ -1271,16 +1179,16 @@ class Validations$1 {
|
|
|
1271
1179
|
}
|
|
1272
1180
|
}
|
|
1273
1181
|
__decorate([
|
|
1274
|
-
|
|
1182
|
+
logMethod
|
|
1275
1183
|
], Validations$1.prototype, "getFieldValidators", null);
|
|
1276
1184
|
__decorate([
|
|
1277
|
-
|
|
1185
|
+
logMethod
|
|
1278
1186
|
], Validations$1.prototype, "getFormValidationErrors", null);
|
|
1279
1187
|
__decorate([
|
|
1280
|
-
|
|
1188
|
+
logMethod
|
|
1281
1189
|
], Validations$1.prototype, "findInvalidControlsRecursive", null);
|
|
1282
1190
|
__decorate([
|
|
1283
|
-
|
|
1191
|
+
logMethod
|
|
1284
1192
|
], Validations$1.prototype, "validateField", null);
|
|
1285
1193
|
|
|
1286
1194
|
class KwikIDFormViewService {
|
|
@@ -1303,7 +1211,7 @@ class KwikIDFormViewService {
|
|
|
1303
1211
|
}
|
|
1304
1212
|
}
|
|
1305
1213
|
__decorate([
|
|
1306
|
-
|
|
1214
|
+
logMethod
|
|
1307
1215
|
], KwikIDFormViewService.prototype, "createFormGroup", null);
|
|
1308
1216
|
|
|
1309
1217
|
class Apis {
|
|
@@ -1395,13 +1303,13 @@ class Apis {
|
|
|
1395
1303
|
}
|
|
1396
1304
|
}
|
|
1397
1305
|
__decorate([
|
|
1398
|
-
|
|
1306
|
+
logMethod
|
|
1399
1307
|
], Apis.prototype, "setRequestBodyParams", null);
|
|
1400
1308
|
__decorate([
|
|
1401
|
-
|
|
1309
|
+
logMethod
|
|
1402
1310
|
], Apis.prototype, "validateRequestBody", null);
|
|
1403
1311
|
__decorate([
|
|
1404
|
-
|
|
1312
|
+
logMethod
|
|
1405
1313
|
], Apis.prototype, "validateApiCallResponse", null);
|
|
1406
1314
|
|
|
1407
1315
|
class KwikIDFormViewComponent {
|
|
@@ -2011,123 +1919,123 @@ class KwikIDFormViewComponent {
|
|
|
2011
1919
|
}
|
|
2012
1920
|
}
|
|
2013
1921
|
/** @nocollapse */ KwikIDFormViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDFormViewComponent, deps: [{ token: TuiPushService }, { token: TuiAlertService }, { token: KwikIDFormViewService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2014
|
-
/** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { formConfig: "formConfig", formData: "formData", apiCallResponse: "apiCallResponse", isMobileView: "isMobileView", allFormsData: "allFormsData", formsList: "formsList" }, outputs: { onClickViewForms: "onClickViewForms", onClickSaveForm: "onClickSaveForm", onClickApiCall: "onClickApiCall", getActiveFormData: "getActiveFormData" }, providers: [KwikIDFormViewService], usesOnChanges: true, ngImport: i0, template: "<div\r\n class=\"kwikid-form-container\"\r\n *ngIf=\"!this.loading\"\r\n>\r\n <div id=\"uf-form-fields-header-container\">\r\n <div id=\"uf-form-fields-title\">\r\n {{ this.formConfig.title }}\r\n </div>\r\n <div id=\"uf-form-fields-steps\">\r\n Step {{ this.formConfig.sequenceNo }} of {{ this.formsList.length }}\r\n </div>\r\n <hr />\r\n </div>\r\n <form\r\n class=\"kwikid-form show\"\r\n [formGroup]=\"this.formGroup\"\r\n >\r\n <ng-container *ngFor=\"let field of this.formFields; let i = index\">\r\n <ng-container [ngSwitch]=\"field.type\">\r\n <!-- Form Title -->\r\n <ng-container *ngSwitchCase=\"'title'\">\r\n <div\r\n class=\"title\"\r\n [class.hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <div>\r\n {{ field.label }}\r\n </div>\r\n <kwikui-button\r\n *ngIf=\"field?.reset\"\r\n appearance=\"whiteblock\"\r\n size=\"s\"\r\n label=\"Reset\"\r\n (onClick)=\"this.handleOnClickResetFormFields($event, field)\"\r\n ></kwikui-button>\r\n </div>\r\n </ng-container>\r\n <!-- Input Text -->\r\n <ng-container *ngSwitchCase=\"'text'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input\r\n [case]=\"field?.properties?.case\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [type]=\"'text'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Checkbox -->\r\n <ng-container *ngSwitchCase=\"'checkbox'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-checkbox-block\r\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.properties?.placeholder\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size ?? 'l'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-checkbox-block\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-number\r\n [decimal]=\"field?.properties?.decimal\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [postfix]=\"field?.properties?.postfix ?? ''\"\r\n [precision]=\"field?.properties?.precision\"\r\n [prefix]=\"field?.properties?.prefix ?? ''\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-number\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-date\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-date>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Phone -->\r\n <ng-container *ngSwitchCase=\"'phone'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-phone\r\n [countryCode]=\"field?.properties?.countryCode\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [phoneMaskAfterCountryCode]=\"\r\n field?.properties?.phoneMaskAfterCountryCode\r\n \"\r\n [placeholder]=\"field?.placeholder\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-phone>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Radio -->\r\n <ng-container *ngSwitchCase=\"'radio'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <label\r\n [tuiLabel]=\"labelTemplate\"\r\n style=\"min-height: auto\"\r\n >\r\n <kwikui-radio-list\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [items]=\"field?.options\"\r\n [label]=\"field?.label\"\r\n [orientation]=\"field?.properties?.orientation\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-radio-list>\r\n </label>\r\n <ng-template #labelTemplate>\r\n <p\r\n class=\"tui-space_bottom-2\"\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <b>\r\n {{ field.label }}\r\n <span *ngIf=\"field.validators?.required\"></span>\r\n </b>\r\n </p>\r\n </ng-template>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Dropdown -->\r\n <ng-container *ngSwitchCase=\"'dropdown-with-search'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-select-combobox\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [options]=\"field.options\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-select-combobox>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- API Call -->\r\n <ng-container *ngSwitchCase=\"'api-call'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-button-api-call\r\n [apiStatus]=\"field?.api?.status?.value\"\r\n [class]=\"field?.class\"\r\n [disabled]=\"field?.disabled\"\r\n [id]=\"field.key\"\r\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\r\n [showLoader]=\"field?.disabled === 'loading'\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: fit-content\"\r\n (onClick)=\"this.handleOnClickApiCall($event)\"\r\n ></kwikui-button-api-call>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Mobile OTP -->\r\n <ng-container *ngSwitchCase=\"'otp'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-otp\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [mask]=\"field?.properties?.mask\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-otp>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Aadhaar Number -->\r\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-aadhaar\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-aadhaar>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div class=\"kwikid-form-buttons\">\r\n <kwikui-button\r\n *ngIf=\"this.isMobileView\"\r\n [disabled]=\"viewFormsButton.disabled\"\r\n id=\"\"\r\n label=\"View Forms\"\r\n [showLoader]=\"viewFormsButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"secondary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n [shape]=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickViewForms($event)\"\r\n ></kwikui-button>\r\n <kwikui-button\r\n [disabled]=\"saveFormButton.disabled\"\r\n id=\"\"\r\n label=\"Save\"\r\n [showLoader]=\"saveFormButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n [shape]=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickSaveForm($event)\"\r\n ></kwikui-button>\r\n </div>\r\n</div>\r\n<div\r\n class=\"kwikid-form-container-loading\"\r\n *ngIf=\"this.loading\"\r\n>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n</div>\r\n<tui-push\r\n id=\"field-error-notification\"\r\n *tuiPush=\"showErrorNotification\"\r\n heading=\"Missing/Incorrect Fields!\"\r\n type=\"Error\"\r\n (close)=\"toggleErrorNotification(false)\"\r\n>\r\n <tui-svg\r\n src=\"tuiIconCancel\"\r\n style=\"color: #fff !important\"\r\n >\r\n </tui-svg>\r\n</tui-push>\r\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}.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;grid-row-gap:1rem;row-gap:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-column-gap:10px;column-gap:10px}.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;grid-row-gap:.5rem;row-gap:.5rem;padding:1rem}#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:1em}.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;grid-gap:.5rem;gap:.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;grid-row-gap:1rem;row-gap:1rem;padding: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}\n"], components: [{ type: i2.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i2.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["messages", "id"] }, { type: i2.KwikUICheckboxBlockComponent, selector: "kwikui-checkbox-block", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "contentAlign", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "max", "prefix", "postfix", "precision", "decimal", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "max", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "countryCode", "phoneMaskAfterCountryCode", "removeCountryCodeFromValue", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i3.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i2.KwikUIRadioListComponent, selector: "kwikui-radio-list", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "orientation", "items", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUISelectComboboxComponent, selector: "kwikui-select-combobox", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "options", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "shape", "size", "apiStatus"], outputs: ["onClick"] }, { type: i2.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i4.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "timestamp"], outputs: ["close"] }, { type: i3.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i4.TuiPushDirective, selector: "tui-push" }] });
|
|
1922
|
+
/** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { formConfig: "formConfig", formData: "formData", apiCallResponse: "apiCallResponse", isMobileView: "isMobileView", allFormsData: "allFormsData", formsList: "formsList" }, outputs: { onClickViewForms: "onClickViewForms", onClickSaveForm: "onClickSaveForm", onClickApiCall: "onClickApiCall", getActiveFormData: "getActiveFormData" }, providers: [KwikIDFormViewService], usesOnChanges: true, ngImport: i0, template: "<div\r\n class=\"kwikid-form-container\"\r\n *ngIf=\"!this.loading\"\r\n>\r\n <div id=\"uf-form-fields-header-container\">\r\n <div id=\"uf-form-fields-title\">\r\n {{ this.formConfig.title }}\r\n </div>\r\n <div id=\"uf-form-fields-steps\">\r\n Step {{ this.formConfig.sequenceNo }} of {{ this.formsList.length }}\r\n </div>\r\n <hr />\r\n </div>\r\n <form\r\n class=\"kwikid-form show\"\r\n [formGroup]=\"this.formGroup\"\r\n >\r\n <ng-container *ngFor=\"let field of this.formFields; let i = index\">\r\n <ng-container [ngSwitch]=\"field.type\">\r\n <!-- Form Title -->\r\n <ng-container *ngSwitchCase=\"'title'\">\r\n <div\r\n class=\"title\"\r\n [class.hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <div>\r\n {{ field.label }}\r\n </div>\r\n <kwikui-button\r\n *ngIf=\"field?.reset\"\r\n appearance=\"whiteblock\"\r\n size=\"s\"\r\n label=\"Reset\"\r\n (onClick)=\"this.handleOnClickResetFormFields($event, field)\"\r\n ></kwikui-button>\r\n </div>\r\n </ng-container>\r\n <!-- Input Text -->\r\n <ng-container *ngSwitchCase=\"'text'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input\r\n [case]=\"field?.properties?.case\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [type]=\"'text'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Checkbox -->\r\n <ng-container *ngSwitchCase=\"'checkbox'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-checkbox-block\r\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.properties?.placeholder\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size ?? 'l'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-checkbox-block\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-number\r\n [decimal]=\"field?.properties?.decimal\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [postfix]=\"field?.properties?.postfix ?? ''\"\r\n [precision]=\"field?.properties?.precision\"\r\n [prefix]=\"field?.properties?.prefix ?? ''\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-number\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-date\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-date>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Phone -->\r\n <ng-container *ngSwitchCase=\"'phone'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-phone\r\n [countryCode]=\"field?.properties?.countryCode\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [phoneMaskAfterCountryCode]=\"\r\n field?.properties?.phoneMaskAfterCountryCode\r\n \"\r\n [placeholder]=\"field?.placeholder\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-phone>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Radio -->\r\n <ng-container *ngSwitchCase=\"'radio'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <label\r\n [tuiLabel]=\"labelTemplate\"\r\n style=\"min-height: auto\"\r\n >\r\n <kwikui-radio-list\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [items]=\"field?.options\"\r\n [label]=\"field?.label\"\r\n [orientation]=\"field?.properties?.orientation\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-radio-list>\r\n </label>\r\n <ng-template #labelTemplate>\r\n <p\r\n class=\"tui-space_bottom-2\"\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <b>\r\n {{ field.label }}\r\n <span *ngIf=\"field.validators?.required\"></span>\r\n </b>\r\n </p>\r\n </ng-template>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Dropdown -->\r\n <ng-container *ngSwitchCase=\"'dropdown-with-search'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-select-combobox\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [options]=\"field.options\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-select-combobox>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- API Call -->\r\n <ng-container *ngSwitchCase=\"'api-call'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-button-api-call\r\n [apiStatus]=\"field?.api?.status?.value\"\r\n [class]=\"field?.class\"\r\n [disabled]=\"field?.disabled\"\r\n [id]=\"field.key\"\r\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\r\n [showLoader]=\"field?.disabled === 'loading'\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: fit-content\"\r\n (onClick)=\"this.handleOnClickApiCall($event)\"\r\n ></kwikui-button-api-call>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Mobile OTP -->\r\n <ng-container *ngSwitchCase=\"'otp'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-otp\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [mask]=\"field?.properties?.mask\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-otp>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Aadhaar Number -->\r\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-aadhaar\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-aadhaar>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div class=\"kwikid-form-buttons\">\r\n <kwikui-button\r\n *ngIf=\"this.isMobileView\"\r\n [disabled]=\"viewFormsButton.disabled\"\r\n id=\"\"\r\n label=\"View Forms\"\r\n [showLoader]=\"viewFormsButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"secondary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n [shape]=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickViewForms($event)\"\r\n ></kwikui-button>\r\n <kwikui-button\r\n [disabled]=\"saveFormButton.disabled\"\r\n id=\"\"\r\n label=\"Save\"\r\n [showLoader]=\"saveFormButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n [shape]=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickSaveForm($event)\"\r\n ></kwikui-button>\r\n </div>\r\n</div>\r\n<div\r\n class=\"kwikid-form-container-loading\"\r\n *ngIf=\"this.loading\"\r\n>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n</div>\r\n<tui-push\r\n id=\"field-error-notification\"\r\n *tuiPush=\"showErrorNotification\"\r\n heading=\"Missing/Incorrect Fields!\"\r\n type=\"Error\"\r\n (close)=\"toggleErrorNotification(false)\"\r\n>\r\n <tui-svg\r\n src=\"tuiIconCancel\"\r\n style=\"color: #fff !important\"\r\n >\r\n </tui-svg>\r\n</tui-push>\r\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}.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;grid-row-gap:1rem;row-gap:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-column-gap:10px;column-gap:10px}.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;grid-row-gap:.5rem;row-gap:.5rem;padding:1rem}#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:1em}.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;grid-gap:.5rem;gap:.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;grid-row-gap:1rem;row-gap:1rem;padding: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}\n"], components: [{ type: i2.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i2.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["messages", "id"] }, { type: i2.KwikUICheckboxBlockComponent, selector: "kwikui-checkbox-block", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "contentAlign", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "max", "prefix", "postfix", "precision", "decimal", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "max", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "countryCode", "phoneMaskAfterCountryCode", "removeCountryCodeFromValue", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i3.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i2.KwikUIRadioListComponent, selector: "kwikui-radio-list", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "orientation", "items", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUISelectComboboxComponent, selector: "kwikui-select-combobox", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "options", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "shape", "size", "apiStatus"], outputs: ["onClick"] }, { type: i2.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i4.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "timestamp"], outputs: ["close"] }, { type: i3.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i4.TuiPushDirective, selector: "tui-push" }] });
|
|
2015
1923
|
__decorate([
|
|
2016
|
-
|
|
1924
|
+
logMethod
|
|
2017
1925
|
], KwikIDFormViewComponent.prototype, "ngOnInit", null);
|
|
2018
1926
|
__decorate([
|
|
2019
|
-
|
|
1927
|
+
logMethod
|
|
2020
1928
|
], KwikIDFormViewComponent.prototype, "ngAfterViewInit", null);
|
|
2021
1929
|
__decorate([
|
|
2022
|
-
|
|
1930
|
+
logMethod
|
|
2023
1931
|
], KwikIDFormViewComponent.prototype, "ngOnChanges", null);
|
|
2024
1932
|
__decorate([
|
|
2025
|
-
|
|
1933
|
+
logMethod
|
|
2026
1934
|
], KwikIDFormViewComponent.prototype, "initFormConfig", null);
|
|
2027
1935
|
__decorate([
|
|
2028
|
-
|
|
1936
|
+
logMethod
|
|
2029
1937
|
], KwikIDFormViewComponent.prototype, "setFormFieldsFromFormConfig", null);
|
|
2030
1938
|
__decorate([
|
|
2031
|
-
|
|
1939
|
+
logMethod
|
|
2032
1940
|
], KwikIDFormViewComponent.prototype, "setFormFieldGroupsFromFormConfig", null);
|
|
2033
1941
|
__decorate([
|
|
2034
|
-
|
|
1942
|
+
logMethod
|
|
2035
1943
|
], KwikIDFormViewComponent.prototype, "setFormDataFromAllFormsData", null);
|
|
2036
1944
|
__decorate([
|
|
2037
|
-
|
|
1945
|
+
logMethod
|
|
2038
1946
|
], KwikIDFormViewComponent.prototype, "handleConnectedElementFieldGroupActions", null);
|
|
2039
1947
|
__decorate([
|
|
2040
|
-
|
|
1948
|
+
logMethod
|
|
2041
1949
|
], KwikIDFormViewComponent.prototype, "handleConnectedElementFieldGroup", null);
|
|
2042
1950
|
__decorate([
|
|
2043
|
-
|
|
1951
|
+
logMethod
|
|
2044
1952
|
], KwikIDFormViewComponent.prototype, "handleConnectedElementFieldActions", null);
|
|
2045
1953
|
__decorate([
|
|
2046
|
-
|
|
1954
|
+
logMethod
|
|
2047
1955
|
], KwikIDFormViewComponent.prototype, "handleConnectedElementFields", null);
|
|
2048
1956
|
__decorate([
|
|
2049
|
-
|
|
1957
|
+
logMethod
|
|
2050
1958
|
], KwikIDFormViewComponent.prototype, "handleConnectedElements", null);
|
|
2051
1959
|
__decorate([
|
|
2052
|
-
|
|
1960
|
+
logMethod
|
|
2053
1961
|
], KwikIDFormViewComponent.prototype, "handleGetKeyValue", null);
|
|
2054
1962
|
__decorate([
|
|
2055
|
-
|
|
1963
|
+
logMethod
|
|
2056
1964
|
], KwikIDFormViewComponent.prototype, "handleOnClickResetFormFields", null);
|
|
2057
1965
|
__decorate([
|
|
2058
|
-
|
|
1966
|
+
logMethod
|
|
2059
1967
|
], KwikIDFormViewComponent.prototype, "handleOnClickApiCall", null);
|
|
2060
1968
|
__decorate([
|
|
2061
|
-
|
|
1969
|
+
logMethod
|
|
2062
1970
|
], KwikIDFormViewComponent.prototype, "handleOnClickViewForms", null);
|
|
2063
1971
|
__decorate([
|
|
2064
|
-
|
|
1972
|
+
logMethod
|
|
2065
1973
|
], KwikIDFormViewComponent.prototype, "handleOnClickSaveForm", null);
|
|
2066
1974
|
__decorate([
|
|
2067
|
-
|
|
1975
|
+
logMethod
|
|
2068
1976
|
], KwikIDFormViewComponent.prototype, "toggleErrorNotification", null);
|
|
2069
1977
|
__decorate([
|
|
2070
|
-
|
|
1978
|
+
logMethod
|
|
2071
1979
|
], KwikIDFormViewComponent.prototype, "fieldHide", null);
|
|
2072
1980
|
__decorate([
|
|
2073
|
-
|
|
1981
|
+
logMethod
|
|
2074
1982
|
], KwikIDFormViewComponent.prototype, "fieldGroupHide", null);
|
|
2075
1983
|
__decorate([
|
|
2076
|
-
|
|
1984
|
+
logMethod
|
|
2077
1985
|
], KwikIDFormViewComponent.prototype, "fieldShow", null);
|
|
2078
1986
|
__decorate([
|
|
2079
|
-
|
|
1987
|
+
logMethod
|
|
2080
1988
|
], KwikIDFormViewComponent.prototype, "fieldGroupShow", null);
|
|
2081
1989
|
__decorate([
|
|
2082
|
-
|
|
1990
|
+
logMethod
|
|
2083
1991
|
], KwikIDFormViewComponent.prototype, "fieldDisable", null);
|
|
2084
1992
|
__decorate([
|
|
2085
|
-
|
|
1993
|
+
logMethod
|
|
2086
1994
|
], KwikIDFormViewComponent.prototype, "fieldGroupDisable", null);
|
|
2087
1995
|
__decorate([
|
|
2088
|
-
|
|
1996
|
+
logMethod
|
|
2089
1997
|
], KwikIDFormViewComponent.prototype, "fieldEnable", null);
|
|
2090
1998
|
__decorate([
|
|
2091
|
-
|
|
1999
|
+
logMethod
|
|
2092
2000
|
], KwikIDFormViewComponent.prototype, "fieldGroupEnable", null);
|
|
2093
2001
|
__decorate([
|
|
2094
|
-
|
|
2002
|
+
logMethod
|
|
2095
2003
|
], KwikIDFormViewComponent.prototype, "fieldReset", null);
|
|
2096
2004
|
__decorate([
|
|
2097
|
-
|
|
2005
|
+
logMethod
|
|
2098
2006
|
], KwikIDFormViewComponent.prototype, "fieldErrorShow", null);
|
|
2099
2007
|
__decorate([
|
|
2100
|
-
|
|
2008
|
+
logMethod
|
|
2101
2009
|
], KwikIDFormViewComponent.prototype, "fieldErrorHide", null);
|
|
2102
2010
|
__decorate([
|
|
2103
|
-
|
|
2011
|
+
logMethod
|
|
2104
2012
|
], KwikIDFormViewComponent.prototype, "fieldMessageShow", null);
|
|
2105
2013
|
__decorate([
|
|
2106
|
-
|
|
2014
|
+
logMethod
|
|
2107
2015
|
], KwikIDFormViewComponent.prototype, "fieldMessageHide", null);
|
|
2108
2016
|
__decorate([
|
|
2109
|
-
|
|
2017
|
+
logMethod
|
|
2110
2018
|
], KwikIDFormViewComponent.prototype, "setObjectValue", null);
|
|
2111
2019
|
__decorate([
|
|
2112
|
-
|
|
2020
|
+
logMethod
|
|
2113
2021
|
], KwikIDFormViewComponent.prototype, "patchFieldControlValue", null);
|
|
2114
2022
|
__decorate([
|
|
2115
|
-
|
|
2023
|
+
logMethod
|
|
2116
2024
|
], KwikIDFormViewComponent.prototype, "isFieldValid", null);
|
|
2117
2025
|
__decorate([
|
|
2118
|
-
|
|
2026
|
+
logMethod
|
|
2119
2027
|
], KwikIDFormViewComponent.prototype, "isFieldEnabled", null);
|
|
2120
2028
|
__decorate([
|
|
2121
|
-
|
|
2029
|
+
logMethod
|
|
2122
2030
|
], KwikIDFormViewComponent.prototype, "getFormGroupRawValues", null);
|
|
2123
2031
|
__decorate([
|
|
2124
|
-
|
|
2032
|
+
logMethod
|
|
2125
2033
|
], KwikIDFormViewComponent.prototype, "handleFieldTypeSearchText", null);
|
|
2126
2034
|
__decorate([
|
|
2127
|
-
|
|
2035
|
+
logMethod
|
|
2128
2036
|
], KwikIDFormViewComponent.prototype, "takeActionOnFieldGroup", null);
|
|
2129
2037
|
__decorate([
|
|
2130
|
-
|
|
2038
|
+
logMethod
|
|
2131
2039
|
], KwikIDFormViewComponent.prototype, "takeAction", null);
|
|
2132
2040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDFormViewComponent, decorators: [{
|
|
2133
2041
|
type: Component,
|
|
@@ -2223,6 +2131,9 @@ class KwikIDFormsListComponent {
|
|
|
2223
2131
|
}
|
|
2224
2132
|
/** @nocollapse */ KwikIDFormsListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDFormsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2225
2133
|
/** @nocollapse */ KwikIDFormsListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: { showFormFields: "showFormFields", userConfig: "userConfig", formsList: "formsList", formsListCompleted: "formsListCompleted", isMobileView: "isMobileView" }, outputs: { onClickSetActiveForm: "onClickSetActiveForm", onClickHideFormsList: "onClickHideFormsList", onClickSubmitForms: "onClickSubmitForms" }, usesOnChanges: true, ngImport: i0, template: "<div id=\"sidebar-container\">\r\n <div id=\"sidebar\">\r\n <div ngClass=\"kwikid-form-header\">\r\n <div id=\"uf-header\">\r\n <div id=\"uf-header-logo-container\">\r\n <img\r\n id=\"uf-header-logo\"\r\n src=\"{{ this.userConfig.theme.clientLogo }}\"\r\n [ngClass]=\"'large-icon'\"\r\n />\r\n </div>\r\n </div>\r\n <hr />\r\n </div>\r\n <div id=\"uf-progress\">\r\n <div id=\"uf-progress-steps\">\r\n {{ this.formsListCompleted.length }} / {{ this.formsList.length }} Steps\r\n Completed\r\n </div>\r\n <kwikui-progress-segmented\r\n [max]=\"this.formsList.length\"\r\n size=\"m\"\r\n [value]=\"this.formsListCompleted.length\"\r\n ></kwikui-progress-segmented>\r\n </div>\r\n <div id=\"uf-sections-container\">\r\n <div\r\n *ngFor=\"let form of formsList; let i = index\"\r\n [class]=\"'uf-section-item'\"\r\n [class.completed]=\"form.status === 'completed' && !form.disabled\"\r\n [class.edit]=\"form.status === 'editable' && !form.disabled\"\r\n [class.locked]=\"form.status === 'locked' && form.disabled\"\r\n (click)=\"\r\n form.status === 'locked' && form.disabled\r\n ? undefined\r\n : handleOnClickSetActiveForm(form.key)\r\n \"\r\n >\r\n <div class=\"uf-form-section-card-title\">\r\n {{ form.title }}\r\n </div>\r\n <div class=\"uf-form-section-card-action\">\r\n <div\r\n *ngIf=\"form.status === 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img completed\"\r\n >\r\n <tui-svg src=\"tuiIconCheckLarge\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img edit\"\r\n >\r\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && form.disabled\"\r\n class=\"uf-form-section-card-action-img locked\"\r\n >\r\n <tui-svg src=\"tuiIconLock\"></tui-svg>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"submit-sidebar-btn-container\">\r\n <kwikui-button\r\n [disabled]=\"false\"\r\n id=\"\"\r\n label=\"Submit\"\r\n [showLoader]=\"false\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n [shape]=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"handleOnSubmitForms($event)\"\r\n ></kwikui-button>\r\n </div>\r\n </div>\r\n</div>\r\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}#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;grid-gap:1rem;gap:1rem;cursor:pointer;box-shadow:0 .1rem .5rem -.25rem gray;border-radius:.5rem;background-color:var(--tui-base-02)}.uf-section-item:hover{box-shadow:0 .2rem .75rem -.5rem #656565}#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;grid-gap:1rem;gap:1rem}#submit-sidebar-btn-container *{flex-grow:1}#uf-sections-container{display:flex;flex-direction:column;height:100%;grid-row-gap:20px;row-gap:20px;padding:1rem;overflow-y:auto}.uf-form-section-card{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:10px;column-gap:10px;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-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-action{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-action .uf-form-section-card-action-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-action-img.completed{background-color:#228b22;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.edit{background-color:#dc143c;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.locked{background-color:gray;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;grid-gap:.5rem;gap:.5rem}#uf-progress-steps{font-size:1em;text-align:right;color:#3d3d3d}.uf-form-section-card-title{font-size:1em;font-weight:bold;color:#121212}@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;grid-column-gap:10px;column-gap:10px;padding:10px 20px;width:100%;max-width:calc(400px + 50vw + 2rem);margin:0 auto;height:70px;z-index:1}#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;grid-row-gap:4px;row-gap:4px}#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"], components: [{ type: i2.KwikUIProgressSegmentedComponent, selector: "kwikui-progress-segmented", inputs: ["value", "max", "size", "colors"] }, { type: i3.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2134
|
+
__decorate([
|
|
2135
|
+
logMethod
|
|
2136
|
+
], KwikIDFormsListComponent.prototype, "ngOnChanges", null);
|
|
2226
2137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDFormsListComponent, decorators: [{
|
|
2227
2138
|
type: Component,
|
|
2228
2139
|
args: [{
|
|
@@ -2246,11 +2157,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2246
2157
|
type: Output
|
|
2247
2158
|
}], onClickSubmitForms: [{
|
|
2248
2159
|
type: Output
|
|
2249
|
-
}] } });
|
|
2160
|
+
}], ngOnChanges: [] } });
|
|
2250
2161
|
|
|
2251
2162
|
class Sources {
|
|
2252
|
-
constructor(userConfig) {
|
|
2163
|
+
constructor(userConfig, formsData) {
|
|
2253
2164
|
this._userConfig = userConfig;
|
|
2165
|
+
this._formsData = formsData;
|
|
2254
2166
|
}
|
|
2255
2167
|
get userConfig() {
|
|
2256
2168
|
return this._userConfig;
|
|
@@ -2258,6 +2170,12 @@ class Sources {
|
|
|
2258
2170
|
set userConfig(value) {
|
|
2259
2171
|
this._userConfig = value;
|
|
2260
2172
|
}
|
|
2173
|
+
get formsData() {
|
|
2174
|
+
return this._formsData;
|
|
2175
|
+
}
|
|
2176
|
+
set formsData(value) {
|
|
2177
|
+
this._formsData = value;
|
|
2178
|
+
}
|
|
2261
2179
|
getValueFromUserConfig(path) {
|
|
2262
2180
|
let value = "";
|
|
2263
2181
|
if (isNotEmpty(path)) {
|
|
@@ -2268,6 +2186,16 @@ class Sources {
|
|
|
2268
2186
|
}
|
|
2269
2187
|
return value;
|
|
2270
2188
|
}
|
|
2189
|
+
getValueFromFormsData(path) {
|
|
2190
|
+
let value = "";
|
|
2191
|
+
if (isNotEmpty(path)) {
|
|
2192
|
+
value = jpQueryWrapper(this._formsData, path);
|
|
2193
|
+
}
|
|
2194
|
+
else {
|
|
2195
|
+
value = setEmptyValue(this._formsData);
|
|
2196
|
+
}
|
|
2197
|
+
return value;
|
|
2198
|
+
}
|
|
2271
2199
|
getValueFromBrowserStorage(type, key) {
|
|
2272
2200
|
let value = "";
|
|
2273
2201
|
switch (type) {
|
|
@@ -2293,6 +2221,9 @@ class Sources {
|
|
|
2293
2221
|
case ESourceKey.USER_CONFIG:
|
|
2294
2222
|
value = this.getValueFromUserConfig(source.props.path);
|
|
2295
2223
|
break;
|
|
2224
|
+
case ESourceKey.ALL_FORMS_DATA:
|
|
2225
|
+
value = this.getValueFromFormsData(source.props.path);
|
|
2226
|
+
break;
|
|
2296
2227
|
case ESourceKey.BROWSER_STORAGE:
|
|
2297
2228
|
value = this.getValueFromBrowserStorage(source.props.browserStorage.type, source.props.browserStorage.key);
|
|
2298
2229
|
break;
|
|
@@ -2308,6 +2239,9 @@ class Sources {
|
|
|
2308
2239
|
setValueToUserConfig(path, value) {
|
|
2309
2240
|
this._userConfig = setValueToObject(this._userConfig, path, value);
|
|
2310
2241
|
}
|
|
2242
|
+
setValueToAllFormsData(path, value) {
|
|
2243
|
+
this._formsData = setValueToObject(this._formsData, path, value);
|
|
2244
|
+
}
|
|
2311
2245
|
setValueToBrowserStorage(type, key, value) {
|
|
2312
2246
|
switch (type) {
|
|
2313
2247
|
case EBrowserStorageType.LOCAL_STORAGE:
|
|
@@ -2326,6 +2260,9 @@ class Sources {
|
|
|
2326
2260
|
case ESourceKey.USER_CONFIG:
|
|
2327
2261
|
this.setValueToUserConfig(source.props.path, value);
|
|
2328
2262
|
break;
|
|
2263
|
+
case ESourceKey.ALL_FORMS_DATA:
|
|
2264
|
+
this.setValueToAllFormsData(source.props.path, value);
|
|
2265
|
+
break;
|
|
2329
2266
|
case ESourceKey.BROWSER_STORAGE:
|
|
2330
2267
|
yield this.setValueToBrowserStorage(source.props.browserStorage.type, source.props.browserStorage.key, value);
|
|
2331
2268
|
break;
|
|
@@ -2377,9 +2314,10 @@ class Condition {
|
|
|
2377
2314
|
}
|
|
2378
2315
|
|
|
2379
2316
|
class Actions {
|
|
2380
|
-
constructor(action, ruleMapping, userConfig, takeAction) {
|
|
2317
|
+
constructor(action, ruleMapping, userConfig, formsData, takeAction) {
|
|
2381
2318
|
this._action = action;
|
|
2382
2319
|
this._userConfig = userConfig;
|
|
2320
|
+
this._formsData = formsData;
|
|
2383
2321
|
this._ruleMapping = ruleMapping;
|
|
2384
2322
|
this._takeAction = takeAction;
|
|
2385
2323
|
}
|
|
@@ -2388,21 +2326,22 @@ class Actions {
|
|
|
2388
2326
|
const condition = new Condition(this._action.condition, this._ruleMapping);
|
|
2389
2327
|
const actionSuccess = condition.evaluate();
|
|
2390
2328
|
if (actionSuccess) {
|
|
2391
|
-
return this._takeAction(this._action, this._userConfig);
|
|
2329
|
+
return this._takeAction(this._action, this._userConfig, this._formsData);
|
|
2392
2330
|
}
|
|
2393
2331
|
});
|
|
2394
2332
|
}
|
|
2395
2333
|
}
|
|
2396
2334
|
|
|
2397
2335
|
class Rules {
|
|
2398
|
-
constructor(
|
|
2336
|
+
constructor(userConfig, formsData, rules) {
|
|
2399
2337
|
this._userConfig = userConfig;
|
|
2338
|
+
this._formsData = formsData;
|
|
2400
2339
|
this._rules = rules;
|
|
2401
2340
|
}
|
|
2402
2341
|
evaluate(rule) {
|
|
2403
2342
|
let ruleType = rule.key;
|
|
2404
2343
|
let ruleEvaluationStatus = false;
|
|
2405
|
-
const source = new Sources(this._userConfig);
|
|
2344
|
+
const source = new Sources(this._userConfig, this._formsData);
|
|
2406
2345
|
switch (ruleType) {
|
|
2407
2346
|
case ERuleKey.OBJECT_PATH_EXISTS:
|
|
2408
2347
|
const ruleObjectPathExists = rule;
|
|
@@ -2453,8 +2392,9 @@ class Rules {
|
|
|
2453
2392
|
}
|
|
2454
2393
|
|
|
2455
2394
|
class Validations {
|
|
2456
|
-
constructor(userConfig, takeAction) {
|
|
2395
|
+
constructor(userConfig, formsData, takeAction) {
|
|
2457
2396
|
this._userConfig = userConfig;
|
|
2397
|
+
this._formsData = formsData;
|
|
2458
2398
|
this._takeAction = takeAction;
|
|
2459
2399
|
}
|
|
2460
2400
|
get userConfig() {
|
|
@@ -2463,17 +2403,23 @@ class Validations {
|
|
|
2463
2403
|
set userConfig(value) {
|
|
2464
2404
|
this._userConfig = value;
|
|
2465
2405
|
}
|
|
2406
|
+
get formsData() {
|
|
2407
|
+
return this._formsData;
|
|
2408
|
+
}
|
|
2409
|
+
set formsData(value) {
|
|
2410
|
+
this._formsData = value;
|
|
2411
|
+
}
|
|
2466
2412
|
validateField() {
|
|
2467
2413
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2468
2414
|
const validations = this._userConfig.userFormFieldsConfig.validation;
|
|
2469
2415
|
const triggers = validations === null || validations === void 0 ? void 0 : validations.triggers;
|
|
2470
2416
|
const rules = validations.rules;
|
|
2471
2417
|
const actions = validations.actions;
|
|
2472
|
-
const rulesMapping = new Rules(
|
|
2418
|
+
const rulesMapping = new Rules(this._userConfig, this._formsData, rules).mapping();
|
|
2473
2419
|
for (let action of actions) {
|
|
2474
2420
|
const conditionEvaluation = new Condition(action.condition, rulesMapping).evaluate();
|
|
2475
2421
|
if (conditionEvaluation) {
|
|
2476
|
-
const actions = new Actions(action, rulesMapping, this._userConfig, this._takeAction);
|
|
2422
|
+
const actions = new Actions(action, rulesMapping, this._userConfig, this._formsData, this._takeAction);
|
|
2477
2423
|
yield actions.execute();
|
|
2478
2424
|
}
|
|
2479
2425
|
}
|
|
@@ -2555,6 +2501,7 @@ class Converter {
|
|
|
2555
2501
|
new Date().getDate() // Day - 31
|
|
2556
2502
|
));
|
|
2557
2503
|
}
|
|
2504
|
+
field.properties = this.setMissingFieldKeyValue(field.properties, "placeholder", "");
|
|
2558
2505
|
field = this.setFieldKeyValue(field, "hidden", false);
|
|
2559
2506
|
return field;
|
|
2560
2507
|
};
|
|
@@ -3056,7 +3003,7 @@ class Converter {
|
|
|
3056
3003
|
}
|
|
3057
3004
|
}
|
|
3058
3005
|
__decorate([
|
|
3059
|
-
|
|
3006
|
+
logMethod
|
|
3060
3007
|
], Converter.prototype, "convertFormConfig", null);
|
|
3061
3008
|
|
|
3062
3009
|
class KwikIDRendererService {
|
|
@@ -3108,6 +3055,7 @@ class KwikIDRendererService {
|
|
|
3108
3055
|
markFormInFormsListAsCompleted(formsList, formsListCompleted) {
|
|
3109
3056
|
for (let form of formsList) {
|
|
3110
3057
|
if (formsListCompleted.includes(form.key)) {
|
|
3058
|
+
console.log(formsListCompleted.includes(form.key));
|
|
3111
3059
|
form = setValueToObject(form, "status", "completed");
|
|
3112
3060
|
form = setValueToObject(form, "disabled", false);
|
|
3113
3061
|
}
|
|
@@ -3165,6 +3113,7 @@ class KwikIDRendererService {
|
|
|
3165
3113
|
* this particular User Form only has to LOCAL METHOD Variable.
|
|
3166
3114
|
*/
|
|
3167
3115
|
const currentUserFormAllFormsData = this.filterAllFormsData(this.allFormsData, formsList);
|
|
3116
|
+
console.log(JSON.parse(JSON.stringify(formsList)));
|
|
3168
3117
|
formsListCompleted = this.findCompletedFormsList(currentUserFormAllFormsData);
|
|
3169
3118
|
formsList = this.markFormInFormsListAsCompleted(formsList, formsListCompleted);
|
|
3170
3119
|
formsList = this.markFormInFormsListAsDisabled(formsList, formsListCompleted);
|
|
@@ -3178,12 +3127,51 @@ class KwikIDRendererService {
|
|
|
3178
3127
|
}
|
|
3179
3128
|
/** @nocollapse */ KwikIDRendererService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDRendererService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3180
3129
|
/** @nocollapse */ KwikIDRendererService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDRendererService, providedIn: "root" });
|
|
3130
|
+
__decorate([
|
|
3131
|
+
logMethod
|
|
3132
|
+
], KwikIDRendererService.prototype, "setFormsList", null);
|
|
3133
|
+
__decorate([
|
|
3134
|
+
logMethod
|
|
3135
|
+
], KwikIDRendererService.prototype, "setFormsListCompleted", null);
|
|
3136
|
+
__decorate([
|
|
3137
|
+
logMethod
|
|
3138
|
+
], KwikIDRendererService.prototype, "setAllFormsData", null);
|
|
3139
|
+
__decorate([
|
|
3140
|
+
logMethod
|
|
3141
|
+
], KwikIDRendererService.prototype, "setActiveFormConfig", null);
|
|
3142
|
+
__decorate([
|
|
3143
|
+
logMethod
|
|
3144
|
+
], KwikIDRendererService.prototype, "setActiveFormFields", null);
|
|
3145
|
+
__decorate([
|
|
3146
|
+
logMethod
|
|
3147
|
+
], KwikIDRendererService.prototype, "setActiveFormData", null);
|
|
3148
|
+
__decorate([
|
|
3149
|
+
logMethod
|
|
3150
|
+
], KwikIDRendererService.prototype, "findActiveFormConfig", null);
|
|
3151
|
+
__decorate([
|
|
3152
|
+
logMethod
|
|
3153
|
+
], KwikIDRendererService.prototype, "findCompletedFormsList", null);
|
|
3154
|
+
__decorate([
|
|
3155
|
+
logMethod
|
|
3156
|
+
], KwikIDRendererService.prototype, "markFormInFormsListAsCompleted", null);
|
|
3157
|
+
__decorate([
|
|
3158
|
+
logMethod
|
|
3159
|
+
], KwikIDRendererService.prototype, "markFormInFormsListAsDisabled", null);
|
|
3160
|
+
__decorate([
|
|
3161
|
+
logMethod
|
|
3162
|
+
], KwikIDRendererService.prototype, "assignSequenceNoToForm", null);
|
|
3163
|
+
__decorate([
|
|
3164
|
+
logMethod
|
|
3165
|
+
], KwikIDRendererService.prototype, "filterAllFormsData", null);
|
|
3166
|
+
__decorate([
|
|
3167
|
+
logMethod
|
|
3168
|
+
], KwikIDRendererService.prototype, "updateFormsList", null);
|
|
3181
3169
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDRendererService, decorators: [{
|
|
3182
3170
|
type: Injectable,
|
|
3183
3171
|
args: [{
|
|
3184
3172
|
providedIn: "root"
|
|
3185
3173
|
}]
|
|
3186
|
-
}], ctorParameters: function () { return []; } });
|
|
3174
|
+
}], ctorParameters: function () { return []; }, propDecorators: { setFormsList: [], setFormsListCompleted: [], setAllFormsData: [], setActiveFormConfig: [], setActiveFormFields: [], setActiveFormData: [], findActiveFormConfig: [], findCompletedFormsList: [], markFormInFormsListAsCompleted: [], markFormInFormsListAsDisabled: [], assignSequenceNoToForm: [], filterAllFormsData: [], updateFormsList: [] } });
|
|
3187
3175
|
|
|
3188
3176
|
class KwikIDFormsRendererComponent {
|
|
3189
3177
|
constructor(rendererService, hostElement) {
|
|
@@ -3255,6 +3243,7 @@ class KwikIDFormsRendererComponent {
|
|
|
3255
3243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3256
3244
|
this.loader = true;
|
|
3257
3245
|
this.rendererService.setAllFormsData(this.formsData);
|
|
3246
|
+
console.log(JSON.parse(JSON.stringify(this.rendererService.formsList)));
|
|
3258
3247
|
this.rendererService.updateFormsList();
|
|
3259
3248
|
this.handleResize(this.rendererService.formsList);
|
|
3260
3249
|
if (this.rendererService.formsList.length !==
|
|
@@ -3319,7 +3308,7 @@ class KwikIDFormsRendererComponent {
|
|
|
3319
3308
|
handleOnClickSubmitForms(e) {
|
|
3320
3309
|
console.log(e);
|
|
3321
3310
|
if (this.userConfig.userFormFieldsConfig.validation) {
|
|
3322
|
-
const validations = new Validations(this.userConfig, this.takeAction.bind(this));
|
|
3311
|
+
const validations = new Validations(this.userConfig, this.formsData, this.takeAction.bind(this));
|
|
3323
3312
|
(() => __awaiter(this, void 0, void 0, function* () {
|
|
3324
3313
|
yield validations.validateField();
|
|
3325
3314
|
if (this.userConfig.userFormFieldsConfig.status === "completed") {
|
|
@@ -3363,14 +3352,15 @@ class KwikIDFormsRendererComponent {
|
|
|
3363
3352
|
toggleErrorNotification(show) {
|
|
3364
3353
|
this.showErrorNotification = show;
|
|
3365
3354
|
}
|
|
3366
|
-
takeAction(action, userConfig) {
|
|
3355
|
+
takeAction(action, userConfig, formsData) {
|
|
3367
3356
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3368
3357
|
switch (action.key) {
|
|
3369
3358
|
case EActionKey.SET_VALUE:
|
|
3370
|
-
const sources = new Sources(userConfig);
|
|
3359
|
+
const sources = new Sources(userConfig, formsData);
|
|
3371
3360
|
const sourceValue = yield sources.getValueFromSource(action.props.value.source);
|
|
3372
3361
|
sources.setValueToSource(action.props.value.destination, sourceValue);
|
|
3373
3362
|
this.userConfig = sources.userConfig;
|
|
3363
|
+
this.formsData = sources.formsData;
|
|
3374
3364
|
break;
|
|
3375
3365
|
default:
|
|
3376
3366
|
break;
|
|
@@ -3390,6 +3380,9 @@ class KwikIDFormsRendererComponent {
|
|
|
3390
3380
|
])
|
|
3391
3381
|
])
|
|
3392
3382
|
] });
|
|
3383
|
+
__decorate([
|
|
3384
|
+
logMethod
|
|
3385
|
+
], KwikIDFormsRendererComponent.prototype, "handleOnClickSetActiveForm", null);
|
|
3393
3386
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KwikIDFormsRendererComponent, decorators: [{
|
|
3394
3387
|
type: Component,
|
|
3395
3388
|
args: [{
|
|
@@ -3424,7 +3417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3424
3417
|
type: Output
|
|
3425
3418
|
}], onClickApiCall: [{
|
|
3426
3419
|
type: Output
|
|
3427
|
-
}] } });
|
|
3420
|
+
}], handleOnClickSetActiveForm: [] } });
|
|
3428
3421
|
|
|
3429
3422
|
class KwikIDFormBuilderModule {
|
|
3430
3423
|
}
|