glib-web 0.6.11 → 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/label.vue +0 -1
- package/components/mixins/events.js +5 -5
- package/package.json +1 -1
- package/templates/thumbnail.vue +70 -50
package/components/label.vue
CHANGED
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
// Submit button needs to be disabled when redirecting after form submission
|
|
11
11
|
_isBusy: false,
|
|
12
12
|
_events: [],
|
|
13
|
-
_typingTimer: null
|
|
13
|
+
_typingTimer: null
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
16
|
computed: {
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
},
|
|
24
24
|
$isReady() {
|
|
25
25
|
return this.$data._events === null;
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
27
|
},
|
|
28
28
|
mounted() {
|
|
29
29
|
this._executeIfReady(false);
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
"$root.vueApp.isStale": function(val, oldVal) {
|
|
42
42
|
// Make sure $ready() will be called in the next update
|
|
43
43
|
this._mountedUrl = null;
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
45
|
},
|
|
46
46
|
methods: {
|
|
47
47
|
$href: function(spec) {
|
|
@@ -169,9 +169,9 @@ export default {
|
|
|
169
169
|
this._typingTimer = null;
|
|
170
170
|
GLib.action.execute(this.spec.onTypeEnd, this);
|
|
171
171
|
}, duration);
|
|
172
|
-
}
|
|
172
|
+
}
|
|
173
173
|
// $onZero() {
|
|
174
174
|
// GLib.action.execute(this.spec.onZero, null, this);
|
|
175
175
|
// },
|
|
176
|
-
}
|
|
176
|
+
}
|
|
177
177
|
};
|
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>
|