@elderbyte/ngx-starter 15.14.1 → 15.15.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.
@@ -2,13 +2,14 @@ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { TypedEventMessage } from '../typed-event-message';
4
4
  import * as i0 from "@angular/core";
5
- export declare type IFrameStateType = 'LOADING' | 'LOADED' | 'ERROR';
5
+ export declare type IFrameStateType = 'LOADING' | 'LOADED' | 'VIEW_READY' | 'ERROR';
6
6
  export declare class IFrameState {
7
7
  readonly type: IFrameStateType;
8
8
  readonly message: string | null;
9
9
  constructor(type: IFrameStateType, message?: string | null);
10
10
  get isLoading(): boolean;
11
11
  get hasLoaded(): boolean;
12
+ get isViewReady(): boolean;
12
13
  get hasError(): boolean;
13
14
  }
14
15
  export interface IFrameParams {
@@ -0,0 +1,4 @@
1
+ export declare class IframeMessages {
2
+ static readonly CLOSE = "CLOSE";
3
+ static readonly VIEW_READY_EVENT = "VIEW_READY_EVENT";
4
+ }
@@ -19,6 +19,7 @@ export declare class IframeService {
19
19
  **************************************************************************/
20
20
  openIframeDialog<R>(params: IFrameParams): Observable<R>;
21
21
  postCloseMessage<T>(data?: T): void;
22
+ postViewReadyEventMessage<T>(data?: T): void;
22
23
  postDataMessage<T, D>(message: TypedEventMessage<T, D>): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<IframeService, never>;
24
25
  static ɵprov: i0.ɵɵInjectableDeclaration<IframeService>;
@@ -15,7 +15,9 @@ export declare class DataViewSelection<T> {
15
15
  selection: T[];
16
16
  constructor(selection: T[]);
17
17
  }
18
- export declare type DataViewMessageType = 'SELECTION_INIT' | 'SELECTION_SELECTED';
18
+ export declare const DataViewMessageTypeValues: readonly ["SELECTION_INIT", "SELECTION_SELECTED"];
19
+ export declare type DataViewMessageType = (typeof DataViewMessageTypeValues)[number];
20
+ export declare const isDataViewMessageType: (x: any) => x is "SELECTION_INIT" | "SELECTION_SELECTED";
19
21
  export declare class DataViewMessage<T, D = DataViewSelectionInit<T> | DataViewSelection<T>> extends TypedEventMessage<DataViewMessageType, D> {
20
22
  type: DataViewMessageType;
21
23
  data: D;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "15.14.1",
3
+ "version": "15.15.0",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^15.0.0 || ^16.0.0",
6
6
  "@angular/common": "^15.0.0 || ^16.0.0",