gomtm 0.0.361 → 0.0.362

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.
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function CurdViewEditor(): import("react").JSX.Element;
2
+ export default function CurdViewEditor(props: {
3
+ name: string;
4
+ }): import("react").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -15,26 +17,42 @@ var __spreadValues = (a, b) => {
15
17
  }
16
18
  return a;
17
19
  };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18
21
  import { jsx, jsxs } from "react/jsx-runtime";
19
22
  import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
20
23
  import { Input } from "mtxuilib/ui/input";
21
24
  import { useFormContext } from "react-hook-form";
22
25
  import { FormShell } from "../../curd/form/FormShell";
23
- function CurdViewEditor() {
26
+ function CurdViewEditor(props) {
24
27
  const form = useFormContext();
25
- return /* @__PURE__ */ jsx(FormShell, { children: /* @__PURE__ */ jsx(
26
- FormField,
27
- {
28
- control: form.control,
29
- name: "svcName",
30
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
31
- /* @__PURE__ */ jsx(FormLabel, { children: "Svc" }),
32
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "svcName" }, field)) }),
33
- /* @__PURE__ */ jsx(FormDescription, { children: "svcName" }),
34
- /* @__PURE__ */ jsx(FormMessage, {})
35
- ] })
36
- }
37
- ) });
28
+ return /* @__PURE__ */ jsxs(FormShell, { children: [
29
+ /* @__PURE__ */ jsx(
30
+ FormField,
31
+ {
32
+ control: form.control,
33
+ name: "name",
34
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
35
+ /* @__PURE__ */ jsx(FormLabel, { children: "name" }),
36
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadProps(__spreadValues({ placeholder: "name" }, field), { readOnly: true, disabled: true })) }),
37
+ /* @__PURE__ */ jsx(FormDescription, { children: "name" }),
38
+ /* @__PURE__ */ jsx(FormMessage, {})
39
+ ] })
40
+ }
41
+ ),
42
+ /* @__PURE__ */ jsx(
43
+ FormField,
44
+ {
45
+ control: form.control,
46
+ name: "svcName",
47
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
48
+ /* @__PURE__ */ jsx(FormLabel, { children: "Svc" }),
49
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "svcName" }, field)) }),
50
+ /* @__PURE__ */ jsx(FormDescription, { children: "svcName" }),
51
+ /* @__PURE__ */ jsx(FormMessage, {})
52
+ ] })
53
+ }
54
+ )
55
+ ] });
38
56
  }
39
57
  export {
40
58
  CurdViewEditor as default
@@ -98,7 +98,7 @@ function CommonListView() {
98
98
  viewName: "CurdViewEditor",
99
99
  onOpenChange: setOpenCurdViewEditor,
100
100
  svc: "sppb.CurdService",
101
- method: methodCreate,
101
+ method: "curdViewUpdate",
102
102
  children: /* @__PURE__ */ jsx(CurdEditPanel, {})
103
103
  }
104
104
  )