gomtm 0.0.393 → 0.0.395

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,106 +0,0 @@
1
- "use client";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __spreadValues = (a, b) => {
8
- for (var prop in b || (b = {}))
9
- if (__hasOwnProp.call(b, prop))
10
- __defNormalProp(a, prop, b[prop]);
11
- if (__getOwnPropSymbols)
12
- for (var prop of __getOwnPropSymbols(b)) {
13
- if (__propIsEnum.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- }
16
- return a;
17
- };
18
- var __async = (__this, __arguments, generator) => {
19
- return new Promise((resolve, reject) => {
20
- var fulfilled = (value) => {
21
- try {
22
- step(generator.next(value));
23
- } catch (e) {
24
- reject(e);
25
- }
26
- };
27
- var rejected = (value) => {
28
- try {
29
- step(generator.throw(value));
30
- } catch (e) {
31
- reject(e);
32
- }
33
- };
34
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35
- step((generator = generator.apply(__this, __arguments)).next());
36
- });
37
- };
38
- import { jsx, jsxs } from "react/jsx-runtime";
39
- import { MtLink } from "mtxuilib/common/mtlink";
40
- import { ZForm, useZodForm } from "mtxuilib/form/ZodForm";
41
- import { Input } from "mtxuilib/ui/input";
42
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
43
- import { useRouter, useSearchParams } from "next/navigation";
44
- import { AuthLoginInput } from "../../validations/auth";
45
- function LoginScreen2() {
46
- const form = useZodForm({
47
- schema: AuthLoginInput,
48
- defaultValues: {}
49
- });
50
- const searchParams = useSearchParams();
51
- const router = useRouter();
52
- const handleSubmit = (values) => __async(this, null, function* () {
53
- const res = yield fetch("/api.v1/auth/login", {
54
- method: "POST",
55
- body: JSON.stringify(values)
56
- });
57
- const { success } = yield res.json();
58
- if (success) {
59
- const nextUrl = searchParams.get("next");
60
- router.push(nextUrl != null ? nextUrl : "/");
61
- router.refresh();
62
- } else {
63
- alert("Login failed");
64
- }
65
- });
66
- return /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-md", children: [
67
- /* @__PURE__ */ jsx("div", { className: "prose", children: "Sign in" }),
68
- /* @__PURE__ */ jsxs("div", { className: "prose text-sm", children: [
69
- "New to company?",
70
- " ",
71
- /* @__PURE__ */ jsx(MtLink, { href: "#replace-with-a-link", children: "Sign up!" })
72
- ] }),
73
- /* @__PURE__ */ jsx(
74
- MtButton,
75
- {
76
- variant: "ghost",
77
- className: "bg-opacity/0.8 w-full bg-neutral-50",
78
- children: "Continue with Google"
79
- }
80
- ),
81
- /* @__PURE__ */ jsxs(
82
- ZForm,
83
- {
84
- form,
85
- className: "space-y-2",
86
- handleSubmit,
87
- children: [
88
- /* @__PURE__ */ jsx(
89
- Input,
90
- __spreadValues({}, form.register("username"))
91
- ),
92
- /* @__PURE__ */ jsx(Input, __spreadValues({ type: "password" }, form.register("password"))),
93
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between" }),
94
- /* @__PURE__ */ jsx(MtButton, { type: "submit", className: "w-full", children: "Sign in" })
95
- ]
96
- }
97
- ),
98
- /* @__PURE__ */ jsx("footer", { className: "py-3", children: /* @__PURE__ */ jsxs("div", { className: "prose text-center", children: [
99
- "\xA9 Mtm ltd. ",
100
- (/* @__PURE__ */ new Date()).getFullYear()
101
- ] }) })
102
- ] });
103
- }
104
- export {
105
- LoginScreen2
106
- };
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- interface UserAuthFormProps extends React.HTMLAttributes<HTMLDivElement> {
3
- }
4
- export declare function UserAuthForm({ className, ...props }: UserAuthFormProps): React.JSX.Element;
5
- export {};
@@ -1,76 +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 { cn } from "mtxuilib/lib/utils";
35
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
36
- function UserAuthForm(_a) {
37
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
38
- return /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({ className: cn("grid gap-6", className) }, props), { children: [
39
- /* @__PURE__ */ jsxs("div", { className: "relative", children: [
40
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t " }) }),
41
- /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ jsx("span", { className: "bg-appbg px-2 ", children: "Continue with" }) })
42
- ] }),
43
- /* @__PURE__ */ jsxs(
44
- MtButton,
45
- {
46
- type: "button",
47
- children: [
48
- /* @__PURE__ */ jsx(
49
- "svg",
50
- {
51
- className: "mr-2 size-4",
52
- "aria-hidden": "true",
53
- focusable: "false",
54
- "data-prefix": "fab",
55
- "data-icon": "github",
56
- role: "img",
57
- xmlns: "http://www.w3.org/2000/svg",
58
- viewBox: "0 0 496 512",
59
- children: /* @__PURE__ */ jsx(
60
- "path",
61
- {
62
- fill: "currentColor",
63
- d: "M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
64
- }
65
- )
66
- }
67
- ),
68
- "Github"
69
- ]
70
- }
71
- )
72
- ] }));
73
- }
74
- export {
75
- UserAuthForm
76
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const BlogPostCreateForm: () => import("react").JSX.Element;
@@ -1,27 +0,0 @@
1
- "use client";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __spreadValues = (a, b) => {
8
- for (var prop in b || (b = {}))
9
- if (__hasOwnProp.call(b, prop))
10
- __defNormalProp(a, prop, b[prop]);
11
- if (__getOwnPropSymbols)
12
- for (var prop of __getOwnPropSymbols(b)) {
13
- if (__propIsEnum.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- }
16
- return a;
17
- };
18
- import { Fragment, jsx } from "react/jsx-runtime";
19
- import { InputField } from "mtxuilib/ui/ui-mt/input-field/InputField";
20
- import { useFormContext } from "react-hook-form";
21
- const BlogPostCreateForm = () => {
22
- const form = useFormContext();
23
- return /* @__PURE__ */ jsx(Fragment, { children: form && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InputField, __spreadValues({ label: "title" }, form.register("title"))) }) });
24
- };
25
- export {
26
- BlogPostCreateForm
27
- };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function BlogPostImportUrlFormDlg(): import("react").JSX.Element;
3
- export declare function BlogPostImportUrlForm(props: {
4
- onCancel?: () => void;
5
- onSubmit?: (values: any) => void;
6
- }): import("react").JSX.Element;
@@ -1,94 +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 __async = (__this, __arguments, generator) => {
22
- return new Promise((resolve, reject) => {
23
- var fulfilled = (value) => {
24
- try {
25
- step(generator.next(value));
26
- } catch (e) {
27
- reject(e);
28
- }
29
- };
30
- var rejected = (value) => {
31
- try {
32
- step(generator.throw(value));
33
- } catch (e) {
34
- reject(e);
35
- }
36
- };
37
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
- step((generator = generator.apply(__this, __arguments)).next());
39
- });
40
- };
41
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
42
- import { EditFormToolbar } from "mtxuilib/form/EditFormToolbar";
43
- import { Dialog, DialogContent } from "mtxuilib/ui/dialog";
44
- import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
45
- import { Input } from "mtxuilib/ui/input";
46
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
47
- import { useState } from "react";
48
- import { useForm } from "react-hook-form";
49
- function BlogPostImportUrlFormDlg() {
50
- const [open, setOpen] = useState(false);
51
- const handleSubmit = (values) => __async(this, null, function* () {
52
- setOpen(false);
53
- });
54
- return /* @__PURE__ */ jsxs(Fragment, { children: [
55
- /* @__PURE__ */ jsx(MtButton, { variant: "outline", onClick: () => {
56
- setOpen(true);
57
- }, children: "Import from url" }),
58
- /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(
59
- BlogPostImportUrlForm,
60
- {
61
- onCancel: () => {
62
- setOpen(false);
63
- },
64
- onSubmit: handleSubmit
65
- }
66
- ) }) })
67
- ] });
68
- }
69
- function BlogPostImportUrlForm(props) {
70
- const { onCancel, onSubmit } = props;
71
- const form = useForm();
72
- return /* @__PURE__ */ jsx(Form, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleSubmit((values) => {
73
- onSubmit && onSubmit(values);
74
- }), className: "flex w-full flex-col p-1", children: [
75
- /* @__PURE__ */ jsx(
76
- FormField,
77
- {
78
- control: form.control,
79
- name: "url",
80
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
81
- /* @__PURE__ */ jsx(FormLabel, { children: "Url" }),
82
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "url" }, field)) }),
83
- /* @__PURE__ */ jsx(FormDescription, { children: "\u8F93\u5165url\uFF0C \u5BFC\u5165\u7A0B\u5E8F\u5C06\u4ECE\u8FD9\u4E2A\u9875\u9762\u5C1D\u8BD5\u5BFC\u5165\u6587\u7AE0" }),
84
- /* @__PURE__ */ jsx(FormMessage, {})
85
- ] })
86
- }
87
- ),
88
- /* @__PURE__ */ jsx(EditFormToolbar, { submitText: "ok", onCancel })
89
- ] }) }));
90
- }
91
- export {
92
- BlogPostImportUrlForm,
93
- BlogPostImportUrlFormDlg
94
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function PostEditForm(): import("react").JSX.Element;
@@ -1,91 +0,0 @@
1
- "use client";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __spreadValues = (a, b) => {
8
- for (var prop in b || (b = {}))
9
- if (__hasOwnProp.call(b, prop))
10
- __defNormalProp(a, prop, b[prop]);
11
- if (__getOwnPropSymbols)
12
- for (var prop of __getOwnPropSymbols(b)) {
13
- if (__propIsEnum.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- }
16
- return a;
17
- };
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
20
- import { Input } from "mtxuilib/ui/input";
21
- import { Separator } from "mtxuilib/ui/separator";
22
- import { Switch } from "mtxuilib/ui/switch";
23
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "mtxuilib/ui/tabs";
24
- import { RichTextInput } from "mtxuilib/ui/ui-mt/input-field/RichEditorInput";
25
- import { useFormContext } from "react-hook-form";
26
- function PostEditForm() {
27
- const form = useFormContext();
28
- return /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsxs(Tabs, { defaultValue: "edit", children: [
29
- /* @__PURE__ */ jsxs("div", { className: "flex items-center px-4 py-2", children: [
30
- /* @__PURE__ */ jsx("h1", { className: "text-xl font-bold", children: "edit post" }),
31
- /* @__PURE__ */ jsxs(TabsList, { className: "ml-auto", children: [
32
- /* @__PURE__ */ jsx(TabsTrigger, { value: "edit", className: "text-zinc-600 dark:text-zinc-200", children: "\u7F16\u8F91" }),
33
- /* @__PURE__ */ jsx(TabsTrigger, { value: "op", className: "text-zinc-600 dark:text-zinc-200", children: "\u64CD\u4F5C" })
34
- ] })
35
- ] }),
36
- /* @__PURE__ */ jsx(Separator, {}),
37
- /* @__PURE__ */ jsxs(TabsContent, { value: "edit", className: "m-0", children: [
38
- /* @__PURE__ */ jsx("input", __spreadValues({ type: "hidden" }, form.register("id", { valueAsNumber: true }))),
39
- /* @__PURE__ */ jsx(
40
- FormField,
41
- {
42
- control: form.control,
43
- name: "title",
44
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
45
- /* @__PURE__ */ jsx(FormLabel, { children: "\u6807\u9898" }),
46
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "title" }, field)) }),
47
- /* @__PURE__ */ jsx(FormMessage, {})
48
- ] })
49
- }
50
- ),
51
- /* @__PURE__ */ jsx("div", { className: "container mx-auto flex items-center justify-center py-2", children: /* @__PURE__ */ jsx(RichTextInput, __spreadValues({ contentType: "html" }, form.register("content"))) })
52
- ] }),
53
- /* @__PURE__ */ jsx(TabsContent, { value: "op", className: "m-0", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
54
- /* @__PURE__ */ jsx(
55
- FormField,
56
- {
57
- control: form.control,
58
- name: "slugs",
59
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
60
- /* @__PURE__ */ jsx(FormLabel, { children: "slugs" }),
61
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "slugs" }, field)) }),
62
- /* @__PURE__ */ jsx(FormMessage, {})
63
- ] })
64
- }
65
- ),
66
- /* @__PURE__ */ jsx(
67
- FormField,
68
- {
69
- control: form.control,
70
- name: "isManual",
71
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { className: "flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm", children: [
72
- /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
73
- /* @__PURE__ */ jsx(FormLabel, { children: "isManual" }),
74
- /* @__PURE__ */ jsx(FormDescription, { children: "\u624B\u5DE5\u7F16\u8F91\u6807\u8BB0" })
75
- ] }),
76
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
77
- Switch,
78
- {
79
- checked: field.value,
80
- onCheckedChange: field.onChange
81
- }
82
- ) })
83
- ] })
84
- }
85
- )
86
- ] }) })
87
- ] }) });
88
- }
89
- export {
90
- PostEditForm
91
- };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { BlogPost } from "../../gomtmpb/mtm/sppb/mtm_pb";
3
- export declare const BlogPostContent: (props: {
4
- post: BlogPost;
5
- }) => import("react").JSX.Element;
@@ -1,15 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { MtImage } from "mtxuilib/common/MtImage";
4
- import { ImageNoExist } from "../../consts";
5
- const BlogPostContent = (props) => {
6
- const { post } = props;
7
- return /* @__PURE__ */ jsxs("article", { className: "prose dark:prose-invert p-2", children: [
8
- /* @__PURE__ */ jsx("h1", { className: "mt-6", children: post.title }),
9
- /* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsx(MtImage, { src: post.topImage || ImageNoExist, alt: post.title, width: 100, height: 100 }) }),
10
- /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: post.content } })
11
- ] });
12
- };
13
- export {
14
- BlogPostContent
15
- };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export default function CurdViewEditor(props: {
3
- name: string;
4
- }): import("react").JSX.Element;
5
- export declare const CurdViewContentField: (props: {
6
- name: string;
7
- }) => import("react").JSX.Element;
@@ -1,109 +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
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
- import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
23
- import { Input } from "mtxuilib/ui/input";
24
- import { useEffect } from "react";
25
- import { useForm, useFormContext } from "react-hook-form";
26
- import { FormShell } from "../../curd/form/FormShell";
27
- function CurdViewEditor(props) {
28
- const form = useFormContext();
29
- return /* @__PURE__ */ jsxs(FormShell, { children: [
30
- /* @__PURE__ */ jsx(
31
- FormField,
32
- {
33
- control: form.control,
34
- name: "name",
35
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
36
- /* @__PURE__ */ jsx(FormLabel, { children: "name" }),
37
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadProps(__spreadValues({ placeholder: "name" }, field), { readOnly: true, disabled: true })) }),
38
- /* @__PURE__ */ jsx(FormMessage, {})
39
- ] })
40
- }
41
- ),
42
- /* @__PURE__ */ jsx(FormField, { control: form.control, name: "title", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
43
- /* @__PURE__ */ jsx(FormLabel, { children: "title" }),
44
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "title" }, field)) }),
45
- /* @__PURE__ */ jsx(FormMessage, {})
46
- ] }) }),
47
- /* @__PURE__ */ jsx(CurdViewContentField, { name: "content" })
48
- ] });
49
- }
50
- const CurdViewContentField = (props) => {
51
- const { name } = props;
52
- const form = useFormContext();
53
- const defaultValues = form.getValues()[name];
54
- const contentForm = useForm({
55
- defaultValues: __spreadProps(__spreadValues({}, defaultValues), {
56
- pageSize: defaultValues.pageSize || 12
57
- })
58
- });
59
- useEffect(() => {
60
- const subscription = contentForm.watch((value) => {
61
- console.log("value", value);
62
- form.setValue(name, value);
63
- });
64
- return () => subscription.unsubscribe();
65
- }, [contentForm, contentForm.watch, form, name]);
66
- return /* @__PURE__ */ jsxs(Fragment, { children: [
67
- /* @__PURE__ */ jsx(
68
- FormField,
69
- {
70
- control: contentForm.control,
71
- name: "svcName",
72
- render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
73
- /* @__PURE__ */ jsx(FormLabel, { children: "Svc" }),
74
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "svcName" }, field)) }),
75
- /* @__PURE__ */ jsx(FormMessage, {})
76
- ] })
77
- }
78
- ),
79
- /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodList", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
80
- /* @__PURE__ */ jsx(FormLabel, { children: "methodList" }),
81
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodList" }, field)) }),
82
- /* @__PURE__ */ jsx(FormMessage, {})
83
- ] }) }),
84
- /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodGet", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
85
- /* @__PURE__ */ jsx(FormLabel, { children: "methodGet" }),
86
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodGet" }, field)) }),
87
- /* @__PURE__ */ jsx(FormMessage, {})
88
- ] }) }),
89
- /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodUpdate", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
90
- /* @__PURE__ */ jsx(FormLabel, { children: "methodUpdate" }),
91
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodUpdate" }, field)) }),
92
- /* @__PURE__ */ jsx(FormMessage, {})
93
- ] }) }),
94
- /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "methodDelete", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
95
- /* @__PURE__ */ jsx(FormLabel, { children: "methodDelete" }),
96
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodDelete" }, field)) }),
97
- /* @__PURE__ */ jsx(FormMessage, {})
98
- ] }) }),
99
- /* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "pageSize", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
100
- /* @__PURE__ */ jsx(FormLabel, { children: "pageSize" }),
101
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadProps(__spreadValues({}, field), { placeholder: "pageSize", type: "number" })) }),
102
- /* @__PURE__ */ jsx(FormMessage, {})
103
- ] }) })
104
- ] });
105
- };
106
- export {
107
- CurdViewContentField,
108
- CurdViewEditor as default
109
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const GoMtmDebug: () => import("react").JSX.Element | null;
@@ -1,48 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Icons } from "mtxuilib/icons/icons";
4
- import { CommandDialog, CommandEmpty, CommandInput, CommandList, CommandSeparator } from "mtxuilib/ui/command";
5
- import { Dialog, DialogContent, DialogTrigger } from "mtxuilib/ui/dialog";
6
- import { MtButton } from "mtxuilib/ui/ui-mt/Button";
7
- import { useState } from "react";
8
- import { GomtmAppSetting } from "../../store/GomtmAppSetting";
9
- import { DebugCounter, useGomtm } from "../../store/mtapp-store";
10
- const GoMtmDebug = () => {
11
- const [open, setOpen] = useState(false);
12
- const debug = useGomtm((x) => x.debug);
13
- if (!debug) {
14
- return null;
15
- }
16
- return /* @__PURE__ */ jsxs("div", { className: "fixed bottom-24 right-8 z-20 bg-red-300", children: [
17
- /* @__PURE__ */ jsx(MtButton, { onClick: () => {
18
- setOpen(true);
19
- }, children: /* @__PURE__ */ jsx(Icons.bug, {}) }),
20
- /* @__PURE__ */ jsxs(CommandDialog, { open, onOpenChange: setOpen, children: [
21
- /* @__PURE__ */ jsx(CommandInput, { placeholder: "Type a command or search...", onValueChange: (s) => {
22
- setOpen(false);
23
- } }),
24
- /* @__PURE__ */ jsxs(CommandList, { children: [
25
- /* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
26
- /* @__PURE__ */ jsxs("div", { className: "flex gap-2 bg-slate-100 p-2", children: [
27
- /* @__PURE__ */ jsx(DebugAppMainStateDlg, {}),
28
- /* @__PURE__ */ jsx(GomtmAppSetting, {}),
29
- /* @__PURE__ */ jsx(DebugCounter, {})
30
- ] }),
31
- /* @__PURE__ */ jsx(CommandSeparator, {})
32
- ] })
33
- ] })
34
- ] });
35
- };
36
- const DebugAppMainStateDlg = () => {
37
- const globalSearchParams = useGomtm((x) => x.globalSearchParams);
38
- return /* @__PURE__ */ jsxs(Dialog, { children: [
39
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { children: "appState" }) }),
40
- /* @__PURE__ */ jsxs(DialogContent, { children: [
41
- "appstate",
42
- /* @__PURE__ */ jsx("pre", { children: JSON.stringify(globalSearchParams, null, 2) })
43
- ] })
44
- ] });
45
- };
46
- export {
47
- GoMtmDebug
48
- };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { PlainMessage } from "@bufbuild/protobuf";
3
- import { FormSchema } from "../../gomtmpb/mtm/sppb/mtm_pb";
4
- export declare const SchemaFormFieldsRender: (props: {
5
- schema: PlainMessage<FormSchema>;
6
- }) => import("react").JSX.Element;