intelica-library-ui 0.1.113 → 0.1.115

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.
@@ -3873,16 +3873,15 @@ class EchartService {
3873
3873
  * @param value - rate value
3874
3874
  * @param textSize - size of the letter
3875
3875
  * @param color - color of the letter and pie
3876
+ * @param total - total value for the pie (default is 100)
3876
3877
  * @returns
3877
3878
  */
3878
- getRateDoughnutPieOptions(letter, value, textSize, color) {
3879
- const power = Math.ceil(Math.log10(value));
3880
- const placeholderValue = Math.pow(10, power);
3879
+ getRateDoughnutPieOptions(letter, value, textSize, color, total = 100) {
3881
3880
  const data = [
3882
3881
  { name: letter, value: value, itemStyle: { color: color } },
3883
3882
  {
3884
3883
  name: "placeholder",
3885
- value: placeholderValue - value,
3884
+ value: total - value,
3886
3885
  itemStyle: { color: Color.gray5 },
3887
3886
  },
3888
3887
  ];
@@ -6368,5 +6367,5 @@ const IntelicaTheme = definePreset(Aura, {
6368
6367
  * Generated bundle index. Do not edit.
6369
6368
  */
6370
6369
 
6371
- export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FormatAmountPipe, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, TruncatePipe, decryptData, encryptData, getColor };
6370
+ export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DataDirective, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FormatAmountPipe, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, TruncatePipe, decryptData, encryptData, getColor };
6372
6371
  //# sourceMappingURL=intelica-library-ui.mjs.map