@smartsoft001-mobilems/angular 2.10.0 → 2.12.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,8 +1,9 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
2
  import { Config, Page, IUser as IUser$1, MsFile } from '@smartsoft001-mobilems/models';
3
3
  import * as i0 from '@angular/core';
4
- import { ModuleWithProviders, ElementRef, Signal, AfterContentInit, TemplateRef } from '@angular/core';
4
+ import { ModuleWithProviders, ElementRef, Signal, AfterContentInit, TemplateRef, OnInit } from '@angular/core';
5
5
  import * as i1 from '@angular/router';
6
+ import { CanActivateFn } from '@angular/router';
6
7
  import { AppBaseComponent, PageBaseComponent, BaseComponent } from '@smartsoft001/angular';
7
8
  import { Observable, Subscription } from 'rxjs';
8
9
  import { MetaDefinition } from '@angular/platform-browser';
@@ -266,7 +267,7 @@ declare abstract class CrudBaseService<T extends IEntity<string>> extends CrudSe
266
267
  protected getQueryType(type: '=' | '!=' | '>=' | '<=' | '<' | '>', isArray: boolean): "" | "[from]" | "[to]" | "[]";
267
268
  }
268
269
 
269
- declare const SERVICES: (typeof ConfigsFacade | typeof StyleService | typeof ConfigsService | typeof AuthStorageService | typeof ContrastService | typeof FileUrlService | typeof GlobalService | typeof TranslationService | typeof MetaService | typeof SeoService | typeof SettingsService | typeof WcagService | typeof DictionaryService)[];
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)[];
270
271
 
271
272
  declare class PageComponent extends PageBaseComponent {
272
273
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
@@ -595,5 +596,95 @@ interface SearchQuery {
595
596
  searchTitle: string;
596
597
  }
597
598
 
598
- export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, GameType, GlobalService, ImageBox, ListMode, MetaService, PageComponent, SERVICES, ScrollTopComponent, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, environment, setTranslationsAndLang };
599
+ /**
600
+ * Directive that adds a "hover" CSS class to the host element on mouse enter
601
+ * and removes it on mouse leave.
602
+ *
603
+ * @example
604
+ * ```html
605
+ * <div smartHover>Hover me</div>
606
+ * ```
607
+ */
608
+ declare class HoverDirective {
609
+ private readonly el;
610
+ /**
611
+ * Adds the "hover" class when the mouse enters the element
612
+ */
613
+ onMouseEnter(): void;
614
+ /**
615
+ * Removes the "hover" class when the mouse leaves the element
616
+ */
617
+ onMouseLeave(): void;
618
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoverDirective, never>;
619
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HoverDirective, "[smartHover]", never, {}, {}, never, never, true, never>;
620
+ }
621
+
622
+ /**
623
+ * Directive that provides programmatic scrolling and overflow detection
624
+ * for horizontally or vertically scrollable containers.
625
+ *
626
+ * @example
627
+ * ```html
628
+ * <div smartScrollable [scrollUnit]="200" #scroll="smartScrollable">
629
+ * <!-- scrollable content -->
630
+ * </div>
631
+ * <button (click)="scroll.scrollHorizontal(1)" [disabled]="!scroll.canScrollEndHorizontal">
632
+ * Next →
633
+ * </button>
634
+ * ```
635
+ */
636
+ declare class ScrollableDirective implements OnInit {
637
+ private readonly el;
638
+ /**
639
+ * The number of pixels to scroll per unit when using scroll methods.
640
+ * Can be updated dynamically to change scroll behavior.
641
+ */
642
+ readonly scrollUnit: i0.InputSignal<number>;
643
+ /** Indicates if the container can scroll further to the right */
644
+ canScrollEndHorizontal: i0.WritableSignal<boolean>;
645
+ /** Indicates if the container can scroll further to the left */
646
+ canScrollStartHorizontal: i0.WritableSignal<boolean>;
647
+ /** Indicates if the container can scroll further down */
648
+ canScrollEndVertical: i0.WritableSignal<boolean>;
649
+ /** Indicates if the container can scroll further up */
650
+ canScrollStartVertical: i0.WritableSignal<boolean>;
651
+ /** Current horizontal scroll position */
652
+ scrollLeftPosition: i0.WritableSignal<number>;
653
+ /** Current vertical scroll position */
654
+ scrollTopPosition: i0.WritableSignal<number>;
655
+ constructor();
656
+ ngOnInit(): void;
657
+ /**
658
+ * Scrolls the container horizontally by the specified number of units.
659
+ * @param units Number of scroll units (can be negative for backward scroll)
660
+ */
661
+ scrollHorizontal(units: number): void;
662
+ /**
663
+ * Scrolls the container vertically by the specified number of units.
664
+ * @param units Number of scroll units (can be negative for upward scroll)
665
+ */
666
+ scrollVertical(units: number): void;
667
+ /**
668
+ * Updates all overflow detection signals based on current scroll position
669
+ */
670
+ private updateOverflow;
671
+ /**
672
+ * Adds scroll event listener to track scroll position changes
673
+ */
674
+ private addScrollListener;
675
+ /**
676
+ * Adds window resize listener to recalculate overflow on resize
677
+ */
678
+ private addResizeListener;
679
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableDirective, never>;
680
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableDirective, "[smartScrollable]", ["smartScrollable"], { "scrollUnit": { "alias": "scrollUnit"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
681
+ }
682
+
683
+ declare const DIRECTIVES: never[];
684
+
685
+ declare const authenticationGuard: CanActivateFn;
686
+
687
+ declare const unauthorizedGuard: CanActivateFn;
688
+
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 };
599
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001-mobilems/angular",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "module": "fesm2022/smartsoft001-mobilems-angular.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {