@pumpkin-tech/pumpkin-tech-ng 0.2.68 → 0.2.69

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.
@@ -9609,7 +9609,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9609
9609
 
9610
9610
  class PtechTabsComponent {
9611
9611
  ngZone;
9612
- renderer;
9613
9612
  tabs;
9614
9613
  tabsNav;
9615
9614
  tabsNavComponent;
@@ -9632,9 +9631,8 @@ class PtechTabsComponent {
9632
9631
  pendingScrollDistance = null;
9633
9632
  rafHandle = null;
9634
9633
  removeListeners = [];
9635
- constructor(ngZone, renderer) {
9634
+ constructor(ngZone) {
9636
9635
  this.ngZone = ngZone;
9637
- this.renderer = renderer;
9638
9636
  }
9639
9637
  get projectedTabs() {
9640
9638
  return this.tabs?.toArray() || [];
@@ -9655,8 +9653,24 @@ class PtechTabsComponent {
9655
9653
  // stays outside the zone, so the whole drag gesture runs without touching Angular's CD at
9656
9654
  // all; we deliberately re-enter the zone once at the end (see `onPointerEnd`) to let
9657
9655
  // Material's paginator state (arrows, disabled bounds) resync normally.
9656
+ //
9657
+ // Native addEventListener (not Renderer2.listen, which has no options parameter) so we can
9658
+ // force `passive: false` on pointerdown/pointermove. Without that, a touch-sourced pointer
9659
+ // stream is fair game for the platform to mark passive by default depending on the host
9660
+ // app's own zone.js/event config - and a passive listener's `preventDefault()` is silently
9661
+ // dropped, letting the browser's own touch-gesture recognizer keep contesting the same
9662
+ // gesture our JS is already driving. Being explicit here removes that as a variable
9663
+ // regardless of what any consuming app configures elsewhere.
9658
9664
  this.ngZone.runOutsideAngular(() => {
9659
- this.removeListeners.push(this.renderer.listen(nav, 'pointerdown', (event) => this.onPointerDown(event)), this.renderer.listen(nav, 'pointermove', (event) => this.onPointerMove(event)), this.renderer.listen(nav, 'pointerup', (event) => this.onPointerEnd(event)), this.renderer.listen(nav, 'pointercancel', (event) => this.onPointerEnd(event)), this.renderer.listen(nav, 'lostpointercapture', (event) => this.onPointerEnd(event)));
9665
+ const addListener = (type, handler, passive) => {
9666
+ nav.addEventListener(type, handler, { passive });
9667
+ this.removeListeners.push(() => nav.removeEventListener(type, handler));
9668
+ };
9669
+ addListener('pointerdown', event => this.onPointerDown(event), false);
9670
+ addListener('pointermove', event => this.onPointerMove(event), false);
9671
+ addListener('pointerup', event => this.onPointerEnd(event), true);
9672
+ addListener('pointercancel', event => this.onPointerEnd(event), true);
9673
+ addListener('lostpointercapture', event => this.onPointerEnd(event), true);
9660
9674
  });
9661
9675
  }
9662
9676
  ngOnDestroy() {
@@ -9821,7 +9835,7 @@ class PtechTabsComponent {
9821
9835
  tab.action = config.action;
9822
9836
  return tab;
9823
9837
  }
9824
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
9838
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
9825
9839
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTabsComponent, isStandalone: true, selector: "ptech-tabs", inputs: { scrollable: "scrollable" }, outputs: { selectedTabChange: "selectedTabChange" }, queries: [{ propertyName: "tabs", predicate: PtechTabComponent }], viewQueries: [{ propertyName: "tabsNav", first: true, predicate: ["tabsNav"], descendants: true, read: ElementRef }, { propertyName: "tabsNavComponent", first: true, predicate: ["tabsNav"], descendants: true }], ngImport: i0, template: `
9826
9840
  <nav #tabsNav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
9827
9841
  <a mat-tab-link
@@ -9893,7 +9907,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9893
9907
  </ng-container>
9894
9908
  </mat-tab-nav-panel>
9895
9909
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-tabs-nav{background:var(--ptech-tabs-background, transparent);border-bottom:1px solid var(--ptech-tab-border-color, var(--app-border-color, rgba(0,0,0,.12)));--mat-tab-background-color: var(--ptech-tabs-background, transparent);--mat-tab-foreground-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-divider-color: var(--ptech-tab-border-color, transparent);--mat-tab-inactive-label-text-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-inactive-focus-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-hover-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-ripple-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-active-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-focus-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-hover-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-ripple-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-focus-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-hover-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-disabled-ripple-color: var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)));--mat-tab-pagination-icon-color: var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;touch-action:pan-y;cursor:grab;scrollbar-width:thin}.ptech-tabs-nav.scrollable.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.ptech-tabs-nav.scrollable.dragging ::ng-deep .mat-mdc-tab-list{transition:none!important}.ptech-tabs-panel{display:block;padding-top:var(--ptech-tabs-content-gap, 24px)}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content;color:var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)))}a[mat-tab-link] mat-icon{color:var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}a[mat-tab-link].mdc-tab--active{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link].mdc-tab--active mat-icon{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link]:hover:not(.mat-mdc-tab-disabled):not(.mdc-tab--active){color:var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)))}a[mat-tab-link]:focus-visible{outline:2px solid var(--ptech-tab-active-color, var(--app-primary, #3f51b5));outline-offset:-2px;border-radius:4px}a[mat-tab-link].mat-mdc-tab-disabled{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important;pointer-events:none}a[mat-tab-link].mat-mdc-tab-disabled mat-icon{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--app-chip-bg, rgba(0,0,0,.08));font-size:12px}\n"] }]
9896
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }], propDecorators: { tabs: [{
9910
+ }], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { tabs: [{
9897
9911
  type: ContentChildren,
9898
9912
  args: [PtechTabComponent]
9899
9913
  }], tabsNav: [{