@oliasoft-open-source/react-ui-library 5.7.0-beta-10 → 5.7.0-beta-12
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 +13 -3
- package/dist/index.js +160 -58
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export declare enum Align {
|
|
|
35
35
|
CENTER = "center"
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export declare function AuditLog({ logs, data, total, loading, selectedPage, rowsPerPage, filterToggles, onChangeRowsPerPage, onSelectPage, }: IAuditLogProps): JSX_2.Element;
|
|
39
|
+
|
|
38
40
|
export declare interface AuditLogItem {
|
|
39
41
|
id: string;
|
|
40
42
|
userName: string;
|
|
@@ -49,8 +51,6 @@ declare type AuditLogOperation = 'Created' | 'Cloned' | 'Reverted' | 'Imported'
|
|
|
49
51
|
|
|
50
52
|
declare type AuditLogSource = 'System' | 'Application' | 'API';
|
|
51
53
|
|
|
52
|
-
export declare function AuditLogTable({ logs, data, total, loading, selectedPage, rowsPerPage, onChangeRowsPerPage, onSelectPage, }: IAuditLogTableProps): JSX_2.Element;
|
|
53
|
-
|
|
54
54
|
export declare const Badge: ({ children, color, title, dot, margin, small, }: IBadgeProps) => JSX_2.Element;
|
|
55
55
|
|
|
56
56
|
export declare const Breadcrumb: ({ links, small }: IBreadcrumbProps) => JSX_2.Element;
|
|
@@ -120,6 +120,15 @@ export declare const FileButton: ({ file, accept, multi, name, disabled, onChang
|
|
|
120
120
|
|
|
121
121
|
export declare const FileInput: ({ label, loading, placeholder, disabled, file, accept, multi, name, width, onChange, testId, }: IFileInputProps) => ReactElement;
|
|
122
122
|
|
|
123
|
+
declare type FilterToggle = {
|
|
124
|
+
id: string;
|
|
125
|
+
label: string;
|
|
126
|
+
checked: boolean;
|
|
127
|
+
small?: boolean;
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
onChange: () => void;
|
|
130
|
+
};
|
|
131
|
+
|
|
123
132
|
export declare const Flex: ({ alignItems, justifyContent, direction, height, children, wrap, gap, }: IFlexProps) => JSX_2.Element;
|
|
124
133
|
|
|
125
134
|
export declare const FormRow: ({ children }: IFormRowProps) => JSX_2.Element;
|
|
@@ -184,12 +193,13 @@ export declare interface IActionProps {
|
|
|
184
193
|
closeLayer?: TEmpty;
|
|
185
194
|
}
|
|
186
195
|
|
|
187
|
-
declare interface
|
|
196
|
+
declare interface IAuditLogProps {
|
|
188
197
|
logs: AuditLogItem[];
|
|
189
198
|
total: number;
|
|
190
199
|
loading?: boolean;
|
|
191
200
|
selectedPage: number;
|
|
192
201
|
rowsPerPage: number;
|
|
202
|
+
filterToggles?: FilterToggle[];
|
|
193
203
|
onSelectPage: (page: number) => void;
|
|
194
204
|
onChangeRowsPerPage: (n: number) => void;
|
|
195
205
|
data: any;
|
package/dist/index.js
CHANGED
|
@@ -6569,7 +6569,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6569
6569
|
} : {
|
|
6570
6570
|
value: G,
|
|
6571
6571
|
unit: U
|
|
6572
|
-
}),
|
|
6572
|
+
}), Ad = k || K?.value === void 0, [J, jd] = useState(w ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM), Md = !!(O || n), Y = C && C.find((e) => {
|
|
6573
6573
|
if (!e?.value) return;
|
|
6574
6574
|
if (E) return E === e.valueKey;
|
|
6575
6575
|
let t = isValueWithUnit(e.value) ? getUnit(e.value) : "", { value: n = l } = convertUnit({
|
|
@@ -6578,7 +6578,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6578
6578
|
toUnit: t
|
|
6579
6579
|
});
|
|
6580
6580
|
return withUnit(n, t) === e.value;
|
|
6581
|
-
}),
|
|
6581
|
+
}), Nd = () => {
|
|
6582
6582
|
let e = l ?? "", t = K.unit;
|
|
6583
6583
|
if (checkConversion({
|
|
6584
6584
|
value: e,
|
|
@@ -6592,7 +6592,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6592
6592
|
return null;
|
|
6593
6593
|
}
|
|
6594
6594
|
} else return getAltUnitsListByQuantity(u)?.map((e) => ["", e?.unit]);
|
|
6595
|
-
},
|
|
6595
|
+
}, Pd = (t) => {
|
|
6596
6596
|
let n = getStringName(e), r = t.target, { value: i, selectionStart: a } = r, o = withUnit(i, K?.unit || ""), s = A ? withUnit(convertAndGetValue(o, B), B) : o;
|
|
6597
6597
|
h({ target: {
|
|
6598
6598
|
value: s,
|
|
@@ -6605,7 +6605,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6605
6605
|
}), R(() => {
|
|
6606
6606
|
r.selectionStart = a, r.selectionEnd = a;
|
|
6607
6607
|
});
|
|
6608
|
-
},
|
|
6608
|
+
}, Fd = (e, t) => {
|
|
6609
6609
|
t === K.unit || isNaN(Number(e)) || (q({
|
|
6610
6610
|
value: e,
|
|
6611
6611
|
unit: t
|
|
@@ -6636,7 +6636,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6636
6636
|
e !== void 0 && q({
|
|
6637
6637
|
value: e,
|
|
6638
6638
|
unit: t
|
|
6639
|
-
}), C &&
|
|
6639
|
+
}), C && jd(Y && T ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
|
|
6640
6640
|
}
|
|
6641
6641
|
}, [
|
|
6642
6642
|
U,
|
|
@@ -6644,7 +6644,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6644
6644
|
i,
|
|
6645
6645
|
T
|
|
6646
6646
|
]);
|
|
6647
|
-
let X =
|
|
6647
|
+
let X = Nd(), Z = label(K.unit) || K.unit || "", Id = p || !X || X && X.length === 1, Q = getStringName(e), $, Ld = (t) => {
|
|
6648
6648
|
let r = t?.value ? t.value : "", [i = "", a = ""] = isValueWithUnit(r) ? split(r) : [r], o = withPrettyUnitLabel(r);
|
|
6649
6649
|
if (checkConversion({
|
|
6650
6650
|
value: r,
|
|
@@ -6664,7 +6664,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6664
6664
|
type: MenuType.OPTION,
|
|
6665
6665
|
inline: !0,
|
|
6666
6666
|
onClick: () => {
|
|
6667
|
-
validateNumber(i).valid && !n && (
|
|
6667
|
+
validateNumber(i).valid && !n && (jd(PredefinedOptionsMenuState.PREDEFINED), h({ target: {
|
|
6668
6668
|
value: r,
|
|
6669
6669
|
name: typeof e == "string" ? e : e?.fieldName || "",
|
|
6670
6670
|
predefinedSelected: !0,
|
|
@@ -6691,10 +6691,10 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6691
6691
|
label: "Custom",
|
|
6692
6692
|
selected: J === PredefinedOptionsMenuState.CUSTOM
|
|
6693
6693
|
}], C?.length) {
|
|
6694
|
-
let e = C.map(
|
|
6694
|
+
let e = C.map(Ld);
|
|
6695
6695
|
$ = [...$, ...e];
|
|
6696
6696
|
}
|
|
6697
|
-
let
|
|
6697
|
+
let Rd = (e) => {
|
|
6698
6698
|
if (isValueWithUnit(e)) {
|
|
6699
6699
|
let t = getUnit(e), { value: n } = safeConvertValue({
|
|
6700
6700
|
value: e,
|
|
@@ -6706,7 +6706,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6706
6706
|
return n;
|
|
6707
6707
|
}
|
|
6708
6708
|
return e;
|
|
6709
|
-
},
|
|
6709
|
+
}, zd = !C && (!F || F === GroupOrder.FIRST) ? GroupOrder.FIRST : GroupOrder.MIDDLE, Bd = !F || F === GroupOrder.LAST ? GroupOrder.LAST : GroupOrder.MIDDLE;
|
|
6710
6710
|
return /* @__PURE__ */ jsx("div", {
|
|
6711
6711
|
className: J === PredefinedOptionsMenuState.PREDEFINED ? cx(unit_input_module_default.predefinedMenuActive) : "",
|
|
6712
6712
|
children: /* @__PURE__ */ jsxs(InputGroup, {
|
|
@@ -6738,31 +6738,31 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6738
6738
|
name: Q,
|
|
6739
6739
|
testId: x,
|
|
6740
6740
|
disabled: n,
|
|
6741
|
-
placeholder:
|
|
6741
|
+
placeholder: Rd(t),
|
|
6742
6742
|
value: K.value,
|
|
6743
|
-
onChange:
|
|
6743
|
+
onChange: Pd,
|
|
6744
6744
|
onFocus: v,
|
|
6745
6745
|
error: i === null ? void 0 : i,
|
|
6746
6746
|
warning: S === null ? void 0 : S,
|
|
6747
6747
|
left: a,
|
|
6748
|
-
allowEmpty:
|
|
6748
|
+
allowEmpty: Ad,
|
|
6749
6749
|
validationCallback: (e, t) => D(Q, t),
|
|
6750
6750
|
enableCosmeticRounding: j,
|
|
6751
6751
|
enableDisplayRounding: M,
|
|
6752
6752
|
roundDisplayValue: N,
|
|
6753
|
-
groupOrder:
|
|
6754
|
-
disableInternalErrorValidationMessages:
|
|
6753
|
+
groupOrder: zd,
|
|
6754
|
+
disableInternalErrorValidationMessages: Md,
|
|
6755
6755
|
small: o,
|
|
6756
6756
|
selectOnFocus: P,
|
|
6757
6757
|
tooltip: I
|
|
6758
6758
|
}, Q)
|
|
6759
6759
|
}),
|
|
6760
|
-
Z && (
|
|
6761
|
-
groupOrder:
|
|
6760
|
+
Z && (Id || !H ? /* @__PURE__ */ jsx(InputGroupAddon, {
|
|
6761
|
+
groupOrder: Bd,
|
|
6762
6762
|
small: o,
|
|
6763
6763
|
children: Z
|
|
6764
6764
|
}) : /* @__PURE__ */ jsx(Menu, {
|
|
6765
|
-
groupOrder:
|
|
6765
|
+
groupOrder: Bd,
|
|
6766
6766
|
maxHeight: 380,
|
|
6767
6767
|
disabled: r,
|
|
6768
6768
|
testId: x && `${x}-menu`,
|
|
@@ -6778,7 +6778,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
|
|
|
6778
6778
|
label: j ? safeRoundNumbers(i) : i,
|
|
6779
6779
|
inline: !0,
|
|
6780
6780
|
onClick: (n) => {
|
|
6781
|
-
n.stopPropagation(),
|
|
6781
|
+
n.stopPropagation(), Fd(e, t);
|
|
6782
6782
|
},
|
|
6783
6783
|
description: r,
|
|
6784
6784
|
selected: r === Z,
|
|
@@ -8316,7 +8316,115 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8316
8316
|
minLength: 120
|
|
8317
8317
|
},
|
|
8318
8318
|
cloneDiffValues: !0
|
|
8319
|
-
}),
|
|
8319
|
+
}), sectionNames = [
|
|
8320
|
+
{
|
|
8321
|
+
sectionKey: "hierarchy",
|
|
8322
|
+
sectionLabel: "Hierarchy"
|
|
8323
|
+
},
|
|
8324
|
+
{
|
|
8325
|
+
sectionKey: "hierarchyPermissions",
|
|
8326
|
+
sectionLabel: "Hierarchy Permissions"
|
|
8327
|
+
},
|
|
8328
|
+
{
|
|
8329
|
+
sectionKey: "hierarchyOptionalParameters",
|
|
8330
|
+
sectionLabel: "Hierarchy Optional Parameters"
|
|
8331
|
+
},
|
|
8332
|
+
{
|
|
8333
|
+
sectionKey: "general",
|
|
8334
|
+
sectionLabel: "General"
|
|
8335
|
+
},
|
|
8336
|
+
{
|
|
8337
|
+
sectionKey: "generalAppearance",
|
|
8338
|
+
sectionLabel: "General — Appearance"
|
|
8339
|
+
},
|
|
8340
|
+
{
|
|
8341
|
+
sectionKey: "generalUnitSettings",
|
|
8342
|
+
sectionLabel: "General — Unit Settings"
|
|
8343
|
+
},
|
|
8344
|
+
{
|
|
8345
|
+
sectionKey: "generalUnitPrecision",
|
|
8346
|
+
sectionLabel: "General — Unit Precision"
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
sectionKey: "trajectory",
|
|
8350
|
+
sectionLabel: "Trajectory"
|
|
8351
|
+
},
|
|
8352
|
+
{
|
|
8353
|
+
sectionKey: "antiCollision",
|
|
8354
|
+
sectionLabel: "Anti-Collision"
|
|
8355
|
+
},
|
|
8356
|
+
{
|
|
8357
|
+
sectionKey: "casingDesign",
|
|
8358
|
+
sectionLabel: "Casing Design"
|
|
8359
|
+
},
|
|
8360
|
+
{
|
|
8361
|
+
sectionKey: "casingDesignFactors",
|
|
8362
|
+
sectionLabel: "Casing Design — Factors"
|
|
8363
|
+
},
|
|
8364
|
+
{
|
|
8365
|
+
sectionKey: "casingDesignKickTolerance",
|
|
8366
|
+
sectionLabel: "Casing Design — Kick Tolerance"
|
|
8367
|
+
},
|
|
8368
|
+
{
|
|
8369
|
+
sectionKey: "casingDesignStressAnalysisOptions",
|
|
8370
|
+
sectionLabel: "Casing Design — Stress Analysis Options"
|
|
8371
|
+
},
|
|
8372
|
+
{
|
|
8373
|
+
sectionKey: "casingDesignLoadsDefaultConfig",
|
|
8374
|
+
sectionLabel: "Casing Design — Loads Default Config"
|
|
8375
|
+
},
|
|
8376
|
+
{
|
|
8377
|
+
sectionKey: "casingDesignMultipleFlowSimulations",
|
|
8378
|
+
sectionLabel: "Casing Design — Multiple Flow Simulations"
|
|
8379
|
+
},
|
|
8380
|
+
{
|
|
8381
|
+
sectionKey: "annularFluidExpansion",
|
|
8382
|
+
sectionLabel: "Annular Fluid Expansion"
|
|
8383
|
+
},
|
|
8384
|
+
{
|
|
8385
|
+
sectionKey: "drillingMechanics",
|
|
8386
|
+
sectionLabel: "Drilling Mechanics"
|
|
8387
|
+
},
|
|
8388
|
+
{
|
|
8389
|
+
sectionKey: "drillingMechanicsGeneral",
|
|
8390
|
+
sectionLabel: "Drilling Mechanics — General"
|
|
8391
|
+
},
|
|
8392
|
+
{
|
|
8393
|
+
sectionKey: "drillingMechanicsHydraulics",
|
|
8394
|
+
sectionLabel: "Drilling Mechanics — Hydraulics"
|
|
8395
|
+
},
|
|
8396
|
+
{
|
|
8397
|
+
sectionKey: "drillingMechanicsSurgeAndSwab",
|
|
8398
|
+
sectionLabel: "Drilling Mechanics — Surge & Swab"
|
|
8399
|
+
},
|
|
8400
|
+
{
|
|
8401
|
+
sectionKey: "drillingMechanicsTorqueAndDrag",
|
|
8402
|
+
sectionLabel: "Drilling Mechanics — Torque & Drag"
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
sectionKey: "drillingMechanicsWear",
|
|
8406
|
+
sectionLabel: "Drilling Mechanics — Wear"
|
|
8407
|
+
},
|
|
8408
|
+
{
|
|
8409
|
+
sectionKey: "tempsim",
|
|
8410
|
+
sectionLabel: "TempSim"
|
|
8411
|
+
},
|
|
8412
|
+
{
|
|
8413
|
+
sectionKey: "libraries",
|
|
8414
|
+
sectionLabel: "Libraries"
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
sectionKey: "automaticDesign",
|
|
8418
|
+
sectionLabel: "Automatic Design"
|
|
8419
|
+
},
|
|
8420
|
+
{
|
|
8421
|
+
sectionKey: "webhooks",
|
|
8422
|
+
sectionLabel: "Webhooks"
|
|
8423
|
+
}
|
|
8424
|
+
], getSectionName = (e) => {
|
|
8425
|
+
let t = e.reverse();
|
|
8426
|
+
return sectionNames.find((e) => t.find((t) => t.includes(e.sectionKey)))?.sectionLabel || "";
|
|
8427
|
+
}, defaultMessage = (e) => {
|
|
8320
8428
|
switch (e.length) {
|
|
8321
8429
|
case 1: {
|
|
8322
8430
|
let [t] = e;
|
|
@@ -8351,16 +8459,18 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8351
8459
|
}, ChangesOverview = ({ diffs: e }) => {
|
|
8352
8460
|
let t = {
|
|
8353
8461
|
headers: [{ cells: [
|
|
8354
|
-
{ value: "
|
|
8462
|
+
{ value: "Type" },
|
|
8355
8463
|
{ value: "Before" },
|
|
8356
|
-
{ value: "After" }
|
|
8464
|
+
{ value: "After" },
|
|
8465
|
+
{ value: "" }
|
|
8357
8466
|
] }],
|
|
8358
8467
|
rows: e.map((e) => {
|
|
8359
|
-
let { deltaFormat: t } = e, { type:
|
|
8468
|
+
let { deltaFormat: t, path: n } = e, r = getSectionName(n), { type: i, before: a, after: o } = defaultMessage(t);
|
|
8360
8469
|
return { cells: [
|
|
8361
|
-
{ value:
|
|
8362
|
-
{ value:
|
|
8363
|
-
{ value:
|
|
8470
|
+
{ value: i },
|
|
8471
|
+
{ value: a },
|
|
8472
|
+
{ value: o },
|
|
8473
|
+
{ value: r }
|
|
8364
8474
|
] };
|
|
8365
8475
|
})
|
|
8366
8476
|
};
|
|
@@ -8502,8 +8612,8 @@ function countDeltas(e) {
|
|
|
8502
8612
|
text: 0
|
|
8503
8613
|
});
|
|
8504
8614
|
}
|
|
8505
|
-
function
|
|
8506
|
-
let [
|
|
8615
|
+
function AuditLog({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, filterToggles: o = [], onChangeRowsPerPage: s, onSelectPage: c }) {
|
|
8616
|
+
let [l, u] = useState(!1), [d, f] = useState(null), p = [
|
|
8507
8617
|
{
|
|
8508
8618
|
label: "10 / page",
|
|
8509
8619
|
value: 10
|
|
@@ -8520,7 +8630,7 @@ function AuditLogTable({ logs: e, data: t, total: n, loading: r, selectedPage: i
|
|
|
8520
8630
|
label: "Show all",
|
|
8521
8631
|
value: 0
|
|
8522
8632
|
}
|
|
8523
|
-
],
|
|
8633
|
+
], h = ({ diffs: e, userName: t, source: n, operation: r, operationMetaData: i }) => {
|
|
8524
8634
|
let a = countDeltas(e), o = a.total ? `${a.total} change${a.total === 1 ? "" : "s"}` : "no field changes";
|
|
8525
8635
|
if (n === "API") return r === "Created" ? `Created through API by ${t || "Unknown user"}` : `Changed through API by ${t || "Unknown user"}`;
|
|
8526
8636
|
switch (r) {
|
|
@@ -8531,18 +8641,18 @@ function AuditLogTable({ logs: e, data: t, total: n, loading: r, selectedPage: i
|
|
|
8531
8641
|
case "Updated": return `Updated by ${t} (${o})`;
|
|
8532
8642
|
default: return `Change by ${t}`;
|
|
8533
8643
|
}
|
|
8534
|
-
},
|
|
8644
|
+
}, g = [{ cells: [
|
|
8535
8645
|
{ value: "Change" },
|
|
8536
8646
|
{ value: "Modified by" },
|
|
8537
8647
|
{ value: "Using" },
|
|
8538
8648
|
{ value: "Operation" },
|
|
8539
8649
|
{ value: "Date" }
|
|
8540
|
-
] }],
|
|
8650
|
+
] }], _ = e.map((e) => ({ cells: [
|
|
8541
8651
|
{
|
|
8542
|
-
value:
|
|
8652
|
+
value: h(e),
|
|
8543
8653
|
type: "Link",
|
|
8544
8654
|
onClick: () => {
|
|
8545
|
-
|
|
8655
|
+
u(!0), f(e);
|
|
8546
8656
|
},
|
|
8547
8657
|
breakWord: !0
|
|
8548
8658
|
},
|
|
@@ -8570,21 +8680,13 @@ function AuditLogTable({ logs: e, data: t, total: n, loading: r, selectedPage: i
|
|
|
8570
8680
|
heading: /* @__PURE__ */ jsxs(Flex, {
|
|
8571
8681
|
gap: !0,
|
|
8572
8682
|
wrap: !0,
|
|
8573
|
-
children: [
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
}),
|
|
8581
|
-
/* @__PURE__ */ jsx(Toggle, {
|
|
8582
|
-
small: !0,
|
|
8583
|
-
checked: h,
|
|
8584
|
-
onChange: () => g(!h),
|
|
8585
|
-
label: "Include migrations"
|
|
8586
|
-
})
|
|
8587
|
-
]
|
|
8683
|
+
children: [/* @__PURE__ */ jsx(Heading, { children: "CHANGES" }), o?.map((e) => /* @__PURE__ */ jsx(Toggle, {
|
|
8684
|
+
small: e.small ?? !0,
|
|
8685
|
+
checked: e.checked,
|
|
8686
|
+
onChange: e.onChange,
|
|
8687
|
+
label: e.label,
|
|
8688
|
+
disabled: e.disabled
|
|
8689
|
+
}, e.id))]
|
|
8588
8690
|
}),
|
|
8589
8691
|
padding: !1,
|
|
8590
8692
|
children: r ? /* @__PURE__ */ jsx(Loader, {
|
|
@@ -8592,8 +8694,8 @@ function AuditLogTable({ logs: e, data: t, total: n, loading: r, selectedPage: i
|
|
|
8592
8694
|
theme: Theme.WHITE,
|
|
8593
8695
|
children: /* @__PURE__ */ jsx(Spinner, { dark: !0 })
|
|
8594
8696
|
}) : /* @__PURE__ */ jsx(Table, { table: {
|
|
8595
|
-
headers:
|
|
8596
|
-
rows:
|
|
8697
|
+
headers: g,
|
|
8698
|
+
rows: _,
|
|
8597
8699
|
fixedWidth: "100%",
|
|
8598
8700
|
bordered: !1,
|
|
8599
8701
|
actionsRight: !0,
|
|
@@ -8603,20 +8705,20 @@ function AuditLogTable({ logs: e, data: t, total: n, loading: r, selectedPage: i
|
|
|
8603
8705
|
rowsPerPage: {
|
|
8604
8706
|
onChange: (e) => {
|
|
8605
8707
|
let { value: t } = e.target;
|
|
8606
|
-
|
|
8708
|
+
s(Number(t));
|
|
8607
8709
|
},
|
|
8608
|
-
options:
|
|
8710
|
+
options: p,
|
|
8609
8711
|
value: a
|
|
8610
8712
|
},
|
|
8611
|
-
onSelectPage: (e) =>
|
|
8713
|
+
onSelectPage: (e) => c(e),
|
|
8612
8714
|
small: !0
|
|
8613
8715
|
} }
|
|
8614
8716
|
} })
|
|
8615
|
-
}),
|
|
8616
|
-
isOpen:
|
|
8617
|
-
onClose: () =>
|
|
8717
|
+
}), l && d && /* @__PURE__ */ jsx(comparison_view_modal_default, {
|
|
8718
|
+
isOpen: l,
|
|
8719
|
+
onClose: () => u(!1),
|
|
8618
8720
|
auditLogs: e,
|
|
8619
|
-
auditLog:
|
|
8721
|
+
auditLog: d,
|
|
8620
8722
|
data: t
|
|
8621
8723
|
})] });
|
|
8622
8724
|
}
|
|
@@ -8629,4 +8731,4 @@ const isPrimitiveValue = (e) => typeof e == "string" || typeof e == "number" ||
|
|
|
8629
8731
|
}
|
|
8630
8732
|
});
|
|
8631
8733
|
};
|
|
8632
|
-
export { Accordion, AccordionWithDefaultToggle, Actions, Align,
|
|
8734
|
+
export { Accordion, AccordionWithDefaultToggle, Actions, Align, AuditLog, Badge, Breadcrumb, BreadcrumbLinkType, Button, ButtonGroup, ButtonPosition, ButtonType, Card, CheckBox, Chevron, Color, Column, Dialog, DiffViewer, DisabledContext, Divider, Drawer, ElementType, Empty, Field, FileButton, FileInput, Flex, FormRow, Grid, GroupOrder, Heading, HelpIcon, Icon, IconType, Input, InputGroup, InputGroupAddon, InputReaderMethods, InputType, Label, List, ListHeading, ListSubheading, Loader, Menu, MenuCarat, MenuType, Message, MessageType, Modal, NativeSelect, NumberInput, OptionDropdown, Page, Pagination, PopConfirm, Popover, Portal, PrintHeader, ProgressBar, RadioButton, RichTextInput, Row, Select, SettingField, SideBar, Slider, SmartUploadModal, Spacer, Spinner, Table, TableImportExport, Tabs, Text, TextArea, TextLink, TextTransform, Theme, Toaster, Toggle, Tooltip, TopBar, Tree, TriggerType, UnitInput, UnitTable, dismissToast, initializeContext, initializeGuiLibrary, readFile, toast, useFocus, useKeyboardEvent, useWindowWidth };
|
package/package.json
CHANGED