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

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

@@ -0,0 +1,203 @@
import * as i0 from '@angular/core';
import { AfterViewInit, OnChanges, Type, OnInit, ChangeDetectorRef, ElementRef, DestroyRef, EventEmitter, ViewContainerRef, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
import { NzPresetColor } from 'ng-zorro-antd/core/color';
import { NzTSType, NgStyleInterface, NzSafeAny, NgClassInterface } from 'ng-zorro-antd/core/types';
import { Directionality, Direction } from '@angular/cdk/bidi';
import { CdkConnectedOverlay, ConnectionPositionPair, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
import { Subject } from 'rxjs';
import { PopoverConfig, PopConfirmConfig, NzConfigService } from 'ng-zorro-antd/core/config';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { POSITION_TYPE } from 'ng-zorro-antd/core/overlay';
/**
* 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 PropertyMapping {
[key: string]: [string, () => unknown];
}
type NzTooltipTrigger = 'click' | 'focus' | 'hover' | null;
declare abstract class NzTooltipBaseDirective implements AfterViewInit, OnChanges {
protected componentType: Type<NzTooltipBaseComponent>;
config?: Required<PopoverConfig | PopConfirmConfig>;
abstract arrowPointAtCenter?: boolean;
abstract directiveTitle?: NzTSType | null;
abstract directiveContent?: NzTSType | null;
abstract title?: NzTSType | null;
abstract content?: NzTSType | null;
abstract trigger?: NzTooltipTrigger;
abstract placement?: string | string[];
abstract origin?: ElementRef<HTMLElement>;
abstract visible?: boolean;
abstract mouseEnterDelay?: number;
abstract mouseLeaveDelay?: number;
abstract overlayClassName?: string;
abstract overlayStyle?: NgStyleInterface;
abstract overlayClickable?: boolean;
cdkConnectedOverlayPush?: boolean;
visibleChange: EventEmitter<boolean>;
/**
* This true title that would be used in other parts on this component.
*/
protected get _title(): NzTSType | null;
protected get _content(): NzTSType | null;
protected get _trigger(): NzTooltipTrigger;
protected get _placement(): string[];
protected get _visible(): boolean;
protected get _mouseEnterDelay(): number;
protected get _mouseLeaveDelay(): number;
protected get _overlayClassName(): string | null;
protected get _overlayStyle(): NgStyleInterface | null;
protected get _overlayClickable(): boolean;
private internalVisible;
protected getProxyPropertyMap(): PropertyMapping;
component?: NzTooltipBaseComponent;
protected readonly destroy$: Subject<void>;
protected readonly triggerDisposables: VoidFunction[];
private delayTimer?;
elementRef: ElementRef<any>;
protected hostView: ViewContainerRef;
protected renderer: Renderer2;
protected noAnimation: NzNoAnimationDirective | null;
protected nzConfigService: NzConfigService;
protected destroyRef: DestroyRef;
protected platformId: Object;
constructor(componentType: Type<NzTooltipBaseComponent>);
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
show(): void;
hide(): void;
/**
* Force the component to update its position.
*/
updatePosition(): void;
/**
* Create a dynamic tooltip component. This method can be overridden.
*/
protected createComponent(): void;
protected registerTriggers(): void;
private updatePropertiesByChanges;
private updatePropertiesByKeys;
private initProperties;
private updateComponentValue;
private delayEnterLeave;
private removeTriggerListeners;
private clearTogglingTimer;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTooltipBaseDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTooltipBaseDirective, never, never, {}, {}, never, never, true, never>;
}
declare abstract class NzTooltipBaseComponent implements OnInit {
overlay: CdkConnectedOverlay;
noAnimation: NzNoAnimationDirective | null;
protected directionality: Directionality;
protected cdr: ChangeDetectorRef;
protected elementRef: ElementRef<any>;
protected destroyRef: DestroyRef;
nzTitle: NzTSType | null;
nzContent: NzTSType | null;
nzArrowPointAtCenter: boolean;
nzOverlayClassName: string;
nzOverlayStyle: NgStyleInterface;
nzOverlayClickable: boolean;
nzBackdrop: boolean;
nzMouseEnterDelay?: number;
nzMouseLeaveDelay?: number;
cdkConnectedOverlayPush?: boolean;
nzVisibleChange: Subject<boolean>;
set nzVisible(value: boolean);
get nzVisible(): boolean;
_visible: boolean;
set nzTrigger(value: NzTooltipTrigger);
get nzTrigger(): NzTooltipTrigger;
protected _trigger: NzTooltipTrigger;
set nzPlacement(value: POSITION_TYPE[]);
preferredPlacement: string;
origin: ElementRef<NzSafeAny>;
dir: Direction;
_classMap: NgClassInterface;
_prefix: string;
_positions: ConnectionPositionPair[];
constructor();
ngOnInit(): void;
show(): void;
hide(): void;
updateByDirective(): void;
/**
* Force the component to update its position.
*/
updatePosition(): void;
onPositionChange(position: ConnectedOverlayPositionChange): void;
setOverlayOrigin(origin: ElementRef<HTMLElement>): void;
onClickOutside(event: MouseEvent): void;
/**
* Hide the component while the content is empty.
*/
private updateVisibilityByTitle;
protected updateStyles(): void;
protected transformClassListToMap(klass: string): Record<string, boolean>;
/**
* Empty component cannot be opened.
*/
protected abstract isEmpty(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTooltipBaseComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTooltipBaseComponent, never, never, {}, {}, never, never, true, never>;
}
declare function isTooltipEmpty(value: string | TemplateRef<void> | null): boolean;
declare class NzTooltipDirective extends NzTooltipBaseDirective {
title?: NzTSType | null;
titleContext?: object | null;
directiveTitle?: NzTSType | null;
trigger?: NzTooltipTrigger;
placement?: string | string[];
origin?: ElementRef<HTMLElement>;
visible?: boolean;
mouseEnterDelay?: number;
mouseLeaveDelay?: number;
overlayClassName?: string;
overlayStyle?: NgStyleInterface;
arrowPointAtCenter?: boolean;
cdkConnectedOverlayPush?: boolean;
nzTooltipColor?: string;
directiveContent?: NzTSType | null;
content?: NzTSType | null;
overlayClickable?: boolean;
readonly visibleChange: EventEmitter<boolean>;
constructor();
protected getProxyPropertyMap(): PropertyMapping;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTooltipDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTooltipDirective, "[nz-tooltip]", ["nzTooltip"], { "title": { "alias": "nzTooltipTitle"; "required": false; }; "titleContext": { "alias": "nzTooltipTitleContext"; "required": false; }; "directiveTitle": { "alias": "nz-tooltip"; "required": false; }; "trigger": { "alias": "nzTooltipTrigger"; "required": false; }; "placement": { "alias": "nzTooltipPlacement"; "required": false; }; "origin": { "alias": "nzTooltipOrigin"; "required": false; }; "visible": { "alias": "nzTooltipVisible"; "required": false; }; "mouseEnterDelay": { "alias": "nzTooltipMouseEnterDelay"; "required": false; }; "mouseLeaveDelay": { "alias": "nzTooltipMouseLeaveDelay"; "required": false; }; "overlayClassName": { "alias": "nzTooltipOverlayClassName"; "required": false; }; "overlayStyle": { "alias": "nzTooltipOverlayStyle"; "required": false; }; "arrowPointAtCenter": { "alias": "nzTooltipArrowPointAtCenter"; "required": false; }; "cdkConnectedOverlayPush": { "alias": "cdkConnectedOverlayPush"; "required": false; }; "nzTooltipColor": { "alias": "nzTooltipColor"; "required": false; }; }, { "visibleChange": "nzTooltipVisibleChange"; }, never, never, true, never>;
static ngAcceptInputType_arrowPointAtCenter: unknown;
static ngAcceptInputType_cdkConnectedOverlayPush: unknown;
}
declare class NzTooltipComponent extends NzTooltipBaseComponent {
nzTitle: NzTSType | null;
nzTitleContext: object | null;
nzColor?: string | NzPresetColor;
protected _arrowStyleMap: NgStyleInterface;
protected _contentStyleMap: NgStyleInterface;
protected isEmpty(): boolean;
protected updateStyles(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTooltipComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTooltipComponent, "nz-tooltip", ["nzTooltipComponent"], {}, {}, never, never, true, never>;
}
/**
* @deprecated Use {@link NzTooltipComponent} instead.
* This will be removed in v21.0.0.
*/
declare const NzToolTipComponent: typeof NzTooltipComponent;
declare class NzTooltipModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTooltipModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTooltipModule, never, [typeof NzTooltipComponent, typeof NzTooltipDirective], [typeof NzTooltipComponent, typeof NzTooltipDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTooltipModule>;
}
/**
* @deprecated Use {@link NzTooltipModule} instead.
* This will be removed in v21.0.0.
*/
declare const NzToolTipModule: typeof NzTooltipModule;
export { NzToolTipComponent, NzToolTipModule, NzTooltipBaseComponent, NzTooltipBaseDirective, NzTooltipComponent, NzTooltipDirective, NzTooltipModule, isTooltipEmpty };
export type { NzTooltipTrigger, PropertyMapping };

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

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

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

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

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

@@ -0,0 +1,223 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-tooltip {
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';
--antd-arrow-background-color: rgba(0, 0, 0, 0.75);
position: absolute;
z-index: 1070;
display: block;
width: max-content;
max-width: 250px;
visibility: visible;
}
.ant-tooltip-content {
position: relative;
}
.ant-tooltip-hidden {
display: none;
}
.ant-tooltip-inner {
min-width: 30px;
min-height: 32px;
padding: calc(12px / 2) 8px;
color: #fff;
text-align: start;
text-decoration: none;
word-wrap: break-word;
background-color: rgba(0, 0, 0, 0.75);
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);
}
.ant-tooltip-arrow {
position: absolute;
z-index: 1;
display: block;
width: 16px;
height: 16px;
overflow: hidden;
pointer-events: none;
}
.ant-tooltip-arrow::before {
position: absolute;
bottom: 0;
width: 16px;
height: calc(16px / 2);
background: var(--antd-arrow-background-color);
content: '';
clip-path: polygon(1.65685425px 100%, 50% 1.65685425px, 14.34314575px 100%, 1.65685425px 100%);
clip-path: path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z');
inset-inline-start: 0;
}
.ant-tooltip-arrow::after {
position: absolute;
bottom: 0;
z-index: 0;
width: 8.97056275px;
height: 8.97056275px;
margin: auto;
background: transparent;
border-radius: 0 0 2px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
transform: translateY(50%) rotate(-135deg);
content: '';
inset-inline: 0;
}
.ant-tooltip-arrow::before {
background: var(--antd-arrow-background-color);
}
.ant-tooltip-placement-top > .ant-tooltip-arrow,
.ant-tooltip-placement-topLeft > .ant-tooltip-arrow,
.ant-tooltip-placement-topRight > .ant-tooltip-arrow {
bottom: 0px;
transform: translateY(100%) rotate(180deg);
}
.ant-tooltip-placement-top > .ant-tooltip-arrow {
left: 50%;
transform: translateX(-50%) translateY(100%) rotate(180deg);
}
.ant-tooltip-placement-topLeft > .ant-tooltip-arrow {
left: 16px;
}
.ant-tooltip-placement-topRight > .ant-tooltip-arrow {
right: 16px;
}
.ant-tooltip-placement-bottom > .ant-tooltip-arrow,
.ant-tooltip-placement-bottomLeft > .ant-tooltip-arrow,
.ant-tooltip-placement-bottomRight > .ant-tooltip-arrow {
top: 0px;
transform: translateY(-100%);
}
.ant-tooltip-placement-bottom > .ant-tooltip-arrow {
left: 50%;
transform: translateX(-50%) translateY(-100%);
}
.ant-tooltip-placement-bottomLeft > .ant-tooltip-arrow {
left: 16px;
}
.ant-tooltip-placement-bottomRight > .ant-tooltip-arrow {
right: 16px;
}
.ant-tooltip-placement-left > .ant-tooltip-arrow,
.ant-tooltip-placement-leftTop > .ant-tooltip-arrow,
.ant-tooltip-placement-leftBottom > .ant-tooltip-arrow {
right: 0px;
transform: translateX(100%) rotate(90deg);
}
.ant-tooltip-placement-left > .ant-tooltip-arrow {
top: 50%;
transform: translateY(-50%) translateX(100%) rotate(90deg);
}
.ant-tooltip-placement-leftTop > .ant-tooltip-arrow {
top: 16px;
}
.ant-tooltip-placement-leftBottom > .ant-tooltip-arrow {
bottom: 16px;
}
.ant-tooltip-placement-right > .ant-tooltip-arrow,
.ant-tooltip-placement-rightTop > .ant-tooltip-arrow,
.ant-tooltip-placement-rightBottom > .ant-tooltip-arrow {
left: 0px;
transform: translateX(-100%) rotate(-90deg);
}
.ant-tooltip-placement-right > .ant-tooltip-arrow {
top: 50%;
transform: translateY(-50%) translateX(-100%) rotate(-90deg);
}
.ant-tooltip-placement-rightTop > .ant-tooltip-arrow {
top: 16px;
}
.ant-tooltip-placement-rightBottom > .ant-tooltip-arrow {
bottom: 16px;
}
.ant-tooltip-pink .ant-tooltip-inner {
background-color: #eb2f96;
}
.ant-tooltip-pink .ant-tooltip-arrow {
--antd-arrow-background-color: #eb2f96;
}
.ant-tooltip-magenta .ant-tooltip-inner {
background-color: #eb2f96;
}
.ant-tooltip-magenta .ant-tooltip-arrow {
--antd-arrow-background-color: #eb2f96;
}
.ant-tooltip-red .ant-tooltip-inner {
background-color: #f5222d;
}
.ant-tooltip-red .ant-tooltip-arrow {
--antd-arrow-background-color: #f5222d;
}
.ant-tooltip-volcano .ant-tooltip-inner {
background-color: #fa541c;
}
.ant-tooltip-volcano .ant-tooltip-arrow {
--antd-arrow-background-color: #fa541c;
}
.ant-tooltip-orange .ant-tooltip-inner {
background-color: #fa8c16;
}
.ant-tooltip-orange .ant-tooltip-arrow {
--antd-arrow-background-color: #fa8c16;
}
.ant-tooltip-yellow .ant-tooltip-inner {
background-color: #fadb14;
}
.ant-tooltip-yellow .ant-tooltip-arrow {
--antd-arrow-background-color: #fadb14;
}
.ant-tooltip-gold .ant-tooltip-inner {
background-color: #faad14;
}
.ant-tooltip-gold .ant-tooltip-arrow {
--antd-arrow-background-color: #faad14;
}
.ant-tooltip-cyan .ant-tooltip-inner {
background-color: #13c2c2;
}
.ant-tooltip-cyan .ant-tooltip-arrow {
--antd-arrow-background-color: #13c2c2;
}
.ant-tooltip-lime .ant-tooltip-inner {
background-color: #a0d911;
}
.ant-tooltip-lime .ant-tooltip-arrow {
--antd-arrow-background-color: #a0d911;
}
.ant-tooltip-green .ant-tooltip-inner {
background-color: #52c41a;
}
.ant-tooltip-green .ant-tooltip-arrow {
--antd-arrow-background-color: #52c41a;
}
.ant-tooltip-blue .ant-tooltip-inner {
background-color: #1890ff;
}
.ant-tooltip-blue .ant-tooltip-arrow {
--antd-arrow-background-color: #1890ff;
}
.ant-tooltip-geekblue .ant-tooltip-inner {
background-color: #2f54eb;
}
.ant-tooltip-geekblue .ant-tooltip-arrow {
--antd-arrow-background-color: #2f54eb;
}
.ant-tooltip-purple .ant-tooltip-inner {
background-color: #722ed1;
}
.ant-tooltip-purple .ant-tooltip-arrow {
--antd-arrow-background-color: #722ed1;
}
.ant-tooltip-rtl {
direction: rtl;
}
.ant-tooltip {
position: relative;
}

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

@@ -0,0 +1,63 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@tooltip-prefix-cls: ~'@{ant-prefix}-tooltip';
// Base class
.@{tooltip-prefix-cls} {
.reset-component();
--antd-arrow-background-color: @tooltip-bg;
position: absolute;
z-index: @zindex-tooltip;
display: block;
width: max-content;
max-width: @tooltip-max-width;
visibility: visible;
&-content {
position: relative;
}
&-hidden {
display: none;
}
// Wrapper for the tooltip content
&-inner {
min-width: 30px;
min-height: 32px;
padding: calc(@padding-sm / 2) @padding-xs;
color: @tooltip-color;
text-align: start;
text-decoration: none;
word-wrap: break-word;
background-color: @tooltip-bg;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
}
// Arrow Style
.placementArrow(@tooltip-arrow-width, 4px, @arrow-border-radius, var(--antd-arrow-background-color), @popover-arrow-box-shadow);
}
.generator-tooltip-preset-color(@i: length(@preset-colors)) when (@i > 0) {
.generator-tooltip-preset-color(@i - 1);
@color: extract(@preset-colors, @i);
@lightColor: '@{color}-6';
.@{tooltip-prefix-cls}-@{color} {
.@{tooltip-prefix-cls}-inner {
background-color: @@lightColor;
}
.@{tooltip-prefix-cls}-arrow {
--antd-arrow-background-color: @@lightColor;
}
}
}
.generator-tooltip-preset-color();
@import './rtl';

File diff suppressed because one or more lines are too long

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

@@ -0,0 +1,3 @@
.ant-tooltip {
position: relative;
}

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

@@ -0,0 +1,8 @@
@tooltip-prefix-cls: ~'@{ant-prefix}-tooltip';
// Base class
.@{tooltip-prefix-cls} {
&-rtl {
direction: rtl;
}
}