@bedrock/vue-vc 2.1.0 → 4.0.0
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,74 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="full-height"
|
|
4
|
+
:class="clickable && 'cb-clickable cursor-pointer'"
|
|
5
|
+
@click="clickable && toggleDetails()">
|
|
6
|
+
<div class="column full-height">
|
|
7
|
+
<slot name="image">
|
|
8
|
+
<dynamic-image
|
|
9
|
+
class="q-ml-auto"
|
|
10
|
+
:src="imageOverride.length > 0 ? imageOverride : credentialImage"
|
|
11
|
+
:size="dense ? 'sm' : 'md'" />
|
|
12
|
+
</slot>
|
|
6
13
|
<slot name="description">
|
|
7
14
|
<credential-field
|
|
8
|
-
class="col"
|
|
15
|
+
class="col flex items-end"
|
|
9
16
|
:title="nameOverride.length > 0 ? nameOverride : credentialName"
|
|
10
|
-
title-class="text-left text-
|
|
17
|
+
:title-class="`text-left ${dense ? 'text-body2':'text-body1'}`"
|
|
11
18
|
:value="descriptionOverride.length > 0 ?
|
|
12
19
|
descriptionOverride : description"
|
|
13
|
-
value-class="text-left text-
|
|
14
|
-
|
|
15
|
-
<slot name="image">
|
|
16
|
-
<dynamic-image
|
|
17
|
-
class="q-ma-xs"
|
|
18
|
-
:src="imageOverride.length > 0 ? imageOverride : credentialImage"
|
|
19
|
-
:size="dense ? 'sm' : 'md'" />
|
|
20
|
+
:value-class="`text-left text-grey-7
|
|
21
|
+
${dense ? ' text-caption':' text-body2'}`" />
|
|
20
22
|
</slot>
|
|
21
23
|
</div>
|
|
22
|
-
<q-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
row items-center justify-center text-grey-7"
|
|
32
|
-
@click="toggleDetails">
|
|
33
|
-
<span class="cb-details-text q-mr-sm">{{detailsText}}</span>
|
|
34
|
-
<q-icon :name="detailsIcon" />
|
|
35
|
-
<q-dialog v-model="state.details">
|
|
36
|
-
<slot name="modal">
|
|
37
|
-
<q-card>
|
|
38
|
-
<slot name="modalHeader" />
|
|
39
|
-
<slot name="modalContent">
|
|
40
|
-
<credential-switch
|
|
41
|
-
v-bind="$attrs"
|
|
42
|
-
mode="details"
|
|
43
|
-
:credential="credential" />
|
|
44
|
-
</slot>
|
|
45
|
-
<slot name="modalFooter" />
|
|
46
|
-
</q-card>
|
|
24
|
+
<q-dialog v-model="state.details">
|
|
25
|
+
<slot name="modal">
|
|
26
|
+
<q-card>
|
|
27
|
+
<slot name="modalHeader" />
|
|
28
|
+
<slot name="modalContent">
|
|
29
|
+
<credential-switch
|
|
30
|
+
v-bind="$attrs"
|
|
31
|
+
mode="details"
|
|
32
|
+
:credential="credential" />
|
|
47
33
|
</slot>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class="cb-expandable row justify-start text-grey-7 full-width">
|
|
53
|
-
<q-expansion-item
|
|
54
|
-
:label="detailsText"
|
|
55
|
-
class="full-width"
|
|
56
|
-
dense
|
|
57
|
-
dense-toggle
|
|
58
|
-
switch-toggle-side>
|
|
59
|
-
<slot name="expansion">
|
|
60
|
-
<slot name="expansionHeader" />
|
|
61
|
-
<slot name="expansionContent">
|
|
62
|
-
<credential-switch
|
|
63
|
-
v-bind="$attrs"
|
|
64
|
-
mode="details"
|
|
65
|
-
:credential="credential" />
|
|
66
|
-
</slot>
|
|
67
|
-
<slot name="expansionFooter" />
|
|
68
|
-
</slot>
|
|
69
|
-
</q-expansion-item>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
34
|
+
<slot name="modalFooter" />
|
|
35
|
+
</q-card>
|
|
36
|
+
</slot>
|
|
37
|
+
</q-dialog>
|
|
72
38
|
</div>
|
|
73
39
|
</template>
|
|
74
40
|
|
|
@@ -145,7 +111,6 @@ const description = computed(() => {
|
|
|
145
111
|
});
|
|
146
112
|
|
|
147
113
|
function toggleDetails() {
|
|
148
|
-
console.log(state.details);
|
|
149
114
|
state.details = !state.details;
|
|
150
115
|
}
|
|
151
116
|
</script>
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="show">
|
|
3
|
-
<q-item class="
|
|
3
|
+
<q-item class="q-pa-none">
|
|
4
4
|
<q-item-section>
|
|
5
5
|
<q-item-label
|
|
6
6
|
v-if="title"
|
|
7
7
|
class="cf-title"
|
|
8
|
+
style="max-width: 225px;"
|
|
8
9
|
:class="titleClass"
|
|
9
10
|
:lines="lines">
|
|
10
11
|
{{title}}
|
|
11
12
|
</q-item-label>
|
|
12
13
|
<q-item-label
|
|
13
14
|
class="cf-value"
|
|
15
|
+
style="max-width: 225px;"
|
|
14
16
|
:class="valueClass"
|
|
15
17
|
:lines="lines">
|
|
16
18
|
{{value}}
|
|
@@ -37,15 +39,15 @@ const props = defineProps({
|
|
|
37
39
|
},
|
|
38
40
|
titleClass: {
|
|
39
41
|
type: String,
|
|
40
|
-
default: 'text-caption text-
|
|
42
|
+
default: 'text-caption text-grey-7'
|
|
41
43
|
},
|
|
42
44
|
valueClass: {
|
|
43
45
|
type: String,
|
|
44
|
-
default: 'text-body2
|
|
46
|
+
default: 'text-body2'
|
|
45
47
|
},
|
|
46
48
|
lines: {
|
|
47
49
|
type: String,
|
|
48
|
-
default: '
|
|
50
|
+
default: '1'
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vue-vc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue.js credential components for Bedrock Web Apps",
|
|
6
6
|
"exports": {
|
|
@@ -32,17 +32,16 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/digitalbazaar/bedrock-vue-vc",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@bedrock/quasar": "^
|
|
35
|
+
"@bedrock/quasar": "^10.0.0",
|
|
36
36
|
"@bedrock/web": "^3.0.0",
|
|
37
|
-
"vue": "^3.
|
|
37
|
+
"vue": "^3.4.21"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"eslint": "^8.
|
|
41
|
-
"eslint-config-digitalbazaar": "^
|
|
42
|
-
"eslint-plugin-jsdoc": "^
|
|
43
|
-
"eslint-plugin-
|
|
44
|
-
"eslint-plugin-
|
|
45
|
-
"
|
|
46
|
-
"jsdoc-to-markdown": "^7.1.1"
|
|
40
|
+
"eslint": "^8.57.0",
|
|
41
|
+
"eslint-config-digitalbazaar": "^5.0.1",
|
|
42
|
+
"eslint-plugin-jsdoc": "^48.2.1",
|
|
43
|
+
"eslint-plugin-quasar": "^1.1.0",
|
|
44
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
45
|
+
"eslint-plugin-vue": "^9.23.0"
|
|
47
46
|
}
|
|
48
47
|
}
|