@delon/chart 19.2.0 → 20.0.0-beta.0
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/bar/index.d.ts +47 -5
- package/card/index.d.ts +35 -5
- package/chart-echarts/index.d.ts +85 -5
- package/core/index.d.ts +71 -5
- package/custom/index.d.ts +27 -5
- package/fesm2022/bar.mjs +8 -9
- package/fesm2022/bar.mjs.map +1 -1
- package/fesm2022/card.mjs +9 -9
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/chart-echarts.mjs +11 -14
- package/fesm2022/chart-echarts.mjs.map +1 -1
- package/fesm2022/core.mjs +7 -7
- package/fesm2022/custom.mjs +8 -9
- package/fesm2022/custom.mjs.map +1 -1
- package/fesm2022/gauge.mjs +8 -9
- package/fesm2022/gauge.mjs.map +1 -1
- package/fesm2022/mini-area.mjs +8 -9
- package/fesm2022/mini-area.mjs.map +1 -1
- package/fesm2022/mini-bar.mjs +8 -9
- package/fesm2022/mini-bar.mjs.map +1 -1
- package/fesm2022/mini-progress.mjs +11 -12
- package/fesm2022/mini-progress.mjs.map +1 -1
- package/fesm2022/number-info.mjs +9 -9
- package/fesm2022/number-info.mjs.map +1 -1
- package/fesm2022/pie.mjs +9 -9
- package/fesm2022/pie.mjs.map +1 -1
- package/fesm2022/radar.mjs +9 -9
- package/fesm2022/radar.mjs.map +1 -1
- package/fesm2022/single-bar.mjs +8 -9
- package/fesm2022/single-bar.mjs.map +1 -1
- package/fesm2022/tag-cloud.mjs +8 -9
- package/fesm2022/tag-cloud.mjs.map +1 -1
- package/fesm2022/timeline.mjs +8 -9
- package/fesm2022/timeline.mjs.map +1 -1
- package/fesm2022/trend.mjs +8 -9
- package/fesm2022/trend.mjs.map +1 -1
- package/fesm2022/water-wave.mjs +9 -9
- package/fesm2022/water-wave.mjs.map +1 -1
- package/gauge/index.d.ts +29 -5
- package/index.d.ts +2 -5
- package/mini-area/index.d.ts +50 -5
- package/mini-bar/index.d.ts +42 -5
- package/mini-progress/index.d.ts +29 -5
- package/number-info/index.d.ts +35 -5
- package/package.json +3 -3
- package/pie/index.d.ts +80 -5
- package/radar/index.d.ts +51 -5
- package/single-bar/index.d.ts +38 -5
- package/tag-cloud/index.d.ts +42 -5
- package/timeline/index.d.ts +79 -3
- package/trend/index.d.ts +24 -5
- package/water-wave/index.d.ts +42 -5
- package/bar/bar.component.d.ts +0 -34
- package/bar/bar.module.d.ts +0 -10
- package/bar/public_api.d.ts +0 -2
- package/card/card.component.d.ts +0 -22
- package/card/card.module.d.ts +0 -11
- package/card/public_api.d.ts +0 -2
- package/chart-echarts/echarts.component.d.ts +0 -40
- package/chart-echarts/echarts.module.d.ts +0 -9
- package/chart-echarts/echarts.service.d.ts +0 -20
- package/chart-echarts/echarts.types.d.ts +0 -18
- package/chart-echarts/public_api.d.ts +0 -4
- package/core/g2.base.component.d.ts +0 -44
- package/core/g2.servicce.d.ts +0 -20
- package/core/public_api.d.ts +0 -5
- package/core/types/interaction.d.ts +0 -1
- package/core/types/time.d.ts +0 -1
- package/core/utils.d.ts +0 -2
- package/custom/custom.component.d.ts +0 -16
- package/custom/custom.module.d.ts +0 -9
- package/custom/public_api.d.ts +0 -2
- package/gauge/gauge.component.d.ts +0 -18
- package/gauge/gauge.module.d.ts +0 -9
- package/gauge/public_api.d.ts +0 -2
- package/mini-area/mini-area.component.d.ts +0 -39
- package/mini-area/mini-area.module.d.ts +0 -8
- package/mini-area/public_api.d.ts +0 -2
- package/mini-bar/mini-bar.component.d.ts +0 -31
- package/mini-bar/mini-bar.module.d.ts +0 -8
- package/mini-bar/public_api.d.ts +0 -2
- package/mini-progress/mini-progress.component.d.ts +0 -17
- package/mini-progress/mini-progress.module.d.ts +0 -10
- package/mini-progress/public_api.d.ts +0 -2
- package/number-info/number-info.component.d.ts +0 -23
- package/number-info/number-info.module.d.ts +0 -10
- package/number-info/public_api.d.ts +0 -2
- package/pie/pie.component.d.ts +0 -66
- package/pie/pie.module.d.ts +0 -11
- package/pie/public_api.d.ts +0 -2
- package/public_api.d.ts +0 -2
- package/radar/public_api.d.ts +0 -2
- package/radar/radar.component.d.ts +0 -37
- package/radar/radar.module.d.ts +0 -11
- package/single-bar/public_api.d.ts +0 -2
- package/single-bar/single-bar.component.d.ts +0 -28
- package/single-bar/single-bar.module.d.ts +0 -8
- package/tag-cloud/public_api.d.ts +0 -2
- package/tag-cloud/tag-cloud.component.d.ts +0 -30
- package/tag-cloud/tag-cloud.module.d.ts +0 -9
- package/timeline/public_api.d.ts +0 -2
- package/timeline/timeline.component.d.ts +0 -68
- package/timeline/timeline.module.d.ts +0 -10
- package/trend/public_api.d.ts +0 -2
- package/trend/trend.component.d.ts +0 -13
- package/trend/trend.module.d.ts +0 -9
- package/water-wave/public_api.d.ts +0 -2
- package/water-wave/water-wave.component.d.ts +0 -31
- package/water-wave/water-wave.module.d.ts +0 -9
package/bar/index.d.ts
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Event } from '@antv/g2';
|
|
4
|
+
import { G2BaseComponent, G2InteractionType } from '@delon/chart/core';
|
|
5
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import * as i2 from 'ng-zorro-antd/core/outlet';
|
|
8
|
+
import * as i3 from 'ng-zorro-antd/skeleton';
|
|
9
|
+
|
|
10
|
+
interface G2BarData {
|
|
11
|
+
x: NzSafeAny;
|
|
12
|
+
y: NzSafeAny;
|
|
13
|
+
color?: string | null;
|
|
14
|
+
[key: string]: NzSafeAny;
|
|
15
|
+
}
|
|
16
|
+
interface G2BarClickItem {
|
|
17
|
+
item: G2BarData;
|
|
18
|
+
ev: Event;
|
|
19
|
+
}
|
|
20
|
+
declare class G2BarComponent extends G2BaseComponent {
|
|
21
|
+
title?: string | TemplateRef<void>;
|
|
22
|
+
color: string;
|
|
23
|
+
height: number;
|
|
24
|
+
padding: number | number[] | 'auto';
|
|
25
|
+
data: G2BarData[];
|
|
26
|
+
autoLabel: boolean;
|
|
27
|
+
interaction: G2InteractionType;
|
|
28
|
+
readonly clickItem: EventEmitter<G2BarClickItem>;
|
|
29
|
+
private getHeight;
|
|
30
|
+
install(): void;
|
|
31
|
+
changeData(): void;
|
|
32
|
+
private updatelabel;
|
|
33
|
+
private installResizeEvent;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2BarComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2BarComponent, "g2-bar", ["g2Bar"], { "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; "autoLabel": { "alias": "autoLabel"; "required": false; }; "interaction": { "alias": "interaction"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
36
|
+
static ngAcceptInputType_height: unknown;
|
|
37
|
+
static ngAcceptInputType_autoLabel: unknown;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class G2BarModule {
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2BarModule, never>;
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2BarModule, never, [typeof i1.CommonModule, typeof i2.NzOutletModule, typeof i3.NzSkeletonModule, typeof G2BarComponent], [typeof G2BarComponent]>;
|
|
43
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<G2BarModule>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { G2BarComponent, G2BarModule };
|
|
47
|
+
export type { G2BarClickItem, G2BarData };
|
package/card/index.d.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import * as i2 from 'ng-zorro-antd/card';
|
|
5
|
+
import * as i3 from 'ng-zorro-antd/spin';
|
|
6
|
+
import * as i4 from 'ng-zorro-antd/core/outlet';
|
|
7
|
+
|
|
8
|
+
declare class G2CardComponent implements OnChanges {
|
|
9
|
+
private readonly cdr;
|
|
10
|
+
/** 是否显示边框 */
|
|
11
|
+
bordered: boolean;
|
|
12
|
+
avatar?: string | TemplateRef<void> | null;
|
|
13
|
+
title?: string | TemplateRef<void> | null;
|
|
14
|
+
action?: string | TemplateRef<void> | null;
|
|
15
|
+
total: string;
|
|
16
|
+
_height: string;
|
|
17
|
+
_orgHeight: number | string;
|
|
18
|
+
set contentHeight(value: number | string);
|
|
19
|
+
footer?: string | TemplateRef<void> | null;
|
|
20
|
+
/** 是否显示Loading */
|
|
21
|
+
loading: boolean;
|
|
22
|
+
ngOnChanges(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2CardComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2CardComponent, "g2-card", ["g2Card"], { "bordered": { "alias": "bordered"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "title": { "alias": "title"; "required": false; }; "action": { "alias": "action"; "required": false; }; "total": { "alias": "total"; "required": false; }; "contentHeight": { "alias": "contentHeight"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
25
|
+
static ngAcceptInputType_bordered: unknown;
|
|
26
|
+
static ngAcceptInputType_loading: unknown;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class G2CardModule {
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2CardModule, never>;
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2CardModule, never, [typeof i1.CommonModule, typeof i2.NzCardModule, typeof i3.NzSpinModule, typeof i4.NzOutletModule, typeof G2CardComponent], [typeof G2CardComponent]>;
|
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<G2CardModule>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { G2CardComponent, G2CardModule };
|
package/chart-echarts/index.d.ts
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AlainChartConfig } from '@delon/util/config';
|
|
5
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
|
+
import * as _echarts from 'echarts';
|
|
7
|
+
import * as i1 from '@angular/common';
|
|
8
|
+
import * as i2 from 'ng-zorro-antd/skeleton';
|
|
9
|
+
|
|
10
|
+
declare class ChartEChartsService implements OnDestroy {
|
|
11
|
+
private readonly cogSrv;
|
|
12
|
+
private readonly lazySrv;
|
|
13
|
+
private _cog;
|
|
14
|
+
private loading;
|
|
15
|
+
private loaded;
|
|
16
|
+
private notify$;
|
|
17
|
+
get cog(): AlainChartConfig;
|
|
18
|
+
set cog(val: AlainChartConfig);
|
|
19
|
+
constructor();
|
|
20
|
+
libLoad(): this;
|
|
21
|
+
get notify(): Observable<void>;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartEChartsService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartEChartsService>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type ChartECharts = _echarts.ECharts;
|
|
28
|
+
type ChartEChartsOption = _echarts.EChartsCoreOption;
|
|
29
|
+
type ChartEChartsEventType = 'ready' | 'init' | 'destroy' | 'set-option';
|
|
30
|
+
interface ChartEChartsEvent {
|
|
31
|
+
type: ChartEChartsEventType;
|
|
32
|
+
chart?: ChartECharts;
|
|
33
|
+
option?: ChartEChartsOption;
|
|
34
|
+
}
|
|
35
|
+
interface ChartEChartsOn {
|
|
36
|
+
eventName: string;
|
|
37
|
+
query?: string | object;
|
|
38
|
+
handler: (options: {
|
|
39
|
+
event: NzSafeAny;
|
|
40
|
+
chart: ChartECharts;
|
|
41
|
+
}) => void;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class ChartEChartsComponent implements OnInit, OnDestroy {
|
|
45
|
+
private readonly srv;
|
|
46
|
+
private readonly cdr;
|
|
47
|
+
private readonly ngZone;
|
|
48
|
+
private readonly platform;
|
|
49
|
+
private node;
|
|
50
|
+
private destroy$;
|
|
51
|
+
private _chart;
|
|
52
|
+
private _theme?;
|
|
53
|
+
private _initOpt?;
|
|
54
|
+
private _option;
|
|
55
|
+
_width: string;
|
|
56
|
+
_height: string;
|
|
57
|
+
set width(val: number | string | null | undefined);
|
|
58
|
+
set height(val: number | string | null | undefined);
|
|
59
|
+
set theme(value: string | Record<string, unknown> | null | undefined);
|
|
60
|
+
set initOpt(value: NzSafeAny);
|
|
61
|
+
set option(value: ChartEChartsOption);
|
|
62
|
+
on: ChartEChartsOn[];
|
|
63
|
+
readonly events: EventEmitter<ChartEChartsEvent>;
|
|
64
|
+
get chart(): ChartECharts | null;
|
|
65
|
+
loaded: boolean;
|
|
66
|
+
constructor();
|
|
67
|
+
private emit;
|
|
68
|
+
private load;
|
|
69
|
+
install(): this;
|
|
70
|
+
destroy(): this;
|
|
71
|
+
setOption(option: ChartEChartsOption, notMerge?: boolean, lazyUpdate?: boolean): this;
|
|
72
|
+
ngOnInit(): void;
|
|
73
|
+
ngOnDestroy(): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartEChartsComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartEChartsComponent, "chart-echarts, [chart-echarts]", ["chartECharts"], { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "initOpt": { "alias": "initOpt"; "required": false; }; "option": { "alias": "option"; "required": false; }; "on": { "alias": "on"; "required": false; }; }, { "events": "events"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class ChartEChartsModule {
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartEChartsModule, never>;
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChartEChartsModule, never, [typeof i1.CommonModule, typeof i2.NzSkeletonModule, typeof ChartEChartsComponent], [typeof ChartEChartsComponent]>;
|
|
81
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChartEChartsModule>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { ChartEChartsComponent, ChartEChartsModule, ChartEChartsService };
|
|
85
|
+
export type { ChartECharts, ChartEChartsEvent, ChartEChartsEventType, ChartEChartsOn, ChartEChartsOption };
|
package/core/index.d.ts
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, OnInit, OnChanges, ElementRef, NgZone, ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { Observable, Subscription, Subject } from 'rxjs';
|
|
4
|
+
import { AlainChartConfig } from '@delon/util/config';
|
|
5
|
+
import { Platform } from '@angular/cdk/platform';
|
|
6
|
+
import { Chart, Types } from '@antv/g2';
|
|
7
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
8
|
+
|
|
9
|
+
type G2InteractionType = 'none' | 'element-active' | 'active-region' | 'brush' | 'drag-move';
|
|
10
|
+
|
|
11
|
+
type G2Time = Date | string | number;
|
|
12
|
+
|
|
13
|
+
declare class G2Service implements OnDestroy {
|
|
14
|
+
private readonly cogSrv;
|
|
15
|
+
private readonly lazySrv;
|
|
16
|
+
private _cog;
|
|
17
|
+
private loading;
|
|
18
|
+
private loaded;
|
|
19
|
+
private notify$;
|
|
20
|
+
get cog(): AlainChartConfig;
|
|
21
|
+
set cog(val: AlainChartConfig);
|
|
22
|
+
constructor();
|
|
23
|
+
libLoad(): this;
|
|
24
|
+
get notify(): Observable<void>;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2Service, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<G2Service>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare abstract class G2BaseComponent implements OnInit, OnChanges, OnDestroy {
|
|
31
|
+
protected readonly srv: G2Service;
|
|
32
|
+
protected readonly el: ElementRef<HTMLElement>;
|
|
33
|
+
protected readonly ngZone: NgZone;
|
|
34
|
+
protected readonly platform: Platform;
|
|
35
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
36
|
+
get chart(): Chart;
|
|
37
|
+
get winG2(): NzSafeAny;
|
|
38
|
+
constructor();
|
|
39
|
+
repaint: boolean;
|
|
40
|
+
protected node: ElementRef;
|
|
41
|
+
protected resize$?: Subscription;
|
|
42
|
+
protected destroy$: Subject<void>;
|
|
43
|
+
protected _chart: Chart;
|
|
44
|
+
loaded: boolean;
|
|
45
|
+
delay: number;
|
|
46
|
+
theme: string | Types.LooseObject;
|
|
47
|
+
readonly ready: EventEmitter<Chart>;
|
|
48
|
+
/** 检查是否只变更数据 */
|
|
49
|
+
onlyChangeData?: (changes: SimpleChanges) => boolean;
|
|
50
|
+
abstract install(): void;
|
|
51
|
+
/** G2数据变更 */
|
|
52
|
+
changeData(): void;
|
|
53
|
+
/** 等同 `ngOnInit` */
|
|
54
|
+
onInit(): void;
|
|
55
|
+
/** 等同 `ngOnChanges` */
|
|
56
|
+
onChanges(_: SimpleChanges): void;
|
|
57
|
+
private load;
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
60
|
+
protected destroyChart(): this;
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2BaseComponent, never>;
|
|
63
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<G2BaseComponent, never, never, { "repaint": { "alias": "repaint"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "ready": "ready"; }, never, never, true, never>;
|
|
64
|
+
static ngAcceptInputType_repaint: unknown;
|
|
65
|
+
static ngAcceptInputType_delay: unknown;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare function genMiniTooltipOptions(type: 'mini' | 'default', options?: Types.TooltipCfg): Types.TooltipCfg;
|
|
69
|
+
|
|
70
|
+
export { G2BaseComponent, G2Service, genMiniTooltipOptions };
|
|
71
|
+
export type { G2InteractionType, G2Time };
|
package/custom/index.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
3
|
+
import { G2BaseComponent } from '@delon/chart/core';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import * as i2 from 'ng-zorro-antd/skeleton';
|
|
6
|
+
|
|
7
|
+
declare class G2CustomComponent extends G2BaseComponent {
|
|
8
|
+
height?: number;
|
|
9
|
+
resizeTime: number;
|
|
10
|
+
readonly render: EventEmitter<ElementRef<any>>;
|
|
11
|
+
readonly resize: EventEmitter<ElementRef<any>>;
|
|
12
|
+
readonly destroy: EventEmitter<ElementRef<any>>;
|
|
13
|
+
install(): void;
|
|
14
|
+
private installResizeEvent;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2CustomComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2CustomComponent, "g2,g2-custom", ["g2Custom"], { "height": { "alias": "height"; "required": false; }; "resizeTime": { "alias": "resizeTime"; "required": false; }; }, { "render": "render"; "resize": "resize"; "destroy": "destroy"; }, never, ["*"], true, never>;
|
|
17
|
+
static ngAcceptInputType_height: unknown;
|
|
18
|
+
static ngAcceptInputType_resizeTime: unknown;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class G2CustomModule {
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<G2CustomModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2CustomModule, never, [typeof i1.CommonModule, typeof i2.NzSkeletonModule, typeof G2CustomComponent], [typeof G2CustomComponent]>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<G2CustomModule>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { G2CustomComponent, G2CustomModule };
|
package/fesm2022/bar.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, booleanAttribute, numberAttribute, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { fromEvent, takeUntil, filter, debounceTime } from 'rxjs';
|
|
4
4
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
5
5
|
import { NzStringTemplateOutletDirective, NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
@@ -87,8 +87,8 @@ class G2BarComponent extends G2BaseComponent {
|
|
|
87
87
|
.pipe(takeUntil(this.destroy$), filter(() => !!this._chart), debounceTime(200))
|
|
88
88
|
.subscribe(() => this.ngZone.runOutsideAngular(() => this.updatelabel()));
|
|
89
89
|
}
|
|
90
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
91
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2BarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.4", type: G2BarComponent, isStandalone: true, selector: "g2-bar", inputs: { title: "title", color: "color", height: ["height", "height", numberAttribute], padding: "padding", data: "data", autoLabel: ["autoLabel", "autoLabel", booleanAttribute], interaction: "interaction" }, outputs: { clickItem: "clickItem" }, host: { properties: { "style.height.px": "height" } }, exportAs: ["g2Bar"], usesInheritance: true, ngImport: i0, template: `
|
|
92
92
|
<ng-container *nzStringTemplateOutlet="title">
|
|
93
93
|
<h4 style="margin-bottom: 20px;">{{ title }}</h4>
|
|
94
94
|
</ng-container>
|
|
@@ -98,7 +98,7 @@ class G2BarComponent extends G2BaseComponent {
|
|
|
98
98
|
<div #container></div>
|
|
99
99
|
`, isInline: true, dependencies: [{ kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: NzSkeletonComponent, selector: "nz-skeleton", inputs: ["nzActive", "nzLoading", "nzRound", "nzTitle", "nzAvatar", "nzParagraph"], exportAs: ["nzSkeleton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
100
100
|
}
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2BarComponent, decorators: [{
|
|
102
102
|
type: Component,
|
|
103
103
|
args: [{
|
|
104
104
|
selector: 'g2-bar',
|
|
@@ -115,7 +115,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
115
115
|
host: {
|
|
116
116
|
'[style.height.px]': 'height'
|
|
117
117
|
},
|
|
118
|
-
preserveWhitespaces: false,
|
|
119
118
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
119
|
encapsulation: ViewEncapsulation.None,
|
|
121
120
|
imports: [NzStringTemplateOutletDirective, NzSkeletonComponent]
|
|
@@ -142,11 +141,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
142
141
|
|
|
143
142
|
const COMPONENTS = [G2BarComponent];
|
|
144
143
|
class G2BarModule {
|
|
145
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
146
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
147
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2BarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.4", ngImport: i0, type: G2BarModule, imports: [CommonModule, NzOutletModule, NzSkeletonModule, G2BarComponent], exports: [G2BarComponent] });
|
|
146
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2BarModule, imports: [CommonModule, NzOutletModule, NzSkeletonModule, COMPONENTS] });
|
|
148
147
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2BarModule, decorators: [{
|
|
150
149
|
type: NgModule,
|
|
151
150
|
args: [{
|
|
152
151
|
imports: [CommonModule, NzOutletModule, NzSkeletonModule, ...COMPONENTS],
|
package/fesm2022/bar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.mjs","sources":["../../../../packages/chart/bar/bar.component.ts","../../../../packages/chart/bar/bar.module.ts","../../../../packages/chart/bar/bar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { fromEvent, debounceTime, filter, takeUntil } from 'rxjs';\n\nimport type { Chart, Event } from '@antv/g2';\n\nimport { G2BaseComponent, G2InteractionType } from '@delon/chart/core';\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzSkeletonComponent } from 'ng-zorro-antd/skeleton';\n\nconst TITLE_HEIGHT = 41;\n\nexport interface G2BarData {\n x: NzSafeAny;\n y: NzSafeAny;\n color?: string | null;\n [key: string]: NzSafeAny;\n}\n\nexport interface G2BarClickItem {\n item: G2BarData;\n ev: Event;\n}\n\n@Component({\n selector: 'g2-bar',\n exportAs: 'g2Bar',\n template: `\n <ng-container *nzStringTemplateOutlet=\"title\">\n <h4 style=\"margin-bottom: 20px;\">{{ title }}</h4>\n </ng-container>\n @if (!loaded) {\n <nz-skeleton />\n }\n <div #container></div>\n `,\n host: {\n '[style.height.px]': 'height'\n },\n
|
|
1
|
+
{"version":3,"file":"bar.mjs","sources":["../../../../packages/chart/bar/bar.component.ts","../../../../packages/chart/bar/bar.module.ts","../../../../packages/chart/bar/bar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { fromEvent, debounceTime, filter, takeUntil } from 'rxjs';\n\nimport type { Chart, Event } from '@antv/g2';\n\nimport { G2BaseComponent, G2InteractionType } from '@delon/chart/core';\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzSkeletonComponent } from 'ng-zorro-antd/skeleton';\n\nconst TITLE_HEIGHT = 41;\n\nexport interface G2BarData {\n x: NzSafeAny;\n y: NzSafeAny;\n color?: string | null;\n [key: string]: NzSafeAny;\n}\n\nexport interface G2BarClickItem {\n item: G2BarData;\n ev: Event;\n}\n\n@Component({\n selector: 'g2-bar',\n exportAs: 'g2Bar',\n template: `\n <ng-container *nzStringTemplateOutlet=\"title\">\n <h4 style=\"margin-bottom: 20px;\">{{ title }}</h4>\n </ng-container>\n @if (!loaded) {\n <nz-skeleton />\n }\n <div #container></div>\n `,\n host: {\n '[style.height.px]': 'height'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NzStringTemplateOutletDirective, NzSkeletonComponent]\n})\nexport class G2BarComponent extends G2BaseComponent {\n // #region fields\n\n @Input() title?: string | TemplateRef<void>;\n @Input() color = 'rgba(24, 144, 255, 0.85)';\n @Input({ transform: numberAttribute }) height = 0;\n @Input() padding: number | number[] | 'auto' = 'auto';\n @Input() data: G2BarData[] = [];\n @Input({ transform: booleanAttribute }) autoLabel = true;\n @Input() interaction: G2InteractionType = 'none';\n @Output() readonly clickItem = new EventEmitter<G2BarClickItem>();\n\n // #endregion\n\n private getHeight(): number {\n return this.title ? this.height - TITLE_HEIGHT : this.height;\n }\n\n install(): void {\n const { node, padding, interaction, theme } = this;\n\n const container = node.nativeElement as HTMLElement;\n const chart: Chart = (this._chart = new this.winG2.Chart({\n container,\n autoFit: true,\n height: this.getHeight(),\n padding,\n theme\n }));\n this.updatelabel();\n chart.axis('y', {\n title: null,\n line: null,\n tickLine: null\n });\n chart.scale({\n x: {\n type: 'cat'\n },\n y: {\n min: 0\n }\n });\n chart.tooltip({\n showTitle: false\n });\n if (interaction !== 'none') {\n chart.interaction(interaction);\n }\n chart.legend(false);\n chart\n .interval()\n .position('x*y')\n .color('x*y', (x, y) => {\n const colorItem = this.data.find(w => w.x === x && w.y === y);\n return colorItem && colorItem.color ? colorItem.color : this.color;\n })\n .tooltip('x*y', (x, y) => ({ name: x, value: y }));\n\n chart.on(`interval:click`, (ev: Event) => {\n this.ngZone.run(() => this.clickItem.emit({ item: ev.data?.data, ev }));\n });\n\n this.ready.next(chart);\n\n this.changeData();\n chart.render();\n this.installResizeEvent();\n }\n\n changeData(): void {\n const { _chart, data } = this;\n if (!_chart || !Array.isArray(data) || data.length <= 0) return;\n\n _chart.changeData(data);\n }\n\n private updatelabel(): void {\n const { node, data, _chart } = this;\n const canvasWidth = node.nativeElement.clientWidth;\n const minWidth = data.length * 30;\n _chart.axis('x', canvasWidth > minWidth).render();\n }\n\n private installResizeEvent(): void {\n if (!this.autoLabel || this.resize$) return;\n\n this.resize$ = fromEvent(window, 'resize')\n .pipe(\n takeUntil(this.destroy$),\n filter(() => !!this._chart),\n debounceTime(200)\n )\n .subscribe(() => this.ngZone.runOutsideAngular(() => this.updatelabel()));\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzSkeletonModule } from 'ng-zorro-antd/skeleton';\n\nimport { G2BarComponent } from './bar.component';\n\nconst COMPONENTS = [G2BarComponent];\n\n@NgModule({\n imports: [CommonModule, NzOutletModule, NzSkeletonModule, ...COMPONENTS],\n exports: COMPONENTS\n})\nexport class G2BarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAoBA,MAAM,YAAY,GAAG,EAAE;AAiCjB,MAAO,cAAe,SAAQ,eAAe,CAAA;;AAGxC,IAAA,KAAK;IACL,KAAK,GAAG,0BAA0B;IACJ,MAAM,GAAG,CAAC;IACxC,OAAO,GAA+B,MAAM;IAC5C,IAAI,GAAgB,EAAE;IACS,SAAS,GAAG,IAAI;I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GAAG,CAAC,cAAc,CAAC;MAMtB,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAX,WAAW,EAAA,OAAA,EAAA,CAHZ,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAHtC,cAAc,CAAA,EAAA,OAAA,EAAA,CAAd,cAAc,CAAA,EAAA,CAAA;AAMrB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAHZ,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAK,UAAU,CAAA,EAAA,CAAA;;2FAG5D,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC;AACxE,oBAAA,OAAO,EAAE;AACV,iBAAA;;;ACbD;;AAEG;;;;"}
|
package/fesm2022/card.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ChangeDetectorRef, booleanAttribute,
|
|
2
|
+
import { inject, ChangeDetectorRef, booleanAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { NzCardComponent, NzCardModule } from 'ng-zorro-antd/card';
|
|
4
4
|
import { NzStringTemplateOutletDirective, NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
5
5
|
import { NzSpinComponent, NzSpinModule } from 'ng-zorro-antd/spin';
|
|
@@ -25,12 +25,12 @@ class G2CardComponent {
|
|
|
25
25
|
ngOnChanges() {
|
|
26
26
|
this.cdr.detectChanges();
|
|
27
27
|
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.4", type: G2CardComponent, isStandalone: true, selector: "g2-card", inputs: { bordered: ["bordered", "bordered", booleanAttribute], avatar: "avatar", title: "title", action: "action", total: "total", contentHeight: "contentHeight", footer: "footer", loading: ["loading", "loading", booleanAttribute] }, host: { properties: { "class.g2-card": "true" } }, exportAs: ["g2Card"], usesOnChanges: true, ngImport: i0, template: "<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n @if (title) {\n <span class=\"g2-card__meta-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n }\n @if (action) {\n <span class=\"g2-card__meta-action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n }\n </div>\n @if (total) {\n <p class=\"g2-card__total\" [innerHTML]=\"total\"></p>\n }\n </div>\n </div>\n <div class=\"g2-card__desc\" [style.height]=\"_height\">\n <div [class.g2-card__fixed]=\"!!_orgHeight\">\n <ng-content />\n </div>\n </div>\n @if (footer) {\n <div class=\"g2-card__footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n }\n </nz-spin>\n</nz-card>\n", dependencies: [{ kind: "component", type: NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "component", type: NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2CardComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
|
-
args: [{ selector: 'g2-card', exportAs: 'g2Card', host: { '[class.g2-card]': 'true' },
|
|
33
|
+
args: [{ selector: 'g2-card', exportAs: 'g2Card', host: { '[class.g2-card]': 'true' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NzCardComponent, NzSpinComponent, NzStringTemplateOutletDirective], template: "<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n @if (title) {\n <span class=\"g2-card__meta-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n }\n @if (action) {\n <span class=\"g2-card__meta-action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n }\n </div>\n @if (total) {\n <p class=\"g2-card__total\" [innerHTML]=\"total\"></p>\n }\n </div>\n </div>\n <div class=\"g2-card__desc\" [style.height]=\"_height\">\n <div [class.g2-card__fixed]=\"!!_orgHeight\">\n <ng-content />\n </div>\n </div>\n @if (footer) {\n <div class=\"g2-card__footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n }\n </nz-spin>\n</nz-card>\n" }]
|
|
34
34
|
}], propDecorators: { bordered: [{
|
|
35
35
|
type: Input,
|
|
36
36
|
args: [{ transform: booleanAttribute }]
|
|
@@ -53,11 +53,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
53
53
|
|
|
54
54
|
const COMPONENTS = [G2CardComponent];
|
|
55
55
|
class G2CardModule {
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
58
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.4", ngImport: i0, type: G2CardModule, imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule, G2CardComponent], exports: [G2CardComponent] });
|
|
58
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2CardModule, imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule, COMPONENTS] });
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: G2CardModule, decorators: [{
|
|
61
61
|
type: NgModule,
|
|
62
62
|
args: [{
|
|
63
63
|
imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule, ...COMPONENTS],
|
package/fesm2022/card.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.mjs","sources":["../../../../packages/chart/card/card.component.ts","../../../../packages/chart/card/card.component.html","../../../../packages/chart/card/card.module.ts","../../../../packages/chart/card/card.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n OnChanges,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n inject\n} from '@angular/core';\n\nimport { NzCardComponent } from 'ng-zorro-antd/card';\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport { NzSpinComponent } from 'ng-zorro-antd/spin';\n\n@Component({\n selector: 'g2-card',\n exportAs: 'g2Card',\n templateUrl: './card.component.html',\n host: { '[class.g2-card]': 'true' },\n
|
|
1
|
+
{"version":3,"file":"card.mjs","sources":["../../../../packages/chart/card/card.component.ts","../../../../packages/chart/card/card.component.html","../../../../packages/chart/card/card.module.ts","../../../../packages/chart/card/card.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n OnChanges,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n inject\n} from '@angular/core';\n\nimport { NzCardComponent } from 'ng-zorro-antd/card';\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport { NzSpinComponent } from 'ng-zorro-antd/spin';\n\n@Component({\n selector: 'g2-card',\n exportAs: 'g2Card',\n templateUrl: './card.component.html',\n host: { '[class.g2-card]': 'true' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NzCardComponent, NzSpinComponent, NzStringTemplateOutletDirective]\n})\nexport class G2CardComponent implements OnChanges {\n private readonly cdr = inject(ChangeDetectorRef);\n /** 是否显示边框 */\n @Input({ transform: booleanAttribute }) bordered = false;\n @Input() avatar?: string | TemplateRef<void> | null;\n @Input() title?: string | TemplateRef<void> | null;\n @Input() action?: string | TemplateRef<void> | null;\n @Input() total = '';\n _height = 'auto';\n _orgHeight!: number | string;\n @Input()\n set contentHeight(value: number | string) {\n this._orgHeight = value;\n this._height = typeof value === 'number' ? (this._height = `${value}px`) : value;\n }\n @Input() footer?: string | TemplateRef<void> | null;\n /** 是否显示Loading */\n @Input({ transform: booleanAttribute }) loading = false;\n\n ngOnChanges(): void {\n this.cdr.detectChanges();\n }\n}\n","<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n @if (title) {\n <span class=\"g2-card__meta-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n }\n @if (action) {\n <span class=\"g2-card__meta-action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n }\n </div>\n @if (total) {\n <p class=\"g2-card__total\" [innerHTML]=\"total\"></p>\n }\n </div>\n </div>\n <div class=\"g2-card__desc\" [style.height]=\"_height\">\n <div [class.g2-card__fixed]=\"!!_orgHeight\">\n <ng-content />\n </div>\n </div>\n @if (footer) {\n <div class=\"g2-card__footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n }\n </nz-spin>\n</nz-card>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzCardModule } from 'ng-zorro-antd/card';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\n\nimport { G2CardComponent } from './card.component';\n\nconst COMPONENTS = [G2CardComponent];\n\n@NgModule({\n imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule, ...COMPONENTS],\n exports: COMPONENTS\n})\nexport class G2CardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAyBa,eAAe,CAAA;AACT,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;;IAER,QAAQ,GAAG,KAAK;AAC/C,IAAA,MAAM;AACN,IAAA,KAAK;AACL,IAAA,MAAM;IACN,KAAK,GAAG,EAAE;IACnB,OAAO,GAAG,MAAM;AAChB,IAAA,UAAU;IACV,IACI,aAAa,CAAC,KAAsB,EAAA;AACtC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,GAAG,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI,IAAI,KAAK;;AAEzE,IAAA,MAAM;;IAEyB,OAAO,GAAG,KAAK;IAEvD,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE;;uGApBf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAGN,gBAAgB,CAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,OAAA,EAAA,aAAA,EAAA,eAAA,EAAA,MAAA,EAAA,QAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAchB,gBAAgB,CAAA,EAAA,EAAA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ef, NgZone, DestroyRef, EventEmitter, Output, Input, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, filter, fromEvent, debounceTime } from 'rxjs';
|
|
4
4
|
import { AlainConfigService } from '@delon/util/config';
|
|
5
5
|
import { LazyService } from '@delon/util/other';
|
|
@@ -58,17 +58,15 @@ class ChartEChartsService {
|
|
|
58
58
|
ngOnDestroy() {
|
|
59
59
|
this.notify$.unsubscribe();
|
|
60
60
|
}
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
62
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsService, providedIn: 'root' });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsService, decorators: [{
|
|
65
65
|
type: Injectable,
|
|
66
66
|
args: [{ providedIn: 'root' }]
|
|
67
67
|
}], ctorParameters: () => [] });
|
|
68
68
|
|
|
69
69
|
class ChartEChartsComponent {
|
|
70
|
-
static ngAcceptInputType_width;
|
|
71
|
-
static ngAcceptInputType_height;
|
|
72
70
|
srv = inject(ChartEChartsService);
|
|
73
71
|
cdr = inject(ChangeDetectorRef);
|
|
74
72
|
ngZone = inject(NgZone);
|
|
@@ -176,8 +174,8 @@ class ChartEChartsComponent {
|
|
|
176
174
|
this.on.forEach(item => this._chart?.off(item.eventName));
|
|
177
175
|
this.destroy();
|
|
178
176
|
}
|
|
179
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
180
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.4", type: ChartEChartsComponent, isStandalone: true, selector: "chart-echarts, [chart-echarts]", inputs: { width: "width", height: "height", theme: "theme", initOpt: "initOpt", option: "option", on: "on" }, outputs: { events: "events" }, host: { properties: { "style.display": "'inline-block'", "style.width": "_width", "style.height": "_height" } }, viewQueries: [{ propertyName: "node", first: true, predicate: ["container"], descendants: true, static: true }], exportAs: ["chartECharts"], ngImport: i0, template: `
|
|
181
179
|
@if (!loaded) {
|
|
182
180
|
<nz-skeleton />
|
|
183
181
|
}
|
|
@@ -187,7 +185,7 @@ class ChartEChartsComponent {
|
|
|
187
185
|
__decorate([
|
|
188
186
|
ZoneOutside()
|
|
189
187
|
], ChartEChartsComponent.prototype, "load", null);
|
|
190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsComponent, decorators: [{
|
|
191
189
|
type: Component,
|
|
192
190
|
args: [{
|
|
193
191
|
selector: 'chart-echarts, [chart-echarts]',
|
|
@@ -203,7 +201,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
203
201
|
'[style.width]': `_width`,
|
|
204
202
|
'[style.height]': `_height`
|
|
205
203
|
},
|
|
206
|
-
preserveWhitespaces: false,
|
|
207
204
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
208
205
|
encapsulation: ViewEncapsulation.None,
|
|
209
206
|
imports: [NzSkeletonComponent]
|
|
@@ -229,11 +226,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
229
226
|
|
|
230
227
|
const COMPONENTS = [ChartEChartsComponent];
|
|
231
228
|
class ChartEChartsModule {
|
|
232
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
233
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
234
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
230
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsModule, imports: [CommonModule, NzSkeletonModule, ChartEChartsComponent], exports: [ChartEChartsComponent] });
|
|
231
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsModule, imports: [CommonModule, NzSkeletonModule, COMPONENTS] });
|
|
235
232
|
}
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ChartEChartsModule, decorators: [{
|
|
237
234
|
type: NgModule,
|
|
238
235
|
args: [{
|
|
239
236
|
imports: [CommonModule, NzSkeletonModule, ...COMPONENTS],
|