@coolon/angular-ui-powerups 14.42.0 → 14.44.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.
@@ -6,13 +6,14 @@ import * as i0 from "@angular/core";
6
6
  export declare class InputActivity<T, D extends InputActivity.Data<T> = InputActivity.Data<T>> extends Activity<D, T> {
7
7
  readonly confirmCommand: Command<void>;
8
8
  readonly cancelCommand: Command<void>;
9
- readonly valueModel: Form.ValueModelBase<T>;
9
+ readonly value$: Form.ValueModelBase<T>;
10
10
  class: string;
11
11
  readonly confirmFace: CommandFace;
12
12
  readonly cancelFace: CommandFace;
13
13
  get layout(): InputActivity.Layout;
14
14
  constructor();
15
15
  get additionalCssClassName(): string;
16
+ get dataCyAttribute(): string;
16
17
  onEscape(): void;
17
18
  shouldCancelOnEscape(): boolean;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<InputActivity<any, any>, never>;
@@ -37,6 +38,7 @@ export declare namespace InputActivity {
37
38
  validators?: Validator<T>[];
38
39
  cancelOnEscape?: boolean;
39
40
  cssClassName?: string;
41
+ dataCy?: string;
40
42
  save?(valueModel: T, interactionContext?: Context): void | Promise<void>;
41
43
  }
42
44
  }
@@ -2,7 +2,7 @@ import { ListModel } from '@coolon/pectin';
2
2
  import { InputActivity } from './input-activity';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SelectInputActivity<T> extends InputActivity<T, SelectInputActivity.Data<T>> {
5
- readonly defaultOptionLabelFormat: (option: T) => T | T[keyof T];
5
+ readonly defaultOptionLabelFormat: (option: T) => "" | T | T[keyof T];
6
6
  get optionLabelFormat(): (option: T) => any;
7
7
  get options(): T[];
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputActivity<any>, never>;
@@ -14,5 +14,7 @@ export declare namespace SelectInputActivity {
14
14
  optionsModel?: ListModel<T>;
15
15
  optionLabel?: keyof T;
16
16
  optionLabelFormat?: (option: T) => any;
17
+ allowNil?: boolean;
18
+ nilLabel?: string;
17
19
  }
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "14.42.0",
3
+ "version": "14.44.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^14.2.12",
@@ -11,7 +11,7 @@
11
11
  "@angular/material": "^14.2.7",
12
12
  "@angular/platform-browser": "^14.2.12",
13
13
  "@angular/router": "^14.2.12",
14
- "@coolon/pectin": "^3.40.3",
14
+ "@coolon/pectin": "^3.41.0",
15
15
  "@typescript-plus/fast-memoize-decorator": "^0.2.1",
16
16
  "lodash-es": "^4.17.21",
17
17
  "marked": "4.0.2",