@bizy/core 21.4.0 → 21.4.1
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/fesm2022/bizy-core.mjs +10 -10
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/variables.css +8 -1
- package/types/bizy-core.d.ts +4 -4
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -15918,15 +15918,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
15918
15918
|
type: Input
|
|
15919
15919
|
}] } });
|
|
15920
15920
|
|
|
15921
|
-
var
|
|
15922
|
-
(function (
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
})(
|
|
15921
|
+
var BIZY_STACKED_BAR_CHART_LEGEND_POSITION;
|
|
15922
|
+
(function (BIZY_STACKED_BAR_CHART_LEGEND_POSITION) {
|
|
15923
|
+
BIZY_STACKED_BAR_CHART_LEGEND_POSITION["TOP"] = "top";
|
|
15924
|
+
BIZY_STACKED_BAR_CHART_LEGEND_POSITION["BOTTOM"] = "bottom";
|
|
15925
|
+
})(BIZY_STACKED_BAR_CHART_LEGEND_POSITION || (BIZY_STACKED_BAR_CHART_LEGEND_POSITION = {}));
|
|
15926
15926
|
|
|
15927
15927
|
const DEFAULT_LEGENDS = {
|
|
15928
15928
|
show: true,
|
|
15929
|
-
position:
|
|
15929
|
+
position: BIZY_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM
|
|
15930
15930
|
};
|
|
15931
15931
|
class BizyStackedBarChartComponent {
|
|
15932
15932
|
#elementRef = inject(ElementRef);
|
|
@@ -15937,7 +15937,7 @@ class BizyStackedBarChartComponent {
|
|
|
15937
15937
|
_legends = DEFAULT_LEGENDS;
|
|
15938
15938
|
#segmentSubscription = new Subscription();
|
|
15939
15939
|
#segmentValueSubscription = new Subscription();
|
|
15940
|
-
|
|
15940
|
+
BIZY_STACKED_BAR_CHART_LEGEND_POSITION = BIZY_STACKED_BAR_CHART_LEGEND_POSITION;
|
|
15941
15941
|
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
15942
15942
|
ngAfterContentInit() {
|
|
15943
15943
|
if (!this.segments || this.segments.length === 0) {
|
|
@@ -15998,13 +15998,13 @@ class BizyStackedBarChartComponent {
|
|
|
15998
15998
|
this.#segmentValueSubscription.unsubscribe();
|
|
15999
15999
|
}
|
|
16000
16000
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16001
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyStackedBarChartComponent, isStandalone: true, selector: "bizy-stacked-bar-chart", inputs: { id: "id", legends: "legends", total: "total" }, host: { properties: { "id": "id" } }, queries: [{ propertyName: "segments", predicate: BizyStackedBarChartSegmentComponent }], ngImport: i0, template: "@if(segments && _legends.show && _legends.position ===
|
|
16001
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyStackedBarChartComponent, isStandalone: true, selector: "bizy-stacked-bar-chart", inputs: { id: "id", legends: "legends", total: "total" }, host: { properties: { "id": "id" } }, queries: [{ propertyName: "segments", predicate: BizyStackedBarChartSegmentComponent }], ngImport: i0, template: "@if(segments && _legends.show && _legends.position === BIZY_STACKED_BAR_CHART_LEGEND_POSITION.TOP) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n\n<div class=\"bizy-stacked-bar-chart\">\n <ng-content select=\"bizy-stacked-bar-chart-segment\"></ng-content>\n</div>\n\n\n@if(segments && _legends.show && _legends.position === BIZY_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n", styles: [":host{font-size:1rem;display:flex;flex-direction:column;row-gap:.3rem;height:fit-content;width:var(--bizy-stacked-bar-chart-width)}.bizy-stacked-bar-chart{display:flex;width:100%;height:var(--bizy-stacked-bar-chart-height);border-top:var(--bizy-stacked-bar-chart-border-top, var(--bizy-stacked-bar-chart-border, none));border-right:var(--bizy-stacked-bar-chart-border-right, var(--bizy-stacked-bar-chart-border, none));border-bottom:var(--bizy-stacked-bar-chart-border-bottom, var(--bizy-stacked-bar-chart-border, none));border-left:var(--bizy-stacked-bar-chart-border-left, var(--bizy-stacked-bar-chart-border, none));border-radius:var(--bizy-stacked-bar-chart-border-radius);overflow:hidden;background-color:var(--bizy-stacked-bar-chart-background-color)}.bizy-stacked-bar-chart__legends{width:100%;display:flex;align-items:center;column-gap:.5rem;flex-wrap:wrap}.bizy-stacked-bar-chart__legends__legend{display:flex;align-items:center;column-gap:.3rem;border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}.bizy-stacked-bar-chart__legends__legend__bullet{border-radius:50%;width:.5rem;height:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16002
16002
|
}
|
|
16003
16003
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartComponent, decorators: [{
|
|
16004
16004
|
type: Component,
|
|
16005
16005
|
args: [{ selector: 'bizy-stacked-bar-chart', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
16006
16006
|
'[id]': 'id',
|
|
16007
|
-
}, template: "@if(segments && _legends.show && _legends.position ===
|
|
16007
|
+
}, template: "@if(segments && _legends.show && _legends.position === BIZY_STACKED_BAR_CHART_LEGEND_POSITION.TOP) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n\n<div class=\"bizy-stacked-bar-chart\">\n <ng-content select=\"bizy-stacked-bar-chart-segment\"></ng-content>\n</div>\n\n\n@if(segments && _legends.show && _legends.position === BIZY_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n", styles: [":host{font-size:1rem;display:flex;flex-direction:column;row-gap:.3rem;height:fit-content;width:var(--bizy-stacked-bar-chart-width)}.bizy-stacked-bar-chart{display:flex;width:100%;height:var(--bizy-stacked-bar-chart-height);border-top:var(--bizy-stacked-bar-chart-border-top, var(--bizy-stacked-bar-chart-border, none));border-right:var(--bizy-stacked-bar-chart-border-right, var(--bizy-stacked-bar-chart-border, none));border-bottom:var(--bizy-stacked-bar-chart-border-bottom, var(--bizy-stacked-bar-chart-border, none));border-left:var(--bizy-stacked-bar-chart-border-left, var(--bizy-stacked-bar-chart-border, none));border-radius:var(--bizy-stacked-bar-chart-border-radius);overflow:hidden;background-color:var(--bizy-stacked-bar-chart-background-color)}.bizy-stacked-bar-chart__legends{width:100%;display:flex;align-items:center;column-gap:.5rem;flex-wrap:wrap}.bizy-stacked-bar-chart__legends__legend{display:flex;align-items:center;column-gap:.3rem;border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}.bizy-stacked-bar-chart__legends__legend__bullet{border-radius:50%;width:.5rem;height:.5rem}\n"] }]
|
|
16008
16008
|
}], propDecorators: { id: [{
|
|
16009
16009
|
type: Input
|
|
16010
16010
|
}], segments: [{
|
|
@@ -18583,5 +18583,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
18583
18583
|
* Generated bundle index. Do not edit.
|
|
18584
18584
|
*/
|
|
18585
18585
|
|
|
18586
|
-
export {
|
|
18586
|
+
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_STACKED_BAR_CHART_LEGEND_POSITION, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerFormatSecondsPipe, BizyAudioPlayerModule, BizyAudioRecorderComponent, BizyAudioRecorderModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBarLineChartPopupComponent, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyDonutChartComponent, BizyDonutChartModule, BizyDonutChartPopupComponent, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGaugeChartComponent, BizyGaugeChartModule, BizyGaugeChartPopupComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyHeatMapChartComponent, BizyHeatMapChartModule, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuBarComponent, BizyMenuBarModule, BizyMenuBarOptionComponent, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPieChartPopupComponent, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRoundPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStackedBarChartComponent, BizyStackedBarChartModule, BizyStackedBarChartSegmentComponent, 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, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUniquePipe, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE, POPUP_PLACEMENT };
|
|
18587
18587
|
//# sourceMappingURL=bizy-core.mjs.map
|