@openmrs/ngx-formentry 3.0.1-pre.89 → 3.0.1-pre.94
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/openmrs-ngx-formentry.umd.js +189 -181
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/esm2015/form-entry/directives/historical-value.directive.js +9 -13
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +7 -7
- package/esm2015/form-entry/helpers/js-expression-helper.js +14 -2
- package/fesm2015/openmrs-ngx-formentry.js +115 -107
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/form-entry/directives/historical-value.directive.d.ts +2 -2
- package/form-entry/helpers/js-expression-helper.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('moment'), require('lodash'), require('@ngx-translate/core'), require('@angular-extensions/elements'), require('ngx-file-uploader-openmrs'), require('@angular/platform-browser'), require('rxjs/operators'), require('@ng-select/ng-select'), require('@angular/cdk/portal'), require('@angular/cdk/overlay'), require('@angular/cdk/keycodes'), require('@angular/cdk/coercion'), require('@angular/cdk/a11y'), require('@angular/animations'), require('ngx-webcam'), require('@angular/cdk/platform')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@openmrs/ngx-formentry', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', 'moment', 'lodash', '@ngx-translate/core', '@angular-extensions/elements', 'ngx-file-uploader-openmrs', '@angular/platform-browser', 'rxjs/operators', '@ng-select/ng-select', '@angular/cdk/portal', '@angular/cdk/overlay', '@angular/cdk/keycodes', '@angular/cdk/coercion', '@angular/cdk/a11y', '@angular/animations', 'ngx-webcam', '@angular/cdk/platform'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.openmrs = global.openmrs || {}, global.openmrs["ngx-formentry"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.moment, global.lodash, global.i4, global["@angular-extensions/elements"], global["ngx-file-uploader-openmrs"], global.ng.platformBrowser, global.rxjs.operators, global["@ng-select/ng-select"], global.ng.cdk.portal, global.ng.cdk.overlay, global.ng.cdk.keycodes, global.ng.cdk.coercion, global.ng.cdk.a11y, global.ng.animations, global["ngx-webcam"], global.ng.cdk.platform));
|
|
5
|
-
})(this, (function (exports, i0, i1,
|
|
5
|
+
})(this, (function (exports, i0, i1, i21, rxjs, moment, _, i4, i2, i1$2, i1$1, operators, i1$3, i2$1, i1$6, keycodes, coercion, i1$4, i1$5, ngxWebcam, i1$7) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
28
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
var
|
|
29
|
+
var i21__namespace = /*#__PURE__*/_interopNamespace(i21);
|
|
30
30
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
31
31
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
32
32
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
configurable: true
|
|
607
607
|
});
|
|
608
608
|
ControlRelations.prototype.addRelatedControls = function (relatedTo) {
|
|
609
|
-
if (relatedTo instanceof
|
|
609
|
+
if (relatedTo instanceof i21.AbstractControl) {
|
|
610
610
|
this.relations.push(new ControlRelation(this._relationFor, relatedTo));
|
|
611
611
|
}
|
|
612
612
|
if (relatedTo instanceof Array) {
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
_super.prototype.setValue.call(this, value);
|
|
1416
1416
|
};
|
|
1417
1417
|
return AfeFormControl;
|
|
1418
|
-
}(
|
|
1418
|
+
}(i21.FormControl));
|
|
1419
1419
|
|
|
1420
1420
|
var AfeFormGroup = /** @class */ (function (_super) {
|
|
1421
1421
|
__extends(AfeFormGroup, _super);
|
|
@@ -1478,7 +1478,7 @@
|
|
|
1478
1478
|
_super.prototype.setValue.call(this, value);
|
|
1479
1479
|
};
|
|
1480
1480
|
return AfeFormGroup;
|
|
1481
|
-
}(
|
|
1481
|
+
}(i21.FormGroup));
|
|
1482
1482
|
|
|
1483
1483
|
var AfeFormArray = /** @class */ (function (_super) {
|
|
1484
1484
|
__extends(AfeFormArray, _super);
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
_super.prototype.setValue.call(this, value);
|
|
1570
1570
|
};
|
|
1571
1571
|
return AfeFormArray;
|
|
1572
|
-
}(
|
|
1572
|
+
}(i21.FormArray));
|
|
1573
1573
|
|
|
1574
1574
|
exports.AfeControlType = void 0;
|
|
1575
1575
|
(function (AfeControlType) {
|
|
@@ -2086,6 +2086,17 @@
|
|
|
2086
2086
|
return array.indexOf(members) !== -1;
|
|
2087
2087
|
}
|
|
2088
2088
|
};
|
|
2089
|
+
/*
|
|
2090
|
+
TODO make it possible to bootstrap expressions without control relations to make alternateControl optional as at the moment it required
|
|
2091
|
+
if no other expression on the control as a relationship to another control*/
|
|
2092
|
+
JsExpressionHelper.prototype.extractObsValue = function (rawEncounter, uuid, alternateControl) {
|
|
2093
|
+
var findObs = function (obs, uuid) {
|
|
2094
|
+
var result;
|
|
2095
|
+
obs === null || obs === void 0 ? void 0 : obs.some(function (o) { var _a; return result = ((_a = o === null || o === void 0 ? void 0 : o.concept) === null || _a === void 0 ? void 0 : _a.uuid) === uuid ? o : findObs(o.children || [], uuid); });
|
|
2096
|
+
return result;
|
|
2097
|
+
};
|
|
2098
|
+
return findObs(rawEncounter.obs, uuid).value || alternateControl;
|
|
2099
|
+
};
|
|
2089
2100
|
Object.defineProperty(JsExpressionHelper.prototype, "helperFunctions", {
|
|
2090
2101
|
get: function () {
|
|
2091
2102
|
var helper = this;
|
|
@@ -2098,7 +2109,8 @@
|
|
|
2098
2109
|
calcSouthEastAsiaNonLabCVDRisk: helper.calcSouthEastAsiaNonLabCVDRisk,
|
|
2099
2110
|
isEmpty: helper.isEmpty,
|
|
2100
2111
|
arrayContains: helper.arrayContains,
|
|
2101
|
-
extractRepeatingGroupValues: helper.extractRepeatingGroupValues
|
|
2112
|
+
extractRepeatingGroupValues: helper.extractRepeatingGroupValues,
|
|
2113
|
+
extractObsValue: helper.extractObsValue
|
|
2102
2114
|
};
|
|
2103
2115
|
},
|
|
2104
2116
|
enumerable: false,
|
|
@@ -2491,14 +2503,14 @@
|
|
|
2491
2503
|
});
|
|
2492
2504
|
Object.defineProperty(ValidationFactory.prototype, "minLengthValidator", {
|
|
2493
2505
|
get: function () {
|
|
2494
|
-
return
|
|
2506
|
+
return i21.Validators.minLength;
|
|
2495
2507
|
},
|
|
2496
2508
|
enumerable: false,
|
|
2497
2509
|
configurable: true
|
|
2498
2510
|
});
|
|
2499
2511
|
Object.defineProperty(ValidationFactory.prototype, "maxLengthValidator", {
|
|
2500
2512
|
get: function () {
|
|
2501
|
-
return
|
|
2513
|
+
return i21.Validators.maxLength;
|
|
2502
2514
|
},
|
|
2503
2515
|
enumerable: false,
|
|
2504
2516
|
configurable: true
|
|
@@ -3002,7 +3014,7 @@
|
|
|
3002
3014
|
CustomControlWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3003
3015
|
CustomControlWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: { question: "question" }, providers: [
|
|
3004
3016
|
{
|
|
3005
|
-
provide:
|
|
3017
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3006
3018
|
multi: true,
|
|
3007
3019
|
useExisting: i0.forwardRef(function () { return CustomControlWrapperComponent; })
|
|
3008
3020
|
}
|
|
@@ -3014,7 +3026,7 @@
|
|
|
3014
3026
|
templateUrl: 'custom-control-wrapper.component.html',
|
|
3015
3027
|
providers: [
|
|
3016
3028
|
{
|
|
3017
|
-
provide:
|
|
3029
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3018
3030
|
multi: true,
|
|
3019
3031
|
useExisting: i0.forwardRef(function () { return CustomControlWrapperComponent; })
|
|
3020
3032
|
}
|
|
@@ -3155,7 +3167,7 @@
|
|
|
3155
3167
|
SelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3156
3168
|
SelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SelectComponent, selector: "ofe-select", inputs: { display: "display", label: "label", helperText: "helperText", invalidText: "invalidText", warn: "warn", warnText: "warnText", id: "id", size: "size", disabled: "disabled", skeleton: "skeleton", invalid: "invalid", theme: "theme", ariaLabel: "ariaLabel", value: "value" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "focusout": "focusOut()" } }, providers: [
|
|
3157
3169
|
{
|
|
3158
|
-
provide:
|
|
3170
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3159
3171
|
useExisting: SelectComponent,
|
|
3160
3172
|
multi: true
|
|
3161
3173
|
}
|
|
@@ -3168,7 +3180,7 @@
|
|
|
3168
3180
|
styleUrls: ['./select.component.scss'],
|
|
3169
3181
|
providers: [
|
|
3170
3182
|
{
|
|
3171
|
-
provide:
|
|
3183
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3172
3184
|
useExisting: SelectComponent,
|
|
3173
3185
|
multi: true
|
|
3174
3186
|
}
|
|
@@ -3412,11 +3424,11 @@
|
|
|
3412
3424
|
FileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileUploadComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3413
3425
|
FileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileUploadComponent, selector: "ofe-file-upload", inputs: { dataSource: "dataSource" }, providers: [
|
|
3414
3426
|
{
|
|
3415
|
-
provide:
|
|
3427
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3416
3428
|
useExisting: i0.forwardRef(function () { return FileUploadComponent; }),
|
|
3417
3429
|
multi: true
|
|
3418
3430
|
}
|
|
3419
|
-
], ngImport: i0__namespace, template: "<lib-ngx-file-uploader\n [srcUrl]=\"pdfUrl\"\n [formEntry]=\"formEntryMode\"\n [(ngModel)]=\"fileUuid\"\n (_onClear)=\"clearValue()\"\n (uploadData)=\"onFileChange($event)\"\n>\n</lib-ngx-file-uploader>\n<div *ngIf=\"fileUuid\">\n <img\n *ngIf=\"!pdfUploaded\"\n class=\"img-responsive\"\n [src]=\"fileUuid | secure: this.dataSource.fetchFile\"\n alt=\"\"\n />\n</div>\n", styles: ["\n img {\n margin-left: auto;\n margin-right: auto;\n display: block;\n }\n "], components: [{ type: i1__namespace$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type:
|
|
3431
|
+
], ngImport: i0__namespace, template: "<lib-ngx-file-uploader\n [srcUrl]=\"pdfUrl\"\n [formEntry]=\"formEntryMode\"\n [(ngModel)]=\"fileUuid\"\n (_onClear)=\"clearValue()\"\n (uploadData)=\"onFileChange($event)\"\n>\n</lib-ngx-file-uploader>\n<div *ngIf=\"fileUuid\">\n <img\n *ngIf=\"!pdfUploaded\"\n class=\"img-responsive\"\n [src]=\"fileUuid | secure: this.dataSource.fetchFile\"\n alt=\"\"\n />\n</div>\n", styles: ["\n img {\n margin-left: auto;\n margin-right: auto;\n display: block;\n }\n "], components: [{ type: i1__namespace$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type: i21__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i21__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "secure": SecurePipe } });
|
|
3420
3432
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileUploadComponent, decorators: [{
|
|
3421
3433
|
type: i0.Component,
|
|
3422
3434
|
args: [{
|
|
@@ -3424,7 +3436,7 @@
|
|
|
3424
3436
|
templateUrl: 'file-upload.component.html',
|
|
3425
3437
|
providers: [
|
|
3426
3438
|
{
|
|
3427
|
-
provide:
|
|
3439
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3428
3440
|
useExisting: i0.forwardRef(function () { return FileUploadComponent; }),
|
|
3429
3441
|
multi: true
|
|
3430
3442
|
}
|
|
@@ -3540,11 +3552,11 @@
|
|
|
3540
3552
|
RemoteSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteSelectComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3541
3553
|
RemoteSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RemoteSelectComponent, selector: "ofe-remote-select", inputs: { placeholder: "placeholder", componentID: "componentID", disabled: "disabled", theme: "theme", dataSource: "dataSource" }, outputs: { done: "done" }, providers: [
|
|
3542
3554
|
{
|
|
3543
|
-
provide:
|
|
3555
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3544
3556
|
useExisting: i0.forwardRef(function () { return RemoteSelectComponent; }),
|
|
3545
3557
|
multi: true
|
|
3546
3558
|
}
|
|
3547
|
-
], ngImport: i0__namespace, template: "<div>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [disabled]=\"disabled\"\n [items]=\"remoteOptions$ | async\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"false\"\n [hideSelected]=\"true\"\n [compareWith]=\"compareItems\"\n [trackByFn]=\"trackByFn\"\n [loading]=\"loading\"\n typeToSearchText=\"Please enter 2 or more characters\"\n [typeahead]=\"remoteOptionInput$\"\n [(ngModel)]=\"selectedRemoteOptions\"\n (ngModelChange)=\"selected($event)\"\n >\n </ng-select>\n</div>\n", components: [{ type: i1__namespace$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
3559
|
+
], ngImport: i0__namespace, template: "<div>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [disabled]=\"disabled\"\n [items]=\"remoteOptions$ | async\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"false\"\n [hideSelected]=\"true\"\n [compareWith]=\"compareItems\"\n [trackByFn]=\"trackByFn\"\n [loading]=\"loading\"\n typeToSearchText=\"Please enter 2 or more characters\"\n [typeahead]=\"remoteOptionInput$\"\n [(ngModel)]=\"selectedRemoteOptions\"\n (ngModelChange)=\"selected($event)\"\n >\n </ng-select>\n</div>\n", components: [{ type: i1__namespace$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i21__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i21__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i1__namespace.AsyncPipe } });
|
|
3548
3560
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteSelectComponent, decorators: [{
|
|
3549
3561
|
type: i0.Component,
|
|
3550
3562
|
args: [{
|
|
@@ -3552,7 +3564,7 @@
|
|
|
3552
3564
|
templateUrl: 'remote-select.component.html',
|
|
3553
3565
|
providers: [
|
|
3554
3566
|
{
|
|
3555
|
-
provide:
|
|
3567
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
3556
3568
|
useExisting: i0.forwardRef(function () { return RemoteSelectComponent; }),
|
|
3557
3569
|
multi: true
|
|
3558
3570
|
}
|
|
@@ -8159,12 +8171,12 @@
|
|
|
8159
8171
|
}] } });
|
|
8160
8172
|
|
|
8161
8173
|
var OWL_DATETIME_VALUE_ACCESSOR$1 = {
|
|
8162
|
-
provide:
|
|
8174
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
8163
8175
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInputDirective; }),
|
|
8164
8176
|
multi: true
|
|
8165
8177
|
};
|
|
8166
8178
|
var OWL_DATETIME_VALIDATORS = {
|
|
8167
|
-
provide:
|
|
8179
|
+
provide: i21.NG_VALIDATORS,
|
|
8168
8180
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInputDirective; }),
|
|
8169
8181
|
multi: true
|
|
8170
8182
|
};
|
|
@@ -8279,7 +8291,7 @@
|
|
|
8279
8291
|
: { owlDateTimeRange: true };
|
|
8280
8292
|
};
|
|
8281
8293
|
/** The combined form control validator for this input. */
|
|
8282
|
-
this.validator =
|
|
8294
|
+
this.validator = i21.Validators.compose([
|
|
8283
8295
|
this.parseValidator,
|
|
8284
8296
|
this.minValidator,
|
|
8285
8297
|
this.maxValidator,
|
|
@@ -8953,11 +8965,11 @@
|
|
|
8953
8965
|
NgxDatetimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDatetimeComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8954
8966
|
NgxDatetimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NgxDatetimeComponent, selector: "ofe-ngx-date-time-picker", inputs: { id: "id", theme: "theme", datePickerFormat: "datePickerFormat", showWeeks: "showWeeks", weeks: "weeks" }, providers: [
|
|
8955
8967
|
{
|
|
8956
|
-
provide:
|
|
8968
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
8957
8969
|
useExisting: i0.forwardRef(function () { return NgxDatetimeComponent; }),
|
|
8958
8970
|
multi: true
|
|
8959
8971
|
}
|
|
8960
|
-
], ngImport: i0__namespace, template: "<div class=\"date-time-picker-container\">\n <div\n data-date-picker\n data-date-picker-type=\"single\"\n class=\"cds--date-picker cds--date-picker--single cds--date-picker--light\"\n [ngClass]=\"{\n 'cds--date-picker--light': theme === 'light'\n}\"\n >\n <div class=\"cds--date-picker-container fill\">\n <div class=\"cds--date-picker-input__wrapper\">\n <input\n [disabled]=\"isDisabled\"\n (dateTimeChange)=\"onInput($event)\"\n type=\"text\"\n class=\"cds--date-picker__input fill\"\n [id]=\"id\"\n [value]=\"value\"\n [owlDateTime]=\"dt1\"\n [ofeOwlDateTimeTrigger]=\"dt1\"\n placeholder=\"mm/dd/yyyy\"\n data-date-picker-input\n />\n <svg\n [ofeOwlDateTimeTrigger]=\"dt1\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-date-picker-icon=\"true\"\n class=\"cds--date-picker__icon\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13,2h-2V1h-1v1H6V1H5v1H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V3C14,2.4,13.6,2,13,2z M13,13H3V6h10V13z M13,5H3V3h2v1h1V3h4v1h1V3h2V5z\"\n ></path>\n </svg>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"showWeeks\"\n class=\"cds--select some-class week-select-wrapper\"\n [ngClass]=\"{'cds--select--light': theme === 'light'}\"\n >\n <div class=\"cds--select-input__wrapper\">\n <select\n (change)=\"onWeeksSelected($event.target.value)\"\n id=\"select-1\"\n class=\"cds--select-input\"\n >\n <option\n class=\"cds--select-option\"\n value=\"placeholder-item\"\n disabled=\"\"\n hidden=\"\"\n selected=\"\"\n >\n Select Weeks\n </option>\n <option\n class=\"cds--select-option\"\n [value]=\"week\"\n *ngFor=\"let week of weeks\"\n >\n {{week}} Weeks\n </option>\n </select>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n class=\"cds--select__arrow\"\n >\n <path d=\"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z\"></path>\n </svg>\n </div>\n </div>\n</div>\n<ofe-owl-date-time\n [pickerType]=\"datePickerFormat ? datePickerFormat : 'calendar'\"\n [disabled]=\"isDisabled\"\n #dt1\n></ofe-owl-date-time>\n", styles: [".date-time-picker-container{display:flex;justify-content:space-between}.week-select-wrapper{margin-left:1rem;width:30%}\n"], components: [{ type: OwlDateTimeComponent, selector: "ofe-owl-date-time", inputs: ["backdropClass", "panelClass", "startAt", "pickerType", "pickerMode", "disabled", "opened", "scrollStrategy"], outputs: ["afterPickerClosed", "afterPickerOpen", "yearSelected", "monthSelected"], exportAs: ["owlDateTime"] }], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: OwlDateTimeInputDirective, selector: "input[owlDateTime]", inputs: ["owlDateTime", "owlDateTimeFilter", "min", "max", "selectMode", "value", "values", "_disabled", "rangeSeparator"], outputs: ["dateTimeChange", "dateTimeInput"], exportAs: ["owlDateTimeInput"] }, { type: OwlDateTimeTriggerDirective, selector: "[ofeOwlDateTimeTrigger]", inputs: ["ofeOwlDateTimeTrigger", "disabled"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type:
|
|
8972
|
+
], ngImport: i0__namespace, template: "<div class=\"date-time-picker-container\">\n <div\n data-date-picker\n data-date-picker-type=\"single\"\n class=\"cds--date-picker cds--date-picker--single cds--date-picker--light\"\n [ngClass]=\"{\n 'cds--date-picker--light': theme === 'light'\n}\"\n >\n <div class=\"cds--date-picker-container fill\">\n <div class=\"cds--date-picker-input__wrapper\">\n <input\n [disabled]=\"isDisabled\"\n (dateTimeChange)=\"onInput($event)\"\n type=\"text\"\n class=\"cds--date-picker__input fill\"\n [id]=\"id\"\n [value]=\"value\"\n [owlDateTime]=\"dt1\"\n [ofeOwlDateTimeTrigger]=\"dt1\"\n placeholder=\"mm/dd/yyyy\"\n data-date-picker-input\n />\n <svg\n [ofeOwlDateTimeTrigger]=\"dt1\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-date-picker-icon=\"true\"\n class=\"cds--date-picker__icon\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13,2h-2V1h-1v1H6V1H5v1H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V3C14,2.4,13.6,2,13,2z M13,13H3V6h10V13z M13,5H3V3h2v1h1V3h4v1h1V3h2V5z\"\n ></path>\n </svg>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"showWeeks\"\n class=\"cds--select some-class week-select-wrapper\"\n [ngClass]=\"{'cds--select--light': theme === 'light'}\"\n >\n <div class=\"cds--select-input__wrapper\">\n <select\n (change)=\"onWeeksSelected($event.target.value)\"\n id=\"select-1\"\n class=\"cds--select-input\"\n >\n <option\n class=\"cds--select-option\"\n value=\"placeholder-item\"\n disabled=\"\"\n hidden=\"\"\n selected=\"\"\n >\n Select Weeks\n </option>\n <option\n class=\"cds--select-option\"\n [value]=\"week\"\n *ngFor=\"let week of weeks\"\n >\n {{week}} Weeks\n </option>\n </select>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n class=\"cds--select__arrow\"\n >\n <path d=\"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z\"></path>\n </svg>\n </div>\n </div>\n</div>\n<ofe-owl-date-time\n [pickerType]=\"datePickerFormat ? datePickerFormat : 'calendar'\"\n [disabled]=\"isDisabled\"\n #dt1\n></ofe-owl-date-time>\n", styles: [".date-time-picker-container{display:flex;justify-content:space-between}.week-select-wrapper{margin-left:1rem;width:30%}\n"], components: [{ type: OwlDateTimeComponent, selector: "ofe-owl-date-time", inputs: ["backdropClass", "panelClass", "startAt", "pickerType", "pickerMode", "disabled", "opened", "scrollStrategy"], outputs: ["afterPickerClosed", "afterPickerOpen", "yearSelected", "monthSelected"], exportAs: ["owlDateTime"] }], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: OwlDateTimeInputDirective, selector: "input[owlDateTime]", inputs: ["owlDateTime", "owlDateTimeFilter", "min", "max", "selectMode", "value", "values", "_disabled", "rangeSeparator"], outputs: ["dateTimeChange", "dateTimeInput"], exportAs: ["owlDateTimeInput"] }, { type: OwlDateTimeTriggerDirective, selector: "[ofeOwlDateTimeTrigger]", inputs: ["ofeOwlDateTimeTrigger", "disabled"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i21__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i21__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
8961
8973
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDatetimeComponent, decorators: [{
|
|
8962
8974
|
type: i0.Component,
|
|
8963
8975
|
args: [{
|
|
@@ -8966,7 +8978,7 @@
|
|
|
8966
8978
|
styleUrls: ['./ngx-datetime-picker.css'],
|
|
8967
8979
|
providers: [
|
|
8968
8980
|
{
|
|
8969
|
-
provide:
|
|
8981
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
8970
8982
|
useExisting: i0.forwardRef(function () { return NgxDatetimeComponent; }),
|
|
8971
8983
|
multi: true
|
|
8972
8984
|
}
|
|
@@ -9158,7 +9170,7 @@
|
|
|
9158
9170
|
NumberInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9159
9171
|
NumberInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumberInputComponent, selector: "ofe-number-input", inputs: { theme: "theme", disabled: "disabled", skeleton: "skeleton", invalid: "invalid", id: "id", size: "size", required: "required", value: "value", min: "min", max: "max", label: "label", helperText: "helperText", invalidText: "invalidText", step: "step", precision: "precision", warn: "warn", warnText: "warnText", decrementLabel: "decrementLabel", incrementLabel: "incrementLabel" }, outputs: { numberChange: "numberChange" }, host: { listeners: { "focusout": "focusOut()" } }, providers: [
|
|
9160
9172
|
{
|
|
9161
|
-
provide:
|
|
9173
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9162
9174
|
useExisting: i0.forwardRef(function () { return NumberInputComponent; }),
|
|
9163
9175
|
multi: true
|
|
9164
9176
|
}
|
|
@@ -9170,7 +9182,7 @@
|
|
|
9170
9182
|
templateUrl: 'number-input.component.html',
|
|
9171
9183
|
providers: [
|
|
9172
9184
|
{
|
|
9173
|
-
provide:
|
|
9185
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9174
9186
|
useExisting: i0.forwardRef(function () { return NumberInputComponent; }),
|
|
9175
9187
|
multi: true
|
|
9176
9188
|
}
|
|
@@ -9284,7 +9296,7 @@
|
|
|
9284
9296
|
RadioButtonControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9285
9297
|
RadioButtonControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonControlComponent, selector: "ofe-radio-button", inputs: { id: "id", options: "options", selected: "selected", allowUnselect: "allowUnselect" }, providers: [
|
|
9286
9298
|
{
|
|
9287
|
-
provide:
|
|
9299
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9288
9300
|
useExisting: i0.forwardRef(function () { return RadioButtonControlComponent; }),
|
|
9289
9301
|
multi: true
|
|
9290
9302
|
}
|
|
@@ -9296,7 +9308,7 @@
|
|
|
9296
9308
|
templateUrl: './radio.component.html',
|
|
9297
9309
|
providers: [
|
|
9298
9310
|
{
|
|
9299
|
-
provide:
|
|
9311
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9300
9312
|
useExisting: i0.forwardRef(function () { return RadioButtonControlComponent; }),
|
|
9301
9313
|
multi: true
|
|
9302
9314
|
}
|
|
@@ -9378,7 +9390,7 @@
|
|
|
9378
9390
|
CheckboxControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9379
9391
|
CheckboxControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: { id: "id", options: "options", selected: "selected" }, providers: [
|
|
9380
9392
|
{
|
|
9381
|
-
provide:
|
|
9393
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9382
9394
|
useExisting: i0.forwardRef(function () { return CheckboxControlComponent; }),
|
|
9383
9395
|
multi: true
|
|
9384
9396
|
}
|
|
@@ -9390,7 +9402,7 @@
|
|
|
9390
9402
|
templateUrl: './checkbox.component.html',
|
|
9391
9403
|
providers: [
|
|
9392
9404
|
{
|
|
9393
|
-
provide:
|
|
9405
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
9394
9406
|
useExisting: i0.forwardRef(function () { return CheckboxControlComponent; }),
|
|
9395
9407
|
multi: true
|
|
9396
9408
|
}
|
|
@@ -9523,6 +9535,111 @@
|
|
|
9523
9535
|
type: i0.Input
|
|
9524
9536
|
}] } });
|
|
9525
9537
|
|
|
9538
|
+
var HistoricalFieldHelperService = /** @class */ (function () {
|
|
9539
|
+
function HistoricalFieldHelperService() {
|
|
9540
|
+
}
|
|
9541
|
+
HistoricalFieldHelperService.prototype.getDisplayTextFromOptions = function (question, valueProperty, displayProperty) {
|
|
9542
|
+
var displayText = '';
|
|
9543
|
+
var historicalValue = question.historicalDataValue;
|
|
9544
|
+
if (___namespace.isArray(historicalValue.value)) {
|
|
9545
|
+
var valueConverted_1 = 0;
|
|
9546
|
+
___namespace.each(historicalValue.value, function (val) {
|
|
9547
|
+
___namespace.each(question.options, function (option) {
|
|
9548
|
+
if (option[valueProperty] === val) {
|
|
9549
|
+
if (valueConverted_1 === 0) {
|
|
9550
|
+
displayText = displayText + option[displayProperty];
|
|
9551
|
+
}
|
|
9552
|
+
else {
|
|
9553
|
+
displayText = displayText + ', ' + option[displayProperty];
|
|
9554
|
+
}
|
|
9555
|
+
valueConverted_1++;
|
|
9556
|
+
}
|
|
9557
|
+
});
|
|
9558
|
+
});
|
|
9559
|
+
}
|
|
9560
|
+
else {
|
|
9561
|
+
___namespace.each(question.options, function (option) {
|
|
9562
|
+
if (option[valueProperty] === historicalValue.value) {
|
|
9563
|
+
displayText = option[displayProperty];
|
|
9564
|
+
}
|
|
9565
|
+
});
|
|
9566
|
+
}
|
|
9567
|
+
return displayText;
|
|
9568
|
+
};
|
|
9569
|
+
return HistoricalFieldHelperService;
|
|
9570
|
+
}());
|
|
9571
|
+
HistoricalFieldHelperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9572
|
+
HistoricalFieldHelperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService });
|
|
9573
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, decorators: [{
|
|
9574
|
+
type: i0.Injectable
|
|
9575
|
+
}] });
|
|
9576
|
+
|
|
9577
|
+
var HistoricalValueDirective = /** @class */ (function () {
|
|
9578
|
+
function HistoricalValueDirective(historicalFieldHelper) {
|
|
9579
|
+
this.historicalFieldHelper = historicalFieldHelper;
|
|
9580
|
+
this._nodeChange = new i0.EventEmitter();
|
|
9581
|
+
}
|
|
9582
|
+
HistoricalValueDirective.prototype.setValue = function (e) {
|
|
9583
|
+
if (e.target.name === 'historyValue') {
|
|
9584
|
+
if (this._node &&
|
|
9585
|
+
(!this.compareStrings(this._node.question.renderingType, 'page') ||
|
|
9586
|
+
!this.compareStrings(this._node.question.renderingType, 'section'))) {
|
|
9587
|
+
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
9588
|
+
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
9589
|
+
e.stopPropagation();
|
|
9590
|
+
this._nodeChange.emit(this._node);
|
|
9591
|
+
}
|
|
9592
|
+
}
|
|
9593
|
+
};
|
|
9594
|
+
Object.defineProperty(HistoricalValueDirective.prototype, "node", {
|
|
9595
|
+
set: function (node) {
|
|
9596
|
+
if (node) {
|
|
9597
|
+
this._node = node;
|
|
9598
|
+
if (this._node.question.enableHistoricalValue &&
|
|
9599
|
+
!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9600
|
+
var display = { text: '', _date: '' };
|
|
9601
|
+
if (this._node.question.renderingType === 'select' ||
|
|
9602
|
+
this._node.question.renderingType === 'multi-select' ||
|
|
9603
|
+
this._node.question.renderingType === 'single-select') {
|
|
9604
|
+
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
9605
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9606
|
+
this._node.question['historicalDisplay'] = display;
|
|
9607
|
+
}
|
|
9608
|
+
else if (!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9609
|
+
display.text = this._node.question.historicalDataValue.value;
|
|
9610
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9611
|
+
this._node.question['historicalDisplay'] = display;
|
|
9612
|
+
}
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9615
|
+
},
|
|
9616
|
+
enumerable: false,
|
|
9617
|
+
configurable: true
|
|
9618
|
+
});
|
|
9619
|
+
HistoricalValueDirective.prototype.compareStrings = function (a, b) {
|
|
9620
|
+
return a === b;
|
|
9621
|
+
};
|
|
9622
|
+
return HistoricalValueDirective;
|
|
9623
|
+
}());
|
|
9624
|
+
HistoricalValueDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, deps: [{ token: HistoricalFieldHelperService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9625
|
+
HistoricalValueDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HistoricalValueDirective, selector: "[node]", inputs: { _node: "_node", node: "node" }, outputs: { _nodeChange: "_nodeChange" }, host: { listeners: { "click": "setValue($event)" } }, ngImport: i0__namespace });
|
|
9626
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, decorators: [{
|
|
9627
|
+
type: i0.Directive,
|
|
9628
|
+
args: [{
|
|
9629
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
9630
|
+
selector: "[node]"
|
|
9631
|
+
}]
|
|
9632
|
+
}], ctorParameters: function () { return [{ type: HistoricalFieldHelperService }]; }, propDecorators: { _node: [{
|
|
9633
|
+
type: i0.Input
|
|
9634
|
+
}], _nodeChange: [{
|
|
9635
|
+
type: i0.Output
|
|
9636
|
+
}], setValue: [{
|
|
9637
|
+
type: i0.HostListener,
|
|
9638
|
+
args: ['click', ['$event']]
|
|
9639
|
+
}], node: [{
|
|
9640
|
+
type: i0.Input
|
|
9641
|
+
}] } });
|
|
9642
|
+
|
|
9526
9643
|
var COLLAPSE_ANIMATION_TIMING = '400ms cubic-bezier(0.4,0.0,0.2,1)';
|
|
9527
9644
|
var expandAnimation = [
|
|
9528
9645
|
i1$5.style({ height: 0, visibility: 'hidden' }),
|
|
@@ -9858,115 +9975,6 @@
|
|
|
9858
9975
|
args: ['class.cds--text-input--light']
|
|
9859
9976
|
}] } });
|
|
9860
9977
|
|
|
9861
|
-
var HistoricalFieldHelperService = /** @class */ (function () {
|
|
9862
|
-
function HistoricalFieldHelperService() {
|
|
9863
|
-
}
|
|
9864
|
-
HistoricalFieldHelperService.prototype.getDisplayTextFromOptions = function (question, valueProperty, displayProperty) {
|
|
9865
|
-
var displayText = '';
|
|
9866
|
-
var historicalValue = question.historicalDataValue;
|
|
9867
|
-
if (___namespace.isArray(historicalValue.value)) {
|
|
9868
|
-
var valueConverted_1 = 0;
|
|
9869
|
-
___namespace.each(historicalValue.value, function (val) {
|
|
9870
|
-
___namespace.each(question.options, function (option) {
|
|
9871
|
-
if (option[valueProperty] === val) {
|
|
9872
|
-
if (valueConverted_1 === 0) {
|
|
9873
|
-
displayText = displayText + option[displayProperty];
|
|
9874
|
-
}
|
|
9875
|
-
else {
|
|
9876
|
-
displayText = displayText + ', ' + option[displayProperty];
|
|
9877
|
-
}
|
|
9878
|
-
valueConverted_1++;
|
|
9879
|
-
}
|
|
9880
|
-
});
|
|
9881
|
-
});
|
|
9882
|
-
}
|
|
9883
|
-
else {
|
|
9884
|
-
___namespace.each(question.options, function (option) {
|
|
9885
|
-
if (option[valueProperty] === historicalValue.value) {
|
|
9886
|
-
displayText = option[displayProperty];
|
|
9887
|
-
}
|
|
9888
|
-
});
|
|
9889
|
-
}
|
|
9890
|
-
return displayText;
|
|
9891
|
-
};
|
|
9892
|
-
return HistoricalFieldHelperService;
|
|
9893
|
-
}());
|
|
9894
|
-
HistoricalFieldHelperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9895
|
-
HistoricalFieldHelperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService });
|
|
9896
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, decorators: [{
|
|
9897
|
-
type: i0.Injectable
|
|
9898
|
-
}] });
|
|
9899
|
-
|
|
9900
|
-
var HistoricalValueDirective = /** @class */ (function () {
|
|
9901
|
-
function HistoricalValueDirective(historicalFieldHelper) {
|
|
9902
|
-
this.historicalFieldHelper = historicalFieldHelper;
|
|
9903
|
-
this._nodeChange = new i0.EventEmitter();
|
|
9904
|
-
}
|
|
9905
|
-
HistoricalValueDirective.prototype.setValue = function (e) {
|
|
9906
|
-
if (e.target.name === 'historyValue') {
|
|
9907
|
-
if (this._node &&
|
|
9908
|
-
(!this.compareString(this._node.question.renderingType, 'page') ||
|
|
9909
|
-
!this.compareString(this._node.question.renderingType, 'section'))) {
|
|
9910
|
-
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
9911
|
-
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
9912
|
-
e.stopPropagation();
|
|
9913
|
-
this._nodeChange.emit(this._node);
|
|
9914
|
-
}
|
|
9915
|
-
}
|
|
9916
|
-
};
|
|
9917
|
-
HistoricalValueDirective.prototype.compareString = function (a, b) {
|
|
9918
|
-
if (a === b) {
|
|
9919
|
-
return true;
|
|
9920
|
-
}
|
|
9921
|
-
else {
|
|
9922
|
-
return false;
|
|
9923
|
-
}
|
|
9924
|
-
};
|
|
9925
|
-
Object.defineProperty(HistoricalValueDirective.prototype, "node", {
|
|
9926
|
-
set: function (node) {
|
|
9927
|
-
if (node) {
|
|
9928
|
-
this._node = node;
|
|
9929
|
-
if (this._node.question.enableHistoricalValue &&
|
|
9930
|
-
!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9931
|
-
var display = { text: '', _date: '' };
|
|
9932
|
-
if (this._node.question.renderingType === 'select' ||
|
|
9933
|
-
this._node.question.renderingType === 'multi-select' ||
|
|
9934
|
-
this._node.question.renderingType === 'single-select') {
|
|
9935
|
-
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
9936
|
-
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9937
|
-
this._node.question['historicalDisplay'] = display;
|
|
9938
|
-
}
|
|
9939
|
-
else if (!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9940
|
-
display.text = this._node.question.historicalDataValue.value;
|
|
9941
|
-
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9942
|
-
this._node.question['historicalDisplay'] = display;
|
|
9943
|
-
}
|
|
9944
|
-
}
|
|
9945
|
-
}
|
|
9946
|
-
},
|
|
9947
|
-
enumerable: false,
|
|
9948
|
-
configurable: true
|
|
9949
|
-
});
|
|
9950
|
-
return HistoricalValueDirective;
|
|
9951
|
-
}());
|
|
9952
|
-
HistoricalValueDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, deps: [{ token: HistoricalFieldHelperService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9953
|
-
HistoricalValueDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HistoricalValueDirective, selector: "[ofeNode]", inputs: { _node: "_node", node: "node" }, outputs: { _nodeChange: "_nodeChange" }, host: { listeners: { "click": "setValue($event)" } }, ngImport: i0__namespace });
|
|
9954
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, decorators: [{
|
|
9955
|
-
type: i0.Directive,
|
|
9956
|
-
args: [{
|
|
9957
|
-
selector: "[ofeNode]"
|
|
9958
|
-
}]
|
|
9959
|
-
}], ctorParameters: function () { return [{ type: HistoricalFieldHelperService }]; }, propDecorators: { _node: [{
|
|
9960
|
-
type: i0.Input
|
|
9961
|
-
}], _nodeChange: [{
|
|
9962
|
-
type: i0.Output
|
|
9963
|
-
}], setValue: [{
|
|
9964
|
-
type: i0.HostListener,
|
|
9965
|
-
args: ['click', ['$event']]
|
|
9966
|
-
}], node: [{
|
|
9967
|
-
type: i0.Input
|
|
9968
|
-
}] } });
|
|
9969
|
-
|
|
9970
9978
|
var FormRendererComponent = /** @class */ (function () {
|
|
9971
9979
|
function FormRendererComponent(validationFactory, dataSources, formErrorsService, translate, document) {
|
|
9972
9980
|
this.validationFactory = validationFactory;
|
|
@@ -10185,7 +10193,7 @@
|
|
|
10185
10193
|
return FormRendererComponent;
|
|
10186
10194
|
}());
|
|
10187
10195
|
FormRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormRendererComponent, deps: [{ token: ValidationFactory }, { token: DataSources }, { token: FormErrorsService }, { token: i4__namespace.TranslateService }, { token: i1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10188
|
-
FormRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormRendererComponent, selector: "ofe-form-renderer", inputs: { parentComponent: "parentComponent", node: "node", parentGroup: "parentGroup", theme: "theme", labelMap: "labelMap", controlId: "controlId" }, usesOnChanges: true, ngImport: i0__namespace, template: "<!--CONTAINERS-->\n<div *ngIf=\"node.question.renderingType === 'form'\">\n <ofe-tab-set (tabSelect)=\"tabSelected($event)\" [selectedIndex]=\"activeTab\">\n <ofe-tab\n [tabTitle]=\"question.label | translate\"\n *ngFor=\"let question of node.question.questions; let i = index\"\n >\n <ofe-form-renderer\n [node]=\"node.children[question.key] | translate\"\n [parentComponent]=\"this\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n >\n </ofe-form-renderer>\n </ofe-tab>\n <div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label | translate }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode | translate) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n </div>\n </ofe-tab-set>\n</div>\n<div *ngIf=\"node.question.renderingType === 'page'\">\n <!--Page Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n</div>\n<div *ngIf=\"node.question.renderingType === 'section' && checkSection(node)\">\n <div\n class=\"cds--accordion__item\"\n [ngClass]=\"{ 'cds--accordion__item--active': !isCollapsed }\"\n >\n <button\n class=\"cds--accordion__heading\"\n type=\"button\"\n [attr.aria-expanded]=\"isCollapsed ? 'false' : 'true'\"\n aria-controls=\"accordion-item-0\"\n (click)=\"isCollapsed = !isCollapsed\"\n >\n <svg\n class=\"cds--accordion__arrow\"\n ibmIcon=\"chevron--right\"\n size=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n aria-hidden=\"true\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path d=\"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\"></path>\n </svg>\n <p class=\"cds--accordion__title\">\n {{ node.question.label | translate }}\n </p>\n </button>\n <div ofeCollapse=\"isCollapsed\">\n <!--Section Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div\n class=\"cds--accordion__content accordion-content-override\"\n [ngClass]=\"{\n 'accordion-content-dark': theme === 'light'\n }\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n </div>\n</div>\n\n<!-- MESSAGES -->\n<div\n *ngIf=\"node.control && node.control.alert && node.control.alert !== ''\"\n class=\"alert alert-warning\"\n>\n <a class=\"close\" data-dismiss=\"alert\">×</a> {{ node.control.alert }}\n</div>\n\n<!--CONTROLS-->\n\n<div\n *ngIf=\"node.question.controlType === 0\"\n [formGroup]=\"parentGroup\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <ofe-custom-component-wrapper\n [dark]=\"!(theme === 'light')\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div class=\"cds--form-item\">\n <!--LEAF CONTROL-->\n <div class=\"question-area\">\n <a\n class=\"form-tooltip pull-right\"\n (click)=\"toggleInformation(node.question.extras.id)\"\n data-placement=\"right\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n <i class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></i>\n </a>\n\n <label\n *ngIf=\"node.question.label\"\n [style.color]=\"hasErrors() ? 'red' : ''\"\n class=\"cds--label\"\n [attr.for]=\"node.question.key | translate\"\n >\n {{ node.question.required ? '*' : '' }}\n {{ node.question.prefix ? node.question.prefix + ' ' : ''}}\n {{ node.question.label | translate }}\n </label>\n\n <div\n *ngIf=\"\n node.question.extras.questionOptions.customControl;\n else nativeControls\n \"\n >\n <ofe-custom-control-wrapper\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [question]=\"node.question\"\n >\n </ofe-custom-control-wrapper>\n </div>\n\n <ng-template #nativeControls>\n <div class=\"afe-control\" [ngSwitch]=\"node.question.renderingType\">\n <ofe-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'select'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n >\n <option *ngFor=\"let o of node.question.options\" [value]=\"o.value\">\n {{ o.label | translate }}\n </option>\n </ofe-select>\n\n <div *ngSwitchCase=\"'file'\">\n <ofe-file-upload\n [dataSource]=\"dataSource\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n (fileChanged)=\"upload($event)\"\n >\n </ofe-file-upload>\n </div>\n\n <textarea\n [theme]=\"theme\"\n ofeTextAreaInput\n [ngClass]=\"{\n 'cds--text-area--light': theme === 'light',\n 'cds--text-area--invalid': !node.control.valid\n }\"\n [placeholder]=\"node.question.placeholder | translate\"\n [rows]=\"node.question.rows\"\n class=\"cds--text-area\"\n *ngSwitchCase=\"'textarea'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n >\n </textarea>\n\n <ofe-remote-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'remote-select'\"\n [placeholder]=\"node.question.placeholder | translate\"\n tabindex=\"0\"\n [dataSource]=\"dataSource\"\n [componentID]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n ></ofe-remote-select>\n\n <ofe-ngx-date-time-picker\n [weeks]=\"node.question.extras.questionOptions.weeksList\"\n [showWeeks]=\"node.question.showWeeksAdder\"\n [theme]=\"theme\"\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n *ngSwitchCase=\"'date'\"\n [datePickerFormat]=\"node.question.datePickerFormat\"\n >\n </ofe-ngx-date-time-picker>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'multi-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label | translate\"\n bindValue=\"value\"\n [multiple]=\"true\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'single-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label | translate\"\n bindValue=\"value\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ofe-number-input\n [theme]=\"theme\"\n *ngSwitchCase=\"'number'\"\n [id]=\"node.question.key + 'id'\"\n [min]=\"node.question.extras.questionOptions.min\"\n [max]=\"node.question.extras.questionOptions.max\"\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder | translate\"\n >\n </ofe-number-input>\n\n <input\n [theme]=\"theme\"\n class=\"cds--text-input\"\n ofeTextInput\n *ngSwitchDefault\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder | translate\"\n [type]=\"node.question.renderingType\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n />\n\n <div *ngSwitchCase=\"'radio'\">\n <ofe-radio-button\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [allowUnselect]=\"node.question.allowUnselect\"\n [selected]=\"node.control.value\"\n ></ofe-radio-button>\n </div>\n\n <div *ngSwitchCase=\"'checkbox'\">\n <ofe-checkbox\n [id]=\"node.question.key + 'id' + controlId\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [selected]=\"node.control.value\"\n ></ofe-checkbox>\n </div>\n\n <div\n *ngIf=\"\n node.question.enableHistoricalValue &&\n node.question.historicalDisplay\n \"\n style=\"margin-top: 2px\"\n >\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-xs-9\">\n <span class=\"text-warning\">Previous Value: </span>\n <strong>{{ node.question.historicalDisplay?.text }}</strong>\n <span *ngIf=\"node.question.showHistoricalValueDate\">\n <span> | </span>\n <strong class=\"text-primary\"\n >{{ node.question.historicalDisplay?._date | date }}\n </strong>\n <span\n class=\"text-primary\"\n *ngIf=\"\n node.question.historicalDisplay &&\n node.question.historicalDisplay._date\n \"\n >\n ({{\n node.question.historicalDisplay._date | timeAgo\n }})</span\n >\n </span>\n </div>\n <button\n type=\"button\"\n ofeNode=\"node\"\n [name]=\"'historyValue'\"\n class=\"cds--btn cds--btn--primary cds--btn--sm col-xs-3\"\n >\n Use Value\n </button>\n </div>\n </div>\n </div>\n <ofe-appointments-overview [node]=\"node\"></ofe-appointments-overview>\n <div *ngIf=\"hasErrors()\">\n <div *ngFor=\"let e of errors()\">\n <span class=\"text-danger\">{{ e }}</span>\n </div>\n </div>\n </div>\n </ng-template>\n\n <div\n class=\"question-info col-md-12 col-lg-12 col-sm-12\"\n id=\"{{ node.question.extras.id }}\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n {{ node.question.extras.questionInfo | translate }}\n </div>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 1\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--ARRAY CONTROL-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div class=\"well\" style=\"padding: 2px\" *ngSwitchCase=\"'repeating'\">\n <h4 style=\"margin: 2px; font-weight: bold\">{{ node.question.label | translate }}</h4>\n <div>\n <label class=\"cds--label\" *ngIf=\"node.question.extras.questionOptions.min\" style=\"margin-right: 2px\">min:\n {{ node.question.extras.questionOptions.min }}</label>\n <label class=\"cds--label\" *ngIf=\"node.question.extras.questionOptions.max\">max:\n {{ node.question.extras.questionOptions.max }}</label>\n </div>\n <hr style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 2px;\n \"\n />\n <div [ngSwitch]=\"node.question.extras.type\">\n <div *ngSwitchCase=\"'testOrder'\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n <div>{{ child.orderNumber }}</div>\n <button\n type=\"button \"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n\n <div *ngSwitchCase=\"'obsGroup'\" style=\"margin-bottom: 20px\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n [controlId]=\"i\"\n ></ofe-form-renderer>\n <button\n type=\"button\"\n style=\"width: 100px\"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"cds--btn cds--btn--primary cds--btn--sm\"\n (click)=\"node.createChildNode()\"\n [ngClass]=\"{ disabled: node.children.length >= node.question.extras.questionOptions.max }\">\n Add\n </button>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 2\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--GROUP-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div *ngSwitchCase=\"'group'\">\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n <div\n *ngSwitchCase=\"'field-set'\"\n style=\"border: 1px solid #eeeeee; padding: 2px; margin: 2px\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n</div>\n", styles: [".slider{width:auto;margin:30px}.slick-prev:before,.slick-next:before{color:#337ab7}.slick-dots{bottom:-40px}.slick-slide{outline:none}\n", "a{color:#fff;text-decoration:none;font-size:12px;text-transform:uppercase}ul{list-style-type:none;margin:2px auto;position:relative}li{display:block;padding:10px 20px;white-space:nowrap;transition:all .3s ease-in;border-bottom:4px solid transparent}li:hover{border-bottom:4px solid white;opacity:.7;cursor:pointer}.owl-theme .owl-controls .owl-nav{position:absolute;width:100%;top:0}.owl-theme .owl-controls .owl-nav [class*=owl-]{position:absolute;background:none;color:#000}.owl-theme .owl-controls .owl-nav [class*=owl-]:hover{background:none;color:#000}.owl-theme .owl-controls .owl-nav .owl-next{right:0;transform:translate(120%)}.owl-theme .owl-controls .owl-nav .owl-prev{left:0;transform:translate(-120%)}.slick-initialized .swipe-tab-content{position:relative;min-height:365px}@media screen and (min-width: 767px){.slick-initialized .swipe-tab-content{min-height:500px}}.slick-initialized .swipe-tab{display:flex;align-items:center;justify-content:center;height:50px;background:none;border:0;color:#757575;cursor:pointer;text-align:center;border-bottom:2px solid rgba(51,122,183,0);transition:all .5s}.slick-initialized .swipe-tab:hover{color:#337ab7}.slick-initialized .swipe-tab.active-tab{border-bottom-color:#337ab7;color:#337ab7;font-weight:bold}.disabled{opacity:.5;pointer-events:none}.select2-container{margin-top:-5px}.btn{padding:0 12px!important}.form-tooltip{color:#337ab7;display:inline-block}.question-info{opacity:0;height:0px;display:none;transition-duration:opacity 1s ease-out;transtion-delay:.5s;padding-top:2px;padding-bottom:2px;color:#696969;border-style:ridge;border-width:1px;border-color:#337ab7;margin-top:2px}.hide-info{display:none;height:0px}.form-tooltip:hover~.question-info{display:block;opacity:1;height:auto}.form-tooltip .tooltipcontent:after{content:\" \";position:absolute;bottom:100%;right:0%;margin-left:-5px;border-width:5px;border-style:solid;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#337ab7;border-left-color:transparent}ng-select.form-control{padding-top:0;height:auto;padding-bottom:0}.forms-dropdown-menu{max-height:450px;overflow-y:scroll}.no-border{border:0;box-shadow:none}.text-danger{color:var(--cds-support-01, #da1e28)}.error{margin-bottom:3rem}.afe-control{margin-bottom:1.5rem}[hidden]{display:none!important}.accordion-content-dark{background-color:#f4f4f4;padding-right:1rem}.accordion-content-override{box-sizing:content-box}.question-area{width:100%;max-width:18rem}.in-line{display:inline-block;padding-right:.5rem}\n"], components: [{ type: TabSetComponent, selector: "ofe-tab-set", inputs: ["disableStyle", "customNavClass", "customTabsClass", "selectedIndex"], outputs: ["tabSelect"] }, { type: TabComponent, selector: "ofe-tab", inputs: ["tabTitle", "tabSubTitle", "active", "disabled", "bypassDOM", "customPaneClass"] }, { type: FormRendererComponent, selector: "ofe-form-renderer", inputs: ["parentComponent", "node", "parentGroup", "theme", "labelMap", "controlId"] }, { type: CustomComponentWrapperComponent, selector: "ofe-custom-component-wrapper", inputs: ["componentConfigs", "dark"] }, { type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: ["question"] }, { type: SelectComponent, selector: "ofe-select", inputs: ["display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "theme", "ariaLabel", "value"], outputs: ["valueChange"] }, { type: FileUploadComponent, selector: "ofe-file-upload", inputs: ["dataSource"] }, { type: RemoteSelectComponent, selector: "ofe-remote-select", inputs: ["placeholder", "componentID", "disabled", "theme", "dataSource"], outputs: ["done"] }, { type: NgxDatetimeComponent, selector: "ofe-ngx-date-time-picker", inputs: ["id", "theme", "datePickerFormat", "showWeeks", "weeks"] }, { type: i1__namespace$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: NumberInputComponent, selector: "ofe-number-input", inputs: ["theme", "disabled", "skeleton", "invalid", "id", "size", "required", "value", "min", "max", "label", "helperText", "invalidText", "step", "precision", "warn", "warnText", "decrementLabel", "incrementLabel"], outputs: ["numberChange"] }, { type: RadioButtonControlComponent, selector: "ofe-radio-button", inputs: ["id", "options", "selected", "allowUnselect"] }, { type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: ["id", "options", "selected"] }, { type: AppointmentsOverviewComponent, selector: "ofe-appointments-overview", inputs: ["node"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[ofeCollapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i20__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i20__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i20__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i20__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i20__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i20__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i20__namespace.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: TextAreaDirective, selector: "[ofeTextAreaInput]", inputs: ["theme", "invalid", "skeleton"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: TextInputDirective, selector: "[ofeTextInput]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { type: HistoricalValueDirective, selector: "[ofeNode]", inputs: ["_node", "node"], outputs: ["_nodeChange"] }], pipes: { "translate": i4__namespace.TranslatePipe, "date": i1__namespace.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
10196
|
+
FormRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormRendererComponent, selector: "ofe-form-renderer", inputs: { parentComponent: "parentComponent", node: "node", parentGroup: "parentGroup", theme: "theme", labelMap: "labelMap", controlId: "controlId" }, usesOnChanges: true, ngImport: i0__namespace, template: "<!--CONTAINERS-->\n<div *ngIf=\"node.question.renderingType === 'form'\">\n <ofe-tab-set (tabSelect)=\"tabSelected($event)\" [selectedIndex]=\"activeTab\">\n <ofe-tab\n [tabTitle]=\"question.label | translate\"\n *ngFor=\"let question of node.question.questions; let i = index\"\n >\n <ofe-form-renderer\n [node]=\"node.children[question.key] | translate\"\n [parentComponent]=\"this\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n >\n </ofe-form-renderer>\n </ofe-tab>\n <div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label | translate }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode | translate) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n </div>\n </ofe-tab-set>\n</div>\n<div *ngIf=\"node.question.renderingType === 'page'\">\n <!--Page Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n</div>\n<div *ngIf=\"node.question.renderingType === 'section' && checkSection(node)\">\n <div\n class=\"cds--accordion__item\"\n [ngClass]=\"{ 'cds--accordion__item--active': !isCollapsed }\"\n >\n <button\n class=\"cds--accordion__heading\"\n type=\"button\"\n [attr.aria-expanded]=\"isCollapsed ? 'false' : 'true'\"\n aria-controls=\"accordion-item-0\"\n (click)=\"isCollapsed = !isCollapsed\"\n >\n <svg\n class=\"cds--accordion__arrow\"\n ibmIcon=\"chevron--right\"\n size=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n aria-hidden=\"true\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path d=\"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\"></path>\n </svg>\n <p class=\"cds--accordion__title\">\n {{ node.question.label | translate }}\n </p>\n </button>\n <div ofeCollapse=\"isCollapsed\">\n <!--Section Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div\n class=\"cds--accordion__content accordion-content-override\"\n [ngClass]=\"{\n 'accordion-content-dark': theme === 'light'\n }\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n </div>\n</div>\n\n<!-- MESSAGES -->\n<div\n *ngIf=\"node.control && node.control.alert && node.control.alert !== ''\"\n class=\"alert alert-warning\"\n>\n <a class=\"close\" data-dismiss=\"alert\">×</a> {{ node.control.alert }}\n</div>\n\n<!--CONTROLS-->\n\n<div\n *ngIf=\"node.question.controlType === 0\"\n [formGroup]=\"parentGroup\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <ofe-custom-component-wrapper\n [dark]=\"!(theme === 'light')\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div class=\"cds--form-item\">\n <!--LEAF CONTROL-->\n <div class=\"question-area\">\n <a\n class=\"form-tooltip pull-right\"\n (click)=\"toggleInformation(node.question.extras.id)\"\n data-placement=\"right\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n <i class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></i>\n </a>\n\n <label\n *ngIf=\"node.question.label\"\n [style.color]=\"hasErrors() ? 'red' : ''\"\n class=\"cds--label\"\n [attr.for]=\"node.question.key | translate\"\n >\n {{ node.question.required ? '*' : '' }}\n {{ node.question.prefix ? node.question.prefix + ' ' : '' }}\n {{ node.question.label | translate }}\n </label>\n\n <div\n *ngIf=\"\n node.question.extras.questionOptions.customControl;\n else nativeControls\n \"\n >\n <ofe-custom-control-wrapper\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [question]=\"node.question\"\n >\n </ofe-custom-control-wrapper>\n </div>\n\n <ng-template #nativeControls>\n <div class=\"afe-control\" [ngSwitch]=\"node.question.renderingType\">\n <ofe-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'select'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n >\n <option *ngFor=\"let o of node.question.options\" [value]=\"o.value\">\n {{ o.label | translate }}\n </option>\n </ofe-select>\n\n <div *ngSwitchCase=\"'file'\">\n <ofe-file-upload\n [dataSource]=\"dataSource\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n (fileChanged)=\"upload($event)\"\n >\n </ofe-file-upload>\n </div>\n\n <textarea\n [theme]=\"theme\"\n ofeTextAreaInput\n [ngClass]=\"{\n 'cds--text-area--light': theme === 'light',\n 'cds--text-area--invalid': !node.control.valid\n }\"\n [placeholder]=\"node.question.placeholder | translate\"\n [rows]=\"node.question.rows\"\n class=\"cds--text-area\"\n *ngSwitchCase=\"'textarea'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n >\n </textarea>\n\n <ofe-remote-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'remote-select'\"\n [placeholder]=\"node.question.placeholder | translate\"\n tabindex=\"0\"\n [dataSource]=\"dataSource\"\n [componentID]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n ></ofe-remote-select>\n\n <ofe-ngx-date-time-picker\n [weeks]=\"node.question.extras.questionOptions.weeksList\"\n [showWeeks]=\"node.question.showWeeksAdder\"\n [theme]=\"theme\"\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n *ngSwitchCase=\"'date'\"\n [datePickerFormat]=\"node.question.datePickerFormat\"\n >\n </ofe-ngx-date-time-picker>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'multi-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label | translate\"\n bindValue=\"value\"\n [multiple]=\"true\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'single-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label | translate\"\n bindValue=\"value\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ofe-number-input\n [theme]=\"theme\"\n *ngSwitchCase=\"'number'\"\n [id]=\"node.question.key + 'id'\"\n [min]=\"node.question.extras.questionOptions.min\"\n [max]=\"node.question.extras.questionOptions.max\"\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder | translate\"\n >\n </ofe-number-input>\n\n <input\n [theme]=\"theme\"\n class=\"cds--text-input\"\n ofeTextInput\n *ngSwitchDefault\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder | translate\"\n [type]=\"node.question.renderingType\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n />\n\n <div *ngSwitchCase=\"'radio'\">\n <ofe-radio-button\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [allowUnselect]=\"node.question.allowUnselect\"\n [selected]=\"node.control.value\"\n ></ofe-radio-button>\n </div>\n\n <div *ngSwitchCase=\"'checkbox'\">\n <ofe-checkbox\n [id]=\"node.question.key + 'id' + controlId\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [selected]=\"node.control.value\"\n ></ofe-checkbox>\n </div>\n\n <div\n *ngIf=\"\n node.question.enableHistoricalValue &&\n node.question.historicalDisplay\n \"\n style=\"margin-top: 2px\"\n >\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-xs-9\">\n <span class=\"text-warning\">Previous Value: </span>\n <strong>{{ node.question.historicalDisplay?.text }}</strong>\n <span *ngIf=\"node.question.showHistoricalValueDate\">\n <span> | </span>\n <strong class=\"text-primary\"\n >{{ node.question.historicalDisplay?._date | date }}\n </strong>\n <span\n class=\"text-primary\"\n *ngIf=\"\n node.question.historicalDisplay &&\n node.question.historicalDisplay._date\n \"\n >\n ({{\n node.question.historicalDisplay._date | timeAgo\n }})</span\n >\n </span>\n </div>\n <button\n type=\"button\"\n [name]=\"'historyValue'\"\n class=\"cds--btn cds--btn--primary cds--btn--sm col-xs-3\"\n >\n Use Value\n </button>\n </div>\n </div>\n </div>\n <ofe-appointments-overview [node]=\"node\"></ofe-appointments-overview>\n <div *ngIf=\"hasErrors()\">\n <div *ngFor=\"let e of errors()\">\n <span class=\"text-danger\">{{ e }}</span>\n </div>\n </div>\n </div>\n </ng-template>\n\n <div\n class=\"question-info col-md-12 col-lg-12 col-sm-12\"\n id=\"{{ node.question.extras.id }}\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n {{ node.question.extras.questionInfo | translate }}\n </div>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 1\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--ARRAY CONTROL-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div class=\"well\" style=\"padding: 2px\" *ngSwitchCase=\"'repeating'\">\n <h4 style=\"margin: 2px; font-weight: bold\">{{ node.question.label | translate }}</h4>\n <div>\n <label class=\"cds--label\" *ngIf=\"node.question.extras.questionOptions.min\" style=\"margin-right: 2px\">min:\n {{ node.question.extras.questionOptions.min }}</label>\n <label class=\"cds--label\" *ngIf=\"node.question.extras.questionOptions.max\">max:\n {{ node.question.extras.questionOptions.max }}</label>\n </div>\n <hr style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 2px;\n \"\n />\n <div [ngSwitch]=\"node.question.extras.type\">\n <div *ngSwitchCase=\"'testOrder'\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n <div>{{ child.orderNumber }}</div>\n <button\n type=\"button \"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n\n <div *ngSwitchCase=\"'obsGroup'\" style=\"margin-bottom: 20px\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n [controlId]=\"i\"\n ></ofe-form-renderer>\n <button\n type=\"button\"\n style=\"width: 100px\"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"cds--btn cds--btn--primary cds--btn--sm\"\n (click)=\"node.createChildNode()\"\n [ngClass]=\"{ disabled: node.children.length >= node.question.extras.questionOptions.max }\">\n Add\n </button>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 2\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--GROUP-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div *ngSwitchCase=\"'group'\">\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n <div\n *ngSwitchCase=\"'field-set'\"\n style=\"border: 1px solid #eeeeee; padding: 2px; margin: 2px\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n</div>\n", styles: [".slider{width:auto;margin:30px}.slick-prev:before,.slick-next:before{color:#337ab7}.slick-dots{bottom:-40px}.slick-slide{outline:none}\n", "a{color:#fff;text-decoration:none;font-size:12px;text-transform:uppercase}ul{list-style-type:none;margin:2px auto;position:relative}li{display:block;padding:10px 20px;white-space:nowrap;transition:all .3s ease-in;border-bottom:4px solid transparent}li:hover{border-bottom:4px solid white;opacity:.7;cursor:pointer}.owl-theme .owl-controls .owl-nav{position:absolute;width:100%;top:0}.owl-theme .owl-controls .owl-nav [class*=owl-]{position:absolute;background:none;color:#000}.owl-theme .owl-controls .owl-nav [class*=owl-]:hover{background:none;color:#000}.owl-theme .owl-controls .owl-nav .owl-next{right:0;transform:translate(120%)}.owl-theme .owl-controls .owl-nav .owl-prev{left:0;transform:translate(-120%)}.slick-initialized .swipe-tab-content{position:relative;min-height:365px}@media screen and (min-width: 767px){.slick-initialized .swipe-tab-content{min-height:500px}}.slick-initialized .swipe-tab{display:flex;align-items:center;justify-content:center;height:50px;background:none;border:0;color:#757575;cursor:pointer;text-align:center;border-bottom:2px solid rgba(51,122,183,0);transition:all .5s}.slick-initialized .swipe-tab:hover{color:#337ab7}.slick-initialized .swipe-tab.active-tab{border-bottom-color:#337ab7;color:#337ab7;font-weight:bold}.disabled{opacity:.5;pointer-events:none}.select2-container{margin-top:-5px}.btn{padding:0 12px!important}.form-tooltip{color:#337ab7;display:inline-block}.question-info{opacity:0;height:0px;display:none;transition-duration:opacity 1s ease-out;transtion-delay:.5s;padding-top:2px;padding-bottom:2px;color:#696969;border-style:ridge;border-width:1px;border-color:#337ab7;margin-top:2px}.hide-info{display:none;height:0px}.form-tooltip:hover~.question-info{display:block;opacity:1;height:auto}.form-tooltip .tooltipcontent:after{content:\" \";position:absolute;bottom:100%;right:0%;margin-left:-5px;border-width:5px;border-style:solid;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#337ab7;border-left-color:transparent}ng-select.form-control{padding-top:0;height:auto;padding-bottom:0}.forms-dropdown-menu{max-height:450px;overflow-y:scroll}.no-border{border:0;box-shadow:none}.text-danger{color:var(--cds-support-01, #da1e28)}.error{margin-bottom:3rem}.afe-control{margin-bottom:1.5rem}[hidden]{display:none!important}.accordion-content-dark{background-color:#f4f4f4;padding-right:1rem}.accordion-content-override{box-sizing:content-box}.question-area{width:100%;max-width:18rem}.in-line{display:inline-block;padding-right:.5rem}\n"], components: [{ type: TabSetComponent, selector: "ofe-tab-set", inputs: ["disableStyle", "customNavClass", "customTabsClass", "selectedIndex"], outputs: ["tabSelect"] }, { type: TabComponent, selector: "ofe-tab", inputs: ["tabTitle", "tabSubTitle", "active", "disabled", "bypassDOM", "customPaneClass"] }, { type: FormRendererComponent, selector: "ofe-form-renderer", inputs: ["parentComponent", "node", "parentGroup", "theme", "labelMap", "controlId"] }, { type: CustomComponentWrapperComponent, selector: "ofe-custom-component-wrapper", inputs: ["componentConfigs", "dark"] }, { type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: ["question"] }, { type: SelectComponent, selector: "ofe-select", inputs: ["display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "theme", "ariaLabel", "value"], outputs: ["valueChange"] }, { type: FileUploadComponent, selector: "ofe-file-upload", inputs: ["dataSource"] }, { type: RemoteSelectComponent, selector: "ofe-remote-select", inputs: ["placeholder", "componentID", "disabled", "theme", "dataSource"], outputs: ["done"] }, { type: NgxDatetimeComponent, selector: "ofe-ngx-date-time-picker", inputs: ["id", "theme", "datePickerFormat", "showWeeks", "weeks"] }, { type: i1__namespace$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: NumberInputComponent, selector: "ofe-number-input", inputs: ["theme", "disabled", "skeleton", "invalid", "id", "size", "required", "value", "min", "max", "label", "helperText", "invalidText", "step", "precision", "warn", "warnText", "decrementLabel", "incrementLabel"], outputs: ["numberChange"] }, { type: RadioButtonControlComponent, selector: "ofe-radio-button", inputs: ["id", "options", "selected", "allowUnselect"] }, { type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: ["id", "options", "selected"] }, { type: AppointmentsOverviewComponent, selector: "ofe-appointments-overview", inputs: ["node"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: HistoricalValueDirective, selector: "[node]", inputs: ["_node", "node"], outputs: ["_nodeChange"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[ofeCollapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i21__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i21__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i21__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i21__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i21__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i21__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i21__namespace.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: TextAreaDirective, selector: "[ofeTextAreaInput]", inputs: ["theme", "invalid", "skeleton"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: TextInputDirective, selector: "[ofeTextInput]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }], pipes: { "translate": i4__namespace.TranslatePipe, "date": i1__namespace.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
10189
10197
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormRendererComponent, decorators: [{
|
|
10190
10198
|
type: i0.Component,
|
|
10191
10199
|
args: [{
|
|
@@ -10271,12 +10279,12 @@
|
|
|
10271
10279
|
return NumberInputModule;
|
|
10272
10280
|
}());
|
|
10273
10281
|
NumberInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
10274
|
-
NumberInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, declarations: [NumberInputComponent], imports: [i1.CommonModule,
|
|
10275
|
-
NumberInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, providers: [], imports: [[i1.CommonModule,
|
|
10282
|
+
NumberInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, declarations: [NumberInputComponent], imports: [i1.CommonModule, i21.FormsModule], exports: [NumberInputComponent] });
|
|
10283
|
+
NumberInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, providers: [], imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
10276
10284
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, decorators: [{
|
|
10277
10285
|
type: i0.NgModule,
|
|
10278
10286
|
args: [{
|
|
10279
|
-
imports: [i1.CommonModule,
|
|
10287
|
+
imports: [i1.CommonModule, i21.FormsModule],
|
|
10280
10288
|
exports: [NumberInputComponent],
|
|
10281
10289
|
declarations: [NumberInputComponent],
|
|
10282
10290
|
providers: []
|
|
@@ -10308,13 +10316,13 @@
|
|
|
10308
10316
|
}());
|
|
10309
10317
|
RemoteFileUploadModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
10310
10318
|
RemoteFileUploadModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, declarations: [FileUploadComponent], imports: [i1.CommonModule,
|
|
10311
|
-
|
|
10319
|
+
i21.FormsModule,
|
|
10312
10320
|
SharedModule,
|
|
10313
10321
|
ngxWebcam.WebcamModule,
|
|
10314
10322
|
i1$2.NgxFileUploaderModule], exports: [FileUploadComponent] });
|
|
10315
10323
|
RemoteFileUploadModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, providers: [], imports: [[
|
|
10316
10324
|
i1.CommonModule,
|
|
10317
|
-
|
|
10325
|
+
i21.FormsModule,
|
|
10318
10326
|
SharedModule,
|
|
10319
10327
|
ngxWebcam.WebcamModule,
|
|
10320
10328
|
i1$2.NgxFileUploaderModule
|
|
@@ -10324,7 +10332,7 @@
|
|
|
10324
10332
|
args: [{
|
|
10325
10333
|
imports: [
|
|
10326
10334
|
i1.CommonModule,
|
|
10327
|
-
|
|
10335
|
+
i21.FormsModule,
|
|
10328
10336
|
SharedModule,
|
|
10329
10337
|
ngxWebcam.WebcamModule,
|
|
10330
10338
|
i1$2.NgxFileUploaderModule
|
|
@@ -10774,7 +10782,7 @@
|
|
|
10774
10782
|
DateTimePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10775
10783
|
DateTimePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "ofe-date-time-picker", inputs: { modelValue: "modelValue", showDate: "showDate", showTime: "showTime", showWeeks: "showWeeks", weeks: "weeks" }, outputs: { dateChange: "dateChange" }, providers: [
|
|
10776
10784
|
{
|
|
10777
|
-
provide:
|
|
10785
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
10778
10786
|
useExisting: i0.forwardRef(function () { return DateTimePickerComponent; }),
|
|
10779
10787
|
multi: true
|
|
10780
10788
|
}
|
|
@@ -10787,7 +10795,7 @@
|
|
|
10787
10795
|
styleUrls: ['./date-time-picker.component.css'],
|
|
10788
10796
|
providers: [
|
|
10789
10797
|
{
|
|
10790
|
-
provide:
|
|
10798
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
10791
10799
|
useExisting: i0.forwardRef(function () { return DateTimePickerComponent; }),
|
|
10792
10800
|
multi: true
|
|
10793
10801
|
}
|
|
@@ -10820,16 +10828,16 @@
|
|
|
10820
10828
|
TimePickerComponent,
|
|
10821
10829
|
ModalComponent,
|
|
10822
10830
|
MomentPipe,
|
|
10823
|
-
DateTimePickerComponent], imports: [i1.CommonModule,
|
|
10831
|
+
DateTimePickerComponent], imports: [i1.CommonModule, i21.FormsModule], exports: [DatePickerComponent,
|
|
10824
10832
|
TimePickerComponent,
|
|
10825
10833
|
ModalComponent,
|
|
10826
10834
|
MomentPipe,
|
|
10827
10835
|
DateTimePickerComponent] });
|
|
10828
|
-
DateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, providers: [], imports: [[i1.CommonModule,
|
|
10836
|
+
DateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, providers: [], imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
10829
10837
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, decorators: [{
|
|
10830
10838
|
type: i0.NgModule,
|
|
10831
10839
|
args: [{
|
|
10832
|
-
imports: [i1.CommonModule,
|
|
10840
|
+
imports: [i1.CommonModule, i21.FormsModule],
|
|
10833
10841
|
declarations: [
|
|
10834
10842
|
DatePickerComponent,
|
|
10835
10843
|
TimePickerComponent,
|
|
@@ -10849,7 +10857,7 @@
|
|
|
10849
10857
|
}] });
|
|
10850
10858
|
|
|
10851
10859
|
var OWL_DATETIME_VALUE_ACCESSOR = {
|
|
10852
|
-
provide:
|
|
10860
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
10853
10861
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInlineComponent; }),
|
|
10854
10862
|
multi: true
|
|
10855
10863
|
};
|
|
@@ -11682,12 +11690,12 @@
|
|
|
11682
11690
|
}());
|
|
11683
11691
|
NgxDateTimePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
11684
11692
|
NgxDateTimePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, declarations: [NgxDatetimeComponent], imports: [i1.CommonModule,
|
|
11685
|
-
|
|
11693
|
+
i21.FormsModule,
|
|
11686
11694
|
OwlDateTimeModule,
|
|
11687
11695
|
OwlNativeDateTimeModule], exports: [NgxDatetimeComponent] });
|
|
11688
11696
|
NgxDateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, providers: [], imports: [[
|
|
11689
11697
|
i1.CommonModule,
|
|
11690
|
-
|
|
11698
|
+
i21.FormsModule,
|
|
11691
11699
|
OwlDateTimeModule,
|
|
11692
11700
|
OwlNativeDateTimeModule
|
|
11693
11701
|
]] });
|
|
@@ -11696,7 +11704,7 @@
|
|
|
11696
11704
|
args: [{
|
|
11697
11705
|
imports: [
|
|
11698
11706
|
i1.CommonModule,
|
|
11699
|
-
|
|
11707
|
+
i21.FormsModule,
|
|
11700
11708
|
OwlDateTimeModule,
|
|
11701
11709
|
OwlNativeDateTimeModule
|
|
11702
11710
|
],
|
|
@@ -11776,7 +11784,7 @@
|
|
|
11776
11784
|
AfeNgSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AfeNgSelectComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11777
11785
|
AfeNgSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AfeNgSelectComponent, selector: "ofe-ng-select", inputs: { dataSource: "dataSource", multiple: "multiple", extras: "extras" }, providers: [
|
|
11778
11786
|
{
|
|
11779
|
-
provide:
|
|
11787
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
11780
11788
|
useExisting: i0.forwardRef(function () { return AfeNgSelectComponent; }),
|
|
11781
11789
|
multi: true
|
|
11782
11790
|
}
|
|
@@ -11788,7 +11796,7 @@
|
|
|
11788
11796
|
template: "<ng-select\n (searchInputText)=\"getChangingText($event)\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"question_options\"\n [multiple]=\"multiple\"\n >\n </ng-select> ",
|
|
11789
11797
|
providers: [
|
|
11790
11798
|
{
|
|
11791
|
-
provide:
|
|
11799
|
+
provide: i21.NG_VALUE_ACCESSOR,
|
|
11792
11800
|
useExisting: i0.forwardRef(function () { return AfeNgSelectComponent; }),
|
|
11793
11801
|
multi: true
|
|
11794
11802
|
}
|
|
@@ -15556,12 +15564,12 @@
|
|
|
15556
15564
|
return NgxRemoteSelectModule;
|
|
15557
15565
|
}());
|
|
15558
15566
|
NgxRemoteSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15559
|
-
NgxRemoteSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, declarations: [RemoteSelectComponent], imports: [i1.CommonModule, i1$3.NgSelectModule,
|
|
15560
|
-
NgxRemoteSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, providers: [], imports: [[i1.CommonModule, i1$3.NgSelectModule,
|
|
15567
|
+
NgxRemoteSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, declarations: [RemoteSelectComponent], imports: [i1.CommonModule, i1$3.NgSelectModule, i21.FormsModule], exports: [RemoteSelectComponent] });
|
|
15568
|
+
NgxRemoteSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, providers: [], imports: [[i1.CommonModule, i1$3.NgSelectModule, i21.FormsModule]] });
|
|
15561
15569
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, decorators: [{
|
|
15562
15570
|
type: i0.NgModule,
|
|
15563
15571
|
args: [{
|
|
15564
|
-
imports: [i1.CommonModule, i1$3.NgSelectModule,
|
|
15572
|
+
imports: [i1.CommonModule, i1$3.NgSelectModule, i21.FormsModule],
|
|
15565
15573
|
exports: [RemoteSelectComponent],
|
|
15566
15574
|
declarations: [RemoteSelectComponent],
|
|
15567
15575
|
providers: []
|
|
@@ -15574,14 +15582,14 @@
|
|
|
15574
15582
|
return CheckboxModule;
|
|
15575
15583
|
}());
|
|
15576
15584
|
CheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15577
|
-
CheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, declarations: [CheckboxControlComponent], imports: [i1.CommonModule,
|
|
15578
|
-
CheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, imports: [[i1.CommonModule,
|
|
15585
|
+
CheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, declarations: [CheckboxControlComponent], imports: [i1.CommonModule, i21.FormsModule], exports: [CheckboxControlComponent] });
|
|
15586
|
+
CheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
15579
15587
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, decorators: [{
|
|
15580
15588
|
type: i0.NgModule,
|
|
15581
15589
|
args: [{
|
|
15582
15590
|
declarations: [CheckboxControlComponent],
|
|
15583
15591
|
exports: [CheckboxControlComponent],
|
|
15584
|
-
imports: [i1.CommonModule,
|
|
15592
|
+
imports: [i1.CommonModule, i21.FormsModule]
|
|
15585
15593
|
}]
|
|
15586
15594
|
}] });
|
|
15587
15595
|
|
|
@@ -15591,14 +15599,14 @@
|
|
|
15591
15599
|
return RadioModule;
|
|
15592
15600
|
}());
|
|
15593
15601
|
RadioModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15594
|
-
RadioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, declarations: [RadioButtonControlComponent], imports: [i1.CommonModule,
|
|
15595
|
-
RadioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, imports: [[i1.CommonModule,
|
|
15602
|
+
RadioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, declarations: [RadioButtonControlComponent], imports: [i1.CommonModule, i21.FormsModule], exports: [RadioButtonControlComponent] });
|
|
15603
|
+
RadioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
15596
15604
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, decorators: [{
|
|
15597
15605
|
type: i0.NgModule,
|
|
15598
15606
|
args: [{
|
|
15599
15607
|
declarations: [RadioButtonControlComponent],
|
|
15600
15608
|
exports: [RadioButtonControlComponent],
|
|
15601
|
-
imports: [i1.CommonModule,
|
|
15609
|
+
imports: [i1.CommonModule, i21.FormsModule]
|
|
15602
15610
|
}]
|
|
15603
15611
|
}] });
|
|
15604
15612
|
|
|
@@ -15680,14 +15688,14 @@
|
|
|
15680
15688
|
return SelectModule;
|
|
15681
15689
|
}());
|
|
15682
15690
|
SelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15683
|
-
SelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, declarations: [SelectComponent, OptionDirective, OptGroupDirective], imports: [i1.CommonModule,
|
|
15684
|
-
SelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, imports: [[i1.CommonModule,
|
|
15691
|
+
SelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, declarations: [SelectComponent, OptionDirective, OptGroupDirective], imports: [i1.CommonModule, i21.FormsModule], exports: [SelectComponent, OptionDirective, OptGroupDirective] });
|
|
15692
|
+
SelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
15685
15693
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, decorators: [{
|
|
15686
15694
|
type: i0.NgModule,
|
|
15687
15695
|
args: [{
|
|
15688
15696
|
declarations: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
15689
15697
|
exports: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
15690
|
-
imports: [i1.CommonModule,
|
|
15698
|
+
imports: [i1.CommonModule, i21.FormsModule]
|
|
15691
15699
|
}]
|
|
15692
15700
|
}] });
|
|
15693
15701
|
|
|
@@ -15818,14 +15826,14 @@
|
|
|
15818
15826
|
return InputModule;
|
|
15819
15827
|
}());
|
|
15820
15828
|
InputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15821
|
-
InputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, declarations: [LabelComponent, TextInputDirective, TextAreaDirective], imports: [i1.CommonModule,
|
|
15822
|
-
InputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, imports: [[i1.CommonModule,
|
|
15829
|
+
InputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, declarations: [LabelComponent, TextInputDirective, TextAreaDirective], imports: [i1.CommonModule, i21.FormsModule], exports: [LabelComponent, TextInputDirective, TextAreaDirective] });
|
|
15830
|
+
InputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, imports: [[i1.CommonModule, i21.FormsModule]] });
|
|
15823
15831
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, decorators: [{
|
|
15824
15832
|
type: i0.NgModule,
|
|
15825
15833
|
args: [{
|
|
15826
15834
|
declarations: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
15827
15835
|
exports: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
15828
|
-
imports: [i1.CommonModule,
|
|
15836
|
+
imports: [i1.CommonModule, i21.FormsModule]
|
|
15829
15837
|
}]
|
|
15830
15838
|
}] });
|
|
15831
15839
|
|
|
@@ -15835,13 +15843,13 @@
|
|
|
15835
15843
|
return CustomControlWrapperModule;
|
|
15836
15844
|
}());
|
|
15837
15845
|
CustomControlWrapperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15838
|
-
CustomControlWrapperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, declarations: [CustomControlWrapperComponent], imports: [i1.CommonModule,
|
|
15839
|
-
CustomControlWrapperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, providers: [], imports: [[i1.CommonModule,
|
|
15846
|
+
CustomControlWrapperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, declarations: [CustomControlWrapperComponent], imports: [i1.CommonModule, i21.FormsModule, i2.LazyElementsModule], exports: [CustomControlWrapperComponent] });
|
|
15847
|
+
CustomControlWrapperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, providers: [], imports: [[i1.CommonModule, i21.FormsModule, i2.LazyElementsModule]] });
|
|
15840
15848
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, decorators: [{
|
|
15841
15849
|
type: i0.NgModule,
|
|
15842
15850
|
args: [{
|
|
15843
15851
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
15844
|
-
imports: [i1.CommonModule,
|
|
15852
|
+
imports: [i1.CommonModule, i21.FormsModule, i2.LazyElementsModule],
|
|
15845
15853
|
exports: [CustomControlWrapperComponent],
|
|
15846
15854
|
declarations: [CustomControlWrapperComponent],
|
|
15847
15855
|
providers: []
|
|
@@ -15880,7 +15888,7 @@
|
|
|
15880
15888
|
ErrorRendererComponent,
|
|
15881
15889
|
TimeAgoPipe,
|
|
15882
15890
|
CollapseDirective], imports: [i1.CommonModule,
|
|
15883
|
-
|
|
15891
|
+
i21.ReactiveFormsModule,
|
|
15884
15892
|
SelectModule,
|
|
15885
15893
|
i1$3.NgSelectModule,
|
|
15886
15894
|
NumberInputModule,
|
|
@@ -15901,7 +15909,7 @@
|
|
|
15901
15909
|
NgxDateTimePickerModule,
|
|
15902
15910
|
i4.TranslateModule] });
|
|
15903
15911
|
FormEntryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormEntryModule, providers: [
|
|
15904
|
-
|
|
15912
|
+
i21.FormBuilder,
|
|
15905
15913
|
FormControlService,
|
|
15906
15914
|
FormErrorsService,
|
|
15907
15915
|
ValidationFactory,
|
|
@@ -15923,7 +15931,7 @@
|
|
|
15923
15931
|
DebugModeService
|
|
15924
15932
|
], imports: [[
|
|
15925
15933
|
i1.CommonModule,
|
|
15926
|
-
|
|
15934
|
+
i21.ReactiveFormsModule,
|
|
15927
15935
|
SelectModule,
|
|
15928
15936
|
i1$3.NgSelectModule,
|
|
15929
15937
|
NumberInputModule,
|
|
@@ -15949,7 +15957,7 @@
|
|
|
15949
15957
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
15950
15958
|
imports: [
|
|
15951
15959
|
i1.CommonModule,
|
|
15952
|
-
|
|
15960
|
+
i21.ReactiveFormsModule,
|
|
15953
15961
|
SelectModule,
|
|
15954
15962
|
i1$3.NgSelectModule,
|
|
15955
15963
|
NumberInputModule,
|
|
@@ -15977,7 +15985,7 @@
|
|
|
15977
15985
|
CollapseDirective
|
|
15978
15986
|
],
|
|
15979
15987
|
providers: [
|
|
15980
|
-
|
|
15988
|
+
i21.FormBuilder,
|
|
15981
15989
|
FormControlService,
|
|
15982
15990
|
FormErrorsService,
|
|
15983
15991
|
ValidationFactory,
|