@dereekb/dbx-web 12.5.8 → 12.5.10
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/esm2022/lib/interaction/iframe/embed.component.mjs +71 -0
- package/esm2022/lib/interaction/iframe/embed.dialog.component.mjs +42 -0
- package/esm2022/lib/interaction/iframe/iframe.component.mjs +7 -4
- package/esm2022/lib/interaction/iframe/iframe.dialog.component.mjs +36 -0
- package/esm2022/lib/interaction/iframe/index.mjs +4 -1
- package/fesm2022/dereekb-dbx-web.mjs +140 -4
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/interaction/iframe/_iframe.scss +5 -0
- package/lib/interaction/iframe/embed.component.d.ts +19 -0
- package/lib/interaction/iframe/embed.dialog.component.d.ts +17 -0
- package/lib/interaction/iframe/iframe.component.d.ts +0 -1
- package/lib/interaction/iframe/iframe.dialog.component.d.ts +13 -0
- package/lib/interaction/iframe/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DbxEmbedComponent extends AbstractSubscriptionDirective {
|
|
7
|
+
readonly sanitizer: DomSanitizer;
|
|
8
|
+
readonly root: import("@angular/core").Signal<ElementRef<HTMLSpanElement> | undefined>;
|
|
9
|
+
readonly sanitizeUrl: import("@angular/core").InputSignal<Maybe<boolean>>;
|
|
10
|
+
readonly srcUrl: import("@angular/core").InputSignal<Maybe<string | SafeResourceUrl>>;
|
|
11
|
+
readonly type: import("@angular/core").InputSignal<Maybe<string>>;
|
|
12
|
+
readonly srcUrlSignal: import("@angular/core").Signal<Maybe<string | SafeResourceUrl>>;
|
|
13
|
+
readonly root$: import("rxjs").Observable<ElementRef<HTMLSpanElement> | undefined>;
|
|
14
|
+
readonly srcUrl$: import("rxjs").Observable<Maybe<string | SafeResourceUrl>>;
|
|
15
|
+
readonly type$: import("rxjs").Observable<Maybe<string>>;
|
|
16
|
+
constructor();
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxEmbedComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxEmbedComponent, "dbx-embed", never, { "sanitizeUrl": { "alias": "sanitizeUrl"; "required": false; "isSignal": true; }; "srcUrl": { "alias": "srcUrl"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { ContentTypeMimeType, Maybe, WebsiteUrlWithPrefix } from '@dereekb/util';
|
|
3
|
+
import { AbstractDialogDirective } from '../dialog/abstract.dialog.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DbxEmbedDialogConfig {
|
|
6
|
+
readonly srcUrl: WebsiteUrlWithPrefix;
|
|
7
|
+
readonly embedMimeType?: Maybe<ContentTypeMimeType | string>;
|
|
8
|
+
readonly sanitizeUrl?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DbxEmbedDialogComponent extends AbstractDialogDirective<void, DbxEmbedDialogConfig> {
|
|
11
|
+
get type(): Maybe<string>;
|
|
12
|
+
get srcUrl(): string;
|
|
13
|
+
get sanitizeUrl(): boolean | undefined;
|
|
14
|
+
static openDialog(matDialog: MatDialog, config: DbxEmbedDialogConfig): MatDialogRef<DbxEmbedDialogComponent, void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxEmbedDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxEmbedDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -4,7 +4,6 @@ import { Maybe } from '@dereekb/util';
|
|
|
4
4
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
5
5
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare const DBX_IFRAME_COMPONENT_TEMPLATE = "<iframe #iframe src=\"about:blank\" frameborder=\"0\" [scrolling]=\"scrolling()\" allow=\"autoplay\"></iframe>";
|
|
8
7
|
export declare class DbxIframeComponent extends AbstractSubscriptionDirective implements OnDestroy {
|
|
9
8
|
readonly sanitizer: DomSanitizer;
|
|
10
9
|
readonly iframeLocationChanged: import("@angular/core").OutputEmitterRef<ElementRef<HTMLIFrameElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { WebsiteUrlWithPrefix } from '@dereekb/util';
|
|
3
|
+
import { AbstractDialogDirective } from '../dialog/abstract.dialog.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DbxIframeDialogConfig {
|
|
6
|
+
readonly contentUrl: WebsiteUrlWithPrefix;
|
|
7
|
+
}
|
|
8
|
+
export declare class DbxIframeDialogComponent extends AbstractDialogDirective<void, DbxIframeDialogConfig> {
|
|
9
|
+
get contentUrl(): string;
|
|
10
|
+
static openDialog(matDialog: MatDialog, config: DbxIframeDialogConfig): MatDialogRef<DbxIframeDialogComponent, void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxIframeDialogComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxIframeDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|