@foxeltech/angular-ui 0.0.7 → 0.0.8

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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxeltech/angular-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "main": "bundles/ui.umd.js",
6
6
  "module": "fesm2022/foxeltech-angular-ui.mjs",
@@ -1,11 +1,20 @@
1
1
  <div class="chart-wrapper" [style.height]="height">
2
- <div
3
- echarts
4
- [options]="chartOptions"
5
- [loading]="loading"
6
- (chartInit)="onChartInit($event)"
7
- (chartClick)="onChartClick($event)"
8
- class="fx-chart"
9
- [style.height]="height"
10
- ></div>
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>