@oliasoft-open-source/react-ui-library 10.2.4-beta-1 → 10.3.0-beta-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
@@ -1375,6 +1375,7 @@ export declare interface IRichTextInputProps {
1375
1375
  onChange?: (markdown: string, meta: {
1376
1376
  mentionedIds: string[];
1377
1377
  }) => void;
1378
+ onMention?: (item: IMentionItem) => void;
1378
1379
  placeholder?: string;
1379
1380
  value?: string;
1380
1381
  toolbarComponent?: ReactNode;
@@ -1957,10 +1958,6 @@ declare interface IUnitConfigItem {
1957
1958
  preferredUnit?: string;
1958
1959
  }
1959
1960
 
1960
- declare interface IUnitEntry {
1961
- [key: string]: string;
1962
- }
1963
-
1964
1961
  export declare interface IUnitInputProps {
1965
1962
  name?: string | {
1966
1963
  fieldName?: string;
@@ -2027,14 +2024,6 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
2027
2024
  rows?: IUnitTableRow[];
2028
2025
  }
2029
2026
 
2030
- declare interface IUnitTableBeforeRenderRowParams {
2031
- row: IUnitTableRow;
2032
- rowIndex: number;
2033
- selectedUnits: IUnitEntry;
2034
- storageUnits: IUnitEntry;
2035
- convertValue: (value: TStringNumberNull, unitKey: string) => TStringNumberNull;
2036
- }
2037
-
2038
2027
  declare interface IUnitTableCell {
2039
2028
  autoUnit: boolean;
2040
2029
  unitKey: string;
@@ -2055,7 +2044,7 @@ export declare interface IUnitTableOnChangeEvent extends ITableOnChangeEvent {
2055
2044
  };
2056
2045
  }
2057
2046
 
2058
- export declare interface IUnitTableProps extends Omit<ITableProps, 'table' | 'beforeRenderRow'> {
2047
+ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
2059
2048
  table: IUnitTable;
2060
2049
  unitConfig: IUnitConfigItem[];
2061
2050
  convertBackToStorageUnit?: boolean;
@@ -2069,7 +2058,10 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table' | 'be
2069
2058
  from: number;
2070
2059
  to: number;
2071
2060
  }) => boolean;
2072
- beforeRenderRow?: (params: IUnitTableBeforeRenderRowParams) => IUnitTableRow;
2061
+ beforeRenderRow?: ({ row, rowIndex }: {
2062
+ row: IUnitTableRow;
2063
+ rowIndex: number;
2064
+ }) => IUnitTableRow;
2073
2065
  }
2074
2066
 
2075
2067
  export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
package/dist/index.js CHANGED
@@ -6757,68 +6757,70 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6757
6757
  command: t,
6758
6758
  items: r,
6759
6759
  editable: n.view.dom
6760
- }), pf = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a, testId: o }, s) => {
6761
- var c, l, f, m;
6762
- let g = u(W), y = r || g, b = !!a, x = _(a), w = _(null), T = _(n == null ? "" : n), [E, D] = v(null);
6760
+ }), pf = c(o(({ placeholder: e, onChange: t, onMention: n, value: r, disabled: i, toolbarComponent: a, mentions: o, testId: s }, c) => {
6761
+ var l, f, m, g;
6762
+ let y = u(W), b = i || y, x = !!o, w = _(o), T = _(null), E = _(r == null ? "" : r), [D, O] = v(null);
6763
6763
  d(() => {
6764
- x.current = a;
6765
- }, [a]);
6766
- let O = h(() => [
6764
+ w.current = o;
6765
+ }, [o]);
6766
+ let k = h(() => [
6767
6767
  di,
6768
6768
  fi.configure({ placeholder: e }),
6769
6769
  pi,
6770
- lf(() => x.current, () => ({
6771
- onStart: (e) => D(ff(e)),
6772
- onUpdate: (e) => D(ff(e)),
6773
- onExit: () => D(null),
6770
+ lf(() => w.current, () => ({
6771
+ onStart: (e) => O(ff(e)),
6772
+ onUpdate: (e) => O(ff(e)),
6773
+ onExit: () => O(null),
6774
6774
  onKeyDown: ({ event: e }) => {
6775
6775
  var t, n;
6776
- return (t = (n = w.current) == null ? void 0 : n.onKeyDown(e)) != null && t;
6776
+ return (t = (n = T.current) == null ? void 0 : n.onKeyDown(e)) != null && t;
6777
6777
  }
6778
6778
  }))
6779
- ], []), k = ui({
6780
- extensions: O,
6781
- content: T.current,
6779
+ ], []), A = ui({
6780
+ extensions: k,
6781
+ content: E.current,
6782
6782
  contentType: "markdown",
6783
- editable: !y,
6783
+ editable: !b,
6784
6784
  editorProps: { attributes: { class: uf.editable } },
6785
6785
  onUpdate: ({ editor: e }) => {
6786
6786
  t == null || t(e.getMarkdown(), { mentionedIds: sf(e) });
6787
6787
  }
6788
6788
  });
6789
6789
  return d(() => {
6790
- k && n !== void 0 && n !== k.getMarkdown() && k.commands.setContent(n, {
6790
+ A && r !== void 0 && r !== A.getMarkdown() && A.commands.setContent(r, {
6791
6791
  emitUpdate: !1,
6792
6792
  contentType: "markdown"
6793
6793
  });
6794
- }, [n, k]), d(() => {
6795
- k && k.setEditable(!y);
6796
- }, [y, k]), p(s, () => ({
6797
- clearContent: () => k == null ? void 0 : k.commands.clearContent(!1),
6798
- editor: k,
6799
- getMentionedIds: () => sf(k)
6800
- }), [k]), /* @__PURE__ */ C("div", {
6794
+ }, [r, A]), d(() => {
6795
+ A && A.setEditable(!b);
6796
+ }, [b, A]), p(c, () => ({
6797
+ clearContent: () => A == null ? void 0 : A.commands.clearContent(!1),
6798
+ editor: A,
6799
+ getMentionedIds: () => sf(A)
6800
+ }), [A]), /* @__PURE__ */ C("div", {
6801
6801
  className: uf.richTextInput,
6802
- "data-testid": o,
6802
+ "data-testid": s,
6803
6803
  children: [
6804
6804
  /* @__PURE__ */ S($d, {
6805
- editor: k,
6806
- disabled: y,
6807
- showMentionButton: b && ((c = a == null ? void 0 : a.showMentionButton) == null || c),
6808
- toolbarComponent: i,
6809
- testId: o && `${o}-toolbar`
6805
+ editor: A,
6806
+ disabled: b,
6807
+ showMentionButton: x && ((l = o == null ? void 0 : o.showMentionButton) == null || l),
6808
+ toolbarComponent: a,
6809
+ testId: s && `${s}-toolbar`
6810
6810
  }),
6811
6811
  /* @__PURE__ */ S(li, {
6812
- editor: k,
6813
- "data-testid": o && `${o}-editor`
6812
+ editor: A,
6813
+ "data-testid": s && `${s}-editor`
6814
6814
  }),
6815
- b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(df, {
6816
- ref: w,
6817
- editable: (l = E == null ? void 0 : E.editable) == null ? null : l,
6818
- getRect: (f = E == null ? void 0 : E.clientRect) == null ? null : f,
6819
- items: (m = E == null ? void 0 : E.items) == null ? [] : m,
6820
- onDismiss: () => D(null),
6821
- onSelect: (e) => E == null ? void 0 : E.command(e)
6815
+ x && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(df, {
6816
+ ref: T,
6817
+ editable: (f = D == null ? void 0 : D.editable) == null ? null : f,
6818
+ getRect: (m = D == null ? void 0 : D.clientRect) == null ? null : m,
6819
+ items: (g = D == null ? void 0 : D.items) == null ? [] : g,
6820
+ onDismiss: () => O(null),
6821
+ onSelect: (e) => {
6822
+ n == null || n(e), D == null || D.command(e);
6823
+ }
6822
6824
  }) })
6823
6825
  ]
6824
6826
  });
@@ -8235,29 +8237,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8235
8237
  }, {
8236
8238
  preferredUnits: {},
8237
8239
  storageUnits: {}
8238
- }), Pp = ({ value: e, unitKey: t, selectedUnits: n, storageUnits: r }) => {
8239
- let i = n[t], a = r[t];
8240
- if (!(a && i !== a) || e === null || e === "") return e;
8241
- let { value: o = e } = Mf({
8242
- value: Er(e),
8243
- unitkey: t,
8244
- toUnit: i,
8245
- fromUnit: a
8246
- });
8247
- return o;
8248
- }, Fp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
8240
+ }), Pp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
8249
8241
  ...e,
8250
8242
  cells: e.cells.map((e) => {
8251
8243
  if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
8252
- let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, p = Pp({
8253
- value: s,
8254
- unitKey: o,
8255
- selectedUnits: t,
8256
- storageUnits: n
8257
- }), m = c ? c(p, u) : p;
8244
+ let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, { value: p = s } = Mf({
8245
+ value: Er(s),
8246
+ unitkey: o,
8247
+ toUnit: u,
8248
+ fromUnit: d
8249
+ }), m = f ? p : e.value, h = c ? c(m, u) : m;
8258
8250
  return {
8259
8251
  ...e,
8260
- value: m,
8252
+ value: h,
8261
8253
  enableCosmeticRounding: i,
8262
8254
  enableDisplayRounding: a,
8263
8255
  roundDisplayValue: l,
@@ -8282,7 +8274,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8282
8274
  }
8283
8275
  return e;
8284
8276
  })
8285
- }), Ip = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
8277
+ }), Fp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
8286
8278
  let { translations: i } = jp();
