@bizy/core 21.3.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 +11 -32
- 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 +5 -16
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ChangeDetectorRef, ElementRef, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule, Pipe, Renderer2, ViewChild, ViewContainerRef, RendererFactory2, Inject, Injectable, DOCUMENT as DOCUMENT$1, NgZone, Directive, ContentChildren, ContentChild, TemplateRef, HostListener
|
|
2
|
+
import { inject, ChangeDetectorRef, ElementRef, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule, Pipe, Renderer2, ViewChild, ViewContainerRef, RendererFactory2, Inject, Injectable, DOCUMENT as DOCUMENT$1, NgZone, Directive, ContentChildren, ContentChild, TemplateRef, HostListener } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, registerLocaleData, DatePipe } from '@angular/common';
|
|
5
5
|
import { Subscription, Subject, debounceTime, distinctUntilChanged, BehaviorSubject, fromEvent, merge, take, filter as filter$1, skip, auditTime, throttleTime, interval } from 'rxjs';
|
|
@@ -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: [{
|
|
@@ -18495,24 +18495,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
18495
18495
|
args: ['click']
|
|
18496
18496
|
}] } });
|
|
18497
18497
|
|
|
18498
|
-
class BizyTrackByIdDirective {
|
|
18499
|
-
ngFor;
|
|
18500
|
-
constructor(ngFor) {
|
|
18501
|
-
this.ngFor = ngFor;
|
|
18502
|
-
this.ngFor.ngForTrackBy = (_index, item) => item.id;
|
|
18503
|
-
}
|
|
18504
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyTrackByIdDirective, deps: [{ token: i1.NgForOf, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18505
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.5", type: BizyTrackByIdDirective, isStandalone: true, selector: "[bizyTrackById]", ngImport: i0 });
|
|
18506
|
-
}
|
|
18507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyTrackByIdDirective, decorators: [{
|
|
18508
|
-
type: Directive,
|
|
18509
|
-
args: [{
|
|
18510
|
-
selector: '[bizyTrackById]'
|
|
18511
|
-
}]
|
|
18512
|
-
}], ctorParameters: () => [{ type: i1.NgForOf, decorators: [{
|
|
18513
|
-
type: Host
|
|
18514
|
-
}] }] });
|
|
18515
|
-
|
|
18516
18498
|
class BizyAutoFocusDirective {
|
|
18517
18499
|
elementRef;
|
|
18518
18500
|
ref;
|
|
@@ -18563,7 +18545,6 @@ const DIRECTIVES = [
|
|
|
18563
18545
|
BizyOnlyPhoneDigitsDirective,
|
|
18564
18546
|
BizyTextEllipsisDirective,
|
|
18565
18547
|
BizyTooltipDirective,
|
|
18566
|
-
BizyTrackByIdDirective,
|
|
18567
18548
|
BizyAutoFocusDirective,
|
|
18568
18549
|
BizyReloadDirective
|
|
18569
18550
|
];
|
|
@@ -18577,7 +18558,6 @@ class BizyDirectivesModule {
|
|
|
18577
18558
|
BizyOnlyPhoneDigitsDirective,
|
|
18578
18559
|
BizyTextEllipsisDirective,
|
|
18579
18560
|
BizyTooltipDirective,
|
|
18580
|
-
BizyTrackByIdDirective,
|
|
18581
18561
|
BizyAutoFocusDirective,
|
|
18582
18562
|
BizyReloadDirective], exports: [BizyCopyToClipboardDirective,
|
|
18583
18563
|
BizyCurrencyFormatDirective,
|
|
@@ -18587,7 +18567,6 @@ class BizyDirectivesModule {
|
|
|
18587
18567
|
BizyOnlyPhoneDigitsDirective,
|
|
18588
18568
|
BizyTextEllipsisDirective,
|
|
18589
18569
|
BizyTooltipDirective,
|
|
18590
|
-
BizyTrackByIdDirective,
|
|
18591
18570
|
BizyAutoFocusDirective,
|
|
18592
18571
|
BizyReloadDirective] });
|
|
18593
18572
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDirectivesModule });
|
|
@@ -18604,5 +18583,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
18604
18583
|
* Generated bundle index. Do not edit.
|
|
18605
18584
|
*/
|
|
18606
18585
|
|
|
18607
|
-
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 };
|
|
18608
18587
|
//# sourceMappingURL=bizy-core.mjs.map
|