@ethlete/core 3.12.0 → 3.13.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.
@@ -21,6 +21,7 @@ export declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponent
21
21
  private readonly _zone;
22
22
  private readonly _elementRef;
23
23
  private readonly _observeResize;
24
+ private readonly _rootBoundary;
24
25
  private _portal;
25
26
  private _overlayRef;
26
27
  private _componentRef;
@@ -32,6 +33,7 @@ export declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponent
32
33
  private readonly _isMounted$;
33
34
  private readonly _isMounting$;
34
35
  private readonly _isUnmounting$;
36
+ private readonly _isHidden$;
35
37
  /**
36
38
  * The placement of the animated overlay.
37
39
  * @default undefined
@@ -74,6 +76,8 @@ export declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponent
74
76
  get isMounting(): boolean;
75
77
  get isMounting$(): import("rxjs").Observable<boolean>;
76
78
  get isUnmounting(): boolean;
79
+ get isHidden$(): import("rxjs").Observable<boolean>;
80
+ get isHidden(): boolean;
77
81
  get portal(): ComponentPortal<T> | null;
78
82
  get overlayRef(): OverlayRef | null;
79
83
  get componentRef(): ComponentRef<T> | null;
@@ -14,6 +14,7 @@ export * from './observe-resize/public-api';
14
14
  export * from './observe-scroll-state/public-api';
15
15
  export * from './observe-visibility/public-api';
16
16
  export * from './repeat/public-api';
17
+ export * from './root-boundary/public-api';
17
18
  export * from './scroll-observer-first-element/public-api';
18
19
  export * from './scroll-observer-ignore-target/public-api';
19
20
  export * from './scroll-observer-last-element/public-api';
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './root-boundary.directive';
@@ -0,0 +1,11 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const ROOT_BOUNDARY_TOKEN: InjectionToken<RootBoundaryDirective>;
4
+ export declare class RootBoundaryDirective {
5
+ private readonly _elementRef;
6
+ get boundaryElement(): HTMLElement | null;
7
+ set boundaryElement(v: HTMLElement | null);
8
+ private _boundaryElement;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RootBoundaryDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RootBoundaryDirective, "[etRootBoundary]", never, {}, {}, never, never, true, never>;
11
+ }
@@ -10,6 +10,9 @@ export declare class ActiveSelectionModel<T = unknown> {
10
10
  constructor();
11
11
  setSelectionModel(selectionModel: SelectionModel<T> | null): this;
12
12
  setActiveOption(option: T | null): this;
13
- evaluateKeyboardEvent(event: KeyboardEvent): void;
13
+ isOptionActive$(option: T): import("rxjs").Observable<boolean>;
14
+ evaluateKeyboardEvent(event: KeyboardEvent, config?: {
15
+ skipDisabled?: boolean;
16
+ }): NonNullable<T> | null;
14
17
  private _resetActiveOptions;
15
18
  }
@@ -17,12 +17,15 @@ export type SelectionModelOptionValueFn<T extends SelectionModelTypes = any> = (
17
17
  */
18
18
  export type SelectionModelBinding<T extends SelectionModelTypes = any> = SelectionModelPropertyPath | SelectionModelOptionValueFn<T>;
19
19
  export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
20
+ private readonly _destroy$;
21
+ private _lastSelectionSetSubscription;
20
22
  get selection$(): Observable<T[]>;
21
23
  get selection(): T[];
22
24
  private readonly _selection$;
23
25
  get options$(): Observable<T[]>;
24
26
  get options(): T[];
25
27
  private readonly _options$;
28
+ readonly optionsSignal: import("@angular/core").Signal<T[] | undefined>;
26
29
  get valueBinding$(): Observable<SelectionModelBinding<T> | null>;
27
30
  get valueBinding(): SelectionModelBinding<T> | null;
28
31
  private readonly _valueBinding$;
@@ -44,7 +47,10 @@ export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
44
47
  readonly value$: Observable<unknown>;
45
48
  readonly filteredOptions$: Observable<T[]>;
46
49
  private readonly _optionsAndSelection$;
50
+ constructor();
47
51
  setSelection(selection: T | T[]): this;
52
+ setSelectionFromValue(value: unknown): void;
53
+ setSelectionFromValue$(value: unknown): void;
48
54
  setValueBinding(fnOrPropertyPath: SelectionModelBinding<T> | null): this;
49
55
  setKeyBinding(fnOrPropertyPath: SelectionModelBinding<T> | null): this;
50
56
  setLabelBinding(fnOrPropertyPath: SelectionModelBinding<T> | null): this;
@@ -59,7 +65,7 @@ export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
59
65
  getOptionByLabel$(label: string): Observable<T | undefined>;
60
66
  getOptionByKey$(key: string): Observable<T | undefined>;
61
67
  isSelected$(option: T): Observable<boolean>;
62
- isDisabled$(option: T): Observable<unknown>;
68
+ isDisabled$(option: T): Observable<boolean>;
63
69
  getLabel$(option: T): Observable<unknown>;
64
70
  getValue$(option: T): Observable<unknown>;
65
71
  getKey$(option: T): Observable<unknown>;
@@ -68,9 +74,11 @@ export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
68
74
  getOptionByKey(key: string): T | undefined;
69
75
  getOption(value: unknown, propertyPath?: SelectionModelBinding<T> | null, options?: T[]): T | undefined;
70
76
  getOptionByIndex(index: number, options?: T[]): T | null;
71
- getOptionByOffset(offset: number, index: number, options?: T[], config?: {
77
+ getOptionByOffset(offset: number, index: number, config?: {
72
78
  loop?: boolean;
73
79
  clamp?: boolean;
80
+ skipDisabled?: boolean;
81
+ options?: T[];
74
82
  }): T | null;
75
83
  getFirstOption(options?: T[]): T | null;
76
84
  getLastOption(options?: T[]): T | null;
@@ -88,7 +96,7 @@ export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
88
96
  execFnOrGetOptionProperty(option: T, fnOrPropertyPath: SelectionModelBinding<T> | null): unknown;
89
97
  getOptionProperty(option: T, propertyPath: string | null): unknown;
90
98
  isSelected(option: T): boolean;
91
- isDisabled(option: T): unknown;
99
+ isDisabled(option: T): boolean;
92
100
  getFilteredOptions(filter?: string, options?: T[]): T[];
93
101
  addSelectedOption(option: T): void;
94
102
  removeSelectedOption(option: T): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },