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

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

@@ -0,0 +1,93 @@
import * as i0 from '@angular/core';
import { OnInit, OnChanges, AfterContentInit, EventEmitter, TemplateRef, SimpleChanges, QueryList } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { NzBreakpointKey } from 'ng-zorro-antd/core/services';
import { NzMenuDirective } from 'ng-zorro-antd/menu';
declare class NzContentComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzContentComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzContentComponent, "nz-content", ["nzContent"], {}, {}, never, ["*"], true, never>;
}
declare class NzFooterComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzFooterComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFooterComponent, "nz-footer", ["nzFooter"], {}, {}, never, ["*"], true, never>;
}
declare class NzHeaderComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzHeaderComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzHeaderComponent, "nz-header", ["nzHeader"], {}, {}, never, ["*"], true, never>;
}
declare class NzSiderComponent implements OnInit, OnChanges, AfterContentInit {
private destroyRef;
private platform;
private cdr;
private breakpointService;
nzMenuDirective: NzMenuDirective | null;
readonly nzCollapsedChange: EventEmitter<any>;
nzWidth: string | number;
nzTheme: 'light' | 'dark';
nzCollapsedWidth: number;
nzBreakpoint: NzBreakpointKey | null;
nzZeroTrigger: TemplateRef<void> | null;
nzTrigger: TemplateRef<void> | undefined | null;
nzReverseArrow: boolean;
nzCollapsible: boolean;
nzCollapsed: boolean;
matchBreakPoint: boolean;
flexSetting: string | null;
widthSetting: string | null;
updateStyleMap(): void;
updateMenuInlineCollapsed(): void;
setCollapsed(collapsed: boolean): void;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzSiderComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzSiderComponent, "nz-sider", ["nzSider"], { "nzWidth": { "alias": "nzWidth"; "required": false; }; "nzTheme": { "alias": "nzTheme"; "required": false; }; "nzCollapsedWidth": { "alias": "nzCollapsedWidth"; "required": false; }; "nzBreakpoint": { "alias": "nzBreakpoint"; "required": false; }; "nzZeroTrigger": { "alias": "nzZeroTrigger"; "required": false; }; "nzTrigger": { "alias": "nzTrigger"; "required": false; }; "nzReverseArrow": { "alias": "nzReverseArrow"; "required": false; }; "nzCollapsible": { "alias": "nzCollapsible"; "required": false; }; "nzCollapsed": { "alias": "nzCollapsed"; "required": false; }; }, { "nzCollapsedChange": "nzCollapsedChange"; }, ["nzMenuDirective"], ["*"], true, never>;
static ngAcceptInputType_nzReverseArrow: unknown;
static ngAcceptInputType_nzCollapsible: unknown;
static ngAcceptInputType_nzCollapsed: unknown;
}
/**
* 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 NzLayoutComponent implements OnInit {
private destroyRef;
private directionality;
listOfNzSiderComponent: QueryList<NzSiderComponent>;
dir: Direction;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzLayoutComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzLayoutComponent, "nz-layout", ["nzLayout"], {}, {}, ["listOfNzSiderComponent"], ["*"], true, never>;
}
declare class NzSiderTriggerComponent implements OnChanges, OnInit {
nzCollapsed: boolean;
nzReverseArrow: boolean;
nzZeroTrigger: TemplateRef<void> | null;
nzTrigger: TemplateRef<void> | undefined | null;
matchBreakPoint: boolean;
nzCollapsedWidth: number | null;
siderWidth: string | null;
nzBreakpoint: NzBreakpointKey | null;
isZeroTrigger: boolean;
isNormalTrigger: boolean;
updateTriggerType(): void;
ngOnInit(): void;
ngOnChanges(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzSiderTriggerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzSiderTriggerComponent, "[nz-sider-trigger]", ["nzSiderTrigger"], { "nzCollapsed": { "alias": "nzCollapsed"; "required": false; }; "nzReverseArrow": { "alias": "nzReverseArrow"; "required": false; }; "nzZeroTrigger": { "alias": "nzZeroTrigger"; "required": false; }; "nzTrigger": { "alias": "nzTrigger"; "required": false; }; "matchBreakPoint": { "alias": "matchBreakPoint"; "required": false; }; "nzCollapsedWidth": { "alias": "nzCollapsedWidth"; "required": false; }; "siderWidth": { "alias": "siderWidth"; "required": false; }; "nzBreakpoint": { "alias": "nzBreakpoint"; "required": false; }; }, {}, never, never, true, never>;
}
declare class NzLayoutModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzLayoutModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzLayoutModule, never, [typeof NzLayoutComponent, typeof NzHeaderComponent, typeof NzContentComponent, typeof NzFooterComponent, typeof NzSiderComponent, typeof NzSiderTriggerComponent], [typeof NzLayoutComponent, typeof NzHeaderComponent, typeof NzContentComponent, typeof NzFooterComponent, typeof NzSiderComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzLayoutModule>;
}
export { NzContentComponent, NzFooterComponent, NzHeaderComponent, NzLayoutComponent, NzLayoutModule, NzSiderComponent, NzSiderTriggerComponent as ɵNzSiderTriggerComponent };

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

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

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

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

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

@@ -0,0 +1,135 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-layout {
display: flex;
flex: auto;
flex-direction: column;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
background: #f0f2f5;
}
.ant-layout,
.ant-layout * {
box-sizing: border-box;
}
.ant-layout.ant-layout-has-sider {
flex-direction: row;
}
.ant-layout.ant-layout-has-sider > .ant-layout,
.ant-layout.ant-layout-has-sider > .ant-layout-content {
width: 0;
}
.ant-layout-header,
.ant-layout-footer {
flex: 0 0 auto;
}
.ant-layout-header {
height: 64px;
padding: 0 50px;
color: rgba(0, 0, 0, 0.85);
line-height: 64px;
background: #001529;
}
.ant-layout-footer {
padding: 24px 50px;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
background: #f0f2f5;
}
.ant-layout-content {
flex: auto;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
}
.ant-layout-sider {
position: relative;
/* fix firefox can't set width smaller than content on flex item */
min-width: 0;
background: #001529;
transition: all 0.2s;
}
.ant-layout-sider-children {
height: 100%;
margin-top: -0.1px;
padding-top: 0.1px;
}
.ant-layout-sider-children .ant-menu.ant-menu-inline-collapsed {
width: auto;
}
.ant-layout-sider-has-trigger {
padding-bottom: 48px;
}
.ant-layout-sider-right {
order: 1;
}
.ant-layout-sider-trigger {
position: fixed;
bottom: 0;
z-index: 1;
height: 48px;
color: #fff;
line-height: 48px;
text-align: center;
background: #002140;
cursor: pointer;
transition: all 0.2s;
}
.ant-layout-sider-zero-width > * {
overflow: hidden;
}
.ant-layout-sider-zero-width-trigger {
position: absolute;
top: 64px;
right: -36px;
z-index: 1;
width: 36px;
height: 42px;
color: #fff;
font-size: 18px;
line-height: 42px;
text-align: center;
background: #001529;
border-radius: 0 2px 2px 0;
cursor: pointer;
transition: background 0.3s ease;
}
.ant-layout-sider-zero-width-trigger::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
transition: all 0.3s;
content: '';
}
.ant-layout-sider-zero-width-trigger:hover::after {
background: rgba(255, 255, 255, 0.1);
}
.ant-layout-sider-zero-width-trigger-right {
left: -36px;
border-radius: 2px 0 0 2px;
}
.ant-layout-sider-light {
background: #fff;
}
.ant-layout-sider-light .ant-layout-sider-trigger {
color: rgba(0, 0, 0, 0.85);
background: #fff;
}
.ant-layout-sider-light .ant-layout-sider-zero-width-trigger {
color: rgba(0, 0, 0, 0.85);
background: #fff;
}
.ant-layout-rtl {
direction: rtl;
}
nz-content {
display: block;
}
nz-footer {
display: block;
}
nz-header {
display: block;
}

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

@@ -0,0 +1,145 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@layout-prefix-cls: ~'@{ant-prefix}-layout';
@layout-menu-prefix-cls: ~'@{ant-prefix}-menu';
.@{layout-prefix-cls} {
display: flex;
flex: auto;
flex-direction: column;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
background: @layout-body-background;
&,
* {
box-sizing: border-box;
}
&&-has-sider {
flex-direction: row;
> .@{layout-prefix-cls},
> .@{layout-prefix-cls}-content {
width: 0; // https://segmentfault.com/a/1190000019498300
}
}
&-header,
&-footer {
flex: 0 0 auto;
}
&-header {
height: @layout-header-height;
padding: @layout-header-padding;
color: @layout-header-color;
line-height: @layout-header-height;
background: @layout-header-background;
}
&-footer {
padding: @layout-footer-padding;
color: @text-color;
font-size: @font-size-base;
background: @layout-footer-background;
}
&-content {
flex: auto;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
}
&-sider {
position: relative;
/* fix firefox can't set width smaller than content on flex item */
min-width: 0;
background: @layout-sider-background;
transition: all 0.2s;
&-children {
height: 100%;
margin-top: -0.1px;
// Hack for fixing margin collaspe bug
// https://github.com/ant-design/ant-design/issues/7967
// solution from https://stackoverflow.com/a/33132624/3040605
padding-top: 0.1px;
.@{layout-menu-prefix-cls}.@{layout-menu-prefix-cls}-inline-collapsed {
width: auto;
}
}
&-has-trigger {
padding-bottom: @layout-trigger-height;
}
&-right {
order: 1;
}
&-trigger {
position: fixed;
bottom: 0;
z-index: 1;
height: @layout-trigger-height;
color: @layout-trigger-color;
line-height: @layout-trigger-height;
text-align: center;
background: @layout-trigger-background;
cursor: pointer;
transition: all 0.2s;
}
&-zero-width {
> * {
overflow: hidden;
}
&-trigger {
position: absolute;
top: @layout-header-height;
right: -@layout-zero-trigger-width;
z-index: 1;
width: @layout-zero-trigger-width;
height: @layout-zero-trigger-height;
color: @layout-trigger-color;
font-size: (@layout-zero-trigger-width / 2);
line-height: @layout-zero-trigger-height;
text-align: center;
background: @layout-sider-background;
border-radius: 0 @border-radius-base @border-radius-base 0;
cursor: pointer;
transition: background 0.3s ease;
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
transition: all 0.3s;
content: '';
}
&:hover::after {
background: rgba(255, 255, 255, 0.1);
}
&-right {
left: -@layout-zero-trigger-width;
border-radius: @border-radius-base 0 0 @border-radius-base;
}
}
}
}
}
@import './light';
@import './rtl';

View File

@@ -0,0 +1 @@
.ant-layout{display:flex;flex:auto;flex-direction:column;min-height:0;background:#f0f2f5}.ant-layout,.ant-layout *{box-sizing:border-box}.ant-layout.ant-layout-has-sider{flex-direction:row}.ant-layout.ant-layout-has-sider>.ant-layout,.ant-layout.ant-layout-has-sider>.ant-layout-content{width:0}.ant-layout-footer,.ant-layout-header{flex:0 0 auto}.ant-layout-header{height:64px;padding:0 50px;color:rgba(0,0,0,.85);line-height:64px;background:#001529}.ant-layout-footer{padding:24px 50px;color:rgba(0,0,0,.85);font-size:14px;background:#f0f2f5}.ant-layout-content{flex:auto;min-height:0}.ant-layout-sider{position:relative;min-width:0;background:#001529;transition:all .2s}.ant-layout-sider-children{height:100%;margin-top:-.1px;padding-top:.1px}.ant-layout-sider-children .ant-menu.ant-menu-inline-collapsed{width:auto}.ant-layout-sider-has-trigger{padding-bottom:48px}.ant-layout-sider-right{order:1}.ant-layout-sider-trigger{position:fixed;bottom:0;z-index:1;height:48px;color:#fff;line-height:48px;text-align:center;background:#002140;cursor:pointer;transition:all .2s}.ant-layout-sider-zero-width>*{overflow:hidden}.ant-layout-sider-zero-width-trigger{position:absolute;top:64px;right:-36px;z-index:1;width:36px;height:42px;color:#fff;font-size:18px;line-height:42px;text-align:center;background:#001529;border-radius:0 2px 2px 0;cursor:pointer;transition:background .3s ease}.ant-layout-sider-zero-width-trigger::after{position:absolute;top:0;right:0;bottom:0;left:0;background:0 0;transition:all .3s;content:''}.ant-layout-sider-zero-width-trigger:hover::after{background:rgba(255,255,255,.1)}.ant-layout-sider-zero-width-trigger-right{left:-36px;border-radius:2px 0 0 2px}.ant-layout-sider-light{background:#fff}.ant-layout-sider-light .ant-layout-sider-trigger{color:rgba(0,0,0,.85);background:#fff}.ant-layout-sider-light .ant-layout-sider-zero-width-trigger{color:rgba(0,0,0,.85);background:#fff}.ant-layout-rtl{direction:rtl}nz-content{display:block}nz-footer{display:block}nz-header{display:block}

11
node_modules/ng-zorro-antd/layout/style/light.less generated vendored Normal file
View File

@@ -0,0 +1,11 @@
.@{layout-prefix-cls}-sider-light {
background: @layout-sider-background-light;
.@{layout-prefix-cls}-sider-trigger {
color: @layout-trigger-color-light;
background: @layout-trigger-background-light;
}
.@{layout-prefix-cls}-sider-zero-width-trigger {
color: @layout-trigger-color-light;
background: @layout-trigger-background-light;
}
}

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

@@ -0,0 +1,11 @@
nz-content {
display: block;
}
nz-footer {
display: block;
}
nz-header {
display: block;
}

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

@@ -0,0 +1,10 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@layout-prefix-cls: ~'@{ant-prefix}-layout';
.@{layout-prefix-cls} {
&-rtl {
direction: rtl;
}
}