@coolon/angular-ui-powerups 2.0.0-alpha.27 → 2.0.0-alpha.28
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 +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +212 -117
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +39 -36
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +37 -34
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/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-bar.component.js +7 -11
- package/esm2015/lib/components/commands/command-bar.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-container.js +3 -22
- package/esm2015/lib/components/commands/command-container.js.map +1 -1
- package/esm2015/lib/components/commands/command-container.metadata.json +1 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +50 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +35 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +46 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +62 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/components.module.js +12 -6
- 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/index.js +4 -1
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +37 -34
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/commands/command-bar.component.js +3 -7
- package/esm5/lib/components/commands/command-bar.component.js.map +1 -1
- package/esm5/lib/components/commands/command-container.js +2 -23
- package/esm5/lib/components/commands/command-container.js.map +1 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +57 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +30 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +42 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +66 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/components.module.js +12 -6
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/index.js +4 -1
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +154 -59
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +151 -63
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-bar.component.d.ts +1 -2
- package/lib/components/commands/command-container.d.ts +2 -2
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +15 -0
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +8 -0
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +14 -0
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +21 -0
- package/lib/components/index.d.ts +4 -1
- package/package.json +1 -1
- package/esm2015/lib/components/commands/command-container.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-menu/command-menu.component.js +0 -65
- package/esm2015/lib/components/commands/command-menu/command-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-menu/command-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-container.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-menu/command-menu.component.js +0 -70
- package/esm5/lib/components/commands/command-menu/command-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +0 -1
- package/lib/components/commands/command-menu/command-menu.component.d.ts +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0-alpha.28](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2020-08-25)
|
|
6
|
+
|
|
5
7
|
## [2.0.0-alpha.27](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.26...v2.0.0-alpha.27) (2020-08-25)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -685,14 +685,13 @@
|
|
|
685
685
|
CommandFace.Adapter = Adapter;
|
|
686
686
|
})(exports.CommandFace || (exports.CommandFace = {}));
|
|
687
687
|
|
|
688
|
-
|
|
688
|
+
var CommandContainer = /** @class */ (function (_super) {
|
|
689
689
|
__extends(CommandContainer, _super);
|
|
690
690
|
function CommandContainer() {
|
|
691
691
|
var _this = _super.call(this) || this;
|
|
692
692
|
_this._commandRegistrations = new pectin.MutableListModel();
|
|
693
693
|
return _this;
|
|
694
694
|
}
|
|
695
|
-
CommandContainer_1 = CommandContainer;
|
|
696
695
|
Object.defineProperty(CommandContainer.prototype, "commandRegistrations", {
|
|
697
696
|
get: function () {
|
|
698
697
|
return this._commandRegistrations.readonly;
|
|
@@ -702,34 +701,15 @@
|
|
|
702
701
|
});
|
|
703
702
|
CommandContainer.prototype.registerCommand = function (command, face) {
|
|
704
703
|
var _this = this;
|
|
705
|
-
var registration = new
|
|
704
|
+
var registration = { command: command, faceAdapter: new exports.CommandFace.Adapter(face) };
|
|
706
705
|
this._commandRegistrations.push(registration);
|
|
707
706
|
return pectin.Disposable.disposableThatRuns(function () { return _this._commandRegistrations.remove(registration); });
|
|
708
707
|
};
|
|
709
708
|
CommandContainer.prototype.getDefaultIconPosition = function () {
|
|
710
709
|
return exports.CommandFace.Position.START;
|
|
711
710
|
};
|
|
712
|
-
var CommandContainer_1;
|
|
713
|
-
CommandContainer = CommandContainer_1 = __decorate([
|
|
714
|
-
core.Component({
|
|
715
|
-
template: ''
|
|
716
|
-
}),
|
|
717
|
-
__metadata("design:paramtypes", [])
|
|
718
|
-
], CommandContainer);
|
|
719
711
|
return CommandContainer;
|
|
720
712
|
}(pectin.GarbageCollector));
|
|
721
|
-
(function (CommandContainer) {
|
|
722
|
-
var Registration = /** @class */ (function (_super) {
|
|
723
|
-
__extends(Registration, _super);
|
|
724
|
-
function Registration(command, face) {
|
|
725
|
-
var _this = _super.call(this, face) || this;
|
|
726
|
-
_this.command = command;
|
|
727
|
-
return _this;
|
|
728
|
-
}
|
|
729
|
-
return Registration;
|
|
730
|
-
}(exports.CommandFace.Adapter));
|
|
731
|
-
CommandContainer.Registration = Registration;
|
|
732
|
-
})(exports.ɵbo || (exports.ɵbo = {}));
|
|
733
713
|
|
|
734
714
|
/**
|
|
735
715
|
*
|
|
@@ -743,24 +723,20 @@
|
|
|
743
723
|
CommandBarComponent.prototype.ngOnInit = function () {
|
|
744
724
|
};
|
|
745
725
|
CommandBarComponent.prototype.getButtonColor = function (registration) {
|
|
746
|
-
return registration.destructive ? 'warn' : undefined;
|
|
726
|
+
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
747
727
|
};
|
|
748
728
|
var CommandBarComponent_1;
|
|
749
|
-
__decorate([
|
|
750
|
-
core.ContentChild('moreMenu'),
|
|
751
|
-
__metadata("design:type", core.TemplateRef)
|
|
752
|
-
], CommandBarComponent.prototype, "moreMenuTemplateRef", void 0);
|
|
753
729
|
CommandBarComponent = CommandBarComponent_1 = __decorate([
|
|
754
730
|
core.Component({
|
|
755
731
|
selector: 'aup-command-bar',
|
|
756
|
-
template: "\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.icon && !registration.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.face\"></aup-command-face>\n </button>\n </ng-container>\n ",
|
|
757
|
-
providers: [{ provide:
|
|
732
|
+
template: "\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n ",
|
|
733
|
+
providers: [{ provide: CommandContainer, useExisting: core.forwardRef(function () { return CommandBarComponent_1; }) }],
|
|
758
734
|
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
759
735
|
}),
|
|
760
736
|
__metadata("design:paramtypes", [])
|
|
761
737
|
], CommandBarComponent);
|
|
762
738
|
return CommandBarComponent;
|
|
763
|
-
}(
|
|
739
|
+
}(CommandContainer));
|
|
764
740
|
|
|
765
741
|
/**
|
|
766
742
|
*
|
|
@@ -836,7 +812,7 @@
|
|
|
836
812
|
configurable: true
|
|
837
813
|
});
|
|
838
814
|
CommandFaceComponent.ctorParameters = function () { return [
|
|
839
|
-
{ type:
|
|
815
|
+
{ type: CommandContainer, decorators: [{ type: core.Optional }] }
|
|
840
816
|
]; };
|
|
841
817
|
__decorate([
|
|
842
818
|
core.Input('face'), pectin.StoreInValueModel('faceModel'),
|
|
@@ -872,7 +848,7 @@
|
|
|
872
848
|
styles: ["aup-command-face{--icon-gap:var(--command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]
|
|
873
849
|
}),
|
|
874
850
|
__param(0, core.Optional()),
|
|
875
|
-
__metadata("design:paramtypes", [
|
|
851
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
876
852
|
], CommandFaceComponent);
|
|
877
853
|
return CommandFaceComponent;
|
|
878
854
|
}(DisposableComponent));
|
|
@@ -891,7 +867,7 @@
|
|
|
891
867
|
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
892
868
|
};
|
|
893
869
|
CommandComponent.ctorParameters = function () { return [
|
|
894
|
-
{ type:
|
|
870
|
+
{ type: CommandContainer }
|
|
895
871
|
]; };
|
|
896
872
|
__decorate([
|
|
897
873
|
core.Input(), pectin.TrackExternal(),
|
|
@@ -906,7 +882,7 @@
|
|
|
906
882
|
selector: 'aup-command',
|
|
907
883
|
template: ""
|
|
908
884
|
}),
|
|
909
|
-
__metadata("design:paramtypes", [
|
|
885
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
910
886
|
], CommandComponent);
|
|
911
887
|
return CommandComponent;
|
|
912
888
|
}(DisposableComponent));
|
|
@@ -914,65 +890,173 @@
|
|
|
914
890
|
/**
|
|
915
891
|
*
|
|
916
892
|
*/
|
|
917
|
-
var
|
|
918
|
-
__extends(
|
|
919
|
-
function
|
|
893
|
+
var PopupMenuRendererComponent = /** @class */ (function (_super) {
|
|
894
|
+
__extends(PopupMenuRendererComponent, _super);
|
|
895
|
+
function PopupMenuRendererComponent() {
|
|
920
896
|
var _this = _super.call(this) || this;
|
|
921
|
-
_this.faceModel = new pectin.MutableValueModel();
|
|
922
897
|
_this.xPosition = 'after';
|
|
923
898
|
_this.yPosition = 'below';
|
|
899
|
+
_this.commandExecuted = new core.EventEmitter();
|
|
924
900
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
925
|
-
_this.tooltip = chain(_this.faceModel).map(function (face) { return new exports.CommandFace.Adapter(face); }).pluck('tooltip');
|
|
926
901
|
var registrations = chain(_this.commandRegistrations);
|
|
927
|
-
var iconCount = registrations.select(function (r) { return !!r.icon; }).count();
|
|
902
|
+
var iconCount = registrations.select(function (r) { return !!r.faceAdapter.icon; }).count();
|
|
928
903
|
_this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
|
|
929
904
|
return _this;
|
|
930
905
|
}
|
|
931
|
-
|
|
932
|
-
CommandMenuComponent.prototype.ngOnInit = function () {
|
|
906
|
+
PopupMenuRendererComponent.prototype.ngOnInit = function () {
|
|
933
907
|
};
|
|
934
|
-
|
|
908
|
+
PopupMenuRendererComponent.prototype.getPopupMenuCommandFor = function (item) {
|
|
935
909
|
var _this = this;
|
|
936
910
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
937
911
|
when(item.command.busy).becomesFalsey(function () {
|
|
938
|
-
_this.
|
|
912
|
+
_this.commandExecuted.emit();
|
|
939
913
|
});
|
|
940
914
|
return item.command;
|
|
941
915
|
};
|
|
942
|
-
|
|
943
|
-
|
|
916
|
+
PopupMenuRendererComponent.prototype.getButtonColor = function (registration) {
|
|
917
|
+
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
944
918
|
};
|
|
945
|
-
CommandMenuComponent.prototype.getButtonColor = function (registration) {
|
|
946
|
-
return registration.destructive ? 'warn' : undefined;
|
|
947
|
-
};
|
|
948
|
-
var CommandMenuComponent_1;
|
|
949
919
|
__decorate([
|
|
950
|
-
core.Input(), pectin.
|
|
920
|
+
core.Input(), pectin.TrackExternal(),
|
|
921
|
+
__metadata("design:type", pectin.ListModel)
|
|
922
|
+
], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
|
|
923
|
+
__decorate([
|
|
924
|
+
core.Input(),
|
|
925
|
+
__metadata("design:type", String)
|
|
926
|
+
], PopupMenuRendererComponent.prototype, "xPosition", void 0);
|
|
927
|
+
__decorate([
|
|
928
|
+
core.Input(),
|
|
929
|
+
__metadata("design:type", String)
|
|
930
|
+
], PopupMenuRendererComponent.prototype, "yPosition", void 0);
|
|
931
|
+
__decorate([
|
|
932
|
+
core.Output(),
|
|
951
933
|
__metadata("design:type", Object)
|
|
952
|
-
],
|
|
934
|
+
], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
|
|
935
|
+
__decorate([
|
|
936
|
+
core.ViewChild(menu.MatMenu),
|
|
937
|
+
__metadata("design:type", menu.MatMenu)
|
|
938
|
+
], PopupMenuRendererComponent.prototype, "matMenu", void 0);
|
|
939
|
+
PopupMenuRendererComponent = __decorate([
|
|
940
|
+
core.Component({
|
|
941
|
+
selector: 'aup-popup-menu-renderer',
|
|
942
|
+
template: "<mat-menu [xPosition]=\"xPosition\" [yPosition]=\"yPosition\" >\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"getPopupMenuCommandFor(registration)\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
|
|
943
|
+
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
944
|
+
}),
|
|
945
|
+
__metadata("design:paramtypes", [])
|
|
946
|
+
], PopupMenuRendererComponent);
|
|
947
|
+
return PopupMenuRendererComponent;
|
|
948
|
+
}(DisposableComponent));
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
*/
|
|
953
|
+
var AbstractPopupMenuComponent = /** @class */ (function (_super) {
|
|
954
|
+
__extends(AbstractPopupMenuComponent, _super);
|
|
955
|
+
function AbstractPopupMenuComponent() {
|
|
956
|
+
var _this = _super.call(this) || this;
|
|
957
|
+
_this.xPosition = 'after';
|
|
958
|
+
_this.yPosition = 'below';
|
|
959
|
+
return _this;
|
|
960
|
+
}
|
|
961
|
+
Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
|
|
962
|
+
get: function () {
|
|
963
|
+
var _a;
|
|
964
|
+
return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
|
|
965
|
+
},
|
|
966
|
+
enumerable: true,
|
|
967
|
+
configurable: true
|
|
968
|
+
});
|
|
969
|
+
AbstractPopupMenuComponent.prototype.closeMenu = function () {
|
|
970
|
+
this.menuTrigger.closeMenu();
|
|
971
|
+
};
|
|
972
|
+
AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
|
|
973
|
+
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
974
|
+
};
|
|
953
975
|
__decorate([
|
|
954
976
|
core.Input(),
|
|
955
977
|
__metadata("design:type", String)
|
|
956
|
-
],
|
|
978
|
+
], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
|
|
957
979
|
__decorate([
|
|
958
980
|
core.Input(),
|
|
959
981
|
__metadata("design:type", String)
|
|
960
|
-
],
|
|
982
|
+
], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
|
|
983
|
+
__decorate([
|
|
984
|
+
core.ViewChild(PopupMenuRendererComponent),
|
|
985
|
+
__metadata("design:type", PopupMenuRendererComponent)
|
|
986
|
+
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
961
987
|
__decorate([
|
|
962
988
|
core.ViewChild(menu.MatMenuTrigger),
|
|
963
989
|
__metadata("design:type", menu.MatMenuTrigger)
|
|
964
|
-
],
|
|
965
|
-
|
|
990
|
+
], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
|
|
991
|
+
AbstractPopupMenuComponent = __decorate([
|
|
966
992
|
core.Component({
|
|
967
|
-
selector: 'aup-
|
|
968
|
-
template:
|
|
969
|
-
providers: [{ provide: exports.ɵbo, useExisting: core.forwardRef(function () { return CommandMenuComponent_1; }) }],
|
|
970
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
993
|
+
selector: 'aup-abstract-popup-menu',
|
|
994
|
+
template: ''
|
|
971
995
|
}),
|
|
972
996
|
__metadata("design:paramtypes", [])
|
|
973
|
-
],
|
|
974
|
-
return
|
|
975
|
-
}(
|
|
997
|
+
], AbstractPopupMenuComponent);
|
|
998
|
+
return AbstractPopupMenuComponent;
|
|
999
|
+
}(CommandContainer));
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
*/
|
|
1004
|
+
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
1005
|
+
__extends(PopupMenuComponent, _super);
|
|
1006
|
+
function PopupMenuComponent() {
|
|
1007
|
+
var _this = _super.call(this) || this;
|
|
1008
|
+
_this.faceModel = new pectin.MutableValueModel();
|
|
1009
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1010
|
+
var faceAdapterModel = chain(_this.faceModel).map(function (face) { return new exports.CommandFace.Adapter(face); });
|
|
1011
|
+
_this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
|
|
1012
|
+
return _this;
|
|
1013
|
+
}
|
|
1014
|
+
PopupMenuComponent_1 = PopupMenuComponent;
|
|
1015
|
+
PopupMenuComponent.prototype.getTooltip = function () {
|
|
1016
|
+
return this.faceTooltipModel.value;
|
|
1017
|
+
};
|
|
1018
|
+
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
1019
|
+
};
|
|
1020
|
+
var PopupMenuComponent_1;
|
|
1021
|
+
__decorate([
|
|
1022
|
+
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1023
|
+
__metadata("design:type", Object)
|
|
1024
|
+
], PopupMenuComponent.prototype, "face", void 0);
|
|
1025
|
+
PopupMenuComponent = PopupMenuComponent_1 = __decorate([
|
|
1026
|
+
core.Component({
|
|
1027
|
+
selector: 'aup-popup-menu',
|
|
1028
|
+
template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
|
|
1029
|
+
providers: [{ provide: CommandContainer, useExisting: core.forwardRef(function () { return PopupMenuComponent_1; }) }]
|
|
1030
|
+
}),
|
|
1031
|
+
__metadata("design:paramtypes", [])
|
|
1032
|
+
], PopupMenuComponent);
|
|
1033
|
+
return PopupMenuComponent;
|
|
1034
|
+
}(AbstractPopupMenuComponent));
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
*/
|
|
1039
|
+
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
1040
|
+
__extends(MoreMenuComponent, _super);
|
|
1041
|
+
function MoreMenuComponent() {
|
|
1042
|
+
return _super.call(this) || this;
|
|
1043
|
+
}
|
|
1044
|
+
MoreMenuComponent_1 = MoreMenuComponent;
|
|
1045
|
+
var MoreMenuComponent_1;
|
|
1046
|
+
__decorate([
|
|
1047
|
+
core.Input(),
|
|
1048
|
+
__metadata("design:type", String)
|
|
1049
|
+
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1050
|
+
MoreMenuComponent = MoreMenuComponent_1 = __decorate([
|
|
1051
|
+
core.Component({
|
|
1052
|
+
selector: 'aup-more-menu',
|
|
1053
|
+
template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [yPosition]=\"yPosition\" [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
|
|
1054
|
+
providers: [{ provide: CommandContainer, useExisting: core.forwardRef(function () { return MoreMenuComponent_1; }) }]
|
|
1055
|
+
}),
|
|
1056
|
+
__metadata("design:paramtypes", [])
|
|
1057
|
+
], MoreMenuComponent);
|
|
1058
|
+
return MoreMenuComponent;
|
|
1059
|
+
}(AbstractPopupMenuComponent));
|
|
976
1060
|
|
|
977
1061
|
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
978
1062
|
__extends(FocusContainerComponent, _super);
|
|
@@ -3251,9 +3335,11 @@
|
|
|
3251
3335
|
TableRowMenuComponent,
|
|
3252
3336
|
CommandBarComponent,
|
|
3253
3337
|
CommandComponent,
|
|
3254
|
-
|
|
3338
|
+
PopupMenuComponent,
|
|
3255
3339
|
CommandFaceComponent,
|
|
3256
|
-
|
|
3340
|
+
AbstractPopupMenuComponent,
|
|
3341
|
+
PopupMenuRendererComponent,
|
|
3342
|
+
MoreMenuComponent
|
|
3257
3343
|
],
|
|
3258
3344
|
imports: [
|
|
3259
3345
|
common.CommonModule,
|
|
@@ -3302,9 +3388,11 @@
|
|
|
3302
3388
|
TableRowMenuComponent,
|
|
3303
3389
|
CommandBarComponent,
|
|
3304
3390
|
CommandComponent,
|
|
3305
|
-
|
|
3391
|
+
AbstractPopupMenuComponent,
|
|
3392
|
+
PopupMenuComponent,
|
|
3306
3393
|
CommandFaceComponent,
|
|
3307
|
-
|
|
3394
|
+
PopupMenuRendererComponent,
|
|
3395
|
+
MoreMenuComponent
|
|
3308
3396
|
],
|
|
3309
3397
|
providers: [
|
|
3310
3398
|
FocusBindingFactory
|
|
@@ -3955,7 +4043,7 @@
|
|
|
3955
4043
|
}());
|
|
3956
4044
|
|
|
3957
4045
|
var inplaceMonitorCount = 0;
|
|
3958
|
-
exports.ɵ
|
|
4046
|
+
exports.ɵcf = /** @class */ (function () {
|
|
3959
4047
|
function InteractionService(modelInteractionContextFactory) {
|
|
3960
4048
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
3961
4049
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -4100,7 +4188,7 @@
|
|
|
4100
4188
|
return ApiAdapter;
|
|
4101
4189
|
}());
|
|
4102
4190
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
4103
|
-
})(exports.ɵ
|
|
4191
|
+
})(exports.ɵcf || (exports.ɵcf = {}));
|
|
4104
4192
|
|
|
4105
4193
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
4106
4194
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -4158,7 +4246,7 @@
|
|
|
4158
4246
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
4159
4247
|
};
|
|
4160
4248
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
4161
|
-
{ type: exports.ɵ
|
|
4249
|
+
{ type: exports.ɵcf },
|
|
4162
4250
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
4163
4251
|
]; };
|
|
4164
4252
|
__decorate([
|
|
@@ -4176,7 +4264,7 @@
|
|
|
4176
4264
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4177
4265
|
}),
|
|
4178
4266
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
4179
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
4267
|
+
__metadata("design:paramtypes", [exports.ɵcf, Object])
|
|
4180
4268
|
], InPlaceInteractionContextComponent);
|
|
4181
4269
|
return InPlaceInteractionContextComponent;
|
|
4182
4270
|
}(DisposableComponent));
|
|
@@ -4715,7 +4803,7 @@
|
|
|
4715
4803
|
AlertDialogComponent
|
|
4716
4804
|
],
|
|
4717
4805
|
providers: [
|
|
4718
|
-
exports.ɵ
|
|
4806
|
+
exports.ɵcf
|
|
4719
4807
|
// {
|
|
4720
4808
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
4721
4809
|
// }
|
|
@@ -5837,7 +5925,7 @@
|
|
|
5837
5925
|
return PopStateNavigation;
|
|
5838
5926
|
}(AbstractPopStateNavigation));
|
|
5839
5927
|
|
|
5840
|
-
exports.ɵ
|
|
5928
|
+
exports.ɵci = /** @class */ (function () {
|
|
5841
5929
|
function PlaceHistory() {
|
|
5842
5930
|
this._archive = new Map();
|
|
5843
5931
|
this.placeHistoryDepth = 4;
|
|
@@ -5974,7 +6062,7 @@
|
|
|
5974
6062
|
// }
|
|
5975
6063
|
//
|
|
5976
6064
|
// }
|
|
5977
|
-
})(exports.ɵ
|
|
6065
|
+
})(exports.ɵci || (exports.ɵci = {}));
|
|
5978
6066
|
|
|
5979
6067
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
5980
6068
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -6429,20 +6517,20 @@
|
|
|
6429
6517
|
PlaceRouter.ctorParameters = function () { return [
|
|
6430
6518
|
{ type: router.Router },
|
|
6431
6519
|
{ type: common.Location },
|
|
6432
|
-
{ type: exports.ɵ
|
|
6520
|
+
{ type: exports.ɵcf },
|
|
6433
6521
|
{ type: UrlService },
|
|
6434
|
-
{ type: exports.ɵ
|
|
6522
|
+
{ type: exports.ɵci }
|
|
6435
6523
|
]; };
|
|
6436
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
6524
|
+
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵcf), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵci)); }, token: PlaceRouter, providedIn: "root" });
|
|
6437
6525
|
PlaceRouter = __decorate([
|
|
6438
6526
|
core.Injectable({
|
|
6439
6527
|
providedIn: 'root'
|
|
6440
6528
|
}),
|
|
6441
6529
|
__metadata("design:paramtypes", [router.Router,
|
|
6442
6530
|
common.Location,
|
|
6443
|
-
exports.ɵ
|
|
6531
|
+
exports.ɵcf,
|
|
6444
6532
|
UrlService,
|
|
6445
|
-
exports.ɵ
|
|
6533
|
+
exports.ɵci])
|
|
6446
6534
|
], PlaceRouter);
|
|
6447
6535
|
return PlaceRouter;
|
|
6448
6536
|
}(pectin.GarbageCollector));
|
|
@@ -7592,6 +7680,7 @@
|
|
|
7592
7680
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
7593
7681
|
exports.AbstractPlaceNavigationComponent = AbstractPlaceNavigationComponent;
|
|
7594
7682
|
exports.AbstractPopStateNavigation = AbstractPopStateNavigation;
|
|
7683
|
+
exports.AbstractPopupMenuComponent = AbstractPopupMenuComponent;
|
|
7595
7684
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
7596
7685
|
exports.Activity = Activity;
|
|
7597
7686
|
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
@@ -7615,10 +7704,9 @@
|
|
|
7615
7704
|
exports.ColumnTemplateDirective = ColumnTemplateDirective;
|
|
7616
7705
|
exports.CommandBarComponent = CommandBarComponent;
|
|
7617
7706
|
exports.CommandComponent = CommandComponent;
|
|
7618
|
-
exports.CommandContainer =
|
|
7707
|
+
exports.CommandContainer = CommandContainer;
|
|
7619
7708
|
exports.CommandDirective = CommandDirective;
|
|
7620
7709
|
exports.CommandFaceComponent = CommandFaceComponent;
|
|
7621
|
-
exports.CommandMenuComponent = CommandMenuComponent;
|
|
7622
7710
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
7623
7711
|
exports.ComponentsModule = ComponentsModule;
|
|
7624
7712
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
@@ -7650,12 +7738,13 @@
|
|
|
7650
7738
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
7651
7739
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
7652
7740
|
exports.InteractionModule = InteractionModule;
|
|
7653
|
-
exports.InteractionService = exports.ɵ
|
|
7741
|
+
exports.InteractionService = exports.ɵcf;
|
|
7654
7742
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
7655
7743
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7656
7744
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
7657
7745
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
7658
7746
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
7747
|
+
exports.MoreMenuComponent = MoreMenuComponent;
|
|
7659
7748
|
exports.MultipleSelectInputComponent = MultipleSelectInputComponent;
|
|
7660
7749
|
exports.Navigating = Navigating;
|
|
7661
7750
|
exports.NavigatingDuringInteraction = NavigatingDuringInteraction;
|
|
@@ -7670,7 +7759,7 @@
|
|
|
7670
7759
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
7671
7760
|
exports.PlaceDefinition = PlaceDefinition;
|
|
7672
7761
|
exports.PlaceGuard = PlaceGuard;
|
|
7673
|
-
exports.PlaceHistory = exports.ɵ
|
|
7762
|
+
exports.PlaceHistory = exports.ɵci;
|
|
7674
7763
|
exports.PlaceModule = PlaceModule;
|
|
7675
7764
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
7676
7765
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -7678,6 +7767,8 @@
|
|
|
7678
7767
|
exports.PopStateDuringInteractionNavigation = PopStateDuringInteractionNavigation;
|
|
7679
7768
|
exports.PopStateNavigation = PopStateNavigation;
|
|
7680
7769
|
exports.PopupInteractionContextComponent = PopupInteractionContextComponent;
|
|
7770
|
+
exports.PopupMenuComponent = PopupMenuComponent;
|
|
7771
|
+
exports.PopupMenuRendererComponent = PopupMenuRendererComponent;
|
|
7681
7772
|
exports.PropertyColumnModel = PropertyColumnModel;
|
|
7682
7773
|
exports.ROUTE_PARAMETER_LIST_KEY = ROUTE_PARAMETER_LIST_KEY;
|
|
7683
7774
|
exports.RemoveLastInteractionFromUrlNavigationSession = RemoveLastInteractionFromUrlNavigationSession;
|
|
@@ -7734,43 +7825,47 @@
|
|
|
7734
7825
|
exports.ɵbl = SectionHeaderComponent;
|
|
7735
7826
|
exports.ɵbm = TableRowMenuComponent;
|
|
7736
7827
|
exports.ɵbn = CommandBarComponent;
|
|
7828
|
+
exports.ɵbo = CommandContainer;
|
|
7737
7829
|
exports.ɵbp = CommandComponent;
|
|
7738
|
-
exports.ɵbq =
|
|
7739
|
-
exports.ɵbr =
|
|
7740
|
-
exports.ɵbs =
|
|
7741
|
-
exports.ɵbt =
|
|
7742
|
-
exports.ɵbu =
|
|
7743
|
-
exports.ɵbv =
|
|
7744
|
-
exports.ɵbw =
|
|
7745
|
-
exports.ɵbx =
|
|
7746
|
-
exports.ɵby =
|
|
7747
|
-
exports.ɵbz =
|
|
7830
|
+
exports.ɵbq = PopupMenuComponent;
|
|
7831
|
+
exports.ɵbr = AbstractPopupMenuComponent;
|
|
7832
|
+
exports.ɵbs = PopupMenuRendererComponent;
|
|
7833
|
+
exports.ɵbt = CommandFaceComponent;
|
|
7834
|
+
exports.ɵbu = MoreMenuComponent;
|
|
7835
|
+
exports.ɵbv = PlaceModule;
|
|
7836
|
+
exports.ɵbw = ComponentsModule;
|
|
7837
|
+
exports.ɵbx = EmptyStateComponent;
|
|
7838
|
+
exports.ɵby = BusyOverlayComponent;
|
|
7839
|
+
exports.ɵbz = PlaceOutletComponent;
|
|
7748
7840
|
exports.ɵc = FocusBindingDirective;
|
|
7749
|
-
exports.ɵ
|
|
7750
|
-
exports.ɵ
|
|
7751
|
-
exports.ɵ
|
|
7752
|
-
exports.ɵ
|
|
7753
|
-
exports.ɵ
|
|
7754
|
-
exports.ɵ
|
|
7755
|
-
exports.ɵcj =
|
|
7756
|
-
exports.ɵck =
|
|
7757
|
-
exports.ɵcl =
|
|
7758
|
-
exports.ɵcm =
|
|
7759
|
-
exports.ɵcn =
|
|
7760
|
-
exports.ɵco =
|
|
7761
|
-
exports.ɵcp =
|
|
7762
|
-
exports.ɵcq =
|
|
7763
|
-
exports.ɵ
|
|
7764
|
-
exports.ɵ
|
|
7765
|
-
exports.ɵ
|
|
7766
|
-
exports.ɵ
|
|
7767
|
-
exports.ɵ
|
|
7768
|
-
exports.ɵcy =
|
|
7769
|
-
exports.ɵcz =
|
|
7841
|
+
exports.ɵca = leftRightPlaceAnimation;
|
|
7842
|
+
exports.ɵcb = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7843
|
+
exports.ɵcc = AUP_PLACE_CONFIG;
|
|
7844
|
+
exports.ɵce = PlaceRouter;
|
|
7845
|
+
exports.ɵcg = ModalInteractionContextFactory;
|
|
7846
|
+
exports.ɵch = UrlService;
|
|
7847
|
+
exports.ɵcj = TabbedPlaceNavigationComponent;
|
|
7848
|
+
exports.ɵck = AbstractPlaceNavigationComponent;
|
|
7849
|
+
exports.ɵcl = ListPlaceNavComponent;
|
|
7850
|
+
exports.ɵcm = SidePlaceNavigationComponent;
|
|
7851
|
+
exports.ɵcn = InteractionModule;
|
|
7852
|
+
exports.ɵco = ActivityContainerComponent;
|
|
7853
|
+
exports.ɵcp = AbstractInteractionContext;
|
|
7854
|
+
exports.ɵcq = ActivityOutletComponent;
|
|
7855
|
+
exports.ɵcr = ConfirmationDialogComponent;
|
|
7856
|
+
exports.ɵcs = ACTIVITY_DATA;
|
|
7857
|
+
exports.ɵct = Activity;
|
|
7858
|
+
exports.ɵcv = ConfirmThenDialogComponent;
|
|
7859
|
+
exports.ɵcw = AlertDialogComponent;
|
|
7860
|
+
exports.ɵcy = InPlaceInteractionContextComponent;
|
|
7861
|
+
exports.ɵcz = AddItemInteractionContextComponent;
|
|
7770
7862
|
exports.ɵd = DisposableComponent;
|
|
7771
|
-
exports.ɵda =
|
|
7772
|
-
exports.ɵdb =
|
|
7773
|
-
exports.ɵdc =
|
|
7863
|
+
exports.ɵda = ActivityActionsComponent;
|
|
7864
|
+
exports.ɵdb = PopupInteractionContextComponent;
|
|
7865
|
+
exports.ɵdc = StringInputActivity;
|
|
7866
|
+
exports.ɵdd = AbstractInputActivity;
|
|
7867
|
+
exports.ɵde = SelectInputActivity;
|
|
7868
|
+
exports.ɵdf = InteractionContextTriggerFor;
|
|
7774
7869
|
exports.ɵe = FocusBindingFactory;
|
|
7775
7870
|
exports.ɵf = ComponentsModule;
|
|
7776
7871
|
exports.ɵg = AbstractInputComponent;
|