@csmart/ngc-smart-victim 1.18.12 → 1.18.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/esm2022/csmart-ngc-smart-victim.mjs +5 -0
  2. package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
  3. package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
  4. package/esm2022/lib/common-dialog/common-dialog.module.mjs +34 -0
  5. package/esm2022/lib/common-dialog/common-dialog.service.mjs +33 -0
  6. package/esm2022/lib/contact/contact.component.mjs +140 -0
  7. package/esm2022/lib/email.services.mjs +42 -0
  8. package/esm2022/lib/intake.service.mjs +57 -0
  9. package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +99 -0
  10. package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
  11. package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
  12. package/esm2022/lib/shared/app.shared.module.mjs +215 -0
  13. package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
  14. package/esm2022/lib/shared/validators/index.mjs +2 -0
  15. package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
  16. package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1155 -0
  17. package/esm2022/lib/smart-victim.component.mjs +317 -0
  18. package/esm2022/lib/smart-victim.model.mjs +142 -0
  19. package/esm2022/lib/smart-victim.module.mjs +128 -0
  20. package/esm2022/lib/smart-victim.service.mjs +370 -0
  21. package/esm2022/lib/victim-routing.module.mjs +41 -0
  22. package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +3 -0
  23. package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
  24. package/esm2022/public-api.mjs +11 -0
  25. package/fesm2022/csmart-ngc-smart-victim.mjs +3342 -0
  26. package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/caseNote/caseNote.component.d.ts +51 -0
  29. package/lib/common-dialog/common-dialog.component.d.ts +14 -0
  30. package/lib/common-dialog/common-dialog.module.d.ts +8 -0
  31. package/lib/common-dialog/common-dialog.service.d.ts +11 -0
  32. package/lib/contact/contact.component.d.ts +40 -0
  33. package/lib/email.services.d.ts +11 -0
  34. package/lib/intake.service.d.ts +57 -0
  35. package/lib/safetyPlan/serviceProvider.component.d.ts +19 -0
  36. package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -0
  37. package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -0
  38. package/lib/shared/app.shared.module.d.ts +33 -0
  39. package/lib/shared/validators/date.validator.d.ts +9 -0
  40. package/lib/shared/validators/index.d.ts +1 -0
  41. package/lib/smart-victim-delete-confirm.component.d.ts +12 -0
  42. package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -0
  43. package/lib/smart-victim.component.d.ts +69 -0
  44. package/lib/smart-victim.model.d.ts +211 -0
  45. package/lib/smart-victim.module.d.ts +49 -0
  46. package/lib/smart-victim.service.d.ts +71 -0
  47. package/lib/victim-routing.module.d.ts +7 -0
  48. package/{src/lib/victimSearch/VictimSearchFilter.ts → lib/victimSearch/VictimSearchFilter.d.ts} +7 -9
  49. package/lib/victimSearch/victimSearchForm.component.d.ts +14 -0
  50. package/package.json +21 -6
  51. package/{src/public-api.ts → public-api.d.ts} +7 -12
  52. package/karma.conf.js +0 -32
  53. package/ng-package.json +0 -7
  54. package/src/lib/caseNote/caseNote.component.css +0 -22
  55. package/src/lib/caseNote/caseNote.component.html +0 -188
  56. package/src/lib/caseNote/caseNote.component.ts +0 -265
  57. package/src/lib/common-dialog/common-dialog.component.css +0 -10
  58. package/src/lib/common-dialog/common-dialog.component.html +0 -23
  59. package/src/lib/common-dialog/common-dialog.component.spec.ts +0 -25
  60. package/src/lib/common-dialog/common-dialog.component.ts +0 -21
  61. package/src/lib/common-dialog/common-dialog.module.ts +0 -22
  62. package/src/lib/common-dialog/common-dialog.service.ts +0 -35
  63. package/src/lib/contact/contact.component.css +0 -22
  64. package/src/lib/contact/contact.component.html +0 -124
  65. package/src/lib/contact/contact.component.ts +0 -176
  66. package/src/lib/email-notification.service.ts +0 -42
  67. package/src/lib/email.services.ts +0 -51
  68. package/src/lib/http.service.ts +0 -34
  69. package/src/lib/intake.service.ts +0 -82
  70. package/src/lib/loader.service.ts +0 -11
  71. package/src/lib/safetyPlan/serviceProvider.component.ts +0 -94
  72. package/src/lib/safetyPlan/victimSafetyPlan.component.css +0 -27
  73. package/src/lib/safetyPlan/victimSafetyPlan.component.html +0 -85
  74. package/src/lib/safetyPlan/victimSafetyPlan.component.ts +0 -178
  75. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +0 -234
  76. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +0 -492
  77. package/src/lib/shared/app.shared.module.ts +0 -111
  78. package/src/lib/shared/validators/date.validator.ts +0 -73
  79. package/src/lib/shared/validators/index.ts +0 -1
  80. package/src/lib/smart-victim-delete-confirm.component.ts +0 -35
  81. package/src/lib/smart-victim-detail/smart-victim-detail.component.css +0 -43
  82. package/src/lib/smart-victim-detail/smart-victim-detail.component.html +0 -876
  83. package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +0 -25
  84. package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +0 -1469
  85. package/src/lib/smart-victim.component.css +0 -245
  86. package/src/lib/smart-victim.component.html +0 -132
  87. package/src/lib/smart-victim.component.spec.ts +0 -25
  88. package/src/lib/smart-victim.component.ts +0 -333
  89. package/src/lib/smart-victim.model.ts +0 -311
  90. package/src/lib/smart-victim.module.ts +0 -110
  91. package/src/lib/smart-victim.service.spec.ts +0 -12
  92. package/src/lib/smart-victim.service.ts +0 -576
  93. package/src/lib/victim-routing.module.ts +0 -36
  94. package/src/lib/victimSearch/victimSearchForm.component.html +0 -35
  95. package/src/lib/victimSearch/victimSearchForm.component.ts +0 -41
  96. package/src/test.ts +0 -16
  97. package/tsconfig.lib.json +0 -36
  98. package/tsconfig.spec.json +0 -17
  99. package/tslint.json +0 -17
