awf-test-lib 0.1.25 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/awf-test-lib.mjs +5 -0
- package/esm2022/lib/core/core-routing.module.mjs +18 -0
- package/esm2022/lib/core/core.module.mjs +51 -0
- package/esm2022/lib/core/menu/menu.component.mjs +44 -0
- package/esm2022/lib/core/menu-consomer/menu-consomer.component.mjs +28 -0
- package/esm2022/lib/core/menu-ge-portal/menu-ge-portal.component.mjs +108 -0
- package/esm2022/lib/core/menu-warranty/menu-warranty.component.mjs +37 -0
- package/esm2022/lib/core/not-found/not-found.component.mjs +21 -0
- package/esm2022/lib/core/top-bar/top-bar.component.mjs +43 -0
- package/esm2022/lib/models/account.model.mjs +15 -0
- package/esm2022/lib/models/alternativeDate.model.mjs +7 -0
- package/esm2022/lib/models/applicationName.mjs +7 -0
- package/esm2022/lib/models/cancelPMMailRequest.model.mjs +6 -0
- package/esm2022/lib/models/customObject.model.mjs +4 -0
- package/esm2022/lib/models/detailedPmJob.model.mjs +23 -0
- package/esm2022/lib/models/emailStatus.mjs +6 -0
- package/esm2022/lib/models/emailType.mjs +17 -0
- package/esm2022/lib/models/eventStatus.mjs +9 -0
- package/esm2022/lib/models/field.mjs +9 -0
- package/esm2022/lib/models/language.mjs +6 -0
- package/esm2022/lib/models/mailRequest.model.mjs +17 -0
- package/esm2022/lib/models/pMGroupedJob.model.mjs +4 -0
- package/esm2022/lib/models/pmJob.model.mjs +23 -0
- package/esm2022/lib/models/pmJobRequest.model.mjs +5 -0
- package/esm2022/lib/models/pmJobStatus.mjs +17 -0
- package/esm2022/lib/models/reason.model.mjs +5 -0
- package/esm2022/lib/models/reasonCode.mjs +9 -0
- package/esm2022/lib/models/reasonContact.mjs +8 -0
- package/esm2022/lib/models/reportDateMailRequest.model.mjs +6 -0
- package/esm2022/lib/models/role.mjs +7 -0
- package/esm2022/lib/models/service.model.mjs +9 -0
- package/esm2022/lib/models/serviceName.mjs +12 -0
- package/esm2022/lib/models/socialLoginRequest.model.mjs +7 -0
- package/esm2022/lib/models/socialMadia.mjs +5 -0
- package/esm2022/lib/models/stingBoolean.mjs +6 -0
- package/esm2022/lib/models/system.mjs +14 -0
- package/esm2022/lib/models/theme.model.mjs +2 -0
- package/esm2022/lib/models/tokenStatus.mjs +7 -0
- package/esm2022/lib/models/warranty.mjs +18 -0
- package/esm2022/lib/pipes/pipes/pipes.module.mjs +21 -0
- package/esm2022/lib/pipes/subrtring-w.pipe.mjs +20 -0
- package/esm2022/lib/pipes/substring.pipe.mjs +16 -0
- package/esm2022/lib/shared/choose-another-date/choose-another-date.component.mjs +117 -0
- package/esm2022/lib/shared/confirm-dialog/confirm-dialog.component.mjs +53 -0
- package/esm2022/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.mjs +48 -0
- package/esm2022/lib/shared/confirmed-date-information/confirmed-date-information.component.mjs +45 -0
- package/esm2022/lib/shared/contact/contact.component.mjs +170 -0
- package/esm2022/lib/shared/contact-support/contact-support.component.mjs +186 -0
- package/esm2022/lib/shared/dashboard/dashboard.component.mjs +40 -0
- package/esm2022/lib/shared/maintenance-list/maintenance-list.component.mjs +373 -0
- package/esm2022/lib/shared/shared-routing.module.mjs +18 -0
- package/esm2022/lib/shared/shared.module.mjs +144 -0
- package/esm2022/lib/shared/show-links/show-links.component.mjs +87 -0
- package/esm2022/lib/shared/system-list/system-list.component.mjs +35 -0
- package/esm2022/public-api.mjs +48 -0
- package/fesm2022/awf-test-lib.mjs +1865 -0
- package/fesm2022/awf-test-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core/core-routing.module.d.ts +7 -0
- package/lib/core/core.module.d.ts +15 -0
- package/lib/core/menu/menu.component.d.ts +17 -0
- package/lib/core/menu-consomer/menu-consomer.component.d.ts +12 -0
- package/lib/core/menu-ge-portal/menu-ge-portal.component.d.ts +20 -0
- package/lib/core/menu-warranty/menu-warranty.component.d.ts +15 -0
- package/lib/core/not-found/not-found.component.d.ts +10 -0
- package/lib/core/top-bar/top-bar.component.d.ts +13 -0
- package/{src/lib/models/account.model.ts → lib/models/account.model.d.ts} +14 -17
- package/lib/models/alternativeDate.model.d.ts +6 -0
- package/lib/models/applicationName.d.ts +5 -0
- package/{src/lib/models/cancelPMMailRequest.model.ts → lib/models/cancelPMMailRequest.model.d.ts} +5 -7
- package/lib/models/customObject.model.d.ts +3 -0
- package/lib/models/detailedPmJob.model.d.ts +23 -0
- package/lib/models/emailStatus.d.ts +4 -0
- package/lib/models/emailType.d.ts +15 -0
- package/lib/models/eventStatus.d.ts +7 -0
- package/lib/models/field.d.ts +7 -0
- package/lib/models/language.d.ts +4 -0
- package/{src/lib/models/mailRequest.model.ts → lib/models/mailRequest.model.d.ts} +16 -18
- package/lib/models/pMGroupedJob.model.d.ts +3 -0
- package/{src/lib/models/pmJob.model.ts → lib/models/pmJob.model.d.ts} +25 -26
- package/lib/models/pmJobRequest.model.d.ts +5 -0
- package/{src/lib/models/pmJobStatus.ts → lib/models/pmJobStatus.d.ts} +14 -19
- package/lib/models/reason.model.d.ts +4 -0
- package/lib/models/reasonCode.d.ts +7 -0
- package/lib/models/reasonContact.d.ts +6 -0
- package/{src/lib/models/reportDateMailRequest.model.ts → lib/models/reportDateMailRequest.model.d.ts} +5 -7
- package/lib/models/role.d.ts +5 -0
- package/lib/models/service.model.d.ts +8 -0
- package/lib/models/serviceName.d.ts +10 -0
- package/{src/lib/models/socialLoginRequest.model.ts → lib/models/socialLoginRequest.model.d.ts} +6 -6
- package/lib/models/socialMadia.d.ts +3 -0
- package/lib/models/stingBoolean.d.ts +4 -0
- package/lib/models/system.d.ts +14 -0
- package/{src/lib/models/theme.model.ts → lib/models/theme.model.d.ts} +38 -45
- package/lib/models/tokenStatus.d.ts +5 -0
- package/lib/models/warranty.d.ts +17 -0
- package/lib/pipes/pipes/pipes.module.d.ts +9 -0
- package/lib/pipes/subrtring-w.pipe.d.ts +7 -0
- package/lib/pipes/substring.pipe.d.ts +7 -0
- package/lib/shared/choose-another-date/choose-another-date.component.d.ts +33 -0
- package/lib/shared/confirm-dialog/confirm-dialog.component.d.ts +22 -0
- package/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.d.ts +19 -0
- package/lib/shared/confirmed-date-information/confirmed-date-information.component.d.ts +18 -0
- package/lib/shared/contact/contact.component.d.ts +39 -0
- package/lib/shared/contact-support/contact-support.component.d.ts +50 -0
- package/lib/shared/dashboard/dashboard.component.d.ts +19 -0
- package/lib/shared/maintenance-list/maintenance-list.component.d.ts +82 -0
- package/lib/shared/shared-routing.module.d.ts +7 -0
- package/lib/shared/shared.module.d.ts +40 -0
- package/lib/shared/show-links/show-links.component.d.ts +25 -0
- package/lib/shared/system-list/system-list.component.d.ts +15 -0
- package/package.json +24 -10
- package/{src/public-api.ts → public-api.d.ts} +42 -57
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/core/core-routing.module.ts +0 -10
- package/src/lib/core/core.module.ts +0 -35
- package/src/lib/core/menu/menu.component.css +0 -18
- package/src/lib/core/menu/menu.component.html +0 -8
- package/src/lib/core/menu/menu.component.spec.ts +0 -23
- package/src/lib/core/menu/menu.component.ts +0 -28
- package/src/lib/core/menu-consomer/menu-consomer.component.html +0 -20
- package/src/lib/core/menu-consomer/menu-consomer.component.scss +0 -20
- package/src/lib/core/menu-consomer/menu-consomer.component.spec.ts +0 -25
- package/src/lib/core/menu-consomer/menu-consomer.component.ts +0 -21
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.html +0 -7
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.scss +0 -17
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.spec.ts +0 -25
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.ts +0 -83
- package/src/lib/core/menu-warranty/menu-warranty.component.html +0 -20
- package/src/lib/core/menu-warranty/menu-warranty.component.scss +0 -16
- package/src/lib/core/menu-warranty/menu-warranty.component.spec.ts +0 -25
- package/src/lib/core/menu-warranty/menu-warranty.component.ts +0 -31
- package/src/lib/core/not-found/not-found.component.css +0 -31
- package/src/lib/core/not-found/not-found.component.html +0 -6
- package/src/lib/core/not-found/not-found.component.spec.ts +0 -23
- package/src/lib/core/not-found/not-found.component.ts +0 -15
- package/src/lib/core/top-bar/top-bar.component.css +0 -116
- package/src/lib/core/top-bar/top-bar.component.html +0 -1
- package/src/lib/core/top-bar/top-bar.component.spec.ts +0 -23
- package/src/lib/core/top-bar/top-bar.component.ts +0 -39
- package/src/lib/models/alternativeDate.model.ts +0 -6
- package/src/lib/models/applicationName.ts +0 -6
- package/src/lib/models/customObject.model.ts +0 -4
- package/src/lib/models/detailedPmJob.model.ts +0 -25
- package/src/lib/models/emailStatus.ts +0 -4
- package/src/lib/models/emailType.ts +0 -19
- package/src/lib/models/eventStatus.ts +0 -8
- package/src/lib/models/field.ts +0 -7
- package/src/lib/models/language.ts +0 -4
- package/src/lib/models/pMGroupedJob.model.ts +0 -4
- package/src/lib/models/pmJobRequest.model.ts +0 -6
- package/src/lib/models/reason.model.ts +0 -7
- package/src/lib/models/reasonCode.ts +0 -9
- package/src/lib/models/reasonContact.ts +0 -7
- package/src/lib/models/role.ts +0 -5
- package/src/lib/models/service.model.ts +0 -8
- package/src/lib/models/serviceName.ts +0 -14
- package/src/lib/models/socialMadia.ts +0 -4
- package/src/lib/models/stingBoolean.ts +0 -7
- package/src/lib/models/system.ts +0 -15
- package/src/lib/models/tokenStatus.ts +0 -6
- package/src/lib/models/warranty.ts +0 -18
- package/src/lib/pipes/pipes/pipes.module.ts +0 -14
- package/src/lib/pipes/subrtring-w.pipe.spec.ts +0 -8
- package/src/lib/pipes/subrtring-w.pipe.ts +0 -16
- package/src/lib/pipes/substring.pipe.spec.ts +0 -8
- package/src/lib/pipes/substring.pipe.ts +0 -15
- package/src/lib/shared/choose-another-date/choose-another-date.component.html +0 -12
- package/src/lib/shared/choose-another-date/choose-another-date.component.scss +0 -12
- package/src/lib/shared/choose-another-date/choose-another-date.component.spec.ts +0 -25
- package/src/lib/shared/choose-another-date/choose-another-date.component.ts +0 -127
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.html +0 -26
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.scss +0 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.spec.ts +0 -25
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.ts +0 -39
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.css +0 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.html +0 -19
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.spec.ts +0 -23
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.ts +0 -36
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.html +0 -25
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.scss +0 -23
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.spec.ts +0 -25
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.ts +0 -30
- package/src/lib/shared/contact/contact.component.css +0 -144
- package/src/lib/shared/contact/contact.component.html +0 -136
- package/src/lib/shared/contact/contact.component.spec.ts +0 -23
- package/src/lib/shared/contact/contact.component.ts +0 -169
- package/src/lib/shared/contact-support/contact-support.component.html +0 -130
- package/src/lib/shared/contact-support/contact-support.component.scss +0 -10
- package/src/lib/shared/contact-support/contact-support.component.spec.ts +0 -25
- package/src/lib/shared/contact-support/contact-support.component.ts +0 -188
- package/src/lib/shared/dashboard/dashboard.component.html +0 -81
- package/src/lib/shared/dashboard/dashboard.component.scss +0 -5
- package/src/lib/shared/dashboard/dashboard.component.spec.ts +0 -23
- package/src/lib/shared/dashboard/dashboard.component.ts +0 -23
- package/src/lib/shared/maintenance-list/maintenance-list.component.html +0 -105
- package/src/lib/shared/maintenance-list/maintenance-list.component.scss +0 -26
- package/src/lib/shared/maintenance-list/maintenance-list.component.spec.ts +0 -25
- package/src/lib/shared/maintenance-list/maintenance-list.component.ts +0 -403
- package/src/lib/shared/shared-routing.module.ts +0 -10
- package/src/lib/shared/shared.module.ts +0 -80
- package/src/lib/shared/show-links/show-links.component.html +0 -49
- package/src/lib/shared/show-links/show-links.component.scss +0 -0
- package/src/lib/shared/show-links/show-links.component.spec.ts +0 -25
- package/src/lib/shared/show-links/show-links.component.ts +0 -78
- package/src/lib/shared/system-list/system-list.component.css +0 -0
- package/src/lib/shared/system-list/system-list.component.html +0 -40
- package/src/lib/shared/system-list/system-list.component.spec.ts +0 -23
- package/src/lib/shared/system-list/system-list.component.ts +0 -26
- package/src/test.ts +0 -27
- package/tsconfig.lib.dev.json +0 -10
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.pp.json +0 -10
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
@@ -1,40 +0,0 @@
|
|
1
|
-
<p-table #dt [value]="systems" responsiveLayout="stack" [rows]="5" [showCurrentPageReport]="true" [rowsPerPageOptions]="[5,10,25,50]" [paginator]="true" [globalFilterFields]="['id','systemId','name','modality','installDate']" [rowHover]="true" dataKey="id"
|
2
|
-
[currentPageReportTemplate]="globaltranslate.countPages" [showCurrentPageReport]="true">
|
3
|
-
<ng-template pTemplate="caption">
|
4
|
-
<div>
|
5
|
-
<span class="p-input-icon-left">
|
6
|
-
<i class="pi pi-search"></i>
|
7
|
-
<input pInputText type="text" (input)="applyFilterGlobal($event, 'contains')"
|
8
|
-
[placeholder]="globaltranslate.search" />
|
9
|
-
</span>
|
10
|
-
</div>
|
11
|
-
</ng-template>
|
12
|
-
<ng-template pTemplate="header" let-columns>
|
13
|
-
<tr>
|
14
|
-
|
15
|
-
<th pSortableColumn="name">{{translate.name}}
|
16
|
-
<p-sortIcon field="name"></p-sortIcon>
|
17
|
-
<th pSortableColumn="systemId">{{translate.systemId}}
|
18
|
-
<p-sortIcon field="systemId"></p-sortIcon>
|
19
|
-
<th pSortableColumn="modality">{{translate.modality}}
|
20
|
-
<p-sortIcon field="modality"></p-sortIcon>
|
21
|
-
<th pSortableColumn="installDate">{{translate.installDate}}
|
22
|
-
<p-sortIcon field="installDate"></p-sortIcon>
|
23
|
-
|
24
|
-
</tr>
|
25
|
-
</ng-template>
|
26
|
-
<ng-template pTemplate="body" let-product let-columns="columns">
|
27
|
-
<tr>
|
28
|
-
<td>{{product.name }}</td>
|
29
|
-
<td>{{product.systemId }}</td>
|
30
|
-
|
31
|
-
<td>{{product.modality }}</td>
|
32
|
-
<td>{{product.installDate | date: "EEE dd MMM yyyy":"":language}}</td>
|
33
|
-
</tr>
|
34
|
-
</ng-template>
|
35
|
-
<ng-template pTemplate="summary">
|
36
|
-
<div class="p-d-flex p-ai-center p-jc-between">
|
37
|
-
{{globaltranslate.count}} {{systems ? systems.length : 0 }} {{globaltranslate.elements}}.
|
38
|
-
</div>
|
39
|
-
</ng-template>
|
40
|
-
</p-table>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
-
|
3
|
-
import { SystemListComponent } from './system-list.component';
|
4
|
-
|
5
|
-
describe('SystemListComponent', () => {
|
6
|
-
let component: SystemListComponent;
|
7
|
-
let fixture: ComponentFixture<SystemListComponent>;
|
8
|
-
|
9
|
-
beforeEach(async () => {
|
10
|
-
await TestBed.configureTestingModule({
|
11
|
-
declarations: [ SystemListComponent ]
|
12
|
-
})
|
13
|
-
.compileComponents();
|
14
|
-
|
15
|
-
fixture = TestBed.createComponent(SystemListComponent);
|
16
|
-
component = fixture.componentInstance;
|
17
|
-
fixture.detectChanges();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('should create', () => {
|
21
|
-
expect(component).toBeTruthy();
|
22
|
-
});
|
23
|
-
});
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
2
|
-
import { MessageService } from 'primeng/api';
|
3
|
-
import { Table } from 'primeng/table';
|
4
|
-
import { System } from '../../models/system';
|
5
|
-
|
6
|
-
@Component({
|
7
|
-
selector: 'awf-system-list',
|
8
|
-
templateUrl: './system-list.component.html',
|
9
|
-
styleUrls: ['./system-list.component.css'],
|
10
|
-
providers: [MessageService],
|
11
|
-
})
|
12
|
-
export class SystemListComponent {
|
13
|
-
@ViewChild('dt') dt: Table | undefined;
|
14
|
-
@Input() translate: any;
|
15
|
-
@Input() globaltranslate: any;
|
16
|
-
@Input()systems: System[] = [];
|
17
|
-
languageStored : string | null = localStorage.getItem("lang");
|
18
|
-
language: string = this.languageStored ? this.languageStored : navigator.language.substr(0, 2).toLowerCase();
|
19
|
-
constructor() {}
|
20
|
-
|
21
|
-
applyFilterGlobal($event: any, stringVal: any) {
|
22
|
-
this.dt?.filterGlobal(($event.target as HTMLInputElement).value, stringVal);
|
23
|
-
}
|
24
|
-
|
25
|
-
|
26
|
-
}
|
package/src/test.ts
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
2
|
-
|
3
|
-
import 'zone.js';
|
4
|
-
import 'zone.js/testing';
|
5
|
-
import { getTestBed } from '@angular/core/testing';
|
6
|
-
import {
|
7
|
-
BrowserDynamicTestingModule,
|
8
|
-
platformBrowserDynamicTesting
|
9
|
-
} from '@angular/platform-browser-dynamic/testing';
|
10
|
-
|
11
|
-
declare const require: {
|
12
|
-
context(path: string, deep?: boolean, filter?: RegExp): {
|
13
|
-
<T>(id: string): T;
|
14
|
-
keys(): string[];
|
15
|
-
};
|
16
|
-
};
|
17
|
-
|
18
|
-
// First, initialize the Angular testing environment.
|
19
|
-
getTestBed().initTestEnvironment(
|
20
|
-
BrowserDynamicTestingModule,
|
21
|
-
platformBrowserDynamicTesting(),
|
22
|
-
);
|
23
|
-
|
24
|
-
// Then we find all the tests.
|
25
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
26
|
-
// And load the modules.
|
27
|
-
context.keys().forEach(context);
|
package/tsconfig.lib.dev.json
DELETED
package/tsconfig.lib.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
2
|
-
{
|
3
|
-
"extends": "../../tsconfig.json",
|
4
|
-
"compilerOptions": {
|
5
|
-
"outDir": "../../out-tsc/lib",
|
6
|
-
"declaration": true,
|
7
|
-
"declarationMap": true,
|
8
|
-
"inlineSources": true,
|
9
|
-
"types": []
|
10
|
-
},
|
11
|
-
"exclude": [
|
12
|
-
"src/test.ts",
|
13
|
-
"**/*.spec.ts"
|
14
|
-
]
|
15
|
-
}
|
package/tsconfig.lib.pp.json
DELETED
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
2
|
-
{
|
3
|
-
"extends": "../../tsconfig.json",
|
4
|
-
"compilerOptions": {
|
5
|
-
"outDir": "../../out-tsc/spec",
|
6
|
-
"types": [
|
7
|
-
"jasmine"
|
8
|
-
]
|
9
|
-
},
|
10
|
-
"files": [
|
11
|
-
"src/test.ts"
|
12
|
-
],
|
13
|
-
"include": [
|
14
|
-
"**/*.spec.ts",
|
15
|
-
"**/*.d.ts"
|
16
|
-
]
|
17
|
-
}
|