@coolon/angular-ui-powerups 3.7.0-alpha.8 → 3.7.0-alpha.9

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 CHANGED
@@ -2,6 +2,14 @@
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
+ ## [3.7.0-alpha.9](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.7...v3.7.0-alpha.9) (2020-12-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * popup menus now support children using ng-if and ng-for ([ea0d020](https://bitbucket.org/coolon/angular-ui-powerups/commit/ea0d0205982edf126eb24516fc17dd0aeaa23146))
11
+ * separators not rendering in popups ([7d17468](https://bitbucket.org/coolon/angular-ui-powerups/commit/7d1746822d3105b1f0aab66c0d710146864a6e94))
12
+
5
13
  ## [3.7.0-alpha.8](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.7...v3.7.0-alpha.8) (2020-12-30)
6
14
 
7
15
 
@@ -990,74 +990,6 @@
990
990
  CommandContainer.Orientation = typescriptStringEnums.Enum({ HORIZONTAL: 'horizontal', VERTICAL: 'vertical' });
991
991
  })(exports.CommandContainer || (exports.CommandContainer = {}));
992
992
 
993
- /**
994
- *
995
- */
996
- var AbstractPopupMenuComponent = /** @class */ (function (_super) {
997
- __extends(AbstractPopupMenuComponent, _super);
998
- function AbstractPopupMenuComponent(element, parent) {
999
- var _this = _super.call(this, element, parent) || this;
1000
- _this._unorderedChildren = new pectin.MutableListModel();
1001
- _this.faceModelDelegate = new pectin.DelegatingValueModel();
1002
- _this.xPosition = 'after';
1003
- _this.yPosition = 'below';
1004
- 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;
1005
- // group.faceListModel = chain(this.faceModel).mapToList(face => [face]);
1006
- _this.faceAdapterModel = chain(_this.faceModelDelegate).map(function (f) { return new exports.CommandFace.Adapter(f); });
1007
- _this.children = chain(_this._unorderedChildren).sortBy('componentIndex');
1008
- return _this;
1009
- }
1010
- Object.defineProperty(AbstractPopupMenuComponent.prototype, "faceAdapter", {
1011
- get: function () {
1012
- return this.faceAdapterModel.value;
1013
- },
1014
- enumerable: false,
1015
- configurable: true
1016
- });
1017
- AbstractPopupMenuComponent.prototype.isRoot = function () {
1018
- return !this.parent;
1019
- };
1020
- AbstractPopupMenuComponent.prototype.register = function (component) {
1021
- var _this = this;
1022
- this._unorderedChildren.push(component);
1023
- return pectin.Disposable.disposableThatRuns(function () {
1024
- _this._unorderedChildren.remove(component);
1025
- });
1026
- };
1027
- AbstractPopupMenuComponent.prototype.onCommandFired = function () {
1028
- this.triggers.forEach(function (trigger) {
1029
- if (trigger.menuOpen) {
1030
- trigger.closeMenu();
1031
- }
1032
- });
1033
- };
1034
- AbstractPopupMenuComponent.prototype.getFace = function () {
1035
- return this.faceAdapter.face;
1036
- };
1037
- return AbstractPopupMenuComponent;
1038
- }(PopupAwareComponent));
1039
- AbstractPopupMenuComponent.decorators = [
1040
- { type: i0.Component, args: [{
1041
- selector: 'aup-abstract-popup-menu',
1042
- template: ''
1043
- },] }
1044
- ];
1045
- AbstractPopupMenuComponent.ctorParameters = function () { return [
1046
- { type: i0.ElementRef },
1047
- { type: undefined, decorators: [{ type: i0.Inject, args: [POPUP_CONTAINER,] }] }
1048
- ]; };
1049
- AbstractPopupMenuComponent.propDecorators = {
1050
- xPosition: [{ type: i0.Input }],
1051
- yPosition: [{ type: i0.Input }],
1052
- triggers: [{ type: i0.ViewChildren, args: [menu.MatMenuTrigger,] }]
1053
- };
1054
- __decorate([
1055
- pectin.Trace(),
1056
- __metadata("design:type", Function),
1057
- __metadata("design:paramtypes", [PopupAwareComponent]),
1058
- __metadata("design:returntype", void 0)
1059
- ], AbstractPopupMenuComponent.prototype, "register", null);
1060
-
1061
993
  /**
1062
994
  *
1063
995
  */
@@ -1100,8 +1032,8 @@
1100
1032
  */
