@pega/dx-component-builder-sdk 0.23.12 → 0.23.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.23.12",
3
+ "version": "0.23.13",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  <div class="psdk-utility-card-actions">
18
18
  <div *ngIf="menuIconOverride$ == ''; else showCustom">
19
- <button mat-icon-button [matMenuTriggerFor]="actionMenu">
19
+ <button id="setting-button" mat-icon-button [matMenuTriggerFor]="actionMenu">
20
20
  <img class="psdk-utility-card-action-svg-icon" src="{{ settingsSvgIcon$ }}" />
21
21
  </button>
22
22
  <mat-menu #actionMenu="matMenu" overlapTrigger="false">
@@ -29,7 +29,7 @@
29
29
  </mat-menu>
30
30
  </div>
31
31
  <ng-template #showCustom>
32
- <button mat-icon-button (click)="menuIconOverrideAction$.onClick(item$)">
32
+ <button id="delete-attachment" mat-icon-button (click)="menuIconOverrideAction$.onClick(item$)">
33
33
  <img class="psdk-utility-card-action-svg-icon" src="{{ menuIconOverride$ }}" />
34
34
  </button>
35
35
  </ng-template>
@@ -160,7 +160,7 @@ export class DropdownComponent implements OnInit, OnDestroy {
160
160
  this.componentReference = (this.pConn$.getStateProps() as any).value;
161
161
 
162
162
  // @ts-ignore - parameter “contextName” for getDataObject method should be optional
163
- const optionsList = this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject());
163
+ const optionsList = [...this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject())];
164
164
  optionsList?.unshift({ key: 'Select', value: this.pConn$.getLocalizedValue('Select...', '', '') });
165
165
  this.options$ = optionsList;
166
166
  if (this.value$ === '' && !this.bReadonly$) {
@@ -691,9 +691,16 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
691
691
  if (caseID) {
692
692
  this.lu_bLoading$ = true;
693
693
 
694
- this.fetchCaseAttachments(caseID).then(resp => {
695
- this.handleAttachmentsResponse(resp);
696
- });
694
+ this.fetchCaseAttachments(caseID)
695
+ .then(resp => {
696
+ this.handleAttachmentsResponse(resp);
697
+ })
698
+ .catch(err => {
699
+ console.log(err);
700
+ })
701
+ .finally(() => {
702
+ this.lu_bLoading$ = false;
703
+ });
697
704
  }
698
705
  }
699
706
 
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  <div class="psdk-utility-card-actions">
18
18
  <div *ngIf="menuIconOverride$ == ''; else showCustom">
19
- <button mat-icon-button [matMenuTriggerFor]="actionMenu">
19
+ <button id="setting-button" mat-icon-button [matMenuTriggerFor]="actionMenu">
20
20
  <img class="psdk-utility-card-action-svg-icon" src="{{ settingsSvgIcon$ }}" />
21
21
  </button>
22
22
  <mat-menu #actionMenu="matMenu" overlapTrigger="false">
@@ -29,7 +29,7 @@
29
29
  </mat-menu>
30
30
  </div>
31
31
  <ng-template #showCustom>
32
- <button mat-icon-button (click)="menuIconOverrideAction$.onClick(item$)">
32
+ <button id="delete-attachment" mat-icon-button (click)="menuIconOverrideAction$.onClick(item$)">
33
33
  <img class="psdk-utility-card-action-svg-icon" src="{{ menuIconOverride$ }}" />
34
34
  </button>
35
35
  </ng-template>
@@ -160,7 +160,7 @@ export class DropdownComponent implements OnInit, OnDestroy {
160
160
  this.componentReference = (this.pConn$.getStateProps() as any).value;
161
161
 
162
162
  // @ts-ignore - parameter “contextName” for getDataObject method should be optional
163
- const optionsList = this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject());
163
+ const optionsList = [...this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject())];
164
164
  optionsList?.unshift({ key: 'Select', value: this.pConn$.getLocalizedValue('Select...', '', '') });
165
165
  this.options$ = optionsList;
166
166
  if (this.value$ === '' && !this.bReadonly$) {
@@ -691,9 +691,16 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
691
691
  if (caseID) {
692
692
  this.lu_bLoading$ = true;
693
693
 
694
- this.fetchCaseAttachments(caseID).then(resp => {
695
- this.handleAttachmentsResponse(resp);
696
- });
694
+ this.fetchCaseAttachments(caseID)
695
+ .then(resp => {
696
+ this.handleAttachmentsResponse(resp);
697
+ })
698
+ .catch(err => {
699
+ console.log(err);
700
+ })
701
+ .finally(() => {
702
+ this.lu_bLoading$ = false;
703
+ });
697
704
  }
698
705
  }
699
706