@oliasoft-open-source/react-ui-library 6.5.0 → 6.6.0-beta-2
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/components/tree-table/tree-table-check-context.d.ts +10 -5
- package/dist/components/tree-table/tree-table-check-context.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table-row.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.d.ts +4 -4
- package/dist/components/tree-table/tree-table.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.stories-data.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.stories.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +330 -319
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6750,96 +6750,108 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6750
6750
|
drag: "_drag_1ywvy_31",
|
|
6751
6751
|
folder: "_folder_1ywvy_30",
|
|
6752
6752
|
active: "_active_1ywvy_61"
|
|
6753
|
-
}, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t
|
|
6754
|
-
let
|
|
6755
|
-
|
|
6756
|
-
|
|
6753
|
+
}, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t) => {
|
|
6754
|
+
let n = new Set(t);
|
|
6755
|
+
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
6756
|
+
}, Xu = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Zu = (e, t, n, r = []) => {
|
|
6757
|
+
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
6758
|
+
if (o.length === 0) return {
|
|
6759
|
+
checked: i.has(t),
|
|
6757
6760
|
indeterminate: !1
|
|
6758
6761
|
};
|
|
6759
|
-
let
|
|
6762
|
+
let s = o.map((t) => Zu(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
6760
6763
|
return {
|
|
6761
|
-
checked:
|
|
6762
|
-
indeterminate:
|
|
6764
|
+
checked: u,
|
|
6765
|
+
indeterminate: c + l > 0 && !u
|
|
6763
6766
|
};
|
|
6764
|
-
},
|
|
6765
|
-
let n = t.length;
|
|
6767
|
+
}, Qu = (e, t, n = []) => {
|
|
6768
|
+
let r = Yu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
6766
6769
|
return {
|
|
6767
|
-
checked:
|
|
6768
|
-
indeterminate:
|
|
6770
|
+
checked: r.length > 0 && a === r.length,
|
|
6771
|
+
indeterminate: a > 0 && a < r.length
|
|
6769
6772
|
};
|
|
6770
|
-
},
|
|
6771
|
-
let
|
|
6772
|
-
if (!
|
|
6773
|
-
let
|
|
6774
|
-
for (let
|
|
6775
|
-
return
|
|
6773
|
+
}, $u = n(null), ed = () => s($u), td = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
6774
|
+
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], onChange: s } = t == null ? {} : t, c = d(() => new Set(a), [a]), l = d(() => {
|
|
6775
|
+
if (!r) return null;
|
|
6776
|
+
let e = /* @__PURE__ */ new Map();
|
|
6777
|
+
for (let t of n) e.set(t.id, Zu(n, t.id, i, a));
|
|
6778
|
+
return e;
|
|
6776
6779
|
}, [
|
|
6777
6780
|
i,
|
|
6781
|
+
a,
|
|
6778
6782
|
r,
|
|
6779
|
-
|
|
6780
|
-
]),
|
|
6783
|
+
n
|
|
6784
|
+
]), u = d(() => r ? Qu(n, i, a) : void 0, [
|
|
6781
6785
|
i,
|
|
6786
|
+
a,
|
|
6782
6787
|
r,
|
|
6783
|
-
|
|
6784
|
-
]),
|
|
6785
|
-
if (!
|
|
6786
|
-
let
|
|
6787
|
-
if (
|
|
6788
|
-
let
|
|
6789
|
-
|
|
6790
|
-
} else
|
|
6788
|
+
n
|
|
6789
|
+
]), f = o((e) => l == null ? void 0 : l.get(e), [l]), p = o((e) => c.has(e), [c]), m = o((e) => {
|
|
6790
|
+
if (!r || c.has(e)) return;
|
|
6791
|
+
let t = Ju(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = Zu(n, e, i, a);
|
|
6792
|
+
if (u) {
|
|
6793
|
+
let e = new Set(l);
|
|
6794
|
+
s == null || s(Xu(i, e, c));
|
|
6795
|
+
} else s == null || s([...new Set([...i, ...o])]);
|
|
6791
6796
|
}, [
|
|
6792
|
-
e,
|
|
6793
6797
|
i,
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6798
|
+
a,
|
|
6799
|
+
c,
|
|
6800
|
+
r,
|
|
6801
|
+
s,
|
|
6802
|
+
n
|
|
6803
|
+
]), h = o(() => {
|
|
6804
|
+
if (!r) return;
|
|
6805
|
+
let e = Yu(n, a), { checked: t } = Qu(n, i, a);
|
|
6806
|
+
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([...new Set([...i, ...e])]);
|
|
6800
6807
|
}, [
|
|
6801
|
-
e,
|
|
6802
|
-
i,
|
|
6803
|
-
n,
|
|
6804
|
-
r
|
|
6805
|
-
]), f = d(() => ({
|
|
6806
|
-
enabled: i,
|
|
6807
|
-
headerCheckState: s,
|
|
6808
|
-
getRowCheckState: c,
|
|
6809
|
-
toggleRowCheck: l,
|
|
6810
|
-
toggleHeaderCheck: u
|
|
6811
|
-
}), [
|
|
6812
6808
|
i,
|
|
6809
|
+
a,
|
|
6813
6810
|
c,
|
|
6811
|
+
r,
|
|
6814
6812
|
s,
|
|
6813
|
+
n
|
|
6814
|
+
]), g = d(() => ({
|
|
6815
|
+
enabled: r,
|
|
6816
|
+
headerCheckState: u,
|
|
6817
|
+
getRowCheckState: f,
|
|
6818
|
+
isRowCheckDisabled: p,
|
|
6819
|
+
toggleRowCheck: m,
|
|
6820
|
+
toggleHeaderCheck: h
|
|
6821
|
+
}), [
|
|
6822
|
+
r,
|
|
6823
|
+
f,
|
|
6815
6824
|
u,
|
|
6816
|
-
|
|
6825
|
+
p,
|
|
6826
|
+
h,
|
|
6827
|
+
m
|
|
6817
6828
|
]);
|
|
6818
|
-
return /* @__PURE__ */ v(
|
|
6819
|
-
value:
|
|
6820
|
-
children:
|
|
6829
|
+
return /* @__PURE__ */ v($u.Provider, {
|
|
6830
|
+
value: g,
|
|
6831
|
+
children: e
|
|
6821
6832
|
});
|
|
6822
|
-
},
|
|
6823
|
-
let h =
|
|
6833
|
+
}, nd = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
6834
|
+
let h = ed(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), { data: C, droppable: w } = l, { id: T, cells: E, testId: D, actions: O = [], active: k, onRowClick: A } = C, j = w || a, M = h == null ? void 0 : h.enabled, N = (e) => {
|
|
6824
6835
|
let r = t ? t[e] : void 0;
|
|
6825
|
-
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${
|
|
6836
|
+
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${j ? n + 1 : n})`})` : r;
|
|
6826
6837
|
};
|
|
6827
6838
|
return /* @__PURE__ */ v("table", {
|
|
6828
6839
|
className: mo.table,
|
|
6829
|
-
"data-testid":
|
|
6840
|
+
"data-testid": D,
|
|
6830
6841
|
onDrop: p,
|
|
6831
6842
|
onDragEnter: u,
|
|
6832
6843
|
onDragOver: d,
|
|
6833
6844
|
onDragLeave: f,
|
|
6834
6845
|
children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
|
|
6835
|
-
onClick:
|
|
6836
|
-
className: g(qu.treeTableRow,
|
|
6846
|
+
onClick: A,
|
|
6847
|
+
className: g(qu.treeTableRow, k ? qu.active : void 0),
|
|
6837
6848
|
children: [
|
|
6838
|
-
|
|
6849
|
+
M && /* @__PURE__ */ v(pc, {
|
|
6839
6850
|
isHeader: !1,
|
|
6840
6851
|
cell: {
|
|
6841
6852
|
type: fc.CHECKBOX,
|
|
6842
6853
|
checked: b,
|
|
6854
|
+
disabled: S,
|
|
6843
6855
|
indeterminate: x,
|
|
6844
6856
|
onChange: () => h == null ? void 0 : h.toggleRowCheck(l.id)
|
|
6845
6857
|
}
|
|
@@ -6854,11 +6866,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6854
6866
|
})
|
|
6855
6867
|
}),
|
|
6856
6868
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
|
|
6857
|
-
|
|
6869
|
+
j && /* @__PURE__ */ v("td", {
|
|
6858
6870
|
className: qu.folderCell,
|
|
6859
6871
|
children: /* @__PURE__ */ v("div", {
|
|
6860
6872
|
className: qu.folder,
|
|
6861
|
-
onClick: () => m(
|
|
6873
|
+
onClick: () => m(T),
|
|
6862
6874
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6863
6875
|
children: /* @__PURE__ */ v(K, {
|
|
6864
6876
|
basic: !0,
|
|
@@ -6870,24 +6882,24 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6870
6882
|
})
|
|
6871
6883
|
})
|
|
6872
6884
|
}),
|
|
6873
|
-
|
|
6885
|
+
E.map((t, n) => /* @__PURE__ */ v(pc, {
|
|
6874
6886
|
isHeader: !1,
|
|
6875
6887
|
cell: t,
|
|
6876
|
-
width:
|
|
6888
|
+
width: N(n),
|
|
6877
6889
|
columnAlignment: e ? e[n] : null
|
|
6878
6890
|
}, n)),
|
|
6879
6891
|
o && /* @__PURE__ */ v(pc, {
|
|
6880
6892
|
isHeader: !1,
|
|
6881
6893
|
cell: {
|
|
6882
6894
|
type: fc.ACTIONS,
|
|
6883
|
-
actions:
|
|
6895
|
+
actions: O
|
|
6884
6896
|
}
|
|
6885
6897
|
})
|
|
6886
6898
|
]
|
|
6887
6899
|
}) })
|
|
6888
6900
|
});
|
|
6889
|
-
},
|
|
6890
|
-
let a =
|
|
6901
|
+
}, rd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
6902
|
+
let a = ed(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
6891
6903
|
return /* @__PURE__ */ v("table", {
|
|
6892
6904
|
className: g(mo.table, qu.treeTableHeader),
|
|
6893
6905
|
children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
|
|
@@ -6917,87 +6929,86 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6917
6929
|
})
|
|
6918
6930
|
] }, c)) })
|
|
6919
6931
|
});
|
|
6920
|
-
},
|
|
6921
|
-
let { columnAlignment:
|
|
6922
|
-
return /* @__PURE__ */ v(
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
rows: x,
|
|
6932
|
+
}, id = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
|
|
6933
|
+
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
|
|
6934
|
+
return /* @__PURE__ */ v(td, {
|
|
6935
|
+
rowCheckboxes: u,
|
|
6936
|
+
rows: b,
|
|
6926
6937
|
children: /* @__PURE__ */ y("div", {
|
|
6927
6938
|
className: qu.treeTable,
|
|
6928
|
-
"data-testid":
|
|
6929
|
-
style: { width:
|
|
6930
|
-
children: [!!
|
|
6931
|
-
columnAlignment:
|
|
6932
|
-
columnWidths:
|
|
6933
|
-
draggable:
|
|
6934
|
-
hasRowActions:
|
|
6935
|
-
headers:
|
|
6939
|
+
"data-testid": f,
|
|
6940
|
+
style: { width: g },
|
|
6941
|
+
children: [!!_ && /* @__PURE__ */ v(rd, {
|
|
6942
|
+
columnAlignment: m,
|
|
6943
|
+
columnWidths: h,
|
|
6944
|
+
draggable: r,
|
|
6945
|
+
hasRowActions: x,
|
|
6946
|
+
headers: _
|
|
6936
6947
|
}), /* @__PURE__ */ v(Ku, {
|
|
6937
6948
|
allowParentReassignment: e,
|
|
6938
6949
|
autoOpenActiveItems: t,
|
|
6939
6950
|
canDrop: n,
|
|
6940
|
-
draggable:
|
|
6941
|
-
icons:
|
|
6942
|
-
isInitialOpen:
|
|
6943
|
-
itemHasChild:
|
|
6951
|
+
draggable: r,
|
|
6952
|
+
icons: i,
|
|
6953
|
+
isInitialOpen: a,
|
|
6954
|
+
itemHasChild: o,
|
|
6944
6955
|
list: {
|
|
6945
6956
|
noHeader: !0,
|
|
6946
|
-
items:
|
|
6957
|
+
items: b
|
|
6947
6958
|
},
|
|
6948
|
-
onChangeOpen:
|
|
6949
|
-
onItemToggle:
|
|
6950
|
-
onListReorder:
|
|
6959
|
+
onChangeOpen: l,
|
|
6960
|
+
onItemToggle: s,
|
|
6961
|
+
onListReorder: c,
|
|
6951
6962
|
placeholderIndent: "var(--size)",
|
|
6952
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild:
|
|
6963
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(nd, {
|
|
6953
6964
|
node: e,
|
|
6954
|
-
columnAlignment:
|
|
6955
|
-
columnWidths:
|
|
6965
|
+
columnAlignment: m,
|
|
6966
|
+
columnWidths: h,
|
|
6956
6967
|
depth: t,
|
|
6957
6968
|
draggable: n,
|
|
6958
6969
|
handleRef: r,
|
|
6959
|
-
hasChild:
|
|
6960
|
-
hasRowActions:
|
|
6961
|
-
icons:
|
|
6970
|
+
hasChild: a,
|
|
6971
|
+
hasRowActions: x,
|
|
6972
|
+
icons: i,
|
|
6962
6973
|
isOpen: o,
|
|
6963
6974
|
onToggle: s
|
|
6964
6975
|
}, e.id),
|
|
6965
|
-
treeRef:
|
|
6976
|
+
treeRef: p
|
|
6966
6977
|
})]
|
|
6967
6978
|
})
|
|
6968
6979
|
});
|
|
6969
|
-
},
|
|
6980
|
+
}, ad = () => {
|
|
6970
6981
|
let e = p(null);
|
|
6971
6982
|
return u(() => {
|
|
6972
6983
|
e.current && (e.current(), e.current = null);
|
|
6973
6984
|
}), (t) => {
|
|
6974
6985
|
e.current = t;
|
|
6975
6986
|
};
|
|
6976
|
-
},
|
|
6987
|
+
}, od = (e) => {
|
|
6977
6988
|
let t = p(void 0);
|
|
6978
6989
|
return c(() => {
|
|
6979
6990
|
t.current = e;
|
|
6980
6991
|
}, [e]), t.current;
|
|
6981
|
-
},
|
|
6992
|
+
}, sd = (e, t) => {
|
|
6982
6993
|
let n = t == null ? void 0 : t[e];
|
|
6983
6994
|
if (!n) {
|
|
6984
6995
|
var r;
|
|
6985
6996
|
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
|
|
6986
6997
|
}
|
|
6987
6998
|
return n;
|
|
6988
|
-
},
|
|
6999
|
+
}, cd = /* @__PURE__ */ function(e) {
|
|
6989
7000
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6990
|
-
}({}),
|
|
7001
|
+
}({}), ld = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), ud = (e) => {
|
|
6991
7002
|
if (!e) return !1;
|
|
6992
7003
|
let t = Dn(e);
|
|
6993
7004
|
return !xn.includes(t);
|
|
6994
|
-
},
|
|
7005
|
+
}, dd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6995
7006
|
var r;
|
|
6996
7007
|
let i = bn[t];
|
|
6997
7008
|
if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6998
7009
|
let a = Dn(String(e));
|
|
6999
7010
|
return !(a && !i.includes(a));
|
|
7000
|
-
},
|
|
7011
|
+
}, fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7001
7012
|
var o;
|
|
7002
7013
|
let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7003
7014
|
if (i || c) return {
|
|
@@ -7017,13 +7028,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7017
7028
|
value: void 0,
|
|
7018
7029
|
error: "Source unit is missing"
|
|
7019
7030
|
};
|
|
7020
|
-
if (
|
|
7031
|
+
if (ld(s)) return {
|
|
7021
7032
|
value: void 0,
|
|
7022
7033
|
error: "Value is invalid for conversion"
|
|
7023
7034
|
};
|
|
7024
7035
|
try {
|
|
7025
7036
|
let e = Kn(s, l);
|
|
7026
|
-
return
|
|
7037
|
+
return dd({
|
|
7027
7038
|
value: e,
|
|
7028
7039
|
toUnit: n,
|
|
7029
7040
|
unitkey: t
|
|
@@ -7040,13 +7051,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7040
7051
|
error: "Conversion not possible"
|
|
7041
7052
|
};
|
|
7042
7053
|
}
|
|
7043
|
-
},
|
|
7044
|
-
let a = kn(e), o =
|
|
7045
|
-
return !
|
|
7054
|
+
}, pd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7055
|
+
let a = kn(e), o = ld(a);
|
|
7056
|
+
return !dd({
|
|
7046
7057
|
value: e,
|
|
7047
7058
|
unitkey: n,
|
|
7048
7059
|
toUnit: t
|
|
7049
|
-
}) ||
|
|
7060
|
+
}) || ud(e) || o ? { value: a } : Nn(e) ? fd({
|
|
7050
7061
|
value: e,
|
|
7051
7062
|
unitkey: n,
|
|
7052
7063
|
toUnit: t,
|
|
@@ -7054,25 +7065,25 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7054
7065
|
doNotConvertValue: i,
|
|
7055
7066
|
exactPrecision: !0
|
|
7056
7067
|
}) : { value: e };
|
|
7057
|
-
},
|
|
7068
|
+
}, md = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", hd = (e = "") => xn == null ? void 0 : xn.includes(e), gd = (e, t) => {
|
|
7058
7069
|
let n = Dn(e || "");
|
|
7059
|
-
return
|
|
7060
|
-
},
|
|
7061
|
-
|
|
7062
|
-
},
|
|
7070
|
+
return hd(t) && hd(n);
|
|
7071
|
+
}, _d = n(null), vd = () => s(_d), yd = !1, bd = (e) => {
|
|
7072
|
+
yd || (yd = !0, _d = e);
|
|
7073
|
+
}, xd = (e) => jn(e) ? e : Fn(e), Sd = {
|
|
7063
7074
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7064
7075
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7065
|
-
},
|
|
7076
|
+
}, Cd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = pn, onClick: b = pn, onFocus: x = pn, onSwitchUnit: S = pn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7066
7077
|
name: "",
|
|
7067
7078
|
error: null
|
|
7068
7079
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: te = null }) => {
|
|
7069
|
-
let ne =
|
|
7080
|
+
let ne = vd(), re = ad();
|
|
7070
7081
|
typeof l == "number" && (l = `${l}`);
|
|
7071
|
-
let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() =>
|
|
7082
|
+
let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => sd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
|
|
7072
7083
|
u,
|
|
7073
7084
|
C,
|
|
7074
7085
|
ne == null ? void 0 : ne.unitTemplate
|
|
7075
|
-
]), oe =
|
|
7086
|
+
]), oe = gd(l, R), se = f || R || ae, ce = od(se), { value: le } = pd({
|
|
7076
7087
|
value: l,
|
|
7077
7088
|
toUnit: se,
|
|
7078
7089
|
unitkey: u,
|
|
@@ -7084,10 +7095,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7084
7095
|
} : {
|
|
7085
7096
|
value: le,
|
|
7086
7097
|
unit: se
|
|
7087
|
-
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ?
|
|
7098
|
+
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? cd.PREDEFINED : cd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
|
|
7088
7099
|
if (!(e != null && e.value)) return;
|
|
7089
7100
|
if (k) return k === e.valueKey;
|
|
7090
|
-
let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } =
|
|
7101
|
+
let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = fd({
|
|
7091
7102
|
value: String(l),
|
|
7092
7103
|
unitkey: u,
|
|
7093
7104
|
toUnit: t
|
|
@@ -7096,7 +7107,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7096
7107
|
}), ge = () => {
|
|
7097
7108
|
var e;
|
|
7098
7109
|
let t = (e = l) == null ? "" : e, n = z.unit;
|
|
7099
|
-
if (!
|
|
7110
|
+
if (!dd({
|
|
7100
7111
|
value: t,
|
|
7101
7112
|
unitkey: u,
|
|
7102
7113
|
toUnit: n
|
|
@@ -7110,7 +7121,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7110
7121
|
return null;
|
|
7111
7122
|
}
|
|
7112
7123
|
}, _e = (t) => {
|
|
7113
|
-
let n =
|
|
7124
|
+
let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
|
|
7114
7125
|
h({ target: {
|
|
7115
7126
|
value: N ? Kn(wn(o, ae), ae) : o,
|
|
7116
7127
|
name: n
|
|
@@ -7132,7 +7143,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7132
7143
|
if (se) {
|
|
7133
7144
|
let e, t = "";
|
|
7134
7145
|
if (ce !== se) {
|
|
7135
|
-
let { value: n } =
|
|
7146
|
+
let { value: n } = pd({
|
|
7136
7147
|
value: l,
|
|
7137
7148
|
toUnit: se,
|
|
7138
7149
|
unitkey: u,
|
|
@@ -7141,7 +7152,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7141
7152
|
});
|
|
7142
7153
|
e = n, t = se;
|
|
7143
7154
|
} else if (Kn(z.value, z.unit) !== l) {
|
|
7144
|
-
let { value: n } =
|
|
7155
|
+
let { value: n } = pd({
|
|
7145
7156
|
value: l,
|
|
7146
7157
|
toUnit: z.unit,
|
|
7147
7158
|
unitkey: u,
|
|
@@ -7153,7 +7164,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7153
7164
|
e !== void 0 && ue({
|
|
7154
7165
|
value: e,
|
|
7155
7166
|
unit: t
|
|
7156
|
-
}), pe(E && he && O ?
|
|
7167
|
+
}), pe(E && he && O ? cd.PREDEFINED : cd.CUSTOM);
|
|
7157
7168
|
}
|
|
7158
7169
|
}, [
|
|
7159
7170
|
se,
|
|
@@ -7161,14 +7172,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7161
7172
|
i,
|
|
7162
7173
|
O
|
|
7163
7174
|
]);
|
|
7164
|
-
let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se =
|
|
7175
|
+
let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = md(e), Ce, we = (t) => {
|
|
7165
7176
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
|
|
7166
|
-
if (
|
|
7177
|
+
if (dd({
|
|
7167
7178
|
value: r,
|
|
7168
7179
|
unitkey: u,
|
|
7169
7180
|
toUnit: a
|
|
7170
7181
|
})) {
|
|
7171
|
-
let { value: e = "" } =
|
|
7182
|
+
let { value: e = "" } = pd({
|
|
7172
7183
|
value: r,
|
|
7173
7184
|
toUnit: R,
|
|
7174
7185
|
unitkey: u,
|
|
@@ -7181,7 +7192,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7181
7192
|
type: xi.OPTION,
|
|
7182
7193
|
inline: !0,
|
|
7183
7194
|
onClick: () => {
|
|
7184
|
-
Wn(i).valid && !n && (pe(
|
|
7195
|
+
Wn(i).valid && !n && (pe(cd.PREDEFINED), h({ target: {
|
|
7185
7196
|
value: r,
|
|
7186
7197
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7187
7198
|
predefinedSelected: !0,
|
|
@@ -7193,27 +7204,27 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7193
7204
|
height: "0"
|
|
7194
7205
|
})] }),
|
|
7195
7206
|
description: o,
|
|
7196
|
-
selected: he === t && fe ===
|
|
7207
|
+
selected: he === t && fe === cd.PREDEFINED
|
|
7197
7208
|
};
|
|
7198
7209
|
};
|
|
7199
7210
|
if (Ce = [{
|
|
7200
7211
|
type: xi.OPTION,
|
|
7201
7212
|
inline: !0,
|
|
7202
7213
|
onClick: () => {
|
|
7203
|
-
fe !==
|
|
7214
|
+
fe !== cd.CUSTOM && !n && h({ target: {
|
|
7204
7215
|
value: Kn(z.value, z.unit),
|
|
7205
7216
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7206
7217
|
} });
|
|
7207
7218
|
},
|
|
7208
7219
|
label: "Custom",
|
|
7209
|
-
selected: fe ===
|
|
7220
|
+
selected: fe === cd.CUSTOM
|
|
7210
7221
|
}], E != null && E.length) {
|
|
7211
7222
|
let e = E.map(we);
|
|
7212
7223
|
Ce = [...Ce, ...e];
|
|
7213
7224
|
}
|
|
7214
7225
|
let Te = (e) => {
|
|
7215
7226
|
if (Nn(e)) {
|
|
7216
|
-
let t = Dn(e), { value: n } =
|
|
7227
|
+
let t = Dn(e), { value: n } = pd({
|
|
7217
7228
|
value: e,
|
|
7218
7229
|
toUnit: z.unit,
|
|
7219
7230
|
unitkey: u,
|
|
@@ -7225,7 +7236,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7225
7236
|
return e;
|
|
7226
7237
|
}, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
|
|
7227
7238
|
return /* @__PURE__ */ v("div", {
|
|
7228
|
-
className: fe ===
|
|
7239
|
+
className: fe === cd.PREDEFINED ? g(Sd.predefinedMenuActive) : "",
|
|
7229
7240
|
children: /* @__PURE__ */ y(Ma, {
|
|
7230
7241
|
small: o,
|
|
7231
7242
|
width: s,
|
|
@@ -7240,17 +7251,17 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7240
7251
|
trigger: "Component",
|
|
7241
7252
|
component: /* @__PURE__ */ v(K, {
|
|
7242
7253
|
groupOrder: "first",
|
|
7243
|
-
active: fe ===
|
|
7244
|
-
icon: fe ===
|
|
7254
|
+
active: fe === cd.PREDEFINED,
|
|
7255
|
+
icon: fe === cd.PREDEFINED ? "link" : "unlink",
|
|
7245
7256
|
small: o
|
|
7246
7257
|
}),
|
|
7247
7258
|
small: o,
|
|
7248
7259
|
sections: Ce
|
|
7249
7260
|
},
|
|
7250
|
-
tooltip: fe ===
|
|
7261
|
+
tooltip: fe === cd.PREDEFINED ? he == null ? void 0 : he.label : ""
|
|
7251
7262
|
}),
|
|
7252
7263
|
/* @__PURE__ */ v("div", {
|
|
7253
|
-
className:
|
|
7264
|
+
className: Sd.inputWrapper,
|
|
7254
7265
|
children: /* @__PURE__ */ v(Gs, {
|
|
7255
7266
|
name: Se,
|
|
7256
7267
|
testId: w,
|
|
@@ -7292,7 +7303,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7292
7303
|
let r = n || t || "", i = Mn(e) ? e : "";
|
|
7293
7304
|
return {
|
|
7294
7305
|
type: "Option",
|
|
7295
|
-
label: P ?
|
|
7306
|
+
label: P ? xd(i) : i,
|
|
7296
7307
|
inline: !0,
|
|
7297
7308
|
onClick: (n) => {
|
|
7298
7309
|
n.stopPropagation(), ve(e, t);
|
|
@@ -7307,10 +7318,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7307
7318
|
]
|
|
7308
7319
|
})
|
|
7309
7320
|
});
|
|
7310
|
-
},
|
|
7321
|
+
}, wd = Object.freeze({
|
|
7311
7322
|
Translations: "translations",
|
|
7312
7323
|
LanguageKey: "languageKey"
|
|
7313
|
-
}),
|
|
7324
|
+
}), Td = {
|
|
7314
7325
|
unified: "Unified",
|
|
7315
7326
|
split: "Split",
|
|
7316
7327
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7332,29 +7343,29 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7332
7343
|
pluralChanges: "changes",
|
|
7333
7344
|
showAll: "Show all",
|
|
7334
7345
|
unknown: "Unknown"
|
|
7335
|
-
},
|
|
7346
|
+
}, Ed = (e) => Object.keys(Td).reduce((t, n) => ({
|
|
7336
7347
|
...t,
|
|
7337
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7338
|
-
}), {}),
|
|
7339
|
-
[
|
|
7340
|
-
[
|
|
7341
|
-
},
|
|
7342
|
-
|
|
7343
|
-
},
|
|
7348
|
+
[n]: (e == null ? void 0 : e[n]) || (Td == null ? void 0 : Td[n])
|
|
7349
|
+
}), {}), Dd = {
|
|
7350
|
+
[wd.Translations]: Ed(),
|
|
7351
|
+
[wd.LanguageKey]: "en"
|
|
7352
|
+
}, Od = (e) => e ? Dd[e] : Dd, kd = (e, t) => {
|
|
7353
|
+
Dd[e] = t;
|
|
7354
|
+
}, Ad = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
7344
7355
|
var a;
|
|
7345
|
-
let { unitTemplate: o = null } = (a =
|
|
7346
|
-
return e[n] = r == null ?
|
|
7356
|
+
let { unitTemplate: o = null } = (a = vd()) == null ? {} : a;
|
|
7357
|
+
return e[n] = r == null ? sd(n, o) : r, t[n] = i, {
|
|
7347
7358
|
preferredUnits: e,
|
|
7348
7359
|
storageUnits: t
|
|
7349
7360
|
};
|
|
7350
7361
|
}, {
|
|
7351
7362
|
preferredUnits: {},
|
|
7352
7363
|
storageUnits: {}
|
|
7353
|
-
}),
|
|
7364
|
+
}), jd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7354
7365
|
...e,
|
|
7355
7366
|
cells: e.cells.map((e, s) => {
|
|
7356
7367
|
if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
|
|
7357
|
-
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } =
|
|
7368
|
+
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = fd({
|
|
7358
7369
|
value: Hs(l),
|
|
7359
7370
|
unitkey: c,
|
|
7360
7371
|
toUnit: f,
|
|
@@ -7368,7 +7379,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7368
7379
|
roundDisplayValue: d,
|
|
7369
7380
|
selectOnFocus: !0,
|
|
7370
7381
|
onChange: (n) => {
|
|
7371
|
-
let { value: r } = n.target, a = i ? p : f, { value: o = r } =
|
|
7382
|
+
let { value: r } = n.target, a = i ? p : f, { value: o = r } = fd({
|
|
7372
7383
|
value: String(r),
|
|
7373
7384
|
unitkey: c,
|
|
7374
7385
|
toUnit: a,
|
|
@@ -7392,8 +7403,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7392
7403
|
}
|
|
7393
7404
|
return e;
|
|
7394
7405
|
})
|
|
7395
|
-
}),
|
|
7396
|
-
let { translations: i } =
|
|
7406
|
+
}), Md = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7407
|
+
let { translations: i } = Od();
|
|
7397
7408
|
return e ? e.map((e) => ({
|
|
7398
7409
|
...e,
|
|
7399
7410
|
cells: e.cells.map((e) => {
|
|
@@ -7422,8 +7433,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7422
7433
|
return e;
|
|
7423
7434
|
})
|
|
7424
7435
|
})) : [];
|
|
7425
|
-
},
|
|
7426
|
-
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } =
|
|
7436
|
+
}, Nd = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
|
|
7437
|
+
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Ad(t), h = od(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
|
|
7427
7438
|
_({
|
|
7428
7439
|
...g,
|
|
7429
7440
|
[e]: n
|
|
@@ -7434,7 +7445,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7434
7445
|
newUnit: n,
|
|
7435
7446
|
unitKey: e
|
|
7436
7447
|
});
|
|
7437
|
-
}, b = o(({ row: e, rowIndex: t }) =>
|
|
7448
|
+
}, b = o(({ row: e, rowIndex: t }) => jd({
|
|
7438
7449
|
row: l ? l({
|
|
7439
7450
|
row: e,
|
|
7440
7451
|
rowIndex: t
|
|
@@ -7463,7 +7474,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7463
7474
|
}, [t]), /* @__PURE__ */ v(yc, {
|
|
7464
7475
|
table: {
|
|
7465
7476
|
...d,
|
|
7466
|
-
headers:
|
|
7477
|
+
headers: Md({
|
|
7467
7478
|
headers: e.headers,
|
|
7468
7479
|
selectedUnits: g,
|
|
7469
7480
|
storageUnits: f,
|
|
@@ -7474,8 +7485,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7474
7485
|
canListReorder: s,
|
|
7475
7486
|
beforeRenderRow: b
|
|
7476
7487
|
});
|
|
7477
|
-
},
|
|
7478
|
-
let { translations: d } =
|
|
7488
|
+
}, Pd = { settingField: "_settingField_1x02n_1" }, Fd = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
|
|
7489
|
+
let { translations: d } = Od(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
|
|
7479
7490
|
...r ? [] : [{
|
|
7480
7491
|
label: d == null ? void 0 : d.allUsers,
|
|
7481
7492
|
value: !1
|
|
@@ -7490,7 +7501,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7490
7501
|
}] : []
|
|
7491
7502
|
], m = a !== void 0 && o !== void 0 && !an(a, o);
|
|
7492
7503
|
return /* @__PURE__ */ y("div", {
|
|
7493
|
-
className:
|
|
7504
|
+
className: Pd.settingField,
|
|
7494
7505
|
"data-testid": u,
|
|
7495
7506
|
children: [/* @__PURE__ */ y(Nl, {
|
|
7496
7507
|
justifyContent: "space-between",
|
|
@@ -7522,19 +7533,19 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7522
7533
|
children: f(t)
|
|
7523
7534
|
})]
|
|
7524
7535
|
});
|
|
7525
|
-
},
|
|
7536
|
+
}, Id = (e, t) => {
|
|
7526
7537
|
let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
|
|
7527
7538
|
return {
|
|
7528
7539
|
added: Math.max(0, i),
|
|
7529
7540
|
removed: Math.max(0, a)
|
|
7530
7541
|
};
|
|
7531
|
-
},
|
|
7542
|
+
}, Ld = "split", Rd = "unified", zd = ({ oldJson: e, newJson: t, viewType: n = Ld }) => {
|
|
7532
7543
|
var r, i;
|
|
7533
|
-
let { translations: a } =
|
|
7534
|
-
value:
|
|
7544
|
+
let { translations: a } = Od(), [o, s] = m(n), l = [{
|
|
7545
|
+
value: Ld,
|
|
7535
7546
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7536
7547
|
}, {
|
|
7537
|
-
value:
|
|
7548
|
+
value: Rd,
|
|
7538
7549
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7539
7550
|
}];
|
|
7540
7551
|
c(() => {
|
|
@@ -7542,7 +7553,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7542
7553
|
}, [n]);
|
|
7543
7554
|
let u = ({ target: { value: e } }) => {
|
|
7544
7555
|
s(e);
|
|
7545
|
-
}, { added: d, removed: f } =
|
|
7556
|
+
}, { added: d, removed: f } = Id(e, t), p = d + f > 3500;
|
|
7546
7557
|
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
|
|
7547
7558
|
bordered: !0,
|
|
7548
7559
|
heading: /* @__PURE__ */ y(Nl, {
|
|
@@ -7575,14 +7586,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7575
7586
|
}) : /* @__PURE__ */ v(xr, {
|
|
7576
7587
|
oldValue: e,
|
|
7577
7588
|
newValue: t,
|
|
7578
|
-
splitView: o ===
|
|
7589
|
+
splitView: o === Ld,
|
|
7579
7590
|
compareMethod: Sr.WORDS
|
|
7580
7591
|
})
|
|
7581
7592
|
}) });
|
|
7582
7593
|
};
|
|
7583
7594
|
//#endregion
|
|
7584
7595
|
//#region src/helpers/date.ts
|
|
7585
|
-
function
|
|
7596
|
+
function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7586
7597
|
return e ? new Date(e).toLocaleString(a, {
|
|
7587
7598
|
year: "numeric",
|
|
7588
7599
|
month: "short",
|
|
@@ -7596,28 +7607,28 @@ function Rd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
7596
7607
|
}
|
|
7597
7608
|
//#endregion
|
|
7598
7609
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
7599
|
-
function
|
|
7610
|
+
function Vd(e) {
|
|
7600
7611
|
var t;
|
|
7601
7612
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
7602
7613
|
if (!n) throw Error("Invalid RegExp");
|
|
7603
7614
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
7604
7615
|
}
|
|
7605
|
-
function
|
|
7616
|
+
function Hd(e) {
|
|
7606
7617
|
if (typeof e != "object") return e;
|
|
7607
7618
|
if (e === null) return null;
|
|
7608
|
-
if (Array.isArray(e)) return e.map(
|
|
7619
|
+
if (Array.isArray(e)) return e.map(Hd);
|
|
7609
7620
|
if (e instanceof Date) return new Date(e.getTime());
|
|
7610
|
-
if (e instanceof RegExp) return
|
|
7621
|
+
if (e instanceof RegExp) return Vd(e);
|
|
7611
7622
|
let t = {};
|
|
7612
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
7623
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Hd(e[n]));
|
|
7613
7624
|
return t;
|
|
7614
7625
|
}
|
|
7615
7626
|
//#endregion
|
|
7616
7627
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
7617
|
-
function
|
|
7628
|
+
function Ud(e, t) {
|
|
7618
7629
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
7619
7630
|
}
|
|
7620
|
-
var
|
|
7631
|
+
var Wd = (e) => e[e.length - 1], Gd = class {
|
|
7621
7632
|
setResult(e) {
|
|
7622
7633
|
return this.result = e, this.hasResult = !0, this;
|
|
7623
7634
|
}
|
|
@@ -7625,16 +7636,16 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7625
7636
|
return this.exiting = !0, this;
|
|
7626
7637
|
}
|
|
7627
7638
|
push(e, t) {
|
|
7628
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
7639
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Ud(this.children), Wd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
7629
7640
|
}
|
|
7630
|
-
},
|
|
7641
|
+
}, Kd = class extends Gd {
|
|
7631
7642
|
constructor(e, t) {
|
|
7632
7643
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
7633
7644
|
}
|
|
7634
7645
|
prepareDeltaResult(e) {
|
|
7635
7646
|
var t, n, r, i;
|
|
7636
7647
|
if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
|
|
7637
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
7648
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Hd;
|
|
7638
7649
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
7639
7650
|
}
|
|
7640
7651
|
return e;
|
|
@@ -7642,15 +7653,15 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7642
7653
|
setResult(e) {
|
|
7643
7654
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
7644
7655
|
}
|
|
7645
|
-
},
|
|
7656
|
+
}, qd = class extends Gd {
|
|
7646
7657
|
constructor(e, t) {
|
|
7647
7658
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
7648
7659
|
}
|
|
7649
|
-
},
|
|
7660
|
+
}, Jd = class extends Gd {
|
|
7650
7661
|
constructor(e) {
|
|
7651
7662
|
super(), this.delta = e, this.pipe = "reverse";
|
|
7652
7663
|
}
|
|
7653
|
-
},
|
|
7664
|
+
}, Yd = class {
|
|
7654
7665
|
constructor(e) {
|
|
7655
7666
|
this.name = e, this.filters = [];
|
|
7656
7667
|
}
|
|
@@ -7714,7 +7725,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7714
7725
|
}
|
|
7715
7726
|
}), this);
|
|
7716
7727
|
}
|
|
7717
|
-
},
|
|
7728
|
+
}, Xd = class {
|
|
7718
7729
|
constructor(e) {
|
|
7719
7730
|
this.selfOptions = e || {}, this.pipes = {};
|
|
7720
7731
|
}
|
|
@@ -7741,7 +7752,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7741
7752
|
for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
|
|
7742
7753
|
return n.hasResult ? n.result : void 0;
|
|
7743
7754
|
}
|
|
7744
|
-
},
|
|
7755
|
+
}, Zd = (e, t, n, r) => e[n] === t[r], Qd = (e, t, n, r) => {
|
|
7745
7756
|
var i, a, o;
|
|
7746
7757
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
7747
7758
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -7757,7 +7768,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7757
7768
|
for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
|
|
7758
7769
|
}
|
|
7759
7770
|
return d;
|
|
7760
|
-
},
|
|
7771
|
+
}, $d = (e, t, n, r) => {
|
|
7761
7772
|
let i = t.length, a = n.length, o = {
|
|
7762
7773
|
sequence: [],
|
|
7763
7774
|
indices1: [],
|
|
@@ -7779,11 +7790,11 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7779
7790
|
}
|
|
7780
7791
|
}
|
|
7781
7792
|
return o;
|
|
7782
|
-
},
|
|
7793
|
+
}, ef = { get: (e, t, n, r) => {
|
|
7783
7794
|
let i = r || {};
|
|
7784
|
-
return
|
|
7785
|
-
} },
|
|
7786
|
-
function
|
|
7795
|
+
return $d(Qd(e, t, n || Zd, i), e, t, i);
|
|
7796
|
+
} }, tf = 3;
|
|
7797
|
+
function nf(e, t, n, r) {
|
|
7787
7798
|
for (let i = 0; i < n; i++) {
|
|
7788
7799
|
let n = e[i];
|
|
7789
7800
|
for (let e = 0; e < r; e++) {
|
|
@@ -7793,7 +7804,7 @@ function ef(e, t, n, r) {
|
|
|
7793
7804
|
}
|
|
7794
7805
|
return !1;
|
|
7795
7806
|
}
|
|
7796
|
-
function
|
|
7807
|
+
function rf(e, t, n, r, i) {
|
|
7797
7808
|
let a = e[n], o = t[r];
|
|
7798
7809
|
if (a === o) return !0;
|
|
7799
7810
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -7806,15 +7817,15 @@ function tf(e, t, n, r, i) {
|
|
|
7806
7817
|
let l = i.hashCache2[r];
|
|
7807
7818
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
7808
7819
|
}
|
|
7809
|
-
var
|
|
7820
|
+
var af = function(e) {
|
|
7810
7821
|
var t, n, r, i, a;
|
|
7811
7822
|
if (!e.leftIsArray) return;
|
|
7812
7823
|
let o = {
|
|
7813
7824
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
7814
7825
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
7815
7826
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
7816
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
7817
|
-
for (; c + s < m && c + s < h &&
|
|
7827
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !nf(f, p, m, h)); s < m && s < h && rf(f, p, s, s, o);) l = s, g = new Kd(f[l], p[l]), e.push(g, l), s++;
|
|
7828
|
+
for (; c + s < m && c + s < h && rf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Kd(f[u], p[d]), e.push(g, d), c++;
|
|
7818
7829
|
let _;
|
|
7819
7830
|
if (s + c === m) {
|
|
7820
7831
|
if (m === h) {
|
|
@@ -7838,7 +7849,7 @@ var nf = function(e) {
|
|
|
7838
7849
|
return;
|
|
7839
7850
|
}
|
|
7840
7851
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
7841
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
7852
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = ef.get(v, y, rf, o), x = [];
|
|
7842
7853
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
7843
7854
|
let t = `_${l}`;
|
|
7844
7855
|
_[t] = [
|
|
@@ -7859,8 +7870,8 @@ var nf = function(e) {
|
|
|
7859
7870
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
7860
7871
|
u = x[n];
|
|
7861
7872
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
7862
|
-
if (u !== void 0 && r &&
|
|
7863
|
-
r.splice(1, 2, l,
|
|
7873
|
+
if (u !== void 0 && r && rf(v, y, u - s, l - s, o)) {
|
|
7874
|
+
r.splice(1, 2, l, tf), r.splice(1, 2, l, tf), C || (r[0] = ""), d = l, g = new Kd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
7864
7875
|
break;
|
|
7865
7876
|
}
|
|
7866
7877
|
}
|
|
@@ -7868,20 +7879,20 @@ var nf = function(e) {
|
|
|
7868
7879
|
} else {
|
|
7869
7880
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
7870
7881
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
7871
|
-
d = b.indices2[t] + s, g = new
|
|
7882
|
+
d = b.indices2[t] + s, g = new Kd(f[u], p[d]), e.push(g, d);
|
|
7872
7883
|
}
|
|
7873
7884
|
}
|
|
7874
7885
|
e.setResult(_).exit();
|
|
7875
7886
|
};
|
|
7876
|
-
|
|
7877
|
-
var
|
|
7887
|
+
af.filterName = "arrays";
|
|
7888
|
+
var of = {
|
|
7878
7889
|
numerically(e, t) {
|
|
7879
7890
|
return e - t;
|
|
7880
7891
|
},
|
|
7881
7892
|
numericallyBy(e) {
|
|
7882
7893
|
return (t, n) => t[e] - n[e];
|
|
7883
7894
|
}
|
|
7884
|
-
},
|
|
7895
|
+
}, sf = function(e) {
|
|
7885
7896
|
var t;
|
|
7886
7897
|
if (!e.nested) return;
|
|
7887
7898
|
let n = e.delta;
|
|
@@ -7889,7 +7900,7 @@ var rf = {
|
|
|
7889
7900
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
7890
7901
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
7891
7902
|
let e = r;
|
|
7892
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
7903
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === tf)) s.push(Number.parseInt(r.slice(1), 10));
|
|
7893
7904
|
else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
|
|
7894
7905
|
} else {
|
|
7895
7906
|
let e = r;
|
|
@@ -7901,15 +7912,15 @@ var rf = {
|
|
|
7901
7912
|
delta: a[e]
|
|
7902
7913
|
});
|
|
7903
7914
|
}
|
|
7904
|
-
for (s = s.sort(
|
|
7915
|
+
for (s = s.sort(of.numerically), r = s.length - 1; r >= 0; r--) {
|
|
7905
7916
|
if (i = s[r], i === void 0) continue;
|
|
7906
7917
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
7907
|
-
(e == null ? void 0 : e[2]) ===
|
|
7918
|
+
(e == null ? void 0 : e[2]) === tf && c.push({
|
|
7908
7919
|
index: e[1],
|
|
7909
7920
|
value: t
|
|
7910
7921
|
});
|
|
7911
7922
|
}
|
|
7912
|
-
c = c.sort(
|
|
7923
|
+
c = c.sort(of.numericallyBy("index"));
|
|
7913
7924
|
let u = c.length;
|
|
7914
7925
|
for (r = 0; r < u; r++) {
|
|
7915
7926
|
let e = c[r];
|
|
@@ -7919,7 +7930,7 @@ var rf = {
|
|
|
7919
7930
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
7920
7931
|
let t = l[r];
|
|
7921
7932
|
if (t === void 0) continue;
|
|
7922
|
-
let n = new
|
|
7933
|
+
let n = new qd(o[t.index], t.delta);
|
|
7923
7934
|
e.push(n, t.index);
|
|
7924
7935
|
}
|
|
7925
7936
|
if (!e.children) {
|
|
@@ -7928,8 +7939,8 @@ var rf = {
|
|
|
7928
7939
|
}
|
|
7929
7940
|
e.exit();
|
|
7930
7941
|
};
|
|
7931
|
-
|
|
7932
|
-
var
|
|
7942
|
+
sf.filterName = "arrays";
|
|
7943
|
+
var cf = function(e) {
|
|
7933
7944
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
7934
7945
|
let t = e.left, n = e.children.length;
|
|
7935
7946
|
for (let r = 0; r < n; r++) {
|
|
@@ -7940,16 +7951,16 @@ var of = function(e) {
|
|
|
7940
7951
|
}
|
|
7941
7952
|
e.setResult(t).exit();
|
|
7942
7953
|
};
|
|
7943
|
-
|
|
7944
|
-
var
|
|
7954
|
+
cf.filterName = "arraysCollectChildren";
|
|
7955
|
+
var lf = function(e) {
|
|
7945
7956
|
if (!e.nested) {
|
|
7946
7957
|
let t = e.delta;
|
|
7947
|
-
if (t[2] ===
|
|
7958
|
+
if (t[2] === tf) {
|
|
7948
7959
|
let n = t;
|
|
7949
7960
|
e.newName = `_${n[1]}`, e.setResult([
|
|
7950
7961
|
n[0],
|
|
7951
7962
|
Number.parseInt(e.childName.substring(1), 10),
|
|
7952
|
-
|
|
7963
|
+
tf
|
|
7953
7964
|
]).exit();
|
|
7954
7965
|
}
|
|
7955
7966
|
return;
|
|
@@ -7959,26 +7970,26 @@ var sf = function(e) {
|
|
|
7959
7970
|
let n = t;
|
|
7960
7971
|
for (let t in n) {
|
|
7961
7972
|
if (t === "_t") continue;
|
|
7962
|
-
let r = new
|
|
7973
|
+
let r = new Jd(n[t]);
|
|
7963
7974
|
e.push(r, t);
|
|
7964
7975
|
}
|
|
7965
7976
|
e.exit();
|
|
7966
7977
|
};
|
|
7967
|
-
|
|
7968
|
-
var
|
|
7978
|
+
lf.filterName = "arrays";
|
|
7979
|
+
var uf = (e, t, n) => {
|
|
7969
7980
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
7970
7981
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
7971
7982
|
let r = +t;
|
|
7972
7983
|
for (let n in e) {
|
|
7973
7984
|
let i = e[n];
|
|
7974
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
7985
|
+
if (Array.isArray(i)) if (i[2] === tf) {
|
|
7975
7986
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
7976
7987
|
if (a === +t) return e;
|
|
7977
7988
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
7978
7989
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
7979
7990
|
}
|
|
7980
7991
|
return r;
|
|
7981
|
-
},
|
|
7992
|
+
}, df = (e) => {
|
|
7982
7993
|
if (!e || !e.children) return;
|
|
7983
7994
|
let t = e.delta;
|
|
7984
7995
|
if (t._t !== "a") return;
|
|
@@ -7989,22 +8000,22 @@ var cf = (e, t, n) => {
|
|
|
7989
8000
|
let a = r.newName;
|
|
7990
8001
|
if (a === void 0) {
|
|
7991
8002
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
7992
|
-
a =
|
|
8003
|
+
a = uf(n, r.childName, r.result);
|
|
7993
8004
|
}
|
|
7994
8005
|
i[a] !== r.result && (i[a] = r.result);
|
|
7995
8006
|
}
|
|
7996
8007
|
e.setResult(i).exit();
|
|
7997
8008
|
};
|
|
7998
|
-
|
|
8009
|
+
df.filterName = "arraysCollectChildren";
|
|
7999
8010
|
//#endregion
|
|
8000
8011
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8001
|
-
var
|
|
8012
|
+
var ff = function(e) {
|
|
8002
8013
|
e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
|
|
8003
8014
|
};
|
|
8004
|
-
|
|
8015
|
+
ff.filterName = "dates";
|
|
8005
8016
|
//#endregion
|
|
8006
8017
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8007
|
-
var
|
|
8018
|
+
var pf = new Set(["__proto__"]), mf = (e) => {
|
|
8008
8019
|
if (!e || !e.children) return;
|
|
8009
8020
|
let t = e.children.length, n = e.result;
|
|
8010
8021
|
for (let r = 0; r < t; r++) {
|
|
@@ -8016,18 +8027,18 @@ var df = new Set(["__proto__"]), ff = (e) => {
|
|
|
8016
8027
|
}
|
|
8017
8028
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8018
8029
|
};
|
|
8019
|
-
|
|
8020
|
-
var
|
|
8030
|
+
mf.filterName = "collectChildren";
|
|
8031
|
+
var hf = (e) => {
|
|
8021
8032
|
var t;
|
|
8022
8033
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8023
8034
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8024
8035
|
for (let t in n) {
|
|
8025
8036
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8026
|
-
let a = new
|
|
8037
|
+
let a = new Kd(n[t], r[t]);
|
|
8027
8038
|
e.push(a, t);
|
|
8028
8039
|
}
|
|
8029
8040
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8030
|
-
let n = new
|
|
8041
|
+
let n = new Kd(void 0, r[t]);
|
|
8031
8042
|
e.push(n, t);
|
|
8032
8043
|
}
|
|
8033
8044
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8036,15 +8047,15 @@ var pf = (e) => {
|
|
|
8036
8047
|
}
|
|
8037
8048
|
e.exit();
|
|
8038
8049
|
};
|
|
8039
|
-
|
|
8040
|
-
var
|
|
8050
|
+
hf.filterName = "objects";
|
|
8051
|
+
var gf = function(e) {
|
|
8041
8052
|
if (!e.nested) return;
|
|
8042
8053
|
let t = e.delta;
|
|
8043
8054
|
if (t._t) return;
|
|
8044
8055
|
let n = t, r = !1;
|
|
8045
8056
|
for (let t in n) {
|
|
8046
|
-
if (
|
|
8047
|
-
let i = e.left, a = new
|
|
8057
|
+
if (pf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8058
|
+
let i = e.left, a = new qd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8048
8059
|
e.push(a, t), r = !0;
|
|
8049
8060
|
}
|
|
8050
8061
|
if (!r) {
|
|
@@ -8053,8 +8064,8 @@ var mf = function(e) {
|
|
|
8053
8064
|
}
|
|
8054
8065
|
e.exit();
|
|
8055
8066
|
};
|
|
8056
|
-
|
|
8057
|
-
var
|
|
8067
|
+
gf.filterName = "objects";
|
|
8068
|
+
var _f = function(e) {
|
|
8058
8069
|
if (!e || !e.children || e.delta._t) return;
|
|
8059
8070
|
if (e.left === null || typeof e.left != "object") {
|
|
8060
8071
|
e.setResult(e.left).exit();
|
|
@@ -8065,17 +8076,17 @@ var hf = function(e) {
|
|
|
8065
8076
|
let n = e.children[r];
|
|
8066
8077
|
if (n === void 0) continue;
|
|
8067
8078
|
let i = n.childName;
|
|
8068
|
-
|
|
8079
|
+
pf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8069
8080
|
}
|
|
8070
8081
|
e.setResult(t).exit();
|
|
8071
8082
|
};
|
|
8072
|
-
|
|
8073
|
-
var
|
|
8083
|
+
_f.filterName = "collectChildren";
|
|
8084
|
+
var vf = function(e) {
|
|
8074
8085
|
if (!e.nested || e.delta._t) return;
|
|
8075
8086
|
let t = e.delta, n = !1;
|
|
8076
8087
|
for (let r in t) {
|
|
8077
|
-
if (
|
|
8078
|
-
let i = new
|
|
8088
|
+
if (pf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8089
|
+
let i = new Jd(t[r]);
|
|
8079
8090
|
e.push(i, r), n = !0;
|
|
8080
8091
|
}
|
|
8081
8092
|
if (!n) {
|
|
@@ -8084,25 +8095,25 @@ var gf = function(e) {
|
|
|
8084
8095
|
}
|
|
8085
8096
|
e.exit();
|
|
8086
8097
|
};
|
|
8087
|
-
|
|
8088
|
-
var
|
|
8098
|
+
vf.filterName = "objects";
|
|
8099
|
+
var yf = (e) => {
|
|
8089
8100
|
if (!e || !e.children || e.delta._t) return;
|
|
8090
8101
|
let t = e.children.length, n = {};
|
|
8091
8102
|
for (let r = 0; r < t; r++) {
|
|
8092
8103
|
let t = e.children[r];
|
|
8093
8104
|
if (t === void 0) continue;
|
|
8094
8105
|
let i = t.childName;
|
|
8095
|
-
|
|
8106
|
+
pf.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8096
8107
|
}
|
|
8097
8108
|
e.setResult(n).exit();
|
|
8098
8109
|
};
|
|
8099
|
-
|
|
8110
|
+
yf.filterName = "collectChildren";
|
|
8100
8111
|
//#endregion
|
|
8101
8112
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8102
|
-
var
|
|
8103
|
-
function
|
|
8113
|
+
var bf = 2, xf = 60, Sf = null;
|
|
8114
|
+
function Cf(e, t) {
|
|
8104
8115
|
var n;
|
|
8105
|
-
if (!
|
|
8116
|
+
if (!Sf) {
|
|
8106
8117
|
let r;
|
|
8107
8118
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8108
8119
|
else {
|
|
@@ -8110,7 +8121,7 @@ function xf(e, t) {
|
|
|
8110
8121
|
let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
|
|
8111
8122
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8112
8123
|
}
|
|
8113
|
-
|
|
8124
|
+
Sf = {
|
|
8114
8125
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8115
8126
|
patch: (e, t) => {
|
|
8116
8127
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8122,17 +8133,17 @@ function xf(e, t) {
|
|
|
8122
8133
|
}
|
|
8123
8134
|
};
|
|
8124
8135
|
}
|
|
8125
|
-
return
|
|
8136
|
+
return Sf;
|
|
8126
8137
|
}
|
|
8127
|
-
var
|
|
8138
|
+
var wf = function(e) {
|
|
8128
8139
|
var t, n;
|
|
8129
8140
|
if (e.leftType !== "string") return;
|
|
8130
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8141
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || xf;
|
|
8131
8142
|
if (r.length < a || i.length < a) {
|
|
8132
8143
|
e.setResult([r, i]).exit();
|
|
8133
8144
|
return;
|
|
8134
8145
|
}
|
|
8135
|
-
let o =
|
|
8146
|
+
let o = Cf(e.options);
|
|
8136
8147
|
if (!o) {
|
|
8137
8148
|
e.setResult([r, i]).exit();
|
|
8138
8149
|
return;
|
|
@@ -8141,19 +8152,19 @@ var Sf = function(e) {
|
|
|
8141
8152
|
e.setResult([
|
|
8142
8153
|
s(r, i),
|
|
8143
8154
|
0,
|
|
8144
|
-
|
|
8155
|
+
bf
|
|
8145
8156
|
]).exit();
|
|
8146
8157
|
};
|
|
8147
|
-
|
|
8148
|
-
var
|
|
8158
|
+
wf.filterName = "texts";
|
|
8159
|
+
var Tf = function(e) {
|
|
8149
8160
|
if (e.nested) return;
|
|
8150
8161
|
let t = e.delta;
|
|
8151
|
-
if (t[2] !==
|
|
8152
|
-
let n = t, r =
|
|
8162
|
+
if (t[2] !== bf) return;
|
|
8163
|
+
let n = t, r = Cf(e.options, !0).patch;
|
|
8153
8164
|
e.setResult(r(e.left, n[0])).exit();
|
|
8154
8165
|
};
|
|
8155
|
-
|
|
8156
|
-
var
|
|
8166
|
+
Tf.filterName = "texts";
|
|
8167
|
+
var Ef = (e) => {
|
|
8157
8168
|
var t, n, r;
|
|
8158
8169
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8159
8170
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8174,21 +8185,21 @@ var wf = (e) => {
|
|
|
8174
8185
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8175
8186
|
}
|
|
8176
8187
|
return a.join("\n");
|
|
8177
|
-
},
|
|
8188
|
+
}, Df = function(e) {
|
|
8178
8189
|
if (e.nested) return;
|
|
8179
8190
|
let t = e.delta;
|
|
8180
|
-
if (t[2] !==
|
|
8191
|
+
if (t[2] !== bf) return;
|
|
8181
8192
|
let n = t;
|
|
8182
8193
|
e.setResult([
|
|
8183
|
-
|
|
8194
|
+
Ef(n[0]),
|
|
8184
8195
|
0,
|
|
8185
|
-
|
|
8196
|
+
bf
|
|
8186
8197
|
]).exit();
|
|
8187
8198
|
};
|
|
8188
|
-
|
|
8199
|
+
Df.filterName = "texts";
|
|
8189
8200
|
//#endregion
|
|
8190
8201
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8191
|
-
var
|
|
8202
|
+
var Of = function(e) {
|
|
8192
8203
|
if (e.left === e.right) {
|
|
8193
8204
|
e.setResult(void 0).exit();
|
|
8194
8205
|
return;
|
|
@@ -8221,8 +8232,8 @@ var Ef = function(e) {
|
|
|
8221
8232
|
}
|
|
8222
8233
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8223
8234
|
};
|
|
8224
|
-
|
|
8225
|
-
var
|
|
8235
|
+
Of.filterName = "trivial";
|
|
8236
|
+
var kf = function(e) {
|
|
8226
8237
|
if (e.delta === void 0) {
|
|
8227
8238
|
e.setResult(e.left).exit();
|
|
8228
8239
|
return;
|
|
@@ -8246,8 +8257,8 @@ var Df = function(e) {
|
|
|
8246
8257
|
}
|
|
8247
8258
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8248
8259
|
};
|
|
8249
|
-
|
|
8250
|
-
var
|
|
8260
|
+
kf.filterName = "trivial";
|
|
8261
|
+
var Af = function(e) {
|
|
8251
8262
|
if (e.delta === void 0) {
|
|
8252
8263
|
e.setResult(e.delta).exit();
|
|
8253
8264
|
return;
|
|
@@ -8268,36 +8279,36 @@ var Of = function(e) {
|
|
|
8268
8279
|
}
|
|
8269
8280
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8270
8281
|
};
|
|
8271
|
-
|
|
8282
|
+
Af.filterName = "trivial";
|
|
8272
8283
|
//#endregion
|
|
8273
8284
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8274
|
-
var
|
|
8285
|
+
var jf = class {
|
|
8275
8286
|
constructor(e) {
|
|
8276
|
-
this.processor = new
|
|
8287
|
+
this.processor = new Xd(e), this.processor.pipe(new Yd("diff").append(mf, Of, ff, wf, hf, af).shouldHaveResult()), this.processor.pipe(new Yd("patch").append(_f, cf, kf, Tf, gf, sf).shouldHaveResult()), this.processor.pipe(new Yd("reverse").append(yf, df, Af, Df, vf, lf).shouldHaveResult());
|
|
8277
8288
|
}
|
|
8278
8289
|
options(e) {
|
|
8279
8290
|
return this.processor.options(e);
|
|
8280
8291
|
}
|
|
8281
8292
|
diff(e, t) {
|
|
8282
|
-
return this.processor.process(new
|
|
8293
|
+
return this.processor.process(new Kd(e, t));
|
|
8283
8294
|
}
|
|
8284
8295
|
patch(e, t) {
|
|
8285
|
-
return this.processor.process(new
|
|
8296
|
+
return this.processor.process(new qd(e, t));
|
|
8286
8297
|
}
|
|
8287
8298
|
reverse(e) {
|
|
8288
|
-
return this.processor.process(new
|
|
8299
|
+
return this.processor.process(new Jd(e));
|
|
8289
8300
|
}
|
|
8290
8301
|
unpatch(e, t) {
|
|
8291
8302
|
return this.patch(e, this.reverse(t));
|
|
8292
8303
|
}
|
|
8293
8304
|
clone(e) {
|
|
8294
|
-
return
|
|
8305
|
+
return Hd(e);
|
|
8295
8306
|
}
|
|
8296
8307
|
};
|
|
8297
8308
|
//#endregion
|
|
8298
8309
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8299
|
-
function
|
|
8300
|
-
return new
|
|
8310
|
+
function Mf(e) {
|
|
8311
|
+
return new jf(e);
|
|
8301
8312
|
}
|
|
8302
8313
|
//#endregion
|
|
8303
8314
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -8870,46 +8881,46 @@ $.Diff = function(e, t) {
|
|
|
8870
8881
|
};
|
|
8871
8882
|
//#endregion
|
|
8872
8883
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
8873
|
-
var
|
|
8884
|
+
var Nf = (e = {}) => Mf({
|
|
8874
8885
|
...e,
|
|
8875
8886
|
textDiff: {
|
|
8876
8887
|
diffMatchPatch: $,
|
|
8877
8888
|
minLength: 120
|
|
8878
8889
|
},
|
|
8879
8890
|
cloneDiffValues: !0
|
|
8880
|
-
}),
|
|
8891
|
+
}), Pf = ["user", "unittemplate"], Ff = Nf(), If = (e, t, n) => {
|
|
8881
8892
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
8882
8893
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8883
8894
|
let n = r[t[e]];
|
|
8884
8895
|
if (n) return n;
|
|
8885
8896
|
}
|
|
8886
8897
|
return n || "";
|
|
8887
|
-
},
|
|
8898
|
+
}, Lf = (e) => {
|
|
8888
8899
|
let t = (e) => Nn(e) ? Gn(e) : String(e);
|
|
8889
8900
|
return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
|
|
8890
|
-
},
|
|
8901
|
+
}, Rf = (e) => {
|
|
8891
8902
|
switch (e.length) {
|
|
8892
8903
|
case 1: {
|
|
8893
8904
|
let [t] = e;
|
|
8894
8905
|
return {
|
|
8895
8906
|
type: "created",
|
|
8896
8907
|
before: "",
|
|
8897
|
-
after:
|
|
8908
|
+
after: Lf(t)
|
|
8898
8909
|
};
|
|
8899
8910
|
}
|
|
8900
8911
|
case 2: {
|
|
8901
8912
|
let [t, n] = e;
|
|
8902
8913
|
return {
|
|
8903
8914
|
type: "modified",
|
|
8904
|
-
before:
|
|
8905
|
-
after:
|
|
8915
|
+
before: Lf(t),
|
|
8916
|
+
after: Lf(n)
|
|
8906
8917
|
};
|
|
8907
8918
|
}
|
|
8908
8919
|
case 3: {
|
|
8909
8920
|
let [t] = e;
|
|
8910
8921
|
return {
|
|
8911
8922
|
type: "deleted",
|
|
8912
|
-
before:
|
|
8923
|
+
before: Lf(t),
|
|
8913
8924
|
after: ""
|
|
8914
8925
|
};
|
|
8915
8926
|
}
|
|
@@ -8919,15 +8930,15 @@ var jf = (e = {}) => Af({
|
|
|
8919
8930
|
after: ""
|
|
8920
8931
|
};
|
|
8921
8932
|
}
|
|
8922
|
-
},
|
|
8923
|
-
let r =
|
|
8933
|
+
}, zf = (e) => Array.isArray(e), Bf = (e, t) => t ? zf(t) ? t.length === 0 ? e : t.reduce((e, t) => Ff.unpatch(Xt(e), Xt(t)), Xt(e)) : Ff.unpatch(Xt(e), Xt(t)) : e, Vf = (e) => e.createdAt || e.date, Hf = (e, t, n) => {
|
|
8934
|
+
let r = Vf(e);
|
|
8924
8935
|
if (!r) return {
|
|
8925
8936
|
oldJson: "",
|
|
8926
8937
|
newJson: "",
|
|
8927
8938
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
8928
8939
|
};
|
|
8929
8940
|
let i = t.filter((e) => {
|
|
8930
|
-
let t =
|
|
8941
|
+
let t = Vf(e);
|
|
8931
8942
|
return !!(e.diffs && t && t >= r);
|
|
8932
8943
|
}), a = Array.from({ length: i.length + 1 });
|
|
8933
8944
|
a[0] = Xt(n);
|
|
@@ -8940,7 +8951,7 @@ var jf = (e = {}) => Af({
|
|
|
8940
8951
|
a[e + 1] = a[e];
|
|
8941
8952
|
continue;
|
|
8942
8953
|
}
|
|
8943
|
-
a[e + 1] =
|
|
8954
|
+
a[e + 1] = Bf(a[e], t);
|
|
8944
8955
|
}
|
|
8945
8956
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
8946
8957
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -8955,10 +8966,10 @@ var jf = (e = {}) => Af({
|
|
|
8955
8966
|
oldJson: o,
|
|
8956
8967
|
newJson: s
|
|
8957
8968
|
};
|
|
8958
|
-
},
|
|
8969
|
+
}, Uf = (e, t, n = {}, r = []) => {
|
|
8959
8970
|
var i;
|
|
8960
8971
|
if (!e) return;
|
|
8961
|
-
let a = [...
|
|
8972
|
+
let a = [...Pf, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
8962
8973
|
Object.keys(e).forEach((i) => {
|
|
8963
8974
|
var o;
|
|
8964
8975
|
let s = e[i];
|
|
@@ -8971,12 +8982,12 @@ var jf = (e = {}) => Af({
|
|
|
8971
8982
|
tn(s) ? t.push({
|
|
8972
8983
|
deltaFormat: [...s],
|
|
8973
8984
|
path: c
|
|
8974
|
-
}) : ln(s) &&
|
|
8985
|
+
}) : ln(s) && Uf(s, t, n, c);
|
|
8975
8986
|
});
|
|
8976
|
-
},
|
|
8987
|
+
}, Wf = (e, t = {}) => {
|
|
8977
8988
|
let n = [];
|
|
8978
|
-
return e ? (
|
|
8979
|
-
},
|
|
8989
|
+
return e ? (Uf(e, n, t), n) : [];
|
|
8990
|
+
}, Gf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Kf = (e) => {
|
|
8980
8991
|
if (e == null || e === "") return "empty";
|
|
8981
8992
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
8982
8993
|
if (typeof e == "string") return e;
|
|
@@ -8987,32 +8998,32 @@ var jf = (e = {}) => Af({
|
|
|
8987
8998
|
} catch {
|
|
8988
8999
|
return String(e);
|
|
8989
9000
|
}
|
|
8990
|
-
},
|
|
9001
|
+
}, qf = (e, t = e.length - 1) => {
|
|
8991
9002
|
if (t >= e.length) return "Value";
|
|
8992
9003
|
let n = e[t];
|
|
8993
|
-
return !n || An(n) ?
|
|
8994
|
-
},
|
|
8995
|
-
let o =
|
|
9004
|
+
return !n || An(n) ? qf(e, t - 1) : Gf(n);
|
|
9005
|
+
}, Jf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9006
|
+
let o = Kf(r), s = Kf(i), c = a ? ` in ${a}` : "";
|
|
8996
9007
|
switch (t) {
|
|
8997
9008
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
8998
9009
|
case "created": return `${e} created ${s}${c}.`;
|
|
8999
9010
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9000
9011
|
default: return `${e} changed ${n}${c}.`;
|
|
9001
9012
|
}
|
|
9002
|
-
},
|
|
9013
|
+
}, Yf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(yc, { table: {
|
|
9003
9014
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9004
9015
|
rows: n.map((n) => {
|
|
9005
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9006
|
-
return { cells: [{ value:
|
|
9016
|
+
let { deltaFormat: i, path: a } = n, o = If(e, a, r), { type: s, before: c, after: l } = Rf(i);
|
|
9017
|
+
return { cells: [{ value: Jf({
|
|
9007
9018
|
userName: t,
|
|
9008
9019
|
type: s,
|
|
9009
|
-
property:
|
|
9020
|
+
property: qf(a),
|
|
9010
9021
|
before: c,
|
|
9011
9022
|
after: l,
|
|
9012
9023
|
sectionName: o
|
|
9013
9024
|
}) }] };
|
|
9014
9025
|
})
|
|
9015
|
-
} }),
|
|
9026
|
+
} }), Xf = Object.freeze({
|
|
9016
9027
|
summary: {
|
|
9017
9028
|
label: "Summary",
|
|
9018
9029
|
value: "summary"
|
|
@@ -9021,13 +9032,13 @@ var jf = (e = {}) => Af({
|
|
|
9021
9032
|
label: "Compare",
|
|
9022
9033
|
value: "compare"
|
|
9023
9034
|
}
|
|
9024
|
-
}),
|
|
9025
|
-
let c = [
|
|
9035
|
+
}), Zf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9036
|
+
let c = [Xf.summary, Xf.compare].map(({ label: e, value: t }) => ({
|
|
9026
9037
|
label: e,
|
|
9027
9038
|
value: t
|
|
9028
9039
|
})), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
|
|
9029
9040
|
if (!d) return null;
|
|
9030
|
-
let { oldJson: f, newJson: p, error: h } =
|
|
9041
|
+
let { oldJson: f, newJson: p, error: h } = Hf(e, t, n);
|
|
9031
9042
|
return /* @__PURE__ */ v(Ka, {
|
|
9032
9043
|
visible: r,
|
|
9033
9044
|
centered: !0,
|
|
@@ -9039,15 +9050,15 @@ var jf = (e = {}) => Af({
|
|
|
9039
9050
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9040
9051
|
options: c,
|
|
9041
9052
|
value: l
|
|
9042
|
-
}), l.value === "summary" ? /* @__PURE__ */ v(
|
|
9053
|
+
}), l.value === "summary" ? /* @__PURE__ */ v(Yf, {
|
|
9043
9054
|
userName: e.userName,
|
|
9044
9055
|
sectionNames: a,
|
|
9045
|
-
diffs:
|
|
9056
|
+
diffs: Wf(d, i),
|
|
9046
9057
|
defaultSectionName: o
|
|
9047
9058
|
}) : h ? /* @__PURE__ */ v("div", {
|
|
9048
9059
|
style: { padding: 16 },
|
|
9049
9060
|
children: h
|
|
9050
|
-
}) : /* @__PURE__ */ v(
|
|
9061
|
+
}) : /* @__PURE__ */ v(zd, {
|
|
9051
9062
|
oldJson: f,
|
|
9052
9063
|
newJson: p
|
|
9053
9064
|
})] }),
|
|
@@ -9060,7 +9071,7 @@ var jf = (e = {}) => Af({
|
|
|
9060
9071
|
height: "90vh"
|
|
9061
9072
|
} })
|
|
9062
9073
|
});
|
|
9063
|
-
},
|
|
9074
|
+
}, Qf = [
|
|
9064
9075
|
{
|
|
9065
9076
|
label: "10 / page",
|
|
9066
9077
|
value: 10
|
|
@@ -9073,8 +9084,8 @@ var jf = (e = {}) => Af({
|
|
|
9073
9084
|
label: "50 / page",
|
|
9074
9085
|
value: 50
|
|
9075
9086
|
}
|
|
9076
|
-
],
|
|
9077
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9087
|
+
], $f = (e, t = {}) => {
|
|
9088
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Wf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9078
9089
|
if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
|
|
9079
9090
|
switch (a) {
|
|
9080
9091
|
case "Created": return `Created by ${r}`;
|
|
@@ -9084,7 +9095,7 @@ var jf = (e = {}) => Af({
|
|
|
9084
9095
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9085
9096
|
default: return `Change by ${r}`;
|
|
9086
9097
|
}
|
|
9087
|
-
},
|
|
9098
|
+
}, ep = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: h, isLogDisabled: g }) => {
|
|
9088
9099
|
let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
|
|
9089
9100
|
if (e.snapshot) {
|
|
9090
9101
|
f == null || f(e.snapshot, e);
|
|
@@ -9103,7 +9114,7 @@ var jf = (e = {}) => Af({
|
|
|
9103
9114
|
return {
|
|
9104
9115
|
cells: [
|
|
9105
9116
|
{
|
|
9106
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9117
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : $f(e, l),
|
|
9107
9118
|
type: "Link",
|
|
9108
9119
|
disabled: n,
|
|
9109
9120
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9122,8 +9133,8 @@ var jf = (e = {}) => Af({
|
|
|
9122
9133
|
type: "Static"
|
|
9123
9134
|
},
|
|
9124
9135
|
{
|
|
9125
|
-
value:
|
|
9126
|
-
date:
|
|
9136
|
+
value: Bd({
|
|
9137
|
+
date: Vf(e),
|
|
9127
9138
|
showTime: !0
|
|
9128
9139
|
}),
|
|
9129
9140
|
type: "Static"
|
|
@@ -9166,14 +9177,14 @@ var jf = (e = {}) => Af({
|
|
|
9166
9177
|
onChange: (e) => {
|
|
9167
9178
|
u(Number(e.target.value));
|
|
9168
9179
|
},
|
|
9169
|
-
options:
|
|
9180
|
+
options: Qf,
|
|
9170
9181
|
value: a
|
|
9171
9182
|
},
|
|
9172
9183
|
onSelectPage: (e) => d(e),
|
|
9173
9184
|
small: !0
|
|
9174
9185
|
} }
|
|
9175
9186
|
} })
|
|
9176
|
-
}), b && S && S.diffs && /* @__PURE__ */ v(
|
|
9187
|
+
}), b && S && S.diffs && /* @__PURE__ */ v(Zf, {
|
|
9177
9188
|
sectionNames: o,
|
|
9178
9189
|
isOpen: b,
|
|
9179
9190
|
onClose: () => x(!1),
|
|
@@ -9183,7 +9194,7 @@ var jf = (e = {}) => Af({
|
|
|
9183
9194
|
data: t,
|
|
9184
9195
|
transformDiffsConfig: l
|
|
9185
9196
|
})] });
|
|
9186
|
-
},
|
|
9197
|
+
}, tp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9187
9198
|
let i = window.location.href, a = p(i);
|
|
9188
9199
|
return c(() => {
|
|
9189
9200
|
a.current = i;
|
|
@@ -9206,10 +9217,10 @@ var jf = (e = {}) => Af({
|
|
|
9206
9217
|
});
|
|
9207
9218
|
};
|
|
9208
9219
|
}, [e, t]), null;
|
|
9209
|
-
},
|
|
9210
|
-
|
|
9211
|
-
e ===
|
|
9220
|
+
}, np = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, rp = (e) => {
|
|
9221
|
+
kd(wd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9222
|
+
e === wd.Translations ? kd(e, Ed(t)) : kd(e, np(t) ? t : { ...t });
|
|
9212
9223
|
});
|
|
9213
9224
|
};
|
|
9214
9225
|
//#endregion
|
|
9215
|
-
export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align,
|
|
9226
|
+
export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, ep as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Er as ButtonPosition, hi as ButtonType, na as Card, ci as CheckBox, Vr as Chevron, Wr as Collapse, wr as Color, sa as ColorInput, fa as Column, Sa as Dialog, zd as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, Iu as ElementType, Ac as Empty, Ml as Field, Ol as FileButton, za as FileInput, Nl as Flex, Fl as FormRow, zl as Grid, B as GroupOrder, ya as Heading, si as HelpIcon, U as Icon, V as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, kr as InputType, Al as Label, Ql as List, Vl as ListHeading, ql as ListSubheading, eu as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, ou as OptionDropdown, cu as Page, As as Pagination, Hu as PopConfirm, aa as Popover, Ha as Portal, uu as PrintHeader, Ya as ProgressBar, du as RadioButton, gu as RichTextInput, vu as Row, Cs as Select, Fd as SettingField, Cu as SideBar, Tu as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, yc as Table, Dl as TableImportExport, ku as Tabs, ha as Text, Mu as TextArea, Au as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, dl as Toggle, W as Tooltip, zu as TopBar, Ku as Tree, id as TreeTable, Cr as TriggerType, Cd as UnitInput, Nd as UnitTable, tp as UsageTracker, cl as dismissToast, bd as initializeContext, rp as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|