@coolon/angular-ui-powerups 14.34.0 → 14.35.1
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/forms/abstract-input.component.mjs +22 -10
- package/esm2020/lib/components/forms/abstract-list-input.component.mjs +2 -14
- package/esm2020/lib/components/forms/abstract-value-input.component.mjs +2 -14
- package/esm2020/lib/interaction/activity.mjs +2 -1
- package/esm2020/lib/interaction/components/activity-container/activity-container.component.mjs +43 -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 +94 -54
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +92 -54
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +18 -6
- package/lib/components/forms/abstract-list-input.component.d.ts +0 -11
- package/lib/components/forms/abstract-value-input.component.d.ts +0 -11
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +10 -1
- 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 +2 -2
- 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,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "AddActivitySchematic",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "Add a new activity 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 activity component.",
|
|
17
|
-
"$default": {
|
|
18
|
-
"$source": "argv",
|
|
19
|
-
"index": 0
|
|
20
|
-
},
|
|
21
|
-
"x-prompt": "What name would you like to use for the activity?"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": [
|
|
25
|
-
"name"
|
|
26
|
-
]
|
|
27
|
-
}
|
package/schematics/activity/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,40 +0,0 @@
|
|
|
1
|
-
import {Component, Inject, OnInit} from '@angular/core';
|
|
2
|
-
import { Dsl, Command } from '@coolon/pectin';
|
|
3
|
-
import {Activity} from "@coolon/angular-ui-powerups";
|
|
4
|
-
import { I18n } from '<%=pathToRoot%>/i18n';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: '<%=selectorPrefix%>-<%=dasherize(name)%>',
|
|
8
|
-
templateUrl: './<%=dasherize(name)%>.component.html',
|
|
9
|
-
styleUrls: ['./<%=dasherize(name)%>.component.scss'],
|
|
10
|
-
})
|
|
11
|
-
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> implements OnInit {
|
|
12
|
-
|
|
13
|
-
readonly i18n = <%=i18nNamespace%>;
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
const {chain} = Dsl.disposeWith(this);
|
|
18
|
-
|
|
19
|
-
// Actity data is pre injected into...
|
|
20
|
-
// this.activityData
|
|
21
|
-
|
|
22
|
-
this.confirmCommand = Command.create(() => {
|
|
23
|
-
this.done();
|
|
24
|
-
});
|
|
25
|
-
this.cancelCommand = Command.create(() => {
|
|
26
|
-
this.cancel();
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export namespace <%=capitalize(camelize(name))%>Component {
|
|
38
|
-
export interface Data {
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyWithOverwrite = exports.run = void 0;
|
|
4
|
-
const core_1 = require("@angular-devkit/core");
|
|
5
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const workspace_1 = require("../utils/workspace");
|
|
7
|
-
const package_util_1 = require("../package-util");
|
|
8
|
-
// @see https://javascript-conference.com/blog/how-to-create-your-own-angular-schematics/
|
|
9
|
-
function run(_options) {
|
|
10
|
-
return (tree, _context) => {
|
|
11
|
-
const workspace = workspace_1.Workspace.load(tree, _context);
|
|
12
|
-
const buildContext = workspace.getProject(_options.project);
|
|
13
|
-
const templateSource = applyWithOverwrite((0, schematics_1.url)('./templates'), [
|
|
14
|
-
(0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, _options), core_1.strings)),
|
|
15
|
-
(0, schematics_1.move)(buildContext.sourceRoot)
|
|
16
|
-
]);
|
|
17
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
18
|
-
const updatePackageDependencies = (tree, _) => {
|
|
19
|
-
return (0, package_util_1.updatePackageJson)(tree, draft => {
|
|
20
|
-
draft.devDependencies = Object.assign(Object.assign({}, draft.devDependencies), { "@coolon/i18n-resource-generator": "^3.0.2" });
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const rules = [templateSource, updatePackageDependencies];
|
|
24
|
-
return (0, schematics_1.chain)(rules)(tree, _context);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.run = run;
|
|
28
|
-
// See https://stackoverflow.com/a/53230034
|
|
29
|
-
function applyWithOverwrite(source, rules) {
|
|
30
|
-
return (tree, _context) => {
|
|
31
|
-
const rule = (0, schematics_1.mergeWith)((0, schematics_1.apply)(source, [
|
|
32
|
-
...rules,
|
|
33
|
-
(0, schematics_1.forEach)((fileEntry) => {
|
|
34
|
-
if (tree.exists(fileEntry.path)) {
|
|
35
|
-
tree.overwrite(fileEntry.path, fileEntry.content);
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return fileEntry;
|
|
39
|
-
})
|
|
40
|
-
]));
|
|
41
|
-
return rule(tree, _context);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.applyWithOverwrite = applyWithOverwrite;
|
|
45
|
-
// function generateApp(name: string): Rule {
|
|
46
|
-
// return externalSchematic('@nrwl/angular', 'application', {
|
|
47
|
-
// name,
|
|
48
|
-
// version: '9.0.0',
|
|
49
|
-
// directory: name,
|
|
50
|
-
// routing: true,
|
|
51
|
-
// style: 'scss',
|
|
52
|
-
// inlineStyle: false,
|
|
53
|
-
// inlineTemplate: false
|
|
54
|
-
// });
|
|
55
|
-
// }
|
|
56
|
-
// export function addFiles(_options: any): Rule {
|
|
57
|
-
// const name = _options.name;
|
|
58
|
-
//
|
|
59
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
60
|
-
//
|
|
61
|
-
// const templateSource = apply(url('./files'), [
|
|
62
|
-
// template({ ..._options, ...strings })
|
|
63
|
-
// ]);
|
|
64
|
-
// const fileMerge = mergeWith(templateSource, MergeStrategy.Overwrite);
|
|
65
|
-
//
|
|
66
|
-
// const rule = chain([
|
|
67
|
-
// fileMerge
|
|
68
|
-
// ]);
|
|
69
|
-
//
|
|
70
|
-
// return rule(tree, _context) as Rule;
|
|
71
|
-
// };
|
|
72
|
-
// }
|
|
73
|
-
// function addDependencies(options: Schema): Rule {
|
|
74
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
75
|
-
// _context.addTask(new RunSchematicTask('add-dependencies', options));
|
|
76
|
-
// return tree;
|
|
77
|
-
// };
|
|
78
|
-
// }
|
|
79
|
-
//
|
|
80
|
-
// function addRequiredFiles(options: Schema): Rule {
|
|
81
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
82
|
-
// _context.addTask(new RunSchematicTask('add-files', options));
|
|
83
|
-
// return tree;
|
|
84
|
-
// };
|
|
85
|
-
// }
|
|
86
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6D;AAC7D,2DAaoC;AACpC,kDAA+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AAS,CAAC,IAAI,CAAC,EAAE;oBAC/B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;oBAClD,OAAO,IAAI,CAAC;iBACb;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC,CAAC;SACH,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC;AAjBD,gDAiBC;AAGD,6CAA6C;AAC7C,+DAA+D;AAC/D,YAAY;AACZ,wBAAwB;AACxB,uBAAuB;AACvB,qBAAqB;AACrB,qBAAqB;AACrB,0BAA0B;AAC1B,4BAA4B;AAC5B,QAAQ;AACR,IAAI;AAGJ,kDAAkD;AAClD,gCAAgC;AAChC,EAAE;AACF,yDAAyD;AACzD,EAAE;AACF,qDAAqD;AACrD,8CAA8C;AAC9C,UAAU;AACV,4EAA4E;AAC5E,EAAE;AACF,2BAA2B;AAC3B,kBAAkB;AAClB,UAAU;AACV,EAAE;AACF,2CAA2C;AAC3C,OAAO;AACP,IAAI;AAGJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "AupI18nSchematic",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "Install Angular UI Powerup I18n defaults",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "projectName"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"project"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
alerts:
|
|
2
|
-
unknown_error:
|
|
3
|
-
content:
|
|
4
|
-
- "Yikes, this is a bit embarrassing, we've had an error condition we weren't expecting."
|
|
5
|
-
- "It's with great shame an loathing that we can only suggest reloading the page to see if that helps..."
|
|
6
|
-
ok: "Ok, try reloading it..."
|
|
7
|
-
|
|
8
|
-
not_implemented:
|
|
9
|
-
content:
|
|
10
|
-
- "We haven't got around to doing this yet."
|
|
11
|
-
ok: "Bugger"
|
|
12
|
-
|
|
13
|
-
components:
|
|
14
|
-
activityActions:
|
|
15
|
-
styles(Enum):
|
|
16
|
-
okCancel:
|
|
17
|
-
confirm(CommandFace):
|
|
18
|
-
text: Ok
|
|
19
|
-
cancel(CommandFace):
|
|
20
|
-
text: Cancel
|
|
21
|
-
okCancelStrokedPrimary:
|
|
22
|
-
confirm(CommandFace):
|
|
23
|
-
text: Ok
|
|
24
|
-
style: stroked
|
|
25
|
-
color: primary
|
|
26
|
-
cancel(CommandFace):
|
|
27
|
-
text: Cancel
|
|
28
|
-
okCancelRaisedPrimary:
|
|
29
|
-
confirm(CommandFace):
|
|
30
|
-
text: Ok
|
|
31
|
-
style: raised
|
|
32
|
-
color: primary
|
|
33
|
-
cancel(CommandFace):
|
|
34
|
-
text: Cancel
|
|
35
|
-
okCancelIcons:
|
|
36
|
-
confirm(CommandFace):
|
|
37
|
-
icon: mat:done
|
|
38
|
-
cancel(CommandFace):
|
|
39
|
-
icon: mat:clear
|
|
40
|
-
|
|
41
|
-
doneCancel:
|
|
42
|
-
confirm(CommandFace):
|
|
43
|
-
text: Done
|
|
44
|
-
cancel(CommandFace):
|
|
45
|
-
text: Cancel
|
|
46
|
-
doneCancelStrokedPrimary:
|
|
47
|
-
confirm(CommandFace):
|
|
48
|
-
text: Done
|
|
49
|
-
style: stroked
|
|
50
|
-
color: primary
|
|
51
|
-
cancel(CommandFace):
|
|
52
|
-
text: Cancel
|
|
53
|
-
doneCancelRaisedPrimary:
|
|
54
|
-
confirm(CommandFace):
|
|
55
|
-
text: Done
|
|
56
|
-
style: raised
|
|
57
|
-
color: primary
|
|
58
|
-
cancel(CommandFace):
|
|
59
|
-
text: Cancel
|
|
60
|
-
|
|
61
|
-
saveCancel:
|
|
62
|
-
confirm(CommandFace):
|
|
63
|
-
text: Save
|
|
64
|
-
cancel(CommandFace):
|
|
65
|
-
text: Cancel
|
|
66
|
-
saveCancelStrokedPrimary:
|
|
67
|
-
confirm(CommandFace):
|
|
68
|
-
text: Save
|
|
69
|
-
style: stroked
|
|
70
|
-
color: primary
|
|
71
|
-
cancel(CommandFace):
|
|
72
|
-
text: Cancel
|
|
73
|
-
saveCancelRaisedPrimary:
|
|
74
|
-
confirm(CommandFace):
|
|
75
|
-
text: Save
|
|
76
|
-
style: raised
|
|
77
|
-
color: primary
|
|
78
|
-
cancel(CommandFace):
|
|
79
|
-
text: Cancel
|
|
80
|
-
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyWithOverwrite = exports.bootstrapApp = void 0;
|
|
4
|
-
const core_1 = require("@angular-devkit/core");
|
|
5
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const package_util_1 = require("../package-util");
|
|
7
|
-
const workspace_1 = require("../utils/workspace");
|
|
8
|
-
// @see https://javascript-conference.com/blog/how-to-create-your-own-angular-schematics/
|
|
9
|
-
function bootstrapApp(_options) {
|
|
10
|
-
return (tree, _context) => {
|
|
11
|
-
const workspace = workspace_1.Workspace.load(tree, _context);
|
|
12
|
-
const buildContext = workspace.getApplicationOrDefault(_options.project);
|
|
13
|
-
const templateSource = applyWithOverwrite((0, schematics_1.url)('./templates'), [
|
|
14
|
-
(0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, _options), core_1.strings)),
|
|
15
|
-
(0, schematics_1.move)(buildContext.rootDir)
|
|
16
|
-
]);
|
|
17
|
-
const rules = [
|
|
18
|
-
templateSource,
|
|
19
|
-
(0, schematics_1.externalSchematic)('@coolon/angular-ui-powerups', 'aup-i18n', {
|
|
20
|
-
project: _options.project
|
|
21
|
-
}),
|
|
22
|
-
(0, schematics_1.externalSchematic)('@coolon/angular-ui-powerups', 'place-bootstrap', {
|
|
23
|
-
project: _options.project,
|
|
24
|
-
path: "places"
|
|
25
|
-
}),
|
|
26
|
-
updatePackageJsonScripts(buildContext)
|
|
27
|
-
];
|
|
28
|
-
// if (_options.initialPlaceName) {
|
|
29
|
-
// rules.push(externalSchematic('@coolon/angular-ui-powerups', 'place-add', {
|
|
30
|
-
// project: _options.project,
|
|
31
|
-
// name: `places/${_options.initialPlaceName}`
|
|
32
|
-
// })
|
|
33
|
-
// );
|
|
34
|
-
// }
|
|
35
|
-
return (0, schematics_1.chain)(rules)(tree, _context);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.bootstrapApp = bootstrapApp;
|
|
39
|
-
function updatePackageJsonScripts(context) {
|
|
40
|
-
return (tree, _) => {
|
|
41
|
-
return (0, package_util_1.updatePackageJson)(tree, draft => {
|
|
42
|
-
draft.scripts = Object.assign(Object.assign({}, draft.scripts), { [`i18n:${context.projectName}`]: `i18n-resource-generator ${context.rootDir}/i18n.config.json`, [`place-routes:${context.projectName}`]: `ng generate @coolon/angular-ui-powerups:place-routes --project ${context.projectName} places`, [`build:${context.projectName}`]: `nx build --prod --project ${context.projectName}`, [`start:${context.projectName}`]: `nx serve --project ${context.projectName}`, [`e2e:${context.projectName}-e2e`]: `nx e2e --watch --project ${context.projectName}-e2e`, [`e2e-headless:${context.projectName}-e2e`]: `nx e2e --headless --project ${context.projectName}-e2e` });
|
|
43
|
-
draft.watch = Object.assign(Object.assign({}, draft.watch), { [`i18n:${context.projectName}`]: {
|
|
44
|
-
"--comment--": "if your i18n.config.json has additional srcDirs you'll need add them here",
|
|
45
|
-
"patterns": [context.sourceCodeRoot],
|
|
46
|
-
"extensions": "i18n.yml"
|
|
47
|
-
} });
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
// See https://stackoverflow.com/a/53230034
|
|
52
|
-
function applyWithOverwrite(source, rules) {
|
|
53
|
-
return (tree, _context) => {
|
|
54
|
-
const rule = (0, schematics_1.mergeWith)((0, schematics_1.apply)(source, [
|
|
55
|
-
...rules,
|
|
56
|
-
(0, schematics_1.forEach)((fileEntry) => {
|
|
57
|
-
if (tree.exists(fileEntry.path)) {
|
|
58
|
-
tree.overwrite(fileEntry.path, fileEntry.content);
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return fileEntry;
|
|
62
|
-
})
|
|
63
|
-
]));
|
|
64
|
-
return rule(tree, _context);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.applyWithOverwrite = applyWithOverwrite;
|
|
68
|
-
// function generateApp(name: string): Rule {
|
|
69
|
-
// return externalSchematic('@nrwl/angular', 'application', {
|
|
70
|
-
// name,
|
|
71
|
-
// version: '9.0.0',
|
|
72
|
-
// directory: name,
|
|
73
|
-
// routing: true,
|
|
74
|
-
// style: 'scss',
|
|
75
|
-
// inlineStyle: false,
|
|
76
|
-
// inlineTemplate: false
|
|
77
|
-
// });
|
|
78
|
-
// }
|
|
79
|
-
// export function addFiles(_options: any): Rule {
|
|
80
|
-
// const name = _options.name;
|
|
81
|
-
//
|
|
82
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
83
|
-
//
|
|
84
|
-
// const templateSource = apply(url('./files'), [
|
|
85
|
-
// template({ ..._options, ...strings })
|
|
86
|
-
// ]);
|
|
87
|
-
// const fileMerge = mergeWith(templateSource, MergeStrategy.Overwrite);
|
|
88
|
-
//
|
|
89
|
-
// const rule = chain([
|
|
90
|
-
// fileMerge
|
|
91
|
-
// ]);
|
|
92
|
-
//
|
|
93
|
-
// return rule(tree, _context) as Rule;
|
|
94
|
-
// };
|
|
95
|
-
// }
|
|
96
|
-
// function addDependencies(options: Schema): Rule {
|
|
97
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
98
|
-
// _context.addTask(new RunSchematicTask('add-dependencies', options));
|
|
99
|
-
// return tree;
|
|
100
|
-
// };
|
|
101
|
-
// }
|
|
102
|
-
//
|
|
103
|
-
// function addRequiredFiles(options: Schema): Rule {
|
|
104
|
-
// return (tree: Tree, _context: SchematicContext) => {
|
|
105
|
-
// _context.addTask(new RunSchematicTask('add-files', options));
|
|
106
|
-
// return tree;
|
|
107
|
-
// };
|
|
108
|
-
// }
|
|
109
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/bootstrap-app/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6D;AAC7D,2DAaoC;AACpC,kDAAoD;AAEpD,kDAA+C;AAG/C,yFAAyF;AAEzF,SAAgB,YAAY,CAAC,QAAgB;IAE3C,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,MAAM,cAAc,GAAG,kBAAkB,CACvC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAAE;YAClB,IAAA,2BAAc,kCAAM,QAAQ,GAAK,cAAO,EAAG;YAC3C,IAAA,iBAAI,EAAC,YAAY,CAAC,OAAO,CAAC;SAC3B,CAAC,CAAC;QAEL,MAAM,KAAK,GAAG;YACZ,cAAc;YACd,IAAA,8BAAiB,EAAC,6BA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AAGJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/bootstrap-app/schema.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "AupBootstrapSchematic",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "Install all Angular UI Powerup dependencies",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "projectName"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"project"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"srcDirs": ["src/app"],
|
|
3
|
-
"outDir": "src/app",
|
|
4
|
-
"customTypeImports": {
|
|
5
|
-
"Alert": "import {Alert} from '@coolon/angular-ui-powerups'",
|
|
6
|
-
"Confirm": "import {Confirm} from '@coolon/angular-ui-powerups'",
|
|
7
|
-
"NavItem": "import {NavItem} from '@coolon/angular-ui-powerups'",
|
|
8
|
-
"CommandFace": "import {CommandFace} from '@coolon/angular-ui-powerups'",
|
|
9
|
-
"ColumnTextProperties": "import {ColumnTextProperties} from '@coolon/angular-ui-powerups'"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { GarbageCollector } from '@coolon/pectin';
|
|
4
|
-
import { placeRoutes } from './places/place-routes';
|
|
5
|
-
import { PlacesModule } from './places/places.module';
|
|
6
|
-
|
|
7
|
-
const routes: Routes = [
|
|
8
|
-
...placeRoutes,
|
|
9
|
-
{ path: '**', redirectTo: 'home' }
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
imports: [
|
|
14
|
-
RouterModule.forRoot(routes, {
|
|
15
|
-
enableTracing: false
|
|
16
|
-
}),
|
|
17
|
-
PlacesModule
|
|
18
|
-
],
|
|
19
|
-
exports: [RouterModule]
|
|
20
|
-
})
|
|
21
|
-
export class AppRoutingModule extends GarbageCollector {
|
|
22
|
-
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {Component} from "@angular/core";
|
|
2
|
-
import {DisposableComponent} from "@coolon/angular-ui-powerups";
|
|
3
|
-
import {Dsl} from "@coolon/pectin";
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: "<%= dasherize(project)%>-root",
|
|
7
|
-
templateUrl: "./app.component.html",
|
|
8
|
-
styleUrls: ["./app.component.scss"],
|
|
9
|
-
})
|
|
10
|
-
export class AppComponent extends DisposableComponent {
|
|
11
|
-
|
|
12
|
-
readonly places: Constructable<PlaceComponent>[] = [];
|
|
13
|
-
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
const {chain} = Dsl.disposeWith(this);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {DOCUMENT} from "@angular/common";
|
|
2
|
-
import {ApplicationRef, DoBootstrap, Inject, LOCALE_ID, NgModule} from "@angular/core";
|
|
3
|
-
import {FlexModule} from "@angular/flex-layout";
|
|
4
|
-
import {MAT_MOMENT_DATE_FORMATS, MomentDateAdapter} from "@angular/material-moment-adapter";
|
|
5
|
-
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from "@angular/material/core";
|
|
6
|
-
import {MatDialogModule} from "@angular/material/dialog";
|
|
7
|
-
import {MatIconRegistry} from "@angular/material/icon";
|
|
8
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
9
|
-
import {BrowserModule, DomSanitizer} from "@angular/platform-browser";
|
|
10
|
-
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
|
11
|
-
import {
|
|
12
|
-
AngularUiPowerupsModule,
|
|
13
|
-
DIALOG_INTERACTION_SERVICE_DEFAULTS,
|
|
14
|
-
DialogInteractionContextFactory,
|
|
15
|
-
ModalInteractionContextFactory,
|
|
16
|
-
PlaceModule
|
|
17
|
-
} from "@coolon/angular-ui-powerups";
|
|
18
|
-
import {Logger} from "@coolon/pectin";
|
|
19
|
-
import {setAutoFreeze} from "immer";
|
|
20
|
-
import {environment} from "../environments/environment";
|
|
21
|
-
import {AppRoutingModule} from "./app-routing.module";
|
|
22
|
-
import {AppComponent} from "./app.component";
|
|
23
|
-
|
|
24
|
-
// Immer version 7 is barfing with this error https://github.com/immerjs/immer/issues/537.
|
|
25
|
-
setAutoFreeze(false);
|
|
26
|
-
Logger.logToConsole();
|
|
27
|
-
|
|
28
|
-
@NgModule({
|
|
29
|
-
declarations: [AppComponent],
|
|
30
|
-
imports: [
|
|
31
|
-
BrowserModule,
|
|
32
|
-
BrowserAnimationsModule,
|
|
33
|
-
MatDialogModule,
|
|
34
|
-
AppRoutingModule,
|
|
35
|
-
PlaceModule,
|
|
36
|
-
AngularUiPowerupsModule,
|
|
37
|
-
FlexModule,
|
|
38
|
-
MatToolbarModule
|
|
39
|
-
],
|
|
40
|
-
providers: [
|
|
41
|
-
{provide: DIALOG_INTERACTION_SERVICE_DEFAULTS, useValue: {restoreFocus: true}},
|
|
42
|
-
{provide: ModalInteractionContextFactory, useClass: DialogInteractionContextFactory},
|
|
43
|
-
{provide: LOCALE_ID, useValue: 'en-AU'},
|
|
44
|
-
{provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID},
|
|
45
|
-
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
|
46
|
-
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS},
|
|
47
|
-
],
|
|
48
|
-
bootstrap: [],
|
|
49
|
-
})
|
|
50
|
-
export class AppModule implements DoBootstrap {
|
|
51
|
-
constructor(@Inject(DOCUMENT) private document: any,
|
|
52
|
-
iconRegistry: MatIconRegistry,
|
|
53
|
-
domSanitizer: DomSanitizer) {
|
|
54
|
-
// iconRegistry.addSvgIcon('check_box_outline', domSanitizer.bypassSecurityTrustResourceUrl('assets/icons/check_box_outline-24px.svg'));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
ngDoBootstrap(appRef: ApplicationRef): void {
|
|
58
|
-
appRef.bootstrap(AppComponent)
|
|
59
|
-
|
|
60
|
-
// this.authService
|
|
61
|
-
// .init()
|
|
62
|
-
// .then((authorised) => {
|
|
63
|
-
// if (authorised) {
|
|
64
|
-
// this.document.body.classList.add("ready")
|
|
65
|
-
// }
|
|
66
|
-
// console.log('[ngDoBootstrap] cognito initialised, starting app.');
|
|
67
|
-
// appRef.bootstrap(AppComponent);
|
|
68
|
-
// })
|
|
69
|
-
// .catch(error => {
|
|
70
|
-
// this.document.body.classList.add("auth-failure")
|
|
71
|
-
// console.error('[ngDoBootstrap] cognito initialisation failed', error);
|
|
72
|
-
// });
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
import {ComponentsModule as AupComponentsModule, InteractionModule} from "@coolon/angular-ui-powerups";
|
|
3
|
-
|
|
4
|
-
@NgModule({
|
|
5
|
-
declarations: [
|
|
6
|
-
],
|
|
7
|
-
imports: [
|
|
8
|
-
AupComponentsModule,
|
|
9
|
-
InteractionModule
|
|
10
|
-
],
|
|
11
|
-
providers: [],
|
|
12
|
-
})
|
|
13
|
-
export class ComponentsModule {
|
|
14
|
-
constructor() {
|
|
15
|
-
}
|
|
16
|
-
}
|