@acorex/platform 20.9.17 → 20.9.18

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.
@@ -20202,7 +20202,7 @@ class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent {
20202
20202
  return { accepted, rejected };
20203
20203
  }
20204
20204
  isUnrestrictedAccept(accept) {
20205
- const trimmed = accept.trim();
20205
+ const trimmed = accept?.trim();
20206
20206
  return !trimmed || trimmed === '*';
20207
20207
  }
20208
20208
  fileMatchesAccept(file, accept) {
@@ -20319,9 +20319,7 @@ class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent {
20319
20319
  const titleChanged = previousFile && previousFile.title !== file.title;
20320
20320
  const descriptionChanged = previousFile && previousFile.description !== file.description;
20321
20321
  const anyMetadataChanged = nameChanged || titleChanged || descriptionChanged;
20322
- const shouldChangeStatus = anyMetadataChanged &&
20323
- previousFile &&
20324
- (previousFile.status === 'uploaded' || previousFile.status === 'remote');
20322
+ const shouldChangeStatus = anyMetadataChanged && previousFile && (previousFile.status === 'uploaded' || previousFile.status === 'remote');
20325
20323
  const updatedFile = {
20326
20324
  ...file,
20327
20325
  status: shouldChangeStatus ? 'editing' : file.status,
@@ -20389,7 +20387,7 @@ class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent {
20389
20387
  (fileChange)="onFileChange($event)"
20390
20388
  [accept]="accept()"
20391
20389
  [multiple]="multiple()"
20392
- [disableBrowse]="readonly() || ((getValue() ?? []).length) > 0"
20390
+ [disableBrowse]="readonly() || (getValue() ?? []).length > 0"
20393
20391
  >
20394
20392
  <axp-file-list
20395
20393
  [files]="files()"
@@ -20443,7 +20441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
20443
20441
  (fileChange)="onFileChange($event)"
20444
20442
  [accept]="accept()"
20445
20443
  [multiple]="multiple()"
20446
- [disableBrowse]="readonly() || ((getValue() ?? []).length) > 0"
20444
+ [disableBrowse]="readonly() || (getValue() ?? []).length > 0"
20447
20445
  >
20448
20446
  <axp-file-list
20449
20447
  [files]="files()"