@coolon/angular-ui-powerups 14.35.0 → 14.36.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/interaction/activity.mjs +2 -1
- package/esm2020/lib/interaction/components/activity-container/activity-container.component.mjs +42 -19
- package/esm2020/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +30 -4
- package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +2 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs +70 -21
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +70 -21
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +11 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +2 -2
- package/package.json +1 -1
- package/schematics/activity/index.d.ts +0 -3
- package/schematics/activity/index.js +0 -32
- package/schematics/activity/index.js.map +0 -1
- package/schematics/activity/index.spec.d.ts +0 -1
- package/schematics/activity/index.spec.js +0 -364
- package/schematics/activity/index.spec.js.map +0 -1
- package/schematics/activity/schema.d.ts +0 -4
- package/schematics/activity/schema.js +0 -3
- package/schematics/activity/schema.js.map +0 -1
- package/schematics/activity/schema.json +0 -27
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +0 -5
- package/schematics/activity/templates/component/__name@dasherize__.component.scss.template +0 -4
- package/schematics/activity/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +0 -40
- package/schematics/activity/templates/component/__name@dasherize__.i18n.yml.template +0 -9
- package/schematics/aup-i18n/index.d.ts +0 -4
- package/schematics/aup-i18n/index.js +0 -86
- package/schematics/aup-i18n/index.js.map +0 -1
- package/schematics/aup-i18n/schema.d.ts +0 -3
- package/schematics/aup-i18n/schema.js +0 -3
- package/schematics/aup-i18n/schema.js.map +0 -1
- package/schematics/aup-i18n/schema.json +0 -18
- package/schematics/aup-i18n/templates/app/aup.i18n.yml.template +0 -80
- package/schematics/bootstrap-app/index.d.ts +0 -4
- package/schematics/bootstrap-app/index.js +0 -109
- package/schematics/bootstrap-app/index.js.map +0 -1
- package/schematics/bootstrap-app/schema.d.ts +0 -3
- package/schematics/bootstrap-app/schema.js +0 -3
- package/schematics/bootstrap-app/schema.js.map +0 -1
- package/schematics/bootstrap-app/schema.json +0 -18
- package/schematics/bootstrap-app/templates/i18n.config.json.template +0 -11
- package/schematics/bootstrap-app/templates/src/app/app-routing.module.ts.template +0 -23
- package/schematics/bootstrap-app/templates/src/app/app.component.html.template +0 -7
- package/schematics/bootstrap-app/templates/src/app/app.component.scss.template +0 -12
- package/schematics/bootstrap-app/templates/src/app/app.component.ts.template +0 -19
- package/schematics/bootstrap-app/templates/src/app/app.module.ts.template +0 -74
- package/schematics/bootstrap-app/templates/src/app/components/components.module.ts.template +0 -16
- package/schematics/bootstrap-app/templates/src/app/i18n.ts.template +0 -9
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.eot +0 -0
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.ijmap +0 -1
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.svg +0 -2373
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.ttf +0 -0
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.woff +0 -0
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.woff2 +0 -0
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/codepoints +0 -932
- package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/material-icons.css +0 -36
- package/schematics/bootstrap-app/templates/src/index.html.template +0 -13
- package/schematics/bootstrap-app/templates/src/styles/global-variables.scss.template +0 -13
- package/schematics/bootstrap-app/templates/src/styles.scss.template +0 -85
- package/schematics/collection.json +0 -48
- package/schematics/component/index.d.ts +0 -3
- package/schematics/component/index.js +0 -32
- package/schematics/component/index.js.map +0 -1
- package/schematics/component/index.spec.d.ts +0 -1
- package/schematics/component/index.spec.js +0 -364
- package/schematics/component/index.spec.js.map +0 -1
- package/schematics/component/schema.d.ts +0 -4
- package/schematics/component/schema.js +0 -3
- package/schematics/component/schema.js.map +0 -1
- package/schematics/component/schema.json +0 -27
- package/schematics/component/templates/component/__name@dasherize__.component.html.template +0 -1
- package/schematics/component/templates/component/__name@dasherize__.component.scss.template +0 -4
- package/schematics/component/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
- package/schematics/component/templates/component/__name@dasherize__.component.ts.template +0 -23
- package/schematics/component/templates/component/__name@dasherize__.i18n.yml.template +0 -1
- package/schematics/ng-add/index.d.ts +0 -3
- package/schematics/ng-add/index.js +0 -37
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/package-util.d.ts +0 -13
- package/schematics/package-util.js +0 -61
- package/schematics/package-util.js.map +0 -1
- package/schematics/place-add/index.d.ts +0 -3
- package/schematics/place-add/index.js +0 -37
- package/schematics/place-add/index.js.map +0 -1
- package/schematics/place-add/index.spec.d.ts +0 -1
- package/schematics/place-add/index.spec.js +0 -364
- package/schematics/place-add/index.spec.js.map +0 -1
- package/schematics/place-add/schema.d.ts +0 -4
- package/schematics/place-add/schema.js +0 -3
- package/schematics/place-add/schema.js.map +0 -1
- package/schematics/place-add/schema.json +0 -27
- package/schematics/place-add/templates/component/__name@dasherize__.component.html.template +0 -1
- package/schematics/place-add/templates/component/__name@dasherize__.component.scss.template +0 -5
- package/schematics/place-add/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
- package/schematics/place-add/templates/component/__name@dasherize__.component.ts.template +0 -33
- package/schematics/place-add/templates/component/__name@dasherize__.i18n.yml.template +0 -5
- package/schematics/place-bootstrap/index.d.ts +0 -3
- package/schematics/place-bootstrap/index.js +0 -21
- package/schematics/place-bootstrap/index.js.map +0 -1
- package/schematics/place-bootstrap/schema.d.ts +0 -4
- package/schematics/place-bootstrap/schema.js +0 -3
- package/schematics/place-bootstrap/schema.js.map +0 -1
- package/schematics/place-bootstrap/schema.json +0 -28
- package/schematics/place-bootstrap/templates/__name@dasherize__/place-routes.ts.template +0 -3
- package/schematics/place-bootstrap/templates/__name@dasherize__/places.module.ts.template +0 -16
- package/schematics/place-routes/index.d.ts +0 -3
- package/schematics/place-routes/index.js +0 -24
- package/schematics/place-routes/index.js.map +0 -1
- package/schematics/place-routes/place-builder.d.ts +0 -18
- package/schematics/place-routes/place-builder.js +0 -123
- package/schematics/place-routes/place-builder.js.map +0 -1
- package/schematics/place-routes/place-class-scanner.d.ts +0 -47
- package/schematics/place-routes/place-class-scanner.js +0 -223
- package/schematics/place-routes/place-class-scanner.js.map +0 -1
- package/schematics/place-routes/place-def.d.ts +0 -62
- package/schematics/place-routes/place-def.js +0 -195
- package/schematics/place-routes/place-def.js.map +0 -1
- package/schematics/place-routes/schema.d.ts +0 -4
- package/schematics/place-routes/schema.js +0 -3
- package/schematics/place-routes/schema.js.map +0 -1
- package/schematics/place-routes/schema.json +0 -25
- package/schematics/place-routes/templates/place-routes.ts.template +0 -14
- package/schematics/utils/build-context.d.ts +0 -73
- package/schematics/utils/build-context.js +0 -184
- package/schematics/utils/build-context.js.map +0 -1
- package/schematics/utils/decorators/decorated-class.d.ts +0 -13
- package/schematics/utils/decorators/decorated-class.js +0 -28
- package/schematics/utils/decorators/decorated-class.js.map +0 -1
- package/schematics/utils/decorators/decorated-source-file.d.ts +0 -15
- package/schematics/utils/decorators/decorated-source-file.js +0 -27
- package/schematics/utils/decorators/decorated-source-file.js.map +0 -1
- package/schematics/utils/import-def.d.ts +0 -30
- package/schematics/utils/import-def.js +0 -97
- package/schematics/utils/import-def.js.map +0 -1
- package/schematics/utils/method-scanner.d.ts +0 -16
- package/schematics/utils/method-scanner.js +0 -70
- package/schematics/utils/method-scanner.js.map +0 -1
- package/schematics/utils/mixin.d.ts +0 -11
- package/schematics/utils/mixin.js +0 -27
- package/schematics/utils/mixin.js.map +0 -1
- package/schematics/utils/parameter-def.d.ts +0 -5
- package/schematics/utils/parameter-def.js +0 -3
- package/schematics/utils/parameter-def.js.map +0 -1
- package/schematics/utils/path-helper.d.ts +0 -14
- package/schematics/utils/path-helper.js +0 -30
- package/schematics/utils/path-helper.js.map +0 -1
- package/schematics/utils/schematic-tree-file-system.d.ts +0 -30
- package/schematics/utils/schematic-tree-file-system.js +0 -113
- package/schematics/utils/schematic-tree-file-system.js.map +0 -1
- package/schematics/utils/source-file-scanner.d.ts +0 -14
- package/schematics/utils/source-file-scanner.js +0 -89
- package/schematics/utils/source-file-scanner.js.map +0 -1
- package/schematics/utils/source-file-utilities.d.ts +0 -6
- package/schematics/utils/source-file-utilities.js +0 -35
- package/schematics/utils/source-file-utilities.js.map +0 -1
- package/schematics/utils/stringy.d.ts +0 -15
- package/schematics/utils/stringy.js +0 -50
- package/schematics/utils/stringy.js.map +0 -1
- package/schematics/utils/template-utilities.d.ts +0 -2
- package/schematics/utils/template-utilities.js +0 -24
- package/schematics/utils/template-utilities.js.map +0 -1
- package/schematics/utils/workspace.d.ts +0 -15
- package/schematics/utils/workspace.js +0 -59
- package/schematics/utils/workspace.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;GAMG;AACH,iCAAiC;AACjC,gEAAuF;AACvF,wEAAwE;AACxE,qDAAqD;AACrD,oEAAoE;AACpE,iFAAiF;AAEjF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,eAAe,GAAG,IAAI,6BAAmB,CAC7C,6BAA6B,EAC7B,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IAC3F,sBAAsB;IACtB,EAAE;IACF,uBAAuB;IACvB,qGAAqG;IACrG,oCAAoC;IACpC,+DAA+D;IAC/D,oBAAoB;IACpB,sFAAsF;IACtF,MAAM;AAER,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-add/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "AddPlaceSchematic",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "Add a new place component",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "projectName"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"name": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "The name of the component.",
|
|
17
|
-
"$default": {
|
|
18
|
-
"$source": "argv",
|
|
19
|
-
"index": 0
|
|
20
|
-
},
|
|
21
|
-
"x-prompt": "What name would you like to use for the place?"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": [
|
|
25
|
-
"name"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<p><%=name%> works!</p>
|
package/schematics/place-add/templates/component/__name@dasherize__.component.spec.ts.template
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { <%=capitalize(camelize(name))%>Component } from './<%=dasherize(name)%>.component';
|
|
4
|
-
|
|
5
|
-
describe('<%=capitalize(camelize(name))%>Component', () => {
|
|
6
|
-
let component: <%=capitalize(camelize(name))%>Component;
|
|
7
|
-
let fixture: ComponentFixture<<%=capitalize(camelize(name))%>Component>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ <%=capitalize(camelize(name))%>Component ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
}));
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(<%=capitalize(camelize(name))%>Component);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { Dsl } from '@coolon/pectin';
|
|
3
|
-
import {
|
|
4
|
-
Place,
|
|
5
|
-
PlaceComponent,
|
|
6
|
-
} from '@coolon/angular-ui-powerups';
|
|
7
|
-
import { I18n } from '<%=pathToRoot%>/i18n';
|
|
8
|
-
|
|
9
|
-
@Place({
|
|
10
|
-
path: '<%=dasherize(name)%>',
|
|
11
|
-
data: {
|
|
12
|
-
nav: <%=i18nNamespace%>.nav
|
|
13
|
-
},
|
|
14
|
-
authenticate: true
|
|
15
|
-
})
|
|
16
|
-
@Component({
|
|
17
|
-
selector: '<%=selectorPrefix%>-<%=dasherize(name)%>',
|
|
18
|
-
templateUrl: './<%=dasherize(name)%>.component.html',
|
|
19
|
-
styleUrls: ['./<%=dasherize(name)%>.component.scss'],
|
|
20
|
-
})
|
|
21
|
-
export class <%=capitalize(camelize(name))%>Component extends PlaceComponent implements OnInit {
|
|
22
|
-
|
|
23
|
-
readonly i18n = <%=i18nNamespace%>;
|
|
24
|
-
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
const {chain} = Dsl.disposeWith(this);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ngOnInit() {
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bootstrapPlaces = void 0;
|
|
4
|
-
const template_utilities_1 = require("../utils/template-utilities");
|
|
5
|
-
const workspace_1 = require("../utils/workspace");
|
|
6
|
-
function bootstrapPlaces(_options) {
|
|
7
|
-
return (tree, context) => {
|
|
8
|
-
const workspace = workspace_1.Workspace.load(tree, context);
|
|
9
|
-
const buildContext = workspace.getApplication(_options.project);
|
|
10
|
-
const nameParts = _options.path.split('/');
|
|
11
|
-
const directoryName = nameParts[nameParts.length - 1];
|
|
12
|
-
const componentPathParts = nameParts.slice(0, nameParts.length - 1);
|
|
13
|
-
const pathToSourceRoot = [buildContext.sourceCodeRoot].concat(componentPathParts);
|
|
14
|
-
return (0, template_utilities_1.applyTemplatesWithOverwrite)(tree, 'templates', {
|
|
15
|
-
name: directoryName
|
|
16
|
-
}, `${(pathToSourceRoot.join('/'))}`);
|
|
17
|
-
// return chain([placeModuleFiles])(tree, context);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.bootstrapPlaces = bootstrapPlaces;
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-bootstrap/index.ts"],"names":[],"mappings":";;;AACA,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,eAAe,CAAC,QAAgB;IAE9C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEhE,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,kBAAkB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,gBAAgB,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAElF,OAAO,IAAA,gDAA2B,EAChC,IAAI,EACJ,WAAW,EACX;YACE,IAAI,EAAE,aAAa;SACpB,EACD,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAClC,CAAC;QAEF,mDAAmD;IACrD,CAAC,CAAC;AAEJ,CAAC;AAxBD,0CAwBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-bootstrap/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "AddPlaceSchematic",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "Add a new place component",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "projectName"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"path": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "The directory path to bootstrap relative to <project-root>/src/app.",
|
|
17
|
-
"$default": {
|
|
18
|
-
"$source": "argv",
|
|
19
|
-
"index": 0
|
|
20
|
-
},
|
|
21
|
-
"x-prompt": "What is the path to the place root directory?"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": [
|
|
25
|
-
"project",
|
|
26
|
-
"path"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
import {ComponentsModule, InteractionModule} from "@coolon/angular-ui-powerups";
|
|
3
|
-
|
|
4
|
-
@NgModule({
|
|
5
|
-
declarations: [
|
|
6
|
-
],
|
|
7
|
-
imports: [
|
|
8
|
-
ComponentsModule,
|
|
9
|
-
InteractionModule
|
|
10
|
-
],
|
|
11
|
-
providers: [],
|
|
12
|
-
})
|
|
13
|
-
export class PlacesModule {
|
|
14
|
-
constructor() {
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRoutes = void 0;
|
|
4
|
-
const workspace_1 = require("../utils/workspace");
|
|
5
|
-
const place_builder_1 = require("./place-builder");
|
|
6
|
-
function generateRoutes(_options) {
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
return (tree, _context) => {
|
|
9
|
-
const workspace = workspace_1.Workspace.load(tree, _context);
|
|
10
|
-
const buildContext = workspace.getApplicationOrDefault(_options.project);
|
|
11
|
-
if (!_options.project) {
|
|
12
|
-
_options.project = workspace.defaultProject;
|
|
13
|
-
}
|
|
14
|
-
const placeBuilder = new place_builder_1.PlaceBuilder(_options, buildContext, _context);
|
|
15
|
-
try {
|
|
16
|
-
return placeBuilder.process(tree);
|
|
17
|
-
}
|
|
18
|
-
catch (e) {
|
|
19
|
-
console.error(e);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.generateRoutes = generateRoutes;
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-routes/index.ts"],"names":[],"mappings":";;;AAEA,kDAA+C;AAC/C,mDAA+C;AAG/C,SAAgB,cAAc,CAAC,QAAgB;IAE7C,aAAa;IACb,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAEhD,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAExE,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YACrB,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,cAAc,CAAC;SAC7C;QAED,MAAM,YAAY,GAAG,IAAI,4BAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;QAExE,IAAI;YACF,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACnC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAClB;IACH,CAAC,CAAC;AAEJ,CAAC;AArBD,wCAqBC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import { BuildContext } from '../utils/build-context';
|
|
3
|
-
import { Schema } from './schema';
|
|
4
|
-
export declare class PlaceBuilder {
|
|
5
|
-
readonly options: Schema;
|
|
6
|
-
readonly buildContext: BuildContext.App;
|
|
7
|
-
readonly context: SchematicContext;
|
|
8
|
-
private projectName;
|
|
9
|
-
private projectType;
|
|
10
|
-
private sourceRoot;
|
|
11
|
-
private typescriptProject;
|
|
12
|
-
private tsConfigPath;
|
|
13
|
-
constructor(options: Schema, buildContext: BuildContext.App, context: SchematicContext);
|
|
14
|
-
process(tree: Tree): Rule;
|
|
15
|
-
private renderTemplates;
|
|
16
|
-
private extractPlaceDefinitions;
|
|
17
|
-
private buildPlaceHierarchy;
|
|
18
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlaceBuilder = void 0;
|
|
4
|
-
const core_1 = require("@angular-devkit/core");
|
|
5
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const _ = require("lodash");
|
|
7
|
-
const place_def_1 = require("./place-def");
|
|
8
|
-
// interface Config {
|
|
9
|
-
// authGuard: ClassImport;
|
|
10
|
-
// }
|
|
11
|
-
// interface PlaceRoot {
|
|
12
|
-
// dir: string,
|
|
13
|
-
// }
|
|
14
|
-
const noopRule = (tree, context) => tree;
|
|
15
|
-
class PlaceBuilder {
|
|
16
|
-
constructor(options, buildContext, context) {
|
|
17
|
-
this.options = options;
|
|
18
|
-
this.buildContext = buildContext;
|
|
19
|
-
this.context = context;
|
|
20
|
-
this.projectName = options.project;
|
|
21
|
-
this.sourceRoot = buildContext.sourceCodeRootDir;
|
|
22
|
-
this.context.logger.info(`sourceRoot=${this.sourceRoot}`);
|
|
23
|
-
this.context.logger.info(`projectName=${this.projectName}`);
|
|
24
|
-
}
|
|
25
|
-
process(tree) {
|
|
26
|
-
const placeRoots = [];
|
|
27
|
-
placeRoots.push(this.options.dir); // todo support multiple place roots on a single run.
|
|
28
|
-
const rules = placeRoots.map(r => this.sourceRoot.relativeDir(r)).map(placeRoot => {
|
|
29
|
-
const placeDefs = this.extractPlaceDefinitions(tree, placeRoot);
|
|
30
|
-
if (placeDefs.length < 1) {
|
|
31
|
-
this.context.logger.info(`No places found in ${placeRoot.treePath}`);
|
|
32
|
-
return noopRule;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
// TODO: doesn't handle namespaces
|
|
36
|
-
const visitParameterImports = _.uniqBy(_.flatMap(placeDefs, def => def.getVisitParameterImports()), "typeName")
|
|
37
|
-
.map(def => {
|
|
38
|
-
return {
|
|
39
|
-
typeName: def.typeName,
|
|
40
|
-
importPath: def.importPathFor(placeRoot)
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
return this.renderTemplates(placeRoot, placeDefs, visitParameterImports, tree);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
return (0, schematics_1.chain)(rules);
|
|
47
|
-
}
|
|
48
|
-
renderTemplates(placeRoot, placeDefs, visitParameterImports, tree) {
|
|
49
|
-
// this.context.logger.info(`${this.workspaceProject.sourceRoot}/${this.projectType}`);
|
|
50
|
-
// this.context.logger.info(placeRoot.dir);
|
|
51
|
-
const files = (0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
|
|
52
|
-
(0, schematics_1.applyTemplates)(Object.assign(Object.assign(Object.assign({}, this.options), { placeDefs,
|
|
53
|
-
visitParameterImports }), core_1.strings)),
|
|
54
|
-
(0, schematics_1.move)(`${placeRoot.treePath}`),
|
|
55
|
-
// @see https://github.com/angular/angular-cli/issues/11337#issuecomment-448259549
|
|
56
|
-
(0, schematics_1.forEach)((fileEntry) => {
|
|
57
|
-
this.context.logger.info(fileEntry.path);
|
|
58
|
-
if (tree.exists(fileEntry.path)) {
|
|
59
|
-
tree.overwrite(fileEntry.path, fileEntry.content);
|
|
60
|
-
}
|
|
61
|
-
return fileEntry;
|
|
62
|
-
})
|
|
63
|
-
]);
|
|
64
|
-
return (0, schematics_1.mergeWith)(files);
|
|
65
|
-
}
|
|
66
|
-
// private parseConfig(configString: string): Config {
|
|
67
|
-
// const rawConfig = JSON5.parse(configString);
|
|
68
|
-
// const config:Config = {
|
|
69
|
-
// authGuard: {
|
|
70
|
-
// className: 'NoopAuthGuard', importPath: '@coolon/angular-ui-powerups', ...rawConfig.authGuard
|
|
71
|
-
// }
|
|
72
|
-
// };
|
|
73
|
-
// this.context.logger.info(`config: ${JSON5.stringify(config)}`);
|
|
74
|
-
// return config;
|
|
75
|
-
// }
|
|
76
|
-
extractPlaceDefinitions(tree, placeRootPath) {
|
|
77
|
-
const placeDefs = [];
|
|
78
|
-
this.context.logger.info(`Scanning sources in -> ${placeRootPath.treePath}`);
|
|
79
|
-
const placeRootDir = tree.getDir(placeRootPath.treePath);
|
|
80
|
-
placeRootDir.visit(filePath => {
|
|
81
|
-
if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts')) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
const content = tree.read(filePath);
|
|
85
|
-
if (!content) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const sourceFile = this.buildContext.getSourceFile(`./${filePath}`);
|
|
89
|
-
if (!sourceFile) {
|
|
90
|
-
throw new Error(`${filePath} is not included by ${this.tsConfigPath}. Until I fix this properly you can add an '"include": ["src/app/**/*.ts", "src/app/**/*.d.ts"], "exclude":["**/*.spec.*"]' `);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const imports = sourceFile.getImportDeclarations();
|
|
94
|
-
sourceFile.getClasses().forEach((classDecl) => {
|
|
95
|
-
place_def_1.PlaceDef.scan(sourceFile, classDecl, this.context).onMatch(result => {
|
|
96
|
-
const moduleImportPath = `.${filePath.substr(placeRootDir.path.length, filePath.length - placeRootDir.path.length - '.ts'.length)}`;
|
|
97
|
-
const definition = result.createDefinition(moduleImportPath);
|
|
98
|
-
this.context.logger.info(`${classDecl.getName()}(route: /${definition.fullPath}) -> ${moduleImportPath}`);
|
|
99
|
-
placeDefs.push(definition);
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
const rootPlaces = this.buildPlaceHierarchy(placeDefs);
|
|
105
|
-
return placeDefs;
|
|
106
|
-
}
|
|
107
|
-
buildPlaceHierarchy(placeDefs) {
|
|
108
|
-
const parentPlaces = placeDefs.filter(d => d.childRefs.length > 0);
|
|
109
|
-
const childPlaces = [];
|
|
110
|
-
parentPlaces.forEach(p => {
|
|
111
|
-
p.childRefs.forEach(c => {
|
|
112
|
-
const childPlaceDef = c.resolve(placeDefs);
|
|
113
|
-
if (!childPlaceDef) {
|
|
114
|
-
throw new Error(`${p.componentClass} references child ${c.componentClass} which isn't a @Place`);
|
|
115
|
-
}
|
|
116
|
-
childPlaces.push(childPlaceDef);
|
|
117
|
-
childPlaceDef.setParent(p);
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
exports.PlaceBuilder = PlaceBuilder;
|
|
123
|
-
//# sourceMappingURL=place-builder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-builder.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-routes/place-builder.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAC7C,2DAYoC;AACpC,4BAA4B;AAG5B,2CAAqC;AAQrC,qBAAqB;AACrB,4BAA4B;AAC5B,IAAI;AAEJ,wBAAwB;AACxB,iBAAiB;AACjB,IAAI;AAEJ,MAAM,QAAQ,GAAG,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE,CAAC,IAAI,CAAC;AAEjE,MAAa,YAAY;IASvB,YAAqB,OAAe,EAAW,YAA8B,EAAW,OAAyB;QAA5F,YAAO,GAAP,OAAO,CAAQ;QAAW,iBAAY,GAAZ,YAAY,CAAkB;QAAW,YAAO,GAAP,OAAO,CAAkB;QAC/G,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,OAAiB,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,CAAC,IAAU;QAChB,MAAM,UAAU,GAAa,EAAE,CAAC;QAChC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,qDAAqD;QA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AAM,WAAW,GAAe,EAAE,CAAC;QACnC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACvB,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBACtB,MAAM,aAAa,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;gBAC3C,IAAI,CAAC,aAAa,EAAE;oBAClB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,cAAc,qBAAqB,CAAC,CAAC,cAAc,uBAAuB,CAAC,CAAC;iBAClG;gBACD,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;gBAChC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAjID,oCAiIC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
-
import { ClassDeclaration, Decorator, ObjectLiteralExpression, PropertyDeclaration } from 'ts-morph';
|
|
3
|
-
import { DecoratedSourceFile } from '../utils/decorators/decorated-source-file';
|
|
4
|
-
import { ImportDef } from "../utils/import-def";
|
|
5
|
-
import { PlaceDef } from './place-def';
|
|
6
|
-
export declare class PlaceClassScanner {
|
|
7
|
-
private readonly sourceFile;
|
|
8
|
-
private readonly classDecl;
|
|
9
|
-
readonly context: SchematicContext;
|
|
10
|
-
private placeAnnotation;
|
|
11
|
-
constructor(sourceFile: DecoratedSourceFile, classDecl: ClassDeclaration, context: SchematicContext);
|
|
12
|
-
isPlace(): boolean;
|
|
13
|
-
onMatch(callback: (scan: PlaceClassScanner) => void): void;
|
|
14
|
-
createDefinition(moduleImportPath: string): PlaceDef;
|
|
15
|
-
protected getPlaceOptions(): PlaceDef.Options;
|
|
16
|
-
protected getChildren(): PlaceDef.ChildRef[];
|
|
17
|
-
protected getDefaultChild(): string;
|
|
18
|
-
protected getRedirectToFirstChild(): boolean;
|
|
19
|
-
getChildRefFor(componentClassName: string): PlaceDef.ChildRef;
|
|
20
|
-
private extractChildComponentClassNames;
|
|
21
|
-
protected getRouteIdParameter(): PlaceClassScanner.RouteParameterInfo;
|
|
22
|
-
protected getRouteParameters(): PlaceDef.Parameter[];
|
|
23
|
-
private getVisitValueParameters;
|
|
24
|
-
private getVisitListParameters;
|
|
25
|
-
protected getDecoratedProperties(annotation: string): {
|
|
26
|
-
decorator: Decorator;
|
|
27
|
-
property: PropertyDeclaration;
|
|
28
|
-
}[];
|
|
29
|
-
}
|
|
30
|
-
export declare namespace PlaceClassScanner {
|
|
31
|
-
function getObjectLiteralArgument(annotation: Decorator, position: number): ObjectLiteralExpression;
|
|
32
|
-
function getOptionsArg<T extends {}>(annotation: Decorator, defaults: T, options?: {
|
|
33
|
-
position: number;
|
|
34
|
-
required: boolean;
|
|
35
|
-
}): T;
|
|
36
|
-
class RouteParameterInfo implements PlaceDef.Parameter {
|
|
37
|
-
private readonly as;
|
|
38
|
-
readonly optional: boolean;
|
|
39
|
-
readonly property: PropertyDeclaration;
|
|
40
|
-
readonly array: boolean;
|
|
41
|
-
readonly parameterType: string;
|
|
42
|
-
readonly importDef: ImportDef | undefined;
|
|
43
|
-
constructor(as: string, optional: boolean, property: PropertyDeclaration, sourceFile: DecoratedSourceFile);
|
|
44
|
-
get parameterName(): string;
|
|
45
|
-
get modelName(): string;
|
|
46
|
-
}
|
|
47
|
-
}
|