@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-code-editor.mjs"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport { NgTemplateOutlet } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, DOCUMENT, Injectable, NgZone, DestroyRef, EventEmitter, ElementRef, forwardRef, booleanAttribute, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ReplaySubject, BehaviorSubject, of, Subject, combineLatest } from 'rxjs';\nimport { tap, map, debounceTime, filter, distinctUntilChanged } from 'rxjs/operators';\nimport { warn, PREFIX } from 'ng-zorro-antd/core/logger';\nimport { inNextTick, fromEventOutsideAngular } from 'ng-zorro-antd/core/util';\nimport { NzSpinComponent } from 'ng-zorro-antd/spin';\nimport { NzConfigService, onConfigChangeEventForComponent } from 'ng-zorro-antd/core/config';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst NzCodeEditorLoadingStatus = {\n UNLOAD: 'unload',\n LOADING: 'loading',\n LOADED: 'LOADED'\n};\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst NZ_CONFIG_MODULE_NAME = 'codeEditor';\nfunction tryTriggerFunc(fn) {\n return (...args) => {\n if (fn) {\n fn(...args);\n }\n };\n}\n// Caretaker note: previously, these were `NzCodeEditorService` properties.\n// They're kept as static variables because this will allow loading Monaco only once.\n// This applies to micro frontend apps with multiple Angular apps or a single Angular app\n// that can be bootstrapped and destroyed multiple times (e.g. using Webpack module federation).\n// Root providers are re-initialized each time the app is bootstrapped. Platform providers aren't.\n// We can't make the `NzCodeEditorService` to be a platform provider (`@Injectable({ providedIn: 'platform' })`)\n// since it depends on other root providers.\nconst loaded$ = new ReplaySubject(1);\nlet loadingStatus = NzCodeEditorLoadingStatus.UNLOAD;\nclass NzCodeEditorService {\n nzConfigService = inject(NzConfigService);\n document = inject(DOCUMENT);\n firstEditorInitialized = false;\n option = {};\n config;\n option$ = new BehaviorSubject(this.option);\n constructor() {\n const globalConfig = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME);\n this.config = { ...globalConfig };\n if (this.config.monacoEnvironment) {\n window.MonacoEnvironment = { ...this.config.monacoEnvironment };\n }\n this.option = this.config.defaultEditorOption || {};\n onConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME, () => {\n const newGlobalConfig = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME);\n if (newGlobalConfig) {\n this._updateDefaultOption(newGlobalConfig.defaultEditorOption);\n }\n });\n }\n _updateDefaultOption(option) {\n this.option = { ...this.option, ...option };\n this.option$.next(this.option);\n if ('theme' in option && option.theme) {\n monaco.editor.setTheme(option.theme);\n }\n }\n requestToInit() {\n if (loadingStatus === NzCodeEditorLoadingStatus.LOADED) {\n this.onInit();\n return of(this.getLatestOption());\n }\n if (loadingStatus === NzCodeEditorLoadingStatus.UNLOAD) {\n if (this.config.useStaticLoading && typeof monaco === 'undefined') {\n warn('You choose to use static loading but it seems that you forget ' +\n 'to config webpack plugin correctly. Please refer to our official website' +\n 'for more details about static loading.');\n }\n else {\n this.loadMonacoScript();\n }\n }\n return loaded$.pipe(tap(() => this.onInit()), map(() => this.getLatestOption()));\n }\n loadMonacoScript() {\n if (this.config.useStaticLoading) {\n Promise.resolve().then(() => this.onLoad());\n return;\n }\n if (loadingStatus === NzCodeEditorLoadingStatus.LOADING) {\n return;\n }\n loadingStatus = NzCodeEditorLoadingStatus.LOADING;\n const assetsRoot = this.config.assetsRoot;\n const vs = assetsRoot ? `${assetsRoot}/vs` : 'assets/vs';\n const windowAsAny = window;\n const loadScript = this.document.createElement('script');\n loadScript.type = 'text/javascript';\n loadScript.src = `${vs}/loader.js`;\n const onLoad = () => {\n cleanup();\n windowAsAny.require.config({\n paths: { vs },\n ...this.config.extraConfig\n });\n windowAsAny.require(['vs/editor/editor.main'], () => {\n this.onLoad();\n });\n };\n const onError = () => {\n cleanup();\n throw new Error(`${PREFIX} cannot load assets of monaco editor from source \"${vs}\".`);\n };\n const cleanup = () => {\n // Caretaker note: we have to remove these listeners once the `<script>` is loaded successfully\n // or not since the `onLoad` listener captures `this`, which will prevent the `NzCodeEditorService`\n // from being garbage collected.\n loadScript.removeEventListener('load', onLoad);\n loadScript.removeEventListener('error', onError);\n // We don't need to keep the `<script>` element within the `<body>` since JavaScript has\n // been executed and Monaco is available globally. E.g. Webpack, always removes `<script>`\n // elements after loading chunks (see its `LoadScriptRuntimeModule`).\n this.document.documentElement.removeChild(loadScript);\n };\n loadScript.addEventListener('load', onLoad);\n loadScript.addEventListener('error', onError);\n this.document.documentElement.appendChild(loadScript);\n }\n onLoad() {\n loadingStatus = NzCodeEditorLoadingStatus.LOADED;\n loaded$.next(true);\n loaded$.complete();\n tryTriggerFunc(this.config.onLoad)();\n }\n onInit() {\n if (!this.firstEditorInitialized) {\n this.firstEditorInitialized = true;\n tryTriggerFunc(this.config.onFirstEditorInit)();\n }\n tryTriggerFunc(this.config.onInit)();\n }\n getLatestOption() {\n return { ...this.option };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzCodeEditorComponent {\n nzCodeEditorService = inject(NzCodeEditorService);\n ngZone = inject(NgZone);\n platform = inject(Platform);\n destroyRef = inject(DestroyRef);\n nzEditorMode = 'normal';\n nzOriginalText = '';\n nzLoading = false;\n nzFullControl = false;\n nzToolkit;\n set nzEditorOption(value) {\n this.editorOption$.next(value);\n }\n nzEditorInitialized = new EventEmitter();\n editorOptionCached = {};\n el = inject((ElementRef)).nativeElement;\n resize$ = new Subject();\n editorOption$ = new BehaviorSubject({});\n editorInstance = null;\n value = '';\n modelSet = false;\n onDidChangeContentDisposable = null;\n constructor() {\n this.el.classList.add('ant-code-editor');\n this.destroyRef.onDestroy(() => {\n if (this.onDidChangeContentDisposable) {\n this.onDidChangeContentDisposable.dispose();\n this.onDidChangeContentDisposable = null;\n }\n if (this.editorInstance) {\n this.editorInstance.dispose();\n this.editorInstance = null;\n }\n });\n }\n /**\n * Initialize a monaco editor instance.\n */\n ngAfterViewInit() {\n if (!this.platform.isBrowser) {\n return;\n }\n this.nzCodeEditorService\n .requestToInit()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(option => this.setup(option));\n }\n writeValue(value) {\n this.value = value;\n this.setValue();\n }\n registerOnChange(fn) {\n this.onChange = fn;\n }\n registerOnTouched(fn) {\n this.onTouch = fn;\n }\n onChange = (_value) => { };\n onTouch = () => { };\n layout() {\n this.resize$.next();\n }\n setup(option) {\n // The `setup()` is invoked when the Monaco editor is loaded. This may happen asynchronously for the first\n // time, and it'll always happen synchronously afterwards. The first `setup()` invokation is outside the Angular\n // zone, but further invokations will happen within the Angular zone. We call the `setModel()` on the editor\n // instance, which tells Monaco to add event listeners lazily internally (`mousemove`, `mouseout`, etc.).\n // We should avoid adding them within the Angular zone since this will drastically affect the performance.\n this.ngZone.runOutsideAngular(() => inNextTick()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.editorOptionCached = option;\n this.registerOptionChanges();\n this.initMonacoEditorInstance();\n this.registerResizeChange();\n this.setValue();\n if (!this.nzFullControl) {\n this.setValueEmitter();\n }\n if (this.nzEditorInitialized.observers.length) {\n this.ngZone.run(() => this.nzEditorInitialized.emit(this.editorInstance));\n }\n }));\n }\n registerOptionChanges() {\n combineLatest([this.editorOption$, this.nzCodeEditorService.option$])\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(([selfOpt, defaultOpt]) => {\n this.editorOptionCached = {\n ...this.editorOptionCached,\n ...defaultOpt,\n ...selfOpt\n };\n this.updateOptionToMonaco();\n });\n }\n initMonacoEditorInstance() {\n this.ngZone.runOutsideAngular(() => {\n this.editorInstance =\n this.nzEditorMode === 'normal'\n ? monaco.editor.create(this.el, { ...this.editorOptionCached })\n : monaco.editor.createDiffEditor(this.el, {\n ...this.editorOptionCached\n });\n });\n }\n registerResizeChange() {\n fromEventOutsideAngular(window, 'resize')\n .pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.layout();\n });\n this.resize$\n .pipe(takeUntilDestroyed(this.destroyRef), filter(() => !!this.editorInstance), map(() => ({\n width: this.el.clientWidth,\n height: this.el.clientHeight\n })), distinctUntilChanged((a, b) => a.width === b.width && a.height === b.height), debounceTime(50))\n .subscribe(() => {\n this.editorInstance.layout();\n });\n }\n setValue() {\n if (!this.editorInstance) {\n return;\n }\n if (this.nzFullControl && this.value) {\n warn(`should not set value when you are using full control mode! It would result in ambiguous data flow!`);\n return;\n }\n if (this.nzEditorMode === 'normal') {\n if (this.modelSet) {\n const model = this.editorInstance.getModel();\n this.preservePositionAndSelections(() => model.setValue(this.value));\n }\n else {\n this.editorInstance.setModel(monaco.editor.createModel(this.value, this.editorOptionCached.language));\n this.modelSet = true;\n }\n }\n else {\n if (this.modelSet) {\n const model = this.editorInstance.getModel();\n this.preservePositionAndSelections(() => {\n model.modified.setValue(this.value);\n model.original.setValue(this.nzOriginalText);\n });\n }\n else {\n const language = this.editorOptionCached.language;\n this.editorInstance.setModel({\n original: monaco.editor.createModel(this.nzOriginalText, language),\n modified: monaco.editor.createModel(this.value, language)\n });\n this.modelSet = true;\n }\n }\n }\n /**\n * {@link editor.ICodeEditor}#setValue resets the cursor position to the start of the document.\n * This helper memorizes the cursor position and selections and restores them after the given\n * function has been called.\n */\n preservePositionAndSelections(fn) {\n if (!this.editorInstance) {\n fn();\n return;\n }\n const position = this.editorInstance.getPosition();\n const selections = this.editorInstance.getSelections();\n fn();\n if (position) {\n this.editorInstance.setPosition(position);\n }\n if (selections) {\n this.editorInstance.setSelections(selections);\n }\n }\n setValueEmitter() {\n const model = (this.nzEditorMode === 'normal'\n ? this.editorInstance.getModel()\n : this.editorInstance.getModel().modified);\n // The `onDidChangeContent` returns a disposable object (an object with `dispose()` method) which will cleanup\n // the listener. The callback, that we pass to `onDidChangeContent`, captures `this`. This leads to a circular reference\n // (`nz-code-editor -> monaco -> nz-code-editor`) and prevents the `nz-code-editor` from being GC'd.\n this.onDidChangeContentDisposable = model.onDidChangeContent(() => {\n this.emitValue(model.getValue());\n });\n }\n emitValue(value) {\n if (this.value === value) {\n // If the value didn't change there's no reason to send an update.\n // Specifically this may happen during an update from the model (writeValue) where sending an update to the model would actually be incorrect.\n return;\n }\n this.value = value;\n // We're re-entering the Angular zone only if the value has been changed since there's a `return` expression previously.\n // This won't cause \"dead\" change detections (basically when the `tick()` has been run, but there's nothing to update).\n this.ngZone.run(() => {\n this.onChange(value);\n });\n }\n updateOptionToMonaco() {\n if (this.editorInstance) {\n this.editorInstance.updateOptions({ ...this.editorOptionCached });\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.0\", type: NzCodeEditorComponent, isStandalone: true, selector: \"nz-code-editor\", inputs: { nzEditorMode: \"nzEditorMode\", nzOriginalText: \"nzOriginalText\", nzLoading: [\"nzLoading\", \"nzLoading\", booleanAttribute], nzFullControl: [\"nzFullControl\", \"nzFullControl\", booleanAttribute], nzToolkit: \"nzToolkit\", nzEditorOption: \"nzEditorOption\" }, outputs: { nzEditorInitialized: \"nzEditorInitialized\" }, providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NzCodeEditorComponent),\n multi: true\n }\n ], exportAs: [\"nzCodeEditor\"], ngImport: i0, template: `\n @if (nzLoading) {\n <div class=\"ant-code-editor-loading\">\n <nz-spin />\n </div>\n }\n @if (nzToolkit) {\n <div class=\"ant-code-editor-toolkit\">\n <ng-template [ngTemplateOutlet]=\"nzToolkit\" />\n </div>\n }\n `, isInline: true, dependencies: [{ kind: \"component\", type: NzSpinComponent, selector: \"nz-spin\", inputs: [\"nzIndicator\", \"nzSize\", \"nzTip\", \"nzDelay\", \"nzSimple\", \"nzSpinning\"], exportAs: [\"nzSpin\"] }, { kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorComponent, decorators: [{\n type: Component,\n args: [{\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'nz-code-editor',\n exportAs: 'nzCodeEditor',\n template: `\n @if (nzLoading) {\n <div class=\"ant-code-editor-loading\">\n <nz-spin />\n </div>\n }\n @if (nzToolkit) {\n <div class=\"ant-code-editor-toolkit\">\n <ng-template [ngTemplateOutlet]=\"nzToolkit\" />\n </div>\n }\n `,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NzCodeEditorComponent),\n multi: true\n }\n ],\n imports: [NzSpinComponent, NgTemplateOutlet]\n }]\n }], ctorParameters: () => [], propDecorators: { nzEditorMode: [{\n type: Input\n }], nzOriginalText: [{\n type: Input\n }], nzLoading: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzFullControl: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzToolkit: [{\n type: Input\n }], nzEditorOption: [{\n type: Input\n }], nzEditorInitialized: [{\n type: Output\n }] } });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzCodeEditorModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorModule, imports: [NzCodeEditorComponent], exports: [NzCodeEditorComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorModule, imports: [NzCodeEditorComponent] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzCodeEditorModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NzCodeEditorComponent],\n exports: [NzCodeEditorComponent]\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzCodeEditorComponent, NzCodeEditorLoadingStatus, NzCodeEditorModule, NzCodeEditorService };\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAM,4BAA4B;AAAA,EAC9B,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AACZ;AAMA,IAAM,wBAAwB;AAC9B,SAAS,eAAe,IAAI;AACxB,SAAO,IAAI,SAAS;AAChB,QAAI,IAAI;AACJ,SAAG,GAAG,IAAI;AAAA,IACd;AAAA,EACJ;AACJ;AAQA,IAAM,UAAU,IAAI,cAAc,CAAC;AACnC,IAAI,gBAAgB,0BAA0B;AAC9C,IAAM,sBAAN,MAAM,qBAAoB;AAAA,EACtB,kBAAkB,OAAO,eAAe;AAAA,EACxC,WAAW,OAAO,QAAQ;AAAA,EAC1B,yBAAyB;AAAA,EACzB,SAAS,CAAC;AAAA,EACV;AAAA,EACA,UAAU,IAAI,gBAAgB,KAAK,MAAM;AAAA,EACzC,cAAc;AACV,UAAM,eAAe,KAAK,gBAAgB,sBAAsB,qBAAqB;AACrF,SAAK,SAAS,mBAAK;AACnB,QAAI,KAAK,OAAO,mBAAmB;AAC/B,aAAO,oBAAoB,mBAAK,KAAK,OAAO;AAAA,IAChD;AACA,SAAK,SAAS,KAAK,OAAO,uBAAuB,CAAC;AAClD,oCAAgC,uBAAuB,MAAM;AACzD,YAAM,kBAAkB,KAAK,gBAAgB,sBAAsB,qBAAqB;AACxF,UAAI,iBAAiB;AACjB,aAAK,qBAAqB,gBAAgB,mBAAmB;AAAA,MACjE;AAAA,IACJ,CAAC;AAAA,EACL;A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,GAAG,eAAe,CAAC;AAAA,EAChB,MAAM;AAAA,EACN,MAAM,CAAC,EAAE,WAAW,iBAAiB,CAAC;AAC1C,CAAC,GAAG,WAAW,CAAC;AAAA,EACZ,MAAM;AACV,CAAC,GAAG,gBAAgB,CAAC;AAAA,EACjB,MAAM;AACV,CAAC,GAAG,qBAAqB,CAAC;AAAA,EACtB,MAAM;AACV,CAAC,EAAE,EAAE,CAAC;AAMlB,IAAM,qBAAN,MAAM,oBAAmB;AAAA,EACrB,OAAO,YAAU,6BAAmB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,qBAAoB,MAAM,CAAC,GAAG,QAAW,cAAgB,SAAS,CAAC;AAAA,EACtK,OAAO,YAAU,8BAAoB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,qBAAoB,SAAS,CAAC,qBAAqB,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC;AAAA,EAC5L,OAAO,YAAU,8BAAoB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,qBAAoB,SAAS,CAAC,qBAAqB,EAAE,CAAC;AAC9J;AACG,mCAAyB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,oBAAoB,YAAY,CAAC;AAAA,EAChH,MAAM;AAAA,EACN,MAAM,CAAC;AAAA,IACC,SAAS,CAAC,qBAAqB;AAAA,IAC/B,SAAS,CAAC,qBAAqB;AAAA,EACnC,CAAC;AACT,CAAC,EAAE,CAAC;","names":[],"x_google_ignoreList":[0]}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Directionality,
|
|
3
|
-
WithConfig,
|
|
4
|
-
onConfigChangeEventForComponent,
|
|
5
|
-
takeUntilDestroyed
|
|
6
|
-
} from "./chunk-RUXJCM3V.js";
|
|
7
|
-
import {
|
|
8
|
-
NgTemplateOutlet
|
|
9
|
-
} from "./chunk-3MCIETCQ.js";
|
|
10
|
-
import {
|
|
11
|
-
BehaviorSubject,
|
|
12
|
-
ChangeDetectorRef,
|
|
13
|
-
Component,
|
|
14
|
-
DestroyRef,
|
|
15
|
-
FactoryTarget,
|
|
16
|
-
Input,
|
|
17
|
-
NgModule,
|
|
18
|
-
Observable,
|
|
19
|
-
ReplaySubject,
|
|
20
|
-
ViewEncapsulation,
|
|
21
|
-
__esDecorate,
|
|
22
|
-
__publicField,
|
|
23
|
-
__runInitializers,
|
|
24
|
-
booleanAttribute,
|
|
25
|
-
core_exports,
|
|
26
|
-
distinctUntilChanged,
|
|
27
|
-
inject,
|
|
28
|
-
numberAttribute,
|
|
29
|
-
of,
|
|
30
|
-
signal,
|
|
31
|
-
startWith,
|
|
32
|
-
switchMap,
|
|
33
|
-
ɵɵngDeclareClassMetadata,
|
|
34
|
-
ɵɵngDeclareComponent,
|
|
35
|
-
ɵɵngDeclareFactory,
|
|
36
|
-
ɵɵngDeclareInjector,
|
|
37
|
-
ɵɵngDeclareNgModule
|
|
38
|
-
} from "./chunk-XQY5SPGI.js";
|
|
39
|
-
|
|
40
|
-
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-spin.mjs
|
|
41
|
-
var NZ_CONFIG_MODULE_NAME = "spin";
|
|
42
|
-
var NzSpinComponent = (() => {
|
|
43
|
-
var _a;
|
|
44
|
-
let _nzIndicator_decorators;
|
|
45
|
-
let _nzIndicator_initializers = [];
|
|
46
|
-
let _nzIndicator_extraInitializers = [];
|
|
47
|
-
return _a = class {
|
|
48
|
-
_nzModuleName = NZ_CONFIG_MODULE_NAME;
|
|
49
|
-
cdr = inject(ChangeDetectorRef);
|
|
50
|
-
directionality = inject(Directionality);
|
|
51
|
-
destroyRef = inject(DestroyRef);
|
|
52
|
-
nzIndicator = __runInitializers(this, _nzIndicator_initializers, null);
|
|
53
|
-
nzSize = (__runInitializers(this, _nzIndicator_extraInitializers), "default");
|
|
54
|
-
nzTip = null;
|
|
55
|
-
nzDelay = 0;
|
|
56
|
-
nzSimple = false;
|
|
57
|
-
nzSpinning = true;
|
|
58
|
-
spinning$ = new BehaviorSubject(this.nzSpinning);
|
|
59
|
-
delay$ = new ReplaySubject(1);
|
|
60
|
-
isLoading = signal(false, ...ngDevMode ? [{ debugName: "isLoading" }] : []);
|
|
61
|
-
dir = "ltr";
|
|
62
|
-
constructor() {
|
|
63
|
-
onConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME, () => this.cdr.markForCheck());
|
|
64
|
-
}
|
|
65
|
-
ngOnInit() {
|
|
66
|
-
this.delay$.pipe(startWith(this.nzDelay), distinctUntilChanged(), switchMap((delay) => (
|
|
67
|
-
// This construct is used to reduce RxJS dependencies.
|
|
68
|
-
// It previously used `debounce(() => timer())`, but consumers may not
|
|
69
|
-
// use these RxJS functions at all, causing them to still be bundled
|
|
70
|
-
// into the main bundle unnecessarily.
|
|
71
|
-
this.spinning$.pipe(switchMap((spinning) => {
|
|
72
|
-
if (delay === 0 || !spinning) {
|
|
73
|
-
return of(spinning);
|
|
74
|
-
}
|
|
75
|
-
return new Observable((subscriber) => {
|
|
76
|
-
const timeoutId = setTimeout(() => subscriber.next(spinning), delay);
|
|
77
|
-
return () => clearTimeout(timeoutId);
|
|
78
|
-
});
|
|
79
|
-
}))
|
|
80
|
-
)), takeUntilDestroyed(this.destroyRef)).subscribe((isLoading) => {
|
|
81
|
-
this.isLoading.set(isLoading);
|
|
82
|
-
});
|
|
83
|
-
this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((direction) => {
|
|
84
|
-
this.dir = direction;
|
|
85
|
-
this.cdr.detectChanges();
|
|
86
|
-
});
|
|
87
|
-
this.dir = this.directionality.value;
|
|
88
|
-
}
|
|
89
|
-
ngOnChanges(changes) {
|
|
90
|
-
const { nzSpinning, nzDelay } = changes;
|
|
91
|
-
if (nzSpinning) {
|
|
92
|
-
this.spinning$.next(this.nzSpinning);
|
|
93
|
-
}
|
|
94
|
-
if (nzDelay) {
|
|
95
|
-
this.delay$.next(this.nzDelay);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}, (() => {
|
|
99
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? /* @__PURE__ */ Object.create(null) : void 0;
|
|
100
|
-
_nzIndicator_decorators = [WithConfig()];
|
|
101
|
-
__esDecorate(null, null, _nzIndicator_decorators, { kind: "field", name: "nzIndicator", static: false, private: false, access: { has: (obj) => "nzIndicator" in obj, get: (obj) => obj.nzIndicator, set: (obj, value) => {
|
|
102
|
-
obj.nzIndicator = value;
|
|
103
|
-
} }, metadata: _metadata }, _nzIndicator_initializers, _nzIndicator_extraInitializers);
|
|
104
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
105
|
-
})(), __publicField(_a, "\u0275fac", \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _a, deps: [], target: FactoryTarget.Component })), __publicField(_a, "\u0275cmp", \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _a, isStandalone: true, selector: "nz-spin", inputs: { nzIndicator: "nzIndicator", nzSize: "nzSize", nzTip: "nzTip", nzDelay: ["nzDelay", "nzDelay", numberAttribute], nzSimple: ["nzSimple", "nzSimple", booleanAttribute], nzSpinning: ["nzSpinning", "nzSpinning", booleanAttribute] }, host: { properties: { "class.ant-spin-nested-loading": "!nzSimple" } }, exportAs: ["nzSpin"], usesOnChanges: true, ngImport: core_exports, template: `
|
|
106
|
-
<ng-template #defaultTemplate>
|
|
107
|
-
<span class="ant-spin-dot ant-spin-dot-spin">
|
|
108
|
-
<i class="ant-spin-dot-item"></i>
|
|
109
|
-
<i class="ant-spin-dot-item"></i>
|
|
110
|
-
<i class="ant-spin-dot-item"></i>
|
|
111
|
-
<i class="ant-spin-dot-item"></i>
|
|
112
|
-
</span>
|
|
113
|
-
</ng-template>
|
|
114
|
-
@if (isLoading()) {
|
|
115
|
-
<div>
|
|
116
|
-
<div
|
|
117
|
-
class="ant-spin ant-spin-spinning"
|
|
118
|
-
[class.ant-spin-rtl]="dir === 'rtl'"
|
|
119
|
-
[class.ant-spin-lg]="nzSize === 'large'"
|
|
120
|
-
[class.ant-spin-sm]="nzSize === 'small'"
|
|
121
|
-
[class.ant-spin-show-text]="nzTip"
|
|
122
|
-
>
|
|
123
|
-
<ng-template [ngTemplateOutlet]="nzIndicator || defaultTemplate"></ng-template>
|
|
124
|
-
@if (nzTip) {
|
|
125
|
-
<div class="ant-spin-text">{{ nzTip }}</div>
|
|
126
|
-
}
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
}
|
|
130
|
-
@if (!nzSimple) {
|
|
131
|
-
<div class="ant-spin-container" [class.ant-spin-blur]="isLoading()">
|
|
132
|
-
<ng-content></ng-content>
|
|
133
|
-
</div>
|
|
134
|
-
}
|
|
135
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: ViewEncapsulation.None })), _a;
|
|
136
|
-
})();
|
|
137
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzSpinComponent, decorators: [{
|
|
138
|
-
type: Component,
|
|
139
|
-
args: [{
|
|
140
|
-
selector: "nz-spin",
|
|
141
|
-
exportAs: "nzSpin",
|
|
142
|
-
encapsulation: ViewEncapsulation.None,
|
|
143
|
-
template: `
|
|
144
|
-
<ng-template #defaultTemplate>
|
|
145
|
-
<span class="ant-spin-dot ant-spin-dot-spin">
|
|
146
|
-
<i class="ant-spin-dot-item"></i>
|
|
147
|
-
<i class="ant-spin-dot-item"></i>
|
|
148
|
-
<i class="ant-spin-dot-item"></i>
|
|
149
|
-
<i class="ant-spin-dot-item"></i>
|
|
150
|
-
</span>
|
|
151
|
-
</ng-template>
|
|
152
|
-
@if (isLoading()) {
|
|
153
|
-
<div>
|
|
154
|
-
<div
|
|
155
|
-
class="ant-spin ant-spin-spinning"
|
|
156
|
-
[class.ant-spin-rtl]="dir === 'rtl'"
|
|
157
|
-
[class.ant-spin-lg]="nzSize === 'large'"
|
|
158
|
-
[class.ant-spin-sm]="nzSize === 'small'"
|
|
159
|
-
[class.ant-spin-show-text]="nzTip"
|
|
160
|
-
>
|
|
161
|
-
<ng-template [ngTemplateOutlet]="nzIndicator || defaultTemplate"></ng-template>
|
|
162
|
-
@if (nzTip) {
|
|
163
|
-
<div class="ant-spin-text">{{ nzTip }}</div>
|
|
164
|
-
}
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
}
|
|
168
|
-
@if (!nzSimple) {
|
|
169
|
-
<div class="ant-spin-container" [class.ant-spin-blur]="isLoading()">
|
|
170
|
-
<ng-content></ng-content>
|
|
171
|
-
</div>
|
|
172
|
-
}
|
|
173
|
-
`,
|
|
174
|
-
host: {
|
|
175
|
-
"[class.ant-spin-nested-loading]": "!nzSimple"
|
|
176
|
-
},
|
|
177
|
-
imports: [NgTemplateOutlet]
|
|
178
|
-
}]
|
|
179
|
-
}], ctorParameters: () => [], propDecorators: { nzIndicator: [{
|
|
180
|
-
type: Input
|
|
181
|
-
}], nzSize: [{
|
|
182
|
-
type: Input
|
|
183
|
-
}], nzTip: [{
|
|
184
|
-
type: Input
|
|
185
|
-
}], nzDelay: [{
|
|
186
|
-
type: Input,
|
|
187
|
-
args: [{ transform: numberAttribute }]
|
|
188
|
-
}], nzSimple: [{
|
|
189
|
-
type: Input,
|
|
190
|
-
args: [{ transform: booleanAttribute }]
|
|
191
|
-
}], nzSpinning: [{
|
|
192
|
-
type: Input,
|
|
193
|
-
args: [{ transform: booleanAttribute }]
|
|
194
|
-
}] } });
|
|
195
|
-
var NzSpinModule = class _NzSpinModule {
|
|
196
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzSpinModule, deps: [], target: FactoryTarget.NgModule });
|
|
197
|
-
static \u0275mod = \u0275\u0275ngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: core_exports, type: _NzSpinModule, imports: [NzSpinComponent], exports: [NzSpinComponent] });
|
|
198
|
-
static \u0275inj = \u0275\u0275ngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzSpinModule });
|
|
199
|
-
};
|
|
200
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzSpinModule, decorators: [{
|
|
201
|
-
type: NgModule,
|
|
202
|
-
args: [{
|
|
203
|
-
imports: [NzSpinComponent],
|
|
204
|
-
exports: [NzSpinComponent]
|
|
205
|
-
}]
|
|
206
|
-
}] });
|
|
207
|
-
|
|
208
|
-
export {
|
|
209
|
-
NzSpinComponent,
|
|
210
|
-
NzSpinModule
|
|
211
|
-
};
|
|
212
|
-
//# sourceMappingURL=chunk-EQOY6A3M.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-spin.mjs"],"sourcesContent":["import { __esDecorate, __runInitializers } from 'tslib';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { NgTemplateOutlet } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, ChangeDetectorRef, DestroyRef, signal, booleanAttribute, numberAttribute, Input, ViewEncapsulation, Component, NgModule } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { BehaviorSubject, ReplaySubject, of, Observable } from 'rxjs';\nimport { startWith, distinctUntilChanged, switchMap } from 'rxjs/operators';\nimport { WithConfig, onConfigChangeEventForComponent } from 'ng-zorro-antd/core/config';\n\nconst NZ_CONFIG_MODULE_NAME = 'spin';\nlet NzSpinComponent = (() => {\n let _nzIndicator_decorators;\n let _nzIndicator_initializers = [];\n let _nzIndicator_extraInitializers = [];\n return class NzSpinComponent {\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(null) : void 0;\n _nzIndicator_decorators = [WithConfig()];\n __esDecorate(null, null, _nzIndicator_decorators, { kind: \"field\", name: \"nzIndicator\", static: false, private: false, access: { has: obj => \"nzIndicator\" in obj, get: obj => obj.nzIndicator, set: (obj, value) => { obj.nzIndicator = value; } }, metadata: _metadata }, _nzIndicator_initializers, _nzIndicator_extraInitializers);\n if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n }\n _nzModuleName = NZ_CONFIG_MODULE_NAME;\n cdr = inject(ChangeDetectorRef);\n directionality = inject(Directionality);\n destroyRef = inject(DestroyRef);\n nzIndicator = __runInitializers(this, _nzIndicator_initializers, null);\n nzSize = (__runInitializers(this, _nzIndicator_extraInitializers), 'default');\n nzTip = null;\n nzDelay = 0;\n nzSimple = false;\n nzSpinning = true;\n spinning$ = new BehaviorSubject(this.nzSpinning);\n delay$ = new ReplaySubject(1);\n isLoading = signal(false, ...(ngDevMode ? [{ debugName: \"isLoading\" }] : []));\n dir = 'ltr';\n constructor() {\n onConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME, () => this.cdr.markForCheck());\n }\n ngOnInit() {\n this.delay$\n .pipe(startWith(this.nzDelay), distinctUntilChanged(), switchMap(delay => \n // This construct is used to reduce RxJS dependencies.\n // It previously used `debounce(() => timer())`, but consumers may not\n // use these RxJS functions at all, causing them to still be bundled\n // into the main bundle unnecessarily.\n this.spinning$.pipe(switchMap(spinning => {\n if (delay === 0 || !spinning) {\n return of(spinning);\n }\n return new Observable(subscriber => {\n const timeoutId = setTimeout(() => subscriber.next(spinning), delay);\n return () => clearTimeout(timeoutId);\n });\n }))), takeUntilDestroyed(this.destroyRef))\n .subscribe(isLoading => {\n this.isLoading.set(isLoading);\n });\n this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(direction => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n this.dir = this.directionality.value;\n }\n ngOnChanges(changes) {\n const { nzSpinning, nzDelay } = changes;\n if (nzSpinning) {\n this.spinning$.next(this.nzSpinning);\n }\n if (nzDelay) {\n this.delay$.next(this.nzDelay);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.0\", type: NzSpinComponent, isStandalone: true, selector: \"nz-spin\", inputs: { nzIndicator: \"nzIndicator\", nzSize: \"nzSize\", nzTip: \"nzTip\", nzDelay: [\"nzDelay\", \"nzDelay\", numberAttribute], nzSimple: [\"nzSimple\", \"nzSimple\", booleanAttribute], nzSpinning: [\"nzSpinning\", \"nzSpinning\", booleanAttribute] }, host: { properties: { \"class.ant-spin-nested-loading\": \"!nzSimple\" } }, exportAs: [\"nzSpin\"], usesOnChanges: true, ngImport: i0, template: `\n <ng-template #defaultTemplate>\n <span class=\"ant-spin-dot ant-spin-dot-spin\">\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n </span>\n </ng-template>\n @if (isLoading()) {\n <div>\n <div\n class=\"ant-spin ant-spin-spinning\"\n [class.ant-spin-rtl]=\"dir === 'rtl'\"\n [class.ant-spin-lg]=\"nzSize === 'large'\"\n [class.ant-spin-sm]=\"nzSize === 'small'\"\n [class.ant-spin-show-text]=\"nzTip\"\n >\n <ng-template [ngTemplateOutlet]=\"nzIndicator || defaultTemplate\"></ng-template>\n @if (nzTip) {\n <div class=\"ant-spin-text\">{{ nzTip }}</div>\n }\n </div>\n </div>\n }\n @if (!nzSimple) {\n <div class=\"ant-spin-container\" [class.ant-spin-blur]=\"isLoading()\">\n <ng-content></ng-content>\n </div>\n }\n `, isInline: true, dependencies: [{ kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }], encapsulation: i0.ViewEncapsulation.None });\n };\n})();\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-spin',\n exportAs: 'nzSpin',\n encapsulation: ViewEncapsulation.None,\n template: `\n <ng-template #defaultTemplate>\n <span class=\"ant-spin-dot ant-spin-dot-spin\">\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n <i class=\"ant-spin-dot-item\"></i>\n </span>\n </ng-template>\n @if (isLoading()) {\n <div>\n <div\n class=\"ant-spin ant-spin-spinning\"\n [class.ant-spin-rtl]=\"dir === 'rtl'\"\n [class.ant-spin-lg]=\"nzSize === 'large'\"\n [class.ant-spin-sm]=\"nzSize === 'small'\"\n [class.ant-spin-show-text]=\"nzTip\"\n >\n <ng-template [ngTemplateOutlet]=\"nzIndicator || defaultTemplate\"></ng-template>\n @if (nzTip) {\n <div class=\"ant-spin-text\">{{ nzTip }}</div>\n }\n </div>\n </div>\n }\n @if (!nzSimple) {\n <div class=\"ant-spin-container\" [class.ant-spin-blur]=\"isLoading()\">\n <ng-content></ng-content>\n </div>\n }\n `,\n host: {\n '[class.ant-spin-nested-loading]': '!nzSimple'\n },\n imports: [NgTemplateOutlet]\n }]\n }], ctorParameters: () => [], propDecorators: { nzIndicator: [{\n type: Input\n }], nzSize: [{\n type: Input\n }], nzTip: [{\n type: Input\n }], nzDelay: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], nzSimple: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzSpinning: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }] } });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzSpinModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinModule, imports: [NzSpinComponent], exports: [NzSpinComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinModule });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSpinModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NzSpinComponent],\n exports: [NzSpinComponent]\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzSpinComponent, NzSpinModule };\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAM,wBAAwB;AAC9B,IAAI,mBAAmB,MAAM;AAX7B;AAYI,MAAI;AACJ,MAAI,4BAA4B,CAAC;AACjC,MAAI,iCAAiC,CAAC;AACtC,SAAO,WAAsB;AAAA,IAOzB,gBAAgB;AAAA,IAChB,MAAM,OAAO,iBAAiB;AAAA,IAC9B,iBAAiB,OAAO,cAAc;AAAA,IACtC,aAAa,OAAO,UAAU;AAAA,IAC9B,cAAc,kBAAkB,MAAM,2BAA2B,IAAI;AAAA,IACrE,UAAU,kBAAkB,MAAM,8BAA8B,GAAG;AAAA,IACnE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,IACb,YAAY,IAAI,gBAAgB,KAAK,UAAU;AAAA,IAC/C,SAAS,IAA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