@owp/core 1.4.6 → 1.4.7
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-AgD0pim6.js → QuickPanel-AtCanxQh.js} +2 -2
- package/dist/{QuickPanel-AgD0pim6.js.map → QuickPanel-AtCanxQh.js.map} +1 -1
- package/dist/{index-NG8uZGT4.js → index-B9stxbZn.js} +14 -14
- package/dist/{index-NG8uZGT4.js.map → index-B9stxbZn.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/OwpPicker/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +2 -2
- package/dist/types/components/OwpPicker/OwpDateRangePicker.d.ts +2 -2
- package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +2 -2
- package/dist/types/components/OwpPicker/OwpYearRangePicker.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var o = (d, n) => b(d, "name", { value: n, configurable: !0 });
|
|
3
|
-
import { u as D, a as k, s as T, b as v, j as e, c as r, f as p, O as f, d as C, t as I } from "./index-
|
|
3
|
+
import { u as D, a as k, s as T, b as v, j as e, c as r, f as p, O as f, d as C, t as I } from "./index-B9stxbZn.js";
|
|
4
4
|
import u from "@mui/material/Divider";
|
|
5
5
|
import y from "@mui/material/List";
|
|
6
6
|
import c from "@mui/material/ListItem";
|
|
@@ -100,4 +100,4 @@ o(V, "QuickPanel");
|
|
|
100
100
|
export {
|
|
101
101
|
V as default
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=QuickPanel-
|
|
103
|
+
//# sourceMappingURL=QuickPanel-AtCanxQh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickPanel-
|
|
1
|
+
{"version":3,"file":"QuickPanel-AtCanxQh.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,EAAQ,QAAQK,CAAK,GACpCE,IAAa,CAAC,GAAGP,CAAO;AAE9B,IAAIM,MAAiB,KACnBC,EAAW,KAAKF,CAAK,IAErBE,EAAW,OAAOD,GAAc,CAAC,GAGnCL,EAAWM,CAAU;AAAA,EACvB,GAXqB;AAarB,SACE,gBAAAC;AAAA,IAACnB;AAAA,IAAA;AAAA,MACC,MAAAS;AAAA,MACA,QAAO;AAAA,MACP,QAAQ,gBAAAM,EAAA,MAAM;AAAA,MAAC,GAAP;AAAA,MACR,SAAS,gBAAAA,EAAA,MAAMX,EAASgB,GAAkB,GAAjC;AAAA,MACT,oBAAkB;AAAA,MAElB,4BAACC,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAF,EAACG,GAAA,EAAc,WAAU,OAAM,UAAA,SAAK;AAAA,QAEpC,gBAAAC,EAAC,OAAA,EAAI,WAAU,oBACb,UAAA;AAAA,UAAA,gBAAAJ,EAACK,GAAA,EAAW,WAAU,kBAAiB,OAAM,kB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|
@@ -38980,7 +38980,7 @@ o(bz, "NavbarWrapperLayout2");
|
|
|
38980
38980
|
const Sz = ic([Bu])(
|
|
38981
38981
|
tt(bz)
|
|
38982
38982
|
), _z = b1(
|
|
38983
|
-
() => import("./QuickPanel-
|
|
38983
|
+
() => import("./QuickPanel-AtCanxQh.js")
|
|
38984
38984
|
);
|
|
38985
38985
|
function Tz() {
|
|
38986
38986
|
return /* @__PURE__ */ w(rl, { children: /* @__PURE__ */ w(_z, {}) });
|
|
@@ -39565,7 +39565,7 @@ o(qz, "NavbarWrapperLayout3");
|
|
|
39565
39565
|
const Qz = ic([Bu])(
|
|
39566
39566
|
tt(qz)
|
|
39567
39567
|
), Zz = b1(
|
|
39568
|
-
() => import("./QuickPanel-
|
|
39568
|
+
() => import("./QuickPanel-AtCanxQh.js")
|
|
39569
39569
|
);
|
|
39570
39570
|
function Jz() {
|
|
39571
39571
|
return /* @__PURE__ */ w(rl, { children: /* @__PURE__ */ w(Zz, {}) });
|
|
@@ -50061,7 +50061,7 @@ const _0 = /* @__PURE__ */ o(({ children: t }) => {
|
|
|
50061
50061
|
value: t,
|
|
50062
50062
|
valueFormatter: e,
|
|
50063
50063
|
useRange: r,
|
|
50064
|
-
|
|
50064
|
+
disabledClearButton: n,
|
|
50065
50065
|
reset: i,
|
|
50066
50066
|
...a
|
|
50067
50067
|
}, s) => {
|
|
@@ -50077,8 +50077,8 @@ const _0 = /* @__PURE__ */ o(({ children: t }) => {
|
|
|
50077
50077
|
...a.slotProps,
|
|
50078
50078
|
input: {
|
|
50079
50079
|
readOnly: !0,
|
|
50080
|
-
endAdornment:
|
|
50081
|
-
/* @__PURE__ */ w(
|
|
50080
|
+
endAdornment: /* @__PURE__ */ ae(kA, { position: "end", children: [
|
|
50081
|
+
!n && /* @__PURE__ */ w(
|
|
50082
50082
|
Fh,
|
|
50083
50083
|
{
|
|
50084
50084
|
className: "m-0 p-0",
|
|
@@ -50112,7 +50112,7 @@ const Bre = /* @__PURE__ */ o(({
|
|
|
50112
50112
|
showMonthPicker: u,
|
|
50113
50113
|
showTimeInput: c,
|
|
50114
50114
|
textFieldProps: f,
|
|
50115
|
-
|
|
50115
|
+
disabledClearButton: d,
|
|
50116
50116
|
disabledFutureDates: p,
|
|
50117
50117
|
...h
|
|
50118
50118
|
}) => {
|
|
@@ -50150,7 +50150,7 @@ const Bre = /* @__PURE__ */ o(({
|
|
|
50150
50150
|
...f,
|
|
50151
50151
|
reset: /* @__PURE__ */ o(() => a == null ? void 0 : a(""), "reset"),
|
|
50152
50152
|
fullWidth: s,
|
|
50153
|
-
|
|
50153
|
+
disabledClearButton: d,
|
|
50154
50154
|
valueFormatter: m
|
|
50155
50155
|
}
|
|
50156
50156
|
),
|
|
@@ -50168,7 +50168,7 @@ const Lb = /* @__PURE__ */ o((t) => w_(t) && Ms(t), "isNill$1"), Lre = /* @__PUR
|
|
|
50168
50168
|
sx: n,
|
|
50169
50169
|
value: i,
|
|
50170
50170
|
fullWidth: a,
|
|
50171
|
-
|
|
50171
|
+
disabledClearButton: s,
|
|
50172
50172
|
disabledFutureDates: l,
|
|
50173
50173
|
onChange: u,
|
|
50174
50174
|
showYearPicker: c,
|
|
@@ -50216,7 +50216,7 @@ const Lb = /* @__PURE__ */ o((t) => w_(t) && Ms(t), "isNill$1"), Lre = /* @__PUR
|
|
|
50216
50216
|
...d,
|
|
50217
50217
|
reset: /* @__PURE__ */ o(() => u == null ? void 0 : u(""), "reset"),
|
|
50218
50218
|
useRange: !0,
|
|
50219
|
-
|
|
50219
|
+
disabledClearButton: s,
|
|
50220
50220
|
valueFormatter: h
|
|
50221
50221
|
}
|
|
50222
50222
|
)
|
|
@@ -50234,7 +50234,7 @@ const Mh = "ᵗʰ ", Hre = /* @__PURE__ */ o(({
|
|
|
50234
50234
|
fullWidth: a,
|
|
50235
50235
|
showWeekNumbers: s,
|
|
50236
50236
|
textFieldProps: l,
|
|
50237
|
-
|
|
50237
|
+
disabledClearButton: u,
|
|
50238
50238
|
...c
|
|
50239
50239
|
}) => {
|
|
50240
50240
|
const [f, d] = et(() => {
|
|
@@ -50269,7 +50269,7 @@ const Mh = "ᵗʰ ", Hre = /* @__PURE__ */ o(({
|
|
|
50269
50269
|
sx: r,
|
|
50270
50270
|
...l,
|
|
50271
50271
|
fullWidth: a,
|
|
50272
|
-
|
|
50272
|
+
disabledClearButton: u,
|
|
50273
50273
|
reset: /* @__PURE__ */ o(() => i == null ? void 0 : i(""), "reset"),
|
|
50274
50274
|
valueFormatter: `${d}${Cu}`
|
|
50275
50275
|
}
|
|
@@ -50286,7 +50286,7 @@ const Hb = /* @__PURE__ */ o((t) => w_(t) && Ms(t), "isNill"), Gre = /* @__PURE_
|
|
|
50286
50286
|
sx: n,
|
|
50287
50287
|
value: i,
|
|
50288
50288
|
fullWidth: a,
|
|
50289
|
-
|
|
50289
|
+
disabledClearButton: s,
|
|
50290
50290
|
disabledFutureDates: l,
|
|
50291
50291
|
onChange: u,
|
|
50292
50292
|
textFieldProps: c,
|
|
@@ -50340,7 +50340,7 @@ const Hb = /* @__PURE__ */ o((t) => w_(t) && Ms(t), "isNill"), Gre = /* @__PURE_
|
|
|
50340
50340
|
sx: n,
|
|
50341
50341
|
...c,
|
|
50342
50342
|
useRange: !0,
|
|
50343
|
-
|
|
50343
|
+
disabledClearButton: s,
|
|
50344
50344
|
reset: /* @__PURE__ */ o(() => u == null ? void 0 : u(""), "reset"),
|
|
50345
50345
|
valueFormatter: hs
|
|
50346
50346
|
}
|
|
@@ -54188,4 +54188,4 @@ export {
|
|
|
54188
54188
|
Cte as y,
|
|
54189
54189
|
S_ as z
|
|
54190
54190
|
};
|
|
54191
|
-
//# sourceMappingURL=index-
|
|
54191
|
+
//# sourceMappingURL=index-B9stxbZn.js.map
|