@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-image.mjs"],"sourcesContent":["import { __esDecorate, __runInitializers } from 'tslib';\nimport { Directionality } from '@angular/cdk/bidi';\nimport * as i0 from '@angular/core';\nimport { Input, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, DOCUMENT, NgZone, ChangeDetectorRef, DestroyRef, EventEmitter, ViewChild, Injector, Injectable, ElementRef, booleanAttribute, Directive, NgModule } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Subject, fromEvent } from 'rxjs';\nimport { filter, take, switchMap, takeUntil } from 'rxjs/operators';\nimport { NzConfigService, WithConfig } from 'ng-zorro-antd/core/config';\nimport { CdkDragHandle, CdkDrag } from '@angular/cdk/drag-drop';\nimport { ESCAPE, LEFT_ARROW, RIGHT_ARROW, hasModifierKey } from '@angular/cdk/keycodes';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { fadeMotion } from 'ng-zorro-antd/core/animation';\nimport { fromEventOutsideAngular, isNotNil } from 'ng-zorro-antd/core/util';\nimport * as i1 from 'ng-zorro-antd/icon';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { OverlayRef, createOverlayRef, createGlobalPositionStrategy, createBlockScrollStrategy } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\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 NzImageGroupComponent {\n nzScaleStep = null;\n images = [];\n addImage(image) {\n this.images.push(image);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.0\", type: NzImageGroupComponent, isStandalone: true, selector: \"nz-image-group\", inputs: { nzScaleStep: \"nzScaleStep\" }, exportAs: [\"nzImageGroup\"], 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: NzImageGroupComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-image-group',\n exportAs: 'nzImageGroup',\n template: '<ng-content></ng-content>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n }]\n }], propDecorators: { nzScaleStep: [{\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 */\nconst NZ_CONFIG_MODULE_NAME$1 = 'image';\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 NzImagePreviewOptions {\n nzKeyboard = true;\n nzNoAnimation = false;\n nzMaskClosable = true;\n nzCloseOnNavigation = true;\n nzZIndex;\n nzZoom;\n nzRotate;\n nzFlipHorizontally;\n nzFlipVertically;\n nzScaleStep;\n nzDirection;\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 * fit content details: https://github.com/NG-ZORRO/ng-zorro-antd/pull/6154#issuecomment-745025554\n *\n * calc position x,y point\n *\n * CASE (width <= clientWidth && height <= clientHeight):\n *\n * ------------- clientWidth -------------\n * | |\n * | ------ width ------ |\n * | | | |\n * | | | |\n * client height | |\n * Height | | |\n * | | | |\n * | ------------------- |\n * | |\n * | |\n * ---------------------------------------\n * fixedPosition = { x: 0, y: 0 }\n *\n *\n *\n * CASE (width > clientWidth || height > clientHeight):\n *\n * ------------- clientWidth -------------\n * | | |\n * | top |\n * | | |\n * |--left--|--------------- width -----------------\n * | | |\n * client | |\n * Height | |\n * | | |\n * | | |\n * | height |\n * | | |\n * ---------| |\n * | |\n * | |\n * | |\n * ----------------------------------------\n *\n *\n * - left || top > 0\n * left -> 0 || top -> 0\n *\n * - (left + width) < clientWidth || (top + height) < clientHeight\n * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight\n *\n * DEFAULT:\n * - hold position\n *\n */\nfunction getFitContentPosition(params) {\n let fixPos = {};\n if (params.width <= params.clientWidth && params.height <= params.clientHeight) {\n fixPos = {\n x: 0,\n y: 0\n };\n }\n if (params.width > params.clientWidth || params.height > params.clientHeight) {\n fixPos = {\n x: fitPoint(params.left, params.width, params.clientWidth),\n y: fitPoint(params.top, params.height, params.clientHeight)\n };\n }\n return fixPos;\n}\nfunction getOffset(node) {\n const box = node.getBoundingClientRect();\n const docElem = document.documentElement;\n // use docElem.scrollLeft to support IE\n return {\n left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),\n top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)\n };\n}\nfunction getClientSize() {\n const width = document.documentElement.clientWidth;\n const height = window.innerHeight || document.documentElement.clientHeight;\n return {\n width,\n height\n };\n}\nfunction fitPoint(start, size, clientSize) {\n const startAddSize = start + size;\n const offsetStart = (size - clientSize) / 2;\n let distance = null;\n if (size > clientSize) {\n if (start > 0) {\n distance = offsetStart;\n }\n if (start < 0 && startAddSize < clientSize) {\n distance = -offsetStart;\n }\n }\n else {\n if (start < 0 || startAddSize > clientSize) {\n distance = start < 0 ? offsetStart : -offsetStart;\n }\n }\n return distance;\n}\n\nconst initialPosition = {\n x: 0,\n y: 0\n};\nconst NZ_DEFAULT_SCALE_STEP = 0.5;\nconst NZ_DEFAULT_ZOOM = 1;\nconst NZ_DEFAULT_ROTATE = 0;\nclass NzImagePreviewComponent {\n document = inject(DOCUMENT);\n ngZone = inject(NgZone);\n cdr = inject(ChangeDetectorRef);\n nzConfigService = inject(NzConfigService);\n config = inject(NzImagePreviewOptions);\n sanitizer = inject(DomSanitizer);\n destroyRef = inject(DestroyRef);\n _defaultNzZoom = NZ_DEFAULT_ZOOM;\n _defaultNzScaleStep = NZ_DEFAULT_SCALE_STEP;\n _defaultNzRotate = NZ_DEFAULT_ROTATE;\n images = [];\n index = 0;\n isDragging = false;\n visible = true;\n animationStateChanged = new EventEmitter();\n scaleStepMap = new Map();\n previewImageTransform = '';\n previewImageWrapperTransform = '';\n operations = [\n {\n icon: 'close',\n onClick: () => {\n this.onClose();\n },\n type: 'close'\n },\n {\n icon: 'zoom-in',\n onClick: () => {\n this.onZoomIn();\n },\n type: 'zoomIn'\n },\n {\n icon: 'zoom-out',\n onClick: () => {\n this.onZoomOut();\n },\n type: 'zoomOut'\n },\n {\n icon: 'rotate-right',\n onClick: () => {\n this.onRotateRight();\n },\n type: 'rotateRight'\n },\n {\n icon: 'rotate-left',\n onClick: () => {\n this.onRotateLeft();\n },\n type: 'rotateLeft'\n },\n {\n icon: 'swap',\n onClick: () => {\n this.onHorizontalFlip();\n },\n type: 'flipHorizontally'\n },\n {\n icon: 'swap',\n onClick: () => {\n this.onVerticalFlip();\n },\n type: 'flipVertically',\n rotate: 90\n }\n ];\n zoomOutDisabled = false;\n position = { ...initialPosition };\n previewRef;\n closeClick = new EventEmitter();\n imageRef;\n imagePreviewWrapper;\n zoom = this.config.nzZoom ?? this._defaultNzZoom;\n rotate = this.config.nzRotate ?? this._defaultNzRotate;\n scaleStep = this.config.nzScaleStep ?? this._defaultNzScaleStep;\n flipHorizontally = this.config.nzFlipHorizontally ?? false;\n flipVertically = this.config.nzFlipVertically ?? false;\n get animationDisabled() {\n return this.config.nzNoAnimation ?? false;\n }\n get maskClosable() {\n const defaultConfig = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME$1) || {};\n return this.config.nzMaskClosable ?? defaultConfig.nzMaskClosable ?? true;\n }\n constructor() {\n this.updateZoomOutDisabled();\n this.updatePreviewImageTransform();\n this.updatePreviewImageWrapperTransform();\n }\n ngOnInit() {\n fromEventOutsideAngular(this.imagePreviewWrapper.nativeElement, 'mousedown')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.isDragging = true;\n });\n fromEventOutsideAngular(this.imagePreviewWrapper.nativeElement, 'wheel')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n this.ngZone.run(() => this.wheelZoomEventHandler(event));\n });\n fromEventOutsideAngular(this.document, 'keydown')\n .pipe(filter(event => event.keyCode === ESCAPE), takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.ngZone.run(() => {\n this.onClose();\n this.markForCheck();\n });\n });\n }\n setImages(images, scaleStepMap) {\n if (scaleStepMap)\n this.scaleStepMap = scaleStepMap;\n this.images = images;\n this.markForCheck();\n }\n switchTo(index) {\n this.index = index;\n this.markForCheck();\n }\n next() {\n if (this.index < this.images.length - 1) {\n this.reset();\n this.index++;\n this.updatePreviewImageTransform();\n this.updatePreviewImageWrapperTransform();\n this.updateZoomOutDisabled();\n this.markForCheck();\n }\n }\n prev() {\n if (this.index > 0) {\n this.reset();\n this.index--;\n this.updatePreviewImageTransform();\n this.updatePreviewImageWrapperTransform();\n this.updateZoomOutDisabled();\n this.markForCheck();\n }\n }\n markForCheck() {\n this.cdr.markForCheck();\n }\n onClose() {\n this.visible = false;\n this.closeClick.emit();\n }\n onZoomIn() {\n const zoomStep = this.scaleStepMap.get(this.images[this.index].src ?? this.images[this.index].srcset) ?? this.scaleStep;\n this.zoom += zoomStep;\n this.updatePreviewImageTransform();\n this.updateZoomOutDisabled();\n }\n onZoomOut() {\n if (this.zoom > 1) {\n const zoomStep = this.scaleStepMap.get(this.images[this.index].src ?? this.images[this.index].srcset) ?? this.scaleStep;\n this.zoom -= zoomStep;\n this.updatePreviewImageTransform();\n this.updateZoomOutDisabled();\n if (this.zoom <= 1) {\n this.reCenterImage();\n }\n }\n }\n onRotateRight() {\n this.rotate += 90;\n this.updatePreviewImageTransform();\n }\n onRotateLeft() {\n this.rotate -= 90;\n this.updatePreviewImageTransform();\n }\n onSwitchLeft(event) {\n event.preventDefault();\n event.stopPropagation();\n this.prev();\n }\n onSwitchRight(event) {\n event.preventDefault();\n event.stopPropagation();\n this.next();\n }\n onHorizontalFlip() {\n this.flipHorizontally = !this.flipHorizontally;\n this.updatePreviewImageTransform();\n }\n onVerticalFlip() {\n this.flipVertically = !this.flipVertically;\n this.updatePreviewImageTransform();\n }\n wheelZoomEventHandler(event) {\n event.preventDefault();\n event.stopPropagation();\n this.handlerImageTransformationWhileZoomingWithMouse(event, event.deltaY);\n this.handleImageScaleWhileZoomingWithMouse(event.deltaY);\n this.updatePreviewImageWrapperTransform();\n this.updatePreviewImageTransform();\n this.markForCheck();\n }\n onAnimationStart(event) {\n this.animationStateChanged.emit(event);\n }\n onAnimationDone(event) {\n this.animationStateChanged.emit(event);\n }\n onDragEnd(event) {\n this.isDragging = false;\n const width = this.imageRef.nativeElement.offsetWidth * this.zoom;\n const height = this.imageRef.nativeElement.offsetHeight * this.zoom;\n const { left, top } = getOffset(this.imageRef.nativeElement);\n const { width: clientWidth, height: clientHeight } = getClientSize();\n const isRotate = this.rotate % 180 !== 0;\n const fitContentParams = {\n width: isRotate ? height : width,\n height: isRotate ? width : height,\n left,\n top,\n clientWidth,\n clientHeight\n };\n const fitContentPos = getFitContentPosition(fitContentParams);\n if (isNotNil(fitContentPos.x) || isNotNil(fitContentPos.y)) {\n this.position = { ...this.position, ...fitContentPos };\n }\n else if (!isNotNil(fitContentPos.x) && !isNotNil(fitContentPos.y)) {\n this.position = {\n x: event.source.getFreeDragPosition().x,\n y: event.source.getFreeDragPosition().y\n };\n }\n }\n sanitizerResourceUrl(url) {\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n updatePreviewImageTransform() {\n this.previewImageTransform = `scale3d(${this.zoom * (this.flipHorizontally ? -1 : 1)}, ${this.zoom * (this.flipVertically ? -1 : 1)}, 1) rotate(${this.rotate}deg)`;\n }\n updatePreviewImageWrapperTransform() {\n this.previewImageWrapperTransform = `translate3d(${this.position.x}px, ${this.position.y}px, 0)`;\n }\n updateZoomOutDisabled() {\n this.zoomOutDisabled = this.zoom <= 1;\n }\n handlerImageTransformationWhileZoomingWithMouse(event, deltaY) {\n let scaleValue;\n const imageElement = this.imageRef.nativeElement;\n const elementTransform = getComputedStyle(imageElement).transform;\n const matrixValue = elementTransform.match(/matrix.*\\((.+)\\)/);\n if (matrixValue) {\n scaleValue = +matrixValue[1].split(', ')[0];\n }\n else {\n scaleValue = this.zoom;\n }\n const x = (event.clientX - imageElement.getBoundingClientRect().x) / scaleValue;\n const y = (event.clientY - imageElement.getBoundingClientRect().y) / scaleValue;\n const halfOfScaleStepValue = deltaY < 0 ? this.scaleStep / 2 : -this.scaleStep / 2;\n this.position.x += -x * halfOfScaleStepValue * 2 + imageElement.offsetWidth * halfOfScaleStepValue;\n this.position.y += -y * halfOfScaleStepValue * 2 + imageElement.offsetHeight * halfOfScaleStepValue;\n }\n handleImageScaleWhileZoomingWithMouse(deltaY) {\n if (this.isZoomedInWithMouseWheel(deltaY)) {\n this.onZoomIn();\n }\n else {\n this.onZoomOut();\n }\n if (this.zoom <= 1) {\n this.reCenterImage();\n }\n }\n isZoomedInWithMouseWheel(delta) {\n return delta < 0;\n }\n reset() {\n this.zoom = this.config.nzZoom ?? this._defaultNzZoom;\n this.scaleStep = this.config.nzScaleStep ?? this._defaultNzScaleStep;\n this.rotate = this.config.nzRotate ?? this._defaultNzRotate;\n this.flipHorizontally = false;\n this.flipVertically = false;\n this.reCenterImage();\n }\n reCenterImage() {\n this.position = { ...initialPosition };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImagePreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.0\", type: NzImagePreviewComponent, isStandalone: true, selector: \"nz-image-preview\", host: { listeners: { \"@fadeMotion.start\": \"onAnimationStart($event)\", \"@fadeMotion.done\": \"onAnimationDone($event)\" }, properties: { \"class.ant-image-preview-moving\": \"isDragging\", \"style.zIndex\": \"config.nzZIndex\", \"@.disabled\": \"config.nzNoAnimation\", \"@fadeMotion\": \"visible ? 'enter' : 'leave'\" }, classAttribute: \"ant-image-preview-root\" }, viewQueries: [{ propertyName: \"imageRef\", first: true, predicate: [\"imgRef\"], descendants: true }, { propertyName: \"imagePreviewWrapper\", first: true, predicate: [\"imagePreviewWrapper\"], descendants: true, static: true }], exportAs: [\"nzImagePreview\"], ngImport: i0, template: `\n <div class=\"ant-image-preview-mask\"></div>\n\n <div class=\"ant-image-preview-operations-wrapper\">\n @if (images.length > 1) {\n <div\n class=\"ant-image-preview-switch-left\"\n [class.ant-image-preview-switch-left-disabled]=\"index <= 0\"\n (click)=\"onSwitchLeft($event)\"\n >\n <nz-icon nzType=\"left\" nzTheme=\"outline\" />\n </div>\n <div\n class=\"ant-image-preview-switch-right\"\n [class.ant-image-preview-switch-right-disabled]=\"index >= images.length - 1\"\n (click)=\"onSwitchRight($event)\"\n >\n <nz-icon nzType=\"right\" nzTheme=\"outline\" />\n </div>\n }\n\n <ul class=\"ant-image-preview-operations\">\n @if (images.length > 1) {\n <li class=\"ant-image-preview-operations-progress\">{{ index + 1 }} / {{ images.length }}</li>\n }\n\n @for (option of operations; track option) {\n <li\n class=\"ant-image-preview-operations-operation\"\n [class.ant-image-preview-operations-operation-disabled]=\"zoomOutDisabled && option.type === 'zoomOut'\"\n (click)=\"option.onClick()\"\n >\n <nz-icon\n class=\"ant-image-preview-operations-icon\"\n [nzType]=\"option.icon\"\n [nzRotate]=\"option.rotate ?? 0\"\n nzTheme=\"outline\"\n />\n </li>\n }\n </ul>\n </div>\n\n <div\n class=\"ant-image-preview-wrap\"\n tabindex=\"-1\"\n (click)=\"maskClosable && $event.target === $event.currentTarget && onClose()\"\n >\n <div class=\"ant-image-preview\" role=\"dialog\" aria-modal=\"true\">\n <div tabindex=\"0\" aria-hidden=\"true\" class=\"ant-image-preview-focus-trap\"></div>\n <div class=\"ant-image-preview-content\">\n <div class=\"ant-image-preview-body\">\n <div\n class=\"ant-image-preview-img-wrapper\"\n #imagePreviewWrapper\n cdkDrag\n [style.transform]=\"previewImageWrapperTransform\"\n [cdkDragFreeDragPosition]=\"position\"\n (cdkDragEnded)=\"onDragEnd($event)\"\n >\n @for (image of images; track image; let imageIndex = $index) {\n @if (imageIndex === index) {\n <img\n cdkDragHandle\n class=\"ant-image-preview-img\"\n #imgRef\n [attr.src]=\"sanitizerResourceUrl(image.src)\"\n [attr.srcset]=\"image.srcset\"\n [attr.alt]=\"image.alt\"\n [style.width]=\"image.width\"\n [style.height]=\"image.height\"\n [style.transform]=\"previewImageTransform\"\n />\n }\n }\n </div>\n </div>\n </div>\n <div tabindex=\"0\" aria-hidden=\"true\" class=\"ant-image-preview-focus-trap\"></div>\n </div>\n </div>\n `, isInline: true, dependencies: [{ kind: \"ngmodule\", type: NzIconModule }, { kind: \"directive\", type: i1.NzIconDirective, selector: \"nz-icon,[nz-icon]\", inputs: [\"nzSpin\", \"nzRotate\", \"nzType\", \"nzTheme\", \"nzTwotoneColor\", \"nzIconfont\"], exportAs: [\"nzIcon\"] }, { kind: \"directive\", type: CdkDragHandle, selector: \"[cdkDragHandle]\", inputs: [\"cdkDragHandleDisabled\"] }, { kind: \"directive\", type: CdkDrag, selector: \"[cdkDrag]\", inputs: [\"cdkDragData\", \"cdkDragLockAxis\", \"cdkDragRootElement\", \"cdkDragBoundary\", \"cdkDragStartDelay\", \"cdkDragFreeDragPosition\", \"cdkDragDisabled\", \"cdkDragConstrainPosition\", \"cdkDragPreviewClass\", \"cdkDragPreviewContainer\", \"cdkDragScale\"], outputs: [\"cdkDragStarted\", \"cdkDragReleased\", \"cdkDragEnded\", \"cdkDragEntered\", \"cdkDragExited\", \"cdkDragDropped\", \"cdkDragMoved\"], exportAs: [\"cdkDrag\"] }], animations: [fadeMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImagePreviewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'nz-image-preview',\n exportAs: 'nzImagePreview',\n animations: [fadeMotion],\n template: `\n <div class=\"ant-image-preview-mask\"></div>\n\n <div class=\"ant-image-preview-operations-wrapper\">\n @if (images.length > 1) {\n <div\n class=\"ant-image-preview-switch-left\"\n [class.ant-image-preview-switch-left-disabled]=\"index <= 0\"\n (click)=\"onSwitchLeft($event)\"\n >\n <nz-icon nzType=\"left\" nzTheme=\"outline\" />\n </div>\n <div\n class=\"ant-image-preview-switch-right\"\n [class.ant-image-preview-switch-right-disabled]=\"index >= images.length - 1\"\n (click)=\"onSwitchRight($event)\"\n >\n <nz-icon nzType=\"right\" nzTheme=\"outline\" />\n </div>\n }\n\n <ul class=\"ant-image-preview-operations\">\n @if (images.length > 1) {\n <li class=\"ant-image-preview-operations-progress\">{{ index + 1 }} / {{ images.length }}</li>\n }\n\n @for (option of operations; track option) {\n <li\n class=\"ant-image-preview-operations-operation\"\n [class.ant-image-preview-operations-operation-disabled]=\"zoomOutDisabled && option.type === 'zoomOut'\"\n (click)=\"option.onClick()\"\n >\n <nz-icon\n class=\"ant-image-preview-operations-icon\"\n [nzType]=\"option.icon\"\n [nzRotate]=\"option.rotate ?? 0\"\n nzTheme=\"outline\"\n />\n </li>\n }\n </ul>\n </div>\n\n <div\n class=\"ant-image-preview-wrap\"\n tabindex=\"-1\"\n (click)=\"maskClosable && $event.target === $event.currentTarget && onClose()\"\n >\n <div class=\"ant-image-preview\" role=\"dialog\" aria-modal=\"true\">\n <div tabindex=\"0\" aria-hidden=\"true\" class=\"ant-image-preview-focus-trap\"></div>\n <div class=\"ant-image-preview-content\">\n <div class=\"ant-image-preview-body\">\n <div\n class=\"ant-image-preview-img-wrapper\"\n #imagePreviewWrapper\n cdkDrag\n [style.transform]=\"previewImageWrapperTransform\"\n [cdkDragFreeDragPosition]=\"position\"\n (cdkDragEnded)=\"onDragEnd($event)\"\n >\n @for (image of images; track image; let imageIndex = $index) {\n @if (imageIndex === index) {\n <img\n cdkDragHandle\n class=\"ant-image-preview-img\"\n #imgRef\n [attr.src]=\"sanitizerResourceUrl(image.src)\"\n [attr.srcset]=\"image.srcset\"\n [attr.alt]=\"image.alt\"\n [style.width]=\"image.width\"\n [style.height]=\"image.height\"\n [style.transform]=\"previewImageTransform\"\n />\n }\n }\n </div>\n </div>\n </div>\n <div tabindex=\"0\" aria-hidden=\"true\" class=\"ant-image-preview-focus-trap\"></div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ant-image-preview-root',\n '[class.ant-image-preview-moving]': 'isDragging',\n '[style.zIndex]': 'config.nzZIndex',\n '[@.disabled]': 'config.nzNoAnimation',\n '[@fadeMotion]': `visible ? 'enter' : 'leave'`,\n '(@fadeMotion.start)': 'onAnimationStart($event)',\n '(@fadeMotion.done)': 'onAnimationDone($event)'\n },\n imports: [NzIconModule, CdkDragHandle, CdkDrag]\n }]\n }], ctorParameters: () => [], propDecorators: { imageRef: [{\n type: ViewChild,\n args: ['imgRef']\n }], imagePreviewWrapper: [{\n type: ViewChild,\n args: ['imagePreviewWrapper', { static: true }]\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 NzImagePreviewRef {\n previewInstance;\n config;\n overlayRef;\n destroy$ = new Subject();\n constructor(previewInstance, config, overlayRef) {\n this.previewInstance = previewInstance;\n this.config = config;\n this.overlayRef = overlayRef;\n overlayRef\n .keydownEvents()\n .pipe(filter(event => this.config.nzKeyboard &&\n (event.keyCode === ESCAPE || event.keyCode === LEFT_ARROW || event.keyCode === RIGHT_ARROW) &&\n !hasModifierKey(event)))\n .subscribe(event => {\n event.preventDefault();\n if (event.keyCode === ESCAPE) {\n previewInstance.onClose();\n }\n if (event.keyCode === LEFT_ARROW) {\n this.prev();\n }\n if (event.keyCode === RIGHT_ARROW) {\n this.next();\n }\n });\n overlayRef.detachments().subscribe(() => {\n this.overlayRef.dispose();\n });\n previewInstance.closeClick\n .pipe(take(1), switchMap(() => previewInstance.animationStateChanged), filter(event => event.phaseName === 'done'), takeUntil(this.destroy$))\n .subscribe(() => {\n this.close();\n });\n }\n switchTo(index) {\n this.previewInstance.switchTo(index);\n }\n next() {\n this.previewInstance.next();\n }\n prev() {\n this.previewInstance.prev();\n }\n close() {\n this.destroy$.next();\n this.overlayRef.dispose();\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// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nclass NzImageService {\n injector = inject(Injector);\n nzConfigService = inject(NzConfigService);\n directionality = inject(Directionality);\n preview(images, options, zoomMap) {\n return this.display(images, options, zoomMap);\n }\n display(images, config, scaleStepMap) {\n const configMerged = { ...new NzImagePreviewOptions(), ...(config ?? {}) };\n const overlayRef = this.createOverlay(configMerged);\n const previewComponent = this.attachPreviewComponent(overlayRef, configMerged);\n previewComponent.setImages(images, scaleStepMap);\n const previewRef = new NzImagePreviewRef(previewComponent, configMerged, overlayRef);\n previewComponent.previewRef = previewRef;\n return previewRef;\n }\n attachPreviewComponent(overlayRef, config) {\n const injector = Injector.create({\n parent: this.injector,\n providers: [\n { provide: OverlayRef, useValue: overlayRef },\n { provide: NzImagePreviewOptions, useValue: config }\n ]\n });\n const containerPortal = new ComponentPortal(NzImagePreviewComponent, null, injector);\n const containerRef = overlayRef.attach(containerPortal);\n return containerRef.instance;\n }\n createOverlay(config) {\n const globalConfig = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME$1) || {};\n return createOverlayRef(this.injector, {\n scrollStrategy: createBlockScrollStrategy(this.injector),\n positionStrategy: createGlobalPositionStrategy(this.injector),\n disposeOnNavigation: config.nzCloseOnNavigation ?? globalConfig.nzCloseOnNavigation ?? true,\n direction: config.nzDirection || globalConfig.nzDirection || this.directionality.value\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageService });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageService, decorators: [{\n type: Injectable\n }] });\n\nconst NZ_CONFIG_MODULE_NAME = 'image';\nlet NzImageDirective = (() => {\n let _nzDisablePreview_decorators;\n let _nzDisablePreview_initializers = [];\n let _nzDisablePreview_extraInitializers = [];\n let _nzFallback_decorators;\n let _nzFallback_initializers = [];\n let _nzFallback_extraInitializers = [];\n let _nzPlaceholder_decorators;\n let _nzPlaceholder_initializers = [];\n let _nzPlaceholder_extraInitializers = [];\n let _nzScaleStep_decorators;\n let _nzScaleStep_initializers = [];\n let _nzScaleStep_extraInitializers = [];\n return class NzImageDirective {\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(null) : void 0;\n _nzDisablePreview_decorators = [WithConfig()];\n _nzFallback_decorators = [WithConfig()];\n _nzPlaceholder_decorators = [WithConfig()];\n _nzScaleStep_decorators = [WithConfig()];\n __esDecorate(null, null, _nzDisablePreview_decorators, { kind: \"field\", name: \"nzDisablePreview\", static: false, private: false, access: { has: obj => \"nzDisablePreview\" in obj, get: obj => obj.nzDisablePreview, set: (obj, value) => { obj.nzDisablePreview = value; } }, metadata: _metadata }, _nzDisablePreview_initializers, _nzDisablePreview_extraInitializers);\n __esDecorate(null, null, _nzFallback_decorators, { kind: \"field\", name: \"nzFallback\", static: false, private: false, access: { has: obj => \"nzFallback\" in obj, get: obj => obj.nzFallback, set: (obj, value) => { obj.nzFallback = value; } }, metadata: _metadata }, _nzFallback_initializers, _nzFallback_extraInitializers);\n __esDecorate(null, null, _nzPlaceholder_decorators, { kind: \"field\", name: \"nzPlaceholder\", static: false, private: false, access: { has: obj => \"nzPlaceholder\" in obj, get: obj => obj.nzPlaceholder, set: (obj, value) => { obj.nzPlaceholder = value; } }, metadata: _metadata }, _nzPlaceholder_initializers, _nzPlaceholder_extraInitializers);\n __esDecorate(null, null, _nzScaleStep_decorators, { kind: \"field\", name: \"nzScaleStep\", static: false, private: false, access: { has: obj => \"nzScaleStep\" in obj, get: obj => obj.nzScaleStep, set: (obj, value) => { obj.nzScaleStep = value; } }, metadata: _metadata }, _nzScaleStep_initializers, _nzScaleStep_extraInitializers);\n if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n }\n document = inject(DOCUMENT);\n nzConfigService = inject(NzConfigService);\n elementRef = inject(ElementRef);\n nzImageService = inject(NzImageService);\n cdr = inject(ChangeDetectorRef);\n directionality = inject(Directionality);\n destroyRef = inject(DestroyRef);\n _nzModuleName = NZ_CONFIG_MODULE_NAME;\n nzSrc = '';\n nzSrcset = '';\n nzDisablePreview = __runInitializers(this, _nzDisablePreview_initializers, false);\n nzFallback = (__runInitializers(this, _nzDisablePreview_extraInitializers), __runInitializers(this, _nzFallback_initializers, null));\n nzPlaceholder = (__runInitializers(this, _nzFallback_extraInitializers), __runInitializers(this, _nzPlaceholder_initializers, null));\n nzScaleStep = (__runInitializers(this, _nzPlaceholder_extraInitializers), __runInitializers(this, _nzScaleStep_initializers, null));\n dir = __runInitializers(this, _nzScaleStep_extraInitializers);\n backLoadImage;\n status = 'normal';\n backLoadDestroy$ = new Subject();\n parentGroup = inject(NzImageGroupComponent, { optional: true });\n get previewable() {\n return !this.nzDisablePreview && this.status !== 'error';\n }\n ngOnInit() {\n this.backLoad();\n if (this.parentGroup) {\n this.parentGroup.addImage(this);\n }\n if (this.directionality) {\n this.directionality.change?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(direction => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n this.dir = this.directionality.value;\n }\n }\n onPreview() {\n if (!this.previewable) {\n return;\n }\n if (this.parentGroup) {\n // preview inside image group\n const previewAbleImages = this.parentGroup.images.filter(e => e.previewable);\n const previewImages = previewAbleImages.map(e => ({ src: e.nzSrc, srcset: e.nzSrcset }));\n const previewIndex = previewAbleImages.findIndex(el => this === el);\n const scaleStepMap = new Map();\n previewAbleImages.forEach(imageDirective => {\n scaleStepMap.set(imageDirective.nzSrc ?? imageDirective.nzSrcset, imageDirective.nzScaleStep ?? this.parentGroup.nzScaleStep ?? this.nzScaleStep ?? NZ_DEFAULT_SCALE_STEP);\n });\n const previewRef = this.nzImageService.preview(previewImages, {\n nzDirection: this.dir\n }, scaleStepMap);\n previewRef.switchTo(previewIndex);\n }\n else {\n // preview not inside image group\n const previewImages = [{ src: this.nzSrc, srcset: this.nzSrcset }];\n this.nzImageService.preview(previewImages, {\n nzDirection: this.dir,\n nzScaleStep: this.nzScaleStep ?? NZ_DEFAULT_SCALE_STEP\n });\n }\n }\n getElement() {\n return this.elementRef;\n }\n ngOnChanges(changes) {\n const { nzSrc } = changes;\n if (nzSrc) {\n this.getElement().nativeElement.src = nzSrc.currentValue;\n this.backLoad();\n }\n }\n /**\n * use internal Image object handle fallback & placeholder\n *\n * @private\n */\n backLoad() {\n this.backLoadImage = this.document.createElement('img');\n this.backLoadImage.src = this.nzSrc;\n this.backLoadImage.srcset = this.nzSrcset;\n this.status = 'loading';\n // unsubscribe last backLoad\n this.backLoadDestroy$.next();\n this.backLoadDestroy$.complete();\n this.backLoadDestroy$ = new Subject();\n if (this.backLoadImage.complete) {\n this.status = 'normal';\n this.getElement().nativeElement.src = this.nzSrc;\n this.getElement().nativeElement.srcset = this.nzSrcset;\n }\n else {\n if (this.nzPlaceholder) {\n this.getElement().nativeElement.src = this.nzPlaceholder;\n this.getElement().nativeElement.srcset = '';\n }\n else {\n this.getElement().nativeElement.src = this.nzSrc;\n this.getElement().nativeElement.srcset = this.nzSrcset;\n }\n // The `nz-image` directive can be destroyed before the `load` or `error` event is dispatched,\n // so there's no sense to keep capturing `this`.\n fromEvent(this.backLoadImage, 'load')\n .pipe(takeUntil(this.backLoadDestroy$), takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.status = 'normal';\n this.getElement().nativeElement.src = this.nzSrc;\n this.getElement().nativeElement.srcset = this.nzSrcset;\n });\n fromEvent(this.backLoadImage, 'error')\n .pipe(takeUntil(this.backLoadDestroy$), takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.status = 'error';\n if (this.nzFallback) {\n this.getElement().nativeElement.src = this.nzFallback;\n this.getElement().nativeElement.srcset = '';\n }\n });\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"20.3.0\", type: NzImageDirective, isStandalone: true, selector: \"img[nz-image]\", inputs: { nzSrc: \"nzSrc\", nzSrcset: \"nzSrcset\", nzDisablePreview: [\"nzDisablePreview\", \"nzDisablePreview\", booleanAttribute], nzFallback: \"nzFallback\", nzPlaceholder: \"nzPlaceholder\", nzScaleStep: \"nzScaleStep\" }, host: { listeners: { \"click\": \"onPreview()\" } }, exportAs: [\"nzImage\"], usesOnChanges: true, ngImport: i0 });\n };\n})();\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageDirective, decorators: [{\n type: Directive,\n args: [{\n selector: 'img[nz-image]',\n exportAs: 'nzImage',\n host: {\n '(click)': 'onPreview()'\n }\n }]\n }], propDecorators: { nzSrc: [{\n type: Input\n }], nzSrcset: [{\n type: Input\n }], nzDisablePreview: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzFallback: [{\n type: Input\n }], nzPlaceholder: [{\n type: Input\n }], nzScaleStep: [{\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 NzImageModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageModule, imports: [NzImageDirective, NzImagePreviewComponent, NzImageGroupComponent], exports: [NzImageDirective, NzImagePreviewComponent, NzImageGroupComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageModule, providers: [NzImageService], imports: [NzImagePreviewComponent] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.0\", ngImport: i0, type: NzImageModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NzImageDirective, NzImagePreviewComponent, NzImageGroupComponent],\n exports: [NzImageDirective, NzImagePreviewComponent, NzImageGroupComponent],\n providers: [NzImageService]\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 { NZ_CONFIG_MODULE_NAME$1 as NZ_CONFIG_MODULE_NAME, NZ_DEFAULT_SCALE_STEP, NzImageDirective, NzImageGroupComponent, NzImageModule, NzImagePreviewComponent, NzImagePreviewOptions, NzImagePreviewRef, NzImageService, getClientSize, getFitContentPosition, getOffset };\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAM,wBAAN,MAAM,uBAAsB;AAAA,EACxB,cAAc;AAAA,EACd,SAAS,CAAC;AAAA,EACV,SAAS,OAAO;AACZ,SAAK,OAAO,KAAK,KAAK;AAAA,EAC1B;AAAA,EACA,OAAO,YAAU,6BAAmB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,wBAAuB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,SAAS,CAAC;AAAA,EACjK,OAAO,YAAU,8BAAoB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,gBAAe,SAAS,CAAC,kBAAkB,yBAAyB,qBAAqB,GAAG,SAAS,CAAC,kBAAkB,yBAAyB,qBAAqB,EAAE,CAAC;AAAA,EAC7Q,OAAO,YAAU,8BAAoB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,gBAAe,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC,uBAAuB,EAAE,CAAC;AACxL;AACG,mCAAyB,EAAE,YAAY,UAAU,SAAS,UAAU,UAAU,cAAI,MAAM,eAAe,YAAY,CAAC;AAAA,EAC3G,MAAM;AAAA,EACN,MAAM,CAAC;AAAA,IACC,SAAS,CAAC,kBAAkB,yBAAyB,qBAAqB;AAAA,IAC1E,SAAS,CAAC,kBAAkB,yBAAyB,qBAAqB;AAAA,IAC1E,WAAW,CAAC,cAAc;AAAA,EAC9B,CAAC;AACT,CAAC,EAAE,CAAC;","names":[],"x_google_ignoreList":[0]}
|
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CheckboxControlValueAccessor,
|
|
3
|
-
Directionality,
|
|
4
|
-
FocusMonitor,
|
|
5
|
-
FormsModule,
|
|
6
|
-
NG_VALUE_ACCESSOR,
|
|
7
|
-
NgControlStatus,
|
|
8
|
-
NgModel,
|
|
9
|
-
NzFormStatusService,
|
|
10
|
-
fromEventOutsideAngular,
|
|
11
|
-
takeUntilDestroyed,
|
|
12
|
-
toSignal
|
|
13
|
-
} from "./chunk-RUXJCM3V.js";
|
|
14
|
-
import {
|
|
15
|
-
ChangeDetectionStrategy,
|
|
16
|
-
ChangeDetectorRef,
|
|
17
|
-
Component,
|
|
18
|
-
DestroyRef,
|
|
19
|
-
ElementRef,
|
|
20
|
-
EventEmitter,
|
|
21
|
-
FactoryTarget,
|
|
22
|
-
InjectionToken,
|
|
23
|
-
Input,
|
|
24
|
-
NgModule,
|
|
25
|
-
NgZone,
|
|
26
|
-
Output,
|
|
27
|
-
Subject,
|
|
28
|
-
ViewChild,
|
|
29
|
-
ViewEncapsulation,
|
|
30
|
-
afterNextRender,
|
|
31
|
-
booleanAttribute,
|
|
32
|
-
computed,
|
|
33
|
-
core_exports,
|
|
34
|
-
effect,
|
|
35
|
-
forwardRef,
|
|
36
|
-
inject,
|
|
37
|
-
input,
|
|
38
|
-
linkedSignal,
|
|
39
|
-
signal,
|
|
40
|
-
untracked,
|
|
41
|
-
ɵɵngDeclareClassMetadata,
|
|
42
|
-
ɵɵngDeclareComponent,
|
|
43
|
-
ɵɵngDeclareFactory,
|
|
44
|
-
ɵɵngDeclareInjector,
|
|
45
|
-
ɵɵngDeclareNgModule
|
|
46
|
-
} from "./chunk-XQY5SPGI.js";
|
|
47
|
-
|
|
48
|
-
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-checkbox.mjs
|
|
49
|
-
var NzCheckboxWrapperComponent = class _NzCheckboxWrapperComponent {
|
|
50
|
-
nzOnChange = new EventEmitter();
|
|
51
|
-
checkboxList = [];
|
|
52
|
-
addCheckbox(value) {
|
|
53
|
-
this.checkboxList.push(value);
|
|
54
|
-
}
|
|
55
|
-
removeCheckbox(value) {
|
|
56
|
-
this.checkboxList.splice(this.checkboxList.indexOf(value), 1);
|
|
57
|
-
}
|
|
58
|
-
onChange() {
|
|
59
|
-
const listOfCheckedValue = this.checkboxList.filter((item) => item.nzChecked).map((item) => item.nzValue);
|
|
60
|
-
this.nzOnChange.emit(listOfCheckedValue);
|
|
61
|
-
}
|
|
62
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxWrapperComponent, deps: [], target: FactoryTarget.Component });
|
|
63
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: _NzCheckboxWrapperComponent, isStandalone: true, selector: "nz-checkbox-wrapper", outputs: { nzOnChange: "nzOnChange" }, host: { classAttribute: "ant-checkbox-group" }, exportAs: ["nzCheckboxWrapper"], ngImport: core_exports, template: `<ng-content></ng-content>`, isInline: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
64
|
-
};
|
|
65
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzCheckboxWrapperComponent, decorators: [{
|
|
66
|
-
type: Component,
|
|
67
|
-
args: [{
|
|
68
|
-
selector: "nz-checkbox-wrapper",
|
|
69
|
-
exportAs: "nzCheckboxWrapper",
|
|
70
|
-
template: `<ng-content></ng-content>`,
|
|
71
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
72
|
-
encapsulation: ViewEncapsulation.None,
|
|
73
|
-
host: {
|
|
74
|
-
class: "ant-checkbox-group"
|
|
75
|
-
}
|
|
76
|
-
}]
|
|
77
|
-
}], propDecorators: { nzOnChange: [{
|
|
78
|
-
type: Output
|
|
79
|
-
}] } });
|
|
80
|
-
var NZ_CHECKBOX_GROUP = new InjectionToken(typeof ngDevMode !== "undefined" && ngDevMode ? "nz-checkbox-group" : "");
|
|
81
|
-
var NzCheckboxComponent = class _NzCheckboxComponent {
|
|
82
|
-
ngZone = inject(NgZone);
|
|
83
|
-
elementRef = inject(ElementRef);
|
|
84
|
-
cdr = inject(ChangeDetectorRef);
|
|
85
|
-
focusMonitor = inject(FocusMonitor);
|
|
86
|
-
directionality = inject(Directionality);
|
|
87
|
-
destroyRef = inject(DestroyRef);
|
|
88
|
-
checkboxGroupComponent = inject(NZ_CHECKBOX_GROUP, { optional: true });
|
|
89
|
-
nzFormStatusService = inject(NzFormStatusService, { optional: true });
|
|
90
|
-
/** @deprecated */
|
|
91
|
-
nzCheckboxWrapperComponent = inject(NzCheckboxWrapperComponent, { optional: true });
|
|
92
|
-
dir = "ltr";
|
|
93
|
-
destroy$ = new Subject();
|
|
94
|
-
isNzDisableFirstChange = true;
|
|
95
|
-
onChange = () => {
|
|
96
|
-
};
|
|
97
|
-
onTouched = () => {
|
|
98
|
-
};
|
|
99
|
-
inputElement;
|
|
100
|
-
nzCheckedChange = new EventEmitter();
|
|
101
|
-
nzValue = null;
|
|
102
|
-
nzAutoFocus = false;
|
|
103
|
-
nzDisabled = false;
|
|
104
|
-
nzIndeterminate = false;
|
|
105
|
-
nzChecked = false;
|
|
106
|
-
nzId = null;
|
|
107
|
-
nzName = null;
|
|
108
|
-
innerCheckedChange(checked) {
|
|
109
|
-
if (!this.nzDisabled && !this.checkboxGroupComponent?.finalDisabled()) {
|
|
110
|
-
this.setValue(checked);
|
|
111
|
-
this.nzCheckboxWrapperComponent?.onChange();
|
|
112
|
-
this.checkboxGroupComponent?.onCheckedChange(this.nzValue, checked);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
writeValue(value) {
|
|
116
|
-
this.nzChecked = value;
|
|
117
|
-
this.cdr.markForCheck();
|
|
118
|
-
}
|
|
119
|
-
registerOnChange(fn) {
|
|
120
|
-
this.onChange = fn;
|
|
121
|
-
}
|
|
122
|
-
registerOnTouched(fn) {
|
|
123
|
-
this.onTouched = fn;
|
|
124
|
-
}
|
|
125
|
-
setDisabledState(disabled) {
|
|
126
|
-
this.nzDisabled = this.isNzDisableFirstChange && this.nzDisabled || disabled;
|
|
127
|
-
this.isNzDisableFirstChange = false;
|
|
128
|
-
this.cdr.markForCheck();
|
|
129
|
-
}
|
|
130
|
-
focus() {
|
|
131
|
-
this.focusMonitor.focusVia(this.inputElement, "keyboard");
|
|
132
|
-
}
|
|
133
|
-
blur() {
|
|
134
|
-
this.inputElement.nativeElement.blur();
|
|
135
|
-
}
|
|
136
|
-
constructor() {
|
|
137
|
-
this.destroyRef.onDestroy(() => {
|
|
138
|
-
this.focusMonitor.stopMonitoring(this.elementRef);
|
|
139
|
-
this.nzCheckboxWrapperComponent?.removeCheckbox(this);
|
|
140
|
-
});
|
|
141
|
-
if (this.checkboxGroupComponent) {
|
|
142
|
-
effect(() => {
|
|
143
|
-
const values = this.checkboxGroupComponent.value() || [];
|
|
144
|
-
this.setValue(values.includes(this.nzValue));
|
|
145
|
-
this.cdr.markForCheck();
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
ngOnInit() {
|
|
150
|
-
this.focusMonitor.monitor(this.elementRef, true).pipe(takeUntilDestroyed(this.destroyRef)).subscribe((focusOrigin) => {
|
|
151
|
-
if (!focusOrigin) {
|
|
152
|
-
Promise.resolve().then(() => this.onTouched());
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
this.nzCheckboxWrapperComponent?.addCheckbox(this);
|
|
156
|
-
this.directionality.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((direction) => {
|
|
157
|
-
this.dir = direction;
|
|
158
|
-
this.cdr.detectChanges();
|
|
159
|
-
});
|
|
160
|
-
this.dir = this.directionality.value;
|
|
161
|
-
fromEventOutsideAngular(this.elementRef.nativeElement, "click").pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
162
|
-
event.preventDefault();
|
|
163
|
-
this.focus();
|
|
164
|
-
if (this.nzDisabled) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
this.ngZone.run(() => {
|
|
168
|
-
this.innerCheckedChange(!this.nzChecked);
|
|
169
|
-
this.cdr.markForCheck();
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
fromEventOutsideAngular(this.inputElement.nativeElement, "click").pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => event.stopPropagation());
|
|
173
|
-
}
|
|
174
|
-
ngAfterViewInit() {
|
|
175
|
-
if (this.nzAutoFocus) {
|
|
176
|
-
this.focus();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
setValue(value) {
|
|
180
|
-
this.nzChecked = value;
|
|
181
|
-
this.onChange(value);
|
|
182
|
-
this.nzCheckedChange.emit(value);
|
|
183
|
-
}
|
|
184
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxComponent, deps: [], target: FactoryTarget.Component });
|
|
185
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "16.1.0", version: "20.3.0", type: _NzCheckboxComponent, isStandalone: true, selector: "[nz-checkbox]", inputs: { nzValue: "nzValue", nzAutoFocus: ["nzAutoFocus", "nzAutoFocus", booleanAttribute], nzDisabled: ["nzDisabled", "nzDisabled", booleanAttribute], nzIndeterminate: ["nzIndeterminate", "nzIndeterminate", booleanAttribute], nzChecked: ["nzChecked", "nzChecked", booleanAttribute], nzId: "nzId", nzName: "nzName" }, outputs: { nzCheckedChange: "nzCheckedChange" }, host: { properties: { "class.ant-checkbox-group-item": "!!checkboxGroupComponent", "class.ant-checkbox-wrapper-in-form-item": "!!nzFormStatusService", "class.ant-checkbox-wrapper-checked": "nzChecked", "class.ant-checkbox-wrapper-disabled": "nzDisabled || checkboxGroupComponent?.finalDisabled()", "class.ant-checkbox-rtl": "dir === 'rtl'" }, classAttribute: "ant-checkbox-wrapper" }, providers: [
|
|
186
|
-
{
|
|
187
|
-
provide: NG_VALUE_ACCESSOR,
|
|
188
|
-
useExisting: forwardRef(() => _NzCheckboxComponent),
|
|
189
|
-
multi: true
|
|
190
|
-
}
|
|
191
|
-
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], exportAs: ["nzCheckbox"], ngImport: core_exports, template: `
|
|
192
|
-
<span
|
|
193
|
-
class="ant-checkbox"
|
|
194
|
-
[class.ant-checkbox-checked]="nzChecked && !nzIndeterminate"
|
|
195
|
-
[class.ant-checkbox-disabled]="nzDisabled || checkboxGroupComponent?.finalDisabled()"
|
|
196
|
-
[class.ant-checkbox-indeterminate]="nzIndeterminate"
|
|
197
|
-
>
|
|
198
|
-
<input
|
|
199
|
-
#inputElement
|
|
200
|
-
type="checkbox"
|
|
201
|
-
class="ant-checkbox-input"
|
|
202
|
-
[attr.autofocus]="nzAutoFocus ? 'autofocus' : null"
|
|
203
|
-
[attr.id]="nzId"
|
|
204
|
-
[attr.name]="nzName || checkboxGroupComponent?.nzName()"
|
|
205
|
-
[checked]="nzChecked"
|
|
206
|
-
[ngModel]="nzChecked"
|
|
207
|
-
[disabled]="nzDisabled || (checkboxGroupComponent?.finalDisabled() ?? false)"
|
|
208
|
-
(ngModelChange)="innerCheckedChange($event)"
|
|
209
|
-
/>
|
|
210
|
-
<span class="ant-checkbox-inner"></span>
|
|
211
|
-
</span>
|
|
212
|
-
<span><ng-content></ng-content></span>
|
|
213
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
214
|
-
};
|
|
215
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzCheckboxComponent, decorators: [{
|
|
216
|
-
type: Component,
|
|
217
|
-
args: [{
|
|
218
|
-
selector: "[nz-checkbox]",
|
|
219
|
-
exportAs: "nzCheckbox",
|
|
220
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
221
|
-
encapsulation: ViewEncapsulation.None,
|
|
222
|
-
template: `
|
|
223
|
-
<span
|
|
224
|
-
class="ant-checkbox"
|
|
225
|
-
[class.ant-checkbox-checked]="nzChecked && !nzIndeterminate"
|
|
226
|
-
[class.ant-checkbox-disabled]="nzDisabled || checkboxGroupComponent?.finalDisabled()"
|
|
227
|
-
[class.ant-checkbox-indeterminate]="nzIndeterminate"
|
|
228
|
-
>
|
|
229
|
-
<input
|
|
230
|
-
#inputElement
|
|
231
|
-
type="checkbox"
|
|
232
|
-
class="ant-checkbox-input"
|
|
233
|
-
[attr.autofocus]="nzAutoFocus ? 'autofocus' : null"
|
|
234
|
-
[attr.id]="nzId"
|
|
235
|
-
[attr.name]="nzName || checkboxGroupComponent?.nzName()"
|
|
236
|
-
[checked]="nzChecked"
|
|
237
|
-
[ngModel]="nzChecked"
|
|
238
|
-
[disabled]="nzDisabled || (checkboxGroupComponent?.finalDisabled() ?? false)"
|
|
239
|
-
(ngModelChange)="innerCheckedChange($event)"
|
|
240
|
-
/>
|
|
241
|
-
<span class="ant-checkbox-inner"></span>
|
|
242
|
-
</span>
|
|
243
|
-
<span><ng-content></ng-content></span>
|
|
244
|
-
`,
|
|
245
|
-
providers: [
|
|
246
|
-
{
|
|
247
|
-
provide: NG_VALUE_ACCESSOR,
|
|
248
|
-
useExisting: forwardRef(() => NzCheckboxComponent),
|
|
249
|
-
multi: true
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
host: {
|
|
253
|
-
class: "ant-checkbox-wrapper",
|
|
254
|
-
"[class.ant-checkbox-group-item]": "!!checkboxGroupComponent",
|
|
255
|
-
"[class.ant-checkbox-wrapper-in-form-item]": "!!nzFormStatusService",
|
|
256
|
-
"[class.ant-checkbox-wrapper-checked]": "nzChecked",
|
|
257
|
-
"[class.ant-checkbox-wrapper-disabled]": "nzDisabled || checkboxGroupComponent?.finalDisabled()",
|
|
258
|
-
"[class.ant-checkbox-rtl]": `dir === 'rtl'`
|
|
259
|
-
},
|
|
260
|
-
imports: [FormsModule]
|
|
261
|
-
}]
|
|
262
|
-
}], ctorParameters: () => [], propDecorators: { inputElement: [{
|
|
263
|
-
type: ViewChild,
|
|
264
|
-
args: ["inputElement", { static: true }]
|
|
265
|
-
}], nzCheckedChange: [{
|
|
266
|
-
type: Output
|
|
267
|
-
}], nzValue: [{
|
|
268
|
-
type: Input
|
|
269
|
-
}], nzAutoFocus: [{
|
|
270
|
-
type: Input,
|
|
271
|
-
args: [{ transform: booleanAttribute }]
|
|
272
|
-
}], nzDisabled: [{
|
|
273
|
-
type: Input,
|
|
274
|
-
args: [{ transform: booleanAttribute }]
|
|
275
|
-
}], nzIndeterminate: [{
|
|
276
|
-
type: Input,
|
|
277
|
-
args: [{ transform: booleanAttribute }]
|
|
278
|
-
}], nzChecked: [{
|
|
279
|
-
type: Input,
|
|
280
|
-
args: [{ transform: booleanAttribute }]
|
|
281
|
-
}], nzId: [{
|
|
282
|
-
type: Input
|
|
283
|
-
}], nzName: [{
|
|
284
|
-
type: Input
|
|
285
|
-
}] } });
|
|
286
|
-
var NzCheckboxGroupComponent = class _NzCheckboxGroupComponent {
|
|
287
|
-
onChange = () => {
|
|
288
|
-
};
|
|
289
|
-
onTouched = () => {
|
|
290
|
-
};
|
|
291
|
-
isDisabledFirstChange = true;
|
|
292
|
-
directionality = inject(Directionality);
|
|
293
|
-
nzName = input(null, ...ngDevMode ? [{ debugName: "nzName" }] : []);
|
|
294
|
-
nzDisabled = input(false, ...ngDevMode ? [{ debugName: "nzDisabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]);
|
|
295
|
-
nzOptions = input([], ...ngDevMode ? [{ debugName: "nzOptions" }] : []);
|
|
296
|
-
value = signal(null, ...ngDevMode ? [{ debugName: "value" }] : []);
|
|
297
|
-
finalDisabled = linkedSignal(() => this.nzDisabled());
|
|
298
|
-
dir = toSignal(this.directionality.change, { initialValue: this.directionality.value });
|
|
299
|
-
normalizedOptions = computed(() => normalizeOptions(this.nzOptions()), ...ngDevMode ? [{ debugName: "normalizedOptions" }] : []);
|
|
300
|
-
constructor() {
|
|
301
|
-
const elementRef = inject(ElementRef);
|
|
302
|
-
const focusMonitor = inject(FocusMonitor);
|
|
303
|
-
const destroyRef = inject(DestroyRef);
|
|
304
|
-
afterNextRender(() => {
|
|
305
|
-
focusMonitor.monitor(elementRef, true).pipe(takeUntilDestroyed(destroyRef)).subscribe((focusOrigin) => {
|
|
306
|
-
if (!focusOrigin) {
|
|
307
|
-
this.onTouched();
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
destroyRef.onDestroy(() => {
|
|
311
|
-
focusMonitor.stopMonitoring(elementRef);
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
writeValue(value) {
|
|
316
|
-
untracked(() => {
|
|
317
|
-
this.value.set(value);
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
registerOnChange(fn) {
|
|
321
|
-
this.onChange = fn;
|
|
322
|
-
}
|
|
323
|
-
registerOnTouched(fn) {
|
|
324
|
-
this.onTouched = fn;
|
|
325
|
-
}
|
|
326
|
-
setDisabledState(disabled) {
|
|
327
|
-
untracked(() => {
|
|
328
|
-
this.finalDisabled.set(this.isDisabledFirstChange && this.nzDisabled() || disabled);
|
|
329
|
-
});
|
|
330
|
-
this.isDisabledFirstChange = false;
|
|
331
|
-
}
|
|
332
|
-
onCheckedChange(optionValue, checked) {
|
|
333
|
-
if (this.finalDisabled())
|
|
334
|
-
return;
|
|
335
|
-
this.value.update((value) => {
|
|
336
|
-
if (checked) {
|
|
337
|
-
return value?.concat(optionValue) || [optionValue];
|
|
338
|
-
} else {
|
|
339
|
-
return value?.filter((val) => val !== optionValue) || [];
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
this.onChange(this.value());
|
|
343
|
-
}
|
|
344
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxGroupComponent, deps: [], target: FactoryTarget.Component });
|
|
345
|
-
static \u0275cmp = \u0275\u0275ngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: _NzCheckboxGroupComponent, isStandalone: true, selector: "nz-checkbox-group", inputs: { nzName: { classPropertyName: "nzName", publicName: "nzName", isSignal: true, isRequired: false, transformFunction: null }, nzDisabled: { classPropertyName: "nzDisabled", publicName: "nzDisabled", isSignal: true, isRequired: false, transformFunction: null }, nzOptions: { classPropertyName: "nzOptions", publicName: "nzOptions", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.ant-checkbox-group-rtl": "dir() === 'rtl'" }, classAttribute: "ant-checkbox-group" }, providers: [
|
|
346
|
-
{
|
|
347
|
-
provide: NG_VALUE_ACCESSOR,
|
|
348
|
-
useExisting: forwardRef(() => _NzCheckboxGroupComponent),
|
|
349
|
-
multi: true
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
provide: NZ_CHECKBOX_GROUP,
|
|
353
|
-
useExisting: forwardRef(() => _NzCheckboxGroupComponent)
|
|
354
|
-
}
|
|
355
|
-
], exportAs: ["nzCheckboxGroup"], ngImport: core_exports, template: `
|
|
356
|
-
<ng-content>
|
|
357
|
-
@for (option of normalizedOptions(); track option.value) {
|
|
358
|
-
<label
|
|
359
|
-
nz-checkbox
|
|
360
|
-
[nzValue]="option.value"
|
|
361
|
-
[nzName]="nzName()"
|
|
362
|
-
[nzDisabled]="option.disabled || finalDisabled()"
|
|
363
|
-
>
|
|
364
|
-
{{ option.label }}
|
|
365
|
-
</label>
|
|
366
|
-
}
|
|
367
|
-
</ng-content>
|
|
368
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None });
|
|
369
|
-
};
|
|
370
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzCheckboxGroupComponent, decorators: [{
|
|
371
|
-
type: Component,
|
|
372
|
-
args: [{
|
|
373
|
-
selector: "nz-checkbox-group",
|
|
374
|
-
exportAs: "nzCheckboxGroup",
|
|
375
|
-
imports: [NzCheckboxComponent],
|
|
376
|
-
template: `
|
|
377
|
-
<ng-content>
|
|
378
|
-
@for (option of normalizedOptions(); track option.value) {
|
|
379
|
-
<label
|
|
380
|
-
nz-checkbox
|
|
381
|
-
[nzValue]="option.value"
|
|
382
|
-
[nzName]="nzName()"
|
|
383
|
-
[nzDisabled]="option.disabled || finalDisabled()"
|
|
384
|
-
>
|
|
385
|
-
{{ option.label }}
|
|
386
|
-
</label>
|
|
387
|
-
}
|
|
388
|
-
</ng-content>
|
|
389
|
-
`,
|
|
390
|
-
providers: [
|
|
391
|
-
{
|
|
392
|
-
provide: NG_VALUE_ACCESSOR,
|
|
393
|
-
useExisting: forwardRef(() => NzCheckboxGroupComponent),
|
|
394
|
-
multi: true
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
provide: NZ_CHECKBOX_GROUP,
|
|
398
|
-
useExisting: forwardRef(() => NzCheckboxGroupComponent)
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
host: {
|
|
402
|
-
class: "ant-checkbox-group",
|
|
403
|
-
"[class.ant-checkbox-group-rtl]": `dir() === 'rtl'`
|
|
404
|
-
},
|
|
405
|
-
encapsulation: ViewEncapsulation.None,
|
|
406
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
407
|
-
}]
|
|
408
|
-
}], ctorParameters: () => [] });
|
|
409
|
-
function normalizeOptions(value) {
|
|
410
|
-
return value.map((item) => {
|
|
411
|
-
if (typeof item === "string" || typeof item === "number") {
|
|
412
|
-
return {
|
|
413
|
-
label: `${item}`,
|
|
414
|
-
value: item
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
return item;
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
var NzCheckboxModule = class _NzCheckboxModule {
|
|
421
|
-
static \u0275fac = \u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxModule, deps: [], target: FactoryTarget.NgModule });
|
|
422
|
-
static \u0275mod = \u0275\u0275ngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxModule, imports: [NzCheckboxComponent, NzCheckboxGroupComponent, NzCheckboxWrapperComponent], exports: [NzCheckboxComponent, NzCheckboxGroupComponent, NzCheckboxWrapperComponent] });
|
|
423
|
-
static \u0275inj = \u0275\u0275ngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: _NzCheckboxModule, imports: [NzCheckboxComponent, NzCheckboxGroupComponent] });
|
|
424
|
-
};
|
|
425
|
-
\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: core_exports, type: NzCheckboxModule, decorators: [{
|
|
426
|
-
type: NgModule,
|
|
427
|
-
args: [{
|
|
428
|
-
imports: [NzCheckboxComponent, NzCheckboxGroupComponent, NzCheckboxWrapperComponent],
|
|
429
|
-
exports: [NzCheckboxComponent, NzCheckboxGroupComponent, NzCheckboxWrapperComponent]
|
|
430
|
-
}]
|
|
431
|
-
}] });
|
|
432
|
-
|
|
433
|
-
export {
|
|
434
|
-
NzCheckboxComponent,
|
|
435
|
-
NzCheckboxModule
|
|
436
|
-
};
|
|
437
|
-
//# sourceMappingURL=chunk-766T7YES.js.map
|