@coolon/angular-ui-powerups 3.7.0-alpha.5 → 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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +22 -2
- 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/command-group.component.js +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group.js +11 -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 +20 -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,20 @@
|
|
|
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
|
+
|
|
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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* updated popup menus to track face changes ([5386721](https://bitbucket.org/coolon/angular-ui-powerups/commit/5386721431d5a45356ea4a3317b0a9037e20be72))
|
|
18
|
+
|
|
5
19
|
## [3.7.0-alpha.5](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.4...v3.7.0-alpha.5) (2020-12-28)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -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 () {
|
|
@@ -1151,7 +1160,10 @@
|
|
|
1151
1160
|
var Root = /** @class */ (function (_super) {
|
|
1152
1161
|
__extends(Root, _super);
|
|
1153
1162
|
function Root() {
|
|
1154
|
-
|
|
1163
|
+
var _this = _super.call(this) || this;
|
|
1164
|
+
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;
|
|
1165
|
+
when(_this.faceListModel).changes(function () { return _this.notifyChanged(); });
|
|
1166
|
+
return _this;
|
|
1155
1167
|
}
|
|
1156
1168
|
Root.prototype.isRoot = function () {
|
|
1157
1169
|
return true;
|
|
@@ -1190,6 +1202,7 @@
|
|
|
1190
1202
|
function AbstractPopupMenuComponent(group) {
|
|
1191
1203
|
var _this = _super.call(this) || this;
|
|
1192
1204
|
_this.group = group;
|
|
1205
|
+
_this.registerDisposable(group);
|
|
1193
1206
|
return _this;
|
|
1194
1207
|
}
|
|
1195
1208
|
Object.defineProperty(AbstractPopupMenuComponent.prototype, "xPosition", {
|
|
@@ -1358,6 +1371,7 @@
|
|
|
1358
1371
|
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;
|
|
1359
1372
|
_this.faceListModel = chain(_this.faceModel).mapToList(function (v) { return [v]; });
|
|
1360
1373
|
_this.parent.registerGroup(_this, _this.faceListModel);
|
|
1374
|
+
when(_this.faceListModel).changes(function () { return _this.notifyChanged(); });
|
|
1361
1375
|
return _this;
|
|
1362
1376
|
}
|
|
1363
1377
|
return CommandGroupComponent;
|
|
@@ -1468,8 +1482,9 @@
|
|
|
1468
1482
|
*/
|
|
1469
1483
|
var CommandComponent = /** @class */ (function (_super) {
|
|
1470
1484
|
__extends(CommandComponent, _super);
|
|
1471
|
-
function CommandComponent(parent) {
|
|
1485
|
+
function CommandComponent(element, parent) {
|
|
1472
1486
|
var _this = _super.call(this) || this;
|
|
1487
|
+
_this.element = element;
|
|
1473
1488
|
_this.parent = parent;
|
|
1474
1489
|
_this.CommandFace = exports.CommandFace;
|
|
1475
1490
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
|
|
@@ -1492,6 +1507,9 @@
|
|
|
1492
1507
|
};
|
|
1493
1508
|
CommandComponent.prototype.ngOnInit = function () {
|
|
1494
1509
|
};
|
|
1510
|
+
CommandComponent.prototype.ngAfterViewInit = function () {
|
|
1511
|
+
// console.log(this.element.nativeElement)
|
|
1512
|
+
};
|
|
1495
1513
|
return CommandComponent;
|
|
1496
1514
|
}(DisposableComponent));
|
|
1497
1515
|
CommandComponent.decorators = [
|
|
@@ -1502,6 +1520,7 @@
|
|
|
1502
1520
|
},] }
|
|
1503
1521
|
];
|
|
1504
1522
|
CommandComponent.ctorParameters = function () { return [
|
|
1523
|
+
{ type: i0.ElementRef },
|
|
1505
1524
|
{ type: exports.CommandGroup, decorators: [{ type: i0.Optional }] }
|
|
1506
1525
|
]; };
|
|
1507
1526
|
CommandComponent.propDecorators = {
|
|
@@ -1678,6 +1697,7 @@
|
|
|
1678
1697
|
function ToolBarComponent(group) {
|
|
1679
1698
|
var _this = _super.call(this) || this;
|
|
1680
1699
|
_this.group = group;
|
|
1700
|
+
_this.registerDisposable(group);
|
|
1681
1701
|
return _this;
|
|
1682
1702
|
}
|
|
1683
1703
|
// @Trace()
|