intelica-library-ui 0.1.64 → 0.1.66
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.
|
@@ -2823,10 +2823,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2823
2823
|
|
|
2824
2824
|
class EchartService {
|
|
2825
2825
|
getDefaultSeriesColors() {
|
|
2826
|
-
return
|
|
2826
|
+
return {
|
|
2827
|
+
mastercard: "#ff7f00",
|
|
2828
|
+
visa: "#17375E",
|
|
2829
|
+
amex: "#348AD5",
|
|
2830
|
+
orange: "#ff7f00",
|
|
2831
|
+
blue: "#17375E",
|
|
2832
|
+
gray: "#D3D3D3",
|
|
2833
|
+
gray3: "#a6a5a1",
|
|
2834
|
+
};
|
|
2827
2835
|
}
|
|
2828
2836
|
getTooltipCssText() {
|
|
2829
|
-
return
|
|
2837
|
+
return `border-color: ${this.getDefaultSeriesColors()["blue"]};`;
|
|
2830
2838
|
}
|
|
2831
2839
|
getTooltipFormatter(htmlContent) {
|
|
2832
2840
|
return `
|
|
@@ -2849,23 +2857,27 @@ class EchartService {
|
|
|
2849
2857
|
splitLine: {
|
|
2850
2858
|
show: false,
|
|
2851
2859
|
},
|
|
2860
|
+
axisLabel: {
|
|
2861
|
+
color: this.getDefaultSeriesColors()["blue"],
|
|
2862
|
+
fontSize: 12,
|
|
2863
|
+
},
|
|
2852
2864
|
};
|
|
2853
2865
|
return axis;
|
|
2854
2866
|
}
|
|
2855
2867
|
getRateDoughnutPie(data) {
|
|
2856
|
-
const rateData = data.find(
|
|
2868
|
+
const rateData = data.find(d => d.name.toLowerCase() !== "placeholder");
|
|
2857
2869
|
return {
|
|
2858
2870
|
tooltip: {
|
|
2859
|
-
trigger:
|
|
2871
|
+
trigger: "none",
|
|
2860
2872
|
},
|
|
2861
2873
|
series: [
|
|
2862
2874
|
{
|
|
2863
|
-
name:
|
|
2864
|
-
type:
|
|
2875
|
+
name: "RateDoughnutPie",
|
|
2876
|
+
type: "pie",
|
|
2865
2877
|
tooltip: {
|
|
2866
|
-
trigger:
|
|
2878
|
+
trigger: "none",
|
|
2867
2879
|
},
|
|
2868
|
-
radius: [
|
|
2880
|
+
radius: ["70%", "60%"],
|
|
2869
2881
|
data: data,
|
|
2870
2882
|
startAngle: 0,
|
|
2871
2883
|
selectedMode: false,
|
|
@@ -2876,20 +2888,20 @@ class EchartService {
|
|
|
2876
2888
|
return `${rateData.name}`;
|
|
2877
2889
|
},
|
|
2878
2890
|
color: rateData.itemStyle.color,
|
|
2879
|
-
fontSize:
|
|
2880
|
-
position:
|
|
2891
|
+
fontSize: "40",
|
|
2892
|
+
position: "center",
|
|
2881
2893
|
},
|
|
2882
2894
|
},
|
|
2883
2895
|
],
|
|
2884
2896
|
};
|
|
2885
2897
|
}
|
|
2886
2898
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2887
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartService, providedIn:
|
|
2899
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartService, providedIn: "root" });
|
|
2888
2900
|
}
|
|
2889
2901
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartService, decorators: [{
|
|
2890
2902
|
type: Injectable,
|
|
2891
2903
|
args: [{
|
|
2892
|
-
providedIn:
|
|
2904
|
+
providedIn: "root",
|
|
2893
2905
|
}]
|
|
2894
2906
|
}] });
|
|
2895
2907
|
|
|
@@ -2924,6 +2936,7 @@ class ProfileService {
|
|
|
2924
2936
|
AuthenticationService = inject(AuthenticationService);
|
|
2925
2937
|
Profile = null;
|
|
2926
2938
|
PrivateKey = "";
|
|
2939
|
+
ProfileReady = signal(false);
|
|
2927
2940
|
Initialize() {
|
|
2928
2941
|
this.AuthenticationService.GetPrivateValue().subscribe(response => {
|
|
2929
2942
|
this.PrivateKey = response;
|
|
@@ -2938,6 +2951,7 @@ class ProfileService {
|
|
|
2938
2951
|
}
|
|
2939
2952
|
else
|
|
2940
2953
|
this.Profile = null;
|
|
2954
|
+
this.ProfileReady.set(true);
|
|
2941
2955
|
}
|
|
2942
2956
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2943
2957
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ProfileService, providedIn: "root" });
|