@acorex/core 4.0.22 → 4.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 (124) hide show
  1. package/README.md +2 -23
  2. package/acorex-core.d.ts +1 -0
  3. package/{esm2015/acorex-core.js → esm2020/acorex-core.mjs} +1 -1
  4. package/esm2020/lib/classes/base-page.class.mjs +28 -0
  5. package/esm2020/lib/classes/color.class.mjs +49 -0
  6. package/esm2020/lib/classes/datetime.class.mjs +314 -0
  7. package/esm2020/lib/classes/menu.class.mjs +27 -0
  8. package/esm2020/lib/classes/navigator.class.mjs +2 -0
  9. package/esm2020/lib/classes/popup.class.mjs +2 -0
  10. package/esm2020/lib/classes/promise.class.mjs +19 -0
  11. package/esm2020/lib/classes/sectionlist.class.mjs +2 -0
  12. package/esm2020/lib/classes/select.class.mjs +3 -0
  13. package/esm2020/lib/core.module.mjs +27 -0
  14. package/esm2020/lib/error/error.class.mjs +2 -0
  15. package/esm2020/lib/error/error.module.mjs +19 -0
  16. package/esm2020/lib/error/error.service.mjs +21 -0
  17. package/esm2020/lib/events/keyboard.mjs +2 -0
  18. package/esm2020/lib/http/http-error.class.mjs +2 -0
  19. package/esm2020/lib/http/http-events.interceptor.mjs +3 -0
  20. package/esm2020/lib/http/http-request.class.mjs +2 -0
  21. package/esm2020/lib/http/http-result.class.mjs +21 -0
  22. package/esm2020/lib/http/http.module.mjs +37 -0
  23. package/esm2020/lib/http/http.service.mjs +145 -0
  24. package/esm2020/lib/locale/en.json +253 -0
  25. package/esm2020/lib/locale/fa.json +242 -0
  26. package/esm2020/lib/pipe/datetime.pipe.mjs +25 -0
  27. package/esm2020/lib/pipe/htmlToText.pipe.mjs +25 -0
  28. package/esm2020/lib/services/config.mjs +29 -0
  29. package/esm2020/lib/services/event.service.mjs +36 -0
  30. package/esm2020/lib/services/navigator.service.mjs +10 -0
  31. package/esm2020/lib/services/storage.service.mjs +16 -0
  32. package/esm2020/lib/translator/translator.mjs +26 -0
  33. package/esm2020/lib/translator/translator.module.mjs +25 -0
  34. package/esm2020/lib/translator/translator.pipe.mjs +24 -0
  35. package/esm2020/lib/translator/translator.service.mjs +21 -0
  36. package/esm2020/lib/utils/array/array-util.mjs +133 -0
  37. package/esm2020/lib/utils/html/html-util.mjs +192 -0
  38. package/esm2020/lib/utils/html/html.module.mjs +19 -0
  39. package/esm2020/lib/utils/math/math-util.mjs +6 -0
  40. package/esm2020/lib/utils/object/object-util.mjs +83 -0
  41. package/esm2020/lib/utils/render/on-demand-preload-strategy.service.mjs +21 -0
  42. package/esm2020/lib/utils/render/render.service.mjs +103 -0
  43. package/esm2020/lib/utils/render/rendering.module.mjs +35 -0
  44. package/esm2020/lib/utils/scroll/scroll.directive.mjs +54 -0
  45. package/esm2020/lib/utils/scroll/scroll.module.mjs +19 -0
  46. package/esm2020/lib/utils/separator/separator.module.mjs +19 -0
  47. package/esm2020/lib/utils/separator/separator.pipe.mjs +33 -0
  48. package/esm2020/public-api.mjs +43 -0
  49. package/fesm2015/acorex-core.mjs +2123 -0
  50. package/fesm2015/acorex-core.mjs.map +1 -0
  51. package/fesm2020/acorex-core.mjs +2119 -0
  52. package/fesm2020/acorex-core.mjs.map +1 -0
  53. package/lib/classes/base-page.class.d.ts +13 -0
  54. package/lib/classes/color.class.d.ts +17 -0
  55. package/lib/classes/datetime.class.d.ts +63 -0
  56. package/lib/classes/menu.class.d.ts +34 -0
  57. package/lib/classes/navigator.class.d.ts +5 -0
  58. package/lib/classes/popup.class.d.ts +12 -0
  59. package/lib/classes/promise.class.d.ts +7 -0
  60. package/lib/classes/sectionlist.class.d.ts +8 -0
  61. package/lib/classes/select.class.d.ts +7 -0
  62. package/lib/core.module.d.ts +9 -0
  63. package/lib/error/error.class.d.ts +4 -0
  64. package/lib/error/error.module.d.ts +7 -0
  65. package/lib/error/error.service.d.ts +13 -0
  66. package/lib/events/keyboard.d.ts +2 -0
  67. package/lib/http/http-error.class.d.ts +7 -0
  68. package/lib/http/http-events.interceptor.d.ts +10 -0
  69. package/lib/http/http-request.class.d.ts +14 -0
  70. package/lib/http/http-result.class.d.ts +11 -0
  71. package/lib/http/http.module.d.ts +10 -0
  72. package/lib/http/http.service.d.ts +23 -0
  73. package/lib/pipe/datetime.pipe.d.ts +8 -0
  74. package/lib/pipe/htmlToText.pipe.d.ts +7 -0
  75. package/lib/{config/configs.d.ts → services/config.d.ts} +1 -1
  76. package/lib/services/event.service.d.ts +9 -0
  77. package/lib/services/navigator.service.d.ts +8 -0
  78. package/lib/services/storage.service.d.ts +7 -0
  79. package/lib/{translation → translator}/translator.d.ts +0 -0
  80. package/lib/translator/translator.module.d.ts +8 -0
  81. package/lib/translator/translator.pipe.d.ts +8 -0
  82. package/lib/translator/translator.service.d.ts +8 -0
  83. package/lib/utils/array/array-util.d.ts +6 -0
  84. package/lib/utils/html/html-util.d.ts +62 -0
  85. package/lib/utils/html/html.module.d.ts +8 -0
  86. package/lib/utils/math/math-util.d.ts +3 -0
  87. package/lib/utils/object/object-util.d.ts +7 -0
  88. package/lib/utils/render/on-demand-preload-strategy.service.d.ts +10 -0
  89. package/lib/utils/render/render.service.d.ts +18 -0
  90. package/lib/utils/render/rendering.module.d.ts +8 -0
  91. package/lib/utils/scroll/scroll.directive.d.ts +18 -0
  92. package/lib/utils/scroll/scroll.module.d.ts +8 -0
  93. package/lib/utils/separator/separator.module.d.ts +8 -0
  94. package/lib/utils/separator/separator.pipe.d.ts +8 -0
  95. package/package.json +24 -12
  96. package/public-api.d.ts +42 -4
  97. package/acorex-core.metadata.json +0 -1
  98. package/bundles/acorex-core.umd.js +0 -678
  99. package/bundles/acorex-core.umd.js.map +0 -1
  100. package/bundles/acorex-core.umd.min.js +0 -2
  101. package/bundles/acorex-core.umd.min.js.map +0 -1
  102. package/esm2015/lib/config/configs.js +0 -29
  103. package/esm2015/lib/dateTime/datetime.class.js +0 -226
  104. package/esm2015/lib/dateTime/datetime.module.js +0 -13
  105. package/esm2015/lib/dateTime/datetime.pipe.js +0 -22
  106. package/esm2015/lib/dateTime/georgian.calendar.js +0 -145
  107. package/esm2015/lib/dateTime/index.js +0 -5
  108. package/esm2015/lib/translation/index.js +0 -4
  109. package/esm2015/lib/translation/translation.module.js +0 -13
  110. package/esm2015/lib/translation/translator.js +0 -26
  111. package/esm2015/lib/translation/translator.pipe.js +0 -11
  112. package/esm2015/lib/utils/object-util.js +0 -83
  113. package/esm2015/public-api.js +0 -5
  114. package/fesm2015/acorex-core.js +0 -563
  115. package/fesm2015/acorex-core.js.map +0 -1
  116. package/lib/dateTime/datetime.class.d.ts +0 -83
  117. package/lib/dateTime/datetime.module.d.ts +0 -2
  118. package/lib/dateTime/datetime.pipe.d.ts +0 -5
  119. package/lib/dateTime/georgian.calendar.d.ts +0 -17
  120. package/lib/dateTime/index.d.ts +0 -4
  121. package/lib/translation/index.d.ts +0 -3
  122. package/lib/translation/translation.module.d.ts +0 -2
  123. package/lib/translation/translator.pipe.d.ts +0 -4
  124. package/lib/utils/object-util.d.ts +0 -7