1101
1033
  var SeparatorComponent = /** @class */ (function (_super) {
1102
1034
  __extends(SeparatorComponent, _super);
1103
- function SeparatorComponent(element, containerParent) {
1104
- var _this = _super.call(this, element, containerParent instanceof AbstractPopupMenuComponent ? containerParent : undefined) || this;
1035
+ function SeparatorComponent(element, popupContainer, containerParent) {
1036
+ var _this = _super.call(this, element, popupContainer) || this;
1105
1037
  _this.containerParent = containerParent;
1106
1038
  return _this;
1107
1039
  }
@@ -1122,12 +1054,81 @@
1122
1054
  ];
1123
1055
  SeparatorComponent.ctorParameters = function () { return [
1124
1056
  { type: i0.ElementRef },
1057
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [POPUP_CONTAINER,] }] },
1125
1058
  { type: exports.CommandContainer, decorators: [{ type: i0.Optional }] }
1126
1059
  ]; };
1127
1060
  SeparatorComponent.propDecorators = {
1128
1061
  isHorizontalContainer: [{ type: i0.HostBinding, args: ['class.horizontal-container',] }]
1129
1062
  };
1130
1063
 
1064
+ /**
1065
+ *
1066
+ */
1067
+ var AbstractPopupMenuComponent = /** @class */ (function (_super) {
1068
+ __extends(AbstractPopupMenuComponent, _super);
1069
+ function AbstractPopupMenuComponent(element, parent) {
1070
+ var _this = _super.call(this, element, parent) || this;
1071
+ _this._unorderedChildren = new pectin.MutableListModel();
1072
+ _this.faceModelDelegate = new pectin.DelegatingValueModel();
1073
+ _this.xPosition = 'after';
1074
+ _this.yPosition = 'below';
1075
+ 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;
1076
+ // group.faceListModel = chain(this.faceModel).mapToList(face => [face]);
1077
+ _this.faceAdapterModel = chain(_this.faceModelDelegate).map(function (f) { return new exports.CommandFace.Adapter(f); });
1078
+ _this.children = chain(_this._unorderedChildren).sortBy('componentIndex');
1079
+ return _this;
1080
+ }
1081
+ Object.defineProperty(AbstractPopupMenuComponent.prototype, "faceAdapter", {
1082
+ get: function () {
1083
+ return this.faceAdapterModel.value;
1084
+ },
1085
+ enumerable: false,
1086
+ configurable: true
1087
+ });
1088
+ AbstractPopupMenuComponent.prototype.isRoot = function () {
1089
+ return !this.parent;
1090
+ };
1091
+ AbstractPopupMenuComponent.prototype.register = function (component) {
1092
+ var _this = this;
1093
+ this._unorderedChildren.push(component);
1094
+ return pectin.Disposable.disposableThatRuns(function () {
1095
+ _this._unorderedChildren.remove(component);
1096
+ });
1097
+ };
1098
+ AbstractPopupMenuComponent.prototype.onCommandFired = function () {
1099
+ this.triggers.forEach(function (trigger) {
1100
+ if (trigger.menuOpen) {
1101
+ trigger.closeMenu();
1102
+ }
1103
+ });
1104
+ };
1105
+ AbstractPopupMenuComponent.prototype.getFace = function () {
1106
+ return this.faceAdapter.face;
1107
+ };
1108
+ return AbstractPopupMenuComponent;
1109
+ }(PopupAwareComponent));
1110
+ AbstractPopupMenuComponent.decorators = [
1111
+ { type: i0.Component, args: [{
1112
+ selector: 'aup-abstract-popup-menu',
1113
+ template: ''
1114
+ },] }
1115
+ ];
1116
+ AbstractPopupMenuComponent.ctorParameters = function () { return [
1117
+ { type: i0.ElementRef },
1118
+ { type: undefined, decorators: [{ type: i0.Inject, args: [POPUP_CONTAINER,] }] }
1119
+ ]; };
1120
+ AbstractPopupMenuComponent.propDecorators = {
1121
+ xPosition: [{ type: i0.Input }],
1122
+ yPosition: [{ type: i0.Input }],
1123
+ triggers: [{ type: i0.ViewChildren, args: [menu.MatMenuTrigger,] }]
1124
+ };
1125
+ __decorate([
1126
+ pectin.Trace(),
1127
+ __metadata("design:type", Function),
1128
+ __metadata("design:paramtypes", [PopupAwareComponent]),
1129
+ __metadata("design:returntype", void 0)
1130
+ ], AbstractPopupMenuComponent.prototype, "register", null);
1131
+
1131
1132
  var PopupMenuRendererComponent = /** @class */ (function (_super) {
1132
1133
  __extends(PopupMenuRendererComponent, _super);
1133
1134
  function PopupMenuRendererComponent() {