@acorex/core 7.0.41 → 7.1.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.
- 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/{esm2020 → esm2022}/acorex-core.mjs +4 -4
- package/{esm2020 → esm2022}/config/acorex-core-config.mjs +4 -4
- package/{esm2020 → esm2022}/config/public-api.mjs +1 -1
- package/esm2022/config/src/configs.mjs +25 -0
- package/{esm2020 → esm2022}/dateTime/acorex-core-dateTime.mjs +4 -4
- package/{esm2020 → esm2022}/dateTime/public-api.mjs +5 -5
- package/esm2022/dateTime/src/datetime.class.mjs +295 -0
- package/esm2022/dateTime/src/datetime.module.mjs +40 -0
- package/esm2022/dateTime/src/datetime.pipe.mjs +27 -0
- package/esm2022/dateTime/src/georgian.calendar.mjs +187 -0
- package/esm2022/dateTime/src/jalali.calendar.mjs +357 -0
- package/{esm2020 → esm2022}/events/acorex-core-events.mjs +4 -4
- package/{esm2020 → esm2022}/events/public-api.mjs +1 -1
- package/esm2022/events/src/event.service.mjs +35 -0
- package/{esm2020 → esm2022}/file/acorex-core-file.mjs +4 -4
- package/{esm2020 → esm2022}/file/public-api.mjs +4 -4
- package/esm2022/file/src/file-download-ref.class.mjs +13 -0
- package/esm2022/file/src/file-download-result.class.mjs +47 -0
- package/esm2022/file/src/file-upload-ref.class.mjs +13 -0
- package/esm2022/file/src/file.service.mjs +103 -0
- package/{esm2020 → esm2022}/http/acorex-core-http.mjs +4 -4
- package/{esm2020 → esm2022}/http/public-api.mjs +5 -5
- package/{esm2020 → esm2022}/http/src/http-error.class.mjs +1 -1
- package/{esm2020 → esm2022}/http/src/http-events.interceptor.mjs +2 -2
- package/{esm2020 → esm2022}/http/src/http-request.class.mjs +1 -1
- package/esm2022/http/src/http-result.class.mjs +25 -0
- package/esm2022/http/src/http.module.mjs +30 -0
- package/esm2022/http/src/http.service.mjs +152 -0
- package/{esm2020 → esm2022}/image/acorex-core-image.mjs +4 -4
- package/{esm2020 → esm2022}/image/public-api.mjs +1 -1
- package/esm2022/image/src/image.service.mjs +44 -0
- package/{esm2020 → esm2022}/pipes/acorex-core-pipes.mjs +4 -4
- package/{esm2020 → esm2022}/pipes/public-api.mjs +2 -2
- package/esm2022/pipes/src/pipes.module.mjs +20 -0
- package/{esm2020 → esm2022}/pipes/src/safe.pipe.mjs +32 -30
- package/{esm2020 → esm2022}/platform/acorex-core-platform.mjs +4 -4
- package/{esm2020 → esm2022}/platform/public-api.mjs +1 -1
- package/esm2022/platform/src/platform.service.mjs +152 -0
- package/{esm2020 → esm2022}/public-api.mjs +4 -4
- package/{esm2020 → esm2022}/translation/acorex-core-translation.mjs +4 -4
- package/{esm2020 → esm2022}/translation/public-api.mjs +3 -3
- package/esm2022/translation/src/translation.module.mjs +19 -0
- package/esm2022/translation/src/translator.mjs +44 -0
- package/esm2022/translation/src/translator.pipe.mjs +16 -0
- package/{esm2020 → esm2022}/utils/acorex-core-utils.mjs +4 -4
- package/{esm2020 → esm2022}/utils/public-api.mjs +5 -5
- package/{esm2020 → esm2022}/utils/src/color-util.mjs +114 -114
- package/{esm2020 → esm2022}/utils/src/drawing-util.mjs +29 -29
- package/{esm2020 → esm2022}/utils/src/html-util.mjs +15 -15
- package/{esm2020 → esm2022}/utils/src/object-util.mjs +38 -38
- package/{esm2020 → 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/{fesm2015 → fesm2022}/acorex-core-config.mjs +23 -24
- package/{fesm2015 → fesm2022}/acorex-core-config.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-core-dateTime.mjs +882 -880
- package/{fesm2020 → fesm2022}/acorex-core-dateTime.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-events.mjs +32 -35
- package/fesm2022/acorex-core-events.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-file.mjs +162 -159
- package/{fesm2020 → fesm2022}/acorex-core-file.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-http.mjs +190 -184
- package/{fesm2020 → fesm2022}/acorex-core-http.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-image.mjs +41 -42
- package/{fesm2020 → fesm2022}/acorex-core-image.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-core-pipes.mjs +41 -41
- package/fesm2022/acorex-core-pipes.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-platform.mjs +147 -154
- package/fesm2022/acorex-core-platform.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-translation.mjs +64 -65
- package/{fesm2020 → fesm2022}/acorex-core-translation.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-utils.mjs +209 -210
- package/{fesm2015 → fesm2022}/acorex-core.mjs +5 -6
- 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 +39 -65
- 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 +26 -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
- package/esm2020/config/src/configs.mjs +0 -24
- package/esm2020/dateTime/src/datetime.class.mjs +0 -288
- package/esm2020/dateTime/src/datetime.module.mjs +0 -39
- package/esm2020/dateTime/src/datetime.pipe.mjs +0 -26
- package/esm2020/dateTime/src/georgian.calendar.mjs +0 -189
- package/esm2020/dateTime/src/jalali.calendar.mjs +0 -359
- package/esm2020/events/src/event.service.mjs +0 -36
- package/esm2020/file/src/file-download-ref.class.mjs +0 -12
- package/esm2020/file/src/file-download-result.class.mjs +0 -46
- package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
- package/esm2020/file/src/file.service.mjs +0 -101
- package/esm2020/http/src/http-result.class.mjs +0 -21
- package/esm2020/http/src/http.module.mjs +0 -29
- package/esm2020/http/src/http.service.mjs +0 -148
- package/esm2020/image/src/image.service.mjs +0 -43
- package/esm2020/pipes/src/pipes.module.mjs +0 -19
- package/esm2020/platform/src/platform.service.mjs +0 -157
- package/esm2020/translation/src/translation.module.mjs +0 -18
- package/esm2020/translation/src/translator.mjs +0 -43
- package/esm2020/translation/src/translator.pipe.mjs +0 -15
- package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2015/acorex-core-events.mjs +0 -44
- package/fesm2015/acorex-core-events.mjs.map +0 -1
- package/fesm2015/acorex-core-file.mjs +0 -176
- package/fesm2015/acorex-core-file.mjs.map +0 -1
- package/fesm2015/acorex-core-http.mjs +0 -203
- package/fesm2015/acorex-core-http.mjs.map +0 -1
- package/fesm2015/acorex-core-image.mjs +0 -54
- package/fesm2015/acorex-core-image.mjs.map +0 -1
- package/fesm2015/acorex-core-pipes.mjs.map +0 -1
- package/fesm2015/acorex-core-platform.mjs +0 -165
- package/fesm2015/acorex-core-platform.mjs.map +0 -1
- package/fesm2015/acorex-core-translation.mjs +0 -81
- package/fesm2015/acorex-core-translation.mjs.map +0 -1
- package/fesm2015/acorex-core-utils.mjs +0 -227
- package/fesm2020/acorex-core-config.mjs +0 -32
- package/fesm2020/acorex-core-config.mjs.map +0 -1
- package/fesm2020/acorex-core-dateTime.mjs +0 -899
- package/fesm2020/acorex-core-events.mjs.map +0 -1
- package/fesm2020/acorex-core-pipes.mjs +0 -54
- package/fesm2020/acorex-core-pipes.mjs.map +0 -1
- package/fesm2020/acorex-core-platform.mjs.map +0 -1
- package/fesm2020/acorex-core-utils.mjs.map +0 -1
- package/fesm2020/acorex-core.mjs +0 -12
- package/fesm2020/acorex-core.mjs.map +0 -1
- /package/{fesm2015 → fesm2022}/acorex-core-utils.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/acorex-core.mjs.map +0 -0
@@ -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,22 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/core",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.1.1",
|
4
4
|
"dependencies": {
|
5
|
-
"tslib": "^2.
|
5
|
+
"tslib": "^2.5.0"
|
6
6
|
},
|
7
7
|
"peerDependencies": {
|
8
|
-
"@angular/common": "^
|
9
|
-
"@angular/core": "^
|
8
|
+
"@angular/common": "^16.0.0",
|
9
|
+
"@angular/core": "^16.0.0",
|
10
10
|
"lodash-es": "^4.17.21",
|
11
|
-
"tinycolor2": "^1.
|
11
|
+
"tinycolor2": "^1.6.0",
|
12
12
|
"tinygradient": "^1.1.5"
|
13
13
|
},
|
14
14
|
"peerDependenciesMeta": {},
|
15
|
-
"module": "
|
16
|
-
"es2020": "fesm2020/acorex-core.mjs",
|
17
|
-
"esm2020": "esm2020/acorex-core.mjs",
|
18
|
-
"fesm2020": "fesm2020/acorex-core.mjs",
|
19
|
-
"fesm2015": "fesm2015/acorex-core.mjs",
|
15
|
+
"module": "fesm2022/acorex-core.mjs",
|
20
16
|
"typings": "index.d.ts",
|
21
17
|
"exports": {
|
22
18
|
"./package.json": {
|
@@ -24,91 +20,69 @@
|
|
24
20
|
},
|
25
21
|
".": {
|
26
22
|
"types": "./index.d.ts",
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"node": "./fesm2015/acorex-core.mjs",
|
31
|
-
"default": "./fesm2020/acorex-core.mjs"
|
23
|
+
"esm2022": "./esm2022/acorex-core.mjs",
|
24
|
+
"esm": "./esm2022/acorex-core.mjs",
|
25
|
+
"default": "./fesm2022/acorex-core.mjs"
|
32
26
|
},
|
33
27
|
"./config": {
|
34
28
|
"types": "./config/index.d.ts",
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"node": "./fesm2015/acorex-core-config.mjs",
|
39
|
-
"default": "./fesm2020/acorex-core-config.mjs"
|
29
|
+
"esm2022": "./esm2022/config/acorex-core-config.mjs",
|
30
|
+
"esm": "./esm2022/config/acorex-core-config.mjs",
|
31
|
+
"default": "./fesm2022/acorex-core-config.mjs"
|
40
32
|
},
|
41
33
|
"./dateTime": {
|
42
34
|
"types": "./dateTime/index.d.ts",
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"node": "./fesm2015/acorex-core-dateTime.mjs",
|
47
|
-
"default": "./fesm2020/acorex-core-dateTime.mjs"
|
35
|
+
"esm2022": "./esm2022/dateTime/acorex-core-dateTime.mjs",
|
36
|
+
"esm": "./esm2022/dateTime/acorex-core-dateTime.mjs",
|
37
|
+
"default": "./fesm2022/acorex-core-dateTime.mjs"
|
48
38
|
},
|
49
39
|
"./events": {
|
50
40
|
"types": "./events/index.d.ts",
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"node": "./fesm2015/acorex-core-events.mjs",
|
55
|
-
"default": "./fesm2020/acorex-core-events.mjs"
|
41
|
+
"esm2022": "./esm2022/events/acorex-core-events.mjs",
|
42
|
+
"esm": "./esm2022/events/acorex-core-events.mjs",
|
43
|
+
"default": "./fesm2022/acorex-core-events.mjs"
|
56
44
|
},
|
57
45
|
"./file": {
|
58
46
|
"types": "./file/index.d.ts",
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"node": "./fesm2015/acorex-core-file.mjs",
|
63
|
-
"default": "./fesm2020/acorex-core-file.mjs"
|
47
|
+
"esm2022": "./esm2022/file/acorex-core-file.mjs",
|
48
|
+
"esm": "./esm2022/file/acorex-core-file.mjs",
|
49
|
+
"default": "./fesm2022/acorex-core-file.mjs"
|
64
50
|
},
|
65
51
|
"./http": {
|
66
52
|
"types": "./http/index.d.ts",
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"node": "./fesm2015/acorex-core-http.mjs",
|
71
|
-
"default": "./fesm2020/acorex-core-http.mjs"
|
53
|
+
"esm2022": "./esm2022/http/acorex-core-http.mjs",
|
54
|
+
"esm": "./esm2022/http/acorex-core-http.mjs",
|
55
|
+
"default": "./fesm2022/acorex-core-http.mjs"
|
72
56
|
},
|
73
57
|
"./image": {
|
74
58
|
"types": "./image/index.d.ts",
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"node": "./fesm2015/acorex-core-image.mjs",
|
79
|
-
"default": "./fesm2020/acorex-core-image.mjs"
|
59
|
+
"esm2022": "./esm2022/image/acorex-core-image.mjs",
|
60
|
+
"esm": "./esm2022/image/acorex-core-image.mjs",
|
61
|
+
"default": "./fesm2022/acorex-core-image.mjs"
|
80
62
|
},
|
81
63
|
"./pipes": {
|
82
64
|
"types": "./pipes/index.d.ts",
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"node": "./fesm2015/acorex-core-pipes.mjs",
|
87
|
-
"default": "./fesm2020/acorex-core-pipes.mjs"
|
65
|
+
"esm2022": "./esm2022/pipes/acorex-core-pipes.mjs",
|
66
|
+
"esm": "./esm2022/pipes/acorex-core-pipes.mjs",
|
67
|
+
"default": "./fesm2022/acorex-core-pipes.mjs"
|
88
68
|
},
|
89
69
|
"./platform": {
|
90
70
|
"types": "./platform/index.d.ts",
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"node": "./fesm2015/acorex-core-platform.mjs",
|
95
|
-
"default": "./fesm2020/acorex-core-platform.mjs"
|
71
|
+
"esm2022": "./esm2022/platform/acorex-core-platform.mjs",
|
72
|
+
"esm": "./esm2022/platform/acorex-core-platform.mjs",
|
73
|
+
"default": "./fesm2022/acorex-core-platform.mjs"
|
96
74
|
},
|
97
75
|
"./translation": {
|
98
76
|
"types": "./translation/index.d.ts",
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"node": "./fesm2015/acorex-core-translation.mjs",
|
103
|
-
"default": "./fesm2020/acorex-core-translation.mjs"
|
77
|
+
"esm2022": "./esm2022/translation/acorex-core-translation.mjs",
|
78
|
+
"esm": "./esm2022/translation/acorex-core-translation.mjs",
|
79
|
+
"default": "./fesm2022/acorex-core-translation.mjs"
|
104
80
|
},
|
105
81
|
"./utils": {
|
106
82
|
"types": "./utils/index.d.ts",
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"node": "./fesm2015/acorex-core-utils.mjs",
|
111
|
-
"default": "./fesm2020/acorex-core-utils.mjs"
|
83
|
+
"esm2022": "./esm2022/utils/acorex-core-utils.mjs",
|
84
|
+
"esm": "./esm2022/utils/acorex-core-utils.mjs",
|
85
|
+
"default": "./fesm2022/acorex-core-utils.mjs"
|
112
86
|
}
|
113
87
|
},
|
114
88
|
"sideEffects": false
|
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,26 @@
|
|
1
|
-
import { Subject } from 'rxjs';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
8
|
-
export declare class AXPlatformEvent<T extends Event = Event> {
|
9
|
-
nativeEvent: T;
|
10
|
-
source: AXPlatform;
|
11
|
-
}
|
12
|
-
export declare class AXPlatform {
|
13
|
-
resize: Subject<AXPlatformEvent>;
|
14
|
-
click: Subject<AXPlatformEvent>;
|
15
|
-
scroll: Subject<AXPlatformEvent>;
|
16
|
-
isRtl(): boolean;
|
17
|
-
isLandscape(): boolean;
|
18
|
-
isPortrate(): boolean;
|
19
|
-
is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
|
20
|
-
switchDarkMode(): void;
|
21
|
-
switchLightMode(): void;
|
22
|
-
private _setFullHeightRatio;
|
23
|
-
constructor();
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
|
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 class AXPlatformEvent<T extends Event = Event> {
|
9
|
+
nativeEvent: T;
|
10
|
+
source: AXPlatform;
|
11
|
+
}
|
12
|
+
export declare class AXPlatform {
|
13
|
+
resize: Subject<AXPlatformEvent>;
|
14
|
+
click: Subject<AXPlatformEvent>;
|
15
|
+
scroll: Subject<AXPlatformEvent>;
|
16
|
+
isRtl(): boolean;
|
17
|
+
isLandscape(): boolean;
|
18
|
+
isPortrate(): boolean;
|
19
|
+
is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
|
20
|
+
switchDarkMode(): void;
|
21
|
+
switchLightMode(): void;
|
22
|
+
private _setFullHeightRatio;
|
23
|
+
constructor();
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
|
26
|
+
}
|
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';
|
@@ -1,23 +1,23 @@
|
|
1
|
-
export
|
2
|
-
import tinycolor, { ColorInput } from 'tinycolor2';
|
3
|
-
import tinygradient from 'tinygradient';
|
4
|
-
export
|
5
|
-
export declare class AXColorUtil {
|
6
|
-
static to(color: AXColorFormat, mode: AXColorMode): AXColorFormat;
|
7
|
-
static toString(color: AXColorFormat, mode?: AXColorMode): string;
|
8
|
-
static isValid(color: AXColorFormat): boolean;
|
9
|
-
static mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
|
10
|
-
static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
|
11
|
-
static contrastToWhite(color: AXColorFormat): number;
|
12
|
-
static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
13
|
-
static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
14
|
-
static brighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
15
|
-
static saturate(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
16
|
-
static desaturate(hex: AXColorFormat, percentage?: number): number;
|
17
|
-
static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
|
18
|
-
static gradient(values: any[] | {
|
19
|
-
color: any;
|
20
|
-
pos: number;
|
21
|
-
}[]): tinygradient.Instance;
|
22
|
-
static xyToRgb(vX: any, vY: any): string;
|
23
|
-
}
|
1
|
+
export type AXColorMode = 'rgba' | 'hex' | 'hsla' | 'hsva';
|
2
|
+
import tinycolor, { ColorInput } from 'tinycolor2';
|
3
|
+
import tinygradient from 'tinygradient';
|
4
|
+
export type AXColorFormat = ColorInput;
|
5
|
+
export declare class AXColorUtil {
|
6
|
+
static to(color: AXColorFormat, mode: AXColorMode): AXColorFormat;
|
7
|
+
static toString(color: AXColorFormat, mode?: AXColorMode): string;
|
8
|
+
static isValid(color: AXColorFormat): boolean;
|
9
|
+
static mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
|
10
|
+
static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
|
11
|
+
static contrastToWhite(color: AXColorFormat): number;
|
12
|
+
static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
13
|
+
static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
14
|
+
static brighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
15
|
+
static saturate(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
16
|
+
static desaturate(hex: AXColorFormat, percentage?: number): number;
|
17
|
+
static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
|
18
|
+
static gradient(values: any[] | {
|
19
|
+
color: any;
|
20
|
+
pos: number;
|
21
|
+
}[]): tinygradient.Instance;
|
22
|
+
static xyToRgb(vX: any, vY: any): string;
|
23
|
+
}
|