@bizy/core 21.9.0 → 21.9.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.
@@ -20,17 +20,8 @@ import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
20
20
  import localeEs from '@angular/common/locales/es';
21
21
  import * as i2$1 from '@angular/forms';
22
22
  import { FormsModule, FormBuilder, Validators } from '@angular/forms';
23
- import flatpickr from 'flatpickr';
24
- import monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect/index.js';
25
- import { Spanish } from 'flatpickr/dist/l10n/es.js';
26
23
  import * as i2$2 from '@angular/cdk/overlay';
27
24
  import { OverlayModule, CdkConnectedOverlay } from '@angular/cdk/overlay';
28
- import AutoNumeric from 'autonumeric';
29
- import Uppy from '@uppy/core';
30
- import es_ES from '@uppy/locales/lib/es_ES';
31
- import en_US from '@uppy/locales/lib/en_US';
32
- import Dashboard from '@uppy/dashboard';
33
- import XHRUpload from '@uppy/xhr-upload';
34
25
  import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
35
26
  import { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
36
27
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
@@ -8833,7 +8824,7 @@ class BizyPopupWrapperComponent {
8833
8824
  this.#popup.close({ id: this.#dialogRef.id });
8834
8825
  }
8835
8826
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8836
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyPopupWrapperComponent, isStandalone: true, selector: "bizy-popup-wrapper", host: { properties: { "style.top": "position.top", "style.right": "position.right", "style.bottom": "position.bottom", "style.left": "position.left", "style.transform": "position.transform" } }, viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "@if (!disableDrag) {\n <div class=\"bizy-popup-wrapper\" cdkDrag>\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n </button>\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}\n\n@if (disableDrag) {\n <div class=\"bizy-popup-wrapper\">\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}", styles: [":host{font-size:1rem;position:fixed!important;display:flex;height:var(--bizy-popup-height);min-height:var(--bizy-popup-min-height);max-height:var(--bizy-popup-max-height);width:var(--bizy-popup-width);min-width:var(--bizy-popup-min-width);max-width:var(--bizy-popup-max-width);max-height:95dvh;z-index:10}.bizy-popup-wrapper{flex:1;position:relative;padding:var(--bizy-popup-padding);background-color:var(--bizy-popup-background-color);border-radius:var(--bizy-popup-border-radius)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:var(--bizy-popup-drag-button-border);border-radius:50%;padding:.2rem;place-items:center;display:grid;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:var(--bizy-popup-close-button-border);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8827
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyPopupWrapperComponent, isStandalone: true, selector: "bizy-popup-wrapper", host: { properties: { "style.top": "position.top", "style.right": "position.right", "style.bottom": "position.bottom", "style.left": "position.left", "style.transform": "position.transform" } }, viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "@if (!disableDrag) {\n <div class=\"bizy-popup-wrapper\" cdkDrag>\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n </button>\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}\n\n@if (disableDrag) {\n <div class=\"bizy-popup-wrapper\">\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}", styles: [":host{font-size:1rem;position:fixed!important;display:flex;height:var(--bizy-popup-height);min-height:var(--bizy-popup-min-height);max-height:var(--bizy-popup-max-height);width:var(--bizy-popup-width);min-width:var(--bizy-popup-min-width);max-width:var(--bizy-popup-max-width);z-index:10}.bizy-popup-wrapper{flex:1;position:relative;padding:var(--bizy-popup-padding);background-color:var(--bizy-popup-background-color);border-radius:var(--bizy-popup-border-radius)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:var(--bizy-popup-drag-button-border);border-radius:50%;padding:.2rem;place-items:center;display:grid;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:var(--bizy-popup-close-button-border);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8837
8828
  }
8838
8829
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupWrapperComponent, decorators: [{
8839
8830
  type: Component,
@@ -8843,7 +8834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
8843
8834
  '[style.bottom]': 'position.bottom',
8844
8835
  '[style.left]': 'position.left',
8845
8836
  '[style.transform]': 'position.transform'
8846
- }, template: "@if (!disableDrag) {\n <div class=\"bizy-popup-wrapper\" cdkDrag>\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n </button>\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}\n\n@if (disableDrag) {\n <div class=\"bizy-popup-wrapper\">\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}", styles: [":host{font-size:1rem;position:fixed!important;display:flex;height:var(--bizy-popup-height);min-height:var(--bizy-popup-min-height);max-height:var(--bizy-popup-max-height);width:var(--bizy-popup-width);min-width:var(--bizy-popup-min-width);max-width:var(--bizy-popup-max-width);max-height:95dvh;z-index:10}.bizy-popup-wrapper{flex:1;position:relative;padding:var(--bizy-popup-padding);background-color:var(--bizy-popup-background-color);border-radius:var(--bizy-popup-border-radius)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:var(--bizy-popup-drag-button-border);border-radius:50%;padding:.2rem;place-items:center;display:grid;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:var(--bizy-popup-close-button-border);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"] }]
8837
+ }, template: "@if (!disableDrag) {\n <div class=\"bizy-popup-wrapper\" cdkDrag>\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n </button>\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}\n\n@if (disableDrag) {\n <div class=\"bizy-popup-wrapper\">\n @if (!disableClose) {\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n </button>\n }\n <ng-container #dynamicComponentContainer></ng-container>\n </div>\n}", styles: [":host{font-size:1rem;position:fixed!important;display:flex;height:var(--bizy-popup-height);min-height:var(--bizy-popup-min-height);max-height:var(--bizy-popup-max-height);width:var(--bizy-popup-width);min-width:var(--bizy-popup-min-width);max-width:var(--bizy-popup-max-width);z-index:10}.bizy-popup-wrapper{flex:1;position:relative;padding:var(--bizy-popup-padding);background-color:var(--bizy-popup-background-color);border-radius:var(--bizy-popup-border-radius)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:var(--bizy-popup-drag-button-border);border-radius:50%;padding:.2rem;place-items:center;display:grid;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:var(--bizy-popup-close-button-border);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"] }]
8847
8838
  }], propDecorators: { dynamicComponentContainer: [{
8848
8839
  type: ViewChild,
8849
8840
  args: ['dynamicComponentContainer', { read: ViewContainerRef }]
@@ -9086,6 +9077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
9086
9077
  args: [RendererFactory2]
9087
9078
  }] }] });
