@acorex/core 5.8.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.
Files changed (115) hide show
  1. package/.browserslistrc +16 -0
  2. package/README.md +24 -24
  3. package/config/ax-preset.js +8 -26
  4. package/config/index.ts +1 -0
  5. package/config/ng-package.json +6 -0
  6. package/config/public-api.ts +1 -0
  7. package/config/src/configs.ts +37 -0
  8. package/dateTime/index.ts +1 -0
  9. package/dateTime/ng-package.json +6 -0
  10. package/dateTime/public-api.ts +5 -0
  11. package/dateTime/src/datetime.class.ts +452 -0
  12. package/dateTime/src/datetime.module.ts +29 -0
  13. package/dateTime/src/datetime.pipe.ts +21 -0
  14. package/dateTime/src/georgian.calendar.ts +205 -0
  15. package/dateTime/src/jalali.calendar.ts +416 -0
  16. package/events/index.ts +1 -0
  17. package/events/ng-package.json +6 -0
  18. package/events/public-api.ts +1 -0
  19. package/events/src/event.service.ts +31 -0
  20. package/http/index.ts +1 -0
  21. package/http/ng-package.json +6 -0
  22. package/http/public-api.ts +5 -0
  23. package/http/src/http-error.class.ts +7 -0
  24. package/http/src/http-events.interceptor.ts +14 -0
  25. package/http/src/http-request.class.ts +14 -0
  26. package/http/src/http-result.class.ts +34 -0
  27. package/http/src/http.module.ts +25 -0
  28. package/http/src/http.service.ts +161 -0
  29. package/index.ts +1 -0
  30. package/karma.conf.js +44 -0
  31. package/ng-package.json +7 -0
  32. package/package.json +23 -40
  33. package/pipes/index.ts +1 -0
  34. package/pipes/ng-package.json +6 -0
  35. package/pipes/public-api.ts +2 -0
  36. package/pipes/src/pipes.module.ts +11 -0
  37. package/pipes/src/safe.pipe.ts +24 -0
  38. package/platform/index.ts +1 -0
  39. package/platform/ng-package.json +6 -0
  40. package/platform/public-api.ts +1 -0
  41. package/platform/src/platform.service.ts +207 -0
  42. package/public-api.ts +4 -0
  43. package/test.ts +27 -0
  44. package/translation/index.ts +1 -0
  45. package/translation/ng-package.json +6 -0
  46. package/translation/public-api.ts +3 -0
  47. package/translation/src/translation.module.ts +12 -0
  48. package/translation/src/translator.pipe.ts +9 -0
  49. package/translation/src/translator.ts +49 -0
  50. package/tsconfig.lib.json +15 -0
  51. package/tsconfig.lib.prod.json +10 -0
  52. package/tsconfig.spec.json +17 -0
  53. package/utils/index.ts +1 -0
  54. package/utils/ng-package.json +6 -0
  55. package/utils/public-api.ts +4 -0
  56. package/utils/src/color-util.ts +83 -0
  57. package/utils/src/drawing-util.ts +43 -0
  58. package/utils/src/object-util.ts +82 -0
  59. package/utils/src/string-util.ts +25 -0
  60. package/esm2020/acorex-core.mjs +0 -5
  61. package/esm2020/lib/config/configs.mjs +0 -29
  62. package/esm2020/lib/core.module.mjs +0 -18
  63. package/esm2020/lib/dateTime/datetime.class.mjs +0 -295
  64. package/esm2020/lib/dateTime/datetime.module.mjs +0 -33
  65. package/esm2020/lib/dateTime/datetime.pipe.mjs +0 -26
  66. package/esm2020/lib/dateTime/georgian.calendar.mjs +0 -189
  67. package/esm2020/lib/dateTime/index.mjs +0 -6
  68. package/esm2020/lib/dateTime/jalali.calendar.mjs +0 -359
  69. package/esm2020/lib/events/event.service.mjs +0 -36
  70. package/esm2020/lib/events/index.mjs +0 -2
  71. package/esm2020/lib/hotkeys/hotkeys.service.mjs +0 -38
  72. package/esm2020/lib/hotkeys/index.mjs +0 -2
  73. package/esm2020/lib/platform/index.mjs +0 -2
  74. package/esm2020/lib/platform/platform.service.mjs +0 -138
  75. package/esm2020/lib/translation/index.mjs +0 -4
  76. package/esm2020/lib/translation/translation.module.mjs +0 -18
  77. package/esm2020/lib/translation/translator.mjs +0 -43
  78. package/esm2020/lib/translation/translator.pipe.mjs +0 -15
  79. package/esm2020/lib/utils/color-util.mjs +0 -71
  80. package/esm2020/lib/utils/drawing-util.mjs +0 -27
  81. package/esm2020/lib/utils/index.mjs +0 -6
  82. package/esm2020/lib/utils/object-util.mjs +0 -39
  83. package/esm2020/lib/utils/safe.pipe.mjs +0 -30
  84. package/esm2020/lib/utils/string-util.mjs +0 -19
  85. package/esm2020/public-api.mjs +0 -13
  86. package/fesm2015/acorex-core.mjs +0 -1405
  87. package/fesm2015/acorex-core.mjs.map +0 -1
  88. package/fesm2020/acorex-core.mjs +0 -1402
  89. package/fesm2020/acorex-core.mjs.map +0 -1
  90. package/index.d.ts +0 -5
  91. package/lib/config/configs.d.ts +0 -9
  92. package/lib/core.module.d.ts +0 -7
  93. package/lib/dateTime/datetime.class.d.ts +0 -100
  94. package/lib/dateTime/datetime.module.d.ts +0 -8
  95. package/lib/dateTime/datetime.pipe.d.ts +0 -8
  96. package/lib/dateTime/georgian.calendar.d.ts +0 -20
  97. package/lib/dateTime/index.d.ts +0 -5
  98. package/lib/dateTime/jalali.calendar.d.ts +0 -35
  99. package/lib/events/event.service.d.ts +0 -9
  100. package/lib/events/index.d.ts +0 -1
  101. package/lib/hotkeys/hotkeys.service.d.ts +0 -17
  102. package/lib/hotkeys/index.d.ts +0 -1
  103. package/lib/platform/index.d.ts +0 -1
  104. package/lib/platform/platform.service.d.ts +0 -25
  105. package/lib/translation/index.d.ts +0 -3
  106. package/lib/translation/translation.module.d.ts +0 -7
  107. package/lib/translation/translator.d.ts +0 -11
  108. package/lib/translation/translator.pipe.d.ts +0 -7
  109. package/lib/utils/color-util.d.ts +0 -20
  110. package/lib/utils/drawing-util.d.ts +0 -17
  111. package/lib/utils/index.d.ts +0 -5
  112. package/lib/utils/object-util.d.ts +0 -4
  113. package/lib/utils/safe.pipe.d.ts +0 -10
  114. package/lib/utils/string-util.d.ts +0 -6
  115. package/public-api.d.ts +0 -12
@@ -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): boolean;
17
- }
@@ -1,5 +0,0 @@
1
- export * from './object-util';
2
- export * from './drawing-util';
3
- export * from './string-util';
4
- export * from './color-util';
5
- export * from './safe.pipe';
@@ -1,4 +0,0 @@
1
- export declare class AXObjectUtil {
2
- static deepJSONClone(obj: any): any;
3
- static deepCopy(obj: any): any;
4
- }
@@ -1,10 +0,0 @@
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,6 +0,0 @@
1
- export declare class AXStringUtil {
2
- static getWordBoundsAtPosition(str: string, position: number): {
3
- start: number;
4
- end: number;
5
- };
6
- }
package/public-api.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * Public API refrences of core libraries
3
- * @module @acorex/core
4
- */
5
- export * from './lib/core.module';
6
- export * from './lib/dateTime';
7
- export * from './lib/events';
8
- export * from './lib/hotkeys';
9
- export * from './lib/utils';
10
- export * from './lib/config/configs';
11
- export * from './lib/translation';
12
- export * from './lib/platform';