@delon/abc 13.0.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.
Files changed (182) hide show
  1. package/README.md +1 -1
  2. package/auto-focus/auto-focus.directive.d.ts +3 -1
  3. package/ellipsis/ellipsis.component.d.ts +1 -0
  4. package/error-collect/error-collect.component.d.ts +4 -2
  5. package/esm2020/auto-focus/auto-focus.directive.mjs +9 -7
  6. package/esm2020/auto-focus/auto-focus.module.mjs +4 -4
  7. package/esm2020/avatar-list/avatar-list-item.component.mjs +3 -3
  8. package/esm2020/avatar-list/avatar-list.component.mjs +3 -3
  9. package/esm2020/avatar-list/avatar-list.module.mjs +4 -4
  10. package/esm2020/count-down/count-down.component.mjs +3 -3
  11. package/esm2020/count-down/count-down.module.mjs +4 -4
  12. package/esm2020/date-picker/date-picker.module.mjs +4 -4
  13. package/esm2020/date-picker/range-shortcut.component.mjs +3 -3
  14. package/esm2020/date-picker/range.directive.mjs +3 -3
  15. package/esm2020/down-file/down-file.directive.mjs +3 -3
  16. package/esm2020/down-file/down-file.module.mjs +4 -4
  17. package/esm2020/ellipsis/ellipsis.component.mjs +8 -5
  18. package/esm2020/ellipsis/ellipsis.module.mjs +4 -4
  19. package/esm2020/error-collect/error-collect.component.mjs +12 -8
  20. package/esm2020/error-collect/error-collect.module.mjs +4 -4
  21. package/esm2020/exception/exception.component.mjs +3 -3
  22. package/esm2020/exception/exception.module.mjs +4 -4
  23. package/esm2020/footer-toolbar/footer-toolbar.component.mjs +3 -3
  24. package/esm2020/footer-toolbar/footer-toolbar.module.mjs +4 -4
  25. package/esm2020/full-content/full-content-toggle.directive.mjs +3 -3
  26. package/esm2020/full-content/full-content.component.mjs +17 -15
  27. package/esm2020/full-content/full-content.module.mjs +4 -4
  28. package/esm2020/full-content/full-content.service.mjs +3 -3
  29. package/esm2020/global-footer/global-footer-item.component.mjs +3 -3
  30. package/esm2020/global-footer/global-footer.component.mjs +3 -3
  31. package/esm2020/global-footer/global-footer.module.mjs +4 -4
  32. package/esm2020/image/image.directive.mjs +3 -3
  33. package/esm2020/image/image.module.mjs +4 -4
  34. package/esm2020/let/let.directive.mjs +3 -3
  35. package/esm2020/let/let.module.mjs +4 -4
  36. package/esm2020/loading/loading.component.mjs +3 -3
  37. package/esm2020/loading/loading.module.mjs +4 -4
  38. package/esm2020/loading/loading.service.mjs +3 -3
  39. package/esm2020/lodop/lodop.module.mjs +4 -4
  40. package/esm2020/lodop/lodop.service.mjs +3 -3
  41. package/esm2020/media/media.component.mjs +25 -13
  42. package/esm2020/media/media.module.mjs +4 -4
  43. package/esm2020/media/media.service.mjs +6 -5
  44. package/esm2020/media/public_api.mjs +1 -2
  45. package/esm2020/notice-icon/notice-icon-tab.component.mjs +3 -3
  46. package/esm2020/notice-icon/notice-icon.component.mjs +3 -3
  47. package/esm2020/notice-icon/notice-icon.module.mjs +4 -4
  48. package/esm2020/onboarding/onboarding.component.mjs +3 -3
  49. package/esm2020/onboarding/onboarding.module.mjs +4 -4
  50. package/esm2020/onboarding/onboarding.service.mjs +3 -3
  51. package/esm2020/page-header/page-header.component.mjs +3 -3
  52. package/esm2020/page-header/page-header.module.mjs +4 -4
  53. package/esm2020/pdf/pdf.component.mjs +27 -13
  54. package/esm2020/pdf/pdf.module.mjs +4 -4
  55. package/esm2020/qr/qr.component.mjs +5 -5
  56. package/esm2020/qr/qr.module.mjs +4 -4
  57. package/esm2020/quick-menu/quick-menu.component.mjs +3 -3
  58. package/esm2020/quick-menu/quick-menu.module.mjs +4 -4
  59. package/esm2020/result/result.component.mjs +3 -3
  60. package/esm2020/result/result.module.mjs +4 -4
  61. package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +3 -3
  62. package/esm2020/reuse-tab/reuse-tab-context.component.mjs +3 -3
  63. package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +3 -3
  64. package/esm2020/reuse-tab/reuse-tab-context.service.mjs +3 -3
  65. package/esm2020/reuse-tab/reuse-tab.component.mjs +3 -3
  66. package/esm2020/reuse-tab/reuse-tab.module.mjs +4 -4
  67. package/esm2020/reuse-tab/reuse-tab.service.mjs +3 -3
  68. package/esm2020/se/se-container.component.mjs +6 -6
  69. package/esm2020/se/se.component.mjs +11 -13
  70. package/esm2020/se/se.module.mjs +4 -4
  71. package/esm2020/sg/sg-container.component.mjs +3 -3
  72. package/esm2020/sg/sg.component.mjs +3 -3
  73. package/esm2020/sg/sg.module.mjs +4 -4
  74. package/esm2020/st/st-column-source.mjs +3 -3
  75. package/esm2020/st/st-data-source.mjs +3 -3
  76. package/esm2020/st/st-export.mjs +3 -3
  77. package/esm2020/st/st-filter.component.mjs +3 -3
  78. package/esm2020/st/st-row.directive.mjs +6 -6
  79. package/esm2020/st/st-widget-host.directive.mjs +3 -3
  80. package/esm2020/st/st-widget.mjs +3 -3
  81. package/esm2020/st/st.component.mjs +6 -6
  82. package/esm2020/st/st.module.mjs +4 -4
  83. package/esm2020/sv/sv-container.component.mjs +6 -6
  84. package/esm2020/sv/sv-value.component.mjs +3 -3
  85. package/esm2020/sv/sv.component.mjs +3 -3
  86. package/esm2020/sv/sv.module.mjs +4 -4
  87. package/esm2020/tag-select/tag-select.component.mjs +3 -3
  88. package/esm2020/tag-select/tag-select.module.mjs +4 -4
  89. package/esm2020/xlsx/xlsx.directive.mjs +3 -3
  90. package/esm2020/xlsx/xlsx.module.mjs +4 -4
  91. package/esm2020/xlsx/xlsx.service.mjs +3 -3
  92. package/esm2020/zip/zip.module.mjs +4 -4
  93. package/esm2020/zip/zip.service.mjs +3 -3
  94. package/fesm2015/auto-focus.mjs +12 -10
  95. package/fesm2015/auto-focus.mjs.map +1 -1
  96. package/fesm2015/avatar-list.mjs +10 -10
  97. package/fesm2015/count-down.mjs +7 -7
  98. package/fesm2015/date-picker.mjs +10 -10
  99. package/fesm2015/down-file.mjs +7 -7
  100. package/fesm2015/ellipsis.mjs +11 -8
  101. package/fesm2015/ellipsis.mjs.map +1 -1
  102. package/fesm2015/error-collect.mjs +15 -11
  103. package/fesm2015/error-collect.mjs.map +1 -1
  104. package/fesm2015/exception.mjs +7 -7
  105. package/fesm2015/footer-toolbar.mjs +7 -7
  106. package/fesm2015/full-content.mjs +26 -25
  107. package/fesm2015/full-content.mjs.map +1 -1
  108. package/fesm2015/global-footer.mjs +10 -10
  109. package/fesm2015/image.mjs +7 -7
  110. package/fesm2015/let.mjs +7 -7
  111. package/fesm2015/loading.mjs +10 -10
  112. package/fesm2015/lodop.mjs +7 -7
  113. package/fesm2015/media.mjs +32 -21
  114. package/fesm2015/media.mjs.map +1 -1
  115. package/fesm2015/notice-icon.mjs +10 -10
  116. package/fesm2015/onboarding.mjs +10 -10
  117. package/fesm2015/page-header.mjs +7 -7
  118. package/fesm2015/pdf.mjs +32 -17
  119. package/fesm2015/pdf.mjs.map +1 -1
  120. package/fesm2015/qr.mjs +8 -8
  121. package/fesm2015/qr.mjs.map +1 -1
  122. package/fesm2015/quick-menu.mjs +7 -7
  123. package/fesm2015/result.mjs +7 -7
  124. package/fesm2015/reuse-tab.mjs +22 -22
  125. package/fesm2015/se.mjs +20 -22
  126. package/fesm2015/se.mjs.map +1 -1
  127. package/fesm2015/sg.mjs +10 -10
  128. package/fesm2015/st.mjs +34 -34
  129. package/fesm2015/sv.mjs +16 -16
  130. package/fesm2015/tag-select.mjs +7 -7
  131. package/fesm2015/xlsx.mjs +10 -10
  132. package/fesm2015/zip.mjs +7 -7
  133. package/fesm2020/auto-focus.mjs +12 -10
  134. package/fesm2020/auto-focus.mjs.map +1 -1
  135. package/fesm2020/avatar-list.mjs +10 -10
  136. package/fesm2020/count-down.mjs +7 -7
  137. package/fesm2020/date-picker.mjs +10 -10
  138. package/fesm2020/down-file.mjs +7 -7
  139. package/fesm2020/ellipsis.mjs +11 -8
  140. package/fesm2020/ellipsis.mjs.map +1 -1
  141. package/fesm2020/error-collect.mjs +15 -11
  142. package/fesm2020/error-collect.mjs.map +1 -1
  143. package/fesm2020/exception.mjs +7 -7
  144. package/fesm2020/footer-toolbar.mjs +7 -7
  145. package/fesm2020/full-content.mjs +26 -24
  146. package/fesm2020/full-content.mjs.map +1 -1
  147. package/fesm2020/global-footer.mjs +10 -10
  148. package/fesm2020/image.mjs +7 -7
  149. package/fesm2020/let.mjs +7 -7
  150. package/fesm2020/loading.mjs +10 -10
  151. package/fesm2020/lodop.mjs +7 -7
  152. package/fesm2020/media.mjs +32 -21
  153. package/fesm2020/media.mjs.map +1 -1
  154. package/fesm2020/notice-icon.mjs +10 -10
  155. package/fesm2020/onboarding.mjs +10 -10
  156. package/fesm2020/page-header.mjs +7 -7
  157. package/fesm2020/pdf.mjs +31 -17
  158. package/fesm2020/pdf.mjs.map +1 -1
  159. package/fesm2020/qr.mjs +8 -8
  160. package/fesm2020/qr.mjs.map +1 -1
  161. package/fesm2020/quick-menu.mjs +7 -7
  162. package/fesm2020/result.mjs +7 -7
  163. package/fesm2020/reuse-tab.mjs +22 -22
  164. package/fesm2020/se.mjs +20 -22
  165. package/fesm2020/se.mjs.map +1 -1
  166. package/fesm2020/sg.mjs +10 -10
  167. package/fesm2020/st.mjs +34 -34
  168. package/fesm2020/sv.mjs +16 -16
  169. package/fesm2020/tag-select.mjs +7 -7
  170. package/fesm2020/xlsx.mjs +10 -10
  171. package/fesm2020/zip.mjs +7 -7
  172. package/full-content/full-content.component.d.ts +1 -3
  173. package/media/media.component.d.ts +11 -12
  174. package/media/public_api.d.ts +0 -1
  175. package/package.json +5 -4
  176. package/pdf/pdf.component.d.ts +2 -1
  177. package/pdf/style/index.less +2 -2
  178. package/qr/qr.component.d.ts +1 -1
  179. package/se/se.component.d.ts +1 -1
  180. package/se/style/index.less +2 -0
  181. package/esm2020/media/plyr.types.mjs +0 -2
  182. package/media/plyr.types.d.ts +0 -58
