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

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

@@ -0,0 +1,717 @@
import * as i0 from '@angular/core';
import { OnChanges, AfterViewInit, TemplateRef, TrackByFunction, ElementRef, SimpleChanges, OnInit, EventEmitter, AfterContentInit, QueryList } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { PaginationItemRenderContext } from 'ng-zorro-antd/pagination';
import * as rxjs from 'rxjs';
import { Subject, Observable, BehaviorSubject, ReplaySubject } from 'rxjs';
import { NzTableI18nInterface } from 'ng-zorro-antd/i18n';
import { NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
/**
* 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 NzTableLayout = 'fixed' | 'auto';
type NzTablePaginationPosition = 'top' | 'bottom' | 'both';
type NzTablePaginationType = 'default' | 'small';
type NzTableSize = 'middle' | 'default' | 'small';
type NzTableFilterList = Array<{
text: string;
value: NzSafeAny;
byDefault?: boolean;
}>;
type NzTableSortOrder = string | 'ascend' | 'descend' | null;
type NzTableSortFn<T = unknown> = (a: T, b: T, sortOrder?: NzTableSortOrder) => number;
type NzTableFilterValue = NzSafeAny[] | NzSafeAny;
type NzTableFilterFn<T = unknown> = (value: NzTableFilterValue, data: T) => boolean;
interface NzTableQueryParams {
pageIndex: number;
pageSize: number;
sort: Array<{
key: string;
value: NzTableSortOrder;
}>;
filter: Array<{
key: string;
value: NzTableFilterValue;
}>;
}
interface NzCustomColumn {
value: string;
default: boolean;
width: number;
fixWidth?: boolean;
}
type NzTableSummaryFixedType = 'top' | 'bottom';
declare class NzTableInnerScrollComponent<T> implements OnChanges, AfterViewInit {
private renderer;
private ngZone;
private platform;
private resizeService;
private destroyRef;
data: readonly T[];
scrollX: string | null;
scrollY: string | null;
contentTemplate: TemplateRef<NzSafeAny> | null;
widthConfig: string[];
listOfColWidth: ReadonlyArray<string | null>;
theadTemplate: TemplateRef<NzSafeAny> | null;
tfootTemplate: TemplateRef<NzSafeAny> | null;
tfootFixed: NzTableSummaryFixedType | null;
virtualTemplate: TemplateRef<NzSafeAny> | null;
virtualItemSize: number;
virtualMaxBufferPx: number;
virtualMinBufferPx: number;
tableMainElement?: HTMLDivElement;
virtualForTrackBy: TrackByFunction<T>;
tableHeaderElement: ElementRef;
tableBodyElement: ElementRef;
tableFootElement?: ElementRef;
cdkVirtualScrollViewport?: CdkVirtualScrollViewport;
headerStyleMap: {};
bodyStyleMap: {};
verticalScrollBarWidth: number;
noDataVirtualHeight: string;
private data$;
private scroll$;
private setScrollPositionClassName;
constructor();
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableInnerScrollComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableInnerScrollComponent<any>, "nz-table-inner-scroll", never, { "data": { "alias": "data"; "required": false; }; "scrollX": { "alias": "scrollX"; "required": false; }; "scrollY": { "alias": "scrollY"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "widthConfig": { "alias": "widthConfig"; "required": false; }; "listOfColWidth": { "alias": "listOfColWidth"; "required": false; }; "theadTemplate": { "alias": "theadTemplate"; "required": false; }; "tfootTemplate": { "alias": "tfootTemplate"; "required": false; }; "tfootFixed": { "alias": "tfootFixed"; "required": false; }; "virtualTemplate": { "alias": "virtualTemplate"; "required": false; }; "virtualItemSize": { "alias": "virtualItemSize"; "required": false; }; "virtualMaxBufferPx": { "alias": "virtualMaxBufferPx"; "required": false; }; "virtualMinBufferPx": { "alias": "virtualMinBufferPx"; "required": false; }; "tableMainElement": { "alias": "tableMainElement"; "required": false; }; "virtualForTrackBy": { "alias": "virtualForTrackBy"; "required": false; }; "verticalScrollBarWidth": { "alias": "verticalScrollBarWidth"; "required": false; }; "noDataVirtualHeight": { "alias": "noDataVirtualHeight"; "required": false; }; }, {}, never, 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 NzTableVirtualScrollDirective<T> {
templateRef: TemplateRef<{
$implicit: T;
index: number;
}>;
static ngTemplateContextGuard<T>(_dir: NzTableVirtualScrollDirective<T>, _ctx: NzSafeAny): _ctx is {
$implicit: T;
index: number;
};
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableVirtualScrollDirective<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTableVirtualScrollDirective<any>, "[nz-virtual-scroll]", ["nzVirtualScroll"], {}, {}, never, 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 NzTableComponent<T> implements OnInit, OnChanges, AfterViewInit {
readonly _nzModuleName: NzConfigKey;
private elementRef;
private nzResizeObserver;
private cdr;
private nzTableStyleService;
private nzTableDataService;
private directionality;
private destroyRef;
nzTableLayout: NzTableLayout;
nzShowTotal: TemplateRef<{
$implicit: number;
range: [number, number];
}> | null;
nzItemRender: TemplateRef<PaginationItemRenderContext> | null;
nzTitle: string | TemplateRef<NzSafeAny> | null;
nzFooter: string | TemplateRef<NzSafeAny> | null;
nzNoResult: string | TemplateRef<NzSafeAny> | undefined;
nzPageSizeOptions: number[];
nzVirtualItemSize: number;
nzVirtualMaxBufferPx: number;
nzVirtualMinBufferPx: number;
nzVirtualForTrackBy: TrackByFunction<T>;
nzLoadingDelay: number;
nzPageIndex: number;
nzPageSize: number;
nzTotal: number;
nzWidthConfig: ReadonlyArray<string | null>;
nzData: readonly T[];
nzCustomColumn: NzCustomColumn[];
nzPaginationPosition: NzTablePaginationPosition;
nzScroll: {
x?: string | null;
y?: string | null;
};
noDataVirtualHeight: string;
nzPaginationType: NzTablePaginationType;
nzFrontPagination: boolean;
nzTemplateMode: boolean;
nzShowPagination: boolean;
nzLoading: boolean;
nzOuterBordered: boolean;
nzLoadingIndicator: TemplateRef<NzSafeAny> | null;
nzBordered: boolean;
nzSize: NzTableSize;
nzShowSizeChanger: boolean;
nzHideOnSinglePage: boolean;
nzShowQuickJumper: boolean;
nzSimple: boolean;
readonly nzPageSizeChange: EventEmitter<number>;
readonly nzPageIndexChange: EventEmitter<number>;
readonly nzQueryParams: EventEmitter<NzTableQueryParams>;
readonly nzCurrentPageDataChange: EventEmitter<readonly T[]>;
readonly nzCustomColumnChange: EventEmitter<readonly NzCustomColumn[]>;
/** public data for ngFor tr */
data: readonly T[];
cdkVirtualScrollViewport?: CdkVirtualScrollViewport;
scrollX: string | null;
scrollY: string | null;
theadTemplate: TemplateRef<NzSafeAny> | null;
tfootTemplate: TemplateRef<NzSafeAny> | null;
tfootFixed: NzTableSummaryFixedType | null;
listOfAutoColWidth: ReadonlyArray<string | null>;
listOfManualColWidth: ReadonlyArray<string | null>;
hasFixLeft: boolean;
hasFixRight: boolean;
showPagination: boolean;
private templateMode$;
dir: Direction;
nzVirtualScrollDirective: NzTableVirtualScrollDirective<T>;
nzTableInnerScrollComponent: NzTableInnerScrollComponent<T>;
verticalScrollBarWidth: number;
onPageSizeChange(size: number): void;
onPageIndexChange(index: number): void;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
private setScrollOnChanges;
private updateShowPagination;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableComponent<any>, "nz-table", ["nzTable"], { "nzTableLayout": { "alias": "nzTableLayout"; "required": false; }; "nzShowTotal": { "alias": "nzShowTotal"; "required": false; }; "nzItemRender": { "alias": "nzItemRender"; "required": false; }; "nzTitle": { "alias": "nzTitle"; "required": false; }; "nzFooter": { "alias": "nzFooter"; "required": false; }; "nzNoResult": { "alias": "nzNoResult"; "required": false; }; "nzPageSizeOptions": { "alias": "nzPageSizeOptions"; "required": false; }; "nzVirtualItemSize": { "alias": "nzVirtualItemSize"; "required": false; }; "nzVirtualMaxBufferPx": { "alias": "nzVirtualMaxBufferPx"; "required": false; }; "nzVirtualMinBufferPx": { "alias": "nzVirtualMinBufferPx"; "required": false; }; "nzVirtualForTrackBy": { "alias": "nzVirtualForTrackBy"; "required": false; }; "nzLoadingDelay": { "alias": "nzLoadingDelay"; "required": false; }; "nzPageIndex": { "alias": "nzPageIndex"; "required": false; }; "nzPageSize": { "alias": "nzPageSize"; "required": false; }; "nzTotal": { "alias": "nzTotal"; "required": false; }; "nzWidthConfig": { "alias": "nzWidthConfig"; "required": false; }; "nzData": { "alias": "nzData"; "required": false; }; "nzCustomColumn": { "alias": "nzCustomColumn"; "required": false; }; "nzPaginationPosition": { "alias": "nzPaginationPosition"; "required": false; }; "nzScroll": { "alias": "nzScroll"; "required": false; }; "noDataVirtualHeight": { "alias": "noDataVirtualHeight"; "required": false; }; "nzPaginationType": { "alias": "nzPaginationType"; "required": false; }; "nzFrontPagination": { "alias": "nzFrontPagination"; "required": false; }; "nzTemplateMode": { "alias": "nzTemplateMode"; "required": false; }; "nzShowPagination": { "alias": "nzShowPagination"; "required": false; }; "nzLoading": { "alias": "nzLoading"; "required": false; }; "nzOuterBordered": { "alias": "nzOuterBordered"; "required": false; }; "nzLoadingIndicator": { "alias": "nzLoadingIndicator"; "required": false; }; "nzBordered": { "alias": "nzBordered"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzShowSizeChanger": { "alias": "nzShowSizeChanger"; "required": false; }; "nzHideOnSinglePage": { "alias": "nzHideOnSinglePage"; "required": false; }; "nzShowQuickJumper": { "alias": "nzShowQuickJumper"; "required": false; }; "nzSimple": { "alias": "nzSimple"; "required": false; }; }, { "nzPageSizeChange": "nzPageSizeChange"; "nzPageIndexChange": "nzPageIndexChange"; "nzQueryParams": "nzQueryParams"; "nzCurrentPageDataChange": "nzCurrentPageDataChange"; "nzCustomColumnChange": "nzCustomColumnChange"; }, ["nzVirtualScrollDirective"], ["*"], true, never>;
static ngAcceptInputType_nzFrontPagination: unknown;
static ngAcceptInputType_nzTemplateMode: unknown;
static ngAcceptInputType_nzShowPagination: unknown;
static ngAcceptInputType_nzLoading: unknown;
static ngAcceptInputType_nzOuterBordered: unknown;
static ngAcceptInputType_nzBordered: unknown;
static ngAcceptInputType_nzShowSizeChanger: unknown;
static ngAcceptInputType_nzHideOnSinglePage: unknown;
static ngAcceptInputType_nzShowQuickJumper: unknown;
static ngAcceptInputType_nzSimple: unknown;
}
declare class NzThAddOnComponent<T> implements OnChanges, OnInit {
readonly _nzModuleName: NzConfigKey;
nzConfigService: NzConfigService;
private el;
private destroyRef;
private cdr;
private ngZone;
manualClickOrder$: Subject<NzThAddOnComponent<T>>;
calcOperatorChange$: Subject<void>;
nzFilterValue: NzTableFilterValue;
sortOrder: NzTableSortOrder;
sortDirections: NzTableSortOrder[];
private sortOrderChange$;
private isNzShowSortChanged;
private isNzShowFilterChanged;
nzColumnKey?: string;
nzFilterMultiple: boolean;
nzSortOrder: NzTableSortOrder;
nzSortPriority: number | boolean;
nzSortDirections: NzTableSortOrder[];
nzFilters: NzTableFilterList;
nzSortFn: NzTableSortFn<T> | boolean | null;
nzFilterFn: NzTableFilterFn<T> | boolean | null;
nzShowSort: boolean;
nzShowFilter: boolean;
nzCustomFilter: boolean;
readonly nzCheckedChange: EventEmitter<boolean>;
readonly nzSortOrderChange: EventEmitter<string | null>;
readonly nzFilterChange: EventEmitter<any>;
getNextSortDirection(sortDirections: NzTableSortOrder[], current: NzTableSortOrder): NzTableSortOrder;
setSortOrder(order: NzTableSortOrder): void;
clearSortOrder(): void;
onFilterValueChange(value: NzTableFilterValue): void;
updateCalcOperator(): void;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzThAddOnComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzThAddOnComponent<any>, "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", never, { "nzColumnKey": { "alias": "nzColumnKey"; "required": false; }; "nzFilterMultiple": { "alias": "nzFilterMultiple"; "required": false; }; "nzSortOrder": { "alias": "nzSortOrder"; "required": false; }; "nzSortPriority": { "alias": "nzSortPriority"; "required": false; }; "nzSortDirections": { "alias": "nzSortDirections"; "required": false; }; "nzFilters": { "alias": "nzFilters"; "required": false; }; "nzSortFn": { "alias": "nzSortFn"; "required": false; }; "nzFilterFn": { "alias": "nzFilterFn"; "required": false; }; "nzShowSort": { "alias": "nzShowSort"; "required": false; }; "nzShowFilter": { "alias": "nzShowFilter"; "required": false; }; "nzCustomFilter": { "alias": "nzCustomFilter"; "required": false; }; }, { "nzCheckedChange": "nzCheckedChange"; "nzSortOrderChange": "nzSortOrderChange"; "nzFilterChange": "nzFilterChange"; }, never, ["[nz-th-extra]", "nz-filter-trigger", "*"], true, never>;
static ngAcceptInputType_nzShowSort: unknown;
static ngAcceptInputType_nzShowFilter: unknown;
static ngAcceptInputType_nzCustomFilter: unknown;
}
declare class NzTableCellDirective {
isInsideTable: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableCellDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTableCellDirective, "th:not(.nz-disable-th), td:not(.nz-disable-td)", never, {}, {}, never, 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 NzThMeasureDirective implements OnChanges {
private renderer;
private el;
changes$: Subject<void>;
nzWidth: string | null;
colspan: string | number | null;
colSpan: string | number | null;
rowspan: string | number | null;
rowSpan: string | number | null;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzThMeasureDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzThMeasureDirective, "th", never, { "nzWidth": { "alias": "nzWidth"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; "colSpan": { "alias": "colSpan"; "required": false; }; "rowspan": { "alias": "rowspan"; "required": false; }; "rowSpan": { "alias": "rowSpan"; "required": false; }; }, {}, never, never, true, never>;
}
declare class NzTdAddOnComponent implements OnChanges {
nzChecked: boolean;
nzDisabled: boolean;
nzIndeterminate: boolean;
nzLabel: string | null;
nzIndentSize: number;
nzShowExpand: boolean;
nzShowCheckbox: boolean;
nzExpand: boolean;
nzExpandIcon: TemplateRef<void> | null;
readonly nzCheckedChange: EventEmitter<boolean>;
readonly nzExpandChange: EventEmitter<boolean>;
private isNzShowExpandChanged;
private isNzShowCheckboxChanged;
onCheckedChange(checked: boolean): void;
onExpandChange(expand: boolean): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTdAddOnComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTdAddOnComponent, "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", never, { "nzChecked": { "alias": "nzChecked"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzIndeterminate": { "alias": "nzIndeterminate"; "required": false; }; "nzLabel": { "alias": "nzLabel"; "required": false; }; "nzIndentSize": { "alias": "nzIndentSize"; "required": false; }; "nzShowExpand": { "alias": "nzShowExpand"; "required": false; }; "nzShowCheckbox": { "alias": "nzShowCheckbox"; "required": false; }; "nzExpand": { "alias": "nzExpand"; "required": false; }; "nzExpandIcon": { "alias": "nzExpandIcon"; "required": false; }; }, { "nzCheckedChange": "nzCheckedChange"; "nzExpandChange": "nzExpandChange"; }, never, ["*"], true, never>;
static ngAcceptInputType_nzShowExpand: unknown;
static ngAcceptInputType_nzShowCheckbox: unknown;
static ngAcceptInputType_nzExpand: 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 NzCellFixedDirective implements OnChanges {
private renderer;
private el;
nzRight: string | boolean;
nzLeft: string | boolean;
colspan: number | null;
colSpan: number | null;
changes$: Subject<void>;
isAutoLeft: boolean;
isAutoRight: boolean;
isFixedLeft: boolean;
isFixedRight: boolean;
isFixed: boolean;
setAutoLeftWidth(autoLeft: string | null): void;
setAutoRightWidth(autoRight: string | null): void;
setIsFirstRight(isFirstRight: boolean): void;
setIsLastLeft(isLastLeft: boolean): void;
private setFixClass;
ngOnChanges(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCellFixedDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzCellFixedDirective, "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", never, { "nzRight": { "alias": "nzRight"; "required": false; }; "nzLeft": { "alias": "nzLeft"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; "colSpan": { "alias": "colSpan"; "required": false; }; }, {}, never, 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 NzTrDirective implements AfterContentInit {
private destroyRef;
listOfNzThDirective: QueryList<NzThMeasureDirective>;
listOfCellFixedDirective: QueryList<NzCellFixedDirective>;
private listOfFixedColumns$;
private listOfColumns$;
listOfFixedColumnsChanges$: Observable<NzCellFixedDirective[]>;
listOfFixedLeftColumnChanges$: Observable<NzCellFixedDirective[]>;
listOfFixedRightColumnChanges$: Observable<NzCellFixedDirective[]>;
listOfColumnsChanges$: Observable<NzThMeasureDirective[]>;
private nzTableStyleService;
isInsideTable: boolean;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTrDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTrDirective, "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])", never, {}, {}, ["listOfNzThDirective", "listOfCellFixedDirective"], never, true, never>;
}
declare class NzTheadComponent<T> implements AfterContentInit, AfterViewInit, OnInit {
private nzTableStyleService;
private nzTableDataService;
private destroyRef;
private el;
private renderer;
isInsideTable: boolean;
templateRef: TemplateRef<NzSafeAny>;
listOfNzTrDirective: QueryList<NzTrDirective>;
listOfNzThAddOnComponent: QueryList<NzThAddOnComponent<T>>;
readonly nzSortOrderChange: EventEmitter<{
key: NzSafeAny;
value: string | null;
}>;
ngOnInit(): void;
ngAfterContentInit(): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTheadComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTheadComponent<any>, "thead:not(.ant-table-thead)", never, {}, { "nzSortOrderChange": "nzSortOrderChange"; }, ["listOfNzTrDirective", "listOfNzThAddOnComponent"], ["*"], true, never>;
}
declare class NzTbodyComponent {
showEmpty$: BehaviorSubject<boolean>;
noResult$: BehaviorSubject<string | TemplateRef<any> | undefined>;
listOfMeasureColumn$: BehaviorSubject<readonly string[]>;
private nzTableStyleService;
isInsideTable: boolean;
constructor();
onListOfAutoWidthChange(listOfAutoWidth: number[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTbodyComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTbodyComponent, "tbody", never, {}, {}, never, ["*"], true, never>;
}
declare class NzTrExpandDirective {
nzExpand: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTrExpandDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzTrExpandDirective, "tr[nzExpand]", never, { "nzExpand": { "alias": "nzExpand"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzExpand: unknown;
}
declare class NzTfootSummaryComponent implements OnInit, OnChanges {
nzFixed: NzTableSummaryFixedType | null;
templateRef: TemplateRef<NzSafeAny>;
private nzTableStyleService;
isInsideTable: boolean;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTfootSummaryComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTfootSummaryComponent, "tfoot[nzSummary]", never, { "nzFixed": { "alias": "nzFixed"; "required": false; }; }, {}, never, ["*"], true, never>;
static ngAcceptInputType_nzFixed: NzTableSummaryFixedType | boolean | 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 NzCustomColumnDirective<T> implements OnInit {
private el;
private renderer;
private nzTableDataService;
private destroyRef;
nzCellControl: string | null;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCustomColumnDirective<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzCustomColumnDirective<any>, "td[nzCellControl],th[nzCellControl]", never, { "nzCellControl": { "alias": "nzCellControl"; "required": false; }; }, {}, never, never, true, never>;
}
declare class NzTableContentComponent {
tableLayout: NzTableLayout;
theadTemplate: TemplateRef<NzSafeAny> | null;
contentTemplate: TemplateRef<NzSafeAny> | null;
tfootTemplate: TemplateRef<NzSafeAny> | null;
listOfColWidth: ReadonlyArray<string | null>;
scrollX: string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableContentComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableContentComponent, "table[nz-table-content]", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "theadTemplate": { "alias": "theadTemplate"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "tfootTemplate": { "alias": "tfootTemplate"; "required": false; }; "listOfColWidth": { "alias": "listOfColWidth"; "required": false; }; "scrollX": { "alias": "scrollX"; "required": false; }; }, {}, 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 NzTableTitleFooterComponent {
title: string | TemplateRef<NzSafeAny> | null;
footer: string | TemplateRef<NzSafeAny> | null;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableTitleFooterComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableTitleFooterComponent, "nz-table-title-footer", never, { "title": { "alias": "title"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; }, {}, never, 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 NzTableInnerDefaultComponent {
tableLayout: NzTableLayout;
listOfColWidth: ReadonlyArray<string | null>;
theadTemplate: TemplateRef<NzSafeAny> | null;
contentTemplate: TemplateRef<NzSafeAny> | null;
tfootTemplate: TemplateRef<NzSafeAny> | null;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableInnerDefaultComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableInnerDefaultComponent, "nz-table-inner-default", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "listOfColWidth": { "alias": "listOfColWidth"; "required": false; }; "theadTemplate": { "alias": "theadTemplate"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "tfootTemplate": { "alias": "tfootTemplate"; "required": false; }; }, {}, never, 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 NzTrMeasureComponent implements AfterViewInit {
private nzResizeObserver;
private ngZone;
private destroyRef;
listOfMeasureColumn: readonly string[];
readonly listOfAutoWidth: EventEmitter<number[]>;
listOfTdElement: QueryList<ElementRef>;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTrMeasureComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTrMeasureComponent, "tr[nz-table-measure-row]", never, { "listOfMeasureColumn": { "alias": "listOfMeasureColumn"; "required": false; }; }, { "listOfAutoWidth": "listOfAutoWidth"; }, never, never, true, never>;
}
declare class NzRowIndentDirective {
indentSize: number;
static ɵfac: i0.ɵɵFactoryDeclaration<NzRowIndentDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzRowIndentDirective, "nz-row-indent", never, { "indentSize": { "alias": "indentSize"; "required": false; }; }, {}, never, 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 NzRowExpandButtonDirective {
expand: boolean;
spaceMode: boolean;
readonly expandChange: EventEmitter<any>;
onHostClick(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzRowExpandButtonDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzRowExpandButtonDirective, "button[nz-row-expand-button]", never, { "expand": { "alias": "expand"; "required": false; }; "spaceMode": { "alias": "spaceMode"; "required": false; }; }, { "expandChange": "expandChange"; }, never, never, true, never>;
}
declare class NzCellBreakWordDirective {
nzBreakWord: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCellBreakWordDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzCellBreakWordDirective, "th[nzBreakWord],td[nzBreakWord]", never, { "nzBreakWord": { "alias": "nzBreakWord"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzBreakWord: unknown;
}
declare class NzCellAlignDirective {
nzAlign: 'left' | 'right' | 'center' | null;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCellAlignDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzCellAlignDirective, "th[nzAlign],td[nzAlign]", never, { "nzAlign": { "alias": "nzAlign"; "required": false; }; }, {}, never, never, true, never>;
}
declare class NzTableSortersComponent implements OnChanges {
sortDirections: NzTableSortOrder[];
sortOrder: NzTableSortOrder;
contentTemplate: TemplateRef<NzSafeAny> | null;
isUp: boolean;
isDown: boolean;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableSortersComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableSortersComponent, "nz-table-sorters", never, { "sortDirections": { "alias": "sortDirections"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; }, {}, never, never, true, never>;
}
interface NzThItemInterface {
text: string;
value: NzSafeAny;
checked: boolean;
}
declare class NzTableFilterComponent implements OnChanges, OnInit {
private readonly cdr;
private readonly i18n;
private readonly destroyRef;
contentTemplate: TemplateRef<NzSafeAny> | null;
customFilter: boolean;
extraTemplate: TemplateRef<NzSafeAny> | null;
filterMultiple: boolean;
listOfFilter: NzTableFilterList;
readonly filterChange: EventEmitter<any>;
locale: NzTableI18nInterface;
isChecked: boolean;
isVisible: boolean;
listOfParsedFilter: NzThItemInterface[];
listOfChecked: NzSafeAny[];
check(filter: NzThItemInterface): void;
confirm(): void;
reset(): void;
onVisibleChange(value: boolean): void;
emitFilterData(): void;
parseListOfFilter(listOfFilter: NzTableFilterList, reset?: boolean): NzThItemInterface[];
getCheckedStatus(listOfParsedFilter: NzThItemInterface[]): boolean;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableFilterComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableFilterComponent, "nz-table-filter", never, { "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "customFilter": { "alias": "customFilter"; "required": false; }; "extraTemplate": { "alias": "extraTemplate"; "required": false; }; "filterMultiple": { "alias": "filterMultiple"; "required": false; }; "listOfFilter": { "alias": "listOfFilter"; "required": false; }; }, { "filterChange": "filterChange"; }, never, 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 NzTableSelectionComponent {
listOfSelections: Array<{
text: string;
onSelect(...args: NzSafeAny[]): NzSafeAny;
}>;
checked: boolean;
disabled: boolean;
indeterminate: boolean;
label: string | null;
showCheckbox: boolean;
showRowSelection: boolean;
readonly checkedChange: EventEmitter<boolean>;
onCheckedChange(checked: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableSelectionComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableSelectionComponent, "nz-table-selection", never, { "listOfSelections": { "alias": "listOfSelections"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "label": { "alias": "label"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "showRowSelection": { "alias": "showRowSelection"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
}
declare class NzCellEllipsisDirective {
nzEllipsis: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCellEllipsisDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NzCellEllipsisDirective, "th[nzEllipsis],td[nzEllipsis]", never, { "nzEllipsis": { "alias": "nzEllipsis"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzEllipsis: 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 NzFilterTriggerComponent implements OnInit {
readonly _nzModuleName: NzConfigKey;
readonly nzConfigService: NzConfigService;
private readonly cdr;
private readonly destroyRef;
nzActive: boolean;
nzDropdownMenu: NzDropdownMenuComponent;
nzVisible: boolean;
nzBackdrop: boolean;
readonly nzVisibleChange: EventEmitter<boolean>;
nzDropdown: ElementRef<HTMLElement>;
onVisibleChange(visible: boolean): void;
hide(): void;
show(): void;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzFilterTriggerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzFilterTriggerComponent, "nz-filter-trigger", ["nzFilterTrigger"], { "nzActive": { "alias": "nzActive"; "required": false; }; "nzDropdownMenu": { "alias": "nzDropdownMenu"; "required": false; }; "nzVisible": { "alias": "nzVisible"; "required": false; }; "nzBackdrop": { "alias": "nzBackdrop"; "required": false; }; }, { "nzVisibleChange": "nzVisibleChange"; }, never, ["*"], true, never>;
static ngAcceptInputType_nzBackdrop: unknown;
}
declare class NzTableFixedRowComponent implements OnInit, AfterViewInit {
private nzTableStyleService;
private renderer;
private destroyRef;
tdElement: ElementRef;
hostWidth$: BehaviorSubject<number | null>;
enableAutoMeasure$: BehaviorSubject<boolean>;
ngOnInit(): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableFixedRowComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTableFixedRowComponent, "tr[nz-table-fixed-row], tr[nzExpand]", never, {}, {}, 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 NzThSelectionComponent implements OnChanges {
nzSelections: Array<{
text: string;
onSelect(...args: NzSafeAny[]): NzSafeAny;
}>;
nzChecked: boolean;
nzDisabled: boolean;
nzIndeterminate: boolean;
nzLabel: string | null;
nzShowCheckbox: boolean;
nzShowRowSelection: boolean;
readonly nzCheckedChange: EventEmitter<boolean>;
private isNzShowExpandChanged;
private isNzShowCheckboxChanged;
onCheckedChange(checked: boolean): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzThSelectionComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzThSelectionComponent, "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", never, { "nzSelections": { "alias": "nzSelections"; "required": false; }; "nzChecked": { "alias": "nzChecked"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzIndeterminate": { "alias": "nzIndeterminate"; "required": false; }; "nzLabel": { "alias": "nzLabel"; "required": false; }; "nzShowCheckbox": { "alias": "nzShowCheckbox"; "required": false; }; "nzShowRowSelection": { "alias": "nzShowRowSelection"; "required": false; }; }, { "nzCheckedChange": "nzCheckedChange"; }, never, ["*"], true, never>;
static ngAcceptInputType_nzChecked: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzShowCheckbox: unknown;
static ngAcceptInputType_nzShowRowSelection: unknown;
}
declare class NzTableModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTableModule, never, [typeof NzTableComponent, typeof NzThAddOnComponent, typeof NzTableCellDirective, typeof NzThMeasureDirective, typeof NzTdAddOnComponent, typeof NzTheadComponent, typeof NzTbodyComponent, typeof NzTrDirective, typeof NzTrExpandDirective, typeof NzTfootSummaryComponent, typeof NzTableVirtualScrollDirective, typeof NzCellFixedDirective, typeof NzCustomColumnDirective, typeof NzTableContentComponent, typeof NzTableTitleFooterComponent, typeof NzTableInnerDefaultComponent, typeof NzTableInnerScrollComponent, typeof NzTrMeasureComponent, typeof NzRowIndentDirective, typeof NzRowExpandButtonDirective, typeof NzCellBreakWordDirective, typeof NzCellAlignDirective, typeof NzTableSortersComponent, typeof NzTableFilterComponent, typeof NzTableSelectionComponent, typeof NzCellEllipsisDirective, typeof NzFilterTriggerComponent, typeof NzTableFixedRowComponent, typeof NzThSelectionComponent], [typeof NzTableComponent, typeof NzThAddOnComponent, typeof NzTableCellDirective, typeof NzThMeasureDirective, typeof NzTdAddOnComponent, typeof NzTheadComponent, typeof NzTbodyComponent, typeof NzTrDirective, typeof NzTableVirtualScrollDirective, typeof NzCellFixedDirective, typeof NzCustomColumnDirective, typeof NzFilterTriggerComponent, typeof NzTrExpandDirective, typeof NzTfootSummaryComponent, typeof NzCellBreakWordDirective, typeof NzCellAlignDirective, typeof NzCellEllipsisDirective, typeof NzTableFixedRowComponent, typeof NzThSelectionComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTableModule>;
}
declare class NzTableDataService<T> {
private destroyRef;
private pageIndex$;
private frontPagination$;
private pageSize$;
private listOfData$;
listOfCustomColumn$: BehaviorSubject<NzCustomColumn[]>;
pageIndexDistinct$: Observable<number>;
pageSizeDistinct$: Observable<number>;
listOfCalcOperator$: BehaviorSubject<{
key?: string;
sortFn: NzTableSortFn<T> | null | boolean;
sortOrder: NzTableSortOrder;
filterFn: NzTableFilterFn<T> | null | boolean;
filterValue: NzTableFilterValue;
sortPriority: number | boolean;
}[]>;
queryParams$: Observable<NzTableQueryParams>;
private listOfDataAfterCalc$;
private listOfFrontEndCurrentPageData$;
listOfCurrentPageData$: Observable<T[]>;
total$: Observable<number>;
updatePageSize(size: number): void;
updateFrontPagination(pagination: boolean): void;
updatePageIndex(index: number): void;
updateListOfData(list: readonly T[]): void;
updateListOfCustomColumn(list: NzCustomColumn[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableDataService<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzTableDataService<any>>;
}
declare class NzTableStyleService {
theadTemplate$: ReplaySubject<TemplateRef<any>>;
tfootTemplate$: ReplaySubject<TemplateRef<any>>;
tfootFixed$: ReplaySubject<NzTableSummaryFixedType | null>;
hasFixLeft$: ReplaySubject<boolean>;
hasFixRight$: ReplaySubject<boolean>;
hostWidth$: ReplaySubject<number>;
columnCount$: ReplaySubject<number>;
showEmpty$: ReplaySubject<boolean>;
noResult$: ReplaySubject<string | TemplateRef<any> | undefined>;
private listOfThWidthConfigPx$;
private tableWidthConfigPx$;
manualWidthConfigPx$: rxjs.Observable<readonly (string | null)[]>;
private listOfAutoWidthPx$;
listOfListOfThWidthPx$: rxjs.Observable<readonly (string | null)[]>;
listOfMeasureColumn$: ReplaySubject<readonly string[]>;
listOfListOfThWidth$: rxjs.Observable<number[]>;
enableAutoMeasure$: ReplaySubject<boolean>;
setTheadTemplate(template: TemplateRef<NzSafeAny>): void;
setTfootTemplate(template: TemplateRef<NzSafeAny>): void;
setTfootFixed(fixed: NzTableSummaryFixedType | null): void;
setHasFixLeft(hasFixLeft: boolean): void;
setHasFixRight(hasFixRight: boolean): void;
setTableWidthConfig(widthConfig: ReadonlyArray<string | null>): void;
setListOfTh(listOfTh: readonly NzThMeasureDirective[]): void;
setListOfMeasureColumn(listOfTh: readonly NzThMeasureDirective[]): void;
setListOfAutoWidth(listOfAutoWidth: number[]): void;
setShowEmpty(showEmpty: boolean): void;
setNoResult(noResult: string | TemplateRef<NzSafeAny> | undefined): void;
setScroll(scrollX: string | null, scrollY: string | null): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTableStyleService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzTableStyleService>;
}
export { NzCellAlignDirective, NzCellBreakWordDirective, NzCellEllipsisDirective, NzCellFixedDirective, NzCustomColumnDirective, NzFilterTriggerComponent, NzRowExpandButtonDirective, NzRowIndentDirective, NzTableCellDirective, NzTableComponent, NzTableContentComponent, NzTableDataService, NzTableFilterComponent, NzTableFixedRowComponent, NzTableInnerDefaultComponent, NzTableInnerScrollComponent, NzTableModule, NzTableSelectionComponent, NzTableSortersComponent, NzTableStyleService, NzTableTitleFooterComponent, NzTableVirtualScrollDirective, NzTbodyComponent, NzTdAddOnComponent, NzTfootSummaryComponent, NzThAddOnComponent, NzThMeasureDirective, NzThSelectionComponent, NzTheadComponent, NzTrDirective, NzTrExpandDirective, NzTrMeasureComponent };
export type { NzCustomColumn, NzTableFilterFn, NzTableFilterList, NzTableFilterValue, NzTableLayout, NzTablePaginationPosition, NzTablePaginationType, NzTableQueryParams, NzTableSize, NzTableSortFn, NzTableSortOrder, NzTableSummaryFixedType };

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

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

136
node_modules/ng-zorro-antd/table/style/bordered.less generated vendored Normal file
View File

@@ -0,0 +1,136 @@
@import './size';
@import (reference) '../../style/themes/index';
@table-prefix-cls: ~'@{ant-prefix}-table';
@table-border: @border-width-base @border-style-base @table-border-color;
.@{table-prefix-cls}.@{table-prefix-cls}-bordered {
// ============================ Title =============================
> .@{table-prefix-cls}-title {
border: @table-border;
border-bottom: 0;
}
> .@{table-prefix-cls}-container {
// ============================ Content ============================
border-left: @table-border;
> .@{table-prefix-cls}-content,
> .@{table-prefix-cls}-header,
> .@{table-prefix-cls}-body,
> .@{table-prefix-cls}-summary {
> table {
// ============================= Cell =============================
> thead > tr > th,
> tbody > tr > td,
> tfoot > tr > th,
> tfoot > tr > td {
border-right: @table-border;
}
// ============================ Header ============================
> thead {
> tr:not(:last-child) > th {
border-bottom: @border-width-base @border-style-base @table-border-color;
}
> tr > th {
&::before {
background-color: transparent !important;
}
}
}
// Fixed right should provides additional border
> thead > tr,
> tbody > tr,
> tfoot > tr {
> .@{table-prefix-cls}-cell-fix-right-first::after {
border-right: @table-border;
}
}
}
// ========================== Expandable ==========================
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical (-@table-padding-horizontal - @border-width-base);
&::after {
position: absolute;
top: 0;
right: @border-width-base;
bottom: 0;
border-right: @table-border;
content: '';
}
}
}
}
> .@{table-prefix-cls}-content,
> .@{table-prefix-cls}-header {
> table {
border-top: @table-border;
}
}
}
&.@{table-prefix-cls}-scroll-horizontal {
> .@{table-prefix-cls}-container > .@{table-prefix-cls}-body {
> table > tbody {
> tr.@{table-prefix-cls}-expanded-row,
> tr.@{table-prefix-cls}-placeholder {
> td {
border-right: 0;
}
}
}
}
}
// Size related
&.@{table-prefix-cls}-middle {
> .@{table-prefix-cls}-container {
> .@{table-prefix-cls}-content,
> .@{table-prefix-cls}-body {
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-md (-@table-padding-horizontal-md - @border-width-base);
}
}
}
}
}
&.@{table-prefix-cls}-small {
> .@{table-prefix-cls}-container {
> .@{table-prefix-cls}-content,
> .@{table-prefix-cls}-body {
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-sm (-@table-padding-horizontal-sm - @border-width-base);
}
}
}
}
}
// ============================ Footer ============================
> .@{table-prefix-cls}-footer {
border: @table-border;
border-top: 0;
}
}
.@{table-prefix-cls}-cell {
// ============================ Nested ============================
.@{table-prefix-cls}-container:first-child {
// :first-child to avoid the case when bordered and title is set
border-top: 0;
}
// https://github.com/ant-design/ant-design/issues/35577
&-scrollbar:not([rowspan]) {
box-shadow: 0 @border-width-base 0 @border-width-base @table-header-bg;
}
}

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

@@ -0,0 +1,10 @@
@import './index.less';
@import './patch.less';
// style dependencies
// deps-lint-skip: menu
@import '../../empty/style/entry.less';
@import '../../radio/style/entry.less';
@import '../../checkbox/style/entry.less';
@import '../../dropdown/style/entry.less';
@import '../../spin/style/entry.less';
@import '../../pagination/style/entry.less';

6026
node_modules/ng-zorro-antd/table/style/index.css generated vendored Normal file

File diff suppressed because it is too large Load Diff

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

@@ -0,0 +1,763 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './size';
@import './bordered';
@table-prefix-cls: ~'@{ant-prefix}-table';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
@table-header-icon-color: #bfbfbf;
@table-header-icon-color-hover: darken(@table-header-icon-color, 10%);
@table-sticky-zindex: calc(@zindex-table-fixed + 1);
@table-sticky-scroll-bar-active-bg: fade(@table-sticky-scroll-bar-bg, 80%);
@table-filter-dropdown-max-height: 264px;
@table-expand-column-width: 48px;
.@{table-prefix-cls}-wrapper {
clear: both;
max-width: 100%;
.clearfix();
}
.@{table-prefix-cls} {
.reset-component();
position: relative;
font-size: @table-font-size;
background: @table-bg;
border-radius: @table-border-radius-base;
// https://github.com/ant-design/ant-design/issues/17611
table {
width: 100%;
text-align: left;
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
border-collapse: separate;
border-spacing: 0;
}
// ============================= Cell =============================
&-thead > tr > th,
&-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td {
position: relative;
padding: @table-padding-vertical @table-padding-horizontal;
overflow-wrap: break-word;
}
&-cell-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
// Fixed first or last should special process
&.@{table-prefix-cls}-cell-fix-left-last,
&.@{table-prefix-cls}-cell-fix-right-first {
overflow: visible;
.@{table-prefix-cls}-cell-content {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
.@{table-prefix-cls}-column-title {
overflow: hidden;
text-overflow: ellipsis;
word-break: keep-all;
}
}
// ============================ Title =============================
&-title {
padding: @table-padding-vertical @table-padding-horizontal;
}
// ============================ Footer ============================
&-footer {
padding: @table-padding-vertical @table-padding-horizontal;
color: @table-footer-color;
background: @table-footer-bg;
}
// ============================ Header ============================
&-thead {
> tr {
> th {
position: relative;
color: @table-header-color;
font-weight: 500;
text-align: left;
background: @table-header-bg;
border-bottom: @border-width-base @border-style-base @table-border-color;
transition: background 0.3s ease;
&[colspan]:not([colspan='1']) {
text-align: center;
}
&:not(:last-child):not(.@{table-prefix-cls}-selection-column):not(.@{table-prefix-cls}-row-expand-icon-cell):not([colspan])::before {
position: absolute;
top: 50%;
right: 0;
width: 1px;
height: 1.6em;
background-color: @table-header-cell-split-color;
transform: translateY(-50%);
transition: background-color 0.3s;
content: '';
}
}
}
> tr:not(:last-child) > th {
&[colspan] {
border-bottom: 0;
}
}
}
// ============================= Body =============================
&-tbody {
> tr {
> td {
border-bottom: @border-width-base @border-style-base @table-border-color;
transition: background 0.3s;
// ========================= Nest Table ===========================
> .@{table-prefix-cls}-wrapper:only-child,
> .@{table-prefix-cls}-expanded-row-fixed > .@{table-prefix-cls}-wrapper:only-child {
.@{table-prefix-cls} {
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-expand-column-width -
@table-padding-horizontal);
&-tbody > tr:last-child > td {
border-bottom: 0;
&:first-child,
&:last-child {
border-radius: 0;
}
}
}
}
}
&.@{table-prefix-cls}-row:hover > td,
> td.@{table-prefix-cls}-cell-row-hover {
background: @table-row-hover-bg;
}
&.@{table-prefix-cls}-row-selected {
> td {
background: @table-selected-row-bg;
border-color: rgba(0, 0, 0, 0.03);
}
&:hover {
> td {
background: @table-selected-row-hover-bg;
}
}
}
}
}
// =========================== Summary ============================
&-summary {
position: relative;
z-index: @zindex-table-fixed;
background: @table-bg;
div& {
box-shadow: 0 -@border-width-base 0 @table-border-color;
}
> tr {
> th,
> td {
border-bottom: @border-width-base @border-style-base @table-border-color;
}
}
}
// ========================== Pagination ==========================
&-pagination.@{ant-prefix}-pagination {
margin: 16px 0;
}
&-pagination {
display: flex;
flex-wrap: wrap;
row-gap: @padding-xs;
> * {
flex: none;
}
&-left {
justify-content: flex-start;
}
&-center {
justify-content: center;
}
&-right {
justify-content: flex-end;
}
}
// ================================================================
// = Function =
// ================================================================
// ============================ Sorter ============================
&-thead th.@{table-prefix-cls}-column-has-sorters {
outline: none;
cursor: pointer;
transition: all 0.3s;
&:hover {
background: @table-header-sort-active-bg;
&::before {
background-color: transparent !important;
}
}
&:focus-visible {
color: @primary-color;
}
// https://github.com/ant-design/ant-design/issues/30969
&.@{table-prefix-cls}-cell-fix-left:hover,
&.@{table-prefix-cls}-cell-fix-right:hover {
background: @table-fixed-header-sort-active-bg;
}
}
&-thead th.@{table-prefix-cls}-column-sort {
background: @table-header-sort-bg;
&::before {
background-color: transparent !important;
}
}
td&-column-sort {
background: @table-body-sort-bg;
}
&-column-title {
position: relative;
z-index: 1;
flex: 1;
}
&-column-sorters {
display: flex;
flex: auto;
align-items: center;
justify-content: space-between;
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
content: '';
}
}
&-column-sorter {
margin-left: 4px;
color: @table-header-icon-color;
font-size: 0;
transition: color 0.3s;
&-inner {
display: inline-flex;
flex-direction: column;
align-items: center;
}
&-up,
&-down {
font-size: 11px;
&.active {
color: @primary-color;
}
}
&-up + &-down {
margin-top: -0.3em;
}
}
&-column-sorters:hover &-column-sorter {
color: darken(@table-header-icon-color, 10%);
}
// ============================ Filter ============================
&-filter-column {
display: flex;
justify-content: space-between;
}
&-filter-trigger {
position: relative;
display: flex;
align-items: center;
margin: -4px (-@table-padding-horizontal / 2) -4px 4px;
padding: 0 4px;
color: @table-header-icon-color;
font-size: @font-size-sm;
border-radius: @border-radius-base;
cursor: pointer;
transition: all 0.3s;
&:hover {
color: @text-color-secondary;
background: @table-header-filter-active-bg;
}
&.active {
color: @primary-color;
}
}
// Dropdown
&-filter-dropdown {
.reset-component();
min-width: 120px;
background-color: @table-filter-dropdown-bg;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
// Reset menu
.@{dropdown-prefix-cls}-menu {
// https://github.com/ant-design/ant-design/issues/4916
// https://github.com/ant-design/ant-design/issues/19542
max-height: @table-filter-dropdown-max-height;
overflow-x: hidden;
border: 0;
box-shadow: none;
&:empty::after {
display: block;
padding: 8px 0;
color: @disabled-color;
font-size: @font-size-sm;
text-align: center;
content: 'Not Found';
}
}
&-tree {
padding: 8px 8px 0;
.@{tree-prefix-cls}-treenode .@{tree-prefix-cls}-node-content-wrapper:hover {
background-color: @tree-node-hover-bg;
}
.@{tree-prefix-cls}-treenode-checkbox-checked .@{tree-prefix-cls}-node-content-wrapper {
&,
&:hover {
background-color: @tree-node-selected-bg;
}
}
}
&-search {
padding: 8px;
border-bottom: @border-width-base @border-color-split @border-style-base;
&-input {
input {
min-width: 140px;
}
.@{iconfont-css-prefix} {
color: @disabled-color;
}
}
}
&-checkall {
width: 100%;
margin-bottom: 4px;
margin-left: 4px;
}
&-submenu > ul {
max-height: calc(100vh - 130px);
overflow-x: hidden;
overflow-y: auto;
}
// Checkbox
&,
&-submenu {
.@{ant-prefix}-checkbox-wrapper + span {
padding-left: 8px;
}
}
// Operation
&-btns {
display: flex;
justify-content: space-between;
padding: 7px 8px;
overflow: hidden;
background-color: @table-filter-btns-bg;
border-top: @border-width-base @border-style-base @table-border-color;
}
}
// ========================== Selections ==========================
&-selection-col {
width: @table-selection-column-width;
}
&-bordered &-selection-col {
width: @table-selection-column-width + 18px;
}
table tr th&-selection-column,
table tr td&-selection-column {
padding-right: @padding-xs;
padding-left: @padding-xs;
text-align: center;
.@{ant-prefix}-radio-wrapper {
margin-right: 0;
}
}
table tr th&-selection-column&-cell-fix-left {
z-index: 3;
}
table tr th&-selection-column::after {
background-color: transparent !important;
}
&-selection {
position: relative;
display: inline-flex;
flex-direction: column;
&-extra {
position: absolute;
top: 0;
z-index: 1;
cursor: pointer;
transition: all 0.3s;
margin-inline-start: 100%;
padding-inline-start: (@table-padding-horizontal / 4);
.@{iconfont-css-prefix} {
color: @table-header-icon-color;
font-size: 10px;
&:hover {
color: @table-header-icon-color-hover;
}
}
}
}
// ========================== Expandable ==========================
&-expand-icon-col {
width: @table-expand-column-width;
}
&-row-expand-icon-cell {
text-align: center;
.@{table-prefix-cls}-row-expand-icon {
display: inline-flex;
float: none;
vertical-align: sub;
}
}
&-row-indent {
float: left;
height: 1px;
}
&-row-expand-icon {
.operation-unit();
position: relative;
float: left;
box-sizing: border-box;
width: @expand-icon-size;
height: @expand-icon-size;
padding: 0;
color: inherit;
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
3;
background: @table-expand-icon-bg;
border: @border-width-base @border-style-base @table-border-color;
border-radius: @border-radius-base;
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
transition: all 0.3s;
user-select: none;
@expand-icon-size: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 +
@border-width-base * 3;
&:focus,
&:hover,
&:active {
border-color: currentcolor;
}
&::before,
&::after {
position: absolute;
background: currentcolor;
transition: transform 0.3s ease-out;
content: '';
}
&::before {
top: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
right: 3px;
left: 3px;
height: @border-width-base;
}
&::after {
top: 3px;
bottom: 3px;
left: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
width: @border-width-base;
transform: rotate(90deg);
}
// Motion effect
&-collapsed::before {
transform: rotate(-180deg);
}
&-collapsed::after {
transform: rotate(0deg);
}
&-spaced {
&::before,
&::after {
display: none;
content: none;
}
background: transparent;
border: 0;
visibility: hidden;
}
.@{table-prefix-cls}-row-indent + & {
margin-top: ((@font-size-base * @line-height-base - @border-width-base * 3) / 2) -
ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
margin-right: @padding-xs;
}
}
tr&-expanded-row {
&,
&:hover {
> td {
background: @table-expanded-row-bg;
}
}
// https://github.com/ant-design/ant-design/issues/25573
.@{descriptions-prefix-cls}-view {
display: flex;
table {
flex: auto;
width: auto;
}
}
}
// With fixed
.@{table-prefix-cls}-expanded-row-fixed {
position: relative;
margin: -@table-padding-vertical -@table-padding-horizontal;
padding: @table-padding-vertical @table-padding-horizontal;
}
// ========================= Placeholder ==========================
&-tbody > tr&-placeholder {
text-align: center;
.@{table-prefix-cls}-empty & {
color: @disabled-color;
}
&:hover {
> td {
background: @component-background;
}
}
}
// ============================ Fixed =============================
&-cell-fix-left,
&-cell-fix-right {
position: sticky !important;
z-index: @zindex-table-fixed;
background: @table-bg;
}
&-cell-fix-left-first::after,
&-cell-fix-left-last::after {
position: absolute;
top: 0;
right: 0;
bottom: -1px;
width: 30px;
transform: translateX(100%);
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
&-cell-fix-left-all::after {
display: none;
}
&-cell-fix-right-first::after,
&-cell-fix-right-last::after {
position: absolute;
top: 0;
bottom: -1px;
left: 0;
width: 30px;
transform: translateX(-100%);
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
.@{table-prefix-cls}-container {
&::before,
&::after {
position: absolute;
top: 0;
bottom: 0;
z-index: calc(@table-sticky-zindex + 1);
width: 30px;
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
&::before {
left: 0;
}
&::after {
right: 0;
}
}
&-ping-left {
&:not(.@{table-prefix-cls}-has-fix-left) > .@{table-prefix-cls}-container {
position: relative;
&::before {
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
}
}
.@{table-prefix-cls}-cell-fix-left-first::after,
.@{table-prefix-cls}-cell-fix-left-last::after {
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
}
.@{table-prefix-cls}-cell-fix-left-last::before {
background-color: transparent !important;
}
}
&-ping-right {
&:not(.@{table-prefix-cls}-has-fix-right) > .@{table-prefix-cls}-container {
position: relative;
&::after {
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
.@{table-prefix-cls}-cell-fix-right-first::after,
.@{table-prefix-cls}-cell-fix-right-last::after {
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
&-sticky {
&-holder {
position: sticky;
z-index: @table-sticky-zindex;
background: @component-background;
}
&-scroll {
position: sticky;
bottom: 0;
z-index: @table-sticky-zindex;
display: flex;
align-items: center;
background: lighten(@table-border-color, 80%);
border-top: 1px solid @table-border-color;
opacity: 0.6;
&:hover {
transform-origin: center bottom;
}
&-bar {
height: 8px;
background-color: @table-sticky-scroll-bar-bg;
border-radius: @table-sticky-scroll-bar-radius;
&:hover {
background-color: @table-sticky-scroll-bar-active-bg;
}
&-active {
background-color: @table-sticky-scroll-bar-active-bg;
}
}
}
}
}
@media all and (-ms-high-contrast: none) {
.@{table-prefix-cls} {
&-ping-left {
.@{table-prefix-cls}-cell-fix-left-last::after {
box-shadow: none !important;
}
}
&-ping-right {
.@{table-prefix-cls}-cell-fix-right-first::after {
box-shadow: none !important;
}
}
}
}
@import './radius';
@import './rtl';

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

File diff suppressed because one or more lines are too long

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

@@ -0,0 +1,187 @@
nz-table,
nz-table-title-footer,
nz-table-inner-scroll,
nz-table-inner-default,
nz-table-selection {
display: block;
}
nz-filter-trigger {
display: inline-flex;
}
.nz-table-out-bordered {
> .@{table-prefix-cls}-title {
border: @table-border;
border-bottom: 0;
}
> .@{table-prefix-cls}-container {
border: @table-border;
border-bottom: 0;
}
> .@{table-prefix-cls}-footer {
border: @table-border;
border-top: 0;
}
}
cdk-virtual-scroll-viewport.ant-table-body {
overflow-y: scroll;
}
.nz-table-hide-scrollbar {
scrollbar-color: @table-header-bg @table-header-bg;
&::-webkit-scrollbar {
background-color: @table-header-bg;
}
}
.@{table-prefix-cls}.@{table-prefix-cls}-small {
.nz-table-hide-scrollbar {
scrollbar-color: @table-header-bg-sm @table-header-bg-sm;
&::-webkit-scrollbar {
background-color: transparent;
}
}
}
.ant-table-wrapper-rtl .ant-table thead > tr > th.ant-table-selection-column {
text-align: center;
}
// virtual scroll border
.@{table-prefix-cls}.@{table-prefix-cls}-bordered {
> .@{table-prefix-cls}-container {
> .cdk-virtual-scroll-viewport > .cdk-virtual-scroll-content-wrapper {
> table {
// ============================= Cell =============================
> thead > tr > th,
> tbody > tr > td,
> tfoot > tr > th,
> tfoot > tr > td {
border-right: @table-border;
}
// ============================ Header ============================
> thead {
> tr:not(:last-child) > th {
border-bottom: @border-width-base @border-style-base @table-border-color;
}
}
// Fixed right should provides additional border
> thead > tr,
> tbody > tr,
> tfoot > tr {
> .@{table-prefix-cls}-cell-fix-right-first::after {
border-right: @table-border;
}
}
}
// ========================== Expandable ==========================
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical (-@table-padding-horizontal - @border-width-base);
&::after {
position: absolute;
top: 0;
right: @border-width-base;
bottom: 0;
border-right: @table-border;
content: '';
}
}
}
}
}
&.@{table-prefix-cls}-scroll-horizontal {
> .@{table-prefix-cls}-container > .cdk-virtual-scroll-viewport > .cdk-virtual-scroll-content-wrapper {
> table > tbody {
> tr.@{table-prefix-cls}-expanded-row,
> tr.@{table-prefix-cls}-placeholder {
> td {
border-right: 0;
}
}
}
}
}
// Size related
&.@{table-prefix-cls}-middle {
> .@{table-prefix-cls}-container {
> .cdk-virtual-scroll-viewport > .cdk-virtual-scroll-content-wrapper {
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-md (-@table-padding-horizontal-md - @border-width-base);
}
}
}
}
}
&.@{table-prefix-cls}-small {
> .@{table-prefix-cls}-container {
> .cdk-virtual-scroll-viewport > .cdk-virtual-scroll-content-wrapper {
> table > tbody > tr > td {
> .@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-sm (-@table-padding-horizontal-sm - @border-width-base);
}
}
}
}
}
}
.@{table-prefix-cls}-custom-column {
col {
display: none;
width: auto !important;
min-width: auto !important;
}
.@{table-prefix-cls}-thead {
.@{table-prefix-cls}-row, tr {
display: flex;
justify-content: space-between;
width: 100%;
th {
overflow: hidden;
}
}
}
.@{table-prefix-cls}-tbody {
.@{table-prefix-cls}-row, tr {
display: flex;
justify-content: space-between;
width: 100%;
td {
overflow: hidden;
}
.nz-disable-td {
width: 100%;
}
}
}
.ant-table-fixed {
tr {
.ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first {
overflow: visible;
}
}
.@{table-prefix-cls}-row {
width: 100%;
}
}
}

49
node_modules/ng-zorro-antd/table/style/radius.less generated vendored Normal file
View File

@@ -0,0 +1,49 @@
// ================================================================
// = Border Radius =
// ================================================================
.@{table-prefix-cls} {
/* title + table */
&-title {
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
}
&-title + &-container {
border-top-left-radius: 0;
border-top-right-radius: 0;
table {
border-radius: 0;
> thead > tr:first-child {
th:first-child {
border-radius: 0;
}
th:last-child {
border-radius: 0;
}
}
}
}
/* table */
&-container {
border-top-left-radius: @table-border-radius-base;
border-top-right-radius: @table-border-radius-base;
table > thead > tr:first-child {
th:first-child {
border-top-left-radius: @table-border-radius-base;
}
th:last-child {
border-top-right-radius: @table-border-radius-base;
}
}
}
/* table + footer */
&-footer {
border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
}
}

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

@@ -0,0 +1,168 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@table-prefix-cls: ~'@{ant-prefix}-table';
@table-wrapepr-cls: ~'@{table-prefix-cls}-wrapper';
@table-wrapepr-rtl-cls: ~'@{table-prefix-cls}-wrapper-rtl';
.@{table-prefix-cls}-wrapper {
&-rtl {
direction: rtl;
}
}
.@{table-prefix-cls} {
&-rtl {
direction: rtl;
}
table {
.@{table-wrapepr-rtl-cls} & {
text-align: right;
}
}
// ============================ Header ============================
&-thead {
> tr {
> th {
&[colspan]:not([colspan='1']) {
.@{table-wrapepr-rtl-cls} & {
text-align: center;
}
}
&:not(:last-child):not(.@{table-prefix-cls}-selection-column):not(.@{table-prefix-cls}-row-expand-icon-cell):not([colspan])::before {
.@{table-wrapepr-rtl-cls} & {
right: auto;
left: 0;
}
}
.@{table-wrapepr-rtl-cls} & {
text-align: right;
}
}
}
}
// ============================= Body =============================
&-tbody {
> tr {
// ========================= Nest Table ===========================
.@{table-prefix-cls}-wrapper:only-child {
.@{table-prefix-cls}.@{table-prefix-cls}-rtl {
margin: -@table-padding-vertical (@table-padding-horizontal + ceil(@font-size-sm * 1.4)) -@table-padding-vertical -@table-padding-horizontal;
}
}
}
}
// ========================== Pagination ==========================
&-pagination {
&-left {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
justify-content: flex-end;
}
}
&-right {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
justify-content: flex-start;
}
}
}
// ================================================================
// = Function =
// ================================================================
// ============================ Sorter ============================
&-column-sorter {
.@{table-wrapepr-rtl-cls} & {
margin-right: 4px;
margin-left: 0;
}
}
// ============================ Filter ============================
&-filter-column-title {
.@{table-wrapepr-rtl-cls} & {
padding: @table-padding-vertical @table-padding-horizontal @table-padding-vertical 2.3em;
}
}
&-thead tr th.@{table-prefix-cls}-column-has-sorters {
.@{table-prefix-cls}-filter-column-title {
.@{table-prefix-cls}-rtl & {
padding: 0 0 0 2.3em;
}
}
}
&-filter-trigger {
.@{table-wrapepr-rtl-cls} & {
margin: -4px 4px -4px (-@table-padding-horizontal / 2);
}
}
// Dropdown
&-filter-dropdown {
// Checkbox
&,
&-submenu {
.@{ant-prefix}-checkbox-wrapper + span {
.@{ant-prefix}-dropdown-rtl &,
.@{ant-prefix}-dropdown-menu-submenu-rtl& {
padding-right: 8px;
padding-left: 0;
}
}
}
}
// ========================== Selections ==========================
&-selection {
.@{table-wrapepr-rtl-cls} & {
text-align: center;
}
}
// ========================== Expandable ==========================
&-row-indent {
.@{table-wrapepr-rtl-cls} & {
float: right;
}
}
&-row-expand-icon {
.@{table-wrapepr-rtl-cls} & {
float: right;
}
.@{table-prefix-cls}-row-indent + & {
.@{table-wrapepr-rtl-cls} & {
margin-right: 0;
margin-left: @padding-xs;
}
}
&::after {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(-90deg);
}
}
&-collapsed::before {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(180deg);
}
}
&-collapsed::after {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(0deg);
}
}
}
}

51
node_modules/ng-zorro-antd/table/style/size.less generated vendored Normal file
View File

@@ -0,0 +1,51 @@
@import (reference) '../../style/themes/index';
@table-prefix-cls: ~'@{ant-prefix}-table';
.table-size(@size, @padding-vertical, @padding-horizontal, @font-size) {
.@{table-prefix-cls}.@{table-prefix-cls}-@{size} {
font-size: @font-size;
.@{table-prefix-cls}-title,
.@{table-prefix-cls}-footer,
.@{table-prefix-cls}-thead > tr > th,
.@{table-prefix-cls}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td {
padding: @padding-vertical @padding-horizontal;
}
.@{table-prefix-cls}-filter-trigger {
margin-right: -(@padding-horizontal / 2);
}
.@{table-prefix-cls}-expanded-row-fixed {
margin: -@padding-vertical -@padding-horizontal;
}
.@{table-prefix-cls}-tbody {
// ========================= Nest Table ===========================
.@{table-prefix-cls}-wrapper:only-child {
.@{table-prefix-cls} {
margin: -@padding-vertical -@padding-horizontal -@padding-vertical (@table-expand-column-width -
@padding-horizontal);
}
}
}
// https://github.com/ant-design/ant-design/issues/35167
.@{table-prefix-cls}-selection-column {
padding-inline-start: (@padding-horizontal / 4);
}
}
}
// ================================================================
// = Middle =
// ================================================================
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md, @table-font-size-md);
// ================================================================
// = Small =
// ================================================================
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm, @table-font-size-sm);