@26lights/orcha 0.20.2 → 0.21.0

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
@@ -1,6 +1,6 @@
1
- import { defineComponent as K, openBlock as c, createBlock as R, unref as q, mergeProps as Ee, createElementBlock as m, createElementVNode as f, pushScopeId as ls, popScopeId as rs, createStaticVNode as us, computed as b, resolveDynamicComponent as at, normalizeClass as x, renderSlot as X, toDisplayString as Z, createCommentVNode as k, ref as J, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as ds, withCtx as U, createTextVNode as e1, createVNode as T, normalizeStyle as ua, withModifiers as _e, createSlots as t1, Fragment as ve, renderList as ye, onMounted as Dt, onBeforeUnmount as cs, onUnmounted as da, toRefs as $e, getCurrentInstance as st, toRef as vt, normalizeProps as fs, guardReactiveProps as vs, onUpdated as ps, withDirectives as et, vModelText as Et, vModelCheckbox as x1, Teleport as It, resolveComponent as hs, getCurrentScope as ms, onScopeDispose as Cs, provide as _s, toHandlerKey as gs } from "vue";
1
+ import { defineComponent as K, openBlock as c, createBlock as R, unref as q, mergeProps as Ee, createElementBlock as m, createElementVNode as f, pushScopeId as ls, popScopeId as rs, createStaticVNode as us, computed as b, resolveDynamicComponent as Xe, normalizeClass as x, renderSlot as X, toDisplayString as Z, createCommentVNode as k, ref as J, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as ds, withCtx as U, createTextVNode as e1, createVNode as T, normalizeStyle as ua, withModifiers as _e, createSlots as t1, Fragment as ve, renderList as ye, onMounted as Dt, onBeforeUnmount as cs, onUnmounted as da, toRefs as $e, getCurrentInstance as st, toRef as vt, normalizeProps as fs, guardReactiveProps as vs, onUpdated as ps, withDirectives as tt, vModelText as Et, vModelCheckbox as x1, Teleport as It, resolveComponent as hs, getCurrentScope as ms, onScopeDispose as Cs, provide as _s, toHandlerKey as gs } from "vue";
2
2
  import { RouterView as ys } from "vue-router";
