@oliasoft-open-source/react-ui-library 9.5.1-beta-4 → 9.5.1

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/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { Color as Color_2 } from 'react-aria-components/ColorPicker';
3
- import { ComponentProps } from 'react';
4
- import { ComponentType } from 'react';
5
3
  import { Context } from 'react';
6
4
  import { CSSProperties } from 'react';
7
5
  import { default as default_2 } from 'react';
@@ -16,7 +14,6 @@ import { Id } from 'react-toastify';
16
14
  import { JSX } from 'react/jsx-runtime';
17
15
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
18
16
  import { KeyboardEventHandler } from 'react';
19
- import { MemoExoticComponent } from 'react';
20
17
  import { MouseEvent as MouseEvent_2 } from 'react';
21
18
  import { MouseEventHandler } from 'react';
22
19
  import { MutableRefObject } from 'react';
@@ -2477,11 +2474,8 @@ declare type ViewType = typeof SPLIT_VIEW | typeof UNIFIED_VIEW;
2477
2474
 
2478
2475
  export declare const widthOfCharacters: (characterCount: number) => string;
2479
2476
 
2480
- export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
2477
+ export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <T extends default_2.JSXElementConstructor<any>>(Component: T) => T;
2481
2478
 
2482
- export declare const withErrorBoundary: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => MemoExoticComponent<{
2483
- (props: ComponentProps<T>): JSX.Element;
2484
- displayName: string;
2485
- }>;
2479
+ export declare const withErrorBoundary: <T extends default_2.JSXElementConstructor<any>>(Component: T, options?: ErrorBoundaryOptions) => T;
2486
2480
 
2487
2481
  export { }
package/dist/index.js CHANGED
@@ -8407,12 +8407,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8407
8407
  compareMethod: Ci.WORDS
8408
8408
  })
8409
8409
  }) });
8410
- }, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = (e) => {
8410
+ }, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Kp = (e) => {
8411
8411
  var t;
8412
8412
  if (e.id != null) return String(e.id);
8413
- let n = (t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value;
8413
+ let n = Gp((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
8414
8414
  return n == null ? "" : String(n);
8415
- }, Kp = (e, t) => ({
8415
+ }, qp = (e, t) => ({
8416
8416
  ...e,
8417
8417
  cells: e.cells.map((e) => ({
8418
8418
  ...e,
@@ -8421,7 +8421,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8421
8421
  ...t
8422
8422
  }
8423
8423
  }))
8424
- }), qp = (e, t) => ({
8424
+ }), Jp = (e, t) => ({
8425
8425
  ...e,
8426
8426
  cells: e.cells.map((e, n) => {
8427
8427
  var r;
@@ -8435,12 +8435,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8435
8435
  tooltip: a
8436
8436
  };
8437
8437
  })
8438
- }), Jp = (e = [], t = []) => {
8438
+ }), Yp = (e = [], t = []) => {
8439
8439
  let n = /* @__PURE__ */ new Map();
8440
- for (let e of t) n.set(Gp(e), e);
8441
- let r = new Set(e.map(Gp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
8440
+ for (let e of t) n.set(Kp(e), e);
8441
+ let r = new Set(e.map(Kp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
8442
8442
  for (let e = t.length - 1; e >= 0; e--) {
8443
- let n = t[e], c = Gp(n);
8443
+ let n = t[e], c = Kp(n);
8444
8444
  if (r.has(c)) {
8445
8445
  o = c;
8446
8446
  continue;
@@ -8455,7 +8455,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8455
8455
  a.reverse();
8456
8456
  let c = [];
8457
8457
  for (let t of e) {
8458
- let e = Gp(t), r = i.get(e);
8458
+ let e = Kp(t), r = i.get(e);
8459
8459
  if (r) for (let e of r) c.push({
8460
8460
  status: "deleted",
8461
8461
  row: e
@@ -8475,9 +8475,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8475
8475
  row: e
8476
8476
  });
8477
8477
  return c;
8478
- }, Yp = (e) => e.status === "deleted" ? Kp(e.row, Hp) : e.status === "added" ? Kp(e.row, Up) : qp(e.row, e.compareRow), Xp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
8479
- let i = h(() => Jp(e.rows, t), [e.rows, t]), a = l(({ row: e, rowIndex: t }) => {
8480
- let r = i[t], a = r ? Yp(r) : e;
8478
+ }, Xp = (e) => e.status === "deleted" ? qp(e.row, Hp) : e.status === "added" ? qp(e.row, Up) : Jp(e.row, e.compareRow), Zp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
8479
+ let i = h(() => Yp(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
8480
+ if (!a) return i.map((e) => e.row);
8481
+ }, [a, i]), s = l(({ row: e, rowIndex: t }) => {
8482
+ let r = i[t], a = r ? Xp(r) : e;
8481
8483
  return n ? n({
8482
8484
  row: a,
8483
8485
  rowIndex: t
@@ -8485,19 +8487,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8485
8487
  }, [i, n]);
8486
8488
  return /* @__PURE__ */ S(nu, {
8487
8489
  ...r,
8488
- beforeRenderRow: a,
8490
+ beforeRenderRow: s,
8489
8491
  table: {
8490
8492
  ...e,
8491
- rows: void 0,
8492
- rowCount: i.length,
8493
- striped: !1,
8494
- infiniteScroll: !0
8493
+ rows: o,
8494
+ rowCount: a ? i.length : void 0,
8495
+ striped: !1
8495
8496
  }
8496
8497
  });
8497
8498
  };
8498
8499
  //#endregion
8499
8500
  //#region src/helpers/date.ts
8500
- function Zp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8501
+ function Qp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8501
8502
  return e ? new Date(e).toLocaleString(a, {
8502
8503
  year: "numeric",
8503
8504
  month: "short",
@@ -8511,28 +8512,28 @@ function Zp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
8511
8512
  }
8512
8513
  //#endregion
8513
8514
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
8514
- function Qp(e) {
8515
+ function $p(e) {
8515
8516
  var t;
8516
8517
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
8517
8518
  if (!n) throw Error("Invalid RegExp");
8518
8519
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
8519
8520
  }
8520
- function $p(e) {
8521
+ function em(e) {
8521
8522
  if (typeof e != "object") return e;
8522
8523
  if (e === null) return null;
8523
- if (Array.isArray(e)) return e.map($p);
8524
+ if (Array.isArray(e)) return e.map(em);
8524
8525
  if (e instanceof Date) return new Date(e.getTime());
8525
- if (e instanceof RegExp) return Qp(e);
8526
+ if (e instanceof RegExp) return $p(e);
8526
8527
  let t = {};
8527
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = $p(e[n]));
8528
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = em(e[n]));
8528
8529
  return t;
8529
8530
  }
8530
8531
  //#endregion
8531
8532
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
8532
- function em(e, t) {
8533
+ function tm(e, t) {
8533
8534
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
8534
8535
  }
8535
- var tm = (e) => e[e.length - 1], nm = class {
8536
+ var nm = (e) => e[e.length - 1], rm = class {
8536
8537
  setResult(e) {
8537
8538
  return this.result = e, this.hasResult = !0, this;
8538
8539
  }
@@ -8540,16 +8541,16 @@ var tm = (e) => e[e.length - 1], nm = class {
8540
8541
  return this.exiting = !0, this;
8541
8542
  }
8542
8543
  push(e, t) {
8543
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (em(this.children), tm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8544
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (tm(this.children), nm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8544
8545
  }
8545
- }, rm = class extends nm {
8546
+ }, im = class extends rm {
8546
8547
  constructor(e, t) {
8547
8548
  super(), this.left = e, this.right = t, this.pipe = "diff";
8548
8549
  }
8549
8550
  prepareDeltaResult(e) {
8550
8551
  var t, n, r, i;
8551
8552
  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)) {
8552
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : $p;
8553
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : em;
8553
8554
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
8554
8555
  }
8555
8556
  return e;
@@ -8557,15 +8558,15 @@ var tm = (e) => e[e.length - 1], nm = class {
8557
8558
  setResult(e) {
8558
8559
  return this.prepareDeltaResult(e), super.setResult(e);
8559
8560
  }
8560
- }, im = class extends nm {
8561
+ }, am = class extends rm {
8561
8562
  constructor(e, t) {
8562
8563
  super(), this.left = e, this.delta = t, this.pipe = "patch";
8563
8564
  }
8564
- }, am = class extends nm {
8565
+ }, om = class extends rm {
8565
8566
  constructor(e) {
8566
8567
  super(), this.delta = e, this.pipe = "reverse";
8567
8568
  }
8568
- }, om = class {
8569
+ }, sm = class {
8569
8570
  constructor(e) {
8570
8571
  this.name = e, this.filters = [];
8571
8572
  }
@@ -8629,7 +8630,7 @@ var tm = (e) => e[e.length - 1], nm = class {
8629
8630
  }
8630
8631
  }), this);
8631
8632
  }
8632
- }, sm = class {
8633
+ }, cm = class {
8633
8634
  constructor(e) {
8634
8635
  this.selfOptions = e || {}, this.pipes = {};
8635
8636
  }
@@ -8656,7 +8657,7 @@ var tm = (e) => e[e.length - 1], nm = class {
8656
8657
  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);
8657
8658
  return n.hasResult ? n.result : void 0;
8658
8659
  }
8659
- }, cm = (e, t, n, r) => e[n] === t[r], lm = (e, t, n, r) => {
8660
+ }, lm = (e, t, n, r) => e[n] === t[r], um = (e, t, n, r) => {
8660
8661
  var i, a, o;
8661
8662
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
8662
8663
  for (l = 0; l < s + 1; l++) {
@@ -8672,7 +8673,7 @@ var tm = (e) => e[e.length - 1], nm = class {
8672
8673
  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);
8673
8674
  }
8674
8675
  return d;
8675
- }, um = (e, t, n, r) => {
8676
+ }, dm = (e, t, n, r) => {
8676
8677
  let i = t.length, a = n.length, o = {
8677
8678
  sequence: [],
8678
8679
  indices1: [],
@@ -8694,11 +8695,11 @@ var tm = (e) => e[e.length - 1], nm = class {
8694
8695
  }
8695
8696
  }
8696
8697
  return o;
8697
- }, dm = { get: (e, t, n, r) => {
8698
+ }, fm = { get: (e, t, n, r) => {
8698
8699
  let i = r || {};
8699
- return um(lm(e, t, n || cm, i), e, t, i);
8700
- } }, fm = 3;
8701
- function pm(e, t, n, r) {
8700
+ return dm(um(e, t, n || lm, i), e, t, i);
8701
+ } }, pm = 3;
8702
+ function mm(e, t, n, r) {
8702
8703
  for (let i = 0; i < n; i++) {
8703
8704
  let n = e[i];
8704
8705
  for (let e = 0; e < r; e++) {
@@ -8708,7 +8709,7 @@ function pm(e, t, n, r) {
8708
8709
  }
8709
8710
  return !1;
8710
8711
  }
8711
- function mm(e, t, n, r, i) {
8712
+ function hm(e, t, n, r, i) {
8712
8713
  let a = e[n], o = t[r];
8713
8714
  if (a === o) return !0;
8714
8715
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -8721,15 +8722,15 @@ function mm(e, t, n, r, i) {
8721
8722
  let l = i.hashCache2[r];
8722
8723
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
8723
8724
  }
8724
- var hm = function(e) {
8725
+ var gm = function(e) {
8725
8726
  var t, n, r, i, a;
8726
8727
  if (!e.leftIsArray) return;
8727
8728
  let o = {
8728
8729
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
8729
8730
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
8730
8731
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
8731
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !pm(f, p, m, h)); s < m && s < h && mm(f, p, s, s, o);) l = s, g = new rm(f[l], p[l]), e.push(g, l), s++;
8732
- for (; c + s < m && c + s < h && mm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new rm(f[u], p[d]), e.push(g, d), c++;
8732
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !mm(f, p, m, h)); s < m && s < h && hm(f, p, s, s, o);) l = s, g = new im(f[l], p[l]), e.push(g, l), s++;
8733
+ for (; c + s < m && c + s < h && hm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new im(f[u], p[d]), e.push(g, d), c++;
8733
8734
  let _;
8734
8735
  if (s + c === m) {
8735
8736
  if (m === h) {
@@ -8753,7 +8754,7 @@ var hm = function(e) {
8753
8754
  return;
8754
8755
  }
8755
8756
  o.hashCache1 = void 0, o.hashCache2 = void 0;
8756
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = dm.get(v, y, mm, o), x = [];
8757
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = fm.get(v, y, hm, o), x = [];
8757
8758
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
8758
8759
  let t = `_${l}`;
8759
8760
  _[t] = [
@@ -8774,8 +8775,8 @@ var hm = function(e) {
8774
8775
  if (S && w > 0) for (let n = 0; n < w; n++) {
8775
8776
  u = x[n];
8776
8777
  let r = u === void 0 ? void 0 : _[`_${u}`];
8777
- if (u !== void 0 && r && mm(v, y, u - s, l - s, o)) {
8778
- r.splice(1, 2, l, fm), r.splice(1, 2, l, fm), C || (r[0] = ""), d = l, g = new rm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8778
+ if (u !== void 0 && r && hm(v, y, u - s, l - s, o)) {
8779
+ r.splice(1, 2, l, pm), r.splice(1, 2, l, pm), C || (r[0] = ""), d = l, g = new im(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8779
8780
  break;
8780
8781
  }
8781
8782
  }
@@ -8783,20 +8784,20 @@ var hm = function(e) {
8783
8784
  } else {
8784
8785
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
8785
8786
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
8786
- d = b.indices2[t] + s, g = new rm(f[u], p[d]), e.push(g, d);
8787
+ d = b.indices2[t] + s, g = new im(f[u], p[d]), e.push(g, d);
8787
8788
  }
8788
8789
  }
8789
8790
  e.setResult(_).exit();
8790
8791
  };
8791
- hm.filterName = "arrays";
8792
- var gm = {
8792
+ gm.filterName = "arrays";
8793
+ var _m = {
8793
8794
  numerically(e, t) {
8794
8795
  return e - t;
8795
8796
  },
8796
8797
  numericallyBy(e) {
8797
8798
  return (t, n) => t[e] - n[e];
8798
8799
  }
8799
- }, _m = function(e) {
8800
+ }, vm = function(e) {
8800
8801
  var t;
8801
8802
  if (!e.nested) return;
8802
8803
  let n = e.delta;
@@ -8805,7 +8806,7 @@ var gm = {
8805
8806
  for (r in a) if (r !== "_t") {
8806
8807
  if (r[0] === "_") {
8807
8808
  let e = r;
8808
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === fm)) s.push(Number.parseInt(r.slice(1), 10));
8809
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === pm)) s.push(Number.parseInt(r.slice(1), 10));
8809
8810
  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]}`);
8810
8811
  } else {
8811
8812
  let e = r;
@@ -8818,15 +8819,15 @@ var gm = {
8818
8819
  });
8819
8820
  }
8820
8821
  }
8821
- for (s = s.sort(gm.numerically), r = s.length - 1; r >= 0; r--) {
8822
+ for (s = s.sort(_m.numerically), r = s.length - 1; r >= 0; r--) {
8822
8823
  if (i = s[r], i === void 0) continue;
8823
8824
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8824
- (e == null ? void 0 : e[2]) === fm && c.push({
8825
+ (e == null ? void 0 : e[2]) === pm && c.push({
8825
8826
  index: e[1],
8826
8827
  value: t
8827
8828
  });
8828
8829
  }
8829
- c = c.sort(gm.numericallyBy("index"));
8830
+ c = c.sort(_m.numericallyBy("index"));
8830
8831
  let u = c.length;
8831
8832
  for (r = 0; r < u; r++) {
8832
8833
  let e = c[r];
@@ -8836,7 +8837,7 @@ var gm = {
8836
8837
  if (d > 0) for (r = 0; r < d; r++) {
8837
8838
  let t = l[r];
8838
8839
  if (t === void 0) continue;
8839
- let n = new im(o[t.index], t.delta);
8840
+ let n = new am(o[t.index], t.delta);
8840
8841
  e.push(n, t.index);
8841
8842
  }
8842
8843
  if (!e.children) {
@@ -8845,8 +8846,8 @@ var gm = {
8845
8846
  }
8846
8847
  e.exit();
8847
8848
  };
8848
- _m.filterName = "arrays";
8849
- var vm = function(e) {
8849
+ vm.filterName = "arrays";
8850
+ var ym = function(e) {
8850
8851
  if (!e || !e.children || e.delta._t !== "a") return;
8851
8852
  let t = e.left, n = e.children.length;
8852
8853
  for (let r = 0; r < n; r++) {
@@ -8857,16 +8858,16 @@ var vm = function(e) {
8857
8858
  }
8858
8859
  e.setResult(t).exit();
8859
8860
  };
8860
- vm.filterName = "arraysCollectChildren";
8861
- var ym = function(e) {
8861
+ ym.filterName = "arraysCollectChildren";
8862
+ var bm = function(e) {
8862
8863
  if (!e.nested) {
8863
8864
  let t = e.delta;
8864
- if (t[2] === fm) {
8865
+ if (t[2] === pm) {
8865
8866
  let n = t;
8866
8867
  e.newName = `_${n[1]}`, e.setResult([
8867
8868
  n[0],
8868
8869
  Number.parseInt(e.childName.substring(1), 10),
8869
- fm
8870
+ pm
8870
8871
  ]).exit();
8871
8872
  }
8872
8873
  return;
@@ -8876,20 +8877,20 @@ var ym = function(e) {
8876
8877
  let n = t;
8877
8878
  for (let t in n) {
8878
8879
  if (t === "_t") continue;
8879
- let r = new am(n[t]);
8880
+ let r = new om(n[t]);
8880
8881
  e.push(r, t);
8881
8882
  }
8882
8883
  e.exit();
8883
8884
  };
8884
- ym.filterName = "arrays";
8885
- var bm = (e, t, n) => {
8885
+ bm.filterName = "arrays";
8886
+ var xm = (e, t, n) => {
8886
8887
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8887
8888
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8888
8889
  let r = +t;
8889
8890
  for (let n in e) {
8890
8891
  let i = e[n];
8891
8892
  if (Array.isArray(i)) {
8892
- if (i[2] === fm) {
8893
+ if (i[2] === pm) {
8893
8894
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8894
8895
  if (a === +t) return e;
8895
8896
  e <= r && a > r ? r++ : e >= r && a < r && r--;
@@ -8897,7 +8898,7 @@ var bm = (e, t, n) => {
8897
8898
  }
8898
8899
  }
8899
8900
  return r;
8900
- }, xm = (e) => {
8901
+ }, Sm = (e) => {
8901
8902
  if (!e || !e.children) return;
8902
8903
  let t = e.delta;
8903
8904
  if (t._t !== "a") return;
@@ -8908,22 +8909,22 @@ var bm = (e, t, n) => {
8908
8909
  let a = r.newName;
8909
8910
  if (a === void 0) {
8910
8911
  if (r.childName === void 0) throw Error("child.childName is undefined");
8911
- a = bm(n, r.childName, r.result);
8912
+ a = xm(n, r.childName, r.result);
8912
8913
  }
8913
8914
  i[a] !== r.result && (i[a] = r.result);
8914
8915
  }
8915
8916
  e.setResult(i).exit();
8916
8917
  };
8917
- xm.filterName = "arraysCollectChildren";
8918
+ Sm.filterName = "arraysCollectChildren";
8918
8919
  //#endregion
8919
8920
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8920
- var Sm = function(e) {
8921
+ var Cm = function(e) {
8921
8922
  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();
8922
8923
  };
8923
- Sm.filterName = "dates";
8924
+ Cm.filterName = "dates";
8924
8925
  //#endregion
8925
8926
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8926
- var Cm = /* @__PURE__ */ new Set(["__proto__"]), wm = (e) => {
8927
+ var wm = /* @__PURE__ */ new Set(["__proto__"]), Tm = (e) => {
8927
8928
  if (!e || !e.children) return;
8928
8929
  let t = e.children.length, n = e.result;
8929
8930
  for (let r = 0; r < t; r++) {
@@ -8935,18 +8936,18 @@ var Cm = /* @__PURE__ */ new Set(["__proto__"]), wm = (e) => {
8935
8936
  }
8936
8937
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8937
8938
  };
8938
- wm.filterName = "collectChildren";
8939
- var Tm = (e) => {
8939
+ Tm.filterName = "collectChildren";
8940
+ var Em = (e) => {
8940
8941
  var t;
8941
8942
  if (e.leftIsArray || e.leftType !== "object") return;
8942
8943
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8943
8944
  for (let t in n) {
8944
8945
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8945
- let a = new rm(n[t], r[t]);
8946
+ let a = new im(n[t], r[t]);
8946
8947
  e.push(a, t);
8947
8948
  }
8948
8949
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8949
- let n = new rm(void 0, r[t]);
8950
+ let n = new im(void 0, r[t]);
8950
8951
  e.push(n, t);
8951
8952
  }
8952
8953
  if (!e.children || e.children.length === 0) {
@@ -8955,15 +8956,15 @@ var Tm = (e) => {
8955
8956
  }
8956
8957
  e.exit();
8957
8958
  };
8958
- Tm.filterName = "objects";
8959
- var Em = function(e) {
8959
+ Em.filterName = "objects";
8960
+ var Dm = function(e) {
8960
8961
  if (!e.nested) return;
8961
8962
  let t = e.delta;
8962
8963
  if (t._t) return;
8963
8964
  let n = t, r = !1;
8964
8965
  for (let t in n) {
8965
- if (Cm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8966
- let i = e.left, a = new im(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8966
+ if (wm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8967
+ let i = e.left, a = new am(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8967
8968
  e.push(a, t), r = !0;
8968
8969
  }
8969
8970
  if (!r) {
@@ -8972,8 +8973,8 @@ var Em = function(e) {
8972
8973
  }
8973
8974
  e.exit();
8974
8975
  };
8975
- Em.filterName = "objects";
8976
- var Dm = function(e) {
8976
+ Dm.filterName = "objects";
8977
+ var Om = function(e) {
8977
8978
  if (!e || !e.children || e.delta._t) return;
8978
8979
  if (e.left === null || typeof e.left != "object") {
8979
8980
  e.setResult(e.left).exit();
@@ -8984,17 +8985,17 @@ var Dm = function(e) {
8984
8985
  let n = e.children[r];
8985
8986
  if (n === void 0) continue;
8986
8987
  let i = n.childName;
8987
- Cm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8988
+ wm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8988
8989
  }
8989
8990
  e.setResult(t).exit();
8990
8991
  };
8991
- Dm.filterName = "collectChildren";
8992
- var Om = function(e) {
8992
+ Om.filterName = "collectChildren";
8993
+ var km = function(e) {
8993
8994
  if (!e.nested || e.delta._t) return;
8994
8995
  let t = e.delta, n = !1;
8995
8996
  for (let r in t) {
8996
- if (Cm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8997
- let i = new am(t[r]);
8997
+ if (wm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8998
+ let i = new om(t[r]);
8998
8999
  e.push(i, r), n = !0;
8999
9000
  }
9000
9001
  if (!n) {
@@ -9003,25 +9004,25 @@ var Om = function(e) {
9003
9004
  }
9004
9005
  e.exit();
9005
9006
  };
9006
- Om.filterName = "objects";
9007
- var km = (e) => {
9007
+ km.filterName = "objects";
9008
+ var Am = (e) => {
9008
9009
  if (!e || !e.children || e.delta._t) return;
9009
9010
  let t = e.children.length, n = {};
9010
9011
  for (let r = 0; r < t; r++) {
9011
9012
  let t = e.children[r];
9012
9013
  if (t === void 0) continue;
9013
9014
  let i = t.childName;
9014
- Cm.has(i) || n[i] !== t.result && (n[i] = t.result);
9015
+ wm.has(i) || n[i] !== t.result && (n[i] = t.result);
9015
9016
  }
9016
9017
  e.setResult(n).exit();
9017
9018
  };
9018
- km.filterName = "collectChildren";
9019
+ Am.filterName = "collectChildren";
9019
9020
  //#endregion
9020
9021
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
9021
- var Am = 2, jm = 60, Mm = null;
9022
- function Nm(e, t) {
9022
+ var jm = 2, Mm = 60, Nm = null;
9023
+ function Pm(e, t) {
9023
9024
  var n;
9024
- if (!Mm) {
9025
+ if (!Nm) {
9025
9026
  let r;
9026
9027
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
9027
9028
  else {
@@ -9029,7 +9030,7 @@ function Nm(e, t) {
9029
9030
  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.");
9030
9031
  throw e.diff_match_patch_not_found = !0, e;
9031
9032
  }
9032
- Mm = {
9033
+ Nm = {
9033
9034
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
9034
9035
  patch: (e, t) => {
9035
9036
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -9041,17 +9042,17 @@ function Nm(e, t) {
9041
9042
  }
9042
9043
  };
9043
9044
  }
9044
- return Mm;
9045
+ return Nm;
9045
9046
  }
9046
- var Pm = function(e) {
9047
+ var Fm = function(e) {
9047
9048
  var t, n;
9048
9049
  if (e.leftType !== "string") return;
9049
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || jm;
9050
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Mm;
9050
9051
  if (r.length < a || i.length < a) {
9051
9052
  e.setResult([r, i]).exit();
9052
9053
  return;
9053
9054
  }
9054
- let o = Nm(e.options);
9055
+ let o = Pm(e.options);
9055
9056
  if (!o) {
9056
9057
  e.setResult([r, i]).exit();
9057
9058
  return;
@@ -9060,19 +9061,19 @@ var Pm = function(e) {
9060
9061
  e.setResult([
9061
9062
  s(r, i),
9062
9063
  0,
9063
- Am
9064
+ jm
9064
9065
  ]).exit();
9065
9066
  };
9066
- Pm.filterName = "texts";
9067
- var Fm = function(e) {
9067
+ Fm.filterName = "texts";
9068
+ var Im = function(e) {
9068
9069
  if (e.nested) return;
9069
9070
  let t = e.delta;
9070
- if (t[2] !== Am) return;
9071
- let n = t, r = Nm(e.options, !0).patch;
9071
+ if (t[2] !== jm) return;
9072
+ let n = t, r = Pm(e.options, !0).patch;
9072
9073
  e.setResult(r(e.left, n[0])).exit();
9073
9074
  };
9074
- Fm.filterName = "texts";
9075
- var Im = (e) => {
9075
+ Im.filterName = "texts";
9076
+ var Lm = (e) => {
9076
9077
  var t, n, r;
9077
9078
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
9078
9079
  for (let e = 0; e < a.length; e++) {
@@ -9093,21 +9094,21 @@ var Im = (e) => {
9093
9094
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
9094
9095
  }
9095
9096
  return a.join("\n");
9096
- }, Lm = function(e) {
9097
+ }, Rm = function(e) {
9097
9098
  if (e.nested) return;
9098
9099
  let t = e.delta;
9099
- if (t[2] !== Am) return;
9100
+ if (t[2] !== jm) return;
9100
9101
  let n = t;
9101
9102
  e.setResult([
9102
- Im(n[0]),
9103
+ Lm(n[0]),
9103
9104
  0,
9104
- Am
9105
+ jm
9105
9106
  ]).exit();
9106
9107
  };
9107
- Lm.filterName = "texts";
9108
+ Rm.filterName = "texts";
9108
9109
  //#endregion
9109
9110
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
9110
- var Rm = function(e) {
9111
+ var zm = function(e) {
9111
9112
  if (e.left === e.right) {
9112
9113
  e.setResult(void 0).exit();
9113
9114
  return;
@@ -9140,8 +9141,8 @@ var Rm = function(e) {
9140
9141
  }
9141
9142
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
9142
9143
  };
9143
- Rm.filterName = "trivial";
9144
- var zm = function(e) {
9144
+ zm.filterName = "trivial";
9145
+ var Bm = function(e) {
9145
9146
  if (e.delta === void 0) {
9146
9147
  e.setResult(e.left).exit();
9147
9148
  return;
@@ -9165,8 +9166,8 @@ var zm = function(e) {
9165
9166
  }
9166
9167
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
9167
9168
  };
9168
- zm.filterName = "trivial";
9169
- var Bm = function(e) {
9169
+ Bm.filterName = "trivial";
9170
+ var Vm = function(e) {
9170
9171
  if (e.delta === void 0) {
9171
9172
  e.setResult(e.delta).exit();
9172
9173
  return;
@@ -9187,36 +9188,36 @@ var Bm = function(e) {
9187
9188
  }
9188
9189
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
9189
9190
  };
9190
- Bm.filterName = "trivial";
9191
+ Vm.filterName = "trivial";
9191
9192
  //#endregion
9192
9193
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
9193
- var Vm = class {
9194
+ var Hm = class {
9194
9195
  constructor(e) {
9195
- this.processor = new sm(e), this.processor.pipe(new om("diff").append(wm, Rm, Sm, Pm, Tm, hm).shouldHaveResult()), this.processor.pipe(new om("patch").append(Dm, vm, zm, Fm, Em, _m).shouldHaveResult()), this.processor.pipe(new om("reverse").append(km, xm, Bm, Lm, Om, ym).shouldHaveResult());
9196
+ this.processor = new cm(e), this.processor.pipe(new sm("diff").append(Tm, zm, Cm, Fm, Em, gm).shouldHaveResult()), this.processor.pipe(new sm("patch").append(Om, ym, Bm, Im, Dm, vm).shouldHaveResult()), this.processor.pipe(new sm("reverse").append(Am, Sm, Vm, Rm, km, bm).shouldHaveResult());
9196
9197
  }
9197
9198
  options(e) {
9198
9199
  return this.processor.options(e);
9199
9200
  }
9200
9201
  diff(e, t) {
9201
- return this.processor.process(new rm(e, t));
9202
+ return this.processor.process(new im(e, t));
9202
9203
  }
9203
9204
  patch(e, t) {
9204
- return this.processor.process(new im(e, t));
9205
+ return this.processor.process(new am(e, t));
9205
9206
  }
9206
9207
  reverse(e) {
9207
- return this.processor.process(new am(e));
9208
+ return this.processor.process(new om(e));
9208
9209
  }
9209
9210
  unpatch(e, t) {
9210
9211
  return this.patch(e, this.reverse(t));
9211
9212
  }
9212
9213
  clone(e) {
9213
- return $p(e);
9214
+ return em(e);
9214
9215
  }
9215
9216
  };
9216
9217
  //#endregion
9217
9218
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
9218
- function Hm(e) {
9219
- return new Vm(e);
9219
+ function Um(e) {
9220
+ return new Hm(e);
9220
9221
  }
9221
9222
  //#endregion
9222
9223
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -9778,46 +9779,46 @@ $.Diff = function(e, t) {
9778
9779
  };
9779
9780
  //#endregion
9780
9781
  //#region src/components/audit-log/create-diff-patcher.tsx
9781
- var Um = (e = {}) => Hm({
9782
+ var Wm = (e = {}) => Um({
9782
9783
  ...e,
9783
9784
  textDiff: {
9784
9785
  diffMatchPatch: $,
9785
9786
  minLength: 120
9786
9787
  },
9787
9788
  cloneDiffValues: !0
9788
- }), Wm = ["user", "unittemplate"], Gm = Um(), Km = (e, t, n) => {
9789
+ }), Gm = ["user", "unittemplate"], Km = Wm(), qm = (e, t, n) => {
9789
9790
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
9790
9791
  for (let e = t.length - 1; e >= 0; e--) {
9791
9792
  let n = r[t[e]];
9792
9793
  if (n) return n;
9793
9794
  }
9794
9795
  return n || "";
9795
- }, qm = (e) => {
9796
+ }, Jm = (e) => {
9796
9797
  let t = (e) => vr(e) ? Ar(e) : String(e);
9797
9798
  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);
9798
- }, Jm = (e) => {
9799
+ }, Ym = (e) => {
9799
9800
  switch (e.length) {
9800
9801
  case 1: {
9801
9802
  let [t] = e;
9802
9803
  return {
9803
9804
  type: "created",
9804
9805
  before: "",
9805
- after: qm(t)
9806
+ after: Jm(t)
9806
9807
  };
9807
9808
  }
9808
9809
  case 2: {
9809
9810
  let [t, n] = e;
9810
9811
  return {
9811
9812
  type: "modified",
9812
- before: qm(t),
9813
- after: qm(n)
9813
+ before: Jm(t),
9814
+ after: Jm(n)
9814
9815
  };
9815
9816
  }
9816
9817
  case 3: {
9817
9818
  let [t] = e;
9818
9819
  return {
9819
9820
  type: "deleted",
9820
- before: qm(t),
9821
+ before: Jm(t),
9821
9822
  after: ""
9822
9823
  };
9823
9824
  }
@@ -9827,15 +9828,15 @@ var Um = (e = {}) => Hm({
9827
9828
  after: ""
9828
9829
  };
9829
9830
  }
9830
- }, Ym = (e) => Array.isArray(e), Xm = (e, t) => t ? Ym(t) ? t.length === 0 ? e : t.reduce((e, t) => Gm.unpatch(nn(e), nn(t)), nn(e)) : Gm.unpatch(nn(e), nn(t)) : e, Zm = (e) => e.createdAt || e.date, Qm = (e, t, n) => {
9831
- let r = Zm(e);
9831
+ }, Xm = (e) => Array.isArray(e), Zm = (e, t) => t ? Xm(t) ? t.length === 0 ? e : t.reduce((e, t) => Km.unpatch(nn(e), nn(t)), nn(e)) : Km.unpatch(nn(e), nn(t)) : e, Qm = (e) => e.createdAt || e.date, $m = (e, t, n) => {
9832
+ let r = Qm(e);
9832
9833
  if (!r) return {
9833
9834
  oldJson: "",
9834
9835
  newJson: "",
9835
9836
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9836
9837
  };
9837
9838
  let i = t.filter((e) => {
9838
- let t = Zm(e);
9839
+ let t = Qm(e);
9839
9840
  return !!(e.diffs && t && t >= r);
9840
9841
  }), a = Array.from({ length: i.length + 1 });
9841
9842
  a[0] = nn(n);
@@ -9848,7 +9849,7 @@ var Um = (e = {}) => Hm({
9848
9849
  a[e + 1] = a[e];
9849
9850
  continue;
9850
9851
  }
9851
- a[e + 1] = Xm(a[e], t);
9852
+ a[e + 1] = Zm(a[e], t);
9852
9853
  }
9853
9854
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9854
9855
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9863,10 +9864,10 @@ var Um = (e = {}) => Hm({
9863
9864
  oldJson: o,
9864
9865
  newJson: s
9865
9866
  };
9866
- }, $m = (e, t, n = {}, r = []) => {
9867
+ }, eh = (e, t, n = {}, r = []) => {
9867
9868
  var i;
9868
9869
  if (!e) return;
9869
- let a = [...Wm, ...(i = n.hiddenKeys) == null ? [] : i];
9870
+ let a = [...Gm, ...(i = n.hiddenKeys) == null ? [] : i];
9870
9871
  Object.keys(e).forEach((i) => {
9871
9872
  var o;
9872
9873
  let s = e[i];
@@ -9879,12 +9880,12 @@ var Um = (e = {}) => Hm({
9879
9880
  cn(s) ? t.push({
9880
9881
  deltaFormat: [...s],
9881
9882
  path: c
9882
- }) : gn(s) && $m(s, t, n, c);
9883
+ }) : gn(s) && eh(s, t, n, c);
9883
9884
  });
9884
- }, eh = (e, t = {}) => {
9885
+ }, th = (e, t = {}) => {
9885
9886
  let n = [];
9886
- return e ? ($m(e, n, t), n) : [];
9887
- }, th = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), nh = (e) => {
9887
+ return e ? (eh(e, n, t), n) : [];
9888
+ }, nh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), rh = (e) => {
9888
9889
  if (e == null || e === "") return "empty";
9889
9890
  if (typeof e == "boolean") return e ? "true" : "false";
9890
9891
  if (typeof e == "string") return e;
@@ -9895,27 +9896,27 @@ var Um = (e = {}) => Hm({
9895
9896
  } catch {
9896
9897
  return String(e);
9897
9898
  }
9898
- }, rh = (e, t = e.length - 1) => {
9899
+ }, ih = (e, t = e.length - 1) => {
9899
9900
  if (t >= e.length) return "Value";
9900
9901
  let n = e[t];
9901
- return !n || hr(n) ? rh(e, t - 1) : th(n);
9902
- }, ih = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9903
- let o = nh(r), s = nh(i), c = a ? ` in ${a}` : "";
9902
+ return !n || hr(n) ? ih(e, t - 1) : nh(n);
9903
+ }, ah = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9904
+ let o = rh(r), s = rh(i), c = a ? ` in ${a}` : "";
9904
9905
  switch (t) {
9905
9906
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9906
9907
  case "created": return `${e} created ${s}${c}.`;
9907
9908
  case "deleted": return `${e} deleted ${o}${c}.`;
9908
9909
  default: return `${e} changed ${n}${c}.`;
9909
9910
  }
9910
- }, ah = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9911
+ }, oh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9911
9912
  let i = {
9912
9913
  headers: [{ cells: [{ value: "Changes" }] }],
9913
9914
  rows: n.map((n) => {
9914
- let { deltaFormat: i, path: a } = n, o = Km(e, a, r), { type: s, before: c, after: l } = Jm(i);
9915
- return { cells: [{ value: ih({
9915
+ let { deltaFormat: i, path: a } = n, o = qm(e, a, r), { type: s, before: c, after: l } = Ym(i);
9916
+ return { cells: [{ value: ah({
9916
9917
  userName: t,
9917
9918
  type: s,
9918
- property: rh(a),
9919
+ property: ih(a),
9919
9920
  before: c,
9920
9921
  after: l,
9921
9922
  sectionName: o
@@ -9923,7 +9924,7 @@ var Um = (e = {}) => Hm({
9923
9924
  })
9924
9925
  };
9925
9926
  return /* @__PURE__ */ S(nu, { table: i });
9926
- }, oh = Object.freeze({
9927
+ }, sh = Object.freeze({
9927
9928
  summary: {
9928
9929
  label: "Summary",
9929
9930
  value: "summary"
@@ -9932,13 +9933,13 @@ var Um = (e = {}) => Hm({
9932
9933
  label: "Compare",
9933
9934
  value: "compare"
9934
9935
  }
9935
- }), sh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9936
- let c = [oh.summary, oh.compare].map(({ label: e, value: t }) => ({
9936
+ }), ch = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9937
+ let c = [sh.summary, sh.compare].map(({ label: e, value: t }) => ({
9937
9938
  label: e,
9938
9939
  value: t
9939
9940
  })), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
9940
9941
  if (!d) return null;
9941
- let { oldJson: f, newJson: p, error: m } = Qm(e, t, n);
9942
+ let { oldJson: f, newJson: p, error: m } = $m(e, t, n);
9942
9943
  return /* @__PURE__ */ S(Es, {
9943
9944
  visible: r,
9944
9945
  centered: !0,
@@ -9951,10 +9952,10 @@ var Um = (e = {}) => Hm({
9951
9952
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9952
9953
  options: c,
9953
9954
  value: l
9954
- }), l.value === "summary" ? /* @__PURE__ */ S(ah, {
9955
+ }), l.value === "summary" ? /* @__PURE__ */ S(oh, {
9955
9956
  userName: e.userName,
9956
9957
  sectionNames: a,
9957
- diffs: eh(d, i),
9958
+ diffs: th(d, i),
9958
9959
  defaultSectionName: o
9959
9960
  }) : m ? /* @__PURE__ */ S("div", {
9960
9961
  style: { padding: 16 },
@@ -9972,7 +9973,7 @@ var Um = (e = {}) => Hm({
9972
9973
  height: "90vh"
9973
9974
  } })
9974
9975
  });
9975
- }, ch = [
9976
+ }, lh = [
9976
9977
  {
9977
9978
  label: "10 / page",
9978
9979
  value: 10
@@ -9985,8 +9986,8 @@ var Um = (e = {}) => Hm({
9985
9986
  label: "50 / page",
9986
9987
  value: 50
9987
9988
  }
9988
- ], lh = (e, t = {}) => {
9989
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = eh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9989
+ ], uh = (e, t = {}) => {
9990
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = th(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9990
9991
  if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
9991
9992
  switch (a) {
9992
9993
  case "Created": return `Created by ${r}`;
@@ -9996,7 +9997,7 @@ var Um = (e = {}) => Hm({
9996
9997
  case "Updated": return `Updated by ${r} (${c})`;
9997
9998
  default: return `Change by ${r}`;
9998
9999
  }
9999
- }, uh = ({ 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: m, isLogDisabled: h }) => {
10000
+ }, dh = ({ 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: m, isLogDisabled: h }) => {
10000
10001
  let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
10001
10002
  if (e.snapshot) {
10002
10003
  f == null || f(e.snapshot, e);
@@ -10015,7 +10016,7 @@ var Um = (e = {}) => Hm({
10015
10016
  return {
10016
10017
  cells: [
10017
10018
  {
10018
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : lh(e, l),
10019
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : uh(e, l),
10019
10020
  type: "Link",
10020
10021
  disabled: n,
10021
10022
  onClick: n ? void 0 : () => w(e),
@@ -10034,8 +10035,8 @@ var Um = (e = {}) => Hm({
10034
10035
  type: "Static"
10035
10036
  },
10036
10037
  {
10037
- value: Zp({
10038
- date: Zm(e),
10038
+ value: Qp({
10039
+ date: Qm(e),
10039
10040
  showTime: !0
10040
10041
  }),
10041
10042
  type: "Static"
@@ -10078,14 +10079,14 @@ var Um = (e = {}) => Hm({
10078
10079
  onChange: (e) => {
10079
10080
  u(Number(e.target.value));
10080
10081
  },
10081
- options: ch,
10082
+ options: lh,
10082
10083
  value: a
10083
10084
  },
10084
10085
  onSelectPage: (e) => d(e),
10085
10086
  small: !0
10086
10087
  } }
10087
10088
  } })
10088
- }), g && y && y.diffs && /* @__PURE__ */ S(sh, {
10089
+ }), g && y && y.diffs && /* @__PURE__ */ S(ch, {
10089
10090
  sectionNames: o,
10090
10091
  isOpen: g,
10091
10092
  onClose: () => _(!1),
@@ -10095,7 +10096,7 @@ var Um = (e = {}) => Hm({
10095
10096
  data: t,
10096
10097
  transformDiffsConfig: l
10097
10098
  })] });
10098
- }, dh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
10099
+ }, fh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
10099
10100
  let i = window.location.href, a = _(i);
10100
10101
  return d(() => {
10101
10102
  a.current = i;
@@ -10118,20 +10119,20 @@ var Um = (e = {}) => Hm({
10118
10119
  });
10119
10120
  };
10120
10121
  }, [e, t]), null;
10121
- }, fh = {
10122
+ }, ph = {
10122
10123
  errorBoundary: "_errorBoundary_hmco0_1",
10123
10124
  sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
10124
10125
  rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
10125
- }, ph = ({ options: e }) => {
10126
+ }, mh = ({ options: e }) => {
10126
10127
  let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Ap();
10127
10128
  if (t) return /* @__PURE__ */ S(t, {});
10128
10129
  if (n || r) return /* @__PURE__ */ S("div", {
10129
- className: b(n ? fh.sidebarErrorBoundary : "", r ? fh.rightSidebarErrorBoundary : ""),
10130
+ className: b(n ? ph.sidebarErrorBoundary : "", r ? ph.rightSidebarErrorBoundary : ""),
10130
10131
  style: a,
10131
10132
  children: o == null ? void 0 : o.unexpectedError
10132
10133
  });
10133
10134
  let s = /* @__PURE__ */ S("div", {
10134
- className: fh.errorBoundary,
10135
+ className: ph.errorBoundary,
10135
10136
  style: a,
10136
10137
  children: /* @__PURE__ */ S(Ks, { message: {
10137
10138
  icon: !0,
@@ -10146,23 +10147,19 @@ var Um = (e = {}) => Hm({
10146
10147
  padding: 0,
10147
10148
  children: s
10148
10149
  }) : s;
10149
- }, mh = ({ children: e, options: t }) => /* @__PURE__ */ S(wi.ErrorBoundary, {
10150
- fallback: /* @__PURE__ */ S(ph, { options: t }),
10150
+ }, hh = ({ children: e, options: t }) => /* @__PURE__ */ S(wi.ErrorBoundary, {
10151
+ fallback: /* @__PURE__ */ S(mh, { options: t }),
10151
10152
  onError: (e, t) => {
10152
10153
  console.error("Error caught by boundary:", e, t);
10153
10154
  },
10154
10155
  children: e
10155
- }), hh = (e, t = {}) => {
10156
- var n, r;
10157
- let i = (n) => /* @__PURE__ */ S(mh, {
10158
- options: t,
10159
- children: /* @__PURE__ */ S(e, { ...n })
10160
- });
10161
- return i.displayName = `WithErrorBoundary(${(n = (r = e.displayName) == null ? e.name : r) == null ? "Component" : n})`, c(i);
10162
- }, gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
10156
+ }), gh = (e, t = {}) => (n) => /* @__PURE__ */ S(hh, {
10157
+ options: t,
10158
+ children: /* @__PURE__ */ S(e, { ...n })
10159
+ }), _h = (e = {}) => (t) => gh(t, e), vh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, yh = (e) => {
10163
10160
  jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10164
- e === Ep.Translations ? jp(e, Op(t)) : jp(e, _h(t) ? t : { ...t });
10161
+ e === Ep.Translations ? jp(e, Op(t)) : jp(e, vh(t) ? t : { ...t });
10165
10162
  });
10166
10163
  };
10167
10164
  //#endregion
10168
- export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, uh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Xp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, mh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, dh as UsageTracker, Yu as dismissToast, Bf as initializeContext, vh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, gh as withChainableErrorBoundary, hh as withErrorBoundary };
10165
+ export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, dh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, Yu as dismissToast, Bf as initializeContext, yh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.1-beta-4",
3
+ "version": "9.5.1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {