gomtm 0.0.393 → 0.0.394

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.
Files changed (366) hide show
  1. package/package.json +13 -31
  2. package/dist/esm/block/BlockItem.d.ts +0 -14
  3. package/dist/esm/block/BlockItem.js +0 -202
  4. package/dist/esm/block/BlockPage.d.ts +0 -15
  5. package/dist/esm/block/BlockPage.js +0 -197
  6. package/dist/esm/block/ChildrenDebug.d.ts +0 -15
  7. package/dist/esm/block/ChildrenDebug.js +0 -177
  8. package/dist/esm/block/MtBlockSS.d.ts +0 -6
  9. package/dist/esm/block/MtBlockSS.js +0 -10
  10. package/dist/esm/block/block-edit/MtBlockEditor.d.ts +0 -2
  11. package/dist/esm/block/block-edit/MtBlockEditor.js +0 -8
  12. package/dist/esm/block/block-store.d.ts +0 -14
  13. package/dist/esm/block/block-store.js +0 -79
  14. package/dist/esm/block/blockRegister.d.ts +0 -8
  15. package/dist/esm/block/blockRegister.js +0 -55
  16. package/dist/esm/block/blocks/Hello2Block.d.ts +0 -4
  17. package/dist/esm/block/blocks/Hello2Block.js +0 -12
  18. package/dist/esm/block/blocks/HelloBlock.d.ts +0 -5
  19. package/dist/esm/block/blocks/HelloBlock.js +0 -14
  20. package/dist/esm/block/blocks/HelloText.d.ts +0 -4
  21. package/dist/esm/block/blocks/HelloText.js +0 -12
  22. package/dist/esm/block/blocks/hello/Hello.d.ts +0 -4
  23. package/dist/esm/block/blocks/hello/Hello.js +0 -11
  24. package/dist/esm/block/blocks/hello/edit.d.ts +0 -5
  25. package/dist/esm/block/blocks/hello/edit.js +0 -15
  26. package/dist/esm/block/blocks/hello/index.d.ts +0 -9
  27. package/dist/esm/block/blocks/hello/index.js +0 -29
  28. package/dist/esm/block/blocks/hello2/index.d.ts +0 -4
  29. package/dist/esm/block/blocks/hello2/index.js +0 -12
  30. package/dist/esm/block/consts.d.ts +0 -1
  31. package/dist/esm/block/consts.js +0 -4
  32. package/dist/esm/cli/build.d.ts +0 -2
  33. package/dist/esm/cli/build.js +0 -60
  34. package/dist/esm/cli/deployMtWorker.d.ts +0 -2
  35. package/dist/esm/cli/deployMtWorker.js +0 -19
  36. package/dist/esm/cli/deploy_cf_worker.d.ts +0 -2
  37. package/dist/esm/cli/deploy_cf_worker.js +0 -70
  38. package/dist/esm/cli/deploy_mtxcli.d.ts +0 -2
  39. package/dist/esm/cli/deploy_mtxcli.js +0 -55
  40. package/dist/esm/cli/deploy_mtxedge.d.ts +0 -2
  41. package/dist/esm/cli/deploy_mtxedge.js +0 -55
  42. package/dist/esm/cli/deploy_mtxui.d.ts +0 -2
  43. package/dist/esm/cli/deploy_mtxui.js +0 -45
  44. package/dist/esm/cli/up_cf1.d.ts +0 -2
  45. package/dist/esm/cli/up_cf1.js +0 -29
  46. package/dist/esm/cli/utils.d.ts +0 -1
  47. package/dist/esm/cli/utils.js +0 -5
  48. package/dist/esm/cli/vc_mtxedge.d.ts +0 -2
  49. package/dist/esm/cli/vc_mtxedge.js +0 -44
  50. package/dist/esm/components/MtDate.d.ts +0 -6
  51. package/dist/esm/components/MtDate.js +0 -17
  52. package/dist/esm/components/MtmErrorView.d.ts +0 -7
  53. package/dist/esm/components/MtmErrorView.js +0 -16
  54. package/dist/esm/components/MtmInstallScript.d.ts +0 -2
  55. package/dist/esm/components/MtmInstallScript.js +0 -16
  56. package/dist/esm/components/SSR.d.ts +0 -11
  57. package/dist/esm/components/SSR.js +0 -76
  58. package/dist/esm/components/Tag.d.ts +0 -6
  59. package/dist/esm/components/Tag.js +0 -17
  60. package/dist/esm/components/auth/AuthPage.d.ts +0 -2
  61. package/dist/esm/components/auth/AuthPage.js +0 -36
  62. package/dist/esm/components/auth/LoginScreen2.d.ts +0 -2
  63. package/dist/esm/components/auth/LoginScreen2.js +0 -106
  64. package/dist/esm/components/auth/UserAuthForm.d.ts +0 -5
  65. package/dist/esm/components/auth/UserAuthForm.js +0 -76
  66. package/dist/esm/components/blog/BlogPostCreateForm.d.ts +0 -2
  67. package/dist/esm/components/blog/BlogPostCreateForm.js +0 -27
  68. package/dist/esm/components/blog/BlogPostImportDlgUrl.d.ts +0 -6
  69. package/dist/esm/components/blog/BlogPostImportDlgUrl.js +0 -94
  70. package/dist/esm/components/blog/PostEditForm.d.ts +0 -2
  71. package/dist/esm/components/blog/PostEditForm.js +0 -91
  72. package/dist/esm/components/blog/post-content.d.ts +0 -5
  73. package/dist/esm/components/blog/post-content.js +0 -15
  74. package/dist/esm/components/curdView/curdViewEditor.d.ts +0 -7
  75. package/dist/esm/components/curdView/curdViewEditor.js +0 -109
  76. package/dist/esm/components/devtools/GoMtmDebug.d.ts +0 -2
  77. package/dist/esm/components/devtools/GoMtmDebug.js +0 -48
  78. package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.d.ts +0 -6
  79. package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.js +0 -46
  80. package/dist/esm/components/site/SiteInfo.d.ts +0 -2
  81. package/dist/esm/components/site/SiteInfo.js +0 -15
  82. package/dist/esm/components/site/SiteSwitchDlg.d.ts +0 -0
  83. package/dist/esm/components/site/SiteSwitchDlg.js +0 -1
  84. package/dist/esm/connectquery/call-unary-method.d.ts +0 -8
  85. package/dist/esm/connectquery/call-unary-method.js +0 -47
  86. package/dist/esm/connectquery/connect-query-key.d.ts +0 -16
  87. package/dist/esm/connectquery/connect-query-key.js +0 -15
  88. package/dist/esm/connectquery/create-use-infinite-query-options.d.ts +0 -22
  89. package/dist/esm/connectquery/create-use-infinite-query-options.js +0 -93
  90. package/dist/esm/connectquery/create-use-query-options.d.ts +0 -21
  91. package/dist/esm/connectquery/create-use-query-options.js +0 -74
  92. package/dist/esm/connectquery/default-options.d.ts +0 -6
  93. package/dist/esm/connectquery/default-options.js +0 -9
  94. package/dist/esm/connectquery/index.d.ts +0 -16
  95. package/dist/esm/connectquery/index.js +0 -33
  96. package/dist/esm/connectquery/method-unary-descriptor.d.ts +0 -4
  97. package/dist/esm/connectquery/method-unary-descriptor.js +0 -0
  98. package/dist/esm/connectquery/use-infinite-query.d.ts +0 -14
  99. package/dist/esm/connectquery/use-infinite-query.js +0 -87
  100. package/dist/esm/connectquery/use-mutation.d.ts +0 -10
  101. package/dist/esm/connectquery/use-mutation.js +0 -79
  102. package/dist/esm/connectquery/use-query.d.ts +0 -14
  103. package/dist/esm/connectquery/use-query.js +0 -75
  104. package/dist/esm/connectquery/use-transport.d.ts +0 -7
  105. package/dist/esm/connectquery/use-transport.js +0 -23
  106. package/dist/esm/connectquery/utils.d.ts +0 -8
  107. package/dist/esm/connectquery/utils.js +0 -24
  108. package/dist/esm/consts.d.ts +0 -34
  109. package/dist/esm/consts.js +0 -70
  110. package/dist/esm/curd/CreateFormV2.d.ts +0 -16
  111. package/dist/esm/curd/CreateFormV2.js +0 -81
  112. package/dist/esm/curd/CurdView.d.ts +0 -4
  113. package/dist/esm/curd/CurdView.js +0 -35
  114. package/dist/esm/curd/CurdViewSS.d.ts +0 -4
  115. package/dist/esm/curd/CurdViewSS.js +0 -69
  116. package/dist/esm/curd/DynViews.d.ts +0 -6
  117. package/dist/esm/curd/DynViews.js +0 -69
  118. package/dist/esm/curd/ListPageCommands.d.ts +0 -2
  119. package/dist/esm/curd/ListPageCommands.js +0 -25
  120. package/dist/esm/curd/create/CurdCreatePanel.d.ts +0 -5
  121. package/dist/esm/curd/create/CurdCreatePanel.js +0 -47
  122. package/dist/esm/curd/create/useCurdCreate.d.ts +0 -7
  123. package/dist/esm/curd/create/useCurdCreate.js +0 -25
  124. package/dist/esm/curd/edit/CurdEditPanel.d.ts +0 -2
  125. package/dist/esm/curd/edit/CurdEditPanel.js +0 -60
  126. package/dist/esm/curd/edit/form-context.d.ts +0 -17
  127. package/dist/esm/curd/edit/form-context.js +0 -92
  128. package/dist/esm/curd/edit/formStore.d.ts +0 -17
  129. package/dist/esm/curd/edit/formStore.js +0 -92
  130. package/dist/esm/curd/edit/useCurdUpdateForm.d.ts +0 -7
  131. package/dist/esm/curd/edit/useCurdUpdateForm.js +0 -25
  132. package/dist/esm/curd/form/CurdEditPanel.d.ts +0 -2
  133. package/dist/esm/curd/form/CurdEditPanel.js +0 -36
  134. package/dist/esm/curd/form/FormShell.d.ts +0 -2
  135. package/dist/esm/curd/form/FormShell.js +0 -9
  136. package/dist/esm/curd/form/GomtmForm.d.ts +0 -2
  137. package/dist/esm/curd/form/GomtmForm.js +0 -46
  138. package/dist/esm/curd/form/formStore.d.ts +0 -31
  139. package/dist/esm/curd/form/formStore.js +0 -188
  140. package/dist/esm/curd/form/useCurdUpdateForm.d.ts +0 -7
  141. package/dist/esm/curd/form/useCurdUpdateForm.js +0 -25
  142. package/dist/esm/curd/form-context.d.ts +0 -17
  143. package/dist/esm/curd/form-context.js +0 -89
  144. package/dist/esm/curd/list-item/ListViewLayoutRender.d.ts +0 -15
  145. package/dist/esm/curd/list-item/ListViewLayoutRender.js +0 -220
  146. package/dist/esm/curd/listview/CommonListView.d.ts +0 -9
  147. package/dist/esm/curd/listview/CommonListView.js +0 -139
  148. package/dist/esm/curd/listview/CommonListViewV2.d.ts +0 -5
  149. package/dist/esm/curd/listview/CommonListViewV2.js +0 -66
  150. package/dist/esm/curd/listview/ListViewComponentsSetup.d.ts +0 -3
  151. package/dist/esm/curd/listview/ListViewComponentsSetup.js +0 -23
  152. package/dist/esm/curd/listview/ListViewRender.d.ts +0 -2
  153. package/dist/esm/curd/listview/ListViewRender.js +0 -20
  154. package/dist/esm/curd/listview/MtListView.d.ts +0 -3
  155. package/dist/esm/curd/listview/MtListView.js +0 -50
  156. package/dist/esm/curd/listview/list-store.d.ts +0 -34
  157. package/dist/esm/curd/listview/list-store.js +0 -90
  158. package/dist/esm/curd/listview/listview-layouts/default/index.d.ts +0 -2
  159. package/dist/esm/curd/listview/listview-layouts/default/index.js +0 -9
  160. package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.d.ts +0 -2
  161. package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.js +0 -12
  162. package/dist/esm/curd/mutationButton.d.ts +0 -7
  163. package/dist/esm/curd/mutationButton.js +0 -14
  164. package/dist/esm/curd/remove/RemovePanel.d.ts +0 -13
  165. package/dist/esm/curd/remove/RemovePanel.js +0 -72
  166. package/dist/esm/form/ConnectEsUpdateForm.d.ts +0 -17
  167. package/dist/esm/form/ConnectEsUpdateForm.js +0 -78
  168. package/dist/esm/form/GoMtmForm.d.ts +0 -5
  169. package/dist/esm/form/GoMtmForm.js +0 -31
  170. package/dist/esm/form/SchemaFormView.d.ts +0 -14
  171. package/dist/esm/form/SchemaFormView.js +0 -44
  172. package/dist/esm/gomtmQuery.d.ts +0 -7
  173. package/dist/esm/gomtmQuery.js +0 -86
  174. package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.d.ts +0 -0
  175. package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.js +0 -0
  176. package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.d.ts +0 -0
  177. package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.js +0 -0
  178. package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.d.ts +0 -0
  179. package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.js +0 -0
  180. package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.d.ts +0 -0
  181. package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.js +0 -0
  182. package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.d.ts +0 -0
  183. package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.js +0 -0
  184. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.d.ts +0 -0
  185. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.js +0 -0
  186. package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.d.ts +0 -0
  187. package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.js +0 -0
  188. package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.d.ts +0 -0
  189. package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.js +0 -0
  190. package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.d.ts +0 -0
  191. package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.js +0 -0
  192. package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.d.ts +0 -0
  193. package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.js +0 -0
  194. package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
  195. package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
  196. package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.d.ts +0 -0
  197. package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.js +0 -0
  198. package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.d.ts +0 -0
  199. package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.js +0 -0
  200. package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.d.ts +0 -53
  201. package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.js +0 -60
  202. package/dist/esm/gomtmpb/mtm/conf/conf_connect.d.ts +0 -38
  203. package/dist/esm/gomtmpb/mtm/conf/conf_connect.js +0 -56
  204. package/dist/esm/gomtmpb/mtm/conf/conf_pb.d.ts +0 -481
  205. package/dist/esm/gomtmpb/mtm/conf/conf_pb.js +0 -2359
  206. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.d.ts +0 -52
  207. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.js +0 -59
  208. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.d.ts +0 -37
  209. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.js +0 -55
  210. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.d.ts +0 -154
  211. package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.js +0 -530
  212. package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.d.ts +0 -22
  213. package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.js +0 -26
  214. package/dist/esm/gomtmpb/mtm/sppb/ai_connect.d.ts +0 -19
  215. package/dist/esm/gomtmpb/mtm/sppb/ai_connect.js +0 -32
  216. package/dist/esm/gomtmpb/mtm/sppb/ai_pb.d.ts +0 -47
  217. package/dist/esm/gomtmpb/mtm/sppb/ai_pb.js +0 -149
  218. package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.d.ts +0 -53
  219. package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.js +0 -60
  220. package/dist/esm/gomtmpb/mtm/sppb/av_connect.d.ts +0 -38
  221. package/dist/esm/gomtmpb/mtm/sppb/av_connect.js +0 -56
  222. package/dist/esm/gomtmpb/mtm/sppb/av_pb.d.ts +0 -77
  223. package/dist/esm/gomtmpb/mtm/sppb/av_pb.js +0 -290
  224. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +0 -173
  225. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +0 -192
  226. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +0 -110
  227. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +0 -180
  228. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +0 -722
  229. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +0 -2291
  230. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +0 -53
  231. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +0 -60
  232. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +0 -38
  233. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +0 -56
  234. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +0 -472
  235. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +0 -2357
  236. package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.d.ts +0 -73
  237. package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.js +0 -82
  238. package/dist/esm/gomtmpb/mtm/sppb/curd_connect.d.ts +0 -50
  239. package/dist/esm/gomtmpb/mtm/sppb/curd_connect.js +0 -79
  240. package/dist/esm/gomtmpb/mtm/sppb/curd_pb.d.ts +0 -199
  241. package/dist/esm/gomtmpb/mtm/sppb/curd_pb.js +0 -773
  242. package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.d.ts +0 -133
  243. package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.js +0 -148
  244. package/dist/esm/gomtmpb/mtm/sppb/cx_connect.d.ts +0 -86
  245. package/dist/esm/gomtmpb/mtm/sppb/cx_connect.js +0 -141
  246. package/dist/esm/gomtmpb/mtm/sppb/cx_pb.d.ts +0 -335
  247. package/dist/esm/gomtmpb/mtm/sppb/cx_pb.js +0 -1618
  248. package/dist/esm/gomtmpb/mtm/sppb/events_pb.d.ts +0 -231
  249. package/dist/esm/gomtmpb/mtm/sppb/events_pb.js +0 -874
  250. package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +0 -63
  251. package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +0 -71
  252. package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +0 -44
  253. package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +0 -67
  254. package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +0 -108
  255. package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +0 -311
  256. package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +0 -12
  257. package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +0 -15
  258. package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +0 -13
  259. package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +0 -19
  260. package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +0 -23
  261. package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +0 -67
  262. package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.d.ts +0 -392
  263. package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.js +0 -433
  264. package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.d.ts +0 -241
  265. package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.js +0 -395
  266. package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +0 -1675
  267. package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +0 -6831
  268. package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.d.ts +0 -213
  269. package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.js +0 -236
  270. package/dist/esm/gomtmpb/mtm/sppb/sp_connect.d.ts +0 -134
  271. package/dist/esm/gomtmpb/mtm/sppb/sp_connect.js +0 -210
  272. package/dist/esm/gomtmpb/mtm/sppb/sp_pb.d.ts +0 -684
  273. package/dist/esm/gomtmpb/mtm/sppb/sp_pb.js +0 -2905
  274. package/dist/esm/index.d.ts +0 -3
  275. package/dist/esm/index.js +0 -5
  276. package/dist/esm/lib/auth/jwt.d.ts +0 -7
  277. package/dist/esm/lib/auth/jwt.js +0 -43
  278. package/dist/esm/lib/meta.d.ts +0 -10
  279. package/dist/esm/lib/meta.js +0 -76
  280. package/dist/esm/ly/LayoutBase.d.ts +0 -6
  281. package/dist/esm/ly/LayoutBase.js +0 -83
  282. package/dist/esm/ly/Lazy.d.ts +0 -2
  283. package/dist/esm/ly/Lazy.js +0 -12
  284. package/dist/esm/ly/UserAvatorMenus.d.ts +0 -2
  285. package/dist/esm/ly/UserAvatorMenus.js +0 -75
  286. package/dist/esm/ly/dash5/aside.d.ts +0 -2
  287. package/dist/esm/ly/dash5/aside.js +0 -40
  288. package/dist/esm/ly/dash5/components/PageCreate.d.ts +0 -4
  289. package/dist/esm/ly/dash5/components/PageCreate.js +0 -8
  290. package/dist/esm/ly/dash5/components/PageEdit.d.ts +0 -4
  291. package/dist/esm/ly/dash5/components/PageEdit.js +0 -8
  292. package/dist/esm/ly/dash5/components/PageList.d.ts +0 -4
  293. package/dist/esm/ly/dash5/components/PageList.js +0 -9
  294. package/dist/esm/ly/dash5/components/PageShow.d.ts +0 -4
  295. package/dist/esm/ly/dash5/components/PageShow.js +0 -8
  296. package/dist/esm/ly/dash5/header.d.ts +0 -2
  297. package/dist/esm/ly/dash5/header.js +0 -124
  298. package/dist/esm/ly/dash5/index.d.ts +0 -2
  299. package/dist/esm/ly/dash5/index.js +0 -25
  300. package/dist/esm/ly/debug-layout/index.d.ts +0 -2
  301. package/dist/esm/ly/debug-layout/index.js +0 -12
  302. package/dist/esm/ly/demo-layout/index.d.ts +0 -2
  303. package/dist/esm/ly/demo-layout/index.js +0 -9
  304. package/dist/esm/ly/front-layout/PageCmds.d.ts +0 -2
  305. package/dist/esm/ly/front-layout/PageCmds.js +0 -25
  306. package/dist/esm/ly/front-layout/PageSearchCmd.d.ts +0 -2
  307. package/dist/esm/ly/front-layout/PageSearchCmd.js +0 -70
  308. package/dist/esm/ly/front-layout/header.d.ts +0 -2
  309. package/dist/esm/ly/front-layout/header.js +0 -18
  310. package/dist/esm/ly/front-layout/headerv2.d.ts +0 -0
  311. package/dist/esm/ly/front-layout/headerv2.js +0 -0
  312. package/dist/esm/ly/front-layout/index.d.ts +0 -2
  313. package/dist/esm/ly/front-layout/index.js +0 -12
  314. package/dist/esm/ly/front-layout/main-nav.d.ts +0 -3
  315. package/dist/esm/ly/front-layout/main-nav.js +0 -116
  316. package/dist/esm/lzBizComponents.d.ts +0 -5
  317. package/dist/esm/lzBizComponents.js +0 -15
  318. package/dist/esm/main.d.ts +0 -2
  319. package/dist/esm/main.js +0 -34
  320. package/dist/esm/messageTypeRegistry.d.ts +0 -5
  321. package/dist/esm/messageTypeRegistry.js +0 -34
  322. package/dist/esm/mtmFetcher.d.ts +0 -30
  323. package/dist/esm/mtmFetcher.js +0 -211
  324. package/dist/esm/providers/AuthProvider.d.ts +0 -9
  325. package/dist/esm/providers/AuthProvider.js +0 -104
  326. package/dist/esm/providers/GomtmAppSS.d.ts +0 -2
  327. package/dist/esm/providers/GomtmAppSS.js +0 -71
  328. package/dist/esm/providers/LoggerProvider.d.ts +0 -10
  329. package/dist/esm/providers/LoggerProvider.js +0 -23
  330. package/dist/esm/providers/ReactQueryProvider.d.ts +0 -4
  331. package/dist/esm/providers/ReactQueryProvider.js +0 -67
  332. package/dist/esm/store/App_useTransition.d.ts +0 -2
  333. package/dist/esm/store/App_useTransition.js +0 -59
  334. package/dist/esm/store/GomtmAppSetting.d.ts +0 -2
  335. package/dist/esm/store/GomtmAppSetting.js +0 -18
  336. package/dist/esm/store/customStorage.d.ts +0 -2
  337. package/dist/esm/store/customStorage.js +0 -35
  338. package/dist/esm/store/mtapp-store.d.ts +0 -49
  339. package/dist/esm/store/mtapp-store.js +0 -157
  340. package/dist/esm/validations/CrawlerConfig.d.ts +0 -18
  341. package/dist/esm/validations/CrawlerConfig.js +0 -10
  342. package/dist/esm/validations/_common.d.ts +0 -57
  343. package/dist/esm/validations/_common.js +0 -30
  344. package/dist/esm/validations/auth.d.ts +0 -33
  345. package/dist/esm/validations/auth.js +0 -18
  346. package/dist/esm/validations/blog.d.ts +0 -17
  347. package/dist/esm/validations/blog.js +0 -10
  348. package/dist/esm/validations/crawlerSchema.d.ts +0 -17
  349. package/dist/esm/validations/crawlerSchema.js +0 -10
  350. package/dist/esm/validations/env.d.ts +0 -8
  351. package/dist/esm/validations/env.js +0 -9
  352. package/dist/esm/validations/post.d.ts +0 -34
  353. package/dist/esm/validations/post.js +0 -28
  354. package/dist/esm/validations/sp.d.ts +0 -18
  355. package/dist/esm/validations/sp.js +0 -12
  356. package/dist/esm/validations/spContentModi.d.ts +0 -62
  357. package/dist/esm/validations/spContentModi.js +0 -30
  358. package/dist/esm/validations/spHost.d.ts +0 -8
  359. package/dist/esm/validations/spHost.js +0 -7
  360. package/dist/esm/validations/spPage.d.ts +0 -14
  361. package/dist/esm/validations/spPage.js +0 -9
  362. package/dist/esm/validations/spRoute.d.ts +0 -57
  363. package/dist/esm/validations/spRoute.js +0 -28
  364. package/dist/esm/validations/user.d.ts +0 -64
  365. package/dist/esm/validations/user.js +0 -33
  366. package/dist/tsconfig.type.tsbuildinfo +0 -1
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { useForm } from "react-hook-form";
3
- import { useCurdUpdateMutation, useListview } from "../listview/list-store";
4
- function useCurdUpdateForm() {
5
- const detailData = useListview((x) => x.detailData);
6
- const setOpenEdit = useListview((x) => x.setOpenEdit);
7
- const mutationUpdate = useCurdUpdateMutation();
8
- const form = useForm(
9
- {
10
- defaultValues: detailData
11
- }
12
- );
13
- const handleSubmit = (values) => {
14
- mutationUpdate.mutateAsync(values);
15
- };
16
- return {
17
- form,
18
- handleSubmit,
19
- detailData,
20
- setOpenEdit
21
- };
22
- }
23
- export {
24
- useCurdUpdateForm
25
- };
@@ -1,17 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- interface GomtmFormProps {
3
- open?: boolean;
4
- fullScreen?: boolean;
5
- viewName: string;
6
- title?: string;
7
- }
8
- export interface GomtmFormState extends GomtmFormProps {
9
- setOpen: (open: boolean) => void;
10
- setFullScreen: (open: boolean) => void;
11
- setTitle: (title: string) => void;
12
- }
13
- export declare const gomtmFormContext: import("react").Context<import("zustand").StoreApi<GomtmFormState> | null>;
14
- export declare const GomtmFormProvider: (props: PropsWithChildren<GomtmFormProps>) => import("react").JSX.Element;
15
- export declare function useGomtmForm<T>(selector: (state: GomtmFormState) => T): T;
16
- export declare function GomtmFormDebug(): import("react").JSX.Element;
17
- export {};
@@ -1,89 +0,0 @@
1
- "use client";
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
- import { jsx, jsxs } from "react/jsx-runtime";
34
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
35
- import { createContext, useContext, useMemo, useRef } from "react";
36
- import { useStore } from "zustand";
37
- import { createStore } from "zustand/vanilla";
38
- const createGomtmFormStore = (initProps) => {
39
- const DEFAULT_PROPS = {
40
- open: false,
41
- viewName: ""
42
- };
43
- return createStore()((set, get) => __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_PROPS), initProps), {
44
- setOpen: (open) => set({ open }),
45
- setFullScreen: (fullScreen) => set({ fullScreen }),
46
- setTitle: (title) => set({ title })
47
- }));
48
- };
49
- const gomtmFormContext = createContext(null);
50
- const GomtmFormProvider = (props) => {
51
- const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
52
- const storeRef = useRef();
53
- if (!storeRef.current) {
54
- storeRef.current = createGomtmFormStore(props);
55
- }
56
- useMemo(() => {
57
- var _a2;
58
- (_a2 = storeRef.current) == null ? void 0 : _a2.setState({ open: props.open });
59
- }, [props.open]);
60
- useMemo(() => {
61
- var _a2;
62
- (_a2 = storeRef.current) == null ? void 0 : _a2.setState({ viewName: props.viewName });
63
- }, [props.viewName]);
64
- return /* @__PURE__ */ jsxs(gomtmFormContext.Provider, { value: storeRef.current, children: [
65
- children,
66
- /* @__PURE__ */ jsx(GomtmFormDebug, {})
67
- ] });
68
- };
69
- function useGomtmForm(selector) {
70
- const store = useContext(gomtmFormContext);
71
- if (!store)
72
- throw new Error("useGomtmForm Missing GomtmFormProvider in the tree");
73
- return useStore(store, selector);
74
- }
75
- function GomtmFormDebug() {
76
- const open = useGomtmForm((x) => x.open);
77
- const viewName = useGomtmForm((x) => x.viewName);
78
- return /* @__PURE__ */ jsxs("div", { children: [
79
- /* @__PURE__ */ jsx(MtButton, { onClick: () => {
80
- }, children: "forminfo" }),
81
- /* @__PURE__ */ jsx("pre", { children: JSON.stringify({ open, viewName }, null, 2) })
82
- ] });
83
- }
84
- export {
85
- GomtmFormDebug,
86
- GomtmFormProvider,
87
- gomtmFormContext,
88
- useGomtmForm
89
- };
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { PlainMessage } from "@bufbuild/protobuf";
3
- import { CommonListItem, CommontListRes, PostCardItem } from "../../gomtmpb/mtm/sppb/mtm_pb";
4
- export declare const CommontListResView: (props: {
5
- data: PlainMessage<CommontListRes>;
6
- }) => import("react").JSX.Element;
7
- export declare const CommonListItemView: (props: {
8
- item: PlainMessage<CommonListItem>;
9
- }) => import("react").JSX.Element;
10
- export declare const PostCardListItem: (props: {
11
- item: PostCardItem;
12
- }) => import("react").JSX.Element;
13
- export declare const PostCardItemActions: (props: {
14
- id: string;
15
- }) => import("react").JSX.Element;
@@ -1,220 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { MtLink } from "mtxuilib/common/mtlink";
4
- import { Icons } from "mtxuilib/icons/icons";
5
- import { cn } from "mtxuilib/lib/utils";
6
- import { buttonVariants } from "mtxuilib/ui/button";
7
- import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "mtxuilib/ui/card";
8
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
9
- import { Suspense, useState } from "react";
10
- import { MtDateView } from "../../components/MtDate";
11
- import Tag from "../../components/Tag";
12
- import { ListViewLayout } from "../../gomtmpb/mtm/sppb/mtm_pb";
13
- import { useIsLogined } from "../../providers/AuthProvider";
14
- import { useListview } from "../listview/list-store";
15
- const CommontListResView = (props) => {
16
- var _a;
17
- const { data } = props;
18
- return /* @__PURE__ */ jsx(ListViewLayoutRender, { layout: data.listLayout, children: (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((item, j) => /* @__PURE__ */ jsx(ListItemView, { item }, `${j}`)) });
19
- };
20
- const ListViewLayoutRender = (props) => {
21
- const { children } = props;
22
- switch (props.layout) {
23
- case ListViewLayout.simple:
24
- return /* @__PURE__ */ jsx("ul", { className: "divide-y divide-gray-200 dark:divide-gray-700", children });
25
- case ListViewLayout.grid:
26
- return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 grid-rows-3 gap-4 px-4 lg:grid-cols-3", children });
27
- case ListViewLayout.card:
28
- return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 grid-rows-3 gap-4 px-4 lg:grid-cols-3", children });
29
- default:
30
- return children;
31
- }
32
- };
33
- const ListItemView = (props) => {
34
- var _a, _b;
35
- const { item } = props;
36
- if ((_a = item == null ? void 0 : item.item) == null ? void 0 : _a.value) {
37
- const itemCase = ((_b = item.item) == null ? void 0 : _b.case) || "";
38
- switch (itemCase) {
39
- case "commonListItem":
40
- return /* @__PURE__ */ jsx(CommonListItemView, { item: item.item.value });
41
- case "postCard":
42
- return /* @__PURE__ */ jsx(PostCardListItem, { item: item.item.value });
43
- default:
44
- return /* @__PURE__ */ jsx("span", { className: "bg-red-600 p-2", children: "unknow list item type" });
45
- }
46
- }
47
- return null;
48
- };
49
- const CommonListItemView = (props) => {
50
- const { item } = props;
51
- const handleSelect = () => {
52
- };
53
- const slugPath = useListview((x) => x.slugPath);
54
- return /* @__PURE__ */ jsxs(
55
- "div",
56
- {
57
- onClick: handleSelect,
58
- className: cn(
59
- buttonVariants({
60
- variant: "ghost"
61
- }),
62
- "flex min-h-16 justify-start border p-4 text-left"
63
- ),
64
- children: [
65
- /* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxs(MtLink, { href: `${slugPath}/${item.id}`, children: [
66
- slugPath,
67
- item.title || item.id,
68
- item.description && /* @__PURE__ */ jsx("div", { children: item.description })
69
- ] }) }),
70
- /* @__PURE__ */ jsx(PostCardItemActions, { id: item.id })
71
- ]
72
- }
73
- );
74
- };
75
- const PostCardListItem = (props) => {
76
- const { item } = props;
77
- const slugPath = useListview((x) => x.slugPath);
78
- const activateItem = useListview((x) => x.activateItem);
79
- const setActivateItem = useListview((x) => x.setActivateItem);
80
- const isLogined = useIsLogined();
81
- if (item.layoutVariant == "list") {
82
- return /* @__PURE__ */ jsx(
83
- "li",
84
- {
85
- className: cn(
86
- "relative py-12",
87
- (activateItem == null ? void 0 : activateItem.id) == (item == null ? void 0 : item.id) && "border "
88
- ),
89
- onClick: () => {
90
- setActivateItem(item);
91
- },
92
- children: /* @__PURE__ */ jsxs("article", { children: [
93
- /* @__PURE__ */ jsxs("div", { className: "space-y-2 xl:grid xl:grid-cols-4 xl:items-baseline xl:space-y-0", children: [
94
- /* @__PURE__ */ jsxs("dl", { children: [
95
- /* @__PURE__ */ jsx("dt", { className: "sr-only", children: "Published on" }),
96
- /* @__PURE__ */ jsx("dd", { className: "text-base font-medium leading-6 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(MtDateView, { date: item.publishDate }) })
97
- ] }),
98
- /* @__PURE__ */ jsxs("div", { className: "space-y-5 xl:col-span-3", children: [
99
- /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
100
- /* @__PURE__ */ jsxs("div", { children: [
101
- /* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold leading-8 tracking-tight", children: /* @__PURE__ */ jsx(
102
- MtLink,
103
- {
104
- href: `/blog/${item.slug}`,
105
- className: "text-gray-900 dark:text-gray-100",
106
- children: item.title
107
- }
108
- ) }),
109
- /* @__PURE__ */ jsx("div", { className: "flex flex-wrap", children: item.tags.map((tag) => /* @__PURE__ */ jsx(Tag, { text: tag }, tag)) })
110
- ] }),
111
- /* @__PURE__ */ jsx("div", { className: "prose max-w-none text-gray-500 dark:text-gray-400", children: item.summary })
112
- ] }),
113
- /* @__PURE__ */ jsx("div", { className: "text-base font-medium leading-6", children: /* @__PURE__ */ jsx(
114
- MtLink,
115
- {
116
- href: `/blog/${item.slug}`,
117
- className: "text-primary-500 hover:text-primary-600 dark:hover:text-primary-400",
118
- children: "Read more \u2192"
119
- }
120
- ) })
121
- ] })
122
- ] }),
123
- /* @__PURE__ */ jsx("div", { className: "absolute bottom-2 right-0", children: isLogined && /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PostCardItemActions, { id: item.id }) }) })
124
- ] })
125
- }
126
- );
127
- }
128
- return /* @__PURE__ */ jsxs(
129
- Card,
130
- {
131
- className: cn(
132
- "m-2 w-[350px]",
133
- item.id == (activateItem == null ? void 0 : activateItem.id) && " p-2 shadow-md"
134
- ),
135
- onClick: () => {
136
- setActivateItem(item);
137
- },
138
- children: [
139
- /* @__PURE__ */ jsxs(CardHeader, { children: [
140
- /* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx(MtLink, { href: `${slugPath}/${item.id}`, className: "pb-4 text-3xl font-bold hover:text-gray-700", children: item == null ? void 0 : item.title }) }),
141
- /* @__PURE__ */ jsx(CardDescription, { children: "Deploy your new project in one-click." })
142
- ] }),
143
- /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("article", { className: "my-4 flex flex-col", children: [
144
- /* @__PURE__ */ jsx(MtLink, {
145
- href: `${slugPath}/${item.id}`,
146
- className: "hover:opacity-75",
147
- // eslint-disable-next-line @next/next/no-img-element, jsx-a11y/alt-text
148
- children: item.topImage && /* @__PURE__ */ jsx("img", { src: item.topImage, alt: item.title })
149
- }),
150
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-start bg-white p-6", children: [
151
- /* @__PURE__ */ jsx(MtLink, { href: `${slugPath}/${item.id}`, className: "pb-4 text-sm font-bold uppercase text-blue-700", children: item.category || "news" }),
152
- /* @__PURE__ */ jsxs("p", { className: "pb-3 text-sm", children: [
153
- "By ",
154
- /* @__PURE__ */ jsx(MtLink, { href: "#", children: item.author }),
155
- ","
156
- ] }),
157
- /* @__PURE__ */ jsx("div", { children: item.excerpt })
158
- ] })
159
- ] }) }),
160
- /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-end", children: [
161
- /* @__PURE__ */ jsx(MtLink, { variant: "ghost", href: `${slugPath}/${item.id}`, children: "Show" }),
162
- isLogined && /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PostCardItemActions, { id: item.id }) })
163
- ] })
164
- ]
165
- }
166
- );
167
- };
168
- const PostCardItemActions = (props) => {
169
- const { id } = props;
170
- const setOpenCreate = useListview((x) => x.setOpenCreate);
171
- const setOpenRemove = useListview((x) => x.setOpenRemove);
172
- const slugPath = useListview((x) => x.slugPath);
173
- const [open, setOpen] = useState(false);
174
- const setOpenEdit = useListview((x) => x.setOpenEdit);
175
- return /* @__PURE__ */ jsxs(DropdownMenu, { open, onOpenChange: setOpen, children: [
176
- /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
177
- MtLink,
178
- {
179
- href: `${slugPath}/${id}`,
180
- variant: "ghost",
181
- className: "data-[state=open]:bg-muted flex size-8 p-0",
182
- children: [
183
- /* @__PURE__ */ jsx(Icons.chevronRight, { className: "size-4" }),
184
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "more" })
185
- ]
186
- }
187
- ) }),
188
- /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-[160px]", children: [
189
- /* @__PURE__ */ jsx(
190
- DropdownMenuItem,
191
- {
192
- onClick: (e) => {
193
- e.preventDefault();
194
- setOpenEdit(true);
195
- setOpen(false);
196
- },
197
- children: "edit"
198
- }
199
- ),
200
- /* @__PURE__ */ jsx(
201
- DropdownMenuItem,
202
- {
203
- onClick: (e) => {
204
- e.preventDefault();
205
- setOpenRemove(true);
206
- setOpen(false);
207
- },
208
- children: "remove"
209
- }
210
- ),
211
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
212
- ] })
213
- ] });
214
- };
215
- export {
216
- CommonListItemView,
217
- CommontListResView,
218
- PostCardItemActions,
219
- PostCardListItem
220
- };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { PlainMessage } from "@bufbuild/protobuf";
3
- import { CurdViewContent } from "../../gomtmpb/mtm/sppb/curd_pb";
4
- export declare const LzListViewLayoutDemo: import("react").LazyExoticComponent<typeof import("./listview-layouts/listviewlayout-demo").default>;
5
- export declare const LzListViewLayoutDefault: import("react").LazyExoticComponent<typeof import("./listview-layouts/default").default>;
6
- export declare function CommonListView(props: {
7
- curdViewContent: PlainMessage<CurdViewContent>;
8
- }): import("react").JSX.Element | null;
9
- export declare const ListViewActions: () => import("react").JSX.Element;
@@ -1,139 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Icons } from "mtxuilib/icons/icons";
4
- import { cn } from "mtxuilib/lib/utils";
5
- import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
6
- import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "mtxuilib/ui/pagination";
7
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
8
- import { Suspense, lazy, useState } from "react";
9
- import { MtmErrorView } from "../../components/MtmErrorView";
10
- import { useGomtmSuspenseInfiniteQuery } from "../../gomtmQuery";
11
- import CurdEditPanel from "../form/CurdEditPanel";
12
- import { GomtmForm } from "../form/formStore";
13
- import { CommontListResView } from "../list-item/ListViewLayoutRender";
14
- import { PanelRemove } from "../remove/RemovePanel";
15
- import { useListview } from "./list-store";
16
- const ALL_Layouts = [
17
- "default",
18
- "demo"
19
- ];
20
- const LzListViewLayoutDemo = lazy(() => import("./listview-layouts/listviewlayout-demo"));
21
- const LzListViewLayoutDefault = lazy(() => import("./listview-layouts/default"));
22
- function CommonListView(props) {
23
- const { curdViewContent } = props;
24
- const svc = useListview((x) => curdViewContent.svcName);
25
- const methodList = useListview((x) => curdViewContent.methodList);
26
- const paramList = useListview((x) => x.paramsList);
27
- const setOpenEdit = useListview((x) => x.setOpenEdit);
28
- const openEdit = useListview((x) => x.openEdit);
29
- const openCreate = useListview((x) => x.openCreate);
30
- const setOpenCreate = useListview((x) => x.setOpenCreate);
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);
35
- const openCurdViewEditor = useListview((x) => x.openCurdViewEditor);
36
- const setOpenCurdViewEditor = useListview((x) => x.setOpenCurdViewEditor);
37
- const curdView = useListview((x) => x.curdView);
38
- const listQuery = useGomtmSuspenseInfiniteQuery(svc, methodList, paramList);
39
- if (!(listQuery == null ? void 0 : listQuery.data)) {
40
- return null;
41
- }
42
- return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
43
- /* @__PURE__ */ jsx(
44
- "div",
45
- {
46
- className: cn(
47
- "w-full"
48
- // 滚动设置
49
- // " max-h-[700px] overflow-y-auto"
50
- ),
51
- children: listQuery.data.pages.map((page, i) => {
52
- if (page.errCode) {
53
- return /* @__PURE__ */ jsx(MtmErrorView, { unaryError: page }, i);
54
- } else {
55
- return /* @__PURE__ */ jsx(CommontListResView, { data: page }, i);
56
- }
57
- })
58
- }
59
- ),
60
- listQuery.data.pages && !!listQuery.data.pages.length && /* @__PURE__ */ jsx(Pagination, { children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
61
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationPrevious, { href: "#" }) }),
62
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "1" }) }),
63
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", isActive: true, children: "2" }) }),
64
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "3" }) }),
65
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }),
66
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, { href: "#" }) })
67
- ] }) }),
68
- /* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1", children: /* @__PURE__ */ jsx(ListViewActions, {}) }),
69
- /* @__PURE__ */ jsxs(Suspense, { children: [
70
- /* @__PURE__ */ jsx(
71
- GomtmForm,
72
- {
73
- open: openEdit,
74
- fullScreen: true,
75
- viewName: viewUpdate,
76
- onOpenChange: setOpenEdit,
77
- svc,
78
- method: methodUpdate,
79
- children: /* @__PURE__ */ jsx(CurdEditPanel, {})
80
- }
81
- ),
82
- /* @__PURE__ */ jsx(
83
- GomtmForm,
84
- {
85
- open: openCreate,
86
- fullScreen: true,
87
- viewName: viewCreate,
88
- onOpenChange: setOpenCreate,
89
- svc,
90
- method: methodCreate,
91
- children: /* @__PURE__ */ jsx(CurdEditPanel, {})
92
- }
93
- ),
94
- /* @__PURE__ */ jsx(PanelRemove, { curdViewContent }),
95
- openCurdViewEditor && /* @__PURE__ */ jsx(
96
- GomtmForm,
97
- {
98
- defaultValues: curdView,
99
- open: openCurdViewEditor,
100
- fullScreen: true,
101
- viewName: "CurdViewEditor",
102
- onOpenChange: setOpenCurdViewEditor,
103
- svc: "sppb.CurdService",
104
- method: "curdViewUpdate",
105
- children: /* @__PURE__ */ jsx(CurdEditPanel, {})
106
- }
107
- )
108
- ] })
109
- ] });
110
- }
111
- const ListViewActions = () => {
112
- const [open, setOpen] = useState(false);
113
- const setOpenCreate = useListview((x) => x.setOpenCreate);
114
- const setOpenCurdViewEditor = useListview((x) => x.setOpenCurdViewEditor);
115
- return /* @__PURE__ */ jsxs(DropdownMenu, { open, onOpenChange: setOpen, children: [
116
- /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { variant: "ghost", className: "m-0 flex h-10 w-10 items-center justify-center border p-0 shadow-sm backdrop-blur", children: /* @__PURE__ */ jsx(Icons.ellipsis, {}) }) }),
117
- /* @__PURE__ */ jsxs(DropdownMenuContent, { className: "w-56", children: [
118
- /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "List \u64CD\u4F5C" }),
119
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
120
- /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [
121
- /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () => {
122
- setOpenCreate(true);
123
- setOpen(false);
124
- }, children: "create" }),
125
- /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () => {
126
- setOpenCurdViewEditor(true);
127
- setOpen(false);
128
- }, children: "editView" })
129
- ] }),
130
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
131
- ] })
132
- ] });
133
- };
134
- export {
135
- CommonListView,
136
- ListViewActions,
137
- LzListViewLayoutDefault,
138
- LzListViewLayoutDemo
139
- };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LzListViewLayoutDemo: import("react").LazyExoticComponent<typeof import("./listview-layouts/listviewlayout-demo").default>;
3
- export declare const LzListViewLayoutDefault: import("react").LazyExoticComponent<typeof import("./listview-layouts/default").default>;
4
- export declare function CommonListViewV2(): import("react").JSX.Element | null;
5
- export declare const ListViewActions: () => import("react").JSX.Element;
@@ -1,66 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Icons } from "mtxuilib/icons/icons";
4
- import { cn } from "mtxuilib/lib/utils";
5
- import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
6
- import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "mtxuilib/ui/pagination";
7
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
8
- import { Suspense, lazy } from "react";
9
- import { MtmErrorView } from "../../components/MtmErrorView";
10
- import { useGomtmSuspenseInfiniteQuery } from "../../gomtmQuery";
11
- import { useCurdView } from "../CurdView";
12
- import { CommontListResView } from "../list-item/ListViewLayoutRender";
13
- const LzListViewLayoutDemo = lazy(() => import("./listview-layouts/listviewlayout-demo"));
14
- const LzListViewLayoutDefault = lazy(() => import("./listview-layouts/default"));
15
- function CommonListViewV2() {
16
- const curdView = useCurdView((x) => x.curdView);
17
- const listQuery = useGomtmSuspenseInfiniteQuery(curdView.svcName, curdView == null ? void 0 : curdView.methodList, {});
18
- if (!(listQuery == null ? void 0 : listQuery.data)) {
19
- return null;
20
- }
21
- return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
22
- /* @__PURE__ */ jsx(
23
- "div",
24
- {
25
- className: cn(
26
- "w-full"
27
- // 滚动设置
28
- // " max-h-[700px] overflow-y-auto"
29
- ),
30
- children: listQuery.data.pages.map((page, i) => {
31
- if (page.errCode) {
32
- return /* @__PURE__ */ jsx(MtmErrorView, { unaryError: page }, i);
33
- } else {
34
- return /* @__PURE__ */ jsx(CommontListResView, { data: page }, i);
35
- }
36
- })
37
- }
38
- ),
39
- listQuery.data.pages && !!listQuery.data.pages.length && /* @__PURE__ */ jsx(Pagination, { children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
40
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationPrevious, { href: "#" }) }),
41
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "1" }) }),
42
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", isActive: true, children: "2" }) }),
43
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationLink, { href: "#", children: "3" }) }),
44
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }),
45
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, { href: "#" }) })
46
- ] }) }),
47
- /* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1" })
48
- ] });
49
- }
50
- const ListViewActions = () => {
51
- return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
52
- /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { variant: "ghost", className: "m-0 flex h-10 w-10 items-center justify-center border p-0 shadow-sm backdrop-blur", children: /* @__PURE__ */ jsx(Icons.ellipsis, {}) }) }),
53
- /* @__PURE__ */ jsxs(DropdownMenuContent, { className: "w-56", children: [
54
- /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "List \u64CD\u4F5C" }),
55
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
56
- /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsx("div", { className: "bg-yellow-100 p-2" }) }) }) }),
57
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
58
- ] })
59
- ] });
60
- };
61
- export {
62
- CommonListViewV2,
63
- ListViewActions,
64
- LzListViewLayoutDefault,
65
- LzListViewLayoutDemo
66
- };
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from "react";
2
- export declare const ListViewSetupEditView: (props: PropsWithChildren) => null;
3
- export declare const ListViewSetupCreateView: (props: PropsWithChildren) => null;
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { useMemo } from "react";
3
- import { useListview } from "./list-store";
4
- const ListViewSetupEditView = (props) => {
5
- const { children } = props;
6
- const setEditRender = useListview((x) => x.setEditRender);
7
- useMemo(() => {
8
- setEditRender(children);
9
- }, [children, setEditRender]);
10
- return null;
11
- };
12
- const ListViewSetupCreateView = (props) => {
13
- const { children } = props;
14
- const setCreateRender = useListview((x) => x.setCreateRender);
15
- useMemo(() => {
16
- setCreateRender(children);
17
- }, [children, setCreateRender]);
18
- return null;
19
- };
20
- export {
21
- ListViewSetupCreateView,
22
- ListViewSetupEditView
23
- };
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from "react";
2
- export declare const ListViewRender: (props: PropsWithChildren) => import("react").JSX.Element;
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { CommonListView } from "./CommonListView";
4
- import { Suspense } from "react";
5
- import CurdEditPanel from "../edit/CurdEditPanel";
6
- import { PanelRemove } from "../remove/RemovePanel";
7
- const ListViewRender = (props) => {
8
- const { children } = props;
9
- return /* @__PURE__ */ jsxs(Fragment, { children: [
10
- /* @__PURE__ */ jsx(CommonListView, {}),
11
- /* @__PURE__ */ jsxs(Suspense, { children: [
12
- /* @__PURE__ */ jsx(CurdEditPanel, { fullScreen: true }),
13
- /* @__PURE__ */ jsx(PanelRemove, {})
14
- ] }),
15
- children
16
- ] });
17
- };
18
- export {
19
- ListViewRender
20
- };
@@ -1,3 +0,0 @@
1
- import { ComponentProps, PropsWithChildren } from "react";
2
- import { ListViewStoreProvider } from "./list-store";
3
- export default function MtListView(props: {} & ComponentProps<typeof ListViewStoreProvider> & PropsWithChildren): import("react").JSX.Element;