@smartsoft001-mobilems/angular 2.31.0 → 2.33.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
@@ -345,7 +345,7 @@ declare abstract class CrudBaseService<T extends IEntity<string>> extends CrudSe
345
345
  protected handleError(err: unknown & {
346
346
  status: number;
347
347
  }): Observable<any>;
348
- protected getQueryType(type: '=' | '!=' | '>=' | '<=' | '<' | '>', isArray: boolean): "" | "[from]" | "[to]" | "[]";
348
+ protected getQueryType(type: '=' | '!=' | '>=' | '<=' | '<' | '>', isArray: boolean): "[from]" | "[to]" | "[]" | "";
349
349
  }
350
350
 
351
351
  declare class QueryFilterService {
@@ -356,7 +356,7 @@ declare class QueryFilterService {
356
356
  }): ICrudFilter;
357
357
  }
358
358
 
359
- 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)[];
359
+ declare const SERVICES: (typeof ConfigsFacade | 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)[];
360
360
 
361
361
  declare class PageComponent extends PageBaseComponent {
362
362
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
@@ -921,11 +921,89 @@ declare class ScrollableDirective implements OnInit {
921
921
  static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableDirective, "[smartScrollable]", ["smartScrollable"], { "scrollUnit": { "alias": "scrollUnit"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
922
922
  }
923
923
 
924
+ /**
925
+ * Event data emitted when a click is detected outside an element.
926
+ *
927
+ * @example
928
+ * ```typescript
929
+ * const clickEvent: ClickOutsideEvent = {
930
+ * event: mouseEvent,
931
+ * target: element
932
+ * };
933
+ * ```
934
+ */
935
+ interface ClickOutsideEvent {
936
+ /**
937
+ * The native MouseEvent that triggered the outside click.
938
+ */
939
+ event: MouseEvent;
940
+ /**
941
+ * The target element that was clicked.
942
+ */
943
+ target: EventTarget | null;
944
+ }
945
+
946
+ /**
947
+ * Directive that detects when a click occurs outside of an element.
948
+ *
949
+ * When a click is detected outside the element, the `smartClickOutside` output
950
+ * signal emits a `ClickOutsideEvent` containing the click event and target element.
951
+ *
952
+ * The directive respects the `isActive` input signal. When `isActive` is false,
953
+ * outside clicks are not detected.
954
+ *
955
+ * @example
956
+ * ```typescript
957
+ * import { Component, signal } from '@angular/core';
958
+ * import { ClickOutsideDirective } from '@smartsoft001-mobilems/angular';
959
+ *
960
+ * @Component({
961
+ * selector: 'app-example',
962
+ * imports: [ClickOutsideDirective],
963
+ * template: `\n * <div
964
+ * smartClickOutside
965
+ * [isActive]="isActive()"
966
+ * (smartClickOutside)="onClickOutside()"
967
+ * class="smart-border smart-p-4"
968
+ * >
969
+ * Content inside
970
+ * </div>
971
+ * `,
972
+ * })
973
+ * export class ExampleComponent {
974
+ * isActive = signal(true);
975
+ *
976
+ * onClickOutside(): void {
977
+ * console.log('Clicked outside!');
978
+ * }
979
+ * }
980
+ * ```
981
+ */
982
+ declare class ClickOutsideDirective {
983
+ private readonly elementRef;
984
+ /**
985
+ * Controls whether the directive responds to click events.
986
+ * When false, no outside clicks are detected.
987
+ */
988
+ readonly isActive: i0.InputSignal<boolean>;
989
+ /**
990
+ * Emits when a click outside the element is detected while isActive is true.
991
+ */
992
+ readonly smartClickOutside: i0.OutputEmitterRef<ClickOutsideEvent>;
993
+ private readonly clickEffect;
994
+ /**
995
+ * Handles document click events and checks if the click was outside the element.
996
+ */
997
+ onClick(event: MouseEvent | null): void;
998
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
999
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[smartClickOutside]", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; }, { "smartClickOutside": "smartClickOutside"; }, never, never, true, never>;
1000
+ }
1001
+
924
1002
  declare const DIRECTIVES: never[];
925
1003
 
926
1004
  declare const authenticationGuard: CanActivateFn;
927
1005
 
928
1006
  declare const unauthorizedGuard: CanActivateFn;
929
1007
 
930
- 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, QueryFilterService, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
931
- 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, ISearchData, ISearchResults, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, SearchSource, WcagChangeType, WcagContrast, WcagLetterSpacing, WcagText, WcagWordSpacing };
1008
+ export { AppComponent, AuthStorageService, COMPONENTS, ClickOutsideDirective, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HoverDirective, ImageBox, ListMode, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, PageComponent, QueryFilterService, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
1009
+ export type { 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, ISearchData, ISearchResults, ISingleObjectMultimedia, ITranslateData, ITranslationConfig, IUser, IUserInfo, IUserModify, IUserQuery, IUserQueryList, IUserRegister, IVideo, IWcagConfig, ModifyUserErrorMessage, RegisterErrorMessage, SearchQuery, SearchSource, WcagChangeType, WcagContrast, WcagLetterSpacing, WcagText, WcagWordSpacing };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001-mobilems/angular",
3
- "version": "2.31.0",
3
+ "version": "2.33.0",
4
4
  "module": "fesm2022/smartsoft001-mobilems-angular.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {