@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,23 +1,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
|
-
}
|
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
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
export interface AXPoint {
|
2
|
-
x: number;
|
3
|
-
y: number;
|
4
|
-
}
|
5
|
-
export interface AXBoundingClientRect {
|
6
|
-
left?: number;
|
7
|
-
top?: number;
|
8
|
-
width?: number;
|
9
|
-
height?: number;
|
10
|
-
bottom?: number;
|
11
|
-
right?: number;
|
12
|
-
}
|
13
|
-
export declare class AXDrawingUtil {
|
14
|
-
static collision(a: HTMLElement, b: HTMLElement): boolean;
|
15
|
-
static isInElementBound(pos: AXPoint, element: HTMLElement): boolean;
|
16
|
-
static isInRecPoint(pos: AXPoint, rec: AXBoundingClientRect | any): boolean;
|
17
|
-
static convertRemToPixels(rem: number): number;
|
18
|
-
}
|
1
|
+
export interface AXPoint {
|
2
|
+
x: number;
|
3
|
+
y: number;
|
4
|
+
}
|
5
|
+
export interface AXBoundingClientRect {
|
6
|
+
left?: number;
|
7
|
+
top?: number;
|
8
|
+
width?: number;
|
9
|
+
height?: number;
|
10
|
+
bottom?: number;
|
11
|
+
right?: number;
|
12
|
+
}
|
13
|
+
export declare class AXDrawingUtil {
|
14
|
+
static collision(a: HTMLElement, b: HTMLElement): boolean;
|
15
|
+
static isInElementBound(pos: AXPoint, element: HTMLElement): boolean;
|
16
|
+
static isInRecPoint(pos: AXPoint, rec: AXBoundingClientRect | any): boolean;
|
17
|
+
static convertRemToPixels(rem: number): number;
|
18
|
+
}
|
package/utils/src/html-util.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class AXHtmlUtil {
|
2
|
-
static focusElement(element: HTMLElement): HTMLElement;
|
3
|
-
static hasFocus(element: HTMLElement): boolean;
|
4
|
-
}
|
1
|
+
export declare class AXHtmlUtil {
|
2
|
+
static focusElement(element: HTMLElement): HTMLElement;
|
3
|
+
static hasFocus(element: HTMLElement): boolean;
|
4
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class AXObjectUtil {
|
2
|
-
static deepJSONClone(obj: any): any;
|
3
|
-
static deepCopy(obj: any): any;
|
4
|
-
}
|
1
|
+
export declare class AXObjectUtil {
|
2
|
+
static deepJSONClone(obj: any): any;
|
3
|
+
static deepCopy(obj: any): any;
|
4
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export declare class AXStringUtil {
|
2
|
-
static getWordBoundsAtPosition(str: string, position: number): {
|
3
|
-
start: number;
|
4
|
-
end: number;
|
5
|
-
};
|
6
|
-
}
|
1
|
+
export declare class AXStringUtil {
|
2
|
+
static getWordBoundsAtPosition(str: string, position: number): {
|
3
|
+
start: number;
|
4
|
+
end: number;
|
5
|
+
};
|
6
|
+
}
|