8287
8279
  return e ? e.map((e) => ({
8288
8280
  ...e,
@@ -8312,7 +8304,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8312
8304
  return e;
8313
8305
  })
8314
8306
  })) : [];
8315
- }, Lp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8307
+ }, Ip = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8316
8308
  let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Np(t), m = Ef(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
8317
8309
  g((t) => ({
8318
8310
  ...t,
@@ -8324,18 +8316,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8324
8316
  newUnit: n,
8325
8317
  unitKey: e
8326
8318
  });
8327
- }, y = l(({ row: e, rowIndex: t }) => Fp({
8319
+ }, y = l(({ row: e, rowIndex: t }) => Pp({
8328
8320
  row: s ? s({
8329
8321
  row: e,
8330
- rowIndex: t,
8331
- selectedUnits: h,
8332
- storageUnits: f,
8333
- convertValue: (e, t) => Pp({
8334
- value: e,
8335
- unitKey: t,
8336
- selectedUnits: h,
8337
- storageUnits: f
8338
- })
8322
+ rowIndex: t
8339
8323
  }) : e,
8340
8324
  selectedUnits: h,
8341
8325
  storageUnits: f,
@@ -8343,7 +8327,6 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8343
8327
  enableCosmeticRounding: r,
8344
8328
  enableDisplayRounding: i
8345
8329
  }), [
8346
- s,
8347
8330
  h,
8348
8331
  f,
8349
8332
  n,
@@ -8361,7 +8344,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8361
8344
  }, [t]), /* @__PURE__ */ S(eu, {
8362
8345
  table: {
8363
8346
  ...u,
8364
- headers: Ip({
8347
+ headers: Fp({
8365
8348
  headers: e.headers,
8366
8349
  selectedUnits: h,
8367
8350
  storageUnits: f,
@@ -8372,7 +8355,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8372
8355
  canListReorder: o,
8373
8356
  beforeRenderRow: y
8374
8357
  });
8375
- }, Rp = { settingField: "_settingField_1x02n_1" }, zp = ({ 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 }) => {
8358
+ }, Lp = { settingField: "_settingField_1x02n_1" }, Rp = ({ 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 }) => {
8376
8359
  let { translations: d } = jp(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
8377
8360
  ...r ? [] : [{
8378
8361
  label: d == null ? void 0 : d.allUsers,
@@ -8388,7 +8371,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8388
8371
  }] : []
8389
8372
  ], m = a !== void 0 && o !== void 0 && !un(a, o);
8390
8373
  return /* @__PURE__ */ C("div", {
8391
- className: Rp.settingField,
8374
+ className: Lp.settingField,
8392
8375
  "data-testid": u,
8393
8376
  children: [/* @__PURE__ */ C(bd, {
8394
8377
  justifyContent: "space-between",
@@ -8420,7 +8403,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8420
8403
  children: f(t)
8421
8404
  })]
8422
8405
  });
8423
- }, Bp = { backgroundColor: "var(--color-background-error-muted)" }, Vp = { backgroundColor: "var(--color-background-success-muted)" }, Hp = { backgroundColor: "var(--color-background-warning-muted)" }, Up = {
8406
+ }, zp = { backgroundColor: "var(--color-background-error-muted)" }, Bp = { backgroundColor: "var(--color-background-success-muted)" }, Vp = { backgroundColor: "var(--color-background-warning-muted)" }, Hp = {
8424
8407
  addedBackground: "var(--color-diff-added-background)",
8425
8408
  addedGutterBackground: "var(--color-diff-added-gutter-background)",
8426
8409
  codeFoldBackground: "var(--color-diff-code-fold-background)",
@@ -8439,10 +8422,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8439
8422
  removedGutterBackground: "var(--color-diff-removed-gutter-background)",
8440
8423
  wordAddedBackground: "var(--color-diff-word-added-background)",
8441
8424
  wordRemovedBackground: "var(--color-diff-word-removed-background)"
8442
- }, Wp = {
8425
+ }, Up = {
8443
8426
  variables: {
8444
- light: Up,
8445
- dark: Up
8427
+ light: Hp,
8428
+ dark: Hp
8446
8429
  },
8447
8430
  diffContainer: { minWidth: "unset" },
8448
8431
  codeFoldGutter: {
@@ -8457,10 +8440,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8457
8440
  pre: { opacity: .5 }
8458
8441
  } },
8459
8442
  marker: { pre: { opacity: .4 } }
8460
- }, Gp = { codeOnly: "_codeOnly_1lph2_42" }, Kp = ({ value: e, compareValue: t, splitView: n = !1, showDiffOnly: r = !1, compareMethod: i = Ti.LINES, extraLinesSurroundingDiff: a, hideSummary: o = !0, className: s }) => {
8443
+ }, Wp = { codeOnly: "_codeOnly_1lph2_42" }, Gp = ({ value: e, compareValue: t, splitView: n = !1, showDiffOnly: r = !1, compareMethod: i = Ti.LINES, extraLinesSurroundingDiff: a, hideSummary: o = !0, className: s }) => {
8461
8444
  let c = t !== void 0, l = c ? t : e, u = i !== Ti.WORDS;
8462
8445
  return /* @__PURE__ */ S("div", {
8463
- className: b(s, { [Gp.codeOnly]: !c && !n }),
8446
+ className: b(s, { [Wp.codeOnly]: !c && !n }),
8464
8447
  children: /* @__PURE__ */ S(wi, {
8465
8448
  oldValue: l,
8466
8449
  newValue: e,
@@ -8472,22 +8455,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8472
8455
  hideLineNumbers: !1,
8473
8456
  hideSummary: o,
8474
8457
  disableWorker: !0,
8475
- styles: Wp
8458
+ styles: Up
8476
8459
  })
8477
8460
  });
8478
- }, qp = (e, t) => {
8461
+ }, Kp = (e, t) => {
8479
8462
  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;
8480
8463
  return {
8481
8464
  added: Math.max(0, i),
8482
8465
  removed: Math.max(0, a)
8483
8466
  };
8484
- }, Jp = "split", Yp = "unified", Xp = ({ oldJson: e, newJson: t, viewType: n = Jp }) => {
8467
+ }, qp = "split", Jp = "unified", Yp = ({ oldJson: e, newJson: t, viewType: n = qp }) => {
8485
8468
  var r, i;
8486
8469
  let { translations: a } = jp(), [o, s] = v(n), c = [{
8487
- value: Jp,
8470
+ value: qp,
8488
8471
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
8489
8472
  }, {
8490
- value: Yp,
8473
+ value: Jp,
8491
8474
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
8492
8475
  }];
8493
8476
  d(() => {
@@ -8495,7 +8478,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8495
8478
  }, [n]);
8496
8479
  let l = ({ target: { value: e } }) => {
8497
8480
  s(e);
8498
- }, { added: u, removed: f } = qp(e, t), p = u + f > 3500;
8481
+ }, { added: u, removed: f } = Kp(e, t), p = u + f > 3500;
8499
8482
  return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
8500
8483
  bordered: !0,
8501
8484
  heading: /* @__PURE__ */ C(bd, {
@@ -8525,21 +8508,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8525
8508
  muted: !0,
8526
8509
  children: a == null ? void 0 : a.changesTooLarge
8527
8510
  })
8528
- }) : /* @__PURE__ */ S(Kp, {
8511
+ }) : /* @__PURE__ */ S(Gp, {
8529
8512
  value: t,
8530
8513
  compareValue: e,
8531
- splitView: o === Jp,
8514
+ splitView: o === qp,
8532
8515
  compareMethod: Ti.WORDS,
8533
8516
  showDiffOnly: !0,
8534
8517
  hideSummary: !1
8535
8518
  })
8536
8519
  }) });
