@bizy/core 20.2.8 → 20.3.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, ChangeDetectorRef, Output, Input, Inject, ChangeDetectionStrategy, Component, NgModule, inject, DOCUMENT, Renderer2, ElementRef, Injectable, Directive, ViewChild, ContentChildren, ContentChild, Pipe, ViewContainerRef, TemplateRef, RendererFactory2, HostListener, Host } from '@angular/core';
2
+ import { inject, ChangeDetectorRef, ElementRef, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule, DOCUMENT, Renderer2, Injectable, Inject, Directive, ViewChild, ContentChildren, ContentChild, Pipe, ViewContainerRef, TemplateRef, RendererFactory2, HostListener, Host } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, registerLocaleData, DatePipe } from '@angular/common';
5
5
  import { Subject, Subscription, BehaviorSubject, filter, take, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge } from 'rxjs';
@@ -40,34 +40,30 @@ import { DomSanitizer } from '@angular/platform-browser';
40
40
  import Fuse from 'fuse.js';
41
41
 
42
42
  class BizyAccordionComponent {
43
- ref;
43
+ #ref = inject(ChangeDetectorRef);
44
+ #elementRef = inject(ElementRef);
44
45
  id = `bizy-accordion-${Math.random()}`;
45
46
  customClass;
46
47
  disabled = false;
47
48
  opened = false;
48
49
  openedChange = new EventEmitter();
49
50
  onSelect = new EventEmitter();
50
- constructor(ref) {
51
- this.ref = ref;
52
- }
53
51
  _onSelect(event) {
54
52
  if (this.disabled) {
55
53
  return;
56
54
  }
57
55
  this.openedChange.emit(!this.opened);
58
56
  this.onSelect.emit(event);
59
- this.ref.detectChanges();
57
+ this.#ref.detectChanges();
60
58
  }
61
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
59
+ getNativeElement = () => this.#elementRef?.nativeElement;
60
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
62
61
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyAccordionComponent, isStandalone: true, selector: "bizy-accordion", inputs: { id: "id", customClass: "customClass", disabled: "disabled", opened: "opened" }, outputs: { openedChange: "openedChange", onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n [ngClass]=\"{'bizy-accordion--disabled': disabled}\"\n class=\"bizy-accordion {{customClass}}\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <span class=\"bizy-accordion__content\">\n <ng-content></ng-content>\n </span>\n\n <svg \n class=\"bizy-accordion__arrow\" \n [ngClass]=\"{'bizy-accordion__arrow--opened': opened}\"\n viewBox=\"0 0 96 96\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M81.8457,25.3876a6.0239,6.0239,0,0,0-8.45.7676L48,56.6257l-25.396-30.47a5.999,5.999,0,1,0-9.2114,7.6879L43.3943,69.8452a5.9969,5.9969,0,0,0,9.2114,0L82.6074,33.8431A6.0076,6.0076,0,0,0,81.8457,25.3876Z\"/>\n </svg>\n\n</button>\n\n<span class=\"bizy-accordion__options\" [ngClass]=\"{'bizy-accordion__options--opened': opened}\">\n\n <ng-content select=\"[accordion-option]\"></ng-content>\n\n</span>\n", styles: [":host{font-size:1rem;width:100%}:host:has(>.bizy-accordion__options:empty) .bizy-accordion>.bizy-accordion__arrow{display:none!important}.bizy-accordion{background-color:var(--bizy-accordion-background-color);border:none;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;width:100%;cursor:pointer;position:relative;border-top-left-radius:.3rem;border-bottom:var(--bizy-accordion-border-bottom)}.bizy-accordion--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-accordion__content{background-color:inherit;width:100%;flex:1}.bizy-accordion__arrow{height:var(--bizy-accordion-arrow-height);pointer-events:none;display:block;transition:transform .1s ease;fill:var(--bizy-accordion-arrow-color);position:absolute;right:.5rem}.bizy-accordion__arrow--opened{transform:rotate(180deg);transition:transform .2s ease}.bizy-accordion__options{max-height:0;overflow:hidden;display:flex;flex-direction:column;padding-left:var(--bizy-accordion-padding-left);transition:max-height .1s ease;border-left:var(--bizy-accordion-border)}.bizy-accordion__options--opened{max-height:100vh;transition:transform .2s ease}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
62
  }
64
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionComponent, decorators: [{
65
64
  type: Component,
66
65
  args: [{ selector: 'bizy-accordion', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n [ngClass]=\"{'bizy-accordion--disabled': disabled}\"\n class=\"bizy-accordion {{customClass}}\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <span class=\"bizy-accordion__content\">\n <ng-content></ng-content>\n </span>\n\n <svg \n class=\"bizy-accordion__arrow\" \n [ngClass]=\"{'bizy-accordion__arrow--opened': opened}\"\n viewBox=\"0 0 96 96\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M81.8457,25.3876a6.0239,6.0239,0,0,0-8.45.7676L48,56.6257l-25.396-30.47a5.999,5.999,0,1,0-9.2114,7.6879L43.3943,69.8452a5.9969,5.9969,0,0,0,9.2114,0L82.6074,33.8431A6.0076,6.0076,0,0,0,81.8457,25.3876Z\"/>\n </svg>\n\n</button>\n\n<span class=\"bizy-accordion__options\" [ngClass]=\"{'bizy-accordion__options--opened': opened}\">\n\n <ng-content select=\"[accordion-option]\"></ng-content>\n\n</span>\n", styles: [":host{font-size:1rem;width:100%}:host:has(>.bizy-accordion__options:empty) .bizy-accordion>.bizy-accordion__arrow{display:none!important}.bizy-accordion{background-color:var(--bizy-accordion-background-color);border:none;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;width:100%;cursor:pointer;position:relative;border-top-left-radius:.3rem;border-bottom:var(--bizy-accordion-border-bottom)}.bizy-accordion--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-accordion__content{background-color:inherit;width:100%;flex:1}.bizy-accordion__arrow{height:var(--bizy-accordion-arrow-height);pointer-events:none;display:block;transition:transform .1s ease;fill:var(--bizy-accordion-arrow-color);position:absolute;right:.5rem}.bizy-accordion__arrow--opened{transform:rotate(180deg);transition:transform .2s ease}.bizy-accordion__options{max-height:0;overflow:hidden;display:flex;flex-direction:column;padding-left:var(--bizy-accordion-padding-left);transition:max-height .1s ease;border-left:var(--bizy-accordion-border)}.bizy-accordion__options--opened{max-height:100vh;transition:transform .2s ease}\n"] }]
67
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
68
- type: Inject,
69
- args: [ChangeDetectorRef]
70
- }] }], propDecorators: { id: [{
66
+ }], propDecorators: { id: [{
71
67
  type: Input
72
68
  }], customClass: [{
73
69
  type: Input
@@ -105,6 +101,7 @@ var MIME_TYPE;
105
101
  })(MIME_TYPE || (MIME_TYPE = {}));
106
102
 
107
103
  class BizyButtonComponent {
104
+ #elementRef = inject(ElementRef);
108
105
  id = `bizy-button-${Math.random()}`;
109
106
  disabled = false;
110
107
  type = 'button';
@@ -117,6 +114,7 @@ class BizyButtonComponent {
117
114
  }
118
115
  this.onSelect.emit(event);
119
116
  }
117
+ getNativeElement = () => this.#elementRef?.nativeElement;
120
118
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
121
119
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyButtonComponent, isStandalone: true, selector: "bizy-button", inputs: { id: "id", disabled: "disabled", type: "type", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n [type]=\"type\"\n [id]=\"id\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n class=\"bizy-button {{customClass}}\"\n [ngClass]=\"{'bizy-button--disabled': disabled}\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n <span class=\"bizy-button__content\" (click)=\"_focused = true; _onSelect($event); $event.stopPropagation()\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n", styles: [":host{font-size:1rem;height:var(--bizy-button-height);width:var(--bizy-button-width);min-height:var(--bizy-button-min-height);min-width:var(--bizy-button-min-width);max-height:var(--bizy-button-max-height);max-width:var(--bizy-button-max-width)}.bizy-button{height:inherit;width:inherit;min-height:inherit;min-width:inherit;max-height:inherit;max-width:inherit;display:flex;justify-content:space-between;align-items:center;column-gap:.5rem;padding:var(--bizy-button-padding);border-radius:var(--bizy-button-border-radius);border:var(--bizy-button-border);cursor:pointer;background-color:var(--bizy-button-background-color)}::ng-deep .bizy-button *{color:var(--bizy-button-color);text-wrap:nowrap}.bizy-button:hover{filter:brightness(95%)}.bizy-button__content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;column-gap:.3rem}.bizy-button--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
122
120
  }
@@ -154,6 +152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
154
152
  class BizyAudioPlayerComponent {
155
153
  #document = inject(DOCUMENT);
156
154
  #renderer = inject(Renderer2);
155
+ #elementRef = inject(ElementRef);
157
156
  id = `bizy-audio-player-${Math.random()}`;
158
157
  mimeType;
159
158
  audioPlayerError = 'Error';
@@ -262,6 +261,7 @@ class BizyAudioPlayerComponent {
262
261
  this.#renderer.removeChild(this.#document.body, downloadButton);
263
262
  this.onDownload.emit();
264
263
  }
264
+ getNativeElement = () => this.#elementRef?.nativeElement;
265
265
  ngOnDestroy() {
266
266
  this.#subscription.unsubscribe();
267
267
  }
@@ -317,10 +317,10 @@ const MIN_CHART_SIZE$1 = 350; // px;
317
317
  const Y_AXIS_OFFSET = 80;
318
318
  const GRID_BOTTOM = 30;
319
319
  class BizyBarLineChartComponent {
320
- elementRef;
321
- document;
322
- ref;
323
- renderer;
320
+ #elementRef = inject(ElementRef);
321
+ #document = inject(DOCUMENT);
322
+ #ref = inject(ChangeDetectorRef);
323
+ #renderer = inject(Renderer2);
324
324
  resizeRef = null;
325
325
  tooltip = true;
326
326
  download = { hide: false, label: 'Descargar', name: 'Bizy' };
@@ -342,20 +342,14 @@ class BizyBarLineChartComponent {
342
342
  #leftYAxis = 0;
343
343
  #chartStacks = [];
344
344
  #chartNames = [];
345
- constructor(elementRef, document, ref, renderer) {
346
- this.elementRef = elementRef;
347
- this.document = document;
348
- this.ref = ref;
349
- this.renderer = renderer;
350
- }
351
345
  ngAfterViewInit() {
352
346
  this.#mutationObserver = new MutationObserver(() => {
353
- if (this.elementRef && this.elementRef.nativeElement && (this.elementRef.nativeElement.offsetWidth || this.elementRef.nativeElement.offsetHeight)) {
347
+ if (this.#elementRef && this.#elementRef.nativeElement && (this.#elementRef.nativeElement.offsetWidth || this.#elementRef.nativeElement.offsetHeight)) {
354
348
  this.#afterViewInit.next(true);
355
349
  this.#mutationObserver.disconnect();
356
350
  }
357
351
  });
358
- this.#mutationObserver.observe(this.document.body, { childList: true, subtree: true });
352
+ this.#mutationObserver.observe(this.#document.body, { childList: true, subtree: true });
359
353
  }
360
354
  set data(data) {
361
355
  if (!data) {
@@ -502,9 +496,9 @@ class BizyBarLineChartComponent {
502
496
  bottom: 0,
503
497
  data: legends
504
498
  };
505
- const textColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-color') ?? '#000';
506
- const textBackgroundColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-background-color') ?? '#fff';
507
- const borderColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-border-color') ?? '#fff';
499
+ const textColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-color') ?? '#000';
500
+ const textBackgroundColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-background-color') ?? '#fff';
501
+ const borderColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-border-color') ?? '#fff';
508
502
  const toolbox = {
509
503
  show: true,
510
504
  feature: {
@@ -541,9 +535,9 @@ class BizyBarLineChartComponent {
541
535
  var link = document.createElement('a');
542
536
  link.href = canvas.toDataURL('image/png');
543
537
  link.download = `${this.download.name}.png`;
544
- this.renderer.appendChild(this.document.body, link);
538
+ this.#renderer.appendChild(this.#document.body, link);
545
539
  link.click();
546
- this.renderer.removeChild(this.document.body, link);
540
+ this.#renderer.removeChild(this.#document.body, link);
547
541
  restoreLegendType(this.#echarts);
548
542
  this.onDownload.emit();
549
543
  });
@@ -577,7 +571,7 @@ class BizyBarLineChartComponent {
577
571
  this.onSelect.emit(params.name);
578
572
  });
579
573
  this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
580
- const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
574
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
581
575
  this.#resizeObserver.observe(resizeRef);
582
576
  this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
583
577
  this.#deleteChartContainer();
@@ -595,15 +589,15 @@ class BizyBarLineChartComponent {
595
589
  }));
596
590
  }
597
591
  #createChartContainer = () => {
598
- if (this.#chartContainer || !this.elementRef || !this.elementRef.nativeElement) {
592
+ if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
599
593
  return;
600
594
  }
601
- let elementWidth = this.elementRef.nativeElement.offsetWidth || MIN_CHART_SIZE$1;
602
- let elementHeight = this.elementRef.nativeElement.offsetHeight || MIN_CHART_SIZE$1;
595
+ let elementWidth = this.#elementRef.nativeElement.offsetWidth || MIN_CHART_SIZE$1;
596
+ let elementHeight = this.#elementRef.nativeElement.offsetHeight || MIN_CHART_SIZE$1;
603
597
  let minWidth = MIN_CHART_SIZE$1;
604
598
  let minHeight = MIN_CHART_SIZE$1;
605
- const barChartMinWidth = getComputedStyle(this.document.body).getPropertyValue('--bizy-chart-min-width');
606
- const barChartMinHeight = getComputedStyle(this.document.body).getPropertyValue('--bizy-chart-min-height');
599
+ const barChartMinWidth = getComputedStyle(this.#document.body).getPropertyValue('--bizy-chart-min-width');
600
+ const barChartMinHeight = getComputedStyle(this.#document.body).getPropertyValue('--bizy-chart-min-height');
607
601
  if (Number(barChartMinWidth)) {
608
602
  minWidth = Number(barChartMinWidth);
609
603
  }
@@ -612,21 +606,22 @@ class BizyBarLineChartComponent {
612
606
  }
613
607
  const width = Math.max(elementWidth, minWidth);
614
608
  const height = Math.max(elementHeight, minHeight);
615
- this.#chartContainer = this.renderer.createElement('div');
616
- this.renderer.setStyle(this.#chartContainer, 'width', `${width}px`);
617
- this.renderer.setStyle(this.#chartContainer, 'height', `${height}px`);
618
- this.renderer.appendChild(this.elementRef.nativeElement, this.#chartContainer);
619
- this.ref.detectChanges();
609
+ this.#chartContainer = this.#renderer.createElement('div');
610
+ this.#renderer.setStyle(this.#chartContainer, 'width', `${width}px`);
611
+ this.#renderer.setStyle(this.#chartContainer, 'height', `${height}px`);
612
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
613
+ this.#ref.detectChanges();
620
614
  };
621
615
  #deleteChartContainer = () => {
622
- if (!this.#chartContainer || !this.elementRef || !this.elementRef.nativeElement) {
616
+ if (!this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
623
617
  return;
624
618
  }
625
619
  this.#echarts.clear();
626
- this.renderer.removeChild(this.elementRef.nativeElement, this.#chartContainer);
620
+ this.#renderer.removeChild(this.#elementRef.nativeElement, this.#chartContainer);
627
621
  this.#chartContainer = null;
628
- this.ref.detectChanges();
622
+ this.#ref.detectChanges();
629
623
  };
624
+ getNativeElement = () => this.#elementRef?.nativeElement;
630
625
  ngOnDestroy() {
631
626
  this.#subscription.unsubscribe();
632
627
  if (this.#mutationObserver) {
@@ -639,7 +634,7 @@ class BizyBarLineChartComponent {
639
634
  this.#echarts.clear();
640
635
  }
641
636
  }
642
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartComponent, deps: [{ token: ElementRef }, { token: DOCUMENT }, { token: ChangeDetectorRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
637
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
643
638
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyBarLineChartComponent, isStandalone: true, selector: "bizy-bar-line-chart", inputs: { resizeRef: "resizeRef", tooltip: "tooltip", download: "download", axisPointer: "axisPointer", xAxisLabels: "xAxisLabels", onTooltipFormatter: "onTooltipFormatter", onXAxisLabelFormatter: "onXAxisLabelFormatter", data: "data" }, outputs: { onDownload: "onDownload", onSelect: "onSelect" }, ngImport: i0, template: '', isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
644
639
  }
645
640
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartComponent, decorators: [{
@@ -650,19 +645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
650
645
  imports: [CommonModule],
651
646
  changeDetection: ChangeDetectionStrategy.OnPush
652
647
  }]
653
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
654
- type: Inject,
655
- args: [ElementRef]
656
- }] }, { type: Document, decorators: [{
657
- type: Inject,
658
- args: [DOCUMENT]
659
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
660
- type: Inject,
661
- args: [ChangeDetectorRef]
662
- }] }, { type: i0.Renderer2, decorators: [{
663
- type: Inject,
664
- args: [Renderer2]
665
- }] }], propDecorators: { resizeRef: [{
648
+ }], propDecorators: { resizeRef: [{
666
649
  type: Input
667
650
  }], tooltip: [{
668
651
  type: Input
@@ -701,13 +684,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
701
684
  }] });
702
685
 
703
686
  class BizyBreadcrumbComponent {
704
- ref;
687
+ #elementRef = inject(ElementRef);
688
+ #ref = inject(ChangeDetectorRef);
705
689
  onSelect = new EventEmitter();
706
690
  _breadcrumbs = [];
707
691
  showGoBack = false;
708
- constructor(ref) {
709
- this.ref = ref;
710
- }
711
692
  set breadcrumbs(breadcrumbs) {
712
693
  if (breadcrumbs) {
713
694
  this._breadcrumbs = breadcrumbs;
@@ -719,7 +700,7 @@ class BizyBreadcrumbComponent {
719
700
  }
720
701
  if (counter > 1) {
721
702
  this.showGoBack = true;
722
- this.ref.detectChanges();
703
+ this.#ref.detectChanges();
723
704
  break;
724
705
  }
725
706
  }
@@ -742,16 +723,16 @@ class BizyBreadcrumbComponent {
742
723
  }
743
724
  }
744
725
  }
745
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
726
+ getNativeElement() {
727
+ return this.#elementRef.nativeElement;
728
+ }
729
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
746
730
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyBreadcrumbComponent, isStandalone: true, selector: "bizy-breadcrumb", inputs: { breadcrumbs: "breadcrumbs" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<ul class=\"bizy-breadcrumb\">\n <li *ngFor=\"let breadcrumb of _breadcrumbs; let last = last; let i = index\">\n <button \n class=\"bizy-breadcrumb__link\"\n [ngClass]=\"{'bizy-breadcrumb__link--skip': breadcrumb.skip || last}\"\n type=\"button\" \n (click)=\"goTo(breadcrumb)\">\n {{breadcrumb.label}}\n </button>\n <button\n type=\"button\"\n *ngIf=\"last && showGoBack\"\n class=\"bizy-breadcrumb__go-back\"\n (click)=\"goBack()\">\n <svg \n class=\"bizy-breadcrumb__go-back__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\" stroke=\"none\"/>\n <path d=\"M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1\"/>\n </svg>\n </button>\n </li>\n</ul>\n ", styles: [":host{font-size:1rem}.bizy-breadcrumb{list-style:none;margin:0;padding:0}.bizy-breadcrumb li{display:inline}.bizy-breadcrumb li:before{content:\"/\";margin:0 .3rem}.bizy-breadcrumb li:first-child:before{content:\"\";margin:0}.bizy-breadcrumb__link{cursor:pointer;border:none;background-color:transparent;color:var(--bizy-breadcrumb-link-color)}.bizy-breadcrumb__link:hover{filter:brightness(95%)}.bizy-breadcrumb__link--skip{cursor:default;color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__link--skip:hover{color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__go-back{cursor:pointer;margin-left:.4rem;position:relative;top:.5rem;background-color:transparent;border:none}.bizy-breadcrumb__go-back__icon{color:var(--bizy-breadcrumb-link-color);height:1rem;position:relative;bottom:.3rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
747
731
  }
748
732
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbComponent, decorators: [{
749
733
  type: Component,
750
734
  args: [{ selector: 'bizy-breadcrumb', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"bizy-breadcrumb\">\n <li *ngFor=\"let breadcrumb of _breadcrumbs; let last = last; let i = index\">\n <button \n class=\"bizy-breadcrumb__link\"\n [ngClass]=\"{'bizy-breadcrumb__link--skip': breadcrumb.skip || last}\"\n type=\"button\" \n (click)=\"goTo(breadcrumb)\">\n {{breadcrumb.label}}\n </button>\n <button\n type=\"button\"\n *ngIf=\"last && showGoBack\"\n class=\"bizy-breadcrumb__go-back\"\n (click)=\"goBack()\">\n <svg \n class=\"bizy-breadcrumb__go-back__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\" stroke=\"none\"/>\n <path d=\"M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1\"/>\n </svg>\n </button>\n </li>\n</ul>\n ", styles: [":host{font-size:1rem}.bizy-breadcrumb{list-style:none;margin:0;padding:0}.bizy-breadcrumb li{display:inline}.bizy-breadcrumb li:before{content:\"/\";margin:0 .3rem}.bizy-breadcrumb li:first-child:before{content:\"\";margin:0}.bizy-breadcrumb__link{cursor:pointer;border:none;background-color:transparent;color:var(--bizy-breadcrumb-link-color)}.bizy-breadcrumb__link:hover{filter:brightness(95%)}.bizy-breadcrumb__link--skip{cursor:default;color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__link--skip:hover{color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__go-back{cursor:pointer;margin-left:.4rem;position:relative;top:.5rem;background-color:transparent;border:none}.bizy-breadcrumb__go-back__icon{color:var(--bizy-breadcrumb-link-color);height:1rem;position:relative;bottom:.3rem}\n"] }]
751
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
752
- type: Inject,
753
- args: [ChangeDetectorRef]
754
- }] }], propDecorators: { onSelect: [{
735
+ }], propDecorators: { onSelect: [{
755
736
  type: Output
756
737
  }], breadcrumbs: [{
757
738
  type: Input
@@ -815,6 +796,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
815
796
 
816
797
  registerLocaleData(localeEs);
817
798
  class BizyCalendarComponent {
799
+ #elementRef = inject(ElementRef);
818
800
  id = `bizy-calendar-${Math.random()}`;
819
801
  hideHeaderDate = false;
820
802
  preventExpand = false;
@@ -970,6 +952,7 @@ class BizyCalendarComponent {
970
952
  }
971
953
  return actions;
972
954
  }
955
+ getNativeElement = () => this.#elementRef?.nativeElement;
973
956
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
974
957
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyCalendarComponent, isStandalone: true, selector: "bizy-calendar", inputs: { id: "id", hideHeaderDate: "hideHeaderDate", preventExpand: "preventExpand", dayStartHour: "dayStartHour", dayEndHour: "dayEndHour", hourMinutesDuration: "hourMinutesDuration", hourSegments: "hourSegments", language: "language", excludeDays: "excludeDays", weekendDays: "weekendDays", weekStartsOn: "weekStartsOn", mode: "mode", customCalendarWeekEventTemplate: "customCalendarWeekEventTemplate", viewDate: "viewDate", events: "events" }, outputs: { onEventSelect: "onEventSelect", onDateSelect: "onDateSelect", onEventDelete: "onEventDelete" }, providers: [
975
958
  CalendarUtils,
@@ -1055,6 +1038,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1055
1038
  }] });
1056
1039
 
1057
1040
  class BizyCardComponent {
1041
+ #elementRef = inject(ElementRef);
1058
1042
  id = `bizy-card-${Math.random()}`;
1059
1043
  disabled = false;
1060
1044
  selected = false;
@@ -1066,6 +1050,7 @@ class BizyCardComponent {
1066
1050
  }
1067
1051
  this.onSelect.emit(event);
1068
1052
  }
1053
+ getNativeElement = () => this.#elementRef?.nativeElement;
1069
1054
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1070
1055
  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:.3rem;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:center;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:center;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:center;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 });
1071
1056
  }
@@ -1101,6 +1086,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1101
1086
  }] });
1102
1087
 
1103
1088
  class BizyCheckboxComponent {
1089
+ #elementRef = inject(ElementRef);
1104
1090
  id = `bizy-checkbox-${Math.random()}`;
1105
1091
  selected = false;
1106
1092
  disabled = false;
@@ -1114,6 +1100,7 @@ class BizyCheckboxComponent {
1114
1100
  this.selectedChange.emit(!this.selected);
1115
1101
  this.onSelect.emit(event);
1116
1102
  }
1103
+ getNativeElement = () => this.#elementRef?.nativeElement;
1117
1104
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1118
1105
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyCheckboxComponent, isStandalone: true, selector: "bizy-checkbox", inputs: { id: "id", selected: "selected", disabled: "disabled" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, ngImport: i0, template: "<button type=\"button\" [id]=\"id\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\" class=\"bizy-checkbox\" [ngClass]=\"{'bizy-checkbox--disabled': disabled}\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input class=\"bizy-checkbox__input\" type=\"checkbox\" [id]=\"_checkboxId\" [disabled]=\"disabled\" [ngModel]=\"selected\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-checkbox{display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-checkbox:hover .bizy-checkbox__input:not(:checked){background-color:var(--bizy-checkbox-hover-color)}.bizy-checkbox--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-checkbox__input{position:relative;min-width:1rem;min-height:1rem;width:1rem;height:1rem;color:var(--bizy-checkbox-border-color);border:.1rem solid var(--bizy-checkbox-border-color);border-radius:.3rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;cursor:pointer;transition:background-color 175ms cubic-bezier(.1,.1,.25,1)}.bizy-checkbox__input:before{position:absolute;content:\"\";display:block;top:0;left:.25rem;width:.4rem;height:.7rem;border-style:solid;border-color:#fff;border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0}.bizy-checkbox__input:checked{color:#fff;border-color:var(--bizy-checkbox-color);background-color:var(--bizy-checkbox-color)}.bizy-checkbox__input:checked:before{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1119
1106
  }
@@ -1149,12 +1136,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1149
1136
  }] });
1150
1137
 
1151
1138
  class BizyContentComponent {
1139
+ #elementRef = inject(ElementRef);
1140
+ getNativeElement = () => this.#elementRef?.nativeElement;
1152
1141
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1153
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyContentComponent, isStandalone: true, selector: "bizy-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);height:100%;width:100%;overflow:auto;display:flex;flex-direction:column;row-gap:var(--bizy-content-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
1142
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyContentComponent, isStandalone: true, selector: "bizy-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);width:var(--bizy-content-width);height:var(--bizy-content-height);overflow:auto;display:flex;flex-direction:var(--bizy-content-flex-direction);row-gap:var(--bizy-content-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
1154
1143
  }
1155
1144
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentComponent, decorators: [{
1156
1145
  type: Component,
1157
- args: [{ selector: 'bizy-content', imports: [CommonModule], template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);height:100%;width:100%;overflow:auto;display:flex;flex-direction:column;row-gap:var(--bizy-content-row-gap)}\n"] }]
1146
+ args: [{ selector: 'bizy-content', imports: [CommonModule], template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);width:var(--bizy-content-width);height:var(--bizy-content-height);overflow:auto;display:flex;flex-direction:var(--bizy-content-flex-direction);row-gap:var(--bizy-content-row-gap)}\n"] }]
1158
1147
  }] });
1159
1148
 
1160
1149
  const COMPONENTS$n = [
@@ -1174,21 +1163,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1174
1163
  }] });
1175
1164
 
1176
1165
  class BizyInputOptionComponent {
1177
- ref;
1166
+ #elementRef = inject(ElementRef);
1167
+ #ref = inject(ChangeDetectorRef);
1178
1168
  id = `bizy-input-${Math.random()}`;
1179
1169
  disabled = false;
1180
1170
  customClass = '';
1181
1171
  selected = false;
1182
1172
  onSelect = new EventEmitter();
1183
- constructor(ref) {
1184
- this.ref = ref;
1185
- }
1186
1173
  _onSelect(event) {
1187
1174
  if (this.disabled) {
1188
1175
  return;
1189
1176
  }
1190
1177
  this.onSelect.emit(event);
1191
- this.ref.detectChanges();
1178
+ this.#ref.detectChanges();
1192
1179
  }
1193
1180
  getId = () => {
1194
1181
  return this.id;
@@ -1196,16 +1183,14 @@ class BizyInputOptionComponent {
1196
1183
  getSelected = () => {
1197
1184
  return this.selected;
1198
1185
  };
1199
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1186
+ getNativeElement = () => this.#elementRef?.nativeElement;
1187
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1200
1188
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyInputOptionComponent, isStandalone: true, selector: "bizy-input-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n [ngClass]=\"{'bizy-input-option--selected': selected, 'bizy-input-option--disabled': disabled}\"\n class=\"bizy-input-option {{customClass}}\">\n\n <span class=\"bizy-input-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>", styles: [":host{font-size:1rem}.bizy-input-option{font-size:1rem;width:100%;border:none;background-color:var(--bizy-input-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;color:var(--bizy-input-color);cursor:pointer}.bizy-input-option:hover{background-color:var(--bizy-input-option-hover-background-color)}.bizy-input-option--selected{background-color:var(--bizy-input-option-selected-background-color)!important}.bizy-input-option--selected ::ng-deep .bizy-input-option__content *{color:var(--bizy-input-option-selected-color)}.bizy-input-option--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-input-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;text-align:start}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1201
1189
  }
1202
1190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputOptionComponent, decorators: [{
1203
1191
  type: Component,
1204
1192
  args: [{ selector: 'bizy-input-option', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n [ngClass]=\"{'bizy-input-option--selected': selected, 'bizy-input-option--disabled': disabled}\"\n class=\"bizy-input-option {{customClass}}\">\n\n <span class=\"bizy-input-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>", styles: [":host{font-size:1rem}.bizy-input-option{font-size:1rem;width:100%;border:none;background-color:var(--bizy-input-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;color:var(--bizy-input-color);cursor:pointer}.bizy-input-option:hover{background-color:var(--bizy-input-option-hover-background-color)}.bizy-input-option--selected{background-color:var(--bizy-input-option-selected-background-color)!important}.bizy-input-option--selected ::ng-deep .bizy-input-option__content *{color:var(--bizy-input-option-selected-color)}.bizy-input-option--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-input-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;text-align:start}\n"] }]
1205
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
1206
- type: Inject,
1207
- args: [ChangeDetectorRef]
1208
- }] }], propDecorators: { id: [{
1193
+ }], propDecorators: { id: [{
1209
1194
  type: Input
1210
1195
  }], disabled: [{
1211
1196
  type: Input
@@ -1264,7 +1249,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1264
1249
  }] } });
1265
1250
 
1266
1251
  class BizyInputComponent {
1267
- ref;
1252
+ #elementRef = inject(ElementRef);
1253
+ #ref = inject(ChangeDetectorRef);
1268
1254
  options;
1269
1255
  bizyInputWrapper;
1270
1256
  bizyInput;
@@ -1315,9 +1301,6 @@ class BizyInputComponent {
1315
1301
  #subscription = new Subscription();
1316
1302
  #optionSubscription = new Subscription();
1317
1303
  onChange$ = new Subject();
1318
- constructor(ref) {
1319
- this.ref = ref;
1320
- }
1321
1304
  getWidth() {
1322
1305
  return this.bizyInputWrapper && this.bizyInputWrapper.nativeElement && this.bizyInputWrapper.nativeElement.offsetWidth ? this.bizyInputWrapper.nativeElement.offsetWidth : 0;
1323
1306
  }
@@ -1349,7 +1332,7 @@ class BizyInputComponent {
1349
1332
  setTimeout(() => {
1350
1333
  this.focused = false;
1351
1334
  this.touched = true;
1352
- this.ref.detectChanges();
1335
+ this.#ref.detectChanges();
1353
1336
  this.onBlur.emit(event);
1354
1337
  }, 250);
1355
1338
  }
@@ -1363,12 +1346,12 @@ class BizyInputComponent {
1363
1346
  return;
1364
1347
  }
1365
1348
  this.focused = true;
1366
- this.ref.detectChanges();
1349
+ this.#ref.detectChanges();
1367
1350
  this.onFocus.emit(event);
1368
1351
  }
1369
1352
  setTouched(touched) {
1370
1353
  this.touched = touched;
1371
- this.ref.detectChanges();
1354
+ this.#ref.detectChanges();
1372
1355
  }
1373
1356
  ngAfterViewInit() {
1374
1357
  if (this.type === 'currency' && this.bizyInput.nativeElement.setValue) {
@@ -1384,7 +1367,7 @@ class BizyInputComponent {
1384
1367
  return;
1385
1368
  }
1386
1369
  this.opened = !this.opened;
1387
- this.ref.detectChanges();
1370
+ this.#ref.detectChanges();
1388
1371
  if (!this.options) {
1389
1372
  return;
1390
1373
  }
@@ -1393,7 +1376,7 @@ class BizyInputComponent {
1393
1376
  this.options.forEach(_option => {
1394
1377
  this.#optionSubscription.add(_option.onSelect.subscribe(() => {
1395
1378
  this.close();
1396
- this.ref.detectChanges();
1379
+ this.#ref.detectChanges();
1397
1380
  this.#optionSubscription.unsubscribe();
1398
1381
  }));
1399
1382
  });
@@ -1413,7 +1396,7 @@ class BizyInputComponent {
1413
1396
  }
1414
1397
  finish$.next();
1415
1398
  finish$.complete();
1416
- this.ref.detectChanges();
1399
+ this.#ref.detectChanges();
1417
1400
  }
1418
1401
  }));
1419
1402
  }
@@ -1422,22 +1405,20 @@ class BizyInputComponent {
1422
1405
  return;
1423
1406
  }
1424
1407
  this.opened = false;
1425
- this.ref.detectChanges();
1408
+ this.#ref.detectChanges();
1426
1409
  };
1427
1410
  ngOnDestroy() {
1428
1411
  this.#subscription.unsubscribe();
1429
1412
  this.#optionSubscription.unsubscribe();
1430
1413
  }
1431
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1414
+ getNativeElement = () => this.#elementRef?.nativeElement;
1415
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1432
1416
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyInputComponent, isStandalone: true, selector: "bizy-input", inputs: { id: "id", name: "name", type: "type", customClass: "customClass", placeholder: "placeholder", debounceTime: "debounceTime", rows: "rows", disabled: "disabled", readonly: "readonly", autofocus: "autofocus", value: "value" }, outputs: { valueChange: "valueChange", onChange: "onChange", onEnter: "onEnter", onBackspace: "onBackspace", onSelect: "onSelect", onBlur: "onBlur", onFocus: "onFocus" }, queries: [{ propertyName: "options", predicate: BizyInputOptionComponent }], viewQueries: [{ propertyName: "bizyInputWrapper", first: true, predicate: ["bizyInputWrapper"], descendants: true }, { propertyName: "bizyInput", first: true, predicate: ["bizyInput"], descendants: true }], ngImport: i0, template: "<button\n #bizyInputWrapper\n type=\"button\"\n (click)=\"_onClick($event)\"\n (keyup)=\"_onClick($event)\"\n class=\"bizy-input {{customClass}}\"\n (focus)=\"bizyInput.nativeElement.focus()\"\n cdkOverlayOrigin\n #bizyInputTrigger=\"cdkOverlayOrigin\"\n [ngClass]=\"{'bizy-input--disabled': disabled, 'bizy-input--negative': type === 'currency' && _currencyValue < 0}\">\n\n <span class=\"bizy-input__header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </span>\n\n <span class=\"bizy-input__content\" [ngClass]=\"{'bizy-input__content--readonly': readonly}\">\n \n <span class=\"bizy-input__content__prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </span>\n \n <input\n #bizyInput\n *ngIf=\"type !== 'textarea'\"\n [id]=\"id\"\n class=\"bizy-input__content__input\"\n [type]=\"type === 'currency' ? 'tel' : type\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [bizyCurrencyFormat]=\"type === 'currency'\"\n [bizyCurrencyOptions]=\"currencyOptions\"\n [bizyOnlyPhoneDigits]=\"type === 'tel'\"\n (blur)=\"_onBlur($event)\"\n (focus)=\"_onFocus($event)\"\n (keyup.enter)=\"_onEnter($event)\"\n (keyup.backspace)=\"_onBackspace($event)\"\n [ngModel]=\"_value\"\n (ngModelChange)=\"_onchange($event)\"/>\n \n <textarea\n #bizyInput\n *ngIf=\"type === 'textarea'\"\n [id]=\"id\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n class=\"bizy-input__content__input\"\n (blur)=\"_onBlur($event)\"\n (focus)=\"_onFocus($event)\"\n (keyup.enter)=\"_onEnter($event)\"\n (keyup.backspace)=\"_onBackspace($event)\"\n [ngModel]=\"_value\"\n (ngModelChange)=\"_onchange($event)\">\n </textarea>\n\n <span class=\"bizy-input__content__suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-input__bottom-line\" [ngClass]=\"{'bizy-input__bottom-line--visible': focused}\"></span>\n\n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInputWrapper?.offsetWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyInputTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInputWrapper)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-input__options\">\n\n <ng-content select=\"bizy-input-option\"></ng-content>\n \n </span>\n\n</ng-template>\n\n<span class=\"bizy-input__errors\" *ngIf=\"touched\">\n <ng-content select=\"[slot=error]\"></ng-content>\n</span>\n", styles: [":host{width:var(--bizy-input-width);min-width:var(--bizy-input-min-width);max-width:var(--bizy-input-max-width);display:flex;flex-direction:column;row-gap:.3rem}:host:has(>.bizy-input__errors:not(:empty)) .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-input__errors:not(:empty)) .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-input{width:100%;background-color:var(--bizy-input-background-color);border:none;border-top-left-radius:.3rem;border-top-right-radius:.3rem;display:flex;padding:.3rem .3rem 0;flex-direction:column;cursor:var(--bizy-input-cursor)}.bizy-input--negative,.bizy-input--negative .bizy-input__header,.bizy-input--negative .bizy-input__content,.bizy-input--negative .bizy-input__content__input{background-color:var(--bizy-input-negative-background-color)}.bizy-input--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-input__header{background-color:var(--bizy-input-background-color);width:100%;display:flex;align-items:center;column-gap:.5rem;padding-bottom:.1rem}.bizy-input__header:empty{display:none!important}.bizy-input__content{background-color:var(--bizy-input-background-color);width:100%;display:flex;align-items:center;column-gap:.3rem}.bizy-input__content--readonly{pointer-events:none;cursor:default!important}.bizy-input__content__prefix{display:flex;align-items:center;column-gap:.3rem}.bizy-input__content__prefix:empty{display:none!important}.bizy-input__content__suffix{display:flex;align-items:center;column-gap:.3rem}.bizy-input__content__suffix:empty{display:none!important}.bizy-input__content__input{width:100%;background-color:var(--bizy-input-background-color);color:var(--bizy-input-color);flex:1;border:none;padding-block:0;padding-inline:0;padding:0 0 .2rem;font-size:var(--bizy-input-font-size)}.bizy-input__content__input:focus{outline:none;border:none}.bizy-input__content input[type=number]::-webkit-inner-spin-button,.bizy-input__content input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.bizy-input__bottom-line{width:calc(100% + .6rem);position:relative;right:.3rem;height:.1rem;visibility:hidden;pointer-events:none;background-color:var(--bizy-input-focus-color)}.bizy-input__bottom-line--visible{visibility:visible;animation-name:zoomIn;animation-duration:.2s;animation-fill-mode:both}.bizy-input__options{background-color:var(--bizy-input-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-input-options-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-input__errors:empty{display:none!important}::ng-deep .bizy-input__errors *{color:var(--bizy-input-invalid-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: BizyCurrencyFormatDirective, selector: "[bizyCurrencyFormat]", inputs: ["bizyCurrencyFormat", "bizyCurrencyOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1433
1417
  }
1434
1418
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyInputComponent, decorators: [{
1435
1419
  type: Component,
1436
1420
  args: [{ selector: 'bizy-input', imports: [CommonModule, FormsModule, OverlayModule, BizyCurrencyFormatDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #bizyInputWrapper\n type=\"button\"\n (click)=\"_onClick($event)\"\n (keyup)=\"_onClick($event)\"\n class=\"bizy-input {{customClass}}\"\n (focus)=\"bizyInput.nativeElement.focus()\"\n cdkOverlayOrigin\n #bizyInputTrigger=\"cdkOverlayOrigin\"\n [ngClass]=\"{'bizy-input--disabled': disabled, 'bizy-input--negative': type === 'currency' && _currencyValue < 0}\">\n\n <span class=\"bizy-input__header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </span>\n\n <span class=\"bizy-input__content\" [ngClass]=\"{'bizy-input__content--readonly': readonly}\">\n \n <span class=\"bizy-input__content__prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </span>\n \n <input\n #bizyInput\n *ngIf=\"type !== 'textarea'\"\n [id]=\"id\"\n class=\"bizy-input__content__input\"\n [type]=\"type === 'currency' ? 'tel' : type\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [bizyCurrencyFormat]=\"type === 'currency'\"\n [bizyCurrencyOptions]=\"currencyOptions\"\n [bizyOnlyPhoneDigits]=\"type === 'tel'\"\n (blur)=\"_onBlur($event)\"\n (focus)=\"_onFocus($event)\"\n (keyup.enter)=\"_onEnter($event)\"\n (keyup.backspace)=\"_onBackspace($event)\"\n [ngModel]=\"_value\"\n (ngModelChange)=\"_onchange($event)\"/>\n \n <textarea\n #bizyInput\n *ngIf=\"type === 'textarea'\"\n [id]=\"id\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n class=\"bizy-input__content__input\"\n (blur)=\"_onBlur($event)\"\n (focus)=\"_onFocus($event)\"\n (keyup.enter)=\"_onEnter($event)\"\n (keyup.backspace)=\"_onBackspace($event)\"\n [ngModel]=\"_value\"\n (ngModelChange)=\"_onchange($event)\">\n </textarea>\n\n <span class=\"bizy-input__content__suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </span>\n\n </span>\n\n <span class=\"bizy-input__bottom-line\" [ngClass]=\"{'bizy-input__bottom-line--visible': focused}\"></span>\n\n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInputWrapper?.offsetWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyInputTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInputWrapper)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-input__options\">\n\n <ng-content select=\"bizy-input-option\"></ng-content>\n \n </span>\n\n</ng-template>\n\n<span class=\"bizy-input__errors\" *ngIf=\"touched\">\n <ng-content select=\"[slot=error]\"></ng-content>\n</span>\n", styles: [":host{width:var(--bizy-input-width);min-width:var(--bizy-input-min-width);max-width:var(--bizy-input-max-width);display:flex;flex-direction:column;row-gap:.3rem}:host:has(>.bizy-input__errors:not(:empty)) .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-input__errors:not(:empty)) .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-input{width:100%;background-color:var(--bizy-input-background-color);border:none;border-top-left-radius:.3rem;border-top-right-radius:.3rem;display:flex;padding:.3rem .3rem 0;flex-direction:column;cursor:var(--bizy-input-cursor)}.bizy-input--negative,.bizy-input--negative .bizy-input__header,.bizy-input--negative .bizy-input__content,.bizy-input--negative .bizy-input__content__input{background-color:var(--bizy-input-negative-background-color)}.bizy-input--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-input__header{background-color:var(--bizy-input-background-color);width:100%;display:flex;align-items:center;column-gap:.5rem;padding-bottom:.1rem}.bizy-input__header:empty{display:none!important}.bizy-input__content{background-color:var(--bizy-input-background-color);width:100%;display:flex;align-items:center;column-gap:.3rem}.bizy-input__content--readonly{pointer-events:none;cursor:default!important}.bizy-input__content__prefix{display:flex;align-items:center;column-gap:.3rem}.bizy-input__content__prefix:empty{display:none!important}.bizy-input__content__suffix{display:flex;align-items:center;column-gap:.3rem}.bizy-input__content__suffix:empty{display:none!important}.bizy-input__content__input{width:100%;background-color:var(--bizy-input-background-color);color:var(--bizy-input-color);flex:1;border:none;padding-block:0;padding-inline:0;padding:0 0 .2rem;font-size:var(--bizy-input-font-size)}.bizy-input__content__input:focus{outline:none;border:none}.bizy-input__content input[type=number]::-webkit-inner-spin-button,.bizy-input__content input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.bizy-input__bottom-line{width:calc(100% + .6rem);position:relative;right:.3rem;height:.1rem;visibility:hidden;pointer-events:none;background-color:var(--bizy-input-focus-color)}.bizy-input__bottom-line--visible{visibility:visible;animation-name:zoomIn;animation-duration:.2s;animation-fill-mode:both}.bizy-input__options{background-color:var(--bizy-input-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-input-options-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-input__errors:empty{display:none!important}::ng-deep .bizy-input__errors *{color:var(--bizy-input-invalid-color)!important}\n"] }]
1437
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
1438
- type: Inject,
1439
- args: [ChangeDetectorRef]
1440
- }] }], propDecorators: { options: [{
1421
+ }], propDecorators: { options: [{
1441
1422
  type: ContentChildren,
1442
1423
  args: [BizyInputOptionComponent]
1443
1424
  }], bizyInputWrapper: [{
@@ -1485,6 +1466,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1485
1466
  }] } });
1486
1467
 
1487
1468
  class BizyDatePickerComponent {
1469
+ #elementRef = inject(ElementRef);
1470
+ #datePipe = inject(DatePipe);
1471
+ #ref = inject(ChangeDetectorRef);
1488
1472
  bizyDatePicker;
1489
1473
  id = `bizy-date-picker-${Math.random()}`;
1490
1474
  disabled = false;
@@ -1499,8 +1483,6 @@ class BizyDatePickerComponent {
1499
1483
  openedChange = new EventEmitter();
1500
1484
  onOpen = new EventEmitter();
1501
1485
  onSelect = new EventEmitter();
1502
- #datePipe = inject(DatePipe);
1503
- #ref = inject(ChangeDetectorRef);
1504
1486
  dateFormat = 'Y-m-d';
1505
1487
  datePipeFormat = 'yyyy-MM-dd';
1506
1488
  enableTime = false;
@@ -1632,6 +1614,7 @@ class BizyDatePickerComponent {
1632
1614
  this.#ref.detectChanges();
1633
1615
  }
1634
1616
  }
1617
+ getNativeElement = () => this.#elementRef?.nativeElement;
1635
1618
  #getHour(time) {
1636
1619
  const date = new Date(time);
1637
1620
  return date.getHours();
@@ -1895,6 +1878,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
1895
1878
  }] });
1896
1879
 
1897
1880
  class BizyFileUploaderComponent {
1881
+ #elementRef = inject(ElementRef);
1898
1882
  #fileUploader = inject(BizyFileUploaderService);
1899
1883
  dragDropAreaWidth = '100%';
1900
1884
  dragDropAreaHeight = '16rem';
@@ -1980,6 +1964,7 @@ class BizyFileUploaderComponent {
1980
1964
  this.loadedFiles.emit(Array.from(this.#files));
1981
1965
  }));
1982
1966
  }
1967
+ getNativeElement = () => this.#elementRef?.nativeElement;
1983
1968
  ngOnDestroy() {
1984
1969
  this.#fileUploader.cleanAllFiles();
1985
1970
  this.#subscription.unsubscribe();
@@ -2053,6 +2038,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2053
2038
  }] });
2054
2039
 
2055
2040
  class BizyFilterSectionRangeOptionComponent {
2041
+ #elementRef = inject(ElementRef);
2056
2042
  #fb = inject(FormBuilder);
2057
2043
  #ref = inject(ChangeDetectorRef);
2058
2044
  id = `bizy-filter-section-range-option-${Math.random()}`;
@@ -2160,6 +2146,7 @@ class BizyFilterSectionRangeOptionComponent {
2160
2146
  getId = () => {
2161
2147
  return this.id;
2162
2148
  };
2149
+ getNativeElement = () => this.#elementRef?.nativeElement;
2163
2150
  isActivated = () => {
2164
2151
  return this.#activated.value;
2165
2152
  };
@@ -2188,7 +2175,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2188
2175
  }] } });
2189
2176
 
2190
2177
  class BizyFilterSectionCheckboxOptionComponent {
2191
- ref;
2178
+ #elementRef = inject(ElementRef);
2179
+ #ref = inject(ChangeDetectorRef);
2192
2180
  id = `bizy-filter-section-checkbox-option-${Math.random()}`;
2193
2181
  disabled = false;
2194
2182
  customClass = '';
@@ -2201,33 +2189,28 @@ class BizyFilterSectionCheckboxOptionComponent {
2201
2189
  this.onSelect(selected);
2202
2190
  }
2203
2191
  _selected = true;
2204
- constructor(ref) {
2205
- this.ref = ref;
2206
- }
2207
2192
  onSelect = (selected) => {
2208
2193
  if (this.disabled) {
2209
2194
  return;
2210
2195
  }
2211
2196
  this._selected = selected;
2212
2197
  this.onChange.emit(selected);
2213
- this.ref.detectChanges();
2198
+ this.#ref.detectChanges();
2214
2199
  };
2215
2200
  getSelected = () => {
2216
2201
  return this._selected;
2217
2202
  };
2203
+ getNativeElement = () => this.#elementRef?.nativeElement;
2218
2204
  getId = () => {
2219
2205
  return this.id;
2220
2206
  };
2221
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2207
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2222
2208
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterSectionCheckboxOptionComponent, isStandalone: true, selector: "bizy-filter-section-checkbox-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"], dependencies: [{ kind: "component", type: BizyCheckboxComponent, selector: "bizy-checkbox", inputs: ["id", "selected", "disabled"], outputs: ["selectedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2223
2209
  }
2224
2210
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, decorators: [{
2225
2211
  type: Component,
2226
2212
  args: [{ selector: 'bizy-filter-section-checkbox-option', imports: [BizyCheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"] }]
2227
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
2228
- type: Inject,
2229
- args: [ChangeDetectorRef]
2230
- }] }], propDecorators: { id: [{
2213
+ }], propDecorators: { id: [{
2231
2214
  type: Input
2232
2215
  }], disabled: [{
2233
2216
  type: Input
@@ -2240,7 +2223,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2240
2223
  }] } });
2241
2224
 
2242
2225
  class BizyFilterSectionSearchOptionComponent {
2243
- ref;
2226
+ #elementRef = inject(ElementRef);
2227
+ #ref = inject(ChangeDetectorRef);
2244
2228
  id = `bizy-filter-section-search-option-${Math.random()}`;
2245
2229
  customClass = '';
2246
2230
  valueChange = new EventEmitter();
@@ -2259,16 +2243,13 @@ class BizyFilterSectionSearchOptionComponent {
2259
2243
  }
2260
2244
  this._value = value;
2261
2245
  this.#activated.next(Boolean(value));
2262
- this.ref.detectChanges();
2263
- }
2264
- constructor(ref) {
2265
- this.ref = ref;
2246
+ this.#ref.detectChanges();
2266
2247
  }
2267
2248
  _onChange(value) {
2268
2249
  this.valueChange.emit(value);
2269
2250
  this.onChange.emit(value);
2270
2251
  this.#activated.next(Boolean(value));
2271
- this.ref.detectChanges();
2252
+ this.#ref.detectChanges();
2272
2253
  }
2273
2254
  getId = () => {
2274
2255
  return this.id;
@@ -2276,19 +2257,17 @@ class BizyFilterSectionSearchOptionComponent {
2276
2257
  getValue = () => {
2277
2258
  return this._value;
2278
2259
  };
2260
+ getNativeElement = () => this.#elementRef?.nativeElement;
2279
2261
  isActivated = () => {
2280
2262
  return this.#activated.value;
2281
2263
  };
2282
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2264
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2283
2265
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterSectionSearchOptionComponent, isStandalone: true, selector: "bizy-filter-section-search-option", inputs: { id: "id", customClass: "customClass", value: "value" }, outputs: { valueChange: "valueChange", onChange: "onChange" }, ngImport: i0, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"], dependencies: [{ kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2284
2266
  }
2285
2267
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, decorators: [{
2286
2268
  type: Component,
2287
2269
  args: [{ selector: 'bizy-filter-section-search-option', imports: [BizyInputComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"] }]
2288
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
2289
- type: Inject,
2290
- args: [ChangeDetectorRef]
2291
- }] }], propDecorators: { id: [{
2270
+ }], propDecorators: { id: [{
2292
2271
  type: Input
2293
2272
  }], customClass: [{
2294
2273
  type: Input
@@ -2301,8 +2280,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2301
2280
  }] } });
2302
2281
 
2303
2282
  class BizyFilterSectionComponent {
2304
- document;
2305
- ref;
2283
+ #elementRef = inject(ElementRef);
2284
+ #document = inject(DOCUMENT);
2285
+ #ref = inject(ChangeDetectorRef);
2306
2286
  checkboxOptions;
2307
2287
  rangeOption;
2308
2288
  searchOption;
@@ -2314,10 +2294,6 @@ class BizyFilterSectionComponent {
2314
2294
  #mutationObserver;
2315
2295
  #checkboxOptions = [];
2316
2296
  _activated = false;
2317
- constructor(document, ref) {
2318
- this.document = document;
2319
- this.ref = ref;
2320
- }
2321
2297
  ngAfterViewInit() {
2322
2298
  this.#mutationObserver = new MutationObserver(() => {
2323
2299
  if (this.checkboxOptions && (this.#checkboxOptions.length !== 0 || this.checkboxOptions.length !== 0) && !this.#optionsAreEqual(this.#checkboxOptions, this.checkboxOptions.toArray())) {
@@ -2325,13 +2301,13 @@ class BizyFilterSectionComponent {
2325
2301
  const selectedOptions = this.checkboxOptions.filter(_option => _option.getSelected() === true);
2326
2302
  this._activated = selectedOptions.length !== this.checkboxOptions.length;
2327
2303
  this.onSelect.emit(this._activated);
2328
- this.ref.detectChanges();
2304
+ this.#ref.detectChanges();
2329
2305
  this.checkboxOptions.forEach(_option => {
2330
2306
  this.#subscription.add(_option.onChange.subscribe(() => {
2331
2307
  const selectedOptions = this.checkboxOptions.filter(_option => _option.getSelected() === true);
2332
2308
  this._activated = selectedOptions.length !== this.checkboxOptions.length;
2333
2309
  this.onSelect.emit(this._activated);
2334
- this.ref.detectChanges();
2310
+ this.#ref.detectChanges();
2335
2311
  }));
2336
2312
  });
2337
2313
  }
@@ -2340,7 +2316,7 @@ class BizyFilterSectionComponent {
2340
2316
  setTimeout(() => {
2341
2317
  this._activated = value;
2342
2318
  this.onSelect.emit(value);
2343
- this.ref.detectChanges();
2319
+ this.#ref.detectChanges();
2344
2320
  });
2345
2321
  }));
2346
2322
  this.#mutationObserver.disconnect();
@@ -2350,13 +2326,13 @@ class BizyFilterSectionComponent {
2350
2326
  setTimeout(() => {
2351
2327
  this._activated = value;
2352
2328
  this.onSelect.emit(value);
2353
- this.ref.detectChanges();
2329
+ this.#ref.detectChanges();
2354
2330
  });
2355
2331
  }));
2356
2332
  this.#mutationObserver.disconnect();
2357
2333
  }
2358
2334
  });
2359
- this.#mutationObserver.observe(this.document.body, { childList: true, subtree: true });
2335
+ this.#mutationObserver.observe(this.#document.body, { childList: true, subtree: true });
2360
2336
  }
2361
2337
  _onSelect = (selected) => {
2362
2338
  if (this.disabled || this.rangeOption) {
@@ -2393,25 +2369,20 @@ class BizyFilterSectionComponent {
2393
2369
  }
2394
2370
  return true;
2395
2371
  }
2372
+ getNativeElement = () => this.#elementRef?.nativeElement;
2396
2373
  ngOnDestroy() {
2397
2374
  this.#subscription.unsubscribe();
2398
2375
  if (this.#mutationObserver) {
2399
2376
  this.#mutationObserver.disconnect();
2400
2377
  }
2401
2378
  }
2402
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionComponent, deps: [{ token: DOCUMENT }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2379
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2403
2380
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterSectionComponent, isStandalone: true, selector: "bizy-filter-section", inputs: { id: "id", disabled: "disabled", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, queries: [{ propertyName: "rangeOption", first: true, predicate: BizyFilterSectionRangeOptionComponent, descendants: true }, { propertyName: "searchOption", first: true, predicate: BizyFilterSectionSearchOptionComponent, descendants: true }, { propertyName: "checkboxOptions", predicate: BizyFilterSectionCheckboxOptionComponent }], ngImport: i0, template: "<div class=\"bizy-filter-section {{customClass}}\" [id]=\"id\">\n\n <span class=\"bizy-filter-section__header\">\n\n <ng-content select=\"[slot=header]\"></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section__header__checkbox\"\n (onSelect)=\"_onSelect(_activated)\"\n [selected]=\"!_activated\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n\n <button \n type=\"button\"\n class=\"bizy-filter-section__header__clear-button\"\n (click)=\"onClean()\"\n (keyup.enter)=\"onClean()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" class=\"bizy-filter-section__header__clear-icon\">\n <path d=\"M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z\"/>\n </svg>\n </button>\n \n </span>\n\n <span class=\"bizy-filter-section__options\">\n\n <ng-content select=\"bizy-filter-section-checkbox-option\"></ng-content>\n\n <ng-content select=\"bizy-filter-section-range-option\"></ng-content>\n\n <ng-content select=\"bizy-filter-section-search-option\"></ng-content>\n\n </span>\n\n</div>", styles: [":host{font-size:1rem;flex:1;min-width:var(--bizy-filter-section-min-width)}:host:has(.bizy-filter-section-range-option) .bizy-filter-section__header__checkbox{display:none!important}:host:has(.bizy-filter-section-search-option) .bizy-filter-section__header__checkbox{display:none!important}:host:has(.bizy-filter-section-checkbox-option) .bizy-filter-section__header__clear-button{display:none!important}:host:has(.bizy-filter-section-search-option) .bizy-filter-section__header__clear-button{display:none!important}:host:has(.bizy-filter-section-checkbox-option) .bizy-filter-section__options{overflow-y:auto!important}.bizy-filter-section{width:100%;background-color:transparent;display:flex;flex-direction:column;row-gap:.3rem}.bizy-filter-section__header{width:100%;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;border:none;background-color:transparent;text-align:start}.bizy-filter-section__options{width:100%;max-width:100%;display:flex;flex-direction:column;min-height:fit-content;max-height:15rem;overflow-y:hidden;overflow-x:hidden}.bizy-filter-section__header__clear-button{width:fit-content;height:fit-content;border:none;background-color:transparent;cursor:pointer}.bizy-filter-section__header__clear-icon{fill:var(--bizy-filter-section-clear-color);pointer-events:none;height:1rem}\n"], dependencies: [{ kind: "component", type: BizyCheckboxComponent, selector: "bizy-checkbox", inputs: ["id", "selected", "disabled"], outputs: ["selectedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2404
2381
  }
2405
2382
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionComponent, decorators: [{
2406
2383
  type: Component,
2407
2384
  args: [{ selector: 'bizy-filter-section', imports: [BizyCheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-filter-section {{customClass}}\" [id]=\"id\">\n\n <span class=\"bizy-filter-section__header\">\n\n <ng-content select=\"[slot=header]\"></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section__header__checkbox\"\n (onSelect)=\"_onSelect(_activated)\"\n [selected]=\"!_activated\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n\n <button \n type=\"button\"\n class=\"bizy-filter-section__header__clear-button\"\n (click)=\"onClean()\"\n (keyup.enter)=\"onClean()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" class=\"bizy-filter-section__header__clear-icon\">\n <path d=\"M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z\"/>\n </svg>\n </button>\n \n </span>\n\n <span class=\"bizy-filter-section__options\">\n\n <ng-content select=\"bizy-filter-section-checkbox-option\"></ng-content>\n\n <ng-content select=\"bizy-filter-section-range-option\"></ng-content>\n\n <ng-content select=\"bizy-filter-section-search-option\"></ng-content>\n\n </span>\n\n</div>", styles: [":host{font-size:1rem;flex:1;min-width:var(--bizy-filter-section-min-width)}:host:has(.bizy-filter-section-range-option) .bizy-filter-section__header__checkbox{display:none!important}:host:has(.bizy-filter-section-search-option) .bizy-filter-section__header__checkbox{display:none!important}:host:has(.bizy-filter-section-checkbox-option) .bizy-filter-section__header__clear-button{display:none!important}:host:has(.bizy-filter-section-search-option) .bizy-filter-section__header__clear-button{display:none!important}:host:has(.bizy-filter-section-checkbox-option) .bizy-filter-section__options{overflow-y:auto!important}.bizy-filter-section{width:100%;background-color:transparent;display:flex;flex-direction:column;row-gap:.3rem}.bizy-filter-section__header{width:100%;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;border:none;background-color:transparent;text-align:start}.bizy-filter-section__options{width:100%;max-width:100%;display:flex;flex-direction:column;min-height:fit-content;max-height:15rem;overflow-y:hidden;overflow-x:hidden}.bizy-filter-section__header__clear-button{width:fit-content;height:fit-content;border:none;background-color:transparent;cursor:pointer}.bizy-filter-section__header__clear-icon{fill:var(--bizy-filter-section-clear-color);pointer-events:none;height:1rem}\n"] }]
2408
- }], ctorParameters: () => [{ type: Document, decorators: [{
2409
- type: Inject,
2410
- args: [DOCUMENT]
2411
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2412
- type: Inject,
2413
- args: [ChangeDetectorRef]
2414
- }] }], propDecorators: { checkboxOptions: [{
2385
+ }], propDecorators: { checkboxOptions: [{
2415
2386
  type: ContentChildren,
2416
2387
  args: [BizyFilterSectionCheckboxOptionComponent]
2417
2388
  }], rangeOption: [{
@@ -2431,6 +2402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2431
2402
  }] } });
2432
2403
 
2433
2404
  class BizyFilterSectionsComponent {
2405
+ #elementRef = inject(ElementRef);
2406
+ getNativeElement = () => this.#elementRef?.nativeElement;
2434
2407
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterSectionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2435
2408
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterSectionsComponent, isStandalone: true, selector: "bizy-filter-sections", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;background-color:inherit;width:fit-content;max-width:90vw;grid-template-columns:repeat(auto-fit,minmax(var(--bizy-filter-section-min-width),1fr));display:grid;gap:2rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2436
2409
  }
@@ -2440,8 +2413,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2440
2413
  }] });
2441
2414
 
2442
2415
  class BizyFilterComponent {
2443
- document;
2444
- ref;
2416
+ #elementRef = inject(ElementRef);
2417
+ #document = inject(DOCUMENT);
2418
+ #ref = inject(ChangeDetectorRef);
2445
2419
  sections;
2446
2420
  id = `bizy-filter-${Math.random()}`;
2447
2421
  disabled = false;
@@ -2452,10 +2426,6 @@ class BizyFilterComponent {
2452
2426
  _filterWidth;
2453
2427
  _activated = false;
2454
2428
  #subscription = new Subscription();
2455
- constructor(document, ref) {
2456
- this.document = document;
2457
- this.ref = ref;
2458
- }
2459
2429
  ngAfterViewInit() {
2460
2430
  const mutationObserver = new MutationObserver(() => {
2461
2431
  if (this.sections && this.sections.length > 0) {
@@ -2464,7 +2434,7 @@ class BizyFilterComponent {
2464
2434
  if (this._activated !== activated) {
2465
2435
  this._activated = activated;
2466
2436
  this.onChange.emit(this._activated);
2467
- this.ref.detectChanges();
2437
+ this.#ref.detectChanges();
2468
2438
  }
2469
2439
  this.sections.forEach(_section => {
2470
2440
  this.#subscription.add(_section.onSelect.subscribe(() => {
@@ -2473,14 +2443,14 @@ class BizyFilterComponent {
2473
2443
  if (this._activated !== activated) {
2474
2444
  this._activated = activated;
2475
2445
  this.onChange.emit(this._activated);
2476
- this.ref.detectChanges();
2446
+ this.#ref.detectChanges();
2477
2447
  }
2478
2448
  }));
2479
2449
  });
2480
2450
  mutationObserver.disconnect();
2481
2451
  }
2482
2452
  });
2483
- mutationObserver.observe(this.document.body, { childList: true, subtree: true });
2453
+ mutationObserver.observe(this.#document.body, { childList: true, subtree: true });
2484
2454
  }
2485
2455
  _onOpen = (event) => {
2486
2456
  if (this.disabled) {
@@ -2497,12 +2467,13 @@ class BizyFilterComponent {
2497
2467
  return;
2498
2468
  }
2499
2469
  this.opened = false;
2500
- this.ref.detectChanges();
2470
+ this.#ref.detectChanges();
2501
2471
  };
2472
+ getNativeElement = () => this.#elementRef?.nativeElement;
2502
2473
  ngOnDestroy() {
2503
2474
  this.#subscription.unsubscribe();
2504
2475
  }
2505
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterComponent, deps: [{ token: DOCUMENT }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2476
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2506
2477
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterComponent, isStandalone: true, selector: "bizy-filter", inputs: { id: "id", disabled: "disabled", customClass: "customClass", opened: "opened" }, outputs: { onOpen: "onOpen", onChange: "onChange" }, queries: [{ propertyName: "sections", predicate: BizyFilterSectionComponent, descendants: true }], ngImport: i0, template: "<button \n type=\"button\"\n class=\"bizy-filter {{customClass}}\"\n [ngClass]=\"{'bizy-filter--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onOpen($event)\"\n (keyup.enter)=\"_onOpen($event)\"\n cdkOverlayOrigin \n #bizyFilterTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-filter__content\">\n <ng-content></ng-content>\n </span>\n\n <span class=\"bizy-filter__badge\" [ngClass]=\"{'bizy-filter__badge--visible': _activated}\"></span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"_filterWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyFilterTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-filter__sections-wrapper\">\n\n <bizy-filter-sections>\n \n <ng-content select=\"bizy-filter-section\"></ng-content>\n \n </bizy-filter-sections>\n\n <ng-content select=\"bizy-filter-content\"></ng-content>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem}.bizy-filter{font-size:1rem;width:100%;border:none;background-color:transparent;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;cursor:pointer;padding:var(--bizy-filter-padding);color:var(--bizy-filter-color);position:relative}.bizy-filter--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-filter__badge{position:absolute;top:-.2rem;right:-.2rem;height:.5rem;width:.5rem;border-radius:50%;background-color:var(--bizy-filter-badge-color);display:none}.bizy-filter__badge--visible{display:block!important}.bizy-filter__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-filter__sections-wrapper{background-color:var(--bizy-filter-background-color);display:flex;flex-direction:column;overflow-y:auto;max-height:30rem;max-width:90vw;padding:.5rem;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: BizyFilterSectionsComponent, selector: "bizy-filter-sections" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2507
2478
  }
2508
2479
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterComponent, decorators: [{
@@ -2512,13 +2483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2512
2483
  OverlayModule,
2513
2484
  BizyFilterSectionsComponent
2514
2485
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n class=\"bizy-filter {{customClass}}\"\n [ngClass]=\"{'bizy-filter--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onOpen($event)\"\n (keyup.enter)=\"_onOpen($event)\"\n cdkOverlayOrigin \n #bizyFilterTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-filter__content\">\n <ng-content></ng-content>\n </span>\n\n <span class=\"bizy-filter__badge\" [ngClass]=\"{'bizy-filter__badge--visible': _activated}\"></span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"_filterWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyFilterTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-filter__sections-wrapper\">\n\n <bizy-filter-sections>\n \n <ng-content select=\"bizy-filter-section\"></ng-content>\n \n </bizy-filter-sections>\n\n <ng-content select=\"bizy-filter-content\"></ng-content>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem}.bizy-filter{font-size:1rem;width:100%;border:none;background-color:transparent;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;cursor:pointer;padding:var(--bizy-filter-padding);color:var(--bizy-filter-color);position:relative}.bizy-filter--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-filter__badge{position:absolute;top:-.2rem;right:-.2rem;height:.5rem;width:.5rem;border-radius:50%;background-color:var(--bizy-filter-badge-color);display:none}.bizy-filter__badge--visible{display:block!important}.bizy-filter__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-filter__sections-wrapper{background-color:var(--bizy-filter-background-color);display:flex;flex-direction:column;overflow-y:auto;max-height:30rem;max-width:90vw;padding:.5rem;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"] }]
2515
- }], ctorParameters: () => [{ type: Document, decorators: [{
2516
- type: Inject,
2517
- args: [DOCUMENT]
2518
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2519
- type: Inject,
2520
- args: [ChangeDetectorRef]
2521
- }] }], propDecorators: { sections: [{
2486
+ }], propDecorators: { sections: [{
2522
2487
  type: ContentChildren,
2523
2488
  args: [BizyFilterSectionComponent, { descendants: true }]
2524
2489
  }], id: [{
@@ -2536,6 +2501,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2536
2501
  }] } });
2537
2502
 
2538
2503
  class BizyFilterContentComponent {
2504
+ #elementRef = inject(ElementRef);
2505
+ getNativeElement = () => this.#elementRef?.nativeElement;
2539
2506
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2540
2507
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFilterContentComponent, isStandalone: true, selector: "bizy-filter-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2541
2508
  }
@@ -2716,8 +2683,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2716
2683
  }] });
2717
2684
 
2718
2685
  class BizySelectOptionComponent {
2719
- elementRef;
2720
- ref;
2686
+ #elementRef = inject(ElementRef);
2687
+ #ref = inject(ChangeDetectorRef);
2721
2688
  id = `bizy-select-option-${Math.random()}`;
2722
2689
  disabled = false;
2723
2690
  customClass = '';
@@ -2732,16 +2699,12 @@ class BizySelectOptionComponent {
2732
2699
  get selected$() {
2733
2700
  return this.#selected.asObservable();
2734
2701
  }
2735
- constructor(elementRef, ref) {
2736
- this.elementRef = elementRef;
2737
- this.ref = ref;
2738
- }
2739
2702
  _onSelect() {
2740
2703
  if (this.disabled) {
2741
2704
  return;
2742
2705
  }
2743
2706
  this.onSelect.emit();
2744
- this.ref.detectChanges();
2707
+ this.#ref.detectChanges();
2745
2708
  }
2746
2709
  getId = () => {
2747
2710
  return this.id;
@@ -2749,23 +2712,18 @@ class BizySelectOptionComponent {
2749
2712
  getSelected = () => {
2750
2713
  return this.#selected.value;
2751
2714
  };
2715
+ getNativeElement = () => this.#elementRef?.nativeElement;
2752
2716
  getValue = () => {
2753
- const value = this.elementRef?.nativeElement?.firstChild?.children[0]?.innerText;
2717
+ const value = this.#elementRef?.nativeElement?.firstChild?.children[0]?.innerText;
2754
2718
  return value ?? '';
2755
2719
  };
2756
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectOptionComponent, deps: [{ token: ElementRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2720
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2757
2721
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySelectOptionComponent, isStandalone: true, selector: "bizy-select-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"_onSelect()\"\n (keyup.enter)=\"_onSelect()\"\n [ngClass]=\"{'bizy-select-option--selected': (selected$ | async), 'bizy-select-option--disabled': disabled}\"\n class=\"bizy-select-option {{customClass}}\">\n\n <span class=\"bizy-select-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>", styles: [":host{font-size:1rem}.bizy-select-option{font-size:1rem;width:100%;border:none;background-color:var(--bizy-select-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;color:var(--bizy-select-option-color);cursor:pointer}.bizy-select-option:hover{background-color:var(--bizy-select-option-hover-background-color)}.bizy-select-option--selected{background-color:var(--bizy-select-option-selected-background-color)!important}.bizy-select-option--selected ::ng-deep .bizy-select-option__content *{color:var(--bizy-select-option-selected-color)}.bizy-select-option--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-select-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;text-align:start}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2758
2722
  }
2759
2723
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectOptionComponent, decorators: [{
2760
2724
  type: Component,
2761
2725
  args: [{ selector: 'bizy-select-option', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"_onSelect()\"\n (keyup.enter)=\"_onSelect()\"\n [ngClass]=\"{'bizy-select-option--selected': (selected$ | async), 'bizy-select-option--disabled': disabled}\"\n class=\"bizy-select-option {{customClass}}\">\n\n <span class=\"bizy-select-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>", styles: [":host{font-size:1rem}.bizy-select-option{font-size:1rem;width:100%;border:none;background-color:var(--bizy-select-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;color:var(--bizy-select-option-color);cursor:pointer}.bizy-select-option:hover{background-color:var(--bizy-select-option-hover-background-color)}.bizy-select-option--selected{background-color:var(--bizy-select-option-selected-background-color)!important}.bizy-select-option--selected ::ng-deep .bizy-select-option__content *{color:var(--bizy-select-option-selected-color)}.bizy-select-option--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-select-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;text-align:start}\n"] }]
2762
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
2763
- type: Inject,
2764
- args: [ElementRef]
2765
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2766
- type: Inject,
2767
- args: [ChangeDetectorRef]
2768
- }] }], propDecorators: { id: [{
2726
+ }], propDecorators: { id: [{
2769
2727
  type: Input
2770
2728
  }], disabled: [{
2771
2729
  type: Input
@@ -2778,7 +2736,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2778
2736
  }] } });
2779
2737
 
2780
2738
  class BizySelectComponent {
2781
- ref;
2739
+ #elementRef = inject(ElementRef);
2740
+ #ref = inject(ChangeDetectorRef);
2782
2741
  #viewContainerRef = inject(ViewContainerRef);
2783
2742
  templatePortalContent;
2784
2743
  options;
@@ -2797,9 +2756,6 @@ class BizySelectComponent {
2797
2756
  templatePortal = null;
2798
2757
  #subscription = new Subscription();
2799
2758
  #contentChildrenSubscription = new Subscription();
2800
- constructor(ref) {
2801
- this.ref = ref;
2802
- }
2803
2759
  get touched() {
2804
2760
  return this.bizyInput ? this.bizyInput.touched : false;
2805
2761
  }
@@ -2813,11 +2769,11 @@ class BizySelectComponent {
2813
2769
  this.options.forEach(_option => {
2814
2770
  this.#subscription.add(_option.onSelect.subscribe(() => {
2815
2771
  this.close();
2816
- this.ref.detectChanges();
2772
+ this.#ref.detectChanges();
2817
2773
  }));
2818
2774
  this.#subscription.add(_option.selected$.pipe(filter(_value => _value === true)).subscribe(() => {
2819
2775
  this._optionValue = _option.getValue();
2820
- this.ref.detectChanges();
2776
+ this.#ref.detectChanges();
2821
2777
  }));
2822
2778
  });
2823
2779
  this.#contentChildrenSubscription.add(this.options.changes.subscribe(() => {
@@ -2826,15 +2782,15 @@ class BizySelectComponent {
2826
2782
  this.options.forEach(_option => {
2827
2783
  this.#subscription.add(_option.onSelect.subscribe(() => {
2828
2784
  this.close();
2829
- this.ref.detectChanges();
2785
+ this.#ref.detectChanges();
2830
2786
  }));
2831
2787
  this.#subscription.add(_option.selected$.pipe(filter(_value => _value === true)).subscribe(() => {
2832
2788
  this._optionValue = _option.getValue();
2833
- this.ref.detectChanges();
2789
+ this.#ref.detectChanges();
2834
2790
  }));
2835
2791
  });
2836
2792
  }));
2837
- this.ref.detectChanges();
2793
+ this.#ref.detectChanges();
2838
2794
  }
2839
2795
  _onOpen(event) {
2840
2796
  if (this.disabled || this.readonly) {
@@ -2847,7 +2803,7 @@ class BizySelectComponent {
2847
2803
  if (this.bizyInput) {
2848
2804
  this.bizyInput.setFocus(true);
2849
2805
  }
2850
- this.ref.detectChanges();
2806
+ this.#ref.detectChanges();
2851
2807
  }
2852
2808
  close = (event, select) => {
2853
2809
  if (select && event && event.target && event.target === select.bizyInputWrapper.nativeElement) {
@@ -2856,28 +2812,26 @@ class BizySelectComponent {
2856
2812
  this.opened = false;
2857
2813
  this.openedChange.emit(this.opened);
2858
2814
  this.onOpen.emit(this.opened);
2859
- this.ref.detectChanges();
2815
+ this.#ref.detectChanges();
2860
2816
  };
2861
2817
  setTouched(touched) {
2862
2818
  if (this.bizyInput) {
2863
2819
  this.bizyInput.setTouched(touched);
2864
- this.ref.detectChanges();
2820
+ this.#ref.detectChanges();
2865
2821
  }
2866
2822
  }
2823
+ getNativeElement = () => this.#elementRef?.nativeElement;
2867
2824
  ngOnDestroy() {
2868
2825
  this.#subscription.unsubscribe();
2869
2826
  this.#contentChildrenSubscription.unsubscribe();
2870
2827
  }
2871
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2828
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2872
2829
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySelectComponent, isStandalone: true, selector: "bizy-select", inputs: { id: "id", disabled: "disabled", readonly: "readonly", placeholder: "placeholder", customClass: "customClass", opened: "opened" }, outputs: { openedChange: "openedChange", onSelect: "onSelect", onOpen: "onOpen" }, queries: [{ propertyName: "options", predicate: BizySelectOptionComponent }], viewQueries: [{ propertyName: "templatePortalContent", first: true, predicate: ["templatePortalContent"], descendants: true }, { propertyName: "bizyInput", first: true, predicate: ["bizyInput"], descendants: true }], ngImport: i0, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n <svg \n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n *ngIf=\"!readonly\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n<span class=\"bizy-select__errors\" *ngIf=\"touched\">\n <ng-content select=\"[slot=error]\"></ng-content>\n</span>\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n \n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2873
2830
  }
2874
2831
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySelectComponent, decorators: [{
2875
2832
  type: Component,
2876
2833
  args: [{ selector: 'bizy-select', imports: [CommonModule, BizyInputComponent, OverlayModule, PortalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n <svg \n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n *ngIf=\"!readonly\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n<span class=\"bizy-select__errors\" *ngIf=\"touched\">\n <ng-content select=\"[slot=error]\"></ng-content>\n</span>\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n \n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"] }]
2877
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
2878
- type: Inject,
2879
- args: [ChangeDetectorRef]
2880
- }] }], propDecorators: { templatePortalContent: [{
2834
+ }], propDecorators: { templatePortalContent: [{
2881
2835
  type: ViewChild,
2882
2836
  args: ['templatePortalContent']
2883
2837
  }], options: [{
@@ -2907,6 +2861,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
2907
2861
  }] } });
2908
2862
 
2909
2863
  class BizyFormComponent {
2864
+ #elementRef = inject(ElementRef);
2910
2865
  inputs;
2911
2866
  selects;
2912
2867
  datePickers;
@@ -2933,6 +2888,7 @@ class BizyFormComponent {
2933
2888
  });
2934
2889
  }
2935
2890
  };
2891
+ getNativeElement = () => this.#elementRef?.nativeElement;
2936
2892
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2937
2893
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyFormComponent, isStandalone: true, selector: "bizy-form", inputs: { id: "id", customClass: "customClass" }, queries: [{ propertyName: "inputs", predicate: BizyInputComponent, descendants: true }, { propertyName: "selects", predicate: BizySelectComponent, descendants: true }, { propertyName: "datePickers", predicate: BizyDatePickerComponent, descendants: true }], ngImport: i0, template: "<form class=\"bizy-form {{customClass}}\" [id]=\"id\" (ngSubmit)=\"onSubmit($event)\">\n <ng-content></ng-content>\n</form>", styles: [":host{font-size:1rem;max-width:var(--bizy-form-max-width)}.bizy-form{max-width:inherit;display:flex;flex-direction:column;row-gap:var(--bizy-form-row-gap);--bizy-input-max-width: 100%;--bizy-select-max-width: 100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2938
2894
  }
@@ -3009,6 +2965,7 @@ class BizyGridRowComponent {
3009
2965
  this.#renderer.setStyle(this.#elementRef.nativeElement, 'gridTemplateColumns', `repeat(${itemsPerRow}, minmax(0, 1fr)`);
3010
2966
  this.#ref.detectChanges();
3011
2967
  }
2968
+ getNativeElement = () => this.#elementRef?.nativeElement;
3012
2969
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyGridRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3013
2970
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyGridRowComponent, isStandalone: true, selector: "bizy-grid-row", inputs: { rowHeight: "rowHeight", itemsPerRow: "itemsPerRow" }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;display:grid;column-gap:var(--bizy-grid-gap);margin-bottom:var(--bizy-grid-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3014
2971
  }
@@ -3022,10 +2979,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3022
2979
  }] } });
3023
2980
 
3024
2981
  class BizyGridComponent {
3025
- ref;
3026
- document;
3027
- renderer;
3028
- elementRef;
2982
+ #elementRef = inject(ElementRef);
2983
+ #ref = inject(ChangeDetectorRef);
2984
+ #document = inject(DOCUMENT);
2985
+ #renderer = inject(Renderer2);
3029
2986
  virtualScroll;
3030
2987
  content;
3031
2988
  gridDirective;
@@ -3040,12 +2997,6 @@ class BizyGridComponent {
3040
2997
  items = [];
3041
2998
  itemTemplate;
3042
2999
  itemsPerRow = 1;
3043
- constructor(ref, document, renderer, elementRef) {
3044
- this.ref = ref;
3045
- this.document = document;
3046
- this.renderer = renderer;
3047
- this.elementRef = elementRef;
3048
- }
3049
3000
  ngAfterContentInit() {
3050
3001
  if (this.gridDirective) {
3051
3002
  this.#initView();
@@ -3057,9 +3008,9 @@ class BizyGridComponent {
3057
3008
  }
3058
3009
  this.#initView();
3059
3010
  this.#rowScrollingMutationObserver.disconnect();
3060
- this.ref.detectChanges();
3011
+ this.#ref.detectChanges();
3061
3012
  });
3062
- this.#rowScrollingMutationObserver.observe(this.document.body, { childList: true, subtree: true });
3013
+ this.#rowScrollingMutationObserver.observe(this.#document.body, { childList: true, subtree: true });
3063
3014
  }
3064
3015
  }
3065
3016
  #initView = () => {
@@ -3075,7 +3026,7 @@ class BizyGridComponent {
3075
3026
  this.#view.createEmbeddedView(this.content);
3076
3027
  }
3077
3028
  this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
3078
- const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
3029
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
3079
3030
  this.#resizeObserver.observe(resizeRef);
3080
3031
  this.#subscription.add(this.notifier$.pipe(debounceTime$1(50)).subscribe(() => {
3081
3032
  this.#updateView();
@@ -3083,10 +3034,10 @@ class BizyGridComponent {
3083
3034
  };
3084
3035
  #updateView = () => {
3085
3036
  this.itemTemplate = this.gridDirective.templateRef;
3086
- const rowWidth = this.elementRef.nativeElement.offsetWidth || this.elementRef.nativeElement.firstChild.offsetWidth;
3037
+ const rowWidth = this.#elementRef.nativeElement.offsetWidth || this.#elementRef.nativeElement.firstChild.offsetWidth;
3087
3038
  let columnWidth = 100;
3088
- const fontSize = Number(getComputedStyle(this.elementRef.nativeElement).getPropertyValue('font-size').split('px')[0]);
3089
- const rowHeightParameter = getComputedStyle(this.elementRef.nativeElement).getPropertyValue('--bizy-grid-row-height');
3039
+ const fontSize = Number(getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('font-size').split('px')[0]);
3040
+ const rowHeightParameter = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-grid-row-height');
3090
3041
  if (rowHeightParameter && rowHeightParameter.includes('rem')) {
3091
3042
  this.rowHeight = fontSize * Number(rowHeightParameter.split('rem')[0]);
3092
3043
  }
@@ -3094,14 +3045,14 @@ class BizyGridComponent {
3094
3045
  this.rowHeight = Number(rowHeightParameter.split('px')[0]);
3095
3046
  }
3096
3047
  let gap = 10;
3097
- const gapParameter = getComputedStyle(this.elementRef.nativeElement).getPropertyValue('--bizy-grid-gap');
3048
+ const gapParameter = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-grid-gap');
3098
3049
  if (gapParameter && gapParameter.includes('rem')) {
3099
3050
  gap = fontSize * Number(gapParameter.split('rem')[0]);
3100
3051
  }
3101
3052
  else if (gapParameter && gapParameter.includes('px')) {
3102
3053
  gap = Number(gapParameter.split('px')[0]);
3103
3054
  }
3104
- const columnWidthParameter = getComputedStyle(this.elementRef.nativeElement).getPropertyValue('--bizy-grid-column-width');
3055
+ const columnWidthParameter = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-grid-column-width');
3105
3056
  if (columnWidthParameter && columnWidthParameter.includes('rem')) {
3106
3057
  columnWidth = fontSize * Number(columnWidthParameter.split('rem')[0]);
3107
3058
  }
@@ -3122,7 +3073,7 @@ class BizyGridComponent {
3122
3073
  itemRows.push(row);
3123
3074
  }
3124
3075
  this.itemRows = itemRows;
3125
- this.ref.detectChanges();
3076
+ this.#ref.detectChanges();
3126
3077
  };
3127
3078
  trackById(index, item) {
3128
3079
  return item?.id ?? index;
@@ -3139,25 +3090,14 @@ class BizyGridComponent {
3139
3090
  this.#resizeObserver.disconnect();
3140
3091
  }
3141
3092
  }
3142
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyGridComponent, deps: [{ token: ChangeDetectorRef }, { token: DOCUMENT }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3093
+ getNativeElement = () => this.#elementRef?.nativeElement;
3094
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3143
3095
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyGridComponent, isStandalone: true, selector: "bizy-grid", inputs: { resizeRef: "resizeRef" }, queries: [{ propertyName: "gridDirective", first: true, predicate: BizyGridForDirective, descendants: true }], viewQueries: [{ propertyName: "virtualScroll", first: true, predicate: ["cdkVirtualScroll"], descendants: true }, { propertyName: "content", first: true, predicate: ["gridScrollingContent"], descendants: true }], ngImport: i0, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll \n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n \n <ng-template #gridScrollingContent>\n <ng-template \n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n <ng-container *ngFor=\"let it of item; trackBy: trackById; let i = index\">\n <ng-template \n *ngTemplateOutlet=\"itemTemplate;\n context: { \n $implicit: it,\n index: index * itemsPerRow + i,\n rowIndex: index,\n rowFirst: first,\n rowLast: last,\n rowEven: even,\n rowOdd: odd\n }\"></ng-template>\n </ng-container>\n </bizy-grid-row>\n </ng-template>\n </ng-template>\n </cdk-virtual-scroll-viewport>\n\n</div>\n", styles: [":host{display:inline-block!important;min-height:var(--bizy-grid-min-height);max-height:var(--bizy-grid-max-height);height:var(--bizy-grid-height);width:var(--bizy-grid-width);flex:1;overflow-x:auto;overflow-y:hidden;font-size:1rem}:host:has(.bizy-grid--empty){height:0!important;min-height:0!important;max-height:0!important}.bizy-grid{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-grid-background-color)}.bizy-grid__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scroll-content-wrapper{min-width:100%;max-width:100%}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-grid-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-grid-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$2.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$2.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$2.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: BizyGridRowComponent, selector: "bizy-grid-row", inputs: ["rowHeight", "itemsPerRow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3144
3096
  }
3145
3097
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyGridComponent, decorators: [{
3146
3098
  type: Component,
3147
3099
  args: [{ selector: 'bizy-grid', imports: [CommonModule, ScrollingModule, BizyGridRowComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll \n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n \n <ng-template #gridScrollingContent>\n <ng-template \n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n <ng-container *ngFor=\"let it of item; trackBy: trackById; let i = index\">\n <ng-template \n *ngTemplateOutlet=\"itemTemplate;\n context: { \n $implicit: it,\n index: index * itemsPerRow + i,\n rowIndex: index,\n rowFirst: first,\n rowLast: last,\n rowEven: even,\n rowOdd: odd\n }\"></ng-template>\n </ng-container>\n </bizy-grid-row>\n </ng-template>\n </ng-template>\n </cdk-virtual-scroll-viewport>\n\n</div>\n", styles: [":host{display:inline-block!important;min-height:var(--bizy-grid-min-height);max-height:var(--bizy-grid-max-height);height:var(--bizy-grid-height);width:var(--bizy-grid-width);flex:1;overflow-x:auto;overflow-y:hidden;font-size:1rem}:host:has(.bizy-grid--empty){height:0!important;min-height:0!important;max-height:0!important}.bizy-grid{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-grid-background-color)}.bizy-grid__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scroll-content-wrapper{min-width:100%;max-width:100%}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-grid-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-grid-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"] }]
3148
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
3149
- type: Inject,
3150
- args: [ChangeDetectorRef]
3151
- }] }, { type: Document, decorators: [{
3152
- type: Inject,
3153
- args: [DOCUMENT]
3154
- }] }, { type: i0.Renderer2, decorators: [{
3155
- type: Inject,
3156
- args: [Renderer2]
3157
- }] }, { type: i0.ElementRef, decorators: [{
3158
- type: Inject,
3159
- args: [ElementRef]
3160
- }] }], propDecorators: { virtualScroll: [{
3100
+ }], propDecorators: { virtualScroll: [{
3161
3101
  type: ViewChild,
3162
3102
  args: ['cdkVirtualScroll']
3163
3103
  }], content: [{
@@ -3213,7 +3153,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3213
3153
  }] });
3214
3154
 
3215
3155
  class BizyListComponent {
3156
+ #elementRef = inject(ElementRef);
3216
3157
  id = `bizy-list-${Math.random()}`;
3158
+ getNativeElement = () => this.#elementRef?.nativeElement;
3217
3159
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3218
3160
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyListComponent, isStandalone: true, selector: "bizy-list", inputs: { id: "id" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;height:var(--bizy-list-height);overflow:auto;width:var(--bizy-list-width);display:flex;flex-direction:var(--bizy-list-flex-direction);column-gap:var(--bizy-list-column-gap);row-gap:var(--bizy-list-row-gap);justify-content:var(--bizy-list-justify-content);align-items:var(--bizy-list-align-items)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3219
3161
  }
@@ -3243,6 +3185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3243
3185
  }] });
3244
3186
 
3245
3187
  class BizyMenuOptionComponent {
3188
+ #elementRef = inject(ElementRef);
3246
3189
  id = `bizy-menu-option-${Math.random()}`;
3247
3190
  disabled = false;
3248
3191
  customClass = '';
@@ -3254,6 +3197,7 @@ class BizyMenuOptionComponent {
3254
3197
  }
3255
3198
  this.onSelect.emit(event);
3256
3199
  }
3200
+ getNativeElement = () => this.#elementRef?.nativeElement;
3257
3201
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyMenuOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3258
3202
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyMenuOptionComponent, isStandalone: true, selector: "bizy-menu-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n [ngClass]=\"{'bizy-menu-option--selected': selected, 'bizy-menu-option--disabled': disabled}\"\n class=\"bizy-menu-option {{customClass}}\">\n\n <span class=\"bizy-menu-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n<span class=\"bizy-menu-option__menu\">\n <ng-content select=\"bizy-menu\"></ng-content>\n</span>\n", styles: [":host{font-size:1rem}:host:has(>.bizy-menu-option__menu:not(:empty)) .bizy-menu-option{display:none!important}.bizy-menu-option{font-size:1rem;width:100%;border:none;background-color:var(--bizy-menu-option-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;padding:.5rem;color:var(--bizy-menu-option-color);cursor:pointer}.bizy-menu-option:hover{background-color:var(--bizy-menu-option-hover-background-color)}.bizy-menu-option--selected{color:var(--bizy-menu-option-selected-color)!important;background-color:var(--bizy-menu-option-selected-background-color)!important}::ng-deep .bizy-menu-option--selected *{color:var(--bizy-menu-option-selected-color)!important}.bizy-menu-option--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}.bizy-menu-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;width:100%}::ng-deep .bizy-menu-option__menu *{color:var(--bizy-menu-option-color);fill:var(--bizy-menu-option-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3259
3203
  }
@@ -3273,6 +3217,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3273
3217
  }] } });
3274
3218
 
3275
3219
  class BizyMenuComponent {
3220
+ #elementRef = inject(ElementRef);
3276
3221
  #ref = inject(ChangeDetectorRef);
3277
3222
  options;
3278
3223
  id = `bizy-menu-${Math.random()}`;
@@ -3330,6 +3275,7 @@ class BizyMenuComponent {
3330
3275
  this.#subscription.unsubscribe();
3331
3276
  this.#ref.detectChanges();
3332
3277
  };
3278
+ getNativeElement = () => this.#elementRef?.nativeElement;
3333
3279
  ngOnDestroy() {
3334
3280
  this.#subscription.unsubscribe();
3335
3281
  }
@@ -3361,8 +3307,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3361
3307
  }] } });
3362
3308
 
3363
3309
  class BizyMenuTitleComponent {
3310
+ #elementRef = inject(ElementRef);
3364
3311
  id = `bizy-menu-title-${Math.random()}`;
3365
3312
  customClass = '';
3313
+ getNativeElement = () => this.#elementRef?.nativeElement;
3366
3314
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyMenuTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3367
3315
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyMenuTitleComponent, isStandalone: true, selector: "bizy-menu-title", inputs: { id: "id", customClass: "customClass" }, host: { properties: { "id": "id", "class": "customClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{font-size:1rem;background-color:var(--bizy-menu-title-background-color);color:var(--bizy-menu-title-color);padding:.5rem;cursor:default;text-decoration:var(--bizy-menu-title-text-decoration);text-underline-offset:.3rem;display:flex;align-items:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3368
3316
  }
@@ -3404,10 +3352,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3404
3352
  const EMPTY_CHART = [0];
3405
3353
  const MIN_CHART_SIZE = 350; // px;
3406
3354
  class BizyPieChartComponent {
3407
- elementRef;
3408
- document;
3409
- ref;
3410
- renderer;
3355
+ #elementRef = inject(ElementRef);
3356
+ #document = inject(DOCUMENT);
3357
+ #ref = inject(ChangeDetectorRef);
3358
+ #renderer = inject(Renderer2);
3411
3359
  resizeRef = null;
3412
3360
  tooltip = true;
3413
3361
  type = 'pie';
@@ -3424,21 +3372,16 @@ class BizyPieChartComponent {
3424
3372
  #afterViewInit = new BehaviorSubject(false);
3425
3373
  #resize$ = new Subject();
3426
3374
  #data = EMPTY_CHART;
3427
- constructor(elementRef, document, ref, renderer) {
3428
- this.elementRef = elementRef;
3429
- this.document = document;
3430
- this.ref = ref;
3431
- this.renderer = renderer;
3432
- }
3433
3375
  ngAfterViewInit() {
3434
3376
  this.#mutationObserver = new MutationObserver(() => {
3435
- if (this.elementRef && this.elementRef.nativeElement && (this.elementRef.nativeElement.offsetWidth || this.elementRef.nativeElement.offsetHeight)) {
3377
+ if (this.#elementRef && this.#elementRef.nativeElement && (this.#elementRef.nativeElement.offsetWidth || this.#elementRef.nativeElement.offsetHeight)) {
3436
3378
  this.#afterViewInit.next(true);
3437
3379
  this.#mutationObserver.disconnect();
3438
3380
  }
3439
3381
  });
3440
- this.#mutationObserver.observe(this.document.body, { childList: true, subtree: true });
3382
+ this.#mutationObserver.observe(this.#document.body, { childList: true, subtree: true });
3441
3383
  }
3384
+ getNativeElement = () => this.#elementRef?.nativeElement;
3442
3385
  set data(data) {
3443
3386
  if (!data) {
3444
3387
  return;
@@ -3507,9 +3450,9 @@ class BizyPieChartComponent {
3507
3450
  itemStyle,
3508
3451
  label
3509
3452
  }];
3510
- const textColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-color') ?? '#000';
3511
- const textBackgroundColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-background-color') ?? '#fff';
3512
- const borderColor = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-tooltip-border-color') ?? '#fff';
3453
+ const textColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-color') ?? '#000';
3454
+ const textBackgroundColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-background-color') ?? '#fff';
3455
+ const borderColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-tooltip-border-color') ?? '#fff';
3513
3456
  const toolbox = {
3514
3457
  show: true,
3515
3458
  feature: {
@@ -3523,9 +3466,9 @@ class BizyPieChartComponent {
3523
3466
  var link = document.createElement('a');
3524
3467
  link.href = canvas.toDataURL('image/png');
3525
3468
  link.download = `${this.download.name}.png`;
3526
- this.renderer.appendChild(this.document.body, link);
3469
+ this.#renderer.appendChild(this.#document.body, link);
3527
3470
  link.click();
3528
- this.renderer.removeChild(this.document.body, link);
3471
+ this.#renderer.removeChild(this.#document.body, link);
3529
3472
  this.onDownload.emit();
3530
3473
  });
3531
3474
  }, 500);
@@ -3562,7 +3505,7 @@ class BizyPieChartComponent {
3562
3505
  this.onSelect.emit(params.name);
3563
3506
  });
3564
3507
  this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
3565
- const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
3508
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
3566
3509
  this.#resizeObserver.observe(resizeRef);
3567
3510
  this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
3568
3511
  this.#deleteChartContainer();
@@ -3580,15 +3523,15 @@ class BizyPieChartComponent {
3580
3523
  }));
3581
3524
  }
3582
3525
  #createChartContainer = () => {
3583
- if (this.#chartContainer || !this.elementRef || !this.elementRef.nativeElement) {
3526
+ if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
3584
3527
  return;
3585
3528
  }
3586
- let elementWidth = this.elementRef.nativeElement.offsetWidth || MIN_CHART_SIZE;
3587
- let elementHeight = this.elementRef.nativeElement.offsetHeight || MIN_CHART_SIZE;
3529
+ let elementWidth = this.#elementRef.nativeElement.offsetWidth || MIN_CHART_SIZE;
3530
+ let elementHeight = this.#elementRef.nativeElement.offsetHeight || MIN_CHART_SIZE;
3588
3531
  let minWidth = MIN_CHART_SIZE;
3589
3532
  let minHeight = MIN_CHART_SIZE;
3590
- const chartMinWidth = getComputedStyle(this.document.body).getPropertyValue('--bizy-chart-min-width');
3591
- const pieChartMinHeight = getComputedStyle(this.document.body).getPropertyValue('--bizy-chart-min-height');
3533
+ const chartMinWidth = getComputedStyle(this.#document.body).getPropertyValue('--bizy-chart-min-width');
3534
+ const pieChartMinHeight = getComputedStyle(this.#document.body).getPropertyValue('--bizy-chart-min-height');
3592
3535
  if (Number(chartMinWidth)) {
3593
3536
  minWidth = Number(chartMinWidth);
3594
3537
  }
@@ -3597,20 +3540,20 @@ class BizyPieChartComponent {
3597
3540
  }
3598
3541
  const width = Math.max(elementWidth, minWidth);
3599
3542
  const height = Math.max(elementHeight, minHeight);
3600
- this.#chartContainer = this.renderer.createElement('div');
3601
- this.renderer.setStyle(this.#chartContainer, 'width', `${width}px`);
3602
- this.renderer.setStyle(this.#chartContainer, 'height', `${height}px`);
3603
- this.renderer.appendChild(this.elementRef.nativeElement, this.#chartContainer);
3604
- this.ref.detectChanges();
3543
+ this.#chartContainer = this.#renderer.createElement('div');
3544
+ this.#renderer.setStyle(this.#chartContainer, 'width', `${width}px`);
3545
+ this.#renderer.setStyle(this.#chartContainer, 'height', `${height}px`);
3546
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
3547
+ this.#ref.detectChanges();
3605
3548
  };
3606
3549
  #deleteChartContainer = () => {
3607
- if (!this.#chartContainer || !this.elementRef || !this.elementRef.nativeElement) {
3550
+ if (!this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
3608
3551
  return;
3609
3552
  }
3610
3553
  this.#echarts.clear();
3611
- this.renderer.removeChild(this.elementRef.nativeElement, this.#chartContainer);
3554
+ this.#renderer.removeChild(this.#elementRef.nativeElement, this.#chartContainer);
3612
3555
  this.#chartContainer = null;
3613
- this.ref.detectChanges();
3556
+ this.#ref.detectChanges();
3614
3557
  };
3615
3558
  ngOnDestroy() {
3616
3559
  this.#subscription.unsubscribe();
@@ -3624,7 +3567,7 @@ class BizyPieChartComponent {
3624
3567
  this.#echarts.clear();
3625
3568
  }
3626
3569
  }
3627
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPieChartComponent, deps: [{ token: ElementRef }, { token: DOCUMENT }, { token: ChangeDetectorRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
3570
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3628
3571
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef", tooltip: "tooltip", type: "type", download: "download", onLabelFormatter: "onLabelFormatter", onTooltipFormatter: "onTooltipFormatter", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3629
3572
  }
3630
3573
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyPieChartComponent, decorators: [{
@@ -3635,19 +3578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3635
3578
  imports: [CommonModule],
3636
3579
  changeDetection: ChangeDetectionStrategy.OnPush
3637
3580
  }]
3638
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
3639
- type: Inject,
3640
- args: [ElementRef]
3641
- }] }, { type: Document, decorators: [{
3642
- type: Inject,
3643
- args: [DOCUMENT]
3644
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
3645
- type: Inject,
3646
- args: [ChangeDetectorRef]
3647
- }] }, { type: i0.Renderer2, decorators: [{
3648
- type: Inject,
3649
- args: [Renderer2]
3650
- }] }], propDecorators: { resizeRef: [{
3581
+ }], propDecorators: { resizeRef: [{
3651
3582
  type: Input
3652
3583
  }], tooltip: [{
3653
3584
  type: Input
@@ -3684,11 +3615,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
3684
3615
  }] });
3685
3616
 
3686
3617
  class BizyPopupWrapperComponent {
3687
- dynamicComponentContainer;
3618
+ #elementRef = inject(ElementRef);
3688
3619
  #data = inject(DIALOG_DATA);
3689
3620
  #dialogRef = inject(DialogRef);
3690
3621
  #popup = inject(BizyPopupService);
3691
3622
  #ref = inject(ChangeDetectorRef);
3623
+ dynamicComponentContainer;
3692
3624
  disabled = false;
3693
3625
  disableClose = false;
3694
3626
  disableDrag = false;
@@ -3709,6 +3641,7 @@ class BizyPopupWrapperComponent {
3709
3641
  ngAfterViewInit() {
3710
3642
  this.loadDynamicComponent();
3711
3643
  }
3644
+ getNativeElement = () => this.#elementRef?.nativeElement;
3712
3645
  loadDynamicComponent = () => {
3713
3646
  if (this.#data && this.#data.component) {
3714
3647
  this.dynamicComponentContainer.clear();
@@ -4973,11 +4906,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
4973
4906
  }] });
4974
4907
 
4975
4908
  class BizyFullScreenPopupWrapperComponent {
4976
- dynamicComponentContainer;
4909
+ #elementRef = inject(ElementRef);
4977
4910
  #data = inject(DIALOG_DATA);
4978
4911
  #dialogRef = inject(DialogRef);
4979
4912
  #popup = inject(BizyPopupService);
4980
4913
  #ref = inject(ChangeDetectorRef);
4914
+ dynamicComponentContainer;
4981
4915
  disabled = false;
4982
4916
  disableClose = false;
4983
4917
  disableDrag = false;
@@ -5001,6 +4935,7 @@ class BizyFullScreenPopupWrapperComponent {
5001
4935
  this.#ref.detectChanges();
5002
4936
  }
5003
4937
  };
4938
+ getNativeElement = () => this.#elementRef?.nativeElement;
5004
4939
  async close() {
5005
4940
  this.disabled = true;
5006
4941
  this.#popup.close({ id: this.#dialogRef.id });
@@ -5039,8 +4974,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5039
4974
  }] });
5040
4975
 
5041
4976
  class BizyProgressBarComponent {
4977
+ #elementRef = inject(ElementRef);
5042
4978
  id = `bizy-progress-bar-${Math.random()}`;
5043
4979
  progress = null;
4980
+ getNativeElement = () => this.#elementRef?.nativeElement;
5044
4981
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5045
4982
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyProgressBarComponent, isStandalone: true, selector: "bizy-progress-bar", inputs: { id: "id", progress: "progress" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<div class=\"bizy-progress-bar\" [ngStyle]=\"{width: progress !== null ? progress + '%' : '0%'}\"></div>", styles: [":host{display:inline-block;width:100%;height:var(--bizy-progress-bar-height);background-color:var(--bizy-progress-bar-background-color);border-radius:var(--bizy-progress-bar-border-radius);overflow:hidden}.bizy-progress-bar{height:100%;width:0%;background-color:var(--bizy-progress-bar-progress-color);transition:width .5s ease-in-out}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5046
4983
  }
@@ -5072,6 +5009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5072
5009
  }] });
5073
5010
 
5074
5011
  class BizyRadioComponent {
5012
+ #elementRef = inject(ElementRef);
5075
5013
  id = `bizy-radio-${Math.random()}`;
5076
5014
  name;
5077
5015
  selected = false;
@@ -5085,6 +5023,7 @@ class BizyRadioComponent {
5085
5023
  this.selectedChange.emit(!this.selected);
5086
5024
  this.onSelect.emit(event);
5087
5025
  }
5026
+ getNativeElement = () => this.#elementRef?.nativeElement;
5088
5027
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5089
5028
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyRadioComponent, isStandalone: true, selector: "bizy-radio", inputs: { id: "id", name: "name", selected: "selected", disabled: "disabled" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, ngImport: i0, template: "<button type=\"button\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\" class=\"bizy-radio\" [ngClass]=\"{'bizy-radio--disabled': disabled}\">\n <input \n class=\"bizy-radio__input\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n type=\"radio\"\n [name]=\"name\"\n [checked]=\"selected\"/>\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <span class=\"bizy-radio__radio\"></span>\n \n <ng-content select=\"[slot=end]\"></ng-content>\n</button>\n", styles: [":host{font-size:1rem}.bizy-radio{border:none;background-color:transparent;cursor:pointer;position:relative;width:fit-content;display:flex;column-gap:.5rem;align-items:center}.bizy-radio__input{position:absolute;visibility:hidden;pointer-events:none}.bizy-radio__input:checked+.bizy-radio__radio:before{box-shadow:inset 0 0 0 .3rem var(--bizy-radio-color)}.bizy-radio__radio{display:flex;align-items:center;transition:.25s ease}.bizy-radio__radio:before{display:flex;flex-shrink:0;content:\"\";background-color:#fff;min-width:1rem;min-height:1rem;border-radius:50%;transition:.25s ease;box-shadow:inset 0 0 0 .1rem var(--bizy-radio-color)}.bizy-radio__input--disabled{opacity:.5;pointer-events:none;cursor:not-allowed!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5090
5029
  }
@@ -5122,7 +5061,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5122
5061
  }] });
5123
5062
 
5124
5063
  class BizySectionComponent {
5064
+ #elementRef = inject(ElementRef);
5125
5065
  id = `bizy-section-${Math.random()}`;
5066
+ getNativeElement = () => this.#elementRef?.nativeElement;
5126
5067
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5127
5068
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySectionComponent, isStandalone: true, selector: "bizy-section", inputs: { id: "id" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;display:flex;height:var(--bizy-section-height);width:var(--bizy-section-width);background-color:var(--bizy-section-background-color);flex-direction:var(--bizy-section-flex-direction);column-gap:var(--bizy-section-column-gap);row-gap:var(--bizy-section-row-gap);justify-content:var(--bizy-section-justify-content);align-items:var(--bizy-section-align-items);flex-wrap:var(--bizy-section-flex-wrap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5128
5069
  }
@@ -5136,7 +5077,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5136
5077
  }] } });
5137
5078
 
5138
5079
  class BizySectionStartComponent {
5080
+ #elementRef = inject(ElementRef);
5139
5081
  id = `bizy-section-start-${Math.random()}`;
5082
+ getNativeElement = () => this.#elementRef?.nativeElement;
5140
5083
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySectionStartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5141
5084
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySectionStartComponent, isStandalone: true, selector: "bizy-section-start", inputs: { id: "id" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;display:flex;flex:var(--bizy-section-start-flex);height:var(--bizy-section-start-height);width:var(--bizy-section-start-width);background-color:var(--bizy-section-start-background-color);justify-content:var(--bizy-section-start-justify-content);align-items:var(--bizy-section-start-align-items);column-gap:var(--bizy-section-start-column-gap);row-gap:var(--bizy-section-start-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5142
5085
  }
@@ -5150,7 +5093,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5150
5093
  }] } });
5151
5094
 
5152
5095
  class BizySectionCenterComponent {
5096
+ #elementRef = inject(ElementRef);
5153
5097
  id = `bizy-center-start-${Math.random()}`;
5098
+ getNativeElement = () => this.#elementRef?.nativeElement;
5154
5099
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySectionCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5155
5100
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySectionCenterComponent, isStandalone: true, selector: "bizy-section-center", inputs: { id: "id" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;display:flex;flex:var(--bizy-section-center-flex);height:var(--bizy-section-center-height);width:var(--bizy-section-center-width);background-color:var(--bizy-section-center-background-color);justify-content:var(--bizy-section-center-justify-content);align-items:var(--bizy-section-center-align-items);column-gap:var(--bizy-section-center-column-gap);row-gap:var(--bizy-section-center-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5156
5101
  }
@@ -5164,7 +5109,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5164
5109
  }] } });
5165
5110
 
5166
5111
  class BizySectionEndComponent {
5112
+ #elementRef = inject(ElementRef);
5167
5113
  id = `bizy-section-end-${Math.random()}`;
5114
+ getNativeElement = () => this.#elementRef?.nativeElement;
5168
5115
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySectionEndComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5169
5116
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySectionEndComponent, isStandalone: true, selector: "bizy-section-end", inputs: { id: "id" }, host: { properties: { "id": "id" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;display:flex;flex:var(--bizy-section-end-flex);height:var(--bizy-section-end-height);width:var(--bizy-section-end-width);background-color:var(--bizy-section-end-background-color);justify-content:var(--bizy-section-end-justify-content);align-items:var(--bizy-section-end-align-items);column-gap:var(--bizy-section-end-column-gap);row-gap:var(--bizy-section-end-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5170
5117
  }
@@ -5222,7 +5169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5222
5169
  }] });
5223
5170
 
5224
5171
  class BizySidebarOptionComponent {
5225
- ref;
5172
+ #elementRef = inject(ElementRef);
5173
+ #ref = inject(ChangeDetectorRef);
5226
5174
  options;
5227
5175
  id = `bizy-sidebar-option-${Math.random()}`;
5228
5176
  disabled = false;
@@ -5239,10 +5187,7 @@ class BizySidebarOptionComponent {
5239
5187
  const turnOn = selected && selected !== this._selected;
5240
5188
  this._turnOn$.next(turnOn);
5241
5189
  this._selected = selected;
5242
- this.ref.detectChanges();
5243
- }
5244
- constructor(ref) {
5245
- this.ref = ref;
5190
+ this.#ref.detectChanges();
5246
5191
  }
5247
5192
  _onSelect(event) {
5248
5193
  if (this.disabled || !this.selectable) {
@@ -5257,19 +5202,17 @@ class BizySidebarOptionComponent {
5257
5202
  getId = () => {
5258
5203
  return this.id;
5259
5204
  };
5205
+ getNativeElement = () => this.#elementRef?.nativeElement;
5260
5206
  getSelected = () => {
5261
5207
  return this._selected;
5262
5208
  };
5263
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5209
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5264
5210
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySidebarOptionComponent, isStandalone: true, selector: "bizy-sidebar-option", inputs: { id: "id", disabled: "disabled", selectable: "selectable", customClass: "customClass", selected: "selected" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, queries: [{ propertyName: "options", predicate: BizySidebarOptionComponent }], ngImport: i0, template: "<bizy-accordion\n class=\"{{customClass}}\"\n [id]=\"id\"\n customClass=\"bizy-sidebar-option {{_selected && (!options || options.length === 0) ? 'bizy-sidebar-option--selected' : ''}} {{!selectable ? 'bizy-sidebar-option--no-selectable' : ''}} {{disabled ? 'bizy-sidebar-option--disabled' : ''}}\"\n [opened]=\"_selected\"\n (onSelect)=\"_onSelect($event)\">\n\n <ng-content></ng-content>\n\n <ng-container accordion-option *ngIf=\"options && options.length > 0\">\n <ng-content select=\"bizy-sidebar-option\"></ng-content>\n </ng-container>\n\n</bizy-accordion>", styles: [":host{font-size:1rem;direction:ltr}:host:not(:has(.bizy-sidebar-option--disabled)) ::ng-deep .bizy-sidebar-option:hover{--bizy-accordion-background-color: var(--bizy-sidebar-option-hover-color) }::ng-deep .bizy-accordion__options{position:sticky}:host ::ng-deep .bizy-accordion__options:before{content:\"\";position:absolute;inset:0;background-color:#000;opacity:.3}::ng-deep .bizy-sidebar-option--selected{--bizy-accordion-background-color: var(--bizy-sidebar-option-selected-color) !important}::ng-deep .bizy-sidebar-option--no-selectable{pointer-events:none;cursor:default!important}::ng-deep .bizy-sidebar-option--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}::ng-deep .bizy-accordion__options--opened{max-height:100%!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BizyAccordionComponent, selector: "bizy-accordion", inputs: ["id", "customClass", "disabled", "opened"], outputs: ["openedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5265
5211
  }
5266
5212
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarOptionComponent, decorators: [{
5267
5213
  type: Component,
5268
5214
  args: [{ selector: 'bizy-sidebar-option', imports: [CommonModule, BizyAccordionComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-accordion\n class=\"{{customClass}}\"\n [id]=\"id\"\n customClass=\"bizy-sidebar-option {{_selected && (!options || options.length === 0) ? 'bizy-sidebar-option--selected' : ''}} {{!selectable ? 'bizy-sidebar-option--no-selectable' : ''}} {{disabled ? 'bizy-sidebar-option--disabled' : ''}}\"\n [opened]=\"_selected\"\n (onSelect)=\"_onSelect($event)\">\n\n <ng-content></ng-content>\n\n <ng-container accordion-option *ngIf=\"options && options.length > 0\">\n <ng-content select=\"bizy-sidebar-option\"></ng-content>\n </ng-container>\n\n</bizy-accordion>", styles: [":host{font-size:1rem;direction:ltr}:host:not(:has(.bizy-sidebar-option--disabled)) ::ng-deep .bizy-sidebar-option:hover{--bizy-accordion-background-color: var(--bizy-sidebar-option-hover-color) }::ng-deep .bizy-accordion__options{position:sticky}:host ::ng-deep .bizy-accordion__options:before{content:\"\";position:absolute;inset:0;background-color:#000;opacity:.3}::ng-deep .bizy-sidebar-option--selected{--bizy-accordion-background-color: var(--bizy-sidebar-option-selected-color) !important}::ng-deep .bizy-sidebar-option--no-selectable{pointer-events:none;cursor:default!important}::ng-deep .bizy-sidebar-option--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}::ng-deep .bizy-accordion__options--opened{max-height:100%!important}\n"] }]
5269
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
5270
- type: Inject,
5271
- args: [ChangeDetectorRef]
5272
- }] }], propDecorators: { options: [{
5215
+ }], propDecorators: { options: [{
5273
5216
  type: ContentChildren,
5274
5217
  args: [BizySidebarOptionComponent]
5275
5218
  }], id: [{
@@ -5289,7 +5232,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5289
5232
  }] } });
5290
5233
 
5291
5234
  class BizySidebarFloatingOptionComponent {
5292
- ref;
5235
+ #elementRef = inject(ElementRef);
5236
+ #ref = inject(ChangeDetectorRef);
5293
5237
  options;
5294
5238
  id = `bizy-sidebar-floating-option-${Math.random()}`;
5295
5239
  disabled = false;
@@ -5310,13 +5254,10 @@ class BizySidebarFloatingOptionComponent {
5310
5254
  this._turnOn$.next(turnOn);
5311
5255
  this._opened = turnOn;
5312
5256
  this._selected = selected;
5313
- this.ref.detectChanges();
5257
+ this.#ref.detectChanges();
5314
5258
  }
5315
5259
  #subscription = new Subscription();
5316
5260
  #optionSubscription = new Subscription();
5317
- constructor(ref) {
5318
- this.ref = ref;
5319
- }
5320
5261
  ngAfterContentInit() {
5321
5262
  if (this.options && this.options.length > 0) {
5322
5263
  this.#listenOptionChanges(this.options.toArray());
@@ -5327,12 +5268,13 @@ class BizySidebarFloatingOptionComponent {
5327
5268
  }));
5328
5269
  }
5329
5270
  }
5271
+ getNativeElement = () => this.#elementRef?.nativeElement;
5330
5272
  _onSelect(event) {
5331
5273
  if (this.disabled || !this.selectable) {
5332
5274
  return;
5333
5275
  }
5334
5276
  this._opened = !this._opened;
5335
- this.ref.detectChanges();
5277
+ this.#ref.detectChanges();
5336
5278
  this.selectedChange.emit(this._opened);
5337
5279
  this.onSelect.emit(event);
5338
5280
  }
@@ -5341,7 +5283,7 @@ class BizySidebarFloatingOptionComponent {
5341
5283
  return;
5342
5284
  }
5343
5285
  this._opened = false;
5344
- this.ref.detectChanges();
5286
+ this.#ref.detectChanges();
5345
5287
  };
5346
5288
  getId = () => {
5347
5289
  return this.id;
@@ -5355,7 +5297,7 @@ class BizySidebarFloatingOptionComponent {
5355
5297
  if (turnOn) {
5356
5298
  if (!_option.options || _option.options.length === 0) {
5357
5299
  this._opened = false;
5358
- this.ref.detectChanges();
5300
+ this.#ref.detectChanges();
5359
5301
  }
5360
5302
  this.#selectParents(this.options.toArray(), _option);
5361
5303
  }
@@ -5391,16 +5333,13 @@ class BizySidebarFloatingOptionComponent {
5391
5333
  this.#subscription.unsubscribe();
5392
5334
  this.#optionSubscription.unsubscribe();
5393
5335
  }
5394
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarFloatingOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5336
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarFloatingOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5395
5337
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySidebarFloatingOptionComponent, isStandalone: true, selector: "bizy-sidebar-floating-option", inputs: { id: "id", disabled: "disabled", selectable: "selectable", offsetX: "offsetX", offsetY: "offsetY", customClass: "customClass", selected: "selected" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, queries: [{ propertyName: "options", predicate: BizySidebarOptionComponent }], ngImport: i0, template: "<button \n type=\"button\"\n class=\"bizy-sidebar-floating-option {{customClass}}\"\n [ngClass]=\"{'bizy-sidebar-floating-option--selected': _selected, 'bizy-sidebar-floating-option--no-selectable': !selectable, 'bizy-sidebar-floating-option--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n cdkOverlayOrigin \n #bizySidebarFloatingOptionTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-sidebar-floating-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOffsetX]=\"offsetX\"\n [cdkConnectedOverlayOffsetY]=\"offsetY\"\n [cdkConnectedOverlayOrigin]=\"bizySidebarFloatingOptionTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"_opened && options && options.length > 0\">\n\n <span class=\"bizy-sidebar-floating-option__options\">\n\n <ng-content select=\"bizy-sidebar-floating-option-title\"></ng-content>\n\n <ng-content select=\"bizy-sidebar-option\"></ng-content>\n\n </span>\n\n</ng-template>", styles: [":host{font-size:1rem;direction:ltr}.bizy-sidebar-floating-option{background-color:var(--bizy-sidebar-floating-option-background-color);color:var(--bizy-sidebar-floating-option-color);border:none;display:flex;align-items:center;justify-content:center;column-gap:.5rem;padding:1rem;width:100%;cursor:pointer;border-top-left-radius:.3rem}.bizy-sidebar-floating-option:hover{background-color:var(--bizy-sidebar-option-hover-color)}.bizy-sidebar-floating-option--selected{background-color:var(--bizy-sidebar-option-selected-color)!important}.bizy-sidebar-floating-option--no-selectable{pointer-events:none;cursor:default!important}.bizy-sidebar-floating-option--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-sidebar-floating-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-sidebar-floating-option__options{background-color:var(--bizy-sidebar-floating-option-background-color);min-width:calc(100% + 2rem);max-width:calc(100vw - 2rem);border-radius:.3rem;max-height:30rem;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5396
5338
  }
5397
5339
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarFloatingOptionComponent, decorators: [{
5398
5340
  type: Component,
5399
5341
  args: [{ selector: 'bizy-sidebar-floating-option', imports: [CommonModule, OverlayModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n class=\"bizy-sidebar-floating-option {{customClass}}\"\n [ngClass]=\"{'bizy-sidebar-floating-option--selected': _selected, 'bizy-sidebar-floating-option--no-selectable': !selectable, 'bizy-sidebar-floating-option--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\"\n cdkOverlayOrigin \n #bizySidebarFloatingOptionTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-sidebar-floating-option__content\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOffsetX]=\"offsetX\"\n [cdkConnectedOverlayOffsetY]=\"offsetY\"\n [cdkConnectedOverlayOrigin]=\"bizySidebarFloatingOptionTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"_opened && options && options.length > 0\">\n\n <span class=\"bizy-sidebar-floating-option__options\">\n\n <ng-content select=\"bizy-sidebar-floating-option-title\"></ng-content>\n\n <ng-content select=\"bizy-sidebar-option\"></ng-content>\n\n </span>\n\n</ng-template>", styles: [":host{font-size:1rem;direction:ltr}.bizy-sidebar-floating-option{background-color:var(--bizy-sidebar-floating-option-background-color);color:var(--bizy-sidebar-floating-option-color);border:none;display:flex;align-items:center;justify-content:center;column-gap:.5rem;padding:1rem;width:100%;cursor:pointer;border-top-left-radius:.3rem}.bizy-sidebar-floating-option:hover{background-color:var(--bizy-sidebar-option-hover-color)}.bizy-sidebar-floating-option--selected{background-color:var(--bizy-sidebar-option-selected-color)!important}.bizy-sidebar-floating-option--no-selectable{pointer-events:none;cursor:default!important}.bizy-sidebar-floating-option--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-sidebar-floating-option__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-sidebar-floating-option__options{background-color:var(--bizy-sidebar-floating-option-background-color);min-width:calc(100% + 2rem);max-width:calc(100vw - 2rem);border-radius:.3rem;max-height:30rem;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"] }]
5400
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
5401
- type: Inject,
5402
- args: [ChangeDetectorRef]
5403
- }] }], propDecorators: { options: [{
5342
+ }], propDecorators: { options: [{
5404
5343
  type: ContentChildren,
5405
5344
  args: [BizySidebarOptionComponent]
5406
5345
  }], id: [{
@@ -5424,6 +5363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5424
5363
  }] } });
5425
5364
 
5426
5365
  class BizySidebarComponent {
5366
+ #elementRef = inject(ElementRef);
5427
5367
  id = `bizy-sidebar-${Math.random()}`;
5428
5368
  options;
5429
5369
  floatingOptions;
@@ -5527,6 +5467,7 @@ class BizySidebarComponent {
5527
5467
  this.#optionSubscription.unsubscribe();
5528
5468
  this.#floatingOptionSubscription.unsubscribe();
5529
5469
  }
5470
+ getNativeElement = () => this.#elementRef?.nativeElement;
5530
5471
  _onToggle(event) {
5531
5472
  this.toggleChange.emit(!this._toggle);
5532
5473
  this.onToggle.emit(event);
@@ -5560,8 +5501,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5560
5501
  }] } });
5561
5502
 
