@acorex/core 7.1.0 → 7.1.2
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/config/index.d.ts +5 -5
- package/config/public-api.d.ts +1 -1
- package/config/src/configs.d.ts +9 -9
- package/dateTime/index.d.ts +5 -5
- package/dateTime/public-api.d.ts +5 -5
- package/dateTime/src/datetime.class.d.ts +100 -100
- package/dateTime/src/datetime.module.d.ts +8 -8
- package/dateTime/src/datetime.pipe.d.ts +8 -8
- package/dateTime/src/georgian.calendar.d.ts +20 -20
- package/dateTime/src/jalali.calendar.d.ts +35 -35
- package/esm2022/acorex-core.mjs +4 -4
- package/esm2022/config/acorex-core-config.mjs +4 -4
- package/esm2022/config/public-api.mjs +1 -1
- package/esm2022/config/src/configs.mjs +25 -24
- package/esm2022/dateTime/acorex-core-dateTime.mjs +4 -4
- package/esm2022/dateTime/public-api.mjs +5 -5
- package/esm2022/dateTime/src/datetime.class.mjs +294 -294
- package/esm2022/dateTime/src/datetime.module.mjs +40 -39
- package/esm2022/dateTime/src/datetime.pipe.mjs +27 -26
- package/esm2022/dateTime/src/georgian.calendar.mjs +186 -186
- package/esm2022/dateTime/src/jalali.calendar.mjs +356 -356
- package/esm2022/events/acorex-core-events.mjs +4 -4
- package/esm2022/events/public-api.mjs +1 -1
- package/esm2022/events/src/event.service.mjs +35 -34
- package/esm2022/file/acorex-core-file.mjs +4 -4
- package/esm2022/file/public-api.mjs +4 -4
- package/esm2022/file/src/file-download-ref.class.mjs +12 -12
- package/esm2022/file/src/file-download-result.class.mjs +46 -46
- package/esm2022/file/src/file-upload-ref.class.mjs +12 -12
- package/esm2022/file/src/file.service.mjs +103 -102
- package/esm2022/http/acorex-core-http.mjs +4 -4
- package/esm2022/http/public-api.mjs +5 -5
- package/esm2022/http/src/http-error.class.mjs +1 -1
- package/esm2022/http/src/http-events.interceptor.mjs +2 -2
- package/esm2022/http/src/http-request.class.mjs +1 -1
- package/esm2022/http/src/http-result.class.mjs +24 -24
- package/esm2022/http/src/http.module.mjs +30 -29
- package/esm2022/http/src/http.service.mjs +152 -151
- package/esm2022/image/acorex-core-image.mjs +4 -4
- package/esm2022/image/public-api.mjs +1 -1
- package/esm2022/image/src/image.service.mjs +44 -43
- package/esm2022/pipes/acorex-core-pipes.mjs +4 -4
- package/esm2022/pipes/public-api.mjs +2 -2
- package/esm2022/pipes/src/pipes.module.mjs +20 -19
- package/esm2022/pipes/src/safe.pipe.mjs +32 -31
- package/esm2022/platform/acorex-core-platform.mjs +4 -4
- package/esm2022/platform/public-api.mjs +1 -1
- package/esm2022/platform/src/platform.service.mjs +158 -159
- package/esm2022/public-api.mjs +4 -4
- package/esm2022/translation/acorex-core-translation.mjs +4 -4
- package/esm2022/translation/public-api.mjs +3 -3
- package/esm2022/translation/src/translation.module.mjs +19 -18
- package/esm2022/translation/src/translator.mjs +44 -43
- package/esm2022/translation/src/translator.pipe.mjs +16 -15
- package/esm2022/utils/acorex-core-utils.mjs +4 -4
- package/esm2022/utils/public-api.mjs +5 -5
- package/esm2022/utils/src/color-util.mjs +114 -114
- package/esm2022/utils/src/drawing-util.mjs +29 -29
- package/esm2022/utils/src/html-util.mjs +15 -15
- package/esm2022/utils/src/object-util.mjs +38 -38
- package/esm2022/utils/src/string-util.mjs +18 -18
- package/events/index.d.ts +5 -5
- package/events/public-api.d.ts +1 -1
- package/events/src/event.service.d.ts +9 -9
- package/fesm2022/acorex-core-config.mjs +22 -22
- package/fesm2022/acorex-core-config.mjs.map +1 -1
- package/fesm2022/acorex-core-dateTime.mjs +882 -882
- package/fesm2022/acorex-core-dateTime.mjs.map +1 -1
- package/fesm2022/acorex-core-events.mjs +32 -32
- package/fesm2022/acorex-core-events.mjs.map +1 -1
- package/fesm2022/acorex-core-file.mjs +162 -162
- package/fesm2022/acorex-core-file.mjs.map +1 -1
- package/fesm2022/acorex-core-http.mjs +190 -190
- package/fesm2022/acorex-core-http.mjs.map +1 -1
- package/fesm2022/acorex-core-image.mjs +41 -41
- package/fesm2022/acorex-core-image.mjs.map +1 -1
- package/fesm2022/acorex-core-pipes.mjs +41 -41
- package/fesm2022/acorex-core-pipes.mjs.map +1 -1
- package/fesm2022/acorex-core-platform.mjs +154 -156
- package/fesm2022/acorex-core-platform.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +63 -63
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-utils.mjs +209 -209
- package/fesm2022/acorex-core.mjs +5 -5
- package/file/index.d.ts +5 -5
- package/file/public-api.d.ts +4 -4
- package/file/src/file-download-ref.class.d.ts +6 -6
- package/file/src/file-download-result.class.d.ts +8 -8
- package/file/src/file-upload-ref.class.d.ts +5 -5
- package/file/src/file.service.d.ts +18 -18
- package/http/index.d.ts +5 -5
- package/http/public-api.d.ts +5 -5
- package/http/src/http-error.class.d.ts +7 -7
- package/http/src/http-events.interceptor.d.ts +10 -10
- package/http/src/http-request.class.d.ts +14 -14
- package/http/src/http-result.class.d.ts +11 -11
- package/http/src/http.module.d.ts +8 -8
- package/http/src/http.service.d.ts +23 -23
- package/image/index.d.ts +5 -5
- package/image/public-api.d.ts +1 -1
- package/image/src/image.service.d.ts +12 -12
- package/index.d.ts +5 -5
- package/package.json +12 -12
- package/pipes/index.d.ts +5 -5
- package/pipes/public-api.d.ts +2 -2
- package/pipes/src/pipes.module.d.ts +8 -8
- package/pipes/src/safe.pipe.d.ts +10 -10
- package/platform/index.d.ts +5 -5
- package/platform/public-api.d.ts +1 -1
- package/platform/src/platform.service.d.ts +28 -26
- package/public-api.d.ts +1 -1
- package/translation/index.d.ts +5 -5
- package/translation/public-api.d.ts +3 -3
- package/translation/src/translation.module.d.ts +7 -7
- package/translation/src/translator.d.ts +11 -11
- package/translation/src/translator.pipe.d.ts +7 -7
- package/utils/index.d.ts +5 -5
- package/utils/public-api.d.ts +5 -5
- package/utils/src/color-util.d.ts +23 -23
- package/utils/src/drawing-util.d.ts +18 -18
- package/utils/src/html-util.d.ts +4 -4
- package/utils/src/object-util.d.ts +4 -4
- package/utils/src/string-util.d.ts +6 -6
@@ -1,8 +1,8 @@
|
|
1
|
-
export declare class AXFileDownloadResult {
|
2
|
-
_response: Blob;
|
3
|
-
constructor(response: Blob);
|
4
|
-
save(filename?: string): Promise<void>;
|
5
|
-
blob(): Blob;
|
6
|
-
base64(): Promise<string>;
|
7
|
-
private _defaultBrowserDownload;
|
8
|
-
}
|
1
|
+
export declare class AXFileDownloadResult {
|
2
|
+
_response: Blob;
|
3
|
+
constructor(response: Blob);
|
4
|
+
save(filename?: string): Promise<void>;
|
5
|
+
blob(): Blob;
|
6
|
+
base64(): Promise<string>;
|
7
|
+
private _defaultBrowserDownload;
|
8
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export declare class AXFileUploadRef<T = any> extends Promise<T> {
|
2
|
-
abortMethod: () => void;
|
3
|
-
constructor(executor: (resolve: (value?: PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
|
4
|
-
abort(): void;
|
5
|
-
}
|
1
|
+
export declare class AXFileUploadRef<T = any> extends Promise<T> {
|
2
|
+
abortMethod: () => void;
|
3
|
+
constructor(executor: (resolve: (value?: PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
|
4
|
+
abort(): void;
|
5
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { AXFileDownloadRef } from './file-download-ref.class';
|
4
|
-
import { AXFileUploadRef } from './file-upload-ref.class';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class AXFileService {
|
7
|
-
private _httpClient;
|
8
|
-
constructor(_httpClient: HttpClient);
|
9
|
-
download(request: string | Observable<Blob>): AXFileDownloadRef;
|
10
|
-
upload<T = any>(url: string, files: File[]): AXFileUploadRef<T>;
|
11
|
-
choose(options?: {
|
12
|
-
accept?: string;
|
13
|
-
multiple?: boolean;
|
14
|
-
}): Promise<File[]>;
|
15
|
-
blobToBase64: (blob: Blob) => Promise<string>;
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXFileService, never>;
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXFileService>;
|
18
|
-
}
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { AXFileDownloadRef } from './file-download-ref.class';
|
4
|
+
import { AXFileUploadRef } from './file-upload-ref.class';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class AXFileService {
|
7
|
+
private _httpClient;
|
8
|
+
constructor(_httpClient: HttpClient);
|
9
|
+
download(request: string | Observable<Blob>): AXFileDownloadRef;
|
10
|
+
upload<T = any>(url: string, files: File[]): AXFileUploadRef<T>;
|
11
|
+
choose(options?: {
|
12
|
+
accept?: string;
|
13
|
+
multiple?: boolean;
|
14
|
+
}): Promise<File[]>;
|
15
|
+
blobToBase64: (blob: Blob) => Promise<string>;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXFileService, never>;
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXFileService>;
|
18
|
+
}
|
package/http/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/http" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/http" />
|
5
|
+
export * from './public-api';
|
package/http/public-api.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './src/http-error.class';
|
2
|
-
export * from './src/http-events.interceptor';
|
3
|
-
export * from './src/http-request.class';
|
4
|
-
export * from './src/http-result.class';
|
5
|
-
export * from './src/http.module';
|
1
|
+
export * from './src/http-error.class';
|
2
|
+
export * from './src/http-events.interceptor';
|
3
|
+
export * from './src/http-request.class';
|
4
|
+
export * from './src/http-result.class';
|
5
|
+
export * from './src/http.module';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export interface IHttpError {
|
2
|
-
message?: string;
|
3
|
-
status?: number;
|
4
|
-
code?: string;
|
5
|
-
handled: boolean;
|
6
|
-
error: any | null;
|
7
|
-
}
|
1
|
+
export interface IHttpError {
|
2
|
+
message?: string;
|
3
|
+
status?: number;
|
4
|
+
code?: string;
|
5
|
+
handled: boolean;
|
6
|
+
error: any | null;
|
7
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { IHttpError } from './http-error.class';
|
2
|
-
import { InjectionToken } from '@angular/core';
|
3
|
-
import { AXHttpRequestOptions } from './http-request.class';
|
4
|
-
export declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
|
5
|
-
export interface AXHttpEventInterceptor {
|
6
|
-
begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
|
7
|
-
success(request: AXHttpRequestOptions, result: any): Promise<any>;
|
8
|
-
complete(request: AXHttpRequestOptions): any;
|
9
|
-
error(request: AXHttpRequestOptions, error: IHttpError): any;
|
10
|
-
}
|
1
|
+
import { IHttpError } from './http-error.class';
|
2
|
+
import { InjectionToken } from '@angular/core';
|
3
|
+
import { AXHttpRequestOptions } from './http-request.class';
|
4
|
+
export declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
|
5
|
+
export interface AXHttpEventInterceptor {
|
6
|
+
begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
|
7
|
+
success(request: AXHttpRequestOptions, result: any): Promise<any>;
|
8
|
+
complete(request: AXHttpRequestOptions): any;
|
9
|
+
error(request: AXHttpRequestOptions, error: IHttpError): any;
|
10
|
+
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
export interface AXHttpRequestOptions {
|
2
|
-
url?: any;
|
3
|
-
params?: {
|
4
|
-
[param: string]: any;
|
5
|
-
};
|
6
|
-
body?: {
|
7
|
-
[param: string]: any;
|
8
|
-
};
|
9
|
-
headers?: {
|
10
|
-
[header: string]: any;
|
11
|
-
};
|
12
|
-
method?: 'get' | 'post' | 'put' | 'delete';
|
13
|
-
responseType?: any;
|
14
|
-
}
|
1
|
+
export interface AXHttpRequestOptions {
|
2
|
+
url?: any;
|
3
|
+
params?: {
|
4
|
+
[param: string]: any;
|
5
|
+
};
|
6
|
+
body?: {
|
7
|
+
[param: string]: any;
|
8
|
+
};
|
9
|
+
headers?: {
|
10
|
+
[header: string]: any;
|
11
|
+
};
|
12
|
+
method?: 'get' | 'post' | 'put' | 'delete';
|
13
|
+
responseType?: any;
|
14
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { IHttpError } from './http-error.class';
|
2
|
-
export declare class HttpResult<T> {
|
3
|
-
private _executor;
|
4
|
-
constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
|
5
|
-
private resultAction;
|
6
|
-
private errorAction;
|
7
|
-
private completeAction;
|
8
|
-
result(action: (e?: T) => void): HttpResult<T>;
|
9
|
-
error(action: (e?: IHttpError) => void): HttpResult<T>;
|
10
|
-
complete(action: () => void): HttpResult<T>;
|
11
|
-
}
|
1
|
+
import { IHttpError } from './http-error.class';
|
2
|
+
export declare class HttpResult<T> {
|
3
|
+
private _executor;
|
4
|
+
constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
|
5
|
+
private resultAction;
|
6
|
+
private errorAction;
|
7
|
+
private completeAction;
|
8
|
+
result(action: (e?: T) => void): HttpResult<T>;
|
9
|
+
error(action: (e?: IHttpError) => void): HttpResult<T>;
|
10
|
+
complete(action: () => void): HttpResult<T>;
|
11
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@angular/common";
|
3
|
-
import * as i2 from "@angular/common/http";
|
4
|
-
export declare class AXHttpModule {
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
|
8
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "@angular/common/http";
|
4
|
+
export declare class AXHttpModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
|
8
|
+
}
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import { Injector } from '@angular/core';
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
3
|
-
import { HttpResult } from './http-result.class';
|
4
|
-
import { AXHttpRequestOptions } from './http-request.class';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class AXHttpService {
|
7
|
-
private http;
|
8
|
-
private injector;
|
9
|
-
private interceptor;
|
10
|
-
constructor(http: HttpClient, injector: Injector);
|
11
|
-
get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
12
|
-
post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
13
|
-
delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
14
|
-
put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
15
|
-
request<T>(config: AXHttpRequestOptions): HttpResult<T>;
|
16
|
-
private handleResult;
|
17
|
-
private handleBegin;
|
18
|
-
private handleComplete;
|
19
|
-
private handleError;
|
20
|
-
private mapOptions;
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
|
23
|
-
}
|
1
|
+
import { Injector } from '@angular/core';
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
3
|
+
import { HttpResult } from './http-result.class';
|
4
|
+
import { AXHttpRequestOptions } from './http-request.class';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class AXHttpService {
|
7
|
+
private http;
|
8
|
+
private injector;
|
9
|
+
private interceptor;
|
10
|
+
constructor(http: HttpClient, injector: Injector);
|
11
|
+
get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
12
|
+
post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
13
|
+
delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
14
|
+
put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
|
15
|
+
request<T>(config: AXHttpRequestOptions): HttpResult<T>;
|
16
|
+
private handleResult;
|
17
|
+
private handleBegin;
|
18
|
+
private handleComplete;
|
19
|
+
private handleError;
|
20
|
+
private mapOptions;
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
|
23
|
+
}
|
package/image/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/image" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/image" />
|
5
|
+
export * from './public-api';
|
package/image/public-api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from './src/image.service';
|
1
|
+
export * from './src/image.service';
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class AXImageService {
|
3
|
-
constructor();
|
4
|
-
resize(options: {
|
5
|
-
maxSize: number;
|
6
|
-
source: HTMLImageElement | File;
|
7
|
-
type?: 'image/png' | 'image/jpeg' | 'image/webp';
|
8
|
-
quality?: number;
|
9
|
-
}): Promise<Blob>;
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXImageService, never>;
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXImageService>;
|
12
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class AXImageService {
|
3
|
+
constructor();
|
4
|
+
resize(options: {
|
5
|
+
maxSize: number;
|
6
|
+
source: HTMLImageElement | File;
|
7
|
+
type?: 'image/png' | 'image/jpeg' | 'image/webp';
|
8
|
+
quality?: number;
|
9
|
+
}): Promise<Blob>;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXImageService, never>;
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXImageService>;
|
12
|
+
}
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core" />
|
5
|
+
export * from './public-api';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/core",
|
3
|
-
"version": "7.1.
|
3
|
+
"version": "7.1.2",
|
4
4
|
"dependencies": {
|
5
5
|
"tslib": "^2.5.0"
|
6
6
|
},
|
@@ -36,23 +36,17 @@
|
|
36
36
|
"esm": "./esm2022/dateTime/acorex-core-dateTime.mjs",
|
37
37
|
"default": "./fesm2022/acorex-core-dateTime.mjs"
|
38
38
|
},
|
39
|
-
"./events": {
|
40
|
-
"types": "./events/index.d.ts",
|
41
|
-
"esm2022": "./esm2022/events/acorex-core-events.mjs",
|
42
|
-
"esm": "./esm2022/events/acorex-core-events.mjs",
|
43
|
-
"default": "./fesm2022/acorex-core-events.mjs"
|
44
|
-
},
|
45
39
|
"./file": {
|
46
40
|
"types": "./file/index.d.ts",
|
47
41
|
"esm2022": "./esm2022/file/acorex-core-file.mjs",
|
48
42
|
"esm": "./esm2022/file/acorex-core-file.mjs",
|
49
43
|
"default": "./fesm2022/acorex-core-file.mjs"
|
50
44
|
},
|
51
|
-
"./
|
52
|
-
"types": "./
|
53
|
-
"esm2022": "./esm2022/
|
54
|
-
"esm": "./esm2022/
|
55
|
-
"default": "./fesm2022/acorex-core-
|
45
|
+
"./events": {
|
46
|
+
"types": "./events/index.d.ts",
|
47
|
+
"esm2022": "./esm2022/events/acorex-core-events.mjs",
|
48
|
+
"esm": "./esm2022/events/acorex-core-events.mjs",
|
49
|
+
"default": "./fesm2022/acorex-core-events.mjs"
|
56
50
|
},
|
57
51
|
"./http": {
|
58
52
|
"types": "./http/index.d.ts",
|
@@ -60,6 +54,12 @@
|
|
60
54
|
"esm": "./esm2022/http/acorex-core-http.mjs",
|
61
55
|
"default": "./fesm2022/acorex-core-http.mjs"
|
62
56
|
},
|
57
|
+
"./image": {
|
58
|
+
"types": "./image/index.d.ts",
|
59
|
+
"esm2022": "./esm2022/image/acorex-core-image.mjs",
|
60
|
+
"esm": "./esm2022/image/acorex-core-image.mjs",
|
61
|
+
"default": "./fesm2022/acorex-core-image.mjs"
|
62
|
+
},
|
63
63
|
"./pipes": {
|
64
64
|
"types": "./pipes/index.d.ts",
|
65
65
|
"esm2022": "./esm2022/pipes/acorex-core-pipes.mjs",
|
package/pipes/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/pipes" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/pipes" />
|
5
|
+
export * from './public-api';
|
package/pipes/public-api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './src/safe.pipe';
|
2
|
-
export * from './src/pipes.module';
|
1
|
+
export * from './src/safe.pipe';
|
2
|
+
export * from './src/pipes.module';
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./safe.pipe";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
export declare class AXPipesModule {
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPipesModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPipesModule, [typeof i1.AXSafePipe], [typeof i2.CommonModule], [typeof i1.AXSafePipe]>;
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXPipesModule>;
|
8
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./safe.pipe";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
export declare class AXPipesModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPipesModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPipesModule, [typeof i1.AXSafePipe], [typeof i2.CommonModule], [typeof i1.AXSafePipe]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPipesModule>;
|
8
|
+
}
|
package/pipes/src/safe.pipe.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } 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", false>;
|
10
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } 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", false>;
|
10
|
+
}
|
package/platform/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/platform" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/platform" />
|
5
|
+
export * from './public-api';
|
package/platform/public-api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from './src/platform.service';
|
1
|
+
export * from './src/platform.service';
|
@@ -1,26 +1,28 @@
|
|
1
|
-
import { Subject } from 'rxjs';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
|
4
|
-
export type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
|
5
|
-
export type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
|
6
|
-
export type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
|
7
|
-
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
8
|
-
export declare
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
1
|
+
import { Subject } from 'rxjs';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
|
4
|
+
export type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
|
5
|
+
export type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
|
6
|
+
export type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
|
7
|
+
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
8
|
+
export declare const isBrowser: Function;
|
9
|
+
export declare const isServer: Function;
|
10
|
+
export declare class AXPlatformEvent<T extends Event = Event> {
|
11
|
+
nativeEvent: T;
|
12
|
+
source: AXPlatform;
|
13
|
+
}
|
14
|
+
export declare class AXPlatform {
|
15
|
+
resize: Subject<AXPlatformEvent>;
|
16
|
+
click: Subject<AXPlatformEvent>;
|
17
|
+
scroll: Subject<AXPlatformEvent>;
|
18
|
+
isRtl(): boolean;
|
19
|
+
isLandscape(): boolean;
|
20
|
+
isPortrate(): boolean;
|
21
|
+
is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
|
22
|
+
switchDarkMode(): void;
|
23
|
+
switchLightMode(): void;
|
24
|
+
private _setFullHeightRatio;
|
25
|
+
constructor();
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
|
28
|
+
}
|
package/public-api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const ACOREX_CORE = "@acorex/core";
|
1
|
+
export declare const ACOREX_CORE = "@acorex/core";
|
package/translation/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/translation" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/translation" />
|
5
|
+
export * from './public-api';
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './src/translator';
|
2
|
-
export * from './src/translator.pipe';
|
3
|
-
export * from './src/translation.module';
|
1
|
+
export * from './src/translator';
|
2
|
+
export * from './src/translator.pipe';
|
3
|
+
export * from './src/translation.module';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./translator.pipe";
|
3
|
-
export declare class AXTranslationModule {
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
|
7
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./translator.pipe";
|
3
|
+
export declare class AXTranslationModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
|
7
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
export declare class AXTranslator {
|
3
|
-
private static lang;
|
4
|
-
private static dataChangeSubject;
|
5
|
-
private static _varsRegx;
|
6
|
-
private static _varNameRegx;
|
7
|
-
static get onChange(): Observable<any>;
|
8
|
-
static load(lang: string, value: any): void;
|
9
|
-
static use(lang: string): void;
|
10
|
-
static get(key: string, arg1?: object | string, arg2?: object): string;
|
11
|
-
}
|
1
|
+
import { Observable } from 'rxjs';
|
2
|
+
export declare class AXTranslator {
|
3
|
+
private static lang;
|
4
|
+
private static dataChangeSubject;
|
5
|
+
private static _varsRegx;
|
6
|
+
private static _varNameRegx;
|
7
|
+
static get onChange(): Observable<any>;
|
8
|
+
static load(lang: string, value: any): void;
|
9
|
+
static use(lang: string): void;
|
10
|
+
static get(key: string, arg1?: object | string, arg2?: object): string;
|
11
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class AXTranslatorPipe implements PipeTransform {
|
4
|
-
transform(value: string, arg1?: object | string, arg2?: object): string;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans", false>;
|
7
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXTranslatorPipe implements PipeTransform {
|
4
|
+
transform(value: string, arg1?: object | string, arg2?: object): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans", false>;
|
7
|
+
}
|
package/utils/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/utils" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/utils" />
|
5
|
+
export * from './public-api';
|
package/utils/public-api.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './src/object-util';
|
2
|
-
export * from './src/drawing-util';
|
3
|
-
export * from './src/string-util';
|
4
|
-
export * from './src/color-util';
|
5
|
-
export * from './src/html-util';
|
1
|
+
export * from './src/object-util';
|
2
|
+
export * from './src/drawing-util';
|
3
|
+
export * from './src/string-util';
|
4
|
+
export * from './src/color-util';
|
5
|
+
export * from './src/html-util';
|