@mtna/web-form-angular 1.0.2-SNAPSHOT.2 → 1.0.2
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/_index.scss +1 -2
- package/bundles/mtna-web-form-angular.umd.js +1219 -539
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/acknowledge-dialog/acknowledge-dialog.component.js +2 -2
- package/esm2015/lib/components/base-form/base-form.component.js +243 -0
- package/esm2015/lib/components/base-form/index.js +2 -0
- package/esm2015/lib/components/base-items/base-group-item.component.js +5 -5
- package/esm2015/lib/components/base-items/base-parent-value-item.component.js +3 -2
- package/esm2015/lib/components/base-items/base-section-item.component.js +6 -5
- package/esm2015/lib/components/form/form.component.js +13 -239
- package/esm2015/lib/components/form-item/form-item.component.js +2 -2
- package/esm2015/lib/components/form-item-component-provider/form-item-injected-components.js +7 -1
- package/esm2015/lib/components/form-item-dialog/form-item-dialog.component.js +6 -5
- package/esm2015/lib/components/form-item-dialog/form-item-dialog.module.js +5 -4
- package/esm2015/lib/components/form-item-impl/boolean/boolean.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.component.js +7 -5
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.module.js +5 -1
- package/esm2015/lib/components/form-item-impl/date/date.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/date-range/date-range.component.js +6 -2
- package/esm2015/lib/components/form-item-impl/dropdown/dropdown.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/file-upload/file-upload.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/form-group/form-group.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/i18n-input/i18n-input.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/input/input.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/search/resource-search.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.component.js +2 -3
- package/esm2015/lib/components/form-stepper/form-step/form-step.component.js +10 -3
- package/esm2015/lib/components/form-stepper/form-step-group/form-step-group.component.js +4 -2
- package/esm2015/lib/components/form-stepper/form-stepper/form-stepper.component.js +52 -10
- package/esm2015/lib/components/form-stepper/form-stepper.module.js +17 -5
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/progressive-form/index.js +3 -0
- package/esm2015/lib/components/progressive-form/progressive-form/index.js +3 -0
- package/esm2015/lib/components/progressive-form/progressive-form/progressive-form.component.js +287 -0
- package/esm2015/lib/components/progressive-form/progressive-form/progressive-form.module.js +68 -0
- package/esm2015/lib/components/progressive-form/progressive-form-section/index.js +3 -0
- package/esm2015/lib/components/progressive-form/progressive-form-section/progressive-form-section.component.js +27 -0
- package/esm2015/lib/components/progressive-form/progressive-form-section/progressive-form-section.module.js +54 -0
- package/esm2015/lib/components/step-card/step-card.component.js +10 -2
- package/esm2015/lib/components/step-card/step-card.module.js +27 -4
- package/esm2015/lib/models/form-stepper/form-step-group.model.js +8 -2
- package/esm2015/lib/models/form-stepper/form-step.model.js +7 -1
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/progressive-form/index.js +4 -0
- package/esm2015/lib/models/progressive-form/outline-step.model.js +2 -0
- package/esm2015/lib/models/progressive-form/progressive-form-section.model.js +6 -0
- package/esm2015/lib/models/progressive-form/progressive-form.model.js +6 -0
- package/esm2015/lib/pipes/child-step-active.pipe.js +28 -0
- package/esm2015/lib/pipes/coerce-form-step-group.pipe.js +29 -0
- package/esm2015/lib/pipes/coerce-form-step.pipe.js +29 -0
- package/esm2015/lib/pipes/date-quarter.pipe.js +13 -13
- package/esm2015/lib/pipes/get-active-form-step-item.pipe.js +33 -0
- package/esm2015/lib/pipes/get-progressive-form-item.pipe.js +40 -0
- package/esm2015/lib/pipes/get-selected-option.pipe.js +4 -3
- package/esm2015/lib/pipes/get-step-aria-label.pipe.js +55 -0
- package/esm2015/lib/pipes/index.js +7 -1
- package/esm2015/lib/pipes/items-with-value.pipe.js +5 -10
- package/esm2015/lib/services/dialog.service.js +4 -3
- package/esm2015/lib/services/form-manager.service.js +19 -7
- package/esm2015/lib/services/ng-form.service.js +7 -1
- package/esm2015/lib/services/ui.service.js +15 -15
- package/esm2015/lib/utilities/generate-form-steps.js +20 -5
- package/esm2015/lib/utilities/serializer-util.js +12 -5
- package/esm2015/lib/utilities/update-step-status.js +1 -1
- package/esm2015/public-api.js +1 -2
- package/fesm2015/mtna-web-form-angular.js +962 -364
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/base-form/base-form.component.d.ts +89 -0
- package/lib/components/base-form/index.d.ts +1 -0
- package/lib/components/base-items/base-group-item.component.d.ts +2 -0
- package/lib/components/base-items/base-section-item.component.d.ts +2 -1
- package/lib/components/form/form.component.d.ts +4 -86
- package/lib/components/form-item-dialog/form-item-dialog.module.d.ts +2 -1
- package/lib/components/form-item-impl/checkbox/_checkbox-theme.scss +11 -2
- package/lib/components/form-item-impl/checkbox/checkbox.component.d.ts +1 -0
- package/lib/components/form-item-impl/checkbox/checkbox.module.d.ts +11 -10
- package/lib/components/form-item-impl/date/date.component.d.ts +1 -0
- package/lib/components/form-item-impl/date-range/date-range.component.d.ts +1 -0
- package/lib/components/form-item-impl/dropdown/_dropdown-theme.scss +35 -0
- package/lib/components/form-item-impl/file-upload/file-upload.component.d.ts +1 -0
- package/lib/components/form-item-impl/i18n-input/i18n-input.component.d.ts +1 -0
- package/lib/components/form-item-impl/input/input.component.d.ts +1 -0
- package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.d.ts +1 -0
- package/lib/components/form-stepper/form-step/form-step.component.d.ts +7 -0
- package/lib/components/form-stepper/form-step-group/form-step-group.component.d.ts +2 -0
- package/lib/components/form-stepper/form-stepper/_form-stepper-theme.scss +30 -15
- package/lib/components/form-stepper/form-stepper/form-stepper.component.d.ts +15 -1
- package/lib/components/form-stepper/form-stepper.module.d.ts +5 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/progressive-form/index.d.ts +2 -0
- package/lib/components/progressive-form/progressive-form/index.d.ts +2 -0
- package/lib/components/progressive-form/progressive-form/progressive-form.component.d.ts +101 -0
- package/lib/components/progressive-form/progressive-form/progressive-form.module.d.ts +19 -0
- package/lib/components/progressive-form/progressive-form-section/index.d.ts +2 -0
- package/lib/components/progressive-form/progressive-form-section/progressive-form-section.component.d.ts +9 -0
- package/lib/components/progressive-form/progressive-form-section/progressive-form-section.module.d.ts +16 -0
- package/lib/components/step-card/step-card.component.d.ts +3 -1
- package/lib/components/step-card/step-card.module.d.ts +2 -1
- package/lib/core/_all-color.scss +2 -2
- package/lib/core/_all-theme.scss +2 -2
- package/lib/core/_all-typography.scss +2 -2
- package/lib/models/form-stepper/form-step-group.model.d.ts +5 -1
- package/lib/models/form-stepper/form-step.model.d.ts +3 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/progressive-form/index.d.ts +3 -0
- package/lib/models/progressive-form/outline-step.model.d.ts +7 -0
- package/lib/models/progressive-form/progressive-form-section.model.d.ts +4 -0
- package/lib/models/progressive-form/progressive-form.model.d.ts +7 -0
- package/lib/pipes/child-step-active.pipe.d.ts +13 -0
- package/lib/pipes/coerce-form-step-group.pipe.d.ts +13 -0
- package/lib/pipes/coerce-form-step.pipe.d.ts +13 -0
- package/lib/pipes/get-active-form-step-item.pipe.d.ts +13 -0
- package/lib/pipes/get-progressive-form-item.pipe.d.ts +14 -0
- package/lib/pipes/get-step-aria-label.pipe.d.ts +17 -0
- package/lib/pipes/index.d.ts +6 -0
- package/lib/pipes/items-with-value.pipe.d.ts +0 -1
- package/lib/services/dialog.service.d.ts +1 -0
- package/lib/services/form-manager.service.d.ts +13 -4
- package/lib/services/ng-form.service.d.ts +6 -0
- package/lib/utilities/generate-form-steps.d.ts +5 -1
- package/lib/utilities/update-step-status.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2015/lib/directives/base-form-item-control.directive.js +0 -58
- package/esm2015/lib/directives/base-parent-item-control.directive.js +0 -42
- package/esm2015/lib/directives/base-single-selection-parent.directive.js +0 -53
- package/esm2015/lib/directives/form-item.directive.js +0 -22
- package/esm2015/lib/directives/index.js +0 -5
- package/lib/directives/base-form-item-control.directive.d.ts +0 -26
- package/lib/directives/base-parent-item-control.directive.d.ts +0 -19
- package/lib/directives/base-single-selection-parent.directive.d.ts +0 -26
- package/lib/directives/form-item.directive.d.ts +0 -13
- package/lib/directives/index.d.ts +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/dialog'), require('@angular/cdk/coercion'), require('@mtna/web-form-ts'), require('rxjs'), require('@angular/forms'), require('@mtna/core-ts'), require('@angular/material/core'), require('@angular/animations'), require('@mtna/pojo-social-angular'), require('@mtna/core-angular'), require('@angular/material/radio'), require('@angular/material/select'), require('@angular/common'), require('@angular/platform-browser'), require('@angular/material/button'), require('@angular/material-moment-adapter'), require('rxjs/operators'), require('@angular/common/http'), require('@mtna/search-manager-angular'), require('@angular/cdk/a11y'), require('@angular/flex-layout'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/flex-layout/flex'), require('@angular/material/card'), require('@angular/material/slide-toggle'), require('@angular/material/checkbox'), require('@angular/material/form-field'), require('@angular/material/datepicker'), require('@angular/material/input'), require('@angular/material/list'), require('@mtna/file-manager-angular'), require('@angular/material/progress-spinner'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@mtna/web-form-angular', ['exports', '@angular/core', '@angular/material/dialog', '@angular/cdk/coercion', '@mtna/web-form-ts', 'rxjs', '@angular/forms', '@mtna/core-ts', '@angular/material/core', '@angular/animations', '@mtna/pojo-social-angular', '@mtna/core-angular', '@angular/material/radio', '@angular/material/select', '@angular/common', '@angular/platform-browser', '@angular/material/button', '@angular/material-moment-adapter', 'rxjs/operators', '@angular/common/http', '@mtna/search-manager-angular', '@angular/cdk/a11y', '@angular/flex-layout', '@angular/material/divider', '@angular/material/icon', '@angular/material/tooltip', '@angular/flex-layout/flex', '@angular/material/card', '@angular/material/slide-toggle', '@angular/material/checkbox', '@angular/material/form-field', '@angular/material/datepicker', '@angular/material/input', '@angular/material/list', '@mtna/file-manager-angular', '@angular/material/progress-spinner', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.mtna = global.mtna || {}, global.mtna["web-form-angular"] = {}), global.ng.core, global.ng.material.dialog, global.ng.cdk.coercion, global.webFormTs, global.rxjs, global.ng.forms, global.coreTs, global.ng.material.core, global.ng.animations, global.i2$1, global.
|
|
5
|
-
})(this, (function (exports, i0, i1, coercion, webFormTs, rxjs, i6, coreTs, i3, animations, i2$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/dialog'), require('@angular/cdk/coercion'), require('@mtna/web-form-ts'), require('rxjs'), require('@angular/forms'), require('@mtna/core-ts'), require('@angular/material/core'), require('@angular/animations'), require('@mtna/pojo-social-angular'), require('@mtna/core-angular'), require('@angular/material/radio'), require('@angular/material/select'), require('@angular/common'), require('@angular/platform-browser'), require('@angular/material/button'), require('@angular/material-moment-adapter'), require('rxjs/operators'), require('@angular/common/http'), require('@mtna/search-manager-angular'), require('@angular/cdk/a11y'), require('@angular/flex-layout'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/flex-layout/flex'), require('@angular/flex-layout/extended'), require('@angular/material/card'), require('@angular/material/slide-toggle'), require('@angular/material/checkbox'), require('@angular/material/form-field'), require('@angular/material/datepicker'), require('@angular/material/input'), require('@angular/material/list'), require('@mtna/file-manager-angular'), require('@angular/material/progress-spinner'), require('@mtna/core-i18n-angular'), require('@angular/material/table')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@mtna/web-form-angular', ['exports', '@angular/core', '@angular/material/dialog', '@angular/cdk/coercion', '@mtna/web-form-ts', 'rxjs', '@angular/forms', '@mtna/core-ts', '@angular/material/core', '@angular/animations', '@mtna/pojo-social-angular', '@mtna/core-angular', '@angular/material/radio', '@angular/material/select', '@angular/common', '@angular/platform-browser', '@angular/material/button', '@angular/material-moment-adapter', 'rxjs/operators', '@angular/common/http', '@mtna/search-manager-angular', '@angular/cdk/a11y', '@angular/flex-layout', '@angular/material/divider', '@angular/material/icon', '@angular/material/tooltip', '@angular/flex-layout/flex', '@angular/flex-layout/extended', '@angular/material/card', '@angular/material/slide-toggle', '@angular/material/checkbox', '@angular/material/form-field', '@angular/material/datepicker', '@angular/material/input', '@angular/material/list', '@mtna/file-manager-angular', '@angular/material/progress-spinner', '@mtna/core-i18n-angular', '@angular/material/table'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.mtna = global.mtna || {}, global.mtna["web-form-angular"] = {}), global.ng.core, global.ng.material.dialog, global.ng.cdk.coercion, global.webFormTs, global.rxjs, global.ng.forms, global.coreTs, global.ng.material.core, global.ng.animations, global.i2$1, global.i4, global.ng.material.radio, global.ng.material.select, global.ng.common, global.ng.platformBrowser, global.ng.material.button, global.ng.materialMomentAdapter, global.rxjs.operators, global.ng.common.http, global.i1$4, global.ng.cdk.a11y, global.ng.flexLayout, global.ng.material.divider, global.ng.material.icon, global.ng.material.tooltip, global.ng.flexLayout.flex, global.ng.flexLayout.extended, global.ng.material.card, global.ng.material.slideToggle, global.ng.material.checkbox, global.ng.material.formField, global.ng.material.datepicker, global.ng.material.input, global.ng.material.list, global.i1$7, global.ng.material.progressSpinner, global.coreI18nAngular, global.ng.material.table));
|
|
5
|
+
})(this, (function (exports, i0, i1, coercion, webFormTs, rxjs, i6, coreTs, i3, animations, i2$1, i4, i1$1, i2, i3$1, i1$2, i3$2, materialMomentAdapter, operators, i1$3, i1$4, i4$1, flexLayout, i2$2, i5, i6$1, i3$3, i7, i1$5, i2$3, i2$4, i1$6, i3$4, i5$1, i4$2, i1$7, i5$2, coreI18nAngular, i1$8) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -27,30 +27,30 @@
|
|
|
27
27
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
28
28
|
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
29
29
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
|
-
var
|
|
31
|
-
var i1__namespace$
|
|
30
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
31
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
32
32
|
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2);
|
|
33
33
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
34
|
-
var i1__namespace$
|
|
34
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
35
35
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
36
|
-
var i1__namespace$
|
|
37
|
-
var i1__namespace$
|
|
38
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
36
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
37
|
+
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
38
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
39
39
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
40
40
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
41
41
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
42
42
|
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
43
|
-
var
|
|
43
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
44
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
44
45
|
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
45
46
|
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
46
|
-
var i1__namespace$
|
|
47
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
47
48
|
var i3__namespace$4 = /*#__PURE__*/_interopNamespace(i3$4);
|
|
48
49
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
49
|
-
var i4__namespace$
|
|
50
|
-
var i1__namespace$
|
|
50
|
+
var i4__namespace$2 = /*#__PURE__*/_interopNamespace(i4$2);
|
|
51
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
51
52
|
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
52
|
-
var
|
|
53
|
-
var i1__namespace$9 = /*#__PURE__*/_interopNamespace(i1$9);
|
|
53
|
+
var i1__namespace$8 = /*#__PURE__*/_interopNamespace(i1$8);
|
|
54
54
|
|
|
55
55
|
/******************************************************************************
|
|
56
56
|
Copyright (c) Microsoft Corporation.
|
|
@@ -529,6 +529,91 @@
|
|
|
529
529
|
__disposeResources: __disposeResources,
|
|
530
530
|
};
|
|
531
531
|
|
|
532
|
+
var BaseFormStep = /** @class */ (function () {
|
|
533
|
+
function BaseFormStep(instanceId) {
|
|
534
|
+
this.instanceId = instanceId;
|
|
535
|
+
}
|
|
536
|
+
return BaseFormStep;
|
|
537
|
+
}());
|
|
538
|
+
|
|
539
|
+
var FormStepGroup = /** @class */ (function (_super) {
|
|
540
|
+
__extends(FormStepGroup, _super);
|
|
541
|
+
function FormStepGroup(steps, instanceId, collapsed, label, num) {
|
|
542
|
+
if (collapsed === void 0) { collapsed = false; }
|
|
543
|
+
var _this = _super.call(this, instanceId) || this;
|
|
544
|
+
_this.steps = steps;
|
|
545
|
+
_this.collapsed = collapsed;
|
|
546
|
+
_this.label = label;
|
|
547
|
+
_this.num = num;
|
|
548
|
+
_this.className = 'FormStepGroup';
|
|
549
|
+
return _this;
|
|
550
|
+
}
|
|
551
|
+
return FormStepGroup;
|
|
552
|
+
}(BaseFormStep));
|
|
553
|
+
function isFormStepGroup(something) {
|
|
554
|
+
return coreTs.isType(something, 'steps') && Array.isArray(something.steps);
|
|
555
|
+
}
|
|
556
|
+
function instanceOfFormStepGroup(something) {
|
|
557
|
+
return coreTs.isType(something, 'className') && something.className === 'FormStepGroup';
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
var FormStep = /** @class */ (function (_super) {
|
|
561
|
+
__extends(FormStep, _super);
|
|
562
|
+
function FormStep(num, label, instanceId, optional) {
|
|
563
|
+
if (optional === void 0) { optional = false; }
|
|
564
|
+
var _this = _super.call(this, instanceId) || this;
|
|
565
|
+
_this.num = num;
|
|
566
|
+
_this.label = label;
|
|
567
|
+
_this.optional = optional;
|
|
568
|
+
_this.className = 'FormStep';
|
|
569
|
+
_this.active = false;
|
|
570
|
+
_this.status = 'INVALID';
|
|
571
|
+
_this.disabled = false;
|
|
572
|
+
return _this;
|
|
573
|
+
}
|
|
574
|
+
return FormStep;
|
|
575
|
+
}(BaseFormStep));
|
|
576
|
+
function instanceOfFormStep(something) {
|
|
577
|
+
return coreTs.isType(something, 'className') && something.className === 'FormStep';
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
var PROGRESSIVE_FORM_ID = 'us.mtna.web.form.impl.ProgressiveFormImpl';
|
|
581
|
+
function isProgressiveForm(something) {
|
|
582
|
+
return coreTs.isType(something, 'itemId') && something.itemId === PROGRESSIVE_FORM_ID;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
var PROGRESSIVE_FORM_SECTION_ID = 'us.mtna.web.form.impl.ProgressiveFormSectionImpl';
|
|
586
|
+
function isProgressiveFormSection(something) {
|
|
587
|
+
return coreTs.isType(something, 'itemId') && something.itemId === PROGRESSIVE_FORM_SECTION_ID;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
var MTNA_WF_API_TOKEN = new i0.InjectionToken('mtnaWfApiConfig');
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Dialog data for a {@link MtnaWfFormItemDialogComponent}
|
|
594
|
+
*/
|
|
595
|
+
var MtnaWfFormItemDialogData = /** @class */ (function () {
|
|
596
|
+
/**
|
|
597
|
+
* @param formItems The form items to render in the dialog
|
|
598
|
+
* @param title optional dialog title
|
|
599
|
+
*/
|
|
600
|
+
function MtnaWfFormItemDialogData(formItems, title) {
|
|
601
|
+
this.formItems = formItems;
|
|
602
|
+
this.title = title;
|
|
603
|
+
}
|
|
604
|
+
return MtnaWfFormItemDialogData;
|
|
605
|
+
}());
|
|
606
|
+
|
|
607
|
+
var MTNA_WF_ITEM_WHITELIST = new i0.InjectionToken('mtna-wf-item-whitelist', {
|
|
608
|
+
providedIn: 'root',
|
|
609
|
+
factory: MTNA_WF_ITEM_WHITELIST_FACTORY,
|
|
610
|
+
});
|
|
611
|
+
function MTNA_WF_ITEM_WHITELIST_FACTORY() {
|
|
612
|
+
return {
|
|
613
|
+
itemTypes: [],
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
|
|
532
617
|
var MTNA_WF_FORM_ITEM_VALIDATION_RESULT_ERROR_NAME = 'formItemValidationResult';
|
|
533
618
|
/**
|
|
534
619
|
* Valitator function that will check the root level {@link FormValidationResult} on
|
|
@@ -768,7 +853,12 @@
|
|
|
768
853
|
*/
|
|
769
854
|
function determineSerializeFunctionToUse(formItem, managerService, customFormItemConditional, customControlGenerator) {
|
|
770
855
|
if (customFormItemConditional === void 0) { customFormItemConditional = function () { return false; }; }
|
|
771
|
-
if (webFormTs.isForm(formItem) ||
|
|
856
|
+
if (webFormTs.isForm(formItem) ||
|
|
857
|
+
isProgressiveForm(formItem) ||
|
|
858
|
+
webFormTs.isRepeatableItem(formItem) ||
|
|
859
|
+
webFormTs.isSection(formItem) ||
|
|
860
|
+
isProgressiveFormSection(formItem) ||
|
|
861
|
+
webFormTs.isFormItemGroupImpl(formItem)) {
|
|
772
862
|
return serializeFormItems(formItem, managerService, customFormItemConditional, customControlGenerator);
|
|
773
863
|
}
|
|
774
864
|
else if (webFormTs.isTableItem(formItem)) {
|
|
@@ -859,7 +949,7 @@
|
|
|
859
949
|
*/
|
|
860
950
|
function determineInsertFunctionToUse(formItem, ngFormValue, disabledState, customFormItemConditional, customFormItemBuilder, parent) {
|
|
861
951
|
if (customFormItemConditional === void 0) { customFormItemConditional = function () { return false; }; }
|
|
862
|
-
if (webFormTs.isSection(formItem) || webFormTs.isFormItemGroupImpl(formItem) || webFormTs.isRepeatableItem(formItem)) {
|
|
952
|
+
if (webFormTs.isSection(formItem) || isProgressiveFormSection(formItem) || webFormTs.isFormItemGroupImpl(formItem) || webFormTs.isRepeatableItem(formItem)) {
|
|
863
953
|
var items = insertFormItemValues(formItem, ngFormValue, disabledState, customFormItemConditional, customFormItemBuilder);
|
|
864
954
|
return Object.assign(Object.assign({}, formItem), { items: items, disabled: _isDisabled(formItem, disabledState) });
|
|
865
955
|
}
|
|
@@ -952,9 +1042,9 @@
|
|
|
952
1042
|
}
|
|
953
1043
|
switch (typeCheck) {
|
|
954
1044
|
case 'MIN':
|
|
955
|
-
return totalSelected >= limit ? null : { minSelected: "Select at least "
|
|
1045
|
+
return totalSelected >= limit ? null : { minSelected: $localize(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["Select at least ", ""], ["Select at least ", ""])), limit) };
|
|
956
1046
|
case 'MAX':
|
|
957
|
-
return totalSelected <= limit ? null : { maxSelected: "Select no more than "
|
|
1047
|
+
return totalSelected <= limit ? null : { maxSelected: $localize(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["Select no more than ", ""], ["Select no more than ", ""])), limit) };
|
|
958
1048
|
}
|
|
959
1049
|
};
|
|
960
1050
|
}
|
|
@@ -1014,6 +1104,7 @@
|
|
|
1014
1104
|
function isEmptyString(value) {
|
|
1015
1105
|
return typeof value === 'string' && !value.length;
|
|
1016
1106
|
}
|
|
1107
|
+
var templateObject_1$g, templateObject_2$5;
|
|
1017
1108
|
|
|
1018
1109
|
var serializerUtil = /*#__PURE__*/Object.freeze({
|
|
1019
1110
|
__proto__: null,
|
|
@@ -1103,70 +1194,6 @@
|
|
|
1103
1194
|
return null;
|
|
1104
1195
|
}
|
|
1105
1196
|
|
|
1106
|
-
var BaseFormStep = /** @class */ (function () {
|
|
1107
|
-
function BaseFormStep(instanceId) {
|
|
1108
|
-
this.instanceId = instanceId;
|
|
1109
|
-
}
|
|
1110
|
-
return BaseFormStep;
|
|
1111
|
-
}());
|
|
1112
|
-
|
|
1113
|
-
var FormStepGroup = /** @class */ (function (_super) {
|
|
1114
|
-
__extends(FormStepGroup, _super);
|
|
1115
|
-
function FormStepGroup(steps, instanceId, collapsed) {
|
|
1116
|
-
if (collapsed === void 0) { collapsed = false; }
|
|
1117
|
-
var _this = _super.call(this, instanceId) || this;
|
|
1118
|
-
_this.steps = steps;
|
|
1119
|
-
_this.collapsed = collapsed;
|
|
1120
|
-
return _this;
|
|
1121
|
-
}
|
|
1122
|
-
return FormStepGroup;
|
|
1123
|
-
}(BaseFormStep));
|
|
1124
|
-
function isFormStepGroup(something) {
|
|
1125
|
-
return coreTs.isType(something, 'steps') && Array.isArray(something.steps);
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
var FormStep = /** @class */ (function (_super) {
|
|
1129
|
-
__extends(FormStep, _super);
|
|
1130
|
-
function FormStep(num, label, instanceId, optional) {
|
|
1131
|
-
if (optional === void 0) { optional = false; }
|
|
1132
|
-
var _this = _super.call(this, instanceId) || this;
|
|
1133
|
-
_this.num = num;
|
|
1134
|
-
_this.label = label;
|
|
1135
|
-
_this.optional = optional;
|
|
1136
|
-
_this.active = false;
|
|
1137
|
-
_this.status = 'INVALID';
|
|
1138
|
-
return _this;
|
|
1139
|
-
}
|
|
1140
|
-
return FormStep;
|
|
1141
|
-
}(BaseFormStep));
|
|
1142
|
-
|
|
1143
|
-
var MTNA_WF_API_TOKEN = new i0.InjectionToken('mtnaWfApiConfig');
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* Dialog data for a {@link MtnaWfFormItemDialogComponent}
|
|
1147
|
-
*/
|
|
1148
|
-
var MtnaWfFormItemDialogData = /** @class */ (function () {
|
|
1149
|
-
/**
|
|
1150
|
-
* @param formItems The form items to render in the dialog
|
|
1151
|
-
* @param title optional dialog title
|
|
1152
|
-
*/
|
|
1153
|
-
function MtnaWfFormItemDialogData(formItems, title) {
|
|
1154
|
-
this.formItems = formItems;
|
|
1155
|
-
this.title = title;
|
|
1156
|
-
}
|
|
1157
|
-
return MtnaWfFormItemDialogData;
|
|
1158
|
-
}());
|
|
1159
|
-
|
|
1160
|
-
var MTNA_WF_ITEM_WHITELIST = new i0.InjectionToken('mtna-wf-item-whitelist', {
|
|
1161
|
-
providedIn: 'root',
|
|
1162
|
-
factory: MTNA_WF_ITEM_WHITELIST_FACTORY,
|
|
1163
|
-
});
|
|
1164
|
-
function MTNA_WF_ITEM_WHITELIST_FACTORY() {
|
|
1165
|
-
return {
|
|
1166
|
-
itemTypes: [],
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
1197
|
/**
|
|
1171
1198
|
* Flattens formStepGroup.steps and combines all steps into single array
|
|
1172
1199
|
* @param steps Array<FormStep | FormStepGroup>
|
|
@@ -1225,7 +1252,7 @@
|
|
|
1225
1252
|
if (allSteps) {
|
|
1226
1253
|
newArray.push(new FormStep(count + 1, item.name || 'No Title', item.instanceId, !item.required));
|
|
1227
1254
|
}
|
|
1228
|
-
else if (webFormTs.isSection(item)) {
|
|
1255
|
+
else if (webFormTs.isSection(item) || isProgressiveFormSection(item)) {
|
|
1229
1256
|
// If the item is a Section, add a step
|
|
1230
1257
|
newArray.push(new FormStep(count + 1, item.title.value || 'No Title', item.instanceId, !item.required));
|
|
1231
1258
|
}
|
|
@@ -1233,9 +1260,24 @@
|
|
|
1233
1260
|
// If the item is a DataCubeItem, add a step and add a group step for the sub-sections
|
|
1234
1261
|
newArray.push(new FormStep(count + 1, item.title.value || '', item.instanceId, !item.required));
|
|
1235
1262
|
var subSectionSteps = item.items
|
|
1236
|
-
.filter(webFormTs.isSection)
|
|
1263
|
+
.filter(webFormTs.isSection || isProgressiveFormSection)
|
|
1237
1264
|
.map(function (item, index) { return new FormStep("" + (count + 1) + coreTs.toLetters(index + 1), item.title.value || '', item.instanceId, !item.required); });
|
|
1238
|
-
newArray.push(new FormStepGroup(subSectionSteps, item.instanceId, false));
|
|
1265
|
+
newArray.push(new FormStepGroup(subSectionSteps, item.instanceId, false, item.name, count + 1));
|
|
1266
|
+
}
|
|
1267
|
+
return newArray;
|
|
1268
|
+
}, []);
|
|
1269
|
+
}
|
|
1270
|
+
function generateFormStepsFromOutline(outline) {
|
|
1271
|
+
return outline.reduce(function (newArray, step) {
|
|
1272
|
+
// The number of non-group steps, used to number the top level steps
|
|
1273
|
+
var count = newArray.filter(function (step) { return !isFormStepGroup(step); }).length;
|
|
1274
|
+
if (step.childSteps && step.childSteps.length > 0) {
|
|
1275
|
+
newArray.push(new FormStep(count + 1, step.label, step.instanceId || step.templateId, step.optional));
|
|
1276
|
+
var subSectionSteps = step.childSteps.map(function (item, index) { return new FormStep("" + (count + 1) + coreTs.toLetters(index + 1), item.label, item.instanceId || item.templateId, item.optional); });
|
|
1277
|
+
newArray.push(new FormStepGroup(subSectionSteps, step.instanceId || step.templateId, false, step.label, count + 1));
|
|
1278
|
+
}
|
|
1279
|
+
else {
|
|
1280
|
+
newArray.push(new FormStep(count + 1, step.label, step.instanceId || step.templateId, step.optional));
|
|
1239
1281
|
}
|
|
1240
1282
|
return newArray;
|
|
1241
1283
|
}, []);
|
|
@@ -1310,24 +1352,22 @@
|
|
|
1310
1352
|
|
|
1311
1353
|
/** List of default error messages to display */
|
|
1312
1354
|
var DEFAULT_ERROR_MESSAGES = {
|
|
1313
|
-
email:
|
|
1355
|
+
email: $localize(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["This field must include a valid email format."], ["This field must include a valid email format."]))),
|
|
1314
1356
|
max: function (item) { return !coreTs.isPresent(item) || !coreTs.isPresent(item === null || item === void 0 ? void 0 : item.maxValue)
|
|
1315
|
-
? "This field's value must be less."
|
|
1316
|
-
|
|
1317
|
-
maxlength: 'This field has exceeded the allowed maximum.',
|
|
1357
|
+
? $localize(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["This field's value must be less."], ["This field's value must be less."]))) : coreTs.isPresent(item === null || item === void 0 ? void 0 : item.minValue) ? $localize(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["Min value: ", " - "], ["Min value: ", " - "])), item.minValue) : '' + $localize(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["Max value: ", ""], ["Max value: ", ""])), item.maxValue); },
|
|
1358
|
+
maxlength: $localize(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["This field has exceeded the allowed maximum."], ["This field has exceeded the allowed maximum."]))),
|
|
1318
1359
|
maxSelected: null,
|
|
1319
1360
|
min: function (item) { return !coreTs.isPresent(item) || !coreTs.isPresent(item === null || item === void 0 ? void 0 : item.minValue)
|
|
1320
|
-
? "This field's value must be greater."
|
|
1321
|
-
|
|
1322
|
-
minlength: 'This field has not met the required minimum.',
|
|
1361
|
+
? $localize(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["This field's value must be greater."], ["This field's value must be greater."]))) : $localize(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["Min Value: ", ""], ["Min Value: ", ""])), item.minValue) + coreTs.isPresent(item === null || item === void 0 ? void 0 : item.maxValue) ? $localize(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject([" - Max Value: ", ""], [" - Max Value: ", ""])), item.maxValue) : ''; },
|
|
1362
|
+
minlength: $localize(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["This field has not met the required minimum."], ["This field has not met the required minimum."]))),
|
|
1323
1363
|
minSelected: null,
|
|
1324
|
-
nonDigit: "This field's value must be numeric.",
|
|
1325
|
-
pattern: "This field's input does not meet the accepted pattern.",
|
|
1326
|
-
positive: "This field's value cannot be negative.",
|
|
1327
|
-
required:
|
|
1328
|
-
requiredTrue: "
|
|
1329
|
-
wholeNumber: "This field cannot contain a decimal.",
|
|
1330
|
-
matDatepickerParse: "This field's value is not an accepted format.",
|
|
1364
|
+
nonDigit: $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["This field's value must be numeric."], ["This field's value must be numeric."]))),
|
|
1365
|
+
pattern: $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["This field's input does not meet the accepted pattern."], ["This field's input does not meet the accepted pattern."]))),
|
|
1366
|
+
positive: $localize(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["This field's value cannot be negative."], ["This field's value cannot be negative."]))),
|
|
1367
|
+
required: $localize(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["This field is required."], ["This field is required."]))),
|
|
1368
|
+
requiredTrue: "$localizeThis field's value must be 'true'.",
|
|
1369
|
+
wholeNumber: $localize(templateObject_14 || (templateObject_14 = __makeTemplateObject(["This field cannot contain a decimal."], ["This field cannot contain a decimal."]))),
|
|
1370
|
+
matDatepickerParse: $localize(templateObject_15 || (templateObject_15 = __makeTemplateObject(["This field's value is not an accepted format."], ["This field's value is not an accepted format."]))),
|
|
1331
1371
|
};
|
|
1332
1372
|
var WEB_FORM_CUSTOM_ERRORS = new i0.InjectionToken('mtnaWebFormCustomFormErrors');
|
|
1333
1373
|
var MtnaWfUIService = /** @class */ (function () {
|
|
@@ -1670,8 +1710,9 @@
|
|
|
1670
1710
|
args: [WEB_FORM_CUSTOM_ERRORS]
|
|
1671
1711
|
}] }];
|
|
1672
1712
|
} });
|
|
1713
|
+
var templateObject_1$f, templateObject_2$4, templateObject_3$3, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$2, templateObject_8$2, templateObject_9$2, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$1, templateObject_14, templateObject_15;
|
|
1673
1714
|
|
|
1674
|
-
var _BaseFormItemComponent =
|
|
1715
|
+
var _BaseFormItemComponent = i4.mixinDestroyNotifier(/** @class */ (function () {
|
|
1675
1716
|
function class_1() {
|
|
1676
1717
|
}
|
|
1677
1718
|
return class_1;
|
|
@@ -1795,8 +1836,8 @@
|
|
|
1795
1836
|
/* eslint-disable-next-line @angular-eslint/component-class-suffix */
|
|
1796
1837
|
var MtnaWfBaseGroupItem = /** @class */ (function (_super) {
|
|
1797
1838
|
__extends(MtnaWfBaseGroupItem, _super);
|
|
1798
|
-
function MtnaWfBaseGroupItem() {
|
|
1799
|
-
var _this = _super.
|
|
1839
|
+
function MtnaWfBaseGroupItem(cdr) {
|
|
1840
|
+
var _this = _super.call(this, cdr) || this;
|
|
1800
1841
|
_this._parentIds = new Array();
|
|
1801
1842
|
return _this;
|
|
1802
1843
|
}
|
|
@@ -1815,14 +1856,14 @@
|
|
|
1815
1856
|
};
|
|
1816
1857
|
return MtnaWfBaseGroupItem;
|
|
1817
1858
|
}(MtnaWfBaseFormItemControl));
|
|
1818
|
-
MtnaWfBaseGroupItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseGroupItem, deps:
|
|
1859
|
+
MtnaWfBaseGroupItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseGroupItem, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1819
1860
|
MtnaWfBaseGroupItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfBaseGroupItem, selector: "ng-component", inputs: { parentIds: "parentIds" }, usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
1820
1861
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseGroupItem, decorators: [{
|
|
1821
1862
|
type: i0.Component,
|
|
1822
1863
|
args: [{
|
|
1823
1864
|
template: "",
|
|
1824
1865
|
}]
|
|
1825
|
-
}], propDecorators: { parentIds: [{
|
|
1866
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { parentIds: [{
|
|
1826
1867
|
type: i0.Input
|
|
1827
1868
|
}] } });
|
|
1828
1869
|
|
|
@@ -1899,7 +1940,8 @@
|
|
|
1899
1940
|
return _super.prototype.control;
|
|
1900
1941
|
},
|
|
1901
1942
|
set: function (control) {
|
|
1902
|
-
|
|
1943
|
+
// Checks for a wrapping form group around this item.
|
|
1944
|
+
if (control instanceof i6.FormGroup && control.get(this.item.instanceId)) {
|
|
1903
1945
|
_super.prototype.control = control.get(this.item.instanceId);
|
|
1904
1946
|
this.controlWrapper = control;
|
|
1905
1947
|
}
|
|
@@ -1928,8 +1970,8 @@
|
|
|
1928
1970
|
/* eslint-disable-next-line @angular-eslint/component-class-suffix */
|
|
1929
1971
|
var MtnaWfBaseSectionItem = /** @class */ (function (_super) {
|
|
1930
1972
|
__extends(MtnaWfBaseSectionItem, _super);
|
|
1931
|
-
function MtnaWfBaseSectionItem() {
|
|
1932
|
-
var _this = _super.
|
|
1973
|
+
function MtnaWfBaseSectionItem(cdr) {
|
|
1974
|
+
var _this = _super.call(this, cdr) || this;
|
|
1933
1975
|
_this.focused = new i0.EventEmitter();
|
|
1934
1976
|
return _this;
|
|
1935
1977
|
}
|
|
@@ -1939,20 +1981,21 @@
|
|
|
1939
1981
|
},
|
|
1940
1982
|
set: function (value) {
|
|
1941
1983
|
this._step = value;
|
|
1984
|
+
console.warn({ value: value });
|
|
1942
1985
|
},
|
|
1943
1986
|
enumerable: false,
|
|
1944
1987
|
configurable: true
|
|
1945
1988
|
});
|
|
1946
1989
|
return MtnaWfBaseSectionItem;
|
|
1947
1990
|
}(MtnaWfBaseGroupItem));
|
|
1948
|
-
MtnaWfBaseSectionItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseSectionItem, deps:
|
|
1991
|
+
MtnaWfBaseSectionItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseSectionItem, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1949
1992
|
MtnaWfBaseSectionItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfBaseSectionItem, selector: "ng-component", inputs: { step: "step" }, outputs: { focused: "focused" }, usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
1950
1993
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseSectionItem, decorators: [{
|
|
1951
1994
|
type: i0.Component,
|
|
1952
1995
|
args: [{
|
|
1953
1996
|
template: "",
|
|
1954
1997
|
}]
|
|
1955
|
-
}], propDecorators: { step: [{
|
|
1998
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { step: [{
|
|
1956
1999
|
type: i0.Input
|
|
1957
2000
|
}], focused: [{
|
|
1958
2001
|
type: i0.Output
|
|
@@ -1979,7 +2022,7 @@
|
|
|
1979
2022
|
MtnaWfBaseSingleSelectionParentValueItem.prototype.selectionChange = function (change) {
|
|
1980
2023
|
// event fires when an option's nested item, e.g. FileUploadItem, changes value.
|
|
1981
2024
|
// This event is not a MatRadioChange, so we need to ignore it.
|
|
1982
|
-
if (change instanceof i1$
|
|
2025
|
+
if (change instanceof i1$1.MatRadioChange || change instanceof i2.MatSelectChange) {
|
|
1983
2026
|
// Newly selected option
|
|
1984
2027
|
var option = this.item.options.find(function (o) { return o.option.id === change.value; });
|
|
1985
2028
|
if (!!this.selectedOption && this.selectedOption.option.id !== change.value) {
|
|
@@ -2171,8 +2214,8 @@
|
|
|
2171
2214
|
}
|
|
2172
2215
|
};
|
|
2173
2216
|
return MtnaWfItemInjector;
|
|
2174
|
-
}(
|
|
2175
|
-
MtnaWfItemInjector.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemInjector, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ViewContainerRef }, { token:
|
|
2217
|
+
}(i4.MtnaComponentInjector));
|
|
2218
|
+
MtnaWfItemInjector.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemInjector, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ViewContainerRef }, { token: i4.INJECTION_SERVICE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2176
2219
|
MtnaWfItemInjector.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfItemInjector, selector: "mtna-wf-item-injector", inputs: { color: "color", control: "control", header: "header", indicatorStatus: "indicatorStatus", inList: "inList", item: "item", parentIds: "parentIds", readonly: "readonly", step: "step" }, outputs: { focusedSection: "focusedSection", toggleFormItems: "toggleFormItems" }, usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
2177
2220
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemInjector, decorators: [{
|
|
2178
2221
|
type: i0.Component,
|
|
@@ -2181,9 +2224,9 @@
|
|
|
2181
2224
|
template: "",
|
|
2182
2225
|
}]
|
|
2183
2226
|
}], ctorParameters: function () {
|
|
2184
|
-
return [{ type: i0__namespace.Injector }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ViewContainerRef }, { type:
|
|
2227
|
+
return [{ type: i0__namespace.Injector }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ViewContainerRef }, { type: i4__namespace.InjectionService, decorators: [{
|
|
2185
2228
|
type: i0.Inject,
|
|
2186
|
-
args: [
|
|
2229
|
+
args: [i4.INJECTION_SERVICE]
|
|
2187
2230
|
}] }];
|
|
2188
2231
|
}, propDecorators: { color: [{
|
|
2189
2232
|
type: i0.Input
|
|
@@ -2221,14 +2264,14 @@
|
|
|
2221
2264
|
};
|
|
2222
2265
|
return MtnaWfSanitizeHtmlPipe;
|
|
2223
2266
|
}());
|
|
2224
|
-
MtnaWfSanitizeHtmlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfSanitizeHtmlPipe, deps: [{ token: i1__namespace$
|
|
2267
|
+
MtnaWfSanitizeHtmlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfSanitizeHtmlPipe, deps: [{ token: i1__namespace$1.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2225
2268
|
MtnaWfSanitizeHtmlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfSanitizeHtmlPipe, name: "mtnaWfSanitizeHtml" });
|
|
2226
2269
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfSanitizeHtmlPipe, decorators: [{
|
|
2227
2270
|
type: i0.Pipe,
|
|
2228
2271
|
args: [{
|
|
2229
2272
|
name: 'mtnaWfSanitizeHtml',
|
|
2230
2273
|
}]
|
|
2231
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$
|
|
2274
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.DomSanitizer }]; } });
|
|
2232
2275
|
var MtnaWfSanitizeHtmlPipeModule = /** @class */ (function () {
|
|
2233
2276
|
function MtnaWfSanitizeHtmlPipeModule() {
|
|
2234
2277
|
}
|
|
@@ -2437,7 +2480,7 @@
|
|
|
2437
2480
|
return MtnaWfFormItemComponent;
|
|
2438
2481
|
}());
|
|
2439
2482
|
MtnaWfFormItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemComponent, deps: [{ token: i0__namespace.ElementRef }, { token: MtnaWfUIService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2440
|
-
MtnaWfFormItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: { color: "color", control: "control", header: "header", inList: "inList", item: "item", parentIds: "parentIds", readonly: "readonly", step: "step" }, outputs: { focusedSection: "focusedSection" }, host: { properties: { "@mtnaWfExpandCollapse": "this.visible", "attr.id": "this.elementId" } }, ngImport: i0__namespace, template: "<mtna-annotations-indicator\n *ngIf=\"item.annotationEnabled\"\n [annotatableId]=\"item.annotatableId\"\n color=\"primary\"\n [count]=\"annotations$ | async\"\n (status)=\"updateIndicatorStatus($event)\"\n></mtna-annotations-indicator>\n\n<mtna-wf-item-injector\n [color]=\"color\"\n [control]=\"control\"\n [header]=\"header\"\n [indicatorStatus]=\"indicatorStatus$.value\"\n [inList]=\"inList\"\n [item]=\"item\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n [step]=\"step\"\n (focusedSection)=\"focusedSection.emit($event)\"\n (toggleFormItems)=\"toggleFormItems($event)\"\n></mtna-wf-item-injector>\n\n<ng-template #header let-hideRequiredMarker=\"hideRequiredMarker\">\n <mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control?.disabled\"\n [hideRequiredMarker]=\"hideRequiredMarker\"\n [invalid]=\"control?.invalid && (control?.dirty || control?.touched)\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n ></mtna-wf-item-header>\n</ng-template>\n
|
|
2483
|
+
MtnaWfFormItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: { color: "color", control: "control", header: "header", inList: "inList", item: "item", parentIds: "parentIds", readonly: "readonly", step: "step" }, outputs: { focusedSection: "focusedSection" }, host: { properties: { "@mtnaWfExpandCollapse": "this.visible", "attr.id": "this.elementId" } }, ngImport: i0__namespace, template: "<mtna-annotations-indicator\n *ngIf=\"item.annotationEnabled\"\n [annotatableId]=\"item.annotatableId\"\n color=\"primary\"\n [count]=\"annotations$ | async\"\n (status)=\"updateIndicatorStatus($event)\"\n></mtna-annotations-indicator>\n\n<mtna-wf-item-injector\n [color]=\"color\"\n [control]=\"control\"\n [header]=\"header\"\n [indicatorStatus]=\"indicatorStatus$.value\"\n [inList]=\"inList\"\n [item]=\"item\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n [step]=\"step\"\n (focusedSection)=\"focusedSection.emit($event)\"\n (toggleFormItems)=\"toggleFormItems($event)\"\n></mtna-wf-item-injector>\n\n<ng-template #header let-hideRequiredMarker=\"hideRequiredMarker\">\n <mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control?.disabled\"\n [hideRequiredMarker]=\"hideRequiredMarker\"\n [invalid]=\"control?.invalid && (control?.dirty || control?.touched)\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n ></mtna-wf-item-header>\n</ng-template>\n", styles: ["mtna-wf-item{display:block;position:relative}mtna-wf-item mtna-annotations-indicator{position:absolute;top:0;right:0;z-index:2}mtna-wf-item .mat-list-base{padding-top:0}\n"], components: [{ type: i2__namespace.MtnaAnnotationsIndicatorComponent, selector: "mtna-annotations-indicator", inputs: ["color", "annotatableId", "annotatableItemName", "count"], outputs: ["status"] }, { type: MtnaWfItemInjector, selector: "mtna-wf-item-injector", inputs: ["color", "control", "header", "indicatorStatus", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection", "toggleFormItems"] }, { type: MtnaWfItemHeaderComponent, selector: "mtna-wf-item-header", inputs: ["descriptiveText", "disabled", "hideRequiredMarker", "invalid", "questionText", "required"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3__namespace.AsyncPipe }, animations: [MTNA_WF_EXPAND_COLLAPSE], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2441
2484
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemComponent, decorators: [{
|
|
2442
2485
|
type: i0.Component,
|
|
2443
2486
|
args: [{
|
|
@@ -2485,7 +2528,7 @@
|
|
|
2485
2528
|
return MtnaWfAcknowledgeDialogComponent;
|
|
2486
2529
|
}());
|
|
2487
2530
|
MtnaWfAcknowledgeDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfAcknowledgeDialogComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2488
|
-
MtnaWfAcknowledgeDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfAcknowledgeDialogComponent, selector: "mtna-wf-acknowledge-dialog", ngImport: i0__namespace, template: "<h2 *ngIf=\"data.title as title\" mat-dialog-title>{{ title }}</h2>\n<mat-dialog-content>\n <mtna-wf-item *ngFor=\"let item of data.formItems\" [item]=\"item\" [readonly]=\"true\"></mtna-wf-item>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button [mat-dialog-close]=\"false\" mat-button>CANCEL</button>\n <button [mat-dialog-close]=\"true\" color=\"accent\" mat-raised-button>ACKNOWLEDGE</button>\n</mat-dialog-actions>\n", components: [{ type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
2531
|
+
MtnaWfAcknowledgeDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfAcknowledgeDialogComponent, selector: "mtna-wf-acknowledge-dialog", ngImport: i0__namespace, template: "<h2 *ngIf=\"data.title as title\" mat-dialog-title>{{ title }}</h2>\n<mat-dialog-content>\n <mtna-wf-item *ngFor=\"let item of data.formItems\" [item]=\"item\" [readonly]=\"true\"></mtna-wf-item>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button [mat-dialog-close]=\"false\" mat-button i18n>CANCEL</button>\n <button [mat-dialog-close]=\"true\" color=\"accent\" mat-raised-button i18n>ACKNOWLEDGE</button>\n</mat-dialog-actions>\n", components: [{ type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
2489
2532
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfAcknowledgeDialogComponent, decorators: [{
|
|
2490
2533
|
type: i0.Component,
|
|
2491
2534
|
args: [{
|
|
@@ -2516,6 +2559,38 @@
|
|
|
2516
2559
|
}]
|
|
2517
2560
|
}] });
|
|
2518
2561
|
|
|
2562
|
+
var ChildStepActivePipe = /** @class */ (function () {
|
|
2563
|
+
function ChildStepActivePipe() {
|
|
2564
|
+
}
|
|
2565
|
+
ChildStepActivePipe.prototype.transform = function (steps) {
|
|
2566
|
+
return steps.some(function (step) { return step.active; });
|
|
2567
|
+
};
|
|
2568
|
+
return ChildStepActivePipe;
|
|
2569
|
+
}());
|
|
2570
|
+
ChildStepActivePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2571
|
+
ChildStepActivePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipe, name: "childStepActive" });
|
|
2572
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipe, decorators: [{
|
|
2573
|
+
type: i0.Pipe,
|
|
2574
|
+
args: [{
|
|
2575
|
+
name: 'childStepActive'
|
|
2576
|
+
}]
|
|
2577
|
+
}] });
|
|
2578
|
+
var ChildStepActivePipeModule = /** @class */ (function () {
|
|
2579
|
+
function ChildStepActivePipeModule() {
|
|
2580
|
+
}
|
|
2581
|
+
return ChildStepActivePipeModule;
|
|
2582
|
+
}());
|
|
2583
|
+
ChildStepActivePipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2584
|
+
ChildStepActivePipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipeModule, declarations: [ChildStepActivePipe], exports: [ChildStepActivePipe] });
|
|
2585
|
+
ChildStepActivePipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipeModule });
|
|
2586
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChildStepActivePipeModule, decorators: [{
|
|
2587
|
+
type: i0.NgModule,
|
|
2588
|
+
args: [{
|
|
2589
|
+
declarations: [ChildStepActivePipe],
|
|
2590
|
+
exports: [ChildStepActivePipe]
|
|
2591
|
+
}]
|
|
2592
|
+
}] });
|
|
2593
|
+
|
|
2519
2594
|
var MtnaWfGetObjectTypePipe = /** @class */ (function () {
|
|
2520
2595
|
function MtnaWfGetObjectTypePipe() {
|
|
2521
2596
|
}
|
|
@@ -2714,28 +2789,92 @@
|
|
|
2714
2789
|
}]
|
|
2715
2790
|
}] });
|
|
2716
2791
|
|
|
2792
|
+
var CoerceFormStepGroupPipe = /** @class */ (function () {
|
|
2793
|
+
function CoerceFormStepGroupPipe() {
|
|
2794
|
+
}
|
|
2795
|
+
CoerceFormStepGroupPipe.prototype.transform = function (value) {
|
|
2796
|
+
return instanceOfFormStepGroup(value) ? value : null;
|
|
2797
|
+
};
|
|
2798
|
+
return CoerceFormStepGroupPipe;
|
|
2799
|
+
}());
|
|
2800
|
+
CoerceFormStepGroupPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2801
|
+
CoerceFormStepGroupPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipe, name: "coerceFormStepGroup" });
|
|
2802
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipe, decorators: [{
|
|
2803
|
+
type: i0.Pipe,
|
|
2804
|
+
args: [{
|
|
2805
|
+
name: 'coerceFormStepGroup',
|
|
2806
|
+
}]
|
|
2807
|
+
}] });
|
|
2808
|
+
var CoerceFormStepGroupPipeModule = /** @class */ (function () {
|
|
2809
|
+
function CoerceFormStepGroupPipeModule() {
|
|
2810
|
+
}
|
|
2811
|
+
return CoerceFormStepGroupPipeModule;
|
|
2812
|
+
}());
|
|
2813
|
+
CoerceFormStepGroupPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2814
|
+
CoerceFormStepGroupPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipeModule, declarations: [CoerceFormStepGroupPipe], exports: [CoerceFormStepGroupPipe] });
|
|
2815
|
+
CoerceFormStepGroupPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipeModule });
|
|
2816
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepGroupPipeModule, decorators: [{
|
|
2817
|
+
type: i0.NgModule,
|
|
2818
|
+
args: [{
|
|
2819
|
+
declarations: [CoerceFormStepGroupPipe],
|
|
2820
|
+
exports: [CoerceFormStepGroupPipe],
|
|
2821
|
+
}]
|
|
2822
|
+
}] });
|
|
2823
|
+
|
|
2824
|
+
var CoerceFormStepPipe = /** @class */ (function () {
|
|
2825
|
+
function CoerceFormStepPipe() {
|
|
2826
|
+
}
|
|
2827
|
+
CoerceFormStepPipe.prototype.transform = function (value) {
|
|
2828
|
+
return instanceOfFormStep(value) ? value : null;
|
|
2829
|
+
};
|
|
2830
|
+
return CoerceFormStepPipe;
|
|
2831
|
+
}());
|
|
2832
|
+
CoerceFormStepPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2833
|
+
CoerceFormStepPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipe, name: "coerceFormStep" });
|
|
2834
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipe, decorators: [{
|
|
2835
|
+
type: i0.Pipe,
|
|
2836
|
+
args: [{
|
|
2837
|
+
name: 'coerceFormStep'
|
|
2838
|
+
}]
|
|
2839
|
+
}] });
|
|
2840
|
+
var CoerceFormStepPipeModule = /** @class */ (function () {
|
|
2841
|
+
function CoerceFormStepPipeModule() {
|
|
2842
|
+
}
|
|
2843
|
+
return CoerceFormStepPipeModule;
|
|
2844
|
+
}());
|
|
2845
|
+
CoerceFormStepPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2846
|
+
CoerceFormStepPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipeModule, declarations: [CoerceFormStepPipe], exports: [CoerceFormStepPipe] });
|
|
2847
|
+
CoerceFormStepPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipeModule });
|
|
2848
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoerceFormStepPipeModule, decorators: [{
|
|
2849
|
+
type: i0.NgModule,
|
|
2850
|
+
args: [{
|
|
2851
|
+
declarations: [CoerceFormStepPipe],
|
|
2852
|
+
exports: [CoerceFormStepPipe],
|
|
2853
|
+
}]
|
|
2854
|
+
}] });
|
|
2855
|
+
|
|
2717
2856
|
var MtnaWfDateQuarterPipe = /** @class */ (function () {
|
|
2718
2857
|
function MtnaWfDateQuarterPipe() {
|
|
2719
2858
|
}
|
|
2720
2859
|
MtnaWfDateQuarterPipe.prototype.transform = function (quarter, format) {
|
|
2721
2860
|
if (format === void 0) { format = 'short'; }
|
|
2722
2861
|
var short = {
|
|
2723
|
-
0:
|
|
2724
|
-
1:
|
|
2725
|
-
2:
|
|
2726
|
-
3:
|
|
2862
|
+
0: $localize(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["Q1"], ["Q1"]))),
|
|
2863
|
+
1: $localize(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["Q2"], ["Q2"]))),
|
|
2864
|
+
2: $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["Q3"], ["Q3"]))),
|
|
2865
|
+
3: $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["Q4"], ["Q4"]))),
|
|
2727
2866
|
};
|
|
2728
2867
|
var medium = {
|
|
2729
|
-
0:
|
|
2730
|
-
1:
|
|
2731
|
-
2:
|
|
2732
|
-
3:
|
|
2868
|
+
0: $localize(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["1st Quarter"], ["1st Quarter"]))),
|
|
2869
|
+
1: $localize(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["2nd Quarter"], ["2nd Quarter"]))),
|
|
2870
|
+
2: $localize(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["3rd Quarter"], ["3rd Quarter"]))),
|
|
2871
|
+
3: $localize(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["4th Quarter"], ["4th Quarter"]))),
|
|
2733
2872
|
};
|
|
2734
2873
|
var long = {
|
|
2735
|
-
0:
|
|
2736
|
-
1:
|
|
2737
|
-
2:
|
|
2738
|
-
3:
|
|
2874
|
+
0: $localize(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["First Quarter"], ["First Quarter"]))),
|
|
2875
|
+
1: $localize(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["Second Quarter"], ["Second Quarter"]))),
|
|
2876
|
+
2: $localize(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["Third Quarter"], ["Third Quarter"]))),
|
|
2877
|
+
3: $localize(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["Fourth Quarter"], ["Fourth Quarter"]))),
|
|
2739
2878
|
};
|
|
2740
2879
|
switch (format) {
|
|
2741
2880
|
case 'short':
|
|
@@ -2773,6 +2912,7 @@
|
|
|
2773
2912
|
exports: [MtnaWfDateQuarterPipe],
|
|
2774
2913
|
}]
|
|
2775
2914
|
}] });
|
|
2915
|
+
var templateObject_1$e, templateObject_2$3, templateObject_3$2, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1;
|
|
2776
2916
|
|
|
2777
2917
|
/**
|
|
2778
2918
|
* Pipe to determine if a FormStep is a FormStepGroup or a single step.
|
|
@@ -2809,6 +2949,43 @@
|
|
|
2809
2949
|
}]
|
|
2810
2950
|
}] });
|
|
2811
2951
|
|
|
2952
|
+
var GetActiveFormStepItemPipe = /** @class */ (function () {
|
|
2953
|
+
function GetActiveFormStepItemPipe() {
|
|
2954
|
+
}
|
|
2955
|
+
GetActiveFormStepItemPipe.prototype.transform = function (items, activeStepId) {
|
|
2956
|
+
if (!items || !activeStepId) {
|
|
2957
|
+
return undefined;
|
|
2958
|
+
}
|
|
2959
|
+
else {
|
|
2960
|
+
return items.find(function (item) { return item.instanceId === activeStepId; });
|
|
2961
|
+
}
|
|
2962
|
+
};
|
|
2963
|
+
return GetActiveFormStepItemPipe;
|
|
2964
|
+
}());
|
|
2965
|
+
GetActiveFormStepItemPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2966
|
+
GetActiveFormStepItemPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipe, name: "getActiveFormStepItem" });
|
|
2967
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipe, decorators: [{
|
|
2968
|
+
type: i0.Pipe,
|
|
2969
|
+
args: [{
|
|
2970
|
+
name: 'getActiveFormStepItem',
|
|
2971
|
+
}]
|
|
2972
|
+
}] });
|
|
2973
|
+
var GetActiveFormStepItemPipeModule = /** @class */ (function () {
|
|
2974
|
+
function GetActiveFormStepItemPipeModule() {
|
|
2975
|
+
}
|
|
2976
|
+
return GetActiveFormStepItemPipeModule;
|
|
2977
|
+
}());
|
|
2978
|
+
GetActiveFormStepItemPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2979
|
+
GetActiveFormStepItemPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipeModule, declarations: [GetActiveFormStepItemPipe], exports: [GetActiveFormStepItemPipe] });
|
|
2980
|
+
GetActiveFormStepItemPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipeModule });
|
|
2981
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetActiveFormStepItemPipeModule, decorators: [{
|
|
2982
|
+
type: i0.NgModule,
|
|
2983
|
+
args: [{
|
|
2984
|
+
declarations: [GetActiveFormStepItemPipe],
|
|
2985
|
+
exports: [GetActiveFormStepItemPipe],
|
|
2986
|
+
}]
|
|
2987
|
+
}] });
|
|
2988
|
+
|
|
2812
2989
|
var MtnaWfGetAutoCompletePipe = /** @class */ (function () {
|
|
2813
2990
|
function MtnaWfGetAutoCompletePipe() {
|
|
2814
2991
|
}
|
|
@@ -3014,15 +3191,60 @@
|
|
|
3014
3191
|
}]
|
|
3015
3192
|
}] });
|
|
3016
3193
|
|
|
3194
|
+
var GetProgressiveFormItemPipe = /** @class */ (function () {
|
|
3195
|
+
function GetProgressiveFormItemPipe() {
|
|
3196
|
+
}
|
|
3197
|
+
GetProgressiveFormItemPipe.prototype.transform = function (step, items) {
|
|
3198
|
+
if (items) {
|
|
3199
|
+
var item = items.find(function (item) { return item.instanceId || item.templateId === step.instanceId; });
|
|
3200
|
+
console.warn({ itemFromPipe: item });
|
|
3201
|
+
if (item) {
|
|
3202
|
+
return item;
|
|
3203
|
+
}
|
|
3204
|
+
else {
|
|
3205
|
+
return undefined;
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
else {
|
|
3209
|
+
return undefined;
|
|
3210
|
+
}
|
|
3211
|
+
};
|
|
3212
|
+
return GetProgressiveFormItemPipe;
|
|
3213
|
+
}());
|
|
3214
|
+
GetProgressiveFormItemPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
3215
|
+
GetProgressiveFormItemPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipe, name: "getProgressiveFormItem" });
|
|
3216
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipe, decorators: [{
|
|
3217
|
+
type: i0.Pipe,
|
|
3218
|
+
args: [{
|
|
3219
|
+
name: 'getProgressiveFormItem',
|
|
3220
|
+
}]
|
|
3221
|
+
}] });
|
|
3222
|
+
var GetProgressiveFormItemPipeModule = /** @class */ (function () {
|
|
3223
|
+
function GetProgressiveFormItemPipeModule() {
|
|
3224
|
+
}
|
|
3225
|
+
return GetProgressiveFormItemPipeModule;
|
|
3226
|
+
}());
|
|
3227
|
+
GetProgressiveFormItemPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3228
|
+
GetProgressiveFormItemPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipeModule, declarations: [GetProgressiveFormItemPipe], exports: [GetProgressiveFormItemPipe] });
|
|
3229
|
+
GetProgressiveFormItemPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipeModule });
|
|
3230
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetProgressiveFormItemPipeModule, decorators: [{
|
|
3231
|
+
type: i0.NgModule,
|
|
3232
|
+
args: [{
|
|
3233
|
+
declarations: [GetProgressiveFormItemPipe],
|
|
3234
|
+
exports: [GetProgressiveFormItemPipe],
|
|
3235
|
+
}]
|
|
3236
|
+
}] });
|
|
3237
|
+
|
|
3017
3238
|
var MtnaWfGetSelectedOptionNamePipe = /** @class */ (function () {
|
|
3018
3239
|
function MtnaWfGetSelectedOptionNamePipe() {
|
|
3019
3240
|
}
|
|
3020
3241
|
MtnaWfGetSelectedOptionNamePipe.prototype.transform = function (id, options) {
|
|
3242
|
+
var _notApplicableText = $localize(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["N/A"], ["N/A"])));
|
|
3021
3243
|
if (!options || !id) {
|
|
3022
|
-
return
|
|
3244
|
+
return _notApplicableText;
|
|
3023
3245
|
}
|
|
3024
3246
|
var foundOption = options.find(function (o) { return o.option.id === id; });
|
|
3025
|
-
return foundOption ? foundOption.option.name :
|
|
3247
|
+
return foundOption ? foundOption.option.name : _notApplicableText;
|
|
3026
3248
|
};
|
|
3027
3249
|
return MtnaWfGetSelectedOptionNamePipe;
|
|
3028
3250
|
}());
|
|
@@ -3049,31 +3271,87 @@
|
|
|
3049
3271
|
exports: [MtnaWfGetSelectedOptionNamePipe],
|
|
3050
3272
|
}]
|
|
3051
3273
|
}] });
|
|
3274
|
+
var templateObject_1$d;
|
|
3052
3275
|
|
|
3053
|
-
/**
|
|
3054
|
-
|
|
3055
|
-
* Use only for readonly forms
|
|
3056
|
-
*/
|
|
3057
|
-
var MtnaWfItemsWithValuePipe = /** @class */ (function () {
|
|
3058
|
-
function MtnaWfItemsWithValuePipe() {
|
|
3059
|
-
this.itemsCache = [];
|
|
3060
|
-
}
|
|
3061
|
-
MtnaWfItemsWithValuePipe.prototype.transform = function (items) {
|
|
3276
|
+
var GetStepAriaLabel = /** @class */ (function () {
|
|
3277
|
+
function GetStepAriaLabel() {
|
|
3062
3278
|
var _a;
|
|
3063
|
-
|
|
3064
|
-
|
|
3279
|
+
this.stepStatusTextMap = (_a = {},
|
|
3280
|
+
_a['INVALID'] = $localize(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["Invalid"], ["Invalid"]))),
|
|
3281
|
+
_a['VALID'] = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["Valid"], ["Valid"]))),
|
|
3282
|
+
_a['DISABLED'] = $localize(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["Disabled"], ["Disabled"]))),
|
|
3283
|
+
_a['ERROR'] = $localize(templateObject_4 || (templateObject_4 = __makeTemplateObject(["Error"], ["Error"]))),
|
|
3284
|
+
_a['PENDING'] = $localize(templateObject_5 || (templateObject_5 = __makeTemplateObject(["Pending"], ["Pending"]))),
|
|
3285
|
+
_a['EMPTY'] = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject(["Empty"], ["Empty"]))),
|
|
3286
|
+
_a['INCOMPLETE'] = $localize(templateObject_7 || (templateObject_7 = __makeTemplateObject(["Incomplete"], ["Incomplete"]))),
|
|
3287
|
+
_a['PLACEHOLDER'] = $localize(templateObject_8 || (templateObject_8 = __makeTemplateObject(["Placeholder"], ["Placeholder"]))),
|
|
3288
|
+
_a);
|
|
3289
|
+
}
|
|
3290
|
+
GetStepAriaLabel.prototype.transform = function (step, collapsed) {
|
|
3291
|
+
var stepText = $localize(templateObject_9 || (templateObject_9 = __makeTemplateObject(["Step"], ["Step"])));
|
|
3292
|
+
if (instanceOfFormStepGroup(step)) {
|
|
3293
|
+
var collapsedText = collapsed ? $localize(templateObject_10 || (templateObject_10 = __makeTemplateObject(["collapsed step"], ["collapsed step"]))) : $localize(templateObject_11 || (templateObject_11 = __makeTemplateObject(["expanded step"], ["expanded step"])));
|
|
3294
|
+
var childStepsActiveText = step.steps.some(function (childStep) { return childStep.active; }) ? $localize(templateObject_12 || (templateObject_12 = __makeTemplateObject(["Child step active."], ["Child step active."]))) : '';
|
|
3295
|
+
return stepText + " " + step.num + ": " + step.label + " - " + collapsedText + ". " + childStepsActiveText;
|
|
3296
|
+
}
|
|
3297
|
+
else if (instanceOfFormStep(step)) {
|
|
3298
|
+
var status = step.status === 'EMPTY' || step.status === 'PLACEHOLDER' ? undefined : this.stepStatusTextMap[step.status];
|
|
3299
|
+
var activeText = step.active ? $localize(templateObject_13 || (templateObject_13 = __makeTemplateObject(["Active step"], ["Active step"]))) : undefined;
|
|
3300
|
+
return stepText + " " + step.num + ": " + step.label + " " + (status ? ' - ' + status : '') + (activeText ? ' - ' + activeText : '') + ".";
|
|
3301
|
+
}
|
|
3302
|
+
else {
|
|
3303
|
+
// Handle for unexpected types. Should never reach this point because the step should always be a FormStep or a FormStepGroup.
|
|
3304
|
+
return '';
|
|
3065
3305
|
}
|
|
3066
|
-
this.itemsCache = !items ? [] : items.filter(webFormTs.isValueItem);
|
|
3067
|
-
return this.itemsCache;
|
|
3068
3306
|
};
|
|
3069
|
-
return
|
|
3307
|
+
return GetStepAriaLabel;
|
|
3070
3308
|
}());
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
3309
|
+
GetStepAriaLabel.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabel, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
3310
|
+
GetStepAriaLabel.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabel, name: "getStepAriaLabel" });
|
|
3311
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabel, decorators: [{
|
|
3074
3312
|
type: i0.Pipe,
|
|
3075
3313
|
args: [{
|
|
3076
|
-
name: '
|
|
3314
|
+
name: 'getStepAriaLabel',
|
|
3315
|
+
}]
|
|
3316
|
+
}] });
|
|
3317
|
+
var GetStepAriaLabelModule = /** @class */ (function () {
|
|
3318
|
+
function GetStepAriaLabelModule() {
|
|
3319
|
+
}
|
|
3320
|
+
return GetStepAriaLabelModule;
|
|
3321
|
+
}());
|
|
3322
|
+
GetStepAriaLabelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabelModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3323
|
+
GetStepAriaLabelModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabelModule, declarations: [GetStepAriaLabel], exports: [GetStepAriaLabel] });
|
|
3324
|
+
GetStepAriaLabelModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabelModule });
|
|
3325
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GetStepAriaLabelModule, decorators: [{
|
|
3326
|
+
type: i0.NgModule,
|
|
3327
|
+
args: [{
|
|
3328
|
+
declarations: [GetStepAriaLabel],
|
|
3329
|
+
exports: [GetStepAriaLabel],
|
|
3330
|
+
}]
|
|
3331
|
+
}] });
|
|
3332
|
+
var templateObject_1$c, templateObject_2$2, templateObject_3$1, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
3333
|
+
|
|
3334
|
+
/**
|
|
3335
|
+
* Returns an array of FormItems that contain a value.
|
|
3336
|
+
* Use only for readonly forms
|
|
3337
|
+
*/
|
|
3338
|
+
var MtnaWfItemsWithValuePipe = /** @class */ (function () {
|
|
3339
|
+
function MtnaWfItemsWithValuePipe() {
|
|
3340
|
+
}
|
|
3341
|
+
MtnaWfItemsWithValuePipe.prototype.transform = function (items) {
|
|
3342
|
+
var list = items ? items.filter(webFormTs.isValueItem) : [];
|
|
3343
|
+
console.error({ items: items });
|
|
3344
|
+
console.error({ list: list });
|
|
3345
|
+
return list;
|
|
3346
|
+
};
|
|
3347
|
+
return MtnaWfItemsWithValuePipe;
|
|
3348
|
+
}());
|
|
3349
|
+
MtnaWfItemsWithValuePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemsWithValuePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
3350
|
+
MtnaWfItemsWithValuePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemsWithValuePipe, name: "mtnaWfItemsWithValue", pure: false });
|
|
3351
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfItemsWithValuePipe, decorators: [{
|
|
3352
|
+
type: i0.Pipe,
|
|
3353
|
+
args: [{
|
|
3354
|
+
name: 'mtnaWfItemsWithValue',
|
|
3077
3355
|
pure: false,
|
|
3078
3356
|
}]
|
|
3079
3357
|
}] });
|
|
@@ -3217,7 +3495,7 @@
|
|
|
3217
3495
|
};
|
|
3218
3496
|
return MtnaWfApiService;
|
|
3219
3497
|
}());
|
|
3220
|
-
MtnaWfApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, deps: [{ token: MTNA_WF_API_TOKEN }, { token: i1__namespace$
|
|
3498
|
+
MtnaWfApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, deps: [{ token: MTNA_WF_API_TOKEN }, { token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3221
3499
|
MtnaWfApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, providedIn: 'root' });
|
|
3222
3500
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, decorators: [{
|
|
3223
3501
|
type: i0.Injectable,
|
|
@@ -3226,7 +3504,7 @@
|
|
|
3226
3504
|
return [{ type: undefined, decorators: [{
|
|
3227
3505
|
type: i0.Inject,
|
|
3228
3506
|
args: [MTNA_WF_API_TOKEN]
|
|
3229
|
-
}] }, { type: i1__namespace$
|
|
3507
|
+
}] }, { type: i1__namespace$2.HttpClient }];
|
|
3230
3508
|
} });
|
|
3231
3509
|
|
|
3232
3510
|
/**
|
|
@@ -3240,7 +3518,7 @@
|
|
|
3240
3518
|
return MtnaWfFormItemDialogComponent;
|
|
3241
3519
|
}());
|
|
3242
3520
|
MtnaWfFormItemDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3243
|
-
MtnaWfFormItemDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormItemDialogComponent, selector: "mtna-wf-form-item-dialog", ngImport: i0__namespace, template: "<h2 *ngIf=\"data.title as title\" mat-dialog-title>{{ title }}</h2>\n<mat-dialog-content>\n <mtna-wf-item *ngFor=\"let item of data.formItems\" [item]=\"item\" [readonly]=\"true\"></mtna-wf-item>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-button mat-dialog-close>Close</button>\n</mat-dialog-actions>\n", components: [{ type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
3521
|
+
MtnaWfFormItemDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormItemDialogComponent, selector: "mtna-wf-form-item-dialog", ngImport: i0__namespace, template: "<h2 *ngIf=\"data.title as title\" mat-dialog-title>{{ title }}</h2>\n<mat-dialog-content>\n <mtna-wf-item *ngFor=\"let item of data.formItems\" [item]=\"item\" [readonly]=\"true\"></mtna-wf-item>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close color=\"primary\" i18n>Close</button>\n</mat-dialog-actions>\n", components: [{ type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
3244
3522
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogComponent, decorators: [{
|
|
3245
3523
|
type: i0.Component,
|
|
3246
3524
|
args: [{
|
|
@@ -3257,6 +3535,7 @@
|
|
|
3257
3535
|
var MtnaWfDialogService = /** @class */ (function () {
|
|
3258
3536
|
function MtnaWfDialogService(dialog) {
|
|
3259
3537
|
this.dialog = dialog;
|
|
3538
|
+
this._acknowledgementText = $localize(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["Acknowledgement"], ["Acknowledgement"])));
|
|
3260
3539
|
}
|
|
3261
3540
|
/**
|
|
3262
3541
|
* Display the acknowledgement the user agreed to for a given option.
|
|
@@ -3265,7 +3544,7 @@
|
|
|
3265
3544
|
MtnaWfDialogService.prototype.showAcknowledgement = function (acknowledgementItem) {
|
|
3266
3545
|
this.dialog.open(MtnaWfFormItemDialogComponent, {
|
|
3267
3546
|
closeOnNavigation: true,
|
|
3268
|
-
data: new MtnaWfFormItemDialogData(acknowledgementItem.items, acknowledgementItem.title.value ||
|
|
3547
|
+
data: new MtnaWfFormItemDialogData(acknowledgementItem.items, acknowledgementItem.title.value || this._acknowledgementText),
|
|
3269
3548
|
disableClose: false,
|
|
3270
3549
|
hasBackdrop: true,
|
|
3271
3550
|
maxWidth: '500px',
|
|
@@ -3280,7 +3559,7 @@
|
|
|
3280
3559
|
return this.dialog
|
|
3281
3560
|
.open(MtnaWfAcknowledgeDialogComponent, {
|
|
3282
3561
|
closeOnNavigation: true,
|
|
3283
|
-
data: new MtnaWfFormItemDialogData(acknowledgementItem.items, acknowledgementItem.title.value ||
|
|
3562
|
+
data: new MtnaWfFormItemDialogData(acknowledgementItem.items, acknowledgementItem.title.value || this._acknowledgementText),
|
|
3284
3563
|
disableClose: true,
|
|
3285
3564
|
hasBackdrop: true,
|
|
3286
3565
|
maxWidth: '500px',
|
|
@@ -3295,7 +3574,14 @@
|
|
|
3295
3574
|
type: i0.Injectable,
|
|
3296
3575
|
args: [{ providedIn: 'root' }]
|
|
3297
3576
|
}], ctorParameters: function () { return [{ type: i1__namespace.MatDialog }]; } });
|
|
3577
|
+
var templateObject_1$b;
|
|
3298
3578
|
|
|
3579
|
+
/**
|
|
3580
|
+
* This service manages and interacts with an Angular FormGroup. It provides functionality
|
|
3581
|
+
* to add or remove form controls dynamically, track the form's state, and notify other
|
|
3582
|
+
* components about unsaved changes. This service is used to centralize form handling and
|
|
3583
|
+
* state management, providing a reliableway to monitor and respond to form changes.
|
|
3584
|
+
*/
|
|
3299
3585
|
var MtnaWfNgFormService = /** @class */ (function () {
|
|
3300
3586
|
function MtnaWfNgFormService() {
|
|
3301
3587
|
this.unsavedChanges$ = new rxjs.BehaviorSubject(false);
|
|
@@ -3455,12 +3741,13 @@
|
|
|
3455
3741
|
* @export
|
|
3456
3742
|
*/
|
|
3457
3743
|
var MtnaWfManagerService = /** @class */ (function () {
|
|
3458
|
-
function MtnaWfManagerService(apiService,
|
|
3744
|
+
function MtnaWfManagerService(apiService, ngFormService, uiService) {
|
|
3459
3745
|
this.apiService = apiService;
|
|
3460
|
-
this.
|
|
3746
|
+
this.ngFormService = ngFormService;
|
|
3461
3747
|
this.uiService = uiService;
|
|
3462
3748
|
this.components = new Map();
|
|
3463
3749
|
this.formChange$ = new rxjs.Subject();
|
|
3750
|
+
this.progressiveFormChange$ = new rxjs.Subject();
|
|
3464
3751
|
/** A map of all {@link FormItemValidationResult} keyed on id */
|
|
3465
3752
|
this._formItemValidationResults = {};
|
|
3466
3753
|
/**
|
|
@@ -3499,7 +3786,7 @@
|
|
|
3499
3786
|
var newForm = this._modifyFormItem(this._mtnaForm, change);
|
|
3500
3787
|
// modify the conditions of all effected form items
|
|
3501
3788
|
newForm = this._modifyFormItemConditions(newForm, change);
|
|
3502
|
-
this.
|
|
3789
|
+
this.ngFormService.removeControl(change.id, change.parentIds);
|
|
3503
3790
|
this.formChange$.next(newForm);
|
|
3504
3791
|
}
|
|
3505
3792
|
else {
|
|
@@ -3509,7 +3796,7 @@
|
|
|
3509
3796
|
.subscribe(function (newItem) {
|
|
3510
3797
|
var newFormControl = _this.serializeMtnaFormItem(newItem);
|
|
3511
3798
|
if (newFormControl && _this._mtnaForm) {
|
|
3512
|
-
_this.
|
|
3799
|
+
_this.ngFormService.addControl(newItem.instanceId, change.parentIds, newFormControl);
|
|
3513
3800
|
// Add the new repeatable item into the mtnaform
|
|
3514
3801
|
var newForm = _this._modifyFormItem(_this._mtnaForm, Object.assign(Object.assign({}, change), { id: newItem.instanceId }), newItem);
|
|
3515
3802
|
// Generate a list of all formitem conditions needing change & modify those items in the form
|
|
@@ -3539,6 +3826,16 @@
|
|
|
3539
3826
|
MtnaWfManagerService.prototype.getFormItemValidationResults = function () {
|
|
3540
3827
|
return this._formItemValidationResults;
|
|
3541
3828
|
};
|
|
3829
|
+
/**
|
|
3830
|
+
* Returns a new MtnaForm using the MtnaForm & reacive form values from the MtnaWfNgFormService's internal form.
|
|
3831
|
+
*
|
|
3832
|
+
* @param ngFormValues JSON object of ngFormValues
|
|
3833
|
+
* @returns
|
|
3834
|
+
*/
|
|
3835
|
+
MtnaWfManagerService.prototype.updateForm = function (ngFormValues) {
|
|
3836
|
+
var currentForm = this.ngFormService.getFormValue();
|
|
3837
|
+
return Object.assign(Object.assign({}, currentForm), { items: insertFormItemValues(currentForm, ngFormValues, this.uiService.getDisabledStates(), this.dynamicFormConditional, this.dynamicWebFormItemBuilder) });
|
|
3838
|
+
};
|
|
3542
3839
|
/**
|
|
3543
3840
|
* Returns a new MtnaForm using the previous MtnaForm & reactive form values.
|
|
3544
3841
|
*
|
|
@@ -3669,7 +3966,7 @@
|
|
|
3669
3966
|
return item;
|
|
3670
3967
|
}
|
|
3671
3968
|
}
|
|
3672
|
-
if (webFormTs.isForm(item) || webFormTs.isSection(item) || webFormTs.isFormItemGroupImpl(item) || webFormTs.isRepeatableItem(item)) {
|
|
3969
|
+
if (webFormTs.isForm(item) || webFormTs.isSection(item) || isProgressiveFormSection(item) || webFormTs.isFormItemGroupImpl(item) || webFormTs.isRepeatableItem(item)) {
|
|
3673
3970
|
var items = __spreadArray([], __read(item.items));
|
|
3674
3971
|
var indexToModify = item.items.findIndex(function (i) { return i.instanceId === change.parentIds[0]; });
|
|
3675
3972
|
var itemToModify = item.items[indexToModify];
|
|
@@ -3976,7 +4273,7 @@
|
|
|
3976
4273
|
}
|
|
3977
4274
|
}
|
|
3978
4275
|
// Only revalidate controls actually changes
|
|
3979
|
-
var form = this.
|
|
4276
|
+
var form = this.ngFormService.getForm();
|
|
3980
4277
|
if (form) {
|
|
3981
4278
|
try {
|
|
3982
4279
|
for (var controlIdsToRevalidate_1 = __values(controlIdsToRevalidate), controlIdsToRevalidate_1_1 = controlIdsToRevalidate_1.next(); !controlIdsToRevalidate_1_1.done; controlIdsToRevalidate_1_1 = controlIdsToRevalidate_1.next()) {
|
|
@@ -4023,38 +4320,21 @@
|
|
|
4023
4320
|
return model.uri === ((_a = result.getFieldByName('uri')) === null || _a === void 0 ? void 0 : _a.value);
|
|
4024
4321
|
};
|
|
4025
4322
|
return MtnaWfResourceSearchSelectionService;
|
|
4026
|
-
}(i1$
|
|
4323
|
+
}(i1$4.MtnaSearchSelectionService));
|
|
4027
4324
|
MtnaWfResourceSearchSelectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchSelectionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
4028
4325
|
MtnaWfResourceSearchSelectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchSelectionService });
|
|
4029
4326
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchSelectionService, decorators: [{
|
|
4030
4327
|
type: i0.Injectable
|
|
4031
4328
|
}] });
|
|
4032
4329
|
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
function MtnaWfFormDisablerComponent() {
|
|
4036
|
-
this.formDisabled = false;
|
|
4330
|
+
var _BaseFormComponent = i4.mixinDestroyNotifier(/** @class */ (function () {
|
|
4331
|
+
function class_1() {
|
|
4037
4332
|
}
|
|
4038
|
-
return
|
|
4039
|
-
}());
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
type: i0.Component,
|
|
4044
|
-
args: [{
|
|
4045
|
-
selector: '[formDisabled]',
|
|
4046
|
-
template: "\n <fieldset [disabled]=\"formDisabled\">\n <ng-content></ng-content>\n </fieldset>\n ",
|
|
4047
|
-
styles: [
|
|
4048
|
-
"\n fieldset {\n display: block;\n margin: unset;\n padding: unset;\n border: unset;\n }\n ",
|
|
4049
|
-
],
|
|
4050
|
-
}]
|
|
4051
|
-
}], propDecorators: { formDisabled: [{
|
|
4052
|
-
type: i0.Input
|
|
4053
|
-
}] } });
|
|
4054
|
-
|
|
4055
|
-
var MtnaWfFormComponent = /** @class */ (function (_super) {
|
|
4056
|
-
__extends(MtnaWfFormComponent, _super);
|
|
4057
|
-
function MtnaWfFormComponent(mtnaFormManager, ngFormService, uiService) {
|
|
4333
|
+
return class_1;
|
|
4334
|
+
}()));
|
|
4335
|
+
var MtnaWfBaseFormComponent = /** @class */ (function (_super) {
|
|
4336
|
+
__extends(MtnaWfBaseFormComponent, _super);
|
|
4337
|
+
function MtnaWfBaseFormComponent(mtnaFormManager, ngFormService, uiService) {
|
|
4058
4338
|
var _this = _super.call(this) || this;
|
|
4059
4339
|
_this.mtnaFormManager = mtnaFormManager;
|
|
4060
4340
|
_this.ngFormService = ngFormService;
|
|
@@ -4076,14 +4356,14 @@
|
|
|
4076
4356
|
_this._subscribeAndEmitMtnaFormChanges();
|
|
4077
4357
|
return _this;
|
|
4078
4358
|
}
|
|
4079
|
-
Object.defineProperty(
|
|
4359
|
+
Object.defineProperty(MtnaWfBaseFormComponent.prototype, "annotations", {
|
|
4080
4360
|
set: function (map) {
|
|
4081
4361
|
this.uiService.registerAnnotations(map);
|
|
4082
4362
|
},
|
|
4083
4363
|
enumerable: false,
|
|
4084
4364
|
configurable: true
|
|
4085
4365
|
});
|
|
4086
|
-
Object.defineProperty(
|
|
4366
|
+
Object.defineProperty(MtnaWfBaseFormComponent.prototype, "emitStatusOnMtnaFormChange", {
|
|
4087
4367
|
/** Whether to emit the status of each step each time the {@link mtnaForm} is set to a new value. Defaults to false.*/
|
|
4088
4368
|
get: function () {
|
|
4089
4369
|
return this._emitStatusOnMtnaFormChange;
|
|
@@ -4094,7 +4374,7 @@
|
|
|
4094
4374
|
enumerable: false,
|
|
4095
4375
|
configurable: true
|
|
4096
4376
|
});
|
|
4097
|
-
Object.defineProperty(
|
|
4377
|
+
Object.defineProperty(MtnaWfBaseFormComponent.prototype, "mtnaForm", {
|
|
4098
4378
|
get: function () {
|
|
4099
4379
|
return this._mtnaForm;
|
|
4100
4380
|
},
|
|
@@ -4120,7 +4400,7 @@
|
|
|
4120
4400
|
enumerable: false,
|
|
4121
4401
|
configurable: true
|
|
4122
4402
|
});
|
|
4123
|
-
Object.defineProperty(
|
|
4403
|
+
Object.defineProperty(MtnaWfBaseFormComponent.prototype, "steps", {
|
|
4124
4404
|
/**
|
|
4125
4405
|
* The form can contain sections not included in the steps.
|
|
4126
4406
|
* To avoid misalignment of steps-to-sections, we map each step to
|
|
@@ -4151,7 +4431,7 @@
|
|
|
4151
4431
|
enumerable: false,
|
|
4152
4432
|
configurable: true
|
|
4153
4433
|
});
|
|
4154
|
-
Object.defineProperty(
|
|
4434
|
+
Object.defineProperty(MtnaWfBaseFormComponent.prototype, "readonly", {
|
|
4155
4435
|
get: function () {
|
|
4156
4436
|
return this.readonly$.value;
|
|
4157
4437
|
},
|
|
@@ -4164,20 +4444,20 @@
|
|
|
4164
4444
|
enumerable: false,
|
|
4165
4445
|
configurable: true
|
|
4166
4446
|
});
|
|
4167
|
-
|
|
4447
|
+
MtnaWfBaseFormComponent.prototype.ngAfterViewInit = function () {
|
|
4168
4448
|
var afterViewInitDate = new Date();
|
|
4169
4449
|
var secondsToRender = (afterViewInitDate.getTime() - this._constructionDate.getTime()) / 1000;
|
|
4170
4450
|
console.warn('[MtnaFormComponent] afterViewInit - took ', secondsToRender, ' to render');
|
|
4171
4451
|
};
|
|
4172
|
-
|
|
4452
|
+
MtnaWfBaseFormComponent.prototype.ngOnDestroy = function () {
|
|
4173
4453
|
_super.prototype.ngOnDestroy.call(this);
|
|
4174
4454
|
this.uiService.resetComponentMap();
|
|
4175
4455
|
};
|
|
4176
|
-
|
|
4456
|
+
MtnaWfBaseFormComponent.prototype._trackByInstanceId = function (index, formItem) {
|
|
4177
4457
|
return formItem.instanceId;
|
|
4178
4458
|
};
|
|
4179
4459
|
/** Subscribe and emit form status changes for the steps. */
|
|
4180
|
-
|
|
4460
|
+
MtnaWfBaseFormComponent.prototype._checkAndSubscribeToFormStatus = function () {
|
|
4181
4461
|
var _this = this;
|
|
4182
4462
|
// Only subscribe once both the steps and the angular have been initialized
|
|
4183
4463
|
if (this.ngForm && this._steps) {
|
|
@@ -4198,9 +4478,9 @@
|
|
|
4198
4478
|
/**
|
|
4199
4479
|
* Find a form control with the given name, then emit it's status.
|
|
4200
4480
|
*
|
|
4201
|
-
* @param name — The unique name of the form
|
|
4481
|
+
* @param name — The unique name of the form control to find and emit the status for.
|
|
4202
4482
|
*/
|
|
4203
|
-
|
|
4483
|
+
MtnaWfBaseFormComponent.prototype._emitFormControlStatus = function (name) {
|
|
4204
4484
|
if (this.ngForm) {
|
|
4205
4485
|
var control = findFormControl(name, this.ngForm);
|
|
4206
4486
|
if (control) {
|
|
@@ -4214,7 +4494,7 @@
|
|
|
4214
4494
|
/**
|
|
4215
4495
|
* @param emitInitialValues Whether to emit initial step values or just listen for future changes
|
|
4216
4496
|
*/
|
|
4217
|
-
|
|
4497
|
+
MtnaWfBaseFormComponent.prototype._emitInitialStepsStatusAndSubscribeToChanges = function (emitInitialValues) {
|
|
4218
4498
|
var _this = this;
|
|
4219
4499
|
if (this._steps && this.ngForm) {
|
|
4220
4500
|
this._unsubscribeFromNgFormChanges();
|
|
@@ -4231,9 +4511,9 @@
|
|
|
4231
4511
|
});
|
|
4232
4512
|
}
|
|
4233
4513
|
// Subscribe to status changes of each step & emit on change
|
|
4234
|
-
this_1._ngFormStatusChangeSub.add(control.statusChanges
|
|
4235
|
-
.
|
|
4236
|
-
|
|
4514
|
+
this_1._ngFormStatusChangeSub.add(control.statusChanges.pipe(operators.takeUntil(this_1.destroyed$), operators.distinctUntilChanged()).subscribe(function (status) {
|
|
4515
|
+
_this.status.emit({ id: key, status: status });
|
|
4516
|
+
}));
|
|
4237
4517
|
}
|
|
4238
4518
|
}
|
|
4239
4519
|
};
|
|
@@ -4249,7 +4529,7 @@
|
|
|
4249
4529
|
* When the form is not readonly, we subscribe to form status & form item changes, so we can emit them.
|
|
4250
4530
|
* When the form is readonly, we do not want to emit any changes, so we unsubscribe.
|
|
4251
4531
|
*/
|
|
4252
|
-
|
|
4532
|
+
MtnaWfBaseFormComponent.prototype._subscribeAndEmitMtnaFormChanges = function () {
|
|
4253
4533
|
var _this = this;
|
|
4254
4534
|
this.readonly$
|
|
4255
4535
|
.pipe(operators.takeUntil(this.destroyed$),
|
|
@@ -4265,7 +4545,7 @@
|
|
|
4265
4545
|
}
|
|
4266
4546
|
});
|
|
4267
4547
|
};
|
|
4268
|
-
|
|
4548
|
+
MtnaWfBaseFormComponent.prototype._handleFormSerialization = function (form) {
|
|
4269
4549
|
// Get the registered form from the service if it exists
|
|
4270
4550
|
this._hasPreviousForm = this.ngFormService.hasForm();
|
|
4271
4551
|
if (this._hasPreviousForm) {
|
|
@@ -4283,39 +4563,31 @@
|
|
|
4283
4563
|
* Adds or removes a FormItem whenever a new MtnaWfFormItemChange occurs,
|
|
4284
4564
|
* and emits a new MtnaForm.
|
|
4285
4565
|
*/
|
|
4286
|
-
|
|
4566
|
+
MtnaWfBaseFormComponent.prototype._subscribeToMtnaFormItemChanges = function () {
|
|
4287
4567
|
var _this = this;
|
|
4288
4568
|
this._unsubscribeFromMtnaFormChanges();
|
|
4289
4569
|
this._mtnaFormItemChangeSub = this.mtnaFormManager.formChanges
|
|
4290
4570
|
.pipe(operators.takeUntil(this.destroyed$), operators.skipWhile(function (change) { return !change; }))
|
|
4291
4571
|
.subscribe(function (newForm) { return _this.mtnaFormChange.emit(newForm); });
|
|
4292
4572
|
};
|
|
4293
|
-
|
|
4573
|
+
MtnaWfBaseFormComponent.prototype._unsubscribeFromNgFormChanges = function () {
|
|
4294
4574
|
if (!!this._ngFormStatusChangeSub && !this._ngFormStatusChangeSub.closed) {
|
|
4295
4575
|
this._ngFormStatusChangeSub.unsubscribe();
|
|
4296
4576
|
}
|
|
4297
4577
|
};
|
|
4298
|
-
|
|
4578
|
+
MtnaWfBaseFormComponent.prototype._unsubscribeFromMtnaFormChanges = function () {
|
|
4299
4579
|
if (!!this._mtnaFormItemChangeSub && !this._mtnaFormItemChangeSub.closed) {
|
|
4300
4580
|
this._mtnaFormItemChangeSub.unsubscribe();
|
|
4301
4581
|
}
|
|
4302
4582
|
};
|
|
4303
|
-
return
|
|
4304
|
-
}(
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
}()))));
|
|
4309
|
-
MtnaWfFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormComponent, deps: [{ token: MtnaWfManagerService }, { token: MtnaWfNgFormService }, { token: MtnaWfUIService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4310
|
-
MtnaWfFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormComponent, selector: "mtna-form", inputs: { annotations: "annotations", emitStatusOnMtnaFormChange: "emitStatusOnMtnaFormChange", mtnaForm: "mtnaForm", steps: "steps", readonly: "readonly" }, outputs: { status: "status", focusedSection: "focusedSection", mtnaFormChange: "mtnaFormChange" }, usesInheritance: true, ngImport: i0__namespace, template: "<form *ngIf=\"ngForm\" [formGroup]=\"ngForm\" [formDisabled]=\"readonly\">\n <mtna-wf-item\n *ngFor=\"let item of mtnaForm?.items; let index = index; trackBy: _trackByInstanceId\"\n [item]=\"item\"\n [control]=\"ngForm.controls[item.instanceId]\"\n [readonly]=\"readonly\"\n [parentIds]=\"componentIds\"\n [step]=\"_steps?.[item.instanceId]\"\n (focusedSection)=\"focusedSection.emit($event)\"\n ></mtna-wf-item>\n</form>\n", styles: ["mtna-form form{display:block}mtna-form form .mtna-wf-section{display:block;margin:32px 0}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline{opacity:0}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-end,mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-gap,mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-start{border-width:1px}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-suffix .mat-datepicker-toggle .mat-icon-button{cursor:default}mtna-form .mtna-wf-item,mtna-form .mtna-wf-title{margin-top:1rem}mtna-form .mtna-wf-text{margin:.5rem 0;font-size:.9rem}mtna-form .mtna-wf-title-item,mtna-form .mtna-wf-text-item{margin:0}\n"], components: [{ type: MtnaWfFormDisablerComponent, selector: "[formDisabled]", inputs: ["formDisabled"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4311
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormComponent, decorators: [{
|
|
4583
|
+
return MtnaWfBaseFormComponent;
|
|
4584
|
+
}(_BaseFormComponent));
|
|
4585
|
+
MtnaWfBaseFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseFormComponent, deps: [{ token: MtnaWfManagerService }, { token: MtnaWfNgFormService }, { token: MtnaWfUIService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4586
|
+
MtnaWfBaseFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfBaseFormComponent, selector: "ng-component", inputs: { annotations: "annotations", emitStatusOnMtnaFormChange: "emitStatusOnMtnaFormChange", mtnaForm: "mtnaForm", steps: "steps", readonly: "readonly" }, outputs: { status: "status", focusedSection: "focusedSection", mtnaFormChange: "mtnaFormChange" }, usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
4587
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBaseFormComponent, decorators: [{
|
|
4312
4588
|
type: i0.Component,
|
|
4313
4589
|
args: [{
|
|
4314
|
-
|
|
4315
|
-
templateUrl: './form.component.html',
|
|
4316
|
-
styleUrls: ['./form.component.scss'],
|
|
4317
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4318
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
4590
|
+
template: "",
|
|
4319
4591
|
}]
|
|
4320
4592
|
}], ctorParameters: function () { return [{ type: MtnaWfManagerService }, { type: MtnaWfNgFormService }, { type: MtnaWfUIService }]; }, propDecorators: { annotations: [{
|
|
4321
4593
|
type: i0.Input
|
|
@@ -4335,6 +4607,50 @@
|
|
|
4335
4607
|
type: i0.Output
|
|
4336
4608
|
}] } });
|
|
4337
4609
|
|
|
4610
|
+
/* eslint-disable @angular-eslint/component-selector */
|
|
4611
|
+
var MtnaWfFormDisablerComponent = /** @class */ (function () {
|
|
4612
|
+
function MtnaWfFormDisablerComponent() {
|
|
4613
|
+
this.formDisabled = false;
|
|
4614
|
+
}
|
|
4615
|
+
return MtnaWfFormDisablerComponent;
|
|
4616
|
+
}());
|
|
4617
|
+
MtnaWfFormDisablerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormDisablerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4618
|
+
MtnaWfFormDisablerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormDisablerComponent, selector: "[formDisabled]", inputs: { formDisabled: "formDisabled" }, ngImport: i0__namespace, template: "\n <fieldset [disabled]=\"formDisabled\">\n <ng-content></ng-content>\n </fieldset>\n ", isInline: true, styles: ["\n fieldset {\n display: block;\n margin: unset;\n padding: unset;\n border: unset;\n }\n "] });
|
|
4619
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormDisablerComponent, decorators: [{
|
|
4620
|
+
type: i0.Component,
|
|
4621
|
+
args: [{
|
|
4622
|
+
selector: '[formDisabled]',
|
|
4623
|
+
template: "\n <fieldset [disabled]=\"formDisabled\">\n <ng-content></ng-content>\n </fieldset>\n ",
|
|
4624
|
+
styles: [
|
|
4625
|
+
"\n fieldset {\n display: block;\n margin: unset;\n padding: unset;\n border: unset;\n }\n ",
|
|
4626
|
+
],
|
|
4627
|
+
}]
|
|
4628
|
+
}], propDecorators: { formDisabled: [{
|
|
4629
|
+
type: i0.Input
|
|
4630
|
+
}] } });
|
|
4631
|
+
|
|
4632
|
+
/* eslint-disable @angular-eslint/no-outputs-metadata-property */
|
|
4633
|
+
var MtnaWfFormComponent = /** @class */ (function (_super) {
|
|
4634
|
+
__extends(MtnaWfFormComponent, _super);
|
|
4635
|
+
function MtnaWfFormComponent() {
|
|
4636
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4637
|
+
}
|
|
4638
|
+
return MtnaWfFormComponent;
|
|
4639
|
+
}(MtnaWfBaseFormComponent));
|
|
4640
|
+
MtnaWfFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4641
|
+
MtnaWfFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormComponent, selector: "mtna-form", outputs: { status: "status", focusedSection: "focusedSection", mtnaFormChange: "mtnaFormChange" }, usesInheritance: true, ngImport: i0__namespace, template: "<form *ngIf=\"ngForm\" [formGroup]=\"ngForm\" [formDisabled]=\"readonly\">\n <mtna-wf-item\n *ngFor=\"let item of mtnaForm?.items; let index = index; trackBy: _trackByInstanceId\"\n [item]=\"item\"\n [control]=\"ngForm.controls[item.instanceId]\"\n [readonly]=\"readonly\"\n [parentIds]=\"componentIds\"\n [step]=\"_steps?.[item.instanceId]\"\n (focusedSection)=\"focusedSection.emit($event)\"\n ></mtna-wf-item>\n</form>\n", styles: ["mtna-form form{display:block}mtna-form form .mtna-wf-section{display:block;margin:32px 0}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline{opacity:0}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-end,mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-gap,mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-flex:hover .mat-form-field-outline-thick .mat-form-field-outline-start{border-width:1px}mtna-form form fieldset[disabled] .mtna-wf-item .mtna-wf-date-item .mat-form-field.mat-form-field-appearance-outline .mat-form-field-suffix .mat-datepicker-toggle .mat-icon-button{cursor:default}mtna-form .mtna-wf-item,mtna-form .mtna-wf-title{margin-top:1rem}mtna-form .mtna-wf-text{margin:.5rem 0;font-size:.9rem}mtna-form .mtna-wf-title-item,mtna-form .mtna-wf-text-item{margin:0}\n"], components: [{ type: MtnaWfFormDisablerComponent, selector: "[formDisabled]", inputs: ["formDisabled"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4642
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormComponent, decorators: [{
|
|
4643
|
+
type: i0.Component,
|
|
4644
|
+
args: [{
|
|
4645
|
+
selector: 'mtna-form',
|
|
4646
|
+
templateUrl: './form.component.html',
|
|
4647
|
+
styleUrls: ['./form.component.scss'],
|
|
4648
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4649
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
4650
|
+
outputs: ['status', 'focusedSection', 'mtnaFormChange'],
|
|
4651
|
+
}]
|
|
4652
|
+
}] });
|
|
4653
|
+
|
|
4338
4654
|
var MtnaWfFormDisablerModule = /** @class */ (function () {
|
|
4339
4655
|
function MtnaWfFormDisablerModule() {
|
|
4340
4656
|
}
|
|
@@ -4359,12 +4675,19 @@
|
|
|
4359
4675
|
}
|
|
4360
4676
|
return class_1;
|
|
4361
4677
|
}()), 'primary');
|
|
4678
|
+
/**
|
|
4679
|
+
* A component that represents a single step in a form stepper.
|
|
4680
|
+
* NOTE:
|
|
4681
|
+
* - disabled: property on the FormStep used to determine if the step is disabled. This will affect the disabled property and the clickable property.
|
|
4682
|
+
* - clickable: property on the FormStep used to determine if the step is clickable. This does not affect the disabled property.
|
|
4683
|
+
*/
|
|
4362
4684
|
var MtnaWfFormStepComponent = /** @class */ (function (_super) {
|
|
4363
4685
|
__extends(MtnaWfFormStepComponent, _super);
|
|
4364
4686
|
function MtnaWfFormStepComponent(elementRef) {
|
|
4365
4687
|
var _this = _super.call(this, elementRef) || this;
|
|
4366
4688
|
_this.disabled = false;
|
|
4367
4689
|
_this._clickable = true;
|
|
4690
|
+
_this.notApplicableText = $localize(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["Not Applicable"], ["Not Applicable"])));
|
|
4368
4691
|
return _this;
|
|
4369
4692
|
}
|
|
4370
4693
|
Object.defineProperty(MtnaWfFormStepComponent.prototype, "step", {
|
|
@@ -4373,7 +4696,7 @@
|
|
|
4373
4696
|
},
|
|
4374
4697
|
set: function (step) {
|
|
4375
4698
|
this._step = step;
|
|
4376
|
-
this.disabled = step.status === 'DISABLED';
|
|
4699
|
+
this.disabled = step.status === 'DISABLED' || step.disabled;
|
|
4377
4700
|
},
|
|
4378
4701
|
enumerable: false,
|
|
4379
4702
|
configurable: true
|
|
@@ -4400,7 +4723,7 @@
|
|
|
4400
4723
|
return MtnaWfFormStepComponent;
|
|
4401
4724
|
}(_FormStepMixinBase$1));
|
|
4402
4725
|
MtnaWfFormStepComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4403
|
-
MtnaWfFormStepComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepComponent, selector: "mtna-wf-step", inputs: { color: "color", step: "step", clickable: "clickable", incompleteIcon: "incompleteIcon" }, host: { properties: { "class.disabled": "this.disabled", "class.clickable": "this.clickable" } }, usesInheritance: true, ngImport: i0__namespace, template: "<li\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n matRipple\n [matRippleDisabled]=\"!clickable\"\n [class.active-step]=\"step.active\"\n (click)=\"_haltClickEvent($event)\"\n>\n <mtna-status-circle\n [color]=\"color\"\n [circleNumber]=\"step.num\"\n [incompleteIcon]=\"incompleteIcon\"\n [optional]=\"step.optional\"\n [status]=\"step.status\"\n ></mtna-status-circle>\n <div fxLayout=\"column\" fxFlex=\"100\">\n <p class=\"step-title\">{{ step.label }}</p>\n <p *ngIf=\"step.optional
|
|
4726
|
+
MtnaWfFormStepComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepComponent, selector: "mtna-wf-step", inputs: { color: "color", step: "step", clickable: "clickable", incompleteIcon: "incompleteIcon" }, host: { properties: { "class.disabled": "this.disabled", "class.clickable": "this.clickable" } }, usesInheritance: true, ngImport: i0__namespace, template: "<li\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n matRipple\n [matRippleDisabled]=\"!clickable\"\n [class.active-step]=\"step.active\"\n (click)=\"_haltClickEvent($event)\"\n>\n <mtna-status-circle\n [color]=\"color\"\n [circleNumber]=\"step.num\"\n [incompleteIcon]=\"incompleteIcon\"\n [optional]=\"step.optional\"\n [status]=\"step.status\"\n ></mtna-status-circle>\n <div fxLayout=\"column\" fxFlex=\"100\">\n <p class=\"step-title\">{{ step.label }}</p>\n <p *ngIf=\"step.optional && !disabled\" class=\"step-status\" i18n>Optional</p>\n <p *ngIf=\"disabled\" class=\"step-status\">{{ step.disabledText || notApplicableText }}</p>\n </div>\n</li>\n", styles: ["mtna-wf-step li{padding:8px 16px;position:relative;-webkit-user-select:none;-o-user-select:none;user-select:none;line-height:24px;font-size:14px;transition:background-color .15s cubic-bezier(0,0,.2,1)}mtna-wf-step li:after{content:\"\";display:block;position:absolute;top:0;right:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1}mtna-wf-step li .step-title,mtna-wf-step li .step-status{margin:0}mtna-wf-step.disabled{font-style:italic}\n"], components: [{ type: i4__namespace.MtnaStatusCircleComponent, selector: "mtna-status-circle", inputs: ["color", "circleNumber", "incompleteIcon", "status", "validIcon", "optional"] }], directives: [{ type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleRadius", "matRippleDisabled", "matRippleTrigger", "matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleAnimation"], exportAs: ["matRipple"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4404
4727
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepComponent, decorators: [{
|
|
4405
4728
|
type: i0.Component,
|
|
4406
4729
|
args: [{
|
|
@@ -4424,6 +4747,7 @@
|
|
|
4424
4747
|
}], incompleteIcon: [{
|
|
4425
4748
|
type: i0.Input
|
|
4426
4749
|
}] } });
|
|
4750
|
+
var templateObject_1$a;
|
|
4427
4751
|
|
|
4428
4752
|
/* eslint-disable @angular-eslint/no-inputs-metadata-property */
|
|
4429
4753
|
var _FormStepMixinBase = i3.mixinColor(/** @class */ (function () {
|
|
@@ -4440,6 +4764,8 @@
|
|
|
4440
4764
|
_this.collapsed = false;
|
|
4441
4765
|
_this._steps = [];
|
|
4442
4766
|
_this.selected = new i0.EventEmitter();
|
|
4767
|
+
_this._collapsedText = $localize(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["View All"], ["View All"])));
|
|
4768
|
+
_this._hideText = $localize(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["Hide"], ["Hide"])));
|
|
4443
4769
|
return _this;
|
|
4444
4770
|
}
|
|
4445
4771
|
Object.defineProperty(MtnaWfFormStepGroupComponent.prototype, "steps", {
|
|
@@ -4456,7 +4782,7 @@
|
|
|
4456
4782
|
return MtnaWfFormStepGroupComponent;
|
|
4457
4783
|
}(_FormStepMixinBase));
|
|
4458
4784
|
MtnaWfFormStepGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepGroupComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4459
|
-
MtnaWfFormStepGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepGroupComponent, selector: "mtna-wf-step-group", inputs: { color: "color", collapsed: "collapsed", incompleteIcon: "incompleteIcon", steps: "steps" }, outputs: { selected: "selected" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngFor=\"let step of steps | slice : 0 : (collapsed ? 1 : steps.length); let last = last\">\n <mtna-wf-step\n [clickable]=\"step.status !== 'DISABLED'\"\n [color]=\"color\"\n [incompleteIcon]=\"incompleteIcon\"\n [step]=\"step\"\n (click)=\"selected.emit(step)\"\n ></mtna-wf-step>\n <mat-divider *ngIf=\"!last\" [vertical]=\"true\"></mat-divider>\n <p *ngIf=\"collapsed\" class=\"show-more mat-caption\">and {{ steps.length - 1 }} more...</p>\n</ng-container>\n<button\n mat-icon-button\n class=\"collapse-button\"\n [color]=\"color\"\n (click)=\"collapsed = !collapsed\"\n [matTooltip]=\"collapsed ?
|
|
4785
|
+
MtnaWfFormStepGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepGroupComponent, selector: "mtna-wf-step-group", inputs: { color: "color", collapsed: "collapsed", incompleteIcon: "incompleteIcon", steps: "steps" }, outputs: { selected: "selected" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngFor=\"let step of steps | slice : 0 : (collapsed ? 1 : steps.length); let last = last\">\n <mtna-wf-step\n [clickable]=\"step.status !== 'DISABLED' && step.status !== 'PLACEHOLDER'\"\n [color]=\"color\"\n [incompleteIcon]=\"incompleteIcon\"\n [step]=\"step\"\n (click)=\"selected.emit(step)\"\n ></mtna-wf-step>\n <mat-divider *ngIf=\"!last\" [vertical]=\"true\"></mat-divider>\n <p *ngIf=\"collapsed\" class=\"show-more mat-caption\" i18n>and {{ steps.length - 1 }} more...</p>\n</ng-container>\n<button\n mat-icon-button\n class=\"collapse-button\"\n [color]=\"color\"\n (click)=\"collapsed = !collapsed\"\n [matTooltip]=\"collapsed ? _collapsedText : _hideText\"\n>\n <mat-icon>{{ collapsed ? 'expand_more' : 'expand_less' }}</mat-icon>\n</button>\n", styles: ["mtna-wf-step-group{border-style:solid;border-radius:4px;border-width:1px;display:block;margin:4px 4px 16px 8px;padding-bottom:16px;position:relative}mtna-wf-step-group .collapse-button{bottom:-19px;left:calc(50% - 20px);position:absolute;z-index:10}mtna-wf-step-group .collapse-button:after{bottom:8px;content:\"\";height:12px;left:calc(50% - 16px);position:absolute;width:32px;z-index:-1}mtna-wf-step-group mtna-wf-step li{padding-left:8px}mtna-wf-step-group mat-divider.mat-divider{margin-left:20px}mtna-wf-step-group .show-more{margin:0;text-align:center}\n"], components: [{ type: MtnaWfFormStepComponent, selector: "mtna-wf-step", inputs: ["color", "step", "clickable", "incompleteIcon"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "slice": i3__namespace.SlicePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4460
4786
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepGroupComponent, decorators: [{
|
|
4461
4787
|
type: i0.Component,
|
|
4462
4788
|
args: [{
|
|
@@ -4476,6 +4802,7 @@
|
|
|
4476
4802
|
}], selected: [{
|
|
4477
4803
|
type: i0.Output
|
|
4478
4804
|
}] } });
|
|
4805
|
+
var templateObject_1$9, templateObject_2$1;
|
|
4479
4806
|
|
|
4480
4807
|
/* eslint-disable @angular-eslint/no-inputs-metadata-property */
|
|
4481
4808
|
var _FormStepperMixinBase = i3.mixinColor(/** @class */ (function () {
|
|
@@ -4494,12 +4821,27 @@
|
|
|
4494
4821
|
__extends(MtnaWfFormStepperComponent, _super);
|
|
4495
4822
|
function MtnaWfFormStepperComponent(elementRef) {
|
|
4496
4823
|
var _this = _super.call(this, elementRef) || this;
|
|
4497
|
-
|
|
4498
|
-
_this.steps = [];
|
|
4824
|
+
_this._steps = [];
|
|
4499
4825
|
/** When a step is selected */
|
|
4500
4826
|
_this.selected = new i0.EventEmitter();
|
|
4827
|
+
_this.groupStepCollapsedMap = {};
|
|
4828
|
+
_this.notApplicableText = $localize(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["Not Applicable"], ["Not Applicable"])));
|
|
4829
|
+
_this._collapsedText = $localize(templateObject_2 || (templateObject_2 = __makeTemplateObject(["View All"], ["View All"])));
|
|
4830
|
+
_this._hideText = $localize(templateObject_3 || (templateObject_3 = __makeTemplateObject(["Hide"], ["Hide"])));
|
|
4501
4831
|
return _this;
|
|
4502
4832
|
}
|
|
4833
|
+
Object.defineProperty(MtnaWfFormStepperComponent.prototype, "steps", {
|
|
4834
|
+
/** Form steps */
|
|
4835
|
+
get: function () {
|
|
4836
|
+
return this._steps;
|
|
4837
|
+
},
|
|
4838
|
+
set: function (steps) {
|
|
4839
|
+
this._steps = steps;
|
|
4840
|
+
this.createGroupStepCollapsedMap(steps);
|
|
4841
|
+
},
|
|
4842
|
+
enumerable: false,
|
|
4843
|
+
configurable: true
|
|
4844
|
+
});
|
|
4503
4845
|
/**
|
|
4504
4846
|
* Improves effeciency of the *ngFor loop that creates the steps.
|
|
4505
4847
|
*
|
|
@@ -4510,15 +4852,39 @@
|
|
|
4510
4852
|
MtnaWfFormStepperComponent.prototype._trackStep = function (index, step) {
|
|
4511
4853
|
return step.instanceId || index;
|
|
4512
4854
|
};
|
|
4855
|
+
/**
|
|
4856
|
+
* Prevents click event if this step is not clickable
|
|
4857
|
+
*/
|
|
4858
|
+
MtnaWfFormStepperComponent.prototype._haltClickEvent = function (event, step) {
|
|
4859
|
+
var clickable = step.status !== 'DISABLED' && step.status !== 'PLACEHOLDER';
|
|
4860
|
+
if (!clickable) {
|
|
4861
|
+
event.preventDefault();
|
|
4862
|
+
event.stopImmediatePropagation();
|
|
4863
|
+
}
|
|
4864
|
+
};
|
|
4865
|
+
MtnaWfFormStepperComponent.prototype.createGroupStepCollapsedMap = function (steps) {
|
|
4866
|
+
var _this = this;
|
|
4867
|
+
steps.forEach(function (step) {
|
|
4868
|
+
if (isFormStepGroup(step)) {
|
|
4869
|
+
_this.groupStepCollapsedMap[step.instanceId] = step.collapsed;
|
|
4870
|
+
}
|
|
4871
|
+
});
|
|
4872
|
+
console.warn('groupStepCollapsedMap', this.groupStepCollapsedMap);
|
|
4873
|
+
};
|
|
4874
|
+
MtnaWfFormStepperComponent.prototype.toggleGroupStep = function (step) {
|
|
4875
|
+
this.groupStepCollapsedMap[step.instanceId] = !this.groupStepCollapsedMap[step.instanceId];
|
|
4876
|
+
console.warn('groupStepCollapsedMap', this.groupStepCollapsedMap);
|
|
4877
|
+
};
|
|
4513
4878
|
return MtnaWfFormStepperComponent;
|
|
4514
4879
|
}(_FormStepperMixinBase));
|
|
4515
4880
|
MtnaWfFormStepperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepperComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4516
|
-
MtnaWfFormStepperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepperComponent, selector: "mtna-wf-stepper", inputs: { color: "color", incompleteIcon: "incompleteIcon", steps: "steps" }, outputs: { selected: "selected" }, usesInheritance: true, ngImport: i0__namespace, template: "<ol>\n <ng-container *ngFor=\"let step of steps; let last = last; trackBy: _trackStep\">\n <ng-container\n [ngTemplateOutlet]=\"(step | mtnaWfStepGroupPipe) ? groupStep : singleStep\"\n [ngTemplateOutletContext]=\"{ $implicit: step }\"\n ></ng-container>\n <mat-divider *ngIf=\"!last\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n <ng-template #singleStep let-step>\n <mtna-wf-step\n [clickable]=\"step.status !== 'DISABLED'\"\n [color]=\"color\"\n [step]=\"step\"\n [incompleteIcon]=\"incompleteIcon\"\n (click)=\"selected.emit(step)\"\n ></mtna-wf-step>\n </ng-template>\n <ng-template #groupStep let-step>\n <mtna-wf-step-group\n [collapsed]=\"step.collapsed\"\n [color]=\"color\"\n [incompleteIcon]=\"incompleteIcon\"\n [steps]=\"step.steps\"\n (selected)=\"selected.emit($event)\"\n ></mtna-wf-step-group>\n </ng-template>\n</ol>\n", styles: ["mtna-wf-stepper{border-right-width:1px;border-right-style:solid;overflow-y:auto}mtna-wf-stepper mtna-wf-step li.active-step:after{transform-origin:top;transform:scaleY(1)}mtna-wf-stepper mtna-wf-step.clickable{cursor:pointer}mtna-wf-stepper mat-divider.mat-divider{height:24px;width:1px;margin-left:28px}mtna-wf-stepper ol{padding:0}\n"], components: [{ type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: MtnaWfFormStepComponent, selector: "mtna-wf-step", inputs: ["color", "step", "clickable", "incompleteIcon"] }, { type: MtnaWfFormStepGroupComponent, selector: "mtna-wf-step-group", inputs: ["color", "collapsed", "incompleteIcon", "steps"], outputs: ["selected"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "mtnaWfStepGroupPipe": MtnaWfFormStepGroupPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4881
|
+
MtnaWfFormStepperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepperComponent, selector: "mtna-wf-stepper", inputs: { color: "color", incompleteIcon: "incompleteIcon", steps: "steps" }, outputs: { selected: "selected" }, usesInheritance: true, ngImport: i0__namespace, template: "<ol>\n <ng-container *ngFor=\"let step of steps; let last = last; trackBy: _trackStep\">\n <ng-container\n [ngTemplateOutlet]=\"(step | mtnaWfStepGroupPipe) ? groupStep : singleStep\"\n [ngTemplateOutletContext]=\"{ $implicit: step }\"\n ></ng-container>\n </ng-container>\n</ol>\n\n<ng-template #singleStep let-step>\n <ng-container *ngIf=\"step | coerceFormStep as singleStep\">\n <li\n fxLayout=\"row\"\n fxLayouAlign=\"start center\"\n [ngClass]=\"{\n 'disabled-step': singleStep.status === 'DISABLED',\n 'active-step': singleStep.active,\n 'clickable': singleStep.status !== 'DISABLED' && singleStep.status !== 'PLACEHOLDER'\n }\"\n >\n <ng-container [ngTemplateOutlet]=\"stepContent\" [ngTemplateOutletContext]=\"{ $implicit: singleStep }\"></ng-container>\n </li>\n </ng-container>\n</ng-template>\n\n<ng-template #groupStep let-step>\n <ng-container *ngIf=\"step | coerceFormStepGroup as groupStepParent\">\n <li fxLayout=\"column\" fxLayoutAlign=\"start start\" [class.child-step-active]=\"(groupStepParent.steps | childStepActive) && groupStepCollapsedMap[groupStepParent.instanceId]\">\n <div fxFlex=\"100\" fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"mtna-wf-step-item-content\">\n <button fxFlex mat-button class=\"step-button\" [attr.aria-label]=\"groupStepParent | getStepAriaLabel : groupStepCollapsedMap[groupStepParent.instanceId]\" (click)=\"toggleGroupStep(step)\">\n <mtna-status-circle [color]=\"color\" [circleNumber]=\"groupStepParent.num\" [incompleteIcon]=\"incompleteIcon\"></mtna-status-circle>\n <div fxLayout=\"row\" class=\"step-button-label-wrapper\" fxFlex=\"100\">\n <p class=\"step-title\">{{ groupStepParent.label }}</p>\n </div>\n <mat-icon>{{ groupStepCollapsedMap[step.instanceId] ? 'expand_more' : 'expand_less' }}</mat-icon>\n </button>\n </div>\n <ol class=\"group-step-list\">\n <ng-container\n *ngFor=\"let groupStep of step.steps | slice : 0 : (groupStepCollapsedMap[step.instanceId] ? 0 : step.steps.length); let last = last\"\n >\n <!-- All children in the steps property of FormStepGroup are FormStep(s). Only using coercion here to assist in defining properties we can use. -->\n <li\n *ngIf=\"groupStep | coerceFormStep as groupStepChild\"\n fxLayout=\"row\"\n fxLayouAlign=\"start center\"\n [ngClass]=\"{\n 'disabled-step': groupStepChild.status === 'DISABLED',\n 'active-step': groupStepChild.active,\n 'clickable': groupStepChild.status !== 'DISABLED' && groupStepChild.status !== 'PLACEHOLDER',\n 'group-step': true\n }\"\n >\n <ng-container [ngTemplateOutlet]=\"stepContent\" [ngTemplateOutletContext]=\"{ $implicit: groupStepChild, isChildStep: true }\"></ng-container>\n </li>\n </ng-container>\n </ol>\n </li>\n </ng-container>\n</ng-template>\n\n<!-- The individual, stand-alone step template -->\n<ng-template #stepContent let-step let-isChildStep=\"isChildStep\">\n <div fxFlex=\"100\" fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"mtna-wf-step-item-content\">\n <mat-divider *ngIf=\"isChildStep\" [vertical]=\"true\"></mat-divider>\n <button fxFlex mat-button class=\"step-button\" [attr.aria-label]=\"step | getStepAriaLabel\" [disabled]=\"step.status === 'DISABLED' || step.status === 'PLACEHOLDER'\" (click)=\"_haltClickEvent($event, step)\">\n <mtna-status-circle\n [color]=\"color\"\n [circleNumber]=\"step.num\"\n [incompleteIcon]=\"incompleteIcon\"\n [optional]=\"step.optional\"\n [status]=\"step.status\"\n ></mtna-status-circle>\n <div fxLayout=\"column\" class=\"step-button-label-wrapper\">\n <p class=\"step-title\">{{ step.label }}</p>\n <p *ngIf=\"step.optional && step.status !== 'DISABLED'\" class=\"step-status\" i18n>Optional</p>\n <p *ngIf=\"step.status === 'DISABLED'\" class=\"step-status\">{{ step.disabledText || notApplicableText }}</p>\n </div>\n </button>\n </div>\n</ng-template>\n", styles: ["mtna-wf-stepper{border-right-width:1px;border-right-style:solid;overflow-y:auto}mtna-wf-stepper li{padding:0 0 0 16px;position:relative;-webkit-user-select:none;-o-user-select:none;user-select:none;line-height:24px;font-size:14px;transition:background-color .15s cubic-bezier(0,0,.2,1)}mtna-wf-stepper li:after{content:\"\";display:block;position:absolute;top:0;right:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1}mtna-wf-stepper li.disabled-step{font-style:italic}mtna-wf-stepper li.clickable{cursor:pointer}mtna-wf-stepper li.active-step:after,mtna-wf-stepper li.child-step-active:after{transform-origin:top;transform:scaleY(1)}mtna-wf-stepper li:not(.group-step){padding-left:0}mtna-wf-stepper li .mtna-wf-step-item-content{width:100%}mtna-wf-stepper li .mtna-wf-step-item-content mat-divider.mat-divider.mat-divider-vertical{height:100%}mtna-wf-stepper li .mtna-wf-step-item-content .mat-button.step-button{text-align:left;height:-moz-fit-content;height:fit-content;min-height:36px;line-height:20px;border:none;padding:4px 13px 4px 8px;font-weight:400;border-radius:0}mtna-wf-stepper li .mtna-wf-step-item-content .mat-button.step-button .mat-button-wrapper{align-items:center;display:flex;flex-direction:row}mtna-wf-stepper li .mtna-wf-step-item-content .mat-button.step-button .mat-button-wrapper .step-button-label-wrapper{width:calc(100% - 48px - 8px)}mtna-wf-stepper li .mtna-wf-step-item-content .mat-button.step-button .mat-button-wrapper .step-button-label-wrapper .step-title{margin:0;overflow:hidden;white-space:wrap}mtna-wf-stepper li .mtna-wf-step-item-content .mat-button.step-button .mat-button-wrapper .step-button-label-wrapper .step-status{margin:0}mtna-wf-stepper li.active-step .mtna-wf-step-item-content .mat-button.step-button{font-weight:500}mtna-wf-stepper li .step-title,mtna-wf-stepper li .step-status{margin:0}mtna-wf-stepper ol:not(.group-step-list){padding:0}mtna-wf-stepper ol.group-step-list{padding-left:16px;width:calc(100% - 16px)}mtna-wf-stepper ol li.group-step{padding-left:0;padding-right:0}\n"], components: [{ type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4__namespace.MtnaStatusCircleComponent, selector: "mtna-status-circle", inputs: ["color", "circleNumber", "incompleteIcon", "status", "validIcon", "optional"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], pipes: { "mtnaWfStepGroupPipe": MtnaWfFormStepGroupPipe, "coerceFormStep": CoerceFormStepPipe, "coerceFormStepGroup": CoerceFormStepGroupPipe, "childStepActive": ChildStepActivePipe, "getStepAriaLabel": GetStepAriaLabel, "slice": i3__namespace.SlicePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4517
4882
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepperComponent, decorators: [{
|
|
4518
4883
|
type: i0.Component,
|
|
4519
4884
|
args: [{
|
|
4520
4885
|
selector: 'mtna-wf-stepper',
|
|
4521
|
-
templateUrl: './form-stepper.component.html',
|
|
4886
|
+
// templateUrl: './form-stepper.component.html',
|
|
4887
|
+
templateUrl: './form-stepper-new.component.html',
|
|
4522
4888
|
styleUrls: ['./form-stepper.component.scss'],
|
|
4523
4889
|
inputs: ['color'],
|
|
4524
4890
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -4531,6 +4897,7 @@
|
|
|
4531
4897
|
}], selected: [{
|
|
4532
4898
|
type: i0.Output
|
|
4533
4899
|
}] } });
|
|
4900
|
+
var templateObject_1$8, templateObject_2, templateObject_3;
|
|
4534
4901
|
|
|
4535
4902
|
var MtnaWfFormStepperModule = /** @class */ (function () {
|
|
4536
4903
|
function MtnaWfFormStepperModule() {
|
|
@@ -4541,22 +4908,30 @@
|
|
|
4541
4908
|
MtnaWfFormStepperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepperModule, declarations: [MtnaWfFormStepComponent, MtnaWfFormStepGroupComponent, MtnaWfFormStepperComponent], imports: [i3$1.CommonModule,
|
|
4542
4909
|
flexLayout.FlexLayoutModule,
|
|
4543
4910
|
i2$2.MatDividerModule,
|
|
4544
|
-
|
|
4911
|
+
i4.MtnaStatusCircleModule,
|
|
4545
4912
|
i3.MatRippleModule,
|
|
4546
4913
|
i3$2.MatButtonModule,
|
|
4547
4914
|
i6$1.MatTooltipModule,
|
|
4548
4915
|
i5.MatIconModule,
|
|
4549
|
-
MtnaWfFormStepGroupPipeModule
|
|
4916
|
+
MtnaWfFormStepGroupPipeModule,
|
|
4917
|
+
CoerceFormStepGroupPipeModule,
|
|
4918
|
+
CoerceFormStepPipeModule,
|
|
4919
|
+
ChildStepActivePipeModule,
|
|
4920
|
+
GetStepAriaLabelModule], exports: [MtnaWfFormStepComponent, MtnaWfFormStepGroupComponent, MtnaWfFormStepperComponent] });
|
|
4550
4921
|
MtnaWfFormStepperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepperModule, imports: [[
|
|
4551
4922
|
i3$1.CommonModule,
|
|
4552
4923
|
flexLayout.FlexLayoutModule,
|
|
4553
4924
|
i2$2.MatDividerModule,
|
|
4554
|
-
|
|
4925
|
+
i4.MtnaStatusCircleModule,
|
|
4555
4926
|
i3.MatRippleModule,
|
|
4556
4927
|
i3$2.MatButtonModule,
|
|
4557
4928
|
i6$1.MatTooltipModule,
|
|
4558
4929
|
i5.MatIconModule,
|
|
4559
4930
|
MtnaWfFormStepGroupPipeModule,
|
|
4931
|
+
CoerceFormStepGroupPipeModule,
|
|
4932
|
+
CoerceFormStepPipeModule,
|
|
4933
|
+
ChildStepActivePipeModule,
|
|
4934
|
+
GetStepAriaLabelModule
|
|
4560
4935
|
]] });
|
|
4561
4936
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormStepperModule, decorators: [{
|
|
4562
4937
|
type: i0.NgModule,
|
|
@@ -4565,15 +4940,19 @@
|
|
|
4565
4940
|
i3$1.CommonModule,
|
|
4566
4941
|
flexLayout.FlexLayoutModule,
|
|
4567
4942
|
i2$2.MatDividerModule,
|
|
4568
|
-
|
|
4943
|
+
i4.MtnaStatusCircleModule,
|
|
4569
4944
|
i3.MatRippleModule,
|
|
4570
4945
|
i3$2.MatButtonModule,
|
|
4571
4946
|
i6$1.MatTooltipModule,
|
|
4572
4947
|
i5.MatIconModule,
|
|
4573
4948
|
MtnaWfFormStepGroupPipeModule,
|
|
4949
|
+
CoerceFormStepGroupPipeModule,
|
|
4950
|
+
CoerceFormStepPipeModule,
|
|
4951
|
+
ChildStepActivePipeModule,
|
|
4952
|
+
GetStepAriaLabelModule
|
|
4574
4953
|
],
|
|
4575
|
-
exports: [MtnaWfFormStepComponent, MtnaWfFormStepGroupComponent, MtnaWfFormStepperComponent],
|
|
4576
4954
|
declarations: [MtnaWfFormStepComponent, MtnaWfFormStepGroupComponent, MtnaWfFormStepperComponent],
|
|
4955
|
+
exports: [MtnaWfFormStepComponent, MtnaWfFormStepGroupComponent, MtnaWfFormStepperComponent],
|
|
4577
4956
|
}]
|
|
4578
4957
|
}] });
|
|
4579
4958
|
|
|
@@ -4599,6 +4978,18 @@
|
|
|
4599
4978
|
enumerable: false,
|
|
4600
4979
|
configurable: true
|
|
4601
4980
|
});
|
|
4981
|
+
Object.defineProperty(MtnaWfStepCardComponent.prototype, "step", {
|
|
4982
|
+
// @Input() step: FormStep | null | undefined;
|
|
4983
|
+
get: function () {
|
|
4984
|
+
return this._step;
|
|
4985
|
+
},
|
|
4986
|
+
set: function (step) {
|
|
4987
|
+
this._step = step;
|
|
4988
|
+
console.warn({ stepInsideStepCard: step });
|
|
4989
|
+
},
|
|
4990
|
+
enumerable: false,
|
|
4991
|
+
configurable: true
|
|
4992
|
+
});
|
|
4602
4993
|
MtnaWfStepCardComponent.prototype.handleFocusChange = function (event) {
|
|
4603
4994
|
if (!!this.step && !!event && !this.step.active) {
|
|
4604
4995
|
this.focused.emit(this.step);
|
|
@@ -4607,7 +4998,7 @@
|
|
|
4607
4998
|
return MtnaWfStepCardComponent;
|
|
4608
4999
|
}(_StepCardMixinBase));
|
|
4609
5000
|
MtnaWfStepCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4610
|
-
MtnaWfStepCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: { color: "color", step: "step", subtitle: "subtitle" }, outputs: { focused: "focused" }, host: { properties: { "class.active": "this.active" } }, usesInheritance: true, ngImport: i0__namespace, template: "<mat-card cdkMonitorSubtreeFocus (cdkFocusChange)=\"handleFocusChange($event)\">\n <mat-card-header>\n <mtna-status-circle mat-card-avatar [circleNumber]=\"step?.num\" [optional]=\"step?.optional\" [status]=\"step?.status\"></mtna-status-circle>\n <mat-card-title>{{ step?.label }}</mat-card-title>\n <mat-card-subtitle [innerHTML]=\"subtitle | mtnaWfSanitizeHtml\"></mat-card-subtitle>\n <p *ngIf=\"step?.optional\" class=\"optional mat-caption\">Optional</p>\n </mat-card-header>\n\n <mat-divider [inset]=\"true\"></mat-divider>\n\n <mat-card-content>\n <ng-content select=\"[cardContent]\"></ng-content>\n </mat-card-content>\n\n <mat-card-actions>\n <ng-content select=\"[cardActions]\"></ng-content>\n </mat-card-actions>\n</mat-card>\n", styles: ["mtna-wf-step-card{display:block;position:relative}mtna-wf-step-card.active:before{transform-origin:top;transform:scaleY(1)}mtna-wf-step-card:before{content:\"\";display:block;position:absolute;top:0;left:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1;border-top-left-radius:2px;border-bottom-left-radius:2px}mtna-wf-step-card mat-card-header{position:relative}mtna-wf-step-card mat-card-header mat-card-title{line-height:24px;margin-right:100px}mtna-wf-step-card mat-card-header mtna-status-circle[mat-card-avatar]{width:24px;height:24px}mtna-wf-step-card mat-card-header>.optional:not(.mtna-status-circle){position:absolute;right:16px;top:0;margin:0;line-height:24px}mtna-wf-step-card mat-card-actions{padding:0;margin:0}mtna-wf-step-card mat-card-content{margin-top:16px}mtna-wf-step-card mat-card-content [cardcontent]>:first-child{margin-top:0}\n"], components: [{ type: i1__namespace$
|
|
5001
|
+
MtnaWfStepCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: { color: "color", step: "step", subtitle: "subtitle" }, outputs: { focused: "focused" }, host: { properties: { "class.active": "this.active" } }, usesInheritance: true, ngImport: i0__namespace, template: "<mat-card cdkMonitorSubtreeFocus (cdkFocusChange)=\"handleFocusChange($event)\">\n <mat-card-header>\n <mtna-status-circle mat-card-avatar [circleNumber]=\"step?.num\" [optional]=\"step?.optional\" [status]=\"step?.status\"></mtna-status-circle>\n <mat-card-title>{{ step?.label }}</mat-card-title>\n <mat-card-subtitle [innerHTML]=\"subtitle | mtnaWfSanitizeHtml\"></mat-card-subtitle>\n <p *ngIf=\"step?.optional\" class=\"optional mat-caption\" i18n>Optional</p>\n </mat-card-header>\n\n <mat-divider [inset]=\"true\"></mat-divider>\n\n <mat-card-content>\n <ng-content select=\"[cardContent]\"></ng-content>\n </mat-card-content>\n\n <mat-card-actions>\n <ng-content select=\"[cardActions]\"></ng-content>\n </mat-card-actions>\n</mat-card>\n", styles: ["mtna-wf-step-card{display:block;position:relative}mtna-wf-step-card.active:before{transform-origin:top;transform:scaleY(1)}mtna-wf-step-card:before{content:\"\";display:block;position:absolute;top:0;left:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1;border-top-left-radius:2px;border-bottom-left-radius:2px}mtna-wf-step-card mat-card-header{position:relative}mtna-wf-step-card mat-card-header mat-card-title{line-height:24px;margin-right:100px}mtna-wf-step-card mat-card-header mtna-status-circle[mat-card-avatar]{width:24px;height:24px}mtna-wf-step-card mat-card-header>.optional:not(.mtna-status-circle){position:absolute;right:16px;top:0;margin:0;line-height:24px}mtna-wf-step-card mat-card-actions{padding:0;margin:0}mtna-wf-step-card mat-card-content{margin-top:16px}mtna-wf-step-card mat-card-content [cardcontent]>:first-child{margin-top:0}\n"], components: [{ type: i1__namespace$3.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i1__namespace$3.MatCardHeader, selector: "mat-card-header" }, { type: i4__namespace.MtnaStatusCircleComponent, selector: "mtna-status-circle", inputs: ["color", "circleNumber", "incompleteIcon", "status", "validIcon", "optional"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i4__namespace$1.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1__namespace$3.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i1__namespace$3.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i1__namespace$3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$3.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1__namespace$3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4611
5002
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardComponent, decorators: [{
|
|
4612
5003
|
type: i0.Component,
|
|
4613
5004
|
args: [{
|
|
@@ -4635,12 +5026,34 @@
|
|
|
4635
5026
|
return MtnaWfStepCardModule;
|
|
4636
5027
|
}());
|
|
4637
5028
|
MtnaWfStepCardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4638
|
-
MtnaWfStepCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardModule, declarations: [MtnaWfStepCardComponent], imports: [i4
|
|
4639
|
-
|
|
5029
|
+
MtnaWfStepCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardModule, declarations: [MtnaWfStepCardComponent], imports: [i4$1.A11yModule,
|
|
5030
|
+
i3$1.CommonModule,
|
|
5031
|
+
i1$5.MatCardModule,
|
|
5032
|
+
i4.MtnaStatusCircleModule,
|
|
5033
|
+
MtnaWfSanitizeHtmlPipeModule,
|
|
5034
|
+
i2$2.MatDividerModule,
|
|
5035
|
+
MtnaWfFormItemModule], exports: [MtnaWfStepCardComponent] });
|
|
5036
|
+
MtnaWfStepCardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardModule, imports: [[
|
|
5037
|
+
i4$1.A11yModule,
|
|
5038
|
+
i3$1.CommonModule,
|
|
5039
|
+
i1$5.MatCardModule,
|
|
5040
|
+
i4.MtnaStatusCircleModule,
|
|
5041
|
+
MtnaWfSanitizeHtmlPipeModule,
|
|
5042
|
+
i2$2.MatDividerModule,
|
|
5043
|
+
MtnaWfFormItemModule,
|
|
5044
|
+
]] });
|
|
4640
5045
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardModule, decorators: [{
|
|
4641
5046
|
type: i0.NgModule,
|
|
4642
5047
|
args: [{
|
|
4643
|
-
imports: [
|
|
5048
|
+
imports: [
|
|
5049
|
+
i4$1.A11yModule,
|
|
5050
|
+
i3$1.CommonModule,
|
|
5051
|
+
i1$5.MatCardModule,
|
|
5052
|
+
i4.MtnaStatusCircleModule,
|
|
5053
|
+
MtnaWfSanitizeHtmlPipeModule,
|
|
5054
|
+
i2$2.MatDividerModule,
|
|
5055
|
+
MtnaWfFormItemModule,
|
|
5056
|
+
],
|
|
4644
5057
|
declarations: [MtnaWfStepCardComponent],
|
|
4645
5058
|
exports: [MtnaWfStepCardComponent],
|
|
4646
5059
|
}]
|
|
@@ -4652,7 +5065,7 @@
|
|
|
4652
5065
|
return MtnaFormModule;
|
|
4653
5066
|
}());
|
|
4654
5067
|
MtnaFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4655
|
-
MtnaFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaFormModule, declarations: [MtnaWfFormComponent], imports: [i4.A11yModule,
|
|
5068
|
+
MtnaFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaFormModule, declarations: [MtnaWfFormComponent], imports: [i4$1.A11yModule,
|
|
4656
5069
|
i3$1.CommonModule,
|
|
4657
5070
|
flexLayout.FlexLayoutModule,
|
|
4658
5071
|
i6.FormsModule,
|
|
@@ -4663,7 +5076,7 @@
|
|
|
4663
5076
|
MtnaWfFormStepperModule,
|
|
4664
5077
|
MtnaWfStepCardModule], exports: [MtnaWfFormComponent] });
|
|
4665
5078
|
MtnaFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaFormModule, providers: [{ provide: i3.ErrorStateMatcher, useClass: MtnaWfInstantValidationResultErrorStateMatcher }], imports: [[
|
|
4666
|
-
i4.A11yModule,
|
|
5079
|
+
i4$1.A11yModule,
|
|
4667
5080
|
i3$1.CommonModule,
|
|
4668
5081
|
flexLayout.FlexLayoutModule,
|
|
4669
5082
|
i6.FormsModule,
|
|
@@ -4678,7 +5091,7 @@
|
|
|
4678
5091
|
type: i0.NgModule,
|
|
4679
5092
|
args: [{
|
|
4680
5093
|
imports: [
|
|
4681
|
-
i4.A11yModule,
|
|
5094
|
+
i4$1.A11yModule,
|
|
4682
5095
|
i3$1.CommonModule,
|
|
4683
5096
|
flexLayout.FlexLayoutModule,
|
|
4684
5097
|
i6.FormsModule,
|
|
@@ -4711,7 +5124,7 @@
|
|
|
4711
5124
|
return MtnaWfBooleanComponent;
|
|
4712
5125
|
}(MtnaWfBaseParentValueItem));
|
|
4713
5126
|
MtnaWfBooleanComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBooleanComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: MtnaWfUIService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4714
|
-
MtnaWfBooleanComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfBooleanComponent, selector: "mtna-wf-boolean-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<mat-slide-toggle\n *ngIf=\"control\"\n [formControl]=\"control\"\n [disabled]=\"readonly\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"\n (change)=\"toggleChange($event)\"\n >{{ item.option.option.name }}</mat-slide-toggle\n>\n<ng-container *ngIf=\"!!item.optionItemMap\">\n <mtna-wf-item\n *ngFor=\"let f of item.optionItemMap | keyvalue; trackBy: _trackByInstanceId\"\n [item]=\"f.value\"\n [control]=\"!!controlWrapper && controlWrapper.controls ? controlWrapper.controls[f.value.instanceId] : undefined\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n <ng-container> </ng-container>\n</ng-container>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-boolean-item{padding-right:24px}mtna-wf-boolean-item{display:block}mtna-wf-boolean-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-boolean-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-boolean-item .mat-slide-toggle{margin:4px 0}mtna-wf-boolean-item .mat-slide-toggle+mtna-wf-item{margin-top:0}mtna-wf-boolean-item .mat-slide-toggle~mtna-wf-item{padding-left:18px}mtna-wf-boolean-item.read-only .mat-slide-toggle.mat-disabled{opacity:.8}mtna-wf-boolean-item.read-only .mat-slide-toggle .mat-slide-toggle-label,mtna-wf-boolean-item.read-only .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-bar .mat-slide-toggle-thumb-container{cursor:default}mtna-wf-boolean-item .mat-slide-toggle{height:auto;min-height:24px;width:100%}mtna-wf-boolean-item .mat-slide-toggle>.mat-slide-toggle-label>.mat-slide-toggle-content{white-space:normal}\n"], components: [{ type: i2__namespace$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked", "aria-describedby"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type:
|
|
5127
|
+
MtnaWfBooleanComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfBooleanComponent, selector: "mtna-wf-boolean-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<mat-slide-toggle\n *ngIf=\"control\"\n [aria-label]=\"item.option.option.name\"\n [formControl]=\"control\"\n [disabled]=\"readonly\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"\n (change)=\"toggleChange($event)\"\n >{{ item.option.option.name }}</mat-slide-toggle\n>\n<ng-container *ngIf=\"!!item.optionItemMap\">\n <mtna-wf-item\n *ngFor=\"let f of item.optionItemMap | keyvalue; trackBy: _trackByInstanceId\"\n [item]=\"f.value\"\n [control]=\"!!controlWrapper && controlWrapper.controls ? controlWrapper.controls[f.value.instanceId] : undefined\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n <ng-container> </ng-container>\n</ng-container>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-boolean-item{padding-right:24px}mtna-wf-boolean-item{display:block}mtna-wf-boolean-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-boolean-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-boolean-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-boolean-item .mat-slide-toggle{margin:4px 0}mtna-wf-boolean-item .mat-slide-toggle+mtna-wf-item{margin-top:0}mtna-wf-boolean-item .mat-slide-toggle~mtna-wf-item{padding-left:18px}mtna-wf-boolean-item.read-only .mat-slide-toggle.mat-disabled{opacity:.8}mtna-wf-boolean-item.read-only .mat-slide-toggle .mat-slide-toggle-label,mtna-wf-boolean-item.read-only .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-bar .mat-slide-toggle-thumb-container{cursor:default}mtna-wf-boolean-item .mat-slide-toggle{height:auto;min-height:24px;width:100%}mtna-wf-boolean-item .mat-slide-toggle>.mat-slide-toggle-label>.mat-slide-toggle-content{white-space:normal}\n"], components: [{ type: i2__namespace$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked", "aria-describedby"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "keyvalue": i3__namespace.KeyValuePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4715
5128
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBooleanComponent, decorators: [{
|
|
4716
5129
|
type: i0.Component,
|
|
4717
5130
|
args: [{
|
|
@@ -4735,7 +5148,7 @@
|
|
|
4735
5148
|
i6.FormsModule,
|
|
4736
5149
|
i6.ReactiveFormsModule,
|
|
4737
5150
|
MtnaWfAcknowledgeDialogModule,
|
|
4738
|
-
|
|
5151
|
+
i4.MtnaHighlightModule], exports: [MtnaWfBooleanComponent] });
|
|
4739
5152
|
MtnaWfBooleanModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBooleanModule, imports: [[
|
|
4740
5153
|
i3$1.CommonModule,
|
|
4741
5154
|
i2$3.MatSlideToggleModule,
|
|
@@ -4743,7 +5156,7 @@
|
|
|
4743
5156
|
i6.FormsModule,
|
|
4744
5157
|
i6.ReactiveFormsModule,
|
|
4745
5158
|
MtnaWfAcknowledgeDialogModule,
|
|
4746
|
-
|
|
5159
|
+
i4.MtnaHighlightModule,
|
|
4747
5160
|
]] });
|
|
4748
5161
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfBooleanModule, decorators: [{
|
|
4749
5162
|
type: i0.NgModule,
|
|
@@ -4755,7 +5168,7 @@
|
|
|
4755
5168
|
i6.FormsModule,
|
|
4756
5169
|
i6.ReactiveFormsModule,
|
|
4757
5170
|
MtnaWfAcknowledgeDialogModule,
|
|
4758
|
-
|
|
5171
|
+
i4.MtnaHighlightModule,
|
|
4759
5172
|
],
|
|
4760
5173
|
declarations: [MtnaWfBooleanComponent],
|
|
4761
5174
|
exports: [MtnaWfBooleanComponent],
|
|
@@ -4768,6 +5181,7 @@
|
|
|
4768
5181
|
var _this = _super.call(this, cdr) || this;
|
|
4769
5182
|
_this.dialogService = dialogService;
|
|
4770
5183
|
_this.destroyed$ = new rxjs.Subject();
|
|
5184
|
+
_this._acknowledgementText = $localize(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["Acknowledged. Click to view the agreement."], ["Acknowledged. Click to view the agreement."])));
|
|
4771
5185
|
return _this;
|
|
4772
5186
|
}
|
|
4773
5187
|
MtnaWfCheckboxComponent.prototype.handleChange = function (change, index) {
|
|
@@ -4829,7 +5243,7 @@
|
|
|
4829
5243
|
return MtnaWfCheckboxComponent;
|
|
4830
5244
|
}(MtnaWfBaseParentValueItem));
|
|
4831
5245
|
MtnaWfCheckboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfCheckboxComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: MtnaWfDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4832
|
-
MtnaWfCheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfCheckboxComponent, selector: "mtna-wf-checkbox-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div *ngIf=\"hasItemHeader\" class=\"mtna-wf-error-container\">\n <ng-container *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <mat-error *ngFor=\"let error of control?.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </ng-container>\n</div>\n<fieldset\n class=\"control-item-content\"\n [class.single-option]=\"item.options.length === 1\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <ng-container *ngFor=\"let opt of item.options; let i = index; trackBy: _trackByOptionId\">\n <
|
|
5246
|
+
MtnaWfCheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfCheckboxComponent, selector: "mtna-wf-checkbox-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div *ngIf=\"hasItemHeader\" class=\"mtna-wf-error-container\">\n <ng-container *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <mat-error *ngFor=\"let error of control?.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </ng-container>\n</div>\n<fieldset\n class=\"control-item-content\"\n [class.single-option]=\"item.options.length === 1\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <ng-container *ngFor=\"let opt of item.options; let i = index; trackBy: _trackByOptionId\">\n <div *ngIf=\"!!control && !!control.controls && !!control.controls[i]\" fxLayout=\"row\">\n <mat-checkbox\n [disableRipple]=\"readonly\"\n [formControl]=\"$any(control.controls[i])\"\n [color]=\"color\"\n [disabled]=\"readonly\"\n (change)=\"handleChange($event, i)\"\n >{{ opt.option.name }}\n </mat-checkbox>\n <button\n *ngIf=\"opt.acknowledgement && control.controls[i].value\"\n mat-icon-button\n class=\"acknowledge-verification-button\"\n [attr.aria-label]=\"_acknowledgementText\"\n [matTooltip]=\"_acknowledgementText\"\n matTooltipShowDelay=\"800\"\n (click)=\"showAcknowledgement($event, opt.acknowledgement)\"\n (mousedown)=\"stopEventPropagation($event)\"\n (touchstart)=\"stopEventPropagation($event)\"\n >\n <mat-icon>verified</mat-icon>\n </button>\n </div>\n <ng-container *ngIf=\"item.optionItemMap[opt.option.id]\">\n <mtna-wf-item\n *ngIf=\"item.optionItemMap[opt.option.id] as subItem\"\n [item]=\"subItem\"\n [control]=\"!!controlWrapper && controlWrapper.controls ? controlWrapper.controls[subItem.instanceId] : undefined\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds.concat(opt.option.id)\"\n ></mtna-wf-item>\n </ng-container>\n </ng-container>\n</fieldset>\n", styles: ["mtna-wf-checkbox-item{display:flex;flex-direction:column;position:relative}mtna-wf-checkbox-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-checkbox-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-checkbox-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-checkbox-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-checkbox-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-checkbox-item .mat-checkbox{display:block}mtna-wf-checkbox-item .mat-checkbox>.mat-checkbox-layout{display:block}mtna-wf-checkbox-item .mat-checkbox>.mat-checkbox-layout>.mat-checkbox-label{white-space:normal}mtna-wf-checkbox-item .mat-checkbox .mat-checkbox-inner-container{bottom:1px}mtna-wf-checkbox-item .acknowledge-verification-button{vertical-align:top;width:18px;height:18px;line-height:18px;margin-left:4px}mtna-wf-checkbox-item .acknowledge-verification-button .mat-icon{width:18px;height:18px;line-height:18px;font-size:18px}mtna-wf-checkbox-item fieldset{border:none;margin:0}mtna-wf-checkbox-item fieldset.control-item-content.single-option{padding:0}mtna-wf-checkbox-item .mat-checkbox+mtna-wf-item{margin-top:0;padding-left:24px}mtna-wf-checkbox-item.read-only .mat-checkbox{cursor:default}\n"], components: [{ type: i2__namespace$3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4833
5247
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfCheckboxComponent, decorators: [{
|
|
4834
5248
|
type: i0.Component,
|
|
4835
5249
|
args: [{
|
|
@@ -4840,6 +5254,7 @@
|
|
|
4840
5254
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4841
5255
|
}]
|
|
4842
5256
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: MtnaWfDialogService }]; } });
|
|
5257
|
+
var templateObject_1$7;
|
|
4843
5258
|
|
|
4844
5259
|
var MtnaWfFormItemDialogModule = /** @class */ (function () {
|
|
4845
5260
|
function MtnaWfFormItemDialogModule() {
|
|
@@ -4847,12 +5262,12 @@
|
|
|
4847
5262
|
return MtnaWfFormItemDialogModule;
|
|
4848
5263
|
}());
|
|
4849
5264
|
MtnaWfFormItemDialogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4850
|
-
MtnaWfFormItemDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, declarations: [MtnaWfFormItemDialogComponent], imports: [i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule], exports: [MtnaWfFormItemDialogComponent] });
|
|
4851
|
-
MtnaWfFormItemDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, imports: [[i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule]] });
|
|
5265
|
+
MtnaWfFormItemDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, declarations: [MtnaWfFormItemDialogComponent], imports: [i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule, i3$2.MatButtonModule], exports: [MtnaWfFormItemDialogComponent] });
|
|
5266
|
+
MtnaWfFormItemDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, imports: [[i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule, i3$2.MatButtonModule]] });
|
|
4852
5267
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormItemDialogModule, decorators: [{
|
|
4853
5268
|
type: i0.NgModule,
|
|
4854
5269
|
args: [{
|
|
4855
|
-
imports: [i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule],
|
|
5270
|
+
imports: [i3$1.CommonModule, i1.MatDialogModule, MtnaWfFormItemModule, i3$2.MatButtonModule],
|
|
4856
5271
|
declarations: [MtnaWfFormItemDialogComponent],
|
|
4857
5272
|
exports: [MtnaWfFormItemDialogComponent],
|
|
4858
5273
|
}]
|
|
@@ -4866,27 +5281,29 @@
|
|
|
4866
5281
|
MtnaWfCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4867
5282
|
MtnaWfCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfCheckboxModule, declarations: [MtnaWfCheckboxComponent], imports: [i3$1.CommonModule,
|
|
4868
5283
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5284
|
+
flexLayout.FlexLayoutModule,
|
|
4869
5285
|
i6.FormsModule,
|
|
4870
|
-
i1$
|
|
5286
|
+
i1$6.MatFormFieldModule,
|
|
4871
5287
|
i2$4.MatCheckboxModule,
|
|
4872
5288
|
i3$2.MatButtonModule,
|
|
4873
5289
|
i5.MatIconModule,
|
|
4874
5290
|
i6$1.MatTooltipModule,
|
|
4875
5291
|
MtnaWfFormItemModule,
|
|
4876
|
-
|
|
5292
|
+
i4.MtnaHighlightModule,
|
|
4877
5293
|
i6.ReactiveFormsModule,
|
|
4878
5294
|
MtnaWfFormItemDialogModule], exports: [MtnaWfCheckboxComponent] });
|
|
4879
5295
|
MtnaWfCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfCheckboxModule, imports: [[
|
|
4880
5296
|
i3$1.CommonModule,
|
|
4881
5297
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5298
|
+
flexLayout.FlexLayoutModule,
|
|
4882
5299
|
i6.FormsModule,
|
|
4883
|
-
i1$
|
|
5300
|
+
i1$6.MatFormFieldModule,
|
|
4884
5301
|
i2$4.MatCheckboxModule,
|
|
4885
5302
|
i3$2.MatButtonModule,
|
|
4886
5303
|
i5.MatIconModule,
|
|
4887
5304
|
i6$1.MatTooltipModule,
|
|
4888
5305
|
MtnaWfFormItemModule,
|
|
4889
|
-
|
|
5306
|
+
i4.MtnaHighlightModule,
|
|
4890
5307
|
i6.ReactiveFormsModule,
|
|
4891
5308
|
MtnaWfFormItemDialogModule,
|
|
4892
5309
|
]] });
|
|
@@ -4896,14 +5313,15 @@
|
|
|
4896
5313
|
imports: [
|
|
4897
5314
|
i3$1.CommonModule,
|
|
4898
5315
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5316
|
+
flexLayout.FlexLayoutModule,
|
|
4899
5317
|
i6.FormsModule,
|
|
4900
|
-
i1$
|
|
5318
|
+
i1$6.MatFormFieldModule,
|
|
4901
5319
|
i2$4.MatCheckboxModule,
|
|
4902
5320
|
i3$2.MatButtonModule,
|
|
4903
5321
|
i5.MatIconModule,
|
|
4904
5322
|
i6$1.MatTooltipModule,
|
|
4905
5323
|
MtnaWfFormItemModule,
|
|
4906
|
-
|
|
5324
|
+
i4.MtnaHighlightModule,
|
|
4907
5325
|
i6.ReactiveFormsModule,
|
|
4908
5326
|
MtnaWfFormItemDialogModule,
|
|
4909
5327
|
],
|
|
@@ -4920,6 +5338,7 @@
|
|
|
4920
5338
|
// TODO: This is not currenlty used, the back end needs to add range limits on the DateItem in order for this to work
|
|
4921
5339
|
// Remove once accomplished and replace usage with item.rangeLimits in the html
|
|
4922
5340
|
_this.rangeLimits = { end: null, start: null };
|
|
5341
|
+
_this._dateText = $localize(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["Date"], ["Date"])));
|
|
4923
5342
|
// We need to check to ensure 'moment' & 'moment-jdateformatparser' scripts have been added to angular.json so that
|
|
4924
5343
|
// the DateFormItemComponent doesn't break when attempting to format SimpleDateFormat string to Moment format string
|
|
4925
5344
|
MtnaWfDateComponent.dateFormItemComponentInstances++;
|
|
@@ -4975,8 +5394,8 @@
|
|
|
4975
5394
|
return MtnaWfDateComponent;
|
|
4976
5395
|
}(MtnaWfBaseValueItem));
|
|
4977
5396
|
MtnaWfDateComponent.dateFormItemComponentInstances = 0;
|
|
4978
|
-
MtnaWfDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token:
|
|
4979
|
-
MtnaWfDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateComponent, selector: "mtna-wf-date-item", inputs: { rangeLimits: "rangeLimits" }, host: { properties: { "class.mtna-wf-date-item": "this.dateItemClass" } }, viewQueries: [{ propertyName: "picker", first: true, predicate: i3$4.MatDatepicker, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<mat-form-field *ngIf=\"control\" appearance=\"outline\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\">\n <mat-label>{{ item.label ||
|
|
5397
|
+
MtnaWfDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i4__namespace.MtnaLogger }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5398
|
+
MtnaWfDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateComponent, selector: "mtna-wf-date-item", inputs: { rangeLimits: "rangeLimits" }, host: { properties: { "class.mtna-wf-date-item": "this.dateItemClass" } }, viewQueries: [{ propertyName: "picker", first: true, predicate: i3$4.MatDatepicker, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<mat-form-field *ngIf=\"control\" appearance=\"outline\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\">\n <mat-label>{{ item.label || _dateText }}</mat-label>\n <input\n matInput\n [formControl]=\"control\"\n [matDatepicker]=\"picker\"\n [max]=\"rangeLimits?.end\"\n [min]=\"rangeLimits?.start\"\n placeholder=\"Choose a date\"\n i18n-placeholder\n [required]=\"item.required\"\n [disabled]=\"readonly || control.disabled\"\n />\n <mat-datepicker-toggle matSuffix [for]=\"picker\" [disabled]=\"readonly || control.disabled\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n <mat-hint>{{ item.format }}</mat-hint>\n</mat-form-field>\n", styles: ["mtna-wf-date-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-date-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-date-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-date-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-date-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: i1__namespace$4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace$4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["tabIndex", "disabled", "for", "aria-label", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { type: i3__namespace$4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i1__namespace$4.MatLabel, selector: "mat-label" }, { type: i5__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i6__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: i3__namespace$4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1__namespace$4.MatSuffix, selector: "[matSuffix]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i1__namespace$4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }], pipes: { "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4980
5399
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateComponent, decorators: [{
|
|
4981
5400
|
type: i0.Component,
|
|
4982
5401
|
args: [{
|
|
@@ -4986,7 +5405,7 @@
|
|
|
4986
5405
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4987
5406
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4988
5407
|
}]
|
|
4989
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type:
|
|
5408
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i4__namespace.MtnaLogger }]; }, propDecorators: { dateItemClass: [{
|
|
4990
5409
|
type: i0.HostBinding,
|
|
4991
5410
|
args: ['class.mtna-wf-date-item']
|
|
4992
5411
|
}], rangeLimits: [{
|
|
@@ -4995,6 +5414,7 @@
|
|
|
4995
5414
|
type: i0.ViewChild,
|
|
4996
5415
|
args: [i3$4.MatDatepicker, { static: false }]
|
|
4997
5416
|
}] } });
|
|
5417
|
+
var templateObject_1$6;
|
|
4998
5418
|
|
|
4999
5419
|
var MtnaWfDateModule = /** @class */ (function () {
|
|
5000
5420
|
function MtnaWfDateModule() {
|
|
@@ -5004,21 +5424,21 @@
|
|
|
5004
5424
|
MtnaWfDateModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5005
5425
|
MtnaWfDateModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateModule, declarations: [MtnaWfDateComponent], imports: [i3$1.CommonModule,
|
|
5006
5426
|
i6.FormsModule,
|
|
5007
|
-
i1$
|
|
5427
|
+
i1$6.MatFormFieldModule,
|
|
5008
5428
|
i5$1.MatInputModule,
|
|
5009
5429
|
i3$4.MatDatepickerModule,
|
|
5010
5430
|
materialMomentAdapter.MatMomentDateModule,
|
|
5011
|
-
|
|
5431
|
+
i4.MtnaHighlightModule,
|
|
5012
5432
|
i6.ReactiveFormsModule,
|
|
5013
5433
|
MtnaWfGetFormControlErrorPipeModule], exports: [MtnaWfDateComponent] });
|
|
5014
5434
|
MtnaWfDateModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateModule, imports: [[
|
|
5015
5435
|
i3$1.CommonModule,
|
|
5016
5436
|
i6.FormsModule,
|
|
5017
|
-
i1$
|
|
5437
|
+
i1$6.MatFormFieldModule,
|
|
5018
5438
|
i5$1.MatInputModule,
|
|
5019
5439
|
i3$4.MatDatepickerModule,
|
|
5020
5440
|
materialMomentAdapter.MatMomentDateModule,
|
|
5021
|
-
|
|
5441
|
+
i4.MtnaHighlightModule,
|
|
5022
5442
|
i6.ReactiveFormsModule,
|
|
5023
5443
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5024
5444
|
]] });
|
|
@@ -5028,11 +5448,11 @@
|
|
|
5028
5448
|
imports: [
|
|
5029
5449
|
i3$1.CommonModule,
|
|
5030
5450
|
i6.FormsModule,
|
|
5031
|
-
i1$
|
|
5451
|
+
i1$6.MatFormFieldModule,
|
|
5032
5452
|
i5$1.MatInputModule,
|
|
5033
5453
|
i3$4.MatDatepickerModule,
|
|
5034
5454
|
materialMomentAdapter.MatMomentDateModule,
|
|
5035
|
-
|
|
5455
|
+
i4.MtnaHighlightModule,
|
|
5036
5456
|
i6.ReactiveFormsModule,
|
|
5037
5457
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5038
5458
|
],
|
|
@@ -5044,7 +5464,9 @@
|
|
|
5044
5464
|
var MtnaWfDateRangeComponent = /** @class */ (function (_super) {
|
|
5045
5465
|
__extends(MtnaWfDateRangeComponent, _super);
|
|
5046
5466
|
function MtnaWfDateRangeComponent() {
|
|
5047
|
-
|
|
5467
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5468
|
+
_this.toText = $localize(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["to"], ["to"])));
|
|
5469
|
+
return _this;
|
|
5048
5470
|
}
|
|
5049
5471
|
Object.defineProperty(MtnaWfDateRangeComponent.prototype, "item", {
|
|
5050
5472
|
get: function () {
|
|
@@ -5062,7 +5484,7 @@
|
|
|
5062
5484
|
return MtnaWfDateRangeComponent;
|
|
5063
5485
|
}(MtnaWfBaseValueItem));
|
|
5064
5486
|
MtnaWfDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateRangeComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5065
|
-
MtnaWfDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateRangeComponent, selector: "mtna-wf-date-range", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div\n *ngIf=\"control\"\n class=\"range-item-container\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mtna-wf-date-item\n [control]=\"control.controls['start'] | mtnaWfCoerceFormControl\"\n [item]=\"_startItem\"\n [rangeLimits]=\"item.rangeLimits\"\n [readonly]=\"readonly\"\n ></mtna-wf-date-item>\n <span fxFlex=\"14px\">
|
|
5487
|
+
MtnaWfDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateRangeComponent, selector: "mtna-wf-date-range", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div\n *ngIf=\"control\"\n class=\"range-item-container\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mtna-wf-date-item\n [control]=\"control.controls['start'] | mtnaWfCoerceFormControl\"\n [item]=\"_startItem\"\n [rangeLimits]=\"item.rangeLimits\"\n [readonly]=\"readonly\"\n ></mtna-wf-date-item>\n <span fxFlex=\"14px\"> {{toText}} </span>\n <mtna-wf-date-item\n [control]=\"control.controls['end'] | mtnaWfCoerceFormControl\"\n [item]=\"_endItem\"\n [rangeLimits]=\"item.rangeLimits\"\n [readonly]=\"readonly\"\n ></mtna-wf-date-item>\n</div>\n", components: [{ type: MtnaWfDateComponent, selector: "mtna-wf-date-item", inputs: ["rangeLimits"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], pipes: { "mtnaWfCoerceFormControl": MtnaWfCoerceFormControlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5066
5488
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateRangeComponent, decorators: [{
|
|
5067
5489
|
type: i0.Component,
|
|
5068
5490
|
args: [{
|
|
@@ -5072,6 +5494,7 @@
|
|
|
5072
5494
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5073
5495
|
}]
|
|
5074
5496
|
}] });
|
|
5497
|
+
var templateObject_1$5;
|
|
5075
5498
|
|
|
5076
5499
|
var MtnaWfDateRangeModule = /** @class */ (function () {
|
|
5077
5500
|
function MtnaWfDateRangeModule() {
|
|
@@ -5080,7 +5503,7 @@
|
|
|
5080
5503
|
}());
|
|
5081
5504
|
MtnaWfDateRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5082
5505
|
MtnaWfDateRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateRangeModule, declarations: [MtnaWfDateRangeComponent], imports: [i3$1.CommonModule,
|
|
5083
|
-
|
|
5506
|
+
i4.MtnaHighlightModule,
|
|
5084
5507
|
MtnaWfDateModule,
|
|
5085
5508
|
flexLayout.FlexLayoutModule,
|
|
5086
5509
|
i6.FormsModule,
|
|
@@ -5088,7 +5511,7 @@
|
|
|
5088
5511
|
MtnaWfCoerceFormControlPipeModule], exports: [MtnaWfDateRangeComponent] });
|
|
5089
5512
|
MtnaWfDateRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDateRangeModule, imports: [[
|
|
5090
5513
|
i3$1.CommonModule,
|
|
5091
|
-
|
|
5514
|
+
i4.MtnaHighlightModule,
|
|
5092
5515
|
MtnaWfDateModule,
|
|
5093
5516
|
flexLayout.FlexLayoutModule,
|
|
5094
5517
|
i6.FormsModule,
|
|
@@ -5100,7 +5523,7 @@
|
|
|
5100
5523
|
args: [{
|
|
5101
5524
|
imports: [
|
|
5102
5525
|
i3$1.CommonModule,
|
|
5103
|
-
|
|
5526
|
+
i4.MtnaHighlightModule,
|
|
5104
5527
|
MtnaWfDateModule,
|
|
5105
5528
|
flexLayout.FlexLayoutModule,
|
|
5106
5529
|
i6.FormsModule,
|
|
@@ -5120,7 +5543,7 @@
|
|
|
5120
5543
|
return MtnaWfDropdownComponent;
|
|
5121
5544
|
}(MtnaWfBaseSingleSelectionParentValueItem));
|
|
5122
5545
|
MtnaWfDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDropdownComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5123
|
-
MtnaWfDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDropdownComponent, selector: "mtna-wf-dropdown-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<mat-form-field\n *ngIf=\"!readonly && !!control; else readOnly\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-label>{{ item.label }}</mat-label>\n <mat-select [formControl]=\"control\"
|
|
5546
|
+
MtnaWfDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDropdownComponent, selector: "mtna-wf-dropdown-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<mat-form-field\n *ngIf=\"!readonly && !!control; else readOnly\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-label>{{ item.label }}</mat-label>\n <mat-select [formControl]=\"control\" [panelClass]=\"'mtna-wf-dropdown-item__select-panel'\" [required]=\"item.required\" (selectionChange)=\"selectionChange($event)\">\n <mat-option *ngIf=\"!item.required\" i18n>-- None --</mat-option>\n <mat-option *ngFor=\"let opt of item.options\" [value]=\"opt.option.id\" [disabled]=\"control.value === opt.option.id\">{{\n opt.option.name\n }}</mat-option>\n </mat-select>\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n</mat-form-field>\n\n<ng-template #readOnly>\n <ng-container *ngIf=\"inList; else fullList\">\n <mat-list-item *ngIf=\"item.required || !!item.value\">\n <mat-icon *ngIf=\"item.label | mtnaWfGetListIcon as icon\" matListIcon>{{ icon }}</mat-icon>\n <h4 matLine>{{ item.label }}</h4>\n <p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>\n </mat-list-item>\n </ng-container>\n\n <ng-template #fullList>\n <mat-list>\n <mat-list-item *ngIf=\"item.required || !!item.value\">\n <mat-icon *ngIf=\"item.label | mtnaWfGetListIcon as icon\" matListIcon>{{ icon }}</mat-icon>\n <h4 matLine>{{ item.label }}</h4>\n <p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>\n </mat-list-item>\n </mat-list>\n </ng-template>\n</ng-template>\n", styles: ["mtna-wf-dropdown-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-dropdown-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-dropdown-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-dropdown-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-dropdown-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: i1__namespace$4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2__namespace$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3__namespace$3.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i4__namespace$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i1__namespace$4.MatLabel, selector: "mat-label" }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4__namespace$2.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }, { type: i3__namespace$3.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe, "mtnaWfGetListIcon": MtnaWfGetListIconPipe, "mtnaWfGetSelectedOptionName": MtnaWfGetSelectedOptionNamePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5124
5547
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDropdownComponent, decorators: [{
|
|
5125
5548
|
type: i0.Component,
|
|
5126
5549
|
args: [{
|
|
@@ -5140,10 +5563,10 @@
|
|
|
5140
5563
|
MtnaWfDropdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDropdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5141
5564
|
MtnaWfDropdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDropdownModule, declarations: [MtnaWfDropdownComponent], imports: [i3$1.CommonModule,
|
|
5142
5565
|
i6.FormsModule,
|
|
5143
|
-
i1$
|
|
5566
|
+
i1$6.MatFormFieldModule,
|
|
5144
5567
|
i2.MatSelectModule,
|
|
5145
|
-
|
|
5146
|
-
i4$
|
|
5568
|
+
i4.MtnaHighlightModule,
|
|
5569
|
+
i4$2.MatListModule,
|
|
5147
5570
|
i5.MatIconModule,
|
|
5148
5571
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5149
5572
|
MtnaWfGetSelectedOptionNamePipeModule,
|
|
@@ -5152,10 +5575,10 @@
|
|
|
5152
5575
|
MtnaWfDropdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfDropdownModule, imports: [[
|
|
5153
5576
|
i3$1.CommonModule,
|
|
5154
5577
|
i6.FormsModule,
|
|
5155
|
-
i1$
|
|
5578
|
+
i1$6.MatFormFieldModule,
|
|
5156
5579
|
i2.MatSelectModule,
|
|
5157
|
-
|
|
5158
|
-
i4$
|
|
5580
|
+
i4.MtnaHighlightModule,
|
|
5581
|
+
i4$2.MatListModule,
|
|
5159
5582
|
i5.MatIconModule,
|
|
5160
5583
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5161
5584
|
MtnaWfGetSelectedOptionNamePipeModule,
|
|
@@ -5168,10 +5591,10 @@
|
|
|
5168
5591
|
imports: [
|
|
5169
5592
|
i3$1.CommonModule,
|
|
5170
5593
|
i6.FormsModule,
|
|
5171
|
-
i1$
|
|
5594
|
+
i1$6.MatFormFieldModule,
|
|
5172
5595
|
i2.MatSelectModule,
|
|
5173
|
-
|
|
5174
|
-
i4$
|
|
5596
|
+
i4.MtnaHighlightModule,
|
|
5597
|
+
i4$2.MatListModule,
|
|
5175
5598
|
i5.MatIconModule,
|
|
5176
5599
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5177
5600
|
MtnaWfGetSelectedOptionNamePipeModule,
|
|
@@ -5189,6 +5612,7 @@
|
|
|
5189
5612
|
var _this = _super.call(this, cdr) || this;
|
|
5190
5613
|
_this.fileService = fileService;
|
|
5191
5614
|
_this.loading = false;
|
|
5615
|
+
_this._fileUploadButtonText = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["CHOOSE A FILE"], ["CHOOSE A FILE"])));
|
|
5192
5616
|
return _this;
|
|
5193
5617
|
}
|
|
5194
5618
|
MtnaWfFileUploadComponent.prototype.fileToUpload = function (file) {
|
|
@@ -5222,8 +5646,8 @@
|
|
|
5222
5646
|
};
|
|
5223
5647
|
return MtnaWfFileUploadComponent;
|
|
5224
5648
|
}(MtnaWfBaseFormItemControl));
|
|
5225
|
-
MtnaWfFileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$
|
|
5226
|
-
MtnaWfFileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFileUploadComponent, selector: "mtna-wf-file-upload-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div class=\"content\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item
|
|
5649
|
+
MtnaWfFileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$5.FileService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5650
|
+
MtnaWfFileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFileUploadComponent, selector: "mtna-wf-file-upload-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div class=\"content\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <ng-container *ngIf=\"!readonly; else readOnly\">\n <ng-container *ngIf=\"!loading; else loader\">\n <mtna-file-download\n *ngIf=\"!!fileInfo; else fileUpload\"\n [fileInfo]=\"fileInfo\"\n [canRemove]=\"true\"\n color=\"primary\"\n [canDownload]=\"true\"\n (download)=\"handleDownload($event)\"\n (remove)=\"removeFile()\"\n ></mtna-file-download>\n\n <ng-template #fileUpload>\n <mtna-file-upload\n [automaticUpload]=\"false\"\n color=\"primary\"\n [buttonText]=\"_fileUploadButtonText\"\n (fileToUpload)=\"fileToUpload($event)\"\n ></mtna-file-upload>\n </ng-template>\n </ng-container>\n </ng-container>\n\n <!-- READONLY -->\n <ng-template #readOnly>\n <!-- anchor being used, due to <fieldset disabled> blocking a <button>'s click event -->\n <a\n *ngIf=\"!!item && !!item.value; else unpopulated\"\n class=\"single-icon-button\"\n color=\"primary\"\n mat-stroked-button\n role=\"button\"\n (click)=\"handleDownload(item.value)\"\n >\n <mat-icon color=\"primary\">file_download</mat-icon>\n {{ (item!.value!.fileName ? item!.value!.fileName : '') | uppercase }}\n </a>\n <ng-template #unpopulated>\n <mat-list>\n <mat-list-item class=\"wrappable-list-item\">\n <p mat-line class=\"wrap-line\" i18n>No File Provided</p>\n </mat-list-item>\n </mat-list>\n </ng-template>\n </ng-template>\n</div>\n\n<!-- PROGRESS SPINNER -->\n<ng-template #loader>\n <mat-spinner diameter=\"125\" strokeWidth=\"10\" mode=\"indeterminate\"></mat-spinner>\n</ng-template>\n", styles: [":host{display:block;margin:1rem 0}mtna-file-download{margin:37px 0}mat-spinner{margin:0 87.5px}\n"], components: [{ type: i1__namespace$5.MtnaFileDownloadComponent, selector: "mtna-file-download", inputs: ["color", "canDownload", "canRemove", "fileInfo", "loading"], outputs: ["download", "remove"] }, { type: i1__namespace$5.MtnaFileUploadComponent, selector: "mtna-file-upload", inputs: ["automaticUpload", "buttonText", "buttonColor", "disabled", "fileUploadUrl", "isProd", "maxUploadSize", "uploading"], outputs: ["uploaded", "fileToUpload", "uploadStatus"] }, { type: i3__namespace$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: i4__namespace$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i5__namespace$2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$3.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "uppercase": i3__namespace.UpperCasePipe } });
|
|
5227
5651
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadComponent, decorators: [{
|
|
5228
5652
|
type: i0.Component,
|
|
5229
5653
|
args: [{
|
|
@@ -5231,7 +5655,8 @@
|
|
|
5231
5655
|
templateUrl: './file-upload.component.html',
|
|
5232
5656
|
styleUrls: ['./file-upload.component.scss'],
|
|
5233
5657
|
}]
|
|
5234
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
5658
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$5.FileService }]; } });
|
|
5659
|
+
var templateObject_1$4;
|
|
5235
5660
|
|
|
5236
5661
|
var MtnaWfFileUploadModule = /** @class */ (function () {
|
|
5237
5662
|
function MtnaWfFileUploadModule() {
|
|
@@ -5240,21 +5665,21 @@
|
|
|
5240
5665
|
}());
|
|
5241
5666
|
MtnaWfFileUploadModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5242
5667
|
MtnaWfFileUploadModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadModule, declarations: [MtnaWfFileUploadComponent], imports: [i3$1.CommonModule,
|
|
5243
|
-
|
|
5668
|
+
i4.MtnaHighlightModule,
|
|
5244
5669
|
i3$2.MatButtonModule,
|
|
5245
5670
|
i5.MatIconModule,
|
|
5246
|
-
i1$
|
|
5247
|
-
i1$
|
|
5248
|
-
i4$
|
|
5671
|
+
i1$7.MtnaFileDownloadModule,
|
|
5672
|
+
i1$7.MtnaFileUploadModule,
|
|
5673
|
+
i4$2.MatListModule,
|
|
5249
5674
|
i5$2.MatProgressSpinnerModule], exports: [MtnaWfFileUploadComponent] });
|
|
5250
5675
|
MtnaWfFileUploadModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadModule, imports: [[
|
|
5251
5676
|
i3$1.CommonModule,
|
|
5252
|
-
|
|
5677
|
+
i4.MtnaHighlightModule,
|
|
5253
5678
|
i3$2.MatButtonModule,
|
|
5254
5679
|
i5.MatIconModule,
|
|
5255
|
-
i1$
|
|
5256
|
-
i1$
|
|
5257
|
-
i4$
|
|
5680
|
+
i1$7.MtnaFileDownloadModule,
|
|
5681
|
+
i1$7.MtnaFileUploadModule,
|
|
5682
|
+
i4$2.MatListModule,
|
|
5258
5683
|
i5$2.MatProgressSpinnerModule,
|
|
5259
5684
|
]] });
|
|
5260
5685
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFileUploadModule, decorators: [{
|
|
@@ -5262,12 +5687,12 @@
|
|
|
5262
5687
|
args: [{
|
|
5263
5688
|
imports: [
|
|
5264
5689
|
i3$1.CommonModule,
|
|
5265
|
-
|
|
5690
|
+
i4.MtnaHighlightModule,
|
|
5266
5691
|
i3$2.MatButtonModule,
|
|
5267
5692
|
i5.MatIconModule,
|
|
5268
|
-
i1$
|
|
5269
|
-
i1$
|
|
5270
|
-
i4$
|
|
5693
|
+
i1$7.MtnaFileDownloadModule,
|
|
5694
|
+
i1$7.MtnaFileUploadModule,
|
|
5695
|
+
i4$2.MatListModule,
|
|
5271
5696
|
i5$2.MatProgressSpinnerModule,
|
|
5272
5697
|
],
|
|
5273
5698
|
declarations: [MtnaWfFileUploadComponent],
|
|
@@ -5310,7 +5735,7 @@
|
|
|
5310
5735
|
return MtnaWfFormGroupComponent;
|
|
5311
5736
|
}(MtnaWfBaseGroupItem));
|
|
5312
5737
|
MtnaWfFormGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5313
|
-
MtnaWfFormGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormGroupComponent, selector: "mtna-wf-group", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"item && control\">\n <mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control.disabled\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n ></mtna-wf-item-header>\n <ng-template #fullLayout>\n <div\n class=\"item-group-container\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\"\n [formGroup]=\"control\"\n [ngClass]=\"item.layout\"\n >\n <mtna-wf-item\n *ngFor=\"let subItem of item.items; trackBy: _trackByInstanceId\"\n [class.row-item]=\"item.layout === 'ROW' && !fullWidth[subItem.itemId]\"\n [ngClass.lt-md]=\"'width-100'\"\n [item]=\"subItem\"\n [control]=\"control.controls[subItem.instanceId]\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n </div>\n </ng-template>\n\n <!-- When readonly, && all child items should be displayed in a mat-list-->\n <mat-list *ngIf=\"readonly && inList; else fullLayout\" [ngClass]=\"item.layout\">\n <mtna-wf-item\n *ngFor=\"let subItem of item.items | mtnaWfItemsWithValue;
|
|
5738
|
+
MtnaWfFormGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormGroupComponent, selector: "mtna-wf-group", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"item && control\">\n <mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control.disabled\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n ></mtna-wf-item-header>\n <ng-template #fullLayout>\n <div\n class=\"item-group-container\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\"\n [formGroup]=\"control\"\n [ngClass]=\"item.layout\"\n >\n <mtna-wf-item\n *ngFor=\"let subItem of item.items; trackBy: _trackByInstanceId\"\n [class.row-item]=\"item.layout === 'ROW' && !fullWidth[subItem.itemId]\"\n [ngClass.lt-md]=\"'width-100'\"\n [item]=\"subItem\"\n [control]=\"control.controls[subItem.instanceId]\"\n [parentIds]=\"parentIds\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n </div>\n </ng-template>\n\n <!-- When readonly, && all child items should be displayed in a mat-list-->\n <mat-list *ngIf=\"readonly && inList; else fullLayout\" [ngClass]=\"item.layout\">\n <mtna-wf-item\n *ngFor=\"let subItem of item.items | mtnaWfItemsWithValue; let index = index; trackBy: _trackByInstanceId\"\n [class.row-item]=\"item.layout === 'ROW'\"\n [ngClass.lt-md]=\"'width-100'\"\n [item]=\"subItem\"\n [inList]=\"true\"\n [parentIds]=\"parentIds\"\n [readonly]=\"true\"\n ></mtna-wf-item>\n </mat-list>\n</ng-container>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-group .item-group-container{padding-top:24px}mtna-wf-group .mtna-wf-group-header{margin-top:1rem}mtna-wf-group .mtna-wf-group-description{margin-bottom:1rem}mtna-wf-group mat-list mat-list-item [mat-line]{letter-spacing:.5px}mtna-wf-group mtna-wf-multiple-choice-item{display:block}mtna-wf-group .item-group-container>.mtna-wf-group{margin-top:1rem}mtna-wf-group .item-group-container>mtna-wf-item.mtna-wf-title~mtna-wf-item:not(.mtna-wf-title):not(.row-item){padding-left:16px}mtna-wf-group .item-group-container>mtna-wf-item.mtna-wf-title~mtna-wf-item:not(.mtna-wf-title):not(.row-item).width-100{width:calc(100% - 16px)}mtna-wf-group .item-group-container>mtna-wf-item:first-of-type{margin-top:0}mtna-wf-group .item-group-container.ROW>mtna-wf-item{margin-top:0}mtna-wf-group .item-group-container.ROW>*{display:block}mtna-wf-group .item-group-container .row-item{width:calc(50% - 16px);display:inline-block;margin:0 8px}mtna-wf-group .item-group-container .width-100{width:100%}mtna-wf-group .item-group-container .width-100.row-item{width:calc(100% - 16px)}mtna-wf-group mtna-wf-item-header+.item-group-container{padding:.35em .75em .625em}mtna-wf-group mtna-wf-item-header+.item-group-container>mtna-wf-item{margin-top:0}\n"], components: [{ type: MtnaWfItemHeaderComponent, selector: "mtna-wf-item-header", inputs: ["descriptiveText", "disabled", "hideRequiredMarker", "invalid", "questionText", "required"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "mtnaWfItemsWithValue": MtnaWfItemsWithValuePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5314
5739
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupComponent, decorators: [{
|
|
5315
5740
|
type: i0.Component,
|
|
5316
5741
|
args: [{
|
|
@@ -5330,7 +5755,7 @@
|
|
|
5330
5755
|
MtnaWfFormGroupModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5331
5756
|
MtnaWfFormGroupModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupModule, declarations: [MtnaWfFormGroupComponent], imports: [i3$1.CommonModule,
|
|
5332
5757
|
MtnaWfItemHeaderModule,
|
|
5333
|
-
|
|
5758
|
+
i4.MtnaHighlightModule,
|
|
5334
5759
|
MtnaWfFormItemModule,
|
|
5335
5760
|
i6.FormsModule,
|
|
5336
5761
|
i6.ReactiveFormsModule,
|
|
@@ -5339,7 +5764,7 @@
|
|
|
5339
5764
|
MtnaWfFormGroupModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupModule, imports: [[
|
|
5340
5765
|
i3$1.CommonModule,
|
|
5341
5766
|
MtnaWfItemHeaderModule,
|
|
5342
|
-
|
|
5767
|
+
i4.MtnaHighlightModule,
|
|
5343
5768
|
MtnaWfFormItemModule,
|
|
5344
5769
|
i6.FormsModule,
|
|
5345
5770
|
i6.ReactiveFormsModule,
|
|
@@ -5352,7 +5777,7 @@
|
|
|
5352
5777
|
imports: [
|
|
5353
5778
|
i3$1.CommonModule,
|
|
5354
5779
|
MtnaWfItemHeaderModule,
|
|
5355
|
-
|
|
5780
|
+
i4.MtnaHighlightModule,
|
|
5356
5781
|
MtnaWfFormItemModule,
|
|
5357
5782
|
i6.FormsModule,
|
|
5358
5783
|
i6.ReactiveFormsModule,
|
|
@@ -5372,7 +5797,7 @@
|
|
|
5372
5797
|
return MtnaWfFormSectionComponent;
|
|
5373
5798
|
}(MtnaWfBaseSectionItem));
|
|
5374
5799
|
MtnaWfFormSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5375
|
-
MtnaWfFormSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormSectionComponent, selector: "mtna-wf-section", usesInheritance: true, ngImport: i0__namespace, template: "<mtna-wf-step-card\n [step]=\"step\"\n [subtitle]=\"item.descriptiveText\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"\n (focused)=\"focused.emit($event)\"\n>\n <div cardContent>\n <ng-container *ngFor=\"let subItem of item.items; trackBy: _trackByInstanceId\">\n <mat-divider\n *ngIf=\"(subItem.itemId | mtnaWfGetObjectType) === 'formitemgroupimpl' && item.items.indexOf(subItem) !== 0\"\n class=\"section-item-divider\"\n [inset]=\"true\"\n ></mat-divider>\n\n <mtna-wf-item\n [item]=\"subItem\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n [control]=\"!!control && !!control.controls ? control.controls[subItem.instanceId] : undefined\"\n (focusedSection)=\"focused.emit($event)\"\n ></mtna-wf-item>\n </ng-container>\n </div>\n</mtna-wf-step-card>\n", styles: [":host{display:block}mat-divider.mat-divider-horizontal.mat-divider-inset.section-item-divider{margin-top:8px;margin-bottom:8px}mtna-wf-section mtna-wf-title-item .mtna-wf-title-item{font-size:.875rem;line-height:28px;font-weight:500}\n"], components: [{ type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: ["color", "step", "subtitle"], outputs: ["focused"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type:
|
|
5800
|
+
MtnaWfFormSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormSectionComponent, selector: "mtna-wf-section", usesInheritance: true, ngImport: i0__namespace, template: "<mtna-wf-step-card\n [step]=\"step\"\n [subtitle]=\"item.descriptiveText\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"\n (focused)=\"focused.emit($event)\"\n>\n <div cardContent>\n <ng-container *ngFor=\"let subItem of item.items; trackBy: _trackByInstanceId\">\n <mat-divider\n *ngIf=\"(subItem.itemId | mtnaWfGetObjectType) === 'formitemgroupimpl' && item.items.indexOf(subItem) !== 0\"\n class=\"section-item-divider\"\n [inset]=\"true\"\n ></mat-divider>\n\n <mtna-wf-item\n [item]=\"subItem\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n [control]=\"!!control && !!control.controls ? control.controls[subItem.instanceId] : undefined\"\n (focusedSection)=\"focused.emit($event)\"\n ></mtna-wf-item>\n </ng-container>\n </div>\n</mtna-wf-step-card>\n", styles: [":host{display:block}mat-divider.mat-divider-horizontal.mat-divider-inset.section-item-divider{margin-top:8px;margin-bottom:8px}mtna-wf-section mtna-wf-title-item .mtna-wf-title-item{font-size:.875rem;line-height:28px;font-weight:500}\n"], components: [{ type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: ["color", "step", "subtitle"], outputs: ["focused"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "mtnaWfGetObjectType": MtnaWfGetObjectTypePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5376
5801
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionComponent, decorators: [{
|
|
5377
5802
|
type: i0.Component,
|
|
5378
5803
|
args: [{
|
|
@@ -5389,12 +5814,12 @@
|
|
|
5389
5814
|
return MtnaWfFormSectionModule;
|
|
5390
5815
|
}());
|
|
5391
5816
|
MtnaWfFormSectionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5392
|
-
MtnaWfFormSectionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, declarations: [MtnaWfFormSectionComponent], imports: [i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule,
|
|
5393
|
-
MtnaWfFormSectionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, imports: [[i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule,
|
|
5817
|
+
MtnaWfFormSectionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, declarations: [MtnaWfFormSectionComponent], imports: [i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule, i4.MtnaHighlightModule], exports: [MtnaWfFormSectionComponent] });
|
|
5818
|
+
MtnaWfFormSectionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, imports: [[i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule, i4.MtnaHighlightModule]] });
|
|
5394
5819
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionModule, decorators: [{
|
|
5395
5820
|
type: i0.NgModule,
|
|
5396
5821
|
args: [{
|
|
5397
|
-
imports: [i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule,
|
|
5822
|
+
imports: [i3$1.CommonModule, MtnaWfStepCardModule, i2$2.MatDividerModule, MtnaWfFormItemModule, MtnaWfGetObjectTypePipeModule, i4.MtnaHighlightModule],
|
|
5398
5823
|
declarations: [MtnaWfFormSectionComponent],
|
|
5399
5824
|
exports: [MtnaWfFormSectionComponent],
|
|
5400
5825
|
}]
|
|
@@ -5405,6 +5830,7 @@
|
|
|
5405
5830
|
function MtnaWfI18nInputComponent() {
|
|
5406
5831
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5407
5832
|
_this.isParagraph = false;
|
|
5833
|
+
_this._notInformationText = $localize(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["No Information Provided"], ["No Information Provided"])));
|
|
5408
5834
|
return _this;
|
|
5409
5835
|
}
|
|
5410
5836
|
Object.defineProperty(MtnaWfI18nInputComponent.prototype, "item", {
|
|
@@ -5436,7 +5862,7 @@
|
|
|
5436
5862
|
return MtnaWfI18nInputComponent;
|
|
5437
5863
|
}(MtnaWfBaseValueItem));
|
|
5438
5864
|
MtnaWfI18nInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfI18nInputComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5439
|
-
MtnaWfI18nInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfI18nInputComponent, selector: "mtna-wf-i18n-input-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<ng-container *ngIf=\"!readonly && !!control; else readOnly\">\n <mat-form-field\n *ngFor=\"let language of item.languageTags\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n >\n <mat-label>{{ item.label + ' - ' + getLanguageDisplay(language) }}</mat-label>\n <ng-container *ngIf=\"isParagraph; else shortInput\">\n <textarea\n matInput\n [formControl]=\"getFormControl(language)\"\n [required]=\"item.required\"\n [attr.autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n cdkTextareaAutoSize\n cdkAutosizeMinRows=\"3\"\n cdkAutosizeMaxRows=\"5\"\n ></textarea>\n </ng-container>\n <ng-template #shortInput>\n <input\n matInput\n [formControl]=\"getFormControl(language)\"\n [autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n [required]=\"item.required\"\n />\n </ng-template>\n\n <mat-error *ngFor=\"let error of control.errors | keyvalue | slice : 0 : 1\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </mat-form-field>\n</ng-container>\n<!-- READONLY -->\n<ng-template #readOnly>\n <ng-container *ngTemplateOutlet=\"inList ? listItem : fullList\"></ng-container>\n</ng-template>\n\n<ng-template #fullList>\n <mat-list>\n <ng-container *ngTemplateOutlet=\"listItem\"></ng-container>\n </mat-list>\n</ng-template>\n\n<ng-template #listItem>\n <mat-list-item *ngFor=\"let language of item.languageTags\" class=\"wrappable-list-item\">\n <!-- <mat-icon *ngIf=\"item.label || item.header as label\" matListIcon>{{ label | mtnaWfGetListIcon }}</mat-icon> -->\n <h4 *ngIf=\"!item.questionText && (item.label || item.name) as label\" mat-line>{{ label }}</h4>\n <p mat-line class=\"wrap-line\">{{ item.value ||
|
|
5865
|
+
MtnaWfI18nInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfI18nInputComponent, selector: "mtna-wf-i18n-input-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<ng-container *ngIf=\"!readonly && !!control; else readOnly\">\n <mat-form-field\n *ngFor=\"let language of item.languageTags\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n >\n <mat-label>{{ item.label + ' - ' + getLanguageDisplay(language) }}</mat-label>\n <ng-container *ngIf=\"isParagraph; else shortInput\">\n <textarea\n matInput\n [formControl]=\"getFormControl(language)\"\n [required]=\"item.required\"\n [attr.autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n cdkTextareaAutoSize\n cdkAutosizeMinRows=\"3\"\n cdkAutosizeMaxRows=\"5\"\n ></textarea>\n </ng-container>\n <ng-template #shortInput>\n <input\n matInput\n [formControl]=\"getFormControl(language)\"\n [autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n [required]=\"item.required\"\n />\n </ng-template>\n\n <mat-error *ngFor=\"let error of control.errors | keyvalue | slice : 0 : 1\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </mat-form-field>\n</ng-container>\n<!-- READONLY -->\n<ng-template #readOnly>\n <ng-container *ngTemplateOutlet=\"inList ? listItem : fullList\"></ng-container>\n</ng-template>\n\n<ng-template #fullList>\n <mat-list>\n <ng-container *ngTemplateOutlet=\"listItem\"></ng-container>\n </mat-list>\n</ng-template>\n\n<ng-template #listItem>\n <mat-list-item *ngFor=\"let language of item.languageTags\" class=\"wrappable-list-item\">\n <!-- <mat-icon *ngIf=\"item.label || item.header as label\" matListIcon>{{ label | mtnaWfGetListIcon }}</mat-icon> -->\n <h4 *ngIf=\"!item.questionText && (item.label || item.name) as label\" mat-line>{{ label }}</h4>\n <p mat-line class=\"wrap-line\">{{ item.value || _notInformationText + ' - ' + language }}</p>\n </mat-list-item>\n</ng-template>\n", styles: ["mtna-wf-i18n-input-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-i18n-input-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-i18n-input-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-i18n-input-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-i18n-input-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-i18n-input-item .mat-list-base .mat-list-item,mtna-wf-i18n-input-item .mat-list-base .mat-list-item.mat-list-item-with-avatar{height:auto;padding:12px 0}mtna-wf-i18n-input-item .mat-list-base .mat-list-item.mat-2-line,mtna-wf-i18n-input-item .mat-list-base .mat-list-item.mat-2-line.mat-list-item-with-avatar{padding:18.5px 0}mtna-wf-i18n-input-item .mat-list-base .mat-list-item .mat-line{white-space:normal;overflow:unset;text-overflow:unset}\n"], components: [{ type: i1__namespace$4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i4__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: i4__namespace$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i1__namespace$4.MatLabel, selector: "mat-label" }, { type: i5__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i6__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: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i3__namespace$3.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "mtnaWfGetAutoComplete": MtnaWfGetAutoCompletePipe, "slice": i3__namespace.SlicePipe, "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5440
5866
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfI18nInputComponent, decorators: [{
|
|
5441
5867
|
type: i0.Component,
|
|
5442
5868
|
args: [{
|
|
@@ -5447,6 +5873,7 @@
|
|
|
5447
5873
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5448
5874
|
}]
|
|
5449
5875
|
}] });
|
|
5876
|
+
var templateObject_1$3;
|
|
5450
5877
|
|
|
5451
5878
|
var MtnaWfI18nInputModule = /** @class */ (function () {
|
|
5452
5879
|
function MtnaWfI18nInputModule() {
|
|
@@ -5456,21 +5883,21 @@
|
|
|
5456
5883
|
MtnaWfI18nInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfI18nInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5457
5884
|
MtnaWfI18nInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfI18nInputModule, declarations: [MtnaWfI18nInputComponent], imports: [i3$1.CommonModule,
|
|
5458
5885
|
i6.FormsModule,
|
|
5459
|
-
i1$
|
|
5886
|
+
i1$6.MatFormFieldModule,
|
|
5460
5887
|
i5$1.MatInputModule,
|
|
5461
|
-
|
|
5888
|
+
i4.MtnaHighlightModule,
|
|
5462
5889
|
MtnaWfGetAutoCompletePipeModule,
|
|
5463
|
-
i4$
|
|
5890
|
+
i4$2.MatListModule,
|
|
5464
5891
|
i6.ReactiveFormsModule,
|
|
5465
5892
|
MtnaWfGetFormControlErrorPipeModule], exports: [MtnaWfI18nInputComponent] });
|
|
5466
5893
|
MtnaWfI18nInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfI18nInputModule, imports: [[
|
|
5467
5894
|
i3$1.CommonModule,
|
|
5468
5895
|
i6.FormsModule,
|
|
5469
|
-
i1$
|
|
5896
|
+
i1$6.MatFormFieldModule,
|
|
5470
5897
|
i5$1.MatInputModule,
|
|
5471
|
-
|
|
5898
|
+
i4.MtnaHighlightModule,
|
|
5472
5899
|
MtnaWfGetAutoCompletePipeModule,
|
|
5473
|
-
i4$
|
|
5900
|
+
i4$2.MatListModule,
|
|
5474
5901
|
i6.ReactiveFormsModule,
|
|
5475
5902
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5476
5903
|
]] });
|
|
@@ -5480,11 +5907,11 @@
|
|
|
5480
5907
|
imports: [
|
|
5481
5908
|
i3$1.CommonModule,
|
|
5482
5909
|
i6.FormsModule,
|
|
5483
|
-
i1$
|
|
5910
|
+
i1$6.MatFormFieldModule,
|
|
5484
5911
|
i5$1.MatInputModule,
|
|
5485
|
-
|
|
5912
|
+
i4.MtnaHighlightModule,
|
|
5486
5913
|
MtnaWfGetAutoCompletePipeModule,
|
|
5487
|
-
i4$
|
|
5914
|
+
i4$2.MatListModule,
|
|
5488
5915
|
i6.ReactiveFormsModule,
|
|
5489
5916
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5490
5917
|
],
|
|
@@ -5499,6 +5926,7 @@
|
|
|
5499
5926
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5500
5927
|
_this.isParagraph = false;
|
|
5501
5928
|
_this.isNumberInput = false;
|
|
5929
|
+
_this._noInformationText = $localize(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["No Information Provided"], ["No Information Provided"])));
|
|
5502
5930
|
return _this;
|
|
5503
5931
|
}
|
|
5504
5932
|
Object.defineProperty(MtnaWfInputComponent.prototype, "item", {
|
|
@@ -5520,7 +5948,7 @@
|
|
|
5520
5948
|
return MtnaWfInputComponent;
|
|
5521
5949
|
}(MtnaWfBaseValueItem));
|
|
5522
5950
|
MtnaWfInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfInputComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5523
|
-
MtnaWfInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfInputComponent, selector: "mtna-wf-input-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<mat-form-field\n *ngIf=\"!readonly && !!control; else readOnly\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-label>{{ item.label }}</mat-label>\n <textarea\n *ngIf=\"isParagraph; else shortInput\"\n matInput\n [formControl]=\"control\"\n [required]=\"item.required\"\n [attr.autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n cdkTextareaAutoSize\n cdkAutosizeMinRows=\"3\"\n cdkAutosizeMaxRows=\"5\"\n ></textarea>\n\n <ng-template #shortInput>\n <input matInput [formControl]=\"control!\" [autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\" [required]=\"item.required\" />\n </ng-template>\n\n <mat-error *ngFor=\"let error of control.errors | keyvalue | slice : 0 : 1\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n</mat-form-field>\n\n<!-- READONLY -->\n<ng-template #readOnly>\n <ng-container *ngTemplateOutlet=\"inList ? listItem : fullList\"></ng-container>\n</ng-template>\n\n<ng-template #fullList>\n <mat-list>\n <ng-container *ngTemplateOutlet=\"listItem\"></ng-container>\n </mat-list>\n</ng-template>\n\n<ng-template #listItem>\n <mat-list-item class=\"wrappable-list-item\">\n <!-- <mat-icon *ngIf=\"item.label || item.header as label\" matListIcon>{{ label | mtnaWfGetListIcon }}</mat-icon> -->\n <h4 *ngIf=\"!item.questionText && (item.label || item.name) as label\" mat-line>{{ label }}</h4>\n <p mat-line class=\"wrap-line\">{{ item.value ||
|
|
5951
|
+
MtnaWfInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfInputComponent, selector: "mtna-wf-input-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header; context: { $implicit: true }\"></ng-container>\n<mat-form-field\n *ngIf=\"!readonly && !!control; else readOnly\"\n appearance=\"outline\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-label>{{ item.label }}</mat-label>\n <textarea\n *ngIf=\"isParagraph; else shortInput\"\n matInput\n [formControl]=\"control\"\n [required]=\"item.required\"\n [attr.autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\"\n cdkTextareaAutoSize\n cdkAutosizeMinRows=\"3\"\n cdkAutosizeMaxRows=\"5\"\n ></textarea>\n\n <ng-template #shortInput>\n <input matInput [formControl]=\"control!\" [autocomplete]=\"item.label || item.name | mtnaWfGetAutoComplete\" [required]=\"item.required\" />\n </ng-template>\n\n <mat-error *ngFor=\"let error of control.errors | keyvalue | slice : 0 : 1\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n</mat-form-field>\n\n<!-- READONLY -->\n<ng-template #readOnly>\n <ng-container *ngTemplateOutlet=\"inList ? listItem : fullList\"></ng-container>\n</ng-template>\n\n<ng-template #fullList>\n <mat-list>\n <ng-container *ngTemplateOutlet=\"listItem\"></ng-container>\n </mat-list>\n</ng-template>\n\n<ng-template #listItem>\n <mat-list-item class=\"wrappable-list-item\">\n <!-- <mat-icon *ngIf=\"item.label || item.header as label\" matListIcon>{{ label | mtnaWfGetListIcon }}</mat-icon> -->\n <h4 *ngIf=\"!item.questionText && (item.label || item.name) as label\" mat-line>{{ label }}</h4>\n <p mat-line class=\"wrap-line\">{{ item.value || _noInformationText }}</p>\n </mat-list-item>\n</ng-template>\n", styles: ["mtna-wf-input-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-input-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-input-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-input-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-input-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-input-item .mat-list-base .mat-list-item,mtna-wf-input-item .mat-list-base .mat-list-item.mat-list-item-with-avatar{height:auto;padding:12px 0}mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line,mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line.mat-list-item-with-avatar{padding:18.5px 0}mtna-wf-input-item .mat-list-base .mat-list-item .mat-line{white-space:normal;overflow:unset;text-overflow:unset}\n"], components: [{ type: i1__namespace$4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i4__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: i4__namespace$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i1__namespace$4.MatLabel, selector: "mat-label" }, { type: i5__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i6__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: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i3__namespace$3.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "mtnaWfGetAutoComplete": MtnaWfGetAutoCompletePipe, "slice": i3__namespace.SlicePipe, "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5524
5952
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfInputComponent, decorators: [{
|
|
5525
5953
|
type: i0.Component,
|
|
5526
5954
|
args: [{
|
|
@@ -5531,6 +5959,7 @@
|
|
|
5531
5959
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5532
5960
|
}]
|
|
5533
5961
|
}] });
|
|
5962
|
+
var templateObject_1$2;
|
|
5534
5963
|
|
|
5535
5964
|
var MtnaWfInputModule = /** @class */ (function () {
|
|
5536
5965
|
function MtnaWfInputModule() {
|
|
@@ -5539,22 +5968,22 @@
|
|
|
5539
5968
|
}());
|
|
5540
5969
|
MtnaWfInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5541
5970
|
MtnaWfInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfInputModule, declarations: [MtnaWfInputComponent], imports: [i3$1.CommonModule,
|
|
5542
|
-
i1$
|
|
5971
|
+
i1$6.MatFormFieldModule,
|
|
5543
5972
|
i6.FormsModule,
|
|
5544
|
-
i4$
|
|
5973
|
+
i4$2.MatListModule,
|
|
5545
5974
|
MtnaWfGetAutoCompletePipeModule,
|
|
5546
5975
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5547
|
-
|
|
5976
|
+
i4.MtnaHighlightModule,
|
|
5548
5977
|
i6.ReactiveFormsModule,
|
|
5549
5978
|
i5$1.MatInputModule], exports: [MtnaWfInputComponent] });
|
|
5550
5979
|
MtnaWfInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfInputModule, imports: [[
|
|
5551
5980
|
i3$1.CommonModule,
|
|
5552
|
-
i1$
|
|
5981
|
+
i1$6.MatFormFieldModule,
|
|
5553
5982
|
i6.FormsModule,
|
|
5554
|
-
i4$
|
|
5983
|
+
i4$2.MatListModule,
|
|
5555
5984
|
MtnaWfGetAutoCompletePipeModule,
|
|
5556
5985
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5557
|
-
|
|
5986
|
+
i4.MtnaHighlightModule,
|
|
5558
5987
|
i6.ReactiveFormsModule,
|
|
5559
5988
|
i5$1.MatInputModule,
|
|
5560
5989
|
]] });
|
|
@@ -5563,12 +5992,12 @@
|
|
|
5563
5992
|
args: [{
|
|
5564
5993
|
imports: [
|
|
5565
5994
|
i3$1.CommonModule,
|
|
5566
|
-
i1$
|
|
5995
|
+
i1$6.MatFormFieldModule,
|
|
5567
5996
|
i6.FormsModule,
|
|
5568
|
-
i4$
|
|
5997
|
+
i4$2.MatListModule,
|
|
5569
5998
|
MtnaWfGetAutoCompletePipeModule,
|
|
5570
5999
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5571
|
-
|
|
6000
|
+
i4.MtnaHighlightModule,
|
|
5572
6001
|
i6.ReactiveFormsModule,
|
|
5573
6002
|
i5$1.MatInputModule,
|
|
5574
6003
|
],
|
|
@@ -5585,7 +6014,7 @@
|
|
|
5585
6014
|
return MtnaWfMultipleChoiceComponent;
|
|
5586
6015
|
}(MtnaWfBaseSingleSelectionParentValueItem));
|
|
5587
6016
|
MtnaWfMultipleChoiceComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5588
|
-
MtnaWfMultipleChoiceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfMultipleChoiceComponent, selector: "mtna-wf-multiple-choice-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div *ngIf=\"control\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\">\n <div class=\"mtna-wf-error-container\">\n <ng-container *ngIf=\"control.invalid && (control.dirty || control.touched)\">\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </ng-container>\n </div>\n <mat-radio-group class=\"control-item-content\" [formControl]=\"control\" (change)=\"selectionChange($event)\">\n <ng-container *ngFor=\"let opt of item.options; trackBy: _trackByOptionId\">\n <mat-radio-button [disableRipple]=\"readonly\" [value]=\"opt.option.id\">{{ opt.option.name }}</mat-radio-button>\n <mtna-wf-item\n *ngIf=\"item.optionItemMap[opt.option.id] as subItem\"\n [item]=\"subItem\"\n [control]=\"!!controlWrapper && !!controlWrapper.controls ? controlWrapper.controls[subItem.instanceId] : undefined\"\n [parentIds]=\"parentIds.concat(opt.option.id)\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n </ng-container>\n </mat-radio-group>\n</div>\n", styles: ["mtna-wf-multiple-choice-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-multiple-choice-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-multiple-choice-item .mat-radio-group{display:inline-block;max-width:100%;width:100%}mtna-wf-multiple-choice-item .mat-radio-button{display:block;max-width:100%}mtna-wf-multiple-choice-item .mat-radio-button:not(:last-of-type){margin-bottom:4px}mtna-wf-multiple-choice-item .mat-radio-button .mat-radio-label{white-space:normal}mtna-wf-multiple-choice-item .mat-radio-button+mtna-wf-item{padding-left:28px;margin-top:0}mtna-wf-multiple-choice-item.read-only .mat-radio-button .mat-radio-label{cursor:default}\n"], components: [{ type: i1__namespace$
|
|
6017
|
+
MtnaWfMultipleChoiceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfMultipleChoiceComponent, selector: "mtna-wf-multiple-choice-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div *ngIf=\"control\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\">\n <div class=\"mtna-wf-error-container\">\n <ng-container *ngIf=\"control.invalid && (control.dirty || control.touched)\">\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </ng-container>\n </div>\n <mat-radio-group class=\"control-item-content\" [formControl]=\"control\" (change)=\"selectionChange($event)\">\n <ng-container *ngFor=\"let opt of item.options; trackBy: _trackByOptionId\">\n <mat-radio-button [disableRipple]=\"readonly\" [disabled]=\"readonly || control.disabled\" [value]=\"opt.option.id\">{{ opt.option.name }}</mat-radio-button>\n <mtna-wf-item\n *ngIf=\"item.optionItemMap[opt.option.id] as subItem\"\n [item]=\"subItem\"\n [control]=\"!!controlWrapper && !!controlWrapper.controls ? controlWrapper.controls[subItem.instanceId] : undefined\"\n [parentIds]=\"parentIds.concat(opt.option.id)\"\n [readonly]=\"readonly\"\n ></mtna-wf-item>\n </ng-container>\n </mat-radio-group>\n</div>\n", styles: ["mtna-wf-multiple-choice-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-multiple-choice-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-multiple-choice-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-multiple-choice-item .mat-radio-group{display:inline-block;max-width:100%;width:100%}mtna-wf-multiple-choice-item .mat-radio-button{display:block;max-width:100%}mtna-wf-multiple-choice-item .mat-radio-button:not(:last-of-type){margin-bottom:4px}mtna-wf-multiple-choice-item .mat-radio-button .mat-radio-label{white-space:normal}mtna-wf-multiple-choice-item .mat-radio-button+mtna-wf-item{padding-left:28px;margin-top:0}mtna-wf-multiple-choice-item.read-only .mat-radio-button .mat-radio-label{cursor:default}\n"], components: [{ type: i1__namespace$6.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i1__namespace$6.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5589
6018
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceComponent, decorators: [{
|
|
5590
6019
|
type: i0.Component,
|
|
5591
6020
|
args: [{
|
|
@@ -5605,21 +6034,21 @@
|
|
|
5605
6034
|
MtnaWfMultipleChoiceModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5606
6035
|
MtnaWfMultipleChoiceModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceModule, declarations: [MtnaWfMultipleChoiceComponent], imports: [i3$1.CommonModule,
|
|
5607
6036
|
i6.FormsModule,
|
|
5608
|
-
i1$
|
|
6037
|
+
i1$1.MatRadioModule,
|
|
5609
6038
|
MtnaWfFormItemModule,
|
|
5610
6039
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5611
6040
|
i6.ReactiveFormsModule,
|
|
5612
|
-
i1$
|
|
5613
|
-
|
|
6041
|
+
i1$6.MatFormFieldModule,
|
|
6042
|
+
i4.MtnaHighlightModule], exports: [MtnaWfMultipleChoiceComponent] });
|
|
5614
6043
|
MtnaWfMultipleChoiceModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceModule, imports: [[
|
|
5615
6044
|
i3$1.CommonModule,
|
|
5616
6045
|
i6.FormsModule,
|
|
5617
|
-
i1$
|
|
6046
|
+
i1$1.MatRadioModule,
|
|
5618
6047
|
MtnaWfFormItemModule,
|
|
5619
6048
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5620
6049
|
i6.ReactiveFormsModule,
|
|
5621
|
-
i1$
|
|
5622
|
-
|
|
6050
|
+
i1$6.MatFormFieldModule,
|
|
6051
|
+
i4.MtnaHighlightModule,
|
|
5623
6052
|
]] });
|
|
5624
6053
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfMultipleChoiceModule, decorators: [{
|
|
5625
6054
|
type: i0.NgModule,
|
|
@@ -5627,12 +6056,12 @@
|
|
|
5627
6056
|
imports: [
|
|
5628
6057
|
i3$1.CommonModule,
|
|
5629
6058
|
i6.FormsModule,
|
|
5630
|
-
i1$
|
|
6059
|
+
i1$1.MatRadioModule,
|
|
5631
6060
|
MtnaWfFormItemModule,
|
|
5632
6061
|
MtnaWfGetFormControlErrorPipeModule,
|
|
5633
6062
|
i6.ReactiveFormsModule,
|
|
5634
|
-
i1$
|
|
5635
|
-
|
|
6063
|
+
i1$6.MatFormFieldModule,
|
|
6064
|
+
i4.MtnaHighlightModule,
|
|
5636
6065
|
],
|
|
5637
6066
|
declarations: [MtnaWfMultipleChoiceComponent],
|
|
5638
6067
|
exports: [MtnaWfMultipleChoiceComponent],
|
|
@@ -5647,7 +6076,7 @@
|
|
|
5647
6076
|
return MtnaWfOrderedListItemComponent;
|
|
5648
6077
|
}(MtnaWfBaseFormItem));
|
|
5649
6078
|
MtnaWfOrderedListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5650
|
-
MtnaWfOrderedListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfOrderedListItemComponent, selector: "mtna-wf-ordered-list-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<ol [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <li *ngFor=\"let item of item.value\" [innerHTML]=\"item | mtnaWfSanitizeHtml\"></li>\n</ol>\n", styles: ["mtna-wf-ordered-list-item>ol{list-style:decimal outside;padding-left:1rem}mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-ordered-list-item>ol{padding-right:24px}\n"], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type:
|
|
6079
|
+
MtnaWfOrderedListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfOrderedListItemComponent, selector: "mtna-wf-ordered-list-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<ol [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <li *ngFor=\"let item of item.value\" [innerHTML]=\"item | mtnaWfSanitizeHtml\"></li>\n</ol>\n", styles: ["mtna-wf-ordered-list-item>ol{list-style:decimal outside;padding-left:1rem}mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-ordered-list-item>ol{padding-right:24px}\n"], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5651
6080
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemComponent, decorators: [{
|
|
5652
6081
|
type: i0.Component,
|
|
5653
6082
|
args: [{
|
|
@@ -5665,12 +6094,12 @@
|
|
|
5665
6094
|
return MtnaWfOrderedListItemModule;
|
|
5666
6095
|
}());
|
|
5667
6096
|
MtnaWfOrderedListItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5668
|
-
MtnaWfOrderedListItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, declarations: [MtnaWfOrderedListItemComponent], imports: [i3$1.CommonModule,
|
|
5669
|
-
MtnaWfOrderedListItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, imports: [[i3$1.CommonModule,
|
|
6097
|
+
MtnaWfOrderedListItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, declarations: [MtnaWfOrderedListItemComponent], imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule], exports: [MtnaWfOrderedListItemComponent] });
|
|
6098
|
+
MtnaWfOrderedListItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, imports: [[i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule]] });
|
|
5670
6099
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfOrderedListItemModule, decorators: [{
|
|
5671
6100
|
type: i0.NgModule,
|
|
5672
6101
|
args: [{
|
|
5673
|
-
imports: [i3$1.CommonModule,
|
|
6102
|
+
imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule],
|
|
5674
6103
|
declarations: [MtnaWfOrderedListItemComponent],
|
|
5675
6104
|
exports: [MtnaWfOrderedListItemComponent],
|
|
5676
6105
|
}]
|
|
@@ -5718,6 +6147,7 @@
|
|
|
5718
6147
|
function MtnaWfRepeatableItemContainerComponent(cdr, manager) {
|
|
5719
6148
|
var _this = _super.call(this, cdr) || this;
|
|
5720
6149
|
_this.manager = manager;
|
|
6150
|
+
_this._addText = $localize(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["ADD"], ["ADD"])));
|
|
5721
6151
|
return _this;
|
|
5722
6152
|
}
|
|
5723
6153
|
MtnaWfRepeatableItemContainerComponent.prototype.addItem = function () {
|
|
@@ -5730,12 +6160,12 @@
|
|
|
5730
6160
|
return MtnaWfRepeatableItemContainerComponent;
|
|
5731
6161
|
}(MtnaWfBaseParentValueItem));
|
|
5732
6162
|
MtnaWfRepeatableItemContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfRepeatableItemContainerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: MtnaWfManagerService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5733
|
-
MtnaWfRepeatableItemContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfRepeatableItemContainerComponent, selector: "mtna-wf-repeatable-item-container", usesInheritance: true, ngImport: i0__namespace, template: "<mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control?.disabled || false\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n></mtna-wf-item-header>\n<section [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <mtna-wf-repeatable-item\n @repeatItemExpandCollapse\n *ngFor=\"let subitem of item.items; let first = first; trackBy: 'instanceId' | mtnaTrackByProperty\"\n >\n <ng-container *ngIf=\"subitem | coerceFormItem as coercedSubItem\">\n <button\n *ngIf=\"!readonly && item.items.length > item.minOccurrences\"\n mat-icon-button\n class=\"item-remove-button\"\n color=\"warn\"\n (click)=\"removeItem(coercedSubItem)\"\n matTooltip=\"Remove Item\"\n >\n <mat-icon>remove_circle</mat-icon>\n </button>\n <mtna-wf-item\n [item]=\"coercedSubItem\"\n [control]=\"!!control && !!control.controls ? control.controls[coercedSubItem.instanceId] : undefined\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n ></mtna-wf-item>\n </ng-container>\n </mtna-wf-repeatable-item>\n</section>\n<button *ngIf=\"!readonly\" mat-raised-button (click)=\"addItem()\" class=\"new-item-button\" color=\"primary\">\n {{ item.additionalText ||
|
|
6163
|
+
MtnaWfRepeatableItemContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfRepeatableItemContainerComponent, selector: "mtna-wf-repeatable-item-container", usesInheritance: true, ngImport: i0__namespace, template: "<mtna-wf-item-header\n *ngIf=\"!!item.questionText || !!item.descriptiveText\"\n [descriptiveText]=\"item.descriptiveText\"\n [disabled]=\"control?.disabled || false\"\n [questionText]=\"item.questionText\"\n [required]=\"item.required\"\n></mtna-wf-item-header>\n<section [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <mtna-wf-repeatable-item\n @repeatItemExpandCollapse\n *ngFor=\"let subitem of item.items; let first = first; trackBy: 'instanceId' | mtnaTrackByProperty\"\n >\n <ng-container *ngIf=\"subitem | coerceFormItem as coercedSubItem\">\n <button\n *ngIf=\"!readonly && item.items.length > item.minOccurrences\"\n mat-icon-button\n class=\"item-remove-button\"\n color=\"warn\"\n (click)=\"removeItem(coercedSubItem)\"\n matTooltip=\"Remove Item\"\n i18n-matTooltip\n >\n <mat-icon>remove_circle</mat-icon>\n </button>\n <mtna-wf-item\n [item]=\"coercedSubItem\"\n [control]=\"!!control && !!control.controls ? control.controls[coercedSubItem.instanceId] : undefined\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n ></mtna-wf-item>\n </ng-container>\n </mtna-wf-repeatable-item>\n</section>\n<button *ngIf=\"!readonly\" mat-raised-button (click)=\"addItem()\" class=\"new-item-button\" color=\"primary\">\n {{ item.additionalText || _addText | uppercase }}\n</button>\n", styles: ["mtna-wf-repeatable-item-container{display:block}mtna-wf-repeatable-item-container>section>mtna-wf-repeatable-item{position:relative;padding:16px;border-style:dashed;border-width:4px;border-radius:4px;display:inline-block;margin:8px;max-width:100%}mtna-wf-repeatable-item-container>section>mtna-wf-repeatable-item .item-remove-button{position:absolute;top:-22px;left:-22px}mtna-wf-repeatable-item-container>section>mtna-wf-repeatable-item>mtna-wf-item:first-child{margin-top:0}mtna-wf-repeatable-item-container .new-item-button{margin-left:.75em}mtna-wf-repeatable-item-container>section{padding-left:.75em}mtna-wf-repeatable-item-container>section,mtna-wf-repeatable-item-container .new-item-button{margin-top:16px}\n"], components: [{ type: MtnaWfItemHeaderComponent, selector: "mtna-wf-item-header", inputs: ["descriptiveText", "disabled", "hideRequiredMarker", "invalid", "questionText", "required"] }, { type: MtnaWfRepeatableItemComponent, selector: "mtna-wf-repeatable-item" }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "mtnaTrackByProperty": i4__namespace.MtnaTrackByPropertyPipe, "coerceFormItem": MtnaWfCoerceFormItemPipe, "uppercase": i3__namespace.UpperCasePipe }, animations: [
|
|
5734
6164
|
animations.trigger('repeatItemExpandCollapse', [
|
|
5735
6165
|
animations.state('in', animations.style({ height: '*', margin: '*', opacity: 1 })),
|
|
5736
6166
|
animations.state('void', animations.style({ height: 0, margin: 0, opacity: 0, visibility: 'hidden' })),
|
|
5737
|
-
animations.transition(':enter', [animations.animate(
|
|
5738
|
-
animations.transition(':leave', animations.animate(
|
|
6167
|
+
animations.transition(':enter', [animations.animate(i4.COMPLEX_STANDARD, animations.style({ height: '*', margin: '*', opacity: 1 }))]),
|
|
6168
|
+
animations.transition(':leave', animations.animate(i4.COMPLEX_STANDARD)),
|
|
5739
6169
|
]),
|
|
5740
6170
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5741
6171
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfRepeatableItemContainerComponent, decorators: [{
|
|
@@ -5748,14 +6178,15 @@
|
|
|
5748
6178
|
animations.trigger('repeatItemExpandCollapse', [
|
|
5749
6179
|
animations.state('in', animations.style({ height: '*', margin: '*', opacity: 1 })),
|
|
5750
6180
|
animations.state('void', animations.style({ height: 0, margin: 0, opacity: 0, visibility: 'hidden' })),
|
|
5751
|
-
animations.transition(':enter', [animations.animate(
|
|
5752
|
-
animations.transition(':leave', animations.animate(
|
|
6181
|
+
animations.transition(':enter', [animations.animate(i4.COMPLEX_STANDARD, animations.style({ height: '*', margin: '*', opacity: 1 }))]),
|
|
6182
|
+
animations.transition(':leave', animations.animate(i4.COMPLEX_STANDARD)),
|
|
5753
6183
|
]),
|
|
5754
6184
|
],
|
|
5755
6185
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5756
6186
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5757
6187
|
}]
|
|
5758
6188
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: MtnaWfManagerService }]; } });
|
|
6189
|
+
var templateObject_1$1;
|
|
5759
6190
|
|
|
5760
6191
|
var MtnaWfRepeatableItemContainerModule = /** @class */ (function () {
|
|
5761
6192
|
function MtnaWfRepeatableItemContainerModule() {
|
|
@@ -5767,22 +6198,22 @@
|
|
|
5767
6198
|
MtnaWfItemHeaderModule,
|
|
5768
6199
|
MtnaWfRepeatableItemModule,
|
|
5769
6200
|
MtnaWfFormItemModule,
|
|
5770
|
-
|
|
6201
|
+
i4.MtnaHighlightModule,
|
|
5771
6202
|
i3$2.MatButtonModule,
|
|
5772
6203
|
i5.MatIconModule,
|
|
5773
6204
|
i6$1.MatTooltipModule,
|
|
5774
|
-
|
|
6205
|
+
i4.MtnaTrackByPropertyPipeModule,
|
|
5775
6206
|
MtnaWfCoerceFormItemPipeModule], exports: [MtnaWfRepeatableItemContainerComponent] });
|
|
5776
6207
|
MtnaWfRepeatableItemContainerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfRepeatableItemContainerModule, imports: [[
|
|
5777
6208
|
i3$1.CommonModule,
|
|
5778
6209
|
MtnaWfItemHeaderModule,
|
|
5779
6210
|
MtnaWfRepeatableItemModule,
|
|
5780
6211
|
MtnaWfFormItemModule,
|
|
5781
|
-
|
|
6212
|
+
i4.MtnaHighlightModule,
|
|
5782
6213
|
i3$2.MatButtonModule,
|
|
5783
6214
|
i5.MatIconModule,
|
|
5784
6215
|
i6$1.MatTooltipModule,
|
|
5785
|
-
|
|
6216
|
+
i4.MtnaTrackByPropertyPipeModule,
|
|
5786
6217
|
MtnaWfCoerceFormItemPipeModule,
|
|
5787
6218
|
]] });
|
|
5788
6219
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfRepeatableItemContainerModule, decorators: [{
|
|
@@ -5793,11 +6224,11 @@
|
|
|
5793
6224
|
MtnaWfItemHeaderModule,
|
|
5794
6225
|
MtnaWfRepeatableItemModule,
|
|
5795
6226
|
MtnaWfFormItemModule,
|
|
5796
|
-
|
|
6227
|
+
i4.MtnaHighlightModule,
|
|
5797
6228
|
i3$2.MatButtonModule,
|
|
5798
6229
|
i5.MatIconModule,
|
|
5799
6230
|
i6$1.MatTooltipModule,
|
|
5800
|
-
|
|
6231
|
+
i4.MtnaTrackByPropertyPipeModule,
|
|
5801
6232
|
MtnaWfCoerceFormItemPipeModule,
|
|
5802
6233
|
],
|
|
5803
6234
|
declarations: [MtnaWfRepeatableItemContainerComponent],
|
|
@@ -5819,8 +6250,8 @@
|
|
|
5819
6250
|
MtnaWfResourceSearchComponent.prototype.openDialog = function () {
|
|
5820
6251
|
var _this = this;
|
|
5821
6252
|
this.dialog
|
|
5822
|
-
.open(i1$
|
|
5823
|
-
data: new i1$
|
|
6253
|
+
.open(i1$4.MtnaSearchDialogComponent, {
|
|
6254
|
+
data: new i1$4.MtnaSearchDialogData(this.searchFacade, $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject(["Select a Reference"], ["Select a Reference"]))), true, Object.assign(Object.assign({}, this.item.initialQuery), { target: this.item.searchTargetId }), undefined, true, {
|
|
5824
6255
|
color: 'primary',
|
|
5825
6256
|
disableSubResults: true,
|
|
5826
6257
|
resizableColumns: true,
|
|
@@ -5852,8 +6283,8 @@
|
|
|
5852
6283
|
};
|
|
5853
6284
|
return MtnaWfResourceSearchComponent;
|
|
5854
6285
|
}(MtnaWfBaseValueItem));
|
|
5855
|
-
MtnaWfResourceSearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$
|
|
5856
|
-
MtnaWfResourceSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfResourceSearchComponent, selector: "mtna-wf-resource-search-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div class=\"label-container\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div class=\"label-text\"
|
|
6286
|
+
MtnaWfResourceSearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$7.MtnaInMemorySearchFacade }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6287
|
+
MtnaWfResourceSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfResourceSearchComponent, selector: "mtna-wf-resource-search-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div class=\"label-container\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div class=\"label-text\">\n {{ item.label }}\n </div>\n <mat-divider fxFlex></mat-divider>\n</div>\n<div class=\"values-container\">\n <!-- <aria-ui-reference-list-table\n [path]=\"path\"\n [referenceConfiguration]=\"referenceConfiguration\"\n [references]=\"references\"\n [termReference]=\"termReference\"\n (openDetails)=\"openDetails.emit($event)\"\n (referenceSelected)=\"addButtonDisabled = !!$event\"\n (updateValues)=\"updateValues.emit($event)\"\n >\n </aria-ui-reference-list-table>\n -->\n <button mat-flat-button class=\"add-button\" color=\"primary\" [disabled]=\"readonly\" (click)=\"openDialog()\" i18n>\n Add Resource<mat-icon>add_circle_outline</mat-icon>\n </button>\n</div>\n", styles: ["mtna-wf-resource-search-item .label-container .label-text{margin:0 8px 0 0}mtna-wf-resource-search-item .label-container .mat-divider.mat-divider-horizontal{position:unset;width:unset}mtna-wf-resource-search-item .values-container{margin-left:1em;border-width:1px;border-style:solid;border-radius:4px;border-color:#0000001f;padding:8px}mtna-wf-resource-search-item .values-container .paginator-and-order-controls{margin-bottom:8px}mtna-wf-resource-search-item .values-container .add-button .mat-icon{margin-left:4px}\n"], components: [{ type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5857
6288
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfResourceSearchComponent, decorators: [{
|
|
5858
6289
|
type: i0.Component,
|
|
5859
6290
|
args: [{
|
|
@@ -5863,7 +6294,7 @@
|
|
|
5863
6294
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5864
6295
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5865
6296
|
}]
|
|
5866
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
6297
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$7.MtnaInMemorySearchFacade }, { type: i1__namespace.MatDialog }]; } });
|
|
5867
6298
|
var templateObject_1;
|
|
5868
6299
|
|
|
5869
6300
|
var MtnaWfResourceSearchModule = /** @class */ (function () {
|
|
@@ -5897,7 +6328,7 @@
|
|
|
5897
6328
|
return MtnaWfTableFormItemComponent;
|
|
5898
6329
|
}(MtnaWfBaseParentValueItem));
|
|
5899
6330
|
MtnaWfTableFormItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5900
|
-
MtnaWfTableFormItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTableFormItemComponent, selector: "mtna-wf-table-item", usesInheritance: true, ngImport: i0__namespace, template: "<table mat-table [dataSource]=\"item.tableRows\" [trackBy]=\"_trackByTableRow\">\n <ng-container *ngFor=\"let header of item.headers; let index = index\" [matColumnDef]=\"header\">\n <th mat-header-cell *matHeaderCellDef>{{ header }}</th>\n\n <td mat-cell *matCellDef=\"let rowItem\">\n <mtna-wf-item\n *ngIf=\"!!rowItem.items[index]\"\n [control]=\"!!control && !!control.controls ? control.controls[rowItem.items[index].instanceId] : undefined\"\n [item]=\"rowItem.items[index]\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n ></mtna-wf-item>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"item.headers\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: item.headers\"></tr>\n</table>\n", styles: ["mtna-wf-table-item .mat-table{width:100%}mtna-wf-table-item .mat-table tbody tr td.mat-cell{padding:8px;vertical-align:top}mtna-wf-table-item .mat-table tbody tr td mtna-wf-group>.group{flex-direction:column;place-content:start start;align-items:start;justify-content:start}mtna-wf-table-item .mat-table tbody tr td mtna-wf-group>.group *{margin-top:0;margin-bottom:0}mtna-wf-table-item .mat-table tbody tr td mtna-wf-boolean-item>.mat-slide-toggle{margin-bottom:8px;margin-top:8px}mtna-wf-table-item .mat-table tbody tr td mtna-wf-repeatable-item-container .repeat-item-container:not(:first-of-type){margin-top:8px}mtna-wf-table-item .mat-table tbody tr td mtna-wf-repeatable-item-container .new-item-button{margin:8px 0}\n"], components: [{ type: i1__namespace$
|
|
6331
|
+
MtnaWfTableFormItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTableFormItemComponent, selector: "mtna-wf-table-item", usesInheritance: true, ngImport: i0__namespace, template: "<table mat-table [dataSource]=\"item.tableRows\" [trackBy]=\"_trackByTableRow\">\n <ng-container *ngFor=\"let header of item.headers; let index = index\" [matColumnDef]=\"header\">\n <th mat-header-cell *matHeaderCellDef>{{ header }}</th>\n\n <td mat-cell *matCellDef=\"let rowItem\">\n <mtna-wf-item\n *ngIf=\"!!rowItem.items[index]\"\n [control]=\"!!control && !!control.controls ? control.controls[rowItem.items[index].instanceId] : undefined\"\n [item]=\"rowItem.items[index]\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n ></mtna-wf-item>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"item.headers\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: item.headers\"></tr>\n</table>\n", styles: ["mtna-wf-table-item .mat-table{width:100%}mtna-wf-table-item .mat-table tbody tr td.mat-cell{padding:8px;vertical-align:top}mtna-wf-table-item .mat-table tbody tr td mtna-wf-group>.group{flex-direction:column;place-content:start start;align-items:start;justify-content:start}mtna-wf-table-item .mat-table tbody tr td mtna-wf-group>.group *{margin-top:0;margin-bottom:0}mtna-wf-table-item .mat-table tbody tr td mtna-wf-boolean-item>.mat-slide-toggle{margin-bottom:8px;margin-top:8px}mtna-wf-table-item .mat-table tbody tr td mtna-wf-repeatable-item-container .repeat-item-container:not(:first-of-type){margin-top:8px}mtna-wf-table-item .mat-table tbody tr td mtna-wf-repeatable-item-container .new-item-button{margin:8px 0}\n"], components: [{ type: i1__namespace$8.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }, { type: i1__namespace$8.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i1__namespace$8.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$8.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i1__namespace$8.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i1__namespace$8.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i1__namespace$8.MatCellDef, selector: "[matCellDef]" }, { type: i1__namespace$8.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$8.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i1__namespace$8.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5901
6332
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemComponent, decorators: [{
|
|
5902
6333
|
type: i0.Component,
|
|
5903
6334
|
args: [{
|
|
@@ -5915,12 +6346,12 @@
|
|
|
5915
6346
|
return MtnaWfTableFormItemModule;
|
|
5916
6347
|
}());
|
|
5917
6348
|
MtnaWfTableFormItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5918
|
-
MtnaWfTableFormItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, declarations: [MtnaWfTableFormItemComponent], imports: [i3$1.CommonModule, i1$
|
|
5919
|
-
MtnaWfTableFormItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, imports: [[i3$1.CommonModule, i1$
|
|
6349
|
+
MtnaWfTableFormItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, declarations: [MtnaWfTableFormItemComponent], imports: [i3$1.CommonModule, i1$8.MatTableModule, MtnaWfFormItemModule], exports: [MtnaWfTableFormItemComponent] });
|
|
6350
|
+
MtnaWfTableFormItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, imports: [[i3$1.CommonModule, i1$8.MatTableModule, MtnaWfFormItemModule]] });
|
|
5920
6351
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTableFormItemModule, decorators: [{
|
|
5921
6352
|
type: i0.NgModule,
|
|
5922
6353
|
args: [{
|
|
5923
|
-
imports: [i3$1.CommonModule, i1$
|
|
6354
|
+
imports: [i3$1.CommonModule, i1$8.MatTableModule, MtnaWfFormItemModule],
|
|
5924
6355
|
declarations: [MtnaWfTableFormItemComponent],
|
|
5925
6356
|
exports: [MtnaWfTableFormItemComponent],
|
|
5926
6357
|
}]
|
|
@@ -5934,7 +6365,7 @@
|
|
|
5934
6365
|
return MtnaWfTextItemComponent;
|
|
5935
6366
|
}(MtnaWfBaseFormItem));
|
|
5936
6367
|
MtnaWfTextItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5937
|
-
MtnaWfTextItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTextItemComponent, selector: "mtna-wf-text-item", usesInheritance: true, ngImport: i0__namespace, template: "<p [innerHTML]=\"$any(item.value) | mtnaWfSanitizeHtml\" class=\"mtna-wf-text-item\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"></p>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-text-item .mtna-wf-text-item{padding-right:24px}\n"], directives: [{ type:
|
|
6368
|
+
MtnaWfTextItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTextItemComponent, selector: "mtna-wf-text-item", usesInheritance: true, ngImport: i0__namespace, template: "<p [innerHTML]=\"$any(item.value) | mtnaWfSanitizeHtml\" class=\"mtna-wf-text-item\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\"></p>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-text-item .mtna-wf-text-item{padding-right:24px}\n"], directives: [{ type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5938
6369
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemComponent, decorators: [{
|
|
5939
6370
|
type: i0.Component,
|
|
5940
6371
|
args: [{
|
|
@@ -5952,12 +6383,12 @@
|
|
|
5952
6383
|
return MtnaWfTextItemModule;
|
|
5953
6384
|
}());
|
|
5954
6385
|
MtnaWfTextItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5955
|
-
MtnaWfTextItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, declarations: [MtnaWfTextItemComponent], imports: [i3$1.CommonModule,
|
|
5956
|
-
MtnaWfTextItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, imports: [[i3$1.CommonModule,
|
|
6386
|
+
MtnaWfTextItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, declarations: [MtnaWfTextItemComponent], imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule], exports: [MtnaWfTextItemComponent] });
|
|
6387
|
+
MtnaWfTextItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, imports: [[i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule]] });
|
|
5957
6388
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTextItemModule, decorators: [{
|
|
5958
6389
|
type: i0.NgModule,
|
|
5959
6390
|
args: [{
|
|
5960
|
-
imports: [i3$1.CommonModule,
|
|
6391
|
+
imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule],
|
|
5961
6392
|
declarations: [MtnaWfTextItemComponent],
|
|
5962
6393
|
exports: [MtnaWfTextItemComponent],
|
|
5963
6394
|
}]
|
|
@@ -5971,7 +6402,7 @@
|
|
|
5971
6402
|
return MtnaWfTitleItemComponent;
|
|
5972
6403
|
}(MtnaWfBaseFormItem));
|
|
5973
6404
|
MtnaWfTitleItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5974
|
-
MtnaWfTitleItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTitleItemComponent, selector: "mtna-wf-title-item", usesInheritance: true, ngImport: i0__namespace, template: "<h3 class=\"mtna-wf-title-item\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\">{{ item.value }}</h3>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-title-item .mtna-wf-title-item{padding-right:24px}mtna-wf-title-item .mtna-wf-title-item{font-size:1rem;font-weight:400;letter-spacing:1px;line-height:32px;text-transform:uppercase}\n"], directives: [{ type:
|
|
6405
|
+
MtnaWfTitleItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfTitleItemComponent, selector: "mtna-wf-title-item", usesInheritance: true, ngImport: i0__namespace, template: "<h3 class=\"mtna-wf-title-item\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\">{{ item.value }}</h3>\n", styles: ["mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-title-item .mtna-wf-title-item{padding-right:24px}mtna-wf-title-item .mtna-wf-title-item{font-size:1rem;font-weight:400;letter-spacing:1px;line-height:32px;text-transform:uppercase}\n"], directives: [{ type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5975
6406
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemComponent, decorators: [{
|
|
5976
6407
|
type: i0.Component,
|
|
5977
6408
|
args: [{
|
|
@@ -5989,12 +6420,12 @@
|
|
|
5989
6420
|
return MtnaWfTitleItemModule;
|
|
5990
6421
|
}());
|
|
5991
6422
|
MtnaWfTitleItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5992
|
-
MtnaWfTitleItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, declarations: [MtnaWfTitleItemComponent], imports: [i3$1.CommonModule,
|
|
5993
|
-
MtnaWfTitleItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, imports: [[i3$1.CommonModule,
|
|
6423
|
+
MtnaWfTitleItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, declarations: [MtnaWfTitleItemComponent], imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfGetObjectTypePipeModule], exports: [MtnaWfTitleItemComponent] });
|
|
6424
|
+
MtnaWfTitleItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, imports: [[i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfGetObjectTypePipeModule]] });
|
|
5994
6425
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfTitleItemModule, decorators: [{
|
|
5995
6426
|
type: i0.NgModule,
|
|
5996
6427
|
args: [{
|
|
5997
|
-
imports: [i3$1.CommonModule,
|
|
6428
|
+
imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfGetObjectTypePipeModule],
|
|
5998
6429
|
declarations: [MtnaWfTitleItemComponent],
|
|
5999
6430
|
exports: [MtnaWfTitleItemComponent],
|
|
6000
6431
|
}]
|
|
@@ -6008,7 +6439,7 @@
|
|
|
6008
6439
|
return MtnaWfUnorderedListItemComponent;
|
|
6009
6440
|
}(MtnaWfBaseFormItem));
|
|
6010
6441
|
MtnaWfUnorderedListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6011
|
-
MtnaWfUnorderedListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfUnorderedListItemComponent, selector: "mtna-wf-unordered-list-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<ul [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <li *ngFor=\"let item of item.value\" [innerHTML]=\"item | mtnaWfSanitizeHtml\"></li>\n</ul>\n", styles: ["mtna-wf-unordered-list-item>ul{list-style:disc outside;padding-left:1rem}mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-unordered-list-item>ul{padding-right:24px}\n"], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type:
|
|
6442
|
+
MtnaWfUnorderedListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfUnorderedListItemComponent, selector: "mtna-wf-unordered-list-item", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<ul [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !item.questionText && !item.descriptiveText\">\n <li *ngFor=\"let item of item.value\" [innerHTML]=\"item | mtnaWfSanitizeHtml\"></li>\n</ul>\n", styles: ["mtna-wf-unordered-list-item>ul{list-style:disc outside;padding-left:1rem}mtna-annotations-indicator+mtna-wf-item-injector+mtna-wf-unordered-list-item>ul{padding-right:24px}\n"], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6012
6443
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemComponent, decorators: [{
|
|
6013
6444
|
type: i0.Component,
|
|
6014
6445
|
args: [{
|
|
@@ -6026,12 +6457,12 @@
|
|
|
6026
6457
|
return MtnaWfUnorderedListItemModule;
|
|
6027
6458
|
}());
|
|
6028
6459
|
MtnaWfUnorderedListItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
6029
|
-
MtnaWfUnorderedListItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, declarations: [MtnaWfUnorderedListItemComponent], imports: [i3$1.CommonModule,
|
|
6030
|
-
MtnaWfUnorderedListItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, imports: [[i3$1.CommonModule,
|
|
6460
|
+
MtnaWfUnorderedListItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, declarations: [MtnaWfUnorderedListItemComponent], imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule], exports: [MtnaWfUnorderedListItemComponent] });
|
|
6461
|
+
MtnaWfUnorderedListItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, imports: [[i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule]] });
|
|
6031
6462
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemModule, decorators: [{
|
|
6032
6463
|
type: i0.NgModule,
|
|
6033
6464
|
args: [{
|
|
6034
|
-
imports: [i3$1.CommonModule,
|
|
6465
|
+
imports: [i3$1.CommonModule, i4.MtnaHighlightModule, MtnaWfSanitizeHtmlPipeModule],
|
|
6035
6466
|
declarations: [MtnaWfUnorderedListItemComponent],
|
|
6036
6467
|
exports: [MtnaWfUnorderedListItemComponent],
|
|
6037
6468
|
}]
|
|
@@ -6144,7 +6575,6 @@
|
|
|
6144
6575
|
};
|
|
6145
6576
|
MtnaWfYearQuarterComponent.prototype.ngOnInit = function () {
|
|
6146
6577
|
var _a, _b, _c;
|
|
6147
|
-
console.warn('YearQuarterItem ngOnInit', this.control);
|
|
6148
6578
|
// Set any initial value onto the Year & Quarter controls
|
|
6149
6579
|
this._yearControl.setValue(((_a = this.control) === null || _a === void 0 ? void 0 : _a.value) ? this.control.value.year : null);
|
|
6150
6580
|
this._quarterControl.setValue(((_b = this.control) === null || _b === void 0 ? void 0 : _b.value) ? this.control.value.quarter : null);
|
|
@@ -6175,7 +6605,7 @@
|
|
|
6175
6605
|
return MtnaWfYearQuarterComponent;
|
|
6176
6606
|
}(MtnaWfBaseValueItem));
|
|
6177
6607
|
MtnaWfYearQuarterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: MTNA_WF_DEFAULT_YEAR_RANGE, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6178
|
-
MtnaWfYearQuarterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item", host: { properties: { "class.mtna-wf-year-quarter-item": "this.yearQuarterItemClass" } }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div\n *ngIf=\"control\"\n class=\"year-quarter-container\"\n fxLayout=\"row\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-form-field>\n <mat-select [formControl]=\"_yearControl\" aria-label=\"
|
|
6608
|
+
MtnaWfYearQuarterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item", host: { properties: { "class.mtna-wf-year-quarter-item": "this.yearQuarterItemClass" } }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n<div\n *ngIf=\"control\"\n class=\"year-quarter-container\"\n fxLayout=\"row\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mat-form-field>\n <mat-select [formControl]=\"_yearControl\" aria-label=\"Year Selection\" i18n-aria-label>\n <mat-option *ngFor=\"let year of _yearSelection\" [value]=\"year\">{{ year }}</mat-option>\n </mat-select>\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-select [formControl]=\"_quarterControl\" aria-label=\"Quarter Selection\" i18n-aria-label>\n <mat-option i18n>None</mat-option>\n <mat-option *ngFor=\"let quarter of _yearControl.value | mtnaWfGetQuarters : componentRangeLimits\" [value]=\"quarter\">{{\n $any(quarter) | mtnaWfDateQuarter : 'short'\n }}</mat-option>\n </mat-select>\n <mat-error *ngFor=\"let error of control.errors | keyvalue\">\n {{ error | mtnaWfGetControlError : item }}\n </mat-error>\n </mat-form-field>\n</div>\n", styles: ["mtna-wf-year-quarter-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-year-quarter-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-year-quarter-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-year-quarter-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-year-quarter-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}mtna-wf-year-quarter-item.mtna-wf-year-quarter-item .year-quarter-container>.mat-form-field{max-width:75px}mtna-wf-year-quarter-item.mtna-wf-year-quarter-item .year-quarter-container>.mat-form-field:first-of-type{margin-right:8px}\n"], components: [{ type: i1__namespace$4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2__namespace$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3__namespace$3.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "keyvalue": i3__namespace.KeyValuePipe, "mtnaWfGetControlError": MtnaWfGetFormControlErrorPipe, "mtnaWfGetQuarters": MtnaWfGetAvailableQuartersPipe, "mtnaWfDateQuarter": MtnaWfDateQuarterPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6179
6609
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterComponent, decorators: [{
|
|
6180
6610
|
type: i0.Component,
|
|
6181
6611
|
args: [{
|
|
@@ -6205,24 +6635,24 @@
|
|
|
6205
6635
|
MtnaWfYearQuarterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
6206
6636
|
MtnaWfYearQuarterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterModule, declarations: [MtnaWfYearQuarterComponent], imports: [i3$1.CommonModule,
|
|
6207
6637
|
flexLayout.FlexLayoutModule,
|
|
6208
|
-
i1$
|
|
6638
|
+
i1$6.MatFormFieldModule,
|
|
6209
6639
|
i2.MatSelectModule,
|
|
6210
6640
|
i6.FormsModule,
|
|
6211
6641
|
MtnaWfGetFormControlErrorPipeModule,
|
|
6212
6642
|
MtnaWfGetAvailableQuartersPipeModule,
|
|
6213
6643
|
MtnaWfDateQuarterPipeModule,
|
|
6214
|
-
|
|
6644
|
+
i4.MtnaHighlightModule,
|
|
6215
6645
|
i6.ReactiveFormsModule], exports: [MtnaWfYearQuarterComponent] });
|
|
6216
6646
|
MtnaWfYearQuarterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterModule, imports: [[
|
|
6217
6647
|
i3$1.CommonModule,
|
|
6218
6648
|
flexLayout.FlexLayoutModule,
|
|
6219
|
-
i1$
|
|
6649
|
+
i1$6.MatFormFieldModule,
|
|
6220
6650
|
i2.MatSelectModule,
|
|
6221
6651
|
i6.FormsModule,
|
|
6222
6652
|
MtnaWfGetFormControlErrorPipeModule,
|
|
6223
6653
|
MtnaWfGetAvailableQuartersPipeModule,
|
|
6224
6654
|
MtnaWfDateQuarterPipeModule,
|
|
6225
|
-
|
|
6655
|
+
i4.MtnaHighlightModule,
|
|
6226
6656
|
i6.ReactiveFormsModule,
|
|
6227
6657
|
]] });
|
|
6228
6658
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterModule, decorators: [{
|
|
@@ -6231,13 +6661,13 @@
|
|
|
6231
6661
|
imports: [
|
|
6232
6662
|
i3$1.CommonModule,
|
|
6233
6663
|
flexLayout.FlexLayoutModule,
|
|
6234
|
-
i1$
|
|
6664
|
+
i1$6.MatFormFieldModule,
|
|
6235
6665
|
i2.MatSelectModule,
|
|
6236
6666
|
i6.FormsModule,
|
|
6237
6667
|
MtnaWfGetFormControlErrorPipeModule,
|
|
6238
6668
|
MtnaWfGetAvailableQuartersPipeModule,
|
|
6239
6669
|
MtnaWfDateQuarterPipeModule,
|
|
6240
|
-
|
|
6670
|
+
i4.MtnaHighlightModule,
|
|
6241
6671
|
i6.ReactiveFormsModule,
|
|
6242
6672
|
],
|
|
6243
6673
|
declarations: [MtnaWfYearQuarterComponent],
|
|
@@ -6268,7 +6698,7 @@
|
|
|
6268
6698
|
return MtnaWfYearQuarterRangeComponent;
|
|
6269
6699
|
}(MtnaWfBaseValueItem));
|
|
6270
6700
|
MtnaWfYearQuarterRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6271
|
-
MtnaWfYearQuarterRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterRangeComponent, selector: "mtna-wf-year-quarter-range-item", host: { properties: { "class.mtna-wf-year-quarter-range-item": "this.yearQuarterRangeClass" } }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div\n *ngIf=\"control\"\n class=\"range-item-container\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mtna-wf-year-quarter-item\n [item]=\"_startItem\"\n [control]=\"control.controls['start'] | mtnaWfCoerceFormControl\"\n [readonly]=\"readonly\"\n ></mtna-wf-year-quarter-item>\n <span fxFlex=\"14px\">to</span>\n <mtna-wf-year-quarter-item\n [item]=\"_endItem\"\n [control]=\"control.controls['end'] | mtnaWfCoerceFormControl\"\n [readonly]=\"readonly\"\n ></mtna-wf-year-quarter-item>\n</div>\n", styles: ["mtna-wf-year-quarter-range-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-year-quarter-range-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item" }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type:
|
|
6701
|
+
MtnaWfYearQuarterRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterRangeComponent, selector: "mtna-wf-year-quarter-range-item", host: { properties: { "class.mtna-wf-year-quarter-range-item": "this.yearQuarterRangeClass" } }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngTemplateOutlet=\"header\"></ng-container>\n\n<div\n *ngIf=\"control\"\n class=\"range-item-container\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"8px\"\n [mtnaHighlight]=\"indicatorStatus === 'ACTIVE' && !hasItemHeader\"\n>\n <mtna-wf-year-quarter-item\n [item]=\"_startItem\"\n [control]=\"control.controls['start'] | mtnaWfCoerceFormControl\"\n [readonly]=\"readonly\"\n ></mtna-wf-year-quarter-item>\n <span fxFlex=\"14px\">to</span>\n <mtna-wf-year-quarter-item\n [item]=\"_endItem\"\n [control]=\"control.controls['end'] | mtnaWfCoerceFormControl\"\n [readonly]=\"readonly\"\n ></mtna-wf-year-quarter-item>\n</div>\n", styles: ["mtna-wf-year-quarter-range-item.mtna-wf-control-item .mat-form-field{width:100%}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}mtna-wf-year-quarter-range-item.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}mtna-wf-year-quarter-range-item.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item" }], directives: [{ type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], pipes: { "mtnaWfCoerceFormControl": MtnaWfCoerceFormControlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6272
6702
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeComponent, decorators: [{
|
|
6273
6703
|
type: i0.Component,
|
|
6274
6704
|
args: [{
|
|
@@ -6289,17 +6719,37 @@
|
|
|
6289
6719
|
return MtnaWfYearQuarterRangeModule;
|
|
6290
6720
|
}());
|
|
6291
6721
|
MtnaWfYearQuarterRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
6292
|
-
MtnaWfYearQuarterRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, declarations: [MtnaWfYearQuarterRangeComponent], imports: [i3$1.CommonModule, MtnaWfYearQuarterModule,
|
|
6293
|
-
MtnaWfYearQuarterRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, imports: [[i3$1.CommonModule, MtnaWfYearQuarterModule,
|
|
6722
|
+
MtnaWfYearQuarterRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, declarations: [MtnaWfYearQuarterRangeComponent], imports: [i3$1.CommonModule, MtnaWfYearQuarterModule, i4.MtnaHighlightModule, flexLayout.FlexLayoutModule, MtnaWfCoerceFormControlPipeModule], exports: [MtnaWfYearQuarterRangeComponent] });
|
|
6723
|
+
MtnaWfYearQuarterRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, imports: [[i3$1.CommonModule, MtnaWfYearQuarterModule, i4.MtnaHighlightModule, flexLayout.FlexLayoutModule, MtnaWfCoerceFormControlPipeModule]] });
|
|
6294
6724
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfYearQuarterRangeModule, decorators: [{
|
|
6295
6725
|
type: i0.NgModule,
|
|
6296
6726
|
args: [{
|
|
6297
|
-
imports: [i3$1.CommonModule, MtnaWfYearQuarterModule,
|
|
6727
|
+
imports: [i3$1.CommonModule, MtnaWfYearQuarterModule, i4.MtnaHighlightModule, flexLayout.FlexLayoutModule, MtnaWfCoerceFormControlPipeModule],
|
|
6298
6728
|
declarations: [MtnaWfYearQuarterRangeComponent],
|
|
6299
6729
|
exports: [MtnaWfYearQuarterRangeComponent],
|
|
6300
6730
|
}]
|
|
6301
6731
|
}] });
|
|
6302
6732
|
|
|
6733
|
+
var MtnaWfProgressiveFormSectionComponent = /** @class */ (function (_super) {
|
|
6734
|
+
__extends(MtnaWfProgressiveFormSectionComponent, _super);
|
|
6735
|
+
function MtnaWfProgressiveFormSectionComponent(cdr) {
|
|
6736
|
+
return _super.call(this, cdr) || this;
|
|
6737
|
+
}
|
|
6738
|
+
return MtnaWfProgressiveFormSectionComponent;
|
|
6739
|
+
}(MtnaWfBaseSectionItem));
|
|
6740
|
+
MtnaWfProgressiveFormSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6741
|
+
MtnaWfProgressiveFormSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfProgressiveFormSectionComponent, selector: "mtna-wf-progressive-form-section", usesInheritance: true, ngImport: i0__namespace, template: "<mtna-wf-step-card [step]=\"step\" [subtitle]=\"item.descriptiveText\" [mtnaHighlight]=\"indicatorStatus === 'ACTIVE'\">\n <div cardContent>\n <ng-container *ngFor=\"let subItem of item.items; trackBy: _trackByInstanceId\">\n <mat-divider\n *ngIf=\"(subItem.itemId | mtnaWfGetObjectType) === 'formitemgroupimpl' && item.items.indexOf(subItem) !== 0\"\n class=\"section-item-divider\"\n [inset]=\"true\"\n ></mat-divider>\n\n <mtna-wf-item\n [item]=\"subItem\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds\"\n [control]=\"!!control && !!control.controls ? control.controls[subItem.instanceId] : undefined\"\n (focusedSection)=\"focused.emit($event)\"\n ></mtna-wf-item>\n </ng-container>\n </div>\n</mtna-wf-step-card>\n", styles: ["mtna-wf-progressive-form-section mat-divider.mat-divider-horizontal.progressive-form-section-actions-divider{position:relative;left:unset;padding-bottom:8px}mtna-wf-progressive-form-section .progressive-form-section-actions-wrapper .mat-raised-button{margin:0}\n"], components: [{ type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: ["color", "step", "subtitle"], outputs: ["focused"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i4__namespace.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "mtnaWfGetObjectType": MtnaWfGetObjectTypePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6742
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionComponent, decorators: [{
|
|
6743
|
+
type: i0.Component,
|
|
6744
|
+
args: [{
|
|
6745
|
+
selector: 'mtna-wf-progressive-form-section',
|
|
6746
|
+
templateUrl: './progressive-form-section.component.html',
|
|
6747
|
+
styleUrls: ['./progressive-form-section.component.scss'],
|
|
6748
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6749
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
6750
|
+
}]
|
|
6751
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; } });
|
|
6752
|
+
|
|
6303
6753
|
var MTNA_WF_ITEM_INJECTED_COMPONENTS = [
|
|
6304
6754
|
// Boolean Item Component
|
|
6305
6755
|
{
|
|
@@ -6341,6 +6791,11 @@
|
|
|
6341
6791
|
key: 'us.mtna.web.form.impl.SectionImpl',
|
|
6342
6792
|
component: MtnaWfFormSectionComponent,
|
|
6343
6793
|
},
|
|
6794
|
+
// Progressive Form Section Component
|
|
6795
|
+
{
|
|
6796
|
+
key: 'us.mtna.web.form.impl.ProgressiveFormSectionImpl',
|
|
6797
|
+
component: MtnaWfProgressiveFormSectionComponent,
|
|
6798
|
+
},
|
|
6344
6799
|
// I18n Input Item Components
|
|
6345
6800
|
{
|
|
6346
6801
|
key: 'us.mtna.web.form.item.impl.InternationalizedParagraphAnswerItem',
|
|
@@ -6428,205 +6883,420 @@
|
|
|
6428
6883
|
return MTNA_WF_ITEM_INJECTED_COMPONENTS;
|
|
6429
6884
|
};
|
|
6430
6885
|
return MtnaWfItemComponentProvider;
|
|
6431
|
-
}(
|
|
6886
|
+
}(i4.InjectedComponentProvider));
|
|
6432
6887
|
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6888
|
+
/* eslint-disable @angular-eslint/no-outputs-metadata-property */
|
|
6889
|
+
var MtnaWfProgressiveFormComponent = /** @class */ (function (_super) {
|
|
6890
|
+
__extends(MtnaWfProgressiveFormComponent, _super);
|
|
6891
|
+
function MtnaWfProgressiveFormComponent(mtnaFormManager, ngFormService, uiService, cdr, scrollService) {
|
|
6892
|
+
var _this = _super.call(this, mtnaFormManager, ngFormService, uiService) || this;
|
|
6893
|
+
_this.cdr = cdr;
|
|
6894
|
+
_this.scrollService = scrollService;
|
|
6895
|
+
_this._loading = false;
|
|
6896
|
+
/** Emits the updated ProgressiveForm value */
|
|
6897
|
+
_this.nextStepSelected = new i0.EventEmitter();
|
|
6898
|
+
/**
|
|
6899
|
+
* Emits the previous steps instanceId.
|
|
6900
|
+
* Since this component is always on the last step and the last item, we can always count on having the instanceId of the previous step.
|
|
6901
|
+
*/
|
|
6902
|
+
_this.previousStepSelected = new i0.EventEmitter();
|
|
6903
|
+
/**
|
|
6904
|
+
* Emits the instanceId of the selected step.
|
|
6905
|
+
* If the currently active step is the step that is selected, this will not emit.
|
|
6906
|
+
*/
|
|
6907
|
+
_this.showSelectedStepId = new i0.EventEmitter();
|
|
6908
|
+
_this.activeStepId$ = new rxjs.BehaviorSubject(undefined);
|
|
6909
|
+
_this.formItems = [];
|
|
6910
|
+
_this.formStatusValid$ = new rxjs.BehaviorSubject(false);
|
|
6911
|
+
_this.lastStepActive = false;
|
|
6912
|
+
_this.scrollDirection$ = _this.scrollService.getScrollDirection();
|
|
6913
|
+
_this.showPreviousButton = false;
|
|
6914
|
+
_this.stepArray$ = new rxjs.BehaviorSubject([]);
|
|
6915
|
+
/**
|
|
6916
|
+
* Checks if the last step in the form is active.
|
|
6917
|
+
* @returns true if the last step in the form is active, otherwise false
|
|
6918
|
+
*/
|
|
6919
|
+
_this.checkLastStepActive = function () {
|
|
6920
|
+
if (_this.stepArray$.value.length > 0) {
|
|
6921
|
+
return _this.stepArray$.value[_this.stepArray$.value.length - 1].active;
|
|
6922
|
+
}
|
|
6923
|
+
else if (_this.stepArray$.value.length === 0) {
|
|
6924
|
+
return _this.stepArray$.value[0].active;
|
|
6925
|
+
}
|
|
6926
|
+
else {
|
|
6927
|
+
return false;
|
|
6928
|
+
}
|
|
6929
|
+
};
|
|
6930
|
+
return _this;
|
|
6931
|
+
}
|
|
6932
|
+
Object.defineProperty(MtnaWfProgressiveFormComponent.prototype, "mtnaForm", {
|
|
6446
6933
|
get: function () {
|
|
6447
|
-
return
|
|
6934
|
+
return _super.prototype.mtnaForm;
|
|
6448
6935
|
},
|
|
6449
|
-
set: function (
|
|
6450
|
-
|
|
6936
|
+
set: function (form) {
|
|
6937
|
+
if (form) {
|
|
6938
|
+
this.formItems = form.items;
|
|
6939
|
+
this.resetValues();
|
|
6940
|
+
this.generateFormSteps(form.outline);
|
|
6941
|
+
this.checkAllStepsIds(form.items);
|
|
6942
|
+
_super.prototype.steps = this.determineStepsToPassToSuper(form.items);
|
|
6943
|
+
_super.prototype.mtnaForm = form;
|
|
6944
|
+
this.setStepStatus();
|
|
6945
|
+
this.setFormStatusSubscription();
|
|
6946
|
+
this.showPreviousButton = this.showPreviousButtonFn();
|
|
6947
|
+
this.lastStepActive = this.checkLastStepActive();
|
|
6948
|
+
this.cdr.markForCheck();
|
|
6949
|
+
}
|
|
6451
6950
|
},
|
|
6452
6951
|
enumerable: false,
|
|
6453
6952
|
configurable: true
|
|
6454
6953
|
});
|
|
6455
|
-
Object.defineProperty(
|
|
6954
|
+
Object.defineProperty(MtnaWfProgressiveFormComponent.prototype, "loading", {
|
|
6456
6955
|
get: function () {
|
|
6457
|
-
return this.
|
|
6458
|
-
},
|
|
6459
|
-
set: function (item) {
|
|
6460
|
-
this._item = item;
|
|
6956
|
+
return this._loading;
|
|
6461
6957
|
},
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
});
|
|
6465
|
-
Object.defineProperty(BaseFormItemControl.prototype, "hasItemHeader", {
|
|
6466
|
-
// Whether the item has a header component above the content
|
|
6467
|
-
get: function () {
|
|
6468
|
-
return !!this.item && (!!this.item.questionText || !!this.item.descriptiveText);
|
|
6958
|
+
set: function (value) {
|
|
6959
|
+
this._loading = coercion.coerceBooleanProperty(value);
|
|
6469
6960
|
},
|
|
6470
6961
|
enumerable: false,
|
|
6471
6962
|
configurable: true
|
|
6472
6963
|
});
|
|
6473
|
-
|
|
6474
|
-
|
|
6964
|
+
MtnaWfProgressiveFormComponent.prototype.ngOnDestroy = function () {
|
|
6965
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
6966
|
+
if (this.formStatusSubscriber) {
|
|
6967
|
+
this.formStatusSubscriber.unsubscribe();
|
|
6968
|
+
}
|
|
6475
6969
|
};
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
/**
|
|
6503
|
-
* Base control class for a FormItem with nested FormItems.
|
|
6504
|
-
* If a FormItem contains an 'optionItemMap', its component class should extend this class.
|
|
6505
|
-
*/
|
|
6506
|
-
var BaseParentItemControl = /** @class */ (function (_super) {
|
|
6507
|
-
__extends(BaseParentItemControl, _super);
|
|
6508
|
-
function BaseParentItemControl() {
|
|
6509
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
6510
|
-
_this.parentIds = new Array();
|
|
6511
|
-
return _this;
|
|
6512
|
-
}
|
|
6513
|
-
Object.defineProperty(BaseParentItemControl.prototype, "control", {
|
|
6514
|
-
/** FormControl representing this item's value.
|
|
6515
|
-
* If this item has items in its 'optionItemMap', this control is nested inside a FormGroup wrapper */
|
|
6516
|
-
get: function () {
|
|
6517
|
-
return this._control;
|
|
6518
|
-
},
|
|
6519
|
-
set: function (control) {
|
|
6520
|
-
if (control instanceof i6.FormGroup) {
|
|
6521
|
-
this._control = control.get(this.item.instanceId);
|
|
6522
|
-
this.controlWrapper = control;
|
|
6970
|
+
/**
|
|
6971
|
+
* Checks if the previous button should be shown.
|
|
6972
|
+
* @returns true if the previous button should be shown, otherwise false
|
|
6973
|
+
*/
|
|
6974
|
+
MtnaWfProgressiveFormComponent.prototype.showPreviousButtonFn = function () {
|
|
6975
|
+
var _this = this;
|
|
6976
|
+
if (this.activeStepId$.value) {
|
|
6977
|
+
var indexOfActiveStep = this.stepArray$.value.findIndex(function (step) { return step.instanceId === _this.activeStepId$.value; });
|
|
6978
|
+
return indexOfActiveStep > 0;
|
|
6979
|
+
}
|
|
6980
|
+
else {
|
|
6981
|
+
return false;
|
|
6982
|
+
}
|
|
6983
|
+
};
|
|
6984
|
+
/**
|
|
6985
|
+
* Subscribes to the form status changes and updates the formStatusValid$ BehaviorSubject with the validity of the active step.
|
|
6986
|
+
*/
|
|
6987
|
+
MtnaWfProgressiveFormComponent.prototype.setFormStatusSubscription = function () {
|
|
6988
|
+
var _this = this;
|
|
6989
|
+
var _a;
|
|
6990
|
+
if (this.ngForm) {
|
|
6991
|
+
// Used to set the initial validity of the active step, otherwise it will always default to false
|
|
6992
|
+
if (this.activeStepId$.value) {
|
|
6993
|
+
var initialValidity = (_a = this.ngForm.controls[this.activeStepId$.value]) === null || _a === void 0 ? void 0 : _a.valid;
|
|
6994
|
+
this.formStatusValid$.next(initialValidity);
|
|
6523
6995
|
}
|
|
6524
|
-
|
|
6525
|
-
|
|
6996
|
+
if (!this.formStatusSubscriber) {
|
|
6997
|
+
this.formStatusSubscriber = this.ngForm.statusChanges.subscribe(function () {
|
|
6998
|
+
if (_this.activeStepId$.value) {
|
|
6999
|
+
if (_this.ngForm) {
|
|
7000
|
+
var activeControlExists = Object.keys(_this.ngForm.controls).includes(_this.activeStepId$.value);
|
|
7001
|
+
if (activeControlExists) {
|
|
7002
|
+
var activeControl = _this.ngForm.controls[_this.activeStepId$.value];
|
|
7003
|
+
if (activeControl) {
|
|
7004
|
+
_this.formStatusValid$.next(activeControl.valid);
|
|
7005
|
+
}
|
|
7006
|
+
}
|
|
7007
|
+
}
|
|
7008
|
+
}
|
|
7009
|
+
});
|
|
6526
7010
|
}
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
configurable: true
|
|
6534
|
-
});
|
|
6535
|
-
return BaseParentItemControl;
|
|
6536
|
-
}(BaseFormItemControl));
|
|
6537
|
-
BaseParentItemControl.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseParentItemControl, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
6538
|
-
BaseParentItemControl.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseParentItemControl, inputs: { control: "control", parentIds: "parentIds" }, usesInheritance: true, ngImport: i0__namespace });
|
|
6539
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseParentItemControl, decorators: [{
|
|
6540
|
-
type: i0.Directive
|
|
6541
|
-
}], propDecorators: { control: [{
|
|
6542
|
-
type: i0.Input
|
|
6543
|
-
}], parentIds: [{
|
|
6544
|
-
type: i0.Input
|
|
6545
|
-
}] } });
|
|
6546
|
-
|
|
6547
|
-
var BaseSingleSelectionParent = /** @class */ (function (_super) {
|
|
6548
|
-
__extends(BaseSingleSelectionParent, _super);
|
|
6549
|
-
function BaseSingleSelectionParent(uiService) {
|
|
6550
|
-
var _this = _super.call(this) || this;
|
|
6551
|
-
_this.uiService = uiService;
|
|
6552
|
-
return _this;
|
|
6553
|
-
}
|
|
6554
|
-
BaseSingleSelectionParent.prototype.ngOnInit = function () {
|
|
6555
|
-
var _this = this;
|
|
7011
|
+
}
|
|
7012
|
+
};
|
|
7013
|
+
/**
|
|
7014
|
+
* Resets all necessary values to build to form each iteration.
|
|
7015
|
+
*/
|
|
7016
|
+
MtnaWfProgressiveFormComponent.prototype.resetValues = function () {
|
|
6556
7017
|
var _a;
|
|
6557
|
-
|
|
6558
|
-
|
|
7018
|
+
(_a = this.formStatusSubscriber) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
7019
|
+
this.ngForm = undefined;
|
|
7020
|
+
this._steps = undefined;
|
|
7021
|
+
this.ngFormService.disposeForm();
|
|
7022
|
+
this.stepArray$.next([]);
|
|
7023
|
+
this.activeStepId$.next(undefined);
|
|
7024
|
+
};
|
|
7025
|
+
/**
|
|
7026
|
+
* Generates the steps for the form based on the outline property of the form.
|
|
7027
|
+
* @param outline the outline of the form that is the basis for the steps
|
|
7028
|
+
*/
|
|
7029
|
+
MtnaWfProgressiveFormComponent.prototype.generateFormSteps = function (outline) {
|
|
7030
|
+
var _this = this;
|
|
7031
|
+
if (this.stepArray$.value.length === 0) {
|
|
7032
|
+
var generatedFormSteps = generateFormStepsFromOutline(outline);
|
|
7033
|
+
var flattenedFormSteps = flattenSteps(generatedFormSteps);
|
|
7034
|
+
this.stepArray$.next(flattenedFormSteps);
|
|
7035
|
+
// Set the active step to the first step in the array for the first load
|
|
7036
|
+
var lastItemIndex_1 = this.formItems.length - 1;
|
|
7037
|
+
var updatedSteps_1 = [];
|
|
7038
|
+
this.stepArray$.value.forEach(function (step) {
|
|
7039
|
+
if (step.instanceId === _this.formItems[lastItemIndex_1].instanceId || step.instanceId === _this.formItems[lastItemIndex_1].templateId) {
|
|
7040
|
+
updatedSteps_1.push(Object.assign(Object.assign({}, step), { active: true, status: 'INVALID' }));
|
|
7041
|
+
}
|
|
7042
|
+
else {
|
|
7043
|
+
updatedSteps_1.push(step);
|
|
7044
|
+
}
|
|
7045
|
+
});
|
|
7046
|
+
this.stepArray$.next(updatedSteps_1);
|
|
6559
7047
|
}
|
|
6560
7048
|
};
|
|
6561
7049
|
/**
|
|
6562
|
-
*
|
|
6563
|
-
*
|
|
6564
|
-
*
|
|
7050
|
+
* Checks all of the steps to ensure that each steps instanceId property matches the instanceId of the FormItem and updates the property if needed.
|
|
7051
|
+
* This finds the step based on the templateId. When the stepArray is first built, the templateId of the FormItem gets set as the steps instanceId.
|
|
7052
|
+
* Here, we just need to find the steps that match the templateId and update the instanceId.
|
|
7053
|
+
* Matching is based off of templateId reduces the number of steps that need to be checked/manipulated.
|
|
7054
|
+
*
|
|
7055
|
+
* @param formItems the FormItems to check against the steps
|
|
6565
7056
|
*/
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
this.uiService.toggleFormItems(this.selectedOption.enabledItems, this.selectedOption.disabledItems, false, this.item.instanceId);
|
|
7057
|
+
MtnaWfProgressiveFormComponent.prototype.checkAllStepsIds = function (formItems) {
|
|
7058
|
+
var _this = this;
|
|
7059
|
+
formItems.forEach(function (item) {
|
|
7060
|
+
var stepMatchedOnTemplateId = _this.stepArray$.value.find(function (s) { return s.instanceId === item.templateId; });
|
|
7061
|
+
if (stepMatchedOnTemplateId) {
|
|
7062
|
+
stepMatchedOnTemplateId.instanceId = item.instanceId;
|
|
7063
|
+
if (stepMatchedOnTemplateId.active) {
|
|
7064
|
+
_this.activeStepId$.next(item.instanceId);
|
|
7065
|
+
_this.cdr.markForCheck();
|
|
7066
|
+
}
|
|
6577
7067
|
}
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
7068
|
+
});
|
|
7069
|
+
};
|
|
7070
|
+
/**
|
|
7071
|
+
* Because the super class has no knowledge of the stepArray that have been generated for the form,
|
|
7072
|
+
* this function determines which steps need to be passed to the super class and the inherited _steps
|
|
7073
|
+
* property. The super class "should" obtain each step as it is passed in. This means that when the
|
|
7074
|
+
* call to either grab the form again or to get the next FormItem, should also continue to pass the
|
|
7075
|
+
* steps that have been generated.
|
|
7076
|
+
* @returns
|
|
7077
|
+
*/
|
|
7078
|
+
MtnaWfProgressiveFormComponent.prototype.determineStepsToPassToSuper = function (items) {
|
|
7079
|
+
var availableItemInstanceIds = [];
|
|
7080
|
+
items.forEach(function (item) {
|
|
7081
|
+
availableItemInstanceIds.push(item.instanceId);
|
|
7082
|
+
});
|
|
7083
|
+
var stepsToPass = [];
|
|
7084
|
+
this.stepArray$.value.forEach(function (step) {
|
|
7085
|
+
if (availableItemInstanceIds.includes(step.instanceId)) {
|
|
7086
|
+
stepsToPass.push(step);
|
|
7087
|
+
}
|
|
7088
|
+
});
|
|
7089
|
+
return stepsToPass;
|
|
7090
|
+
};
|
|
7091
|
+
/**
|
|
7092
|
+
* Sets the status of each step in the form based on the validity of the form control.
|
|
7093
|
+
* If the form control key is not found in the controls of the form, the status is set to 'PLACEHOLDER'.
|
|
7094
|
+
*/
|
|
7095
|
+
MtnaWfProgressiveFormComponent.prototype.setStepStatus = function () {
|
|
7096
|
+
var _this = this;
|
|
7097
|
+
var updatedSteps = [];
|
|
7098
|
+
this.stepArray$.value.forEach(function (step) {
|
|
7099
|
+
if (_this.ngForm) {
|
|
7100
|
+
var controlKeyExists = Object.keys(_this.ngForm.controls).includes(step.instanceId);
|
|
7101
|
+
if (controlKeyExists) {
|
|
7102
|
+
updatedSteps.push(Object.assign(Object.assign({}, step), { status: _this.ngForm.controls[step.instanceId].valid ? 'VALID' : 'INVALID' }));
|
|
7103
|
+
}
|
|
7104
|
+
else {
|
|
7105
|
+
updatedSteps.push(Object.assign(Object.assign({}, step), { status: 'PLACEHOLDER' }));
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
});
|
|
7109
|
+
this.stepArray$.next(updatedSteps);
|
|
7110
|
+
};
|
|
7111
|
+
/**
|
|
7112
|
+
* Emits the next or previous step templateId based on the direction provided.
|
|
7113
|
+
* @param stepDirection the direction of the step to emit
|
|
7114
|
+
*/
|
|
7115
|
+
MtnaWfProgressiveFormComponent.prototype.showDirectionalStep = function (stepDirection) {
|
|
7116
|
+
var _this = this;
|
|
7117
|
+
// const stepTemplateId = this.getDirectionalStepTemplateId(stepDirection);
|
|
7118
|
+
// if (stepTemplateId) {
|
|
7119
|
+
if (this.mtnaForm) {
|
|
7120
|
+
var formValue = this.ngFormService.getFormValue();
|
|
7121
|
+
var updatedForm = this.mtnaFormManager.insertNewValues(this.mtnaForm, formValue);
|
|
7122
|
+
if (stepDirection === 'next') {
|
|
7123
|
+
this.nextStepSelected.emit(updatedForm);
|
|
7124
|
+
this.scrollService.scrollTop();
|
|
7125
|
+
}
|
|
7126
|
+
else {
|
|
7127
|
+
var previousStepIndex = this.stepArray$.value.findIndex(function (step) { return step.instanceId === _this.activeStepId$.value; }) - 1;
|
|
7128
|
+
if (previousStepIndex >= 0) {
|
|
7129
|
+
var previousStep = this.stepArray$.value[previousStepIndex];
|
|
7130
|
+
if (previousStep) {
|
|
7131
|
+
this.previousStepSelected.emit(previousStep.instanceId);
|
|
7132
|
+
this.scrollService.scrollTop();
|
|
7133
|
+
}
|
|
7134
|
+
}
|
|
6581
7135
|
}
|
|
6582
|
-
// Set the selected option as the previous
|
|
6583
|
-
this.selectedOption = option;
|
|
6584
7136
|
}
|
|
6585
|
-
|
|
6586
|
-
|
|
7137
|
+
};
|
|
7138
|
+
/**
|
|
7139
|
+
* Shows the selected step as the active step in the form.
|
|
7140
|
+
* To be used on the mtna-wf-form-stepper components "selected" output.
|
|
7141
|
+
* @param step the step to show as the active step
|
|
7142
|
+
*/
|
|
7143
|
+
MtnaWfProgressiveFormComponent.prototype.showSelectedStep = function (step) {
|
|
7144
|
+
if (this.activeStepId$.value !== step.instanceId) {
|
|
7145
|
+
this.showSelectedStepId.emit(step.instanceId);
|
|
7146
|
+
this.activeStepId$.next(step.instanceId);
|
|
7147
|
+
this.scrollService.scrollTop();
|
|
6587
7148
|
}
|
|
6588
7149
|
};
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
}],
|
|
7150
|
+
MtnaWfProgressiveFormComponent.prototype._trackByStepInstanceId = function (index, formStep) {
|
|
7151
|
+
return formStep.instanceId;
|
|
7152
|
+
};
|
|
7153
|
+
return MtnaWfProgressiveFormComponent;
|
|
7154
|
+
}(MtnaWfBaseFormComponent));
|
|
7155
|
+
MtnaWfProgressiveFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormComponent, deps: [{ token: MtnaWfManagerService }, { token: MtnaWfNgFormService }, { token: MtnaWfUIService }, { token: i0__namespace.ChangeDetectorRef }, { token: i4__namespace.MtnaScrollService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7156
|
+
MtnaWfProgressiveFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfProgressiveFormComponent, selector: "mtna-wf-progressive-form", inputs: { loading: "loading" }, outputs: { status: "status", focusedSection: "focusedSection", mtnaFormChange: "mtnaFormChange", nextStepSelected: "nextStepSelected", previousStepSelected: "previousStepSelected", showSelectedStepId: "showSelectedStepId" }, usesInheritance: true, ngImport: i0__namespace, template: "<div fxLayout=\"row\" class=\"mtna-wf-progressive-form__container\">\n <mtna-wf-stepper\n *ngIf=\"stepArray$ | async as steps\"\n fxFlex=\"200px\"\n [steps]=\"steps\"\n (selected)=\"showSelectedStep($event)\"\n ></mtna-wf-stepper>\n <div fxFlex class=\"mtna-wf-progressive-form__form-container\">\n <form *ngIf=\"ngForm\" [formGroup]=\"ngForm\" [formDisabled]=\"readonly\">\n <ng-container *ngFor=\"let item of mtnaForm?.items\">\n <ng-container *ngIf=\"activeStepId$ | async as activeStepId\">\n <mtna-wf-item\n *ngIf=\"item.instanceId === activeStepId\"\n [item]=\"item\"\n [control]=\"ngForm.controls[item.instanceId]\"\n [readonly]=\"readonly\"\n [parentIds]=\"componentIds\"\n [step]=\"_steps?.[item.instanceId]\"\n (focusedSection)=\"focusedSection.emit($event)\"\n ></mtna-wf-item>\n </ng-container>\n </ng-container>\n </form>\n <div *ngIf=\"!loading\" class=\"mtna-wf-progressive-form__stepper-actions\" fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"26px\">\n <button *ngIf=\"showPreviousButton\" mat-stroked-button color=\"primary\" (click)=\"showDirectionalStep('previous')\" i18n>\n Previous Step\n </button>\n <ng-container *ngIf=\"!lastStepActive; else parentActions\">\n <button mat-raised-button color=\"primary\" (click)=\"showDirectionalStep('next')\" i18n>Next Step</button>\n </ng-container>\n </div>\n </div>\n</div>\n\n<ng-template #parentActions>\n <ng-content></ng-content>\n</ng-template>\n", styles: ["mtna-wf-progressive-form{display:flex;flex:1}mtna-wf-progressive-form .mtna-wf-progressive-form__container{width:100%}mtna-wf-progressive-form mtna-wf-progressive-form-section mtna-wf-step-card{margin:24px}mtna-wf-progressive-form .mtna-wf-progressive-form__stepper-actions{margin:0 24px 24px}mtna-wf-progressive-form .mtna-wf-progressive-form__stepper-actions .mtna-wf-progressive-form__next-button{margin-left:auto}\n"], components: [{ type: MtnaWfFormStepperComponent, selector: "mtna-wf-stepper", inputs: ["color", "incompleteIcon", "steps"], outputs: ["selected"] }, { type: MtnaWfFormDisablerComponent, selector: "[formDisabled]", inputs: ["formDisabled"] }, { type: MtnaWfFormItemComponent, selector: "mtna-wf-item", inputs: ["color", "control", "header", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], pipes: { "async": i3__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7157
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormComponent, decorators: [{
|
|
7158
|
+
type: i0.Component,
|
|
7159
|
+
args: [{
|
|
7160
|
+
selector: 'mtna-wf-progressive-form',
|
|
7161
|
+
templateUrl: './progressive-form.component.html',
|
|
7162
|
+
styleUrls: ['./progressive-form.component.scss'],
|
|
7163
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7164
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
7165
|
+
outputs: ['status', 'focusedSection', 'mtnaFormChange'],
|
|
7166
|
+
}]
|
|
7167
|
+
}], ctorParameters: function () { return [{ type: MtnaWfManagerService }, { type: MtnaWfNgFormService }, { type: MtnaWfUIService }, { type: i0__namespace.ChangeDetectorRef }, { type: i4__namespace.MtnaScrollService }]; }, propDecorators: { loading: [{
|
|
7168
|
+
type: i0.Input
|
|
7169
|
+
}], nextStepSelected: [{
|
|
7170
|
+
type: i0.Output
|
|
7171
|
+
}], previousStepSelected: [{
|
|
7172
|
+
type: i0.Output
|
|
7173
|
+
}], showSelectedStepId: [{
|
|
7174
|
+
type: i0.Output
|
|
7175
|
+
}] } });
|
|
6596
7176
|
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
* Used to retrieve the host container for a dynamically rendered component.
|
|
6600
|
-
*
|
|
6601
|
-
* @export
|
|
6602
|
-
*/
|
|
6603
|
-
var MtnaWfFormItemDirective = /** @class */ (function () {
|
|
6604
|
-
function MtnaWfFormItemDirective(viewContainerRef) {
|
|
6605
|
-
this.viewContainerRef = viewContainerRef;
|
|
7177
|
+
var MtnaWfProgressiveFormSectionModule = /** @class */ (function () {
|
|
7178
|
+
function MtnaWfProgressiveFormSectionModule() {
|
|
6606
7179
|
}
|
|
6607
|
-
return
|
|
7180
|
+
return MtnaWfProgressiveFormSectionModule;
|
|
6608
7181
|
}());
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
7182
|
+
MtnaWfProgressiveFormSectionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
7183
|
+
MtnaWfProgressiveFormSectionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionModule, declarations: [MtnaWfProgressiveFormSectionComponent], imports: [i3$1.CommonModule,
|
|
7184
|
+
flexLayout.FlexLayoutModule,
|
|
7185
|
+
MtnaWfStepCardModule,
|
|
7186
|
+
i4.MtnaHighlightModule,
|
|
7187
|
+
i2$2.MatDividerModule,
|
|
7188
|
+
MtnaWfGetObjectTypePipeModule,
|
|
7189
|
+
MtnaWfFormItemModule,
|
|
7190
|
+
i3$2.MatButtonModule,
|
|
7191
|
+
i5.MatIconModule], exports: [MtnaWfProgressiveFormSectionComponent] });
|
|
7192
|
+
MtnaWfProgressiveFormSectionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionModule, imports: [[
|
|
7193
|
+
i3$1.CommonModule,
|
|
7194
|
+
flexLayout.FlexLayoutModule,
|
|
7195
|
+
MtnaWfStepCardModule,
|
|
7196
|
+
i4.MtnaHighlightModule,
|
|
7197
|
+
i2$2.MatDividerModule,
|
|
7198
|
+
MtnaWfGetObjectTypePipeModule,
|
|
7199
|
+
MtnaWfFormItemModule,
|
|
7200
|
+
i3$2.MatButtonModule,
|
|
7201
|
+
i5.MatIconModule,
|
|
7202
|
+
]] });
|
|
7203
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormSectionModule, decorators: [{
|
|
7204
|
+
type: i0.NgModule,
|
|
7205
|
+
args: [{
|
|
7206
|
+
imports: [
|
|
7207
|
+
i3$1.CommonModule,
|
|
7208
|
+
flexLayout.FlexLayoutModule,
|
|
7209
|
+
MtnaWfStepCardModule,
|
|
7210
|
+
i4.MtnaHighlightModule,
|
|
7211
|
+
i2$2.MatDividerModule,
|
|
7212
|
+
MtnaWfGetObjectTypePipeModule,
|
|
7213
|
+
MtnaWfFormItemModule,
|
|
7214
|
+
i3$2.MatButtonModule,
|
|
7215
|
+
i5.MatIconModule,
|
|
7216
|
+
],
|
|
7217
|
+
declarations: [MtnaWfProgressiveFormSectionComponent],
|
|
7218
|
+
exports: [MtnaWfProgressiveFormSectionComponent],
|
|
7219
|
+
}]
|
|
7220
|
+
}] });
|
|
7221
|
+
|
|
7222
|
+
var MtnaWfProgressiveFormModule = /** @class */ (function () {
|
|
7223
|
+
function MtnaWfProgressiveFormModule() {
|
|
7224
|
+
}
|
|
7225
|
+
return MtnaWfProgressiveFormModule;
|
|
7226
|
+
}());
|
|
7227
|
+
MtnaWfProgressiveFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
7228
|
+
MtnaWfProgressiveFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormModule, declarations: [MtnaWfProgressiveFormComponent], imports: [i4$1.A11yModule,
|
|
7229
|
+
i3$1.CommonModule,
|
|
7230
|
+
flexLayout.FlexLayoutModule,
|
|
7231
|
+
i6.FormsModule,
|
|
7232
|
+
i3$2.MatButtonModule,
|
|
7233
|
+
i5.MatIconModule,
|
|
7234
|
+
MtnaWfFormDisablerModule,
|
|
7235
|
+
MtnaWfFormItemModule,
|
|
7236
|
+
MtnaWfProgressiveFormSectionModule,
|
|
7237
|
+
i6.ReactiveFormsModule,
|
|
7238
|
+
MtnaWfFormStepperModule,
|
|
7239
|
+
GetProgressiveFormItemPipeModule,
|
|
7240
|
+
GetActiveFormStepItemPipeModule], exports: [MtnaWfProgressiveFormComponent] });
|
|
7241
|
+
MtnaWfProgressiveFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormModule, imports: [[
|
|
7242
|
+
i4$1.A11yModule,
|
|
7243
|
+
i3$1.CommonModule,
|
|
7244
|
+
flexLayout.FlexLayoutModule,
|
|
7245
|
+
i6.FormsModule,
|
|
7246
|
+
i3$2.MatButtonModule,
|
|
7247
|
+
i5.MatIconModule,
|
|
7248
|
+
MtnaWfFormDisablerModule,
|
|
7249
|
+
MtnaWfFormItemModule,
|
|
7250
|
+
MtnaWfProgressiveFormSectionModule,
|
|
7251
|
+
i6.ReactiveFormsModule,
|
|
7252
|
+
MtnaWfFormStepperModule,
|
|
7253
|
+
GetProgressiveFormItemPipeModule,
|
|
7254
|
+
GetActiveFormStepItemPipeModule,
|
|
7255
|
+
]] });
|
|
7256
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfProgressiveFormModule, decorators: [{
|
|
7257
|
+
type: i0.NgModule,
|
|
6613
7258
|
args: [{
|
|
6614
|
-
|
|
7259
|
+
imports: [
|
|
7260
|
+
i4$1.A11yModule,
|
|
7261
|
+
i3$1.CommonModule,
|
|
7262
|
+
flexLayout.FlexLayoutModule,
|
|
7263
|
+
i6.FormsModule,
|
|
7264
|
+
i3$2.MatButtonModule,
|
|
7265
|
+
i5.MatIconModule,
|
|
7266
|
+
MtnaWfFormDisablerModule,
|
|
7267
|
+
MtnaWfFormItemModule,
|
|
7268
|
+
MtnaWfProgressiveFormSectionModule,
|
|
7269
|
+
i6.ReactiveFormsModule,
|
|
7270
|
+
MtnaWfFormStepperModule,
|
|
7271
|
+
GetProgressiveFormItemPipeModule,
|
|
7272
|
+
GetActiveFormStepItemPipeModule,
|
|
7273
|
+
],
|
|
7274
|
+
declarations: [MtnaWfProgressiveFormComponent],
|
|
7275
|
+
exports: [MtnaWfProgressiveFormComponent],
|
|
6615
7276
|
}]
|
|
6616
|
-
}]
|
|
7277
|
+
}] });
|
|
6617
7278
|
|
|
6618
7279
|
/**
|
|
6619
7280
|
* Generated bundle index. Do not edit.
|
|
6620
7281
|
*/
|
|
6621
7282
|
|
|
6622
|
-
exports.BaseFormItemControl = BaseFormItemControl;
|
|
6623
7283
|
exports.BaseFormStep = BaseFormStep;
|
|
6624
|
-
exports.BaseParentItemControl = BaseParentItemControl;
|
|
6625
|
-
exports.BaseSingleSelectionParent = BaseSingleSelectionParent;
|
|
6626
7284
|
exports.COMPLEX_STANDARD = COMPLEX_STANDARD;
|
|
7285
|
+
exports.ChildStepActivePipe = ChildStepActivePipe;
|
|
7286
|
+
exports.ChildStepActivePipeModule = ChildStepActivePipeModule;
|
|
7287
|
+
exports.CoerceFormStepGroupPipe = CoerceFormStepGroupPipe;
|
|
7288
|
+
exports.CoerceFormStepGroupPipeModule = CoerceFormStepGroupPipeModule;
|
|
7289
|
+
exports.CoerceFormStepPipe = CoerceFormStepPipe;
|
|
7290
|
+
exports.CoerceFormStepPipeModule = CoerceFormStepPipeModule;
|
|
6627
7291
|
exports.DEFAULT_ERROR_MESSAGES = DEFAULT_ERROR_MESSAGES;
|
|
6628
7292
|
exports.FormStep = FormStep;
|
|
6629
7293
|
exports.FormStepGroup = FormStepGroup;
|
|
7294
|
+
exports.GetActiveFormStepItemPipe = GetActiveFormStepItemPipe;
|
|
7295
|
+
exports.GetActiveFormStepItemPipeModule = GetActiveFormStepItemPipeModule;
|
|
7296
|
+
exports.GetProgressiveFormItemPipe = GetProgressiveFormItemPipe;
|
|
7297
|
+
exports.GetProgressiveFormItemPipeModule = GetProgressiveFormItemPipeModule;
|
|
7298
|
+
exports.GetStepAriaLabel = GetStepAriaLabel;
|
|
7299
|
+
exports.GetStepAriaLabelModule = GetStepAriaLabelModule;
|
|
6630
7300
|
exports.MTNA_WF_API_TOKEN = MTNA_WF_API_TOKEN;
|
|
6631
7301
|
exports.MTNA_WF_DEFAULT_YEAR_RANGE = MTNA_WF_DEFAULT_YEAR_RANGE;
|
|
6632
7302
|
exports.MTNA_WF_EXPAND_COLLAPSE = MTNA_WF_EXPAND_COLLAPSE;
|
|
@@ -6676,7 +7346,6 @@
|
|
|
6676
7346
|
exports.MtnaWfFormItemDialogComponent = MtnaWfFormItemDialogComponent;
|
|
6677
7347
|
exports.MtnaWfFormItemDialogData = MtnaWfFormItemDialogData;
|
|
6678
7348
|
exports.MtnaWfFormItemDialogModule = MtnaWfFormItemDialogModule;
|
|
6679
|
-
exports.MtnaWfFormItemDirective = MtnaWfFormItemDirective;
|
|
6680
7349
|
exports.MtnaWfFormItemModule = MtnaWfFormItemModule;
|
|
6681
7350
|
exports.MtnaWfFormSectionComponent = MtnaWfFormSectionComponent;
|
|
6682
7351
|
exports.MtnaWfFormSectionModule = MtnaWfFormSectionModule;
|
|
@@ -6716,6 +7385,10 @@
|
|
|
6716
7385
|
exports.MtnaWfNgFormService = MtnaWfNgFormService;
|
|
6717
7386
|
exports.MtnaWfOrderedListItemComponent = MtnaWfOrderedListItemComponent;
|
|
6718
7387
|
exports.MtnaWfOrderedListItemModule = MtnaWfOrderedListItemModule;
|
|
7388
|
+
exports.MtnaWfProgressiveFormComponent = MtnaWfProgressiveFormComponent;
|
|
7389
|
+
exports.MtnaWfProgressiveFormModule = MtnaWfProgressiveFormModule;
|
|
7390
|
+
exports.MtnaWfProgressiveFormSectionComponent = MtnaWfProgressiveFormSectionComponent;
|
|
7391
|
+
exports.MtnaWfProgressiveFormSectionModule = MtnaWfProgressiveFormSectionModule;
|
|
6719
7392
|
exports.MtnaWfRepeatableItemComponent = MtnaWfRepeatableItemComponent;
|
|
6720
7393
|
exports.MtnaWfRepeatableItemContainerComponent = MtnaWfRepeatableItemContainerComponent;
|
|
6721
7394
|
exports.MtnaWfRepeatableItemContainerModule = MtnaWfRepeatableItemContainerModule;
|
|
@@ -6741,16 +7414,23 @@
|
|
|
6741
7414
|
exports.MtnaWfYearQuarterModule = MtnaWfYearQuarterModule;
|
|
6742
7415
|
exports.MtnaWfYearQuarterRangeComponent = MtnaWfYearQuarterRangeComponent;
|
|
6743
7416
|
exports.MtnaWfYearQuarterRangeModule = MtnaWfYearQuarterRangeModule;
|
|
7417
|
+
exports.PROGRESSIVE_FORM_ID = PROGRESSIVE_FORM_ID;
|
|
7418
|
+
exports.PROGRESSIVE_FORM_SECTION_ID = PROGRESSIVE_FORM_SECTION_ID;
|
|
6744
7419
|
exports.WEB_FORM_CUSTOM_ERRORS = WEB_FORM_CUSTOM_ERRORS;
|
|
6745
7420
|
exports.everyStepStatus = everyStepStatus;
|
|
6746
7421
|
exports.findFormControl = findFormControl;
|
|
6747
7422
|
exports.findFormItem = findFormItem;
|
|
6748
7423
|
exports.flattenSteps = flattenSteps;
|
|
6749
7424
|
exports.generateFormSteps = generateFormSteps;
|
|
7425
|
+
exports.generateFormStepsFromOutline = generateFormStepsFromOutline;
|
|
6750
7426
|
exports.getItemClassSuffix = getItemClassSuffix;
|
|
7427
|
+
exports.instanceOfFormStep = instanceOfFormStep;
|
|
7428
|
+
exports.instanceOfFormStepGroup = instanceOfFormStepGroup;
|
|
6751
7429
|
exports.isFormControl = isFormControl;
|
|
6752
7430
|
exports.isFormGroup = isFormGroup;
|
|
6753
7431
|
exports.isFormStepGroup = isFormStepGroup;
|
|
7432
|
+
exports.isProgressiveForm = isProgressiveForm;
|
|
7433
|
+
exports.isProgressiveFormSection = isProgressiveFormSection;
|
|
6754
7434
|
exports.updateStepStatus = updateStepStatus;
|
|
6755
7435
|
exports.validationResultValidator = validationResultValidator;
|
|
6756
7436
|
|