intelica-library-ui 0.1.112 → 0.1.114

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.
@@ -2965,13 +2965,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
2965
2965
  class SkeletonComponent {
2966
2966
  skeletonService = inject(SkeletonService);
2967
2967
  isLoading = this.skeletonService.isLoading;
2968
+ localLoading = false;
2969
+ show = false;
2968
2970
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2969
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonComponent, isStandalone: true, selector: "intelica-skeleton", ngImport: i0, template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
2971
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonComponent, isStandalone: true, selector: "intelica-skeleton", inputs: { localLoading: "localLoading", show: "show" }, ngImport: i0, template: "@if((isLoading() && !localLoading) || show){\r\n<ng-content></ng-content>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
2970
2972
  }
2971
2973
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, decorators: [{
2972
2974
  type: Component,
2973
- args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n" }]
2974
- }] });
2975
+ args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if((isLoading() && !localLoading) || show){\r\n<ng-content></ng-content>\r\n}\r\n" }]
2976
+ }], propDecorators: { localLoading: [{
2977
+ type: Input
2978
+ }], show: [{
2979
+ type: Input
2980
+ }] } });
2975
2981
 
2976
2982
  class SkeletonTableComponent {
2977
2983
  /**
@@ -3867,16 +3873,15 @@ class EchartService {
3867
3873
  * @param value - rate value
3868
3874
  * @param textSize - size of the letter
3869
3875
  * @param color - color of the letter and pie
3876
+ * @param total - total value for the pie (default is 100)
3870
3877
  * @returns
3871
3878
  */
3872
- getRateDoughnutPieOptions(letter, value, textSize, color) {
3873
- const power = Math.ceil(Math.log10(value));
3874
- const placeholderValue = Math.pow(10, power);
3879
+ getRateDoughnutPieOptions(letter, value, textSize, color, total = 100) {
3875
3880
  const data = [
3876
3881
  { name: letter, value: value, itemStyle: { color: color } },
3877
3882
  {
3878
3883
  name: "placeholder",
3879
- value: placeholderValue - value,
3884
+ value: total - value,
3880
3885
  itemStyle: { color: Color.gray5 },
3881
3886
  },
3882
3887
  ];