@smartsoft001-mobilems/angular 2.12.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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import
|
|
2
|
+
import * as _smartsoft001_mobilems_models from '@smartsoft001-mobilems/models';
|
|
3
|
+
import { Config, Page, IUser as IUser$1, MsFile, ConfigPageType, ConfigMenuItem } from '@smartsoft001-mobilems/models';
|
|
3
4
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { ModuleWithProviders, ElementRef, Signal, AfterContentInit,
|
|
5
|
+
import { ModuleWithProviders, TemplateRef, ElementRef, Signal, AfterContentInit, OnInit } from '@angular/core';
|
|
5
6
|
import * as i1 from '@angular/router';
|
|
6
7
|
import { CanActivateFn } from '@angular/router';
|
|
7
8
|
import { AppBaseComponent, PageBaseComponent, BaseComponent } from '@smartsoft001/angular';
|
|
9
|
+
import * as rxjs from 'rxjs';
|
|
8
10
|
import { Observable, Subscription } from 'rxjs';
|
|
9
11
|
import { MetaDefinition } from '@angular/platform-browser';
|
|
10
12
|
import { CrudService, ICrudFilter, ICrudFilterQueryItem } from '@smartsoft001/crud-shell-angular';
|
|
@@ -162,6 +164,54 @@ declare class MetaService {
|
|
|
162
164
|
static ɵprov: i0.ɵɵInjectableDeclaration<MetaService>;
|
|
163
165
|
}
|
|
164
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
|
+
|
|
165
215
|
declare class SeoService {
|
|
166
216
|
private readonly title;
|
|
167
217
|
private readonly meta;
|
|
@@ -267,7 +317,7 @@ declare abstract class CrudBaseService<T extends IEntity<string>> extends CrudSe
|
|
|
267
317
|
protected getQueryType(type: '=' | '!=' | '>=' | '<=' | '<' | '>', isArray: boolean): "" | "[from]" | "[to]" | "[]";
|
|
268
318
|
}
|
|
269
319
|
|
|
270
|
-
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)[];
|
|
271
321
|
|
|
272
322
|
declare class PageComponent extends PageBaseComponent {
|
|
273
323
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
|
|
@@ -364,6 +414,62 @@ declare class ScrollTopComponent {
|
|
|
364
414
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollTopComponent, never, never, {}, {}, never, never, true, never>;
|
|
365
415
|
}
|
|
366
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
|
+
|
|
443
|
+
interface IFooterStaticPage {
|
|
444
|
+
type: ConfigPageType.static;
|
|
445
|
+
title: string;
|
|
446
|
+
page: {
|
|
447
|
+
id: number;
|
|
448
|
+
title: string;
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
interface IFooterConfig {
|
|
452
|
+
theme?: {
|
|
453
|
+
footer?: {
|
|
454
|
+
menu?: ConfigMenuItem[];
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
declare class FooterComponent {
|
|
459
|
+
private configsFacade;
|
|
460
|
+
readonly config: i0.Signal<_smartsoft001_mobilems_models.Config | null>;
|
|
461
|
+
readonly currentYear: i0.Signal<number>;
|
|
462
|
+
readonly staticPages: i0.Signal<IFooterStaticPage[]>;
|
|
463
|
+
readonly hasStaticPages: i0.Signal<boolean>;
|
|
464
|
+
readonly menuItems: i0.Signal<ConfigMenuItem[]>;
|
|
465
|
+
readonly hasMenuItems: i0.Signal<boolean>;
|
|
466
|
+
getStaticPageById(id: number): IFooterStaticPage | undefined;
|
|
467
|
+
getStaticPageTitle(id: number): string | undefined;
|
|
468
|
+
updateConfig(_config: IFooterConfig): void;
|
|
469
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
470
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "smart-mobilems-footer", never, {}, {}, never, never, true, never>;
|
|
471
|
+
}
|
|
472
|
+
|
|
367
473
|
declare const COMPONENTS: (typeof AppComponent)[];
|
|
368
474
|
|
|
369
475
|
declare enum ListMode {
|
|
@@ -686,5 +792,5 @@ declare const authenticationGuard: CanActivateFn;
|
|
|
686
792
|
|
|
687
793
|
declare const unauthorizedGuard: CanActivateFn;
|
|
688
794
|
|
|
689
|
-
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, GameType, GlobalService, HoverDirective, ImageBox, ListMode, MetaService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
|
|
690
|
-
export type { ChangePasswordErrorMessage, FileUrlMode, FilterType, ForgotPasswordErrorMessage, IAudio, IDictionaryItem, IErrorMessages, IFilterItem, IFilterOne, 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 };
|
|
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 };
|
|
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 };
|