5562
5503
  class BizySidebarFloatingOptionTitleComponent {
5504
+ #elementRef = inject(ElementRef);
5563
5505
  id = `bizy-sidebar-floating-option-title-${Math.random()}`;
5564
5506
  customClass = '';
5507
+ getNativeElement = () => this.#elementRef?.nativeElement;
5565
5508
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySidebarFloatingOptionTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5566
5509
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySidebarFloatingOptionTitleComponent, isStandalone: true, selector: "bizy-sidebar-floating-option-title", inputs: { id: "id", customClass: "customClass" }, ngImport: i0, template: "<span class=\"bizy-sidebar-floating-option-title {{customClass}}\" [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem;background-color:var(--bizy-sidebar-floating-option-title-background-color);position:sticky;top:0;z-index:1}.bizy-sidebar-floating-option-title{background-color:inherit;color:var(--bizy-sidebar-floating-option-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-sidebar-floating-option-title-underline-color);text-underline-offset:.2rem;display:flex;align-items:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5567
5510
  }
@@ -5608,12 +5551,14 @@ var BIZY_SKELETON_SHAPE;
5608
5551
  })(BIZY_SKELETON_SHAPE || (BIZY_SKELETON_SHAPE = {}));
5609
5552
 
5610
5553
  class BizySkeletonComponent {
5554
+ #elementRef = inject(ElementRef);
5611
5555
  id = `bizy-skeleton-${Math.random()}`;
5612
5556
  shape = BIZY_SKELETON_SHAPE.SQUARE;
5613
5557
  height;
5614
5558
  width;
5615
5559
  customClass = '';
5616
5560
  BIZY_SKELETON_SHAPE = BIZY_SKELETON_SHAPE;
5561
+ getNativeElement = () => this.#elementRef?.nativeElement;
5617
5562
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizySkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5618
5563
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizySkeletonComponent, isStandalone: true, selector: "bizy-skeleton", inputs: { id: "id", shape: "shape", height: "height", width: "width", customClass: "customClass" }, host: { properties: { "id": "id", "style.width": "width", "style.min-width": "width", "style.height": "height", "style.min-height": "height", "class": "customClass", "style.border-radius": "shape === BIZY_SKELETON_SHAPE.CIRCLE ? \"50%\" : \"0\"" } }, ngImport: i0, template: "", styles: [":host{font-size:1rem;height:var(--bizy-skeleton-height);width:var(--bizy-skeleton-width);display:inline-block;background:linear-gradient(90deg,#eee 25%,#f5f5f5,#eee 75%);background-size:200% 100%;animation:bizy-skeleton-animation 1.5s infinite linear}@keyframes bizy-skeleton-animation{0%{background-position:-200% 0}to{background-position:200% 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5619
5564
  }
@@ -5657,6 +5602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5657
5602
  }] });
5658
5603
 
5659
5604
  class BizySliderComponent {
5605
+ #elementRef = inject(ElementRef);
5660
5606
  fromSlider;
5661
5607
  toSlider;
5662
5608
  minLimit = 0;
@@ -5688,6 +5634,7 @@ class BizySliderComponent {
5688
5634
  }
5689
5635
  this.onChange.emit({ min: this._min, max: this._max });
5690
5636
  }
5637
+ getNativeElement = () => this.#elementRef?.nativeElement;
5691
5638
  setToSlider(value) {
5692
5639
  if (value < this._min) {
5693
5640
  this._max = this._min;
@@ -5831,17 +5778,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5831
5778
  }] } });
5832
5779
 
5833
5780
  class BizyTableColumnComponent {
5781
+ #elementRef = inject(ElementRef);
5834
5782
  id = `bizy-table-column-${Math.random()}`;
5835
5783
  customClass = '';
5836
5784
  contextMenu = new EventEmitter();
5837
5785
  onSelect = new EventEmitter();
5838
- #elementRef = inject(ElementRef);
5839
5786
  onRightClick(event) {
5840
5787
  this.contextMenu.emit(event);
5841
5788
  }
5842
5789
  getId = () => {
5843
5790
  return this.id;
5844
5791
  };
5792
+ getNativeElement = () => this.#elementRef?.nativeElement;
5845
5793
  setMarginLeft(margin) {
5846
5794
  if (!this.#elementRef.nativeElement || !this.#elementRef.nativeElement.setMarginLeft) {
5847
5795
  return;
@@ -5868,8 +5816,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5868
5816
  }] } });
5869
5817
 
5870
5818
  class BizyTableHeaderComponent {
5871
- ref;
5872
- elementRef;
5819
+ #elementRef = inject(ElementRef);
5820
+ #ref = inject(ChangeDetectorRef);
5873
5821
  columns;
5874
5822
  id = `bizy-table-header-${Math.random()}`;
5875
5823
  customClass = '';
@@ -5878,13 +5826,10 @@ class BizyTableHeaderComponent {
5878
5826
  selectedChange = new EventEmitter();
5879
5827
  onSelect = new EventEmitter();
5880
5828
  marginRight = 0;
5881
- constructor(ref, elementRef) {
5882
- this.ref = ref;
5883
- this.elementRef = elementRef;
5884
- }
5885
5829
  getId = () => {
5886
5830
  return this.id;
5887
5831
  };
5832
+ getNativeElement = () => this.#elementRef?.nativeElement;
5888
5833
  getSelected = () => {
5889
5834
  return this.selected;
5890
5835
  };
@@ -5893,11 +5838,11 @@ class BizyTableHeaderComponent {
5893
5838
  return;
5894
5839
  }
5895
5840
  this.selectable = selectable;
5896
- this.ref.detectChanges();
5841
+ this.#ref.detectChanges();
5897
5842
  };
5898
5843
  setMarginRight(margin) {
5899
5844
  this.marginRight = margin - 5;
5900
- this.ref.detectChanges();
5845
+ this.#ref.detectChanges();
5901
5846
  }
5902
5847
  setMarginLeft(margin) {
5903
5848
  if (this.columns.length === 0) {
@@ -5905,22 +5850,16 @@ class BizyTableHeaderComponent {
5905
5850
  }
5906
5851
  this.columns.forEach(_column => {
5907
5852
  _column.setMarginLeft(margin);
5908
- this.ref.detectChanges();
5853
+ this.#ref.detectChanges();
5909
5854
  });
5910
5855
  }
5911
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableHeaderComponent, deps: [{ token: ChangeDetectorRef }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
5856
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5912
5857
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableHeaderComponent, isStandalone: true, selector: "bizy-table-header", inputs: { id: "id", customClass: "customClass", selected: "selected", selectable: "selectable" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, queries: [{ propertyName: "columns", predicate: BizyTableColumnComponent }], ngImport: i0, template: "<div \n [id]=\"id\"\n class=\"bizy-table-header {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <span \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-header__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n [selected]=\"selected\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event)\"\n [ngClass]=\"{'bizy-table-header__checkbox--hidden': selectable === false}\">\n </bizy-checkbox>\n </span>\n\n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-header{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-header-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-header-background-color)}.bizy-table-header__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-header__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-header__checkbox--hidden{pointer-events:none;visibility:hidden;opacity:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5913
5858
  }
5914
5859
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableHeaderComponent, decorators: [{
5915
5860
  type: Component,
5916
5861
  args: [{ selector: 'bizy-table-header', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n [id]=\"id\"\n class=\"bizy-table-header {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <span \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-header__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n [selected]=\"selected\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event)\"\n [ngClass]=\"{'bizy-table-header__checkbox--hidden': selectable === false}\">\n </bizy-checkbox>\n </span>\n\n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-header{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-header-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-header-background-color)}.bizy-table-header__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-header__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-header__checkbox--hidden{pointer-events:none;visibility:hidden;opacity:0}\n"] }]
5917
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
5918
- type: Inject,
5919
- args: [ChangeDetectorRef]
5920
- }] }, { type: i0.ElementRef, decorators: [{
5921
- type: Inject,
5922
- args: [ElementRef]
5923
- }] }], propDecorators: { columns: [{
5862
+ }], propDecorators: { columns: [{
5924
5863
  type: ContentChildren,
5925
5864
  args: [BizyTableColumnComponent]
5926
5865
  }], id: [{
@@ -5938,27 +5877,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5938
5877
  }] } });
5939
5878
 
5940
5879
  class BizyTableFooterComponent {
5941
- ref;
5942
- elementRef;
5880
+ #elementRef = inject(ElementRef);
5881
+ #ref = inject(ChangeDetectorRef);
5943
5882
  columns;
5944
5883
  id = `bizy-table-footer-${Math.random()}`;
5945
5884
  customClass = '';
5946
5885
  marginRight = 0;
5947
5886
  _selectable = false;
5948
- constructor(ref, elementRef) {
5949
- this.ref = ref;
5950
- this.elementRef = elementRef;
5951
- }
5952
5887
  getId = () => {
5953
5888
  return this.id;
5954
5889
  };
5955
5890
  setSelectable = (selectable) => {
5956
5891
  this._selectable = selectable;
5957
- this.ref.detectChanges();
5892
+ this.#ref.detectChanges();
5958
5893
  };
5894
+ getNativeElement = () => this.#elementRef?.nativeElement;
5959
5895
  setMarginRight(margin) {
5960
5896
  this.marginRight = margin - 5;
5961
- this.ref.detectChanges();
5897
+ this.#ref.detectChanges();
5962
5898
  }
5963
5899
  setMarginLeft(margin) {
5964
5900
  if (this.columns.length === 0) {
@@ -5966,22 +5902,16 @@ class BizyTableFooterComponent {
5966
5902
  }
5967
5903
  this.columns.forEach(_column => {
5968
5904
  _column.setMarginLeft(margin);
5969
- this.ref.detectChanges();
5905
+ this.#ref.detectChanges();
5970
5906
  });
5971
5907
  }
5972
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableFooterComponent, deps: [{ token: ChangeDetectorRef }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
5908
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5973
5909
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableFooterComponent, isStandalone: true, selector: "bizy-table-footer", inputs: { id: "id", customClass: "customClass" }, queries: [{ propertyName: "columns", predicate: BizyTableColumnComponent }], ngImport: i0, template: "<div \n [id]=\"id\"\n class=\"bizy-table-footer {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n\n <span \n *ngIf=\"_selectable\"\n class=\"bizy-table-footer__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n class=\"bizy-table-footer__checkbox\">\n </bizy-checkbox>\n </span>\n \n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-footer{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-footer-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-footer-background-color)}.bizy-table-footer__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-footer__checkbox{visibility:hidden;pointer-events:none;opacity:0}.bizy-table-footer__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5974
5910
  }
5975
5911
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableFooterComponent, decorators: [{
5976
5912
  type: Component,
5977
5913
  args: [{ selector: 'bizy-table-footer', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n [id]=\"id\"\n class=\"bizy-table-footer {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n\n <span \n *ngIf=\"_selectable\"\n class=\"bizy-table-footer__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n class=\"bizy-table-footer__checkbox\">\n </bizy-checkbox>\n </span>\n \n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-footer{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-footer-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-footer-background-color)}.bizy-table-footer__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-footer__checkbox{visibility:hidden;pointer-events:none;opacity:0}.bizy-table-footer__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}\n"] }]
5978
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
5979
- type: Inject,
5980
- args: [ChangeDetectorRef]
5981
- }] }, { type: i0.ElementRef, decorators: [{
5982
- type: Inject,
5983
- args: [ElementRef]
5984
- }] }], propDecorators: { columns: [{
5914
+ }], propDecorators: { columns: [{
5985
5915
  type: ContentChildren,
5986
5916
  args: [BizyTableColumnComponent]
5987
5917
  }], id: [{
@@ -5991,7 +5921,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
5991
5921
  }] } });
5992
5922
 
5993
5923
  class BizyTableRowComponent {
5994
- ref;
5924
+ #elementRef = inject(ElementRef);
5925
+ #ref = inject(ChangeDetectorRef);
5995
5926
  columns;
5996
5927
  id = `bizy-table-row-${Math.random()}`;
5997
5928
  customClass = '';
@@ -6004,9 +5935,7 @@ class BizyTableRowComponent {
6004
5935
  openedChange = new EventEmitter();
6005
5936
  onOpen = new EventEmitter();
6006
5937
  marginRight = 0;
6007
- constructor(ref) {
6008
- this.ref = ref;
6009
- }
5938
+ getNativeElement = () => this.#elementRef?.nativeElement;
6010
5939
  _onOpen(event) {
6011
5940
  if (this.disabled) {
6012
5941
  return;
@@ -6025,7 +5954,7 @@ class BizyTableRowComponent {
6025
5954
  return;
6026
5955
  }
6027
5956
  this.selectable = selectable;
6028
- this.ref.detectChanges();
5957
+ this.#ref.detectChanges();
6029
5958
  };
6030
5959
  setSelected = (selected) => {
6031
5960
  if (this.selectable === false) {
@@ -6033,11 +5962,11 @@ class BizyTableRowComponent {
6033
5962
  }
6034
5963
  this.selected = selected;
6035
5964
  this.selectedChange.emit(selected);
6036
- this.ref.detectChanges();
5965
+ this.#ref.detectChanges();
6037
5966
  };
6038
5967
  setMarginRight(margin) {
6039
5968
  this.marginRight = margin - 5;
6040
- this.ref.detectChanges();
5969
+ this.#ref.detectChanges();
6041
5970
  }
6042
5971
  setMarginLeft(margin) {
6043
5972
  if (this.columns.length === 0) {
@@ -6045,19 +5974,16 @@ class BizyTableRowComponent {
6045
5974
  }
6046
5975
  this.columns.forEach(_column => {
6047
5976
  _column.setMarginLeft(margin);
6048
- this.ref.detectChanges();
5977
+ this.#ref.detectChanges();
6049
5978
  });
6050
5979
  }
6051
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableRowComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5980
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6052
5981
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableRowComponent, isStandalone: true, selector: "bizy-table-row", inputs: { id: "id", customClass: "customClass", disabled: "disabled", selected: "selected", opened: "opened", selectable: "selectable" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect", openedChange: "openedChange", onOpen: "onOpen" }, queries: [{ propertyName: "columns", predicate: BizyTableColumnComponent }], ngImport: i0, template: "<bizy-accordion \n class=\"bizy-table-row__accordion\"\n customClass=\"bizy-table-row__accordion {{disabled ? 'bizy-table-row--disabled' : ''}} {{selected ? 'bizy-table-row--selected' : ''}} {{opened ? 'bizy-table-row--opened' : ''}}\"\n [(opened)]=\"opened\"\n (onSelect)=\"_onOpen($event)\">\n\n <button\n type=\"button\"\n [id]=\"id\"\n class=\"bizy-table-row {{customClass}}\"\n (click)=\"selectedChange.emit(!selected)\"\n (keyup.enter)=\"selectedChange.emit(!selected)\"\n [ngClass]=\"{'bizy-table-row--disabled': disabled, 'bizy-table-row--selected': selected}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <bizy-checkbox \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-row__checkbox\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-row__checkbox--hidden': selectable === false, 'bizy-table-row__checkbox--shadow': marginRight > 0}\"\n [selected]=\"selected\"\n [disabled]=\"disabled\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event); $event.stopPropagation()\">\n </bizy-checkbox>\n \n </button>\n\n <ng-content accordion-option select=\"bizy-table-row-expand-content\"></ng-content>\n\n</bizy-accordion>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-background-color);display:flex;min-width:fit-content;margin-bottom:.1rem}:host:not(:has(.bizy-table-row--selected)) ::ng-deep .bizy-table-row__accordion:hover ::ng-deep .bizy-table-row:before{opacity:1}::ng-deep .bizy-table-row__accordion{padding:0!important;--bizy-accordion-background-color: var(--bizy-table-row-background-color);--bizy-accordion-padding-left: 0}::ng-deep .bizy-table-row__accordion .bizy-accordion__options{--bizy-accordion-padding-left: 0}.bizy-table-row{font-size:1rem;width:100%;display:flex;align-items:center;padding:0 .3rem;height:fit-content;border:none;min-height:var(--bizy-table-row-height);background-color:inherit;border-bottom:inherit}::ng-deep .bizy-table-row:before{content:\"\";position:absolute;inset:0;background-color:var(--bizy-table-row-hover-background-color);opacity:0;pointer-events:none;z-index:1}.bizy-table-row--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}::ng-deep .bizy-table-row--selected{background-color:var(--bizy-table-row-selected-background-color)!important}:host(:has(bizy-table-row-expand-content)) ::ng-deep .bizy-table-row--opened{background-color:var(--bizy-table-row-opened-background-color)!important}::ng-deep .bizy-table-row--selected *{font-weight:700!important;color:var(--bizy-table-row-selected-color)!important}.bizy-table-row__checkbox{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;min-height:var(--bizy-table-row-height);height:100%}.bizy-table-row__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-row__checkbox--hidden{visibility:hidden;pointer-events:none}::ng-deep .bizy-table-row:first-child{padding-left:.3rem}::ng-deep .bizy-table-row:last-child{padding-right:.3rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: BizyAccordionComponent, selector: "bizy-accordion", inputs: ["id", "customClass", "disabled", "opened"], outputs: ["openedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6053
5982
  }
6054
5983
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableRowComponent, decorators: [{
6055
5984
  type: Component,
6056
5985
  args: [{ selector: 'bizy-table-row', imports: [CommonModule, BizyAccordionComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-accordion \n class=\"bizy-table-row__accordion\"\n customClass=\"bizy-table-row__accordion {{disabled ? 'bizy-table-row--disabled' : ''}} {{selected ? 'bizy-table-row--selected' : ''}} {{opened ? 'bizy-table-row--opened' : ''}}\"\n [(opened)]=\"opened\"\n (onSelect)=\"_onOpen($event)\">\n\n <button\n type=\"button\"\n [id]=\"id\"\n class=\"bizy-table-row {{customClass}}\"\n (click)=\"selectedChange.emit(!selected)\"\n (keyup.enter)=\"selectedChange.emit(!selected)\"\n [ngClass]=\"{'bizy-table-row--disabled': disabled, 'bizy-table-row--selected': selected}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <bizy-checkbox \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-row__checkbox\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-row__checkbox--hidden': selectable === false, 'bizy-table-row__checkbox--shadow': marginRight > 0}\"\n [selected]=\"selected\"\n [disabled]=\"disabled\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event); $event.stopPropagation()\">\n </bizy-checkbox>\n \n </button>\n\n <ng-content accordion-option select=\"bizy-table-row-expand-content\"></ng-content>\n\n</bizy-accordion>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-background-color);display:flex;min-width:fit-content;margin-bottom:.1rem}:host:not(:has(.bizy-table-row--selected)) ::ng-deep .bizy-table-row__accordion:hover ::ng-deep .bizy-table-row:before{opacity:1}::ng-deep .bizy-table-row__accordion{padding:0!important;--bizy-accordion-background-color: var(--bizy-table-row-background-color);--bizy-accordion-padding-left: 0}::ng-deep .bizy-table-row__accordion .bizy-accordion__options{--bizy-accordion-padding-left: 0}.bizy-table-row{font-size:1rem;width:100%;display:flex;align-items:center;padding:0 .3rem;height:fit-content;border:none;min-height:var(--bizy-table-row-height);background-color:inherit;border-bottom:inherit}::ng-deep .bizy-table-row:before{content:\"\";position:absolute;inset:0;background-color:var(--bizy-table-row-hover-background-color);opacity:0;pointer-events:none;z-index:1}.bizy-table-row--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}::ng-deep .bizy-table-row--selected{background-color:var(--bizy-table-row-selected-background-color)!important}:host(:has(bizy-table-row-expand-content)) ::ng-deep .bizy-table-row--opened{background-color:var(--bizy-table-row-opened-background-color)!important}::ng-deep .bizy-table-row--selected *{font-weight:700!important;color:var(--bizy-table-row-selected-color)!important}.bizy-table-row__checkbox{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;min-height:var(--bizy-table-row-height);height:100%}.bizy-table-row__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-row__checkbox--hidden{visibility:hidden;pointer-events:none}::ng-deep .bizy-table-row:first-child{padding-left:.3rem}::ng-deep .bizy-table-row:last-child{padding-right:.3rem}\n"] }]
6057
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
6058
- type: Inject,
6059
- args: [ChangeDetectorRef]
6060
- }] }], propDecorators: { columns: [{
5986
+ }], propDecorators: { columns: [{
6061
5987
  type: ContentChildren,
6062
5988
  args: [BizyTableColumnComponent]
6063
5989
  }], id: [{
@@ -6085,9 +6011,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6085
6011
  // FIX: This components fixes the bug with Angular CDK virtual scrolling not supporting content projection.
6086
6012
  // https://github.com/angular/components/issues/15277
6087
6013
  class BizyTableScrollingComponent {
6088
- document;
6089
- elementRef;
6090
- ref;
6014
+ #elementRef = inject(ElementRef);
6015
+ #document = inject(DOCUMENT);
6016
+ #ref = inject(ChangeDetectorRef);
6091
6017
  viewport;
6092
6018
  content;
6093
6019
  #view;
@@ -6096,19 +6022,14 @@ class BizyTableScrollingComponent {
6096
6022
  itemSize;
6097
6023
  #subscription = new Subscription();
6098
6024
  #scrollTop = 0;
6099
- constructor(document, elementRef, ref) {
6100
- this.document = document;
6101
- this.elementRef = elementRef;
6102
- this.ref = ref;
6103
- }
6104
6025
  /** Called by the virtual-for directive inside of the viewport. */
6105
6026
  attachView(tableDirective) {
6106
6027
  if (this.#view) {
6107
6028
  return;
6108
6029
  }
6109
6030
  let itemSize = 30;
6110
- const rowHeight = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-table-row-height');
6111
- const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
6031
+ const rowHeight = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-table-row-height');
6032
+ const fontSize = getComputedStyle(this.#document.documentElement).getPropertyValue('font-size');
6112
6033
  const gap = Number(fontSize.split('px')[0]) * 0.1;
6113
6034
  if (rowHeight && rowHeight.includes('rem')) {
6114
6035
  itemSize = Number(fontSize.split('px')[0]) * Number(rowHeight.split('rem')[0]);
@@ -6121,36 +6042,28 @@ class BizyTableScrollingComponent {
6121
6042
  this.itemTemplate = tableDirective.template;
6122
6043
  this.#view = tableDirective.viewContainerRef;
6123
6044
  this.#view.createEmbeddedView(this.content);
6124
- this.ref.detectChanges();
6125
- this.#subscription.add(fromEvent(this.elementRef.nativeElement, 'scroll', { capture: true }).pipe(debounceTime$1(100)).subscribe(() => {
6045
+ this.#ref.detectChanges();
6046
+ this.#subscription.add(fromEvent(this.#elementRef.nativeElement, 'scroll', { capture: true }).pipe(debounceTime$1(100)).subscribe(() => {
6126
6047
  this.#scrollTop = this.viewport.measureScrollOffset();
6127
6048
  }));
6128
6049
  this.#subscription.add(this.items$.pipe(skip(1)).subscribe(() => {
6129
6050
  if (this.viewport) {
6130
6051
  this.viewport.scrollToOffset(this.#scrollTop);
6131
- this.ref.detectChanges();
6052
+ this.#ref.detectChanges();
6132
6053
  }
6133
6054
  }));
6134
6055
  }
6056
+ getNativeElement = () => this.#elementRef?.nativeElement;
6135
6057
  ngOnDestroy() {
6136
6058
  this.#subscription.unsubscribe();
6137
6059
  }
6138
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableScrollingComponent, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6060
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableScrollingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6139
6061
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableScrollingComponent, isStandalone: true, selector: "bizy-table-scrolling", viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "content", first: true, predicate: ["tableScrollingContent"], descendants: true }], ngImport: i0, template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$2.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$2.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$2.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }] });
6140
6062
  }
6141
6063
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableScrollingComponent, decorators: [{
6142
6064
  type: Component,
6143
6065
  args: [{ selector: 'bizy-table-scrolling', imports: [CommonModule, ScrollingModule], template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"] }]
6144
- }], ctorParameters: () => [{ type: Document, decorators: [{
6145
- type: Inject,
6146
- args: [DOCUMENT]
6147
- }] }, { type: i0.ElementRef, decorators: [{
6148
- type: Inject,
6149
- args: [ElementRef]
6150
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
6151
- type: Inject,
6152
- args: [ChangeDetectorRef]
6153
- }] }], propDecorators: { viewport: [{
6066
+ }], propDecorators: { viewport: [{
6154
6067
  type: ViewChild,
6155
6068
  args: [CdkVirtualScrollViewport]
6156
6069
  }], content: [{
@@ -6159,10 +6072,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6159
6072
  }] } });
6160
6073
 
6161
6074
  class BizyTableComponent {
6162
- ref;
6163
- document;
6164
- renderer;
6165
- elementRef;
6075
+ #elementRef = inject(ElementRef);
6076
+ #document = inject(DOCUMENT);
6077
+ #ref = inject(ChangeDetectorRef);
6078
+ #renderer = inject(Renderer2);
6166
6079
  viewport;
6167
6080
  virtualFor;
6168
6081
  rows;
@@ -6193,44 +6106,38 @@ class BizyTableComponent {
6193
6106
  this.footers.forEach(_footer => {
6194
6107
  _footer.setSelectable(selectable);
6195
6108
  });
6196
- this.ref.detectChanges();
6109
+ this.#ref.detectChanges();
6197
6110
  });
6198
- this.#selectableMutationObserver.observe(this.document.body, { childList: true, subtree: true });
6111
+ this.#selectableMutationObserver.observe(this.#document.body, { childList: true, subtree: true });
6199
6112
  }
