@ts-core/angular 15.0.10 → 15.0.12

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.
@@ -5941,6 +5941,18 @@ class WindowConfig {
5941
5941
  }
5942
5942
  }
5943
5943
 
5944
+ class WindowService extends Destroyable {
5945
+ }
5946
+
5947
+ var WindowServiceEvent;
5948
+ (function (WindowServiceEvent) {
5949
+ WindowServiceEvent["OPEN_STARTED"] = "OPEN_STARTED";
5950
+ WindowServiceEvent["OPENED"] = "OPENED";
5951
+ WindowServiceEvent["OPEN_FINISHED"] = "OPEN_FINISHED";
5952
+ WindowServiceEvent["CLOSED"] = "CLOSED";
5953
+ WindowServiceEvent["SETTED_ON_TOP"] = "SETTED_ON_TOP";
5954
+ })(WindowServiceEvent || (WindowServiceEvent = {}));
5955
+
5944
5956
  class IWindowContent extends DestroyableContainer {
5945
5957
  // --------------------------------------------------------------------------
5946
5958
  //
@@ -6086,6 +6098,169 @@ class WindowClosedError extends ExtendedError {
6086
6098
  WindowClosedError.CODE = ExtendedError.DEFAULT_ERROR_CODE;
6087
6099
  WindowClosedError.MESSAGE = 'WINDOW_CLOSED';
6088
6100
 
6101
+ class INotification {
6102
+ }
6103
+ var NotificationEvent;
6104
+ (function (NotificationEvent) {
6105
+ NotificationEvent["REMOVED"] = "REMOVED";
6106
+ })(NotificationEvent || (NotificationEvent = {}));
6107
+
6108
+ class INotificationContent extends DestroyableContainer {
6109
+ // --------------------------------------------------------------------------
6110
+ //
6111
+ // Constructor
6112
+ //
6113
+ // --------------------------------------------------------------------------
6114
+ constructor(container) {
6115
+ super();
6116
+ this.container = container;
6117
+ this.timerHandler = () => this.handleCloseClick();
6118
+ }
6119
+ // --------------------------------------------------------------------------
6120
+ //
6121
+ // Private Methods
6122
+ //
6123
+ // --------------------------------------------------------------------------
6124
+ commitNotificationProperties() {
6125
+ this.config = this.notification.config;
6126
+ }
6127
+ commitConfigProperties() {
6128
+ this.clearTimer();
6129
+ if (this.config.closeDuration > 0) {
6130
+ this.timer = setTimeout(this.timerHandler, this.config.closeDuration);
6131
+ }
6132
+ }
6133
+ clearTimer() {
6134
+ if (!_.isNil(this.timer)) {
6135
+ clearTimeout(this.timer);
6136
+ this.timer = null;
6137
+ }
6138
+ }
6139
+ // --------------------------------------------------------------------------
6140
+ //
6141
+ // Public Methods
6142
+ //
6143
+ // --------------------------------------------------------------------------
6144
+ close() {
6145
+ if (!_.isNil(this.notification)) {
6146
+ this.notification.close();
6147
+ }
6148
+ }
6149
+ remove() {
6150
+ if (!_.isNil(this.notification)) {
6151
+ this.notification.remove();
6152
+ }
6153
+ }
6154
+ emit(event) {
6155
+ if (!_.isNil(this.notification)) {
6156
+ this.notification.emit(event);
6157
+ }
6158
+ }
6159
+ destroy() {
6160
+ if (this.isDestroyed) {
6161
+ return;
6162
+ }
6163
+ super.destroy();
6164
+ this.clearTimer();
6165
+ this.config = null;
6166
+ this.notification = null;
6167
+ }
6168
+ // --------------------------------------------------------------------------
6169
+ //
6170
+ // Event Handlers
6171
+ //
6172
+ // --------------------------------------------------------------------------
6173
+ ngAfterViewInit() {
6174
+ this.emit(WindowEvent.CONTENT_READY);
6175
+ }
6176
+ handleCloseClick() {
6177
+ this.clearTimer();
6178
+ if (!_.isNil(this.config) && this.config.isRemoveAfterClose) {
6179
+ this.remove();
6180
+ }
6181
+ else {
6182
+ this.close();
6183
+ }
6184
+ }
6185
+ // --------------------------------------------------------------------------
6186
+ //
6187
+ // Proxy Public Properties
6188
+ //
6189
+ // --------------------------------------------------------------------------
6190
+ get data() {
6191
+ return this.config ? this.config.data : null;
6192
+ }
6193
+ get events() {
6194
+ return this.notification ? this.notification.events : null;
6195
+ }
6196
+ // --------------------------------------------------------------------------
6197
+ //
6198
+ // Public Properties
6199
+ //
6200
+ // --------------------------------------------------------------------------
6201
+ get notification() {
6202
+ return this._notification;
6203
+ }
6204
+ set notification(value) {
6205
+ if (value === this._notification) {
6206
+ return;
6207
+ }
6208
+ this._notification = value;
6209
+ if (this._notification) {
6210
+ this.commitNotificationProperties();
6211
+ }
6212
+ }
6213
+ set config(value) {
6214
+ if (value === this._config) {
6215
+ return;
6216
+ }
6217
+ this._config = value;
6218
+ if (this._config) {
6219
+ this.commitConfigProperties();
6220
+ }
6221
+ }
6222
+ get config() {
6223
+ return this._config;
6224
+ }
6225
+ }
6226
+ INotificationContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: INotificationContent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
6227
+ INotificationContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: INotificationContent, selector: "ng-component", inputs: { config: "config" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
6228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: INotificationContent, decorators: [{
6229
+ type: Component,
6230
+ args: [{ template: '' }]
6231
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { config: [{
6232
+ type: Input
6233
+ }] } });
6234
+
6235
+ class NotificationConfig extends WindowConfig {
6236
+ // --------------------------------------------------------------------------
6237
+ //
6238
+ // Constructor
6239
+ //
6240
+ // --------------------------------------------------------------------------
6241
+ constructor(data) {
6242
+ super();
6243
+ this.data = data;
6244
+ this.isModal = false;
6245
+ this.closeDuration = NaN;
6246
+ this.isRemoveAfterClose = false;
6247
+ }
6248
+ }
6249
+
6250
+ class NotificationService extends Destroyable {
6251
+ }
6252
+
6253
+ var NotificationServiceEvent;
6254
+ (function (NotificationServiceEvent) {
6255
+ NotificationServiceEvent["OPENED"] = "OPENED";
6256
+ NotificationServiceEvent["CLOSED"] = "CLOSED";
6257
+ NotificationServiceEvent["ADDED"] = "ADDED";
6258
+ NotificationServiceEvent["REMOVED"] = "REMOVED";
6259
+ })(NotificationServiceEvent || (NotificationServiceEvent = {}));
6260
+
6261
+ class BottomSheetService extends Destroyable {
6262
+ }
6263
+
6089
6264
  class LazyModuleLoader extends Loadable {
6090
6265
  //--------------------------------------------------------------------------
6091
6266
  //
@@ -6440,5 +6615,5 @@ const VI_ANGULAR_OPTIONS = new InjectionToken(`VI_ANGULAR_OPTIONS`);
6440
6615
  * Generated bundle index. Do not edit.
6441
6616
  */
6442
6617
 
6443
- export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, IUser, IVIOptions, IWindow, IWindowContent, InfiniteScrollDirective, IsBrowserDirective, IsServerDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageModule, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginIfCanGuard, LoginNotGuard, LoginRequireResolver, LoginResolver, MenuItem, MenuItemBase, MenuItems, MessageBaseComponent, MomentDateAdaptivePipe, MomentDateFromNowPipe, MomentDatePipe, MomentTimePipe, NavigationMenuItem, NgModelErrorPipe, PipeBaseService, PlatformService, PrettifyPipe, QuestionEvent, QuestionManager, QuestionMode, ResizeDirective, ResizeManager, RouterBaseService, SanitizePipe, ScrollCheckDirective, ScrollDirective, SelectListItem, SelectListItems, SelectOnFocusDirective, StartCasePipe, THEME_OPTIONS, ThemeAssetBackgroundDirective, ThemeAssetDirective, ThemeAssetIconDirective, ThemeAssetImageDirective, ThemeModule, ThemeStyleDirective, ThemeStyleHoverDirective, ThemeToggleDirective, TimePipe, TransportLazy, TransportLazyModule, TransportLazyModuleLoadedEvent, TruncatePipe, UserBaseService, UserBaseServiceEvent, VIModule, VI_ANGULAR_OPTIONS, ViewUtil, WINDOW_CONTENT_CONTAINER, WindowAlign, WindowBase, WindowClosedError, WindowConfig, WindowEvent, cookieServiceFactory, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, themeAssetServiceFactory, themeServiceFactory };
6618
+ export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, INotification, INotificationContent, IUser, IVIOptions, IWindow, IWindowContent, InfiniteScrollDirective, IsBrowserDirective, IsServerDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageModule, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginIfCanGuard, LoginNotGuard, LoginRequireResolver, LoginResolver, MenuItem, MenuItemBase, MenuItems, MessageBaseComponent, MomentDateAdaptivePipe, MomentDateFromNowPipe, MomentDatePipe, MomentTimePipe, NavigationMenuItem, NgModelErrorPipe, NotificationConfig, NotificationEvent, NotificationService, NotificationServiceEvent, PipeBaseService, PlatformService, PrettifyPipe, QuestionEvent, QuestionManager, QuestionMode, ResizeDirective, ResizeManager, RouterBaseService, SanitizePipe, ScrollCheckDirective, ScrollDirective, SelectListItem, SelectListItems, SelectOnFocusDirective, StartCasePipe, THEME_OPTIONS, ThemeAssetBackgroundDirective, ThemeAssetDirective, ThemeAssetIconDirective, ThemeAssetImageDirective, ThemeModule, ThemeStyleDirective, ThemeStyleHoverDirective, ThemeToggleDirective, TimePipe, TransportLazy, TransportLazyModule, TransportLazyModuleLoadedEvent, TruncatePipe, UserBaseService, UserBaseServiceEvent, VIModule, VI_ANGULAR_OPTIONS, ViewUtil, WINDOW_CONTENT_CONTAINER, WindowAlign, WindowBase, WindowClosedError, WindowConfig, WindowEvent, WindowService, WindowServiceEvent, cookieServiceFactory, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, themeAssetServiceFactory, themeServiceFactory };
6444
6619
  //# sourceMappingURL=ts-core-angular.mjs.map