gomtm 0.0.367 → 0.0.368

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.
@@ -21,7 +21,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
21
  import { jsx, jsxs } from "react/jsx-runtime";
22
22
  import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
23
23
  import { Input } from "mtxuilib/ui/input";
24
- import { useForm, useFormContext } from "react-hook-form";
24
+ import { MtButton } from "mtxuilib/ui/ui-mt/Button";
25
+ import { useEffect } from "react";
26
+ import { useForm, useFormContext, useWatch } from "react-hook-form";
25
27
  import { FormShell } from "../../curd/form/FormShell";
26
28
  function CurdViewEditor(props) {
27
29
  const form = useFormContext();
@@ -70,21 +72,43 @@ function CurdViewEditor(props) {
70
72
  /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodUpdate" }, field)) }),
71
73
  /* @__PURE__ */ jsx(FormMessage, {})
72
74
  ] }) }),
75
+ /* @__PURE__ */ jsx(ChildB, { control: form.control }),
73
76
  /* @__PURE__ */ jsx(CurdViewContentField, {})
74
77
  ] });
75
78
  }
76
79
  const CurdViewContentField = () => {
77
80
  const form = useFormContext();
78
81
  const contentForm = useForm();
82
+ const handleSubmit = (values) => {
83
+ console.log("submit content field", values);
84
+ form.setValue("content", JSON.stringify(values));
85
+ };
86
+ useEffect(() => {
87
+ contentForm.watch();
88
+ }, []);
79
89
  return /* @__PURE__ */ jsxs("div", { children: [
80
90
  "CurdViewContentField",
81
91
  /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "someField", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
82
92
  /* @__PURE__ */ jsx(FormLabel, { children: "someField" }),
83
93
  /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "someField" }, field)) }),
84
94
  /* @__PURE__ */ jsx(FormMessage, {})
85
- ] }) })
95
+ ] }) }),
96
+ /* @__PURE__ */ jsx(MtButton, { onClick: () => {
97
+ handleSubmit(contentForm.getValues());
98
+ }, children: "\u4FDD\u5B58" })
86
99
  ] });
87
100
  };
