@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.
Files changed (129) hide show
  1. package/fesm2022/ts-core-angular.mjs +328 -262
  2. package/fesm2022/ts-core-angular.mjs.map +1 -1
  3. package/package.json +26 -16
  4. package/types/ts-core-angular.d.ts +1824 -0
  5. package/ApplicationInjector.d.ts +0 -2
  6. package/VIModule.d.ts +0 -60
  7. package/application/ApplicationComponent.d.ts +0 -13
  8. package/application/ApplicationComponentBase.d.ts +0 -21
  9. package/application/ApplicationInitializerBase.d.ts +0 -35
  10. package/application/MessageComponentBase.d.ts +0 -15
  11. package/asset/AssetBackgroundDirective.d.ts +0 -33
  12. package/asset/AssetBackgroundPipe.d.ts +0 -7
  13. package/asset/AssetFilePipe.d.ts +0 -7
  14. package/asset/AssetIconPipe.d.ts +0 -7
  15. package/asset/AssetImagePipe.d.ts +0 -7
  16. package/asset/AssetModule.d.ts +0 -14
  17. package/asset/AssetSoundPipe.d.ts +0 -7
  18. package/asset/AssetVideoPipe.d.ts +0 -7
  19. package/bottomSheet/BottomSheetService.d.ts +0 -21
  20. package/cookie/CookieModule.d.ts +0 -13
  21. package/cookie/CookieOptions.d.ts +0 -10
  22. package/cookie/CookieService.d.ts +0 -13
  23. package/directive/AspectRatioResizeDirective.d.ts +0 -29
  24. package/directive/AutoScrollBottomDirective.d.ts +0 -24
  25. package/directive/ClickToCopyDirective.d.ts +0 -11
  26. package/directive/ClickToSelectDirective.d.ts +0 -11
  27. package/directive/FocusDirective.d.ts +0 -12
  28. package/directive/HTMLContentTitleDirective.d.ts +0 -14
  29. package/directive/HTMLTitleDirective.d.ts +0 -14
  30. package/directive/InfiniteScrollDirective.d.ts +0 -15
  31. package/directive/IsBrowserDirective.d.ts +0 -9
  32. package/directive/IsServerDirective.d.ts +0 -9
  33. package/directive/NullEmptyValueDirective.d.ts +0 -9
  34. package/directive/ResizeDirective.d.ts +0 -20
  35. package/directive/ScrollCheckDirective.d.ts +0 -24
  36. package/directive/ScrollDirective.d.ts +0 -24
  37. package/directive/SelectOnFocusDirective.d.ts +0 -11
  38. package/directive/StructureDirective.d.ts +0 -13
  39. package/directive/UppercaseValueDirective.d.ts +0 -9
  40. package/index.d.ts +0 -5
  41. package/language/LanguageDirective.d.ts +0 -21
  42. package/language/LanguageHasDirective.d.ts +0 -18
  43. package/language/LanguageModule.d.ts +0 -20
  44. package/language/LanguagePipe.d.ts +0 -18
  45. package/language/LanguagePipeHas.d.ts +0 -15
  46. package/language/LanguagePipeHasPure.d.ts +0 -12
  47. package/language/LanguagePipePure.d.ts +0 -12
  48. package/language/LanguageRequireResolver.d.ts +0 -4
  49. package/language/LanguageResolver.d.ts +0 -8
  50. package/language/LanguageToggleDirective.d.ts +0 -12
  51. package/list/IListItem.d.ts +0 -12
  52. package/list/ListItem.d.ts +0 -39
  53. package/list/ListItems.d.ts +0 -23
  54. package/list/select/ISelectListItem.d.ts +0 -6
  55. package/list/select/RouterSelectListItems.d.ts +0 -14
  56. package/list/select/SelectListItem.d.ts +0 -16
  57. package/list/select/SelectListItems.d.ts +0 -26
  58. package/login/LoginGuard.d.ts +0 -12
  59. package/login/LoginIfCanGuard.d.ts +0 -12
  60. package/login/LoginNotGuard.d.ts +0 -12
  61. package/login/LoginRequireResolver.d.ts +0 -8
  62. package/login/LoginResolver.d.ts +0 -8
  63. package/login/LoginServiceBase.d.ts +0 -44
  64. package/login/LoginTokenStorage.d.ts +0 -7
  65. package/login/Loginable.d.ts +0 -10
  66. package/manager/FocusManager.d.ts +0 -11
  67. package/manager/ResizeManager.d.ts +0 -20
  68. package/menu/MenuItem.d.ts +0 -6
  69. package/menu/MenuItemBase.d.ts +0 -15
  70. package/menu/MenuItems.d.ts +0 -20
  71. package/menu/NavigationMenuItem.d.ts +0 -7
  72. package/module/LazyModuleLoader.d.ts +0 -23
  73. package/notification/INotification.d.ts +0 -27
  74. package/notification/INotificationConfig.d.ts +0 -9
  75. package/notification/INotificationContent.d.ts +0 -31
  76. package/notification/NotificationConfig.d.ts +0 -14
  77. package/notification/NotificationService.d.ts +0 -23
  78. package/notification/NotificationServiceEvent.d.ts +0 -6
  79. package/pipe/CamelCasePipe.d.ts +0 -7
  80. package/pipe/FinancePipe.d.ts +0 -9
  81. package/pipe/MomentDateAdaptivePipe.d.ts +0 -12
  82. package/pipe/MomentDateFromNowPipe.d.ts +0 -8
  83. package/pipe/MomentDatePipe.d.ts +0 -13
  84. package/pipe/MomentTimePipe.d.ts +0 -8
  85. package/pipe/NgModelErrorPipe.d.ts +0 -12
  86. package/pipe/PrettifyPipe.d.ts +0 -9
  87. package/pipe/SanitizePipe.d.ts +0 -9
  88. package/pipe/StartCasePipe.d.ts +0 -7
  89. package/pipe/TimePipe.d.ts +0 -8
  90. package/pipe/TruncatePipe.d.ts +0 -7
  91. package/public-api.d.ts +0 -123
  92. package/question/IQuestion.d.ts +0 -31
  93. package/question/QuestionManager.d.ts +0 -25
  94. package/resolver/LoadableResolver.d.ts +0 -9
  95. package/service/PipeServiceBase.d.ts +0 -44
  96. package/service/PlatformService.d.ts +0 -11
  97. package/service/RouterServiceBase.d.ts +0 -46
  98. package/service/ServiceWorkerService.d.ts +0 -22
  99. package/service/route/CanDeactivateGuard.d.ts +0 -6
  100. package/service/route/IRouterDeactivatable.d.ts +0 -5
  101. package/storage/BooleanValueStorage.d.ts +0 -5
  102. package/storage/ClassTypeValueStorage.d.ts +0 -10
  103. package/storage/DateValueStorage.d.ts +0 -11
  104. package/storage/IValueStorage.d.ts +0 -8
  105. package/storage/JSONValueStorage.d.ts +0 -5
  106. package/storage/LocalStorageService.d.ts +0 -12
  107. package/storage/ValueStorage.d.ts +0 -18
  108. package/theme/ThemeAssetBackgroundDirective.d.ts +0 -13
  109. package/theme/ThemeAssetDirective.d.ts +0 -56
  110. package/theme/ThemeAssetIconDirective.d.ts +0 -13
  111. package/theme/ThemeAssetImageDirective.d.ts +0 -13
  112. package/theme/ThemeModule.d.ts +0 -20
  113. package/theme/ThemeStyleDirective.d.ts +0 -27
  114. package/theme/ThemeStyleHoverDirective.d.ts +0 -23
  115. package/theme/ThemeToggleDirective.d.ts +0 -11
  116. package/transport/TransportLazy.d.ts +0 -13
  117. package/transport/TransportLazyModule.d.ts +0 -16
  118. package/transport/TransportLazyModuleLoadedEvent.d.ts +0 -6
  119. package/user/IUser.d.ts +0 -7
  120. package/user/UserServiceBase.d.ts +0 -27
  121. package/util/ViewUtil.d.ts +0 -71
  122. package/window/IWindow.d.ts +0 -42
  123. package/window/IWindowConfig.d.ts +0 -43
  124. package/window/IWindowContent.d.ts +0 -35
  125. package/window/WindowBase.d.ts +0 -35
  126. package/window/WindowClosedError.d.ts +0 -6
  127. package/window/WindowConfig.d.ts +0 -62
  128. package/window/WindowService.d.ts +0 -21
  129. package/window/WindowServiceEvent.d.ts +0 -7
@@ -1,23 +0,0 @@
1
- import { ObservableData, ClassType, Destroyable } from '@ts-core/common';
2
- import { IQuestion, IQuestionOptions } from '../question/IQuestion';
3
- import { INotification } from './INotification';
4
- import { INotificationConfig } from './INotificationConfig';
5
- import { INotificationContent } from './INotificationContent';
6
- import { NotificationConfigOptions } from './NotificationConfig';
7
- import { NotificationServiceEvent } from './NotificationServiceEvent';
8
- import { Observable } from 'rxjs';
9
- export declare abstract class NotificationService extends Destroyable {
10
- abstract open<U extends INotificationContent<T>, T>(component: ClassType<U>, config: INotificationConfig<T>): U;
11
- abstract get<T>(value: NotificationId<T>): INotificationConfig<T>;
12
- abstract has<T>(value: NotificationId<T>): boolean;
13
- abstract remove<T>(value: NotificationId<T>): void;
14
- abstract closeAll(): void;
15
- abstract close<T>(value: NotificationId<T>): INotification<T>;
16
- abstract info(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: NotificationConfigOptions): IQuestion;
17
- abstract question(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: NotificationConfigOptions): IQuestion;
18
- abstract get events(): Observable<ObservableData<NotificationServiceEvent, INotificationConfig | INotification>>;
19
- abstract get configs(): Array<INotificationConfig>;
20
- abstract get closedConfigs(): Array<INotificationConfig>;
21
- abstract get notifications(): Map<INotificationConfig, INotificationContent>;
22
- }
23
- export type NotificationId<T> = string | INotificationConfig<T> | NotificationConfigOptions<T>;
@@ -1,6 +0,0 @@
1
- export declare enum NotificationServiceEvent {
2
- OPENED = "OPENED",
3
- CLOSED = "CLOSED",
4
- ADDED = "ADDED",
5
- REMOVED = "REMOVED"
6
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CamelCasePipe implements PipeTransform {
4
- transform(value: any): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CamelCasePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CamelCasePipe, "viCamelCase", false>;
7
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FinancePipe implements PipeTransform {
4
- static DEFAULT_FORMAT: string;
5
- static format(value: number | string, format: string): string;
6
- transform(value: number | string, format?: string, isNeedPlus?: boolean): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FinancePipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<FinancePipe, "viFinance", false>;
9
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Moment } from 'moment';
3
- import * as i0 from "@angular/core";
4
- export declare class MomentDateAdaptivePipe implements PipeTransform {
5
- static HOUR_FORMAT: string;
6
- static DAY_FORMAT: string;
7
- static MONTH_FORMAT: string;
8
- static YEAR_FORMAT: string;
9
- transform(value: Date | Moment): string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateAdaptivePipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<MomentDateAdaptivePipe, "viMomentAdaptiveDate", false>;
12
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Moment } from 'moment';
3
- import * as i0 from "@angular/core";
4
- export declare class MomentDateFromNowPipe implements PipeTransform {
5
- transform(value: Date | Moment, format?: string): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateFromNowPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<MomentDateFromNowPipe, "viMomentDateFromNow", false>;
8
- }
@@ -1,13 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Moment } from 'moment';
3
- import * as i0 from "@angular/core";
4
- export declare class MomentDatePipe implements PipeTransform {
5
- static DEFAULT_FORMAT: string;
6
- static parseMoment(value: MomentAvailableType, format?: string): Moment;
7
- static fromNow(value: MomentAvailableType, format?: string): string;
8
- static toConditionValue(value: string | Date): string;
9
- transform(value: MomentAvailableType, format?: string): string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDatePipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<MomentDatePipe, "viMomentDate", false>;
12
- }
13
- export type MomentAvailableType = Date | Moment | string | number;
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class MomentTimePipe implements PipeTransform {
4
- static DEFAULT_FORMAT: string;
5
- transform(timeMilliseconds: number, format?: string): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentTimePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<MomentTimePipe, "viMomentTime", false>;
8
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { ValidationErrors } from '@angular/forms';
3
- import { LanguageService } from '@ts-core/frontend';
4
- import * as i0 from "@angular/core";
5
- export declare class NgModelErrorPipe implements PipeTransform {
6
- protected language: LanguageService;
7
- transform(value: ValidationErrors): string;
8
- translateError(key: string, value: any): string;
9
- constructor(language: LanguageService);
10
- static ɵfac: i0.ɵɵFactoryDeclaration<NgModelErrorPipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<NgModelErrorPipe, "viNgModelError", false>;
12
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class PrettifyPipe implements PipeTransform {
4
- static EMPTY_SYMBOL: string;
5
- transform(value: any): string;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<PrettifyPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<PrettifyPipe, "viPrettify", false>;
9
- }
@@ -1,9 +0,0 @@
1
- import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from '@angular/platform-browser';
2
- import * as i0 from "@angular/core";
3
- export declare class SanitizePipe {
4
- private sanitizer;
5
- constructor(sanitizer: DomSanitizer);
6
- transform(value: string, type?: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SanitizePipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<SanitizePipe, "viSanitize", false>;
9
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class StartCasePipe implements PipeTransform {
4
- transform(value: any): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<StartCasePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<StartCasePipe, "viStartCase", false>;
7
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TimePipe implements PipeTransform {
4
- static DEFAULT_FORMAT: string;
5
- transform(milliseconds: number | string, format?: string): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TimePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<TimePipe, "viTime", false>;
8
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruncatePipe implements PipeTransform {
4
- transform(value: any, maxLength?: number): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "viTruncate", false>;
7
- }
package/public-api.d.ts DELETED
@@ -1,123 +0,0 @@
1
- export * from './application/ApplicationInitializerBase';
2
- export * from './application/ApplicationComponentBase';
3
- export * from './application/ApplicationComponent';
4
- export * from './application/MessageComponentBase';
5
- export * from './ApplicationInjector';
6
- export * from './asset/AssetBackgroundDirective';
7
- export * from './asset/AssetBackgroundPipe';
8
- export * from './asset/AssetIconPipe';
9
- export * from './asset/AssetFilePipe';
10
- export * from './asset/AssetVideoPipe';
11
- export * from './asset/AssetSoundPipe';
12
- export * from './asset/AssetImagePipe';
13
- export * from './asset/AssetModule';
14
- export * from './cookie/CookieModule';
15
- export * from './cookie/CookieOptions';
16
- export * from './cookie/CookieService';
17
- export * from './directive/AspectRatioResizeDirective';
18
- export * from './directive/AutoScrollBottomDirective';
19
- export * from './directive/ClickToCopyDirective';
20
- export * from './directive/ClickToSelectDirective';
21
- export * from './directive/FocusDirective';
22
- export * from './directive/SelectOnFocusDirective';
23
- export * from './directive/InfiniteScrollDirective';
24
- export * from './directive/ResizeDirective';
25
- export * from './directive/StructureDirective';
26
- export * from './directive/ScrollDirective';
27
- export * from './directive/ScrollCheckDirective';
28
- export * from './directive/HTMLTitleDirective';
29
- export * from './directive/HTMLContentTitleDirective';
30
- export * from './directive/IsBrowserDirective';
31
- export * from './directive/IsServerDirective';
32
- export * from './directive/NullEmptyValueDirective';
33
- export * from './directive/UppercaseValueDirective';
34
- export * from './language/LanguageModule';
35
- export * from './language/LanguagePipe';
36
- export * from './language/LanguagePipePure';
37
- export * from './language/LanguagePipeHas';
38
- export * from './language/LanguagePipeHasPure';
39
- export * from './language/LanguageResolver';
40
- export * from './language/LanguageRequireResolver';
41
- export * from './language/LanguageDirective';
42
- export * from './language/LanguageHasDirective';
43
- export * from './language/LanguageToggleDirective';
44
- export * from './login/Loginable';
45
- export * from './login/LoginGuard';
46
- export * from './login/LoginNotGuard';
47
- export * from './login/LoginResolver';
48
- export * from './login/LoginIfCanGuard';
49
- export * from './login/LoginServiceBase';
50
- export * from './login/LoginTokenStorage';
51
- export * from './login/LoginRequireResolver';
52
- export * from './manager/FocusManager';
53
- export * from './manager/ResizeManager';
54
- export * from './menu/MenuItem';
55
- export * from './menu/MenuItems';
56
- export * from './menu/MenuItemBase';
57
- export * from './menu/NavigationMenuItem';
58
- export * from './resolver/LoadableResolver';
59
- export * from './list/IListItem';
60
- export * from './list/ListItem';
61
- export * from './list/ListItems';
62
- export * from './list/select/ISelectListItem';
63
- export * from './list/select/SelectListItem';
64
- export * from './list/select/SelectListItems';
65
- export * from './list/select/RouterSelectListItems';
66
- export * from './pipe/CamelCasePipe';
67
- export * from './pipe/FinancePipe';
68
- export * from './pipe/MomentDateAdaptivePipe';
69
- export * from './pipe/MomentDateFromNowPipe';
70
- export * from './pipe/MomentDatePipe';
71
- export * from './pipe/MomentTimePipe';
72
- export * from './pipe/NgModelErrorPipe';
73
- export * from './pipe/SanitizePipe';
74
- export * from './pipe/StartCasePipe';
75
- export * from './pipe/TruncatePipe';
76
- export * from './pipe/PrettifyPipe';
77
- export * from './pipe/TimePipe';
78
- export * from './question/IQuestion';
79
- export * from './question/QuestionManager';
80
- export * from './service/PipeServiceBase';
81
- export * from './service/PlatformService';
82
- export * from './service/RouterServiceBase';
83
- export * from './service/ServiceWorkerService';
84
- export * from './service/route/CanDeactivateGuard';
85
- export * from './service/route/IRouterDeactivatable';
86
- export * from './theme/ThemeStyleHoverDirective';
87
- export * from './theme/ThemeStyleDirective';
88
- export * from './theme/ThemeAssetBackgroundDirective';
89
- export * from './theme/ThemeAssetImageDirective';
90
- export * from './theme/ThemeAssetIconDirective';
91
- export * from './theme/ThemeAssetDirective';
92
- export * from './theme/ThemeModule';
93
- export * from './theme/ThemeToggleDirective';
94
- export * from './user/IUser';
95
- export * from './user/UserServiceBase';
96
- export * from './window/IWindow';
97
- export * from './window/WindowBase';
98
- export * from './window/WindowConfig';
99
- export * from './window/WindowService';
100
- export * from './window/WindowServiceEvent';
101
- export * from './window/IWindowConfig';
102
- export * from './window/IWindowContent';
103
- export * from './window/WindowClosedError';
104
- export * from './notification/INotification';
105
- export * from './notification/INotificationConfig';
106
- export * from './notification/INotificationContent';
107
- export * from './notification/NotificationConfig';
108
- export * from './notification/NotificationService';
109
- export * from './notification/NotificationServiceEvent';
110
- export * from './bottomSheet/BottomSheetService';
111
- export * from './storage/ValueStorage';
112
- export * from './storage/IValueStorage';
113
- export * from './storage/DateValueStorage';
114
- export * from './storage/JSONValueStorage';
115
- export * from './storage/LocalStorageService';
116
- export * from './storage/BooleanValueStorage';
117
- export * from './storage/ClassTypeValueStorage';
118
- export * from './module/LazyModuleLoader';
119
- export * from './transport/TransportLazy';
120
- export * from './transport/TransportLazyModule';
121
- export * from './transport/TransportLazyModuleLoadedEvent';
122
- export * from './util/ViewUtil';
123
- export * from './VIModule';
@@ -1,31 +0,0 @@
1
- export interface IQuestion {
2
- readonly mode: QuestionMode;
3
- readonly isChecked: boolean;
4
- readonly text: string;
5
- readonly notText: string;
6
- readonly yesText: string;
7
- readonly closeText: string;
8
- readonly checkText: string;
9
- readonly closePromise: Promise<void>;
10
- readonly yesNotPromise: Promise<void>;
11
- }
12
- export interface IQuestionOptions {
13
- text?: string;
14
- mode?: QuestionMode;
15
- isChecked?: boolean;
16
- yesTextId?: string;
17
- notTextId?: string;
18
- checkTextId?: string;
19
- closeTextId?: string;
20
- }
21
- export declare enum QuestionMode {
22
- INFO = "INFO",
23
- QUESTION = "QUESTION"
24
- }
25
- export declare enum QuestionEvent {
26
- YES = "YES",
27
- NOT = "NOT",
28
- CLOSE = "CLOSE",
29
- CHECK = "CHECK",
30
- UNCHECK = "UNCHECK"
31
- }
@@ -1,25 +0,0 @@
1
- import { PromiseHandler, Destroyable } from '@ts-core/common';
2
- import { IQuestion, IQuestionOptions, QuestionMode } from './IQuestion';
3
- export declare class QuestionManager extends Destroyable implements IQuestion {
4
- text: string;
5
- mode: QuestionMode;
6
- options: IQuestionOptions;
7
- notText: string;
8
- yesText: string;
9
- closeText: string;
10
- checkText: string;
11
- protected _isChecked: boolean;
12
- protected _closePromise: PromiseHandler<void, void>;
13
- protected _yesNotPromise: PromiseHandler<void, void>;
14
- constructor(options?: IQuestionOptions);
15
- closeClickHandler(): void;
16
- yesClickHandler(): void;
17
- notClickHandler(): void;
18
- destroy(): void;
19
- get yesNotPromise(): Promise<void>;
20
- get closePromise(): Promise<void>;
21
- get isInfo(): boolean;
22
- get isQuestion(): boolean;
23
- get isChecked(): boolean;
24
- set isChecked(value: boolean);
25
- }
@@ -1,9 +0,0 @@
1
- import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
2
- import { Loadable, ExtendedError } from '@ts-core/common';
3
- export declare abstract class LoadableResolver<T extends Loadable<U, V>, U = any, V = any> implements Resolve<void> {
4
- protected service: T;
5
- constructor(service: T);
6
- protected resolveHandler(): void;
7
- protected rejectHandler(error: ExtendedError): void;
8
- resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<void>;
9
- }
@@ -1,44 +0,0 @@
1
- import { DatePipe } from '@angular/common';
2
- import { DomSanitizer } from '@angular/platform-browser';
3
- import { Destroyable } from '@ts-core/common';
4
- import { LanguageService } from '@ts-core/frontend';
5
- import { CamelCasePipe } from '../pipe/CamelCasePipe';
6
- import { FinancePipe } from '../pipe/FinancePipe';
7
- import { MomentDateAdaptivePipe } from '../pipe/MomentDateAdaptivePipe';
8
- import { MomentDateFromNowPipe } from '../pipe/MomentDateFromNowPipe';
9
- import { MomentDatePipe } from '../pipe/MomentDatePipe';
10
- import { MomentTimePipe } from '../pipe/MomentTimePipe';
11
- import { PrettifyPipe } from '../pipe/PrettifyPipe';
12
- import { SanitizePipe } from '../pipe/SanitizePipe';
13
- import { TimePipe } from '../pipe/TimePipe';
14
- import { TruncatePipe } from '../pipe/TruncatePipe';
15
- export declare class PipeServiceBase extends Destroyable {
16
- language: LanguageService;
17
- sanitizer: DomSanitizer;
18
- private static DATE;
19
- private static TIME;
20
- private static FINANCE;
21
- private static PRETTIFY;
22
- private static TRUNCATE;
23
- private static SANITIZE;
24
- private static CAMEL_CASE;
25
- private static MOMENT_TIME;
26
- private static MOMENT_DATE;
27
- private static MOMENT_DATE_FROM_NOW;
28
- private static MOMENT_ADAPTIVE_DATE;
29
- private _locale;
30
- constructor(language: LanguageService, sanitizer: DomSanitizer);
31
- protected commitLanguageProperties(): void;
32
- get date(): DatePipe;
33
- get time(): TimePipe;
34
- get finance(): FinancePipe;
35
- get truncate(): TruncatePipe;
36
- get prettify(): PrettifyPipe;
37
- get momentDate(): MomentDatePipe;
38
- get momentDateFromNow(): MomentDateFromNowPipe;
39
- get momentDateAdaptive(): MomentDateAdaptivePipe;
40
- get momentTime(): MomentTimePipe;
41
- get sanitize(): SanitizePipe;
42
- get camelCase(): CamelCasePipe;
43
- get locale(): string;
44
- }
@@ -1,11 +0,0 @@
1
- import { Destroyable } from '@ts-core/common';
2
- import * as i0 from "@angular/core";
3
- export declare class PlatformService extends Destroyable {
4
- private _isPlatformServer;
5
- private _isPlatformBrowser;
6
- constructor(platformId: string);
7
- get isPlatformServer(): boolean;
8
- get isPlatformBrowser(): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
11
- }
@@ -1,46 +0,0 @@
1
- import { ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, Router, UrlTree } from '@angular/router';
2
- import { Loadable, LoadableStatus } from '@ts-core/common';
3
- import { NativeWindowService } from '@ts-core/frontend';
4
- export declare class RouterServiceBase extends Loadable<void, RouterServiceBaseEventData> {
5
- protected _router: Router;
6
- protected _route: ActivatedRoute;
7
- protected window: NativeWindowService;
8
- protected params: Map<string, string>;
9
- protected extrasToApply: NavigationExtras;
10
- protected isNeedUpdateExtras: boolean;
11
- protected _lastUrl: string;
12
- protected _previousUrl: string;
13
- constructor(_router: Router, _route: ActivatedRoute, window: NativeWindowService);
14
- protected initializeObservers(): void;
15
- protected applyExtras(extras?: NavigationExtras): Promise<boolean>;
16
- protected getQueryParams(): any;
17
- protected commitStatusChangedProperties(oldStatus: LoadableStatus, newStatus: LoadableStatus): void;
18
- navigate(url: string, extras?: NavigationExtras, isClearParams?: boolean): Promise<boolean>;
19
- navigateToExternalUrl(url: string, target?: string): void;
20
- navigateToLast(extras?: NavigationExtras): Promise<boolean>;
21
- navigateIfNotLoading(url: string, extras?: NavigationExtras): Promise<boolean>;
22
- reload(): void;
23
- isUrlActive(item: string | UrlTree, isExact?: boolean): boolean;
24
- getParams<T = any>(): T;
25
- hasParam(name: string): boolean;
26
- getParam<T = string>(name: string, defaultValue?: T): T;
27
- setParam(name: string, value: any, extras?: NavigationExtras): void;
28
- removeParam(name: string, extras?: NavigationExtras): void;
29
- clearParams(extras?: NavigationExtras): void;
30
- get hasParams(): boolean;
31
- getFragment(snapshot?: ActivatedRouteSnapshot, defaultValue?: string): string;
32
- hasFragment(snapshot?: ActivatedRouteSnapshot): boolean;
33
- setFragment(value: string): Promise<boolean>;
34
- get url(): string;
35
- get urlTree(): UrlTree;
36
- get lastUrl(): string;
37
- get lastUrlTree(): UrlTree;
38
- get previousUrl(): string;
39
- get previousUrlTree(): UrlTree;
40
- get route(): ActivatedRoute;
41
- get router(): Router;
42
- }
43
- export interface RouterServiceBaseEventData {
44
- url: string;
45
- previousUrl: string;
46
- }
@@ -1,22 +0,0 @@
1
- import { NoNewVersionDetectedEvent, SwUpdate, UnrecoverableStateEvent, VersionDetectedEvent, VersionInstallationFailedEvent, VersionReadyEvent } from '@angular/service-worker';
2
- import { Loadable, LoadableStatus, Logger } from '@ts-core/common';
3
- import { NotificationService } from '../notification/NotificationService';
4
- import * as i0 from "@angular/core";
5
- export declare class ServiceWorkerService extends Loadable {
6
- protected updates: SwUpdate;
7
- protected logger: Logger;
8
- protected notifications: NotificationService;
9
- constructor(updates: SwUpdate, logger: Logger, notifications: NotificationService);
10
- protected start(value: LoadableStatus): void;
11
- protected finish(value: LoadableStatus): void;
12
- protected readyHandler(event: VersionReadyEvent): Promise<void>;
13
- protected unrecoverableHandler(event: UnrecoverableStateEvent): Promise<void>;
14
- protected detectedHandler(event: VersionDetectedEvent): Promise<void>;
15
- protected installationFailedHandler(event: VersionInstallationFailedEvent): Promise<void>;
16
- protected noNewVersionDetectedHandler(event: NoNewVersionDetectedEvent): Promise<void>;
17
- activateUpdate(): Promise<boolean>;
18
- checkForUpdate(): Promise<boolean>;
19
- get isEnabled(): boolean;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ServiceWorkerService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<ServiceWorkerService>;
22
- }
@@ -1,6 +0,0 @@
1
- import { CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot, GuardResult, MaybeAsync, CanDeactivateFn } from '@angular/router';
2
- import { IRouterDeactivatable } from './IRouterDeactivatable';
3
- export declare class CanDeactivateGuard<T extends IRouterDeactivatable = IRouterDeactivatable> implements CanDeactivate<T> {
4
- canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): MaybeAsync<GuardResult>;
5
- }
6
- export declare const CanDeactivateFunction: CanDeactivateFn<IRouterDeactivatable>;
@@ -1,5 +0,0 @@
1
- import { ActivatedRouteSnapshot, GuardResult, MaybeAsync, RouterStateSnapshot } from '@angular/router';
2
- export interface IRouterDeactivatable {
3
- isForceDeactivate: boolean;
4
- isCanDeactivate(currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): MaybeAsync<GuardResult>;
5
- }
@@ -1,5 +0,0 @@
1
- import { ValueStorage } from './ValueStorage';
2
- export declare class BooleanValueStorage extends ValueStorage<boolean> {
3
- protected serialize(value: string): boolean;
4
- protected deserialize(value: boolean): string;
5
- }
@@ -1,10 +0,0 @@
1
- import { ClassType } from '@ts-core/common';
2
- import { JSONValueStorage } from './JSONValueStorage';
3
- import { LocalStorageService } from './LocalStorageService';
4
- import { CookieService } from '../cookie/CookieService';
5
- export declare class ClassTypeValueStorage<T> extends JSONValueStorage<T> {
6
- protected classType: ClassType<T>;
7
- constructor(name: string, classType: ClassType<T>, storage: LocalStorageService, cookies: CookieService);
8
- protected serialize(value: string): T;
9
- protected deserialize(value: T): string;
10
- }
@@ -1,11 +0,0 @@
1
- import { ValueStorage } from './ValueStorage';
2
- export declare class DateValueStorage extends ValueStorage<Date> {
3
- defaultExpirationDelta: number;
4
- protected serialize(value: string): Date;
5
- protected deserialize(value: Date): string;
6
- isMore(item: Date): boolean;
7
- isLess(item: Date): boolean;
8
- isEqual(item: Date): boolean;
9
- isExpired(item: Date): boolean;
10
- isExpiredFromNow(delta?: number): boolean;
11
- }
@@ -1,8 +0,0 @@
1
- import { IDestroyable } from '@ts-core/common';
2
- export interface IValueStorage<T> extends IDestroyable {
3
- get(defaultValue?: T): T;
4
- set(value: T): T;
5
- has(): boolean;
6
- destroy(): void;
7
- get name(): string;
8
- }
@@ -1,5 +0,0 @@
1
- import { ValueStorage } from './ValueStorage';
2
- export declare class JSONValueStorage<T = any> extends ValueStorage<T> {
3
- protected serialize(value: string): T;
4
- protected deserialize(value: T): string;
5
- }
@@ -1,12 +0,0 @@
1
- import { Destroyable } from '@ts-core/common';
2
- export declare class LocalStorageService extends Destroyable {
3
- protected storage: Storage;
4
- constructor(storage: Storage);
5
- get(key: string, defaultValue?: string): string;
6
- has(key: string): boolean;
7
- set(key: string, value: string): void;
8
- remove(key: string): void;
9
- clear(): void;
10
- destroy(): void;
11
- protected get length(): number;
12
- }
@@ -1,18 +0,0 @@
1
- import { Destroyable } from '@ts-core/common';
2
- import { CookieService } from '../cookie/CookieService';
3
- import { LocalStorageService } from '../storage/LocalStorageService';
4
- import { IValueStorage } from './IValueStorage';
5
- export declare class ValueStorage<T = string> extends Destroyable implements IValueStorage<T> {
6
- protected storage: LocalStorageService;
7
- protected cookies: CookieService;
8
- protected _name: string;
9
- constructor(name: string, storage: LocalStorageService, cookies: CookieService);
10
- protected serialize(value: string): T;
11
- protected deserialize(value: T): string;
12
- get(defaultValue?: T): T;
13
- has(): boolean;
14
- set(value: T): T;
15
- clear(): void;
16
- destroy(): void;
17
- get name(): string;
18
- }
@@ -1,13 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { ThemeAssetService, ThemeService } from '@ts-core/frontend';
3
- import { ThemeAssetDirective } from './ThemeAssetDirective';
4
- import * as i0 from "@angular/core";
5
- export declare class ThemeAssetBackgroundDirective extends ThemeAssetDirective {
6
- constructor(element: ElementRef, theme: ThemeService, themeAsset: ThemeAssetService);
7
- protected addSourceProperties(): void;
8
- protected removeSourceProperties(): void;
9
- set name(value: string);
10
- get name(): string;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeAssetBackgroundDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeAssetBackgroundDirective, "[vi-theme-background]", never, { "name": { "alias": "vi-theme-background"; "required": false; }; }, {}, never, never, false, never>;
13
- }