@oliasoft-open-source/react-ui-library 5.23.0-beta-20 → 5.23.0-beta-22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/audit-log.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,GAAG,WAAW,CAAC;AAE5E,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,GAAG,EAAE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;IAChE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,GAAG,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,OAAO,CAAC;CAChD;AAuCD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiJ7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAA+B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAG/E,OAAO,EAAkB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,SAAS;;;;;;;;;EASpB,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,uBA8BnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,+DAOjC;IACD,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,mDAwDA,CAAC"}
1
+ {"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAA+B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAG/E,OAAO,EAAkB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,SAAS;;;;;;;;;EASpB,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,uBA8BnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,+DAOjC;IACD,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,mDA0DA,CAAC"}
@@ -21,9 +21,11 @@ export declare const getSectionName: (sectionNames: ISectionName[], sectionPath:
21
21
  export declare const toText: (v: any) => string;
22
22
  export declare const defaultMessage: (deltaFormat: any[]) => DefaultMessage;
23
23
  export type JsonDelta = any;
24
+ export declare const getAuditLogDate: (log: AuditLogItem) => string | undefined;
24
25
  export declare const createDiffJson: (auditLog: AuditLogItem, auditLogs: AuditLogItem[], data: any) => {
25
26
  oldJson: string;
26
27
  newJson: string;
28
+ error?: string;
27
29
  };
28
30
  export {};
29
31
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC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,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GACzB,cAAc,YAAY,EAAE,EAC5B,aAAa,MAAM,EAAE,KACpB,MAUF,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,GAAG,GAAG,WAuB5B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,aAAa,GAAG,EAAE,KAAG,cAqBnD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC;AAoB5B,eAAO,MAAM,eAAe,GAAI,KAAK,YAAY,uBAA8B,CAAC;AAEhF,eAAO,MAAM,cAAc,GACzB,UAAU,YAAY,EACtB,WAAW,YAAY,EAAE,EACzB,MAAM,GAAG,KACR;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAsDpD,CAAC"}
package/dist/index.js CHANGED
@@ -8753,30 +8753,43 @@ var Zd = ((e = {}) => Xd({
8753
8753
  after: ""
8754
8754
  };
8755
8755
  }
8756
- }, af = (e) => Array.isArray(e), of = (e, t) => t ? af(t) ? t.length === 0 ? e : t.reduce((e, t) => Zd.unpatch(zt(e), zt(t)), zt(e)) : Zd.unpatch(zt(e), zt(t)) : e, sf = (e, t, n) => {
8757
- let r = t.filter((t) => !!t.diffs && (t.createdAt || t.date) >= (e.createdAt || e.date)), i = Array(r.length + 1);
8758
- i[0] = zt(n);
8759
- let a = "", o = "";
8756
+ }, af = (e) => Array.isArray(e), of = (e, t) => t ? af(t) ? t.length === 0 ? e : t.reduce((e, t) => Zd.unpatch(zt(e), zt(t)), zt(e)) : Zd.unpatch(zt(e), zt(t)) : e, sf = (e) => e.createdAt || e.date, cf = (e, t, n) => {
8757
+ let r = sf(e);
8758
+ if (!r) return {
8759
+ oldJson: "",
8760
+ newJson: "",
8761
+ error: `Cannot create comparison view: missing date for audit log ${e.id}`
8762
+ };
8763
+ let i = t.filter((e) => {
8764
+ let t = sf(e);
8765
+ return !!(e.diffs && t && t >= r);
8766
+ }), a = Array(i.length + 1);
8767
+ a[0] = zt(n);
8768
+ let o = "", s = "";
8760
8769
  try {
8761
- for (let e = 0; e < r.length; e++) {
8762
- var s, c;
8763
- let t = (s = (c = r[e]) == null ? void 0 : c.diffs) == null ? null : s;
8770
+ for (let e = 0; e < i.length; e++) {
8771
+ var c, l;
8772
+ let t = (c = (l = i[e]) == null ? void 0 : l.diffs) == null ? null : c;
8764
8773
  if (!t) {
8765
- i[e + 1] = i[e];
8774
+ a[e + 1] = a[e];
8766
8775
  continue;
8767
8776
  }
8768
- i[e + 1] = of(i[e], t);
8777
+ a[e + 1] = of(a[e], t);
8769
8778
  }
8770
- let e = r.length > 0 ? i[r.length - 1] : n, t = r.length > 0 ? i[r.length] : n;
8771
- a = JSON.stringify(t == null ? "" : t, null, 2), o = JSON.stringify(e == null ? "" : e, null, 2);
8779
+ let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
8780
+ o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
8772
8781
  } catch (e) {
8773
- console.error("err", e);
8782
+ return console.error("err", e), {
8783
+ oldJson: "",
8784
+ newJson: "",
8785
+ error: "Cannot create comparison view for this audit log."
8786
+ };
8774
8787
  }
8775
8788
  return {
8776
- oldJson: a,
8777
- newJson: o
8789
+ oldJson: o,
8790
+ newJson: s
8778
8791
  };
8779
- }, cf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), lf = (e) => {
8792
+ }, lf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), uf = (e) => {
8780
8793
  if (e == null || e === "") return "empty";
8781
8794
  if (typeof e == "boolean") return e ? "true" : "false";
8782
8795
  if (typeof e == "string") return e;
@@ -8787,32 +8800,32 @@ var Zd = ((e = {}) => Xd({
8787
8800
  } catch {
8788
8801
  return String(e);
8789
8802
  }
8790
- }, uf = (e, t = e.length - 1) => {
8803
+ }, df = (e, t = e.length - 1) => {
8791
8804
  if (t >= e.length) return "Value";
8792
8805
  let n = e[t];
8793
- return !n || xn(n) ? uf(e, t - 1) : cf(n);
8794
- }, df = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
8795
- let o = lf(r), s = lf(i), c = a ? ` in ${a}` : "";
8806
+ return !n || xn(n) ? df(e, t - 1) : lf(n);
8807
+ }, ff = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
8808
+ let o = uf(r), s = uf(i), c = a ? ` in ${a}` : "";
8796
8809
  switch (t) {
8797
8810
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
8798
8811
  case "created": return `${e} created ${s}${c}.`;
8799
8812
  case "deleted": return `${e} deleted ${o}${c}.`;
8800
8813
  default: return `${e} changed ${n}${c}.`;
8801
8814
  }
8802
- }, ff = ({ sectionNames: e, userName: t, diffs: n }) => /* @__PURE__ */ R(qs, { table: {
8815
+ }, pf = ({ sectionNames: e, userName: t, diffs: n }) => /* @__PURE__ */ R(qs, { table: {
8803
8816
  headers: [{ cells: [{ value: "Changes" }] }],
8804
8817
  rows: n.map((n) => {
8805
8818
  let { deltaFormat: r, path: i } = n, a = tf(e, i), { type: o, before: s, after: c } = rf(r);
8806
- return { cells: [{ value: df({
8819
+ return { cells: [{ value: ff({
8807
8820
  userName: t,
8808
8821
  type: o,
8809
- property: uf(i),
8822
+ property: df(i),
8810
8823
  before: s,
8811
8824
  after: c,
8812
8825
  sectionName: a
8813
8826
  }) }] };
8814
8827
  })
8815
- } }), pf = Object.freeze({
8828
+ } }), mf = Object.freeze({
8816
8829
  summary: {
8817
8830
  label: "Summary",
8818
8831
  value: "summary"
@@ -8821,7 +8834,7 @@ var Zd = ((e = {}) => Xd({
8821
8834
  label: "Compare",
8822
8835
  value: "compare"
8823
8836
  }
8824
- }), mf = (e) => {
8837
+ }), hf = (e) => {
8825
8838
  let t = ["user", "unittemplate"], n = [], r = [], i = (e) => {
8826
8839
  e && Object.keys(e).forEach((a) => {
8827
8840
  t.includes(a) || (r.push(a), Wt(e[a]) ? n.push({
@@ -8831,13 +8844,13 @@ var Zd = ((e = {}) => Xd({
8831
8844
  });
8832
8845
  };
8833
8846
  return e ? (i(e), n) : [];
8834
- }, hf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a }) => {
8835
- let o = [pf.summary, pf.compare].map(({ label: e, value: t }) => ({
8847
+ }, gf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a }) => {
8848
+ let o = [mf.summary, mf.compare].map(({ label: e, value: t }) => ({
8836
8849
  label: e,
8837
8850
  value: t
8838
8851
  })), [s, c] = m(o[0]), { diffs: l = void 0 } = e || {};
8839
8852
  if (!l) return null;
8840
- let { oldJson: u, newJson: d } = sf(e, t, n);
8853
+ let { oldJson: u, newJson: d, error: f } = cf(e, t, n);
8841
8854
  return /* @__PURE__ */ R(Ca, {
8842
8855
  visible: r,
8843
8856
  centered: !0,
@@ -8849,10 +8862,13 @@ var Zd = ((e = {}) => Xd({
8849
8862
  onChange: (e) => c(o.find((t) => t.value === e.target.value)),
8850
8863
  options: o,
8851
8864
  value: s
8852
- }), s.value === "summary" ? /* @__PURE__ */ R(ff, {
8865
+ }), s.value === "summary" ? /* @__PURE__ */ R(pf, {
8853
8866
  userName: e.userName,
8854
8867
  sectionNames: i,
8855
- diffs: mf(l)
8868
+ diffs: hf(l)
8869
+ }) : f ? /* @__PURE__ */ R("div", {
8870
+ style: { padding: 16 },
8871
+ children: f
8856
8872
  }) : /* @__PURE__ */ R(ad, {
8857
8873
  oldJson: u,
8858
8874
  newJson: d
@@ -8866,7 +8882,7 @@ var Zd = ((e = {}) => Xd({
8866
8882
  height: "90vh"
8867
8883
  } })
8868
8884
  });
8869
- }, gf = [
8885
+ }, _f = [
8870
8886
  {
8871
8887
  label: "10 / page",
8872
8888
  value: 10
@@ -8879,7 +8895,7 @@ var Zd = ((e = {}) => Xd({
8879
8895
  label: "50 / page",
8880
8896
  value: 50
8881
8897
  }
8882
- ], _f = (e) => e.createdAt || e.date, vf = (e) => {
8898
+ ], vf = (e) => {
8883
8899
  let { diffs: t, userName: n, source: r, operation: i, operationMetaData: a } = e, o = ef(t).total, s = o ? `${o} change${o === 1 ? "" : "s"}` : "no field changes";
8884
8900
  if (r === "API") return i === "Created" ? "Created through API" : "Changed through API";
8885
8901
  switch (i) {
@@ -8929,7 +8945,7 @@ var Zd = ((e = {}) => Xd({
8929
8945
  },
8930
8946
  {
8931
8947
  value: od({
8932
- date: _f(e),
8948
+ date: sf(e),
8933
8949
  showTime: !0
8934
8950
  }),
8935
8951
  type: "Static"
@@ -8971,14 +8987,14 @@ var Zd = ((e = {}) => Xd({
8971
8987
  onChange: (e) => {
8972
8988
  c(Number(e.target.value));
8973
8989
  },
8974
- options: gf,
8990
+ options: _f,
8975
8991
  value: a
8976
8992
  },
8977
8993
  onSelectPage: (e) => l(e),
8978
8994
  small: !0
8979
8995
  } }
8980
8996
  } })
8981
- }), h && _ && _.diffs && /* @__PURE__ */ R(hf, {
8997
+ }), h && _ && _.diffs && /* @__PURE__ */ R(gf, {
8982
8998
  sectionNames: o,
8983
8999
  isOpen: h,
8984
9000
  onClose: () => g(!1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.23.0-beta-20",
3
+ "version": "5.23.0-beta-22",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {