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

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

@@ -0,0 +1,103 @@
import * as _angular_core from '@angular/core';
import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
import { AnimationEvent } from '@angular/animations';
import { ControlValueAccessor } from '@angular/forms';
import { ThumbAnimationProps } from 'ng-zorro-antd/core/animation';
import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
import { NzSizeLDSType, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
declare class NzSegmentedItemComponent implements OnInit {
private readonly service;
private readonly elementRef;
private readonly destroyRef;
private readonly templateRef;
readonly nzValue: _angular_core.InputSignal<string | number>;
readonly nzIcon: _angular_core.InputSignal<string | undefined>;
readonly nzDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly hasLabel: _angular_core.Signal<boolean>;
protected readonly name: _angular_core.Signal<string | null>;
protected readonly isChecked: _angular_core.WritableSignal<boolean>;
protected readonly parentDisabled: _angular_core.Signal<boolean>;
readonly finalDisabled: _angular_core.Signal<boolean>;
ngOnInit(): void;
handleClick(): void;
handleKeydown(event: KeyboardEvent): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzSegmentedItemComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzSegmentedItemComponent, "label[nz-segmented-item],label[nzSegmentedItem]", ["nzSegmentedItem"], { "nzValue": { "alias": "nzValue"; "required": true; "isSignal": true; }; "nzIcon": { "alias": "nzIcon"; "required": false; "isSignal": true; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
}
/**
* 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
*/
type NzSegmentedOption = {
value: string | number;
disabled?: boolean;
} & (NzSegmentedWithLabel | NzSegmentedWithIcon);
interface NzSegmentedWithLabel {
label: string;
icon?: string;
}
interface NzSegmentedWithIcon {
icon: string;
label?: string;
}
type NzSegmentedOptions = Array<NzSegmentedOption | string | number>;
declare function normalizeOptions(unnormalized: NzSegmentedOptions): NzSegmentedOption[];
declare class NzSegmentedComponent implements OnChanges, ControlValueAccessor {
readonly _nzModuleName: NzConfigKey;
readonly nzConfigService: NzConfigService;
private readonly cdr;
private readonly service;
private readonly injector;
protected readonly dir: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
nzBlock: boolean;
nzDisabled: boolean;
nzOptions: NzSegmentedOptions;
nzVertical: boolean;
nzShape: 'default' | 'round';
nzSize: NzSizeLDSType;
/**
* @description set the `name` attribute of the segmented item native `input[type="radio"]`
* @since 20.3.0
*/
nzName?: string;
readonly nzValueChange: EventEmitter<string | number>;
private viewItemCmps;
private contentItemCmps;
private renderedItemCmps;
private isDisabledFirstChange;
protected value?: number | string;
protected animationState: null | {
value: string;
params: ThumbAnimationProps;
};
protected normalizedOptions: NzSegmentedOption[];
protected onChange: OnChangeType;
protected onTouched: OnTouchedType;
constructor();
ngOnChanges(changes: SimpleChanges): void;
handleThumbAnimationDone(event: AnimationEvent): void;
private onOffset;
private onKeyDown;
writeValue(value: number | string): void;
registerOnChange(fn: OnChangeType): void;
registerOnTouched(fn: OnTouchedType): void;
setDisabledState(disabled: boolean): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzSegmentedComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzSegmentedComponent, "nz-segmented", ["nzSegmented"], { "nzBlock": { "alias": "nzBlock"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzOptions": { "alias": "nzOptions"; "required": false; }; "nzVertical": { "alias": "nzVertical"; "required": false; }; "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzName": { "alias": "nzName"; "required": false; }; }, { "nzValueChange": "nzValueChange"; }, ["contentItemCmps"], ["*"], true, never>;
static ngAcceptInputType_nzBlock: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzVertical: unknown;
}
declare class NzSegmentedModule {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzSegmentedModule, never>;
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<NzSegmentedModule, never, [typeof NzSegmentedComponent, typeof NzSegmentedItemComponent], [typeof NzSegmentedComponent, typeof NzSegmentedItemComponent]>;
static ɵinj: _angular_core.ɵɵInjectorDeclaration<NzSegmentedModule>;
}
export { NzSegmentedComponent, NzSegmentedItemComponent, NzSegmentedModule, normalizeOptions };
export type { NzSegmentedOption, NzSegmentedOptions, NzSegmentedWithIcon, NzSegmentedWithLabel };

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

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

View File

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

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

@@ -0,0 +1,150 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.segmented-disabled-item,
.segmented-disabled-item:hover,
.segmented-disabled-item:focus {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
.segmented-item-selected {
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
}
.segmented-text-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
}
.ant-segmented {
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';
display: inline-block;
padding: 2px;
color: rgba(0, 0, 0, 0.65);
background-color: rgba(0, 0, 0, 0.04);
border-radius: 2px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-segmented-group {
position: relative;
display: flex;
align-items: stretch;
justify-items: flex-start;
width: 100%;
}
.ant-segmented-vertical .ant-segmented-group {
flex-direction: column;
}
.ant-segmented-vertical .ant-segmented-thumb {
width: 100%;
height: 0;
}
.ant-segmented-vertical .ant-segmented-thumb-motion-appear-active {
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
will-change: transform, width, height;
}
.ant-segmented-shape-round {
border-radius: 9999px;
}
.ant-segmented-shape-round .ant-segmented-item {
border-radius: 9999px;
}
.ant-segmented-shape-round .ant-segmented-thumb {
border-radius: 9999px;
}
.ant-segmented.ant-segmented-block {
display: flex;
}
.ant-segmented.ant-segmented-block .ant-segmented-item {
flex: 1;
min-width: 0;
}
.ant-segmented:not(.ant-segmented-disabled):hover,
.ant-segmented:not(.ant-segmented-disabled):focus {
background-color: rgba(0, 0, 0, 0.06);
}
.ant-segmented-item {
position: relative;
text-align: center;
cursor: pointer;
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-segmented-item-selected {
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
color: #262626;
}
.ant-segmented-item:hover,
.ant-segmented-item:focus {
color: #262626;
}
.ant-segmented-item-label {
min-height: 28px;
padding: 0 11px;
line-height: 28px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
}
.ant-segmented-item-icon + * {
margin-left: 6px;
}
.ant-segmented-item-input {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
.ant-segmented.ant-segmented-lg .ant-segmented-item-label {
min-height: 36px;
padding: 0 11px;
font-size: 16px;
line-height: 36px;
}
.ant-segmented.ant-segmented-sm .ant-segmented-item-label {
min-height: 20px;
padding: 0 7px;
line-height: 20px;
}
.ant-segmented-item-disabled,
.ant-segmented-item-disabled:hover,
.ant-segmented-item-disabled:focus {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
.ant-segmented-thumb {
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
padding: 4px 0;
}
.ant-segmented-thumb-motion-appear-active {
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
will-change: transform, width;
}
.ant-segmented.ant-segmented-rtl {
direction: rtl;
}
.ant-segmented.ant-segmented-rtl .ant-segmented-item-icon {
margin-right: 0;
margin-left: 6px;
}

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

@@ -0,0 +1,155 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './mixins.less';
@segmented-prefix-cls: ~'@{ant-prefix}-segmented';
@segmented-container-padding: 2px;
.@{segmented-prefix-cls} {
.reset-component();
display: inline-block;
padding: @segmented-container-padding;
color: @segmented-label-color;
background-color: @segmented-bg;
border-radius: @border-radius-base;
transition: all 0.3s @ease-in-out;
&-group {
position: relative;
display: flex;
align-items: stretch;
justify-items: flex-start;
width: 100%;
}
&-vertical {
.@{segmented-prefix-cls}-group {
flex-direction: column;
}
.@{segmented-prefix-cls}-thumb {
width: 100%;
height: 0;
}
.@{segmented-prefix-cls}-thumb-motion-appear-active {
transition:
transform 0.3s @ease-in-out,
width 0.3s @ease-in-out,
height 0.3s @ease-in-out;
will-change: transform, width, height;
}
}
&-shape-round {
border-radius: 9999px;
.@{segmented-prefix-cls}-item {
border-radius: 9999px;
}
.@{segmented-prefix-cls}-thumb {
border-radius: 9999px;
}
}
// block styles
&&-block {
display: flex;
}
&&-block &-item {
flex: 1;
min-width: 0;
}
// hover/focus styles
&:not(&-disabled) {
&:hover,
&:focus {
background-color: @segmented-hover-bg;
}
}
// item styles
&-item {
position: relative;
text-align: center;
cursor: pointer;
transition: color 0.3s @ease-in-out;
&-selected {
.segmented-item-selected();
color: @segmented-label-hover-color;
}
&:hover,
&:focus {
color: @segmented-label-hover-color;
}
&-label {
min-height: @input-height-base - @segmented-container-padding * 2;
padding: 0 @input-padding-horizontal-base;
line-height: @input-height-base - @segmented-container-padding * 2;
.segmented-text-ellipsis();
}
// syntactic sugar to add `icon` for Segmented Item
&-icon + * {
margin-left: (@margin-sm / 2);
}
&-input {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
}
// size styles
&&-lg &-item-label {
min-height: @input-height-lg - @segmented-container-padding * 2;
padding: 0 @input-padding-horizontal-lg;
font-size: @font-size-lg;
line-height: @input-height-lg - @segmented-container-padding * 2;
}
&&-sm &-item-label {
min-height: @input-height-sm - @segmented-container-padding * 2;
padding: 0 @input-padding-horizontal-sm;
line-height: @input-height-sm - @segmented-container-padding * 2;
}
// disabled styles
&-item-disabled {
.segmented-disabled-item();
}
// thumb styles
&-thumb {
.segmented-item-selected();
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
padding: 4px 0;
}
// transition effect when `appear-active`
&-thumb-motion-appear-active {
transition:
transform 0.3s @ease-in-out,
width 0.3s @ease-in-out;
will-change: transform, width;
}
}
@import './rtl';

View File

@@ -0,0 +1 @@
.segmented-disabled-item,.segmented-disabled-item:focus,.segmented-disabled-item:hover{color:rgba(0,0,0,.25);cursor:not-allowed}.segmented-item-selected{background-color:#fff;border-radius:2px;box-shadow:0 2px 8px -2px rgba(0,0,0,.05),0 1px 4px -1px rgba(0,0,0,.07),0 0 1px 0 rgba(0,0,0,.08)}.segmented-text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-segmented{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';display:inline-block;padding:2px;color:rgba(0,0,0,.65);background-color:rgba(0,0,0,.04);border-radius:2px;transition:all .3s cubic-bezier(.645, .045, .355, 1)}.ant-segmented-group{position:relative;display:flex;align-items:stretch;justify-items:flex-start;width:100%}.ant-segmented-vertical .ant-segmented-group{flex-direction:column}.ant-segmented-vertical .ant-segmented-thumb{width:100%;height:0}.ant-segmented-vertical .ant-segmented-thumb-motion-appear-active{transition:transform .3s cubic-bezier(.645, .045, .355, 1),width .3s cubic-bezier(.645, .045, .355, 1),height .3s cubic-bezier(.645, .045, .355, 1);will-change:transform,width,height}.ant-segmented-shape-round{border-radius:9999px}.ant-segmented-shape-round .ant-segmented-item{border-radius:9999px}.ant-segmented-shape-round .ant-segmented-thumb{border-radius:9999px}.ant-segmented.ant-segmented-block{display:flex}.ant-segmented.ant-segmented-block .ant-segmented-item{flex:1;min-width:0}.ant-segmented:not(.ant-segmented-disabled):focus,.ant-segmented:not(.ant-segmented-disabled):hover{background-color:rgba(0,0,0,.06)}.ant-segmented-item{position:relative;text-align:center;cursor:pointer;transition:color .3s cubic-bezier(.645, .045, .355, 1)}.ant-segmented-item-selected{background-color:#fff;border-radius:2px;box-shadow:0 2px 8px -2px rgba(0,0,0,.05),0 1px 4px -1px rgba(0,0,0,.07),0 0 1px 0 rgba(0,0,0,.08);color:#262626}.ant-segmented-item:focus,.ant-segmented-item:hover{color:#262626}.ant-segmented-item-label{min-height:28px;padding:0 11px;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-segmented-item-icon+*{margin-left:6px}.ant-segmented-item-input{position:absolute;top:0;left:0;width:0;height:0;opacity:0;pointer-events:none}.ant-segmented.ant-segmented-lg .ant-segmented-item-label{min-height:36px;padding:0 11px;font-size:16px;line-height:36px}.ant-segmented.ant-segmented-sm .ant-segmented-item-label{min-height:20px;padding:0 7px;line-height:20px}.ant-segmented-item-disabled,.ant-segmented-item-disabled:focus,.ant-segmented-item-disabled:hover{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-segmented-thumb{background-color:#fff;border-radius:2px;box-shadow:0 2px 8px -2px rgba(0,0,0,.05),0 1px 4px -1px rgba(0,0,0,.07),0 0 1px 0 rgba(0,0,0,.08);position:absolute;top:0;left:0;width:0;height:100%;padding:4px 0}.ant-segmented-thumb-motion-appear-active{transition:transform .3s cubic-bezier(.645, .045, .355, 1),width .3s cubic-bezier(.645, .045, .355, 1);will-change:transform,width}.ant-segmented.ant-segmented-rtl{direction:rtl}.ant-segmented.ant-segmented-rtl .ant-segmented-item-icon{margin-right:0;margin-left:6px}

24
node_modules/ng-zorro-antd/segmented/style/mixins.less generated vendored Normal file
View File

@@ -0,0 +1,24 @@
// mixins
.segmented-disabled-item {
&,
&:hover,
&:focus {
color: @disabled-color;
cursor: not-allowed;
}
}
.segmented-item-selected {
background-color: @segmented-selected-bg;
border-radius: @border-radius-base;
box-shadow: 0 2px 8px -2px fade(@black, 5%), 0 1px 4px -1px fade(@black, 7%),
0 0 1px 0 fade(@black, 8%);
}
.segmented-text-ellipsis {
overflow: hidden;
// handle text ellipsis
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
}

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

@@ -0,0 +1,15 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@segmented-prefix-cls: ~'@{ant-prefix}-segmented';
.@{segmented-prefix-cls} {
&&-rtl {
direction: rtl;
}
&&-rtl &-item-icon {
margin-right: 0;
margin-left: 6px;
}
}