@26lights/orcha 0.2.7 → 0.2.8
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.cjs.js +1 -1
- package/dist/orcha.es.js +901 -895
- package/dist/orcha.umd.js +2 -2
- package/dist/src/types/index.d.ts +17 -0
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as X, openBlock as c, createBlock as q, unref as l1, mergeProps as I1, createElementBlock as C, createElementVNode as u, pushScopeId as mt, popScopeId as gt, createStaticVNode as bt, computed as v, resolveDynamicComponent as z1, normalizeClass as N, renderSlot as j, toDisplayString as K, createCommentVNode as V, ref as W, watch as d1, nextTick as q1, toHandlers as wt, withCtx as z, createTextVNode as ye, createVNode as B, withModifiers as te, Fragment as _1, renderList as V1, withKeys as Ze, toRefs as r1, getCurrentInstance as G1, onMounted as Ne, withDirectives as se, vModelText as we, vModelCheckbox as yt, toRef as ge, Teleport as Be } from "vue";
|
|
2
2
|
import { RouterView as $t } from "vue-router";
|
|
3
|
-
import
|
|
4
|
-
const Ui = /* @__PURE__ */
|
|
3
|
+
import le from "vuedraggable";
|
|
4
|
+
const Ui = /* @__PURE__ */ X({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
@@ -599,7 +599,7 @@ const Zl = /* @__PURE__ */ y(El, [["render", kl]]), Bl = {}, Dl = {
|
|
|
599
599
|
function Ul(s, e) {
|
|
600
600
|
return c(), C("svg", Dl, Nl);
|
|
601
601
|
}
|
|
602
|
-
const Rl = /* @__PURE__ */ y(Bl, [["render", Ul]]), ql =
|
|
602
|
+
const Rl = /* @__PURE__ */ y(Bl, [["render", Ul]]), ql = X({
|
|
603
603
|
name: "LoadingIcon"
|
|
604
604
|
});
|
|
605
605
|
const $e = (s) => (mt("data-v-ad6da4a9"), s = s(), gt(), s), jl = {
|
|
@@ -1106,7 +1106,7 @@ const Y7 = /* @__PURE__ */ y(K7, [["render", F7]]), X7 = /* @__PURE__ */ Object.
|
|
|
1106
1106
|
SOLID: "solid",
|
|
1107
1107
|
GHOST: "ghost",
|
|
1108
1108
|
OUTLINE: "outline"
|
|
1109
|
-
},
|
|
1109
|
+
}, ae = {
|
|
1110
1110
|
SM: "sm",
|
|
1111
1111
|
MD: "md",
|
|
1112
1112
|
LG: "lg",
|
|
@@ -1118,15 +1118,15 @@ const Y7 = /* @__PURE__ */ y(K7, [["render", F7]]), X7 = /* @__PURE__ */ Object.
|
|
|
1118
1118
|
}, Re = {
|
|
1119
1119
|
ROUND: "round",
|
|
1120
1120
|
ROUNDED: "rounded"
|
|
1121
|
-
}, m1 = /* @__PURE__ */
|
|
1121
|
+
}, m1 = /* @__PURE__ */ X({
|
|
1122
1122
|
__name: "AoIcon",
|
|
1123
1123
|
props: {
|
|
1124
1124
|
name: {},
|
|
1125
|
-
size: { default:
|
|
1125
|
+
size: { default: ae.MD }
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
1128
|
const e = s, t = v(() => X7[e.name]);
|
|
1129
|
-
return (n, l) => (c(), q(
|
|
1129
|
+
return (n, l) => (c(), q(z1(t.value), {
|
|
1130
1130
|
class: N(["ao-icon", `ao-icon--${n.size}`])
|
|
1131
1131
|
}, null, 8, ["class"]));
|
|
1132
1132
|
}
|
|
@@ -1134,7 +1134,7 @@ const Y7 = /* @__PURE__ */ y(K7, [["render", F7]]), X7 = /* @__PURE__ */ Object.
|
|
|
1134
1134
|
const J7 = ["type"], Q7 = {
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
class: "ao-button__label"
|
|
1137
|
-
}, k1 = /* @__PURE__ */
|
|
1137
|
+
}, k1 = /* @__PURE__ */ X({
|
|
1138
1138
|
__name: "AoButton",
|
|
1139
1139
|
props: {
|
|
1140
1140
|
label: { default: () => "" },
|
|
@@ -1144,7 +1144,7 @@ const J7 = ["type"], Q7 = {
|
|
|
1144
1144
|
type: { default: () => "button" },
|
|
1145
1145
|
color: { default: () => Ue.NEUTRAL },
|
|
1146
1146
|
footer: { type: Boolean, default: () => !1 },
|
|
1147
|
-
size: { default: () =>
|
|
1147
|
+
size: { default: () => ae.MD },
|
|
1148
1148
|
isLoading: { type: Boolean, default: () => !1 },
|
|
1149
1149
|
corners: { default: () => Re.ROUNDED }
|
|
1150
1150
|
},
|
|
@@ -1175,7 +1175,7 @@ const J7 = ["type"], Q7 = {
|
|
|
1175
1175
|
], 10, J7));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
|
-
const L1 = /* @__PURE__ */
|
|
1178
|
+
const L1 = /* @__PURE__ */ X({
|
|
1179
1179
|
__name: "AoTitle",
|
|
1180
1180
|
props: {
|
|
1181
1181
|
title: {},
|
|
@@ -1202,7 +1202,7 @@ const L1 = /* @__PURE__ */ Y({
|
|
|
1202
1202
|
d == null || d.focus();
|
|
1203
1203
|
}, 1);
|
|
1204
1204
|
});
|
|
1205
|
-
}), (i, d) => (c(), q(
|
|
1205
|
+
}), (i, d) => (c(), q(z1(l.value), I1({
|
|
1206
1206
|
ref: (f) => n.value = f,
|
|
1207
1207
|
class: [
|
|
1208
1208
|
"ao-title",
|
|
@@ -1243,7 +1243,7 @@ const e0 = {
|
|
|
1243
1243
|
}, i0 = {
|
|
1244
1244
|
key: 2,
|
|
1245
1245
|
class: "ao-card__footer"
|
|
1246
|
-
}, qe = /* @__PURE__ */
|
|
1246
|
+
}, qe = /* @__PURE__ */ X({
|
|
1247
1247
|
__name: "AoCardHoriz",
|
|
1248
1248
|
props: {
|
|
1249
1249
|
title: {},
|
|
@@ -1261,7 +1261,7 @@ const e0 = {
|
|
|
1261
1261
|
}, l = (o) => {
|
|
1262
1262
|
e("update:title", o);
|
|
1263
1263
|
};
|
|
1264
|
-
return (o, a) => (c(), q(
|
|
1264
|
+
return (o, a) => (c(), q(z1(o.tagName), {
|
|
1265
1265
|
class: N(["ao-card", { "ao-card--active": o.isActive }])
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: z(() => [
|
|
@@ -1281,7 +1281,7 @@ const e0 = {
|
|
|
1281
1281
|
])) : V("", !0),
|
|
1282
1282
|
u("div", {
|
|
1283
1283
|
class: "ao-card__title-group",
|
|
1284
|
-
onClick: a[0] || (a[0] =
|
|
1284
|
+
onClick: a[0] || (a[0] = te(() => {
|
|
1285
1285
|
}, ["stop"]))
|
|
1286
1286
|
}, [
|
|
1287
1287
|
o.title ? (c(), q(L1, {
|
|
@@ -1312,7 +1312,7 @@ const e0 = {
|
|
|
1312
1312
|
}, 8, ["class"]));
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
|
-
const o0 = /* @__PURE__ */
|
|
1315
|
+
const o0 = /* @__PURE__ */ X({
|
|
1316
1316
|
__name: "AoTag",
|
|
1317
1317
|
props: {
|
|
1318
1318
|
label: {},
|
|
@@ -1335,7 +1335,7 @@ const o0 = /* @__PURE__ */ Y({
|
|
|
1335
1335
|
l.variant ? `ao-tag--${l.variant}` : ""
|
|
1336
1336
|
])
|
|
1337
1337
|
}, [
|
|
1338
|
-
(c(), q(
|
|
1338
|
+
(c(), q(z1(t.value), I1({ class: "ao-tag__label" }, n.value, {
|
|
1339
1339
|
onClick: o[0] || (o[0] = (a) => l.$emit("click", a))
|
|
1340
1340
|
}), {
|
|
1341
1341
|
default: z(() => [
|
|
@@ -1379,12 +1379,12 @@ function u0(s) {
|
|
|
1379
1379
|
function c0(s) {
|
|
1380
1380
|
return s.split(" ").slice(0, 2).map((e) => e.charAt(0).toLocaleLowerCase()).join("");
|
|
1381
1381
|
}
|
|
1382
|
-
const d0 = ["title"], C0 = { className: "ao-avatar__initials" }, f0 = /* @__PURE__ */
|
|
1382
|
+
const d0 = ["title"], C0 = { className: "ao-avatar__initials" }, f0 = /* @__PURE__ */ X({
|
|
1383
1383
|
__name: "AoAvatar",
|
|
1384
1384
|
props: {
|
|
1385
1385
|
userName: {},
|
|
1386
1386
|
isClosable: { type: Boolean },
|
|
1387
|
-
size: { default:
|
|
1387
|
+
size: { default: ae.MD }
|
|
1388
1388
|
},
|
|
1389
1389
|
emits: ["close"],
|
|
1390
1390
|
setup(s, { emit: e }) {
|
|
@@ -1414,7 +1414,7 @@ const h0 = { class: "ao-card-template__subitems" }, v0 = { class: "ao-card-templ
|
|
|
1414
1414
|
}, M0 = { class: "ao-card-template__col ao-card-template__col--updated-at" }, V0 = { class: "ao-card-template__col-title" }, L0 = { class: "ao-card-template__col-label" }, S0 = { class: "ao-card-template__col-body" }, I0 = {
|
|
1415
1415
|
key: 0,
|
|
1416
1416
|
class: "ao-card-template__col ao-card-template__col--updated-by"
|
|
1417
|
-
}, H0 = { class: "ao-card-template__col-title" }, E0 = { class: "ao-card-template__col-label" }, A0 = { class: "ao-card-template__col-body" }, T0 = /* @__PURE__ */
|
|
1417
|
+
}, H0 = { class: "ao-card-template__col-title" }, E0 = { class: "ao-card-template__col-label" }, A0 = { class: "ao-card-template__col-body" }, T0 = /* @__PURE__ */ X({
|
|
1418
1418
|
__name: "AoCardTemplate",
|
|
1419
1419
|
props: {
|
|
1420
1420
|
title: {},
|
|
@@ -1488,7 +1488,7 @@ const h0 = { class: "ao-card-template__subitems" }, v0 = { class: "ao-card-templ
|
|
|
1488
1488
|
}, 8, ["title"]));
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
1491
|
-
const O0 = { class: "ao-page-header" }, k0 = { class: "ao-page-header-main" }, Z0 = { class: "ao-page-header-secondary" }, Ke = /* @__PURE__ */
|
|
1491
|
+
const O0 = { class: "ao-page-header" }, k0 = { class: "ao-page-header-main" }, Z0 = { class: "ao-page-header-secondary" }, Ke = /* @__PURE__ */ X({
|
|
1492
1492
|
__name: "AoPageHeader",
|
|
1493
1493
|
props: {
|
|
1494
1494
|
canGoBack: { type: Boolean }
|
|
@@ -1514,7 +1514,7 @@ const O0 = { class: "ao-page-header" }, k0 = { class: "ao-page-header-main" }, Z
|
|
|
1514
1514
|
const B0 = ["type"], D0 = {
|
|
1515
1515
|
key: 0,
|
|
1516
1516
|
class: "ao-button-card__label"
|
|
1517
|
-
},
|
|
1517
|
+
}, ne = /* @__PURE__ */ X({
|
|
1518
1518
|
__name: "AoButtonCard",
|
|
1519
1519
|
props: {
|
|
1520
1520
|
label: { default: () => "" },
|
|
@@ -1522,7 +1522,7 @@ const B0 = ["type"], D0 = {
|
|
|
1522
1522
|
iconPosition: {},
|
|
1523
1523
|
type: { default: () => "button" },
|
|
1524
1524
|
color: { default: () => Ue.BLACK },
|
|
1525
|
-
size: { default: () =>
|
|
1525
|
+
size: { default: () => ae.MD },
|
|
1526
1526
|
isLoading: { type: Boolean, default: () => !1 },
|
|
1527
1527
|
corners: { default: () => Re.ROUNDED }
|
|
1528
1528
|
},
|
|
@@ -1552,7 +1552,7 @@ const B0 = ["type"], D0 = {
|
|
|
1552
1552
|
const P0 = { class: "ao-card-template-item__footer" }, N0 = {
|
|
1553
1553
|
key: 0,
|
|
1554
1554
|
class: "ao-card-template-item__subitem"
|
|
1555
|
-
}, U0 = { class: "ao-card-template-item__subitem-number" }, Me = /* @__PURE__ */
|
|
1555
|
+
}, U0 = { class: "ao-card-template-item__subitem-number" }, Me = /* @__PURE__ */ X({
|
|
1556
1556
|
__name: "AoCardTemplateItem",
|
|
1557
1557
|
props: {
|
|
1558
1558
|
milestones: {},
|
|
@@ -1588,7 +1588,7 @@ const P0 = { class: "ao-card-template-item__footer" }, N0 = {
|
|
|
1588
1588
|
}));
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
1591
|
-
const R0 = /* @__PURE__ */
|
|
1591
|
+
const R0 = /* @__PURE__ */ X({
|
|
1592
1592
|
__name: "AoCardTemplateItemPhase",
|
|
1593
1593
|
props: {
|
|
1594
1594
|
id: {},
|
|
@@ -1611,7 +1611,7 @@ const R0 = /* @__PURE__ */ Y({
|
|
|
1611
1611
|
_: 3
|
|
1612
1612
|
}, 16, ["title", "activities", "milestones"]));
|
|
1613
1613
|
}
|
|
1614
|
-
}), q0 = /* @__PURE__ */
|
|
1614
|
+
}), q0 = /* @__PURE__ */ X({
|
|
1615
1615
|
__name: "AoCardTemplateItemMilestone",
|
|
1616
1616
|
props: {
|
|
1617
1617
|
activities: {}
|
|
@@ -1662,7 +1662,7 @@ const ji = {
|
|
|
1662
1662
|
project: "project",
|
|
1663
1663
|
activity_type: "activity_type",
|
|
1664
1664
|
assignee: "assignee"
|
|
1665
|
-
}, x0 = { class: "ao-list__footer" }, F0 = /* @__PURE__ */
|
|
1665
|
+
}, x0 = { class: "ao-list__footer" }, F0 = /* @__PURE__ */ X({
|
|
1666
1666
|
__name: "AoTemplateDetailsMilestones",
|
|
1667
1667
|
props: {
|
|
1668
1668
|
templateId: {},
|
|
@@ -1691,7 +1691,7 @@ const ji = {
|
|
|
1691
1691
|
}, o = (a) => {
|
|
1692
1692
|
e("updateMilestone", { ...a, phaseId: t.phase.id });
|
|
1693
1693
|
};
|
|
1694
|
-
return (a, i) => a.phase ? (c(), q(l1(
|
|
1694
|
+
return (a, i) => a.phase ? (c(), q(l1(le), {
|
|
1695
1695
|
key: 0,
|
|
1696
1696
|
modelValue: n.value,
|
|
1697
1697
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => n.value = d),
|
|
@@ -1724,7 +1724,7 @@ const ji = {
|
|
|
1724
1724
|
]),
|
|
1725
1725
|
footer: z(() => [
|
|
1726
1726
|
u("div", x0, [
|
|
1727
|
-
B(
|
|
1727
|
+
B(ne, {
|
|
1728
1728
|
"icon-name": "AddBoxOutlineRounded",
|
|
1729
1729
|
label: a.$t("template.milestones.add"),
|
|
1730
1730
|
onClick: l
|
|
@@ -1734,7 +1734,7 @@ const ji = {
|
|
|
1734
1734
|
_: 1
|
|
1735
1735
|
}, 8, ["modelValue", "title"])) : V("", !0);
|
|
1736
1736
|
}
|
|
1737
|
-
}), Y0 = /* @__PURE__ */
|
|
1737
|
+
}), Y0 = /* @__PURE__ */ X({
|
|
1738
1738
|
__name: "AoCardTemplateItemActivity",
|
|
1739
1739
|
props: {
|
|
1740
1740
|
name: {},
|
|
@@ -1752,7 +1752,7 @@ const ji = {
|
|
|
1752
1752
|
_: 3
|
|
1753
1753
|
}, 8, ["subtasks"]));
|
|
1754
1754
|
}
|
|
1755
|
-
}), X0 = { class: "ao-list__footer" }, W0 = /* @__PURE__ */
|
|
1755
|
+
}), X0 = { class: "ao-list__footer" }, W0 = /* @__PURE__ */ X({
|
|
1756
1756
|
__name: "AoTemplateDetailsActivities",
|
|
1757
1757
|
props: {
|
|
1758
1758
|
templateId: {},
|
|
@@ -1787,7 +1787,7 @@ const ji = {
|
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
});
|
|
1790
|
-
return (a, i) => a.milestone ? (c(), q(l1(
|
|
1790
|
+
return (a, i) => a.milestone ? (c(), q(l1(le), {
|
|
1791
1791
|
key: 0,
|
|
1792
1792
|
modelValue: o.value,
|
|
1793
1793
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => o.value = d),
|
|
@@ -1816,7 +1816,7 @@ const ji = {
|
|
|
1816
1816
|
]),
|
|
1817
1817
|
footer: z(() => [
|
|
1818
1818
|
u("div", X0, [
|
|
1819
|
-
B(
|
|
1819
|
+
B(ne, {
|
|
1820
1820
|
"icon-name": "AddBoxOutlineRounded",
|
|
1821
1821
|
label: a.$t("template.activities.add"),
|
|
1822
1822
|
onClick: n
|
|
@@ -1831,7 +1831,7 @@ function p1(s) {
|
|
|
1831
1831
|
return [null, void 0].indexOf(s) !== -1;
|
|
1832
1832
|
}
|
|
1833
1833
|
function J0(s, e, t) {
|
|
1834
|
-
const { object: n, valueProp: l, mode: o } = r1(s), a =
|
|
1834
|
+
const { object: n, valueProp: l, mode: o } = r1(s), a = G1().proxy, i = t.iv, d = (I, O = !0) => {
|
|
1835
1835
|
i.value = p(I);
|
|
1836
1836
|
const T = f(I);
|
|
1837
1837
|
e.emit("change", T, a), O && (e.emit("input", T), e.emit("update:modelValue", T));
|
|
@@ -1852,7 +1852,7 @@ function Q0(s, e) {
|
|
|
1852
1852
|
};
|
|
1853
1853
|
}
|
|
1854
1854
|
function en(s, e, t) {
|
|
1855
|
-
const { regex: n } = r1(s), l =
|
|
1855
|
+
const { regex: n } = r1(s), l = G1().proxy, o = t.isOpen, a = t.open, i = W(null), d = W(null), f = () => {
|
|
1856
1856
|
i.value = "";
|
|
1857
1857
|
}, p = (T) => {
|
|
1858
1858
|
i.value = T.target.value;
|
|
@@ -1892,7 +1892,7 @@ function tn(s, e, t) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function be(s, e = !0) {
|
|
1896
1896
|
return e ? String(s).toLowerCase().trim() : String(s).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g), "ae").replace(new RegExp(/œ/g), "oe").replace(new RegExp(/ø/g), "o").replace(/\p{Diacritic}/gu, "");
|
|
1897
1897
|
}
|
|
1898
1898
|
function sn(s) {
|
|
@@ -1930,7 +1930,7 @@ function an(s, e, t) {
|
|
|
1930
1930
|
groupLabel: b,
|
|
1931
1931
|
canDeselect: w,
|
|
1932
1932
|
max: Z,
|
|
1933
|
-
strict:
|
|
1933
|
+
strict: F,
|
|
1934
1934
|
closeOnSelect: L,
|
|
1935
1935
|
closeOnDeselect: D,
|
|
1936
1936
|
groups: a1,
|
|
@@ -1940,30 +1940,30 @@ function an(s, e, t) {
|
|
|
1940
1940
|
groupHideEmpty: S1,
|
|
1941
1941
|
groupSelect: U,
|
|
1942
1942
|
onCreate: x,
|
|
1943
|
-
disabledProp:
|
|
1943
|
+
disabledProp: Y,
|
|
1944
1944
|
searchStart: y1,
|
|
1945
1945
|
searchFilter: B1
|
|
1946
|
-
} = r1(s), n1 =
|
|
1946
|
+
} = r1(s), n1 = G1().proxy, R = t.iv, m = t.ev, A = t.search, o1 = t.clearSearch, g1 = t.update, Xe = t.pointer, H1 = t.clearPointer, We = t.focus, Je = t.deactivate, E1 = t.close, Qe = t.localize, D1 = W([]), $1 = W([]), h1 = W(!1), ce = W(null), de = W(J.value && a.value === -1 ? 10 : a.value), Le = v(() => d.value || f.value || !1), et = v(() => I.value !== void 0 ? I.value : O.value !== void 0 ? O.value : !0), M1 = v(() => {
|
|
1947
1947
|
if (a1.value) {
|
|
1948
|
-
let r =
|
|
1948
|
+
let r = Y1.value || /* istanbul ignore next */
|
|
1949
1949
|
[], g = [];
|
|
1950
1950
|
return r.forEach((P) => {
|
|
1951
|
-
|
|
1952
|
-
g.push(Object.assign({}, Q, P[
|
|
1951
|
+
_e(P[s1.value]).forEach((Q) => {
|
|
1952
|
+
g.push(Object.assign({}, Q, P[Y.value] ? { [Y.value]: !0 } : {}));
|
|
1953
1953
|
});
|
|
1954
1954
|
}), g;
|
|
1955
1955
|
} else {
|
|
1956
|
-
let r =
|
|
1956
|
+
let r = _e($1.value || /* istanbul ignore next */
|
|
1957
1957
|
[]);
|
|
1958
1958
|
return D1.value.length && (r = r.concat(D1.value)), r;
|
|
1959
1959
|
}
|
|
1960
1960
|
}), Se = v(() => {
|
|
1961
1961
|
let r = M1.value;
|
|
1962
|
-
return i1.value && (r = r.reverse()), A1.value.length && (r = A1.value.concat(r)),
|
|
1962
|
+
return i1.value && (r = r.reverse()), A1.value.length && (r = A1.value.concat(r)), pe(r);
|
|
1963
1963
|
}), P1 = v(() => {
|
|
1964
1964
|
let r = Se.value;
|
|
1965
|
-
return
|
|
1966
|
-
}),
|
|
1965
|
+
return de.value > 0 && (r = r.slice(0, de.value)), r;
|
|
1966
|
+
}), Y1 = v(() => {
|
|
1967
1967
|
if (!a1.value)
|
|
1968
1968
|
return [];
|
|
1969
1969
|
let r = [], g = $1.value || /* istanbul ignore next */
|
|
@@ -1974,7 +1974,7 @@ function an(s, e, t) {
|
|
|
1974
1974
|
__CREATE__: !0
|
|
1975
1975
|
}), r.concat(g);
|
|
1976
1976
|
}), tt = v(() => {
|
|
1977
|
-
let r = [...
|
|
1977
|
+
let r = [...Y1.value].map((g) => ({ ...g }));
|
|
1978
1978
|
return A1.value.length && (r[0] && r[0].__CREATE__ ? r[0][s1.value] = [...A1.value, ...r[0][s1.value]] : r = [{
|
|
1979
1979
|
[b.value]: " ",
|
|
1980
1980
|
[s1.value]: [...A1.value],
|
|
@@ -1986,16 +1986,16 @@ function an(s, e, t) {
|
|
|
1986
1986
|
let r = tt.value;
|
|
1987
1987
|
return pt((r || /* istanbul ignore next */
|
|
1988
1988
|
[]).map((g, P) => {
|
|
1989
|
-
const Q =
|
|
1989
|
+
const Q = _e(g[s1.value]);
|
|
1990
1990
|
return {
|
|
1991
1991
|
...g,
|
|
1992
1992
|
index: P,
|
|
1993
1993
|
group: !0,
|
|
1994
|
-
[s1.value]:
|
|
1995
|
-
__VISIBLE__:
|
|
1994
|
+
[s1.value]: pe(Q, !1).map((N1) => Object.assign({}, N1, g[Y.value] ? { [Y.value]: !0 } : {})),
|
|
1995
|
+
__VISIBLE__: pe(Q).map((N1) => Object.assign({}, N1, g[Y.value] ? { [Y.value]: !0 } : {}))
|
|
1996
1996
|
};
|
|
1997
1997
|
}));
|
|
1998
|
-
}),
|
|
1998
|
+
}), Ce = v(() => {
|
|
1999
1999
|
switch (l.value) {
|
|
2000
2000
|
case "single":
|
|
2001
2001
|
return !p1(R.value[H.value]);
|
|
@@ -2058,8 +2058,8 @@ function an(s, e, t) {
|
|
|
2058
2058
|
case "multiple":
|
|
2059
2059
|
return !p1(R.value) && R.value.map((g) => g[H.value]).indexOf(r[H.value]) !== -1;
|
|
2060
2060
|
}
|
|
2061
|
-
},
|
|
2062
|
-
if (!
|
|
2061
|
+
}, fe = (r) => r[Y.value] === !0, he = () => Z === void 0 || Z.value === -1 || !Ce.value && Z.value > 0 ? !1 : R.value.length >= Z.value, rt = (r) => {
|
|
2062
|
+
if (!fe(r)) {
|
|
2063
2063
|
if (x && x.value && !b1(r) && r.__CREATE__ && (r = { ...r }, delete r.__CREATE__, r = x.value(r, n1), r instanceof Promise)) {
|
|
2064
2064
|
h1.value = !0, r.then((g) => {
|
|
2065
2065
|
h1.value = !1, Te(g);
|
|
@@ -2075,73 +2075,73 @@ function an(s, e, t) {
|
|
|
2075
2075
|
w.value && O1(r), D.value && (H1(), E1());
|
|
2076
2076
|
return;
|
|
2077
2077
|
}
|
|
2078
|
-
r &&
|
|
2078
|
+
r && ve(r), e1.value && o1(), L.value && (H1(), E1()), r && T1(r);
|
|
2079
2079
|
break;
|
|
2080
2080
|
case "multiple":
|
|
2081
2081
|
if (r && b1(r)) {
|
|
2082
2082
|
O1(r), D.value && (H1(), E1());
|
|
2083
2083
|
return;
|
|
2084
2084
|
}
|
|
2085
|
-
if (
|
|
2085
|
+
if (he()) {
|
|
2086
2086
|
e.emit("max", n1);
|
|
2087
2087
|
return;
|
|
2088
2088
|
}
|
|
2089
|
-
r && (
|
|
2089
|
+
r && (ve(r), T1(r)), e1.value && o1(), i.value && H1(), L.value && E1();
|
|
2090
2090
|
break;
|
|
2091
2091
|
case "tags":
|
|
2092
2092
|
if (r && b1(r)) {
|
|
2093
2093
|
O1(r), D.value && (H1(), E1());
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
2096
|
-
if (
|
|
2096
|
+
if (he()) {
|
|
2097
2097
|
e.emit("max", n1);
|
|
2098
2098
|
return;
|
|
2099
2099
|
}
|
|
2100
|
-
r &&
|
|
2100
|
+
r && ve(r), e1.value && o1(), r && T1(r), i.value && H1(), L.value && E1();
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
2103
|
L.value || We();
|
|
2104
2104
|
}, ut = (r) => {
|
|
2105
|
-
if (!(
|
|
2105
|
+
if (!(fe(r) || l.value === "single" || !U.value)) {
|
|
2106
2106
|
switch (l.value) {
|
|
2107
2107
|
case "multiple":
|
|
2108
2108
|
case "tags":
|
|
2109
2109
|
dt(r[s1.value]) ? O1(r[s1.value]) : T1(
|
|
2110
|
-
r[s1.value].filter((g) => R.value.map((P) => P[H.value]).indexOf(g[H.value]) === -1).filter((g) => !g[
|
|
2110
|
+
r[s1.value].filter((g) => R.value.map((P) => P[H.value]).indexOf(g[H.value]) === -1).filter((g) => !g[Y.value]).filter((g, P) => R.value.length + 1 + P <= Z.value || Z.value === -1)
|
|
2111
2111
|
);
|
|
2112
2112
|
break;
|
|
2113
2113
|
}
|
|
2114
2114
|
L.value && Je();
|
|
2115
2115
|
}
|
|
2116
|
-
},
|
|
2116
|
+
}, ve = (r) => {
|
|
2117
2117
|
w1(r[H.value]) === void 0 && Le.value && (e.emit("tag", r[H.value], n1), e.emit("option", r[H.value], n1), e.emit("create", r[H.value], n1), et.value && vt(r), o1());
|
|
2118
2118
|
}, ct = () => {
|
|
2119
2119
|
l.value !== "single" && T1(P1.value.filter((r) => !r.disabled && !b1(r)));
|
|
2120
|
-
}, dt = (r) => r.find((g) => !b1(g) && !g[
|
|
2120
|
+
}, dt = (r) => r.find((g) => !b1(g) && !g[Y.value]) === void 0, Ct = (r) => r.find((g) => !b1(g)) === void 0, w1 = (r) => M1.value[M1.value.map((g) => String(g[H.value])).indexOf(String(r))], ft = (r, g = !0) => M1.value.map((P) => parseInt(P[v1.value]) == P[v1.value] ? parseInt(P[v1.value]) : P[v1.value]).indexOf(
|
|
2121
2121
|
parseInt(r) == r ? parseInt(r) : r
|
|
2122
2122
|
), ht = (r) => ["tags", "multiple"].indexOf(l.value) !== -1 && i.value && b1(r), vt = (r) => {
|
|
2123
2123
|
D1.value.push(r);
|
|
2124
2124
|
}, pt = (r) => S1.value ? r.filter(
|
|
2125
2125
|
(g) => A.value ? g.__VISIBLE__.length : g[s1.value].length
|
|
2126
|
-
) : r.filter((g) => A.value ? g.__VISIBLE__.length : !0),
|
|
2126
|
+
) : r.filter((g) => A.value ? g.__VISIBLE__.length : !0), pe = (r, g = !0) => {
|
|
2127
2127
|
let P = r;
|
|
2128
2128
|
if (A.value && E.value) {
|
|
2129
2129
|
let Q = B1.value;
|
|
2130
2130
|
Q || (Q = (N1, Bi) => {
|
|
2131
|
-
let ke =
|
|
2132
|
-
return y1.value ? ke.startsWith(
|
|
2131
|
+
let ke = be(Qe(N1[v1.value]), F.value);
|
|
2132
|
+
return y1.value ? ke.startsWith(be(A.value, F.value)) : ke.indexOf(be(A.value, F.value)) !== -1;
|
|
2133
2133
|
}), P = P.filter(Q);
|
|
2134
2134
|
}
|
|
2135
2135
|
return i.value && g && (P = P.filter((Q) => !ht(Q))), P;
|
|
2136
|
-
},
|
|
2136
|
+
}, _e = (r) => {
|
|
2137
2137
|
let g = r;
|
|
2138
2138
|
return sn(g) && (g = Object.keys(g).map((P) => {
|
|
2139
2139
|
let Q = g[P];
|
|
2140
2140
|
return { [H.value]: P, [v1.value]: Q, [p.value]: Q };
|
|
2141
2141
|
})), g = g.map((P) => typeof P == "object" ? P : { [H.value]: P, [v1.value]: P, [p.value]: P }), g;
|
|
2142
|
-
},
|
|
2143
|
-
p1(m.value) || (R.value =
|
|
2144
|
-
},
|
|
2142
|
+
}, X1 = () => {
|
|
2143
|
+
p1(m.value) || (R.value = J1(m.value));
|
|
2144
|
+
}, W1 = (r) => (h1.value = !0, new Promise((g, P) => {
|
|
2145
2145
|
n.value(A.value, n1).then((Q) => {
|
|
2146
2146
|
$1.value = Q || [], typeof r == "function" && r(Q), h1.value = !1;
|
|
2147
2147
|
}).catch((Q) => {
|
|
@@ -2149,8 +2149,8 @@ function an(s, e, t) {
|
|
|
2149
2149
|
}).finally(() => {
|
|
2150
2150
|
g();
|
|
2151
2151
|
});
|
|
2152
|
-
})),
|
|
2153
|
-
if (
|
|
2152
|
+
})), me = () => {
|
|
2153
|
+
if (Ce.value)
|
|
2154
2154
|
if (l.value === "single") {
|
|
2155
2155
|
let r = w1(R.value[H.value]);
|
|
2156
2156
|
if (r !== void 0) {
|
|
@@ -2166,8 +2166,8 @@ function an(s, e, t) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
2168
|
}, _t = (r) => {
|
|
2169
|
-
|
|
2170
|
-
},
|
|
2169
|
+
W1(r);
|
|
2170
|
+
}, J1 = (r) => p1(r) ? l.value === "single" ? {} : [] : _.value ? r : l.value === "single" ? w1(r) || (t1.value ? {
|
|
2171
2171
|
[p.value]: r,
|
|
2172
2172
|
[H.value]: r,
|
|
2173
2173
|
[v1.value]: r
|
|
@@ -2176,10 +2176,10 @@ function an(s, e, t) {
|
|
|
2176
2176
|
[H.value]: g,
|
|
2177
2177
|
[v1.value]: g
|
|
2178
2178
|
}), Oe = () => {
|
|
2179
|
-
|
|
2179
|
+
ce.value = d1(A, (r) => {
|
|
2180
2180
|
r.length < h.value || !r && h.value !== 0 || (h1.value = !0, G.value && ($1.value = []), setTimeout(() => {
|
|
2181
2181
|
r == A.value && n.value(A.value, n1).then((g) => {
|
|
2182
|
-
(r == A.value || !A.value) && ($1.value = g, Xe.value = P1.value.filter((P) => P[
|
|
2182
|
+
(r == A.value || !A.value) && ($1.value = g, Xe.value = P1.value.filter((P) => P[Y.value] !== !0)[0] || null, h1.value = !1);
|
|
2183
2183
|
}).catch(
|
|
2184
2184
|
/* istanbul ignore next */
|
|
2185
2185
|
(g) => {
|
|
@@ -2191,56 +2191,56 @@ function an(s, e, t) {
|
|
|
2191
2191
|
};
|
|
2192
2192
|
if (l.value !== "single" && !p1(m.value) && !Array.isArray(m.value))
|
|
2193
2193
|
throw new Error(`v-model must be an array when using "${l.value}" mode`);
|
|
2194
|
-
return n && typeof n.value == "function" ? M.value ? X1
|
|
2195
|
-
|
|
2194
|
+
return n && typeof n.value == "function" ? M.value ? W1(X1) : _.value == !0 && X1() : ($1.value = n.value, X1()), S.value > -1 && Oe(), d1(S, (r, g) => {
|
|
2195
|
+
ce.value && ce.value(), r >= 0 && Oe();
|
|
2196
2196
|
}), d1(m, (r) => {
|
|
2197
2197
|
if (p1(r)) {
|
|
2198
|
-
g1(
|
|
2198
|
+
g1(J1(r), !1);
|
|
2199
2199
|
return;
|
|
2200
2200
|
}
|
|
2201
2201
|
switch (l.value) {
|
|
2202
2202
|
case "single":
|
|
2203
|
-
(_.value ? r[H.value] != R.value[H.value] : r != R.value[H.value]) && g1(
|
|
2203
|
+
(_.value ? r[H.value] != R.value[H.value] : r != R.value[H.value]) && g1(J1(r), !1);
|
|
2204
2204
|
break;
|
|
2205
2205
|
case "multiple":
|
|
2206
2206
|
case "tags":
|
|
2207
|
-
ln(_.value ? r.map((g) => g[H.value]) : r, R.value.map((g) => g[H.value])) || g1(
|
|
2207
|
+
ln(_.value ? r.map((g) => g[H.value]) : r, R.value.map((g) => g[H.value])) || g1(J1(r), !1);
|
|
2208
2208
|
break;
|
|
2209
2209
|
}
|
|
2210
2210
|
}, { deep: !0 }), d1(n, (r, g) => {
|
|
2211
|
-
typeof s.options == "function" ? M.value && (!g || r && r.toString() !== g.toString()) &&
|
|
2212
|
-
}), d1(p,
|
|
2211
|
+
typeof s.options == "function" ? M.value && (!g || r && r.toString() !== g.toString()) && W1() : ($1.value = s.options, Object.keys(R.value).length || X1(), me());
|
|
2212
|
+
}), d1(p, me), {
|
|
2213
2213
|
pfo: Se,
|
|
2214
2214
|
fo: P1,
|
|
2215
2215
|
filteredOptions: P1,
|
|
2216
|
-
hasSelected:
|
|
2216
|
+
hasSelected: Ce,
|
|
2217
2217
|
multipleLabelText: st,
|
|
2218
2218
|
eo: M1,
|
|
2219
2219
|
extendedOptions: M1,
|
|
2220
|
-
eg:
|
|
2221
|
-
extendedGroups:
|
|
2220
|
+
eg: Y1,
|
|
2221
|
+
extendedGroups: Y1,
|
|
2222
2222
|
fg: Ie,
|
|
2223
2223
|
filteredGroups: Ie,
|
|
2224
2224
|
noOptions: lt,
|
|
2225
2225
|
noResults: at,
|
|
2226
2226
|
resolving: h1,
|
|
2227
2227
|
busy: it,
|
|
2228
|
-
offset:
|
|
2228
|
+
offset: de,
|
|
2229
2229
|
select: T1,
|
|
2230
2230
|
deselect: O1,
|
|
2231
2231
|
remove: Ee,
|
|
2232
2232
|
selectAll: ct,
|
|
2233
2233
|
clear: Ae,
|
|
2234
2234
|
isSelected: b1,
|
|
2235
|
-
isDisabled:
|
|
2236
|
-
isMax:
|
|
2235
|
+
isDisabled: fe,
|
|
2236
|
+
isMax: he,
|
|
2237
2237
|
getOption: w1,
|
|
2238
2238
|
handleOptionClick: rt,
|
|
2239
2239
|
handleGroupClick: ut,
|
|
2240
2240
|
handleTagRemove: ot,
|
|
2241
2241
|
refreshOptions: _t,
|
|
2242
|
-
resolveOptions:
|
|
2243
|
-
refreshLabels:
|
|
2242
|
+
resolveOptions: W1,
|
|
2243
|
+
refreshLabels: me
|
|
2244
2244
|
};
|
|
2245
2245
|
}
|
|
2246
2246
|
function nn(s, e, t) {
|
|
@@ -2254,7 +2254,7 @@ function nn(s, e, t) {
|
|
|
2254
2254
|
groupSelect: f,
|
|
2255
2255
|
disabledProp: p,
|
|
2256
2256
|
groupOptions: I
|
|
2257
|
-
} = r1(s), O = t.fo, T = t.fg, _ = t.handleOptionClick, $ = t.handleGroupClick, S = t.search, M = t.pointer, h = t.setPointer, E = t.clearPointer, G = t.multiselect, e1 = t.isOpen, H = v(() => O.value.filter((m) => !m[p.value])), t1 = v(() => T.value.filter((m) => !m[p.value])), b = v(() => d.value !== "single" && f.value), w = v(() => M.value && M.value.group), Z = v(() => n1(M.value)),
|
|
2257
|
+
} = r1(s), O = t.fo, T = t.fg, _ = t.handleOptionClick, $ = t.handleGroupClick, S = t.search, M = t.pointer, h = t.setPointer, E = t.clearPointer, G = t.multiselect, e1 = t.isOpen, H = v(() => O.value.filter((m) => !m[p.value])), t1 = v(() => T.value.filter((m) => !m[p.value])), b = v(() => d.value !== "single" && f.value), w = v(() => M.value && M.value.group), Z = v(() => n1(M.value)), F = v(() => {
|
|
2258
2258
|
const m = w.value ? M.value : (
|
|
2259
2259
|
/* istanbul ignore next */
|
|
2260
2260
|
n1(M.value)
|
|
@@ -2270,9 +2270,9 @@ function nn(s, e, t) {
|
|
|
2270
2270
|
}), J = v(() => {
|
|
2271
2271
|
const m = n1(M.value).__VISIBLE__.filter((A) => !A[p.value]);
|
|
2272
2272
|
return m[m.map((A) => A[n.value]).indexOf(M.value[n.value]) + 1];
|
|
2273
|
-
}), s1 = v(() => [...
|
|
2273
|
+
}), s1 = v(() => [...F.value.__VISIBLE__.filter((m) => !m[p.value])].slice(-1)[0]), S1 = v(() => [...D.value.__VISIBLE__.filter((m) => !m[p.value])].slice(-1)[0]), U = (m) => M.value && (!m.group && M.value[n.value] === m[n.value] || m.group !== void 0 && M.value[a.value] === m[a.value]) ? !0 : void 0, x = () => {
|
|
2274
2274
|
h(H.value[0] || null);
|
|
2275
|
-
},
|
|
2275
|
+
}, Y = () => {
|
|
2276
2276
|
!M.value || M.value[p.value] === !0 || (w.value ? $(M.value) : _(M.value));
|
|
2277
2277
|
}, y1 = () => {
|
|
2278
2278
|
if (M.value === null)
|
|
@@ -2294,7 +2294,7 @@ function nn(s, e, t) {
|
|
|
2294
2294
|
i.value && b.value && (m = S1.value, m === void 0 && (m = D.value)), h(m || null);
|
|
2295
2295
|
} else if (i.value && b.value) {
|
|
2296
2296
|
let m = w.value ? s1.value : i1.value;
|
|
2297
|
-
m === void 0 && (m = w.value ?
|
|
2297
|
+
m === void 0 && (m = w.value ? F.value : Z.value, m.__CREATE__ && (m = s1.value, m === void 0 && (m = F.value))), h(m || /* istanbul ignore next */
|
|
2298
2298
|
null);
|
|
2299
2299
|
} else {
|
|
2300
2300
|
let m = H.value.map((A) => A[n.value]).indexOf(M.value[n.value]) - 1;
|
|
@@ -2327,13 +2327,13 @@ function nn(s, e, t) {
|
|
|
2327
2327
|
canPointGroups: b,
|
|
2328
2328
|
isPointed: U,
|
|
2329
2329
|
setPointerFirst: x,
|
|
2330
|
-
selectPointer:
|
|
2330
|
+
selectPointer: Y,
|
|
2331
2331
|
forwardPointer: y1,
|
|
2332
2332
|
backwardPointer: B1
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
function on(s, e, t) {
|
|
2336
|
-
const { disabled: n } = r1(s), l =
|
|
2336
|
+
const { disabled: n } = r1(s), l = G1().proxy, o = W(!1);
|
|
2337
2337
|
return {
|
|
2338
2338
|
isOpen: o,
|
|
2339
2339
|
open: () => {
|
|
@@ -2398,7 +2398,7 @@ function un(s, e, t) {
|
|
|
2398
2398
|
createTag: I,
|
|
2399
2399
|
createOption: O,
|
|
2400
2400
|
reverse: T
|
|
2401
|
-
} = r1(s), _ =
|
|
2401
|
+
} = r1(s), _ = G1().proxy, $ = t.iv, S = t.update, M = t.search, h = t.setPointer, E = t.selectPointer, G = t.backwardPointer, e1 = t.forwardPointer, H = t.multiselect, t1 = t.wrapper, b = t.tags, w = t.isOpen, Z = t.open, F = t.blur, L = t.fo, D = v(() => I.value || O.value || !1), a1 = v(() => l.value !== void 0 ? l.value : p.value !== void 0 ? p.value : ["enter"]), i1 = () => {
|
|
2402
2402
|
n.value === "tags" && !i.value && D.value && a.value && !f.value && h(L.value[L.value.map((U) => U[d.value]).indexOf(M.value)]);
|
|
2403
2403
|
}, J = (U) => {
|
|
2404
2404
|
let x = U.length - 1;
|
|
@@ -2409,8 +2409,8 @@ function un(s, e, t) {
|
|
|
2409
2409
|
return {
|
|
2410
2410
|
handleKeydown: (U) => {
|
|
2411
2411
|
e.emit("keydown", U, _);
|
|
2412
|
-
let x,
|
|
2413
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(U.key) !== -1 && n.value === "tags" && (x = [...H.value.querySelectorAll("[data-tags] > *")].filter((y1) => y1 !== b.value),
|
|
2412
|
+
let x, Y;
|
|
2413
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(U.key) !== -1 && n.value === "tags" && (x = [...H.value.querySelectorAll("[data-tags] > *")].filter((y1) => y1 !== b.value), Y = x.findIndex((y1) => y1 === document.activeElement)), U.key) {
|
|
2414
2414
|
case "Backspace":
|
|
2415
2415
|
if (n.value === "single" || a.value && [null, ""].indexOf(M.value) === -1 || $.value.length === 0)
|
|
2416
2416
|
return;
|
|
@@ -2419,8 +2419,8 @@ function un(s, e, t) {
|
|
|
2419
2419
|
case "Enter":
|
|
2420
2420
|
if (U.preventDefault(), U.keyCode === 229)
|
|
2421
2421
|
return;
|
|
2422
|
-
if (
|
|
2423
|
-
S([...$.value].filter((y1, B1) => B1 !==
|
|
2422
|
+
if (Y !== -1 && Y !== void 0) {
|
|
2423
|
+
S([...$.value].filter((y1, B1) => B1 !== Y)), Y === x.length - 1 && (x.length - 1 ? x[x.length - 2].focus() : a.value ? b.value.querySelector("input").focus() : t1.value.focus());
|
|
2424
2424
|
return;
|
|
2425
2425
|
}
|
|
2426
2426
|
if (a1.value.indexOf("enter") === -1 && D.value)
|
|
@@ -2446,7 +2446,7 @@ function un(s, e, t) {
|
|
|
2446
2446
|
i1(), E(), U.preventDefault();
|
|
2447
2447
|
break;
|
|
2448
2448
|
case "Escape":
|
|
2449
|
-
|
|
2449
|
+
F();
|
|
2450
2450
|
break;
|
|
2451
2451
|
case "ArrowUp":
|
|
2452
2452
|
if (U.preventDefault(), !i.value)
|
|
@@ -2461,12 +2461,12 @@ function un(s, e, t) {
|
|
|
2461
2461
|
case "ArrowLeft":
|
|
2462
2462
|
if (a.value && b.value && b.value.querySelector("input").selectionStart || U.shiftKey || n.value !== "tags" || !$.value || !$.value.length)
|
|
2463
2463
|
return;
|
|
2464
|
-
U.preventDefault(),
|
|
2464
|
+
U.preventDefault(), Y === -1 ? x[x.length - 1].focus() : Y > 0 && x[Y - 1].focus();
|
|
2465
2465
|
break;
|
|
2466
2466
|
case "ArrowRight":
|
|
2467
|
-
if (
|
|
2467
|
+
if (Y === -1 || U.shiftKey || n.value !== "tags" || !$.value || !$.value.length)
|
|
2468
2468
|
return;
|
|
2469
|
-
U.preventDefault(), x.length >
|
|
2469
|
+
U.preventDefault(), x.length > Y + 1 ? x[Y + 1].focus() : a.value ? b.value.querySelector("input").focus() : a.value || t1.value.focus();
|
|
2470
2470
|
break;
|
|
2471
2471
|
}
|
|
2472
2472
|
},
|
|
@@ -2649,7 +2649,7 @@ function Cn(s, e, t) {
|
|
|
2649
2649
|
}, Z = (L) => {
|
|
2650
2650
|
let D = [];
|
|
2651
2651
|
return D.push(L), D.join(" ");
|
|
2652
|
-
},
|
|
2652
|
+
}, F = (L) => `${L} ❎`;
|
|
2653
2653
|
return Ne(() => {
|
|
2654
2654
|
if (l && l.value && document && document.querySelector) {
|
|
2655
2655
|
let L = document.querySelector(`[for="${l.value}"]`);
|
|
@@ -2667,7 +2667,7 @@ function Cn(s, e, t) {
|
|
|
2667
2667
|
ariaOptionLabel: w,
|
|
2668
2668
|
ariaGroupId: b,
|
|
2669
2669
|
ariaGroupLabel: Z,
|
|
2670
|
-
ariaTagLabel:
|
|
2670
|
+
ariaTagLabel: F
|
|
2671
2671
|
};
|
|
2672
2672
|
}
|
|
2673
2673
|
function fn(s, e, t) {
|
|
@@ -3075,7 +3075,7 @@ function Zn(s, e, t, n, l, o) {
|
|
|
3075
3075
|
id: t.searchable ? t.id : void 0,
|
|
3076
3076
|
onInput: e[0] || (e[0] = (...a) => s.handleSearchInput && s.handleSearchInput(...a)),
|
|
3077
3077
|
onKeypress: e[1] || (e[1] = (...a) => s.handleKeypress && s.handleKeypress(...a)),
|
|
3078
|
-
onPaste: e[2] || (e[2] =
|
|
3078
|
+
onPaste: e[2] || (e[2] = te((...a) => s.handlePaste && s.handlePaste(...a), ["stop"])),
|
|
3079
3079
|
ref: "input",
|
|
3080
3080
|
"aria-controls": s.ariaControls,
|
|
3081
3081
|
"aria-placeholder": s.ariaPlaceholder,
|
|
@@ -3122,7 +3122,7 @@ function Zn(s, e, t, n, l, o) {
|
|
|
3122
3122
|
!t.disabled && !a.disabled ? (c(), C("span", {
|
|
3123
3123
|
key: 0,
|
|
3124
3124
|
class: N(s.classList.tagRemove),
|
|
3125
|
-
onClick:
|
|
3125
|
+
onClick: te((f) => s.handleTagRemove(a, f), ["stop"])
|
|
3126
3126
|
}, [
|
|
3127
3127
|
u(
|
|
3128
3128
|
"span",
|
|
@@ -3167,7 +3167,7 @@ function Zn(s, e, t, n, l, o) {
|
|
|
3167
3167
|
autocomplete: t.autocomplete,
|
|
3168
3168
|
onInput: e[3] || (e[3] = (...a) => s.handleSearchInput && s.handleSearchInput(...a)),
|
|
3169
3169
|
onKeypress: e[4] || (e[4] = (...a) => s.handleKeypress && s.handleKeypress(...a)),
|
|
3170
|
-
onPaste: e[5] || (e[5] =
|
|
3170
|
+
onPaste: e[5] || (e[5] = te((...a) => s.handlePaste && s.handlePaste(...a), ["stop"])),
|
|
3171
3171
|
ref: "input",
|
|
3172
3172
|
"aria-controls": s.ariaControls,
|
|
3173
3173
|
"aria-placeholder": s.ariaPlaceholder,
|
|
@@ -3511,7 +3511,7 @@ f1.__file = "src/Multiselect.vue";
|
|
|
3511
3511
|
const Bn = { class: "ao-modal__wrapper" }, Dn = { class: "ao-modal" }, Pn = { class: "ao-modal__header" }, Nn = { class: "ao-modal__header-meta" }, Un = {
|
|
3512
3512
|
key: 0,
|
|
3513
3513
|
class: "ao-modal__title-group"
|
|
3514
|
-
}, Rn = { class: "ao-modal__body" }, ze = /* @__PURE__ */
|
|
3514
|
+
}, Rn = { class: "ao-modal__body" }, ze = /* @__PURE__ */ X({
|
|
3515
3515
|
__name: "AoModal",
|
|
3516
3516
|
emits: ["close"],
|
|
3517
3517
|
setup(s) {
|
|
@@ -3544,7 +3544,7 @@ const Bn = { class: "ao-modal__wrapper" }, Dn = { class: "ao-modal" }, Pn = { cl
|
|
|
3544
3544
|
const qn = {
|
|
3545
3545
|
key: 0,
|
|
3546
3546
|
class: "ao-activity__category"
|
|
3547
|
-
}, jn = { class: "ao-activity-details__content" }, Kn = { class: "ao-fieldset" }, zn = { class: "ao-field__row" }, Gn = { class: "ao-field ao-field--full" }, xn = { class: "ao-field__label" }, Fn = { class: "ao-field__row" }, Yn = { class: "ao-field" }, Xn = { class: "ao-field__label" }, Wn = { class: "ao-field" }, Jn = { class: "ao-field__label" }, Qn = { class: "ao-field__row" }, ei = { class: "ao-field ao-field--multiselect" }, ti = { class: "ao-field__label" }, si = { class: "ao-fieldset" }, li = { class: "ao-fieldset__title" }, ai = { class: "ao-field__row" }, ni = { class: "ao-field ao-field--multiselect" }, ii = { class: "ao-field__label" }, oi = { class: "ao-field__row" }, ri = { class: "ao-field ao-field--multiselect" }, ui = { class: "ao-field__label" }, ci = { class: "ao-field__row" }, di = { class: "ao-field ao-field--multiselect" }, Ci = { class: "ao-field__label" }, fi = /* @__PURE__ */ u("div", { class: "ao-activity-details__aside" }, null, -1), hi = /* @__PURE__ */
|
|
3547
|
+
}, jn = { class: "ao-activity-details__content" }, Kn = { class: "ao-fieldset" }, zn = { class: "ao-field__row" }, Gn = { class: "ao-field ao-field--full" }, xn = { class: "ao-field__label" }, Fn = { class: "ao-field__row" }, Yn = { class: "ao-field" }, Xn = { class: "ao-field__label" }, Wn = { class: "ao-field" }, Jn = { class: "ao-field__label" }, Qn = { class: "ao-field__row" }, ei = { class: "ao-field ao-field--multiselect" }, ti = { class: "ao-field__label" }, si = { class: "ao-fieldset" }, li = { class: "ao-fieldset__title" }, ai = { class: "ao-field__row" }, ni = { class: "ao-field ao-field--multiselect" }, ii = { class: "ao-field__label" }, oi = { class: "ao-field__row" }, ri = { class: "ao-field ao-field--multiselect" }, ui = { class: "ao-field__label" }, ci = { class: "ao-field__row" }, di = { class: "ao-field ao-field--multiselect" }, Ci = { class: "ao-field__label" }, fi = /* @__PURE__ */ u("div", { class: "ao-activity-details__aside" }, null, -1), hi = /* @__PURE__ */ X({
|
|
3548
3548
|
__name: "AoActivityDetails",
|
|
3549
3549
|
props: {
|
|
3550
3550
|
activity: {},
|
|
@@ -3649,13 +3649,13 @@ const qn = {
|
|
|
3649
3649
|
u("div", zn, [
|
|
3650
3650
|
u("label", Gn, [
|
|
3651
3651
|
u("span", xn, K(_.$t("activity.description.label")), 1),
|
|
3652
|
-
|
|
3652
|
+
se(u("textarea", {
|
|
3653
3653
|
"onUpdate:modelValue": $[0] || ($[0] = (S) => n.value = S),
|
|
3654
3654
|
rows: "4",
|
|
3655
3655
|
class: "ao-field__textarea"
|
|
3656
3656
|
}, null, 512), [
|
|
3657
3657
|
[
|
|
3658
|
-
|
|
3658
|
+
we,
|
|
3659
3659
|
n.value,
|
|
3660
3660
|
void 0,
|
|
3661
3661
|
{
|
|
@@ -3669,14 +3669,14 @@ const qn = {
|
|
|
3669
3669
|
u("div", Fn, [
|
|
3670
3670
|
u("label", Yn, [
|
|
3671
3671
|
u("span", Xn, K(_.$t("activity.estimation.label")), 1),
|
|
3672
|
-
|
|
3672
|
+
se(u("input", {
|
|
3673
3673
|
"onUpdate:modelValue": $[1] || ($[1] = (S) => l.value = S),
|
|
3674
3674
|
class: "ao-field__input",
|
|
3675
3675
|
type: "number",
|
|
3676
3676
|
min: "0"
|
|
3677
3677
|
}, null, 512), [
|
|
3678
3678
|
[
|
|
3679
|
-
|
|
3679
|
+
we,
|
|
3680
3680
|
l.value,
|
|
3681
3681
|
void 0,
|
|
3682
3682
|
{
|
|
@@ -3688,7 +3688,7 @@ const qn = {
|
|
|
3688
3688
|
]),
|
|
3689
3689
|
u("label", Wn, [
|
|
3690
3690
|
u("span", Jn, K(_.$t("activity.isImportant.label")), 1),
|
|
3691
|
-
|
|
3691
|
+
se(u("input", {
|
|
3692
3692
|
"onUpdate:modelValue": $[2] || ($[2] = (S) => o.value = S),
|
|
3693
3693
|
class: "ao-field__input",
|
|
3694
3694
|
type: "checkbox"
|
|
@@ -3775,7 +3775,7 @@ const qn = {
|
|
|
3775
3775
|
}));
|
|
3776
3776
|
}
|
|
3777
3777
|
});
|
|
3778
|
-
const vi = /* @__PURE__ */
|
|
3778
|
+
const vi = /* @__PURE__ */ X({
|
|
3779
3779
|
__name: "AoRuleLine",
|
|
3780
3780
|
props: {
|
|
3781
3781
|
rule: {},
|
|
@@ -3786,7 +3786,7 @@ const vi = /* @__PURE__ */ Y({
|
|
|
3786
3786
|
},
|
|
3787
3787
|
emits: ["update:rule", "close"],
|
|
3788
3788
|
setup(s, { emit: e }) {
|
|
3789
|
-
const t = s, n =
|
|
3789
|
+
const t = s, n = ge(
|
|
3790
3790
|
t.rule.subItemType || c1.ACTIVITIES
|
|
3791
3791
|
), l = v({
|
|
3792
3792
|
get() {
|
|
@@ -3820,14 +3820,14 @@ const vi = /* @__PURE__ */ Y({
|
|
|
3820
3820
|
value: E.id,
|
|
3821
3821
|
label: E.name
|
|
3822
3822
|
}));
|
|
3823
|
-
}), d =
|
|
3823
|
+
}), d = ge(t.rule.comparator), f = v({
|
|
3824
3824
|
get() {
|
|
3825
3825
|
return d.value;
|
|
3826
3826
|
},
|
|
3827
3827
|
set(M) {
|
|
3828
3828
|
e("update:rule", { ...t.rule, comparator: M });
|
|
3829
3829
|
}
|
|
3830
|
-
}), p = v(() => Object.values(j0)), I =
|
|
3830
|
+
}), p = v(() => Object.values(j0)), I = ge(t.rule.trigger), O = v({
|
|
3831
3831
|
get() {
|
|
3832
3832
|
return I.value;
|
|
3833
3833
|
},
|
|
@@ -3849,7 +3849,7 @@ const vi = /* @__PURE__ */ Y({
|
|
|
3849
3849
|
e("update:rule", { ...t.rule, durationUnit: M });
|
|
3850
3850
|
}
|
|
3851
3851
|
}), S = v(() => Object.values(z0));
|
|
3852
|
-
return (M, h) => (c(), q(
|
|
3852
|
+
return (M, h) => (c(), q(z1(M.tagName), { class: "ao-rule-line" }, {
|
|
3853
3853
|
default: z(() => [
|
|
3854
3854
|
B(l1(f1), {
|
|
3855
3855
|
modelValue: l.value,
|
|
@@ -3871,13 +3871,13 @@ const vi = /* @__PURE__ */ Y({
|
|
|
3871
3871
|
"onUpdate:modelValue": h[3] || (h[3] = (E) => f.value = E),
|
|
3872
3872
|
options: p.value
|
|
3873
3873
|
}, null, 8, ["modelValue", "options"]),
|
|
3874
|
-
|
|
3874
|
+
se(u("input", {
|
|
3875
3875
|
"onUpdate:modelValue": h[4] || (h[4] = (E) => _.value = E),
|
|
3876
3876
|
type: "number",
|
|
3877
3877
|
min: "0"
|
|
3878
3878
|
}, null, 512), [
|
|
3879
3879
|
[
|
|
3880
|
-
|
|
3880
|
+
we,
|
|
3881
3881
|
_.value,
|
|
3882
3882
|
void 0,
|
|
3883
3883
|
{ number: !0 }
|
|
@@ -3899,7 +3899,7 @@ const vi = /* @__PURE__ */ Y({
|
|
|
3899
3899
|
}));
|
|
3900
3900
|
}
|
|
3901
3901
|
});
|
|
3902
|
-
const pi = { class: "ao-template-rules__body" }, _i = { class: "ao-template-rules__list" }, mi = /* @__PURE__ */
|
|
3902
|
+
const pi = { class: "ao-template-rules__body" }, _i = { class: "ao-template-rules__list" }, mi = /* @__PURE__ */ X({
|
|
3903
3903
|
__name: "AoTemplateRules",
|
|
3904
3904
|
props: {
|
|
3905
3905
|
templateId: {},
|
|
@@ -3935,7 +3935,7 @@ const pi = { class: "ao-template-rules__body" }, _i = { class: "ao-template-rule
|
|
|
3935
3935
|
onClose: () => n(a.id)
|
|
3936
3936
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
3937
3937
|
]),
|
|
3938
|
-
B(
|
|
3938
|
+
B(ne, {
|
|
3939
3939
|
label: l.$t("template.rules.add"),
|
|
3940
3940
|
"icon-name": "Add",
|
|
3941
3941
|
onClick: t
|
|
@@ -3946,538 +3946,256 @@ const pi = { class: "ao-template-rules__body" }, _i = { class: "ao-template-rule
|
|
|
3946
3946
|
}));
|
|
3947
3947
|
}
|
|
3948
3948
|
});
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3949
|
+
var C1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, K1 = {}, Ge = {}, U1 = {}, x1 = {}, Z1 = {}, ie = {};
|
|
3950
|
+
Object.defineProperty(ie, "__esModule", { value: !0 });
|
|
3951
|
+
ie.lexoHelper = void 0;
|
|
3952
|
+
ie.lexoHelper = {
|
|
3953
|
+
arrayCopy: gi
|
|
3954
|
+
};
|
|
3955
|
+
function gi(s, e, t, n, l) {
|
|
3956
|
+
let o = n;
|
|
3957
|
+
const a = e + l;
|
|
3958
|
+
for (let i = e; i < a; i++)
|
|
3959
|
+
t[o] = s[i], ++o;
|
|
3960
|
+
}
|
|
3961
|
+
var F1 = {};
|
|
3962
|
+
Object.defineProperty(F1, "__esModule", { value: !0 });
|
|
3963
|
+
class bi {
|
|
3964
|
+
constructor(e = "") {
|
|
3965
|
+
this.str = e;
|
|
3966
|
+
}
|
|
3967
|
+
get length() {
|
|
3968
|
+
return this.str.length;
|
|
3969
|
+
}
|
|
3970
|
+
set length(e) {
|
|
3971
|
+
this.str = this.str.substring(0, e);
|
|
3972
|
+
}
|
|
3973
|
+
append(e) {
|
|
3974
|
+
return this.str = this.str + e, this;
|
|
3975
|
+
}
|
|
3976
|
+
remove(e, t) {
|
|
3977
|
+
return this.str = this.str.substr(0, e) + this.str.substr(e + t), this;
|
|
3978
|
+
}
|
|
3979
|
+
insert(e, t) {
|
|
3980
|
+
return this.str = this.str.substr(0, e) + t + this.str.substr(e), this;
|
|
3981
|
+
}
|
|
3982
|
+
toString() {
|
|
3983
|
+
return this.str;
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
F1.default = bi;
|
|
3987
|
+
Object.defineProperty(Z1, "__esModule", { value: !0 });
|
|
3988
|
+
Z1.LexoInteger = void 0;
|
|
3989
|
+
const Q1 = ie, wi = F1;
|
|
3990
|
+
class k {
|
|
3991
|
+
constructor(e, t, n) {
|
|
3992
|
+
this.sys = e, this.sign = t, this.mag = n;
|
|
3993
|
+
}
|
|
3994
|
+
static parse(e, t) {
|
|
3995
|
+
let n = e, l = 1;
|
|
3996
|
+
e.indexOf(t.getPositiveChar()) === 0 ? n = e.substring(1) : e.indexOf(t.getNegativeChar()) === 0 && (n = e.substring(1), l = -1);
|
|
3997
|
+
const o = new Array(n.length);
|
|
3998
|
+
let a = o.length - 1;
|
|
3999
|
+
for (let i = 0; a >= 0; ++i)
|
|
4000
|
+
o[i] = t.toDigit(n.charAt(a)), --a;
|
|
4001
|
+
return k.make(t, l, o);
|
|
4002
|
+
}
|
|
4003
|
+
static zero(e) {
|
|
4004
|
+
return new k(e, 0, k.ZERO_MAG);
|
|
4005
|
+
}
|
|
4006
|
+
static one(e) {
|
|
4007
|
+
return k.make(e, 1, k.ONE_MAG);
|
|
4008
|
+
}
|
|
4009
|
+
static make(e, t, n) {
|
|
4010
|
+
let l;
|
|
4011
|
+
for (l = n.length; l > 0 && n[l - 1] === 0; --l)
|
|
4012
|
+
;
|
|
4013
|
+
if (l === 0)
|
|
4014
|
+
return k.zero(e);
|
|
4015
|
+
if (l === n.length)
|
|
4016
|
+
return new k(e, t, n);
|
|
4017
|
+
const o = new Array(l).fill(0);
|
|
4018
|
+
return Q1.lexoHelper.arrayCopy(n, 0, o, 0, l), new k(e, t, o);
|
|
4019
|
+
}
|
|
4020
|
+
static add(e, t, n) {
|
|
4021
|
+
const l = Math.max(t.length, n.length), o = new Array(l).fill(0);
|
|
4022
|
+
let a = 0;
|
|
4023
|
+
for (let i = 0; i < l; ++i) {
|
|
4024
|
+
const d = i < t.length ? t[i] : 0, f = i < n.length ? n[i] : 0;
|
|
4025
|
+
let p = d + f + a;
|
|
4026
|
+
for (a = 0; p >= e.getBase(); p -= e.getBase())
|
|
4027
|
+
++a;
|
|
4028
|
+
o[i] = p;
|
|
4029
|
+
}
|
|
4030
|
+
return k.extendWithCarry(o, a);
|
|
4031
|
+
}
|
|
4032
|
+
static extendWithCarry(e, t) {
|
|
4033
|
+
if (t > 0) {
|
|
4034
|
+
const n = new Array(e.length + 1).fill(0);
|
|
4035
|
+
return Q1.lexoHelper.arrayCopy(e, 0, n, 0, e.length), n[n.length - 1] = t, n;
|
|
4036
|
+
}
|
|
4037
|
+
return e;
|
|
4038
|
+
}
|
|
4039
|
+
static subtract(e, t, n) {
|
|
4040
|
+
const l = k.complement(e, n, t.length), o = k.add(e, t, l);
|
|
4041
|
+
return o[o.length - 1] = 0, k.add(e, o, k.ONE_MAG);
|
|
4042
|
+
}
|
|
4043
|
+
static multiply(e, t, n) {
|
|
4044
|
+
const l = new Array(t.length + n.length).fill(0);
|
|
4045
|
+
for (let o = 0; o < t.length; ++o)
|
|
4046
|
+
for (let a = 0; a < n.length; ++a) {
|
|
4047
|
+
const i = o + a;
|
|
4048
|
+
for (l[i] += t[o] * n[a]; l[i] >= e.getBase(); l[i] -= e.getBase())
|
|
4049
|
+
++l[i + 1];
|
|
3968
4050
|
}
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
4051
|
+
return l;
|
|
4052
|
+
}
|
|
4053
|
+
static complement(e, t, n) {
|
|
4054
|
+
if (n <= 0)
|
|
4055
|
+
throw new Error("Expected at least 1 digit");
|
|
4056
|
+
const l = new Array(n).fill(e.getBase() - 1);
|
|
4057
|
+
for (let o = 0; o < t.length; ++o)
|
|
4058
|
+
l[o] = e.getBase() - 1 - t[o];
|
|
4059
|
+
return l;
|
|
4060
|
+
}
|
|
4061
|
+
static compare(e, t) {
|
|
4062
|
+
if (e.length < t.length)
|
|
4063
|
+
return -1;
|
|
4064
|
+
if (e.length > t.length)
|
|
4065
|
+
return 1;
|
|
4066
|
+
for (let n = e.length - 1; n >= 0; --n) {
|
|
4067
|
+
if (e[n] < t[n])
|
|
4068
|
+
return -1;
|
|
4069
|
+
if (e[n] > t[n])
|
|
4070
|
+
return 1;
|
|
4071
|
+
}
|
|
4072
|
+
return 0;
|
|
4073
|
+
}
|
|
4074
|
+
add(e) {
|
|
4075
|
+
if (this.checkSystem(e), this.isZero())
|
|
4076
|
+
return e;
|
|
4077
|
+
if (e.isZero())
|
|
4078
|
+
return this;
|
|
4079
|
+
if (this.sign !== e.sign) {
|
|
4080
|
+
let n;
|
|
4081
|
+
return this.sign === -1 ? (n = this.negate(), n.subtract(e).negate()) : (n = e.negate(), this.subtract(n));
|
|
4082
|
+
}
|
|
4083
|
+
const t = k.add(this.sys, this.mag, e.mag);
|
|
4084
|
+
return k.make(this.sys, this.sign, t);
|
|
4085
|
+
}
|
|
4086
|
+
subtract(e) {
|
|
4087
|
+
if (this.checkSystem(e), this.isZero())
|
|
4088
|
+
return e.negate();
|
|
4089
|
+
if (e.isZero())
|
|
4090
|
+
return this;
|
|
4091
|
+
if (this.sign !== e.sign) {
|
|
4092
|
+
let n;
|
|
4093
|
+
return this.sign === -1 ? (n = this.negate(), n.add(e).negate()) : (n = e.negate(), this.add(n));
|
|
4094
|
+
}
|
|
4095
|
+
const t = k.compare(this.mag, e.mag);
|
|
4096
|
+
return t === 0 ? k.zero(this.sys) : t < 0 ? k.make(this.sys, this.sign === -1 ? 1 : -1, k.subtract(this.sys, e.mag, this.mag)) : k.make(this.sys, this.sign === -1 ? -1 : 1, k.subtract(this.sys, this.mag, e.mag));
|
|
4097
|
+
}
|
|
4098
|
+
multiply(e) {
|
|
4099
|
+
if (this.checkSystem(e), this.isZero())
|
|
4100
|
+
return this;
|
|
4101
|
+
if (e.isZero())
|
|
4102
|
+
return e;
|
|
4103
|
+
if (this.isOneish())
|
|
4104
|
+
return this.sign === e.sign ? k.make(this.sys, 1, e.mag) : k.make(this.sys, -1, e.mag);
|
|
4105
|
+
if (e.isOneish())
|
|
4106
|
+
return this.sign === e.sign ? k.make(this.sys, 1, this.mag) : k.make(this.sys, -1, this.mag);
|
|
4107
|
+
const t = k.multiply(this.sys, this.mag, e.mag);
|
|
4108
|
+
return this.sign === e.sign ? k.make(this.sys, 1, t) : k.make(this.sys, -1, t);
|
|
4109
|
+
}
|
|
4110
|
+
negate() {
|
|
4111
|
+
return this.isZero() ? this : k.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
|
|
4112
|
+
}
|
|
4113
|
+
shiftLeft(e = 1) {
|
|
4114
|
+
if (e === 0)
|
|
4115
|
+
return this;
|
|
4116
|
+
if (e < 0)
|
|
4117
|
+
return this.shiftRight(Math.abs(e));
|
|
4118
|
+
const t = new Array(this.mag.length + e).fill(0);
|
|
4119
|
+
return Q1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), k.make(this.sys, this.sign, t);
|
|
4120
|
+
}
|
|
4121
|
+
shiftRight(e = 1) {
|
|
4122
|
+
if (this.mag.length - e <= 0)
|
|
4123
|
+
return k.zero(this.sys);
|
|
4124
|
+
const t = new Array(this.mag.length - e).fill(0);
|
|
4125
|
+
return Q1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), k.make(this.sys, this.sign, t);
|
|
4126
|
+
}
|
|
4127
|
+
complement() {
|
|
4128
|
+
return this.complementDigits(this.mag.length);
|
|
4129
|
+
}
|
|
4130
|
+
complementDigits(e) {
|
|
4131
|
+
return k.make(this.sys, this.sign, k.complement(this.sys, this.mag, e));
|
|
4132
|
+
}
|
|
4133
|
+
isZero() {
|
|
4134
|
+
return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
|
|
4135
|
+
}
|
|
4136
|
+
isOne() {
|
|
4137
|
+
return this.sign === 1 && this.mag.length === 1 && this.mag[0] === 1;
|
|
4138
|
+
}
|
|
4139
|
+
getMag(e) {
|
|
4140
|
+
return this.mag[e];
|
|
4141
|
+
}
|
|
4142
|
+
compareTo(e) {
|
|
4143
|
+
if (this === e)
|
|
4144
|
+
return 0;
|
|
4145
|
+
if (!e)
|
|
4146
|
+
return 1;
|
|
4147
|
+
if (this.sign === -1) {
|
|
4148
|
+
if (e.sign === -1) {
|
|
4149
|
+
const t = k.compare(this.mag, e.mag);
|
|
4150
|
+
return t === -1 ? 1 : t === 1 ? -1 : 0;
|
|
3977
4151
|
}
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
}), a = v(() => {
|
|
3982
|
-
var b, w;
|
|
3983
|
-
return (w = (b = o.value) == null ? void 0 : b.milestones) == null ? void 0 : w.find(
|
|
3984
|
-
(Z) => Z.id === t.milestoneId
|
|
3985
|
-
);
|
|
3986
|
-
}), i = v(() => {
|
|
3987
|
-
var b, w;
|
|
3988
|
-
return ((w = (b = n.value) == null ? void 0 : b.phases) == null ? void 0 : w.reduce((Z, X) => {
|
|
3989
|
-
const L = X.milestones || [];
|
|
3990
|
-
return [...Z, ...L];
|
|
3991
|
-
}, [])) || [];
|
|
3992
|
-
}), d = v(() => {
|
|
3993
|
-
var b, w;
|
|
3994
|
-
return ((w = (b = n.value) == null ? void 0 : b.phases) == null ? void 0 : w.reduce((Z, X) => {
|
|
3995
|
-
const D = (X.milestones || []).reduce(
|
|
3996
|
-
(a1, i1) => i1.activities ? [...a1, ...i1.activities] : a1,
|
|
3997
|
-
[]
|
|
3998
|
-
);
|
|
3999
|
-
return [...Z, ...D];
|
|
4000
|
-
}, [])) || [];
|
|
4001
|
-
}), f = v(() => {
|
|
4002
|
-
var b, w;
|
|
4003
|
-
return (w = (b = a.value) == null ? void 0 : b.activities) == null ? void 0 : w.find(
|
|
4004
|
-
(Z) => Z.id === t.activityId
|
|
4005
|
-
);
|
|
4006
|
-
}), p = v(() => {
|
|
4007
|
-
var b;
|
|
4008
|
-
return ((b = t.activityTypes) == null ? void 0 : b.map((w) => ({
|
|
4009
|
-
label: w,
|
|
4010
|
-
value: w
|
|
4011
|
-
}))) || [];
|
|
4012
|
-
}), I = v(() => {
|
|
4013
|
-
var b;
|
|
4014
|
-
return ((b = n.value) == null ? void 0 : b.name) || t.templateId;
|
|
4015
|
-
}), O = W(!1), T = () => {
|
|
4016
|
-
e("addItem", {
|
|
4017
|
-
type: c1.PHASES,
|
|
4018
|
-
templateId: t.templateId
|
|
4019
|
-
});
|
|
4020
|
-
}, _ = (b, w) => {
|
|
4021
|
-
e("updateItem", {
|
|
4022
|
-
templateId: t.templateId,
|
|
4023
|
-
id: b,
|
|
4024
|
-
subItemType: c1.PHASES,
|
|
4025
|
-
data: { name: w }
|
|
4026
|
-
});
|
|
4027
|
-
}, $ = (b) => {
|
|
4028
|
-
e("updateItem", b);
|
|
4029
|
-
}, S = (b) => {
|
|
4030
|
-
const { phaseId: w } = b;
|
|
4031
|
-
e("addItem", {
|
|
4032
|
-
type: c1.MILESTONES,
|
|
4033
|
-
templateId: t.templateId,
|
|
4034
|
-
phaseId: w
|
|
4035
|
-
});
|
|
4036
|
-
}, M = (b) => {
|
|
4037
|
-
const { id: w, ...Z } = b;
|
|
4038
|
-
e("updateItem", {
|
|
4039
|
-
subItemType: c1.MILESTONES,
|
|
4040
|
-
id: w,
|
|
4041
|
-
templateId: t.templateId,
|
|
4042
|
-
data: Z
|
|
4043
|
-
});
|
|
4044
|
-
}, h = (b) => {
|
|
4045
|
-
const { phaseId: w, milestoneId: Z } = b;
|
|
4046
|
-
e("addItem", {
|
|
4047
|
-
type: c1.ACTIVITIES,
|
|
4048
|
-
templateId: t.templateId,
|
|
4049
|
-
phaseId: w,
|
|
4050
|
-
milestoneId: Z
|
|
4051
|
-
});
|
|
4052
|
-
}, E = (b) => {
|
|
4053
|
-
const { id: w, ...Z } = b;
|
|
4054
|
-
e("updateItem", {
|
|
4055
|
-
subItemType: c1.ACTIVITIES,
|
|
4056
|
-
id: w,
|
|
4057
|
-
templateId: t.templateId,
|
|
4058
|
-
data: Z
|
|
4059
|
-
});
|
|
4060
|
-
}, G = W(!1), e1 = () => {
|
|
4061
|
-
G.value = !G.value;
|
|
4062
|
-
}, H = () => {
|
|
4063
|
-
e("addRule", { templateId: t.templateId });
|
|
4064
|
-
}, t1 = (b) => {
|
|
4065
|
-
e("removeRule", { id: b, templateId: t.templateId });
|
|
4066
|
-
};
|
|
4067
|
-
return (b, w) => {
|
|
4068
|
-
var Z, X, L, D, a1, i1;
|
|
4069
|
-
return n.value ? (c(), C("div", gi, [
|
|
4070
|
-
B(Ke, {
|
|
4071
|
-
"can-go-back": !0,
|
|
4072
|
-
onGoBack: w[2] || (w[2] = (J) => b.$router.push({ name: l1(j1).TEMPLATES_LIST }))
|
|
4073
|
-
}, {
|
|
4074
|
-
primary: z(() => [
|
|
4075
|
-
B(L1, {
|
|
4076
|
-
title: I.value,
|
|
4077
|
-
level: 2,
|
|
4078
|
-
"is-editing": O.value,
|
|
4079
|
-
onToggleIsEditing: w[0] || (w[0] = (J) => {
|
|
4080
|
-
O.value = J;
|
|
4081
|
-
}),
|
|
4082
|
-
"onUpdate:title": w[1] || (w[1] = (J) => {
|
|
4083
|
-
I.value = J;
|
|
4084
|
-
})
|
|
4085
|
-
}, null, 8, ["title", "is-editing"])
|
|
4086
|
-
]),
|
|
4087
|
-
secondary: z(() => [
|
|
4088
|
-
B(k1, {
|
|
4089
|
-
label: b.$t("template.rules.edit"),
|
|
4090
|
-
color: "primary",
|
|
4091
|
-
"icon-name": "Settings",
|
|
4092
|
-
"icon-position": "start",
|
|
4093
|
-
onClick: e1
|
|
4094
|
-
}, null, 8, ["label"])
|
|
4095
|
-
]),
|
|
4096
|
-
_: 1
|
|
4097
|
-
}),
|
|
4098
|
-
u("div", bi, [
|
|
4099
|
-
u("ol", wi, [
|
|
4100
|
-
u("li", yi, [
|
|
4101
|
-
B(l1(se), {
|
|
4102
|
-
modelValue: l.value,
|
|
4103
|
-
"onUpdate:modelValue": w[3] || (w[3] = (J) => l.value = J),
|
|
4104
|
-
class: "ao-templates__list",
|
|
4105
|
-
"item-key": "id",
|
|
4106
|
-
handle: ".ao-card__drag"
|
|
4107
|
-
}, {
|
|
4108
|
-
header: z(() => [
|
|
4109
|
-
B(L1, {
|
|
4110
|
-
title: b.$t("template.phases.title"),
|
|
4111
|
-
level: 3,
|
|
4112
|
-
class: "ao-list__title"
|
|
4113
|
-
}, null, 8, ["title"])
|
|
4114
|
-
]),
|
|
4115
|
-
item: z(({ element: J }) => {
|
|
4116
|
-
var s1;
|
|
4117
|
-
return [
|
|
4118
|
-
B(R0, {
|
|
4119
|
-
id: J.id,
|
|
4120
|
-
name: J.name,
|
|
4121
|
-
milestones: J.milestones,
|
|
4122
|
-
"is-active": ((s1 = o.value) == null ? void 0 : s1.id) === J.id,
|
|
4123
|
-
"is-draggable": !0,
|
|
4124
|
-
onClick: (S1) => b.$router.push({
|
|
4125
|
-
params: { templateId: b.templateId, phaseId: J.id }
|
|
4126
|
-
}),
|
|
4127
|
-
"onUpdate:title": (S1) => {
|
|
4128
|
-
_(J.id, S1);
|
|
4129
|
-
}
|
|
4130
|
-
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title"])
|
|
4131
|
-
];
|
|
4132
|
-
}),
|
|
4133
|
-
footer: z(() => [
|
|
4134
|
-
u("div", $i, [
|
|
4135
|
-
B(ae, {
|
|
4136
|
-
"icon-name": "AddBoxOutlineRounded",
|
|
4137
|
-
label: b.$t("template.phases.add"),
|
|
4138
|
-
onClick: T
|
|
4139
|
-
}, null, 8, ["label"])
|
|
4140
|
-
])
|
|
4141
|
-
]),
|
|
4142
|
-
_: 1
|
|
4143
|
-
}, 8, ["modelValue"])
|
|
4144
|
-
]),
|
|
4145
|
-
u("li", Mi, [
|
|
4146
|
-
o.value ? (c(), q(F0, {
|
|
4147
|
-
key: 0,
|
|
4148
|
-
"template-id": b.templateId,
|
|
4149
|
-
phase: o.value,
|
|
4150
|
-
"milestone-id": (Z = a.value) == null ? void 0 : Z.id,
|
|
4151
|
-
onAddMilestone: S,
|
|
4152
|
-
onUpdateMilestone: M,
|
|
4153
|
-
onUpdatePhase: $
|
|
4154
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) : V("", !0)
|
|
4155
|
-
]),
|
|
4156
|
-
u("li", Vi, [
|
|
4157
|
-
o.value && a.value ? (c(), q(W0, {
|
|
4158
|
-
key: 0,
|
|
4159
|
-
"template-id": b.templateId,
|
|
4160
|
-
"phase-id": (X = o.value) == null ? void 0 : X.id,
|
|
4161
|
-
milestone: a.value,
|
|
4162
|
-
"activity-id": (L = f.value) == null ? void 0 : L.id,
|
|
4163
|
-
onAddActivity: h,
|
|
4164
|
-
onUpdateActivity: E,
|
|
4165
|
-
onUpdateMilestone: M
|
|
4166
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : V("", !0)
|
|
4167
|
-
])
|
|
4168
|
-
])
|
|
4169
|
-
]),
|
|
4170
|
-
(c(), q(Be, { to: "body" }, [
|
|
4171
|
-
f.value ? (c(), q(hi, {
|
|
4172
|
-
key: 0,
|
|
4173
|
-
activity: f.value,
|
|
4174
|
-
"activity-types": p.value,
|
|
4175
|
-
breadcrumbs: `${n.value.name} / ${(D = o.value) == null ? void 0 : D.name} / ${(a1 = a.value) == null ? void 0 : a1.name}`,
|
|
4176
|
-
"milestone-id": (i1 = a.value) == null ? void 0 : i1.id,
|
|
4177
|
-
"template-activities": d.value,
|
|
4178
|
-
"template-milestones": i.value,
|
|
4179
|
-
"onUpdate:activity": w[4] || (w[4] = (J) => {
|
|
4180
|
-
b.phaseId && b.milestoneId && f.value && E({
|
|
4181
|
-
...J,
|
|
4182
|
-
phaseId: b.phaseId,
|
|
4183
|
-
milestoneId: b.milestoneId,
|
|
4184
|
-
order: f.value.order
|
|
4185
|
-
});
|
|
4186
|
-
}),
|
|
4187
|
-
onClose: b.$router.back
|
|
4188
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : V("", !0)
|
|
4189
|
-
])),
|
|
4190
|
-
(c(), q(Be, { to: "body" }, [
|
|
4191
|
-
G.value ? (c(), q(mi, {
|
|
4192
|
-
key: 0,
|
|
4193
|
-
"template-id": n.value.id,
|
|
4194
|
-
rules: n.value.rules || [],
|
|
4195
|
-
"template-phases": n.value.phases,
|
|
4196
|
-
"template-milestones": i.value,
|
|
4197
|
-
"template-activities": d.value,
|
|
4198
|
-
onClose: e1,
|
|
4199
|
-
onAddRule: H,
|
|
4200
|
-
onRemoveRule: t1
|
|
4201
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : V("", !0)
|
|
4202
|
-
]))
|
|
4203
|
-
])) : V("", !0);
|
|
4204
|
-
};
|
|
4205
|
-
}
|
|
4206
|
-
});
|
|
4207
|
-
const j1 = {
|
|
4208
|
-
TEMPLATES: "templates",
|
|
4209
|
-
TEMPLATE_DETAILS: "template_details",
|
|
4210
|
-
TEMPLATES_LIST: "templates_list"
|
|
4211
|
-
}, zi = (s, e = {}) => [
|
|
4212
|
-
{
|
|
4213
|
-
path: s,
|
|
4214
|
-
name: j1.TEMPLATES,
|
|
4215
|
-
...e,
|
|
4216
|
-
children: [
|
|
4217
|
-
{
|
|
4218
|
-
path: "",
|
|
4219
|
-
name: j1.TEMPLATES_LIST,
|
|
4220
|
-
component: Zi
|
|
4221
|
-
},
|
|
4222
|
-
{
|
|
4223
|
-
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
4224
|
-
name: j1.TEMPLATE_DETAILS,
|
|
4225
|
-
component: Li,
|
|
4226
|
-
props: !0
|
|
4227
|
-
}
|
|
4228
|
-
]
|
|
4229
|
-
}
|
|
4230
|
-
];
|
|
4231
|
-
var C1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, we = {}, Ge = {}, U1 = {}, G1 = {}, Z1 = {}, ne = {};
|
|
4232
|
-
Object.defineProperty(ne, "__esModule", { value: !0 });
|
|
4233
|
-
ne.lexoHelper = void 0;
|
|
4234
|
-
ne.lexoHelper = {
|
|
4235
|
-
arrayCopy: Si
|
|
4236
|
-
};
|
|
4237
|
-
function Si(s, e, t, n, l) {
|
|
4238
|
-
let o = n;
|
|
4239
|
-
const a = e + l;
|
|
4240
|
-
for (let i = e; i < a; i++)
|
|
4241
|
-
t[o] = s[i], ++o;
|
|
4242
|
-
}
|
|
4243
|
-
var x1 = {};
|
|
4244
|
-
Object.defineProperty(x1, "__esModule", { value: !0 });
|
|
4245
|
-
class Ii {
|
|
4246
|
-
constructor(e = "") {
|
|
4247
|
-
this.str = e;
|
|
4152
|
+
return -1;
|
|
4153
|
+
}
|
|
4154
|
+
return this.sign === 1 ? e.sign === 1 ? k.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
|
|
4248
4155
|
}
|
|
4249
|
-
|
|
4250
|
-
return this.
|
|
4156
|
+
getSystem() {
|
|
4157
|
+
return this.sys;
|
|
4251
4158
|
}
|
|
4252
|
-
|
|
4253
|
-
|
|
4159
|
+
format() {
|
|
4160
|
+
if (this.isZero())
|
|
4161
|
+
return "" + this.sys.toChar(0);
|
|
4162
|
+
const e = new wi.default(), t = this.mag, n = t.length;
|
|
4163
|
+
for (let l = 0; l < n; ++l) {
|
|
4164
|
+
const o = t[l];
|
|
4165
|
+
e.insert(0, this.sys.toChar(o));
|
|
4166
|
+
}
|
|
4167
|
+
return this.sign === -1 && e.insert(0, this.sys.getNegativeChar()), e.toString();
|
|
4254
4168
|
}
|
|
4255
|
-
|
|
4256
|
-
return this
|
|
4169
|
+
equals(e) {
|
|
4170
|
+
return this === e ? !0 : e ? this.sys.getBase() === e.sys.getBase() && this.compareTo(e) === 0 : !1;
|
|
4257
4171
|
}
|
|
4258
|
-
|
|
4259
|
-
return this.
|
|
4172
|
+
toString() {
|
|
4173
|
+
return this.format();
|
|
4260
4174
|
}
|
|
4261
|
-
|
|
4262
|
-
return this.
|
|
4175
|
+
isOneish() {
|
|
4176
|
+
return this.mag.length === 1 && this.mag[0] === 1;
|
|
4263
4177
|
}
|
|
4264
|
-
|
|
4265
|
-
|
|
4178
|
+
checkSystem(e) {
|
|
4179
|
+
if (this.sys.getBase() !== e.sys.getBase())
|
|
4180
|
+
throw new Error("Expected numbers of same numeral sys");
|
|
4266
4181
|
}
|
|
4267
4182
|
}
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
return
|
|
4284
|
-
}
|
|
4285
|
-
static zero(e) {
|
|
4286
|
-
return new k(e, 0, k.ZERO_MAG);
|
|
4287
|
-
}
|
|
4288
|
-
static one(e) {
|
|
4289
|
-
return k.make(e, 1, k.ONE_MAG);
|
|
4290
|
-
}
|
|
4291
|
-
static make(e, t, n) {
|
|
4292
|
-
let l;
|
|
4293
|
-
for (l = n.length; l > 0 && n[l - 1] === 0; --l)
|
|
4294
|
-
;
|
|
4295
|
-
if (l === 0)
|
|
4296
|
-
return k.zero(e);
|
|
4297
|
-
if (l === n.length)
|
|
4298
|
-
return new k(e, t, n);
|
|
4299
|
-
const o = new Array(l).fill(0);
|
|
4300
|
-
return J1.lexoHelper.arrayCopy(n, 0, o, 0, l), new k(e, t, o);
|
|
4301
|
-
}
|
|
4302
|
-
static add(e, t, n) {
|
|
4303
|
-
const l = Math.max(t.length, n.length), o = new Array(l).fill(0);
|
|
4304
|
-
let a = 0;
|
|
4305
|
-
for (let i = 0; i < l; ++i) {
|
|
4306
|
-
const d = i < t.length ? t[i] : 0, f = i < n.length ? n[i] : 0;
|
|
4307
|
-
let p = d + f + a;
|
|
4308
|
-
for (a = 0; p >= e.getBase(); p -= e.getBase())
|
|
4309
|
-
++a;
|
|
4310
|
-
o[i] = p;
|
|
4311
|
-
}
|
|
4312
|
-
return k.extendWithCarry(o, a);
|
|
4313
|
-
}
|
|
4314
|
-
static extendWithCarry(e, t) {
|
|
4315
|
-
if (t > 0) {
|
|
4316
|
-
const n = new Array(e.length + 1).fill(0);
|
|
4317
|
-
return J1.lexoHelper.arrayCopy(e, 0, n, 0, e.length), n[n.length - 1] = t, n;
|
|
4318
|
-
}
|
|
4319
|
-
return e;
|
|
4320
|
-
}
|
|
4321
|
-
static subtract(e, t, n) {
|
|
4322
|
-
const l = k.complement(e, n, t.length), o = k.add(e, t, l);
|
|
4323
|
-
return o[o.length - 1] = 0, k.add(e, o, k.ONE_MAG);
|
|
4324
|
-
}
|
|
4325
|
-
static multiply(e, t, n) {
|
|
4326
|
-
const l = new Array(t.length + n.length).fill(0);
|
|
4327
|
-
for (let o = 0; o < t.length; ++o)
|
|
4328
|
-
for (let a = 0; a < n.length; ++a) {
|
|
4329
|
-
const i = o + a;
|
|
4330
|
-
for (l[i] += t[o] * n[a]; l[i] >= e.getBase(); l[i] -= e.getBase())
|
|
4331
|
-
++l[i + 1];
|
|
4332
|
-
}
|
|
4333
|
-
return l;
|
|
4334
|
-
}
|
|
4335
|
-
static complement(e, t, n) {
|
|
4336
|
-
if (n <= 0)
|
|
4337
|
-
throw new Error("Expected at least 1 digit");
|
|
4338
|
-
const l = new Array(n).fill(e.getBase() - 1);
|
|
4339
|
-
for (let o = 0; o < t.length; ++o)
|
|
4340
|
-
l[o] = e.getBase() - 1 - t[o];
|
|
4341
|
-
return l;
|
|
4342
|
-
}
|
|
4343
|
-
static compare(e, t) {
|
|
4344
|
-
if (e.length < t.length)
|
|
4345
|
-
return -1;
|
|
4346
|
-
if (e.length > t.length)
|
|
4347
|
-
return 1;
|
|
4348
|
-
for (let n = e.length - 1; n >= 0; --n) {
|
|
4349
|
-
if (e[n] < t[n])
|
|
4350
|
-
return -1;
|
|
4351
|
-
if (e[n] > t[n])
|
|
4352
|
-
return 1;
|
|
4353
|
-
}
|
|
4354
|
-
return 0;
|
|
4355
|
-
}
|
|
4356
|
-
add(e) {
|
|
4357
|
-
if (this.checkSystem(e), this.isZero())
|
|
4358
|
-
return e;
|
|
4359
|
-
if (e.isZero())
|
|
4360
|
-
return this;
|
|
4361
|
-
if (this.sign !== e.sign) {
|
|
4362
|
-
let n;
|
|
4363
|
-
return this.sign === -1 ? (n = this.negate(), n.subtract(e).negate()) : (n = e.negate(), this.subtract(n));
|
|
4364
|
-
}
|
|
4365
|
-
const t = k.add(this.sys, this.mag, e.mag);
|
|
4366
|
-
return k.make(this.sys, this.sign, t);
|
|
4367
|
-
}
|
|
4368
|
-
subtract(e) {
|
|
4369
|
-
if (this.checkSystem(e), this.isZero())
|
|
4370
|
-
return e.negate();
|
|
4371
|
-
if (e.isZero())
|
|
4372
|
-
return this;
|
|
4373
|
-
if (this.sign !== e.sign) {
|
|
4374
|
-
let n;
|
|
4375
|
-
return this.sign === -1 ? (n = this.negate(), n.add(e).negate()) : (n = e.negate(), this.add(n));
|
|
4376
|
-
}
|
|
4377
|
-
const t = k.compare(this.mag, e.mag);
|
|
4378
|
-
return t === 0 ? k.zero(this.sys) : t < 0 ? k.make(this.sys, this.sign === -1 ? 1 : -1, k.subtract(this.sys, e.mag, this.mag)) : k.make(this.sys, this.sign === -1 ? -1 : 1, k.subtract(this.sys, this.mag, e.mag));
|
|
4379
|
-
}
|
|
4380
|
-
multiply(e) {
|
|
4381
|
-
if (this.checkSystem(e), this.isZero())
|
|
4382
|
-
return this;
|
|
4383
|
-
if (e.isZero())
|
|
4384
|
-
return e;
|
|
4385
|
-
if (this.isOneish())
|
|
4386
|
-
return this.sign === e.sign ? k.make(this.sys, 1, e.mag) : k.make(this.sys, -1, e.mag);
|
|
4387
|
-
if (e.isOneish())
|
|
4388
|
-
return this.sign === e.sign ? k.make(this.sys, 1, this.mag) : k.make(this.sys, -1, this.mag);
|
|
4389
|
-
const t = k.multiply(this.sys, this.mag, e.mag);
|
|
4390
|
-
return this.sign === e.sign ? k.make(this.sys, 1, t) : k.make(this.sys, -1, t);
|
|
4391
|
-
}
|
|
4392
|
-
negate() {
|
|
4393
|
-
return this.isZero() ? this : k.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
|
|
4394
|
-
}
|
|
4395
|
-
shiftLeft(e = 1) {
|
|
4396
|
-
if (e === 0)
|
|
4397
|
-
return this;
|
|
4398
|
-
if (e < 0)
|
|
4399
|
-
return this.shiftRight(Math.abs(e));
|
|
4400
|
-
const t = new Array(this.mag.length + e).fill(0);
|
|
4401
|
-
return J1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), k.make(this.sys, this.sign, t);
|
|
4402
|
-
}
|
|
4403
|
-
shiftRight(e = 1) {
|
|
4404
|
-
if (this.mag.length - e <= 0)
|
|
4405
|
-
return k.zero(this.sys);
|
|
4406
|
-
const t = new Array(this.mag.length - e).fill(0);
|
|
4407
|
-
return J1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), k.make(this.sys, this.sign, t);
|
|
4408
|
-
}
|
|
4409
|
-
complement() {
|
|
4410
|
-
return this.complementDigits(this.mag.length);
|
|
4411
|
-
}
|
|
4412
|
-
complementDigits(e) {
|
|
4413
|
-
return k.make(this.sys, this.sign, k.complement(this.sys, this.mag, e));
|
|
4414
|
-
}
|
|
4415
|
-
isZero() {
|
|
4416
|
-
return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
|
|
4417
|
-
}
|
|
4418
|
-
isOne() {
|
|
4419
|
-
return this.sign === 1 && this.mag.length === 1 && this.mag[0] === 1;
|
|
4420
|
-
}
|
|
4421
|
-
getMag(e) {
|
|
4422
|
-
return this.mag[e];
|
|
4423
|
-
}
|
|
4424
|
-
compareTo(e) {
|
|
4425
|
-
if (this === e)
|
|
4426
|
-
return 0;
|
|
4427
|
-
if (!e)
|
|
4428
|
-
return 1;
|
|
4429
|
-
if (this.sign === -1) {
|
|
4430
|
-
if (e.sign === -1) {
|
|
4431
|
-
const t = k.compare(this.mag, e.mag);
|
|
4432
|
-
return t === -1 ? 1 : t === 1 ? -1 : 0;
|
|
4433
|
-
}
|
|
4434
|
-
return -1;
|
|
4435
|
-
}
|
|
4436
|
-
return this.sign === 1 ? e.sign === 1 ? k.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
|
|
4437
|
-
}
|
|
4438
|
-
getSystem() {
|
|
4439
|
-
return this.sys;
|
|
4440
|
-
}
|
|
4441
|
-
format() {
|
|
4442
|
-
if (this.isZero())
|
|
4443
|
-
return "" + this.sys.toChar(0);
|
|
4444
|
-
const e = new Hi.default(), t = this.mag, n = t.length;
|
|
4445
|
-
for (let l = 0; l < n; ++l) {
|
|
4446
|
-
const o = t[l];
|
|
4447
|
-
e.insert(0, this.sys.toChar(o));
|
|
4448
|
-
}
|
|
4449
|
-
return this.sign === -1 && e.insert(0, this.sys.getNegativeChar()), e.toString();
|
|
4450
|
-
}
|
|
4451
|
-
equals(e) {
|
|
4452
|
-
return this === e ? !0 : e ? this.sys.getBase() === e.sys.getBase() && this.compareTo(e) === 0 : !1;
|
|
4453
|
-
}
|
|
4454
|
-
toString() {
|
|
4455
|
-
return this.format();
|
|
4456
|
-
}
|
|
4457
|
-
isOneish() {
|
|
4458
|
-
return this.mag.length === 1 && this.mag[0] === 1;
|
|
4459
|
-
}
|
|
4460
|
-
checkSystem(e) {
|
|
4461
|
-
if (this.sys.getBase() !== e.sys.getBase())
|
|
4462
|
-
throw new Error("Expected numbers of same numeral sys");
|
|
4463
|
-
}
|
|
4464
|
-
}
|
|
4465
|
-
Z1.LexoInteger = k;
|
|
4466
|
-
k.ZERO_MAG = [0];
|
|
4467
|
-
k.ONE_MAG = [1];
|
|
4468
|
-
k.NEGATIVE_SIGN = -1;
|
|
4469
|
-
k.ZERO_SIGN = 0;
|
|
4470
|
-
k.POSITIVE_SIGN = 1;
|
|
4471
|
-
Object.defineProperty(G1, "__esModule", { value: !0 });
|
|
4472
|
-
G1.LexoDecimal = void 0;
|
|
4473
|
-
const R1 = Z1, Ei = x1;
|
|
4474
|
-
class u1 {
|
|
4475
|
-
constructor(e, t) {
|
|
4476
|
-
this.mag = e, this.sig = t;
|
|
4477
|
-
}
|
|
4478
|
-
static half(e) {
|
|
4479
|
-
const t = e.getBase() / 2 | 0;
|
|
4480
|
-
return u1.make(R1.LexoInteger.make(e, 1, [t]), 1);
|
|
4183
|
+
Z1.LexoInteger = k;
|
|
4184
|
+
k.ZERO_MAG = [0];
|
|
4185
|
+
k.ONE_MAG = [1];
|
|
4186
|
+
k.NEGATIVE_SIGN = -1;
|
|
4187
|
+
k.ZERO_SIGN = 0;
|
|
4188
|
+
k.POSITIVE_SIGN = 1;
|
|
4189
|
+
Object.defineProperty(x1, "__esModule", { value: !0 });
|
|
4190
|
+
x1.LexoDecimal = void 0;
|
|
4191
|
+
const R1 = Z1, yi = F1;
|
|
4192
|
+
class u1 {
|
|
4193
|
+
constructor(e, t) {
|
|
4194
|
+
this.mag = e, this.sig = t;
|
|
4195
|
+
}
|
|
4196
|
+
static half(e) {
|
|
4197
|
+
const t = e.getBase() / 2 | 0;
|
|
4198
|
+
return u1.make(R1.LexoInteger.make(e, 1, [t]), 1);
|
|
4481
4199
|
}
|
|
4482
4200
|
static parse(e, t) {
|
|
4483
4201
|
const n = e.indexOf(t.getRadixPointChar());
|
|
@@ -4562,7 +4280,7 @@ class u1 {
|
|
|
4562
4280
|
const e = this.mag.format();
|
|
4563
4281
|
if (this.sig === 0)
|
|
4564
4282
|
return e;
|
|
4565
|
-
const t = new
|
|
4283
|
+
const t = new yi.default(e), n = t[0], l = n === this.mag.getSystem().getPositiveChar() || n === this.mag.getSystem().getNegativeChar();
|
|
4566
4284
|
for (l && t.remove(0, 1); t.length < this.sig + 1; )
|
|
4567
4285
|
t.insert(0, this.mag.getSystem().toChar(0));
|
|
4568
4286
|
return t.insert(t.length - this.sig, this.mag.getSystem().getRadixPointChar()), t.length - this.sig === 0 && t.insert(0, this.mag.getSystem().toChar(0)), l && t.insert(0, n), t.toString();
|
|
@@ -4574,12 +4292,12 @@ class u1 {
|
|
|
4574
4292
|
return this.format();
|
|
4575
4293
|
}
|
|
4576
4294
|
}
|
|
4577
|
-
|
|
4578
|
-
var
|
|
4295
|
+
x1.LexoDecimal = u1;
|
|
4296
|
+
var ee = {}, De;
|
|
4579
4297
|
function xe() {
|
|
4580
4298
|
if (De)
|
|
4581
|
-
return
|
|
4582
|
-
De = 1, Object.defineProperty(
|
|
4299
|
+
return ee;
|
|
4300
|
+
De = 1, Object.defineProperty(ee, "__esModule", { value: !0 });
|
|
4583
4301
|
const s = Z1, e = Ye();
|
|
4584
4302
|
class t {
|
|
4585
4303
|
constructor(l) {
|
|
@@ -4631,14 +4349,14 @@ function xe() {
|
|
|
4631
4349
|
return this === l ? !0 : l ? this.value.equals(l.value) : !1;
|
|
4632
4350
|
}
|
|
4633
4351
|
}
|
|
4634
|
-
return
|
|
4352
|
+
return ee.default = t, ee;
|
|
4635
4353
|
}
|
|
4636
4354
|
var Ve = {}, Fe = {};
|
|
4637
4355
|
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
4638
|
-
var
|
|
4639
|
-
Object.defineProperty(
|
|
4640
|
-
|
|
4641
|
-
class
|
|
4356
|
+
var oe = {};
|
|
4357
|
+
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
4358
|
+
oe.LexoNumeralSystem10 = void 0;
|
|
4359
|
+
class $i {
|
|
4642
4360
|
getBase() {
|
|
4643
4361
|
return 10;
|
|
4644
4362
|
}
|
|
@@ -4660,11 +4378,11 @@ class Ai {
|
|
|
4660
4378
|
return String.fromCharCode(e + 48);
|
|
4661
4379
|
}
|
|
4662
4380
|
}
|
|
4663
|
-
|
|
4664
|
-
var
|
|
4665
|
-
Object.defineProperty(
|
|
4666
|
-
|
|
4667
|
-
class
|
|
4381
|
+
oe.LexoNumeralSystem10 = $i;
|
|
4382
|
+
var re = {};
|
|
4383
|
+
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
4384
|
+
re.LexoNumeralSystem36 = void 0;
|
|
4385
|
+
class Mi {
|
|
4668
4386
|
constructor() {
|
|
4669
4387
|
this.DIGITS = "0123456789abcdefghijklmnopqrstuvwxyz".split("");
|
|
4670
4388
|
}
|
|
@@ -4691,11 +4409,11 @@ class Ti {
|
|
|
4691
4409
|
return this.DIGITS[e];
|
|
4692
4410
|
}
|
|
4693
4411
|
}
|
|
4694
|
-
|
|
4695
|
-
var
|
|
4696
|
-
Object.defineProperty(
|
|
4697
|
-
|
|
4698
|
-
class
|
|
4412
|
+
re.LexoNumeralSystem36 = Mi;
|
|
4413
|
+
var ue = {};
|
|
4414
|
+
Object.defineProperty(ue, "__esModule", { value: !0 });
|
|
4415
|
+
ue.LexoNumeralSystem64 = void 0;
|
|
4416
|
+
class Vi {
|
|
4699
4417
|
constructor() {
|
|
4700
4418
|
this.DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("");
|
|
4701
4419
|
}
|
|
@@ -4727,232 +4445,520 @@ class Oi {
|
|
|
4727
4445
|
toChar(e) {
|
|
4728
4446
|
return this.DIGITS[e];
|
|
4729
4447
|
}
|
|
4730
|
-
}
|
|
4731
|
-
|
|
4732
|
-
(function(s) {
|
|
4733
|
-
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4734
|
-
a === void 0 && (a = o);
|
|
4735
|
-
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4736
|
-
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4737
|
-
return l[o];
|
|
4738
|
-
} }), Object.defineProperty(n, a, i);
|
|
4739
|
-
} : function(n, l, o, a) {
|
|
4740
|
-
a === void 0 && (a = o), n[a] = l[o];
|
|
4741
|
-
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4742
|
-
for (var o in n)
|
|
4743
|
-
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4744
|
-
};
|
|
4745
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(Fe, s), t(
|
|
4746
|
-
})(Ve);
|
|
4747
|
-
var Pe;
|
|
4748
|
-
function Ye() {
|
|
4749
|
-
if (Pe)
|
|
4750
|
-
return U1;
|
|
4751
|
-
Pe = 1, Object.defineProperty(U1, "__esModule", { value: !0 }), U1.LexoRank = void 0;
|
|
4752
|
-
const s =
|
|
4753
|
-
class l {
|
|
4754
|
-
constructor(a, i) {
|
|
4755
|
-
this.value = a.format() + "|" + l.formatDecimal(i), this.bucket = a, this.decimal = i;
|
|
4756
|
-
}
|
|
4757
|
-
static get NUMERAL_SYSTEM() {
|
|
4758
|
-
return this._NUMERAL_SYSTEM || (this._NUMERAL_SYSTEM = new n.LexoNumeralSystem36()), this._NUMERAL_SYSTEM;
|
|
4759
|
-
}
|
|
4760
|
-
static get ZERO_DECIMAL() {
|
|
4761
|
-
return this._ZERO_DECIMAL || (this._ZERO_DECIMAL = s.LexoDecimal.parse("0", l.NUMERAL_SYSTEM)), this._ZERO_DECIMAL;
|
|
4762
|
-
}
|
|
4763
|
-
static get ONE_DECIMAL() {
|
|
4764
|
-
return this._ONE_DECIMAL || (this._ONE_DECIMAL = s.LexoDecimal.parse("1", l.NUMERAL_SYSTEM)), this._ONE_DECIMAL;
|
|
4765
|
-
}
|
|
4766
|
-
static get EIGHT_DECIMAL() {
|
|
4767
|
-
return this._EIGHT_DECIMAL || (this._EIGHT_DECIMAL = s.LexoDecimal.parse("8", l.NUMERAL_SYSTEM)), this._EIGHT_DECIMAL;
|
|
4768
|
-
}
|
|
4769
|
-
static get MIN_DECIMAL() {
|
|
4770
|
-
return this._MIN_DECIMAL || (this._MIN_DECIMAL = l.ZERO_DECIMAL), this._MIN_DECIMAL;
|
|
4771
|
-
}
|
|
4772
|
-
static get MAX_DECIMAL() {
|
|
4773
|
-
return this._MAX_DECIMAL || (this._MAX_DECIMAL = s.LexoDecimal.parse("1000000", l.NUMERAL_SYSTEM).subtract(l.ONE_DECIMAL)), this._MAX_DECIMAL;
|
|
4774
|
-
}
|
|
4775
|
-
static get MID_DECIMAL() {
|
|
4776
|
-
return this._MID_DECIMAL || (this._MID_DECIMAL = l.between(l.MIN_DECIMAL, l.MAX_DECIMAL)), this._MID_DECIMAL;
|
|
4777
|
-
}
|
|
4778
|
-
static get INITIAL_MIN_DECIMAL() {
|
|
4779
|
-
return this._INITIAL_MIN_DECIMAL || (this._INITIAL_MIN_DECIMAL = s.LexoDecimal.parse("100000", l.NUMERAL_SYSTEM)), this._INITIAL_MIN_DECIMAL;
|
|
4780
|
-
}
|
|
4781
|
-
static get INITIAL_MAX_DECIMAL() {
|
|
4782
|
-
return this._INITIAL_MAX_DECIMAL || (this._INITIAL_MAX_DECIMAL = s.LexoDecimal.parse(l.NUMERAL_SYSTEM.toChar(l.NUMERAL_SYSTEM.getBase() - 2) + "00000", l.NUMERAL_SYSTEM)), this._INITIAL_MAX_DECIMAL;
|
|
4783
|
-
}
|
|
4784
|
-
static min() {
|
|
4785
|
-
return l.from(e.default.BUCKET_0, l.MIN_DECIMAL);
|
|
4786
|
-
}
|
|
4787
|
-
static middle() {
|
|
4788
|
-
const a = l.min();
|
|
4789
|
-
return a.between(l.max(a.bucket));
|
|
4790
|
-
}
|
|
4791
|
-
static max(a = e.default.BUCKET_0) {
|
|
4792
|
-
return l.from(a, l.MAX_DECIMAL);
|
|
4793
|
-
}
|
|
4794
|
-
static initial(a) {
|
|
4795
|
-
return a === e.default.BUCKET_0 ? l.from(a, l.INITIAL_MIN_DECIMAL) : l.from(a, l.INITIAL_MAX_DECIMAL);
|
|
4796
|
-
}
|
|
4797
|
-
static between(a, i) {
|
|
4798
|
-
if (a.getSystem().getBase() !== i.getSystem().getBase())
|
|
4799
|
-
throw new Error("Expected same system");
|
|
4800
|
-
let d = a, f = i, p;
|
|
4801
|
-
if (a.getScale() < i.getScale()) {
|
|
4802
|
-
if (p = i.setScale(a.getScale(), !1), a.compareTo(p) >= 0)
|
|
4803
|
-
return l.mid(a, i);
|
|
4804
|
-
f = p;
|
|
4805
|
-
}
|
|
4806
|
-
if (a.getScale() > f.getScale()) {
|
|
4807
|
-
if (p = a.setScale(f.getScale(), !0), p.compareTo(f) >= 0)
|
|
4808
|
-
return l.mid(a, i);
|
|
4809
|
-
d = p;
|
|
4810
|
-
}
|
|
4811
|
-
let I;
|
|
4812
|
-
for (let _ = d.getScale(); _ > 0; f = I) {
|
|
4813
|
-
const $ = _ - 1, S = d.setScale($, !0);
|
|
4814
|
-
if (I = f.setScale($, !1), S.compareTo(I) === 0)
|
|
4815
|
-
return l.checkMid(a, i, S);
|
|
4816
|
-
if (S.compareTo(I) > 0)
|
|
4817
|
-
break;
|
|
4818
|
-
_ = $, d = S;
|
|
4819
|
-
}
|
|
4820
|
-
let O = l.middleInternal(a, i, d, f), T;
|
|
4821
|
-
for (let _ = O.getScale(); _ > 0; _ = T) {
|
|
4822
|
-
T = _ - 1;
|
|
4823
|
-
const $ = O.setScale(T);
|
|
4824
|
-
if (a.compareTo($) >= 0 || $.compareTo(i) >= 0)
|
|
4825
|
-
break;
|
|
4826
|
-
O = $;
|
|
4827
|
-
}
|
|
4828
|
-
return O;
|
|
4829
|
-
}
|
|
4830
|
-
static parse(a) {
|
|
4831
|
-
const i = a.split("|"), d = e.default.from(i[0]), f = s.LexoDecimal.parse(i[1], l.NUMERAL_SYSTEM);
|
|
4832
|
-
return new l(d, f);
|
|
4833
|
-
}
|
|
4834
|
-
static from(a, i) {
|
|
4835
|
-
if (i.getSystem().getBase() !== l.NUMERAL_SYSTEM.getBase())
|
|
4836
|
-
throw new Error("Expected different system");
|
|
4837
|
-
return new l(a, i);
|
|
4838
|
-
}
|
|
4839
|
-
static middleInternal(a, i, d, f) {
|
|
4840
|
-
const p = l.mid(d, f);
|
|
4841
|
-
return l.checkMid(a, i, p);
|
|
4842
|
-
}
|
|
4843
|
-
static checkMid(a, i, d) {
|
|
4844
|
-
return a.compareTo(d) >= 0 || d.compareTo(i) >= 0 ? l.mid(a, i) : d;
|
|
4845
|
-
}
|
|
4846
|
-
static mid(a, i) {
|
|
4847
|
-
const f = a.add(i).multiply(s.LexoDecimal.half(a.getSystem())), p = a.getScale() > i.getScale() ? a.getScale() : i.getScale();
|
|
4848
|
-
if (f.getScale() > p) {
|
|
4849
|
-
const I = f.setScale(p, !1);
|
|
4850
|
-
if (I.compareTo(a) > 0)
|
|
4851
|
-
return I;
|
|
4852
|
-
const O = f.setScale(p, !0);
|
|
4853
|
-
if (O.compareTo(i) < 0)
|
|
4854
|
-
return O;
|
|
4448
|
+
}
|
|
4449
|
+
ue.LexoNumeralSystem64 = Vi;
|
|
4450
|
+
(function(s) {
|
|
4451
|
+
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4452
|
+
a === void 0 && (a = o);
|
|
4453
|
+
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4454
|
+
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4455
|
+
return l[o];
|
|
4456
|
+
} }), Object.defineProperty(n, a, i);
|
|
4457
|
+
} : function(n, l, o, a) {
|
|
4458
|
+
a === void 0 && (a = o), n[a] = l[o];
|
|
4459
|
+
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4460
|
+
for (var o in n)
|
|
4461
|
+
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4462
|
+
};
|
|
4463
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(Fe, s), t(oe, s), t(re, s), t(ue, s);
|
|
4464
|
+
})(Ve);
|
|
4465
|
+
var Pe;
|
|
4466
|
+
function Ye() {
|
|
4467
|
+
if (Pe)
|
|
4468
|
+
return U1;
|
|
4469
|
+
Pe = 1, Object.defineProperty(U1, "__esModule", { value: !0 }), U1.LexoRank = void 0;
|
|
4470
|
+
const s = x1, e = xe(), t = F1, n = Ve;
|
|
4471
|
+
class l {
|
|
4472
|
+
constructor(a, i) {
|
|
4473
|
+
this.value = a.format() + "|" + l.formatDecimal(i), this.bucket = a, this.decimal = i;
|
|
4474
|
+
}
|
|
4475
|
+
static get NUMERAL_SYSTEM() {
|
|
4476
|
+
return this._NUMERAL_SYSTEM || (this._NUMERAL_SYSTEM = new n.LexoNumeralSystem36()), this._NUMERAL_SYSTEM;
|
|
4477
|
+
}
|
|
4478
|
+
static get ZERO_DECIMAL() {
|
|
4479
|
+
return this._ZERO_DECIMAL || (this._ZERO_DECIMAL = s.LexoDecimal.parse("0", l.NUMERAL_SYSTEM)), this._ZERO_DECIMAL;
|
|
4480
|
+
}
|
|
4481
|
+
static get ONE_DECIMAL() {
|
|
4482
|
+
return this._ONE_DECIMAL || (this._ONE_DECIMAL = s.LexoDecimal.parse("1", l.NUMERAL_SYSTEM)), this._ONE_DECIMAL;
|
|
4483
|
+
}
|
|
4484
|
+
static get EIGHT_DECIMAL() {
|
|
4485
|
+
return this._EIGHT_DECIMAL || (this._EIGHT_DECIMAL = s.LexoDecimal.parse("8", l.NUMERAL_SYSTEM)), this._EIGHT_DECIMAL;
|
|
4486
|
+
}
|
|
4487
|
+
static get MIN_DECIMAL() {
|
|
4488
|
+
return this._MIN_DECIMAL || (this._MIN_DECIMAL = l.ZERO_DECIMAL), this._MIN_DECIMAL;
|
|
4489
|
+
}
|
|
4490
|
+
static get MAX_DECIMAL() {
|
|
4491
|
+
return this._MAX_DECIMAL || (this._MAX_DECIMAL = s.LexoDecimal.parse("1000000", l.NUMERAL_SYSTEM).subtract(l.ONE_DECIMAL)), this._MAX_DECIMAL;
|
|
4492
|
+
}
|
|
4493
|
+
static get MID_DECIMAL() {
|
|
4494
|
+
return this._MID_DECIMAL || (this._MID_DECIMAL = l.between(l.MIN_DECIMAL, l.MAX_DECIMAL)), this._MID_DECIMAL;
|
|
4495
|
+
}
|
|
4496
|
+
static get INITIAL_MIN_DECIMAL() {
|
|
4497
|
+
return this._INITIAL_MIN_DECIMAL || (this._INITIAL_MIN_DECIMAL = s.LexoDecimal.parse("100000", l.NUMERAL_SYSTEM)), this._INITIAL_MIN_DECIMAL;
|
|
4498
|
+
}
|
|
4499
|
+
static get INITIAL_MAX_DECIMAL() {
|
|
4500
|
+
return this._INITIAL_MAX_DECIMAL || (this._INITIAL_MAX_DECIMAL = s.LexoDecimal.parse(l.NUMERAL_SYSTEM.toChar(l.NUMERAL_SYSTEM.getBase() - 2) + "00000", l.NUMERAL_SYSTEM)), this._INITIAL_MAX_DECIMAL;
|
|
4501
|
+
}
|
|
4502
|
+
static min() {
|
|
4503
|
+
return l.from(e.default.BUCKET_0, l.MIN_DECIMAL);
|
|
4504
|
+
}
|
|
4505
|
+
static middle() {
|
|
4506
|
+
const a = l.min();
|
|
4507
|
+
return a.between(l.max(a.bucket));
|
|
4508
|
+
}
|
|
4509
|
+
static max(a = e.default.BUCKET_0) {
|
|
4510
|
+
return l.from(a, l.MAX_DECIMAL);
|
|
4511
|
+
}
|
|
4512
|
+
static initial(a) {
|
|
4513
|
+
return a === e.default.BUCKET_0 ? l.from(a, l.INITIAL_MIN_DECIMAL) : l.from(a, l.INITIAL_MAX_DECIMAL);
|
|
4514
|
+
}
|
|
4515
|
+
static between(a, i) {
|
|
4516
|
+
if (a.getSystem().getBase() !== i.getSystem().getBase())
|
|
4517
|
+
throw new Error("Expected same system");
|
|
4518
|
+
let d = a, f = i, p;
|
|
4519
|
+
if (a.getScale() < i.getScale()) {
|
|
4520
|
+
if (p = i.setScale(a.getScale(), !1), a.compareTo(p) >= 0)
|
|
4521
|
+
return l.mid(a, i);
|
|
4522
|
+
f = p;
|
|
4523
|
+
}
|
|
4524
|
+
if (a.getScale() > f.getScale()) {
|
|
4525
|
+
if (p = a.setScale(f.getScale(), !0), p.compareTo(f) >= 0)
|
|
4526
|
+
return l.mid(a, i);
|
|
4527
|
+
d = p;
|
|
4528
|
+
}
|
|
4529
|
+
let I;
|
|
4530
|
+
for (let _ = d.getScale(); _ > 0; f = I) {
|
|
4531
|
+
const $ = _ - 1, S = d.setScale($, !0);
|
|
4532
|
+
if (I = f.setScale($, !1), S.compareTo(I) === 0)
|
|
4533
|
+
return l.checkMid(a, i, S);
|
|
4534
|
+
if (S.compareTo(I) > 0)
|
|
4535
|
+
break;
|
|
4536
|
+
_ = $, d = S;
|
|
4537
|
+
}
|
|
4538
|
+
let O = l.middleInternal(a, i, d, f), T;
|
|
4539
|
+
for (let _ = O.getScale(); _ > 0; _ = T) {
|
|
4540
|
+
T = _ - 1;
|
|
4541
|
+
const $ = O.setScale(T);
|
|
4542
|
+
if (a.compareTo($) >= 0 || $.compareTo(i) >= 0)
|
|
4543
|
+
break;
|
|
4544
|
+
O = $;
|
|
4545
|
+
}
|
|
4546
|
+
return O;
|
|
4547
|
+
}
|
|
4548
|
+
static parse(a) {
|
|
4549
|
+
const i = a.split("|"), d = e.default.from(i[0]), f = s.LexoDecimal.parse(i[1], l.NUMERAL_SYSTEM);
|
|
4550
|
+
return new l(d, f);
|
|
4551
|
+
}
|
|
4552
|
+
static from(a, i) {
|
|
4553
|
+
if (i.getSystem().getBase() !== l.NUMERAL_SYSTEM.getBase())
|
|
4554
|
+
throw new Error("Expected different system");
|
|
4555
|
+
return new l(a, i);
|
|
4556
|
+
}
|
|
4557
|
+
static middleInternal(a, i, d, f) {
|
|
4558
|
+
const p = l.mid(d, f);
|
|
4559
|
+
return l.checkMid(a, i, p);
|
|
4560
|
+
}
|
|
4561
|
+
static checkMid(a, i, d) {
|
|
4562
|
+
return a.compareTo(d) >= 0 || d.compareTo(i) >= 0 ? l.mid(a, i) : d;
|
|
4563
|
+
}
|
|
4564
|
+
static mid(a, i) {
|
|
4565
|
+
const f = a.add(i).multiply(s.LexoDecimal.half(a.getSystem())), p = a.getScale() > i.getScale() ? a.getScale() : i.getScale();
|
|
4566
|
+
if (f.getScale() > p) {
|
|
4567
|
+
const I = f.setScale(p, !1);
|
|
4568
|
+
if (I.compareTo(a) > 0)
|
|
4569
|
+
return I;
|
|
4570
|
+
const O = f.setScale(p, !0);
|
|
4571
|
+
if (O.compareTo(i) < 0)
|
|
4572
|
+
return O;
|
|
4573
|
+
}
|
|
4574
|
+
return f;
|
|
4575
|
+
}
|
|
4576
|
+
static formatDecimal(a) {
|
|
4577
|
+
const i = a.format(), d = new t.default(i);
|
|
4578
|
+
let f = i.indexOf(l.NUMERAL_SYSTEM.getRadixPointChar());
|
|
4579
|
+
const p = l.NUMERAL_SYSTEM.toChar(0);
|
|
4580
|
+
for (f < 0 && (f = i.length, d.append(l.NUMERAL_SYSTEM.getRadixPointChar())); f < 6; )
|
|
4581
|
+
d.insert(0, p), ++f;
|
|
4582
|
+
for (; d[d.length - 1] === p; )
|
|
4583
|
+
d.length = d.length - 1;
|
|
4584
|
+
return d.toString();
|
|
4585
|
+
}
|
|
4586
|
+
genPrev() {
|
|
4587
|
+
if (this.isMax())
|
|
4588
|
+
return new l(this.bucket, l.INITIAL_MAX_DECIMAL);
|
|
4589
|
+
const a = this.decimal.floor();
|
|
4590
|
+
let d = s.LexoDecimal.from(a).subtract(l.EIGHT_DECIMAL);
|
|
4591
|
+
return d.compareTo(l.MIN_DECIMAL) <= 0 && (d = l.between(l.MIN_DECIMAL, this.decimal)), new l(this.bucket, d);
|
|
4592
|
+
}
|
|
4593
|
+
genNext() {
|
|
4594
|
+
if (this.isMin())
|
|
4595
|
+
return new l(this.bucket, l.INITIAL_MIN_DECIMAL);
|
|
4596
|
+
const a = this.decimal.ceil();
|
|
4597
|
+
let d = s.LexoDecimal.from(a).add(l.EIGHT_DECIMAL);
|
|
4598
|
+
return d.compareTo(l.MAX_DECIMAL) >= 0 && (d = l.between(this.decimal, l.MAX_DECIMAL)), new l(this.bucket, d);
|
|
4599
|
+
}
|
|
4600
|
+
between(a) {
|
|
4601
|
+
if (!this.bucket.equals(a.bucket))
|
|
4602
|
+
throw new Error("Between works only within the same bucket");
|
|
4603
|
+
const i = this.decimal.compareTo(a.decimal);
|
|
4604
|
+
if (i > 0)
|
|
4605
|
+
return new l(this.bucket, l.between(a.decimal, this.decimal));
|
|
4606
|
+
if (i === 0)
|
|
4607
|
+
throw new Error("Try to rank between issues with same rank this=" + this + " other=" + a + " this.decimal=" + this.decimal + " other.decimal=" + a.decimal);
|
|
4608
|
+
return new l(this.bucket, l.between(this.decimal, a.decimal));
|
|
4609
|
+
}
|
|
4610
|
+
getBucket() {
|
|
4611
|
+
return this.bucket;
|
|
4612
|
+
}
|
|
4613
|
+
getDecimal() {
|
|
4614
|
+
return this.decimal;
|
|
4615
|
+
}
|
|
4616
|
+
inNextBucket() {
|
|
4617
|
+
return l.from(this.bucket.next(), this.decimal);
|
|
4618
|
+
}
|
|
4619
|
+
inPrevBucket() {
|
|
4620
|
+
return l.from(this.bucket.prev(), this.decimal);
|
|
4621
|
+
}
|
|
4622
|
+
isMin() {
|
|
4623
|
+
return this.decimal.equals(l.MIN_DECIMAL);
|
|
4624
|
+
}
|
|
4625
|
+
isMax() {
|
|
4626
|
+
return this.decimal.equals(l.MAX_DECIMAL);
|
|
4627
|
+
}
|
|
4628
|
+
format() {
|
|
4629
|
+
return this.value;
|
|
4630
|
+
}
|
|
4631
|
+
equals(a) {
|
|
4632
|
+
return this === a ? !0 : a ? this.value === a.value : !1;
|
|
4633
|
+
}
|
|
4634
|
+
toString() {
|
|
4635
|
+
return this.value;
|
|
4636
|
+
}
|
|
4637
|
+
compareTo(a) {
|
|
4638
|
+
return this === a ? 0 : a ? this.value.localeCompare(a.value) : 1;
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
return U1.LexoRank = l, U1;
|
|
4642
|
+
}
|
|
4643
|
+
(function(s) {
|
|
4644
|
+
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4645
|
+
a === void 0 && (a = o);
|
|
4646
|
+
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4647
|
+
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4648
|
+
return l[o];
|
|
4649
|
+
} }), Object.defineProperty(n, a, i);
|
|
4650
|
+
} : function(n, l, o, a) {
|
|
4651
|
+
a === void 0 && (a = o), n[a] = l[o];
|
|
4652
|
+
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4653
|
+
for (var o in n)
|
|
4654
|
+
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4655
|
+
};
|
|
4656
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(Ye(), s), t(xe(), s), t(x1, s), t(Z1, s);
|
|
4657
|
+
})(Ge);
|
|
4658
|
+
(function(s) {
|
|
4659
|
+
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4660
|
+
a === void 0 && (a = o);
|
|
4661
|
+
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4662
|
+
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4663
|
+
return l[o];
|
|
4664
|
+
} }), Object.defineProperty(n, a, i);
|
|
4665
|
+
} : function(n, l, o, a) {
|
|
4666
|
+
a === void 0 && (a = o), n[a] = l[o];
|
|
4667
|
+
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4668
|
+
for (var o in n)
|
|
4669
|
+
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4670
|
+
};
|
|
4671
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(Ge, s), t(Ve, s);
|
|
4672
|
+
})(K1);
|
|
4673
|
+
const Li = {
|
|
4674
|
+
key: 0,
|
|
4675
|
+
class: "ao-template-details"
|
|
4676
|
+
}, Si = { class: "ao-template-details__body" }, Ii = { class: "ao-template-details__cols" }, Hi = { class: "ao-template-details__col" }, Ei = { class: "ao-list__footer" }, Ai = { class: "ao-template-details__col" }, Ti = { class: "ao-template-details__col" }, Oi = /* @__PURE__ */ X({
|
|
4677
|
+
__name: "AoTemplateDetails",
|
|
4678
|
+
props: {
|
|
4679
|
+
templateId: {},
|
|
4680
|
+
templates: {},
|
|
4681
|
+
phaseId: {},
|
|
4682
|
+
milestoneId: {},
|
|
4683
|
+
activityId: {},
|
|
4684
|
+
activityTypes: {}
|
|
4685
|
+
},
|
|
4686
|
+
emits: ["addItem", "updateItem", "updateTemplate", "addRule", "removeRule"],
|
|
4687
|
+
setup(s, { emit: e }) {
|
|
4688
|
+
const t = s, n = v(
|
|
4689
|
+
() => {
|
|
4690
|
+
var b;
|
|
4691
|
+
return (b = t.templates) == null ? void 0 : b.find((w) => w.id === t.templateId);
|
|
4692
|
+
}
|
|
4693
|
+
), l = v({
|
|
4694
|
+
get() {
|
|
4695
|
+
var Z;
|
|
4696
|
+
return [...((Z = n.value) == null ? void 0 : Z.phases) || []].sort((F, L) => F.order - L.order);
|
|
4697
|
+
},
|
|
4698
|
+
set(b) {
|
|
4699
|
+
const w = b.map((Z, F) => (Z.order = F, Z));
|
|
4700
|
+
e("updateTemplate", { id: t.templateId, phases: w });
|
|
4701
|
+
}
|
|
4702
|
+
}), o = v(() => {
|
|
4703
|
+
var b, w;
|
|
4704
|
+
return (w = (b = n == null ? void 0 : n.value) == null ? void 0 : b.phases) == null ? void 0 : w.find((Z) => Z.id === t.phaseId);
|
|
4705
|
+
}), a = v(() => {
|
|
4706
|
+
var b, w;
|
|
4707
|
+
return (w = (b = o.value) == null ? void 0 : b.milestones) == null ? void 0 : w.find(
|
|
4708
|
+
(Z) => Z.id === t.milestoneId
|
|
4709
|
+
);
|
|
4710
|
+
}), i = v(() => {
|
|
4711
|
+
var b, w;
|
|
4712
|
+
return ((w = (b = n.value) == null ? void 0 : b.phases) == null ? void 0 : w.reduce((Z, F) => {
|
|
4713
|
+
const L = F.milestones || [];
|
|
4714
|
+
return [...Z, ...L];
|
|
4715
|
+
}, [])) || [];
|
|
4716
|
+
}), d = v(() => {
|
|
4717
|
+
var b, w;
|
|
4718
|
+
return ((w = (b = n.value) == null ? void 0 : b.phases) == null ? void 0 : w.reduce((Z, F) => {
|
|
4719
|
+
const D = (F.milestones || []).reduce(
|
|
4720
|
+
(a1, i1) => i1.activities ? [...a1, ...i1.activities] : a1,
|
|
4721
|
+
[]
|
|
4722
|
+
);
|
|
4723
|
+
return [...Z, ...D];
|
|
4724
|
+
}, [])) || [];
|
|
4725
|
+
}), f = v(() => {
|
|
4726
|
+
var b, w;
|
|
4727
|
+
return (w = (b = a.value) == null ? void 0 : b.activities) == null ? void 0 : w.find(
|
|
4728
|
+
(Z) => Z.id === t.activityId
|
|
4729
|
+
);
|
|
4730
|
+
}), p = v(() => {
|
|
4731
|
+
var b;
|
|
4732
|
+
return ((b = t.activityTypes) == null ? void 0 : b.map((w) => ({
|
|
4733
|
+
label: w,
|
|
4734
|
+
value: w
|
|
4735
|
+
}))) || [];
|
|
4736
|
+
}), I = v(() => {
|
|
4737
|
+
var b;
|
|
4738
|
+
return ((b = n.value) == null ? void 0 : b.name) || t.templateId;
|
|
4739
|
+
}), O = W(!1), T = () => {
|
|
4740
|
+
if (!n.value)
|
|
4741
|
+
return;
|
|
4742
|
+
const b = n.value.phases.length, w = n.value.phases.at(-1), Z = w ? K1.LexoRank.parse(w.rank).genNext() : K1.LexoRank.middle(), F = {
|
|
4743
|
+
name: `Phase ${b + 1}`,
|
|
4744
|
+
rank: Z.format()
|
|
4745
|
+
};
|
|
4746
|
+
e("addItem", {
|
|
4747
|
+
type: c1.PHASES,
|
|
4748
|
+
templateId: t.templateId,
|
|
4749
|
+
item: F
|
|
4750
|
+
});
|
|
4751
|
+
}, _ = (b, w) => {
|
|
4752
|
+
e("updateItem", {
|
|
4753
|
+
templateId: t.templateId,
|
|
4754
|
+
id: b,
|
|
4755
|
+
subItemType: c1.PHASES,
|
|
4756
|
+
data: { name: w }
|
|
4757
|
+
});
|
|
4758
|
+
}, $ = (b) => {
|
|
4759
|
+
e("updateItem", b);
|
|
4760
|
+
}, S = (b) => {
|
|
4761
|
+
const { phaseId: w } = b;
|
|
4762
|
+
e("addItem", {
|
|
4763
|
+
type: c1.MILESTONES,
|
|
4764
|
+
templateId: t.templateId,
|
|
4765
|
+
phaseId: w
|
|
4766
|
+
});
|
|
4767
|
+
}, M = (b) => {
|
|
4768
|
+
const { id: w, ...Z } = b;
|
|
4769
|
+
e("updateItem", {
|
|
4770
|
+
subItemType: c1.MILESTONES,
|
|
4771
|
+
id: w,
|
|
4772
|
+
templateId: t.templateId,
|
|
4773
|
+
data: Z
|
|
4774
|
+
});
|
|
4775
|
+
}, h = (b) => {
|
|
4776
|
+
const { phaseId: w, milestoneId: Z } = b;
|
|
4777
|
+
e("addItem", {
|
|
4778
|
+
type: c1.ACTIVITIES,
|
|
4779
|
+
templateId: t.templateId,
|
|
4780
|
+
phaseId: w,
|
|
4781
|
+
milestoneId: Z
|
|
4782
|
+
});
|
|
4783
|
+
}, E = (b) => {
|
|
4784
|
+
const { id: w, ...Z } = b;
|
|
4785
|
+
e("updateItem", {
|
|
4786
|
+
subItemType: c1.ACTIVITIES,
|
|
4787
|
+
id: w,
|
|
4788
|
+
templateId: t.templateId,
|
|
4789
|
+
data: Z
|
|
4790
|
+
});
|
|
4791
|
+
}, G = W(!1), e1 = () => {
|
|
4792
|
+
G.value = !G.value;
|
|
4793
|
+
}, H = () => {
|
|
4794
|
+
e("addRule", { templateId: t.templateId });
|
|
4795
|
+
}, t1 = (b) => {
|
|
4796
|
+
e("removeRule", { id: b, templateId: t.templateId });
|
|
4797
|
+
};
|
|
4798
|
+
return (b, w) => {
|
|
4799
|
+
var Z, F, L, D, a1, i1;
|
|
4800
|
+
return n.value ? (c(), C("div", Li, [
|
|
4801
|
+
B(Ke, {
|
|
4802
|
+
"can-go-back": !0,
|
|
4803
|
+
onGoBack: w[2] || (w[2] = (J) => b.$router.push({ name: l1(j1).TEMPLATES_LIST }))
|
|
4804
|
+
}, {
|
|
4805
|
+
primary: z(() => [
|
|
4806
|
+
B(L1, {
|
|
4807
|
+
title: I.value,
|
|
4808
|
+
level: 2,
|
|
4809
|
+
"is-editing": O.value,
|
|
4810
|
+
onToggleIsEditing: w[0] || (w[0] = (J) => {
|
|
4811
|
+
O.value = J;
|
|
4812
|
+
}),
|
|
4813
|
+
"onUpdate:title": w[1] || (w[1] = (J) => {
|
|
4814
|
+
I.value = J;
|
|
4815
|
+
})
|
|
4816
|
+
}, null, 8, ["title", "is-editing"])
|
|
4817
|
+
]),
|
|
4818
|
+
secondary: z(() => [
|
|
4819
|
+
B(k1, {
|
|
4820
|
+
label: b.$t("template.rules.edit"),
|
|
4821
|
+
color: "primary",
|
|
4822
|
+
"icon-name": "Settings",
|
|
4823
|
+
"icon-position": "start",
|
|
4824
|
+
onClick: e1
|
|
4825
|
+
}, null, 8, ["label"])
|
|
4826
|
+
]),
|
|
4827
|
+
_: 1
|
|
4828
|
+
}),
|
|
4829
|
+
u("div", Si, [
|
|
4830
|
+
u("ol", Ii, [
|
|
4831
|
+
u("li", Hi, [
|
|
4832
|
+
B(l1(le), {
|
|
4833
|
+
modelValue: l.value,
|
|
4834
|
+
"onUpdate:modelValue": w[3] || (w[3] = (J) => l.value = J),
|
|
4835
|
+
class: "ao-templates__list",
|
|
4836
|
+
"item-key": "id",
|
|
4837
|
+
handle: ".ao-card__drag"
|
|
4838
|
+
}, {
|
|
4839
|
+
header: z(() => [
|
|
4840
|
+
B(L1, {
|
|
4841
|
+
title: b.$t("template.phases.title"),
|
|
4842
|
+
level: 3,
|
|
4843
|
+
class: "ao-list__title"
|
|
4844
|
+
}, null, 8, ["title"])
|
|
4845
|
+
]),
|
|
4846
|
+
item: z(({ element: J }) => {
|
|
4847
|
+
var s1;
|
|
4848
|
+
return [
|
|
4849
|
+
B(R0, {
|
|
4850
|
+
id: J.id,
|
|
4851
|
+
name: J.name,
|
|
4852
|
+
milestones: J.milestones,
|
|
4853
|
+
"is-active": ((s1 = o.value) == null ? void 0 : s1.id) === J.id,
|
|
4854
|
+
"is-draggable": !0,
|
|
4855
|
+
onClick: (S1) => b.$router.push({
|
|
4856
|
+
params: { templateId: b.templateId, phaseId: J.id }
|
|
4857
|
+
}),
|
|
4858
|
+
"onUpdate:title": (S1) => {
|
|
4859
|
+
_(J.id, S1);
|
|
4860
|
+
}
|
|
4861
|
+
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title"])
|
|
4862
|
+
];
|
|
4863
|
+
}),
|
|
4864
|
+
footer: z(() => [
|
|
4865
|
+
u("div", Ei, [
|
|
4866
|
+
B(ne, {
|
|
4867
|
+
"icon-name": "AddBoxOutlineRounded",
|
|
4868
|
+
label: b.$t("template.phases.add"),
|
|
4869
|
+
onClick: T
|
|
4870
|
+
}, null, 8, ["label"])
|
|
4871
|
+
])
|
|
4872
|
+
]),
|
|
4873
|
+
_: 1
|
|
4874
|
+
}, 8, ["modelValue"])
|
|
4875
|
+
]),
|
|
4876
|
+
u("li", Ai, [
|
|
4877
|
+
o.value ? (c(), q(F0, {
|
|
4878
|
+
key: 0,
|
|
4879
|
+
"template-id": b.templateId,
|
|
4880
|
+
phase: o.value,
|
|
4881
|
+
"milestone-id": (Z = a.value) == null ? void 0 : Z.id,
|
|
4882
|
+
onAddMilestone: S,
|
|
4883
|
+
onUpdateMilestone: M,
|
|
4884
|
+
onUpdatePhase: $
|
|
4885
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : V("", !0)
|
|
4886
|
+
]),
|
|
4887
|
+
u("li", Ti, [
|
|
4888
|
+
o.value && a.value ? (c(), q(W0, {
|
|
4889
|
+
key: 0,
|
|
4890
|
+
"template-id": b.templateId,
|
|
4891
|
+
"phase-id": (F = o.value) == null ? void 0 : F.id,
|
|
4892
|
+
milestone: a.value,
|
|
4893
|
+
"activity-id": (L = f.value) == null ? void 0 : L.id,
|
|
4894
|
+
onAddActivity: h,
|
|
4895
|
+
onUpdateActivity: E,
|
|
4896
|
+
onUpdateMilestone: M
|
|
4897
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : V("", !0)
|
|
4898
|
+
])
|
|
4899
|
+
])
|
|
4900
|
+
]),
|
|
4901
|
+
(c(), q(Be, { to: "body" }, [
|
|
4902
|
+
f.value ? (c(), q(hi, {
|
|
4903
|
+
key: 0,
|
|
4904
|
+
activity: f.value,
|
|
4905
|
+
"activity-types": p.value,
|
|
4906
|
+
breadcrumbs: `${n.value.name} / ${(D = o.value) == null ? void 0 : D.name} / ${(a1 = a.value) == null ? void 0 : a1.name}`,
|
|
4907
|
+
"milestone-id": (i1 = a.value) == null ? void 0 : i1.id,
|
|
4908
|
+
"template-activities": d.value,
|
|
4909
|
+
"template-milestones": i.value,
|
|
4910
|
+
"onUpdate:activity": w[4] || (w[4] = (J) => {
|
|
4911
|
+
b.phaseId && b.milestoneId && f.value && E({
|
|
4912
|
+
...J,
|
|
4913
|
+
phaseId: b.phaseId,
|
|
4914
|
+
milestoneId: b.milestoneId,
|
|
4915
|
+
order: f.value.order
|
|
4916
|
+
});
|
|
4917
|
+
}),
|
|
4918
|
+
onClose: b.$router.back
|
|
4919
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : V("", !0)
|
|
4920
|
+
])),
|
|
4921
|
+
(c(), q(Be, { to: "body" }, [
|
|
4922
|
+
G.value ? (c(), q(mi, {
|
|
4923
|
+
key: 0,
|
|
4924
|
+
"template-id": n.value.id,
|
|
4925
|
+
rules: n.value.rules || [],
|
|
4926
|
+
"template-phases": n.value.phases,
|
|
4927
|
+
"template-milestones": i.value,
|
|
4928
|
+
"template-activities": d.value,
|
|
4929
|
+
onClose: e1,
|
|
4930
|
+
onAddRule: H,
|
|
4931
|
+
onRemoveRule: t1
|
|
4932
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : V("", !0)
|
|
4933
|
+
]))
|
|
4934
|
+
])) : V("", !0);
|
|
4935
|
+
};
|
|
4936
|
+
}
|
|
4937
|
+
});
|
|
4938
|
+
const j1 = {
|
|
4939
|
+
TEMPLATES: "templates",
|
|
4940
|
+
TEMPLATE_DETAILS: "template_details",
|
|
4941
|
+
TEMPLATES_LIST: "templates_list"
|
|
4942
|
+
}, zi = (s, e = {}) => [
|
|
4943
|
+
{
|
|
4944
|
+
path: s,
|
|
4945
|
+
name: j1.TEMPLATES,
|
|
4946
|
+
...e,
|
|
4947
|
+
children: [
|
|
4948
|
+
{
|
|
4949
|
+
path: "",
|
|
4950
|
+
name: j1.TEMPLATES_LIST,
|
|
4951
|
+
component: Zi
|
|
4952
|
+
},
|
|
4953
|
+
{
|
|
4954
|
+
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
4955
|
+
name: j1.TEMPLATE_DETAILS,
|
|
4956
|
+
component: Oi,
|
|
4957
|
+
props: !0
|
|
4855
4958
|
}
|
|
4856
|
-
|
|
4857
|
-
}
|
|
4858
|
-
static formatDecimal(a) {
|
|
4859
|
-
const i = a.format(), d = new t.default(i);
|
|
4860
|
-
let f = i.indexOf(l.NUMERAL_SYSTEM.getRadixPointChar());
|
|
4861
|
-
const p = l.NUMERAL_SYSTEM.toChar(0);
|
|
4862
|
-
for (f < 0 && (f = i.length, d.append(l.NUMERAL_SYSTEM.getRadixPointChar())); f < 6; )
|
|
4863
|
-
d.insert(0, p), ++f;
|
|
4864
|
-
for (; d[d.length - 1] === p; )
|
|
4865
|
-
d.length = d.length - 1;
|
|
4866
|
-
return d.toString();
|
|
4867
|
-
}
|
|
4868
|
-
genPrev() {
|
|
4869
|
-
if (this.isMax())
|
|
4870
|
-
return new l(this.bucket, l.INITIAL_MAX_DECIMAL);
|
|
4871
|
-
const a = this.decimal.floor();
|
|
4872
|
-
let d = s.LexoDecimal.from(a).subtract(l.EIGHT_DECIMAL);
|
|
4873
|
-
return d.compareTo(l.MIN_DECIMAL) <= 0 && (d = l.between(l.MIN_DECIMAL, this.decimal)), new l(this.bucket, d);
|
|
4874
|
-
}
|
|
4875
|
-
genNext() {
|
|
4876
|
-
if (this.isMin())
|
|
4877
|
-
return new l(this.bucket, l.INITIAL_MIN_DECIMAL);
|
|
4878
|
-
const a = this.decimal.ceil();
|
|
4879
|
-
let d = s.LexoDecimal.from(a).add(l.EIGHT_DECIMAL);
|
|
4880
|
-
return d.compareTo(l.MAX_DECIMAL) >= 0 && (d = l.between(this.decimal, l.MAX_DECIMAL)), new l(this.bucket, d);
|
|
4881
|
-
}
|
|
4882
|
-
between(a) {
|
|
4883
|
-
if (!this.bucket.equals(a.bucket))
|
|
4884
|
-
throw new Error("Between works only within the same bucket");
|
|
4885
|
-
const i = this.decimal.compareTo(a.decimal);
|
|
4886
|
-
if (i > 0)
|
|
4887
|
-
return new l(this.bucket, l.between(a.decimal, this.decimal));
|
|
4888
|
-
if (i === 0)
|
|
4889
|
-
throw new Error("Try to rank between issues with same rank this=" + this + " other=" + a + " this.decimal=" + this.decimal + " other.decimal=" + a.decimal);
|
|
4890
|
-
return new l(this.bucket, l.between(this.decimal, a.decimal));
|
|
4891
|
-
}
|
|
4892
|
-
getBucket() {
|
|
4893
|
-
return this.bucket;
|
|
4894
|
-
}
|
|
4895
|
-
getDecimal() {
|
|
4896
|
-
return this.decimal;
|
|
4897
|
-
}
|
|
4898
|
-
inNextBucket() {
|
|
4899
|
-
return l.from(this.bucket.next(), this.decimal);
|
|
4900
|
-
}
|
|
4901
|
-
inPrevBucket() {
|
|
4902
|
-
return l.from(this.bucket.prev(), this.decimal);
|
|
4903
|
-
}
|
|
4904
|
-
isMin() {
|
|
4905
|
-
return this.decimal.equals(l.MIN_DECIMAL);
|
|
4906
|
-
}
|
|
4907
|
-
isMax() {
|
|
4908
|
-
return this.decimal.equals(l.MAX_DECIMAL);
|
|
4909
|
-
}
|
|
4910
|
-
format() {
|
|
4911
|
-
return this.value;
|
|
4912
|
-
}
|
|
4913
|
-
equals(a) {
|
|
4914
|
-
return this === a ? !0 : a ? this.value === a.value : !1;
|
|
4915
|
-
}
|
|
4916
|
-
toString() {
|
|
4917
|
-
return this.value;
|
|
4918
|
-
}
|
|
4919
|
-
compareTo(a) {
|
|
4920
|
-
return this === a ? 0 : a ? this.value.localeCompare(a.value) : 1;
|
|
4921
|
-
}
|
|
4959
|
+
]
|
|
4922
4960
|
}
|
|
4923
|
-
|
|
4924
|
-
}
|
|
4925
|
-
(function(s) {
|
|
4926
|
-
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4927
|
-
a === void 0 && (a = o);
|
|
4928
|
-
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4929
|
-
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4930
|
-
return l[o];
|
|
4931
|
-
} }), Object.defineProperty(n, a, i);
|
|
4932
|
-
} : function(n, l, o, a) {
|
|
4933
|
-
a === void 0 && (a = o), n[a] = l[o];
|
|
4934
|
-
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4935
|
-
for (var o in n)
|
|
4936
|
-
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4937
|
-
};
|
|
4938
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(Ye(), s), t(xe(), s), t(G1, s), t(Z1, s);
|
|
4939
|
-
})(Ge);
|
|
4940
|
-
(function(s) {
|
|
4941
|
-
var e = C1 && C1.__createBinding || (Object.create ? function(n, l, o, a) {
|
|
4942
|
-
a === void 0 && (a = o);
|
|
4943
|
-
var i = Object.getOwnPropertyDescriptor(l, o);
|
|
4944
|
-
(!i || ("get" in i ? !l.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
4945
|
-
return l[o];
|
|
4946
|
-
} }), Object.defineProperty(n, a, i);
|
|
4947
|
-
} : function(n, l, o, a) {
|
|
4948
|
-
a === void 0 && (a = o), n[a] = l[o];
|
|
4949
|
-
}), t = C1 && C1.__exportStar || function(n, l) {
|
|
4950
|
-
for (var o in n)
|
|
4951
|
-
o !== "default" && !Object.prototype.hasOwnProperty.call(l, o) && e(l, n, o);
|
|
4952
|
-
};
|
|
4953
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(Ge, s), t(Ve, s);
|
|
4954
|
-
})(we);
|
|
4955
|
-
const ki = { class: "ao-templates" }, Zi = /* @__PURE__ */ Y({
|
|
4961
|
+
], ki = { class: "ao-templates" }, Zi = /* @__PURE__ */ X({
|
|
4956
4962
|
__name: "AoTemplatesList",
|
|
4957
4963
|
props: {
|
|
4958
4964
|
templates: {}
|
|
@@ -4961,7 +4967,7 @@ const ki = { class: "ao-templates" }, Zi = /* @__PURE__ */ Y({
|
|
|
4961
4967
|
setup(s, { emit: e }) {
|
|
4962
4968
|
const t = s, n = () => {
|
|
4963
4969
|
var f, p;
|
|
4964
|
-
const o = (f = t.templates) == null ? void 0 : f.at(-1), a = o ?
|
|
4970
|
+
const o = (f = t.templates) == null ? void 0 : f.at(-1), a = o ? K1.LexoRank.parse(o.rank).genNext() : K1.LexoRank.middle(), d = {
|
|
4965
4971
|
name: `Template ${(((p = t.templates) == null ? void 0 : p.length) ?? 0) + 1}`,
|
|
4966
4972
|
rank: a.format()
|
|
4967
4973
|
};
|
|
@@ -4987,7 +4993,7 @@ const ki = { class: "ao-templates" }, Zi = /* @__PURE__ */ Y({
|
|
|
4987
4993
|
]),
|
|
4988
4994
|
_: 1
|
|
4989
4995
|
}),
|
|
4990
|
-
B(l1(
|
|
4996
|
+
B(l1(le), {
|
|
4991
4997
|
modelValue: l.value,
|
|
4992
4998
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => l.value = i),
|
|
4993
4999
|
class: "ao-templates__list",
|
|
@@ -5017,7 +5023,7 @@ const ki = { class: "ao-templates" }, Zi = /* @__PURE__ */ Y({
|
|
|
5017
5023
|
}
|
|
5018
5024
|
});
|
|
5019
5025
|
export {
|
|
5020
|
-
|
|
5026
|
+
Oi as AoTemplateDetails,
|
|
5021
5027
|
Ui as AoTemplates,
|
|
5022
5028
|
Zi as AoTemplatesList,
|
|
5023
5029
|
G0 as TemplateSubItemTypeEnum,
|