@ts-core/angular 21.0.2 → 21.0.3
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.
|
@@ -6,7 +6,7 @@ import { LanguagePreloadLoader, LanguageProxyLoader, LanguageFileLoader } from '
|
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import * as _ from 'lodash';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { Component, ViewContainerRef, booleanAttribute, Input, Directive, Pipe, NgModule, PLATFORM_ID, Inject, Injectable, InjectionToken, numberAttribute, EventEmitter, HostListener, Output, RendererStyleFlags2, Optional, NgModuleFactory, RendererFactory2, APP_INITIALIZER } from '@angular/core';
|
|
9
|
+
import { Component, ViewContainerRef, booleanAttribute, Input, Directive, Pipe, NgModule, PLATFORM_ID, Inject, Injectable, InjectionToken, numberAttribute, EventEmitter, HostListener, Output, RendererStyleFlags2, signal, computed, Optional, NgModuleFactory, RendererFactory2, APP_INITIALIZER } from '@angular/core';
|
|
10
10
|
import { filter, takeUntil, BehaviorSubject, distinctUntilChanged, debounceTime, fromEvent, map, Subject } from 'rxjs';
|
|
11
11
|
import moment from 'moment';
|
|
12
12
|
import numeral from 'numeral';
|
|
@@ -6743,6 +6743,10 @@ class IWindowContent extends DestroyableContainer {
|
|
|
6743
6743
|
//
|
|
6744
6744
|
// --------------------------------------------------------------------------
|
|
6745
6745
|
_window;
|
|
6746
|
+
windowSignal;
|
|
6747
|
+
isOnTopSignal;
|
|
6748
|
+
isDisabledSignal;
|
|
6749
|
+
isMinimizedSignal;
|
|
6746
6750
|
// --------------------------------------------------------------------------
|
|
6747
6751
|
//
|
|
6748
6752
|
// Constructor
|
|
@@ -6751,6 +6755,10 @@ class IWindowContent extends DestroyableContainer {
|
|
|
6751
6755
|
constructor(container) {
|
|
6752
6756
|
super();
|
|
6753
6757
|
this.container = container;
|
|
6758
|
+
this.windowSignal = signal(null, ...(ngDevMode ? [{ debugName: "windowSignal" }] : []));
|
|
6759
|
+
this.isOnTopSignal = computed(() => this.windowSignal?.()?.isOnTopSignal?.() ?? false, ...(ngDevMode ? [{ debugName: "isOnTopSignal" }] : []));
|
|
6760
|
+
this.isDisabledSignal = computed(() => this.windowSignal?.()?.isDisabledSignal?.() ?? false, ...(ngDevMode ? [{ debugName: "isDisabledSignal" }] : []));
|
|
6761
|
+
this.isMinimizedSignal = computed(() => this.windowSignal?.()?.isMinimizedSignal?.() ?? false, ...(ngDevMode ? [{ debugName: "isMinimizedSignal" }] : []));
|
|
6754
6762
|
}
|
|
6755
6763
|
// --------------------------------------------------------------------------
|
|
6756
6764
|
//
|
|
@@ -6800,6 +6808,10 @@ class IWindowContent extends DestroyableContainer {
|
|
|
6800
6808
|
return;
|
|
6801
6809
|
}
|
|
6802
6810
|
super.destroy();
|
|
6811
|
+
this.windowSignal = null;
|
|
6812
|
+
this.isOnTopSignal = null;
|
|
6813
|
+
this.isDisabledSignal = null;
|
|
6814
|
+
this.isMinimizedSignal = null;
|
|
6803
6815
|
this.window = null;
|
|
6804
6816
|
this.container = null;
|
|
6805
6817
|
}
|
|
@@ -6814,21 +6826,12 @@ class IWindowContent extends DestroyableContainer {
|
|
|
6814
6826
|
get isOnTop() {
|
|
6815
6827
|
return !_.isNil(this.window) ? this.window.isOnTop : false;
|
|
6816
6828
|
}
|
|
6817
|
-
get isOnTopSignal() {
|
|
6818
|
-
return !_.isNil(this.window) ? this.window.isOnTopSignal : null;
|
|
6819
|
-
}
|
|
6820
6829
|
get isMinimized() {
|
|
6821
6830
|
return !_.isNil(this.window) ? this.window.isMinimized : false;
|
|
6822
6831
|
}
|
|
6823
|
-
get isMinimizedSignal() {
|
|
6824
|
-
return !_.isNil(this.window) ? this.window.isMinimizedSignal : null;
|
|
6825
|
-
}
|
|
6826
6832
|
get events() {
|
|
6827
6833
|
return !_.isNil(this.window) ? this.window.events : null;
|
|
6828
6834
|
}
|
|
6829
|
-
get isDisabledSignal() {
|
|
6830
|
-
return !_.isNil(this.window) ? this.window.isDisabledSignal : null;
|
|
6831
|
-
}
|
|
6832
6835
|
set isDisabled(value) {
|
|
6833
6836
|
if (!_.isNil(this.window)) {
|
|
6834
6837
|
this.window.isDisabled = value;
|
|
@@ -6859,6 +6862,7 @@ class IWindowContent extends DestroyableContainer {
|
|
|
6859
6862
|
return;
|
|
6860
6863
|
}
|
|
6861
6864
|
this._window = value;
|
|
6865
|
+
this.windowSignal?.set(value);
|
|
6862
6866
|
if (!_.isNil(value)) {
|
|
6863
6867
|
this.commitWindowProperties();
|
|
6864
6868
|
}
|