@@ -1,83 +0,0 @@
1
- export declare const AX_CALENDARS: any[];
2
- export declare type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'week';
3
- export interface AXCalendar {
4
- monthNames: string[];
5
- monthShortNames: string[];
6
- dayNames: string[];
7
- dayShortNames: string[];
8
- name(): string;
9
- dayInMonth(date: Date): number;
10
- dayOfYear(date: Date): number;
11
- dayInWeek(date: Date): number;
12
- year(date: Date): number;
13
- monthOfYear(date: Date): number;
14
- add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
15
- set(date: Date, unit: TimeUnit, value: number): AXDateTime;
16
- startOf(date: Date, unit: TimeUnit): AXDateTime;
17
- endOf(date: Date, unit: TimeUnit): AXDateTime;
18
- }
19
- export declare class AXDateTime {
20
- static convert(value: any, calendar?: string): AXDateTime;
21
- private _date;
22
- get date(): Date;
23
- private _calendar;
24
- get calendar(): AXCalendar;
25
- constructor(value?: Date | string, calendar?: string | AXCalendar);
26
- clone(): AXDateTime;
27
- get dayInMonth(): number;
28
- get dayOfYear(): number;
29
- get dayInWeek(): number;
30
- get hour(): number;
31
- get minute(): number;
32
- get second(): number;
33
- get year(): number;
34
- get monthOfYear(): number;
35
- get month(): AXCalendarMonth;
36
- add(unit: TimeUnit, amount: number): AXDateTime;
37
- set(unit: TimeUnit, value: number): AXDateTime;
38
- duration(end: AXDateTime | Date | string, unit?: TimeUnit): AXTimeSpan;
39
- startOf(unit?: TimeUnit): AXDateTime;
40
- endOf(unit?: TimeUnit): AXDateTime;
41
- format(format?: string): string;
42
- private pad;
43
- toString(): string;
44
- equal(value: any, unit?: TimeUnit): boolean;
45
- compaire(value: any, unit?: TimeUnit): 1 | 0 | -1;
46
- convert(calendar: string): AXDateTime;
47
- }
48
- export declare class AXCalendarMonth {
49
- private _range;
50
- get range(): AXDateTimeRange;
51
- set range(v: AXDateTimeRange);
52
- constructor(date: AXDateTime);
53
- private readonly index;
54
- private readonly name;
55
- }
56
- export interface AXTimeSpanTotal {
57
- miliseconds: number;
58
- seconds: number;
59
- minutes: number;
60
- hours: number;
61
- days: number;
62
- weeks: number;
63
- months: number;
64
- years: number;
65
- }
66
- export interface AXTimeSpan {
67
- miliseconds: number;
68
- seconds: number;
69
- minutes: number;
70
- hours: number;
71
- days: number;
72
- months: number;
73
- years: number;
74
- total: AXTimeSpanTotal;
75
- }
76
- export declare class AXDateTimeRange {
77
- startTime: AXDateTime;
78
- endTime: AXDateTime;
79
- constructor(startTime: AXDateTime, endTime: AXDateTime);
80
- duration(): AXTimeSpan;
81
- enumurate(unit?: TimeUnit): AXDateTime[];
82
- includes(value: AXDateTime, unit?: TimeUnit): boolean;
83
- }
@@ -1,2 +0,0 @@
1
- export declare class AXDateTimeModule {
2
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class AXDateTimePipe implements PipeTransform {
3
- constructor();
4
- transform(value: any, format?: string, calendar?: string): string;
5
- }
@@ -1,17 +0,0 @@
1
- import { AXCalendar, AXDateTime, TimeUnit } from "./datetime.class";
2
- export declare class GeorgianCalendar implements AXCalendar {
3
- monthNames: string[];
4
- monthShortNames: string[];
5
- dayNames: string[];
6
- dayShortNames: string[];
7
- name(): string;
8
- dayInMonth(date: Date): number;
9
- dayOfYear(date: Date): number;
10
- dayInWeek(date: Date): number;
11
- year(date: Date): number;
12
- monthOfYear(date: Date): number;
13
- add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
14
- set(date: Date, unit: TimeUnit, value: number): AXDateTime;
15
- startOf(date: Date, unit: TimeUnit): AXDateTime;
16
- endOf(date: Date, unit: TimeUnit): AXDateTime;
17
- }
@@ -1,4 +0,0 @@
1
- export * from './datetime.class';
2
- export * from './datetime.module';
3
- export * from './datetime.pipe';
4
- export * from './georgian.calendar';
@@ -1,3 +0,0 @@
1
- export * from './translator';
2
- export * from './translator.pipe';
3
- export * from './translation.module';
@@ -1,2 +0,0 @@
1
- export declare class AXTranslationModule {
2
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class AXTranslatorPipe implements PipeTransform {
3
- transform(value: string, lang?: string): string;
4
- }
@@ -1,7 +0,0 @@
1
- export declare class AXObjectUtil {
2
- static deepJSONClone(obj: any): any;
3
- static deepCopy(obj: any): any;
4
- static fetchProp(obj: any, prop: string): any;
5
- static getPropByPath(obj: any, path: any, defaultVal?: any): any;
6
- static setPropByPath(obj: any, path: any, value: any): any;
7
- }