@yinuo-ngm/server 1.0.15 → 1.0.16
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/plugins/error-handler.plugin.js +5 -0
- package/lib/routes/api-client/hub-token.routes.js +22 -0
- package/lib/routes/index.js +2 -0
- 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 +5 -0
- package/lib/routes/sprite-browse.routes.js +19 -5
- package/lib/routes/sprite.routes.js +17 -11
- package/lib/routes/static-files.routes.js +16 -0
- package/lib/routes/task.routes.js +7 -0
- package/package.json +3 -3
- package/www/3rdpartylicenses.txt +14 -66
- package/www/browser/chunk-2BZRE4G7.js +1 -0
- package/www/browser/chunk-2X3MRS27.js +1 -0
- package/www/browser/chunk-4KETC6EB.js +1 -0
- package/www/browser/chunk-5T5KA5PG.js +1 -0
- package/www/browser/chunk-6CGHNKJI.js +1 -0
- package/www/browser/chunk-76TVIB33.js +63 -0
- package/www/browser/chunk-7J24TP36.js +1 -0
- package/www/browser/chunk-ACAZUX6C.js +1 -0
- package/www/browser/chunk-B6MBYCXI.js +1 -0
- package/www/browser/chunk-BYEU6KGP.js +2 -0
- package/www/browser/chunk-CZ5AZ3VW.js +1 -0
- package/www/browser/chunk-DW7F5PEA.js +1 -0
- package/www/browser/chunk-DXF7BVK5.js +1 -0
- package/www/browser/chunk-EEVPZGEY.js +1 -0
- package/www/browser/chunk-G2W3B7TJ.js +1 -0
- package/www/browser/chunk-GDWS2L66.js +1 -0
- package/www/browser/chunk-HFZLJHYR.js +1 -0
- package/www/browser/chunk-HGONFYP6.js +1 -0
- package/www/browser/chunk-HHBPULJW.js +2 -0
- package/www/browser/chunk-HRXCR3IN.js +1 -0
- package/www/browser/chunk-INL2PELS.js +1 -0
- package/www/browser/chunk-JHMEKUZ5.js +1 -0
- package/www/browser/chunk-JU3TEDBV.js +37 -0
- package/www/browser/chunk-JZULA5JV.js +1 -0
- package/www/browser/chunk-KVFR7GFV.js +20 -0
- package/www/browser/chunk-L5D75AMV.js +1 -0
- package/www/browser/chunk-L7TMCSHV.js +1 -0
- package/www/browser/chunk-LQ5OXSW7.js +3 -0
- package/www/browser/chunk-MVQTKINJ.js +1 -0
- package/www/browser/chunk-N4LRZJBP.js +1 -0
- package/www/browser/chunk-O2EYEF7J.js +1 -0
- package/www/browser/chunk-OMDHJIUB.js +1 -0
- package/www/browser/chunk-OWUAAOHW.js +2 -0
- package/www/browser/chunk-PIK5YPIB.js +1 -0
- package/www/browser/chunk-RHLQRQDK.js +9 -0
- package/www/browser/chunk-RW2JPJV7.js +1 -0
- package/www/browser/chunk-S3SJ4VVM.js +11 -0
- package/www/browser/chunk-SIVPP74B.js +0 -0
- package/www/browser/chunk-SPRWNZHF.js +15 -0
- package/www/browser/chunk-SQQNR223.js +1 -0
- package/www/browser/chunk-SVQWPHF5.js +1 -0
- package/www/browser/chunk-SYCNSLAW.js +4 -0
- package/www/browser/chunk-T3KK7ZXB.js +2 -0
- package/www/browser/chunk-TMX5TTV3.js +1 -0
- package/www/browser/chunk-UFY3FLDK.js +1 -0
- package/www/browser/chunk-UJOHBN2Y.js +1 -0
- package/www/browser/chunk-UQGCUFNM.js +1 -0
- package/www/browser/chunk-UXXWRMM6.js +1 -0
- package/www/browser/chunk-UZRJGJTD.js +2 -0
- package/www/browser/chunk-WD4IAQR3.js +1 -0
- package/www/browser/chunk-WF2QTF5L.js +1 -0
- package/www/browser/chunk-WI67LAOV.js +4 -0
- package/www/browser/chunk-WNCM6QKB.js +1 -0
- package/www/browser/chunk-XJ5KZQNN.js +1 -0
- package/www/browser/chunk-YETDFSQE.js +1 -0
- package/www/browser/chunk-YMTC5GZK.js +1 -0
- package/www/browser/chunk-YVZHJ76K.js +1 -0
- package/www/browser/chunk-ZNTJRLVH.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-6LN5C22E.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,728 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CdkPortalOutlet,
|
|
3
|
-
CdkScrollable,
|
|
4
|
-
ComponentPortal,
|
|
5
|
-
Directionality,
|
|
6
|
-
ESCAPE,
|
|
7
|
-
FocusTrapFactory,
|
|
8
|
-
NzConfigService,
|
|
9
|
-
NzIconDirective,
|
|
10
|
-
NzIconModule,
|
|
11
|
-
NzNoAnimationDirective,
|
|
12
|
-
NzOutletModule,
|
|
13
|
-
NzStringTemplateOutletDirective,
|
|
14
|
-
OverlayKeyboardDispatcher,
|
|
15
|
-
PortalModule,
|
|
16
|
-
TemplatePortal,
|
|
17
|
-
WithConfig,
|
|
18
|
-
createBlockScrollStrategy,
|
|
19
|
-
createGlobalPositionStrategy,
|
|
20
|
-
createOverlayRef,
|
|
21
|
-
drawerMaskMotion,
|
|
22
|
-
isTemplateRef,
|
|
23
|
-
overlayZIndexSetter,
|
|
24
|
-
takeUntilDestroyed,
|
|
25
|
-
toCssPixel
|
|
26
|
-
} from "./chunk-RUXJCM3V.js";
|
|
27
|
-
import {
|
|
28
|
-
NgTemplateOutlet
|
|
29
|
-
} from "./chunk-3MCIETCQ.js";
|
|
30
|
-
import {
|
|
31
|
-
ChangeDetectionStrategy,
|
|
32
|
-
ChangeDetectorRef,
|
|
33
|
-
Component,
|
|
34
|
-
ContentChild,
|
|
35
|
-
DOCUMENT,
|
|
36
|
-
DestroyRef,
|
|
37
|
-
Directive,
|
|
38
|
-
EventEmitter,
|
|
39
|
-
FactoryTarget,
|
|
40
|
-
Injectable,
|
|
41
|
-
InjectionToken,
|
|
42
|
-
Injector,
|
|
43
|
-
Input,
|
|
44
|
-
NgModule,
|
|
45
|
-
Output,
|
|
46
|
-
Renderer2,
|
|
47
|
-
Subject,
|
|
48
|
-
TemplateRef,
|
|
49
|
-
Type,
|
|
50
|
-
ViewChild,
|
|
51
|
-
ViewContainerRef,
|
|
52
|
-
__esDecorate,
|
|
53
|
-
__objRest,
|
|
54
|
-
__publicField,
|
|
55
|
-
__runInitializers,
|
|
56
|
-
booleanAttribute,
|
|
57
|
-
core_exports,
|
|
58
|
-
inject,
|
|
59
|
-
takeUntil,
|
|
60
|
-
ɵɵngDeclareClassMetadata,
|
|
61
|
-
ɵɵngDeclareComponent,
|
|
62
|
-
ɵɵngDeclareDirective,
|
|
63
|
-
ɵɵngDeclareFactory,
|
|
64
|
-
ɵɵngDeclareInjectable,
|
|
65
|
-
ɵɵngDeclareInjector,
|
|
66
|
-
ɵɵngDeclareNgModule
|
|
67
|
-
} from "./chunk-XQY5SPGI.js";
|
|
68
|
-
|
|
69
|
-
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-drawer.mjs
|
|
70
|
-
var NzDrawerContentDirective = class _NzDrawerContentDirective {
|
|
71
|
-
templateRef = inject(TemplateRef);
|
|
72
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerContentDirective, deps: [], target: FactoryTarget.Directive });
|
|
73
|
-
static \u0275dir = \u0275\u0275ngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: _NzDrawerContentDirective, isStandalone: true, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"], ngImport: core_exports });
|
|
74
|
-
};
|
|
75
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzDrawerContentDirective, decorators: [{
|
|
76
|
-
type: Directive,
|
|
77
|
-
args: [{
|
|
78
|
-
selector: "[nzDrawerContent]",
|
|
79
|
-
exportAs: "nzDrawerContent"
|
|
80
|
-
}]
|
|
81
|
-
}] });
|
|
82
|
-
var DRAWER_DEFAULT_SIZE = 378;
|
|
83
|
-
var DRAWER_LARGE_SIZE = 736;
|
|
84
|
-
var NZ_DRAWER_DATA = new InjectionToken(typeof ngDevMode !== "undefined" && ngDevMode ? "nz-drawer-data" : "");
|
|
85
|
-
var NzDrawerRef = class {
|
|
86
|
-
};
|
|
87
|
-
var DRAWER_ANIMATE_DURATION = 300;
|
|
88
|
-
var NZ_CONFIG_MODULE_NAME = "drawer";
|
|
89
|
-
var NzDrawerComponent = (() => {
|
|
90
|
-
var _a;
|
|
91
|
-
let _classSuper = NzDrawerRef;
|
|
92
|
-
let _nzMaskClosable_decorators;
|
|
93
|
-
let _nzMaskClosable_initializers = [];
|
|
94
|
-
let _nzMaskClosable_extraInitializers = [];
|
|
95
|
-
let _nzMask_decorators;
|
|
96
|
-
let _nzMask_initializers = [];
|
|
97
|
-
let _nzMask_extraInitializers = [];
|
|
98
|
-
let _nzCloseOnNavigation_decorators;
|
|
99
|
-
let _nzCloseOnNavigation_initializers = [];
|
|
100
|
-
let _nzCloseOnNavigation_extraInitializers = [];
|
|
101
|
-
let _nzDirection_decorators;
|
|
102
|
-
let _nzDirection_initializers = [];
|
|
103
|
-
let _nzDirection_extraInitializers = [];
|
|
104
|
-
return _a = class extends _classSuper {
|
|
105
|
-
cdr = inject(ChangeDetectorRef);
|
|
106
|
-
nzConfigService = inject(NzConfigService);
|
|
107
|
-
renderer = inject(Renderer2);
|
|
108
|
-
injector = inject(Injector);
|
|
109
|
-
changeDetectorRef = inject(ChangeDetectorRef);
|
|
110
|
-
focusTrapFactory = inject(FocusTrapFactory);
|
|
111
|
-
viewContainerRef = inject(ViewContainerRef);
|
|
112
|
-
overlayKeyboardDispatcher = inject(OverlayKeyboardDispatcher);
|
|
113
|
-
directionality = inject(Directionality);
|
|
114
|
-
destroyRef = inject(DestroyRef);
|
|
115
|
-
_nzModuleName = NZ_CONFIG_MODULE_NAME;
|
|
116
|
-
nzContent;
|
|
117
|
-
nzCloseIcon = "close";
|
|
118
|
-
nzClosable = true;
|
|
119
|
-
nzMaskClosable = __runInitializers(this, _nzMaskClosable_initializers, true);
|
|
120
|
-
nzMask = (__runInitializers(this, _nzMaskClosable_extraInitializers), __runInitializers(this, _nzMask_initializers, true));
|
|
121
|
-
nzCloseOnNavigation = (__runInitializers(this, _nzMask_extraInitializers), __runInitializers(this, _nzCloseOnNavigation_initializers, true));
|
|
122
|
-
nzNoAnimation = (__runInitializers(this, _nzCloseOnNavigation_extraInitializers), false);
|
|
123
|
-
nzKeyboard = true;
|
|
124
|
-
nzTitle;
|
|
125
|
-
nzExtra;
|
|
126
|
-
nzFooter;
|
|
127
|
-
nzPlacement = "right";
|
|
128
|
-
nzSize = "default";
|
|
129
|
-
nzMaskStyle = {};
|
|
130
|
-
nzBodyStyle = {};
|
|
131
|
-
nzWrapClassName;
|
|
132
|
-
nzWidth;
|
|
133
|
-
nzHeight;
|
|
134
|
-
nzZIndex = 1e3;
|
|
135
|
-
nzOffsetX = 0;
|
|
136
|
-
nzOffsetY = 0;
|
|
137
|
-
componentInstance = null;
|
|
138
|
-
componentRef = null;
|
|
139
|
-
set nzVisible(value) {
|
|
140
|
-
this.isOpen = value;
|
|
141
|
-
}
|
|
142
|
-
get nzVisible() {
|
|
143
|
-
return this.isOpen;
|
|
144
|
-
}
|
|
145
|
-
nzOnViewInit = new EventEmitter();
|
|
146
|
-
nzOnClose = new EventEmitter();
|
|
147
|
-
nzVisibleChange = new EventEmitter();
|
|
148
|
-
drawerTemplate;
|
|
149
|
-
bodyPortalOutlet;
|
|
150
|
-
contentFromContentChild;
|
|
151
|
-
previouslyFocusedElement;
|
|
152
|
-
placementChanging = false;
|
|
153
|
-
placementChangeTimeoutId;
|
|
154
|
-
nzContentParams;
|
|
155
|
-
// only service
|
|
156
|
-
nzData;
|
|
157
|
-
overlayRef;
|
|
158
|
-
portal;
|
|
159
|
-
focusTrap;
|
|
160
|
-
isOpen = false;
|
|
161
|
-
inAnimation = false;
|
|
162
|
-
templateContext = {
|
|
163
|
-
$implicit: void 0,
|
|
164
|
-
drawerRef: this
|
|
165
|
-
};
|
|
166
|
-
isTemplateRef = isTemplateRef;
|
|
167
|
-
get offsetTransform() {
|
|
168
|
-
if (!this.isOpen || this.nzOffsetX + this.nzOffsetY === 0) {
|
|
169
|
-
return null;
|
|
170
|
-
}
|
|
171
|
-
switch (this.nzPlacement) {
|
|
172
|
-
case "left":
|
|
173
|
-
return `translateX(${this.nzOffsetX}px)`;
|
|
174
|
-
case "right":
|
|
175
|
-
return `translateX(-${this.nzOffsetX}px)`;
|
|
176
|
-
case "top":
|
|
177
|
-
return `translateY(${this.nzOffsetY}px)`;
|
|
178
|
-
case "bottom":
|
|
179
|
-
return `translateY(-${this.nzOffsetY}px)`;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
get transform() {
|
|
183
|
-
if (this.isOpen) {
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
switch (this.nzPlacement) {
|
|
187
|
-
case "left":
|
|
188
|
-
return `translateX(-100%)`;
|
|
189
|
-
case "right":
|
|
190
|
-
return `translateX(100%)`;
|
|
191
|
-
case "top":
|
|
192
|
-
return `translateY(-100%)`;
|
|
193
|
-
case "bottom":
|
|
194
|
-
return `translateY(100%)`;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
get width() {
|
|
198
|
-
if (this.isLeftOrRight) {
|
|
199
|
-
const defaultWidth = this.nzSize === "large" ? DRAWER_LARGE_SIZE : DRAWER_DEFAULT_SIZE;
|
|
200
|
-
return this.nzWidth === void 0 ? toCssPixel(defaultWidth) : toCssPixel(this.nzWidth);
|
|
201
|
-
}
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
get height() {
|
|
205
|
-
if (!this.isLeftOrRight) {
|
|
206
|
-
const defaultHeight = this.nzSize === "large" ? DRAWER_LARGE_SIZE : DRAWER_DEFAULT_SIZE;
|
|
207
|
-
return this.nzHeight === void 0 ? toCssPixel(defaultHeight) : toCssPixel(this.nzHeight);
|
|
208
|
-
}
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
get isLeftOrRight() {
|
|
212
|
-
return this.nzPlacement === "left" || this.nzPlacement === "right";
|
|
213
|
-
}
|
|
214
|
-
nzAfterOpen = new Subject();
|
|
215
|
-
nzAfterClose = new Subject();
|
|
216
|
-
get afterOpen() {
|
|
217
|
-
return this.nzAfterOpen.asObservable();
|
|
218
|
-
}
|
|
219
|
-
get afterClose() {
|
|
220
|
-
return this.nzAfterClose.asObservable();
|
|
221
|
-
}
|
|
222
|
-
get isNzContentTemplateRef() {
|
|
223
|
-
return isTemplateRef(this.nzContent);
|
|
224
|
-
}
|
|
225
|
-
// from service config
|
|
226
|
-
nzDirection = __runInitializers(this, _nzDirection_initializers, void 0);
|
|
227
|
-
dir = (__runInitializers(this, _nzDirection_extraInitializers), "ltr");
|
|
228
|
-
document = inject(DOCUMENT);
|
|
229
|
-
constructor() {
|
|
230
|
-
super();
|
|
231
|
-
this.destroyRef.onDestroy(() => {
|
|
232
|
-
clearTimeout(this.placementChangeTimeoutId);
|
|
233
|
-
this.disposeOverlay();
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
ngOnInit() {
|
|
237
|
-
this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((direction) => {
|
|
238
|
-
this.dir = direction;
|
|
239
|
-
this.cdr.detectChanges();
|
|
240
|
-
});
|
|
241
|
-
this.dir = this.nzDirection || this.directionality.value;
|
|
242
|
-
this.attachOverlay();
|
|
243
|
-
this.updateOverlayStyle();
|
|
244
|
-
this.updateBodyOverflow();
|
|
245
|
-
this.templateContext = { $implicit: this.nzData || this.nzContentParams, drawerRef: this };
|
|
246
|
-
this.changeDetectorRef.detectChanges();
|
|
247
|
-
}
|
|
248
|
-
ngAfterViewInit() {
|
|
249
|
-
this.attachBodyContent();
|
|
250
|
-
if (this.nzOnViewInit.observers.length) {
|
|
251
|
-
setTimeout(() => {
|
|
252
|
-
this.nzOnViewInit.emit();
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
ngOnChanges(changes) {
|
|
257
|
-
const { nzPlacement, nzVisible } = changes;
|
|
258
|
-
if (nzVisible) {
|
|
259
|
-
const value = changes.nzVisible.currentValue;
|
|
260
|
-
if (value) {
|
|
261
|
-
this.open();
|
|
262
|
-
} else {
|
|
263
|
-
this.close();
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (nzPlacement && !nzPlacement.isFirstChange()) {
|
|
267
|
-
this.triggerPlacementChangeCycleOnce();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
getAnimationDuration() {
|
|
271
|
-
return this.nzNoAnimation ? 0 : DRAWER_ANIMATE_DURATION;
|
|
272
|
-
}
|
|
273
|
-
// Disable the transition animation temporarily when the placement changing
|
|
274
|
-
triggerPlacementChangeCycleOnce() {
|
|
275
|
-
if (!this.nzNoAnimation) {
|
|
276
|
-
this.placementChanging = true;
|
|
277
|
-
this.changeDetectorRef.markForCheck();
|
|
278
|
-
clearTimeout(this.placementChangeTimeoutId);
|
|
279
|
-
this.placementChangeTimeoutId = setTimeout(() => {
|
|
280
|
-
this.placementChanging = false;
|
|
281
|
-
this.changeDetectorRef.markForCheck();
|
|
282
|
-
}, this.getAnimationDuration());
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
close(result) {
|
|
286
|
-
this.isOpen = false;
|
|
287
|
-
this.inAnimation = true;
|
|
288
|
-
this.nzVisibleChange.emit(false);
|
|
289
|
-
this.updateOverlayStyle();
|
|
290
|
-
this.overlayKeyboardDispatcher.remove(this.overlayRef);
|
|
291
|
-
this.changeDetectorRef.detectChanges();
|
|
292
|
-
setTimeout(() => {
|
|
293
|
-
this.updateBodyOverflow();
|
|
294
|
-
this.restoreFocus();
|
|
295
|
-
this.inAnimation = false;
|
|
296
|
-
this.nzAfterClose.next(result);
|
|
297
|
-
this.nzAfterClose.complete();
|
|
298
|
-
this.componentInstance = null;
|
|
299
|
-
this.componentRef = null;
|
|
300
|
-
}, this.getAnimationDuration());
|
|
301
|
-
}
|
|
302
|
-
open() {
|
|
303
|
-
this.attachOverlay();
|
|
304
|
-
this.isOpen = true;
|
|
305
|
-
this.inAnimation = true;
|
|
306
|
-
this.nzVisibleChange.emit(true);
|
|
307
|
-
this.overlayKeyboardDispatcher.add(this.overlayRef);
|
|
308
|
-
this.updateOverlayStyle();
|
|
309
|
-
this.updateBodyOverflow();
|
|
310
|
-
this.savePreviouslyFocusedElement();
|
|
311
|
-
this.trapFocus();
|
|
312
|
-
this.changeDetectorRef.detectChanges();
|
|
313
|
-
setTimeout(() => {
|
|
314
|
-
this.inAnimation = false;
|
|
315
|
-
this.changeDetectorRef.detectChanges();
|
|
316
|
-
this.nzAfterOpen.next();
|
|
317
|
-
}, this.getAnimationDuration());
|
|
318
|
-
}
|
|
319
|
-
getContentComponent() {
|
|
320
|
-
return this.componentInstance;
|
|
321
|
-
}
|
|
322
|
-
getContentComponentRef() {
|
|
323
|
-
return this.componentRef;
|
|
324
|
-
}
|
|
325
|
-
closeClick() {
|
|
326
|
-
this.nzOnClose.emit();
|
|
327
|
-
}
|
|
328
|
-
maskClick() {
|
|
329
|
-
if (this.nzMaskClosable && this.nzMask) {
|
|
330
|
-
this.nzOnClose.emit();
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
attachBodyContent() {
|
|
334
|
-
this.bodyPortalOutlet.dispose();
|
|
335
|
-
if (this.nzContent instanceof Type) {
|
|
336
|
-
const childInjector = Injector.create({
|
|
337
|
-
parent: this.injector,
|
|
338
|
-
providers: [
|
|
339
|
-
{ provide: NzDrawerRef, useValue: this },
|
|
340
|
-
{ provide: NZ_DRAWER_DATA, useValue: this.nzData }
|
|
341
|
-
]
|
|
342
|
-
});
|
|
343
|
-
const componentPortal = new ComponentPortal(this.nzContent, null, childInjector);
|
|
344
|
-
this.componentRef = this.bodyPortalOutlet.attachComponentPortal(componentPortal);
|
|
345
|
-
this.componentInstance = this.componentRef.instance;
|
|
346
|
-
Object.assign(this.componentRef.instance, this.nzData || this.nzContentParams);
|
|
347
|
-
this.componentRef.changeDetectorRef.detectChanges();
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
attachOverlay() {
|
|
351
|
-
if (!this.overlayRef) {
|
|
352
|
-
this.portal = new TemplatePortal(this.drawerTemplate, this.viewContainerRef);
|
|
353
|
-
this.overlayRef = createOverlayRef(this.injector, {
|
|
354
|
-
disposeOnNavigation: this.nzCloseOnNavigation,
|
|
355
|
-
positionStrategy: createGlobalPositionStrategy(this.injector),
|
|
356
|
-
scrollStrategy: createBlockScrollStrategy(this.injector)
|
|
357
|
-
});
|
|
358
|
-
overlayZIndexSetter(this.overlayRef, this.nzZIndex);
|
|
359
|
-
}
|
|
360
|
-
if (this.overlayRef && !this.overlayRef.hasAttached()) {
|
|
361
|
-
this.overlayRef.attach(this.portal);
|
|
362
|
-
this.overlayRef.keydownEvents().pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
363
|
-
if (event.keyCode === ESCAPE && this.isOpen && this.nzKeyboard) {
|
|
364
|
-
this.nzOnClose.emit();
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
this.overlayRef.detachments().pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
|
|
368
|
-
this.close();
|
|
369
|
-
this.disposeOverlay();
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
disposeOverlay() {
|
|
374
|
-
this.overlayRef?.dispose();
|
|
375
|
-
this.overlayRef = null;
|
|
376
|
-
}
|
|
377
|
-
updateOverlayStyle() {
|
|
378
|
-
if (this.overlayRef && this.overlayRef.overlayElement) {
|
|
379
|
-
this.renderer.setStyle(this.overlayRef.overlayElement, "pointer-events", this.isOpen ? "auto" : "none");
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
updateBodyOverflow() {
|
|
383
|
-
if (this.overlayRef) {
|
|
384
|
-
if (this.isOpen) {
|
|
385
|
-
this.overlayRef.getConfig().scrollStrategy.enable();
|
|
386
|
-
} else {
|
|
387
|
-
this.overlayRef.getConfig().scrollStrategy.disable();
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
savePreviouslyFocusedElement() {
|
|
392
|
-
if (this.document && !this.previouslyFocusedElement) {
|
|
393
|
-
this.previouslyFocusedElement = this.document.activeElement;
|
|
394
|
-
if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.blur === "function") {
|
|
395
|
-
this.previouslyFocusedElement.blur();
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
trapFocus() {
|
|
400
|
-
if (!this.focusTrap && this.overlayRef && this.overlayRef.overlayElement) {
|
|
401
|
-
this.focusTrap = this.focusTrapFactory.create(this.overlayRef.overlayElement);
|
|
402
|
-
this.focusTrap.focusInitialElement();
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
restoreFocus() {
|
|
406
|
-
if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.focus === "function") {
|
|
407
|
-
this.previouslyFocusedElement.focus();
|
|
408
|
-
this.previouslyFocusedElement = void 0;
|
|
409
|
-
}
|
|
410
|
-
if (this.focusTrap) {
|
|
411
|
-
this.focusTrap.destroy();
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}, (() => {
|
|
415
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
416
|
-
_nzMaskClosable_decorators = [WithConfig()];
|
|
417
|
-
_nzMask_decorators = [WithConfig()];
|
|
418
|
-
_nzCloseOnNavigation_decorators = [WithConfig()];
|
|
419
|
-
_nzDirection_decorators = [WithConfig()];
|
|
420
|
-
__esDecorate(null, null, _nzMaskClosable_decorators, { kind: "field", name: "nzMaskClosable", static: false, private: false, access: { has: (obj) => "nzMaskClosable" in obj, get: (obj) => obj.nzMaskClosable, set: (obj, value) => {
|
|
421
|
-
obj.nzMaskClosable = value;
|
|
422
|
-
} }, metadata: _metadata }, _nzMaskClosable_initializers, _nzMaskClosable_extraInitializers);
|
|
423
|
-
__esDecorate(null, null, _nzMask_decorators, { kind: "field", name: "nzMask", static: false, private: false, access: { has: (obj) => "nzMask" in obj, get: (obj) => obj.nzMask, set: (obj, value) => {
|
|
424
|
-
obj.nzMask = value;
|
|
425
|
-
} }, metadata: _metadata }, _nzMask_initializers, _nzMask_extraInitializers);
|
|
426
|
-
__esDecorate(null, null, _nzCloseOnNavigation_decorators, { kind: "field", name: "nzCloseOnNavigation", static: false, private: false, access: { has: (obj) => "nzCloseOnNavigation" in obj, get: (obj) => obj.nzCloseOnNavigation, set: (obj, value) => {
|
|
427
|
-
obj.nzCloseOnNavigation = value;
|
|
428
|
-
} }, metadata: _metadata }, _nzCloseOnNavigation_initializers, _nzCloseOnNavigation_extraInitializers);
|
|
429
|
-
__esDecorate(null, null, _nzDirection_decorators, { kind: "field", name: "nzDirection", static: false, private: false, access: { has: (obj) => "nzDirection" in obj, get: (obj) => obj.nzDirection, set: (obj, value) => {
|
|
430
|
-
obj.nzDirection = value;
|
|
431
|
-
} }, metadata: _metadata }, _nzDirection_initializers, _nzDirection_extraInitializers);
|
|
432
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
433
|
-
})(), __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-drawer", inputs: { nzContent: "nzContent", nzCloseIcon: "nzCloseIcon", nzClosable: ["nzClosable", "nzClosable", booleanAttribute], nzMaskClosable: ["nzMaskClosable", "nzMaskClosable", booleanAttribute], nzMask: ["nzMask", "nzMask", booleanAttribute], nzCloseOnNavigation: ["nzCloseOnNavigation", "nzCloseOnNavigation", booleanAttribute], nzNoAnimation: ["nzNoAnimation", "nzNoAnimation", booleanAttribute], nzKeyboard: ["nzKeyboard", "nzKeyboard", booleanAttribute], nzTitle: "nzTitle", nzExtra: "nzExtra", nzFooter: "nzFooter", nzPlacement: "nzPlacement", nzSize: "nzSize", nzMaskStyle: "nzMaskStyle", nzBodyStyle: "nzBodyStyle", nzWrapClassName: "nzWrapClassName", nzWidth: "nzWidth", nzHeight: "nzHeight", nzZIndex: "nzZIndex", nzOffsetX: "nzOffsetX", nzOffsetY: "nzOffsetY", nzVisible: ["nzVisible", "nzVisible", booleanAttribute] }, outputs: { nzOnViewInit: "nzOnViewInit", nzOnClose: "nzOnClose", nzVisibleChange: "nzVisibleChange" }, queries: [{ propertyName: "contentFromContentChild", first: true, predicate: NzDrawerContentDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "drawerTemplate", first: true, predicate: ["drawerTemplate"], descendants: true, static: true }, { propertyName: "bodyPortalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], exportAs: ["nzDrawer"], usesInheritance: true, usesOnChanges: true, ngImport: core_exports, template: `
|
|
434
|
-
<ng-template #drawerTemplate>
|
|
435
|
-
<div
|
|
436
|
-
class="ant-drawer"
|
|
437
|
-
[nzNoAnimation]="nzNoAnimation"
|
|
438
|
-
[class.ant-drawer-rtl]="dir === 'rtl'"
|
|
439
|
-
[class.ant-drawer-open]="isOpen"
|
|
440
|
-
[class.no-mask]="!nzMask"
|
|
441
|
-
[class.ant-drawer-top]="nzPlacement === 'top'"
|
|
442
|
-
[class.ant-drawer-bottom]="nzPlacement === 'bottom'"
|
|
443
|
-
[class.ant-drawer-right]="nzPlacement === 'right'"
|
|
444
|
-
[class.ant-drawer-left]="nzPlacement === 'left'"
|
|
445
|
-
[style.transform]="offsetTransform"
|
|
446
|
-
[style.transition]="placementChanging ? 'none' : null"
|
|
447
|
-
[style.zIndex]="nzZIndex"
|
|
448
|
-
>
|
|
449
|
-
@if (nzMask && isOpen) {
|
|
450
|
-
<div @drawerMaskMotion class="ant-drawer-mask" (click)="maskClick()" [style]="nzMaskStyle"></div>
|
|
451
|
-
}
|
|
452
|
-
<div
|
|
453
|
-
class="ant-drawer-content-wrapper {{ nzWrapClassName }}"
|
|
454
|
-
[style.width]="width"
|
|
455
|
-
[style.height]="height"
|
|
456
|
-
[style.transform]="transform"
|
|
457
|
-
[style.transition]="placementChanging ? 'none' : null"
|
|
458
|
-
>
|
|
459
|
-
<div class="ant-drawer-content">
|
|
460
|
-
<div class="ant-drawer-wrapper-body" [style.height]="isLeftOrRight ? '100%' : null">
|
|
461
|
-
@if (nzTitle || nzClosable) {
|
|
462
|
-
<div class="ant-drawer-header" [class.ant-drawer-header-close-only]="!nzTitle">
|
|
463
|
-
<div class="ant-drawer-header-title">
|
|
464
|
-
@if (nzClosable) {
|
|
465
|
-
<button (click)="closeClick()" aria-label="Close" class="ant-drawer-close">
|
|
466
|
-
<ng-container *nzStringTemplateOutlet="nzCloseIcon; let closeIcon">
|
|
467
|
-
<nz-icon [nzType]="closeIcon" />
|
|
468
|
-
</ng-container>
|
|
469
|
-
</button>
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
@if (nzTitle) {
|
|
473
|
-
<div class="ant-drawer-title">
|
|
474
|
-
<ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
|
|
475
|
-
</div>
|
|
476
|
-
}
|
|
477
|
-
</div>
|
|
478
|
-
@if (nzExtra) {
|
|
479
|
-
<div class="ant-drawer-extra">
|
|
480
|
-
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
481
|
-
</div>
|
|
482
|
-
}
|
|
483
|
-
</div>
|
|
484
|
-
}
|
|
485
|
-
<div class="ant-drawer-body" [style]="nzBodyStyle" cdkScrollable>
|
|
486
|
-
<ng-template cdkPortalOutlet />
|
|
487
|
-
@if (nzContent) {
|
|
488
|
-
@if (isTemplateRef(nzContent)) {
|
|
489
|
-
<ng-container *ngTemplateOutlet="nzContent; context: templateContext" />
|
|
490
|
-
}
|
|
491
|
-
} @else {
|
|
492
|
-
@if (contentFromContentChild && (isOpen || inAnimation)) {
|
|
493
|
-
<ng-template [ngTemplateOutlet]="contentFromContentChild" />
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
</div>
|
|
497
|
-
@if (nzFooter) {
|
|
498
|
-
<div class="ant-drawer-footer">
|
|
499
|
-
<ng-container *nzStringTemplateOutlet="nzFooter">{{ nzFooter }}</ng-container>
|
|
500
|
-
</div>
|
|
501
|
-
}
|
|
502
|
-
</div>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
</ng-template>
|
|
507
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NzNoAnimationDirective, selector: "[nzNoAnimation]", inputs: ["nzNoAnimation"], exportAs: ["nzNoAnimation"] }, { kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }], animations: [drawerMaskMotion], changeDetection: ChangeDetectionStrategy.OnPush })), _a;
|
|
508
|
-
})();
|
|
509
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzDrawerComponent, decorators: [{
|
|
510
|
-
type: Component,
|
|
511
|
-
args: [{
|
|
512
|
-
selector: "nz-drawer",
|
|
513
|
-
exportAs: "nzDrawer",
|
|
514
|
-
template: `
|
|
515
|
-
<ng-template #drawerTemplate>
|
|
516
|
-
<div
|
|
517
|
-
class="ant-drawer"
|
|
518
|
-
[nzNoAnimation]="nzNoAnimation"
|
|
519
|
-
[class.ant-drawer-rtl]="dir === 'rtl'"
|
|
520
|
-
[class.ant-drawer-open]="isOpen"
|
|
521
|
-
[class.no-mask]="!nzMask"
|
|
522
|
-
[class.ant-drawer-top]="nzPlacement === 'top'"
|
|
523
|
-
[class.ant-drawer-bottom]="nzPlacement === 'bottom'"
|
|
524
|
-
[class.ant-drawer-right]="nzPlacement === 'right'"
|
|
525
|
-
[class.ant-drawer-left]="nzPlacement === 'left'"
|
|
526
|
-
[style.transform]="offsetTransform"
|
|
527
|
-
[style.transition]="placementChanging ? 'none' : null"
|
|
528
|
-
[style.zIndex]="nzZIndex"
|
|
529
|
-
>
|
|
530
|
-
@if (nzMask && isOpen) {
|
|
531
|
-
<div @drawerMaskMotion class="ant-drawer-mask" (click)="maskClick()" [style]="nzMaskStyle"></div>
|
|
532
|
-
}
|
|
533
|
-
<div
|
|
534
|
-
class="ant-drawer-content-wrapper {{ nzWrapClassName }}"
|
|
535
|
-
[style.width]="width"
|
|
536
|
-
[style.height]="height"
|
|
537
|
-
[style.transform]="transform"
|
|
538
|
-
[style.transition]="placementChanging ? 'none' : null"
|
|
539
|
-
>
|
|
540
|
-
<div class="ant-drawer-content">
|
|
541
|
-
<div class="ant-drawer-wrapper-body" [style.height]="isLeftOrRight ? '100%' : null">
|
|
542
|
-
@if (nzTitle || nzClosable) {
|
|
543
|
-
<div class="ant-drawer-header" [class.ant-drawer-header-close-only]="!nzTitle">
|
|
544
|
-
<div class="ant-drawer-header-title">
|
|
545
|
-
@if (nzClosable) {
|
|
546
|
-
<button (click)="closeClick()" aria-label="Close" class="ant-drawer-close">
|
|
547
|
-
<ng-container *nzStringTemplateOutlet="nzCloseIcon; let closeIcon">
|
|
548
|
-
<nz-icon [nzType]="closeIcon" />
|
|
549
|
-
</ng-container>
|
|
550
|
-
</button>
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
@if (nzTitle) {
|
|
554
|
-
<div class="ant-drawer-title">
|
|
555
|
-
<ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
|
|
556
|
-
</div>
|
|
557
|
-
}
|
|
558
|
-
</div>
|
|
559
|
-
@if (nzExtra) {
|
|
560
|
-
<div class="ant-drawer-extra">
|
|
561
|
-
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
562
|
-
</div>
|
|
563
|
-
}
|
|
564
|
-
</div>
|
|
565
|
-
}
|
|
566
|
-
<div class="ant-drawer-body" [style]="nzBodyStyle" cdkScrollable>
|
|
567
|
-
<ng-template cdkPortalOutlet />
|
|
568
|
-
@if (nzContent) {
|
|
569
|
-
@if (isTemplateRef(nzContent)) {
|
|
570
|
-
<ng-container *ngTemplateOutlet="nzContent; context: templateContext" />
|
|
571
|
-
}
|
|
572
|
-
} @else {
|
|
573
|
-
@if (contentFromContentChild && (isOpen || inAnimation)) {
|
|
574
|
-
<ng-template [ngTemplateOutlet]="contentFromContentChild" />
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
</div>
|
|
578
|
-
@if (nzFooter) {
|
|
579
|
-
<div class="ant-drawer-footer">
|
|
580
|
-
<ng-container *nzStringTemplateOutlet="nzFooter">{{ nzFooter }}</ng-container>
|
|
581
|
-
</div>
|
|
582
|
-
}
|
|
583
|
-
</div>
|
|
584
|
-
</div>
|
|
585
|
-
</div>
|
|
586
|
-
</div>
|
|
587
|
-
</ng-template>
|
|
588
|
-
`,
|
|
589
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
590
|
-
animations: [drawerMaskMotion],
|
|
591
|
-
imports: [NzNoAnimationDirective, NzOutletModule, NzIconModule, PortalModule, NgTemplateOutlet, CdkScrollable]
|
|
592
|
-
}]
|
|
593
|
-
}], ctorParameters: () => [], propDecorators: { nzContent: [{
|
|
594
|
-
type: Input
|
|
595
|
-
}], nzCloseIcon: [{
|
|
596
|
-
type: Input
|
|
597
|
-
}], nzClosable: [{
|
|
598
|
-
type: Input,
|
|
599
|
-
args: [{ transform: booleanAttribute }]
|
|
600
|
-
}], nzMaskClosable: [{
|
|
601
|
-
type: Input,
|
|
602
|
-
args: [{ transform: booleanAttribute }]
|
|
603
|
-
}], nzMask: [{
|
|
604
|
-
type: Input,
|
|
605
|
-
args: [{ transform: booleanAttribute }]
|
|
606
|
-
}], nzCloseOnNavigation: [{
|
|
607
|
-
type: Input,
|
|
608
|
-
args: [{ transform: booleanAttribute }]
|
|
609
|
-
}], nzNoAnimation: [{
|
|
610
|
-
type: Input,
|
|
611
|
-
args: [{ transform: booleanAttribute }]
|
|
612
|
-
}], nzKeyboard: [{
|
|
613
|
-
type: Input,
|
|
614
|
-
args: [{ transform: booleanAttribute }]
|
|
615
|
-
}], nzTitle: [{
|
|
616
|
-
type: Input
|
|
617
|
-
}], nzExtra: [{
|
|
618
|
-
type: Input
|
|
619
|
-
}], nzFooter: [{
|
|
620
|
-
type: Input
|
|
621
|
-
}], nzPlacement: [{
|
|
622
|
-
type: Input
|
|
623
|
-
}], nzSize: [{
|
|
624
|
-
type: Input
|
|
625
|
-
}], nzMaskStyle: [{
|
|
626
|
-
type: Input
|
|
627
|
-
}], nzBodyStyle: [{
|
|
628
|
-
type: Input
|
|
629
|
-
}], nzWrapClassName: [{
|
|
630
|
-
type: Input
|
|
631
|
-
}], nzWidth: [{
|
|
632
|
-
type: Input
|
|
633
|
-
}], nzHeight: [{
|
|
634
|
-
type: Input
|
|
635
|
-
}], nzZIndex: [{
|
|
636
|
-
type: Input
|
|
637
|
-
}], nzOffsetX: [{
|
|
638
|
-
type: Input
|
|
639
|
-
}], nzOffsetY: [{
|
|
640
|
-
type: Input
|
|
641
|
-
}], nzVisible: [{
|
|
642
|
-
type: Input,
|
|
643
|
-
args: [{ transform: booleanAttribute }]
|
|
644
|
-
}], nzOnViewInit: [{
|
|
645
|
-
type: Output
|
|
646
|
-
}], nzOnClose: [{
|
|
647
|
-
type: Output
|
|
648
|
-
}], nzVisibleChange: [{
|
|
649
|
-
type: Output
|
|
650
|
-
}], drawerTemplate: [{
|
|
651
|
-
type: ViewChild,
|
|
652
|
-
args: ["drawerTemplate", { static: true }]
|
|
653
|
-
}], bodyPortalOutlet: [{
|
|
654
|
-
type: ViewChild,
|
|
655
|
-
args: [CdkPortalOutlet, { static: false }]
|
|
656
|
-
}], contentFromContentChild: [{
|
|
657
|
-
type: ContentChild,
|
|
658
|
-
args: [NzDrawerContentDirective, { static: true, read: TemplateRef }]
|
|
659
|
-
}], nzDirection: [] } });
|
|
660
|
-
var DrawerBuilderForService = class {
|
|
661
|
-
overlayRef;
|
|
662
|
-
options;
|
|
663
|
-
drawerRef;
|
|
664
|
-
unsubscribe$ = new Subject();
|
|
665
|
-
constructor(overlayRef, options) {
|
|
666
|
-
this.overlayRef = overlayRef;
|
|
667
|
-
this.options = options;
|
|
668
|
-
const _a = this.options, { nzOnCancel } = _a, componentOption = __objRest(_a, ["nzOnCancel"]);
|
|
669
|
-
this.drawerRef = this.overlayRef.attach(new ComponentPortal(NzDrawerComponent)).instance;
|
|
670
|
-
this.updateOptions(componentOption);
|
|
671
|
-
this.drawerRef.savePreviouslyFocusedElement();
|
|
672
|
-
this.drawerRef.nzOnViewInit.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
673
|
-
this.drawerRef.open();
|
|
674
|
-
});
|
|
675
|
-
this.drawerRef.nzOnClose.subscribe(() => {
|
|
676
|
-
if (nzOnCancel) {
|
|
677
|
-
nzOnCancel().then((canClose) => {
|
|
678
|
-
if (canClose !== false) {
|
|
679
|
-
this.drawerRef.close();
|
|
680
|
-
}
|
|
681
|
-
});
|
|
682
|
-
} else {
|
|
683
|
-
this.drawerRef.close();
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
this.drawerRef.afterClose.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
687
|
-
this.overlayRef.dispose();
|
|
688
|
-
this.drawerRef = null;
|
|
689
|
-
this.unsubscribe$.next();
|
|
690
|
-
this.unsubscribe$.complete();
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
getInstance() {
|
|
694
|
-
return this.drawerRef;
|
|
695
|
-
}
|
|
696
|
-
updateOptions(options) {
|
|
697
|
-
Object.assign(this.drawerRef, options);
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
var NzDrawerService = class _NzDrawerService {
|
|
701
|
-
injector = inject(Injector);
|
|
702
|
-
create(options) {
|
|
703
|
-
return new DrawerBuilderForService(createOverlayRef(this.injector), options).getInstance();
|
|
704
|
-
}
|
|
705
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerService, deps: [], target: FactoryTarget.Injectable });
|
|
706
|
-
static \u0275prov = \u0275\u0275ngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerService });
|
|
707
|
-
};
|
|
708
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzDrawerService, decorators: [{
|
|
709
|
-
type: Injectable
|
|
710
|
-
}] });
|
|
711
|
-
var NzDrawerModule = class _NzDrawerModule {
|
|
712
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerModule, deps: [], target: FactoryTarget.NgModule });
|
|
713
|
-
static \u0275mod = \u0275\u0275ngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerModule, imports: [NzDrawerComponent, NzDrawerContentDirective], exports: [NzDrawerComponent, NzDrawerContentDirective] });
|
|
714
|
-
static \u0275inj = \u0275\u0275ngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzDrawerModule, providers: [NzDrawerService], imports: [NzDrawerComponent] });
|
|
715
|
-
};
|
|
716
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzDrawerModule, decorators: [{
|
|
717
|
-
type: NgModule,
|
|
718
|
-
args: [{
|
|
719
|
-
imports: [NzDrawerComponent, NzDrawerContentDirective],
|
|
720
|
-
providers: [NzDrawerService],
|
|
721
|
-
exports: [NzDrawerComponent, NzDrawerContentDirective]
|
|
722
|
-
}]
|
|
723
|
-
}] });
|
|
724
|
-
|
|
725
|
-
export {
|
|
726
|
-
NzDrawerModule
|
|
727
|
-
};
|
|
728
|
-
//# sourceMappingURL=chunk-7FC7DN65.js.map
|