@webilix/ngx-helper-m3 0.0.25 → 0.0.29

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 (55) hide show
  1. package/fesm2022/webilix-ngx-helper-m3.mjs +117 -117
  2. package/fesm2022/webilix-ngx-helper-m3.mjs.map +1 -1
  3. package/index.d.ts +795 -5
  4. package/package.json +6 -6
  5. package/lib/components/box/ngx-helper-box.component.d.ts +0 -17
  6. package/lib/components/box/ngx-helper-box.interface.d.ts +0 -2
  7. package/lib/components/card/ngx-helper-card.component.d.ts +0 -55
  8. package/lib/components/card/ngx-helper-card.interface.d.ts +0 -25
  9. package/lib/components/component.service.d.ts +0 -33
  10. package/lib/components/loader/ngx-helper-loader.component.d.ts +0 -16
  11. package/lib/components/page-group/ngx-helper-page-group.component.d.ts +0 -33
  12. package/lib/components/page-group/ngx-helper-page-group.interface.d.ts +0 -25
  13. package/lib/components/progress/ngx-helper-progress.component.d.ts +0 -20
  14. package/lib/components/section/column/ngx-helper-section-column.component.d.ts +0 -26
  15. package/lib/components/section/ngx-helper-section.component.d.ts +0 -17
  16. package/lib/components/value/box/ngx-helper-value-box.component.d.ts +0 -35
  17. package/lib/components/value/list/ngx-helper-value-list.component.d.ts +0 -22
  18. package/lib/components/value/ngx-helper-value.interface.d.ts +0 -77
  19. package/lib/components/value/ngx-helper-value.pipe.d.ts +0 -10
  20. package/lib/confirm/bottom-sheet/confirm-bottom-sheet.component.d.ts +0 -12
  21. package/lib/confirm/confirm.interface.d.ts +0 -11
  22. package/lib/confirm/confirm.service.d.ts +0 -44
  23. package/lib/confirm/dialog/confirm-dialog.component.d.ts +0 -8
  24. package/lib/container/bottom-sheet/container-bottom-sheet.component.d.ts +0 -20
  25. package/lib/container/container.interface.d.ts +0 -10
  26. package/lib/container/container.service.d.ts +0 -36
  27. package/lib/container/dialog/container-dialog.component.d.ts +0 -20
  28. package/lib/coordinates/get/get.component.d.ts +0 -20
  29. package/lib/coordinates/ngx-helper-coordinates.interface.d.ts +0 -10
  30. package/lib/coordinates/ngx-helper-coordinates.service.d.ts +0 -16
  31. package/lib/coordinates/show/show.component.d.ts +0 -16
  32. package/lib/directives/ngx-helper-mobile-view.directive.d.ts +0 -15
  33. package/lib/directives/ngx-helper-sticky.directive.d.ts +0 -19
  34. package/lib/http/download/download.component.d.ts +0 -25
  35. package/lib/http/ngx-helper-http.interface.d.ts +0 -15
  36. package/lib/http/ngx-helper-http.service.d.ts +0 -27
  37. package/lib/http/upload/upload.component.d.ts +0 -21
  38. package/lib/ngx-helper.config.d.ts +0 -22
  39. package/lib/pipe.types.d.ts +0 -2
  40. package/lib/pipes/bank-card.pipe.d.ts +0 -10
  41. package/lib/pipes/date.pipe.d.ts +0 -15
  42. package/lib/pipes/duration.pipe.d.ts +0 -34
  43. package/lib/pipes/file-size.pipe.d.ts +0 -9
  44. package/lib/pipes/mobile.pipe.d.ts +0 -9
  45. package/lib/pipes/multi-line.pipe.d.ts +0 -12
  46. package/lib/pipes/number.pipe.d.ts +0 -10
  47. package/lib/pipes/period.pipe.d.ts +0 -25
  48. package/lib/pipes/price.pipe.d.ts +0 -11
  49. package/lib/pipes/safe.pipe.d.ts +0 -14
  50. package/lib/pipes/volume.pipe.d.ts +0 -10
  51. package/lib/pipes/weight.pipe.d.ts +0 -10
  52. package/lib/toast/ngx-helper-toast.interface.d.ts +0 -4
  53. package/lib/toast/ngx-helper-toast.service.d.ts +0 -41
  54. package/lib/toast/toast/toast.component.d.ts +0 -35
  55. package/public-api.d.ts +0 -39
