@mtna/web-form-angular 1.0.6-SNAPSHOT.4 → 1.0.6-SNAPSHOT.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/mtna-web-form-angular.umd.js +34 -32
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/form-item-impl/form-group/form-group.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/form-section/form-section.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.js +3 -3
- package/esm2015/lib/services/api.service.js +3 -3
- package/esm2015/lib/services/form-manager.service.js +5 -3
- package/fesm2015/mtna-web-form-angular.js +10 -8
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/services/api.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6050,8 +6050,8 @@
|
|
|
6050
6050
|
* @param formInstanceId template ID of the mtna form
|
|
6051
6051
|
* @param itemId repeatableTemplateId of the requesting RepeatableItem
|
|
6052
6052
|
*/
|
|
6053
|
-
MtnaWfApiService.prototype.getRepeatableItem = function (
|
|
6054
|
-
return this.http.get(this.FORM_URL + "/" +
|
|
6053
|
+
MtnaWfApiService.prototype.getRepeatableItem = function (templateId, itemTemplateId) {
|
|
6054
|
+
return this.http.get(this.FORM_URL + "/" + templateId + "/item/" + itemTemplateId);
|
|
6055
6055
|
};
|
|
6056
6056
|
MtnaWfApiService.prototype.getNewTemplate = function () {
|
|
6057
6057
|
return this.http.get(this.NEW_TEMPLATE_URL);
|
|
@@ -6378,7 +6378,7 @@
|
|
|
6378
6378
|
}
|
|
6379
6379
|
else {
|
|
6380
6380
|
this.apiService
|
|
6381
|
-
.getRepeatableItem(this._mtnaForm.
|
|
6381
|
+
.getRepeatableItem(this._mtnaForm.templateId, change.templateId)
|
|
6382
6382
|
.pipe(operators.take(1))
|
|
6383
6383
|
.subscribe(function (newItem) {
|
|
6384
6384
|
var newFormControl = _this.serializeMtnaFormItem(newItem);
|
|
@@ -6466,18 +6466,18 @@
|
|
|
6466
6466
|
if (!!this.itemToggleQue && !!this.itemToggleQue.length) {
|
|
6467
6467
|
// The form needs time to rerender, so we push this loop to the end of the stack
|
|
6468
6468
|
setTimeout(function () {
|
|
6469
|
-
var e_1,
|
|
6469
|
+
var e_1, _c;
|
|
6470
6470
|
if (_this.itemToggleQue) {
|
|
6471
6471
|
try {
|
|
6472
|
-
for (var
|
|
6473
|
-
var change =
|
|
6472
|
+
for (var _d = __values(_this.itemToggleQue), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
6473
|
+
var change = _e.value;
|
|
6474
6474
|
_this.uiService.toggleFormItems(change.enabledItems, change.disabledItems, !!change.enable, change.enablerId, true);
|
|
6475
6475
|
}
|
|
6476
6476
|
}
|
|
6477
6477
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6478
6478
|
finally {
|
|
6479
6479
|
try {
|
|
6480
|
-
if (
|
|
6480
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
6481
6481
|
}
|
|
6482
6482
|
finally { if (e_1) throw e_1.error; }
|
|
6483
6483
|
}
|
|
@@ -6635,15 +6635,16 @@
|
|
|
6635
6635
|
* @param change The change that recently occurred in the mtnaForm
|
|
6636
6636
|
*/
|
|
6637
6637
|
MtnaWfManagerService.prototype._modifyFormItemConditions = function (form, change) {
|
|
6638
|
-
var e_2,
|
|
6638
|
+
var e_2, _c;
|
|
6639
|
+
var _a, _b;
|
|
6639
6640
|
var newForm = form;
|
|
6640
6641
|
if (change.conditionChanges) {
|
|
6641
6642
|
var formItems = {};
|
|
6642
6643
|
var _loop_1 = function (cc) {
|
|
6643
|
-
var e_3,
|
|
6644
|
+
var e_3, _f;
|
|
6644
6645
|
try {
|
|
6645
|
-
for (var
|
|
6646
|
-
var toggledId =
|
|
6646
|
+
for (var _g = (e_3 = void 0, __values(__spreadArray(__spreadArray([], __read(cc.enabledItems)), __read(cc.disabledItems)))), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
6647
|
+
var toggledId = _h.value;
|
|
6647
6648
|
var formItem = formItems[toggledId];
|
|
6648
6649
|
var formItemComponent = this_1.uiService.getItem(toggledId);
|
|
6649
6650
|
if (!formItem && (formItemComponent === null || formItemComponent === void 0 ? void 0 : formItemComponent.item)) {
|
|
@@ -6654,7 +6655,8 @@
|
|
|
6654
6655
|
var itemIds = change.actionType === 'ADD'
|
|
6655
6656
|
? __spreadArray(__spreadArray([], __read(itemConditionItemIds)), [cc.enablerId]) : itemConditionItemIds.filter(function (i) { return i !== cc.enablerId; });
|
|
6656
6657
|
var newItem = Object.assign(Object.assign({}, formItem), { condition: Object.assign(Object.assign({}, formItem.condition), { itemIds: itemIds }) });
|
|
6657
|
-
var
|
|
6658
|
+
var templateId = (_b = (_a = formItem) === null || _a === void 0 ? void 0 : _a.templateId) !== null && _b !== void 0 ? _b : newItem.instanceId;
|
|
6659
|
+
var newChange = new webFormTs.MtnaWfFormItemChange(newItem.instanceId, templateId, (formItemComponent === null || formItemComponent === void 0 ? void 0 : formItemComponent.parentIds) || [], 'REPLACE');
|
|
6658
6660
|
newForm = this_1._modifyFormItem(newForm, newChange, newItem);
|
|
6659
6661
|
formItems[toggledId] = newItem;
|
|
6660
6662
|
}
|
|
@@ -6663,7 +6665,7 @@
|
|
|
6663
6665
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
6664
6666
|
finally {
|
|
6665
6667
|
try {
|
|
6666
|
-
if (
|
|
6668
|
+
if (_h && !_h.done && (_f = _g.return)) _f.call(_g);
|
|
6667
6669
|
}
|
|
6668
6670
|
finally { if (e_3) throw e_3.error; }
|
|
6669
6671
|
}
|
|
@@ -6673,15 +6675,15 @@
|
|
|
6673
6675
|
};
|
|
6674
6676
|
var this_1 = this;
|
|
6675
6677
|
try {
|
|
6676
|
-
for (var
|
|
6677
|
-
var cc =
|
|
6678
|
+
for (var _d = __values(change.conditionChanges), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
6679
|
+
var cc = _e.value;
|
|
6678
6680
|
_loop_1(cc);
|
|
6679
6681
|
}
|
|
6680
6682
|
}
|
|
6681
6683
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
6682
6684
|
finally {
|
|
6683
6685
|
try {
|
|
6684
|
-
if (
|
|
6686
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
6685
6687
|
}
|
|
6686
6688
|
finally { if (e_2) throw e_2.error; }
|
|
6687
6689
|
}
|
|
@@ -6694,7 +6696,7 @@
|
|
|
6694
6696
|
* @param idMap map of the item's internal instanceIds
|
|
6695
6697
|
*/
|
|
6696
6698
|
MtnaWfManagerService.prototype._buildInternalIdsMap = function (item, idMap) {
|
|
6697
|
-
var e_4,
|
|
6699
|
+
var e_4, _c;
|
|
6698
6700
|
idMap[item.instanceId] = true;
|
|
6699
6701
|
if (coreTs.isType(item, 'items')) {
|
|
6700
6702
|
var items = item.items;
|
|
@@ -6707,7 +6709,7 @@
|
|
|
6707
6709
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
6708
6710
|
finally {
|
|
6709
6711
|
try {
|
|
6710
|
-
if (items_1_1 && !items_1_1.done && (
|
|
6712
|
+
if (items_1_1 && !items_1_1.done && (_c = items_1.return)) _c.call(items_1);
|
|
6711
6713
|
}
|
|
6712
6714
|
finally { if (e_4) throw e_4.error; }
|
|
6713
6715
|
}
|
|
@@ -6729,7 +6731,7 @@
|
|
|
6729
6731
|
* @param action Whether the item was added or removed
|
|
6730
6732
|
*/
|
|
6731
6733
|
MtnaWfManagerService.prototype._buildConditionChangeArray = function (item, changes, internalIdMap, action) {
|
|
6732
|
-
var e_5,
|
|
6734
|
+
var e_5, _c, e_6, _d;
|
|
6733
6735
|
if (webFormTs.isOptionItemImpl(item)) {
|
|
6734
6736
|
var enable = !!action && action === 'ADD' ? item.option.selected || item.value === item.option.option.id : false;
|
|
6735
6737
|
this._pushConditionToArray(item.instanceId, item.option.enabledItems, item.option.disabledItems, changes, internalIdMap, enable);
|
|
@@ -6742,15 +6744,15 @@
|
|
|
6742
6744
|
};
|
|
6743
6745
|
var this_2 = this;
|
|
6744
6746
|
try {
|
|
6745
|
-
for (var
|
|
6746
|
-
var option =
|
|
6747
|
+
for (var _e = __values(item.options), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
6748
|
+
var option = _f.value;
|
|
6747
6749
|
_loop_2(option);
|
|
6748
6750
|
}
|
|
6749
6751
|
}
|
|
6750
6752
|
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
6751
6753
|
finally {
|
|
6752
6754
|
try {
|
|
6753
|
-
if (
|
|
6755
|
+
if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
|
|
6754
6756
|
}
|
|
6755
6757
|
finally { if (e_5) throw e_5.error; }
|
|
6756
6758
|
}
|
|
@@ -6767,7 +6769,7 @@
|
|
|
6767
6769
|
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
6768
6770
|
finally {
|
|
6769
6771
|
try {
|
|
6770
|
-
if (items_2_1 && !items_2_1.done && (
|
|
6772
|
+
if (items_2_1 && !items_2_1.done && (_d = items_2.return)) _d.call(items_2);
|
|
6771
6773
|
}
|
|
6772
6774
|
finally { if (e_6) throw e_6.error; }
|
|
6773
6775
|
}
|
|
@@ -6825,7 +6827,7 @@
|
|
|
6825
6827
|
* Revalidate form controls that previously had errors or have new errors now.
|
|
6826
6828
|
*/
|
|
6827
6829
|
MtnaWfManagerService.prototype._updateServerSideErrors = function () {
|
|
6828
|
-
var e_7,
|
|
6830
|
+
var e_7, _c, e_8, _d;
|
|
6829
6831
|
var _a;
|
|
6830
6832
|
// Keep track of IDs for each control that needs to be revalidated
|
|
6831
6833
|
var controlIdsToRevalidate = new Set();
|
|
@@ -6841,8 +6843,8 @@
|
|
|
6841
6843
|
this._formItemValidationResults = {};
|
|
6842
6844
|
if ((_a = this._mtnaForm) === null || _a === void 0 ? void 0 : _a.validationResult) {
|
|
6843
6845
|
try {
|
|
6844
|
-
for (var
|
|
6845
|
-
var result =
|
|
6846
|
+
for (var _e = __values(this._mtnaForm.validationResult.formItemValidationResults), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
6847
|
+
var result = _f.value;
|
|
6846
6848
|
if (result.validationStatus === 'ERRORS') {
|
|
6847
6849
|
// Store errors so that the validationResultValidator can validate each control
|
|
6848
6850
|
this._formItemValidationResults[result.id] = result;
|
|
@@ -6854,7 +6856,7 @@
|
|
|
6854
6856
|
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
6855
6857
|
finally {
|
|
6856
6858
|
try {
|
|
6857
|
-
if (
|
|
6859
|
+
if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
|
|
6858
6860
|
}
|
|
6859
6861
|
finally { if (e_7) throw e_7.error; }
|
|
6860
6862
|
}
|
|
@@ -6874,7 +6876,7 @@
|
|
|
6874
6876
|
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
6875
6877
|
finally {
|
|
6876
6878
|
try {
|
|
6877
|
-
if (controlIdsToRevalidate_1_1 && !controlIdsToRevalidate_1_1.done && (
|
|
6879
|
+
if (controlIdsToRevalidate_1_1 && !controlIdsToRevalidate_1_1.done && (_d = controlIdsToRevalidate_1.return)) _d.call(controlIdsToRevalidate_1);
|
|
6878
6880
|
}
|
|
6879
6881
|
finally { if (e_8) throw e_8.error; }
|
|
6880
6882
|
}
|
|
@@ -8377,7 +8379,7 @@
|
|
|
8377
8379
|
return MtnaWfFormGroupComponent;
|
|
8378
8380
|
}(MtnaWfBaseGroupItem));
|
|
8379
8381
|
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 });
|
|
8380
|
-
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 [isCompact]=\"isCompact\"\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", "isCompact", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.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: i6__namespace$1.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 });
|
|
8382
|
+
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 [isCompact]=\"isCompact\"\n [item]=\"subItem\"\n [control]=\"control.controls[subItem.instanceId]\"\n [parentIds]=\"parentIds.concat(item.instanceId)\"\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.concat(item.instanceId)\"\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", "isCompact", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.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: i6__namespace$1.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 });
|
|
8381
8383
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormGroupComponent, decorators: [{
|
|
8382
8384
|
type: i0.Component,
|
|
8383
8385
|
args: [{
|
|
@@ -8439,7 +8441,7 @@
|
|
|
8439
8441
|
return MtnaWfFormSectionComponent;
|
|
8440
8442
|
}(MtnaWfBaseSectionItem));
|
|
8441
8443
|
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 });
|
|
8442
|
-
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 [isCompact]=\"isCompact\"\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-section{display:block}mtna-wf-section mat-divider.mat-divider-horizontal.mat-divider-inset.section-item-divider{margin-top:8px;margin-bottom:8px}\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", "isCompact", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i1__namespace$1.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 });
|
|
8444
|
+
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 [isCompact]=\"isCompact\"\n [item]=\"subItem\"\n [readonly]=\"readonly\"\n [parentIds]=\"parentIds.concat(item.instanceId)\"\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-section{display:block}mtna-wf-section mat-divider.mat-divider-horizontal.mat-divider-inset.section-item-divider{margin-top:8px;margin-bottom:8px}\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", "isCompact", "inList", "item", "parentIds", "readonly", "step"], outputs: ["focusedSection"] }], directives: [{ type: i1__namespace$1.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 });
|
|
8443
8445
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfFormSectionComponent, decorators: [{
|
|
8444
8446
|
type: i0.Component,
|
|
8445
8447
|
args: [{
|
|
@@ -8797,11 +8799,11 @@
|
|
|
8797
8799
|
return _this;
|
|
8798
8800
|
}
|
|
8799
8801
|
MtnaWfRepeatableItemContainerComponent.prototype.addItem = function () {
|
|
8800
|
-
this.manager.changeMtnaFormItem(new webFormTs.MtnaWfFormItemChange(this.item.repeatableTemplateId, this.parentIds, 'ADD'));
|
|
8802
|
+
this.manager.changeMtnaFormItem(new webFormTs.MtnaWfFormItemChange(this.item.repeatableTemplateId, this.item.repeatableTemplateId, this.parentIds, 'ADD'));
|
|
8801
8803
|
};
|
|
8802
8804
|
MtnaWfRepeatableItemContainerComponent.prototype.removeItem = function (item) {
|
|
8803
8805
|
var conditionChanges = this.manager.generateConditionChangeArray(item, 'REMOVE');
|
|
8804
|
-
this.manager.changeMtnaFormItem(new webFormTs.MtnaWfFormItemChange(item.instanceId, this.parentIds, 'REMOVE', conditionChanges));
|
|
8806
|
+
this.manager.changeMtnaFormItem(new webFormTs.MtnaWfFormItemChange(item.instanceId, item.templateId, this.parentIds, 'REMOVE', conditionChanges));
|
|
8805
8807
|
};
|
|
8806
8808
|
return MtnaWfRepeatableItemContainerComponent;
|
|
8807
8809
|
}(MtnaWfBaseParentValueItem));
|