pdm-ui-kit 1.6.0 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdm-ui-kit",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "PDM UI Kit Angular components - Responsive by default",
5
5
  "author": "Corelusa",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, ViewContainerRef } from "@angular/core";
1
+ import { AfterContentInit, ChangeDetectorRef, DoCheck, EventEmitter, OnDestroy, ViewContainerRef } from "@angular/core";
2
2
  import { Overlay } from "@angular/cdk/overlay";
3
3
  import { PdmOverlayOptions } from "pdm-ui-kit/src/overlay";
4
4
  import * as i0 from "@angular/core";
@@ -7,13 +7,14 @@ export interface PdmSelectOption {
7
7
  value: string;
8
8
  disabled?: boolean;
9
9
  }
10
- export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
10
+ export declare class PdmSelectComponent implements AfterContentInit, DoCheck, OnDestroy {
11
11
  private readonly cdr;
12
12
  private readonly overlay;
13
13
  private readonly viewContainerRef;
14
14
  id: string;
15
15
  value: string;
16
- options: PdmSelectOption[];
16
+ set options(value: PdmSelectOption[] | null | undefined);
17
+ get options(): PdmSelectOption[];
17
18
  disabled: boolean;
18
19
  invalid: boolean;
19
20
  className: string;
@@ -32,8 +33,13 @@ export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
32
33
  private projectedOptions;
33
34
  private overlayRef;
34
35
  private backdropSub;
36
+ private projectedOptionsSub;
37
+ private inputOptions;
38
+ private readonly projectedOptionCache;
39
+ private readonly cachedProjectedOptions;
35
40
  constructor(cdr: ChangeDetectorRef, overlay: Overlay, viewContainerRef: ViewContainerRef);
36
41
  ngAfterContentInit(): void;
42
+ ngDoCheck(): void;
37
43
  ngOnDestroy(): void;
38
44
  /**
39
45
  * Returns the effective list of options.
@@ -46,7 +52,10 @@ export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
46
52
  toggle(): void;
47
53
  onChange(event: Event): void;
48
54
  selectOption(option: PdmSelectOption): void;
55
+ trackByOptionValue: (index: number, option: PdmSelectOption) => string;
49
56
  onEscape(): void;
57
+ private syncProjectedOptions;
58
+ private optionKey;
50
59
  private openPanel;
51
60
  private closePanel;
52
61
  private destroyOverlay;
@@ -1,4 +1,4 @@
1
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, ViewContainerRef } from "@angular/core";
1
+ import { AfterContentInit, ChangeDetectorRef, DoCheck, EventEmitter, OnDestroy, ViewContainerRef } from "@angular/core";
2
2
  import { Overlay } from "@angular/cdk/overlay";
3
3
  import { PdmOverlayOptions } from "pdm-ui-kit/src/overlay";
4
4
  import * as i0 from "@angular/core";
@@ -7,13 +7,14 @@ export interface PdmSelectOption {
7
7
  value: string;
8
8
  disabled?: boolean;
9
9
  }
10
- export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
10
+ export declare class PdmSelectComponent implements AfterContentInit, DoCheck, OnDestroy {
11
11
  private readonly cdr;
12
12
  private readonly overlay;
13
13
  private readonly viewContainerRef;
14
14
  id: string;
15
15
  value: string;
16
- options: PdmSelectOption[];
16
+ set options(value: PdmSelectOption[] | null | undefined);
17
+ get options(): PdmSelectOption[];
17
18
  disabled: boolean;
18
19
  invalid: boolean;
19
20
  className: string;
@@ -32,8 +33,13 @@ export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
32
33
  private projectedOptions;
33
34
  private overlayRef;
34
35
  private backdropSub;
36
+ private projectedOptionsSub;
37
+ private inputOptions;
38
+ private readonly projectedOptionCache;
39
+ private readonly cachedProjectedOptions;
35
40
  constructor(cdr: ChangeDetectorRef, overlay: Overlay, viewContainerRef: ViewContainerRef);
36
41
  ngAfterContentInit(): void;
42
+ ngDoCheck(): void;
37
43
  ngOnDestroy(): void;
38
44
  /**
39
45
  * Returns the effective list of options.
@@ -46,7 +52,10 @@ export declare class PdmSelectComponent implements AfterContentInit, OnDestroy {
46
52
  toggle(): void;
47
53
  onChange(event: Event): void;
48
54
  selectOption(option: PdmSelectOption): void;
55
+ trackByOptionValue: (index: number, option: PdmSelectOption) => string;
49
56
  onEscape(): void;
57
+ private syncProjectedOptions;
58
+ private optionKey;
50
59
  private openPanel;
51
60
  private closePanel;
52
61
  private destroyOverlay;