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

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

@@ -0,0 +1,145 @@
import * as rxjs from 'rxjs';
import { Subject } from 'rxjs';
import { AnimationEvent } from '@angular/animations';
import { ComponentType } from '@angular/cdk/overlay';
import * as i0 from '@angular/core';
import { TemplateRef, OnInit, EventEmitter, ChangeDetectorRef, DestroyRef, Injector } from '@angular/core';
import { MessageConfig, NzConfigService } from 'ng-zorro-antd/core/config';
import { NzSingletonService } from 'ng-zorro-antd/core/services';
import { NzSafeAny, NgStyleInterface, NgClassInterface } from 'ng-zorro-antd/core/types';
import { Direction } from '@angular/cdk/bidi';
/**
* 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 NzMessageType = 'success' | 'info' | 'warning' | 'error' | 'loading';
type NzMessageContentType = string | TemplateRef<void | {
$implicit: NzMNComponent;
data: NzSafeAny;
}>;
interface NzMessageDataOptions {
nzDuration?: number;
nzAnimate?: boolean;
nzPauseOnHover?: boolean;
nzData?: NzSafeAny;
nzStyle?: NgStyleInterface | string;
nzClass?: NgClassInterface | string;
}
interface NzMessageData {
type?: NzMessageType | string;
content?: NzMessageContentType;
messageId?: string;
createdAt?: Date;
options?: NzMessageDataOptions;
state?: 'enter' | 'leave';
onClose?: Subject<boolean>;
}
type NzMessageRef = Pick<Required<NzMessageData>, 'onClose' | 'messageId'>;
declare abstract class NzMNService<T extends NzMNContainerComponent> {
protected abstract componentPrefix: string;
protected container?: T;
protected nzSingletonService: NzSingletonService;
protected injector: Injector;
remove(id?: string): void;
protected getInstanceId(): string;
protected withContainer(ctor: ComponentType<T>): T;
}
declare abstract class NzMNContainerComponent<C extends MessageConfig = MessageConfig, D extends NzMessageData = NzMessageData> {
config?: Required<C>;
instances: Array<Required<D>>;
private readonly _afterAllInstancesRemoved;
readonly afterAllInstancesRemoved: rxjs.Observable<void>;
protected cdr: ChangeDetectorRef;
protected nzConfigService: NzConfigService;
constructor();
create(data: D): Required<D>;
remove(id: string, userAction?: boolean): void;
removeAll(): void;
protected onCreate(instance: D): Required<D>;
protected onRemove(instance: Required<D>, userAction: boolean): void;
private onAllInstancesRemoved;
protected readyInstances(): void;
protected abstract subscribeConfigChange(): void;
protected mergeOptions(options?: D['options']): D['options'];
static ɵfac: i0.ɵɵFactoryDeclaration<NzMNContainerComponent<any, any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzMNContainerComponent<any, any>, never, never, {}, {}, never, never, true, never>;
}
declare abstract class NzMNComponent implements OnInit {
abstract instance: Required<NzMessageData>;
abstract index?: number;
abstract destroyed: EventEmitter<{
id: string;
userAction: boolean;
}>;
protected cdr: ChangeDetectorRef;
protected destroyRef: DestroyRef;
readonly animationStateChanged: Subject<AnimationEvent>;
protected options: Required<NzMessageDataOptions>;
protected autoClose?: boolean;
protected closeTimer?: ReturnType<typeof setTimeout>;
protected userAction: boolean;
protected eraseTimer?: ReturnType<typeof setTimeout>;
protected eraseTimingStart?: number;
protected eraseTTL: number;
constructor();
ngOnInit(): void;
onEnter(): void;
onLeave(): void;
protected destroy(userAction?: boolean): void;
private initErase;
private updateTTL;
private startEraseTimeout;
private clearEraseTimeout;
static ɵfac: i0.ɵɵFactoryDeclaration<NzMNComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzMNComponent, never, never, {}, {}, 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 NzMessageContainerComponent extends NzMNContainerComponent {
dir: Direction;
top?: string | null;
constructor();
protected subscribeConfigChange(): void;
protected updateConfig(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzMessageContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzMessageContainerComponent, "nz-message-container", ["nzMessageContainer"], {}, {}, 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 NzMessageComponent extends NzMNComponent implements OnInit {
instance: Required<NzMessageData>;
readonly destroyed: EventEmitter<{
id: string;
userAction: boolean;
}>;
index?: number;
static ɵfac: i0.ɵɵFactoryDeclaration<NzMessageComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzMessageComponent, "nz-message", ["nzMessage"], { "instance": { "alias": "instance"; "required": false; }; }, { "destroyed": "destroyed"; }, never, never, true, never>;
}
declare class NzMessageService extends NzMNService<NzMessageContainerComponent> {
protected componentPrefix: string;
success(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
error(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
info(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
warning(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
loading(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
create(type: NzMessageType | string, content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
private createInstance;
static ɵfac: i0.ɵɵFactoryDeclaration<NzMessageService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzMessageService>;
}
export { NzMNComponent, NzMNContainerComponent, NzMNService, NzMessageComponent, NzMessageContainerComponent, NzMessageService };
export type { NzMessageContentType, NzMessageData, NzMessageDataOptions, NzMessageRef, NzMessageType };

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

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

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

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

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

@@ -0,0 +1,76 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-message {
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;
list-style: none;
font-feature-settings: 'tnum';
position: fixed;
top: 8px;
left: 0;
z-index: 1010;
width: 100%;
pointer-events: none;
}
.ant-message-notice {
padding: 8px;
text-align: center;
}
.ant-message-notice-content {
display: inline-block;
padding: 10px 16px;
background: #fff;
border-radius: 2px;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
pointer-events: all;
}
.ant-message-success .anticon {
color: #52c41a;
}
.ant-message-error .anticon {
color: #ff4d4f;
}
.ant-message-warning .anticon {
color: #faad14;
}
.ant-message-info .anticon,
.ant-message-loading .anticon {
color: #1890ff;
}
.ant-message .anticon {
position: relative;
top: 1px;
margin-right: 8px;
font-size: 16px;
}
.ant-message-notice.ant-move-up-leave.ant-move-up-leave-active {
animation-name: MessageMoveOut;
animation-duration: 0.3s;
}
@keyframes MessageMoveOut {
0% {
max-height: 150px;
padding: 8px;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}
.ant-message-rtl {
direction: rtl;
}
.ant-message-rtl span {
direction: rtl;
}
.ant-message-rtl .anticon {
margin-right: 0;
margin-left: 8px;
}

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

@@ -0,0 +1,74 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@message-prefix-cls: ~'@{ant-prefix}-message';
.@{message-prefix-cls} {
.reset-component();
position: fixed;
top: 8px;
left: 0;
z-index: @zindex-message;
width: 100%;
pointer-events: none;
&-notice {
padding: 8px;
text-align: center;
}
&-notice-content {
display: inline-block;
padding: @message-notice-content-padding;
background: @message-notice-content-bg;
border-radius: @border-radius-base;
box-shadow: @shadow-2;
pointer-events: all;
}
&-success .@{iconfont-css-prefix} {
color: @success-color;
}
&-error .@{iconfont-css-prefix} {
color: @error-color;
}
&-warning .@{iconfont-css-prefix} {
color: @warning-color;
}
&-info .@{iconfont-css-prefix},
&-loading .@{iconfont-css-prefix} {
color: @info-color;
}
.@{iconfont-css-prefix} {
position: relative;
top: 1px;
margin-right: 8px;
font-size: @font-size-lg;
}
&-notice.@{ant-prefix}-move-up-leave.@{ant-prefix}-move-up-leave-active {
animation-name: MessageMoveOut;
animation-duration: 0.3s;
}
}
@keyframes MessageMoveOut {
0% {
max-height: 150px;
padding: 8px;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}
@import './rtl';

View File

@@ -0,0 +1 @@
.ant-message{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;list-style:none;font-feature-settings:'tnum';position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.ant-message-notice{padding:8px;text-align:center}.ant-message-notice-content{display:inline-block;padding:10px 16px;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);pointer-events:all}.ant-message-success .anticon{color:#52c41a}.ant-message-error .anticon{color:#ff4d4f}.ant-message-warning .anticon{color:#faad14}.ant-message-info .anticon,.ant-message-loading .anticon{color:#1890ff}.ant-message .anticon{position:relative;top:1px;margin-right:8px;font-size:16px}.ant-message-notice.ant-move-up-leave.ant-move-up-leave-active{animation-name:MessageMoveOut;animation-duration:.3s}@keyframes MessageMoveOut{0%{max-height:150px;padding:8px;opacity:1}100%{max-height:0;padding:0;opacity:0}}.ant-message-rtl{direction:rtl}.ant-message-rtl span{direction:rtl}.ant-message-rtl .anticon{margin-right:0;margin-left:8px}

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

@@ -0,0 +1,17 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@message-prefix-cls: ~'@{ant-prefix}-message';
.@{message-prefix-cls}-rtl {
direction: rtl;
span {
direction: rtl;
}
.@{iconfont-css-prefix} {
margin-right: 0;
margin-left: 8px;
}
}