gomtm 0.0.283 → 0.0.284
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/consts.d.ts +1 -0
- package/dist/esm/consts.js +2 -0
- package/dist/esm/curd/listview/ListViewProvider.js +46 -3
- package/dist/esm/curd/listview/MtListView.js +3 -50
- package/dist/esm/curd/listview/listview-layouts/default/index.js +2 -5
- package/dist/esm/validations/spContentModi.d.ts +4 -4
- package/dist/esm/validations/spRoute.d.ts +4 -4
- package/dist/esm/validations/user.d.ts +2 -2
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/esm/components/MtUnaryCallErrorView.d.ts +0 -7
- package/dist/esm/components/MtUnaryCallErrorView.js +0 -16
- package/dist/esm/curd/ListViewPage.d.ts +0 -4
- package/dist/esm/curd/ListViewPage.js +0 -50
- package/dist/esm/curd/ListViewProvider.d.ts +0 -64
- package/dist/esm/curd/ListViewProvider.js +0 -198
- package/dist/esm/curd/MtListView.d.ts +0 -3
- package/dist/esm/curd/MtListView.js +0 -50
- package/dist/esm/curd/listview/listview-layouts/listview-demolayout/index.d.ts +0 -2
- package/dist/esm/curd/listview/listview-layouts/listview-demolayout/index.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gomtm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.284",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"stable-hash": "^0.0.4",
|
|
83
83
|
"universal-cookie": "^7.1.4",
|
|
84
84
|
"zod": "^3.22.2",
|
|
85
|
-
"mtxlib": "0.3.
|
|
86
|
-
"mtxuilib": "0.0.
|
|
85
|
+
"mtxlib": "0.3.364",
|
|
86
|
+
"mtxuilib": "0.0.641"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@babel/core": "^7.24.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PlainMessage } from "@bufbuild/protobuf";
|
|
3
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
4
|
-
export declare const MtUnaryCallErrorView: (props: {
|
|
5
|
-
unaryError: PlainMessage<MtmError>;
|
|
6
|
-
retry?: () => void;
|
|
7
|
-
}) => import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
const MtUnaryCallErrorView = (props) => {
|
|
4
|
-
const { unaryError, retry } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-red-400 p-4", children: [
|
|
6
|
-
"code: ",
|
|
7
|
-
unaryError.errCode,
|
|
8
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("pre", { className: "prose dark:prose-invert flex-wrap text-wrap break-words", children: unaryError.errMessage }) }),
|
|
9
|
-
retry && /* @__PURE__ */ jsx("button", { onClick: () => {
|
|
10
|
-
retry();
|
|
11
|
-
}, children: "retry" })
|
|
12
|
-
] });
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
MtUnaryCallErrorView
|
|
16
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, PropsWithChildren } from "react";
|
|
2
|
-
import { Message } from "..";
|
|
3
|
-
import { ListViewProvider } from "./ListViewProvider";
|
|
4
|
-
export default function MtListView<I extends Message<I>, O extends Message<O>>(props: {} & ComponentProps<typeof ListViewProvider> & PropsWithChildren): import("react").JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
import { jsx } from "react/jsx-runtime";
|
|
34
|
-
import { PrefetchConnectInfiniteQuery } from "../components/SSR";
|
|
35
|
-
import { siteList } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
|
|
36
|
-
import { ListViewProvider } from "./ListViewProvider";
|
|
37
|
-
function MtListView(props) {
|
|
38
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
39
|
-
return /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
|
|
40
|
-
PrefetchConnectInfiniteQuery,
|
|
41
|
-
{
|
|
42
|
-
methodSig: siteList,
|
|
43
|
-
input: etc.params,
|
|
44
|
-
children
|
|
45
|
-
}
|
|
46
|
-
) }));
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
MtListView as default
|
|
50
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Message } from "@bufbuild/protobuf";
|
|
2
|
-
import { Dispatch, PropsWithChildren, SetStateAction } from "react";
|
|
3
|
-
interface ListViewProps {
|
|
4
|
-
svc: string;
|
|
5
|
-
methodList: string;
|
|
6
|
-
methodDelete: string;
|
|
7
|
-
methodCreate?: string;
|
|
8
|
-
methodGet?: string;
|
|
9
|
-
slugPath?: string;
|
|
10
|
-
activateItem?: any;
|
|
11
|
-
params?: any;
|
|
12
|
-
getParams?: any;
|
|
13
|
-
detailData?: any;
|
|
14
|
-
}
|
|
15
|
-
export declare function ListViewProvider(props: ListViewProps & PropsWithChildren): import("react").JSX.Element;
|
|
16
|
-
export declare function useListView<I extends Message<I>, O extends Message<O>>(): {
|
|
17
|
-
svc?: string | undefined;
|
|
18
|
-
methodList?: string | undefined;
|
|
19
|
-
methodDelete?: string | undefined;
|
|
20
|
-
methodCreate?: string | undefined;
|
|
21
|
-
methodGet?: string | undefined;
|
|
22
|
-
slugPath?: string | undefined;
|
|
23
|
-
activateItem?: any;
|
|
24
|
-
params?: any;
|
|
25
|
-
getParams?: any;
|
|
26
|
-
detailData?: any;
|
|
27
|
-
openRemove?: boolean | undefined;
|
|
28
|
-
setOpenRemove?: Dispatch<SetStateAction<boolean>> | undefined;
|
|
29
|
-
openCreate?: boolean | undefined;
|
|
30
|
-
setOpenCreate?: Dispatch<SetStateAction<boolean>> | undefined;
|
|
31
|
-
setActivateItem?: Dispatch<any> | undefined;
|
|
32
|
-
openEdit?: boolean | undefined;
|
|
33
|
-
setOpenEdit?: Dispatch<SetStateAction<boolean>> | undefined;
|
|
34
|
-
openDebug?: boolean | undefined;
|
|
35
|
-
setOpenDebug?: Dispatch<SetStateAction<boolean>> | undefined;
|
|
36
|
-
setParams?: Dispatch<any> | undefined;
|
|
37
|
-
setDetailData?: Dispatch<any> | undefined;
|
|
38
|
-
};
|
|
39
|
-
export declare function useDetail(): {
|
|
40
|
-
svc: string;
|
|
41
|
-
methodList: string;
|
|
42
|
-
methodDelete: string;
|
|
43
|
-
methodCreate?: string | undefined;
|
|
44
|
-
methodGet?: string | undefined;
|
|
45
|
-
slugPath?: string | undefined;
|
|
46
|
-
activateItem?: any;
|
|
47
|
-
params?: any;
|
|
48
|
-
getParams?: any;
|
|
49
|
-
detailData?: any;
|
|
50
|
-
openRemove: boolean;
|
|
51
|
-
setOpenRemove: Dispatch<SetStateAction<boolean>>;
|
|
52
|
-
openCreate: boolean;
|
|
53
|
-
setOpenCreate: Dispatch<SetStateAction<boolean>>;
|
|
54
|
-
setActivateItem: Dispatch<any>;
|
|
55
|
-
openEdit?: boolean | undefined;
|
|
56
|
-
setOpenEdit: Dispatch<SetStateAction<boolean>>;
|
|
57
|
-
openDebug?: boolean | undefined;
|
|
58
|
-
setOpenDebug: Dispatch<SetStateAction<boolean>>;
|
|
59
|
-
setParams: Dispatch<any>;
|
|
60
|
-
setDetailData: Dispatch<any>;
|
|
61
|
-
};
|
|
62
|
-
export declare function CommonListView<I extends Message<I>, O extends Message<O>>(): import("react").JSX.Element | null;
|
|
63
|
-
export declare const ListViewActions: () => import("react").JSX.Element;
|
|
64
|
-
export {};
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
var __async = (__this, __arguments, generator) => {
|
|
19
|
-
return new Promise((resolve, reject) => {
|
|
20
|
-
var fulfilled = (value) => {
|
|
21
|
-
try {
|
|
22
|
-
step(generator.next(value));
|
|
23
|
-
} catch (e) {
|
|
24
|
-
reject(e);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var rejected = (value) => {
|
|
28
|
-
try {
|
|
29
|
-
step(generator.throw(value));
|
|
30
|
-
} catch (e) {
|
|
31
|
-
reject(e);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
-
import { debounce } from "lodash";
|
|
40
|
-
import { Icons } from "mtxuilib/icons/icons";
|
|
41
|
-
import { cn } from "mtxuilib/lib/utils";
|
|
42
|
-
import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
43
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
|
|
44
|
-
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "mtxuilib/ui/pagination";
|
|
45
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
46
|
-
import { Suspense, createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
47
|
-
import { MtmErrorView } from "../components/MtmErrorView";
|
|
48
|
-
import { CONST_debounce_INPUT } from "../consts";
|
|
49
|
-
import { useGomtmMutation, useGomtmSuspenseInfiniteQuery } from "../gomtmQuery";
|
|
50
|
-
import { useMtmApp } from "../providers/GomtmProvider";
|
|
51
|
-
import { DlgCurdDebugInfo, DlgCurdDebugInfoTriggerButton } from "./CurdDetailProvider";
|
|
52
|
-
import CurdCreatePanel, { CurdCreatePanelTriggerButton } from "./create/CurdCreatePanel";
|
|
53
|
-
import CurdEditPanel, { CurdEditPanelTriggerButton } from "./edit/CurdEditPanel";
|
|
54
|
-
import { ListItemView } from "./list-item/ListItem";
|
|
55
|
-
import { ListLayout } from "./list-item/ListLayout";
|
|
56
|
-
const commonListViewContext = createContext(void 0);
|
|
57
|
-
function ListViewProvider(props) {
|
|
58
|
-
const { children, svc, methodList, methodDelete, slugPath, methodCreate, methodGet } = props;
|
|
59
|
-
const mtapp = useMtmApp();
|
|
60
|
-
const [_svc, setSvc] = useState(svc);
|
|
61
|
-
const [openRemove, setOpenRemove] = useState(false);
|
|
62
|
-
const [openCreate, setOpenCreate] = useState(false);
|
|
63
|
-
const [activateItem, setActivateItem] = useState(void 0);
|
|
64
|
-
const [openEdit, setOpenEdit] = useState(false);
|
|
65
|
-
const [openDebug, setOpenDebug] = useState(false);
|
|
66
|
-
const [_params, _setParams] = useState(mtapp.globalSearchParams);
|
|
67
|
-
const [detailData, setDetailData] = useState(void 0);
|
|
68
|
-
const params = useMemo(() => {
|
|
69
|
-
var _a;
|
|
70
|
-
return {
|
|
71
|
-
q: (_a = mtapp.globalSearchParams) == null ? void 0 : _a.q
|
|
72
|
-
};
|
|
73
|
-
}, [mtapp.globalSearchParams]);
|
|
74
|
-
const setParams = useCallback(debounce((values) => {
|
|
75
|
-
_setParams(values);
|
|
76
|
-
}, CONST_debounce_INPUT), [_setParams]);
|
|
77
|
-
return /* @__PURE__ */ jsx(commonListViewContext.Provider, { value: {
|
|
78
|
-
svc: _svc,
|
|
79
|
-
methodList,
|
|
80
|
-
methodGet,
|
|
81
|
-
methodDelete,
|
|
82
|
-
methodCreate,
|
|
83
|
-
slugPath,
|
|
84
|
-
openRemove,
|
|
85
|
-
setOpenRemove,
|
|
86
|
-
openCreate,
|
|
87
|
-
setOpenCreate,
|
|
88
|
-
activateItem,
|
|
89
|
-
setActivateItem,
|
|
90
|
-
openEdit,
|
|
91
|
-
setOpenEdit,
|
|
92
|
-
openDebug,
|
|
93
|
-
setOpenDebug,
|
|
94
|
-
params,
|
|
95
|
-
setParams,
|
|
96
|
-
detailData,
|
|
97
|
-
setDetailData
|
|
98
|
-
}, children });
|
|
99
|
-
}
|
|
100
|
-
function useListView() {
|
|
101
|
-
const ctx = useContext(commonListViewContext);
|
|
102
|
-
return __spreadValues({}, ctx);
|
|
103
|
-
}
|
|
104
|
-
function useDetail() {
|
|
105
|
-
const mtappContext = useContext(commonListViewContext);
|
|
106
|
-
if (mtappContext === void 0) {
|
|
107
|
-
throw new Error("useDetail must be used within a MtAppProvider");
|
|
108
|
-
}
|
|
109
|
-
return __spreadValues({}, mtappContext);
|
|
110
|
-
}
|
|
111
|
-
function CommonListView() {
|
|
112
|
-
const listView = useListView();
|
|
113
|
-
const listQuery = useGomtmSuspenseInfiniteQuery(listView.svc, listView.methodList, listView.params);
|
|
114
|
-
if (!(listQuery == null ? void 0 : listQuery.data)) {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
118
|
-
/* @__PURE__ */ jsx(
|
|
119
|
-
"div",
|
|
120
|
-
{
|
|
121
|
-
className: cn(
|
|
122
|
-
"w-full"
|
|
123
|
-
// 滚动设置
|
|
124
|
-
// " max-h-[700px] overflow-y-auto"
|
|
125
|
-
),
|
|
126
|
-
children: listQuery.data.pages.map((page, i) => {
|
|
127
|
-
var _a;
|
|
128
|
-
if (page.errCode) {
|
|
129
|
-
return /* @__PURE__ */ jsx(MtmErrorView, { unaryError: page }, i);
|
|
130
|
-
} else {
|
|
131
|
-
return /* @__PURE__ */ jsx(ListLayout, { layout: page.listLayout, children: (_a = page == null ? void 0 : page.items) == null ? void 0 : _a.map((item, j) => /* @__PURE__ */ jsx(ListItemView, { item }, `${i}-${j}`)) }, i);
|
|
132
|
-
}
|
|
133
|
-
})
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ jsx(Pagination, { children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
137
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationPrevious, { href: "#" }) }),
|
|
138
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "1" }) }),
|
|
139
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", isActive: true, children: "2" }) }),
|
|
140
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "3" }) }),
|
|
141
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }),
|
|
142
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, { href: "#" }) })
|
|
143
|
-
] }) }),
|
|
144
|
-
/* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1", children: /* @__PURE__ */ jsx(ListViewActions, {}) })
|
|
145
|
-
] });
|
|
146
|
-
}
|
|
147
|
-
const PanelRemove = () => {
|
|
148
|
-
const listView = useListView();
|
|
149
|
-
const mutation = useGomtmMutation(listView.svc, listView.methodDelete);
|
|
150
|
-
return /* @__PURE__ */ jsx(Dialog, { open: listView.openRemove, onOpenChange: listView.setOpenRemove, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
151
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "remove item" }),
|
|
152
|
-
/* @__PURE__ */ jsx(MtButton, { onClick: () => __async(void 0, null, function* () {
|
|
153
|
-
var _a;
|
|
154
|
-
yield mutation.mutateAsync({
|
|
155
|
-
id: (_a = listView.activateItem) == null ? void 0 : _a.id
|
|
156
|
-
});
|
|
157
|
-
listView.setOpenRemove(false);
|
|
158
|
-
}), children: "ok" })
|
|
159
|
-
] }) });
|
|
160
|
-
};
|
|
161
|
-
const PanelCreate = () => {
|
|
162
|
-
const listView = useListView();
|
|
163
|
-
return /* @__PURE__ */ jsx(Dialog, { open: listView.openCreate, onOpenChange: listView.setOpenCreate, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
164
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "TODO create item Dlg" }),
|
|
165
|
-
/* @__PURE__ */ jsx(MtButton, { onClick: () => __async(void 0, null, function* () {
|
|
166
|
-
listView.setOpenCreate(false);
|
|
167
|
-
}), children: "ok" })
|
|
168
|
-
] }) });
|
|
169
|
-
};
|
|
170
|
-
const ListViewActions = () => {
|
|
171
|
-
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
172
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { variant: "ghost", className: "m-0 flex h-10 w-10 items-center justify-center border p-0 shadow-sm backdrop-blur", children: /* @__PURE__ */ jsx(Icons.ellipsis, {}) }) }),
|
|
173
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { className: "w-56", children: [
|
|
174
|
-
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Edit" }),
|
|
175
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
176
|
-
/* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
177
|
-
/* @__PURE__ */ jsx(PanelRemove, {}),
|
|
178
|
-
/* @__PURE__ */ jsx(PanelCreate, {}),
|
|
179
|
-
/* @__PURE__ */ jsx(DlgCurdDebugInfo, {}),
|
|
180
|
-
/* @__PURE__ */ jsx(CurdCreatePanel, {}),
|
|
181
|
-
/* @__PURE__ */ jsx(CurdEditPanel, {}),
|
|
182
|
-
/* @__PURE__ */ jsxs("div", { className: "bg-yellow-100 p-2", children: [
|
|
183
|
-
/* @__PURE__ */ jsx(DlgCurdDebugInfoTriggerButton, {}),
|
|
184
|
-
/* @__PURE__ */ jsx(CurdEditPanelTriggerButton, {}),
|
|
185
|
-
/* @__PURE__ */ jsx(CurdCreatePanelTriggerButton, {})
|
|
186
|
-
] })
|
|
187
|
-
] }) }) }),
|
|
188
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {})
|
|
189
|
-
] })
|
|
190
|
-
] });
|
|
191
|
-
};
|
|
192
|
-
export {
|
|
193
|
-
CommonListView,
|
|
194
|
-
ListViewActions,
|
|
195
|
-
ListViewProvider,
|
|
196
|
-
useDetail,
|
|
197
|
-
useListView
|
|
198
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import { jsx } from "react/jsx-runtime";
|
|
33
|
-
import { PrefetchConnectInfiniteQuery } from "../components/SSR";
|
|
34
|
-
import { siteList } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
|
|
35
|
-
import { ListViewProvider } from "./ListViewProvider";
|
|
36
|
-
function MtListView(props) {
|
|
37
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
38
|
-
return /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
|
|
39
|
-
PrefetchConnectInfiniteQuery,
|
|
40
|
-
{
|
|
41
|
-
svc: siteList.service.typeName,
|
|
42
|
-
method: siteList.name,
|
|
43
|
-
input: etc.params,
|
|
44
|
-
children
|
|
45
|
-
}
|
|
46
|
-
) }));
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
MtListView as default
|
|
50
|
-
};
|