@bizy/core 20.6.3 → 20.6.7
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 +85 -27
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/index.d.ts +28 -16
- package/package.json +1 -1
- package/styles/variables.css +3 -0
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -1497,11 +1497,11 @@ class BizyCardComponent {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
1499
1499
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyCardComponent, isStandalone: true, selector: "bizy-card", inputs: { id: "id", disabled: "disabled", selected: "selected", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n class=\"bizy-card {{customClass}}\"\n [ngClass]=\"{'bizy-card--disabled': disabled}\">\n\n <span class=\"bizy-card__header\">\n\n <span class=\"bizy-card__header__start bizy-card__slot\">\n <ng-content select=\"[slot=header-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__header__end bizy-card__slot\">\n <ng-content select=\"[slot=header-end]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-card__content\">\n\n <ng-content></ng-content>\n\n </span>\n\n <span class=\"bizy-card__footer\">\n\n <span class=\"bizy-card__footer__start bizy-card__slot\">\n <ng-content select=\"[slot=footer-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__footer__end bizy-card__slot\">\n <ng-content select=\"[slot=footer-end]\"></ng-content>\n </span>\n\n </span>\n\n</button>", styles: [":host{font-size:1rem;height:var(--bizy-card-height);min-height:var(--bizy-card-min-height);max-height:var(--bizy-card-max-height);width:var(--bizy-card-width);min-width:var(--bizy-card-min-width);max-width:var(--bizy-card-max-width)}.bizy-card{height:100%;width:100%;cursor:var(--bizy-card-cursor);border-top:var(--bizy-card-border-top, var(--bizy-card-border, none));border-right:var(--bizy-card-border-right, var(--bizy-card-border, none));border-bottom:var(--bizy-card-border-bottom, var(--bizy-card-border, none));border-left:var(--bizy-card-border-left, var(--bizy-card-border, none));border-radius:var(--bizy-card-border-radius);overflow:hidden;padding:var(--bizy-card-padding);display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--bizy-card-row-gap);background-color:var(--bizy-card-background-color);transition:transform .25s ease-in-out;box-shadow:var(--bizy-card-box-shadow)}.bizy-card:hover{transform:translateY(-1px);box-shadow:var(--bizy-card-hover-box-shadow)}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__content{display:none}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__header:not(:empty){height:100%!important}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__footer:not(:empty){height:100%!important}.bizy-card--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-card__content:not(:empty){display:flex;align-items:
|
|
1500
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyCardComponent, isStandalone: true, selector: "bizy-card", inputs: { id: "id", disabled: "disabled", selected: "selected", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n class=\"bizy-card {{customClass}}\"\n [ngClass]=\"{'bizy-card--disabled': disabled}\">\n\n <span class=\"bizy-card__header\">\n\n <span class=\"bizy-card__header__start bizy-card__slot\">\n <ng-content select=\"[slot=header-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__header__end bizy-card__slot\">\n <ng-content select=\"[slot=header-end]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-card__content\">\n\n <ng-content></ng-content>\n\n </span>\n\n <span class=\"bizy-card__footer\">\n\n <span class=\"bizy-card__footer__start bizy-card__slot\">\n <ng-content select=\"[slot=footer-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__footer__end bizy-card__slot\">\n <ng-content select=\"[slot=footer-end]\"></ng-content>\n </span>\n\n </span>\n\n</button>", styles: [":host{font-size:1rem;height:var(--bizy-card-height);min-height:var(--bizy-card-min-height);max-height:var(--bizy-card-max-height);width:var(--bizy-card-width);min-width:var(--bizy-card-min-width);max-width:var(--bizy-card-max-width)}.bizy-card{height:100%;width:100%;cursor:var(--bizy-card-cursor);border-top:var(--bizy-card-border-top, var(--bizy-card-border, none));border-right:var(--bizy-card-border-right, var(--bizy-card-border, none));border-bottom:var(--bizy-card-border-bottom, var(--bizy-card-border, none));border-left:var(--bizy-card-border-left, var(--bizy-card-border, none));border-radius:var(--bizy-card-border-radius);overflow:hidden;padding:var(--bizy-card-padding);display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--bizy-card-row-gap);background-color:var(--bizy-card-background-color);transition:transform .25s ease-in-out;box-shadow:var(--bizy-card-box-shadow)}.bizy-card:hover{transform:translateY(-1px);box-shadow:var(--bizy-card-hover-box-shadow)}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__content{display:none}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__header:not(:empty){height:100%!important}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__footer:not(:empty){height:100%!important}.bizy-card--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-card__content:not(:empty){display:flex;align-items:var(--bizy-card-content-align-items);column-gap:.5rem;height:100%;width:100%;background-color:var(--bizy-card-content-background-color)}.bizy-card__header:has(>.bizy-card__header__start:empty):has(>.bizy-card__header__end:empty){display:none}.bizy-card__header:not(:empty){width:100%;height:fit-content;display:grid;grid-template-columns:auto auto;align-items:var(--bizy-card-header-align-items);column-gap:.5rem;background-color:var(--bizy-card-header-background-color)}.bizy-card__header__start{justify-content:flex-start}.bizy-card__header__end{justify-content:flex-end}.bizy-card__slot{width:100%;display:flex;align-items:center;column-gap:.5rem;height:100%;overflow:hidden}.bizy-card__footer:has(>.bizy-card__footer__start:empty):has(>.bizy-card__footer__end:empty){display:none}.bizy-card__footer:not(:empty){width:100%;height:fit-content;display:grid;grid-template-columns:auto auto;align-items:var(--bizy-card-footer-align-items);column-gap:.5rem;background-color:var(--bizy-card-footer-background-color)}.bizy-card__footer__start{justify-content:flex-start}.bizy-card__footer__end{justify-content:flex-end}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1501
1501
|
}
|
|
1502
1502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardComponent, decorators: [{
|
|
1503
1503
|
type: Component,
|
|
1504
|
-
args: [{ selector: 'bizy-card', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n class=\"bizy-card {{customClass}}\"\n [ngClass]=\"{'bizy-card--disabled': disabled}\">\n\n <span class=\"bizy-card__header\">\n\n <span class=\"bizy-card__header__start bizy-card__slot\">\n <ng-content select=\"[slot=header-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__header__end bizy-card__slot\">\n <ng-content select=\"[slot=header-end]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-card__content\">\n\n <ng-content></ng-content>\n\n </span>\n\n <span class=\"bizy-card__footer\">\n\n <span class=\"bizy-card__footer__start bizy-card__slot\">\n <ng-content select=\"[slot=footer-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__footer__end bizy-card__slot\">\n <ng-content select=\"[slot=footer-end]\"></ng-content>\n </span>\n\n </span>\n\n</button>", styles: [":host{font-size:1rem;height:var(--bizy-card-height);min-height:var(--bizy-card-min-height);max-height:var(--bizy-card-max-height);width:var(--bizy-card-width);min-width:var(--bizy-card-min-width);max-width:var(--bizy-card-max-width)}.bizy-card{height:100%;width:100%;cursor:var(--bizy-card-cursor);border-top:var(--bizy-card-border-top, var(--bizy-card-border, none));border-right:var(--bizy-card-border-right, var(--bizy-card-border, none));border-bottom:var(--bizy-card-border-bottom, var(--bizy-card-border, none));border-left:var(--bizy-card-border-left, var(--bizy-card-border, none));border-radius:var(--bizy-card-border-radius);overflow:hidden;padding:var(--bizy-card-padding);display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--bizy-card-row-gap);background-color:var(--bizy-card-background-color);transition:transform .25s ease-in-out;box-shadow:var(--bizy-card-box-shadow)}.bizy-card:hover{transform:translateY(-1px);box-shadow:var(--bizy-card-hover-box-shadow)}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__content{display:none}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__header:not(:empty){height:100%!important}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__footer:not(:empty){height:100%!important}.bizy-card--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-card__content:not(:empty){display:flex;align-items:
|
|
1504
|
+
args: [{ selector: 'bizy-card', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n class=\"bizy-card {{customClass}}\"\n [ngClass]=\"{'bizy-card--disabled': disabled}\">\n\n <span class=\"bizy-card__header\">\n\n <span class=\"bizy-card__header__start bizy-card__slot\">\n <ng-content select=\"[slot=header-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__header__end bizy-card__slot\">\n <ng-content select=\"[slot=header-end]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-card__content\">\n\n <ng-content></ng-content>\n\n </span>\n\n <span class=\"bizy-card__footer\">\n\n <span class=\"bizy-card__footer__start bizy-card__slot\">\n <ng-content select=\"[slot=footer-start]\"></ng-content>\n </span>\n\n <span class=\"bizy-card__footer__end bizy-card__slot\">\n <ng-content select=\"[slot=footer-end]\"></ng-content>\n </span>\n\n </span>\n\n</button>", styles: [":host{font-size:1rem;height:var(--bizy-card-height);min-height:var(--bizy-card-min-height);max-height:var(--bizy-card-max-height);width:var(--bizy-card-width);min-width:var(--bizy-card-min-width);max-width:var(--bizy-card-max-width)}.bizy-card{height:100%;width:100%;cursor:var(--bizy-card-cursor);border-top:var(--bizy-card-border-top, var(--bizy-card-border, none));border-right:var(--bizy-card-border-right, var(--bizy-card-border, none));border-bottom:var(--bizy-card-border-bottom, var(--bizy-card-border, none));border-left:var(--bizy-card-border-left, var(--bizy-card-border, none));border-radius:var(--bizy-card-border-radius);overflow:hidden;padding:var(--bizy-card-padding);display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--bizy-card-row-gap);background-color:var(--bizy-card-background-color);transition:transform .25s ease-in-out;box-shadow:var(--bizy-card-box-shadow)}.bizy-card:hover{transform:translateY(-1px);box-shadow:var(--bizy-card-hover-box-shadow)}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__content{display:none}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__header:not(:empty){height:100%!important}.bizy-card:has(>.bizy-card__content:empty)>.bizy-card__footer:not(:empty){height:100%!important}.bizy-card--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-card__content:not(:empty){display:flex;align-items:var(--bizy-card-content-align-items);column-gap:.5rem;height:100%;width:100%;background-color:var(--bizy-card-content-background-color)}.bizy-card__header:has(>.bizy-card__header__start:empty):has(>.bizy-card__header__end:empty){display:none}.bizy-card__header:not(:empty){width:100%;height:fit-content;display:grid;grid-template-columns:auto auto;align-items:var(--bizy-card-header-align-items);column-gap:.5rem;background-color:var(--bizy-card-header-background-color)}.bizy-card__header__start{justify-content:flex-start}.bizy-card__header__end{justify-content:flex-end}.bizy-card__slot{width:100%;display:flex;align-items:center;column-gap:.5rem;height:100%;overflow:hidden}.bizy-card__footer:has(>.bizy-card__footer__start:empty):has(>.bizy-card__footer__end:empty){display:none}.bizy-card__footer:not(:empty){width:100%;height:fit-content;display:grid;grid-template-columns:auto auto;align-items:var(--bizy-card-footer-align-items);column-gap:.5rem;background-color:var(--bizy-card-footer-background-color)}.bizy-card__footer__start{justify-content:flex-start}.bizy-card__footer__end{justify-content:flex-end}\n"] }]
|
|
1505
1505
|
}], propDecorators: { id: [{
|
|
1506
1506
|
type: Input
|
|
1507
1507
|
}], disabled: [{
|
|
@@ -3585,11 +3585,11 @@ class BizyHeatMapChartComponent {
|
|
|
3585
3585
|
#ref = inject(ChangeDetectorRef);
|
|
3586
3586
|
#renderer = inject(Renderer2);
|
|
3587
3587
|
resizeRef = null;
|
|
3588
|
-
tooltip =
|
|
3589
|
-
download =
|
|
3588
|
+
tooltip = { show: true };
|
|
3589
|
+
download = { show: true, label: 'Descargar', name: 'Bizy' };
|
|
3590
3590
|
ranges = [];
|
|
3591
|
-
xAxis =
|
|
3592
|
-
yAxis =
|
|
3591
|
+
xAxis = { labels: [], position: 'top' };
|
|
3592
|
+
yAxis = { labels: [], position: 'left' };
|
|
3593
3593
|
onDownload = new EventEmitter();
|
|
3594
3594
|
onSelect = new EventEmitter();
|
|
3595
3595
|
#echarts = null;
|
|
@@ -3624,10 +3624,15 @@ class BizyHeatMapChartComponent {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
const series = [{
|
|
3626
3626
|
type: 'heatmap',
|
|
3627
|
-
data: this.#data.map(_cell =>
|
|
3627
|
+
data: this.#data.map(_cell => {
|
|
3628
|
+
return {
|
|
3629
|
+
value: [_cell.x, _cell.y, _cell.value ?? '-'],
|
|
3630
|
+
metadata: _cell.metadata
|
|
3631
|
+
};
|
|
3632
|
+
})
|
|
3628
3633
|
}];
|
|
3629
3634
|
const tooltip = {
|
|
3630
|
-
show: this.tooltip,
|
|
3635
|
+
show: this.tooltip.show ?? true,
|
|
3631
3636
|
trigger: 'item',
|
|
3632
3637
|
appendToBody: true,
|
|
3633
3638
|
formatter: this.tooltip?.formatter
|
|
@@ -3638,7 +3643,7 @@ class BizyHeatMapChartComponent {
|
|
|
3638
3643
|
splitArea: {
|
|
3639
3644
|
show: true
|
|
3640
3645
|
},
|
|
3641
|
-
position: 'top',
|
|
3646
|
+
position: this.xAxis?.position ?? 'top',
|
|
3642
3647
|
data: this.xAxis?.labels,
|
|
3643
3648
|
axisLabel: {
|
|
3644
3649
|
formatter: this.xAxis?.formatter,
|
|
@@ -3648,6 +3653,7 @@ class BizyHeatMapChartComponent {
|
|
|
3648
3653
|
const yAxis = [
|
|
3649
3654
|
{
|
|
3650
3655
|
type: 'category',
|
|
3656
|
+
position: this.yAxis?.position ?? 'left',
|
|
3651
3657
|
data: this.yAxis?.labels,
|
|
3652
3658
|
splitArea: {
|
|
3653
3659
|
show: true
|
|
@@ -3658,11 +3664,27 @@ class BizyHeatMapChartComponent {
|
|
|
3658
3664
|
}
|
|
3659
3665
|
];
|
|
3660
3666
|
const outOfRangeColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-out-of-range-color');
|
|
3667
|
+
let text = null;
|
|
3668
|
+
let pieces = [];
|
|
3669
|
+
if (Array.isArray(this.ranges)) {
|
|
3670
|
+
pieces = this.ranges;
|
|
3671
|
+
}
|
|
3672
|
+
else if (this.ranges && this.ranges.data) {
|
|
3673
|
+
pieces = this.ranges.data;
|
|
3674
|
+
if (this.ranges.label?.start) {
|
|
3675
|
+
text = [null, this.ranges.label.start];
|
|
3676
|
+
}
|
|
3677
|
+
if (this.ranges.label?.end) {
|
|
3678
|
+
text = [this.ranges.label.end, text && text[1] ? text[1] : null];
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3661
3681
|
const visualMap = {
|
|
3662
3682
|
type: 'piecewise',
|
|
3663
3683
|
orient: 'horizontal',
|
|
3664
3684
|
left: 'center',
|
|
3665
|
-
|
|
3685
|
+
text,
|
|
3686
|
+
showLabel: true,
|
|
3687
|
+
pieces,
|
|
3666
3688
|
outOfRange: {
|
|
3667
3689
|
color: outOfRangeColor
|
|
3668
3690
|
}
|
|
@@ -3707,13 +3729,19 @@ class BizyHeatMapChartComponent {
|
|
|
3707
3729
|
}
|
|
3708
3730
|
}
|
|
3709
3731
|
};
|
|
3732
|
+
const grid = {
|
|
3733
|
+
left: 0,
|
|
3734
|
+
right: 0,
|
|
3735
|
+
containLabel: true
|
|
3736
|
+
};
|
|
3710
3737
|
const option = {
|
|
3711
3738
|
tooltip,
|
|
3712
3739
|
xAxis,
|
|
3713
3740
|
yAxis,
|
|
3714
3741
|
toolbox,
|
|
3715
3742
|
series,
|
|
3716
|
-
visualMap
|
|
3743
|
+
visualMap,
|
|
3744
|
+
grid
|
|
3717
3745
|
};
|
|
3718
3746
|
import('echarts').then(echarts => {
|
|
3719
3747
|
this.#echarts = echarts.init(this.#chartContainer);
|
|
@@ -7871,6 +7899,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
7871
7899
|
}]
|
|
7872
7900
|
}] });
|
|
7873
7901
|
|
|
7902
|
+
class BizyRoundPipe {
|
|
7903
|
+
transform(value, mode = 'round') {
|
|
7904
|
+
if (typeof value !== 'number') {
|
|
7905
|
+
return value;
|
|
7906
|
+
}
|
|
7907
|
+
switch (mode) {
|
|
7908
|
+
case 'ceil':
|
|
7909
|
+
return Math.ceil(value);
|
|
7910
|
+
case 'floor':
|
|
7911
|
+
return Math.floor(value);
|
|
7912
|
+
default:
|
|
7913
|
+
return Math.round(value);
|
|
7914
|
+
}
|
|
7915
|
+
}
|
|
7916
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyRoundPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7917
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyRoundPipe, isStandalone: true, name: "bizyRound" });
|
|
7918
|
+
}
|
|
7919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyRoundPipe, decorators: [{
|
|
7920
|
+
type: Pipe,
|
|
7921
|
+
args: [{
|
|
7922
|
+
name: 'bizyRound'
|
|
7923
|
+
}]
|
|
7924
|
+
}] });
|
|
7925
|
+
|
|
7874
7926
|
class BizyExtractNumbersPipe {
|
|
7875
7927
|
transform(value) {
|
|
7876
7928
|
if (!value) {
|
|
@@ -8317,7 +8369,8 @@ const PIPES = [
|
|
|
8317
8369
|
BizyAveragePipe,
|
|
8318
8370
|
BizySearchPipe,
|
|
8319
8371
|
BizyFormatSecondsPipe,
|
|
8320
|
-
BizyExtractNumbersPipe
|
|
8372
|
+
BizyExtractNumbersPipe,
|
|
8373
|
+
BizyRoundPipe
|
|
8321
8374
|
];
|
|
8322
8375
|
class BizyPipesModule {
|
|
8323
8376
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -8330,7 +8383,8 @@ class BizyPipesModule {
|
|
|
8330
8383
|
BizyAveragePipe,
|
|
8331
8384
|
BizySearchPipe,
|
|
8332
8385
|
BizyFormatSecondsPipe,
|
|
8333
|
-
BizyExtractNumbersPipe
|
|
8386
|
+
BizyExtractNumbersPipe,
|
|
8387
|
+
BizyRoundPipe], exports: [BizyRepeatPipe,
|
|
8334
8388
|
BizySetToArrayPipe,
|
|
8335
8389
|
BizyEnumToArrayPipe,
|
|
8336
8390
|
BizyOrderByPipe,
|
|
@@ -8339,7 +8393,8 @@ class BizyPipesModule {
|
|
|
8339
8393
|
BizyAveragePipe,
|
|
8340
8394
|
BizySearchPipe,
|
|
8341
8395
|
BizyFormatSecondsPipe,
|
|
8342
|
-
BizyExtractNumbersPipe
|
|
8396
|
+
BizyExtractNumbersPipe,
|
|
8397
|
+
BizyRoundPipe] });
|
|
8343
8398
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPipesModule, providers: PIPES });
|
|
8344
8399
|
}
|
|
8345
8400
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPipesModule, decorators: [{
|
|
@@ -8799,6 +8854,7 @@ class BizyTooltipDirective {
|
|
|
8799
8854
|
tooltipCustomClass = '';
|
|
8800
8855
|
tooltipPlacement = 'top';
|
|
8801
8856
|
tooltipDelay = 0; // Milliseconds
|
|
8857
|
+
showTooltip = true;
|
|
8802
8858
|
tooltipLongPressDuration = 500; // Milliseconds
|
|
8803
8859
|
#elementRef = inject(ElementRef);
|
|
8804
8860
|
#renderer = inject(Renderer2);
|
|
@@ -8858,7 +8914,7 @@ class BizyTooltipDirective {
|
|
|
8858
8914
|
return;
|
|
8859
8915
|
}
|
|
8860
8916
|
this.#hiding = false;
|
|
8861
|
-
this
|
|
8917
|
+
this.#show();
|
|
8862
8918
|
}
|
|
8863
8919
|
}
|
|
8864
8920
|
onMouseLeave() {
|
|
@@ -8870,7 +8926,7 @@ class BizyTooltipDirective {
|
|
|
8870
8926
|
return;
|
|
8871
8927
|
}
|
|
8872
8928
|
this.#hiding = true;
|
|
8873
|
-
this
|
|
8929
|
+
this.#hide();
|
|
8874
8930
|
}
|
|
8875
8931
|
// Fix fixed tooltips
|
|
8876
8932
|
this.#document.querySelectorAll('.bizy-tooltip-identify').forEach(element => {
|
|
@@ -8885,7 +8941,7 @@ class BizyTooltipDirective {
|
|
|
8885
8941
|
onClick() {
|
|
8886
8942
|
if (this.#tooltip && !this.#hiding) {
|
|
8887
8943
|
this.#hiding = true;
|
|
8888
|
-
this
|
|
8944
|
+
this.#hide();
|
|
8889
8945
|
return;
|
|
8890
8946
|
}
|
|
8891
8947
|
if (!this.#text) {
|
|
@@ -8894,30 +8950,30 @@ class BizyTooltipDirective {
|
|
|
8894
8950
|
if (!this.#tooltip && this.#text) {
|
|
8895
8951
|
this.#longPressTimeout = setTimeout(() => {
|
|
8896
8952
|
this.#hiding = false;
|
|
8897
|
-
this
|
|
8953
|
+
this.#show();
|
|
8898
8954
|
}, this.tooltipLongPressDuration);
|
|
8899
8955
|
}
|
|
8900
8956
|
}
|
|
8901
|
-
show() {
|
|
8902
|
-
if (this.#lineClamp > 0 && !this.#isTextTruncated(this.#elementRef.nativeElement)) {
|
|
8957
|
+
#show() {
|
|
8958
|
+
if (!this.showTooltip || (this.#lineClamp > 0 && !this.#isTextTruncated(this.#elementRef.nativeElement))) {
|
|
8903
8959
|
return;
|
|
8904
8960
|
}
|
|
8905
|
-
this
|
|
8906
|
-
this
|
|
8961
|
+
this.#create();
|
|
8962
|
+
this.#setPosition();
|
|
8907
8963
|
this.#renderer.addClass(this.#tooltip, 'bizy-tooltip-identify');
|
|
8908
8964
|
this.#renderer.addClass(this.#tooltip, 'bizy-tooltip--show');
|
|
8909
8965
|
if (this.tooltipCustomClass) {
|
|
8910
8966
|
this.#renderer.addClass(this.#tooltip, this.tooltipCustomClass);
|
|
8911
8967
|
}
|
|
8912
8968
|
}
|
|
8913
|
-
hide() {
|
|
8969
|
+
#hide() {
|
|
8914
8970
|
this.#renderer.removeClass(this.#tooltip, 'bizy-tooltip--show');
|
|
8915
8971
|
window.setTimeout(() => {
|
|
8916
8972
|
this.#renderer.removeChild(this.#document.body, this.#tooltip);
|
|
8917
8973
|
this.#tooltip = null;
|
|
8918
8974
|
}, this.tooltipDelay);
|
|
8919
8975
|
}
|
|
8920
|
-
create() {
|
|
8976
|
+
#create() {
|
|
8921
8977
|
this.#tooltip = this.#renderer.createElement('span');
|
|
8922
8978
|
const sentences = String(this.#text).split('</br>');
|
|
8923
8979
|
sentences.forEach(_sentence => {
|
|
@@ -8934,7 +8990,7 @@ class BizyTooltipDirective {
|
|
|
8934
8990
|
this.#renderer.setStyle(this.#tooltip, 'transition', 'opacity ' + this.tooltipDelay + 'ms');
|
|
8935
8991
|
}
|
|
8936
8992
|
}
|
|
8937
|
-
setPosition() {
|
|
8993
|
+
#setPosition() {
|
|
8938
8994
|
const elRefPosition = this.#elementRef.nativeElement.getBoundingClientRect();
|
|
8939
8995
|
const tooltipPos = this.#tooltip?.getBoundingClientRect();
|
|
8940
8996
|
const scrollPos = window.pageYOffset || this.#document.documentElement.scrollTop || this.#document.body.scrollTop || 0;
|
|
@@ -8975,7 +9031,7 @@ class BizyTooltipDirective {
|
|
|
8975
9031
|
});
|
|
8976
9032
|
}
|
|
8977
9033
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8978
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.5", type: BizyTooltipDirective, isStandalone: true, selector: "[bizyTooltip]", inputs: { tooltipCustomClass: "tooltipCustomClass", tooltipPlacement: "tooltipPlacement", tooltipDelay: "tooltipDelay", tooltipLongPressDuration: "tooltipLongPressDuration", tooltipLineClamp: "tooltipLineClamp", tooltipText: ["bizyTooltip", "tooltipText"], placement: "placement", delay: "delay" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "mouseup": "onMouseUp()", "click": "onClick()" } }, ngImport: i0 });
|
|
9034
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.5", type: BizyTooltipDirective, isStandalone: true, selector: "[bizyTooltip]", inputs: { tooltipCustomClass: "tooltipCustomClass", tooltipPlacement: "tooltipPlacement", tooltipDelay: "tooltipDelay", showTooltip: "showTooltip", tooltipLongPressDuration: "tooltipLongPressDuration", tooltipLineClamp: "tooltipLineClamp", tooltipText: ["bizyTooltip", "tooltipText"], placement: "placement", delay: "delay" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "mouseup": "onMouseUp()", "click": "onClick()" } }, ngImport: i0 });
|
|
8979
9035
|
}
|
|
8980
9036
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTooltipDirective, decorators: [{
|
|
8981
9037
|
type: Directive,
|
|
@@ -8988,6 +9044,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
8988
9044
|
type: Input
|
|
8989
9045
|
}], tooltipDelay: [{
|
|
8990
9046
|
type: Input
|
|
9047
|
+
}], showTooltip: [{
|
|
9048
|
+
type: Input
|
|
8991
9049
|
}], tooltipLongPressDuration: [{
|
|
8992
9050
|
type: Input
|
|
8993
9051
|
}], tooltipLineClamp: [{
|
|
@@ -9122,5 +9180,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
9122
9180
|
* Generated bundle index. Do not edit.
|
|
9123
9181
|
*/
|
|
9124
9182
|
|
|
9125
|
-
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, BizyMenuBarComponent, BizyMenuBarModule, BizyMenuBarOptionComponent, 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, MODE, POPUP_PLACEMENT };
|
|
9183
|
+
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, BizyMenuBarComponent, BizyMenuBarModule, BizyMenuBarOptionComponent, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, 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, 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, MODE, POPUP_PLACEMENT };
|
|
9126
9184
|
//# sourceMappingURL=bizy-core.mjs.map
|