@coolon/angular-ui-powerups 3.7.0-alpha.0 → 3.7.0-alpha.10
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/CHANGELOG.md +71 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +423 -667
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +15 -12
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/flex.component.js +2 -9
- package/esm2015/lib/components/commands/flex.component.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-container.js +21 -0
- package/esm2015/lib/components/commands/group/command-container.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.js +26 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-container.js +3 -0
- package/esm2015/lib/components/commands/group/popup-container.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +65 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js +47 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +90 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js +42 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +12 -15
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/separator.component.js +25 -14
- package/esm2015/lib/components/commands/separator.component.js.map +1 -1
- package/esm2015/lib/components/commands/separator.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +6 -9
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/exports.js +7 -8
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +12 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +31 -41
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/guards/place.guard.metadata.json +1 -1
- package/esm2015/lib/place/place-auth-service.js.map +1 -1
- package/esm2015/lib/place/place-auth-service.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +361 -562
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +7 -6
- package/lib/components/commands/flex.component.d.ts +1 -3
- package/lib/components/commands/group/command-container.d.ts +16 -0
- package/lib/components/commands/group/popup-aware.component.d.ts +12 -0
- package/lib/components/commands/group/popup-container.d.ts +6 -0
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +25 -0
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +12 -0
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +33 -0
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +13 -0
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +4 -5
- package/lib/components/commands/separator.component.d.ts +8 -7
- package/lib/components/exports.d.ts +7 -8
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -1
- package/lib/place/guards/place.guard.d.ts +2 -1
- package/lib/place/place-auth-service.d.ts +4 -4
- package/package.json +2 -2
- package/schematics/place-routes/index.d.ts +1 -1
- package/schematics/place-routes/index.js +9 -14
- package/schematics/place-routes/index.js.map +1 -1
- package/schematics/place-routes/place-builder.d.ts +3 -5
- package/schematics/place-routes/place-builder.js +4 -23
- package/schematics/place-routes/place-builder.js.map +1 -1
- package/schematics/place-routes/place-class-scanner.d.ts +3 -2
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/place-routes/place-def.d.ts +3 -2
- package/schematics/place-routes/place-def.js.map +1 -1
- package/schematics/utils/build-context.js +1 -1
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/schematic-tree-file-system.d.ts +3 -2
- package/schematics/utils/schematic-tree-file-system.js +11 -2
- package/schematics/utils/schematic-tree-file-system.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +0 -43
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -46
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -39
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.js +0 -103
- package/esm2015/lib/components/commands/group/command-group.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +0 -53
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +0 -52
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.js +0 -58
- package/esm2015/lib/components/commands/group/registration.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.js +0 -113
- package/esm2015/lib/components/commands/group/view-data.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.metadata.json +0 -1
- package/lib/components/commands/group/command-group/command-group.component.d.ts +0 -12
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +0 -21
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +0 -13
- package/lib/components/commands/group/command-group.d.ts +0 -42
- package/lib/components/commands/group/more-menu.component.d.ts +0 -14
- package/lib/components/commands/group/popup-menu.component.d.ts +0 -17
- package/lib/components/commands/group/registration.d.ts +0 -32
- package/lib/components/commands/group/view-data.d.ts +0 -41
|
@@ -12,8 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SchematicTreeFileSystem = void 0;
|
|
13
13
|
const typescript_utilities_1 = require("@coolon/typescript-utilities");
|
|
14
14
|
class SchematicTreeFileSystem {
|
|
15
|
-
constructor(tree) {
|
|
15
|
+
constructor(tree, context) {
|
|
16
16
|
this.tree = tree;
|
|
17
|
+
this.context = context;
|
|
17
18
|
}
|
|
18
19
|
copy(srcPath, destPath) {
|
|
19
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -45,7 +46,14 @@ class SchematicTreeFileSystem {
|
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
fileExistsSync(filePath) {
|
|
48
|
-
|
|
49
|
+
const exists = this.tree.exists(filePath);
|
|
50
|
+
// NOTE: If we turn the logging on this will show ts-morph trying to read
|
|
51
|
+
// the tsconfig.app.json parent config from a double nested directory i.e
|
|
52
|
+
// apps/test-bed/dummy-app/apps/test-bed/dummy-app/tsconfig.json
|
|
53
|
+
// This is happening from within the typescript compiler so I'm not sure if
|
|
54
|
+
// it's intended behaviour or not.
|
|
55
|
+
// this.context.logger.info(`fileExists->${filePath}? ${exists}`)
|
|
56
|
+
return exists;
|
|
49
57
|
}
|
|
50
58
|
getCurrentDirectory() {
|
|
51
59
|
return '';
|
|
@@ -83,6 +91,7 @@ class SchematicTreeFileSystem {
|
|
|
83
91
|
});
|
|
84
92
|
}
|
|
85
93
|
readFileSync(filePath, encoding) {
|
|
94
|
+
// this.context.logger.info(`readFile->${filePath}`)
|
|
86
95
|
return this.tree.get(filePath).content.toString(encoding || 'UTF-8');
|
|
87
96
|
}
|
|
88
97
|
realpathSync(path) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematic-tree-file-system.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/schematic-tree-file-system.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uEAAoD;AAGpD,MAAa,uBAAuB;IAElC,YAA6B,IAAU;
|
|
1
|
+
{"version":3,"file":"schematic-tree-file-system.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/schematic-tree-file-system.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uEAAoD;AAGpD,MAAa,uBAAuB;IAElC,YAA6B,IAAU,EAAmB,OAAyB;QAAtD,SAAI,GAAJ,IAAI,CAAM;QAAmB,YAAO,GAAP,OAAO,CAAkB;IACnF,CAAC;IAEK,IAAI,CAAC,OAAe,EAAE,QAAgB;;YAC1C,OAAO,2BAAI,CAAC,cAAc,EAAE,CAAC;QAC/B,CAAC;KAAA;IAED,QAAQ,CAAC,OAAe,EAAE,QAAgB;Q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el, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { CommandFace } from '../../command-face';
|
|
5
|
-
import { CommandGroup } from '../command-group';
|
|
6
|
-
export class CommandGroupComponent extends CommandGroup {
|
|
7
|
-
constructor(parent) {
|
|
8
|
-
super(parent);
|
|
9
|
-
this.parent = parent;
|
|
10
|
-
this.xPosition = 'after';
|
|
11
|
-
this.yPosition = 'below';
|
|
12
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
13
|
-
this.faceListModel = chain(this.faceModel).mapToList(v => [v]);
|
|
14
|
-
this.parent.registerGroup(this, this.faceListModel);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
CommandGroupComponent.decorators = [
|
|
18
|
-
{ type: Component, args: [{
|
|
19
|
-
selector: 'aup-command-group',
|
|
20
|
-
template: '',
|
|
21
|
-
providers: [
|
|
22
|
-
{ provide: CommandGroup, useExisting: CommandGroupComponent }
|
|
23
|
-
]
|
|
24
|
-
},] }
|
|
25
|
-
];
|
|
26
|
-
CommandGroupComponent.ctorParameters = () => [
|
|
27
|
-
{ type: CommandGroup, decorators: [{ type: SkipSelf }] }
|
|
28
|
-
];
|
|
29
|
-
CommandGroupComponent.propDecorators = {
|
|
30
|
-
faceModel: [{ type: Input }],
|
|
31
|
-
face: [{ type: Input }],
|
|
32
|
-
xPosition: [{ type: Input }],
|
|
33
|
-
yPosition: [{ type: Input }]
|
|
34
|
-
};
|
|
35
|
-
__decorate([
|
|
36
|
-
TrackExternal(),
|
|
37
|
-
__metadata("design:type", ValueModel)
|
|
38
|
-
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
StoreInValueModel('faceModel'),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], CommandGroupComponent.prototype, "face", void 0);
|
|
43
|
-
//# sourceMappingURL=command-group.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group/command-group.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,GAAG,EAAa,iBAAiB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAWhD,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IAgBrD,YAAiC,MAAoB;QACnD,KAAK,CAAC,MAAM,CAAC,CAAC;QADiB,WAAM,GAAN,MAAM,CAAc;QALrD,cAAS,GAAuB,OAAO,CAAC;QAGxC,cAAS,GAAsB,OAAO,CAAC;QAIrC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACtD,CAAC;;;YA5BF,SAAS,SAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,QAAQ,EAAE,EAAE;gBACZ,SAAS,EAAC;oBACR,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,qBAAqB,EAAE;iBAC9D;aACF;;;YAVQ,YAAY,uBA2BN,QAAQ;;;wBAdpB,KAAK;mBAKL,KAAK;wBAGL,KAAK;wBAGL,KAAK;;AAVN;IADU,aAAa,EAAE;8BACd,UAAU;wDAAc;AAKnC;IADU,iBAAiB,CAAC,WAAW,CAAC;;mDACtB","sourcesContent":["import { Component, Input, Optional, SkipSelf } from '@angular/core';\nimport { Dsl, ListModel, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { CommandFace } from '../../command-face';\nimport { CommandGroup } from '../command-group';\nimport { ViewData } from '../view-data';\n\n\n@Component({\n selector: 'aup-command-group',\n template: '',\n providers:[\n { provide: CommandGroup, useExisting: CommandGroupComponent }\n ]\n})\nexport class CommandGroupComponent extends CommandGroup {\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n readonly faceListModel: ListModel<CommandFace>\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n constructor(@SkipSelf() readonly parent: CommandGroup) {\n super(parent);\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.faceListModel = chain(this.faceModel).mapToList(v => [v]);\n this.parent.registerGroup(this, this.faceListModel);\n }\n}\n\n\n"]}
|
package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":14,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"aup-command-group","template":"","providers":[{"provide":{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":11,"character":15},"useExisting":{"__symbolic":"reference","name":"CommandGroupComponent"}}]}]}],"members":{"faceModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":16,"character":12}}]}],"face":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":21,"character":12},"arguments":["faceModel"]}]}],"xPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"yPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":30,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":30,"character":43}]}]}}}}]
|
package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group/command-group.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, EventEmitter, Input, Optional, Output, QueryList, SkipSelf, ViewChild, ViewChildren } from '@angular/core';
|
|
3
|
-
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
5
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
6
|
-
import { TrackBy } from '../../../track-by';
|
|
7
|
-
import { ViewData } from '../view-data';
|
|
8
|
-
export class CommandGroupMenuRendererComponent extends DisposableComponent {
|
|
9
|
-
constructor(parent) {
|
|
10
|
-
super();
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
this.groupViewDataModel = new MutableValueModel();
|
|
13
|
-
this.commandFired = new EventEmitter();
|
|
14
|
-
this.ViewData = ViewData;
|
|
15
|
-
this.TrackBy = TrackBy;
|
|
16
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
17
|
-
this.children = chain(this.groupViewDataModel).pluckList('children');
|
|
18
|
-
this.hasMixedIcons = chain(this.groupViewDataModel).pluck('hasMixedIcons');
|
|
19
|
-
}
|
|
20
|
-
getCommand(data) {
|
|
21
|
-
const command = ViewData.getCommand(data);
|
|
22
|
-
const { when } = Dsl.disposeWith(this);
|
|
23
|
-
when(command.busy).becomesFalsey(() => this.commandFired.emit());
|
|
24
|
-
return command;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
CommandGroupMenuRendererComponent.decorators = [
|
|
28
|
-
{ type: Component, args: [{
|
|
29
|
-
selector: 'aup-command-group-menu',
|
|
30
|
-
template: "<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n [pectinCommand]=\"getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"
|
|
31
|
-
},] }
|
|
32
|
-
];
|
|
33
|
-
CommandGroupMenuRendererComponent.ctorParameters = () => [
|
|
34
|
-
{ type: CommandGroupMenuRendererComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
35
|
-
];
|
|
36
|
-
CommandGroupMenuRendererComponent.propDecorators = {
|
|
37
|
-
menuComponent: [{ type: ViewChild, args: ['menu', { static: true },] }],
|
|
38
|
-
groupViewData: [{ type: Input }],
|
|
39
|
-
commandFired: [{ type: Output }],
|
|
40
|
-
triggers: [{ type: ViewChildren, args: [MatMenuTrigger,] }]
|
|
41
|
-
};
|
|
42
|
-
__decorate([
|
|
43
|
-
StoreInValueModel('groupViewDataModel'),
|
|
44
|
-
__metadata("design:type", ViewData.GroupData)
|
|
45
|
-
], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
|
|
46
|
-
//# sourceMappingURL=command-group-menu-renderer.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-menu-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,GAAG,EAAkB,iBAAiB,EAAE,iBAAiB,EAAmB,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc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AAc;;AAL5B;IADU,iBAAiB,CAAC,oBAAoB,CAAC;8BAClC,QAAQ,CAAC,SAAS;wEAAC","sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Optional,\n Output,\n QueryList,\n SkipSelf,\n ViewChild,\n ViewChildren\n} from '@angular/core';\nimport { MatMenu, MatMenuTrigger } from '@angular/material/menu';\nimport { Dsl, ListModelChain, MutableValueModel, StoreInValueModel, ValueModelChain } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { TrackBy } from '../../../track-by';\nimport { Registration } from '../registration';\nimport { ViewData } from '../view-data';\n\n@Component({\n selector: 'aup-command-group-menu',\n templateUrl: './command-group-menu-renderer.component.html'\n})\nexport class CommandGroupMenuRendererComponent extends DisposableComponent {\n\n @ViewChild('menu', { static: true })\n menuComponent: MatMenu;\n\n private readonly groupViewDataModel = new MutableValueModel<ViewData.GroupData>();\n\n @Input() @StoreInValueModel('groupViewDataModel')\n groupViewData: ViewData.GroupData;\n\n @Output()\n commandFired = new EventEmitter();\n\n @ViewChildren(MatMenuTrigger)\n triggers: QueryList<MatMenuTrigger>;\n\n readonly children: ListModelChain<Registration>;\n\n readonly hasMixedIcons: ValueModelChain<boolean>;\n\n readonly ViewData = ViewData;\n\n TrackBy = TrackBy;\n\n constructor(@Optional() @SkipSelf() readonly parent?: CommandGroupMenuRendererComponent) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.children = chain(this.groupViewDataModel).pluckList('children');\n this.hasMixedIcons = chain(this.groupViewDataModel).pluck('hasMixedIcons');\n }\n\n getCommand(data: ViewData) {\n const command = ViewData.getCommand(data);\n const { when } = Dsl.disposeWith(this);\n when(command.busy).becomesFalsey(() => this.commandFired.emit());\n return command;\n }\n\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupMenuRendererComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../disposable-component","name":"DisposableComponent","line":22,"character":55},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"aup-command-group-menu","template":"<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n [pectinCommand]=\"getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"}]}],"members":{"menuComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":24,"character":3},"arguments":["menu",{"static":true}]}]}],"groupViewData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":29,"character":12},"arguments":["groupViewDataModel"]}]}],"commandFired":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":35,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuTrigger","line":35,"character":16}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":46,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":46,"character":27}}]],"parameters":[{"__symbolic":"reference","name":"CommandGroupMenuRendererComponent"}]}],"getCommand":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-menu-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
3
|
-
import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
5
|
-
import { ViewData } from '../view-data';
|
|
6
|
-
import { TrackBy } from '../../../track-by';
|
|
7
|
-
export class CommandGroupRendererComponent extends DisposableComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.renderRootNode = true;
|
|
11
|
-
this.ViewData = ViewData;
|
|
12
|
-
this.TrackBy = TrackBy;
|
|
13
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
14
|
-
this.childViewDataModels = chain(this.groupViewDataModel)
|
|
15
|
-
.pluckList('children');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
CommandGroupRendererComponent.decorators = [
|
|
19
|
-
{ type: Component, args: [{
|
|
20
|
-
selector: 'aup-command-group-renderer',
|
|
21
|
-
template: "<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button #trigger=\"matMenuTrigger\"\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n",
|
|
22
|
-
styles: [":host{align-items:center;display:inline-flex;flex-direction:row}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]
|
|
23
|
-
},] }
|
|
24
|
-
];
|
|
25
|
-
CommandGroupRendererComponent.ctorParameters = () => [];
|
|
26
|
-
CommandGroupRendererComponent.propDecorators = {
|
|
27
|
-
groupViewDataModel: [{ type: Input }],
|
|
28
|
-
groupViewData: [{ type: Input }],
|
|
29
|
-
renderRootNode: [{ type: Input }, { type: HostBinding, args: ['class.render-root',] }]
|
|
30
|
-
};
|
|
31
|
-
__decorate([
|
|
32
|
-
TrackExternal(),
|
|
33
|
-
__metadata("design:type", ValueModel)
|
|
34
|
-
], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
StoreInValueModel('groupViewDataModel'),
|
|
37
|
-
__metadata("design:type", ViewData.GroupData)
|
|
38
|
-
], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
|
|
39
|
-
//# sourceMappingURL=command-group-renderer.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAkB,iBAAiB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAkBpE;QACE,KAAK,EAAE,CAAC;QATV,mBAAc,GAAG,IAAI,CAAC;QAEb,aAAQ,GAAG,QAAQ,CAAC;QAI7B,YAAO,GAAG,OAAO,CAAA;QAIf,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;aACtD,SAAS,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;;YA5BF,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,woJAAsD;;aAEvD;;;;iCAGE,KAAK;4BAGL,KAAK;6BAGL,KAAK,YACL,WAAW,SAAC,mBAAmB;;AANhC;IADU,aAAa,EAAE;8BACL,UAAU;yEAAqB;AAGnD;IADU,iBAAiB,CAAC,oBAAoB,CAAC;8BAClC,QAAQ,CAAC,SAAS;oEAAC","sourcesContent":["import { Component, HostBinding, Input } from '@angular/core';\nimport { Dsl, ListModelChain, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { ViewData } from '../view-data';\nimport { TrackBy } from '../../../track-by';\n\n@Component({\n selector: 'aup-command-group-renderer',\n templateUrl: './command-group-renderer.component.html',\n styleUrls: ['./command-group-renderer.component.scss']\n})\nexport class CommandGroupRendererComponent extends DisposableComponent {\n\n @Input() @TrackExternal()\n groupViewDataModel: ValueModel<ViewData.GroupData>;\n\n @Input() @StoreInValueModel('groupViewDataModel')\n groupViewData: ViewData.GroupData;\n\n @Input()\n @HostBinding('class.render-root')\n renderRootNode = true;\n\n readonly ViewData = ViewData;\n\n readonly childViewDataModels: ListModelChain<ViewData>;\n\n TrackBy = TrackBy\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.childViewDataModels = chain(this.groupViewDataModel)\n .pluckList('children')\n }\n\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupRendererComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../disposable-component","name":"DisposableComponent","line":11,"character":51},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"aup-command-group-renderer","template":"<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button #trigger=\"matMenuTrigger\"\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n","styles":[":host{align-items:center;display:inline-flex;flex-direction:row}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]}]}],"members":{"groupViewDataModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":13,"character":12}}]}],"groupViewData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":16,"character":12},"arguments":["groupViewDataModel"]}]}],"renderRootNode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":20,"character":3},"arguments":["class.render-root"]}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Dsl, GarbageCollector, ListModel, MutableListModel, MutableValueModel, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
3
|
-
import { Registration } from './registration';
|
|
4
|
-
import { ViewData } from './view-data';
|
|
5
|
-
export class CommandGroup extends GarbageCollector {
|
|
6
|
-
constructor(parent) {
|
|
7
|
-
super();
|
|
8
|
-
this.parent = parent;
|
|
9
|
-
this._rootTemplate = new MutableValueModel();
|
|
10
|
-
this._registrations = new MutableListModel();
|
|
11
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
12
|
-
this.childTemplates = chain(this._rootTemplate).pluckList('children');
|
|
13
|
-
this.initialised = chain(this._rootTemplate).isNotNil();
|
|
14
|
-
}
|
|
15
|
-
initialise() {
|
|
16
|
-
this.rebuildTemplates();
|
|
17
|
-
}
|
|
18
|
-
get rootTemplate() {
|
|
19
|
-
return this._rootTemplate.readonly;
|
|
20
|
-
}
|
|
21
|
-
get registrations() {
|
|
22
|
-
return this._registrations.readonly;
|
|
23
|
-
}
|
|
24
|
-
notifyChanged() {
|
|
25
|
-
if (this.parent) {
|
|
26
|
-
this.parent.notifyChanged();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.rebuildTemplates();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
notifyChildFaceChanged(is, was) {
|
|
33
|
-
this.notifyChanged();
|
|
34
|
-
}
|
|
35
|
-
rebuildTemplates() {
|
|
36
|
-
this._rootTemplate.value = new ViewData.GroupData(this.faceListModel.value, this.xPosition, this.yPosition, this.registrations.value.map(r => r.toTemplate()));
|
|
37
|
-
}
|
|
38
|
-
get depth() {
|
|
39
|
-
return this.isRoot() ? 0 : this.parent.depth + 1;
|
|
40
|
-
}
|
|
41
|
-
isRoot() {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
registerCommand(command, faceListModel) {
|
|
45
|
-
return this.register(new Registration.CommandRegistration(command, faceListModel));
|
|
46
|
-
}
|
|
47
|
-
registerGroup(group, faceModel) {
|
|
48
|
-
return this.register(new Registration.GroupRegistration(faceModel, group));
|
|
49
|
-
}
|
|
50
|
-
registerFlex(component) {
|
|
51
|
-
return this.register(new Registration.FlexRegistration());
|
|
52
|
-
}
|
|
53
|
-
registerSeparator(component) {
|
|
54
|
-
return this.register(new Registration.SeparatorRegistration());
|
|
55
|
-
}
|
|
56
|
-
register(registration) {
|
|
57
|
-
this._registrations.push(registration);
|
|
58
|
-
if (registration instanceof Registration.FaceRegistration) {
|
|
59
|
-
const { when } = Dsl.disposeWith(registration);
|
|
60
|
-
when(registration.faceListModel).changes((is, was) => {
|
|
61
|
-
this.notifyChildFaceChanged(is, was);
|
|
62
|
-
}, { asLongAs: this.initialised });
|
|
63
|
-
}
|
|
64
|
-
registration.onDispose(() => this._registrations.remove(registration));
|
|
65
|
-
return registration;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
(function (CommandGroup) {
|
|
69
|
-
class Root extends CommandGroup {
|
|
70
|
-
constructor() {
|
|
71
|
-
super();
|
|
72
|
-
}
|
|
73
|
-
isRoot() {
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
__decorate([
|
|
78
|
-
TrackExternal(),
|
|
79
|
-
__metadata("design:type", ListModel)
|
|
80
|
-
], Root.prototype, "faceListModel", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
TrackExternal({ defaultValue: 'after' }),
|
|
83
|
-
__metadata("design:type", ValueModel)
|
|
84
|
-
], Root.prototype, "xPositionModel", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
StoreInValueModel('xPositionModel'),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], Root.prototype, "xPosition", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
TrackExternal({ defaultValue: 'below' }),
|
|
91
|
-
__metadata("design:type", ValueModel)
|
|
92
|
-
], Root.prototype, "yPositionModel", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
StoreInValueModel('yPositionModel'),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], Root.prototype, "yPosition", void 0);
|
|
97
|
-
CommandGroup.Root = Root;
|
|
98
|
-
function factory() {
|
|
99
|
-
return new Root();
|
|
100
|
-
}
|
|
101
|
-
CommandGroup.factory = factory;
|
|
102
|
-
})(CommandGroup || (CommandGroup = {}));
|
|
103
|
-
//# sourceMappingURL=command-group.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAIL,GAAG,EACH,gBAAgB,EAChB,SAAS,EAET,gBAA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C,YAAY,CAAC,CAAC;YAC/C,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE;gBACnD,IAAI,CAAC,sBAAsB,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;YACvC,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;SACpC;QACD,YAAY,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QACvE,OAAO,YAAY,CAAC;IACtB,CAAC;CAEF;AAED,WAAiB,YAAY;IAC3B,MAAa,IAAK,SAAQ,YAAY;QAiBpC;YACE,KAAK,EAAE,CAAC;QACV,CAAC;QAED,MAAM;YACJ,OAAO,IAAI,CAAC;QACd,CAAC;KACF;IArBC;QADC,aAAa,EAAE;kCACD,SAAS;+CAAc;IAGtC;QADC,aAAa,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;kCACzB,UAAU;gDAAqB;IAG/C;QADC,iBAAiB,CAAC,gBAAgB,CAAC;;2CACN;IAG9B;QADC,aAAa,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;kCACzB,UAAU;gDAAoB;IAG9C;QADC,iBAAiB,CAAC,gBAAgB,CAAC;;2CACP;IAflB,iBAAI,OAwBhB,CAAA;IAED,SAAgB,OAAO;QACrB,OAAO,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IAFe,oBAAO,UAEtB,CAAA;AACH,CAAC,EA9BgB,YAAY,KAAZ,YAAY,QA8B5B","sourcesContent":["import {\n BooleanValueModelChain,\n Command,\n Disposable,\n Dsl,\n GarbageCollector,\n ListModel,\n ListModelChain,\n MutableListModel,\n MutableValueModel,\n StoreInValueModel,\n TrackExternal,\n ValueModel\n} from '@coolon/pectin';\nimport { CommandFace } from '../command-face';\nimport { FlexComponent } from '../flex.component';\nimport { SeparatorComponent } from '../separator.component';\nimport { Registration } from './registration';\nimport { ViewData } from './view-data';\n\nexport abstract class CommandGroup extends GarbageCollector {\n\n abstract faceListModel: ListModel<CommandFace>;\n\n abstract xPosition: 'before' | 'after';\n abstract yPosition: 'above' | 'below';\n\n private readonly _rootTemplate = new MutableValueModel<ViewData.GroupData>();\n\n private readonly _registrations = new MutableListModel<Registration>();\n\n readonly childTemplates: ListModelChain<ViewData>;\n\n private initialised: BooleanValueModelChain;\n\n constructor(readonly parent?: CommandGroup) {\n super();\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n\n this.childTemplates = chain(this._rootTemplate).pluckList('children');\n\n this.initialised = chain(this._rootTemplate).isNotNil();\n }\n\n initialise() {\n this.rebuildTemplates();\n }\n\n get rootTemplate() {\n return this._rootTemplate.readonly;\n }\n\n get registrations(): ListModel<Registration> {\n return this._registrations.readonly;\n }\n\n notifyChanged() {\n if (this.parent) {\n this.parent.notifyChanged();\n } else {\n this.rebuildTemplates();\n }\n }\n\n private notifyChildFaceChanged(is: CommandFace[], was: CommandFace[]) {\n this.notifyChanged();\n }\n\n private rebuildTemplates() {\n this._rootTemplate.value = new ViewData.GroupData(\n this.faceListModel.value,\n this.xPosition,\n this.yPosition,\n this.registrations.value.map(r => r.toTemplate())\n );\n }\n\n get depth(): number {\n return this.isRoot() ? 0 : this.parent.depth + 1;\n }\n\n isRoot(): boolean {\n return false;\n }\n\n registerCommand(command: Command<unknown>, faceListModel: ListModel<CommandFace>): Disposable {\n return this.register(new Registration.CommandRegistration(command, faceListModel));\n }\n\n registerGroup(group: CommandGroup, faceModel: ListModel<CommandFace>): Disposable {\n return this.register(new Registration.GroupRegistration(faceModel, group));\n }\n\n registerFlex(component: FlexComponent): Disposable {\n return this.register(new Registration.FlexRegistration());\n }\n\n registerSeparator(component: SeparatorComponent): Disposable {\n return this.register(new Registration.SeparatorRegistration());\n }\n\n protected register(registration: Registration): Registration {\n this._registrations.push(registration);\n if (registration instanceof Registration.FaceRegistration) {\n const { when } = Dsl.disposeWith(registration);\n when(registration.faceListModel).changes((is, was) => {\n this.notifyChildFaceChanged(is, was);\n }, { asLongAs: this.initialised });\n }\n registration.onDispose(() => this._registrations.remove(registration));\n return registration;\n }\n\n}\n\nexport namespace CommandGroup {\n export class Root extends CommandGroup {\n\n @TrackExternal()\n faceListModel: ListModel<CommandFace>;\n\n @TrackExternal({ defaultValue: 'after' })\n xPositionModel: ValueModel<'before' | 'after'>;\n\n @StoreInValueModel('xPositionModel')\n xPosition: 'before' | 'after';\n\n @TrackExternal({ defaultValue: 'below' })\n yPositionModel: ValueModel<'above' | 'below'>;\n\n @StoreInValueModel('yPositionModel')\n yPosition: 'above' | 'below';\n\n constructor() {\n super();\n }\n\n isRoot(): boolean {\n return true;\n }\n }\n\n export function factory(): Root {\n return new Root();\n }\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroup":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":20,"character":43},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"CommandGroup"}]}],"initialise":[{"__symbolic":"method"}],"notifyChanged":[{"__symbolic":"method"}],"notifyChildFaceChanged":[{"__symbolic":"method"}],"rebuildTemplates":[{"__symbolic":"method"}],"isRoot":[{"__symbolic":"method"}],"registerCommand":[{"__symbolic":"method"}],"registerGroup":[{"__symbolic":"method"}],"registerFlex":[{"__symbolic":"method"}],"registerSeparator":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
-
import { CommandGroup } from './command-group';
|
|
6
|
-
const ɵ0 = CommandGroup.factory;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export class MoreMenuComponent extends DisposableComponent {
|
|
11
|
-
constructor(group) {
|
|
12
|
-
super();
|
|
13
|
-
this.group = group;
|
|
14
|
-
this.tooltipModel = new MutableValueModel();
|
|
15
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
group.xPosition = 'before'; // this should be the default unless overridden by the user.
|
|
17
|
-
group.faceListModel = chain(this.tooltipModel).mapToList(tooltip => {
|
|
18
|
-
return [
|
|
19
|
-
{
|
|
20
|
-
icon: () => 'mat:more_vert',
|
|
21
|
-
tooltip() {
|
|
22
|
-
return tooltip;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
}, { allowNil: true });
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
}
|
|
30
|
-
// @Trace()
|
|
31
|
-
ngAfterContentInit() {
|
|
32
|
-
this.group.initialise();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
MoreMenuComponent.decorators = [
|
|
36
|
-
{ type: Component, args: [{
|
|
37
|
-
selector: 'aup-more-menu',
|
|
38
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
39
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
MoreMenuComponent.ctorParameters = () => [
|
|
43
|
-
{ type: CommandGroup }
|
|
44
|
-
];
|
|
45
|
-
MoreMenuComponent.propDecorators = {
|
|
46
|
-
tooltip: [{ type: Input }]
|
|
47
|
-
};
|
|
48
|
-
__decorate([
|
|
49
|
-
StoreInValueModel('tooltipModel'),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
52
|
-
export { ɵ0 };
|
|
53
|
-
//# sourceMappingURL=more-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/more-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,iBAAiB,EAAS,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;WAQI,YAAY,CAAC,OAAO;AANvE;;GAEG;AAMH,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IAOxD,YAAqB,KAAmB;QACtC,KAAK,EAAE,CAAC;QADW,UAAK,GAAL,KAAK,CAAc;QALhC,iBAAY,GAAG,IAAI,iBAAiB,EAAU,CAAC;QAOrD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,4DAA4D;QACxF,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;YACjE,OAAO;gBACL;oBACE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAe;oBAC3B,OAAO;wBACL,OAAO,OAAO,CAAC;oBACjB,CAAC;iBACF;aACF,CAAC;QACJ,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzB,CAAC;IAED,QAAQ;IACR,CAAC;IAED,WAAW;IACX,kBAAkB;QAChB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;;;YAlCF,SAAS,SAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,6HAA6H;gBACvI,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAE,CAAC;aACzE;;;YATQ,YAAY;;;sBAclB,KAAK;;AACN;IADU,iBAAiB,CAAC,cAAc,CAAC;;kDAC3B","sourcesContent":["import { AfterContentInit, Component, Input, OnInit } from '@angular/core';\nimport { Dsl, MutableValueModel, StoreInValueModel, Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandGroup } from './command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-more-menu',\n template: '<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory }]\n})\nexport class MoreMenuComponent extends DisposableComponent implements OnInit, AfterContentInit {\n\n private tooltipModel = new MutableValueModel<string>();\n\n @Input() @StoreInValueModel('tooltipModel')\n tooltip: string;\n\n constructor(readonly group: CommandGroup) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n group.xPosition = 'before'; // this should be the default unless overridden by the user.\n group.faceListModel = chain(this.tooltipModel).mapToList(tooltip => {\n return [\n {\n icon: () => 'mat:more_vert',\n tooltip(): string {\n return tooltip;\n }\n }\n ];\n }, { allowNil: true });\n }\n\n ngOnInit() {\n }\n\n // @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":11,"character":51},"member":"factory"},"MoreMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":13,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"aup-more-menu","template":"<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>","providers":[{"provide":{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":11,"character":25},"useFactory":{"__symbolic":"reference","name":"ɵ0"}}]}]}],"members":{"tooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":17,"character":12},"arguments":["tooltipModel"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":20,"character":30}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/more-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
-
import { CommandFace } from '../command-face';
|
|
6
|
-
import { CommandGroup } from './command-group';
|
|
7
|
-
const ɵ0 = CommandGroup.factory;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export class PopupMenuComponent extends DisposableComponent {
|
|
12
|
-
constructor(group) {
|
|
13
|
-
super();
|
|
14
|
-
this.group = group;
|
|
15
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
group.faceListModel = chain(this.faceModel).mapToList(face => [face]);
|
|
17
|
-
}
|
|
18
|
-
// @Trace()
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
}
|
|
21
|
-
// @Trace()
|
|
22
|
-
ngAfterContentInit() {
|
|
23
|
-
this.group.initialise();
|
|
24
|
-
}
|
|
25
|
-
// @Trace()
|
|
26
|
-
ngAfterViewInit() {
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
PopupMenuComponent.decorators = [
|
|
30
|
-
{ type: Component, args: [{
|
|
31
|
-
selector: 'aup-popup-menu',
|
|
32
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
33
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
|
|
34
|
-
},] }
|
|
35
|
-
];
|
|
36
|
-
PopupMenuComponent.ctorParameters = () => [
|
|
37
|
-
{ type: CommandGroup }
|
|
38
|
-
];
|
|
39
|
-
PopupMenuComponent.propDecorators = {
|
|
40
|
-
faceModel: [{ type: Input }],
|
|
41
|
-
face: [{ type: Input }]
|
|
42
|
-
};
|
|
43
|
-
__decorate([
|
|
44
|
-
TrackExternal(),
|
|
45
|
-
__metadata("design:type", ValueModel)
|
|
46
|
-
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
StoreInValueModel('faceModel'),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
51
|
-
export { ɵ0 };
|
|
52
|
-
//# sourceMappingURL=popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/popup-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmC,SAAS,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OnInit } from '@angular/core';\n\nimport { Dsl, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandFace } from '../command-face';\nimport { CommandGroup } from './command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-popup-menu',\n template: '<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n styleUrls: [],\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory}]\n})\nexport class PopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n constructor(readonly group: CommandGroup) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n group.faceListModel = chain(this.faceModel).mapToList(face => [face]);\n }\n\n // @Trace()\n ngOnInit(): void {\n }\n\n // @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n // @Trace()\n ngAfterViewInit(): void {\n }\n\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":14,"character":51},"member":"factory"},"PopupMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":16,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"aup-popup-menu","template":"<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>","styleUrls":[],"providers":[{"provide":{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":14,"character":25},"useFactory":{"__symbolic":"reference","name":"ɵ0"}}]}]}],"members":{"faceModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":18,"character":12}}]}],"face":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":21,"character":12},"arguments":["faceModel"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":24,"character":30}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { GarbageCollector } from '@coolon/pectin';
|
|
2
|
-
import { ViewData } from './view-data';
|
|
3
|
-
export class Registration extends GarbageCollector {
|
|
4
|
-
}
|
|
5
|
-
(function (Registration) {
|
|
6
|
-
class FaceRegistration extends Registration {
|
|
7
|
-
constructor(faceListModel) {
|
|
8
|
-
super();
|
|
9
|
-
this.faceListModel = faceListModel;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
Registration.FaceRegistration = FaceRegistration;
|
|
13
|
-
class CommandRegistration extends FaceRegistration {
|
|
14
|
-
constructor(command, faceListModel) {
|
|
15
|
-
super(faceListModel);
|
|
16
|
-
this.command = command;
|
|
17
|
-
}
|
|
18
|
-
toTemplate() {
|
|
19
|
-
return new ViewData.CommandData(this.command, this.faceListModel.value);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Registration.CommandRegistration = CommandRegistration;
|
|
23
|
-
class GroupRegistration extends FaceRegistration {
|
|
24
|
-
constructor(faceModel, group) {
|
|
25
|
-
super(faceModel);
|
|
26
|
-
this.group = group;
|
|
27
|
-
}
|
|
28
|
-
toTemplate() {
|
|
29
|
-
return new ViewData.GroupData(this.faceListModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(r => r.toTemplate()));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
Registration.GroupRegistration = GroupRegistration;
|
|
33
|
-
class SeparatorRegistration extends Registration {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.template = new ViewData.SeparatorData();
|
|
37
|
-
}
|
|
38
|
-
toTemplate() {
|
|
39
|
-
return this.template;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
Registration.SeparatorRegistration = SeparatorRegistration;
|
|
43
|
-
class FlexRegistration extends Registration {
|
|
44
|
-
constructor() {
|
|
45
|
-
super(...arguments);
|
|
46
|
-
this.template = new ViewData.FlexData();
|
|
47
|
-
}
|
|
48
|
-
toTemplate() {
|
|
49
|
-
return this.template;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
Registration.FlexRegistration = FlexRegistration;
|
|
53
|
-
function hasFace(entry) {
|
|
54
|
-
return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
|
|
55
|
-
}
|
|
56
|
-
Registration.hasFace = hasFace;
|
|
57
|
-
})(Registration || (Registration = {}));
|
|
58
|
-
//# sourceMappingURL=registration.js.map
|