@stemy/ngx-utils 19.2.15 → 19.2.16

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.
@@ -3314,16 +3314,15 @@ class BaseDialogService {
3314
3314
  }
3315
3315
  dialog(config) {
3316
3316
  if (!config)
3317
- return;
3317
+ return null;
3318
3318
  const button = !config.buttons ? null : config.buttons[0];
3319
3319
  if (!button)
3320
- return;
3320
+ return null;
3321
3321
  this.toaster.handleAsyncMethod(button.method);
3322
+ return null;
3322
3323
  }
3323
3324
  confirm(config) {
3324
- if (!config)
3325
- return;
3326
- this.dialog({
3325
+ return this.dialog({
3327
3326
  id: config.id,
3328
3327
  title: config.title,
3329
3328
  message: config.message,
@@ -6715,11 +6714,11 @@ class UploadComponent {
6715
6714
  if (url.startsWith("data:"))
6716
6715
  return url;
6717
6716
  const baseUrl = this.baseUrl;
6718
- const images = this.isImage ? `image/` : ``;
6717
+ const query = this.isImage ? `?type=preview` : ``;
6719
6718
  if (!baseUrl) {
6720
- return `${images}${url}`;
6719
+ return `${url}${query}`;
6721
6720
  }
6722
- return `${baseUrl}/${images}${url}`;
6721
+ return `${baseUrl}/${url}${query}`;
6723
6722
  }
6724
6723
  async processFiles(files) {
6725
6724
  if (this.processing)