6200
6113
  ;
6201
- constructor(ref, document, renderer, elementRef) {
6202
- this.ref = ref;
6203
- this.document = document;
6204
- this.renderer = renderer;
6205
- this.elementRef = elementRef;
6206
- }
6207
6114
  ngAfterContentInit() {
6208
6115
  this.#rowScrollingMutationObserver = new MutationObserver(() => {
6209
6116
  if (!this.virtualFor || !this.viewport) {
6210
6117
  return;
6211
6118
  }
6212
- if (this.elementRef.nativeElement.offsetHeight) {
6213
- const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
6119
+ if (this.#elementRef.nativeElement.offsetHeight) {
6120
+ const fontSize = getComputedStyle(this.#document.documentElement).getPropertyValue('font-size');
6214
6121
  const gap = Number(fontSize.split('px')[0]) * 0.3;
6215
6122
  let headersHeight = 0;
6216
6123
  this.headers.forEach(_header => {
6217
- headersHeight += _header.elementRef.nativeElement.offsetHeight + gap;
6124
+ headersHeight += _header.getNativeElement().offsetHeight + gap;
6218
6125
  });
6219
6126
  let footersHeight = 0;
6220
6127
  this.footers.forEach(_footer => {
6221
- footersHeight += _footer.elementRef.nativeElement.offsetHeight + gap;
6128
+ footersHeight += _footer.getNativeElement().offsetHeight + gap;
6222
6129
  });
6223
- this.renderer.setStyle(this.viewport.elementRef.nativeElement, 'height', `${this.elementRef.nativeElement.offsetHeight - headersHeight - footersHeight}px`);
6130
+ this.#renderer.setStyle(this.viewport.getNativeElement(), 'height', `${this.#elementRef.nativeElement.offsetHeight - headersHeight - footersHeight}px`);
6224
6131
  }
6225
6132
  this.viewport.attachView(this.virtualFor);
6226
6133
  this.#rowScrollingMutationObserver.disconnect();
6227
- this.ref.detectChanges();
6134
+ this.#ref.detectChanges();
6228
6135
  this.#afterContentInitObserver = new MutationObserver(() => {
6229
- if (!this.elementRef.nativeElement.offsetWidth) {
6136
+ if (!this.#elementRef.nativeElement.offsetWidth) {
6230
6137
  return;
6231
6138
  }
6232
- this.marginRight = this.elementRef.nativeElement.scrollWidth ? (this.elementRef.nativeElement.scrollWidth - this.elementRef.nativeElement.offsetWidth) - this.elementRef.nativeElement.scrollLeft : 0;
6233
- this.marginLeft = this.elementRef.nativeElement.scrollLeft;
6139
+ this.marginRight = this.#elementRef.nativeElement.scrollWidth ? (this.#elementRef.nativeElement.scrollWidth - this.#elementRef.nativeElement.offsetWidth) - this.#elementRef.nativeElement.scrollLeft : 0;
6140
+ this.marginLeft = this.#elementRef.nativeElement.scrollLeft;
6234
6141
  this.rows.forEach(_row => {
6235
6142
  _row.setMarginRight(this.marginRight);
6236
6143
  _row.setMarginLeft(this.marginLeft);
@@ -6243,9 +6150,9 @@ class BizyTableComponent {
6243
6150
  _footer.setMarginRight(this.marginRight);
6244
6151
  _footer.setMarginLeft(this.marginLeft);
6245
6152
  });
6246
- this.#subscription.add(fromEvent(this.elementRef.nativeElement, 'scroll', { capture: true }).subscribe(() => {
6247
- this.marginRight = this.elementRef.nativeElement.scrollWidth ? (this.elementRef.nativeElement.scrollWidth - this.elementRef.nativeElement.offsetWidth) - this.elementRef.nativeElement.scrollLeft : 0;
6248
- this.marginLeft = this.elementRef.nativeElement.scrollLeft;
6153
+ this.#subscription.add(fromEvent(this.#elementRef.nativeElement, 'scroll', { capture: true }).subscribe(() => {
6154
+ this.marginRight = this.#elementRef.nativeElement.scrollWidth ? (this.#elementRef.nativeElement.scrollWidth - this.#elementRef.nativeElement.offsetWidth) - this.#elementRef.nativeElement.scrollLeft : 0;
6155
+ this.marginLeft = this.#elementRef.nativeElement.scrollLeft;
6249
6156
  this.rows.forEach(_row => {
6250
6157
  _row.setMarginRight(this.marginRight);
6251
6158
  _row.setMarginLeft(this.marginLeft);
@@ -6260,30 +6167,30 @@ class BizyTableComponent {
6260
6167
  });
6261
6168
  }));
6262
6169
  this.#afterContentInitObserver.disconnect();
6263
- this.ref.detectChanges();
6170
+ this.#ref.detectChanges();
6264
6171
  });
6265
- this.#afterContentInitObserver.observe(this.document.body, { childList: true, subtree: true });
6172
+ this.#afterContentInitObserver.observe(this.#document.body, { childList: true, subtree: true });
6266
6173
  });
6267
- this.#rowScrollingMutationObserver.observe(this.document.body, { childList: true, subtree: true });
6174
+ this.#rowScrollingMutationObserver.observe(this.#document.body, { childList: true, subtree: true });
6268
6175
  this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
6269
- const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
6176
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
6270
6177
  this.#resizeObserver.observe(resizeRef);
6271
6178
  this.#subscription.add(this.notifier$.pipe(skip(1), debounceTime$1(200)).subscribe(() => {
6272
- if (this.viewport && this.elementRef.nativeElement.offsetHeight) {
6273
- const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
6179
+ if (this.viewport && this.#elementRef.nativeElement.offsetHeight) {
6180
+ const fontSize = getComputedStyle(this.#document.documentElement).getPropertyValue('font-size');
6274
6181
  const gap = Number(fontSize.split('px')[0]) * 0.3;
6275
6182
  let headersHeight = 0;
6276
6183
  this.headers.forEach(_header => {
6277
- headersHeight += _header.elementRef.nativeElement.offsetHeight + gap;
6184
+ headersHeight += _header.getNativeElement().offsetHeight + gap;
6278
6185
  });
6279
6186
  let footersHeight = 0;
6280
6187
  this.footers.forEach(_footer => {
6281
- footersHeight += _footer.elementRef.nativeElement.offsetHeight + gap;
6188
+ footersHeight += _footer.getNativeElement().offsetHeight + gap;
6282
6189
  });
6283
- this.renderer.setStyle(this.viewport.elementRef.nativeElement, 'height', `${this.elementRef.nativeElement.offsetHeight - headersHeight - footersHeight}px`);
6190
+ this.#renderer.setStyle(this.viewport.getNativeElement(), 'height', `${this.#elementRef.nativeElement.offsetHeight - headersHeight - footersHeight}px`);
6284
6191
  }
6285
- this.marginRight = this.elementRef.nativeElement.scrollWidth ? (this.elementRef.nativeElement.scrollWidth - this.elementRef.nativeElement.offsetWidth) - this.elementRef.nativeElement.scrollLeft : 0;
6286
- this.marginLeft = this.elementRef.nativeElement.scrollLeft;
6192
+ this.marginRight = this.#elementRef.nativeElement.scrollWidth ? (this.#elementRef.nativeElement.scrollWidth - this.#elementRef.nativeElement.offsetWidth) - this.#elementRef.nativeElement.scrollLeft : 0;
6193
+ this.marginLeft = this.#elementRef.nativeElement.scrollLeft;
6287
6194
  this.rows.forEach(_row => {
6288
6195
  _row.setMarginRight(this.marginRight);
6289
6196
  _row.setMarginLeft(this.marginLeft);
@@ -6314,7 +6221,8 @@ class BizyTableComponent {
6314
6221
  this.#resizeObserver.disconnect();
6315
6222
  }
6316
6223
  }
6317
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableComponent, deps: [{ token: ChangeDetectorRef }, { token: DOCUMENT }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6224
+ getNativeElement = () => this.#elementRef?.nativeElement;
6225
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6318
6226
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableComponent, isStandalone: true, selector: "bizy-table", inputs: { resizeRef: "resizeRef", selectable: "selectable" }, queries: [{ propertyName: "virtualFor", first: true, predicate: BizyTableScrollingDirective, descendants: true }, { propertyName: "rows", predicate: BizyTableRowComponent }, { propertyName: "headers", predicate: BizyTableHeaderComponent }, { propertyName: "footers", predicate: BizyTableFooterComponent }], viewQueries: [{ propertyName: "viewport", first: true, predicate: BizyTableScrollingComponent, descendants: true }], ngImport: i0, template: "<div class=\"bizy-table\">\n\n <ng-content select=\"bizy-table-header\"></ng-content>\n\n <bizy-table-scrolling class=\"bizy-table__rows\">\n\n <ng-content select=\"bizy-table-row\"></ng-content>\n\n </bizy-table-scrolling>\n\n <ng-content select=\"bizy-table-footer\"></ng-content>\n\n</div>", styles: [":host{display:inline-block!important;min-height:var(--bizy-table-min-height);max-height:var(--bizy-table-max-height);height:var(--bizy-table-height);width:var(--bizy-table-width);flex:1;overflow-x:auto;overflow-y:hidden}.bizy-table{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-table-background-color)}.bizy-table__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: BizyTableScrollingComponent, selector: "bizy-table-scrolling" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6319
6227
  }
6320
6228
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableComponent, decorators: [{
@@ -6324,19 +6232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6324
6232
  ScrollingModule,
6325
6233
  BizyTableScrollingComponent
6326
6234
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-table\">\n\n <ng-content select=\"bizy-table-header\"></ng-content>\n\n <bizy-table-scrolling class=\"bizy-table__rows\">\n\n <ng-content select=\"bizy-table-row\"></ng-content>\n\n </bizy-table-scrolling>\n\n <ng-content select=\"bizy-table-footer\"></ng-content>\n\n</div>", styles: [":host{display:inline-block!important;min-height:var(--bizy-table-min-height);max-height:var(--bizy-table-max-height);height:var(--bizy-table-height);width:var(--bizy-table-width);flex:1;overflow-x:auto;overflow-y:hidden}.bizy-table{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-table-background-color)}.bizy-table__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}\n"] }]
6327
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
6328
- type: Inject,
6329
- args: [ChangeDetectorRef]
6330
- }] }, { type: Document, decorators: [{
6331
- type: Inject,
6332
- args: [DOCUMENT]
6333
- }] }, { type: i0.Renderer2, decorators: [{
6334
- type: Inject,
6335
- args: [Renderer2]
6336
- }] }, { type: i0.ElementRef, decorators: [{
6337
- type: Inject,
6338
- args: [ElementRef]
6339
- }] }], propDecorators: { viewport: [{
6235
+ }], propDecorators: { viewport: [{
6340
6236
  type: ViewChild,
6341
6237
  args: [BizyTableScrollingComponent]
6342
6238
  }], virtualFor: [{
@@ -6358,9 +6254,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6358
6254
  }] } });
6359
6255
 
6360
6256
  class BizyTableColumnArrowsComponent {
6257
+ #elementRef = inject(ElementRef);
6361
6258
  order = null;
6362
6259
  show = false;
6363
6260
  customClass = '';
6261
+ getNativeElement = () => this.#elementRef?.nativeElement;
6364
6262
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableColumnArrowsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6365
6263
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableColumnArrowsComponent, isStandalone: true, selector: "bizy-table-column-arrows", inputs: { order: "order", show: "show", customClass: "customClass" }, ngImport: i0, template: "<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n *ngIf=\"order !== 'asc' && order !== 'desc'\"\n name=\"bizy-table-column-arrows\"\n class=\"bizy-table-column-arrows bizy-table-column-arrows__down-up animated fade-in {{customClass}}\">\n <path d=\"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z\"/>\n</svg>\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'desc'\"\n name=\"bizy-table-column-down-arrow\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\">\n <path d=\"M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z\"/>\n</svg>\n\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'asc'\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\"\n name=\"bizy-table-column-up-arrow\">\n <path d=\"M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z\"/>\n</svg>\n", styles: [":host{font-size:1rem}.bizy-table-column-arrows__down-up{transform:rotate(90deg)}.bizy-table-column-arrows{display:none;font-size:1rem;height:1rem;fill:var(--bizy-table-column-arrows-color)}.bizy-table-column-arrows--visible{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6366
6264
  }
@@ -6376,6 +6274,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6376
6274
  }] } });
6377
6275
 
6378
6276
  class BizyTableRowExpandContentComponent {
6277
+ #elementRef = inject(ElementRef);
6278
+ getNativeElement = () => this.#elementRef?.nativeElement;
6379
6279
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTableRowExpandContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6380
6280
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTableRowExpandContentComponent, isStandalone: true, selector: "bizy-table-row-expand-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-expand-content-background-color);border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;padding:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6381
6281
  }
@@ -6434,7 +6334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6434
6334
  }] });
6435
6335
 
6436
6336
  class BizyTabComponent {
6437
- elementRef;
6337
+ #elementRef = inject(ElementRef);
6438
6338
  id = `bizy-tab-${Math.random()}`;
6439
6339
  disabled = false;
6440
6340
  selected = false;
@@ -6442,9 +6342,6 @@ class BizyTabComponent {
6442
6342
  customClass;
6443
6343
  selectedChange = new EventEmitter();
6444
6344
  onSelect = new EventEmitter();
6445
- constructor(elementRef) {
6446
- this.elementRef = elementRef;
6447
- }
6448
6345
  _onSelect(event) {
6449
6346
  if (this.disabled) {
6450
6347
  return;
@@ -6452,16 +6349,14 @@ class BizyTabComponent {
6452
6349
  this.selectedChange.emit(true);
6453
6350
  this.onSelect.emit(event);
6454
6351
  }
6455
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabComponent, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6352
+ getNativeElement = () => this.#elementRef?.nativeElement;
6353
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6456
6354
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTabComponent, isStandalone: true, selector: "bizy-tab", inputs: { id: "id", disabled: "disabled", selected: "selected", linePosition: "linePosition", customClass: "customClass" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, ngImport: i0, template: "<span class=\"bizy-tab__selected-line\" *ngIf=\"linePosition === 'top'\" [ngClass]=\"{'bizy-tab__selected-line--visible': selected}\"></span>\n\n<button \n type=\"button\"\n [id]=\"id\"\n [ngClass]=\"{'bizy-tab--selected': selected, 'bizy-tab--disabled': disabled}\"\n class=\"bizy-tab {{customClass}}\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content></ng-content>\n\n</button>\n\n<span class=\"bizy-tab__selected-line\" *ngIf=\"linePosition === 'bottom'\" [ngClass]=\"{'bizy-tab__selected-line--visible': selected}\"></span>\n", styles: [":host{font-size:1rem;height:100%;flex:var(--bizy-tab-flex);overflow:hidden;display:flex;flex-direction:column}.bizy-tab{width:100%;height:100%;min-width:fit-content;display:flex;flex-direction:column;row-gap:var(--bizy-tab-row-gap);align-items:center;text-wrap:nowrap;border-top:var(--bizy-tab-border-top);border-right:var(--bizy-tab-border-right);border-bottom:var(--bizy-tab-border-bottom);border-left:var(--bizy-tab-border-left);border-radius:var(--bizy-tab-border-radius);padding:var(--bizy-tab-padding);background-color:var(--bizy-tab-background-color);color:var(--bizy-tab-color);cursor:pointer}::ng-deep .bizy-tab *{color:var(--bizy-tab-color);background-color:var(--bizy-tab-background-color)}.bizy-tab--selected{color:var(--bizy-tab-selected-color);background-color:var(--bizy-tab-selected-background-color)}::ng-deep .bizy-tab--selected *{color:var(--bizy-tab-selected-color);background-color:var(--bizy-tab-selected-background-color)}.bizy-tab--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.bizy-tab__selected-line{width:100%;height:var(--bizy-tab-selected-bar-height);visibility:hidden;pointer-events:none;background-color:var(--bizy-tab-selected-bar-color)}.bizy-tab__selected-line--visible{visibility:visible;animation-name:zoomIn;animation-duration:.2s;animation-fill-mode:both}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6457
6355
  }
6458
6356
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabComponent, decorators: [{
6459
6357
  type: Component,
6460
6358
  args: [{ selector: 'bizy-tab', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"bizy-tab__selected-line\" *ngIf=\"linePosition === 'top'\" [ngClass]=\"{'bizy-tab__selected-line--visible': selected}\"></span>\n\n<button \n type=\"button\"\n [id]=\"id\"\n [ngClass]=\"{'bizy-tab--selected': selected, 'bizy-tab--disabled': disabled}\"\n class=\"bizy-tab {{customClass}}\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content></ng-content>\n\n</button>\n\n<span class=\"bizy-tab__selected-line\" *ngIf=\"linePosition === 'bottom'\" [ngClass]=\"{'bizy-tab__selected-line--visible': selected}\"></span>\n", styles: [":host{font-size:1rem;height:100%;flex:var(--bizy-tab-flex);overflow:hidden;display:flex;flex-direction:column}.bizy-tab{width:100%;height:100%;min-width:fit-content;display:flex;flex-direction:column;row-gap:var(--bizy-tab-row-gap);align-items:center;text-wrap:nowrap;border-top:var(--bizy-tab-border-top);border-right:var(--bizy-tab-border-right);border-bottom:var(--bizy-tab-border-bottom);border-left:var(--bizy-tab-border-left);border-radius:var(--bizy-tab-border-radius);padding:var(--bizy-tab-padding);background-color:var(--bizy-tab-background-color);color:var(--bizy-tab-color);cursor:pointer}::ng-deep .bizy-tab *{color:var(--bizy-tab-color);background-color:var(--bizy-tab-background-color)}.bizy-tab--selected{color:var(--bizy-tab-selected-color);background-color:var(--bizy-tab-selected-background-color)}::ng-deep .bizy-tab--selected *{color:var(--bizy-tab-selected-color);background-color:var(--bizy-tab-selected-background-color)}.bizy-tab--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.bizy-tab__selected-line{width:100%;height:var(--bizy-tab-selected-bar-height);visibility:hidden;pointer-events:none;background-color:var(--bizy-tab-selected-bar-color)}.bizy-tab__selected-line--visible{visibility:visible;animation-name:zoomIn;animation-duration:.2s;animation-fill-mode:both}\n"] }]
6461
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
6462
- type: Inject,
6463
- args: [ElementRef]
6464
- }] }], propDecorators: { id: [{
6359
+ }], propDecorators: { id: [{
6465
6360
  type: Input
6466
6361
  }], disabled: [{
6467
6362
  type: Input
@@ -6478,7 +6373,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6478
6373
  }] } });
6479
6374
 
6480
6375
  class BizyTabsComponent {
6481
- ref;
6376
+ #elementRef = inject(ElementRef);
6377
+ #ref = inject(ChangeDetectorRef);
6482
6378
  tabs;
6483
6379
  bizyTabs;
6484
6380
  bizyTabsWrapper;
@@ -6490,9 +6386,6 @@ class BizyTabsComponent {
6490
6386
  #subscription = new Subscription();
6491
6387
  #resize$ = new Subject();
6492
6388
  #initialScroll = 0;
6493
- constructor(ref) {
6494
- this.ref = ref;
6495
- }
6496
6389
  ngAfterViewInit() {
6497
6390
  this.bizyTabsWrapper.nativeElement.scrollLeft = this.#initialScroll;
6498
6391
  this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
@@ -6504,7 +6397,7 @@ class BizyTabsComponent {
6504
6397
  ngAfterContentInit() {
6505
6398
  for (let i = 0; i < this.tabs.length; i++) {
6506
6399
  if (this.tabs.get(i).selected) {
6507
- this.#initialScroll = this.tabs.get(i).elementRef.nativeElement.offsetLeft;
6400
+ this.#initialScroll = this.tabs.get(i).getNativeElement().offsetLeft;
6508
6401
  break;
6509
6402
  }
6510
6403
  }
@@ -6520,22 +6413,20 @@ class BizyTabsComponent {
6520
6413
  #checkButtons() {
6521
6414
  this.showLeftButton = this.bizyTabsWrapper.nativeElement.scrollLeft > 0;
6522
6415
  this.showRightButton = (this.bizyTabsWrapper.nativeElement.scrollWidth - this.bizyTabs.nativeElement.offsetWidth) > 0 && (this.bizyTabsWrapper.nativeElement.scrollLeft < (this.bizyTabsWrapper.nativeElement.scrollWidth - this.bizyTabs.nativeElement.offsetWidth));
6523
- this.ref.detectChanges();
6416
+ this.#ref.detectChanges();
6524
6417
  }
6418
+ getNativeElement = () => this.#elementRef?.nativeElement;
6525
6419
  ngOnDestroy() {
6526
6420
  this.#subscription.unsubscribe();
6527
6421
  this.#resizeObserver.disconnect();
6528
6422
  }
6529
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabsComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6423
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6530
6424
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTabsComponent, isStandalone: true, selector: "bizy-tabs", inputs: { customClass: "customClass" }, queries: [{ propertyName: "tabs", predicate: BizyTabComponent }], viewQueries: [{ propertyName: "bizyTabs", first: true, predicate: ["bizyTabs"], descendants: true }, { propertyName: "bizyTabsWrapper", first: true, predicate: ["bizyTabsWrapper"], descendants: true }], ngImport: i0, template: "<div #bizyTabs class=\"bizy-tabs {{customClass}}\">\n\n <button \n type=\"button\"\n class=\"bizy-tabs__scroll-button bizy-tabs__scroll-button--left\"\n *ngIf=\"showLeftButton\"\n (click)=\"onScrollLeft()\"\n (keyup.enter)=\"onScrollLeft()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" class=\"bizy-tabs__scroll-button__arrow\">\n <path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/>\n </svg>\n </button>\n\n <span class=\"bizy-tabs__wrapper\" #bizyTabsWrapper>\n\n <ng-content select=\"bizy-tab\"></ng-content>\n\n </span>\n\n <button \n type=\"button\"\n class=\"bizy-tabs__scroll-button bizy-tabs__scroll-button--right\"\n *ngIf=\"showRightButton\"\n (click)=\"onScrollRight()\"\n (keyup.enter)=\"onScrollRight()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" class=\"bizy-tabs__scroll-button__arrow\">\n <path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/>\n </svg>\n </button>\n\n</div>", styles: [":host{font-size:1rem}.bizy-tabs{display:flex;width:100%;height:100%;overflow:hidden;background-color:transparent}.bizy-tabs__wrapper{display:flex;align-items:center;width:100%;height:100%;position:relative;overflow-y:hidden;overflow-x:auto;scroll-behavior:smooth;column-gap:var(--bizy-tabs-column-gap);background-color:var(--bizy-tabs-background-color)}.bizy-tabs__wrapper::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-tabs__wrapper::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-tabs-scroll-bar-color)}.bizy-tabs__wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-tabs-scroll-bar-hover-color)}.bizy-tabs__wrapper::-webkit-scrollbar-button{height:1rem}.bizy-tabs__scroll-button{width:2rem;border:none;background-color:var(--bizy-tabs-arrow-button-background-color);display:flex;align-items:center;padding:.3rem;justify-content:center;box-shadow:0 0 47px -5px #000;-webkit-box-shadow:0px 0px 47px -5px rgba(0,0,0,1);-moz-box-shadow:0px 0px 47px -5px rgba(0,0,0,1)}.bizy-tabs__scroll-button--left{border-right:.1rem solid #6666}.bizy-tabs__scroll-button--right{border-left:.1rem solid #6666}.bizy-tabs__scroll-button__arrow{height:1rem;fill:var(--bizy-tabs-arrow-button-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6531
6425
  }
6532
6426
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTabsComponent, decorators: [{
6533
6427
  type: Component,
6534
6428
  args: [{ selector: 'bizy-tabs', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #bizyTabs class=\"bizy-tabs {{customClass}}\">\n\n <button \n type=\"button\"\n class=\"bizy-tabs__scroll-button bizy-tabs__scroll-button--left\"\n *ngIf=\"showLeftButton\"\n (click)=\"onScrollLeft()\"\n (keyup.enter)=\"onScrollLeft()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" class=\"bizy-tabs__scroll-button__arrow\">\n <path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/>\n </svg>\n </button>\n\n <span class=\"bizy-tabs__wrapper\" #bizyTabsWrapper>\n\n <ng-content select=\"bizy-tab\"></ng-content>\n\n </span>\n\n <button \n type=\"button\"\n class=\"bizy-tabs__scroll-button bizy-tabs__scroll-button--right\"\n *ngIf=\"showRightButton\"\n (click)=\"onScrollRight()\"\n (keyup.enter)=\"onScrollRight()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" class=\"bizy-tabs__scroll-button__arrow\">\n <path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/>\n </svg>\n </button>\n\n</div>", styles: [":host{font-size:1rem}.bizy-tabs{display:flex;width:100%;height:100%;overflow:hidden;background-color:transparent}.bizy-tabs__wrapper{display:flex;align-items:center;width:100%;height:100%;position:relative;overflow-y:hidden;overflow-x:auto;scroll-behavior:smooth;column-gap:var(--bizy-tabs-column-gap);background-color:var(--bizy-tabs-background-color)}.bizy-tabs__wrapper::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-tabs__wrapper::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-tabs-scroll-bar-color)}.bizy-tabs__wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-tabs-scroll-bar-hover-color)}.bizy-tabs__wrapper::-webkit-scrollbar-button{height:1rem}.bizy-tabs__scroll-button{width:2rem;border:none;background-color:var(--bizy-tabs-arrow-button-background-color);display:flex;align-items:center;padding:.3rem;justify-content:center;box-shadow:0 0 47px -5px #000;-webkit-box-shadow:0px 0px 47px -5px rgba(0,0,0,1);-moz-box-shadow:0px 0px 47px -5px rgba(0,0,0,1)}.bizy-tabs__scroll-button--left{border-right:.1rem solid #6666}.bizy-tabs__scroll-button--right{border-left:.1rem solid #6666}.bizy-tabs__scroll-button__arrow{height:1rem;fill:var(--bizy-tabs-arrow-button-color)}\n"] }]
6535
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
6536
- type: Inject,
6537
- args: [ChangeDetectorRef]
6538
- }] }], propDecorators: { tabs: [{
6429
+ }], propDecorators: { tabs: [{
6539
6430
  type: ContentChildren,
6540
6431
  args: [BizyTabComponent]
6541
6432
  }], bizyTabs: [{
@@ -6578,6 +6469,7 @@ var BIZY_TAG_TYPE;
6578
6469
  ;
6579
6470
 
6580
6471
  class BizyTagComponent {
6472
+ #elementRef = inject(ElementRef);
6581
6473
  id = `bizy-tag-${Math.random()}`;
6582
6474
  customClass = '';
6583
6475
  disabled = false;
@@ -6590,6 +6482,7 @@ class BizyTagComponent {
6590
6482
  }
6591
6483
  this.onSelect.emit(event);
6592
6484
  }
6485
+ getNativeElement = () => this.#elementRef?.nativeElement;
6593
6486
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6594
6487
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTagComponent, isStandalone: true, selector: "bizy-tag", inputs: { id: "id", customClass: "customClass", disabled: "disabled", type: "type" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n [ngClass]=\"{'bizy-tag--disabled': disabled}\"\n class=\"bizy-tag bizy-tag--{{type}} {{customClass}}\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-tag{border:none;padding:var(--bizy-tag-padding);border-radius:.3rem;display:flex;justify-content:center;cursor:pointer;column-gap:.5rem;align-items:center;text-wrap:nowrap;width:fit-content}.bizy-tag--default{background-color:var(--bizy-tag-default-background-color)}::ng-deep .bizy-tag--default *{color:var(--bizy-tag-default-color)!important}.bizy-tag--info{background-color:var(--bizy-tag-info-background-color)}::ng-deep .bizy-tag--info *{color:var(--bizy-tag-info-color)!important}.bizy-tag--success{background-color:var(--bizy-tag-success-background-color)}::ng-deep .bizy-tag--success *{color:var(--bizy-tag-success-color)!important}.bizy-tag--warning{background-color:var(--bizy-tag-warning-background-color)}::ng-deep .bizy-tag--warning *{color:var(--bizy-tag-warning-color)!important}.bizy-tag--danger{background-color:var(--bizy-tag-danger-background-color)}::ng-deep .bizy-tag--danger *{color:var(--bizy-tag-danger-color)!important}.bizy-tag--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6595
6488
  }
@@ -6625,8 +6518,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6625
6518
  }] });
6626
6519
 
6627
6520
  class BizyTimelineComponent {
6521
+ #elementRef = inject(ElementRef);
6628
6522
  id = `bizy-timeline-${Math.random()}`;
6629
6523
  customClass = '';
6524
+ getNativeElement = () => this.#elementRef?.nativeElement;
6630
6525
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6631
6526
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTimelineComponent, isStandalone: true, selector: "bizy-timeline", inputs: { id: "id", customClass: "customClass" }, host: { properties: { "id": "id", "class": "customClass" } }, ngImport: i0, template: "<ng-content select=\"bizy-timeline-event\"></ng-content>\n", styles: [":host{font-size:1rem;display:flex;flex-direction:column;align-items:center;row-gap:var(--bizy-timeline-row-gap);height:100%;width:100%}:host:not(:has(.bizy-timeline-event--start:not(:empty))) ::ng-deep bizy-timeline-event{grid-template-columns:fit-content(100%) 1fr!important}:host:not(:has(.bizy-timeline-event--start:not(:empty))) ::ng-deep .bizy-timeline-event--start{display:none}:host:not(:has(.bizy-timeline-event--end:not(:empty))) ::ng-deep bizy-timeline-event{grid-template-columns:1fr fit-content(100%)!important}:host:not(:has(.bizy-timeline-event--end:not(:empty))) ::ng-deep .bizy-timeline-event--end{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6632
6527
  }
@@ -6643,6 +6538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6643
6538
  }] } });
6644
6539
 
6645
6540
  class BizyTimelineEventComponent {
6541
+ #elementRef = inject(ElementRef);
6646
6542
  id = `bizy-timeline-event-${Math.random()}`;
6647
6543
  customClass = '';
6648
6544
  showLine = true;
@@ -6655,6 +6551,7 @@ class BizyTimelineEventComponent {
6655
6551
  }
6656
6552
  this.onSelect.emit(event);
6657
6553
  }
6554
+ getNativeElement = () => this.#elementRef?.nativeElement;
6658
6555
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyTimelineEventComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6659
6556
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyTimelineEventComponent, isStandalone: true, selector: "bizy-timeline-event", inputs: { id: "id", customClass: "customClass", showLine: "showLine", disabled: "disabled" }, outputs: { onSelect: "onSelect" }, host: { properties: { "id": "id", "class": "customClass" } }, ngImport: i0, template: "\n<span class=\"bizy-timeline-event--start\">\n <ng-content select=\"[slot=start]\"></ng-content>\n</span>\n\n<span class=\"bizy-timeline-event-content\" [ngClass]=\"{'bizy-timeline-event--disabled': disabled}\">\n\n <button \n type=\"button\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n class=\"bizy-timeline-event-bullet\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=bullet]\"></ng-content>\n \n </button>\n\n <span class=\"bizy-timeline-event-line\" *ngIf=\"showLine\"></span>\n\n</span>\n\n<span class=\"bizy-timeline-event--end\">\n <ng-content select=\"[slot=end]\"></ng-content>\n</span>", styles: [":host{font-size:1rem;display:grid;grid-template-columns:1fr fit-content(100%) 1fr;column-gap:var(--bizy-timeline-event-column-gap);min-height:fit-content;width:100%}.bizy-timeline-event--start,.bizy-timeline-event--end{width:100%}.bizy-timeline-event-content{justify-self:center;display:flex;flex-direction:column;align-items:center;min-width:var(--bizy-timeline-bullet-section-min-width)}.bizy-timeline-event-bullet{min-width:var(--bizy-timeline-bullet-min-width);min-height:var(--bizy-timeline-bullet-min-height);display:grid;place-items:center;border-radius:50%;border:var(--bizy-timeline-bullet-border);background-color:var(--bizy-timeline-bullet-background-color);cursor:pointer;padding:var(--bizy-timeline-bullet-padding)}.bizy-timeline-event--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.bizy-timeline-event-line{height:100%;min-height:var(--bizy-timeline-line-min-height);width:var(--bizy-timeline-line-width);background-color:var(--bizy-timeline-line-background-color);display:inline-block;border-radius:.3rem;margin-top:var(--bizy-timeline-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6660
6557
  }
@@ -6821,39 +6718,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6821
6718
  }] });
