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

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

@@ -0,0 +1,122 @@
import * as i0 from '@angular/core';
import { AfterContentInit, OnInit, ViewContainerRef, EventEmitter, TemplateRef, AfterViewInit, OnChanges, ElementRef, SimpleChanges, EmbeddedViewRef } from '@angular/core';
import { NzConfigService, NzConfigKey } from 'ng-zorro-antd/core/config';
import { IndexableObject, NzSafeAny } from 'ng-zorro-antd/core/types';
import * as rxjs from 'rxjs';
import { BehaviorSubject } from 'rxjs';
import { AnimationEvent } from '@angular/animations';
import { Direction } from '@angular/cdk/bidi';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import * as i6 from 'ng-zorro-antd/menu';
import { MenuService } from 'ng-zorro-antd/menu';
type NzPlacementType = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
declare class NzDropdownMenuComponent implements AfterContentInit, OnInit {
private cdr;
private elementRef;
private renderer;
viewContainerRef: ViewContainerRef;
private directionality;
private destroyRef;
mouseState$: BehaviorSubject<boolean>;
nzMenuService: MenuService;
isChildSubMenuOpen$: BehaviorSubject<boolean>;
descendantMenuItemClick$: rxjs.Subject<any>;
animationStateChange$: EventEmitter<AnimationEvent>;
nzOverlayClassName: string;
nzOverlayStyle: IndexableObject;
nzArrow: boolean;
placement: NzPlacementType | 'bottom' | 'top';
templateRef: TemplateRef<NzSafeAny>;
dir: Direction;
onAnimationEvent(event: AnimationEvent): void;
setMouseState(visible: boolean): void;
setValue<T extends keyof NzDropdownMenuComponent>(key: T, value: this[T]): void;
noAnimation: NzNoAnimationDirective | null;
ngOnInit(): void;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDropdownMenuComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzDropdownMenuComponent, "nz-dropdown-menu", ["nzDropdownMenu"], {}, {}, never, ["*"], true, never>;
}
declare class NzDropDownDirective implements AfterViewInit, OnChanges {
readonly nzConfigService: NzConfigService;
private renderer;
private viewContainerRef;
private platform;
private destroyRef;
readonly _nzModuleName: NzConfigKey;
elementRef: ElementRef<any>;
private injector;
private portal?;
private overlayRef;
private positionStrategy;
private inputVisible$;
private nzTrigger$;
private overlayClose$;
nzDropdownMenu: NzDropdownMenuComponent | null;
nzTrigger: 'click' | 'hover';
nzMatchWidthElement: ElementRef | null;
nzBackdrop: boolean;
nzClickHide: boolean;
nzDisabled: boolean;
nzVisible: boolean;
nzArrow: boolean;
nzOverlayClassName: string;
nzOverlayStyle: IndexableObject;
nzPlacement: NzPlacementType;
readonly nzVisibleChange: EventEmitter<boolean>;
constructor();
setDropdownMenuValue<T extends keyof NzDropdownMenuComponent>(key: T, value: NzDropdownMenuComponent[T]): void;
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDropDownDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzDropDownDirective, "[nz-dropdown]", ["nzDropdown"], { "nzDropdownMenu": { "alias": "nzDropdownMenu"; "required": false; }; "nzTrigger": { "alias": "nzTrigger"; "required": false; }; "nzMatchWidthElement": { "alias": "nzMatchWidthElement"; "required": false; }; "nzBackdrop": { "alias": "nzBackdrop"; "required": false; }; "nzClickHide": { "alias": "nzClickHide"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzVisible": { "alias": "nzVisible"; "required": false; }; "nzArrow": { "alias": "nzArrow"; "required": false; }; "nzOverlayClassName": { "alias": "nzOverlayClassName"; "required": false; }; "nzOverlayStyle": { "alias": "nzOverlayStyle"; "required": false; }; "nzPlacement": { "alias": "nzPlacement"; "required": false; }; }, { "nzVisibleChange": "nzVisibleChange"; }, never, never, true, never>;
static ngAcceptInputType_nzBackdrop: unknown;
static ngAcceptInputType_nzClickHide: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzVisible: unknown;
static ngAcceptInputType_nzArrow: unknown;
}
declare class NzDropDownADirective {
static ɵfac: i0.ɵɵFactoryDeclaration<NzDropDownADirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzDropDownADirective, "a[nz-dropdown]", never, {}, {}, never, never, true, never>;
}
/**
* @deprecated Will be removed in v21, because it is not used anymore.
*/
declare class NzDropdownButtonDirective {
static ɵfac: i0.ɵɵFactoryDeclaration<NzDropdownButtonDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzDropdownButtonDirective, "[nz-button][nz-dropdown]", never, {}, {}, never, never, true, never>;
}
declare class NzContextMenuServiceModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzContextMenuServiceModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzContextMenuServiceModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzContextMenuServiceModule>;
}
declare class NzDropDownModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzDropDownModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzDropDownModule, never, [typeof NzDropDownDirective, typeof NzDropDownADirective, typeof NzDropdownMenuComponent, typeof NzDropdownButtonDirective, typeof NzContextMenuServiceModule], [typeof i6.NzMenuModule, typeof NzDropDownDirective, typeof NzDropDownADirective, typeof NzDropdownMenuComponent, typeof NzDropdownButtonDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzDropDownModule>;
}
declare class NzContextMenuService {
private ngZone;
private injector;
private overlayRef;
private closeSubscription;
create($event: MouseEvent | {
x: number;
y: number;
}, nzDropdownMenuComponent: NzDropdownMenuComponent): EmbeddedViewRef<NzSafeAny>;
close(clear?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzContextMenuService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzContextMenuService>;
}
export { NzContextMenuService, NzContextMenuServiceModule, NzDropDownADirective, NzDropDownDirective, NzDropDownModule, NzDropdownButtonDirective, NzDropdownMenuComponent };
export type { NzPlacementType };

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

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

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

@@ -0,0 +1,4 @@
@import './index.less';
@import './patch.less';
// style dependencies
@import '../../button/style/entry.less';

2431
node_modules/ng-zorro-antd/dropdown/style/index.css generated vendored Normal file

File diff suppressed because it is too large Load Diff

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

@@ -0,0 +1,324 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './status';
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
.@{dropdown-prefix-cls} {
.reset-component();
--antd-arrow-background-color: @dropdown-menu-bg;
position: absolute;
top: -9999px;
left: -9999px;
z-index: @zindex-dropdown;
display: block;
&::before {
position: absolute;
inset-block: calc(@popover-arrow-width / 2 - @popover-distance);
z-index: -9999;
opacity: 0.0001;
content: '';
}
&-wrap {
position: relative;
.@{ant-prefix}-btn > .@{iconfont-css-prefix}-down {
font-size: 10px;
}
.@{iconfont-css-prefix}-down::before {
transition: transform @animation-duration-base;
}
}
&-wrap-open {
.@{iconfont-css-prefix}-down::before {
transform: rotate(180deg);
}
}
&-hidden,
&-menu-hidden,
&-menu-submenu-hidden {
display: none;
}
// Arrow Style
.placementArrow(@popover-arrow-width, 4px, @arrow-border-radius, var(--antd-arrow-background-color), @popover-arrow-box-shadow);
&-menu {
position: relative;
margin: 0;
padding: @dropdown-edge-child-vertical-padding 0;
text-align: left;
list-style-type: none;
background-color: @dropdown-menu-bg;
background-clip: padding-box;
border-radius: @border-radius-base;
outline: none;
box-shadow: @box-shadow-base;
&-item-group-title {
padding: 5px @control-padding-horizontal;
color: @text-color-secondary;
transition: all @animation-duration-slow;
}
&-submenu-popup {
position: absolute;
z-index: @zindex-dropdown;
background: transparent;
box-shadow: none;
transform-origin: 0 0;
ul,
li {
list-style: none;
}
ul {
margin-right: 0.3em;
margin-left: 0.3em;
}
}
// ======================= Item Content =======================
&-item {
position: relative;
display: flex;
align-items: center;
}
&-item-icon {
min-width: 12px;
margin-right: 8px;
font-size: @font-size-sm;
}
&-title-content {
flex: auto;
> a {
color: inherit;
transition: all @animation-duration-slow;
&:hover {
color: inherit;
}
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: '';
}
}
}
// =========================== Item ===========================
&-item,
&-submenu-title {
clear: both;
margin: 0;
padding: @dropdown-vertical-padding @control-padding-horizontal;
color: @text-color;
font-weight: normal;
font-size: @dropdown-font-size;
line-height: @dropdown-line-height;
cursor: pointer;
transition: all @animation-duration-slow;
&:first-child {
& when (@dropdown-edge-child-vertical-padding = 0) {
border-radius: @border-radius-base @border-radius-base 0 0;
}
}
&:last-child {
& when (@dropdown-edge-child-vertical-padding = 0) {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
}
&-selected {
color: @dropdown-selected-color;
background-color: @dropdown-selected-bg;
}
&:hover,
&&-active {
background-color: @item-hover-bg;
}
&&-disabled {
color: @disabled-color;
cursor: not-allowed;
&:hover {
color: @disabled-color;
background-color: @dropdown-menu-submenu-disabled-bg;
cursor: not-allowed;
}
a {
pointer-events: none;
}
}
&-divider {
height: 1px;
margin: 4px 0;
overflow: hidden;
line-height: 0;
background-color: @border-color-split;
}
.@{dropdown-prefix-cls}-menu-submenu-expand-icon {
position: absolute;
right: @padding-xs;
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
margin-right: 0 !important;
color: @text-color-secondary;
font-size: 10px;
font-style: normal;
}
}
}
&-item-group-list {
margin: 0 8px;
padding: 0;
list-style: none;
}
&-submenu-title {
padding-right: @control-padding-horizontal + @font-size-sm;
}
&-submenu-vertical {
position: relative;
}
&-submenu-vertical > & {
position: absolute;
top: 0;
left: 100%;
min-width: 100%;
margin-left: 4px;
transform-origin: 0 0;
}
&-submenu&-submenu-disabled .@{dropdown-prefix-cls}-menu-submenu-title {
&,
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
color: @disabled-color;
background-color: @dropdown-menu-submenu-disabled-bg;
cursor: not-allowed;
}
}
// https://github.com/ant-design/ant-design/issues/19264
&-submenu-selected &-submenu-title {
color: @primary-color;
}
}
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomLeft,
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomLeft,
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottom,
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottom,
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomRight,
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomRight {
animation-name: antSlideUpIn;
}
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topLeft,
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topLeft,
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-top,
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-top,
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topRight,
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topRight {
animation-name: antSlideDownIn;
}
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomLeft,
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottom,
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomRight {
animation-name: antSlideUpOut;
}
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topLeft,
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-top,
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topRight {
animation-name: antSlideDownOut;
}
}
.@{dropdown-prefix-cls}-trigger,
.@{dropdown-prefix-cls}-link,
.@{dropdown-prefix-cls}-button {
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
font-size: 10px;
vertical-align: baseline;
}
}
.@{dropdown-prefix-cls}-button {
white-space: nowrap;
&.@{ant-prefix}-btn-group > .@{ant-prefix}-btn {
&-loading,
&-loading + .@{ant-prefix}-btn {
cursor: default;
pointer-events: none;
}
&-loading + .@{ant-prefix}-btn::before {
display: block;
}
&:last-child:not(:first-child):not(.@{ant-prefix}-btn-icon-only) {
padding-right: @padding-xs;
padding-left: @padding-xs;
}
}
}
// https://github.com/ant-design/ant-design/issues/4903
.@{dropdown-prefix-cls}-menu-dark {
&,
.@{dropdown-prefix-cls}-menu {
background: @menu-dark-bg;
}
.@{dropdown-prefix-cls}-menu-item,
.@{dropdown-prefix-cls}-menu-submenu-title,
.@{dropdown-prefix-cls}-menu-item > a,
.@{dropdown-prefix-cls}-menu-item > .@{iconfont-css-prefix} + span > a {
color: @text-color-secondary-dark;
.@{dropdown-prefix-cls}-menu-submenu-arrow::after {
color: @text-color-secondary-dark;
}
&:hover {
color: @text-color-inverse;
background: transparent;
}
}
.@{dropdown-prefix-cls}-menu-item-selected {
&,
&:hover,
> a {
color: @text-color-inverse;
background: @primary-color;
}
}
}
@import './rtl';

File diff suppressed because one or more lines are too long

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

@@ -0,0 +1,29 @@
.ant-dropdown-menu {
& > ul {
margin: 0;
padding: 0;
list-style: inherit;
}
}
.ant-dropdown {
position: relative;
inset: 0;
&:not(:has(.ant-dropdown-arrow)) {
margin-block: calc(@popover-distance - @popover-arrow-width / 2)
}
}
.@{dropdown-prefix-cls} {
&-menu {
&-item,
&-submenu-title {
.@{dropdown-prefix-cls}-menu-submenu-arrow {
.@{dropdown-prefix-cls}-rtl & {
transform: rotate(180deg);
}
}
}
}
}

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

@@ -0,0 +1,90 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
.@{dropdown-prefix-cls} {
&-rtl {
direction: rtl;
}
&::before {
.@{dropdown-prefix-cls}-rtl& {
right: -7px;
left: 0;
}
}
&-menu {
&&-rtl {
direction: rtl;
text-align: right;
}
&-item-group-title {
.@{dropdown-prefix-cls}-rtl &,
.@{dropdown-prefix-cls}-menu-submenu-rtl & {
direction: rtl;
text-align: right;
}
}
&-submenu-popup {
&.@{dropdown-prefix-cls}-menu-submenu-rtl {
transform-origin: 100% 0;
}
ul,
li {
.@{dropdown-prefix-cls}-rtl & {
text-align: right;
}
}
}
&-item,
&-submenu-title {
.@{dropdown-prefix-cls}-rtl & {
text-align: right;
}
> .@{iconfont-css-prefix}:first-child,
> span > .@{iconfont-css-prefix}:first-child {
.@{dropdown-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
}
.@{dropdown-prefix-cls}-menu-submenu-expand-icon {
.@{dropdown-prefix-cls}-rtl & {
right: auto;
left: @padding-xs;
}
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
.@{dropdown-prefix-cls}-rtl & {
margin-left: 0 !important;
transform: scaleX(-1);
}
}
}
}
&-submenu-title {
.@{dropdown-prefix-cls}-rtl & {
padding-right: @control-padding-horizontal;
padding-left: @control-padding-horizontal + @font-size-sm;
}
}
&-submenu-vertical > & {
.@{dropdown-prefix-cls}-rtl & {
right: 100%;
left: 0;
margin-right: 4px;
margin-left: 0;
}
}
}
}

14
node_modules/ng-zorro-antd/dropdown/style/status.less generated vendored Normal file
View File

@@ -0,0 +1,14 @@
@import (reference) '../../style/themes/index';
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
.@{dropdown-prefix-cls}-menu-item {
&&-danger {
color: @error-color;
&:hover {
color: @text-color-inverse;
background-color: @error-color;
}
}
}