@yinuo-ngm/server 1.0.15 → 1.0.17
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/lib/app.js +3 -15
- package/lib/common/editor.js +2 -2
- package/lib/env.d.ts +1 -0
- package/lib/env.js +1 -0
- package/lib/plugins/error-handler.plugin.d.ts +2 -2
- package/lib/plugins/error-handler.plugin.js +97 -88
- package/lib/plugins/ws/topics/nginx.ws.js +2 -1
- package/lib/plugins/ws/topics/svn.ws.d.ts +2 -1
- package/lib/plugins/ws/topics/svn.ws.js +3 -2
- package/lib/plugins/ws/topics/syslog.ws.d.ts +1 -1
- package/lib/plugins/ws/topics/task.ws.d.ts +2 -1
- package/lib/plugins/ws/topics/task.ws.js +2 -1
- package/lib/plugins/ws/ws.context.d.ts +1 -1
- package/lib/plugins/ws/ws.plugin.js +4 -3
- package/lib/plugins/ws/ws.router.d.ts +2 -2
- package/lib/plugins/ws/ws.router.js +8 -7
- package/lib/routes/api-client/collection.routes.js +8 -6
- package/lib/routes/api-client/env.routes.js +4 -3
- package/lib/routes/api-client/history.routes.js +3 -2
- package/lib/routes/api-client/hub-token.routes.js +32 -10
- package/lib/routes/api-client/request.routes.js +7 -6
- package/lib/routes/api-client/send.routes.js +3 -2
- package/lib/routes/config.routes.js +5 -5
- package/lib/routes/hub.routes.js +10 -10
- package/lib/routes/index.js +2 -0
- package/lib/routes/nginx/nginx-lifecycle.routes.js +4 -0
- package/lib/routes/nginx/nginx-route.context.js +23 -7
- package/lib/routes/nginx/nginx-server.routes.js +158 -6
- package/lib/routes/node-version.routes.d.ts +2 -0
- package/lib/routes/node-version.routes.js +56 -0
- package/lib/routes/project.routes.js +14 -9
- package/lib/routes/rss.routes.js +3 -3
- package/lib/routes/sprite-browse.routes.js +21 -6
- package/lib/routes/sprite.routes.js +18 -12
- package/lib/routes/static-files.routes.js +21 -5
- package/lib/routes/svn.routes.js +5 -3
- package/lib/routes/system.routes.js +20 -1
- package/lib/routes/task.routes.js +10 -3
- package/package.json +13 -6
- package/www/3rdpartylicenses.txt +66 -118
- package/www/browser/chunk-2L7NUOMX.js +2 -0
- package/www/browser/chunk-2NZJ7CN2.js +20 -0
- package/www/browser/chunk-3CM4SKDO.js +15 -0
- package/www/browser/chunk-3I7BQCXS.js +1 -0
- package/www/browser/chunk-3M56F2S2.js +1 -0
- package/www/browser/chunk-3OHBKMAA.js +1 -0
- package/www/browser/chunk-3XNNQFWR.js +1 -0
- package/www/browser/chunk-4BRW6LCZ.js +4 -0
- package/www/browser/chunk-4LBSLURA.js +1 -0
- package/www/browser/chunk-4X42HB6N.js +2 -0
- package/www/browser/chunk-5DYX4DUX.js +11 -0
- package/www/browser/chunk-6SYVDN5L.js +1 -0
- package/www/browser/chunk-6YYNHZ2A.js +1 -0
- package/www/browser/chunk-75W3GVSO.js +1 -0
- package/www/browser/chunk-7U44RF5F.js +63 -0
- package/www/browser/chunk-AELTP6YN.js +1 -0
- package/www/browser/chunk-AMXRL4GR.js +1 -0
- package/www/browser/chunk-AV2ZODEH.js +1 -0
- package/www/browser/chunk-AZ6SIMYH.js +1 -0
- package/www/browser/chunk-B3C35ET3.js +2 -0
- package/www/browser/chunk-BTQIUVTQ.js +1 -0
- package/www/browser/chunk-CN5J4WNO.js +1 -0
- package/www/browser/chunk-D2ODDESN.js +1 -0
- package/www/browser/chunk-DE6E23ET.js +1 -0
- package/www/browser/chunk-DIJPUYIA.js +1 -0
- package/www/browser/chunk-DLGJD6YU.js +4 -0
- package/www/browser/chunk-EEDA5U4V.js +1 -0
- package/www/browser/chunk-FK6Z4HLL.js +1 -0
- package/www/browser/chunk-FL6GDGHW.js +1 -0
- package/www/browser/chunk-FXCG34QS.js +1 -0
- package/www/browser/chunk-H2USFIYR.js +1 -0
- package/www/browser/chunk-H5HGMOE6.js +1 -0
- package/www/browser/chunk-HB3HECPD.js +1 -0
- package/www/browser/chunk-HDNG236Q.js +1 -0
- package/www/browser/chunk-HFZLJHYR.js +1 -0
- package/www/browser/chunk-HJTXXSMC.js +1 -0
- package/www/browser/chunk-HUMCWAKJ.js +3 -0
- package/www/browser/chunk-IKB3EQCP.js +2 -0
- package/www/browser/chunk-K7PESFPY.js +1 -0
- package/www/browser/chunk-KRYMOHYF.js +2 -0
- package/www/browser/chunk-M4QRBV3K.js +1 -0
- package/www/browser/chunk-N2PELLMM.js +30 -0
- package/www/browser/chunk-ONXBYGIG.js +1 -0
- package/www/browser/chunk-OSBDR36P.js +1 -0
- package/www/browser/chunk-OZCK4XVV.js +1 -0
- package/www/browser/chunk-QJP5F735.js +1 -0
- package/www/browser/chunk-RGOYDY7H.js +1 -0
- package/www/browser/chunk-UJKK4A7Y.js +1 -0
- package/www/browser/chunk-WD2EKZQC.js +1 -0
- package/www/browser/chunk-WUA5JFDD.js +1 -0
- package/www/browser/chunk-XLFHB7RS.js +3 -0
- package/www/browser/chunk-YNW4HEJO.js +37 -0
- package/www/browser/chunk-ZTDLWBW5.js +1 -0
- package/www/browser/dark.css +1 -30433
- package/www/browser/default.css +1 -30149
- package/www/browser/index.html +3 -3
- package/www/browser/main-N64WJCHX.js +34 -0
- package/www/browser/scripts-U25HCVEI.js +6 -0
- package/www/browser/styles-ROAHD7MY.css +1 -0
- package/www/browser/add-widget-drawer.component.css.map +0 -7
- package/www/browser/advanced-editor.component.css.map +0 -7
- package/www/browser/api-client.component.css.map +0 -7
- package/www/browser/api-history-drawer.component.css.map +0 -7
- package/www/browser/app.css.map +0 -7
- package/www/browser/attachment-viewer.component.css.map +0 -7
- package/www/browser/auth-editor.component.css.map +0 -7
- package/www/browser/body-editor.component.css.map +0 -7
- package/www/browser/chunk-2YSUXBGC.js +0 -627
- package/www/browser/chunk-2YSUXBGC.js.map +0 -1
- package/www/browser/chunk-3G2GEOPV.js +0 -456
- package/www/browser/chunk-3G2GEOPV.js.map +0 -1
- package/www/browser/chunk-3L72DF3R.js +0 -1683
- package/www/browser/chunk-3L72DF3R.js.map +0 -1
- package/www/browser/chunk-3MCIETCQ.js +0 -8279
- package/www/browser/chunk-3MCIETCQ.js.map +0 -1
- package/www/browser/chunk-665WC4RU.js +0 -5383
- package/www/browser/chunk-665WC4RU.js.map +0 -1
- package/www/browser/chunk-6QMSEZPT.js +0 -10044
- package/www/browser/chunk-6QMSEZPT.js.map +0 -1
- package/www/browser/chunk-6TBQERYX.js +0 -280
- package/www/browser/chunk-6TBQERYX.js.map +0 -1
- package/www/browser/chunk-6UW4MRJZ.js +0 -43
- package/www/browser/chunk-6UW4MRJZ.js.map +0 -7
- package/www/browser/chunk-6XUMIL3W.js +0 -5495
- package/www/browser/chunk-6XUMIL3W.js.map +0 -1
- package/www/browser/chunk-724YOJI3.js +0 -903
- package/www/browser/chunk-724YOJI3.js.map +0 -1
- package/www/browser/chunk-766T7YES.js +0 -437
- package/www/browser/chunk-766T7YES.js.map +0 -1
- package/www/browser/chunk-7FC7DN65.js +0 -728
- package/www/browser/chunk-7FC7DN65.js.map +0 -1
- package/www/browser/chunk-APGQRYWX.js +0 -156
- package/www/browser/chunk-APGQRYWX.js.map +0 -7
- package/www/browser/chunk-AQHSGTHS.js +0 -1960
- package/www/browser/chunk-AQHSGTHS.js.map +0 -1
- package/www/browser/chunk-CTOEAJQK.js +0 -40
- package/www/browser/chunk-CTOEAJQK.js.map +0 -7
- package/www/browser/chunk-DEGQJKKZ.js +0 -409
- package/www/browser/chunk-DEGQJKKZ.js.map +0 -1
- package/www/browser/chunk-DIJX2663.js +0 -1166
- package/www/browser/chunk-DIJX2663.js.map +0 -1
- package/www/browser/chunk-E4XD4GLT.js +0 -427
- package/www/browser/chunk-E4XD4GLT.js.map +0 -1
- package/www/browser/chunk-EQOY6A3M.js +0 -212
- package/www/browser/chunk-EQOY6A3M.js.map +0 -1
- package/www/browser/chunk-ETTBRXVA.js +0 -2643
- package/www/browser/chunk-ETTBRXVA.js.map +0 -1
- package/www/browser/chunk-FLSUSPBD.js +0 -5569
- package/www/browser/chunk-FLSUSPBD.js.map +0 -1
- package/www/browser/chunk-FZNHBEAZ.js +0 -102
- package/www/browser/chunk-FZNHBEAZ.js.map +0 -1
- package/www/browser/chunk-GJC7CZIJ.js +0 -361
- package/www/browser/chunk-GJC7CZIJ.js.map +0 -7
- package/www/browser/chunk-GMCNMOTD.js +0 -844
- package/www/browser/chunk-GMCNMOTD.js.map +0 -7
- package/www/browser/chunk-H43HGCRW.js +0 -198
- package/www/browser/chunk-H43HGCRW.js.map +0 -7
- package/www/browser/chunk-J447GBHM.js +0 -160
- package/www/browser/chunk-J447GBHM.js.map +0 -1
- package/www/browser/chunk-JN3VOWP7.js +0 -384
- package/www/browser/chunk-JN3VOWP7.js.map +0 -1
- package/www/browser/chunk-KSHAGY2M.js +0 -399
- package/www/browser/chunk-KSHAGY2M.js.map +0 -7
- package/www/browser/chunk-KV72AKOD.js +0 -59
- package/www/browser/chunk-KV72AKOD.js.map +0 -7
- package/www/browser/chunk-LAVMY2SJ.js +0 -26
- package/www/browser/chunk-LAVMY2SJ.js.map +0 -7
- package/www/browser/chunk-LLRVGHG5.js +0 -73
- package/www/browser/chunk-LLRVGHG5.js.map +0 -7
- package/www/browser/chunk-LPME4AJ3.js +0 -196
- package/www/browser/chunk-LPME4AJ3.js.map +0 -1
- package/www/browser/chunk-LVPSURVU.js +0 -4615
- package/www/browser/chunk-LVPSURVU.js.map +0 -1
- package/www/browser/chunk-MMPO7QLO.js +0 -4146
- package/www/browser/chunk-MMPO7QLO.js.map +0 -7
- package/www/browser/chunk-O7LB6VFM.js +0 -1953
- package/www/browser/chunk-O7LB6VFM.js.map +0 -1
- package/www/browser/chunk-P5CWA4FO.js +0 -685
- package/www/browser/chunk-P5CWA4FO.js.map +0 -1
- package/www/browser/chunk-RBWIWNTL.js +0 -203
- package/www/browser/chunk-RBWIWNTL.js.map +0 -7
- package/www/browser/chunk-RUXJCM3V.js +0 -26199
- package/www/browser/chunk-RUXJCM3V.js.map +0 -1
- package/www/browser/chunk-S77VVYUZ.js +0 -168
- package/www/browser/chunk-S77VVYUZ.js.map +0 -1
- package/www/browser/chunk-SCXPYFOB.js +0 -4316
- package/www/browser/chunk-SCXPYFOB.js.map +0 -1
- package/www/browser/chunk-SS73S33S.js +0 -471
- package/www/browser/chunk-SS73S33S.js.map +0 -7
- package/www/browser/chunk-T6UAOWNP.js +0 -600
- package/www/browser/chunk-T6UAOWNP.js.map +0 -1
- package/www/browser/chunk-TEW4MY4J.js +0 -148
- package/www/browser/chunk-TEW4MY4J.js.map +0 -7
- package/www/browser/chunk-TVORF3SF.js +0 -82
- package/www/browser/chunk-TVORF3SF.js.map +0 -7
- package/www/browser/chunk-UAN42EUZ.js +0 -2147
- package/www/browser/chunk-UAN42EUZ.js.map +0 -1
- package/www/browser/chunk-ULOHDK7Y.js +0 -1
- package/www/browser/chunk-ULOHDK7Y.js.map +0 -7
- package/www/browser/chunk-UYJ3FVRV.js +0 -3978
- package/www/browser/chunk-UYJ3FVRV.js.map +0 -1
- package/www/browser/chunk-VXHZMSDM.js +0 -5509
- package/www/browser/chunk-VXHZMSDM.js.map +0 -1
- package/www/browser/chunk-VYNQPZQO.js +0 -281
- package/www/browser/chunk-VYNQPZQO.js.map +0 -1
- package/www/browser/chunk-W3J23PZI.js +0 -9213
- package/www/browser/chunk-W3J23PZI.js.map +0 -1
- package/www/browser/chunk-W5HGHCQT.js +0 -1642
- package/www/browser/chunk-W5HGHCQT.js.map +0 -7
- package/www/browser/chunk-XF5H7E4L.js +0 -4723
- package/www/browser/chunk-XF5H7E4L.js.map +0 -1
- package/www/browser/chunk-XNFNEBMY.js +0 -398
- package/www/browser/chunk-XNFNEBMY.js.map +0 -7
- package/www/browser/chunk-XQY5SPGI.js +0 -30811
- package/www/browser/chunk-XQY5SPGI.js.map +0 -1
- package/www/browser/chunk-Y7JBZHNK.js +0 -514
- package/www/browser/chunk-Y7JBZHNK.js.map +0 -1
- package/www/browser/chunk-YWHRP4X3.js +0 -406
- package/www/browser/chunk-YWHRP4X3.js.map +0 -1
- package/www/browser/chunk-Z7FJIV62.js +0 -95
- package/www/browser/chunk-Z7FJIV62.js.map +0 -7
- package/www/browser/chunk-ZBZHXS46.js +0 -1674
- package/www/browser/chunk-ZBZHXS46.js.map +0 -1
- package/www/browser/chunk-ZZA5NVAI.js +0 -735
- package/www/browser/chunk-ZZA5NVAI.js.map +0 -1
- package/www/browser/collection-modal.component.css.map +0 -7
- package/www/browser/collection-tree-item.component.css.map +0 -7
- package/www/browser/collection-tree.component.css.map +0 -7
- package/www/browser/config-change-bar-component.css.map +0 -7
- package/www/browser/config-item-component.css.map +0 -7
- package/www/browser/config-nav-component.css.map +0 -7
- package/www/browser/config-section-component.css.map +0 -7
- package/www/browser/create-summary-aside.component.css.map +0 -7
- package/www/browser/curl-actions.component.css.map +0 -7
- package/www/browser/dark.css.map +0 -7
- package/www/browser/dashboard-canvas.component.css.map +0 -7
- package/www/browser/dashboard.component.css.map +0 -7
- package/www/browser/default.css.map +0 -7
- package/www/browser/detail-item-card.component.css.map +0 -7
- package/www/browser/ellipsis-text.component.css.map +0 -7
- package/www/browser/env-modal.component.css.map +0 -7
- package/www/browser/env-picker.component.css.map +0 -7
- package/www/browser/feedback.component.css.map +0 -7
- package/www/browser/fs-explorer.component.css.map +0 -7
- package/www/browser/git-import-modal.component.css.map +0 -7
- package/www/browser/hub-v2-personal-token-modal.component.css.map +0 -7
- package/www/browser/issue-action-area.component.css.map +0 -7
- package/www/browser/issue-add-participants-dialog.component.css.map +0 -7
- package/www/browser/issue-assign-dialog.component.css.map +0 -7
- package/www/browser/issue-attachment-area.component.css.map +0 -7
- package/www/browser/issue-base-info-area.component.css.map +0 -7
- package/www/browser/issue-branches.component.css.map +0 -7
- package/www/browser/issue-close-dialog.component.css.map +0 -7
- package/www/browser/issue-collaborators-panel.component.css.map +0 -7
- package/www/browser/issue-comment-editor.component.css.map +0 -7
- package/www/browser/issue-create-branch-dialog.component.css.map +0 -7
- package/www/browser/issue-description-area.component.css.map +0 -7
- package/www/browser/issue-detail.component.css.map +0 -7
- package/www/browser/issue-resolve-dialog.component.css.map +0 -7
- package/www/browser/issue-start-own-branch-dialog.component.css.map +0 -7
- package/www/browser/issues-list-table.component.css.map +0 -7
- package/www/browser/issues.component.css.map +0 -7
- package/www/browser/kill-port-widget.component.css.map +0 -7
- package/www/browser/kv-table.component.css.map +0 -7
- package/www/browser/layout-footer.component.css.map +0 -7
- package/www/browser/layout-header.component.css.map +0 -7
- package/www/browser/layout-menu.component.css.map +0 -7
- package/www/browser/layout-project-nav.component.css.map +0 -7
- package/www/browser/layout-sidebar.component.css.map +0 -7
- package/www/browser/layout.component.css.map +0 -7
- package/www/browser/less-viewport-component.css.map +0 -7
- package/www/browser/main.js +0 -1872
- package/www/browser/main.js.map +0 -1
- package/www/browser/markdown-viewer.component.css.map +0 -7
- package/www/browser/news-feed-widget.component.css.map +0 -7
- package/www/browser/ng-devtool.component.css.map +0 -7
- package/www/browser/nginx-config-editor.component.css.map +0 -7
- package/www/browser/nginx-log-viewer.component.css.map +0 -7
- package/www/browser/nginx-secondary-logs-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-perf-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-settings-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-ssl-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-test-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-traffic-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-upstream-tab.component.css.map +0 -7
- package/www/browser/nginx-section-card.component.css.map +0 -7
- package/www/browser/nginx-server-drawer.component.css.map +0 -7
- package/www/browser/nginx-server-list.component.css.map +0 -7
- package/www/browser/nginx-stat-card.component.css.map +0 -7
- package/www/browser/nginx.component.css.map +0 -7
- package/www/browser/page-layout.component.css.map +0 -7
- package/www/browser/pick-workspace-modal.component.css.map +0 -7
- package/www/browser/polyfills.js +0 -26584
- package/www/browser/polyfills.js.map +0 -7
- package/www/browser/project-conf.component.css.map +0 -7
- package/www/browser/project-create-modal.component.css.map +0 -7
- package/www/browser/project-create.component.css.map +0 -7
- package/www/browser/project-deps.component.css.map +0 -7
- package/www/browser/project-edit-modal.component.css.map +0 -7
- package/www/browser/project-import.component.css.map +0 -7
- package/www/browser/project-item-popover.component.css.map +0 -7
- package/www/browser/project-item.component.css.map +0 -7
- package/www/browser/project-list.component.css.map +0 -7
- package/www/browser/projects.component.css.map +0 -7
- package/www/browser/quick-task-widget.component.css.map +0 -7
- package/www/browser/rd-action-area.component.css.map +0 -7
- package/www/browser/rd-advance-stage-dialog.component.css.map +0 -7
- package/www/browser/rd-block-dialog.component.css.map +0 -7
- package/www/browser/rd-create-dialog.component.css.map +0 -7
- package/www/browser/rd-detail.component.css.map +0 -7
- package/www/browser/rd-item-card.component.css.map +0 -7
- package/www/browser/rd-list-board.component.css.map +0 -7
- package/www/browser/rd-list-table.component.css.map +0 -7
- package/www/browser/rd.component.css.map +0 -7
- package/www/browser/request-collections.component.css.map +0 -7
- package/www/browser/request-editor.component.css.map +0 -7
- package/www/browser/request-list-item.component.css.map +0 -7
- package/www/browser/request-list.component.css.map +0 -7
- package/www/browser/request-tabs-bar.component.css.map +0 -7
- package/www/browser/request-tabs.component.css.map +0 -7
- package/www/browser/request-urlbar.component.css.map +0 -7
- package/www/browser/response-viewer.component.css.map +0 -7
- package/www/browser/scripts.js +0 -245
- package/www/browser/scripts.js.map +0 -7
- package/www/browser/setting.component.css.map +0 -7
- package/www/browser/sprite-conf-modal.component.css.map +0 -7
- package/www/browser/sprite-icons-panel-component.css.map +0 -7
- package/www/browser/sprite-images-panel-component.css.map +0 -7
- package/www/browser/sprite-result-tabs.component.css.map +0 -7
- package/www/browser/sprite-viewport-component.css.map +0 -7
- package/www/browser/sprite.component.css.map +0 -7
- package/www/browser/step-advance.component.css.map +0 -7
- package/www/browser/step-basic.component.css.map +0 -7
- package/www/browser/step-config.component.css.map +0 -7
- package/www/browser/step-features.component.css.map +0 -7
- package/www/browser/step-preset.component.css.map +0 -7
- package/www/browser/step-summary-aside.component.css.map +0 -7
- package/www/browser/styles.css +0 -258
- package/www/browser/styles.css.map +0 -7
- package/www/browser/system-log.component.css.map +0 -7
- package/www/browser/task-actions.component.css.map +0 -7
- package/www/browser/task-console.component.css.map +0 -7
- package/www/browser/task-header.component.css.map +0 -7
- package/www/browser/task-list.component.css.map +0 -7
- package/www/browser/tasks.component.css.map +0 -7
- package/www/browser/terminal-view.component.css.map +0 -7
- package/www/browser/welcome-widget.component.css.map +0 -7
- package/www/browser/widget-base.component.css.map +0 -7
- package/www/browser/widget-host.component.css.map +0 -7
|
@@ -1,685 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NzGridModule
|
|
3
|
-
} from "./chunk-6QMSEZPT.js";
|
|
4
|
-
import {
|
|
5
|
-
AbstractControl,
|
|
6
|
-
Directionality,
|
|
7
|
-
FormControlDirective,
|
|
8
|
-
FormControlName,
|
|
9
|
-
NgControl,
|
|
10
|
-
NgModel,
|
|
11
|
-
NzFormStatusService,
|
|
12
|
-
NzI18nModule,
|
|
13
|
-
NzI18nPipe,
|
|
14
|
-
NzI18nService,
|
|
15
|
-
NzIconDirective,
|
|
16
|
-
NzIconModule,
|
|
17
|
-
NzOutletModule,
|
|
18
|
-
NzStringTemplateOutletDirective,
|
|
19
|
-
NzTooltipDirective,
|
|
20
|
-
WithConfig,
|
|
21
|
-
helpMotion,
|
|
22
|
-
isTemplateRef,
|
|
23
|
-
takeUntilDestroyed,
|
|
24
|
-
toBoolean
|
|
25
|
-
} from "./chunk-RUXJCM3V.js";
|
|
26
|
-
import {
|
|
27
|
-
NgTemplateOutlet
|
|
28
|
-
} from "./chunk-3MCIETCQ.js";
|
|
29
|
-
import {
|
|
30
|
-
ANIMATION_MODULE_TYPE,
|
|
31
|
-
ChangeDetectionStrategy,
|
|
32
|
-
ChangeDetectorRef,
|
|
33
|
-
Component,
|
|
34
|
-
ContentChild,
|
|
35
|
-
DestroyRef,
|
|
36
|
-
Directive,
|
|
37
|
-
FactoryTarget,
|
|
38
|
-
Input,
|
|
39
|
-
NgModule,
|
|
40
|
-
Subject,
|
|
41
|
-
Subscription,
|
|
42
|
-
ViewEncapsulation,
|
|
43
|
-
__esDecorate,
|
|
44
|
-
__publicField,
|
|
45
|
-
__runInitializers,
|
|
46
|
-
__spreadValues,
|
|
47
|
-
booleanAttribute,
|
|
48
|
-
computed,
|
|
49
|
-
core_exports,
|
|
50
|
-
filter,
|
|
51
|
-
inject,
|
|
52
|
-
input,
|
|
53
|
-
map,
|
|
54
|
-
startWith,
|
|
55
|
-
tap,
|
|
56
|
-
ɵɵngDeclareClassMetadata,
|
|
57
|
-
ɵɵngDeclareComponent,
|
|
58
|
-
ɵɵngDeclareDirective,
|
|
59
|
-
ɵɵngDeclareFactory,
|
|
60
|
-
ɵɵngDeclareInjector,
|
|
61
|
-
ɵɵngDeclareNgModule
|
|
62
|
-
} from "./chunk-XQY5SPGI.js";
|
|
63
|
-
|
|
64
|
-
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-form.mjs
|
|
65
|
-
var NzFormItemComponent = class _NzFormItemComponent {
|
|
66
|
-
cdr = inject(ChangeDetectorRef);
|
|
67
|
-
status = "";
|
|
68
|
-
hasFeedback = false;
|
|
69
|
-
withHelpClass = false;
|
|
70
|
-
setWithHelpViaTips(value) {
|
|
71
|
-
this.withHelpClass = value;
|
|
72
|
-
this.cdr.markForCheck();
|
|
73
|
-
}
|
|
74
|
-
setStatus(status) {
|
|
75
|
-
this.status = status;
|
|
76
|
-
this.cdr.markForCheck();
|
|
77
|
-
}
|
|
78
|
-
setHasFeedback(hasFeedback) {
|
|
79
|
-
this.hasFeedback = hasFeedback;
|
|
80
|
-
this.cdr.markForCheck();
|
|
81
|
-
}
|
|
82
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormItemComponent, deps: [], target: FactoryTarget.Component });
|
|
83
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzFormItemComponent, isStandalone: true, selector: "nz-form-item", host: { properties: { "class.ant-form-item-has-success": 'status === "success"', "class.ant-form-item-has-warning": 'status === "warning"', "class.ant-form-item-has-error": 'status === "error"', "class.ant-form-item-is-validating": 'status === "validating"', "class.ant-form-item-has-feedback": "hasFeedback && status", "class.ant-form-item-with-help": "withHelpClass" }, classAttribute: "ant-form-item" }, exportAs: ["nzFormItem"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
84
|
-
};
|
|
85
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormItemComponent, decorators: [{
|
|
86
|
-
type: Component,
|
|
87
|
-
args: [{
|
|
88
|
-
selector: "nz-form-item",
|
|
89
|
-
exportAs: "nzFormItem",
|
|
90
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
91
|
-
encapsulation: ViewEncapsulation.None,
|
|
92
|
-
host: {
|
|
93
|
-
class: "ant-form-item",
|
|
94
|
-
"[class.ant-form-item-has-success]": 'status === "success"',
|
|
95
|
-
"[class.ant-form-item-has-warning]": 'status === "warning"',
|
|
96
|
-
"[class.ant-form-item-has-error]": 'status === "error"',
|
|
97
|
-
"[class.ant-form-item-is-validating]": 'status === "validating"',
|
|
98
|
-
"[class.ant-form-item-has-feedback]": "hasFeedback && status",
|
|
99
|
-
"[class.ant-form-item-with-help]": "withHelpClass"
|
|
100
|
-
},
|
|
101
|
-
template: `<ng-content></ng-content>`
|
|
102
|
-
}]
|
|
103
|
-
}] });
|
|
104
|
-
var NZ_CONFIG_MODULE_NAME = "form";
|
|
105
|
-
var DefaultTooltipIcon = {
|
|
106
|
-
type: "question-circle",
|
|
107
|
-
theme: "outline"
|
|
108
|
-
};
|
|
109
|
-
var NzFormDirective = (() => {
|
|
110
|
-
var _a;
|
|
111
|
-
let _nzNoColon_decorators;
|
|
112
|
-
let _nzNoColon_initializers = [];
|
|
113
|
-
let _nzNoColon_extraInitializers = [];
|
|
114
|
-
let _nzAutoTips_decorators;
|
|
115
|
-
let _nzAutoTips_initializers = [];
|
|
116
|
-
let _nzAutoTips_extraInitializers = [];
|
|
117
|
-
let _nzTooltipIcon_decorators;
|
|
118
|
-
let _nzTooltipIcon_initializers = [];
|
|
119
|
-
let _nzTooltipIcon_extraInitializers = [];
|
|
120
|
-
let _nzLabelWrap_decorators;
|
|
121
|
-
let _nzLabelWrap_initializers = [];
|
|
122
|
-
let _nzLabelWrap_extraInitializers = [];
|
|
123
|
-
return _a = class {
|
|
124
|
-
destroyRef = inject(DestroyRef);
|
|
125
|
-
directionality = inject(Directionality);
|
|
126
|
-
_nzModuleName = NZ_CONFIG_MODULE_NAME;
|
|
127
|
-
nzLayout = "horizontal";
|
|
128
|
-
nzNoColon = __runInitializers(this, _nzNoColon_initializers, false);
|
|
129
|
-
nzAutoTips = (__runInitializers(this, _nzNoColon_extraInitializers), __runInitializers(this, _nzAutoTips_initializers, {}));
|
|
130
|
-
nzDisableAutoTips = (__runInitializers(this, _nzAutoTips_extraInitializers), false);
|
|
131
|
-
nzTooltipIcon = __runInitializers(this, _nzTooltipIcon_initializers, DefaultTooltipIcon);
|
|
132
|
-
nzLabelAlign = (__runInitializers(this, _nzTooltipIcon_extraInitializers), "right");
|
|
133
|
-
nzLabelWrap = __runInitializers(this, _nzLabelWrap_initializers, false);
|
|
134
|
-
nzRequiredMark = (__runInitializers(this, _nzLabelWrap_extraInitializers), input(true, ...ngDevMode ? [{ debugName: "nzRequiredMark" }] : []));
|
|
135
|
-
dir = "ltr";
|
|
136
|
-
inputChanges$ = new Subject();
|
|
137
|
-
getInputObservable(changeType) {
|
|
138
|
-
return this.inputChanges$.pipe(filter((changes) => changeType in changes), map((value) => value[changeType]));
|
|
139
|
-
}
|
|
140
|
-
constructor() {
|
|
141
|
-
this.dir = this.directionality.value;
|
|
142
|
-
this.directionality.change?.pipe(takeUntilDestroyed()).subscribe((direction) => {
|
|
143
|
-
this.dir = direction;
|
|
144
|
-
});
|
|
145
|
-
this.destroyRef.onDestroy(() => {
|
|
146
|
-
this.inputChanges$.complete();
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
ngOnChanges(changes) {
|
|
150
|
-
this.inputChanges$.next(changes);
|
|
151
|
-
}
|
|
152
|
-
}, (() => {
|
|
153
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? /* @__PURE__ */ Object.create(null) : void 0;
|
|
154
|
-
_nzNoColon_decorators = [WithConfig()];
|
|
155
|
-
_nzAutoTips_decorators = [WithConfig()];
|
|
156
|
-
_nzTooltipIcon_decorators = [WithConfig()];
|
|
157
|
-
_nzLabelWrap_decorators = [WithConfig()];
|
|
158
|
-
__esDecorate(null, null, _nzNoColon_decorators, { kind: "field", name: "nzNoColon", static: false, private: false, access: { has: (obj) => "nzNoColon" in obj, get: (obj) => obj.nzNoColon, set: (obj, value) => {
|
|
159
|
-
obj.nzNoColon = value;
|
|
160
|
-
} }, metadata: _metadata }, _nzNoColon_initializers, _nzNoColon_extraInitializers);
|
|
161
|
-
__esDecorate(null, null, _nzAutoTips_decorators, { kind: "field", name: "nzAutoTips", static: false, private: false, access: { has: (obj) => "nzAutoTips" in obj, get: (obj) => obj.nzAutoTips, set: (obj, value) => {
|
|
162
|
-
obj.nzAutoTips = value;
|
|
163
|
-
} }, metadata: _metadata }, _nzAutoTips_initializers, _nzAutoTips_extraInitializers);
|
|
164
|
-
__esDecorate(null, null, _nzTooltipIcon_decorators, { kind: "field", name: "nzTooltipIcon", static: false, private: false, access: { has: (obj) => "nzTooltipIcon" in obj, get: (obj) => obj.nzTooltipIcon, set: (obj, value) => {
|
|
165
|
-
obj.nzTooltipIcon = value;
|
|
166
|
-
} }, metadata: _metadata }, _nzTooltipIcon_initializers, _nzTooltipIcon_extraInitializers);
|
|
167
|
-
__esDecorate(null, null, _nzLabelWrap_decorators, { kind: "field", name: "nzLabelWrap", static: false, private: false, access: { has: (obj) => "nzLabelWrap" in obj, get: (obj) => obj.nzLabelWrap, set: (obj, value) => {
|
|
168
|
-
obj.nzLabelWrap = value;
|
|
169
|
-
} }, metadata: _metadata }, _nzLabelWrap_initializers, _nzLabelWrap_extraInitializers);
|
|
170
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
171
|
-
})(), __publicField(_a, "\u0275fac", \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _a, deps: [], target: FactoryTarget.Directive })), __publicField(_a, "\u0275dir", \u0275\u0275ngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: _a, isStandalone: true, selector: "[nz-form]", inputs: { nzLayout: { classPropertyName: "nzLayout", publicName: "nzLayout", isSignal: false, isRequired: false, transformFunction: null }, nzNoColon: { classPropertyName: "nzNoColon", publicName: "nzNoColon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, nzAutoTips: { classPropertyName: "nzAutoTips", publicName: "nzAutoTips", isSignal: false, isRequired: false, transformFunction: null }, nzDisableAutoTips: { classPropertyName: "nzDisableAutoTips", publicName: "nzDisableAutoTips", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, nzTooltipIcon: { classPropertyName: "nzTooltipIcon", publicName: "nzTooltipIcon", isSignal: false, isRequired: false, transformFunction: null }, nzLabelAlign: { classPropertyName: "nzLabelAlign", publicName: "nzLabelAlign", isSignal: false, isRequired: false, transformFunction: null }, nzLabelWrap: { classPropertyName: "nzLabelWrap", publicName: "nzLabelWrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, nzRequiredMark: { classPropertyName: "nzRequiredMark", publicName: "nzRequiredMark", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.ant-form-horizontal": "nzLayout === 'horizontal'", "class.ant-form-vertical": "nzLayout === 'vertical'", "class.ant-form-inline": "nzLayout === 'inline'", "class.ant-form-rtl": "dir === 'rtl'" }, classAttribute: "ant-form" }, exportAs: ["nzForm"], usesOnChanges: true, ngImport: core_exports })), _a;
|
|
172
|
-
})();
|
|
173
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormDirective, decorators: [{
|
|
174
|
-
type: Directive,
|
|
175
|
-
args: [{
|
|
176
|
-
selector: "[nz-form]",
|
|
177
|
-
exportAs: "nzForm",
|
|
178
|
-
host: {
|
|
179
|
-
class: "ant-form",
|
|
180
|
-
"[class.ant-form-horizontal]": `nzLayout === 'horizontal'`,
|
|
181
|
-
"[class.ant-form-vertical]": `nzLayout === 'vertical'`,
|
|
182
|
-
"[class.ant-form-inline]": `nzLayout === 'inline'`,
|
|
183
|
-
"[class.ant-form-rtl]": `dir === 'rtl'`
|
|
184
|
-
}
|
|
185
|
-
}]
|
|
186
|
-
}], ctorParameters: () => [], propDecorators: { nzLayout: [{
|
|
187
|
-
type: Input
|
|
188
|
-
}], nzNoColon: [{
|
|
189
|
-
type: Input,
|
|
190
|
-
args: [{ transform: booleanAttribute }]
|
|
191
|
-
}], nzAutoTips: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], nzDisableAutoTips: [{
|
|
194
|
-
type: Input,
|
|
195
|
-
args: [{ transform: booleanAttribute }]
|
|
196
|
-
}], nzTooltipIcon: [{
|
|
197
|
-
type: Input
|
|
198
|
-
}], nzLabelAlign: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}], nzLabelWrap: [{
|
|
201
|
-
type: Input,
|
|
202
|
-
args: [{ transform: booleanAttribute }]
|
|
203
|
-
}] } });
|
|
204
|
-
var NzFormControlComponent = class _NzFormControlComponent {
|
|
205
|
-
cdr = inject(ChangeDetectorRef);
|
|
206
|
-
i18n = inject(NzI18nService);
|
|
207
|
-
nzFormStatusService = inject(NzFormStatusService);
|
|
208
|
-
destroyRef = inject(DestroyRef);
|
|
209
|
-
animationType = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
210
|
-
_hasFeedback = false;
|
|
211
|
-
validateChanges = Subscription.EMPTY;
|
|
212
|
-
validateString = null;
|
|
213
|
-
localeId;
|
|
214
|
-
autoErrorTip;
|
|
215
|
-
get disableAutoTips() {
|
|
216
|
-
return this.nzDisableAutoTips !== void 0 ? toBoolean(this.nzDisableAutoTips) : !!this.nzFormDirective?.nzDisableAutoTips;
|
|
217
|
-
}
|
|
218
|
-
status = "";
|
|
219
|
-
validateControl = null;
|
|
220
|
-
innerTip = null;
|
|
221
|
-
defaultValidateControl;
|
|
222
|
-
nzSuccessTip;
|
|
223
|
-
nzWarningTip;
|
|
224
|
-
nzErrorTip;
|
|
225
|
-
nzValidatingTip;
|
|
226
|
-
nzExtra;
|
|
227
|
-
nzAutoTips = {};
|
|
228
|
-
nzDisableAutoTips;
|
|
229
|
-
set nzHasFeedback(value) {
|
|
230
|
-
this._hasFeedback = value;
|
|
231
|
-
this.nzFormStatusService.formStatusChanges.next({ status: this.status, hasFeedback: this._hasFeedback });
|
|
232
|
-
if (this.nzFormItemComponent) {
|
|
233
|
-
this.nzFormItemComponent.setHasFeedback(this._hasFeedback);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
get nzHasFeedback() {
|
|
237
|
-
return this._hasFeedback;
|
|
238
|
-
}
|
|
239
|
-
set nzValidateStatus(value) {
|
|
240
|
-
if (value instanceof AbstractControl || value instanceof NgModel) {
|
|
241
|
-
this.validateControl = value;
|
|
242
|
-
this.validateString = null;
|
|
243
|
-
this.watchControl();
|
|
244
|
-
} else if (value instanceof FormControlName) {
|
|
245
|
-
this.validateControl = value.control;
|
|
246
|
-
this.validateString = null;
|
|
247
|
-
this.watchControl();
|
|
248
|
-
} else {
|
|
249
|
-
this.validateString = value;
|
|
250
|
-
this.validateControl = null;
|
|
251
|
-
this.setStatus();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
watchControl() {
|
|
255
|
-
this.validateChanges.unsubscribe();
|
|
256
|
-
if (this.validateControl && this.validateControl.statusChanges) {
|
|
257
|
-
this.validateChanges = this.validateControl.statusChanges.pipe(startWith(null), takeUntilDestroyed(this.destroyRef)).subscribe(() => {
|
|
258
|
-
if (!this.disableAutoTips) {
|
|
259
|
-
this.updateAutoErrorTip();
|
|
260
|
-
}
|
|
261
|
-
this.setStatus();
|
|
262
|
-
this.cdr.markForCheck();
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
setStatus() {
|
|
267
|
-
this.status = this.getControlStatus(this.validateString);
|
|
268
|
-
this.innerTip = this.getInnerTip(this.status);
|
|
269
|
-
this.nzFormStatusService.formStatusChanges.next({ status: this.status, hasFeedback: this.nzHasFeedback });
|
|
270
|
-
if (this.nzFormItemComponent) {
|
|
271
|
-
this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip);
|
|
272
|
-
this.nzFormItemComponent.setStatus(this.status);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
getControlStatus(validateString) {
|
|
276
|
-
let status;
|
|
277
|
-
if (validateString === "warning" || this.validateControlStatus("INVALID", "warning")) {
|
|
278
|
-
status = "warning";
|
|
279
|
-
} else if (validateString === "error" || this.validateControlStatus("INVALID")) {
|
|
280
|
-
status = "error";
|
|
281
|
-
} else if (validateString === "validating" || validateString === "pending" || this.validateControlStatus("PENDING")) {
|
|
282
|
-
status = "validating";
|
|
283
|
-
} else if (validateString === "success" || this.validateControlStatus("VALID")) {
|
|
284
|
-
status = "success";
|
|
285
|
-
} else {
|
|
286
|
-
status = "";
|
|
287
|
-
}
|
|
288
|
-
return status;
|
|
289
|
-
}
|
|
290
|
-
validateControlStatus(validStatus, statusType) {
|
|
291
|
-
if (!this.validateControl) {
|
|
292
|
-
return false;
|
|
293
|
-
} else {
|
|
294
|
-
const { dirty, touched, status } = this.validateControl;
|
|
295
|
-
return (!!dirty || !!touched) && (statusType ? this.validateControl.hasError(statusType) : status === validStatus);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
getInnerTip(status) {
|
|
299
|
-
switch (status) {
|
|
300
|
-
case "error":
|
|
301
|
-
return !this.disableAutoTips && this.autoErrorTip || this.nzErrorTip || null;
|
|
302
|
-
case "validating":
|
|
303
|
-
return this.nzValidatingTip || null;
|
|
304
|
-
case "success":
|
|
305
|
-
return this.nzSuccessTip || null;
|
|
306
|
-
case "warning":
|
|
307
|
-
return this.nzWarningTip || null;
|
|
308
|
-
default:
|
|
309
|
-
return null;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
updateAutoErrorTip() {
|
|
313
|
-
if (this.validateControl) {
|
|
314
|
-
const errors = this.validateControl.errors || {};
|
|
315
|
-
let autoErrorTip = "";
|
|
316
|
-
for (const key in errors) {
|
|
317
|
-
if (errors.hasOwnProperty(key)) {
|
|
318
|
-
autoErrorTip = errors[key]?.[this.localeId] ?? this.nzAutoTips?.[this.localeId]?.[key] ?? this.nzAutoTips.default?.[key] ?? this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[key] ?? this.nzFormDirective?.nzAutoTips.default?.[key];
|
|
319
|
-
}
|
|
320
|
-
if (autoErrorTip) {
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
this.autoErrorTip = autoErrorTip;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
subscribeAutoTips(observable) {
|
|
328
|
-
observable?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
|
|
329
|
-
if (!this.disableAutoTips) {
|
|
330
|
-
this.updateAutoErrorTip();
|
|
331
|
-
this.setStatus();
|
|
332
|
-
this.cdr.markForCheck();
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
nzFormItemComponent = inject(NzFormItemComponent, { host: true, optional: true });
|
|
337
|
-
nzFormDirective = inject(NzFormDirective, { optional: true });
|
|
338
|
-
constructor() {
|
|
339
|
-
this.subscribeAutoTips(this.i18n.localeChange.pipe(tap((locale) => this.localeId = locale.locale)));
|
|
340
|
-
this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips"));
|
|
341
|
-
this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe(filter(() => this.nzDisableAutoTips === void 0)));
|
|
342
|
-
}
|
|
343
|
-
ngOnChanges(changes) {
|
|
344
|
-
const { nzDisableAutoTips, nzAutoTips, nzSuccessTip, nzWarningTip, nzErrorTip, nzValidatingTip } = changes;
|
|
345
|
-
if (nzDisableAutoTips || nzAutoTips) {
|
|
346
|
-
this.updateAutoErrorTip();
|
|
347
|
-
this.setStatus();
|
|
348
|
-
} else if (nzSuccessTip || nzWarningTip || nzErrorTip || nzValidatingTip) {
|
|
349
|
-
this.setStatus();
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
ngOnInit() {
|
|
353
|
-
this.setStatus();
|
|
354
|
-
}
|
|
355
|
-
ngAfterContentInit() {
|
|
356
|
-
if (!this.validateControl && !this.validateString) {
|
|
357
|
-
if (this.defaultValidateControl instanceof FormControlDirective) {
|
|
358
|
-
this.nzValidateStatus = this.defaultValidateControl.control;
|
|
359
|
-
} else {
|
|
360
|
-
this.nzValidateStatus = this.defaultValidateControl;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormControlComponent, deps: [], target: FactoryTarget.Component });
|
|
365
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _NzFormControlComponent, isStandalone: true, selector: "nz-form-control", inputs: { nzSuccessTip: "nzSuccessTip", nzWarningTip: "nzWarningTip", nzErrorTip: "nzErrorTip", nzValidatingTip: "nzValidatingTip", nzExtra: "nzExtra", nzAutoTips: "nzAutoTips", nzDisableAutoTips: ["nzDisableAutoTips", "nzDisableAutoTips", booleanAttribute], nzHasFeedback: ["nzHasFeedback", "nzHasFeedback", booleanAttribute], nzValidateStatus: "nzValidateStatus" }, host: { classAttribute: "ant-form-item-control" }, providers: [NzFormStatusService], queries: [{ propertyName: "defaultValidateControl", first: true, predicate: NgControl, descendants: true }], exportAs: ["nzFormControl"], usesOnChanges: true, ngImport: core_exports, template: `
|
|
366
|
-
<div class="ant-form-item-control-input">
|
|
367
|
-
<div class="ant-form-item-control-input-content">
|
|
368
|
-
<ng-content></ng-content>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
@if (innerTip) {
|
|
372
|
-
<div
|
|
373
|
-
@helpMotion
|
|
374
|
-
[@.disabled]="animationType === 'NoopAnimations'"
|
|
375
|
-
class="ant-form-item-explain ant-form-item-explain-connected"
|
|
376
|
-
>
|
|
377
|
-
<div role="alert" [class]="['ant-form-item-explain-' + status]">
|
|
378
|
-
<ng-container *nzStringTemplateOutlet="innerTip; context: { $implicit: validateControl }">{{
|
|
379
|
-
innerTip
|
|
380
|
-
}}</ng-container>
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
@if (nzExtra) {
|
|
386
|
-
<div class="ant-form-item-extra">
|
|
387
|
-
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
388
|
-
</div>
|
|
389
|
-
}
|
|
390
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], animations: [helpMotion], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
391
|
-
};
|
|
392
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormControlComponent, decorators: [{
|
|
393
|
-
type: Component,
|
|
394
|
-
args: [{
|
|
395
|
-
selector: "nz-form-control",
|
|
396
|
-
exportAs: "nzFormControl",
|
|
397
|
-
animations: [helpMotion],
|
|
398
|
-
encapsulation: ViewEncapsulation.None,
|
|
399
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
400
|
-
template: `
|
|
401
|
-
<div class="ant-form-item-control-input">
|
|
402
|
-
<div class="ant-form-item-control-input-content">
|
|
403
|
-
<ng-content></ng-content>
|
|
404
|
-
</div>
|
|
405
|
-
</div>
|
|
406
|
-
@if (innerTip) {
|
|
407
|
-
<div
|
|
408
|
-
@helpMotion
|
|
409
|
-
[@.disabled]="animationType === 'NoopAnimations'"
|
|
410
|
-
class="ant-form-item-explain ant-form-item-explain-connected"
|
|
411
|
-
>
|
|
412
|
-
<div role="alert" [class]="['ant-form-item-explain-' + status]">
|
|
413
|
-
<ng-container *nzStringTemplateOutlet="innerTip; context: { $implicit: validateControl }">{{
|
|
414
|
-
innerTip
|
|
415
|
-
}}</ng-container>
|
|
416
|
-
</div>
|
|
417
|
-
</div>
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
@if (nzExtra) {
|
|
421
|
-
<div class="ant-form-item-extra">
|
|
422
|
-
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
423
|
-
</div>
|
|
424
|
-
}
|
|
425
|
-
`,
|
|
426
|
-
providers: [NzFormStatusService],
|
|
427
|
-
host: {
|
|
428
|
-
class: "ant-form-item-control"
|
|
429
|
-
},
|
|
430
|
-
imports: [NzOutletModule]
|
|
431
|
-
}]
|
|
432
|
-
}], ctorParameters: () => [], propDecorators: { defaultValidateControl: [{
|
|
433
|
-
type: ContentChild,
|
|
434
|
-
args: [NgControl, { static: false }]
|
|
435
|
-
}], nzSuccessTip: [{
|
|
436
|
-
type: Input
|
|
437
|
-
}], nzWarningTip: [{
|
|
438
|
-
type: Input
|
|
439
|
-
}], nzErrorTip: [{
|
|
440
|
-
type: Input
|
|
441
|
-
}], nzValidatingTip: [{
|
|
442
|
-
type: Input
|
|
443
|
-
}], nzExtra: [{
|
|
444
|
-
type: Input
|
|
445
|
-
}], nzAutoTips: [{
|
|
446
|
-
type: Input
|
|
447
|
-
}], nzDisableAutoTips: [{
|
|
448
|
-
type: Input,
|
|
449
|
-
args: [{ transform: booleanAttribute }]
|
|
450
|
-
}], nzHasFeedback: [{
|
|
451
|
-
type: Input,
|
|
452
|
-
args: [{ transform: booleanAttribute }]
|
|
453
|
-
}], nzValidateStatus: [{
|
|
454
|
-
type: Input
|
|
455
|
-
}] } });
|
|
456
|
-
function toTooltipIcon(value) {
|
|
457
|
-
const icon = typeof value === "string" ? { type: value } : value;
|
|
458
|
-
return __spreadValues(__spreadValues({}, DefaultTooltipIcon), icon);
|
|
459
|
-
}
|
|
460
|
-
var NzFormLabelComponent = class _NzFormLabelComponent {
|
|
461
|
-
cdr = inject(ChangeDetectorRef);
|
|
462
|
-
nzFor;
|
|
463
|
-
nzRequired = false;
|
|
464
|
-
set nzNoColon(value) {
|
|
465
|
-
this.noColon = value;
|
|
466
|
-
}
|
|
467
|
-
get nzNoColon() {
|
|
468
|
-
return this.noColon !== "default" ? this.noColon : !!this.nzFormDirective?.nzNoColon;
|
|
469
|
-
}
|
|
470
|
-
noColon = "default";
|
|
471
|
-
nzTooltipTitle;
|
|
472
|
-
set nzTooltipIcon(value) {
|
|
473
|
-
this._tooltipIcon = toTooltipIcon(value);
|
|
474
|
-
}
|
|
475
|
-
// due to 'get' and 'set' accessor must have the same type, so it was renamed to `tooltipIcon`
|
|
476
|
-
get tooltipIcon() {
|
|
477
|
-
return this._tooltipIcon !== "default" ? this._tooltipIcon : toTooltipIcon(this.nzFormDirective?.nzTooltipIcon || DefaultTooltipIcon);
|
|
478
|
-
}
|
|
479
|
-
_tooltipIcon = "default";
|
|
480
|
-
set nzLabelAlign(value) {
|
|
481
|
-
this.labelAlign = value;
|
|
482
|
-
}
|
|
483
|
-
get nzLabelAlign() {
|
|
484
|
-
return this.labelAlign !== "default" ? this.labelAlign : this.nzFormDirective?.nzLabelAlign || "right";
|
|
485
|
-
}
|
|
486
|
-
labelAlign = "default";
|
|
487
|
-
set nzLabelWrap(value) {
|
|
488
|
-
this.labelWrap = value;
|
|
489
|
-
}
|
|
490
|
-
get nzLabelWrap() {
|
|
491
|
-
return this.labelWrap !== "default" ? this.labelWrap : !!this.nzFormDirective?.nzLabelWrap;
|
|
492
|
-
}
|
|
493
|
-
labelWrap = "default";
|
|
494
|
-
nzFormDirective = inject(NzFormDirective, { skipSelf: true, optional: true });
|
|
495
|
-
nzRequiredMark = this.nzFormDirective?.nzRequiredMark;
|
|
496
|
-
isNzRequiredMarkTemplate = computed(() => isTemplateRef(this.nzRequiredMark?.()), ...ngDevMode ? [{ debugName: "isNzRequiredMarkTemplate" }] : []);
|
|
497
|
-
constructor() {
|
|
498
|
-
if (this.nzFormDirective) {
|
|
499
|
-
this.nzFormDirective.getInputObservable("nzNoColon").pipe(filter(() => this.noColon === "default"), takeUntilDestroyed()).subscribe(() => this.cdr.markForCheck());
|
|
500
|
-
this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe(filter(() => this._tooltipIcon === "default"), takeUntilDestroyed()).subscribe(() => this.cdr.markForCheck());
|
|
501
|
-
this.nzFormDirective.getInputObservable("nzLabelAlign").pipe(filter(() => this.labelAlign === "default"), takeUntilDestroyed()).subscribe(() => this.cdr.markForCheck());
|
|
502
|
-
this.nzFormDirective.getInputObservable("nzLabelWrap").pipe(filter(() => this.labelWrap === "default"), takeUntilDestroyed()).subscribe(() => this.cdr.markForCheck());
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormLabelComponent, deps: [], target: FactoryTarget.Component });
|
|
506
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _NzFormLabelComponent, isStandalone: true, selector: "nz-form-label", inputs: { nzFor: "nzFor", nzRequired: ["nzRequired", "nzRequired", booleanAttribute], nzNoColon: ["nzNoColon", "nzNoColon", booleanAttribute], nzTooltipTitle: "nzTooltipTitle", nzTooltipIcon: "nzTooltipIcon", nzLabelAlign: "nzLabelAlign", nzLabelWrap: ["nzLabelWrap", "nzLabelWrap", booleanAttribute] }, host: { properties: { "class.ant-form-item-label-left": "nzLabelAlign === 'left'", "class.ant-form-item-label-wrap": "nzLabelWrap" }, classAttribute: "ant-form-item-label" }, exportAs: ["nzFormLabel"], ngImport: core_exports, template: `
|
|
507
|
-
<label
|
|
508
|
-
[attr.for]="nzFor"
|
|
509
|
-
[class.ant-form-item-no-colon]="nzNoColon"
|
|
510
|
-
[class.ant-form-item-required]="nzRequired"
|
|
511
|
-
[class.ant-form-item-required-mark-optional]="nzRequiredMark?.() === 'optional' || isNzRequiredMarkTemplate()"
|
|
512
|
-
[class.ant-form-item-required-mark-hidden]="nzRequiredMark?.() === false"
|
|
513
|
-
>
|
|
514
|
-
<ng-template #labelTemplate>
|
|
515
|
-
<ng-content />
|
|
516
|
-
@if (nzTooltipTitle) {
|
|
517
|
-
<span class="ant-form-item-tooltip" nz-tooltip [nzTooltipTitle]="nzTooltipTitle">
|
|
518
|
-
<ng-container *nzStringTemplateOutlet="tooltipIcon.type; let tooltipIconType">
|
|
519
|
-
<nz-icon [nzType]="tooltipIconType" [nzTheme]="tooltipIcon.theme" />
|
|
520
|
-
</ng-container>
|
|
521
|
-
</span>
|
|
522
|
-
}
|
|
523
|
-
@if (nzRequiredMark?.() === 'optional' && !nzRequired) {
|
|
524
|
-
<span class="ant-form-item-optional">{{ 'Form.optional' | nzI18n }}</span>
|
|
525
|
-
}
|
|
526
|
-
</ng-template>
|
|
527
|
-
|
|
528
|
-
@if (isNzRequiredMarkTemplate()) {
|
|
529
|
-
<ng-container
|
|
530
|
-
*ngTemplateOutlet="$any(nzRequiredMark!()); context: { required: nzRequired, $implicit: labelTemplate }"
|
|
531
|
-
/>
|
|
532
|
-
} @else {
|
|
533
|
-
<ng-container *ngTemplateOutlet="labelTemplate" />
|
|
534
|
-
}
|
|
535
|
-
</label>
|
|
536
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "directive", type: NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzI18nModule }, { kind: "pipe", type: NzI18nPipe, name: "nzI18n" }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
537
|
-
};
|
|
538
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormLabelComponent, decorators: [{
|
|
539
|
-
type: Component,
|
|
540
|
-
args: [{
|
|
541
|
-
selector: "nz-form-label",
|
|
542
|
-
exportAs: "nzFormLabel",
|
|
543
|
-
encapsulation: ViewEncapsulation.None,
|
|
544
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
545
|
-
template: `
|
|
546
|
-
<label
|
|
547
|
-
[attr.for]="nzFor"
|
|
548
|
-
[class.ant-form-item-no-colon]="nzNoColon"
|
|
549
|
-
[class.ant-form-item-required]="nzRequired"
|
|
550
|
-
[class.ant-form-item-required-mark-optional]="nzRequiredMark?.() === 'optional' || isNzRequiredMarkTemplate()"
|
|
551
|
-
[class.ant-form-item-required-mark-hidden]="nzRequiredMark?.() === false"
|
|
552
|
-
>
|
|
553
|
-
<ng-template #labelTemplate>
|
|
554
|
-
<ng-content />
|
|
555
|
-
@if (nzTooltipTitle) {
|
|
556
|
-
<span class="ant-form-item-tooltip" nz-tooltip [nzTooltipTitle]="nzTooltipTitle">
|
|
557
|
-
<ng-container *nzStringTemplateOutlet="tooltipIcon.type; let tooltipIconType">
|
|
558
|
-
<nz-icon [nzType]="tooltipIconType" [nzTheme]="tooltipIcon.theme" />
|
|
559
|
-
</ng-container>
|
|
560
|
-
</span>
|
|
561
|
-
}
|
|
562
|
-
@if (nzRequiredMark?.() === 'optional' && !nzRequired) {
|
|
563
|
-
<span class="ant-form-item-optional">{{ 'Form.optional' | nzI18n }}</span>
|
|
564
|
-
}
|
|
565
|
-
</ng-template>
|
|
566
|
-
|
|
567
|
-
@if (isNzRequiredMarkTemplate()) {
|
|
568
|
-
<ng-container
|
|
569
|
-
*ngTemplateOutlet="$any(nzRequiredMark!()); context: { required: nzRequired, $implicit: labelTemplate }"
|
|
570
|
-
/>
|
|
571
|
-
} @else {
|
|
572
|
-
<ng-container *ngTemplateOutlet="labelTemplate" />
|
|
573
|
-
}
|
|
574
|
-
</label>
|
|
575
|
-
`,
|
|
576
|
-
host: {
|
|
577
|
-
class: "ant-form-item-label",
|
|
578
|
-
"[class.ant-form-item-label-left]": `nzLabelAlign === 'left'`,
|
|
579
|
-
"[class.ant-form-item-label-wrap]": `nzLabelWrap`
|
|
580
|
-
},
|
|
581
|
-
imports: [NzOutletModule, NzTooltipDirective, NzIconModule, NgTemplateOutlet, NzI18nModule]
|
|
582
|
-
}]
|
|
583
|
-
}], ctorParameters: () => [], propDecorators: { nzFor: [{
|
|
584
|
-
type: Input
|
|
585
|
-
}], nzRequired: [{
|
|
586
|
-
type: Input,
|
|
587
|
-
args: [{ transform: booleanAttribute }]
|
|
588
|
-
}], nzNoColon: [{
|
|
589
|
-
type: Input,
|
|
590
|
-
args: [{ transform: booleanAttribute }]
|
|
591
|
-
}], nzTooltipTitle: [{
|
|
592
|
-
type: Input
|
|
593
|
-
}], nzTooltipIcon: [{
|
|
594
|
-
type: Input
|
|
595
|
-
}], nzLabelAlign: [{
|
|
596
|
-
type: Input
|
|
597
|
-
}], nzLabelWrap: [{
|
|
598
|
-
type: Input,
|
|
599
|
-
args: [{ transform: booleanAttribute }]
|
|
600
|
-
}] } });
|
|
601
|
-
var NzFormSplitComponent = class _NzFormSplitComponent {
|
|
602
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormSplitComponent, deps: [], target: FactoryTarget.Component });
|
|
603
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzFormSplitComponent, isStandalone: true, selector: "nz-form-split", host: { classAttribute: "ant-form-split" }, exportAs: ["nzFormSplit"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
604
|
-
};
|
|
605
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormSplitComponent, decorators: [{
|
|
606
|
-
type: Component,
|
|
607
|
-
args: [{
|
|
608
|
-
selector: "nz-form-split",
|
|
609
|
-
exportAs: "nzFormSplit",
|
|
610
|
-
encapsulation: ViewEncapsulation.None,
|
|
611
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
612
|
-
template: `<ng-content></ng-content>`,
|
|
613
|
-
host: {
|
|
614
|
-
class: "ant-form-split"
|
|
615
|
-
}
|
|
616
|
-
}]
|
|
617
|
-
}] });
|
|
618
|
-
var NzFormTextComponent = class _NzFormTextComponent {
|
|
619
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormTextComponent, deps: [], target: FactoryTarget.Component });
|
|
620
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzFormTextComponent, isStandalone: true, selector: "nz-form-text", host: { classAttribute: "ant-form-text" }, exportAs: ["nzFormText"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
621
|
-
};
|
|
622
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormTextComponent, decorators: [{
|
|
623
|
-
type: Component,
|
|
624
|
-
args: [{
|
|
625
|
-
selector: "nz-form-text",
|
|
626
|
-
exportAs: "nzFormText",
|
|
627
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
628
|
-
encapsulation: ViewEncapsulation.None,
|
|
629
|
-
template: `<ng-content></ng-content>`,
|
|
630
|
-
host: {
|
|
631
|
-
class: "ant-form-text"
|
|
632
|
-
}
|
|
633
|
-
}]
|
|
634
|
-
}] });
|
|
635
|
-
var NzFormModule = class _NzFormModule {
|
|
636
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormModule, deps: [], target: FactoryTarget.NgModule });
|
|
637
|
-
static \u0275mod = \u0275\u0275ngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormModule, imports: [
|
|
638
|
-
NzFormDirective,
|
|
639
|
-
NzFormItemComponent,
|
|
640
|
-
NzFormLabelComponent,
|
|
641
|
-
NzFormControlComponent,
|
|
642
|
-
NzFormTextComponent,
|
|
643
|
-
NzFormSplitComponent
|
|
644
|
-
], exports: [
|
|
645
|
-
NzGridModule,
|
|
646
|
-
NzFormDirective,
|
|
647
|
-
NzFormItemComponent,
|
|
648
|
-
NzFormLabelComponent,
|
|
649
|
-
NzFormControlComponent,
|
|
650
|
-
NzFormTextComponent,
|
|
651
|
-
NzFormSplitComponent
|
|
652
|
-
] });
|
|
653
|
-
static \u0275inj = \u0275\u0275ngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFormModule, imports: [
|
|
654
|
-
NzFormLabelComponent,
|
|
655
|
-
NzFormControlComponent,
|
|
656
|
-
NzGridModule
|
|
657
|
-
] });
|
|
658
|
-
};
|
|
659
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFormModule, decorators: [{
|
|
660
|
-
type: NgModule,
|
|
661
|
-
args: [{
|
|
662
|
-
imports: [
|
|
663
|
-
NzFormDirective,
|
|
664
|
-
NzFormItemComponent,
|
|
665
|
-
NzFormLabelComponent,
|
|
666
|
-
NzFormControlComponent,
|
|
667
|
-
NzFormTextComponent,
|
|
668
|
-
NzFormSplitComponent
|
|
669
|
-
],
|
|
670
|
-
exports: [
|
|
671
|
-
NzGridModule,
|
|
672
|
-
NzFormDirective,
|
|
673
|
-
NzFormItemComponent,
|
|
674
|
-
NzFormLabelComponent,
|
|
675
|
-
NzFormControlComponent,
|
|
676
|
-
NzFormTextComponent,
|
|
677
|
-
NzFormSplitComponent
|
|
678
|
-
]
|
|
679
|
-
}]
|
|
680
|
-
}] });
|
|
681
|
-
|
|
682
|
-
export {
|
|
683
|
-
NzFormModule
|
|
684
|
-
};
|
|
685
|
-
//# sourceMappingURL=chunk-P5CWA4FO.js.map
|