@bimdata/bcf-components 6.2.1-rc.6 → 6.3.0-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/bcf-components",
3
- "version": "6.2.1-rc.6",
3
+ "version": "6.3.0-rc.1",
4
4
  "files": [
5
5
  "src",
6
6
  "vue3-plugin.js"
@@ -56,6 +56,7 @@
56
56
  :detailedExtensions="detailedExtensions"
57
57
  :topic="topic"
58
58
  @view-topic-viewpoint="$emit('view-topic-viewpoint', $event)"
59
+ :warning="warning"
59
60
  />
60
61
 
61
62
  <BIMDataButton
@@ -272,6 +273,10 @@ export default {
272
273
  type: String,
273
274
  required: false,
274
275
  },
276
+ warning: {
277
+ type: Boolean,
278
+ default: false,
279
+ },
275
280
  },
276
281
  emits: [
277
282
  "back",
@@ -51,6 +51,22 @@
51
51
  width: 100%;
52
52
  height: 100%;
53
53
 
54
+ .warning {
55
+ position: absolute;
56
+ top: var(--spacing-unit);
57
+ right: var(--spacing-unit);
58
+
59
+ width: 30px;
60
+ height: 27px;
61
+
62
+ display: flex;
63
+ justify-content: center;
64
+ align-items: center;
65
+
66
+ background-color: var(--color-white);
67
+ box-shadow: var(--box-shadow);
68
+ }
69
+
54
70
  img {
55
71
  width: 100%;
56
72
  height: 100%;
@@ -14,6 +14,9 @@
14
14
  <template v-if="viewpoints.length > 0">
15
15
  <BIMDataCarousel :sliderPadding="0">
16
16
  <div class="snapshot-preview" v-for="viewpoint in viewpoints" :key="viewpoint.guid">
17
+ <div class="warning" v-if="warning">
18
+ <BIMDataIconWarning fill color="warning" size="xxs"/>
19
+ </div>
17
20
  <img
18
21
  v-if="viewpoint.snapshot.snapshot_data"
19
22
  :src="viewpoint.snapshot.snapshot_data"
@@ -50,6 +53,10 @@ export default {
50
53
  type: Object,
51
54
  required: true,
52
55
  },
56
+ warning: {
57
+ type: Boolean,
58
+ default: false,
59
+ },
53
60
  },
54
61
  emits: ["view-topic-viewpoint"],
55
62
  setup(props) {
@@ -54,10 +54,7 @@
54
54
  {{ toShortDateFormat(topic.creation_date) }}
55
55
  </template>
56
56
  <template #cell-actions="{ row: topic }">
57
- <BcfTopicActionsCell
58
- :topic="topic"
59
- @open-topic="$emit('open-topic', $event)"
60
- />
57
+ <BcfTopicActionsCell :topic="topic" @open-topic="$emit('open-topic', $event)" :warning="warningCallback(topic)" :warningTooltipMessage="warningTooltipMessage" />
61
58
  </template>
62
59
  </BIMDataTable>
63
60
  </template>
@@ -110,6 +107,14 @@ export default {
110
107
  type: Map,
111
108
  default: () => new Map(),
112
109
  },
110
+ warningCallback: {
111
+ type: Function,
112
+ default: () => false
113
+ },
114
+ warningTooltipMessage: {
115
+ type: String,
116
+ default: ""
117
+ }
113
118
  },
114
119
  emits: [
115
120
  "open-topic",
@@ -1,14 +1,22 @@
1
1
  <template>
2
2
  <div class="bcf-topic-actions-cell">
3
3
  <BIMDataButton
4
- color="primary"
4
+ :color="warning ? 'secondary' : 'primary'"
5
5
  outline
6
6
  radius
7
7
  icon
8
8
  @click="$emit('open-topic', topic)"
9
9
  >
10
- <BIMDataIconShow size="xs" />
10
+ <BIMDataIconShow size="xs" :color="warning ? 'warning' : 'primary'" fill/>
11
11
  </BIMDataButton>
12
+ <div class="bcf-topic-actions-cell__warning" v-if="warning">
13
+ <div class="bcf-topic-actions-cell__warning__white-gradient"></div>
14
+ <BIMDataTooltip :message="warningTooltipMessage" position="left" >
15
+ <div class="bcf-topic-actions-cell__warning__icon">
16
+ <BIMDataIconWarning fill color="warning" />
17
+ </div>
18
+ </BIMDataTooltip>
19
+ </div>
12
20
  </div>
13
21
  </template>
14
22
 
@@ -18,6 +26,14 @@ export default {
18
26
  topic: {
19
27
  type: Object,
20
28
  required: true
29
+ },
30
+ warning: {
31
+ type: Boolean,
32
+ default: false
33
+ },
34
+ warningTooltipMessage: {
35
+ type: String,
36
+ default: ""
21
37
  }
22
38
  },
23
39
  emits: [
@@ -28,8 +44,43 @@ export default {
28
44
 
29
45
  <style scoped lang="scss">
30
46
  .bcf-topic-actions-cell {
47
+ position: relative;
48
+ height: 42px;
49
+ display: flex;
50
+ justify-content: center;
51
+ align-items: center;
52
+
31
53
  .bimdata-btn {
32
54
  margin: auto;
33
55
  }
56
+
57
+ &__warning {
58
+ position: absolute;
59
+ top: 0;
60
+ right: 44px;
61
+
62
+ display: flex;
63
+ justify-content: flex-end;
64
+
65
+ &__white-gradient {
66
+ background: linear-gradient(90deg, transparent, var(--color-white) 90%);
67
+
68
+ width: 350px;
69
+ height: 42px;
70
+ }
71
+
72
+ &__icon {
73
+ box-shadow: var(--box-shadow);
74
+
75
+ display: flex;
76
+ justify-content: center;
77
+ align-items: center;
78
+
79
+ width: 42px;
80
+ height: 42px;
81
+
82
+ background-color: var(--color-white);
83
+ }
84
+ }
34
85
  }
35
86
  </style>