@acorex/core 6.0.0 → 6.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.
- package/.browserslistrc +16 -0
- package/config/ax-preset.js +186 -0
- package/config/index.ts +1 -0
- package/config/ng-package.json +6 -0
- package/config/public-api.ts +1 -0
- package/config/src/configs.ts +37 -0
- package/dateTime/index.ts +1 -0
- package/dateTime/ng-package.json +6 -0
- package/dateTime/{public-api.d.ts → public-api.ts} +1 -1
- package/dateTime/src/datetime.class.ts +452 -0
- package/dateTime/src/datetime.module.ts +29 -0
- package/dateTime/src/datetime.pipe.ts +21 -0
- package/dateTime/src/georgian.calendar.ts +205 -0
- package/dateTime/src/jalali.calendar.ts +416 -0
- package/events/index.ts +1 -0
- package/events/ng-package.json +6 -0
- package/events/public-api.ts +1 -0
- package/events/src/event.service.ts +31 -0
- package/http/index.ts +1 -0
- package/http/ng-package.json +6 -0
- package/http/{public-api.d.ts → public-api.ts} +1 -1
- package/http/src/{http-error.class.d.ts → http-error.class.ts} +2 -2
- package/http/src/{http-events.interceptor.d.ts → http-events.interceptor.ts} +7 -3
- package/http/src/{http-request.class.d.ts → http-request.class.ts} +5 -5
- package/http/src/http-result.class.ts +34 -0
- package/http/src/http.module.ts +25 -0
- package/http/src/http.service.ts +161 -0
- package/index.ts +1 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +23 -106
- package/pipes/index.ts +1 -0
- package/pipes/ng-package.json +6 -0
- package/pipes/public-api.ts +2 -0
- package/pipes/src/pipes.module.ts +11 -0
- package/pipes/src/safe.pipe.ts +24 -0
- package/platform/index.ts +1 -0
- package/platform/ng-package.json +6 -0
- package/platform/public-api.ts +1 -0
- package/platform/src/platform.service.ts +207 -0
- package/public-api.ts +4 -0
- package/test.ts +27 -0
- package/translation/index.ts +1 -0
- package/translation/ng-package.json +6 -0
- package/translation/{public-api.d.ts → public-api.ts} +1 -1
- package/translation/src/translation.module.ts +12 -0
- package/translation/src/translator.pipe.ts +9 -0
- package/translation/src/translator.ts +49 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/utils/index.ts +1 -0
- package/utils/ng-package.json +6 -0
- package/utils/{public-api.d.ts → public-api.ts} +1 -1
- package/utils/src/color-util.ts +83 -0
- package/utils/src/drawing-util.ts +43 -0
- package/utils/src/object-util.ts +82 -0
- package/utils/src/string-util.ts +25 -0
- package/config/index.d.ts +0 -5
- package/config/public-api.d.ts +0 -1
- package/config/src/configs.d.ts +0 -9
- package/dateTime/index.d.ts +0 -5
- package/dateTime/src/datetime.class.d.ts +0 -100
- package/dateTime/src/datetime.module.d.ts +0 -8
- package/dateTime/src/datetime.pipe.d.ts +0 -8
- package/dateTime/src/georgian.calendar.d.ts +0 -20
- package/dateTime/src/jalali.calendar.d.ts +0 -35
- package/esm2020/acorex-core.mjs +0 -5
- package/esm2020/config/acorex-core-config.mjs +0 -5
- package/esm2020/config/public-api.mjs +0 -2
- package/esm2020/config/src/configs.mjs +0 -32
- package/esm2020/dateTime/acorex-core-dateTime.mjs +0 -5
- package/esm2020/dateTime/public-api.mjs +0 -6
- package/esm2020/dateTime/src/datetime.class.mjs +0 -295
- package/esm2020/dateTime/src/datetime.module.mjs +0 -33
- 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/acorex-core-events.mjs +0 -5
- package/esm2020/events/public-api.mjs +0 -2
- package/esm2020/events/src/event.service.mjs +0 -36
- package/esm2020/http/acorex-core-http.mjs +0 -5
- package/esm2020/http/public-api.mjs +0 -6
- package/esm2020/http/src/http-error.class.mjs +0 -2
- package/esm2020/http/src/http-events.interceptor.mjs +0 -3
- package/esm2020/http/src/http-request.class.mjs +0 -2
- 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 -147
- package/esm2020/pipes/acorex-core-pipes.mjs +0 -5
- package/esm2020/pipes/public-api.mjs +0 -3
- package/esm2020/pipes/src/pipes.module.mjs +0 -19
- package/esm2020/pipes/src/safe.pipe.mjs +0 -30
- package/esm2020/platform/acorex-core-platform.mjs +0 -5
- package/esm2020/platform/public-api.mjs +0 -2
- package/esm2020/platform/src/platform.service.mjs +0 -141
- package/esm2020/public-api.mjs +0 -5
- package/esm2020/translation/acorex-core-translation.mjs +0 -5
- package/esm2020/translation/public-api.mjs +0 -4
- 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/esm2020/utils/acorex-core-utils.mjs +0 -5
- package/esm2020/utils/public-api.mjs +0 -5
- package/esm2020/utils/src/color-util.mjs +0 -71
- package/esm2020/utils/src/drawing-util.mjs +0 -27
- package/esm2020/utils/src/object-util.mjs +0 -39
- package/esm2020/utils/src/string-util.mjs +0 -19
- package/events/index.d.ts +0 -5
- package/events/public-api.d.ts +0 -1
- package/events/src/event.service.d.ts +0 -9
- package/fesm2015/acorex-core-config.mjs +0 -39
- package/fesm2015/acorex-core-config.mjs.map +0 -1
- package/fesm2015/acorex-core-dateTime.mjs +0 -899
- package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2015/acorex-core-events.mjs +0 -43
- package/fesm2015/acorex-core-events.mjs.map +0 -1
- package/fesm2015/acorex-core-http.mjs +0 -201
- package/fesm2015/acorex-core-http.mjs.map +0 -1
- package/fesm2015/acorex-core-pipes.mjs +0 -53
- package/fesm2015/acorex-core-pipes.mjs.map +0 -1
- package/fesm2015/acorex-core-platform.mjs +0 -148
- package/fesm2015/acorex-core-platform.mjs.map +0 -1
- package/fesm2015/acorex-core-translation.mjs +0 -80
- package/fesm2015/acorex-core-translation.mjs.map +0 -1
- package/fesm2015/acorex-core-utils.mjs +0 -163
- package/fesm2015/acorex-core-utils.mjs.map +0 -1
- package/fesm2015/acorex-core.mjs +0 -11
- package/fesm2015/acorex-core.mjs.map +0 -1
- package/fesm2020/acorex-core-config.mjs +0 -39
- package/fesm2020/acorex-core-config.mjs.map +0 -1
- package/fesm2020/acorex-core-dateTime.mjs +0 -899
- package/fesm2020/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2020/acorex-core-events.mjs +0 -43
- package/fesm2020/acorex-core-events.mjs.map +0 -1
- package/fesm2020/acorex-core-http.mjs +0 -200
- package/fesm2020/acorex-core-http.mjs.map +0 -1
- package/fesm2020/acorex-core-pipes.mjs +0 -53
- package/fesm2020/acorex-core-pipes.mjs.map +0 -1
- package/fesm2020/acorex-core-platform.mjs +0 -148
- package/fesm2020/acorex-core-platform.mjs.map +0 -1
- package/fesm2020/acorex-core-translation.mjs +0 -79
- package/fesm2020/acorex-core-translation.mjs.map +0 -1
- package/fesm2020/acorex-core-utils.mjs +0 -163
- package/fesm2020/acorex-core-utils.mjs.map +0 -1
- package/fesm2020/acorex-core.mjs +0 -11
- package/fesm2020/acorex-core.mjs.map +0 -1
- package/http/index.d.ts +0 -5
- package/http/src/http-result.class.d.ts +0 -11
- package/http/src/http.module.d.ts +0 -8
- package/http/src/http.service.d.ts +0 -23
- package/index.d.ts +0 -5
- package/pipes/index.d.ts +0 -5
- package/pipes/public-api.d.ts +0 -2
- package/pipes/src/pipes.module.d.ts +0 -8
- package/pipes/src/safe.pipe.d.ts +0 -10
- package/platform/index.d.ts +0 -5
- package/platform/public-api.d.ts +0 -1
- package/platform/src/platform.service.d.ts +0 -25
- package/public-api.d.ts +0 -1
- package/translation/index.d.ts +0 -5
- package/translation/src/translation.module.d.ts +0 -7
- package/translation/src/translator.d.ts +0 -11
- package/translation/src/translator.pipe.d.ts +0 -7
- package/utils/index.d.ts +0 -5
- package/utils/src/color-util.d.ts +0 -20
- package/utils/src/drawing-util.d.ts +0 -17
- package/utils/src/object-util.d.ts +0 -4
- package/utils/src/string-util.d.ts +0 -6
|
@@ -1,7 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare type AXColorMode = 'rgba' | 'hex' | 'hsla' | 'hsva';
|
|
2
|
-
import tinycolor, { ColorInput } from 'tinycolor2';
|
|
3
|
-
import tinygradient from 'tinygradient';
|
|
4
|
-
export declare 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 mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
|
|
9
|
-
static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
|
|
10
|
-
static toHexSting(color: string): string;
|
|
11
|
-
static toRGBString(color: AXColorFormat): string;
|
|
12
|
-
static contrastToWhite(color: AXColorFormat): number;
|
|
13
|
-
static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
|
14
|
-
static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
|
|
15
|
-
static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
|
|
16
|
-
static gradient(values: any[] | {
|
|
17
|
-
color: any;
|
|
18
|
-
pos: number;
|
|
19
|
-
}[]): tinygradient.Instance;
|
|
20
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|