@smartsoft001-mobilems/angular 2.13.0 → 2.14.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/index.d.ts CHANGED
@@ -2,10 +2,11 @@ import { TranslateService } from '@ngx-translate/core';
2
2
  import * as _smartsoft001_mobilems_models from '@smartsoft001-mobilems/models';
3
3
  import { Config, Page, IUser as IUser$1, MsFile, ConfigPageType, ConfigMenuItem } from '@smartsoft001-mobilems/models';
4
4
  import * as i0 from '@angular/core';
5
- import { ModuleWithProviders, ElementRef, Signal, AfterContentInit, TemplateRef, OnInit } from '@angular/core';
5
+ import { ModuleWithProviders, TemplateRef, ElementRef, Signal, AfterContentInit, OnInit } from '@angular/core';
6
6
  import * as i1 from '@angular/router';
7
7
  import { CanActivateFn } from '@angular/router';
8
8
  import { AppBaseComponent, PageBaseComponent, BaseComponent } from '@smartsoft001/angular';
9
+ import * as rxjs from 'rxjs';
9
10
  import { Observable, Subscription } from 'rxjs';
10
11
  import { MetaDefinition } from '@angular/platform-browser';
11
12
  import { CrudService, ICrudFilter, ICrudFilterQueryItem } from '@smartsoft001/crud-shell-angular';
@@ -163,6 +164,54 @@ declare class MetaService {
163
164
  static ɵprov: i0.ɵɵInjectableDeclaration<MetaService>;
164
165
  }
165
166
 
167
+ /**
168
+ * Reference to an opened modal.
169
+ * Provides methods to close the modal and observe its lifecycle.
170
+ */
171
+ declare class ModalRef {
172
+ private readonly closeCallback;
173
+ private readonly _afterClosed;
174
+ /**
175
+ * Observable that emits when the modal has been closed.
176
+ * Completes after emission.
177
+ */
178
+ readonly afterClosed$: rxjs.Observable<void>;
179
+ constructor(closeCallback: () => void);
180
+ /**
181
+ * Closes the modal and triggers cleanup.
182
+ * Safe to call multiple times.
183
+ */
184
+ close(): void;
185
+ }
186
+
187
+ /**
188
+ * Service for managing modal dialogs.
189
+ * Provides methods to open, close, and manage modal instances.
190
+ */
191
+ declare class ModalService {
192
+ private readonly appRef;
193
+ private readonly injector;
194
+ private readonly document;
195
+ private activeModals;
196
+ /**
197
+ * Opens a modal with the provided template.
198
+ * @param template TemplateRef to render inside the modal
199
+ * @returns ModalRef instance for controlling the modal
200
+ */
201
+ open(template: TemplateRef<any>): ModalRef;
202
+ /**
203
+ * Closes a specific modal instance.
204
+ * @param componentRef Component reference to close
205
+ */
206
+ private closeModal;
207
+ /**
208
+ * Closes all currently open modals.
209
+ */
210
+ closeAll(): void;
211
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
212
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
213
+ }
214
+
166
215
  declare class SeoService {
167
216
  private readonly title;
168
217
  private readonly meta;
@@ -268,7 +317,7 @@ declare abstract class CrudBaseService<T extends IEntity<string>> extends CrudSe
268
317
  protected getQueryType(type: '=' | '!=' | '>=' | '<=' | '<' | '>', isArray: boolean): "" | "[from]" | "[to]" | "[]";
269
318
  }
270
319
 
271
- declare const SERVICES: (typeof AuthStorageService | typeof ConfigsService | typeof ContrastService | typeof DictionaryService | typeof FileUrlService | typeof GlobalService | typeof TranslationService | typeof MetaService | typeof SeoService | typeof SettingsService | typeof StyleService | typeof WcagService | typeof ConfigsFacade)[];
320
+ declare const SERVICES: (typeof AuthStorageService | typeof ConfigsService | typeof ContrastService | typeof DictionaryService | typeof FileUrlService | typeof GlobalService | typeof TranslationService | typeof MetaService | typeof ModalService | typeof SeoService | typeof SettingsService | typeof StyleService | typeof WcagService | typeof ConfigsFacade)[];
272
321
 
273
322
  declare class PageComponent extends PageBaseComponent {
274
323
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
@@ -365,6 +414,32 @@ declare class ScrollTopComponent {
365
414
  static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollTopComponent, never, never, {}, {}, never, never, true, never>;
366
415
  }
367
416
 
417
+ /**
418
+ * Container component for modal overlay and content.
419
+ * Handles backdrop clicks and ESC key press.
420
+ */
421
+ declare class ModalContainerComponent {
422
+ /**
423
+ * Template to render inside the modal content area.
424
+ */
425
+ contentTemplate: i0.InputSignal<TemplateRef<any>>;
426
+ /**
427
+ * Emits when backdrop is clicked or ESC key is pressed.
428
+ */
429
+ backdropClick: i0.OutputEmitterRef<void>;
430
+ /**
431
+ * Listens for ESC key press on document level.
432
+ */
433
+ onEscapeKey(): void;
434
+ /**
435
+ * Handles backdrop click event.
436
+ * @param _event Mouse click event
437
+ */
438
+ onBackdropClick(_event: MouseEvent): void;
439
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
440
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "smart-mobilems-modal-container", never, { "contentTemplate": { "alias": "contentTemplate"; "required": true; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, never, true, never>;
441
+ }
442
+
368
443
  interface IFooterStaticPage {
369
444
  type: ConfigPageType.static;
370
445
  title: string;
@@ -717,5 +792,5 @@ declare const authenticationGuard: CanActivateFn;
717
792
 
718
793
  declare const unauthorizedGuard: CanActivateFn;
719
794
 
720
- export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HoverDirective, ImageBox, ListMode, MetaService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
795
+ export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HoverDirective, ImageBox, ListMode, MetaService, ModalContainerComponent, ModalRef, ModalService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
721
796
  export type { ChangePasswordErrorMessage, FileUrlMode, FilterType, ForgotPasswordErrorMessage, IAudio, IDictionaryItem, IErrorMessages, IFilterItem, IFilterOne, IFooterConfig, IFooterStaticPage, IGame, IGameAnswer, IGameMemoConfig, IGamePuzzleConfig, IGameQuestion, IGameQuizConfig, IImages, ILoginResponse, IObjectGallery, IObjectGalleryItem, IObjectGallerySingleObject, IQuickMenu, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, WcagChangeType, WcagContrast, WcagLetterSpacing, WcagText, WcagWordSpacing };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001-mobilems/angular",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "module": "fesm2022/smartsoft001-mobilems-angular.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {