@smartsoft001-mobilems/angular 2.53.0 → 2.55.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,17 +1,18 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import * as _smartsoft001_mobilems_models from '@smartsoft001-mobilems/models';
|
|
3
|
-
import { Config, Page, IUser as IUser$1, MsFile, ConfigPageType, ConfigMenuItem, ArticleWidgetType, ArticleWidget, IArticleWidget, IArticleWidgetText, PageSlide } from '@smartsoft001-mobilems/models';
|
|
3
|
+
import { Config, Page, IUser as IUser$1, MsFile, MenuItem, ConfigPageType, ConfigMenuItem, ArticleWidgetType, ArticleWidget, IArticleWidget, IArticleWidgetText, PageSlide } from '@smartsoft001-mobilems/models';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { ModuleWithProviders, TemplateRef, InjectionToken, ElementRef,
|
|
5
|
+
import { ModuleWithProviders, TemplateRef, InjectionToken, ElementRef, AfterContentInit, OnInit, AfterViewInit } from '@angular/core';
|
|
6
6
|
import * as i1 from '@angular/router';
|
|
7
7
|
import { CanActivateFn, ActivatedRoute } from '@angular/router';
|
|
8
8
|
import { AppBaseComponent, PageBaseComponent, BaseComponent } from '@smartsoft001/angular';
|
|
9
9
|
import * as rxjs from 'rxjs';
|
|
10
10
|
import { Observable, Subscription } from 'rxjs';
|
|
11
11
|
import { MetaDefinition } from '@angular/platform-browser';
|
|
12
|
-
import { CrudSearchService, ICrudFilter, CrudService, ICrudFilterQueryItem } from '@smartsoft001/crud-shell-angular';
|
|
12
|
+
import { CrudSearchService, ICrudFilter, CrudService, ICrudFilterQueryItem, CrudFacade } from '@smartsoft001/crud-shell-angular';
|
|
13
13
|
import * as dist_packages_shared_models_src from 'dist/packages/shared/models/src';
|
|
14
14
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
15
|
+
import { MasonryOptions } from '@thisissoon/angular-masonry';
|
|
15
16
|
|
|
16
17
|
declare function setTranslationsAndLang(service: TranslateService): void;
|
|
17
18
|
interface ITranslateData {
|
|
@@ -302,17 +303,19 @@ declare class TranslationService {
|
|
|
302
303
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
303
304
|
}
|
|
304
305
|
|
|
305
|
-
type WcagContrast = 'high' | 'normal'
|
|
306
|
+
type WcagContrast = 'high' | 'normal';
|
|
306
307
|
type WcagText = 'small' | 'normal' | 'large';
|
|
307
308
|
type WcagLetterSpacing = 'small' | 'normal' | 'large';
|
|
308
309
|
type WcagWordSpacing = 'small' | 'normal' | 'large';
|
|
310
|
+
type WcagGrayscale = 'true' | 'false';
|
|
309
311
|
interface IWcagConfig {
|
|
310
312
|
contrast: WcagContrast;
|
|
311
313
|
text: WcagText;
|
|
312
314
|
letterSpacing: WcagLetterSpacing;
|
|
313
315
|
wordSpacing: WcagWordSpacing;
|
|
316
|
+
grayscale: WcagGrayscale;
|
|
314
317
|
}
|
|
315
|
-
type WcagChangeType = 'setContrast' | 'setText' | 'setLetterSpacing' | 'setWordSpacing';
|
|
318
|
+
type WcagChangeType = 'setContrast' | 'setText' | 'setLetterSpacing' | 'setWordSpacing' | 'setGrayscale';
|
|
316
319
|
declare class WcagService {
|
|
317
320
|
private readonly translationService;
|
|
318
321
|
private readonly platformId;
|
|
@@ -327,6 +330,7 @@ declare class WcagService {
|
|
|
327
330
|
setText(value: WcagText): void;
|
|
328
331
|
setLetterSpacing(value: WcagLetterSpacing): void;
|
|
329
332
|
setWordSpacing(value: WcagWordSpacing): void;
|
|
333
|
+
setGrayscale(value: WcagGrayscale): void;
|
|
330
334
|
reset(): void;
|
|
331
335
|
private getSpacingValue;
|
|
332
336
|
private loadConfig;
|
|
@@ -366,17 +370,16 @@ declare class QueryFilterService {
|
|
|
366
370
|
}): ICrudFilter;
|
|
367
371
|
}
|
|
368
372
|
|
|
369
|
-
declare const SERVICES: (typeof
|
|
373
|
+
declare const SERVICES: (typeof AuthStorageService | typeof ConfigsService | typeof ContrastService | typeof DictionaryService | typeof FileUrlService | typeof GlobalService | typeof TranslationService | typeof MetaService | typeof ModalService | typeof SearchService | typeof SeoService | typeof SettingsService | typeof StyleService | typeof WcagService | typeof ConfigsFacade)[];
|
|
370
374
|
|
|
371
375
|
declare class PageComponent extends PageBaseComponent {
|
|
372
376
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
|
|
373
377
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PageComponent, never, never, {}, {}, never, never, true, never>;
|
|
374
378
|
}
|
|
375
379
|
|
|
376
|
-
type FilterType = string | string[] | undefined;
|
|
380
|
+
type FilterType = string | string[] | MenuItem | MenuItem[] | undefined;
|
|
377
381
|
declare class FiltersContext<T extends IEntity<string>> extends BaseComponent {
|
|
378
382
|
private readonly facade;
|
|
379
|
-
private _filter?;
|
|
380
383
|
set searchText(val: string | undefined);
|
|
381
384
|
get searchText(): string | undefined;
|
|
382
385
|
set page(val: number);
|
|
@@ -439,15 +442,22 @@ declare class FiltersContext<T extends IEntity<string>> extends BaseComponent {
|
|
|
439
442
|
get types(): FilterType;
|
|
440
443
|
set extraNumbersValue(val: FilterType);
|
|
441
444
|
get extraNumbersValue(): FilterType;
|
|
442
|
-
|
|
443
|
-
|
|
445
|
+
set filters(filters: Array<{
|
|
446
|
+
val: FilterType;
|
|
447
|
+
key: string;
|
|
448
|
+
type: '=' | '!=' | '>=' | '<=' | '<' | '>';
|
|
449
|
+
}> | undefined);
|
|
450
|
+
totalCount: i0.Signal<number>;
|
|
451
|
+
constructor(facade: CrudFacade<T>);
|
|
444
452
|
private refresh;
|
|
445
453
|
private filterGet;
|
|
446
454
|
private filterSet;
|
|
455
|
+
private multipleFilterSet;
|
|
447
456
|
}
|
|
448
457
|
declare abstract class FiltersBaseComponent<T extends IEntity<string>> implements AfterContentInit {
|
|
458
|
+
private facade;
|
|
449
459
|
context?: FiltersContext<T>;
|
|
450
|
-
contentTpl: Signal<TemplateRef<
|
|
460
|
+
contentTpl: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
451
461
|
ngAfterContentInit(): void;
|
|
452
462
|
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersBaseComponent<any>, never>;
|
|
453
463
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FiltersBaseComponent<any>, "smart-mobilems-filters", never, {}, {}, ["contentTpl"], never, true, never>;
|
|
@@ -574,6 +584,25 @@ declare class HeaderComponent {
|
|
|
574
584
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "smart-mobilems-header", never, {}, {}, never, never, true, never>;
|
|
575
585
|
}
|
|
576
586
|
|
|
587
|
+
declare class MasonryGridComponent {
|
|
588
|
+
list: i0.InputSignal<unknown[] | undefined>;
|
|
589
|
+
options: i0.InputSignal<MasonryOptions>;
|
|
590
|
+
classes: i0.InputSignal<string | string[]>;
|
|
591
|
+
private masonryInstance?;
|
|
592
|
+
private masonryGridRef;
|
|
593
|
+
masonryContentTpl: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
594
|
+
masonryReady: i0.WritableSignal<boolean>;
|
|
595
|
+
private masonry;
|
|
596
|
+
private defaultOptions;
|
|
597
|
+
constructor();
|
|
598
|
+
initMasonry(): void;
|
|
599
|
+
destroyMasonry(): void;
|
|
600
|
+
private waitForImagesToLoad;
|
|
601
|
+
private layoutMasonry;
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MasonryGridComponent, never>;
|
|
603
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MasonryGridComponent, "smart-mobilems-masonry-grid", never, { "list": { "alias": "list"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, ["masonryContentTpl"], never, true, never>;
|
|
604
|
+
}
|
|
605
|
+
|
|
577
606
|
interface IMenuItem {
|
|
578
607
|
label: string;
|
|
579
608
|
route: string;
|
|
@@ -1079,5 +1108,5 @@ declare abstract class PageStaticComponent {
|
|
|
1079
1108
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PageStaticComponent, never, never, {}, {}, never, never, true, never>;
|
|
1080
1109
|
}
|
|
1081
1110
|
|
|
1082
|
-
export { ARTICLES_WIDGET_COMPONENTS_TOKEN, AppComponent, AuthStorageService, COMPONENTS, ClickOutsideDirective, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HomeComponent, HoverDirective, ImageBox, ListMode, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, NotFoundComponent, PageComponent, PageStaticComponent, QueryFilterService, SEARCH_CONFIG_TOKEN, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, WidgetBaseComponent, WidgetComponent, WidgetTextComponent, authenticationGuard, environment, getSearchFilterQuery, setTranslationsAndLang, unauthorizedGuard };
|
|
1083
|
-
export type { ArticlesWidgetComponentsToken, ChangePasswordErrorMessage, ClickOutsideEvent, 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, ISearchConfig, ISearchData, ISearchResults, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, SearchSource, WcagChangeType, WcagContrast, WcagLetterSpacing, WcagText, WcagWordSpacing };
|
|
1111
|
+
export { ARTICLES_WIDGET_COMPONENTS_TOKEN, AppComponent, AuthStorageService, COMPONENTS, ClickOutsideDirective, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HomeComponent, HoverDirective, ImageBox, ListMode, MasonryGridComponent, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, NotFoundComponent, PageComponent, PageStaticComponent, QueryFilterService, SEARCH_CONFIG_TOKEN, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, WidgetBaseComponent, WidgetComponent, WidgetTextComponent, authenticationGuard, environment, getSearchFilterQuery, setTranslationsAndLang, unauthorizedGuard };
|
|
1112
|
+
export type { ArticlesWidgetComponentsToken, ChangePasswordErrorMessage, ClickOutsideEvent, 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, ISearchConfig, ISearchData, ISearchResults, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, SearchSource, WcagChangeType, WcagContrast, WcagGrayscale, WcagLetterSpacing, WcagText, WcagWordSpacing };
|