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

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

@@ -0,0 +1,87 @@
import * as i0 from '@angular/core';
import { OnInit, ElementRef, TemplateRef, AfterViewInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
import { NzSafeAny, NzDirectionVHType, NgStyleInterface } from 'ng-zorro-antd/core/types';
import { NzConfigService, NzConfigKey } from 'ng-zorro-antd/core/config';
declare class NzAnchorLinkComponent implements OnInit {
elementRef: ElementRef<any>;
private anchorComp;
private platform;
private renderer;
private readonly destroyRef;
nzHref: string;
nzTarget?: string;
titleStr: string | null;
titleTpl?: TemplateRef<NzSafeAny>;
nzDirection: NzDirectionVHType;
set nzTitle(value: string | TemplateRef<void>);
nzTemplate: TemplateRef<void>;
linkTitle: ElementRef<HTMLAnchorElement>;
constructor();
ngOnInit(): void;
getLinkTitleElement(): HTMLAnchorElement;
setActive(): void;
unsetActive(): void;
goToClick(e: Event): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzAnchorLinkComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzAnchorLinkComponent, "nz-link", ["nzLink"], { "nzHref": { "alias": "nzHref"; "required": false; }; "nzTarget": { "alias": "nzTarget"; "required": false; }; "nzTitle": { "alias": "nzTitle"; "required": false; }; }, {}, ["nzTemplate"], ["*"], true, never>;
}
declare class NzAnchorComponent implements AfterViewInit, OnChanges {
nzConfigService: NzConfigService;
private scrollSrv;
private cdr;
private platform;
private renderer;
private doc;
private destroyRef;
readonly _nzModuleName: NzConfigKey;
private ink;
nzAffix: boolean;
nzShowInkInFixed: boolean;
nzBounds: number;
nzOffsetTop?: number;
nzTargetOffset?: number;
nzContainer?: string | HTMLElement;
nzCurrentAnchor?: string;
nzDirection: NzDirectionVHType;
readonly nzClick: EventEmitter<string>;
readonly nzChange: EventEmitter<string>;
readonly nzScroll: EventEmitter<NzAnchorLinkComponent>;
visible: boolean;
wrapperStyle: NgStyleInterface;
container?: HTMLElement | Window;
activeLink?: string;
private links;
private animating;
private destroy$;
private handleScrollTimeoutID?;
constructor();
registerLink(link: NzAnchorLinkComponent): void;
unregisterLink(link: NzAnchorLinkComponent): void;
private getContainer;
ngAfterViewInit(): void;
private registerScrollEvent;
handleScroll(): void;
private clearActive;
private setActive;
private handleActive;
private setVisible;
handleScrollTo(linkComp: NzAnchorLinkComponent): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzAnchorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzAnchorComponent, "nz-anchor", ["nzAnchor"], { "nzAffix": { "alias": "nzAffix"; "required": false; }; "nzShowInkInFixed": { "alias": "nzShowInkInFixed"; "required": false; }; "nzBounds": { "alias": "nzBounds"; "required": false; }; "nzOffsetTop": { "alias": "nzOffsetTop"; "required": false; }; "nzTargetOffset": { "alias": "nzTargetOffset"; "required": false; }; "nzContainer": { "alias": "nzContainer"; "required": false; }; "nzCurrentAnchor": { "alias": "nzCurrentAnchor"; "required": false; }; "nzDirection": { "alias": "nzDirection"; "required": false; }; }, { "nzClick": "nzClick"; "nzChange": "nzChange"; "nzScroll": "nzScroll"; }, never, ["*"], true, never>;
static ngAcceptInputType_nzAffix: unknown;
static ngAcceptInputType_nzShowInkInFixed: unknown;
static ngAcceptInputType_nzBounds: unknown;
static ngAcceptInputType_nzOffsetTop: unknown;
static ngAcceptInputType_nzTargetOffset: unknown;
}
declare class NzAnchorModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzAnchorModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzAnchorModule, never, [typeof NzAnchorComponent, typeof NzAnchorLinkComponent], [typeof NzAnchorComponent, typeof NzAnchorLinkComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzAnchorModule>;
}
export { NzAnchorComponent, NzAnchorLinkComponent, NzAnchorModule };

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

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

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

@@ -0,0 +1,3 @@
@import './index.less';
@import '../../affix/style/entry.less';
@import "./patch";

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

@@ -0,0 +1,133 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-anchor {
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;
padding-left: 2px;
}
.ant-anchor-wrapper {
margin-left: -4px;
padding-left: 4px;
overflow: auto;
background-color: transparent;
}
.ant-anchor-ink {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
.ant-anchor-ink::before {
position: relative;
display: block;
width: 2px;
height: 100%;
margin: 0 auto;
background-color: #f0f0f0;
content: ' ';
}
.ant-anchor-ink-ball {
position: absolute;
left: 50%;
display: none;
width: 8px;
height: 8px;
background-color: #fff;
border: 2px solid #1890ff;
border-radius: 8px;
transform: translateX(-50%);
transition: top 0.3s ease-in-out;
}
.ant-anchor-ink-ball.ant-anchor-ink-ball-visible {
display: inline-block;
}
.ant-anchor-fixed .ant-anchor-ink .ant-anchor-ink-ball {
display: none;
}
.ant-anchor-link {
padding: 4px 0 4px 16px;
}
.ant-anchor-link-title {
position: relative;
display: block;
margin-bottom: 3px;
overflow: hidden;
color: rgba(0, 0, 0, 0.85);
white-space: nowrap;
text-overflow: ellipsis;
transition: all 0.3s;
}
.ant-anchor-link-title:only-child {
margin-bottom: 0;
}
.ant-anchor-link-active > .ant-anchor-link-title {
color: #1890ff;
}
.ant-anchor-link .ant-anchor-link {
padding-top: 2px;
padding-bottom: 2px;
}
.ant-anchor-rtl {
direction: rtl;
}
.ant-anchor-rtl.ant-anchor-wrapper {
margin-right: -4px;
margin-left: 0;
padding-right: 4px;
padding-left: 0;
}
.ant-anchor-rtl .ant-anchor-ink {
right: 0;
left: auto;
}
.ant-anchor-rtl .ant-anchor-ink-ball {
right: 50%;
left: 0;
transform: translateX(50%);
}
.ant-anchor-rtl .ant-anchor-link {
padding: 4px 16px 4px 0;
}
.ant-affix {
position: fixed;
z-index: 10;
}
nz-affix {
display: block;
}
nz-link {
display: block;
}
.ant-anchor-wrapper-horizontal {
margin-left: unset;
padding-left: unset;
margin-bottom: -4px;
padding-bottom: 4px;
}
.ant-anchor-wrapper-horizontal .ant-anchor {
display: flex;
}
.ant-anchor-wrapper-horizontal .ant-anchor-ink {
top: unset;
bottom: 0;
width: 100%;
height: unset;
}
.ant-anchor-wrapper-horizontal .ant-anchor-ink:before {
width: 100%;
height: 2px;
}
.ant-anchor-wrapper-horizontal .ant-anchor-ink-ball {
transform: translate(-50%, -50%);
}
.ant-anchor-wrapper-horizontal .ant-anchor-link:first-of-type {
padding-inline: 0;
}

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

@@ -0,0 +1,86 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@anchor-border-width: 2px;
.@{ant-prefix}-anchor {
.reset-component();
position: relative;
padding-left: @anchor-border-width;
&-wrapper {
margin-left: -4px;
padding-left: 4px;
overflow: auto;
background-color: @anchor-bg;
}
&-ink {
position: absolute;
top: 0;
left: 0;
height: 100%;
&::before {
position: relative;
display: block;
width: @anchor-border-width;
height: 100%;
margin: 0 auto;
background-color: @anchor-border-color;
content: ' ';
}
&-ball {
position: absolute;
left: 50%;
display: none;
width: 8px;
height: 8px;
background-color: @component-background;
border: 2px solid @primary-color;
border-radius: 8px;
transform: translateX(-50%);
transition: top 0.3s ease-in-out;
&.@{ant-prefix}-anchor-ink-ball-visible {
display: inline-block;
}
}
}
&-fixed &-ink &-ink-ball {
display: none;
}
&-link {
padding: @anchor-link-padding;
&-title {
position: relative;
display: block;
margin-bottom: 3px;
overflow: hidden;
color: @text-color;
white-space: nowrap;
text-overflow: ellipsis;
transition: all 0.3s;
&:only-child {
margin-bottom: 0;
}
}
&-active > &-title {
color: @primary-color;
}
}
&-link &-link {
padding-top: 2px;
padding-bottom: 2px;
}
}
@import './rtl';

View File

@@ -0,0 +1 @@
.ant-anchor{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;padding-left:2px}.ant-anchor-wrapper{margin-left:-4px;padding-left:4px;overflow:auto;background-color:transparent}.ant-anchor-ink{position:absolute;top:0;left:0;height:100%}.ant-anchor-ink::before{position:relative;display:block;width:2px;height:100%;margin:0 auto;background-color:#f0f0f0;content:' '}.ant-anchor-ink-ball{position:absolute;left:50%;display:none;width:8px;height:8px;background-color:#fff;border:2px solid #1890ff;border-radius:8px;transform:translateX(-50%);transition:top .3s ease-in-out}.ant-anchor-ink-ball.ant-anchor-ink-ball-visible{display:inline-block}.ant-anchor-fixed .ant-anchor-ink .ant-anchor-ink-ball{display:none}.ant-anchor-link{padding:4px 0 4px 16px}.ant-anchor-link-title{position:relative;display:block;margin-bottom:3px;overflow:hidden;color:rgba(0,0,0,.85);white-space:nowrap;text-overflow:ellipsis;transition:all .3s}.ant-anchor-link-title:only-child{margin-bottom:0}.ant-anchor-link-active>.ant-anchor-link-title{color:#1890ff}.ant-anchor-link .ant-anchor-link{padding-top:2px;padding-bottom:2px}.ant-anchor-rtl{direction:rtl}.ant-anchor-rtl.ant-anchor-wrapper{margin-right:-4px;margin-left:0;padding-right:4px;padding-left:0}.ant-anchor-rtl .ant-anchor-ink{right:0;left:auto}.ant-anchor-rtl .ant-anchor-ink-ball{right:50%;left:0;transform:translateX(50%)}.ant-anchor-rtl .ant-anchor-link{padding:4px 16px 4px 0}.ant-affix{position:fixed;z-index:10}nz-affix{display:block}nz-link{display:block}.ant-anchor-wrapper-horizontal{margin-left:unset;padding-left:unset;margin-bottom:-4px;padding-bottom:4px}.ant-anchor-wrapper-horizontal .ant-anchor{display:flex}.ant-anchor-wrapper-horizontal .ant-anchor-ink{top:unset;bottom:0;width:100%;height:unset}.ant-anchor-wrapper-horizontal .ant-anchor-ink:before{width:100%;height:2px}.ant-anchor-wrapper-horizontal .ant-anchor-ink-ball{transform:translate(-50%,-50%)}.ant-anchor-wrapper-horizontal .ant-anchor-link:first-of-type{padding-inline:0}

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

@@ -0,0 +1,43 @@
@import '../../style/themes/index';
nz-link {
display: block;
}
.@{ant-prefix}-anchor {
&-wrapper {
// This is a feature of Antd 5, so we need add in the patch file.
&-horizontal {
margin-left: unset;
padding-left: unset;
margin-bottom: -4px;
padding-bottom: 4px;
.ant-anchor {
display: flex;
&-ink {
top: unset;
bottom: 0;
width: 100%;
height: unset;
&:before {
width: 100%;
height: 2px;
}
&-ball {
transform: translate(-50%, -50%);
}
}
&-link {
&:first-of-type {
padding-inline: 0;
}
}
}
}
}
}

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

@@ -0,0 +1,35 @@
.@{ant-prefix}-anchor {
&-rtl {
direction: rtl;
}
&-wrapper {
.@{ant-prefix}-anchor-rtl& {
margin-right: -4px;
margin-left: 0;
padding-right: 4px;
padding-left: 0;
}
}
&-ink {
.@{ant-prefix}-anchor-rtl & {
right: 0;
left: auto;
}
&-ball {
.@{ant-prefix}-anchor-rtl & {
right: 50%;
left: 0;
transform: translateX(50%);
}
}
}
&-link {
.@{ant-prefix}-anchor-rtl & {
padding: @anchor-link-top @anchor-link-left @anchor-link-top 0;
}
}
}