@csmart/ngc-smart-core 1.18.22 → 1.18.26
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/ngc-smart-core.module.mjs +13 -5
- package/esm2022/lib/smart-auth/smart-access-control.directive.mjs +4 -4
- package/esm2022/lib/smart-auth/smart-auth.service.mjs +4 -4
- package/esm2022/lib/smart-auth/smart-authorization-guard.service.mjs +4 -4
- package/esm2022/lib/smart-auth/smart-error.component.mjs +4 -4
- package/esm2022/lib/smart-auth/smart-login-staff-resolver.service.mjs +4 -4
- package/esm2022/lib/smart-auth/smart-selected-offender-resolver.service.mjs +4 -4
- package/esm2022/lib/smart-navbar/smart-navbar.component.mjs +4 -4
- package/esm2022/lib/smart-navbar/smart-navbar.service.mjs +4 -4
- package/esm2022/lib/smart-offender-header/smart-offender-header.component.mjs +32 -8
- package/esm2022/lib/smart-offender-header/smart-offender-header.service.mjs +4 -4
- package/esm2022/lib/smart-offender-header/smart-offender-redirect.guard.mjs +4 -4
- package/esm2022/lib/smart-staff-offender-options/smart-staff-offender-options-resolver.service.mjs +4 -4
- package/esm2022/lib/smart-staff-offender-options/smart-staff-offender-options.component.mjs +4 -4
- package/esm2022/lib/smart-staff-offender-options/smart-staff-offender-options.service.mjs +4 -4
- package/esm2022/lib/smart-storage/xdm.service.mjs +4 -4
- package/esm2022/lib/user-settings/user-settings.service.mjs +43 -43
- package/fesm2022/csmart-ngc-smart-core.mjs +126 -95
- package/fesm2022/csmart-ngc-smart-core.mjs.map +1 -1
- package/lib/ngc-smart-core.module.d.ts +6 -4
- package/lib/smart-offender-header/smart-offender-header.component.d.ts +7 -2
- package/package.json +1 -1
|
@@ -6,8 +6,11 @@ import * as i5$2 from '@angular/material/button';
|
|
|
6
6
|
import { MatButtonModule } from '@angular/material/button';
|
|
7
7
|
import * as i5$1 from '@angular/material/tabs';
|
|
8
8
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
9
|
-
import * as i7 from '@angular/material/select';
|
|
10
9
|
import { MatSelectModule } from '@angular/material/select';
|
|
10
|
+
import * as i8 from '@angular/material/autocomplete';
|
|
11
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
12
|
+
import * as i9 from '@angular/material/input';
|
|
13
|
+
import { MatInputModule } from '@angular/material/input';
|
|
11
14
|
import * as i7$1 from '@angular/material/checkbox';
|
|
12
15
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
13
16
|
import * as i6$1 from '@angular/material/card';
|
|
@@ -19,14 +22,14 @@ import { MatMenuModule } from '@angular/material/menu';
|
|
|
19
22
|
import * as i1 from '@angular/common/http';
|
|
20
23
|
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
21
24
|
import { Subject, from, of, lastValueFrom, throwError, EMPTY, concat } from 'rxjs';
|
|
22
|
-
import { map, switchMap, catchError, take, mergeMap, retryWhen, delay } from 'rxjs/operators';
|
|
25
|
+
import { map, switchMap, catchError, startWith, take, mergeMap, retryWhen, delay } from 'rxjs/operators';
|
|
23
26
|
import { connectToChild } from 'penpal';
|
|
24
27
|
import * as i2 from '@azure/msal-angular';
|
|
25
28
|
import * as i8$1 from '@angular/forms';
|
|
26
29
|
import { UntypedFormControl, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
27
30
|
import * as i2$1 from '@angular/router';
|
|
28
31
|
import * as i6 from '@angular/material/form-field';
|
|
29
|
-
import * as
|
|
32
|
+
import * as i7 from '@angular/material/core';
|
|
30
33
|
|
|
31
34
|
class Permission {
|
|
32
35
|
}
|
|
@@ -230,10 +233,10 @@ class XdmService {
|
|
|
230
233
|
throw error;
|
|
231
234
|
}));
|
|
232
235
|
}
|
|
233
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
234
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
236
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: XdmService, deps: [{ token: DOCUMENT }, { token: SMART_WEB_STORAGE_LISTENER_URL }, { token: i1.HttpClient }, { token: SMART_DATA_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
237
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: XdmService, providedIn: 'root' }); }
|
|
235
238
|
}
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: XdmService, decorators: [{
|
|
237
240
|
type: Injectable,
|
|
238
241
|
args: [{
|
|
239
242
|
providedIn: 'root',
|
|
@@ -274,10 +277,10 @@ class SmartOffenderHeaderService {
|
|
|
274
277
|
return data.filterOffenderList.data;
|
|
275
278
|
}));
|
|
276
279
|
}
|
|
277
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
278
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
280
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderHeaderService, deps: [{ token: SMART_DATA_SERVICE_URL }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
281
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderHeaderService }); }
|
|
279
282
|
}
|
|
280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderHeaderService, decorators: [{
|
|
281
284
|
type: Injectable
|
|
282
285
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
283
286
|
type: Inject,
|
|
@@ -292,6 +295,7 @@ class SmartOffenderHeaderComponent {
|
|
|
292
295
|
this.smartOffenderHeaderService = smartOffenderHeaderService;
|
|
293
296
|
this.router = router;
|
|
294
297
|
this.selectedOffenderControl$ = new UntypedFormControl();
|
|
298
|
+
this.offenderFilterControl = new UntypedFormControl('');
|
|
295
299
|
}
|
|
296
300
|
ngOnInit() {
|
|
297
301
|
// this.isAuthenticated = this.authnService.getAccount() ? true : false;
|
|
@@ -324,6 +328,7 @@ class SmartOffenderHeaderComponent {
|
|
|
324
328
|
}
|
|
325
329
|
});
|
|
326
330
|
this.selectedOffenderControl$.valueChanges.subscribe((o) => this.onOffenderSelected(o));
|
|
331
|
+
this.initializeFilteredList();
|
|
327
332
|
this.router.routeReuseStrategy.shouldReuseRoute = () => {
|
|
328
333
|
return false;
|
|
329
334
|
};
|
|
@@ -411,12 +416,32 @@ class SmartOffenderHeaderComponent {
|
|
|
411
416
|
return false;
|
|
412
417
|
}
|
|
413
418
|
}
|
|
414
|
-
|
|
415
|
-
|
|
419
|
+
initializeFilteredList() {
|
|
420
|
+
this.filteredOffenderList = this.offenderFilterControl.valueChanges.pipe(startWith(''), map(value => {
|
|
421
|
+
const filterValue = typeof value === 'string' ? value : '';
|
|
422
|
+
return this.filterOffenders(filterValue);
|
|
423
|
+
}));
|
|
424
|
+
}
|
|
425
|
+
filterOffenders(value) {
|
|
426
|
+
if (!this.offenderQueryList || this.offenderQueryList.length === 0) {
|
|
427
|
+
return [];
|
|
428
|
+
}
|
|
429
|
+
if (!value || value.trim() === '') {
|
|
430
|
+
return this.offenderQueryList;
|
|
431
|
+
}
|
|
432
|
+
const filterValue = value.toLowerCase().trim();
|
|
433
|
+
return this.offenderQueryList.filter(offender => offender.name?.toLowerCase().includes(filterValue) ||
|
|
434
|
+
offender.offenderId?.toString().includes(filterValue));
|
|
435
|
+
}
|
|
436
|
+
displayOffenderFn(offender) {
|
|
437
|
+
return offender ? `${offender.name} (${offender.offenderId})` : '';
|
|
438
|
+
}
|
|
439
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderHeaderComponent, deps: [{ token: XdmService }, { token: i2.MsalService }, { token: SmartOffenderHeaderService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
440
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SmartOffenderHeaderComponent, selector: "app-smart-offender-header", ngImport: i0, template: "<div\r\n class=\"offender-header-container\"\r\n *ngIf=\"selectedOffender && isAuthenticated\">\r\n <div class=\"offender-header-name-item\">\r\n <mat-form-field class=\"switch-offender\" appearance=\"fill\">\r\n <mat-label>Switch Offender</mat-label>\r\n <input type=\"text\"\r\n matInput\r\n [formControl]=\"offenderFilterControl\"\r\n [matAutocomplete]=\"auto\"\r\n placeholder=\"Type to search...\">\r\n <mat-autocomplete #auto=\"matAutocomplete\" \r\n [displayWith]=\"displayOffenderFn.bind(this)\"\r\n (optionSelected)=\"onOffenderSelected($event.option.value)\">\r\n <mat-option\r\n *ngFor=\"let offender of filteredOffenderList | async\"\r\n [value]=\"offender\">\r\n {{ offender?.name}} ({{offender?.offenderId}})\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <div class=\"offender-header-id-item\">\r\n <span class=\"item-label\">PDID:</span> {{ selectedOffender.pdId }}\r\n </div>\r\n <div class=\"offender-header-id-item\">\r\n <span class=\"item-label\">CSOSA ID:</span>\r\n {{ selectedOffender.offenderId }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".offender-header-container{display:grid;grid-template-columns:2fr 1fr;grid-column-gap:20px;width:100%;margin:4px;background-color:#eae9e9;font-size:14px;font-weight:500;padding-top:8px;justify-items:end}.offender-header-name-item{width:50%}.offender-header-id-item{text-align:left;display:grid;grid-template-columns:80px 80px;margin-top:8px}.switch-offender{width:100%!important}@media only screen and (max-width: 740px){.offender-header-container{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:1fr;align-items:center;background-color:#eae9e9;font-size:14px;font-weight:500;height:100%;margin:4px;padding-left:16px;justify-items:start}.offender-header-name-item{text-align:left}}\n"], dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i8$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i8$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] }); }
|
|
416
441
|
}
|
|
417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderHeaderComponent, decorators: [{
|
|
418
443
|
type: Component,
|
|
419
|
-
args: [{ selector: 'app-smart-offender-header', template: "<div\r\n class=\"offender-header-container\"\r\n *ngIf=\"selectedOffender && isAuthenticated\">\r\n <div class=\"offender-header-name-item\">\r\n <mat-form-field class=\"switch-offender\" appearance=\"fill\">\r\n <mat-label>Switch Offender</mat-label>\r\n <mat-
|
|
444
|
+
args: [{ selector: 'app-smart-offender-header', template: "<div\r\n class=\"offender-header-container\"\r\n *ngIf=\"selectedOffender && isAuthenticated\">\r\n <div class=\"offender-header-name-item\">\r\n <mat-form-field class=\"switch-offender\" appearance=\"fill\">\r\n <mat-label>Switch Offender</mat-label>\r\n <input type=\"text\"\r\n matInput\r\n [formControl]=\"offenderFilterControl\"\r\n [matAutocomplete]=\"auto\"\r\n placeholder=\"Type to search...\">\r\n <mat-autocomplete #auto=\"matAutocomplete\" \r\n [displayWith]=\"displayOffenderFn.bind(this)\"\r\n (optionSelected)=\"onOffenderSelected($event.option.value)\">\r\n <mat-option\r\n *ngFor=\"let offender of filteredOffenderList | async\"\r\n [value]=\"offender\">\r\n {{ offender?.name}} ({{offender?.offenderId}})\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <div class=\"offender-header-id-item\">\r\n <span class=\"item-label\">PDID:</span> {{ selectedOffender.pdId }}\r\n </div>\r\n <div class=\"offender-header-id-item\">\r\n <span class=\"item-label\">CSOSA ID:</span>\r\n {{ selectedOffender.offenderId }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".offender-header-container{display:grid;grid-template-columns:2fr 1fr;grid-column-gap:20px;width:100%;margin:4px;background-color:#eae9e9;font-size:14px;font-weight:500;padding-top:8px;justify-items:end}.offender-header-name-item{width:50%}.offender-header-id-item{text-align:left;display:grid;grid-template-columns:80px 80px;margin-top:8px}.switch-offender{width:100%!important}@media only screen and (max-width: 740px){.offender-header-container{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:1fr;align-items:center;background-color:#eae9e9;font-size:14px;font-weight:500;height:100%;margin:4px;padding-left:16px;justify-items:start}.offender-header-name-item{text-align:left}}\n"] }]
|
|
420
445
|
}], ctorParameters: () => [{ type: XdmService }, { type: i2.MsalService }, { type: SmartOffenderHeaderService }, { type: i2$1.Router }] });
|
|
421
446
|
|
|
422
447
|
class SmartNavbarService {
|
|
@@ -470,10 +495,10 @@ class SmartNavbarService {
|
|
|
470
495
|
return data.findAppModules.data;
|
|
471
496
|
}));
|
|
472
497
|
}
|
|
473
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
474
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
498
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartNavbarService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
499
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartNavbarService }); }
|
|
475
500
|
}
|
|
476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartNavbarService, decorators: [{
|
|
477
502
|
type: Injectable
|
|
478
503
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
479
504
|
|
|
@@ -646,10 +671,10 @@ class SmartNavbarComponent {
|
|
|
646
671
|
return false;
|
|
647
672
|
}
|
|
648
673
|
}
|
|
649
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
650
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.
|
|
674
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartNavbarComponent, deps: [{ token: SmartNavbarService }, { token: XdmService }, { token: i2.MsalService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
675
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SmartNavbarComponent, selector: "app-smart-navbar", inputs: { serviceApiUrl: "serviceApiUrl", appModuleId: "appModuleId" }, viewQueries: [{ propertyName: "tabGroup", first: true, predicate: ["tabs"], descendants: true }], ngImport: i0, template: "\r\n<nav mat-tab-nav-bar [tabPanel]=\"tabPanel\">\r\n @for (item of renderItems; track $index) {\r\n @if (item === 'ASSESSMENTS') {\r\n @if (showAssessmentsMenu) {\r\n <a\r\n mat-tab-link\r\n class=\"smart-navbar-item assessments-menu-trigger\"\r\n [matMenuTriggerFor]=\"assessmentsMenu\"\r\n [active]=\"isAssessmentActive\">\r\n Assessments ▾\r\n </a>\r\n <mat-menu #assessmentsMenu=\"matMenu\">\r\n @for (config of assessmentConfigs; track config.appModuleId) {\r\n @if (showTab(config)) {\r\n <a\r\n mat-menu-item\r\n (click)=\"onAssessmentItemClick(config)\"\r\n [href]=\"getAppModuleUrl(config)\">{{ config.name }}</a>\r\n }\r\n }\r\n </mat-menu>\r\n }\r\n } @else {\r\n @if (showTab(asConfig(item))) {\r\n <a\r\n mat-tab-link\r\n class=\"smart-navbar-item\"\r\n (click)=\"selectedNavbarConfig = asConfig(item)\"\r\n [active]=\"selectedNavbarConfig !== null && selectedNavbarConfig?.appModuleId === asConfig(item)?.appModuleId\"\r\n [href]=\"getAppModuleUrl(asConfig(item))\">{{ asConfig(item).name }}</a>\r\n }\r\n }\r\n }\r\n</nav>\r\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\r\n", styles: [".smart-navbar-container{display:flex;flex-wrap:wrap;flex-direction:column}.smart-navbar-item{font-size:1.2rem;line-height:1.2rem;padding:.5rem;background-color:var(--primary-color, #9fa8da);text-decoration-line:none;display:block;text-align:left;border-radius:.3rem;margin:.1rem}.smart-navbar-last-item{margin-left:auto}.main-menu-active,.mat-mdc-tab.mat-mdc-focus-indicato.mdc-tab--active{border-bottom:3px solid darkblue!important;border-radius:0!important}.nav-tab-group.mat-primary .mat-ink-bar{background-color:inherit!important}.mat-mdc-tab-link{min-width:16px!important}.mat-mdc-tab .mdc-tab__content{pointer-events:none!important}@media only screen and (min-width: 768px){.smart-navbar-container{flex-direction:row}.smart-navbar-item{text-align:center}.smart-navbar-toggle{display:none}}@media only screen and (max-width: 767px){#nav{position:fixed;top:0;bottom:0;width:300px;left:-340px;transition:transform .3s ease-in-out}#nav:target{transform:translate(340px)}}.mat-tab-labels{display:flex!important;justify-content:flex-start!important}.mat-tab-label,.mat-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:0 5px!important;justify-content:flex-start!important;font-weight:700}.assessments-menu-trigger{cursor:pointer}a.mat-mdc-menu-item{text-decoration:none;color:inherit}\n"], dependencies: [{ kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: i5$1.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i5$1.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i5$1.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
651
676
|
}
|
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartNavbarComponent, decorators: [{
|
|
653
678
|
type: Component,
|
|
654
679
|
args: [{ selector: 'app-smart-navbar', encapsulation: ViewEncapsulation.None, template: "\r\n<nav mat-tab-nav-bar [tabPanel]=\"tabPanel\">\r\n @for (item of renderItems; track $index) {\r\n @if (item === 'ASSESSMENTS') {\r\n @if (showAssessmentsMenu) {\r\n <a\r\n mat-tab-link\r\n class=\"smart-navbar-item assessments-menu-trigger\"\r\n [matMenuTriggerFor]=\"assessmentsMenu\"\r\n [active]=\"isAssessmentActive\">\r\n Assessments ▾\r\n </a>\r\n <mat-menu #assessmentsMenu=\"matMenu\">\r\n @for (config of assessmentConfigs; track config.appModuleId) {\r\n @if (showTab(config)) {\r\n <a\r\n mat-menu-item\r\n (click)=\"onAssessmentItemClick(config)\"\r\n [href]=\"getAppModuleUrl(config)\">{{ config.name }}</a>\r\n }\r\n }\r\n </mat-menu>\r\n }\r\n } @else {\r\n @if (showTab(asConfig(item))) {\r\n <a\r\n mat-tab-link\r\n class=\"smart-navbar-item\"\r\n (click)=\"selectedNavbarConfig = asConfig(item)\"\r\n [active]=\"selectedNavbarConfig !== null && selectedNavbarConfig?.appModuleId === asConfig(item)?.appModuleId\"\r\n [href]=\"getAppModuleUrl(asConfig(item))\">{{ asConfig(item).name }}</a>\r\n }\r\n }\r\n }\r\n</nav>\r\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\r\n", styles: [".smart-navbar-container{display:flex;flex-wrap:wrap;flex-direction:column}.smart-navbar-item{font-size:1.2rem;line-height:1.2rem;padding:.5rem;background-color:var(--primary-color, #9fa8da);text-decoration-line:none;display:block;text-align:left;border-radius:.3rem;margin:.1rem}.smart-navbar-last-item{margin-left:auto}.main-menu-active,.mat-mdc-tab.mat-mdc-focus-indicato.mdc-tab--active{border-bottom:3px solid darkblue!important;border-radius:0!important}.nav-tab-group.mat-primary .mat-ink-bar{background-color:inherit!important}.mat-mdc-tab-link{min-width:16px!important}.mat-mdc-tab .mdc-tab__content{pointer-events:none!important}@media only screen and (min-width: 768px){.smart-navbar-container{flex-direction:row}.smart-navbar-item{text-align:center}.smart-navbar-toggle{display:none}}@media only screen and (max-width: 767px){#nav{position:fixed;top:0;bottom:0;width:300px;left:-340px;transition:transform .3s ease-in-out}#nav:target{transform:translate(340px)}}.mat-tab-labels{display:flex!important;justify-content:flex-start!important}.mat-tab-label,.mat-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:0 5px!important;justify-content:flex-start!important;font-weight:700}.assessments-menu-trigger{cursor:pointer}a.mat-mdc-menu-item{text-decoration:none;color:inherit}\n"] }]
|
|
655
680
|
}], ctorParameters: () => [{ type: SmartNavbarService }, { type: XdmService }, { type: i2.MsalService }], propDecorators: { serviceApiUrl: [{
|
|
@@ -678,10 +703,10 @@ class SmartErrorComponent {
|
|
|
678
703
|
portal() {
|
|
679
704
|
window.location.href = this.smartWebPortalUrl;
|
|
680
705
|
}
|
|
681
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
682
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
706
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartErrorComponent, deps: [{ token: i2.MsalService }, { token: i2$1.ActivatedRoute }, { token: SMART_WEB_PORTAL_URL }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
707
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SmartErrorComponent, selector: "app-smart-error", ngImport: i0, template: "<div>\r\n <h2>\r\n {{ message }}\r\n </h2>\r\n <p>\r\n Please contact help desk if needed.\r\n </p>\r\n <div>\r\n <button (click)=\"logout()\" *ngIf=\"type === 'staff'\">OK</button>\r\n <button (click)=\"portal()\" *ngIf=\"type === 'offender'\">OK</button>\r\n </div>\r\n</div>\r\n", styles: ["div{text-align:center}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
683
708
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartErrorComponent, decorators: [{
|
|
685
710
|
type: Component,
|
|
686
711
|
args: [{ selector: 'app-smart-error', template: "<div>\r\n <h2>\r\n {{ message }}\r\n </h2>\r\n <p>\r\n Please contact help desk if needed.\r\n </p>\r\n <div>\r\n <button (click)=\"logout()\" *ngIf=\"type === 'staff'\">OK</button>\r\n <button (click)=\"portal()\" *ngIf=\"type === 'offender'\">OK</button>\r\n </div>\r\n</div>\r\n", styles: ["div{text-align:center}\n"] }]
|
|
687
712
|
}], ctorParameters: () => [{ type: i2.MsalService }, { type: i2$1.ActivatedRoute }, { type: undefined, decorators: [{
|
|
@@ -803,10 +828,10 @@ class SmartStaffOffenderOptionsService {
|
|
|
803
828
|
}
|
|
804
829
|
return result;
|
|
805
830
|
}
|
|
806
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
807
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
831
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsService, deps: [{ token: i1.HttpClient }, { token: i2$2.MatSnackBar }, { token: SMART_DATA_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
832
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsService }); }
|
|
808
833
|
}
|
|
809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsService, decorators: [{
|
|
810
835
|
type: Injectable
|
|
811
836
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MatSnackBar }, { type: undefined, decorators: [{
|
|
812
837
|
type: Inject,
|
|
@@ -874,10 +899,10 @@ class SmartStaffOffenderOptionsComponent {
|
|
|
874
899
|
onClear() {
|
|
875
900
|
this.frmGroup.reset();
|
|
876
901
|
}
|
|
877
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
878
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
902
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsComponent, deps: [{ token: i2$1.ActivatedRoute }, { token: SmartStaffOffenderOptionsService }, { token: XdmService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
903
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SmartStaffOffenderOptionsComponent, selector: "lib-smart-staff-offender-options", ngImport: i0, template: "<form class=\"main-form\" [formGroup]=\"frmGroup\">\r\n <mat-card appearance=\"outlined\" role=\"group\">\r\n <mat-card-content>\r\n <div formGroupName=\"offenderListOptions\">\r\n <div style=\"float:left;\">\r\n <div *ngFor=\"let offenderListOption of offenderListOptions; let i = index\">\r\n <mat-checkbox *ngIf=\"i%2!=0\" color=\"primary\" formControlName=\"{{offenderListOption.offenderListOptionId}}\">\r\n {{offenderListOption.name}}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n <div>\r\n <div *ngFor=\"let offenderListOption of offenderListOptions; let i = index\" >\r\n <mat-checkbox *ngIf=\"i%2==0\" color=\"primary\" formControlName=\"{{offenderListOption.offenderListOptionId}}\">\r\n {{offenderListOption.name}}\r\n </mat-checkbox> \r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n <div align=\"center\">\r\n <button mat-stroked-button (click)=\"onSave()\">Save</button>\r\n \r\n <button mat-stroked-button (click)=\"onClear()\">Clear</button>\r\n </div>\r\n </mat-card>\r\n </form>\r\n ", styles: [""], dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i6$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i8$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i8$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i8$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }] }); }
|
|
879
904
|
}
|
|
880
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsComponent, decorators: [{
|
|
881
906
|
type: Component,
|
|
882
907
|
args: [{ selector: 'lib-smart-staff-offender-options', template: "<form class=\"main-form\" [formGroup]=\"frmGroup\">\r\n <mat-card appearance=\"outlined\" role=\"group\">\r\n <mat-card-content>\r\n <div formGroupName=\"offenderListOptions\">\r\n <div style=\"float:left;\">\r\n <div *ngFor=\"let offenderListOption of offenderListOptions; let i = index\">\r\n <mat-checkbox *ngIf=\"i%2!=0\" color=\"primary\" formControlName=\"{{offenderListOption.offenderListOptionId}}\">\r\n {{offenderListOption.name}}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n <div>\r\n <div *ngFor=\"let offenderListOption of offenderListOptions; let i = index\" >\r\n <mat-checkbox *ngIf=\"i%2==0\" color=\"primary\" formControlName=\"{{offenderListOption.offenderListOptionId}}\">\r\n {{offenderListOption.name}}\r\n </mat-checkbox> \r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n <div align=\"center\">\r\n <button mat-stroked-button (click)=\"onSave()\">Save</button>\r\n \r\n <button mat-stroked-button (click)=\"onClear()\">Clear</button>\r\n </div>\r\n </mat-card>\r\n </form>\r\n " }]
|
|
883
908
|
}], ctorParameters: () => [{ type: i2$1.ActivatedRoute }, { type: SmartStaffOffenderOptionsService }, { type: XdmService }] });
|
|
@@ -1343,10 +1368,10 @@ class SmartAuthService {
|
|
|
1343
1368
|
return throwError(error);
|
|
1344
1369
|
}));
|
|
1345
1370
|
}
|
|
1346
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1347
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1371
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthService, deps: [{ token: i1.HttpClient }, { token: i2.MsalService }, { token: XdmService }, { token: SMART_DATA_SERVICE_URL }, { token: SMART_DOMAIN_FORMAT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1372
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthService, providedIn: 'root' }); }
|
|
1348
1373
|
}
|
|
1349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthService, decorators: [{
|
|
1350
1375
|
type: Injectable,
|
|
1351
1376
|
args: [{
|
|
1352
1377
|
providedIn: 'root',
|
|
@@ -1382,10 +1407,10 @@ class SmartAccessControlDirective {
|
|
|
1382
1407
|
? 'block'
|
|
1383
1408
|
: 'none';
|
|
1384
1409
|
}
|
|
1385
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1386
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.
|
|
1410
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAccessControlDirective, deps: [{ token: i0.ElementRef }, { token: SmartAuthService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1411
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SmartAccessControlDirective, selector: "[accessControl]", inputs: { accessControlConfig: "accessControlConfig" }, ngImport: i0 }); }
|
|
1387
1412
|
}
|
|
1388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAccessControlDirective, decorators: [{
|
|
1389
1414
|
type: Directive,
|
|
1390
1415
|
args: [{
|
|
1391
1416
|
selector: '[accessControl]',
|
|
@@ -1416,10 +1441,10 @@ class SmartAuthorizationGuard {
|
|
|
1416
1441
|
return of(false);
|
|
1417
1442
|
}));
|
|
1418
1443
|
}
|
|
1419
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1420
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1444
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthorizationGuard, deps: [{ token: SmartAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1445
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthorizationGuard }); }
|
|
1421
1446
|
}
|
|
1422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartAuthorizationGuard, decorators: [{
|
|
1423
1448
|
type: Injectable
|
|
1424
1449
|
}], ctorParameters: () => [{ type: SmartAuthService }] });
|
|
1425
1450
|
|
|
@@ -1436,10 +1461,10 @@ class SmartOffenderRedirectGuard {
|
|
|
1436
1461
|
}
|
|
1437
1462
|
return true;
|
|
1438
1463
|
}
|
|
1439
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1440
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1464
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderRedirectGuard, deps: [{ token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1465
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderRedirectGuard, providedIn: 'root' }); }
|
|
1441
1466
|
}
|
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartOffenderRedirectGuard, decorators: [{
|
|
1443
1468
|
type: Injectable,
|
|
1444
1469
|
args: [{
|
|
1445
1470
|
providedIn: 'root'
|
|
@@ -1447,8 +1472,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImpor
|
|
|
1447
1472
|
}], ctorParameters: () => [{ type: i2$1.Router }] });
|
|
1448
1473
|
|
|
1449
1474
|
class NgcSmartCoreModule {
|
|
1450
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1451
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
1475
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NgcSmartCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1476
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: NgcSmartCoreModule, declarations: [SmartOffenderHeaderComponent,
|
|
1452
1477
|
SmartNavbarComponent,
|
|
1453
1478
|
SmartErrorComponent,
|
|
1454
1479
|
SmartStaffOffenderOptionsComponent,
|
|
@@ -1458,6 +1483,8 @@ class NgcSmartCoreModule {
|
|
|
1458
1483
|
MatMenuModule,
|
|
1459
1484
|
MatTabsModule,
|
|
1460
1485
|
MatSelectModule,
|
|
1486
|
+
MatAutocompleteModule,
|
|
1487
|
+
MatInputModule,
|
|
1461
1488
|
MatCardModule,
|
|
1462
1489
|
MatCheckboxModule,
|
|
1463
1490
|
ReactiveFormsModule], exports: [SmartOffenderHeaderComponent,
|
|
@@ -1465,7 +1492,7 @@ class NgcSmartCoreModule {
|
|
|
1465
1492
|
SmartErrorComponent,
|
|
1466
1493
|
SmartStaffOffenderOptionsComponent,
|
|
1467
1494
|
SmartAccessControlDirective] }); }
|
|
1468
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
1495
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NgcSmartCoreModule, providers: [
|
|
1469
1496
|
SmartNavbarService,
|
|
1470
1497
|
SmartOffenderHeaderService,
|
|
1471
1498
|
SmartStaffOffenderOptionsService,
|
|
@@ -1478,11 +1505,13 @@ class NgcSmartCoreModule {
|
|
|
1478
1505
|
MatMenuModule,
|
|
1479
1506
|
MatTabsModule,
|
|
1480
1507
|
MatSelectModule,
|
|
1508
|
+
MatAutocompleteModule,
|
|
1509
|
+
MatInputModule,
|
|
1481
1510
|
MatCardModule,
|
|
1482
1511
|
MatCheckboxModule,
|
|
1483
1512
|
ReactiveFormsModule] }); }
|
|
1484
1513
|
}
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NgcSmartCoreModule, decorators: [{
|
|
1486
1515
|
type: NgModule,
|
|
1487
1516
|
args: [{
|
|
1488
1517
|
declarations: [
|
|
@@ -1499,6 +1528,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImpor
|
|
|
1499
1528
|
MatMenuModule,
|
|
1500
1529
|
MatTabsModule,
|
|
1501
1530
|
MatSelectModule,
|
|
1531
|
+
MatAutocompleteModule,
|
|
1532
|
+
MatInputModule,
|
|
1502
1533
|
MatCardModule,
|
|
1503
1534
|
MatCheckboxModule,
|
|
1504
1535
|
ReactiveFormsModule,
|
|
@@ -1562,10 +1593,10 @@ class LoginStaffResolverService {
|
|
|
1562
1593
|
return EMPTY;
|
|
1563
1594
|
}));
|
|
1564
1595
|
}
|
|
1565
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1566
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1596
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoginStaffResolverService, deps: [{ token: SmartAuthService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1597
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoginStaffResolverService, providedIn: 'root' }); }
|
|
1567
1598
|
}
|
|
1568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoginStaffResolverService, decorators: [{
|
|
1569
1600
|
type: Injectable,
|
|
1570
1601
|
args: [{
|
|
1571
1602
|
providedIn: 'root',
|
|
@@ -1614,10 +1645,10 @@ class SelectedOffenderResolverService {
|
|
|
1614
1645
|
return EMPTY;
|
|
1615
1646
|
}));
|
|
1616
1647
|
}
|
|
1617
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1618
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1648
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SelectedOffenderResolverService, deps: [{ token: XdmService }, { token: i0.NgZone }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1649
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SelectedOffenderResolverService, providedIn: 'root' }); }
|
|
1619
1650
|
}
|
|
1620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SelectedOffenderResolverService, decorators: [{
|
|
1621
1652
|
type: Injectable,
|
|
1622
1653
|
args: [{
|
|
1623
1654
|
providedIn: 'root',
|
|
@@ -1634,10 +1665,10 @@ class SmartStaffOffenderOptionsResolverService {
|
|
|
1634
1665
|
return data;
|
|
1635
1666
|
}));
|
|
1636
1667
|
}
|
|
1637
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1638
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1668
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsResolverService, deps: [{ token: SmartStaffOffenderOptionsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1669
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsResolverService, providedIn: 'root' }); }
|
|
1639
1670
|
}
|
|
1640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartStaffOffenderOptionsResolverService, decorators: [{
|
|
1641
1672
|
type: Injectable,
|
|
1642
1673
|
args: [{
|
|
1643
1674
|
providedIn: 'root',
|
|
@@ -1667,15 +1698,15 @@ class UserSettingsService {
|
|
|
1667
1698
|
* @returns Observable of staff settings array
|
|
1668
1699
|
*/
|
|
1669
1700
|
findStaffSettings(staffId) {
|
|
1670
|
-
const query = `{
|
|
1671
|
-
findStaffSettings(input: { where: { staffId: ${staffId} } }) {
|
|
1672
|
-
data {
|
|
1673
|
-
staffSettingId
|
|
1674
|
-
settingKey
|
|
1675
|
-
settingValue
|
|
1676
|
-
modifiedBy
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1701
|
+
const query = `{
|
|
1702
|
+
findStaffSettings(input: { where: { staffId: ${staffId} } }) {
|
|
1703
|
+
data {
|
|
1704
|
+
staffSettingId
|
|
1705
|
+
settingKey
|
|
1706
|
+
settingValue
|
|
1707
|
+
modifiedBy
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1679
1710
|
}`;
|
|
1680
1711
|
return this.httpClient.post(this.smartDataServiceUrl, { query }).pipe(map(response => response?.data?.findStaffSettings?.data || []), catchError(error => {
|
|
1681
1712
|
console.error('Error fetching staff settings:', error);
|
|
@@ -1687,13 +1718,13 @@ class UserSettingsService {
|
|
|
1687
1718
|
* @returns Observable of default settings array
|
|
1688
1719
|
*/
|
|
1689
1720
|
findDefaultSettings() {
|
|
1690
|
-
const query = `{
|
|
1691
|
-
findDefaultSettings {
|
|
1692
|
-
data {
|
|
1693
|
-
defaultSettingId
|
|
1694
|
-
settingValue
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1721
|
+
const query = `{
|
|
1722
|
+
findDefaultSettings {
|
|
1723
|
+
data {
|
|
1724
|
+
defaultSettingId
|
|
1725
|
+
settingValue
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1697
1728
|
}`;
|
|
1698
1729
|
return this.httpClient.post(this.smartDataServiceUrl, { query }).pipe(map(response => response?.data?.findDefaultSettings?.data || []), catchError(error => {
|
|
1699
1730
|
console.error('Error fetching default settings:', error);
|
|
@@ -1706,17 +1737,17 @@ class UserSettingsService {
|
|
|
1706
1737
|
* @returns Observable with the created staff setting
|
|
1707
1738
|
*/
|
|
1708
1739
|
createStaffSetting(input) {
|
|
1709
|
-
const mutation = `
|
|
1710
|
-
mutation CreateStaffSetting($input: CreateStaffSettingInput!) {
|
|
1711
|
-
createStaffSetting(input: $input) {
|
|
1712
|
-
data {
|
|
1713
|
-
staffSettingId
|
|
1714
|
-
settingKey
|
|
1715
|
-
settingValue
|
|
1716
|
-
}
|
|
1717
|
-
message
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1740
|
+
const mutation = `
|
|
1741
|
+
mutation CreateStaffSetting($input: CreateStaffSettingInput!) {
|
|
1742
|
+
createStaffSetting(input: $input) {
|
|
1743
|
+
data {
|
|
1744
|
+
staffSettingId
|
|
1745
|
+
settingKey
|
|
1746
|
+
settingValue
|
|
1747
|
+
}
|
|
1748
|
+
message
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1720
1751
|
`;
|
|
1721
1752
|
return this.httpClient.post(this.smartDataServiceUrl, {
|
|
1722
1753
|
query: mutation,
|
|
@@ -1732,18 +1763,18 @@ class UserSettingsService {
|
|
|
1732
1763
|
* @returns Observable with the updated staff setting
|
|
1733
1764
|
*/
|
|
1734
1765
|
updateStaffSetting(input) {
|
|
1735
|
-
const mutation = `
|
|
1736
|
-
mutation UpdateStaffSetting($input: UpdateStaffSettingInput!) {
|
|
1737
|
-
updateStaffSetting(input: $input) {
|
|
1738
|
-
data {
|
|
1739
|
-
staffSettingId
|
|
1740
|
-
staffId
|
|
1741
|
-
settingKey
|
|
1742
|
-
settingValue
|
|
1743
|
-
}
|
|
1744
|
-
message
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1766
|
+
const mutation = `
|
|
1767
|
+
mutation UpdateStaffSetting($input: UpdateStaffSettingInput!) {
|
|
1768
|
+
updateStaffSetting(input: $input) {
|
|
1769
|
+
data {
|
|
1770
|
+
staffSettingId
|
|
1771
|
+
staffId
|
|
1772
|
+
settingKey
|
|
1773
|
+
settingValue
|
|
1774
|
+
}
|
|
1775
|
+
message
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1747
1778
|
`;
|
|
1748
1779
|
return this.httpClient.post(this.smartDataServiceUrl, {
|
|
1749
1780
|
query: mutation,
|
|
@@ -1753,10 +1784,10 @@ class UserSettingsService {
|
|
|
1753
1784
|
return of({ data: null, message: 'Failed to update staff setting' });
|
|
1754
1785
|
}));
|
|
1755
1786
|
}
|
|
1756
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1757
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1787
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserSettingsService, deps: [{ token: i1.HttpClient }, { token: SMART_DATA_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1788
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserSettingsService, providedIn: 'root' }); }
|
|
1758
1789
|
}
|
|
1759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserSettingsService, decorators: [{
|
|
1760
1791
|
type: Injectable,
|
|
1761
1792
|
args: [{
|
|
1762
1793
|
providedIn: 'root'
|