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

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

@@ -0,0 +1,92 @@
import { Direction } from '@angular/cdk/bidi';
import * as i0 from '@angular/core';
import { OnInit, OnChanges, ElementRef, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { NzConfigKey } from 'ng-zorro-antd/core/config';
import { NgClassType, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
/**
* 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 NzRateComponent implements OnInit, ControlValueAccessor, OnChanges {
readonly _nzModuleName: NzConfigKey;
private readonly ngZone;
private readonly renderer;
private readonly cdr;
private readonly directionality;
private readonly destroyRef;
ulElement: ElementRef<HTMLUListElement>;
nzAllowClear: boolean;
nzAllowHalf: boolean;
nzDisabled: boolean;
nzAutoFocus: boolean;
nzCharacter: TemplateRef<{
$implicit: number;
}>;
nzCount: number;
nzTooltips: string[];
readonly nzOnBlur: EventEmitter<FocusEvent>;
readonly nzOnFocus: EventEmitter<FocusEvent>;
readonly nzOnHoverChange: EventEmitter<number>;
readonly nzOnKeyDown: EventEmitter<KeyboardEvent>;
classMap: NgClassType;
starArray: number[];
starStyleArray: NgClassType[];
dir: Direction;
private hasHalf;
private hoverValue;
private isFocused;
private _value;
private isNzDisableFirstChange;
get nzValue(): number;
set nzValue(input: number);
constructor();
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
onItemClick(index: number, isHalf: boolean): void;
onItemHover(index: number, isHalf: boolean): void;
onRateLeave(): void;
focus(): void;
blur(): void;
onKeyDown(e: KeyboardEvent): void;
private updateStarArray;
private updateStarStyle;
writeValue(value: number | null): void;
setDisabledState(isDisabled: boolean): void;
registerOnChange(fn: OnChangeType): void;
registerOnTouched(fn: OnTouchedType): void;
onChange: (value: number) => void;
onTouched: () => void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzRateComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzRateComponent, "nz-rate", ["nzRate"], { "nzAllowClear": { "alias": "nzAllowClear"; "required": false; }; "nzAllowHalf": { "alias": "nzAllowHalf"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzAutoFocus": { "alias": "nzAutoFocus"; "required": false; }; "nzCharacter": { "alias": "nzCharacter"; "required": false; }; "nzCount": { "alias": "nzCount"; "required": false; }; "nzTooltips": { "alias": "nzTooltips"; "required": false; }; }, { "nzOnBlur": "nzOnBlur"; "nzOnFocus": "nzOnFocus"; "nzOnHoverChange": "nzOnHoverChange"; "nzOnKeyDown": "nzOnKeyDown"; }, never, never, true, never>;
static ngAcceptInputType_nzAllowClear: unknown;
static ngAcceptInputType_nzAllowHalf: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzAutoFocus: unknown;
static ngAcceptInputType_nzCount: unknown;
}
declare class NzRateItemComponent {
character: TemplateRef<{
$implicit: number;
}>;
index: number;
allowHalf: boolean;
readonly itemHover: EventEmitter<boolean>;
readonly itemClick: EventEmitter<boolean>;
hoverRate(isHalf: boolean): void;
clickRate(isHalf: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzRateItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzRateItemComponent, "[nz-rate-item]", ["nzRateItem"], { "character": { "alias": "character"; "required": false; }; "index": { "alias": "index"; "required": false; }; "allowHalf": { "alias": "allowHalf"; "required": false; }; }, { "itemHover": "itemHover"; "itemClick": "itemClick"; }, never, never, true, never>;
static ngAcceptInputType_allowHalf: unknown;
}
declare class NzRateModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzRateModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzRateModule, never, [typeof NzRateComponent, typeof NzRateItemComponent], [typeof NzRateComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzRateModule>;
}
export { NzRateComponent, NzRateItemComponent, NzRateModule };

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

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

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

@@ -0,0 +1,3 @@
@import './index.less';
// style dependencies
@import '../../tooltip/style/entry.less';

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

@@ -0,0 +1,310 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
.ant-rate {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
font-feature-settings: 'tnum';
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 20px;
line-height: unset;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star > div:hover {
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div {
transition: all 0.3s, outline 0s;
}
.ant-rate-star > div:hover {
transform: scale(1.1);
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
transition: all 0.3s;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 14px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
.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;
}

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

@@ -0,0 +1,91 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@rate-prefix-cls: ~'@{ant-prefix}-rate';
.@{rate-prefix-cls} {
.reset-component();
display: inline-block;
margin: 0;
padding: 0;
color: @rate-star-color;
font-size: @rate-star-size;
line-height: unset;
list-style: none;
outline: none;
&-disabled &-star {
cursor: default;
> div:hover {
transform: scale(1);
}
}
&-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
&:not(:last-child) {
margin-right: 8px;
}
> div {
transition: all 0.3s, outline 0s;
&:hover {
transform: @rate-star-hover-scale;
}
&:focus {
outline: 0;
}
&:focus-visible {
outline: 1px dashed @rate-star-color;
transform: @rate-star-hover-scale;
}
}
&-first,
&-second {
color: @rate-star-bg;
transition: all 0.3s;
user-select: none;
.@{iconfont-css-prefix} {
vertical-align: middle;
}
}
&-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
&-half &-first,
&-half &-second {
opacity: 1;
}
&-half &-first,
&-full &-second {
color: inherit;
}
}
&-text {
display: inline-block;
margin: 0 8px;
font-size: @font-size-base;
}
}
@import './rtl';

1
node_modules/ng-zorro-antd/rate/style/index.min.css generated vendored Normal file

File diff suppressed because one or more lines are too long

2
node_modules/ng-zorro-antd/rate/style/index.tsx generated vendored Normal file
View File

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

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

@@ -0,0 +1,21 @@
.@{rate-prefix-cls} {
&-rtl {
direction: rtl;
}
&-star {
&:not(:last-child) {
.@{rate-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
}
&-first {
.@{rate-prefix-cls}-rtl & {
right: 0;
left: auto;
}
}
}
}