@coolon/angular-ui-powerups 14.14.0 → 14.14.2
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/column/selection-column-model.mjs +1 -1
- package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +15 -18
- package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +7 -3
- package/fesm2015/coolon-angular-ui-powerups.mjs +20 -16
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +20 -16
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
39
39
|
import * as i4 from '@angular/material/tooltip';
|
|
40
40
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
41
41
|
import * as i1$3 from '@coolon/pectin';
|
|
42
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions,
|
|
42
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, HasDelegate, MultipleSelectionModel, SelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DelegateProxyHandler, DirtyTrackingForm, PagedListModel, PageController, ComputedListModel, Deferred } from '@coolon/pectin';
|
|
43
43
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
44
44
|
import * as i1 from '@angular/platform-browser';
|
|
45
45
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
@@ -3028,28 +3028,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3028
3028
|
}] } });
|
|
3029
3029
|
|
|
3030
3030
|
class SelectionCellComponent extends DisposableComponent {
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3031
|
+
select($event) {
|
|
3032
|
+
$event.preventDefault();
|
|
3033
|
+
$event.stopPropagation();
|
|
3034
|
+
if (this.selectionModel) {
|
|
3034
3035
|
this.selectionModel.selectCommand.execute(this.row);
|
|
3035
|
-
}
|
|
3036
|
+
}
|
|
3036
3037
|
}
|
|
3037
3038
|
isSelected() {
|
|
3038
3039
|
return this.selectionModel.isSelected(this.row);
|
|
3039
3040
|
}
|
|
3041
|
+
isDisabled() {
|
|
3042
|
+
return !this.selectionModel || !this.selectionModel.isEnabled();
|
|
3043
|
+
}
|
|
3040
3044
|
}
|
|
3041
|
-
SelectionCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, deps:
|
|
3042
|
-
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
|
|
3043
|
-
__decorate([
|
|
3044
|
-
TrackExternal(),
|
|
3045
|
-
__metadata("design:type", SelectionModel)
|
|
3046
|
-
], SelectionCellComponent.prototype, "selectionModel", void 0);
|
|
3045
|
+
SelectionCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
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"] }] });
|
|
3047
3047
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
3048
3048
|
type: Component,
|
|
3049
|
-
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox
|
|
3050
|
-
}],
|
|
3049
|
+
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
3050
|
+
}], propDecorators: { row: [{
|
|
3051
3051
|
type: Input
|
|
3052
|
-
}]
|
|
3052
|
+
}] } });
|
|
3053
3053
|
|
|
3054
3054
|
class SelectionHeaderCellComponent extends DisposableComponent {
|
|
3055
3055
|
constructor() {
|
|
@@ -3755,7 +3755,9 @@ class TableRowMenuComponent extends DisposableComponent {
|
|
|
3755
3755
|
TableRowMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableRowMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3756
3756
|
TableRowMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableRowMenuComponent, selector: "aup-table-row-menu", inputs: { value: "value" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3757
3757
|
<aup-tool-bar>
|
|
3758
|
-
<aup-command *ngFor="let action of actions"
|
|
3758
|
+
<aup-command *ngFor="let action of actions"
|
|
3759
|
+
#comp
|
|
3760
|
+
[command]="action.factory.create(value, {disposedWith: comp})"
|
|
3759
3761
|
[face]="action.face"></aup-command>
|
|
3760
3762
|
</aup-tool-bar>
|
|
3761
3763
|
<ng-container *ngIf="moreActions.length > 0">
|
|
@@ -3769,7 +3771,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3769
3771
|
type: Component,
|
|
3770
3772
|
args: [{ selector: 'aup-table-row-menu', template: `
|
|
3771
3773
|
<aup-tool-bar>
|
|
3772
|
-
<aup-command *ngFor="let action of actions"
|
|
3774
|
+
<aup-command *ngFor="let action of actions"
|
|
3775
|
+
#comp
|
|
3776
|
+
[command]="action.factory.create(value, {disposedWith: comp})"
|
|
3773
3777
|
[face]="action.face"></aup-command>
|
|
3774
3778
|
</aup-tool-bar>
|
|
3775
3779
|
<ng-container *ngIf="moreActions.length > 0">
|