@26lights/orcha 0.41.150 → 0.41.151
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 +2 -2
- package/dist/orcha.es.js +4 -19
- package/dist/orcha.umd.js +2 -2
- package/package.json +1 -1
- package/dist/src/helpers.d.ts +0 -46
package/dist/orcha.es.js
CHANGED
|
@@ -3648,7 +3648,7 @@ const Gs = 60, j3 = 8, R3 = Gs * j3;
|
|
|
3648
3648
|
function Xa(t, e) {
|
|
3649
3649
|
if (!t)
|
|
3650
3650
|
return "0";
|
|
3651
|
-
const a = e ===
|
|
3651
|
+
const a = e === "days" ? t / R3 : t / Gs;
|
|
3652
3652
|
return a % 1 === 0 ? a.toString() : a.toFixed(2);
|
|
3653
3653
|
}
|
|
3654
3654
|
function Xs(t) {
|
|
@@ -10631,12 +10631,7 @@ const Ah = { class: "ao-card-project-phase__header" }, Th = { class: "ao-card-pr
|
|
|
10631
10631
|
const C = (b = a.timeTrackingData) == null ? void 0 : b[y.id];
|
|
10632
10632
|
return $ + ((C == null ? void 0 : C.timeSpent) || 0);
|
|
10633
10633
|
}, 0)) || 0);
|
|
10634
|
-
}, 0)), i = S(() => a.estimationUnit === "days" ? "d" : "h"), l = S(() => {
|
|
10635
|
-
if (!o.value)
|
|
10636
|
-
return "0";
|
|
10637
|
-
const f = a.estimationUnit;
|
|
10638
|
-
return Xa(o.value, f);
|
|
10639
|
-
}), r = S(() => {
|
|
10634
|
+
}, 0)), i = S(() => a.estimationUnit === "days" ? "d" : "h"), l = S(() => o.value ? Xa(o.value, a.estimationUnit) : "0"), r = S(() => {
|
|
10640
10635
|
var f;
|
|
10641
10636
|
return (f = a.milestones) == null ? void 0 : f.length;
|
|
10642
10637
|
}), d = S(() => {
|
|
@@ -10806,12 +10801,7 @@ const jh = { class: "ao-card-project-milestone__default" }, Rh = { class: "ao-ti
|
|
|
10806
10801
|
var f;
|
|
10807
10802
|
const g = (f = a.timeTrackingData) == null ? void 0 : f[p.id];
|
|
10808
10803
|
return c + ((g == null ? void 0 : g.timeSpent) || 0);
|
|
10809
|
-
}, 0)), o = S(() => a.estimationUnit === "days" ? "d" : "h"), i = S(() =>
|
|
10810
|
-
if (!s.value)
|
|
10811
|
-
return "0";
|
|
10812
|
-
const c = a.estimationUnit;
|
|
10813
|
-
return Xa(s.value, c);
|
|
10814
|
-
});
|
|
10804
|
+
}, 0)), o = S(() => a.estimationUnit === "days" ? "d" : "h"), i = S(() => s.value ? Xa(s.value, a.estimationUnit) : "0");
|
|
10815
10805
|
S(() => {
|
|
10816
10806
|
const c = s.value / 60;
|
|
10817
10807
|
return c % 1 === 0 ? c.toString() : c.toFixed(2);
|
|
@@ -10962,12 +10952,7 @@ const Jh = { class: "ao-mapping-card-project-phase__header" }, e9 = { class: "ao
|
|
|
10962
10952
|
const C = (b = a.timeTrackingData) == null ? void 0 : b[y.id];
|
|
10963
10953
|
return $ + ((C == null ? void 0 : C.timeSpent) || 0);
|
|
10964
10954
|
}, 0)) || 0);
|
|
10965
|
-
}, 0)), i = S(() => a.estimationUnit === "days" ? "d" : "h"), l = S(() => {
|
|
10966
|
-
if (!o.value)
|
|
10967
|
-
return "0";
|
|
10968
|
-
const f = a.estimationUnit;
|
|
10969
|
-
return Xa(o.value, f);
|
|
10970
|
-
}), r = S(() => {
|
|
10955
|
+
}, 0)), i = S(() => a.estimationUnit === "days" ? "d" : "h"), l = S(() => o.value ? Xa(o.value, a.estimationUnit) : "0"), r = S(() => {
|
|
10971
10956
|
var f;
|
|
10972
10957
|
return (f = a.milestones) == null ? void 0 : f.length;
|
|
10973
10958
|
}), d = S(() => {
|