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.
@@ -32,7 +32,6 @@ export default {
32
32
  this.text = this.spec.text;
33
33
  },
34
34
  action_set(spec) {
35
- console.log(spec);
36
35
  if (spec.user_id !== spec.filterKey) {
37
36
  this.text = spec.text;
38
37
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,15 +1,11 @@
1
1
  <template>
2
- <v-list-item
3
- v-longclick="$onLongPress"
4
- :href="$href()"
5
- style="padding-left: 0;"
6
- :style="columnStyles()"
7
- @[clickCondition]="$onClick()"
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-avatar
22
- v-if="$type.isString(spec.imageUrl)"
23
- :tile="!spec.avatar"
24
- class="left-thumbnail"
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
- <img :src="spec.imageUrl" />
27
- </v-list-item-avatar>
28
- <!-- <v-list-item-avatar v-else-if="$type.isObject(spec.icon)">
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
- <div v-else class="left-icon">
32
- <v-list-item-avatar v-if="$type.isObject(spec.icon)">
33
- <common-icon :spec="spec.icon" />
34
- </v-list-item-avatar>
35
- </div>
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
- <v-list-item-content>
38
- <v-list-item-title>{{ spec.title }}</v-list-item-title>
39
- <v-list-item-subtitle v-if="spec.subtitle">{{
40
- spec.subtitle
41
- }}</v-list-item-subtitle>
42
- <v-list-item-subtitle v-if="spec.subsubtitle">{{
43
- spec.subsubtitle
44
- }}</v-list-item-subtitle>
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
- <div>
47
- <template v-for="(item, index) in chips">
48
- <v-chip :key="index" class="ma-1" :color="item.color" small>
49
- {{ item.text }}
50
- </v-chip>
51
- </template>
52
- </div>
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
- <!-- NOTE: Experimental -->
55
- <panels-responsive :spec="accessory" />
56
- </v-list-item-content>
73
+ <!-- NOTE: Experimental -->
74
+ <panels-responsive :spec="accessory" />
75
+ </v-list-item-content>
57
76
 
58
- <template v-for="(item, index) in spec.rightButtons">
59
- <common-button
60
- :key="index"
61
- :spec="buttonSpec(item)"
62
- :disabled="$isBusy"
63
- />
64
- </template>
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
- <templates-menu :edit-buttons="editButtons" />
67
- </v-list-item>
85
+ <templates-menu :edit-buttons="editButtons" />
86
+ </v-list-item>
87
+ </div>
68
88
  </template>
69
89
 
70
90
  <script>