@posiwise/shared-components 0.0.173 → 0.0.174

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.
@@ -1895,6 +1895,19 @@ class ConfirmDialogService {
1895
1895
  ref.componentInstance.config = config;
1896
1896
  return ref.result.then((value) => value === true, () => false);
1897
1897
  }
1898
+ /**
1899
+ * Opens a generic destructive "Delete — Are you sure you want to delete?"
1900
+ * confirmation dialog. Pass overrides for any field (e.g. `text` with a
1901
+ * bold entity name, or `textKey` for an i18n key).
1902
+ */
1903
+ confirmDelete(overrides = {}) {
1904
+ return this.open({
1905
+ title: 'Delete',
1906
+ text: 'Are you sure you want to delete?',
1907
+ destructive: true,
1908
+ ...overrides
1909
+ });
1910
+ }
1898
1911
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConfirmDialogService, deps: [{ token: i4$1.NgbModal }], target: i0.ɵɵFactoryTarget.Injectable }); }
1899
1912
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConfirmDialogService, providedIn: 'root' }); }
1900
1913
  }