101
+ function ChildB(props) {
102
+ const { control } = props;
103
+ const firstName = useWatch({
104
+ control,
105
+ name: "title"
106
+ });
107
+ return /* @__PURE__ */ jsxs("div", { className: "bg-red-100 p-2", children: [
108
+ "Watch: ",
109
+ firstName
110
+ ] });
111
+ }
88
112
  export {
89
113
  CurdViewContentField,
90
114
  CurdViewEditor as default
@@ -23,7 +23,7 @@ import { Suspense } from "react";
23
23
  import { PrefetchConnectInfiniteQuery, PrefetchConnectQuery } from "../components/SSR";
24
24
  import { curdViewGet } from "../gomtmpb/mtm/sppb/curd-CurdService_connectquery";
25
25
  import { CurdService } from "../gomtmpb/mtm/sppb/curd_connect";
26
- import { CurdViewGetReq } from "../gomtmpb/mtm/sppb/mtm_pb";
26
+ 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* () {
@@ -1,6 +1,6 @@
1
1
  import { PlainMessage } from '@bufbuild/protobuf';
2
2
  import { ComponentProps, PropsWithChildren } from 'react';
3
- import { CurdView } from '../../gomtmpb/mtm/sppb/mtm_pb';
3
+ import { CurdView } from '../../gomtmpb/mtm/sppb/curd_pb';
4
4
  interface ListViewStateProps {
5
5
  backendUrl?: string;
6
6
  curdView: PlainMessage<CurdView>;
@@ -36,8 +36,8 @@ import { createContext, useContext, useRef } from "react";
36
36
  import { useStore } from "zustand";
37
37
  import { createStore } from "zustand/vanilla";
38
38
  import { CONST_cookieListViewLayout } from "../../consts";
39
- import { CurdView } from "../../gomtmpb/mtm/sppb/mtm_pb";
40
39
  import { useGomtm } from "../../store/mtapp-store";
40
+ import { CurdView } from "../../gomtmpb/mtm/sppb/curd_pb";
41
41
  const createListviewStore = (initProps) => {
42
42
  return createStore()((set, get) => __spreadProps(__spreadValues({
43
43
  curdView: new CurdView(),
@@ -1,6 +1,6 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CurdConfig, CurdViewCreateReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
3
- import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, CurdViewGetReq, Result } from "./mtm_pb";
2
+ import { CurdConfig, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, Result } from "./mtm_pb";
4
4
  export declare const getCurdConfig: {
5
5
  readonly localName: "getCurdConfig";
6
6
  readonly name: "GetCurdConfig";
@@ -1,6 +1,6 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CurdConfig, CurdViewCreateReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
3
- import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, CurdViewGetReq, Result } from "./mtm_pb";
2
+ import { CurdConfig, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, Result } from "./mtm_pb";
4
4
  const getCurdConfig = {
5
5
  localName: "getCurdConfig",
6
6
  name: "GetCurdConfig",
@@ -1,6 +1,6 @@
1
- import { CurdConfig, CurdViewCreateReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
1
+ import { CurdConfig, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
- import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, CurdViewGetReq, Result } from "./mtm_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, Result } from "./mtm_pb";
4
4
  export declare const CurdService: {
5
5
  readonly typeName: "sppb.CurdService";
6
6
  readonly methods: {
@@ -1,6 +1,6 @@
1
- import { CurdConfig, CurdViewCreateReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
1
+ import { CurdConfig, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, GetCurdConfigReq } from "./curd_pb";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
- import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, CurdViewGetReq, Result } from "./mtm_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes, Result } from "./mtm_pb";
4
4
  const CurdService = {
5
5
  typeName: "sppb.CurdService",
6
6
  methods: {
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { CurdView, ErrorRes } from "./mtm_pb";
3
+ import { ErrorRes, FormSchema, PaginateType } from "./mtm_pb";
4
4
  export declare class GetCurdConfigReq extends Message<GetCurdConfigReq> {
5
5
  constructor(data?: PartialMessage<GetCurdConfigReq>);
6
6
  static readonly runtime: typeof proto3;
@@ -140,3 +140,52 @@ export declare class CurdViewGetRes extends Message<CurdViewGetRes> {
140
140
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdViewGetRes;
141
141
  static equals(a: CurdViewGetRes | PlainMessage<CurdViewGetRes> | undefined, b: CurdViewGetRes | PlainMessage<CurdViewGetRes> | undefined): boolean;
142
142
  }
143
+ export declare class CurdViewGetReq extends Message<CurdViewGetReq> {
144
+ id: string;
145
+ name: string;
146
+ constructor(data?: PartialMessage<CurdViewGetReq>);
147
+ static readonly runtime: typeof proto3;
148
+ static readonly typeName = "sppb.CurdViewGetReq";
149
+ static readonly fields: FieldList;
150
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdViewGetReq;
151
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdViewGetReq;
152
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdViewGetReq;
153
+ static equals(a: CurdViewGetReq | PlainMessage<CurdViewGetReq> | undefined, b: CurdViewGetReq | PlainMessage<CurdViewGetReq> | undefined): boolean;
154
+ }
155
+ export declare class CurdView extends Message<CurdView> {
156
+ id: number;
157
+ name: string;
158
+ title: string;
159
+ enabled: boolean;
160
+ routeList: string;
161
+ routeShow: string;
162
+ routeCreate: string;
163
+ routeEdit: string;
164
+ svcName: string;
165
+ methodList: string;
166
+ methodGet: string;
167
+ methodCreate: string;
168
+ methodUpdate: string;
169
+ methodDelete: string;
170
+ rolesView: string[];
171
+ rolesEdit: string[];
172
+ rolesDelete: string[];
173
+ formCreate?: FormSchema;
174
+ formEdit?: FormSchema;
175
+ pageSize: number;
176
+ paginateType: PaginateType;
177
+ params: {
178
+ [key: string]: string;
179
+ };
180
+ layout: string;
181
+ defaultDetailView: string;
182
+ content: string;
183
+ constructor(data?: PartialMessage<CurdView>);
184
+ static readonly runtime: typeof proto3;
185
+ static readonly typeName = "sppb.CurdView";
186
+ static readonly fields: FieldList;
187
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdView;
188
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdView;
189
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdView;
190
+ static equals(a: CurdView | PlainMessage<CurdView> | undefined, b: CurdView | PlainMessage<CurdView> | undefined): boolean;
191
+ }
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
- import { CurdView, ErrorRes } from "./mtm_pb";
8
+ import { ErrorRes, FormSchema, PaginateType } from "./mtm_pb";
9
9
  const _GetCurdConfigReq = class _GetCurdConfigReq extends Message {
10
10
  constructor(data) {
11
11
  super();
@@ -413,6 +413,313 @@ __publicField(_CurdViewGetRes, "fields", proto3.util.newFieldList(() => [
413
413
  { no: 102, name: "data", kind: "message", T: CurdView, oneof: "item" }
414
414
  ]));
415
415
  let CurdViewGetRes = _CurdViewGetRes;
416
+ const _CurdViewGetReq = class _CurdViewGetReq extends Message {
417
+ constructor(data) {
418
+ super();
419
+ /**
420
+ * @generated from field: string id = 1;
421
+ */
422
+ __publicField(this, "id", "");
423
+ /**
424
+ * @generated from field: string name = 2;
425
+ */
426
+ __publicField(this, "name", "");
427
+ proto3.util.initPartial(data, this);
428
+ }
429
+ static fromBinary(bytes, options) {
430
+ return new _CurdViewGetReq().fromBinary(bytes, options);
431
+ }
432
+ static fromJson(jsonValue, options) {
433
+ return new _CurdViewGetReq().fromJson(jsonValue, options);
434
+ }
435
+ static fromJsonString(jsonString, options) {
436
+ return new _CurdViewGetReq().fromJsonString(jsonString, options);
437
+ }
438
+ static equals(a, b) {
439
+ return proto3.util.equals(_CurdViewGetReq, a, b);
440
+ }
441
+ };
442
+ __publicField(_CurdViewGetReq, "runtime", proto3);
443
+ __publicField(_CurdViewGetReq, "typeName", "sppb.CurdViewGetReq");
444
+ __publicField(_CurdViewGetReq, "fields", proto3.util.newFieldList(() => [
445
+ {
446
+ no: 1,
447
+ name: "id",
448
+ kind: "scalar",
449
+ T: 9
450
+ /* ScalarType.STRING */
451
+ },
452
+ {
453
+ no: 2,
454
+ name: "name",
455
+ kind: "scalar",
456
+ T: 9
457
+ /* ScalarType.STRING */
458
+ }
459
+ ]));
460
+ let CurdViewGetReq = _CurdViewGetReq;
461
+ const _CurdView = class _CurdView extends Message {
462
+ constructor(data) {
463
+ super();
464
+ /**
465
+ * @generated from field: uint32 id = 1;
466
+ */
467
+ __publicField(this, "id", 0);
468
+ /**
469
+ * @generated from field: string name = 23;
470
+ */
471
+ __publicField(this, "name", "");
472
+ /**
473
+ * @generated from field: string title = 2;
474
+ */
475
+ __publicField(this, "title", "");
476
+ /**
477
+ * @generated from field: bool enabled = 3;
478
+ */
479
+ __publicField(this, "enabled", false);
480
+ /**
481
+ * @generated from field: string route_list = 4;
482
+ */
483
+ __publicField(this, "routeList", "");
484
+ /**
485
+ * @generated from field: string route_show = 5;
486
+ */
487
+ __publicField(this, "routeShow", "");
488
+ /**
489
+ * @generated from field: string route_create = 6;
490
+ */
491
+ __publicField(this, "routeCreate", "");
492
+ /**
493
+ * @generated from field: string route_edit = 7;
494
+ */
495
+ __publicField(this, "routeEdit", "");
496
+ /**
497
+ * @generated from field: string svc_name = 8;
498
+ */
499
+ __publicField(this, "svcName", "");
500
+ /**
501
+ * @generated from field: string method_list = 9;
502
+ */
503
+ __publicField(this, "methodList", "");
504
+ /**
505
+ * @generated from field: string method_get = 10;
506
+ */
507
+ __publicField(this, "methodGet", "");
508
+ /**
509
+ * @generated from field: string method_create = 11;
510
+ */
511
+ __publicField(this, "methodCreate", "");
512
+ /**
513
+ * @generated from field: string method_update = 12;
514
+ */
515
+ __publicField(this, "methodUpdate", "");
516
+ /**
517
+ * @generated from field: string method_delete = 13;
518
+ */
519
+ __publicField(this, "methodDelete", "");
520
+ /**
521
+ * @generated from field: repeated string roles_view = 14;
522
+ */
523
+ __publicField(this, "rolesView", []);
524
+ /**
525
+ * @generated from field: repeated string roles_edit = 15;
526
+ */
527
+ __publicField(this, "rolesEdit", []);
528
+ /**
529
+ * @generated from field: repeated string roles_delete = 16;
530
+ */
531
+ __publicField(this, "rolesDelete", []);
532
+ /**
533
+ * @generated from field: sppb.FormSchema form_create = 17;
534
+ */
535
+ __publicField(this, "formCreate");
536
+ /**
537
+ * @generated from field: sppb.FormSchema form_edit = 18;
538
+ */
539
+ __publicField(this, "formEdit");
540
+ /**
541
+ * @generated from field: uint32 page_size = 19;
542
+ */
543
+ __publicField(this, "pageSize", 0);
544
+ /**
545
+ * @generated from field: sppb.PaginateType paginate_type = 20;
546
+ */
547
+ __publicField(this, "paginateType", PaginateType.INFINITE);
548
+ /**
549
+ * 初始查询参数
550
+ *
551
+ * @generated from field: map<string, string> params = 21;
552
+ */
553
+ __publicField(this, "params", {});
554
+ /**
555
+ * @generated from field: string layout = 22;
556
+ */
557
+ __publicField(this, "layout", "");
558
+ /**
559
+ * @generated from field: string default_detail_view = 24;
560
+ */
561
+ __publicField(this, "defaultDetailView", "");
562
+ /**
563
+ * @generated from field: string content = 25;
564
+ */
565
+ __publicField(this, "content", "");
566
+ proto3.util.initPartial(data, this);
567
+ }
568
+ static fromBinary(bytes, options) {
569
+ return new _CurdView().fromBinary(bytes, options);
570
+ }
571
+ static fromJson(jsonValue, options) {
572
+ return new _CurdView().fromJson(jsonValue, options);
573
+ }
574
+ static fromJsonString(jsonString, options) {
575
+ return new _CurdView().fromJsonString(jsonString, options);
576
+ }
577
+ static equals(a, b) {
578
+ return proto3.util.equals(_CurdView, a, b);
579
+ }
580
+ };
581
+ __publicField(_CurdView, "runtime", proto3);
582
+ __publicField(_CurdView, "typeName", "sppb.CurdView");
583
+ __publicField(_CurdView, "fields", proto3.util.newFieldList(() => [
584
+ {
585
+ 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
+ name: "title",
601
+ kind: "scalar",
602
+ T: 9
603
+ /* ScalarType.STRING */
604
+ },
605
+ {
606
+ no: 3,
607
+ name: "enabled",
608
+ kind: "scalar",
609
+ T: 8
610
+ /* ScalarType.BOOL */
611
+ },
612
+ {
613
+ no: 4,
614
+ name: "route_list",
615
+ kind: "scalar",
616
+ T: 9
617
+ /* ScalarType.STRING */
618
+ },
619
+ {
620
+ no: 5,
621
+ name: "route_show",
622
+ kind: "scalar",
623
+ T: 9
624
+ /* ScalarType.STRING */
625
+ },
626
+ {
627
+ no: 6,
628
+ name: "route_create",
629
+ kind: "scalar",
630
+ T: 9
631
+ /* ScalarType.STRING */
632
+ },
633
+ {
634
+ no: 7,
635
+ name: "route_edit",
636
+ kind: "scalar",
637
+ T: 9
638
+ /* ScalarType.STRING */
639
+ },
640
+ {
641
+ no: 8,
642
+ name: "svc_name",
643
+ kind: "scalar",
644
+ T: 9
645
+ /* ScalarType.STRING */
646
+ },
647
+ {
648
+ no: 9,
649
+ name: "method_list",
650
+ kind: "scalar",
651
+ T: 9
652
+ /* ScalarType.STRING */
653
+ },
654
+ {
655
+ no: 10,
656
+ name: "method_get",
657
+ kind: "scalar",
658
+ T: 9
659
+ /* ScalarType.STRING */
660
+ },
661
+ {
662
+ no: 11,
663
+ name: "method_create",
664
+ kind: "scalar",
665
+ T: 9
666
+ /* ScalarType.STRING */
667
+ },
668
+ {
669
+ no: 12,
670
+ name: "method_update",
671
+ kind: "scalar",
672
+ T: 9
673
+ /* ScalarType.STRING */
674
+ },
675
+ {
676
+ no: 13,
677
+ name: "method_delete",
678
+ kind: "scalar",
679
+ T: 9
680
+ /* ScalarType.STRING */
681
+ },
682
+ { no: 14, name: "roles_view", kind: "scalar", T: 9, repeated: true },
683
+ { no: 15, name: "roles_edit", kind: "scalar", T: 9, repeated: true },
684
+ { no: 16, name: "roles_delete", kind: "scalar", T: 9, repeated: true },
685
+ { no: 17, name: "form_create", kind: "message", T: FormSchema },
686
+ { no: 18, name: "form_edit", kind: "message", T: FormSchema },
687
+ {
688
+ no: 19,
689
+ name: "page_size",
690
+ kind: "scalar",
691
+ T: 13
692
+ /* ScalarType.UINT32 */
693
+ },
694
+ { 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
+ {
701
+ no: 22,
702
+ name: "layout",
703
+ kind: "scalar",
704
+ T: 9
705
+ /* ScalarType.STRING */
706
+ },
707
+ {
708
+ no: 24,
709
+ name: "default_detail_view",
710
+ kind: "scalar",
711
+ T: 9
712
+ /* ScalarType.STRING */
713
+ },
714
+ {
715
+ no: 25,
716
+ name: "content",
717
+ kind: "scalar",
718
+ T: 9
719
+ /* ScalarType.STRING */
720
+ }
721
+ ]));
722
+ let CurdView = _CurdView;
416
723
  export {
417
724
  CurdConfig,
418
725
  CurdConfigSvc,
@@ -421,7 +728,9 @@ export {
421
728
  CurdConfigSvc_Detail,
422
729
  CurdConfigSvc_List,
423
730
  CurdConfigSvc_Update,
731
+ CurdView,
424
732
  CurdViewCreateReq,
733
+ CurdViewGetReq,
425
734
  CurdViewGetRes,
426
735
  CurdViewUpdateReq,
427
736
  GetCurdConfigReq
@@ -274,18 +274,6 @@ export declare class Result extends Message<Result> {
274
274
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Result;
275
275
  static equals(a: Result | PlainMessage<Result> | undefined, b: Result | PlainMessage<Result> | undefined): boolean;
276
276
  }
277
- export declare class CurdViewGetReq extends Message<CurdViewGetReq> {
278
- id: string;
279
- name: string;
280
- constructor(data?: PartialMessage<CurdViewGetReq>);
281
- static readonly runtime: typeof proto3;
282
- static readonly typeName = "sppb.CurdViewGetReq";
283
- static readonly fields: FieldList;
284
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdViewGetReq;
285
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdViewGetReq;
286
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdViewGetReq;
287
- static equals(a: CurdViewGetReq | PlainMessage<CurdViewGetReq> | undefined, b: CurdViewGetReq | PlainMessage<CurdViewGetReq> | undefined): boolean;
288
- }
289
277
  export declare class ErrorRes extends Message<ErrorRes> {
290
278
  code: string;
291
279
  message: string;
@@ -1554,42 +1542,6 @@ export declare class FormSchemsField extends Message<FormSchemsField> {
1554
1542
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormSchemsField;
1555
1543
  static equals(a: FormSchemsField | PlainMessage<FormSchemsField> | undefined, b: FormSchemsField | PlainMessage<FormSchemsField> | undefined): boolean;
1556
1544
  }
1557
- export declare class CurdView extends Message<CurdView> {
1558
- id: number;
1559
- name: string;
1560
- title: string;
1561
- enabled: boolean;
1562
- routeList: string;
1563
- routeShow: string;
1564
- routeCreate: string;
1565
- routeEdit: string;
1566
- svcName: string;
1567
- methodList: string;
1568
- methodGet: string;
1569
- methodCreate: string;
1570
- methodUpdate: string;
1571
- methodDelete: string;
1572
- rolesView: string[];
1573
- rolesEdit: string[];
1574
- rolesDelete: string[];
1575
- formCreate?: FormSchema;
1576
- formEdit?: FormSchema;
1577
- pageSize: number;
1578
- paginateType: PaginateType;
1579
- params: {
1580
- [key: string]: string;
1581
- };
1582
- layout: string;
1583
- defaultDetailView: string;
1584
- constructor(data?: PartialMessage<CurdView>);
1585
- static readonly runtime: typeof proto3;
1586
- static readonly typeName = "sppb.CurdView";
1587
- static readonly fields: FieldList;
1588
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdView;
1589
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdView;
1590
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdView;
1591
- static equals(a: CurdView | PlainMessage<CurdView> | undefined, b: CurdView | PlainMessage<CurdView> | undefined): boolean;
1592
- }
1593
1545
  export declare class ArtContentClassifyReq extends Message<ArtContentClassifyReq> {
1594
1546
  text: string;
1595
1547
  categories: string[];