keevo-components 2.0.295 → 2.0.296

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.
@@ -1,4 +1,4 @@
1
- import { Component, input } from '@angular/core';
1
+ import { Component, computed, input } from '@angular/core';
2
2
  import { PrimeNgModule } from '../../api/modules/primeng.module';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "primeng/tooltip";
@@ -30,6 +30,7 @@ export class KvStackedBarChartComponent {
30
30
  * @default false
31
31
  */
32
32
  this.animation = input(false);
33
+ this.filteredData = computed(() => this.data().filter((seg) => seg.value > 0));
33
34
  }
34
35
  getTotal() {
35
36
  return this.data().reduce((acc, item) => acc + item.value, 0);
@@ -48,10 +49,10 @@ export class KvStackedBarChartComponent {
48
49
  document.body.style.removeProperty('--tooltip-bg-color');
49
50
  }
50
51
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvStackedBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
51
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvStackedBarChartComponent, isStandalone: true, selector: "kv-stacked-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of data(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"], dependencies: [{ kind: "ngmodule", type: PrimeNgModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
52
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvStackedBarChartComponent, isStandalone: true, selector: "kv-stacked-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of filteredData(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"], dependencies: [{ kind: "ngmodule", type: PrimeNgModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
52
53
  }
53
54
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvStackedBarChartComponent, decorators: [{
54
55
  type: Component,
55
- args: [{ standalone: true, selector: 'kv-stacked-bar-chart', imports: [PrimeNgModule], template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of data(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"] }]
56
+ args: [{ standalone: true, selector: 'kv-stacked-bar-chart', imports: [PrimeNgModule], template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of filteredData(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"] }]
56
57
  }] });
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3Ytc3RhY2tlZC1iYXItY2hhcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMva3Ytc3RhY2tlZC1iYXItY2hhcnQva3Ytc3RhY2tlZC1iYXItY2hhcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMva3Ytc3RhY2tlZC1iYXItY2hhcnQva3Ytc3RhY2tlZC1iYXItY2hhcnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FB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dGlvbj1cInRvcFwiXHJcbiAgICAgICAgW3Rvb2x0aXBTdHlsZUNsYXNzXT1cIid0b29sdGlwLScgKyBpXCJcclxuICAgICAgICBzdHlsZT1cImN1cnNvcjogcG9pbnRlcjtcIlxyXG4gICAgICA+PC9kaXY+XHJcbiAgICB9XHJcbiAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
@@ -14187,6 +14187,7 @@ class KvStackedBarChartComponent {
14187
14187
  * @default false
14188
14188
  */
14189
14189
  this.animation = input(false);
14190
+ this.filteredData = computed(() => this.data().filter((seg) => seg.value > 0));
14190
14191
  }
14191
14192
  getTotal() {
14192
14193
  return this.data().reduce((acc, item) => acc + item.value, 0);
@@ -14205,11 +14206,11 @@ class KvStackedBarChartComponent {
14205
14206
  document.body.style.removeProperty('--tooltip-bg-color');
14206
14207
  }
14207
14208
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvStackedBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14208
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvStackedBarChartComponent, isStandalone: true, selector: "kv-stacked-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of data(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"], dependencies: [{ kind: "ngmodule", type: PrimeNgModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
14209
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvStackedBarChartComponent, isStandalone: true, selector: "kv-stacked-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of filteredData(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"], dependencies: [{ kind: "ngmodule", type: PrimeNgModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
14209
14210
  }
14210
14211
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvStackedBarChartComponent, decorators: [{
14211
14212
  type: Component,
14212
- args: [{ standalone: true, selector: 'kv-stacked-bar-chart', imports: [PrimeNgModule], template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of data(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"] }]
14213
+ args: [{ standalone: true, selector: 'kv-stacked-bar-chart', imports: [PrimeNgModule], template: "<div class=\"barra-categorias-container\">\r\n <div class=\"barra-categorias\">\r\n @for (seg of filteredData(); let i = $index; track i) {\r\n <div\r\n class=\"segmento\"\r\n [ngStyle]=\"{\r\n '--target-width': getPercent(seg.value) + '%',\r\n '--delay': i * 150 + 'ms',\r\n flex: !animation() ? seg.value : '',\r\n backgroundColor: seg.barColor\r\n }\"\r\n [ngClass]=\"{ 'animado w0': animation() }\"\r\n (mouseenter)=\"onMouseEnter(i, seg.tooltipColor)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n [class.destacado-segmento]=\"hoveredIndex === i\"\r\n pTooltip=\"{{ seg.tooltipMessage }}\"\r\n tooltipPosition=\"top\"\r\n [tooltipStyleClass]=\"'tooltip-' + i\"\r\n style=\"cursor: pointer;\"\r\n ></div>\r\n }\r\n </div>\r\n</div>", styles: [".barra-categorias-container{width:100%}.barra-categorias{display:flex;height:16px;border-radius:4px;overflow:hidden;margin-bottom:16px;gap:4px}.segmento{height:100%;border-radius:4px}.segmento.animado{animation:crescerSegmento .5s ease-out forwards;animation-delay:var(--delay)}.w0{width:0}@keyframes crescerSegmento{0%{width:0}to{width:var(--target-width)}}::ng-deep .p-tooltip .p-tooltip-text{background:var(--tooltip-bg-color)!important;border:1px solid rgb(183,185,190)!important;border-radius:4px!important;box-shadow:#0003 1px 2px 10px;color:#6d6e73!important;font-weight:400!important}::ng-deep .p-tooltip-arrow{display:none!important}\n"] }]
14213
14214
  }] });
14214
14215
 
14215
14216
  class NoArvoreComponent {