gomtm 0.0.277 → 0.0.278

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.
@@ -29,3 +29,4 @@ export declare const TRPC_API_PREFIX = "/api.v1/trpc";
29
29
  export declare const HOTKEY_Debug = "alt+j";
30
30
  export declare const HOTKEY_Switchlayout = "alt+l";
31
31
  export declare const HOTKEY_ListViewCMDK = "alt+c";
32
+ export declare const CONST_debounce_INPUT = 300;
@@ -29,6 +29,7 @@ const TRPC_API_PREFIX = "/api.v1/trpc";
29
29
  const HOTKEY_Debug = "alt+j";
30
30
  const HOTKEY_Switchlayout = "alt+l";
31
31
  const HOTKEY_ListViewCMDK = "alt+c";
32
+ const CONST_debounce_INPUT = 300;
32
33
  export {
33
34
  ADMIN_ROLE,
34
35
  ActionCreate,
@@ -36,6 +37,7 @@ export {
36
37
  ActionEdit,
37
38
  ActionFetchNextPage,
38
39
  ActionRefetch,
40
+ CONST_debounce_INPUT,
39
41
  COOKIE_IS_DEBUG,
40
42
  COOKIE_MTM_SITE_ID,
41
43
  Cookie_Site_Host,
@@ -30,11 +30,20 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- import { jsx } from "react/jsx-runtime";
33
+ import { Fragment, jsx } from "react/jsx-runtime";
34
+ import { WithConnectHydrate } from "../components/SSR";
35
+ import { siteList } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
34
36
  import { ListViewProvider } from "./ListViewProvider";
35
37
  function ListViewPage(props) {
36
38
  const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
37
- return /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children }));
39
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
40
+ WithConnectHydrate,
41
+ {
42
+ methodSig: siteList,
43
+ input: etc.params,
44
+ children
45
+ }
46
+ ) })) });
38
47
  }
39
48
  export {
40
49
  ListViewPage as default
@@ -49,6 +49,7 @@ import { MtButton } from "mtxuilib/ui/ui-mt/Button";
49
49
  import { Suspense, createContext, useCallback, useContext, useMemo, useState } from "react";
50
50
  import { MtmErrorView } from "../components/MtmErrorView";
51
51
  import { useMutation, useSuspenseInfiniteQuery } from "../connectquery";
52
+ import { CONST_debounce_INPUT } from "../consts";
52
53
  import { useMtmApp } from "../providers/GomtmProvider";
53
54
  import { DlgCurdDebugInfo, DlgCurdDebugInfoTriggerButton } from "./CurdDetailProvider";
54
55
  import CurdCreatePanel, { CurdCreatePanelTriggerButton } from "./create/CurdCreatePanel";
@@ -57,7 +58,7 @@ import { ListItemView } from "./list-item/ListItem";
57
58
  import { ListLayout } from "./list-item/ListLayout";
58
59
  const commonListViewContext = createContext(void 0);
59
60
  function ListViewProvider(props) {
60
- const { children, methodList, methodDelete, slugPath, methodCreate } = props;
61
+ const { children, methodList, methodDelete, slugPath, methodCreate, methodGet } = props;
61
62
  const mtapp = useMtmApp();
62
63
  const [openRemove, setOpenRemove] = useState(false);
63
64
  const [openCreate, setOpenCreate] = useState(false);
@@ -74,14 +75,15 @@ function ListViewProvider(props) {
74
75
  }, [mtapp.globalSearchParams]);
75
76
  const setParams = useCallback(debounce((values) => {
76
77
  _setParams(values);
77
- }, 300), [_setParams]);
78
+ }, CONST_debounce_INPUT), [_setParams]);
78
79
  return /* @__PURE__ */ jsx(commonListViewContext.Provider, { value: {
79
80
  methodList,
81
+ methodGet,
82
+ methodDelete,
83
+ methodCreate,
80
84
  slugPath,
81
85
  openRemove,
82
86
  setOpenRemove,
83
- methodDelete,
84
- methodCreate,
85
87
  openCreate,
86
88
  setOpenCreate,
87
89
  activateItem,