@candy-kingdom/bonnie 0.1.1
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/README.md +7 -0
- package/esm2022/candy-kingdom-bonnie.mjs +5 -0
- package/esm2022/index.mjs +9 -0
- package/esm2022/lib/core/MediaObjectFit.mjs +7 -0
- package/esm2022/lib/core/MediaStatus.mjs +8 -0
- package/esm2022/lib/core/device.service.base.mjs +3 -0
- package/esm2022/lib/core/device.service.mjs +14 -0
- package/esm2022/lib/core/index.mjs +8 -0
- package/esm2022/lib/core/intersection.component.mjs +69 -0
- package/esm2022/lib/core/src.directive.mjs +128 -0
- package/esm2022/lib/core/unsubscribe.service.mjs +19 -0
- package/esm2022/lib/core/utils.mjs +48 -0
- package/esm2022/lib/generated/bone.mjs +6 -0
- package/esm2022/lib/generated/file-meta.mjs +6 -0
- package/esm2022/lib/generated/file-src-base.mjs +6 -0
- package/esm2022/lib/generated/file-src.mjs +6 -0
- package/esm2022/lib/generated/i-equatable.mjs +6 -0
- package/esm2022/lib/generated/i-have-data-route-with-data.mjs +6 -0
- package/esm2022/lib/generated/i-have-data-route.mjs +6 -0
- package/esm2022/lib/generated/i-have-skeleton.mjs +6 -0
- package/esm2022/lib/generated/i-page.mjs +6 -0
- package/esm2022/lib/generated/image-meta.mjs +6 -0
- package/esm2022/lib/generated/image-source.mjs +6 -0
- package/esm2022/lib/generated/image.mjs +6 -0
- package/esm2022/lib/generated/index.mjs +34 -0
- package/esm2022/lib/generated/localized-object.mjs +6 -0
- package/esm2022/lib/generated/localized-string.mjs +6 -0
- package/esm2022/lib/generated/media-source-base.mjs +6 -0
- package/esm2022/lib/generated/media-source.mjs +6 -0
- package/esm2022/lib/generated/open-graph-data.mjs +6 -0
- package/esm2022/lib/generated/page-base.mjs +6 -0
- package/esm2022/lib/generated/page-data.mjs +6 -0
- package/esm2022/lib/generated/page.mjs +6 -0
- package/esm2022/lib/generated/pix-media.mjs +6 -0
- package/esm2022/lib/generated/pix-meta.mjs +6 -0
- package/esm2022/lib/generated/publish-status.mjs +12 -0
- package/esm2022/lib/generated/sizes-item.mjs +6 -0
- package/esm2022/lib/generated/sizes-width-unit.mjs +11 -0
- package/esm2022/lib/generated/video-meta.mjs +6 -0
- package/esm2022/lib/generated/video-source.mjs +6 -0
- package/esm2022/lib/generated/video.mjs +6 -0
- package/esm2022/lib/generated/view.mjs +6 -0
- package/esm2022/lib/localization/LocalizeServiceBase.mjs +19 -0
- package/esm2022/lib/localization/index.mjs +3 -0
- package/esm2022/lib/localization/localize.pipe.mjs +128 -0
- package/esm2022/lib/marcy-elements.module.mjs +98 -0
- package/esm2022/lib/marcy-image/IHtmlPictureSource.mjs +2 -0
- package/esm2022/lib/marcy-image/getDefaultSrc.mjs +17 -0
- package/esm2022/lib/marcy-image/imgsrc.directive.mjs +20 -0
- package/esm2022/lib/marcy-image/index.mjs +6 -0
- package/esm2022/lib/marcy-image/marcy-image.component.mjs +83 -0
- package/esm2022/lib/marcy-image/toHtmlSources.mjs +16 -0
- package/esm2022/lib/marcy-media/index.mjs +2 -0
- package/esm2022/lib/marcy-media/marcy-media.component.mjs +59 -0
- package/esm2022/lib/marcy-video/index.mjs +3 -0
- package/esm2022/lib/marcy-video/marcy-video.component.mjs +147 -0
- package/esm2022/lib/marcy-video/vidsrc.directive.mjs +20 -0
- package/esm2022/lib/skeleton/IBoneComponent.mjs +2 -0
- package/esm2022/lib/skeleton/bone.directive.mjs +41 -0
- package/esm2022/lib/skeleton/index.mjs +6 -0
- package/esm2022/lib/skeleton/skeleton-anchor.directive.mjs +17 -0
- package/esm2022/lib/skeleton/skeleton.component.mjs +53 -0
- package/esm2022/lib/skeleton/unknown-bone.component.mjs +25 -0
- package/fesm2022/candy-kingdom-bonnie.mjs +1107 -0
- package/fesm2022/candy-kingdom-bonnie.mjs.map +1 -0
- package/index.d.ts +8 -0
- package/lib/core/MediaObjectFit.d.ts +5 -0
- package/lib/core/MediaStatus.d.ts +6 -0
- package/lib/core/device.service.base.d.ts +4 -0
- package/lib/core/device.service.d.ts +8 -0
- package/lib/core/index.d.ts +7 -0
- package/lib/core/intersection.component.d.ts +20 -0
- package/lib/core/src.directive.d.ts +23 -0
- package/lib/core/unsubscribe.service.d.ts +10 -0
- package/lib/core/utils.d.ts +10 -0
- package/lib/generated/bone.d.ts +10 -0
- package/lib/generated/file-meta.d.ts +7 -0
- package/lib/generated/file-src-base.d.ts +8 -0
- package/lib/generated/file-src.d.ts +9 -0
- package/lib/generated/i-equatable.d.ts +6 -0
- package/lib/generated/i-have-data-route-with-data.d.ts +8 -0
- package/lib/generated/i-have-data-route.d.ts +7 -0
- package/lib/generated/i-have-skeleton.d.ts +8 -0
- package/lib/generated/i-page.d.ts +8 -0
- package/lib/generated/image-meta.d.ts +7 -0
- package/lib/generated/image-source.d.ts +10 -0
- package/lib/generated/image.d.ts +10 -0
- package/lib/generated/index.d.ts +33 -0
- package/lib/generated/localized-object.d.ts +7 -0
- package/lib/generated/localized-string.d.ts +7 -0
- package/lib/generated/media-source-base.d.ts +8 -0
- package/lib/generated/media-source.d.ts +11 -0
- package/lib/generated/open-graph-data.d.ts +11 -0
- package/lib/generated/page-base.d.ts +19 -0
- package/lib/generated/page-data.d.ts +7 -0
- package/lib/generated/page.d.ts +9 -0
- package/lib/generated/pix-media.d.ts +9 -0
- package/lib/generated/pix-meta.d.ts +10 -0
- package/lib/generated/publish-status.d.ts +10 -0
- package/lib/generated/sizes-item.d.ts +10 -0
- package/lib/generated/sizes-width-unit.d.ts +9 -0
- package/lib/generated/video-meta.d.ts +11 -0
- package/lib/generated/video-source.d.ts +8 -0
- package/lib/generated/video.d.ts +10 -0
- package/lib/generated/view.d.ts +9 -0
- package/lib/localization/LocalizeServiceBase.d.ts +9 -0
- package/lib/localization/index.d.ts +2 -0
- package/lib/localization/localize.pipe.d.ts +55 -0
- package/lib/marcy-elements.module.d.ts +19 -0
- package/lib/marcy-image/IHtmlPictureSource.d.ts +6 -0
- package/lib/marcy-image/getDefaultSrc.d.ts +2 -0
- package/lib/marcy-image/imgsrc.directive.d.ts +9 -0
- package/lib/marcy-image/index.d.ts +5 -0
- package/lib/marcy-image/marcy-image.component.d.ts +30 -0
- package/lib/marcy-image/toHtmlSources.d.ts +3 -0
- package/lib/marcy-media/index.d.ts +1 -0
- package/lib/marcy-media/marcy-media.component.d.ts +24 -0
- package/lib/marcy-video/index.d.ts +2 -0
- package/lib/marcy-video/marcy-video.component.d.ts +33 -0
- package/lib/marcy-video/vidsrc.directive.d.ts +9 -0
- package/lib/skeleton/IBoneComponent.d.ts +4 -0
- package/lib/skeleton/bone.directive.d.ts +17 -0
- package/lib/skeleton/index.d.ts +5 -0
- package/lib/skeleton/skeleton-anchor.directive.d.ts +8 -0
- package/lib/skeleton/skeleton.component.d.ts +18 -0
- package/lib/skeleton/unknown-bone.component.d.ts +14 -0
- package/package.json +25 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a TypeGen auto-generated file.
|
|
3
|
+
* Any changes made to this file can be lost when this file is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { SizesWidthUnit } from "./sizes-width-unit";
|
|
6
|
+
export interface SizesItem {
|
|
7
|
+
width: number;
|
|
8
|
+
unit: SizesWidthUnit;
|
|
9
|
+
mediaQuery: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a TypeGen auto-generated file.
|
|
3
|
+
* Any changes made to this file can be lost when this file is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { PixMeta } from "./pix-meta";
|
|
6
|
+
export interface VideoMeta extends PixMeta {
|
|
7
|
+
duration: number;
|
|
8
|
+
fullFormat: string;
|
|
9
|
+
hasAudio: boolean;
|
|
10
|
+
frameRate: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a TypeGen auto-generated file.
|
|
3
|
+
* Any changes made to this file can be lost when this file is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { MediaSource } from "./media-source";
|
|
6
|
+
import { VideoMeta } from "./video-meta";
|
|
7
|
+
export interface VideoSource extends MediaSource<VideoMeta> {
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a TypeGen auto-generated file.
|
|
3
|
+
* Any changes made to this file can be lost when this file is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { PixMedia } from "./pix-media";
|
|
6
|
+
import { VideoSource } from "./video-source";
|
|
7
|
+
export interface Video extends PixMedia {
|
|
8
|
+
sources: VideoSource[];
|
|
9
|
+
type: 'video';
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { LocalizedObject, LocalizedString } from '../generated';
|
|
3
|
+
export declare abstract class LocalizeServiceBase {
|
|
4
|
+
abstract get locale(): string;
|
|
5
|
+
abstract get locale$(): Observable<string>;
|
|
6
|
+
getLocalized<T>(value: LocalizedObject<T>, defaultValue: T, locale?: string): T;
|
|
7
|
+
getLocalizedText(value: LocalizedString, locale?: string): string;
|
|
8
|
+
isLocalUrl(value: LocalizedString, locale?: string): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { LocalizeServiceBase } from './LocalizeServiceBase';
|
|
4
|
+
import { LocalizedObject, LocalizedString } from '../generated';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LocalizePipe implements PipeTransform {
|
|
7
|
+
private readonly localizeService;
|
|
8
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
9
|
+
transform(value: LocalizedString, locale?: string): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizePipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizePipe, "localize", false>;
|
|
12
|
+
}
|
|
13
|
+
export declare class LocalizeObjectPipe implements PipeTransform {
|
|
14
|
+
private readonly localizeService;
|
|
15
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
16
|
+
transform<T>(object: LocalizedObject<T>, locale?: string): T | undefined;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeObjectPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizeObjectPipe, "localizeObject", false>;
|
|
19
|
+
}
|
|
20
|
+
export declare class LocalizationIsNotEmptyPipe implements PipeTransform {
|
|
21
|
+
private readonly localizeService;
|
|
22
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
23
|
+
transform(value: LocalizedString, locale?: string): boolean;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationIsNotEmptyPipe, never>;
|
|
25
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizationIsNotEmptyPipe, "localizationIsNotEmpty", false>;
|
|
26
|
+
}
|
|
27
|
+
export declare class LocalizationIsEmptyPipe implements PipeTransform {
|
|
28
|
+
private readonly localizeService;
|
|
29
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
30
|
+
transform(value: LocalizedString, locale?: string): boolean;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationIsEmptyPipe, never>;
|
|
32
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizationIsEmptyPipe, "localizationIsEmpty", false>;
|
|
33
|
+
}
|
|
34
|
+
export declare class LocalizeUrlPipe implements PipeTransform {
|
|
35
|
+
private readonly localizeService;
|
|
36
|
+
private readonly domSanitizer;
|
|
37
|
+
constructor(localizeService: LocalizeServiceBase, domSanitizer: DomSanitizer);
|
|
38
|
+
transform(value: LocalizedString, locale?: string): SafeResourceUrl;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeUrlPipe, never>;
|
|
40
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizeUrlPipe, "localizeUrl", false>;
|
|
41
|
+
}
|
|
42
|
+
export declare class IsLocalUrlPipe implements PipeTransform {
|
|
43
|
+
private readonly localizeService;
|
|
44
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
45
|
+
transform(value: LocalizedString, locale?: string): boolean;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsLocalUrlPipe, never>;
|
|
47
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsLocalUrlPipe, "isLocalUrl", false>;
|
|
48
|
+
}
|
|
49
|
+
export declare class IsNotLocalUrlPipe implements PipeTransform {
|
|
50
|
+
private readonly localizeService;
|
|
51
|
+
constructor(localizeService: LocalizeServiceBase);
|
|
52
|
+
transform(value: LocalizedString, locale?: string): boolean;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotLocalUrlPipe, never>;
|
|
54
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotLocalUrlPipe, "isNotLocalUrl", false>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./marcy-image/marcy-image.component";
|
|
3
|
+
import * as i2 from "./marcy-video/marcy-video.component";
|
|
4
|
+
import * as i3 from "./marcy-media/marcy-media.component";
|
|
5
|
+
import * as i4 from "./core/intersection.component";
|
|
6
|
+
import * as i5 from "./skeleton/skeleton.component";
|
|
7
|
+
import * as i6 from "./skeleton/unknown-bone.component";
|
|
8
|
+
import * as i7 from "./core/src.directive";
|
|
9
|
+
import * as i8 from "./marcy-image/imgsrc.directive";
|
|
10
|
+
import * as i9 from "./marcy-video/vidsrc.directive";
|
|
11
|
+
import * as i10 from "./localization/localize.pipe";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "./skeleton/skeleton-anchor.directive";
|
|
14
|
+
import * as i13 from "./skeleton/bone.directive";
|
|
15
|
+
export declare class MarcyElementsModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarcyElementsModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MarcyElementsModule, [typeof i1.MarcyImageComponent, typeof i2.MarcyVideoComponent, typeof i3.MarcyMediaComponent, typeof i4.IntersectionComponent, typeof i5.SkeletonComponent, typeof i6.UnknownBoneComponent, typeof i7.SrcBaseDirective, typeof i8.ImageSrcDirective, typeof i9.VideoSrcDirective, typeof i10.LocalizePipe, typeof i10.LocalizationIsNotEmptyPipe], [typeof i11.CommonModule, typeof i12.SkeletonAnchorDirective, typeof i13.BoneDirective], [typeof i11.CommonModule, typeof i10.LocalizePipe, typeof i10.LocalizationIsNotEmptyPipe, typeof i1.MarcyImageComponent, typeof i2.MarcyVideoComponent, typeof i3.MarcyMediaComponent, typeof i4.IntersectionComponent, typeof i5.SkeletonComponent, typeof i6.UnknownBoneComponent, typeof i7.SrcBaseDirective, typeof i8.ImageSrcDirective, typeof i9.VideoSrcDirective, typeof i12.SkeletonAnchorDirective, typeof i13.BoneDirective]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MarcyElementsModule>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as MCore from '../generated';
|
|
3
|
+
import { SrcBaseDirective } from '../core/src.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ImageSrcDirective extends SrcBaseDirective<MCore.Image> implements OnInit {
|
|
6
|
+
set imgsrc(value: MCore.Image | undefined);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSrcDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageSrcDirective, "[imgsrc]", never, { "imgsrc": { "alias": "imgsrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { UnsubscriberService } from '../core/unsubscribe.service';
|
|
4
|
+
import { MediaStatus } from '../core/MediaStatus';
|
|
5
|
+
import { MediaObjectFit } from '../core/MediaObjectFit';
|
|
6
|
+
import { ImageSrcDirective } from './imgsrc.directive';
|
|
7
|
+
import { IHtmlPictureSource } from './IHtmlPictureSource';
|
|
8
|
+
import { DeviceServiceBase } from '../core/device.service.base';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class MarcyImageComponent implements OnInit {
|
|
11
|
+
readonly device: DeviceServiceBase;
|
|
12
|
+
readonly cd: ChangeDetectorRef;
|
|
13
|
+
private readonly _u;
|
|
14
|
+
readonly MediaStatus: typeof MediaStatus;
|
|
15
|
+
readonly MarcyObjectFit: typeof MediaObjectFit;
|
|
16
|
+
readonly isLoaded: EventEmitter<void>;
|
|
17
|
+
readonly sources: IHtmlPictureSource[];
|
|
18
|
+
readonly $status: BehaviorSubject<MediaStatus>;
|
|
19
|
+
defaultSrc: string;
|
|
20
|
+
private _objectFit;
|
|
21
|
+
readonly src: ImageSrcDirective;
|
|
22
|
+
constructor(device: DeviceServiceBase, cd: ChangeDetectorRef, _u: UnsubscriberService, srcDir?: ImageSrcDirective);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
private onSrcChange;
|
|
25
|
+
set objectFit(val: MediaObjectFit | undefined);
|
|
26
|
+
get objectFit(): MediaObjectFit;
|
|
27
|
+
onLoad(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarcyImageComponent, [null, null, null, { optional: true; }]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarcyImageComponent, "bon-image", never, { "objectFit": { "alias": "objectFit"; "required": false; }; }, { "isLoaded": "isLoaded"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './marcy-media.component';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import * as MCore from '../generated';
|
|
3
|
+
import { UnsubscriberService } from '../core/unsubscribe.service';
|
|
4
|
+
import { MediaObjectFit } from '../core/MediaObjectFit';
|
|
5
|
+
import { DeviceServiceBase } from '../core/device.service.base';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MarcyMediaComponent implements OnInit {
|
|
8
|
+
readonly device: DeviceServiceBase;
|
|
9
|
+
readonly cd: ChangeDetectorRef;
|
|
10
|
+
private readonly _u;
|
|
11
|
+
readonly MarcyObjectFit: typeof MediaObjectFit;
|
|
12
|
+
readonly isLoaded: EventEmitter<void>;
|
|
13
|
+
private _objectFit;
|
|
14
|
+
private _src?;
|
|
15
|
+
constructor(device: DeviceServiceBase, cd: ChangeDetectorRef, _u: UnsubscriberService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
get src(): MCore.Video | MCore.Image | undefined;
|
|
18
|
+
set src(val: MCore.Video | MCore.Image | undefined);
|
|
19
|
+
set objectFit(val: MediaObjectFit | undefined);
|
|
20
|
+
get objectFit(): MediaObjectFit;
|
|
21
|
+
onLoad(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarcyMediaComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarcyMediaComponent, "bon-media", never, { "src": { "alias": "src"; "required": false; }; "objectFit": { "alias": "objectFit"; "required": false; }; }, { "isLoaded": "isLoaded"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, OnInit, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as MCore from '../generated';
|
|
4
|
+
import { UnsubscriberService } from '../core/unsubscribe.service';
|
|
5
|
+
import { MediaStatus } from '../core/MediaStatus';
|
|
6
|
+
import { MediaObjectFit } from '../core/MediaObjectFit';
|
|
7
|
+
import { DeviceServiceBase } from '../core/device.service.base';
|
|
8
|
+
import { VideoSrcDirective } from './vidsrc.directive';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class MarcyVideoComponent implements OnInit, AfterViewInit {
|
|
11
|
+
readonly device: DeviceServiceBase;
|
|
12
|
+
readonly cd: ChangeDetectorRef;
|
|
13
|
+
private readonly _u;
|
|
14
|
+
readonly MediaStatus: typeof MediaStatus;
|
|
15
|
+
readonly MarcyObjectFit: typeof MediaObjectFit;
|
|
16
|
+
readonly videoRef: ElementRef<HTMLVideoElement>;
|
|
17
|
+
readonly isLoaded: EventEmitter<void>;
|
|
18
|
+
readonly $status: BehaviorSubject<MediaStatus>;
|
|
19
|
+
readonly src: VideoSrcDirective;
|
|
20
|
+
source?: MCore.FileSrc<MCore.VideoMeta>;
|
|
21
|
+
private _objectFit;
|
|
22
|
+
constructor(device: DeviceServiceBase, cd: ChangeDetectorRef, _u: UnsubscriberService, srcDir?: VideoSrcDirective);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
private subscribeToMediaQueryChange;
|
|
26
|
+
private updateSources;
|
|
27
|
+
set objectFit(val: MediaObjectFit | undefined);
|
|
28
|
+
get objectFit(): MediaObjectFit;
|
|
29
|
+
onLoad(): void;
|
|
30
|
+
private findMoreSuitableSource;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarcyVideoComponent, [null, null, null, { optional: true; }]>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarcyVideoComponent, "bon-video", never, { "objectFit": { "alias": "objectFit"; "required": false; }; }, { "isLoaded": "isLoaded"; }, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as MCore from '../generated';
|
|
3
|
+
import { SrcBaseDirective } from '../core/src.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class VideoSrcDirective extends SrcBaseDirective<MCore.Video> implements OnInit {
|
|
6
|
+
set vidsrc(value: MCore.Video | undefined);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoSrcDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VideoSrcDirective, "[vidsrc]", never, { "vidsrc": { "alias": "vidsrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { Bone } from '../generated';
|
|
3
|
+
import { UnsubscriberService } from '../core/unsubscribe.service';
|
|
4
|
+
import { LocalizeServiceBase } from '../localization/LocalizeServiceBase';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BoneDirective<T extends Bone = Bone> implements OnInit {
|
|
7
|
+
private readonly cd;
|
|
8
|
+
private readonly _u;
|
|
9
|
+
private readonly localizationService;
|
|
10
|
+
private _bone?;
|
|
11
|
+
constructor(cd: ChangeDetectorRef, _u: UnsubscriberService, localizationService: LocalizeServiceBase);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
set bone(value: T);
|
|
14
|
+
get bone(): T;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoneDirective<any>, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BoneDirective<any>, "[bonBoneDir]", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkeletonAnchorDirective {
|
|
4
|
+
viewContainerRef: ViewContainerRef;
|
|
5
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonAnchorDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonAnchorDirective, "[bonSkeletonAnchor]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit, Type } from '@angular/core';
|
|
2
|
+
import { SkeletonAnchorDirective } from './skeleton-anchor.directive';
|
|
3
|
+
import { IBoneComponent } from "./IBoneComponent";
|
|
4
|
+
import { Bone } from '../generated';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SkeletonComponent implements OnInit {
|
|
7
|
+
private cd;
|
|
8
|
+
skeletonAnchor: SkeletonAnchorDirective;
|
|
9
|
+
map?: Map<string, Type<IBoneComponent>>;
|
|
10
|
+
private readonly _bones;
|
|
11
|
+
private iniailized;
|
|
12
|
+
constructor(cd: ChangeDetectorRef);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
set bones(newValue: Bone[] | undefined);
|
|
15
|
+
private fillComponentFromBones;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonComponent, "bon-skeleton", never, { "map": { "alias": "map"; "required": true; }; "bones": { "alias": "bones"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { IBoneComponent } from "./IBoneComponent";
|
|
3
|
+
import { Bone } from '../generated';
|
|
4
|
+
import { BoneDirective } from './bone.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./bone.directive";
|
|
7
|
+
export declare class UnknownBoneComponent implements IBoneComponent {
|
|
8
|
+
private readonly cd;
|
|
9
|
+
readonly bd: BoneDirective<Bone>;
|
|
10
|
+
constructor(cd: ChangeDetectorRef, bd: BoneDirective<Bone>);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnknownBoneComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnknownBoneComponent, "bon-unknown-bone", never, {}, {}, never, never, false, [{ directive: typeof i1.BoneDirective; inputs: {}; outputs: {}; }]>;
|
|
14
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@candy-kingdom/bonnie",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.0.0",
|
|
6
|
+
"@angular/core": "^17.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/candy-kingdom-bonnie.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/candy-kingdom-bonnie.mjs",
|
|
21
|
+
"esm": "./esm2022/candy-kingdom-bonnie.mjs",
|
|
22
|
+
"default": "./fesm2022/candy-kingdom-bonnie.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|