@acorex/core 6.0.1 → 6.0.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 (169) hide show
  1. package/config/index.d.ts +5 -0
  2. package/config/public-api.d.ts +1 -0
  3. package/config/src/configs.d.ts +9 -0
  4. package/dateTime/index.d.ts +5 -0
  5. package/dateTime/{public-api.ts → public-api.d.ts} +1 -1
  6. package/dateTime/src/datetime.class.d.ts +100 -0
  7. package/dateTime/src/datetime.module.d.ts +8 -0
  8. package/dateTime/src/datetime.pipe.d.ts +8 -0
  9. package/dateTime/src/georgian.calendar.d.ts +20 -0
  10. package/dateTime/src/jalali.calendar.d.ts +35 -0
  11. package/esm2020/acorex-core.mjs +5 -0
  12. package/esm2020/config/acorex-core-config.mjs +5 -0
  13. package/esm2020/config/public-api.mjs +2 -0
  14. package/esm2020/config/src/configs.mjs +32 -0
  15. package/esm2020/dateTime/acorex-core-dateTime.mjs +5 -0
  16. package/esm2020/dateTime/public-api.mjs +6 -0
  17. package/esm2020/dateTime/src/datetime.class.mjs +295 -0
  18. package/esm2020/dateTime/src/datetime.module.mjs +33 -0
  19. package/esm2020/dateTime/src/datetime.pipe.mjs +26 -0
  20. package/esm2020/dateTime/src/georgian.calendar.mjs +189 -0
  21. package/esm2020/dateTime/src/jalali.calendar.mjs +359 -0
  22. package/esm2020/events/acorex-core-events.mjs +5 -0
  23. package/esm2020/events/public-api.mjs +2 -0
  24. package/esm2020/events/src/event.service.mjs +36 -0
  25. package/esm2020/http/acorex-core-http.mjs +5 -0
  26. package/esm2020/http/public-api.mjs +6 -0
  27. package/esm2020/http/src/http-error.class.mjs +2 -0
  28. package/esm2020/http/src/http-events.interceptor.mjs +3 -0
  29. package/esm2020/http/src/http-request.class.mjs +2 -0
  30. package/esm2020/http/src/http-result.class.mjs +21 -0
  31. package/esm2020/http/src/http.module.mjs +29 -0
  32. package/esm2020/http/src/http.service.mjs +147 -0
  33. package/esm2020/pipes/acorex-core-pipes.mjs +5 -0
  34. package/esm2020/pipes/public-api.mjs +3 -0
  35. package/esm2020/pipes/src/pipes.module.mjs +19 -0
  36. package/esm2020/pipes/src/safe.pipe.mjs +30 -0
  37. package/esm2020/platform/acorex-core-platform.mjs +5 -0
  38. package/esm2020/platform/public-api.mjs +2 -0
  39. package/esm2020/platform/src/platform.service.mjs +141 -0
  40. package/esm2020/public-api.mjs +5 -0
  41. package/esm2020/translation/acorex-core-translation.mjs +5 -0
  42. package/esm2020/translation/public-api.mjs +4 -0
  43. package/esm2020/translation/src/translation.module.mjs +18 -0
  44. package/esm2020/translation/src/translator.mjs +43 -0
  45. package/esm2020/translation/src/translator.pipe.mjs +15 -0
  46. package/esm2020/utils/acorex-core-utils.mjs +5 -0
  47. package/esm2020/utils/public-api.mjs +5 -0
  48. package/esm2020/utils/src/color-util.mjs +71 -0
  49. package/esm2020/utils/src/drawing-util.mjs +27 -0
  50. package/esm2020/utils/src/object-util.mjs +39 -0
  51. package/esm2020/utils/src/string-util.mjs +19 -0
  52. package/events/index.d.ts +5 -0
  53. package/events/public-api.d.ts +1 -0
  54. package/events/src/event.service.d.ts +9 -0
  55. package/fesm2015/acorex-core-config.mjs +39 -0
  56. package/fesm2015/acorex-core-config.mjs.map +1 -0
  57. package/fesm2015/acorex-core-dateTime.mjs +899 -0
  58. package/fesm2015/acorex-core-dateTime.mjs.map +1 -0
  59. package/fesm2015/acorex-core-events.mjs +43 -0
  60. package/fesm2015/acorex-core-events.mjs.map +1 -0
  61. package/fesm2015/acorex-core-http.mjs +201 -0
  62. package/fesm2015/acorex-core-http.mjs.map +1 -0
  63. package/fesm2015/acorex-core-pipes.mjs +53 -0
  64. package/fesm2015/acorex-core-pipes.mjs.map +1 -0
  65. package/fesm2015/acorex-core-platform.mjs +148 -0
  66. package/fesm2015/acorex-core-platform.mjs.map +1 -0
  67. package/fesm2015/acorex-core-translation.mjs +80 -0
  68. package/fesm2015/acorex-core-translation.mjs.map +1 -0
  69. package/fesm2015/acorex-core-utils.mjs +163 -0
  70. package/fesm2015/acorex-core-utils.mjs.map +1 -0
  71. package/fesm2015/acorex-core.mjs +11 -0
  72. package/fesm2015/acorex-core.mjs.map +1 -0
  73. package/fesm2020/acorex-core-config.mjs +39 -0
  74. package/fesm2020/acorex-core-config.mjs.map +1 -0
  75. package/fesm2020/acorex-core-dateTime.mjs +899 -0
  76. package/fesm2020/acorex-core-dateTime.mjs.map +1 -0
  77. package/fesm2020/acorex-core-events.mjs +43 -0
  78. package/fesm2020/acorex-core-events.mjs.map +1 -0
  79. package/fesm2020/acorex-core-http.mjs +200 -0
  80. package/fesm2020/acorex-core-http.mjs.map +1 -0
  81. package/fesm2020/acorex-core-pipes.mjs +53 -0
  82. package/fesm2020/acorex-core-pipes.mjs.map +1 -0
  83. package/fesm2020/acorex-core-platform.mjs +148 -0
  84. package/fesm2020/acorex-core-platform.mjs.map +1 -0
  85. package/fesm2020/acorex-core-translation.mjs +79 -0
  86. package/fesm2020/acorex-core-translation.mjs.map +1 -0
  87. package/fesm2020/acorex-core-utils.mjs +163 -0
  88. package/fesm2020/acorex-core-utils.mjs.map +1 -0
  89. package/fesm2020/acorex-core.mjs +11 -0
  90. package/fesm2020/acorex-core.mjs.map +1 -0
  91. package/http/index.d.ts +5 -0
  92. package/http/{public-api.ts → public-api.d.ts} +1 -1
  93. package/http/src/{http-error.class.ts → http-error.class.d.ts} +2 -2
  94. package/http/src/{http-events.interceptor.ts → http-events.interceptor.d.ts} +3 -7
  95. package/http/src/{http-request.class.ts → http-request.class.d.ts} +5 -5
  96. package/http/src/http-result.class.d.ts +11 -0
  97. package/http/src/http.module.d.ts +8 -0
  98. package/http/src/http.service.d.ts +23 -0
  99. package/index.d.ts +5 -0
  100. package/package.json +106 -23
  101. package/pipes/index.d.ts +5 -0
  102. package/pipes/public-api.d.ts +2 -0
  103. package/pipes/src/pipes.module.d.ts +8 -0
  104. package/pipes/src/safe.pipe.d.ts +10 -0
  105. package/platform/index.d.ts +5 -0
  106. package/platform/public-api.d.ts +1 -0
  107. package/platform/src/platform.service.d.ts +25 -0
  108. package/public-api.d.ts +1 -0
  109. package/translation/index.d.ts +5 -0
  110. package/translation/{public-api.ts → public-api.d.ts} +1 -1
  111. package/translation/src/translation.module.d.ts +7 -0
  112. package/translation/src/translator.d.ts +11 -0
  113. package/translation/src/translator.pipe.d.ts +7 -0
  114. package/utils/index.d.ts +5 -0
  115. package/utils/{public-api.ts → public-api.d.ts} +1 -1
  116. package/utils/src/color-util.d.ts +20 -0
  117. package/utils/src/drawing-util.d.ts +17 -0
  118. package/utils/src/object-util.d.ts +4 -0
  119. package/utils/src/string-util.d.ts +6 -0
  120. package/.browserslistrc +0 -16
  121. package/config/ax-preset.js +0 -186
  122. package/config/index.ts +0 -1
  123. package/config/ng-package.json +0 -6
  124. package/config/public-api.ts +0 -1
  125. package/config/src/configs.ts +0 -37
  126. package/dateTime/index.ts +0 -1
  127. package/dateTime/ng-package.json +0 -6
  128. package/dateTime/src/datetime.class.ts +0 -452
  129. package/dateTime/src/datetime.module.ts +0 -29
  130. package/dateTime/src/datetime.pipe.ts +0 -21
  131. package/dateTime/src/georgian.calendar.ts +0 -205
  132. package/dateTime/src/jalali.calendar.ts +0 -416
  133. package/events/index.ts +0 -1
  134. package/events/ng-package.json +0 -6
  135. package/events/public-api.ts +0 -1
  136. package/events/src/event.service.ts +0 -31
  137. package/http/index.ts +0 -1
  138. package/http/ng-package.json +0 -6
  139. package/http/src/http-result.class.ts +0 -34
  140. package/http/src/http.module.ts +0 -25
  141. package/http/src/http.service.ts +0 -161
  142. package/index.ts +0 -1
  143. package/karma.conf.js +0 -44
  144. package/ng-package.json +0 -7
  145. package/pipes/index.ts +0 -1
  146. package/pipes/ng-package.json +0 -6
  147. package/pipes/public-api.ts +0 -2
  148. package/pipes/src/pipes.module.ts +0 -11
  149. package/pipes/src/safe.pipe.ts +0 -24
  150. package/platform/index.ts +0 -1
  151. package/platform/ng-package.json +0 -6
  152. package/platform/public-api.ts +0 -1
  153. package/platform/src/platform.service.ts +0 -207
  154. package/public-api.ts +0 -4
  155. package/test.ts +0 -27
  156. package/translation/index.ts +0 -1
  157. package/translation/ng-package.json +0 -6
  158. package/translation/src/translation.module.ts +0 -12
  159. package/translation/src/translator.pipe.ts +0 -9
  160. package/translation/src/translator.ts +0 -49
  161. package/tsconfig.lib.json +0 -15
  162. package/tsconfig.lib.prod.json +0 -10
  163. package/tsconfig.spec.json +0 -17
  164. package/utils/index.ts +0 -1
  165. package/utils/ng-package.json +0 -6
  166. package/utils/src/color-util.ts +0 -83
  167. package/utils/src/drawing-util.ts +0 -43
  168. package/utils/src/object-util.ts +0 -82
  169. package/utils/src/string-util.ts +0 -25