9088
9079
 
9080
+ var _a$1;
9089
9081
  class BizyRouterService {
9090
9082
  router;
9091
9083
  static backPath = '';
@@ -9098,11 +9090,13 @@ class BizyRouterService {
9098
9090
  this.router = router;
9099
9091
  this.transitionsEnd$ = this.router.events.pipe(filter(event => event instanceof NavigationEnd), map((event) => event.id), distinctUntilChanged$1(), map(() => this.router.routerState.snapshot.root));
9100
9092
  this.transitionsStart$ = this.router.events.pipe(filter(event => event instanceof NavigationStart), map((event) => event.id), distinctUntilChanged$1(), map(() => this.router.routerState.snapshot.root));
9093
+ this.#updateData(this.router.routerState.snapshot.root);
9094
+ this.transitionsEnd$.subscribe(snapshot => this.#updateData(snapshot));
9101
9095
  this.popStateEvent$ = fromEvent(window, 'popstate');
9102
9096
  this.routeChange$ = merge(this.transitionsEnd$, this.popStateEvent$).pipe(map(() => void 0));
9103
9097
  }
9104
9098
  getURL = () => window.location.pathname;
9105
- getBackPath = () => BizyRouterService.backPath;
9099
+ getBackPath = () => _a$1.backPath;
9106
9100
  getId = (activatedRoute, param) => activatedRoute.snapshot.paramMap.get(param);
9107
9101
  getQueryParam = (activatedRoute, param) => activatedRoute.snapshot.queryParamMap.get(param);
9108
9102
  getAllQueryParam() {
@@ -9113,21 +9107,13 @@ class BizyRouterService {
9113
9107
  }
9114
9108
  return queryParams;
9115
9109
  }
9116
- getData = () => BizyRouterService.data;
9110
+ getData = () => _a$1.data;
9117
9111
  goTo(data) {
9118
9112
  if (data.replace) {
9119
- BizyRouterService.backPath = '';
9113
+ _a$1.backPath = '';
9120
9114
  }
9121
9115
  else {
9122
- BizyRouterService.backPath = this.getURL();
9123
- }
9124
- if (this.router.routerState && this.router.routerState.snapshot && this.router.routerState.snapshot.root) {
9125
- const root = this.router.routerState.snapshot.root;
9126
- let route = root;
9127
- while (route.firstChild) {
9128
- route = route.firstChild;
9129
- }
9130
- BizyRouterService.data = route && route.data ? route.data : {};
9116
+ _a$1.backPath = this.getURL();
9131
9117
  }
9132
9118
  if (data.path[0] === '/') {
9133
9119
  this.router.navigateByUrl(`${data.path}${this.#serialize(data.params)}`, { replaceUrl: data.replace ?? false, skipLocationChange: data.skip ?? false });
@@ -9139,9 +9125,9 @@ class BizyRouterService {
9139
9125
  this.router.navigateByUrl(`${url}/${data.path}${this.#serialize(data.params)}`, { replaceUrl: data.replace ?? false, skipLocationChange: data.skip ?? false });
9140
9126
  }
9141
9127
  goBack(data) {
9142
- if (BizyRouterService.backPath) {
9128
+ if (_a$1.backPath) {
9143
9129
  history.back();
9144
- BizyRouterService.backPath = '';
9130
+ _a$1.backPath = '';
9145
9131
  }
9146
9132
  else if (data && data.path) {
9147
9133
  this.router.navigateByUrl(data.path, { replaceUrl: true });
@@ -9164,6 +9150,13 @@ class BizyRouterService {
9164
9150
  }, 1);
9165
9151
  }
9166
9152
  }
9153
+ #updateData(root) {
9154
+ let route = root;
9155
+ while (route.firstChild) {
9156
+ route = route.firstChild;
9157
+ }
9158
+ _a$1.data = route.data ?? {};
9159
+ }
9167
9160
  #serialize(params) {
9168
9161
  if (!params) {
9169
9162
  return '';
@@ -9180,6 +9173,7 @@ class BizyRouterService {
9180
9173
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRouterService, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable });
9181
9174
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRouterService, providedIn: 'root' });
9182
9175
  }
