glib-web 0.6.9 → 0.6.12
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/components/_icon.vue +1 -1
- package/components/fields/text.vue +1 -1
- package/package.json +1 -1
- package/templates/thumbnail.vue +70 -50
package/components/_icon.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-badge v-if="badge.text" :color="badge.backgroundColor" overlap>
|
|
2
|
+
<v-badge v-if="badge.text" :color="badge.backgroundColor || 'red'" overlap>
|
|
3
3
|
<template v-slot:badge>{{ badge.text }}</template>
|
|
4
4
|
<v-icon :style="genericStyles()" :size="size">{{ value }}</v-icon>
|
|
5
5
|
</v-badge>
|
package/package.json
CHANGED
package/templates/thumbnail.vue
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<v-icon v-if="spec.onReorder" class="handle">drag_indicator</v-icon>
|
|
10
|
-
|
|
11
|
-
<div class="left-universal">
|
|
12
|
-
<template v-for="(item, index) in spec.leftButtons">
|
|
2
|
+
<div style="display:flex;">
|
|
3
|
+
<div
|
|
4
|
+
v-if="spec.leftOuterButtons"
|
|
5
|
+
class="left-universal"
|
|
6
|
+
style="display:flex; margin-top: 10px;"
|
|
7
|
+
>
|
|
8
|
+
<template v-for="(item, index) in spec.leftOuterButtons">
|
|
13
9
|
<common-button
|
|
14
10
|
:key="index"
|
|
15
11
|
:spec="buttonSpec(item)"
|
|
@@ -18,53 +14,77 @@
|
|
|
18
14
|
</template>
|
|
19
15
|
</div>
|
|
20
16
|
|
|
21
|
-
<v-list-item
|
|
22
|
-
v-
|
|
23
|
-
:
|
|
24
|
-
|
|
17
|
+
<v-list-item
|
|
18
|
+
v-longclick="$onLongPress"
|
|
19
|
+
:href="$href()"
|
|
20
|
+
style="padding-left: 0;display:flex;"
|
|
21
|
+
:style="columnStyles()"
|
|
22
|
+
@[clickCondition]="$onClick()"
|
|
25
23
|
>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
<v-icon v-if="spec.onReorder" class="handle">drag_indicator</v-icon>
|
|
25
|
+
|
|
26
|
+
<div v-if="spec.leftButtons" class="left-universal">
|
|
27
|
+
<template v-for="(item, index) in spec.leftButtons">
|
|
28
|
+
<common-button
|
|
29
|
+
:key="index"
|
|
30
|
+
:spec="buttonSpec(item)"
|
|
31
|
+
:disabled="$isBusy"
|
|
32
|
+
/>
|
|
33
|
+
</template>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<v-list-item-avatar
|
|
37
|
+
v-if="$type.isString(spec.imageUrl)"
|
|
38
|
+
:tile="!spec.avatar"
|
|
39
|
+
style="display:flex;"
|
|
40
|
+
class="left-thumbnail"
|
|
41
|
+
:size="spec.imageSize"
|
|
42
|
+
>
|
|
43
|
+
<img :src="spec.imageUrl" />
|
|
44
|
+
</v-list-item-avatar>
|
|
45
|
+
<!-- <v-list-item-avatar v-else-if="$type.isObject(spec.icon)">
|
|
29
46
|
<common-icon :spec="spec.icon" />
|
|
30
47
|
</v-list-item-avatar> -->
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
<div v-else class="left-icon">
|
|
49
|
+
<v-list-item-avatar v-if="$type.isObject(spec.icon)">
|
|
50
|
+
<common-icon :spec="spec.icon" />
|
|
51
|
+
</v-list-item-avatar>
|
|
52
|
+
</div>
|
|
36
53
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
<v-list-item-content style="display:flex;">
|
|
55
|
+
<v-list-item-title>{{ spec.title }}</v-list-item-title>
|
|
56
|
+
<v-list-item-subtitle v-if="spec.subtitle">{{
|
|
57
|
+
spec.subtitle
|
|
58
|
+
}}</v-list-item-subtitle>
|
|
59
|
+
<v-list-item-subtitle v-if="spec.subsubtitle">{{
|
|
60
|
+
spec.subsubtitle
|
|
61
|
+
}}</v-list-item-subtitle>
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
<div>
|
|
64
|
+
<template v-for="(item, index) in chips">
|
|
65
|
+
<v-chip :key="index" class="ma-1" :color="item.color" small>
|
|
66
|
+
<div>
|
|
67
|
+
{{ item.text }}
|
|
68
|
+
</div>
|
|
69
|
+
</v-chip>
|
|
70
|
+
</template>
|
|
71
|
+
</div>
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
<!-- NOTE: Experimental -->
|
|
74
|
+
<panels-responsive :spec="accessory" />
|
|
75
|
+
</v-list-item-content>
|
|
57
76
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
77
|
+
<template v-for="(item, index) in spec.rightButtons">
|
|
78
|
+
<common-button
|
|
79
|
+
:key="index"
|
|
80
|
+
:spec="buttonSpec(item)"
|
|
81
|
+
:disabled="$isBusy"
|
|
82
|
+
/>
|
|
83
|
+
</template>
|
|
65
84
|
|
|
66
|
-
|
|
67
|
-
|
|
85
|
+
<templates-menu :edit-buttons="editButtons" />
|
|
86
|
+
</v-list-item>
|
|
87
|
+
</div>
|
|
68
88
|
</template>
|
|
69
89
|
|
|
70
90
|
<script>
|