package/index.d.ts CHANGED
@@ -1,5 +1,795 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@webilix/ngx-helper-m3" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, OnInit, OnChanges, Injector, SimpleChanges, EventEmitter, PipeTransform, ApplicationRef, ElementRef, RendererFactory2 } from '@angular/core';
3
+ import { ComponentType } from '@angular/cdk/portal';
4
+ import { ActivatedRoute, Router } from '@angular/router';
5
+ import { MatBottomSheet, MatBottomSheetConfig } from '@angular/material/bottom-sheet';
6
+ import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
7
+ import { HttpStatusCode } from '@angular/common/http';
8
+ import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
9
+
10
+ interface INgxHelperConfig {
11
+ readonly mobileWidth: number;
12
+ readonly pageGroupSidebarWidth: string;
13
+ readonly toastTimeout: number;
14
+ readonly toastXPosition: 'LEFT' | 'CENTER' | 'RIGHT';
15
+ readonly toastAllowDuplicates: boolean;
16
+ readonly toastResetDuplicates: boolean;
17
+ readonly toastProgressAnimation: 'DECREASE' | 'INCREASE';
18
+ readonly stickyView: {
19
+ readonly top?: string | {
20
+ readonly desktopView: string;
21
+ readonly mobileView: string;
22
+ };
23
+ readonly bottom?: string | {
24
+ readonly desktopView: string;
25
+ readonly mobileView: string;
26
+ };
27
+ };
28
+ }
29
+ declare const NGX_HELPER_CONFIG: InjectionToken<Partial<INgxHelperConfig>>;
30
+ declare const provideNgxHelperConfig: (config: Partial<INgxHelperConfig>) => EnvironmentProviders;
31
+
32
+ declare class NgxHelperBoxComponent implements OnInit, OnChanges {
33
+ private className;
34
+ private paddingCSS;
35
+ component?: ComponentType<any>;
36
+ data?: any;
37
+ padding: string;
38
+ hideShadow: boolean;
39
+ injector: Injector;
40
+ ngOnInit(): void;
41
+ ngOnChanges(changes: SimpleChanges): void;
42
+ setInjector(): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperBoxComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperBoxComponent, "ngx-helper-box", never, { "component": { "alias": "component"; "required": false; }; "data": { "alias": "data"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "hideShadow": { "alias": "hideShadow"; "required": false; }; }, {}, never, ["*"], true, never>;
45
+ }
46
+
47
+ declare const NGX_HELPER_BOX_DATA: InjectionToken<any>;
48
+
49
+ type DateFormats = string | 'FULL' | 'SHORT' | 'DATE' | 'TIME' | 'WEEK' | 'MONTH' | 'YEAR';
50
+ type DurationFormats = 'TEXT' | 'FULL' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
51
+
52
+ type NgxHelperValue = {
53
+ type: 'BANK-CARD';
54
+ value?: string;
55
+ view?: 'CARD' | 'BANK';
56
+ join?: string;
57
+ english?: boolean;
58
+ } | {
59
+ type: 'DATE';
60
+ value?: Date | number;
61
+ format?: DateFormats;
62
+ timezone?: string;
63
+ } | {
64
+ type: 'DURATION';
65
+ value?: number | Date | {
66
+ from: Date;
67
+ } | {
68
+ to: Date;
69
+ } | {
70
+ from: Date;
71
+ to: Date;
72
+ };
73
+ format?: DurationFormats;
74
+ english?: boolean;
75
+ } | {
76
+ type: 'FILE-SIZE';
77
+ value?: number;
78
+ english?: boolean;
79
+ } | {
80
+ type: 'MOBILE';
81
+ value?: string;
82
+ join?: string;
83
+ english?: boolean;
84
+ } | {
85
+ type: 'NUMBER';
86
+ value?: number;
87
+ fractionDigits?: number;
88
+ english?: boolean;
89
+ } | {
90
+ type: 'PERIOD';
91
+ value?: Date | {
92
+ from: Date;
93
+ } | {
94
+ to: Date;
95
+ } | {
96
+ from: Date;
97
+ to: Date;
98
+ };
99
+ timezone?: string;
100
+ } | {
101
+ type: 'PRICE';
102
+ value?: number;
103
+ currency?: string;
104
+ short?: boolean;
105
+ english?: boolean;
106
+ } | {
107
+ type: 'STRING';
108
+ value?: string;
109
+ english?: boolean;
110
+ } | {
111
+ type: 'VOLUME';
112
+ value?: number;
113
+ short?: boolean;
114
+ english?: boolean;
115
+ } | {
116
+ type: 'WEIGHT';
117
+ value?: number;
118
+ short?: boolean;
119
+ english?: boolean;
120
+ };
121
+ interface INgxHelperValue {
122
+ readonly title: string;
123
+ readonly value?: string | NgxHelperValue;
124
+ readonly color?: string;
125
+ readonly action?: () => string[] | void;
126
+ readonly copyToClipboard?: boolean;
127
+ }
128
+
129
+ interface IComponentConfig {
130
+ readonly mobileWidth: number;
131
+ readonly pageGroupSidebarWidth: string;
132
+ readonly stickyView?: {
133
+ readonly top?: {
134
+ readonly desktopView: string;
135
+ readonly mobileView: string;
136
+ };
137
+ readonly bottom?: {
138
+ readonly desktopView: string;
139
+ readonly mobileView: string;
140
+ };
141
+ };
142
+ }
143
+ interface IValueComponentData {
144
+ readonly title: string;
145
+ readonly value: string;
146
+ readonly color?: string;
147
+ readonly action?: () => string[] | void;
148
+ readonly copyToClipboard?: boolean;
149
+ readonly ltr?: boolean;
150
+ readonly english?: boolean;
151
+ }
152
+ declare class ComponentService {
153
+ getComponentConfig(config?: Partial<INgxHelperConfig>): IComponentConfig;
154
+ private isRTL;
155
+ getValueData(values: INgxHelperValue[]): IValueComponentData[];
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<ComponentService>;
158
+ }
159
+
160
+ interface ICardButton {
161
+ readonly title: string;
162
+ readonly icon: string;
163
+ readonly action: () => void;
164
+ readonly color?: string;
165
+ readonly showIcon?: boolean;
166
+ }
167
+ interface ICardMenu {
168
+ readonly title: string;
169
+ readonly icon: string;
170
+ readonly color?: string;
171
+ readonly showIcon?: boolean;
172
+ readonly buttons: ('DIVIDER' | ICardButton)[];
173
+ }
174
+ type NgxHelperCardAction = ICardButton | ICardMenu;
175
+ interface INgxHelperCardOption {
176
+ readonly id?: string;
177
+ readonly icon: string;
178
+ readonly items: ('DIVIDER' | {
179
+ readonly id: string;
180
+ readonly title: string;
181
+ })[];
182
+ readonly action: (id: string) => void;
183
+ }
184
+
185
+ type Button = {
186
+ type: 'BUTTON';
187
+ title: string;
188
+ icon: string;
189
+ action: () => void;
190
+ color?: string;
191
+ showIcon?: boolean;
192
+ } | {
193
+ type: 'MENU';
194
+ title: string;
195
+ icon: string;
196
+ color?: string;
197
+ showIcon?: boolean;
198
+ buttons: ('DIVIDER' | {
199
+ title: string;
200
+ icon: string;
201
+ action: () => void;
202
+ color?: string;
203
+ })[];
204
+ };
205
+ declare class NgxHelperCardComponent implements OnInit, OnChanges {
206
+ private readonly componentService;
207
+ private readonly config?;
208
+ private className;
209
+ title: string;
210
+ subTitle?: string;
211
+ icon?: string;
212
+ actions: NgxHelperCardAction[];
213
+ option?: INgxHelperCardOption;
214
+ padding: string;
215
+ backgroundColor?: string;
216
+ hasShadow: boolean;
217
+ isMobile: boolean;
218
+ buttons: Button[];
219
+ private componentConfig;
220
+ optionId?: string;
221
+ optionTitle?: string;
222
+ optionItems: ('DIVIDER' | {
223
+ readonly id: string;
224
+ readonly title: string;
225
+ })[];
226
+ constructor(componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
227
+ ngOnInit(): void;
228
+ ngOnChanges(changes: SimpleChanges): void;
229
+ onResize(): void;
230
+ setOption(id: string, firstCheck?: boolean): void;
231
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperCardComponent, [null, { optional: true; }]>;
232
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperCardComponent, "ngx-helper-card", never, { "title": { "alias": "title"; "required": true; }; "subTitle": { "alias": "subTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "option": { "alias": "option"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "hasShadow": { "alias": "hasShadow"; "required": false; }; }, {}, never, ["*"], true, never>;
233
+ }
234
+
235
+ declare class NgxHelperLoaderComponent implements OnInit, OnChanges {
236
+ loaderSize: string;
237
+ loaderColor: string;
238
+ mode: 'SPINNER' | 'DOTS-SPINNER' | 'WHEEL-SPINNER';
239
+ size: number;
240
+ color: string;
241
+ padding?: string;
242
+ margin?: string;
243
+ ngOnInit(): void;
244
+ ngOnChanges(changes: SimpleChanges): void;
245
+ init(): void;
246
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperLoaderComponent, never>;
247
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperLoaderComponent, "ngx-helper-loader", never, { "mode": { "alias": "mode"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; }, {}, never, never, true, never>;
248
+ }
249
+
250
+ interface IPage {
251
+ readonly title: string;
252
+ readonly icon: string;
253
+ readonly component: ComponentType<any>;
254
+ }
255
+ interface INgxHelperPageGroup {
256
+ readonly route?: string[];
257
+ readonly header?: ComponentType<any>;
258
+ readonly pages: {
259
+ [key: string]: IPage;
260
+ };
261
+ readonly sidebarWidth?: string;
262
+ }
263
+ interface INgxHelperPageGroupItem {
264
+ readonly index: number;
265
+ readonly id: string;
266
+ readonly title: string;
267
+ readonly icon: string;
268
+ }
269
+ declare const NGX_HELPER_PAGE_GROUP_ITEM: InjectionToken<INgxHelperPageGroupItem>;
270
+ declare const NGX_HELPER_PAGE_GROUP_DATA: InjectionToken<any>;
271
+ declare const NGX_HELPER_PAGE_GROUP_DATA_CHANGE: InjectionToken<(data: any) => void>;
272
+
273
+ declare class NgxHelperPageGroupComponent implements OnInit, OnChanges {
274
+ private readonly activatedRoute;
275
+ private readonly router;
276
+ private readonly componentService;
277
+ private readonly config?;
278
+ private className;
279
+ display: string;
280
+ pageGroup: INgxHelperPageGroup;
281
+ pageId: string;
282
+ data?: any;
283
+ pageChanged: EventEmitter<INgxHelperPageGroupItem>;
284
+ dataChanged: EventEmitter<any>;
285
+ isMobile: boolean;
286
+ pages: string[];
287
+ injector: Injector;
288
+ sidebarWidth: string;
289
+ componentConfig: IComponentConfig;
290
+ constructor(activatedRoute: ActivatedRoute, router: Router, componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
291
+ ngOnInit(): void;
292
+ ngOnChanges(changes: SimpleChanges): void;
293
+ onResize(): void;
294
+ setInjector(): void;
295
+ setPage(id: string): void;
296
+ triggerPageChanged(): void;
297
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperPageGroupComponent, [null, null, null, { optional: true; }]>;
298
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperPageGroupComponent, "ngx-helper-page-group", never, { "pageGroup": { "alias": "pageGroup"; "required": true; }; "pageId": { "alias": "pageId"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "pageChanged": "pageChanged"; "dataChanged": "dataChanged"; }, never, never, true, never>;
299
+ }
300
+
301
+ declare class NgxHelperProgressComponent implements OnChanges {
302
+ private className;
303
+ borderRadiusCSS: string;
304
+ backgroundColorCSS: string;
305
+ value: number | {
306
+ done: number;
307
+ total: number;
308
+ };
309
+ align: 'LR' | 'RL' | 'TB' | 'BT';
310
+ borderRadius: string;
311
+ progressColor: string;
312
+ backgroundColor?: string;
313
+ size: string;
314
+ direction: 'H' | 'V';
315
+ ngOnChanges(changes: SimpleChanges): void;
316
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperProgressComponent, never>;
317
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperProgressComponent, "ngx-helper-progress", never, { "value": { "alias": "value"; "required": true; }; "align": { "alias": "align"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "progressColor": { "alias": "progressColor"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, {}, never, ["*"], true, never>;
318
+ }
319
+
320
+ declare class NgxHelperSectionComponent implements OnInit {
321
+ private readonly componentService;
322
+ private readonly config?;
323
+ private gap;
324
+ gapSize?: string;
325
+ private componentConfig;
326
+ isMobile: boolean;
327
+ constructor(componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
328
+ ngOnInit(): void;
329
+ onResize(): void;
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSectionComponent, [null, { optional: true; }]>;
331
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperSectionComponent, "ngx-helper-section", never, { "gapSize": { "alias": "gapSize"; "required": false; }; }, {}, never, ["*"], true, never>;
332
+ }
333
+
334
+ declare class NgxHelperSectionColumnComponent implements OnInit, OnChanges {
335
+ private readonly componentService;
336
+ private readonly config?;
337
+ flexStyle: string;
338
+ widthStyle: string;
339
+ stickyPosition: string;
340
+ stickyZIndex: string;
341
+ stickyTop: string;
342
+ flex?: number;
343
+ width?: string;
344
+ sticky?: boolean | 'DESKTOP' | 'MOBILE';
345
+ zIndex?: number;
346
+ private componentConfig;
347
+ private isMobile;
348
+ constructor(componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
349
+ ngOnInit(): void;
350
+ ngOnChanges(changes: SimpleChanges): void;
351
+ onResize(): void;
352
+ setPosition(): void;
353
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSectionColumnComponent, [null, { optional: true; }]>;
354
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperSectionColumnComponent, "ngx-helper-section-column", never, { "flex": { "alias": "flex"; "required": false; }; "width": { "alias": "width"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; }, {}, never, ["*"], true, never>;
355
+ }
356
+
357
+ declare class NgxHelperValueBoxComponent implements OnInit, OnChanges {
358
+ private readonly router;
359
+ private readonly componentService;
360
+ private readonly config?;
361
+ private className;
362
+ private gridTemplateColumns;
363
+ private boxGap;
364
+ values: INgxHelperValue[];
365
+ column?: number | {
366
+ desktop?: number;
367
+ mobile?: number;
368
+ };
369
+ clearBox: boolean;
370
+ emptyText: string;
371
+ gapSize: string;
372
+ hideShadow: boolean;
373
+ data: IValueComponentData[];
374
+ copyIndex?: number;
375
+ private copyTimeout;
376
+ private componentConfig;
377
+ constructor(router: Router, componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
378
+ ngOnInit(): void;
379
+ ngOnChanges(changes: SimpleChanges): void;
380
+ onResize(): void;
381
+ onClick(action?: () => string[] | void): void;
382
+ onCopy(event: Event, index: number): void;
383
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperValueBoxComponent, [null, null, { optional: true; }]>;
384
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperValueBoxComponent, "ngx-helper-value-box", never, { "values": { "alias": "values"; "required": true; }; "column": { "alias": "column"; "required": false; }; "clearBox": { "alias": "clearBox"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "gapSize": { "alias": "gapSize"; "required": false; }; "hideShadow": { "alias": "hideShadow"; "required": false; }; }, {}, never, never, true, never>;
385
+ }
386
+
387
+ declare class NgxHelperValueListComponent implements OnChanges {
388
+ private readonly router;
389
+ private readonly componentService;
390
+ private className;
391
+ values: INgxHelperValue[];
392
+ titleWidth: string;
393
+ emptyText: string;
394
+ data: IValueComponentData[];
395
+ copyIndex?: number;
396
+ private copyTimeout;
397
+ constructor(router: Router, componentService: ComponentService);
398
+ ngOnChanges(changes: SimpleChanges): void;
399
+ onClick(action?: () => string[] | void): void;
400
+ onCopy(event: Event, index: number): void;
401
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperValueListComponent, never>;
402
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperValueListComponent, "ngx-helper-value-list", never, { "values": { "alias": "values"; "required": true; }; "titleWidth": { "alias": "titleWidth"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; }, {}, never, never, true, never>;
403
+ }
404
+
405
+ declare class NgxHelperValuePipe implements PipeTransform {
406
+ transform(value?: NgxHelperValue, options?: {
407
+ emptyText?: string;
408
+ }): string;
409
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperValuePipe, never>;
410
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperValuePipe, "ngxHelperValue", true>;
411
+ }
412
+
413
+ interface INgxHelperConfirm {
414
+ readonly question: string;
415
+ readonly description?: string;
416
+ readonly data?: {
417
+ readonly title: string;
418
+ readonly value: string;
419
+ };
420
+ readonly icon?: string;
421
+ readonly confirmClass?: string;
422
+ readonly denyClass?: string;
423
+ }
424
+
425
+ interface IConfirmData {
426
+ readonly title: string;
427
+ readonly value?: string;
428
+ }
429
+ interface IConfirmConfig {
430
+ readonly description: string;
431
+ readonly confirmClass: string;
432
+ readonly denyClass: string;
433
+ }
434
+ declare class NgxHelperConfirmCalss {
435
+ private readonly matBottomSheet;
436
+ private readonly matDialog;
437
+ private readonly confirm;
438
+ constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog, confirm: INgxHelperConfirm);
439
+ dialog(onConfirmed: () => void): void;
440
+ dialog(onConfirmed: () => void, onDenied: () => void): void;
441
+ dialog(onConfirmed: () => void, config: MatDialogConfig): void;
442
+ dialog(onConfirmed: () => void, onDenied: () => void, config: MatDialogConfig): void;
443
+ bottomSheet(onConfirmed: () => void): void;
444
+ bottomSheet(onConfirmed: () => void, onDenied: () => void): void;
445
+ bottomSheet(onConfirmed: () => void, config: MatBottomSheetConfig): void;
446
+ bottomSheet(onConfirmed: () => void, onDenied: () => void, config: MatBottomSheetConfig): void;
447
+ }
448
+ declare class NgxHelperConfirmService {
449
+ private readonly matBottomSheet;
450
+ private readonly matDialog;
451
+ constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog);
452
+ verify(confirm: INgxHelperConfirm): NgxHelperConfirmCalss;
453
+ active(data: IConfirmData): NgxHelperConfirmCalss;
454
+ active(data: IConfirmData, config: Partial<IConfirmConfig>): NgxHelperConfirmCalss;
455
+ deactive(data: IConfirmData): NgxHelperConfirmCalss;
456
+ deactive(data: IConfirmData, config: Partial<IConfirmConfig>): NgxHelperConfirmCalss;
457
+ status(active: boolean, data: IConfirmData): NgxHelperConfirmCalss;
458
+ status(active: boolean, data: IConfirmData, config: Partial<IConfirmConfig>): NgxHelperConfirmCalss;
459
+ delete(data: IConfirmData): NgxHelperConfirmCalss;
460
+ delete(data: IConfirmData, config: Partial<IConfirmConfig>): NgxHelperConfirmCalss;
461
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperConfirmService, never>;
462
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperConfirmService>;
463
+ }
464
+
465
+ interface INgxHelperContainerConfig {
466
+ data?: any;
467
+ padding?: string;
468
+ hideClose?: boolean;
469
+ }
470
+ type NgxHelperContainer = 'DIALOG' | 'BOTTOMSHEET';
471
+ declare const NGX_HELPER_CONTAINER_TYPE: InjectionToken<NgxHelperContainer>;
472
+ declare const NGX_HELPER_CONTAINER_DATA: InjectionToken<any>;
473
+ declare const NGX_HELPER_CONTAINER_CLOSE: InjectionToken<(response?: any) => void>;
474
+
475
+ interface IContainerData {
476
+ readonly component: ComponentType<any>;
477
+ readonly title: string;
478
+ readonly config: INgxHelperContainerConfig;
479
+ }
480
+ declare class NgxHelperContainerCalss {
481
+ private readonly matBottomSheet;
482
+ private readonly matDialog;
483
+ private readonly container;
484
+ constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog, container: IContainerData);
485
+ dialog<T>(): void;
486
+ dialog<T>(onResponse: (response: T) => void): void;
487
+ dialog<T>(onResponse: (response: T) => void, onDismiss: () => void): void;
488
+ dialog<T>(onResponse: (response: T) => void, config: MatDialogConfig): void;
489
+ dialog<T>(onResponse: (response: T) => void, onDismiss: () => void, config: MatDialogConfig): void;
490
+ bottomSheet<T>(): void;
491
+ bottomSheet<T>(onResponse: (result: T) => void): void;
492
+ bottomSheet<T>(onResponse: (result: T) => void, onDismiss: () => void): void;
493
+ bottomSheet<T>(onResponse: (result: T) => void, config: MatBottomSheetConfig): void;
494
+ bottomSheet<T>(onResponse: (result: T) => void, onDismiss: () => void, config: MatBottomSheetConfig): void;
495
+ }
496
+ declare class NgxHelperContainerService {
497
+ private readonly matBottomSheet;
498
+ private readonly matDialog;
499
+ constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog);
500
+ init(component: ComponentType<any>, title: string): NgxHelperContainerCalss;
501
+ init(component: ComponentType<any>, title: string, config: INgxHelperContainerConfig): NgxHelperContainerCalss;
502
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperContainerService, never>;
503
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperContainerService>;
504
+ }
505
+
506
+ interface INgxHelperCoordinates {
507
+ latitude: number;
508
+ longitude: number;
509
+ }
510
+ interface INgxHelperCoordinatesConfig {
511
+ zoom: number;
512
+ size: number;
513
+ color: string;
514
+ view: INgxHelperCoordinates;
515
+ }
516
+
517
+ declare class NgxHelperCoordinatesService {
518
+ private readonly applicationRef;
519
+ private readonly injector;
520
+ constructor(applicationRef: ApplicationRef, injector: Injector);
521
+ get(): Promise<INgxHelperCoordinates>;
522
+ get(coordinates: INgxHelperCoordinates): Promise<INgxHelperCoordinates>;
523
+ get(config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
524
+ get(coordinates: INgxHelperCoordinates, config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
525
+ show(coordinates: INgxHelperCoordinates): void;
526
+ show(coordinates: INgxHelperCoordinates, config: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>): void;
527
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperCoordinatesService, never>;
528
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperCoordinatesService>;
529
+ }
530
+
531
+ interface INgxHelperHttpDownloadConfig {
532
+ readonly method: 'GET' | 'POST' | 'PUT' | 'PATCH';
533
+ readonly header: {
534
+ [key: string]: any;
535
+ };
536
+ }
537
+ interface INgxHelperHttpUploadConfig {
538
+ readonly method: 'POST' | 'PUT' | 'PATCH';
539
+ readonly header: {
540
+ [key: string]: any;
541
+ };
542
+ readonly body: {
543
+ [key: string]: any;
544
+ };
545
+ }
546
+
547
+ interface INgxHelperToastConfig {
548
+ readonly timeout: number;
549
+ readonly showClose: boolean;
550
+ }
551
+
552
+ interface IToast {
553
+ readonly icon: string;
554
+ readonly textColor: string;
555
+ readonly backgroundColor: string;
556
+ }
557
+ declare class NgxHelperToastService {
558
+ private readonly applicationRef;
559
+ private readonly injector;
560
+ private readonly config?;
561
+ private components;
562
+ constructor(applicationRef: ApplicationRef, injector: Injector, config?: Partial<INgxHelperConfig> | undefined);
563
+ private getId;
564
+ private updatePositions;
565
+ toast(toast: IToast, message: string | string[]): void;
566
+ toast(toast: IToast, message: string | string[], config: Partial<INgxHelperToastConfig>): void;
567
+ toast(toast: IToast, message: string | string[], onClose: () => void): void;
568
+ toast(toast: IToast, message: string | string[], config: Partial<INgxHelperToastConfig>, onClose: () => void): void;
569
+ info(message: string | string[]): void;
570
+ info(message: string | string[], config: Partial<INgxHelperToastConfig>): void;
571
+ info(message: string | string[], onClose: () => void): void;
572
+ info(message: string | string[], config: Partial<INgxHelperToastConfig>, onClose: () => void): void;
573
+ success(message: string | string[]): void;
574
+ success(message: string | string[], config: Partial<INgxHelperToastConfig>): void;
575
+ success(message: string | string[], onClose: () => void): void;
576
+ success(message: string | string[], config: Partial<INgxHelperToastConfig>, onClose: () => void): void;
577
+ warning(message: string | string[]): void;
578
+ warning(message: string | string[], config: Partial<INgxHelperToastConfig>): void;
579
+ warning(message: string | string[], onClose: () => void): void;
580
+ warning(message: string | string[], config: Partial<INgxHelperToastConfig>, onClose: () => void): void;
581
+ error(message: string | string[]): void;
582
+ error(message: string | string[], config: Partial<INgxHelperToastConfig>): void;
583
+ error(message: string | string[], onClose: () => void): void;
584
+ error(message: string | string[], config: Partial<INgxHelperToastConfig>, onClose: () => void): void;
585
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperToastService, [null, null, { optional: true; }]>;
586
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperToastService>;
587
+ }
588
+
589
+ declare class NgxHelperHttpService {
590
+ private readonly applicationRef;
591
+ private readonly injector;
592
+ private readonly ngxHelperToastService;
593
+ private components;
594
+ constructor(applicationRef: ApplicationRef, injector: Injector, ngxHelperToastService: NgxHelperToastService);
595
+ private getId;
596
+ private updatePositions;
597
+ private getBuffer;
598
+ download(path: string, title: string): void;
599
+ download(path: string, title: string, config: Partial<INgxHelperHttpDownloadConfig>): void;
600
+ upload<R, E>(file: File, url: string, onSuccess: (response: R | undefined, status: HttpStatusCode) => void, onError: (error: E | undefined, status: HttpStatusCode) => void): void;
601
+ upload<R, E>(file: File, url: string, config: Partial<INgxHelperHttpUploadConfig>, onSuccess: (response: R, status: HttpStatusCode) => void, onError: (error: E, status: HttpStatusCode) => void): void;
602
+ printPDF(url: string): void;
603
+ printPDF(url: string, config: Partial<INgxHelperHttpDownloadConfig>): void;
604
+ printPDF(buffer: ArrayBuffer): void;
605
+ printPDF(buffer: ArrayBuffer, config: Partial<INgxHelperHttpDownloadConfig>): void;
606
+ printPDF(blob: Blob): void;
607
+ printPDF(blob: Blob, config: Partial<INgxHelperHttpDownloadConfig>): void;
608
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperHttpService, never>;
609
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperHttpService>;
610
+ }
611
+
612
+ declare class NgxHelperMobileViewDirective implements OnInit {
613
+ private readonly elementRef;
614
+ private readonly rendererFactory;
615
+ private readonly config?;
616
+ ngxHelperMobileView: string;
617
+ private mobileWidth;
618
+ constructor(elementRef: ElementRef, rendererFactory: RendererFactory2, config?: Partial<INgxHelperConfig> | undefined);
619
+ ngOnInit(): void;
620
+ onResize(): void;
621
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperMobileViewDirective, [null, null, { optional: true; }]>;
622
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgxHelperMobileViewDirective, "[ngxHelperMobileView]", never, { "ngxHelperMobileView": { "alias": "ngxHelperMobileView"; "required": true; }; }, {}, never, never, true, never>;
623
+ }
624
+
625
+ declare class NgxHelperStickyDirective implements OnInit {
626
+ private readonly elementRef;
627
+ private readonly config?;
628
+ ngxHelperSticky: 'TOP' | 'BOTTOM';
629
+ stickyIn: 'ALWAYS' | 'DESKTOP' | 'MOBILE';
630
+ zIndex?: number;
631
+ private mobileWidth;
632
+ private stickyView;
633
+ private isMobile;
634
+ constructor(elementRef: ElementRef, config?: Partial<INgxHelperConfig> | undefined);
635
+ ngOnInit(): void;
636
+ onResize(): void;
637
+ setPosition(): void;
638
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperStickyDirective, [null, { optional: true; }]>;
639
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgxHelperStickyDirective, "[ngxHelperSticky]", never, { "ngxHelperSticky": { "alias": "ngxHelperSticky"; "required": true; }; "stickyIn": { "alias": "stickyIn"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; }, {}, never, never, true, never>;
640
+ }
641
+
642
+ declare class NgxHelperBankCardPipe implements PipeTransform {
643
+ transform(value?: string | null, options?: {
644
+ view?: 'CARD' | 'BANK';
645
+ join?: string;
646
+ }): string;
647
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperBankCardPipe, never>;
648
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperBankCardPipe, "ngxHelperBankCard", true>;
649
+ }
650
+
651
+ declare class NgxHelperDatePipe implements PipeTransform {
652
+ transform(value?: Date | null, options?: {
653
+ format?: DateFormats;
654
+ timezone?: string;
655
+ }): string;
656
+ transform(value?: number | null, options?: {
657
+ format?: DateFormats;
658
+ timezone?: string;
659
+ }): string;
660
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperDatePipe, never>;
661
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperDatePipe, "ngxHelperDate", true>;
662
+ }
663
+
664
+ declare class NgxHelperDurationPipe implements PipeTransform {
665
+ transform(value?: number | null, options?: {
666
+ format?: DurationFormats;
667
+ english?: boolean;
668
+ }): string;
669
+ transform(value?: Date | null, options?: {
670
+ format?: DurationFormats;
671
+ english?: boolean;
672
+ }): string;
673
+ transform(value?: {
674
+ from: Date;
675
+ } | null, options?: {
676
+ format?: DurationFormats;
677
+ english?: boolean;
678
+ }): string;
679
+ transform(value?: {
680
+ to: Date;
681
+ } | null, options?: {
682
+ format?: DurationFormats;
683
+ english?: boolean;
684
+ }): string;
685
+ transform(value?: {
686
+ from: Date;
687
+ to: Date;
688
+ } | null, options?: {
689
+ format?: DurationFormats;
690
+ english?: boolean;
691
+ }): string;
692
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperDurationPipe, never>;
693
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperDurationPipe, "ngxHelperDuration", true>;
694
+ }
695
+
696
+ declare class NgxHelperFileSizePipe implements PipeTransform {
697
+ transform(value?: number | null, options?: {
698
+ english?: boolean;
699
+ }): string;
700
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperFileSizePipe, never>;
701
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperFileSizePipe, "ngxHelperFileSize", true>;
702
+ }
703
+
704
+ declare class NgxHelperMobilePipe implements PipeTransform {
705
+ transform(value?: string | null, options?: {
706
+ join?: string;
707
+ }): string;
708
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperMobilePipe, never>;
709
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperMobilePipe, "ngxHelperMobile", true>;
710
+ }
711
+
712
+ declare class NgxHelperMultiLinePipe implements PipeTransform {
713
+ private readonly domSanitizer;
714
+ constructor(domSanitizer: DomSanitizer);
715
+ transform(value?: string | null, options?: {
716
+ html?: boolean;
717
+ }): string | SafeHtml;
718
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperMultiLinePipe, never>;
719
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperMultiLinePipe, "ngxHelperMultiLine", true>;
720
+ }
721
+
722
+ declare class NgxHelperNumberPipe implements PipeTransform {
723
+ transform(value?: number | null, options?: {
724
+ fractionDigits?: number;
725
+ english?: boolean;
726
+ }): string;
727
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperNumberPipe, never>;
728
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperNumberPipe, "ngxHelperNumber", true>;
729
+ }
730
+
731
+ declare class NgxHelperPeriodPipe implements PipeTransform {
732
+ transform(value?: Date | null, options?: {
733
+ timezone?: string;
734
+ }): string;
735
+ transform(value?: {
736
+ from: Date;
737
+ } | null, options?: {
738
+ timezone?: string;
739
+ }): string;
740
+ transform(value?: {
741
+ to: Date;
742
+ } | null, options?: {
743
+ timezone?: string;
744
+ }): string;
745
+ transform(value?: {
746
+ from: Date;
747
+ to: Date;
748
+ } | null, options?: {
749
+ timezone?: string;
750
+ }): string;
751
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperPeriodPipe, never>;
752
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperPeriodPipe, "ngxHelperPeriod", true>;
753
+ }
754
+
755
+ declare class NgxHelperPricePipe implements PipeTransform {
756
+ transform(value?: number | null, options?: {
757
+ currency?: string;
758
+ short?: boolean;
759
+ english?: boolean;
760
+ }): string;
761
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperPricePipe, never>;
762
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperPricePipe, "ngxHelperPrice", true>;
763
+ }
764
+
765
+ type Types = 'HTML' | 'STYLE' | 'SCRIPT' | 'URL' | 'RESOURCE_URL';
766
+ declare class NgxHelperSafePipe implements PipeTransform {
767
+ private readonly domSanitizer;
768
+ constructor(domSanitizer: DomSanitizer);
769
+ transform(value?: string | null, options?: {
770
+ type?: Types;
771
+ }): string | SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
772
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSafePipe, never>;
773
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperSafePipe, "ngxHelperSafe", true>;
774
+ }
775
+
776
+ declare class NgxHelperVolumePipe implements PipeTransform {
777
+ transform(value?: number | null, options?: {
778
+ short?: boolean;
779
+ english?: boolean;
780
+ }): string;
781
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperVolumePipe, never>;
782
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperVolumePipe, "ngxHelperVolume", true>;
783
+ }
784
+
785
+ declare class NgxHelperWeightPipe implements PipeTransform {
786
+ transform(value?: number | null, options?: {
787
+ short?: boolean;
788
+ english?: boolean;
789
+ }): string;
790
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperWeightPipe, never>;
791
+ static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperWeightPipe, "ngxHelperWeight", true>;
792
+ }
793
+
794
+ export { NGX_HELPER_BOX_DATA, NGX_HELPER_CONFIG, NGX_HELPER_CONTAINER_CLOSE, NGX_HELPER_CONTAINER_DATA, NGX_HELPER_CONTAINER_TYPE, NGX_HELPER_PAGE_GROUP_DATA, NGX_HELPER_PAGE_GROUP_DATA_CHANGE, NGX_HELPER_PAGE_GROUP_ITEM, NgxHelperBankCardPipe, NgxHelperBoxComponent, NgxHelperCardComponent, NgxHelperConfirmService, NgxHelperContainerService, NgxHelperCoordinatesService, NgxHelperDatePipe, NgxHelperDurationPipe, NgxHelperFileSizePipe, NgxHelperHttpService, NgxHelperLoaderComponent, NgxHelperMobilePipe, NgxHelperMobileViewDirective, NgxHelperMultiLinePipe, NgxHelperNumberPipe, NgxHelperPageGroupComponent, NgxHelperPeriodPipe, NgxHelperPricePipe, NgxHelperProgressComponent, NgxHelperSafePipe, NgxHelperSectionColumnComponent, NgxHelperSectionComponent, NgxHelperStickyDirective, NgxHelperToastService, NgxHelperValueBoxComponent, NgxHelperValueListComponent, NgxHelperValuePipe, NgxHelperVolumePipe, NgxHelperWeightPipe, provideNgxHelperConfig };
795
+ export type { INgxHelperCardOption, INgxHelperConfig, INgxHelperConfirm, INgxHelperContainerConfig, INgxHelperCoordinates, INgxHelperCoordinatesConfig, INgxHelperHttpDownloadConfig, INgxHelperHttpUploadConfig, INgxHelperPageGroup, INgxHelperPageGroupItem, INgxHelperToastConfig, INgxHelperValue, NgxHelperCardAction, NgxHelperContainer, NgxHelperValue };