gomtm 0.0.206 → 0.0.207

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.
@@ -30,6 +30,7 @@ import { MtButton } from "mtxuilib/ui/ui-mt/Button";
30
30
  import { MtUnaryCallErrorView } from "../components/MtUnaryCallErrorView";
31
31
  import { useMutation, useSuspenseInfiniteQuery } from "../connectquery";
32
32
  import { activateItemAtom, createMethodSigAtom, openCreatePanelAtom, openRemovePanelAtom, removeMethodSigAtom } from "./curd.atoms";
33
+ import { DlgCurdDebugInfo, DlgCurdDebugInfoTriggerButton, openDlgCurdDebugInfoAtom } from "./dlg/DlgCurdDebugInfo";
33
34
  import { ListItemView } from "./list-item/ListItem";
34
35
  import { ListLayout } from "./list-item/ListLayout";
35
36
  const listQueryAtom = atom(null);
@@ -71,7 +72,8 @@ function CommonListViewProvider(props) {
71
72
  [removeMethodSigAtom, methodDelete],
72
73
  [createMethodSigAtom, methodCreate],
73
74
  [openRemovePanelAtom, false],
74
- [openCreatePanelAtom, false]
75
+ [openCreatePanelAtom, false],
76
+ [openDlgCurdDebugInfoAtom, false]
75
77
  ], children });
76
78
  }
77
79
  function CommonListView() {
@@ -108,7 +110,11 @@ function CommonListView() {
108
110
  ] }) }),
109
111
  /* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1" }),
110
112
  /* @__PURE__ */ jsx(PanelRemove, {}),
111
- /* @__PURE__ */ jsx(PanelCreate, {})
113
+ /* @__PURE__ */ jsx(PanelCreate, {}),
114
+ /* @__PURE__ */ jsxs("div", { className: "bg-yellow-100 p-2", children: [
115
+ /* @__PURE__ */ jsx(DlgCurdDebugInfo, {}),
116
+ /* @__PURE__ */ jsx(DlgCurdDebugInfoTriggerButton, {})
117
+ ] })
112
118
  ] });
113
119
  }
114
120
  const PanelRemove = () => {
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const openDlgCurdDebugInfoAtom: import("jotai").PrimitiveAtom<boolean> & {
3
+ init: boolean;
4
+ };
5
+ export declare function DlgCurdDebugInfo(): import("react").JSX.Element;
6
+ export declare const DlgCurdDebugInfoTriggerButton: () => import("react").JSX.Element;
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { atom, useAtom } from "jotai";
4
+ import { DebugAtomValue } from "mtxuilib/common/devtools/DebugAtomValue";
5
+ import { flexRender } from "mtxuilib/lib/render";
6
+ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
7
+ import { MtButton } from "mtxuilib/ui/ui-mt/Button";
8
+ import { exampleListItemComponent } from "../CommonListViewV2";
9
+ import { createMethodSigAtom, curdActivateIdAtom, removeMethodSigAtom } from "../curd.atoms";
10
+ const openDlgCurdDebugInfoAtom = atom(false);
11
+ function DlgCurdDebugInfo() {
12
+ const [Comp] = useAtom(exampleListItemComponent);
13
+ const [openDlgCurdDebugInfo, setOpenDlgCurdDebugInfo] = useAtom(openDlgCurdDebugInfoAtom);
14
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Dialog, { open: openDlgCurdDebugInfo, onOpenChange: setOpenDlgCurdDebugInfo, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
15
+ /* @__PURE__ */ jsx(DialogTitle, { children: "list view info" }),
16
+ Comp && flexRender(Comp, {}),
17
+ /* @__PURE__ */ jsxs("div", { children: [
18
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "curdActivateIdAtom", atom: curdActivateIdAtom }),
19
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "removeMethodSigAtom", atom: removeMethodSigAtom }),
20
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "createMethodSigAtom", atom: createMethodSigAtom })
21
+ ] })
22
+ ] }) }) });
23
+ }
24
+ const DlgCurdDebugInfoTriggerButton = () => {
25
+ const [openDlgCurdDebugInfo, setOpenDlgCurdDebugInfo] = useAtom(openDlgCurdDebugInfoAtom);
26
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(MtButton, { onClick: () => {
27
+ setOpenDlgCurdDebugInfo(true);
28
+ }, children: "DlgCurdDebugInfoTriggerButton" }) });
29
+ };
30
+ export {
31
+ DlgCurdDebugInfo,
32
+ DlgCurdDebugInfoTriggerButton,
33
+ openDlgCurdDebugInfoAtom
34
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export default function DlgCurdDebugInfo(props: {
3
+ params: any;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useAtom } from "jotai";
4
+ import { DebugAtomValue } from "mtxuilib/common/devtools/DebugAtomValue";
5
+ import { useMtRouter } from "mtxuilib/hooks/use-router";
6
+ import { flexRender } from "mtxuilib/lib/render";
7
+ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
8
+ function DlgCurdDebugInfo(props) {
9
+ const router = useMtRouter();
10
+ const [Comp] = useAtom(exampleListItemComponent);
11
+ return /* @__PURE__ */ jsx(Dialog, { open: true, onOpenChange: () => {
12
+ router.back();
13
+ }, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
14
+ /* @__PURE__ */ jsx(DialogTitle, { children: "list view info" }),
15
+ Comp && flexRender(Comp, {}),
16
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(DebugAtomValue, { title: "curdActivateIdAtom", atom: curdActivateIdAtom }) })
17
+ ] }) });
18
+ }
19
+ export {
20
+ DlgCurdDebugInfo as default
21
+ };
File without changes
File without changes
@@ -23,15 +23,15 @@ export declare const spContentModiCreateInput: z.ZodObject<{
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  action: string;
25
25
  value: string;
26
- sel: string;
27
26
  spRouteId: string;
27
+ sel: string;
28
28
  matchContentType: string;
29
29
  title?: string | undefined;
30
30
  }, {
31
31
  action: string;
32
32
  value: string;
33
- sel: string;
34
33
  spRouteId: string;
34
+ sel: string;
35
35
  matchContentType: string;
36
36
  title?: string | undefined;
37
37
  }>;
@@ -47,16 +47,16 @@ export declare const spContentModiSaveInput: z.ZodObject<{
47
47
  id: string;
48
48
  action: string;
49
49
  value: string;
50
- sel: string;
51
50
  spRouteId: string;
51
+ sel: string;
52
52
  matchContentType: string;
53
53
  title?: string | undefined;
54
54
  }, {
55
55
  id: string;
56
56
  action: string;
57
57
  value: string;
58
- sel: string;
59
58
  spRouteId: string;
59
+ sel: string;
60
60
  matchContentType: string;
61
61
  title?: string | undefined;
62
62
  }>;
@@ -21,16 +21,16 @@ export declare const spRouteCreateInput: z.ZodObject<{
21
21
  value: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  title: string;
24
- spProjectId: string;
24
+ value: string;
25
25
  hostPattern: string;
26
26
  pathPattern: string;
27
- value: string;
27
+ spProjectId: string;
28
28
  }, {
29
29
  title: string;
30
- spProjectId: string;
30
+ value: string;
31
31
  hostPattern: string;
32
32
  pathPattern: string;
33
- value: string;
33
+ spProjectId: string;
34
34
  }>;
35
35
  export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
36
36
  export declare const SpRouteSaveInput: z.ZodObject<{
@@ -43,15 +43,15 @@ export declare const SpRouteSaveInput: z.ZodObject<{
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  id: string;
45
45
  title: string;
46
- spProjectId: string;
46
+ value: string;
47
47
  hostPattern: string;
48
48
  pathPattern: string;
49
- value: string;
49
+ spProjectId: string;
50
50
  }, {
51
51
  id: string;
52
52
  title: string;
53
- spProjectId: string;
53
+ value: string;
54
54
  hostPattern: string;
55
55
  pathPattern: string;
56
- value: string;
56
+ spProjectId: string;
57
57
  }>;
@@ -42,23 +42,23 @@ export declare const Oauth2LoginResponseSchema: z.ZodObject<{
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  accessToken: string;
44
44
  id: string;
45
- userName: string;
46
45
  roles: string[];
46
+ userName: string;
47
47
  }, {
48
48
  accessToken: string;
49
49
  id: string;
50
- userName: string;
51
50
  roles: string[];
51
+ userName: string;
52
52
  }>;
53
53
  export type Oauth2LoginResponse = z.infer<typeof Oauth2LoginResponseSchema>;
54
54
  export declare const MeResponseSchema: z.ZodObject<{
55
55
  userName: z.ZodString;
56
56
  roles: z.ZodArray<z.ZodString, "many">;
57
57
  }, "strip", z.ZodTypeAny, {
58
- userName: string;
59
58
  roles: string[];
60
- }, {
61
59
  userName: string;
60
+ }, {
62
61
  roles: string[];
62
+ userName: string;
63
63
  }>;
64
64
  export type MeResponse = z.infer<typeof MeResponseSchema>;
package/dist/gomtm ADDED
Binary file