@colijnit/corecomponents_v12 260.1.11 → 260.1.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/bundles/colijnit-corecomponents_v12.umd.js +13 -3
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +3 -2
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +22 -14
- package/fesm2015/colijnit-corecomponents_v12.js +23 -14
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/simple-grid/simple-grid.component.d.ts +2 -1
- package/lib/components/simple-grid/style/_layout.scss +7 -25
- package/package.json +1 -1
- package/colijnit-corecomponents_v12-260.1.11.tgz +0 -0
|
@@ -9775,7 +9775,16 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9775
9775
|
this._resetEdit();
|
|
9776
9776
|
this._detectChanges();
|
|
9777
9777
|
}
|
|
9778
|
-
removeRow() {
|
|
9778
|
+
removeRow(row) {
|
|
9779
|
+
this.deleteRow.next(row);
|
|
9780
|
+
if (this.currentPage !== 1) {
|
|
9781
|
+
this.currentPage = 1;
|
|
9782
|
+
this.selectedRowIndex = -1;
|
|
9783
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
9784
|
+
}
|
|
9785
|
+
this._detectChanges();
|
|
9786
|
+
}
|
|
9787
|
+
removeSelectedRow() {
|
|
9779
9788
|
let absoluteIndex = this.selectedRowIndex;
|
|
9780
9789
|
if (this.rowsPerPage) {
|
|
9781
9790
|
absoluteIndex = (this.currentPage - 1) * this.rowsPerPage + this.selectedRowIndex;
|
|
@@ -10180,7 +10189,7 @@ SimpleGridComponent.decorators = [
|
|
|
10180
10189
|
(editClick)="editRow($event)"
|
|
10181
10190
|
(saveClick)="validateAndSave()"
|
|
10182
10191
|
(cancelClick)="cancelEditRow()"
|
|
10183
|
-
(deleteClick)="
|
|
10192
|
+
(deleteClick)="removeSelectedRow()">
|
|
10184
10193
|
</co-grid-toolbar>
|
|
10185
10194
|
|
|
10186
10195
|
<table
|
|
@@ -10195,10 +10204,10 @@ SimpleGridComponent.decorators = [
|
|
|
10195
10204
|
[style.width.px]="column.width"
|
|
10196
10205
|
[style.min-width.px]="MIN_COLUMN_WIDTH">
|
|
10197
10206
|
<col
|
|
10198
|
-
*ngIf="
|
|
10199
|
-
[class.
|
|
10200
|
-
[
|
|
10201
|
-
|
|
10207
|
+
*ngIf="showRowButtons"
|
|
10208
|
+
[class.simple-grid-column-auto-fit]="true"
|
|
10209
|
+
[style.min-width.px]="MIN_COLUMN_WIDTH">
|
|
10210
|
+
>
|
|
10202
10211
|
</colgroup>
|
|
10203
10212
|
<thead>
|
|
10204
10213
|
<tr>
|
|
@@ -10310,20 +10319,19 @@ SimpleGridComponent.decorators = [
|
|
|
10310
10319
|
<div *ngIf="column.resizable" class="simple-grid-column-sizer-placeholder"></div>
|
|
10311
10320
|
</td>
|
|
10312
10321
|
</ng-container>
|
|
10313
|
-
<ng-container *ngIf="
|
|
10314
|
-
<td class="icons-container"
|
|
10315
|
-
*ngIf="(editRowIndex <= -1 && selectedRowIndex === -1 && hoveredRowIndex === rowIndex) || selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex)">
|
|
10322
|
+
<ng-container *ngIf="showRowButtons">
|
|
10323
|
+
<td class="icons-container" [class.show-content]="selectedRowIndex === rowIndex || hoveredRowIndex === rowIndex">
|
|
10316
10324
|
<ng-container>
|
|
10317
10325
|
<co-icon class="icon-item icon-edit"
|
|
10318
|
-
*ngIf="
|
|
10326
|
+
*ngIf="editRowIndex !== rowIndex && inlineEdit"
|
|
10319
10327
|
[iconData]="icons.getIcon(Icons.PenToSquareSolid)"
|
|
10320
10328
|
(click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
|
|
10321
10329
|
<co-icon class="icon-item icon-delete"
|
|
10322
10330
|
[iconData]="icons.getIcon(Icons.TrashBin)"
|
|
10323
|
-
*ngIf="(
|
|
10324
|
-
(click)="
|
|
10331
|
+
*ngIf="(editRowIndex !== rowIndex && showDelete)"
|
|
10332
|
+
(click)="removeRow(data[rowIndex])"></co-icon>
|
|
10325
10333
|
</ng-container>
|
|
10326
|
-
<ng-container *ngIf="editing && inlineEdit &&
|
|
10334
|
+
<ng-container *ngIf="editing && inlineEdit && (selectedRowIndex === rowIndex || isNewRow) && editRowIndex === rowIndex">
|
|
10327
10335
|
<co-button class="save-button"
|
|
10328
10336
|
[iconData]="icons.getIcon(Icons.CheckDuotone)"
|
|
10329
10337
|
(click)="validateAndSave(); $event.stopPropagation()"></co-button>
|
|
@@ -15246,7 +15254,8 @@ class HourSchedulingExpandableComponent {
|
|
|
15246
15254
|
return split.join(':');
|
|
15247
15255
|
}
|
|
15248
15256
|
convertTZ(date, tzString) {
|
|
15249
|
-
|
|
15257
|
+
var _a;
|
|
15258
|
+
return new Date((_a = (typeof date === "string" ? new Date(date) : date)) === null || _a === void 0 ? void 0 : _a.toLocaleString("en-US", { timeZone: tzString }));
|
|
15250
15259
|
}
|
|
15251
15260
|
convertDateToEuropean(date) {
|
|
15252
15261
|
return this.convertTZ(date, 'Europe/Amsterdam');
|