@arbocollab/arbo-web-scene 0.26.9-alpha.18 → 0.26.9-alpha.19

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/es/index.es.js CHANGED
@@ -11928,13 +11928,13 @@ const uYt = (e, t) => {
11928
11928
  (s = (o = e == null ? void 0 : e.config) == null ? void 0 : o.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", a);
11929
11929
  }
11930
11930
  return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = i, { handleSetTab: i };
11931
- }, cYt = "0.26.9-alpha.18", dYt = {
11931
+ }, cYt = "0.26.9-alpha.19", dYt = {
11932
11932
  "@arbocollab/arbo-chart-component": "1.0.1",
11933
11933
  "@arbocollab/arbo-comment-utils": "1.0.1",
11934
11934
  "@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@1.0.14",
11935
11935
  "@arbocollab/arbo-media-player-component": "0.0.38",
11936
11936
  "@arbocollab/arbo-table-component": "1.0.1",
11937
- "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.378-alpha.40",
11937
+ "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.378-alpha.41",
11938
11938
  "@arbocollab/arbo-calendar-component": "0.0.51",
11939
11939
  "@arbocollab/arbo-metric-table": "npm:@arbocollab/arbo-metric-table@0.0.24",
11940
11940
  "@arbocollab/ag-grid-ui-components": "0.0.53",
@@ -30457,7 +30457,7 @@ _dt((e) => ({
30457
30457
  return iBe(t, n) || e.has(t, n);
30458
30458
  }
30459
30459
  }));
30460
- const Xnn = "0.0.378-alpha.40", Jnn = {
30460
+ const Xnn = "0.0.378-alpha.41", Jnn = {
30461
30461
  version: Xnn
30462
30462
  }, Sdt = "mediaCachingDB", RE = "mediaStore", Bee = "__cache_flag__", Qnn = 1, Edt = !1, Vee = Jnn.version;
30463
30463
  let NV = null, lX = !1, uX = null, ern = class {
@@ -136721,7 +136721,8 @@ const Rhe = (e, t) => e === _c.ALLOW ? t : e === _c.DISABLED ? "Parent folder is
136721
136721
  isSceneHubComment: { type: Boolean, default: !0 },
136722
136722
  isReviewComment: { type: Boolean, default: !1 },
136723
136723
  readonly: { type: Boolean },
136724
- appendTo: { default: "parent" }
136724
+ appendTo: { default: "parent" },
136725
+ canOpenReview: { type: Boolean, default: !1 }
136725
136726
  },
136726
136727
  emits: ["open-popup", "close-popup", "delete", "copy-link", "show", "hide"],
136727
136728
  setup(e, { expose: t, emit: n }) {
@@ -136794,7 +136795,7 @@ const Rhe = (e, t) => e === _c.ALLOW ? t : e === _c.DISABLED ? "Parent folder is
136794
136795
  ref_key: "popupRef",
136795
136796
  ref: o
136796
136797
  }, [
136797
- e.isReviewComment ? (L(), Ke(z(Ln), {
136798
+ e.isReviewComment && e.canOpenReview ? (L(), Ke(z(Ln), {
136798
136799
  key: 0,
136799
136800
  variant: ["menu-item"],
136800
136801
  size: "small",
@@ -136917,7 +136918,7 @@ const Rhe = (e, t) => e === _c.ALLOW ? t : e === _c.DISABLED ? "Parent folder is
136917
136918
  ], 512)
136918
136919
  ], 512));
136919
136920
  }
136920
- }), xAe = /* @__PURE__ */ qn(Wtr, [["__scopeId", "data-v-15b29d60"]]), QCt = "account.last_prefered_timezone", Uk = (e) => {
136921
+ }), xAe = /* @__PURE__ */ qn(Wtr, [["__scopeId", "data-v-576896e9"]]), QCt = "account.last_prefered_timezone", Uk = (e) => {
136921
136922
  if (!e)
136922
136923
  return;
136923
136924
  const t = (e == null ? void 0 : e.name) ?? e.display_name ?? "", n = e.initial || t.split(" ").filter((r) => r.length > 0).map((r) => r[0]).join("");
@@ -239427,13 +239428,13 @@ const Dni = (e) => {
239427
239428
  ref: _,
239428
239429
  key: C.header,
239429
239430
  onOpenPopup: J[7] || (J[7] = (Ze) => x.value = !0),
239430
- onClosePopup: J[8] || (J[8] = (Ze) => x.value = !1),
239431
239431
  "is-review-comment": z(G),
239432
239432
  "is-scene-hub-comment": !z(G) || !e.commentPermission.canOpenReview,
239433
+ "can-open-review": e.commentPermission.canOpenReview,
239433
239434
  readonly: !m.value,
239434
239435
  onDelete: $e,
239435
239436
  onCopyLink: Xe
239436
- }, null, 8, ["is-review-comment", "is-scene-hub-comment", "readonly"]))
239437
+ }, null, 8, ["is-review-comment", "is-scene-hub-comment", "can-open-review", "readonly"]))
239437
239438
  ]),
239438
239439
  "parent-comment": Ie(() => {
239439
239440
  var Ze, it, ft, vt, mt, jt;
@@ -239441,7 +239442,7 @@ const Dni = (e) => {
239441
239442
  z(H) ? (L(), te("div", {
239442
239443
  key: 0,
239443
239444
  class: "comment-parent",
239444
- onClick: J[10] || (J[10] = (yn) => T("redirectToComment", String(r.commentData.parent_id), yn))
239445
+ onClick: J[9] || (J[9] = (yn) => T("redirectToComment", String(r.commentData.parent_id), yn))
239445
239446
  }, [
239446
239447
  (L(), Ke(bet, en({
239447
239448
  key: C.main
@@ -239463,7 +239464,7 @@ const Dni = (e) => {
239463
239464
  "data-scene-id": (jt = r.commentData) == null ? void 0 : jt.item_id,
239464
239465
  "search-text": r.searchText,
239465
239466
  "collapsed-height": 50,
239466
- onShowPopup: J[9] || (J[9] = (yn) => pe.value = !0),
239467
+ onShowPopup: J[8] || (J[8] = (yn) => pe.value = !0),
239467
239468
  getUserBasicInfo: e.getUserBasicInfo
239468
239469
  }, null, 8, ["raw-html", "attachTo", "comment-config", "comment-permission", "data-comment-id", "data-scene-id", "search-text", "getUserBasicInfo"]))
239469
239470
  ])) : Be("", !0)
@@ -239483,7 +239484,7 @@ const Dni = (e) => {
239483
239484
  "data-scene-id": (it = r.commentData) == null ? void 0 : it.item_id,
239484
239485
  "search-text": r.searchText,
239485
239486
  "collapsed-height": 106,
239486
- onShowPopup: J[11] || (J[11] = (ft) => pe.value = !0),
239487
+ onShowPopup: J[10] || (J[10] = (ft) => pe.value = !0),
239487
239488
  getUserBasicInfo: e.getUserBasicInfo
239488
239489
  }, null, 8, ["raw-html", "attachTo", "comment-config", "comment-permission", "data-comment-id", "data-scene-id", "search-text", "getUserBasicInfo"]))
239489
239490
  ];
@@ -239513,7 +239514,7 @@ const Dni = (e) => {
239513
239514
  Se(z(En), { src: "ChevronRight" })
239514
239515
  ]),
239515
239516
  default: Ie(() => [
239516
- J[16] || (J[16] = Mt(wt("Reply") + " ", -1))
239517
+ J[15] || (J[15] = Mt(wt("Reply") + " ", -1))
239517
239518
  ]),
239518
239519
  _: 1
239519
239520
  })) : (L(), Ke(z(Ln), {
@@ -239526,7 +239527,7 @@ const Dni = (e) => {
239526
239527
  Se(z(En), { src: "ChevronRight" })
239527
239528
  ]),
239528
239529
  default: Ie(() => [
239529
- J[17] || (J[17] = Mt(" View ", -1))
239530
+ J[16] || (J[16] = Mt(" View ", -1))
239530
239531
  ]),
239531
239532
  _: 1
239532
239533
  }))
@@ -239556,7 +239557,7 @@ const Dni = (e) => {
239556
239557
  var Ze;
239557
239558
  return [
239558
239559
  ce.resolved && ce.user ? (L(), te("span", Oni, [
239559
- J[15] || (J[15] = Mt(" Resolved by ", -1)),
239560
+ J[14] || (J[14] = Mt(" Resolved by ", -1)),
239560
239561
  dt((L(), te("span", Ini, [
239561
239562
  Mt(wt((Ze = ce.user) == null ? void 0 : Ze.name), 1)
239562
239563
  ])), [
@@ -239594,12 +239595,12 @@ const Dni = (e) => {
239594
239595
  (L(), Ke(fe, en({
239595
239596
  key: C.main,
239596
239597
  modelValue: z(a),
239597
- "onUpdate:modelValue": J[12] || (J[12] = (Ze) => zr(a) ? a.value = Ze : null)
239598
+ "onUpdate:modelValue": J[11] || (J[11] = (Ze) => zr(a) ? a.value = Ze : null)
239598
239599
  }, Y.value, {
239599
239600
  mode: "edit",
239600
- onDiscard: J[13] || (J[13] = (Ze) => k(F)),
239601
+ onDiscard: J[12] || (J[12] = (Ze) => k(F)),
239601
239602
  onOnError: ue,
239602
- onSave: J[14] || (J[14] = (Ze) => Ve(Ze, X))
239603
+ onSave: J[13] || (J[13] = (Ze) => Ve(Ze, X))
239603
239604
  }), null, 16, ["modelValue"]))
239604
239605
  ]),
239605
239606
  key: "3"
@@ -239608,7 +239609,7 @@ const Dni = (e) => {
239608
239609
  ], 8, Ani);
239609
239610
  };
239610
239611
  }
239611
- }), Mni = /* @__PURE__ */ qn(Pni, [["__scopeId", "data-v-26e2778b"]]), Nni = /* @__PURE__ */ ct({
239612
+ }), Mni = /* @__PURE__ */ qn(Pni, [["__scopeId", "data-v-bbe3ee07"]]), Nni = /* @__PURE__ */ ct({
239612
239613
  __name: "CommentSkeleton",
239613
239614
  setup(e, { expose: t }) {
239614
239615
  t();
@@ -240175,12 +240176,10 @@ const IPt = /* @__PURE__ */ gi(Nni, [["render", Uni], ["__scopeId", "data-v-3546
240175
240176
  has_interact_comment_permission: 0
240176
240177
  };
240177
240178
  }), Ve = W(() => {
240178
- var Ge, at, Ze, it, ft, vt, mt, jt, yn, bn, zt, ln;
240179
+ var Ge, at, Ze, it, ft, vt, mt, jt, yn, bn, zt;
240179
240180
  if (!k.value)
240180
240181
  return console.error("Comment data is undefined"), {};
240181
- const $e = Hl(), { sceneId: Re, takeId: Xe } = _r($e), rt = ((Ge = k.value) == null ? void 0 : Ge.ws_creator.id) == l.value, nt = ue.value.has_interact_comment_permission === 1;
240182
- (at = k.value) == null || at.is_lock_item;
240183
- const Le = !!((Ze = k.value) != null && Ze.item_rendition_id), J = !!((it = k.value) != null && it.item_rendition_id), fe = {
240182
+ const $e = Hl(), { sceneId: Re, takeId: Xe } = _r($e), rt = ((Ge = k.value) == null ? void 0 : Ge.ws_creator.id) == l.value, nt = ue.value.has_interact_comment_permission === 1, Le = !!((at = k.value) != null && at.item_rendition_id), J = !!((Ze = k.value) != null && Ze.item_rendition_id), fe = {
240184
240183
  canEdit: rt && ue.value.has_edit_comment_permission === 1 && !Le,
240185
240184
  canDelete: ue.value.has_delete_comment_permission === 1,
240186
240185
  canAssign: nt,
@@ -240193,25 +240192,25 @@ const IPt = /* @__PURE__ */ gi(Nni, [["render", Uni], ["__scopeId", "data-v-3546
240193
240192
  };
240194
240193
  return {
240195
240194
  disabled: !1,
240196
- readonly: K.value || ((ft = k.value) == null ? void 0 : ft.is_lock_item) === 1,
240195
+ readonly: K.value || ((it = k.value) == null ? void 0 : it.is_lock_item) === 1,
240197
240196
  isReplying: F.value == k.value.id,
240198
240197
  selected: !1,
240199
240198
  searchText: X.value,
240200
240199
  isResolvedList: ie.value,
240201
240200
  currentUser: {
240202
- id: ((vt = N.value) == null ? void 0 : vt.id) || "",
240203
- name: ((mt = N.value) == null ? void 0 : mt.first_name) || ""
240201
+ id: ((ft = N.value) == null ? void 0 : ft.id) || "",
240202
+ name: ((vt = N.value) == null ? void 0 : vt.first_name) || ""
240204
240203
  },
240205
240204
  commentConfig: {
240206
- renditionId: ((jt = k.value) == null ? void 0 : jt.item_rendition_id) || void 0,
240205
+ renditionId: ((mt = k.value) == null ? void 0 : mt.item_rendition_id) || void 0,
240207
240206
  sceneId: Re.value || "",
240208
240207
  entityId: Xe.value || "",
240209
240208
  wsCode: Ec(),
240210
- commentId: ((yn = k.value) == null ? void 0 : yn.id) || ""
240209
+ commentId: ((jt = k.value) == null ? void 0 : jt.id) || ""
240211
240210
  },
240212
240211
  componentConfig: {
240213
- isReviewComment: !!((bn = k.value) != null && bn.item_rendition_id),
240214
- isMyComment: ((zt = k.value) == null ? void 0 : zt.ws_creator.user_id) == ((ln = N.value) == null ? void 0 : ln.id),
240212
+ isReviewComment: !!((yn = k.value) != null && yn.item_rendition_id),
240213
+ isMyComment: ((bn = k.value) == null ? void 0 : bn.ws_creator.user_id) == ((zt = N.value) == null ? void 0 : zt.id),
240215
240214
  onSceneHub: !0
240216
240215
  },
240217
240216
  commentPermission: fe,
@@ -240224,10 +240223,10 @@ const IPt = /* @__PURE__ */ gi(Nni, [["render", Uni], ["__scopeId", "data-v-3546
240224
240223
  replaceReaction: m,
240225
240224
  resolveComment: g,
240226
240225
  unResolveComment: b,
240227
- deleteComment: async (...ae) => {
240228
- var Je;
240229
- const Ae = await w(...ae);
240230
- return A("commentDeleted", (Je = k.value) == null ? void 0 : Je.id), Ae;
240226
+ deleteComment: async (...ln) => {
240227
+ var Ae;
240228
+ const ae = await w(...ln);
240229
+ return A("commentDeleted", (Ae = k.value) == null ? void 0 : Ae.id), ae;
240231
240230
  },
240232
240231
  updateComment: _,
240233
240232
  uploadFunction: C,
@@ -345651,6 +345650,7 @@ const z4i = /* @__PURE__ */ gi(d4i, [["render", H4i], ["__scopeId", "data-v-bd81
345651
345650
  class: "loader"
345652
345651
  };
345653
345652
  function J4i(e, t, n, r, i, a) {
345653
+ var c, d;
345654
345654
  const o = ni("TessNonInteractiveChip"), s = ni("ArboTooltip"), l = ni("TessReviewFileCard"), u = ni("ArboButton");
345655
345655
  return L(), te("div", q4i, [
345656
345656
  he("div", G4i, [
@@ -345684,29 +345684,29 @@ function J4i(e, t, n, r, i, a) {
345684
345684
  he("div", Y4i, [
345685
345685
  Se(r.VueDraggableNext, {
345686
345686
  modelValue: r.renditionAttachmentIds,
345687
- "onUpdate:modelValue": t[0] || (t[0] = (c) => r.renditionAttachmentIds = c),
345687
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => r.renditionAttachmentIds = h),
345688
345688
  "item-key": "id",
345689
345689
  class: "flex flex-col gap-2",
345690
- disabled: !n.permission.media.has_create_rendition_file_permission,
345690
+ disabled: !((c = n.permission) != null && c.media.has_create_rendition_file_permission),
345691
345691
  onChange: r.updateSorting
345692
345692
  }, {
345693
345693
  default: Ie(() => [
345694
345694
  (L(!0), te(
345695
345695
  Vt,
345696
345696
  null,
345697
- pn(r.renditionAttachmentIds, (c) => {
345698
- var d, h;
345699
- return L(), te("div", { key: c }, [
345697
+ pn(r.renditionAttachmentIds, (h) => {
345698
+ var f, m, g, b;
345699
+ return L(), te("div", { key: h }, [
345700
345700
  Se(l, {
345701
- "disable-drag": !n.permission.media.has_edit_rendition_permission,
345702
- "read-only": !n.permission.media.has_edit_rendition_permission,
345703
- class: ve({ selected: r.renditionAttachments[c].id == n.activeItem }),
345704
- "thumbnail-url": (d = r.renditionAttachments[c]) == null ? void 0 : d.thumbnail,
345705
- "thumbnail-name": (h = r.renditionAttachments[c]) == null ? void 0 : h.name,
345701
+ "disable-drag": !((f = n.permission) != null && f.media.has_edit_rendition_permission),
345702
+ "read-only": !((m = n.permission) != null && m.media.has_edit_rendition_permission),
345703
+ class: ve({ selected: r.renditionAttachments[h].id == n.activeItem }),
345704
+ "thumbnail-url": (g = r.renditionAttachments[h]) == null ? void 0 : g.thumbnail,
345705
+ "thumbnail-name": (b = r.renditionAttachments[h]) == null ? void 0 : b.name,
345706
345706
  "shared-styles": { "--review-card--background": "#F3F5F8" },
345707
- onClick: (f) => r.handleClickCard(c),
345707
+ onClick: (w) => r.handleClickCard(h),
345708
345708
  onDeleteCard: () => {
345709
- r.handleRemoveFile(c);
345709
+ r.handleRemoveFile(h);
345710
345710
  }
345711
345711
  }, null, 8, ["disable-drag", "read-only", "class", "thumbnail-url", "thumbnail-name", "onClick", "onDeleteCard"])
345712
345712
  ]);
@@ -345722,7 +345722,7 @@ function J4i(e, t, n, r, i, a) {
345722
345722
  he("div", Z4i, [
345723
345723
  n.isLoading ? (L(), te("div", X4i)) : Be("v-if", !0)
345724
345724
  ]),
345725
- n.permission.media.has_create_rendition_file_permission ? (L(), Ke(u, en({ key: 0 }, {
345725
+ (d = n.permission) != null && d.media.has_create_rendition_file_permission ? (L(), Ke(u, en({ key: 0 }, {
345726
345726
  prefixIcon: "Plus",
345727
345727
  type: "secondary",
345728
345728
  class: "actions-item",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbocollab/arbo-web-scene",
3
3
  "description": "Arbo Web Scene",
4
- "version": "0.26.9-alpha.18",
4
+ "version": "0.26.9-alpha.19",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {