@ng-nest/ui 12.0.10 → 12.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/alert.component.d.ts +2 -1
- package/bundles/ng-nest-ui-alert.umd.js +6 -1
- package/bundles/ng-nest-ui-alert.umd.js.map +1 -1
- package/bundles/ng-nest-ui-carousel.umd.js +10 -10
- package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
- package/bundles/ng-nest-ui-core.umd.js.map +1 -1
- package/bundles/ng-nest-ui-dialog.umd.js +284 -32
- package/bundles/ng-nest-ui-dialog.umd.js.map +1 -1
- package/bundles/ng-nest-ui-drawer.umd.js +245 -14
- package/bundles/ng-nest-ui-drawer.umd.js.map +1 -1
- package/bundles/ng-nest-ui-find.umd.js +27 -3
- package/bundles/ng-nest-ui-find.umd.js.map +1 -1
- package/bundles/ng-nest-ui-input.umd.js +2 -1
- package/bundles/ng-nest-ui-input.umd.js.map +1 -1
- package/bundles/ng-nest-ui-menu.umd.js +1 -1
- package/bundles/ng-nest-ui-menu.umd.js.map +1 -1
- package/bundles/ng-nest-ui-message.umd.js +52 -16
- package/bundles/ng-nest-ui-message.umd.js.map +1 -1
- package/bundles/ng-nest-ui-popconfirm.umd.js +33 -4
- package/bundles/ng-nest-ui-popconfirm.umd.js.map +1 -1
- package/bundles/ng-nest-ui-popover.umd.js +13 -2
- package/bundles/ng-nest-ui-popover.umd.js.map +1 -1
- package/bundles/ng-nest-ui-portal.umd.js +8 -8
- package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
- package/bundles/ng-nest-ui-progress.umd.js +235 -20
- package/bundles/ng-nest-ui-progress.umd.js.map +1 -1
- package/bundles/ng-nest-ui-select.umd.js +1 -1
- package/bundles/ng-nest-ui-steps.umd.js +19 -7
- package/bundles/ng-nest-ui-steps.umd.js.map +1 -1
- package/bundles/ng-nest-ui-table.umd.js +9 -5
- package/bundles/ng-nest-ui-table.umd.js.map +1 -1
- package/carousel/carousel-panel.component.d.ts +2 -3
- package/core/config/config.d.ts +7 -0
- package/core/interfaces/layout.type.d.ts +1 -1
- package/dialog/dialog-container.component.d.ts +18 -0
- package/dialog/dialog-container.directives.d.ts +24 -0
- package/dialog/dialog-ref.d.ts +9 -0
- package/dialog/dialog.module.d.ts +13 -11
- package/dialog/dialog.property.d.ts +84 -6
- package/dialog/dialog.service.d.ts +19 -0
- package/dialog/public-api.d.ts +4 -0
- package/drawer/drawer-container.component.d.ts +18 -0
- package/drawer/drawer-container.directives.d.ts +19 -0
- package/drawer/drawer-ref.d.ts +9 -0
- package/drawer/drawer.module.d.ts +8 -6
- package/drawer/drawer.property.d.ts +83 -2
- package/drawer/drawer.service.d.ts +19 -0
- package/drawer/public-api.d.ts +5 -0
- package/esm2015/alert/alert.component.js +8 -3
- package/esm2015/carousel/carousel-panel.component.js +12 -11
- package/esm2015/core/config/config.js +1 -1
- package/esm2015/core/interfaces/layout.type.js +1 -1
- package/esm2015/dialog/dialog-container.component.js +59 -0
- package/esm2015/dialog/dialog-container.directives.js +73 -0
- package/esm2015/dialog/dialog-ref.js +17 -0
- package/esm2015/dialog/dialog.component.js +2 -2
- package/esm2015/dialog/dialog.module.js +37 -7
- package/esm2015/dialog/dialog.property.js +17 -16
- package/esm2015/dialog/dialog.service.js +67 -0
- package/esm2015/dialog/public-api.js +5 -1
- package/esm2015/drawer/drawer-container.component.js +59 -0
- package/esm2015/drawer/drawer-container.directives.js +57 -0
- package/esm2015/drawer/drawer-ref.js +17 -0
- package/esm2015/drawer/drawer.component.js +2 -2
- package/esm2015/drawer/drawer.module.js +22 -6
- package/esm2015/drawer/drawer.property.js +22 -6
- package/esm2015/drawer/drawer.service.js +65 -0
- package/esm2015/drawer/public-api.js +6 -1
- package/esm2015/find/find.component.js +12 -3
- package/esm2015/find/find.property.js +18 -2
- package/esm2015/input/input.component.js +3 -2
- package/esm2015/menu/menu.component.js +2 -2
- package/esm2015/message/message-ref.js +12 -0
- package/esm2015/message/message.component.js +3 -3
- package/esm2015/message/message.property.js +2 -2
- package/esm2015/message/message.service.js +37 -15
- package/esm2015/message/public-api.js +2 -1
- package/esm2015/popconfirm/popconfirm.component.js +25 -4
- package/esm2015/popconfirm/popconfirm.property.js +10 -3
- package/esm2015/popover/popover.directive.js +8 -2
- package/esm2015/popover/popover.property.js +7 -2
- package/esm2015/portal/portal.module.js +4 -3
- package/esm2015/portal/portal.service.js +8 -9
- package/esm2015/progress/progress.component.js +177 -15
- package/esm2015/progress/progress.property.js +50 -3
- package/esm2015/select/select.component.js +1 -1
- package/esm2015/steps/steps.component.js +14 -7
- package/esm2015/steps/steps.property.js +8 -3
- package/esm2015/table/table-body.component.js +3 -3
- package/esm2015/table/table.component.js +2 -2
- package/esm2015/table/table.property.js +7 -3
- package/fesm2015/ng-nest-ui-alert.js +7 -2
- package/fesm2015/ng-nest-ui-alert.js.map +1 -1
- package/fesm2015/ng-nest-ui-carousel.js +9 -9
- package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
- package/fesm2015/ng-nest-ui-core.js.map +1 -1
- package/fesm2015/ng-nest-ui-dialog.js +254 -25
- package/fesm2015/ng-nest-ui-dialog.js.map +1 -1
- package/fesm2015/ng-nest-ui-drawer.js +224 -13
- package/fesm2015/ng-nest-ui-drawer.js.map +1 -1
- package/fesm2015/ng-nest-ui-find.js +28 -3
- package/fesm2015/ng-nest-ui-find.js.map +1 -1
- package/fesm2015/ng-nest-ui-input.js +2 -1
- package/fesm2015/ng-nest-ui-input.js.map +1 -1
- package/fesm2015/ng-nest-ui-menu.js +1 -1
- package/fesm2015/ng-nest-ui-menu.js.map +1 -1
- package/fesm2015/ng-nest-ui-message.js +50 -17
- package/fesm2015/ng-nest-ui-message.js.map +1 -1
- package/fesm2015/ng-nest-ui-popconfirm.js +33 -5
- package/fesm2015/ng-nest-ui-popconfirm.js.map +1 -1
- package/fesm2015/ng-nest-ui-popover.js +13 -2
- package/fesm2015/ng-nest-ui-popover.js.map +1 -1
- package/fesm2015/ng-nest-ui-portal.js +10 -10
- package/fesm2015/ng-nest-ui-portal.js.map +1 -1
- package/fesm2015/ng-nest-ui-progress.js +225 -17
- package/fesm2015/ng-nest-ui-progress.js.map +1 -1
- package/fesm2015/ng-nest-ui-select.js +1 -1
- package/fesm2015/ng-nest-ui-steps.js +20 -8
- package/fesm2015/ng-nest-ui-steps.js.map +1 -1
- package/fesm2015/ng-nest-ui-table.js +9 -5
- package/fesm2015/ng-nest-ui-table.js.map +1 -1
- package/find/find.property.d.ts +31 -1
- package/message/message-ref.d.ts +8 -0
- package/message/message.component.d.ts +3 -3
- package/message/message.property.d.ts +24 -4
- package/message/message.service.d.ts +4 -1
- package/message/public-api.d.ts +1 -0
- package/package.json +1 -1
- package/popconfirm/popconfirm.component.d.ts +6 -2
- package/popconfirm/popconfirm.property.d.ts +13 -2
- package/popover/popover.property.d.ts +6 -1
- package/portal/portal.module.d.ts +1 -1
- package/portal/portal.service.d.ts +2 -3
- package/progress/progress.component.d.ts +31 -3
- package/progress/progress.property.d.ts +80 -5
- package/steps/steps.property.d.ts +7 -2
- package/table/table.property.d.ts +24 -3
|
@@ -46,13 +46,18 @@ export declare class XPopoverProperty extends XProperty {
|
|
|
46
46
|
* @en_US Show/hide control
|
|
47
47
|
*/
|
|
48
48
|
visible?: XBoolean;
|
|
49
|
+
/**
|
|
50
|
+
* @zh_CN 条件触发
|
|
51
|
+
* @en_US condition trigger
|
|
52
|
+
*/
|
|
53
|
+
condition?: XBoolean;
|
|
49
54
|
/**
|
|
50
55
|
* @zh_CN 显示/隐藏改变的事件
|
|
51
56
|
* @en_US Show/hide changed events
|
|
52
57
|
*/
|
|
53
58
|
visibleChange: EventEmitter<XBoolean>;
|
|
54
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<XPopoverProperty, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<XPopoverProperty, "[x-popover], x-popover", never, { "title": "title"; "content": "content"; "footer": "footer"; "placement": "placement"; "trigger": "trigger"; "width": "width"; "visible": "visible"; }, { "visibleChange": "visibleChange"; }, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XPopoverProperty, "[x-popover], x-popover", never, { "title": "title"; "content": "content"; "footer": "footer"; "placement": "placement"; "trigger": "trigger"; "width": "width"; "visible": "visible"; "condition": "condition"; }, { "visibleChange": "visibleChange"; }, never>;
|
|
56
61
|
}
|
|
57
62
|
/**
|
|
58
63
|
* @zh_CN 激活方式
|
|
@@ -3,6 +3,6 @@ import * as i1 from "@angular/cdk/overlay";
|
|
|
3
3
|
import * as i2 from "@angular/cdk/portal";
|
|
4
4
|
export declare class XPortalModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<XPortalModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XPortalModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule],
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XPortalModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule], [typeof i1.OverlayModule, typeof i2.PortalModule]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<XPortalModule>;
|
|
8
8
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Injector,
|
|
1
|
+
import { Injector, ElementRef, ViewContainerRef, StaticProvider } from '@angular/core';
|
|
2
2
|
import { Overlay, OverlayRef, PositionStrategy, ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
-
import { PortalInjector } from '@angular/cdk/portal';
|
|
4
3
|
import { XPortalProperty, XPortalOverlayRef } from './portal.property';
|
|
5
4
|
import { XPlacement, XPosition, XPlace } from '@ng-nest/ui/core';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +11,7 @@ export declare class XPortalService {
|
|
|
12
11
|
injector: Injector;
|
|
13
12
|
constructor(overlay: Overlay, injector: Injector);
|
|
14
13
|
attach<T>(option: XPortalProperty): XPortalOverlayRef<T>;
|
|
15
|
-
createInjector(
|
|
14
|
+
createInjector(providers: StaticProvider[], viewContainerRef?: ViewContainerRef): Injector;
|
|
16
15
|
setPlacement(param?: {
|
|
17
16
|
elementRef?: ElementRef;
|
|
18
17
|
placement?: XPlace[] | XPlacement[];
|
|
@@ -1,19 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Renderer2, ElementRef, ChangeDetectorRef, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
2
|
import { XProgressProperty } from './progress.property';
|
|
3
3
|
import { XNumber, XConfigService } from '@ng-nest/ui/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class XProgressComponent extends XProgressProperty implements
|
|
5
|
+
export declare class XProgressComponent extends XProgressProperty implements OnChanges {
|
|
6
6
|
renderer: Renderer2;
|
|
7
7
|
elementRef: ElementRef;
|
|
8
8
|
cdr: ChangeDetectorRef;
|
|
9
9
|
configService: XConfigService;
|
|
10
10
|
currentColor: string;
|
|
11
|
+
linearGradient: string;
|
|
12
|
+
stepsArray: Array<boolean>;
|
|
13
|
+
circleClipPath: string;
|
|
14
|
+
dashboardClipPath: string;
|
|
15
|
+
dashboardRailClipPath: string;
|
|
16
|
+
subLinearGradient: string;
|
|
17
|
+
get maskWidth(): number;
|
|
11
18
|
constructor(renderer: Renderer2, elementRef: ElementRef, cdr: ChangeDetectorRef, configService: XConfigService);
|
|
12
|
-
ngOnInit(): void;
|
|
13
19
|
ngOnChanges(simples: SimpleChanges): void;
|
|
14
20
|
setClassMap(): void;
|
|
15
21
|
setColor(): void;
|
|
16
22
|
getLevelColor(percent: XNumber): string;
|
|
23
|
+
setGradient(): void;
|
|
24
|
+
sortGradient(percents: {
|
|
25
|
+
[percent: string]: string;
|
|
26
|
+
}): {
|
|
27
|
+
key: number;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
setSubLinearGradient(): void;
|
|
31
|
+
setSteps(): void;
|
|
32
|
+
setType(): void;
|
|
33
|
+
/**
|
|
34
|
+
* circle �е� 100% ���� clip-path �е� 400%
|
|
35
|
+
*/
|
|
36
|
+
setCircleClipPath(): void;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* 90 polygon(50% 50%, 0% 100%, 0% 0%, 100% 0%, 100% 100%);
|
|
40
|
+
* 180 polygon(50% 50%, 0% 50%, 0% 0%, 100% 0%, 100% 50%);
|
|
41
|
+
* 270 polygon(50% 50%, 0% 0%, 100% 0%);
|
|
42
|
+
*/
|
|
43
|
+
setDashboardClipPath(): void;
|
|
44
|
+
setCircleClipPathValue(start: string, railValue: number): void;
|
|
17
45
|
onFormat(percent: XNumber): any;
|
|
18
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<XProgressComponent, never>;
|
|
19
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<XProgressComponent, "x-progress", never, {}, {}, never, never>;
|
|
@@ -10,6 +10,11 @@ export declare const XProgressPrefix = "x-progress";
|
|
|
10
10
|
* Progress Property
|
|
11
11
|
*/
|
|
12
12
|
export declare class XProgressProperty extends XProperty {
|
|
13
|
+
/**
|
|
14
|
+
* @zh_CN 进度条类型
|
|
15
|
+
* @en_US Progress bar type
|
|
16
|
+
*/
|
|
17
|
+
type: XProgressType;
|
|
13
18
|
/**
|
|
14
19
|
* @zh_CN 显示进度 0-100
|
|
15
20
|
* @en_US Show progress 0-100
|
|
@@ -44,20 +49,90 @@ export declare class XProgressProperty extends XProperty {
|
|
|
44
49
|
* @zh_CN 自定义颜色
|
|
45
50
|
* @en_US Custom color
|
|
46
51
|
*/
|
|
47
|
-
color?:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
color?: XProgressColor;
|
|
53
|
+
/**
|
|
54
|
+
* @zh_CN 渐变颜色
|
|
55
|
+
* @en_US Gradient color
|
|
56
|
+
*/
|
|
57
|
+
gradient?: XProgressGradient;
|
|
58
|
+
/**
|
|
59
|
+
* @zh_CN 步骤进度条
|
|
60
|
+
* @en_US Steps progress bar
|
|
61
|
+
*/
|
|
62
|
+
steps?: number;
|
|
63
|
+
/**
|
|
64
|
+
* @zh_CN 单个步骤的宽度
|
|
65
|
+
* @en_US Single step width
|
|
66
|
+
*/
|
|
67
|
+
stepWidth?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @zh_CN 单个步骤的宽度自适应
|
|
70
|
+
* @en_US Single step width flex
|
|
71
|
+
*/
|
|
72
|
+
stepFlex?: XBoolean;
|
|
73
|
+
/**
|
|
74
|
+
* @zh_CN 圆环/仪表盘厚度
|
|
75
|
+
* @en_US Ring thickness
|
|
76
|
+
*/
|
|
77
|
+
thickness?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @zh_CN 圆环/仪表盘尺寸
|
|
80
|
+
* @en_US Ring size
|
|
81
|
+
*/
|
|
82
|
+
size?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @zh_CN 仪表盘缺口角度 0~300
|
|
85
|
+
* @en_US Dashboard notch angle
|
|
86
|
+
*/
|
|
87
|
+
notchAngle?: number;
|
|
88
|
+
/**
|
|
89
|
+
* @zh_CN 分段显示颜色,只适用 type = 'line'
|
|
90
|
+
* @en_US Segmentation display color, only use of type = 'line'
|
|
91
|
+
*/
|
|
92
|
+
subsection?: XBoolean;
|
|
51
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<XProgressProperty, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XProgressProperty, "ng-component", never, { "percent": "percent"; "height": "height"; "status": "status"; "info": "info"; "inside": "inside"; "format": "format"; "color": "color"; }, {}, never, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XProgressProperty, "ng-component", never, { "type": "type"; "percent": "percent"; "height": "height"; "status": "status"; "info": "info"; "inside": "inside"; "format": "format"; "color": "color"; "gradient": "gradient"; "steps": "steps"; "stepWidth": "stepWidth"; "stepFlex": "stepFlex"; "thickness": "thickness"; "size": "size"; "notchAngle": "notchAngle"; "subsection": "subsection"; }, {}, never, never>;
|
|
53
95
|
}
|
|
54
96
|
/**
|
|
55
97
|
* @zh_CN 进度条类型
|
|
56
98
|
* @en_US Progress bar type
|
|
57
99
|
*/
|
|
58
100
|
export declare type XProgressType = 'line' | 'circle' | 'dashboard';
|
|
101
|
+
/**
|
|
102
|
+
* @zh_CN 进度条颜色
|
|
103
|
+
* @en_US Progress bar color
|
|
104
|
+
*/
|
|
105
|
+
export declare type XProgressColor = string | XProgressColorNode[] | Function;
|
|
106
|
+
/**
|
|
107
|
+
* @zh_CN 进度条节点颜色
|
|
108
|
+
* @en_US Progress bar node color
|
|
109
|
+
*/
|
|
110
|
+
export interface XProgressColorNode {
|
|
111
|
+
/**
|
|
112
|
+
* @zh_CN 颜色
|
|
113
|
+
* @en_US Color
|
|
114
|
+
*/
|
|
115
|
+
color: string;
|
|
116
|
+
/**
|
|
117
|
+
* @zh_CN 百分比
|
|
118
|
+
* @en_US Percent
|
|
119
|
+
*/
|
|
120
|
+
percent: number;
|
|
121
|
+
}
|
|
59
122
|
/**
|
|
60
123
|
* @zh_CN 状态
|
|
61
124
|
* @en_US Status
|
|
62
125
|
*/
|
|
63
126
|
export declare type XProgressStatus = 'normal' | 'active' | 'success' | 'exception' | 'warning';
|
|
127
|
+
/**
|
|
128
|
+
* @zh_CN 渐变颜色
|
|
129
|
+
* @en_US Gradient color
|
|
130
|
+
*/
|
|
131
|
+
export declare type XProgressGradient = {
|
|
132
|
+
direction?: string;
|
|
133
|
+
} & ({
|
|
134
|
+
from: string;
|
|
135
|
+
to: string;
|
|
136
|
+
} | {
|
|
137
|
+
[percent: string]: string;
|
|
138
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XData, XProperty, XParentIdentityProperty, XNumber, XTemplate } from '@ng-nest/ui/core';
|
|
1
|
+
import { XData, XProperty, XParentIdentityProperty, XNumber, XTemplate, XBoolean } from '@ng-nest/ui/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Steps
|
|
@@ -40,8 +40,13 @@ export declare class XStepsProperty extends XProperty {
|
|
|
40
40
|
* @en_US Custom node
|
|
41
41
|
*/
|
|
42
42
|
customTpl?: XTemplate;
|
|
43
|
+
/**
|
|
44
|
+
* @zh_CN 节点设置的状态优先,将不会自动计算当前节点,`activatedIndex` 和 `status` 将失效
|
|
45
|
+
* @en_US the status set by the node takes precedence, and the current node will not be calculated, `activatedIndex` and `status` will be invalidated
|
|
46
|
+
*/
|
|
47
|
+
nodeStatus?: XBoolean;
|
|
43
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<XStepsProperty, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XStepsProperty, "ng-component", never, { "data": "data"; "layout": "layout"; "activatedIndex": "activatedIndex"; "startIndex": "startIndex"; "status": "status"; "customTpl": "customTpl"; }, {}, never, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XStepsProperty, "ng-component", never, { "data": "data"; "layout": "layout"; "activatedIndex": "activatedIndex"; "startIndex": "startIndex"; "status": "status"; "customTpl": "customTpl"; "nodeStatus": "nodeStatus"; }, {}, never, never>;
|
|
45
50
|
}
|
|
46
51
|
export interface XStepsNode extends XParentIdentityProperty<XStepsNode> {
|
|
47
52
|
/**
|
|
@@ -62,6 +62,13 @@ export declare class XTableProperty extends XPaginationProperty implements XTabl
|
|
|
62
62
|
* @en_US Column content custom template
|
|
63
63
|
*/
|
|
64
64
|
bodyColumnTpl: XTableTemplate;
|
|
65
|
+
/**
|
|
66
|
+
* @zh_CN 行条件样式
|
|
67
|
+
* @en_US Row condition class
|
|
68
|
+
*/
|
|
69
|
+
rowClass?: (row: XTableRow, index: number) => {
|
|
70
|
+
[className: string]: boolean;
|
|
71
|
+
};
|
|
65
72
|
/**
|
|
66
73
|
* @zh_CN 排序点击的事件
|
|
67
74
|
* @en_US Sort click events
|
|
@@ -143,7 +150,7 @@ export declare class XTableProperty extends XPaginationProperty implements XTabl
|
|
|
143
150
|
*/
|
|
144
151
|
rowSize?: XSize;
|
|
145
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<XTableProperty, never>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XTableProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "rowHeight": "rowHeight"; "loading": "loading"; "bordered": "bordered"; "showHeader": "showHeader"; "activatedRow": "activatedRow"; "headColumnTpl": "headColumnTpl"; "bodyColumnTpl": "bodyColumnTpl"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "bodyHeight": "bodyHeight"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "checkedRow": "checkedRow"; "manual": "manual"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowSize": "rowSize"; }, { "activatedRowChange": "activatedRowChange"; "sortChange": "sortChange"; "manualChange": "manualChange"; }, never, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XTableProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "rowHeight": "rowHeight"; "loading": "loading"; "bordered": "bordered"; "showHeader": "showHeader"; "activatedRow": "activatedRow"; "headColumnTpl": "headColumnTpl"; "bodyColumnTpl": "bodyColumnTpl"; "rowClass": "rowClass"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "bodyHeight": "bodyHeight"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "checkedRow": "checkedRow"; "manual": "manual"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowSize": "rowSize"; }, { "activatedRowChange": "activatedRowChange"; "sortChange": "sortChange"; "manualChange": "manualChange"; }, never, never>;
|
|
147
154
|
}
|
|
148
155
|
/**
|
|
149
156
|
* Table Option
|
|
@@ -185,6 +192,13 @@ export interface XTableOption extends XPaginationOption {
|
|
|
185
192
|
* @en_US Column content custom template
|
|
186
193
|
*/
|
|
187
194
|
bodyColumnTpl?: XTableTemplate;
|
|
195
|
+
/**
|
|
196
|
+
* @zh_CN 行条件样式
|
|
197
|
+
* @en_US Row condition class
|
|
198
|
+
*/
|
|
199
|
+
rowClass?: (row: XTableRow, index: number) => {
|
|
200
|
+
[className: string]: boolean;
|
|
201
|
+
};
|
|
188
202
|
/**
|
|
189
203
|
* @zh_CN 开启虚拟滚动
|
|
190
204
|
* @en_US Turn on virtual scrolling
|
|
@@ -354,7 +368,7 @@ export interface XTableCell {
|
|
|
354
368
|
* @zh_CN 宽度
|
|
355
369
|
* @en_US Width
|
|
356
370
|
*/
|
|
357
|
-
width?:
|
|
371
|
+
width?: number;
|
|
358
372
|
/**
|
|
359
373
|
* @zh_CN 固定列,距离左边的距离
|
|
360
374
|
* @en_US Fixed column, distance from left
|
|
@@ -524,8 +538,15 @@ export declare class XTableBodyProperty extends XProperty {
|
|
|
524
538
|
* @en_US Cell config rules
|
|
525
539
|
*/
|
|
526
540
|
cellConfig?: XTableCellConfigRule;
|
|
541
|
+
/**
|
|
542
|
+
* @zh_CN 行条件样式
|
|
543
|
+
* @en_US Row condition class
|
|
544
|
+
*/
|
|
545
|
+
rowClass?: (row: XTableRow, index: number) => {
|
|
546
|
+
[className: string]: boolean;
|
|
547
|
+
};
|
|
527
548
|
static ɵfac: i0.ɵɵFactoryDeclaration<XTableBodyProperty, never>;
|
|
528
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XTableBodyProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "columnTpl": "columnTpl"; "activatedRow": "activatedRow"; "rowHeight": "rowHeight"; "bodyHeight": "bodyHeight"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "scroll": "scroll"; "cellConfig": "cellConfig"; }, { "activatedRowChange": "activatedRowChange"; }, never, never>;
|
|
549
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XTableBodyProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "columnTpl": "columnTpl"; "activatedRow": "activatedRow"; "rowHeight": "rowHeight"; "bodyHeight": "bodyHeight"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowClass": "rowClass"; }, { "activatedRowChange": "activatedRowChange"; }, never, never>;
|
|
529
550
|
}
|
|
530
551
|
/**
|
|
531
552
|
* Table Foot
|