@oliasoft-open-source/react-ui-library 9.1.1-beta-1 → 9.2.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/components/diff-table/build-diff-rows.d.ts +26 -0
- package/dist/components/diff-table/build-diff-rows.d.ts.map +1 -0
- package/dist/components/diff-table/diff-table.d.ts +12 -0
- package/dist/components/diff-table/diff-table.d.ts.map +1 -0
- package/dist/components/diff-table/diff-table.stories.d.ts +21 -0
- package/dist/components/diff-table/diff-table.stories.d.ts.map +1 -0
- package/dist/components/table/table.viewdata.d.ts +2 -1
- package/dist/components/table/table.viewdata.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +244 -158
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TRowType, TRowsType } from '../table/table.viewdata';
|
|
2
|
+
export type TDiffRowStatus = 'added' | 'deleted' | 'matched';
|
|
3
|
+
export type TDiffIndexEntry = {
|
|
4
|
+
status: TDiffRowStatus;
|
|
5
|
+
row: TRowType;
|
|
6
|
+
compareRow?: TRowType;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Returns the identity key for a row (`id` when set, otherwise first cell value stringified).
|
|
10
|
+
*/
|
|
11
|
+
export declare const getRowKey: (row: TRowType) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Builds a lightweight merge index without cloning/annotating cells.
|
|
14
|
+
* Identity is `row.id` when set, otherwise the first cell value. Deleted compare rows
|
|
15
|
+
* are inserted before their next still-present successor from compareRows (or appended if none).
|
|
16
|
+
*/
|
|
17
|
+
export declare const buildDiffIndex: (rows?: TRowsType, compareRows?: TRowsType) => TDiffIndexEntry[];
|
|
18
|
+
/**
|
|
19
|
+
* Builds an annotated table row from a diff index entry (styles / tooltips).
|
|
20
|
+
*/
|
|
21
|
+
export declare const buildAnnotatedRow: (entry: TDiffIndexEntry) => TRowType;
|
|
22
|
+
/**
|
|
23
|
+
* Merges current rows with compareRows and annotates cells for diff highlighting.
|
|
24
|
+
*/
|
|
25
|
+
export declare const buildDiffRows: (rows?: TRowsType, compareRows?: TRowsType) => TRowsType;
|
|
26
|
+
//# sourceMappingURL=build-diff-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-diff-rows.d.ts","sourceRoot":"","sources":["../../../src/components/diff-table/build-diff-rows.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AActE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,QAAQ,KAAG,MASzC,CAAC;AA8BF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAM,SAAc,EAAE,cAAa,SAAc,KAAG,eAAe,EAsDjG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,eAAe,KAAG,QAQ1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAM,SAAc,EAAE,cAAa,SAAc,KAAG,SAEjF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITableProps, ITableTableProps } from '../table/table';
|
|
2
|
+
import { TRowsType } from '../table/table.viewdata';
|
|
3
|
+
export interface IDiffTableProps extends Omit<ITableProps, 'table'> {
|
|
4
|
+
table: ITableTableProps;
|
|
5
|
+
compareRows: TRowsType;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Skinny wrapper around Table that highlights row/cell differences between
|
|
9
|
+
* `table.rows` (current) and `compareRows` (previous).
|
|
10
|
+
*/
|
|
11
|
+
export declare const DiffTable: ({ table, compareRows, beforeRenderRow: beforeRenderRowProp, ...rest }: IDiffTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=diff-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-table.d.ts","sourceRoot":"","sources":["../../../src/components/diff-table/diff-table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAS,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAY,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGtE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IACjE,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,SAAS,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,uEAAuE,eAAe,4CA0B/G,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { IDiffTableProps } from './diff-table';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IDiffTableProps>;
|
|
6
|
+
export declare const NoChanges: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IDiffTableProps>;
|
|
7
|
+
/**
|
|
8
|
+
* With a stable `id`, changing the first cell is a cell modification — not delete + add.
|
|
9
|
+
*/
|
|
10
|
+
export declare const WithRowId: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IDiffTableProps>;
|
|
11
|
+
export declare const LargeVirtualized: {
|
|
12
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
story: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=diff-table.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/diff-table/diff-table.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAKtD,OAAO,EAAa,eAAe,EAAE,MAAM,cAAc,CAAC;wBAqDrD,IAAI;AAPT,wBAOU;AAIV,eAAO,MAAM,OAAO,mHAAoB,CAAC;AAEzC,eAAO,MAAM,SAAS,mHAAoB,CAAC;AAM3C;;GAEG;AACH,eAAO,MAAM,SAAS,mHAAoB,CAAC;AAkB3C,eAAO,MAAM,gBAAgB;;;;;;;;;CAsG5B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TEmpty } from '../../typings/common-type-definitions';
|
|
1
|
+
import { TEmpty, TStringOrNumber } from '../../typings/common-type-definitions';
|
|
2
2
|
import { TCellShape } from './cell/cell-types/cell-types.interface';
|
|
3
3
|
export type TRowType = {
|
|
4
|
+
id?: TStringOrNumber;
|
|
4
5
|
cells: TCellShape[];
|
|
5
6
|
actions?: any[];
|
|
6
7
|
testId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.viewdata.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.viewdata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"table.viewdata.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.viewdata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAEnF,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC;AAYnC,eAAO,MAAM,cAAc,GAAI,MAAM,SAAS,EAAE,SAAS,SAAS,KAAG,MAGpE,CAAC;AAKF,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,EAAE,SAAS,SAAS,KAAG,OAEnE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,8 @@ export { SettingField } from './components/setting-field/setting-field';
|
|
|
158
158
|
export type { ISettingFieldProps } from './components/setting-field/setting-field';
|
|
159
159
|
export { DiffViewer } from './components/diff-viewer/diff-viewer';
|
|
160
160
|
export type { IDiffViewerProps } from './components/diff-viewer/diff-viewer';
|
|
161
|
+
export { DiffTable } from './components/diff-table/diff-table';
|
|
162
|
+
export type { IDiffTableProps } from './components/diff-table/diff-table';
|
|
161
163
|
export { AuditLog } from './components/audit-log/audit-log';
|
|
162
164
|
export type { AuditLogItem, AuditLogOperation } from './components/audit-log/audit-log';
|
|
163
165
|
export { UsageTracker } from './components/usage-tracker/usage-tracker';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAC;AAM7B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,eA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ClD,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,YAAY,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,4CAA4C,CAAC;AAGpD,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8352,10 +8352,96 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8352
8352
|
compareMethod: Si.WORDS
|
|
8353
8353
|
})
|
|
8354
8354
|
}) });
|
|
8355
|
+
}, zp = { backgroundColor: "var(--color-background-error-muted)" }, Bp = { backgroundColor: "var(--color-background-success-muted)" }, Vp = { backgroundColor: "var(--color-background-warning-muted)" }, Hp = (e) => {
|
|
8356
|
+
var t;
|
|
8357
|
+
if (e.id != null) return String(e.id);
|
|
8358
|
+
let n = (t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value;
|
|
8359
|
+
return n == null ? "" : String(n);
|
|
8360
|
+
}, Up = (e, t) => ({
|
|
8361
|
+
...e,
|
|
8362
|
+
cells: e.cells.map((e) => ({
|
|
8363
|
+
...e,
|
|
8364
|
+
style: {
|
|
8365
|
+
...e.style,
|
|
8366
|
+
...t
|
|
8367
|
+
}
|
|
8368
|
+
}))
|
|
8369
|
+
}), Wp = (e, t) => ({
|
|
8370
|
+
...e,
|
|
8371
|
+
cells: e.cells.map((e, n) => {
|
|
8372
|
+
var r;
|
|
8373
|
+
let i = (r = t.cells) == null ? void 0 : r[n], a = i == null ? void 0 : i.value;
|
|
8374
|
+
return !i || dn(e.value, a) ? e : {
|
|
8375
|
+
...e,
|
|
8376
|
+
style: {
|
|
8377
|
+
...e.style,
|
|
8378
|
+
...Vp
|
|
8379
|
+
},
|
|
8380
|
+
tooltip: a
|
|
8381
|
+
};
|
|
8382
|
+
})
|
|
8383
|
+
}), Gp = (e = [], t = []) => {
|
|
8384
|
+
let n = /* @__PURE__ */ new Map();
|
|
8385
|
+
for (let e of t) n.set(Hp(e), e);
|
|
8386
|
+
let r = new Set(e.map(Hp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8387
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
8388
|
+
let n = t[e], c = Hp(n);
|
|
8389
|
+
if (r.has(c)) {
|
|
8390
|
+
o = c;
|
|
8391
|
+
continue;
|
|
8392
|
+
}
|
|
8393
|
+
if (o === null) a.push(n);
|
|
8394
|
+
else {
|
|
8395
|
+
var s;
|
|
8396
|
+
let e = (s = i.get(o)) == null ? [] : s;
|
|
8397
|
+
e.unshift(n), i.set(o, e);
|
|
8398
|
+
}
|
|
8399
|
+
}
|
|
8400
|
+
a.reverse();
|
|
8401
|
+
let c = [];
|
|
8402
|
+
for (let t of e) {
|
|
8403
|
+
let e = Hp(t), r = i.get(e);
|
|
8404
|
+
if (r) for (let e of r) c.push({
|
|
8405
|
+
status: "deleted",
|
|
8406
|
+
row: e
|
|
8407
|
+
});
|
|
8408
|
+
let a = n.get(e);
|
|
8409
|
+
a ? c.push({
|
|
8410
|
+
status: "matched",
|
|
8411
|
+
row: t,
|
|
8412
|
+
compareRow: a
|
|
8413
|
+
}) : c.push({
|
|
8414
|
+
status: "added",
|
|
8415
|
+
row: t
|
|
8416
|
+
});
|
|
8417
|
+
}
|
|
8418
|
+
for (let e of a) c.push({
|
|
8419
|
+
status: "deleted",
|
|
8420
|
+
row: e
|
|
8421
|
+
});
|
|
8422
|
+
return c;
|
|
8423
|
+
}, Kp = (e) => e.status === "deleted" ? Up(e.row, zp) : e.status === "added" ? Up(e.row, Bp) : Wp(e.row, e.compareRow), qp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8424
|
+
let i = h(() => Gp(e.rows, t), [e.rows, t]), a = h(() => i.map((e) => e.row), [i]), o = l(({ row: e, rowIndex: t }) => {
|
|
8425
|
+
let r = i[t], a = r ? Kp(r) : e;
|
|
8426
|
+
return n ? n({
|
|
8427
|
+
row: a,
|
|
8428
|
+
rowIndex: t
|
|
8429
|
+
}) : a;
|
|
8430
|
+
}, [i, n]);
|
|
8431
|
+
return /* @__PURE__ */ S($l, {
|
|
8432
|
+
...r,
|
|
8433
|
+
beforeRenderRow: o,
|
|
8434
|
+
table: {
|
|
8435
|
+
...e,
|
|
8436
|
+
rows: a,
|
|
8437
|
+
rowCount: i.length,
|
|
8438
|
+
striped: !1
|
|
8439
|
+
}
|
|
8440
|
+
});
|
|
8355
8441
|
};
|
|
8356
8442
|
//#endregion
|
|
8357
8443
|
//#region src/helpers/date.ts
|
|
8358
|
-
function
|
|
8444
|
+
function Jp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8359
8445
|
return e ? new Date(e).toLocaleString(a, {
|
|
8360
8446
|
year: "numeric",
|
|
8361
8447
|
month: "short",
|
|
@@ -8369,28 +8455,28 @@ function zp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8369
8455
|
}
|
|
8370
8456
|
//#endregion
|
|
8371
8457
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8372
|
-
function
|
|
8458
|
+
function Yp(e) {
|
|
8373
8459
|
var t;
|
|
8374
8460
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8375
8461
|
if (!n) throw Error("Invalid RegExp");
|
|
8376
8462
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8377
8463
|
}
|
|
8378
|
-
function
|
|
8464
|
+
function Xp(e) {
|
|
8379
8465
|
if (typeof e != "object") return e;
|
|
8380
8466
|
if (e === null) return null;
|
|
8381
|
-
if (Array.isArray(e)) return e.map(
|
|
8467
|
+
if (Array.isArray(e)) return e.map(Xp);
|
|
8382
8468
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8383
|
-
if (e instanceof RegExp) return
|
|
8469
|
+
if (e instanceof RegExp) return Yp(e);
|
|
8384
8470
|
let t = {};
|
|
8385
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8471
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Xp(e[n]));
|
|
8386
8472
|
return t;
|
|
8387
8473
|
}
|
|
8388
8474
|
//#endregion
|
|
8389
8475
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8390
|
-
function
|
|
8476
|
+
function Zp(e, t) {
|
|
8391
8477
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8392
8478
|
}
|
|
8393
|
-
var
|
|
8479
|
+
var Qp = (e) => e[e.length - 1], $p = class {
|
|
8394
8480
|
setResult(e) {
|
|
8395
8481
|
return this.result = e, this.hasResult = !0, this;
|
|
8396
8482
|
}
|
|
@@ -8398,16 +8484,16 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8398
8484
|
return this.exiting = !0, this;
|
|
8399
8485
|
}
|
|
8400
8486
|
push(e, t) {
|
|
8401
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8487
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Zp(this.children), Qp(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8402
8488
|
}
|
|
8403
|
-
},
|
|
8489
|
+
}, em = class extends $p {
|
|
8404
8490
|
constructor(e, t) {
|
|
8405
8491
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8406
8492
|
}
|
|
8407
8493
|
prepareDeltaResult(e) {
|
|
8408
8494
|
var t, n, r, i;
|
|
8409
8495
|
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)) {
|
|
8410
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8496
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Xp;
|
|
8411
8497
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8412
8498
|
}
|
|
8413
8499
|
return e;
|
|
@@ -8415,15 +8501,15 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8415
8501
|
setResult(e) {
|
|
8416
8502
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8417
8503
|
}
|
|
8418
|
-
},
|
|
8504
|
+
}, tm = class extends $p {
|
|
8419
8505
|
constructor(e, t) {
|
|
8420
8506
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8421
8507
|
}
|
|
8422
|
-
},
|
|
8508
|
+
}, nm = class extends $p {
|
|
8423
8509
|
constructor(e) {
|
|
8424
8510
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8425
8511
|
}
|
|
8426
|
-
},
|
|
8512
|
+
}, rm = class {
|
|
8427
8513
|
constructor(e) {
|
|
8428
8514
|
this.name = e, this.filters = [];
|
|
8429
8515
|
}
|
|
@@ -8487,7 +8573,7 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8487
8573
|
}
|
|
8488
8574
|
}), this);
|
|
8489
8575
|
}
|
|
8490
|
-
},
|
|
8576
|
+
}, im = class {
|
|
8491
8577
|
constructor(e) {
|
|
8492
8578
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8493
8579
|
}
|
|
@@ -8514,7 +8600,7 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8514
8600
|
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);
|
|
8515
8601
|
return n.hasResult ? n.result : void 0;
|
|
8516
8602
|
}
|
|
8517
|
-
},
|
|
8603
|
+
}, am = (e, t, n, r) => e[n] === t[r], om = (e, t, n, r) => {
|
|
8518
8604
|
var i, a, o;
|
|
8519
8605
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8520
8606
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8530,7 +8616,7 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8530
8616
|
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);
|
|
8531
8617
|
}
|
|
8532
8618
|
return d;
|
|
8533
|
-
},
|
|
8619
|
+
}, sm = (e, t, n, r) => {
|
|
8534
8620
|
let i = t.length, a = n.length, o = {
|
|
8535
8621
|
sequence: [],
|
|
8536
8622
|
indices1: [],
|
|
@@ -8552,11 +8638,11 @@ var Up = (e) => e[e.length - 1], Wp = class {
|
|
|
8552
8638
|
}
|
|
8553
8639
|
}
|
|
8554
8640
|
return o;
|
|
8555
|
-
},
|
|
8641
|
+
}, cm = { get: (e, t, n, r) => {
|
|
8556
8642
|
let i = r || {};
|
|
8557
|
-
return
|
|
8558
|
-
} },
|
|
8559
|
-
function
|
|
8643
|
+
return sm(om(e, t, n || am, i), e, t, i);
|
|
8644
|
+
} }, lm = 3;
|
|
8645
|
+
function um(e, t, n, r) {
|
|
8560
8646
|
for (let i = 0; i < n; i++) {
|
|
8561
8647
|
let n = e[i];
|
|
8562
8648
|
for (let e = 0; e < r; e++) {
|
|
@@ -8566,7 +8652,7 @@ function tm(e, t, n, r) {
|
|
|
8566
8652
|
}
|
|
8567
8653
|
return !1;
|
|
8568
8654
|
}
|
|
8569
|
-
function
|
|
8655
|
+
function dm(e, t, n, r, i) {
|
|
8570
8656
|
let a = e[n], o = t[r];
|
|
8571
8657
|
if (a === o) return !0;
|
|
8572
8658
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8579,15 +8665,15 @@ function nm(e, t, n, r, i) {
|
|
|
8579
8665
|
let l = i.hashCache2[r];
|
|
8580
8666
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8581
8667
|
}
|
|
8582
|
-
var
|
|
8668
|
+
var fm = function(e) {
|
|
8583
8669
|
var t, n, r, i, a;
|
|
8584
8670
|
if (!e.leftIsArray) return;
|
|
8585
8671
|
let o = {
|
|
8586
8672
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8587
8673
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8588
8674
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8589
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8590
|
-
for (; c + s < m && c + s < h &&
|
|
8675
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !um(f, p, m, h)); s < m && s < h && dm(f, p, s, s, o);) l = s, g = new em(f[l], p[l]), e.push(g, l), s++;
|
|
8676
|
+
for (; c + s < m && c + s < h && dm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new em(f[u], p[d]), e.push(g, d), c++;
|
|
8591
8677
|
let _;
|
|
8592
8678
|
if (s + c === m) {
|
|
8593
8679
|
if (m === h) {
|
|
@@ -8611,7 +8697,7 @@ var rm = function(e) {
|
|
|
8611
8697
|
return;
|
|
8612
8698
|
}
|
|
8613
8699
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8614
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8700
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = cm.get(v, y, dm, o), x = [];
|
|
8615
8701
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8616
8702
|
let t = `_${l}`;
|
|
8617
8703
|
_[t] = [
|
|
@@ -8632,8 +8718,8 @@ var rm = function(e) {
|
|
|
8632
8718
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8633
8719
|
u = x[n];
|
|
8634
8720
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8635
|
-
if (u !== void 0 && r &&
|
|
8636
|
-
r.splice(1, 2, l,
|
|
8721
|
+
if (u !== void 0 && r && dm(v, y, u - s, l - s, o)) {
|
|
8722
|
+
r.splice(1, 2, l, lm), r.splice(1, 2, l, lm), C || (r[0] = ""), d = l, g = new em(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8637
8723
|
break;
|
|
8638
8724
|
}
|
|
8639
8725
|
}
|
|
@@ -8641,20 +8727,20 @@ var rm = function(e) {
|
|
|
8641
8727
|
} else {
|
|
8642
8728
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8643
8729
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8644
|
-
d = b.indices2[t] + s, g = new
|
|
8730
|
+
d = b.indices2[t] + s, g = new em(f[u], p[d]), e.push(g, d);
|
|
8645
8731
|
}
|
|
8646
8732
|
}
|
|
8647
8733
|
e.setResult(_).exit();
|
|
8648
8734
|
};
|
|
8649
|
-
|
|
8650
|
-
var
|
|
8735
|
+
fm.filterName = "arrays";
|
|
8736
|
+
var pm = {
|
|
8651
8737
|
numerically(e, t) {
|
|
8652
8738
|
return e - t;
|
|
8653
8739
|
},
|
|
8654
8740
|
numericallyBy(e) {
|
|
8655
8741
|
return (t, n) => t[e] - n[e];
|
|
8656
8742
|
}
|
|
8657
|
-
},
|
|
8743
|
+
}, mm = function(e) {
|
|
8658
8744
|
var t;
|
|
8659
8745
|
if (!e.nested) return;
|
|
8660
8746
|
let n = e.delta;
|
|
@@ -8663,7 +8749,7 @@ var im = {
|
|
|
8663
8749
|
for (r in a) if (r !== "_t") {
|
|
8664
8750
|
if (r[0] === "_") {
|
|
8665
8751
|
let e = r;
|
|
8666
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8752
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === lm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8667
8753
|
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]}`);
|
|
8668
8754
|
} else {
|
|
8669
8755
|
let e = r;
|
|
@@ -8676,15 +8762,15 @@ var im = {
|
|
|
8676
8762
|
});
|
|
8677
8763
|
}
|
|
8678
8764
|
}
|
|
8679
|
-
for (s = s.sort(
|
|
8765
|
+
for (s = s.sort(pm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8680
8766
|
if (i = s[r], i === void 0) continue;
|
|
8681
8767
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8682
|
-
(e == null ? void 0 : e[2]) ===
|
|
8768
|
+
(e == null ? void 0 : e[2]) === lm && c.push({
|
|
8683
8769
|
index: e[1],
|
|
8684
8770
|
value: t
|
|
8685
8771
|
});
|
|
8686
8772
|
}
|
|
8687
|
-
c = c.sort(
|
|
8773
|
+
c = c.sort(pm.numericallyBy("index"));
|
|
8688
8774
|
let u = c.length;
|
|
8689
8775
|
for (r = 0; r < u; r++) {
|
|
8690
8776
|
let e = c[r];
|
|
@@ -8694,7 +8780,7 @@ var im = {
|
|
|
8694
8780
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8695
8781
|
let t = l[r];
|
|
8696
8782
|
if (t === void 0) continue;
|
|
8697
|
-
let n = new
|
|
8783
|
+
let n = new tm(o[t.index], t.delta);
|
|
8698
8784
|
e.push(n, t.index);
|
|
8699
8785
|
}
|
|
8700
8786
|
if (!e.children) {
|
|
@@ -8703,8 +8789,8 @@ var im = {
|
|
|
8703
8789
|
}
|
|
8704
8790
|
e.exit();
|
|
8705
8791
|
};
|
|
8706
|
-
|
|
8707
|
-
var
|
|
8792
|
+
mm.filterName = "arrays";
|
|
8793
|
+
var hm = function(e) {
|
|
8708
8794
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8709
8795
|
let t = e.left, n = e.children.length;
|
|
8710
8796
|
for (let r = 0; r < n; r++) {
|
|
@@ -8715,16 +8801,16 @@ var om = function(e) {
|
|
|
8715
8801
|
}
|
|
8716
8802
|
e.setResult(t).exit();
|
|
8717
8803
|
};
|
|
8718
|
-
|
|
8719
|
-
var
|
|
8804
|
+
hm.filterName = "arraysCollectChildren";
|
|
8805
|
+
var gm = function(e) {
|
|
8720
8806
|
if (!e.nested) {
|
|
8721
8807
|
let t = e.delta;
|
|
8722
|
-
if (t[2] ===
|
|
8808
|
+
if (t[2] === lm) {
|
|
8723
8809
|
let n = t;
|
|
8724
8810
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8725
8811
|
n[0],
|
|
8726
8812
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8727
|
-
|
|
8813
|
+
lm
|
|
8728
8814
|
]).exit();
|
|
8729
8815
|
}
|
|
8730
8816
|
return;
|
|
@@ -8734,20 +8820,20 @@ var sm = function(e) {
|
|
|
8734
8820
|
let n = t;
|
|
8735
8821
|
for (let t in n) {
|
|
8736
8822
|
if (t === "_t") continue;
|
|
8737
|
-
let r = new
|
|
8823
|
+
let r = new nm(n[t]);
|
|
8738
8824
|
e.push(r, t);
|
|
8739
8825
|
}
|
|
8740
8826
|
e.exit();
|
|
8741
8827
|
};
|
|
8742
|
-
|
|
8743
|
-
var
|
|
8828
|
+
gm.filterName = "arrays";
|
|
8829
|
+
var _m = (e, t, n) => {
|
|
8744
8830
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8745
8831
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8746
8832
|
let r = +t;
|
|
8747
8833
|
for (let n in e) {
|
|
8748
8834
|
let i = e[n];
|
|
8749
8835
|
if (Array.isArray(i)) {
|
|
8750
|
-
if (i[2] ===
|
|
8836
|
+
if (i[2] === lm) {
|
|
8751
8837
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8752
8838
|
if (a === +t) return e;
|
|
8753
8839
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8755,7 +8841,7 @@ var cm = (e, t, n) => {
|
|
|
8755
8841
|
}
|
|
8756
8842
|
}
|
|
8757
8843
|
return r;
|
|
8758
|
-
},
|
|
8844
|
+
}, vm = (e) => {
|
|
8759
8845
|
if (!e || !e.children) return;
|
|
8760
8846
|
let t = e.delta;
|
|
8761
8847
|
if (t._t !== "a") return;
|
|
@@ -8766,22 +8852,22 @@ var cm = (e, t, n) => {
|
|
|
8766
8852
|
let a = r.newName;
|
|
8767
8853
|
if (a === void 0) {
|
|
8768
8854
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8769
|
-
a =
|
|
8855
|
+
a = _m(n, r.childName, r.result);
|
|
8770
8856
|
}
|
|
8771
8857
|
i[a] !== r.result && (i[a] = r.result);
|
|
8772
8858
|
}
|
|
8773
8859
|
e.setResult(i).exit();
|
|
8774
8860
|
};
|
|
8775
|
-
|
|
8861
|
+
vm.filterName = "arraysCollectChildren";
|
|
8776
8862
|
//#endregion
|
|
8777
8863
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8778
|
-
var
|
|
8864
|
+
var ym = function(e) {
|
|
8779
8865
|
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();
|
|
8780
8866
|
};
|
|
8781
|
-
|
|
8867
|
+
ym.filterName = "dates";
|
|
8782
8868
|
//#endregion
|
|
8783
8869
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8784
|
-
var
|
|
8870
|
+
var bm = /* @__PURE__ */ new Set(["__proto__"]), xm = (e) => {
|
|
8785
8871
|
if (!e || !e.children) return;
|
|
8786
8872
|
let t = e.children.length, n = e.result;
|
|
8787
8873
|
for (let r = 0; r < t; r++) {
|
|
@@ -8793,18 +8879,18 @@ var dm = /* @__PURE__ */ new Set(["__proto__"]), fm = (e) => {
|
|
|
8793
8879
|
}
|
|
8794
8880
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8795
8881
|
};
|
|
8796
|
-
|
|
8797
|
-
var
|
|
8882
|
+
xm.filterName = "collectChildren";
|
|
8883
|
+
var Sm = (e) => {
|
|
8798
8884
|
var t;
|
|
8799
8885
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8800
8886
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8801
8887
|
for (let t in n) {
|
|
8802
8888
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8803
|
-
let a = new
|
|
8889
|
+
let a = new em(n[t], r[t]);
|
|
8804
8890
|
e.push(a, t);
|
|
8805
8891
|
}
|
|
8806
8892
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8807
|
-
let n = new
|
|
8893
|
+
let n = new em(void 0, r[t]);
|
|
8808
8894
|
e.push(n, t);
|
|
8809
8895
|
}
|
|
8810
8896
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8813,15 +8899,15 @@ var pm = (e) => {
|
|
|
8813
8899
|
}
|
|
8814
8900
|
e.exit();
|
|
8815
8901
|
};
|
|
8816
|
-
|
|
8817
|
-
var
|
|
8902
|
+
Sm.filterName = "objects";
|
|
8903
|
+
var Cm = function(e) {
|
|
8818
8904
|
if (!e.nested) return;
|
|
8819
8905
|
let t = e.delta;
|
|
8820
8906
|
if (t._t) return;
|
|
8821
8907
|
let n = t, r = !1;
|
|
8822
8908
|
for (let t in n) {
|
|
8823
|
-
if (
|
|
8824
|
-
let i = e.left, a = new
|
|
8909
|
+
if (bm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8910
|
+
let i = e.left, a = new tm(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8825
8911
|
e.push(a, t), r = !0;
|
|
8826
8912
|
}
|
|
8827
8913
|
if (!r) {
|
|
@@ -8830,8 +8916,8 @@ var mm = function(e) {
|
|
|
8830
8916
|
}
|
|
8831
8917
|
e.exit();
|
|
8832
8918
|
};
|
|
8833
|
-
|
|
8834
|
-
var
|
|
8919
|
+
Cm.filterName = "objects";
|
|
8920
|
+
var wm = function(e) {
|
|
8835
8921
|
if (!e || !e.children || e.delta._t) return;
|
|
8836
8922
|
if (e.left === null || typeof e.left != "object") {
|
|
8837
8923
|
e.setResult(e.left).exit();
|
|
@@ -8842,17 +8928,17 @@ var hm = function(e) {
|
|
|
8842
8928
|
let n = e.children[r];
|
|
8843
8929
|
if (n === void 0) continue;
|
|
8844
8930
|
let i = n.childName;
|
|
8845
|
-
|
|
8931
|
+
bm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8846
8932
|
}
|
|
8847
8933
|
e.setResult(t).exit();
|
|
8848
8934
|
};
|
|
8849
|
-
|
|
8850
|
-
var
|
|
8935
|
+
wm.filterName = "collectChildren";
|
|
8936
|
+
var Tm = function(e) {
|
|
8851
8937
|
if (!e.nested || e.delta._t) return;
|
|
8852
8938
|
let t = e.delta, n = !1;
|
|
8853
8939
|
for (let r in t) {
|
|
8854
|
-
if (
|
|
8855
|
-
let i = new
|
|
8940
|
+
if (bm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8941
|
+
let i = new nm(t[r]);
|
|
8856
8942
|
e.push(i, r), n = !0;
|
|
8857
8943
|
}
|
|
8858
8944
|
if (!n) {
|
|
@@ -8861,25 +8947,25 @@ var gm = function(e) {
|
|
|
8861
8947
|
}
|
|
8862
8948
|
e.exit();
|
|
8863
8949
|
};
|
|
8864
|
-
|
|
8865
|
-
var
|
|
8950
|
+
Tm.filterName = "objects";
|
|
8951
|
+
var Em = (e) => {
|
|
8866
8952
|
if (!e || !e.children || e.delta._t) return;
|
|
8867
8953
|
let t = e.children.length, n = {};
|
|
8868
8954
|
for (let r = 0; r < t; r++) {
|
|
8869
8955
|
let t = e.children[r];
|
|
8870
8956
|
if (t === void 0) continue;
|
|
8871
8957
|
let i = t.childName;
|
|
8872
|
-
|
|
8958
|
+
bm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8873
8959
|
}
|
|
8874
8960
|
e.setResult(n).exit();
|
|
8875
8961
|
};
|
|
8876
|
-
|
|
8962
|
+
Em.filterName = "collectChildren";
|
|
8877
8963
|
//#endregion
|
|
8878
8964
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8879
|
-
var
|
|
8880
|
-
function
|
|
8965
|
+
var Dm = 2, Om = 60, km = null;
|
|
8966
|
+
function Am(e, t) {
|
|
8881
8967
|
var n;
|
|
8882
|
-
if (!
|
|
8968
|
+
if (!km) {
|
|
8883
8969
|
let r;
|
|
8884
8970
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8885
8971
|
else {
|
|
@@ -8887,7 +8973,7 @@ function xm(e, t) {
|
|
|
8887
8973
|
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.");
|
|
8888
8974
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8889
8975
|
}
|
|
8890
|
-
|
|
8976
|
+
km = {
|
|
8891
8977
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8892
8978
|
patch: (e, t) => {
|
|
8893
8979
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8899,17 +8985,17 @@ function xm(e, t) {
|
|
|
8899
8985
|
}
|
|
8900
8986
|
};
|
|
8901
8987
|
}
|
|
8902
|
-
return
|
|
8988
|
+
return km;
|
|
8903
8989
|
}
|
|
8904
|
-
var
|
|
8990
|
+
var jm = function(e) {
|
|
8905
8991
|
var t, n;
|
|
8906
8992
|
if (e.leftType !== "string") return;
|
|
8907
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8993
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Om;
|
|
8908
8994
|
if (r.length < a || i.length < a) {
|
|
8909
8995
|
e.setResult([r, i]).exit();
|
|
8910
8996
|
return;
|
|
8911
8997
|
}
|
|
8912
|
-
let o =
|
|
8998
|
+
let o = Am(e.options);
|
|
8913
8999
|
if (!o) {
|
|
8914
9000
|
e.setResult([r, i]).exit();
|
|
8915
9001
|
return;
|
|
@@ -8918,19 +9004,19 @@ var Sm = function(e) {
|
|
|
8918
9004
|
e.setResult([
|
|
8919
9005
|
s(r, i),
|
|
8920
9006
|
0,
|
|
8921
|
-
|
|
9007
|
+
Dm
|
|
8922
9008
|
]).exit();
|
|
8923
9009
|
};
|
|
8924
|
-
|
|
8925
|
-
var
|
|
9010
|
+
jm.filterName = "texts";
|
|
9011
|
+
var Mm = function(e) {
|
|
8926
9012
|
if (e.nested) return;
|
|
8927
9013
|
let t = e.delta;
|
|
8928
|
-
if (t[2] !==
|
|
8929
|
-
let n = t, r =
|
|
9014
|
+
if (t[2] !== Dm) return;
|
|
9015
|
+
let n = t, r = Am(e.options, !0).patch;
|
|
8930
9016
|
e.setResult(r(e.left, n[0])).exit();
|
|
8931
9017
|
};
|
|
8932
|
-
|
|
8933
|
-
var
|
|
9018
|
+
Mm.filterName = "texts";
|
|
9019
|
+
var Nm = (e) => {
|
|
8934
9020
|
var t, n, r;
|
|
8935
9021
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8936
9022
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8951,21 +9037,21 @@ var wm = (e) => {
|
|
|
8951
9037
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8952
9038
|
}
|
|
8953
9039
|
return a.join("\n");
|
|
8954
|
-
},
|
|
9040
|
+
}, Pm = function(e) {
|
|
8955
9041
|
if (e.nested) return;
|
|
8956
9042
|
let t = e.delta;
|
|
8957
|
-
if (t[2] !==
|
|
9043
|
+
if (t[2] !== Dm) return;
|
|
8958
9044
|
let n = t;
|
|
8959
9045
|
e.setResult([
|
|
8960
|
-
|
|
9046
|
+
Nm(n[0]),
|
|
8961
9047
|
0,
|
|
8962
|
-
|
|
9048
|
+
Dm
|
|
8963
9049
|
]).exit();
|
|
8964
9050
|
};
|
|
8965
|
-
|
|
9051
|
+
Pm.filterName = "texts";
|
|
8966
9052
|
//#endregion
|
|
8967
9053
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8968
|
-
var
|
|
9054
|
+
var Fm = function(e) {
|
|
8969
9055
|
if (e.left === e.right) {
|
|
8970
9056
|
e.setResult(void 0).exit();
|
|
8971
9057
|
return;
|
|
@@ -8998,8 +9084,8 @@ var Em = function(e) {
|
|
|
8998
9084
|
}
|
|
8999
9085
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9000
9086
|
};
|
|
9001
|
-
|
|
9002
|
-
var
|
|
9087
|
+
Fm.filterName = "trivial";
|
|
9088
|
+
var Im = function(e) {
|
|
9003
9089
|
if (e.delta === void 0) {
|
|
9004
9090
|
e.setResult(e.left).exit();
|
|
9005
9091
|
return;
|
|
@@ -9023,8 +9109,8 @@ var Dm = function(e) {
|
|
|
9023
9109
|
}
|
|
9024
9110
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9025
9111
|
};
|
|
9026
|
-
|
|
9027
|
-
var
|
|
9112
|
+
Im.filterName = "trivial";
|
|
9113
|
+
var Lm = function(e) {
|
|
9028
9114
|
if (e.delta === void 0) {
|
|
9029
9115
|
e.setResult(e.delta).exit();
|
|
9030
9116
|
return;
|
|
@@ -9045,36 +9131,36 @@ var Om = function(e) {
|
|
|
9045
9131
|
}
|
|
9046
9132
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9047
9133
|
};
|
|
9048
|
-
|
|
9134
|
+
Lm.filterName = "trivial";
|
|
9049
9135
|
//#endregion
|
|
9050
9136
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9051
|
-
var
|
|
9137
|
+
var Rm = class {
|
|
9052
9138
|
constructor(e) {
|
|
9053
|
-
this.processor = new
|
|
9139
|
+
this.processor = new im(e), this.processor.pipe(new rm("diff").append(xm, Fm, ym, jm, Sm, fm).shouldHaveResult()), this.processor.pipe(new rm("patch").append(wm, hm, Im, Mm, Cm, mm).shouldHaveResult()), this.processor.pipe(new rm("reverse").append(Em, vm, Lm, Pm, Tm, gm).shouldHaveResult());
|
|
9054
9140
|
}
|
|
9055
9141
|
options(e) {
|
|
9056
9142
|
return this.processor.options(e);
|
|
9057
9143
|
}
|
|
9058
9144
|
diff(e, t) {
|
|
9059
|
-
return this.processor.process(new
|
|
9145
|
+
return this.processor.process(new em(e, t));
|
|
9060
9146
|
}
|
|
9061
9147
|
patch(e, t) {
|
|
9062
|
-
return this.processor.process(new
|
|
9148
|
+
return this.processor.process(new tm(e, t));
|
|
9063
9149
|
}
|
|
9064
9150
|
reverse(e) {
|
|
9065
|
-
return this.processor.process(new
|
|
9151
|
+
return this.processor.process(new nm(e));
|
|
9066
9152
|
}
|
|
9067
9153
|
unpatch(e, t) {
|
|
9068
9154
|
return this.patch(e, this.reverse(t));
|
|
9069
9155
|
}
|
|
9070
9156
|
clone(e) {
|
|
9071
|
-
return
|
|
9157
|
+
return Xp(e);
|
|
9072
9158
|
}
|
|
9073
9159
|
};
|
|
9074
9160
|
//#endregion
|
|
9075
9161
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9076
|
-
function
|
|
9077
|
-
return new
|
|
9162
|
+
function zm(e) {
|
|
9163
|
+
return new Rm(e);
|
|
9078
9164
|
}
|
|
9079
9165
|
//#endregion
|
|
9080
9166
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9636,46 +9722,46 @@ $.Diff = function(e, t) {
|
|
|
9636
9722
|
};
|
|
9637
9723
|
//#endregion
|
|
9638
9724
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9639
|
-
var
|
|
9725
|
+
var Bm = (e = {}) => zm({
|
|
9640
9726
|
...e,
|
|
9641
9727
|
textDiff: {
|
|
9642
9728
|
diffMatchPatch: $,
|
|
9643
9729
|
minLength: 120
|
|
9644
9730
|
},
|
|
9645
9731
|
cloneDiffValues: !0
|
|
9646
|
-
}),
|
|
9732
|
+
}), Vm = ["user", "unittemplate"], Hm = Bm(), Um = (e, t, n) => {
|
|
9647
9733
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9648
9734
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9649
9735
|
let n = r[t[e]];
|
|
9650
9736
|
if (n) return n;
|
|
9651
9737
|
}
|
|
9652
9738
|
return n || "";
|
|
9653
|
-
},
|
|
9739
|
+
}, Wm = (e) => {
|
|
9654
9740
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9655
9741
|
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);
|
|
9656
|
-
},
|
|
9742
|
+
}, Gm = (e) => {
|
|
9657
9743
|
switch (e.length) {
|
|
9658
9744
|
case 1: {
|
|
9659
9745
|
let [t] = e;
|
|
9660
9746
|
return {
|
|
9661
9747
|
type: "created",
|
|
9662
9748
|
before: "",
|
|
9663
|
-
after:
|
|
9749
|
+
after: Wm(t)
|
|
9664
9750
|
};
|
|
9665
9751
|
}
|
|
9666
9752
|
case 2: {
|
|
9667
9753
|
let [t, n] = e;
|
|
9668
9754
|
return {
|
|
9669
9755
|
type: "modified",
|
|
9670
|
-
before:
|
|
9671
|
-
after:
|
|
9756
|
+
before: Wm(t),
|
|
9757
|
+
after: Wm(n)
|
|
9672
9758
|
};
|
|
9673
9759
|
}
|
|
9674
9760
|
case 3: {
|
|
9675
9761
|
let [t] = e;
|
|
9676
9762
|
return {
|
|
9677
9763
|
type: "deleted",
|
|
9678
|
-
before:
|
|
9764
|
+
before: Wm(t),
|
|
9679
9765
|
after: ""
|
|
9680
9766
|
};
|
|
9681
9767
|
}
|
|
@@ -9685,15 +9771,15 @@ var jm = (e = {}) => Am({
|
|
|
9685
9771
|
after: ""
|
|
9686
9772
|
};
|
|
9687
9773
|
}
|
|
9688
|
-
},
|
|
9689
|
-
let r =
|
|
9774
|
+
}, Km = (e) => Array.isArray(e), qm = (e, t) => t ? Km(t) ? t.length === 0 ? e : t.reduce((e, t) => Hm.unpatch(nn(e), nn(t)), nn(e)) : Hm.unpatch(nn(e), nn(t)) : e, Jm = (e) => e.createdAt || e.date, Ym = (e, t, n) => {
|
|
9775
|
+
let r = Jm(e);
|
|
9690
9776
|
if (!r) return {
|
|
9691
9777
|
oldJson: "",
|
|
9692
9778
|
newJson: "",
|
|
9693
9779
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9694
9780
|
};
|
|
9695
9781
|
let i = t.filter((e) => {
|
|
9696
|
-
let t =
|
|
9782
|
+
let t = Jm(e);
|
|
9697
9783
|
return !!(e.diffs && t && t >= r);
|
|
9698
9784
|
}), a = Array.from({ length: i.length + 1 });
|
|
9699
9785
|
a[0] = nn(n);
|
|
@@ -9706,7 +9792,7 @@ var jm = (e = {}) => Am({
|
|
|
9706
9792
|
a[e + 1] = a[e];
|
|
9707
9793
|
continue;
|
|
9708
9794
|
}
|
|
9709
|
-
a[e + 1] =
|
|
9795
|
+
a[e + 1] = qm(a[e], t);
|
|
9710
9796
|
}
|
|
9711
9797
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9712
9798
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9721,10 +9807,10 @@ var jm = (e = {}) => Am({
|
|
|
9721
9807
|
oldJson: o,
|
|
9722
9808
|
newJson: s
|
|
9723
9809
|
};
|
|
9724
|
-
},
|
|
9810
|
+
}, Xm = (e, t, n = {}, r = []) => {
|
|
9725
9811
|
var i;
|
|
9726
9812
|
if (!e) return;
|
|
9727
|
-
let a = [...
|
|
9813
|
+
let a = [...Vm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9728
9814
|
Object.keys(e).forEach((i) => {
|
|
9729
9815
|
var o;
|
|
9730
9816
|
let s = e[i];
|
|
@@ -9737,12 +9823,12 @@ var jm = (e = {}) => Am({
|
|
|
9737
9823
|
cn(s) ? t.push({
|
|
9738
9824
|
deltaFormat: [...s],
|
|
9739
9825
|
path: c
|
|
9740
|
-
}) : gn(s) &&
|
|
9826
|
+
}) : gn(s) && Xm(s, t, n, c);
|
|
9741
9827
|
});
|
|
9742
|
-
},
|
|
9828
|
+
}, Zm = (e, t = {}) => {
|
|
9743
9829
|
let n = [];
|
|
9744
|
-
return e ? (
|
|
9745
|
-
},
|
|
9830
|
+
return e ? (Xm(e, n, t), n) : [];
|
|
9831
|
+
}, Qm = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), $m = (e) => {
|
|
9746
9832
|
if (e == null || e === "") return "empty";
|
|
9747
9833
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9748
9834
|
if (typeof e == "string") return e;
|
|
@@ -9753,27 +9839,27 @@ var jm = (e = {}) => Am({
|
|
|
9753
9839
|
} catch {
|
|
9754
9840
|
return String(e);
|
|
9755
9841
|
}
|
|
9756
|
-
},
|
|
9842
|
+
}, eh = (e, t = e.length - 1) => {
|
|
9757
9843
|
if (t >= e.length) return "Value";
|
|
9758
9844
|
let n = e[t];
|
|
9759
|
-
return !n || mr(n) ?
|
|
9760
|
-
},
|
|
9761
|
-
let o =
|
|
9845
|
+
return !n || mr(n) ? eh(e, t - 1) : Qm(n);
|
|
9846
|
+
}, th = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9847
|
+
let o = $m(r), s = $m(i), c = a ? ` in ${a}` : "";
|
|
9762
9848
|
switch (t) {
|
|
9763
9849
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9764
9850
|
case "created": return `${e} created ${s}${c}.`;
|
|
9765
9851
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9766
9852
|
default: return `${e} changed ${n}${c}.`;
|
|
9767
9853
|
}
|
|
9768
|
-
},
|
|
9854
|
+
}, nh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9769
9855
|
let i = {
|
|
9770
9856
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9771
9857
|
rows: n.map((n) => {
|
|
9772
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9773
|
-
return { cells: [{ value:
|
|
9858
|
+
let { deltaFormat: i, path: a } = n, o = Um(e, a, r), { type: s, before: c, after: l } = Gm(i);
|
|
9859
|
+
return { cells: [{ value: th({
|
|
9774
9860
|
userName: t,
|
|
9775
9861
|
type: s,
|
|
9776
|
-
property:
|
|
9862
|
+
property: eh(a),
|
|
9777
9863
|
before: c,
|
|
9778
9864
|
after: l,
|
|
9779
9865
|
sectionName: o
|
|
@@ -9781,7 +9867,7 @@ var jm = (e = {}) => Am({
|
|
|
9781
9867
|
})
|
|
9782
9868
|
};
|
|
9783
9869
|
return /* @__PURE__ */ S($l, { table: i });
|
|
9784
|
-
},
|
|
9870
|
+
}, rh = Object.freeze({
|
|
9785
9871
|
summary: {
|
|
9786
9872
|
label: "Summary",
|
|
9787
9873
|
value: "summary"
|
|
@@ -9790,13 +9876,13 @@ var jm = (e = {}) => Am({
|
|
|
9790
9876
|
label: "Compare",
|
|
9791
9877
|
value: "compare"
|
|
9792
9878
|
}
|
|
9793
|
-
}),
|
|
9794
|
-
let c = [
|
|
9879
|
+
}), ih = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9880
|
+
let c = [rh.summary, rh.compare].map(({ label: e, value: t }) => ({
|
|
9795
9881
|
label: e,
|
|
9796
9882
|
value: t
|
|
9797
9883
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
9798
9884
|
if (!d) return null;
|
|
9799
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9885
|
+
let { oldJson: f, newJson: p, error: m } = Ym(e, t, n);
|
|
9800
9886
|
return /* @__PURE__ */ S(Ts, {
|
|
9801
9887
|
visible: r,
|
|
9802
9888
|
centered: !0,
|
|
@@ -9809,10 +9895,10 @@ var jm = (e = {}) => Am({
|
|
|
9809
9895
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9810
9896
|
options: c,
|
|
9811
9897
|
value: l
|
|
9812
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
9898
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(nh, {
|
|
9813
9899
|
userName: e.userName,
|
|
9814
9900
|
sectionNames: a,
|
|
9815
|
-
diffs:
|
|
9901
|
+
diffs: Zm(d, i),
|
|
9816
9902
|
defaultSectionName: o
|
|
9817
9903
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
9818
9904
|
style: { padding: 16 },
|
|
@@ -9830,7 +9916,7 @@ var jm = (e = {}) => Am({
|
|
|
9830
9916
|
height: "90vh"
|
|
9831
9917
|
} })
|
|
9832
9918
|
});
|
|
9833
|
-
},
|
|
9919
|
+
}, ah = [
|
|
9834
9920
|
{
|
|
9835
9921
|
label: "10 / page",
|
|
9836
9922
|
value: 10
|
|
@@ -9843,8 +9929,8 @@ var jm = (e = {}) => Am({
|
|
|
9843
9929
|
label: "50 / page",
|
|
9844
9930
|
value: 50
|
|
9845
9931
|
}
|
|
9846
|
-
],
|
|
9847
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9932
|
+
], oh = (e, t = {}) => {
|
|
9933
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Zm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9848
9934
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9849
9935
|
switch (a) {
|
|
9850
9936
|
case "Created": return `Created by ${r}`;
|
|
@@ -9854,7 +9940,7 @@ var jm = (e = {}) => Am({
|
|
|
9854
9940
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9855
9941
|
default: return `Change by ${r}`;
|
|
9856
9942
|
}
|
|
9857
|
-
},
|
|
9943
|
+
}, sh = ({ 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 }) => {
|
|
9858
9944
|
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
9859
9945
|
if (e.snapshot) {
|
|
9860
9946
|
f == null || f(e.snapshot, e);
|
|
@@ -9873,7 +9959,7 @@ var jm = (e = {}) => Am({
|
|
|
9873
9959
|
return {
|
|
9874
9960
|
cells: [
|
|
9875
9961
|
{
|
|
9876
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9962
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : oh(e, l),
|
|
9877
9963
|
type: "Link",
|
|
9878
9964
|
disabled: n,
|
|
9879
9965
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9892,8 +9978,8 @@ var jm = (e = {}) => Am({
|
|
|
9892
9978
|
type: "Static"
|
|
9893
9979
|
},
|
|
9894
9980
|
{
|
|
9895
|
-
value:
|
|
9896
|
-
date:
|
|
9981
|
+
value: Jp({
|
|
9982
|
+
date: Jm(e),
|
|
9897
9983
|
showTime: !0
|
|
9898
9984
|
}),
|
|
9899
9985
|
type: "Static"
|
|
@@ -9936,14 +10022,14 @@ var jm = (e = {}) => Am({
|
|
|
9936
10022
|
onChange: (e) => {
|
|
9937
10023
|
u(Number(e.target.value));
|
|
9938
10024
|
},
|
|
9939
|
-
options:
|
|
10025
|
+
options: ah,
|
|
9940
10026
|
value: a
|
|
9941
10027
|
},
|
|
9942
10028
|
onSelectPage: (e) => d(e),
|
|
9943
10029
|
small: !0
|
|
9944
10030
|
} }
|
|
9945
10031
|
} })
|
|
9946
|
-
}), g && y && y.diffs && /* @__PURE__ */ S(
|
|
10032
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(ih, {
|
|
9947
10033
|
sectionNames: o,
|
|
9948
10034
|
isOpen: g,
|
|
9949
10035
|
onClose: () => _(!1),
|
|
@@ -9953,7 +10039,7 @@ var jm = (e = {}) => Am({
|
|
|
9953
10039
|
data: t,
|
|
9954
10040
|
transformDiffsConfig: l
|
|
9955
10041
|
})] });
|
|
9956
|
-
},
|
|
10042
|
+
}, ch = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9957
10043
|
let i = window.location.href, a = _(i);
|
|
9958
10044
|
return d(() => {
|
|
9959
10045
|
a.current = i;
|
|
@@ -9976,20 +10062,20 @@ var jm = (e = {}) => Am({
|
|
|
9976
10062
|
});
|
|
9977
10063
|
};
|
|
9978
10064
|
}, [e, t]), null;
|
|
9979
|
-
},
|
|
10065
|
+
}, lh = {
|
|
9980
10066
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
9981
10067
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
9982
10068
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
9983
|
-
},
|
|
10069
|
+
}, uh = ({ options: e }) => {
|
|
9984
10070
|
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Dp();
|
|
9985
10071
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
9986
10072
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
9987
|
-
className: b(n ?
|
|
10073
|
+
className: b(n ? lh.sidebarErrorBoundary : "", r ? lh.rightSidebarErrorBoundary : ""),
|
|
9988
10074
|
style: a,
|
|
9989
10075
|
children: o == null ? void 0 : o.unexpectedError
|
|
9990
10076
|
});
|
|
9991
10077
|
let s = /* @__PURE__ */ S("div", {
|
|
9992
|
-
className:
|
|
10078
|
+
className: lh.errorBoundary,
|
|
9993
10079
|
style: a,
|
|
9994
10080
|
children: /* @__PURE__ */ S(Gs, { message: {
|
|
9995
10081
|
icon: !0,
|
|
@@ -10004,19 +10090,19 @@ var jm = (e = {}) => Am({
|
|
|
10004
10090
|
padding: 0,
|
|
10005
10091
|
children: s
|
|
10006
10092
|
}) : s;
|
|
10007
|
-
},
|
|
10008
|
-
fallback: /* @__PURE__ */ S(
|
|
10093
|
+
}, dh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ci.ErrorBoundary, {
|
|
10094
|
+
fallback: /* @__PURE__ */ S(uh, { options: t }),
|
|
10009
10095
|
onError: (e, t) => {
|
|
10010
10096
|
console.error("Error caught by boundary:", e, t);
|
|
10011
10097
|
},
|
|
10012
10098
|
children: e
|
|
10013
|
-
}),
|
|
10099
|
+
}), fh = (e, t = {}) => (n) => /* @__PURE__ */ S(dh, {
|
|
10014
10100
|
options: t,
|
|
10015
10101
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10016
|
-
}),
|
|
10102
|
+
}), ph = (e = {}) => (t) => fh(t, e), mh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, hh = (e) => {
|
|
10017
10103
|
Op(Cp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10018
|
-
e === Cp.Translations ? Op(e, Tp(t)) : Op(e,
|
|
10104
|
+
e === Cp.Translations ? Op(e, Tp(t)) : Op(e, mh(t) ? t : { ...t });
|
|
10019
10105
|
});
|
|
10020
10106
|
};
|
|
10021
10107
|
//#endregion
|
|
10022
|
-
export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align,
|
|
10108
|
+
export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align, sh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Di as ButtonPosition, ba as ButtonType, bo as Card, fa as CheckBox, Hi as Chevron, Gi as Collapse, Ti as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, qp as DiffTable, Rp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, ep as ElementType, uu as Empty, dh as ErrorBoundary, gd as Field, fd as FileButton, bs as FileInput, _d as Flex, yd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, da as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, sl as InputGroupAddon, _s as InputReaderMethods, Ai as InputType, md as Label, Md as List, xd as ListHeading, Dd as ListSubheading, Pd as Loader, df as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, bl as NumberInput, Vd as OptionDropdown, Ud as Page, cl as Pagination, op as PopConfirm, So as Popover, Wd as Portal, Kd as PrintHeader, Os as ProgressBar, qd as RadioButton, uf as RichTextInput, pf as Row, tl as Select, Pp as SettingField, vf as SideBar, bf as Skeleton, Al as Slider, Ns as SmartUploadModal, xs as Spacer, ya as Spinner, $l as Table, dd as TableImportExport, qf as Tabs, Yo as Text, Xf as TextArea, Jf as TextLink, Oi as TextTransform, ki as Theme, ni as Toaster, Yu as Toggle, K as Tooltip, rp as TopBar, up as Tree, Sp as TreeTable, wi as TriggerType, Bf as UnitInput, Wf as UnitSlider, Mp as UnitTable, ch as UsageTracker, Ku as dismissToast, Lf as initializeContext, hh as initializeGuiLibrary, vs as readFile, Gu as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, ph as withChainableErrorBoundary, fh as withErrorBoundary };
|
package/package.json
CHANGED