@bimdata/bcf-components 2.0.0 → 3.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,15 +46,15 @@ const EXTENSION_LIST_FIELDS = Object.freeze({
46
46
  });
47
47
  const DEFAULT_PRIORITY_COLOR = "D8D8D8";
48
48
  const DEFAULT_STATUS_COLOR = "D8D8D8";
49
- const VIEWPOINT_TYPE_FIELD = "originating_system";
50
- const VIEWPOINT_MODELS_FIELD = "authoring_tool_id";
49
+ const VIEWPOINT_TYPE_FIELD$1 = "originating_system";
50
+ const VIEWPOINT_MODELS_FIELD$1 = "authoring_tool_id";
51
51
  const VIEWPOINT_TYPES = Object.freeze({
52
52
  V3D: "ifc3d",
53
53
  V2D: "ifc2d",
54
54
  DWG: "dwg",
55
55
  PLAN: "plan"
56
56
  });
57
- const VIEWPOINT_CONFIG = Object.freeze({
57
+ const VIEWPOINT_CONFIG$1 = Object.freeze({
58
58
  [VIEWPOINT_TYPES.V3D]: {
59
59
  order: 1,
60
60
  window: "3d",
@@ -88,10 +88,10 @@ var config = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
88
88
  EXTENSION_LIST_FIELDS,
89
89
  EXTENSION_TYPES,
90
90
  EXTENSION_WITH_COLOR,
91
- VIEWPOINT_CONFIG,
92
- VIEWPOINT_MODELS_FIELD,
91
+ VIEWPOINT_CONFIG: VIEWPOINT_CONFIG$1,
92
+ VIEWPOINT_MODELS_FIELD: VIEWPOINT_MODELS_FIELD$1,
93
93
  VIEWPOINT_TYPES,
94
- VIEWPOINT_TYPE_FIELD
94
+ VIEWPOINT_TYPE_FIELD: VIEWPOINT_TYPE_FIELD$1
95
95
  }, Symbol.toStringTag, { value: "Module" }));
96
96
  let apiClient = null;
97
97
  function setApiClient(client) {
@@ -111,11 +111,11 @@ function deserialize$1(date) {
111
111
  return date.toISOString().split("T")[0].split("-").reverse().join("/");
112
112
  }
113
113
  function deserializeShort(date) {
114
- const a2 = date.toISOString().split("T")[0].split("-").reverse();
115
- a2[2] = a2[2].slice(-2);
116
- return a2.join("/");
114
+ const d2 = date.toISOString().split("T")[0].split("-").reverse();
115
+ d2[2] = d2[2].slice(-2);
116
+ return d2.join("/");
117
117
  }
118
- function validate(date) {
118
+ function validateDueDate(date) {
119
119
  if (!date) {
120
120
  return true;
121
121
  }
@@ -995,7 +995,7 @@ const _hoisted_1$i = { class: "bcf-filters" };
995
995
  const _hoisted_2$f = { class: "bcf-filters__container" };
996
996
  const _hoisted_3$b = { class: "bcf-filters__container__header" };
997
997
  const _hoisted_4$a = { class: "bcf-filters__container__header__title" };
998
- const _hoisted_5$9 = { class: "bcf-filters__container__date" };
998
+ const _hoisted_5$a = { class: "bcf-filters__container__date" };
999
999
  const _hoisted_6$8 = { class: "example" };
1000
1000
  const _hoisted_7$8 = { class: "example" };
1001
1001
  const _hoisted_8$8 = { class: "bcf-filters__container__actions" };
@@ -1068,7 +1068,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
1068
1068
  modelValue: $setup.filters.statuses,
1069
1069
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.filters.statuses = $event)
1070
1070
  }, null, 8, ["label", "nullLabel", "options", "modelValue"]),
1071
- createElementVNode("div", _hoisted_5$9, [
1071
+ createElementVNode("div", _hoisted_5$a, [
1072
1072
  createElementVNode("div", null, [
1073
1073
  createVNode(_component_BIMDataInput, {
1074
1074
  margin: "0",
@@ -1271,6 +1271,9 @@ function useService() {
1271
1271
  deleteExtension
1272
1272
  };
1273
1273
  }
1274
+ function getAvailableExtensions(type, detailedExtensions) {
1275
+ return detailedExtensions[EXTENSION_LIST_FIELDS[type]];
1276
+ }
1274
1277
  const p$3 = Object.freeze({ bisque: "ffe4c4", orange: "ffa500", coral: "ff7f50", red: "ff3d1e", maroon: "800000", khaki: "f0e68c", tan: "d2b48c", peru: "cd853f", sienna: "a0522d", brown: "a52a2a", greenyellow: "adff2f", yellowgreen: "9acd32", forestgreen: "00af50", green: "008000", darkgreen: "006400", lightcyan: "e0ffff", skyblue: "87ceeb", steelblue: "4682b4", blue: "0000ff", darkblue: "00008b", mistyrose: "ffe4e1", hotpink: "ff69b4", magenta: "ff00ff", purple: "800080", indigo: "4b0082", whitesmoke: "f5f5f5", silver: "c0c0c0", darkgray: "a9a9a9", grey: "7a7a7a", black: "000000" }), m$7 = ["bisque", "khaki", "greenyellow", "lightcyan", "mistyrose", "whitesmoke"];
1275
1278
  Object.entries(p$3).filter(([r]) => !m$7.includes(r));
1276
1279
  var f$5 = Object.freeze(["default", "primary", "secondary", "high", "success", "granite"]), h$4 = { props: { text: { type: String } } };
@@ -1387,7 +1390,7 @@ const _hoisted_4$9 = {
1387
1390
  key: 2,
1388
1391
  class: "setting-card-item__delete-guard"
1389
1392
  };
1390
- const _hoisted_5$8 = { class: "flex items-center" };
1393
+ const _hoisted_5$9 = { class: "flex items-center" };
1391
1394
  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1392
1395
  const _component_BIMDataInput = resolveComponent("BIMDataInput");
1393
1396
  const _component_BIMDataIcon = resolveComponent("BIMDataIcon");
@@ -1454,7 +1457,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1454
1457
  ]),
1455
1458
  $setup.isOpenDeleteGuard ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
1456
1459
  createElementVNode("p", null, toDisplayString(_ctx.$t("BcfComponents.SettingCard.deleteExtensionText")), 1),
1457
- createElementVNode("div", _hoisted_5$8, [
1460
+ createElementVNode("div", _hoisted_5$9, [
1458
1461
  createVNode(_component_BIMDataButton, {
1459
1462
  class: "m-r-6",
1460
1463
  height: "28px",
@@ -1501,12 +1504,12 @@ const _sfc_main$j = {
1501
1504
  type: Object,
1502
1505
  required: true
1503
1506
  },
1504
- extensionType: {
1505
- type: String,
1507
+ detailedExtensions: {
1508
+ type: Object,
1506
1509
  required: true
1507
1510
  },
1508
- availableExtensions: {
1509
- type: Array,
1511
+ extensionType: {
1512
+ type: String,
1510
1513
  required: true
1511
1514
  }
1512
1515
  },
@@ -1516,38 +1519,42 @@ const _sfc_main$j = {
1516
1519
  "delete-extension"
1517
1520
  ],
1518
1521
  setup(props, { emit }) {
1522
+ const availableExtensions = computed(() => getAvailableExtensions(props.extensionType, props.detailedExtensions));
1519
1523
  const input = ref(null);
1520
1524
  const name = ref("");
1521
1525
  const isOpen = ref(false);
1522
1526
  const close = () => isOpen.value = false;
1523
1527
  const toggle = () => isOpen.value = !isOpen.value;
1524
- const isOpenAddExtension = ref(false);
1525
- const closeAddExtension = () => {
1528
+ const isOpenForm = ref(false);
1529
+ const closeForm = () => {
1526
1530
  name.value = "";
1527
- isOpenAddExtension.value = false;
1531
+ isOpenForm.value = false;
1528
1532
  };
1529
- const toggleAddExtension = () => {
1530
- isOpenAddExtension.value = !isOpenAddExtension.value;
1533
+ const toggleForm = () => {
1534
+ isOpenForm.value = !isOpenForm.value;
1535
+ if (isOpenForm.value) {
1536
+ setTimeout(() => input.value.focus(), 50);
1537
+ }
1531
1538
  };
1532
- watch(isOpenAddExtension, () => setTimeout(() => isOpenAddExtension.value && input.value.focus(), 50));
1533
1539
  const addExtension = async () => {
1534
1540
  emit("create-extension", {
1535
1541
  project: props.project,
1536
1542
  extensionType: props.extensionType,
1537
1543
  data: { value: name.value }
1538
1544
  });
1539
- closeAddExtension();
1545
+ closeForm();
1540
1546
  };
1541
1547
  return {
1548
+ availableExtensions,
1542
1549
  input,
1543
1550
  isOpen,
1544
- isOpenAddExtension,
1551
+ isOpenForm,
1545
1552
  name,
1546
1553
  addExtension,
1547
1554
  close,
1548
- closeAddExtension,
1555
+ closeForm,
1549
1556
  toggle,
1550
- toggleAddExtension
1557
+ toggleForm
1551
1558
  };
1552
1559
  }
1553
1560
  };
@@ -1558,8 +1565,8 @@ const _hoisted_4$8 = {
1558
1565
  key: 0,
1559
1566
  class: "count"
1560
1567
  };
1561
- const _hoisted_5$7 = { class: "setting-card__subheader" };
1562
- const _hoisted_6$7 = { class: "setting-card__add-form" };
1568
+ const _hoisted_5$8 = { class: "setting-card__subheader" };
1569
+ const _hoisted_6$7 = { class: "setting-card__form" };
1563
1570
  const _hoisted_7$7 = { class: "actions" };
1564
1571
  const _hoisted_8$7 = { class: "setting-card__content bimdata-list" };
1565
1572
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1574,7 +1581,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1574
1581
  }, [
1575
1582
  createElementVNode("div", _hoisted_2$d, toDisplayString(_ctx.$t(`BcfComponents.SettingCard.title.${$props.extensionType}`)), 1),
1576
1583
  createElementVNode("div", _hoisted_3$9, [
1577
- $props.availableExtensions ? (openBlock(), createElementBlock("div", _hoisted_4$8, toDisplayString($props.availableExtensions.length), 1)) : createCommentVNode("", true),
1584
+ $setup.availableExtensions ? (openBlock(), createElementBlock("div", _hoisted_4$8, toDisplayString($setup.availableExtensions.length), 1)) : createCommentVNode("", true),
1578
1585
  createVNode(_component_BIMDataIcon, {
1579
1586
  name: "chevron",
1580
1587
  size: "xxs",
@@ -1583,12 +1590,12 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1583
1590
  ])
1584
1591
  ]),
1585
1592
  withDirectives(createElementVNode("div", null, [
1586
- createElementVNode("div", _hoisted_5$7, [
1593
+ createElementVNode("div", _hoisted_5$8, [
1587
1594
  createTextVNode(toDisplayString(_ctx.$t(`BcfComponents.SettingCard.text.${$props.extensionType}`)) + " ", 1),
1588
1595
  createVNode(_component_BIMDataButton, {
1589
1596
  fill: "",
1590
1597
  radius: "",
1591
- onClick: $setup.toggleAddExtension
1598
+ onClick: $setup.toggleForm
1592
1599
  }, {
1593
1600
  default: withCtx(() => [
1594
1601
  createVNode(_component_BIMDataIcon, {
@@ -1616,7 +1623,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1616
1623
  createVNode(_component_BIMDataButton, {
1617
1624
  ghost: "",
1618
1625
  radius: "",
1619
- onClick: $setup.closeAddExtension
1626
+ onClick: $setup.closeForm
1620
1627
  }, {
1621
1628
  default: withCtx(() => [
1622
1629
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.SettingCard.cancelButton")), 1)
@@ -1636,21 +1643,21 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1636
1643
  }, 8, ["onClick"])
1637
1644
  ])
1638
1645
  ], 512), [
1639
- [vShow, $setup.isOpenAddExtension]
1646
+ [vShow, $setup.isOpenForm]
1640
1647
  ])
1641
1648
  ]),
1642
1649
  _: 1
1643
1650
  }),
1644
1651
  createElementVNode("ul", _hoisted_8$7, [
1645
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.availableExtensions, (extension) => {
1652
+ (openBlock(true), createElementBlock(Fragment, null, renderList($setup.availableExtensions, (extension) => {
1646
1653
  return openBlock(), createBlock(_component_SettingCardItem, {
1647
1654
  key: extension.id,
1648
1655
  project: $props.project,
1649
- extension,
1650
1656
  extensionType: $props.extensionType,
1657
+ extension,
1651
1658
  onUpdateExtension: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update-extension", $event)),
1652
1659
  onDeleteExtension: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("delete-extension", $event))
1653
- }, null, 8, ["project", "extension", "extensionType"]);
1660
+ }, null, 8, ["project", "extensionType", "extension"]);
1654
1661
  }), 128))
1655
1662
  ])
1656
1663
  ], 512), [
@@ -1658,7 +1665,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1658
1665
  ])
1659
1666
  ]);
1660
1667
  }
1661
- var SettingCard = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-6b7af8f7"]]);
1668
+ var SettingCard = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-0bce1c62"]]);
1662
1669
  var BcfSettings_scss_vue_type_style_index_0_src_scoped_true_lang = "";
1663
1670
  const _sfc_main$i = {
1664
1671
  components: {
@@ -1667,6 +1674,13 @@ const _sfc_main$i = {
1667
1674
  SettingCard
1668
1675
  },
1669
1676
  props: {
1677
+ uiConfig: {
1678
+ type: Object,
1679
+ default: () => ({
1680
+ backButton: false,
1681
+ closeButton: false
1682
+ })
1683
+ },
1670
1684
  project: {
1671
1685
  type: Object,
1672
1686
  required: true
@@ -1677,10 +1691,11 @@ const _sfc_main$i = {
1677
1691
  }
1678
1692
  },
1679
1693
  emits: [
1694
+ "back",
1695
+ "close",
1680
1696
  "extension-created",
1681
1697
  "extension-updated",
1682
- "extension-deleted",
1683
- "close"
1698
+ "extension-deleted"
1684
1699
  ],
1685
1700
  setup(props, { emit }) {
1686
1701
  const {
@@ -1701,7 +1716,6 @@ const _sfc_main$i = {
1701
1716
  emit("extension-deleted", event.extension);
1702
1717
  };
1703
1718
  return {
1704
- EXTENSION_LIST_FIELDS,
1705
1719
  EXTENSION_TYPES,
1706
1720
  createExt,
1707
1721
  updateExt,
@@ -1711,20 +1725,39 @@ const _sfc_main$i = {
1711
1725
  };
1712
1726
  const _hoisted_1$f = { class: "bcf-settings" };
1713
1727
  const _hoisted_2$c = { class: "bcf-settings__header" };
1714
- const _hoisted_3$8 = { class: "bcf-settings__content" };
1715
- const _hoisted_4$7 = { class: "bcf-settings__content__text" };
1728
+ const _hoisted_3$8 = { class: "bcf-settings__header__title" };
1729
+ const _hoisted_4$7 = { class: "bcf-settings__content" };
1730
+ const _hoisted_5$7 = { class: "bcf-settings__content__text" };
1716
1731
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
1717
1732
  const _component_BIMDataIcon = resolveComponent("BIMDataIcon");
1718
1733
  const _component_BIMDataButton = resolveComponent("BIMDataButton");
1719
1734
  const _component_SettingCard = resolveComponent("SettingCard");
1720
1735
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
1721
1736
  createElementVNode("div", _hoisted_2$c, [
1722
- createElementVNode("span", null, toDisplayString(_ctx.$t("BcfComponents.BcfSettings.title")), 1),
1723
- createVNode(_component_BIMDataButton, {
1737
+ $props.uiConfig.backButton ? (openBlock(), createBlock(_component_BIMDataButton, {
1738
+ key: 0,
1739
+ color: "granite",
1724
1740
  ghost: "",
1725
1741
  rounded: "",
1726
1742
  icon: "",
1727
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1743
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("back"))
1744
+ }, {
1745
+ default: withCtx(() => [
1746
+ createVNode(_component_BIMDataIcon, {
1747
+ name: "arrow",
1748
+ size: "xxs"
1749
+ })
1750
+ ]),
1751
+ _: 1
1752
+ })) : createCommentVNode("", true),
1753
+ createElementVNode("span", _hoisted_3$8, toDisplayString(_ctx.$t("BcfComponents.BcfSettings.title")), 1),
1754
+ $props.uiConfig.closeButton ? (openBlock(), createBlock(_component_BIMDataButton, {
1755
+ key: 1,
1756
+ color: "granite",
1757
+ ghost: "",
1758
+ rounded: "",
1759
+ icon: "",
1760
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
1728
1761
  }, {
1729
1762
  default: withCtx(() => [
1730
1763
  createVNode(_component_BIMDataIcon, {
@@ -1733,24 +1766,24 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
1733
1766
  })
1734
1767
  ]),
1735
1768
  _: 1
1736
- })
1769
+ })) : createCommentVNode("", true)
1737
1770
  ]),
1738
- createElementVNode("div", _hoisted_3$8, [
1739
- createElementVNode("div", _hoisted_4$7, toDisplayString(_ctx.$t("BcfComponents.BcfSettings.text")), 1),
1771
+ createElementVNode("div", _hoisted_4$7, [
1772
+ createElementVNode("div", _hoisted_5$7, toDisplayString(_ctx.$t("BcfComponents.BcfSettings.text")), 1),
1740
1773
  (openBlock(true), createElementBlock(Fragment, null, renderList($setup.EXTENSION_TYPES, (t) => {
1741
1774
  return openBlock(), createBlock(_component_SettingCard, {
1742
1775
  project: $props.project,
1776
+ detailedExtensions: $props.detailedExtensions,
1743
1777
  extensionType: t,
1744
- availableExtensions: $props.detailedExtensions[$setup.EXTENSION_LIST_FIELDS[t]],
1745
1778
  onCreateExtension: $setup.createExt,
1746
1779
  onUpdateExtension: $setup.updateExt,
1747
1780
  onDeleteExtension: $setup.deleteExt
1748
- }, null, 8, ["project", "extensionType", "availableExtensions", "onCreateExtension", "onUpdateExtension", "onDeleteExtension"]);
1781
+ }, null, 8, ["project", "detailedExtensions", "extensionType", "onCreateExtension", "onUpdateExtension", "onDeleteExtension"]);
1749
1782
  }), 256))
1750
1783
  ])
1751
1784
  ]);
1752
1785
  }
1753
- var BcfSettings = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-54aa64a7"]]);
1786
+ var BcfSettings = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-dfd18f26"]]);
1754
1787
  var u$3 = Object.freeze(["default", "primary", "secondary", "high", "success", "granite"]), m$6 = { 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: (n) => u$3.includes(n) } }, emits: ["click"], computed: { classes() {
1755
1788
  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 };
1756
1789
  }, style() {
@@ -1921,42 +1954,38 @@ const _sfc_main$h = {
1921
1954
  BIMDataSimplePieChart: s$2
1922
1955
  },
1923
1956
  props: {
1924
- bcfTopics: {
1925
- type: Array,
1957
+ detailedExtensions: {
1958
+ type: Object,
1926
1959
  required: true
1927
1960
  },
1928
1961
  extensionType: {
1929
1962
  type: String
1930
1963
  },
1931
- availableExtensions: {
1964
+ topics: {
1932
1965
  type: Array,
1933
1966
  required: true
1934
1967
  }
1935
1968
  },
1936
1969
  setup(props) {
1937
- const barsData = computed(() => {
1938
- if (props.bcfTopics.length === 0) {
1970
+ const chartData = computed(() => {
1971
+ if (props.topics.length === 0)
1939
1972
  return [];
1940
- }
1941
1973
  const extField = EXTENSION_FIELDS[props.extensionType];
1942
- const displayedExtensions = [...props.availableExtensions];
1974
+ const displayedExtensions = getAvailableExtensions(props.extensionType, props.detailedExtensions);
1943
1975
  displayedExtensions.push({ [extField]: void 0 });
1944
1976
  return displayedExtensions.map((extension) => {
1945
- const barData = {};
1946
- if (extension.color !== void 0) {
1947
- barData.color = `#${extension.color}`;
1948
- } else {
1949
- barData.color = `#${DEFAULT_PRIORITY_COLOR}`;
1950
- }
1951
- const topicCount = props.bcfTopics.filter((topic) => topic[extField] === extension[extField]).length;
1952
- barData.percentage = topicCount * 100 / props.bcfTopics.length;
1953
- barData.label = extension[extField];
1954
- barData.total = topicCount;
1955
- return barData;
1956
- }).sort((a2, b2) => parseInt(a2.percentage) > parseInt(b2.percentage) ? -1 : 1);
1977
+ var _a;
1978
+ const topicCount = props.topics.filter((topic) => topic[extField] === extension[extField]).length;
1979
+ return {
1980
+ label: extension[extField],
1981
+ color: `#${(_a = extension.color) != null ? _a : DEFAULT_PRIORITY_COLOR}`,
1982
+ count: topicCount,
1983
+ percentage: topicCount * 100 / props.topics.length
1984
+ };
1985
+ }).sort((a2, b2) => b2.percentage - a2.percentage);
1957
1986
  });
1958
1987
  return {
1959
- barsData
1988
+ chartData
1960
1989
  };
1961
1990
  }
1962
1991
  };
@@ -1967,7 +1996,7 @@ const _hoisted_4$6 = { class: "bcf-statistics__content__legend__title" };
1967
1996
  const _hoisted_5$6 = { class: "bcf-statistics__content__legend__item" };
1968
1997
  const _hoisted_6$6 = { class: "bcf-statistics__content__legend__item__percent" };
1969
1998
  const _hoisted_7$6 = { class: "bcf-statistics__content__legend__item__text" };
1970
- const _hoisted_8$6 = { class: "total" };
1999
+ const _hoisted_8$6 = { class: "count" };
1971
2000
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
1972
2001
  const _component_BIMDataSimplePieChart = resolveComponent("BIMDataSimplePieChart");
1973
2002
  const _component_BIMDataPaginatedList = resolveComponent("BIMDataPaginatedList");
@@ -1975,7 +2004,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
1975
2004
  createElementVNode("div", _hoisted_2$b, [
1976
2005
  createVNode(_component_BIMDataSimplePieChart, {
1977
2006
  class: "bcf-statistics__content__chart",
1978
- barsData: $setup.barsData,
2007
+ barsData: $setup.chartData,
1979
2008
  placeholder: true,
1980
2009
  placeholderStrokeWidth: 10,
1981
2010
  graphDrawTime: 2.5
@@ -1983,23 +2012,23 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
1983
2012
  createElementVNode("div", _hoisted_3$7, [
1984
2013
  createElementVNode("div", _hoisted_4$6, toDisplayString(_ctx.$t(`BcfComponents.BcfStatistics.extension.${$props.extensionType}Title`)), 1),
1985
2014
  createVNode(_component_BIMDataPaginatedList, {
1986
- list: $setup.barsData,
2015
+ list: $setup.chartData,
1987
2016
  perPage: 6,
1988
2017
  first: false,
1989
2018
  last: false,
1990
2019
  numberDataElements: false,
1991
2020
  backgroundColor: "transparent"
1992
2021
  }, {
1993
- element: withCtx(({ element: barData }) => [
2022
+ element: withCtx(({ element: data }) => [
1994
2023
  createElementVNode("div", _hoisted_5$6, [
1995
2024
  createElementVNode("span", {
1996
2025
  class: "bcf-statistics__content__legend__item__mark",
1997
- style: normalizeStyle({ borderColor: barData.color })
2026
+ style: normalizeStyle({ borderColor: data.color })
1998
2027
  }, null, 4),
1999
- createElementVNode("span", _hoisted_6$6, toDisplayString(barData.percentage.toFixed(0)) + " % ", 1),
2028
+ createElementVNode("span", _hoisted_6$6, toDisplayString(data.percentage.toFixed(0)) + " % ", 1),
2000
2029
  createElementVNode("span", _hoisted_7$6, [
2001
- createTextVNode(toDisplayString(barData.label && _ctx.$t(`BcfComponents.BcfStatistics.extension.${$props.extensionType}`)) + " " + toDisplayString(barData.label || _ctx.$t(`BcfComponents.BcfStatistics.extension.${$props.extensionType}NotDefined`)) + " ", 1),
2002
- createElementVNode("span", _hoisted_8$6, " (" + toDisplayString(barData.total) + ") ", 1)
2030
+ createTextVNode(toDisplayString(data.label && _ctx.$t(`BcfComponents.BcfStatistics.extension.${$props.extensionType}`)) + " " + toDisplayString(data.label || _ctx.$t(`BcfComponents.BcfStatistics.extension.${$props.extensionType}NotDefined`)) + " ", 1),
2031
+ createElementVNode("span", _hoisted_8$6, " (" + toDisplayString(data.count) + ") ", 1)
2003
2032
  ])
2004
2033
  ])
2005
2034
  ]),
@@ -2009,7 +2038,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2009
2038
  ])
2010
2039
  ]);
2011
2040
  }
2012
- var BcfStatistics = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-763cac12"]]);
2041
+ var BcfStatistics = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-7c6a2464"]]);
2013
2042
  var s$1 = { props: { width: { type: String, default: "100%" }, minWidth: { type: String }, maxWidth: { type: String }, text: { type: String, default: "" }, cutPosition: { type: String, default: "middle", validator: (t) => ["start", "middle", "end"].includes(t) }, tooltip: { type: Boolean, default: true }, tooltipPosition: { type: String, default: "bottom", validator: (t) => ["top", "right", "bottom", "left"].includes(t) }, tooltipColor: { type: String, default: "primary", validator: (t) => ["white", "primary", "secondary", "granite-light", "silver-light"].includes(t) } }, data: () => ({ showTooltip: false, isOverflowing: false, textHead: "", textTail: "" }), watch: { width: "computeText", text: "computeText", cutPosition: "computeText" }, mounted() {
2014
2043
  this.observer = new ResizeObserver(() => this.computeText()), this.observer.observe(this.$refs.textBox), this.computeText();
2015
2044
  }, beforeUnmount() {
@@ -2056,27 +2085,27 @@ const _sfc_main$f = {
2056
2085
  BIMDataTextbox: s$1
2057
2086
  },
2058
2087
  props: {
2059
- bcfTopic: {
2088
+ detailedExtensions: {
2060
2089
  type: Object,
2061
2090
  required: true
2062
2091
  },
2063
- detailedExtensions: {
2092
+ topic: {
2064
2093
  type: Object,
2065
2094
  required: true
2066
2095
  }
2067
2096
  },
2068
2097
  emits: [
2069
- "open-bcf-topic"
2098
+ "open-topic"
2070
2099
  ],
2071
2100
  setup(props, { emit }) {
2072
2101
  const viewpointsWithSnapshot = computed(() => {
2073
- return props.bcfTopic.viewpoints.filter((viewpoint) => Boolean(viewpoint.snapshot));
2102
+ return props.topic.viewpoints.filter((viewpoint) => Boolean(viewpoint.snapshot));
2074
2103
  });
2075
- const priorityColor = computed(() => getPriorityColor(props.bcfTopic, props.detailedExtensions));
2076
- const statusColor = computed(() => getStatusColor(props.bcfTopic, props.detailedExtensions));
2104
+ const priorityColor = computed(() => getPriorityColor(props.topic, props.detailedExtensions));
2105
+ const statusColor = computed(() => getStatusColor(props.topic, props.detailedExtensions));
2077
2106
  const topicObjects = computed(() => {
2078
2107
  var _a, _b;
2079
- const components2 = (_b = (_a = props.bcfTopic.viewpoints) == null ? void 0 : _a[0]) == null ? void 0 : _b.components;
2108
+ const components2 = (_b = (_a = props.topic.viewpoints) == null ? void 0 : _a[0]) == null ? void 0 : _b.components;
2080
2109
  return (components2 == null ? void 0 : components2.selection) || [];
2081
2110
  });
2082
2111
  return {
@@ -2100,7 +2129,7 @@ const _hoisted_9$3 = { class: "bcf-topic-card__content p-12" };
2100
2129
  const _hoisted_10$3 = { class: "bcf-topic-card__content__priority" };
2101
2130
  const _hoisted_11$3 = { class: "flex justify-around m-t-12" };
2102
2131
  const _hoisted_12$2 = { class: "flex items-center" };
2103
- const _hoisted_13$2 = {
2132
+ const _hoisted_13$3 = {
2104
2133
  key: 0,
2105
2134
  class: "m-r-6"
2106
2135
  };
@@ -2118,16 +2147,16 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2118
2147
  "background-color": `#${$setup.priorityColor}`,
2119
2148
  color: $setup.adjustTextColor(`#${$setup.priorityColor}`, "#ffffff", "var(--color-text)")
2120
2149
  })
2121
- }, toDisplayString($props.bcfTopic.index), 5),
2150
+ }, toDisplayString($props.topic.index), 5),
2122
2151
  createElementVNode("div", _hoisted_4$5, [
2123
2152
  createVNode(_component_BIMDataTextbox, {
2124
2153
  maxWidth: "100% - 48px",
2125
- text: $props.bcfTopic.title
2154
+ text: $props.topic.title
2126
2155
  }, null, 8, ["text"])
2127
2156
  ])
2128
2157
  ]),
2129
2158
  createElementVNode("div", _hoisted_5$5, [
2130
- $props.bcfTopic.topic_status ? (openBlock(), createElementBlock("div", {
2159
+ $props.topic.topic_status ? (openBlock(), createElementBlock("div", {
2131
2160
  key: 0,
2132
2161
  class: "bcf-topic-card__header__img__status flex p-6",
2133
2162
  style: normalizeStyle({
@@ -2140,9 +2169,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2140
2169
  fill: "",
2141
2170
  color: "default"
2142
2171
  }),
2143
- createElementVNode("span", _hoisted_6$5, toDisplayString($props.bcfTopic.topic_status), 1)
2172
+ createElementVNode("span", _hoisted_6$5, toDisplayString($props.topic.topic_status), 1)
2144
2173
  ], 4)) : createCommentVNode("", true),
2145
- createElementVNode("div", _hoisted_7$5, toDisplayString(_ctx.$d($props.bcfTopic.creation_date, "short")), 1),
2174
+ createElementVNode("div", _hoisted_7$5, toDisplayString(_ctx.$d($props.topic.creation_date, "short")), 1),
2146
2175
  $setup.viewpointsWithSnapshot.length > 0 ? (openBlock(), createElementBlock("img", {
2147
2176
  key: 1,
2148
2177
  src: $setup.viewpointsWithSnapshot[0].snapshot.snapshot_data,
@@ -2159,11 +2188,11 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2159
2188
  createElementVNode("strong", null, toDisplayString(_ctx.$t("BcfComponents.BcfTopicCard.priority")), 1),
2160
2189
  createElementVNode("span", {
2161
2190
  style: normalizeStyle({ color: `#${$setup.priorityColor}` })
2162
- }, toDisplayString($props.bcfTopic.priority || _ctx.$t("BcfComponents.BcfTopicCard.noPriority")), 5)
2191
+ }, toDisplayString($props.topic.priority || _ctx.$t("BcfComponents.BcfTopicCard.noPriority")), 5)
2163
2192
  ]),
2164
2193
  createElementVNode("div", null, [
2165
2194
  createElementVNode("strong", null, toDisplayString(_ctx.$t("BcfComponents.BcfTopicCard.assignedTo")), 1),
2166
- createElementVNode("span", null, toDisplayString($props.bcfTopic.assigned_to || _ctx.$t("BcfComponents.BcfTopicCard.notSpecified")), 1)
2195
+ createElementVNode("span", null, toDisplayString($props.topic.assigned_to || _ctx.$t("BcfComponents.BcfTopicCard.notSpecified")), 1)
2167
2196
  ]),
2168
2197
  createElementVNode("div", _hoisted_11$3, [
2169
2198
  createElementVNode("div", _hoisted_12$2, [
@@ -2174,7 +2203,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2174
2203
  size: "xs",
2175
2204
  margin: "0 6px 0 0"
2176
2205
  }),
2177
- $setup.topicObjects.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_13$2, toDisplayString($setup.topicObjects.length), 1)) : createCommentVNode("", true),
2206
+ $setup.topicObjects.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_13$3, toDisplayString($setup.topicObjects.length), 1)) : createCommentVNode("", true),
2178
2207
  createElementVNode("span", null, toDisplayString($setup.topicObjects.length > 0 ? _ctx.$t("BcfComponents.BcfTopicCard.elements") : _ctx.$t("BcfComponents.BcfTopicCard.noElements")), 1)
2179
2208
  ]),
2180
2209
  createVNode(_component_BIMDataButton, {
@@ -2182,7 +2211,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2182
2211
  color: "primary",
2183
2212
  fill: "",
2184
2213
  radius: "",
2185
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-bcf-topic", $props.bcfTopic))
2214
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-topic", $props.topic))
2186
2215
  }, {
2187
2216
  default: withCtx(() => [
2188
2217
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicCard.see")), 1)
@@ -2193,7 +2222,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2193
2222
  ])
2194
2223
  ]);
2195
2224
  }
2196
- var BcfTopicCard = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-4d6c5487"]]);
2225
+ var BcfTopicCard = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-87360a50"]]);
2197
2226
  const _sfc_main$e = {};
2198
2227
  const _hoisted_1$b = {
2199
2228
  width: "66",
@@ -2203,11 +2232,11 @@ const _hoisted_1$b = {
2203
2232
  xmlns: "http://www.w3.org/2000/svg"
2204
2233
  };
2205
2234
  const _hoisted_2$8 = /* @__PURE__ */ createStaticVNode('<path 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" class="fill-granite-light"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-secondary"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-silver-dark"></path><path 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" class="fill-secondary"></path>', 11);
2206
- const _hoisted_13$1 = [
2235
+ const _hoisted_13$2 = [
2207
2236
  _hoisted_2$8
2208
2237
  ];
2209
2238
  function _sfc_render$e(_ctx, _cache) {
2210
- return openBlock(), createElementBlock("svg", _hoisted_1$b, _hoisted_13$1);
2239
+ return openBlock(), createElementBlock("svg", _hoisted_1$b, _hoisted_13$2);
2211
2240
  }
2212
2241
  var BcfTopicCreationCardImage = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
2213
2242
  var BcfTopicCreationCard_scss_vue_type_style_index_0_src_scoped_true_lang = "";
@@ -2217,7 +2246,7 @@ const _sfc_main$d = {
2217
2246
  BIMDataButton: l,
2218
2247
  BIMDataIcon: gt$2
2219
2248
  },
2220
- emits: ["create-bcf-topic"]
2249
+ emits: ["create-topic"]
2221
2250
  };
2222
2251
  const _hoisted_1$a = { class: "bcf-topic-creation-card" };
2223
2252
  const _hoisted_2$7 = { class: "bcf-topic-creation-card__text" };
@@ -2235,7 +2264,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2235
2264
  fill: "",
2236
2265
  radius: "",
2237
2266
  icon: "",
2238
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("create-bcf-topic"))
2267
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("create-topic"))
2239
2268
  }, {
2240
2269
  default: withCtx(() => [
2241
2270
  createVNode(_component_BIMDataIcon, {
@@ -2249,7 +2278,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2249
2278
  })
2250
2279
  ]);
2251
2280
  }
2252
- var BcfTopicCreationCard = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-02f52cb0"]]);
2281
+ var BcfTopicCreationCard = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-39056820"]]);
2253
2282
  var x$3 = { props: { component: { type: String, default: "p" }, display: { type: String, default: "inline-block" }, fontSize: { type: String }, fontWeight: { type: String }, lineHeight: { type: String }, margin: { type: String, default: "0px" }, padding: { type: String, default: "0px" }, color: { type: String, default: "color-granite-light", validator: (n) => ["color-primary", "color-secondary", "color-silver", "color-silver-light", "color-silver-dark", "color-granite-light", "color-granite", "color-white", "color-black", "color-high", "color-warning", "color-success"].includes(n) } }, computed: { classes() {
2254
2283
  return "" + this.color;
2255
2284
  }, style() {
@@ -2801,7 +2830,7 @@ const _sfc_main$c = {
2801
2830
  "delete-viewpoint"
2802
2831
  ],
2803
2832
  setup(_2, { emit }) {
2804
- const addImage = (event) => {
2833
+ const createViewpoints = (event) => {
2805
2834
  [...event.target.files].forEach((file) => {
2806
2835
  const reader = new FileReader();
2807
2836
  reader.addEventListener("load", () => {
@@ -2820,7 +2849,7 @@ const _sfc_main$c = {
2820
2849
  emit("delete-viewpoint", viewpoint);
2821
2850
  };
2822
2851
  return {
2823
- addImage,
2852
+ createViewpoints,
2824
2853
  deleteViewpoint: deleteViewpoint2
2825
2854
  };
2826
2855
  }
@@ -2895,7 +2924,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2895
2924
  type: "file",
2896
2925
  multiple: "",
2897
2926
  accept: "image/png, image/jpeg",
2898
- onChange: _cache[0] || (_cache[0] = (...args) => $setup.addImage && $setup.addImage(...args))
2927
+ onChange: _cache[0] || (_cache[0] = (...args) => $setup.createViewpoints && $setup.createViewpoints(...args))
2899
2928
  }, null, 40, _hoisted_5$4)
2900
2929
  ]),
2901
2930
  _: 1
@@ -2921,7 +2950,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2921
2950
  type: "file",
2922
2951
  multiple: "",
2923
2952
  accept: "image/png, image/jpeg",
2924
- onChange: _cache[1] || (_cache[1] = (...args) => $setup.addImage && $setup.addImage(...args))
2953
+ onChange: _cache[1] || (_cache[1] = (...args) => $setup.createViewpoints && $setup.createViewpoints(...args))
2925
2954
  }, null, 32)
2926
2955
  ]),
2927
2956
  _: 1
@@ -2929,7 +2958,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2929
2958
  ]))
2930
2959
  ]);
2931
2960
  }
2932
- var BcfTopicImages = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-f9b6ed42"]]);
2961
+ var BcfTopicImages = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-16bc201a"]]);
2933
2962
  var BcfTopicSnapshots_scss_vue_type_style_index_0_src_scoped_true_lang = "";
2934
2963
  const _sfc_main$b = {
2935
2964
  components: {
@@ -2947,17 +2976,16 @@ const _sfc_main$b = {
2947
2976
  "delete-viewpoint"
2948
2977
  ],
2949
2978
  setup(_2, { emit }) {
2950
- const getViewers = inject("getViewers", () => {
2951
- });
2979
+ const getViewers = inject("getViewers", () => ({}));
2952
2980
  const createViewpoints = async () => {
2953
2981
  Object.entries(getViewers()).forEach(([id, viewers]) => {
2954
- const [type, config2] = Object.entries(VIEWPOINT_CONFIG).find(([, c2]) => c2.plugin === id);
2982
+ const [type, config2] = Object.entries(VIEWPOINT_CONFIG$1).find(([, c2]) => c2.plugin === id);
2955
2983
  viewers.forEach(async (viewer) => {
2956
2984
  const viewpoint = await viewer.getViewpoint();
2957
2985
  const { order } = config2 != null ? config2 : {};
2958
2986
  viewpoint.order = order;
2959
- viewpoint[VIEWPOINT_TYPE_FIELD] = type;
2960
- viewpoint[VIEWPOINT_MODELS_FIELD] = viewer.getLoadedModels().map((m2) => m2.id).join(",");
2987
+ viewpoint[VIEWPOINT_TYPE_FIELD$1] = type;
2988
+ viewpoint[VIEWPOINT_MODELS_FIELD$1] = viewer.getLoadedModels().map((m2) => m2.id).join(",");
2961
2989
  emit("add-viewpoint", viewpoint);
2962
2990
  });
2963
2991
  });
@@ -3022,7 +3050,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3022
3050
  ]))
3023
3051
  ]);
3024
3052
  }
3025
- var BcfTopicSnapshots = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-aca32dc4"]]);
3053
+ var BcfTopicSnapshots = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-0623c701"]]);
3026
3054
  var BcfTopicForm_scss_vue_type_style_index_0_src_scoped_true_lang = "";
3027
3055
  const _sfc_main$a = {
3028
3056
  components: {
@@ -3039,15 +3067,19 @@ const _sfc_main$a = {
3039
3067
  BIMDataTooltip: g$1
3040
3068
  },
3041
3069
  props: {
3042
- viewerMode: {
3043
- type: Boolean,
3044
- default: false
3070
+ uiConfig: {
3071
+ type: Object,
3072
+ default: () => ({
3073
+ viewerMode: false,
3074
+ backButton: false,
3075
+ closeButton: false
3076
+ })
3045
3077
  },
3046
- objectsEditMode: {
3078
+ objectsEditEnabled: {
3047
3079
  type: Boolean,
3048
3080
  default: false
3049
3081
  },
3050
- annotationsEditMode: {
3082
+ annotationsEditEnabled: {
3051
3083
  type: Boolean,
3052
3084
  default: false
3053
3085
  },
@@ -3059,31 +3091,32 @@ const _sfc_main$a = {
3059
3091
  type: Object,
3060
3092
  reuiqred: true
3061
3093
  },
3062
- bcfTopics: {
3094
+ topics: {
3063
3095
  type: Array,
3064
3096
  required: true
3065
3097
  },
3066
- bcfTopic: {
3098
+ topic: {
3067
3099
  type: Object
3068
3100
  },
3069
- bcfTopicModels: {
3101
+ topicModels: {
3070
3102
  type: Array,
3071
3103
  default: () => []
3072
3104
  },
3073
- bcfTopicObjects: {
3105
+ topicObjects: {
3074
3106
  type: Object
3075
3107
  },
3076
- bcfTopicAnnotations: {
3108
+ topicAnnotations: {
3077
3109
  type: Array
3078
3110
  }
3079
3111
  },
3080
3112
  emits: [
3081
- "bcf-topic-created",
3082
- "bcf-topic-updated",
3113
+ "back",
3083
3114
  "close",
3084
- "edit-annotations",
3085
- "edit-objects",
3115
+ "edit-topic-annotations",
3116
+ "edit-topic-objects",
3117
+ "topic-created",
3086
3118
  "topic-create-error",
3119
+ "topic-updated",
3087
3120
  "topic-update-error"
3088
3121
  ],
3089
3122
  setup(props, { emit }) {
@@ -3093,8 +3126,8 @@ const _sfc_main$a = {
3093
3126
  createViewpoint: createViewpoint2,
3094
3127
  deleteViewpoint: deleteViewpoint2
3095
3128
  } = useService();
3096
- const isCreation = computed(() => !props.bcfTopic);
3097
- const nextIndex = computed(() => Math.max(0, ...props.bcfTopics.map((t) => t.index)) + 1);
3129
+ const isCreation = computed(() => !props.topic);
3130
+ const nextIndex = computed(() => Math.max(0, ...props.topics.map((t) => t.index)) + 1);
3098
3131
  const topicTitle = ref("");
3099
3132
  const topicType = ref(null);
3100
3133
  const topicPriority = ref(null);
@@ -3113,7 +3146,7 @@ const _sfc_main$a = {
3113
3146
  const isOpenModal = ref(false);
3114
3147
  const hasErrorTitle = ref(false);
3115
3148
  const hasErrorDate = ref(false);
3116
- watch(() => props.bcfTopic, (topic) => {
3149
+ watch(() => props.topic, (topic) => {
3117
3150
  if (!isCreation.value) {
3118
3151
  topicTitle.value = topic.title || "";
3119
3152
  topicType.value = topic.topic_type || null;
@@ -3163,7 +3196,7 @@ const _sfc_main$a = {
3163
3196
  hasErrorTitle.value = true;
3164
3197
  return;
3165
3198
  }
3166
- if (!validate(topicDueDate.value) && topicDueDate.value !== deserialize$1(props.bcfTopic.due_date)) {
3199
+ if (topicDueDate.value !== deserialize$1(props.topic.due_date) && !validateDueDate(topicDueDate.value)) {
3167
3200
  hasErrorDate.value = true;
3168
3201
  return;
3169
3202
  }
@@ -3176,13 +3209,13 @@ const _sfc_main$a = {
3176
3209
  return ((_a2 = v1.order) != null ? _a2 : Infinity) - ((_b2 = v2.order) != null ? _b2 : Infinity);
3177
3210
  });
3178
3211
  }
3179
- if (props.bcfTopicObjects) {
3212
+ if (props.topicObjects) {
3180
3213
  if (viewpointsToUpdate.value.length > 0 || viewpointsToCreate.value.length > 0) {
3181
3214
  [
3182
3215
  ...viewpointsToUpdate.value,
3183
3216
  ...viewpointsToCreate.value
3184
3217
  ].forEach((viewpoint) => {
3185
- Object.assign(viewpoint, props.bcfTopicObjects);
3218
+ Object.assign(viewpoint, props.topicObjects);
3186
3219
  if (!viewpoint.components) {
3187
3220
  viewpoint.components = {};
3188
3221
  }
@@ -3203,19 +3236,19 @@ const _sfc_main$a = {
3203
3236
  });
3204
3237
  } else {
3205
3238
  viewpointsToCreate.value.push({
3206
- components: props.bcfTopicObjects
3239
+ components: props.topicObjects
3207
3240
  });
3208
3241
  }
3209
3242
  }
3210
- if (props.bcfTopicAnnotations) {
3243
+ if (props.topicAnnotations) {
3211
3244
  [
3212
3245
  ...viewpointsToUpdate.value,
3213
3246
  ...viewpointsToCreate.value
3214
- ].forEach((viewpoint) => viewpoint.pins = props.bcfTopicAnnotations);
3247
+ ].forEach((viewpoint) => viewpoint.pins = props.topicAnnotations);
3215
3248
  }
3216
3249
  const data = {
3217
- guid: (_a = props.bcfTopic) == null ? void 0 : _a.guid,
3218
- models: ((_b = props.bcfTopic) == null ? void 0 : _b.models) || props.models,
3250
+ guid: (_a = props.topic) == null ? void 0 : _a.guid,
3251
+ models: ((_b = props.topic) == null ? void 0 : _b.models) || props.topicModels,
3219
3252
  title: topicTitle.value,
3220
3253
  topic_type: topicType.value,
3221
3254
  priority: topicPriority.value,
@@ -3236,13 +3269,13 @@ const _sfc_main$a = {
3236
3269
  await Promise.all(viewpointsToCreate.value.map((viewpoint) => createViewpoint2(props.project, newTopic, viewpoint)));
3237
3270
  await Promise.all(viewpointsToDelete.value.map((viewpoint) => deleteViewpoint2(props.project, newTopic, viewpoint)));
3238
3271
  if (isCreation.value) {
3239
- emit("bcf-topic-created", newTopic);
3272
+ emit("topic-created", newTopic);
3240
3273
  reset();
3241
3274
  } else {
3242
- emit("bcf-topic-updated", newTopic);
3275
+ emit("topic-updated", newTopic);
3243
3276
  }
3244
3277
  } catch (error) {
3245
- emit(isCreation.value ? "topic-create-error" : "topic-update-error");
3278
+ emit(isCreation.value ? "topic-create-error" : "topic-update-error", error);
3246
3279
  } finally {
3247
3280
  loading.value = false;
3248
3281
  }
@@ -3271,30 +3304,33 @@ const _sfc_main$a = {
3271
3304
  }
3272
3305
  };
3273
3306
  const _hoisted_1$7 = { class: "bcf-topic-form" };
3274
- const _hoisted_2$4 = { class: "bcf-topic-form__content" };
3275
- const _hoisted_3$3 = { class: "bcf-topic-form__content__head" };
3276
- const _hoisted_4$3 = { class: "bcf-topic-form__content__head__index" };
3277
- const _hoisted_5$3 = { class: "bcf-topic-form__content__head__date" };
3278
- const _hoisted_6$3 = { class: "bcf-topic-form__content__actions" };
3279
- const _hoisted_7$3 = {
3307
+ const _hoisted_2$4 = { class: "bcf-topic-form__header" };
3308
+ const _hoisted_3$3 = { class: "bcf-topic-form__header__title" };
3309
+ const _hoisted_4$3 = { class: "bcf-topic-form__content" };
3310
+ const _hoisted_5$3 = { class: "bcf-topic-form__content__head" };
3311
+ const _hoisted_6$3 = { class: "bcf-topic-form__content__head__index" };
3312
+ const _hoisted_7$3 = { class: "bcf-topic-form__content__head__date" };
3313
+ const _hoisted_8$3 = { class: "bcf-topic-form__content__actions" };
3314
+ const _hoisted_9$2 = {
3280
3315
  key: 0,
3281
3316
  class: "count-objects"
3282
3317
  };
3283
- const _hoisted_8$3 = {
3318
+ const _hoisted_10$2 = {
3284
3319
  key: 0,
3285
3320
  class: "count-annotations"
3286
3321
  };
3287
- const _hoisted_9$2 = { class: "bcf-topic-form__content__body" };
3288
- const _hoisted_10$2 = { class: "m-b-30" };
3289
- const _hoisted_11$2 = { class: "bcf-topic-form__footer" };
3290
- const _hoisted_12$1 = {
3322
+ const _hoisted_11$2 = { class: "bcf-topic-form__content__body" };
3323
+ const _hoisted_12$1 = { class: "m-b-30" };
3324
+ const _hoisted_13$1 = { class: "bcf-topic-form__footer" };
3325
+ const _hoisted_14$1 = {
3291
3326
  key: 0,
3292
3327
  class: "bcf-topic-form__loader"
3293
3328
  };
3294
3329
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3295
- const _component_BcfTopicSnapshots = resolveComponent("BcfTopicSnapshots");
3296
3330
  const _component_BIMDataIcon = resolveComponent("BIMDataIcon");
3297
3331
  const _component_BIMDataButton = resolveComponent("BIMDataButton");
3332
+ const _component_BIMDataTextbox = resolveComponent("BIMDataTextbox");
3333
+ const _component_BcfTopicSnapshots = resolveComponent("BcfTopicSnapshots");
3298
3334
  const _component_BIMDataTooltip = resolveComponent("BIMDataTooltip");
3299
3335
  const _component_BcfTopicImages = resolveComponent("BcfTopicImages");
3300
3336
  const _component_BIMDataInput = resolveComponent("BIMDataInput");
@@ -3304,22 +3340,67 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3304
3340
  const _component_BIMDataSafeZoneModal = resolveComponent("BIMDataSafeZoneModal");
3305
3341
  return openBlock(), createElementBlock("div", _hoisted_1$7, [
3306
3342
  createElementVNode("div", _hoisted_2$4, [
3343
+ $props.uiConfig.backButton ? (openBlock(), createBlock(_component_BIMDataButton, {
3344
+ key: 0,
3345
+ ghost: "",
3346
+ rounded: "",
3347
+ icon: "",
3348
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("back"))
3349
+ }, {
3350
+ default: withCtx(() => [
3351
+ createVNode(_component_BIMDataIcon, {
3352
+ name: "arrow",
3353
+ size: "xxs",
3354
+ fill: "",
3355
+ color: "granite-light"
3356
+ })
3357
+ ]),
3358
+ _: 1
3359
+ })) : createCommentVNode("", true),
3307
3360
  createElementVNode("div", _hoisted_3$3, [
3308
- createElementVNode("div", _hoisted_4$3, toDisplayString($setup.isCreation ? $setup.nextIndex : $props.bcfTopic.index), 1),
3309
- createElementVNode("div", _hoisted_5$3, toDisplayString(_ctx.$d($setup.isCreation ? new Date() : $props.bcfTopic.creation_date, "short")), 1)
3361
+ $setup.isCreation ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3362
+ createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.createTitle")), 1)
3363
+ ], 64)) : (openBlock(), createBlock(_component_BIMDataTextbox, {
3364
+ key: 1,
3365
+ maxWidth: "250px",
3366
+ text: $props.topic.title
3367
+ }, null, 8, ["text"]))
3368
+ ]),
3369
+ $props.uiConfig.closeButton ? (openBlock(), createBlock(_component_BIMDataButton, {
3370
+ key: 1,
3371
+ ghost: "",
3372
+ rounded: "",
3373
+ icon: "",
3374
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
3375
+ }, {
3376
+ default: withCtx(() => [
3377
+ createVNode(_component_BIMDataIcon, {
3378
+ name: "close",
3379
+ size: "xxs",
3380
+ fill: "",
3381
+ color: "granite-light"
3382
+ })
3383
+ ]),
3384
+ _: 1
3385
+ })) : createCommentVNode("", true)
3386
+ ]),
3387
+ createElementVNode("div", _hoisted_4$3, [
3388
+ createElementVNode("div", _hoisted_5$3, [
3389
+ createElementVNode("div", _hoisted_6$3, toDisplayString($setup.isCreation ? $setup.nextIndex : $props.topic.index), 1),
3390
+ createElementVNode("div", _hoisted_7$3, toDisplayString(_ctx.$d($setup.isCreation ? new Date() : $props.topic.creation_date, "short")), 1)
3310
3391
  ]),
3311
- $props.viewerMode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3392
+ $props.uiConfig.viewerMode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3312
3393
  createVNode(_component_BcfTopicSnapshots, {
3313
3394
  viewpoints: $setup.viewpointsToDisplay,
3314
3395
  onAddViewpoint: $setup.addViewpoint,
3315
3396
  onDeleteViewpoint: $setup.delViewpoint
3316
3397
  }, null, 8, ["viewpoints", "onAddViewpoint", "onDeleteViewpoint"]),
3317
- createElementVNode("div", _hoisted_6$3, [
3398
+ createElementVNode("div", _hoisted_8$3, [
3318
3399
  createVNode(_component_BIMDataButton, {
3319
3400
  fill: "",
3320
3401
  radius: "",
3321
- disabled: !$props.objectsEditMode,
3322
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("edit-objects", $props.bcfTopic))
3402
+ disabled: !$props.objectsEditEnabled,
3403
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("edit-topic-objects", $props.topic))
3323
3404
  }, {
3324
3405
  default: withCtx(() => [
3325
3406
  createVNode(_component_BIMDataIcon, {
@@ -3328,7 +3409,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3328
3409
  margin: "0 6px 0 0"
3329
3410
  }),
3330
3411
  createElementVNode("span", null, toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.addObjectButton")), 1),
3331
- $props.bcfTopicObjects ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString($props.bcfTopicObjects.selection.length), 1)) : createCommentVNode("", true)
3412
+ $props.topicObjects ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString($props.topicObjects.selection.length), 1)) : createCommentVNode("", true)
3332
3413
  ]),
3333
3414
  _: 1
3334
3415
  }, 8, ["disabled"]),
@@ -3343,8 +3424,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3343
3424
  color: "primary",
3344
3425
  fill: "",
3345
3426
  radius: "",
3346
- disabled: !$props.annotationsEditMode || $setup.viewpointsToDisplay.length === 0,
3347
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("edit-annotations", $props.bcfTopic))
3427
+ disabled: !$props.annotationsEditEnabled || $setup.viewpointsToDisplay.length === 0,
3428
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("edit-topic-annotations", $props.topic))
3348
3429
  }, {
3349
3430
  default: withCtx(() => [
3350
3431
  createVNode(_component_BIMDataIcon, {
@@ -3353,7 +3434,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3353
3434
  margin: "0 6px 0 0"
3354
3435
  }),
3355
3436
  createElementVNode("span", null, toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.addAnnotationButton")), 1),
3356
- $props.bcfTopicAnnotations ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString($props.bcfTopicAnnotations.length), 1)) : createCommentVNode("", true)
3437
+ $props.topicAnnotations ? (openBlock(), createElementBlock("span", _hoisted_10$2, toDisplayString($props.topicAnnotations.length), 1)) : createCommentVNode("", true)
3357
3438
  ]),
3358
3439
  _: 1
3359
3440
  }, 8, ["disabled"])
@@ -3367,13 +3448,13 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3367
3448
  onAddViewpoint: $setup.addViewpoint,
3368
3449
  onDeleteViewpoint: $setup.delViewpoint
3369
3450
  }, null, 8, ["viewpoints", "onAddViewpoint", "onDeleteViewpoint"])),
3370
- createElementVNode("div", _hoisted_9$2, [
3451
+ createElementVNode("div", _hoisted_11$2, [
3371
3452
  createVNode(_component_BIMDataInput, {
3372
3453
  placeholder: _ctx.$t("BcfComponents.BcfTopicForm.titlePlaceholder"),
3373
3454
  error: $setup.hasErrorTitle,
3374
3455
  errorMessage: _ctx.$t("BcfComponents.BcfTopicForm.titleErrorMessage"),
3375
3456
  modelValue: $setup.topicTitle,
3376
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.topicTitle = $event),
3457
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.topicTitle = $event),
3377
3458
  onKeyup: withKeys(withModifiers($setup.submit, ["stop"]), ["enter"])
3378
3459
  }, null, 8, ["placeholder", "error", "errorMessage", "modelValue", "onKeyup"]),
3379
3460
  createVNode(_component_BIMDataSelect, {
@@ -3381,44 +3462,44 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3381
3462
  label: _ctx.$t("BcfComponents.BcfTopicForm.typeLabel"),
3382
3463
  options: $props.extensions.topic_type,
3383
3464
  modelValue: $setup.topicType,
3384
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.topicType = $event)
3465
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.topicType = $event)
3385
3466
  }, null, 8, ["label", "options", "modelValue"]),
3386
3467
  createVNode(_component_BIMDataSelect, {
3387
3468
  width: "100%",
3388
3469
  label: _ctx.$t("BcfComponents.BcfTopicForm.priorityLabel"),
3389
3470
  options: $props.extensions.priority,
3390
3471
  modelValue: $setup.topicPriority,
3391
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.topicPriority = $event)
3472
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.topicPriority = $event)
3392
3473
  }, null, 8, ["label", "options", "modelValue"]),
3393
3474
  createVNode(_component_BIMDataSelect, {
3394
3475
  width: "100%",
3395
3476
  label: _ctx.$t("BcfComponents.BcfTopicForm.statusLabel"),
3396
3477
  options: $props.extensions.topic_status,
3397
3478
  modelValue: $setup.topicStatus,
3398
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.topicStatus = $event)
3479
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $setup.topicStatus = $event)
3399
3480
  }, null, 8, ["label", "options", "modelValue"]),
3400
3481
  createVNode(_component_BIMDataSelect, {
3401
3482
  width: "100%",
3402
3483
  label: _ctx.$t("BcfComponents.BcfTopicForm.stageLabel"),
3403
3484
  options: $props.extensions.stage,
3404
3485
  modelValue: $setup.topicStage,
3405
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.topicStage = $event)
3486
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $setup.topicStage = $event)
3406
3487
  }, null, 8, ["label", "options", "modelValue"]),
3407
3488
  createVNode(_component_BIMDataSelect, {
3408
3489
  width: "100%",
3409
3490
  label: _ctx.$t("BcfComponents.BcfTopicForm.assignedToLabel"),
3410
3491
  options: $props.extensions.user_id_type,
3411
3492
  modelValue: $setup.topicAssignedTo,
3412
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $setup.topicAssignedTo = $event)
3493
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $setup.topicAssignedTo = $event)
3413
3494
  }, null, 8, ["label", "options", "modelValue"]),
3414
- createElementVNode("div", _hoisted_10$2, [
3495
+ createElementVNode("div", _hoisted_12$1, [
3415
3496
  createVNode(_component_BIMDataInput, {
3416
3497
  margin: "0",
3417
3498
  placeholder: _ctx.$t("BcfComponents.BcfTopicForm.dueDateLabel"),
3418
3499
  error: $setup.hasErrorDate,
3419
3500
  errorMessage: _ctx.$t("BcfComponents.BcfTopicForm.dateErrorMessage"),
3420
3501
  modelValue: $setup.topicDueDate,
3421
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $setup.topicDueDate = $event)
3502
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $setup.topicDueDate = $event)
3422
3503
  }, null, 8, ["placeholder", "error", "errorMessage", "modelValue"])
3423
3504
  ]),
3424
3505
  createVNode(_component_BIMDataTextarea, {
@@ -3426,7 +3507,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3426
3507
  name: "description",
3427
3508
  label: _ctx.$t("BcfComponents.BcfTopicForm.descriptionLabel"),
3428
3509
  modelValue: $setup.topicDescription,
3429
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $setup.topicDescription = $event),
3510
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $setup.topicDescription = $event),
3430
3511
  fitContent: ""
3431
3512
  }, null, 8, ["label", "modelValue"]),
3432
3513
  createVNode(_component_BIMDataSelect, {
@@ -3435,11 +3516,11 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3435
3516
  label: _ctx.$t("BcfComponents.BcfTopicForm.labelsLabel"),
3436
3517
  options: $props.extensions.topic_label,
3437
3518
  modelValue: $setup.topicLabels,
3438
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $setup.topicLabels = $event)
3519
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $setup.topicLabels = $event)
3439
3520
  }, null, 8, ["label", "options", "modelValue"])
3440
3521
  ])
3441
3522
  ]),
3442
- createElementVNode("div", _hoisted_11$2, [
3523
+ createElementVNode("div", _hoisted_13$1, [
3443
3524
  createVNode(_component_BIMDataButton, {
3444
3525
  disabled: !$setup.topicTitle,
3445
3526
  width: "100%",
@@ -3454,12 +3535,12 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3454
3535
  _: 1
3455
3536
  }, 8, ["disabled", "onClick"])
3456
3537
  ]),
3457
- $setup.loading ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
3538
+ $setup.loading ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
3458
3539
  createVNode(_component_BIMDataLoading)
3459
3540
  ])) : createCommentVNode("", true),
3460
3541
  $setup.isOpenModal ? (openBlock(), createBlock(_component_BIMDataSafeZoneModal, { key: 1 }, {
3461
3542
  text: withCtx(() => [
3462
- createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.modalText", { name: $props.bcfTopic.title })), 1)
3543
+ createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.modalText", { name: $props.topic.title })), 1)
3463
3544
  ]),
3464
3545
  actions: withCtx(() => [
3465
3546
  createVNode(_component_BIMDataButton, {
@@ -3467,7 +3548,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3467
3548
  color: "high",
3468
3549
  fill: "",
3469
3550
  radius: "",
3470
- onClick: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("close"))
3551
+ onClick: _cache[13] || (_cache[13] = ($event) => _ctx.$emit("close"))
3471
3552
  }, {
3472
3553
  default: withCtx(() => [
3473
3554
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.cancelButton")), 1)
@@ -3478,7 +3559,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3478
3559
  color: "primary",
3479
3560
  outline: "",
3480
3561
  radius: "",
3481
- onClick: _cache[12] || (_cache[12] = ($event) => $setup.isOpenModal = false)
3562
+ onClick: _cache[14] || (_cache[14] = ($event) => $setup.isOpenModal = false)
3482
3563
  }, {
3483
3564
  default: withCtx(() => [
3484
3565
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicForm.continueButton")), 1)
@@ -3490,7 +3571,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3490
3571
  })) : createCommentVNode("", true)
3491
3572
  ]);
3492
3573
  }
3493
- var BcfTopicForm = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-8ba2f600"]]);
3574
+ var BcfTopicForm = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-5f5aca36"]]);
3494
3575
  var UserAvatar_scss_vue_type_style_index_0_src_scoped_true_lang = "";
3495
3576
  const _sfc_main$9 = {
3496
3577
  props: {
@@ -3542,7 +3623,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
3542
3623
  }))
3543
3624
  ], 6);
3544
3625
  }
3545
- var UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-e5e255f0"]]);
3626
+ var UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-42c97e31"]]);
3546
3627
  var TopicComment_scss_vue_type_style_index_0_src_scoped_true_lang = "";
3547
3628
  const _sfc_main$8 = {
3548
3629
  components: {
@@ -3558,7 +3639,7 @@ const _sfc_main$8 = {
3558
3639
  type: Object,
3559
3640
  required: true
3560
3641
  },
3561
- bcfTopic: {
3642
+ topic: {
3562
3643
  type: Object,
3563
3644
  required: true
3564
3645
  },
@@ -3588,15 +3669,15 @@ const _sfc_main$8 = {
3588
3669
  text.value = props.comment.comment;
3589
3670
  };
3590
3671
  const submitUpdate = async () => {
3591
- if (props.comment.comment !== text.value) {
3592
- try {
3672
+ try {
3673
+ if (props.comment.comment !== text.value) {
3593
3674
  loading.value = true;
3594
- const newComment = await updateComment2(props.project, props.bcfTopic, props.comment, { comment: text.value });
3675
+ const newComment = await updateComment2(props.project, props.topic, props.comment, { comment: text.value });
3595
3676
  emit("comment-updated", newComment);
3596
- isEditing.value = false;
3597
- } finally {
3598
- loading.value = false;
3599
3677
  }
3678
+ isEditing.value = false;
3679
+ } finally {
3680
+ loading.value = false;
3600
3681
  }
3601
3682
  };
3602
3683
  const isDeleting = ref(false);
@@ -3607,7 +3688,7 @@ const _sfc_main$8 = {
3607
3688
  const submitDelete = async () => {
3608
3689
  try {
3609
3690
  loading.value = true;
3610
- await deleteComment2(props.project, props.bcfTopic, props.comment);
3691
+ await deleteComment2(props.project, props.topic, props.comment);
3611
3692
  emit("comment-deleted", props.comment);
3612
3693
  isDeleting.value = false;
3613
3694
  } finally {
@@ -3615,11 +3696,11 @@ const _sfc_main$8 = {
3615
3696
  }
3616
3697
  };
3617
3698
  return {
3618
- text,
3619
3699
  isDeleting,
3620
3700
  isEditing,
3621
3701
  loading,
3622
3702
  showMenu,
3703
+ text,
3623
3704
  cancelUpdate,
3624
3705
  closeMenu,
3625
3706
  onOpenDelete,
@@ -3630,7 +3711,7 @@ const _sfc_main$8 = {
3630
3711
  };
3631
3712
  }
3632
3713
  };
3633
- const _withScopeId$1 = (n) => (pushScopeId("data-v-7631a934"), n = n(), popScopeId(), n);
3714
+ const _withScopeId = (n) => (pushScopeId("data-v-85242c76"), n = n(), popScopeId(), n);
3634
3715
  const _hoisted_1$5 = { class: "topic-comment" };
3635
3716
  const _hoisted_2$3 = { class: "topic-comment__header flex items-center justify-between" };
3636
3717
  const _hoisted_3$2 = { class: "topic-comment__header__left flex items-center" };
@@ -3638,7 +3719,7 @@ const _hoisted_4$2 = {
3638
3719
  key: 1,
3639
3720
  class: "topic-comment__header__left__user flex items-center justify-center m-r-12"
3640
3721
  };
3641
- const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "color-granite m-x-6" }, " \u2022 ", -1));
3722
+ const _hoisted_5$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "color-granite m-x-6" }, " \u2022 ", -1));
3642
3723
  const _hoisted_6$2 = { class: "color-granite" };
3643
3724
  const _hoisted_7$2 = { class: "topic-comment__header__right" };
3644
3725
  const _hoisted_8$2 = { class: "topic-comment__header__right__actions flex" };
@@ -3838,7 +3919,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
3838
3919
  $setup.loading ? (openBlock(), createBlock(_component_BIMDataLoading, { key: 0 })) : createCommentVNode("", true)
3839
3920
  ]);
3840
3921
  }
3841
- var TopicComment = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-7631a934"]]);
3922
+ var TopicComment = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-85242c76"]]);
3842
3923
  var BcfTopicComments_scss_vue_type_style_index_0_src_scoped_true_lang = "";
3843
3924
  const _sfc_main$7 = {
3844
3925
  components: {
@@ -3852,7 +3933,7 @@ const _sfc_main$7 = {
3852
3933
  type: Object,
3853
3934
  required: true
3854
3935
  },
3855
- bcfTopic: {
3936
+ topic: {
3856
3937
  type: Object,
3857
3938
  required: true
3858
3939
  }
@@ -3869,10 +3950,10 @@ const _sfc_main$7 = {
3869
3950
  const input = ref(null);
3870
3951
  const text = ref("");
3871
3952
  watch(isOpen, () => setTimeout(() => isOpen.value && input.value.focus(), 50));
3872
- const publishComment = async () => {
3953
+ const submitComment = async () => {
3873
3954
  try {
3874
3955
  loading.value = true;
3875
- const newComment = await createComment2(props.project, props.bcfTopic, { comment: text.value });
3956
+ const newComment = await createComment2(props.project, props.topic, { comment: text.value });
3876
3957
  emit("comment-created", newComment);
3877
3958
  isOpen.value = false;
3878
3959
  text.value = "";
@@ -3885,7 +3966,7 @@ const _sfc_main$7 = {
3885
3966
  isOpen,
3886
3967
  loading,
3887
3968
  text,
3888
- publishComment
3969
+ submitComment
3889
3970
  };
3890
3971
  }
3891
3972
  };
@@ -3948,7 +4029,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
3948
4029
  fill: "",
3949
4030
  radius: "",
3950
4031
  width: "135px",
3951
- onClick: $setup.publishComment
4032
+ onClick: $setup.submitComment
3952
4033
  }, {
3953
4034
  default: withCtx(() => [
3954
4035
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicComments.publishButton")), 1)
@@ -3959,24 +4040,24 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
3959
4040
  ])
3960
4041
  ])),
3961
4042
  createElementVNode("div", _hoisted_6$1, [
3962
- createElementVNode("p", _hoisted_7$1, toDisplayString(($props.bcfTopic.comments ? $props.bcfTopic.comments.length : 0) + " " + _ctx.$t("BcfComponents.BcfTopicComments.commentsText")), 1),
3963
- $props.bcfTopic.comments && $props.bcfTopic.comments.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
3964
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.bcfTopic.comments, (comment) => {
4043
+ createElementVNode("p", _hoisted_7$1, toDisplayString(($props.topic.comments ? $props.topic.comments.length : 0) + " " + _ctx.$t("BcfComponents.BcfTopicComments.commentsText")), 1),
4044
+ $props.topic.comments && $props.topic.comments.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
4045
+ (openBlock(true), createElementBlock(Fragment, null, renderList($props.topic.comments, (comment) => {
3965
4046
  return openBlock(), createBlock(_component_TopicComment, {
3966
4047
  key: comment.guid,
3967
4048
  project: $props.project,
3968
- bcfTopic: $props.bcfTopic,
4049
+ topic: $props.topic,
3969
4050
  comment,
3970
4051
  onCommentUpdated: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("comment-updated", $event)),
3971
4052
  onCommentDeleted: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("comment-deleted", $event))
3972
- }, null, 8, ["project", "bcfTopic", "comment"]);
4053
+ }, null, 8, ["project", "topic", "comment"]);
3973
4054
  }), 128))
3974
4055
  ])) : createCommentVNode("", true)
3975
4056
  ]),
3976
4057
  $setup.loading ? (openBlock(), createBlock(_component_BIMDataLoading, { key: 2 })) : createCommentVNode("", true)
3977
4058
  ]);
3978
4059
  }
3979
- var BcfTopicComments = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-377292f2"]]);
4060
+ var BcfTopicComments = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-0d88f174"]]);
3980
4061
  var u = Object.freeze(["default", "primary", "secondary", "high", "success", "granite"]), M$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: (n) => u.includes(n) } }, emits: ["click"], computed: { classes() {
3981
4062
  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 };
3982
4063
  }, style() {
@@ -4477,19 +4558,22 @@ const _sfc_main$6 = {
4477
4558
  type: Object,
4478
4559
  required: true
4479
4560
  },
4480
- bcfTopic: {
4561
+ topic: {
4481
4562
  type: Object,
4482
4563
  required: true
4483
4564
  }
4484
4565
  },
4566
+ emits: [
4567
+ "view-topic-viewpoint"
4568
+ ],
4485
4569
  setup(props) {
4486
- const viewpoints = computed(() => props.bcfTopic.viewpoints.filter((viewpoint) => viewpoint.snapshot).map((viewpoint) => {
4570
+ const viewpoints = computed(() => props.topic.viewpoints.filter((viewpoint) => viewpoint.snapshot).map((viewpoint) => {
4487
4571
  var _a;
4488
4572
  return __spreadProps(__spreadValues({}, viewpoint), {
4489
4573
  icon: (_a = getViewpointConfig(viewpoint)) == null ? void 0 : _a.icon
4490
4574
  });
4491
4575
  }));
4492
- const statusColor = computed(() => getStatusColor(props.bcfTopic, props.detailedExtensions));
4576
+ const statusColor = computed(() => getStatusColor(props.topic, props.detailedExtensions));
4493
4577
  return {
4494
4578
  statusColor,
4495
4579
  viewpoints,
@@ -4497,7 +4581,7 @@ const _sfc_main$6 = {
4497
4581
  };
4498
4582
  }
4499
4583
  };
4500
- const _hoisted_1$3 = ["src"];
4584
+ const _hoisted_1$3 = ["src", "onClick"];
4501
4585
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4502
4586
  const _component_BIMDataIcon = resolveComponent("BIMDataIcon");
4503
4587
  const _component_BIMDataCarousel = resolveComponent("BIMDataCarousel");
@@ -4505,7 +4589,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4505
4589
  return openBlock(), createElementBlock("div", {
4506
4590
  class: normalizeClass(["bcf-topic-viewpoints", { empty: $setup.viewpoints.length === 0 }])
4507
4591
  }, [
4508
- $props.bcfTopic.topic_status ? (openBlock(), createElementBlock("div", {
4592
+ $props.topic.topic_status ? (openBlock(), createElementBlock("div", {
4509
4593
  key: 0,
4510
4594
  class: "status-badge",
4511
4595
  style: normalizeStyle({
@@ -4518,7 +4602,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4518
4602
  fill: "",
4519
4603
  color: "default"
4520
4604
  }),
4521
- createElementVNode("span", null, toDisplayString($props.bcfTopic.topic_status), 1)
4605
+ createElementVNode("span", null, toDisplayString($props.topic.topic_status), 1)
4522
4606
  ], 4)) : createCommentVNode("", true),
4523
4607
  $setup.viewpoints.length > 0 ? (openBlock(), createBlock(_component_BIMDataCarousel, {
4524
4608
  key: 1,
@@ -4532,7 +4616,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4532
4616
  }, [
4533
4617
  viewpoint.snapshot.snapshot_data ? (openBlock(), createElementBlock("img", {
4534
4618
  key: 0,
4535
- src: viewpoint.snapshot.snapshot_data
4619
+ src: viewpoint.snapshot.snapshot_data,
4620
+ onClick: ($event) => _ctx.$emit("view-topic-viewpoint", viewpoint)
4536
4621
  }, null, 8, _hoisted_1$3)) : createCommentVNode("", true),
4537
4622
  viewpoint.icon ? (openBlock(), createBlock(_component_BIMDataIcon, {
4538
4623
  key: 1,
@@ -4550,7 +4635,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4550
4635
  }))
4551
4636
  ], 2);
4552
4637
  }
4553
- var BcfTopicViewpoints = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0a9e5076"]]);
4638
+ var BcfTopicViewpoints = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-759a0d56"]]);
4554
4639
  var BcfTopicOverview_scss_vue_type_style_index_0_src_scoped_true_lang = "";
4555
4640
  const _sfc_main$5 = {
4556
4641
  components: {
@@ -4564,9 +4649,15 @@ const _sfc_main$5 = {
4564
4649
  BIMDataTextbox: s$1
4565
4650
  },
4566
4651
  props: {
4567
- viewerMode: {
4568
- type: Boolean,
4569
- default: false
4652
+ uiConfig: {
4653
+ type: Object,
4654
+ default: () => ({
4655
+ viewerMode: false,
4656
+ backButton: false,
4657
+ closeButton: false,
4658
+ editButton: false,
4659
+ deleteButton: false
4660
+ })
4570
4661
  },
4571
4662
  project: {
4572
4663
  type: Object,
@@ -4576,54 +4667,42 @@ const _sfc_main$5 = {
4576
4667
  type: Object,
4577
4668
  required: true
4578
4669
  },
4579
- bcfTopic: {
4670
+ topic: {
4580
4671
  type: Object,
4581
4672
  required: true
4582
- },
4583
- uiConfig: {
4584
- type: Object,
4585
- default: () => ({ backButton: false, closeButton: false })
4586
4673
  }
4587
4674
  },
4588
4675
  emits: [
4589
4676
  "back",
4590
- "bcf-topic-deleted",
4591
4677
  "close",
4592
4678
  "comment-created",
4593
4679
  "comment-deleted",
4594
4680
  "comment-updated",
4595
- "edit-bcf-topic",
4681
+ "edit-topic",
4682
+ "topic-deleted",
4596
4683
  "topic-delete-error",
4597
- "view-bcf-topic",
4598
- "view-components"
4684
+ "view-topic",
4685
+ "view-topic-components",
4686
+ "view-topic-viewpoint"
4599
4687
  ],
4600
4688
  setup(props, { emit }) {
4601
4689
  const { deleteTopic: deleteTopic2 } = useService();
4602
4690
  const loading = ref(false);
4603
4691
  const showDeleteModal = ref(false);
4604
- const priorityColor = computed(() => getPriorityColor(props.bcfTopic, props.detailedExtensions));
4692
+ const priorityColor = computed(() => getPriorityColor(props.topic, props.detailedExtensions));
4605
4693
  const topicObjects = computed(() => {
4606
- var _a, _b;
4607
- const components2 = (_b = (_a = props.bcfTopic.viewpoints) == null ? void 0 : _a[0]) == null ? void 0 : _b.components;
4608
- return (components2 == null ? void 0 : components2.selection) || [];
4609
- });
4610
- const topicLabels = computed(() => {
4611
- var _a;
4612
- if ((_a = props.bcfTopic.labels) == null ? void 0 : _a.length) {
4613
- return Array.from(props.bcfTopic.labels).sort();
4614
- } else {
4615
- return [];
4616
- }
4694
+ var _a, _b, _c;
4695
+ return ((_c = (_b = (_a = props.topic.viewpoints) == null ? void 0 : _a[0]) == null ? void 0 : _b.components) == null ? void 0 : _c.selection) || [];
4617
4696
  });
4697
+ const topicLabels = computed(() => Array.from(props.topic.labels || []).sort());
4618
4698
  const removeTopic = async () => {
4619
4699
  try {
4620
4700
  showDeleteModal.value = false;
4621
4701
  loading.value = true;
4622
- await deleteTopic2(props.project, props.bcfTopic);
4623
- emit("bcf-topic-deleted", props.bcfTopic);
4624
- emit("close");
4702
+ await deleteTopic2(props.project, props.topic);
4703
+ emit("topic-deleted", props.topic);
4625
4704
  } catch (error) {
4626
- emit("topic-delete-error");
4705
+ emit("topic-delete-error", error);
4627
4706
  } finally {
4628
4707
  loading.value = false;
4629
4708
  }
@@ -4639,7 +4718,6 @@ const _sfc_main$5 = {
4639
4718
  };
4640
4719
  }
4641
4720
  };
4642
- const _withScopeId = (n) => (pushScopeId("data-v-7ced0e0c"), n = n(), popScopeId(), n);
4643
4721
  const _hoisted_1$2 = { class: "bcf-topic-overview" };
4644
4722
  const _hoisted_2$1 = { class: "bcf-topic-overview__header" };
4645
4723
  const _hoisted_3 = { class: "bcf-topic-overview__header__title" };
@@ -4675,7 +4753,7 @@ const _hoisted_29 = { class: "value" };
4675
4753
  const _hoisted_30 = { class: "line" };
4676
4754
  const _hoisted_31 = { class: "label" };
4677
4755
  const _hoisted_32 = { class: "line" };
4678
- const _hoisted_33 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, " Auteur : ", -1));
4756
+ const _hoisted_33 = { class: "label" };
4679
4757
  const _hoisted_34 = { class: "value" };
4680
4758
  const _hoisted_35 = { class: "line m-t-12" };
4681
4759
  const _hoisted_36 = { class: "label" };
@@ -4693,7 +4771,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4693
4771
  createElementVNode("div", _hoisted_2$1, [
4694
4772
  $props.uiConfig.backButton ? (openBlock(), createBlock(_component_BIMDataButton, {
4695
4773
  key: 0,
4696
- ripple: "",
4774
+ ghost: "",
4697
4775
  rounded: "",
4698
4776
  icon: "",
4699
4777
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("back"))
@@ -4701,7 +4779,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4701
4779
  default: withCtx(() => [
4702
4780
  createVNode(_component_BIMDataIcon, {
4703
4781
  name: "arrow",
4704
- size: "xxs"
4782
+ size: "xxs",
4783
+ fill: "",
4784
+ color: "granite-light"
4705
4785
  })
4706
4786
  ]),
4707
4787
  _: 1
@@ -4709,15 +4789,16 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4709
4789
  createElementVNode("div", _hoisted_3, [
4710
4790
  createVNode(_component_BIMDataTextbox, {
4711
4791
  maxWidth: "250px",
4712
- text: $props.bcfTopic.title
4792
+ text: $props.topic.title
4713
4793
  }, null, 8, ["text"])
4714
4794
  ]),
4715
4795
  createElementVNode("div", _hoisted_4, [
4716
- createVNode(_component_BIMDataButton, {
4717
- ripple: "",
4796
+ $props.uiConfig.editButton ? (openBlock(), createBlock(_component_BIMDataButton, {
4797
+ key: 0,
4798
+ ghost: "",
4718
4799
  rounded: "",
4719
4800
  icon: "",
4720
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("edit-bcf-topic", $props.bcfTopic))
4801
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("edit-topic", $props.topic))
4721
4802
  }, {
4722
4803
  default: withCtx(() => [
4723
4804
  createVNode(_component_BIMDataIcon, {
@@ -4726,9 +4807,10 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4726
4807
  })
4727
4808
  ]),
4728
4809
  _: 1
4729
- }),
4730
- createVNode(_component_BIMDataButton, {
4731
- ripple: "",
4810
+ })) : createCommentVNode("", true),
4811
+ $props.uiConfig.deleteButton ? (openBlock(), createBlock(_component_BIMDataButton, {
4812
+ key: 1,
4813
+ ghost: "",
4732
4814
  rounded: "",
4733
4815
  icon: "",
4734
4816
  onClick: _cache[2] || (_cache[2] = ($event) => $setup.showDeleteModal = true)
@@ -4740,10 +4822,10 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4740
4822
  })
4741
4823
  ]),
4742
4824
  _: 1
4743
- }),
4825
+ })) : createCommentVNode("", true),
4744
4826
  $props.uiConfig.closeButton ? (openBlock(), createBlock(_component_BIMDataButton, {
4745
- key: 0,
4746
- ripple: "",
4827
+ key: 2,
4828
+ ghost: "",
4747
4829
  rounded: "",
4748
4830
  icon: "",
4749
4831
  onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("close"))
@@ -4768,20 +4850,21 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4768
4850
  backgroundColor: `#${$setup.priorityColor}`,
4769
4851
  color: $setup.adjustTextColor(`#${$setup.priorityColor}`, "#FFF", "#2F374A")
4770
4852
  })
4771
- }, toDisplayString($props.bcfTopic.index), 5),
4772
- createElementVNode("div", _hoisted_7, toDisplayString(_ctx.$d($props.bcfTopic.creation_date, "short")), 1)
4853
+ }, toDisplayString($props.topic.index), 5),
4854
+ createElementVNode("div", _hoisted_7, toDisplayString(_ctx.$d($props.topic.creation_date, "short")), 1)
4773
4855
  ]),
4774
4856
  createVNode(_component_BcfTopicViewpoints, {
4775
4857
  detailedExtensions: $props.detailedExtensions,
4776
- bcfTopic: $props.bcfTopic
4777
- }, null, 8, ["detailedExtensions", "bcfTopic"]),
4778
- $props.viewerMode ? (openBlock(), createBlock(_component_BIMDataButton, {
4858
+ topic: $props.topic,
4859
+ onViewTopicViewpoint: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("view-topic-viewpoint", $event))
4860
+ }, null, 8, ["detailedExtensions", "topic"]),
4861
+ $props.uiConfig.viewerMode ? (openBlock(), createBlock(_component_BIMDataButton, {
4779
4862
  key: 0,
4780
4863
  width: "100%",
4781
4864
  fill: "",
4782
4865
  radius: "",
4783
4866
  disabled: $setup.topicObjects.length === 0,
4784
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("view-components", $props.bcfTopic))
4867
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("view-topic-components", $props.topic))
4785
4868
  }, {
4786
4869
  default: withCtx(() => [
4787
4870
  createVNode(_component_BIMDataIcon, {
@@ -4802,7 +4885,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4802
4885
  color: "primary",
4803
4886
  fill: "",
4804
4887
  radius: "",
4805
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("view-bcf-topic", $props.bcfTopic))
4888
+ onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("view-topic", $props.topic))
4806
4889
  }, {
4807
4890
  default: withCtx(() => [
4808
4891
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.openViewer")), 1)
@@ -4810,7 +4893,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4810
4893
  _: 1
4811
4894
  })),
4812
4895
  createElementVNode("div", _hoisted_8, [
4813
- !$props.viewerMode ? (openBlock(), createElementBlock("div", _hoisted_9, [
4896
+ !$props.uiConfig.viewerMode ? (openBlock(), createElementBlock("div", _hoisted_9, [
4814
4897
  createVNode(_component_BIMDataIcon, {
4815
4898
  name: "model3d",
4816
4899
  size: "xs"
@@ -4819,19 +4902,19 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4819
4902
  ])) : createCommentVNode("", true),
4820
4903
  createElementVNode("div", _hoisted_10, [
4821
4904
  createElementVNode("span", _hoisted_11, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.type")), 1),
4822
- createElementVNode("span", _hoisted_12, toDisplayString($props.bcfTopic.topic_type ? $props.bcfTopic.topic_type : _ctx.$t("BcfComponents.BcfTopicOverview.noTypeSpecified")), 1)
4905
+ createElementVNode("span", _hoisted_12, toDisplayString($props.topic.topic_type ? $props.topic.topic_type : _ctx.$t("BcfComponents.BcfTopicOverview.noTypeSpecified")), 1)
4823
4906
  ]),
4824
4907
  createElementVNode("div", _hoisted_13, [
4825
4908
  createElementVNode("span", _hoisted_14, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.description")), 1),
4826
- createElementVNode("span", _hoisted_15, toDisplayString($props.bcfTopic.description ? $props.bcfTopic.description : _ctx.$t("BcfComponents.BcfTopicOverview.noDescriptionProvided")), 1)
4909
+ createElementVNode("span", _hoisted_15, toDisplayString($props.topic.description ? $props.topic.description : _ctx.$t("BcfComponents.BcfTopicOverview.noDescriptionProvided")), 1)
4827
4910
  ]),
4828
4911
  createElementVNode("div", _hoisted_16, [
4829
4912
  createElementVNode("span", _hoisted_17, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.assignedTo")), 1),
4830
- createElementVNode("span", _hoisted_18, toDisplayString($props.bcfTopic.assigned_to ? $props.bcfTopic.assigned_to : _ctx.$t("BcfComponents.BcfTopicOverview.notAssigned")), 1)
4913
+ createElementVNode("span", _hoisted_18, toDisplayString($props.topic.assigned_to ? $props.topic.assigned_to : _ctx.$t("BcfComponents.BcfTopicOverview.notAssigned")), 1)
4831
4914
  ]),
4832
4915
  createElementVNode("div", _hoisted_19, [
4833
4916
  createElementVNode("span", _hoisted_20, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.dueDate")), 1),
4834
- createElementVNode("span", _hoisted_21, toDisplayString($props.bcfTopic.due_date ? _ctx.$d($props.bcfTopic.due_date, "short") : _ctx.$t("BcfComponents.BcfTopicOverview.noDueDate")), 1)
4917
+ createElementVNode("span", _hoisted_21, toDisplayString($props.topic.due_date ? _ctx.$d($props.topic.due_date, "short") : _ctx.$t("BcfComponents.BcfTopicOverview.noDueDate")), 1)
4835
4918
  ])
4836
4919
  ]),
4837
4920
  createElementVNode("div", _hoisted_22, [
@@ -4841,22 +4924,22 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4841
4924
  ]),
4842
4925
  createElementVNode("div", _hoisted_24, [
4843
4926
  createElementVNode("span", _hoisted_25, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.status")), 1),
4844
- createElementVNode("span", _hoisted_26, toDisplayString($props.bcfTopic.topic_status || _ctx.$t("BcfComponents.BcfTopicOverview.noStatusSpecified")), 1)
4927
+ createElementVNode("span", _hoisted_26, toDisplayString($props.topic.topic_status || _ctx.$t("BcfComponents.BcfTopicOverview.noStatusSpecified")), 1)
4845
4928
  ]),
4846
4929
  createElementVNode("div", _hoisted_27, [
4847
4930
  createElementVNode("span", _hoisted_28, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.stage")), 1),
4848
- createElementVNode("span", _hoisted_29, toDisplayString($props.bcfTopic.stage || _ctx.$t("BcfComponents.BcfTopicOverview.noStageProvided")), 1)
4931
+ createElementVNode("span", _hoisted_29, toDisplayString($props.topic.stage || _ctx.$t("BcfComponents.BcfTopicOverview.noStageProvided")), 1)
4849
4932
  ]),
4850
4933
  createElementVNode("div", _hoisted_30, [
4851
4934
  createElementVNode("span", _hoisted_31, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.priority")), 1),
4852
4935
  createElementVNode("span", {
4853
4936
  class: "value",
4854
4937
  style: normalizeStyle({ color: `#${$setup.priorityColor}` })
4855
- }, toDisplayString($props.bcfTopic.priority || _ctx.$t("BcfComponents.BcfTopicOverview.priorityNotDefined")), 5)
4938
+ }, toDisplayString($props.topic.priority || _ctx.$t("BcfComponents.BcfTopicOverview.priorityNotDefined")), 5)
4856
4939
  ]),
4857
4940
  createElementVNode("div", _hoisted_32, [
4858
- _hoisted_33,
4859
- createElementVNode("span", _hoisted_34, toDisplayString($props.bcfTopic.creation_author), 1)
4941
+ createElementVNode("span", _hoisted_33, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.author")), 1),
4942
+ createElementVNode("span", _hoisted_34, toDisplayString($props.topic.creation_author), 1)
4860
4943
  ]),
4861
4944
  createElementVNode("div", _hoisted_35, [
4862
4945
  createElementVNode("span", _hoisted_36, toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.tags")), 1),
@@ -4865,18 +4948,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4865
4948
  ]),
4866
4949
  createVNode(_component_BcfTopicComments, {
4867
4950
  project: $props.project,
4868
- bcfTopic: $props.bcfTopic,
4869
- onCommentCreated: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("comment-created", $event)),
4870
- onCommentUpdated: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("comment-updated", $event)),
4871
- onCommentDeleted: _cache[8] || (_cache[8] = ($event) => _ctx.$emit("comment-deleted", $event))
4872
- }, null, 8, ["project", "bcfTopic"])
4951
+ topic: $props.topic,
4952
+ onCommentCreated: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("comment-created", $event)),
4953
+ onCommentUpdated: _cache[8] || (_cache[8] = ($event) => _ctx.$emit("comment-updated", $event)),
4954
+ onCommentDeleted: _cache[9] || (_cache[9] = ($event) => _ctx.$emit("comment-deleted", $event))
4955
+ }, null, 8, ["project", "topic"])
4873
4956
  ]),
4874
4957
  $setup.showDeleteModal ? (openBlock(), createBlock(_component_BIMDataSafeZoneModal, {
4875
4958
  key: 0,
4876
4959
  class: "delete-modal"
4877
4960
  }, {
4878
4961
  text: withCtx(() => [
4879
- createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.deleteText", { name: $props.bcfTopic.title })), 1)
4962
+ createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.deleteText", { name: $props.topic.title })), 1)
4880
4963
  ]),
4881
4964
  actions: withCtx(() => [
4882
4965
  createVNode(_component_BIMDataButton, {
@@ -4895,7 +4978,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4895
4978
  color: "primary",
4896
4979
  outline: "",
4897
4980
  radius: "",
4898
- onClick: _cache[9] || (_cache[9] = ($event) => $setup.showDeleteModal = false)
4981
+ onClick: _cache[10] || (_cache[10] = ($event) => $setup.showDeleteModal = false)
4899
4982
  }, {
4900
4983
  default: withCtx(() => [
4901
4984
  createTextVNode(toDisplayString(_ctx.$t("BcfComponents.BcfTopicOverview.keepBcfButton")), 1)
@@ -4910,7 +4993,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4910
4993
  ])) : createCommentVNode("", true)
4911
4994
  ]);
4912
4995
  }
4913
- var BcfTopicOverview = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-7ced0e0c"]]);
4996
+ var BcfTopicOverview = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-d7d09324"]]);
4914
4997
  var columnsDef = [
4915
4998
  {
4916
4999
  id: "index",
@@ -5081,13 +5164,13 @@ const _sfc_main$4 = {
5081
5164
  BIMDataButton: l
5082
5165
  },
5083
5166
  props: {
5084
- bcfTopic: {
5167
+ topic: {
5085
5168
  type: Object,
5086
5169
  required: true
5087
5170
  }
5088
5171
  },
5089
5172
  emits: [
5090
- "open-bcf-topic"
5173
+ "open-topic"
5091
5174
  ]
5092
5175
  };
5093
5176
  const _hoisted_1$1 = { class: "bcf-topic-actions-cell" };
@@ -5100,7 +5183,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
5100
5183
  outline: "",
5101
5184
  radius: "",
5102
5185
  icon: "",
5103
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-bcf-topic", $props.bcfTopic))
5186
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-topic", $props.topic))
5104
5187
  }, {
5105
5188
  default: withCtx(() => [
5106
5189
  createVNode(_component_BIMDataIcon, {
@@ -5112,21 +5195,21 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
5112
5195
  })
5113
5196
  ]);
5114
5197
  }
5115
- var BcfTopicActionsCell = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-fe159426"]]);
5198
+ var BcfTopicActionsCell = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5fbc1b71"]]);
5116
5199
  var BcfTopicIndexCell_vue_vue_type_style_index_0_scoped_true_lang = "";
5117
5200
  const _sfc_main$3 = {
5118
5201
  props: {
5119
- bcfTopic: {
5202
+ detailedExtensions: {
5120
5203
  type: Object,
5121
5204
  required: true
5122
5205
  },
5123
- detailedExtensions: {
5206
+ topic: {
5124
5207
  type: Object,
5125
5208
  required: true
5126
5209
  }
5127
5210
  },
5128
5211
  setup(props) {
5129
- const priorityColor = computed(() => getPriorityColor(props.bcfTopic, props.detailedExtensions));
5212
+ const priorityColor = computed(() => getPriorityColor(props.topic, props.detailedExtensions));
5130
5213
  return {
5131
5214
  priorityColor
5132
5215
  };
@@ -5140,24 +5223,24 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
5140
5223
  class: "left-stripe",
5141
5224
  style: normalizeStyle({ backgroundColor: `#${$setup.priorityColor}` })
5142
5225
  }, null, 4),
5143
- createElementVNode("span", _hoisted_2, toDisplayString($props.bcfTopic.index), 1)
5226
+ createElementVNode("span", _hoisted_2, toDisplayString($props.topic.index), 1)
5144
5227
  ]);
5145
5228
  }
5146
- var BcfTopicIndexCell = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-73373bfa"]]);
5229
+ var BcfTopicIndexCell = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-6837d03b"]]);
5147
5230
  var BcfTopicPriorityCell_vue_vue_type_style_index_0_scoped_true_lang = "";
5148
5231
  const _sfc_main$2 = {
5149
5232
  props: {
5150
- bcfTopic: {
5233
+ detailedExtensions: {
5151
5234
  type: Object,
5152
5235
  required: true
5153
5236
  },
5154
- detailedExtensions: {
5237
+ topic: {
5155
5238
  type: Object,
5156
5239
  required: true
5157
5240
  }
5158
5241
  },
5159
5242
  setup(props) {
5160
- const priorityColor = computed(() => getPriorityColor(props.bcfTopic, props.detailedExtensions));
5243
+ const priorityColor = computed(() => getPriorityColor(props.topic, props.detailedExtensions));
5161
5244
  return {
5162
5245
  priorityColor
5163
5246
  };
@@ -5167,23 +5250,23 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5167
5250
  return openBlock(), createElementBlock("span", {
5168
5251
  class: "bcf-topic-priority-cell",
5169
5252
  style: normalizeStyle({ color: `#${$setup.priorityColor}` })
5170
- }, toDisplayString($props.bcfTopic.priority || _ctx.$t("BcfComponents.BcfTopicPriorityCell.noPriority")), 5);
5253
+ }, toDisplayString($props.topic.priority || _ctx.$t("BcfComponents.BcfTopicPriorityCell.noPriority")), 5);
5171
5254
  }
5172
- var BcfTopicPriorityCell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-7be782b8"]]);
5255
+ var BcfTopicPriorityCell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-905e2396"]]);
5173
5256
  var BcfTopicStatusCell_vue_vue_type_style_index_0_scoped_true_lang = "";
5174
5257
  const _sfc_main$1 = {
5175
5258
  props: {
5176
- bcfTopic: {
5259
+ detailedExtensions: {
5177
5260
  type: Object,
5178
5261
  required: true
5179
5262
  },
5180
- detailedExtensions: {
5263
+ topic: {
5181
5264
  type: Object,
5182
5265
  required: true
5183
5266
  }
5184
5267
  },
5185
5268
  setup(props) {
5186
- const statusColor = computed(() => getStatusColor(props.bcfTopic, props.detailedExtensions));
5269
+ const statusColor = computed(() => getStatusColor(props.topic, props.detailedExtensions));
5187
5270
  return {
5188
5271
  statusColor,
5189
5272
  adjustTextColor
@@ -5197,9 +5280,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5197
5280
  backgroundColor: `#${$setup.statusColor}`,
5198
5281
  color: $setup.adjustTextColor($setup.statusColor, "#ffffff", "var(--color-text)")
5199
5282
  })
5200
- }, toDisplayString($props.bcfTopic.topic_status), 5);
5283
+ }, toDisplayString($props.topic.topic_status), 5);
5201
5284
  }
5202
- var BcfTopicStatusCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a51b4af6"]]);
5285
+ var BcfTopicStatusCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-16e3da68"]]);
5203
5286
  const _sfc_main = {
5204
5287
  components: {
5205
5288
  BcfTopicActionsCell,
@@ -5212,14 +5295,14 @@ const _sfc_main = {
5212
5295
  UserAvatar
5213
5296
  },
5214
5297
  props: {
5215
- bcfTopics: {
5216
- type: Array,
5217
- required: true
5218
- },
5219
5298
  detailedExtensions: {
5220
5299
  type: Object,
5221
5300
  required: true
5222
5301
  },
5302
+ topics: {
5303
+ type: Array,
5304
+ required: true
5305
+ },
5223
5306
  paginated: {
5224
5307
  type: Boolean,
5225
5308
  default: false
@@ -5233,7 +5316,7 @@ const _sfc_main = {
5233
5316
  }
5234
5317
  },
5235
5318
  emits: [
5236
- "open-bcf-topic"
5319
+ "open-topic"
5237
5320
  ],
5238
5321
  setup(props) {
5239
5322
  const displayedColumns = computed(() => props.columns && props.columns.length > 0 ? columnsDef.filter((c2) => props.columns.includes(c2.id)) : columnsDef);
@@ -5258,35 +5341,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5258
5341
  columns: $setup.displayedColumns.map((col) => __spreadProps(__spreadValues({}, col), {
5259
5342
  label: col.label || _ctx.$t(`BcfComponents.BcfTopicsTable.headers.${col.id}`)
5260
5343
  })),
5261
- rows: $props.bcfTopics,
5344
+ rows: $props.topics,
5262
5345
  rowKey: "guid",
5263
5346
  paginated: $props.paginated,
5264
5347
  perPage: $props.perPage,
5265
5348
  rowHeight: 42
5266
5349
  }, {
5267
- "cell-index": withCtx(({ row: bcfTopic }) => [
5350
+ "cell-index": withCtx(({ row: topic }) => [
5268
5351
  createVNode(_component_BcfTopicIndexCell, {
5269
- bcfTopic,
5270
- detailedExtensions: $props.detailedExtensions
5271
- }, null, 8, ["bcfTopic", "detailedExtensions"])
5352
+ detailedExtensions: $props.detailedExtensions,
5353
+ topic
5354
+ }, null, 8, ["detailedExtensions", "topic"])
5272
5355
  ]),
5273
- "cell-priority": withCtx(({ row: bcfTopic }) => [
5356
+ "cell-priority": withCtx(({ row: topic }) => [
5274
5357
  createVNode(_component_BcfTopicPriorityCell, {
5275
- bcfTopic,
5276
- detailedExtensions: $props.detailedExtensions
5277
- }, null, 8, ["bcfTopic", "detailedExtensions"])
5358
+ detailedExtensions: $props.detailedExtensions,
5359
+ topic
5360
+ }, null, 8, ["detailedExtensions", "topic"])
5278
5361
  ]),
5279
- "cell-status": withCtx(({ row: bcfTopic }) => [
5280
- bcfTopic.topic_status ? (openBlock(), createBlock(_component_BcfTopicStatusCell, {
5362
+ "cell-status": withCtx(({ row: topic }) => [
5363
+ topic.topic_status ? (openBlock(), createBlock(_component_BcfTopicStatusCell, {
5281
5364
  key: 0,
5282
- bcfTopic,
5283
- detailedExtensions: $props.detailedExtensions
5284
- }, null, 8, ["bcfTopic", "detailedExtensions"])) : createCommentVNode("", true)
5365
+ detailedExtensions: $props.detailedExtensions,
5366
+ topic
5367
+ }, null, 8, ["detailedExtensions", "topic"])) : createCommentVNode("", true)
5285
5368
  ]),
5286
- "cell-title": withCtx(({ row: bcfTopic }) => [
5369
+ "cell-title": withCtx(({ row: topic }) => [
5287
5370
  createVNode(_component_BIMDataTextbox, {
5288
5371
  maxWidth: "100%",
5289
- text: bcfTopic.title
5372
+ text: topic.title
5290
5373
  }, null, 8, ["text"])
5291
5374
  ]),
5292
5375
  "cell-creator": withCtx(({ row: { creator, creation_author } }) => [
@@ -5302,14 +5385,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5302
5385
  _: 2
5303
5386
  }, 1032, ["text"])
5304
5387
  ]),
5305
- "cell-date": withCtx(({ row: bcfTopic }) => [
5306
- createTextVNode(toDisplayString($setup.deserializeShort(bcfTopic.creation_date)), 1)
5388
+ "cell-date": withCtx(({ row: topic }) => [
5389
+ createTextVNode(toDisplayString($setup.deserializeShort(topic.creation_date)), 1)
5307
5390
  ]),
5308
- "cell-actions": withCtx(({ row: bcfTopic }) => [
5391
+ "cell-actions": withCtx(({ row: topic }) => [
5309
5392
  createVNode(_component_BcfTopicActionsCell, {
5310
- bcfTopic,
5311
- onOpenBcfTopic: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-bcf-topic", $event))
5312
- }, null, 8, ["bcfTopic"])
5393
+ topic,
5394
+ onOpenTopic: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-topic", $event))
5395
+ }, null, 8, ["topic"])
5313
5396
  ]),
5314
5397
  _: 1
5315
5398
  }, 8, ["columns", "rows", "paginated", "perPage"]);