@hmcts/ccd-case-ui-toolkit 7.3.60-fix-case-filter-issue → 7.3.61-message-interpolation-01
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.
|
@@ -8,11 +8,10 @@ import * as i1$1 from '@angular/router';
|
|
|
8
8
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
9
9
|
import * as i4 from '@angular/forms';
|
|
10
10
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
11
|
-
import { BehaviorSubject, throwError, Subject, EMPTY, Observable, skip, of,
|
|
11
|
+
import { BehaviorSubject, throwError, Subject, EMPTY, concat, defer, timer, Observable, skip, of, forkJoin, fromEvent, Subscription, combineLatest } from 'rxjs';
|
|
12
|
+
import { distinctUntilChanged, catchError, map, switchMap, repeat, retry, publish, refCount, debounceTime, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
|
|
12
13
|
import * as i1$2 from '@angular/common/http';
|
|
13
14
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
14
|
-
import { distinctUntilChanged, catchError, map, publish, refCount, switchMap, debounceTime, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
|
|
15
|
-
import { polling } from 'rx-polling-hmcts';
|
|
16
15
|
import { Type, Exclude, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
17
16
|
import moment from 'moment';
|
|
18
17
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -1829,8 +1828,7 @@ class ActivityPollingService {
|
|
|
1829
1828
|
this.config = config;
|
|
1830
1829
|
this.pollConfig = {
|
|
1831
1830
|
interval: config.getActivityNexPollRequestMs(),
|
|
1832
|
-
attempts: config.getActivityRetry()
|
|
1833
|
-
backgroundPolling: true
|
|
1831
|
+
attempts: config.getActivityRetry()
|
|
1834
1832
|
};
|
|
1835
1833
|
this.batchCollectionDelayMs = config.getActivityBatchCollectionDelayMs();
|
|
1836
1834
|
this.maxRequestsPerBatch = config.getActivityMaxRequestPerBatch();
|
|
@@ -1847,17 +1845,18 @@ class ActivityPollingService {
|
|
|
1847
1845
|
subject.subscribe(done);
|
|
1848
1846
|
}
|
|
1849
1847
|
else {
|
|
1848
|
+
// Only the first pending request should start the batch collection timer.
|
|
1849
|
+
const wasEmpty = this.pendingRequests.size === 0;
|
|
1850
1850
|
subject = new Subject();
|
|
1851
1851
|
subject.subscribe(done);
|
|
1852
|
-
this.
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
});
|
|
1852
|
+
this.addPendingRequest(caseId, subject);
|
|
1853
|
+
if (wasEmpty) {
|
|
1854
|
+
this.ngZone.runOutsideAngular(() => {
|
|
1855
|
+
this.currentTimeoutHandle = setTimeout(() => this.ngZone.run(() => {
|
|
1856
|
+
this.flushRequests();
|
|
1857
|
+
}), this.batchCollectionDelayMs);
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1861
1860
|
}
|
|
1862
1861
|
if (this.pendingRequests.size >= this.maxRequestsPerBatch) {
|
|
1863
1862
|
// console.log('max pending hit: flushing requests');
|
|
@@ -1875,6 +1874,9 @@ class ActivityPollingService {
|
|
|
1875
1874
|
clearTimeout(this.currentTimeoutHandle);
|
|
1876
1875
|
this.currentTimeoutHandle = undefined;
|
|
1877
1876
|
}
|
|
1877
|
+
if (!this.pendingRequests.size) {
|
|
1878
|
+
return;
|
|
1879
|
+
}
|
|
1878
1880
|
const requests = new Map(this.pendingRequests);
|
|
1879
1881
|
this.pendingRequests.clear();
|
|
1880
1882
|
this.performBatchRequest(requests);
|
|
@@ -1883,7 +1885,7 @@ class ActivityPollingService {
|
|
|
1883
1885
|
if (!this.isEnabled) {
|
|
1884
1886
|
return EMPTY;
|
|
1885
1887
|
}
|
|
1886
|
-
return polling(this.activityService.getActivities(...caseIds), this.pollConfig);
|
|
1888
|
+
return this.polling(this.activityService.getActivities(...caseIds), this.pollConfig);
|
|
1887
1889
|
}
|
|
1888
1890
|
postViewActivity(caseId) {
|
|
1889
1891
|
return this.postActivity(caseId, ActivityService.ACTIVITY_VIEW);
|
|
@@ -1896,17 +1898,19 @@ class ActivityPollingService {
|
|
|
1896
1898
|
// console.log('issuing batch request for cases: ' + caseIds);
|
|
1897
1899
|
this.ngZone.runOutsideAngular(() => {
|
|
1898
1900
|
// run polling outside angular zone so it does not trigger change detection
|
|
1899
|
-
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe(
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1901
|
+
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe({
|
|
1902
|
+
// process activity inside zone so it triggers change detection for activity.component.ts
|
|
1903
|
+
next: (activities) => this.ngZone.run(() => {
|
|
1904
|
+
activities.forEach((activity) => {
|
|
1905
|
+
// Ignore activities returned for cases outside this local batch.
|
|
1906
|
+
requests.get(activity.caseId)?.next(activity);
|
|
1907
|
+
});
|
|
1908
|
+
}),
|
|
1909
|
+
error: (err) => this.ngZone.run(() => {
|
|
1910
|
+
console.log(`error: ${err}`);
|
|
1911
|
+
Array.from(requests.values()).forEach((subject) => subject.error(err));
|
|
1912
|
+
})
|
|
1913
|
+
});
|
|
1910
1914
|
});
|
|
1911
1915
|
}
|
|
1912
1916
|
postActivity(caseId, activityType) {
|
|
@@ -1917,7 +1921,42 @@ class ActivityPollingService {
|
|
|
1917
1921
|
...this.pollConfig,
|
|
1918
1922
|
interval: 5000 // inline with CCD Backend
|
|
1919
1923
|
};
|
|
1920
|
-
return polling(this.activityService.postActivity(caseId, activityType), pollingConfig);
|
|
1924
|
+
return this.polling(this.activityService.postActivity(caseId, activityType), pollingConfig);
|
|
1925
|
+
}
|
|
1926
|
+
addPendingRequest(caseId, subject) {
|
|
1927
|
+
this.pendingRequests.set(caseId, subject);
|
|
1928
|
+
// Components complete their returned Subject on destroy; remove it so a later same-case subscription gets a fresh Subject.
|
|
1929
|
+
subject.subscribe({
|
|
1930
|
+
complete: () => this.removePendingRequest(caseId, subject),
|
|
1931
|
+
error: () => this.removePendingRequest(caseId, subject)
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
removePendingRequest(caseId, subject) {
|
|
1935
|
+
if (this.pendingRequests.get(caseId) !== subject) {
|
|
1936
|
+
return;
|
|
1937
|
+
}
|
|
1938
|
+
this.pendingRequests.delete(caseId);
|
|
1939
|
+
if (!this.pendingRequests.size && this.currentTimeoutHandle) {
|
|
1940
|
+
clearTimeout(this.currentTimeoutHandle);
|
|
1941
|
+
this.currentTimeoutHandle = undefined;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
polling(request$, options) {
|
|
1945
|
+
const pollingOptions = {
|
|
1946
|
+
interval: options.interval,
|
|
1947
|
+
attempts: options.attempts ?? 9,
|
|
1948
|
+
exponentialUnit: options.exponentialUnit ?? 1000
|
|
1949
|
+
};
|
|
1950
|
+
return concat(request$, defer(() => timer(pollingOptions.interval).pipe(switchMap(() => request$))).pipe(repeat())).pipe(
|
|
1951
|
+
// Preserve consecutive-failure retry behaviour using the current RxJS retry config.
|
|
1952
|
+
retry({
|
|
1953
|
+
count: pollingOptions.attempts,
|
|
1954
|
+
delay: (_error, retryCount) => timer(this.getExponentialRetryDelay(retryCount, pollingOptions.exponentialUnit)),
|
|
1955
|
+
resetOnSuccess: true
|
|
1956
|
+
}));
|
|
1957
|
+
}
|
|
1958
|
+
getExponentialRetryDelay(consecutiveErrorsCount, exponentialUnit) {
|
|
1959
|
+
return Math.pow(2, consecutiveErrorsCount - 1) * exponentialUnit;
|
|
1921
1960
|
}
|
|
1922
1961
|
static ɵfac = function ActivityPollingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActivityPollingService)(i0.ɵɵinject(ActivityService), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(AbstractAppConfig)); };
|
|
1923
1962
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityPollingService, factory: ActivityPollingService.ɵfac });
|
|
@@ -6883,6 +6922,7 @@ class LabelSubstitutorModule {
|
|
|
6883
6922
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
6884
6923
|
FieldsUtils,
|
|
6885
6924
|
CurrencyPipe,
|
|
6925
|
+
PlaceholderService
|
|
6886
6926
|
] });
|
|
6887
6927
|
}
|
|
6888
6928
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorModule, [{
|
|
@@ -6897,6 +6937,7 @@ class LabelSubstitutorModule {
|
|
|
6897
6937
|
providers: [
|
|
6898
6938
|
FieldsUtils,
|
|
6899
6939
|
CurrencyPipe,
|
|
6940
|
+
PlaceholderService
|
|
6900
6941
|
]
|
|
6901
6942
|
}]
|
|
6902
6943
|
}], null, null); })();
|
|
@@ -11336,6 +11377,8 @@ class CaseEditPageComponent {
|
|
|
11336
11377
|
dialogRefAfterClosedSub;
|
|
11337
11378
|
saveDraftSub;
|
|
11338
11379
|
caseFormValidationErrorsSub;
|
|
11380
|
+
fieldsUtils = new FieldsUtils();
|
|
11381
|
+
placeholderService = new PlaceholderService();
|
|
11339
11382
|
static scrollToTop() {
|
|
11340
11383
|
window.scrollTo(0, 0);
|
|
11341
11384
|
}
|
|
@@ -11398,6 +11441,7 @@ class CaseEditPageComponent {
|
|
|
11398
11441
|
}
|
|
11399
11442
|
ngOnInit() {
|
|
11400
11443
|
initDialog();
|
|
11444
|
+
this.clearValidationErrors();
|
|
11401
11445
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
11402
11446
|
this.editForm = this.caseEdit.form;
|
|
11403
11447
|
this.wizard = this.caseEdit.wizard;
|
|
@@ -11453,6 +11497,7 @@ class CaseEditPageComponent {
|
|
|
11453
11497
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
11454
11498
|
this.saveDraftSub?.unsubscribe();
|
|
11455
11499
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
11500
|
+
this.clearValidationErrors();
|
|
11456
11501
|
this.multipageComponentStateService.reset();
|
|
11457
11502
|
}
|
|
11458
11503
|
applyValuesChanged(valuesChanged) {
|
|
@@ -11476,7 +11521,7 @@ class CaseEditPageComponent {
|
|
|
11476
11521
|
* EUI-3732 - Breathing space data not persisted on Previous button click with ExpUI Demo
|
|
11477
11522
|
*/
|
|
11478
11523
|
toPreviousPage() {
|
|
11479
|
-
this.
|
|
11524
|
+
this.clearValidationErrors();
|
|
11480
11525
|
const caseEventData = this.buildCaseEventData(true);
|
|
11481
11526
|
caseEventData.data = caseEventData.event_data;
|
|
11482
11527
|
this.updateFormData(caseEventData);
|
|
@@ -11502,7 +11547,7 @@ class CaseEditPageComponent {
|
|
|
11502
11547
|
? group.get(`${casefield.id}_judicialUserControl`)
|
|
11503
11548
|
: group.get(casefield.id);
|
|
11504
11549
|
if (fieldElement) {
|
|
11505
|
-
const label = casefield
|
|
11550
|
+
const label = this.getInterpolatedFieldLabel(casefield);
|
|
11506
11551
|
let id = casefield.id;
|
|
11507
11552
|
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
11508
11553
|
if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
|
|
@@ -11562,7 +11607,7 @@ class CaseEditPageComponent {
|
|
|
11562
11607
|
});
|
|
11563
11608
|
}
|
|
11564
11609
|
else {
|
|
11565
|
-
this.validationErrors.push({ id, message: `Select or fill the required ${
|
|
11610
|
+
this.validationErrors.push({ id, message: `Select or fill the required ${label} field` });
|
|
11566
11611
|
fieldElement.markAsDirty();
|
|
11567
11612
|
}
|
|
11568
11613
|
}
|
|
@@ -11649,7 +11694,7 @@ class CaseEditPageComponent {
|
|
|
11649
11694
|
this.editForm.controls['data'].removeControl('caseLinksFlag');
|
|
11650
11695
|
}
|
|
11651
11696
|
}
|
|
11652
|
-
this.
|
|
11697
|
+
this.clearValidationErrors();
|
|
11653
11698
|
this.checkForStagesCompleted();
|
|
11654
11699
|
if (this.currentPageIsNotValid()) {
|
|
11655
11700
|
// The generateErrorMessage method filters out the hidden fields.
|
|
@@ -11813,7 +11858,7 @@ class CaseEditPageComponent {
|
|
|
11813
11858
|
else {
|
|
11814
11859
|
this.caseEdit.cancelled.emit();
|
|
11815
11860
|
}
|
|
11816
|
-
this.
|
|
11861
|
+
this.clearValidationErrors();
|
|
11817
11862
|
this.multipageComponentStateService.reset();
|
|
11818
11863
|
}
|
|
11819
11864
|
resetLinkedCaseJourney() {
|
|
@@ -11881,6 +11926,7 @@ class CaseEditPageComponent {
|
|
|
11881
11926
|
console.log('handleError ', error);
|
|
11882
11927
|
}
|
|
11883
11928
|
resetErrors() {
|
|
11929
|
+
this.clearValidationErrors();
|
|
11884
11930
|
this.caseEdit.error = null;
|
|
11885
11931
|
this.caseEdit.ignoreWarning = false;
|
|
11886
11932
|
this.triggerText = this.getTriggerText();
|
|
@@ -11888,6 +11934,10 @@ class CaseEditPageComponent {
|
|
|
11888
11934
|
this.caseEdit.callbackErrorsSubject.next(null);
|
|
11889
11935
|
}
|
|
11890
11936
|
}
|
|
11937
|
+
clearValidationErrors() {
|
|
11938
|
+
this.validationErrors = [];
|
|
11939
|
+
this.caseEditDataService?.clearFormValidationErrors?.();
|
|
11940
|
+
}
|
|
11891
11941
|
saveDraft() {
|
|
11892
11942
|
if (this.eventTrigger.can_save_draft) {
|
|
11893
11943
|
const draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
|
|
@@ -11963,7 +12013,20 @@ class CaseEditPageComponent {
|
|
|
11963
12013
|
});
|
|
11964
12014
|
}
|
|
11965
12015
|
getRpxTranslatePipeArgs(fieldLabel) {
|
|
11966
|
-
return fieldLabel ? ({ FIELDLABEL: fieldLabel }) : null;
|
|
12016
|
+
return fieldLabel ? ({ FIELDLABEL: this.resolveLabelPlaceholders(fieldLabel) }) : null;
|
|
12017
|
+
}
|
|
12018
|
+
getInterpolatedFieldLabel(caseField) {
|
|
12019
|
+
const label = caseField.label || 'Field';
|
|
12020
|
+
return this.resolveLabelPlaceholders(label);
|
|
12021
|
+
}
|
|
12022
|
+
resolveLabelPlaceholders(label) {
|
|
12023
|
+
const dataControl = this.editForm?.controls?.['data'];
|
|
12024
|
+
const formFields = dataControl && typeof dataControl.getRawValue === 'function'
|
|
12025
|
+
? dataControl.getRawValue()
|
|
12026
|
+
: {};
|
|
12027
|
+
const contextFields = this.caseFields?.length ? this.caseFields : this.eventTrigger?.case_fields || [];
|
|
12028
|
+
const fields = this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(contextFields, formFields);
|
|
12029
|
+
return this.placeholderService.resolvePlaceholders(fields, label);
|
|
11967
12030
|
}
|
|
11968
12031
|
onEventCanBeCompleted(eventCanBeCompleted) {
|
|
11969
12032
|
this.caseEdit.onEventCanBeCompleted({
|
|
@@ -12015,7 +12078,7 @@ class CaseEditPageComponent {
|
|
|
12015
12078
|
type: Component,
|
|
12016
12079
|
args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" (keyup.enter)=\"navigateToErrorElement(validationError.id)\" tabindex=\"0\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isDisabled()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><button type=\"button\" (click)=\"cancel()\" class=\"govuk-js-link\">{{getCancelText() | rpxTranslate}}</button></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
12017
12080
|
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }], null); })();
|
|
12018
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber:
|
|
12081
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 36 }); })();
|
|
12019
12082
|
|
|
12020
12083
|
class CallbackErrorsContext {
|
|
12021
12084
|
triggerText;
|
|
@@ -29444,22 +29507,24 @@ class UpdateFlagTitleDisplayPipe extends AsyncPipe {
|
|
|
29444
29507
|
|
|
29445
29508
|
const _c0$l = (a0, a1, a2) => [a0, false, undefined, true, a1, a2];
|
|
29446
29509
|
function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
29447
|
-
i0.ɵɵelementContainerStart(0);
|
|
29448
|
-
i0.ɵɵelementStart(
|
|
29449
|
-
i0.ɵɵtext(
|
|
29450
|
-
i0.ɵɵpipe(
|
|
29510
|
+
i0.ɵɵelementContainerStart(0)(1, 2);
|
|
29511
|
+
i0.ɵɵelementStart(2, "dt", 3)(3, "span", 4);
|
|
29512
|
+
i0.ɵɵtext(4);
|
|
29513
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
29451
29514
|
i0.ɵɵelementEnd()();
|
|
29452
|
-
i0.ɵɵelementStart(
|
|
29453
|
-
i0.ɵɵelement(
|
|
29515
|
+
i0.ɵɵelementStart(6, "dd", 3);
|
|
29516
|
+
i0.ɵɵelement(7, "ccd-field-read", 5);
|
|
29454
29517
|
i0.ɵɵelementEnd();
|
|
29455
|
-
i0.ɵɵelementContainerEnd();
|
|
29518
|
+
i0.ɵɵelementContainerEnd()();
|
|
29456
29519
|
} if (rf & 2) {
|
|
29457
29520
|
const field_r1 = ctx.$implicit;
|
|
29458
29521
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29459
29522
|
i0.ɵɵadvance();
|
|
29523
|
+
i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
|
|
29524
|
+
i0.ɵɵadvance();
|
|
29460
29525
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
29461
29526
|
i0.ɵɵadvance(2);
|
|
29462
|
-
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(
|
|
29527
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(5, 11, field_r1.label) : field_r1.label);
|
|
29463
29528
|
i0.ɵɵadvance(2);
|
|
29464
29529
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
29465
29530
|
i0.ɵɵadvance();
|
|
@@ -29472,9 +29537,9 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
29472
29537
|
class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
29473
29538
|
caseFields = [];
|
|
29474
29539
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldRawComponent_BaseFactory; return function ReadComplexFieldRawComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldRawComponent_BaseFactory || (ɵReadComplexFieldRawComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent)))(__ngFactoryType__ || ReadComplexFieldRawComponent); }; })();
|
|
29475
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29540
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29476
29541
|
i0.ɵɵelementStart(0, "dl", 0);
|
|
29477
|
-
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template,
|
|
29542
|
+
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 8, 13, "ng-container", 1);
|
|
29478
29543
|
i0.ɵɵpipe(2, "ccdReadFieldsFilter");
|
|
29479
29544
|
i0.ɵɵelementEnd();
|
|
29480
29545
|
} if (rf & 2) {
|
|
@@ -29484,17 +29549,17 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
29484
29549
|
}
|
|
29485
29550
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
29486
29551
|
type: Component,
|
|
29487
|
-
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n
|
|
29552
|
+
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
|
|
29488
29553
|
}], null, { caseFields: [{
|
|
29489
29554
|
type: Input
|
|
29490
29555
|
}] }); })();
|
|
29491
29556
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldRawComponent, { className: "ReadComplexFieldRawComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-raw.component.ts", lineNumber: 17 }); })();
|
|
29492
29557
|
|
|
29493
29558
|
const _c0$k = (a0, a1, a2, a3) => [a0, false, undefined, true, a1, a2, a3];
|
|
29494
|
-
function
|
|
29559
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
29495
29560
|
i0.ɵɵelementContainerStart(0);
|
|
29496
|
-
i0.ɵɵelementStart(1, "tr",
|
|
29497
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
29561
|
+
i0.ɵɵelementStart(1, "tr", 8)(2, "td", 9)(3, "span", 3);
|
|
29562
|
+
i0.ɵɵelement(4, "ccd-field-read", 10);
|
|
29498
29563
|
i0.ɵɵelementEnd()()();
|
|
29499
29564
|
i0.ɵɵelementContainerEnd();
|
|
29500
29565
|
} if (rf & 2) {
|
|
@@ -29505,13 +29570,13 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(r
|
|
|
29505
29570
|
i0.ɵɵadvance(3);
|
|
29506
29571
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29507
29572
|
} }
|
|
29508
|
-
function
|
|
29509
|
-
i0.ɵɵelementStart(0, "tr",
|
|
29573
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
29574
|
+
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 12)(2, "span", 3);
|
|
29510
29575
|
i0.ɵɵtext(3);
|
|
29511
29576
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
29512
29577
|
i0.ɵɵelementEnd()();
|
|
29513
29578
|
i0.ɵɵelementStart(5, "td")(6, "span", 3);
|
|
29514
|
-
i0.ɵɵelement(7, "ccd-field-read",
|
|
29579
|
+
i0.ɵɵelement(7, "ccd-field-read", 10);
|
|
29515
29580
|
i0.ɵɵelementEnd()()();
|
|
29516
29581
|
} if (rf & 2) {
|
|
29517
29582
|
const field_r1 = i0.ɵɵnextContext().$implicit;
|
|
@@ -29523,16 +29588,19 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf
|
|
|
29523
29588
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29524
29589
|
} }
|
|
29525
29590
|
function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
29526
|
-
i0.ɵɵelementContainerStart(0);
|
|
29527
|
-
i0.ɵɵtemplate(
|
|
29528
|
-
i0.ɵɵpipe(
|
|
29529
|
-
i0.ɵɵtemplate(
|
|
29530
|
-
i0.ɵɵelementContainerEnd();
|
|
29591
|
+
i0.ɵɵelementContainerStart(0)(1, 6);
|
|
29592
|
+
i0.ɵɵtemplate(2, ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template, 5, 5, "ng-container", 7);
|
|
29593
|
+
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
29594
|
+
i0.ɵɵtemplate(4, ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
29595
|
+
i0.ɵɵelementContainerEnd()();
|
|
29531
29596
|
} if (rf & 2) {
|
|
29532
29597
|
const field_r1 = ctx.$implicit;
|
|
29533
|
-
const SimpleRow_r3 = i0.ɵɵreference(
|
|
29598
|
+
const SimpleRow_r3 = i0.ɵɵreference(5);
|
|
29599
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
29600
|
+
i0.ɵɵadvance();
|
|
29601
|
+
i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
|
|
29534
29602
|
i0.ɵɵadvance();
|
|
29535
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
29603
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 5, field_r1))("ngIfElse", SimpleRow_r3);
|
|
29536
29604
|
} }
|
|
29537
29605
|
class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
29538
29606
|
// parent_ can be replaced with any ***_ - underscore is only important character
|
|
@@ -29553,7 +29621,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29553
29621
|
this.path = ReadComplexFieldTableComponent.DUMMY_STRING_PRE + this.idPrefix + ReadComplexFieldTableComponent.DUMMY_STRING_POST;
|
|
29554
29622
|
}
|
|
29555
29623
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(__ngFactoryType__ || ReadComplexFieldTableComponent); }; })();
|
|
29556
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29624
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29557
29625
|
i0.ɵɵelementStart(0, "div", 1)(1, "dl", 2)(2, "dt")(3, "span", 3);
|
|
29558
29626
|
i0.ɵɵtext(4);
|
|
29559
29627
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -29561,7 +29629,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29561
29629
|
i0.ɵɵelement(6, "dd");
|
|
29562
29630
|
i0.ɵɵelementEnd();
|
|
29563
29631
|
i0.ɵɵelementStart(7, "table", 4)(8, "tbody");
|
|
29564
|
-
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template,
|
|
29632
|
+
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template, 6, 7, "ng-container", 5);
|
|
29565
29633
|
i0.ɵɵpipe(10, "ccdReadFieldsFilter");
|
|
29566
29634
|
i0.ɵɵelementEnd()()();
|
|
29567
29635
|
} if (rf & 2) {
|
|
@@ -29573,7 +29641,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29573
29641
|
}
|
|
29574
29642
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
29575
29643
|
type: Component,
|
|
29576
|
-
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n
|
|
29644
|
+
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
|
|
29577
29645
|
}], null, { caseFields: [{
|
|
29578
29646
|
type: Input
|
|
29579
29647
|
}] }); })();
|
|
@@ -32355,8 +32423,8 @@ i0.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, function () { return [Rea
|
|
|
32355
32423
|
i0.ɵɵsetComponentScope(ReadComplexFieldComponent, function () { return [i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault, ReadComplexFieldRawComponent,
|
|
32356
32424
|
ReadComplexFieldTableComponent,
|
|
32357
32425
|
ReadComplexFieldCollectionTableComponent]; }, []);
|
|
32358
|
-
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i5.NgForOf, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32359
|
-
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i5.NgForOf, i5.NgIf, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32426
|
+
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i5.NgForOf, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32427
|
+
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32360
32428
|
i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, function () { return [i5.NgForOf, i5.NgIf, FieldReadComponent,
|
|
32361
32429
|
ReadCaseLinkFieldComponent]; }, function () { return [i5.KeyValuePipe, IsCompoundPipe, CcdCollectionTableCaseFieldsFilterPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32362
32430
|
i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault,
|
|
@@ -34461,7 +34529,6 @@ class WorkbasketFiltersComponent {
|
|
|
34461
34529
|
}
|
|
34462
34530
|
}
|
|
34463
34531
|
onJurisdictionIdChange() {
|
|
34464
|
-
this.clearStoredWorkbasketFilterValues();
|
|
34465
34532
|
if (this.selected.jurisdiction) {
|
|
34466
34533
|
this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
|
|
34467
34534
|
this.selectedJurisdictionCaseTypes = this.selected.jurisdiction.caseTypes.length > 0
|
|
@@ -34476,7 +34543,7 @@ class WorkbasketFiltersComponent {
|
|
|
34476
34543
|
this.selected.caseState = null;
|
|
34477
34544
|
this.clearWorkbasketInputs();
|
|
34478
34545
|
if (!this.isApplyButtonDisabled()) {
|
|
34479
|
-
this.onCaseTypeIdChange(
|
|
34546
|
+
this.onCaseTypeIdChange();
|
|
34480
34547
|
}
|
|
34481
34548
|
}
|
|
34482
34549
|
else {
|
|
@@ -34484,10 +34551,7 @@ class WorkbasketFiltersComponent {
|
|
|
34484
34551
|
this.resetCaseState();
|
|
34485
34552
|
}
|
|
34486
34553
|
}
|
|
34487
|
-
onCaseTypeIdChange(
|
|
34488
|
-
if (clearStoredValues) {
|
|
34489
|
-
this.clearStoredWorkbasketFilterValues();
|
|
34490
|
-
}
|
|
34554
|
+
onCaseTypeIdChange() {
|
|
34491
34555
|
if (this.selected.caseType) {
|
|
34492
34556
|
this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
|
|
34493
34557
|
this.selected.caseState = null;
|
|
@@ -34583,7 +34647,7 @@ class WorkbasketFiltersComponent {
|
|
|
34583
34647
|
this.selectedJurisdictionCaseTypes = this.selected.jurisdiction.caseTypes;
|
|
34584
34648
|
this.selected.caseType = this.selectCaseType(this.selected, this.selectedJurisdictionCaseTypes, routeSnapshot);
|
|
34585
34649
|
if (this.selected.caseType) {
|
|
34586
|
-
this.onCaseTypeIdChange(
|
|
34650
|
+
this.onCaseTypeIdChange();
|
|
34587
34651
|
this.selected.caseState = this.selectCaseState(this.selected.caseType, routeSnapshot);
|
|
34588
34652
|
}
|
|
34589
34653
|
this.workbasketDefaults = true;
|
|
@@ -34630,9 +34694,6 @@ class WorkbasketFiltersComponent {
|
|
|
34630
34694
|
this.workbasketInputsReady = false;
|
|
34631
34695
|
this.workbasketInputs = [];
|
|
34632
34696
|
}
|
|
34633
|
-
clearStoredWorkbasketFilterValues() {
|
|
34634
|
-
this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
34635
|
-
}
|
|
34636
34697
|
resetCaseState() {
|
|
34637
34698
|
this.defaults.state_id = null;
|
|
34638
34699
|
this.selected.caseState = null;
|