devextreme-schematics 1.7.3 → 1.8.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +7 -7
- package/src/add-app-template/schema.json +2 -2
- package/src/add-layout/files/devextreme.json +30 -1
- package/src/add-layout/files/src/app/__name__.component.scss +0 -2
- package/src/add-layout/files/src/app/__name__.component.ts +2 -1
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.html +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.scss +0 -6
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.ts +12 -5
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.html +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.scss +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.ts +11 -5
- package/src/add-layout/files/src/app/layouts/single-card/single-card.component.scss +2 -4
- package/src/add-layout/files/src/app/shared/components/create-account-form/create-account-form.component.scss +3 -5
- package/src/add-layout/files/src/app/shared/components/footer/footer.component.scss +7 -4
- package/src/add-layout/files/src/app/shared/components/header/header.component.html +9 -10
- package/src/add-layout/files/src/app/shared/components/header/header.component.scss +4 -7
- package/src/add-layout/files/src/app/shared/components/header/header.component.ts +3 -1
- package/src/add-layout/files/src/app/shared/components/login-form/login-form.component.scss +1 -4
- package/src/add-layout/files/src/app/shared/components/reset-password-form/reset-password-form.component.scss +1 -3
- package/src/add-layout/files/src/app/shared/components/side-navigation-menu/side-navigation-menu.component.scss +13 -39
- package/src/add-layout/files/src/app/shared/components/theme-switcher/theme-switcher.component.ts +33 -0
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.html +13 -18
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.scss +38 -54
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.ts +3 -7
- package/src/add-layout/files/src/app/shared/services/index.ts +1 -0
- package/src/add-layout/files/src/app/shared/services/theme.service.ts +49 -0
- package/src/add-layout/files/src/dx-styles.scss +76 -52
- package/src/add-layout/files/src/themes/metadata.additional.dark.json +11 -0
- package/src/add-layout/files/src/themes/metadata.additional.json +1 -1
- package/src/add-layout/files/src/themes/metadata.base.dark.json +8 -0
- package/src/add-layout/files/src/themes/metadata.base.json +1 -1
- package/src/add-layout/files/src/variables.scss +37 -0
- package/src/add-layout/index.js +3 -0
- package/src/add-layout/index.js.map +1 -1
- package/src/add-layout/index.ts +3 -0
- package/src/add-layout/index_spec.js +12 -9
- package/src/add-layout/index_spec.js.map +1 -1
- package/src/add-layout/index_spec.ts +14 -9
- package/src/add-layout/schema.json +1 -1
- package/src/add-sample-views/files/pages/home/home.component.html +182 -34
- package/src/add-sample-views/files/pages/home/home.component.scss +19 -16
- package/src/add-sample-views/files/pages/profile/profile.component.html +1 -1
- package/src/add-sample-views/files/pages/tasks/tasks.component.html +3 -2
- package/src/add-sample-views/files/pages/tasks/tasks.component.scss +3 -0
- package/src/add-sample-views/files/pages/tasks/tasks.component.ts +1 -0
- package/src/add-sample-views/index_spec.js +2 -1
- package/src/add-sample-views/index_spec.js.map +1 -1
- package/src/add-sample-views/index_spec.ts +2 -1
- package/src/add-view/index.js +38 -11
- package/src/add-view/index.js.map +1 -1
- package/src/add-view/index.ts +41 -14
- package/src/add-view/index_spec.js +7 -4
- package/src/add-view/index_spec.js.map +1 -1
- package/src/add-view/index_spec.ts +7 -4
- package/src/install/index_spec.js +3 -2
- package/src/install/index_spec.js.map +1 -1
- package/src/install/index_spec.ts +3 -2
- package/src/install/schema.json +1 -1
- package/src/utility/latest-versions.js +2 -2
- package/src/utility/latest-versions.js.map +1 -1
- package/src/utility/latest-versions.ts +2 -2
package/src/add-view/index.ts
CHANGED
@@ -120,25 +120,50 @@ function getModuleName(addRoute: boolean, moduleName: string) {
|
|
120
120
|
return moduleName;
|
121
121
|
}
|
122
122
|
|
123
|
-
function
|
123
|
+
function overwriteModuleContent(options: any, path: string, content: string) {
|
124
124
|
return async (host: Tree) => {
|
125
|
-
const
|
126
|
-
const path = `${dirname(options.name)}/${name}`;
|
127
|
-
const title = humanize(name);
|
128
|
-
const componentPath = `/${await getApplicationPath(host, options.project)}${path}/${name}.component.html`;
|
125
|
+
const componentPath = `/${await getApplicationPath(host, options.project)}${path}`;
|
129
126
|
if (host.exists(componentPath)) {
|
130
|
-
host.overwrite(
|
131
|
-
componentPath,
|
132
|
-
`<h2 class="content-block">${title}</h2>
|
133
|
-
<div class="content-block">
|
134
|
-
<div class="dx-card responsive-paddings">Put your content here</div>
|
135
|
-
</div>
|
136
|
-
`);
|
127
|
+
host.overwrite(componentPath, content);
|
137
128
|
}
|
138
129
|
return host;
|
139
130
|
};
|
140
131
|
}
|
141
132
|
|
133
|
+
function addContentToView(options: any) {
|
134
|
+
const name = strings.dasherize(basename(normalize(options.name)));
|
135
|
+
const path = `${dirname(options.name)}/${name}`;
|
136
|
+
const title = humanize(name);
|
137
|
+
const componentPath = `${path}/${name}.component.html`;
|
138
|
+
const content = `<h2>${title}</h2>
|
139
|
+
<div class="content-block">
|
140
|
+
<div class="dx-card responsive-paddings">Put your content here</div>
|
141
|
+
</div>
|
142
|
+
`;
|
143
|
+
|
144
|
+
return overwriteModuleContent(options, componentPath, content);
|
145
|
+
}
|
146
|
+
|
147
|
+
async function addContentToTS(options: any) {
|
148
|
+
const name = strings.dasherize(basename(normalize(options.name)));
|
149
|
+
const path = `${dirname(options.name)}/${name}`;
|
150
|
+
const componentPath = `${path}/${name}.component.ts`;
|
151
|
+
const content = `import { Component } from '@angular/core';
|
152
|
+
|
153
|
+
@Component({
|
154
|
+
selector: 'app-new-page',
|
155
|
+
templateUrl: './new-page.component.html',
|
156
|
+
styleUrl: './new-page.component.css',
|
157
|
+
standalone: false
|
158
|
+
})
|
159
|
+
export class NewPageComponent {
|
160
|
+
|
161
|
+
}
|
162
|
+
`;
|
163
|
+
|
164
|
+
return overwriteModuleContent(options, componentPath, content);
|
165
|
+
}
|
166
|
+
|
142
167
|
export default function(options: any): Rule {
|
143
168
|
return async (host: Tree) => {
|
144
169
|
const addRoute = options.addRoute;
|
@@ -152,9 +177,11 @@ export default function(options: any): Rule {
|
|
152
177
|
module,
|
153
178
|
skipTests: options.skipTests,
|
154
179
|
inlineStyle: options.inlineStyle,
|
155
|
-
prefix: options.prefix
|
180
|
+
prefix: options.prefix,
|
181
|
+
standalone: false
|
156
182
|
}),
|
157
|
-
addContentToView({ name, project }) as any
|
183
|
+
addContentToView({ name, project }) as any,
|
184
|
+
addContentToTS({ name, project }) as any
|
158
185
|
];
|
159
186
|
|
160
187
|
if (addRoute) {
|
@@ -21,7 +21,8 @@ describe('view', () => {
|
|
21
21
|
routing: true,
|
22
22
|
style: 'css',
|
23
23
|
skipTests: false,
|
24
|
-
skipPackageJson: false
|
24
|
+
skipPackageJson: false,
|
25
|
+
standalone: false
|
25
26
|
};
|
26
27
|
const workspaceOptions = {
|
27
28
|
name: 'workspace',
|
@@ -51,8 +52,10 @@ describe('view', () => {
|
|
51
52
|
tree = yield runner.runSchematic('add-view', componentOptions, appTree);
|
52
53
|
expect(tree.files).toContain('/src/app/pages/test/test.component.ts');
|
53
54
|
expect(tree.files).toContain('/src/app/pages/test/test.component.html');
|
54
|
-
const
|
55
|
-
|
55
|
+
const contentHTML = tree.readContent('/src/app/pages/test/test.component.html');
|
56
|
+
const contentTS = tree.readContent('/src/app/pages/test/test.component.ts');
|
57
|
+
expect(contentHTML).toMatch(/<h2>Test<\/h2>/);
|
58
|
+
expect(contentTS).toContain('standalone: false');
|
56
59
|
}));
|
57
60
|
it('should add view to default routing module', () => __awaiter(void 0, void 0, void 0, function* () {
|
58
61
|
const options = Object.assign(Object.assign({}, componentOptions), { addRoute: true });
|
@@ -127,7 +130,7 @@ describe('view', () => {
|
|
127
130
|
}
|
128
131
|
];`);
|
129
132
|
const pageContent = tree.readContent('/src/app/pages/some-test/some-test.component.html');
|
130
|
-
expect(pageContent).toMatch(/<h2
|
133
|
+
expect(pageContent).toMatch(/<h2>Some Test<\/h2>/);
|
131
134
|
}));
|
132
135
|
it('should create new view with path', () => __awaiter(void 0, void 0, void 0, function* () {
|
133
136
|
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAO;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 'css',
|
15
15
|
skipTests: false,
|
16
|
-
skipPackageJson: false
|
16
|
+
skipPackageJson: false,
|
17
|
+
standalone: false
|
17
18
|
};
|
18
19
|
|
19
20
|
const workspaceOptions: WorkspaceOptions = {
|
@@ -50,9 +51,11 @@ describe('view', () => {
|
|
50
51
|
expect(tree.files).toContain('/src/app/pages/test/test.component.ts');
|
51
52
|
expect(tree.files).toContain('/src/app/pages/test/test.component.html');
|
52
53
|
|
53
|
-
const
|
54
|
+
const contentHTML = tree.readContent('/src/app/pages/test/test.component.html');
|
55
|
+
const contentTS = tree.readContent('/src/app/pages/test/test.component.ts');
|
54
56
|
|
55
|
-
expect(
|
57
|
+
expect(contentHTML).toMatch(/<h2>Test<\/h2>/);
|
58
|
+
expect(contentTS).toContain('standalone: false');
|
56
59
|
});
|
57
60
|
|
58
61
|
it('should add view to default routing module', async () => {
|
@@ -140,7 +143,7 @@ describe('view', () => {
|
|
140
143
|
}
|
141
144
|
];`);
|
142
145
|
const pageContent = tree.readContent('/src/app/pages/some-test/some-test.component.html');
|
143
|
-
expect(pageContent).toMatch(/<h2
|
146
|
+
expect(pageContent).toMatch(/<h2>Some Test<\/h2>/);
|
144
147
|
});
|
145
148
|
|
146
149
|
it('should create new view with path', async () => {
|
@@ -27,7 +27,7 @@ describe('install', () => {
|
|
27
27
|
};
|
28
28
|
const workspaceOptions = {
|
29
29
|
name: 'workspace',
|
30
|
-
version: '
|
30
|
+
version: '17.0.0'
|
31
31
|
};
|
32
32
|
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
33
33
|
const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
|
@@ -80,7 +80,8 @@ describe('install', () => {
|
|
80
80
|
routing: true,
|
81
81
|
style: 'css',
|
82
82
|
skipTests: false,
|
83
|
-
skipPackageJson: false
|
83
|
+
skipPackageJson: false,
|
84
|
+
standalone: false
|
84
85
|
};
|
85
86
|
appTree = yield schematicRunner.runSchematic('application', secondAppOptions, appTree);
|
86
87
|
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAC7B,gEAA4D;AAE5D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,8CAA8C;IAC9C,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;KACvB,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,QAAQ;KAClB,CAAC;IAEF,MAAM,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC,wDAAwD,CAAC,CAAC;IAC9G,MAAM,eAAe,GAAG,IAAI,6BAAmB,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,CAAC;IACpG,IAAI,OAAqB,CAAC;IAE1B,UAAU,CAAC,GAAS,EAAE;QACpB,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAS,EAAE;QAC1D,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,IAAI,GAAG,MAAM,MAAM,CA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,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEhG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;QAExE,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzG,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -20,7 +20,7 @@ describe('install', () => {
|
|
20
20
|
|
21
21
|
const workspaceOptions: WorkspaceOptions = {
|
22
22
|
name: 'workspace',
|
23
|
-
version: '
|
23
|
+
version: '17.0.0'
|
24
24
|
};
|
25
25
|
|
26
26
|
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
@@ -86,7 +86,8 @@ describe('install', () => {
|
|
86
86
|
routing: true,
|
87
87
|
style: 'css',
|
88
88
|
skipTests: false,
|
89
|
-
skipPackageJson: false
|
89
|
+
skipPackageJson: false,
|
90
|
+
standalone: false
|
90
91
|
};
|
91
92
|
|
92
93
|
appTree = await schematicRunner.runSchematic('application', secondAppOptions, appTree);
|
package/src/install/schema.json
CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.latestVersions = void 0;
|
4
4
|
// TODO: implement
|
5
5
|
exports.latestVersions = {
|
6
|
-
'devextreme': '24.
|
7
|
-
'devextreme-angular': '24.
|
6
|
+
'devextreme': '24.2.2-beta',
|
7
|
+
'devextreme-angular': '24.2.2-beta',
|
8
8
|
'devextreme-cli': 'latest'
|
9
9
|
};
|
10
10
|
//# sourceMappingURL=latest-versions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"latest-versions.js","sourceRoot":"","sources":["latest-versions.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AACL,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"latest-versions.js","sourceRoot":"","sources":["latest-versions.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AACL,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,aAAa;IACnC,gBAAgB,EAAE,QAAQ;CAC3B,CAAC"}
|