3
- import Xe from "vuedraggable";
3
+ import Qe from "vuedraggable";
4
4
  const o8 = /* @__PURE__ */ K({
5
5
  __name: "AoTemplates",
6
6
  props: {
@@ -1154,7 +1154,7 @@ const od = /* @__PURE__ */ P(td, [["render", id]]), ld = /* @__PURE__ */ Object.
1154
1154
  },
1155
1155
  setup(a) {
1156
1156
  const e = a, t = b(() => ld[e.name]);
1157
- return (n, s) => (c(), R(at(t.value), {
1157
+ return (n, s) => (c(), R(Xe(t.value), {
1158
1158
  class: x(["ao-icon", `ao-icon--${n.size}`])
1159
1159
  }, null, 8, ["class"]));
1160
1160
  }
@@ -1266,7 +1266,7 @@ const Ce = /* @__PURE__ */ K({
1266
1266
  ($) => {
1267
1267
  $ || v();
1268
1268
  }
1269
- ), ($, A) => (c(), R(at(r.value), Ee({
1269
+ ), ($, A) => (c(), R(Xe(r.value), Ee({
1270
1270
  id: $.id,
1271
1271
  ref_key: "target",
1272
1272
  ref: n,
@@ -1332,7 +1332,7 @@ const fd = {
1332
1332
  const t = (n) => {
1333
1333
  e("update:title", n);
1334
1334
  };
1335
- return (n, s) => (c(), R(at(n.tagName), {
1335
+ return (n, s) => (c(), R(Xe(n.tagName), {
1336
1336
  class: x(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
1337
1337
  }, {
1338
1338
  default: U(() => [
@@ -1406,7 +1406,7 @@ const E1 = /* @__PURE__ */ K({
1406
1406
  ]),
1407
1407
  style: ua(s.rawColor ? { "--ao-tag-bg": s.rawColor } : {})
1408
1408
  }, [
1409
- (c(), R(at(t.value), Ee({ class: "ao-tag__label" }, n.value, {
1409
+ (c(), R(Xe(t.value), Ee({ class: "ao-tag__label" }, n.value, {
1410
1410
  onClick: o[0] || (o[0] = (i) => s.$emit("click", i))
1411
1411
  }), {
1412
1412
  default: U(() => [
@@ -2136,11 +2136,11 @@ var ct = {
2136
2136
  return Q1(i);
2137
2137
  case "XXXX":
2138
2138
  case "XX":
2139
- return Je(i);
2139
+ return et(i);
2140
2140
  case "XXXXX":
2141
2141
  case "XXX":
2142
2142
  default:
2143
- return Je(i, ":");
2143
+ return et(i, ":");
2144
2144
  }
2145
2145
  },
2146
2146
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2151,11 +2151,11 @@ var ct = {
2151
2151
  return Q1(i);
2152
2152
  case "xxxx":
2153
2153
  case "xx":
2154
- return Je(i);
2154
+ return et(i);
2155
2155
  case "xxxxx":
2156
2156
  case "xxx":
2157
2157
  default:
2158
- return Je(i, ":");
2158
+ return et(i, ":");
2159
2159
  }
2160
2160
  },
2161
2161
  // Timezone (GMT)
@@ -2168,7 +2168,7 @@ var ct = {
2168
2168
  return "GMT" + X1(i, ":");
2169
2169
  case "OOOO":
2170
2170
  default:
2171
- return "GMT" + Je(i, ":");
2171
+ return "GMT" + et(i, ":");
2172
2172
  }
2173
2173
  },
2174
2174
  // Timezone (specific non-location)
@@ -2181,7 +2181,7 @@ var ct = {
2181
2181
  return "GMT" + X1(i, ":");
2182
2182
  case "zzzz":
2183
2183
  default:
2184
- return "GMT" + Je(i, ":");
2184
+ return "GMT" + et(i, ":");
2185
2185
  }
2186
2186
  },
2187
2187
  // Seconds timestamp
@@ -2207,9 +2207,9 @@ function Q1(a, e) {
2207
2207
  var t = a > 0 ? "-" : "+";
2208
2208
  return t + le(Math.abs(a) / 60, 2);
2209
2209
  }
2210
- return Je(a, e);
2210
+ return et(a, e);
2211
2211
  }
2212
- function Je(a, e) {
2212
+ function et(a, e) {
2213
2213
  var t = e || "", n = a > 0 ? "-" : "+", s = Math.abs(a), o = le(Math.floor(s / 60), 2), i = le(s % 60, 2);
2214
2214
  return n + o + t + i;
2215
2215
  }
@@ -3805,7 +3805,7 @@ const B0 = { class: "ao-page-header" }, N0 = { class: "ao-page-header-main" }, R
3805
3805
  const U0 = ["type"], j0 = {
3806
3806
  key: 0,
3807
3807
  class: "ao-button-card__label"
3808
- }, Qe = /* @__PURE__ */ K({
3808
+ }, Je = /* @__PURE__ */ K({
3809
3809
  __name: "AoButtonCard",
3810
3810
  props: {
3811
3811
  label: { default: () => "" },
@@ -3957,7 +3957,7 @@ const W0 = /* @__PURE__ */ K({
3957
3957
  });
3958
3958
  }
3959
3959
  };
3960
- return (l, r) => l.phase ? (c(), R(q(Xe), {
3960
+ return (l, r) => l.phase ? (c(), R(q(Qe), {
3961
3961
  key: 0,
3962
3962
  "model-value": l.phase.milestones,
3963
3963
  class: "ao-templates__list",
@@ -3992,7 +3992,7 @@ const W0 = /* @__PURE__ */ K({
3992
3992
  ]),
3993
3993
  footer: U(() => [
3994
3994
  f("div", K0, [
3995
- T(Qe, {
3995
+ T(Je, {
3996
3996
  "icon-name": "AddBoxOutlineRounded",
3997
3997
  label: l.$t("template.milestones.add"),
3998
3998
  onClick: n
@@ -4047,7 +4047,7 @@ const W0 = /* @__PURE__ */ K({
4047
4047
  });
4048
4048
  }
4049
4049
  };
4050
- return (l, r) => l.milestone ? (c(), R(q(Xe), {
4050
+ return (l, r) => l.milestone ? (c(), R(q(Qe), {
4051
4051
  key: 0,
4052
4052
  "model-value": l.milestone.activities,
4053
4053
  title: l.$t("template.activities.title"),
@@ -4078,7 +4078,7 @@ const W0 = /* @__PURE__ */ K({
4078
4078
  ]),
4079
4079
  footer: U(() => [
4080
4080
  f("div", X0, [
4081
- T(Qe, {
4081
+ T(Je, {
4082
4082
  "icon-name": "AddBoxOutlineRounded",
4083
4083
  label: l.$t("template.activities.add"),
4084
4084
  onClick: n
@@ -4625,7 +4625,7 @@ function Va(a) {
4625
4625
  function y3(a, e, t) {
4626
4626
  return e === void 0 && (e = !1), !t || e && t !== we(a) ? !1 : e;
4627
4627
  }
4628
- function tt(a, e, t, n) {
4628
+ function at(a, e, t, n) {
4629
4629
  e === void 0 && (e = !1), t === void 0 && (t = !1);
4630
4630
  const s = a.getBoundingClientRect(), o = B1(a);
4631
4631
  let i = Ge(1);
@@ -4662,7 +4662,7 @@ function b3(a) {
4662
4662
  }, l = Ge(1);
4663
4663
  const r = Ge(0);
4664
4664
  if ((s || !s && n !== "fixed") && ((xe(t) !== "body" || Nt(o)) && (i = c1(t)), Pe(t))) {
4665
- const d = tt(t);
4665
+ const d = at(t);
4666
4666
  l = pt(t), r.x = d.x + t.clientLeft, r.y = d.y + t.clientTop;
4667
4667
  }
4668
4668
  return {
@@ -4676,7 +4676,7 @@ function w3(a) {
4676
4676
  return Array.from(a.getClientRects());
4677
4677
  }
4678
4678
  function Da(a) {
4679
- return tt(Ze(a)).left + c1(a).scrollLeft;
4679
+ return at(Ze(a)).left + c1(a).scrollLeft;
4680
4680
  }
4681
4681
  function $3(a) {
4682
4682
  const e = Ze(a), t = c1(a), n = a.ownerDocument.body, s = Ae(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), o = Ae(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
@@ -4705,7 +4705,7 @@ function M3(a, e) {
4705
4705
  };
4706
4706
  }
4707
4707
  function k3(a, e) {
4708
- const t = tt(a, !0, e === "fixed"), n = t.top + a.clientTop, s = t.left + a.clientLeft, o = Pe(a) ? pt(a) : Ge(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = s * o.x, d = n * o.y;
4708
+ const t = at(a, !0, e === "fixed"), n = t.top + a.clientTop, s = t.left + a.clientLeft, o = Pe(a) ? pt(a) : Ge(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = s * o.x, d = n * o.y;
4709
4709
  return {
4710
4710
  width: i,
4711
4711
  height: l,
@@ -4770,7 +4770,7 @@ function S3(a) {
4770
4770
  return La(a);
4771
4771
  }
4772
4772
  function E3(a, e, t) {
4773
- const n = Pe(e), s = Ze(e), o = t === "fixed", i = tt(a, !0, o, e);
4773
+ const n = Pe(e), s = Ze(e), o = t === "fixed", i = at(a, !0, o, e);
4774
4774
  let l = {
4775
4775
  scrollLeft: 0,
4776
4776
  scrollTop: 0
@@ -4778,7 +4778,7 @@ function E3(a, e, t) {
4778
4778
  const r = Ge(0);
4779
4779
  if (n || !n && !o)
4780
4780
  if ((xe(e) !== "body" || Nt(s)) && (l = c1(e)), n) {
4781
- const d = tt(e, !0, o, e);
4781
+ const d = at(e, !0, o, e);
4782
4782
  r.x = d.x + e.clientLeft, r.y = d.y + e.clientTop;
4783
4783
  } else
4784
4784
  s && (r.x = Da(s));
@@ -4899,10 +4899,10 @@ function D3(a, e, t, n) {
4899
4899
  C && C.observe(e);
4900
4900
  })), t();
4901
4901
  }), d && !r && C.observe(d), C.observe(e));
4902
- let w, $ = r ? tt(a) : null;
4902
+ let w, $ = r ? at(a) : null;
4903
4903
  r && A();
4904
4904
  function A() {
4905
- const g = tt(a);
4905
+ const g = at(a);
4906
4906
  $ && (g.x !== $.x || g.y !== $.y || g.width !== $.width || g.height !== $.height) && t(), $ = g, w = requestAnimationFrame(A);
4907
4907
  }
4908
4908
  return t(), () => {
@@ -7024,7 +7024,7 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
7024
7024
  }, null, 8, ["avatar-url", "user-name"])) : k("", !0),
7025
7025
  f("div", P5, [
7026
7026
  f("div", B5, [
7027
- (c(), R(at(v.value), {
7027
+ (c(), R(Xe(v.value), {
7028
7028
  ref_key: "commentContent",
7029
7029
  ref: s,
7030
7030
  class: "ao-comment__content",
@@ -7142,7 +7142,7 @@ const j5 = {
7142
7142
  }, [
7143
7143
  f("label", q5, [
7144
7144
  f("span", z5, Z(u.$t("activity.comment.label")), 1),
7145
- et(f("textarea", {
7145
+ tt(f("textarea", {
7146
7146
  "onUpdate:modelValue": v[0] || (v[0] = (C) => i.value = C),
7147
7147
  rows: "4",
7148
7148
  class: "ao-field__textarea"
@@ -7390,7 +7390,7 @@ const K5 = {
7390
7390
  f("div", J5, [
7391
7391
  f("label", e7, [
7392
7392
  f("span", t7, Z(h.$t("activity.description.label")), 1),
7393
- et(f("textarea", {
7393
+ tt(f("textarea", {
7394
7394
  "onUpdate:modelValue": O[0] || (O[0] = (z) => s.value = z),
7395
7395
  readonly: !h.isEditable,
7396
7396
  rows: "4",
@@ -7411,7 +7411,7 @@ const K5 = {
7411
7411
  f("div", s7, [
7412
7412
  f("label", n7, [
7413
7413
  f("span", i7, Z(h.$t("activity.estimation.label")), 1),
7414
- et(f("input", {
7414
+ tt(f("input", {
7415
7415
  "onUpdate:modelValue": O[1] || (O[1] = (z) => o.value = z),
7416
7416
  readonly: !h.isEditable,
7417
7417
  class: "ao-field__input",
@@ -7431,7 +7431,7 @@ const K5 = {
7431
7431
  ]),
7432
7432
  f("label", l7, [
7433
7433
  f("span", r7, Z(h.$t("activity.important.label")), 1),
7434
- et(f("input", {
7434
+ tt(f("input", {
7435
7435
  "onUpdate:modelValue": O[2] || (O[2] = (z) => i.value = z),
7436
7436
  disabled: !h.isEditable,
7437
7437
  class: "ao-field__input",
@@ -7447,7 +7447,7 @@ const K5 = {
7447
7447
  ]),
7448
7448
  h.isTemplate !== !0 && h.activity.createdBy.id === h.userId ? (c(), m("label", d7, [
7449
7449
  f("span", c7, Z(h.$t("activity.private.label")), 1),
7450
- et(f("input", {
7450
+ tt(f("input", {
7451
7451
  "onUpdate:modelValue": O[3] || (O[3] = (z) => l.value = z),
7452
7452
  disabled: !h.isEditable,
7453
7453
  class: "ao-field__input",
@@ -7711,7 +7711,7 @@ const U7 = /* @__PURE__ */ K({
7711
7711
  e("update:rule", { ...t.rule, durationUnit: g });
7712
7712
  }
7713
7713
  }), A = b(() => Object.values($d));
7714
- return (g, y) => (c(), R(at(g.tagName), { class: "ao-rule-line" }, {
7714
+ return (g, y) => (c(), R(Xe(g.tagName), { class: "ao-rule-line" }, {
7715
7715
  default: U(() => [
7716
7716
  T(q(We), {
7717
7717
  modelValue: s.value,
@@ -7733,7 +7733,7 @@ const U7 = /* @__PURE__ */ K({
7733
7733
  "onUpdate:modelValue": y[3] || (y[3] = (L) => d.value = L),
7734
7734
  options: u.value
7735
7735
  }, null, 8, ["modelValue", "options"]),
7736
- et(f("input", {
7736
+ tt(f("input", {
7737
7737
  "onUpdate:modelValue": y[4] || (y[4] = (L) => w.value = L),
7738
7738
  type: "number",
7739
7739
  min: "0"
@@ -7797,7 +7797,7 @@ const j7 = { class: "ao-template-rules__body" }, Z7 = { class: "ao-template-rule
7797
7797
  onClose: () => n(i.id)
7798
7798
  }, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
7799
7799
  ]),
7800
- T(Qe, {
7800
+ T(Je, {
7801
7801
  label: s.$t("template.rules.add"),
7802
7802
  "icon-name": "Add",
7803
7803
  onClick: t
@@ -8086,7 +8086,7 @@ const q7 = {
8086
8086
  f("div", z7, [
8087
8087
  f("ol", W7, [
8088
8088
  f("li", Y7, [
8089
- T(q(Xe), {
8089
+ T(q(Qe), {
8090
8090
  "model-value": s.value.phases,
8091
8091
  class: "ao-templates__list",
8092
8092
  "item-key": "id",
@@ -8121,7 +8121,7 @@ const q7 = {
8121
8121
  }),
8122
8122
  footer: U(() => [
8123
8123
  f("div", K7, [
8124
- T(Qe, {
8124
+ T(Je, {
8125
8125
  "icon-name": "AddBoxOutlineRounded",
8126
8126
  label: I.$t("template.phases.add"),
8127
8127
  onClick: C
@@ -8215,7 +8215,7 @@ const Q7 = {
8215
8215
  tagName: { default: "div" }
8216
8216
  },
8217
8217
  setup(a) {
8218
- return (e, t) => (c(), R(at(e.tagName), {
8218
+ return (e, t) => (c(), R(Xe(e.tagName), {
8219
8219
  class: x(["ao-card", { "ao-card--clickable": e.isClickable }])
8220
8220
  }, {
8221
8221
  default: U(() => [
@@ -8470,7 +8470,7 @@ const m9 = { class: "ao-project-phase" }, C9 = {
8470
8470
  ]),
8471
8471
  f("div", g9, [
8472
8472
  f("div", y9, [
8473
- T(q(Xe), Ee({
8473
+ T(q(Qe), Ee({
8474
8474
  class: "ao-project-phase__milestones-list",
8475
8475
  list: o.value,
8476
8476
  disabled: !v.isEditable,
@@ -8497,7 +8497,7 @@ const m9 = { class: "ao-project-phase" }, C9 = {
8497
8497
  _: 1
8498
8498
  }, 16, ["list", "disabled"]),
8499
8499
  f("div", b9, [
8500
- v.isEditable ? (c(), R(Qe, {
8500
+ v.isEditable ? (c(), R(Je, {
8501
8501
  key: 0,
8502
8502
  label: v.$t("project.milestone.add"),
8503
8503
  class: "ao-project-phase__milestone-add",
@@ -8548,7 +8548,7 @@ const $9 = { class: "ao-project__phases" }, M9 = {
8548
8548
  e("addPhase", u);
8549
8549
  };
8550
8550
  return (u, v) => (c(), m("div", $9, [
8551
- T(q(Xe), {
8551
+ T(q(Qe), {
8552
8552
  class: "ao-project-phase__phases-list",
8553
8553
  "model-value": u.phases,
8554
8554
  "item-key": "id",
@@ -8572,7 +8572,7 @@ const $9 = { class: "ao-project__phases" }, M9 = {
8572
8572
  u.isEditable ? (c(), m("div", M9, [
8573
8573
  k9,
8574
8574
  f("div", A9, [
8575
- T(Qe, {
8575
+ T(Je, {
8576
8576
  label: u.$t("project.phases.add"),
8577
8577
  "icon-name": "Add",
8578
8578
  class: "ao-project-phase__add-phase",
@@ -8817,8 +8817,13 @@ const Ba = /* @__PURE__ */ P(D9, [["render", P9], ["__scopeId", "data-v-c0ae9237
8817
8817
  onUpdateComment: W,
8818
8818
  onRemoveComment: H
8819
8819
  }, {
8820
- default: U(() => [
8821
- X(E.$slots, "activityDetailsBody")
8820
+ default: U(({ Component: h }) => [
8821
+ (c(), R(Xe(h), null, {
8822
+ default: U(() => [
8823
+ X(E.$slots, "activityDetailsBody")
8824
+ ]),
8825
+ _: 2
8826
+ }, 1024))
8822
8827
  ]),
8823
8828
  _: 3
8824
8829
  }, 8, ["activities", "is-task-checkable", "statuses", "phases", "users", "user-id", "is-editable"])
@@ -9073,7 +9078,7 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
9073
9078
  })
9074
9079
  ]),
9075
9080
  f("div", r4, [
9076
- T(q(Xe), Ee({
9081
+ T(q(Qe), Ee({
9077
9082
  class: "ao-project-milestone__activities",
9078
9083
  list: l.value,
9079
9084
  disabled: !p.isEditable,
@@ -9126,7 +9131,7 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
9126
9131
  _: 1
9127
9132
  }, 16, ["list", "disabled"]),
9128
9133
  p.isEditable ? (c(), m("div", u4, [
9129
- T(Qe, {
9134
+ T(Je, {
9130
9135
  "icon-name": "Add",
9131
9136
  label: p.$t("project.activity.add"),
9132
9137
  onClick: d
@@ -9412,7 +9417,7 @@ const $4 = {
9412
9417
  ])
9413
9418
  ];
9414
9419
  }) : k("", !0),
9415
- T(q(Xe), Ee({
9420
+ T(q(Qe), Ee({
9416
9421
  class: "ao-list-kanban__list",
9417
9422
  list: r.list,
9418
9423
  "item-key": "id",
@@ -9483,7 +9488,7 @@ const $4 = {
9483
9488
  }, 16, ["list", "disabled"]),
9484
9489
  r.$slots.footer || r.footerLabel ? (c(), m("div", E4, [
9485
9490
  X(r.$slots, "footer", {}, () => [
9486
- r.isEditable ? (c(), R(Qe, {
9491
+ r.isEditable ? (c(), R(Je, {
9487
9492
  key: 0,
9488
9493
  "icon-name": "AddBoxOutlineRounded",
9489
9494
  label: r.footerLabel,
@@ -9864,7 +9869,7 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
9864
9869
  f("div", Y4, [
9865
9870
  f("label", K4, [
9866
9871
  f("span", G4, Z(M.$t("activity.deadline.label")), 1),
9867
- et(f("input", {
9872
+ tt(f("input", {
9868
9873
  "onUpdate:modelValue": Y[5] || (Y[5] = (B) => W.value = B),
9869
9874
  class: "ao-field__input",
9870
9875
  type: "date"
@@ -10006,7 +10011,7 @@ const ft = {
10006
10011
  ]),
10007
10012
  _: 1
10008
10013
  }),
10009
- T(q(Xe), {
10014
+ T(q(Qe), {
10010
10015
  "model-value": l.templates,
10011
10016
  class: "ao-templates__list",
10012
10017
  "item-key": "id",