@acorex/core 7.1.0 → 7.1.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 (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 +152 -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 +147 -155
  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 +7 -7
  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 +26 -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,19 +1,19 @@
1
- // @dynamic
2
- export class AXStringUtil {
3
- static getWordBoundsAtPosition(str, position) {
4
- const isSpace = (c) => /[^a-zA-Z0-9]+/i.test(c);
5
- let start = position - 1;
6
- while (start >= 0 && !isSpace(str[start])) {
7
- start -= 1;
8
- }
9
- start = Math.max(0, start + 1);
10
- const leftSideString = str.slice(start).match(/[a-zA-Z0-9]+/i);
11
- start += leftSideString.index;
12
- let end = start + leftSideString[0].length;
13
- return {
14
- start,
15
- end
16
- };
17
- }
18
- }
1
+ // @dynamic
2
+ export class AXStringUtil {
3
+ static getWordBoundsAtPosition(str, position) {
4
+ const isSpace = (c) => /[^a-zA-Z0-9]+/i.test(c);
5
+ let start = position - 1;
6
+ while (start >= 0 && !isSpace(str[start])) {
7
+ start -= 1;
8
+ }
9
+ start = Math.max(0, start + 1);
10
+ const leftSideString = str.slice(start).match(/[a-zA-Z0-9]+/i);
11
+ start += leftSideString.index;
12
+ let end = start + leftSideString[0].length;
13
+ return {
14
+ start,
15
+ end
16
+ };
17
+ }
18
+ }
19
19
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS91dGlscy9zcmMvc3Rya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XIpOiB7IHN0YXJ0OiBudW1iZXIsIGVuZDogbnVtYmVyIH0ge1xyXG4gICAgICAgIGNvbnN0IGlzU3BhY2UgPSAoYykgPT4gL1teYS16QS1aMC05XSsvaS50ZXN0KGMpO1xyXG4gICAgICAgIGxldCBzdGFydCA9IHBvc2l0aW9uIC0gMTtcclxuXHJcbiAgICAgICAgd2hpbGUgKHN0YXJ0ID49IDAgJiYgIWlzU3BhY2Uoc3RyW3N0YXJ0XSkpIHtcclxuICAgICAgICAgICAgc3RhcnQgLT0gMTtcclxuICAgICAgICB9XHJcbiAgICAgICAgc3RhcnQgPSBNYXRoLm1heCgwLCBzdGFydCArIDEpO1xyXG4gICAgICAgIGNvbnN0IGxlZnRTaWRlU3RyaW5nOmFueSA9IHN0ci5zbGljZShzdGFydCkubWF0Y2goL1thLXpBLVowLTldKy9pKTtcclxuICAgICAgICBzdGFydCArPSBsZWZ0U2lkZVN0cmluZy5pbmRleDtcclxuICAgICAgICBsZXQgZW5kID0gc3RhcnQgKyBsZWZ0U2lkZVN0cmluZ1swXS5sZW5ndGg7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgc3RhcnQsXHJcbiAgICAgICAgICAgIGVuZFxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG5cclxuXHJcblxyXG5cclxufSJdfQ==
package/events/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/events" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/events" />
5
+ export * from './public-api';
@@ -1 +1 @@
1
- export * from './src/event.service';
1
+ export * from './src/event.service';
@@ -1,9 +1,9 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AXEventService {
3
- private list;
4
- broadcast(key: string, options?: any): void;
5
- on(key: string, callback: (options?: any) => void): void;
6
- destroy(key: string, callback: (options?: any) => void): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
9
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXEventService {
3
+ private list;
4
+ broadcast(key: string, options?: any): void;
5
+ on(key: string, callback: (options?: any) => void): void;
6
+ destroy(key: string, callback: (options?: any) => void): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
9
+ }
@@ -1,30 +1,30 @@
1
1
  import { set, merge, get } from 'lodash-es';
2
2
  import { Subject } from 'rxjs';
3
3
 
4
- // @dynamic
5
- class AXConfig {
6
- static dataModel = {};
7
- static dataChangeSubject = new Subject();
8
- static get onChange() {
9
- return AXConfig.dataChangeSubject.asObservable();
10
- }
11
- static set(arg1, arg2) {
12
- if (arg1 && typeof arg1 == 'string') {
13
- set(AXConfig.dataModel, arg1, arg2);
14
- AXConfig.dataChangeSubject.next(AXConfig.dataModel);
15
- }
16
- if (arg1 && typeof arg1 == 'object') {
17
- merge(AXConfig.dataModel, arg1);
18
- AXConfig.dataChangeSubject.next(AXConfig.dataModel);
19
- }
20
- }
21
- static get(path, defaultValue) {
22
- return get(AXConfig.dataModel, path, defaultValue);
23
- }
4
+ // @dynamic
5
+ class AXConfig {
6
+ static dataModel = {};
7
+ static dataChangeSubject = new Subject();
8
+ static get onChange() {
9
+ return AXConfig.dataChangeSubject.asObservable();
10
+ }
11
+ static set(arg1, arg2) {
12
+ if (arg1 && typeof arg1 == 'string') {
13
+ set(AXConfig.dataModel, arg1, arg2);
14
+ AXConfig.dataChangeSubject.next(AXConfig.dataModel);
15
+ }
16
+ if (arg1 && typeof arg1 == 'object') {
17
+ merge(AXConfig.dataModel, arg1);
18
+ AXConfig.dataChangeSubject.next(AXConfig.dataModel);
19
+ }
20
+ }
21
+ static get(path, defaultValue) {
22
+ return get(AXConfig.dataModel, path, defaultValue);
23
+ }
24
24
  }
25
25
 
26
- /**
27
- * Generated bundle index. Do not edit.
26
+ /**
27
+ * Generated bundle index. Do not edit.
28
28
  */
29
29
 
30
30
  export { AXConfig };
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-core-config.mjs","sources":["../../../../projects/acorex/core/config/src/configs.ts","../../../../projects/acorex/core/config/acorex-core-config.ts"],"sourcesContent":["import { get, set, merge } from 'lodash-es';\r\nimport { Subject, Observable } from 'rxjs';\r\n\r\n// @dynamic\r\nexport class AXConfig {\r\n private static dataModel: any = {};\r\n private static dataChangeSubject = new Subject<any>();\r\n\r\n static get onChange(): Observable<any> {\r\n return AXConfig.dataChangeSubject.asObservable();\r\n }\r\n\r\n static set(config: any): void;\r\n static set(path: string, value?: any): void;\r\n static set(arg1?: any, arg2?: any): void {\r\n if (arg1 && typeof arg1 == 'string') {\r\n set(AXConfig.dataModel, arg1, arg2);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n if (arg1 && typeof arg1 == 'object') {\r\n merge(AXConfig.dataModel, arg1);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n }\r\n\r\n static get(path: string, defaultValue?: any): any {\r\n return get(AXConfig.dataModel, path, defaultValue);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGA;MACa,QAAQ,CAAA;AACX,IAAA,OAAO,SAAS,GAAQ,EAAE,CAAC;AAC3B,IAAA,OAAO,iBAAiB,GAAG,IAAI,OAAO,EAAO,CAAC;AAEtD,IAAA,WAAW,QAAQ,GAAA;AACjB,QAAA,OAAO,QAAQ,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;KAClD;AAID,IAAA,OAAO,GAAG,CAAC,IAAU,EAAE,IAAU,EAAA;AAC/B,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;YACnC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACpC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;AACD,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;AACnC,YAAA,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAChC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;KACF;AAED,IAAA,OAAO,GAAG,CAAC,IAAY,EAAE,YAAkB,EAAA;QACzC,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;KACpD;;;AC3BH;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-core-config.mjs","sources":["../../../../projects/acorex/core/config/src/configs.ts","../../../../projects/acorex/core/config/acorex-core-config.ts"],"sourcesContent":["import { get, set, merge } from 'lodash-es';\r\nimport { Subject, Observable } from 'rxjs';\r\n\r\n// @dynamic\r\nexport class AXConfig {\r\n private static dataModel: any = {};\r\n private static dataChangeSubject = new Subject<any>();\r\n\r\n static get onChange(): Observable<any> {\r\n return AXConfig.dataChangeSubject.asObservable();\r\n }\r\n\r\n static set(config: any): void;\r\n static set(path: string, value?: any): void;\r\n static set(arg1?: any, arg2?: any): void {\r\n if (arg1 && typeof arg1 == 'string') {\r\n set(AXConfig.dataModel, arg1, arg2);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n if (arg1 && typeof arg1 == 'object') {\r\n merge(AXConfig.dataModel, arg1);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n }\r\n\r\n static get(path: string, defaultValue?: any): any {\r\n return get(AXConfig.dataModel, path, defaultValue);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGA;AACA,MAAa,QAAQ,CAAA;AACX,IAAA,OAAO,SAAS,GAAQ,EAAE,CAAC;AAC3B,IAAA,OAAO,iBAAiB,GAAG,IAAI,OAAO,EAAO,CAAC;AAEtD,IAAA,WAAW,QAAQ,GAAA;AACjB,QAAA,OAAO,QAAQ,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;KAClD;AAID,IAAA,OAAO,GAAG,CAAC,IAAU,EAAE,IAAU,EAAA;AAC/B,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;YACnC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACpC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;AACD,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;AACnC,YAAA,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAChC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;KACF;AAED,IAAA,OAAO,GAAG,CAAC,IAAY,EAAE,YAAkB,EAAA;QACzC,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;KACpD;;;AC3BH;;AAEG;;;;"}