@ts-core/angular 19.0.14 → 21.0.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.
- package/fesm2022/ts-core-angular.mjs +328 -262
- package/fesm2022/ts-core-angular.mjs.map +1 -1
- package/package.json +26 -16
- package/types/ts-core-angular.d.ts +1824 -0
- package/ApplicationInjector.d.ts +0 -2
- package/VIModule.d.ts +0 -60
- package/application/ApplicationComponent.d.ts +0 -13
- package/application/ApplicationComponentBase.d.ts +0 -21
- package/application/ApplicationInitializerBase.d.ts +0 -35
- package/application/MessageComponentBase.d.ts +0 -15
- package/asset/AssetBackgroundDirective.d.ts +0 -33
- package/asset/AssetBackgroundPipe.d.ts +0 -7
- package/asset/AssetFilePipe.d.ts +0 -7
- package/asset/AssetIconPipe.d.ts +0 -7
- package/asset/AssetImagePipe.d.ts +0 -7
- package/asset/AssetModule.d.ts +0 -14
- package/asset/AssetSoundPipe.d.ts +0 -7
- package/asset/AssetVideoPipe.d.ts +0 -7
- package/bottomSheet/BottomSheetService.d.ts +0 -21
- package/cookie/CookieModule.d.ts +0 -13
- package/cookie/CookieOptions.d.ts +0 -10
- package/cookie/CookieService.d.ts +0 -13
- package/directive/AspectRatioResizeDirective.d.ts +0 -29
- package/directive/AutoScrollBottomDirective.d.ts +0 -24
- package/directive/ClickToCopyDirective.d.ts +0 -11
- package/directive/ClickToSelectDirective.d.ts +0 -11
- package/directive/FocusDirective.d.ts +0 -12
- package/directive/HTMLContentTitleDirective.d.ts +0 -14
- package/directive/HTMLTitleDirective.d.ts +0 -14
- package/directive/InfiniteScrollDirective.d.ts +0 -15
- package/directive/IsBrowserDirective.d.ts +0 -9
- package/directive/IsServerDirective.d.ts +0 -9
- package/directive/NullEmptyValueDirective.d.ts +0 -9
- package/directive/ResizeDirective.d.ts +0 -20
- package/directive/ScrollCheckDirective.d.ts +0 -24
- package/directive/ScrollDirective.d.ts +0 -24
- package/directive/SelectOnFocusDirective.d.ts +0 -11
- package/directive/StructureDirective.d.ts +0 -13
- package/directive/UppercaseValueDirective.d.ts +0 -9
- package/index.d.ts +0 -5
- package/language/LanguageDirective.d.ts +0 -21
- package/language/LanguageHasDirective.d.ts +0 -18
- package/language/LanguageModule.d.ts +0 -20
- package/language/LanguagePipe.d.ts +0 -18
- package/language/LanguagePipeHas.d.ts +0 -15
- package/language/LanguagePipeHasPure.d.ts +0 -12
- package/language/LanguagePipePure.d.ts +0 -12
- package/language/LanguageRequireResolver.d.ts +0 -4
- package/language/LanguageResolver.d.ts +0 -8
- package/language/LanguageToggleDirective.d.ts +0 -12
- package/list/IListItem.d.ts +0 -12
- package/list/ListItem.d.ts +0 -39
- package/list/ListItems.d.ts +0 -23
- package/list/select/ISelectListItem.d.ts +0 -6
- package/list/select/RouterSelectListItems.d.ts +0 -14
- package/list/select/SelectListItem.d.ts +0 -16
- package/list/select/SelectListItems.d.ts +0 -26
- package/login/LoginGuard.d.ts +0 -12
- package/login/LoginIfCanGuard.d.ts +0 -12
- package/login/LoginNotGuard.d.ts +0 -12
- package/login/LoginRequireResolver.d.ts +0 -8
- package/login/LoginResolver.d.ts +0 -8
- package/login/LoginServiceBase.d.ts +0 -44
- package/login/LoginTokenStorage.d.ts +0 -7
- package/login/Loginable.d.ts +0 -10
- package/manager/FocusManager.d.ts +0 -11
- package/manager/ResizeManager.d.ts +0 -20
- package/menu/MenuItem.d.ts +0 -6
- package/menu/MenuItemBase.d.ts +0 -15
- package/menu/MenuItems.d.ts +0 -20
- package/menu/NavigationMenuItem.d.ts +0 -7
- package/module/LazyModuleLoader.d.ts +0 -23
- package/notification/INotification.d.ts +0 -27
- package/notification/INotificationConfig.d.ts +0 -9
- package/notification/INotificationContent.d.ts +0 -31
- package/notification/NotificationConfig.d.ts +0 -14
- package/notification/NotificationService.d.ts +0 -23
- package/notification/NotificationServiceEvent.d.ts +0 -6
- package/pipe/CamelCasePipe.d.ts +0 -7
- package/pipe/FinancePipe.d.ts +0 -9
- package/pipe/MomentDateAdaptivePipe.d.ts +0 -12
- package/pipe/MomentDateFromNowPipe.d.ts +0 -8
- package/pipe/MomentDatePipe.d.ts +0 -13
- package/pipe/MomentTimePipe.d.ts +0 -8
- package/pipe/NgModelErrorPipe.d.ts +0 -12
- package/pipe/PrettifyPipe.d.ts +0 -9
- package/pipe/SanitizePipe.d.ts +0 -9
- package/pipe/StartCasePipe.d.ts +0 -7
- package/pipe/TimePipe.d.ts +0 -8
- package/pipe/TruncatePipe.d.ts +0 -7
- package/public-api.d.ts +0 -123
- package/question/IQuestion.d.ts +0 -31
- package/question/QuestionManager.d.ts +0 -25
- package/resolver/LoadableResolver.d.ts +0 -9
- package/service/PipeServiceBase.d.ts +0 -44
- package/service/PlatformService.d.ts +0 -11
- package/service/RouterServiceBase.d.ts +0 -46
- package/service/ServiceWorkerService.d.ts +0 -22
- package/service/route/CanDeactivateGuard.d.ts +0 -6
- package/service/route/IRouterDeactivatable.d.ts +0 -5
- package/storage/BooleanValueStorage.d.ts +0 -5
- package/storage/ClassTypeValueStorage.d.ts +0 -10
- package/storage/DateValueStorage.d.ts +0 -11
- package/storage/IValueStorage.d.ts +0 -8
- package/storage/JSONValueStorage.d.ts +0 -5
- package/storage/LocalStorageService.d.ts +0 -12
- package/storage/ValueStorage.d.ts +0 -18
- package/theme/ThemeAssetBackgroundDirective.d.ts +0 -13
- package/theme/ThemeAssetDirective.d.ts +0 -56
- package/theme/ThemeAssetIconDirective.d.ts +0 -13
- package/theme/ThemeAssetImageDirective.d.ts +0 -13
- package/theme/ThemeModule.d.ts +0 -20
- package/theme/ThemeStyleDirective.d.ts +0 -27
- package/theme/ThemeStyleHoverDirective.d.ts +0 -23
- package/theme/ThemeToggleDirective.d.ts +0 -11
- package/transport/TransportLazy.d.ts +0 -13
- package/transport/TransportLazyModule.d.ts +0 -16
- package/transport/TransportLazyModuleLoadedEvent.d.ts +0 -6
- package/user/IUser.d.ts +0 -7
- package/user/UserServiceBase.d.ts +0 -27
- package/util/ViewUtil.d.ts +0 -71
- package/window/IWindow.d.ts +0 -42
- package/window/IWindowConfig.d.ts +0 -43
- package/window/IWindowContent.d.ts +0 -35
- package/window/WindowBase.d.ts +0 -35
- package/window/WindowClosedError.d.ts +0 -6
- package/window/WindowConfig.d.ts +0 -62
- package/window/WindowService.d.ts +0 -21
- package/window/WindowServiceEvent.d.ts +0 -7
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguageDirective extends Destroyable {
|
|
6
|
-
protected element: ElementRef;
|
|
7
|
-
protected language: LanguageService;
|
|
8
|
-
isNeedTitle: boolean;
|
|
9
|
-
protected _key: string;
|
|
10
|
-
protected _params: any;
|
|
11
|
-
constructor(element: ElementRef, language: LanguageService);
|
|
12
|
-
protected translate: () => void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
set key(value: string);
|
|
15
|
-
get key(): string;
|
|
16
|
-
set params(value: any);
|
|
17
|
-
get params(): any;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LanguageDirective, "[vi-translate]", never, { "isNeedTitle": { "alias": "isNeedTitle"; "required": false; }; "key": { "alias": "vi-translate"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
-
static ngAcceptInputType_isNeedTitle: unknown;
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
3
|
-
import { StructureDirective } from '../directive/StructureDirective';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguageHasDirective<T = any> extends StructureDirective<T> {
|
|
6
|
-
protected language: LanguageService;
|
|
7
|
-
protected _viTranslateHas: string;
|
|
8
|
-
protected _isOnlyIfNotEmpty: boolean;
|
|
9
|
-
constructor(template: TemplateRef<T>, container: ViewContainerRef, language: LanguageService);
|
|
10
|
-
protected check(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
set viTranslateHas(value: string);
|
|
13
|
-
get viTranslateHas(): string;
|
|
14
|
-
set viTranslateHasIsOnlyIfNotEmpty(value: boolean);
|
|
15
|
-
get viTranslateHasIsOnlyIfNotEmpty(): boolean;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageHasDirective<any>, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LanguageHasDirective<any>, "[viTranslateHas]", never, { "viTranslateHas": { "alias": "viTranslateHas"; "required": false; }; "viTranslateHasIsOnlyIfNotEmpty": { "alias": "viTranslateHasIsOnlyIfNotEmpty"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { ICookieService } from '@ts-core/frontend';
|
|
3
|
-
import { ILanguageServiceOptions, LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "./LanguagePipe";
|
|
6
|
-
import * as i2 from "./LanguagePipePure";
|
|
7
|
-
import * as i3 from "./LanguagePipeHas";
|
|
8
|
-
import * as i4 from "./LanguagePipeHasPure";
|
|
9
|
-
import * as i5 from "./LanguageToggleDirective";
|
|
10
|
-
import * as i6 from "./LanguageHasDirective";
|
|
11
|
-
import * as i7 from "./LanguageDirective";
|
|
12
|
-
import * as i8 from "../cookie/CookieModule";
|
|
13
|
-
export declare class LanguageModule {
|
|
14
|
-
static forRoot(options?: ILanguageServiceOptions): ModuleWithProviders<LanguageModule>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LanguageModule, [typeof i1.LanguagePipe, typeof i2.LanguagePipePure, typeof i3.LanguagePipeHas, typeof i4.LanguagePipeHasPure, typeof i5.LanguageToggleDirective, typeof i6.LanguageHasDirective, typeof i7.LanguageDirective], [typeof i8.CookieModule], [typeof i1.LanguagePipe, typeof i2.LanguagePipePure, typeof i3.LanguagePipeHas, typeof i4.LanguagePipeHasPure, typeof i5.LanguageToggleDirective, typeof i6.LanguageHasDirective, typeof i7.LanguageDirective]>;
|
|
17
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LanguageModule>;
|
|
18
|
-
}
|
|
19
|
-
export declare function languageServiceFactory(cookie: ICookieService, options?: ILanguageServiceOptions): LanguageService;
|
|
20
|
-
export declare const LANGUAGE_OPTIONS: InjectionToken<ILanguageServiceOptions>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, PipeTransform } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguagePipe extends Destroyable implements PipeTransform {
|
|
6
|
-
private detection;
|
|
7
|
-
private language;
|
|
8
|
-
static removeTags(item: string): string;
|
|
9
|
-
private lastKey;
|
|
10
|
-
private lastParams;
|
|
11
|
-
private lastValue;
|
|
12
|
-
constructor(detection: ChangeDetectorRef, language: LanguageService);
|
|
13
|
-
private lastValueUpdate;
|
|
14
|
-
transform(key: string, params?: any): string;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguagePipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LanguagePipe, "viTranslate", false>;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguagePipeHas extends Destroyable implements PipeTransform {
|
|
6
|
-
private language;
|
|
7
|
-
private key;
|
|
8
|
-
private _value;
|
|
9
|
-
constructor(language: LanguageService);
|
|
10
|
-
private valueUpdate;
|
|
11
|
-
transform(key: string): boolean;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguagePipeHas, never>;
|
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LanguagePipeHas, "viTranslateHas", false>;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguagePipeHasPure extends Destroyable implements PipeTransform {
|
|
6
|
-
private language;
|
|
7
|
-
constructor(language: LanguageService);
|
|
8
|
-
transform(key: string): boolean;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguagePipeHasPure, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LanguagePipeHasPure, "viTranslateHasPure", false>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguagePipePure extends Destroyable implements PipeTransform {
|
|
6
|
-
private language;
|
|
7
|
-
constructor(language: LanguageService);
|
|
8
|
-
transform(key: string, params?: any): string;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguagePipePure, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LanguagePipePure, "viTranslatePure", false>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
2
|
-
import { LanguageRequireResolver } from './LanguageRequireResolver';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LanguageResolver extends LanguageRequireResolver {
|
|
5
|
-
constructor(service: LanguageService);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageResolver, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageResolver>;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Destroyable } from '@ts-core/common';
|
|
2
|
-
import { LanguageService, SettingsServiceBase } from '@ts-core/frontend';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LanguageToggleDirective extends Destroyable {
|
|
5
|
-
private language;
|
|
6
|
-
private settings;
|
|
7
|
-
constructor(language: LanguageService, settings: SettingsServiceBase);
|
|
8
|
-
protected clickHandler(): void;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageToggleDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LanguageToggleDirective, "[vi-language-toggle]", never, {}, {}, never, never, false, never>;
|
|
12
|
-
}
|
package/list/IListItem.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IUIDable } from '@ts-core/common';
|
|
2
|
-
export interface IListItem<T = any> extends IUIDable {
|
|
3
|
-
label: string;
|
|
4
|
-
sortIndex: number;
|
|
5
|
-
isEnabled: boolean;
|
|
6
|
-
translationId: string;
|
|
7
|
-
data?: T;
|
|
8
|
-
iconId?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
action?: (item: IListItem, ...params: any[]) => void;
|
|
11
|
-
checkEnabled?: (item: IListItem, ...params: any[]) => boolean;
|
|
12
|
-
}
|
package/list/ListItem.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IListItem } from './IListItem';
|
|
2
|
-
import { IDestroyable } from '@ts-core/common';
|
|
3
|
-
export declare class ListItem<T = any> implements IListItem<T>, IDestroyable {
|
|
4
|
-
protected _uid: string;
|
|
5
|
-
protected _data: T;
|
|
6
|
-
protected _label: string;
|
|
7
|
-
protected _iconId: string;
|
|
8
|
-
protected _className: string;
|
|
9
|
-
protected _sortIndex: number;
|
|
10
|
-
protected _isEnabled: boolean;
|
|
11
|
-
protected _translationId: string;
|
|
12
|
-
action: (item: IListItem, ...params: any[]) => void;
|
|
13
|
-
checkEnabled: (item: IListItem, ...params: any[]) => boolean;
|
|
14
|
-
constructor(translationId: string, sortIndex?: number, data?: T, iconId?: string);
|
|
15
|
-
protected commitDataProperties(): void;
|
|
16
|
-
protected commitLabelProperties(): void;
|
|
17
|
-
protected commitIsEnabledProperties(): void;
|
|
18
|
-
protected commitClassNameProperties(): void;
|
|
19
|
-
protected commitIconIdProperties(): void;
|
|
20
|
-
protected commitSortIndexProperties(): void;
|
|
21
|
-
protected commitTranslationIdProperties(): void;
|
|
22
|
-
protected getUid(): string;
|
|
23
|
-
destroy(): void;
|
|
24
|
-
get uid(): string;
|
|
25
|
-
get sortIndex(): number;
|
|
26
|
-
set sortIndex(value: number);
|
|
27
|
-
get isEnabled(): boolean;
|
|
28
|
-
set isEnabled(value: boolean);
|
|
29
|
-
get label(): string;
|
|
30
|
-
set label(value: string);
|
|
31
|
-
get translationId(): string;
|
|
32
|
-
set translationId(value: string);
|
|
33
|
-
get iconId(): string;
|
|
34
|
-
set iconId(value: string);
|
|
35
|
-
get className(): string;
|
|
36
|
-
set className(value: string);
|
|
37
|
-
get data(): T;
|
|
38
|
-
set data(value: T);
|
|
39
|
-
}
|
package/list/ListItems.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FilterableMapCollection } from '@ts-core/common';
|
|
2
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
3
|
-
import { IListItem } from './IListItem';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
export declare class ListItems<U extends IListItem<V>, V = any> extends FilterableMapCollection<U> {
|
|
6
|
-
private language;
|
|
7
|
-
protected lastRefreshParams: Array<any>;
|
|
8
|
-
protected languageSubscription: Subscription;
|
|
9
|
-
protected _isAllEnabled: boolean;
|
|
10
|
-
protected _isLeastOneEnabled: boolean;
|
|
11
|
-
constructor(language: LanguageService, isAutoTranslate?: boolean);
|
|
12
|
-
protected translate: (item: U) => void;
|
|
13
|
-
protected translateItems: () => void;
|
|
14
|
-
protected translateIfNeed: (item: U) => void;
|
|
15
|
-
protected translateItemsIfNeed: () => void;
|
|
16
|
-
protected sort(): void;
|
|
17
|
-
complete(): void;
|
|
18
|
-
refresh(...params: any[]): void;
|
|
19
|
-
actionItem(item: U): void;
|
|
20
|
-
destroy(): void;
|
|
21
|
-
get isAllEnabled(): boolean;
|
|
22
|
-
get isLeastOneEnabled(): boolean;
|
|
23
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
2
|
-
import { SelectListItems } from './SelectListItems';
|
|
3
|
-
import { ISelectListItem } from './ISelectListItem';
|
|
4
|
-
import { RouterServiceBase } from '../../service/RouterServiceBase';
|
|
5
|
-
export declare class RouterSelectListItems<U = string> extends SelectListItems<ISelectListItem<U>, U> {
|
|
6
|
-
protected router: RouterServiceBase;
|
|
7
|
-
isDisabled: boolean;
|
|
8
|
-
constructor(router: RouterServiceBase, language: LanguageService);
|
|
9
|
-
protected setData(): void;
|
|
10
|
-
protected setFragment(item: ISelectListItem<U>): void;
|
|
11
|
-
protected getRouterSelectedItem(): ISelectListItem<U>;
|
|
12
|
-
complete(): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ISelectListItem } from './ISelectListItem';
|
|
2
|
-
import { ListItem } from '../ListItem';
|
|
3
|
-
import { IListItem } from '../IListItem';
|
|
4
|
-
export declare class SelectListItem<T = any> extends ListItem<T> implements ISelectListItem<T> {
|
|
5
|
-
protected _isSelected: boolean;
|
|
6
|
-
protected _selectedClassName: string;
|
|
7
|
-
checkSelected?: (item: ISelectListItem, ...params: any[]) => boolean;
|
|
8
|
-
constructor(translationId: string, sortIndex: number, data: T, checkEnabled?: (item: IListItem, ...params: any[]) => boolean);
|
|
9
|
-
protected commitIsSelectProperties(): void;
|
|
10
|
-
protected commitSelectedClassNameProperties(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
get isSelected(): boolean;
|
|
13
|
-
set isSelected(value: boolean);
|
|
14
|
-
get selectedClassName(): string;
|
|
15
|
-
set selectedClassName(value: string);
|
|
16
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ISelectListItem } from './ISelectListItem';
|
|
2
|
-
import { ListItems } from '../ListItems';
|
|
3
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
4
|
-
import { EventEmitter } from '@angular/core';
|
|
5
|
-
export declare class SelectListItems<U extends ISelectListItem<V>, V = any> extends ListItems<U, V> {
|
|
6
|
-
protected _selectedItem: U;
|
|
7
|
-
protected _selectedData: V;
|
|
8
|
-
protected _selectedIndex: number;
|
|
9
|
-
protected _changed: EventEmitter<U>;
|
|
10
|
-
constructor(language: LanguageService, isAutoTranslate?: boolean);
|
|
11
|
-
protected commitSelectedItemProperties(): void;
|
|
12
|
-
protected commitSelectedDataProperties(): void;
|
|
13
|
-
protected commitSelectedIndexProperties(): void;
|
|
14
|
-
protected selectIndexOrData(indexOrDataToSelect: number | V): void;
|
|
15
|
-
get selectedItem(): U;
|
|
16
|
-
set selectedItem(value: U);
|
|
17
|
-
get selectedIndex(): number;
|
|
18
|
-
set selectedIndex(value: number);
|
|
19
|
-
get selectedData(): V;
|
|
20
|
-
set selectedData(value: V);
|
|
21
|
-
complete(indexOrDataToSelect?: number | V): void;
|
|
22
|
-
refresh(...params: any[]): void;
|
|
23
|
-
refreshSelection(...params: any[]): void;
|
|
24
|
-
destroy(): void;
|
|
25
|
-
get changed(): EventEmitter<U>;
|
|
26
|
-
}
|
package/login/LoginGuard.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
-
import { LoginServiceBase } from './LoginServiceBase';
|
|
3
|
-
import { LoginRequireResolver } from './LoginRequireResolver';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoginGuard<T extends LoginServiceBase = LoginServiceBase> extends LoginRequireResolver<T> implements CanActivate {
|
|
6
|
-
protected router: Router;
|
|
7
|
-
static redirectUrl: string;
|
|
8
|
-
constructor(login: T, router: Router);
|
|
9
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | UrlTree | Promise<boolean | UrlTree>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginGuard<any>, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoginGuard<any>>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
-
import { LoginServiceBase } from './LoginServiceBase';
|
|
3
|
-
import { LoginGuard } from './LoginGuard';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoginIfCanGuard<T extends LoginServiceBase = LoginServiceBase> extends LoginGuard<T> {
|
|
6
|
-
protected router: Router;
|
|
7
|
-
constructor(login: T, router: Router);
|
|
8
|
-
protected loginIfCan(): Promise<void>;
|
|
9
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginIfCanGuard<any>, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoginIfCanGuard<any>>;
|
|
12
|
-
}
|
package/login/LoginNotGuard.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
-
import { LoginServiceBase } from './LoginServiceBase';
|
|
3
|
-
import { LoginRequireResolver } from './LoginRequireResolver';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoginNotGuard<T extends LoginServiceBase = LoginServiceBase> extends LoginRequireResolver<T> implements CanActivate {
|
|
6
|
-
protected router: Router;
|
|
7
|
-
static redirectUrl: string;
|
|
8
|
-
constructor(login: T, router: Router);
|
|
9
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | UrlTree;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginNotGuard<any>, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoginNotGuard<any>>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Resolve } from '@angular/router';
|
|
2
|
-
import { LoginServiceBase } from './LoginServiceBase';
|
|
3
|
-
export declare class LoginRequireResolver<U extends LoginServiceBase = LoginServiceBase, V = void> implements Resolve<V> {
|
|
4
|
-
protected login: U;
|
|
5
|
-
constructor(login: U);
|
|
6
|
-
resolve(...params: any[]): Promise<V>;
|
|
7
|
-
isLoggedIn(): boolean;
|
|
8
|
-
}
|
package/login/LoginResolver.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoginServiceBase } from './LoginServiceBase';
|
|
2
|
-
import { LoginRequireResolver } from './LoginRequireResolver';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoginResolver<T extends LoginServiceBase> extends LoginRequireResolver<T> {
|
|
5
|
-
constructor(login: T);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginResolver<any>, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoginResolver<any>>;
|
|
8
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ExtendedError, Loadable } from '@ts-core/common';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare abstract class LoginServiceBase<E = any, U = any, V = any> extends Loadable<E | LoginServiceBaseEvent, U | V | ExtendedError> {
|
|
4
|
-
protected _sid: string;
|
|
5
|
-
protected _loginData: V;
|
|
6
|
-
protected _isLoggedIn: boolean;
|
|
7
|
-
constructor();
|
|
8
|
-
protected loginByParam<T = any>(param?: T): Promise<U>;
|
|
9
|
-
protected loginByFunction(sidReturnFunction: (...params: any[]) => Promise<U>): Promise<U>;
|
|
10
|
-
protected loginBySid(): Promise<void>;
|
|
11
|
-
protected reset(): void;
|
|
12
|
-
protected abstract loginRequest(...params: any[]): Promise<U>;
|
|
13
|
-
protected abstract loginSidRequest(): Promise<V>;
|
|
14
|
-
protected abstract logoutRequest(): Promise<void>;
|
|
15
|
-
protected abstract getSavedSid(): string;
|
|
16
|
-
protected abstract parseLoginResponse(response: U): void;
|
|
17
|
-
protected parseLoginErrorResponse(error: ExtendedError): void;
|
|
18
|
-
protected parseLogoutErrorResponse(error: ExtendedError): void;
|
|
19
|
-
protected parseLoginSidResponse(response: V): void;
|
|
20
|
-
protected parseLoginSidErrorResponse(error: ExtendedError): void;
|
|
21
|
-
abstract login(param: any): void;
|
|
22
|
-
loginByResponse(param: U): Promise<void>;
|
|
23
|
-
loginBySidIfCan(): boolean;
|
|
24
|
-
logout(): Promise<void>;
|
|
25
|
-
isCanLoginWithSid(): boolean;
|
|
26
|
-
destroy(): void;
|
|
27
|
-
get logined(): Observable<V>;
|
|
28
|
-
get logouted(): Observable<void>;
|
|
29
|
-
get sid(): string;
|
|
30
|
-
get loginData(): V;
|
|
31
|
-
get isLoggedIn(): boolean;
|
|
32
|
-
}
|
|
33
|
-
export declare enum LoginServiceBaseEvent {
|
|
34
|
-
LOGIN_ERROR = "LOGIN_ERROR",
|
|
35
|
-
LOGIN_STARTED = "LOGIN_STARTED",
|
|
36
|
-
LOGIN_COMPLETE = "LOGIN_COMPLETE",
|
|
37
|
-
LOGIN_FINISHED = "LOGIN_FINISHED",
|
|
38
|
-
LOGOUT_STARTED = "LOGOUT_STARTED",
|
|
39
|
-
LOGOUT_FINISHED = "LOGOUT_FINISHED",
|
|
40
|
-
REGISTRATION_ERROR = "REGISTRATION_ERROR",
|
|
41
|
-
REGISTRATION_STARTED = "REGISTRATION_STARTED",
|
|
42
|
-
REGISTRATION_COMPLETE = "REGISTRATION_COMPLETE",
|
|
43
|
-
REGISTRATION_FINISHED = "REGISTRATION_FINISHED"
|
|
44
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CookieService } from '../cookie/CookieService';
|
|
2
|
-
import { ValueStorage } from '../storage/ValueStorage';
|
|
3
|
-
import { LocalStorageService } from '../storage/LocalStorageService';
|
|
4
|
-
export declare class LoginTokenStorage<T = string> extends ValueStorage<T> {
|
|
5
|
-
static TOKEN_KEY: string;
|
|
6
|
-
constructor(local: LocalStorageService, cookies: CookieService);
|
|
7
|
-
}
|
package/login/Loginable.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Loadable } from '@ts-core/common';
|
|
2
|
-
import { LoginServiceBase } from '../login/LoginServiceBase';
|
|
3
|
-
export declare abstract class Loginable<T extends LoginServiceBase = LoginServiceBase, U = any, V = any> extends Loadable<U, V> {
|
|
4
|
-
protected login: T;
|
|
5
|
-
constructor(login: T);
|
|
6
|
-
protected initialize(): void;
|
|
7
|
-
protected loginedHandler(): Promise<void>;
|
|
8
|
-
protected logoutedHandler(): Promise<void>;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Destroyable } from '@ts-core/common';
|
|
3
|
-
export declare class FocusManager extends Destroyable {
|
|
4
|
-
protected timer: any;
|
|
5
|
-
protected delay: number;
|
|
6
|
-
protected element: HTMLElement;
|
|
7
|
-
constructor(element: ElementRef, delay?: number);
|
|
8
|
-
private focusElement;
|
|
9
|
-
focus(): void;
|
|
10
|
-
destroy(): void;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IDestroyable } from '@ts-core/common';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { IViewElement } from '../util/ViewUtil';
|
|
4
|
-
export declare class ResizeManager implements IDestroyable {
|
|
5
|
-
static isSizeValid(item: ISize): boolean;
|
|
6
|
-
protected size: ISize;
|
|
7
|
-
protected sensor: ResizeObserver;
|
|
8
|
-
protected subject: BehaviorSubject<ISize>;
|
|
9
|
-
protected element: HTMLElement;
|
|
10
|
-
constructor(element: IViewElement);
|
|
11
|
-
protected handlerItem: (item: ISize) => void;
|
|
12
|
-
protected handler2: (items: Array<ResizeObserverEntry>) => void;
|
|
13
|
-
get changed(): Observable<ISize>;
|
|
14
|
-
get value(): ISize;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
}
|
|
17
|
-
export interface ISize {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
}
|
package/menu/MenuItem.d.ts
DELETED
package/menu/MenuItemBase.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class MenuItemBase {
|
|
2
|
-
nameId: string;
|
|
3
|
-
sortIndex: number;
|
|
4
|
-
iconId?: string;
|
|
5
|
-
protected _name: string;
|
|
6
|
-
protected _isEnabled: boolean;
|
|
7
|
-
checkEnabled: (item: MenuItemBase) => boolean;
|
|
8
|
-
constructor(nameId: string, sortIndex?: number, iconId?: string);
|
|
9
|
-
protected commitNameProperties(): void;
|
|
10
|
-
protected commitIsEnabledProperties(): void;
|
|
11
|
-
get isEnabled(): boolean;
|
|
12
|
-
set isEnabled(value: boolean);
|
|
13
|
-
get name(): string;
|
|
14
|
-
set name(value: string);
|
|
15
|
-
}
|
package/menu/MenuItems.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DestroyableContainer } from '@ts-core/common';
|
|
2
|
-
import { LanguageService } from '@ts-core/frontend';
|
|
3
|
-
import { MenuItem } from './MenuItem';
|
|
4
|
-
import { MenuItemBase } from './MenuItemBase';
|
|
5
|
-
export declare class MenuItems extends DestroyableContainer {
|
|
6
|
-
private language;
|
|
7
|
-
protected _items: Array<MenuItemBase>;
|
|
8
|
-
protected _enabledItems: Array<MenuItemBase>;
|
|
9
|
-
protected filterFunction: (item: MenuItemBase) => boolean;
|
|
10
|
-
constructor(language: LanguageService, filterFunction?: (item: MenuItem) => boolean, isAutoTranslate?: boolean);
|
|
11
|
-
private translateItems;
|
|
12
|
-
private translateItem;
|
|
13
|
-
private checkEnabledItems;
|
|
14
|
-
add(item: MenuItemBase): MenuItemBase;
|
|
15
|
-
remove(item: MenuItemBase): MenuItemBase;
|
|
16
|
-
checkEnabled(...args: any[]): boolean;
|
|
17
|
-
destroy(): void;
|
|
18
|
-
get items(): Array<MenuItemBase>;
|
|
19
|
-
get enabledItems(): Array<MenuItemBase>;
|
|
20
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from './MenuItem';
|
|
2
|
-
export declare class NavigationMenuItem extends MenuItem {
|
|
3
|
-
url: string;
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
select: (item: NavigationMenuItem) => void;
|
|
6
|
-
constructor(nameId?: string, sortIndex?: number, iconId?: string, url?: string);
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Compiler, Injector, NgModuleFactory, NgModuleRef, Type } from '@angular/core';
|
|
2
|
-
import { MapCollection, Loadable } from '@ts-core/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LazyModuleLoader<T extends ILazyModuleData = ILazyModuleData> extends Loadable {
|
|
5
|
-
protected compiler: Compiler;
|
|
6
|
-
protected injector: Injector;
|
|
7
|
-
protected _modules: MapCollection<T>;
|
|
8
|
-
constructor(compiler: Compiler, injector: Injector);
|
|
9
|
-
protected load(item: T): Promise<void>;
|
|
10
|
-
protected loadReference<T>(path: LazyModulePath<T>): Promise<NgModuleRef<T>>;
|
|
11
|
-
protected isNeedLoad(item: T): boolean;
|
|
12
|
-
loadIfNeed(id: string): Promise<T>;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
get modules(): MapCollection<T>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LazyModuleLoader<any>, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LazyModuleLoader<any>>;
|
|
17
|
-
}
|
|
18
|
-
export interface ILazyModuleData<T = any> {
|
|
19
|
-
id: string;
|
|
20
|
-
path?: LazyModulePath<T>;
|
|
21
|
-
reference?: NgModuleRef<T>;
|
|
22
|
-
}
|
|
23
|
-
export type LazyModulePath<T> = () => Promise<NgModuleFactory<T> | Type<T>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IDestroyable } from '@ts-core/common';
|
|
2
|
-
import { INotificationContent } from './INotificationContent';
|
|
3
|
-
import { INotificationConfig } from './INotificationConfig';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
export declare abstract class INotification<T = any> implements IDestroyable {
|
|
6
|
-
abstract getX(): number;
|
|
7
|
-
abstract getY(): number;
|
|
8
|
-
abstract setX(value: number): void;
|
|
9
|
-
abstract setY(value: number): void;
|
|
10
|
-
abstract move(x: number, y: number): void;
|
|
11
|
-
abstract getWidth(): number;
|
|
12
|
-
abstract getHeight(): number;
|
|
13
|
-
abstract setWidth(value: number): void;
|
|
14
|
-
abstract setHeight(value: number): void;
|
|
15
|
-
abstract setSize(width: number, height: number): void;
|
|
16
|
-
abstract close(): void;
|
|
17
|
-
abstract remove(): void;
|
|
18
|
-
abstract destroy(): void;
|
|
19
|
-
abstract emit(event: string): void;
|
|
20
|
-
readonly events: Observable<string>;
|
|
21
|
-
readonly container: HTMLElement;
|
|
22
|
-
readonly config: INotificationConfig<T>;
|
|
23
|
-
readonly content: INotificationContent<T>;
|
|
24
|
-
}
|
|
25
|
-
export declare enum NotificationEvent {
|
|
26
|
-
REMOVED = "REMOVED"
|
|
27
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { DestroyableContainer } from '@ts-core/common';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { INotification } from './INotification';
|
|
5
|
-
import { INotificationConfig } from './INotificationConfig';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare abstract class INotificationContent<T = any> extends DestroyableContainer implements AfterViewInit {
|
|
8
|
-
container: ViewContainerRef;
|
|
9
|
-
protected timer: any;
|
|
10
|
-
protected _config: INotificationConfig<T>;
|
|
11
|
-
protected _notification: INotification<T>;
|
|
12
|
-
constructor(container: ViewContainerRef);
|
|
13
|
-
protected commitNotificationProperties(): void;
|
|
14
|
-
protected commitConfigProperties(): void;
|
|
15
|
-
protected clearTimer(): void;
|
|
16
|
-
protected timerHandler: () => void;
|
|
17
|
-
close(): void;
|
|
18
|
-
remove(): void;
|
|
19
|
-
emit(event: string): void;
|
|
20
|
-
destroy(): void;
|
|
21
|
-
ngAfterViewInit(): void;
|
|
22
|
-
handleCloseClick(): void;
|
|
23
|
-
get data(): T;
|
|
24
|
-
get events(): Observable<string>;
|
|
25
|
-
get notification(): INotification<T>;
|
|
26
|
-
set notification(value: INotification<T>);
|
|
27
|
-
set config(value: INotificationConfig<T>);
|
|
28
|
-
get config(): INotificationConfig<T>;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<INotificationContent<any>, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<INotificationContent<any>, "ng-component", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WindowConfig } from '../window/WindowConfig';
|
|
2
|
-
import { INotificationConfig } from './INotificationConfig';
|
|
3
|
-
export declare class NotificationConfig<T = any> extends WindowConfig<T> implements INotificationConfig<T> {
|
|
4
|
-
icon: string;
|
|
5
|
-
sound: string;
|
|
6
|
-
iconId: string;
|
|
7
|
-
picture: string;
|
|
8
|
-
closeDuration: number;
|
|
9
|
-
isRemoveAfterClose: boolean;
|
|
10
|
-
constructor(data?: T);
|
|
11
|
-
}
|
|
12
|
-
export type NotificationConfigOptions<T = any> = {
|
|
13
|
-
[P in keyof NotificationConfig<T>]?: any;
|
|
14
|
-
};
|