@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,406 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NzMenuDirective
|
|
3
|
-
} from "./chunk-ZBZHXS46.js";
|
|
4
|
-
import {
|
|
5
|
-
Directionality,
|
|
6
|
-
NzBreakpointService,
|
|
7
|
-
NzIconDirective,
|
|
8
|
-
NzIconModule,
|
|
9
|
-
Platform,
|
|
10
|
-
inNextTick,
|
|
11
|
-
siderResponsiveMap,
|
|
12
|
-
takeUntilDestroyed,
|
|
13
|
-
toCssPixel
|
|
14
|
-
} from "./chunk-RUXJCM3V.js";
|
|
15
|
-
import {
|
|
16
|
-
NgTemplateOutlet
|
|
17
|
-
} from "./chunk-3MCIETCQ.js";
|
|
18
|
-
import {
|
|
19
|
-
ChangeDetectionStrategy,
|
|
20
|
-
ChangeDetectorRef,
|
|
21
|
-
Component,
|
|
22
|
-
ContentChild,
|
|
23
|
-
ContentChildren,
|
|
24
|
-
DestroyRef,
|
|
25
|
-
EventEmitter,
|
|
26
|
-
FactoryTarget,
|
|
27
|
-
Input,
|
|
28
|
-
NgModule,
|
|
29
|
-
Output,
|
|
30
|
-
ViewEncapsulation,
|
|
31
|
-
booleanAttribute,
|
|
32
|
-
core_exports,
|
|
33
|
-
inject,
|
|
34
|
-
ɵɵngDeclareClassMetadata,
|
|
35
|
-
ɵɵngDeclareComponent,
|
|
36
|
-
ɵɵngDeclareFactory,
|
|
37
|
-
ɵɵngDeclareInjector,
|
|
38
|
-
ɵɵngDeclareNgModule
|
|
39
|
-
} from "./chunk-XQY5SPGI.js";
|
|
40
|
-
|
|
41
|
-
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-layout.mjs
|
|
42
|
-
var NzContentComponent = class _NzContentComponent {
|
|
43
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzContentComponent, deps: [], target: FactoryTarget.Component });
|
|
44
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzContentComponent, isStandalone: true, selector: "nz-content", host: { classAttribute: "ant-layout-content" }, exportAs: ["nzContent"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
45
|
-
};
|
|
46
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzContentComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{
|
|
49
|
-
selector: "nz-content",
|
|
50
|
-
exportAs: "nzContent",
|
|
51
|
-
template: `<ng-content></ng-content>`,
|
|
52
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
53
|
-
encapsulation: ViewEncapsulation.None,
|
|
54
|
-
host: {
|
|
55
|
-
class: "ant-layout-content"
|
|
56
|
-
}
|
|
57
|
-
}]
|
|
58
|
-
}] });
|
|
59
|
-
var NzFooterComponent = class _NzFooterComponent {
|
|
60
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzFooterComponent, deps: [], target: FactoryTarget.Component });
|
|
61
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzFooterComponent, isStandalone: true, selector: "nz-footer", host: { classAttribute: "ant-layout-footer" }, exportAs: ["nzFooter"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
62
|
-
};
|
|
63
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzFooterComponent, decorators: [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{
|
|
66
|
-
selector: "nz-footer",
|
|
67
|
-
exportAs: "nzFooter",
|
|
68
|
-
template: `<ng-content></ng-content>`,
|
|
69
|
-
encapsulation: ViewEncapsulation.None,
|
|
70
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
71
|
-
host: {
|
|
72
|
-
class: "ant-layout-footer"
|
|
73
|
-
}
|
|
74
|
-
}]
|
|
75
|
-
}] });
|
|
76
|
-
var NzHeaderComponent = class _NzHeaderComponent {
|
|
77
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzHeaderComponent, deps: [], target: FactoryTarget.Component });
|
|
78
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzHeaderComponent, isStandalone: true, selector: "nz-header", host: { classAttribute: "ant-layout-header" }, exportAs: ["nzHeader"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
79
|
-
};
|
|
80
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzHeaderComponent, decorators: [{
|
|
81
|
-
type: Component,
|
|
82
|
-
args: [{
|
|
83
|
-
selector: "nz-header",
|
|
84
|
-
exportAs: "nzHeader",
|
|
85
|
-
template: `<ng-content></ng-content>`,
|
|
86
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
87
|
-
encapsulation: ViewEncapsulation.None,
|
|
88
|
-
host: {
|
|
89
|
-
class: "ant-layout-header"
|
|
90
|
-
}
|
|
91
|
-
}]
|
|
92
|
-
}] });
|
|
93
|
-
var NzSiderTriggerComponent = class _NzSiderTriggerComponent {
|
|
94
|
-
nzCollapsed = false;
|
|
95
|
-
nzReverseArrow = false;
|
|
96
|
-
nzZeroTrigger = null;
|
|
97
|
-
nzTrigger = void 0;
|
|
98
|
-
matchBreakPoint = false;
|
|
99
|
-
nzCollapsedWidth = null;
|
|
100
|
-
siderWidth = null;
|
|
101
|
-
nzBreakpoint = null;
|
|
102
|
-
isZeroTrigger = false;
|
|
103
|
-
isNormalTrigger = false;
|
|
104
|
-
updateTriggerType() {
|
|
105
|
-
this.isZeroTrigger = this.nzCollapsedWidth === 0 && (this.nzBreakpoint && this.matchBreakPoint || !this.nzBreakpoint);
|
|
106
|
-
this.isNormalTrigger = this.nzCollapsedWidth !== 0;
|
|
107
|
-
}
|
|
108
|
-
ngOnInit() {
|
|
109
|
-
this.updateTriggerType();
|
|
110
|
-
}
|
|
111
|
-
ngOnChanges() {
|
|
112
|
-
this.updateTriggerType();
|
|
113
|
-
}
|
|
114
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzSiderTriggerComponent, deps: [], target: FactoryTarget.Component });
|
|
115
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _NzSiderTriggerComponent, isStandalone: true, selector: "[nz-sider-trigger]", inputs: { nzCollapsed: "nzCollapsed", nzReverseArrow: "nzReverseArrow", nzZeroTrigger: "nzZeroTrigger", nzTrigger: "nzTrigger", matchBreakPoint: "matchBreakPoint", nzCollapsedWidth: "nzCollapsedWidth", siderWidth: "siderWidth", nzBreakpoint: "nzBreakpoint" }, host: { properties: { "class.ant-layout-sider-trigger": "isNormalTrigger", "style.width": "isNormalTrigger ? siderWidth : null", "class.ant-layout-sider-zero-width-trigger": "isZeroTrigger", "class.ant-layout-sider-zero-width-trigger-right": "isZeroTrigger && nzReverseArrow", "class.ant-layout-sider-zero-width-trigger-left": "isZeroTrigger && !nzReverseArrow" } }, exportAs: ["nzSiderTrigger"], usesOnChanges: true, ngImport: core_exports, template: `
|
|
116
|
-
@if (isZeroTrigger) {
|
|
117
|
-
<ng-template [ngTemplateOutlet]="nzZeroTrigger || defaultZeroTrigger" />
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@if (isNormalTrigger) {
|
|
121
|
-
<ng-template [ngTemplateOutlet]="nzTrigger || defaultTrigger" />
|
|
122
|
-
}
|
|
123
|
-
<ng-template #defaultTrigger>
|
|
124
|
-
@if (nzReverseArrow) {
|
|
125
|
-
<nz-icon [nzType]="nzCollapsed ? 'left' : 'right'" />
|
|
126
|
-
} @else {
|
|
127
|
-
<nz-icon [nzType]="nzCollapsed ? 'right' : 'left'" />
|
|
128
|
-
}
|
|
129
|
-
</ng-template>
|
|
130
|
-
<ng-template #defaultZeroTrigger>
|
|
131
|
-
<nz-icon nzType="bars" />
|
|
132
|
-
</ng-template>
|
|
133
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
134
|
-
};
|
|
135
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzSiderTriggerComponent, decorators: [{
|
|
136
|
-
type: Component,
|
|
137
|
-
args: [{
|
|
138
|
-
selector: "[nz-sider-trigger]",
|
|
139
|
-
exportAs: "nzSiderTrigger",
|
|
140
|
-
encapsulation: ViewEncapsulation.None,
|
|
141
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
142
|
-
template: `
|
|
143
|
-
@if (isZeroTrigger) {
|
|
144
|
-
<ng-template [ngTemplateOutlet]="nzZeroTrigger || defaultZeroTrigger" />
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if (isNormalTrigger) {
|
|
148
|
-
<ng-template [ngTemplateOutlet]="nzTrigger || defaultTrigger" />
|
|
149
|
-
}
|
|
150
|
-
<ng-template #defaultTrigger>
|
|
151
|
-
@if (nzReverseArrow) {
|
|
152
|
-
<nz-icon [nzType]="nzCollapsed ? 'left' : 'right'" />
|
|
153
|
-
} @else {
|
|
154
|
-
<nz-icon [nzType]="nzCollapsed ? 'right' : 'left'" />
|
|
155
|
-
}
|
|
156
|
-
</ng-template>
|
|
157
|
-
<ng-template #defaultZeroTrigger>
|
|
158
|
-
<nz-icon nzType="bars" />
|
|
159
|
-
</ng-template>
|
|
160
|
-
`,
|
|
161
|
-
host: {
|
|
162
|
-
"[class.ant-layout-sider-trigger]": "isNormalTrigger",
|
|
163
|
-
"[style.width]": "isNormalTrigger ? siderWidth : null",
|
|
164
|
-
"[class.ant-layout-sider-zero-width-trigger]": "isZeroTrigger",
|
|
165
|
-
"[class.ant-layout-sider-zero-width-trigger-right]": "isZeroTrigger && nzReverseArrow",
|
|
166
|
-
"[class.ant-layout-sider-zero-width-trigger-left]": "isZeroTrigger && !nzReverseArrow"
|
|
167
|
-
},
|
|
168
|
-
imports: [NgTemplateOutlet, NzIconModule]
|
|
169
|
-
}]
|
|
170
|
-
}], propDecorators: { nzCollapsed: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}], nzReverseArrow: [{
|
|
173
|
-
type: Input
|
|
174
|
-
}], nzZeroTrigger: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], nzTrigger: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}], matchBreakPoint: [{
|
|
179
|
-
type: Input
|
|
180
|
-
}], nzCollapsedWidth: [{
|
|
181
|
-
type: Input
|
|
182
|
-
}], siderWidth: [{
|
|
183
|
-
type: Input
|
|
184
|
-
}], nzBreakpoint: [{
|
|
185
|
-
type: Input
|
|
186
|
-
}] } });
|
|
187
|
-
var NzSiderComponent = class _NzSiderComponent {
|
|
188
|
-
destroyRef = inject(DestroyRef);
|
|
189
|
-
platform = inject(Platform);
|
|
190
|
-
cdr = inject(ChangeDetectorRef);
|
|
191
|
-
breakpointService = inject(NzBreakpointService);
|
|
192
|
-
nzMenuDirective = null;
|
|
193
|
-
nzCollapsedChange = new EventEmitter();
|
|
194
|
-
nzWidth = 200;
|
|
195
|
-
nzTheme = "dark";
|
|
196
|
-
nzCollapsedWidth = 80;
|
|
197
|
-
nzBreakpoint = null;
|
|
198
|
-
nzZeroTrigger = null;
|
|
199
|
-
nzTrigger = void 0;
|
|
200
|
-
nzReverseArrow = false;
|
|
201
|
-
nzCollapsible = false;
|
|
202
|
-
nzCollapsed = false;
|
|
203
|
-
matchBreakPoint = false;
|
|
204
|
-
flexSetting = null;
|
|
205
|
-
widthSetting = null;
|
|
206
|
-
updateStyleMap() {
|
|
207
|
-
this.widthSetting = this.nzCollapsed ? `${this.nzCollapsedWidth}px` : toCssPixel(this.nzWidth);
|
|
208
|
-
this.flexSetting = `0 0 ${this.widthSetting}`;
|
|
209
|
-
this.cdr.markForCheck();
|
|
210
|
-
}
|
|
211
|
-
updateMenuInlineCollapsed() {
|
|
212
|
-
if (this.nzMenuDirective && this.nzMenuDirective.nzMode === "inline" && this.nzCollapsedWidth !== 0) {
|
|
213
|
-
this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
setCollapsed(collapsed) {
|
|
217
|
-
if (collapsed !== this.nzCollapsed) {
|
|
218
|
-
this.nzCollapsed = collapsed;
|
|
219
|
-
this.nzCollapsedChange.emit(collapsed);
|
|
220
|
-
this.updateMenuInlineCollapsed();
|
|
221
|
-
this.updateStyleMap();
|
|
222
|
-
this.cdr.markForCheck();
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
ngOnInit() {
|
|
226
|
-
this.updateStyleMap();
|
|
227
|
-
if (this.platform.isBrowser) {
|
|
228
|
-
this.breakpointService.subscribe(siderResponsiveMap, true).pipe(takeUntilDestroyed(this.destroyRef)).subscribe((map) => {
|
|
229
|
-
const breakpoint = this.nzBreakpoint;
|
|
230
|
-
if (breakpoint) {
|
|
231
|
-
inNextTick().subscribe(() => {
|
|
232
|
-
this.matchBreakPoint = !map[breakpoint];
|
|
233
|
-
this.setCollapsed(this.matchBreakPoint);
|
|
234
|
-
this.cdr.markForCheck();
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
ngOnChanges(changes) {
|
|
241
|
-
const { nzCollapsed, nzCollapsedWidth, nzWidth } = changes;
|
|
242
|
-
if (nzCollapsed || nzCollapsedWidth || nzWidth) {
|
|
243
|
-
this.updateStyleMap();
|
|
244
|
-
}
|
|
245
|
-
if (nzCollapsed) {
|
|
246
|
-
this.updateMenuInlineCollapsed();
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
ngAfterContentInit() {
|
|
250
|
-
this.updateMenuInlineCollapsed();
|
|
251
|
-
}
|
|
252
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzSiderComponent, deps: [], target: FactoryTarget.Component });
|
|
253
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _NzSiderComponent, isStandalone: true, selector: "nz-sider", inputs: { nzWidth: "nzWidth", nzTheme: "nzTheme", nzCollapsedWidth: "nzCollapsedWidth", nzBreakpoint: "nzBreakpoint", nzZeroTrigger: "nzZeroTrigger", nzTrigger: "nzTrigger", nzReverseArrow: ["nzReverseArrow", "nzReverseArrow", booleanAttribute], nzCollapsible: ["nzCollapsible", "nzCollapsible", booleanAttribute], nzCollapsed: ["nzCollapsed", "nzCollapsed", booleanAttribute] }, outputs: { nzCollapsedChange: "nzCollapsedChange" }, host: { properties: { "class.ant-layout-sider-zero-width": "nzCollapsed && nzCollapsedWidth === 0", "class.ant-layout-sider-light": "nzTheme === 'light'", "class.ant-layout-sider-dark": "nzTheme === 'dark'", "class.ant-layout-sider-collapsed": "nzCollapsed", "class.ant-layout-sider-has-trigger": "nzCollapsible && nzTrigger !== null", "style.flex": "flexSetting", "style.maxWidth": "widthSetting", "style.minWidth": "widthSetting", "style.width": "widthSetting" }, classAttribute: "ant-layout-sider" }, queries: [{ propertyName: "nzMenuDirective", first: true, predicate: NzMenuDirective, descendants: true }], exportAs: ["nzSider"], usesOnChanges: true, ngImport: core_exports, template: `
|
|
254
|
-
<div class="ant-layout-sider-children">
|
|
255
|
-
<ng-content></ng-content>
|
|
256
|
-
</div>
|
|
257
|
-
@if (nzCollapsible && nzTrigger !== null) {
|
|
258
|
-
<div
|
|
259
|
-
nz-sider-trigger
|
|
260
|
-
[matchBreakPoint]="matchBreakPoint"
|
|
261
|
-
[nzCollapsedWidth]="nzCollapsedWidth"
|
|
262
|
-
[nzCollapsed]="nzCollapsed"
|
|
263
|
-
[nzBreakpoint]="nzBreakpoint"
|
|
264
|
-
[nzReverseArrow]="nzReverseArrow"
|
|
265
|
-
[nzTrigger]="nzTrigger"
|
|
266
|
-
[nzZeroTrigger]="nzZeroTrigger"
|
|
267
|
-
[siderWidth]="widthSetting"
|
|
268
|
-
(click)="setCollapsed(!nzCollapsed)"
|
|
269
|
-
></div>
|
|
270
|
-
}
|
|
271
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NzSiderTriggerComponent, selector: "[nz-sider-trigger]", inputs: ["nzCollapsed", "nzReverseArrow", "nzZeroTrigger", "nzTrigger", "matchBreakPoint", "nzCollapsedWidth", "siderWidth", "nzBreakpoint"], exportAs: ["nzSiderTrigger"] }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
272
|
-
};
|
|
273
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzSiderComponent, decorators: [{
|
|
274
|
-
type: Component,
|
|
275
|
-
args: [{
|
|
276
|
-
selector: "nz-sider",
|
|
277
|
-
exportAs: "nzSider",
|
|
278
|
-
encapsulation: ViewEncapsulation.None,
|
|
279
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
280
|
-
template: `
|
|
281
|
-
<div class="ant-layout-sider-children">
|
|
282
|
-
<ng-content></ng-content>
|
|
283
|
-
</div>
|
|
284
|
-
@if (nzCollapsible && nzTrigger !== null) {
|
|
285
|
-
<div
|
|
286
|
-
nz-sider-trigger
|
|
287
|
-
[matchBreakPoint]="matchBreakPoint"
|
|
288
|
-
[nzCollapsedWidth]="nzCollapsedWidth"
|
|
289
|
-
[nzCollapsed]="nzCollapsed"
|
|
290
|
-
[nzBreakpoint]="nzBreakpoint"
|
|
291
|
-
[nzReverseArrow]="nzReverseArrow"
|
|
292
|
-
[nzTrigger]="nzTrigger"
|
|
293
|
-
[nzZeroTrigger]="nzZeroTrigger"
|
|
294
|
-
[siderWidth]="widthSetting"
|
|
295
|
-
(click)="setCollapsed(!nzCollapsed)"
|
|
296
|
-
></div>
|
|
297
|
-
}
|
|
298
|
-
`,
|
|
299
|
-
host: {
|
|
300
|
-
class: "ant-layout-sider",
|
|
301
|
-
"[class.ant-layout-sider-zero-width]": `nzCollapsed && nzCollapsedWidth === 0`,
|
|
302
|
-
"[class.ant-layout-sider-light]": `nzTheme === 'light'`,
|
|
303
|
-
"[class.ant-layout-sider-dark]": `nzTheme === 'dark'`,
|
|
304
|
-
"[class.ant-layout-sider-collapsed]": `nzCollapsed`,
|
|
305
|
-
"[class.ant-layout-sider-has-trigger]": `nzCollapsible && nzTrigger !== null`,
|
|
306
|
-
"[style.flex]": "flexSetting",
|
|
307
|
-
"[style.maxWidth]": "widthSetting",
|
|
308
|
-
"[style.minWidth]": "widthSetting",
|
|
309
|
-
"[style.width]": "widthSetting"
|
|
310
|
-
},
|
|
311
|
-
imports: [NzSiderTriggerComponent]
|
|
312
|
-
}]
|
|
313
|
-
}], propDecorators: { nzMenuDirective: [{
|
|
314
|
-
type: ContentChild,
|
|
315
|
-
args: [NzMenuDirective]
|
|
316
|
-
}], nzCollapsedChange: [{
|
|
317
|
-
type: Output
|
|
318
|
-
}], nzWidth: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], nzTheme: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}], nzCollapsedWidth: [{
|
|
323
|
-
type: Input
|
|
324
|
-
}], nzBreakpoint: [{
|
|
325
|
-
type: Input
|
|
326
|
-
}], nzZeroTrigger: [{
|
|
327
|
-
type: Input
|
|
328
|
-
}], nzTrigger: [{
|
|
329
|
-
type: Input
|
|
330
|
-
}], nzReverseArrow: [{
|
|
331
|
-
type: Input,
|
|
332
|
-
args: [{ transform: booleanAttribute }]
|
|
333
|
-
}], nzCollapsible: [{
|
|
334
|
-
type: Input,
|
|
335
|
-
args: [{ transform: booleanAttribute }]
|
|
336
|
-
}], nzCollapsed: [{
|
|
337
|
-
type: Input,
|
|
338
|
-
args: [{ transform: booleanAttribute }]
|
|
339
|
-
}] } });
|
|
340
|
-
var NzLayoutComponent = class _NzLayoutComponent {
|
|
341
|
-
destroyRef = inject(DestroyRef);
|
|
342
|
-
directionality = inject(Directionality);
|
|
343
|
-
listOfNzSiderComponent;
|
|
344
|
-
dir = "ltr";
|
|
345
|
-
ngOnInit() {
|
|
346
|
-
this.dir = this.directionality.value;
|
|
347
|
-
this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((direction) => {
|
|
348
|
-
this.dir = direction;
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzLayoutComponent, deps: [], target: FactoryTarget.Component });
|
|
352
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzLayoutComponent, isStandalone: true, selector: "nz-layout", host: { properties: { "class.ant-layout-rtl": "dir === 'rtl'", "class.ant-layout-has-sider": "listOfNzSiderComponent.length > 0" }, classAttribute: "ant-layout" }, queries: [{ propertyName: "listOfNzSiderComponent", predicate: NzSiderComponent }], exportAs: ["nzLayout"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
353
|
-
};
|
|
354
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzLayoutComponent, decorators: [{
|
|
355
|
-
type: Component,
|
|
356
|
-
args: [{
|
|
357
|
-
selector: "nz-layout",
|
|
358
|
-
exportAs: "nzLayout",
|
|
359
|
-
template: `<ng-content></ng-content>`,
|
|
360
|
-
encapsulation: ViewEncapsulation.None,
|
|
361
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
362
|
-
host: {
|
|
363
|
-
class: "ant-layout",
|
|
364
|
-
"[class.ant-layout-rtl]": `dir === 'rtl'`,
|
|
365
|
-
"[class.ant-layout-has-sider]": "listOfNzSiderComponent.length > 0"
|
|
366
|
-
}
|
|
367
|
-
}]
|
|
368
|
-
}], propDecorators: { listOfNzSiderComponent: [{
|
|
369
|
-
type: ContentChildren,
|
|
370
|
-
args: [NzSiderComponent]
|
|
371
|
-
}] } });
|
|
372
|
-
var NzLayoutModule = class _NzLayoutModule {
|
|
373
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzLayoutModule, deps: [], target: FactoryTarget.NgModule });
|
|
374
|
-
static \u0275mod = \u0275\u0275ngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: core_exports, type: _NzLayoutModule, imports: [
|
|
375
|
-
NzLayoutComponent,
|
|
376
|
-
NzHeaderComponent,
|
|
377
|
-
NzContentComponent,
|
|
378
|
-
NzFooterComponent,
|
|
379
|
-
NzSiderComponent,
|
|
380
|
-
NzSiderTriggerComponent
|
|
381
|
-
], exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent] });
|
|
382
|
-
static \u0275inj = \u0275\u0275ngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzLayoutModule, imports: [
|
|
383
|
-
NzSiderComponent,
|
|
384
|
-
NzSiderTriggerComponent
|
|
385
|
-
] });
|
|
386
|
-
};
|
|
387
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzLayoutModule, decorators: [{
|
|
388
|
-
type: NgModule,
|
|
389
|
-
args: [{
|
|
390
|
-
imports: [
|
|
391
|
-
NzLayoutComponent,
|
|
392
|
-
NzHeaderComponent,
|
|
393
|
-
NzContentComponent,
|
|
394
|
-
NzFooterComponent,
|
|
395
|
-
NzSiderComponent,
|
|
396
|
-
NzSiderTriggerComponent
|
|
397
|
-
],
|
|
398
|
-
exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent]
|
|
399
|
-
}]
|
|
400
|
-
}] });
|
|
401
|
-
|
|
402
|
-
export {
|
|
403
|
-
NzLayoutComponent,
|
|
404
|
-
NzLayoutModule
|
|
405
|
-
};
|
|
406
|
-
//# sourceMappingURL=chunk-YWHRP4X3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-layout.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { ViewEncapsulation, ChangeDetectionStrategy, Component, Input, inject, DestroyRef, ChangeDetectorRef, EventEmitter, booleanAttribute, Output, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Platform } from '@angular/cdk/platform';\nimport { NzBreakpointService, siderResponsiveMap } from 'ng-zorro-antd/core/services';\nimport { toCssPixel, inNextTick } from 'ng-zorro-antd/core/util';\nimport { NzMenuDirective } from 'ng-zorro-antd/menu';\nimport { NgTemplateOutlet } from '@angular/common';\nimport * as i1 from 'ng-zorro-antd/icon';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\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 NzContentComponent {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.0\", type: NzContentComponent, isStandalone: true, selector: \"nz-content\", host: { classAttribute: \"ant-layout-content\" }, exportAs: [\"nzContent\"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzContentComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-content',\n exportAs: 'nzContent',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ant-layout-content'\n }\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 */\nclass NzFooterComponent {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.0\", type: NzFooterComponent, isStandalone: true, selector: \"nz-footer\", host: { classAttribute: \"ant-layout-footer\" }, exportAs: [\"nzFooter\"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzFooterComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-footer',\n exportAs: 'nzFooter',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ant-layout-footer'\n }\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 */\nclass NzHeaderComponent {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.0\", type: NzHeaderComponent, isStandalone: true, selector: \"nz-header\", host: { classAttribute: \"ant-layout-header\" }, exportAs: [\"nzHeader\"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzHeaderComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-header',\n exportAs: 'nzHeader',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ant-layout-header'\n }\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 */\nclass NzSiderTriggerComponent {\n nzCollapsed = false;\n nzReverseArrow = false;\n nzZeroTrigger = null;\n nzTrigger = undefined;\n matchBreakPoint = false;\n nzCollapsedWidth = null;\n siderWidth = null;\n nzBreakpoint = null;\n isZeroTrigger = false;\n isNormalTrigger = false;\n updateTriggerType() {\n this.isZeroTrigger =\n this.nzCollapsedWidth === 0 && ((this.nzBreakpoint && this.matchBreakPoint) || !this.nzBreakpoint);\n this.isNormalTrigger = this.nzCollapsedWidth !== 0;\n }\n ngOnInit() {\n this.updateTriggerType();\n }\n ngOnChanges() {\n this.updateTriggerType();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSiderTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.0\", type: NzSiderTriggerComponent, isStandalone: true, selector: \"[nz-sider-trigger]\", inputs: { nzCollapsed: \"nzCollapsed\", nzReverseArrow: \"nzReverseArrow\", nzZeroTrigger: \"nzZeroTrigger\", nzTrigger: \"nzTrigger\", matchBreakPoint: \"matchBreakPoint\", nzCollapsedWidth: \"nzCollapsedWidth\", siderWidth: \"siderWidth\", nzBreakpoint: \"nzBreakpoint\" }, host: { properties: { \"class.ant-layout-sider-trigger\": \"isNormalTrigger\", \"style.width\": \"isNormalTrigger ? siderWidth : null\", \"class.ant-layout-sider-zero-width-trigger\": \"isZeroTrigger\", \"class.ant-layout-sider-zero-width-trigger-right\": \"isZeroTrigger && nzReverseArrow\", \"class.ant-layout-sider-zero-width-trigger-left\": \"isZeroTrigger && !nzReverseArrow\" } }, exportAs: [\"nzSiderTrigger\"], usesOnChanges: true, ngImport: i0, template: `\n @if (isZeroTrigger) {\n <ng-template [ngTemplateOutlet]=\"nzZeroTrigger || defaultZeroTrigger\" />\n }\n\n @if (isNormalTrigger) {\n <ng-template [ngTemplateOutlet]=\"nzTrigger || defaultTrigger\" />\n }\n <ng-template #defaultTrigger>\n @if (nzReverseArrow) {\n <nz-icon [nzType]=\"nzCollapsed ? 'left' : 'right'\" />\n } @else {\n <nz-icon [nzType]=\"nzCollapsed ? 'right' : 'left'\" />\n }\n </ng-template>\n <ng-template #defaultZeroTrigger>\n <nz-icon nzType=\"bars\" />\n </ng-template>\n `, isInline: true, dependencies: [{ kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"ngmodule\", type: NzIconModule }, { kind: \"directive\", type: i1.NzIconDirective, selector: \"nz-icon,[nz-icon]\", inputs: [\"nzSpin\", \"nzRotate\", \"nzType\", \"nzTheme\", \"nzTwotoneColor\", \"nzIconfont\"], exportAs: [\"nzIcon\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSiderTriggerComponent, decorators: [{\n type: Component,\n args: [{\n selector: '[nz-sider-trigger]',\n exportAs: 'nzSiderTrigger',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (isZeroTrigger) {\n <ng-template [ngTemplateOutlet]=\"nzZeroTrigger || defaultZeroTrigger\" />\n }\n\n @if (isNormalTrigger) {\n <ng-template [ngTemplateOutlet]=\"nzTrigger || defaultTrigger\" />\n }\n <ng-template #defaultTrigger>\n @if (nzReverseArrow) {\n <nz-icon [nzType]=\"nzCollapsed ? 'left' : 'right'\" />\n } @else {\n <nz-icon [nzType]=\"nzCollapsed ? 'right' : 'left'\" />\n }\n </ng-template>\n <ng-template #defaultZeroTrigger>\n <nz-icon nzType=\"bars\" />\n </ng-template>\n `,\n host: {\n '[class.ant-layout-sider-trigger]': 'isNormalTrigger',\n '[style.width]': 'isNormalTrigger ? siderWidth : null',\n '[class.ant-layout-sider-zero-width-trigger]': 'isZeroTrigger',\n '[class.ant-layout-sider-zero-width-trigger-right]': 'isZeroTrigger && nzReverseArrow',\n '[class.ant-layout-sider-zero-width-trigger-left]': 'isZeroTrigger && !nzReverseArrow'\n },\n imports: [NgTemplateOutlet, NzIconModule]\n }]\n }], propDecorators: { nzCollapsed: [{\n type: Input\n }], nzReverseArrow: [{\n type: Input\n }], nzZeroTrigger: [{\n type: Input\n }], nzTrigger: [{\n type: Input\n }], matchBreakPoint: [{\n type: Input\n }], nzCollapsedWidth: [{\n type: Input\n }], siderWidth: [{\n type: Input\n }], nzBreakpoint: [{\n type: Input\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 NzSiderComponent {\n destroyRef = inject(DestroyRef);\n platform = inject(Platform);\n cdr = inject(ChangeDetectorRef);\n breakpointService = inject(NzBreakpointService);\n nzMenuDirective = null;\n nzCollapsedChange = new EventEmitter();\n nzWidth = 200;\n nzTheme = 'dark';\n nzCollapsedWidth = 80;\n nzBreakpoint = null;\n nzZeroTrigger = null;\n nzTrigger = undefined;\n nzReverseArrow = false;\n nzCollapsible = false;\n nzCollapsed = false;\n matchBreakPoint = false;\n flexSetting = null;\n widthSetting = null;\n updateStyleMap() {\n this.widthSetting = this.nzCollapsed ? `${this.nzCollapsedWidth}px` : toCssPixel(this.nzWidth);\n this.flexSetting = `0 0 ${this.widthSetting}`;\n this.cdr.markForCheck();\n }\n updateMenuInlineCollapsed() {\n if (this.nzMenuDirective && this.nzMenuDirective.nzMode === 'inline' && this.nzCollapsedWidth !== 0) {\n this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed);\n }\n }\n setCollapsed(collapsed) {\n if (collapsed !== this.nzCollapsed) {\n this.nzCollapsed = collapsed;\n this.nzCollapsedChange.emit(collapsed);\n this.updateMenuInlineCollapsed();\n this.updateStyleMap();\n this.cdr.markForCheck();\n }\n }\n ngOnInit() {\n this.updateStyleMap();\n if (this.platform.isBrowser) {\n this.breakpointService\n .subscribe(siderResponsiveMap, true)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(map => {\n const breakpoint = this.nzBreakpoint;\n if (breakpoint) {\n inNextTick().subscribe(() => {\n this.matchBreakPoint = !map[breakpoint];\n this.setCollapsed(this.matchBreakPoint);\n this.cdr.markForCheck();\n });\n }\n });\n }\n }\n ngOnChanges(changes) {\n const { nzCollapsed, nzCollapsedWidth, nzWidth } = changes;\n if (nzCollapsed || nzCollapsedWidth || nzWidth) {\n this.updateStyleMap();\n }\n if (nzCollapsed) {\n this.updateMenuInlineCollapsed();\n }\n }\n ngAfterContentInit() {\n this.updateMenuInlineCollapsed();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSiderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.0\", type: NzSiderComponent, isStandalone: true, selector: \"nz-sider\", inputs: { nzWidth: \"nzWidth\", nzTheme: \"nzTheme\", nzCollapsedWidth: \"nzCollapsedWidth\", nzBreakpoint: \"nzBreakpoint\", nzZeroTrigger: \"nzZeroTrigger\", nzTrigger: \"nzTrigger\", nzReverseArrow: [\"nzReverseArrow\", \"nzReverseArrow\", booleanAttribute], nzCollapsible: [\"nzCollapsible\", \"nzCollapsible\", booleanAttribute], nzCollapsed: [\"nzCollapsed\", \"nzCollapsed\", booleanAttribute] }, outputs: { nzCollapsedChange: \"nzCollapsedChange\" }, host: { properties: { \"class.ant-layout-sider-zero-width\": \"nzCollapsed && nzCollapsedWidth === 0\", \"class.ant-layout-sider-light\": \"nzTheme === 'light'\", \"class.ant-layout-sider-dark\": \"nzTheme === 'dark'\", \"class.ant-layout-sider-collapsed\": \"nzCollapsed\", \"class.ant-layout-sider-has-trigger\": \"nzCollapsible && nzTrigger !== null\", \"style.flex\": \"flexSetting\", \"style.maxWidth\": \"widthSetting\", \"style.minWidth\": \"widthSetting\", \"style.width\": \"widthSetting\" }, classAttribute: \"ant-layout-sider\" }, queries: [{ propertyName: \"nzMenuDirective\", first: true, predicate: NzMenuDirective, descendants: true }], exportAs: [\"nzSider\"], usesOnChanges: true, ngImport: i0, template: `\n <div class=\"ant-layout-sider-children\">\n <ng-content></ng-content>\n </div>\n @if (nzCollapsible && nzTrigger !== null) {\n <div\n nz-sider-trigger\n [matchBreakPoint]=\"matchBreakPoint\"\n [nzCollapsedWidth]=\"nzCollapsedWidth\"\n [nzCollapsed]=\"nzCollapsed\"\n [nzBreakpoint]=\"nzBreakpoint\"\n [nzReverseArrow]=\"nzReverseArrow\"\n [nzTrigger]=\"nzTrigger\"\n [nzZeroTrigger]=\"nzZeroTrigger\"\n [siderWidth]=\"widthSetting\"\n (click)=\"setCollapsed(!nzCollapsed)\"\n ></div>\n }\n `, isInline: true, dependencies: [{ kind: \"component\", type: NzSiderTriggerComponent, selector: \"[nz-sider-trigger]\", inputs: [\"nzCollapsed\", \"nzReverseArrow\", \"nzZeroTrigger\", \"nzTrigger\", \"matchBreakPoint\", \"nzCollapsedWidth\", \"siderWidth\", \"nzBreakpoint\"], exportAs: [\"nzSiderTrigger\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzSiderComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-sider',\n exportAs: 'nzSider',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ant-layout-sider-children\">\n <ng-content></ng-content>\n </div>\n @if (nzCollapsible && nzTrigger !== null) {\n <div\n nz-sider-trigger\n [matchBreakPoint]=\"matchBreakPoint\"\n [nzCollapsedWidth]=\"nzCollapsedWidth\"\n [nzCollapsed]=\"nzCollapsed\"\n [nzBreakpoint]=\"nzBreakpoint\"\n [nzReverseArrow]=\"nzReverseArrow\"\n [nzTrigger]=\"nzTrigger\"\n [nzZeroTrigger]=\"nzZeroTrigger\"\n [siderWidth]=\"widthSetting\"\n (click)=\"setCollapsed(!nzCollapsed)\"\n ></div>\n }\n `,\n host: {\n class: 'ant-layout-sider',\n '[class.ant-layout-sider-zero-width]': `nzCollapsed && nzCollapsedWidth === 0`,\n '[class.ant-layout-sider-light]': `nzTheme === 'light'`,\n '[class.ant-layout-sider-dark]': `nzTheme === 'dark'`,\n '[class.ant-layout-sider-collapsed]': `nzCollapsed`,\n '[class.ant-layout-sider-has-trigger]': `nzCollapsible && nzTrigger !== null`,\n '[style.flex]': 'flexSetting',\n '[style.maxWidth]': 'widthSetting',\n '[style.minWidth]': 'widthSetting',\n '[style.width]': 'widthSetting'\n },\n imports: [NzSiderTriggerComponent]\n }]\n }], propDecorators: { nzMenuDirective: [{\n type: ContentChild,\n args: [NzMenuDirective]\n }], nzCollapsedChange: [{\n type: Output\n }], nzWidth: [{\n type: Input\n }], nzTheme: [{\n type: Input\n }], nzCollapsedWidth: [{\n type: Input\n }], nzBreakpoint: [{\n type: Input\n }], nzZeroTrigger: [{\n type: Input\n }], nzTrigger: [{\n type: Input\n }], nzReverseArrow: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzCollapsible: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzCollapsed: [{\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 NzLayoutComponent {\n destroyRef = inject(DestroyRef);\n directionality = inject(Directionality);\n listOfNzSiderComponent;\n dir = 'ltr';\n ngOnInit() {\n this.dir = this.directionality.value;\n this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(direction => {\n this.dir = direction;\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.0\", type: NzLayoutComponent, isStandalone: true, selector: \"nz-layout\", host: { properties: { \"class.ant-layout-rtl\": \"dir === 'rtl'\", \"class.ant-layout-has-sider\": \"listOfNzSiderComponent.length > 0\" }, classAttribute: \"ant-layout\" }, queries: [{ propertyName: \"listOfNzSiderComponent\", predicate: NzSiderComponent }], exportAs: [\"nzLayout\"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-layout',\n exportAs: 'nzLayout',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ant-layout',\n '[class.ant-layout-rtl]': `dir === 'rtl'`,\n '[class.ant-layout-has-sider]': 'listOfNzSiderComponent.length > 0'\n }\n }]\n }], propDecorators: { listOfNzSiderComponent: [{\n type: ContentChildren,\n args: [NzSiderComponent]\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 NzLayoutModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutModule, imports: [NzLayoutComponent,\n NzHeaderComponent,\n NzContentComponent,\n NzFooterComponent,\n NzSiderComponent,\n NzSiderTriggerComponent], exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutModule, imports: [NzSiderComponent,\n NzSiderTriggerComponent] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzLayoutModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n NzLayoutComponent,\n NzHeaderComponent,\n NzContentComponent,\n NzFooterComponent,\n NzSiderComponent,\n NzSiderTriggerComponent\n ],\n exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent]\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 { NzContentComponent, NzFooterComponent, NzHeaderComponent, NzLayoutComponent, NzLayoutModule, NzSiderComponent, NzSiderTriggerComponent as ɵNzSiderTriggerComponent };\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAM,qBAAN,MAAM,oBAAmB;AAAA,EACrB,OAAO,YAAU,6BAAmB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,qBAAoB,MAAM,CAAC,GAAG,QAAW,cAAgB,UAAU,CAAC;AAAA,EACvK,OAAO,YAAU,+BAAqB,EAAE,YAAY,UAAU,SAAS,UAAU,MAAM,qBAAoB,cAAc,MAAM,UAAU,cAAc,MAAM,EAAE,gBAAgB,qBAAqB,GAAG,UAAU,CAAC,WAAW,GAAG,UAAU,cAAI,UAAU,6BAA6B,UAAU,MAAM,iBAAoB,wBAAwB,QAAQ,eAAkB,kBAAkB,KAAK,CAAC;AACvY;AACG,mCAAyB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,oBAAoB,YAAY,CAAC;AAAA,EAChH,MAAM;AAAA,EACN,MAAM,CAAC;AAAA,IACC,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,IACV,iBAAiB,wBAAwB;AAAA,IACzC,eAAe,kBAAkB;AAAA,IACjC,MAAM;AAAA,MACF,OAAO;AAAA,IACX;AAAA,EACJ,CAAC;AACT,CAAC,EAAE,CAAC;AAMZ,IAAM,oBAAN,MAAM,mBAAkB;AAAA,EACpB,OAAO,YAAU,6BAAmB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,oBAAmB,MAAM,CAAC,GAAG,QAAW,cAAgB,UAAU,CAAC;AAAA,EACtK,OAAO,YAAU,+BAAqB,EAAE,YAAY,UAAU,SAAS,UAAU,MAAM,oBAAmB,cAAc,MAAM,UAAU,aAAa,MAAM,EAAE,gBAAgB,oBAAoB,GAAG,UA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B,oBAAoB,mBAAmB,gBAAgB;AAAA,EAC3G,CAAC;AACT,CAAC,EAAE,CAAC;","names":[],"x_google_ignoreList":[0]}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ProjectContextStore
|
|
3
|
-
} from "./chunk-TEW4MY4J.js";
|
|
4
|
-
import {
|
|
5
|
-
ApiClient,
|
|
6
|
-
LS_KEYS,
|
|
7
|
-
LocalStateStore,
|
|
8
|
-
UiNotifierService
|
|
9
|
-
} from "./chunk-2YSUXBGC.js";
|
|
10
|
-
import {
|
|
11
|
-
Injectable,
|
|
12
|
-
__decorate,
|
|
13
|
-
computed,
|
|
14
|
-
from,
|
|
15
|
-
inject,
|
|
16
|
-
signal
|
|
17
|
-
} from "./chunk-XQY5SPGI.js";
|
|
18
|
-
|
|
19
|
-
// src/app/core/stores/user/user.store.ts
|
|
20
|
-
var UserStore = class UserStore2 {
|
|
21
|
-
apiClient = inject(ApiClient);
|
|
22
|
-
projectContextStore = inject(ProjectContextStore);
|
|
23
|
-
ls = inject(LocalStateStore);
|
|
24
|
-
notify = inject(UiNotifierService);
|
|
25
|
-
currentUserState = signal(null);
|
|
26
|
-
hubUserTokenState = signal(null);
|
|
27
|
-
initializedState = signal(false);
|
|
28
|
-
currentUser = computed(() => this.currentUserState());
|
|
29
|
-
currentUserId = computed(() => !!this.currentUserState() ? this.currentUserState().userId : null);
|
|
30
|
-
hubUserToken = computed(() => this.hubUserTokenState());
|
|
31
|
-
initialized = computed(() => this.initializedState());
|
|
32
|
-
// 是否已经绑定用户
|
|
33
|
-
isAuthenticated = computed(() => !!this.currentUserState());
|
|
34
|
-
hasHubUserToken = computed(() => !!this.hubUserTokenState());
|
|
35
|
-
// 获取当前用户(包括token信息)
|
|
36
|
-
loadCurrentUser() {
|
|
37
|
-
const token = this.ls.get(LS_KEYS.token.hubV2PersonalToken, "").trim();
|
|
38
|
-
const projectId = this.projectContextStore.currentProjectId();
|
|
39
|
-
if (!token || !projectId)
|
|
40
|
-
return;
|
|
41
|
-
this.setHubUserToken(token);
|
|
42
|
-
from(this.apiClient.hubRequestWithPersonalToken({
|
|
43
|
-
path: "/me",
|
|
44
|
-
projectId
|
|
45
|
-
})).subscribe({
|
|
46
|
-
next: (data) => {
|
|
47
|
-
this.setCurrentUser(data);
|
|
48
|
-
this.markInitialized();
|
|
49
|
-
},
|
|
50
|
-
error: () => {
|
|
51
|
-
this.notify.error("Personal Token \u9A8C\u8BC1\u5931\u8D25");
|
|
52
|
-
this.setCurrentUser(null);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
ensureUserLoaded() {
|
|
57
|
-
if (!this.initializedState()) {
|
|
58
|
-
this.loadCurrentUser();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
setCurrentUser(user) {
|
|
62
|
-
this.currentUserState.set(user);
|
|
63
|
-
}
|
|
64
|
-
setHubUserToken(token) {
|
|
65
|
-
const nextToken = !!token ? token.trim() : "";
|
|
66
|
-
if (nextToken) {
|
|
67
|
-
this.ls.set(LS_KEYS.token.hubV2PersonalToken, nextToken);
|
|
68
|
-
this.hubUserTokenState.set(nextToken);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
this.hubUserTokenState.set(null);
|
|
72
|
-
this.currentUserState.set(null);
|
|
73
|
-
this.ls.remove(LS_KEYS.token.hubV2PersonalToken);
|
|
74
|
-
}
|
|
75
|
-
ensureHubUserTokenLoaded() {
|
|
76
|
-
if (!this.hubUserTokenState()) {
|
|
77
|
-
this.setHubUserToken(this.ls.get(LS_KEYS.token.hubV2PersonalToken, ""));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
markInitialized() {
|
|
81
|
-
this.initializedState.set(true);
|
|
82
|
-
}
|
|
83
|
-
reset() {
|
|
84
|
-
this.currentUserState.set(null);
|
|
85
|
-
this.initializedState.set(false);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
UserStore = __decorate([
|
|
89
|
-
Injectable({ providedIn: "root" })
|
|
90
|
-
], UserStore);
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
UserStore
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=chunk-Z7FJIV62.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["src/app/core/stores/user/user.store.ts"],
|
|
4
|
-
"sourcesContent": ["import { computed, inject, Injectable, signal } from '@angular/core';\r\n\r\nimport { UiNotifierService } from '@app/core/ui-notifier.service';\r\nimport { from } from 'rxjs';\r\nimport { ApiClient } from '../../api';\r\nimport { LocalStateStore, LS_KEYS } from '../../local-state';\r\nimport { ProjectContextStore } from '../project-context/project-context.store';\r\nimport type { HubAuthUser } from './user.types';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UserStore {\r\n private readonly apiClient = inject(ApiClient);\r\n private readonly projectContextStore = inject(ProjectContextStore);\r\n private readonly ls = inject(LocalStateStore);\r\n private readonly notify = inject(UiNotifierService);\r\n\r\n private readonly currentUserState = signal<HubAuthUser | null>(null);\r\n private readonly hubUserTokenState = signal<string | null>(null);\r\n private readonly initializedState = signal(false);\r\n\r\n readonly currentUser = computed(() => this.currentUserState());\r\n readonly currentUserId = computed(() =>\r\n !!this.currentUserState() ? this.currentUserState()!.userId : null,\r\n );\r\n readonly hubUserToken = computed(() => this.hubUserTokenState());\r\n readonly initialized = computed(() => this.initializedState());\r\n\r\n // 是否已经绑定用户\r\n readonly isAuthenticated = computed(() => !!this.currentUserState());\r\n readonly hasHubUserToken = computed(() => !!this.hubUserTokenState());\r\n\r\n // 获取当前用户(包括token信息)\r\n loadCurrentUser(): void {\r\n const token = this.ls.get<string>(LS_KEYS.token.hubV2PersonalToken, '').trim();\r\n const projectId = this.projectContextStore.currentProjectId();\r\n if (!token || !projectId) return;\r\n this.setHubUserToken(token);\r\n from(\r\n this.apiClient.hubRequestWithPersonalToken<HubAuthUser>({\r\n path: '/me',\r\n projectId,\r\n }),\r\n ).subscribe({\r\n next: (data) => {\r\n this.setCurrentUser(data);\r\n this.markInitialized();\r\n },\r\n error: () => {\r\n this.notify.error('Personal Token 验证失败');\r\n this.setCurrentUser(null);\r\n },\r\n });\r\n }\r\n\r\n ensureUserLoaded(): void {\r\n if (!this.initializedState()) {\r\n this.loadCurrentUser();\r\n }\r\n }\r\n\r\n setCurrentUser(user: HubAuthUser | null): void {\r\n this.currentUserState.set(user);\r\n }\r\n\r\n setHubUserToken(token: string | null): void {\r\n const nextToken = !!token ? token.trim() : '';\r\n if (nextToken) {\r\n this.ls.set(LS_KEYS.token.hubV2PersonalToken, nextToken);\r\n this.hubUserTokenState.set(nextToken);\r\n return;\r\n }\r\n this.hubUserTokenState.set(null);\r\n this.currentUserState.set(null);\r\n this.ls.remove(LS_KEYS.token.hubV2PersonalToken);\r\n }\r\n\r\n ensureHubUserTokenLoaded(): void {\r\n if (!this.hubUserTokenState()) {\r\n this.setHubUserToken(this.ls.get<string>(LS_KEYS.token.hubV2PersonalToken, ''));\r\n }\r\n }\r\n\r\n markInitialized(): void {\r\n this.initializedState.set(true);\r\n }\r\n\r\n reset(): void {\r\n this.currentUserState.set(null);\r\n this.initializedState.set(false);\r\n }\r\n}\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAUO,IAAM,YAAN,MAAMA,WAAS;EACH,YAAY,OAAO,SAAS;EAC5B,sBAAsB,OAAO,mBAAmB;EAChD,KAAK,OAAO,eAAe;EAC3B,SAAS,OAAO,iBAAiB;EAEjC,mBAAmB,OAA2B,IAAI;EAClD,oBAAoB,OAAsB,IAAI;EAC9C,mBAAmB,OAAO,KAAK;EAEvC,cAAc,SAAS,MAAM,KAAK,iBAAgB,CAAE;EACpD,gBAAgB,SAAS,MAChC,CAAC,CAAC,KAAK,iBAAgB,IAAK,KAAK,iBAAgB,EAAI,SAAS,IAAI;EAE3D,eAAe,SAAS,MAAM,KAAK,kBAAiB,CAAE;EACtD,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