@bimdata/bcf-components 4.1.0-rc.4 → 4.1.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue2/bcf-components.mjs +59 -57
- package/dist/vue3/bcf-components.mjs +38 -36
- package/package.json +1 -1
|
@@ -415,12 +415,12 @@ var L1 = {}, s5 = {
|
|
|
415
415
|
}
|
|
416
416
|
b++, u(E, g, H), g++, m();
|
|
417
417
|
}
|
|
418
|
-
}).catch(
|
|
418
|
+
}).catch(Z));
|
|
419
419
|
}
|
|
420
420
|
function H(E, B) {
|
|
421
421
|
if (b -= 1, !c) {
|
|
422
422
|
if (E)
|
|
423
|
-
return
|
|
423
|
+
return Z(E);
|
|
424
424
|
if (E === !1) {
|
|
425
425
|
o = !0, c = !0;
|
|
426
426
|
return;
|
|
@@ -430,7 +430,7 @@ var L1 = {}, s5 = {
|
|
|
430
430
|
m();
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Z(E) {
|
|
434
434
|
c || (l = !1, o = !0, C(E));
|
|
435
435
|
}
|
|
436
436
|
m();
|
|
@@ -445,36 +445,36 @@ var L1 = {}, s5 = {
|
|
|
445
445
|
function b(g) {
|
|
446
446
|
return g && g.__esModule ? g : { default: g };
|
|
447
447
|
}
|
|
448
|
-
r.default = (g) => (m, H,
|
|
449
|
-
if (
|
|
448
|
+
r.default = (g) => (m, H, Z) => {
|
|
449
|
+
if (Z = (0, i.default)(Z), g <= 0)
|
|
450
450
|
throw new RangeError("concurrency limit cannot be less than 1");
|
|
451
451
|
if (!m)
|
|
452
|
-
return
|
|
452
|
+
return Z(null);
|
|
453
453
|
if ((0, u.isAsyncGenerator)(m))
|
|
454
|
-
return (0, o.default)(m, g, H,
|
|
454
|
+
return (0, o.default)(m, g, H, Z);
|
|
455
455
|
if ((0, u.isAsyncIterable)(m))
|
|
456
|
-
return (0, o.default)(m[Symbol.asyncIterator](), g, H,
|
|
456
|
+
return (0, o.default)(m[Symbol.asyncIterator](), g, H, Z);
|
|
457
457
|
var E = (0, d.default)(m), B = !1, O = !1, I = 0, _ = !1;
|
|
458
|
-
function V(
|
|
458
|
+
function V(x, M) {
|
|
459
459
|
if (!O)
|
|
460
|
-
if (I -= 1,
|
|
461
|
-
B = !0, x
|
|
462
|
-
else if (
|
|
460
|
+
if (I -= 1, x)
|
|
461
|
+
B = !0, Z(x);
|
|
462
|
+
else if (x === !1)
|
|
463
463
|
B = !0, O = !0;
|
|
464
464
|
else {
|
|
465
465
|
if (M === l.default || B && I <= 0)
|
|
466
|
-
return B = !0,
|
|
466
|
+
return B = !0, Z(null);
|
|
467
467
|
_ || y();
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
function y() {
|
|
471
471
|
for (_ = !0; I < g && !B; ) {
|
|
472
|
-
var
|
|
473
|
-
if (
|
|
474
|
-
B = !0, I <= 0 &&
|
|
472
|
+
var x = E();
|
|
473
|
+
if (x === null) {
|
|
474
|
+
B = !0, I <= 0 && Z(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
I += 1, H(
|
|
477
|
+
I += 1, H(x.value, x.key, (0, s.default)(V));
|
|
478
478
|
}
|
|
479
479
|
_ = !1;
|
|
480
480
|
}
|
|
@@ -561,13 +561,13 @@ function i2(e, r) {
|
|
|
561
561
|
let Ie = null;
|
|
562
562
|
function R0(e, { fetchUsers: r }) {
|
|
563
563
|
const t = r ? (_) => r(_) : (_) => e.collaborationApi.getProjectUsers(_.cloud.id, _.id), i = async (_, { extensions: V, users: y } = {}) => {
|
|
564
|
-
const
|
|
564
|
+
const x = V ?? await e.bcfApi.getDetailedExtensions(_.id), M = y ?? await t(_), F = await e.bcfApi.getTopics(_.id);
|
|
565
565
|
return F.sort((R, w) => w.index - R.index), F.forEach((R) => {
|
|
566
|
-
R.color = G(R,
|
|
566
|
+
R.color = G(R, x), R.creator = M.find((w) => w.email === R.creation_author);
|
|
567
567
|
}), F;
|
|
568
568
|
}, n = async (_, V) => {
|
|
569
|
-
const y = await e.bcfApi.getDetailedExtensions(_.id),
|
|
570
|
-
return
|
|
569
|
+
const y = await e.bcfApi.getDetailedExtensions(_.id), x = await e.bcfApi.getFullTopic(V, _.id, "url");
|
|
570
|
+
return x.color = G(x, y), x;
|
|
571
571
|
}, d = async (_, V) => await e.bcfApi.createFullTopic(
|
|
572
572
|
_.id,
|
|
573
573
|
V
|
|
@@ -581,8 +581,10 @@ function R0(e, { fetchUsers: r }) {
|
|
|
581
581
|
V.guid,
|
|
582
582
|
_.id
|
|
583
583
|
);
|
|
584
|
-
}, u = async (_, V) => (await C5(V, 10,
|
|
585
|
-
|
|
584
|
+
}, u = async (_, V) => (await C5(V, 10, (y, x) => {
|
|
585
|
+
C(_, y).then((M) => {
|
|
586
|
+
y.viewpoints = M, x();
|
|
587
|
+
}, x);
|
|
586
588
|
}), V), C = async (_, V) => await e.bcfApi.getTopicViewpoints(
|
|
587
589
|
_.id,
|
|
588
590
|
V.guid,
|
|
@@ -615,21 +617,21 @@ function R0(e, { fetchUsers: r }) {
|
|
|
615
617
|
);
|
|
616
618
|
},
|
|
617
619
|
fetchTopicComments: async (_, V) => {
|
|
618
|
-
const y = await t(_),
|
|
619
|
-
return
|
|
620
|
+
const y = await t(_), x = await e.bcfApi.getComments(_.id, V.guid);
|
|
621
|
+
return x.sort((M, F) => M.date > F.date ? -1 : 1), x.forEach((M) => {
|
|
620
622
|
M.user = y.find((F) => F.email === M.author);
|
|
621
|
-
}),
|
|
623
|
+
}), x;
|
|
622
624
|
},
|
|
623
625
|
createComment: async (_, V, y) => await e.bcfApi.createComment(
|
|
624
626
|
_.id,
|
|
625
627
|
V.guid,
|
|
626
628
|
y
|
|
627
629
|
),
|
|
628
|
-
updateComment: async (_, V, y,
|
|
630
|
+
updateComment: async (_, V, y, x) => await e.bcfApi.updateComment(
|
|
629
631
|
y.guid,
|
|
630
632
|
_.id,
|
|
631
633
|
V.guid,
|
|
632
|
-
|
|
634
|
+
x
|
|
633
635
|
),
|
|
634
636
|
deleteComment: async (_, V, y) => {
|
|
635
637
|
await e.bcfApi.deleteComment(
|
|
@@ -647,12 +649,12 @@ function R0(e, { fetchUsers: r }) {
|
|
|
647
649
|
color: Ye()
|
|
648
650
|
}
|
|
649
651
|
),
|
|
650
|
-
updateExtension: async (_, V, y,
|
|
652
|
+
updateExtension: async (_, V, y, x) => await e.bcfApi[`updateExtension${V}`](
|
|
651
653
|
y.id,
|
|
652
654
|
_.id,
|
|
653
655
|
{
|
|
654
|
-
[K(V)]:
|
|
655
|
-
color:
|
|
656
|
+
[K(V)]: x.value,
|
|
657
|
+
color: x.color
|
|
656
658
|
}
|
|
657
659
|
),
|
|
658
660
|
deleteExtension: async (_, V, y) => {
|
|
@@ -6406,8 +6408,8 @@ const J9 = {
|
|
|
6406
6408
|
() => !e.topic
|
|
6407
6409
|
), n = k(
|
|
6408
6410
|
() => Math.max(0, ...e.topics.map((M) => M.index)) + 1
|
|
6409
|
-
), d = L(""), a = L(null), s = L(null), u = L(null), C = L(null), o = L(null), c = L(null), l = L(""), b = L([]), g = L([]), m = L([]), H = L([]),
|
|
6410
|
-
() => g.value.concat(m.value).filter((M) => !
|
|
6411
|
+
), d = L(""), a = L(null), s = L(null), u = L(null), C = L(null), o = L(null), c = L(null), l = L(""), b = L([]), g = L([]), m = L([]), H = L([]), Z = L([]), E = k(
|
|
6412
|
+
() => g.value.concat(m.value).filter((M) => !Z.value.some((F) => F.guid === M.guid)).filter((M) => M.snapshot)
|
|
6411
6413
|
), B = L(!1), O = L(!1), I = L(!1);
|
|
6412
6414
|
P(
|
|
6413
6415
|
() => e.topic,
|
|
@@ -6417,7 +6419,7 @@ const J9 = {
|
|
|
6417
6419
|
{ immediate: !0 }
|
|
6418
6420
|
);
|
|
6419
6421
|
const _ = () => {
|
|
6420
|
-
d.value = "", a.value = null, s.value = null, u.value = null, C.value = null, o.value = null, c.value = null, l.value = "", b.value = [], g.value = [], m.value = [], H.value = [],
|
|
6422
|
+
d.value = "", a.value = null, s.value = null, u.value = null, C.value = null, o.value = null, c.value = null, l.value = "", b.value = [], g.value = [], m.value = [], H.value = [], Z.value = [], B.value = !1, O.value = !1, I.value = !1;
|
|
6421
6423
|
};
|
|
6422
6424
|
return {
|
|
6423
6425
|
// References
|
|
@@ -6442,7 +6444,7 @@ const J9 = {
|
|
|
6442
6444
|
},
|
|
6443
6445
|
delViewpoint: (M) => {
|
|
6444
6446
|
if (M.guid)
|
|
6445
|
-
|
|
6447
|
+
Z.value.push(M);
|
|
6446
6448
|
else {
|
|
6447
6449
|
let F = m.value.indexOf(M);
|
|
6448
6450
|
m.value.splice(F, 1);
|
|
@@ -6500,7 +6502,7 @@ const J9 = {
|
|
|
6500
6502
|
($) => t.createViewpoint(e.project, w, $)
|
|
6501
6503
|
)
|
|
6502
6504
|
), await Promise.all(
|
|
6503
|
-
|
|
6505
|
+
Z.value.map(
|
|
6504
6506
|
($) => t.deleteViewpoint(e.project, w, $)
|
|
6505
6507
|
)
|
|
6506
6508
|
), i.value ? (r("topic-created", w), _()) : r("topic-updated", w);
|
|
@@ -7123,12 +7125,12 @@ const L4 = {
|
|
|
7123
7125
|
l.value = !1, C.value = e.comment.comment;
|
|
7124
7126
|
}, m = async () => {
|
|
7125
7127
|
o.value.guid && await n.deleteViewpoint(e.project, e.topic, o.value), o.value = null;
|
|
7126
|
-
}, H = L(!1),
|
|
7128
|
+
}, H = L(!1), Z = L([]), E = (w) => {
|
|
7127
7129
|
w.$viewer.localContext.el.style.border = "2px solid var(--color-primary)", w.$viewer.localContext.el.style.boxSizing = "border-box", w.$viewer.localContext.el.style.opacity = ".85";
|
|
7128
7130
|
}, B = (w) => {
|
|
7129
7131
|
w.$viewer.localContext.el.style.border = "", w.$viewer.localContext.el.style.boxSizing = "", w.$viewer.localContext.el.style.opacity = "";
|
|
7130
7132
|
}, O = async () => {
|
|
7131
|
-
|
|
7133
|
+
Z.value.length === 1 ? await I(Z.value[0]) : Z.value.length > 1 && (H.value = !0);
|
|
7132
7134
|
}, I = async ({ id: w, viewer: $ }) => {
|
|
7133
7135
|
B($), H.value = !1;
|
|
7134
7136
|
const [Q] = Object.entries(c1).find(([, e1]) => e1.plugin === w);
|
|
@@ -7163,7 +7165,7 @@ const L4 = {
|
|
|
7163
7165
|
}
|
|
7164
7166
|
}, V = L(!1), y = () => {
|
|
7165
7167
|
V.value = !0, s();
|
|
7166
|
-
},
|
|
7168
|
+
}, x = async () => {
|
|
7167
7169
|
try {
|
|
7168
7170
|
d.value = !0, await n.deleteComment(e.project, e.topic, e.comment), r("comment-deleted", e.comment), V.value = !1;
|
|
7169
7171
|
} finally {
|
|
@@ -7178,10 +7180,10 @@ const L4 = {
|
|
|
7178
7180
|
const w = () => Object.entries(t()).map(
|
|
7179
7181
|
([$, Q]) => Q.map((e1, c2) => ({ key: `${$}-${c2}`, id: $, index: c2, viewer: e1 }))
|
|
7180
7182
|
).flat();
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
+
Z.value = w(), F = i.globalContext.hub.on("plugin-created", () => {
|
|
7184
|
+
Z.value = w();
|
|
7183
7185
|
}), R = i.globalContext.hub.on("plugin-destroyed", () => {
|
|
7184
|
-
|
|
7186
|
+
Z.value = w();
|
|
7185
7187
|
});
|
|
7186
7188
|
}
|
|
7187
7189
|
}), Ze(() => {
|
|
@@ -7193,7 +7195,7 @@ const L4 = {
|
|
|
7193
7195
|
loading: d,
|
|
7194
7196
|
showMenu: a,
|
|
7195
7197
|
text: C,
|
|
7196
|
-
viewerSelectOptions:
|
|
7198
|
+
viewerSelectOptions: Z,
|
|
7197
7199
|
viewerSelectVisible: H,
|
|
7198
7200
|
viewpoint: o,
|
|
7199
7201
|
isViewer: Boolean(i),
|
|
@@ -7206,7 +7208,7 @@ const L4 = {
|
|
|
7206
7208
|
onOpenDelete: y,
|
|
7207
7209
|
onOpenEdit: b,
|
|
7208
7210
|
setCommentViewpoint: O,
|
|
7209
|
-
submitDelete:
|
|
7211
|
+
submitDelete: x,
|
|
7210
7212
|
submitUpdate: _,
|
|
7211
7213
|
toggleMenu: u,
|
|
7212
7214
|
loadViewpoint: c,
|
|
@@ -7415,13 +7417,13 @@ const Z4 = {
|
|
|
7415
7417
|
}, m = (y) => {
|
|
7416
7418
|
y.$viewer.localContext.el.style.border = "", y.$viewer.localContext.el.style.boxSizing = "", y.$viewer.localContext.el.style.opacity = "";
|
|
7417
7419
|
}, H = async () => {
|
|
7418
|
-
b.value.length === 1 ? await
|
|
7419
|
-
},
|
|
7420
|
-
m(
|
|
7420
|
+
b.value.length === 1 ? await Z(b.value[0]) : b.value.length > 1 && (l.value = !0);
|
|
7421
|
+
}, Z = async ({ id: y, viewer: x }) => {
|
|
7422
|
+
m(x), l.value = !1;
|
|
7421
7423
|
const [M] = Object.entries(c1).find(([, F]) => F.plugin === y);
|
|
7422
|
-
u.value = Object.assign(await
|
|
7424
|
+
u.value = Object.assign(await x.getViewpoint(), {
|
|
7423
7425
|
[d1]: M,
|
|
7424
|
-
[s1]:
|
|
7426
|
+
[s1]: x.getLoadedModels().map((F) => F.id).join(",")
|
|
7425
7427
|
});
|
|
7426
7428
|
}, E = () => {
|
|
7427
7429
|
u.value = null;
|
|
@@ -7433,11 +7435,11 @@ const Z4 = {
|
|
|
7433
7435
|
e.topic,
|
|
7434
7436
|
u.value
|
|
7435
7437
|
));
|
|
7436
|
-
const
|
|
7438
|
+
const x = await t.createComment(e.project, e.topic, {
|
|
7437
7439
|
comment: s.value,
|
|
7438
7440
|
viewpoint_guid: (y = u.value) == null ? void 0 : y.guid
|
|
7439
7441
|
});
|
|
7440
|
-
C(), r("comment-created",
|
|
7442
|
+
C(), r("comment-created", x), n.value = !1, s.value = "";
|
|
7441
7443
|
} finally {
|
|
7442
7444
|
d.value = !1, u.value = null;
|
|
7443
7445
|
}
|
|
@@ -7455,7 +7457,7 @@ const Z4 = {
|
|
|
7455
7457
|
return xe(() => {
|
|
7456
7458
|
if (c) {
|
|
7457
7459
|
const y = () => Object.entries(o()).map(
|
|
7458
|
-
([
|
|
7460
|
+
([x, M]) => M.map((F, R) => ({ key: `${x}-${R}`, id: x, index: R, viewer: F }))
|
|
7459
7461
|
).flat();
|
|
7460
7462
|
b.value = y(), _ = c.globalContext.hub.on("plugin-created", () => {
|
|
7461
7463
|
b.value = y();
|
|
@@ -7477,7 +7479,7 @@ const Z4 = {
|
|
|
7477
7479
|
viewpoint: u,
|
|
7478
7480
|
isViewer: Boolean(c),
|
|
7479
7481
|
// Methods
|
|
7480
|
-
createViewpoint:
|
|
7482
|
+
createViewpoint: Z,
|
|
7481
7483
|
deleteViewpoint: E,
|
|
7482
7484
|
highlightViewer: g,
|
|
7483
7485
|
loadComments: C,
|
|
@@ -8705,17 +8707,17 @@ const r0 = l1({ render: function() {
|
|
|
8705
8707
|
} } = {}) {
|
|
8706
8708
|
const m = L(/* @__PURE__ */ new Map());
|
|
8707
8709
|
return P(o, () => {
|
|
8708
|
-
m.value = new Map(o.value.filter(({ key: H }) => c.value.has(H)).map(({ key: H, data:
|
|
8710
|
+
m.value = new Map(o.value.filter(({ key: H }) => c.value.has(H)).map(({ key: H, data: Z }) => [H, Z]));
|
|
8709
8711
|
}, { immediate: !0 }), P(c, () => {
|
|
8710
8712
|
m.value = c.value;
|
|
8711
8713
|
}, { immediate: !0 }), P(m, () => {
|
|
8712
8714
|
l(m.value);
|
|
8713
|
-
}), { rowSelection: m, toggleRowSelection: ({ key: H, data:
|
|
8715
|
+
}), { rowSelection: m, toggleRowSelection: ({ key: H, data: Z }) => {
|
|
8714
8716
|
const E = () => m.value.has(H);
|
|
8715
|
-
E() ? m.value.delete(H) : m.value.set(H,
|
|
8717
|
+
E() ? m.value.delete(H) : m.value.set(H, Z), m.value = new Map([...m.value.entries()]), b(E(), { key: H, data: Z });
|
|
8716
8718
|
}, toggleFullSelection: () => {
|
|
8717
8719
|
const H = () => m.value.size === o.value.length;
|
|
8718
|
-
H() ? m.value = /* @__PURE__ */ new Map() : m.value = new Map(o.value.map(({ key:
|
|
8720
|
+
H() ? m.value = /* @__PURE__ */ new Map() : m.value = new Map(o.value.map(({ key: Z, data: E }) => [Z, E])), g(H());
|
|
8719
8721
|
} };
|
|
8720
8722
|
}(t, k(() => e.selection), { rowSelectionUpdateEffect: (o) => {
|
|
8721
8723
|
r("update:selection", o), r("selection-changed", Array.from(o.values()));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { reactive as t3, computed as F, ref as k, watch as i1, openBlock as r, createElementBlock as a, normalizeClass as D, normalizeStyle as H, renderSlot as y, createElementVNode as t, createBlock as V, resolveDynamicComponent as h1, pushScopeId as d1, popScopeId as u1, mergeProps as E1, toDisplayString as h, createCommentVNode as m, createTextVNode as A, resolveComponent as g, createVNode as p, resolveDirective as F1, withDirectives as j, Transition as o1, withCtx as L, Fragment as P, renderList as W, vShow as n1, toRaw as h5, withKeys as S, withModifiers as
|
|
2
|
+
import { reactive as t3, computed as F, ref as k, watch as i1, openBlock as r, createElementBlock as a, normalizeClass as D, normalizeStyle as H, renderSlot as y, createElementVNode as t, createBlock as V, resolveDynamicComponent as h1, pushScopeId as d1, popScopeId as u1, mergeProps as E1, toDisplayString as h, createCommentVNode as m, createTextVNode as A, resolveComponent as g, createVNode as p, resolveDirective as F1, withDirectives as j, Transition as o1, withCtx as L, Fragment as P, renderList as W, vShow as n1, toRaw as h5, withKeys as S, withModifiers as N, createSlots as a5, createStaticVNode as N5, inject as $1, onMounted as R5, onBeforeUnmount as O5 } from "vue";
|
|
3
3
|
const E5 = Object.freeze([
|
|
4
4
|
"Priority",
|
|
5
5
|
"Type",
|
|
@@ -455,14 +455,14 @@ var w2 = {}, M3 = {
|
|
|
455
455
|
if ((0, d.isAsyncIterable)(_))
|
|
456
456
|
return (0, f.default)(_[Symbol.asyncIterator](), I, x, R);
|
|
457
457
|
var T = (0, i.default)(_), Y = !1, a1 = !1, e1 = 0, B = !1;
|
|
458
|
-
function Z(O,
|
|
458
|
+
function Z(O, $) {
|
|
459
459
|
if (!a1)
|
|
460
460
|
if (e1 -= 1, O)
|
|
461
461
|
Y = !0, R(O);
|
|
462
462
|
else if (O === !1)
|
|
463
463
|
Y = !0, a1 = !0;
|
|
464
464
|
else {
|
|
465
|
-
if (
|
|
465
|
+
if ($ === M.default || Y && e1 <= 0)
|
|
466
466
|
return Y = !0, R(null);
|
|
467
467
|
B || w();
|
|
468
468
|
}
|
|
@@ -561,9 +561,9 @@ function s5(e, n) {
|
|
|
561
561
|
let W5 = null;
|
|
562
562
|
function Ly(e, { fetchUsers: n }) {
|
|
563
563
|
const o = n ? (B) => n(B) : (B) => e.collaborationApi.getProjectUsers(B.cloud.id, B.id), l = async (B, { extensions: Z, users: w } = {}) => {
|
|
564
|
-
const O = Z ?? await e.bcfApi.getDetailedExtensions(B.id),
|
|
564
|
+
const O = Z ?? await e.bcfApi.getDetailedExtensions(B.id), $ = w ?? await o(B), z = await e.bcfApi.getTopics(B.id);
|
|
565
565
|
return z.sort((q, E) => E.index - q.index), z.forEach((q) => {
|
|
566
|
-
q.color = I1(q, O), q.creator =
|
|
566
|
+
q.color = I1(q, O), q.creator = $.find((E) => E.email === q.creation_author);
|
|
567
567
|
}), z;
|
|
568
568
|
}, s = async (B, Z) => {
|
|
569
569
|
const w = await e.bcfApi.getDetailedExtensions(B.id), O = await e.bcfApi.getFullTopic(Z, B.id, "url");
|
|
@@ -581,8 +581,10 @@ function Ly(e, { fetchUsers: n }) {
|
|
|
581
581
|
Z.guid,
|
|
582
582
|
B.id
|
|
583
583
|
);
|
|
584
|
-
}, d = async (B, Z) => (await H3(Z, 10,
|
|
585
|
-
|
|
584
|
+
}, d = async (B, Z) => (await H3(Z, 10, (w, O) => {
|
|
585
|
+
C(B, w).then(($) => {
|
|
586
|
+
w.viewpoints = $, O();
|
|
587
|
+
}, O);
|
|
586
588
|
}), Z), C = async (B, Z) => await e.bcfApi.getTopicViewpoints(
|
|
587
589
|
B.id,
|
|
588
590
|
Z.guid,
|
|
@@ -616,8 +618,8 @@ function Ly(e, { fetchUsers: n }) {
|
|
|
616
618
|
},
|
|
617
619
|
fetchTopicComments: async (B, Z) => {
|
|
618
620
|
const w = await o(B), O = await e.bcfApi.getComments(B.id, Z.guid);
|
|
619
|
-
return O.sort((
|
|
620
|
-
|
|
621
|
+
return O.sort(($, z) => $.date > z.date ? -1 : 1), O.forEach(($) => {
|
|
622
|
+
$.user = w.find((z) => z.email === $.author);
|
|
621
623
|
}), O;
|
|
622
624
|
},
|
|
623
625
|
createComment: async (B, Z, w) => await e.bcfApi.createComment(
|
|
@@ -4098,7 +4100,7 @@ function de(e, n, o, l, s, i) {
|
|
|
4098
4100
|
ref: "input",
|
|
4099
4101
|
modelValue: l.extensionName,
|
|
4100
4102
|
"onUpdate:modelValue": n[0] || (n[0] = (b) => l.extensionName = b),
|
|
4101
|
-
onKeyup: S(
|
|
4103
|
+
onKeyup: S(N(l.submitValue, ["stop"]), ["enter"])
|
|
4102
4104
|
}, null, 8, ["modelValue", "onKeyup"])) : (r(), a("span", le, h(o.extension[l.getExtensionField(o.extensionType)]), 1)),
|
|
4103
4105
|
t("div", ie, [
|
|
4104
4106
|
p(d, {
|
|
@@ -4285,7 +4287,7 @@ function Me(e, n, o, l, s, i) {
|
|
|
4285
4287
|
placeholder: e.$t(`BcfComponents.SettingCard.input.${o.extensionType}`),
|
|
4286
4288
|
modelValue: l.name,
|
|
4287
4289
|
"onUpdate:modelValue": n[1] || (n[1] = (f) => l.name = f),
|
|
4288
|
-
onKeyup: S(
|
|
4290
|
+
onKeyup: S(N(l.addExtension, ["stop"]), ["enter"])
|
|
4289
4291
|
}, null, 8, ["placeholder", "modelValue", "onKeyup"]),
|
|
4290
4292
|
t("div", ve, [
|
|
4291
4293
|
p(u, {
|
|
@@ -7808,7 +7810,7 @@ var N2 = (e) => ({ ...Ni, useUtc: e }), u5 = { props: { autofocus: { type: Boole
|
|
|
7808
7810
|
const Ri = ["disabled"], Oi = { key: 0 }, Ei = ["for"], Fi = ["id", "autofocus", "clearButton", "disabled", "maxlength", "name", "pattern", "readonly", "required", "tabIndex", "type", "value"];
|
|
7809
7811
|
q2.render = function(e, n, o, l, s, i) {
|
|
7810
7812
|
const c = g("BIMDataIcon"), u = g("BIMDataButton");
|
|
7811
|
-
return r(), a("div", { class: D({ "not-empty": i.formattedValue }) }, [y(e.$slots, "beforeDateInput"), m(" Calendar Button "), e.calendarButton ? (r(), a("button", { key: 0, ref: "calendarButton", class: "bimdata-datepicker__calendar-button", disabled: e.disabled, type: "button", onClick: n[0] || (n[0] = (d) => i.toggle("calendarButton")), onFocus: n[1] || (n[1] = (...d) => i.handleButtonFocus && i.handleButtonFocus(...d)) }, [t("span", null, [y(e.$slots, "calendarBtn", {}, () => [t("i", { class: D(e.calendarButtonIcon) }, [A(h(e.calendarButtonIconContent) + " ", 1), e.calendarButtonIcon ? m("v-if", !0) : (r(), a("span", Oi, "…"))], 2)])])], 40, Ri)) : m("v-if", !0), m(" Input "), t("label", { for: `bimdata-input-${e.id}` }, h(e.placeholder), 9, Ei), t("input", { id: e.id, ref: e.refName, autocomplete: "off", autofocus: e.autofocus, class: D([i.computedInputClass, { required: o.required }]), clearButton: e.clearButton, disabled: e.disabled, maxlength: e.maxlength, name: e.name, pattern: e.pattern, readonly: !e.typeable, required: o.required, tabIndex: e.tabIndex, type: e.inline ? "hidden" : null, value: i.formattedValue, onBlur: n[2] || (n[2] = (...d) => i.handleInputBlur && i.handleInputBlur(...d)), onClick: n[3] || (n[3] = (...d) => i.handleInputClick && i.handleInputClick(...d)), onFocus: n[4] || (n[4] = (...d) => i.handleInputFocus && i.handleInputFocus(...d)), onKeydown: [n[5] || (n[5] = S((...d) => i.handleDelete && i.handleDelete(...d), ["backspace"])), n[6] || (n[6] = S((...d) => i.handleDelete && i.handleDelete(...d), ["delete"])), n[7] || (n[7] = S(
|
|
7813
|
+
return r(), a("div", { class: D({ "not-empty": i.formattedValue }) }, [y(e.$slots, "beforeDateInput"), m(" Calendar Button "), e.calendarButton ? (r(), a("button", { key: 0, ref: "calendarButton", class: "bimdata-datepicker__calendar-button", disabled: e.disabled, type: "button", onClick: n[0] || (n[0] = (d) => i.toggle("calendarButton")), onFocus: n[1] || (n[1] = (...d) => i.handleButtonFocus && i.handleButtonFocus(...d)) }, [t("span", null, [y(e.$slots, "calendarBtn", {}, () => [t("i", { class: D(e.calendarButtonIcon) }, [A(h(e.calendarButtonIconContent) + " ", 1), e.calendarButtonIcon ? m("v-if", !0) : (r(), a("span", Oi, "…"))], 2)])])], 40, Ri)) : m("v-if", !0), m(" Input "), t("label", { for: `bimdata-input-${e.id}` }, h(e.placeholder), 9, Ei), t("input", { id: e.id, ref: e.refName, autocomplete: "off", autofocus: e.autofocus, class: D([i.computedInputClass, { required: o.required }]), clearButton: e.clearButton, disabled: e.disabled, maxlength: e.maxlength, name: e.name, pattern: e.pattern, readonly: !e.typeable, required: o.required, tabIndex: e.tabIndex, type: e.inline ? "hidden" : null, value: i.formattedValue, onBlur: n[2] || (n[2] = (...d) => i.handleInputBlur && i.handleInputBlur(...d)), onClick: n[3] || (n[3] = (...d) => i.handleInputClick && i.handleInputClick(...d)), onFocus: n[4] || (n[4] = (...d) => i.handleInputFocus && i.handleInputFocus(...d)), onKeydown: [n[5] || (n[5] = S((...d) => i.handleDelete && i.handleDelete(...d), ["backspace"])), n[6] || (n[6] = S((...d) => i.handleDelete && i.handleDelete(...d), ["delete"])), n[7] || (n[7] = S(N((...d) => i.handleKeydownDown && i.handleKeydownDown(...d), ["prevent"]), ["down"])), n[8] || (n[8] = S(N((...d) => i.handleKeydownEnter && i.handleKeydownEnter(...d), ["prevent"]), ["enter"])), n[9] || (n[9] = S(N((...d) => i.handleKeydownEscape && i.handleKeydownEscape(...d), ["prevent"]), ["esc"])), n[10] || (n[10] = S((d) => i.handleKeydownSpace(d), ["space"])), n[11] || (n[11] = S((d) => e.$emit("tab", d), ["tab"]))], onKeyup: [n[12] || (n[12] = (d) => i.handleKeyup(d)), n[13] || (n[13] = S((d) => i.handleKeyupSpace(d), ["space"]))] }, null, 42, Fi), m(" Clear Button "), e.clearButton && o.selectedDate ? (r(), V(u, { key: 1, disabled: e.disabled, class: "bimdata-datepicker__clear-button", color: "primary", fill: "", square: "", icon: "", onClick: i.clearDate }, { default: L(() => [y(e.$slots, "clearBtn", {}, () => [p(c, { name: "delete", size: "xxxs", fill: "", color: "default" })])]), _: 3 }, 8, ["disabled", "onClick"])) : m("v-if", !0), y(e.$slots, "afterDateInput")], 2);
|
|
7812
7814
|
}, q2.__file = "src/BIMDataComponents/BIMDataDatePicker/components/DateInput.vue";
|
|
7813
7815
|
var J2 = { name: "DateInput", components: { BIMDataIcon: v1, BIMDataButton: Z1 }, mixins: [u5], props: { isOpen: { type: Boolean, default: !1 }, selectedDates: { type: Array, default: null }, translation: { type: Object, default: () => ({}) }, required: { type: Boolean, default: !1 } }, data() {
|
|
7814
7816
|
return { input: null, isInputFocused: !1, shouldToggleOnFocus: !1, shouldToggleOnClick: !0, utils: N2(this.useUtc) };
|
|
@@ -7873,7 +7875,7 @@ var J2 = { name: "DateInput", components: { BIMDataIcon: v1, BIMDataButton: Z1 }
|
|
|
7873
7875
|
const Pi = ["disabled"], Ui = { key: 0 }, zi = ["for"], Gi = ["id", "autofocus", "clearButton", "disabled", "maxlength", "name", "pattern", "readonly", "required", "tabIndex", "type", "value"];
|
|
7874
7876
|
J2.render = function(e, n, o, l, s, i) {
|
|
7875
7877
|
const c = g("BIMDataIcon"), u = g("BIMDataButton");
|
|
7876
|
-
return r(), a("div", { class: D({ "not-empty": i.formattedValue }) }, [y(e.$slots, "beforeDateInput"), m(" Calendar Button "), e.calendarButton ? (r(), a("button", { key: 0, ref: "calendarButton", class: "bimdata-datepicker__calendar-button", disabled: e.disabled, type: "button", onClick: n[0] || (n[0] = (d) => i.toggle("calendarButton")), onFocus: n[1] || (n[1] = (...d) => i.handleButtonFocus && i.handleButtonFocus(...d)) }, [t("span", null, [y(e.$slots, "calendarBtn", {}, () => [t("i", { class: D(e.calendarButtonIcon) }, [A(h(e.calendarButtonIconContent) + " ", 1), e.calendarButtonIcon ? m("v-if", !0) : (r(), a("span", Ui, "…"))], 2)])])], 40, Pi)) : m("v-if", !0), m(" Input "), t("label", { for: `bimdata-input-${e.id}` }, h(e.placeholder), 9, zi), t("input", { id: e.id, ref: e.refName, autocomplete: "off", autofocus: e.autofocus, class: D([i.computedInputClass, { required: o.required }]), clearButton: e.clearButton, disabled: e.disabled, maxlength: e.maxlength, name: e.name, pattern: e.pattern, readonly: !e.typeable, required: o.required, tabIndex: e.tabIndex, type: e.inline ? "hidden" : null, value: i.formattedValue, onBlur: n[2] || (n[2] = (...d) => i.handleInputBlur && i.handleInputBlur(...d)), onClick: n[3] || (n[3] = (...d) => i.handleInputClick && i.handleInputClick(...d)), onFocus: n[4] || (n[4] = (...d) => i.handleInputFocus && i.handleInputFocus(...d)), onKeydown: [n[5] || (n[5] = S((...d) => i.handleDelete && i.handleDelete(...d), ["backspace"])), n[6] || (n[6] = S((...d) => i.handleDelete && i.handleDelete(...d), ["delete"])), n[7] || (n[7] = S(
|
|
7878
|
+
return r(), a("div", { class: D({ "not-empty": i.formattedValue }) }, [y(e.$slots, "beforeDateInput"), m(" Calendar Button "), e.calendarButton ? (r(), a("button", { key: 0, ref: "calendarButton", class: "bimdata-datepicker__calendar-button", disabled: e.disabled, type: "button", onClick: n[0] || (n[0] = (d) => i.toggle("calendarButton")), onFocus: n[1] || (n[1] = (...d) => i.handleButtonFocus && i.handleButtonFocus(...d)) }, [t("span", null, [y(e.$slots, "calendarBtn", {}, () => [t("i", { class: D(e.calendarButtonIcon) }, [A(h(e.calendarButtonIconContent) + " ", 1), e.calendarButtonIcon ? m("v-if", !0) : (r(), a("span", Ui, "…"))], 2)])])], 40, Pi)) : m("v-if", !0), m(" Input "), t("label", { for: `bimdata-input-${e.id}` }, h(e.placeholder), 9, zi), t("input", { id: e.id, ref: e.refName, autocomplete: "off", autofocus: e.autofocus, class: D([i.computedInputClass, { required: o.required }]), clearButton: e.clearButton, disabled: e.disabled, maxlength: e.maxlength, name: e.name, pattern: e.pattern, readonly: !e.typeable, required: o.required, tabIndex: e.tabIndex, type: e.inline ? "hidden" : null, value: i.formattedValue, onBlur: n[2] || (n[2] = (...d) => i.handleInputBlur && i.handleInputBlur(...d)), onClick: n[3] || (n[3] = (...d) => i.handleInputClick && i.handleInputClick(...d)), onFocus: n[4] || (n[4] = (...d) => i.handleInputFocus && i.handleInputFocus(...d)), onKeydown: [n[5] || (n[5] = S((...d) => i.handleDelete && i.handleDelete(...d), ["backspace"])), n[6] || (n[6] = S((...d) => i.handleDelete && i.handleDelete(...d), ["delete"])), n[7] || (n[7] = S(N((...d) => i.handleKeydownDown && i.handleKeydownDown(...d), ["prevent"]), ["down"])), n[8] || (n[8] = S(N((...d) => i.handleKeydownEnter && i.handleKeydownEnter(...d), ["prevent"]), ["enter"])), n[9] || (n[9] = S(N((...d) => i.handleKeydownEscape && i.handleKeydownEscape(...d), ["prevent"]), ["esc"])), n[10] || (n[10] = S((d) => i.handleKeydownSpace(d), ["space"])), n[11] || (n[11] = S((d) => e.$emit("tab", d), ["tab"]))], onKeyup: [n[12] || (n[12] = (d) => i.handleKeyup(d)), n[13] || (n[13] = S((d) => i.handleKeyupSpace(d), ["space"]))] }, null, 42, Gi), m(" Clear Button "), e.clearButton && !i.noDateSelected ? (r(), V(u, { key: 1, disabled: e.disabled, class: "bimdata-datepicker__clear-button", color: "primary", fill: "", square: "", icon: "", onClick: i.clear }, { default: L(() => [y(e.$slots, "clearBtn", {}, () => [p(c, { name: "delete", size: "xxxs", fill: "", color: "default" })])]), _: 3 }, 8, ["disabled", "onClick"])) : m("v-if", !0), y(e.$slots, "afterDateInput")], 2);
|
|
7877
7879
|
}, J2.__file = "src/BIMDataComponents/BIMDataDatePicker/components/DateInputRange.vue";
|
|
7878
7880
|
const Yi = { configExists: (e) => e !== void 0 && Object.keys(e).length > 0, isDefined(e, n) {
|
|
7879
7881
|
return this.configExists(e) && e[n] !== void 0;
|
|
@@ -8142,7 +8144,7 @@ var Xi = { data: () => ({ focus: { delay: 0, refs: [] }, inlineTabbableCell: nul
|
|
|
8142
8144
|
const Wi = ["disabled"], ji = ["disabled"], Ki = ["disabled"], qi = ["disabled"];
|
|
8143
8145
|
e5.render = function(e, n, o, l, s, i) {
|
|
8144
8146
|
const c = g("BIMDataIcon");
|
|
8145
|
-
return r(), a("header", null, [e.$attrs.view === "day" ? (r(), a("button", { key: 0, ref: "doublePrev", class: "doublePrev", disabled: o.isPreviousDisabled, type: "button", onClick: n[0] || (n[0] =
|
|
8147
|
+
return r(), a("header", null, [e.$attrs.view === "day" ? (r(), a("button", { key: 0, ref: "doublePrev", class: "doublePrev", disabled: o.isPreviousDisabled, type: "button", onClick: n[0] || (n[0] = N((u) => e.$emit("page-change", s.doublePreviousPage), ["stop"])), onKeydown: [n[1] || (n[1] = S(N((...u) => i.focusTabbableCell && i.focusTabbableCell(...u), ["prevent"]), ["down"])), n[2] || (n[2] = S(N((u) => e.$emit("focus-input"), ["prevent"]), ["up"])), n[3] || (n[3] = S(N((...u) => i.arrowLeftPrev && i.arrowLeftPrev(...u), ["prevent"]), ["left"])), n[4] || (n[4] = S(N((...u) => i.arrowRightPrev && i.arrowRightPrev(...u), ["prevent"]), ["right"]))] }, [y(e.$slots, "prevIntervalBtn", {}, () => [p(c, { name: "doubleChevron", size: "xxxs", fill: "", color: "default", rotate: 180 })])], 40, Wi)) : m("v-if", !0), t("button", { ref: "prev", class: "prev", disabled: o.isPreviousDisabled, type: "button", onClick: n[5] || (n[5] = N((u) => e.$emit("page-change", s.previousPage), ["stop"])), onKeydown: [n[6] || (n[6] = S(N((...u) => i.focusTabbableCell && i.focusTabbableCell(...u), ["prevent"]), ["down"])), n[7] || (n[7] = S(N((u) => e.$emit("focus-input"), ["prevent"]), ["up"])), n[8] || (n[8] = S(N((...u) => i.arrowLeftPrev && i.arrowLeftPrev(...u), ["prevent"]), ["left"])), n[9] || (n[9] = S(N((...u) => i.arrowRightPrev && i.arrowRightPrev(...u), ["prevent"]), ["right"]))] }, [y(e.$slots, "prevIntervalBtn", {}, () => [p(c, { name: "chevron", size: "xxxs", fill: "", color: "default", rotate: 180 })])], 40, ji), y(e.$slots, "default"), t("button", { ref: "next", class: "next", disabled: o.isNextDisabled, type: "button", onClick: n[10] || (n[10] = N((u) => e.$emit("page-change", s.nextPage), ["stop"])), onKeydown: [n[11] || (n[11] = S(N((...u) => i.focusTabbableCell && i.focusTabbableCell(...u), ["prevent"]), ["down"])), n[12] || (n[12] = S(N((u) => e.$emit("focus-input"), ["prevent"]), ["up"])), n[13] || (n[13] = S(N((...u) => i.arrowLeftNext && i.arrowLeftNext(...u), ["prevent"]), ["left"])), n[14] || (n[14] = S(N((...u) => i.arrowRightNext && i.arrowRightNext(...u), ["prevent"]), ["right"]))] }, [y(e.$slots, "nextIntervalBtn", {}, () => [p(c, { name: "chevron", size: "xxxs", fill: "", color: "default" })])], 40, Ki), e.$attrs.view === "day" ? (r(), a("button", { key: 1, ref: "doubleNext", class: "doubleNext", disabled: o.isPreviousDisabled, type: "button", onClick: n[15] || (n[15] = N((u) => e.$emit("page-change", s.doubleNextPage), ["stop"])), onKeydown: [n[16] || (n[16] = S(N((...u) => i.focusTabbableCell && i.focusTabbableCell(...u), ["prevent"]), ["down"])), n[17] || (n[17] = S(N((u) => e.$emit("focus-input"), ["prevent"]), ["up"])), n[18] || (n[18] = S(N((...u) => i.arrowLeftPrev && i.arrowLeftPrev(...u), ["prevent"]), ["left"])), n[19] || (n[19] = S(N((...u) => i.arrowRightPrev && i.arrowRightPrev(...u), ["prevent"]), ["right"]))] }, [y(e.$slots, "prevIntervalBtn", {}, () => [p(c, { name: "doubleChevron", size: "xxxs", fill: "", color: "default" })])], 40, qi)) : m("v-if", !0)]);
|
|
8146
8148
|
}, e5.__file = "src/BIMDataComponents/BIMDataDatePicker/components/PickerHeader.vue";
|
|
8147
8149
|
var C5 = { components: { PickerHeader: e5 }, inheritAttrs: !1, props: { bootstrapStyling: { type: Boolean, default: !1 }, disabledDates: { type: Object, default: () => ({}) }, isTypeable: { type: Boolean, default: !1 }, isUpDisabled: { type: Boolean, default: !1 }, isMinimumView: { type: Boolean, default: !0 }, openDate: { type: [String, Date, Number], default: null, validator: (e) => e === null || e instanceof Date || typeof e == "string" || typeof e == "number" }, pageDate: { type: Date, default: null }, selectedDate: { type: Date, default: null }, showHeader: { type: Boolean, default: !0 }, slideDuration: { type: Number, default: 250 }, tabbableCellId: { type: Number, default: null }, transitionName: { type: String, default: "" }, translation: { type: Object, default: () => ({}) }, useUtc: { type: Boolean, default: !1 }, view: { type: String, default: "day" } }, data() {
|
|
8148
8150
|
return { utils: N2(this.useUtc) };
|
|
@@ -8238,12 +8240,12 @@ var R1 = { name: "PickerCells", props: { cells: { type: Array, required: !0 }, s
|
|
|
8238
8240
|
} } };
|
|
8239
8241
|
const Ji = { class: "picker-cells" }, Qi = ["id", "dataTestTabbableCell", "dataTestOpenDate", "dataTestTodayCell", "disabled", "onClick", "onKeydown", "onMouseover"];
|
|
8240
8242
|
R1.render = function(e, n, o, l, s, i) {
|
|
8241
|
-
return r(), a("div", Ji, [(r(!0), a(P, null, W(o.cells, (c, u) => (r(), a("button", { key: c.timestamp, ref_for: !0, ref: c.isOpenDate ? "openDate" : null, class: D(i.cellClasses(c)), id: u, dataTestTabbableCell: i.isTabbableCell(c, u), dataTestOpenDate: c.isOpenDate, dataTestTodayCell: c.isToday, disabled: c.isDisabled, type: "button", onClick: (d) => e.$emit("select", c), onKeydown: [S(
|
|
8243
|
+
return r(), a("div", Ji, [(r(!0), a(P, null, W(o.cells, (c, u) => (r(), a("button", { key: c.timestamp, ref_for: !0, ref: c.isOpenDate ? "openDate" : null, class: D(i.cellClasses(c)), id: u, dataTestTabbableCell: i.isTabbableCell(c, u), dataTestOpenDate: c.isOpenDate, dataTestTodayCell: c.isToday, disabled: c.isDisabled, type: "button", onClick: (d) => e.$emit("select", c), onKeydown: [S(N((d) => i.handleArrow(u, -i.columns), ["prevent"]), ["up"]), S(N((d) => i.handleArrow(u, i.columns), ["prevent"]), ["down"]), S(N((d) => i.handleArrow(u), ["prevent"]), ["left"]), S(N((d) => i.handleArrow(u), ["prevent"]), ["right"])], onMouseover: (d) => e.$emit("hover", c) }, [y(e.$slots, "default", { cell: c })], 42, Qi))), 128))]);
|
|
8242
8244
|
}, R1.__file = "src/BIMDataComponents/BIMDataDatePicker/components/PickerCells.vue";
|
|
8243
8245
|
var O1 = { name: "UpButton", props: { isDisabled: { type: Boolean, default: !1 } } };
|
|
8244
8246
|
const es = ["disabled"];
|
|
8245
8247
|
O1.render = function(e, n, o, l, s, i) {
|
|
8246
|
-
return r(), a("button", { class: "bimdata-datepicker__up", disabled: o.isDisabled, type: "button", onClick: n[0] || (n[0] = (c) => e.$emit("select")), onKeydown: [n[1] || (n[1] = S(
|
|
8248
|
+
return r(), a("button", { class: "bimdata-datepicker__up", disabled: o.isDisabled, type: "button", onClick: n[0] || (n[0] = (c) => e.$emit("select")), onKeydown: [n[1] || (n[1] = S(N((c) => e.$emit("set-focus", ["tabbableCell"]), ["prevent"]), ["down"])), n[2] || (n[2] = S(N((c) => e.$emit("focus-input"), ["prevent"]), ["up"])), n[3] || (n[3] = S(N((c) => e.$emit("set-focus"), ["prevent"]), ["left"])), n[4] || (n[4] = S(N((c) => e.$emit("set-focus"), ["prevent"]), ["right"]))] }, [y(e.$slots, "default")], 40, es);
|
|
8247
8249
|
}, O1.__file = "src/BIMDataComponents/BIMDataDatePicker/components/UpButton.vue";
|
|
8248
8250
|
var n5 = { name: "PickerDay", components: { PickerCells: R1, UpButton: O1 }, mixins: [C5], props: { selectedToDate: { type: Date, default: null }, isDateRange: { type: Boolean, default: !1 }, dayCellContent: { type: Function, default: (e) => e.date }, firstDayOfWeek: { type: String, default: "sun" }, showFullMonthName: { type: Boolean, default: !1 }, showEdgeDates: { type: Boolean, default: !0 } }, data: () => ({ highlightedToDate: null }), computed: { cells() {
|
|
8249
8251
|
const e = [], n = this.daysFromPrevMonth + this.daysInMonth + this.daysFromNextMonth, o = this.firstCellDate();
|
|
@@ -8982,8 +8984,8 @@ y1(`.slide-fade-up-enter-active,
|
|
|
8982
8984
|
padding: 0;
|
|
8983
8985
|
}`), i2.render = function(e, n, o, l, s, i) {
|
|
8984
8986
|
const c = g("DateInputRange"), u = g("DateInput");
|
|
8985
|
-
return r(), a("div", { id: i.datepickerId, ref: "datepicker", class: D(["bimdata-datepicker", [o.wrapperClass]]), onFocusin: n[10] || (n[10] = (d) => e.handleFocusIn(d)), onFocusout: n[11] || (n[11] = (d) => e.handleFocusOut(d)), onKeydown: n[12] || (n[12] = S((...d) => i.resetOrClose && i.resetOrClose(...d), ["esc"])) }, [o.isDateRange ? (r(), V(c, { key: 0, id: e.id, ref: "dateInput", autofocus: e.autofocus, calendarButton: e.calendarButton, calendarButtonIcon: e.calendarButtonIcon, calendarButtonIconContent: e.calendarButtonIconContent, clearButton: e.clearButton, clearButtonIcon: e.clearButtonIcon, disabled: e.disabled, format: e.format, inline: e.inline, inputClass: e.inputClass, isOpen: i.isOpen, maxlength: e.maxlength, name: e.name, parser: e.parser, pattern: e.pattern, placeholder: e.placeholder, refName: e.refName, required: e.required, selectedDates: [s.selectedDate, s.selectedToDate], showCalendarOnButtonClick: e.showCalendarOnButtonClick, showCalendarOnFocus: e.showCalendarOnFocus, tabIndex: e.tabIndex, translation: i.lang, useUtc: e.useUtc, onClear: i.clear, onClose: i.close, onOpen: i.open, onSetFocus: n[0] || (n[0] = (d) => e.setFocus(d)), onTab: e.tabThroughNavigation, style: H(i.style) }, { beforeDateInput: L(() => [y(e.$slots, "beforeDateInput")]), afterDateInput: L(() => [y(e.$slots, "afterDateInput")]), clearBtn: L(() => [y(e.$slots, "clearBtn")]), calendarBtn: L(() => [y(e.$slots, "calendarBtn")]), _: 3 }, 8, ["id", "autofocus", "calendarButton", "calendarButtonIcon", "calendarButtonIconContent", "clearButton", "clearButtonIcon", "disabled", "format", "inline", "inputClass", "isOpen", "maxlength", "name", "parser", "pattern", "placeholder", "refName", "required", "selectedDates", "showCalendarOnButtonClick", "showCalendarOnFocus", "tabIndex", "translation", "useUtc", "onClear", "onClose", "onOpen", "onTab", "style"])) : (r(), V(u, { key: 1, id: e.id, ref: "dateInput", autofocus: e.autofocus, calendarButton: e.calendarButton, calendarButtonIcon: e.calendarButtonIcon, calendarButtonIconContent: e.calendarButtonIconContent, clearButton: e.clearButton, clearButtonIcon: e.clearButtonIcon, disabled: e.disabled, format: e.format, inline: e.inline, inputClass: e.inputClass, isOpen: i.isOpen, maxlength: e.maxlength, name: e.name, parser: e.parser, pattern: e.pattern, placeholder: e.placeholder, refName: e.refName, required: e.required, selectedDate: s.selectedDate, showCalendarOnButtonClick: e.showCalendarOnButtonClick, showCalendarOnFocus: e.showCalendarOnFocus, tabIndex: e.tabIndex, translation: i.lang, typeable: e.typeable, useUtc: e.useUtc, onClearDate: i.clear, onClose: i.close, onOpen: i.open, onSetFocus: n[1] || (n[1] = (d) => e.setFocus(d)), onTab: e.tabThroughNavigation, style: H(i.style) }, { beforeDateInput: L(() => [y(e.$slots, "beforeDateInput")]), afterDateInput: L(() => [y(e.$slots, "afterDateInput")]), clearBtn: L(() => [y(e.$slots, "clearBtn")]), calendarBtn: L(() => [y(e.$slots, "calendarBtn")]), _: 3 }, 8, ["id", "autofocus", "calendarButton", "calendarButtonIcon", "calendarButtonIconContent", "clearButton", "clearButtonIcon", "disabled", "format", "inline", "inputClass", "isOpen", "maxlength", "name", "parser", "pattern", "placeholder", "refName", "required", "selectedDate", "showCalendarOnButtonClick", "showCalendarOnFocus", "tabIndex", "translation", "typeable", "useUtc", "onClearDate", "onClose", "onOpen", "onTab", "style"])), i.isOpen ? (r(), a("div", ps, [p(o1, { name: "toggle", persisted: "" }, { default: L(() => [j(t("div", { class: D(["bimdata-datepicker__calendar", [i.pickerClasses, o.fixedPosition]]), onMousedown: n[5] || (n[5] =
|
|
8986
|
-
}, ["prevent"])), onFocusin: n[6] || (n[6] =
|
|
8987
|
+
return r(), a("div", { id: i.datepickerId, ref: "datepicker", class: D(["bimdata-datepicker", [o.wrapperClass]]), onFocusin: n[10] || (n[10] = (d) => e.handleFocusIn(d)), onFocusout: n[11] || (n[11] = (d) => e.handleFocusOut(d)), onKeydown: n[12] || (n[12] = S((...d) => i.resetOrClose && i.resetOrClose(...d), ["esc"])) }, [o.isDateRange ? (r(), V(c, { key: 0, id: e.id, ref: "dateInput", autofocus: e.autofocus, calendarButton: e.calendarButton, calendarButtonIcon: e.calendarButtonIcon, calendarButtonIconContent: e.calendarButtonIconContent, clearButton: e.clearButton, clearButtonIcon: e.clearButtonIcon, disabled: e.disabled, format: e.format, inline: e.inline, inputClass: e.inputClass, isOpen: i.isOpen, maxlength: e.maxlength, name: e.name, parser: e.parser, pattern: e.pattern, placeholder: e.placeholder, refName: e.refName, required: e.required, selectedDates: [s.selectedDate, s.selectedToDate], showCalendarOnButtonClick: e.showCalendarOnButtonClick, showCalendarOnFocus: e.showCalendarOnFocus, tabIndex: e.tabIndex, translation: i.lang, useUtc: e.useUtc, onClear: i.clear, onClose: i.close, onOpen: i.open, onSetFocus: n[0] || (n[0] = (d) => e.setFocus(d)), onTab: e.tabThroughNavigation, style: H(i.style) }, { beforeDateInput: L(() => [y(e.$slots, "beforeDateInput")]), afterDateInput: L(() => [y(e.$slots, "afterDateInput")]), clearBtn: L(() => [y(e.$slots, "clearBtn")]), calendarBtn: L(() => [y(e.$slots, "calendarBtn")]), _: 3 }, 8, ["id", "autofocus", "calendarButton", "calendarButtonIcon", "calendarButtonIconContent", "clearButton", "clearButtonIcon", "disabled", "format", "inline", "inputClass", "isOpen", "maxlength", "name", "parser", "pattern", "placeholder", "refName", "required", "selectedDates", "showCalendarOnButtonClick", "showCalendarOnFocus", "tabIndex", "translation", "useUtc", "onClear", "onClose", "onOpen", "onTab", "style"])) : (r(), V(u, { key: 1, id: e.id, ref: "dateInput", autofocus: e.autofocus, calendarButton: e.calendarButton, calendarButtonIcon: e.calendarButtonIcon, calendarButtonIconContent: e.calendarButtonIconContent, clearButton: e.clearButton, clearButtonIcon: e.clearButtonIcon, disabled: e.disabled, format: e.format, inline: e.inline, inputClass: e.inputClass, isOpen: i.isOpen, maxlength: e.maxlength, name: e.name, parser: e.parser, pattern: e.pattern, placeholder: e.placeholder, refName: e.refName, required: e.required, selectedDate: s.selectedDate, showCalendarOnButtonClick: e.showCalendarOnButtonClick, showCalendarOnFocus: e.showCalendarOnFocus, tabIndex: e.tabIndex, translation: i.lang, typeable: e.typeable, useUtc: e.useUtc, onClearDate: i.clear, onClose: i.close, onOpen: i.open, onSetFocus: n[1] || (n[1] = (d) => e.setFocus(d)), onTab: e.tabThroughNavigation, style: H(i.style) }, { beforeDateInput: L(() => [y(e.$slots, "beforeDateInput")]), afterDateInput: L(() => [y(e.$slots, "afterDateInput")]), clearBtn: L(() => [y(e.$slots, "clearBtn")]), calendarBtn: L(() => [y(e.$slots, "calendarBtn")]), _: 3 }, 8, ["id", "autofocus", "calendarButton", "calendarButtonIcon", "calendarButtonIconContent", "clearButton", "clearButtonIcon", "disabled", "format", "inline", "inputClass", "isOpen", "maxlength", "name", "parser", "pattern", "placeholder", "refName", "required", "selectedDate", "showCalendarOnButtonClick", "showCalendarOnFocus", "tabIndex", "translation", "typeable", "useUtc", "onClearDate", "onClose", "onOpen", "onTab", "style"])), i.isOpen ? (r(), a("div", ps, [p(o1, { name: "toggle", persisted: "" }, { default: L(() => [j(t("div", { class: D(["bimdata-datepicker__calendar", [i.pickerClasses, o.fixedPosition]]), onMousedown: n[5] || (n[5] = N(() => {
|
|
8988
|
+
}, ["prevent"])), onFocusin: n[6] || (n[6] = N((d) => e.handleFocusIn(d), ["stop"])), onFocusout: n[7] || (n[7] = N((d) => e.handleFocusOut(d), ["stop"])), onKeydown: [n[8] || (n[8] = S(N((...d) => i.resetOrClose && i.resetOrClose(...d), ["stop"]), ["esc"])), n[9] || (n[9] = S(N((d) => e.tabThroughNavigation(d), ["stop"]), ["tab"]))] }, [p(o1, { name: "view" }, { default: L(() => [(r(), a("div", { ref: "view", key: s.view }, [e.$slots.beforeCalendarHeader ? (r(), a("div", bs, [y(e.$slots, "beforeCalendarHeader")])) : m("v-if", !0), (r(), V(h1(i.picker), { ref: "picker", class: "picker-view", "day-cell-content": o.dayCellContent, disabledDates: o.disabledDates, firstDayOfWeek: o.firstDayOfWeek, typeable: e.typeable, isUpDisabled: i.isUpDisabled, isMinimumView: i.isMinimumView, openDate: e.openDate, pageDate: i.pageDate, selectedDate: s.selectedDate, selectedToDate: s.selectedToDate, isDateRange: o.isDateRange, showEdgeDates: o.showEdgeDates, fullMonthName: o.fullMonthName, showHeader: o.showHeader, slideDuration: s.slideDuration, tabbableCellId: e.tabbableCellId, transitionName: e.transitionName, translation: i.lang, useUtc: e.useUtc, view: s.view || i.computedInitialView, yearPickerRange: o.yearPickerRange, onPageChange: i.handlePageChange, onSelect: i.handleSelect, onSetFocus: n[2] || (n[2] = (d) => e.setFocus(d)), onSetSkipReviewFocus: n[3] || (n[3] = (d) => e.skipReviewFocus = d), onSetTransitionName: n[4] || (n[4] = (d) => e.setTransitionName(d)), onSetView: i.setView }, a5({ dayCellContent: L(({ cell: d }) => [d ? y(e.$slots, "dayCellContent", { key: 0, cell: d }) : m("v-if", !0)]), _: 2 }, [W(s.calendarSlots, (d) => ({ name: d, fn: L(() => [y(e.$slots, d)]) }))]), 1064, ["day-cell-content", "disabledDates", "firstDayOfWeek", "typeable", "isUpDisabled", "isMinimumView", "openDate", "pageDate", "selectedDate", "selectedToDate", "isDateRange", "showEdgeDates", "fullMonthName", "showHeader", "slideDuration", "tabbableCellId", "transitionName", "translation", "useUtc", "view", "yearPickerRange", "onPageChange", "onSelect", "onSetView"])), e.$slots.calendarFooter ? (r(), a("div", hs, [y(e.$slots, "calendarFooter")])) : m("v-if", !0)]))]), _: 3 })], 34), [[n1, i.isOpen]])]), _: 3 })])) : m("v-if", !0)], 42, Cs);
|
|
8987
8989
|
}, i2.__scopeId = "data-v-0090dd57", i2.__file = "src/BIMDataComponents/BIMDataDatePicker/BIMDataDatePicker.vue";
|
|
8988
8990
|
var o5 = { 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: (e) => ["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(e) } }, computed: { classes() {
|
|
8989
8991
|
return `${this.color}`;
|
|
@@ -10631,14 +10633,14 @@ const Ib = {
|
|
|
10631
10633
|
const o = G1(), l = F(
|
|
10632
10634
|
() => !e.topic
|
|
10633
10635
|
), s = F(
|
|
10634
|
-
() => Math.max(0, ...e.topics.map((
|
|
10636
|
+
() => Math.max(0, ...e.topics.map(($) => $.index)) + 1
|
|
10635
10637
|
), i = k(""), c = k(null), u = k(null), d = k(null), C = k(null), f = k(null), b = k(null), M = k(""), v = k([]), I = k([]), _ = k([]), x = k([]), R = k([]), T = F(
|
|
10636
|
-
() => I.value.concat(_.value).filter((
|
|
10638
|
+
() => I.value.concat(_.value).filter(($) => !R.value.some((z) => z.guid === $.guid)).filter(($) => $.snapshot)
|
|
10637
10639
|
), Y = k(!1), a1 = k(!1), e1 = k(!1);
|
|
10638
10640
|
i1(
|
|
10639
10641
|
() => e.topic,
|
|
10640
|
-
(
|
|
10641
|
-
l.value || (i.value =
|
|
10642
|
+
($) => {
|
|
10643
|
+
l.value || (i.value = $.title || "", c.value = $.topic_type || null, u.value = $.priority || null, d.value = $.topic_status || null, C.value = $.stage || null, f.value = $.assigned_to || null, b.value = $.due_date, M.value = $.description || "", v.value = $.labels || [], I.value = $.viewpoints || []);
|
|
10642
10644
|
},
|
|
10643
10645
|
{ immediate: !0 }
|
|
10644
10646
|
);
|
|
@@ -10663,19 +10665,19 @@ const Ib = {
|
|
|
10663
10665
|
topicType: c,
|
|
10664
10666
|
viewpointsToDisplay: T,
|
|
10665
10667
|
// Methods
|
|
10666
|
-
addViewpoint: (
|
|
10667
|
-
_.value.push(
|
|
10668
|
+
addViewpoint: ($) => {
|
|
10669
|
+
_.value.push($);
|
|
10668
10670
|
},
|
|
10669
|
-
delViewpoint: (
|
|
10670
|
-
if (
|
|
10671
|
-
R.value.push(
|
|
10671
|
+
delViewpoint: ($) => {
|
|
10672
|
+
if ($.guid)
|
|
10673
|
+
R.value.push($);
|
|
10672
10674
|
else {
|
|
10673
|
-
let z = _.value.indexOf(
|
|
10675
|
+
let z = _.value.indexOf($);
|
|
10674
10676
|
_.value.splice(z, 1);
|
|
10675
10677
|
}
|
|
10676
10678
|
},
|
|
10677
10679
|
submit: async () => {
|
|
10678
|
-
var
|
|
10680
|
+
var $, z;
|
|
10679
10681
|
if (!i.value) {
|
|
10680
10682
|
e1.value = !0;
|
|
10681
10683
|
return;
|
|
@@ -10707,7 +10709,7 @@ const Ib = {
|
|
|
10707
10709
|
(U) => U.pins = e.topicAnnotations
|
|
10708
10710
|
);
|
|
10709
10711
|
const q = {
|
|
10710
|
-
guid: (
|
|
10712
|
+
guid: ($ = e.topic) == null ? void 0 : $.guid,
|
|
10711
10713
|
models: ((z = e.topic) == null ? void 0 : z.models) || e.topicModels,
|
|
10712
10714
|
title: i.value,
|
|
10713
10715
|
topic_type: c.value,
|
|
@@ -10867,7 +10869,7 @@ function Nb(e, n, o, l, s, i) {
|
|
|
10867
10869
|
errorMessage: e.$t("BcfComponents.BcfTopicForm.titleErrorMessage"),
|
|
10868
10870
|
modelValue: l.topicTitle,
|
|
10869
10871
|
"onUpdate:modelValue": n[4] || (n[4] = (T) => l.topicTitle = T),
|
|
10870
|
-
onKeyup: S(
|
|
10872
|
+
onKeyup: S(N(l.submit, ["stop"]), ["enter"])
|
|
10871
10873
|
}, null, 8, ["placeholder", "error", "errorMessage", "modelValue", "onKeyup"]),
|
|
10872
10874
|
p(v, {
|
|
10873
10875
|
width: "100%",
|
|
@@ -13125,7 +13127,7 @@ const mh = {
|
|
|
13125
13127
|
} finally {
|
|
13126
13128
|
i.value = !1;
|
|
13127
13129
|
}
|
|
13128
|
-
},
|
|
13130
|
+
}, $ = (E) => {
|
|
13129
13131
|
l ? l.globalContext.modals.pushModal(Z5, { topic: E }) : n("view-comment-snapshot", E);
|
|
13130
13132
|
};
|
|
13131
13133
|
let z, q;
|
|
@@ -13166,7 +13168,7 @@ const mh = {
|
|
|
13166
13168
|
submitUpdate: B,
|
|
13167
13169
|
toggleMenu: d,
|
|
13168
13170
|
loadViewpoint: b,
|
|
13169
|
-
openTopicSnapshot:
|
|
13171
|
+
openTopicSnapshot: $,
|
|
13170
13172
|
unhighlightViewer: Y
|
|
13171
13173
|
};
|
|
13172
13174
|
}
|
|
@@ -13456,9 +13458,9 @@ const Oh = {
|
|
|
13456
13458
|
v.value.length === 1 ? await R(v.value[0]) : v.value.length > 1 && (M.value = !0);
|
|
13457
13459
|
}, R = async ({ id: w, viewer: O }) => {
|
|
13458
13460
|
_(O), M.value = !1;
|
|
13459
|
-
const [
|
|
13461
|
+
const [$] = Object.entries(z1).find(([, z]) => z.plugin === w);
|
|
13460
13462
|
d.value = Object.assign(await O.getViewpoint(), {
|
|
13461
|
-
[P1]:
|
|
13463
|
+
[P1]: $,
|
|
13462
13464
|
[U1]: O.getLoadedModels().map((z) => z.id).join(",")
|
|
13463
13465
|
});
|
|
13464
13466
|
}, T = () => {
|
|
@@ -13493,7 +13495,7 @@ const Oh = {
|
|
|
13493
13495
|
return R5(() => {
|
|
13494
13496
|
if (b) {
|
|
13495
13497
|
const w = () => Object.entries(f()).map(
|
|
13496
|
-
([O,
|
|
13498
|
+
([O, $]) => $.map((z, q) => ({ key: `${O}-${q}`, id: O, index: q, viewer: z }))
|
|
13497
13499
|
).flat();
|
|
13498
13500
|
v.value = w(), B = b.globalContext.hub.on("plugin-created", () => {
|
|
13499
13501
|
v.value = w();
|