gomtm 0.0.393 → 0.0.394
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,50 +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 { jsx } from "react/jsx-runtime";
|
|
33
|
-
import { PrefetchConnectInfiniteQuery } from "../../components/SSR";
|
|
34
|
-
import { ListViewRender } from "./ListViewRender";
|
|
35
|
-
import { ListViewStoreProvider } from "./list-store";
|
|
36
|
-
function MtListView(props) {
|
|
37
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
38
|
-
return /* @__PURE__ */ jsx(ListViewStoreProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
|
|
39
|
-
PrefetchConnectInfiniteQuery,
|
|
40
|
-
{
|
|
41
|
-
svc: etc.svc,
|
|
42
|
-
method: etc.methodList,
|
|
43
|
-
input: etc.paramsList,
|
|
44
|
-
children: /* @__PURE__ */ jsx(ListViewRender, { children })
|
|
45
|
-
}
|
|
46
|
-
) }));
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
MtListView as default
|
|
50
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
-
import { ComponentProps, PropsWithChildren } from 'react';
|
|
3
|
-
import { CurdView } from '../../gomtmpb/mtm/sppb/curd_pb';
|
|
4
|
-
interface ListViewStateProps {
|
|
5
|
-
backendUrl?: string;
|
|
6
|
-
curdView: PlainMessage<CurdView>;
|
|
7
|
-
paramsGet?: any;
|
|
8
|
-
paramsList?: any;
|
|
9
|
-
slugPath?: string;
|
|
10
|
-
activateItem?: any;
|
|
11
|
-
detailData?: any;
|
|
12
|
-
layout?: string;
|
|
13
|
-
data?: any;
|
|
14
|
-
error?: any;
|
|
15
|
-
openCurdViewEditor?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface ListViewState extends ListViewStateProps {
|
|
18
|
-
openRemove: boolean;
|
|
19
|
-
setOpenRemove: (openRemove: boolean) => void;
|
|
20
|
-
openCreate: boolean;
|
|
21
|
-
setOpenCreate: (openCreate: boolean) => void;
|
|
22
|
-
openEdit: boolean;
|
|
23
|
-
setOpenEdit: (openEdit: boolean) => void;
|
|
24
|
-
setLayout: (layout: string) => void;
|
|
25
|
-
setActivateItem: (activateItem: any) => void;
|
|
26
|
-
nextPage: () => void;
|
|
27
|
-
setDetailData: (detailData: any) => void;
|
|
28
|
-
setOpenCurdViewEditor: (openCurdViewEditor: boolean) => void;
|
|
29
|
-
}
|
|
30
|
-
export declare const listViewContext: import("react").Context<import("zustand").StoreApi<ListViewState> | null>;
|
|
31
|
-
export declare const ListViewStoreProvider: (props: PropsWithChildren<ListViewStateProps>) => import("react").JSX.Element;
|
|
32
|
-
export declare const ListView: (props: Omit<ComponentProps<typeof ListViewStoreProvider>, 'backendUrl'> & PropsWithChildren) => import("react").JSX.Element;
|
|
33
|
-
export declare function useListview<T>(selector: (state: ListViewState) => T): T;
|
|
34
|
-
export {};
|
|
@@ -1,90 +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 } from "react/jsx-runtime";
|
|
34
|
-
import { setCookie } from "mtxlib/clientlib";
|
|
35
|
-
import { createContext, useContext, useRef } from "react";
|
|
36
|
-
import { useStore } from "zustand";
|
|
37
|
-
import { createStore } from "zustand/vanilla";
|
|
38
|
-
import { CONST_cookieListViewLayout } from "../../consts";
|
|
39
|
-
import { useGomtm } from "../../store/mtapp-store";
|
|
40
|
-
import { CurdView } from "../../gomtmpb/mtm/sppb/curd_pb";
|
|
41
|
-
const createListviewStore = (initProps) => {
|
|
42
|
-
return createStore()((set, get) => __spreadProps(__spreadValues({
|
|
43
|
-
curdView: new CurdView(),
|
|
44
|
-
backendUrl: "",
|
|
45
|
-
viewUpdate: "",
|
|
46
|
-
viewCreate: ""
|
|
47
|
-
}, initProps), {
|
|
48
|
-
openRemove: false,
|
|
49
|
-
setOpenRemove: (openRemove) => set({ openRemove }),
|
|
50
|
-
openCreate: false,
|
|
51
|
-
setOpenCreate: (openCreate) => set({ openCreate }),
|
|
52
|
-
openEdit: false,
|
|
53
|
-
setOpenEdit: (openEdit) => set({ openEdit }),
|
|
54
|
-
setActivateItem: (activateItem) => set({ activateItem }),
|
|
55
|
-
setLayout: (layout) => {
|
|
56
|
-
setCookie(CONST_cookieListViewLayout, layout);
|
|
57
|
-
return set((state) => ({ layout }));
|
|
58
|
-
},
|
|
59
|
-
nextPage: () => {
|
|
60
|
-
},
|
|
61
|
-
setDetailData: (detailData) => set({ detailData }),
|
|
62
|
-
setOpenCurdViewEditor: (openCurdViewEditor) => set({ openCurdViewEditor })
|
|
63
|
-
}));
|
|
64
|
-
};
|
|
65
|
-
const listViewContext = createContext(null);
|
|
66
|
-
const ListViewStoreProvider = (props) => {
|
|
67
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
68
|
-
const storeRef = useRef();
|
|
69
|
-
if (!storeRef.current) {
|
|
70
|
-
storeRef.current = createListviewStore(props);
|
|
71
|
-
}
|
|
72
|
-
return /* @__PURE__ */ jsx(listViewContext.Provider, { value: storeRef.current, children });
|
|
73
|
-
};
|
|
74
|
-
const ListView = (props) => {
|
|
75
|
-
const backendUrl = useGomtm((x) => x.backendUrl);
|
|
76
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
77
|
-
return /* @__PURE__ */ jsx(ListViewStoreProvider, __spreadProps(__spreadValues({}, props), { backendUrl: backendUrl || "", children }));
|
|
78
|
-
};
|
|
79
|
-
function useListview(selector) {
|
|
80
|
-
const store = useContext(listViewContext);
|
|
81
|
-
if (!store)
|
|
82
|
-
throw new Error("useListview Missing ListViewProvider in the tree");
|
|
83
|
-
return useStore(store, selector);
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
ListView,
|
|
87
|
-
ListViewStoreProvider,
|
|
88
|
-
listViewContext,
|
|
89
|
-
useListview
|
|
90
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
function ListViewLayoutDemo(props) {
|
|
4
|
-
const { children } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-blue-300 p-2", children: [
|
|
6
|
-
/* @__PURE__ */ jsx("h1", { children: "ListViewDemoLayout" }),
|
|
7
|
-
children
|
|
8
|
-
] });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
ListViewLayoutDemo as default
|
|
12
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
3
|
-
import { MethodUnaryDescriptor } from "../connectquery";
|
|
4
|
-
export declare function MutationButton<I extends Message<I>, O extends Message<O>>(props: {
|
|
5
|
-
methodSig: MethodUnaryDescriptor<I, O>;
|
|
6
|
-
params?: PartialMessage<I>;
|
|
7
|
-
} & PropsWithChildren): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
4
|
-
import { useMutation } from "../connectquery";
|
|
5
|
-
function MutationButton(props) {
|
|
6
|
-
const { children, methodSig, params } = props;
|
|
7
|
-
const mutation = useMutation(methodSig);
|
|
8
|
-
return /* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
9
|
-
mutation.mutateAsync(params || {});
|
|
10
|
-
}, children });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
MutationButton
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PlainMessage } from "@bufbuild/protobuf";
|
|
3
|
-
import { CurdViewContent } from "../../gomtmpb/mtm/sppb/curd_pb";
|
|
4
|
-
export declare function useCurdRemove(props: {
|
|
5
|
-
curdViewContent: PlainMessage<CurdViewContent>;
|
|
6
|
-
}): {
|
|
7
|
-
handlerSubmit: () => Promise<void>;
|
|
8
|
-
open: boolean;
|
|
9
|
-
setOpen: (openRemove: boolean) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const PanelRemove: (props: {
|
|
12
|
-
curdViewContent: PlainMessage<CurdViewContent>;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __async = (__this, __arguments, generator) => {
|
|
3
|
-
return new Promise((resolve, reject) => {
|
|
4
|
-
var fulfilled = (value) => {
|
|
5
|
-
try {
|
|
6
|
-
step(generator.next(value));
|
|
7
|
-
} catch (e) {
|
|
8
|
-
reject(e);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
var rejected = (value) => {
|
|
12
|
-
try {
|
|
13
|
-
step(generator.throw(value));
|
|
14
|
-
} catch (e) {
|
|
15
|
-
reject(e);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
19
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
-
import { useQueryClient } from "@tanstack/react-query";
|
|
24
|
-
import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
25
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
26
|
-
import { useCallback } from "react";
|
|
27
|
-
import { useGomtmMutation } from "../../gomtmQuery";
|
|
28
|
-
import { createQueryKey } from "../../mtmFetcher";
|
|
29
|
-
import { useListview } from "../listview/list-store";
|
|
30
|
-
function useCurdRemove(props) {
|
|
31
|
-
const { curdViewContent } = props;
|
|
32
|
-
const svc = useListview((x) => curdViewContent.svcName);
|
|
33
|
-
const openRemove = useListview((x) => x.openRemove);
|
|
34
|
-
const setOpenRemove = useListview((x) => x.setOpenRemove);
|
|
35
|
-
const methodDelete = useListview((x) => curdViewContent.methodDelete);
|
|
36
|
-
const methodList = useListview((x) => curdViewContent.methodList);
|
|
37
|
-
const mutation = useGomtmMutation(svc, methodDelete, {
|
|
38
|
-
onSuccess(data, variables, context) {
|
|
39
|
-
queryClient.invalidateQueries({
|
|
40
|
-
queryKey: createQueryKey(svc, methodList)
|
|
41
|
-
});
|
|
42
|
-
setOpenRemove(false);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const activateItem = useListview((x) => x.activateItem);
|
|
46
|
-
const queryClient = useQueryClient();
|
|
47
|
-
const handlerSubmit = useCallback(() => __async(this, null, function* () {
|
|
48
|
-
const aaa = mutation;
|
|
49
|
-
yield aaa.mutateAsync({
|
|
50
|
-
ids: [activateItem == null ? void 0 : activateItem.id.toString()]
|
|
51
|
-
});
|
|
52
|
-
}), [activateItem, mutation]);
|
|
53
|
-
return {
|
|
54
|
-
handlerSubmit,
|
|
55
|
-
open: openRemove,
|
|
56
|
-
setOpen: setOpenRemove
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const PanelRemove = (props) => {
|
|
60
|
-
const { curdViewContent } = props;
|
|
61
|
-
const curdRemove = useCurdRemove({ curdViewContent });
|
|
62
|
-
return /* @__PURE__ */ jsx(Dialog, { open: curdRemove.open, onOpenChange: curdRemove.setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
63
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "remove item" }),
|
|
64
|
-
/* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
65
|
-
curdRemove.handlerSubmit();
|
|
66
|
-
}, children: "ok" })
|
|
67
|
-
] }) });
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
PanelRemove,
|
|
71
|
-
useCurdRemove
|
|
72
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, PropsWithChildren } from "react";
|
|
2
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
3
|
-
import { ConnectQueryKey, MethodUnaryDescriptor } from "../connectquery";
|
|
4
|
-
export declare function ConnectEsUpdateForm<I extends Message<I>, O extends Message<O>>(props: {
|
|
5
|
-
defaultValues?: any;
|
|
6
|
-
mutationMethodSig: MethodUnaryDescriptor<any, any>;
|
|
7
|
-
onMutationSuccess?: ((data: any, variables: PartialMessage<any>, context: ConnectQueryKey<any>) => unknown) | undefined;
|
|
8
|
-
} & Omit<ComponentProps<typeof FormInnerWithSuspenseQuery>, "onSubmit">): import("react").JSX.Element;
|
|
9
|
-
declare function FormInner(props: {
|
|
10
|
-
defaultValues: any;
|
|
11
|
-
onSubmit: (values: any) => void;
|
|
12
|
-
} & PropsWithChildren): import("react").JSX.Element;
|
|
13
|
-
declare function FormInnerWithSuspenseQuery<I extends Message<I>, O extends Message<O>>(props: {
|
|
14
|
-
methodQuerySig: MethodUnaryDescriptor<I, O>;
|
|
15
|
-
params?: PartialMessage<I>;
|
|
16
|
-
} & Omit<ComponentProps<typeof FormInner>, "defaultValues">): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,78 +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 } from "react/jsx-runtime";
|
|
34
|
-
import { Suspense, useMemo } from "react";
|
|
35
|
-
import { FormProvider, useForm } from "react-hook-form";
|
|
36
|
-
import { useMutation, useSuspenseQuery } from "../connectquery";
|
|
37
|
-
function ConnectEsUpdateForm(props) {
|
|
38
|
-
const { defaultValues, methodQuerySig, params, children, mutationMethodSig, onMutationSuccess } = props;
|
|
39
|
-
const mutation = useMutation(mutationMethodSig, {
|
|
40
|
-
onSuccess: onMutationSuccess
|
|
41
|
-
});
|
|
42
|
-
const handleSubmit = (values) => {
|
|
43
|
-
console.log("ConnectEsUpdateForm handle submit ", values, mutationMethodSig);
|
|
44
|
-
mutation.mutateAsync({ input: values });
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ jsx(Fragment, { children: defaultValues ? /* @__PURE__ */ jsx(FormInner, { defaultValues, onSubmit: handleSubmit, children }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Fragment, { children: "ConnectEsUpdateForm loading" }), children: /* @__PURE__ */ jsx(
|
|
47
|
-
FormInnerWithSuspenseQuery,
|
|
48
|
-
{
|
|
49
|
-
methodQuerySig,
|
|
50
|
-
params,
|
|
51
|
-
onSubmit: handleSubmit,
|
|
52
|
-
children
|
|
53
|
-
}
|
|
54
|
-
) }) }) });
|
|
55
|
-
}
|
|
56
|
-
function FormInner(props) {
|
|
57
|
-
const { defaultValues, onSubmit, children } = props;
|
|
58
|
-
const form = useForm({
|
|
59
|
-
defaultValues
|
|
60
|
-
});
|
|
61
|
-
return /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsx("form", { onSubmit: form.handleSubmit(onSubmit), children }) }));
|
|
62
|
-
}
|
|
63
|
-
function FormInnerWithSuspenseQuery(props) {
|
|
64
|
-
const _a = props, { methodQuerySig, params, onSubmit } = _a, etc = __objRest(_a, ["methodQuerySig", "params", "onSubmit"]);
|
|
65
|
-
const query = useSuspenseQuery(methodQuerySig, params);
|
|
66
|
-
const defaultValue = useMemo(() => {
|
|
67
|
-
var _a2, _b;
|
|
68
|
-
const data2 = query.data;
|
|
69
|
-
if ((_a2 = data2.item) == null ? void 0 : _a2.value) {
|
|
70
|
-
return (_b = data2.item) == null ? void 0 : _b.value;
|
|
71
|
-
}
|
|
72
|
-
return query.data;
|
|
73
|
-
}, [query.data]);
|
|
74
|
-
return /* @__PURE__ */ jsx(FormInner, __spreadValues({ defaultValues: defaultValue, onSubmit }, etc));
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
ConnectEsUpdateForm
|
|
78
|
-
};
|
|
@@ -1,31 +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 } from "react/jsx-runtime";
|
|
22
|
-
import { Form } from "mtxuilib/ui/form";
|
|
23
|
-
import { useForm } from "react-hook-form";
|
|
24
|
-
const GomtmForm = (props) => {
|
|
25
|
-
const { children } = props;
|
|
26
|
-
const form = useForm();
|
|
27
|
-
return /* @__PURE__ */ jsx(Form, __spreadProps(__spreadValues({}, form), { children }));
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
GomtmForm
|
|
31
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PlainMessage } from "@bufbuild/protobuf";
|
|
3
|
-
import { MaybePromise } from "mtxlib";
|
|
4
|
-
import { FormSchema } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
5
|
-
type SchemaFormViewVaranit = "auto" | "modal" | "card";
|
|
6
|
-
export declare const SchemaFormView: (props: {
|
|
7
|
-
formSchema?: PlainMessage<FormSchema>;
|
|
8
|
-
defaultValues?: any;
|
|
9
|
-
onSubmit: (values: any) => MaybePromise<void>;
|
|
10
|
-
onCancel?: () => void;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
variants?: SchemaFormViewVaranit;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,44 +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 { useState } from "react";
|
|
23
|
-
import { FormProvider, useForm } from "react-hook-form";
|
|
24
|
-
import { EditFormToolbar } from "mtxuilib/form/EditFormToolbar";
|
|
25
|
-
import { Card, CardContent } from "mtxuilib/ui/card";
|
|
26
|
-
import { DialogFooter } from "mtxuilib/ui/dialog";
|
|
27
|
-
import { SchemaFormFieldsRender } from "../components/formFieldRender/SchemaFormFieldsRender";
|
|
28
|
-
const SchemaFormView = (props) => {
|
|
29
|
-
const { formSchema, onSubmit, onCancel, variants } = props;
|
|
30
|
-
const [defaultValues, setDefaultValues] = useState({});
|
|
31
|
-
const form = useForm({
|
|
32
|
-
defaultValues
|
|
33
|
-
});
|
|
34
|
-
if (!formSchema) {
|
|
35
|
-
return /* @__PURE__ */ jsx("div", { className: "border p-8", children: "missing formSchema params" });
|
|
36
|
-
}
|
|
37
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsx(Card, { className: "p-2", children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
38
|
-
/* @__PURE__ */ jsx(SchemaFormFieldsRender, { schema: formSchema }),
|
|
39
|
-
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(EditFormToolbar, { onCancel: () => onCancel && onCancel() }) })
|
|
40
|
-
] }) }) }) })) });
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
SchemaFormView
|
|
44
|
-
};
|
package/dist/esm/gomtmQuery.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { DefaultError, UseMutationOptions } from "@tanstack/react-query";
|
|
3
|
-
import { MtmError } from "./gomtmpb/mtm/sppb/mtm_pb";
|
|
4
|
-
export declare function useGomtmQuery<T = any>(svc: string, method: string, input?: any): import("@tanstack/react-query").UseQueryResult<T, Error>;
|
|
5
|
-
export declare function useGomtmSuspenseQuery<T = any>(svc: string, method: string, input?: any): import("@tanstack/react-query").UseSuspenseQueryResult<T, Error>;
|
|
6
|
-
export declare function useGomtmSuspenseInfiniteQuery<T = any>(svc: string, method: string, input?: any): import("@tanstack/react-query").UseSuspenseInfiniteQueryResult<import("@tanstack/react-query").InfiniteData<T & PlainMessage<MtmError>, unknown>, Error>;
|
|
7
|
-
export declare function useGomtmMutation<TData = any, TError = DefaultError, TVariables = any, TContext = unknown>(svc: string, method: string, options?: UseMutationOptions): import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
package/dist/esm/gomtmQuery.js
DELETED
|
@@ -1,86 +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 { useMutation, useQuery, useSuspenseInfiniteQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
22
|
-
import { MTM_API_PREFIX } from "./consts";
|
|
23
|
-
import { createInfiniteQueryKey, createQueryKey, goMtmQueryFn } from "./mtmFetcher";
|
|
24
|
-
import { useGomtm } from "./store/mtapp-store";
|
|
25
|
-
const useGmtmQjeryFn = () => {
|
|
26
|
-
const backendUrl = useGomtm((x) => x.backendUrl);
|
|
27
|
-
const cookieStr = useGomtm((x) => x.cookieStr);
|
|
28
|
-
const token = useGomtm((x) => x.token);
|
|
29
|
-
const gomtmHost = useGomtm((x) => x.gomtmHost);
|
|
30
|
-
const cacheEnabled = useGomtm((x) => x.cacheEnabled);
|
|
31
|
-
return (svc, method, input) => {
|
|
32
|
-
return goMtmQueryFn({
|
|
33
|
-
svc,
|
|
34
|
-
method,
|
|
35
|
-
input,
|
|
36
|
-
options: {
|
|
37
|
-
url: new URL(MTM_API_PREFIX, backendUrl).toString(),
|
|
38
|
-
token,
|
|
39
|
-
cookieStr,
|
|
40
|
-
gomtmHost,
|
|
41
|
-
cacheEnabled: !!cacheEnabled
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
function useGomtmQuery(svc, method, input) {
|
|
47
|
-
const fn = useGmtmQjeryFn();
|
|
48
|
-
return useQuery({
|
|
49
|
-
queryKey: createQueryKey(svc, method, input),
|
|
50
|
-
queryFn: (k) => fn(svc, method, input)
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function useGomtmSuspenseQuery(svc, method, input) {
|
|
54
|
-
const fn = useGmtmQjeryFn();
|
|
55
|
-
return useSuspenseQuery({
|
|
56
|
-
queryKey: createQueryKey(svc, method, input),
|
|
57
|
-
queryFn: (k) => fn(svc, method, input)
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function useGomtmSuspenseInfiniteQuery(svc, method, input) {
|
|
61
|
-
const fn = useGmtmQjeryFn();
|
|
62
|
-
return useSuspenseInfiniteQuery({
|
|
63
|
-
queryKey: createInfiniteQueryKey(svc, method, input),
|
|
64
|
-
queryFn: (k) => fn(svc, method, input),
|
|
65
|
-
initialPageParam: input,
|
|
66
|
-
getNextPageParam: (lastPage, allPages, lastPageParam, allPageParams) => {
|
|
67
|
-
return lastPage;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function useGomtmMutation(svc, method, options) {
|
|
72
|
-
const fn = useGmtmQjeryFn();
|
|
73
|
-
const a = useMutation(__spreadProps(__spreadValues({}, options), {
|
|
74
|
-
mutationFn: (input) => {
|
|
75
|
-
const b = fn(svc, method, input);
|
|
76
|
-
return b;
|
|
77
|
-
}
|
|
78
|
-
}));
|
|
79
|
-
return a;
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
useGomtmMutation,
|
|
83
|
-
useGomtmQuery,
|
|
84
|
-
useGomtmSuspenseInfiniteQuery,
|
|
85
|
-
useGomtmSuspenseQuery
|
|
86
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|