@@ -1,36 +0,0 @@
1
- import { MsalGuard } from '@azure/msal-angular';
2
- import { SmartErrorComponent } from '@csmart/ngc-smart-core';
3
- import { LoginStaffResolverService, SelectedOffenderResolverService,SmartAuthorizationGuard,
4
- SmartOffenderRedirectGuard,} from '@csmart/ngc-smart-core';
5
- import { Routes, RouterModule } from '@angular/router';
6
- import { NgModule } from '@angular/core';
7
- import { CaseNoteComponent } from './caseNote/caseNote.component';
8
- import { ContactComponent } from './contact/contact.component';
9
- import { VictimSafetyPlanComponent } from './safetyPlan/victimSafetyPlan.component';
10
- import { VictimSafetyPlanDetailComponent } from './safetyPlan/victimSafetyPlanDetail.component';
11
- import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
12
- import { NgcSmartVictimComponent} from './smart-victim.component'
13
-
14
- const routes: Routes = [
15
-
16
- //{path: 'casenote/:victimId', component: CaseNoteComponent,pathMatch: 'full',canActivate: [MsalGuard],resolve: { loginStaff: LoginStaffResolverService } },
17
- {path: 'casenote/:victimId/:offenderId', component: CaseNoteComponent,pathMatch: 'full', canActivate: [MsalGuard, SmartAuthorizationGuard], },
18
- {path: 'saftyPlan/:victimId', component: VictimSafetyPlanComponent,pathMatch: 'full',},
19
- {path: 'saftyPlanDetail/:victimServiceId/:victimId', component: VictimSafetyPlanDetailComponent,pathMatch: 'full', },
20
- {path: 'victimList', component: NgcSmartVictimComponent, },
21
- {path: 'victimHome', component: NgcSmartVictimComponent, },
22
- {path: 'victimContact/:victimId', component: ContactComponent, },
23
- {path: 'victimDetail/:victimId', component: SmartVictimDetailComponent, },
24
- {path: 'smart-error', component: SmartErrorComponent }
25
- ];
26
-
27
- @NgModule({
28
- imports: [
29
- RouterModule.forChild(routes)
30
- ],
31
- exports: [
32
- RouterModule
33
- ]
34
- })
35
- export class VictimRoutingModule {
36
- }
@@ -1,35 +0,0 @@
1
- <form name="victimSearchFrom" #From="ngForm">
2
- <mat-expansion-panel [expanded]="true">
3
- <mat-expansion-panel-header>
4
- <mat-panel-title>
5
- Search for Victims
6
- </mat-panel-title>
7
- </mat-expansion-panel-header>
8
- <div class="victimSearch">
9
- <mat-form-field>
10
- <input matInput placeholder="Victim Last Name" [(ngModel)]="filter.lastName" name="lastName" id="lastName">
11
- </mat-form-field>
12
- <mat-form-field>
13
- <input matInput placeholder="Victim First Name" [(ngModel)]="filter.firstName" name="firstName" id="firstName">
14
- </mat-form-field>
15
- <mat-form-field>
16
- <input matInput placeholder="Victim Date of Birth" type="date" [(ngModel)]="filter.birthDate" name="birthDate" id="birthDate">
17
- </mat-form-field>
18
- <mat-form-field>
19
- <input matInput placeholder="Offender PDID" [(ngModel)]="filter.pdid" name="pdid" id="pdid">
20
- </mat-form-field>
21
- <mat-form-field>
22
- <input matInput placeholder="Offender CSOSA #"[(ngModel)]="filter.offenderId" name="offenderId" id="offenderId">
23
- </mat-form-field>
24
-
25
-
26
- <section>
27
- <button id="victimSearchButton" mat-stroked-button color="primary" (click)="onChange()">Search</button>
28
- <span style="padding-right: 5px;"></span>
29
- <button mat-stroked-button color="primary" type="reset" value="Reset">Clear Changes</button>
30
- </section>
31
- </div>
32
- </mat-expansion-panel>
33
- </form>
34
-
35
-
@@ -1,41 +0,0 @@
1
- import { Component, OnInit, ViewEncapsulation,
2
- Output, EventEmitter } from '@angular/core';
3
-
4
- import { VictimListFilter } from './VictimSearchFilter';
5
-
6
- @Component({
7
- selector: 'app-victim-search-form',
8
- templateUrl: './victimSearchForm.component.html',
9
- styleUrls: ['../smart-victim.component.css'],
10
- encapsulation: ViewEncapsulation.None
11
- })
12
- export class VictimSearchFormComponent implements OnInit {
13
-
14
- @Output() onSearch:EventEmitter<Object>=new EventEmitter<Object>();
15
- change: EventEmitter<VictimListFilter> = new EventEmitter<VictimListFilter>();
16
-
17
- filter: VictimListFilter = new VictimListFilter();
18
-
19
- constructor() { }
20
-
21
- ngOnInit() {
22
-
23
- }
24
-
25
- ngAfterViewInit() {
26
-
27
- // var element = <HTMLInputElement> document.getElementById("victimSearchButton");
28
- // element.disabled = true;
29
- // setTimeout(function() {
30
- // element.disabled = false;
31
- // }, 10000);
32
-
33
- }
34
- onChange() {
35
- console.log('this.filter in serach form.');
36
- console.log(this.filter);
37
-
38
- this.onSearch.emit(this.filter);
39
-
40
- }
41
- }
package/src/test.ts DELETED
@@ -1,16 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'core-js/es7/reflect';
4
- import 'zone.js/dist/zone';
5
- import 'zone.js/dist/zone-testing';
6
- import { getTestBed } from '@angular/core/testing';
7
- import {
8
- BrowserDynamicTestingModule,
9
- platformBrowserDynamicTesting
10
- } from '@angular/platform-browser-dynamic/testing';
11
-
12
- // First, initialize the Angular testing environment.
13
- getTestBed().initTestEnvironment(
14
- BrowserDynamicTestingModule,
15
- platformBrowserDynamicTesting()
16
- );
package/tsconfig.lib.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/lib",
5
- "module": "es2015",
6
- "moduleResolution": "node",
7
- "declaration": true,
8
- "sourceMap": true,
9
- "inlineSources": true,
10
- "emitDecoratorMetadata": true,
11
- "experimentalDecorators": true,
12
- "importHelpers": true,
13
- "types": [],
14
- "lib": [
15
- "dom",
16
- "es2018",
17
- "esnext.asynciterable"
18
- ],
19
- "paths": {
20
- "ngc-smart-victim/*": ["dist/libs/*"]
21
- }
22
- },
23
- "angularCompilerOptions": {
24
- "annotateForClosureCompiler": true,
25
- "skipTemplateCodegen": true,
26
- "strictMetadataEmit": true,
27
- "fullTemplateTypeCheck": true,
28
- "strictInjectionParameters": true,
29
- "enableResourceInlining": true,
30
- "compilationMode": "partial"
31
- },
32
- "exclude": [
33
- "src/test.ts",
34
- "**/*.spec.ts"
35
- ]
36
- }
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/spec",
5
- "types": [
6
- "jasmine",
7
- "node"
8
- ]
9
- },
10
- "files": [
11
- "src/test.ts"
12
- ],
13
- "include": [
14
- "**/*.spec.ts",
15
- "**/*.d.ts"
16
- ]
17
- }
package/tslint.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tslint.json",
3
- "rules": {
4
- "directive-selector": [
5
- true,
6
- "attribute",
7
- "csmart",
8
- "camelCase"
9
- ],
10
- "component-selector": [
11
- true,
12
- "element",
13
- "csmart",
14
- "kebab-case"
15
- ]
16
- }
17
- }