@schematics/angular 8.3.0-rc.0 → 8.3.3
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.
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
margin: 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.spacer {
|
|
34
|
+
flex: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
.toolbar {
|
|
34
38
|
height: 60px;
|
|
35
39
|
margin: -8px;
|
|
@@ -44,6 +48,15 @@
|
|
|
44
48
|
margin: 0 16px;
|
|
45
49
|
}
|
|
46
50
|
|
|
51
|
+
.toolbar #twitter-logo {
|
|
52
|
+
height: 40px;
|
|
53
|
+
margin: 0 16px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toolbar #twitter-logo:hover {
|
|
57
|
+
opacity: 0.8;
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
.content {
|
|
48
61
|
display: flex;
|
|
49
62
|
margin: 32px auto;
|
|
@@ -290,6 +303,27 @@
|
|
|
290
303
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="
|
|
291
304
|
/>
|
|
292
305
|
<span>Welcome</span>
|
|
306
|
+
<div class="spacer"></div>
|
|
307
|
+
<a aria-label="Angular on twitter" target="_blank" rel="noopener" href="https://twitter.com/angular" title="Twitter">
|
|
308
|
+
|
|
309
|
+
<svg id="twitter-logo" height="24" data-name="Logo — FIXED" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
|
|
310
|
+
<defs>
|
|
311
|
+
<style>
|
|
312
|
+
.cls-1 {
|
|
313
|
+
fill: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.cls-2 {
|
|
317
|
+
fill: #ffffff;
|
|
318
|
+
}
|
|
319
|
+
</style>
|
|
320
|
+
</defs>
|
|
321
|
+
<rect class="cls-1" width="400" height="400" />
|
|
322
|
+
<path class="cls-2" d="M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"
|
|
323
|
+
/>
|
|
324
|
+
</svg>
|
|
325
|
+
|
|
326
|
+
</a>
|
|
293
327
|
</div>
|
|
294
328
|
|
|
295
329
|
<div class="content" role="main">
|
package/guard/index.js
CHANGED
|
@@ -12,23 +12,20 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
12
12
|
const lint_fix_1 = require("../utility/lint-fix");
|
|
13
13
|
const parse_name_1 = require("../utility/parse-name");
|
|
14
14
|
const workspace_1 = require("../utility/workspace");
|
|
15
|
+
const schema_1 = require("./schema");
|
|
15
16
|
function default_1(options) {
|
|
16
17
|
return async (host) => {
|
|
17
18
|
if (options.path === undefined) {
|
|
18
19
|
options.path = await workspace_1.createDefaultPath(host, options.project);
|
|
19
20
|
}
|
|
20
|
-
if (options.implements
|
|
21
|
-
|
|
21
|
+
if (!options.implements) {
|
|
22
|
+
throw new schematics_1.SchematicsException('Option "implements" is required.');
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
let implementationImports =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
implementationImports = `${
|
|
28
|
-
// As long as we aren't in IE... ;)
|
|
29
|
-
if (options.implements.includes('CanLoad')) {
|
|
30
|
-
implementationImports = `${implementationImports}Route, UrlSegment, `;
|
|
31
|
-
}
|
|
24
|
+
const implementations = options.implements.join(', ');
|
|
25
|
+
let implementationImports = `${implementations}, `;
|
|
26
|
+
// As long as we aren't in IE... ;)
|
|
27
|
+
if (options.implements.includes(schema_1.Implement.CanLoad)) {
|
|
28
|
+
implementationImports = `${implementationImports}Route, UrlSegment, `;
|
|
32
29
|
}
|
|
33
30
|
const parsedPath = parse_name_1.parseName(options.path, options.name);
|
|
34
31
|
options.name = parsedPath.name;
|
package/guard/schema.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Schema {
|
|
|
9
9
|
/**
|
|
10
10
|
* Specifies which interfaces to implement.
|
|
11
11
|
*/
|
|
12
|
-
implements?:
|
|
12
|
+
implements?: Implement[];
|
|
13
13
|
/**
|
|
14
14
|
* When true, applies lint fixes after generating the guard.
|
|
15
15
|
*/
|
|
@@ -37,3 +37,8 @@ export interface Schema {
|
|
|
37
37
|
*/
|
|
38
38
|
spec?: boolean;
|
|
39
39
|
}
|
|
40
|
+
export declare enum Implement {
|
|
41
|
+
CanActivate = "CanActivate",
|
|
42
|
+
CanActivateChild = "CanActivateChild",
|
|
43
|
+
CanLoad = "CanLoad"
|
|
44
|
+
}
|
package/guard/schema.js
CHANGED
|
@@ -2,3 +2,9 @@
|
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
3
|
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
var Implement;
|
|
6
|
+
(function (Implement) {
|
|
7
|
+
Implement["CanActivate"] = "CanActivate";
|
|
8
|
+
Implement["CanActivateChild"] = "CanActivateChild";
|
|
9
|
+
Implement["CanLoad"] = "CanLoad";
|
|
10
|
+
})(Implement = exports.Implement || (exports.Implement = {}));
|
package/guard/schema.json
CHANGED
|
@@ -55,8 +55,17 @@
|
|
|
55
55
|
"description": "Specifies which interfaces to implement.",
|
|
56
56
|
"uniqueItems": true,
|
|
57
57
|
"items": {
|
|
58
|
+
"enum": [
|
|
59
|
+
"CanActivate",
|
|
60
|
+
"CanActivateChild",
|
|
61
|
+
"CanLoad"
|
|
62
|
+
],
|
|
58
63
|
"type": "string"
|
|
59
64
|
},
|
|
65
|
+
"default": [
|
|
66
|
+
"CanActivate"
|
|
67
|
+
],
|
|
68
|
+
"minItems": 1,
|
|
60
69
|
"x-prompt": {
|
|
61
70
|
"message": "Which interfaces would you like to implement?",
|
|
62
71
|
"type": "list",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"schematics": "./collection.json",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@angular-devkit/core": "8.3.
|
|
18
|
-
"@angular-devkit/schematics": "8.3.
|
|
17
|
+
"@angular-devkit/core": "8.3.3",
|
|
18
|
+
"@angular-devkit/schematics": "8.3.3"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.latestVersions = {
|
|
11
11
|
// These versions should be kept up to date with latest Angular peer dependencies.
|
|
12
|
-
Angular: '~8.2.
|
|
12
|
+
Angular: '~8.2.4',
|
|
13
13
|
RxJs: '~6.4.0',
|
|
14
14
|
ZoneJs: '~0.9.1',
|
|
15
15
|
TypeScript: '~3.5.3',
|
|
16
16
|
TsLib: '^1.10.0',
|
|
17
17
|
// The versions below must be manually updated when making a new devkit release.
|
|
18
|
-
DevkitBuildAngular: '~0.803.
|
|
19
|
-
DevkitBuildNgPackagr: '~0.803.
|
|
20
|
-
DevkitBuildWebpack: '~0.803.
|
|
21
|
-
AngularPWA: '~0.803.
|
|
22
|
-
tsickle: '^0.
|
|
18
|
+
DevkitBuildAngular: '~0.803.3',
|
|
19
|
+
DevkitBuildNgPackagr: '~0.803.3',
|
|
20
|
+
DevkitBuildWebpack: '~0.803.3',
|
|
21
|
+
AngularPWA: '~0.803.3',
|
|
22
|
+
tsickle: '^0.37.0',
|
|
23
23
|
ngPackagr: '^5.4.0',
|
|
24
24
|
};
|