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

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

@@ -0,0 +1,69 @@
import * as i0 from '@angular/core';
import { OnChanges, EventEmitter, ElementRef } from '@angular/core';
import { NzConfigKey } from 'ng-zorro-antd/core/config';
import { NzShapeSCType, NzSizeLDSType } from 'ng-zorro-antd/core/types';
/** https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading */
type NzAvatarLoading = 'eager' | 'lazy';
/** https://wicg.github.io/priority-hints/#idl-index */
type NzAvatarFetchPriority = 'high' | 'low' | 'auto';
declare class NzAvatarComponent implements OnChanges {
readonly _nzModuleName: NzConfigKey;
nzShape: NzShapeSCType;
nzSize: NzSizeLDSType | number;
nzGap: number;
nzText?: string;
nzSrc?: string;
nzSrcSet?: string;
nzAlt?: string;
nzIcon?: string;
readonly nzLoading: i0.InputSignal<NzAvatarLoading | undefined>;
readonly nzFetchPriority: i0.InputSignal<NzAvatarFetchPriority | undefined>;
readonly nzError: EventEmitter<Event>;
hasText: boolean;
hasSrc: boolean;
hasIcon: boolean;
customSize: string | null;
textEl?: ElementRef<HTMLSpanElement>;
private el;
private cdr;
constructor();
imgError(event: Event): void;
ngOnChanges(): void;
private calcStringSize;
private setSizeStyle;
static ɵfac: i0.ɵɵFactoryDeclaration<NzAvatarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzAvatarComponent, "nz-avatar", ["nzAvatar"], { "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzGap": { "alias": "nzGap"; "required": false; }; "nzText": { "alias": "nzText"; "required": false; }; "nzSrc": { "alias": "nzSrc"; "required": false; }; "nzSrcSet": { "alias": "nzSrcSet"; "required": false; }; "nzAlt": { "alias": "nzAlt"; "required": false; }; "nzIcon": { "alias": "nzIcon"; "required": false; }; "nzLoading": { "alias": "nzLoading"; "required": false; "isSignal": true; }; "nzFetchPriority": { "alias": "nzFetchPriority"; "required": false; "isSignal": true; }; }, { "nzError": "nzError"; }, never, ["*"], true, never>;
static ngAcceptInputType_nzGap: unknown;
}
declare class NzAvatarGroupComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzAvatarGroupComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzAvatarGroupComponent, "nz-avatar-group", ["nzAvatarGroup"], {}, {}, never, ["*"], true, never>;
}
declare class NzAvatarModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzAvatarModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzAvatarModule, never, [typeof NzAvatarComponent, typeof NzAvatarGroupComponent], [typeof NzAvatarComponent, typeof NzAvatarGroupComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzAvatarModule>;
}
/**
* 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 NzAvatarProps {
shape?: NzShapeSCType;
size?: NzSizeLDSType | number;
gap?: number;
src?: string;
srcSet?: string;
alt?: string;
icon?: string;
text?: string;
error?: (event: Event) => void;
}
export { NzAvatarComponent, NzAvatarGroupComponent, NzAvatarModule };
export type { NzAvatarProps };

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

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

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

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

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

@@ -0,0 +1,17 @@
.@{avatar-prefix-cls}-group {
display: inline-flex;
.@{avatar-prefix-cls} {
border: 1px solid @avatar-group-border-color;
&:not(:first-child) {
margin-left: @avatar-group-overlapping;
}
}
&-popover {
.@{ant-prefix}-avatar + .@{ant-prefix}-avatar {
margin-left: @avatar-group-space;
}
}
}

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

@@ -0,0 +1,105 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-avatar {
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: relative;
display: inline-block;
overflow: hidden;
color: #fff;
white-space: nowrap;
text-align: center;
vertical-align: middle;
background: #ccc;
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 50%;
}
.ant-avatar-image {
background: transparent;
}
.ant-avatar .ant-image-img {
display: block;
}
.ant-avatar-string {
position: absolute;
left: 50%;
transform-origin: 0 center;
}
.ant-avatar.ant-avatar-icon {
font-size: 18px;
}
.ant-avatar.ant-avatar-icon > .anticon {
margin: 0;
}
.ant-avatar-lg {
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
}
.ant-avatar-lg-string {
position: absolute;
left: 50%;
transform-origin: 0 center;
}
.ant-avatar-lg.ant-avatar-icon {
font-size: 24px;
}
.ant-avatar-lg.ant-avatar-icon > .anticon {
margin: 0;
}
.ant-avatar-sm {
width: 24px;
height: 24px;
line-height: 24px;
border-radius: 50%;
}
.ant-avatar-sm-string {
position: absolute;
left: 50%;
transform-origin: 0 center;
}
.ant-avatar-sm.ant-avatar-icon {
font-size: 14px;
}
.ant-avatar-sm.ant-avatar-icon > .anticon {
margin: 0;
}
.ant-avatar-square {
border-radius: 2px;
}
.ant-avatar > img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.ant-avatar-group {
display: inline-flex;
}
.ant-avatar-group .ant-avatar {
border: 1px solid #fff;
}
.ant-avatar-group .ant-avatar:not(:first-child) {
margin-left: -8px;
}
.ant-avatar-group-popover .ant-avatar + .ant-avatar {
margin-left: 3px;
}
.ant-avatar-group-rtl .ant-avatar:not(:first-child) {
margin-right: -8px;
margin-left: 0;
}
.ant-avatar-group-popover.ant-popover-rtl .ant-avatar + .ant-avatar {
margin-right: 3px;
margin-left: 0;
}

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

@@ -0,0 +1,70 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@avatar-prefix-cls: ~'@{ant-prefix}-avatar';
.@{avatar-prefix-cls} {
.reset-component();
position: relative;
display: inline-block;
overflow: hidden;
color: @avatar-color;
white-space: nowrap;
text-align: center;
vertical-align: middle;
background: @avatar-bg;
&-image {
background: transparent;
}
.@{ant-prefix}-image-img {
display: block;
}
.avatar-size(@avatar-size-base, @avatar-font-size-base);
&-lg {
.avatar-size(@avatar-size-lg, @avatar-font-size-lg);
}
&-sm {
.avatar-size(@avatar-size-sm, @avatar-font-size-sm);
}
&-square {
border-radius: @avatar-border-radius;
}
& > img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
.avatar-size(@size, @font-size) {
width: @size;
height: @size;
line-height: @size;
border-radius: 50%;
&-string {
position: absolute;
left: 50%;
transform-origin: 0 center;
}
&.@{avatar-prefix-cls}-icon {
font-size: @font-size;
> .@{iconfont-css-prefix} {
margin: 0;
}
}
}
@import './group';
@import './rtl';

View File

@@ -0,0 +1 @@
.ant-avatar{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:relative;display:inline-block;overflow:hidden;color:#fff;white-space:nowrap;text-align:center;vertical-align:middle;background:#ccc;width:32px;height:32px;line-height:32px;border-radius:50%}.ant-avatar-image{background:0 0}.ant-avatar .ant-image-img{display:block}.ant-avatar-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar.ant-avatar-icon{font-size:18px}.ant-avatar.ant-avatar-icon>.anticon{margin:0}.ant-avatar-lg{width:40px;height:40px;line-height:40px;border-radius:50%}.ant-avatar-lg-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar-lg.ant-avatar-icon{font-size:24px}.ant-avatar-lg.ant-avatar-icon>.anticon{margin:0}.ant-avatar-sm{width:24px;height:24px;line-height:24px;border-radius:50%}.ant-avatar-sm-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar-sm.ant-avatar-icon{font-size:14px}.ant-avatar-sm.ant-avatar-icon>.anticon{margin:0}.ant-avatar-square{border-radius:2px}.ant-avatar>img{display:block;width:100%;height:100%;object-fit:cover}.ant-avatar-group{display:inline-flex}.ant-avatar-group .ant-avatar{border:1px solid #fff}.ant-avatar-group .ant-avatar:not(:first-child){margin-left:-8px}.ant-avatar-group-popover .ant-avatar+.ant-avatar{margin-left:3px}.ant-avatar-group-rtl .ant-avatar:not(:first-child){margin-right:-8px;margin-left:0}.ant-avatar-group-popover.ant-popover-rtl .ant-avatar+.ant-avatar{margin-right:3px;margin-left:0}

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

@@ -0,0 +1,15 @@
.@{avatar-prefix-cls}-group {
&-rtl {
.@{avatar-prefix-cls}:not(:first-child) {
margin-right: @avatar-group-overlapping;
margin-left: 0;
}
}
&-popover.@{ant-prefix}-popover-rtl {
.@{ant-prefix}-avatar + .@{ant-prefix}-avatar {
margin-right: @avatar-group-space;
margin-left: 0;
}
}
}