@coolon/angular-ui-powerups 14.5.6 → 14.6.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
  options: T[];
17
17
  optionLabel: keyof T;
18
18
  allowNil: boolean;
19
+ autoActiveFirstOption: boolean;
19
20
  autoFilter: boolean;
20
21
  matInputComponent: MatInput;
21
22
  optionTemplateRef: TemplateRef<any>;
@@ -32,5 +33,5 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
32
33
  updateFilter($event: string): void;
33
34
  onSelect($event: MatAutocompleteSelectedEvent): void;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteInputComponent<any>, never>;
35
- 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>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoActiveFirstOption": "autoActiveFirstOption"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["optionTemplateRef", "nilOptionTemplateRef"], never, false>;
36
37
  }
@@ -1,5 +1,5 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
- import { ListModel } from '@coolon/pectin';
2
+ import { BooleanValueModelChain, ListModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -18,6 +18,7 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
18
18
  optionTemplateRef: TemplateRef<any>;
19
19
  nilOptionTemplateRef: TemplateRef<any>;
20
20
  optionLabelFormat: (option: T) => any;
21
+ readonly isNil$: BooleanValueModelChain;
21
22
  constructor();
22
23
  ngOnInit(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputComponent<any>, never>;
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare const ACTIVITY_DATA: InjectionToken<any>;
8
8
  declare type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
9
9
  export declare class Activity<D, R, E = any> extends DisposableComponent implements AfterViewInit {
10
+ readonly activityData: D;
10
11
  private readonly activityReadyListeners;
11
12
  private readonly _busy$;
12
13
  private _focused$;
@@ -4,7 +4,6 @@ import { CommandFace } from '../../../components/commands/command-face';
4
4
  import { Activity } from '../../activity';
5
5
  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
- readonly data: D;
8
7
  readonly confirmCommand: Command<void>;
9
8
  readonly cancelCommand: Command<void>;
10
9
  readonly valueModel: Form.ValueModelBase<T>;
@@ -12,7 +11,7 @@ export declare class InputActivity<T, D extends InputActivity.Data<T> = InputAct
12
11
  readonly confirmFace: CommandFace;
13
12
  readonly cancelFace: CommandFace;
14
13
  get layout(): InputActivity.Layout;
15
- constructor(data: D);
14
+ constructor();
16
15
  get additionalCssClassName(): string;
17
16
  onEscape(): void;
18
17
  shouldCancelOnEscape(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "14.5.6",
3
+ "version": "14.6.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^14.1.2",
@@ -12,7 +12,6 @@
12
12
  "@angular/platform-browser": "^14.1.2",
13
13
  "@angular/router": "^14.1.2",
14
14
  "@coolon/pectin": "^3.22.1",
15
- "@coolon/typescript-utilities": "^2.6.2",
16
15
  "@typescript-plus/fast-memoize-decorator": "^0.2.1",
17
16
  "lodash-es": "^4.17.21",
18
17
  "marked": "4.0.2",
@@ -30,7 +29,8 @@
30
29
  "@fortawesome/fontawesome-free": "^6.0.0"
31
30
  },
32
31
  "dependencies": {
33
- "tslib": "^2.3.0"
32
+ "tslib": "^2.3.0",
33
+ "@coolon/typescript-utilities": "^2.6.2"
34
34
  },
35
35
  "module": "fesm2015/coolon-angular-ui-powerups.mjs",
36
36
  "es2020": "fesm2020/coolon-angular-ui-powerups.mjs",
@@ -1,5 +1,4 @@
1
1
  :host {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- padding: var(--default-padding);
5
4
  }