@alauda/ui 6.4.4-beta.2 → 6.4.5-beta.0

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.
@@ -5,7 +5,7 @@ import * as i2 from '@angular/common';
5
5
  import { DOCUMENT, CommonModule } from '@angular/common';
6
6
  import * as i2$1 from '@angular/cdk/a11y';
7
7
  import { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';
8
- import { Observable, ReplaySubject, share, startWith, map, distinctUntilChanged, Subject, takeUntil, filter, take, merge, fromEvent, combineLatest, debounceTime, switchMap, of, EMPTY, tap, BehaviorSubject, withLatestFrom, throttleTime, pluck, firstValueFrom, observeOn, animationFrameScheduler, repeat, takeWhile, endWith, Subscription } from 'rxjs';
8
+ import { Observable, ReplaySubject, share, startWith, map, distinctUntilChanged, Subject, takeUntil, filter, take, merge, fromEvent, combineLatest, debounceTime, switchMap, of, EMPTY, tap, BehaviorSubject, withLatestFrom, throttleTime, pluck, firstValueFrom, NEVER, observeOn, animationFrameScheduler, repeat, takeWhile, endWith, Subscription } from 'rxjs';
9
9
  import * as i1 from '@angular/common/http';
10
10
  import { HttpClient } from '@angular/common/http';
11
11
  import { trigger, state, style, transition, animate } from '@angular/animations';
@@ -9074,10 +9074,14 @@ class TableScrollShadowDirective {
9074
9074
  constructor(el, table) {
9075
9075
  this.el = el;
9076
9076
  this.table = table;
9077
+ this.scrollShadow$$ = new Subject();
9077
9078
  this.destroy$$ = new Subject();
9078
9079
  this.SCROLL_BEFORE_END_CLASS = true;
9079
9080
  this.SHADOW_CLASS = true;
9080
9081
  }
9082
+ set auiTableScrollShadow(scrollShadow) {
9083
+ this.scrollShadow$$.next(coerceAttrBoolean(scrollShadow));
9084
+ }
9081
9085
  get containerEl() {
9082
9086
  return this.el.nativeElement;
9083
9087
  }
@@ -9087,8 +9091,11 @@ class TableScrollShadowDirective {
9087
9091
  });
9088
9092
  }
9089
9093
  viewMutation() {
9090
- merge(observeResizeOn(this.containerEl), fromEvent(this.containerEl, 'scroll'))
9091
- .pipe(startWith(null), takeUntil(this.destroy$$))
9094
+ this.scrollShadow$$
9095
+ .pipe(switchMap(scrollShadow => scrollShadow
9096
+ ? merge(observeResizeOn(this.containerEl), fromEvent(this.containerEl, 'scroll')).pipe(startWith(null))
9097
+ : NEVER))
9098
+ .pipe(takeUntil(this.destroy$$))
9092
9099
  .subscribe(() => {
9093
9100
  this.mutateVerticalScroll();
9094
9101
  this.mutateHorizontalScroll();
@@ -9115,10 +9122,11 @@ class TableScrollShadowDirective {
9115
9122
  }
9116
9123
  ngOnDestroy() {
9117
9124
  this.destroy$$.next();
9125
+ this.destroy$$.complete();
9118
9126
  }
9119
9127
  }
9120
9128
  TableScrollShadowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TableScrollShadowDirective, deps: [{ token: i0.ElementRef }, { token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Directive });
9121
- TableScrollShadowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.8", type: TableScrollShadowDirective, selector: "[auiTableScrollShadow]", host: { properties: { "class.aui-table__scroll-shadow--before-end": "this.SCROLL_BEFORE_END_CLASS", "class.aui-table__scroll-shadow": "this.SHADOW_CLASS" } }, ngImport: i0 });
9129
+ TableScrollShadowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.8", type: TableScrollShadowDirective, selector: "[auiTableScrollShadow]", inputs: { auiTableScrollShadow: "auiTableScrollShadow" }, host: { properties: { "class.aui-table__scroll-shadow--before-end": "this.SCROLL_BEFORE_END_CLASS", "class.aui-table__scroll-shadow": "this.SHADOW_CLASS" } }, ngImport: i0 });
9122
9130
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TableScrollShadowDirective, decorators: [{
9123
9131
  type: Directive,
9124
9132
  args: [{
@@ -9126,7 +9134,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
9126
9134
  }]
9127
9135
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: TableComponent, decorators: [{
9128
9136
  type: Host
9129
- }] }]; }, propDecorators: { SCROLL_BEFORE_END_CLASS: [{
9137
+ }] }]; }, propDecorators: { auiTableScrollShadow: [{
9138
+ type: Input
9139
+ }], SCROLL_BEFORE_END_CLASS: [{
9130
9140
  type: HostBinding,
9131
9141
  args: [`class.${SCROLL_BEFORE_END_CLASS}`]
9132
9142
  }], SHADOW_CLASS: [{