9176
+ _a$1 = BizyRouterService;
9183
9177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRouterService, decorators: [{
9184
9178
  type: Injectable,
9185
9179
  args: [{ providedIn: 'root' }]
@@ -11557,28 +11551,34 @@ class BizyCurrencyFormatDirective {
11557
11551
  elementRef;
11558
11552
  bizyCurrencyFormat = false;
11559
11553
  options = {};
11560
- #autoNumericInstance;
11554
+ #autoNumericInstance = null;
11555
+ #destroyed = false;
11561
11556
  constructor(elementRef) {
11562
11557
  this.elementRef = elementRef;
11563
11558
  }
11564
- ngOnInit() {
11559
+ async ngOnInit() {
11565
11560
  if (typeof this.bizyCurrencyFormat === 'undefined' || this.bizyCurrencyFormat === null || this.bizyCurrencyFormat === false) {
11566
11561
  return;
11567
11562
  }
11568
- this.#autoNumericInstance = new AutoNumeric(this.elementRef.nativeElement, this.options);
11563
+ const { default: AutoNumericConstructor } = await import('autonumeric');
11564
+ if (this.#destroyed) {
11565
+ return;
11566
+ }
11567
+ this.#autoNumericInstance = new AutoNumericConstructor(this.elementRef.nativeElement, this.options);
11569
11568
  this.elementRef.nativeElement.getValue = this.getValue;
11570
11569
  this.elementRef.nativeElement.setValue = this.setValue;
11571
11570
  }
11572
11571
  ngOnDestroy() {
11572
+ this.#destroyed = true;
11573
11573
  if (this.#autoNumericInstance) {
11574
11574
  this.#autoNumericInstance.remove();
11575
11575
  }
11576
11576
  }
11577
11577
  getValue = () => {
11578
- return this.#autoNumericInstance.getNumber();
11578
+ return this.#autoNumericInstance?.getNumber() ?? 0;
11579
11579
  };
11580
11580
  setValue = (value) => {
11581
- this.#autoNumericInstance.set(value);
11581
+ this.#autoNumericInstance?.set(value);
11582
11582
  };
11583
11583
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCurrencyFormatDirective, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
11584
11584
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.5", type: BizyCurrencyFormatDirective, isStandalone: true, selector: "[bizyCurrencyFormat]", inputs: { bizyCurrencyFormat: "bizyCurrencyFormat", options: ["bizyCurrencyOptions", "options"] }, ngImport: i0 });
@@ -11857,6 +11857,9 @@ class BizyDatePickerComponent {
11857
11857
  mode = 'single';
11858
11858
  dates = [Date.now()];
11859
11859
  time = Date.now();
11860
+ #instance = null;
11861
+ #starting = null;
11862
+ #destroyed = false;
11860
11863
  get touched() {
11861
11864
  return this.bizyDatePicker ? this.bizyDatePicker.touched : false;
11862
11865
  }
@@ -11869,7 +11872,7 @@ class BizyDatePickerComponent {
11869
11872
  this.time = date;
11870
11873
  this.value = this.#datePipe.transform(date, this.datePipeFormat, undefined, 'es-AR');
11871
11874
  if (!this.enableTime || !this.started) {
11872
- this.#start();
11875
+ void this.#start();
11873
11876
  }
11874
11877
  }
11875
11878
  set range(range) {
@@ -11880,7 +11883,7 @@ class BizyDatePickerComponent {
11880
11883
  this.dates = [range.from, range.to];
11881
11884
  this.time = range.from;
11882
11885
  this.value = `${this.#datePipe.transform(range.from, this.datePipeFormat, undefined, 'es-AR')} - ${this.#datePipe.transform(range.to, this.datePipeFormat, undefined, 'es-AR')}`;
11883
- this.#start();
11886
+ void this.#start();
11884
11887
  }
11885
11888
  value = '';
11886
11889
  set type(type) {
@@ -11920,65 +11923,90 @@ class BizyDatePickerComponent {
11920
11923
  }
11921
11924
  }
11922
11925
  ngAfterViewInit() {
11923
- this.#start();
11926
+ void this.#start();
11927
+ }
11928
+ ngOnDestroy() {
11929
+ this.#destroyed = true;
11930
+ this.#instance?.destroy();
11931
+ this.#instance = null;
11924
11932
  }
11925
- #start() {
11933
+ async #start() {
11934
+ if (this.started || this.#starting) {
11935
+ return this.#starting ?? Promise.resolve();
11936
+ }
11926
11937
  if (this.bizyDatePicker && this.bizyDatePicker.bizyInputWrapper && this.bizyDatePicker.bizyInputWrapper.nativeElement) {
11927
- const plugins = [];
11928
- if (this.dateFormat === 'Y-M') {
11929
- plugins.push(monthSelectPlugin({
11930
- shorthand: true
11931
- }));
11938
+ this.#starting = this.#initialize();
11939
+ try {
11940
+ await this.#starting;
11941
+ }
11942
+ finally {
11943
+ this.#starting = null;
11932
11944
  }
11933
- const overlayHost = this.#getOverlayHost();
11934
- flatpickr(this.bizyDatePicker.bizyInputWrapper.nativeElement, {
11935
- locale: Spanish,
11936
- mode: this.mode,
11937
- dateFormat: this.dateFormat,
11938
- enableTime: this.enableTime,
11939
- enableSeconds: this.enableSeconds,
11940
- plugins,
11941
- minDate: this.minDate,
11942
- maxDate: this.maxDate,
11943
- noCalendar: this.noCalendar,
11944
- disableMobile: true,
11945
- ...(overlayHost ? {
11946
- appendTo: overlayHost,
11947
- position: (instance, positionElement) => this.#positionCalendar(instance, positionElement)
11948
- } : {}),
11949
- time_24hr: true,
11950
- defaultDate: this.mode === 'single' ? new Date(this.dates[0]) : this.dates.map(_date => new Date(_date)),
11951
- defaultHour: this.#getHour(this.time),
11952
- defaultMinute: this.#getMinute(this.time),
11953
- onChange: (selectedDates) => {
11954
- if (this.mode === 'single' && selectedDates[0]) {
11955
- const date = new Date(selectedDates[0]);
11956
- this.dateChange.emit(date.getTime());
11957
- this.onChange.emit(date.getTime());
11958
- }
11959
- else if (selectedDates[0] && selectedDates[1]) {
11960
- const from = new Date(selectedDates[0]);
11961
- const to = new Date(selectedDates[1]);
11962
- to.setHours(23, 59, 59, 999);
11963
- const range = { from: from.getTime(), to: to.getTime() };
11964
- this.rangeChange.emit(range);
11965
- this.onChange.emit(range);
11966
- }
11967
- },
11968
- onOpen: () => {
11969
- this.opened = true;
11970
- this.openedChange.emit(this.opened);
11971
- this.onOpen.emit(this.opened);
11972
- },
11973
- onClose: () => {
11974
- this.opened = false;
11975
- this.openedChange.emit(this.opened);
11976
- this.onOpen.emit(this.opened);
11977
- }
11978
- });
11979
- this.started = true;
11980
11945
  }
11981
11946
  }
11947
+ async #initialize() {
11948
+ const [{ default: flatpickr }, { default: monthSelectPlugin }, { Spanish }] = await Promise.all([
11949
+ import('flatpickr'),
11950
+ import('flatpickr/dist/plugins/monthSelect/index.js'),
11951
+ import('flatpickr/dist/l10n/es.js')
11952
+ ]);
11953
+ if (this.#destroyed) {
11954
+ return;
11955
+ }
11956
+ const plugins = [];
11957
+ if (this.dateFormat === 'Y-M') {
11958
+ plugins.push(monthSelectPlugin({
11959
+ shorthand: true
11960
+ }));
11961
+ }
11962
+ const overlayHost = this.#getOverlayHost();
11963
+ this.#instance = flatpickr(this.bizyDatePicker.bizyInputWrapper.nativeElement, {
11964
+ locale: Spanish,
11965
+ mode: this.mode,
11966
+ dateFormat: this.dateFormat,
11967
+ enableTime: this.enableTime,
11968
+ enableSeconds: this.enableSeconds,
11969
+ plugins,
11970
+ minDate: this.minDate,
11971
+ maxDate: this.maxDate,
11972
+ noCalendar: this.noCalendar,
11973
+ disableMobile: true,
11974
+ ...(overlayHost ? {
11975
+ appendTo: overlayHost,
11976
+ position: (instance, positionElement) => this.#positionCalendar(instance, positionElement)
11977
+ } : {}),
11978
+ time_24hr: true,
11979
+ defaultDate: this.mode === 'single' ? new Date(this.dates[0]) : this.dates.map(_date => new Date(_date)),
11980
+ defaultHour: this.#getHour(this.time),
11981
+ defaultMinute: this.#getMinute(this.time),
11982
+ onChange: (selectedDates) => {
11983
+ if (this.mode === 'single' && selectedDates[0]) {
11984
+ const date = new Date(selectedDates[0]);
11985
+ this.dateChange.emit(date.getTime());
11986
+ this.onChange.emit(date.getTime());
11987
+ }
11988
+ else if (selectedDates[0] && selectedDates[1]) {
11989
+ const from = new Date(selectedDates[0]);
11990
+ const to = new Date(selectedDates[1]);
11991
+ to.setHours(23, 59, 59, 999);
11992
+ const range = { from: from.getTime(), to: to.getTime() };
11993
+ this.rangeChange.emit(range);
11994
+ this.onChange.emit(range);
11995
+ }
11996
+ },
11997
+ onOpen: () => {
11998
+ this.opened = true;
11999
+ this.openedChange.emit(this.opened);
12000
+ this.onOpen.emit(this.opened);
12001
+ },
12002
+ onClose: () => {
12003
+ this.opened = false;
12004
+ this.openedChange.emit(this.opened);
12005
+ this.onOpen.emit(this.opened);
12006
+ }
12007
+ });
12008
+ this.started = true;
12009
+ }
11982
12010
  setTouched(touched) {
11983
12011
  if (this.bizyDatePicker) {
11984
12012
  this.bizyDatePicker.setTouched(touched);
@@ -12604,24 +12632,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
12604
12632
  }]
12605
12633
  }] });
