ngx-axis-appforge 0.0.35 → 0.0.36

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.
@@ -763,11 +763,12 @@ class Preview {
763
763
  this.refresh();
764
764
  }
765
765
  });
766
+ let injectUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? "";
766
767
  effect(() => {
767
768
  this.fileBaseUrlSub?.unsubscribe();
768
769
  let url = this.fileBaseUrl() ?? "";
769
770
  if (!url) {
770
- url = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? "";
771
+ url = injectUrl;
771
772
  }
772
773
  if (url instanceof BehaviorSubject) {
773
774
  this.fileBaseUrlSub = url.subscribe(this.fileBaseUrlSubject);
@@ -776,11 +777,12 @@ class Preview {
776
777
  this.fileBaseUrlSubject.next(url);
777
778
  }
778
779
  });
780
+ let injectData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });
779
781
  effect(() => {
780
782
  this.httpContextDataSub?.unsubscribe();
781
783
  let data = this.httpContextData();
782
784
  if (!data) {
783
- data = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });
785
+ data = injectData;
784
786
  }
785
787
  if (data instanceof BehaviorSubject) {
786
788
  this.httpContextDataSub = data.subscribe(this.httpContextDataSubject);
@@ -1321,8 +1323,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
1321
1323
  class Design extends ValueAccess {
1322
1324
  constructor() {
1323
1325
  super();
1324
- this.addSubscribe(this.changeSubject.pipe(tap(() => {
1325
- }))
1326
+ this.addSubscribe(this.changeSubject
1326
1327
  .pipe(debounceTime(300))
1327
1328
  .subscribe((value) => this.onChangeOptionsConfig(value)));
1328
1329
  }