entcore 4.5.0-dev.2 → 4.5.0-dev.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entcore",
3
- "version": "4.5.0-dev.2",
3
+ "version": "4.5.0-dev.5",
4
4
  "description": "",
5
5
  "main": "gulpfile.js",
6
6
  "types": "./types/src/ts/entcore.d.ts",
@@ -45,6 +45,6 @@
45
45
  </div>
46
46
  <div class="row media-library-toolbar">
47
47
  <em class="six cell small-text"><i18n>medialibrary.images.editable.formats</i18n></em>
48
- <button class="right-magnet" ng-click="confirmImport()" type="button"><i18n>import</i18n></button>
48
+ <button class="right-magnet" ng-click="confirmImport()" ng-disabled="!canConfirmImport()" type="button"><i18n>import</i18n></button>
49
49
  <button class="right-magnet cancel" ng-click="cancelUpload()" type="button"><i18n>cancel</i18n></button>
50
50
  </div>
@@ -18,26 +18,38 @@
18
18
  ~
19
19
  -->
20
20
 
21
- <div class="row media-library">
22
- <div class="drop-zone import-files">
23
- <article class="drop flex-row align-center">
24
- <i class="two cloud-upload"></i>
25
- <div class="ten help">
26
- <em><i18n>medialibrary.drop.help2</i18n></em>
27
- </div>
28
- </article>
29
- <article class="default flex-row align-center absolute-position">
30
- <div class="three select-file">
31
- <div class="hidden-content">
32
- <input class="upload-input" type="file" multiple files-input-change="importFiles()" ng-model="upload.files" />
33
- </div>
34
- <button class="file-button no-margin" translate content="library.file.choose" ng-click="triggerIpnutFileClick($event)"></button>
35
- </div>
36
- <i class="two cloud-upload"></i>
37
- <div class="seven help">
38
- <em><i18n>medialibrary.drop.help</i18n></em>
39
- </div>
40
- </article>
41
-
42
- </div>
43
- </div>
21
+ <div class="row media-library">
22
+ <div class="drop-zone import-files">
23
+ <article class="drop flex-row align-center">
24
+ <i class="two cloud-upload"></i>
25
+ <div class="ten help">
26
+ <em><i18n>medialibrary.drop.help2</i18n></em>
27
+ </div>
28
+ </article>
29
+ <article class="default flex-row align-center absolute-position">
30
+ <div class="three select-file">
31
+ <div class="hidden-content">
32
+ <input
33
+ class="upload-input"
34
+ type="file"
35
+ multiple="multiple"
36
+ files-input-change="importFiles()"
37
+ accept="[[display.acceptType]]"
38
+ ng-model="upload.files"
39
+ />
40
+ </div>
41
+ <button
42
+ class="file-button no-margin"
43
+ translate
44
+ content="library.file.choose"
45
+ ng-click="triggerIpnutFileClick($event)"
46
+ ></button>
47
+ </div>
48
+ <i class="two cloud-upload"></i>
49
+ <div class="seven help">
50
+ <em><i18n>medialibrary.drop.help</i18n></em>
51
+ </div>
52
+ </article>
53
+ </div>
54
+ </div>
55
+
@@ -37,6 +37,7 @@
37
37
  <input
38
38
  class="upload-input"
39
39
  type="file"
40
+ multiple="multiple"
40
41
  files-input-change="importFiles()"
41
42
  accept="video/avi, video/msvideo, video/x-msvideo, video/quicktime, video/x-quicktime, video/mp4, .mov, .avi, .mp4"
42
43
  ng-model="upload.files" />
@@ -10,8 +10,8 @@ export interface Embedder {
10
10
  export declare const embedderService: {
11
11
  _providers: Embedder[];
12
12
  getProviders(): Promise<Embedder[]>;
13
- getHtmlForVideoStream(document: Element): string;
14
- getHtmlForVideoStreams(documents: Element[]): string;
13
+ getHtmlForVideoStream(document: Element, visibility: "protected" | "public" | "external"): string;
14
+ getHtmlForVideoStreams(documents: Element[], visibility: "protected" | "public" | "external"): string;
15
15
  getHtmlForUrl(url: string, returnDefault?: boolean): Promise<string>;
16
16
  getHtmlForProvider(embedder: Embedder, url: string): string;
17
17
  };