gomtm 0.0.286 → 0.0.287
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/esm/curd/listview/ListViewProvider.d.ts +2 -0
- package/dist/esm/curd/listview/ListViewProvider.js +7 -5
- package/dist/esm/curd/listview/listview-layouts/default/index.d.ts +1 -1
- package/dist/esm/curd/listview/listview-layouts/default/index.js +3 -3
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Message } from "@bufbuild/protobuf";
|
|
2
2
|
import { Dispatch, PropsWithChildren, SetStateAction } from "react";
|
|
3
|
+
export declare const LzListViewLayoutDemo: import("react").LazyExoticComponent<typeof import("./listview-layouts/listviewlayout-demo").default>;
|
|
4
|
+
export declare const LzListViewLayoutDefault: import("react").LazyExoticComponent<typeof import("./listview-layouts/default").default>;
|
|
3
5
|
interface ListViewProps {
|
|
4
6
|
svc: string;
|
|
5
7
|
methodList: string;
|
|
@@ -46,7 +46,7 @@ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
|
46
46
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
|
|
47
47
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "mtxuilib/ui/pagination";
|
|
48
48
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
49
|
-
import { Suspense, createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
49
|
+
import { Suspense, createContext, lazy, useCallback, useContext, useMemo, useState } from "react";
|
|
50
50
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
51
51
|
import { MtmErrorView } from "../../components/MtmErrorView";
|
|
52
52
|
import { CONST_debounce_INPUT, HOTKEY_Listview_Switchlayout } from "../../consts";
|
|
@@ -56,12 +56,12 @@ import CurdCreatePanel, { CurdCreatePanelTriggerButton } from "../create/CurdCre
|
|
|
56
56
|
import CurdEditPanel, { CurdEditPanelTriggerButton } from "../edit/CurdEditPanel";
|
|
57
57
|
import { ListItemView } from "../list-item/ListItem";
|
|
58
58
|
import { ListLayout } from "../list-item/ListLayout";
|
|
59
|
-
import { ListViewLayoutDefault } from "./listview-layouts/default";
|
|
60
|
-
import ListViewLayoutDemo from "./listview-layouts/listviewlayout-demo";
|
|
61
59
|
const ALL_Layouts = [
|
|
62
60
|
"default",
|
|
63
61
|
"demo"
|
|
64
62
|
];
|
|
63
|
+
const LzListViewLayoutDemo = lazy(() => import("./listview-layouts/listviewlayout-demo"));
|
|
64
|
+
const LzListViewLayoutDefault = lazy(() => import("./listview-layouts/default"));
|
|
65
65
|
const commonListViewContext = createContext(void 0);
|
|
66
66
|
function ListViewProvider(props) {
|
|
67
67
|
var _a;
|
|
@@ -213,9 +213,9 @@ const ListViewLayout = (props) => {
|
|
|
213
213
|
const Layout = useMemo(() => {
|
|
214
214
|
switch (listView.layout) {
|
|
215
215
|
case "demo":
|
|
216
|
-
return
|
|
216
|
+
return LzListViewLayoutDemo;
|
|
217
217
|
default:
|
|
218
|
-
return
|
|
218
|
+
return LzListViewLayoutDefault;
|
|
219
219
|
}
|
|
220
220
|
}, [listView.layout]);
|
|
221
221
|
return /* @__PURE__ */ jsx(Layout, { children });
|
|
@@ -243,6 +243,8 @@ export {
|
|
|
243
243
|
CommonListView,
|
|
244
244
|
ListViewActions,
|
|
245
245
|
ListViewProvider,
|
|
246
|
+
LzListViewLayoutDefault,
|
|
247
|
+
LzListViewLayoutDemo,
|
|
246
248
|
useDetail,
|
|
247
249
|
useListView
|
|
248
250
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
export
|
|
2
|
+
export default function ListViewLayoutDefault(props: PropsWithChildren): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
function ListViewLayoutDefault(props) {
|
|
4
4
|
const { children } = props;
|
|
5
5
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
export {
|
|
8
|
-
ListViewLayoutDefault
|
|
8
|
+
ListViewLayoutDefault as default
|
|
9
9
|
};
|