@coolon/angular-ui-powerups 14.3.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.
@@ -16,6 +16,7 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
16
16
  optionLabel: keyof T;
17
17
  allowNil: boolean;
18
18
  autoFilter: boolean;
19
+ optionTemplateRef: TemplateRef<any>;
19
20
  nilOptionTemplateRef: TemplateRef<any>;
20
21
  private filterValue;
21
22
  readonly filteredOptions: ListModelChain<T>;
@@ -27,5 +28,5 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
27
28
  updateFilter($event: string): void;
28
29
  onSelect($event: MatAutocompleteSelectedEvent): void;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteInputComponent<any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["nilOptionTemplateRef"], never, false>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["optionTemplateRef", "nilOptionTemplateRef"], never, false>;
31
32
  }
@@ -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.3.0",
3
+ "version": "14.5.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^14.1.2",
@@ -9,8 +9,8 @@
9
9
  "@angular/forms": "^14.1.2",
10
10
  "@angular/material": "^14.1.2",
11
11
  "@angular/router": "^14.1.2",
12
- "@coolon/pectin": "^3.21.1",
13
- "@coolon/typescript-utilities": "^2.5.4",
12
+ "@coolon/pectin": "^3.22.0",
13
+ "@coolon/typescript-utilities": "^2.6.0",
14
14
  "@typescript-plus/fast-memoize-decorator": "^0.2.1",
15
15
  "lodash-es": "^4.17.21",
16
16
  "marked": "4.0.2",