@coolon/angular-ui-powerups 12.1.0 → 12.3.0
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/bundles/coolon-angular-ui-powerups.umd.js +23 -12
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +8 -2
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +7 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +105 -93
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +5 -2
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +7 -4
- package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4163,7 +4163,7 @@
|
|
|
4163
4163
|
DecoratedTreeNode.Decorator = Decorator;
|
|
4164
4164
|
})(exports.DecoratedTreeNode || (exports.DecoratedTreeNode = {}));
|
|
4165
4165
|
|
|
4166
|
-
|
|
4166
|
+
exports.TreeLabelCellRendererComponent = /** @class */ (function (_super) {
|
|
4167
4167
|
__extends(TreeLabelCellRendererComponent, _super);
|
|
4168
4168
|
function TreeLabelCellRendererComponent() {
|
|
4169
4169
|
var _this = _super.call(this) || this;
|
|
@@ -4191,7 +4191,10 @@
|
|
|
4191
4191
|
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.expansionModel.isCollapsed(node);
|
|
4192
4192
|
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4193
4193
|
this.iconModel = chain(this.nodeModel).map(function (node) {
|
|
4194
|
-
|
|
4194
|
+
var _a;
|
|
4195
|
+
var expanded = _this.expansionModel.isExpanded(_this.node);
|
|
4196
|
+
var iconFactory = (_a = _this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
|
|
4197
|
+
return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
|
|
4195
4198
|
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4196
4199
|
};
|
|
4197
4200
|
Object.defineProperty(TreeLabelCellRendererComponent.prototype, "isRoot", {
|
|
@@ -4221,15 +4224,15 @@
|
|
|
4221
4224
|
};
|
|
4222
4225
|
return TreeLabelCellRendererComponent;
|
|
4223
4226
|
}(DisposableComponent));
|
|
4224
|
-
TreeLabelCellRendererComponent.decorators = [
|
|
4227
|
+
exports.TreeLabelCellRendererComponent.decorators = [
|
|
4225
4228
|
{ type: i0.Component, args: [{
|
|
4226
4229
|
selector: 'aup-tree-label-cell-renderer',
|
|
4227
4230
|
template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse(node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
|
|
4228
4231
|
styles: [":host{--line-color:#ddd;--node-color:#999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-icon,:host div.tree-icons aup-tree-inheritance-icon{margin-left:4px}"]
|
|
4229
4232
|
},] }
|
|
4230
4233
|
];
|
|
4231
|
-
TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
4232
|
-
TreeLabelCellRendererComponent.propDecorators = {
|
|
4234
|
+
exports.TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
4235
|
+
exports.TreeLabelCellRendererComponent.propDecorators = {
|
|
4233
4236
|
value: [{ type: i0.Input }],
|
|
4234
4237
|
label: [{ type: i0.Input }],
|
|
4235
4238
|
iconFactory: [{ type: i0.Input }],
|
|
@@ -4240,7 +4243,10 @@
|
|
|
4240
4243
|
__decorate([
|
|
4241
4244
|
pectin.StoreInValueModel('nodeModel'),
|
|
4242
4245
|
__metadata("design:type", Object)
|
|
4243
|
-
], TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4246
|
+
], exports.TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4247
|
+
(function (TreeLabelCellRendererComponent) {
|
|
4248
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) { return expanded ? 'mat:expand_more' : 'mat:chevron_right'; };
|
|
4249
|
+
})(exports.TreeLabelCellRendererComponent || (exports.TreeLabelCellRendererComponent = {}));
|
|
4244
4250
|
|
|
4245
4251
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4246
4252
|
__extends(FlattenedTreeListModel, _super);
|
|
@@ -4333,14 +4339,20 @@
|
|
|
4333
4339
|
function TreeLabelColumnModel(columnId, textPropertiesProvider, expansionModel) {
|
|
4334
4340
|
var _this = _super.call(this, columnId, textPropertiesProvider) || this;
|
|
4335
4341
|
_this.expansionModel = expansionModel;
|
|
4336
|
-
_this.
|
|
4337
|
-
_this.cellRenderer(TreeLabelCellRendererComponent);
|
|
4342
|
+
_this.cellRenderer(exports.TreeLabelCellRendererComponent);
|
|
4338
4343
|
return _this;
|
|
4339
4344
|
}
|
|
4340
4345
|
TreeLabelColumnModel.prototype.pluck = function (property) {
|
|
4341
4346
|
this.labelProperty = property;
|
|
4342
4347
|
};
|
|
4348
|
+
/**
|
|
4349
|
+
* @deprecated use #useIcon instead.
|
|
4350
|
+
* @param factory
|
|
4351
|
+
*/
|
|
4343
4352
|
TreeLabelColumnModel.prototype.addIcon = function (factory) {
|
|
4353
|
+
this.useIcon(factory);
|
|
4354
|
+
};
|
|
4355
|
+
TreeLabelColumnModel.prototype.useIcon = function (factory) {
|
|
4344
4356
|
this.iconFactory = factory;
|
|
4345
4357
|
};
|
|
4346
4358
|
TreeLabelColumnModel.prototype.cellRenderer = function (componentType) {
|
|
@@ -4715,7 +4727,7 @@
|
|
|
4715
4727
|
PopupMenuRendererComponent,
|
|
4716
4728
|
TreeTableComponent,
|
|
4717
4729
|
exports.TreeInheritanceIconComponent,
|
|
4718
|
-
TreeLabelCellRendererComponent,
|
|
4730
|
+
exports.TreeLabelCellRendererComponent,
|
|
4719
4731
|
BusyOverlayComponent,
|
|
4720
4732
|
EmptyStateComponent,
|
|
4721
4733
|
PaginatorComponent,
|
|
@@ -8972,8 +8984,8 @@
|
|
|
8972
8984
|
TabbedPlaceNavigationComponent.decorators = [
|
|
8973
8985
|
{ type: i0.Component, args: [{
|
|
8974
8986
|
selector: 'aup-tabbed-place-navigation',
|
|
8975
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</nav>\n",
|
|
8976
|
-
styles: [""]
|
|
8987
|
+
template: "<nav mat-tab-nav-bar>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n",
|
|
8988
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
8977
8989
|
},] }
|
|
8978
8990
|
];
|
|
8979
8991
|
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -9817,7 +9829,6 @@
|
|
|
9817
9829
|
exports.TextInputComponent = TextInputComponent;
|
|
9818
9830
|
exports.ToolBarComponent = ToolBarComponent;
|
|
9819
9831
|
exports.TreeExpansionModel = TreeExpansionModel;
|
|
9820
|
-
exports.TreeLabelCellRendererComponent = TreeLabelCellRendererComponent;
|
|
9821
9832
|
exports.TreeLabelColumnModel = TreeLabelColumnModel;
|
|
9822
9833
|
exports.TreeTableComponent = TreeTableComponent;
|
|
9823
9834
|
exports.TreeTableModel = TreeTableModel;
|