@owp/core 1.24.2 → 1.25.0
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/{QuickPanel-D8WlNSMK.js → QuickPanel-uWtPXsYC.js} +3 -3
- package/dist/{QuickPanel-D8WlNSMK.js.map → QuickPanel-uWtPXsYC.js.map} +1 -1
- package/dist/constants.js +1 -1
- package/dist/hooks.js +33 -75
- package/dist/hooks.js.map +1 -1
- package/dist/{index-1U_Yytcf.js → index-DvBno1rF.js} +7800 -7776
- package/dist/{index-1U_Yytcf.js.map → index-DvBno1rF.js.map} +1 -1
- package/dist/index.js +232 -131
- package/dist/index.js.map +1 -1
- package/dist/{treeGrid-4QKOKXZw.js → treeGrid-CPgV7yMG.js} +9 -9
- package/dist/{treeGrid-4QKOKXZw.js.map → treeGrid-CPgV7yMG.js.map} +1 -1
- package/dist/{treeGridUtil-CGze1rYA.js → treeGridUtil-mbjQrrTs.js} +83 -83
- package/dist/{treeGridUtil-CGze1rYA.js.map → treeGridUtil-mbjQrrTs.js.map} +1 -1
- package/dist/types/hooks/useCommonCodeList.d.ts +4 -4
- package/dist/types/hooks/useNavigation.d.ts +4 -4
- package/dist/types/index.d.ts +3 -0
- package/dist/{useTreeGridExcelExport-B_a3dFaL.js → useTreeGridExcelExport-BPWeY2Oq.js} +770 -729
- package/dist/useTreeGridExcelExport-BPWeY2Oq.js.map +1 -0
- package/dist/utils.js +64 -6932
- package/dist/utils.js.map +1 -1
- package/dist/zipUtil-Dmq4Gna2.js +7505 -0
- package/dist/zipUtil-Dmq4Gna2.js.map +1 -0
- package/package.json +1 -1
- package/dist/OwpUtils-DgBOzRu6.js +0 -628
- package/dist/OwpUtils-DgBOzRu6.js.map +0 -1
- package/dist/useTreeGridExcelExport-B_a3dFaL.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var o = (d, n) => b(d, "name", { value: n, configurable: !0 });
|
|
3
|
-
import {
|
|
4
|
-
import { u as D, a as k, s as T, b as v, f as p, O as f, c as C, t as I } from "./index-
|
|
3
|
+
import { E as e, F as r } from "./useTreeGridExcelExport-BPWeY2Oq.js";
|
|
4
|
+
import { u as D, a as k, s as T, b as v, f as p, O as f, c as C, t as I } from "./index-DvBno1rF.js";
|
|
5
5
|
import u from "@mui/material/Divider";
|
|
6
6
|
import y from "@mui/material/List";
|
|
7
7
|
import c from "@mui/material/ListItem";
|
|
@@ -101,4 +101,4 @@ o(W, "QuickPanel");
|
|
|
101
101
|
export {
|
|
102
102
|
W as default
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=QuickPanel-
|
|
104
|
+
//# sourceMappingURL=QuickPanel-uWtPXsYC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickPanel-
|
|
1
|
+
{"version":3,"file":"QuickPanel-uWtPXsYC.js","sources":["../src/components/layouts/shared-components/quickPanel/QuickPanel.tsx"],"sourcesContent":["import { OwpScrollbars } from '@/components/OwpScrollbars';\nimport { OwpSvgIcon } from '@/components/OwpSvgIcon';\nimport { useAppDispatch, useAppSelector } from '@/store/hooks';\nimport Divider from '@mui/material/Divider';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction';\nimport ListItemText from '@mui/material/ListItemText';\nimport ListSubheader from '@mui/material/ListSubheader';\nimport { styled } from '@mui/material/styles';\nimport SwipeableDrawer from '@mui/material/SwipeableDrawer';\nimport Switch from '@mui/material/Switch';\nimport Typography from '@mui/material/Typography';\nimport { format } from 'date-fns/format';\nimport { useState } from 'react';\nimport { selectQuickPanelData, selectQuickPanelOpen, toggleQuickPanel } from './quickPanelSlice';\n\nconst StyledSwipeableDrawer = styled(SwipeableDrawer)(() => ({\n '& .MuiDrawer-paper': {\n width: 280,\n },\n}));\n\n/**\n * The quick panel.\n */\nfunction QuickPanel() {\n const dispatch = useAppDispatch();\n const data = useAppSelector(selectQuickPanelData);\n const open = useAppSelector(selectQuickPanelOpen);\n\n const [checked, setChecked] = useState<string[]>(['notifications']);\n\n const handleToggle = (value: string) => () => {\n const currentIndex = checked.indexOf(value);\n const newChecked = [...checked];\n\n if (currentIndex === -1) {\n newChecked.push(value);\n } else {\n newChecked.splice(currentIndex, 1);\n }\n\n setChecked(newChecked);\n };\n\n return (\n <StyledSwipeableDrawer\n open={open as boolean}\n anchor=\"right\"\n onOpen={() => {}}\n onClose={() => dispatch(toggleQuickPanel())}\n disableSwipeToOpen\n >\n <OwpScrollbars>\n <ListSubheader component=\"div\">Today</ListSubheader>\n\n <div className=\"mb-0 px-24 py-16\">\n <Typography className=\"mb-12 text-5xl\" color=\"text.secondary\">\n {format(new Date(), 'eeee')}\n </Typography>\n <div className=\"flex\">\n <Typography className=\"text-5xl leading-none\" color=\"text.secondary\">\n {format(new Date(), 'dd')}\n </Typography>\n <Typography className=\"text-15 leading-none\" color=\"text.secondary\">\n th\n </Typography>\n <Typography className=\"text-5xl leading-none\" color=\"text.secondary\">\n {format(new Date(), 'MMMM')}\n </Typography>\n </div>\n </div>\n <Divider />\n <List>\n <ListSubheader component=\"div\">Events</ListSubheader>\n {data &&\n (data as any).events.map((event: any) => (\n <ListItem key={event.id}>\n <ListItemText primary={event.title} secondary={event.detail} />\n </ListItem>\n ))}\n </List>\n <Divider />\n <List>\n <ListSubheader component=\"div\">Notes</ListSubheader>\n {data &&\n (data as any).notes.map((note: any) => (\n <ListItem key={note.id}>\n <ListItemText primary={note.title} secondary={note.detail} />\n </ListItem>\n ))}\n </List>\n <Divider />\n <List>\n <ListSubheader component=\"div\">Quick Settings</ListSubheader>\n <ListItem>\n <ListItemIcon className=\"min-w-36\">\n <OwpSvgIcon>material-outline:notifications</OwpSvgIcon>\n </ListItemIcon>\n <ListItemText primary=\"Notifications\" />\n <ListItemSecondaryAction>\n <Switch\n color=\"primary\"\n onChange={handleToggle('notifications')}\n checked={checked.indexOf('notifications') !== -1}\n />\n </ListItemSecondaryAction>\n </ListItem>\n <ListItem>\n <ListItemIcon className=\"min-w-36\">\n <OwpSvgIcon>material-outline:cloud</OwpSvgIcon>\n </ListItemIcon>\n <ListItemText primary=\"Cloud Sync\" />\n <ListItemSecondaryAction>\n <Switch\n color=\"secondary\"\n onChange={handleToggle('cloudSync')}\n checked={checked.indexOf('cloudSync') !== -1}\n />\n </ListItemSecondaryAction>\n </ListItem>\n <ListItem>\n <ListItemIcon className=\"min-w-36\">\n <OwpSvgIcon>material-outline:brightness_high</OwpSvgIcon>\n </ListItemIcon>\n <ListItemText primary=\"Retro Thrusters\" />\n <ListItemSecondaryAction>\n <Switch\n color=\"primary\"\n onChange={handleToggle('retroThrusters')}\n checked={checked.indexOf('retroThrusters') !== -1}\n />\n </ListItemSecondaryAction>\n </ListItem>\n </List>\n </OwpScrollbars>\n </StyledSwipeableDrawer>\n );\n}\n\nexport default QuickPanel;\n"],"names":["StyledSwipeableDrawer","styled","SwipeableDrawer","QuickPanel","dispatch","useAppDispatch","data","useAppSelector","selectQuickPanelData","open","selectQuickPanelOpen","checked","setChecked","useState","handleToggle","__name","value","currentIndex","newChecked","jsx","toggleQuickPanel","OwpScrollbars","ListSubheader","jsxs","Typography","format","Divider","List","event","ListItem","ListItemText","note","ListItemIcon","OwpSvgIcon","ListItemSecondaryAction","Switch"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAMA,IAAwBC,EAAOC,CAAe,EAAE,OAAO;AAAA,EAC3D,sBAAsB;AAAA,IACpB,OAAO;AAAA,EAAA;AAEX,EAAE;AAKF,SAASC,IAAa;AACpB,QAAMC,IAAWC,EAAA,GACXC,IAAOC,EAAeC,CAAoB,GAC1CC,IAAOF,EAAeG,CAAoB,GAE1C,CAACC,GAASC,CAAU,IAAIC,EAAmB,CAAC,eAAe,CAAC,GAE5DC,IAAe,gBAAAC,EAAA,CAACC,MAAkB,MAAM;AAC5C,UAAMC,IAAeN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gBAClC,SAASH,EAAQ,QAAQ,WAAW,MAAM;AAAA,cAAA;AAAA,YAAA,EAC5C,CACF;AAAA,UAAA,GACF;AAAA,4BACCkB,GAAA,EACC,UAAA;AAAA,YAAA,gBAAAV,EAACa,KAAa,WAAU,YACtB,UAAA,gBAAAb,EAACc,GAAA,EAAW,8CAAgC,EAAA,CAC9C;AAAA,YACA,gBAAAd,EAACW,GAAA,EAAa,SAAQ,kBAAA,CAAkB;AAAA,8BACvCI,GAAA,EACC,UAAA,gBAAAf;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,UAAUrB,EAAa,gBAAgB;AAAA,gBACvC,SAASH,EAAQ,QAAQ,gBAAgB,MAAM;AAAA,cAAA;AAAA,YAAA,EACjD,CACF;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAjHSI,EAAAZ,GAAA;"}
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a,
|
|
1
|
+
import { D as a, a as R, b as s, c as G, d as e, e as C, S as I, T as D, f as N, g as O, h as c } from "./treeGrid-CPgV7yMG.js";
|
|
2
2
|
import { F as o } from "./language-CwsGUe4C.js";
|
|
3
3
|
const E = {
|
|
4
4
|
accessToken: "jwt_access_token",
|
package/dist/hooks.js
CHANGED
|
@@ -1,78 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { u as L } from "./useTreeGridExcelExport-B_a3dFaL.js";
|
|
4
|
-
import { b as y, h as B, j as F, k as $, i as q, d as w, f as z, c as Q, l as R, p as V, n as W, o as Y, a as H, e as J, g as Z, m as ee, q as se, r as te, s as re, t as oe, v as ue } from "./useTreeGridExcelExport-B_a3dFaL.js";
|
|
5
|
-
import { S as c } from "./treeGrid-4QKOKXZw.js";
|
|
6
|
-
import { useAtomValue as i, useSetAtom as O } from "jotai";
|
|
7
|
-
import { atomWithStorage as p } from "jotai/utils";
|
|
8
|
-
import { s as f } from "./treeGridUtil-CGze1rYA.js";
|
|
9
|
-
import { useEffect as C, useRef as I } from "react";
|
|
10
|
-
import { F as ae } from "./language-CwsGUe4C.js";
|
|
11
|
-
const D = p(
|
|
12
|
-
c.currentUser,
|
|
13
|
-
void 0
|
|
14
|
-
), _ = /* @__PURE__ */ s(() => i(D), "useGetCurrentUser"), h = /* @__PURE__ */ s(() => O(D), "useSetCurrentUser"), g = p(c.currentUserId, ""), l = /* @__PURE__ */ s(() => i(g), "useGetCurrentUserId"), k = /* @__PURE__ */ s(() => O(g), "useSetCurrentUserId"), S = p(
|
|
15
|
-
c.lockLoadingProps,
|
|
16
|
-
{ loading: !1 }
|
|
17
|
-
), X = /* @__PURE__ */ s(() => i(S), "useGetPageLockLoading"), v = /* @__PURE__ */ s(() => ({ setLoading: O(S) }), "usePageLockLoading"), x = /* @__PURE__ */ s((t, e, u, r) => {
|
|
18
|
-
const o = L(), n = o == null ? void 0 : o[u];
|
|
19
|
-
C(() => {
|
|
20
|
-
!r || !n || f(
|
|
21
|
-
t,
|
|
22
|
-
e,
|
|
23
|
-
n,
|
|
24
|
-
"IPX_COMMONCODE.CODEID",
|
|
25
|
-
["IPX_COMMONCODE.CODENM", "IPX_COMMONCODE.CODEID"]
|
|
26
|
-
);
|
|
27
|
-
}, [u, e, t, r, n]);
|
|
28
|
-
}, "useTreeGridCommonCodeEnum"), K = /* @__PURE__ */ s((t, e, u) => {
|
|
29
|
-
const r = L(), o = I(e), n = e.map(({ field: a, codeId: m }) => `${a}:${m}`).join("|");
|
|
30
|
-
C(() => {
|
|
31
|
-
o.current = e;
|
|
32
|
-
}, [e]), C(() => {
|
|
33
|
-
!u || !r || o.current.forEach(({ field: a, codeId: m }) => {
|
|
34
|
-
const E = r[m];
|
|
35
|
-
E && f(
|
|
36
|
-
t,
|
|
37
|
-
a,
|
|
38
|
-
E,
|
|
39
|
-
"IPX_COMMONCODE.CODEID",
|
|
40
|
-
["IPX_COMMONCODE.CODENM", "IPX_COMMONCODE.CODEID"]
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
}, [r, n, t, u]);
|
|
44
|
-
}, "useTreeGridCommonCodeEnums");
|
|
1
|
+
import { b as a, l as u, n as r, o as t, m as o, u as n, d as C, f as i, h as m, j as L, c as g, p as G, s as d, w as S, r as c, t as p, v as f, a as E, e as T, g as h, i as x, k as A, q as D, x as U, y as k, z as v, A as N, B as l, C as I, D as P } from "./useTreeGridExcelExport-BPWeY2Oq.js";
|
|
2
|
+
import { F as w } from "./language-CwsGUe4C.js";
|
|
45
3
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
4
|
+
w as FALLBACK_LANGUAGE_LIST,
|
|
5
|
+
a as useConfirm,
|
|
6
|
+
u as useDebounce,
|
|
7
|
+
r as useDeepCompareEffect,
|
|
8
|
+
t as useDeepCompareEffectNoCheck,
|
|
9
|
+
o as useDeepCompareMemoize,
|
|
10
|
+
n as useGetCommonCodeList,
|
|
11
|
+
C as useGetCurrentLanguage,
|
|
12
|
+
i as useGetCurrentLogoSrc,
|
|
13
|
+
m as useGetCurrentUser,
|
|
14
|
+
L as useGetCurrentUserId,
|
|
15
|
+
g as useGetLanguageList,
|
|
16
|
+
G as useGetNavigationList,
|
|
17
|
+
d as useGetPageLockLoading,
|
|
18
|
+
S as useGetShortcuts,
|
|
19
|
+
c as useOwpTranslation,
|
|
20
|
+
p as usePageLockLoading,
|
|
21
|
+
f as usePrevious,
|
|
22
|
+
E as useSetCommonCodeList,
|
|
23
|
+
T as useSetCurrentLanguage,
|
|
24
|
+
h as useSetCurrentLogoSrc,
|
|
25
|
+
x as useSetCurrentUser,
|
|
26
|
+
A as useSetCurrentUserId,
|
|
27
|
+
D as useSetNavigationList,
|
|
28
|
+
U as useSetShortcuts,
|
|
29
|
+
k as useStorage,
|
|
30
|
+
v as useThemeMediaQuery,
|
|
31
|
+
N as useTimeout,
|
|
32
|
+
l as useTreeGridCommonCodeEnum,
|
|
33
|
+
I as useTreeGridCommonCodeEnums,
|
|
34
|
+
P as useTreeGridExcelExport
|
|
77
35
|
};
|
|
78
36
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":[
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|