@hmcts/ccd-case-ui-toolkit 5.0.44-angular11-welsh-release-part1-3 → 5.0.44-angular11-welsh-release-part1-5
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/hmcts-ccd-case-ui-toolkit.umd.js +116 -53
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/case-create/case-create.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +3 -2
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +2 -2
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +2 -2
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +12 -4
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +5 -1
- package/esm2015/lib/shared/components/palette/label/label-field.component.js +24 -5
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +39 -33
- package/esm2015/lib/shared/domain/alert/alert-status-params.model.js +2 -0
- package/esm2015/lib/shared/services/alert/alert.service.js +28 -8
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +108 -52
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +2 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/domain/alert/alert-status-params.model.d.ts +6 -0
- package/lib/shared/domain/alert/alert-status-params.model.d.ts.map +1 -0
- package/lib/shared/services/alert/alert.service.d.ts +8 -4
- package/lib/shared/services/alert/alert.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6795,9 +6795,10 @@
|
|
|
6795
6795
|
})();
|
|
6796
6796
|
|
|
6797
6797
|
var AlertService = /** @class */ (function () {
|
|
6798
|
-
function AlertService(router) {
|
|
6798
|
+
function AlertService(router, rpxTranslationService) {
|
|
6799
6799
|
var _this = this;
|
|
6800
6800
|
this.router = router;
|
|
6801
|
+
this.rpxTranslationService = rpxTranslationService;
|
|
6801
6802
|
// the preserved messages
|
|
6802
6803
|
this.preservedError = '';
|
|
6803
6804
|
this.preservedWarning = '';
|
|
@@ -6840,29 +6841,48 @@
|
|
|
6840
6841
|
this.alertObserver.next(null);
|
|
6841
6842
|
this.message = '';
|
|
6842
6843
|
};
|
|
6843
|
-
AlertService.prototype.error = function (
|
|
6844
|
+
AlertService.prototype.error = function (_a) {
|
|
6845
|
+
var phrase = _a.phrase, replacements = _a.replacements;
|
|
6846
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
6844
6847
|
this.preservedError = this.preserveMessages(message);
|
|
6845
6848
|
var alert = { level: 'error', message: message };
|
|
6846
6849
|
this.errorObserver.next(alert);
|
|
6847
6850
|
// EUI-3381.
|
|
6848
6851
|
this.push(alert);
|
|
6849
6852
|
};
|
|
6850
|
-
AlertService.prototype.warning = function (
|
|
6853
|
+
AlertService.prototype.warning = function (_a) {
|
|
6854
|
+
var phrase = _a.phrase, replacements = _a.replacements;
|
|
6855
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
6851
6856
|
this.preservedWarning = this.preserveMessages(message);
|
|
6852
6857
|
var alert = { level: 'warning', message: message };
|
|
6853
6858
|
this.warningObserver.next(alert);
|
|
6854
6859
|
// EUI-3381.
|
|
6855
6860
|
this.push(alert);
|
|
6856
6861
|
};
|
|
6857
|
-
AlertService.prototype.success = function (
|
|
6858
|
-
|
|
6859
|
-
|
|
6862
|
+
AlertService.prototype.success = function (_a) {
|
|
6863
|
+
var preserve = _a.preserve, phrase = _a.phrase, replacements = _a.replacements;
|
|
6864
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
6860
6865
|
this.preserveAlerts = preserve || this.preserveAlerts;
|
|
6861
6866
|
var alert = { level: 'success', message: message };
|
|
6867
|
+
this.preservedSuccess = this.preserveMessages(message);
|
|
6862
6868
|
this.successObserver.next(alert);
|
|
6863
6869
|
// EUI-3381.
|
|
6864
6870
|
this.push(alert);
|
|
6865
6871
|
};
|
|
6872
|
+
AlertService.prototype.getTranslationWithReplacements = function (phrase, replacements) {
|
|
6873
|
+
var message;
|
|
6874
|
+
if (replacements) {
|
|
6875
|
+
this.rpxTranslationService.getTranslationWithReplacements(phrase, replacements).subscribe(function (translation) {
|
|
6876
|
+
message = translation;
|
|
6877
|
+
});
|
|
6878
|
+
}
|
|
6879
|
+
else {
|
|
6880
|
+
this.rpxTranslationService.getTranslation(phrase).subscribe(function (translation) {
|
|
6881
|
+
message = translation;
|
|
6882
|
+
});
|
|
6883
|
+
}
|
|
6884
|
+
return message;
|
|
6885
|
+
};
|
|
6866
6886
|
AlertService.prototype.setPreserveAlerts = function (preserve, urlInfo) {
|
|
6867
6887
|
// if there is no url setting then just preserve the messages
|
|
6868
6888
|
if (!urlInfo) {
|
|
@@ -6918,12 +6938,12 @@
|
|
|
6918
6938
|
};
|
|
6919
6939
|
return AlertService;
|
|
6920
6940
|
}());
|
|
6921
|
-
AlertService.ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
|
|
6941
|
+
AlertService.ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(i0__namespace.ɵɵinject(i1__namespace$1.Router), i0__namespace.ɵɵinject(i1__namespace.RpxTranslationService)); };
|
|
6922
6942
|
AlertService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: AlertService, factory: AlertService.ɵfac });
|
|
6923
6943
|
(function () {
|
|
6924
6944
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AlertService, [{
|
|
6925
6945
|
type: i0.Injectable
|
|
6926
|
-
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
6946
|
+
}], function () { return [{ type: i1__namespace$1.Router }, { type: i1__namespace.RpxTranslationService }]; }, null);
|
|
6927
6947
|
})();
|
|
6928
6948
|
|
|
6929
6949
|
var CaseFileViewService = /** @class */ (function () {
|
|
@@ -8404,7 +8424,7 @@
|
|
|
8404
8424
|
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
8405
8425
|
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
8406
8426
|
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
8407
|
-
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
8427
|
+
this.alertService.warning({ phrase: 'A task could not be completed successfully. Please complete the task associated with the case manually.' });
|
|
8408
8428
|
}
|
|
8409
8429
|
};
|
|
8410
8430
|
/**
|
|
@@ -8834,7 +8854,7 @@
|
|
|
8834
8854
|
_this.eventTriggerService.announceEventTrigger(eventTrigger);
|
|
8835
8855
|
})
|
|
8836
8856
|
.catch(function (error) {
|
|
8837
|
-
_this.alertService.error(error.message);
|
|
8857
|
+
_this.alertService.error({ phrase: error.message });
|
|
8838
8858
|
return rxjs.throwError(error);
|
|
8839
8859
|
});
|
|
8840
8860
|
};
|
|
@@ -9039,7 +9059,8 @@
|
|
|
9039
9059
|
if (!wizard.hasPage(pageId)) {
|
|
9040
9060
|
this.goToFirst(wizard, canShowPredicate, route)
|
|
9041
9061
|
.then(function () {
|
|
9042
|
-
|
|
9062
|
+
var replacements = { PAGEID: pageId };
|
|
9063
|
+
_this.alertService.error({ phrase: 'No page could be found for %PAGEID%', replacements: replacements });
|
|
9043
9064
|
});
|
|
9044
9065
|
return Promise.resolve(false);
|
|
9045
9066
|
}
|
|
@@ -16123,26 +16144,49 @@
|
|
|
16123
16144
|
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService }]; }, null);
|
|
16124
16145
|
})();
|
|
16125
16146
|
|
|
16147
|
+
function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) {
|
|
16148
|
+
if (rf & 1) {
|
|
16149
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 2);
|
|
16150
|
+
i0__namespace.ɵɵpipe(1, "rpxTranslate");
|
|
16151
|
+
}
|
|
16152
|
+
if (rf & 2) {
|
|
16153
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
16154
|
+
i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r0.caseField.label))("markdownUseHrefAsRouterLink", ctx_r0.markdownUseHrefAsRouterLink);
|
|
16155
|
+
}
|
|
16156
|
+
}
|
|
16157
|
+
function LabelFieldComponent_ccd_markdown_3_Template(rf, ctx) {
|
|
16158
|
+
if (rf & 1) {
|
|
16159
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 2);
|
|
16160
|
+
}
|
|
16161
|
+
if (rf & 2) {
|
|
16162
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
16163
|
+
i0__namespace.ɵɵproperty("content", ctx_r1.caseField.value || ctx_r1.caseField.label)("markdownUseHrefAsRouterLink", ctx_r1.markdownUseHrefAsRouterLink);
|
|
16164
|
+
}
|
|
16165
|
+
}
|
|
16126
16166
|
var LabelFieldComponent = /** @class */ (function () {
|
|
16127
16167
|
function LabelFieldComponent() {
|
|
16128
16168
|
this.caseFields = [];
|
|
16169
|
+
this.labelCanBeTranslated = false;
|
|
16129
16170
|
}
|
|
16130
16171
|
return LabelFieldComponent;
|
|
16131
16172
|
}());
|
|
16132
16173
|
LabelFieldComponent.ɵfac = function LabelFieldComponent_Factory(t) { return new (t || LabelFieldComponent)(); };
|
|
16133
|
-
LabelFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls:
|
|
16174
|
+
LabelFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 5, vars: 6, consts: [["ccdLabelSubstitutor", "", 1, "case-field", 3, "hidden", "caseField", "contextFields", "id"], [3, "content", "markdownUseHrefAsRouterLink", 4, "ngIf"], [3, "content", "markdownUseHrefAsRouterLink"]], template: function LabelFieldComponent_Template(rf, ctx) {
|
|
16134
16175
|
if (rf & 1) {
|
|
16135
16176
|
i0__namespace.ɵɵelementStart(0, "dl", 0);
|
|
16136
16177
|
i0__namespace.ɵɵelementStart(1, "dt");
|
|
16137
|
-
i0__namespace.ɵɵ
|
|
16178
|
+
i0__namespace.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2, 4, "ccd-markdown", 1);
|
|
16179
|
+
i0__namespace.ɵɵtemplate(3, LabelFieldComponent_ccd_markdown_3_Template, 1, 2, "ccd-markdown", 1);
|
|
16138
16180
|
i0__namespace.ɵɵelementEnd();
|
|
16139
|
-
i0__namespace.ɵɵelement(
|
|
16181
|
+
i0__namespace.ɵɵelement(4, "dd");
|
|
16140
16182
|
i0__namespace.ɵɵelementEnd();
|
|
16141
16183
|
}
|
|
16142
16184
|
if (rf & 2) {
|
|
16143
16185
|
i0__namespace.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
|
|
16144
16186
|
i0__namespace.ɵɵadvance(2);
|
|
16145
|
-
i0__namespace.ɵɵproperty("
|
|
16187
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.labelCanBeTranslated);
|
|
16188
|
+
i0__namespace.ɵɵadvance(1);
|
|
16189
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
|
|
16146
16190
|
}
|
|
16147
16191
|
}, encapsulation: 2 });
|
|
16148
16192
|
(function () {
|
|
@@ -16156,6 +16200,8 @@
|
|
|
16156
16200
|
type: i0.Input
|
|
16157
16201
|
}], caseFields: [{
|
|
16158
16202
|
type: i0.Input
|
|
16203
|
+
}], labelCanBeTranslated: [{
|
|
16204
|
+
type: i0.Input
|
|
16159
16205
|
}], markdownUseHrefAsRouterLink: [{
|
|
16160
16206
|
type: i0.Input
|
|
16161
16207
|
}] });
|
|
@@ -18306,9 +18352,13 @@
|
|
|
18306
18352
|
component.instance['caseReference'] = _this.caseReference;
|
|
18307
18353
|
component.instance['context'] = _this.context;
|
|
18308
18354
|
component.instance['markdownUseHrefAsRouterLink'] = _this.markdownUseHrefAsRouterLink;
|
|
18355
|
+
component.instance['labelCanBeTranslated'] = _this.labelCanBeTranslated(_this.caseField);
|
|
18309
18356
|
_this.fieldContainer.insert(component.hostView);
|
|
18310
18357
|
});
|
|
18311
18358
|
};
|
|
18359
|
+
FieldReadComponent.prototype.labelCanBeTranslated = function (caseField) {
|
|
18360
|
+
return !!(caseField.field_type.type === 'Label' && caseField.label);
|
|
18361
|
+
};
|
|
18312
18362
|
return FieldReadComponent;
|
|
18313
18363
|
}(AbstractFieldReadComponent));
|
|
18314
18364
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
@@ -25932,7 +25982,7 @@
|
|
|
25932
25982
|
}], null, null);
|
|
25933
25983
|
})();
|
|
25934
25984
|
i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective], []);
|
|
25935
|
-
i0__namespace.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
|
|
25985
|
+
i0__namespace.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, i2__namespace.NgIf, MarkdownComponent], [i1__namespace.RpxTranslatePipe]);
|
|
25936
25986
|
i0__namespace.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
|
|
25937
25987
|
i0__namespace.ɵɵsetComponentScope(EventLogComponent, [i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, EventLogTableComponent, i2__namespace.NgIf, EventLogDetailsComponent], []);
|
|
25938
25988
|
i0__namespace.ɵɵsetComponentScope(ReadCollectionFieldComponent, [i2__namespace.NgIf, i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, FieldReadComponent, i2__namespace.NgForOf], []);
|
|
@@ -26951,7 +27001,7 @@
|
|
|
26951
27001
|
_this.eventTrigger = eventTrigger;
|
|
26952
27002
|
})
|
|
26953
27003
|
.catch(function (error) {
|
|
26954
|
-
_this.alertService.error(error.message);
|
|
27004
|
+
_this.alertService.error({ phrase: error.message });
|
|
26955
27005
|
return rxjs.throwError(error);
|
|
26956
27006
|
});
|
|
26957
27007
|
};
|
|
@@ -28574,11 +28624,14 @@
|
|
|
28574
28624
|
function WorkbasketFiltersComponent_option_9_Template(rf, ctx) {
|
|
28575
28625
|
if (rf & 1) {
|
|
28576
28626
|
i0__namespace.ɵɵelementStart(0, "option", 11);
|
|
28577
|
-
i0__namespace.ɵɵtext(1
|
|
28627
|
+
i0__namespace.ɵɵtext(1);
|
|
28628
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
28578
28629
|
i0__namespace.ɵɵelementEnd();
|
|
28579
28630
|
}
|
|
28580
28631
|
if (rf & 2) {
|
|
28581
28632
|
i0__namespace.ɵɵproperty("ngValue", null);
|
|
28633
|
+
i0__namespace.ɵɵadvance(1);
|
|
28634
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, "Select a value"));
|
|
28582
28635
|
}
|
|
28583
28636
|
}
|
|
28584
28637
|
function WorkbasketFiltersComponent_option_10_Template(rf, ctx) {
|
|
@@ -28622,7 +28675,7 @@
|
|
|
28622
28675
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, ct_r7.name));
|
|
28623
28676
|
}
|
|
28624
28677
|
}
|
|
28625
|
-
function
|
|
28678
|
+
function WorkbasketFiltersComponent_option_26_Template(rf, ctx) {
|
|
28626
28679
|
if (rf & 1) {
|
|
28627
28680
|
i0__namespace.ɵɵelementStart(0, "option", 11);
|
|
28628
28681
|
i0__namespace.ɵɵtext(1);
|
|
@@ -28636,12 +28689,12 @@
|
|
|
28636
28689
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, cs_r8.name));
|
|
28637
28690
|
}
|
|
28638
28691
|
}
|
|
28639
|
-
function
|
|
28692
|
+
function WorkbasketFiltersComponent_ng_container_27_div_2_Template(rf, ctx) {
|
|
28640
28693
|
if (rf & 1) {
|
|
28641
28694
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28642
28695
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
28643
28696
|
i0__namespace.ɵɵelementStart(1, "ccd-field-write", 18);
|
|
28644
|
-
i0__namespace.ɵɵlistener("keyup.enter", function
|
|
28697
|
+
i0__namespace.ɵɵlistener("keyup.enter", function WorkbasketFiltersComponent_ng_container_27_div_2_Template_ccd_field_write_keyup_enter_1_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.apply(null); });
|
|
28645
28698
|
i0__namespace.ɵɵelementEnd();
|
|
28646
28699
|
i0__namespace.ɵɵelementEnd();
|
|
28647
28700
|
}
|
|
@@ -28652,11 +28705,11 @@
|
|
|
28652
28705
|
i0__namespace.ɵɵproperty("caseField", workbasketInput_r10.field)("formGroup", ctx_r9.formGroup)("isExpanded", true)("isInSearchBlock", true);
|
|
28653
28706
|
}
|
|
28654
28707
|
}
|
|
28655
|
-
function
|
|
28708
|
+
function WorkbasketFiltersComponent_ng_container_27_Template(rf, ctx) {
|
|
28656
28709
|
if (rf & 1) {
|
|
28657
28710
|
i0__namespace.ɵɵelementContainerStart(0, 15);
|
|
28658
28711
|
i0__namespace.ɵɵelementStart(1, "div", 16);
|
|
28659
|
-
i0__namespace.ɵɵtemplate(2,
|
|
28712
|
+
i0__namespace.ɵɵtemplate(2, WorkbasketFiltersComponent_ng_container_27_div_2_Template, 2, 4, "div", 17);
|
|
28660
28713
|
i0__namespace.ɵɵelementEnd();
|
|
28661
28714
|
i0__namespace.ɵɵelementContainerEnd();
|
|
28662
28715
|
}
|
|
@@ -28940,7 +28993,7 @@
|
|
|
28940
28993
|
WorkbasketFiltersComponent.PARAM_CASE_TYPE = 'case-type';
|
|
28941
28994
|
WorkbasketFiltersComponent.PARAM_CASE_STATE = 'case-state';
|
|
28942
28995
|
WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(WorkbasketInputFilterService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
|
|
28943
|
-
WorkbasketFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls:
|
|
28996
|
+
WorkbasketFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 39, vars: 46, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange", "change"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", 1, "button", "workbasket-filters-apply", 3, "disabled", "title", "click"], ["type", "button", 1, "button", "button-secondary", 3, "title", "click"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "isInSearchBlock", "keyup.enter"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) {
|
|
28944
28997
|
if (rf & 1) {
|
|
28945
28998
|
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
28946
28999
|
i0__namespace.ɵɵtext(1);
|
|
@@ -28954,7 +29007,7 @@
|
|
|
28954
29007
|
i0__namespace.ɵɵelementEnd();
|
|
28955
29008
|
i0__namespace.ɵɵelementStart(8, "select", 4);
|
|
28956
29009
|
i0__namespace.ɵɵlistener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_8_listener($event) { return ctx.selected.jurisdiction = $event; })("change", function WorkbasketFiltersComponent_Template_select_change_8_listener() { return ctx.onJurisdictionIdChange(); });
|
|
28957
|
-
i0__namespace.ɵɵtemplate(9, WorkbasketFiltersComponent_option_9_Template,
|
|
29010
|
+
i0__namespace.ɵɵtemplate(9, WorkbasketFiltersComponent_option_9_Template, 3, 4, "option", 5);
|
|
28958
29011
|
i0__namespace.ɵɵtemplate(10, WorkbasketFiltersComponent_option_10_Template, 3, 4, "option", 6);
|
|
28959
29012
|
i0__namespace.ɵɵelementEnd();
|
|
28960
29013
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28977,34 +29030,35 @@
|
|
|
28977
29030
|
i0__namespace.ɵɵelementStart(22, "select", 10);
|
|
28978
29031
|
i0__namespace.ɵɵlistener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_22_listener($event) { return ctx.selected.caseState = $event; });
|
|
28979
29032
|
i0__namespace.ɵɵelementStart(23, "option", 11);
|
|
28980
|
-
i0__namespace.ɵɵtext(24
|
|
29033
|
+
i0__namespace.ɵɵtext(24);
|
|
29034
|
+
i0__namespace.ɵɵpipe(25, "rpxTranslate");
|
|
28981
29035
|
i0__namespace.ɵɵelementEnd();
|
|
28982
|
-
i0__namespace.ɵɵtemplate(
|
|
29036
|
+
i0__namespace.ɵɵtemplate(26, WorkbasketFiltersComponent_option_26_Template, 3, 4, "option", 6);
|
|
28983
29037
|
i0__namespace.ɵɵelementEnd();
|
|
28984
29038
|
i0__namespace.ɵɵelementEnd();
|
|
28985
|
-
i0__namespace.ɵɵtemplate(
|
|
28986
|
-
i0__namespace.ɵɵelementStart(
|
|
28987
|
-
i0__namespace.ɵɵlistener("click", function
|
|
28988
|
-
i0__namespace.ɵɵpipe(28, "rpxTranslate");
|
|
29039
|
+
i0__namespace.ɵɵtemplate(27, WorkbasketFiltersComponent_ng_container_27_Template, 3, 3, "ng-container", 12);
|
|
29040
|
+
i0__namespace.ɵɵelementStart(28, "button", 13);
|
|
29041
|
+
i0__namespace.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_28_listener() { return ctx.apply(true); });
|
|
28989
29042
|
i0__namespace.ɵɵpipe(29, "rpxTranslate");
|
|
28990
|
-
i0__namespace.ɵɵ
|
|
28991
|
-
i0__namespace.ɵɵ
|
|
29043
|
+
i0__namespace.ɵɵpipe(30, "rpxTranslate");
|
|
29044
|
+
i0__namespace.ɵɵtext(31);
|
|
29045
|
+
i0__namespace.ɵɵpipe(32, "rpxTranslate");
|
|
28992
29046
|
i0__namespace.ɵɵelementEnd();
|
|
28993
|
-
i0__namespace.ɵɵtext(
|
|
28994
|
-
i0__namespace.ɵɵelementStart(
|
|
28995
|
-
i0__namespace.ɵɵlistener("click", function
|
|
28996
|
-
i0__namespace.ɵɵpipe(34, "rpxTranslate");
|
|
29047
|
+
i0__namespace.ɵɵtext(33, " \u00A0\u00A0\u00A0 ");
|
|
29048
|
+
i0__namespace.ɵɵelementStart(34, "button", 14);
|
|
29049
|
+
i0__namespace.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_34_listener() { return ctx.reset(); });
|
|
28997
29050
|
i0__namespace.ɵɵpipe(35, "rpxTranslate");
|
|
28998
|
-
i0__namespace.ɵɵ
|
|
28999
|
-
i0__namespace.ɵɵ
|
|
29051
|
+
i0__namespace.ɵɵpipe(36, "rpxTranslate");
|
|
29052
|
+
i0__namespace.ɵɵtext(37);
|
|
29053
|
+
i0__namespace.ɵɵpipe(38, "rpxTranslate");
|
|
29000
29054
|
i0__namespace.ɵɵelementEnd();
|
|
29001
29055
|
i0__namespace.ɵɵelementEnd();
|
|
29002
29056
|
}
|
|
29003
29057
|
if (rf & 2) {
|
|
29004
29058
|
i0__namespace.ɵɵadvance(1);
|
|
29005
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2,
|
|
29059
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 24, "Filters"));
|
|
29006
29060
|
i0__namespace.ɵɵadvance(5);
|
|
29007
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7,
|
|
29061
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 26, "Jurisdiction"));
|
|
29008
29062
|
i0__namespace.ɵɵadvance(2);
|
|
29009
29063
|
i0__namespace.ɵɵproperty("ngModel", ctx.selected.jurisdiction);
|
|
29010
29064
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -29012,7 +29066,7 @@
|
|
|
29012
29066
|
i0__namespace.ɵɵadvance(1);
|
|
29013
29067
|
i0__namespace.ɵɵproperty("ngForOf", ctx.jurisdictions);
|
|
29014
29068
|
i0__namespace.ɵɵadvance(3);
|
|
29015
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(14,
|
|
29069
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(14, 28, "Case type"));
|
|
29016
29070
|
i0__namespace.ɵɵadvance(2);
|
|
29017
29071
|
i0__namespace.ɵɵproperty("ngModel", ctx.selected.caseType)("disabled", ctx.isCaseTypesDropdownDisabled());
|
|
29018
29072
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -29020,25 +29074,27 @@
|
|
|
29020
29074
|
i0__namespace.ɵɵadvance(1);
|
|
29021
29075
|
i0__namespace.ɵɵproperty("ngForOf", ctx.selectedJurisdictionCaseTypes);
|
|
29022
29076
|
i0__namespace.ɵɵadvance(3);
|
|
29023
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(21,
|
|
29077
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(21, 30, "State"));
|
|
29024
29078
|
i0__namespace.ɵɵadvance(2);
|
|
29025
29079
|
i0__namespace.ɵɵproperty("ngModel", ctx.selected.caseState)("disabled", ctx.isCaseStatesDropdownDisabled());
|
|
29026
29080
|
i0__namespace.ɵɵadvance(1);
|
|
29027
29081
|
i0__namespace.ɵɵproperty("ngValue", null);
|
|
29082
|
+
i0__namespace.ɵɵadvance(1);
|
|
29083
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(25, 32, "Any"));
|
|
29028
29084
|
i0__namespace.ɵɵadvance(2);
|
|
29029
29085
|
i0__namespace.ɵɵproperty("ngForOf", ctx.selectedCaseTypeStates);
|
|
29030
29086
|
i0__namespace.ɵɵadvance(1);
|
|
29031
29087
|
i0__namespace.ɵɵproperty("ngIf", ctx.isSearchableAndWorkbasketInputsReady());
|
|
29032
29088
|
i0__namespace.ɵɵadvance(1);
|
|
29033
|
-
i0__namespace.ɵɵproperty("disabled", ctx.isApplyButtonDisabled())("title", i0__namespace.ɵɵpipeBind1(
|
|
29034
|
-
i0__namespace.ɵɵattribute("aria-label", i0__namespace.ɵɵpipeBind1(
|
|
29089
|
+
i0__namespace.ɵɵproperty("disabled", ctx.isApplyButtonDisabled())("title", i0__namespace.ɵɵpipeBind1(29, 34, "Apply filter"));
|
|
29090
|
+
i0__namespace.ɵɵattribute("aria-label", i0__namespace.ɵɵpipeBind1(30, 36, "Apply filter"));
|
|
29035
29091
|
i0__namespace.ɵɵadvance(3);
|
|
29036
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(
|
|
29092
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(32, 38, "Apply"), " ");
|
|
29037
29093
|
i0__namespace.ɵɵadvance(3);
|
|
29038
|
-
i0__namespace.ɵɵproperty("title", i0__namespace.ɵɵpipeBind1(
|
|
29039
|
-
i0__namespace.ɵɵattribute("aria-label", i0__namespace.ɵɵpipeBind1(
|
|
29094
|
+
i0__namespace.ɵɵproperty("title", i0__namespace.ɵɵpipeBind1(35, 40, "Reset filter"));
|
|
29095
|
+
i0__namespace.ɵɵattribute("aria-label", i0__namespace.ɵɵpipeBind1(36, 42, "Reset filter"));
|
|
29040
29096
|
i0__namespace.ɵɵadvance(3);
|
|
29041
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(
|
|
29097
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 44, "Reset"), " ");
|
|
29042
29098
|
}
|
|
29043
29099
|
}, styles: ["div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media (min-width:641px){div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:12pt;line-height:1.3333333333}}.form-group[_ngcontent-%COMP%]{margin-bottom:7px}.ccd-dropdown[_ngcontent-%COMP%]{width:100%}span.heading-medium[_ngcontent-%COMP%]{margin-top:0}"] });
|
|
29044
29100
|
(function () {
|
|
@@ -29736,7 +29792,7 @@
|
|
|
29736
29792
|
}))
|
|
29737
29793
|
.toPromise()
|
|
29738
29794
|
.catch(function (error) {
|
|
29739
|
-
_this.alertService.error(error.message);
|
|
29795
|
+
_this.alertService.error({ phrase: error.message });
|
|
29740
29796
|
return rxjs.throwError(error);
|
|
29741
29797
|
});
|
|
29742
29798
|
};
|
|
@@ -30094,12 +30150,19 @@
|
|
|
30094
30150
|
.navigate([this.parentUrl])
|
|
30095
30151
|
.then(function () {
|
|
30096
30152
|
var caseReference = _this.caseReferencePipe.transform(_this.caseDetails.case_id.toString());
|
|
30153
|
+
var replacements = { CASEREFERENCE: caseReference, NAME: _this.eventTrigger.name };
|
|
30097
30154
|
if (EventStatusService.isIncomplete(eventStatus)) {
|
|
30098
|
-
_this.alertService.warning(
|
|
30099
|
-
|
|
30155
|
+
_this.alertService.warning({
|
|
30156
|
+
phrase: "Case #%CASEREFERENCE% has been updated with event: %NAME%\n but the callback service cannot be completed",
|
|
30157
|
+
replacements: replacements
|
|
30158
|
+
});
|
|
30100
30159
|
}
|
|
30101
30160
|
else {
|
|
30102
|
-
_this.alertService.success(
|
|
30161
|
+
_this.alertService.success({
|
|
30162
|
+
phrase: 'Case #%CASEREFERENCE% has been updated with event: %NAME%',
|
|
30163
|
+
replacements: replacements,
|
|
30164
|
+
preserve: true
|
|
30165
|
+
});
|
|
30103
30166
|
}
|
|
30104
30167
|
});
|
|
30105
30168
|
};
|