@candy-kingdom/bonnie 0.23.0 → 0.25.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/README.md +0 -4
- package/fesm2022/candy-kingdom-bonnie.mjs +264 -334
- package/fesm2022/candy-kingdom-bonnie.mjs.map +1 -1
- package/package.json +8 -10
- package/types/candy-kingdom-bonnie.d.ts +596 -0
- package/esm2022/candy-kingdom-bonnie.mjs +0 -5
- package/esm2022/index.mjs +0 -9
- package/esm2022/lib/bonnie.module.mjs +0 -102
- package/esm2022/lib/core/FileSrcFileMeta.mjs +0 -2
- package/esm2022/lib/core/FileSrcImageMeta.mjs +0 -2
- package/esm2022/lib/core/MediaObjectFit.mjs +0 -7
- package/esm2022/lib/core/MediaStatus.mjs +0 -8
- package/esm2022/lib/core/device.service.base.mjs +0 -3
- package/esm2022/lib/core/device.service.mjs +0 -14
- package/esm2022/lib/core/emptyBone.mjs +0 -9
- package/esm2022/lib/core/emptyImage.mjs +0 -8
- package/esm2022/lib/core/emptyLocalizedString.mjs +0 -4
- package/esm2022/lib/core/emptyVideo.mjs +0 -8
- package/esm2022/lib/core/encode-uri.pipe.mjs +0 -14
- package/esm2022/lib/core/index.mjs +0 -16
- package/esm2022/lib/core/intersection.component.mjs +0 -69
- package/esm2022/lib/core/pix-media-union.mjs +0 -2
- package/esm2022/lib/core/src.directive.mjs +0 -128
- package/esm2022/lib/core/unsubscribe.service.mjs +0 -19
- package/esm2022/lib/core/utils.mjs +0 -48
- package/esm2022/lib/generated/bone.mjs +0 -6
- package/esm2022/lib/generated/file-format.mjs +0 -6
- package/esm2022/lib/generated/file-meta.mjs +0 -6
- package/esm2022/lib/generated/file-src-base.mjs +0 -6
- package/esm2022/lib/generated/file-src.mjs +0 -6
- package/esm2022/lib/generated/i-equatable.mjs +0 -6
- package/esm2022/lib/generated/i-have-data-route-with-data.mjs +0 -6
- package/esm2022/lib/generated/i-have-data-route.mjs +0 -6
- package/esm2022/lib/generated/i-have-skeleton.mjs +0 -6
- package/esm2022/lib/generated/i-page.mjs +0 -6
- package/esm2022/lib/generated/image-meta.mjs +0 -6
- package/esm2022/lib/generated/image-source.mjs +0 -6
- package/esm2022/lib/generated/image.mjs +0 -6
- package/esm2022/lib/generated/index.mjs +0 -36
- package/esm2022/lib/generated/localized-object.mjs +0 -6
- package/esm2022/lib/generated/localized-string.mjs +0 -6
- package/esm2022/lib/generated/media-source-base.mjs +0 -6
- package/esm2022/lib/generated/media-source.mjs +0 -6
- package/esm2022/lib/generated/open-graph-data.mjs +0 -6
- package/esm2022/lib/generated/page-base.mjs +0 -6
- package/esm2022/lib/generated/page-data.mjs +0 -6
- package/esm2022/lib/generated/page.mjs +0 -6
- package/esm2022/lib/generated/pix-media.mjs +0 -6
- package/esm2022/lib/generated/pix-meta.mjs +0 -6
- package/esm2022/lib/generated/publish-status.mjs +0 -12
- package/esm2022/lib/generated/sizes-item.mjs +0 -6
- package/esm2022/lib/generated/sizes-width-unit.mjs +0 -11
- package/esm2022/lib/generated/svg-meta.mjs +0 -6
- package/esm2022/lib/generated/video-meta.mjs +0 -6
- package/esm2022/lib/generated/video-source.mjs +0 -6
- package/esm2022/lib/generated/video.mjs +0 -6
- package/esm2022/lib/generated/view.mjs +0 -6
- package/esm2022/lib/localization/LocalizeServiceBase.mjs +0 -19
- package/esm2022/lib/localization/index.mjs +0 -3
- package/esm2022/lib/localization/localize.pipe.mjs +0 -128
- package/esm2022/lib/marcy-image/IHtmlPictureSource.mjs +0 -2
- package/esm2022/lib/marcy-image/getDefaultSrc.mjs +0 -17
- package/esm2022/lib/marcy-image/imgsrc.directive.mjs +0 -20
- package/esm2022/lib/marcy-image/index.mjs +0 -6
- package/esm2022/lib/marcy-image/marcy-image.component.mjs +0 -83
- package/esm2022/lib/marcy-image/toHtmlSources.mjs +0 -16
- package/esm2022/lib/marcy-media/index.mjs +0 -2
- package/esm2022/lib/marcy-media/marcy-media.component.mjs +0 -59
- package/esm2022/lib/marcy-video/index.mjs +0 -3
- package/esm2022/lib/marcy-video/marcy-video.component.mjs +0 -159
- package/esm2022/lib/marcy-video/vidsrc.directive.mjs +0 -20
- package/esm2022/lib/skeleton/BoneMap.mjs +0 -10
- package/esm2022/lib/skeleton/IBoneComponent.mjs +0 -2
- package/esm2022/lib/skeleton/bone.directive.mjs +0 -41
- package/esm2022/lib/skeleton/index.mjs +0 -7
- package/esm2022/lib/skeleton/skeleton-anchor.directive.mjs +0 -17
- package/esm2022/lib/skeleton/skeleton.component.mjs +0 -53
- package/esm2022/lib/skeleton/unknown-bone.component.mjs +0 -25
- package/index.d.ts +0 -8
- package/lib/bonnie.module.d.ts +0 -20
- package/lib/core/FileSrcFileMeta.d.ts +0 -2
- package/lib/core/FileSrcImageMeta.d.ts +0 -2
- package/lib/core/MediaObjectFit.d.ts +0 -5
- package/lib/core/MediaStatus.d.ts +0 -6
- package/lib/core/device.service.base.d.ts +0 -4
- package/lib/core/device.service.d.ts +0 -8
- package/lib/core/emptyBone.d.ts +0 -2
- package/lib/core/emptyImage.d.ts +0 -2
- package/lib/core/emptyLocalizedString.d.ts +0 -2
- package/lib/core/emptyVideo.d.ts +0 -2
- package/lib/core/encode-uri.pipe.d.ts +0 -7
- package/lib/core/index.d.ts +0 -15
- package/lib/core/intersection.component.d.ts +0 -20
- package/lib/core/pix-media-union.d.ts +0 -2
- package/lib/core/src.directive.d.ts +0 -23
- package/lib/core/unsubscribe.service.d.ts +0 -10
- package/lib/core/utils.d.ts +0 -10
- package/lib/generated/bone.d.ts +0 -10
- package/lib/generated/file-format.d.ts +0 -8
- package/lib/generated/file-meta.d.ts +0 -7
- package/lib/generated/file-src-base.d.ts +0 -8
- package/lib/generated/file-src.d.ts +0 -9
- package/lib/generated/i-equatable.d.ts +0 -6
- package/lib/generated/i-have-data-route-with-data.d.ts +0 -8
- package/lib/generated/i-have-data-route.d.ts +0 -7
- package/lib/generated/i-have-skeleton.d.ts +0 -8
- package/lib/generated/i-page.d.ts +0 -8
- package/lib/generated/image-meta.d.ts +0 -7
- package/lib/generated/image-source.d.ts +0 -10
- package/lib/generated/image.d.ts +0 -11
- package/lib/generated/index.d.ts +0 -35
- package/lib/generated/localized-object.d.ts +0 -7
- package/lib/generated/localized-string.d.ts +0 -7
- package/lib/generated/media-source-base.d.ts +0 -8
- package/lib/generated/media-source.d.ts +0 -11
- package/lib/generated/open-graph-data.d.ts +0 -13
- package/lib/generated/page-base.d.ts +0 -19
- package/lib/generated/page-data.d.ts +0 -7
- package/lib/generated/page.d.ts +0 -9
- package/lib/generated/pix-media.d.ts +0 -9
- package/lib/generated/pix-meta.d.ts +0 -10
- package/lib/generated/publish-status.d.ts +0 -10
- package/lib/generated/sizes-item.d.ts +0 -10
- package/lib/generated/sizes-width-unit.d.ts +0 -9
- package/lib/generated/svg-meta.d.ts +0 -9
- package/lib/generated/video-meta.d.ts +0 -11
- package/lib/generated/video-source.d.ts +0 -8
- package/lib/generated/video.d.ts +0 -11
- package/lib/generated/view.d.ts +0 -10
- package/lib/localization/LocalizeServiceBase.d.ts +0 -9
- package/lib/localization/index.d.ts +0 -2
- package/lib/localization/localize.pipe.d.ts +0 -55
- package/lib/marcy-image/IHtmlPictureSource.d.ts +0 -6
- package/lib/marcy-image/getDefaultSrc.d.ts +0 -2
- package/lib/marcy-image/imgsrc.directive.d.ts +0 -9
- package/lib/marcy-image/index.d.ts +0 -5
- package/lib/marcy-image/marcy-image.component.d.ts +0 -30
- package/lib/marcy-image/toHtmlSources.d.ts +0 -3
- package/lib/marcy-media/index.d.ts +0 -1
- package/lib/marcy-media/marcy-media.component.d.ts +0 -24
- package/lib/marcy-video/index.d.ts +0 -2
- package/lib/marcy-video/marcy-video.component.d.ts +0 -33
- package/lib/marcy-video/vidsrc.directive.d.ts +0 -9
- package/lib/skeleton/BoneMap.d.ts +0 -5
- package/lib/skeleton/IBoneComponent.d.ts +0 -4
- package/lib/skeleton/bone.directive.d.ts +0 -17
- package/lib/skeleton/index.d.ts +0 -6
- package/lib/skeleton/skeleton-anchor.directive.d.ts +0 -8
- package/lib/skeleton/skeleton.component.d.ts +0 -18
- package/lib/skeleton/unknown-bone.component.d.ts +0 -14
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
2
|
-
import { BoneDirective } from './bone.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./bone.directive";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
export class UnknownBoneComponent {
|
|
7
|
-
constructor(cd, bd) {
|
|
8
|
-
this.cd = cd;
|
|
9
|
-
this.bd = bd;
|
|
10
|
-
console.log('BoneDirective', bd);
|
|
11
|
-
cd.detach();
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
this.cd.detectChanges();
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: UnknownBoneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.BoneDirective }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: UnknownBoneComponent, selector: "bon-unknown-bone", hostDirectives: [{ directive: i1.BoneDirective }], ngImport: i0, template: `<h2>unknown bone {{bd.bone.type}}</h2>
|
|
18
|
-
<div>{{bd.bone | json}}</div>`, isInline: true, styles: [":host{display:block;border:2px solid red;box-sizing:border-box}\n"], dependencies: [{ kind: "pipe", type: i2.JsonPipe, name: "json" }] }); }
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: UnknownBoneComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: 'bon-unknown-bone', hostDirectives: [BoneDirective], template: `<h2>unknown bone {{bd.bone.type}}</h2>
|
|
23
|
-
<div>{{bd.bone | json}}</div>`, styles: [":host{display:block;border:2px solid red;box-sizing:border-box}\n"] }]
|
|
24
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.BoneDirective }] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5rbm93bi1ib25lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYm9ubmllL3NyYy9saWIvc2tlbGV0b24vdW5rbm93bi1ib25lLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzdELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7OztBQWVqRCxNQUFNLE9BQU8sb0JBQW9CO0lBQy9CLFlBQTZCLEVBQXFCLEVBQWtCLEVBQXVCO1FBQTlELE9BQUUsR0FBRixFQUFFLENBQW1CO1FBQWtCLE9BQUUsR0FBRixFQUFFLENBQXFCO1FBQ3pGLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pDLEVBQUUsQ0FBQyxNQUFNLEVBQUUsQ0FBQztJQUNkLENBQUM7SUFFRCxRQUFRO1FBQ04sSUFBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUMxQixDQUFDOzhHQVJVLG9CQUFvQjtrR0FBcEIsb0JBQW9CLDJHQVZyQjsyQ0FDK0I7OzJGQVM5QixvQkFBb0I7a0JBYmhDLFNBQVM7K0JBQ0Usa0JBQWtCLGtCQUNaLENBQUMsYUFBYSxDQUFDLFlBQ3JCOzJDQUMrQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENoYW5nZURldGVjdG9yUmVmLCBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgSUJvbmVDb21wb25lbnQgfSBmcm9tIFwiLi9JQm9uZUNvbXBvbmVudFwiO1xyXG5pbXBvcnQgeyBCb25lIH0gZnJvbSAnLi4vZ2VuZXJhdGVkJztcclxuaW1wb3J0IHsgQm9uZURpcmVjdGl2ZSB9IGZyb20gJy4vYm9uZS5kaXJlY3RpdmUnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdib24tdW5rbm93bi1ib25lJyxcclxuICBob3N0RGlyZWN0aXZlczogW0JvbmVEaXJlY3RpdmVdLFxyXG4gIHRlbXBsYXRlOiBgPGgyPnVua25vd24gYm9uZSB7e2JkLmJvbmUudHlwZX19PC9oMj5cclxuICAgICAgICAgICAgIDxkaXY+e3tiZC5ib25lIHwganNvbn19PC9kaXY+YCxcclxuICBzdHlsZXM6IFtcclxuICAgIGA6aG9zdHtcclxuICAgICAgICBkaXNwbGF5OiBibG9jaztcclxuICAgICAgICBib3JkZXI6IDJweCBzb2xpZCByZWQ7XHJcbiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcclxuICAgIH1gXHJcbiAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgVW5rbm93bkJvbmVDb21wb25lbnQgaW1wbGVtZW50cyBJQm9uZUNvbXBvbmVudCB7XHJcbiAgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSBjZDogQ2hhbmdlRGV0ZWN0b3JSZWYsIHB1YmxpYyByZWFkb25seSBiZDogQm9uZURpcmVjdGl2ZTxCb25lPikge1xyXG4gICAgY29uc29sZS5sb2coJ0JvbmVEaXJlY3RpdmUnLCBiZCk7XHJcbiAgICBjZC5kZXRhY2goKTtcclxuICB9XHJcblxyXG4gIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgdGhpcy5jZC5kZXRlY3RDaGFuZ2VzKCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
package/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './lib/generated';
|
|
2
|
-
export * from './lib/core';
|
|
3
|
-
export * from './lib/localization';
|
|
4
|
-
export * from './lib/marcy-media';
|
|
5
|
-
export * from './lib/marcy-image';
|
|
6
|
-
export * from './lib/marcy-video';
|
|
7
|
-
export * from './lib/skeleton';
|
|
8
|
-
export * from './lib/bonnie.module';
|
package/lib/bonnie.module.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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 "./core/encode-uri.pipe";
|
|
12
|
-
import * as i11 from "./localization/localize.pipe";
|
|
13
|
-
import * as i12 from "@angular/common";
|
|
14
|
-
import * as i13 from "./skeleton/skeleton-anchor.directive";
|
|
15
|
-
import * as i14 from "./skeleton/bone.directive";
|
|
16
|
-
export declare class BonnieModule {
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BonnieModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BonnieModule, [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.EncodeURIComponentPipe, typeof i11.LocalizePipe, typeof i11.LocalizationIsNotEmptyPipe], [typeof i12.CommonModule, typeof i13.SkeletonAnchorDirective, typeof i14.BoneDirective], [typeof i12.CommonModule, typeof i10.EncodeURIComponentPipe, typeof i11.LocalizePipe, typeof i11.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 i13.SkeletonAnchorDirective, typeof i14.BoneDirective]>;
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BonnieModule>;
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DeviceServiceBase } from "./device.service.base";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DeviceService implements DeviceServiceBase {
|
|
4
|
-
readonly devicePixelRatio: number;
|
|
5
|
-
readonly isSSR: boolean;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DeviceService>;
|
|
8
|
-
}
|
package/lib/core/emptyBone.d.ts
DELETED
package/lib/core/emptyImage.d.ts
DELETED
package/lib/core/emptyVideo.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EncodeURIComponentPipe implements PipeTransform {
|
|
4
|
-
transform(value: string): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EncodeURIComponentPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EncodeURIComponentPipe, "encodeURIComponent", false>;
|
|
7
|
-
}
|
package/lib/core/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './src.directive';
|
|
2
|
-
export * from './MediaStatus';
|
|
3
|
-
export * from './MediaObjectFit';
|
|
4
|
-
export * from './device.service';
|
|
5
|
-
export * from './device.service.base';
|
|
6
|
-
export * from './intersection.component';
|
|
7
|
-
export * from './unsubscribe.service';
|
|
8
|
-
export * from './encode-uri.pipe';
|
|
9
|
-
export * from './pix-media-union';
|
|
10
|
-
export * from './emptyImage';
|
|
11
|
-
export * from './emptyVideo';
|
|
12
|
-
export * from './emptyBone';
|
|
13
|
-
export * from './emptyLocalizedString';
|
|
14
|
-
export * from './FileSrcFileMeta';
|
|
15
|
-
export * from './FileSrcImageMeta';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit, OnDestroy, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { UnsubscriberService } from './unsubscribe.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IntersectionComponent implements OnInit, OnDestroy {
|
|
5
|
-
private readonly _hostRef;
|
|
6
|
-
private readonly _u;
|
|
7
|
-
readonly intersected: EventEmitter<void>;
|
|
8
|
-
private readonly intersectionObserver?;
|
|
9
|
-
private readonly _intersectSubject;
|
|
10
|
-
private _session;
|
|
11
|
-
constructor(_hostRef: ElementRef, _u: UnsubscriberService, cd: ChangeDetectorRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
set session(newSession: any);
|
|
14
|
-
get intersectedOnce(): boolean;
|
|
15
|
-
private reset;
|
|
16
|
-
private onIntersection;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IntersectionComponent, "bon-intersection", never, { "session": { "alias": "session"; "required": false; }; }, { "intersected": "intersected"; }, never, ["*"], false, never>;
|
|
20
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as MCore from '../generated';
|
|
4
|
-
import { UnsubscriberService } from './unsubscribe.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SrcBaseDirective<T extends MCore.Image | MCore.Video> implements OnInit {
|
|
7
|
-
private readonly _u;
|
|
8
|
-
private readonly cd;
|
|
9
|
-
readonly ratioChange: EventEmitter<number>;
|
|
10
|
-
readonly srcChange: EventEmitter<T | undefined>;
|
|
11
|
-
private readonly _ratioSubject;
|
|
12
|
-
private readonly _queryChangeClearSubject;
|
|
13
|
-
private _data?;
|
|
14
|
-
constructor(_u: UnsubscriberService, cd: ChangeDetectorRef);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
get ratio(): number;
|
|
17
|
-
get data(): T | undefined;
|
|
18
|
-
set data(val: T | undefined);
|
|
19
|
-
private calcRatio;
|
|
20
|
-
watchMediaQueries(): Observable<MediaQueryListEvent>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SrcBaseDirective<any>, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SrcBaseDirective<any>, "[bonSrcBase]", never, {}, { "ratioChange": "ratioChange"; "srcChange": "srcChange"; }, never, never, false, never>;
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from "@angular/core";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class UnsubscriberService implements OnDestroy {
|
|
5
|
-
private readonly _destroy$;
|
|
6
|
-
readonly takeUntilDestroy: <T>(origin: Observable<T>) => Observable<T>;
|
|
7
|
-
ngOnDestroy(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UnsubscriberService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UnsubscriberService>;
|
|
10
|
-
}
|
package/lib/core/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as MCore from '../generated';
|
|
2
|
-
export declare const groupBy: <T, K extends string | number | symbol>(arr: T[], key: (i: T) => K) => Record<K, T[]>;
|
|
3
|
-
export declare function distinct<T>(value: T, index: number, array: T[]): boolean;
|
|
4
|
-
export declare function ascending(a: number, b: number): number;
|
|
5
|
-
export declare function ascendingT<T>(sel: (x: T) => number): (a: T, b: T) => number;
|
|
6
|
-
export declare function descending(a: number, b: number): number;
|
|
7
|
-
export declare function descendingT<T>(sel: (x: T) => number): (a: T, b: T) => number;
|
|
8
|
-
export declare function generateSizesString(sizes: MCore.SizesItem[]): string;
|
|
9
|
-
export declare function matchesMediaQuery(mediaQuery?: string): boolean;
|
|
10
|
-
export declare function isLocalUrlString(url: string): boolean;
|
package/lib/generated/bone.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 { FileMeta } from "./file-meta";
|
|
6
|
-
import { FileSrcBase } from "./file-src-base";
|
|
7
|
-
export interface FileSrc<T extends FileMeta> extends FileSrcBase {
|
|
8
|
-
meta: T;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 { IHaveDataRoute } from "./i-have-data-route";
|
|
6
|
-
export interface IHaveDataRouteWithData<T> extends IHaveDataRoute {
|
|
7
|
-
data: T;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 { ImageMeta } from "./image-meta";
|
|
7
|
-
import { SizesItem } from "./sizes-item";
|
|
8
|
-
export interface ImageSource extends MediaSource<ImageMeta> {
|
|
9
|
-
sizes: SizesItem[];
|
|
10
|
-
}
|
package/lib/generated/image.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 { ImageSource } from "./image-source";
|
|
7
|
-
export interface Image extends PixMedia {
|
|
8
|
-
readonly $type: 'image';
|
|
9
|
-
sources: ImageSource[];
|
|
10
|
-
type: 'image';
|
|
11
|
-
}
|
package/lib/generated/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
export * from './bone';
|
|
6
|
-
export * from './file-format';
|
|
7
|
-
export * from './file-meta';
|
|
8
|
-
export * from './file-src-base';
|
|
9
|
-
export * from './file-src';
|
|
10
|
-
export * from './i-equatable';
|
|
11
|
-
export * from './i-have-data-route-with-data';
|
|
12
|
-
export * from './i-have-data-route';
|
|
13
|
-
export * from './i-have-skeleton';
|
|
14
|
-
export * from './i-page';
|
|
15
|
-
export * from './image-meta';
|
|
16
|
-
export * from './image-source';
|
|
17
|
-
export * from './image';
|
|
18
|
-
export * from './localized-object';
|
|
19
|
-
export * from './localized-string';
|
|
20
|
-
export * from './media-source-base';
|
|
21
|
-
export * from './media-source';
|
|
22
|
-
export * from './open-graph-data';
|
|
23
|
-
export * from './page-base';
|
|
24
|
-
export * from './page-data';
|
|
25
|
-
export * from './page';
|
|
26
|
-
export * from './pix-media';
|
|
27
|
-
export * from './pix-meta';
|
|
28
|
-
export * from './publish-status';
|
|
29
|
-
export * from './sizes-item';
|
|
30
|
-
export * from './sizes-width-unit';
|
|
31
|
-
export * from './svg-meta';
|
|
32
|
-
export * from './video-meta';
|
|
33
|
-
export * from './video-source';
|
|
34
|
-
export * from './video';
|
|
35
|
-
export * from './view';
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { FileMeta } from "./file-meta";
|
|
6
|
-
import { MediaSourceBase } from "./media-source-base";
|
|
7
|
-
import { FileSrc } from "./file-src";
|
|
8
|
-
export interface MediaSource<TMeta extends FileMeta> extends MediaSourceBase {
|
|
9
|
-
srcSet: FileSrc<TMeta>[];
|
|
10
|
-
mediaQuery: string;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 { LocalizedString } from "./localized-string";
|
|
6
|
-
import { LocalizedObject } from "./localized-object";
|
|
7
|
-
import { FileSrc } from "./file-src";
|
|
8
|
-
import { ImageMeta } from "./image-meta";
|
|
9
|
-
export interface OpenGraphData {
|
|
10
|
-
title: LocalizedString;
|
|
11
|
-
description: LocalizedString;
|
|
12
|
-
image: LocalizedObject<FileSrc<ImageMeta>>;
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { PublishStatus } from "./publish-status";
|
|
6
|
-
import { LocalizedString } from "./localized-string";
|
|
7
|
-
import { OpenGraphData } from "./open-graph-data";
|
|
8
|
-
import { Bone } from "./bone";
|
|
9
|
-
export interface PageBase {
|
|
10
|
-
id: string;
|
|
11
|
-
url: string;
|
|
12
|
-
route: string;
|
|
13
|
-
order: number;
|
|
14
|
-
publishStatus: PublishStatus;
|
|
15
|
-
title: LocalizedString;
|
|
16
|
-
openGraph: OpenGraphData;
|
|
17
|
-
bones: Bone[];
|
|
18
|
-
children: PageBase[];
|
|
19
|
-
}
|
package/lib/generated/page.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 { PageData } from "./page-data";
|
|
6
|
-
import { PageBase } from "./page-base";
|
|
7
|
-
export interface Page<T extends PageData> extends PageBase {
|
|
8
|
-
data: T;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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 { MediaSourceBase } from "./media-source-base";
|
|
6
|
-
export interface PixMedia {
|
|
7
|
-
sources: MediaSourceBase[];
|
|
8
|
-
type: 'image' | 'video';
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 { FileMeta } from "./file-meta";
|
|
6
|
-
export interface PixMeta extends FileMeta {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
ratio: number;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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 SvgMeta extends PixMeta {
|
|
7
|
-
preciseWidth: number;
|
|
8
|
-
preciseHeight: number;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/generated/video.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
readonly $type: 'video';
|
|
9
|
-
sources: VideoSource[];
|
|
10
|
-
type: 'video';
|
|
11
|
-
}
|
package/lib/generated/view.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|