@hmcts/ccd-case-ui-toolkit 7.1.22 → 7.1.23-event-spinner
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/esm2022/lib/shared/components/case-editor/services/cases.service.mjs +1 -1
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +10 -5
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +10 -6
- package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +10 -5
- package/esm2022/lib/shared/services/loading/loading.service.mjs +7 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +29 -11
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +3 -2
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +3 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts +3 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -1
- package/lib/shared/services/loading/loading.service.d.ts +2 -0
- package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7322,6 +7322,7 @@ class RequestOptionsBuilder {
|
|
|
7322
7322
|
class LoadingService {
|
|
7323
7323
|
registered = new Map();
|
|
7324
7324
|
loading = new BehaviorSubject(false);
|
|
7325
|
+
storedSpinner;
|
|
7325
7326
|
get isLoading() {
|
|
7326
7327
|
return this.loading.pipe(distinctUntilChanged());
|
|
7327
7328
|
}
|
|
@@ -7335,6 +7336,11 @@ class LoadingService {
|
|
|
7335
7336
|
this.registered.delete(token);
|
|
7336
7337
|
this.loading.next(this.registered.size > 0);
|
|
7337
7338
|
}
|
|
7339
|
+
unregisterStoredSpinner() {
|
|
7340
|
+
this.registered.delete(this.storedSpinner);
|
|
7341
|
+
this.storedSpinner = null;
|
|
7342
|
+
this.loading.next(this.registered.size > 0);
|
|
7343
|
+
}
|
|
7338
7344
|
generateToken() {
|
|
7339
7345
|
const timestamp = window.performance.now();
|
|
7340
7346
|
return `toolkit-loading-${timestamp}`; // format: [source-library]-[unique incrementing number]
|
|
@@ -32234,13 +32240,14 @@ class EventTriggerResolver {
|
|
|
32234
32240
|
router;
|
|
32235
32241
|
appConfig;
|
|
32236
32242
|
errorNotifier;
|
|
32243
|
+
loadingService;
|
|
32237
32244
|
static PARAM_CASE_ID = 'cid';
|
|
32238
32245
|
static PARAM_EVENT_ID = 'eid';
|
|
32239
32246
|
static IGNORE_WARNING = 'ignoreWarning';
|
|
32240
32247
|
static IGNORE_WARNING_VALUES = ['true', 'false'];
|
|
32241
32248
|
cachedEventTrigger;
|
|
32242
32249
|
cachedProfile;
|
|
32243
|
-
constructor(casesService, alertService, profileService, profileNotifier, router, appConfig, errorNotifier) {
|
|
32250
|
+
constructor(casesService, alertService, profileService, profileNotifier, router, appConfig, errorNotifier, loadingService) {
|
|
32244
32251
|
this.casesService = casesService;
|
|
32245
32252
|
this.alertService = alertService;
|
|
32246
32253
|
this.profileService = profileService;
|
|
@@ -32248,6 +32255,7 @@ class EventTriggerResolver {
|
|
|
32248
32255
|
this.router = router;
|
|
32249
32256
|
this.appConfig = appConfig;
|
|
32250
32257
|
this.errorNotifier = errorNotifier;
|
|
32258
|
+
this.loadingService = loadingService;
|
|
32251
32259
|
}
|
|
32252
32260
|
resolve(route) {
|
|
32253
32261
|
return this.isRootTriggerEventRoute(route) ? this.getAndCacheEventTrigger(route)
|
|
@@ -32278,21 +32286,22 @@ class EventTriggerResolver {
|
|
|
32278
32286
|
}
|
|
32279
32287
|
return this.casesService
|
|
32280
32288
|
.getEventTrigger(caseTypeId, eventTriggerId, cid, ignoreWarning)
|
|
32281
|
-
.pipe(map(eventTrigger => this.cachedEventTrigger = eventTrigger), catchError(error => {
|
|
32289
|
+
.pipe(map((eventTrigger) => this.cachedEventTrigger = eventTrigger), catchError((error) => {
|
|
32282
32290
|
error.details = { eventId: eventTriggerId, ...error.details };
|
|
32283
32291
|
this.alertService.setPreserveAlerts(true);
|
|
32284
32292
|
this.alertService.error(error.message);
|
|
32285
32293
|
this.errorNotifier.announceError(error);
|
|
32286
32294
|
this.router.navigate([`/cases/case-details/${cid}/tasks`]);
|
|
32295
|
+
this.loadingService.unregisterStoredSpinner();
|
|
32287
32296
|
return throwError(error);
|
|
32288
32297
|
})).toPromise();
|
|
32289
32298
|
}
|
|
32290
|
-
static ɵfac = function EventTriggerResolver_Factory(t) { return new (t || EventTriggerResolver)(i0.ɵɵinject(CasesService), i0.ɵɵinject(AlertService), i0.ɵɵinject(ProfileService), i0.ɵɵinject(ProfileNotifier), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(ErrorNotifierService)); };
|
|
32299
|
+
static ɵfac = function EventTriggerResolver_Factory(t) { return new (t || EventTriggerResolver)(i0.ɵɵinject(CasesService), i0.ɵɵinject(AlertService), i0.ɵɵinject(ProfileService), i0.ɵɵinject(ProfileNotifier), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(ErrorNotifierService), i0.ɵɵinject(LoadingService)); };
|
|
32291
32300
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventTriggerResolver, factory: EventTriggerResolver.ɵfac });
|
|
32292
32301
|
}
|
|
32293
32302
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventTriggerResolver, [{
|
|
32294
32303
|
type: Injectable
|
|
32295
|
-
}], () => [{ type: CasesService }, { type: AlertService }, { type: ProfileService }, { type: ProfileNotifier }, { type: i1$1.Router }, { type: AbstractAppConfig }, { type: ErrorNotifierService }], null); })();
|
|
32304
|
+
}], () => [{ type: CasesService }, { type: AlertService }, { type: ProfileService }, { type: ProfileNotifier }, { type: i1$1.Router }, { type: AbstractAppConfig }, { type: ErrorNotifierService }, { type: LoadingService }], null); })();
|
|
32296
32305
|
|
|
32297
32306
|
function CaseEventTriggerComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
32298
32307
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -32318,6 +32327,7 @@ class CaseEventTriggerComponent {
|
|
|
32318
32327
|
caseReferencePipe;
|
|
32319
32328
|
activityPollingService;
|
|
32320
32329
|
sessionStorageService;
|
|
32330
|
+
loadingService;
|
|
32321
32331
|
static EVENT_COMPLETION_MESSAGE = `Case #%CASEREFERENCE% has been updated with event: %NAME%`;
|
|
32322
32332
|
static CALLBACK_FAILED_MESSAGE = ' but the callback service cannot be completed';
|
|
32323
32333
|
BANNER = DisplayMode.BANNER;
|
|
@@ -32326,7 +32336,7 @@ class CaseEventTriggerComponent {
|
|
|
32326
32336
|
activitySubscription;
|
|
32327
32337
|
caseSubscription;
|
|
32328
32338
|
parentUrl;
|
|
32329
|
-
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32339
|
+
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService, loadingService) {
|
|
32330
32340
|
this.ngZone = ngZone;
|
|
32331
32341
|
this.casesService = casesService;
|
|
32332
32342
|
this.caseNotifier = caseNotifier;
|
|
@@ -32336,8 +32346,12 @@ class CaseEventTriggerComponent {
|
|
|
32336
32346
|
this.caseReferencePipe = caseReferencePipe;
|
|
32337
32347
|
this.activityPollingService = activityPollingService;
|
|
32338
32348
|
this.sessionStorageService = sessionStorageService;
|
|
32349
|
+
this.loadingService = loadingService;
|
|
32339
32350
|
}
|
|
32340
32351
|
ngOnInit() {
|
|
32352
|
+
if (this.loadingService.storedSpinner) {
|
|
32353
|
+
this.loadingService.unregisterStoredSpinner();
|
|
32354
|
+
}
|
|
32341
32355
|
if (this.route.snapshot.data.case) {
|
|
32342
32356
|
this.caseDetails = this.route.snapshot.data.case;
|
|
32343
32357
|
}
|
|
@@ -32424,7 +32438,7 @@ class CaseEventTriggerComponent {
|
|
|
32424
32438
|
isDataLoaded() {
|
|
32425
32439
|
return !!(this.eventTrigger && this.caseDetails);
|
|
32426
32440
|
}
|
|
32427
|
-
static ɵfac = function CaseEventTriggerComponent_Factory(t) { return new (t || CaseEventTriggerComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
32441
|
+
static ɵfac = function CaseEventTriggerComponent_Factory(t) { return new (t || CaseEventTriggerComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
32428
32442
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEventTriggerComponent, selectors: [["ccd-case-event-trigger"]], decls: 1, vars: 1, consts: [["class", "screen-990", 4, "ngIf"], [1, "screen-990"], [3, "caseId", "displayMode"], [3, "cancelled", "submitted", "caseDetails", "submit", "validate", "eventTrigger"]], template: function CaseEventTriggerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32429
32443
|
i0.ɵɵtemplate(0, CaseEventTriggerComponent_div_0_Template, 3, 6, "div", 0);
|
|
32430
32444
|
} if (rf & 2) {
|
|
@@ -32434,7 +32448,7 @@ class CaseEventTriggerComponent {
|
|
|
32434
32448
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEventTriggerComponent, [{
|
|
32435
32449
|
type: Component,
|
|
32436
32450
|
args: [{ selector: 'ccd-case-event-trigger', template: "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n <ccd-case-edit [caseDetails]=\"caseDetails\"\n [submit]=\"submit()\"\n [validate]=\"validate()\"\n [eventTrigger]=\"eventTrigger\"\n (cancelled)=\"cancel()\"\n (submitted)=\"submitted($event)\"></ccd-case-edit>\n</div>\n" }]
|
|
32437
|
-
}], () => [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }, { type: SessionStorageService }], null); })();
|
|
32451
|
+
}], () => [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }, { type: SessionStorageService }, { type: LoadingService }], null); })();
|
|
32438
32452
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventTriggerComponent, { className: "CaseEventTriggerComponent", filePath: "lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.ts", lineNumber: 14 }); })();
|
|
32439
32453
|
|
|
32440
32454
|
function CaseViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -33098,6 +33112,7 @@ class CaseFullAccessViewComponent {
|
|
|
33098
33112
|
crf;
|
|
33099
33113
|
sessionStorageService;
|
|
33100
33114
|
rpxTranslationPipe;
|
|
33115
|
+
loadingService;
|
|
33101
33116
|
static ORIGIN_QUERY_PARAM = 'origin';
|
|
33102
33117
|
static TRIGGER_TEXT_START = 'Go';
|
|
33103
33118
|
static TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
@@ -33134,7 +33149,7 @@ class CaseFullAccessViewComponent {
|
|
|
33134
33149
|
eventId;
|
|
33135
33150
|
callbackErrorsSubject;
|
|
33136
33151
|
tabGroup;
|
|
33137
|
-
constructor(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, rpxTranslationPipe) {
|
|
33152
|
+
constructor(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, rpxTranslationPipe, loadingService) {
|
|
33138
33153
|
this.ngZone = ngZone;
|
|
33139
33154
|
this.route = route;
|
|
33140
33155
|
this.router = router;
|
|
@@ -33150,6 +33165,7 @@ class CaseFullAccessViewComponent {
|
|
|
33150
33165
|
this.crf = crf;
|
|
33151
33166
|
this.sessionStorageService = sessionStorageService;
|
|
33152
33167
|
this.rpxTranslationPipe = rpxTranslationPipe;
|
|
33168
|
+
this.loadingService = loadingService;
|
|
33153
33169
|
}
|
|
33154
33170
|
ngOnInit() {
|
|
33155
33171
|
this.callbackErrorsSubject = this.errorNotifierService.errorSource.pipe(filter((x) => {
|
|
@@ -33231,6 +33247,8 @@ class CaseFullAccessViewComponent {
|
|
|
33231
33247
|
this.triggerText = CaseFullAccessViewComponent.TRIGGER_TEXT_START;
|
|
33232
33248
|
}
|
|
33233
33249
|
async applyTrigger(trigger) {
|
|
33250
|
+
const spinner = this.loadingService.register();
|
|
33251
|
+
this.loadingService.storedSpinner = spinner;
|
|
33234
33252
|
this.errorNotifierService.announceError(null);
|
|
33235
33253
|
const theQueryParams = {};
|
|
33236
33254
|
if (this.ignoreWarning) {
|
|
@@ -33481,7 +33499,7 @@ class CaseFullAccessViewComponent {
|
|
|
33481
33499
|
this.errorNotifierService.announceError(null);
|
|
33482
33500
|
this.alertService.clear();
|
|
33483
33501
|
}
|
|
33484
|
-
static ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
|
|
33502
|
+
static ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
33485
33503
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
33486
33504
|
i0.ɵɵviewQuery(_c0$b, 5);
|
|
33487
33505
|
} if (rf & 2) {
|
|
@@ -33526,7 +33544,7 @@ class CaseFullAccessViewComponent {
|
|
|
33526
33544
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
33527
33545
|
type: Component,
|
|
33528
33546
|
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
33529
|
-
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }], { hasPrint: [{
|
|
33547
|
+
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }], { hasPrint: [{
|
|
33530
33548
|
type: Input
|
|
33531
33549
|
}], hasEventSelector: [{
|
|
33532
33550
|
type: Input
|
|
@@ -33540,7 +33558,7 @@ class CaseFullAccessViewComponent {
|
|
|
33540
33558
|
type: ViewChild,
|
|
33541
33559
|
args: ['tabGroup', { static: false }]
|
|
33542
33560
|
}] }); })();
|
|
33543
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber:
|
|
33561
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 44 }); })();
|
|
33544
33562
|
|
|
33545
33563
|
class PrintUrlPipe {
|
|
33546
33564
|
appConfig;
|