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.
- package/package.json +13 -31
- package/dist/esm/block/BlockItem.d.ts +0 -14
- package/dist/esm/block/BlockItem.js +0 -202
- package/dist/esm/block/BlockPage.d.ts +0 -15
- package/dist/esm/block/BlockPage.js +0 -197
- package/dist/esm/block/ChildrenDebug.d.ts +0 -15
- package/dist/esm/block/ChildrenDebug.js +0 -177
- package/dist/esm/block/MtBlockSS.d.ts +0 -6
- package/dist/esm/block/MtBlockSS.js +0 -10
- package/dist/esm/block/block-edit/MtBlockEditor.d.ts +0 -2
- package/dist/esm/block/block-edit/MtBlockEditor.js +0 -8
- package/dist/esm/block/block-store.d.ts +0 -14
- package/dist/esm/block/block-store.js +0 -79
- package/dist/esm/block/blockRegister.d.ts +0 -8
- package/dist/esm/block/blockRegister.js +0 -55
- package/dist/esm/block/blocks/Hello2Block.d.ts +0 -4
- package/dist/esm/block/blocks/Hello2Block.js +0 -12
- package/dist/esm/block/blocks/HelloBlock.d.ts +0 -5
- package/dist/esm/block/blocks/HelloBlock.js +0 -14
- package/dist/esm/block/blocks/HelloText.d.ts +0 -4
- package/dist/esm/block/blocks/HelloText.js +0 -12
- package/dist/esm/block/blocks/hello/Hello.d.ts +0 -4
- package/dist/esm/block/blocks/hello/Hello.js +0 -11
- package/dist/esm/block/blocks/hello/edit.d.ts +0 -5
- package/dist/esm/block/blocks/hello/edit.js +0 -15
- package/dist/esm/block/blocks/hello/index.d.ts +0 -9
- package/dist/esm/block/blocks/hello/index.js +0 -29
- package/dist/esm/block/blocks/hello2/index.d.ts +0 -4
- package/dist/esm/block/blocks/hello2/index.js +0 -12
- package/dist/esm/block/consts.d.ts +0 -1
- package/dist/esm/block/consts.js +0 -4
- package/dist/esm/cli/build.d.ts +0 -2
- package/dist/esm/cli/build.js +0 -60
- package/dist/esm/cli/deployMtWorker.d.ts +0 -2
- package/dist/esm/cli/deployMtWorker.js +0 -19
- package/dist/esm/cli/deploy_cf_worker.d.ts +0 -2
- package/dist/esm/cli/deploy_cf_worker.js +0 -70
- package/dist/esm/cli/deploy_mtxcli.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxcli.js +0 -55
- package/dist/esm/cli/deploy_mtxedge.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxedge.js +0 -55
- package/dist/esm/cli/deploy_mtxui.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxui.js +0 -45
- package/dist/esm/cli/up_cf1.d.ts +0 -2
- package/dist/esm/cli/up_cf1.js +0 -29
- package/dist/esm/cli/utils.d.ts +0 -1
- package/dist/esm/cli/utils.js +0 -5
- package/dist/esm/cli/vc_mtxedge.d.ts +0 -2
- package/dist/esm/cli/vc_mtxedge.js +0 -44
- package/dist/esm/components/MtDate.d.ts +0 -6
- package/dist/esm/components/MtDate.js +0 -17
- package/dist/esm/components/MtmErrorView.d.ts +0 -7
- package/dist/esm/components/MtmErrorView.js +0 -16
- package/dist/esm/components/MtmInstallScript.d.ts +0 -2
- package/dist/esm/components/MtmInstallScript.js +0 -16
- package/dist/esm/components/SSR.d.ts +0 -11
- package/dist/esm/components/SSR.js +0 -76
- package/dist/esm/components/Tag.d.ts +0 -6
- package/dist/esm/components/Tag.js +0 -17
- package/dist/esm/components/auth/AuthPage.d.ts +0 -2
- package/dist/esm/components/auth/AuthPage.js +0 -36
- package/dist/esm/components/auth/LoginScreen2.d.ts +0 -2
- package/dist/esm/components/auth/LoginScreen2.js +0 -106
- package/dist/esm/components/auth/UserAuthForm.d.ts +0 -5
- package/dist/esm/components/auth/UserAuthForm.js +0 -76
- package/dist/esm/components/blog/BlogPostCreateForm.d.ts +0 -2
- package/dist/esm/components/blog/BlogPostCreateForm.js +0 -27
- package/dist/esm/components/blog/BlogPostImportDlgUrl.d.ts +0 -6
- package/dist/esm/components/blog/BlogPostImportDlgUrl.js +0 -94
- package/dist/esm/components/blog/PostEditForm.d.ts +0 -2
- package/dist/esm/components/blog/PostEditForm.js +0 -91
- package/dist/esm/components/blog/post-content.d.ts +0 -5
- package/dist/esm/components/blog/post-content.js +0 -15
- package/dist/esm/components/curdView/curdViewEditor.d.ts +0 -7
- package/dist/esm/components/curdView/curdViewEditor.js +0 -109
- package/dist/esm/components/devtools/GoMtmDebug.d.ts +0 -2
- package/dist/esm/components/devtools/GoMtmDebug.js +0 -48
- package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.d.ts +0 -6
- package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.js +0 -46
- package/dist/esm/components/site/SiteInfo.d.ts +0 -2
- package/dist/esm/components/site/SiteInfo.js +0 -15
- package/dist/esm/components/site/SiteSwitchDlg.d.ts +0 -0
- package/dist/esm/components/site/SiteSwitchDlg.js +0 -1
- package/dist/esm/connectquery/call-unary-method.d.ts +0 -8
- package/dist/esm/connectquery/call-unary-method.js +0 -47
- package/dist/esm/connectquery/connect-query-key.d.ts +0 -16
- package/dist/esm/connectquery/connect-query-key.js +0 -15
- package/dist/esm/connectquery/create-use-infinite-query-options.d.ts +0 -22
- package/dist/esm/connectquery/create-use-infinite-query-options.js +0 -93
- package/dist/esm/connectquery/create-use-query-options.d.ts +0 -21
- package/dist/esm/connectquery/create-use-query-options.js +0 -74
- package/dist/esm/connectquery/default-options.d.ts +0 -6
- package/dist/esm/connectquery/default-options.js +0 -9
- package/dist/esm/connectquery/index.d.ts +0 -16
- package/dist/esm/connectquery/index.js +0 -33
- package/dist/esm/connectquery/method-unary-descriptor.d.ts +0 -4
- package/dist/esm/connectquery/method-unary-descriptor.js +0 -0
- package/dist/esm/connectquery/use-infinite-query.d.ts +0 -14
- package/dist/esm/connectquery/use-infinite-query.js +0 -87
- package/dist/esm/connectquery/use-mutation.d.ts +0 -10
- package/dist/esm/connectquery/use-mutation.js +0 -79
- package/dist/esm/connectquery/use-query.d.ts +0 -14
- package/dist/esm/connectquery/use-query.js +0 -75
- package/dist/esm/connectquery/use-transport.d.ts +0 -7
- package/dist/esm/connectquery/use-transport.js +0 -23
- package/dist/esm/connectquery/utils.d.ts +0 -8
- package/dist/esm/connectquery/utils.js +0 -24
- package/dist/esm/consts.d.ts +0 -34
- package/dist/esm/consts.js +0 -70
- package/dist/esm/curd/CreateFormV2.d.ts +0 -16
- package/dist/esm/curd/CreateFormV2.js +0 -81
- package/dist/esm/curd/CurdView.d.ts +0 -4
- package/dist/esm/curd/CurdView.js +0 -35
- package/dist/esm/curd/CurdViewSS.d.ts +0 -4
- package/dist/esm/curd/CurdViewSS.js +0 -69
- package/dist/esm/curd/DynViews.d.ts +0 -6
- package/dist/esm/curd/DynViews.js +0 -69
- package/dist/esm/curd/ListPageCommands.d.ts +0 -2
- package/dist/esm/curd/ListPageCommands.js +0 -25
- package/dist/esm/curd/create/CurdCreatePanel.d.ts +0 -5
- package/dist/esm/curd/create/CurdCreatePanel.js +0 -47
- package/dist/esm/curd/create/useCurdCreate.d.ts +0 -7
- package/dist/esm/curd/create/useCurdCreate.js +0 -25
- package/dist/esm/curd/edit/CurdEditPanel.d.ts +0 -2
- package/dist/esm/curd/edit/CurdEditPanel.js +0 -60
- package/dist/esm/curd/edit/form-context.d.ts +0 -17
- package/dist/esm/curd/edit/form-context.js +0 -92
- package/dist/esm/curd/edit/formStore.d.ts +0 -17
- package/dist/esm/curd/edit/formStore.js +0 -92
- package/dist/esm/curd/edit/useCurdUpdateForm.d.ts +0 -7
- package/dist/esm/curd/edit/useCurdUpdateForm.js +0 -25
- package/dist/esm/curd/form/CurdEditPanel.d.ts +0 -2
- package/dist/esm/curd/form/CurdEditPanel.js +0 -36
- package/dist/esm/curd/form/FormShell.d.ts +0 -2
- package/dist/esm/curd/form/FormShell.js +0 -9
- package/dist/esm/curd/form/GomtmForm.d.ts +0 -2
- package/dist/esm/curd/form/GomtmForm.js +0 -46
- package/dist/esm/curd/form/formStore.d.ts +0 -31
- package/dist/esm/curd/form/formStore.js +0 -188
- package/dist/esm/curd/form/useCurdUpdateForm.d.ts +0 -7
- package/dist/esm/curd/form/useCurdUpdateForm.js +0 -25
- package/dist/esm/curd/form-context.d.ts +0 -17
- package/dist/esm/curd/form-context.js +0 -89
- package/dist/esm/curd/list-item/ListViewLayoutRender.d.ts +0 -15
- package/dist/esm/curd/list-item/ListViewLayoutRender.js +0 -220
- package/dist/esm/curd/listview/CommonListView.d.ts +0 -9
- package/dist/esm/curd/listview/CommonListView.js +0 -139
- package/dist/esm/curd/listview/CommonListViewV2.d.ts +0 -5
- package/dist/esm/curd/listview/CommonListViewV2.js +0 -66
- package/dist/esm/curd/listview/ListViewComponentsSetup.d.ts +0 -3
- package/dist/esm/curd/listview/ListViewComponentsSetup.js +0 -23
- package/dist/esm/curd/listview/ListViewRender.d.ts +0 -2
- package/dist/esm/curd/listview/ListViewRender.js +0 -20
- package/dist/esm/curd/listview/MtListView.d.ts +0 -3
- package/dist/esm/curd/listview/MtListView.js +0 -50
- package/dist/esm/curd/listview/list-store.d.ts +0 -34
- package/dist/esm/curd/listview/list-store.js +0 -90
- package/dist/esm/curd/listview/listview-layouts/default/index.d.ts +0 -2
- package/dist/esm/curd/listview/listview-layouts/default/index.js +0 -9
- package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.d.ts +0 -2
- package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.js +0 -12
- package/dist/esm/curd/mutationButton.d.ts +0 -7
- package/dist/esm/curd/mutationButton.js +0 -14
- package/dist/esm/curd/remove/RemovePanel.d.ts +0 -13
- package/dist/esm/curd/remove/RemovePanel.js +0 -72
- package/dist/esm/form/ConnectEsUpdateForm.d.ts +0 -17
- package/dist/esm/form/ConnectEsUpdateForm.js +0 -78
- package/dist/esm/form/GoMtmForm.d.ts +0 -5
- package/dist/esm/form/GoMtmForm.js +0 -31
- package/dist/esm/form/SchemaFormView.d.ts +0 -14
- package/dist/esm/form/SchemaFormView.js +0 -44
- package/dist/esm/gomtmQuery.d.ts +0 -7
- package/dist/esm/gomtmQuery.js +0 -86
- package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.js +0 -0
- package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/conf/conf_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/conf/conf_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/conf/conf_pb.d.ts +0 -481
- package/dist/esm/gomtmpb/mtm/conf/conf_pb.js +0 -2359
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.d.ts +0 -52
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.js +0 -59
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.d.ts +0 -37
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.js +0 -55
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.d.ts +0 -154
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.js +0 -530
- package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.d.ts +0 -22
- package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.js +0 -26
- package/dist/esm/gomtmpb/mtm/sppb/ai_connect.d.ts +0 -19
- package/dist/esm/gomtmpb/mtm/sppb/ai_connect.js +0 -32
- package/dist/esm/gomtmpb/mtm/sppb/ai_pb.d.ts +0 -47
- package/dist/esm/gomtmpb/mtm/sppb/ai_pb.js +0 -149
- package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/sppb/av_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/sppb/av_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/sppb/av_pb.d.ts +0 -77
- package/dist/esm/gomtmpb/mtm/sppb/av_pb.js +0 -290
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +0 -173
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +0 -192
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +0 -110
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +0 -180
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +0 -722
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +0 -2291
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +0 -472
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +0 -2357
- package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.d.ts +0 -73
- package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.js +0 -82
- package/dist/esm/gomtmpb/mtm/sppb/curd_connect.d.ts +0 -50
- package/dist/esm/gomtmpb/mtm/sppb/curd_connect.js +0 -79
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.d.ts +0 -199
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.js +0 -773
- package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.d.ts +0 -133
- package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.js +0 -148
- package/dist/esm/gomtmpb/mtm/sppb/cx_connect.d.ts +0 -86
- package/dist/esm/gomtmpb/mtm/sppb/cx_connect.js +0 -141
- package/dist/esm/gomtmpb/mtm/sppb/cx_pb.d.ts +0 -335
- package/dist/esm/gomtmpb/mtm/sppb/cx_pb.js +0 -1618
- package/dist/esm/gomtmpb/mtm/sppb/events_pb.d.ts +0 -231
- package/dist/esm/gomtmpb/mtm/sppb/events_pb.js +0 -874
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +0 -63
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +0 -71
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +0 -44
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +0 -67
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +0 -108
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +0 -311
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +0 -12
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +0 -15
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +0 -13
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +0 -19
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +0 -23
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +0 -67
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.d.ts +0 -392
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.js +0 -433
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.d.ts +0 -241
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.js +0 -395
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +0 -1675
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +0 -6831
- package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.d.ts +0 -213
- package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.js +0 -236
- package/dist/esm/gomtmpb/mtm/sppb/sp_connect.d.ts +0 -134
- package/dist/esm/gomtmpb/mtm/sppb/sp_connect.js +0 -210
- package/dist/esm/gomtmpb/mtm/sppb/sp_pb.d.ts +0 -684
- package/dist/esm/gomtmpb/mtm/sppb/sp_pb.js +0 -2905
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +0 -5
- package/dist/esm/lib/auth/jwt.d.ts +0 -7
- package/dist/esm/lib/auth/jwt.js +0 -43
- package/dist/esm/lib/meta.d.ts +0 -10
- package/dist/esm/lib/meta.js +0 -76
- package/dist/esm/ly/LayoutBase.d.ts +0 -6
- package/dist/esm/ly/LayoutBase.js +0 -83
- package/dist/esm/ly/Lazy.d.ts +0 -2
- package/dist/esm/ly/Lazy.js +0 -12
- package/dist/esm/ly/UserAvatorMenus.d.ts +0 -2
- package/dist/esm/ly/UserAvatorMenus.js +0 -75
- package/dist/esm/ly/dash5/aside.d.ts +0 -2
- package/dist/esm/ly/dash5/aside.js +0 -40
- package/dist/esm/ly/dash5/components/PageCreate.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageCreate.js +0 -8
- package/dist/esm/ly/dash5/components/PageEdit.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageEdit.js +0 -8
- package/dist/esm/ly/dash5/components/PageList.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageList.js +0 -9
- package/dist/esm/ly/dash5/components/PageShow.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageShow.js +0 -8
- package/dist/esm/ly/dash5/header.d.ts +0 -2
- package/dist/esm/ly/dash5/header.js +0 -124
- package/dist/esm/ly/dash5/index.d.ts +0 -2
- package/dist/esm/ly/dash5/index.js +0 -25
- package/dist/esm/ly/debug-layout/index.d.ts +0 -2
- package/dist/esm/ly/debug-layout/index.js +0 -12
- package/dist/esm/ly/demo-layout/index.d.ts +0 -2
- package/dist/esm/ly/demo-layout/index.js +0 -9
- package/dist/esm/ly/front-layout/PageCmds.d.ts +0 -2
- package/dist/esm/ly/front-layout/PageCmds.js +0 -25
- package/dist/esm/ly/front-layout/PageSearchCmd.d.ts +0 -2
- package/dist/esm/ly/front-layout/PageSearchCmd.js +0 -70
- package/dist/esm/ly/front-layout/header.d.ts +0 -2
- package/dist/esm/ly/front-layout/header.js +0 -18
- package/dist/esm/ly/front-layout/headerv2.d.ts +0 -0
- package/dist/esm/ly/front-layout/headerv2.js +0 -0
- package/dist/esm/ly/front-layout/index.d.ts +0 -2
- package/dist/esm/ly/front-layout/index.js +0 -12
- package/dist/esm/ly/front-layout/main-nav.d.ts +0 -3
- package/dist/esm/ly/front-layout/main-nav.js +0 -116
- package/dist/esm/lzBizComponents.d.ts +0 -5
- package/dist/esm/lzBizComponents.js +0 -15
- package/dist/esm/main.d.ts +0 -2
- package/dist/esm/main.js +0 -34
- package/dist/esm/messageTypeRegistry.d.ts +0 -5
- package/dist/esm/messageTypeRegistry.js +0 -34
- package/dist/esm/mtmFetcher.d.ts +0 -30
- package/dist/esm/mtmFetcher.js +0 -211
- package/dist/esm/providers/AuthProvider.d.ts +0 -9
- package/dist/esm/providers/AuthProvider.js +0 -104
- package/dist/esm/providers/GomtmAppSS.d.ts +0 -2
- package/dist/esm/providers/GomtmAppSS.js +0 -71
- package/dist/esm/providers/LoggerProvider.d.ts +0 -10
- package/dist/esm/providers/LoggerProvider.js +0 -23
- package/dist/esm/providers/ReactQueryProvider.d.ts +0 -4
- package/dist/esm/providers/ReactQueryProvider.js +0 -67
- package/dist/esm/store/App_useTransition.d.ts +0 -2
- package/dist/esm/store/App_useTransition.js +0 -59
- package/dist/esm/store/GomtmAppSetting.d.ts +0 -2
- package/dist/esm/store/GomtmAppSetting.js +0 -18
- package/dist/esm/store/customStorage.d.ts +0 -2
- package/dist/esm/store/customStorage.js +0 -35
- package/dist/esm/store/mtapp-store.d.ts +0 -49
- package/dist/esm/store/mtapp-store.js +0 -157
- package/dist/esm/validations/CrawlerConfig.d.ts +0 -18
- package/dist/esm/validations/CrawlerConfig.js +0 -10
- package/dist/esm/validations/_common.d.ts +0 -57
- package/dist/esm/validations/_common.js +0 -30
- package/dist/esm/validations/auth.d.ts +0 -33
- package/dist/esm/validations/auth.js +0 -18
- package/dist/esm/validations/blog.d.ts +0 -17
- package/dist/esm/validations/blog.js +0 -10
- package/dist/esm/validations/crawlerSchema.d.ts +0 -17
- package/dist/esm/validations/crawlerSchema.js +0 -10
- package/dist/esm/validations/env.d.ts +0 -8
- package/dist/esm/validations/env.js +0 -9
- package/dist/esm/validations/post.d.ts +0 -34
- package/dist/esm/validations/post.js +0 -28
- package/dist/esm/validations/sp.d.ts +0 -18
- package/dist/esm/validations/sp.js +0 -12
- package/dist/esm/validations/spContentModi.d.ts +0 -62
- package/dist/esm/validations/spContentModi.js +0 -30
- package/dist/esm/validations/spHost.d.ts +0 -8
- package/dist/esm/validations/spHost.js +0 -7
- package/dist/esm/validations/spPage.d.ts +0 -14
- package/dist/esm/validations/spPage.js +0 -9
- package/dist/esm/validations/spRoute.d.ts +0 -57
- package/dist/esm/validations/spRoute.js +0 -28
- package/dist/esm/validations/user.d.ts +0 -64
- package/dist/esm/validations/user.js +0 -33
- package/dist/tsconfig.type.tsbuildinfo +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { ConnectError, Transport } from "@connectrpc/connect";
|
|
3
|
-
import type { UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
4
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
5
|
-
import type { CreateQueryOptions, CreateSuspenseQueryOptions } from "./create-use-query-options";
|
|
6
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
7
|
-
import type { DisableQuery } from "./utils";
|
|
8
|
-
import { PlainMessage } from "..";
|
|
9
|
-
export declare function useQuery<I extends Message<I>, O extends Message<O>, SelectOutData = O>(methodSig: MethodUnaryDescriptor<I, O>, input?: DisableQuery | PartialMessage<I>, { transport, callOptions, ...queryOptions }?: Omit<CreateQueryOptions<I, O, SelectOutData>, "transport"> & {
|
|
10
|
-
transport?: Transport;
|
|
11
|
-
}): UseQueryResult<SelectOutData | PlainMessage<MtmError>, ConnectError>;
|
|
12
|
-
export declare function useSuspenseQuery<I extends Message<I>, O extends Message<O>, SelectOutData = O & PlainMessage<MtmError>>(methodSig: MethodUnaryDescriptor<I, O>, input?: PartialMessage<I>, { transport, callOptions, ...queryOptions }?: Omit<CreateSuspenseQueryOptions<I, O, SelectOutData>, "transport"> & {
|
|
13
|
-
transport?: Transport;
|
|
14
|
-
}): UseSuspenseQueryResult<SelectOutData, ConnectError>;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import {
|
|
33
|
-
useQuery as tsUseQuery,
|
|
34
|
-
useSuspenseQuery as tsUseSuspenseQuery
|
|
35
|
-
} from "@tanstack/react-query";
|
|
36
|
-
import { createUseQueryOptions } from "./create-use-query-options";
|
|
37
|
-
import { useTransport } from "./use-transport";
|
|
38
|
-
function useQuery(methodSig, input, _a = {}) {
|
|
39
|
-
var _b = _a, {
|
|
40
|
-
transport,
|
|
41
|
-
callOptions
|
|
42
|
-
} = _b, queryOptions = __objRest(_b, [
|
|
43
|
-
"transport",
|
|
44
|
-
"callOptions"
|
|
45
|
-
]);
|
|
46
|
-
var _a2;
|
|
47
|
-
const transportFromCtx = useTransport();
|
|
48
|
-
const baseOptions = createUseQueryOptions(methodSig, input, {
|
|
49
|
-
transport: transport != null ? transport : transportFromCtx,
|
|
50
|
-
callOptions
|
|
51
|
-
});
|
|
52
|
-
const enabled = baseOptions.enabled && ((_a2 = queryOptions.enabled) != null ? _a2 : true);
|
|
53
|
-
return tsUseQuery(__spreadProps(__spreadValues(__spreadValues({}, queryOptions), baseOptions), {
|
|
54
|
-
enabled
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
function useSuspenseQuery(methodSig, input, _c = {}) {
|
|
58
|
-
var _d = _c, {
|
|
59
|
-
transport,
|
|
60
|
-
callOptions
|
|
61
|
-
} = _d, queryOptions = __objRest(_d, [
|
|
62
|
-
"transport",
|
|
63
|
-
"callOptions"
|
|
64
|
-
]);
|
|
65
|
-
const transportFromCtx = useTransport();
|
|
66
|
-
const baseOptions = createUseQueryOptions(methodSig, input, {
|
|
67
|
-
transport: transport != null ? transport : transportFromCtx,
|
|
68
|
-
callOptions
|
|
69
|
-
});
|
|
70
|
-
return tsUseSuspenseQuery(__spreadValues(__spreadValues({}, queryOptions), baseOptions));
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
useQuery,
|
|
74
|
-
useSuspenseQuery
|
|
75
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Transport } from "@connectrpc/connect";
|
|
2
|
-
import type { FC, PropsWithChildren } from "react";
|
|
3
|
-
export declare const fallbackTransport: Transport;
|
|
4
|
-
export declare const useTransport: () => Transport;
|
|
5
|
-
export declare const TransportProvider: FC<PropsWithChildren<{
|
|
6
|
-
transport: Transport;
|
|
7
|
-
}>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { ConnectError } from "@connectrpc/connect";
|
|
4
|
-
import { createContext, useContext } from "react";
|
|
5
|
-
const fallbackTransportError = new ConnectError(
|
|
6
|
-
"To use Connect, you must provide a `Transport`: a simple object that handles `unary` and `stream` requests. `Transport` objects can easily be created by using `@connectrpc/connect-web`'s exports `createConnectTransport` and `createGrpcWebTransport`. see: https://connectrpc.com/docs/web/getting-started for more info."
|
|
7
|
-
);
|
|
8
|
-
const fallbackTransport = {
|
|
9
|
-
unary: () => {
|
|
10
|
-
throw fallbackTransportError;
|
|
11
|
-
},
|
|
12
|
-
stream: () => {
|
|
13
|
-
throw fallbackTransportError;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const transportContext = createContext(fallbackTransport);
|
|
17
|
-
const useTransport = () => useContext(transportContext);
|
|
18
|
-
const TransportProvider = ({ children, transport }) => /* @__PURE__ */ jsx(transportContext.Provider, { value: transport, children });
|
|
19
|
-
export {
|
|
20
|
-
TransportProvider,
|
|
21
|
-
fallbackTransport,
|
|
22
|
-
useTransport
|
|
23
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
3
|
-
export declare const disableQuery: unique symbol;
|
|
4
|
-
export type DisableQuery = typeof disableQuery;
|
|
5
|
-
export declare function assert(condition: boolean, message: string): asserts condition;
|
|
6
|
-
export declare const isAbortController: (input: unknown) => input is AbortController;
|
|
7
|
-
export type ConnectUpdater<O extends Message<O>> = PartialMessage<O> | ((prev?: O) => PartialMessage<O> | undefined);
|
|
8
|
-
export declare const createProtobufSafeUpdater: <I extends Message<I>, O extends Message<O>>(methodSig: Pick<MethodUnaryDescriptor<I, O>, "O">, updater: ConnectUpdater<O>) => (prev?: O) => O;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const disableQuery = Symbol("disableQuery");
|
|
2
|
-
function assert(condition, message) {
|
|
3
|
-
if (!condition) {
|
|
4
|
-
throw new Error(`Invalid assertion: ${message}`);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
const isAbortController = (input) => {
|
|
8
|
-
if (typeof input === "object" && input !== null && "signal" in input && typeof input.signal === "object" && input.signal !== null && "aborted" in input.signal && typeof input.signal.aborted === "boolean" && "abort" in input && typeof input.abort === "function") {
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
return false;
|
|
12
|
-
};
|
|
13
|
-
const createProtobufSafeUpdater = (methodSig, updater) => (prev) => {
|
|
14
|
-
if (typeof updater === "function") {
|
|
15
|
-
return new methodSig.O(updater(prev));
|
|
16
|
-
}
|
|
17
|
-
return new methodSig.O(updater);
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
assert,
|
|
21
|
-
createProtobufSafeUpdater,
|
|
22
|
-
disableQuery,
|
|
23
|
-
isAbortController
|
|
24
|
-
};
|
package/dist/esm/consts.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const COOKIE_MTM_SITE_ID = "mtm-site-id";
|
|
2
|
-
export declare const MTM_SITE_HOSTNAME = "mtm-site-hostname";
|
|
3
|
-
export declare const CONST_COOKIE_MtM_TOKEN_NAME = "mtmToken";
|
|
4
|
-
export declare const fetchMaxRetry = 3;
|
|
5
|
-
export declare const CONST_HeaderMtmHost = "Mtm-Host";
|
|
6
|
-
export declare const HeaderMtmApi = "Mtm-Api";
|
|
7
|
-
export declare const Cookie_Site_Host = "site-host";
|
|
8
|
-
export declare const MTM_SERVER_COOKIE_ACTIVATE_URL = "mtm:serverUrl";
|
|
9
|
-
export declare const MTM_SERVER_COOKIE_ACTIVATE_SELFBACKEND_URL = "mtm:selfbackendUrl";
|
|
10
|
-
export declare const DEFAULT_revalidate_SECONDS = 3;
|
|
11
|
-
export declare const LOGIN_CALLBACK_URL_KEY = "back";
|
|
12
|
-
export declare const MTM_API_PREFIX = "/api";
|
|
13
|
-
export declare const IsDebugCookie = "is_debug";
|
|
14
|
-
export declare const ExtKey_Hostname = "host";
|
|
15
|
-
export declare const ItemAction_list_new_item = "list_new_item";
|
|
16
|
-
export declare const Listview_list_filter = "Listview_list_filter";
|
|
17
|
-
export declare const ActionEdit = "edit";
|
|
18
|
-
export declare const ActionDelete = "delete";
|
|
19
|
-
export declare const ActionCreate = "create";
|
|
20
|
-
export declare const ActionFetchNextPage = "fetchNextPage";
|
|
21
|
-
export declare const ActionRefetch = "refetch";
|
|
22
|
-
export declare const ListView_DefaultPageSize = 12;
|
|
23
|
-
export declare const ImageNoExist = "/images/404.jpg";
|
|
24
|
-
export declare const ADMIN_ROLE = "admin";
|
|
25
|
-
export declare const MEMBER_ROLE = "member";
|
|
26
|
-
export declare const HOTKEY_Debug = "alt+j";
|
|
27
|
-
export declare const HOTKEY_Switchlayout = "alt+l";
|
|
28
|
-
export declare const HOTKEY_Listview_Switchlayout = "alt+m";
|
|
29
|
-
export declare const HOTKEY_ListViewCMDK = "alt+c";
|
|
30
|
-
export declare const CONST_cookieListViewLayout = "listViewLayout";
|
|
31
|
-
export declare const CONST_debounce_INPUT = 300;
|
|
32
|
-
export declare const CookieConfigState = "_config";
|
|
33
|
-
export declare const CookieLayout = "layout";
|
|
34
|
-
export declare const cookieBackendUrl = "backendUrl";
|
package/dist/esm/consts.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const COOKIE_MTM_SITE_ID = "mtm-site-id";
|
|
2
|
-
const MTM_SITE_HOSTNAME = "mtm-site-hostname";
|
|
3
|
-
const CONST_COOKIE_MtM_TOKEN_NAME = "mtmToken";
|
|
4
|
-
const fetchMaxRetry = 3;
|
|
5
|
-
const CONST_HeaderMtmHost = "Mtm-Host";
|
|
6
|
-
const HeaderMtmApi = "Mtm-Api";
|
|
7
|
-
const Cookie_Site_Host = "site-host";
|
|
8
|
-
const MTM_SERVER_COOKIE_ACTIVATE_URL = "mtm:serverUrl";
|
|
9
|
-
const MTM_SERVER_COOKIE_ACTIVATE_SELFBACKEND_URL = "mtm:selfbackendUrl";
|
|
10
|
-
const DEFAULT_revalidate_SECONDS = 3;
|
|
11
|
-
const LOGIN_CALLBACK_URL_KEY = "back";
|
|
12
|
-
const MTM_API_PREFIX = "/api";
|
|
13
|
-
const IsDebugCookie = "is_debug";
|
|
14
|
-
const ExtKey_Hostname = "host";
|
|
15
|
-
const ItemAction_list_new_item = "list_new_item";
|
|
16
|
-
const Listview_list_filter = "Listview_list_filter";
|
|
17
|
-
const ActionEdit = "edit";
|
|
18
|
-
const ActionDelete = "delete";
|
|
19
|
-
const ActionCreate = "create";
|
|
20
|
-
const ActionFetchNextPage = "fetchNextPage";
|
|
21
|
-
const ActionRefetch = "refetch";
|
|
22
|
-
const ListView_DefaultPageSize = 12;
|
|
23
|
-
const ImageNoExist = "/images/404.jpg";
|
|
24
|
-
const ADMIN_ROLE = "admin";
|
|
25
|
-
const MEMBER_ROLE = "member";
|
|
26
|
-
const HOTKEY_Debug = "alt+j";
|
|
27
|
-
const HOTKEY_Switchlayout = "alt+l";
|
|
28
|
-
const HOTKEY_Listview_Switchlayout = "alt+m";
|
|
29
|
-
const HOTKEY_ListViewCMDK = "alt+c";
|
|
30
|
-
const CONST_cookieListViewLayout = "listViewLayout";
|
|
31
|
-
const CONST_debounce_INPUT = 300;
|
|
32
|
-
const CookieConfigState = "_config";
|
|
33
|
-
const CookieLayout = "layout";
|
|
34
|
-
const cookieBackendUrl = "backendUrl";
|
|
35
|
-
export {
|
|
36
|
-
ADMIN_ROLE,
|
|
37
|
-
ActionCreate,
|
|
38
|
-
ActionDelete,
|
|
39
|
-
ActionEdit,
|
|
40
|
-
ActionFetchNextPage,
|
|
41
|
-
ActionRefetch,
|
|
42
|
-
CONST_COOKIE_MtM_TOKEN_NAME,
|
|
43
|
-
CONST_HeaderMtmHost,
|
|
44
|
-
CONST_cookieListViewLayout,
|
|
45
|
-
CONST_debounce_INPUT,
|
|
46
|
-
COOKIE_MTM_SITE_ID,
|
|
47
|
-
CookieConfigState,
|
|
48
|
-
CookieLayout,
|
|
49
|
-
Cookie_Site_Host,
|
|
50
|
-
DEFAULT_revalidate_SECONDS,
|
|
51
|
-
ExtKey_Hostname,
|
|
52
|
-
HOTKEY_Debug,
|
|
53
|
-
HOTKEY_ListViewCMDK,
|
|
54
|
-
HOTKEY_Listview_Switchlayout,
|
|
55
|
-
HOTKEY_Switchlayout,
|
|
56
|
-
HeaderMtmApi,
|
|
57
|
-
ImageNoExist,
|
|
58
|
-
IsDebugCookie,
|
|
59
|
-
ItemAction_list_new_item,
|
|
60
|
-
LOGIN_CALLBACK_URL_KEY,
|
|
61
|
-
ListView_DefaultPageSize,
|
|
62
|
-
Listview_list_filter,
|
|
63
|
-
MEMBER_ROLE,
|
|
64
|
-
MTM_API_PREFIX,
|
|
65
|
-
MTM_SERVER_COOKIE_ACTIVATE_SELFBACKEND_URL,
|
|
66
|
-
MTM_SERVER_COOKIE_ACTIVATE_URL,
|
|
67
|
-
MTM_SITE_HOSTNAME,
|
|
68
|
-
cookieBackendUrl,
|
|
69
|
-
fetchMaxRetry
|
|
70
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
3
|
-
import { DefaultValues } from "react-hook-form";
|
|
4
|
-
import { MethodUnaryDescriptor } from "../connectquery";
|
|
5
|
-
export declare function useCreateForm<I extends Message<I>, O extends Message<O>>(props: {
|
|
6
|
-
defaultValues: DefaultValues<PartialMessage<I>>;
|
|
7
|
-
mutationSig: MethodUnaryDescriptor<I, any>;
|
|
8
|
-
}): {
|
|
9
|
-
form: import("react-hook-form").UseFormReturn<PartialMessage<I>, any, undefined>;
|
|
10
|
-
handleSubmit: (values: any) => void;
|
|
11
|
-
handleFormSubmit: () => (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
12
|
-
handleCancel: () => void;
|
|
13
|
-
};
|
|
14
|
-
export declare function CreateFormV2<I extends Message<I>, O extends Message<O>>(props: {
|
|
15
|
-
createForm: ReturnType<typeof useCreateForm>;
|
|
16
|
-
} & PropsWithChildren): import("react").JSX.Element;
|
|
@@ -1,81 +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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
-
import { EditFormToolbar } from "mtxuilib/form/EditFormToolbar";
|
|
35
|
-
import { useMtRouter } from "mtxuilib/hooks/use-router";
|
|
36
|
-
import { Dialog, DialogContent, DialogFooter } from "mtxuilib/ui/dialog";
|
|
37
|
-
import { useCallback } from "react";
|
|
38
|
-
import { FormProvider, useForm } from "react-hook-form";
|
|
39
|
-
import { useMutation } from "../connectquery";
|
|
40
|
-
function useCreateForm(props) {
|
|
41
|
-
const { defaultValues, mutationSig } = props;
|
|
42
|
-
const form = useForm({
|
|
43
|
-
defaultValues
|
|
44
|
-
});
|
|
45
|
-
const mutation = useMutation(mutationSig);
|
|
46
|
-
const handleValuesSubmit = useCallback((values) => {
|
|
47
|
-
mutation.mutateAsync(values);
|
|
48
|
-
}, [mutation]);
|
|
49
|
-
const handleFormSubmit = useCallback(() => {
|
|
50
|
-
return form.handleSubmit(handleValuesSubmit);
|
|
51
|
-
}, [form, handleValuesSubmit]);
|
|
52
|
-
return {
|
|
53
|
-
form,
|
|
54
|
-
handleSubmit: handleValuesSubmit,
|
|
55
|
-
handleFormSubmit,
|
|
56
|
-
handleCancel: () => {
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function CreateFormV2(props) {
|
|
61
|
-
const _a = props, { children, createForm } = _a, etc = __objRest(_a, ["children", "createForm"]);
|
|
62
|
-
const router = useMtRouter();
|
|
63
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Dialog, { open: true, onOpenChange: () => {
|
|
64
|
-
router.back();
|
|
65
|
-
}, children: /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, createForm.form), { children: /* @__PURE__ */ jsxs("form", { onSubmit: createForm.handleFormSubmit, children: [
|
|
66
|
-
children,
|
|
67
|
-
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(
|
|
68
|
-
EditFormToolbar,
|
|
69
|
-
{
|
|
70
|
-
onSubmit: (values) => {
|
|
71
|
-
createForm.handleSubmit(values);
|
|
72
|
-
},
|
|
73
|
-
onCancel: () => router.back()
|
|
74
|
-
}
|
|
75
|
-
) })
|
|
76
|
-
] }) })) }) }) });
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
CreateFormV2,
|
|
80
|
-
useCreateForm
|
|
81
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Suspense } from "react";
|
|
4
|
-
import { useSuspenseQuery } from "../connectquery";
|
|
5
|
-
import { curdViewGet } from "../gomtmpb/mtm/sppb/curd-CurdService_connectquery";
|
|
6
|
-
import { CommonListView } from "./listview/CommonListView";
|
|
7
|
-
import { ListViewStoreProvider } from "./listview/list-store";
|
|
8
|
-
const CurdViewView = (props) => {
|
|
9
|
-
const { name } = props;
|
|
10
|
-
const query = useSuspenseQuery(curdViewGet, { name });
|
|
11
|
-
if (!query.data) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
switch (query.data.item.case) {
|
|
15
|
-
case "error":
|
|
16
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
17
|
-
"error: ",
|
|
18
|
-
query.data.item.value.message
|
|
19
|
-
] });
|
|
20
|
-
default:
|
|
21
|
-
if (!query.data.item.value) {
|
|
22
|
-
return /* @__PURE__ */ jsx("div", { children: "missing curd data222" });
|
|
23
|
-
}
|
|
24
|
-
if (!query.data.item.value.content) {
|
|
25
|
-
return /* @__PURE__ */ jsx("div", { children: "missing curdview content" });
|
|
26
|
-
}
|
|
27
|
-
if (!query.data.item.value.content.svcName) {
|
|
28
|
-
return /* @__PURE__ */ jsx("div", { children: "missing curdview svcName" });
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ jsx(ListViewStoreProvider, { curdView: query.data.item.value, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading CommonListView" }), children: /* @__PURE__ */ jsx(CommonListView, { curdViewContent: query.data.item.value.content }) }) });
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
CurdViewView
|
|
35
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { Suspense } from "react";
|
|
23
|
-
import { PrefetchConnectInfiniteQuery, PrefetchConnectQuery } from "../components/SSR";
|
|
24
|
-
import { curdViewGet } from "../gomtmpb/mtm/sppb/curd-CurdService_connectquery";
|
|
25
|
-
import { CurdService } from "../gomtmpb/mtm/sppb/curd_connect";
|
|
26
|
-
import { CurdViewGetReq } from "../gomtmpb/mtm/sppb/curd_pb";
|
|
27
|
-
import { createMtmServiceClient } from "../mtmFetcher";
|
|
28
|
-
import { CurdViewView } from "./CurdView";
|
|
29
|
-
const CurdViewSS = (props) => __async(void 0, null, function* () {
|
|
30
|
-
var _a, _b, _c, _d;
|
|
31
|
-
const { name } = props;
|
|
32
|
-
const client = createMtmServiceClient(CurdService);
|
|
33
|
-
const curdViewRes = yield client.curdViewGet(new CurdViewGetReq({
|
|
34
|
-
name
|
|
35
|
-
}));
|
|
36
|
-
if (curdViewRes.item.case == "error") {
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
38
|
-
"error ",
|
|
39
|
-
curdViewRes.item.value.message
|
|
40
|
-
] });
|
|
41
|
-
}
|
|
42
|
-
const svc = ((_b = (_a = curdViewRes.item.value) == null ? void 0 : _a.content) == null ? void 0 : _b.svcName) || "";
|
|
43
|
-
if (!svc) {
|
|
44
|
-
return /* @__PURE__ */ jsx("div", { children: "missing svc name" });
|
|
45
|
-
}
|
|
46
|
-
const methodList = ((_d = (_c = curdViewRes.item.value) == null ? void 0 : _c.content) == null ? void 0 : _d.methodList) || "";
|
|
47
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
48
|
-
PrefetchConnectQuery,
|
|
49
|
-
{
|
|
50
|
-
svc: curdViewGet.service.typeName,
|
|
51
|
-
method: curdViewGet.name,
|
|
52
|
-
input: {
|
|
53
|
-
name
|
|
54
|
-
},
|
|
55
|
-
children: /* @__PURE__ */ jsx(
|
|
56
|
-
PrefetchConnectInfiniteQuery,
|
|
57
|
-
{
|
|
58
|
-
svc,
|
|
59
|
-
method: methodList,
|
|
60
|
-
input: {},
|
|
61
|
-
children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading CurdViewView" }), children: /* @__PURE__ */ jsx(CurdViewView, { name }) })
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
) });
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
CurdViewSS
|
|
69
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
2
|
-
export declare const RegisterEditorComponent: (name: string, Component: ComponentType<any>) => void;
|
|
3
|
-
export declare const RenderViewByName: (props: {
|
|
4
|
-
name: string;
|
|
5
|
-
warpper?: "fullScreen" | "none" | "form";
|
|
6
|
-
}) => import("react").JSX.Element;
|
|
@@ -1,69 +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 { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { EditFormToolbar } from "mtxuilib/form/EditFormToolbar";
|
|
23
|
-
import { Suspense, lazy, useMemo, useState } from "react";
|
|
24
|
-
import { FormProvider } from "react-hook-form";
|
|
25
|
-
import { useGomtmForm2 } from "./form/formStore";
|
|
26
|
-
const allEditorComponent = {};
|
|
27
|
-
const RegisterEditorComponent = (name, Component) => {
|
|
28
|
-
allEditorComponent[name] = Component;
|
|
29
|
-
};
|
|
30
|
-
const RenderViewByName = (props) => {
|
|
31
|
-
const { name, warpper } = props;
|
|
32
|
-
const [_warpper, setWrapper] = useState(warpper);
|
|
33
|
-
const form = useGomtmForm2();
|
|
34
|
-
const Comp = useMemo(() => {
|
|
35
|
-
const c = allEditorComponent[name || ""];
|
|
36
|
-
return c || null;
|
|
37
|
-
}, [name]);
|
|
38
|
-
if (!Comp) {
|
|
39
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
40
|
-
"missing dyn component \u201C",
|
|
41
|
-
name,
|
|
42
|
-
"\u201D"
|
|
43
|
-
] });
|
|
44
|
-
}
|
|
45
|
-
if (!form.form) {
|
|
46
|
-
return /* @__PURE__ */ jsx("div", { children: "missing formObj2" });
|
|
47
|
-
}
|
|
48
|
-
switch (_warpper) {
|
|
49
|
-
case "none":
|
|
50
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading" }), children: /* @__PURE__ */ jsx(Comp, {}) });
|
|
51
|
-
default:
|
|
52
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading" }), children: /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, form.form), { children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleFormSubmit, children: [
|
|
53
|
-
/* @__PURE__ */ jsx("div", { className: " sticky top-0 z-30 p-1", children: /* @__PURE__ */ jsx(
|
|
54
|
-
EditFormToolbar,
|
|
55
|
-
{
|
|
56
|
-
onSubmit: form.handleValuesSubmit,
|
|
57
|
-
onCancel: form.handleCancel
|
|
58
|
-
}
|
|
59
|
-
) }),
|
|
60
|
-
/* @__PURE__ */ jsx(Comp, {})
|
|
61
|
-
] }) })) });
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const LzCurdViewEditor = lazy(() => import("../components/curdView/curdViewEditor"));
|
|
65
|
-
RegisterEditorComponent("CurdViewEditor", LzCurdViewEditor);
|
|
66
|
-
export {
|
|
67
|
-
RegisterEditorComponent,
|
|
68
|
-
RenderViewByName
|
|
69
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { debounce } from "lodash";
|
|
4
|
-
import { CommandDialog, CommandEmpty, CommandInput, CommandList, CommandSeparator } from "mtxuilib/ui/command";
|
|
5
|
-
import { useState } from "react";
|
|
6
|
-
import { useHotkeys } from "react-hotkeys-hook";
|
|
7
|
-
import { HOTKEY_ListViewCMDK } from "../consts";
|
|
8
|
-
function ListPageCommands() {
|
|
9
|
-
const [open, setOpen] = useState(false);
|
|
10
|
-
useHotkeys(HOTKEY_ListViewCMDK, () => {
|
|
11
|
-
setOpen((pre) => !pre);
|
|
12
|
-
}, [setOpen]);
|
|
13
|
-
const handleValueChange = (search) => {
|
|
14
|
-
};
|
|
15
|
-
return /* @__PURE__ */ jsxs(CommandDialog, { open, onOpenChange: setOpen, children: [
|
|
16
|
-
/* @__PURE__ */ jsx(CommandInput, { placeholder: "Type a command or search...", onValueChange: debounce(handleValueChange, 500) }),
|
|
17
|
-
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
18
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
|
|
19
|
-
/* @__PURE__ */ jsx(CommandSeparator, {})
|
|
20
|
-
] })
|
|
21
|
-
] });
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
ListPageCommands
|
|
25
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useMtRouter } from "mtxuilib/hooks/use-router";
|
|
4
|
-
import { DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
5
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
6
|
-
import { MtPopupPanel } from "mtxuilib/ui/ui-mt/MtPopupPanel";
|
|
7
|
-
import { RenderViewByName } from "../DynViews";
|
|
8
|
-
import { useListview } from "../listview/list-store";
|
|
9
|
-
function CurdCreatePanel(props) {
|
|
10
|
-
const { fullScreen } = props;
|
|
11
|
-
const setOpenCreate = useListview((x) => x.setOpenCreate);
|
|
12
|
-
const openCreate = useListview((x) => x.openCreate);
|
|
13
|
-
const viewCreate = useListview((x) => x.viewCreate);
|
|
14
|
-
const router = useMtRouter();
|
|
15
|
-
if (!openCreate) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
if (!viewCreate) {
|
|
19
|
-
return /* @__PURE__ */ jsx("div", { children: "missing viewCreate value" });
|
|
20
|
-
}
|
|
21
|
-
if (viewCreate.startsWith("/")) {
|
|
22
|
-
router.push(viewCreate);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
MtPopupPanel,
|
|
27
|
-
{
|
|
28
|
-
open: openCreate,
|
|
29
|
-
onOpenChange: setOpenCreate,
|
|
30
|
-
fullScreen,
|
|
31
|
-
children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
32
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: " create " }),
|
|
33
|
-
/* @__PURE__ */ jsx(RenderViewByName, { name: viewCreate })
|
|
34
|
-
] })
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
const CurdCreatePanelTriggerButton = () => {
|
|
39
|
-
const setOpenCreate = useListview((x) => x.setOpenCreate);
|
|
40
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
41
|
-
setOpenCreate(true);
|
|
42
|
-
}, children: "Create" }) });
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
CurdCreatePanelTriggerButton,
|
|
46
|
-
CurdCreatePanel as default
|
|
47
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from "react-hook-form";
|
|
2
|
-
export declare function useCurdCreateForm<TFieldValues extends FieldValues = FieldValues>(): {
|
|
3
|
-
form: import("react-hook-form").UseFormReturn<TFieldValues, any, undefined>;
|
|
4
|
-
handleSubmit: (values: any) => void;
|
|
5
|
-
detailData: any;
|
|
6
|
-
setOpenEdit: (openEdit: boolean) => void;
|
|
7
|
-
};
|