@arsedizioni/ars-utils 21.2.187 → 21.2.189

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.
@@ -183,7 +183,7 @@ class SendToDialogComponent {
183
183
  this.dialogData = inject(MAT_DIALOG_DATA);
184
184
  this.item = {
185
185
  recipients: null,
186
- subject: this.dialogData.title,
186
+ subject: this.dialogData.subject,
187
187
  text: this.dialogData.text,
188
188
  options: null
189
189
  };
@@ -1337,12 +1337,14 @@ class ApplicationDialogService extends DialogService {
1337
1337
  /**
1338
1338
  * Sent to
1339
1339
  * @param title : title
1340
+ * @param text : text
1341
+ * @param subject : subject
1340
1342
  * @param canPopulate: true if the populate fuction is allowed
1341
1343
  * @param count : elements to send or null
1342
1344
  * @param options : checkable option list
1343
1345
  * @param width: the preferred width
1344
1346
  */
1345
- sendTo(title = 'Invia per email', canPopulate = false, count, options, width = 600) {
1347
+ sendTo(title = 'Invia per email', text, subject, canPopulate = false, count, options, width = 600) {
1346
1348
  return this.open(SendToDialogComponent, {
1347
1349
  ariaLabel: 'invia per email',
1348
1350
  autoFocus: true,
@@ -1352,6 +1354,8 @@ class ApplicationDialogService extends DialogService {
1352
1354
  count: count,
1353
1355
  canPopulate: canPopulate,
1354
1356
  appearance: 'fill',
1357
+ text: text,
1358
+ subject: subject,
1355
1359
  options: options
1356
1360
  },
1357
1361
  closeOnNavigation: false,