@coolon/angular-ui-powerups 12.2.0 → 12.3.1
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/abstract-table.component.js +1 -1
- package/esm2015/lib/components/tables/abstract-table.component.js.map +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/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.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
- package/schematics/activity/schema.json +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +2 -2
- package/schematics/aup-i18n/schema.json +1 -1
- package/schematics/bootstrap-app/schema.json +1 -1
- package/schematics/component/schema.json +1 -1
- package/schematics/place-add/schema.json +1 -1
- package/schematics/place-bootstrap/schema.json +1 -1
- package/schematics/place-routes/schema.json +1 -1
|
@@ -3275,7 +3275,7 @@
|
|
|
3275
3275
|
return show ? _this.headerHeight.value : 0;
|
|
3276
3276
|
}, { dependsOn: _this.headerHeight });
|
|
3277
3277
|
_this.visibleRowCount = chain(_this.boundsModel).map(function (bounds) {
|
|
3278
|
-
// TODO: this doesn't take into account any css styling adjustments etc. Will
|
|
3278
|
+
// TODO: this doesn't take into account any css styling adjustments etc. Will investigate if it's an issue.
|
|
3279
3279
|
var rawRowCount = (bounds.height - actualHeaderHeight.value) / _this.rowHeight.value;
|
|
3280
3280
|
return rawRowCount < 1 ? 0 : Math.floor(rawRowCount);
|
|
3281
3281
|
}, {
|
|
@@ -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,
|
|
@@ -4868,7 +4880,7 @@
|
|
|
4868
4880
|
{ type: i0.Component, args: [{
|
|
4869
4881
|
selector: 'aup-activity-actions',
|
|
4870
4882
|
template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n",
|
|
4871
|
-
styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.
|
|
4883
|
+
styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}"]
|
|
4872
4884
|
},] }
|
|
4873
4885
|
];
|
|
4874
4886
|
ActivityActionsComponent.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;
|