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

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

@@ -0,0 +1,234 @@
import * as i0 from '@angular/core';
import { TemplateRef, ComponentRef, Type, InjectionToken, OnInit, AfterViewInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
import { Observable, Subject } from 'rxjs';
import { FocusTrap } from '@angular/cdk/a11y';
import { OverlayRef } from '@angular/cdk/overlay';
import { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
import { NzConfigService, NzConfigKey } from 'ng-zorro-antd/core/config';
import { isTemplateRef } from 'ng-zorro-antd/core/util';
/**
* 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 NzDrawerContentDirective {
templateRef: TemplateRef<any>;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDrawerContentDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzDrawerContentDirective, "[nzDrawerContent]", ["nzDrawerContent"], {}, {}, 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 abstract class NzDrawerRef<T = NzSafeAny, R = NzSafeAny> {
abstract afterClose: Observable<R | undefined>;
abstract afterOpen: Observable<void>;
abstract close(result?: R): void;
abstract open(): void;
abstract getContentComponent(): T | null;
abstract getContentComponentRef(): Readonly<ComponentRef<T>> | null;
abstract nzClosable?: boolean;
abstract nzNoAnimation?: boolean;
abstract nzMaskClosable?: boolean;
abstract nzKeyboard?: boolean;
abstract nzMask?: boolean;
abstract nzTitle?: string | TemplateRef<{}>;
abstract nzPlacement?: NzDrawerPlacement;
abstract nzMaskStyle?: object;
abstract nzBodyStyle?: object;
abstract nzWrapClassName?: string;
abstract nzWidth?: number | string;
abstract nzHeight?: number | string;
abstract nzZIndex?: number | string;
abstract nzOffsetX?: number | string;
abstract nzOffsetY?: number | string;
}
/**
* 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 DRAWER_DEFAULT_SIZE = 378;
declare const DRAWER_LARGE_SIZE = 736;
type NzDrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
type NzDrawerSize = 'default' | 'large';
interface NzDrawerOptionsOfComponent<T = NzSafeAny, D = NzSafeAny> {
nzClosable?: boolean;
nzMaskClosable?: boolean;
nzCloseOnNavigation?: boolean;
nzDirection?: Direction;
nzMask?: boolean;
nzKeyboard?: boolean;
nzNoAnimation?: boolean;
nzTitle?: string | TemplateRef<{}>;
nzExtra?: string | TemplateRef<{}>;
nzFooter?: string | TemplateRef<{}>;
nzContent?: TemplateRef<{
$implicit: D;
drawerRef: NzDrawerRef;
}> | Type<T>;
/**@Deprecated**/
nzContentParams?: Partial<T & D>;
nzData?: D;
nzMaskStyle?: object;
nzBodyStyle?: object;
nzWrapClassName?: string;
nzSize?: NzDrawerSize;
nzWidth?: number | string;
nzHeight?: number | string;
nzPlacement?: NzDrawerPlacement;
nzZIndex?: number;
nzOffsetX?: number;
nzOffsetY?: number;
}
interface NzDrawerOptions<T = NzSafeAny, D = NzSafeAny> extends NzDrawerOptionsOfComponent<T, D> {
nzOnCancel?(): Promise<NzSafeAny>;
}
declare const NZ_DRAWER_DATA: InjectionToken<any>;
/**
* 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 DRAWER_ANIMATE_DURATION = 300;
declare class NzDrawerComponent<T extends {} = NzSafeAny, R = NzSafeAny, D extends Partial<T> = NzSafeAny> extends NzDrawerRef<T, R> implements OnInit, AfterViewInit, OnChanges, NzDrawerOptionsOfComponent {
private cdr;
nzConfigService: NzConfigService;
private renderer;
private injector;
private changeDetectorRef;
private focusTrapFactory;
private viewContainerRef;
private overlayKeyboardDispatcher;
private directionality;
private destroyRef;
readonly _nzModuleName: NzConfigKey;
nzContent: TemplateRef<{
$implicit: D;
drawerRef: NzDrawerRef<R>;
}> | Type<T>;
nzCloseIcon: string | TemplateRef<void>;
nzClosable: boolean;
nzMaskClosable: boolean;
nzMask: boolean;
nzCloseOnNavigation: boolean;
nzNoAnimation: boolean;
nzKeyboard: boolean;
nzTitle?: string | TemplateRef<{}>;
nzExtra?: string | TemplateRef<{}>;
nzFooter?: string | TemplateRef<{}>;
nzPlacement: NzDrawerPlacement;
nzSize: NzDrawerSize;
nzMaskStyle: NgStyleInterface;
nzBodyStyle: NgStyleInterface;
nzWrapClassName?: string;
nzWidth?: number | string;
nzHeight?: number | string;
nzZIndex: number;
nzOffsetX: number;
nzOffsetY: number;
private componentInstance;
private componentRef;
set nzVisible(value: boolean);
get nzVisible(): boolean;
readonly nzOnViewInit: EventEmitter<void>;
readonly nzOnClose: EventEmitter<MouseEvent>;
readonly nzVisibleChange: EventEmitter<boolean>;
drawerTemplate: TemplateRef<void>;
bodyPortalOutlet?: CdkPortalOutlet;
contentFromContentChild?: TemplateRef<NzSafeAny>;
previouslyFocusedElement?: HTMLElement;
placementChanging: boolean;
placementChangeTimeoutId?: ReturnType<typeof setTimeout>;
nzContentParams?: NzSafeAny;
nzData?: D;
overlayRef?: OverlayRef | null;
portal?: TemplatePortal;
focusTrap?: FocusTrap;
isOpen: boolean;
inAnimation: boolean;
templateContext: {
$implicit: D | undefined;
drawerRef: NzDrawerRef<R>;
};
protected isTemplateRef: typeof isTemplateRef;
get offsetTransform(): string | null;
get transform(): string | null;
get width(): string | null;
get height(): string | null;
get isLeftOrRight(): boolean;
nzAfterOpen: Subject<void>;
nzAfterClose: Subject<R | undefined>;
get afterOpen(): Observable<void>;
get afterClose(): Observable<R | undefined>;
get isNzContentTemplateRef(): boolean;
nzDirection?: Direction;
dir: Direction;
private document;
constructor();
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
private getAnimationDuration;
private triggerPlacementChangeCycleOnce;
close(result?: R): void;
open(): void;
getContentComponent(): T | null;
getContentComponentRef(): ComponentRef<T> | null;
closeClick(): void;
maskClick(): void;
private attachBodyContent;
private attachOverlay;
private disposeOverlay;
private updateOverlayStyle;
private updateBodyOverflow;
savePreviouslyFocusedElement(): void;
private trapFocus;
private restoreFocus;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDrawerComponent<any, any, any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzDrawerComponent<any, any, any>, "nz-drawer", ["nzDrawer"], { "nzContent": { "alias": "nzContent"; "required": false; }; "nzCloseIcon": { "alias": "nzCloseIcon"; "required": false; }; "nzClosable": { "alias": "nzClosable"; "required": false; }; "nzMaskClosable": { "alias": "nzMaskClosable"; "required": false; }; "nzMask": { "alias": "nzMask"; "required": false; }; "nzCloseOnNavigation": { "alias": "nzCloseOnNavigation"; "required": false; }; "nzNoAnimation": { "alias": "nzNoAnimation"; "required": false; }; "nzKeyboard": { "alias": "nzKeyboard"; "required": false; }; "nzTitle": { "alias": "nzTitle"; "required": false; }; "nzExtra": { "alias": "nzExtra"; "required": false; }; "nzFooter": { "alias": "nzFooter"; "required": false; }; "nzPlacement": { "alias": "nzPlacement"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzMaskStyle": { "alias": "nzMaskStyle"; "required": false; }; "nzBodyStyle": { "alias": "nzBodyStyle"; "required": false; }; "nzWrapClassName": { "alias": "nzWrapClassName"; "required": false; }; "nzWidth": { "alias": "nzWidth"; "required": false; }; "nzHeight": { "alias": "nzHeight"; "required": false; }; "nzZIndex": { "alias": "nzZIndex"; "required": false; }; "nzOffsetX": { "alias": "nzOffsetX"; "required": false; }; "nzOffsetY": { "alias": "nzOffsetY"; "required": false; }; "nzVisible": { "alias": "nzVisible"; "required": false; }; }, { "nzOnViewInit": "nzOnViewInit"; "nzOnClose": "nzOnClose"; "nzVisibleChange": "nzVisibleChange"; }, ["contentFromContentChild"], never, true, never>;
static ngAcceptInputType_nzClosable: unknown;
static ngAcceptInputType_nzMaskClosable: unknown;
static ngAcceptInputType_nzMask: unknown;
static ngAcceptInputType_nzCloseOnNavigation: unknown;
static ngAcceptInputType_nzNoAnimation: unknown;
static ngAcceptInputType_nzKeyboard: unknown;
static ngAcceptInputType_nzVisible: unknown;
}
declare class NzDrawerModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzDrawerModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzDrawerModule, never, [typeof NzDrawerComponent, typeof NzDrawerContentDirective], [typeof NzDrawerComponent, typeof NzDrawerContentDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzDrawerModule>;
}
/**
* 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 DrawerBuilderForService<T extends {}, R> {
private overlayRef;
private options;
private drawerRef;
private unsubscribe$;
constructor(overlayRef: OverlayRef, options: NzDrawerOptions);
getInstance(): NzDrawerRef<T, R>;
updateOptions(options: NzDrawerOptionsOfComponent): void;
}
declare class NzDrawerService {
private injector;
create<T extends {} = NzSafeAny, D = undefined, R = NzSafeAny>(options: NzDrawerOptions<T, D extends undefined ? {} : D>): NzDrawerRef<T, R>;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDrawerService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzDrawerService>;
}
export { DRAWER_ANIMATE_DURATION, DRAWER_DEFAULT_SIZE, DRAWER_LARGE_SIZE, DrawerBuilderForService, NZ_DRAWER_DATA, NzDrawerComponent, NzDrawerContentDirective, NzDrawerModule, NzDrawerRef, NzDrawerService };
export type { NzDrawerOptions, NzDrawerOptionsOfComponent, NzDrawerPlacement, NzDrawerSize };

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

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

View File

@@ -0,0 +1,3 @@
@import './index.less';
.popover-customize-bg(@drawer-prefix-cls, @popover-background);

160
node_modules/ng-zorro-antd/drawer/style/drawer.less generated vendored Normal file
View File

@@ -0,0 +1,160 @@
@import '../../style/themes/index';
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
@picker-prefix-cls: ~'@{ant-prefix}-picker';
@drawer-animation-ease: @ease-out-quint;
.@{drawer-prefix-cls} {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @zindex-modal;
pointer-events: none;
&-inline {
position: absolute;
}
// ====================== Mask ======================
&-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @zindex-modal;
background: @modal-mask-bg;
pointer-events: auto;
}
// ==================== Content =====================
&-content-wrapper {
position: absolute;
z-index: @zindex-modal;
transition: all @animation-duration-slow;
&-hidden {
display: none;
}
// Placement
.@{drawer-prefix-cls}-left > & {
top: 0;
bottom: 0;
left: 0;
box-shadow: @shadow-1-right;
}
.@{drawer-prefix-cls}-right > & {
top: 0;
right: 0;
bottom: 0;
box-shadow: @shadow-1-left;
}
.@{drawer-prefix-cls}-top > & {
top: 0;
right: 0;
left: 0;
box-shadow: @shadow-1-down;
}
.@{drawer-prefix-cls}-bottom > & {
right: 0;
bottom: 0;
left: 0;
box-shadow: @shadow-1-up;
}
}
&-content {
width: 100%;
height: 100%;
overflow: auto;
background: @drawer-bg;
pointer-events: auto;
}
// ===================== Panel ======================
&-wrapper-body {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
// Header
&-header {
display: flex;
flex: 0;
align-items: center;
padding: @drawer-header-padding;
font-size: @drawer-title-font-size;
line-height: @drawer-title-line-height;
border-bottom: @border-width-base @border-style-base @border-color-split;
&-title {
display: flex;
flex: 1;
align-items: center;
min-width: 0;
min-height: 0;
}
}
&-extra {
flex: none;
}
&-close {
display: inline-block;
margin-right: 12px;
color: @modal-close-color;
font-weight: 700;
font-size: @font-size-lg;
font-style: normal;
line-height: 1;
text-align: center;
text-transform: none;
text-decoration: none;
background: transparent;
border: 0;
outline: 0;
cursor: pointer;
transition: color @animation-duration-slow;
text-rendering: auto;
&:focus,
&:hover {
color: @icon-color-hover;
text-decoration: none;
}
}
&-title {
flex: 1;
margin: 0;
color: @heading-color;
font-weight: 500;
font-size: @drawer-title-font-size;
line-height: @drawer-title-line-height;
}
// Body
&-body {
flex: 1;
min-width: 0;
min-height: 0;
padding: @drawer-body-padding;
overflow: auto;
}
// Footer
&-footer {
flex-shrink: 0;
padding: @drawer-footer-padding-vertical @drawer-footer-padding-horizontal;
border-top: @border-width-base @border-style-base @border-color-split;
}
}

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

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

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

@@ -0,0 +1,266 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
pointer-events: none;
}
.ant-drawer-inline {
position: absolute;
}
.ant-drawer-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.45);
pointer-events: auto;
}
.ant-drawer-content-wrapper {
position: absolute;
z-index: 1000;
transition: all 0.3s;
}
.ant-drawer-content-wrapper-hidden {
display: none;
}
.ant-drawer-left > .ant-drawer-content-wrapper {
top: 0;
bottom: 0;
left: 0;
box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
}
.ant-drawer-right > .ant-drawer-content-wrapper {
top: 0;
right: 0;
bottom: 0;
box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
}
.ant-drawer-top > .ant-drawer-content-wrapper {
top: 0;
right: 0;
left: 0;
box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
}
.ant-drawer-bottom > .ant-drawer-content-wrapper {
right: 0;
bottom: 0;
left: 0;
box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
}
.ant-drawer-content {
width: 100%;
height: 100%;
overflow: auto;
background: #fff;
pointer-events: auto;
}
.ant-drawer-wrapper-body {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.ant-drawer-header {
display: flex;
flex: 0;
align-items: center;
padding: 16px 24px;
font-size: 16px;
line-height: 22px;
border-bottom: 1px solid #f0f0f0;
}
.ant-drawer-header-title {
display: flex;
flex: 1;
align-items: center;
min-width: 0;
min-height: 0;
}
.ant-drawer-extra {
flex: none;
}
.ant-drawer-close {
display: inline-block;
margin-right: 12px;
color: rgba(0, 0, 0, 0.45);
font-weight: 700;
font-size: 16px;
font-style: normal;
line-height: 1;
text-align: center;
text-transform: none;
text-decoration: none;
background: transparent;
border: 0;
outline: 0;
cursor: pointer;
transition: color 0.3s;
text-rendering: auto;
}
.ant-drawer-close:focus,
.ant-drawer-close:hover {
color: rgba(0, 0, 0, 0.75);
text-decoration: none;
}
.ant-drawer-title {
flex: 1;
margin: 0;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 16px;
line-height: 22px;
}
.ant-drawer-body {
flex: 1;
min-width: 0;
min-height: 0;
padding: 24px;
overflow: auto;
}
.ant-drawer-footer {
flex-shrink: 0;
padding: 10px 16px;
border-top: 1px solid #f0f0f0;
}
.panel-motion-enter-start,
.panel-motion-appear-start,
.panel-motion-leave-start {
transition: none;
}
.panel-motion-enter-active,
.panel-motion-appear-active,
.panel-motion-leave-active {
transition: all 0.3s;
}
.ant-drawer-mask-motion-enter-active,
.ant-drawer-mask-motion-appear-active,
.ant-drawer-mask-motion-leave-active {
transition: all 0.3s;
}
.ant-drawer-mask-motion-enter,
.ant-drawer-mask-motion-appear {
opacity: 0;
}
.ant-drawer-mask-motion-enter-active,
.ant-drawer-mask-motion-appear-active {
opacity: 1;
}
.ant-drawer-mask-motion-leave {
opacity: 1;
}
.ant-drawer-mask-motion-leave-active {
opacity: 0;
}
.ant-drawer-panel-motion-left-enter-start,
.ant-drawer-panel-motion-left-appear-start,
.ant-drawer-panel-motion-left-leave-start {
transition: none;
}
.ant-drawer-panel-motion-left-enter-active,
.ant-drawer-panel-motion-left-appear-active,
.ant-drawer-panel-motion-left-leave-active {
transition: all 0.3s;
}
.ant-drawer-panel-motion-left-enter-start,
.ant-drawer-panel-motion-left-appear-start {
transform: translateX(-100%) !important;
}
.ant-drawer-panel-motion-left-enter-active,
.ant-drawer-panel-motion-left-appear-active {
transform: translateX(0);
}
.ant-drawer-panel-motion-left-leave {
transform: translateX(0);
}
.ant-drawer-panel-motion-left-leave-active {
transform: translateX(-100%);
}
.ant-drawer-panel-motion-right-enter-start,
.ant-drawer-panel-motion-right-appear-start,
.ant-drawer-panel-motion-right-leave-start {
transition: none;
}
.ant-drawer-panel-motion-right-enter-active,
.ant-drawer-panel-motion-right-appear-active,
.ant-drawer-panel-motion-right-leave-active {
transition: all 0.3s;
}
.ant-drawer-panel-motion-right-enter-start,
.ant-drawer-panel-motion-right-appear-start {
transform: translateX(100%) !important;
}
.ant-drawer-panel-motion-right-enter-active,
.ant-drawer-panel-motion-right-appear-active {
transform: translateX(0);
}
.ant-drawer-panel-motion-right-leave {
transform: translateX(0);
}
.ant-drawer-panel-motion-right-leave-active {
transform: translateX(100%);
}
.ant-drawer-panel-motion-top-enter-start,
.ant-drawer-panel-motion-top-appear-start,
.ant-drawer-panel-motion-top-leave-start {
transition: none;
}
.ant-drawer-panel-motion-top-enter-active,
.ant-drawer-panel-motion-top-appear-active,
.ant-drawer-panel-motion-top-leave-active {
transition: all 0.3s;
}
.ant-drawer-panel-motion-top-enter-start,
.ant-drawer-panel-motion-top-appear-start {
transform: translateY(-100%) !important;
}
.ant-drawer-panel-motion-top-enter-active,
.ant-drawer-panel-motion-top-appear-active {
transform: translateY(0);
}
.ant-drawer-panel-motion-top-leave {
transform: translateY(0);
}
.ant-drawer-panel-motion-top-leave-active {
transform: translateY(-100%);
}
.ant-drawer-panel-motion-bottom-enter-start,
.ant-drawer-panel-motion-bottom-appear-start,
.ant-drawer-panel-motion-bottom-leave-start {
transition: none;
}
.ant-drawer-panel-motion-bottom-enter-active,
.ant-drawer-panel-motion-bottom-appear-active,
.ant-drawer-panel-motion-bottom-leave-active {
transition: all 0.3s;
}
.ant-drawer-panel-motion-bottom-enter-start,
.ant-drawer-panel-motion-bottom-appear-start {
transform: translateY(100%) !important;
}
.ant-drawer-panel-motion-bottom-enter-active,
.ant-drawer-panel-motion-bottom-appear-active {
transform: translateY(0);
}
.ant-drawer-panel-motion-bottom-leave {
transform: translateY(0);
}
.ant-drawer-panel-motion-bottom-leave-active {
transform: translateY(100%);
}
.ant-drawer-rtl {
direction: rtl;
}
.ant-drawer-rtl .ant-drawer-close {
margin-right: 0;
margin-left: 12px;
}
.ant-drawer:not(.ant-drawer-open) .ant-drawer-content-wrapper {
box-shadow: none;
}

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

@@ -0,0 +1,7 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './drawer';
@import './motion';
@import './rtl';
.popover-customize-bg(@drawer-prefix-cls, @popover-background);

File diff suppressed because one or more lines are too long

146
node_modules/ng-zorro-antd/drawer/style/motion.less generated vendored Normal file
View File

@@ -0,0 +1,146 @@
@import (reference) '../../style/themes/index';
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
.panel-motion {
&-enter,
&-appear,
&-leave {
&-start {
transition: none;
}
&-active {
transition: all @animation-duration-slow;
}
}
}
.@{drawer-prefix-cls} {
// ======================== Mask ========================
&-mask-motion {
&-enter,
&-appear,
&-leave {
&-active {
transition: all @animation-duration-slow;
}
}
&-enter,
&-appear {
opacity: 0;
&-active {
opacity: 1;
}
}
&-leave {
opacity: 1;
&-active {
opacity: 0;
}
}
}
// ======================= Panel ========================
&-panel-motion {
// Left
&-left {
.panel-motion();
&-enter,
&-appear {
&-start {
transform: translateX(-100%) !important;
}
&-active {
transform: translateX(0);
}
}
&-leave {
transform: translateX(0);
&-active {
transform: translateX(-100%);
}
}
}
// Right
&-right {
.panel-motion();
&-enter,
&-appear {
&-start {
transform: translateX(100%) !important;
}
&-active {
transform: translateX(0);
}
}
&-leave {
transform: translateX(0);
&-active {
transform: translateX(100%);
}
}
}
// Top
&-top {
.panel-motion();
&-enter,
&-appear {
&-start {
transform: translateY(-100%) !important;
}
&-active {
transform: translateY(0);
}
}
&-leave {
transform: translateY(0);
&-active {
transform: translateY(-100%);
}
}
}
// Bottom
&-bottom {
.panel-motion();
&-enter,
&-appear {
&-start {
transform: translateY(100%) !important;
}
&-active {
transform: translateY(0);
}
}
&-leave {
transform: translateY(0);
&-active {
transform: translateY(100%);
}
}
}
}
}

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

@@ -0,0 +1,8 @@
.@{drawer-prefix-cls} {
// Fix the issue of the drawer content shadow when the drawer is closed
&:not(.@{drawer-prefix-cls}-open) {
.@{drawer-prefix-cls}-content-wrapper {
box-shadow: none;
}
}
}

16
node_modules/ng-zorro-antd/drawer/style/rtl.less generated vendored Normal file
View File

@@ -0,0 +1,16 @@
@import '../../style/themes/index';
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
.@{drawer-prefix-cls} {
&-rtl {
direction: rtl;
}
&-close {
.@{drawer-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 12px;
}
}
}