@smartsoft001-mobilems/angular 2.14.0 → 2.16.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
|
@@ -9,6 +9,7 @@ import { AppBaseComponent, PageBaseComponent, BaseComponent } from '@smartsoft00
|
|
|
9
9
|
import * as rxjs from 'rxjs';
|
|
10
10
|
import { Observable, Subscription } from 'rxjs';
|
|
11
11
|
import { MetaDefinition } from '@angular/platform-browser';
|
|
12
|
+
import * as dist_packages_shared_models_src from 'dist/packages/shared/models/src';
|
|
12
13
|
import { CrudService, ICrudFilter, ICrudFilterQueryItem } from '@smartsoft001/crud-shell-angular';
|
|
13
14
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
14
15
|
|
|
@@ -470,6 +471,102 @@ declare class FooterComponent {
|
|
|
470
471
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "smart-mobilems-footer", never, {}, {}, never, never, true, never>;
|
|
471
472
|
}
|
|
472
473
|
|
|
474
|
+
interface IHeaderUser {
|
|
475
|
+
userID: string;
|
|
476
|
+
[key: string]: unknown;
|
|
477
|
+
}
|
|
478
|
+
interface IHeaderConfig {
|
|
479
|
+
theme?: {
|
|
480
|
+
header?: {
|
|
481
|
+
showWcagConfig?: boolean;
|
|
482
|
+
showSearch?: boolean;
|
|
483
|
+
showLocalCollection?: boolean;
|
|
484
|
+
showLanguageSelector?: boolean;
|
|
485
|
+
showUserAccount?: boolean;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
declare class HeaderComponent {
|
|
490
|
+
private configsFacade;
|
|
491
|
+
private router;
|
|
492
|
+
private platformId;
|
|
493
|
+
readonly config: i0.Signal<dist_packages_shared_models_src.Config | null>;
|
|
494
|
+
readonly isMobile: i0.Signal<boolean>;
|
|
495
|
+
readonly showWcagConfig: i0.WritableSignal<boolean>;
|
|
496
|
+
readonly showSearchPanel: i0.WritableSignal<boolean>;
|
|
497
|
+
readonly user: i0.WritableSignal<IHeaderUser | null>;
|
|
498
|
+
readonly localCollectionCount: i0.WritableSignal<number>;
|
|
499
|
+
readonly headerConfig: i0.Signal<{
|
|
500
|
+
header?: {
|
|
501
|
+
showWcagConfig?: boolean;
|
|
502
|
+
showSearch?: boolean;
|
|
503
|
+
showLocalCollection?: boolean;
|
|
504
|
+
showLanguageSelector?: boolean;
|
|
505
|
+
showUserAccount?: boolean;
|
|
506
|
+
};
|
|
507
|
+
}>;
|
|
508
|
+
readonly isWcagVisible: i0.Signal<boolean>;
|
|
509
|
+
readonly isSearchVisible: i0.Signal<boolean>;
|
|
510
|
+
readonly isLocalCollectionVisible: i0.Signal<boolean>;
|
|
511
|
+
readonly isLanguageSelectorVisible: i0.Signal<boolean>;
|
|
512
|
+
readonly isUserAccountVisible: i0.Signal<boolean>;
|
|
513
|
+
toggleWcagConfig(): void;
|
|
514
|
+
toggleSearchPanel(): void;
|
|
515
|
+
onWcagCloseButtonEvent(closed: boolean): void;
|
|
516
|
+
onSearchPanelButtonEvent(opened: boolean): void;
|
|
517
|
+
routeToLogin(): void;
|
|
518
|
+
routeToUserAccount(): void;
|
|
519
|
+
routeToLocalCollection(): void;
|
|
520
|
+
setUser(user: IHeaderUser | null): void;
|
|
521
|
+
setLocalCollectionCount(count: number): void;
|
|
522
|
+
getUser(): IHeaderUser | null;
|
|
523
|
+
getLocalCollectionCount(): number;
|
|
524
|
+
updateConfig(): void;
|
|
525
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
526
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "smart-mobilems-header", never, {}, {}, never, never, true, never>;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
interface IMenuItem {
|
|
530
|
+
label: string;
|
|
531
|
+
route: string;
|
|
532
|
+
icon?: string;
|
|
533
|
+
title?: string;
|
|
534
|
+
ariaLabel?: string;
|
|
535
|
+
}
|
|
536
|
+
interface IMenuConfig {
|
|
537
|
+
theme?: {
|
|
538
|
+
menu?: {
|
|
539
|
+
enabled?: boolean;
|
|
540
|
+
mobileBreakpoint?: number;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
declare class MenuComponent {
|
|
545
|
+
private configsFacade;
|
|
546
|
+
private router;
|
|
547
|
+
private platformId;
|
|
548
|
+
readonly menuItems: i0.InputSignal<IMenuItem[]>;
|
|
549
|
+
readonly searchEnabled: i0.InputSignal<boolean>;
|
|
550
|
+
readonly config: i0.Signal<dist_packages_shared_models_src.Config | null>;
|
|
551
|
+
readonly menuConfig: i0.Signal<{
|
|
552
|
+
menu?: {
|
|
553
|
+
enabled?: boolean;
|
|
554
|
+
mobileBreakpoint?: number;
|
|
555
|
+
};
|
|
556
|
+
}>;
|
|
557
|
+
readonly mobileBreakpoint: i0.Signal<number>;
|
|
558
|
+
readonly isMobileMenu: i0.Signal<boolean>;
|
|
559
|
+
private _menuOpenState;
|
|
560
|
+
toggleMenu(): void;
|
|
561
|
+
closeMenu(): void;
|
|
562
|
+
isOpened(): boolean;
|
|
563
|
+
isRouteActive(route: string): boolean;
|
|
564
|
+
getMenuItemTitle(item: IMenuItem): string;
|
|
565
|
+
getMenuItemAriaLabel(item: IMenuItem): string;
|
|
566
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
567
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "smart-mobilems-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
568
|
+
}
|
|
569
|
+
|
|
473
570
|
declare const COMPONENTS: (typeof AppComponent)[];
|
|
474
571
|
|
|
475
572
|
declare enum ListMode {
|
|
@@ -792,5 +889,5 @@ declare const authenticationGuard: CanActivateFn;
|
|
|
792
889
|
|
|
793
890
|
declare const unauthorizedGuard: CanActivateFn;
|
|
794
891
|
|
|
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 };
|
|
892
|
+
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HoverDirective, ImageBox, ListMode, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
|
|
893
|
+
export type { ChangePasswordErrorMessage, FileUrlMode, FilterType, ForgotPasswordErrorMessage, IAudio, IDictionaryItem, IErrorMessages, IFilterItem, IFilterOne, IFooterConfig, IFooterStaticPage, IGame, IGameAnswer, IGameMemoConfig, IGamePuzzleConfig, IGameQuestion, IGameQuizConfig, IHeaderConfig, IHeaderUser, IImages, ILoginResponse, IMenuConfig, IMenuItem, IObjectGallery, IObjectGalleryItem, IObjectGallerySingleObject, IQuickMenu, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, WcagChangeType, WcagContrast, WcagLetterSpacing, WcagText, WcagWordSpacing };
|