@smartsoft001-mobilems/angular 2.14.0 → 2.15.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,61 @@ 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
+
473
529
  declare const COMPONENTS: (typeof AppComponent)[];
474
530
 
475
531
  declare enum ListMode {
@@ -792,5 +848,5 @@ declare const authenticationGuard: CanActivateFn;
792
848
 
793
849
  declare const unauthorizedGuard: CanActivateFn;
794
850
 
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 };
851
+ export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, 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 };
852
+ export type { ChangePasswordErrorMessage, FileUrlMode, FilterType, ForgotPasswordErrorMessage, IAudio, IDictionaryItem, IErrorMessages, IFilterItem, IFilterOne, IFooterConfig, IFooterStaticPage, IGame, IGameAnswer, IGameMemoConfig, IGamePuzzleConfig, IGameQuestion, IGameQuizConfig, IHeaderConfig, IHeaderUser, 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.14.0",
3
+ "version": "2.15.0",
4
4
  "module": "fesm2022/smartsoft001-mobilems-angular.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {