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.
@@ -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>
@@ -51,7 +51,7 @@ export default {
51
51
  rules: [
52
52
  v =>
53
53
  !v ||
54
- /^\w+([.-\\+]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) ||
54
+ /^\w+([.-\\+]?\w+)*@\w+([.-]?\w+)*(\.\w{2,5})+$/.test(v) ||
55
55
  "E-mail must be valid"
56
56
  ]
57
57
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "0.6.9",
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>