@oliasoft-open-source/react-ui-library 6.1.0-beta-1 → 6.1.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAA+B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAG/E,OAAO,EAAkB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAA+B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAG/E,OAAO,EAAkB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIrE,eAAO,MAAM,SAAS;;;;;;;;;EASpB,CAAC;AAEH,eAAO,MAAM,cAAc,GACzB,OAAO,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,EACrC,SAAQ,oBAAyB,uBAmClC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,qFAQjC;IACD,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,mDA0DA,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8905,7 +8905,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
8905
8905
|
sectionName: a
|
|
8906
8906
|
}) }] };
|
|
8907
8907
|
})
|
|
8908
|
-
} }), If = Object.freeze({
|
|
8908
|
+
} }), If = ["user", "unittemplate"], Lf = Object.freeze({
|
|
8909
8909
|
summary: {
|
|
8910
8910
|
label: "Summary",
|
|
8911
8911
|
value: "summary"
|
|
@@ -8914,9 +8914,9 @@ var Cf = ((e = {}) => Sf({
|
|
|
8914
8914
|
label: "Compare",
|
|
8915
8915
|
value: "compare"
|
|
8916
8916
|
}
|
|
8917
|
-
}),
|
|
8917
|
+
}), Rf = (e, t = {}) => {
|
|
8918
8918
|
var n;
|
|
8919
|
-
let r = (n = t.hiddenKeys) == null ? [] : n, i = [], a = (e, n = []) => {
|
|
8919
|
+
let r = [...If, ...(n = t.hiddenKeys) == null ? [] : n], i = [], a = (e, n = []) => {
|
|
8920
8920
|
e && Object.keys(e).forEach((o) => {
|
|
8921
8921
|
var s;
|
|
8922
8922
|
let c = e[o];
|
|
@@ -8933,8 +8933,8 @@ var Cf = ((e = {}) => Sf({
|
|
|
8933
8933
|
});
|
|
8934
8934
|
};
|
|
8935
8935
|
return e ? (a(e), i) : [];
|
|
8936
|
-
},
|
|
8937
|
-
let s = [
|
|
8936
|
+
}, zf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, onClose: o }) => {
|
|
8937
|
+
let s = [Lf.summary, Lf.compare].map(({ label: e, value: t }) => ({
|
|
8938
8938
|
label: e,
|
|
8939
8939
|
value: t
|
|
8940
8940
|
})), [c, l] = m(s[0]), { diffs: u = void 0 } = e || {};
|
|
@@ -8954,7 +8954,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
8954
8954
|
}), c.value === "summary" ? /* @__PURE__ */ z(Ff, {
|
|
8955
8955
|
userName: e.userName,
|
|
8956
8956
|
sectionNames: a,
|
|
8957
|
-
diffs:
|
|
8957
|
+
diffs: Rf(u, i)
|
|
8958
8958
|
}) : p ? /* @__PURE__ */ z("div", {
|
|
8959
8959
|
style: { padding: 16 },
|
|
8960
8960
|
children: p
|
|
@@ -8971,7 +8971,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
8971
8971
|
height: "90vh"
|
|
8972
8972
|
} })
|
|
8973
8973
|
});
|
|
8974
|
-
},
|
|
8974
|
+
}, Bf = [
|
|
8975
8975
|
{
|
|
8976
8976
|
label: "10 / page",
|
|
8977
8977
|
value: 10
|
|
@@ -8984,8 +8984,8 @@ var Cf = ((e = {}) => Sf({
|
|
|
8984
8984
|
label: "50 / page",
|
|
8985
8985
|
value: 50
|
|
8986
8986
|
}
|
|
8987
|
-
],
|
|
8988
|
-
let { diffs: t, userName: n, source: r, operation: i, operationMetaData: a } = e, o =
|
|
8987
|
+
], Vf = (e) => {
|
|
8988
|
+
let { diffs: t, userName: n, source: r, operation: i, operationMetaData: a } = e, o = Rf(t).length, s = o ? `${o} change${o === 1 ? "" : "s"}` : "no field changes";
|
|
8989
8989
|
if (r === "API") return i === "Created" ? "Created through API" : "Changed through API";
|
|
8990
8990
|
switch (i) {
|
|
8991
8991
|
case "Created": return `Created by ${n}`;
|
|
@@ -8995,7 +8995,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
8995
8995
|
case "Updated": return `Updated by ${n} (${s})`;
|
|
8996
8996
|
default: return `Change by ${n}`;
|
|
8997
8997
|
}
|
|
8998
|
-
},
|
|
8998
|
+
}, Hf = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, filterToggles: s = [], transformDiffsConfig: c, onChangeRowsPerPage: l, onSelectPage: u, onClickSnapshot: d, snapshotLoading: f, getActions: p, isLogDisabled: h }) => {
|
|
8999
8999
|
let [g, _] = m(!1), [v, y] = m(null), b = (e) => {
|
|
9000
9000
|
if (e.snapshot) {
|
|
9001
9001
|
d == null || d(e.snapshot, e);
|
|
@@ -9014,7 +9014,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
9014
9014
|
return {
|
|
9015
9015
|
cells: [
|
|
9016
9016
|
{
|
|
9017
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9017
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : Vf(e),
|
|
9018
9018
|
type: "Link",
|
|
9019
9019
|
disabled: n,
|
|
9020
9020
|
onClick: n ? void 0 : () => b(e),
|
|
@@ -9076,14 +9076,14 @@ var Cf = ((e = {}) => Sf({
|
|
|
9076
9076
|
onChange: (e) => {
|
|
9077
9077
|
l(Number(e.target.value));
|
|
9078
9078
|
},
|
|
9079
|
-
options:
|
|
9079
|
+
options: Bf,
|
|
9080
9080
|
value: a
|
|
9081
9081
|
},
|
|
9082
9082
|
onSelectPage: (e) => u(e),
|
|
9083
9083
|
small: !0
|
|
9084
9084
|
} }
|
|
9085
9085
|
} })
|
|
9086
|
-
}), g && v && v.diffs && /* @__PURE__ */ z(
|
|
9086
|
+
}), g && v && v.diffs && /* @__PURE__ */ z(zf, {
|
|
9087
9087
|
sectionNames: o,
|
|
9088
9088
|
isOpen: g,
|
|
9089
9089
|
onClose: () => _(!1),
|
|
@@ -9092,7 +9092,7 @@ var Cf = ((e = {}) => Sf({
|
|
|
9092
9092
|
data: t,
|
|
9093
9093
|
transformDiffsConfig: c
|
|
9094
9094
|
})] });
|
|
9095
|
-
},
|
|
9095
|
+
}, Uf = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9096
9096
|
let i = window.location.href, a = p(i);
|
|
9097
9097
|
return c(() => {
|
|
9098
9098
|
a.current = i;
|
|
@@ -9115,10 +9115,10 @@ var Cf = ((e = {}) => Sf({
|
|
|
9115
9115
|
});
|
|
9116
9116
|
};
|
|
9117
9117
|
}, [e, t]), null;
|
|
9118
|
-
},
|
|
9118
|
+
}, Wf = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Gf = (e) => {
|
|
9119
9119
|
yd(md.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9120
|
-
e === md.Translations ? yd(e, gd(t)) : yd(e,
|
|
9120
|
+
e === md.Translations ? yd(e, gd(t)) : yd(e, Wf(t) ? t : { ...t });
|
|
9121
9121
|
});
|
|
9122
9122
|
};
|
|
9123
9123
|
//#endregion
|
|
9124
|
-
export { Jr as Accordion, pi as AccordionWithDefaultToggle, Xi as Actions, Dr as Align,
|
|
9124
|
+
export { Jr as Accordion, pi as AccordionWithDefaultToggle, Xi as Actions, Dr as Align, Hf as AuditLog, Ii as Badge, ea as Breadcrumb, Qi as BreadcrumbLinkType, K as Button, na as ButtonGroup, Or as ButtonPosition, _i as ButtonType, ia as Card, li as CheckBox, Hr as Chevron, Gr as Collapse, Er as Color, la as ColorInput, fa as Column, Sa as Dialog, kd as DiffViewer, U as DisabledContext, _a as Divider, ka as Drawer, Pu as ElementType, Oc as Empty, Al as Field, El as FileButton, za as FileInput, jl as Flex, Nl as FormRow, Ll as Grid, V as GroupOrder, ya as Heading, ci as HelpIcon, W as Icon, H as IconType, Pa as Input, Ma as InputGroup, Ds as InputGroupAddon, Ia as InputReaderMethods, jr as InputType, Ol as Label, Xl as List, zl as ListHeading, Gl as ListSubheading, Ql as Loader, Ji as Menu, wi as MenuCarat, Ci as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Us as NumberInput, iu as OptionDropdown, ou as Page, Os as Pagination, Bu as PopConfirm, sa as Popover, Ha as Portal, cu as PrintHeader, Ya as ProgressBar, lu as RadioButton, mu as RichTextInput, gu as Row, xs as Select, Td as SettingField, xu as SideBar, Cu as Skeleton, Zs as Slider, eo as SmartUploadModal, Ba as Spacer, gi as Spinner, _c as Table, Tl as TableImportExport, Du as Tabs, ha as Text, Au as TextArea, Ou as TextLink, kr as TextTransform, Ar as Theme, ur as Toaster, ll as Toggle, G as Tooltip, Lu as TopBar, Wu as Tree, Ju as TreeTable, Tr as TriggerType, pd as UnitInput, Cd as UnitTable, Uf as UsageTracker, ol as dismissToast, ud as initializeContext, Gf as initializeGuiLibrary, La as readFile, al as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|
package/package.json
CHANGED