12606
12634
 
12607
- const ES = {
12608
- ...es_ES,
12609
- strings: {
12610
- ...es_ES.strings,
12611
- noDuplicates: 'Archivo duplicado: \'%{fileName}\'',
12612
- browseFiles: 'buscar archivo',
12613
- dropPasteFiles: 'Soltar archivo aquí, pegar o %{browseFiles}'
12614
- }
12615
- };
12616
- const EN = {
12617
- ...en_US,
12618
- strings: {
12619
- ...en_US.strings,
12620
- noDuplicates: 'Duplicated file: \'%{fileName}\'',
12621
- browseFiles: 'browse file',
12622
- dropPasteFiles: 'Drop a file here or %{browseFiles}'
12623
- }
12624
- };
12625
12635
  class BizyFileUploaderService {
12626
12636
  #renderer = inject(Renderer2);
12627
12637
  #document = inject(DOCUMENT$1);
@@ -12655,10 +12665,35 @@ class BizyFileUploaderService {
12655
12665
  get complete$() {
12656
12666
  return this.#complete.asObservable();
12657
12667
  }
12658
- createFileUploader(data) {
12668
+ async createFileUploader(data) {
12669
+ const [{ default: UppyConstructor }, { default: es_ES }, { default: en_US }, { default: Dashboard }, { default: XHRUpload }] = await Promise.all([
12670
+ import('@uppy/core'),
12671
+ import('@uppy/locales/lib/es_ES'),
12672
+ import('@uppy/locales/lib/en_US'),
12673
+ import('@uppy/dashboard'),
12674
+ import('@uppy/xhr-upload')
12675
+ ]);
12676
+ const ES = {
12677
+ ...es_ES,
12678
+ strings: {
12679
+ ...es_ES.strings,
12680
+ noDuplicates: 'Archivo duplicado: \'%{fileName}\'',
12681
+ browseFiles: 'buscar archivo',
12682
+ dropPasteFiles: 'Soltar archivo aquí, pegar o %{browseFiles}'
12683
+ }
12684
+ };
12685
+ const EN = {
12686
+ ...en_US,
12687
+ strings: {
12688
+ ...en_US.strings,
12689
+ noDuplicates: 'Duplicated file: \'%{fileName}\'',
12690
+ browseFiles: 'browse file',
12691
+ dropPasteFiles: 'Drop a file here or %{browseFiles}'
12692
+ }
12693
+ };
12659
12694
  const locale = data.language === 'es' ? ES : EN;
12660
12695
  this.#disableLocalFiles = data.disableLocalFiles;
12661
- this.#uppy = new Uppy({
12696
+ this.#uppy = new UppyConstructor({
12662
12697
  locale,
12663
12698
  infoTimeout: 2500,
12664
12699
  restrictions: {
@@ -12786,6 +12821,10 @@ class BizyFileUploaderService {
12786
12821
  }
12787
12822
  this.#uppy.cancelAll();
12788
12823
  };
12824
+ destroy = () => {
12825
+ this.#uppy?.destroy();
12826
+ this.#uppy = null;
12827
+ };
12789
12828
  #normalizeLoadFile = (data) => {
12790
12829
  if (this.#isLoadFile(data)) {
12791
12830
  return data;
@@ -12870,10 +12909,11 @@ class BizyFileUploaderComponent {
12870
12909
  #inputFiles = [];
12871
12910
  #inputFileIds = new Map();
12872
12911
  #isFileUploaderReady = false;
12912
+ #destroyed = false;
12873
12913
  TEMPLATE_ID = 'bizy-file-uploader-template';
12874
- ngAfterViewInit() {
12914
+ async ngAfterViewInit() {
12875
12915
  const allowedFileTypes = this.#getAllowedFileTypes();
12876
- this.#fileUploader.createFileUploader({
12916
+ await this.#fileUploader.createFileUploader({
12877
12917
  maxFileSize: this.maxFileSize,
12878
12918
  minFileSize: this.minFileSize,
12879
12919
  maxTotalFileSize: this.maxTotalFileSize,
@@ -12891,6 +12931,10 @@ class BizyFileUploaderComponent {
12891
12931
  enableUpload: this.mode === BIZY_FILE_UPLOADER_MODE.UPLOAD,
12892
12932
  headers: this.headers,
12893
12933
  });
12934
+ if (this.#destroyed) {
12935
+ this.#fileUploader.destroy();
12936
+ return;
12937
+ }
12894
12938
  if (this.upload) {
12895
12939
  this.#subscription.add(this.upload.subscribe(data => {
12896
12940
  if (this.#files.size === 0 || (this.minNumberOfFiles && this.#files.size < this.minNumberOfFiles)) {
@@ -13009,7 +13053,8 @@ class BizyFileUploaderComponent {
13009
13053
  };
13010
13054
  getNativeElement = () => this.#elementRef?.nativeElement;
13011
13055
  ngOnDestroy() {
13012
- this.#fileUploader.cleanAllFiles();
13056
+ this.#destroyed = true;
13057
+ this.#fileUploader.destroy();
13013
13058
  this.#subscription.unsubscribe();
13014
13059
  }
13015
13060
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFileUploaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -15338,11 +15383,11 @@ class BizyMenuOptionComponent {
15338
15383
  }
15339
15384
  getNativeElement = () => this.#elementRef?.nativeElement;
15340
15385
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyMenuOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15341
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.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 });
15386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.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%;height:var(--bizy-menu-option-height, 2rem);border:none;background-color:var(--bizy-menu-option-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-menu-option-column-gap, .5rem);padding:var(--bizy-menu-option-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 });
15342
15387
  }
15343
15388
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyMenuOptionComponent, decorators: [{
15344
15389
  type: Component,
15345
- args: [{ selector: 'bizy-menu-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-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"] }]
15390
+ args: [{ selector: 'bizy-menu-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-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%;height:var(--bizy-menu-option-height, 2rem);border:none;background-color:var(--bizy-menu-option-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-menu-option-column-gap, .5rem);padding:var(--bizy-menu-option-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"] }]
15346
15391
  }], propDecorators: { id: [{
15347
15392
  type: Input
15348
15393
  }], disabled: [{