@coolon/angular-ui-powerups 14.4.0 → 14.5.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.
@@ -1,12 +1,18 @@
1
+ import { ThemePalette } from "@angular/material/core";
1
2
  import { DelegatingSelectionModel, SelectionModel } from "@coolon/pectin";
2
3
  import { ColumnModel } from "./column-model";
3
4
  export declare class SelectionColumnModel<Row> extends ColumnModel<Row> {
4
5
  private _enableHeaderControls;
6
+ private _color;
5
7
  readonly selectionModel: DelegatingSelectionModel<Row, unknown>;
6
8
  constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: SelectionModel<Row>);
7
9
  setSelectionModel(selectionModel: SelectionModel<Row>): void;
8
10
  protected getDefaultHeaderText(): string;
9
11
  enableHeaderControls(enable: boolean): this;
12
+ /**
13
+ * Set the checkbox to use a theme color e.g. "primary" | "accent" | "warn"
14
+ */
15
+ color(color: ThemePalette): void;
10
16
  selectRow(row: Row): void;
11
17
  isSelected(row: Row): boolean;
12
18
  }
@@ -1,9 +1,11 @@
1
+ import { ThemePalette } from "@angular/material/core";
1
2
  import { Command, DelegatingSelectionModel } from '@coolon/pectin';
2
3
  import { DisposableComponent } from '../../../disposable-component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SelectionHeaderCellComponent<Row> extends DisposableComponent {
5
6
  readonly selectCommand: Command<void>;
6
7
  selectionModel: DelegatingSelectionModel<Row, any>;
8
+ color: ThemePalette;
7
9
  enableHeaderControls: boolean;
8
10
  constructor();
9
11
  isSelected(): boolean;
@@ -1,3 +1,4 @@
1
+ import { ThemePalette } from "@angular/material/core";
1
2
  import { Command, DelegatingSelectionModel } from '@coolon/pectin';
2
3
  import { DisposableComponent } from '../../../disposable-component';
3
4
  import * as i0 from "@angular/core";
@@ -5,6 +6,7 @@ export declare class SelectionCellComponent<Row> extends DisposableComponent {
5
6
  readonly selectCommand: Command<void>;
6
7
  row: Row;
7
8
  selectionModel: DelegatingSelectionModel<Row, unknown>;
9
+ color: ThemePalette;
8
10
  constructor();
9
11
  isSelected(): boolean;
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectionCellComponent<any>, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "14.4.0",
3
+ "version": "14.5.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^14.1.2",