croco-html 2.10.0 → 2.12.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.
- package/esm2022/lib/components/editor/download-button-block/download-button-block.component.mjs +40 -0
- package/esm2022/lib/components/editor/external-video-block/external-video-block.component.mjs +3 -3
- package/esm2022/lib/components/editor/external-video-block/vk-video-player/vk-video-player.component.mjs +3 -3
- package/esm2022/lib/components/editor/external-video-block/youtube-video-player/youtube-video-player.component.mjs +20 -0
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +8 -7
- package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +5 -3
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +8 -2
- package/esm2022/lib/components/xml-tags/xml-tag-download-button/xml-tag-download-button.component.mjs +54 -0
- package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +15 -59
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +10 -9
- package/esm2022/lib/croco-html.module.mjs +15 -4
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +7 -2
- package/esm2022/lib/extensions/DownloadButtonMethods.mjs +17 -0
- package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +4 -2
- package/esm2022/lib/pipes/to-preview.pipe.mjs +1 -1
- package/esm2022/lib/services/blob-create.service.mjs +20 -0
- package/fesm2022/croco-html.mjs +198 -103
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/download-button-block/download-button-block.component.d.ts +13 -0
- package/lib/components/editor/external-video-block/youtube-video-player/youtube-video-player.component.d.ts +10 -0
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +2 -1
- package/lib/components/xml-tags/xml-tag-download-button/xml-tag-download-button.component.d.ts +14 -0
- package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +2 -11
- package/lib/croco-html.module.d.ts +4 -1
- package/lib/extensions/DownloadButtonMethods.d.ts +16 -0
- package/lib/extensions/HtmlExtractionMethods.d.ts +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/services/blob-create.service.d.ts +10 -0
- package/package.json +1 -1
- package/esm2022/lib/components/xml-tags/xml-tag-external-video/resize-observable.mjs +0 -13
- package/lib/components/xml-tags/xml-tag-external-video/resize-observable.d.ts +0 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { HtmlBodyTag } from "../../../models/models";
|
|
3
|
+
import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DownloadButtonBlockComponent {
|
|
6
|
+
tag: HtmlBodyTag;
|
|
7
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
8
|
+
tagData: DownloadButtonTagData;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
linkChanged(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadButtonBlockComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadButtonBlockComponent, "croco-html-download-button-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class YoutubeVideoPlayerComponent {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
set link(link: string);
|
|
6
|
+
safeUrl: SafeResourceUrl;
|
|
7
|
+
constructor(sanitizer: DomSanitizer);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YoutubeVideoPlayerComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YoutubeVideoPlayerComponent, "youtube-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -6,8 +6,9 @@ import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.comp
|
|
|
6
6
|
import { EAlignments } from "./DefaultAligments";
|
|
7
7
|
import { CrocoHtmlOptions } from '../../../extensions/HtmlExtractionMethods';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare const defaultLinkYouTube = "https://
|
|
9
|
+
export declare const defaultLinkYouTube = "https://www.youtube.com/embed/4CtSAnJDfsI?si=scyBNJa0Hs2t5aLE";
|
|
10
10
|
export declare const defaultLinkVk = "https://vk.com/video_ext.php?oid=-22822305&id=456241864&hd=2";
|
|
11
|
+
export declare const defaultLinkForDownload = "https://storage.yandexcloud.net/mega-academy/presentation.pdf";
|
|
11
12
|
export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
12
13
|
private readonly _cdref;
|
|
13
14
|
private readonly _options;
|
package/lib/components/xml-tags/xml-tag-download-button/xml-tag-download-button.component.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
2
|
+
import { BlobCreateService } from "../../../services/blob-create.service";
|
|
3
|
+
import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class XmlTagDownloadButtonComponent {
|
|
6
|
+
private readonly _blobCreateService;
|
|
7
|
+
set data(value: InterfaceBlock);
|
|
8
|
+
set tagData(value: DownloadButtonTagData);
|
|
9
|
+
constructor(_blobCreateService: BlobCreateService);
|
|
10
|
+
_block: DownloadButtonTagData;
|
|
11
|
+
downloadFile(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagDownloadButtonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagDownloadButtonComponent, "croco-html-xml-tag-download-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
1
|
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
3
2
|
import { ExternalVideoSupportedTypes, ExternalVideoTagData } from '../../../extensions';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class XmlTagExternalVideoComponent
|
|
6
|
-
private destroyRef;
|
|
4
|
+
export declare class XmlTagExternalVideoComponent {
|
|
7
5
|
set data(value: InterfaceBlock);
|
|
8
6
|
set tagData(value: ExternalVideoTagData);
|
|
9
|
-
playerContainerRef?: ElementRef<HTMLElement>;
|
|
10
|
-
videoId?: string;
|
|
11
|
-
_block: ExternalVideoTagData;
|
|
12
|
-
playerWidth: import("@angular/core").WritableSignal<number>;
|
|
13
|
-
playerHeight: import("@angular/core").WritableSignal<number>;
|
|
14
7
|
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
15
|
-
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
private getYouTubeId;
|
|
8
|
+
_block: ExternalVideoTagData;
|
|
18
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
|
|
19
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagExternalVideoComponent, "croco-html-xml-tag-external-video", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
11
|
}
|
|
@@ -60,8 +60,11 @@ import * as i58 from "@angular/material/button-toggle";
|
|
|
60
60
|
import * as i59 from "./components/error-banner/error-banner.component";
|
|
61
61
|
import * as i60 from "@angular/youtube-player";
|
|
62
62
|
import * as i61 from "./components/editor/external-video-block/vk-video-player/vk-video-player.component";
|
|
63
|
+
import * as i62 from "./components/editor/external-video-block/youtube-video-player/youtube-video-player.component";
|
|
64
|
+
import * as i63 from "./components/editor/download-button-block/download-button-block.component";
|
|
65
|
+
import * as i64 from "./components/xml-tags/xml-tag-download-button/xml-tag-download-button.component";
|
|
63
66
|
export declare class CrocoHtmlModule {
|
|
64
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
|
|
65
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe], [typeof i27.CommonModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgSelectModule, typeof i30.MatBadgeModule, typeof i31.MatTableModule, typeof i32.MatExpansionModule, typeof i33.MatFormFieldModule, typeof i34.MatSnackBarModule, typeof i35.MatProgressBarModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatTabsModule, typeof i38.MatMenuModule, typeof i39.MatCardModule, typeof i40.MatSelectModule, typeof i41.MatTooltipModule, typeof i42.MatCheckboxModule, typeof i43.MatChipsModule, typeof i44.MatListModule, typeof i45.MatButtonModule, typeof i46.MatInputModule, typeof i47.MatDialogModule, typeof i48.MatPaginatorModule, typeof i49.MatDatepickerModule, typeof i50.MatGridListModule, typeof i51.MatSlideToggleModule, typeof i52.MatTreeModule, typeof i53.MatNativeDateModule, typeof i54.MatAutocompleteModule, typeof i55.MatSidenavModule, typeof i56.MatIconModule, typeof i57.DragDropModule, typeof i58.MatButtonToggleModule, typeof i59.ErrorBannerComponent, typeof i60.YouTubePlayerModule, typeof i61.VkVideoPlayerComponent], [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe]>;
|
|
68
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe], [typeof i27.CommonModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgSelectModule, typeof i30.MatBadgeModule, typeof i31.MatTableModule, typeof i32.MatExpansionModule, typeof i33.MatFormFieldModule, typeof i34.MatSnackBarModule, typeof i35.MatProgressBarModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatTabsModule, typeof i38.MatMenuModule, typeof i39.MatCardModule, typeof i40.MatSelectModule, typeof i41.MatTooltipModule, typeof i42.MatCheckboxModule, typeof i43.MatChipsModule, typeof i44.MatListModule, typeof i45.MatButtonModule, typeof i46.MatInputModule, typeof i47.MatDialogModule, typeof i48.MatPaginatorModule, typeof i49.MatDatepickerModule, typeof i50.MatGridListModule, typeof i51.MatSlideToggleModule, typeof i52.MatTreeModule, typeof i53.MatNativeDateModule, typeof i54.MatAutocompleteModule, typeof i55.MatSidenavModule, typeof i56.MatIconModule, typeof i57.DragDropModule, typeof i58.MatButtonToggleModule, typeof i59.ErrorBannerComponent, typeof i60.YouTubePlayerModule, typeof i61.VkVideoPlayerComponent, typeof i62.YoutubeVideoPlayerComponent, typeof i63.DownloadButtonBlockComponent, typeof i64.XmlTagDownloadButtonComponent], [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe]>;
|
|
66
69
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
|
|
67
70
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class DownloadButtonTagDataConsts {
|
|
2
|
+
static TagName: string;
|
|
3
|
+
static TitleAttrName: string;
|
|
4
|
+
static LinkAttrName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DownloadButtonTag {
|
|
7
|
+
type: string;
|
|
8
|
+
data: DownloadButtonTagData;
|
|
9
|
+
}
|
|
10
|
+
export interface DownloadButtonTagData {
|
|
11
|
+
title: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class DownloadButtonMethods {
|
|
15
|
+
static ExtractDownloadButtonTag(elem: HTMLElement): DownloadButtonTag;
|
|
16
|
+
}
|
|
@@ -30,7 +30,7 @@ export declare class HtmlExtractionMethods {
|
|
|
30
30
|
data: {
|
|
31
31
|
innerHTML: string;
|
|
32
32
|
};
|
|
33
|
-
}) | ((elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./VideoMethods").ExternalVideoTag);
|
|
33
|
+
}) | ((elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./VideoMethods").ExternalVideoTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./DownloadButtonMethods").DownloadButtonTag);
|
|
34
34
|
TEXT: (elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextSimpleMethods").SimpleTextTag;
|
|
35
35
|
"FILE-IMAGE": (elem: HTMLElement, options: CrocoHtmlOptions) => import("./ImageMethods").FileImageTag;
|
|
36
36
|
TABLE: (elem: HTMLElement, options: CrocoHtmlOptions) => {
|
package/lib/index.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
|
|
|
10
10
|
import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
|
|
11
11
|
import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
|
|
12
12
|
import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
|
|
13
|
-
import {
|
|
13
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
14
14
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
15
15
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
16
16
|
import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
|
|
17
17
|
import { HtmlViewComponent } from "./components/html-view/html-view.component";
|
|
18
18
|
export declare const EditorComponents: (typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
|
|
19
|
-
export declare const XmlComponents: (typeof
|
|
20
|
-
export declare const CrocoPipes: (typeof
|
|
21
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
22
|
-
export declare const MaterialModules: (typeof
|
|
19
|
+
export declare const XmlComponents: (typeof HtmlViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
|
|
20
|
+
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
21
|
+
export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof HtmlViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
+
export declare const MaterialModules: (typeof MatBadgeModule)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BlobCreateService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
getBlob(link: string): Observable<Blob>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlobCreateService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlobCreateService>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export function resizeObservable(elem, options) {
|
|
3
|
-
return new Observable((subscriber) => {
|
|
4
|
-
const resizeObserver = new ResizeObserver(([entry]) => {
|
|
5
|
-
subscriber.next(entry);
|
|
6
|
-
});
|
|
7
|
-
resizeObserver.observe(elem, options);
|
|
8
|
-
return function unsubscribe() {
|
|
9
|
-
resizeObserver.unobserve(elem);
|
|
10
|
-
};
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLW9ic2VydmFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcm9jby1odG1sL3NyYy9saWIvY29tcG9uZW50cy94bWwtdGFncy94bWwtdGFnLWV4dGVybmFsLXZpZGVvL3Jlc2l6ZS1vYnNlcnZhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFbEMsTUFBTSxVQUFVLGdCQUFnQixDQUFDLElBQWEsRUFBRSxPQUErQjtJQUM3RSxPQUFPLElBQUksVUFBVSxDQUFDLENBQUMsVUFBVSxFQUFFLEVBQUU7UUFDbkMsTUFBTSxjQUFjLEdBQUcsSUFBSSxjQUFjLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxFQUFFLEVBQUU7WUFDcEQsVUFBVSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN6QixDQUFDLENBQUMsQ0FBQztRQUNILGNBQWMsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO1FBQ3RDLE9BQU8sU0FBUyxXQUFXO1lBQ3pCLGNBQWMsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDakMsQ0FBQyxDQUFDO0lBQ0osQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVzaXplT2JzZXJ2YWJsZShlbGVtOiBFbGVtZW50LCBvcHRpb25zPzogUmVzaXplT2JzZXJ2ZXJPcHRpb25zKTogT2JzZXJ2YWJsZTxSZXNpemVPYnNlcnZlckVudHJ5PiB7XG4gIHJldHVybiBuZXcgT2JzZXJ2YWJsZSgoc3Vic2NyaWJlcikgPT4ge1xuICAgIGNvbnN0IHJlc2l6ZU9ic2VydmVyID0gbmV3IFJlc2l6ZU9ic2VydmVyKChbZW50cnldKSA9PiB7XG4gICAgICBzdWJzY3JpYmVyLm5leHQoZW50cnkpO1xuICAgIH0pO1xuICAgIHJlc2l6ZU9ic2VydmVyLm9ic2VydmUoZWxlbSwgb3B0aW9ucyk7XG4gICAgcmV0dXJuIGZ1bmN0aW9uIHVuc3Vic2NyaWJlKCk6IHZvaWQge1xuICAgICAgcmVzaXplT2JzZXJ2ZXIudW5vYnNlcnZlKGVsZW0pO1xuICAgIH07XG4gIH0pO1xufVxuXG4iXX0=
|