@ts-core/angular 21.0.0 → 21.0.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.
- package/README.MD +1041 -0
- package/fesm2022/ts-core-angular.mjs +274 -263
- package/fesm2022/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ts-core-angular.d.ts +19 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-core/angular",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
4
4
|
"description": "Angular frontend framework utilities and components with TypeScript support, including directives, services, and window management",
|
|
5
5
|
"main": "public-api.js",
|
|
6
6
|
"author": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Loadable, LoadableStatus, Destroyable, IDestroyable, DestroyableContainer, ClassType, ObservableData, PromiseHandler, ExtendedError, IUIDable, FilterableMapCollection, Logger, MapCollection, Transport, TransportLocal, ILogger, ITransportSettings, ITransportCommand, ITransportCommandOptions, ITransportEvent, TransportEvent, LoggerLevel } from '@ts-core/common';
|
|
2
2
|
import { NativeWindowService, SettingsServiceBase, ThemeService, LanguageService, ICookieOptions, ICookieService, ILanguageServiceOptions, ThemeAssetService, IThemeServiceOptions } from '@ts-core/frontend';
|
|
3
3
|
import { ILanguageLoader, LanguageLoadFunction, ILanguageProjectSettings } from '@ts-core/language';
|
|
4
|
-
import { Router, ActivatedRoute, NavigationExtras, UrlTree, ActivatedRouteSnapshot, Resolve, RouterStateSnapshot, CanActivate, MaybeAsync, GuardResult,
|
|
4
|
+
import { Router, ActivatedRoute, NavigationExtras, UrlTree, ActivatedRouteSnapshot, Resolve, RouterStateSnapshot, CanActivate, MaybeAsync, GuardResult, CanDeactivateFn, CanDeactivate } from '@angular/router';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { AfterViewInit, ElementRef, ViewContainerRef, InjectionToken, Injector, PipeTransform, ModuleWithProviders, EventEmitter, TemplateRef, EmbeddedViewRef, ChangeDetectorRef, Renderer2, RendererStyleFlags2, NgModuleFactory, Type, NgModuleRef, Compiler, RendererFactory2 } from '@angular/core';
|
|
6
|
+
import { AfterViewInit, ElementRef, ViewContainerRef, Signal, InjectionToken, Injector, PipeTransform, ModuleWithProviders, EventEmitter, TemplateRef, EmbeddedViewRef, ChangeDetectorRef, Renderer2, RendererStyleFlags2, NgModuleFactory, Type, NgModuleRef, Compiler, RendererFactory2 } from '@angular/core';
|
|
7
7
|
import { Observable, BehaviorSubject, Subscription } from 'rxjs';
|
|
8
8
|
import * as i8 from '@angular/common';
|
|
9
9
|
import { DatePipe } from '@angular/common';
|
|
@@ -189,8 +189,11 @@ declare abstract class IWindowContent<T = any> extends DestroyableContainer impl
|
|
|
189
189
|
destroy(): void;
|
|
190
190
|
get data(): T;
|
|
191
191
|
get isOnTop(): boolean;
|
|
192
|
+
get isOnTopSignal(): Signal<boolean>;
|
|
192
193
|
get isMinimized(): boolean;
|
|
194
|
+
get isMinimizedSignal(): Signal<boolean>;
|
|
193
195
|
get events(): Observable<string>;
|
|
196
|
+
get isDisabledSignal(): Signal<boolean>;
|
|
194
197
|
set isDisabled(value: boolean);
|
|
195
198
|
get isDisabled(): boolean;
|
|
196
199
|
get element(): ElementRef;
|
|
@@ -203,6 +206,18 @@ declare abstract class IWindowContent<T = any> extends DestroyableContainer impl
|
|
|
203
206
|
}
|
|
204
207
|
|
|
205
208
|
declare abstract class IWindow<T = any> extends Destroyable {
|
|
209
|
+
isOnTop: boolean;
|
|
210
|
+
isDisabled: boolean;
|
|
211
|
+
isMinimized: boolean;
|
|
212
|
+
readonly events: Observable<string>;
|
|
213
|
+
readonly wrapper: HTMLElement;
|
|
214
|
+
readonly backdrop: HTMLElement;
|
|
215
|
+
readonly container: HTMLElement;
|
|
216
|
+
readonly config: IWindowConfig<T>;
|
|
217
|
+
readonly content: IWindowContent<T>;
|
|
218
|
+
readonly isOnTopSignal: Signal<boolean>;
|
|
219
|
+
readonly isDisabledSignal: Signal<boolean>;
|
|
220
|
+
readonly isMinimizedSignal: Signal<boolean>;
|
|
206
221
|
abstract close(): void;
|
|
207
222
|
abstract blink(): void;
|
|
208
223
|
abstract shake(): void;
|
|
@@ -218,15 +233,6 @@ declare abstract class IWindow<T = any> extends Destroyable {
|
|
|
218
233
|
abstract setY(value: number): void;
|
|
219
234
|
abstract move(x: number, y: number): void;
|
|
220
235
|
abstract emit(event: string): void;
|
|
221
|
-
isOnTop: boolean;
|
|
222
|
-
isDisabled: boolean;
|
|
223
|
-
isMinimized: boolean;
|
|
224
|
-
readonly events: Observable<string>;
|
|
225
|
-
readonly container: HTMLElement;
|
|
226
|
-
readonly wrapper: HTMLElement;
|
|
227
|
-
readonly backdrop: HTMLElement;
|
|
228
|
-
readonly config: IWindowConfig<T>;
|
|
229
|
-
readonly content: IWindowContent<T>;
|
|
230
236
|
}
|
|
231
237
|
declare enum WindowEvent {
|
|
232
238
|
OPENED = "OPENED",
|
|
@@ -234,9 +240,9 @@ declare enum WindowEvent {
|
|
|
234
240
|
CONTENT_READY = "CONTENT_READY",
|
|
235
241
|
MOVED = "MOVED",
|
|
236
242
|
RESIZED = "RESIZED",
|
|
237
|
-
DISABLED_CHANGED = "DISABLED_CHANGED",
|
|
238
|
-
MINIMIZED_CHANGED = "MINIMIZED_CHANGED",
|
|
239
243
|
IS_ON_TOP_CHANGED = "IS_ON_TOP_CHANGED",
|
|
244
|
+
IS_DISABLED_CHANGED = "IS_DISABLED_CHANGED",
|
|
245
|
+
IS_MINIMIZED_CHANGED = "IS_MINIMIZED_CHANGED",
|
|
240
246
|
EXPAND = "EXPAND",
|
|
241
247
|
SET_ON_TOP = "SET_ON_TOP"
|
|
242
248
|
}
|