@colijnit/corecomponents_v12 260.1.9 → 260.1.10

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.
@@ -10192,6 +10192,11 @@ SimpleGridComponent.decorators = [
10192
10192
  [class.simple-grid-column-auto-fit]="column.autoFit"
10193
10193
  [style.width.px]="column.width"
10194
10194
  [style.min-width.px]="MIN_COLUMN_WIDTH">
10195
+ <col
10196
+ *ngIf="((inlineEdit && showRowButtons) || (showDelete && !showRowButtons)) && (hoveredRowIndex >= 0 || selectedRowIndex >= 0 || isNewRow)"
10197
+ [class.icons-col]="true"
10198
+ [class.col-width-row-buttons]="inlineEdit && showRowButtons"
10199
+ [class.col-width-delete]="!showRowButtons && showDelete">
10195
10200
  </colgroup>
10196
10201
  <thead>
10197
10202
  <tr>
@@ -10303,33 +10308,28 @@ SimpleGridComponent.decorators = [
10303
10308
  <div *ngIf="column.resizable" class="simple-grid-column-sizer-placeholder"></div>
10304
10309
  </td>
10305
10310
  </ng-container>
10306
- <ng-container *ngIf="inlineEdit && showRowButtons">
10307
- <div class="icons-container" *ngIf="!editing">
10308
- <co-icon class="icon-item icon-edit"
10309
- [iconData]="icons.getIcon(Icons.PenToSquareSolid)" *ngIf="hoveredRowIndex === rowIndex"
10310
- (click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
10311
- <co-icon class="icon-item icon-delete"
10312
- [iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
10313
- (click)="selectTheRow(rowIndex); removeRow();"></co-icon>
10314
- </div>
10315
- <div class="icons-container">
10316
- <co-button class="save-button"
10317
- *ngIf="editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))"
10318
- [iconData]="icons.getIcon(Icons.CheckDuotone)"
10319
- (click)="validateAndSave(); $event.stopPropagation()"></co-button>
10320
- <co-button class="close-button"
10321
- *ngIf="editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))"
10322
- [iconData]="icons.getIcon(Icons.CrossSkinny)"
10323
- (click)="cancelEditRow(); $event.stopPropagation() "></co-button>
10324
- </div>
10325
- </ng-container>
10326
- <ng-container *ngIf="!(inlineEdit && showRowButtons) && showDelete">
10327
- <div class="icons-container">
10328
- <co-icon class="icon-item icon-delete"
10329
- [iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
10330
- (click)="selectTheRow(rowIndex); removeRow();">
10331
- </co-icon>
10332
- </div>
10311
+ <ng-container *ngIf="(inlineEdit && showRowButtons) || (showDelete && !showRowButtons)">
10312
+ <td class="icons-container"
10313
+ *ngIf="(editRowIndex <= -1 && selectedRowIndex === -1 && hoveredRowIndex === rowIndex) || selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex)">
10314
+ <ng-container>
10315
+ <co-icon class="icon-item icon-edit"
10316
+ *ngIf="!editing && (inlineEdit && showRowButtons)"
10317
+ [iconData]="icons.getIcon(Icons.PenToSquareSolid)"
10318
+ (click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
10319
+ <co-icon class="icon-item icon-delete"
10320
+ [iconData]="icons.getIcon(Icons.TrashBin)"
10321
+ *ngIf="(!editing && (inlineEdit || !inlineEdit) && showRowButtons) || (!showRowButtons && showDelete)"
10322
+ (click)="selectTheRow(rowIndex); removeRow();"></co-icon>
10323
+ </ng-container>
10324
+ <ng-container *ngIf="editing && inlineEdit && showRowButtons && (selectedRowIndex === rowIndex || isNewRow)">
10325
+ <co-button class="save-button"
10326
+ [iconData]="icons.getIcon(Icons.CheckDuotone)"
10327
+ (click)="validateAndSave(); $event.stopPropagation()"></co-button>
10328
+ <co-button class="close-button"
10329
+ [iconData]="icons.getIcon(Icons.CrossSkinny)"
10330
+ (click)="cancelEditRow(); $event.stopPropagation() "></co-button>
10331
+ </ng-container>
10332
+ </td>
10333
10333
  </ng-container>
10334
10334
  </ng-container>
10335
10335
  </tr>
@@ -15085,7 +15085,7 @@ class HourSchedulingExpandableComponent {
15085
15085
  handleDrop(dragEvent, hour) {
15086
15086
  dragEvent.preventDefault();
15087
15087
  dragEvent.stopPropagation();
15088
- if (!this.schedule[this.objectsProp] || !this.schedule[this.objectsProp].find((object) => object[this.idProp] === this.currentDraggingObject.id) && this.currentDraggingObject) {
15088
+ if (!this.schedule[this.objectsProp] || !this.schedule[this.objectsProp].find((object) => { var _a; return object[this.idProp] === this.currentDraggingObject && ((_a = this.currentDraggingObject) === null || _a === void 0 ? void 0 : _a.id); })) {
15089
15089
  this.currentDraggingObject = undefined;
15090
15090
  }
15091
15091
  if (this.currentDraggingObject) {