@christianriedl/media 1.0.199 → 1.0.200

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": "@christianriedl/media",
3
- "version": "1.0.199",
3
+ "version": "1.0.200",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -1,12 +1,14 @@
1
1
  <script setup lang="ts">
2
2
  import { StyleValue } from 'vue';
3
3
  import { IPlace } from '@christianriedl/media';
4
- const props = defineProps<{ place: IPlace, height: number }>();
4
+ const props = defineProps<{ place: IPlace, height: number, ismobile: boolean }>();
5
5
  const emits = defineEmits<{
6
6
  (e: 'select', place: IPlace, hinten: boolean): void
7
7
  }>();
8
8
  const place: IPlace = props.place;
9
9
  const heightStyle: StyleValue = { height: props.height + "px" };
10
+ const vorne = { vorne: !props.ismobile, vorneM: props.ismobile };
11
+ const hinten = { hinten: !props.ismobile, hintenM: props.ismobile };
10
12
 
11
13
  function selectVorne () {
12
14
  emits('select', place, false);
@@ -19,10 +21,10 @@
19
21
  <template>
20
22
  <v-row dense :class="[place.color,'place']" :style="heightStyle" >
21
23
  <v-col v-if="place.vorne" cols="12" @click="selectVorne">
22
- <p class="vorne">{{place.vorne}}<br>{{place.vorne2}}</p>
24
+ <p :class="vorne">{{place.vorne}}<br>{{place.vorne2}}</p>
23
25
  </v-col>
24
26
  <v-col v-if="place.hinten" cols="12" @click="selectHinten" >
25
- <p class="hinten">{{place.hinten}}<br>{{place.hinten2}}</p>
27
+ <p :class="hinten">{{place.hinten}}<br>{{place.hinten2}}</p>
26
28
  </v-col>
27
29
  </v-row>
28
30
  <v-divider></v-divider>
@@ -44,4 +46,14 @@
44
46
  font-family: monospace;
45
47
  background-color: lightgrey;
46
48
  }
49
+ .vorneM {
50
+ font-size: small;
51
+ font-family: monospace;
52
+ background-color: white;
53
+ }
54
+ .hintenM {
55
+ font-size: small;
56
+ font-family: monospace;
57
+ background-color: lightgrey;
58
+ }
47
59
  </style>
@@ -405,10 +405,13 @@
405
405
  <v-defaults-provider :defaults="{'VBtn':{'size':'large','variant':'flat'}}">
406
406
  <v-row v-if="isMobile" dense align="center" class="bg-office" >
407
407
  <v-col cols="6">Name</v-col>
408
- <v-col cols="5">Vorname</v-col>
408
+ <v-col cols="4">Vorname</v-col>
409
409
  <v-col cols="1">
410
410
  <v-btn icon="$search" class="bg-office" @click="search"></v-btn>
411
411
  </v-col>
412
+ <v-col cols="1">
413
+ <v-btn icon="$gps" class="bg-office" @click="places"></v-btn>
414
+ </v-col>
412
415
  </v-row>
413
416
  <v-row v-else dense align="center" class="bg-office" >
414
417
  <v-col cols="2">Name</v-col>
@@ -8,6 +8,7 @@
8
8
  const getBooksService = inject(getBooksSymbol)!;
9
9
  const booksService = getBooksService() as BooksService;
10
10
  const isAdmin = !!(appState.scopes & EScope.Admin);
11
+ const isMobile = appState.isMobile && (appState.device != EDevice.iPad);
11
12
 
12
13
  interface Regal {
13
14
  faecher: IPlace[];
@@ -125,16 +126,16 @@
125
126
  </v-row>
126
127
  <v-row dense>
127
128
  <v-col v-for="n in 8" cols="1">
128
- <book-place v-for="m in 6" :place="regale[n-1].faecher[m-1]" :height="placeHeight" @select="select" ></book-place>
129
+ <book-place v-for="m in 6" :place="regale[n-1].faecher[m-1]" :ismobile="isMobile" :height="placeHeight" @select="select" ></book-place>
129
130
  </v-col>
130
131
  <v-col cols="1">
131
- <v-btn v-if="isAdmin" @click="distribute">DISTRIBUTE</v-btn>
132
+ <v-btn v-if="isAdmin && !isMobile" @click="distribute">DISTRIBUTE</v-btn>
132
133
  </v-col>
133
134
  <v-col cols="1">
134
- <book-place v-for="m in 6" :place="regale[8].faecher[m-1]" :height="placeHeight" @select="select"></book-place>
135
+ <book-place v-for="m in 6" :place="regale[8].faecher[m-1]" :ismobile="isMobile" :height="placeHeight" @select="select"></book-place>
135
136
  </v-col>
136
137
  <v-col cols="2" class="pl-2">
137
- <book-place v-for="m in 6" :place="regale[9].faecher[m-1]" :height="placeHeight" @select="select"></book-place>
138
+ <book-place v-for="m in 6" :place="regale[9].faecher[m-1]" :ismobile="isMobile" :height="placeHeight" @select="select"></book-place>
138
139
  </v-col>
139
140
  </v-row>
140
141
  <v-dialog v-model="showBooks" >
@@ -155,7 +156,7 @@
155
156
  </v-dialog>
156
157
  <v-dialog v-model="showDistribute" >
157
158
  <v-card v-if="showDistribute" width="600" >
158
- <v-card-title>Buchverteilung auf die Regale</v-card-title>
159
+ <v-card-title>Buchverteilung auf die Regale - SAVE nicht vergessen !</v-card-title>
159
160
  <v-card-text>
160
161
  <v-container>
161
162
  <v-row dense>