package/fesm2020/zip.mjs CHANGED
@@ -104,22 +104,22 @@ class ZipService {
104
104
  });
105
105
  }
106
106
  }
107
- ZipService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
108
- ZipService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, providedIn: 'root' });
107
+ ZipService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ ZipService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipService, providedIn: 'root' });
109
109
  __decorate([
110
110
  ZoneOutside()
111
111
  ], ZipService.prototype, "read", null);
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipService, decorators: [{
113
113
  type: Injectable,
114
114
  args: [{ providedIn: 'root' }]
115
115
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.LazyService }, { type: i3.AlainConfigService }, { type: i0.NgZone }]; }, propDecorators: { read: [] } });
116
116
 
117
117
  class ZipModule {
118
118
  }
119
- ZipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
120
- ZipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, imports: [CommonModule] });
121
- ZipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, imports: [[CommonModule]] });
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, decorators: [{
119
+ ZipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
120
+ ZipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipModule, imports: [CommonModule] });
121
+ ZipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipModule, imports: [[CommonModule]] });
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ZipModule, decorators: [{
123
123
  type: NgModule,
124
124
  args: [{
125
125
  imports: [CommonModule]
@@ -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 scroll$;
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: NgZone;
12
+ private ngZone;
13
13
  private platform;
14
14
  static ngAcceptInputType_delay: NumberInput;
15
- private _p;
16
- private videoEl;
17
- private time;
18
- private notify$;
19
- type: PlyrMediaType;
20
- source?: string | PlyrMediaSource;
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<any>;
24
- get player(): NzSafeAny;
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;
@@ -1,4 +1,3 @@
1
1
  export * from './media.component';
2
2
  export * from './media.service';
3
3
  export * from './media.module';
4
- export * from './plyr.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/abc",
3
- "version": "13.0.0",
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.0.0",
30
- "@delon/util": "^13.0.0",
31
- "@delon/acl": "^13.0.0",
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",
@@ -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 unsubscribe$;
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;
@@ -3,8 +3,8 @@
3
3
 
4
4
  @{pdf-prefix} {
5
5
  &-container {
6
- position: relative;
7
- display: block;
6
+ position: absolute;
7
+ width: 100%;
8
8
  height: 100%;
9
9
  overflow-x: auto;
10
10
  -webkit-overflow-scrolling: touch;
@@ -25,7 +25,7 @@ export declare class QRComponent implements OnChanges, AfterViewInit, OnDestroy
25
25
  mime?: string;
26
26
  padding?: number;
27
27
  size?: number;
28
- value: string;
28
+ value: string | (() => string);
29
29
  delay?: number;
30
30
  readonly change: EventEmitter<string>;
31
31
  constructor(cdr: ChangeDetectorRef, configSrv: AlainConfigService, lazySrv: LazyService, platform: Platform);
@@ -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 unsubscribe$;
19
+ private destroy$;
20
20
  private readonly ngModel?;
21
21
  private readonly formControlName?;
22
22
  private readonly contentElement;
@@ -14,6 +14,8 @@
14
14
  }
15
15
 
16
16
  &__item {
17
+ transition: none;
18
+
17
19
  &:last-child {
18
20
  margin-bottom: 0;
19
21
  padding-bottom: 0;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx5ci50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FiYy9tZWRpYS9wbHlyLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBQbHlyTWV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WNhdGVzIGhvdyB0aGUgdGV4dCB0cmFjayBpcyBtZWFudCB0byBiZSB1c2VkXG4gICAqL1xuICBraW5kOiBQbHlyVHJhY2tLaW5kO1xuICAvKipcbiAgICogSW5kaWNhdGVzIGEgdXNlci1yZWFkYWJsZSB0aXRsZSBmb3IgdGhlIHRyYWNrXG4gICAqL1xuICBsYWJlbDogc3RyaW5nO1xuICAvKipcbiAgICogVGhlIGxhbmd1YWdlIG9mIHRoZSB0cmFjayB0ZXh0IGRhdGEuIEl0IG11c3QgYmUgYSB2YWxpZCBCQ1AgNDcgbGFuZ3VhZ2UgdGFnLiBJZiB0aGUga2luZCBhdHRyaWJ1dGUgaXMgc2V0IHRvIHN1YnRpdGxlcywgdGhlbiBzcmNsYW5nIG11c3QgYmUgZGVmaW5lZC5cbiAgICovXG4gIHNyY0xhbmc/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBUaGUgVVJMIG9mIHRoZSB0cmFjayAoLnZ0dCBmaWxlKS5cbiAgICovXG4gIHNyYzogc3RyaW5nO1xuXG4gIGRlZmF1bHQ/OiBib29sZWFuO1xufVxuIl19
@@ -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
- }