@coolon/angular-ui-powerups 14.14.1 → 14.15.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/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +6 -4
- package/esm2020/lib/components/tables/tree-table/tree-label-column-model.mjs +7 -4
- package/esm2020/lib/components/tables/tree-table/tree-table-model.mjs +1 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs +11 -5
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +11 -5
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3028,7 +3028,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3028
3028
|
}] } });
|
|
3029
3029
|
|
|
3030
3030
|
class SelectionCellComponent extends DisposableComponent {
|
|
3031
|
-
select() {
|
|
3031
|
+
select($event) {
|
|
3032
|
+
$event.preventDefault();
|
|
3033
|
+
$event.stopPropagation();
|
|
3032
3034
|
if (this.selectionModel) {
|
|
3033
3035
|
this.selectionModel.selectCommand.execute(this.row);
|
|
3034
3036
|
}
|
|
@@ -3041,10 +3043,10 @@ class SelectionCellComponent extends DisposableComponent {
|
|
|
3041
3043
|
}
|
|
3042
3044
|
}
|
|
3043
3045
|
SelectionCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3044
|
-
SelectionCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectionCellComponent, selector: "aup-selection-cell", inputs: { row: "row" }, usesInheritance: true, ngImport: i0, template: "<mat-checkbox (click)=\"select()\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type: i4$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3046
|
+
SelectionCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectionCellComponent, selector: "aup-selection-cell", inputs: { row: "row" }, usesInheritance: true, ngImport: i0, template: "<mat-checkbox (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type: i4$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3045
3047
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
3046
3048
|
type: Component,
|
|
3047
|
-
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox (click)=\"select()\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
3049
|
+
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
3048
3050
|
}], propDecorators: { row: [{
|
|
3049
3051
|
type: Input
|
|
3050
3052
|
}] } });
|
|
@@ -4527,10 +4529,14 @@ class TreeLabelColumnModel extends ColumnModel {
|
|
|
4527
4529
|
constructor(columnId, textPropertiesProvider, expansionModel) {
|
|
4528
4530
|
super(columnId, textPropertiesProvider);
|
|
4529
4531
|
this.expansionModel = expansionModel;
|
|
4532
|
+
this.labelFactory = () => undefined;
|
|
4530
4533
|
this.cellRenderer(TreeLabelCellRendererComponent);
|
|
4531
4534
|
}
|
|
4532
4535
|
pluck(property) {
|
|
4533
|
-
this.
|
|
4536
|
+
this.useLabel(row => row[property]);
|
|
4537
|
+
}
|
|
4538
|
+
useLabel(factory) {
|
|
4539
|
+
this.labelFactory = factory;
|
|
4534
4540
|
}
|
|
4535
4541
|
/**
|
|
4536
4542
|
* @deprecated use #useIcon instead.
|
|
@@ -4548,7 +4554,7 @@ class TreeLabelColumnModel extends ColumnModel {
|
|
|
4548
4554
|
component.treeTableModel = this.expansionModel;
|
|
4549
4555
|
}
|
|
4550
4556
|
component.value = rowData.row;
|
|
4551
|
-
component.label =
|
|
4557
|
+
component.label = this.labelFactory(rowData.row);
|
|
4552
4558
|
component.iconFactory = this.iconFactory;
|
|
4553
4559
|
}));
|
|
4554
4560
|
return this;
|