@acorex/core 16.19.59 → 16.20.0

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 (48) hide show
  1. package/fesm2022/acorex-core.mjs +92 -92
  2. package/fesm2022/acorex-core.mjs.map +1 -1
  3. package/index.d.ts +539 -43
  4. package/package.json +1 -1
  5. package/lib/classes/base-page.class.d.ts +0 -13
  6. package/lib/classes/color.class.d.ts +0 -17
  7. package/lib/classes/datetime.class.d.ts +0 -63
  8. package/lib/classes/menu.class.d.ts +0 -34
  9. package/lib/classes/navigator.class.d.ts +0 -5
  10. package/lib/classes/popup.class.d.ts +0 -12
  11. package/lib/classes/promise.class.d.ts +0 -7
  12. package/lib/classes/sectionlist.class.d.ts +0 -8
  13. package/lib/classes/select.class.d.ts +0 -7
  14. package/lib/core.module.d.ts +0 -9
  15. package/lib/error/error.class.d.ts +0 -4
  16. package/lib/error/error.module.d.ts +0 -7
  17. package/lib/error/error.service.d.ts +0 -13
  18. package/lib/events/keyboard.d.ts +0 -2
  19. package/lib/http/http-error.class.d.ts +0 -7
  20. package/lib/http/http-events.interceptor.d.ts +0 -10
  21. package/lib/http/http-request.class.d.ts +0 -14
  22. package/lib/http/http-result.class.d.ts +0 -11
  23. package/lib/http/http.module.d.ts +0 -10
  24. package/lib/http/http.service.d.ts +0 -23
  25. package/lib/pipe/datetime.pipe.d.ts +0 -8
  26. package/lib/pipe/htmlToText.pipe.d.ts +0 -7
  27. package/lib/platform/index.d.ts +0 -1
  28. package/lib/platform/platform.service.d.ts +0 -26
  29. package/lib/services/config.d.ts +0 -9
  30. package/lib/services/event.service.d.ts +0 -9
  31. package/lib/services/navigator.service.d.ts +0 -8
  32. package/lib/services/storage.service.d.ts +0 -7
  33. package/lib/translator/translator.d.ts +0 -9
  34. package/lib/translator/translator.module.d.ts +0 -8
  35. package/lib/translator/translator.pipe.d.ts +0 -8
  36. package/lib/translator/translator.service.d.ts +0 -8
  37. package/lib/utils/array/array-util.d.ts +0 -6
  38. package/lib/utils/html/html-util.d.ts +0 -62
  39. package/lib/utils/html/html.module.d.ts +0 -8
  40. package/lib/utils/math/math-util.d.ts +0 -3
  41. package/lib/utils/object/object-util.d.ts +0 -7
  42. package/lib/utils/render/on-demand-preload-strategy.service.d.ts +0 -10
  43. package/lib/utils/render/render.service.d.ts +0 -18
  44. package/lib/utils/render/rendering.module.d.ts +0 -8
  45. package/lib/utils/scroll/scroll.directive.d.ts +0 -18
  46. package/lib/utils/scroll/scroll.module.d.ts +0 -8
  47. package/lib/utils/separator/separator.module.d.ts +0 -8
  48. package/lib/utils/separator/separator.pipe.d.ts +0 -8
package/index.d.ts CHANGED
@@ -1,43 +1,539 @@
1
- export * from './lib/classes/color.class';
2
- export * from './lib/classes/datetime.class';
3
- export * from './lib/classes/menu.class';
4
- export * from './lib/classes/navigator.class';
5
- export * from './lib/classes/popup.class';
6
- export * from './lib/classes/promise.class';
7
- export * from './lib/classes/sectionlist.class';
8
- export * from './lib/classes/select.class';
9
- export * from './lib/classes/base-page.class';
10
- export * from './lib/error/error.class';
11
- export * from './lib/error/error.module';
12
- export * from './lib/error/error.service';
13
- export * from './lib/events/keyboard';
14
- export * from './lib/http/http-error.class';
15
- export * from './lib/http/http-events.interceptor';
16
- export * from './lib/http/http-request.class';
17
- export * from './lib/http/http-result.class';
18
- export * from './lib/http/http.module';
19
- export * from './lib/http/http.service';
20
- export * from './lib/platform/index';
21
- export * from './lib/pipe/datetime.pipe';
22
- export * from './lib/pipe/htmlToText.pipe';
23
- export * from './lib/services/event.service';
24
- export * from './lib/services/navigator.service';
25
- export * from './lib/services/storage.service';
26
- export * from './lib/services/config';
27
- export * from './lib/translator/translator.service';
28
- export * from './lib/translator/translator.pipe';
29
- export * from './lib/translator/translator';
30
- export * from './lib/translator/translator.module';
31
- export * from './lib/utils/array/array-util';
32
- export * from './lib/utils/html/html-util';
33
- export * from './lib/utils/html/html.module';
34
- export * from './lib/utils/math/math-util';
35
- export * from './lib/utils/object/object-util';
36
- export * from './lib/utils/render/render.service';
37
- export * from './lib/utils/render/on-demand-preload-strategy.service';
38
- export * from './lib/utils/render/rendering.module';
39
- export * from './lib/utils/scroll/scroll.directive';
40
- export * from './lib/utils/scroll/scroll.module';
41
- export * from './lib/utils/separator/separator.module';
42
- export * from './lib/utils/separator/separator.pipe';
43
- export * from './lib/core.module';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, InjectionToken, Injector, ModuleWithProviders, PipeTransform, ApplicationRef, ComponentFactoryResolver, Compiler, Type, ComponentRef, ElementRef } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import * as i2$1 from '@angular/common/http';
5
+ import { HttpClient } from '@angular/common/http';
6
+ import { Subject, Observable } from 'rxjs';
7
+ import { Router, Route } from '@angular/router';
8
+
9
+ interface AXColor {
10
+ id?: string;
11
+ color?: string;
12
+ code: string;
13
+ selected?: boolean;
14
+ active?: boolean;
15
+ }
16
+ declare class AXColorUtil {
17
+ static hex2Rgb(hexColor: string): {
18
+ r: number;
19
+ g: number;
20
+ b: number;
21
+ };
22
+ static rgb2Hex(r: number, g: number, b: number, a?: number): string;
23
+ static illuminance(hexColor: string): number;
24
+ static contrastToWhite(hexColor: string): number;
25
+ }
26
+
27
+ type TimeUnit = 'second' | 'minute' | 'minutes' | 'hour' | 'hours' | 'day' | 'days' | 'month' | 'year' | 'week';
28
+ type TimeDuration = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'month' | 'years';
29
+ type TimeStep = 'Y' | 'M' | 'D' | 'YM' | 'YMD' | 'YMDh' | 'YMDhm' | 'YMDhms' | 'h' | 'm' | 's';
30
+ type AXCalendarType = 'jalali' | 'gregorian';
31
+ declare class AXDateTime {
32
+ type: AXCalendarType;
33
+ static convert(value: any, type?: AXCalendarType): AXDateTime;
34
+ private _date;
35
+ get date(): Date;
36
+ private resolveUnit;
37
+ private _moment;
38
+ constructor(value?: Date | string, type?: AXCalendarType);
39
+ clone(): AXDateTime;
40
+ get dayInMonth(): number;
41
+ get dayOfYear(): number;
42
+ get dayInWeek(): number;
43
+ get hour(): number;
44
+ get minute(): number;
45
+ get second(): number;
46
+ get year(): number;
47
+ get monthOfYear(): number;
48
+ get month(): AXCalendarMonth;
49
+ get firstDayOfWeek(): AXDateTime;
50
+ get endDayOfWeek(): AXDateTime;
51
+ convertStringToJalali(date: string, format: string): string;
52
+ convertStringToGregorian(date: string, format: string): Date;
53
+ add(unit: TimeUnit, amount: number): AXDateTime;
54
+ addDay(amount: number): AXDateTime;
55
+ addMonth(amount: number): AXDateTime;
56
+ addHour(amount: number): AXDateTime;
57
+ set(unit: TimeUnit, value: number): AXDateTime;
58
+ duration(end: AXDateTime, unit?: TimeDuration): number;
59
+ startOf(unit?: TimeUnit): AXDateTime;
60
+ endOf(unit?: TimeUnit): AXDateTime;
61
+ format(format?: string): string;
62
+ toString(): string;
63
+ equal(value: AXDateTime, unit?: TimeUnit): boolean;
64
+ convertToJalaliDate(value: any): any;
65
+ toJalaliString(value: any): string;
66
+ convertToGregorianDate(value: any): any;
67
+ toGregorianString(value: any): string;
68
+ compaireNew(value: AXDateTime, unit?: TimeStep, type?: string): 1 | -1 | 0;
69
+ compaire(value: AXDateTime, unit?: TimeUnit): 1 | -1 | 0;
70
+ toISOString(): string;
71
+ }
72
+ declare class AXCalendarMonth {
73
+ private _moment;
74
+ private _range;
75
+ get range(): AXDateTimeRange;
76
+ set range(v: AXDateTimeRange);
77
+ constructor(date: AXDateTime);
78
+ private readonly index;
79
+ private readonly name;
80
+ }
81
+ declare class AXDateTimeRange {
82
+ startTime: AXDateTime;
83
+ endTime: AXDateTime;
84
+ constructor(startTime: AXDateTime, endTime: AXDateTime);
85
+ duration(unit?: TimeDuration): number;
86
+ enumurate(unit?: TimeUnit, type?: AXCalendarType): AXDateTime[];
87
+ includes(value: AXDateTime, unit?: TimeUnit, type?: string): boolean;
88
+ getViewCompaire(view: any): "Y" | "YM" | "YMD";
89
+ }
90
+
91
+ declare class AXBaseMenuItem {
92
+ uid?: string;
93
+ id?: string;
94
+ name?: string;
95
+ text?: string;
96
+ tooltip?: string;
97
+ tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
98
+ icon?: string;
99
+ visible?: boolean;
100
+ disable?: boolean;
101
+ selected?: boolean;
102
+ groupName?: string;
103
+ data?: any;
104
+ style?: string;
105
+ orderIndex?: number;
106
+ endIcon?: string;
107
+ startIcon?: string;
108
+ onClick?: (e?: any) => void;
109
+ }
110
+ declare class AXMenuItem extends AXBaseMenuItem {
111
+ items?: AXMenuItem[];
112
+ parentId?: string;
113
+ divider?: boolean;
114
+ }
115
+ declare class AXButtonItem extends AXBaseMenuItem {
116
+ dropdown?: boolean;
117
+ submitBehavior?: boolean;
118
+ cancelBehavior?: boolean;
119
+ }
120
+ declare class AXCheckItem {
121
+ text?: string;
122
+ value?: any;
123
+ selected?: boolean;
124
+ }
125
+
126
+ interface AXNavigatorParam {
127
+ path: string;
128
+ title?: string;
129
+ data?: any;
130
+ }
131
+
132
+ interface ClosingEventArgs {
133
+ cancel?: boolean;
134
+ data?: any;
135
+ }
136
+ interface ClosingAction {
137
+ cancel?: boolean;
138
+ data?: any;
139
+ resolve: () => void;
140
+ }
141
+ interface ClosedEventArgs {
142
+ data?: any;
143
+ }
144
+
145
+ declare class AXPromise<T> {
146
+ private _executor;
147
+ private thenAction?;
148
+ static resolve<T>(value: T): AXPromise<T>;
149
+ constructor(executor: (then?: (e?: T) => void) => void);
150
+ then(action?: (e?: T) => void): AXPromise<T>;
151
+ }
152
+
153
+ interface AXSelectionList {
154
+ id?: string;
155
+ name?: string;
156
+ text: string;
157
+ value: boolean;
158
+ disable?: boolean;
159
+ readonly?: boolean;
160
+ }
161
+
162
+ declare class AXSelectItem {
163
+ id: string;
164
+ name?: string;
165
+ text: string;
166
+ visible?: boolean;
167
+ disable?: boolean;
168
+ }
169
+
170
+ /**
171
+ * @deprecated Use AXBasePageComponent from @acorex/components
172
+ */
173
+ declare abstract class AXBasePageComponent {
174
+ onClosed: EventEmitter<any>;
175
+ close(data?: any): void;
176
+ onClosing(e: any): void | Promise<void>;
177
+ ngOnDestroy(): void;
178
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXBasePageComponent, never>;
179
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXBasePageComponent>;
180
+ }
181
+
182
+ interface AXError {
183
+ message: string;
184
+ code: string;
185
+ }
186
+
187
+ declare class AXErrorModule {
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorModule, never>;
189
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXErrorModule, never, [typeof i2.CommonModule], never>;
190
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXErrorModule>;
191
+ }
192
+
193
+ declare const AX_ERROR_DISPLAY_INTERCEPTOR: InjectionToken<AXErrorDisplayInterceptor>;
194
+ interface AXErrorDisplayInterceptor {
195
+ show(message: string): any;
196
+ }
197
+ declare class AXErrorService {
198
+ private injector;
199
+ constructor(injector: Injector);
200
+ handle(message: string): void;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXErrorService, never>;
202
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXErrorService>;
203
+ }
204
+
205
+ interface AXKeyboardEvent extends KeyboardEvent {
206
+ }
207
+
208
+ interface IHttpError {
209
+ message?: string;
210
+ status?: number;
211
+ code?: string;
212
+ handled: boolean;
213
+ error: any | null;
214
+ }
215
+
216
+ interface AXHttpRequestOptions {
217
+ url?: any;
218
+ params?: {
219
+ [param: string]: any;
220
+ };
221
+ body?: {
222
+ [param: string]: any;
223
+ };
224
+ headers?: {
225
+ [header: string]: any;
226
+ };
227
+ method?: 'get' | 'post' | 'put' | 'delete';
228
+ responseType?: any;
229
+ }
230
+
231
+ declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
232
+ interface AXHttpEventInterceptor {
233
+ begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
234
+ success(request: AXHttpRequestOptions, result: any): Promise<any>;
235
+ complete(request: AXHttpRequestOptions): any;
236
+ error(request: AXHttpRequestOptions, error: IHttpError): any;
237
+ }
238
+
239
+ declare class HttpResult<T> {
240
+ private _executor;
241
+ constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
242
+ private resultAction;
243
+ private errorAction;
244
+ private completeAction;
245
+ result(action: (e?: T) => void): HttpResult<T>;
246
+ error(action: (e?: IHttpError) => void): HttpResult<T>;
247
+ complete(action: () => void): HttpResult<T>;
248
+ }
249
+
250
+ declare class AXHttpModule {
251
+ static forRoot(): ModuleWithProviders<AXHttpModule>;
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
253
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i2.CommonModule, typeof i2$1.HttpClientModule], [typeof i2$1.HttpClientModule]>;
254
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
255
+ }
256
+
257
+ declare class AXHttpService {
258
+ private http;
259
+ private injector;
260
+ private interceptor;
261
+ constructor(http: HttpClient, injector: Injector);
262
+ get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
263
+ post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
264
+ delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
265
+ put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
266
+ request<T>(config: AXHttpRequestOptions): HttpResult<T>;
267
+ private handleResult;
268
+ private handleBegin;
269
+ private handleComplete;
270
+ private handleError;
271
+ private mapOptions;
272
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
273
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
274
+ }
275
+
276
+ type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile' | '';
277
+ type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
278
+ type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
279
+ type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
280
+ declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
281
+ declare class AXPlatformEvent {
282
+ nativeEvent: UIEvent | Event;
283
+ source: AXPlatform;
284
+ }
285
+ declare class AXPlatform {
286
+ resize: Subject<AXPlatformEvent>;
287
+ click: Subject<AXPlatformEvent>;
288
+ scroll: Subject<AXPlatformEvent>;
289
+ isRtl(): boolean;
290
+ isLandscape(): boolean;
291
+ isPortrate(): boolean;
292
+ is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
293
+ switchDarkMode(): void;
294
+ switchLightMode(): void;
295
+ private _setFullHeightRatio;
296
+ constructor();
297
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
298
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
299
+ }
300
+
301
+ declare class AXDateTimePipe implements PipeTransform {
302
+ constructor();
303
+ transform(value: any, format?: string): string;
304
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
305
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "dt", false>;
306
+ }
307
+
308
+ declare class AXHtmlToTextPipe implements PipeTransform {
309
+ transform(value: string): string;
310
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlToTextPipe, never>;
311
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXHtmlToTextPipe, "html2text", false>;
312
+ }
313
+
314
+ declare class AXEventService {
315
+ private list;
316
+ broadcast(key: string, options?: any): void;
317
+ on(key: string, callback: (options?: any) => void): void;
318
+ destroy(key: string, callback: (options?: any) => void): void;
319
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
320
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
321
+ }
322
+
323
+ declare abstract class AXNavigator {
324
+ abstract navigate(params: AXNavigatorParam): any;
325
+ abstract popup(params: AXNavigatorParam): any;
326
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXNavigator, never>;
327
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXNavigator>;
328
+ }
329
+
330
+ declare class AXStorageService {
331
+ get(key: string): any;
332
+ set(key: string, value: any): void;
333
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXStorageService, never>;
334
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXStorageService>;
335
+ }
336
+
337
+ declare class AXConfig {
338
+ private static dataModel;
339
+ private static dataChangeSubject;
340
+ static get onChange(): Observable<any>;
341
+ static set(config: any): any;
342
+ static set(path: string, value?: any): void;
343
+ static get(path: string): any;
344
+ }
345
+
346
+ declare class AXTranslatorService {
347
+ load(lang: string, value: any): void;
348
+ use(lang: string): void;
349
+ get(key: string, lang?: string): string;
350
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorService, never>;
351
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXTranslatorService>;
352
+ }
353
+
354
+ declare class AXTranslatorPipe implements PipeTransform {
355
+ constructor();
356
+ transform(value: string, lang?: string): string;
357
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
358
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans", false>;
359
+ }
360
+
361
+ declare class AXTranslator {
362
+ private static lang;
363
+ private static dataChangeSubject;
364
+ static get onChange(): Observable<any>;
365
+ static load(lang: string, value: any): void;
366
+ static use(lang: string): void;
367
+ static get(key: string, lang?: string): string;
368
+ }
369
+
370
+ declare class AXTranslatorModule {
371
+ constructor();
372
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorModule, never>;
373
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslatorModule, [typeof AXTranslatorPipe], never, [typeof AXTranslatorPipe]>;
374
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslatorModule>;
375
+ }
376
+
377
+ declare class AXArrayUtil {
378
+ static pickRandom(array: any[]): any;
379
+ static insert(array: any[], index: any, ...rest: any[]): any[];
380
+ static range(min: number, max: number): number[];
381
+ static filter(array: any[], filters: any[]): any[];
382
+ }
383
+
384
+ type AXPlacement = 'top-start' | 'top-middle' | 'top-end' | 'center-start' | 'center-end' | 'bottom-start' | 'bottom-middle' | 'bottom-end';
385
+ interface AXIPoint {
386
+ x: number;
387
+ y: number;
388
+ }
389
+ interface AXConnectedPosition {
390
+ originX: 'start' | 'center' | 'end';
391
+ originY: 'top' | 'center' | 'bottom';
392
+ overlayX: 'start' | 'center' | 'end';
393
+ overlayY: 'top' | 'center' | 'bottom';
394
+ weight?: number;
395
+ offsetX?: number;
396
+ offsetY?: number;
397
+ }
398
+ declare class AXPoint implements AXIPoint {
399
+ x: number;
400
+ y: number;
401
+ constructor(x: number, y: number);
402
+ }
403
+ interface AXClientRecCtor {
404
+ left?: number;
405
+ top?: number;
406
+ width?: number;
407
+ height?: number;
408
+ bottom?: number;
409
+ right?: number;
410
+ }
411
+ declare class AXClientRec implements AXClientRecCtor {
412
+ private _left;
413
+ get left(): number;
414
+ set left(v: number);
415
+ private _top;
416
+ get top(): number;
417
+ set top(v: number);
418
+ private _right;
419
+ get right(): number;
420
+ set right(v: number);
421
+ private _bottom;
422
+ get bottom(): number;
423
+ set bottom(v: number);
424
+ private _width;
425
+ get width(): number;
426
+ set width(v: number);
427
+ private _height;
428
+ get height(): number;
429
+ set height(v: number);
430
+ constructor(rec: AXClientRecCtor);
431
+ intersect(rec: AXClientRecCtor): boolean;
432
+ }
433
+ declare class AXHtmlUtil {
434
+ static getBoundingRectPoint(el: HTMLElement, placement: AXPlacement): AXPoint;
435
+ static isInRecPoint(pos: AXIPoint, rec: AXClientRecCtor): boolean;
436
+ static isInElementBound(pos: AXIPoint, element: HTMLElement): boolean;
437
+ static getDimensions(): {
438
+ width: number;
439
+ height: number;
440
+ };
441
+ static getOffsetRight(elem: HTMLElement): number;
442
+ static getUID(): string;
443
+ static getRelatedPosition(source: HTMLElement, placement: AXPlacement, target: HTMLElement, alignment: AXPlacement): AXIPoint;
444
+ static collision(a: HTMLElement, b: HTMLElement): boolean;
445
+ }
446
+
447
+ declare class AXHtmlModule {
448
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlModule, never>;
449
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHtmlModule, [typeof AXHtmlToTextPipe], [typeof i2.CommonModule], [typeof AXHtmlToTextPipe]>;
450
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHtmlModule>;
451
+ }
452
+
453
+ declare class AXMathUtil {
454
+ static randomRange(min: number, max: number): number;
455
+ }
456
+
457
+ declare class AXObjectUtil {
458
+ static deepJSONClone(obj: any): any;
459
+ static deepCopy(obj: any): any;
460
+ }
461
+ declare function AXFetchProp(obj: any, prop: string): any;
462
+ declare function getPropByPath(obj: any, path: any, defaultVal?: any): any;
463
+ declare function setPropByPath(obj: any, path: any, value: any): any;
464
+
465
+ declare class AXOnDemandPreloadService {
466
+ subject: Subject<string>;
467
+ tmp: string;
468
+ constructor();
469
+ startPreload(routePath: string): void;
470
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXOnDemandPreloadService, never>;
471
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXOnDemandPreloadService>;
472
+ }
473
+
474
+ declare class AXRenderService {
475
+ private appRef;
476
+ private router;
477
+ private componentFactoryResolver;
478
+ private compiler;
479
+ private modulePreloadService;
480
+ private injector;
481
+ constructor(appRef: ApplicationRef, router: Router, componentFactoryResolver: ComponentFactoryResolver, compiler: Compiler, modulePreloadService: AXOnDemandPreloadService, injector: Injector);
482
+ appendComponent<T>(componentClass: Type<T>, options?: any, location?: Element): ComponentRef<any>;
483
+ findLoadedComponentByRoute(path: string, timeoutTime?: number): Promise<Route>;
484
+ private _findLoadedComponentByRoute;
485
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXRenderService, never>;
486
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXRenderService>;
487
+ }
488
+
489
+ declare function getOnDemandPreloadServiceFactory(): AXOnDemandPreloadService;
490
+ declare class AXRenderingModule {
491
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXRenderingModule, never>;
492
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXRenderingModule, never, never, never>;
493
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXRenderingModule>;
494
+ }
495
+
496
+ declare class AXHorizontalScrollDirective {
497
+ private el;
498
+ constructor(el: ElementRef<HTMLElement>);
499
+ scrollValue: number;
500
+ onMouseWheel(e: any): void;
501
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHorizontalScrollDirective, never>;
502
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXHorizontalScrollDirective, "[horizontalScroll]", never, { "scrollValue": { "alias": "horizontalScroll"; "required": false; }; }, {}, never, never, false, never>;
503
+ }
504
+ declare class AXVerticalScrollDirective {
505
+ private el;
506
+ constructor(el: ElementRef<HTMLElement>);
507
+ scrollValue: number;
508
+ onMouseWheel(e: any): void;
509
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXVerticalScrollDirective, never>;
510
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXVerticalScrollDirective, "[verticalScroll]", never, { "scrollValue": { "alias": "verticalScroll"; "required": false; }; }, {}, never, never, false, never>;
511
+ }
512
+
513
+ declare class AXScrollModule {
514
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXScrollModule, never>;
515
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXScrollModule, [typeof AXHorizontalScrollDirective, typeof AXVerticalScrollDirective], [typeof i2.CommonModule], [typeof AXHorizontalScrollDirective, typeof AXVerticalScrollDirective]>;
516
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXScrollModule>;
517
+ }
518
+
519
+ declare class AXSeparatorPipe implements PipeTransform {
520
+ transform(value: number | string, currency?: string, decimal?: number, locale?: string): string;
521
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXSeparatorPipe, never>;
522
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXSeparatorPipe, "separator", false>;
523
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXSeparatorPipe>;
524
+ }
525
+
526
+ declare class AXSeparatorModule {
527
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXSeparatorModule, never>;
528
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXSeparatorModule, [typeof AXSeparatorPipe], [typeof i2.CommonModule], [typeof AXSeparatorPipe]>;
529
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXSeparatorModule>;
530
+ }
531
+
532
+ declare class AXCoreModule {
533
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCoreModule, never>;
534
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCoreModule, [typeof AXDateTimePipe], [typeof AXScrollModule, typeof AXTranslatorModule], [typeof AXDateTimePipe]>;
535
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCoreModule>;
536
+ }
537
+
538
+ export { AXArrayUtil, AXBaseMenuItem, AXBasePageComponent, AXButtonItem, AXCalendarMonth, AXCheckItem, AXClientRec, AXColorUtil, AXConfig, AXCoreModule, AXDateTime, AXDateTimePipe, AXDateTimeRange, AXErrorModule, AXErrorService, AXEventService, AXFetchProp, AXHorizontalScrollDirective, AXHtmlModule, AXHtmlToTextPipe, AXHtmlUtil, AXHttpModule, AXHttpService, AXMathUtil, AXMenuItem, AXNavigator, AXObjectUtil, AXOnDemandPreloadService, AXPlatform, AXPlatformEvent, AXPoint, AXPromise, AXRenderService, AXRenderingModule, AXScrollModule, AXSelectItem, AXSeparatorModule, AXSeparatorPipe, AXStorageService, AXTranslator, AXTranslatorModule, AXTranslatorPipe, AXTranslatorService, AXVerticalScrollDirective, AX_ERROR_DISPLAY_INTERCEPTOR, AX_HTTP_EVENT_INTERCEPTOR, HttpResult, getOnDemandPreloadServiceFactory, getPropByPath, setPropByPath, testUserAgent };
539
+ export type { AXBrowsers, AXCalendarType, AXClientRecCtor, AXColor, AXConnectedPosition, AXError, AXErrorDisplayInterceptor, AXHttpEventInterceptor, AXHttpRequestOptions, AXIPoint, AXKeyboardEvent, AXNavigatorParam, AXPlacement, AXPlatforms, AXScreenSizes, AXSelectionList, AXTechnologies, ClosedEventArgs, ClosingAction, ClosingEventArgs, IHttpError, TimeDuration, TimeStep, TimeUnit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/core",
3
- "version": "16.19.59",
3
+ "version": "16.20.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.5",
6
6
  "@angular/core": "^19.0.5",
@@ -1,13 +0,0 @@
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 +0,0 @@
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
- }