@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.
Files changed (123) hide show
  1. package/config/index.d.ts +5 -5
  2. package/config/public-api.d.ts +1 -1
  3. package/config/src/configs.d.ts +9 -9
  4. package/dateTime/index.d.ts +5 -5
  5. package/dateTime/public-api.d.ts +5 -5
  6. package/dateTime/src/datetime.class.d.ts +100 -100
  7. package/dateTime/src/datetime.module.d.ts +8 -8
  8. package/dateTime/src/datetime.pipe.d.ts +8 -8
  9. package/dateTime/src/georgian.calendar.d.ts +20 -20
  10. package/dateTime/src/jalali.calendar.d.ts +35 -35
  11. package/esm2022/acorex-core.mjs +4 -4
  12. package/esm2022/config/acorex-core-config.mjs +4 -4
  13. package/esm2022/config/public-api.mjs +1 -1
  14. package/esm2022/config/src/configs.mjs +25 -24
  15. package/esm2022/dateTime/acorex-core-dateTime.mjs +4 -4
  16. package/esm2022/dateTime/public-api.mjs +5 -5
  17. package/esm2022/dateTime/src/datetime.class.mjs +294 -294
  18. package/esm2022/dateTime/src/datetime.module.mjs +40 -39
  19. package/esm2022/dateTime/src/datetime.pipe.mjs +27 -26
  20. package/esm2022/dateTime/src/georgian.calendar.mjs +186 -186
  21. package/esm2022/dateTime/src/jalali.calendar.mjs +356 -356
  22. package/esm2022/events/acorex-core-events.mjs +4 -4
  23. package/esm2022/events/public-api.mjs +1 -1
  24. package/esm2022/events/src/event.service.mjs +35 -34
  25. package/esm2022/file/acorex-core-file.mjs +4 -4
  26. package/esm2022/file/public-api.mjs +4 -4
  27. package/esm2022/file/src/file-download-ref.class.mjs +12 -12
  28. package/esm2022/file/src/file-download-result.class.mjs +46 -46
  29. package/esm2022/file/src/file-upload-ref.class.mjs +12 -12
  30. package/esm2022/file/src/file.service.mjs +103 -102
  31. package/esm2022/http/acorex-core-http.mjs +4 -4
  32. package/esm2022/http/public-api.mjs +5 -5
  33. package/esm2022/http/src/http-error.class.mjs +1 -1
  34. package/esm2022/http/src/http-events.interceptor.mjs +2 -2
  35. package/esm2022/http/src/http-request.class.mjs +1 -1
  36. package/esm2022/http/src/http-result.class.mjs +24 -24
  37. package/esm2022/http/src/http.module.mjs +30 -29
  38. package/esm2022/http/src/http.service.mjs +152 -151
  39. package/esm2022/image/acorex-core-image.mjs +4 -4
  40. package/esm2022/image/public-api.mjs +1 -1
  41. package/esm2022/image/src/image.service.mjs +44 -43
  42. package/esm2022/pipes/acorex-core-pipes.mjs +4 -4
  43. package/esm2022/pipes/public-api.mjs +2 -2
  44. package/esm2022/pipes/src/pipes.module.mjs +20 -19
  45. package/esm2022/pipes/src/safe.pipe.mjs +32 -31
  46. package/esm2022/platform/acorex-core-platform.mjs +4 -4
  47. package/esm2022/platform/public-api.mjs +1 -1
  48. package/esm2022/platform/src/platform.service.mjs +158 -159
  49. package/esm2022/public-api.mjs +4 -4
  50. package/esm2022/translation/acorex-core-translation.mjs +4 -4
  51. package/esm2022/translation/public-api.mjs +3 -3
  52. package/esm2022/translation/src/translation.module.mjs +19 -18
  53. package/esm2022/translation/src/translator.mjs +44 -43
  54. package/esm2022/translation/src/translator.pipe.mjs +16 -15
  55. package/esm2022/utils/acorex-core-utils.mjs +4 -4
  56. package/esm2022/utils/public-api.mjs +5 -5
  57. package/esm2022/utils/src/color-util.mjs +114 -114
  58. package/esm2022/utils/src/drawing-util.mjs +29 -29
  59. package/esm2022/utils/src/html-util.mjs +15 -15
  60. package/esm2022/utils/src/object-util.mjs +38 -38
  61. package/esm2022/utils/src/string-util.mjs +18 -18
  62. package/events/index.d.ts +5 -5
  63. package/events/public-api.d.ts +1 -1
  64. package/events/src/event.service.d.ts +9 -9
  65. package/fesm2022/acorex-core-config.mjs +22 -22
  66. package/fesm2022/acorex-core-config.mjs.map +1 -1
  67. package/fesm2022/acorex-core-dateTime.mjs +882 -882
  68. package/fesm2022/acorex-core-dateTime.mjs.map +1 -1
  69. package/fesm2022/acorex-core-events.mjs +32 -32
  70. package/fesm2022/acorex-core-events.mjs.map +1 -1
  71. package/fesm2022/acorex-core-file.mjs +162 -162
  72. package/fesm2022/acorex-core-file.mjs.map +1 -1
  73. package/fesm2022/acorex-core-http.mjs +190 -190
  74. package/fesm2022/acorex-core-http.mjs.map +1 -1
  75. package/fesm2022/acorex-core-image.mjs +41 -41
  76. package/fesm2022/acorex-core-image.mjs.map +1 -1
  77. package/fesm2022/acorex-core-pipes.mjs +41 -41
  78. package/fesm2022/acorex-core-pipes.mjs.map +1 -1
  79. package/fesm2022/acorex-core-platform.mjs +154 -156
  80. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  81. package/fesm2022/acorex-core-translation.mjs +63 -63
  82. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  83. package/fesm2022/acorex-core-utils.mjs +209 -209
  84. package/fesm2022/acorex-core.mjs +5 -5
  85. package/file/index.d.ts +5 -5
  86. package/file/public-api.d.ts +4 -4
  87. package/file/src/file-download-ref.class.d.ts +6 -6
  88. package/file/src/file-download-result.class.d.ts +8 -8
  89. package/file/src/file-upload-ref.class.d.ts +5 -5
  90. package/file/src/file.service.d.ts +18 -18
  91. package/http/index.d.ts +5 -5
  92. package/http/public-api.d.ts +5 -5
  93. package/http/src/http-error.class.d.ts +7 -7
  94. package/http/src/http-events.interceptor.d.ts +10 -10
  95. package/http/src/http-request.class.d.ts +14 -14
  96. package/http/src/http-result.class.d.ts +11 -11
  97. package/http/src/http.module.d.ts +8 -8
  98. package/http/src/http.service.d.ts +23 -23
  99. package/image/index.d.ts +5 -5
  100. package/image/public-api.d.ts +1 -1
  101. package/image/src/image.service.d.ts +12 -12
  102. package/index.d.ts +5 -5
  103. package/package.json +12 -12
  104. package/pipes/index.d.ts +5 -5
  105. package/pipes/public-api.d.ts +2 -2
  106. package/pipes/src/pipes.module.d.ts +8 -8
  107. package/pipes/src/safe.pipe.d.ts +10 -10
  108. package/platform/index.d.ts +5 -5
  109. package/platform/public-api.d.ts +1 -1
  110. package/platform/src/platform.service.d.ts +28 -26
  111. package/public-api.d.ts +1 -1
  112. package/translation/index.d.ts +5 -5
  113. package/translation/public-api.d.ts +3 -3
  114. package/translation/src/translation.module.d.ts +7 -7
  115. package/translation/src/translator.d.ts +11 -11
  116. package/translation/src/translator.pipe.d.ts +7 -7
  117. package/utils/index.d.ts +5 -5
  118. package/utils/public-api.d.ts +5 -5
  119. package/utils/src/color-util.d.ts +23 -23
  120. package/utils/src/drawing-util.d.ts +18 -18
  121. package/utils/src/html-util.d.ts +4 -4
  122. package/utils/src/object-util.d.ts +4 -4
  123. 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
+ }
@@ -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
+ }