@26lights/orcha 0.39.0 → 0.40.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,4 +1,4 @@
1
- import { defineComponent as Y, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as m, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as Q, renderSlot as te, toDisplayString as x, createCommentVNode as O, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as z, createTextVNode as Fa, createVNode as M, normalizeStyle as Ua, withModifiers as fe, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Ts, onUnmounted as kn, Teleport as Nt, toRefs as Ae, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as fa, withDirectives as Ke, vShow as Hi, onUpdated as Di, vModelText as ut, resolveComponent as Ye, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
1
+ import { defineComponent as Y, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as m, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as Q, renderSlot as te, toDisplayString as x, createCommentVNode as O, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as z, createTextVNode as Fa, createVNode as M, resolveComponent as Fe, normalizeStyle as Ua, withModifiers as fe, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Ts, onUnmounted as kn, Teleport as Nt, toRefs as Ae, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as fa, withDirectives as Ke, vShow as Hi, onUpdated as Di, vModelText as ut, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
2
2
  import { RouterView as Ri } from "vue-router";
3
3
  import mt from "vuedraggable";
4
4
  const g8 = /* @__PURE__ */ Y({
@@ -1398,43 +1398,54 @@ const qa = /* @__PURE__ */ Y({
1398
1398
  rawColor: {},
1399
1399
  clickable: { type: Boolean },
1400
1400
  closable: { type: Boolean },
1401
- variant: {}
1401
+ variant: {},
1402
+ iconName: {}
1402
1403
  },
1403
1404
  emits: ["click", "close"],
1404
1405
  setup(t) {
1405
1406
  const e = t, a = A(() => e.clickable ? "button" : "span"), n = A(
1406
1407
  () => a.value === "button" ? { type: "button" } : {}
1407
1408
  );
1408
- return (s, o) => (p(), m("div", {
1409
- class: Q([
1410
- "ao-tag",
1411
- s.color ? `ao-tag--${s.color}` : "",
1412
- s.clickable ? "ao-tag--clickable" : "",
1413
- s.closable ? "ao-tag--closable" : "",
1414
- s.variant ? `ao-tag--${s.variant}` : ""
1415
- ]),
1416
- style: Ua(s.rawColor ? { "--ao-tag-bg": s.rawColor } : {})
1417
- }, [
1418
- (p(), P(ht(a.value), He({ class: "ao-tag__label" }, n.value, {
1419
- onClick: o[0] || (o[0] = (i) => s.$emit("click", i))
1420
- }), {
1421
- default: z(() => [
1422
- Fa(x(s.label), 1)
1409
+ return (s, o) => {
1410
+ const i = Fe("Icon");
1411
+ return p(), m("div", {
1412
+ class: Q([
1413
+ "ao-tag",
1414
+ s.color ? `ao-tag--${s.color}` : "",
1415
+ s.clickable ? "ao-tag--clickable" : "",
1416
+ s.closable ? "ao-tag--closable" : "",
1417
+ s.variant ? `ao-tag--${s.variant}` : ""
1423
1418
  ]),
1424
- _: 1
1425
- }, 16)),
1426
- s.closable ? (p(), m("button", {
1427
- key: 0,
1428
- class: "ao-tag__close",
1429
- onClick: o[1] || (o[1] = (i) => s.$emit("close", i))
1419
+ style: Ua(s.rawColor ? { "--ao-tag-bg": s.rawColor } : {})
1430
1420
  }, [
1431
- M(pe, {
1432
- name: "CloseRounded",
1433
- size: "sm",
1434
- class: "ao-tag__close-icon"
1435
- })
1436
- ])) : O("", !0)
1437
- ], 6));
1421
+ (p(), P(ht(a.value), He({ class: "ao-tag__label" }, n.value, {
1422
+ onClick: o[0] || (o[0] = (r) => s.$emit("click", r))
1423
+ }), {
1424
+ default: z(() => [
1425
+ Fa(x(s.label), 1)
1426
+ ]),
1427
+ _: 1
1428
+ }, 16)),
1429
+ s.iconName ? (p(), P(i, {
1430
+ key: 0,
1431
+ icon: s.iconName,
1432
+ class: "ao-tag__icon",
1433
+ width: 16,
1434
+ height: 16
1435
+ }, null, 8, ["icon"])) : O("", !0),
1436
+ s.closable ? (p(), m("button", {
1437
+ key: 1,
1438
+ class: "ao-tag__close",
1439
+ onClick: o[1] || (o[1] = (r) => s.$emit("close", r))
1440
+ }, [
1441
+ M(pe, {
1442
+ name: "CloseRounded",
1443
+ size: "sm",
1444
+ class: "ao-tag__close-icon"
1445
+ })
1446
+ ])) : O("", !0)
1447
+ ], 6);
1448
+ };
1438
1449
  }
1439
1450
  });
1440
1451
  const Cn = {
@@ -4572,7 +4583,7 @@ function Gs(t) {
4572
4583
  function et(t) {
4573
4584
  return t instanceof Element || t instanceof ke(t).Element;
4574
4585
  }
4575
- function Ue(t) {
4586
+ function Ze(t) {
4576
4587
  return t instanceof HTMLElement || t instanceof ke(t).HTMLElement;
4577
4588
  }
4578
4589
  function hs(t) {
@@ -4596,7 +4607,7 @@ function Dn(t) {
4596
4607
  }
4597
4608
  function D5(t) {
4598
4609
  let e = Ut(t);
4599
- for (; Ue(e) && !Qa(e); ) {
4610
+ for (; Ze(e) && !Qa(e); ) {
4600
4611
  if (Dn(e))
4601
4612
  return e;
4602
4613
  e = Ut(e);
@@ -4635,7 +4646,7 @@ function Ut(t) {
4635
4646
  }
4636
4647
  function Xs(t) {
4637
4648
  const e = Ut(t);
4638
- return Qa(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ue(e) && ga(e) ? e : Xs(e);
4649
+ return Qa(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ze(e) && ga(e) ? e : Xs(e);
4639
4650
  }
4640
4651
  function ca(t, e, a) {
4641
4652
  var n;
@@ -4646,7 +4657,7 @@ function ca(t, e, a) {
4646
4657
  function Qs(t) {
4647
4658
  const e = Ve(t);
4648
4659
  let a = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
4649
- const s = Ue(t), o = s ? t.offsetWidth : a, i = s ? t.offsetHeight : n, r = Va(a) !== o || Va(n) !== i;
4660
+ const s = Ze(t), o = s ? t.offsetWidth : a, i = s ? t.offsetHeight : n, r = Va(a) !== o || Va(n) !== i;
4650
4661
  return r && (a = o, n = i), {
4651
4662
  width: a,
4652
4663
  height: n,
@@ -4658,7 +4669,7 @@ function Vn(t) {
4658
4669
  }
4659
4670
  function Vt(t) {
4660
4671
  const e = Vn(t);
4661
- if (!Ue(e))
4672
+ if (!Ze(e))
4662
4673
  return pt(1);
4663
4674
  const a = e.getBoundingClientRect(), {
4664
4675
  width: n,
@@ -4710,7 +4721,7 @@ function B5(t) {
4710
4721
  offsetParent: a,
4711
4722
  strategy: n
4712
4723
  } = t;
4713
- const s = Ue(a), o = at(a);
4724
+ const s = Ze(a), o = at(a);
4714
4725
  if (a === o)
4715
4726
  return e;
4716
4727
  let i = {
@@ -4718,7 +4729,7 @@ function B5(t) {
4718
4729
  scrollTop: 0
4719
4730
  }, r = pt(1);
4720
4731
  const l = pt(0);
4721
- if ((s || !s && n !== "fixed") && ((ft(a) !== "body" || ga(o)) && (i = Ja(a)), Ue(a))) {
4732
+ if ((s || !s && n !== "fixed") && ((ft(a) !== "body" || ga(o)) && (i = Ja(a)), Ze(a))) {
4722
4733
  const c = St(a);
4723
4734
  r = Vt(a), l.x = c.x + a.clientLeft, l.y = c.y + a.clientTop;
4724
4735
  }
@@ -4762,7 +4773,7 @@ function j5(t, e) {
4762
4773
  };
4763
4774
  }
4764
4775
  function F5(t, e) {
4765
- const a = St(t, !0, e === "fixed"), n = a.top + t.clientTop, s = a.left + t.clientLeft, o = Ue(t) ? Vt(t) : pt(1), i = t.clientWidth * o.x, r = t.clientHeight * o.y, l = s * o.x, c = n * o.y;
4776
+ const a = St(t, !0, e === "fixed"), n = a.top + t.clientTop, s = a.left + t.clientLeft, o = Ze(t) ? Vt(t) : pt(1), i = t.clientWidth * o.x, r = t.clientHeight * o.y, l = s * o.x, c = n * o.y;
4766
4777
  return {
4767
4778
  width: i,
4768
4779
  height: r,
@@ -4827,7 +4838,7 @@ function W5(t) {
4827
4838
  return Qs(t);
4828
4839
  }
4829
4840
  function q5(t, e, a) {
4830
- const n = Ue(e), s = at(e), o = a === "fixed", i = St(t, !0, o, e);
4841
+ const n = Ze(e), s = at(e), o = a === "fixed", i = St(t, !0, o, e);
4831
4842
  let r = {
4832
4843
  scrollLeft: 0,
4833
4844
  scrollTop: 0
@@ -4847,11 +4858,11 @@ function q5(t, e, a) {
4847
4858
  };
4848
4859
  }
4849
4860
  function Cs(t, e) {
4850
- return !Ue(t) || Ve(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
4861
+ return !Ze(t) || Ve(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
4851
4862
  }
4852
4863
  function ai(t, e) {
4853
4864
  const a = ke(t);
4854
- if (!Ue(t))
4865
+ if (!Ze(t))
4855
4866
  return a;
4856
4867
  let n = Cs(t, e);
4857
4868
  for (; n && H5(n) && Ve(n).position === "static"; )
@@ -5161,7 +5172,7 @@ function i7(t, e, a) {
5161
5172
  disabledProp: y,
5162
5173
  searchStart: R,
5163
5174
  searchFilter: le
5164
- } = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, X = a.search, ve = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, nn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Me = ee(!1), Be = ee(null), qe = ee(T.value && i.value === -1 ? 10 : i.value), Xt = A(() => l.value || c.value || !1), ba = A(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = A(() => {
5175
+ } = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, X = a.search, ve = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, nn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Me = ee(!1), Be = ee(null), ze = ee(T.value && i.value === -1 ? 10 : i.value), Xt = A(() => l.value || c.value || !1), ba = A(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = A(() => {
5165
5176
  if (oe.value) {
5166
5177
  let $ = _t.value || /* istanbul ignore next */
5167
5178
  [], B = [];
@@ -5180,7 +5191,7 @@ function i7(t, e, a) {
5180
5191
  return ne.value && ($ = $.reverse()), Ot.value.length && ($ = Ot.value.concat($)), cn($);
5181
5192
  }), ot = A(() => {
5182
5193
  let $ = Qt.value;
5183
- return qe.value > 0 && ($ = $.slice(0, qe.value)), $;
5194
+ return ze.value > 0 && ($ = $.slice(0, ze.value)), $;
5184
5195
  }), _t = A(() => {
5185
5196
  if (!oe.value)
5186
5197
  return [];
@@ -5235,7 +5246,7 @@ function i7(t, e, a) {
5235
5246
  return [];
5236
5247
  }
5237
5248
  }), mi = A(() => g.value || Me.value), Et = ($) => {
5238
- switch (typeof $ != "object" && ($ = xe($)), s.value) {
5249
+ switch (typeof $ != "object" && ($ = Ye($)), s.value) {
5239
5250
  case "single":
5240
5251
  we($);
5241
5252
  break;
@@ -5246,7 +5257,7 @@ function i7(t, e, a) {
5246
5257
  }
5247
5258
  e.emit("select", es($), $, ie);
5248
5259
  }, It = ($) => {
5249
- switch (typeof $ != "object" && ($ = xe($)), s.value) {
5260
+ switch (typeof $ != "object" && ($ = Ye($)), s.value) {
5250
5261
  case "single":
5251
5262
  as();
5252
5263
  break;
@@ -5266,7 +5277,7 @@ function i7(t, e, a) {
5266
5277
  ts($);
5267
5278
  }, as = () => {
5268
5279
  we(hi.value), e.emit("clear", ie);
5269
- }, ze = ($) => {
5280
+ }, xe = ($) => {
5270
5281
  if ($.group !== void 0)
5271
5282
  return s.value === "single" ? !1 : wi($[k.value]) && $[k.value].length;
5272
5283
  switch (s.value) {
@@ -5278,7 +5289,7 @@ function i7(t, e, a) {
5278
5289
  }
5279
5290
  }, rn = ($) => $[y.value] === !0, ln = () => E === void 0 || E.value === -1 || !on.value && E.value > 0 ? !1 : q.value.length >= E.value, gi = ($) => {
5280
5291
  if (!rn($)) {
5281
- if (se && se.value && !ze($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = se.value($, ie), $ instanceof Promise)) {
5292
+ if (se && se.value && !xe($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = se.value($, ie), $ instanceof Promise)) {
5282
5293
  Me.value = !0, $.then((B) => {
5283
5294
  Me.value = !1, ns(B);
5284
5295
  });
@@ -5289,14 +5300,14 @@ function i7(t, e, a) {
5289
5300
  }, ns = ($) => {
5290
5301
  switch ($.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__), s.value) {
5291
5302
  case "single":
5292
- if ($ && ze($)) {
5303
+ if ($ && xe($)) {
5293
5304
  K.value && It($), W.value && (nt(), st());
5294
5305
  return;
5295
5306
  }
5296
5307
  $ && un($), I.value && ve(), N.value && (nt(), st()), $ && Et($);
5297
5308
  break;
5298
5309
  case "multiple":
5299
- if ($ && ze($)) {
5310
+ if ($ && xe($)) {
5300
5311
  It($), W.value && (nt(), st());
5301
5312
  return;
5302
5313
  }
@@ -5307,7 +5318,7 @@ function i7(t, e, a) {
5307
5318
  $ && (un($), Et($)), I.value && ve(), r.value && nt(), N.value && st();
5308
5319
  break;
5309
5320
  case "tags":
5310
- if ($ && ze($)) {
5321
+ if ($ && xe($)) {
5311
5322
  It($), W.value && (nt(), st());
5312
5323
  return;
5313
5324
  }
@@ -5332,10 +5343,10 @@ function i7(t, e, a) {
5332
5343
  N.value && nn();
5333
5344
  }
5334
5345
  }, un = ($) => {
5335
- xe($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), ve());
5346
+ Ye($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), ve());
5336
5347
  }, yi = () => {
5337
- s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
5338
- }, bi = ($) => $.find((B) => !ze(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
5348
+ s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !xe($)));
5349
+ }, bi = ($) => $.find((B) => !xe(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !xe(B)) === void 0, Ye = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && xe($), Si = ($) => {
5339
5350
  it.value.push($);
5340
5351
  }, Ai = ($) => F.value ? $.filter(
5341
5352
  (B) => X.value ? B.__VISIBLE__.length : B[k.value].length
@@ -5368,14 +5379,14 @@ function i7(t, e, a) {
5368
5379
  })), pn = () => {
5369
5380
  if (on.value)
5370
5381
  if (s.value === "single") {
5371
- let $ = xe(q.value[L.value]);
5382
+ let $ = Ye(q.value[L.value]);
5372
5383
  if ($ !== void 0) {
5373
5384
  let B = $[u.value];
5374
5385
  q.value[u.value] = B, w.value && (H.value[u.value] = B);
5375
5386
  }
5376
5387
  } else
5377
5388
  q.value.forEach(($, B) => {
5378
- let re = xe(q.value[B][L.value]);
5389
+ let re = Ye(q.value[B][L.value]);
5379
5390
  if (re !== void 0) {
5380
5391
  let me = re[u.value];
5381
5392
  q.value[B][u.value] = me, w.value && (H.value[B][u.value] = me);
@@ -5383,11 +5394,11 @@ function i7(t, e, a) {
5383
5394
  });
5384
5395
  }, Mi = ($) => {
5385
5396
  ka($);
5386
- }, Sa = ($) => je($) ? s.value === "single" ? {} : [] : w.value ? $ : s.value === "single" ? xe($) || (U.value ? {
5397
+ }, Sa = ($) => je($) ? s.value === "single" ? {} : [] : w.value ? $ : s.value === "single" ? Ye($) || (U.value ? {
5387
5398
  [u.value]: $,
5388
5399
  [L.value]: $,
5389
5400
  [yt.value[0]]: $
5390
- } : {}) : $.filter((B) => !!xe(B) || U.value).map((B) => xe(B) || {
5401
+ } : {}) : $.filter((B) => !!Ye(B) || U.value).map((B) => Ye(B) || {
5391
5402
  [u.value]: B,
5392
5403
  [L.value]: B,
5393
5404
  [yt.value[0]]: B
@@ -5426,7 +5437,7 @@ function i7(t, e, a) {
5426
5437
  }, { deep: !0 }), de(n, ($, B) => {
5427
5438
  typeof t.options == "function" ? S.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(q.value).length || $a(), pn());
5428
5439
  }), de(u, pn), de(i, ($, B) => {
5429
- qe.value = T.value && $ === -1 ? 10 : $;
5440
+ ze.value = T.value && $ === -1 ? 10 : $;
5430
5441
  }), {
5431
5442
  pfo: Qt,
5432
5443
  fo: ot,
@@ -5443,16 +5454,16 @@ function i7(t, e, a) {
5443
5454
  noResults: vi,
5444
5455
  resolving: Me,
5445
5456
  busy: mi,
5446
- offset: qe,
5457
+ offset: ze,
5447
5458
  select: Et,
5448
5459
  deselect: It,
5449
5460
  remove: ts,
5450
5461
  selectAll: yi,
5451
5462
  clear: as,
5452
- isSelected: ze,
5463
+ isSelected: xe,
5453
5464
  isDisabled: rn,
5454
5465
  isMax: ln,
5455
- getOption: xe,
5466
+ getOption: Ye,
5456
5467
  handleOptionClick: gi,
5457
5468
  handleGroupClick: _i,
5458
5469
  handleTagRemove: Ci,
@@ -5615,7 +5626,7 @@ function r7(t) {
5615
5626
  function l7(t) {
5616
5627
  return t === Se(t) || !Pe(t) ? Rn(t) : r7(t);
5617
5628
  }
5618
- function Ze(t) {
5629
+ function We(t) {
5619
5630
  return t ? (t.nodeName || "").toLowerCase() : null;
5620
5631
  }
5621
5632
  function gt(t) {
@@ -5647,7 +5658,7 @@ function c7(t, e, a) {
5647
5658
  x: 0,
5648
5659
  y: 0
5649
5660
  };
5650
- return (n || !n && !a) && ((Ze(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
5661
+ return (n || !n && !a) && ((We(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
5651
5662
  jn(o)) && (r = l7(e)), Pe(e) ? (l = Wt(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Nn(o))), {
5652
5663
  x: i.left + r.scrollLeft - l.x,
5653
5664
  y: i.top + r.scrollTop - l.y,
@@ -5665,7 +5676,7 @@ function si(t) {
5665
5676
  };
5666
5677
  }
5667
5678
  function en(t) {
5668
- return Ze(t) === "html" ? t : (
5679
+ return We(t) === "html" ? t : (
5669
5680
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
5670
5681
  // $FlowFixMe[incompatible-return]
5671
5682
  // $FlowFixMe[prop-missing]
@@ -5677,7 +5688,7 @@ function en(t) {
5677
5688
  );
5678
5689
  }
5679
5690
  function ii(t) {
5680
- return ["html", "body", "#document"].indexOf(Ze(t)) >= 0 ? t.ownerDocument.body : Pe(t) && jn(t) ? t : ii(en(t));
5691
+ return ["html", "body", "#document"].indexOf(We(t)) >= 0 ? t.ownerDocument.body : Pe(t) && jn(t) ? t : ii(en(t));
5681
5692
  }
5682
5693
  function ia(t, e) {
5683
5694
  var a;
@@ -5689,7 +5700,7 @@ function ia(t, e) {
5689
5700
  );
5690
5701
  }
5691
5702
  function d7(t) {
5692
- return ["table", "td", "th"].indexOf(Ze(t)) >= 0;
5703
+ return ["table", "td", "th"].indexOf(We(t)) >= 0;
5693
5704
  }
5694
5705
  function gs(t) {
5695
5706
  return !Pe(t) || // https://github.com/popperjs/popper-core/issues/837
@@ -5703,7 +5714,7 @@ function p7(t) {
5703
5714
  return null;
5704
5715
  }
5705
5716
  var s = en(t);
5706
- for (Bn(s) && (s = s.host); Pe(s) && ["html", "body"].indexOf(Ze(s)) < 0; ) {
5717
+ for (Bn(s) && (s = s.host); Pe(s) && ["html", "body"].indexOf(We(s)) < 0; ) {
5707
5718
  var o = tt(s);
5708
5719
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
5709
5720
  return s;
@@ -5714,9 +5725,9 @@ function p7(t) {
5714
5725
  function tn(t) {
5715
5726
  for (var e = Se(t), a = gs(t); a && d7(a) && tt(a).position === "static"; )
5716
5727
  a = gs(a);
5717
- return a && (Ze(a) === "html" || Ze(a) === "body" && tt(a).position === "static") ? e : a || p7(t) || e;
5728
+ return a && (We(a) === "html" || We(a) === "body" && tt(a).position === "static") ? e : a || p7(t) || e;
5718
5729
  }
5719
- var Re = "top", We = "bottom", vt = "right", Ge = "left", Fn = "auto", an = [Re, We, vt, Ge], qt = "start", da = "end", f7 = "clippingParents", oi = "viewport", sa = "popper", v7 = "reference", _s = /* @__PURE__ */ an.reduce(function(t, e) {
5730
+ var Re = "top", qe = "bottom", vt = "right", Ge = "left", Fn = "auto", an = [Re, qe, vt, Ge], qt = "start", da = "end", f7 = "clippingParents", oi = "viewport", sa = "popper", v7 = "reference", _s = /* @__PURE__ */ an.reduce(function(t, e) {
5720
5731
  return t.concat([e + "-" + qt, e + "-" + da]);
5721
5732
  }, []), h7 = /* @__PURE__ */ [].concat(an, [Fn]).reduce(function(t, e) {
5722
5733
  return t.concat([e, e + "-" + qt, e + "-" + da]);
@@ -5825,7 +5836,7 @@ function ys(t, e, a) {
5825
5836
  function D7(t) {
5826
5837
  var e = ia(en(t)), a = ["absolute", "fixed"].indexOf(tt(t).position) >= 0, n = a && Pe(t) ? tn(t) : t;
5827
5838
  return At(n) ? e.filter(function(s) {
5828
- return At(s) && L7(s, n) && Ze(s) !== "body";
5839
+ return At(s) && L7(s, n) && We(s) !== "body";
5829
5840
  }) : [];
5830
5841
  }
5831
5842
  function P7(t, e, a, n) {
@@ -5853,7 +5864,7 @@ function li(t) {
5853
5864
  y: e.y - a.height
5854
5865
  };
5855
5866
  break;
5856
- case We:
5867
+ case qe:
5857
5868
  l = {
5858
5869
  x: i,
5859
5870
  y: e.y + e.height
@@ -5923,7 +5934,7 @@ function Un(t, e) {
5923
5934
  if (d === sa && G) {
5924
5935
  var N = G[s];
5925
5936
  Object.keys(E).forEach(function(W) {
5926
- var oe = [vt, We].indexOf(W) >= 0 ? 1 : -1, ne = [Re, We].indexOf(W) >= 0 ? "y" : "x";
5937
+ var oe = [vt, qe].indexOf(W) >= 0 ? 1 : -1, ne = [Re, qe].indexOf(W) >= 0 ? "y" : "x";
5927
5938
  E[W] += N[ne] * oe;
5928
5939
  });
5929
5940
  }
@@ -6103,14 +6114,14 @@ function $s(t) {
6103
6114
  if (c) {
6104
6115
  var L = tn(a), U = "clientHeight", Z = "clientWidth";
6105
6116
  if (L === Se(a) && (L = gt(a), tt(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, s === Re || (s === Ge || s === vt) && o === da) {
6106
- D = We;
6117
+ D = qe;
6107
6118
  var K = f && L === I && I.visualViewport ? I.visualViewport.height : (
6108
6119
  // $FlowFixMe[prop-missing]
6109
6120
  L[U]
6110
6121
  );
6111
6122
  g -= K - n.height, g *= l ? 1 : -1;
6112
6123
  }
6113
- if (s === Ge || (s === Re || s === We) && o === da) {
6124
+ if (s === Ge || (s === Re || s === qe) && o === da) {
6114
6125
  C = vt;
6115
6126
  var E = f && L === I && I.visualViewport ? I.visualViewport.width : (
6116
6127
  // $FlowFixMe[prop-missing]
@@ -6168,7 +6179,7 @@ function x7(t) {
6168
6179
  var e = t.state;
6169
6180
  Object.keys(e.elements).forEach(function(a) {
6170
6181
  var n = e.styles[a] || {}, s = e.attributes[a] || {}, o = e.elements[a];
6171
- !Pe(o) || !Ze(o) || (Object.assign(o.style, n), Object.keys(s).forEach(function(i) {
6182
+ !Pe(o) || !We(o) || (Object.assign(o.style, n), Object.keys(s).forEach(function(i) {
6172
6183
  var r = s[i];
6173
6184
  r === !1 ? o.removeAttribute(i) : o.setAttribute(i, r === !0 ? "" : r);
6174
6185
  }));
@@ -6192,7 +6203,7 @@ function Y7(t) {
6192
6203
  var s = e.elements[n], o = e.attributes[n] || {}, i = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : a[n]), r = i.reduce(function(l, c) {
6193
6204
  return l[c] = "", l;
6194
6205
  }, {});
6195
- !Pe(s) || !Ze(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(l) {
6206
+ !Pe(s) || !We(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(l) {
6196
6207
  s.removeAttribute(l);
6197
6208
  }));
6198
6209
  });
@@ -6238,14 +6249,14 @@ function ep(t) {
6238
6249
  };
6239
6250
  if (L) {
6240
6251
  if (o) {
6241
- var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, T = D === "y" ? "height" : "width", k = L[D], F = k + b[oe], V = k - b[ne], se = h ? -Z[T] / 2 : 0, y = _ === qt ? U[T] : Z[T], R = _ === qt ? -Z[T] : -U[T], le = e.elements.arrow, ie = h && le ? si(le) : {
6252
+ var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? qe : vt, T = D === "y" ? "height" : "width", k = L[D], F = k + b[oe], V = k - b[ne], se = h ? -Z[T] / 2 : 0, y = _ === qt ? U[T] : Z[T], R = _ === qt ? -Z[T] : -U[T], le = e.elements.arrow, ie = h && le ? si(le) : {
6242
6253
  width: 0,
6243
6254
  height: 0
6244
6255
  }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], X = q[ne], ve = Ia(0, U[T], ie[T]), we = C ? U[T] / 2 - se - ve - H - E.mainAxis : y - ve - H - E.mainAxis, Kt = C ? -U[T] / 2 + se + ve + X + E.mainAxis : R + ve + X + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = G == null ? void 0 : G[D]) != null ? W : 0, nn = k + we - _a - nt, st = k + Kt - _a, ya = Ia(h ? Na(F, nn) : F, k, h ? kt(V, st) : V);
6245
6256
  L[D] = ya, N[D] = ya - k;
6246
6257
  }
6247
6258
  if (r) {
6248
- var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + b[Ne], ba = Be - b[Me], Te = [Re, Ge].indexOf(S) !== -1, Qt = (it = G == null ? void 0 : G[I]) != null ? it : 0, ot = Te ? Xt : Be - U[qe] - Z[qe] - Qt + E.altAxis, _t = Te ? Be + U[qe] + Z[qe] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
6259
+ var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? qe : vt, Be = L[I], ze = I === "y" ? "height" : "width", Xt = Be + b[Ne], ba = Be - b[Me], Te = [Re, Ge].indexOf(S) !== -1, Qt = (it = G == null ? void 0 : G[I]) != null ? it : 0, ot = Te ? Xt : Be - U[ze] - Z[ze] - Qt + E.altAxis, _t = Te ? Be + U[ze] + Z[ze] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
6249
6260
  L[I] = wa, N[I] = wa - Be;
6250
6261
  }
6251
6262
  e.modifiersData[n] = N;
@@ -6316,13 +6327,13 @@ function op(t) {
6316
6327
  allowedAutoPlacements: g
6317
6328
  }) : q);
6318
6329
  }, []), I = e.rects.reference, L = e.rects.popper, U = /* @__PURE__ */ new Map(), Z = !0, K = D[0], E = 0; E < D.length; E++) {
6319
- var G = D[E], N = ct(G), W = zt(G) === qt, oe = [Re, We].indexOf(N) >= 0, ne = oe ? "width" : "height", T = Un(e, {
6330
+ var G = D[E], N = ct(G), W = zt(G) === qt, oe = [Re, qe].indexOf(N) >= 0, ne = oe ? "width" : "height", T = Un(e, {
6320
6331
  placement: G,
6321
6332
  boundary: u,
6322
6333
  rootBoundary: f,
6323
6334
  altBoundary: d,
6324
6335
  padding: c
6325
- }), k = oe ? W ? vt : Ge : W ? We : Re;
6336
+ }), k = oe ? W ? vt : Ge : W ? qe : Re;
6326
6337
  I[ne] > L[ne] && (k = La(k));
6327
6338
  var F = La(k), V = [];
6328
6339
  if (o && V.push(T[N] <= 0), r && V.push(T[k] <= 0, T[F] <= 0), V.every(function(ie) {
@@ -8429,6 +8440,7 @@ const wn = /* @__PURE__ */ Y({
8429
8440
  clickable: !0,
8430
8441
  variant: "solid",
8431
8442
  color: "primary",
8443
+ "icon-name": "heroicons-outline:document-duplicate",
8432
8444
  class: "ao-activity__ao-tag",
8433
8445
  onClick: se
8434
8446
  }, null, 8, ["label"])) : O("", !0),
@@ -9041,7 +9053,7 @@ const yv = {
9041
9053
  });
9042
9054
  }, w = (k) => {
9043
9055
  e("removeItem", {
9044
- itemType: Ce.PHASES,
9056
+ type: Ce.PHASES,
9045
9057
  templateId: a.templateId,
9046
9058
  data: {
9047
9059
  id: k
@@ -9076,7 +9088,7 @@ const yv = {
9076
9088
  });
9077
9089
  }, _ = (k) => {
9078
9090
  e("removeItem", {
9079
- itemType: Ce.MILESTONES,
9091
+ type: Ce.MILESTONES,
9080
9092
  templateId: a.templateId,
9081
9093
  phaseId: k.phaseId,
9082
9094
  data: {
@@ -9109,7 +9121,7 @@ const yv = {
9109
9121
  }, I = (k) => {
9110
9122
  var F, V;
9111
9123
  e("removeItem", {
9112
- itemType: Ce.ACTIVITIES,
9124
+ type: Ce.ACTIVITIES,
9113
9125
  templateId: a.templateId,
9114
9126
  phaseId: (F = i.value) == null ? void 0 : F.id,
9115
9127
  milestoneId: (V = r.value) == null ? void 0 : V.id,
@@ -9162,7 +9174,7 @@ const yv = {
9162
9174
  });
9163
9175
  }, oe = (k) => {
9164
9176
  !i.value || !r.value || !u.value || e("removeItem", {
9165
- itemType: Ce.TASKS,
9177
+ type: Ce.TASKS,
9166
9178
  activityId: u.value.id,
9167
9179
  milestoneId: r.value.id,
9168
9180
  phaseId: i.value.id,
@@ -9743,7 +9755,7 @@ const n9 = {
9743
9755
  readonly: d.readonly,
9744
9756
  class: Q(["ao-project-phase__milestone"]),
9745
9757
  onClick: (S) => !d.readonly && d.$router.push({
9746
- name: J(Fe).milestone,
9758
+ name: J(Ue).milestone,
9747
9759
  params: { phaseId: d.phase.id, milestoneId: g.id }
9748
9760
  }),
9749
9761
  onUpdateMilestone: l,
@@ -10014,7 +10026,7 @@ const ci = /* @__PURE__ */ j(y9, [["render", w9], ["__scopeId", "data-v-cbe33527
10014
10026
  e("applyTemplate", { templateId: E, projectId: G }), Z.value = !1;
10015
10027
  };
10016
10028
  return (E, G) => {
10017
- const N = Ye("RouterView");
10029
+ const N = Fe("RouterView");
10018
10030
  return p(), m(he, null, [
10019
10031
  v("div", He({ class: "ao-project-overview" }, E.$attrs), [
10020
10032
  v("div", $9, [
@@ -10025,7 +10037,7 @@ const ci = /* @__PURE__ */ j(y9, [["render", w9], ["__scopeId", "data-v-cbe33527
10025
10037
  "right-label": E.$t("project.switch.feed"),
10026
10038
  "left-label": E.$t("project.switch.overview"),
10027
10039
  "onUpdate:isLeft": G[0] || (G[0] = (W) => {
10028
- W || E.$router.push({ name: J(Fe).feed });
10040
+ W || E.$router.push({ name: J(Ue).feed });
10029
10041
  })
10030
10042
  }, null, 8, ["right-label", "left-label"]),
10031
10043
  M(ue, {
@@ -10075,7 +10087,7 @@ const ci = /* @__PURE__ */ j(y9, [["render", w9], ["__scopeId", "data-v-cbe33527
10075
10087
  users: E.users,
10076
10088
  "is-editable": E.isEditable === !0,
10077
10089
  "closed-status": E.closedStatus,
10078
- onClose: G[3] || (G[3] = (W) => E.$router.push({ name: J(Fe).project })),
10090
+ onClose: G[3] || (G[3] = (W) => E.$router.push({ name: J(Ue).project })),
10079
10091
  onUpdateMilestone: c,
10080
10092
  onAddActivity: f,
10081
10093
  onUpdateActivity: d,
@@ -11154,7 +11166,7 @@ var Rt = Y({
11154
11166
  });
11155
11167
  const v4 = { class: "color-set" };
11156
11168
  function h4(t, e, a, n, s, o) {
11157
- const i = Ye("Saturation"), r = Ye("Hue"), l = Ye("Alpha"), c = Ye("Preview"), u = Ye("Sucker"), f = Ye("Box"), d = Ye("Colors");
11169
+ const i = Fe("Saturation"), r = Fe("Hue"), l = Fe("Alpha"), c = Fe("Preview"), u = Fe("Sucker"), f = Fe("Box"), d = Fe("Colors");
11158
11170
  return p(), P(
11159
11171
  "div",
11160
11172
  {
@@ -11267,7 +11279,7 @@ const m4 = {
11267
11279
  }
11268
11280
  }, C4 = { class: "color-picker-wrapper" };
11269
11281
  function g4(t, e, a, n, s, o) {
11270
- const i = Ye("ColorPicker");
11282
+ const i = Fe("ColorPicker");
11271
11283
  return p(), m("div", C4, [
11272
11284
  v("button", {
11273
11285
  style: Ua({ backgroundColor: a.color }),
@@ -11506,7 +11518,7 @@ const _4 = /* @__PURE__ */ j(m4, [["render", g4]]), y4 = { class: "ao-project-mi
11506
11518
  "is-private": I.private,
11507
11519
  "is-closed": w(I),
11508
11520
  onClick: (G) => _.$router.push({
11509
- name: J(Fe).activity,
11521
+ name: J(Ue).activity,
11510
11522
  params: { milestoneId: _.milestoneId, activityId: I.id }
11511
11523
  }),
11512
11524
  onUpdateActivity: u,
@@ -12109,7 +12121,7 @@ const a8 = { class: "ao-feed" }, n8 = { class: "ao-feed__filters" }, s8 = { clas
12109
12121
  "right-label": T.$t("project.switch.feed"),
12110
12122
  "left-label": T.$t("project.switch.overview"),
12111
12123
  "onUpdate:isLeft": k[0] || (k[0] = (V) => {
12112
- V && T.$router.push({ name: J(Fe).project });
12124
+ V && T.$router.push({ name: J(Ue).project });
12113
12125
  })
12114
12126
  }, null, 8, ["right-label", "left-label"])) : O("", !0),
12115
12127
  M(t8, {
@@ -12284,7 +12296,7 @@ const Dt = {
12284
12296
  }
12285
12297
  ]
12286
12298
  }
12287
- ], Fe = {
12299
+ ], Ue = {
12288
12300
  project: "AoProject",
12289
12301
  feed: "AoProjectFeed",
12290
12302
  milestone: "AoMilestone",
@@ -12293,23 +12305,23 @@ const Dt = {
12293
12305
  {
12294
12306
  path: t,
12295
12307
  ...e,
12296
- redirect: { name: Fe.project },
12308
+ redirect: { name: Ue.project },
12297
12309
  children: [
12298
12310
  {
12299
12311
  path: "",
12300
- name: Fe.project,
12312
+ name: Ue.project,
12301
12313
  component: S9,
12302
12314
  props: !0,
12303
12315
  children: [
12304
12316
  {
12305
12317
  path: ":phaseId/:milestoneId",
12306
- name: Fe.milestone,
12318
+ name: Ue.milestone,
12307
12319
  component: Ms,
12308
12320
  props: !0
12309
12321
  },
12310
12322
  {
12311
12323
  path: ":phaseId/:milestoneId/:activityId",
12312
- name: Fe.activity,
12324
+ name: Ue.activity,
12313
12325
  props: { default: !0, modal: !0 },
12314
12326
  components: {
12315
12327
  default: Ms,
@@ -12320,7 +12332,7 @@ const Dt = {
12320
12332
  },
12321
12333
  {
12322
12334
  path: "feed",
12323
- name: Fe.feed,
12335
+ name: Ue.feed,
12324
12336
  component: i8,
12325
12337
  props: !0
12326
12338
  }
@@ -12504,7 +12516,7 @@ export {
12504
12516
  w8 as getTemplateRoutes,
12505
12517
  b8 as listUpdateTypes,
12506
12518
  Cn as milestoneStatus,
12507
- Fe as projectOverviewRoutes,
12519
+ Ue as projectOverviewRoutes,
12508
12520
  R2 as ruleComparators,
12509
12521
  j2 as ruleDurationUnits,
12510
12522
  N2 as ruleTriggerTypes,