package/package.json CHANGED
@@ -1,23 +1,106 @@
1
- {
2
- "name": "@acorex/core",
3
- "version": "6.0.1",
4
- "dependencies": {
5
- "tslib": "^2.3.0"
6
- },
7
- "ngPackage": {},
8
- "peerDependencies": {
9
- "@angular/common": "^14.0.0",
10
- "@angular/core": "^14.0.0",
11
- "lodash-es": "^4.17.21",
12
- "tinycolor2": "^1.4.2",
13
- "tinygradient": "^1.1.5"
14
- },
15
- "peerDependenciesMeta": {
16
- "tinycolor2": {
17
- "optional": true
18
- },
19
- "tinygradient": {
20
- "optional": true
21
- }
22
- }
23
- }
1
+ {
2
+ "name": "@acorex/core",
3
+ "version": "6.0.2",
4
+ "dependencies": {
5
+ "tslib": "^2.3.0"
6
+ },
7
+ "peerDependencies": {
8
+ "@angular/common": "^14.0.0",
9
+ "@angular/core": "^14.0.0",
10
+ "lodash-es": "^4.17.21",
11
+ "tinycolor2": "^1.4.2",
12
+ "tinygradient": "^1.1.5"
13
+ },
14
+ "peerDependenciesMeta": {
15
+ "tinycolor2": {
16
+ "optional": true
17
+ },
18
+ "tinygradient": {
19
+ "optional": true
20
+ }
21
+ },
22
+ "module": "fesm2015/acorex-core.mjs",
23
+ "es2020": "fesm2020/acorex-core.mjs",
24
+ "esm2020": "esm2020/acorex-core.mjs",
25
+ "fesm2020": "fesm2020/acorex-core.mjs",
26
+ "fesm2015": "fesm2015/acorex-core.mjs",
27
+ "typings": "index.d.ts",
28
+ "exports": {
29
+ "./package.json": {
30
+ "default": "./package.json"
31
+ },
32
+ ".": {
33
+ "types": "./index.d.ts",
34
+ "esm2020": "./esm2020/acorex-core.mjs",
35
+ "es2020": "./fesm2020/acorex-core.mjs",
36
+ "es2015": "./fesm2015/acorex-core.mjs",
37
+ "node": "./fesm2015/acorex-core.mjs",
38
+ "default": "./fesm2020/acorex-core.mjs"
39
+ },
40
+ "./config": {
41
+ "types": "./config/index.d.ts",
42
+ "esm2020": "./esm2020/config/acorex-core-config.mjs",
43
+ "es2020": "./fesm2020/acorex-core-config.mjs",
44
+ "es2015": "./fesm2015/acorex-core-config.mjs",
45
+ "node": "./fesm2015/acorex-core-config.mjs",
46
+ "default": "./fesm2020/acorex-core-config.mjs"
47
+ },
48
+ "./dateTime": {
49
+ "types": "./dateTime/index.d.ts",
50
+ "esm2020": "./esm2020/dateTime/acorex-core-dateTime.mjs",
51
+ "es2020": "./fesm2020/acorex-core-dateTime.mjs",
52
+ "es2015": "./fesm2015/acorex-core-dateTime.mjs",
53
+ "node": "./fesm2015/acorex-core-dateTime.mjs",
54
+ "default": "./fesm2020/acorex-core-dateTime.mjs"
55
+ },
56
+ "./events": {
57
+ "types": "./events/index.d.ts",
58
+ "esm2020": "./esm2020/events/acorex-core-events.mjs",
59
+ "es2020": "./fesm2020/acorex-core-events.mjs",
60
+ "es2015": "./fesm2015/acorex-core-events.mjs",
61
+ "node": "./fesm2015/acorex-core-events.mjs",
62
+ "default": "./fesm2020/acorex-core-events.mjs"
63
+ },
64
+ "./http": {
65
+ "types": "./http/index.d.ts",
66
+ "esm2020": "./esm2020/http/acorex-core-http.mjs",
67
+ "es2020": "./fesm2020/acorex-core-http.mjs",
68
+ "es2015": "./fesm2015/acorex-core-http.mjs",
69
+ "node": "./fesm2015/acorex-core-http.mjs",
70
+ "default": "./fesm2020/acorex-core-http.mjs"
71
+ },
72
+ "./pipes": {
73
+ "types": "./pipes/index.d.ts",
74
+ "esm2020": "./esm2020/pipes/acorex-core-pipes.mjs",
75
+ "es2020": "./fesm2020/acorex-core-pipes.mjs",
76
+ "es2015": "./fesm2015/acorex-core-pipes.mjs",
77
+ "node": "./fesm2015/acorex-core-pipes.mjs",
78
+ "default": "./fesm2020/acorex-core-pipes.mjs"
79
+ },
80
+ "./platform": {
81
+ "types": "./platform/index.d.ts",
82
+ "esm2020": "./esm2020/platform/acorex-core-platform.mjs",
83
+ "es2020": "./fesm2020/acorex-core-platform.mjs",
84
+ "es2015": "./fesm2015/acorex-core-platform.mjs",
85
+ "node": "./fesm2015/acorex-core-platform.mjs",
86
+ "default": "./fesm2020/acorex-core-platform.mjs"
87
+ },
88
+ "./translation": {
89
+ "types": "./translation/index.d.ts",
90
+ "esm2020": "./esm2020/translation/acorex-core-translation.mjs",
91
+ "es2020": "./fesm2020/acorex-core-translation.mjs",
92
+ "es2015": "./fesm2015/acorex-core-translation.mjs",
93
+ "node": "./fesm2015/acorex-core-translation.mjs",
94
+ "default": "./fesm2020/acorex-core-translation.mjs"
95
+ },
96
+ "./utils": {
97
+ "types": "./utils/index.d.ts",
98
+ "esm2020": "./esm2020/utils/acorex-core-utils.mjs",
99
+ "es2020": "./fesm2020/acorex-core-utils.mjs",
100
+ "es2015": "./fesm2015/acorex-core-utils.mjs",
101
+ "node": "./fesm2015/acorex-core-utils.mjs",
102
+ "default": "./fesm2020/acorex-core-utils.mjs"
103
+ }
104
+ },
105
+ "sideEffects": false
106
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/pipes" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './src/safe.pipe';
2
+ export * from './src/pipes.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./safe.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXPipesModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPipesModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPipesModule, [typeof i1.AXSafePipe], [typeof i2.CommonModule], [typeof i1.AXSafePipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXPipesModule>;
8
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/platform" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/platform.service';
@@ -0,0 +1,25 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
4
+ export declare type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
5
+ export declare type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
6
+ export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
7
+ export declare class AXPlatformEvent {
8
+ nativeEvent: UIEvent | Event;
9
+ source: AXPlatform;
10
+ }
11
+ export declare class AXPlatform {
12
+ resize: Subject<AXPlatformEvent>;
13
+ click: Subject<AXPlatformEvent>;
14
+ scroll: Subject<AXPlatformEvent>;
15
+ isRtl(): boolean;
16
+ isLandscape(): boolean;
17
+ isPortrate(): boolean;
18
+ is(name: AXPlatforms | AXBrowsers | AXTechnologies): boolean;
19
+ switchDarkMode(): void;
20
+ switchLightMode(): void;
21
+ private _setFullHeightRatio;
22
+ constructor();
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
25
+ }
@@ -0,0 +1 @@
1
+ export declare const ACOREX_CORE = "@acorex/core";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/translation" />
5
+ export * from './public-api';
@@ -1,3 +1,3 @@
1
1
  export * from './src/translator';
2
2
  export * from './src/translator.pipe';
3
- export * from './src/translation.module';
3
+ export * from './src/translation.module';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./translator.pipe";
3
+ export declare class AXTranslationModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class AXTranslator {
3
+ private static lang;
4
+ private static dataChangeSubject;
5
+ private static _varsRegx;
6
+ private static _varNameRegx;
7
+ static get onChange(): Observable<any>;
8
+ static load(lang: string, value: any): void;
9
+ static use(lang: string): void;
10
+ static get(key: string, arg1?: object | string, arg2?: object): string;
11
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/utils" />
5
+ export * from './public-api';
@@ -1,4 +1,4 @@
1
1
  export * from './src/object-util';
2
2
  export * from './src/drawing-util';
3
3
  export * from './src/string-util';
4
- export * from './src/color-util';
4
+ export * from './src/color-util';
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ export declare class AXObjectUtil {
2
+ static deepJSONClone(obj: any): any;
3
+ static deepCopy(obj: any): any;
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare class AXStringUtil {
2
+ static getWordBoundsAtPosition(str: string, position: number): {
3
+ start: number;
4
+ end: number;
5
+ };
6
+ }
package/.browserslistrc DELETED
@@ -1,16 +0,0 @@
1
- # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
-
5
- # For the full list of supported browsers by the Angular framework, please see:
6
- # https://angular.io/guide/browser-support
7
-
8
- # You can see what browsers were selected by your queries by running:
9
- # npx browserslist
10
-
11
- last 1 Chrome version
12
- last 1 Firefox version
13
- last 2 Edge major versions
14
- last 2 Safari major versions
15
- last 2 iOS major versions
16
- Firefox ESR
@@ -1,186 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
-
3
- function withOpacityValue(variable) {
4
- return ({ opacityValue }) => {
5
- if (opacityValue === undefined) {
6
- return `rgb(var(${variable}))`
7
- }
8
- return `rgb(var(${variable}) / ${opacityValue})`
9
- }
10
- }
11
-
12
- module.exports = {
13
- prefix: 'ax-',
14
- darkMode: 'class',
15
- mode: "jit",
16
- content: [
17
- "./src/**/*.{html,ts,scss}",
18
- "./projects/**/*.{html,ts,scss}",
19
- "./dist/acorex/**/*.{html,ts,scss}",
20
- "./node_modules/@acorex/**/*.{html,ts,scss}",
21
- ],
22
- darkMode: "class", // or 'media' or 'class'
23
- theme: {
24
- extend: {
25
- colors: {
26
- black: withOpacityValue('--ax-color-black'),
27
- white: withOpacityValue('--ax-color-white'),
28
- "default-background": withOpacityValue('--ax-color-default-background'),
29
- "default-color": withOpacityValue('--ax-color-default-color'),
30
- "primary": {
31
- "fore": withOpacityValue('--ax-color-primary-fore'),
32
- "50": withOpacityValue('--ax-color-primary-50'),
33
- "100": withOpacityValue('--ax-color-primary-100'),
34
- "200": withOpacityValue('--ax-color-primary-200'),
35
- "300": withOpacityValue('--ax-color-primary-300'),
36
- "400": withOpacityValue('--ax-color-primary-400'),
37
- "500": withOpacityValue('--ax-color-primary-500'),
38
- "600": withOpacityValue('--ax-color-primary-600'),
39
- "700": withOpacityValue('--ax-color-primary-700'),
40
- "800": withOpacityValue('--ax-color-primary-800'),
41
- "900": withOpacityValue('--ax-color-primary-900'),
42
- },
43
- "secondary": {
44
- "fore": withOpacityValue('--ax-color-secondary-fore'),
45
- "50": withOpacityValue('--ax-color-secondary-50'),
46
- "100": withOpacityValue('--ax-color-secondary-100'),
47
- "200": withOpacityValue('--ax-color-secondary-200'),
48
- "300": withOpacityValue('--ax-color-secondary-300'),
49
- "400": withOpacityValue('--ax-color-secondary-400'),
50
- "500": withOpacityValue('--ax-color-secondary-500'),
51
- "600": withOpacityValue('--ax-color-secondary-600'),
52
- "700": withOpacityValue('--ax-color-secondary-700'),
53
- "800": withOpacityValue('--ax-color-secondary-800'),
54
- "900": withOpacityValue('--ax-color-secondary-900'),
55
- },
56
- "success": {
57
- "fore": withOpacityValue('--ax-color-success-fore'),
58
- "50": withOpacityValue('--ax-color-success-50'),
59
- "100": withOpacityValue('--ax-color-success-100'),
60
- "200": withOpacityValue('--ax-color-success-200'),
61
- "300": withOpacityValue('--ax-color-success-300'),
62
- "400": withOpacityValue('--ax-color-success-400'),
63
- "500": withOpacityValue('--ax-color-success-500'),
64
- "600": withOpacityValue('--ax-color-success-600'),
65
- "700": withOpacityValue('--ax-color-success-700'),
66
- "800": withOpacityValue('--ax-color-success-800'),
67
- "900": withOpacityValue('--ax-color-success-900'),
68
- },
69
- "danger": {
70
- "fore": withOpacityValue('--ax-color-danger-fore'),
71
- "50": withOpacityValue('--ax-color-danger-50'),
72
- "100": withOpacityValue('--ax-color-danger-100'),
73
- "200": withOpacityValue('--ax-color-danger-200'),
74
- "300": withOpacityValue('--ax-color-danger-300'),
75
- "400": withOpacityValue('--ax-color-danger-400'),
76
- "500": withOpacityValue('--ax-color-danger-500'),
77
- "600": withOpacityValue('--ax-color-danger-600'),
78
- "700": withOpacityValue('--ax-color-danger-700'),
79
- "800": withOpacityValue('--ax-color-danger-800'),
80
- "900": withOpacityValue('--ax-color-danger-900'),
81
- },
82
- "warning": {
83
- "fore": withOpacityValue('--ax-color-warning-fore'),
84
- "50": withOpacityValue('--ax-color-warning-50'),
85
- "100": withOpacityValue('--ax-color-warning-100'),
86
- "200": withOpacityValue('--ax-color-warning-200'),
87
- "300": withOpacityValue('--ax-color-warning-300'),
88
- "400": withOpacityValue('--ax-color-warning-400'),
89
- "500": withOpacityValue('--ax-color-warning-500'),
90
- "600": withOpacityValue('--ax-color-warning-600'),
91
- "700": withOpacityValue('--ax-color-warning-700'),
92
- "800": withOpacityValue('--ax-color-warning-800'),
93
- "900": withOpacityValue('--ax-color-warning-900'),
94
- },
95
- "info": {
96
- "fore": withOpacityValue('--ax-color-info-fore'),
97
- "50": withOpacityValue('--ax-color-info-50'),
98
- "100": withOpacityValue('--ax-color-info-100'),
99
- "200": withOpacityValue('--ax-color-info-200'),
100
- "300": withOpacityValue('--ax-color-info-300'),
101
- "400": withOpacityValue('--ax-color-info-400'),
102
- "500": withOpacityValue('--ax-color-info-500'),
103
- "600": withOpacityValue('--ax-color-info-600'),
104
- "700": withOpacityValue('--ax-color-info-700'),
105
- "800": withOpacityValue('--ax-color-info-800'),
106
- "900": withOpacityValue('--ax-color-info-900'),
107
- },
108
- "light": {
109
- "fore": withOpacityValue('--ax-color-light-fore'),
110
- "50": withOpacityValue('--ax-color-light-50'),
111
- "100": withOpacityValue('--ax-color-light-100'),
112
- "200": withOpacityValue('--ax-color-light-200'),
113
- "300": withOpacityValue('--ax-color-light-300'),
114
- "400": withOpacityValue('--ax-color-light-400'),
115
- "500": withOpacityValue('--ax-color-light-500'),
116
- "600": withOpacityValue('--ax-color-light-600'),
117
- "700": withOpacityValue('--ax-color-light-700'),
118
- "800": withOpacityValue('--ax-color-light-800'),
119
- "900": withOpacityValue('--ax-color-light-900'),
120
- },
121
- "dark": {
122
- "fore": withOpacityValue('--ax-color-dark-fore'),
123
- "50": withOpacityValue('--ax-color-dark-50'),
124
- "100": withOpacityValue('--ax-color-dark-100'),
125
- "200": withOpacityValue('--ax-color-dark-200'),
126
- "300": withOpacityValue('--ax-color-dark-300'),
127
- "400": withOpacityValue('--ax-color-dark-400'),
128
- "500": withOpacityValue('--ax-color-dark-500'),
129
- "600": withOpacityValue('--ax-color-dark-600'),
130
- "700": withOpacityValue('--ax-color-dark-700'),
131
- "800": withOpacityValue('--ax-color-dark-800'),
132
- "900": withOpacityValue('--ax-color-dark-900'),
133
- },
134
-
135
- },
136
- maxWidth: {
137
- '8xl': '90rem',
138
- },
139
- keyframes: {
140
- fadeIn: {
141
- "0%": { opacity: 0 },
142
- "100%": { opacity: 1 }
143
- },
144
- fadeOut: {
145
- "0%": { opacity: 1 },
146
- "100%": { opacity: 0 }
147
- }
148
- },
149
- animation: {
150
- "fadeIn": "fadeIn ease-in-out 1s",
151
- "fadeOut": "fadeOut ease-in-out 1s",
152
- }
153
- },
154
- },
155
- variants: {
156
- extend: {},
157
- },
158
- plugins: [
159
- plugin(function ({ addUtilities }) {
160
- const acorexClasses = {
161
- '.animate-fast': {
162
- animationDuration: '800ms'
163
- },
164
- '.animate-faster': {
165
- animationDuration: '500ms'
166
- },
167
- '.bg-default': {
168
- backgroundColor: 'rgb(var(--ax-color-default-background) / var(--tw-bg-opacity))'
169
- },
170
- '.text-default': {
171
- backgroundColor: 'rgb(var(--ax-color-default-color) / var(--tw-text-opacity))'
172
- }
173
- }
174
- addUtilities(acorexClasses, ['responsive', 'hover', 'focus'])
175
- }),
176
- require('postcss-import'),
177
- require('tailwindcss/nesting')(require('postcss-nesting')),
178
- require('tailwindcss'),
179
- require('autoprefixer'),
180
- require('tailwind-rtl-utilities')
181
- // require('@tailwindcss/aspect-ratio'),
182
- // require('@tailwindcss/forms'),
183
- // require('@tailwindcss/line-clamp'),
184
- // require('@tailwindcss/typography')
185
- ],
186
- };
package/config/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "lib": {
4
- "entryFile": "public-api.ts"
5
- }
6
- }
@@ -1 +0,0 @@
1
- export * from './src/configs';
@@ -1,37 +0,0 @@
1
- import { get, set, merge } from 'lodash-es';
2
- import { Subject, Observable } from 'rxjs';
3
-
4
- // @dynamic
5
- export class AXConfig {
6
- private static dataModel: any = {};
7
- private static dataChangeSubject = new Subject<any>();
8
-
9
- static get onChange(): Observable<any> {
10
- return AXConfig.dataChangeSubject.asObservable();
11
- }
12
-
13
- static set(config: any): any;
14
- static set(path: string, value?: any): void;
15
- static set(arg1?: any, arg2?: any) {
16
- if (arg1 && typeof arg1 == 'string') {
17
- set(AXConfig.dataModel, arg1, arg2);
18
- AXConfig.dataChangeSubject.next(AXConfig.dataModel);
19
- return true;
20
- }
21
- if (arg1 && typeof arg1 == 'object') {
22
- merge(AXConfig.dataModel, arg1);
23
- AXConfig.dataChangeSubject.next(AXConfig.dataModel);
24
- return true;
25
- }
26
- if (!arg1 && !arg2) {
27
- return AXConfig.dataChangeSubject.asObservable();
28
- }
29
- // TODO: Arash please check 'Not all code paths return a value.'.
30
- // if remove return you can see error on line 15.
31
- return '';
32
- }
33
-
34
- static get(path: string, defaultValue?: any): any {
35
- return get(AXConfig.dataModel, path, defaultValue);
36
- }
37
- }
package/dateTime/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "lib": {
4
- "entryFile": "public-api.ts"
5
- }
6
- }