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