@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.
@@ -5977,6 +5977,18 @@ class WindowConfig {
5977
5977
  }
5978
5978
  }
5979
5979
 
5980
+ class WindowService extends Destroyable {
5981
+ }
5982
+
5983
+ var WindowServiceEvent;
5984
+ (function (WindowServiceEvent) {
5985
+ WindowServiceEvent["OPEN_STARTED"] = "OPEN_STARTED";
5986
+ WindowServiceEvent["OPENED"] = "OPENED";
5987
+ WindowServiceEvent["OPEN_FINISHED"] = "OPEN_FINISHED";
5988
+ WindowServiceEvent["CLOSED"] = "CLOSED";
5989
+ WindowServiceEvent["SETTED_ON_TOP"] = "SETTED_ON_TOP";
5990
+ })(WindowServiceEvent || (WindowServiceEvent = {}));
5991
+
5980
5992
  class IWindowContent extends DestroyableContainer {
5981
5993
  // --------------------------------------------------------------------------
5982
5994
  //
@@ -6124,6 +6136,169 @@ class WindowClosedError extends ExtendedError {
6124
6136
  WindowClosedError.CODE = ExtendedError.DEFAULT_ERROR_CODE;
6125
6137
  WindowClosedError.MESSAGE = 'WINDOW_CLOSED';
6126
6138
 
6139
+ class INotification {
6140
+ }
6141
+ var NotificationEvent;
6142
+ (function (NotificationEvent) {
6143
+ NotificationEvent["REMOVED"] = "REMOVED";
6144
+ })(NotificationEvent || (NotificationEvent = {}));
6145
+
6146
+ class INotificationContent extends DestroyableContainer {
6147
+ // --------------------------------------------------------------------------
6148
+ //
6149
+ // Constructor
6150
+ //
6151
+ // --------------------------------------------------------------------------
6152
+ constructor(container) {
6153
+ super();
6154
+ this.container = container;
6155
+ this.timerHandler = () => this.handleCloseClick();
6156
+ }
6157
+ // --------------------------------------------------------------------------
6158
+ //
6159
+ // Private Methods
6160
+ //
6161
+ // --------------------------------------------------------------------------
6162
+ commitNotificationProperties() {
6163
+ this.config = this.notification.config;
6164
+ }
6165
+ commitConfigProperties() {
6166
+ this.clearTimer();
6167
+ if (this.config.closeDuration > 0) {
6168
+ this.timer = setTimeout(this.timerHandler, this.config.closeDuration);
6169
+ }
6170
+ }
6171
+ clearTimer() {
6172
+ if (!_.isNil(this.timer)) {
6173
+ clearTimeout(this.timer);
6174
+ this.timer = null;
6175
+ }
6176
+ }
6177
+ // --------------------------------------------------------------------------
6178
+ //
6179
+ // Public Methods
6180
+ //
6181
+ // --------------------------------------------------------------------------
6182
+ close() {
6183
+ if (!_.isNil(this.notification)) {
6184
+ this.notification.close();
6185
+ }
6186
+ }
6187
+ remove() {
6188
+ if (!_.isNil(this.notification)) {
6189
+ this.notification.remove();
6190
+ }
6191
+ }
6192
+ emit(event) {
6193
+ if (!_.isNil(this.notification)) {
6194
+ this.notification.emit(event);
6195
+ }
6196
+ }
6197
+ destroy() {
6198
+ if (this.isDestroyed) {
6199
+ return;
6200
+ }
6201
+ super.destroy();
6202
+ this.clearTimer();
6203
+ this.config = null;
6204
+ this.notification = null;
6205
+ }
6206
+ // --------------------------------------------------------------------------
6207
+ //
6208
+ // Event Handlers
6209
+ //
6210
+ // --------------------------------------------------------------------------
6211
+ ngAfterViewInit() {
6212
+ this.emit(WindowEvent.CONTENT_READY);
6213
+ }
6214
+ handleCloseClick() {
6215
+ this.clearTimer();
6216
+ if (!_.isNil(this.config) && this.config.isRemoveAfterClose) {
6217
+ this.remove();
6218
+ }
6219
+ else {
6220
+ this.close();
6221
+ }
6222
+ }
6223
+ // --------------------------------------------------------------------------
6224
+ //
6225
+ // Proxy Public Properties
6226
+ //
6227
+ // --------------------------------------------------------------------------
6228
+ get data() {
6229
+ return this.config ? this.config.data : null;
6230
+ }
6231
+ get events() {
6232
+ return this.notification ? this.notification.events : null;
6233
+ }
6234
+ // --------------------------------------------------------------------------
6235
+ //
6236
+ // Public Properties
6237
+ //
6238
+ // --------------------------------------------------------------------------
6239
+ get notification() {
6240
+ return this._notification;
6241
+ }
6242
+ set notification(value) {
6243
+ if (value === this._notification) {
6244
+ return;
6245
+ }
6246
+ this._notification = value;
6247
+ if (this._notification) {
6248
+ this.commitNotificationProperties();
6249
+ }
6250
+ }
6251
+ set config(value) {
6252
+ if (value === this._config) {
6253
+ return;
6254
+ }
6255
+ this._config = value;
6256
+ if (this._config) {
6257
+ this.commitConfigProperties();
6258
+ }
6259
+ }
6260
+ get config() {
6261
+ return this._config;
6262
+ }
6263
+ }
6264
+ INotificationContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: INotificationContent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
6265
+ 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 });
6266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: INotificationContent, decorators: [{
6267
+ type: Component,
6268
+ args: [{ template: '' }]
6269
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { config: [{
6270
+ type: Input
6271
+ }] } });
6272
+
6273
+ class NotificationConfig extends WindowConfig {
6274
+ // --------------------------------------------------------------------------
6275
+ //
6276
+ // Constructor
6277
+ //
6278
+ // --------------------------------------------------------------------------
6279
+ constructor(data) {
6280
+ super();
6281
+ this.data = data;
6282
+ this.isModal = false;
6283
+ this.closeDuration = NaN;
6284
+ this.isRemoveAfterClose = false;
6285
+ }
6286
+ }
6287
+
6288
+ class NotificationService extends Destroyable {
6289
+ }
6290
+
6291
+ var NotificationServiceEvent;
6292
+ (function (NotificationServiceEvent) {
6293
+ NotificationServiceEvent["OPENED"] = "OPENED";
6294
+ NotificationServiceEvent["CLOSED"] = "CLOSED";
6295
+ NotificationServiceEvent["ADDED"] = "ADDED";
6296
+ NotificationServiceEvent["REMOVED"] = "REMOVED";
6297
+ })(NotificationServiceEvent || (NotificationServiceEvent = {}));
6298
+
6299
+ class BottomSheetService extends Destroyable {
6300
+ }
6301
+
6127
6302
  class LazyModuleLoader extends Loadable {
6128
6303
  //--------------------------------------------------------------------------
6129
6304
  //
@@ -6489,5 +6664,5 @@ const VI_ANGULAR_OPTIONS = new InjectionToken(`VI_ANGULAR_OPTIONS`);
6489
6664
  * Generated bundle index. Do not edit.
6490
6665
  */
6491
6666
 
6492
- 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 };
6667
+ 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 };
6493
6668
  //# sourceMappingURL=ts-core-angular.mjs.map