8537
- }, Zp = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Qp = (e) => {
8520
+ }, Xp = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Zp = (e) => {
8538
8521
  var t;
8539
8522
  if (e.id != null) return String(e.id);
8540
- let n = Zp((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
8523
+ let n = Xp((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
8541
8524
  return n == null ? "" : String(n);
8542
- }, $p = (e, t) => ({
8525
+ }, Qp = (e, t) => ({
8543
8526
  ...e,
8544
8527
  cells: e.cells.map((e) => ({
8545
8528
  ...e,
@@ -8548,7 +8531,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8548
8531
  ...t
8549
8532
  }
8550
8533
  }))
8551
- }), em = (e, t) => ({
8534
+ }), $p = (e, t) => ({
8552
8535
  ...e,
8553
8536
  cells: e.cells.map((e, n) => {
8554
8537
  var r;
@@ -8557,17 +8540,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8557
8540
  ...e,
8558
8541
  style: {
8559
8542
  ...e.style,
8560
- ...Hp
8543
+ ...Vp
8561
8544
  },
8562
8545
  tooltip: typeof a == "number" ? String(a) : a
8563
8546
  };
8564
8547
  })
8565
- }), tm = (e = [], t = []) => {
8548
+ }), em = (e = [], t = []) => {
8566
8549
  let n = /* @__PURE__ */ new Map();
8567
- for (let e of t) n.set(Qp(e), e);
8568
- let r = new Set(e.map(Qp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
8550
+ for (let e of t) n.set(Zp(e), e);
8551
+ let r = new Set(e.map(Zp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
8569
8552
  for (let e = t.length - 1; e >= 0; e--) {
8570
- let n = t[e], c = Qp(n);
8553
+ let n = t[e], c = Zp(n);
8571
8554
  if (r.has(c)) {
8572
8555
  o = c;
8573
8556
  continue;
@@ -8582,7 +8565,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8582
8565
  a.reverse();
8583
8566
  let c = [];
8584
8567
  for (let t of e) {
8585
- let e = Qp(t), r = i.get(e);
8568
+ let e = Zp(t), r = i.get(e);
8586
8569
  if (r) for (let e of r) c.push({
8587
8570
  status: "deleted",
8588
8571
  row: e
@@ -8602,11 +8585,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8602
8585
  row: e
8603
8586
  });
8604
8587
  return c;
8605
- }, nm = (e) => e.status === "deleted" ? $p(e.row, Bp) : e.status === "added" ? $p(e.row, Vp) : em(e.row, e.compareRow), rm = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
8606
- let i = h(() => tm(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
8588
+ }, tm = (e) => e.status === "deleted" ? Qp(e.row, zp) : e.status === "added" ? Qp(e.row, Bp) : $p(e.row, e.compareRow), nm = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
8589
+ let i = h(() => em(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
8607
8590
  if (!a) return i.map((e) => e.row);
8608
8591
  }, [a, i]), s = l(({ row: e, rowIndex: t }) => {
8609
- let r = i[t], a = r ? nm(r) : e;
8592
+ let r = i[t], a = r ? tm(r) : e;
8610
8593
  return n ? n({
8611
8594
  row: a,
8612
8595
  rowIndex: t
@@ -8625,7 +8608,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8625
8608
  };
8626
8609
  //#endregion
8627
8610
  //#region src/helpers/date.ts
8628
- function im({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8611
+ function rm({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8629
8612
  return e ? new Date(e).toLocaleString(a, {
8630
8613
  year: "numeric",
8631
8614
  month: "short",
@@ -8639,28 +8622,28 @@ function im({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
8639
8622
  }
8640
8623
  //#endregion
8641
8624
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
8642
- function am(e) {
8625
+ function im(e) {
8643
8626
  var t;
8644
8627
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
8645
8628
  if (!n) throw Error("Invalid RegExp");
8646
8629
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
8647
8630
  }
8648
- function om(e) {
8631
+ function am(e) {
8649
8632
  if (typeof e != "object") return e;
8650
8633
  if (e === null) return null;
8651
- if (Array.isArray(e)) return e.map(om);
8634
+ if (Array.isArray(e)) return e.map(am);
8652
8635
  if (e instanceof Date) return new Date(e.getTime());
8653
- if (e instanceof RegExp) return am(e);
8636
+ if (e instanceof RegExp) return im(e);
8654
8637
  let t = {};
8655
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = om(e[n]));
8638
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = am(e[n]));
8656
8639
  return t;
8657
8640
  }
8658
8641
  //#endregion
8659
8642
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
8660
- function sm(e, t) {
8643
+ function om(e, t) {
8661
8644
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
8662
8645
  }
8663
- var cm = (e) => e[e.length - 1], lm = class {
8646
+ var sm = (e) => e[e.length - 1], cm = class {
8664
8647
  setResult(e) {
8665
8648
  return this.result = e, this.hasResult = !0, this;
8666
8649
  }
@@ -8668,16 +8651,16 @@ var cm = (e) => e[e.length - 1], lm = class {
8668
8651
  return this.exiting = !0, this;
8669
8652
  }
8670
8653
  push(e, t) {
8671
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (sm(this.children), cm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8654
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (om(this.children), sm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8672
8655
  }
8673
- }, um = class extends lm {
8656
+ }, lm = class extends cm {
8674
8657
  constructor(e, t) {
8675
8658
  super(), this.left = e, this.right = t, this.pipe = "diff";
8676
8659
  }
8677
8660
  prepareDeltaResult(e) {
8678
8661
  var t, n, r, i;
8679
8662
  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)) {
8680
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : om;
8663
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : am;
8681
8664
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
8682
8665
  }
8683
8666
  return e;
@@ -8685,15 +8668,15 @@ var cm = (e) => e[e.length - 1], lm = class {
8685
8668
  setResult(e) {
8686
8669
  return this.prepareDeltaResult(e), super.setResult(e);
8687
8670
  }
8688
- }, dm = class extends lm {
8671
+ }, um = class extends cm {
8689
8672
  constructor(e, t) {
8690
8673
  super(), this.left = e, this.delta = t, this.pipe = "patch";
8691
8674
  }
8692
- }, fm = class extends lm {
8675
+ }, dm = class extends cm {
8693
8676
  constructor(e) {
8694
8677
  super(), this.delta = e, this.pipe = "reverse";
8695
8678
  }
8696
- }, pm = class {
8679
+ }, fm = class {
8697
8680
  constructor(e) {
8698
8681
  this.name = e, this.filters = [];
8699
8682
  }
@@ -8757,7 +8740,7 @@ var cm = (e) => e[e.length - 1], lm = class {
8757
8740
  }
8758
8741
  }), this);
8759
8742
  }
8760
- }, mm = class {
8743
+ }, pm = class {
8761
8744
  constructor(e) {
8762
8745
  this.selfOptions = e || {}, this.pipes = {};
8763
8746
  }
@@ -8784,7 +8767,7 @@ var cm = (e) => e[e.length - 1], lm = class {
8784
8767
  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);
8785
8768
  return n.hasResult ? n.result : void 0;
8786
8769
  }
8787
- }, hm = (e, t, n, r) => e[n] === t[r], gm = (e, t, n, r) => {
8770
+ }, mm = (e, t, n, r) => e[n] === t[r], hm = (e, t, n, r) => {
8788
8771
  var i, a, o;
8789
8772
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
8790
8773
  for (l = 0; l < s + 1; l++) {
@@ -8800,7 +8783,7 @@ var cm = (e) => e[e.length - 1], lm = class {
8800
8783
  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);
8801
8784
  }
8802
8785
  return d;
8803
- }, _m = (e, t, n, r) => {
8786
+ }, gm = (e, t, n, r) => {
8804
8787
  let i = t.length, a = n.length, o = {
8805
8788
  sequence: [],
8806
8789
  indices1: [],
@@ -8822,11 +8805,11 @@ var cm = (e) => e[e.length - 1], lm = class {
8822
8805
  }
8823
8806
  }
8824
8807
  return o;
8825
- }, vm = { get: (e, t, n, r) => {
8808
+ }, _m = { get: (e, t, n, r) => {
8826
8809
  let i = r || {};
8827
- return _m(gm(e, t, n || hm, i), e, t, i);
8828
- } }, ym = 3;
8829
- function bm(e, t, n, r) {
8810
+ return gm(hm(e, t, n || mm, i), e, t, i);
8811
+ } }, vm = 3;
8812
+ function ym(e, t, n, r) {
8830
8813
  for (let i = 0; i < n; i++) {
8831
8814
  let n = e[i];
8832
8815
  for (let e = 0; e < r; e++) {
@@ -8836,7 +8819,7 @@ function bm(e, t, n, r) {
8836
8819
  }
8837
8820
  return !1;
8838
8821
  }
8839
- function xm(e, t, n, r, i) {
8822
+ function bm(e, t, n, r, i) {
8840
8823
  let a = e[n], o = t[r];
8841
8824
  if (a === o) return !0;
8842
8825
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -8849,15 +8832,15 @@ function xm(e, t, n, r, i) {
8849
8832
  let l = i.hashCache2[r];
8850
8833
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
8851
8834
  }
8852
- var Sm = function(e) {
8835
+ var xm = function(e) {
8853
8836
  var t, n, r, i, a;
8854
8837
  if (!e.leftIsArray) return;
8855
8838
  let o = {
8856
8839
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
8857
8840
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
8858
8841
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
8859
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !bm(f, p, m, h)); s < m && s < h && xm(f, p, s, s, o);) l = s, g = new um(f[l], p[l]), e.push(g, l), s++;
8860
- for (; c + s < m && c + s < h && xm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new um(f[u], p[d]), e.push(g, d), c++;
8842
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !ym(f, p, m, h)); s < m && s < h && bm(f, p, s, s, o);) l = s, g = new lm(f[l], p[l]), e.push(g, l), s++;
8843
+ for (; c + s < m && c + s < h && bm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new lm(f[u], p[d]), e.push(g, d), c++;
8861
8844
  let _;
8862
8845
  if (s + c === m) {
8863
8846
  if (m === h) {
@@ -8881,7 +8864,7 @@ var Sm = function(e) {
8881
8864
  return;
8882
8865
  }
8883
8866
  o.hashCache1 = void 0, o.hashCache2 = void 0;
8884
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = vm.get(v, y, xm, o), x = [];
8867
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = _m.get(v, y, bm, o), x = [];
8885
8868
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
8886
8869
  let t = `_${l}`;
8887
8870
  _[t] = [
@@ -8902,8 +8885,8 @@ var Sm = function(e) {
8902
8885
  if (S && w > 0) for (let n = 0; n < w; n++) {
8903
8886
  u = x[n];
8904
8887
  let r = u === void 0 ? void 0 : _[`_${u}`];
8905
- if (u !== void 0 && r && xm(v, y, u - s, l - s, o)) {
8906
- r.splice(1, 2, l, ym), r.splice(1, 2, l, ym), C || (r[0] = ""), d = l, g = new um(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8888
+ if (u !== void 0 && r && bm(v, y, u - s, l - s, o)) {
8889
+ r.splice(1, 2, l, vm), r.splice(1, 2, l, vm), C || (r[0] = ""), d = l, g = new lm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8907
8890
  break;
8908
8891
  }
8909
8892
  }
@@ -8911,20 +8894,20 @@ var Sm = function(e) {
8911
8894
  } else {
8912
8895
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
8913
8896
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
8914
- d = b.indices2[t] + s, g = new um(f[u], p[d]), e.push(g, d);
8897
+ d = b.indices2[t] + s, g = new lm(f[u], p[d]), e.push(g, d);
8915
8898
  }
8916
8899
  }
8917
8900
  e.setResult(_).exit();
8918
8901
  };
8919
- Sm.filterName = "arrays";
8920
- var Cm = {
8902
+ xm.filterName = "arrays";
8903
+ var Sm = {
8921
8904
  numerically(e, t) {
8922
8905
  return e - t;
8923
8906
  },
8924
8907
  numericallyBy(e) {
8925
8908
  return (t, n) => t[e] - n[e];
8926
8909
  }
8927
- }, wm = function(e) {
8910
+ }, Cm = function(e) {
8928
8911
  var t;
8929
8912
  if (!e.nested) return;
8930
8913
  let n = e.delta;
@@ -8933,7 +8916,7 @@ var Cm = {
8933
8916
  for (r in a) if (r !== "_t") {
8934
8917
  if (r[0] === "_") {
8935
8918
  let e = r;
8936
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === ym)) s.push(Number.parseInt(r.slice(1), 10));
8919
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === vm)) s.push(Number.parseInt(r.slice(1), 10));
8937
8920
  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]}`);
8938
8921
  } else {
8939
8922
  let e = r;
@@ -8946,15 +8929,15 @@ var Cm = {
8946
8929
  });
8947
8930
  }
8948
8931
  }
8949
- for (s = s.sort(Cm.numerically), r = s.length - 1; r >= 0; r--) {
8932
+ for (s = s.sort(Sm.numerically), r = s.length - 1; r >= 0; r--) {
8950
8933
  if (i = s[r], i === void 0) continue;
8951
8934
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8952
- (e == null ? void 0 : e[2]) === ym && c.push({
8935
+ (e == null ? void 0 : e[2]) === vm && c.push({
8953
8936
  index: e[1],
8954
8937
  value: t
8955
8938
  });
8956
8939
  }
8957
- c = c.sort(Cm.numericallyBy("index"));
8940
+ c = c.sort(Sm.numericallyBy("index"));
8958
8941
  let u = c.length;
8959
8942
  for (r = 0; r < u; r++) {
8960
8943
  let e = c[r];
@@ -8964,7 +8947,7 @@ var Cm = {
8964
8947
  if (d > 0) for (r = 0; r < d; r++) {
8965
8948
  let t = l[r];
8966
8949
  if (t === void 0) continue;
8967
- let n = new dm(o[t.index], t.delta);
8950
+ let n = new um(o[t.index], t.delta);
8968
8951
  e.push(n, t.index);
8969
8952
  }
8970
8953
  if (!e.children) {
@@ -8973,8 +8956,8 @@ var Cm = {
8973
8956
  }
8974
8957
  e.exit();
8975
8958
  };
8976
- wm.filterName = "arrays";
8977
- var Tm = function(e) {
8959
+ Cm.filterName = "arrays";
8960
+ var wm = function(e) {
8978
8961
  if (!e || !e.children || e.delta._t !== "a") return;
8979
8962
  let t = e.left, n = e.children.length;
8980
8963
  for (let r = 0; r < n; r++) {
@@ -8985,16 +8968,16 @@ var Tm = function(e) {
8985
8968
  }
8986
8969
  e.setResult(t).exit();
8987
8970
  };
8988
- Tm.filterName = "arraysCollectChildren";
8989
- var Em = function(e) {
8971
+ wm.filterName = "arraysCollectChildren";
8972
+ var Tm = function(e) {
8990
8973
  if (!e.nested) {
8991
8974
  let t = e.delta;
8992
- if (t[2] === ym) {
8975
+ if (t[2] === vm) {
8993
8976
  let n = t;
8994
8977
  e.newName = `_${n[1]}`, e.setResult([
8995
8978
  n[0],
8996
8979
  Number.parseInt(e.childName.substring(1), 10),
8997
- ym
8980
+ vm
8998
8981
  ]).exit();
8999
8982
  }
9000
8983
  return;
@@ -9004,20 +8987,20 @@ var Em = function(e) {
9004
8987
  let n = t;
9005
8988
  for (let t in n) {
9006
8989
  if (t === "_t") continue;
9007
- let r = new fm(n[t]);
8990
+ let r = new dm(n[t]);
9008
8991
  e.push(r, t);
9009
8992
  }
9010
8993
  e.exit();
9011
8994
  };
9012
- Em.filterName = "arrays";
9013
- var Dm = (e, t, n) => {
8995
+ Tm.filterName = "arrays";
8996
+ var Em = (e, t, n) => {
9014
8997
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
9015
8998
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
9016
8999
  let r = +t;
9017
9000
  for (let n in e) {
9018
9001
  let i = e[n];
9019
9002
  if (Array.isArray(i)) {
9020
- if (i[2] === ym) {
9003
+ if (i[2] === vm) {
9021
9004
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
9022
9005
  if (a === +t) return e;
9023
9006
  e <= r && a > r ? r++ : e >= r && a < r && r--;
@@ -9025,7 +9008,7 @@ var Dm = (e, t, n) => {
9025
9008
  }
9026
9009
  }
9027
9010
  return r;
9028
- }, Om = (e) => {
9011
+ }, Dm = (e) => {
9029
9012
  if (!e || !e.children) return;
9030
9013
  let t = e.delta;
9031
9014
  if (t._t !== "a") return;
@@ -9036,22 +9019,22 @@ var Dm = (e, t, n) => {
9036
9019
  let a = r.newName;
9037
9020
  if (a === void 0) {
9038
9021
  if (r.childName === void 0) throw Error("child.childName is undefined");
9039
- a = Dm(n, r.childName, r.result);
9022
+ a = Em(n, r.childName, r.result);
9040
9023
  }
9041
9024
  i[a] !== r.result && (i[a] = r.result);
9042
9025
  }
9043
9026
  e.setResult(i).exit();
9044
9027
  };
9045
- Om.filterName = "arraysCollectChildren";
9028
+ Dm.filterName = "arraysCollectChildren";
9046
9029
  //#endregion
9047
9030
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
9048
- var km = function(e) {
9031
+ var Om = function(e) {
9049
9032
  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();
9050
9033
  };
9051
- km.filterName = "dates";
9034
+ Om.filterName = "dates";
9052
9035
  //#endregion
9053
9036
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
9054
- var Am = /* @__PURE__ */ new Set(["__proto__"]), jm = (e) => {
9037
+ var km = /* @__PURE__ */ new Set(["__proto__"]), Am = (e) => {
9055
9038
  if (!e || !e.children) return;
9056
9039
  let t = e.children.length, n = e.result;
9057
9040
  for (let r = 0; r < t; r++) {
@@ -9063,18 +9046,18 @@ var Am = /* @__PURE__ */ new Set(["__proto__"]), jm = (e) => {
9063
9046
  }
9064
9047
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
9065
9048
  };
9066
- jm.filterName = "collectChildren";
9067
- var Mm = (e) => {
9049
+ Am.filterName = "collectChildren";
9050
+ var jm = (e) => {
9068
9051
  var t;
9069
9052
  if (e.leftIsArray || e.leftType !== "object") return;
9070
9053
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
9071
9054
  for (let t in n) {
9072
9055
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
9073
- let a = new um(n[t], r[t]);
9056
+ let a = new lm(n[t], r[t]);
9074
9057
  e.push(a, t);
9075
9058
  }
9076
9059
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
9077
- let n = new um(void 0, r[t]);
9060
+ let n = new lm(void 0, r[t]);
9078
9061
  e.push(n, t);
9079
9062
  }
9080
9063
  if (!e.children || e.children.length === 0) {
@@ -9083,15 +9066,15 @@ var Mm = (e) => {
9083
9066
  }
9084
9067
  e.exit();
9085
9068
  };
9086
- Mm.filterName = "objects";
9087
- var Nm = function(e) {
9069
+ jm.filterName = "objects";
9070
+ var Mm = function(e) {
9088
9071
  if (!e.nested) return;
9089
9072
  let t = e.delta;
9090
9073
  if (t._t) return;
9091
9074
  let n = t, r = !1;
9092
9075
  for (let t in n) {
9093
- if (Am.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
9094
- let i = e.left, a = new dm(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
9076
+ if (km.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
9077
+ let i = e.left, a = new um(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
9095
9078
  e.push(a, t), r = !0;
9096
9079
  }
9097
9080
  if (!r) {
@@ -9100,8 +9083,8 @@ var Nm = function(e) {
9100
9083
  }
9101
9084
  e.exit();
9102
9085
  };
9103
- Nm.filterName = "objects";
9104
- var Pm = function(e) {
9086
+ Mm.filterName = "objects";
9087
+ var Nm = function(e) {
9105
9088
  if (!e || !e.children || e.delta._t) return;
9106
9089
  if (e.left === null || typeof e.left != "object") {
9107
9090
  e.setResult(e.left).exit();
@@ -9112,17 +9095,17 @@ var Pm = function(e) {
9112
9095
  let n = e.children[r];
9113
9096
  if (n === void 0) continue;
9114
9097
  let i = n.childName;
9115
- Am.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
9098
+ km.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
9116
9099
  }
9117
9100
  e.setResult(t).exit();
9118
9101
  };
9119
- Pm.filterName = "collectChildren";
9120
- var Fm = function(e) {
9102
+ Nm.filterName = "collectChildren";
9103
+ var Pm = function(e) {
9121
9104
  if (!e.nested || e.delta._t) return;
9122
9105
  let t = e.delta, n = !1;
9123
9106
  for (let r in t) {
9124
- if (Am.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
9125
- let i = new fm(t[r]);
9107
+ if (km.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
9108
+ let i = new dm(t[r]);
9126
9109
  e.push(i, r), n = !0;
9127
9110
  }
9128
9111
  if (!n) {
@@ -9131,25 +9114,25 @@ var Fm = function(e) {
9131
9114
  }
9132
9115
  e.exit();
9133
9116
  };
9134
- Fm.filterName = "objects";
9135
- var Im = (e) => {
9117
+ Pm.filterName = "objects";
9118
+ var Fm = (e) => {
9136
9119
  if (!e || !e.children || e.delta._t) return;
9137
9120
  let t = e.children.length, n = {};
9138
9121
  for (let r = 0; r < t; r++) {
9139
9122
  let t = e.children[r];
9140
9123
  if (t === void 0) continue;
9141
9124
  let i = t.childName;
9142
- Am.has(i) || n[i] !== t.result && (n[i] = t.result);
9125
+ km.has(i) || n[i] !== t.result && (n[i] = t.result);
9143
9126
  }
9144
9127
  e.setResult(n).exit();
9145
9128
  };
9146
- Im.filterName = "collectChildren";
9129
+ Fm.filterName = "collectChildren";
9147
9130
  //#endregion
9148
9131
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
9149
- var Lm = 2, Rm = 60, zm = null;
9150
- function Bm(e, t) {
9132
+ var Im = 2, Lm = 60, Rm = null;
9133
+ function zm(e, t) {
9151
9134
  var n;
9152
- if (!zm) {
9135
+ if (!Rm) {
9153
9136
  let r;
9154
9137
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
9155
9138
  else {
@@ -9157,7 +9140,7 @@ function Bm(e, t) {
9157
9140
  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.");
9158
9141
  throw e.diff_match_patch_not_found = !0, e;
9159
9142
  }
9160
- zm = {
9143
+ Rm = {
9161
9144
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
9162
9145
  patch: (e, t) => {
9163
9146
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -9169,17 +9152,17 @@ function Bm(e, t) {
9169
9152
  }
9170
9153
  };
9171
9154
  }
9172
- return zm;
9155
+ return Rm;
9173
9156
  }
9174
- var Vm = function(e) {
9157
+ var Bm = function(e) {
9175
9158
  var t, n;
9176
9159
  if (e.leftType !== "string") return;
9177
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Rm;
9160
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Lm;
9178
9161
  if (r.length < a || i.length < a) {
9179
9162
  e.setResult([r, i]).exit();
9180
9163
  return;
9181
9164
  }
9182
- let o = Bm(e.options);
9165
+ let o = zm(e.options);
9183
9166
  if (!o) {
9184
9167
  e.setResult([r, i]).exit();
9185
9168
  return;
@@ -9188,19 +9171,19 @@ var Vm = function(e) {
9188
9171
  e.setResult([
9189
9172
  s(r, i),
9190
9173
  0,
9191
- Lm
9174
+ Im
9192
9175
  ]).exit();
9193
9176
  };
9194
- Vm.filterName = "texts";
9195
- var Hm = function(e) {
9177
+ Bm.filterName = "texts";
9178
+ var Vm = function(e) {
9196
9179
  if (e.nested) return;
9197
9180
  let t = e.delta;
9198
- if (t[2] !== Lm) return;
9199
- let n = t, r = Bm(e.options, !0).patch;
9181
+ if (t[2] !== Im) return;
9182
+ let n = t, r = zm(e.options, !0).patch;
9200
9183
  e.setResult(r(e.left, n[0])).exit();
9201
9184
  };
9202
- Hm.filterName = "texts";
9203
- var Um = (e) => {
9185
+ Vm.filterName = "texts";
9186
+ var Hm = (e) => {
9204
9187
  var t, n, r;
9205
9188
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
9206
9189
  for (let e = 0; e < a.length; e++) {
@@ -9221,21 +9204,21 @@ var Um = (e) => {
9221
9204
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
9222
9205
  }
9223
9206
  return a.join("\n");
9224
- }, Wm = function(e) {
9207
+ }, Um = function(e) {
9225
9208
  if (e.nested) return;
9226
9209
  let t = e.delta;
9227
- if (t[2] !== Lm) return;
9210
+ if (t[2] !== Im) return;
9228
9211
  let n = t;
9229
9212
  e.setResult([
9230
- Um(n[0]),
9213
+ Hm(n[0]),
9231
9214
  0,
9232
- Lm
9215
+ Im
9233
9216
  ]).exit();
9234
9217
  };
9235
- Wm.filterName = "texts";
9218
+ Um.filterName = "texts";
9236
9219
  //#endregion
9237
9220
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
9238
- var Gm = function(e) {
9221
+ var Wm = function(e) {
9239
9222
  if (e.left === e.right) {
9240
9223
  e.setResult(void 0).exit();
9241
9224
  return;
@@ -9268,8 +9251,8 @@ var Gm = function(e) {
9268
9251
  }
9269
9252
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
9270
9253
  };
9271
- Gm.filterName = "trivial";
9272
- var Km = function(e) {
9254
+ Wm.filterName = "trivial";
9255
+ var Gm = function(e) {
9273
9256
  if (e.delta === void 0) {
9274
9257
  e.setResult(e.left).exit();
9275
9258
  return;
@@ -9293,8 +9276,8 @@ var Km = function(e) {
9293
9276
  }
9294
9277
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
9295
9278
  };
9296
- Km.filterName = "trivial";
9297
- var qm = function(e) {
9279
+ Gm.filterName = "trivial";
9280
+ var Km = function(e) {
9298
9281
  if (e.delta === void 0) {
9299
9282
  e.setResult(e.delta).exit();
9300
9283
  return;
@@ -9315,36 +9298,36 @@ var qm = function(e) {
9315
9298
  }
9316
9299
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
9317
9300
  };
9318
- qm.filterName = "trivial";
9301
+ Km.filterName = "trivial";
9319
9302
  //#endregion
9320
9303
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
9321
- var Jm = class {
9304
+ var qm = class {
9322
9305
  constructor(e) {
9323
- this.processor = new mm(e), this.processor.pipe(new pm("diff").append(jm, Gm, km, Vm, Mm, Sm).shouldHaveResult()), this.processor.pipe(new pm("patch").append(Pm, Tm, Km, Hm, Nm, wm).shouldHaveResult()), this.processor.pipe(new pm("reverse").append(Im, Om, qm, Wm, Fm, Em).shouldHaveResult());
9306
+ this.processor = new pm(e), this.processor.pipe(new fm("diff").append(Am, Wm, Om, Bm, jm, xm).shouldHaveResult()), this.processor.pipe(new fm("patch").append(Nm, wm, Gm, Vm, Mm, Cm).shouldHaveResult()), this.processor.pipe(new fm("reverse").append(Fm, Dm, Km, Um, Pm, Tm).shouldHaveResult());
9324
9307
  }
9325
9308
  options(e) {
9326
9309
  return this.processor.options(e);
9327
9310
  }
9328
9311
  diff(e, t) {
9329
- return this.processor.process(new um(e, t));
9312
+ return this.processor.process(new lm(e, t));
9330
9313
  }
9331
9314
  patch(e, t) {
9332
- return this.processor.process(new dm(e, t));
9315
+ return this.processor.process(new um(e, t));
9333
9316
  }
9334
9317
  reverse(e) {
9335
- return this.processor.process(new fm(e));
9318
+ return this.processor.process(new dm(e));
9336
9319
  }
9337
9320
  unpatch(e, t) {
9338
9321
  return this.patch(e, this.reverse(t));
9339
9322
  }
9340
9323
  clone(e) {
9341
- return om(e);
9324
+ return am(e);
9342
9325
  }
9343
9326
  };
9344
9327
  //#endregion
9345
9328
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
9346
- function Ym(e) {
9347
- return new Jm(e);
9329
+ function Jm(e) {
9330
+ return new qm(e);
9348
9331
  }
9349
9332
  //#endregion
9350
9333
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -9906,46 +9889,46 @@ $.Diff = function(e, t) {
9906
9889
  };
9907
9890
  //#endregion
9908
9891
  //#region src/components/audit-log/create-diff-patcher.tsx
9909
- var Xm = (e = {}) => Ym({
9892
+ var Ym = (e = {}) => Jm({
9910
9893
  ...e,
9911
9894
  textDiff: {
9912
9895
  diffMatchPatch: $,
9913
9896
  minLength: 120
9914
9897
  },
9915
9898
  cloneDiffValues: !0
9916
- }), Zm = ["user", "unittemplate"], Qm = Xm(), $m = (e, t, n) => {
9899
+ }), Xm = ["user", "unittemplate"], Zm = Ym(), Qm = (e, t, n) => {
9917
9900
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
9918
9901
  for (let e = t.length - 1; e >= 0; e--) {
9919
9902
  let n = r[t[e]];
9920
9903
  if (n) return n;
9921
9904
  }
9922
9905
  return n || "";
9923
- }, eh = (e) => {
9906
+ }, $m = (e) => {
9924
9907
  let t = (e) => _r(e) ? kr(e) : String(e);
9925
9908
  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);
9926
- }, th = (e) => {
9909
+ }, eh = (e) => {
9927
9910
  switch (e.length) {
9928
9911
  case 1: {
9929
9912
  let [t] = e;
9930
9913
  return {
9931
9914
  type: "created",
9932
9915
  before: "",
9933
- after: eh(t)
9916
+ after: $m(t)
9934
9917
  };
9935
9918
  }
9936
9919
  case 2: {
9937
9920
  let [t, n] = e;
9938
9921
  return {
9939
9922
  type: "modified",
9940
- before: eh(t),
9941
- after: eh(n)
9923
+ before: $m(t),
9924
+ after: $m(n)
9942
9925
  };
9943
9926
  }
9944
9927
  case 3: {
9945
9928
  let [t] = e;
9946
9929
  return {
9947
9930
  type: "deleted",
9948
- before: eh(t),
9931
+ before: $m(t),
9949
9932
  after: ""
9950
9933
  };
9951
9934
  }
@@ -9955,15 +9938,15 @@ var Xm = (e = {}) => Ym({
9955
9938
  after: ""
9956
9939
  };
9957
9940
  }
9958
- }, nh = (e) => Array.isArray(e), rh = (e, t) => t ? nh(t) ? t.length === 0 ? e : t.reduce((e, t) => Qm.unpatch(tn(e), tn(t)), tn(e)) : Qm.unpatch(tn(e), tn(t)) : e, ih = (e) => e.createdAt || e.date, ah = (e, t, n) => {
9959
- let r = ih(e);
9941
+ }, th = (e) => Array.isArray(e), nh = (e, t) => t ? th(t) ? t.length === 0 ? e : t.reduce((e, t) => Zm.unpatch(tn(e), tn(t)), tn(e)) : Zm.unpatch(tn(e), tn(t)) : e, rh = (e) => e.createdAt || e.date, ih = (e, t, n) => {
9942
+ let r = rh(e);
9960
9943
  if (!r) return {
9961
9944
  oldJson: "",
9962
9945
  newJson: "",
9963
9946
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9964
9947
  };
9965
9948
  let i = t.filter((e) => {
9966
- let t = ih(e);
9949
+ let t = rh(e);
9967
9950
  return !!(e.diffs && t && t >= r);
9968
9951
  }), a = Array.from({ length: i.length + 1 });
9969
9952
  a[0] = tn(n);
@@ -9976,7 +9959,7 @@ var Xm = (e = {}) => Ym({
9976
9959
  a[e + 1] = a[e];
9977
9960
  continue;
9978
9961
  }
9979
- a[e + 1] = rh(a[e], t);
9962
+ a[e + 1] = nh(a[e], t);
9980
9963
  }
9981
9964
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9982
9965
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9991,10 +9974,10 @@ var Xm = (e = {}) => Ym({
9991
9974
  oldJson: o,
9992
9975
  newJson: s
9993
9976
  };
9994
- }, oh = (e, t, n = {}, r = []) => {
9977
+ }, ah = (e, t, n = {}, r = []) => {
9995
9978
  var i;
9996
9979
  if (!e) return;
9997
- let a = [...Zm, ...(i = n.hiddenKeys) == null ? [] : i];
9980
+ let a = [...Xm, ...(i = n.hiddenKeys) == null ? [] : i];
9998
9981
  Object.keys(e).forEach((i) => {
9999
9982
  var o;
10000
9983
  let s = e[i];
@@ -10007,12 +9990,12 @@ var Xm = (e = {}) => Ym({
10007
9990
  sn(s) ? t.push({
10008
9991
  deltaFormat: [...s],
10009
9992
  path: c
10010
- }) : hn(s) && oh(s, t, n, c);
9993
+ }) : hn(s) && ah(s, t, n, c);
10011
9994
  });
10012
- }, sh = (e, t = {}) => {
9995
+ }, oh = (e, t = {}) => {
10013
9996
  let n = [];
10014
- return e ? (oh(e, n, t), n) : [];
10015
- }, ch = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), lh = (e) => {
9997
+ return e ? (ah(e, n, t), n) : [];
9998
+ }, sh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), ch = (e) => {
10016
9999
  if (e == null || e === "") return "empty";
10017
10000
  if (typeof e == "boolean") return e ? "true" : "false";
10018
10001
  if (typeof e == "string") return e;
@@ -10023,27 +10006,27 @@ var Xm = (e = {}) => Ym({
10023
10006
  } catch {
10024
10007
  return String(e);
10025
10008
  }
10026
- }, uh = (e, t = e.length - 1) => {
10009
+ }, lh = (e, t = e.length - 1) => {
10027
10010
  if (t >= e.length) return "Value";
10028
10011
  let n = e[t];
10029
- return !n || mr(n) ? uh(e, t - 1) : ch(n);
10030
- }, dh = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
10031
- let o = lh(r), s = lh(i), c = a ? ` in ${a}` : "";
10012
+ return !n || mr(n) ? lh(e, t - 1) : sh(n);
10013
+ }, uh = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
10014
+ let o = ch(r), s = ch(i), c = a ? ` in ${a}` : "";
10032
10015
  switch (t) {
10033
10016
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
10034
10017
  case "created": return `${e} created ${s}${c}.`;
10035
10018
  case "deleted": return `${e} deleted ${o}${c}.`;
10036
10019
  default: return `${e} changed ${n}${c}.`;
10037
10020
  }
10038
- }, fh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
10021
+ }, dh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
10039
10022
  let i = {
10040
10023
  headers: [{ cells: [{ value: "Changes" }] }],
10041
10024
  rows: n.map((n) => {
10042
- let { deltaFormat: i, path: a } = n, o = $m(e, a, r), { type: s, before: c, after: l } = th(i);
10043
- return { cells: [{ value: dh({
10025
+ let { deltaFormat: i, path: a } = n, o = Qm(e, a, r), { type: s, before: c, after: l } = eh(i);
10026
+ return { cells: [{ value: uh({
10044
10027
  userName: t,
10045
10028
  type: s,
10046
- property: uh(a),
10029
+ property: lh(a),
10047
10030
  before: c,
10048
10031
  after: l,
10049
10032
  sectionName: o
@@ -10051,7 +10034,7 @@ var Xm = (e = {}) => Ym({
10051
10034
  })
10052
10035
  };
10053
10036
  return /* @__PURE__ */ S(eu, { table: i });
10054
- }, ph = Object.freeze({
10037
+ }, fh = Object.freeze({
10055
10038
  summary: {
10056
10039
  label: "Summary",
10057
10040
  value: "summary"
@@ -10060,13 +10043,13 @@ var Xm = (e = {}) => Ym({
10060
10043
  label: "Compare",
10061
10044
  value: "compare"
10062
10045
  }
10063
- }), mh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
10064
- let c = [ph.summary, ph.compare].map(({ label: e, value: t }) => ({
10046
+ }), ph = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
10047
+ let c = [fh.summary, fh.compare].map(({ label: e, value: t }) => ({
10065
10048
  label: e,
10066
10049
  value: t
10067
10050
  })), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
10068
10051
  if (!d) return null;
10069
- let { oldJson: f, newJson: p, error: m } = ah(e, t, n);
10052
+ let { oldJson: f, newJson: p, error: m } = ih(e, t, n);
10070
10053
  return /* @__PURE__ */ S(Ts, {
10071
10054
  visible: r,
10072
10055
  centered: !0,
@@ -10079,15 +10062,15 @@ var Xm = (e = {}) => Ym({
10079
10062
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
10080
10063
  options: c,
10081
10064
  value: l
10082
- }), l.value === "summary" ? /* @__PURE__ */ S(fh, {
10065
+ }), l.value === "summary" ? /* @__PURE__ */ S(dh, {
10083
10066
  userName: e.userName,
10084
10067
  sectionNames: a,
10085
- diffs: sh(d, i),
10068
+ diffs: oh(d, i),
10086
10069
  defaultSectionName: o
10087
10070
  }) : m ? /* @__PURE__ */ S("div", {
10088
10071
  style: { padding: 16 },
10089
10072
  children: m
10090
- }) : /* @__PURE__ */ S(Xp, {
10073
+ }) : /* @__PURE__ */ S(Yp, {
10091
10074
  oldJson: f,
10092
10075
  newJson: p
10093
10076
  })] }),
@@ -10100,7 +10083,7 @@ var Xm = (e = {}) => Ym({
10100
10083
  height: "90vh"
10101
10084
  } })
10102
10085
  });
10103
- }, hh = [
10086
+ }, mh = [
10104
10087
  {
10105
10088
  label: "10 / page",
10106
10089
  value: 10
@@ -10113,8 +10096,8 @@ var Xm = (e = {}) => Ym({
10113
10096
  label: "50 / page",
10114
10097
  value: 50
10115
10098
  }
10116
- ], gh = (e, t = {}) => {
10117
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = sh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
10099
+ ], hh = (e, t = {}) => {
10100
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = oh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
10118
10101
  if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
10119
10102
  switch (a) {
10120
10103
  case "Created": return `Created by ${r}`;
@@ -10125,7 +10108,7 @@ var Xm = (e = {}) => Ym({
10125
10108
  case "Updated": return `Updated by ${r} (${c})`;
10126
10109
  default: return `Change by ${r}`;
10127
10110
  }
10128
- }, _h = ({ 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, onClickNavigateToDesgin: g }) => {
10111
+ }, gh = ({ 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, onClickNavigateToDesgin: g }) => {
10129
10112
  let [_, y] = v(!1), [b, w] = v(null), T = (e) => {
10130
10113
  if (e.snapshot) {
10131
10114
  f == null || f(e.snapshot, e);
@@ -10140,7 +10123,7 @@ var Xm = (e = {}) => Ym({
10140
10123
  { value: "Date" }
10141
10124
  ] }], D = e.map((e) => {
10142
10125
  var t;
10143
- let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` : gh(e, l), i = (e.operation === "Restored" || e.operation === "Cloned") && g;
10126
+ let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` : hh(e, l), i = (e.operation === "Restored" || e.operation === "Cloned") && g;
10144
10127
  return {
10145
10128
  cells: [
10146
10129
  {
@@ -10163,8 +10146,8 @@ var Xm = (e = {}) => Ym({
10163
10146
  type: "Static"
10164
10147
  },
10165
10148
  {
10166
- value: im({
10167
- date: ih(e),
10149
+ value: rm({
10150
+ date: rh(e),
10168
10151
  showTime: !0
10169
10152
  }),
10170
10153
  type: "Static"
@@ -10207,14 +10190,14 @@ var Xm = (e = {}) => Ym({
10207
10190
  onChange: (e) => {
10208
10191
  u(Number(e.target.value));
10209
10192
  },
10210
- options: hh,
10193
+ options: mh,
10211
10194
  value: a
10212
10195
  },
10213
10196
  onSelectPage: (e) => d(e),
10214
10197
  small: !0
10215
10198
  } }
10216
10199
  } })
10217
- }), _ && b && b.diffs && /* @__PURE__ */ S(mh, {
10200
+ }), _ && b && b.diffs && /* @__PURE__ */ S(ph, {
10218
10201
  sectionNames: o,
10219
10202
  isOpen: _,
10220
10203
  onClose: () => y(!1),
@@ -10224,7 +10207,7 @@ var Xm = (e = {}) => Ym({
10224
10207
  data: t,
10225
10208
  transformDiffsConfig: l
10226
10209
  })] });
10227
- }, vh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
10210
+ }, _h = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
10228
10211
  let i = window.location.href, a = _(i);
10229
10212
  return d(() => {
10230
10213
  a.current = i;
@@ -10247,20 +10230,20 @@ var Xm = (e = {}) => Ym({
10247
10230
  });
10248
10231
  };
10249
10232
  }, [e, t]), null;
10250
- }, yh = {
10233
+ }, vh = {
10251
10234
  errorBoundary: "_errorBoundary_hmco0_1",
10252
10235
  sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
10253
10236
  rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
10254
- }, bh = ({ options: e }) => {
10237
+ }, yh = ({ options: e }) => {
10255
10238
  let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = jp();
10256
10239
  if (t) return /* @__PURE__ */ S(t, {});
10257
10240
  if (n || r) return /* @__PURE__ */ S("div", {
10258
- className: b(n ? yh.sidebarErrorBoundary : "", r ? yh.rightSidebarErrorBoundary : ""),
10241
+ className: b(n ? vh.sidebarErrorBoundary : "", r ? vh.rightSidebarErrorBoundary : ""),
10259
10242
  style: a,
10260
10243
  children: o == null ? void 0 : o.unexpectedError
10261
10244
  });
10262
10245
  let s = /* @__PURE__ */ S("div", {
10263
- className: yh.errorBoundary,
10246
+ className: vh.errorBoundary,
10264
10247
  style: a,
10265
10248
  children: /* @__PURE__ */ S(Gs, { message: {
10266
10249
  icon: !0,
@@ -10275,19 +10258,19 @@ var Xm = (e = {}) => Ym({
10275
10258
  padding: 0,
10276
10259
  children: s
10277
10260
  }) : s;
10278
- }, xh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
10279
- fallback: /* @__PURE__ */ S(bh, { options: t }),
10261
+ }, bh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
10262
+ fallback: /* @__PURE__ */ S(yh, { options: t }),
10280
10263
  onError: (e, t) => {
10281
10264
  console.error("Error caught by boundary:", e, t);
10282
10265
  },
10283
10266
  children: e
10284
- }), Sh = (e, t = {}) => (n) => /* @__PURE__ */ S(xh, {
10267
+ }), xh = (e, t = {}) => (n) => /* @__PURE__ */ S(bh, {
10285
10268
  options: t,
10286
10269
  children: /* @__PURE__ */ S(e, { ...n })
10287
- }), Ch = (e = {}) => (t) => Sh(t, e), wh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Th = (e) => {
10270
+ }), Sh = (e = {}) => (t) => xh(t, e), Ch = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, wh = (e) => {
10288
10271
  Mp(Dp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10289
- e === Dp.Translations ? Mp(e, kp(t)) : Mp(e, wh(t) ? t : { ...t });
10272
+ e === Dp.Translations ? Mp(e, kp(t)) : Mp(e, Ch(t) ? t : { ...t });
10290
10273
  });
10291
10274
  };
10292
10275
  //#endregion
10293
- export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, _h as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Kp as DiffCode, rm as DiffTable, Xp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, rp as ElementType, du as Empty, xh as ErrorBoundary, yd as Field, hd as FileButton, bs as FileInput, bd as Flex, Sd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, yl as NumberInput, Wd as OptionDropdown, Kd as Page, sl as Pagination, lp as PopConfirm, So as Popover, qd as Portal, Yd as PrintHeader, Os as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, el as Select, zp as SettingField, xf as SideBar, Cf as Skeleton, kl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, eu as Table, md as TableImportExport, Xf as Tabs, Yo as Text, $f as TextArea, Zf as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, mp as Tree, Ep as TreeTable, Di as TriggerType, Uf as UnitInput, qf as UnitSlider, Lp as UnitTable, vh as UsageTracker, Yu as dismissToast, Bf as initializeContext, Th as initializeGuiLibrary, vs as readFile, Ju as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, Ch as withChainableErrorBoundary, Sh as withErrorBoundary };
10276
+ export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, gh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Gp as DiffCode, nm as DiffTable, Yp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, rp as ElementType, du as Empty, bh as ErrorBoundary, yd as Field, hd as FileButton, bs as FileInput, bd as Flex, Sd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, yl as NumberInput, Wd as OptionDropdown, Kd as Page, sl as Pagination, lp as PopConfirm, So as Popover, qd as Portal, Yd as PrintHeader, Os as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, el as Select, Rp as SettingField, xf as SideBar, Cf as Skeleton, kl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, eu as Table, md as TableImportExport, Xf as Tabs, Yo as Text, $f as TextArea, Zf as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, mp as Tree, Ep as TreeTable, Di as TriggerType, Uf as UnitInput, qf as UnitSlider, Ip as UnitTable, _h as UsageTracker, Yu as dismissToast, Bf as initializeContext, wh as initializeGuiLibrary, vs as readFile, Ju as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, Sh as withChainableErrorBoundary, xh as withErrorBoundary };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.2.4-beta-1",
3
+ "version": "10.3.0-beta-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": {