@acorex/core 6.5.29 → 6.5.30

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 (100) hide show
  1. package/README.md +3 -3
  2. package/acorex-core.d.ts +5 -5
  3. package/esm2020/acorex-core.mjs +4 -4
  4. package/esm2020/lib/classes/base-page.class.mjs +28 -28
  5. package/esm2020/lib/classes/color.class.mjs +49 -49
  6. package/esm2020/lib/classes/datetime.class.mjs +314 -314
  7. package/esm2020/lib/classes/menu.class.mjs +27 -27
  8. package/esm2020/lib/classes/navigator.class.mjs +2 -2
  9. package/esm2020/lib/classes/popup.class.mjs +2 -2
  10. package/esm2020/lib/classes/promise.class.mjs +19 -19
  11. package/esm2020/lib/classes/sectionlist.class.mjs +2 -2
  12. package/esm2020/lib/classes/select.class.mjs +3 -3
  13. package/esm2020/lib/core.module.mjs +27 -27
  14. package/esm2020/lib/error/error.class.mjs +2 -2
  15. package/esm2020/lib/error/error.module.mjs +19 -19
  16. package/esm2020/lib/error/error.service.mjs +21 -21
  17. package/esm2020/lib/events/keyboard.mjs +2 -2
  18. package/esm2020/lib/http/http-error.class.mjs +2 -2
  19. package/esm2020/lib/http/http-events.interceptor.mjs +3 -3
  20. package/esm2020/lib/http/http-request.class.mjs +2 -2
  21. package/esm2020/lib/http/http-result.class.mjs +21 -21
  22. package/esm2020/lib/http/http.module.mjs +37 -37
  23. package/esm2020/lib/http/http.service.mjs +145 -145
  24. package/esm2020/lib/locale/en.json +255 -255
  25. package/esm2020/lib/locale/fa.json +245 -245
  26. package/esm2020/lib/pipe/datetime.pipe.mjs +25 -25
  27. package/esm2020/lib/pipe/htmlToText.pipe.mjs +25 -25
  28. package/esm2020/lib/platform/index.mjs +1 -1
  29. package/esm2020/lib/platform/platform.service.mjs +150 -150
  30. package/esm2020/lib/services/config.mjs +29 -29
  31. package/esm2020/lib/services/event.service.mjs +36 -36
  32. package/esm2020/lib/services/navigator.service.mjs +10 -10
  33. package/esm2020/lib/services/storage.service.mjs +16 -16
  34. package/esm2020/lib/translator/translator.mjs +26 -26
  35. package/esm2020/lib/translator/translator.module.mjs +25 -25
  36. package/esm2020/lib/translator/translator.pipe.mjs +24 -24
  37. package/esm2020/lib/translator/translator.service.mjs +21 -21
  38. package/esm2020/lib/utils/array/array-util.mjs +133 -133
  39. package/esm2020/lib/utils/html/html-util.mjs +192 -192
  40. package/esm2020/lib/utils/html/html.module.mjs +19 -19
  41. package/esm2020/lib/utils/math/math-util.mjs +6 -6
  42. package/esm2020/lib/utils/object/object-util.mjs +83 -83
  43. package/esm2020/lib/utils/render/on-demand-preload-strategy.service.mjs +20 -20
  44. package/esm2020/lib/utils/render/render.service.mjs +103 -103
  45. package/esm2020/lib/utils/render/rendering.module.mjs +35 -35
  46. package/esm2020/lib/utils/scroll/scroll.directive.mjs +54 -54
  47. package/esm2020/lib/utils/scroll/scroll.module.mjs +19 -19
  48. package/esm2020/lib/utils/separator/separator.module.mjs +19 -19
  49. package/esm2020/lib/utils/separator/separator.pipe.mjs +33 -33
  50. package/esm2020/public-api.mjs +44 -44
  51. package/fesm2015/acorex-core.mjs +2162 -2162
  52. package/fesm2015/acorex-core.mjs.map +1 -1
  53. package/fesm2020/acorex-core.mjs +1651 -1651
  54. package/fesm2020/acorex-core.mjs.map +1 -1
  55. package/lib/classes/base-page.class.d.ts +13 -13
  56. package/lib/classes/color.class.d.ts +17 -17
  57. package/lib/classes/datetime.class.d.ts +63 -63
  58. package/lib/classes/menu.class.d.ts +34 -34
  59. package/lib/classes/navigator.class.d.ts +5 -5
  60. package/lib/classes/popup.class.d.ts +12 -12
  61. package/lib/classes/promise.class.d.ts +7 -7
  62. package/lib/classes/sectionlist.class.d.ts +8 -8
  63. package/lib/classes/select.class.d.ts +7 -7
  64. package/lib/core.module.d.ts +9 -9
  65. package/lib/error/error.class.d.ts +4 -4
  66. package/lib/error/error.module.d.ts +7 -7
  67. package/lib/error/error.service.d.ts +13 -13
  68. package/lib/events/keyboard.d.ts +2 -2
  69. package/lib/http/http-error.class.d.ts +7 -7
  70. package/lib/http/http-events.interceptor.d.ts +10 -10
  71. package/lib/http/http-request.class.d.ts +14 -14
  72. package/lib/http/http-result.class.d.ts +11 -11
  73. package/lib/http/http.module.d.ts +10 -10
  74. package/lib/http/http.service.d.ts +23 -23
  75. package/lib/pipe/datetime.pipe.d.ts +8 -8
  76. package/lib/pipe/htmlToText.pipe.d.ts +7 -7
  77. package/lib/platform/index.d.ts +1 -1
  78. package/lib/platform/platform.service.d.ts +26 -26
  79. package/lib/services/config.d.ts +9 -9
  80. package/lib/services/event.service.d.ts +9 -9
  81. package/lib/services/navigator.service.d.ts +8 -8
  82. package/lib/services/storage.service.d.ts +7 -7
  83. package/lib/translator/translator.d.ts +9 -9
  84. package/lib/translator/translator.module.d.ts +8 -8
  85. package/lib/translator/translator.pipe.d.ts +8 -8
  86. package/lib/translator/translator.service.d.ts +8 -8
  87. package/lib/utils/array/array-util.d.ts +6 -6
  88. package/lib/utils/html/html-util.d.ts +62 -62
  89. package/lib/utils/html/html.module.d.ts +8 -8
  90. package/lib/utils/math/math-util.d.ts +3 -3
  91. package/lib/utils/object/object-util.d.ts +7 -7
  92. package/lib/utils/render/on-demand-preload-strategy.service.d.ts +10 -10
  93. package/lib/utils/render/render.service.d.ts +18 -18
  94. package/lib/utils/render/rendering.module.d.ts +8 -8
  95. package/lib/utils/scroll/scroll.directive.d.ts +18 -18
  96. package/lib/utils/scroll/scroll.module.d.ts +8 -8
  97. package/lib/utils/separator/separator.module.d.ts +8 -8
  98. package/lib/utils/separator/separator.pipe.d.ts +8 -8
  99. package/package.json +2 -2
  100. package/public-api.d.ts +43 -43
@@ -1,13 +1,13 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated Use AXBasePageComponent from @acorex/components
5
- */
6
- export declare abstract class AXBasePageComponent {
7
- onClosed: EventEmitter<any>;
8
- close(data?: any): void;
9
- onClosing(e: any): void | Promise<void>;
10
- ngOnDestroy(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AXBasePageComponent, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AXBasePageComponent>;
13
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * @deprecated Use AXBasePageComponent from @acorex/components
5
+ */
6
+ export declare abstract class AXBasePageComponent {
7
+ onClosed: EventEmitter<any>;
8
+ close(data?: any): void;
9
+ onClosing(e: any): void | Promise<void>;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXBasePageComponent, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXBasePageComponent>;
13
+ }
@@ -1,17 +1,17 @@
1
- export interface AXColor {
2
- id?: string;
3
- color?: string;
4
- code: string;
5
- selected?: boolean;
6
- active?: boolean;
7
- }
8
- export declare class AXColorUtil {
9
- static hex2Rgb(hexColor: string): {
10
- r: number;
11
- g: number;
12
- b: number;
13
- };
14
- static rgb2Hex(r: number, g: number, b: number, a?: number): string;
15
- static illuminance(hexColor: string): number;
16
- static contrastToWhite(hexColor: string): number;
17
- }
1
+ export interface AXColor {
2
+ id?: string;
3
+ color?: string;
4
+ code: string;
5
+ selected?: boolean;
6
+ active?: boolean;
7
+ }
8
+ export declare class AXColorUtil {
9
+ static hex2Rgb(hexColor: string): {
10
+ r: number;
11
+ g: number;
12
+ b: number;
13
+ };
14
+ static rgb2Hex(r: number, g: number, b: number, a?: number): string;
15
+ static illuminance(hexColor: string): number;
16
+ static contrastToWhite(hexColor: string): number;
17
+ }
@@ -1,63 +1,63 @@
1
- export declare type TimeUnit = 'second' | 'minute' | 'minutes' | 'hour' | 'hours' | 'day' | 'days' | 'month' | 'year' | 'week';
2
- export declare type TimeDuration = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'month' | 'years';
3
- export declare type TimeStep = 'Y' | 'M' | 'D' | 'YM' | 'YMD' | 'YMDh' | 'YMDhm' | 'YMDhms' | 'h' | 'm' | 's';
4
- export declare type AXCalendarType = 'jalali' | 'gregorian';
5
- export declare class AXDateTime {
6
- type: AXCalendarType;
7
- static convert(value: any, type?: AXCalendarType): AXDateTime;
8
- private _date;
9
- get date(): Date;
10
- private resolveUnit;
11
- private _moment;
12
- constructor(value?: Date | string, type?: AXCalendarType);
13
- clone(): AXDateTime;
14
- get dayInMonth(): number;
15
- get dayOfYear(): number;
16
- get dayInWeek(): number;
17
- get hour(): number;
18
- get minute(): number;
19
- get second(): number;
20
- get year(): number;
21
- get monthOfYear(): number;
22
- get month(): AXCalendarMonth;
23
- get firstDayOfWeek(): AXDateTime;
24
- get endDayOfWeek(): AXDateTime;
25
- convertStringToJalali(date: string, format: string): string;
26
- convertStringToGregorian(date: string, format: string): Date;
27
- add(unit: TimeUnit, amount: number): AXDateTime;
28
- addDay(amount: number): AXDateTime;
29
- addMonth(amount: number): AXDateTime;
30
- addHour(amount: number): AXDateTime;
31
- set(unit: TimeUnit, value: number): AXDateTime;
32
- duration(end: AXDateTime, unit?: TimeDuration): number;
33
- startOf(unit?: TimeUnit): AXDateTime;
34
- endOf(unit?: TimeUnit): AXDateTime;
35
- format(format?: string): string;
36
- toString(): string;
37
- equal(value: AXDateTime, unit?: TimeUnit): boolean;
38
- convertToJalaliDate(value: any): any;
39
- toJalaliString(value: any): string;
40
- convertToGregorianDate(value: any): any;
41
- toGregorianString(value: any): string;
42
- compaireNew(value: AXDateTime, unit?: TimeStep, type?: string): 1 | -1 | 0;
43
- compaire(value: AXDateTime, unit?: TimeUnit): 1 | -1 | 0;
44
- toISOString(): string;
45
- }
46
- export declare class AXCalendarMonth {
47
- private _moment;
48
- private _range;
49
- get range(): AXDateTimeRange;
50
- set range(v: AXDateTimeRange);
51
- constructor(date: AXDateTime);
52
- private readonly index;
53
- private readonly name;
54
- }
55
- export declare class AXDateTimeRange {
56
- startTime: AXDateTime;
57
- endTime: AXDateTime;
58
- constructor(startTime: AXDateTime, endTime: AXDateTime);
59
- duration(unit?: TimeDuration): number;
60
- enumurate(unit?: TimeUnit, type?: AXCalendarType): AXDateTime[];
61
- includes(value: AXDateTime, unit?: TimeUnit, type?: string): boolean;
62
- getViewCompaire(view: any): "Y" | "YM" | "YMD";
63
- }
1
+ export declare type TimeUnit = 'second' | 'minute' | 'minutes' | 'hour' | 'hours' | 'day' | 'days' | 'month' | 'year' | 'week';
2
+ export declare type TimeDuration = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'month' | 'years';
3
+ export declare type TimeStep = 'Y' | 'M' | 'D' | 'YM' | 'YMD' | 'YMDh' | 'YMDhm' | 'YMDhms' | 'h' | 'm' | 's';
4
+ export declare type AXCalendarType = 'jalali' | 'gregorian';
5
+ export declare class AXDateTime {
6
+ type: AXCalendarType;
7
+ static convert(value: any, type?: AXCalendarType): AXDateTime;
8
+ private _date;
9
+ get date(): Date;
10
+ private resolveUnit;
11
+ private _moment;
12
+ constructor(value?: Date | string, type?: AXCalendarType);
13
+ clone(): AXDateTime;
14
+ get dayInMonth(): number;
15
+ get dayOfYear(): number;
16
+ get dayInWeek(): number;
17
+ get hour(): number;
18
+ get minute(): number;
19
+ get second(): number;
20
+ get year(): number;
21
+ get monthOfYear(): number;
22
+ get month(): AXCalendarMonth;
23
+ get firstDayOfWeek(): AXDateTime;
24
+ get endDayOfWeek(): AXDateTime;
25
+ convertStringToJalali(date: string, format: string): string;
26
+ convertStringToGregorian(date: string, format: string): Date;
27
+ add(unit: TimeUnit, amount: number): AXDateTime;
28
+ addDay(amount: number): AXDateTime;
29
+ addMonth(amount: number): AXDateTime;
30
+ addHour(amount: number): AXDateTime;
31
+ set(unit: TimeUnit, value: number): AXDateTime;
32
+ duration(end: AXDateTime, unit?: TimeDuration): number;
33
+ startOf(unit?: TimeUnit): AXDateTime;
34
+ endOf(unit?: TimeUnit): AXDateTime;
35
+ format(format?: string): string;
36
+ toString(): string;
37
+ equal(value: AXDateTime, unit?: TimeUnit): boolean;
38
+ convertToJalaliDate(value: any): any;
39
+ toJalaliString(value: any): string;
40
+ convertToGregorianDate(value: any): any;
41
+ toGregorianString(value: any): string;
42
+ compaireNew(value: AXDateTime, unit?: TimeStep, type?: string): 1 | -1 | 0;
43
+ compaire(value: AXDateTime, unit?: TimeUnit): 1 | -1 | 0;
44
+ toISOString(): string;
45
+ }
46
+ export declare class AXCalendarMonth {
47
+ private _moment;
48
+ private _range;
49
+ get range(): AXDateTimeRange;
50
+ set range(v: AXDateTimeRange);
51
+ constructor(date: AXDateTime);
52
+ private readonly index;
53
+ private readonly name;
54
+ }
55
+ export declare class AXDateTimeRange {
56
+ startTime: AXDateTime;
57
+ endTime: AXDateTime;
58
+ constructor(startTime: AXDateTime, endTime: AXDateTime);
59
+ duration(unit?: TimeDuration): number;
60
+ enumurate(unit?: TimeUnit, type?: AXCalendarType): AXDateTime[];
61
+ includes(value: AXDateTime, unit?: TimeUnit, type?: string): boolean;
62
+ getViewCompaire(view: any): "Y" | "YM" | "YMD";
63
+ }
@@ -1,34 +1,34 @@
1
- export declare class AXBaseMenuItem {
2
- uid?: string;
3
- id?: string;
4
- name?: string;
5
- text?: string;
6
- tooltip?: string;
7
- tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
8
- icon?: string;
9
- visible?: boolean;
10
- disable?: boolean;
11
- selected?: boolean;
12
- groupName?: string;
13
- data?: any;
14
- style?: string;
15
- orderIndex?: number;
16
- endIcon?: string;
17
- startIcon?: string;
18
- onClick?: (e?: any) => void;
19
- }
20
- export declare class AXMenuItem extends AXBaseMenuItem {
21
- items?: AXMenuItem[];
22
- parentId?: string;
23
- divider?: boolean;
24
- }
25
- export declare class AXButtonItem extends AXBaseMenuItem {
26
- dropdown?: boolean;
27
- submitBehavior?: boolean;
28
- cancelBehavior?: boolean;
29
- }
30
- export declare class AXCheckItem {
31
- text?: string;
32
- value?: any;
33
- selected?: boolean;
34
- }
1
+ export declare class AXBaseMenuItem {
2
+ uid?: string;
3
+ id?: string;
4
+ name?: string;
5
+ text?: string;
6
+ tooltip?: string;
7
+ tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
8
+ icon?: string;
9
+ visible?: boolean;
10
+ disable?: boolean;
11
+ selected?: boolean;
12
+ groupName?: string;
13
+ data?: any;
14
+ style?: string;
15
+ orderIndex?: number;
16
+ endIcon?: string;
17
+ startIcon?: string;
18
+ onClick?: (e?: any) => void;
19
+ }
20
+ export declare class AXMenuItem extends AXBaseMenuItem {
21
+ items?: AXMenuItem[];
22
+ parentId?: string;
23
+ divider?: boolean;
24
+ }
25
+ export declare class AXButtonItem extends AXBaseMenuItem {
26
+ dropdown?: boolean;
27
+ submitBehavior?: boolean;
28
+ cancelBehavior?: boolean;
29
+ }
30
+ export declare class AXCheckItem {
31
+ text?: string;
32
+ value?: any;
33
+ selected?: boolean;
34
+ }
@@ -1,5 +1,5 @@
1
- export interface AXNavigatorParam {
2
- path: string;
3
- title?: string;
4
- data?: any;
5
- }
1
+ export interface AXNavigatorParam {
2
+ path: string;
3
+ title?: string;
4
+ data?: any;
5
+ }
@@ -1,12 +1,12 @@
1
- export interface ClosingEventArgs {
2
- cancel?: boolean;
3
- data?: any;
4
- }
5
- export interface ClosingAction {
6
- cancel?: boolean;
7
- data?: any;
8
- resolve: () => void;
9
- }
10
- export interface ClosedEventArgs {
11
- data?: any;
12
- }
1
+ export interface ClosingEventArgs {
2
+ cancel?: boolean;
3
+ data?: any;
4
+ }
5
+ export interface ClosingAction {
6
+ cancel?: boolean;
7
+ data?: any;
8
+ resolve: () => void;
9
+ }
10
+ export interface ClosedEventArgs {
11
+ data?: any;
12
+ }
@@ -1,7 +1,7 @@
1
- export declare class AXPromise<T> {
2
- private _executor;
3
- private thenAction?;
4
- static resolve<T>(value: T): AXPromise<T>;
5
- constructor(executor: (then?: (e?: T) => void) => void);
6
- then(action?: (e?: T) => void): AXPromise<T>;
7
- }
1
+ export declare class AXPromise<T> {
2
+ private _executor;
3
+ private thenAction?;
4
+ static resolve<T>(value: T): AXPromise<T>;
5
+ constructor(executor: (then?: (e?: T) => void) => void);
6
+ then(action?: (e?: T) => void): AXPromise<T>;
7
+ }
@@ -1,8 +1,8 @@
1
- export interface AXSelectionList {
2
- id?: string;
3
- name?: string;
4
- text: string;
5
- value: boolean;
6
- disable?: boolean;
7
- readonly?: boolean;
8
- }
1
+ export interface AXSelectionList {
2
+ id?: string;
3
+ name?: string;
4
+ text: string;
5
+ value: boolean;
6
+ disable?: boolean;
7
+ readonly?: boolean;
8
+ }
@@ -1,7 +1,7 @@
1
- export declare class AXSelectItem {
2
- id: string;
3
- name?: string;
4
- text: string;
5
- visible?: boolean;
6
- disable?: boolean;
7
- }
1
+ export declare class AXSelectItem {
2
+ id: string;
3
+ name?: string;
4
+ text: string;
5
+ visible?: boolean;
6
+ disable?: boolean;
7
+ }
@@ -1,9 +1,9 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./pipe/datetime.pipe";
3
- import * as i2 from "./utils/scroll/scroll.module";
4
- import * as i3 from "./translator/translator.module";
5
- export declare class AXCoreModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCoreModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCoreModule, [typeof i1.AXDateTimePipe], [typeof i2.AXScrollModule, typeof i3.AXTranslatorModule], [typeof i1.AXDateTimePipe]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCoreModule>;
9
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./pipe/datetime.pipe";
3
+ import * as i2 from "./utils/scroll/scroll.module";
4
+ import * as i3 from "./translator/translator.module";
5
+ export declare class AXCoreModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCoreModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCoreModule, [typeof i1.AXDateTimePipe], [typeof i2.AXScrollModule, typeof i3.AXTranslatorModule], [typeof i1.AXDateTimePipe]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCoreModule>;
9
+ }
@@ -1,4 +1,4 @@
1
- export interface AXError {
2
- message: string;
3
- code: string;
4
- }
1
+ export interface AXError {
2
+ message: string;
3
+ code: string;
4
+ }
@@ -1,7 +1,7 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- export declare class AXErrorModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXErrorModule, never, [typeof i1.CommonModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<AXErrorModule>;
7
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class AXErrorModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXErrorModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXErrorModule>;
7
+ }
@@ -1,13 +1,13 @@
1
- import { InjectionToken, Injector } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare const AX_ERROR_DISPLAY_INTERCEPTOR: InjectionToken<AXErrorDisplayInterceptor>;
4
- export interface AXErrorDisplayInterceptor {
5
- show(message: string): any;
6
- }
7
- export declare class AXErrorService {
8
- private injector;
9
- constructor(injector: Injector);
10
- handle(message: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AXErrorService>;
13
- }
1
+ import { InjectionToken, Injector } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const AX_ERROR_DISPLAY_INTERCEPTOR: InjectionToken<AXErrorDisplayInterceptor>;
4
+ export interface AXErrorDisplayInterceptor {
5
+ show(message: string): any;
6
+ }
7
+ export declare class AXErrorService {
8
+ private injector;
9
+ constructor(injector: Injector);
10
+ handle(message: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXErrorService>;
13
+ }
@@ -1,2 +1,2 @@
1
- export interface AXKeyboardEvent extends KeyboardEvent {
2
- }
1
+ export interface AXKeyboardEvent extends KeyboardEvent {
2
+ }
@@ -1,7 +1,7 @@
1
- export interface IHttpError {
2
- message?: string;
3
- status?: number;
4
- code?: string;
5
- handled: boolean;
6
- error: any | null;
7
- }
1
+ export interface IHttpError {
2
+ message?: string;
3
+ status?: number;
4
+ code?: string;
5
+ handled: boolean;
6
+ error: any | null;
7
+ }
@@ -1,10 +1,10 @@
1
- import { IHttpError } from './http-error.class';
2
- import { InjectionToken } from '@angular/core';
3
- import { AXHttpRequestOptions } from './http-request.class';
4
- export declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
5
- export interface AXHttpEventInterceptor {
6
- begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
7
- success(request: AXHttpRequestOptions, result: any): Promise<any>;
8
- complete(request: AXHttpRequestOptions): any;
9
- error(request: AXHttpRequestOptions, error: IHttpError): any;
10
- }
1
+ import { IHttpError } from './http-error.class';
2
+ import { InjectionToken } from '@angular/core';
3
+ import { AXHttpRequestOptions } from './http-request.class';
4
+ export declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
5
+ export interface AXHttpEventInterceptor {
6
+ begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
7
+ success(request: AXHttpRequestOptions, result: any): Promise<any>;
8
+ complete(request: AXHttpRequestOptions): any;
9
+ error(request: AXHttpRequestOptions, error: IHttpError): any;
10
+ }
@@ -1,14 +1,14 @@
1
- export interface AXHttpRequestOptions {
2
- url?: any;
3
- params?: {
4
- [param: string]: any;
5
- };
6
- body?: {
7
- [param: string]: any;
8
- };
9
- headers?: {
10
- [header: string]: any;
11
- };
12
- method?: 'get' | 'post' | 'put' | 'delete';
13
- responseType?: any;
14
- }
1
+ export interface AXHttpRequestOptions {
2
+ url?: any;
3
+ params?: {
4
+ [param: string]: any;
5
+ };
6
+ body?: {
7
+ [param: string]: any;
8
+ };
9
+ headers?: {
10
+ [header: string]: any;
11
+ };
12
+ method?: 'get' | 'post' | 'put' | 'delete';
13
+ responseType?: any;
14
+ }
@@ -1,11 +1,11 @@
1
- import { IHttpError } from './http-error.class';
2
- export declare class HttpResult<T> {
3
- private _executor;
4
- constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
5
- private resultAction;
6
- private errorAction;
7
- private completeAction;
8
- result(action: (e?: T) => void): HttpResult<T>;
9
- error(action: (e?: IHttpError) => void): HttpResult<T>;
10
- complete(action: () => void): HttpResult<T>;
11
- }
1
+ import { IHttpError } from './http-error.class';
2
+ export declare class HttpResult<T> {
3
+ private _executor;
4
+ constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
5
+ private resultAction;
6
+ private errorAction;
7
+ private completeAction;
8
+ result(action: (e?: T) => void): HttpResult<T>;
9
+ error(action: (e?: IHttpError) => void): HttpResult<T>;
10
+ complete(action: () => void): HttpResult<T>;
11
+ }
@@ -1,10 +1,10 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/common/http";
5
- export declare class AXHttpModule {
6
- static forRoot(): ModuleWithProviders<AXHttpModule>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
10
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@angular/common/http";
5
+ export declare class AXHttpModule {
6
+ static forRoot(): ModuleWithProviders<AXHttpModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
10
+ }
@@ -1,23 +1,23 @@
1
- import { Injector } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { HttpResult } from './http-result.class';
4
- import { AXHttpRequestOptions } from './http-request.class';
5
- import * as i0 from "@angular/core";
6
- export declare class AXHttpService {
7
- private http;
8
- private injector;
9
- private interceptor;
10
- constructor(http: HttpClient, injector: Injector);
11
- get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
12
- post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
13
- delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
14
- put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
15
- request<T>(config: AXHttpRequestOptions): HttpResult<T>;
16
- private handleResult;
17
- private handleBegin;
18
- private handleComplete;
19
- private handleError;
20
- private mapOptions;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
23
- }
1
+ import { Injector } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { HttpResult } from './http-result.class';
4
+ import { AXHttpRequestOptions } from './http-request.class';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AXHttpService {
7
+ private http;
8
+ private injector;
9
+ private interceptor;
10
+ constructor(http: HttpClient, injector: Injector);
11
+ get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
12
+ post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
13
+ delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
14
+ put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
15
+ request<T>(config: AXHttpRequestOptions): HttpResult<T>;
16
+ private handleResult;
17
+ private handleBegin;
18
+ private handleComplete;
19
+ private handleError;
20
+ private mapOptions;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
23
+ }
@@ -1,8 +1,8 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AXDateTimePipe implements PipeTransform {
4
- constructor();
5
- transform(value: any, format?: string): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "dt">;
8
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXDateTimePipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: any, format?: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "dt">;
8
+ }
@@ -1,7 +1,7 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AXHtmlToTextPipe implements PipeTransform {
4
- transform(value: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlToTextPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<AXHtmlToTextPipe, "html2text">;
7
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXHtmlToTextPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlToTextPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXHtmlToTextPipe, "html2text">;
7
+ }
@@ -1 +1 @@
1
- export * from './platform.service';
1
+ export * from './platform.service';