@acorex/core 5.4.0 → 5.7.0

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.
@@ -1,9 +1,20 @@
1
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;
2
5
  export declare class AXColorUtil {
3
- static testa(color: string): void;
4
- static to(color: string, mode: AXColorMode): string;
5
- static toHex(color: string): any;
6
- static toRGB(color: string): any;
7
- static illuminance(hexColor: string): number;
8
- static contrastToWhite(color: string): any;
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;
9
20
  }
@@ -6,5 +6,5 @@ export declare class AXSafePipe implements PipeTransform {
6
6
  constructor(sanitizer: DomSanitizer);
7
7
  transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSafePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<AXSafePipe, "safe">;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXSafePipe, "safe", false>;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/core",
3
- "version": "5.4.0",
3
+ "version": "5.7.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.7",
6
6
  "@angular/core": "^13.3.7",
@@ -21,13 +21,13 @@
21
21
  "esm2020": "esm2020/acorex-core.mjs",
22
22
  "fesm2020": "fesm2020/acorex-core.mjs",
23
23
  "fesm2015": "fesm2015/acorex-core.mjs",
24
- "typings": "acorex-core.d.ts",
24
+ "typings": "index.d.ts",
25
25
  "exports": {
26
26
  "./package.json": {
27
27
  "default": "./package.json"
28
28
  },
29
29
  ".": {
30
- "types": "./acorex-core.d.ts",
30
+ "types": "./index.d.ts",
31
31
  "esm2020": "./esm2020/acorex-core.mjs",
32
32
  "es2020": "./fesm2020/acorex-core.mjs",
33
33
  "es2015": "./fesm2015/acorex-core.mjs",