6822
6719
 
6823
6720
  class BizyToastWrapperComponent {
6824
- data;
6825
- toast;
6721
+ #elementRef = inject(ElementRef);
6722
+ #data = inject(DIALOG_DATA);
6723
+ #toast = inject(BizyToastService);
6826
6724
  type = TOAST.INFO;
6827
6725
  title = '';
6828
6726
  msg = '';
6829
6727
  id;
6830
- constructor(data, toast) {
6831
- this.data = data;
6832
- this.toast = toast;
6833
- this.type = this.data.type;
6834
- this.title = this.data.title;
6835
- this.msg = this.data.msg;
6836
- this.id = this.data.id;
6728
+ ngOnInit() {
6729
+ if (!this.#data) {
6730
+ this.close();
6731
+ return;
6732
+ }
6733
+ this.type = this.#data.type;
6734
+ this.title = this.#data.title;
6735
+ this.msg = this.#data.msg;
6736
+ this.id = this.#data.id;
6837
6737
  setTimeout(() => {
6838
6738
  this.close();
6839
- }, this.data.duration || 3000);
6739
+ }, this.#data.duration || 3000);
6840
6740
  }
6741
+ getNativeElement = () => this.#elementRef?.nativeElement;
6841
6742
  close() {
6842
- this.toast.close(this.id);
6743
+ this.#toast.close(this.id);
6843
6744
  }
6844
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToastWrapperComponent, deps: [{ token: DIALOG_DATA }, { token: BizyToastService }], target: i0.ɵɵFactoryTarget.Component });
6745
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToastWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6845
6746
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyToastWrapperComponent, isStandalone: true, selector: "bizy-toast-wrapper", providers: [BizyToastService], ngImport: i0, template: "<div class=\"bizy-toast-wrapper bizy-toast-wrapper--{{type}}\">\n\n <span class=\"bizy-toast-wrapper__content\">\n\n <h4 class=\"bizy-toast-wrapper__title--{{type}}\" *ngIf=\"title\">{{title}}</h4>\n \n <h6 *ngIf=\"msg\">{{msg}}</h6>\n\n </span>\n\n <button (click)=\"close()\" (keyup.enter)=\"close()\" class=\"bizy-toast-wrapper__close-button\">\n\n <svg \n data-name=\"Cancel button\"\n id=\"bizy-toast-wrapper-close-svg\" \n viewBox=\"0 0 200 200\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"bizy-toast-wrapper-close-svg-content\" d=\"M114,100l49-49a9.9,9.9,0,0,0-14-14L100,86,51,37A9.9,9.9,0,0,0,37,51l49,49L37,149a9.9,9.9,0,0,0,14,14l49-49,49,49a9.9,9.9,0,0,0,14-14Z\"/>\n </svg>\n\n </button>\n\n <span class=\"bizy-toast__progress bizy-toast__progress--{{type}}\"></span>\n \n</div>", styles: [":host{font-size:1rem}.bizy-toast-wrapper{position:relative;width:100%;min-width:20rem;max-width:min(30rem,80dvw);height:fit-content;min-height:3rem;max-height:95dvh;overflow-y:auto;border-top-width:var(--bizy-toast-border-top-width);border-right-width:var(--bizy-toast-border-right-width);border-bottom-width:var(--bizy-toast-border-bottom-width);border-left-width:var(--bizy-toast-border-left-width);border-top-style:var(--bizy-toast-border-top-style);border-right-style:var(--bizy-toast-border-right-style);border-bottom-style:var(--bizy-toast-border-bottom-style);border-left-style:var(--bizy-toast-border-left-style);border-top-left-radius:var(--bizy-toast-border-top-left-radius);border-top-right-radius:var(--bizy-toast-border-top-right-radius);border-bottom-left-radius:var(--bizy-toast-border-bottom-left-radius);border-bottom-right-radius:var(--bizy-toast-border-bottom-right-radius);display:flex;align-items:center;column-gap:.5rem;padding:.5rem;box-shadow:0 18px 25px #32325d40,0 3px 6px #0000001a}.bizy-toast-wrapper::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-toast-wrapper::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-toast-scroll-bar-color)}.bizy-toast-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-toast-scroll-bar-hover-color)}.bizy-toast-wrapper__content{flex:1;display:flex;flex-direction:column;row-gap:.1rem}.bizy-toast-wrapper--debug{background-color:var(--bizy-toast-debug-background-color, );border-top-color:var(--bizy-toast-debug-color);border-right-color:var(--bizy-toast-debug-color);border-bottom-color:var(--bizy-toast-debug-color);border-left-color:var(--bizy-toast-debug-color)}.bizy-toast-wrapper__title--debug{color:var(--bizy-toast-debug-color)}.bizy-toast-wrapper--info{background-color:var(--bizy-toast-info-background-color, );border-top-color:var(--bizy-toast-info-color);border-right-color:var(--bizy-toast-info-color);border-bottom-color:var(--bizy-toast-info-color);border-left-color:var(--bizy-toast-info-color)}.bizy-toast-wrapper__title--info{color:var(--bizy-toast-info-color)}.bizy-toast-wrapper--success{background-color:var(--bizy-toast-success-background-color);border-top-color:var(--bizy-toast-success-color);border-right-color:var(--bizy-toast-success-color);border-bottom-color:var(--bizy-toast-success-color);border-left-color:var(--bizy-toast-success-color)}.bizy-toast-wrapper__title--success{color:var(--bizy-toast-success-color)}.bizy-toast-wrapper--warning{background-color:var(--bizy-toast-warning-background-color);border-top-color:var(--bizy-toast-warning-color);border-right-color:var(--bizy-toast-warning-color);border-bottom-color:var(--bizy-toast-warning-color);border-left-color:var(--bizy-toast-warning-color)}.bizy-toast-wrapper__title--warning{color:var(--bizy-toast-warning-color)}.bizy-toast-wrapper--danger{background-color:var(--bizy-toast-danger-background-color);border-top-color:var(--bizy-toast-danger-color);border-right-color:var(--bizy-toast-danger-color);border-bottom-color:var(--bizy-toast-danger-color);border-left-color:var(--bizy-toast-danger-color)}.bizy-toast-wrapper__title--danger{color:var(--bizy-toast-danger-color)}.bizy-toast-wrapper__close-button{border:none;cursor:pointer;align-self:flex-start;background-color:transparent;transition:color .2s;justify-self:flex-start}.bizy-toast-wrapper__close-button #bizy-toast-wrapper-close-svg{height:1rem}.bizy-toast-wrapper__close-button #bizy-toast-wrapper-close-svg-content{fill:var(--bizy-toast-close-button-color)}.bizy-toast-wrapper__close-button:hover #bizy-toast-wrapper-close-svg-content{fill:var(--bizy-toast-close-button-hover-color)}.bizy-toast__progress{width:100%;height:var(--bizy-toast-progress-bar-height);display:inline-block;position:fixed;bottom:0;left:0;right:0;overflow:hidden}.bizy-toast__progress--debug{background-color:var(--bizy-toast-debug-color)}.bizy-toast__progress--info{background-color:var(--bizy-toast-info-color)}.bizy-toast__progress--success{background-color:var(--bizy-toast-success-color)}.bizy-toast__progress--warning{background-color:var(--bizy-toast-warning-color)}.bizy-toast__progress--danger{background-color:var(--bizy-toast-danger-color)}.bizy-toast__progress:after{content:\"\";box-sizing:border-box;width:0;height:var(--bizy-toast-progress-bar-height);background-color:#fff;position:absolute;top:0;left:0;animation:progress var(--bizy-toast-duration) linear infinite}@keyframes progress{0%{width:0}to{width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6846
6747
  }
6847
6748
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToastWrapperComponent, decorators: [{
6848
6749
  type: Component,
6849
6750
  args: [{ selector: 'bizy-toast-wrapper', imports: [CommonModule, DialogModule], providers: [BizyToastService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-toast-wrapper bizy-toast-wrapper--{{type}}\">\n\n <span class=\"bizy-toast-wrapper__content\">\n\n <h4 class=\"bizy-toast-wrapper__title--{{type}}\" *ngIf=\"title\">{{title}}</h4>\n \n <h6 *ngIf=\"msg\">{{msg}}</h6>\n\n </span>\n\n <button (click)=\"close()\" (keyup.enter)=\"close()\" class=\"bizy-toast-wrapper__close-button\">\n\n <svg \n data-name=\"Cancel button\"\n id=\"bizy-toast-wrapper-close-svg\" \n viewBox=\"0 0 200 200\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"bizy-toast-wrapper-close-svg-content\" d=\"M114,100l49-49a9.9,9.9,0,0,0-14-14L100,86,51,37A9.9,9.9,0,0,0,37,51l49,49L37,149a9.9,9.9,0,0,0,14,14l49-49,49,49a9.9,9.9,0,0,0,14-14Z\"/>\n </svg>\n\n </button>\n\n <span class=\"bizy-toast__progress bizy-toast__progress--{{type}}\"></span>\n \n</div>", styles: [":host{font-size:1rem}.bizy-toast-wrapper{position:relative;width:100%;min-width:20rem;max-width:min(30rem,80dvw);height:fit-content;min-height:3rem;max-height:95dvh;overflow-y:auto;border-top-width:var(--bizy-toast-border-top-width);border-right-width:var(--bizy-toast-border-right-width);border-bottom-width:var(--bizy-toast-border-bottom-width);border-left-width:var(--bizy-toast-border-left-width);border-top-style:var(--bizy-toast-border-top-style);border-right-style:var(--bizy-toast-border-right-style);border-bottom-style:var(--bizy-toast-border-bottom-style);border-left-style:var(--bizy-toast-border-left-style);border-top-left-radius:var(--bizy-toast-border-top-left-radius);border-top-right-radius:var(--bizy-toast-border-top-right-radius);border-bottom-left-radius:var(--bizy-toast-border-bottom-left-radius);border-bottom-right-radius:var(--bizy-toast-border-bottom-right-radius);display:flex;align-items:center;column-gap:.5rem;padding:.5rem;box-shadow:0 18px 25px #32325d40,0 3px 6px #0000001a}.bizy-toast-wrapper::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-toast-wrapper::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-toast-scroll-bar-color)}.bizy-toast-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-toast-scroll-bar-hover-color)}.bizy-toast-wrapper__content{flex:1;display:flex;flex-direction:column;row-gap:.1rem}.bizy-toast-wrapper--debug{background-color:var(--bizy-toast-debug-background-color, );border-top-color:var(--bizy-toast-debug-color);border-right-color:var(--bizy-toast-debug-color);border-bottom-color:var(--bizy-toast-debug-color);border-left-color:var(--bizy-toast-debug-color)}.bizy-toast-wrapper__title--debug{color:var(--bizy-toast-debug-color)}.bizy-toast-wrapper--info{background-color:var(--bizy-toast-info-background-color, );border-top-color:var(--bizy-toast-info-color);border-right-color:var(--bizy-toast-info-color);border-bottom-color:var(--bizy-toast-info-color);border-left-color:var(--bizy-toast-info-color)}.bizy-toast-wrapper__title--info{color:var(--bizy-toast-info-color)}.bizy-toast-wrapper--success{background-color:var(--bizy-toast-success-background-color);border-top-color:var(--bizy-toast-success-color);border-right-color:var(--bizy-toast-success-color);border-bottom-color:var(--bizy-toast-success-color);border-left-color:var(--bizy-toast-success-color)}.bizy-toast-wrapper__title--success{color:var(--bizy-toast-success-color)}.bizy-toast-wrapper--warning{background-color:var(--bizy-toast-warning-background-color);border-top-color:var(--bizy-toast-warning-color);border-right-color:var(--bizy-toast-warning-color);border-bottom-color:var(--bizy-toast-warning-color);border-left-color:var(--bizy-toast-warning-color)}.bizy-toast-wrapper__title--warning{color:var(--bizy-toast-warning-color)}.bizy-toast-wrapper--danger{background-color:var(--bizy-toast-danger-background-color);border-top-color:var(--bizy-toast-danger-color);border-right-color:var(--bizy-toast-danger-color);border-bottom-color:var(--bizy-toast-danger-color);border-left-color:var(--bizy-toast-danger-color)}.bizy-toast-wrapper__title--danger{color:var(--bizy-toast-danger-color)}.bizy-toast-wrapper__close-button{border:none;cursor:pointer;align-self:flex-start;background-color:transparent;transition:color .2s;justify-self:flex-start}.bizy-toast-wrapper__close-button #bizy-toast-wrapper-close-svg{height:1rem}.bizy-toast-wrapper__close-button #bizy-toast-wrapper-close-svg-content{fill:var(--bizy-toast-close-button-color)}.bizy-toast-wrapper__close-button:hover #bizy-toast-wrapper-close-svg-content{fill:var(--bizy-toast-close-button-hover-color)}.bizy-toast__progress{width:100%;height:var(--bizy-toast-progress-bar-height);display:inline-block;position:fixed;bottom:0;left:0;right:0;overflow:hidden}.bizy-toast__progress--debug{background-color:var(--bizy-toast-debug-color)}.bizy-toast__progress--info{background-color:var(--bizy-toast-info-color)}.bizy-toast__progress--success{background-color:var(--bizy-toast-success-color)}.bizy-toast__progress--warning{background-color:var(--bizy-toast-warning-color)}.bizy-toast__progress--danger{background-color:var(--bizy-toast-danger-color)}.bizy-toast__progress:after{content:\"\";box-sizing:border-box;width:0;height:var(--bizy-toast-progress-bar-height);background-color:#fff;position:absolute;top:0;left:0;animation:progress var(--bizy-toast-duration) linear infinite}@keyframes progress{0%{width:0}to{width:100%}}\n"] }]
6850
- }], ctorParameters: () => [{ type: undefined, decorators: [{
6851
- type: Inject,
6852
- args: [DIALOG_DATA]
6853
- }] }, { type: BizyToastService, decorators: [{
6854
- type: Inject,
6855
- args: [BizyToastService]
6856
- }] }] });
6751
+ }] });
6857
6752
 
6858
6753
  class BizyToastModule {
6859
6754
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -6870,6 +6765,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6870
6765
  }] });
6871
6766
 
6872
6767
  class BizyToggleComponent {
6768
+ #elementRef = inject(ElementRef);
6873
6769
  id = `bizy-toggle-${Math.random()}`;
6874
6770
  disabled = false;
6875
6771
  selected = false;
@@ -6882,6 +6778,7 @@ class BizyToggleComponent {
6882
6778
  this.selectedChange.emit(!this.selected);
6883
6779
  this.onSelect.emit(event);
6884
6780
  }
6781
+ getNativeElement = () => this.#elementRef?.nativeElement;
6885
6782
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6886
6783
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyToggleComponent, isStandalone: true, selector: "bizy-toggle", inputs: { id: "id", disabled: "disabled", selected: "selected" }, outputs: { onSelect: "onSelect", selectedChange: "selectedChange" }, ngImport: i0, template: "<button type=\"button\" class=\"bizy-toggle\" [ngClass]=\"{'bizy-toggle--disabled': disabled}\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input \n class=\"bizy-toggle__toggle\"\n type=\"checkbox\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [checked]=\"selected\"\n readonly\n [ngClass]=\"{'bizy-toggle__toggle--disabled': disabled}\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [".bizy-toggle{width:fit-content;min-height:1.3rem;display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-toggle--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-toggle__toggle{position:relative;pointer-events:none;height:.8rem;width:2.2rem;min-width:2.2rem;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:9999px;background-color:var(--bizy-toggle-background-color);transition:all .3s ease}.bizy-toggle__toggle:before{position:absolute;pointer-events:none;content:\"\";left:-.2rem;top:-.2rem;display:block;height:1.2rem;width:1.2rem;cursor:pointer;background-color:var(--bizy-toggle-color);border-radius:9999px;transition:all .3s ease}.bizy-toggle__toggle:checked{background-color:var(--bizy-toggle-selected-background-color)}.bizy-toggle__toggle:checked:before{background-color:var(--bizy-toggle-selected-color);transform:translate(100%)}.bizy-toggle__toggle--disabled{pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6887
6784
  }
@@ -6917,6 +6814,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
6917
6814
  }] });
6918
6815
 
6919
6816
  class BizyToolbarComponent {
6817
+ #elementRef = inject(ElementRef);
6818
+ getNativeElement = () => this.#elementRef?.nativeElement;
6920
6819
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6921
6820
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyToolbarComponent, isStandalone: true, selector: "bizy-toolbar", ngImport: i0, template: "<div class=\"bizy-toolbar\">\n\n <span class=\"bizy-toolbar__start\">\n \n <ng-content select=\"[slot=start]\"></ng-content>\n\n </span>\n\n <span class=\"bizy-toolbar__end\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n </span>\n\n</div>\n", styles: [":host{font-size:1rem}.bizy-toolbar{min-height:var(--bizy-toolbar-min-height);height:var(--bizy-toolbar-height);width:100%;background-color:var(--bizy-toolbar-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-toolbar-column-gap);padding:var(--bizy-toolbar-padding)}.bizy-toolbar__start{height:100%;display:flex;align-items:center;column-gap:var(--bizy-toolbar-column-gap)}.bizy-toolbar__end{height:100%;display:flex;align-items:center;justify-content:flex-end;column-gap:var(--bizy-toolbar-column-gap)}::ng-deep .bizy-toolbar *[toolbar-option]{height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6922
6821
  }