@26lights/orcha 0.42.77 → 0.42.78

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/orcha.es.js CHANGED
@@ -25619,6 +25619,8 @@ const l1e = ["aria-label"], c1e = { class: "ao-file-preview__container" }, u1e =
25619
25619
  }
25620
25620
  i.value = !0;
25621
25621
  try {
25622
+ if (!n.loadPreview)
25623
+ throw new Error("Attachment preview loader is missing");
25622
25624
  const I = await n.loadPreview(T);
25623
25625
  if (R !== a)
25624
25626
  return;
@@ -26608,7 +26610,7 @@ const L1e = { class: "ao-activity-details" }, N1e = { class: "ao-activity-detail
26608
26610
  }),
26609
26611
  _: 3
26610
26612
  }),
26611
- c.value !== null && n.loadAttachmentPreview ? (k(), Y(w1e, {
26613
+ c.value !== null ? (k(), Y(w1e, {
26612
26614
  key: 0,
26613
26615
  attachments: t.activity.attachments || [],
26614
26616
  "current-index": c.value,
@@ -30269,7 +30271,8 @@ const Ame = { class: "ao-feed" }, $me = { class: "ao-feed__filters" }, Dme = { c
30269
30271
  isTaskCheckable: { type: Function, default: void 0 },
30270
30272
  isEditable: { type: [Boolean, String] },
30271
30273
  attachmentEnabled: { type: Boolean, default: !0 },
30272
- timeTrackingData: {}
30274
+ timeTrackingData: {},
30275
+ loadAttachmentPreview: {}
30273
30276
  },
30274
30277
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "update:showsOnlyNonAssigned", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast", "startTimer"],
30275
30278
  setup(t, { emit: e }) {
@@ -30509,6 +30512,7 @@ const Ame = { class: "ao-feed" }, $me = { class: "ao-feed__filters" }, Dme = { c
30509
30512
  "attachment-enabled": t.attachmentEnabled,
30510
30513
  projects: m.value,
30511
30514
  "time-tracking-data": t.timeTrackingData,
30515
+ "load-attachment-preview": r.loadAttachmentPreview,
30512
30516
  onClose: G[7] || (G[7] = () => a(null, null)),
30513
30517
  "onUpdate:activity": g,
30514
30518
  onAddSubtask: T,
@@ -30525,7 +30529,7 @@ const Ame = { class: "ao-feed" }, $me = { class: "ao-feed__filters" }, Dme = { c
30525
30529
  ye(W.$slots, "activityDetailsBody", Ss(Ts(se)))
30526
30530
  ]),
30527
30531
  _: 3
30528
- }, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "time-tracking-data"])) : U("", !0)
30532
+ }, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "time-tracking-data", "load-attachment-preview"])) : U("", !0)
30529
30533
  ]))
30530
30534
  ]);
30531
30535
  };