@delon/abc 13.2.0 → 13.2.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/auto-focus/auto-focus.directive.d.ts +3 -1
- package/esm2020/auto-focus/auto-focus.directive.mjs +9 -7
- package/esm2020/auto-focus/auto-focus.module.mjs +4 -4
- package/esm2020/avatar-list/avatar-list-item.component.mjs +3 -3
- package/esm2020/avatar-list/avatar-list.component.mjs +3 -3
- package/esm2020/avatar-list/avatar-list.module.mjs +4 -4
- package/esm2020/count-down/count-down.component.mjs +3 -3
- package/esm2020/count-down/count-down.module.mjs +4 -4
- package/esm2020/date-picker/date-picker.module.mjs +4 -4
- package/esm2020/date-picker/range-shortcut.component.mjs +3 -3
- package/esm2020/date-picker/range.directive.mjs +3 -3
- package/esm2020/down-file/down-file.directive.mjs +3 -3
- package/esm2020/down-file/down-file.module.mjs +4 -4
- package/esm2020/ellipsis/ellipsis.component.mjs +3 -3
- package/esm2020/ellipsis/ellipsis.module.mjs +4 -4
- package/esm2020/error-collect/error-collect.component.mjs +3 -3
- package/esm2020/error-collect/error-collect.module.mjs +4 -4
- package/esm2020/exception/exception.component.mjs +3 -3
- package/esm2020/exception/exception.module.mjs +4 -4
- package/esm2020/footer-toolbar/footer-toolbar.component.mjs +3 -3
- package/esm2020/footer-toolbar/footer-toolbar.module.mjs +4 -4
- package/esm2020/full-content/full-content-toggle.directive.mjs +3 -3
- package/esm2020/full-content/full-content.component.mjs +17 -15
- package/esm2020/full-content/full-content.module.mjs +4 -4
- package/esm2020/full-content/full-content.service.mjs +3 -3
- package/esm2020/global-footer/global-footer-item.component.mjs +3 -3
- package/esm2020/global-footer/global-footer.component.mjs +3 -3
- package/esm2020/global-footer/global-footer.module.mjs +4 -4
- package/esm2020/image/image.directive.mjs +3 -3
- package/esm2020/image/image.module.mjs +4 -4
- package/esm2020/let/let.directive.mjs +3 -3
- package/esm2020/let/let.module.mjs +4 -4
- package/esm2020/loading/loading.component.mjs +3 -3
- package/esm2020/loading/loading.module.mjs +4 -4
- package/esm2020/loading/loading.service.mjs +3 -3
- package/esm2020/lodop/lodop.module.mjs +4 -4
- package/esm2020/lodop/lodop.service.mjs +3 -3
- package/esm2020/media/media.component.mjs +25 -13
- package/esm2020/media/media.module.mjs +4 -4
- package/esm2020/media/media.service.mjs +6 -5
- package/esm2020/media/public_api.mjs +1 -2
- package/esm2020/notice-icon/notice-icon-tab.component.mjs +3 -3
- package/esm2020/notice-icon/notice-icon.component.mjs +3 -3
- package/esm2020/notice-icon/notice-icon.module.mjs +4 -4
- package/esm2020/onboarding/onboarding.component.mjs +3 -3
- package/esm2020/onboarding/onboarding.module.mjs +4 -4
- package/esm2020/onboarding/onboarding.service.mjs +3 -3
- package/esm2020/page-header/page-header.component.mjs +3 -3
- package/esm2020/page-header/page-header.module.mjs +4 -4
- package/esm2020/pdf/pdf.component.mjs +27 -13
- package/esm2020/pdf/pdf.module.mjs +4 -4
- package/esm2020/qr/qr.component.mjs +3 -3
- package/esm2020/qr/qr.module.mjs +4 -4
- package/esm2020/quick-menu/quick-menu.component.mjs +3 -3
- package/esm2020/quick-menu/quick-menu.module.mjs +4 -4
- package/esm2020/result/result.component.mjs +3 -3
- package/esm2020/result/result.module.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab-context.component.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab-context.service.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab.component.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab.module.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab.service.mjs +3 -3
- package/esm2020/se/se-container.component.mjs +6 -6
- package/esm2020/se/se.component.mjs +10 -12
- package/esm2020/se/se.module.mjs +4 -4
- package/esm2020/sg/sg-container.component.mjs +3 -3
- package/esm2020/sg/sg.component.mjs +3 -3
- package/esm2020/sg/sg.module.mjs +4 -4
- package/esm2020/st/st-column-source.mjs +3 -3
- package/esm2020/st/st-data-source.mjs +3 -3
- package/esm2020/st/st-export.mjs +3 -3
- package/esm2020/st/st-filter.component.mjs +3 -3
- package/esm2020/st/st-row.directive.mjs +6 -6
- package/esm2020/st/st-widget-host.directive.mjs +3 -3
- package/esm2020/st/st-widget.mjs +3 -3
- package/esm2020/st/st.component.mjs +6 -6
- package/esm2020/st/st.module.mjs +4 -4
- package/esm2020/sv/sv-container.component.mjs +6 -6
- package/esm2020/sv/sv-value.component.mjs +3 -3
- package/esm2020/sv/sv.component.mjs +3 -3
- package/esm2020/sv/sv.module.mjs +4 -4
- package/esm2020/tag-select/tag-select.component.mjs +3 -3
- package/esm2020/tag-select/tag-select.module.mjs +4 -4
- package/esm2020/xlsx/xlsx.directive.mjs +3 -3
- package/esm2020/xlsx/xlsx.module.mjs +4 -4
- package/esm2020/xlsx/xlsx.service.mjs +3 -3
- package/esm2020/zip/zip.module.mjs +4 -4
- package/esm2020/zip/zip.service.mjs +3 -3
- package/fesm2015/auto-focus.mjs +12 -10
- package/fesm2015/auto-focus.mjs.map +1 -1
- package/fesm2015/avatar-list.mjs +10 -10
- package/fesm2015/count-down.mjs +7 -7
- package/fesm2015/date-picker.mjs +10 -10
- package/fesm2015/down-file.mjs +7 -7
- package/fesm2015/ellipsis.mjs +7 -7
- package/fesm2015/error-collect.mjs +7 -7
- package/fesm2015/exception.mjs +7 -7
- package/fesm2015/footer-toolbar.mjs +7 -7
- package/fesm2015/full-content.mjs +26 -25
- package/fesm2015/full-content.mjs.map +1 -1
- package/fesm2015/global-footer.mjs +10 -10
- package/fesm2015/image.mjs +7 -7
- package/fesm2015/let.mjs +7 -7
- package/fesm2015/loading.mjs +10 -10
- package/fesm2015/lodop.mjs +7 -7
- package/fesm2015/media.mjs +32 -21
- package/fesm2015/media.mjs.map +1 -1
- package/fesm2015/notice-icon.mjs +10 -10
- package/fesm2015/onboarding.mjs +10 -10
- package/fesm2015/page-header.mjs +7 -7
- package/fesm2015/pdf.mjs +32 -17
- package/fesm2015/pdf.mjs.map +1 -1
- package/fesm2015/qr.mjs +7 -7
- package/fesm2015/quick-menu.mjs +7 -7
- package/fesm2015/result.mjs +7 -7
- package/fesm2015/reuse-tab.mjs +22 -22
- package/fesm2015/se.mjs +19 -21
- package/fesm2015/se.mjs.map +1 -1
- package/fesm2015/sg.mjs +10 -10
- package/fesm2015/st.mjs +34 -34
- package/fesm2015/sv.mjs +16 -16
- package/fesm2015/tag-select.mjs +7 -7
- package/fesm2015/xlsx.mjs +10 -10
- package/fesm2015/zip.mjs +7 -7
- package/fesm2020/auto-focus.mjs +12 -10
- package/fesm2020/auto-focus.mjs.map +1 -1
- package/fesm2020/avatar-list.mjs +10 -10
- package/fesm2020/count-down.mjs +7 -7
- package/fesm2020/date-picker.mjs +10 -10
- package/fesm2020/down-file.mjs +7 -7
- package/fesm2020/ellipsis.mjs +7 -7
- package/fesm2020/error-collect.mjs +7 -7
- package/fesm2020/exception.mjs +7 -7
- package/fesm2020/footer-toolbar.mjs +7 -7
- package/fesm2020/full-content.mjs +26 -24
- package/fesm2020/full-content.mjs.map +1 -1
- package/fesm2020/global-footer.mjs +10 -10
- package/fesm2020/image.mjs +7 -7
- package/fesm2020/let.mjs +7 -7
- package/fesm2020/loading.mjs +10 -10
- package/fesm2020/lodop.mjs +7 -7
- package/fesm2020/media.mjs +32 -21
- package/fesm2020/media.mjs.map +1 -1
- package/fesm2020/notice-icon.mjs +10 -10
- package/fesm2020/onboarding.mjs +10 -10
- package/fesm2020/page-header.mjs +7 -7
- package/fesm2020/pdf.mjs +31 -17
- package/fesm2020/pdf.mjs.map +1 -1
- package/fesm2020/qr.mjs +7 -7
- package/fesm2020/quick-menu.mjs +7 -7
- package/fesm2020/result.mjs +7 -7
- package/fesm2020/reuse-tab.mjs +22 -22
- package/fesm2020/se.mjs +19 -21
- package/fesm2020/se.mjs.map +1 -1
- package/fesm2020/sg.mjs +10 -10
- package/fesm2020/st.mjs +34 -34
- package/fesm2020/sv.mjs +16 -16
- package/fesm2020/tag-select.mjs +7 -7
- package/fesm2020/xlsx.mjs +10 -10
- package/fesm2020/zip.mjs +7 -7
- package/full-content/full-content.component.d.ts +1 -3
- package/media/media.component.d.ts +11 -12
- package/media/public_api.d.ts +0 -1
- package/package.json +5 -4
- package/pdf/pdf.component.d.ts +2 -1
- package/pdf/style/index.less +2 -2
- package/se/se.component.d.ts +1 -1
- package/esm2020/media/plyr.types.mjs +0 -2
- package/media/plyr.types.d.ts +0 -58
|
@@ -15,10 +15,8 @@ export declare class FullContentComponent implements AfterViewInit, OnInit, OnCh
|
|
|
15
15
|
static ngAcceptInputType_padding: NumberInput;
|
|
16
16
|
private bodyEl;
|
|
17
17
|
private inited;
|
|
18
|
-
private srv$?;
|
|
19
|
-
private route$?;
|
|
20
18
|
private id;
|
|
21
|
-
private
|
|
19
|
+
private destroy$;
|
|
22
20
|
_height: number;
|
|
23
21
|
fullscreen?: boolean;
|
|
24
22
|
hideTitle: boolean;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { Platform } from '@angular/cdk/platform';
|
|
2
2
|
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChange } from '@angular/core';
|
|
3
|
+
import type Plyr from 'plyr';
|
|
3
4
|
import { NumberInput } from '@delon/util/decorator';
|
|
4
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
5
|
import { MediaService } from './media.service';
|
|
6
|
-
import { PlyrMediaSource, PlyrMediaType } from './plyr.types';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export declare type MediaType = 'html5' | 'youtube' | 'video' | 'audio';
|
|
8
8
|
export declare class MediaComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
9
9
|
private el;
|
|
10
10
|
private renderer;
|
|
11
11
|
private srv;
|
|
12
|
-
ngZone
|
|
12
|
+
private ngZone;
|
|
13
13
|
private platform;
|
|
14
14
|
static ngAcceptInputType_delay: NumberInput;
|
|
15
|
-
private _p
|
|
16
|
-
private videoEl
|
|
17
|
-
private
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
options: NzSafeAny;
|
|
15
|
+
private _p?;
|
|
16
|
+
private videoEl?;
|
|
17
|
+
private destroy$;
|
|
18
|
+
type: MediaType;
|
|
19
|
+
source?: string | Plyr.SourceInfo;
|
|
20
|
+
options?: Plyr.Options;
|
|
22
21
|
delay: number;
|
|
23
|
-
readonly ready: EventEmitter<
|
|
24
|
-
get player():
|
|
22
|
+
readonly ready: EventEmitter<Plyr>;
|
|
23
|
+
get player(): Plyr | undefined | null;
|
|
25
24
|
constructor(el: ElementRef<HTMLElement>, renderer: Renderer2, srv: MediaService, ngZone: NgZone, platform: Platform);
|
|
26
25
|
private initDelay;
|
|
27
26
|
private init;
|
package/media/public_api.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/abc",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.1",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"file-saver": "^2.0.5",
|
|
26
26
|
"jszip": "^3.7.1",
|
|
27
27
|
"xlsx": "^0.17.4",
|
|
28
|
+
"plyr": "^3.6.12",
|
|
28
29
|
"ngx-countdown": "^13.0.0",
|
|
29
|
-
"@delon/theme": "^13.2.
|
|
30
|
-
"@delon/util": "^13.2.
|
|
31
|
-
"@delon/acl": "^13.2.
|
|
30
|
+
"@delon/theme": "^13.2.1",
|
|
31
|
+
"@delon/util": "^13.2.1",
|
|
32
|
+
"@delon/acl": "^13.2.1",
|
|
32
33
|
"tslib": "^2.3.0"
|
|
33
34
|
},
|
|
34
35
|
"module": "fesm2015/abc.mjs",
|
package/pdf/pdf.component.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class PdfComponent implements OnChanges, AfterViewInit, OnDestroy
|
|
|
22
22
|
static ngAcceptInputType_disableTextLayer: BooleanInput;
|
|
23
23
|
static ngAcceptInputType_removePageBorders: BooleanInput;
|
|
24
24
|
inited: boolean;
|
|
25
|
-
private
|
|
25
|
+
private destroy$;
|
|
26
26
|
private lib;
|
|
27
27
|
private _pdf;
|
|
28
28
|
private loadingTask;
|
|
@@ -74,6 +74,7 @@ export declare class PdfComponent implements OnChanges, AfterViewInit, OnDestroy
|
|
|
74
74
|
private resetDoc;
|
|
75
75
|
private cleanDoc;
|
|
76
76
|
private render;
|
|
77
|
+
private timeExec;
|
|
77
78
|
private updateSize;
|
|
78
79
|
private getScale;
|
|
79
80
|
private destroy;
|
package/pdf/style/index.less
CHANGED
package/se/se.component.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
|
|
|
16
16
|
static ngAcceptInputType_noColon: BooleanInput;
|
|
17
17
|
static ngAcceptInputType_hideLabel: BooleanInput;
|
|
18
18
|
private el;
|
|
19
|
-
private
|
|
19
|
+
private destroy$;
|
|
20
20
|
private readonly ngModel?;
|
|
21
21
|
private readonly formControlName?;
|
|
22
22
|
private readonly contentElement;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx5ci50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FiYy9tZWRpYS9wbHlyLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBQbHlyTWVkaWFUeXBlID0gJ2F1ZGlvJyB8ICd2aWRlbyc7XG5leHBvcnQgdHlwZSBQbHlyU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qL1xuICBraW5kOiBQbHlyVHJhY2tLaW5kO1xuICAvKipcbiAgICogSW5kaWNhdGVzIGEgdXNlci1yZWFkYWJsZSB0aXRsZSBmb3IgdGhlIHRyYWNrXG4gICAqL1xuICBsYWJlbDogc3RyaW5nO1xuICAvKipcbiAgICogVGhlIGxhbmd1YWdlIG9mIHRoZSB0cmFjayB0ZXh0IGRhdGEuIEl0IG11c3QgYmUgYSB2YWxpZCBCQ1AgNDcgbGFuZ3VhZ2UgdGFnLiBJZiB0aGUga2luZCBhdHRyaWJ1dGUgaXMgc2V0IHRvIHN1YnRpdGxlcywgdGhlbiBzcmNsYW5nIG11c3QgYmUgZGVmaW5lZC5cbiAgICovXG4gIHNyY0xhbmc/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBUaGUgVVJMIG9mIHRoZSB0cmFjayAoLnZ0dCBmaWxlKS5cbiAgICovXG4gIHNyYzogc3RyaW5nO1xuXG4gIGRlZmF1bHQ/OiBib29sZWFuO1xufVxuIl19
|
package/media/plyr.types.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export declare type PlyrMediaType = 'audio' | 'video';
|
|
2
|
-
export declare type PlyrProvider = 'html5' | 'youtube' | 'vimeo';
|
|
3
|
-
export interface PlyrMediaSource {
|
|
4
|
-
/**
|
|
5
|
-
* Note: YouTube and Vimeo are currently not supported as audio sources.
|
|
6
|
-
*/
|
|
7
|
-
type: PlyrMediaType;
|
|
8
|
-
/**
|
|
9
|
-
* Title of the new media. Used for the aria-label attribute on the play button, and outer container. YouTube and Vimeo are populated automatically.
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* This is an array of sources. For HTML5 media, the properties of this object are mapped directly to HTML attributes so more can be added to the object if required.
|
|
14
|
-
*/
|
|
15
|
-
sources: PlyrSource[];
|
|
16
|
-
/**
|
|
17
|
-
* The URL for the poster image (HTML5 video only).
|
|
18
|
-
*/
|
|
19
|
-
poster?: string;
|
|
20
|
-
/**
|
|
21
|
-
* An array of track objects. Each element in the array is mapped directly to a track element and any keys mapped directly to HTML attributes so as in the example above,
|
|
22
|
-
* it will render as <track kind="captions" label="English" srclang="en" src="https://cdn.selz.com/plyr/1.0/example_captions_en.vtt" default> and similar for the French version.
|
|
23
|
-
* Booleans are converted to HTML5 value-less attributes.
|
|
24
|
-
*/
|
|
25
|
-
tracks?: PlyrTrack[];
|
|
26
|
-
}
|
|
27
|
-
export interface PlyrSource {
|
|
28
|
-
/**
|
|
29
|
-
* The URL of the media file (or YouTube/Vimeo URL).
|
|
30
|
-
*/
|
|
31
|
-
src: string;
|
|
32
|
-
/**
|
|
33
|
-
* The MIME type of the media file (if HTML5).
|
|
34
|
-
*/
|
|
35
|
-
type?: string;
|
|
36
|
-
provider?: PlyrProvider;
|
|
37
|
-
size?: number;
|
|
38
|
-
}
|
|
39
|
-
export declare type PlyrTrackKind = 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
|
|
40
|
-
export interface PlyrTrack {
|
|
41
|
-
/**
|
|
42
|
-
* Indicates how the text track is meant to be used
|
|
43
|
-
*/
|
|
44
|
-
kind: PlyrTrackKind;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates a user-readable title for the track
|
|
47
|
-
*/
|
|
48
|
-
label: string;
|
|
49
|
-
/**
|
|
50
|
-
* The language of the track text data. It must be a valid BCP 47 language tag. If the kind attribute is set to subtitles, then srclang must be defined.
|
|
51
|
-
*/
|
|
52
|
-
srcLang?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The URL of the track (.vtt file).
|
|
55
|
-
*/
|
|
56
|
-
src: string;
|
|
57
|
-
default?: boolean;
|
|
58
|
-
}
|