@christianriedl/media 1.0.64 → 1.0.65

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/dist/iMedia.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Ref } from '@christianriedl/utils';
2
1
  export declare enum EMediaType {
3
2
  Audio = 0,
4
3
  Video = 1,
@@ -152,7 +151,7 @@ export interface IPictureFile extends IMediaFile {
152
151
  Orientation: EOrientation;
153
152
  ThumbHeight: number;
154
153
  ThumbWidth: number;
155
- selected?: Ref<boolean>;
154
+ selected?: boolean;
156
155
  }
157
156
  export interface IAudioFile extends IMediaFile {
158
157
  BitRate: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -37,14 +37,14 @@
37
37
  return;
38
38
  }
39
39
  folder.value = await mediaService.getPhotos(folder.value);
40
- for (var i = 0; i < folder.value.length; i++)
41
- folder.value[i].selected = ref(true);
40
+ for (var i = 0; i < folder.value.Files.length; i++)
41
+ folder.value.Files[i].selected = false;
42
42
  photos.value.splice(0, photos.value.length, ...folder.value.Files as IPictureFile[]);
43
43
  console.log(photos.value.length);
44
44
  })
45
45
  function onClick(item: IPictureFile) {
46
46
  if (selectMode.value)
47
- item.selected.value = true;
47
+ item.selected = true;
48
48
  else
49
49
  router.push({ path: 'photoalbum', query: { id: folder.value.DLNAID, start: item.DLNAID } });
50
50
  }
@@ -52,7 +52,7 @@
52
52
  const picIds: string[] = [];
53
53
  for (var i = 0; i < photos.value.length; i++) {
54
54
  const photo = photos.value[i];
55
- if (photo.selected.value)
55
+ if (photo.selected)
56
56
  picIds.push(photo.DLNAID);
57
57
  }
58
58
  const guid = Helper.generateUUID();
@@ -84,7 +84,7 @@
84
84
  <h2 px-1>{{folder.Name}}</h2>
85
85
  </v-col>
86
86
  <v-col cols="3">
87
- <v-checkbox v-model="selectMode" label="Select Fotos"></v-checkbox>
87
+ <v-checkbox v-model="selectMode" hide-details label="Select Fotos"></v-checkbox>
88
88
  </v-col>
89
89
  <v-col cols="1">
90
90
  <v-btn icon="$share" @click="onShare" variant="text"></v-btn>
@@ -92,7 +92,7 @@
92
92
  </v-row>
93
93
  <v-row dense align="center">
94
94
  <v-col :cols="numColsPerImage" align="center" v-for="(image, index) in photos" :key="index">
95
- <img :src="getThumbnailUrl(image)" :height="height" @click="onClick(image) :class="{ selected: image.selected }" />
95
+ <img :src="getThumbnailUrl(image)" :height="height" @click="onClick(image)" :class="{selected: image.selected}" />
96
96
  </v-col>
97
97
  </v-row>
98
98
  </v-container>