@26lights/orcha 0.42.204 → 0.42.206
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.css +1 -1
- package/dist/orcha.es.js +22 -11
- package/dist/orcha.umd.js +2 -2
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -25991,8 +25991,16 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
25991
25991
|
return p !== f ? p : d.replace(/_/g, " ").replace(/\b\w/g, (y) => y.toUpperCase());
|
|
25992
25992
|
}
|
|
25993
25993
|
function i(d) {
|
|
25994
|
-
const f =
|
|
25995
|
-
|
|
25994
|
+
const f = e(`history.operation.${d.toLowerCase()}`);
|
|
25995
|
+
if (f === `history.operation.${d.toLowerCase()}`) {
|
|
25996
|
+
if (d.toLowerCase() === "create")
|
|
25997
|
+
return "Created";
|
|
25998
|
+
if (d.toLowerCase() === "update")
|
|
25999
|
+
return "Updated";
|
|
26000
|
+
if (d.toLowerCase() === "delete")
|
|
26001
|
+
return "Deleted";
|
|
26002
|
+
}
|
|
26003
|
+
return f;
|
|
25996
26004
|
}
|
|
25997
26005
|
function s(d) {
|
|
25998
26006
|
if (d == null || d === "")
|
|
@@ -26005,20 +26013,20 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26005
26013
|
}
|
|
26006
26014
|
function a(d) {
|
|
26007
26015
|
if (d == null)
|
|
26008
|
-
return e("history.value.null", "
|
|
26016
|
+
return e("history.value.null", "None");
|
|
26009
26017
|
const f = String(d).replace(/\s+/g, " ").trim();
|
|
26010
|
-
return f ? f.length <= th ? f : `${f.slice(0, th).trimEnd()}…` : e("history.value.null", "
|
|
26018
|
+
return f ? f.length <= th ? f : `${f.slice(0, th).trimEnd()}…` : e("history.value.null", "None");
|
|
26011
26019
|
}
|
|
26012
26020
|
function l(d, f) {
|
|
26013
26021
|
var _, y, g, v;
|
|
26014
26022
|
const p = f ? d.oldValue : d.newValue, h = p == null ? void 0 : p.raw;
|
|
26015
26023
|
if (!p || h === null || h === void 0 || h === "")
|
|
26016
|
-
return e("history.value.null", "
|
|
26024
|
+
return e("history.value.null", "None");
|
|
26017
26025
|
if (p.display !== null && p.display !== void 0)
|
|
26018
26026
|
return p.display;
|
|
26019
26027
|
const m = s(h);
|
|
26020
26028
|
if (m === null)
|
|
26021
|
-
return e("history.value.null", "
|
|
26029
|
+
return e("history.value.null", "None");
|
|
26022
26030
|
if (d.type === "BOOLEAN") {
|
|
26023
26031
|
const C = m === !0 || m === "true", x = (y = (_ = n.presentationConfig) == null ? void 0 : _.fields) == null ? void 0 : y[d.field];
|
|
26024
26032
|
if (x != null && x.booleanLabels)
|
|
@@ -26042,8 +26050,11 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26042
26050
|
return d ? d.name ? d.name : (p = (f = n.presentationConfig) == null ? void 0 : f.users) != null && p[d.id] ? n.presentationConfig.users[d.id] : e("history.actor.unknown", "Someone") : e("history.actor.unknown", "Someone");
|
|
26043
26051
|
}
|
|
26044
26052
|
function u(d) {
|
|
26045
|
-
const f = o(d.entity.type), p =
|
|
26046
|
-
|
|
26053
|
+
const f = o(d.entity.type), p = i(d.operation);
|
|
26054
|
+
if (d.entity.type === "comment")
|
|
26055
|
+
return `${p} ${f}`;
|
|
26056
|
+
const h = d.entity.label ?? "";
|
|
26057
|
+
return h ? `${p} ${f} ${h}` : `${p} ${f}`;
|
|
26047
26058
|
}
|
|
26048
26059
|
return (d, f) => (k(), D("div", U1e, [
|
|
26049
26060
|
t.loading ? (k(), D("div", H1e, H(te(e)("history.loading", "Loading history...")), 1)) : !t.events || t.events.length === 0 ? (k(), D("div", z1e, H(te(e)("history.empty", "No history available")), 1)) : (k(), D("div", q1e, [
|
|
@@ -26060,7 +26071,7 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26060
26071
|
class: "ao-history__event"
|
|
26061
26072
|
}, [
|
|
26062
26073
|
b("div", Z1e, H(u(h)), 1),
|
|
26063
|
-
h.
|
|
26074
|
+
h.changes.length > 0 ? (k(), D("div", K1e, [
|
|
26064
26075
|
(k(!0), D(Oe, null, Xe(h.changes, (m) => (k(), D("div", {
|
|
26065
26076
|
key: m.field,
|
|
26066
26077
|
class: "ao-history__change"
|
|
@@ -26068,7 +26079,7 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26068
26079
|
b("strong", G1e, H(r(m.field)), 1),
|
|
26069
26080
|
b("span", Y1e, [
|
|
26070
26081
|
b("span", J1e, H(l(m, !0)), 1),
|
|
26071
|
-
f[0] || (f[0] = b("span", { class: "ao-history__change-arrow" }, "
|
|
26082
|
+
f[0] || (f[0] = b("span", { class: "ao-history__change-arrow" }, "→", -1)),
|
|
26072
26083
|
b("span", X1e, H(l(m, !1)), 1)
|
|
26073
26084
|
])
|
|
26074
26085
|
]))), 128))
|
|
@@ -26079,7 +26090,7 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26079
26090
|
]));
|
|
26080
26091
|
}
|
|
26081
26092
|
});
|
|
26082
|
-
const efe = /* @__PURE__ */ fe(Q1e, [["__scopeId", "data-v-
|
|
26093
|
+
const efe = /* @__PURE__ */ fe(Q1e, [["__scopeId", "data-v-24ba8d22"]]), tfe = ue({
|
|
26083
26094
|
props: {
|
|
26084
26095
|
isLeft: {
|
|
26085
26096
|
type: Boolean,
|