@arsedizioni/ars-utils 20.4.45 → 20.4.47

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.
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, inject, Renderer2, ElementRef, Directive, output, ChangeDetectionStrategy, Component, Injectable, ChangeDetectorRef, signal, viewChild, NgModule, HostBinding, Input, ViewChild, Optional, Self, effect, computed } from '@angular/core';
3
3
  import * as i13 from '@angular/material/paginator';
4
4
  import { MatPaginatorModule, MatPaginatorIntl } from '@angular/material/paginator';
5
- import { DialogService, PaginatorIntl, OtpInputComponent, UIService } from '@arsedizioni/ars-utils/ui';
5
+ import { DialogService, DeleteDialogConfirmMode, PaginatorIntl, OtpInputComponent, UIService } from '@arsedizioni/ars-utils/ui';
6
6
  import * as i5 from '@angular/cdk/text-field';
7
7
  import { TextFieldModule } from '@angular/cdk/text-field';
8
8
  import * as i1 from '@angular/forms';
@@ -1285,13 +1285,27 @@ class ApplicationDialogService {
1285
1285
  return this.dialogService.confirm(message, title, okCaption, cancelCaption, otherCaption, options, width, details);
1286
1286
  }
1287
1287
  /**
1288
- * Sent to
1289
- * @param title : title
1290
- * @param allowPopulate: true if the populate fuction is allowed
1291
- * @param count : elements to send or null
1292
- * @param options : checkable option list
1293
- * @param width: the preferred width
1294
- */
1288
+ * Display a delete dialog
1289
+ * @param message : html message
1290
+ * @param title : dialog title
1291
+ * @param confirmMode : the confirm mode
1292
+ * @param okCaption : ok button caption
1293
+ * @param cancelCaption : cancel button caption
1294
+ * @param otherCaption : other button caption
1295
+ * @param options: check box options
1296
+ * @param width: the preferred width
1297
+ */
1298
+ delete(message, title = 'Attenzione', confirmMode = DeleteDialogConfirmMode.None, okCaption = 'Si', cancelCaption = 'No', width = 500, details) {
1299
+ return this.dialogService.delete(message, title, confirmMode, okCaption, cancelCaption, width, details);
1300
+ }
1301
+ /**
1302
+ * Sent to
1303
+ * @param title : title
1304
+ * @param allowPopulate: true if the populate fuction is allowed
1305
+ * @param count : elements to send or null
1306
+ * @param options : checkable option list
1307
+ * @param width: the preferred width
1308
+ */
1295
1309
  sendTo(title = 'Invia per email', allowPopulate = false, count, options, width = 500) {
1296
1310
  return this.dialogService.open(SendToDialogComponent, {
1297
1311
  ariaLabel: 'invia per email',
@@ -1340,16 +1354,16 @@ class ApplicationDialogService {
1340
1354
  });
1341
1355
  }
1342
1356
  /**
1343
- * Display a select a picture dialog
1344
- * @param title : dialog title
1345
- * @param descritpion : brief description
1346
- * @param okCaption : ok button caption
1347
- * @param options : checkable option list
1348
- * @param width: the preferred width
1349
- * @param maxSize: the maximum file size accepted in mb
1350
- * @param maxPictureWidth: the maximum picture width accepted
1351
- * @param maxPictureHeight: the maximum picture height accepted
1352
- */
1357
+ * Display a select a picture dialog
1358
+ * @param title : dialog title
1359
+ * @param descritpion : brief description
1360
+ * @param okCaption : ok button caption
1361
+ * @param options : checkable option list
1362
+ * @param width: the preferred width
1363
+ * @param maxSize: the maximum file size accepted in mb
1364
+ * @param maxPictureWidth: the maximum picture width accepted
1365
+ * @param maxPictureHeight: the maximum picture height accepted
1366
+ */
1353
1367
  selectPicture(title = 'Seleziona immagine', descritpion, okCaption = 'Ok', options, width = 600, maxSize, maxPictureWidth, maxPictureHeight) {
1354
1368
  return this.dialogService.open(SelectPictureDialogComponent, {
1355
1369
  ariaLabel: 'seleziona immagine',