@po-ui/ng-components 6.10.0 → 6.12.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/esm2020/lib/components/po-button/po-button-base.component.mjs +64 -14
- package/esm2020/lib/components/po-button/po-button-type.enum.mjs +10 -0
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-dynamic/po-dynamic-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic.util.mjs +18 -11
- package/esm2020/lib/components/po-field/index.mjs +2 -1
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.module.mjs +20 -0
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +2 -1
- package/esm2020/lib/components/po-field/po-field.module.mjs +15 -13
- package/esm2020/lib/components/po-field/po-upload/po-upload.component.mjs +3 -3
- package/esm2020/lib/components/po-list-view/po-list-view.component.mjs +4 -4
- package/esm2020/lib/components/po-menu/po-menu-base.component.mjs +46 -6
- package/esm2020/lib/components/po-menu/po-menu.component.mjs +5 -5
- package/esm2020/lib/components/po-modal/po-modal-footer/po-modal-footer.component.mjs +2 -2
- package/esm2020/lib/components/po-modal/po-modal.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-default/po-page-default.component.mjs +3 -3
- package/esm2020/lib/components/po-page/po-page-detail/po-page-detail.component.mjs +7 -7
- package/esm2020/lib/components/po-page/po-page-edit/po-page-edit.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-list/po-page-list.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +6 -2
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +19 -5
- package/esm2020/lib/components/po-table/po-table-detail/po-table-detail.component.mjs +40 -40
- package/esm2020/lib/components/po-table/po-table.component.mjs +441 -438
- package/esm2020/lib/components/po-table/po-table.module.mjs +12 -4
- package/esm2020/lib/services/po-notification/po-notification-base.service.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.interface.mjs +1 -1
- package/esm2020/lib/services/po-notification/po-notification.module.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.service.mjs +3 -2
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.component.mjs +49 -32
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.literals.mjs +15 -0
- package/fesm2015/po-ui-ng-components.mjs +1078 -886
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1070 -871
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +40 -9
- package/lib/components/po-button/po-button-type.enum.d.ts +8 -0
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +44 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -0
- package/lib/components/po-dynamic/po-dynamic.util.d.ts +1 -1
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +9 -0
- package/lib/components/po-field/po-field.module.d.ts +54 -54
- package/lib/components/po-menu/po-menu-base.component.d.ts +19 -1
- package/lib/components/po-modal/po-modal-footer/po-modal-footer.component.d.ts +1 -1
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/lib/components/po-table/po-table-base.component.d.ts +2 -0
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +3 -0
- package/lib/components/po-table/po-table.component.d.ts +2 -0
- package/lib/components/po-table/po-table.module.d.ts +14 -12
- package/lib/services/po-notification/po-notification-base.service.d.ts +4 -2
- package/lib/services/po-notification/po-notification.interface.d.ts +5 -1
- package/lib/services/po-notification/po-notification.module.d.ts +3 -1
- package/lib/services/po-notification/po-toaster/po-toaster.component.d.ts +5 -1
- package/lib/services/po-notification/po-toaster/po-toaster.literals.d.ts +14 -0
- package/package.json +4 -4
- package/po-ui-ng-components-6.12.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.spec.js +5 -5
- package/schematics/ng-generate/po-page-default/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-detail/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-edit/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-list/index.spec.js +12 -12
- package/schematics/ng-generate/sidemenu/index.spec.js +4 -4
- package/schematics/ng-update/v2/index.js +1 -1
- 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/po-ui-ng-components-6.10.0.tgz +0 -0
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
exports.default = default_1;
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.12.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -18,14 +18,14 @@ describe('Schematic: ng-add', () => {
|
|
|
18
18
|
skipTests: false
|
|
19
19
|
};
|
|
20
20
|
let appTree;
|
|
21
|
-
beforeEach(() =>
|
|
21
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
22
22
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
23
23
|
appTree = yield runner
|
|
24
24
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
25
25
|
.toPromise();
|
|
26
26
|
}));
|
|
27
27
|
describe('Dependencies:', () => {
|
|
28
|
-
it('should update package.json with @po-ui/ng-components dependency and run nodePackageInstall', () =>
|
|
28
|
+
it('should update package.json with @po-ui/ng-components dependency and run nodePackageInstall', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
29
29
|
const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
|
|
30
30
|
const packageJson = JSON.parse(getFileContent(tree, '/package.json'));
|
|
31
31
|
const dependencies = packageJson.dependencies;
|
|
@@ -35,7 +35,7 @@ describe('Schematic: ng-add', () => {
|
|
|
35
35
|
}));
|
|
36
36
|
});
|
|
37
37
|
describe('Imports:', () => {
|
|
38
|
-
it('should add the PoModule to the project module', () =>
|
|
38
|
+
it('should add the PoModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
39
|
const poModuleName = 'PoModule';
|
|
40
40
|
const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();
|
|
41
41
|
const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
@@ -44,14 +44,14 @@ describe('Schematic: ng-add', () => {
|
|
|
44
44
|
});
|
|
45
45
|
describe('Theme configuration:', () => {
|
|
46
46
|
const defaultThemePath = './node_modules/@po-ui/style/css/po-theme-default.min.css';
|
|
47
|
-
it('should add default theme in styles of build project', () =>
|
|
47
|
+
it('should add default theme in styles of build project', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
48
48
|
var _a;
|
|
49
49
|
const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();
|
|
50
50
|
const workspace = (_a = (0, project_1.getWorkspaceConfigGracefully)(tree)) !== null && _a !== void 0 ? _a : {};
|
|
51
51
|
const project = (0, project_1.getProjectFromWorkspace)(workspace);
|
|
52
52
|
expectProjectStyleFile(project, defaultThemePath);
|
|
53
53
|
}));
|
|
54
|
-
it('shouldn`t add a theme file in styles of build project multiple times', () =>
|
|
54
|
+
it('shouldn`t add a theme file in styles of build project multiple times', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
55
55
|
var _b;
|
|
56
56
|
writeStyleFileToWorkspace(appTree, defaultThemePath);
|
|
57
57
|
const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();
|
|
@@ -17,13 +17,13 @@ describe('po-page-default:', () => {
|
|
|
17
17
|
skipTests: false
|
|
18
18
|
};
|
|
19
19
|
let appTree;
|
|
20
|
-
beforeEach(() =>
|
|
20
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
22
|
appTree = yield runner
|
|
23
23
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
24
|
.toPromise();
|
|
25
25
|
}));
|
|
26
|
-
it('should create <name> component', () =>
|
|
26
|
+
it('should create <name> component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
const componentName = 'supply';
|
|
28
28
|
const tree = yield runner
|
|
29
29
|
.runSchematicAsync('po-page-default', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
@@ -35,7 +35,7 @@ describe('po-page-default:', () => {
|
|
|
35
35
|
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
36
|
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
37
|
}));
|
|
38
|
-
it('should create <name> component and <name> module', () =>
|
|
38
|
+
it('should create <name> component and <name> module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
39
|
const componentName = 'supply';
|
|
40
40
|
const createModule = true;
|
|
41
41
|
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
@@ -43,40 +43,40 @@ describe('po-page-default:', () => {
|
|
|
43
43
|
const files = tree.files;
|
|
44
44
|
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
45
|
}));
|
|
46
|
-
it('should add declaration component in closest module by default', () =>
|
|
46
|
+
it('should add declaration component in closest module by default', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
48
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
49
49
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
50
|
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
51
|
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
52
|
}));
|
|
53
|
-
it('should import <name> component module if createModule is true', () =>
|
|
53
|
+
it('should import <name> component module if createModule is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
54
54
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
55
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
56
56
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
57
|
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
58
|
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
59
|
}));
|
|
60
|
-
it('should generate component.less if style is `less`', () =>
|
|
60
|
+
it('should generate component.less if style is `less`', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
61
61
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
62
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
63
63
|
const files = tree.files;
|
|
64
64
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
65
|
}));
|
|
66
|
-
it('should generate component with stylesheet `css` if options.style is empty', () =>
|
|
66
|
+
it('should generate component with stylesheet `css` if options.style is empty', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
67
67
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
68
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
69
69
|
const files = tree.files;
|
|
70
70
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
71
|
}));
|
|
72
|
-
it('shouldn`t generate component spec if `skipTests` is true', () =>
|
|
72
|
+
it('shouldn`t generate component spec if `skipTests` is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
74
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
75
75
|
const files = tree.files;
|
|
76
76
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
77
|
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
78
|
}));
|
|
79
|
-
it('should generate component in path informed', () =>
|
|
79
|
+
it('should generate component in path informed', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
80
80
|
// create customers component module to use with path option
|
|
81
81
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
82
|
yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
@@ -88,21 +88,21 @@ describe('po-page-default:', () => {
|
|
|
88
88
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
89
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
90
|
}));
|
|
91
|
-
it('should use the custom prefix when create component', () =>
|
|
91
|
+
it('should use the custom prefix when create component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
92
92
|
const prefix = 'wms';
|
|
93
93
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
94
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
95
95
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
96
|
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
97
|
}));
|
|
98
|
-
it('should use the default prefix when create component if prefix is null', () =>
|
|
98
|
+
it('should use the default prefix when create component if prefix is null', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
99
99
|
const prefix = undefined;
|
|
100
100
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
101
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
102
102
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
103
|
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
104
|
}));
|
|
105
|
-
it('should use only the name how prefix when create component if prefix is ""', () =>
|
|
105
|
+
it('should use only the name how prefix when create component if prefix is ""', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
106
106
|
const prefix = '';
|
|
107
107
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
108
|
const tree = yield runner.runSchematicAsync('po-page-default', options, appTree).toPromise();
|
|
@@ -17,13 +17,13 @@ describe('po-page-detail:', () => {
|
|
|
17
17
|
skipTests: false
|
|
18
18
|
};
|
|
19
19
|
let appTree;
|
|
20
|
-
beforeEach(() =>
|
|
20
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
22
|
appTree = yield runner
|
|
23
23
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
24
|
.toPromise();
|
|
25
25
|
}));
|
|
26
|
-
it('should create <name> component', () =>
|
|
26
|
+
it('should create <name> component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
const componentName = 'supply';
|
|
28
28
|
const tree = yield runner
|
|
29
29
|
.runSchematicAsync('po-page-detail', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
@@ -35,7 +35,7 @@ describe('po-page-detail:', () => {
|
|
|
35
35
|
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
36
|
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
37
|
}));
|
|
38
|
-
it('should create <name> component and <name> module', () =>
|
|
38
|
+
it('should create <name> component and <name> module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
39
|
const componentName = 'supply';
|
|
40
40
|
const createModule = true;
|
|
41
41
|
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
@@ -43,40 +43,40 @@ describe('po-page-detail:', () => {
|
|
|
43
43
|
const files = tree.files;
|
|
44
44
|
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
45
|
}));
|
|
46
|
-
it('should add declaration component in closest module by default', () =>
|
|
46
|
+
it('should add declaration component in closest module by default', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
48
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
49
49
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
50
|
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
51
|
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
52
|
}));
|
|
53
|
-
it('should import <name> component module if createModule is true', () =>
|
|
53
|
+
it('should import <name> component module if createModule is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
54
54
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
55
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
56
56
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
57
|
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
58
|
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
59
|
}));
|
|
60
|
-
it('should generate component.less if style is `less`', () =>
|
|
60
|
+
it('should generate component.less if style is `less`', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
61
61
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
62
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
63
63
|
const files = tree.files;
|
|
64
64
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
65
|
}));
|
|
66
|
-
it('should generate component with stylesheet `css` if options.style is empty', () =>
|
|
66
|
+
it('should generate component with stylesheet `css` if options.style is empty', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
67
67
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
68
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
69
69
|
const files = tree.files;
|
|
70
70
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
71
|
}));
|
|
72
|
-
it('shouldn`t generate component spec if `skipTests` is true', () =>
|
|
72
|
+
it('shouldn`t generate component spec if `skipTests` is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
74
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
75
75
|
const files = tree.files;
|
|
76
76
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
77
|
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
78
|
}));
|
|
79
|
-
it('should generate component in path informed', () =>
|
|
79
|
+
it('should generate component in path informed', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
80
80
|
// create customers component module to use with path option
|
|
81
81
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
82
|
yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
@@ -88,21 +88,21 @@ describe('po-page-detail:', () => {
|
|
|
88
88
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
89
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
90
|
}));
|
|
91
|
-
it('should use the custom prefix when create component', () =>
|
|
91
|
+
it('should use the custom prefix when create component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
92
92
|
const prefix = 'wms';
|
|
93
93
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
94
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
95
95
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
96
|
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
97
|
}));
|
|
98
|
-
it('should use the default prefix when create component if prefix is null', () =>
|
|
98
|
+
it('should use the default prefix when create component if prefix is null', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
99
99
|
const prefix = undefined;
|
|
100
100
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
101
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
102
102
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
103
|
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
104
|
}));
|
|
105
|
-
it('should use only the name how prefix when create component if prefix is ""', () =>
|
|
105
|
+
it('should use only the name how prefix when create component if prefix is ""', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
106
106
|
const prefix = '';
|
|
107
107
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
108
|
const tree = yield runner.runSchematicAsync('po-page-detail', options, appTree).toPromise();
|
|
@@ -17,13 +17,13 @@ describe('po-page-edit:', () => {
|
|
|
17
17
|
skipTests: false
|
|
18
18
|
};
|
|
19
19
|
let appTree;
|
|
20
|
-
beforeEach(() =>
|
|
20
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
22
|
appTree = yield runner
|
|
23
23
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
24
|
.toPromise();
|
|
25
25
|
}));
|
|
26
|
-
it('should create <name> component', () =>
|
|
26
|
+
it('should create <name> component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
const componentName = 'supply';
|
|
28
28
|
const tree = yield runner
|
|
29
29
|
.runSchematicAsync('po-page-edit', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
@@ -35,7 +35,7 @@ describe('po-page-edit:', () => {
|
|
|
35
35
|
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
36
|
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
37
|
}));
|
|
38
|
-
it('should create <name> component and <name> module', () =>
|
|
38
|
+
it('should create <name> component and <name> module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
39
|
const componentName = 'supply';
|
|
40
40
|
const createModule = true;
|
|
41
41
|
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
@@ -43,40 +43,40 @@ describe('po-page-edit:', () => {
|
|
|
43
43
|
const files = tree.files;
|
|
44
44
|
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
45
|
}));
|
|
46
|
-
it('should add declaration component in closest module by default', () =>
|
|
46
|
+
it('should add declaration component in closest module by default', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
48
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
49
49
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
50
|
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
51
|
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
52
|
}));
|
|
53
|
-
it('should import <name> component module if createModule is true', () =>
|
|
53
|
+
it('should import <name> component module if createModule is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
54
54
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
55
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
56
56
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
57
|
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
58
|
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
59
|
}));
|
|
60
|
-
it('should generate component.less if style is `less`', () =>
|
|
60
|
+
it('should generate component.less if style is `less`', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
61
61
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
62
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
63
63
|
const files = tree.files;
|
|
64
64
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
65
|
}));
|
|
66
|
-
it('should generate component with stylesheet `css` if options.style is empty', () =>
|
|
66
|
+
it('should generate component with stylesheet `css` if options.style is empty', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
67
67
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
68
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
69
69
|
const files = tree.files;
|
|
70
70
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
71
|
}));
|
|
72
|
-
it('shouldn`t generate component spec if `skipTests` is true', () =>
|
|
72
|
+
it('shouldn`t generate component spec if `skipTests` is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
74
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
75
75
|
const files = tree.files;
|
|
76
76
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
77
|
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
78
|
}));
|
|
79
|
-
it('should generate component in path informed', () =>
|
|
79
|
+
it('should generate component in path informed', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
80
80
|
// create customers component module to use with path option
|
|
81
81
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
82
|
yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
@@ -88,21 +88,21 @@ describe('po-page-edit:', () => {
|
|
|
88
88
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
89
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
90
|
}));
|
|
91
|
-
it('should use the custom prefix when create component', () =>
|
|
91
|
+
it('should use the custom prefix when create component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
92
92
|
const prefix = 'wms';
|
|
93
93
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
94
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
95
95
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
96
|
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
97
|
}));
|
|
98
|
-
it('should use the default prefix when create component if prefix is null', () =>
|
|
98
|
+
it('should use the default prefix when create component if prefix is null', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
99
99
|
const prefix = undefined;
|
|
100
100
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
101
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
102
102
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
103
|
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
104
|
}));
|
|
105
|
-
it('should use only the name how prefix when create component if prefix is ""', () =>
|
|
105
|
+
it('should use only the name how prefix when create component if prefix is ""', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
106
106
|
const prefix = '';
|
|
107
107
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
108
|
const tree = yield runner.runSchematicAsync('po-page-edit', options, appTree).toPromise();
|
|
@@ -17,13 +17,13 @@ describe('po-page-list:', () => {
|
|
|
17
17
|
skipTests: false
|
|
18
18
|
};
|
|
19
19
|
let appTree;
|
|
20
|
-
beforeEach(() =>
|
|
20
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
22
|
appTree = yield runner
|
|
23
23
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
24
|
.toPromise();
|
|
25
25
|
}));
|
|
26
|
-
it('should create <name> component', () =>
|
|
26
|
+
it('should create <name> component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
const componentName = 'supply';
|
|
28
28
|
const tree = yield runner
|
|
29
29
|
.runSchematicAsync('po-page-list', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
@@ -35,7 +35,7 @@ describe('po-page-list:', () => {
|
|
|
35
35
|
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
36
|
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
37
|
}));
|
|
38
|
-
it('should create <name> component and <name> module', () =>
|
|
38
|
+
it('should create <name> component and <name> module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
39
|
const componentName = 'supply';
|
|
40
40
|
const createModule = true;
|
|
41
41
|
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
@@ -43,40 +43,40 @@ describe('po-page-list:', () => {
|
|
|
43
43
|
const files = tree.files;
|
|
44
44
|
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
45
|
}));
|
|
46
|
-
it('should add declaration component in closest module by default', () =>
|
|
46
|
+
it('should add declaration component in closest module by default', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
48
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
49
49
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
50
|
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
51
|
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
52
|
}));
|
|
53
|
-
it('should import <name> component module if createModule is true', () =>
|
|
53
|
+
it('should import <name> component module if createModule is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
54
54
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
55
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
56
56
|
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
57
|
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
58
|
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
59
|
}));
|
|
60
|
-
it('should generate component.less if style is `less`', () =>
|
|
60
|
+
it('should generate component.less if style is `less`', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
61
61
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
62
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
63
63
|
const files = tree.files;
|
|
64
64
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
65
|
}));
|
|
66
|
-
it('should generate component with stylesheet `css` if options.style is empty', () =>
|
|
66
|
+
it('should generate component with stylesheet `css` if options.style is empty', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
67
67
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
68
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
69
69
|
const files = tree.files;
|
|
70
70
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
71
|
}));
|
|
72
|
-
it('shouldn`t generate component spec if `skipTests` is true', () =>
|
|
72
|
+
it('shouldn`t generate component spec if `skipTests` is true', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
74
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
75
75
|
const files = tree.files;
|
|
76
76
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
77
|
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
78
|
}));
|
|
79
|
-
it('should generate component in path informed', () =>
|
|
79
|
+
it('should generate component in path informed', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
80
80
|
// create customers component module to use with path option
|
|
81
81
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
82
|
yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
@@ -88,21 +88,21 @@ describe('po-page-list:', () => {
|
|
|
88
88
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
89
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
90
|
}));
|
|
91
|
-
it('should use the custom prefix when create component', () =>
|
|
91
|
+
it('should use the custom prefix when create component', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
92
92
|
const prefix = 'wms';
|
|
93
93
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
94
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
95
95
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
96
|
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
97
|
}));
|
|
98
|
-
it('should use the default prefix when create component if prefix is null', () =>
|
|
98
|
+
it('should use the default prefix when create component if prefix is null', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
99
99
|
const prefix = undefined;
|
|
100
100
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
101
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
102
102
|
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
103
|
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
104
|
}));
|
|
105
|
-
it('should use only the name how prefix when create component if prefix is ""', () =>
|
|
105
|
+
it('should use only the name how prefix when create component if prefix is ""', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
106
106
|
const prefix = '';
|
|
107
107
|
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
108
|
const tree = yield runner.runSchematicAsync('po-page-list', options, appTree).toPromise();
|
|
@@ -17,14 +17,14 @@ describe('sidemenu:', () => {
|
|
|
17
17
|
skipTests: false
|
|
18
18
|
};
|
|
19
19
|
let appTree;
|
|
20
|
-
beforeEach(() =>
|
|
20
|
+
beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
22
|
appTree = yield runner
|
|
23
23
|
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
24
|
.toPromise();
|
|
25
25
|
}));
|
|
26
26
|
describe('Imports:', () => {
|
|
27
|
-
it('should add the RouterModule to the project module', () =>
|
|
27
|
+
it('should add the RouterModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
28
28
|
const routerModuleName = 'RouterModule';
|
|
29
29
|
const tree = yield runner.runSchematicAsync('sidemenu', componentOptions, appTree).toPromise();
|
|
30
30
|
const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
@@ -32,14 +32,14 @@ describe('sidemenu:', () => {
|
|
|
32
32
|
}));
|
|
33
33
|
});
|
|
34
34
|
describe('Component: ', () => {
|
|
35
|
-
it('should create app.component.ts|html|css', () =>
|
|
35
|
+
it('should create app.component.ts|html|css', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
36
36
|
const tree = yield runner.runSchematicAsync('sidemenu', componentOptions, appTree).toPromise();
|
|
37
37
|
const files = tree.files;
|
|
38
38
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/app.component.ts`);
|
|
39
39
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/app.component.html`);
|
|
40
40
|
expect(files).toContain(`/projects/${componentOptions.name}/src/app/app.component.${componentOptions.style}`);
|
|
41
41
|
}));
|
|
42
|
-
it('should contains `po-wrapper`, `po-toolbar` and `po-menu` in app.component.html', () =>
|
|
42
|
+
it('should contains `po-wrapper`, `po-toolbar` and `po-menu` in app.component.html', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
43
43
|
const poWrapper = '<div class="po-wrapper">';
|
|
44
44
|
const poToolbar = 'po-toolbar';
|
|
45
45
|
const poMenu = '<po-menu [p-menus]="menus"></po-menu>';
|
|
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
|
10
10
|
const changes_1 = require("./changes");
|
|
11
11
|
function updateToV2() {
|
|
12
12
|
return (0, schematics_1.chain)([
|
|
13
|
-
updatePackageJson('6.
|
|
13
|
+
updatePackageJson('6.12.0', changes_1.dependeciesChanges),
|
|
14
14
|
(0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
|
|
15
15
|
(0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
|
|
16
16
|
createUpgradeRule(),
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function updateToV3() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.12.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
exports.updateToV3 = updateToV3;
|
|
13
13
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.12.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.12.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.12.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|