wcz-layout 8.3.1 → 8.3.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.
- package/dist/{Approval-Cx-EUX2I.js → Approval-BTJTexDo.js} +1 -1
- package/dist/{Approval-Cx-EUX2I.js.map → Approval-BTJTexDo.js.map} +1 -1
- package/dist/{DialogsContext-DkePghS6.js → DialogsContext-DLqA8RJ_.js} +1 -1
- package/dist/{DialogsContext-DkePghS6.js.map → DialogsContext-DLqA8RJ_.js.map} +1 -1
- package/dist/{Email-CCL5C-C0.js → Email-C9qwj7GD.js} +1 -1
- package/dist/{Email-CCL5C-C0.js.map → Email-C9qwj7GD.js.map} +1 -1
- package/dist/{FileMeta-DCFvkQQC.js → FileMeta-DDqUju1Y.js} +1 -1
- package/dist/{FileMeta-DCFvkQQC.js.map → FileMeta-DDqUju1Y.js.map} +1 -1
- package/dist/{FileMeta-DrEMs4Gq.d.ts → FileMeta-ILLTOjaM.d.ts} +1 -1
- package/dist/{NotificationContext-FQRaNZRx.js → NotificationContext-CgwUOeW0.js} +1 -1
- package/dist/{NotificationContext-FQRaNZRx.js.map → NotificationContext-CgwUOeW0.js.map} +1 -1
- package/dist/{RouterListItemButton-p9U4Z0SW.js → RouterListItemButton-owZVvuC_.js} +1 -1
- package/dist/{RouterListItemButton-p9U4Z0SW.js.map → RouterListItemButton-owZVvuC_.js.map} +1 -1
- package/dist/{User-DVU1zqml.d.ts → User-CT_IDGuG.d.ts} +1 -1
- package/dist/{apiMiddleware-CwCEvg3r.js → apiMiddleware-CtY4rOFU.js} +2 -2
- package/dist/{apiMiddleware-CwCEvg3r.js.map → apiMiddleware-CtY4rOFU.js.map} +1 -1
- package/dist/components.d.ts +4 -5
- package/dist/components.js +3 -3
- package/dist/components.js.map +1 -1
- package/dist/data/client.d.ts +49 -51
- package/dist/data/client.js +3 -3
- package/dist/data/client.js.map +1 -1
- package/dist/data/server.d.ts +14 -18
- package/dist/data/server.js +4 -4
- package/dist/data/server.js.map +1 -1
- package/dist/data.js +1 -1
- package/dist/{env-Dgbk8SQN.js → env-ON-cyE3N.js} +1 -1
- package/dist/{env-Dgbk8SQN.js.map → env-ON-cyE3N.js.map} +1 -1
- package/dist/{file-Dv1BsCsM.js → file-BUdLb7H1.js} +5 -5
- package/dist/{file-Dv1BsCsM.js.map → file-BUdLb7H1.js.map} +1 -1
- package/dist/{file-DcIx8gtK.js → file-Dsht7yOP.js} +3 -3
- package/dist/{file-DcIx8gtK.js.map → file-Dsht7yOP.js.map} +1 -1
- package/dist/hooks.d.ts +48 -51
- package/dist/hooks.js +3 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +120 -97
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +9 -11
- package/dist/middleware.js +3 -3
- package/dist/middleware.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/models.js +3 -3
- package/dist/models.js.map +1 -1
- package/dist/{msalClient-C2LlaBzj.d.ts → msalClient-CYiQAFnY.d.ts} +3 -4
- package/dist/{msalServer-B3AztUoH.js → msalServer-B9sVqpQ2.js} +2 -2
- package/dist/{msalServer-B3AztUoH.js.map → msalServer-B9sVqpQ2.js.map} +1 -1
- package/dist/{peoplesoft--FioEbzn.js → peoplesoft-BCjRje6b.js} +3 -3
- package/dist/{peoplesoft--FioEbzn.js.map → peoplesoft-BCjRje6b.js.map} +1 -1
- package/dist/{peoplesoft-BG_AV3zS.d.ts → peoplesoft-Cze2ngGd.d.ts} +58 -60
- package/dist/{queryClient-1OJ5Va3i.js → queryClient-D64McLhZ.js} +1 -1
- package/dist/{queryClient-1OJ5Va3i.js.map → queryClient-D64McLhZ.js.map} +1 -1
- package/dist/{useDialogs-imgl4bIl.js → useDialogs-BJVhBr8S.js} +2 -2
- package/dist/useDialogs-BJVhBr8S.js.map +1 -0
- package/dist/{utils-B7LPctqx.js → utils-BMUmv2ws.js} +3 -2
- package/dist/{utils-B7LPctqx.js.map → utils-BMUmv2ws.js.map} +1 -1
- package/dist/{utils-DgrP27XP.d.ts → utils-CvvyM8Xw.d.ts} +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +2 -2
- package/dist/vite.js +1 -1
- package/dist/vite.js.map +1 -1
- package/package.json +5 -5
- package/skills/services/SKILL.md +2 -1
- package/skills/start/SKILL.md +12 -13
- package/dist/useDialogs-imgl4bIl.js.map +0 -1
- package/skills/start/steps/02-dependency-check.md +0 -11
- /package/skills/start/steps/{03-project-name-setup.md → 02-project-name-setup.md} +0 -0
- /package/skills/start/steps/{04-apm-setup.md → 03-apm-setup.md} +0 -0
- /package/skills/start/steps/{05-database-setup.md → 04-database-setup.md} +0 -0
- /package/skills/start/steps/{06-entra-setup.md → 05-entra-setup.md} +0 -0
- /package/skills/start/steps/{07-vault-setup.md → 06-vault-setup.md} +0 -0
- /package/skills/start/steps/{08-generate-favicon.md → 07-generate-favicon.md} +0 -0
- /package/skills/start/steps/{09-commit.md → 08-commit.md} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { i as WISTRON_SECONDARY_COLOR, o as rootRouteHead, r as WISTRON_PRIMARY_COLOR } from "./utils-
|
|
2
|
-
import { n as getUser } from "./msalClient-
|
|
1
|
+
import { i as WISTRON_SECONDARY_COLOR, o as rootRouteHead, r as WISTRON_PRIMARY_COLOR } from "./utils-CvvyM8Xw.js";
|
|
2
|
+
import { n as getUser } from "./msalClient-CYiQAFnY.js";
|
|
3
3
|
import { SnackbarOrigin, Theme } from "@mui/material";
|
|
4
4
|
import { FC, ReactNode } from "react";
|
|
5
5
|
import { LinkOptions } from "@tanstack/react-router";
|
|
6
6
|
|
|
7
7
|
//#region src/models/LayoutOptions.d.ts
|
|
8
|
+
type PublicRoute<T> = T extends `/api${string}` ? never : T extends `/${string}` ? T : never;
|
|
8
9
|
interface LayoutOptions {
|
|
9
10
|
showShell?: boolean;
|
|
10
11
|
snackbarOrigin?: SnackbarOrigin;
|
|
11
|
-
publicRoutes?: Array<LinkOptions["to"]
|
|
12
|
+
publicRoutes?: Array<PublicRoute<LinkOptions["to"]>>;
|
|
12
13
|
}
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region src/models/Navigation.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as clientEnv } from "./env-
|
|
2
|
-
import { c as TanStackNavigationClient, d as pca, l as getAccessToken, n as WISTRON_PRIMARY_COLOR, r as WISTRON_SECONDARY_COLOR, s as rootRouteHead, t as Platform, u as getUser } from "./utils-
|
|
3
|
-
import { t as queryClient } from "./queryClient-
|
|
4
|
-
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-
|
|
5
|
-
import { t as DialogsContext } from "./DialogsContext-
|
|
6
|
-
import { t as NotificationContext } from "./NotificationContext-
|
|
1
|
+
import { t as clientEnv } from "./env-ON-cyE3N.js";
|
|
2
|
+
import { c as TanStackNavigationClient, d as pca, l as getAccessToken, n as WISTRON_PRIMARY_COLOR, r as WISTRON_SECONDARY_COLOR, s as rootRouteHead, t as Platform, u as getUser } from "./utils-BMUmv2ws.js";
|
|
3
|
+
import { t as queryClient } from "./queryClient-D64McLhZ.js";
|
|
4
|
+
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-owZVvuC_.js";
|
|
5
|
+
import { t as DialogsContext } from "./DialogsContext-DLqA8RJ_.js";
|
|
6
|
+
import { t as NotificationContext } from "./NotificationContext-CgwUOeW0.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { AppBar, Avatar, Box, Chip, Collapse, CssBaseline, Grow, IconButton, InitColorSchemeScript, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, Stack, ThemeProvider, Toolbar, Typography, useColorScheme } from "@mui/material";
|
|
9
9
|
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
@@ -53,6 +53,38 @@ import Typography$1 from "@mui/material/Typography";
|
|
|
53
53
|
import useEventCallback$1 from "@mui/utils/useEventCallback";
|
|
54
54
|
import Alert from "@mui/material/Alert";
|
|
55
55
|
import Snackbar from "@mui/material/Snackbar";
|
|
56
|
+
//#region src/hooks/useIsPublicRoute.ts
|
|
57
|
+
function useIsPublicRoute(publicRoutes) {
|
|
58
|
+
const $ = c(5);
|
|
59
|
+
if ($[0] !== "2b14d21a0227e1b288d0a1b84aa716ca71cddc80700f78740c3db9c95bbea547") {
|
|
60
|
+
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
61
|
+
$[0] = "2b14d21a0227e1b288d0a1b84aa716ca71cddc80700f78740c3db9c95bbea547";
|
|
62
|
+
}
|
|
63
|
+
const matches = useMatches();
|
|
64
|
+
let t0;
|
|
65
|
+
let t1;
|
|
66
|
+
if ($[1] !== matches || $[2] !== publicRoutes) {
|
|
67
|
+
t1 = Symbol.for("react.early_return_sentinel");
|
|
68
|
+
bb0: {
|
|
69
|
+
const currentRoutePath = matches.at(-1)?.fullPath;
|
|
70
|
+
if (currentRoutePath === void 0) {
|
|
71
|
+
t1 = false;
|
|
72
|
+
break bb0;
|
|
73
|
+
}
|
|
74
|
+
t0 = publicRoutes?.includes(currentRoutePath) ?? false;
|
|
75
|
+
}
|
|
76
|
+
$[1] = matches;
|
|
77
|
+
$[2] = publicRoutes;
|
|
78
|
+
$[3] = t0;
|
|
79
|
+
$[4] = t1;
|
|
80
|
+
} else {
|
|
81
|
+
t0 = $[3];
|
|
82
|
+
t1 = $[4];
|
|
83
|
+
}
|
|
84
|
+
if (t1 !== Symbol.for("react.early_return_sentinel")) return t1;
|
|
85
|
+
return t0;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
56
88
|
//#region src/lib/db/collections/userCollection.ts
|
|
57
89
|
const api = axios.create({ baseURL: "https://graph.microsoft.com/v1.0" });
|
|
58
90
|
api.interceptors.request.use(async (config) => {
|
|
@@ -1557,49 +1589,40 @@ const DrawerHeader = styled("div")(({ theme }) => ({
|
|
|
1557
1589
|
...theme.mixins.toolbar
|
|
1558
1590
|
}));
|
|
1559
1591
|
const Layout = (t0) => {
|
|
1560
|
-
const $ = c(
|
|
1561
|
-
if ($[0] !== "
|
|
1562
|
-
for (let $i = 0; $i <
|
|
1563
|
-
$[0] = "
|
|
1592
|
+
const $ = c(28);
|
|
1593
|
+
if ($[0] !== "3886edcc966444439fecbaa66c12bd0739605e2755c9d97ea08aaa691ee89b53") {
|
|
1594
|
+
for (let $i = 0; $i < 28; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1595
|
+
$[0] = "3886edcc966444439fecbaa66c12bd0739605e2755c9d97ea08aaa691ee89b53";
|
|
1564
1596
|
}
|
|
1565
1597
|
const { navigation, options, children } = t0;
|
|
1566
1598
|
const [navigationOpen, setNavigationOpen] = useState(getInitialNavigationOpen);
|
|
1567
|
-
const
|
|
1568
|
-
let t1;
|
|
1569
|
-
if ($[1] !== matches || $[2] !== options?.publicRoutes) {
|
|
1570
|
-
const currentRoutePath = matches.at(-1)?.fullPath;
|
|
1571
|
-
t1 = options?.publicRoutes?.includes(currentRoutePath) ?? false;
|
|
1572
|
-
$[1] = matches;
|
|
1573
|
-
$[2] = options?.publicRoutes;
|
|
1574
|
-
$[3] = t1;
|
|
1575
|
-
} else t1 = $[3];
|
|
1576
|
-
const isPublicRoute = t1;
|
|
1599
|
+
const isPublicRoute = useIsPublicRoute(options?.publicRoutes);
|
|
1577
1600
|
const showShell = options?.showShell ?? true;
|
|
1601
|
+
let t1;
|
|
1578
1602
|
let t2;
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
t2 = /* @__PURE__ */ jsx(
|
|
1582
|
-
|
|
1583
|
-
$[
|
|
1584
|
-
$[5] = t3;
|
|
1603
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1604
|
+
t1 = /* @__PURE__ */ jsx(InitColorSchemeScript, {});
|
|
1605
|
+
t2 = /* @__PURE__ */ jsx(CssBaseline, {});
|
|
1606
|
+
$[1] = t1;
|
|
1607
|
+
$[2] = t2;
|
|
1585
1608
|
} else {
|
|
1586
|
-
|
|
1587
|
-
|
|
1609
|
+
t1 = $[1];
|
|
1610
|
+
t2 = $[2];
|
|
1588
1611
|
}
|
|
1589
|
-
let
|
|
1590
|
-
if ($[
|
|
1591
|
-
|
|
1612
|
+
let t3;
|
|
1613
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1614
|
+
t3 = {
|
|
1592
1615
|
display: "flex",
|
|
1593
1616
|
height: "100dvh",
|
|
1594
1617
|
maxHeight: "100dvh",
|
|
1595
1618
|
overflow: "hidden",
|
|
1596
1619
|
width: "100%"
|
|
1597
1620
|
};
|
|
1598
|
-
$[
|
|
1599
|
-
} else
|
|
1600
|
-
let
|
|
1601
|
-
if ($[
|
|
1602
|
-
|
|
1621
|
+
$[3] = t3;
|
|
1622
|
+
} else t3 = $[3];
|
|
1623
|
+
let t4;
|
|
1624
|
+
if ($[4] !== navigation || $[5] !== navigationOpen || $[6] !== showShell) {
|
|
1625
|
+
t4 = showShell && /* @__PURE__ */ jsx(AppBar, {
|
|
1603
1626
|
color: "transparent",
|
|
1604
1627
|
position: "fixed",
|
|
1605
1628
|
sx: {
|
|
@@ -1619,14 +1642,14 @@ const Layout = (t0) => {
|
|
|
1619
1642
|
/* @__PURE__ */ jsx(ToolbarAccount, {})
|
|
1620
1643
|
] })
|
|
1621
1644
|
});
|
|
1622
|
-
$[
|
|
1623
|
-
$[
|
|
1624
|
-
$[
|
|
1625
|
-
$[
|
|
1626
|
-
} else
|
|
1627
|
-
let
|
|
1628
|
-
if ($[
|
|
1629
|
-
|
|
1645
|
+
$[4] = navigation;
|
|
1646
|
+
$[5] = navigationOpen;
|
|
1647
|
+
$[6] = showShell;
|
|
1648
|
+
$[7] = t4;
|
|
1649
|
+
} else t4 = $[7];
|
|
1650
|
+
let t5;
|
|
1651
|
+
if ($[8] !== navigation || $[9] !== navigationOpen || $[10] !== showShell) {
|
|
1652
|
+
t5 = navigation && showShell && /* @__PURE__ */ jsx(NavigationRail, {
|
|
1630
1653
|
navigation,
|
|
1631
1654
|
expanded: navigationOpen,
|
|
1632
1655
|
setExpanded: (newValue_0) => {
|
|
@@ -1634,14 +1657,14 @@ const Layout = (t0) => {
|
|
|
1634
1657
|
saveNavigationState(newValue_0);
|
|
1635
1658
|
}
|
|
1636
1659
|
});
|
|
1637
|
-
$[
|
|
1638
|
-
$[
|
|
1639
|
-
$[
|
|
1640
|
-
$[
|
|
1641
|
-
} else
|
|
1642
|
-
let
|
|
1643
|
-
if ($[
|
|
1644
|
-
|
|
1660
|
+
$[8] = navigation;
|
|
1661
|
+
$[9] = navigationOpen;
|
|
1662
|
+
$[10] = showShell;
|
|
1663
|
+
$[11] = t5;
|
|
1664
|
+
} else t5 = $[11];
|
|
1665
|
+
let t6;
|
|
1666
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1667
|
+
t6 = {
|
|
1645
1668
|
flexGrow: 1,
|
|
1646
1669
|
display: "flex",
|
|
1647
1670
|
flexDirection: "column",
|
|
@@ -1649,73 +1672,73 @@ const Layout = (t0) => {
|
|
|
1649
1672
|
height: "100%",
|
|
1650
1673
|
overflow: "hidden"
|
|
1651
1674
|
};
|
|
1652
|
-
$[
|
|
1653
|
-
} else
|
|
1675
|
+
$[12] = t6;
|
|
1676
|
+
} else t6 = $[12];
|
|
1677
|
+
let t7;
|
|
1678
|
+
if ($[13] !== showShell) {
|
|
1679
|
+
t7 = showShell && /* @__PURE__ */ jsx(DrawerHeader, {});
|
|
1680
|
+
$[13] = showShell;
|
|
1681
|
+
$[14] = t7;
|
|
1682
|
+
} else t7 = $[14];
|
|
1654
1683
|
let t8;
|
|
1655
|
-
if ($[
|
|
1656
|
-
t8 =
|
|
1657
|
-
$[16] = showShell;
|
|
1658
|
-
$[17] = t8;
|
|
1659
|
-
} else t8 = $[17];
|
|
1660
|
-
let t9;
|
|
1661
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1662
|
-
t9 = {
|
|
1684
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1685
|
+
t8 = {
|
|
1663
1686
|
flex: 1,
|
|
1664
1687
|
overflow: "auto",
|
|
1665
1688
|
position: "relative"
|
|
1666
1689
|
};
|
|
1690
|
+
$[15] = t8;
|
|
1691
|
+
} else t8 = $[15];
|
|
1692
|
+
let t9;
|
|
1693
|
+
if ($[16] !== children || $[17] !== isPublicRoute) {
|
|
1694
|
+
t9 = isPublicRoute ? children : /* @__PURE__ */ jsx(MsalAuthenticationTemplate, {
|
|
1695
|
+
interactionType: InteractionType.Redirect,
|
|
1696
|
+
children
|
|
1697
|
+
});
|
|
1698
|
+
$[16] = children;
|
|
1699
|
+
$[17] = isPublicRoute;
|
|
1667
1700
|
$[18] = t9;
|
|
1668
1701
|
} else t9 = $[18];
|
|
1669
1702
|
let t10;
|
|
1670
|
-
if ($[19] !==
|
|
1671
|
-
t10 =
|
|
1672
|
-
|
|
1673
|
-
children
|
|
1703
|
+
if ($[19] !== t9) {
|
|
1704
|
+
t10 = /* @__PURE__ */ jsx(Box, {
|
|
1705
|
+
sx: t8,
|
|
1706
|
+
children: t9
|
|
1674
1707
|
});
|
|
1675
|
-
$[19] =
|
|
1676
|
-
$[20] =
|
|
1677
|
-
|
|
1678
|
-
} else t10 = $[21];
|
|
1708
|
+
$[19] = t9;
|
|
1709
|
+
$[20] = t10;
|
|
1710
|
+
} else t10 = $[20];
|
|
1679
1711
|
let t11;
|
|
1680
|
-
if ($[22] !==
|
|
1681
|
-
t11 = /* @__PURE__ */
|
|
1682
|
-
|
|
1683
|
-
|
|
1712
|
+
if ($[21] !== t10 || $[22] !== t7) {
|
|
1713
|
+
t11 = /* @__PURE__ */ jsxs(Box, {
|
|
1714
|
+
component: "main",
|
|
1715
|
+
sx: t6,
|
|
1716
|
+
children: [t7, t10]
|
|
1684
1717
|
});
|
|
1685
|
-
$[
|
|
1718
|
+
$[21] = t10;
|
|
1719
|
+
$[22] = t7;
|
|
1686
1720
|
$[23] = t11;
|
|
1687
1721
|
} else t11 = $[23];
|
|
1688
1722
|
let t12;
|
|
1689
|
-
if ($[24] !== t11 || $[25] !==
|
|
1690
|
-
t12 = /* @__PURE__ */ jsxs(
|
|
1691
|
-
|
|
1692
|
-
sx: t7,
|
|
1693
|
-
children: [t8, t11]
|
|
1694
|
-
});
|
|
1695
|
-
$[24] = t11;
|
|
1696
|
-
$[25] = t8;
|
|
1697
|
-
$[26] = t12;
|
|
1698
|
-
} else t12 = $[26];
|
|
1699
|
-
let t13;
|
|
1700
|
-
if ($[27] !== t12 || $[28] !== t5 || $[29] !== t6) {
|
|
1701
|
-
t13 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1723
|
+
if ($[24] !== t11 || $[25] !== t4 || $[26] !== t5) {
|
|
1724
|
+
t12 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1725
|
+
t1,
|
|
1702
1726
|
t2,
|
|
1703
|
-
t3,
|
|
1704
1727
|
/* @__PURE__ */ jsxs(Box, {
|
|
1705
|
-
sx:
|
|
1728
|
+
sx: t3,
|
|
1706
1729
|
children: [
|
|
1730
|
+
t4,
|
|
1707
1731
|
t5,
|
|
1708
|
-
|
|
1709
|
-
t12
|
|
1732
|
+
t11
|
|
1710
1733
|
]
|
|
1711
1734
|
})
|
|
1712
1735
|
] });
|
|
1736
|
+
$[24] = t11;
|
|
1737
|
+
$[25] = t4;
|
|
1738
|
+
$[26] = t5;
|
|
1713
1739
|
$[27] = t12;
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
$[30] = t13;
|
|
1717
|
-
} else t13 = $[30];
|
|
1718
|
-
return t13;
|
|
1740
|
+
} else t12 = $[27];
|
|
1741
|
+
return t12;
|
|
1719
1742
|
};
|
|
1720
1743
|
function _temp$1(previous) {
|
|
1721
1744
|
const newValue = !previous;
|