This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

292
node_modules/ng-zorro-antd/image/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,292 @@
import { Direction } from '@angular/cdk/bidi';
import * as i0 from '@angular/core';
import { OnInit, OnChanges, ChangeDetectorRef, ElementRef, SimpleChanges, EventEmitter } from '@angular/core';
import { NzConfigService, NzConfigKey } from 'ng-zorro-antd/core/config';
import { OverlayRef } from '@angular/cdk/overlay';
import { AnimationEvent } from '@angular/animations';
import { CdkDragEnd } from '@angular/cdk/drag-drop';
import { SafeResourceUrl } from '@angular/platform-browser';
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
type ImageStatusType = 'error' | 'loading' | 'normal';
type NzImageUrl = string;
type NzImageScaleStep = number;
declare class NzImageDirective implements OnInit, OnChanges {
private document;
nzConfigService: NzConfigService;
private elementRef;
private nzImageService;
protected cdr: ChangeDetectorRef;
private directionality;
private destroyRef;
readonly _nzModuleName: NzConfigKey;
nzSrc: string;
nzSrcset: string;
nzDisablePreview: boolean;
nzFallback: string | null;
nzPlaceholder: string | null;
nzScaleStep: number | null;
dir?: Direction;
backLoadImage: HTMLImageElement;
status: ImageStatusType;
private backLoadDestroy$;
private parentGroup;
get previewable(): boolean;
ngOnInit(): void;
onPreview(): void;
getElement(): ElementRef<HTMLImageElement>;
ngOnChanges(changes: SimpleChanges): void;
/**
* use internal Image object handle fallback & placeholder
*
* @private
*/
private backLoad;
static ɵfac: i0.ɵɵFactoryDeclaration<NzImageDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzImageDirective, "img[nz-image]", ["nzImage"], { "nzSrc": { "alias": "nzSrc"; "required": false; }; "nzSrcset": { "alias": "nzSrcset"; "required": false; }; "nzDisablePreview": { "alias": "nzDisablePreview"; "required": false; }; "nzFallback": { "alias": "nzFallback"; "required": false; }; "nzPlaceholder": { "alias": "nzPlaceholder"; "required": false; }; "nzScaleStep": { "alias": "nzScaleStep"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzDisablePreview: unknown;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare class NzImagePreviewOptions {
nzKeyboard?: boolean;
nzNoAnimation?: boolean;
nzMaskClosable?: boolean;
nzCloseOnNavigation?: boolean;
nzZIndex?: number;
nzZoom?: number;
nzRotate?: number;
nzFlipHorizontally?: boolean;
nzFlipVertically?: boolean;
nzScaleStep?: number;
nzDirection?: Direction;
}
interface NzImage {
src: string;
srcset?: string;
alt?: string;
width?: string | number;
height?: string | number;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
interface NzImageContainerOperation {
icon: string;
type: string;
rotate?: number;
onClick(): void;
}
declare const NZ_DEFAULT_SCALE_STEP = 0.5;
declare class NzImagePreviewComponent implements OnInit {
private document;
private ngZone;
private cdr;
nzConfigService: NzConfigService;
config: NzImagePreviewOptions;
private sanitizer;
private destroyRef;
readonly _defaultNzZoom = 1;
readonly _defaultNzScaleStep = 0.5;
readonly _defaultNzRotate = 0;
images: NzImage[];
index: number;
isDragging: boolean;
visible: boolean;
animationStateChanged: EventEmitter<AnimationEvent>;
scaleStepMap: Map<NzImageUrl, NzImageScaleStep>;
previewImageTransform: string;
previewImageWrapperTransform: string;
operations: NzImageContainerOperation[];
zoomOutDisabled: boolean;
position: {
x: number;
y: number;
};
previewRef: NzImagePreviewRef;
closeClick: EventEmitter<void>;
imageRef: ElementRef<HTMLImageElement>;
imagePreviewWrapper: ElementRef<HTMLElement>;
private zoom;
private rotate;
private scaleStep;
private flipHorizontally;
private flipVertically;
get animationDisabled(): boolean;
get maskClosable(): boolean;
constructor();
ngOnInit(): void;
setImages(images: NzImage[], scaleStepMap?: Map<string, number>): void;
switchTo(index: number): void;
next(): void;
prev(): void;
markForCheck(): void;
onClose(): void;
onZoomIn(): void;
onZoomOut(): void;
onRotateRight(): void;
onRotateLeft(): void;
onSwitchLeft(event: MouseEvent): void;
onSwitchRight(event: MouseEvent): void;
onHorizontalFlip(): void;
onVerticalFlip(): void;
wheelZoomEventHandler(event: WheelEvent): void;
onAnimationStart(event: AnimationEvent): void;
onAnimationDone(event: AnimationEvent): void;
onDragEnd(event: CdkDragEnd): void;
sanitizerResourceUrl(url: string): SafeResourceUrl;
private updatePreviewImageTransform;
private updatePreviewImageWrapperTransform;
private updateZoomOutDisabled;
private handlerImageTransformationWhileZoomingWithMouse;
private handleImageScaleWhileZoomingWithMouse;
private isZoomedInWithMouseWheel;
private reset;
private reCenterImage;
static ɵfac: i0.ɵɵFactoryDeclaration<NzImagePreviewComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzImagePreviewComponent, "nz-image-preview", ["nzImagePreview"], {}, {}, never, never, true, never>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare class NzImagePreviewRef {
previewInstance: NzImagePreviewComponent;
private config;
private overlayRef;
private destroy$;
constructor(previewInstance: NzImagePreviewComponent, config: NzImagePreviewOptions, overlayRef: OverlayRef);
switchTo(index: number): void;
next(): void;
prev(): void;
close(): void;
}
interface NzImageService {
preview(images: NzImage[], option?: NzImagePreviewOptions): NzImagePreviewRef;
}
declare class NzImageService {
private injector;
private nzConfigService;
private directionality;
private display;
private attachPreviewComponent;
private createOverlay;
static ɵfac: i0.ɵɵFactoryDeclaration<NzImageService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzImageService>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare const NZ_CONFIG_MODULE_NAME: NzConfigKey;
declare class NzImageGroupComponent {
nzScaleStep: number | null;
images: NzImageDirective[];
addImage(image: NzImageDirective): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzImageGroupComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzImageGroupComponent, "nz-image-group", ["nzImageGroup"], { "nzScaleStep": { "alias": "nzScaleStep"; "required": false; }; }, {}, never, ["*"], true, never>;
}
declare class NzImageModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzImageModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzImageModule, never, [typeof NzImageDirective, typeof NzImagePreviewComponent, typeof NzImageGroupComponent], [typeof NzImageDirective, typeof NzImagePreviewComponent, typeof NzImageGroupComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzImageModule>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* fit content details: https://github.com/NG-ZORRO/ng-zorro-antd/pull/6154#issuecomment-745025554
*
* calc position x,y point
*
* CASE (width <= clientWidth && height <= clientHeight):
*
* ------------- clientWidth -------------
* | |
* | ------ width ------ |
* | | | |
* | | | |
* client height | |
* Height | | |
* | | | |
* | ------------------- |
* | |
* | |
* ---------------------------------------
* fixedPosition = { x: 0, y: 0 }
*
*
*
* CASE (width > clientWidth || height > clientHeight):
*
* ------------- clientWidth -------------
* | | |
* | top |
* | | |
* |--left--|--------------- width -----------------
* | | |
* client | |
* Height | |
* | | |
* | | |
* | height |
* | | |
* ---------| |
* | |
* | |
* | |
* ----------------------------------------
*
*
* - left || top > 0
* left -> 0 || top -> 0
*
* - (left + width) < clientWidth || (top + height) < clientHeight
* - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight
*
* DEFAULT:
* - hold position
*
*/
declare function getFitContentPosition(params: {
width: number;
height: number;
left: number;
top: number;
clientWidth: number;
clientHeight: number;
}): {
x?: number;
y?: number;
};
declare function getOffset(node: HTMLElement): {
left: number;
top: number;
};
declare function getClientSize(): {
width: number;
height: number;
};
export { NZ_CONFIG_MODULE_NAME, NZ_DEFAULT_SCALE_STEP, NzImageDirective, NzImageGroupComponent, NzImageModule, NzImagePreviewComponent, NzImagePreviewOptions, NzImagePreviewRef, NzImageService, getClientSize, getFitContentPosition, getOffset };
export type { ImageStatusType, NzImage, NzImageContainerOperation, NzImageScaleStep, NzImageUrl };

3
node_modules/ng-zorro-antd/image/package.json generated vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"module": "../fesm2022/ng-zorro-antd-image.mjs"
}

2
node_modules/ng-zorro-antd/image/style/entry.less generated vendored Normal file
View File

@@ -0,0 +1,2 @@
@import './index.less';
@import './patch.less';

242
node_modules/ng-zorro-antd/image/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,242 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-image {
position: relative;
display: inline-block;
}
.ant-image-img {
width: 100%;
height: auto;
vertical-align: middle;
}
.ant-image-img-placeholder {
background-color: #f5f5f5;
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=');
background-repeat: no-repeat;
background-position: center center;
background-size: 30%;
}
.ant-image-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
background: rgba(0, 0, 0, 0.5);
cursor: pointer;
opacity: 0;
transition: opacity 0.3s;
}
.ant-image-mask-info {
padding: 0 4px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-image-mask-info .anticon {
margin-inline-end: 4px;
}
.ant-image-mask:hover {
opacity: 1;
}
.ant-image-placeholder {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.ant-image-preview {
pointer-events: none;
height: 100%;
text-align: center;
}
.ant-image-preview.ant-zoom-enter,
.ant-image-preview.ant-zoom-appear {
transform: none;
opacity: 0;
animation-duration: 0.3s;
user-select: none;
}
.ant-image-preview-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
height: 100%;
background-color: rgba(0, 0, 0, 0.45);
}
.ant-image-preview-mask-hidden {
display: none;
}
.ant-image-preview-wrap {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
outline: 0;
}
.ant-image-preview-body {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.ant-image-preview-img {
max-width: 100%;
max-height: 100%;
vertical-align: middle;
transform: scale3d(1, 1, 1);
cursor: grab;
transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
user-select: none;
pointer-events: auto;
}
.ant-image-preview-img-wrapper {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.ant-image-preview-img-wrapper::before {
display: inline-block;
width: 1px;
height: 50%;
margin-right: -1px;
content: '';
}
.ant-image-preview-moving .ant-image-preview-img {
cursor: grabbing;
}
.ant-image-preview-moving .ant-image-preview-img-wrapper {
transition-duration: 0s;
}
.ant-image-preview-wrap {
z-index: 1080;
}
.ant-image-preview-operations-wrapper {
position: fixed;
top: 0;
right: 0;
z-index: 1081;
width: 100%;
}
.ant-image-preview-operations {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
font-feature-settings: 'tnum';
display: flex;
flex-direction: row-reverse;
align-items: center;
color: rgba(255, 255, 255, 0.85);
list-style: none;
background: rgba(0, 0, 0, 0.1);
pointer-events: auto;
}
.ant-image-preview-operations-operation {
margin-left: 12px;
padding: 12px;
cursor: pointer;
transition: all 0.3s;
}
.ant-image-preview-operations-operation:hover {
background: rgba(0, 0, 0, 0.2);
}
.ant-image-preview-operations-operation-disabled {
color: rgba(255, 255, 255, 0.25);
pointer-events: none;
}
.ant-image-preview-operations-operation:last-of-type {
margin-left: 0;
}
.ant-image-preview-operations-progress {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.ant-image-preview-operations-icon {
font-size: 18px;
}
.ant-image-preview-switch-left,
.ant-image-preview-switch-right {
position: fixed;
top: 50%;
right: 8px;
z-index: 1081;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
color: rgba(255, 255, 255, 0.85);
background: rgba(0, 0, 0, 0.1);
border-radius: 50%;
transform: translateY(-50%);
cursor: pointer;
transition: all 0.3s;
pointer-events: auto;
}
.ant-image-preview-switch-left:hover,
.ant-image-preview-switch-right:hover {
background: rgba(0, 0, 0, 0.2);
}
.ant-image-preview-switch-left-disabled,
.ant-image-preview-switch-right-disabled,
.ant-image-preview-switch-left-disabled:hover,
.ant-image-preview-switch-right-disabled:hover {
color: rgba(255, 255, 255, 0.25);
background: rgba(0, 0, 0, 0.1);
cursor: not-allowed;
}
.ant-image-preview-switch-left-disabled > .anticon,
.ant-image-preview-switch-right-disabled > .anticon,
.ant-image-preview-switch-left-disabled:hover > .anticon,
.ant-image-preview-switch-right-disabled:hover > .anticon {
cursor: not-allowed;
}
.ant-image-preview-switch-left > .anticon,
.ant-image-preview-switch-right > .anticon {
font-size: 18px;
}
.ant-image-preview-switch-left {
left: 8px;
}
.ant-image-preview-switch-right {
right: 8px;
}
.ant-image-preview-focus-trap {
width: 0;
height: 0;
overflow: hidden;
outline: none;
}
.cdk-overlay-backdrop.ant-image-preview-mask {
opacity: 1;
}
.cdk-global-overlay-wrapper[dir='rtl'] .ant-image-preview-switch-left {
right: 10px;
left: unset;
rotate: 180deg;
}
.cdk-global-overlay-wrapper[dir='rtl'] .ant-image-preview-switch-right {
right: unset;
left: 10px;
rotate: 180deg;
}

210
node_modules/ng-zorro-antd/image/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,210 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@image-prefix-cls: ~'@{ant-prefix}-image';
@image-preview-prefix-cls: ~'@{image-prefix-cls}-preview';
.@{image-prefix-cls} {
position: relative;
display: inline-block;
&-img {
width: 100%;
height: auto;
vertical-align: middle;
&-placeholder {
background-color: @image-bg;
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=');
background-repeat: no-repeat;
background-position: center center;
background-size: 30%;
}
}
&-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
color: @text-color-inverse;
background: fade(@black, 50%);
cursor: pointer;
opacity: 0;
transition: opacity @animation-duration-slow;
&-info {
padding: 0 @padding-xss;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.@{iconfont-css-prefix} {
margin-inline-end: @margin-xss;
}
}
&:hover {
opacity: 1;
}
}
&-placeholder {
.box();
}
&-preview {
.modal-mask();
height: 100%;
text-align: center;
&-body {
.box();
overflow: hidden;
}
&-img {
max-width: 100%;
max-height: 100%;
vertical-align: middle;
transform: scale3d(1, 1, 1);
cursor: grab;
transition: transform 0.3s @ease-out 0s;
user-select: none;
pointer-events: auto;
&-wrapper {
.box();
transition: transform 0.3s @ease-out 0s;
&::before {
display: inline-block;
width: 1px;
height: 50%;
margin-right: -1px;
content: '';
}
}
}
&-moving {
.@{image-prefix-cls}-preview-img {
cursor: grabbing;
&-wrapper {
transition-duration: 0s;
}
}
}
&-wrap {
z-index: @zindex-image;
}
&-operations-wrapper {
position: fixed;
top: 0;
right: 0;
z-index: @zindex-image + 1;
width: 100%;
}
&-operations {
.reset-component();
display: flex;
flex-direction: row-reverse;
align-items: center;
color: @image-preview-operation-color;
list-style: none;
background: fade(@modal-mask-bg, 10%);
pointer-events: auto;
&-operation {
margin-left: @control-padding-horizontal;
padding: @control-padding-horizontal;
cursor: pointer;
transition: all 0.3s;
&:hover {
background: fade(@modal-mask-bg, 20%);
}
&-disabled {
color: @image-preview-operation-disabled-color;
pointer-events: none;
}
&:last-of-type {
margin-left: 0;
}
}
&-progress {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
&-icon {
font-size: @image-preview-operation-size;
}
}
&-switch-left,
&-switch-right {
position: fixed;
top: 50%;
right: 8px;
z-index: @zindex-image + 1;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
color: @image-preview-operation-color;
background: fade(@modal-mask-bg, 10%);
border-radius: 50%;
transform: translateY(-50%);
cursor: pointer;
transition: all 0.3s;
pointer-events: auto;
&:hover {
background: fade(@modal-mask-bg, 20%);
}
&-disabled,
&-disabled:hover {
color: @image-preview-operation-disabled-color;
background: fade(@modal-mask-bg, 10%);
cursor: not-allowed;
> .@{iconfont-css-prefix} {
cursor: not-allowed;
}
}
> .@{iconfont-css-prefix} {
font-size: 18px;
}
}
&-switch-left {
left: 8px;
}
&-switch-right {
right: 8px;
}
&-focus-trap {
width: 0;
height: 0;
overflow: hidden;
outline: none;
}
}
}

1
node_modules/ng-zorro-antd/image/style/index.min.css generated vendored Normal file
View File

@@ -0,0 +1 @@
.ant-image{position:relative;display:inline-block}.ant-image-img{width:100%;height:auto;vertical-align:middle}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=');background-repeat:no-repeat;background-position:center center;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.5);cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info{padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-image-mask-info .anticon{margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-appear,.ant-image-preview.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:rgba(0,0,0,.45)}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scale3d(1,1,1);cursor:grab;transition:transform .3s cubic-bezier(.215, .61, .355, 1) 0s;user-select:none;pointer-events:auto}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .3s cubic-bezier(.215, .61, .355, 1) 0s}.ant-image-preview-img-wrapper::before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:''}.ant-image-preview-moving .ant-image-preview-img{cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations-wrapper{position:fixed;top:0;right:0;z-index:1081;width:100%}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:'tnum';display:flex;flex-direction:row-reverse;align-items:center;color:rgba(255,255,255,.85);list-style:none;background:rgba(0,0,0,.1);pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer;transition:all .3s}.ant-image-preview-operations-operation:hover{background:rgba(0,0,0,.2)}.ant-image-preview-operations-operation-disabled{color:rgba(255,255,255,.25);pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-progress{position:absolute;left:50%;transform:translateX(-50%)}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:fixed;top:50%;right:8px;z-index:1081;display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:rgba(255,255,255,.85);background:rgba(0,0,0,.1);border-radius:50%;transform:translateY(-50%);cursor:pointer;transition:all .3s;pointer-events:auto}.ant-image-preview-switch-left:hover,.ant-image-preview-switch-right:hover{background:rgba(0,0,0,.2)}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-left-disabled:hover,.ant-image-preview-switch-right-disabled,.ant-image-preview-switch-right-disabled:hover{color:rgba(255,255,255,.25);background:rgba(0,0,0,.1);cursor:not-allowed}.ant-image-preview-switch-left-disabled:hover>.anticon,.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled:hover>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:8px}.ant-image-preview-switch-right{right:8px}.ant-image-preview-focus-trap{width:0;height:0;overflow:hidden;outline:0}.cdk-overlay-backdrop.ant-image-preview-mask{opacity:1}.cdk-global-overlay-wrapper[dir=rtl] .ant-image-preview-switch-left{right:10px;left:unset;rotate:180deg}.cdk-global-overlay-wrapper[dir=rtl] .ant-image-preview-switch-right{right:unset;left:10px;rotate:180deg}

27
node_modules/ng-zorro-antd/image/style/patch.less generated vendored Normal file
View File

@@ -0,0 +1,27 @@
@image-prefix-cls: ~'@{ant-prefix}-image';
.cdk-overlay-backdrop {
&.ant-image-preview-mask {
opacity: 1;
}
}
.cdk-global-overlay-wrapper[dir='rtl'] {
.@{image-prefix-cls} {
&-preview {
&-switch-left {
right: 10px;
left: unset;
rotate: 180deg;
}
&-switch-right {
right: unset;
left: 10px;
rotate: 180deg;
}
}
}
}