@bizy/core 19.17.0 → 19.17.2

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.
@@ -3328,14 +3328,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
3328
3328
  }] } });
3329
3329
 
3330
3330
  class BizyMenuTitleComponent {
3331
+ id = `bizy-menu-title-${Math.random()}`;
3331
3332
  customClass = '';
3332
3333
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BizyMenuTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3333
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: BizyMenuTitleComponent, isStandalone: true, selector: "bizy-menu-title", inputs: { customClass: "customClass" }, ngImport: i0, template: "<span class=\"bizy-menu-title {{customClass}}\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem}.bizy-menu-title{background-color:var(--bizy-menu-title-background-color);color:var(--bizy-menu-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-menu-title-underline-color);text-underline-offset:.3rem;display:flex;align-items:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3334
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", 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 });
3334
3335
  }
3335
3336
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BizyMenuTitleComponent, decorators: [{
3336
3337
  type: Component,
3337
- args: [{ selector: 'bizy-menu-title', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"bizy-menu-title {{customClass}}\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem}.bizy-menu-title{background-color:var(--bizy-menu-title-background-color);color:var(--bizy-menu-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-menu-title-underline-color);text-underline-offset:.3rem;display:flex;align-items:center}\n"] }]
3338
- }], propDecorators: { customClass: [{
3338
+ args: [{ selector: 'bizy-menu-title', changeDetection: ChangeDetectionStrategy.OnPush, host: {
3339
+ '[id]': 'id',
3340
+ '[class]': 'customClass'
3341
+ }, 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"] }]
3342
+ }], propDecorators: { id: [{
3343
+ type: Input
3344
+ }], customClass: [{
3339
3345
  type: Input
3340
3346
  }] } });
3341
3347
 
@@ -7617,43 +7623,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
7617
7623
  }] } });
7618
7624
 
7619
7625
  class BizyLongPressDirective {
7620
- elementRef;
7626
+ #elementRef = inject(ElementRef);
7621
7627
  threshold = 500;
7622
- press = new EventEmitter();
7628
+ bizyLongPress = new EventEmitter();
7623
7629
  #event;
7624
- constructor(elementRef) {
7625
- this.elementRef = elementRef;
7626
- const mousedown = fromEvent(this.elementRef.nativeElement, 'mousedown').pipe(filter$1((event) => event.button == 0), // Only allow left button (Primary button)
7630
+ constructor() {
7631
+ const mousedown = fromEvent(this.#elementRef.nativeElement, 'mousedown').pipe(filter$1((event) => event.button == 0), // Only allow left button (Primary button)
7627
7632
  map(() => true) // turn on threshold counter
7628
7633
  );
7629
- const touchstart = fromEvent(this.elementRef.nativeElement, 'touchstart').pipe(map(() => true));
7630
- const touchEnd = fromEvent(this.elementRef.nativeElement, 'touchend').pipe(map(() => false));
7634
+ const touchstart = fromEvent(this.#elementRef.nativeElement, 'touchstart').pipe(map(() => true));
7635
+ const touchEnd = fromEvent(this.#elementRef.nativeElement, 'touchend').pipe(map(() => false));
7631
7636
  const mouseup = fromEvent(window, 'mouseup').pipe(filter$1((event) => event.button == 0), // Only allow left button (Primary button)
7632
7637
  map(() => false) // reset threshold counter
7633
7638
  );
7634
7639
  this.#event = merge(mousedown, mouseup, touchstart, touchEnd)
7635
7640
  .pipe(switchMap(state => (state ? timer(this.threshold, 100) : of(null))), filter$1(value => Boolean(value)))
7636
- .subscribe(() => this.press.emit());
7641
+ .subscribe(() => this.bizyLongPress.emit());
7637
7642
  }
7638
7643
  ngOnDestroy() {
7639
7644
  if (this.#event) {
7640
7645
  this.#event.unsubscribe();
7641
7646
  }
7642
7647
  }
7643
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BizyLongPressDirective, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
7644
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: BizyLongPressDirective, isStandalone: true, selector: "[bizyLongPress]", inputs: { threshold: "threshold" }, outputs: { press: "press" }, ngImport: i0 });
7648
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BizyLongPressDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7649
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: BizyLongPressDirective, isStandalone: true, selector: "[bizyLongPress]", inputs: { threshold: "threshold" }, outputs: { bizyLongPress: "bizyLongPress" }, ngImport: i0 });
7645
7650
  }
7646
7651
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BizyLongPressDirective, decorators: [{
7647
7652
  type: Directive,
7648
7653
  args: [{
7649
7654
  selector: '[bizyLongPress]',
7650
7655
  }]
7651
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
7652
- type: Inject,
7653
- args: [ElementRef]
7654
- }] }], propDecorators: { threshold: [{
7656
+ }], ctorParameters: () => [], propDecorators: { threshold: [{
7655
7657
  type: Input
7656
- }], press: [{
7658
+ }], bizyLongPress: [{
7657
7659
  type: Output
7658
7660
  }] } });
7659
7661