@acorex/core 19.15.0-next.9 → 20.0.1

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.
Files changed (140) hide show
  1. package/components/index.d.ts +23 -2
  2. package/config/index.d.ts +18 -2
  3. package/constants/index.d.ts +19 -2
  4. package/date-time/index.d.ts +341 -11
  5. package/events/index.d.ts +21 -1
  6. package/fesm2022/acorex-core-components.mjs +3 -3
  7. package/fesm2022/acorex-core-components.mjs.map +1 -1
  8. package/fesm2022/acorex-core-config.mjs +7 -10
  9. package/fesm2022/acorex-core-config.mjs.map +1 -1
  10. package/fesm2022/acorex-core-constants.mjs.map +1 -1
  11. package/fesm2022/acorex-core-date-time.mjs +27 -27
  12. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  13. package/fesm2022/acorex-core-events.mjs +3 -3
  14. package/fesm2022/acorex-core-events.mjs.map +1 -1
  15. package/fesm2022/acorex-core-file.mjs +11 -12
  16. package/fesm2022/acorex-core-file.mjs.map +1 -1
  17. package/fesm2022/acorex-core-format.mjs +34 -36
  18. package/fesm2022/acorex-core-format.mjs.map +1 -1
  19. package/fesm2022/acorex-core-icon.mjs +51 -0
  20. package/fesm2022/acorex-core-icon.mjs.map +1 -0
  21. package/fesm2022/acorex-core-image.mjs +4 -5
  22. package/fesm2022/acorex-core-image.mjs.map +1 -1
  23. package/fesm2022/acorex-core-locale-en-AU.profile-DNjKIaZS.mjs.map +1 -1
  24. package/fesm2022/acorex-core-locale.mjs +10 -10
  25. package/fesm2022/acorex-core-locale.mjs.map +1 -1
  26. package/fesm2022/acorex-core-memoize.mjs.map +1 -1
  27. package/fesm2022/acorex-core-network.mjs +3 -3
  28. package/fesm2022/acorex-core-network.mjs.map +1 -1
  29. package/fesm2022/acorex-core-pipes.mjs +8 -8
  30. package/fesm2022/acorex-core-pipes.mjs.map +1 -1
  31. package/fesm2022/acorex-core-platform.mjs +24 -8
  32. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  33. package/fesm2022/acorex-core-storage.mjs +14 -17
  34. package/fesm2022/acorex-core-storage.mjs.map +1 -1
  35. package/fesm2022/acorex-core-translation.mjs +22 -22
  36. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  37. package/fesm2022/acorex-core-utils.mjs +3 -3
  38. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  39. package/fesm2022/acorex-core-validation.mjs +55 -57
  40. package/fesm2022/acorex-core-validation.mjs.map +1 -1
  41. package/fesm2022/acorex-core.mjs.map +1 -1
  42. package/file/index.d.ts +42 -3
  43. package/format/index.d.ts +122 -8
  44. package/icon/README.md +3 -0
  45. package/icon/index.d.ts +20 -0
  46. package/image/index.d.ts +16 -1
  47. package/index.d.ts +3 -1
  48. package/locale/index.d.ts +135 -8
  49. package/memoize/index.d.ts +3 -1
  50. package/network/index.d.ts +69 -4
  51. package/package.json +22 -18
  52. package/pipes/index.d.ts +12 -1
  53. package/platform/index.d.ts +82 -1
  54. package/storage/index.d.ts +145 -4
  55. package/translation/index.d.ts +109 -8
  56. package/utils/index.d.ts +118 -6
  57. package/validation/index.d.ts +249 -14
  58. package/components/lib/component.service.d.ts +0 -11
  59. package/components/lib/component.types.d.ts +0 -9
  60. package/config/lib/configs.d.ts +0 -6
  61. package/config/lib/configs.service.d.ts +0 -12
  62. package/constants/countries/countries.data.d.ts +0 -3
  63. package/constants/countries/country.d.ts +0 -13
  64. package/date-time/lib/calendar.service.d.ts +0 -34
  65. package/date-time/lib/dateTime.config.d.ts +0 -12
  66. package/date-time/lib/datetime.module.d.ts +0 -8
  67. package/date-time/lib/datetime.pipe.d.ts +0 -13
  68. package/date-time/lib/datetime.types.d.ts +0 -138
  69. package/date-time/lib/formatters/date.formatter.d.ts +0 -12
  70. package/date-time/lib/formatters/datetime.formatter.d.ts +0 -21
  71. package/date-time/lib/formatters/time-duration.formatter.d.ts +0 -21
  72. package/date-time/lib/formatters/time.formatter.d.ts +0 -12
  73. package/date-time/lib/formatters/timeleft.formatter.d.ts +0 -16
  74. package/date-time/lib/gregorian.calendar.d.ts +0 -21
  75. package/date-time/lib/holidays.loader.d.ts +0 -21
  76. package/date-time/lib/solar-hijri.calendar.d.ts +0 -40
  77. package/events/lib/event.service.d.ts +0 -17
  78. package/file/lib/file-size-formatter.d.ts +0 -16
  79. package/file/lib/file.module.d.ts +0 -7
  80. package/file/lib/file.service.d.ts +0 -15
  81. package/format/lib/format.config.d.ts +0 -5
  82. package/format/lib/format.directive.d.ts +0 -12
  83. package/format/lib/format.module.d.ts +0 -19
  84. package/format/lib/format.pipe.d.ts +0 -12
  85. package/format/lib/format.service.d.ts +0 -44
  86. package/format/lib/format.types.d.ts +0 -4
  87. package/format/lib/formatters/number.formatter.d.ts +0 -23
  88. package/format/lib/formatters/string.formatter.d.ts +0 -14
  89. package/image/lib/image.service.d.ts +0 -13
  90. package/locale/lib/formatters/currency.formatter.d.ts +0 -10
  91. package/locale/lib/locale-profile-provider.service.d.ts +0 -24
  92. package/locale/lib/locale.config.d.ts +0 -5
  93. package/locale/lib/locale.module.d.ts +0 -7
  94. package/locale/lib/locale.service.d.ts +0 -20
  95. package/locale/lib/locale.types.d.ts +0 -61
  96. package/locale/lib/profiles/en-AU.profile.d.ts +0 -2
  97. package/locale/lib/profiles/en-US.profile.d.ts +0 -2
  98. package/locale/lib/profiles/fa-IR.profile.d.ts +0 -2
  99. package/memoize/lib/memoize.decorator.d.ts +0 -1
  100. package/network/lib/download-task.d.ts +0 -11
  101. package/network/lib/network.service.d.ts +0 -16
  102. package/network/lib/network.types.d.ts +0 -28
  103. package/network/lib/upload-task.d.ts +0 -14
  104. package/pipes/lib/safe/safe.pipe.d.ts +0 -10
  105. package/platform/lib/platform.service.d.ts +0 -77
  106. package/storage/cookie-storage.service.d.ts +0 -104
  107. package/storage/local-storage.service.d.ts +0 -16
  108. package/storage/session-storage.service.d.ts +0 -10
  109. package/storage/storage.interface.d.ts +0 -14
  110. package/translation/lib/translation-loader.service.d.ts +0 -20
  111. package/translation/lib/translation-scope.resolver.d.ts +0 -2
  112. package/translation/lib/translation.config.d.ts +0 -27
  113. package/translation/lib/translation.loader.d.ts +0 -14
  114. package/translation/lib/translation.module.d.ts +0 -8
  115. package/translation/lib/translation.parser.d.ts +0 -7
  116. package/translation/lib/translation.resolver.d.ts +0 -9
  117. package/translation/lib/translation.service.d.ts +0 -25
  118. package/translation/lib/translation.types.d.ts +0 -16
  119. package/translation/lib/translator.directive.d.ts +0 -12
  120. package/translation/lib/translator.pipe.d.ts +0 -10
  121. package/utils/lib/color.utils.d.ts +0 -26
  122. package/utils/lib/drawing.utils.d.ts +0 -18
  123. package/utils/lib/execution.utils.d.ts +0 -33
  124. package/utils/lib/html-utils.d.ts +0 -15
  125. package/utils/lib/lifecycle-helpers.utils.d.ts +0 -12
  126. package/utils/lib/string.utils.d.ts +0 -4
  127. package/validation/lib/rules/between-rule.d.ts +0 -18
  128. package/validation/lib/rules/callback-rule.d.ts +0 -24
  129. package/validation/lib/rules/equal-rule.d.ts +0 -17
  130. package/validation/lib/rules/greater-than.d.ts +0 -17
  131. package/validation/lib/rules/length-rule.d.ts +0 -17
  132. package/validation/lib/rules/less-than-rule.d.ts +0 -17
  133. package/validation/lib/rules/maxlength-rule.d.ts +0 -16
  134. package/validation/lib/rules/minlength-rule.d.ts +0 -16
  135. package/validation/lib/rules/regex-rule.d.ts +0 -17
  136. package/validation/lib/rules/required-rule.d.ts +0 -16
  137. package/validation/lib/validation.config.d.ts +0 -15
  138. package/validation/lib/validation.module.d.ts +0 -17
  139. package/validation/lib/validation.service.d.ts +0 -35
  140. package/validation/lib/validation.types.d.ts +0 -21
@@ -1,44 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { AXFormatter } from './format.config';
3
- import { AXFormatOptionsMap } from './format.types';
4
- import * as i0 from "@angular/core";
5
- export declare class AXFormatterRegistryService {
6
- private plugins;
7
- private injector;
8
- constructor(injector: Injector);
9
- register(...plugins: (new () => AXFormatter)[]): void;
10
- get formatters(): AXFormatter[];
11
- /**
12
- * Resolves a formatter by its name.
13
- * @param name The name of the formatter.
14
- * @returns The formatter if found, otherwise throws an error.
15
- */
16
- get(name: string): AXFormatter;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AXFormatterRegistryService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<AXFormatterRegistryService>;
19
- }
20
- export declare class AXFormatService {
21
- private pluginRegistry;
22
- constructor(pluginRegistry: AXFormatterRegistryService);
23
- private renderSubject;
24
- onRender: import("rxjs").Observable<void>;
25
- render(): void;
26
- format<K extends keyof AXFormatOptionsMap>(value: unknown, formatter: K, options?: AXFormatOptionsMap[K]): string;
27
- format(value: unknown): AXFormatFluent;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<AXFormatService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<AXFormatService>;
30
- }
31
- declare class AXFormatFluent {
32
- private formatService;
33
- private pluginRegistry;
34
- private initialValue;
35
- constructor(formatService: AXFormatService, pluginRegistry: AXFormatterRegistryService, initialValue: unknown);
36
- /**
37
- * Formats the value using the specified formatter and options.
38
- * @param formatter The name of the formatter to use.
39
- * @param options The options to pass to the formatter.
40
- * @returns The formatted string.
41
- */
42
- to<K extends keyof AXFormatOptionsMap>(formatter: K, options?: AXFormatOptionsMap[K]): string;
43
- }
44
- export {};
@@ -1,4 +0,0 @@
1
- export interface AXFormatOptions {
2
- }
3
- export interface AXFormatOptionsMap {
4
- }
@@ -1,23 +0,0 @@
1
- import { AXFormatter } from '../format.config';
2
- import { AXFormatOptions } from '../format.types';
3
- import * as i0 from "@angular/core";
4
- export interface AXNumberFormatterOptions extends AXFormatOptions {
5
- decimalPlaces?: number;
6
- thousandSeparator?: string;
7
- decimalSeparator?: string;
8
- zeroPadLength?: number;
9
- locale?: string;
10
- }
11
- declare module '../format.types' {
12
- interface AXFormatOptionsMap {
13
- number: AXNumberFormatterOptions;
14
- }
15
- }
16
- export declare class AXNumberFormatter implements AXFormatter {
17
- private separatorsCache;
18
- get name(): string;
19
- format(value: number, options: AXNumberFormatterOptions): string;
20
- private getLocaleSeparators;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<AXNumberFormatter, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<AXNumberFormatter>;
23
- }
@@ -1,14 +0,0 @@
1
- import { AXFormatter } from '../format.config';
2
- import { AXFormatOptions } from '../format.types';
3
- export interface AXStringFormatterOptions extends AXFormatOptions {
4
- [key: string]: any;
5
- }
6
- declare module '../format.types' {
7
- interface AXFormatOptionsMap {
8
- string: AXStringFormatterOptions;
9
- }
10
- }
11
- export declare class AXStringFormatter implements AXFormatter {
12
- get name(): string;
13
- format(value: unknown, options: AXStringFormatterOptions): string;
14
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AXImageService {
3
- private document;
4
- private platformID;
5
- resize(options: {
6
- maxSize: number;
7
- source: HTMLImageElement | File;
8
- type?: 'image/png' | 'image/jpeg' | 'image/webp';
9
- quality?: number;
10
- }): Promise<Blob>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AXImageService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AXImageService>;
13
- }
@@ -1,10 +0,0 @@
1
- import { AXFormatOptions } from '@acorex/core/format';
2
- export interface AXCurrencyFormatterOptions extends AXFormatOptions {
3
- locale?: string;
4
- currency?: string;
5
- }
6
- declare module '@acorex/core/format' {
7
- interface AXFormatOptionsMap {
8
- currency: AXCurrencyFormatterOptions;
9
- }
10
- }
@@ -1,24 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AXLocaleProfile } from './locale.types';
3
- import * as i0 from "@angular/core";
4
- export type AXLocaleProfileProviderResult = Record<string, () => Promise<AXLocaleProfile> | AXLocaleProfile>;
5
- export interface AXLocaleProfileProvider {
6
- provide(): Promise<AXLocaleProfileProviderResult>;
7
- }
8
- export declare const AX_LOCALE_PROFILE_PROVIDERS: InjectionToken<AXLocaleProfileProvider[]>;
9
- export declare class AXLocaleProfileProviderDefault implements AXLocaleProfileProvider {
10
- provide(): Promise<AXLocaleProfileProviderResult>;
11
- }
12
- export declare class AXLocaleProfileProviderService {
13
- private providers;
14
- private registry;
15
- private resolvedCache;
16
- private isInitialized;
17
- private init;
18
- getList(): Promise<AXLocaleProfile[]>;
19
- getByLocale(localeCode: string): Promise<AXLocaleProfile | undefined>;
20
- reload(): Promise<void>;
21
- has(localeCode: string): boolean;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AXLocaleProfileProviderService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<AXLocaleProfileProviderService>;
24
- }
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export interface AXLocaleConfig {
3
- default: string;
4
- }
5
- export declare const AX_LOCALE_CONFIG: InjectionToken<AXLocaleConfig>;
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@acorex/core/format";
3
- export declare class AXLocaleModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AXLocaleModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXLocaleModule, never, [typeof i1.AXFormatModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<AXLocaleModule>;
7
- }
@@ -1,20 +0,0 @@
1
- import { AXLocaleProfile } from './locale.types';
2
- import * as i0 from "@angular/core";
3
- export declare class AXLocaleService {
4
- private provider;
5
- private config;
6
- private _activeProfile;
7
- activeProfile: import("@angular/core").Signal<AXLocaleProfile>;
8
- profileChanged$: import("rxjs").Observable<AXLocaleProfile>;
9
- private originalProfile;
10
- setProfile(localeCode: string): Promise<void>;
11
- /**
12
- *
13
- */
14
- constructor();
15
- apply(profile: Partial<AXLocaleProfile>): void;
16
- apply(path: string, value: any): void;
17
- reset(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AXLocaleService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<AXLocaleService>;
20
- }
@@ -1,61 +0,0 @@
1
- export interface AXLocaleProfile {
2
- localeInfo: {
3
- code: string;
4
- language: string;
5
- region: string;
6
- timezone: string;
7
- };
8
- calendar: {
9
- system: 'gregorian' | 'solar-hijri' | string;
10
- week: {
11
- startsOn: number;
12
- weekends: number[];
13
- };
14
- clock: {
15
- format24Hour: boolean;
16
- };
17
- };
18
- formats: {
19
- date: FormatPattern;
20
- time: FormatPattern;
21
- datetime: FormatPattern;
22
- numbers: {
23
- decimalPattern: string;
24
- currency: {
25
- code: string;
26
- };
27
- };
28
- contacts: {
29
- phone: string;
30
- postalCode: string;
31
- };
32
- };
33
- units: {
34
- temperature: 'celsius' | 'fahrenheit';
35
- distance: 'kilometers' | 'miles';
36
- weight: 'kilograms' | 'pounds';
37
- volume: 'liters' | 'gallons';
38
- speed: 'kmh' | 'mph';
39
- area: 'square-meters' | 'square-feet';
40
- custom?: Record<string, string>;
41
- };
42
- i18nMeta: {
43
- fallbackLocales?: string[];
44
- supportedLanguages?: string[];
45
- rtl: boolean;
46
- };
47
- }
48
- interface FormatPattern {
49
- short: string;
50
- medium: string;
51
- long: string;
52
- full: string;
53
- }
54
- export declare enum AXLocaleEvents {
55
- AXLocaleChanged = "AX_LOCALE_CHANGED",
56
- AXLocaleLoaded = "AX_LOCALE_LOADED",
57
- AXCalendarChanged = "AX_CALENDAR_CHANGED",
58
- AXLanguageChanged = "AX_LANGUAGE_CHANGED",
59
- AXLanguageLoaded = "AX_LANGUAGE_LOADED"
60
- }
61
- export {};
@@ -1,2 +0,0 @@
1
- import { AXLocaleProfile } from '../locale.types';
2
- export declare const AXAURegionalConfig: AXLocaleProfile;
@@ -1,2 +0,0 @@
1
- import { AXLocaleProfile } from '../locale.types';
2
- export declare const AXUSLocaleProfile: AXLocaleProfile;
@@ -1,2 +0,0 @@
1
- import { AXLocaleProfile } from '../locale.types';
2
- export declare const AXIRLocaleProfile: AXLocaleProfile;
@@ -1 +0,0 @@
1
- export declare function Memoize(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1,11 +0,0 @@
1
- import { HttpEvent } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { AXDownloadResponse } from './network.types';
4
- export declare class AXDownloadTask {
5
- private observable;
6
- private cancelSignal;
7
- constructor(observable: Observable<HttpEvent<any>>);
8
- get events(): Observable<AXDownloadResponse>;
9
- private handleEvent;
10
- cancel(): void;
11
- }
@@ -1,16 +0,0 @@
1
- import { HttpRequest } from '@angular/common/http';
2
- import { AXDownloadTask } from './download-task';
3
- import { AXUploadTask } from './upload-task';
4
- import * as i0 from "@angular/core";
5
- export declare class AXNetworkService {
6
- private http;
7
- private _status;
8
- readonly status: import("@angular/core").Signal<boolean>;
9
- constructor();
10
- upload<T>(url: string, formData: FormData): AXUploadTask<T>;
11
- upload<T>(request: HttpRequest<any>): AXUploadTask<T>;
12
- download(url: string): AXDownloadTask;
13
- download(request: HttpRequest<Blob>): AXDownloadTask;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AXNetworkService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AXNetworkService>;
16
- }
@@ -1,28 +0,0 @@
1
- export declare enum AXUploadStatus {
2
- Uploading = "Uploading...",
3
- UploadComplete = "Upload complete",
4
- StartingUpload = "Starting upload",
5
- UploadFailed = "Upload failed",
6
- UploadCanceled = "Upload Canceled"
7
- }
8
- export type AXUploadResponse<T> = {
9
- progress: number;
10
- bytesTransferred: number;
11
- totalBytes: number;
12
- status: AXUploadStatus;
13
- result?: T;
14
- message?: string;
15
- };
16
- export declare enum AXDownloadStatus {
17
- Downloading = "Downloading...",
18
- DownloadComplete = "Download complete",
19
- StartingDownload = "Starting download",
20
- DownloadFailed = "Download failed"
21
- }
22
- export type AXDownloadResponse = {
23
- progress: number;
24
- bytesReceived: number;
25
- totalBytes: number;
26
- status: AXDownloadStatus;
27
- data?: Blob;
28
- };
@@ -1,14 +0,0 @@
1
- import { HttpClient, HttpRequest } from '@angular/common/http';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { AXUploadResponse } from './network.types';
4
- export declare class AXUploadTask<T> {
5
- private http;
6
- private request;
7
- private totalFileSize;
8
- private cancelSignal;
9
- events: BehaviorSubject<AXUploadResponse<T>>;
10
- constructor(http: HttpClient, request: HttpRequest<T>, totalFileSize: number);
11
- private handleEvent;
12
- cancel(): void;
13
- start(): void;
14
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class AXSafePipe implements PipeTransform {
5
- protected sanitizer: DomSanitizer;
6
- constructor(sanitizer: DomSanitizer);
7
- transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AXSafePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<AXSafePipe, "safe", true>;
10
- }
@@ -1,77 +0,0 @@
1
- import { BehaviorSubject, Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export type AXThemeMode = 'light' | 'dark' | 'system' | 'system-dark' | 'system-light';
4
- export type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
5
- export type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
6
- export type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
7
- export type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL' | '3XL' | '4XL' | '5XL';
8
- export declare const isChrome: (win: Window) => boolean;
9
- export declare const isFirefox: (win: Window) => boolean;
10
- export declare const isEdge: (win: Window) => boolean;
11
- export declare const isSafari: (win: Window) => boolean;
12
- export declare const isOpera: (win: Window) => boolean;
13
- export declare const isMSIE: (win: Window) => boolean;
14
- export declare const isMobileWeb: (win: Window) => boolean;
15
- export declare const isIpad: (win: Window) => boolean;
16
- export declare const isIphone: (win: Window) => boolean;
17
- export declare const isIOS: (win: Window) => boolean;
18
- export declare const isAndroid: (win: Window) => boolean;
19
- export declare const isAndroidTablet: (win: Window) => boolean;
20
- export declare const isPhablet: (win: Window) => boolean;
21
- export declare const isTablet: (win: Window) => boolean;
22
- export declare const isMobile: (win: Window) => boolean;
23
- export declare const isTouch: (win: Window) => boolean;
24
- export declare const isDesktop: (win: Window) => boolean;
25
- export declare const isHybrid: (win: Window) => boolean;
26
- export declare const isCordova: (win: any) => boolean;
27
- export declare const isCapacitorNative: (win: any) => boolean;
28
- export declare const isElectron: (win: Window) => boolean;
29
- export declare const isPWA: (win: Window) => boolean;
30
- export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
31
- export declare const isBrowser: Function;
32
- export declare const isServer: Function;
33
- export declare const matchMedia: (win: Window, query: string) => boolean;
34
- export declare const isSMScreen: (win: Window) => boolean;
35
- export declare const isMDScreen: (win: Window) => boolean;
36
- export declare const isLGScreen: (win: Window) => boolean;
37
- export declare const isXLScreen: (win: Window) => boolean;
38
- export declare const is2XLScreen: (win: Window) => boolean;
39
- export declare const is3XLScreen: (win: Window) => boolean;
40
- export declare const is4XLScreen: (win: Window) => boolean;
41
- export declare const PLATFORMS_MAP: any;
42
- export declare class AXPlatformEvent<T extends Event = Event> {
43
- nativeEvent: T;
44
- source: AXPlatform;
45
- data?: any;
46
- }
47
- export declare class AXPlatform {
48
- #private;
49
- resize: Subject<AXPlatformEvent>;
50
- directionChange: Subject<AXPlatformEvent>;
51
- click: Subject<AXPlatformEvent>;
52
- scroll: Subject<AXPlatformEvent>;
53
- themeMode$: BehaviorSubject<AXThemeMode>;
54
- themeMode: import("@angular/core").WritableSignal<AXThemeMode>;
55
- private document;
56
- private platformID;
57
- isDark(): boolean;
58
- isRtl(): boolean;
59
- isLandscape(): boolean;
60
- isPortrate(): boolean;
61
- is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
62
- get screenSize(): AXScreenSizes;
63
- switchLightMode(): string;
64
- switchDarkMode(): string;
65
- switchSystemMode(): void;
66
- autoDetectThemeMode(): string | void;
67
- private setFullHeightRatio;
68
- private autoSystemModeDetection;
69
- constructor();
70
- private detectDarkMode;
71
- private detectOnResize;
72
- private detectClickEvent;
73
- private detectScrollEvent;
74
- private detectDocumentDirectionChange;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
76
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
77
- }
@@ -1,104 +0,0 @@
1
- import { AXCookieOptions, AXSameSite } from './storage.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class AXCookieStorageService {
4
- private readonly documentIsAccessible;
5
- private document;
6
- private platformId;
7
- constructor();
8
- /**
9
- * Get cookie Regular Expression
10
- *
11
- * @param name Cookie name
12
- * @returns property RegExp
13
- *
14
- */
15
- private static getCookieRegExp;
16
- /**
17
- * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
18
- *
19
- * @param encodedURIComponent A value representing an encoded URI component.
20
- *
21
- * @returns The unencoded version of an encoded component of a Uniform Resource Identifier (URI).
22
- *
23
- */
24
- private static safeDecodeURIComponent;
25
- /**
26
- * Return `true` if {@link Document} is accessible, otherwise return `false`
27
- *
28
- * @param name Cookie name
29
- * @returns boolean - whether cookie with specified name exists
30
- *
31
- */
32
- check(name: string): boolean;
33
- /**
34
- * Get cookies by name
35
- *
36
- * @param name Cookie name
37
- * @returns property value
38
- *
39
- */
40
- get(name: string): string;
41
- /**
42
- * Get all cookies in JSON format
43
- *
44
- * @returns all the cookies in json
45
- *
46
- */
47
- getAll(): {
48
- [key: string]: string;
49
- };
50
- /**
51
- * Set cookie based on provided information
52
- *
53
- * @param name Cookie name
54
- * @param value Cookie value
55
- * @param expires Number of days until the cookies expires or an actual `Date`
56
- * @param path Cookie path
57
- * @param domain Cookie domain
58
- * @param secure Secure flag
59
- * @param sameSite OWASP samesite token `Lax`, `None`, or `Strict`. Defaults to `Lax`
60
- *
61
- */
62
- set(name: string, value: string, expires?: AXCookieOptions['expires'], path?: AXCookieOptions['path'], domain?: AXCookieOptions['domain'], secure?: AXCookieOptions['secure'], sameSite?: AXSameSite): void;
63
- /**
64
- * Set cookie based on provided information
65
- *
66
- * Cookie's parameters:
67
- * <pre>
68
- * expires Number of days until the cookies expires or an actual `Date`
69
- * path Cookie path
70
- * domain Cookie domain
71
- * secure Secure flag
72
- * sameSite OWASP samesite token `Lax`, `None`, or `Strict`. Defaults to `Lax`
73
- * </pre>
74
- *
75
- * @param name Cookie name
76
- * @param value Cookie value
77
- * @param options Body with cookie's params
78
- *
79
- */
80
- set(name: string, value: string, options?: AXCookieOptions): void;
81
- /**
82
- * Delete cookie by name
83
- *
84
- * @param name Cookie name
85
- * @param path Cookie path
86
- * @param domain Cookie domain
87
- * @param secure Cookie secure flag
88
- * @param sameSite Cookie sameSite flag - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
89
- *
90
- */
91
- delete(name: string, path?: AXCookieOptions['path'], domain?: AXCookieOptions['domain'], secure?: AXCookieOptions['secure'], sameSite?: AXSameSite): void;
92
- /**
93
- * Delete all cookies
94
- *
95
- * @param path Cookie path
96
- * @param domain Cookie domain
97
- * @param secure Is the Cookie secure
98
- * @param sameSite Is the cookie same site
99
- *
100
- */
101
- deleteAll(path?: AXCookieOptions['path'], domain?: AXCookieOptions['domain'], secure?: AXCookieOptions['secure'], sameSite?: AXSameSite): void;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCookieStorageService, never>;
103
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCookieStorageService>;
104
- }
@@ -1,16 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AXStorage } from './storage.interface';
3
- import * as i0 from "@angular/core";
4
- export declare const AX_LOCALSTORAGE_SECRET_KEY: InjectionToken<string>;
5
- export declare class AXLocalStorageService implements AXStorage {
6
- private secret_key;
7
- constructor(secret_key: string);
8
- get<T = unknown>(key: string): T;
9
- set<T = unknown>(key: string, value: T): void;
10
- clear(): void;
11
- removeItem(key: string): void;
12
- setWithEncryption<T = unknown>(key: string, value: T): void;
13
- getWithEncription<T = unknown>(key: string): T;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AXLocalStorageService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AXLocalStorageService>;
16
- }
@@ -1,10 +0,0 @@
1
- import { AXStorage } from './storage.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class AXSessionStorageService implements AXStorage {
4
- get<T = unknown>(key: string): T;
5
- set<T = unknown>(key: string, value: T): void;
6
- clear(): void;
7
- removeItem(key: string): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AXSessionStorageService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<AXSessionStorageService>;
10
- }
@@ -1,14 +0,0 @@
1
- export interface AXStorage {
2
- get<T = unknown>(key: string): T;
3
- set<T = unknown>(key: string, value: T): void;
4
- removeItem(key: string): any;
5
- clear(): void;
6
- }
7
- export type AXSameSite = 'Lax' | 'None' | 'Strict';
8
- export interface AXCookieOptions {
9
- expires?: number | Date;
10
- path?: string;
11
- domain?: string;
12
- secure?: boolean;
13
- sameSite?: AXSameSite;
14
- }
@@ -1,20 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { AXTranslateLang, AXTranslateScope, AXTranslation } from './translation.types';
3
- import * as i0 from "@angular/core";
4
- export declare class AXTranslationLoaderService {
5
- private loader;
6
- private config;
7
- private cache;
8
- private inflight;
9
- load(lang: AXTranslateLang, scope: AXTranslateScope): Observable<AXTranslation>;
10
- peek(lang: AXTranslateLang, scope: AXTranslateScope, key: string): string | null;
11
- preload(options?: {
12
- langs?: AXTranslateLang[];
13
- scopes?: AXTranslateScope[];
14
- }): Promise<void>;
15
- clear(): void;
16
- getFallbackLangs(lang: AXTranslateLang): AXTranslateLang[];
17
- getFallbackScopes(scope: AXTranslateScope): AXTranslateScope[];
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationLoaderService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<AXTranslationLoaderService>;
20
- }
@@ -1,2 +0,0 @@
1
- import { ResolveFn } from '@angular/router';
2
- export declare const loadTranslationScope: ResolveFn<unknown>;
@@ -1,27 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AXTranslateLang, AXTranslateScope } from './translation.types';
3
- export interface AXTranslationConfig {
4
- defaults: {
5
- lang: AXTranslateLang;
6
- scope: AXTranslateScope;
7
- };
8
- preload?: {
9
- langs: AXTranslateLang[];
10
- scopes: AXTranslateScope[];
11
- };
12
- fallbacks?: {
13
- langs?: Record<AXTranslateLang, AXTranslateLang[]>;
14
- scopes?: Record<AXTranslateScope, AXTranslateScope[]>;
15
- };
16
- available?: {
17
- langs?: AXTranslateLang[];
18
- scopes?: AXTranslateScope[];
19
- };
20
- resolver?: {
21
- scopeKey: string;
22
- };
23
- }
24
- export declare const AX_TRANSLATION_CONFIG: InjectionToken<AXTranslationConfig>;
25
- export declare const AXTranslationDefaultConfig: AXTranslationConfig;
26
- export type AXPartialTranslationConfig = Partial<AXTranslationConfig>;
27
- export declare function translationConfig(config?: AXPartialTranslationConfig): AXTranslationConfig;
@@ -1,14 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { AXTranslateLang, AXTranslateScope, AXTranslation } from './translation.types';
4
- export interface AXTranslationLoaderOptions {
5
- lang: AXTranslateLang;
6
- scope?: AXTranslateScope;
7
- }
8
- export interface AXTranslationLoader {
9
- load(options: AXTranslationLoaderOptions): Observable<AXTranslation>;
10
- }
11
- export declare class AXTranslationLoaderDefault implements AXTranslationLoader {
12
- load(options: AXTranslationLoaderOptions): Observable<AXTranslation>;
13
- }
14
- export declare const AX_TRANSLATION_LOADER: InjectionToken<AXTranslationLoader>;
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./translator.pipe";
3
- import * as i2 from "./translator.directive";
4
- export declare class AXTranslationModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, never, [typeof i1.AXTranslatorPipe, typeof i2.AXTranslatorDirective], [typeof i1.AXTranslatorPipe, typeof i2.AXTranslatorDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
8
- }
@@ -1,7 +0,0 @@
1
- import { AXParsedToken } from './translation.types';
2
- export declare class TranslationParserService {
3
- private readonly legacyRegex;
4
- private readonly inlineRegex;
5
- isExpression(value: string): boolean;
6
- parse(expression: string, currentLang: string, currentScope: string): AXParsedToken[];
7
- }