@christianriedl/media 1.0.175 → 1.0.177
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
|
@@ -45,19 +45,15 @@
|
|
|
45
45
|
function fieldChanged () {
|
|
46
46
|
showSave.value = true;
|
|
47
47
|
}
|
|
48
|
-
function ratingChanged (value: string | number) { // modelValue not working
|
|
49
|
-
book.rating = Number(value);
|
|
50
|
-
showSave.value = true;
|
|
51
|
-
}
|
|
52
48
|
</script>
|
|
53
49
|
|
|
54
50
|
<template>
|
|
55
51
|
<v-row v-if="props.ismobile" dense align="center" :class="cls" @click="onSelect" >
|
|
56
52
|
<v-col cols="9" >
|
|
57
|
-
<v-text-field v-model="book.title" hide-details density="compact" ></v-text-field>
|
|
53
|
+
<v-text-field v-model="book.title" disabled hide-details density="compact" ></v-text-field>
|
|
58
54
|
</v-col>
|
|
59
55
|
<v-col cols="3" >
|
|
60
|
-
<v-text-field v-model="book.year" hide-details density="compact" ></v-text-field>
|
|
56
|
+
<v-text-field v-model="book.year" disabled hide-details density="compact" ></v-text-field>
|
|
61
57
|
</v-col>
|
|
62
58
|
</v-row>
|
|
63
59
|
<v-row v-else dense align="center" :class="cls" @click="onSelect" >
|
|
@@ -71,7 +67,7 @@
|
|
|
71
67
|
<v-text-field v-model="book.year" hide-details density="compact" type="number" @update:modelValue="fieldChanged"></v-text-field>
|
|
72
68
|
</v-col>
|
|
73
69
|
<v-col cols="2" >
|
|
74
|
-
<v-rating hover clearable :length="5" :size="32"
|
|
70
|
+
<v-rating hover clearable :length="5" :size="32" v-model="book.rating" active-color="primary" @update:modelValue="fieldChanged" />
|
|
75
71
|
</v-col>
|
|
76
72
|
<v-col cols="2">
|
|
77
73
|
<v-btn v-if="showDelete" icon="$delete" :disabled="props.readonly" @click="onDelete"></v-btn>
|
package/src/views/BooksPage.vue
CHANGED
|
@@ -362,30 +362,30 @@
|
|
|
362
362
|
<v-text-field v-model="author.country" hide-details density="compact" @update:modelValue="fieldChanged"></v-text-field>
|
|
363
363
|
</v-col>
|
|
364
364
|
<v-col cols="2">
|
|
365
|
-
<v-btn v-if="mustAddAuthor" @click="addAuthor" :disabled="readonly"
|
|
365
|
+
<v-btn v-if="mustAddAuthor" @click="addAuthor" :disabled="readonly" prepend-icon="$plus">AUTHOR</v-btn>
|
|
366
366
|
<v-btn v-if="mustUpdateAuthor" @click="updateAuthor" :disabled="readonly" icon="$save"></v-btn>
|
|
367
367
|
<v-btn v-if="author.id > 0" @click="deleteAuthor" :disabled="readonly" icon="$delete"></v-btn>
|
|
368
368
|
</v-col>
|
|
369
369
|
</v-row>
|
|
370
370
|
<v-divider></v-divider>
|
|
371
371
|
<v-row v-if="isMobile" dense align="center">
|
|
372
|
-
<v-col cols="7">TITEL</v-col>
|
|
373
|
-
<v-col cols="2">JAHR</v-col>
|
|
374
|
-
<v-col cols="3">RATING</v-col>
|
|
375
|
-
</v-row>
|
|
376
|
-
<v-row v-else dense align="center">
|
|
377
372
|
<v-col cols="9">TITEL</v-col>
|
|
378
373
|
<v-col cols="3">JAHR</v-col>
|
|
374
|
+
</v-row>
|
|
375
|
+
<v-row v-else dense align="center">
|
|
376
|
+
<v-col cols="6">TITEL</v-col>
|
|
377
|
+
<v-col cols="2">JAHR</v-col>
|
|
378
|
+
<v-col cols="2">RATING</v-col>
|
|
379
379
|
<v-col v-if="author.id" cols="2">
|
|
380
|
-
<v-btn v-if="!showAddBookLine" @click="addNewBook" :disabled="readonly"
|
|
380
|
+
<v-btn v-if="!showAddBookLine" @click="addNewBook" :disabled="readonly" prepend-icon="$plus">BOOK</v-btn>
|
|
381
381
|
<v-btn v-if="showAddBookLine" @click="cancelAddNewBook" :disabled="readonly" icon="$cancel"></v-btn>
|
|
382
382
|
</v-col>
|
|
383
383
|
</v-row>
|
|
384
384
|
<book-line v-if="showAddBookLine" :book="newBook" :add="true" :allbooks="allBooks" :readonly="readonly" :ismobile="isMobile" @selectbook="selectBook" @deletebook="deleteBook" @savebook="saveBook"></book-line>
|
|
385
385
|
<book-line v-for="book in author.books" :key="book.id" :book="book" :readonly="readonly" :ismobile="isMobile" @selectbook="selectBook" @deletebook="deleteBook" @savebook="saveBook"></book-line>
|
|
386
|
-
<v-textarea v-if="showCurrentBook"
|
|
386
|
+
<v-textarea v-if="showCurrentBook" clearable auto-grow variant="outlined" label="Beschreibung" :disabled="isMobile" class="pt-2" v-model="currentBook.description" @update:modelValue="descriptionChanged">
|
|
387
387
|
</v-textarea>
|
|
388
|
-
<v-textarea v-if="showCurrentBook" clearable auto-grow variant="outlined" label="Kommentar" v-model="currentBook.comment" @update:modelValue="descriptionChanged">
|
|
388
|
+
<v-textarea v-if="showCurrentBook" clearable auto-grow variant="outlined" label="Kommentar" :disabled="isMobile" v-model="currentBook.comment" @update:modelValue="descriptionChanged">
|
|
389
389
|
</v-textarea>
|
|
390
390
|
</v-defaults-provider>
|
|
391
391
|
</v-container>
|