@messaia/cdk 20.0.0-RC.5 → 20.0.0-RC.6

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.
@@ -1509,14 +1509,15 @@ class BaseComponent {
1509
1509
  /**
1510
1510
  * Shows a confirmation dialog to send some data.
1511
1511
  *
1512
- * @param message - The message to display in the dialog.
1513
- * @param observable - The observable instance to handle the data.
1514
- * @param successCallback - Optional callback to be invoked on successful operation.
1515
- * @param errorCallback - Optional callback to be invoked on an error.
1516
- * @param acceptButtonText - Optional text for the accept button.
1517
- * @param cancelButtonText - Optional text for the cancel button.
1518
- */
1519
- showConfirmationDialog(message, observabe, successCallback, errorCallback, acceptButtonText, cancelButtonText, dialogConfig) {
1512
+ * @param message - The message to display in the confirmation dialog.
1513
+ * @param observable - The Observable operation to execute upon confirmation.
1514
+ * @param successCallback - Optional callback invoked on successful completion of the Observable.
1515
+ * @param errorCallback - Optional callback invoked if the Observable errors.
1516
+ * @param acceptButtonText - Optional text for the accept button (default is localized "Yes").
1517
+ * @param cancelButtonText - Optional text for the cancel button (default is localized "Cancel").
1518
+ * @param dialogConfig - Optional Angular Material dialog configuration.
1519
+ */
1520
+ showConfirmationDialog = (message, observable, successCallback, errorCallback, acceptButtonText, cancelButtonText, dialogConfig) => {
1520
1521
  this.dialogService
1521
1522
  .openConfirm({
1522
1523
  message: message,
@@ -1526,7 +1527,7 @@ class BaseComponent {
1526
1527
  }, dialogConfig ?? { maxWidth: 480 })
1527
1528
  .afterClosed().subscribe((accept) => {
1528
1529
  if (accept) {
1529
- observabe.subscribe({
1530
+ observable.subscribe({
1530
1531
  next: (x) => {
1531
1532
  this.showMessage($localize `:@@snackbar.send.success:Data sent successfully.`);
1532
1533
  if (successCallback) {
@@ -1541,7 +1542,7 @@ class BaseComponent {
1541
1542
  });
1542
1543
  }
1543
1544
  });
1544
- }
1545
+ };
1545
1546
  /**
1546
1547
  * Opens a task dialog with the specified configuration.
1547
1548
  *
@@ -1572,12 +1573,12 @@ class BaseComponent {
1572
1573
  * },
1573
1574
  * });
1574
1575
  */
1575
- showTaskDialog(config, dialogConfig) {
1576
+ showTaskDialog = (config, dialogConfig) => {
1576
1577
  return this.openDialog(VdTaskDialogComponent, Object.assign(dialogConfig ?? {}, {
1577
1578
  data: new TaskDialogData(config),
1578
1579
  disableClose: true
1579
1580
  }));
1580
- }
1581
+ };
1581
1582
  /**
1582
1583
  * Opens a dialog of the specified type with the provided configuration.
1583
1584
  *