@arsedizioni/ars-utils 20.4.34 → 20.4.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "20.4.34",
3
+ "version": "20.4.36",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -56,25 +56,25 @@
56
56
  "types": "./support.common/index.d.ts",
57
57
  "default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
58
58
  },
59
- "./tinymce": {
60
- "types": "./tinymce/index.d.ts",
61
- "default": "./fesm2022/arsedizioni-ars-utils-tinymce.mjs"
62
- },
63
59
  "./support.ui": {
64
60
  "types": "./support.ui/index.d.ts",
65
61
  "default": "./fesm2022/arsedizioni-ars-utils-support.ui.mjs"
66
62
  },
63
+ "./tinymce": {
64
+ "types": "./tinymce/index.d.ts",
65
+ "default": "./fesm2022/arsedizioni-ars-utils-tinymce.mjs"
66
+ },
67
67
  "./ui": {
68
68
  "types": "./ui/index.d.ts",
69
69
  "default": "./fesm2022/arsedizioni-ars-utils-ui.mjs"
70
70
  },
71
- "./ui.oauth": {
72
- "types": "./ui.oauth/index.d.ts",
73
- "default": "./fesm2022/arsedizioni-ars-utils-ui.oauth.mjs"
74
- },
75
71
  "./ui.application": {
76
72
  "types": "./ui.application/index.d.ts",
77
73
  "default": "./fesm2022/arsedizioni-ars-utils-ui.application.mjs"
74
+ },
75
+ "./ui.oauth": {
76
+ "types": "./ui.oauth/index.d.ts",
77
+ "default": "./fesm2022/arsedizioni-ars-utils-ui.oauth.mjs"
78
78
  }
79
79
  },
80
80
  "sideEffects": false
package/ui/index.d.ts CHANGED
@@ -131,6 +131,15 @@ declare class UIService {
131
131
 
132
132
  interface IDialogService {
133
133
  }
134
+ declare class BusyTimer {
135
+ private timer;
136
+ private dialogService;
137
+ constructor(dialogService: DialogService, due?: number, message?: string);
138
+ /**
139
+ * Dispose object
140
+ */
141
+ clear(): void;
142
+ }
134
143
  declare class DialogService extends UIService {
135
144
  private dialog;
136
145
  private overlay;
@@ -217,6 +226,13 @@ declare class DialogService extends UIService {
217
226
  * @returns true if a new popup has been opened
218
227
  */
219
228
  busy(message: string, progress?: number, progressMode?: 'determinate' | 'indeterminate', action?: Observable<Object>): boolean;
229
+ /**
230
+ * Display a busy timer
231
+ * @param message : new message
232
+ * @param due: the number of milliseconds. Default is 100
233
+ * @returns the busy timer object
234
+ */
235
+ busyTimer(message?: string, due?: number): BusyTimer;
220
236
  /**
221
237
  * Display a busy indeterminate dialog as hourglass
222
238
  * @param message : new message
@@ -420,5 +436,5 @@ declare class OtpInputComponent implements ControlValueAccessor {
420
436
  static ɵcmp: i0.ɵɵComponentDeclaration<OtpInputComponent, "otp-input", never, {}, {}, never, never, true, never>;
421
437
  }
422
438
 
423
- export { ArsUIModule, BusyDialogComponent, ConfirmDialogComponent, CredentialsDialogComponent, DialogService, InfoDialogComponent, OtpInputComponent, PaginatorIntl, PasswordStrengthComponent, RecoverPasswordDialogComponent, ResetPasswordDialogComponent, ToastComponent, UIService };
439
+ export { ArsUIModule, BusyDialogComponent, BusyTimer, ConfirmDialogComponent, CredentialsDialogComponent, DialogService, InfoDialogComponent, OtpInputComponent, PaginatorIntl, PasswordStrengthComponent, RecoverPasswordDialogComponent, ResetPasswordDialogComponent, ToastComponent, UIService };
424
440
  export type { ConfirmDialogData, ConfirmDialogOption, CredentialsDialogData, CredentialsDialogResult, DialogOption, DialogResult, IDialogService, InfoDialogData, RecoverPasswordDialogData, RecoverPasswordDialogResult, ResetPasswordDialogData, ResetPasswordDialogResult, ToastData };
@@ -10,7 +10,7 @@ import { MatSelectionList, MatSelectionListChange } from '@angular/material/list
10
10
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
11
11
  import { MatFormFieldControl } from '@angular/material/form-field';
12
12
  import { MatDialogRef } from '@angular/material/dialog';
13
- import { DialogService, InfoDialogComponent, ToastComponent, ConfirmDialogOption } from '@arsedizioni/ars-utils/ui';
13
+ import { DialogService, BusyTimer, InfoDialogComponent, ToastComponent, ConfirmDialogOption } from '@arsedizioni/ars-utils/ui';
14
14
  import { MatSnackBarRef } from '@angular/material/snack-bar';
15
15
 
16
16
  declare class ResizeTableColumnDirective implements OnInit {
@@ -658,6 +658,13 @@ declare class ApplicationDialogService {
658
658
  * @returns true if a new popup has been opened
659
659
  */
660
660
  busy(message: string, progress?: number, progressMode?: 'determinate' | 'indeterminate', action?: Observable<Object>): boolean;
661
+ /**
662
+ * Display a busy timer
663
+ * @param message : new message
664
+ * @param due: the number of milliseconds. Default is 100
665
+ * @returns the busy timer object
666
+ */
667
+ busyTimer(message?: string, due?: number): BusyTimer;
661
668
  /**
662
669
  * Display a busy indeterminate dialog as hourglass
663
670
  * @param message : new message