@bimdata/bcf-components 2.0.0-rc.10 → 2.0.0-rc.13
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/dist/vue2/bcf-components.es.js +487 -396
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/bcf-components.es.js +982 -893
- package/dist/vue3/style.css +1 -1
- package/package.json +2 -4
|
@@ -19,6 +19,80 @@ var __spreadValues = (a2, b2) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
21
21
|
import { reactive, computed, ref, watch, toRaw, inject } from "vue";
|
|
22
|
+
const EXTENSION_TYPES = Object.freeze([
|
|
23
|
+
"Priority",
|
|
24
|
+
"Type",
|
|
25
|
+
"Stage",
|
|
26
|
+
"Status",
|
|
27
|
+
"Label"
|
|
28
|
+
]);
|
|
29
|
+
const EXTENSION_WITH_COLOR = Object.freeze([
|
|
30
|
+
"Priority",
|
|
31
|
+
"Status"
|
|
32
|
+
]);
|
|
33
|
+
const EXTENSION_FIELDS = Object.freeze({
|
|
34
|
+
Priority: "priority",
|
|
35
|
+
Type: "topic_type",
|
|
36
|
+
Stage: "stage",
|
|
37
|
+
Status: "topic_status",
|
|
38
|
+
Label: "label"
|
|
39
|
+
});
|
|
40
|
+
const EXTENSION_LIST_FIELDS = Object.freeze({
|
|
41
|
+
Priority: "priorities",
|
|
42
|
+
Type: "topic_types",
|
|
43
|
+
Stage: "stages",
|
|
44
|
+
Status: "topic_statuses",
|
|
45
|
+
Label: "topic_labels"
|
|
46
|
+
});
|
|
47
|
+
const DEFAULT_PRIORITY_COLOR = "D8D8D8";
|
|
48
|
+
const DEFAULT_STATUS_COLOR = "D8D8D8";
|
|
49
|
+
const VIEWPOINT_TYPES = Object.freeze({
|
|
50
|
+
V3D: "ifc3d",
|
|
51
|
+
V2D: "ifc2d",
|
|
52
|
+
DWG: "dwg",
|
|
53
|
+
PLAN: "plan"
|
|
54
|
+
});
|
|
55
|
+
const VIEWPOINT_CONFIG = Object.freeze({
|
|
56
|
+
[VIEWPOINT_TYPES.V3D]: {
|
|
57
|
+
order: 1,
|
|
58
|
+
category: "3d",
|
|
59
|
+
window: "3d",
|
|
60
|
+
plugin: "viewer3d",
|
|
61
|
+
icon: "fileIfcPolychrome"
|
|
62
|
+
},
|
|
63
|
+
[VIEWPOINT_TYPES.V2D]: {
|
|
64
|
+
order: 2,
|
|
65
|
+
category: "2d",
|
|
66
|
+
window: "2d",
|
|
67
|
+
plugin: "viewer2d",
|
|
68
|
+
icon: "fileIfcPolychrome"
|
|
69
|
+
},
|
|
70
|
+
[VIEWPOINT_TYPES.DWG]: {
|
|
71
|
+
order: 3,
|
|
72
|
+
category: "2d",
|
|
73
|
+
window: "dwg",
|
|
74
|
+
plugin: "dwg",
|
|
75
|
+
icon: "fileDwgPolychrome"
|
|
76
|
+
},
|
|
77
|
+
[VIEWPOINT_TYPES.PLAN]: {
|
|
78
|
+
order: 4,
|
|
79
|
+
category: "2d",
|
|
80
|
+
window: "plan",
|
|
81
|
+
plugin: "plan",
|
|
82
|
+
icon: "filePlanPolychrome"
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var config = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
|
+
__proto__: null,
|
|
87
|
+
DEFAULT_PRIORITY_COLOR,
|
|
88
|
+
DEFAULT_STATUS_COLOR,
|
|
89
|
+
EXTENSION_FIELDS,
|
|
90
|
+
EXTENSION_LIST_FIELDS,
|
|
91
|
+
EXTENSION_TYPES,
|
|
92
|
+
EXTENSION_WITH_COLOR,
|
|
93
|
+
VIEWPOINT_CONFIG,
|
|
94
|
+
VIEWPOINT_TYPES
|
|
95
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
22
96
|
let apiClient = null;
|
|
23
97
|
function setApiClient(client) {
|
|
24
98
|
apiClient = client;
|
|
@@ -172,33 +246,6 @@ function useBcfSort(topics) {
|
|
|
172
246
|
sortOrderDate
|
|
173
247
|
};
|
|
174
248
|
}
|
|
175
|
-
const EXTENSION_TYPES = [
|
|
176
|
-
"Priority",
|
|
177
|
-
"Type",
|
|
178
|
-
"Stage",
|
|
179
|
-
"Status",
|
|
180
|
-
"Label"
|
|
181
|
-
];
|
|
182
|
-
const EXTENSION_WITH_COLOR = [
|
|
183
|
-
"Priority",
|
|
184
|
-
"Status"
|
|
185
|
-
];
|
|
186
|
-
const EXTENSION_FIELDS = {
|
|
187
|
-
Priority: "priority",
|
|
188
|
-
Type: "topic_type",
|
|
189
|
-
Stage: "stage",
|
|
190
|
-
Status: "topic_status",
|
|
191
|
-
Label: "label"
|
|
192
|
-
};
|
|
193
|
-
const EXTENSION_LIST_FIELDS = {
|
|
194
|
-
Priority: "priorities",
|
|
195
|
-
Type: "topic_types",
|
|
196
|
-
Stage: "stages",
|
|
197
|
-
Status: "topic_statuses",
|
|
198
|
-
Label: "topic_labels"
|
|
199
|
-
};
|
|
200
|
-
const DEFAULT_PRIORITY_COLOR = "D8D8D8";
|
|
201
|
-
const DEFAULT_STATUS_COLOR = "D8D8D8";
|
|
202
249
|
function getPriorityColor(topic, detailedExtensions) {
|
|
203
250
|
const priorityDetail = detailedExtensions.priorities.find((p2) => p2.priority === topic.priority);
|
|
204
251
|
return (priorityDetail == null ? void 0 : priorityDetail.color) || DEFAULT_PRIORITY_COLOR;
|
|
@@ -976,7 +1023,7 @@ const g$3 = o$a({ render: function() {
|
|
|
976
1023
|
} } }, "data-v-1b2410f3", false, void 0, false, r$a, void 0, void 0) }, model: { prop: "modelValue", event: "update:modelValue" }, props: { width: { type: [String, Number], default: "100%" }, label: { type: String, default: null }, options: { type: Array, default: () => [] }, optionKey: { type: String }, optionLabelKey: { type: String }, modelValue: { type: [String, Object, Array] }, multi: { type: Boolean, default: false }, nullValue: { type: Boolean, default: false }, nullLabel: { type: String }, disabled: { type: Boolean, default: false } }, emits: ["update:modelValue"], computed: { selectorComponent() {
|
|
977
1024
|
return this.multi ? "BIMDataSelectMulti" : "BIMDataSelectSingle";
|
|
978
1025
|
} } }, void 0, false, void 0, false, void 0, void 0, void 0);
|
|
979
|
-
var render$
|
|
1026
|
+
var render$l = function() {
|
|
980
1027
|
var _vm = this;
|
|
981
1028
|
var _h = _vm.$createElement;
|
|
982
1029
|
var _c = _vm._self._c || _h;
|
|
@@ -996,7 +1043,7 @@ var render$k = function() {
|
|
|
996
1043
|
_vm.$set(_vm.filters, "labels", $$v);
|
|
997
1044
|
}, expression: "filters.labels" } }), _c("div", { staticClass: "bcf-filters__container__actions" }, [_c("BIMDataButton", { staticClass: "m-r-12", attrs: { "color": "primary", "ghost": "", "radius": "" }, on: { "click": _vm.resetFilters } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfFilters.resetButton")) + " ")]), _c("BIMDataButton", { attrs: { "color": "primary", "fill": "", "radius": "" }, on: { "click": _vm.submitFilters } }, [_c("BIMDataIcon", { attrs: { "name": "search", "size": "xxs", "fill": "", "color": "default", "margin": "0 6px 0 0" } }), _c("span", [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfFilters.searchButton")) + " ")])], 1)], 1)], 1)])], 1);
|
|
998
1045
|
};
|
|
999
|
-
var staticRenderFns$
|
|
1046
|
+
var staticRenderFns$l = [];
|
|
1000
1047
|
var BcfFilters_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfFilters_2FBcfFilters_vue_src_scoped_true_lang = "";
|
|
1001
1048
|
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
1002
1049
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
@@ -1052,7 +1099,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
|
|
|
1052
1099
|
function getSelectOptions(list) {
|
|
1053
1100
|
return Array.from(new Set(list)).sort((a2, b2) => a2.localeCompare(b2, void 0, { sensitivity: "base" }));
|
|
1054
1101
|
}
|
|
1055
|
-
const __vue2_script$
|
|
1102
|
+
const __vue2_script$l = {
|
|
1056
1103
|
components: {
|
|
1057
1104
|
BIMDataButton: c$5,
|
|
1058
1105
|
BIMDataIcon: v$2,
|
|
@@ -1123,15 +1170,15 @@ const __vue2_script$k = {
|
|
|
1123
1170
|
};
|
|
1124
1171
|
}
|
|
1125
1172
|
};
|
|
1126
|
-
const __cssModules$
|
|
1127
|
-
var __component__$
|
|
1128
|
-
function __vue2_injectStyles$
|
|
1129
|
-
for (let o2 in __cssModules$
|
|
1130
|
-
this[o2] = __cssModules$
|
|
1173
|
+
const __cssModules$l = {};
|
|
1174
|
+
var __component__$l = /* @__PURE__ */ normalizeComponent(__vue2_script$l, render$l, staticRenderFns$l, false, __vue2_injectStyles$l, "41d6e8d0", null, null);
|
|
1175
|
+
function __vue2_injectStyles$l(context) {
|
|
1176
|
+
for (let o2 in __cssModules$l) {
|
|
1177
|
+
this[o2] = __cssModules$l[o2];
|
|
1131
1178
|
}
|
|
1132
1179
|
}
|
|
1133
1180
|
var BcfFilters = /* @__PURE__ */ function() {
|
|
1134
|
-
return __component__$
|
|
1181
|
+
return __component__$l.exports;
|
|
1135
1182
|
}();
|
|
1136
1183
|
const colors = Object.freeze({
|
|
1137
1184
|
bisque: "ffe4c4",
|
|
@@ -1319,7 +1366,7 @@ const g$2 = t$9({ render: function() {
|
|
|
1319
1366
|
}, staticRenderFns: [] }, function(r2) {
|
|
1320
1367
|
r2 && r2("data-v-29b6f3f4_0", { source: ".color-selector__line[data-v-29b6f3f4]{display:flex}.color-selector__line__element[data-v-29b6f3f4]{cursor:pointer;height:30px;width:30px;margin:4px;border-radius:3px}.color-selector__line__element.selected[data-v-29b6f3f4]{border:solid 2px var(--color-primary)}", map: void 0, media: void 0 });
|
|
1321
1368
|
}, { components: { BIMDataCard: s$6 }, props: { modelValue: { type: String, default: null, validator: (a2) => Object.values(r$9).includes(a2) } }, emits: ["update:modelValue"], data: () => ({ colorLines: d$4 }) }, "data-v-29b6f3f4", false, void 0, false, c$3, void 0, void 0);
|
|
1322
|
-
var render$
|
|
1369
|
+
var render$k = function() {
|
|
1323
1370
|
var _vm = this;
|
|
1324
1371
|
var _h = _vm.$createElement;
|
|
1325
1372
|
var _c = _vm._self._c || _h;
|
|
@@ -1348,9 +1395,9 @@ var render$j = function() {
|
|
|
1348
1395
|
_vm.isOpenDeleteGuard = false;
|
|
1349
1396
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxxs" } })], 1)], 1)]) : _vm._e()], 1);
|
|
1350
1397
|
};
|
|
1351
|
-
var staticRenderFns$
|
|
1398
|
+
var staticRenderFns$k = [];
|
|
1352
1399
|
var SettingCardItem_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfSettings_2FsettingCard_2FSettingCardItem_vue_src_scoped_true_lang = "";
|
|
1353
|
-
const __vue2_script$
|
|
1400
|
+
const __vue2_script$k = {
|
|
1354
1401
|
components: {
|
|
1355
1402
|
BIMDataButton: c$5,
|
|
1356
1403
|
BIMDataColorSelector: g$2,
|
|
@@ -1426,17 +1473,17 @@ const __vue2_script$j = {
|
|
|
1426
1473
|
};
|
|
1427
1474
|
}
|
|
1428
1475
|
};
|
|
1429
|
-
const __cssModules$
|
|
1430
|
-
var __component__$
|
|
1431
|
-
function __vue2_injectStyles$
|
|
1432
|
-
for (let o2 in __cssModules$
|
|
1433
|
-
this[o2] = __cssModules$
|
|
1476
|
+
const __cssModules$k = {};
|
|
1477
|
+
var __component__$k = /* @__PURE__ */ normalizeComponent(__vue2_script$k, render$k, staticRenderFns$k, false, __vue2_injectStyles$k, "27af5073", null, null);
|
|
1478
|
+
function __vue2_injectStyles$k(context) {
|
|
1479
|
+
for (let o2 in __cssModules$k) {
|
|
1480
|
+
this[o2] = __cssModules$k[o2];
|
|
1434
1481
|
}
|
|
1435
1482
|
}
|
|
1436
1483
|
var SettingCardItem = /* @__PURE__ */ function() {
|
|
1437
|
-
return __component__$
|
|
1484
|
+
return __component__$k.exports;
|
|
1438
1485
|
}();
|
|
1439
|
-
var render$
|
|
1486
|
+
var render$j = function() {
|
|
1440
1487
|
var _vm = this;
|
|
1441
1488
|
var _h = _vm.$createElement;
|
|
1442
1489
|
var _c = _vm._self._c || _h;
|
|
@@ -1456,9 +1503,9 @@ var render$i = function() {
|
|
|
1456
1503
|
} } });
|
|
1457
1504
|
}), 1)], 1)]);
|
|
1458
1505
|
};
|
|
1459
|
-
var staticRenderFns$
|
|
1506
|
+
var staticRenderFns$j = [];
|
|
1460
1507
|
var SettingCard_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfSettings_2FsettingCard_2FSettingCard_vue_src_scoped_true_lang = "";
|
|
1461
|
-
const __vue2_script$
|
|
1508
|
+
const __vue2_script$j = {
|
|
1462
1509
|
components: {
|
|
1463
1510
|
BIMDataButton: c$5,
|
|
1464
1511
|
BIMDataIcon: v$2,
|
|
@@ -1520,17 +1567,17 @@ const __vue2_script$i = {
|
|
|
1520
1567
|
};
|
|
1521
1568
|
}
|
|
1522
1569
|
};
|
|
1523
|
-
const __cssModules$
|
|
1524
|
-
var __component__$
|
|
1525
|
-
function __vue2_injectStyles$
|
|
1526
|
-
for (let o2 in __cssModules$
|
|
1527
|
-
this[o2] = __cssModules$
|
|
1570
|
+
const __cssModules$j = {};
|
|
1571
|
+
var __component__$j = /* @__PURE__ */ normalizeComponent(__vue2_script$j, render$j, staticRenderFns$j, false, __vue2_injectStyles$j, "6e8123c6", null, null);
|
|
1572
|
+
function __vue2_injectStyles$j(context) {
|
|
1573
|
+
for (let o2 in __cssModules$j) {
|
|
1574
|
+
this[o2] = __cssModules$j[o2];
|
|
1528
1575
|
}
|
|
1529
1576
|
}
|
|
1530
1577
|
var SettingCard = /* @__PURE__ */ function() {
|
|
1531
|
-
return __component__$
|
|
1578
|
+
return __component__$j.exports;
|
|
1532
1579
|
}();
|
|
1533
|
-
var render$
|
|
1580
|
+
var render$i = function() {
|
|
1534
1581
|
var _vm = this;
|
|
1535
1582
|
var _h = _vm.$createElement;
|
|
1536
1583
|
var _c = _vm._self._c || _h;
|
|
@@ -1540,9 +1587,9 @@ var render$h = function() {
|
|
|
1540
1587
|
return _c("SettingCard", { attrs: { "project": _vm.project, "extensionType": t2, "availableExtensions": _vm.detailedExtensions[_vm.EXTENSION_LIST_FIELDS[t2]] }, on: { "create-extension": _vm.createExt, "update-extension": _vm.updateExt, "delete-extension": _vm.deleteExt } });
|
|
1541
1588
|
})], 2)]);
|
|
1542
1589
|
};
|
|
1543
|
-
var staticRenderFns$
|
|
1590
|
+
var staticRenderFns$i = [];
|
|
1544
1591
|
var BcfSettings_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfSettings_2FBcfSettings_vue_src_scoped_true_lang = "";
|
|
1545
|
-
const __vue2_script$
|
|
1592
|
+
const __vue2_script$i = {
|
|
1546
1593
|
components: {
|
|
1547
1594
|
BIMDataButton: c$5,
|
|
1548
1595
|
BIMDataIcon: v$2,
|
|
@@ -1591,15 +1638,15 @@ const __vue2_script$h = {
|
|
|
1591
1638
|
};
|
|
1592
1639
|
}
|
|
1593
1640
|
};
|
|
1594
|
-
const __cssModules$
|
|
1595
|
-
var __component__$
|
|
1596
|
-
function __vue2_injectStyles$
|
|
1597
|
-
for (let o2 in __cssModules$
|
|
1598
|
-
this[o2] = __cssModules$
|
|
1641
|
+
const __cssModules$i = {};
|
|
1642
|
+
var __component__$i = /* @__PURE__ */ normalizeComponent(__vue2_script$i, render$i, staticRenderFns$i, false, __vue2_injectStyles$i, "2687ba4b", null, null);
|
|
1643
|
+
function __vue2_injectStyles$i(context) {
|
|
1644
|
+
for (let o2 in __cssModules$i) {
|
|
1645
|
+
this[o2] = __cssModules$i[o2];
|
|
1599
1646
|
}
|
|
1600
1647
|
}
|
|
1601
1648
|
var BcfSettings = /* @__PURE__ */ function() {
|
|
1602
|
-
return __component__$
|
|
1649
|
+
return __component__$i.exports;
|
|
1603
1650
|
}();
|
|
1604
1651
|
var r$8 = Object.freeze(["default", "primary", "secondary", "high", "success", "granite"]), a$7 = { name: "BIMDataButton", props: { width: { type: String, default: "32px" }, height: { type: String, default: "32px" }, fill: { type: Boolean, default: false }, outline: { type: Boolean, default: false }, ghost: { type: Boolean, default: false }, ripple: { type: Boolean, default: false }, radius: { type: Boolean, default: false }, square: { type: Boolean, default: false }, rounded: { type: Boolean, default: false }, icon: { type: Boolean, default: false }, color: { type: String, default: "default", validator: (a2) => r$8.includes(a2) } }, emits: ["click"], computed: { classes() {
|
|
1605
1652
|
return { "bimdata-btn__icon": this.icon, "bimdata-btn__fill": this.fill, "bimdata-btn__outline": this.outline, "bimdata-btn__ghost": this.ghost, "bimdata-btn__ripple": this.ripple, "bimdata-btn__radius": this.radius, "bimdata-btn__square": this.square, "bimdata-btn__rounded": this.rounded, ["bimdata-btn__fill--" + this.color]: this.fill && this.color, ["bimdata-btn__outline--" + this.color]: this.outline && this.color, ["bimdata-btn__ghost--" + this.color]: this.ghost && this.color, ["bimdata-btn__ripple--" + this.color]: this.ripple && this.color };
|
|
@@ -1828,7 +1875,7 @@ const o$7 = t$7({ render: function() {
|
|
|
1828
1875
|
}, staticRenderFns: [] }, function(e2) {
|
|
1829
1876
|
e2 && e2("data-v-1694cb3a_0", { source: ".bimdata-simple-pie-chart[data-v-1694cb3a]{position:relative}.bimdata-simple-pie-chart .path[data-v-1694cb3a]{stroke-dasharray:1000;stroke-dashoffset:1000;animation:dash-data-v-1694cb3a var(--graph-draw-time,2s) ease-in forwards}@keyframes dash-data-v-1694cb3a{to{stroke-dashoffset:0}}", map: void 0, media: void 0 });
|
|
1830
1877
|
}, e$7, "data-v-1694cb3a", false, void 0, false, r$7, void 0, void 0);
|
|
1831
|
-
var render$
|
|
1878
|
+
var render$h = function() {
|
|
1832
1879
|
var _vm = this;
|
|
1833
1880
|
var _h = _vm.$createElement;
|
|
1834
1881
|
var _c = _vm._self._c || _h;
|
|
@@ -1837,9 +1884,9 @@ var render$g = function() {
|
|
|
1837
1884
|
return [_c("div", { staticClass: "bcf-statistics__content__legend__item" }, [_c("span", { staticClass: "bcf-statistics__content__legend__item__mark", style: { borderColor: barData.color } }), _c("span", { staticClass: "bcf-statistics__content__legend__item__percent" }, [_vm._v(" " + _vm._s(barData.percentage.toFixed(0)) + " % ")]), _c("span", { staticClass: "bcf-statistics__content__legend__item__text" }, [_vm._v(" " + _vm._s(barData.label && _vm.$t("BcfComponents.BcfStatistics.extension." + _vm.extensionType)) + " " + _vm._s(barData.label || _vm.$t("BcfComponents.BcfStatistics.extension." + _vm.extensionType + "NotDefined")) + " "), _c("span", { staticClass: "total" }, [_vm._v(" (" + _vm._s(barData.total) + ") ")])])])];
|
|
1838
1885
|
} }]) })], 1)], 1)]);
|
|
1839
1886
|
};
|
|
1840
|
-
var staticRenderFns$
|
|
1887
|
+
var staticRenderFns$h = [];
|
|
1841
1888
|
var BcfStatistics_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfStatistics_2FBcfStatistics_vue_src_scoped_true_lang = "";
|
|
1842
|
-
const __vue2_script$
|
|
1889
|
+
const __vue2_script$h = {
|
|
1843
1890
|
components: {
|
|
1844
1891
|
BIMDataPaginatedList: b$1,
|
|
1845
1892
|
BIMDataSimplePieChart: o$7
|
|
@@ -1884,15 +1931,15 @@ const __vue2_script$g = {
|
|
|
1884
1931
|
};
|
|
1885
1932
|
}
|
|
1886
1933
|
};
|
|
1887
|
-
const __cssModules$
|
|
1888
|
-
var __component__$
|
|
1889
|
-
function __vue2_injectStyles$
|
|
1890
|
-
for (let o2 in __cssModules$
|
|
1891
|
-
this[o2] = __cssModules$
|
|
1934
|
+
const __cssModules$h = {};
|
|
1935
|
+
var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, "08cce8e2", null, null);
|
|
1936
|
+
function __vue2_injectStyles$h(context) {
|
|
1937
|
+
for (let o2 in __cssModules$h) {
|
|
1938
|
+
this[o2] = __cssModules$h[o2];
|
|
1892
1939
|
}
|
|
1893
1940
|
}
|
|
1894
1941
|
var BcfStatistics = /* @__PURE__ */ function() {
|
|
1895
|
-
return __component__$
|
|
1942
|
+
return __component__$h.exports;
|
|
1896
1943
|
}();
|
|
1897
1944
|
var t$6 = { props: { width: { type: String, default: "100%" }, minWidth: { type: String }, maxWidth: { type: String }, text: { type: String, default: "" }, cutPosition: { type: String, default: "middle", validator: (t2) => ["start", "middle", "end"].includes(t2) }, tooltip: { type: Boolean, default: true }, tooltipPosition: { type: String, default: "bottom", validator: (t2) => ["top", "right", "bottom", "left"].includes(t2) }, tooltipColor: { type: String, default: "primary", validator: (t2) => ["white", "primary", "secondary", "granite-light", "silver-light"].includes(t2) } }, data: () => ({ showTooltip: false, isOverflowing: false, textHead: "", textTail: "" }), watch: { width: "computeText", text: "computeText", cutPosition: "computeText" }, mounted() {
|
|
1898
1945
|
this.observer = new ResizeObserver(() => this.computeText()), this.observer.observe(this.$refs.textBox), this.computeText();
|
|
@@ -1954,25 +2001,25 @@ const l$3 = e$6({ render: function() {
|
|
|
1954
2001
|
}, staticRenderFns: [] }, function(t2) {
|
|
1955
2002
|
t2 && t2("data-v-79e3dcf0_0", { source: 'html[data-v-79e3dcf0]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}.bimdata-textbox[data-v-79e3dcf0]{display:inline-flex;position:relative}.bimdata-textbox__text--head[data-v-79e3dcf0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bimdata-textbox__text--tail[data-v-79e3dcf0]{width:50%;white-space:nowrap;overflow:hidden;text-overflow:"";direction:rtl}.bimdata-textbox__tooltip[data-v-79e3dcf0]{position:absolute;z-index:2;min-width:60px;max-width:200px;width:max-content;padding:calc(var(--spacing-unit)/ 3) calc(var(--spacing-unit)/ 2);border-radius:3px;text-align:center;white-space:normal;word-wrap:break-word}.bimdata-textbox__tooltip[data-v-79e3dcf0]::before{content:"";position:absolute;border-style:solid;border-width:8px 0 0 8px}.bimdata-textbox__tooltip--white[data-v-79e3dcf0]{background-color:var(--color-white);color:var(--color-primary)}.bimdata-textbox__tooltip--white[data-v-79e3dcf0]::before{border-color:var(--color-white) transparent transparent}.bimdata-textbox__tooltip--primary[data-v-79e3dcf0]{background-color:var(--color-primary);color:var(--color-white)}.bimdata-textbox__tooltip--primary[data-v-79e3dcf0]::before{border-color:var(--color-primary) transparent transparent}.bimdata-textbox__tooltip--secondary[data-v-79e3dcf0]{background-color:#f9c72c;color:#2f374a}.bimdata-textbox__tooltip--secondary[data-v-79e3dcf0]::before{border-color:var(--color-secondary) transparent transparent}.bimdata-textbox__tooltip--granite-light[data-v-79e3dcf0]{background-color:var(--color-granite-light);color:var(--color-white)}.bimdata-textbox__tooltip--granite-light[data-v-79e3dcf0]::before{border-color:var(--color-granite-light) transparent transparent}.bimdata-textbox__tooltip--silver-light[data-v-79e3dcf0]{background-color:var(--color-silver-light);color:var(--color-primary)}.bimdata-textbox__tooltip--silver-light[data-v-79e3dcf0]::before{border-color:var(--color-silver-light) transparent transparent}.bimdata-textbox__tooltip--top[data-v-79e3dcf0]{top:-8px;left:50%;transform:translateX(-50%) translateY(-100%)}.bimdata-textbox__tooltip--top[data-v-79e3dcf0]::before{top:calc(100% - 4px);left:calc(50% - 4px);transform:rotate(135deg)}.bimdata-textbox__tooltip--right[data-v-79e3dcf0]{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}.bimdata-textbox__tooltip--right[data-v-79e3dcf0]::before{top:calc(50% - 4px);left:-4px;transform:rotate(-135deg)}.bimdata-textbox__tooltip--bottom[data-v-79e3dcf0]{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}.bimdata-textbox__tooltip--bottom[data-v-79e3dcf0]::before{top:-4px;left:calc(50% - 4px);transform:rotate(-45deg)}.bimdata-textbox__tooltip--left[data-v-79e3dcf0]{top:50%;left:-8px;transform:translateX(-100%) translateY(-50%)}.bimdata-textbox__tooltip--left[data-v-79e3dcf0]::before{top:calc(50% - 4px);left:calc(100% - 4px);transform:rotate(45deg)}', map: void 0, media: void 0 });
|
|
1956
2003
|
}, t$6, "data-v-79e3dcf0", false, void 0, false, a$5, void 0, void 0);
|
|
1957
|
-
var render$
|
|
2004
|
+
var render$g = function() {
|
|
1958
2005
|
var _vm = this;
|
|
1959
2006
|
var _h = _vm.$createElement;
|
|
1960
2007
|
var _c = _vm._self._c || _h;
|
|
1961
2008
|
return _c("svg", { attrs: { "width": "84", "height": "81", "viewBox": "0 0 84 81", "fill": "none", "xmlns": "http://www.w3.org/2000/svg" } }, [_c("path", { attrs: { "d": "M83.3154 40.6328C83.3154 62.7242 65.4068 80.6328 43.3154 80.6328C21.224 80.6328 3.31543 62.7242 3.31543 40.6328C3.31543 18.5414 21.224 0.632812 43.3154 0.632812C65.4068 0.632812 83.3154 18.5414 83.3154 40.6328Z", "fill": "#FFFFFF" } }), _c("path", { attrs: { "d": "M46.2756 13.5376L34.124 58.8879C33.9787 59.4301 34.3035 59.9926 34.8457 60.1379L68.3655 69.1195C68.9077 69.2648 69.4702 68.94 69.6155 68.3978L78.333 35.8639L67.4883 32.9581C66.9461 32.8128 66.6213 32.2503 66.7666 31.708L70.2008 18.8916L47.5256 12.8159C46.9834 12.6706 46.4209 12.9953 46.2756 13.5376Z", "fill": "#FFFFFF" } }), _c("path", { staticClass: "fill-silver", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M45.7926 13.4082C46.0094 12.5992 46.8461 12.1161 47.655 12.3329L70.8131 18.5381L67.2496 31.8374C67.1758 32.1129 67.0765 32.4855 67.0765 32.4855L78.92 35.6661L70.0985 68.5272C69.8817 69.3362 69.045 69.8192 68.2361 69.6024L34.7163 60.6209C33.9073 60.4041 33.4243 59.5674 33.641 58.7584L45.7926 13.4082ZM47.3962 13.2988C47.1207 13.225 46.8324 13.3915 46.7585 13.667L34.607 59.0173C34.5331 59.2928 34.6996 59.5811 34.9751 59.6549L68.4949 68.6365C68.7704 68.7103 69.0587 68.5439 69.1326 68.2684L77.7206 36.2174L67.3589 33.441C66.55 33.2243 66.0669 32.3876 66.2837 31.5786L69.5884 19.2452L47.3962 13.2988Z" } }), _c("path", { staticClass: "fill-silver", attrs: { "d": "M67.0765 32.4855L70.8131 18.5404L78.92 35.6661L67.0765 32.4855Z" } }), _c("path", { staticClass: "fill-silver", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M44.3876 52.686L48.3872 37.7594L67.8264 42.9682L63.8269 57.8947L44.3876 52.686ZM47.0917 37.0402C47.2458 36.4651 47.837 36.1238 48.4121 36.2779L68.5456 41.6726C69.1208 41.8268 69.4621 42.4179 69.308 42.9931L65.1224 58.6139C64.9683 59.1891 64.3771 59.5304 63.802 59.3763L43.6684 53.9815C43.0933 53.8274 42.752 53.2362 42.9061 52.6611L47.0917 37.0402ZM53.3118 42.9855C52.9778 44.2316 51.697 44.9712 50.4508 44.6373C49.2047 44.3034 48.4652 43.0225 48.7991 41.7763C49.133 40.5302 50.4139 39.7907 51.66 40.1246C52.9061 40.4585 53.6457 41.7394 53.3118 42.9855ZM46.7528 49.4132L46.1482 51.6695L62.8104 56.1342L64.2521 50.7536L60.6945 44.5916L52.992 49.0387L51.5943 46.6179L46.7528 49.4132Z" } }), _c("path", { attrs: { "d": "M7.70191 20.1034L19.8535 65.4537C19.9988 65.9959 20.5613 66.3207 21.1035 66.1754L54.6233 57.1938C55.1655 57.0485 55.4903 56.486 55.345 55.9437L46.6276 23.4098L35.783 26.3157C35.2407 26.4609 34.6782 26.1362 34.5329 25.5939L31.0988 12.7776L8.42363 18.8533C7.88139 18.9986 7.55662 19.5612 7.70191 20.1034Z", "fill": "white" } }), _c("path", { staticClass: "fill-silver", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M7.21895 20.2328C7.00219 19.4238 7.48525 18.5871 8.29422 18.3704L31.4523 12.1652L35.0159 25.4645C35.0897 25.74 35.1918 26.119 35.1918 26.119L47.0371 22.9451L55.828 55.8143C56.0447 56.6233 55.5617 57.46 54.7527 57.6767L21.2329 66.6583C20.424 66.8751 19.5873 66.392 19.3705 65.5831L7.21895 20.2328ZM8.55304 19.3363C8.27754 19.4101 8.11106 19.6985 8.18488 19.974L20.3365 65.3243C20.4103 65.5998 20.6986 65.7662 20.9741 65.6924L54.4939 56.7108C54.7694 56.637 54.9359 56.3487 54.8621 56.0732L46.274 24.0222L35.9124 26.7986C35.1034 27.0154 34.2667 26.5323 34.0499 25.7234L30.7452 13.3899L8.55304 19.3363Z" } }), _c("path", { staticClass: "fill-silver", attrs: { "d": "M35.1918 26.119L31.4534 12.1672L47.0371 22.9451L35.1918 26.119Z" } }), _c("path", { staticClass: "fill-silver", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M25.6411 54.9509L21.6416 40.0243L41.0808 34.8156L45.0804 49.7422L25.6411 54.9509ZM20.16 40.0492C20.0059 39.4741 20.3472 38.8829 20.9224 38.7288L41.0559 33.3341C41.631 33.1799 42.2222 33.5213 42.3763 34.0964L46.5619 49.7172C46.716 50.2924 46.3747 50.8836 45.7996 51.0377L25.666 56.4324C25.0909 56.5865 24.4997 56.2452 24.3456 55.6701L20.16 40.0492ZM28.5194 42.088C28.8533 43.3341 28.1138 44.615 26.8676 44.9489C25.6215 45.2828 24.3406 44.5433 24.0067 43.2971C23.6728 42.051 24.4123 40.7701 25.6585 40.4362C26.9046 40.1023 28.1855 40.8418 28.5194 42.088ZM26.053 50.934L26.6576 53.1903L43.3198 48.7257L41.8781 43.3452L35.7161 39.7876L31.2691 47.4901L28.8483 46.0924L26.053 50.934Z" } }), _c("path", { staticClass: "fill-secondary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M6.9375 17.1323V12.6323H7.9375V17.1323H6.9375Z" } }), _c("path", { staticClass: "fill-secondary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M5.72393 18.0419L2.54195 14.8599L3.24906 14.1528L6.43104 17.3348L5.72393 18.0419Z" } }), _c("path", { staticClass: "fill-secondary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M5.46582 19.615H0.96582L0.96582 18.615H5.46582V19.615Z" } }), _c("path", { staticClass: "fill-primary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M46.5972 10.507L47.7619 6.16033L48.7278 6.41915L47.5631 10.7658L46.5972 10.507Z" } }), _c("path", { staticClass: "fill-primary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M45.1895 11.0715L42.9395 7.17435L43.8056 6.67435L46.0556 10.5715L45.1895 11.0715Z" } }), _c("path", { staticClass: "fill-primary", attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", "d": "M44.5331 12.5242L40.1864 11.3595L40.4452 10.3936L44.7919 11.5582L44.5331 12.5242Z" } })]);
|
|
1962
2009
|
};
|
|
1963
|
-
var staticRenderFns$
|
|
1964
|
-
const __vue2_script$
|
|
1965
|
-
const __cssModules$
|
|
1966
|
-
var __component__$
|
|
1967
|
-
function __vue2_injectStyles$
|
|
1968
|
-
for (let o2 in __cssModules$
|
|
1969
|
-
this[o2] = __cssModules$
|
|
2010
|
+
var staticRenderFns$g = [];
|
|
2011
|
+
const __vue2_script$g = {};
|
|
2012
|
+
const __cssModules$g = {};
|
|
2013
|
+
var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
|
|
2014
|
+
function __vue2_injectStyles$g(context) {
|
|
2015
|
+
for (let o2 in __cssModules$g) {
|
|
2016
|
+
this[o2] = __cssModules$g[o2];
|
|
1970
2017
|
}
|
|
1971
2018
|
}
|
|
1972
2019
|
var BcfTopicDefaultImage = /* @__PURE__ */ function() {
|
|
1973
|
-
return __component__$
|
|
2020
|
+
return __component__$g.exports;
|
|
1974
2021
|
}();
|
|
1975
|
-
var render$
|
|
2022
|
+
var render$f = function() {
|
|
1976
2023
|
var _vm = this;
|
|
1977
2024
|
var _h = _vm.$createElement;
|
|
1978
2025
|
var _c = _vm._self._c || _h;
|
|
@@ -1986,9 +2033,9 @@ var render$e = function() {
|
|
|
1986
2033
|
return _vm.$emit("open-bcf-topic", _vm.bcfTopic);
|
|
1987
2034
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicCard.see")) + " ")])], 1)])]);
|
|
1988
2035
|
};
|
|
1989
|
-
var staticRenderFns$
|
|
2036
|
+
var staticRenderFns$f = [];
|
|
1990
2037
|
var BcfTopicCard_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicCard_2FBcfTopicCard_vue_src_scoped_true_lang = "";
|
|
1991
|
-
const __vue2_script$
|
|
2038
|
+
const __vue2_script$f = {
|
|
1992
2039
|
components: {
|
|
1993
2040
|
BcfTopicDefaultImage,
|
|
1994
2041
|
BIMDataButton: c$5,
|
|
@@ -2031,35 +2078,35 @@ const __vue2_script$e = {
|
|
|
2031
2078
|
};
|
|
2032
2079
|
}
|
|
2033
2080
|
};
|
|
2034
|
-
const __cssModules$
|
|
2035
|
-
var __component__$
|
|
2036
|
-
function __vue2_injectStyles$
|
|
2037
|
-
for (let o2 in __cssModules$
|
|
2038
|
-
this[o2] = __cssModules$
|
|
2081
|
+
const __cssModules$f = {};
|
|
2082
|
+
var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, "9ee26932", null, null);
|
|
2083
|
+
function __vue2_injectStyles$f(context) {
|
|
2084
|
+
for (let o2 in __cssModules$f) {
|
|
2085
|
+
this[o2] = __cssModules$f[o2];
|
|
2039
2086
|
}
|
|
2040
2087
|
}
|
|
2041
2088
|
var BcfTopicCard = /* @__PURE__ */ function() {
|
|
2042
|
-
return __component__$
|
|
2089
|
+
return __component__$f.exports;
|
|
2043
2090
|
}();
|
|
2044
|
-
var render$
|
|
2091
|
+
var render$e = function() {
|
|
2045
2092
|
var _vm = this;
|
|
2046
2093
|
var _h = _vm.$createElement;
|
|
2047
2094
|
var _c = _vm._self._c || _h;
|
|
2048
2095
|
return _c("svg", { attrs: { "width": "66", "height": "60", "viewBox": "0 0 66 60", "fill": "none", "xmlns": "http://www.w3.org/2000/svg" } }, [_c("path", { staticClass: "fill-granite-light", attrs: { "opacity": "0.21", "d": "M14.4999 59.2445C22.2871 59.2445 28.5999 58.9311 28.5999 58.5445C28.5999 58.1579 22.2871 57.8445 14.4999 57.8445C6.71269 57.8445 0.399902 58.1579 0.399902 58.5445C0.399902 58.9311 6.71269 59.2445 14.4999 59.2445Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M46.84 26.5444C45.0533 26.5444 43.5645 28.0444 43.5645 29.8444C43.5645 31.6444 45.0533 33.1444 46.84 33.1444C48.6267 33.1444 50.1156 31.6444 50.1156 29.8444C50.1156 28.0444 48.6267 26.5444 46.84 26.5444ZM48.4282 29.8444C48.4282 30.7444 47.7333 31.4444 46.84 31.4444C45.9467 31.4444 45.2519 30.7444 45.2519 29.8444C45.2519 28.9444 45.9467 28.2444 46.84 28.2444C47.7333 28.2444 48.4282 29.0444 48.4282 29.8444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M54.8797 27.6444C52.9938 27.6444 51.5049 29.1444 51.5049 31.0444C51.5049 32.9444 52.9938 34.4444 54.8797 34.4444C56.7656 34.4444 58.2545 32.9444 58.2545 31.0444C58.1553 29.1444 56.6664 27.6444 54.8797 27.6444ZM56.4678 31.0444C56.4678 31.9444 55.773 32.6444 54.8797 32.6444C53.9864 32.6444 53.2916 31.9444 53.2916 31.0444C53.2916 30.1444 53.9864 29.4444 54.8797 29.4444C55.773 29.4444 56.4678 30.1444 56.4678 31.0444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M52.1005 11.1444C44.7554 11.1444 38.7998 17.1444 38.7998 24.5444V50.9444C38.7998 53.0444 40.4872 54.8444 42.6709 54.8444C42.9687 54.8444 43.2665 54.8444 43.5642 54.7444C43.6635 56.8444 45.3509 58.5444 47.4354 58.5444C49.5198 58.5444 51.3065 56.8444 51.3065 54.6444V52.7444C51.6042 52.8444 51.902 52.8444 52.1998 52.8444H52.3983C52.6961 52.8444 52.9939 52.8444 53.2917 52.7444C53.4902 54.7444 55.0783 56.2444 57.0635 56.2444C57.3613 56.2444 57.6591 56.2444 57.9568 56.1444C58.3539 57.9444 59.8428 59.2444 61.7287 59.2444C63.8131 59.2444 65.5998 57.5444 65.5998 55.3444V24.5444C65.4013 17.1444 59.4457 11.1444 52.1005 11.1444ZM57.7583 47.8444V52.4444C57.7583 52.9444 57.3613 53.3444 56.865 53.3444C56.3687 53.3444 55.9717 52.9444 55.9717 52.4444V47.1444H52.9939V49.0444C52.9939 49.5444 52.5968 49.9444 52.1005 49.9444H51.902C51.4057 49.9444 51.0087 49.5444 51.0087 49.0444V42.0444H48.0309V54.6444C48.0309 55.1444 47.6339 55.5444 47.1376 55.5444C46.6413 55.5444 46.2442 55.1444 46.2442 54.6444V48.5444H43.2665V51.0444C43.2665 51.5444 42.8694 51.9444 42.3731 51.9444C41.8768 51.9444 41.4798 51.5444 41.4798 51.0444V24.5444C41.4798 18.8444 46.145 14.1444 51.8028 14.1444C57.4605 14.1444 62.1257 18.8444 62.1257 24.5444V55.3444C62.1257 55.8444 61.7287 56.2444 61.2324 56.2444C60.7361 56.2444 60.3391 55.8444 60.3391 55.3444V47.8444H57.7583Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M29.8001 6.84446C31.5674 6.84446 33.0001 5.41177 33.0001 3.64446C33.0001 1.87715 31.5674 0.444458 29.8001 0.444458C28.0328 0.444458 26.6001 1.87715 26.6001 3.64446C26.6001 5.41177 28.0328 6.84446 29.8001 6.84446Z" } }), _c("path", { staticClass: "fill-secondary", attrs: { "d": "M23.8997 15.9444C25.1147 15.9444 26.0997 14.9595 26.0997 13.7444C26.0997 12.5294 25.1147 11.5444 23.8997 11.5444C22.6847 11.5444 21.6997 12.5294 21.6997 13.7444C21.6997 14.9595 22.6847 15.9444 23.8997 15.9444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M28.8999 22.0444C29.7283 22.0444 30.3999 21.3729 30.3999 20.5444C30.3999 19.716 29.7283 19.0444 28.8999 19.0444C28.0715 19.0444 27.3999 19.716 27.3999 20.5444C27.3999 21.3729 28.0715 22.0444 28.8999 22.0444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M13.9995 33.5444C15.2995 34.1444 16.4995 34.8444 17.5995 35.7444C19.1995 37.1444 20.4995 38.7444 21.3995 40.6444C21.6995 41.2444 21.8995 41.8444 22.0995 42.4444C22.5995 43.9444 22.2995 45.2444 21.1995 46.3444C18.8995 48.6444 16.1995 49.3444 13.0995 48.5444C12.8995 48.5444 12.6995 48.5444 12.5995 48.5444C11.3995 48.7444 10.0995 48.8444 8.89951 48.6444C8.59951 48.6444 8.39951 48.5444 7.99951 48.5444C8.29951 49.0444 8.59951 49.4444 8.89951 49.9444C9.79951 51.2444 11.0995 52.2444 12.4995 52.8444C14.3995 53.6444 16.2995 53.8444 18.2995 53.4444C20.0995 53.0444 21.6995 52.1444 22.9995 50.7444C24.3995 49.2444 25.2995 47.4444 25.4995 45.3444C25.5995 44.0444 25.5995 42.6444 25.0995 41.4444C24.6995 40.4444 24.0995 39.5444 23.3995 38.7444C22.0995 37.0444 20.5995 35.5444 19.0995 34.0444C18.4995 33.4444 17.8995 32.9444 17.2995 32.4444C17.1995 32.3444 17.0995 32.3444 16.9995 32.3444C15.6995 32.1444 14.7995 32.3444 13.9995 33.5444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M11.4997 29.6444C10.3997 29.5444 9.49967 29.6444 8.59967 29.9444C7.39967 30.2444 6.19967 30.8444 5.19967 31.6444C4.19967 32.4444 3.39967 33.3444 2.79967 34.5444C1.99967 36.0444 1.59967 37.6444 1.69967 39.3444C1.79967 41.0444 2.29967 42.7444 3.29967 44.1444C4.19967 45.4444 5.29967 46.4444 6.59967 47.1444C7.59967 47.6444 8.49967 48.0444 9.59967 48.0444C11.3997 48.0444 13.1997 47.8444 14.8997 47.3444C16.1997 47.0444 17.5997 46.6444 18.8997 46.2444C19.4997 46.0444 20.1997 45.9444 20.7997 45.5444C21.1997 45.3444 21.3997 44.8444 21.5997 44.3444C21.7997 43.6444 21.7997 42.9444 21.3997 42.2444C21.0997 42.4444 20.7997 42.6444 20.4997 42.8444C19.1997 43.6444 17.7997 44.2444 16.2997 44.6444C14.2997 45.1444 12.1997 45.1444 10.1997 44.8444C8.89967 44.6444 7.79967 44.0444 7.09967 42.7444C6.69967 41.8444 6.49967 40.9444 6.49967 39.9444C6.39967 37.5444 7.29967 35.5444 8.99967 33.8444C8.99967 33.8444 9.19967 33.5444 9.29967 33.2444C9.79967 31.9444 10.3997 30.7444 11.4997 29.6444Z" } }), _c("path", { staticClass: "fill-silver-dark", attrs: { "d": "M9.89953 44.2445C9.89953 44.0445 9.89953 43.8445 9.89953 43.7445C9.69953 41.5445 9.99953 39.4445 10.7995 37.4445C11.4995 35.5445 12.5995 33.9445 13.9995 32.5445C14.8995 31.6445 15.9995 31.4445 17.1995 31.6445C19.7995 32.2445 21.7995 33.6445 22.8995 36.1445C23.0995 36.6445 23.1995 37.2445 23.4995 37.7445C23.5995 38.0445 23.8995 38.3445 24.0995 38.6445C24.7995 39.6445 25.4995 40.7445 25.8995 41.9445C25.8995 41.9445 25.8995 42.0445 25.9995 42.1445C26.2995 41.4445 26.6995 40.7445 26.9995 40.1445C27.4995 38.9445 27.5995 37.6445 27.4995 36.3445C27.2995 34.1445 26.4995 32.1445 24.8995 30.5445C23.7995 29.3445 22.3995 28.5445 20.7995 28.1445C19.0995 27.6445 17.2995 27.6445 15.5995 28.2445C13.9995 28.7445 12.5995 29.5445 11.4995 30.9445C11.0995 31.4445 10.6995 32.0445 10.3995 32.7445C9.79953 34.0445 9.29953 35.4445 8.89953 36.7445C8.39953 38.5445 7.99953 40.4445 7.59953 42.2445C7.49953 42.8445 7.89953 43.2445 8.29953 43.6445C8.59953 43.9445 9.19953 44.1445 9.89953 44.2445Z" } }), _c("path", { staticClass: "fill-secondary", attrs: { "d": "M37.3997 7.04441C38.3386 7.04441 39.0997 6.28329 39.0997 5.34441C39.0997 4.40553 38.3386 3.64441 37.3997 3.64441C36.4608 3.64441 35.6997 4.40553 35.6997 5.34441C35.6997 6.28329 36.4608 7.04441 37.3997 7.04441Z" } })]);
|
|
2049
2096
|
};
|
|
2050
|
-
var staticRenderFns$
|
|
2051
|
-
const __vue2_script$
|
|
2052
|
-
const __cssModules$
|
|
2053
|
-
var __component__$
|
|
2054
|
-
function __vue2_injectStyles$
|
|
2055
|
-
for (let o2 in __cssModules$
|
|
2056
|
-
this[o2] = __cssModules$
|
|
2097
|
+
var staticRenderFns$e = [];
|
|
2098
|
+
const __vue2_script$e = {};
|
|
2099
|
+
const __cssModules$e = {};
|
|
2100
|
+
var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
|
|
2101
|
+
function __vue2_injectStyles$e(context) {
|
|
2102
|
+
for (let o2 in __cssModules$e) {
|
|
2103
|
+
this[o2] = __cssModules$e[o2];
|
|
2057
2104
|
}
|
|
2058
2105
|
}
|
|
2059
2106
|
var BcfTopicCreationCardImage = /* @__PURE__ */ function() {
|
|
2060
|
-
return __component__$
|
|
2107
|
+
return __component__$e.exports;
|
|
2061
2108
|
}();
|
|
2062
|
-
var render$
|
|
2109
|
+
var render$d = function() {
|
|
2063
2110
|
var _vm = this;
|
|
2064
2111
|
var _h = _vm.$createElement;
|
|
2065
2112
|
var _c = _vm._self._c || _h;
|
|
@@ -2067,9 +2114,9 @@ var render$c = function() {
|
|
|
2067
2114
|
return _vm.$emit("create-bcf-topic");
|
|
2068
2115
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "plus", "size": "m", "fill": "", "color": "default" } })], 1)], 1);
|
|
2069
2116
|
};
|
|
2070
|
-
var staticRenderFns$
|
|
2117
|
+
var staticRenderFns$d = [];
|
|
2071
2118
|
var BcfTopicCreationCard_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicCreationCard_2FBcfTopicCreationCard_vue_src_scoped_true_lang = "";
|
|
2072
|
-
const __vue2_script$
|
|
2119
|
+
const __vue2_script$d = {
|
|
2073
2120
|
components: {
|
|
2074
2121
|
BcfTopicCreationCardImage,
|
|
2075
2122
|
BIMDataButton: c$5,
|
|
@@ -2077,15 +2124,15 @@ const __vue2_script$c = {
|
|
|
2077
2124
|
},
|
|
2078
2125
|
emits: ["create-bcf-topic"]
|
|
2079
2126
|
};
|
|
2080
|
-
const __cssModules$
|
|
2081
|
-
var __component__$
|
|
2082
|
-
function __vue2_injectStyles$
|
|
2083
|
-
for (let o2 in __cssModules$
|
|
2084
|
-
this[o2] = __cssModules$
|
|
2127
|
+
const __cssModules$d = {};
|
|
2128
|
+
var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, "b5e56a58", null, null);
|
|
2129
|
+
function __vue2_injectStyles$d(context) {
|
|
2130
|
+
for (let o2 in __cssModules$d) {
|
|
2131
|
+
this[o2] = __cssModules$d[o2];
|
|
2085
2132
|
}
|
|
2086
2133
|
}
|
|
2087
2134
|
var BcfTopicCreationCard = /* @__PURE__ */ function() {
|
|
2088
|
-
return __component__$
|
|
2135
|
+
return __component__$d.exports;
|
|
2089
2136
|
}();
|
|
2090
2137
|
function t$5(t2, e2, o2, i2, r2, n2, a2, s2, l2, c2) {
|
|
2091
2138
|
typeof a2 != "boolean" && (l2 = s2, s2 = a2, a2 = false);
|
|
@@ -2755,7 +2802,7 @@ const l$2 = o$2({ render: function() {
|
|
|
2755
2802
|
}, staticRenderFns: [] }, function(t2) {
|
|
2756
2803
|
t2 && t2("data-v-4b5d635b_0", { source: 'html[data-v-4b5d635b]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}html[data-v-4b5d635b]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}.text-left[data-v-4b5d635b]{text-align:left}.text-center[data-v-4b5d635b]{text-align:center}.text-right[data-v-4b5d635b]{text-align:right}.bimdata-link[data-v-4b5d635b]{color:var(--color-primary);border-bottom:1px solid var(--color-primary);font-weight:700}.primary-font[data-v-4b5d635b]{font-family:roboto,sans-serif}.bimdata-tooltip[data-v-4b5d635b]{position:relative}.bimdata-tooltip__tooltip[data-v-4b5d635b]{position:absolute;z-index:2;min-width:60px;width:max-content;padding:calc(var(--spacing-unit)/ 3) calc(var(--spacing-unit)/ 2);border-radius:3px;text-align:center;white-space:normal;word-wrap:break-word}.bimdata-tooltip__tooltip[data-v-4b5d635b]::before{content:"";position:absolute;border-style:solid;border-width:8px 0 0 8px}.bimdata-tooltip__tooltip--top[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--up[data-v-4b5d635b]{top:-8px;left:50%;transform:translateX(-50%) translateY(-100%)}.bimdata-tooltip__tooltip--top[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--up[data-v-4b5d635b]::before{top:calc(100% - 4px);left:calc(50% - 4px);transform:rotate(135deg)}.bimdata-tooltip__tooltip--right[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--left[data-v-4b5d635b]{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}.bimdata-tooltip__tooltip--right[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--left[data-v-4b5d635b]::before{top:calc(50% - 4px);left:-4px;transform:rotate(-135deg)}.bimdata-tooltip__tooltip--bottom[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--bottom[data-v-4b5d635b]{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}.bimdata-tooltip__tooltip--bottom[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--bottom[data-v-4b5d635b]::before{top:-4px;left:calc(50% - 4px);transform:rotate(-45deg)}.bimdata-tooltip__tooltip--left[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--right[data-v-4b5d635b]{top:50%;left:-8px;transform:translateX(-100%) translateY(-50%)}.bimdata-tooltip__tooltip--left[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--right[data-v-4b5d635b]::before{top:calc(50% - 4px);left:calc(100% - 4px);transform:rotate(45deg)}.bimdata-tooltip__tooltip--white[data-v-4b5d635b]{background-color:var(--color-white);color:var(--color-primary)}.bimdata-tooltip__tooltip--white[data-v-4b5d635b]::before{border-color:var(--color-white) transparent transparent}.bimdata-tooltip__tooltip--primary[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--primary[data-v-4b5d635b]{background-color:var(--color-primary);color:var(--color-white)}.bimdata-tooltip__tooltip--primary[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--primary[data-v-4b5d635b]::before{border-color:var(--color-primary) transparent transparent}.bimdata-tooltip__tooltip--secondary[data-v-4b5d635b]{background-color:#f9c72c;color:#2f374a}.bimdata-tooltip__tooltip--secondary[data-v-4b5d635b]::before{border-color:var(--color-secondary) transparent transparent}.bimdata-tooltip__tooltip--granite-light[data-v-4b5d635b],.bimdata-tooltip__tooltip.bimdata-tooltip--grey[data-v-4b5d635b]{background-color:var(--color-granite-light);color:var(--color-white)}.bimdata-tooltip__tooltip--granite-light[data-v-4b5d635b]::before,.bimdata-tooltip__tooltip.bimdata-tooltip--grey[data-v-4b5d635b]::before{border-color:var(--color-granite-light) transparent transparent}.bimdata-tooltip__tooltip--silver-light[data-v-4b5d635b]{background-color:var(--color-silver-light);color:var(--color-primary)}.bimdata-tooltip__tooltip--silver-light[data-v-4b5d635b]::before{border-color:var(--color-silver-light) transparent transparent}.bimdata-tooltip__tooltip--success[data-v-4b5d635b]{background-color:var(--color-success);color:var(--color-white)}.bimdata-tooltip__tooltip--success[data-v-4b5d635b]::before{border-color:var(--color-success) transparent transparent}.bimdata-tooltip__tooltip--warning[data-v-4b5d635b]{background-color:var(--color-warning);color:var(--color-white)}.bimdata-tooltip__tooltip--warning[data-v-4b5d635b]::before{border-color:var(--color-warning) transparent transparent}.bimdata-tooltip__tooltip--high[data-v-4b5d635b]{background-color:var(--color-high);color:var(--color-white)}.bimdata-tooltip__tooltip--high[data-v-4b5d635b]::before{border-color:var(--color-high) transparent transparent}', map: void 0, media: void 0 });
|
|
2757
2804
|
}, t$2, "data-v-4b5d635b", false, void 0, false, r$2, void 0, void 0);
|
|
2758
|
-
var render$
|
|
2805
|
+
var render$c = function() {
|
|
2759
2806
|
var _vm = this;
|
|
2760
2807
|
var _h = _vm.$createElement;
|
|
2761
2808
|
var _c = _vm._self._c || _h;
|
|
@@ -2765,9 +2812,9 @@ var render$b = function() {
|
|
|
2765
2812
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "delete", "size": "xs", "fill": "", "color": "high" } })], 1)], 1);
|
|
2766
2813
|
}), 0), _c("BIMDataButton", { staticClass: "btn-upload", attrs: { "disabled": _vm.viewpoints.length >= 4, "width": "100%", "color": "primary", "fill": "", "radius": "" } }, [_c("label", { attrs: { "for": "files" } }, [_c("BIMDataIcon", { attrs: { "name": "camera", "size": "xs", "margin": "0 6px 0 0" } }), _vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicForm.addPictureButton")) + " ")], 1), _c("input", { attrs: { "disabled": _vm.viewpoints.length >= 4, "hidden": "", "id": "files", "type": "file", "multiple": "", "accept": "image/png, image/jpeg" }, on: { "change": _vm.addImage } })])] : [_c("div", { staticClass: "bcf-topic-images__upload" }, [_c("span", { staticClass: "icon" }, [_c("BIMDataIcon", { attrs: { "name": "unarchive", "size": "m" } })], 1), _c("BIMDataButton", { staticClass: "btn-upload", attrs: { "color": "primary", "outline": "", "radius": "" } }, [_c("label", { attrs: { "for": "files" } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicForm.dragDropImageText")) + " ")]), _c("input", { attrs: { "hidden": "", "id": "files", "type": "file", "multiple": "", "accept": "image/png, image/jpeg" }, on: { "change": _vm.addImage } })])], 1)]], 2);
|
|
2767
2814
|
};
|
|
2768
|
-
var staticRenderFns$
|
|
2815
|
+
var staticRenderFns$c = [];
|
|
2769
2816
|
var BcfTopicImages_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicForm_2FbcfTopicImages_2FBcfTopicImages_vue_src_scoped_true_lang = "";
|
|
2770
|
-
const __vue2_script$
|
|
2817
|
+
const __vue2_script$c = {
|
|
2771
2818
|
components: {
|
|
2772
2819
|
BIMDataButton: c$5,
|
|
2773
2820
|
BIMDataIcon: v$2
|
|
@@ -2807,17 +2854,17 @@ const __vue2_script$b = {
|
|
|
2807
2854
|
};
|
|
2808
2855
|
}
|
|
2809
2856
|
};
|
|
2810
|
-
const __cssModules$
|
|
2811
|
-
var __component__$
|
|
2812
|
-
function __vue2_injectStyles$
|
|
2813
|
-
for (let o2 in __cssModules$
|
|
2814
|
-
this[o2] = __cssModules$
|
|
2857
|
+
const __cssModules$c = {};
|
|
2858
|
+
var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, "46dea43b", null, null);
|
|
2859
|
+
function __vue2_injectStyles$c(context) {
|
|
2860
|
+
for (let o2 in __cssModules$c) {
|
|
2861
|
+
this[o2] = __cssModules$c[o2];
|
|
2815
2862
|
}
|
|
2816
2863
|
}
|
|
2817
2864
|
var BcfTopicImages = /* @__PURE__ */ function() {
|
|
2818
|
-
return __component__$
|
|
2865
|
+
return __component__$c.exports;
|
|
2819
2866
|
}();
|
|
2820
|
-
var render$
|
|
2867
|
+
var render$b = function() {
|
|
2821
2868
|
var _vm = this;
|
|
2822
2869
|
var _h = _vm.$createElement;
|
|
2823
2870
|
var _c = _vm._self._c || _h;
|
|
@@ -2825,11 +2872,11 @@ var render$a = function() {
|
|
|
2825
2872
|
return _c("div", { key: viewpoint.guid || i2, staticClass: "snapshot-preview", class: { single: _vm.viewpoints.length === 1 } }, [viewpoint.snapshot.snapshot_data ? _c("img", { attrs: { "src": viewpoint.snapshot.snapshot_data } }) : _vm._e(), _c("BIMDataButton", { staticClass: "btn-delete", attrs: { "fill": "", "rounded": "", "icon": "" }, on: { "click": function($event) {
|
|
2826
2873
|
return _vm.deleteViewpoint(viewpoint);
|
|
2827
2874
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "delete", "size": "xs", "fill": "", "color": "high" } })], 1)], 1);
|
|
2828
|
-
}), 0)] : [_c("div", { staticClass: "bcf-topic-snapshots__create", on: { "click": _vm.
|
|
2875
|
+
}), 0)] : [_c("div", { staticClass: "bcf-topic-snapshots__create", on: { "click": _vm.createViewpoints } }, [_c("BIMDataIcon", { attrs: { "name": "camera", "size": "xl" } })], 1)]], 2);
|
|
2829
2876
|
};
|
|
2830
|
-
var staticRenderFns$
|
|
2877
|
+
var staticRenderFns$b = [];
|
|
2831
2878
|
var BcfTopicSnapshots_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicForm_2FbcfTopicSnapshots_2FBcfTopicSnapshots_vue_src_scoped_true_lang = "";
|
|
2832
|
-
const __vue2_script$
|
|
2879
|
+
const __vue2_script$b = {
|
|
2833
2880
|
components: {
|
|
2834
2881
|
BIMDataButton: c$5,
|
|
2835
2882
|
BIMDataIcon: v$2
|
|
@@ -2847,36 +2894,39 @@ const __vue2_script$a = {
|
|
|
2847
2894
|
setup(_, { emit }) {
|
|
2848
2895
|
const getViewers = inject("getViewers", () => {
|
|
2849
2896
|
});
|
|
2850
|
-
const
|
|
2851
|
-
|
|
2897
|
+
const createViewpoints = async () => {
|
|
2898
|
+
Object.entries(getViewers()).forEach(([id, viewers]) => {
|
|
2899
|
+
const [type, config2] = Object.entries(VIEWPOINT_CONFIG).find(([, c2]) => c2.plugin === id);
|
|
2900
|
+
viewers.forEach(async (viewer) => {
|
|
2901
|
+
const viewpoint = await viewer.getViewpoint();
|
|
2902
|
+
const { order, category } = config2 != null ? config2 : {};
|
|
2903
|
+
viewpoint.order = order;
|
|
2904
|
+
viewpoint.originating_system = category;
|
|
2905
|
+
viewpoint.authoring_tool_id = type;
|
|
2906
|
+
emit("add-viewpoint", viewpoint);
|
|
2907
|
+
});
|
|
2908
|
+
});
|
|
2852
2909
|
};
|
|
2853
2910
|
const deleteViewpoint2 = (viewpoint) => {
|
|
2854
2911
|
emit("delete-viewpoint", viewpoint);
|
|
2855
2912
|
};
|
|
2856
|
-
const takeSnapshots = async () => {
|
|
2857
|
-
Object.values(getViewers()).flat().forEach(async (viewer) => {
|
|
2858
|
-
if (viewer) {
|
|
2859
|
-
addViewpoint(await viewer.getViewpoint());
|
|
2860
|
-
}
|
|
2861
|
-
});
|
|
2862
|
-
};
|
|
2863
2913
|
return {
|
|
2864
|
-
|
|
2865
|
-
|
|
2914
|
+
createViewpoints,
|
|
2915
|
+
deleteViewpoint: deleteViewpoint2
|
|
2866
2916
|
};
|
|
2867
2917
|
}
|
|
2868
2918
|
};
|
|
2869
|
-
const __cssModules$
|
|
2870
|
-
var __component__$
|
|
2871
|
-
function __vue2_injectStyles$
|
|
2872
|
-
for (let o2 in __cssModules$
|
|
2873
|
-
this[o2] = __cssModules$
|
|
2919
|
+
const __cssModules$b = {};
|
|
2920
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "08b68b6b", null, null);
|
|
2921
|
+
function __vue2_injectStyles$b(context) {
|
|
2922
|
+
for (let o2 in __cssModules$b) {
|
|
2923
|
+
this[o2] = __cssModules$b[o2];
|
|
2874
2924
|
}
|
|
2875
2925
|
}
|
|
2876
2926
|
var BcfTopicSnapshots = /* @__PURE__ */ function() {
|
|
2877
|
-
return __component__$
|
|
2927
|
+
return __component__$b.exports;
|
|
2878
2928
|
}();
|
|
2879
|
-
var render$
|
|
2929
|
+
var render$a = function() {
|
|
2880
2930
|
var _vm = this;
|
|
2881
2931
|
var _h = _vm.$createElement;
|
|
2882
2932
|
var _c = _vm._self._c || _h;
|
|
@@ -2918,9 +2968,9 @@ var render$9 = function() {
|
|
|
2918
2968
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicForm.continueButton")) + " ")])];
|
|
2919
2969
|
}, proxy: true }], null, false, 3660211068) }) : _vm._e()], 1);
|
|
2920
2970
|
};
|
|
2921
|
-
var staticRenderFns$
|
|
2971
|
+
var staticRenderFns$a = [];
|
|
2922
2972
|
var BcfTopicForm_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicForm_2FBcfTopicForm_vue_src_scoped_true_lang = "";
|
|
2923
|
-
const __vue2_script$
|
|
2973
|
+
const __vue2_script$a = {
|
|
2924
2974
|
components: {
|
|
2925
2975
|
BcfTopicImages,
|
|
2926
2976
|
BcfTopicSnapshots,
|
|
@@ -3067,7 +3117,7 @@ const __vue2_script$9 = {
|
|
|
3067
3117
|
loading.value = true;
|
|
3068
3118
|
viewpointsToUpdate.value = viewpoints.value.map((viewpoint) => __spreadProps(__spreadValues({}, viewpoint), { snapshot: void 0 }));
|
|
3069
3119
|
if (viewpointsToUpdate.value.length === 0) {
|
|
3070
|
-
viewpointsToCreate.value.sort((v2) =>
|
|
3120
|
+
viewpointsToCreate.value.sort((v1, v2) => v1.order - v2.order);
|
|
3071
3121
|
}
|
|
3072
3122
|
if (props.bcfTopicObjects) {
|
|
3073
3123
|
if (viewpointsToUpdate.value.length > 0 || viewpointsToCreate.value.length > 0) {
|
|
@@ -3140,38 +3190,274 @@ const __vue2_script$9 = {
|
|
|
3140
3190
|
};
|
|
3141
3191
|
}
|
|
3142
3192
|
};
|
|
3143
|
-
const __cssModules$
|
|
3144
|
-
var __component__$
|
|
3145
|
-
function __vue2_injectStyles$
|
|
3146
|
-
for (let o2 in __cssModules$
|
|
3147
|
-
this[o2] = __cssModules$
|
|
3193
|
+
const __cssModules$a = {};
|
|
3194
|
+
var __component__$a = /* @__PURE__ */ normalizeComponent(__vue2_script$a, render$a, staticRenderFns$a, false, __vue2_injectStyles$a, "574ca2ba", null, null);
|
|
3195
|
+
function __vue2_injectStyles$a(context) {
|
|
3196
|
+
for (let o2 in __cssModules$a) {
|
|
3197
|
+
this[o2] = __cssModules$a[o2];
|
|
3148
3198
|
}
|
|
3149
3199
|
}
|
|
3150
3200
|
var BcfTopicForm = /* @__PURE__ */ function() {
|
|
3151
|
-
return __component__$
|
|
3201
|
+
return __component__$a.exports;
|
|
3152
3202
|
}();
|
|
3153
|
-
var
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3203
|
+
var render$9 = function() {
|
|
3204
|
+
var _vm = this;
|
|
3205
|
+
var _h = _vm.$createElement;
|
|
3206
|
+
var _c = _vm._self._c || _h;
|
|
3207
|
+
return _c("div", { staticClass: "user-avatar", class: "user-avatar--" + (_vm.user.profile_picture ? "silver-light" : _vm.color), style: {
|
|
3208
|
+
width: _vm.size + "px",
|
|
3209
|
+
height: _vm.size + "px",
|
|
3210
|
+
fontSize: (_vm.initialsSize ? _vm.initialsSize : +_vm.size * 0.382) + "px"
|
|
3211
|
+
} }, [_vm.user.profile_picture ? [_c("img", { attrs: { "src": _vm.user.profile_picture } })] : _vm.initials ? [_vm._v(" " + _vm._s(_vm.initials) + " ")] : [_c("BIMDataIcon", { attrs: { "name": "user", "size": "xs" } })]], 2);
|
|
3212
|
+
};
|
|
3213
|
+
var staticRenderFns$9 = [];
|
|
3214
|
+
var UserAvatar_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FuserAvatar_2FUserAvatar_vue_src_scoped_true_lang = "";
|
|
3215
|
+
const __vue2_script$9 = {
|
|
3216
|
+
props: {
|
|
3217
|
+
user: {
|
|
3218
|
+
type: Object,
|
|
3219
|
+
required: true
|
|
3220
|
+
},
|
|
3221
|
+
size: {
|
|
3222
|
+
type: [Number, String],
|
|
3223
|
+
default: 32,
|
|
3224
|
+
validate: (value) => value >= 32
|
|
3225
|
+
},
|
|
3226
|
+
initialsSize: {
|
|
3227
|
+
type: [Number, String]
|
|
3228
|
+
},
|
|
3229
|
+
color: {
|
|
3230
|
+
type: String,
|
|
3231
|
+
default: "primary",
|
|
3232
|
+
validate: (value) => ["primary", "secondary", "silver-light"].includes(value)
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
setup(props) {
|
|
3236
|
+
const initials = computed(() => `${props.user.firstname && props.user.firstname[0] || ""}${props.user.lastname && props.user.lastname[0] || ""}`.toUpperCase());
|
|
3237
|
+
return {
|
|
3238
|
+
initials
|
|
3239
|
+
};
|
|
3240
|
+
}
|
|
3241
|
+
};
|
|
3242
|
+
const __cssModules$9 = {};
|
|
3243
|
+
var __component__$9 = /* @__PURE__ */ normalizeComponent(__vue2_script$9, render$9, staticRenderFns$9, false, __vue2_injectStyles$9, "e5e255f0", null, null);
|
|
3244
|
+
function __vue2_injectStyles$9(context) {
|
|
3245
|
+
for (let o2 in __cssModules$9) {
|
|
3246
|
+
this[o2] = __cssModules$9[o2];
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
var UserAvatar = /* @__PURE__ */ function() {
|
|
3250
|
+
return __component__$9.exports;
|
|
3251
|
+
}();
|
|
3252
|
+
var render$8 = function() {
|
|
3253
|
+
var _vm = this;
|
|
3254
|
+
var _h = _vm.$createElement;
|
|
3255
|
+
var _c = _vm._self._c || _h;
|
|
3256
|
+
return _c("div", { staticClass: "topic-comment" }, [_c("div", { staticClass: "topic-comment__header flex items-center justify-between" }, [_c("div", { staticClass: "topic-comment__header__left flex items-center" }, [_vm.comment.user ? _c("UserAvatar", { staticClass: "m-r-12", staticStyle: { "box-shadow": "var(--box-shadow)" }, attrs: { "user": _vm.comment.user, "size": "27", "initialsSize": "14", "color": "silver-light" } }) : _c("span", { staticClass: "topic-comment__header__left__user flex items-center justify-center m-r-12" }, [_c("BIMDataIcon", { attrs: { "name": "user", "size": "xxs", "fill": "", "color": "granite" } })], 1), _c("BIMDataTextbox", { attrs: { "width": "auto", "maxWidth": "150px", "cutPosition": "end", "text": _vm.comment.author } }), _c("span", { staticClass: "color-granite m-x-6" }, [_vm._v(" \u2022 ")]), _c("span", { staticClass: "color-granite" }, [_vm._v(" " + _vm._s(_vm.$d(_vm.comment.date, "long")) + " ")])], 1), _c("div", { staticClass: "topic-comment__header__right" }, [_c("div", { staticClass: "topic-comment__header__right__actions flex" }, [_vm.showMenu ? [_c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.onOpenEdit } }, [_c("BIMDataIcon", { attrs: { "name": "edit", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.onOpenDelete } }, [_c("BIMDataIcon", { attrs: { "name": "delete", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.toggleMenu } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxs", "fill": "", "color": "granite-light" } })], 1)] : _vm._e(), _vm.isEditing ? [_c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.cancelUpdate } }, [_c("BIMDataIcon", { attrs: { "name": "undo", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.submitUpdate } }, [_c("BIMDataIcon", { attrs: { "name": "validate", "size": "xxs", "fill": "", "color": "granite-light" } })], 1)] : _vm._e()], 2), _vm.isDeleting ? _c("div", { staticClass: "topic-comment__header__right__delete p-x-12" }, [_c("span", [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.deleteCommentText")) + " ")]), _c("div", { staticClass: "flex items-center" }, [_c("BIMDataButton", { staticClass: "m-r-6", attrs: { "color": "high", "fill": "", "radius": "" }, on: { "click": _vm.submitDelete } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.deleteButton")) + " ")]), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": function($event) {
|
|
3257
|
+
_vm.isDeleting = false;
|
|
3258
|
+
} } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxs", "fill": "", "color": "primary" } })], 1)], 1)]) : _vm._e(), !_vm.showMenu && !_vm.isDeleting && !_vm.isEditing ? _c("BIMDataButton", { staticClass: "topic-comment__header__right__btn", attrs: { "rounded": "", "icon": "" }, on: { "click": _vm.toggleMenu } }, [_c("BIMDataIcon", { attrs: { "name": "ellipsis", "size": "l", "fill": "", "color": "granite-light" } })], 1) : _vm._e()], 1)]), _c("div", { staticClass: "topic-comment__content" }, [_c("BIMDataTextarea", { class: { editing: _vm.isEditing }, attrs: { "width": "100%", "rows": "1", "fitContent": "", "autofocus": "", "resizable": false, "readonly": !_vm.isEditing }, model: { value: _vm.text, callback: function($$v) {
|
|
3259
|
+
_vm.text = $$v;
|
|
3260
|
+
}, expression: "text" } })], 1), _vm.loading ? [_c("BIMDataLoading")] : _vm._e()], 2);
|
|
3261
|
+
};
|
|
3262
|
+
var staticRenderFns$8 = [];
|
|
3263
|
+
var TopicComment_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicOverview_2FbcfTopicComments_2FtopicComment_2FTopicComment_vue_src_scoped_true_lang = "";
|
|
3264
|
+
const __vue2_script$8 = {
|
|
3265
|
+
components: {
|
|
3266
|
+
BIMDataButton: c$5,
|
|
3267
|
+
BIMDataIcon: v$2,
|
|
3268
|
+
BIMDataLoading: a$4,
|
|
3269
|
+
BIMDataTextarea: s$2,
|
|
3270
|
+
BIMDataTextbox: l$3,
|
|
3271
|
+
UserAvatar
|
|
3272
|
+
},
|
|
3273
|
+
props: {
|
|
3274
|
+
project: {
|
|
3275
|
+
type: Object,
|
|
3276
|
+
required: true
|
|
3277
|
+
},
|
|
3278
|
+
bcfTopic: {
|
|
3279
|
+
type: Object,
|
|
3280
|
+
required: true
|
|
3281
|
+
},
|
|
3282
|
+
comment: {
|
|
3283
|
+
type: Object,
|
|
3284
|
+
required: true
|
|
3285
|
+
}
|
|
3286
|
+
},
|
|
3287
|
+
emits: [
|
|
3288
|
+
"comment-updated",
|
|
3289
|
+
"comment-deleted"
|
|
3290
|
+
],
|
|
3291
|
+
setup(props, { emit }) {
|
|
3292
|
+
const { deleteComment: deleteComment2, updateComment: updateComment2 } = useService();
|
|
3293
|
+
const loading = ref(false);
|
|
3294
|
+
const showMenu = ref(false);
|
|
3295
|
+
const closeMenu = () => showMenu.value = false;
|
|
3296
|
+
const toggleMenu = () => showMenu.value = !showMenu.value;
|
|
3297
|
+
const text = ref(props.comment.comment);
|
|
3298
|
+
const isEditing = ref(false);
|
|
3299
|
+
const onOpenEdit = () => {
|
|
3300
|
+
isEditing.value = true;
|
|
3301
|
+
closeMenu();
|
|
3302
|
+
};
|
|
3303
|
+
const cancelUpdate = () => {
|
|
3304
|
+
isEditing.value = false;
|
|
3305
|
+
text.value = props.comment.comment;
|
|
3306
|
+
};
|
|
3307
|
+
const submitUpdate = async () => {
|
|
3308
|
+
if (props.comment.comment !== text.value) {
|
|
3309
|
+
try {
|
|
3310
|
+
loading.value = true;
|
|
3311
|
+
const newComment = await updateComment2(props.project, props.bcfTopic, props.comment, { comment: text.value });
|
|
3312
|
+
emit("comment-updated", newComment);
|
|
3313
|
+
isEditing.value = false;
|
|
3314
|
+
} finally {
|
|
3315
|
+
loading.value = false;
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
};
|
|
3319
|
+
const isDeleting = ref(false);
|
|
3320
|
+
const onOpenDelete = () => {
|
|
3321
|
+
isDeleting.value = true;
|
|
3322
|
+
closeMenu();
|
|
3323
|
+
};
|
|
3324
|
+
const submitDelete = async () => {
|
|
3325
|
+
try {
|
|
3326
|
+
loading.value = true;
|
|
3327
|
+
await deleteComment2(props.project, props.bcfTopic, props.comment);
|
|
3328
|
+
emit("comment-deleted", props.comment);
|
|
3329
|
+
isDeleting.value = false;
|
|
3330
|
+
} finally {
|
|
3331
|
+
loading.value = false;
|
|
3332
|
+
}
|
|
3333
|
+
};
|
|
3334
|
+
return {
|
|
3335
|
+
text,
|
|
3336
|
+
isDeleting,
|
|
3337
|
+
isEditing,
|
|
3338
|
+
loading,
|
|
3339
|
+
showMenu,
|
|
3340
|
+
cancelUpdate,
|
|
3341
|
+
closeMenu,
|
|
3342
|
+
onOpenDelete,
|
|
3343
|
+
onOpenEdit,
|
|
3344
|
+
submitDelete,
|
|
3345
|
+
submitUpdate,
|
|
3346
|
+
toggleMenu
|
|
3347
|
+
};
|
|
3348
|
+
}
|
|
3349
|
+
};
|
|
3350
|
+
const __cssModules$8 = {};
|
|
3351
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "47f184d0", null, null);
|
|
3352
|
+
function __vue2_injectStyles$8(context) {
|
|
3353
|
+
for (let o2 in __cssModules$8) {
|
|
3354
|
+
this[o2] = __cssModules$8[o2];
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
var TopicComment = /* @__PURE__ */ function() {
|
|
3358
|
+
return __component__$8.exports;
|
|
3359
|
+
}();
|
|
3360
|
+
var render$7 = function() {
|
|
3361
|
+
var _vm = this;
|
|
3362
|
+
var _h = _vm.$createElement;
|
|
3363
|
+
var _c = _vm._self._c || _h;
|
|
3364
|
+
return _c("div", { staticClass: "bcf-topic-comments" }, [!_vm.isOpen ? _c("BIMDataButton", { attrs: { "width": "100%", "color": "primary", "fill": "", "radius": "" }, on: { "click": function($event) {
|
|
3365
|
+
_vm.isOpen = true;
|
|
3366
|
+
} } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.commentButton")) + " ")]) : _c("div", { staticClass: "bcf-topic-comments__post-comment m-t-24" }, [_c("p", { staticClass: "color-granite m-b-24" }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.commentText")) + " ")]), _c("div", { staticClass: "bcf-comment-input m-t-24" }, [_c("BIMDataTextarea", { ref: "input", attrs: { "width": "100%", "label": _vm.$t("BcfComponents.BcfTopicComments.commentLabel"), "autofocus": "", "resizable": "" }, model: { value: _vm.text, callback: function($$v) {
|
|
3367
|
+
_vm.text = $$v;
|
|
3368
|
+
}, expression: "text" } }), _c("div", { staticClass: "flex items-center justify-end" }, [_c("BIMDataButton", { staticClass: "m-r-6", attrs: { "color": "primary", "ghost": "", "radius": "" }, on: { "click": function($event) {
|
|
3369
|
+
_vm.isOpen = false;
|
|
3370
|
+
} } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.cancelButton")) + " ")]), _c("BIMDataButton", { attrs: { "color": "primary", "fill": "", "radius": "", "width": "135px" }, on: { "click": _vm.publishComment } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.publishButton")) + " ")])], 1)], 1)]), _c("div", { staticClass: "bcf-topic-comments__list m-t-18" }, [_c("p", { staticClass: "color-granite" }, [_vm._v(" " + _vm._s((_vm.bcfTopic.comments ? _vm.bcfTopic.comments.length : 0) + " " + _vm.$t("BcfComponents.BcfTopicComments.commentsText")) + " ")]), _vm.bcfTopic.comments && _vm.bcfTopic.comments.length ? _c("div", _vm._l(_vm.bcfTopic.comments, function(comment) {
|
|
3371
|
+
return _c("TopicComment", { key: comment.guid, attrs: { "project": _vm.project, "bcfTopic": _vm.bcfTopic, "comment": comment }, on: { "comment-updated": function($event) {
|
|
3372
|
+
return _vm.$emit("comment-updated", $event);
|
|
3373
|
+
}, "comment-deleted": function($event) {
|
|
3374
|
+
return _vm.$emit("comment-deleted", $event);
|
|
3375
|
+
} } });
|
|
3376
|
+
}), 1) : _vm._e()]), _vm.loading ? [_c("BIMDataLoading")] : _vm._e()], 2);
|
|
3377
|
+
};
|
|
3378
|
+
var staticRenderFns$7 = [];
|
|
3379
|
+
var BcfTopicComments_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicOverview_2FbcfTopicComments_2FBcfTopicComments_vue_src_scoped_true_lang = "";
|
|
3380
|
+
const __vue2_script$7 = {
|
|
3381
|
+
components: {
|
|
3382
|
+
BIMDataButton: c$5,
|
|
3383
|
+
BIMDataLoading: a$4,
|
|
3384
|
+
BIMDataTextarea: s$2,
|
|
3385
|
+
TopicComment
|
|
3386
|
+
},
|
|
3387
|
+
props: {
|
|
3388
|
+
project: {
|
|
3389
|
+
type: Object,
|
|
3390
|
+
required: true
|
|
3391
|
+
},
|
|
3392
|
+
bcfTopic: {
|
|
3393
|
+
type: Object,
|
|
3394
|
+
required: true
|
|
3395
|
+
}
|
|
3396
|
+
},
|
|
3397
|
+
emis: [
|
|
3398
|
+
"comment-created",
|
|
3399
|
+
"comment-updated",
|
|
3400
|
+
"comment-deleted"
|
|
3401
|
+
],
|
|
3402
|
+
setup(props, { emit }) {
|
|
3403
|
+
const { createComment: createComment2 } = useService();
|
|
3404
|
+
const isOpen = ref(false);
|
|
3405
|
+
const loading = ref(false);
|
|
3406
|
+
const input = ref(null);
|
|
3407
|
+
const text = ref("");
|
|
3408
|
+
watch(isOpen, () => setTimeout(() => isOpen.value && input.value.focus(), 50));
|
|
3409
|
+
const publishComment = async () => {
|
|
3410
|
+
try {
|
|
3411
|
+
loading.value = true;
|
|
3412
|
+
const newComment = await createComment2(props.project, props.bcfTopic, { comment: text.value });
|
|
3413
|
+
emit("comment-created", newComment);
|
|
3414
|
+
isOpen.value = false;
|
|
3415
|
+
text.value = "";
|
|
3416
|
+
} finally {
|
|
3417
|
+
loading.value = false;
|
|
3418
|
+
}
|
|
3419
|
+
};
|
|
3420
|
+
return {
|
|
3421
|
+
input,
|
|
3422
|
+
isOpen,
|
|
3423
|
+
loading,
|
|
3424
|
+
text,
|
|
3425
|
+
publishComment
|
|
3426
|
+
};
|
|
3427
|
+
}
|
|
3428
|
+
};
|
|
3429
|
+
const __cssModules$7 = {};
|
|
3430
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "561aa0f8", null, null);
|
|
3431
|
+
function __vue2_injectStyles$7(context) {
|
|
3432
|
+
for (let o2 in __cssModules$7) {
|
|
3433
|
+
this[o2] = __cssModules$7[o2];
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
var BcfTopicComments = /* @__PURE__ */ function() {
|
|
3437
|
+
return __component__$7.exports;
|
|
3438
|
+
}();
|
|
3439
|
+
var e$1 = Object.freeze(["default", "primary", "secondary", "high", "success", "granite"]), t$1 = { name: "BIMDataButton", props: { width: { type: String, default: "32px" }, height: { type: String, default: "32px" }, fill: { type: Boolean, default: false }, outline: { type: Boolean, default: false }, ghost: { type: Boolean, default: false }, ripple: { type: Boolean, default: false }, radius: { type: Boolean, default: false }, square: { type: Boolean, default: false }, rounded: { type: Boolean, default: false }, icon: { type: Boolean, default: false }, color: { type: String, default: "default", validator: (t2) => e$1.includes(t2) } }, emits: ["click"], computed: { classes() {
|
|
3440
|
+
return { "bimdata-btn__icon": this.icon, "bimdata-btn__fill": this.fill, "bimdata-btn__outline": this.outline, "bimdata-btn__ghost": this.ghost, "bimdata-btn__ripple": this.ripple, "bimdata-btn__radius": this.radius, "bimdata-btn__square": this.square, "bimdata-btn__rounded": this.rounded, ["bimdata-btn__fill--" + this.color]: this.fill && this.color, ["bimdata-btn__outline--" + this.color]: this.outline && this.color, ["bimdata-btn__ghost--" + this.color]: this.ghost && this.color, ["bimdata-btn__ripple--" + this.color]: this.ripple && this.color };
|
|
3441
|
+
}, style() {
|
|
3442
|
+
return { "min-width": "" + this.width, "min-height": "" + this.height };
|
|
3443
|
+
} } };
|
|
3444
|
+
function r$1(e2, t2, r2, i2, d2, o2, a2, n2, s2, l2) {
|
|
3445
|
+
typeof a2 != "boolean" && (s2 = n2, n2 = a2, a2 = false);
|
|
3446
|
+
const v2 = typeof r2 == "function" ? r2.options : r2;
|
|
3447
|
+
let c2;
|
|
3448
|
+
if (e2 && e2.render && (v2.render = e2.render, v2.staticRenderFns = e2.staticRenderFns, v2._compiled = true, d2 && (v2.functional = true)), i2 && (v2._scopeId = i2), o2 ? (c2 = function(e3) {
|
|
3449
|
+
(e3 = e3 || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ == "undefined" || (e3 = __VUE_SSR_CONTEXT__), t2 && t2.call(this, s2(e3)), e3 && e3._registeredComponents && e3._registeredComponents.add(o2);
|
|
3450
|
+
}, v2._ssrRegister = c2) : t2 && (c2 = a2 ? function(e3) {
|
|
3451
|
+
t2.call(this, l2(e3, this.$root.$options.shadowRoot));
|
|
3452
|
+
} : function(e3) {
|
|
3453
|
+
t2.call(this, n2(e3));
|
|
3454
|
+
}), c2)
|
|
3455
|
+
if (v2.functional) {
|
|
3456
|
+
const e3 = v2.render;
|
|
3457
|
+
v2.render = function(t3, r3) {
|
|
3458
|
+
return c2.call(r3), e3(t3, r3);
|
|
3459
|
+
};
|
|
3460
|
+
} else {
|
|
3175
3461
|
const e3 = v2.beforeCreate;
|
|
3176
3462
|
v2.beforeCreate = e3 ? [].concat(e3, c2) : [c2];
|
|
3177
3463
|
}
|
|
@@ -3675,192 +3961,27 @@ const c$1 = r$1({ render: function() {
|
|
|
3675
3961
|
this.maxIndex = Math.max(t2.length - o2, 0), this.index = Math.min(this.index, this.maxIndex), this.translations = s2;
|
|
3676
3962
|
}
|
|
3677
3963
|
} } }, "data-v-4dd92ffc", false, void 0, false, d$1, void 0, void 0);
|
|
3678
|
-
var render$8 = function() {
|
|
3679
|
-
var _vm = this;
|
|
3680
|
-
var _h = _vm.$createElement;
|
|
3681
|
-
var _c = _vm._self._c || _h;
|
|
3682
|
-
return _c("div", { staticClass: "user-avatar", class: "user-avatar--" + (_vm.user.profile_picture ? "silver-light" : _vm.color), style: {
|
|
3683
|
-
width: _vm.size + "px",
|
|
3684
|
-
height: _vm.size + "px",
|
|
3685
|
-
fontSize: (_vm.initialsSize ? _vm.initialsSize : +_vm.size * 0.382) + "px"
|
|
3686
|
-
} }, [_vm.user.profile_picture ? [_c("img", { attrs: { "src": _vm.user.profile_picture } })] : _vm.initials ? [_vm._v(" " + _vm._s(_vm.initials) + " ")] : [_c("BIMDataIcon", { attrs: { "name": "user", "size": "xs" } })]], 2);
|
|
3687
|
-
};
|
|
3688
|
-
var staticRenderFns$8 = [];
|
|
3689
|
-
var UserAvatar_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FuserAvatar_2FUserAvatar_vue_src_scoped_true_lang = "";
|
|
3690
|
-
const __vue2_script$8 = {
|
|
3691
|
-
props: {
|
|
3692
|
-
user: {
|
|
3693
|
-
type: Object,
|
|
3694
|
-
required: true
|
|
3695
|
-
},
|
|
3696
|
-
size: {
|
|
3697
|
-
type: [Number, String],
|
|
3698
|
-
default: 32,
|
|
3699
|
-
validate: (value) => value >= 32
|
|
3700
|
-
},
|
|
3701
|
-
initialsSize: {
|
|
3702
|
-
type: [Number, String]
|
|
3703
|
-
},
|
|
3704
|
-
color: {
|
|
3705
|
-
type: String,
|
|
3706
|
-
default: "primary",
|
|
3707
|
-
validate: (value) => ["primary", "secondary", "silver-light"].includes(value)
|
|
3708
|
-
}
|
|
3709
|
-
},
|
|
3710
|
-
setup(props) {
|
|
3711
|
-
const initials = computed(() => `${props.user.firstname && props.user.firstname[0] || ""}${props.user.lastname && props.user.lastname[0] || ""}`.toUpperCase());
|
|
3712
|
-
return {
|
|
3713
|
-
initials
|
|
3714
|
-
};
|
|
3715
|
-
}
|
|
3716
|
-
};
|
|
3717
|
-
const __cssModules$8 = {};
|
|
3718
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "e5e255f0", null, null);
|
|
3719
|
-
function __vue2_injectStyles$8(context) {
|
|
3720
|
-
for (let o2 in __cssModules$8) {
|
|
3721
|
-
this[o2] = __cssModules$8[o2];
|
|
3722
|
-
}
|
|
3723
|
-
}
|
|
3724
|
-
var UserAvatar = /* @__PURE__ */ function() {
|
|
3725
|
-
return __component__$8.exports;
|
|
3726
|
-
}();
|
|
3727
|
-
var render$7 = function() {
|
|
3728
|
-
var _vm = this;
|
|
3729
|
-
var _h = _vm.$createElement;
|
|
3730
|
-
var _c = _vm._self._c || _h;
|
|
3731
|
-
return _c("div", { staticClass: "topic-comment" }, [_c("div", { staticClass: "topic-comment__header flex items-center justify-between" }, [_c("div", { staticClass: "topic-comment__header__left flex items-center" }, [_vm.comment.user ? _c("UserAvatar", { staticClass: "m-r-12", staticStyle: { "box-shadow": "var(--box-shadow)" }, attrs: { "user": _vm.comment.user, "size": "27", "initialsSize": "14", "color": "silver-light" } }) : _c("span", { staticClass: "topic-comment__header__left__user flex items-center justify-center m-r-12" }, [_c("BIMDataIcon", { attrs: { "name": "user", "size": "xxs", "fill": "", "color": "granite" } })], 1), _c("BIMDataTextbox", { attrs: { "width": "auto", "maxWidth": "150px", "cutPosition": "end", "text": _vm.comment.author } }), _c("span", { staticClass: "color-granite m-x-6" }, [_vm._v(" \u2022 ")]), _c("span", { staticClass: "color-granite" }, [_vm._v(" " + _vm._s(_vm.$d(_vm.comment.date, "long")) + " ")])], 1), _c("div", { staticClass: "topic-comment__header__right" }, [_c("div", { staticClass: "topic-comment__header__right__actions flex" }, [_vm.showMenu ? [_c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.onOpenEdit } }, [_c("BIMDataIcon", { attrs: { "name": "edit", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.onOpenDelete } }, [_c("BIMDataIcon", { attrs: { "name": "delete", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.toggleMenu } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxs", "fill": "", "color": "granite-light" } })], 1)] : _vm._e(), _vm.isEditing ? [_c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.cancelUpdate } }, [_c("BIMDataIcon", { attrs: { "name": "undo", "size": "xxs", "fill": "", "color": "granite-light" } })], 1), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": _vm.submitUpdate } }, [_c("BIMDataIcon", { attrs: { "name": "validate", "size": "xxs", "fill": "", "color": "granite-light" } })], 1)] : _vm._e()], 2), _vm.isDeleting ? _c("div", { staticClass: "topic-comment__header__right__delete p-x-12" }, [_c("span", [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.deleteCommentText")) + " ")]), _c("div", { staticClass: "flex items-center" }, [_c("BIMDataButton", { staticClass: "m-r-6", attrs: { "color": "high", "fill": "", "radius": "" }, on: { "click": _vm.submitDelete } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.deleteButton")) + " ")]), _c("BIMDataButton", { attrs: { "ghost": "", "rounded": "", "icon": "" }, on: { "click": function($event) {
|
|
3732
|
-
_vm.isDeleting = false;
|
|
3733
|
-
} } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxs", "fill": "", "color": "primary" } })], 1)], 1)]) : _vm._e(), !_vm.showMenu && !_vm.isDeleting && !_vm.isEditing ? _c("BIMDataButton", { staticClass: "topic-comment__header__right__btn", attrs: { "rounded": "", "icon": "" }, on: { "click": _vm.toggleMenu } }, [_c("BIMDataIcon", { attrs: { "name": "ellipsis", "size": "l", "fill": "", "color": "granite-light" } })], 1) : _vm._e()], 1)]), _c("div", { staticClass: "topic-comment__content" }, [_c("BIMDataTextarea", { class: { editing: _vm.isEditing }, attrs: { "width": "100%", "rows": "1", "fitContent": "", "autofocus": "", "resizable": false, "readonly": !_vm.isEditing }, model: { value: _vm.text, callback: function($$v) {
|
|
3734
|
-
_vm.text = $$v;
|
|
3735
|
-
}, expression: "text" } })], 1), _vm.loading ? [_c("BIMDataLoading")] : _vm._e()], 2);
|
|
3736
|
-
};
|
|
3737
|
-
var staticRenderFns$7 = [];
|
|
3738
|
-
var TopicComment_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicOverview_2FbcfTopicComments_2FtopicComment_2FTopicComment_vue_src_scoped_true_lang = "";
|
|
3739
|
-
const __vue2_script$7 = {
|
|
3740
|
-
components: {
|
|
3741
|
-
BIMDataButton: c$5,
|
|
3742
|
-
BIMDataIcon: v$2,
|
|
3743
|
-
BIMDataLoading: a$4,
|
|
3744
|
-
BIMDataTextarea: s$2,
|
|
3745
|
-
BIMDataTextbox: l$3,
|
|
3746
|
-
UserAvatar
|
|
3747
|
-
},
|
|
3748
|
-
props: {
|
|
3749
|
-
project: {
|
|
3750
|
-
type: Object,
|
|
3751
|
-
required: true
|
|
3752
|
-
},
|
|
3753
|
-
bcfTopic: {
|
|
3754
|
-
type: Object,
|
|
3755
|
-
required: true
|
|
3756
|
-
},
|
|
3757
|
-
comment: {
|
|
3758
|
-
type: Object,
|
|
3759
|
-
required: true
|
|
3760
|
-
}
|
|
3761
|
-
},
|
|
3762
|
-
emits: [
|
|
3763
|
-
"comment-updated",
|
|
3764
|
-
"comment-deleted"
|
|
3765
|
-
],
|
|
3766
|
-
setup(props, { emit }) {
|
|
3767
|
-
const { deleteComment: deleteComment2, updateComment: updateComment2 } = useService();
|
|
3768
|
-
const loading = ref(false);
|
|
3769
|
-
const showMenu = ref(false);
|
|
3770
|
-
const closeMenu = () => showMenu.value = false;
|
|
3771
|
-
const toggleMenu = () => showMenu.value = !showMenu.value;
|
|
3772
|
-
const text = ref(props.comment.comment);
|
|
3773
|
-
const isEditing = ref(false);
|
|
3774
|
-
const onOpenEdit = () => {
|
|
3775
|
-
isEditing.value = true;
|
|
3776
|
-
closeMenu();
|
|
3777
|
-
};
|
|
3778
|
-
const cancelUpdate = () => {
|
|
3779
|
-
isEditing.value = false;
|
|
3780
|
-
text.value = props.comment.comment;
|
|
3781
|
-
};
|
|
3782
|
-
const submitUpdate = async () => {
|
|
3783
|
-
if (props.comment.comment !== text.value) {
|
|
3784
|
-
try {
|
|
3785
|
-
loading.value = true;
|
|
3786
|
-
const newComment = await updateComment2(props.project, props.bcfTopic, props.comment, { comment: text.value });
|
|
3787
|
-
emit("comment-updated", newComment);
|
|
3788
|
-
isEditing.value = false;
|
|
3789
|
-
} finally {
|
|
3790
|
-
loading.value = false;
|
|
3791
|
-
}
|
|
3792
|
-
}
|
|
3793
|
-
};
|
|
3794
|
-
const isDeleting = ref(false);
|
|
3795
|
-
const onOpenDelete = () => {
|
|
3796
|
-
isDeleting.value = true;
|
|
3797
|
-
closeMenu();
|
|
3798
|
-
};
|
|
3799
|
-
const submitDelete = async () => {
|
|
3800
|
-
try {
|
|
3801
|
-
loading.value = true;
|
|
3802
|
-
await deleteComment2(props.project, props.bcfTopic, props.comment);
|
|
3803
|
-
emit("comment-deleted", props.comment);
|
|
3804
|
-
isDeleting.value = false;
|
|
3805
|
-
} finally {
|
|
3806
|
-
loading.value = false;
|
|
3807
|
-
}
|
|
3808
|
-
};
|
|
3809
|
-
return {
|
|
3810
|
-
text,
|
|
3811
|
-
isDeleting,
|
|
3812
|
-
isEditing,
|
|
3813
|
-
loading,
|
|
3814
|
-
showMenu,
|
|
3815
|
-
cancelUpdate,
|
|
3816
|
-
closeMenu,
|
|
3817
|
-
onOpenDelete,
|
|
3818
|
-
onOpenEdit,
|
|
3819
|
-
submitDelete,
|
|
3820
|
-
submitUpdate,
|
|
3821
|
-
toggleMenu
|
|
3822
|
-
};
|
|
3823
|
-
}
|
|
3824
|
-
};
|
|
3825
|
-
const __cssModules$7 = {};
|
|
3826
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "47f184d0", null, null);
|
|
3827
|
-
function __vue2_injectStyles$7(context) {
|
|
3828
|
-
for (let o2 in __cssModules$7) {
|
|
3829
|
-
this[o2] = __cssModules$7[o2];
|
|
3830
|
-
}
|
|
3831
|
-
}
|
|
3832
|
-
var TopicComment = /* @__PURE__ */ function() {
|
|
3833
|
-
return __component__$7.exports;
|
|
3834
|
-
}();
|
|
3835
3964
|
var render$6 = function() {
|
|
3836
3965
|
var _vm = this;
|
|
3837
3966
|
var _h = _vm.$createElement;
|
|
3838
3967
|
var _c = _vm._self._c || _h;
|
|
3839
|
-
return _c("div", { staticClass: "bcf-topic-
|
|
3840
|
-
_vm.
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
} } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.cancelButton")) + " ")]), _c("BIMDataButton", { attrs: { "color": "primary", "fill": "", "radius": "", "width": "135px" }, on: { "click": _vm.publishComment } }, [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicComments.publishButton")) + " ")])], 1)], 1)]), _c("div", { staticClass: "bcf-topic-comments__list m-t-18" }, [_c("p", { staticClass: "color-granite" }, [_vm._v(" " + _vm._s((_vm.bcfTopic.comments ? _vm.bcfTopic.comments.length : 0) + " " + _vm.$t("BcfComponents.BcfTopicComments.commentsText")) + " ")]), _vm.bcfTopic.comments && _vm.bcfTopic.comments.length ? _c("div", _vm._l(_vm.bcfTopic.comments, function(comment) {
|
|
3846
|
-
return _c("TopicComment", { key: comment.guid, attrs: { "project": _vm.project, "bcfTopic": _vm.bcfTopic, "comment": comment }, on: { "comment-updated": function($event) {
|
|
3847
|
-
return _vm.$emit("comment-updated", $event);
|
|
3848
|
-
}, "comment-deleted": function($event) {
|
|
3849
|
-
return _vm.$emit("comment-deleted", $event);
|
|
3850
|
-
} } });
|
|
3851
|
-
}), 1) : _vm._e()]), _vm.loading ? [_c("BIMDataLoading")] : _vm._e()], 2);
|
|
3968
|
+
return _c("div", { staticClass: "bcf-topic-viewpoints", class: { empty: _vm.viewpoints.length === 0 } }, [_vm.bcfTopic.topic_status ? _c("div", { staticClass: "status-badge", style: {
|
|
3969
|
+
backgroundColor: "#" + _vm.statusColor,
|
|
3970
|
+
color: _vm.adjustTextColor("#" + _vm.statusColor, "#FFF", "#2F374A")
|
|
3971
|
+
} }, [_c("BIMDataIcon", { attrs: { "name": "information", "fill": "", "color": "default" } }), _c("span", [_vm._v(_vm._s(_vm.bcfTopic.topic_status))])], 1) : _vm._e(), _vm.viewpoints.length > 0 ? [_c("BIMDataCarousel", { attrs: { "sliderPadding": 0 } }, _vm._l(_vm.viewpoints, function(viewpoint) {
|
|
3972
|
+
return _c("div", { key: viewpoint.guid, staticClass: "snapshot-preview" }, [viewpoint.snapshot.snapshot_data ? _c("img", { attrs: { "src": viewpoint.snapshot.snapshot_data } }) : _vm._e(), viewpoint.icon ? _c("BIMDataIcon", { staticClass: "icon", attrs: { "name": viewpoint.icon, "size": "xl" } }) : _vm._e()], 1);
|
|
3973
|
+
}), 0)] : [_c("BcfTopicDefaultImage", { staticClass: "default-image" })]], 2);
|
|
3852
3974
|
};
|
|
3853
3975
|
var staticRenderFns$6 = [];
|
|
3854
|
-
var
|
|
3976
|
+
var BcfTopicViewpoints_scss_vue_type_style_index_0_from__2Fhome_2Frunner_2FactionsRunner_2F_work_2FbcfComponents_2FbcfComponents_2Fsrc_2Fcomponents_2FbcfTopicOverview_2FbcfTopicViewpoints_2FBcfTopicViewpoints_vue_src_scoped_true_lang = "";
|
|
3855
3977
|
const __vue2_script$6 = {
|
|
3856
3978
|
components: {
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
TopicComment
|
|
3979
|
+
BcfTopicDefaultImage,
|
|
3980
|
+
BIMDataCarousel: c$1,
|
|
3981
|
+
BIMDataIcon: v$2
|
|
3861
3982
|
},
|
|
3862
3983
|
props: {
|
|
3863
|
-
|
|
3984
|
+
detailedExtensions: {
|
|
3864
3985
|
type: Object,
|
|
3865
3986
|
required: true
|
|
3866
3987
|
},
|
|
@@ -3869,46 +3990,29 @@ const __vue2_script$6 = {
|
|
|
3869
3990
|
required: true
|
|
3870
3991
|
}
|
|
3871
3992
|
},
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
const
|
|
3880
|
-
const loading = ref(false);
|
|
3881
|
-
const input = ref(null);
|
|
3882
|
-
const text = ref("");
|
|
3883
|
-
watch(isOpen, () => setTimeout(() => isOpen.value && input.value.focus(), 50));
|
|
3884
|
-
const publishComment = async () => {
|
|
3885
|
-
try {
|
|
3886
|
-
loading.value = true;
|
|
3887
|
-
const newComment = await createComment2(props.project, props.bcfTopic, { comment: text.value });
|
|
3888
|
-
emit("comment-created", newComment);
|
|
3889
|
-
isOpen.value = false;
|
|
3890
|
-
text.value = "";
|
|
3891
|
-
} finally {
|
|
3892
|
-
loading.value = false;
|
|
3893
|
-
}
|
|
3894
|
-
};
|
|
3993
|
+
setup(props) {
|
|
3994
|
+
const viewpoints = computed(() => props.bcfTopic.viewpoints.filter((viewpoint) => viewpoint.snapshot).map((viewpoint) => {
|
|
3995
|
+
var _a;
|
|
3996
|
+
return __spreadProps(__spreadValues({}, viewpoint), {
|
|
3997
|
+
icon: (_a = VIEWPOINT_CONFIG[viewpoint.authoring_tool_id]) == null ? void 0 : _a.icon
|
|
3998
|
+
});
|
|
3999
|
+
}));
|
|
4000
|
+
const statusColor = computed(() => getStatusColor(props.bcfTopic, props.detailedExtensions));
|
|
3895
4001
|
return {
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
text,
|
|
3900
|
-
publishComment
|
|
4002
|
+
statusColor,
|
|
4003
|
+
viewpoints,
|
|
4004
|
+
adjustTextColor
|
|
3901
4005
|
};
|
|
3902
4006
|
}
|
|
3903
4007
|
};
|
|
3904
4008
|
const __cssModules$6 = {};
|
|
3905
|
-
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "
|
|
4009
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "cac84fce", null, null);
|
|
3906
4010
|
function __vue2_injectStyles$6(context) {
|
|
3907
4011
|
for (let o2 in __cssModules$6) {
|
|
3908
4012
|
this[o2] = __cssModules$6[o2];
|
|
3909
4013
|
}
|
|
3910
4014
|
}
|
|
3911
|
-
var
|
|
4015
|
+
var BcfTopicViewpoints = /* @__PURE__ */ function() {
|
|
3912
4016
|
return __component__$6.exports;
|
|
3913
4017
|
}();
|
|
3914
4018
|
var render$5 = function() {
|
|
@@ -3925,15 +4029,8 @@ var render$5 = function() {
|
|
|
3925
4029
|
return _vm.$emit("close");
|
|
3926
4030
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "close", "size": "xxs", "fill": "", "color": "granite-light" } })], 1)] : _vm._e()], 2)], 2), _c("div", { staticClass: "bcf-topic-overview__content" }, [_c("div", { staticClass: "bcf-topic-overview__content__head" }, [_c("div", { staticClass: "bcf-topic-overview__content__head__index", style: {
|
|
3927
4031
|
backgroundColor: "#" + _vm.priorityColor,
|
|
3928
|
-
color: _vm.adjustTextColor("#" + _vm.priorityColor, "#
|
|
3929
|
-
} }, [_vm._v(" " + _vm._s(_vm.bcfTopic.index) + " ")]), _c("div", { staticClass: "bcf-topic-overview__content__head__date" }, [_vm._v(" " + _vm._s(_vm.$d(_vm.bcfTopic.creation_date, "short")) + " ")])]), _c("
|
|
3930
|
-
"flex items-center justify-center": _vm.viewpointsWithSnapshot.length === 0
|
|
3931
|
-
} }, [_vm.bcfTopic.topic_status ? _c("div", { staticClass: "status-badge", style: {
|
|
3932
|
-
backgroundColor: "#" + _vm.statusColor,
|
|
3933
|
-
color: _vm.adjustTextColor("#" + _vm.statusColor, "#ffffff", "#2f374a")
|
|
3934
|
-
} }, [_c("BIMDataIcon", { attrs: { "name": "information", "fill": "", "color": "default" } }), _c("span", [_vm._v(_vm._s(_vm.bcfTopic.topic_status))])], 1) : _vm._e(), _vm.viewpointsWithSnapshot.length > 0 ? [_c("BIMDataCarousel", { attrs: { "sliderPadding": 0 } }, _vm._l(_vm.viewpointsWithSnapshot, function(viewpoint) {
|
|
3935
|
-
return _c("div", { key: viewpoint.guid, staticClass: "snapshot-preview" }, [viewpoint.snapshot.snapshot_data ? _c("img", { attrs: { "src": viewpoint.snapshot.snapshot_data } }) : _vm._e()]);
|
|
3936
|
-
}), 0)] : [_c("BcfTopicDefaultImage", { staticClass: "default-image" })]], 2), _vm.viewerMode ? _c("BIMDataButton", { attrs: { "width": "100%", "fill": "", "radius": "", "disabled": _vm.topicComponents.length === 0 }, on: { "click": function($event) {
|
|
4032
|
+
color: _vm.adjustTextColor("#" + _vm.priorityColor, "#FFF", "#2F374A")
|
|
4033
|
+
} }, [_vm._v(" " + _vm._s(_vm.bcfTopic.index) + " ")]), _c("div", { staticClass: "bcf-topic-overview__content__head__date" }, [_vm._v(" " + _vm._s(_vm.$d(_vm.bcfTopic.creation_date, "short")) + " ")])]), _c("BcfTopicViewpoints", { attrs: { "detailedExtensions": _vm.detailedExtensions, "bcfTopic": _vm.bcfTopic } }), _vm.viewerMode ? _c("BIMDataButton", { attrs: { "width": "100%", "fill": "", "radius": "", "disabled": _vm.topicComponents.length === 0 }, on: { "click": function($event) {
|
|
3937
4034
|
return _vm.$emit("view-components", _vm.bcfTopic);
|
|
3938
4035
|
} } }, [_c("BIMDataIcon", { attrs: { "name": "model3d", "size": "xs", "margin": "0 6px 0 0" } }), _vm.topicComponents.length > 0 ? [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicOverview.elements", { count: _vm.topicComponents.length })) + " ")] : [_vm._v(" " + _vm._s(_vm.$t("BcfComponents.BcfTopicOverview.noElements")) + " ")]], 2) : _c("BIMDataButton", { attrs: { "width": "100%", "color": "primary", "fill": "", "radius": "" }, on: { "click": function($event) {
|
|
3939
4036
|
return _vm.$emit("view-bcf-topic", _vm.bcfTopic);
|
|
@@ -3957,8 +4054,8 @@ const __vue2_script$5 = {
|
|
|
3957
4054
|
components: {
|
|
3958
4055
|
BcfTopicComments,
|
|
3959
4056
|
BcfTopicDefaultImage,
|
|
4057
|
+
BcfTopicViewpoints,
|
|
3960
4058
|
BIMDataButton: c$5,
|
|
3961
|
-
BIMDataCarousel: c$1,
|
|
3962
4059
|
BIMDataIcon: v$2,
|
|
3963
4060
|
BIMDataLoading: a$4,
|
|
3964
4061
|
BIMDataSafeZoneModal: v$1,
|
|
@@ -3973,11 +4070,11 @@ const __vue2_script$5 = {
|
|
|
3973
4070
|
type: Object,
|
|
3974
4071
|
required: true
|
|
3975
4072
|
},
|
|
3976
|
-
|
|
4073
|
+
detailedExtensions: {
|
|
3977
4074
|
type: Object,
|
|
3978
4075
|
required: true
|
|
3979
4076
|
},
|
|
3980
|
-
|
|
4077
|
+
bcfTopic: {
|
|
3981
4078
|
type: Object,
|
|
3982
4079
|
required: true
|
|
3983
4080
|
},
|
|
@@ -4002,11 +4099,7 @@ const __vue2_script$5 = {
|
|
|
4002
4099
|
const { deleteTopic: deleteTopic2 } = useService();
|
|
4003
4100
|
const loading = ref(false);
|
|
4004
4101
|
const showDeleteModal = ref(false);
|
|
4005
|
-
const viewpointsWithSnapshot = computed(() => {
|
|
4006
|
-
return props.bcfTopic.viewpoints.filter((viewpoint) => Boolean(viewpoint.snapshot));
|
|
4007
|
-
});
|
|
4008
4102
|
const priorityColor = computed(() => getPriorityColor(props.bcfTopic, props.detailedExtensions));
|
|
4009
|
-
const statusColor = computed(() => getStatusColor(props.bcfTopic, props.detailedExtensions));
|
|
4010
4103
|
const topicComponents = computed(() => {
|
|
4011
4104
|
var _a, _b;
|
|
4012
4105
|
const components2 = (_b = (_a = props.bcfTopic.viewpoints) == null ? void 0 : _a[0]) == null ? void 0 : _b.components;
|
|
@@ -4037,17 +4130,15 @@ const __vue2_script$5 = {
|
|
|
4037
4130
|
loading,
|
|
4038
4131
|
priorityColor,
|
|
4039
4132
|
showDeleteModal,
|
|
4040
|
-
statusColor,
|
|
4041
4133
|
topicComponents,
|
|
4042
4134
|
topicLabels,
|
|
4043
|
-
viewpointsWithSnapshot,
|
|
4044
4135
|
adjustTextColor,
|
|
4045
4136
|
removeTopic
|
|
4046
4137
|
};
|
|
4047
4138
|
}
|
|
4048
4139
|
};
|
|
4049
4140
|
const __cssModules$5 = {};
|
|
4050
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "
|
|
4141
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "d9c4613c", null, null);
|
|
4051
4142
|
function __vue2_injectStyles$5(context) {
|
|
4052
4143
|
for (let o2 in __cssModules$5) {
|
|
4053
4144
|
this[o2] = __cssModules$5[o2];
|
|
@@ -4480,4 +4571,4 @@ const components = {
|
|
|
4480
4571
|
BcfTopicOverview,
|
|
4481
4572
|
BcfTopicsTable
|
|
4482
4573
|
};
|
|
4483
|
-
export { BcfFilters, BcfSettings, BcfStatistics, BcfTopicCard, BcfTopicCreationCard, BcfTopicForm, BcfTopicOverview, BcfTopicsTable, components, getPriorityColor, getStatusColor, setApiClient, useBcfFilter, useBcfSearch, useBcfSort };
|
|
4574
|
+
export { BcfFilters, BcfSettings, BcfStatistics, BcfTopicCard, BcfTopicCreationCard, BcfTopicForm, BcfTopicOverview, BcfTopicsTable, components, config, getPriorityColor, getStatusColor, setApiClient, useBcfFilter, useBcfSearch, useBcfSort };
|