wcz-layout 10.1.7 → 10.1.8
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/{AggregatedCell-CqGptV6i.mjs → AggregatedCell-oGcwbetF.mjs} +3 -3
- package/dist/{AggregatedCell-CqGptV6i.mjs.map → AggregatedCell-oGcwbetF.mjs.map} +1 -1
- package/dist/Approval-DoD-GRRH.mjs.map +1 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
- package/dist/Email-BzQQkbe9.mjs.map +1 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
- package/dist/{RouterListItemButton-ke6iPKkL.mjs → RouterListItemButton-ULMlaQh6.mjs} +9 -9
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +1 -0
- package/dist/approval-L09uPzTU.mjs.map +1 -1
- package/dist/auth.mjs.map +1 -1
- package/dist/components.mjs +31 -28
- package/dist/components.mjs.map +1 -1
- package/dist/createApi-BhNkG4jz.mjs.map +1 -1
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.mjs.map +1 -1
- package/dist/file-Chlljz3o.mjs.map +1 -1
- package/dist/file-Dl8JCcqy.mjs.map +1 -1
- package/dist/hooks.mjs +27 -27
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/peoplesoft-BhintHQz.mjs.map +1 -1
- package/dist/providers-BvuZWkpD.mjs.map +1 -1
- package/dist/tokens-XuFhVbh5.mjs.map +1 -1
- package/dist/utils-CaeVFWF-.mjs.map +1 -1
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -131
- package/skills/client-db/SKILL.md +136 -136
- package/skills/db-schema/SKILL.md +98 -98
- package/skills/dialogs/SKILL.md +74 -74
- package/skills/forms/SKILL.md +122 -122
- package/skills/general/SKILL.md +127 -127
- package/skills/migrations/SKILL.md +57 -57
- package/skills/migrations/versions/migrate-v10-to-v11.md +4 -2
- package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
- package/skills/routing/SKILL.md +87 -87
- package/skills/server-functions/SKILL.md +95 -95
- package/skills/services/SKILL.md +34 -34
- package/skills/services/docs/approval.md +258 -258
- package/skills/services/docs/email.md +32 -32
- package/skills/services/docs/file.md +108 -108
- package/skills/services/docs/peoplesoft.md +114 -114
- package/skills/start/SKILL.md +52 -52
- package/skills/start/steps/01-git-setup.md +10 -10
- package/skills/start/steps/02-project-name-setup.md +19 -19
- package/skills/start/steps/04-wicop-setup.md +105 -105
- package/skills/start/steps/05-database-setup.md +52 -52
- package/skills/start/steps/06-entra-setup.md +96 -96
- package/skills/start/steps/07-vault-setup.md +115 -115
- package/skills/start/steps/08-generate-favicon.md +8 -8
- package/skills/start/steps/09-gitlab-ci.md +25 -25
- package/skills/start/steps/10-commit.md +15 -15
- package/skills/table/SKILL.md +267 -266
- package/dist/RouterListItemButton-ke6iPKkL.mjs.map +0 -1
package/dist/components.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as sanitizeReturnTo, m as loginProvidersQueryOptions } from "./utils-CaeVFWF-.mjs";
|
|
2
|
-
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-
|
|
2
|
+
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-ULMlaQh6.mjs";
|
|
3
3
|
import { a as fileQueryOptions, i as fileMetasQueryOptions, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions } from "./file-Chlljz3o.mjs";
|
|
4
|
-
import { S as useDialogs, a as columnFlex, c as lookaheadRange, f as toClipboardText, i as columnAlign, p as DEFAULT_PAGE_SIZE_OPTIONS, r as cellSelectionSx, s as hasColumnLabel, t as AggregatedCell, u as pinnedSx } from "./AggregatedCell-
|
|
4
|
+
import { S as useDialogs, a as columnFlex, c as lookaheadRange, f as toClipboardText, i as columnAlign, p as DEFAULT_PAGE_SIZE_OPTIONS, r as cellSelectionSx, s as hasColumnLabel, t as AggregatedCell, u as pinnedSx } from "./AggregatedCell-oGcwbetF.mjs";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { Box, Button, ButtonBase, Card, CardContent, CircularProgress, Dialog, Divider, Fab, IconButton, ImageListItem, ImageListItemBar, Link, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem, Paper, Skeleton, Stack, Tab, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TableRow, Tooltip, Typography, alpha, useTheme } from "@mui/material";
|
|
7
7
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -518,9 +518,9 @@ const Dropzone = (t0) => {
|
|
|
518
518
|
const FileContext = createContext(null);
|
|
519
519
|
const useFile = () => {
|
|
520
520
|
const $ = c(1);
|
|
521
|
-
if ($[0] !== "
|
|
521
|
+
if ($[0] !== "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9") {
|
|
522
522
|
for (let $i = 0; $i < 1; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
523
|
-
$[0] = "
|
|
523
|
+
$[0] = "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9";
|
|
524
524
|
}
|
|
525
525
|
const context = useContext(FileContext);
|
|
526
526
|
if (!context) throw new Error("FileViewer components must be used within FileViewer");
|
|
@@ -1160,9 +1160,9 @@ function _temp(m_0) {
|
|
|
1160
1160
|
//#region src/components/file/FileViewer.tsx
|
|
1161
1161
|
const FileViewer = (t0) => {
|
|
1162
1162
|
const $ = c(22);
|
|
1163
|
-
if ($[0] !== "
|
|
1163
|
+
if ($[0] !== "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e") {
|
|
1164
1164
|
for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1165
|
-
$[0] = "
|
|
1165
|
+
$[0] = "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e";
|
|
1166
1166
|
}
|
|
1167
1167
|
const { appName, subId, onDelete, actions, children } = t0;
|
|
1168
1168
|
let t1;
|
|
@@ -1243,9 +1243,9 @@ const FileViewer = (t0) => {
|
|
|
1243
1243
|
//#region src/components/router/RouterButton.tsx
|
|
1244
1244
|
const Component$3 = React.forwardRef(function ButtonComponent(props, reference) {
|
|
1245
1245
|
const $ = c(4);
|
|
1246
|
-
if ($[0] !== "
|
|
1246
|
+
if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
|
|
1247
1247
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1248
|
-
$[0] = "
|
|
1248
|
+
$[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
|
|
1249
1249
|
}
|
|
1250
1250
|
let t0;
|
|
1251
1251
|
if ($[1] !== props || $[2] !== reference) {
|
|
@@ -1263,9 +1263,9 @@ const Component$3 = React.forwardRef(function ButtonComponent(props, reference)
|
|
|
1263
1263
|
const CreatedComponent$3 = createLink(Component$3);
|
|
1264
1264
|
const RouterButton = (props) => {
|
|
1265
1265
|
const $ = c(3);
|
|
1266
|
-
if ($[0] !== "
|
|
1266
|
+
if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
|
|
1267
1267
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1268
|
-
$[0] = "
|
|
1268
|
+
$[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
|
|
1269
1269
|
}
|
|
1270
1270
|
let t0;
|
|
1271
1271
|
if ($[1] !== props) {
|
|
@@ -1279,9 +1279,9 @@ const RouterButton = (props) => {
|
|
|
1279
1279
|
//#region src/components/router/RouterFab.tsx
|
|
1280
1280
|
const Component$2 = React.forwardRef(function FabComponent(props, reference) {
|
|
1281
1281
|
const $ = c(4);
|
|
1282
|
-
if ($[0] !== "
|
|
1282
|
+
if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
|
|
1283
1283
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1284
|
-
$[0] = "
|
|
1284
|
+
$[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
|
|
1285
1285
|
}
|
|
1286
1286
|
let t0;
|
|
1287
1287
|
if ($[1] !== props || $[2] !== reference) {
|
|
@@ -1299,9 +1299,9 @@ const Component$2 = React.forwardRef(function FabComponent(props, reference) {
|
|
|
1299
1299
|
const CreatedComponent$2 = createLink(Component$2);
|
|
1300
1300
|
const RouterFab = (props) => {
|
|
1301
1301
|
const $ = c(3);
|
|
1302
|
-
if ($[0] !== "
|
|
1302
|
+
if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
|
|
1303
1303
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1304
|
-
$[0] = "
|
|
1304
|
+
$[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
|
|
1305
1305
|
}
|
|
1306
1306
|
let t0;
|
|
1307
1307
|
if ($[1] !== props) {
|
|
@@ -1315,9 +1315,9 @@ const RouterFab = (props) => {
|
|
|
1315
1315
|
//#region src/components/router/RouterLink.tsx
|
|
1316
1316
|
const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
|
|
1317
1317
|
const $ = c(4);
|
|
1318
|
-
if ($[0] !== "
|
|
1318
|
+
if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
|
|
1319
1319
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1320
|
-
$[0] = "
|
|
1320
|
+
$[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
|
|
1321
1321
|
}
|
|
1322
1322
|
let t0;
|
|
1323
1323
|
if ($[1] !== props || $[2] !== reference) {
|
|
@@ -1334,9 +1334,9 @@ const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
|
|
|
1334
1334
|
const CreatedComponent$1 = createLink(Component$1);
|
|
1335
1335
|
const RouterLink = (props) => {
|
|
1336
1336
|
const $ = c(3);
|
|
1337
|
-
if ($[0] !== "
|
|
1337
|
+
if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
|
|
1338
1338
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1339
|
-
$[0] = "
|
|
1339
|
+
$[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
|
|
1340
1340
|
}
|
|
1341
1341
|
let t0;
|
|
1342
1342
|
if ($[1] !== props) {
|
|
@@ -1350,9 +1350,9 @@ const RouterLink = (props) => {
|
|
|
1350
1350
|
//#region src/components/router/RouterTab.tsx
|
|
1351
1351
|
const Component = React.forwardRef(function TabComponent(props, reference) {
|
|
1352
1352
|
const $ = c(4);
|
|
1353
|
-
if ($[0] !== "
|
|
1353
|
+
if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
|
|
1354
1354
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1355
|
-
$[0] = "
|
|
1355
|
+
$[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
|
|
1356
1356
|
}
|
|
1357
1357
|
let t0;
|
|
1358
1358
|
if ($[1] !== props || $[2] !== reference) {
|
|
@@ -1370,9 +1370,9 @@ const Component = React.forwardRef(function TabComponent(props, reference) {
|
|
|
1370
1370
|
const CreatedComponent = createLink(Component);
|
|
1371
1371
|
const RouterTab = (props) => {
|
|
1372
1372
|
const $ = c(3);
|
|
1373
|
-
if ($[0] !== "
|
|
1373
|
+
if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
|
|
1374
1374
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1375
|
-
$[0] = "
|
|
1375
|
+
$[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
|
|
1376
1376
|
}
|
|
1377
1377
|
let t0;
|
|
1378
1378
|
if ($[1] !== props) {
|
|
@@ -1643,9 +1643,8 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1643
1643
|
useLayoutEffect(() => {
|
|
1644
1644
|
const container = containerRef.current;
|
|
1645
1645
|
if (!container) return;
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
const observer = new ResizeObserver(measure);
|
|
1646
|
+
setContainerWidth(container.clientWidth - 1);
|
|
1647
|
+
const observer = new ResizeObserver(([entry]) => setContainerWidth(Math.floor(entry.contentRect.width)));
|
|
1649
1648
|
observer.observe(container);
|
|
1650
1649
|
return () => observer.disconnect();
|
|
1651
1650
|
}, []);
|
|
@@ -1663,6 +1662,7 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1663
1662
|
count: rows.length,
|
|
1664
1663
|
getScrollElement: () => containerRef.current,
|
|
1665
1664
|
estimateSize: () => ROW_HEIGHT,
|
|
1665
|
+
measureElement: (element) => element.getBoundingClientRect().height,
|
|
1666
1666
|
getItemKey: (index_0) => rows[index_0].id,
|
|
1667
1667
|
overscan: ROW_OVERSCAN,
|
|
1668
1668
|
rangeExtractor: (range) => lookaheadRange(range, rowVirtualizer.scrollDirection, ROW_LOOKAHEAD),
|
|
@@ -1869,10 +1869,12 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1869
1869
|
})
|
|
1870
1870
|
}, f.id);
|
|
1871
1871
|
const rowAction = onRowClick ?? onRowDoubleClick;
|
|
1872
|
-
const renderRow = (row_1) => {
|
|
1872
|
+
const renderRow = (row_1, index_3) => {
|
|
1873
1873
|
const cells = windowColumns(row_1.getVisibleCells());
|
|
1874
1874
|
const focusableCells = row_1.getVisibleCells().some((cell_1) => cell_1.getCanSelect());
|
|
1875
1875
|
return /* @__PURE__ */ jsxs(TableRow, {
|
|
1876
|
+
ref: rowVirtualizer.measureElement,
|
|
1877
|
+
"data-index": index_3,
|
|
1876
1878
|
hover: true,
|
|
1877
1879
|
selected: row_1.getIsSelected(),
|
|
1878
1880
|
tabIndex: rowAction && !focusableCells ? 0 : void 0,
|
|
@@ -1906,8 +1908,9 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1906
1908
|
paddingStart,
|
|
1907
1909
|
paddingEnd
|
|
1908
1910
|
]);
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1911
|
+
const cacheKey = (index_4) => `${index_4}:${rows[index_4].id}`;
|
|
1912
|
+
const bodyRows = virtualRows.map(({ index: index_5 }) => rowCache.current.get(cacheKey(index_5)) ?? renderRow(rows[index_5], index_5));
|
|
1913
|
+
rowCache.current = new Map(virtualRows.map(({ index: index_6 }, i) => [cacheKey(index_6), bodyRows[i]]));
|
|
1911
1914
|
/** Reserves the scroll height of the rows outside the virtual window. */
|
|
1912
1915
|
const skippedRows = (height) => height > 0 ? /* @__PURE__ */ jsx(TableRow, {
|
|
1913
1916
|
"aria-hidden": true,
|