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

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

@@ -0,0 +1,178 @@
import * as i0 from '@angular/core';
import { OnChanges, OnInit, AfterContentInit, TemplateRef, SimpleChanges, SimpleChange } from '@angular/core';
import { AbstractControl, NgModel, FormControlName, FormControlDirective } from '@angular/forms';
import { NzI18nService } from 'ng-zorro-antd/i18n';
import * as ng_zorro_antd_form from 'ng-zorro-antd/form';
import { ThemeType } from '@ant-design/icons-angular';
import { InputObservable, NzTSType } from 'ng-zorro-antd/core/types';
import { Direction } from '@angular/cdk/bidi';
import { Observable } from 'rxjs';
import { NzConfigKey } from 'ng-zorro-antd/core/config';
import * as i7 from 'ng-zorro-antd/grid';
type NzFormControlStatusType = 'success' | 'error' | 'warning' | 'validating' | '';
/** should add nz-row directive to host, track https://github.com/angular/angular/issues/8785 **/
declare class NzFormItemComponent {
private cdr;
status: NzFormControlStatusType;
hasFeedback: boolean;
withHelpClass: boolean;
setWithHelpViaTips(value: boolean): void;
setStatus(status: NzFormControlStatusType): void;
setHasFeedback(hasFeedback: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFormItemComponent, "nz-form-item", ["nzFormItem"], {}, {}, 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
*/
declare class NzFormControlComponent implements OnChanges, OnInit, AfterContentInit {
private cdr;
i18n: NzI18nService;
private nzFormStatusService;
private destroyRef;
private _hasFeedback;
private validateChanges;
private validateString;
private localeId;
private autoErrorTip?;
private get disableAutoTips();
status: NzFormControlStatusType;
validateControl: AbstractControl | NgModel | null;
innerTip: string | TemplateRef<{
$implicit: AbstractControl | NgModel;
}> | null;
defaultValidateControl?: FormControlName | FormControlDirective;
nzSuccessTip?: string | TemplateRef<{
$implicit: AbstractControl | NgModel;
}>;
nzWarningTip?: string | TemplateRef<{
$implicit: AbstractControl | NgModel;
}>;
nzErrorTip?: string | TemplateRef<{
$implicit: AbstractControl | NgModel;
}>;
nzValidatingTip?: string | TemplateRef<{
$implicit: AbstractControl | NgModel;
}>;
nzExtra?: string | TemplateRef<void>;
nzAutoTips: Record<string, Record<string, string>>;
nzDisableAutoTips?: boolean;
set nzHasFeedback(value: boolean);
get nzHasFeedback(): boolean;
set nzValidateStatus(value: string | AbstractControl | FormControlName | NgModel);
private watchControl;
private setStatus;
private getControlStatus;
private validateControlStatus;
private getInnerTip;
private updateAutoErrorTip;
private subscribeAutoTips;
private nzFormItemComponent;
private nzFormDirective;
constructor();
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormControlComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFormControlComponent, "nz-form-control", ["nzFormControl"], { "nzSuccessTip": { "alias": "nzSuccessTip"; "required": false; }; "nzWarningTip": { "alias": "nzWarningTip"; "required": false; }; "nzErrorTip": { "alias": "nzErrorTip"; "required": false; }; "nzValidatingTip": { "alias": "nzValidatingTip"; "required": false; }; "nzExtra": { "alias": "nzExtra"; "required": false; }; "nzAutoTips": { "alias": "nzAutoTips"; "required": false; }; "nzDisableAutoTips": { "alias": "nzDisableAutoTips"; "required": false; }; "nzHasFeedback": { "alias": "nzHasFeedback"; "required": false; }; "nzValidateStatus": { "alias": "nzValidateStatus"; "required": false; }; }, {}, ["defaultValidateControl"], ["*"], true, never>;
static ngAcceptInputType_nzDisableAutoTips: unknown;
static ngAcceptInputType_nzHasFeedback: 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
*/
type NzRequiredMark = boolean | 'optional' | TemplateRef<{
$implicit: TemplateRef<void>;
required: boolean;
}>;
type NzFormLayoutType = 'horizontal' | 'vertical' | 'inline';
type NzLabelAlignType = 'left' | 'right';
declare const DefaultTooltipIcon: {
readonly type: "question-circle";
readonly theme: "outline";
};
declare class NzFormDirective implements OnChanges, InputObservable {
private destroyRef;
private directionality;
readonly _nzModuleName: NzConfigKey;
nzLayout: NzFormLayoutType;
nzNoColon: boolean;
nzAutoTips: Record<string, Record<string, string>>;
nzDisableAutoTips: boolean;
nzTooltipIcon: string | {
type: string;
theme: ThemeType;
};
nzLabelAlign: NzLabelAlignType;
nzLabelWrap: boolean;
readonly nzRequiredMark: i0.InputSignal<NzRequiredMark>;
dir: Direction;
private inputChanges$;
getInputObservable<K extends keyof this>(changeType: K): Observable<SimpleChange>;
constructor();
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzFormDirective, "[nz-form]", ["nzForm"], { "nzLayout": { "alias": "nzLayout"; "required": false; }; "nzNoColon": { "alias": "nzNoColon"; "required": false; }; "nzAutoTips": { "alias": "nzAutoTips"; "required": false; }; "nzDisableAutoTips": { "alias": "nzDisableAutoTips"; "required": false; }; "nzTooltipIcon": { "alias": "nzTooltipIcon"; "required": false; }; "nzLabelAlign": { "alias": "nzLabelAlign"; "required": false; }; "nzLabelWrap": { "alias": "nzLabelWrap"; "required": false; }; "nzRequiredMark": { "alias": "nzRequiredMark"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzNoColon: unknown;
static ngAcceptInputType_nzDisableAutoTips: unknown;
static ngAcceptInputType_nzLabelWrap: unknown;
}
interface NzFormTooltipIcon {
type: NzTSType;
theme: ThemeType;
}
declare class NzFormLabelComponent {
private cdr;
nzFor?: string;
nzRequired: boolean;
set nzNoColon(value: boolean);
get nzNoColon(): boolean;
private noColon;
nzTooltipTitle?: NzTSType;
set nzTooltipIcon(value: string | NzFormTooltipIcon);
get tooltipIcon(): NzFormTooltipIcon;
private _tooltipIcon;
set nzLabelAlign(value: NzLabelAlignType);
get nzLabelAlign(): NzLabelAlignType;
private labelAlign;
set nzLabelWrap(value: boolean);
get nzLabelWrap(): boolean;
private labelWrap;
private nzFormDirective;
protected readonly nzRequiredMark: i0.InputSignal<ng_zorro_antd_form.NzRequiredMark> | undefined;
protected readonly isNzRequiredMarkTemplate: i0.Signal<boolean>;
constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormLabelComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFormLabelComponent, "nz-form-label", ["nzFormLabel"], { "nzFor": { "alias": "nzFor"; "required": false; }; "nzRequired": { "alias": "nzRequired"; "required": false; }; "nzNoColon": { "alias": "nzNoColon"; "required": false; }; "nzTooltipTitle": { "alias": "nzTooltipTitle"; "required": false; }; "nzTooltipIcon": { "alias": "nzTooltipIcon"; "required": false; }; "nzLabelAlign": { "alias": "nzLabelAlign"; "required": false; }; "nzLabelWrap": { "alias": "nzLabelWrap"; "required": false; }; }, {}, never, ["*"], true, never>;
static ngAcceptInputType_nzRequired: unknown;
static ngAcceptInputType_nzNoColon: unknown;
static ngAcceptInputType_nzLabelWrap: unknown;
}
declare class NzFormSplitComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormSplitComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFormSplitComponent, "nz-form-split", ["nzFormSplit"], {}, {}, never, ["*"], true, never>;
}
declare class NzFormTextComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormTextComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFormTextComponent, "nz-form-text", ["nzFormText"], {}, {}, never, ["*"], true, never>;
}
declare class NzFormModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzFormModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzFormModule, never, [typeof NzFormDirective, typeof NzFormItemComponent, typeof NzFormLabelComponent, typeof NzFormControlComponent, typeof NzFormTextComponent, typeof NzFormSplitComponent], [typeof i7.NzGridModule, typeof NzFormDirective, typeof NzFormItemComponent, typeof NzFormLabelComponent, typeof NzFormControlComponent, typeof NzFormTextComponent, typeof NzFormSplitComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzFormModule>;
}
export { DefaultTooltipIcon, NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent, NzFormModule, NzFormSplitComponent, NzFormTextComponent };
export type { NzFormControlStatusType, NzFormLayoutType, NzFormTooltipIcon, NzLabelAlignType, NzRequiredMark };

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

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

16
node_modules/ng-zorro-antd/form/style/components.less generated vendored Normal file
View File

@@ -0,0 +1,16 @@
@import (reference) '../../style/themes/index';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
// ================================================================
// = Children Component =
// ================================================================
// FIXME: useless, remove in v5
.@{form-item-prefix-cls} {
.@{ant-prefix}-input-number {
+ .@{form-prefix-cls}-text {
margin-left: 8px;
}
}
}

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

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

22
node_modules/ng-zorro-antd/form/style/horizontal.less generated vendored Normal file
View File

@@ -0,0 +1,22 @@
@import (reference) '../../style/themes/index';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
.@{form-prefix-cls}-horizontal {
.@{form-item-prefix-cls}-label {
flex-grow: 0;
}
.@{form-item-prefix-cls}-control {
flex: 1 1 0;
// https://github.com/ant-design/ant-design/issues/32777
// https://github.com/ant-design/ant-design/issues/33773
min-width: 0;
}
// https://github.com/ant-design/ant-design/issues/32980
// https://github.com/ant-design/ant-design/issues/34903
.@{form-item-prefix-cls}-label[class$='-24'] + .@{form-item-prefix-cls}-control,
.@{form-item-prefix-cls}-label[class*='-24 '] + .@{form-item-prefix-cls}-control {
min-width: unset;
}
}

5758
node_modules/ng-zorro-antd/form/style/index.css generated vendored Normal file

File diff suppressed because it is too large Load Diff

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

@@ -0,0 +1,338 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../input/style/mixin';
@import '../../button/style/mixin';
@import '../../grid/style/mixin';
@import './components';
@import './inline';
@import './horizontal';
@import './vertical';
@import './status';
@import './mixin';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
@form-font-height: ceil(@font-size-base * @line-height-base);
.@{form-prefix-cls} {
.reset-component();
.reset-form();
.@{form-prefix-cls}-text {
display: inline-block;
padding-right: 8px;
}
// ================================================================
// = Size =
// ================================================================
.formSize(@input-height) {
.@{form-item-prefix-cls}-label > label {
height: @input-height;
}
.@{form-item-prefix-cls}-control-input {
min-height: @input-height;
}
}
&-small {
.formSize(@input-height-sm);
}
&-large {
.formSize(@input-height-lg);
}
}
.explainAndExtraDistance(@num) when (@num >= 0) {
padding-top: floor(@num);
}
.explainAndExtraDistance(@num) when (@num < 0) {
margin-top: ceil(@num);
margin-bottom: ceil(@num);
}
// ================================================================
// = Item =
// ================================================================
.@{form-item-prefix-cls} {
.reset-component();
margin-bottom: @form-item-margin-bottom;
vertical-align: top;
&-with-help {
transition: none;
}
&-hidden,
&-hidden.@{ant-prefix}-row {
// https://github.com/ant-design/ant-design/issues/26141
display: none;
}
// ==============================================================
// = Label =
// ==============================================================
&-label {
display: inline-block;
flex-grow: 0;
overflow: hidden;
white-space: nowrap;
text-align: right;
vertical-align: middle;
&-left {
text-align: left;
}
&-wrap {
overflow: unset;
line-height: (@line-height-base - 0.25em);
white-space: unset;
}
> label {
position: relative;
display: inline-flex;
align-items: center;
max-width: 100%;
height: @form-item-label-height;
color: @label-color;
font-size: @form-item-label-font-size;
> .@{iconfont-css-prefix} {
font-size: @form-item-label-font-size;
vertical-align: top;
}
// Required mark
&.@{form-item-prefix-cls}-required:not(.@{form-item-prefix-cls}-required-mark-optional):not(
.@{form-item-prefix-cls}-required-mark-hidden
)::before {
display: inline-block;
margin-right: 4px;
color: @label-required-color;
font-size: @form-item-label-font-size;
font-family: SimSun, sans-serif;
line-height: 1;
content: '*';
.@{form-prefix-cls}-hide-required-mark & {
display: none;
}
}
// Optional mark
.@{form-item-prefix-cls}-optional {
display: inline-block;
margin-left: @margin-xss;
color: @text-color-secondary;
.@{form-prefix-cls}-hide-required-mark & {
display: none;
}
}
// Optional mark
.@{form-item-prefix-cls}-tooltip {
color: @text-color-secondary;
cursor: help;
writing-mode: horizontal-tb;
margin-inline-start: @margin-xss;
}
&::after {
& when (@form-item-trailing-colon=true) {
content: ':';
}
& when not (@form-item-trailing-colon=true) {
content: ' ';
}
position: relative;
top: -0.5px;
margin: 0 @form-item-label-colon-margin-right 0 @form-item-label-colon-margin-left;
}
&.@{form-item-prefix-cls}-no-colon::after {
content: ' ';
}
}
}
// ==============================================================
// = Input =
// ==============================================================
&-control {
display: flex;
flex-direction: column;
flex-grow: 1;
&:first-child:not([class^=~"'@{ant-prefix}-col-'"]):not([class*=~"' @{ant-prefix}-col-'"]) {
width: 100%;
}
}
&-control-input {
position: relative;
display: flex;
align-items: center;
min-height: @input-height-base;
&-content {
flex: auto;
max-width: 100%;
}
}
// ==============================================================
// = Explain =
// ==============================================================
&-explain,
&-extra {
clear: both;
color: @text-color-secondary;
font-size: @font-size-base;
line-height: @line-height-base;
transition: color 0.3s @ease-out; // sync input color transition
.explainAndExtraDistance((@form-item-margin-bottom - @form-font-height) / 2);
}
&-explain-connected {
width: 100%;
}
&-extra {
min-height: @form-item-margin-bottom;
}
&-with-help &-explain {
height: auto;
// min-height: @form-item-margin-bottom;
opacity: 1;
}
// ==============================================================
// = Feedback Icon =
// ==============================================================
&-feedback-icon {
font-size: @font-size-base;
text-align: center;
visibility: visible;
animation: zoomIn 0.3s @ease-out-back;
pointer-events: none;
&-success {
color: @success-color;
}
&-error {
color: @error-color;
}
&-warning {
color: @warning-color;
}
&-validating {
color: @primary-color;
}
}
}
// >>>>>>>>>> Motion <<<<<<<<<<
// Explain holder
.@{ant-prefix}-show-help {
transition: opacity @animation-duration-slow @ease-in-out;
&-appear,
&-enter {
opacity: 0;
&-active {
opacity: 1;
}
}
&-leave {
opacity: 1;
&-active {
opacity: 0;
}
}
}
// Explain
.@{ant-prefix}-show-help-item {
overflow: hidden;
transition:
height @animation-duration-slow @ease-in-out,
opacity @animation-duration-slow @ease-in-out,
transform @animation-duration-slow @ease-in-out !important;
&-appear,
&-enter {
transform: translateY(-5px);
opacity: 0;
&-active {
transform: translateY(0);
opacity: 1;
}
}
&-leave {
transition:
height @animation-duration-base @ease-in-out,
opacity @animation-duration-base @ease-in-out,
transform @animation-duration-base @ease-in-out !important;
}
&-leave-active {
transform: translateY(-5px);
}
}
// need there different zoom animation
// otherwise won't trigger anim
@keyframes diffZoomIn1 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes diffZoomIn2 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes diffZoomIn3 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@import './rtl';

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

File diff suppressed because one or more lines are too long

38
node_modules/ng-zorro-antd/form/style/inline.less generated vendored Normal file
View File

@@ -0,0 +1,38 @@
@import (reference) '../../style/themes/index';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
.@{form-prefix-cls}-inline {
display: flex;
flex-wrap: wrap;
.@{form-prefix-cls}-item {
flex: none;
flex-wrap: nowrap;
margin-right: 16px;
margin-bottom: 0;
&-with-help {
margin-bottom: @form-item-margin-bottom;
}
> .@{form-item-prefix-cls}-label,
> .@{form-item-prefix-cls}-control {
display: inline-block;
vertical-align: top;
}
> .@{form-item-prefix-cls}-label {
flex: none;
}
.@{form-prefix-cls}-text {
display: inline-block;
}
.@{form-item-prefix-cls}-has-feedback {
display: inline-block;
}
}
}

78
node_modules/ng-zorro-antd/form/style/mixin.less generated vendored Normal file
View File

@@ -0,0 +1,78 @@
@import '../../input/style/mixin';
.form-control-validation(
@text-color: @input-color;
@border-color: @input-border-color;
@background-color: @input-bg;
@hoverBorderColor: @primary-color-hover;
@outlineColor: @primary-color-outline;
) {
.@{ant-prefix}-form-item-split {
color: @text-color;
}
}
// Reset form styles
// -----------------------------
// Based on Bootstrap framework
.reset-form() {
legend {
display: block;
width: 100%;
margin-bottom: 20px;
padding: 0;
color: @text-color-secondary;
font-size: @font-size-lg;
line-height: inherit;
border: 0;
border-bottom: @border-width-base @border-style-base @border-color-base;
}
label {
font-size: @font-size-base;
}
input[type='search'] {
box-sizing: border-box;
}
// Position radios and checkboxes better
input[type='radio'],
input[type='checkbox'] {
line-height: normal;
}
input[type='file'] {
display: block;
}
// Make range inputs behave like textual form controls
input[type='range'] {
display: block;
width: 100%;
}
// Make multiple select elements height not fixed
select[multiple],
select[size] {
height: auto;
}
// Focus for file, radio, and checkbox
input[type='file']:focus,
input[type='radio']:focus,
input[type='checkbox']:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
// Adjust output element
output {
display: block;
padding-top: 15px;
color: @input-color;
font-size: @font-size-base;
line-height: @line-height-base;
}
}

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

@@ -0,0 +1,14 @@
// Since zorro's form-item-margin-bottom doesn't currently animate, we need to fix some of the heights.
.@{form-item-prefix-cls}{
&-explain-connected {
height: 0;
}
&-with-help {
margin-bottom: 0;
}
&-with-help &-explain {
min-height: @form-item-margin-bottom;
}
}

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

@@ -0,0 +1,204 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../input/style/mixin';
@import '../../button/style/mixin';
@import '../../grid/style/mixin';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
.@{form-prefix-cls} {
&-rtl {
direction: rtl;
}
}
// ================================================================
// = Item =
// ================================================================
.@{form-item-prefix-cls} {
// ==============================================================
// = Label =
// ==============================================================
&-label {
.@{form-prefix-cls}-rtl & {
text-align: left;
}
> label {
&.@{form-item-prefix-cls}-required::before {
.@{form-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 4px;
}
}
&::after {
.@{form-prefix-cls}-rtl & {
margin: 0 @form-item-label-colon-margin-left 0 @form-item-label-colon-margin-right;
}
}
.@{form-item-prefix-cls}-optional {
.@{form-prefix-cls}-rtl & {
margin-right: @margin-xss;
margin-left: 0;
}
}
}
}
// ==============================================================
// = Input =
// ==============================================================
&-control {
.@{ant-prefix}-col-rtl &:first-child {
width: 100%;
}
}
// status
&-has-feedback {
.@{ant-prefix}-input {
.@{form-prefix-cls}-rtl & {
padding-right: @input-padding-horizontal-base;
padding-left: 24px;
}
}
.@{ant-prefix}-input-affix-wrapper {
.@{ant-prefix}-input-suffix {
.@{form-prefix-cls}-rtl & {
padding-right: @input-padding-horizontal-base;
padding-left: 18px;
}
}
.@{ant-prefix}-input {
.@{form-prefix-cls}-rtl & {
padding: 0;
}
}
}
.@{ant-prefix}-input-number-affix-wrapper {
.@{ant-prefix}-input-number {
.@{form-prefix-cls}-rtl & {
padding: 0;
}
}
}
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
.@{ant-prefix}-input-suffix {
.@{form-prefix-cls}-rtl & {
right: auto;
left: 28px;
}
}
}
.@{ant-prefix}-input-number {
.@{form-prefix-cls}-rtl & {
padding-left: 18px;
}
}
> .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
> .@{ant-prefix}-select .@{ant-prefix}-select-clear,
:not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
:not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-clear,
:not(.@{ant-prefix}-input-number-group-addon)
> .@{ant-prefix}-select
.@{ant-prefix}-select-arrow,
:not(.@{ant-prefix}-input-number-group-addon)
> .@{ant-prefix}-select
.@{ant-prefix}-select-clear {
.@{form-prefix-cls}-rtl & {
right: auto;
left: 32px;
}
}
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
:not(.@{ant-prefix}-input-group-addon)
> .@{ant-prefix}-select
.@{ant-prefix}-select-selection-selected-value,
:not(.@{ant-prefix}-input-number-group-addon)
> .@{ant-prefix}-select
.@{ant-prefix}-select-selection-selected-value {
.@{form-prefix-cls}-rtl & {
padding-right: 0;
padding-left: 42px;
}
}
.@{ant-prefix}-cascader-picker {
&-arrow {
.@{form-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 19px;
}
}
&-clear {
.@{form-prefix-cls}-rtl & {
right: auto;
left: 32px;
}
}
}
.@{ant-prefix}-picker {
.@{form-prefix-cls}-rtl & {
padding-right: @input-padding-horizontal-base;
padding-left: @input-padding-horizontal-base + @font-size-base * 1.3;
}
&-large {
.@{form-prefix-cls}-rtl & {
padding-right: @input-padding-horizontal-lg;
padding-left: @input-padding-horizontal-lg + @font-size-base * 1.3;
}
}
&-small {
.@{form-prefix-cls}-rtl & {
padding-right: @input-padding-horizontal-sm;
padding-left: @input-padding-horizontal-sm + @font-size-base * 1.3;
}
}
}
&.@{form-item-prefix-cls} {
&-has-success,
&-has-warning,
&-has-error,
&-is-validating {
// ====================== Icon ======================
.@{form-item-prefix-cls}-children-icon {
.@{form-prefix-cls}-rtl & {
right: auto;
left: 0;
}
}
}
}
}
}
// inline
.@{form-prefix-cls}-inline {
.@{form-prefix-cls}-item {
.@{form-prefix-cls}-rtl& {
margin-right: 0;
margin-left: 16px;
}
}
}
// vertical
.make-vertical-layout-label() {
.@{form-prefix-cls}-rtl& {
text-align: right;
}
}

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

@@ -0,0 +1,42 @@
@import (reference) '../../style/themes/index';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
.@{form-item-prefix-cls} {
// ================================================================
// = Status =
// ================================================================
/* Some non-status related component style is in `components.less` */
// ========================= Explain =========================
/* To support leave along ErrorList. We add additional className to handle explain style */
&-explain {
&-error {
color: @error-color;
}
&-warning {
color: @warning-color;
}
}
&-has-feedback {
// ======================== Switch =========================
.@{ant-prefix}-switch {
margin: 2px 0 4px;
}
}
// ======================== Warning ========================
&-has-warning {
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg; @warning-color-hover; @warning-color-outline);
}
// ========================= Error =========================
&-has-error {
.form-control-validation(@error-color; @error-color; @form-error-input-bg; @error-color-hover; @error-color-outline);
}
}

93
node_modules/ng-zorro-antd/form/style/vertical.less generated vendored Normal file
View File

@@ -0,0 +1,93 @@
@import (reference) '../../style/themes/index';
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
// ================== Label ==================
.make-vertical-layout-label() {
& when (@form-vertical-label-margin > 0) {
margin: @form-vertical-label-margin;
}
padding: @form-vertical-label-padding;
line-height: @line-height-base;
white-space: initial;
text-align: left;
> label {
margin: 0;
&::after {
display: none;
}
}
}
.make-vertical-layout() {
.@{form-prefix-cls}-item .@{form-prefix-cls}-item-label {
.make-vertical-layout-label();
}
.@{form-prefix-cls} {
.@{form-prefix-cls}-item {
flex-wrap: wrap;
.@{form-prefix-cls}-item-label,
.@{form-prefix-cls}-item-control {
flex: 0 0 100%;
max-width: 100%;
}
}
}
}
.@{form-prefix-cls}-vertical {
.@{form-item-prefix-cls} {
&-row {
flex-direction: column;
}
&-label > label {
height: auto;
}
.@{form-prefix-cls}-item-control {
width: 100%;
}
}
}
.@{form-prefix-cls}-vertical .@{form-item-prefix-cls}-label,
/* when labelCol is 24, it is a vertical form */
.@{ant-prefix}-col-24.@{form-item-prefix-cls}-label,
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
@media (max-width: @screen-xs-max) {
.make-vertical-layout();
.@{ant-prefix}-col-xs-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
}
@media (max-width: @screen-sm-max) {
.@{ant-prefix}-col-sm-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
}
@media (max-width: @screen-md-max) {
.@{ant-prefix}-col-md-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
}
@media (max-width: @screen-lg-max) {
.@{ant-prefix}-col-lg-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
}
@media (max-width: @screen-xl-max) {
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
.make-vertical-layout-label();
}
}