@coolon/angular-ui-powerups 3.7.0-alpha.6 → 3.7.0-alpha.7
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 +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +17 -1
- 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/components/commands/command/command.component.js +7 -2
- 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/group/abstract-popup-menu.component.js +1 -0
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group.js +9 -0
- package/esm2015/lib/components/commands/group/command-group.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +17 -1
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.7](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.6...v3.7.0-alpha.7) (2020-12-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* updated command groups to re-render on removal of children ([e52bff7](https://bitbucket.org/coolon/angular-ui-powerups/commit/e52bff764d9ea5ad4c832658e9e6c7c191c5edec))
|
|
11
|
+
|
|
5
12
|
## [3.7.0-alpha.6](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.5...v3.7.0-alpha.6) (2020-12-28)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1078,6 +1078,15 @@
|
|
|
1078
1078
|
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;
|
|
1079
1079
|
_this.childTemplates = chain(_this._rootTemplate).pluckList('children');
|
|
1080
1080
|
_this.initialised = chain(_this._rootTemplate).isNotNil();
|
|
1081
|
+
// This is a hack to trigger re-rendering when a command is removed from it's parent using ng-if ng-for etc.
|
|
1082
|
+
when(chain(_this._registrations)
|
|
1083
|
+
.throttle(20)
|
|
1084
|
+
.count())
|
|
1085
|
+
.changes(function (is, was) {
|
|
1086
|
+
if (_this.initialised.value) {
|
|
1087
|
+
_this.notifyChanged();
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1081
1090
|
return _this;
|
|
1082
1091
|
}
|
|
1083
1092
|
CommandGroup.prototype.initialise = function () {
|
|
@@ -1193,6 +1202,7 @@
|
|
|
1193
1202
|
function AbstractPopupMenuComponent(group) {
|
|
1194
1203
|
var _this = _super.call(this) || this;
|
|
1195
1204
|
_this.group = group;
|
|
1205
|
+
_this.registerDisposable(group);
|
|
1196
1206
|
return _this;
|
|
1197
1207
|
}
|
|
1198
1208
|
Object.defineProperty(AbstractPopupMenuComponent.prototype, "xPosition", {
|
|
@@ -1472,8 +1482,9 @@
|
|
|
1472
1482
|
*/
|
|
1473
1483
|
var CommandComponent = /** @class */ (function (_super) {
|
|
1474
1484
|
__extends(CommandComponent, _super);
|
|
1475
|
-
function CommandComponent(parent) {
|
|
1485
|
+
function CommandComponent(element, parent) {
|
|
1476
1486
|
var _this = _super.call(this) || this;
|
|
1487
|
+
_this.element = element;
|
|
1477
1488
|
_this.parent = parent;
|
|
1478
1489
|
_this.CommandFace = exports.CommandFace;
|
|
1479
1490
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
|
|
@@ -1496,6 +1507,9 @@
|
|
|
1496
1507
|
};
|
|
1497
1508
|
CommandComponent.prototype.ngOnInit = function () {
|
|
1498
1509
|
};
|
|
1510
|
+
CommandComponent.prototype.ngAfterViewInit = function () {
|
|
1511
|
+
// console.log(this.element.nativeElement)
|
|
1512
|
+
};
|
|
1499
1513
|
return CommandComponent;
|
|
1500
1514
|
}(DisposableComponent));
|
|
1501
1515
|
CommandComponent.decorators = [
|
|
@@ -1506,6 +1520,7 @@
|
|
|
1506
1520
|
},] }
|
|
1507
1521
|
];
|
|
1508
1522
|
CommandComponent.ctorParameters = function () { return [
|
|
1523
|
+
{ type: i0.ElementRef },
|
|
1509
1524
|
{ type: exports.CommandGroup, decorators: [{ type: i0.Optional }] }
|
|
1510
1525
|
]; };
|
|
1511
1526
|
CommandComponent.propDecorators = {
|
|
@@ -1682,6 +1697,7 @@
|
|
|
1682
1697
|
function ToolBarComponent(group) {
|
|
1683
1698
|
var _this = _super.call(this) || this;
|
|
1684
1699
|
_this.group = group;
|
|
1700
|
+
_this.registerDisposable(group);
|
|
1685
1701
|
return _this;
|
|
1686
1702
|
}
|
|
1687
1703
|
// @Trace()
|