@bizy/core 20.3.1 → 20.4.0

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
@@ -783,6 +783,49 @@ declare class BizyGridModule {
783
783
  static ɵinj: i0.ɵɵInjectorDeclaration<BizyGridModule>;
784
784
  }
785
785
 
786
+ interface IBizyHeatMapChartData {
787
+ x: number;
788
+ y: number;
789
+ value: number | null;
790
+ }
791
+ interface IBizyHeatMapChartRange {
792
+ value?: number;
793
+ min?: number;
794
+ max?: number;
795
+ label?: string;
796
+ color: string;
797
+ }
798
+
799
+ declare class BizyHeatMapChartComponent implements OnDestroy, AfterViewInit {
800
+ #private;
801
+ resizeRef: HTMLElement | null;
802
+ tooltip: boolean;
803
+ ranges: Array<IBizyHeatMapChartRange>;
804
+ download: {
805
+ show?: boolean;
806
+ label: string;
807
+ name: string;
808
+ };
809
+ xAxisLabels: Array<string>;
810
+ yAxisLabels: Array<string>;
811
+ onTooltipFormatter: (item: any) => string;
812
+ onXAxisLabelFormatter: (item: any) => string;
813
+ onYAxisLabelFormatter: (item: any) => string;
814
+ onDownload: EventEmitter<void>;
815
+ onSelect: EventEmitter<string>;
816
+ ngAfterViewInit(): void;
817
+ set data(data: Array<IBizyHeatMapChartData>);
818
+ ngOnDestroy(): void;
819
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyHeatMapChartComponent, never>;
820
+ static ɵcmp: i0.ɵɵComponentDeclaration<BizyHeatMapChartComponent, "bizy-heat-map-chart", never, { "resizeRef": { "alias": "resizeRef"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "download": { "alias": "download"; "required": false; }; "xAxisLabels": { "alias": "xAxisLabels"; "required": false; }; "yAxisLabels": { "alias": "yAxisLabels"; "required": false; }; "onTooltipFormatter": { "alias": "onTooltipFormatter"; "required": false; }; "onXAxisLabelFormatter": { "alias": "onXAxisLabelFormatter"; "required": false; }; "onYAxisLabelFormatter": { "alias": "onYAxisLabelFormatter"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onDownload": "onDownload"; "onSelect": "onSelect"; }, never, never, true, never>;
821
+ }
822
+
823
+ declare class BizyHeatMapChartModule {
824
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyHeatMapChartModule, never>;
825
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BizyHeatMapChartModule, never, [typeof BizyHeatMapChartComponent], [typeof BizyHeatMapChartComponent]>;
826
+ static ɵinj: i0.ɵɵInjectorDeclaration<BizyHeatMapChartModule>;
827
+ }
828
+
786
829
  declare class BizyInputModule {
787
830
  static ɵfac: i0.ɵɵFactoryDeclaration<BizyInputModule, never>;
788
831
  static ɵmod: i0.ɵɵNgModuleDeclaration<BizyInputModule, never, [typeof BizyInputComponent, typeof BizyInputOptionComponent], [typeof BizyInputComponent, typeof BizyInputOptionComponent]>;
@@ -875,9 +918,18 @@ declare class BizyPieChartComponent {
875
918
  #private;
876
919
  resizeRef: HTMLElement | null;
877
920
  tooltip: boolean;
921
+ centerLabel: string | null;
878
922
  type: 'pie' | 'donut';
923
+ legend: {
924
+ show?: boolean;
925
+ orient?: 'vertical' | 'horizontal';
926
+ position?: {
927
+ x: 'left' | 'right' | 'center';
928
+ y: 'top' | 'bottom' | 'center';
929
+ };
930
+ } | null;
879
931
  download: {
880
- hide?: boolean;
932
+ show?: boolean;
881
933
  label: string;
882
934
  name: string;
883
935
  };
@@ -890,7 +942,7 @@ declare class BizyPieChartComponent {
890
942
  set data(data: Array<IBizyPieChartData>);
891
943
  ngOnDestroy(): void;
892
944
  static ɵfac: i0.ɵɵFactoryDeclaration<BizyPieChartComponent, never>;
893
- static ɵcmp: i0.ɵɵComponentDeclaration<BizyPieChartComponent, "bizy-pie-chart", never, { "resizeRef": { "alias": "resizeRef"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "download": { "alias": "download"; "required": false; }; "onLabelFormatter": { "alias": "onLabelFormatter"; "required": false; }; "onTooltipFormatter": { "alias": "onTooltipFormatter"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelect": "onSelect"; "onDownload": "onDownload"; }, never, never, true, never>;
945
+ static ɵcmp: i0.ɵɵComponentDeclaration<BizyPieChartComponent, "bizy-pie-chart", never, { "resizeRef": { "alias": "resizeRef"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "centerLabel": { "alias": "centerLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; "legend": { "alias": "legend"; "required": false; }; "download": { "alias": "download"; "required": false; }; "onLabelFormatter": { "alias": "onLabelFormatter"; "required": false; }; "onTooltipFormatter": { "alias": "onTooltipFormatter"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelect": "onSelect"; "onDownload": "onDownload"; }, never, never, true, never>;
894
946
  }
895
947
 
896
948
  declare class BizyPieChartModule {
@@ -2093,5 +2145,5 @@ declare class BizyDirectivesModule {
2093
2145
  static ɵinj: i0.ɵɵInjectorDeclaration<BizyDirectivesModule>;
2094
2146
  }
2095
2147
 
2096
- export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
2097
- export type { IBizyBarLineChartData, IBizyBreadcrumb, IBizyCalendarEvent, IBizyPieChartData, IBizyPopupResponse, IBizySearchPipeOptions, ILocale, LabelPosition };
2148
+ export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyHeatMapChartComponent, BizyHeatMapChartModule, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
2149
+ export type { IBizyBarLineChartData, IBizyBreadcrumb, IBizyCalendarEvent, IBizyHeatMapChartData, IBizyHeatMapChartRange, IBizyPieChartData, IBizyPopupResponse, IBizySearchPipeOptions, ILocale, LabelPosition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizy/core",
3
- "version": "20.3.1",
3
+ "version": "20.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.0.0",
6
6
  "@angular/common": "^20.0.0",
@@ -114,6 +114,11 @@
114
114
  --bizy-grid-column-width: 18rem;
115
115
  --bizy-grid-gap: 0.6rem;
116
116
 
117
+ --bizy-heat-map-chart-out-of-range-color: #fff;
118
+ --bizy-heat-map-chart-tooltip-color: #000;
119
+ --bizy-heat-map-chart-tooltip-background-color: #fff;
120
+ --bizy-heat-map-chart-tooltip-border-color: #fff;
121
+
117
122
  --bizy-input-background-color: #fff;
118
123
  --bizy-input-focus-color: var(--bizy-info-color);
119
124
  --bizy-input-invalid-color: var(--bizy-danger-color);
@@ -163,6 +168,11 @@
163
168
  --bizy-menu-scroll-bar-color: var(--bizy-default-color);
164
169
  --bizy-menu-scroll-bar-hover-color: #999;
165
170
 
171
+ --bizy-pie-chart-tooltip-color: #000;
172
+ --bizy-pie-chart-tooltip-background-color: #fff;
173
+ --bizy-pie-chart-tooltip-border-color: #fff;
174
+ --bizy-pie-chart-center-label-color: #000;
175
+
166
176
  --bizy-popup-background-color: #fff;
167
177
  --bizy-popup-min-width: 20rem;
168
178
  --bizy-popup-width: fit-content;