@po-ui/ng-components 21.33.0 → 22.0.0-next.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/README.md +2 -2
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs → po-ui-ng-components-po-chart-modal-table.component-BfgIJ-rf.mjs} +7 -6
- package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-BfgIJ-rf.mjs.map +1 -0
- package/fesm2022/po-ui-ng-components.mjs +2866 -3250
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/po-accordion/po-accordion-item-body/po-accordion-item-body.component.d.ts +4 -0
- package/lib/components/po-accordion/po-accordion.module.d.ts +0 -38
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +1 -0
- package/lib/components/po-field/po-search-ai/po-search-ai-base.component.d.ts +0 -4
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -3
- package/lib/components/po-navbar/po-navbar.module.d.ts +0 -38
- package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +0 -39
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +5 -13
- package/lib/components/po-slide/po-slide.component.d.ts +2 -3
- package/lib/components/po-slide/po-slide.module.d.ts +0 -37
- package/lib/components/po-stepper/po-stepper.component.d.ts +0 -1
- package/lib/components/po-table/po-table.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view.module.d.ts +1 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +0 -1
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +3 -8
- package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +0 -1
- package/lib/services/po-component-injector/po-component-injector.service.d.ts +12 -5
- package/lib/utils/util.d.ts +0 -13
- package/package.json +13 -15
- package/po-ui-ng-components-22.0.0-next.0.tgz +0 -0
- package/schematics/collection.json +0 -20
- package/schematics/migrations.json +5 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/setup-project.d.ts +1 -0
- package/schematics/ng-add/setup-project.js +95 -0
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-generate/sidemenu/files/__appFileName__.spec.ts.template +35 -0
- package/schematics/ng-generate/sidemenu/files/{app.ts.template → __appFileName__.ts.template} +3 -3
- package/schematics/ng-generate/sidemenu/files-standalone/{app.spec.ts.template → __appFileName__.spec.ts.template} +4 -4
- package/schematics/ng-generate/sidemenu/files-standalone/{app.ts.template → __appFileName__.ts.template} +3 -3
- package/schematics/ng-generate/sidemenu/index.js +9 -3
- package/schematics/ng-generate/sidemenu/index.js.map +1 -1
- package/schematics/ng-generate/sidemenu/schema.d.ts +9 -0
- package/schematics/ng-generate/sidemenu/schema.json +5 -0
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +3 -3
- package/schematics/ng-update/v18/index.js.map +1 -1
- package/schematics/ng-update/v19/index.js +3 -3
- package/schematics/ng-update/v19/index.js.map +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +3 -3
- package/schematics/ng-update/v20/index.js.map +1 -1
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v22/changes.d.ts +29 -0
- package/schematics/ng-update/v22/changes.js +44 -0
- package/schematics/ng-update/v22/changes.js.map +1 -0
- package/schematics/ng-update/v22/gauge-html-migration.d.ts +35 -0
- package/schematics/ng-update/v22/gauge-html-migration.js +308 -0
- package/schematics/ng-update/v22/gauge-html-migration.js.map +1 -0
- package/schematics/ng-update/v22/gauge-manual-test/all-cases.component.html +723 -0
- package/schematics/ng-update/v22/gauge-property-map.d.ts +53 -0
- package/schematics/ng-update/v22/gauge-property-map.js +298 -0
- package/schematics/ng-update/v22/gauge-property-map.js.map +1 -0
- package/schematics/ng-update/v22/gauge-ts-migration.d.ts +41 -0
- package/schematics/ng-update/v22/gauge-ts-migration.js +326 -0
- package/schematics/ng-update/v22/gauge-ts-migration.js.map +1 -0
- package/schematics/ng-update/v22/index.d.ts +39 -0
- package/schematics/ng-update/v22/index.js +253 -0
- package/schematics/ng-update/v22/index.js.map +1 -0
- package/schematics/ng-update/v22/migration-report.d.ts +48 -0
- package/schematics/ng-update/v22/migration-report.js +50 -0
- package/schematics/ng-update/v22/migration-report.js.map +1 -0
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/schematics/package.json +3 -0
- package/types/po-ui-ng-components.d.ts +40 -490
- package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs.map +0 -1
- package/lib/components/po-gauge/index.d.ts +0 -4
- package/lib/components/po-gauge/interfaces/po-gauge-coordinates.interface.d.ts +0 -19
- package/lib/components/po-gauge/interfaces/po-gauge-options.interface.d.ts +0 -69
- package/lib/components/po-gauge/interfaces/po-gauge-ranges.interface.d.ts +0 -44
- package/lib/components/po-gauge/interfaces/po-gauge-svg-container.interface.d.ts +0 -15
- package/lib/components/po-gauge/po-gauge-base.component.d.ts +0 -133
- package/lib/components/po-gauge/po-gauge-default-values.constant.d.ts +0 -5
- package/lib/components/po-gauge/po-gauge.component.d.ts +0 -30
- package/lib/components/po-gauge/po-gauge.module.d.ts +0 -6
- package/po-ui-ng-components-21.33.0.tgz +0 -0
- package/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -3
- package/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -32
- package/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -19
- package/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +0 -19
- package/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -3
- package/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -31
- package/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -23
- package/schematics/ng-generate/po-page-default/index.d.ts +0 -4
- package/schematics/ng-generate/po-page-default/index.js +0 -13
- package/schematics/ng-generate/po-page-default/index.js.map +0 -1
- package/schematics/ng-generate/po-page-default/schema.d.ts +0 -3
- package/schematics/ng-generate/po-page-default/schema.js +0 -3
- package/schematics/ng-generate/po-page-default/schema.js.map +0 -1
- package/schematics/ng-generate/po-page-default/schema.json +0 -67
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -8
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -32
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -27
- package/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +0 -19
- package/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -8
- package/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -31
- package/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -33
- package/schematics/ng-generate/po-page-detail/index.d.ts +0 -4
- package/schematics/ng-generate/po-page-detail/index.js +0 -13
- package/schematics/ng-generate/po-page-detail/index.js.map +0 -1
- package/schematics/ng-generate/po-page-detail/schema.d.ts +0 -3
- package/schematics/ng-generate/po-page-detail/schema.js +0 -3
- package/schematics/ng-generate/po-page-detail/schema.js.map +0 -1
- package/schematics/ng-generate/po-page-detail/schema.json +0 -67
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -8
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -32
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -27
- package/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +0 -19
- package/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -8
- package/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -31
- package/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -33
- package/schematics/ng-generate/po-page-edit/index.d.ts +0 -4
- package/schematics/ng-generate/po-page-edit/index.js +0 -13
- package/schematics/ng-generate/po-page-edit/index.js.map +0 -1
- package/schematics/ng-generate/po-page-edit/schema.d.ts +0 -3
- package/schematics/ng-generate/po-page-edit/schema.js +0 -3
- package/schematics/ng-generate/po-page-edit/schema.js.map +0 -1
- package/schematics/ng-generate/po-page-edit/schema.json +0 -67
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -28
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -37
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -34
- package/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +0 -19
- package/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +0 -14
- package/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template +0 -0
- package/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.html.template +0 -28
- package/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +0 -36
- package/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +0 -42
- package/schematics/ng-generate/po-page-list/index.d.ts +0 -7
- package/schematics/ng-generate/po-page-list/index.js +0 -16
- package/schematics/ng-generate/po-page-list/index.js.map +0 -1
- package/schematics/ng-generate/po-page-list/schema.d.ts +0 -5
- package/schematics/ng-generate/po-page-list/schema.js +0 -3
- package/schematics/ng-generate/po-page-list/schema.js.map +0 -1
- package/schematics/ng-generate/po-page-list/schema.json +0 -78
- package/schematics/ng-generate/sidemenu/files/app.__style__.template +0 -0
- package/schematics/ng-generate/sidemenu/files/app.spec.ts.template +0 -33
- package/schematics/ng-generate/sidemenu/files-standalone/app.__style__.template +0 -0
- /package/schematics/ng-generate/{po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template → sidemenu/files/__appFileName__.__style__.template} +0 -0
- /package/schematics/ng-generate/sidemenu/files/{app.html.template → __appFileName__.html.template} +0 -0
- /package/schematics/ng-generate/{po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.__style__.template → sidemenu/files-standalone/__appFileName__.__style__.template} +0 -0
- /package/schematics/ng-generate/sidemenu/files-standalone/{app.html.template → __appFileName__.html.template} +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
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(waitForAsync(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterTestingModule,
|
|
16
|
-
PoPageModule
|
|
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
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: '<%= selector %>',
|
|
5
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
6
|
-
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'],
|
|
7
|
-
standalone: false
|
|
8
|
-
})
|
|
9
|
-
export class <%= classify(name) %>Component implements OnInit {
|
|
10
|
-
|
|
11
|
-
constructor() { }
|
|
12
|
-
|
|
13
|
-
ngOnInit() { }
|
|
14
|
-
|
|
15
|
-
back() {
|
|
16
|
-
// back action here
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
edit() {
|
|
20
|
-
// edit action here
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
remove() {
|
|
24
|
-
// remove action here
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
import { PoModule } from '@po-ui/ng-components';
|
|
5
|
-
|
|
6
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% if (routing) { %>
|
|
7
|
-
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
<%= classify(name) %>Component
|
|
12
|
-
],
|
|
13
|
-
imports: [
|
|
14
|
-
CommonModule,
|
|
15
|
-
PoModule,<% if (routing) { %>
|
|
16
|
-
<%= classify(name) %>RoutingModule<% } %>
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
export class <%= classify(name) %>Module { }
|
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
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(waitForAsync(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterTestingModule,
|
|
16
|
-
PoPageModule
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
.compileComponents();
|
|
20
|
-
}));
|
|
21
|
-
|
|
22
|
-
beforeEach(() => {
|
|
23
|
-
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
24
|
-
component = fixture.componentInstance;
|
|
25
|
-
fixture.detectChanges();
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should create', () => {
|
|
29
|
-
expect(component).toBeTruthy();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: '<%= selector %>',
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule,
|
|
10
|
-
PoPageModule,
|
|
11
|
-
],
|
|
12
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
13
|
-
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
14
|
-
})
|
|
15
|
-
export class <%= classify(name) %>Component implements OnInit {
|
|
16
|
-
|
|
17
|
-
constructor() { }
|
|
18
|
-
|
|
19
|
-
ngOnInit() { }
|
|
20
|
-
|
|
21
|
-
back() {
|
|
22
|
-
// back action here
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
edit() {
|
|
26
|
-
// edit action here
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
remove() {
|
|
30
|
-
// remove action here
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = default_1;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const build_component_1 = require("@po-ui/ng-schematics/build-component");
|
|
6
|
-
/** Scaffolds a new <name> component with <po-page-detail> */
|
|
7
|
-
function default_1(options) {
|
|
8
|
-
return (0, schematics_1.chain)([createPageDetailComponent(options)]);
|
|
9
|
-
}
|
|
10
|
-
function createPageDetailComponent(options) {
|
|
11
|
-
return (0, build_component_1.buildComponent)(options);
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/ui/schematics/ng-generate/po-page-detail/index.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAPD,2DAAyD;AAEzD,0EAAkG;AAElG,6DAA6D;AAC7D,mBAAyB,OAAyB;IAChD,OAAO,IAAA,kBAAK,EAAC,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,yBAAyB,CAAC,OAAyB;IAC1D,OAAO,IAAA,gCAAc,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../projects/ui/schematics/ng-generate/po-page-detail/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsPOPageDetail",
|
|
4
|
-
"title": "Page Detail Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"style": {
|
|
8
|
-
"description": "The file extension or preprocessor to use for style files.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "css"
|
|
11
|
-
},
|
|
12
|
-
"project": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "The name of the project.",
|
|
15
|
-
"$default": {
|
|
16
|
-
"$source": "projectName"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"routing": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"description": "When true, creates a routing module.",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"createModule": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "When true, create a component module.",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"name": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "The name to use for the component",
|
|
32
|
-
"$default": {
|
|
33
|
-
"$source": "argv",
|
|
34
|
-
"index": 0
|
|
35
|
-
},
|
|
36
|
-
"x-prompt": "What name would you like to use for the component?"
|
|
37
|
-
},
|
|
38
|
-
"skipTests": {
|
|
39
|
-
"description": "When true, does not create \"spec.ts\" test files for the app.",
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": false,
|
|
42
|
-
"alias": "S",
|
|
43
|
-
"x-user-analytics": 12
|
|
44
|
-
},
|
|
45
|
-
"path": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": "path",
|
|
48
|
-
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
49
|
-
"visible": false
|
|
50
|
-
},
|
|
51
|
-
"prefix": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "The prefix to apply to the generated component selector.",
|
|
54
|
-
"alias": "p",
|
|
55
|
-
"oneOf": [
|
|
56
|
-
{
|
|
57
|
-
"maxLength": 0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"minLength": 1,
|
|
61
|
-
"format": "html-selector"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"required": ["name"]
|
|
67
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '', component: <%= classify(name) %>Component }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [RouterModule.forChild(routes)],
|
|
12
|
-
exports: [RouterModule]
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(name) %>RoutingModule { }
|
|
File without changes
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
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(waitForAsync(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterTestingModule,
|
|
16
|
-
PoPageModule
|
|
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
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: '<%= selector %>',
|
|
5
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
6
|
-
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'],
|
|
7
|
-
standalone: false
|
|
8
|
-
})
|
|
9
|
-
export class <%= classify(name) %>Component implements OnInit {
|
|
10
|
-
|
|
11
|
-
constructor() { }
|
|
12
|
-
|
|
13
|
-
ngOnInit() { }
|
|
14
|
-
|
|
15
|
-
cancel() {
|
|
16
|
-
// cancel action here
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
save() {
|
|
20
|
-
// save action here
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
saveNew() {
|
|
24
|
-
// saveNew action here
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
import { PoModule } from '@po-ui/ng-components';
|
|
5
|
-
|
|
6
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% if (routing) { %>
|
|
7
|
-
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
<%= classify(name) %>Component
|
|
12
|
-
],
|
|
13
|
-
imports: [
|
|
14
|
-
CommonModule,
|
|
15
|
-
PoModule,<% if (routing) { %>
|
|
16
|
-
<%= classify(name) %>RoutingModule<% } %>
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
export class <%= classify(name) %>Module { }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '', component: <%= classify(name) %>Component }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [RouterModule.forChild(routes)],
|
|
12
|
-
exports: [RouterModule]
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(name) %>RoutingModule { }
|
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
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(waitForAsync(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterTestingModule,
|
|
16
|
-
PoPageModule
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
.compileComponents();
|
|
20
|
-
}));
|
|
21
|
-
|
|
22
|
-
beforeEach(() => {
|
|
23
|
-
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
24
|
-
component = fixture.componentInstance;
|
|
25
|
-
fixture.detectChanges();
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should create', () => {
|
|
29
|
-
expect(component).toBeTruthy();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { PoPageModule } from '@po-ui/ng-components';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: '<%= selector %>',
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule,
|
|
10
|
-
PoPageModule,
|
|
11
|
-
],
|
|
12
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
13
|
-
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
14
|
-
})
|
|
15
|
-
export class <%= classify(name) %>Component implements OnInit {
|
|
16
|
-
|
|
17
|
-
constructor() { }
|
|
18
|
-
|
|
19
|
-
ngOnInit() { }
|
|
20
|
-
|
|
21
|
-
cancel() {
|
|
22
|
-
// cancel action here
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
save() {
|
|
26
|
-
// save action here
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
saveNew() {
|
|
30
|
-
// saveNew action here
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = default_1;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const build_component_1 = require("@po-ui/ng-schematics/build-component");
|
|
6
|
-
/** Scaffolds a new <name> component with <po-page-edit> */
|
|
7
|
-
function default_1(options) {
|
|
8
|
-
return (0, schematics_1.chain)([createPageEditComponent(options)]);
|
|
9
|
-
}
|
|
10
|
-
function createPageEditComponent(options) {
|
|
11
|
-
return (0, build_component_1.buildComponent)(options);
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/ui/schematics/ng-generate/po-page-edit/index.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAPD,2DAAyD;AAEzD,0EAAkG;AAElG,2DAA2D;AAC3D,mBAAyB,OAAyB;IAChD,OAAO,IAAA,kBAAK,EAAC,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,uBAAuB,CAAC,OAAyB;IACxD,OAAO,IAAA,gCAAc,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../projects/ui/schematics/ng-generate/po-page-edit/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsPOPageEdit",
|
|
4
|
-
"title": "Page Edit Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"style": {
|
|
8
|
-
"description": "The file extension or preprocessor to use for style files.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "css"
|
|
11
|
-
},
|
|
12
|
-
"project": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "The name of the project.",
|
|
15
|
-
"$default": {
|
|
16
|
-
"$source": "projectName"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"routing": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"description": "When true, creates a routing module.",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"createModule": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "When true, create a component module.",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"name": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "The name to use for the component",
|
|
32
|
-
"$default": {
|
|
33
|
-
"$source": "argv",
|
|
34
|
-
"index": 0
|
|
35
|
-
},
|
|
36
|
-
"x-prompt": "What name would you like to use for the component?"
|
|
37
|
-
},
|
|
38
|
-
"skipTests": {
|
|
39
|
-
"description": "When true, does not create \"spec.ts\" test files for the app.",
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": false,
|
|
42
|
-
"alias": "S",
|
|
43
|
-
"x-user-analytics": 12
|
|
44
|
-
},
|
|
45
|
-
"path": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": "path",
|
|
48
|
-
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
49
|
-
"visible": false
|
|
50
|
-
},
|
|
51
|
-
"prefix": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "The prefix to apply to the generated component selector.",
|
|
54
|
-
"alias": "p",
|
|
55
|
-
"oneOf": [
|
|
56
|
-
{
|
|
57
|
-
"maxLength": 0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"minLength": 1,
|
|
61
|
-
"format": "html-selector"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"required": ["name"]
|
|
67
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '', component: <%= classify(name) %>Component }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [RouterModule.forChild(routes)],
|
|
12
|
-
exports: [RouterModule]
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(name) %>RoutingModule { }
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<po-page-list p-title="<%= classify(name) %>" [p-actions]="actions">
|
|
2
|
-
<% if(dataView === 'table') { %>
|
|
3
|
-
<po-table
|
|
4
|
-
[p-columns]="columns"
|
|
5
|
-
p-container="border"
|
|
6
|
-
[p-items]="items"
|
|
7
|
-
[p-height]="400"
|
|
8
|
-
[p-sort]="true"
|
|
9
|
-
[p-striped]="true">
|
|
10
|
-
</po-table>
|
|
11
|
-
<% } else { %>
|
|
12
|
-
<po-list-view
|
|
13
|
-
p-property-title="name"
|
|
14
|
-
[p-items]="items">
|
|
15
|
-
|
|
16
|
-
<ng-template p-list-view-content-template let-item>
|
|
17
|
-
<div class="po-row">
|
|
18
|
-
<po-info class="po-md-6" p-label="Age" [p-value]="item.age">
|
|
19
|
-
</po-info>
|
|
20
|
-
|
|
21
|
-
<po-info class="po-md-6" p-label="Email" [p-value]="item.email">
|
|
22
|
-
</po-info>
|
|
23
|
-
</div>
|
|
24
|
-
</ng-template>
|
|
25
|
-
|
|
26
|
-
</po-list-view>
|
|
27
|
-
<% }%>
|
|
28
|
-
</po-page-list>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
import { provideHttpClient } from '@angular/common/http';
|
|
4
|
-
|
|
5
|
-
import { PoPageModule, PoInfoModule<% if(dataView === 'table') { %>, PoTableModule <% } else { %>, PoListViewModule <% } %>} from '@po-ui/ng-components';
|
|
6
|
-
|
|
7
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
8
|
-
|
|
9
|
-
describe('<%= classify(name) %>Component', () => {
|
|
10
|
-
let component: <%= classify(name) %>Component;
|
|
11
|
-
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
12
|
-
|
|
13
|
-
beforeEach(waitForAsync(() => {
|
|
14
|
-
TestBed.configureTestingModule({
|
|
15
|
-
imports: [
|
|
16
|
-
RouterTestingModule,
|
|
17
|
-
PoPageModule,
|
|
18
|
-
PoInfoModule,<% if(dataView === 'table') { %>
|
|
19
|
-
PoTableModule<% } else {%>
|
|
20
|
-
PoListViewModule<% } %>
|
|
21
|
-
],
|
|
22
|
-
providers: [provideHttpClient()],
|
|
23
|
-
declarations: [ <%= classify(name) %>Component ]
|
|
24
|
-
})
|
|
25
|
-
.compileComponents();
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
beforeEach(() => {
|
|
29
|
-
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
30
|
-
component = fixture.componentInstance;
|
|
31
|
-
fixture.detectChanges();
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
it('should create', () => {
|
|
35
|
-
expect(component).toBeTruthy();
|
|
36
|
-
});
|
|
37
|
-
});
|