@po-ui/ng-templates 17.1.1 → 17.3.0
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/package.json +4 -4
- package/po-ui-ng-templates-17.3.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/po-page-blocked-user/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-blocked-user/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +1 -0
- package/schematics/ng-generate/po-page-blocked-user/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-blocked-user/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +22 -0
- package/schematics/ng-generate/po-page-change-password/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-change-password/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +1 -0
- package/schematics/ng-generate/po-page-change-password/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-change-password/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +22 -0
- package/schematics/ng-generate/po-page-dynamic-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-dynamic-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -0
- package/schematics/ng-generate/po-page-dynamic-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-dynamic-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +29 -0
- package/schematics/ng-generate/po-page-dynamic-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-dynamic-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -0
- package/schematics/ng-generate/po-page-dynamic-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-dynamic-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +31 -0
- package/schematics/ng-generate/po-page-dynamic-search/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-dynamic-search/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -0
- package/schematics/ng-generate/po-page-dynamic-search/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-dynamic-search/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +36 -0
- package/schematics/ng-generate/po-page-dynamic-table/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-dynamic-table/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -0
- package/schematics/ng-generate/po-page-dynamic-table/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-dynamic-table/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +28 -0
- package/schematics/ng-generate/po-page-job-scheduler/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-job-scheduler/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +4 -0
- package/schematics/ng-generate/po-page-job-scheduler/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-job-scheduler/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +25 -0
- package/schematics/ng-generate/po-page-login/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-login/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +1 -0
- package/schematics/ng-generate/po-page-login/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/po-page-login/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +23 -0
- package/po-ui-ng-templates-17.1.1.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-templates",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0",
|
|
4
4
|
"description": "PO UI - Templates",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"schematics": "./schematics/collection.json",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@po-ui/ng-components": "17.
|
|
15
|
-
"@po-ui/ng-schematics": "17.
|
|
14
|
+
"@po-ui/ng-components": "17.3.0",
|
|
15
|
+
"@po-ui/ng-schematics": "17.3.0",
|
|
16
16
|
"tslib": "^2.6.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@angular/platform-browser": "^17",
|
|
25
25
|
"@angular/platform-browser-dynamic": "^17",
|
|
26
26
|
"@angular/router": "^17",
|
|
27
|
-
"@po-ui/ng-components": "17.
|
|
27
|
+
"@po-ui/ng-components": "17.3.0",
|
|
28
28
|
"rxjs": "~7.8.1",
|
|
29
29
|
"zone.js": "~0.14.4"
|
|
30
30
|
},
|
|
Binary file
|
|
@@ -23,7 +23,7 @@ function default_1(options) {
|
|
|
23
23
|
exports.default = default_1;
|
|
24
24
|
function addPoPackageAndInstall() {
|
|
25
25
|
return (tree, context) => {
|
|
26
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-templates', '17.
|
|
26
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-templates', '17.3.0');
|
|
27
27
|
// install packages
|
|
28
28
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
29
29
|
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<po-page-blocked-user></po-page-blocked-user>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageBlockedUserModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageBlockedUserModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageBlockedUserModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '<%= selector %>',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [
|
|
10
|
+
CommonModule,
|
|
11
|
+
PoPageBlockedUserModule,
|
|
12
|
+
],
|
|
13
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
14
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
15
|
+
})
|
|
16
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
17
|
+
|
|
18
|
+
constructor() { }
|
|
19
|
+
|
|
20
|
+
ngOnInit() { }
|
|
21
|
+
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<po-page-change-password></po-page-change-password>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageChangePasswordModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageChangePasswordModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageChangePasswordModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '<%= selector %>',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [
|
|
10
|
+
CommonModule,
|
|
11
|
+
PoPageChangePasswordModule,
|
|
12
|
+
],
|
|
13
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
14
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
15
|
+
})
|
|
16
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
17
|
+
|
|
18
|
+
constructor() { }
|
|
19
|
+
|
|
20
|
+
ngOnInit() { }
|
|
21
|
+
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicDetailModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageDynamicDetailModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicDetailModule, PoPageDynamicDetailField } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '<%= selector %>',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [
|
|
10
|
+
CommonModule,
|
|
11
|
+
PoPageDynamicDetailModule
|
|
12
|
+
],
|
|
13
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
14
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
15
|
+
})
|
|
16
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
17
|
+
|
|
18
|
+
// PLEASE ADD THE API URL SERVICE HERE
|
|
19
|
+
readonly apiService = 'http://localhost:8080/api';
|
|
20
|
+
|
|
21
|
+
readonly fields: Array<PoPageDynamicDetailField> = [
|
|
22
|
+
{ property: 'id', label: 'User ID', key: true },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
constructor() { }
|
|
26
|
+
|
|
27
|
+
ngOnInit() { }
|
|
28
|
+
|
|
29
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicEditModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageDynamicEditModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
import { PoPageDynamicEditModule } from '@po-ui/ng-templates';
|
|
6
|
+
import { PoPageDynamicEditField } from '@po-ui/ng-templates';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: '<%= selector %>',
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
PoPageDynamicEditModule,
|
|
14
|
+
],
|
|
15
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
16
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
17
|
+
})
|
|
18
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
19
|
+
|
|
20
|
+
// PLEASE ADD THE API URL SERVICE HERE
|
|
21
|
+
readonly apiService = 'http://localhost:8080/api';
|
|
22
|
+
|
|
23
|
+
readonly fields: Array<PoPageDynamicEditField> = [
|
|
24
|
+
{ property: 'id', label: 'User ID', key: true },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
constructor() { }
|
|
28
|
+
|
|
29
|
+
ngOnInit() { }
|
|
30
|
+
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicSearchModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageDynamicSearchModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicSearchModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { PoPageAction, PoDynamicFormField } from '@po-ui/ng-components';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: '<%= selector %>',
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
PoPageDynamicSearchModule,
|
|
14
|
+
],
|
|
15
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
16
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
17
|
+
})
|
|
18
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
19
|
+
|
|
20
|
+
readonly actions: Array<PoPageAction> = [
|
|
21
|
+
{ label: 'Adicionar', action: this.add.bind(this) }
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
readonly filter: Array<PoDynamicFormField> = [
|
|
25
|
+
{ property: 'name' }
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
constructor() { }
|
|
29
|
+
|
|
30
|
+
ngOnInit() { }
|
|
31
|
+
|
|
32
|
+
add() {
|
|
33
|
+
alert('ADD');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageDynamicTableModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
+
import { PoPageDynamicTableActions } from '@po-ui/ng-templates';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: '<%= selector %>',
|
|
9
|
+
standalone: true,
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
PoPageDynamicTableModule,
|
|
13
|
+
],
|
|
14
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
15
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
16
|
+
})
|
|
17
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
18
|
+
|
|
19
|
+
// PLEASE ADD THE API URL SERVICE HERE
|
|
20
|
+
readonly apiService = 'http://localhost:8080/api';
|
|
21
|
+
|
|
22
|
+
readonly actions: PoPageDynamicTableActions = { };
|
|
23
|
+
|
|
24
|
+
constructor() { }
|
|
25
|
+
|
|
26
|
+
ngOnInit() { }
|
|
27
|
+
|
|
28
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageJobSchedulerModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageJobSchedulerModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageJobSchedulerModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '<%= selector %>',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [
|
|
10
|
+
CommonModule,
|
|
11
|
+
PoPageJobSchedulerModule,
|
|
12
|
+
],
|
|
13
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
14
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
15
|
+
})
|
|
16
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
17
|
+
|
|
18
|
+
// PLEASE ADD THE API URL SERVICE HERE
|
|
19
|
+
readonly apiService = 'http://localhost:8080/api';
|
|
20
|
+
|
|
21
|
+
constructor() { }
|
|
22
|
+
|
|
23
|
+
ngOnInit() { }
|
|
24
|
+
|
|
25
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<po-page-login></po-page-login>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageLoginModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageLoginModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { PoPageLoginModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: '<%= selector %>',
|
|
9
|
+
standalone: true,
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
PoPageLoginModule,
|
|
13
|
+
],
|
|
14
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
15
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
16
|
+
})
|
|
17
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
18
|
+
|
|
19
|
+
constructor() { }
|
|
20
|
+
|
|
21
|
+
ngOnInit() { }
|
|
22
|
+
|
|
23
|
+
}
|
|
Binary file
|