@bedrock/vue-vc 4.0.0 → 5.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.
@@ -6,19 +6,21 @@
6
6
  <div class="column full-height">
7
7
  <slot name="image">
8
8
  <dynamic-image
9
- class="q-ml-auto"
9
+ class="q-mr-auto"
10
10
  :src="imageOverride.length > 0 ? imageOverride : credentialImage"
11
11
  :size="dense ? 'sm' : 'md'" />
12
12
  </slot>
13
13
  <slot name="description">
14
14
  <credential-field
15
- class="col flex items-end"
15
+ class="col flex items-end q-ml-auto"
16
+ :style="[textColor && `color: ${textColor}`]"
16
17
  :title="nameOverride.length > 0 ? nameOverride : credentialName"
17
- :title-class="`text-left ${dense ? 'text-body2':'text-body1'}`"
18
+ :title-class="`text-right ${dense ? 'text-body2':'text-body1'}`"
18
19
  :value="descriptionOverride.length > 0 ?
19
20
  descriptionOverride : description"
20
- :value-class="`text-left text-grey-7
21
- ${dense ? ' text-caption':' text-body2'}`" />
21
+ :value-class="`text-right
22
+ ${textColor ? '':' text-grey-7'}
23
+ ${dense ? ' text-caption':' text-caption'}`" />
22
24
  </slot>
23
25
  </div>
24
26
  <q-dialog v-model="state.details">
@@ -57,6 +59,10 @@ const props = defineProps({
57
59
  type: Boolean,
58
60
  default: false
59
61
  },
62
+ textColor: {
63
+ type: String,
64
+ default: ''
65
+ },
60
66
  separator: {
61
67
  type: Boolean,
62
68
  default: true
@@ -3,19 +3,19 @@
3
3
  <q-item class="q-pa-none">
4
4
  <q-item-section>
5
5
  <q-item-label
6
- v-if="title"
7
- class="cf-title"
6
+ class="cf-value"
8
7
  style="max-width: 225px;"
9
- :class="titleClass"
8
+ :class="valueClass"
10
9
  :lines="lines">
11
- {{title}}
10
+ {{value}}
12
11
  </q-item-label>
13
12
  <q-item-label
14
- class="cf-value"
13
+ v-if="title"
14
+ class="cf-title"
15
15
  style="max-width: 225px;"
16
- :class="valueClass"
16
+ :class="titleClass"
17
17
  :lines="lines">
18
- {{value}}
18
+ {{title}}
19
19
  </q-item-label>
20
20
  </q-item-section>
21
21
  </q-item>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vue-vc",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "description": "Vue.js credential components for Bedrock Web Apps",
6
6
  "exports": {