gomtm 0.0.370 → 0.0.372
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/components/curdView/curdViewEditor.d.ts +0 -1
- package/dist/esm/components/curdView/curdViewEditor.js +31 -9
- package/dist/esm/curd/CurdView.js +4 -1
- package/dist/esm/curd/CurdViewSS.js +3 -3
- package/dist/esm/curd/form/CurdEditPanel.js +0 -20
- package/dist/esm/curd/listview/CommonListView.d.ts +5 -1
- package/dist/esm/curd/listview/CommonListView.js +9 -8
- package/dist/esm/curd/remove/RemovePanel.d.ts +8 -2
- package/dist/esm/curd/remove/RemovePanel.js +8 -6
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.d.ts +18 -10
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.js +87 -51
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -44,13 +44,13 @@ function CurdViewEditor(props) {
|
|
|
44
44
|
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "title" }, field)) }),
|
|
45
45
|
/* @__PURE__ */ jsx(FormMessage, {})
|
|
46
46
|
] }) }),
|
|
47
|
-
/* @__PURE__ */ jsx(CurdViewContentField, { name: "content"
|
|
47
|
+
/* @__PURE__ */ jsx(CurdViewContentField, { name: "content" })
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
const CurdViewContentField = (props) => {
|
|
51
|
-
const { name
|
|
51
|
+
const { name } = props;
|
|
52
52
|
const form = useFormContext();
|
|
53
|
-
|
|
53
|
+
const defaultValues = form.getValues()[name];
|
|
54
54
|
const contentForm = useForm({
|
|
55
55
|
defaultValues
|
|
56
56
|
});
|
|
@@ -61,14 +61,36 @@ const CurdViewContentField = (props) => {
|
|
|
61
61
|
return () => subscription.unsubscribe();
|
|
62
62
|
}, [contentForm, contentForm.watch, form, name]);
|
|
63
63
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
FormField,
|
|
66
|
+
{
|
|
67
|
+
control: contentForm.control,
|
|
68
|
+
name: "svcName",
|
|
69
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
70
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Svc" }),
|
|
71
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "svcName" }, field)) }),
|
|
72
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
73
|
+
] })
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodList", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
77
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "methodList" }),
|
|
78
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodList" }, field)) }),
|
|
79
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
80
|
+
] }) }),
|
|
81
|
+
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodGet", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
82
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "methodGet" }),
|
|
83
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodGet" }, field)) }),
|
|
84
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
85
|
+
] }) }),
|
|
86
|
+
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodUpdate", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
87
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "methodUpdate" }),
|
|
88
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodUpdate" }, field)) }),
|
|
67
89
|
/* @__PURE__ */ jsx(FormMessage, {})
|
|
68
90
|
] }) }),
|
|
69
|
-
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "
|
|
70
|
-
/* @__PURE__ */ jsx(FormLabel, { children: "
|
|
71
|
-
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "
|
|
91
|
+
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodDelete", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
92
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "methodDelete" }),
|
|
93
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodDelete" }, field)) }),
|
|
72
94
|
/* @__PURE__ */ jsx(FormMessage, {})
|
|
73
95
|
] }) })
|
|
74
96
|
] });
|
|
@@ -21,7 +21,10 @@ const CurdViewView = (props) => {
|
|
|
21
21
|
if (!query.data.item.value) {
|
|
22
22
|
return /* @__PURE__ */ jsx("div", { children: "missing curd data222" });
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
if (!query.data.item.value.content) {
|
|
25
|
+
return /* @__PURE__ */ jsx("div", { children: "missing curdview content" });
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsx(ListViewStoreProvider, { curdView: query.data.item.value, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading CommonListView" }), children: /* @__PURE__ */ jsx(CommonListView, { curdViewContent: query.data.item.value.content }) }) });
|
|
25
28
|
}
|
|
26
29
|
};
|
|
27
30
|
export {
|
|
@@ -27,7 +27,7 @@ import { CurdViewGetReq } from "../gomtmpb/mtm/sppb/curd_pb";
|
|
|
27
27
|
import { createMtmServiceClient } from "../mtmFetcher";
|
|
28
28
|
import { CurdViewView } from "./CurdView";
|
|
29
29
|
const CurdViewSS = (props) => __async(void 0, null, function* () {
|
|
30
|
-
var _a, _b;
|
|
30
|
+
var _a, _b, _c, _d;
|
|
31
31
|
const { name } = props;
|
|
32
32
|
const client = createMtmServiceClient(CurdService);
|
|
33
33
|
const curdViewRes = yield client.curdViewGet(new CurdViewGetReq({
|
|
@@ -39,8 +39,8 @@ const CurdViewSS = (props) => __async(void 0, null, function* () {
|
|
|
39
39
|
curdViewRes.item.value.message
|
|
40
40
|
] });
|
|
41
41
|
}
|
|
42
|
-
const svc = ((_a = curdViewRes.item.value) == null ? void 0 : _a.svcName) || "";
|
|
43
|
-
const methodList = ((
|
|
42
|
+
const svc = ((_b = (_a = curdViewRes.item.value) == null ? void 0 : _a.content) == null ? void 0 : _b.svcName) || "";
|
|
43
|
+
const methodList = ((_d = (_c = curdViewRes.item.value) == null ? void 0 : _c.content) == null ? void 0 : _d.methodList) || "";
|
|
44
44
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
45
45
|
PrefetchConnectQuery,
|
|
46
46
|
{
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMtRouter } from "mtxuilib/hooks/use-router";
|
|
4
4
|
import { MtPopupPanel } from "mtxuilib/ui/ui-mt/MtPopupPanel";
|
|
5
|
-
import { useMemo } from "react";
|
|
6
|
-
import { useGomtmSuspenseQuery } from "../../gomtmQuery";
|
|
7
5
|
import { RenderViewByName } from "../DynViews";
|
|
8
|
-
import { useListview } from "../listview/list-store";
|
|
9
6
|
import { useGomtmForm2 } from "./formStore";
|
|
10
7
|
function CurdEditPanel(props) {
|
|
11
8
|
const gomtmForm = useGomtmForm2();
|
|
@@ -34,23 +31,6 @@ function CurdEditPanel(props) {
|
|
|
34
31
|
}
|
|
35
32
|
) });
|
|
36
33
|
}
|
|
37
|
-
const WithLoadGetData = (props) => {
|
|
38
|
-
const { children } = props;
|
|
39
|
-
const methodGet = useListview((x) => x.curdView.methodGet);
|
|
40
|
-
const svc = useListview((x) => x.curdView.svcName);
|
|
41
|
-
const activateItem = useListview((x) => x.activateItem);
|
|
42
|
-
const setDetailData = useListview((x) => x.setDetailData);
|
|
43
|
-
const detailQuery = useGomtmSuspenseQuery(svc, methodGet, {
|
|
44
|
-
id: parseInt(activateItem.id)
|
|
45
|
-
});
|
|
46
|
-
useMemo(() => {
|
|
47
|
-
setDetailData(detailQuery.data);
|
|
48
|
-
}, [detailQuery.data, setDetailData]);
|
|
49
|
-
if (detailQuery.isLoading) {
|
|
50
|
-
return /* @__PURE__ */ jsx("div", { children: "loading detail" });
|
|
51
|
-
}
|
|
52
|
-
return children;
|
|
53
|
-
};
|
|
54
34
|
export {
|
|
55
35
|
CurdEditPanel as default
|
|
56
36
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { PlainMessage } from "@bufbuild/protobuf";
|
|
3
|
+
import { CurdViewContent } from "../../gomtmpb/mtm/sppb/curd_pb";
|
|
2
4
|
export declare const LzListViewLayoutDemo: import("react").LazyExoticComponent<typeof import("./listview-layouts/listviewlayout-demo").default>;
|
|
3
5
|
export declare const LzListViewLayoutDefault: import("react").LazyExoticComponent<typeof import("./listview-layouts/default").default>;
|
|
4
|
-
export declare function CommonListView(
|
|
6
|
+
export declare function CommonListView(props: {
|
|
7
|
+
curdViewContent: PlainMessage<CurdViewContent>;
|
|
8
|
+
}): import("react").JSX.Element | null;
|
|
5
9
|
export declare const ListViewActions: () => import("react").JSX.Element;
|
|
@@ -19,18 +19,19 @@ const ALL_Layouts = [
|
|
|
19
19
|
];
|
|
20
20
|
const LzListViewLayoutDemo = lazy(() => import("./listview-layouts/listviewlayout-demo"));
|
|
21
21
|
const LzListViewLayoutDefault = lazy(() => import("./listview-layouts/default"));
|
|
22
|
-
function CommonListView() {
|
|
23
|
-
const
|
|
24
|
-
const
|
|
22
|
+
function CommonListView(props) {
|
|
23
|
+
const { curdViewContent } = props;
|
|
24
|
+
const svc = useListview((x) => curdViewContent.svcName);
|
|
25
|
+
const methodList = useListview((x) => curdViewContent.methodList);
|
|
25
26
|
const paramList = useListview((x) => x.paramsList);
|
|
26
27
|
const setOpenEdit = useListview((x) => x.setOpenEdit);
|
|
27
28
|
const openEdit = useListview((x) => x.openEdit);
|
|
28
29
|
const openCreate = useListview((x) => x.openCreate);
|
|
29
30
|
const setOpenCreate = useListview((x) => x.setOpenCreate);
|
|
30
|
-
const viewUpdate = useListview((x) =>
|
|
31
|
-
const viewCreate = useListview((x) =>
|
|
32
|
-
const methodUpdate = useListview((x) =>
|
|
33
|
-
const methodCreate = useListview((x) =>
|
|
31
|
+
const viewUpdate = useListview((x) => curdViewContent.routeEdit);
|
|
32
|
+
const viewCreate = useListview((x) => curdViewContent.routeCreate);
|
|
33
|
+
const methodUpdate = useListview((x) => curdViewContent.methodUpdate);
|
|
34
|
+
const methodCreate = useListview((x) => curdViewContent.methodCreate);
|
|
34
35
|
const openCurdViewEditor = useListview((x) => x.openCurdViewEditor);
|
|
35
36
|
const setOpenCurdViewEditor = useListview((x) => x.setOpenCurdViewEditor);
|
|
36
37
|
const curdView = useListview((x) => x.curdView);
|
|
@@ -90,7 +91,7 @@ function CommonListView() {
|
|
|
90
91
|
children: /* @__PURE__ */ jsx(CurdEditPanel, {})
|
|
91
92
|
}
|
|
92
93
|
),
|
|
93
|
-
/* @__PURE__ */ jsx(PanelRemove, {}),
|
|
94
|
+
/* @__PURE__ */ jsx(PanelRemove, { curdViewContent }),
|
|
94
95
|
openCurdViewEditor && /* @__PURE__ */ jsx(
|
|
95
96
|
GomtmForm,
|
|
96
97
|
{
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { PlainMessage } from "@bufbuild/protobuf";
|
|
3
|
+
import { CurdViewContent } from "../../gomtmpb/mtm/sppb/curd_pb";
|
|
4
|
+
export declare function useCurdRemove(props: {
|
|
5
|
+
curdViewContent: PlainMessage<CurdViewContent>;
|
|
6
|
+
}): {
|
|
3
7
|
handlerSubmit: () => Promise<void>;
|
|
4
8
|
open: boolean;
|
|
5
9
|
setOpen: (openRemove: boolean) => void;
|
|
6
10
|
};
|
|
7
|
-
export declare const PanelRemove: (
|
|
11
|
+
export declare const PanelRemove: (props: {
|
|
12
|
+
curdViewContent: PlainMessage<CurdViewContent>;
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
@@ -27,12 +27,13 @@ import { useCallback } from "react";
|
|
|
27
27
|
import { useGomtmMutation } from "../../gomtmQuery";
|
|
28
28
|
import { createQueryKey } from "../../mtmFetcher";
|
|
29
29
|
import { useListview } from "../listview/list-store";
|
|
30
|
-
function useCurdRemove() {
|
|
31
|
-
const
|
|
30
|
+
function useCurdRemove(props) {
|
|
31
|
+
const { curdViewContent } = props;
|
|
32
|
+
const svc = useListview((x) => curdViewContent.svcName);
|
|
32
33
|
const openRemove = useListview((x) => x.openRemove);
|
|
33
34
|
const setOpenRemove = useListview((x) => x.setOpenRemove);
|
|
34
|
-
const methodDelete = useListview((x) =>
|
|
35
|
-
const methodList = useListview((x) =>
|
|
35
|
+
const methodDelete = useListview((x) => curdViewContent.methodDelete);
|
|
36
|
+
const methodList = useListview((x) => curdViewContent.methodList);
|
|
36
37
|
const mutation = useGomtmMutation(svc, methodDelete, {
|
|
37
38
|
onSuccess(data, variables, context) {
|
|
38
39
|
queryClient.invalidateQueries({
|
|
@@ -55,8 +56,9 @@ function useCurdRemove() {
|
|
|
55
56
|
setOpen: setOpenRemove
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
|
-
const PanelRemove = () => {
|
|
59
|
-
const
|
|
59
|
+
const PanelRemove = (props) => {
|
|
60
|
+
const { curdViewContent } = props;
|
|
61
|
+
const curdRemove = useCurdRemove({ curdViewContent });
|
|
60
62
|
return /* @__PURE__ */ jsx(Dialog, { open: curdRemove.open, onOpenChange: curdRemove.setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
61
63
|
/* @__PURE__ */ jsx(DialogTitle, { children: "remove item" }),
|
|
62
64
|
/* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
@@ -157,6 +157,18 @@ export declare class CurdView extends Message<CurdView> {
|
|
|
157
157
|
name: string;
|
|
158
158
|
title: string;
|
|
159
159
|
enabled: boolean;
|
|
160
|
+
content?: CurdViewContent;
|
|
161
|
+
constructor(data?: PartialMessage<CurdView>);
|
|
162
|
+
static readonly runtime: typeof proto3;
|
|
163
|
+
static readonly typeName = "sppb.CurdView";
|
|
164
|
+
static readonly fields: FieldList;
|
|
165
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdView;
|
|
166
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdView;
|
|
167
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdView;
|
|
168
|
+
static equals(a: CurdView | PlainMessage<CurdView> | undefined, b: CurdView | PlainMessage<CurdView> | undefined): boolean;
|
|
169
|
+
}
|
|
170
|
+
export declare class CurdViewContent extends Message<CurdViewContent> {
|
|
171
|
+
title: string;
|
|
160
172
|
routeList: string;
|
|
161
173
|
routeShow: string;
|
|
162
174
|
routeCreate: string;
|
|
@@ -174,18 +186,14 @@ export declare class CurdView extends Message<CurdView> {
|
|
|
174
186
|
formEdit?: FormSchema;
|
|
175
187
|
pageSize: number;
|
|
176
188
|
paginateType: PaginateType;
|
|
177
|
-
params: {
|
|
178
|
-
[key: string]: string;
|
|
179
|
-
};
|
|
180
189
|
layout: string;
|
|
181
190
|
defaultDetailView: string;
|
|
182
|
-
|
|
183
|
-
constructor(data?: PartialMessage<CurdView>);
|
|
191
|
+
constructor(data?: PartialMessage<CurdViewContent>);
|
|
184
192
|
static readonly runtime: typeof proto3;
|
|
185
|
-
static readonly typeName = "sppb.
|
|
193
|
+
static readonly typeName = "sppb.CurdViewContent";
|
|
186
194
|
static readonly fields: FieldList;
|
|
187
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
188
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
189
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
190
|
-
static equals(a:
|
|
195
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdViewContent;
|
|
196
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdViewContent;
|
|
197
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdViewContent;
|
|
198
|
+
static equals(a: CurdViewContent | PlainMessage<CurdViewContent> | undefined, b: CurdViewContent | PlainMessage<CurdViewContent> | undefined): boolean;
|
|
191
199
|
}
|
|
@@ -474,9 +474,87 @@ const _CurdView = class _CurdView extends Message {
|
|
|
474
474
|
*/
|
|
475
475
|
__publicField(this, "title", "");
|
|
476
476
|
/**
|
|
477
|
+
* string route_list = 4;
|
|
478
|
+
* string route_show = 5;
|
|
479
|
+
* string route_create = 6;
|
|
480
|
+
* string route_edit = 7;
|
|
481
|
+
* string svc_name = 8;
|
|
482
|
+
* string method_list = 9;
|
|
483
|
+
* string method_get = 10;
|
|
484
|
+
* string method_create = 11;
|
|
485
|
+
* string method_update = 12;
|
|
486
|
+
* string method_delete = 13;
|
|
487
|
+
* repeated string roles_view = 14;
|
|
488
|
+
* repeated string roles_edit = 15;
|
|
489
|
+
* repeated string roles_delete = 16;
|
|
490
|
+
*
|
|
477
491
|
* @generated from field: bool enabled = 3;
|
|
478
492
|
*/
|
|
479
493
|
__publicField(this, "enabled", false);
|
|
494
|
+
/**
|
|
495
|
+
* map<string, string> params = 21; // 初始查询参数
|
|
496
|
+
* string layout = 22;
|
|
497
|
+
* string default_detail_view = 24;
|
|
498
|
+
*
|
|
499
|
+
* @generated from field: sppb.CurdViewContent content = 25;
|
|
500
|
+
*/
|
|
501
|
+
__publicField(this, "content");
|
|
502
|
+
proto3.util.initPartial(data, this);
|
|
503
|
+
}
|
|
504
|
+
static fromBinary(bytes, options) {
|
|
505
|
+
return new _CurdView().fromBinary(bytes, options);
|
|
506
|
+
}
|
|
507
|
+
static fromJson(jsonValue, options) {
|
|
508
|
+
return new _CurdView().fromJson(jsonValue, options);
|
|
509
|
+
}
|
|
510
|
+
static fromJsonString(jsonString, options) {
|
|
511
|
+
return new _CurdView().fromJsonString(jsonString, options);
|
|
512
|
+
}
|
|
513
|
+
static equals(a, b) {
|
|
514
|
+
return proto3.util.equals(_CurdView, a, b);
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
__publicField(_CurdView, "runtime", proto3);
|
|
518
|
+
__publicField(_CurdView, "typeName", "sppb.CurdView");
|
|
519
|
+
__publicField(_CurdView, "fields", proto3.util.newFieldList(() => [
|
|
520
|
+
{
|
|
521
|
+
no: 1,
|
|
522
|
+
name: "id",
|
|
523
|
+
kind: "scalar",
|
|
524
|
+
T: 13
|
|
525
|
+
/* ScalarType.UINT32 */
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
no: 23,
|
|
529
|
+
name: "name",
|
|
530
|
+
kind: "scalar",
|
|
531
|
+
T: 9
|
|
532
|
+
/* ScalarType.STRING */
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
no: 2,
|
|
536
|
+
name: "title",
|
|
537
|
+
kind: "scalar",
|
|
538
|
+
T: 9
|
|
539
|
+
/* ScalarType.STRING */
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
no: 3,
|
|
543
|
+
name: "enabled",
|
|
544
|
+
kind: "scalar",
|
|
545
|
+
T: 8
|
|
546
|
+
/* ScalarType.BOOL */
|
|
547
|
+
},
|
|
548
|
+
{ no: 25, name: "content", kind: "message", T: CurdViewContent }
|
|
549
|
+
]));
|
|
550
|
+
let CurdView = _CurdView;
|
|
551
|
+
const _CurdViewContent = class _CurdViewContent extends Message {
|
|
552
|
+
constructor(data) {
|
|
553
|
+
super();
|
|
554
|
+
/**
|
|
555
|
+
* @generated from field: string title = 1;
|
|
556
|
+
*/
|
|
557
|
+
__publicField(this, "title", "");
|
|
480
558
|
/**
|
|
481
559
|
* @generated from field: string route_list = 4;
|
|
482
560
|
*/
|
|
@@ -545,12 +623,6 @@ const _CurdView = class _CurdView extends Message {
|
|
|
545
623
|
* @generated from field: sppb.PaginateType paginate_type = 20;
|
|
546
624
|
*/
|
|
547
625
|
__publicField(this, "paginateType", PaginateType.INFINITE);
|
|
548
|
-
/**
|
|
549
|
-
* 初始查询参数
|
|
550
|
-
*
|
|
551
|
-
* @generated from field: map<string, string> params = 21;
|
|
552
|
-
*/
|
|
553
|
-
__publicField(this, "params", {});
|
|
554
626
|
/**
|
|
555
627
|
* @generated from field: string layout = 22;
|
|
556
628
|
*/
|
|
@@ -559,56 +631,31 @@ const _CurdView = class _CurdView extends Message {
|
|
|
559
631
|
* @generated from field: string default_detail_view = 24;
|
|
560
632
|
*/
|
|
561
633
|
__publicField(this, "defaultDetailView", "");
|
|
562
|
-
/**
|
|
563
|
-
* @generated from field: string content = 25;
|
|
564
|
-
*/
|
|
565
|
-
__publicField(this, "content", "");
|
|
566
634
|
proto3.util.initPartial(data, this);
|
|
567
635
|
}
|
|
568
636
|
static fromBinary(bytes, options) {
|
|
569
|
-
return new
|
|
637
|
+
return new _CurdViewContent().fromBinary(bytes, options);
|
|
570
638
|
}
|
|
571
639
|
static fromJson(jsonValue, options) {
|
|
572
|
-
return new
|
|
640
|
+
return new _CurdViewContent().fromJson(jsonValue, options);
|
|
573
641
|
}
|
|
574
642
|
static fromJsonString(jsonString, options) {
|
|
575
|
-
return new
|
|
643
|
+
return new _CurdViewContent().fromJsonString(jsonString, options);
|
|
576
644
|
}
|
|
577
645
|
static equals(a, b) {
|
|
578
|
-
return proto3.util.equals(
|
|
646
|
+
return proto3.util.equals(_CurdViewContent, a, b);
|
|
579
647
|
}
|
|
580
648
|
};
|
|
581
|
-
__publicField(
|
|
582
|
-
__publicField(
|
|
583
|
-
__publicField(
|
|
649
|
+
__publicField(_CurdViewContent, "runtime", proto3);
|
|
650
|
+
__publicField(_CurdViewContent, "typeName", "sppb.CurdViewContent");
|
|
651
|
+
__publicField(_CurdViewContent, "fields", proto3.util.newFieldList(() => [
|
|
584
652
|
{
|
|
585
653
|
no: 1,
|
|
586
|
-
name: "id",
|
|
587
|
-
kind: "scalar",
|
|
588
|
-
T: 13
|
|
589
|
-
/* ScalarType.UINT32 */
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
no: 23,
|
|
593
|
-
name: "name",
|
|
594
|
-
kind: "scalar",
|
|
595
|
-
T: 9
|
|
596
|
-
/* ScalarType.STRING */
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
no: 2,
|
|
600
654
|
name: "title",
|
|
601
655
|
kind: "scalar",
|
|
602
656
|
T: 9
|
|
603
657
|
/* ScalarType.STRING */
|
|
604
658
|
},
|
|
605
|
-
{
|
|
606
|
-
no: 3,
|
|
607
|
-
name: "enabled",
|
|
608
|
-
kind: "scalar",
|
|
609
|
-
T: 8
|
|
610
|
-
/* ScalarType.BOOL */
|
|
611
|
-
},
|
|
612
659
|
{
|
|
613
660
|
no: 4,
|
|
614
661
|
name: "route_list",
|
|
@@ -692,11 +739,6 @@ __publicField(_CurdView, "fields", proto3.util.newFieldList(() => [
|
|
|
692
739
|
/* ScalarType.UINT32 */
|
|
693
740
|
},
|
|
694
741
|
{ no: 20, name: "paginate_type", kind: "enum", T: proto3.getEnumType(PaginateType) },
|
|
695
|
-
{ no: 21, name: "params", kind: "map", K: 9, V: {
|
|
696
|
-
kind: "scalar",
|
|
697
|
-
T: 9
|
|
698
|
-
/* ScalarType.STRING */
|
|
699
|
-
} },
|
|
700
742
|
{
|
|
701
743
|
no: 22,
|
|
702
744
|
name: "layout",
|
|
@@ -710,16 +752,9 @@ __publicField(_CurdView, "fields", proto3.util.newFieldList(() => [
|
|
|
710
752
|
kind: "scalar",
|
|
711
753
|
T: 9
|
|
712
754
|
/* ScalarType.STRING */
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
no: 25,
|
|
716
|
-
name: "content",
|
|
717
|
-
kind: "scalar",
|
|
718
|
-
T: 9
|
|
719
|
-
/* ScalarType.STRING */
|
|
720
755
|
}
|
|
721
756
|
]));
|
|
722
|
-
let
|
|
757
|
+
let CurdViewContent = _CurdViewContent;
|
|
723
758
|
export {
|
|
724
759
|
CurdConfig,
|
|
725
760
|
CurdConfigSvc,
|
|
@@ -729,6 +764,7 @@ export {
|
|
|
729
764
|
CurdConfigSvc_List,
|
|
730
765
|
CurdConfigSvc_Update,
|
|
731
766
|
CurdView,
|
|
767
|
+
CurdViewContent,
|
|
732
768
|
CurdViewCreateReq,
|
|
733
769
|
CurdViewGetReq,
|
|
734
770
|
CurdViewGetRes,
|