@colijnit/corecomponents_v12 258.1.28 → 258.1.30

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.
@@ -1038,6 +1038,8 @@ var CoreComponentsIcon;
1038
1038
  CoreComponentsIcon["Cancel"] = "cancel";
1039
1039
  CoreComponentsIcon["CancelRoundFilled"] = "cancel_round_filled";
1040
1040
  CoreComponentsIcon["CancelRoundOpen"] = "cancel_round_open";
1041
+ CoreComponentsIcon["CaretDownSolid"] = "caret_down_solid";
1042
+ CoreComponentsIcon["CaretUpSolid"] = "caret_up_solid";
1041
1043
  CoreComponentsIcon["Cart"] = "cart";
1042
1044
  CoreComponentsIcon["CartOpen"] = "cart_open";
1043
1045
  CoreComponentsIcon["CaseManager"] = "case_manager";
@@ -1341,6 +1343,8 @@ const CoreComponentsIconSvg = {
1341
1343
  "cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
1342
1344
  "cancel_round_filled": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10Zm9.38,23.32h-5.3L25,28.27l-4.08,5.05H15.63L22.35,25l-6.72-8.32h5.29L25,21.73l4.08-5.05h5.3L27.64,25Z\" fill=\"#484f60\"/></svg>",
1343
1345
  "cancel_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,40.17a15,15,0,1,1,15-15A15,15,0,0,1,25,40.17Zm0-29a14,14,0,1,0,14,14A14,14,0,0,0,25,11.13Z\" fill=\"#484f60\"/><polygon points=\"29.41 32.25 25 26.79 20.59 32.25 17.96 32.25 23.68 25.17 17.96 18.09 20.59 18.09 25 23.54 29.41 18.09 32.04 18.09 26.32 25.17 32.04 32.25 29.41 32.25\" fill=\"#484f60\"/></svg>",
1346
+ "caret_down_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><path d=\"M480 224C492.9 224 504.6 231.8 509.6 243.8C514.6 255.8 511.8 269.5 502.7 278.7L342.7 438.7C330.2 451.2 309.9 451.2 297.4 438.7L137.4 278.7C128.2 269.5 125.5 255.8 130.5 243.8C135.5 231.8 147.1 224 160 224L480 224z\"/></svg>",
1347
+ "caret_up_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><path d=\"M160 416C147.1 416 135.4 408.2 130.4 396.2C125.4 384.2 128.2 370.5 137.4 361.4L297.4 201.4C309.9 188.9 330.2 188.9 342.7 201.4L502.7 361.4C511.9 370.6 514.6 384.3 509.6 396.3C504.6 408.3 492.9 416 480 416L160 416z\"/></svg>",
1344
1348
  "cart": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M16.58,34.84a1.8,1.8,0,1,0,1.8,1.8A1.79,1.79,0,0,0,16.58,34.84Z\" fill=\"#484f60\"/><path d=\"M31.49,34.84a1.8,1.8,0,1,0,1.8,1.8A1.79,1.79,0,0,0,31.49,34.84Z\" fill=\"#484f60\"/><path d=\"M13.39,31.55A1.73,1.73,0,0,0,15,32.72H32.64a1.51,1.51,0,0,0,1.43-1.2L36.6,19a.89.89,0,0,0-1-1.09L10.92,20.83a1,1,0,0,0-.87,1.28Zm19-2.05a1.52,1.52,0,0,1-1.44,1.2H16.51a1.75,1.75,0,0,1-1.57-1.17l-2.31-5.6a1,1,0,0,1,.85-1.29l19.71-2.51a.88.88,0,0,1,1,1.08Z\" fill=\"#484f60\"/><path d=\"M39,17a1.87,1.87,0,0,0-1.36,1.46l-.42,2.89c-.1.67.31,1,.9.7a2.75,2.75,0,0,0,1.33-1.7L40,18A.73.73,0,0,0,39,17Z\" fill=\"#484f60\"/></svg>",
1345
1349
  "cart_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><circle cx=\"17.08\" cy=\"34.14\" r=\"1.8\" fill=\"#4d5050\"/><circle cx=\"31.99\" cy=\"34.14\" r=\"1.8\" fill=\"#4d5050\"/><path d=\"M672.39,388.55a1.73,1.73,0,0,0,1.56,1.17h17.69a1.51,1.51,0,0,0,1.43-1.2L695.6,376a.88.88,0,0,0-1-1.08l-24.68,2.93a1,1,0,0,0-.87,1.28Zm19-2.05a1.52,1.52,0,0,1-1.43,1.2h-14.4a1.75,1.75,0,0,1-1.57-1.16l-2.31-5.61a1,1,0,0,1,.86-1.28l19.71-2.51a.87.87,0,0,1,1,1.08Z\" transform=\"translate(-658.5 -359.5)\" fill=\"#4d5050\"/><path d=\"M698,374a1.88,1.88,0,0,0-1.37,1.46l-.42,2.9c-.1.66.31,1,.9.7a2.74,2.74,0,0,0,1.33-1.7L699,375A.74.74,0,0,0,698,374Z\" transform=\"translate(-658.5 -359.5)\" fill=\"#4d5050\"/></svg>",
1346
1350
  "case_manager": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M26.85,29H23.46a.89.89,0,0,0-.88.88v5.28L24,32.3c.08-.74.69-1.32,2.86-1.36H36v-1.1a.89.89,0,0,0-.88-.88H26.85Z\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M35.38,38.29a.88.88,0,0,1-.88.88H23.76a.88.88,0,0,1-.88-.88l2.2-5.38A.88.88,0,0,1,26,32H36.7a.88.88,0,0,1,.88.88Z\" fill=\"#484f60\" opacity=\"0.75\"/><path d=\"M20.58,35.11V29.83A2.89,2.89,0,0,1,23.46,27h7.4l1.72-1.89a4.22,4.22,0,0,0-4-3.87h-.49c-1.11,1.57-3.41,3.44-5.56,3.44S18,22.76,16.94,21.19h-.49a4.21,4.21,0,0,0-4,3.87l2.68,3c0,1.77,1.81,8.15,4,8.15h1.44Z\" fill=\"#484f60\"/><path d=\"M28.68,16.31c0,2.71-2.77,5.77-6.18,5.77S16.31,19,16.31,16.31s2.77-5.14,6.19-5.14S28.68,13.59,28.68,16.31Z\" fill=\"#484f60\"/></svg>",
@@ -1883,6 +1887,7 @@ class BaseInputComponent {
1883
1887
  this.keyDown = new EventEmitter();
1884
1888
  this.keyUp = new EventEmitter();
1885
1889
  this.modelChange = new EventEmitter();
1890
+ this.selectedValueChange = new EventEmitter();
1886
1891
  this.userModelChange = new EventEmitter();
1887
1892
  this.hiddenChange = new EventEmitter();
1888
1893
  this.cancelClicked = new EventEmitter();
@@ -2631,6 +2636,7 @@ BaseInputComponent.propDecorators = {
2631
2636
  keyDown: [{ type: Output }],
2632
2637
  keyUp: [{ type: Output }],
2633
2638
  modelChange: [{ type: Output }],
2639
+ selectedValueChange: [{ type: Output }],
2634
2640
  userModelChange: [{ type: Output }],
2635
2641
  hiddenChange: [{ type: Output }],
2636
2642
  cancelClicked: [{ type: Output }],
@@ -10106,6 +10112,11 @@ SimpleGridComponent.decorators = [
10106
10112
  [class.simple-grid-column-auto-fit]="column.autoFit"
10107
10113
  [style.width.px]="column.width"
10108
10114
  [style.min-width.px]="MIN_COLUMN_WIDTH">
10115
+ <col
10116
+ *ngIf="((inlineEdit && showRowButtons) || (showDelete && !showRowButtons)) && (hoveredRowIndex >= 0 || selectedRowIndex >= 0 || isNewRow)"
10117
+ [class.icons-col]="true"
10118
+ [class.col-width-row-buttons]="inlineEdit && showRowButtons"
10119
+ [class.col-width-delete]="!showRowButtons && showDelete">
10109
10120
  </colgroup>
10110
10121
  <thead>
10111
10122
  <tr>
@@ -10217,33 +10228,28 @@ SimpleGridComponent.decorators = [
10217
10228
  <div *ngIf="column.resizable" class="simple-grid-column-sizer-placeholder"></div>
10218
10229
  </td>
10219
10230
  </ng-container>
10220
- <ng-container *ngIf="inlineEdit && showRowButtons">
10221
- <div class="icons-container" *ngIf="!editing">
10222
- <co-icon class="icon-item icon-edit"
10223
- [iconData]="icons.getIcon(Icons.PenToSquareSolid)" *ngIf="hoveredRowIndex === rowIndex"
10224
- (click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
10225
- <co-icon class="icon-item icon-delete"
10226
- [iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
10227
- (click)="selectTheRow(rowIndex); removeRow();"></co-icon>
10228
- </div>
10229
- <div class="icons-container">
10230
- <co-button class="save-button"
10231
- *ngIf="editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))"
10232
- [iconData]="icons.getIcon(Icons.CheckDuotone)"
10233
- (click)="validateAndSave(); $event.stopPropagation()"></co-button>
10234
- <co-button class="close-button"
10235
- *ngIf="editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))"
10236
- [iconData]="icons.getIcon(Icons.CrossSkinny)"
10237
- (click)="cancelEditRow(); $event.stopPropagation() "></co-button>
10238
- </div>
10239
- </ng-container>
10240
- <ng-container *ngIf="!(inlineEdit && showRowButtons) && showDelete">
10241
- <div class="icons-container">
10242
- <co-icon class="icon-item icon-delete"
10243
- [iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
10244
- (click)="selectTheRow(rowIndex); removeRow();">
10245
- </co-icon>
10246
- </div>
10231
+ <ng-container *ngIf="(inlineEdit && showRowButtons) || (showDelete && !showRowButtons)">
10232
+ <td class="icons-container"
10233
+ *ngIf="(editRowIndex <= -1 && selectedRowIndex === -1 && hoveredRowIndex === rowIndex) || selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex)">
10234
+ <ng-container>
10235
+ <co-icon class="icon-item icon-edit"
10236
+ *ngIf="!editing && (inlineEdit && showRowButtons)"
10237
+ [iconData]="icons.getIcon(Icons.PenToSquareSolid)"
10238
+ (click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
10239
+ <co-icon class="icon-item icon-delete"
10240
+ [iconData]="icons.getIcon(Icons.TrashBin)"
10241
+ *ngIf="(!editing && (inlineEdit || !inlineEdit) && showRowButtons) || (!showRowButtons && showDelete)"
10242
+ (click)="selectTheRow(rowIndex); removeRow();"></co-icon>
10243
+ </ng-container>
10244
+ <ng-container *ngIf="editing && inlineEdit && showRowButtons && (selectedRowIndex === rowIndex || isNewRow)">
10245
+ <co-button class="save-button"
10246
+ [iconData]="icons.getIcon(Icons.CheckDuotone)"
10247
+ (click)="validateAndSave(); $event.stopPropagation()"></co-button>
10248
+ <co-button class="close-button"
10249
+ [iconData]="icons.getIcon(Icons.CrossSkinny)"
10250
+ (click)="cancelEditRow(); $event.stopPropagation() "></co-button>
10251
+ </ng-container>
10252
+ </td>
10247
10253
  </ng-container>
10248
10254
  </ng-container>
10249
10255
  </tr>
@@ -11559,7 +11565,7 @@ class ListOfValuesComponent extends BaseInputComponent {
11559
11565
  }
11560
11566
  }
11561
11567
  this.setModel(option);
11562
- this.modelChange.emit(this.model);
11568
+ this.selectedValueChange.emit(this.model);
11563
11569
  this.detectChanges();
11564
11570
  }
11565
11571
  closePopup() {