@foxeltech/angular-ui 0.0.7 → 0.0.9
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/index.d.ts
CHANGED
|
@@ -832,9 +832,11 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
832
832
|
showPieLabel: boolean;
|
|
833
833
|
mobileWidth: number;
|
|
834
834
|
labelFontFamily: string;
|
|
835
|
+
emptyText: string;
|
|
835
836
|
chartClick: EventEmitter<any>;
|
|
836
837
|
chartInit: EventEmitter<ECharts>;
|
|
837
838
|
chartOptions: EChartsOption;
|
|
839
|
+
isEmpty: boolean;
|
|
838
840
|
labelFontSize: number;
|
|
839
841
|
private chartInstance?;
|
|
840
842
|
private resizeObserver?;
|
|
@@ -852,13 +854,14 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
852
854
|
private updateResponsiveState;
|
|
853
855
|
private forceMediaRecalc;
|
|
854
856
|
private rebuildChart;
|
|
857
|
+
private checkEmpty;
|
|
855
858
|
private registry;
|
|
856
859
|
private calcPieLayout;
|
|
857
860
|
private detectType;
|
|
858
861
|
private buildOptions;
|
|
859
862
|
private resolvePalette;
|
|
860
863
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
861
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "fx-ui-chart", never, { "type": { "alias": "type"; "required": false; }; "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pieLegendAlign": { "alias": "pieLegendAlign"; "required": false; }; "pieLegendPosition": { "alias": "pieLegendPosition"; "required": false; }; "showPieLabel": { "alias": "showPieLabel"; "required": false; }; "mobileWidth": { "alias": "mobileWidth"; "required": false; }; "labelFontFamily": { "alias": "labelFontFamily"; "required": false; }; }, { "chartClick": "chartClick"; "chartInit": "chartInit"; }, never, never, false, never>;
|
|
864
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "fx-ui-chart", never, { "type": { "alias": "type"; "required": false; }; "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pieLegendAlign": { "alias": "pieLegendAlign"; "required": false; }; "pieLegendPosition": { "alias": "pieLegendPosition"; "required": false; }; "showPieLabel": { "alias": "showPieLabel"; "required": false; }; "mobileWidth": { "alias": "mobileWidth"; "required": false; }; "labelFontFamily": { "alias": "labelFontFamily"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; }, { "chartClick": "chartClick"; "chartInit": "chartInit"; }, never, never, false, never>;
|
|
862
865
|
}
|
|
863
866
|
|
|
864
867
|
declare class SliderComponent extends FxComponent<any> implements AfterViewInit {
|
|
@@ -1037,6 +1040,7 @@ declare class DrawerComponent implements OnInit, OnDestroy {
|
|
|
1037
1040
|
items: DrawerItem[];
|
|
1038
1041
|
isExpanded: boolean;
|
|
1039
1042
|
logo?: string;
|
|
1043
|
+
version?: string;
|
|
1040
1044
|
toggleExpanded: EventEmitter<boolean>;
|
|
1041
1045
|
itemClicked: EventEmitter<DrawerItem>;
|
|
1042
1046
|
expandedItems: Set<string>;
|
|
@@ -1055,7 +1059,7 @@ declare class DrawerComponent implements OnInit, OnDestroy {
|
|
|
1055
1059
|
getAccordionState(itemId: string): string;
|
|
1056
1060
|
getDrawerState(): string;
|
|
1057
1061
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
1058
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "fx-ui-drawer", never, { "items": { "alias": "items"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; }, { "toggleExpanded": "toggleExpanded"; "itemClicked": "itemClicked"; }, never, never, false, never>;
|
|
1062
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "fx-ui-drawer", never, { "items": { "alias": "items"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, { "toggleExpanded": "toggleExpanded"; "itemClicked": "itemClicked"; }, never, never, false, never>;
|
|
1059
1063
|
}
|
|
1060
1064
|
|
|
1061
1065
|
declare class ConfirmationDialogComponent {
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
<div class="chart-wrapper" [style.height]="height">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
@if (isEmpty) {
|
|
3
|
+
<div class="chart-empty">
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="chart-empty-icon">
|
|
5
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z" />
|
|
6
|
+
</svg>
|
|
7
|
+
<span class="chart-empty-text">{{ emptyText }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
} @else {
|
|
10
|
+
<div
|
|
11
|
+
echarts
|
|
12
|
+
[options]="chartOptions"
|
|
13
|
+
[loading]="loading"
|
|
14
|
+
(chartInit)="onChartInit($event)"
|
|
15
|
+
(chartClick)="onChartClick($event)"
|
|
16
|
+
class="fx-chart"
|
|
17
|
+
[style.height]="height"
|
|
18
|
+
></div>
|
|
19
|
+
}
|
|
11
20
|
</div>
|
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
></ng-container>
|
|
24
24
|
</ng-container>
|
|
25
25
|
</nav>
|
|
26
|
+
|
|
27
|
+
<!-- Version -->
|
|
28
|
+
<div *ngIf="version" class="drawer-version" [matTooltip]="!isExpanded ? version : ''" matTooltipPosition="right">
|
|
29
|
+
<span *ngIf="isExpanded">{{ version }}</span>
|
|
30
|
+
<span *ngIf="!isExpanded" class="drawer-version-dot"></span>
|
|
31
|
+
</div>
|
|
26
32
|
</div>
|
|
27
33
|
|
|
28
34
|
<!-- Floating Toggle Button on right border -->
|