@colijnit/corecomponents_v12 259.1.23 → 259.1.25
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 +22 -8
- 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 +5 -3
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +58 -55
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +22 -14
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +83 -70
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-values/list-of-values.component.d.ts +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-259.1.23.tgz +0 -0
|
@@ -9773,7 +9773,16 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9773
9773
|
this._resetEdit();
|
|
9774
9774
|
this._detectChanges();
|
|
9775
9775
|
}
|
|
9776
|
-
removeRow() {
|
|
9776
|
+
removeRow(row) {
|
|
9777
|
+
this.deleteRow.next(row);
|
|
9778
|
+
if (this.currentPage !== 1) {
|
|
9779
|
+
this.currentPage = 1;
|
|
9780
|
+
this.selectedRowIndex = -1;
|
|
9781
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
9782
|
+
}
|
|
9783
|
+
this._detectChanges();
|
|
9784
|
+
}
|
|
9785
|
+
removeSelectedRow() {
|
|
9777
9786
|
let absoluteIndex = this.selectedRowIndex;
|
|
9778
9787
|
if (this.rowsPerPage) {
|
|
9779
9788
|
absoluteIndex = (this.currentPage - 1) * this.rowsPerPage + this.selectedRowIndex;
|
|
@@ -10178,7 +10187,7 @@ SimpleGridComponent.decorators = [
|
|
|
10178
10187
|
(editClick)="editRow($event)"
|
|
10179
10188
|
(saveClick)="validateAndSave()"
|
|
10180
10189
|
(cancelClick)="cancelEditRow()"
|
|
10181
|
-
(deleteClick)="
|
|
10190
|
+
(deleteClick)="removeSelectedRow()">
|
|
10182
10191
|
</co-grid-toolbar>
|
|
10183
10192
|
|
|
10184
10193
|
<table
|
|
@@ -10193,10 +10202,10 @@ SimpleGridComponent.decorators = [
|
|
|
10193
10202
|
[style.width.px]="column.width"
|
|
10194
10203
|
[style.min-width.px]="MIN_COLUMN_WIDTH">
|
|
10195
10204
|
<col
|
|
10196
|
-
*ngIf="
|
|
10197
|
-
[class.
|
|
10198
|
-
[
|
|
10199
|
-
|
|
10205
|
+
*ngIf="showRowButtons"
|
|
10206
|
+
[class.simple-grid-column-auto-fit]="true"
|
|
10207
|
+
[style.min-width.px]="MIN_COLUMN_WIDTH">
|
|
10208
|
+
>
|
|
10200
10209
|
</colgroup>
|
|
10201
10210
|
<thead>
|
|
10202
10211
|
<tr>
|
|
@@ -10308,20 +10317,19 @@ SimpleGridComponent.decorators = [
|
|
|
10308
10317
|
<div *ngIf="column.resizable" class="simple-grid-column-sizer-placeholder"></div>
|
|
10309
10318
|
</td>
|
|
10310
10319
|
</ng-container>
|
|
10311
|
-
<ng-container *ngIf="
|
|
10312
|
-
<td class="icons-container"
|
|
10313
|
-
*ngIf="(editRowIndex <= -1 && selectedRowIndex === -1 && hoveredRowIndex === rowIndex) || selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex)">
|
|
10320
|
+
<ng-container *ngIf="showRowButtons">
|
|
10321
|
+
<td class="icons-container" [class.show-content]="selectedRowIndex === rowIndex || hoveredRowIndex === rowIndex">
|
|
10314
10322
|
<ng-container>
|
|
10315
10323
|
<co-icon class="icon-item icon-edit"
|
|
10316
|
-
*ngIf="
|
|
10324
|
+
*ngIf="editRowIndex !== rowIndex && inlineEdit"
|
|
10317
10325
|
[iconData]="icons.getIcon(Icons.PenToSquareSolid)"
|
|
10318
10326
|
(click)="editRow($event, true, rowIndex); $event.stopPropagation()"></co-icon>
|
|
10319
10327
|
<co-icon class="icon-item icon-delete"
|
|
10320
10328
|
[iconData]="icons.getIcon(Icons.TrashBin)"
|
|
10321
|
-
*ngIf="(
|
|
10322
|
-
(click)="
|
|
10329
|
+
*ngIf="(editRowIndex !== rowIndex && showDelete)"
|
|
10330
|
+
(click)="removeRow(data[rowIndex])"></co-icon>
|
|
10323
10331
|
</ng-container>
|
|
10324
|
-
<ng-container *ngIf="editing && inlineEdit &&
|
|
10332
|
+
<ng-container *ngIf="editing && inlineEdit && (selectedRowIndex === rowIndex || isNewRow) && editRowIndex === rowIndex">
|
|
10325
10333
|
<co-button class="save-button"
|
|
10326
10334
|
[iconData]="icons.getIcon(Icons.CheckDuotone)"
|
|
10327
10335
|
(click)="validateAndSave(); $event.stopPropagation()"></co-button>
|
|
@@ -11564,11 +11572,11 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11564
11572
|
}
|
|
11565
11573
|
this.selectedModel = model;
|
|
11566
11574
|
}
|
|
11567
|
-
onModelChange(
|
|
11575
|
+
onModelChange(model) {
|
|
11568
11576
|
this.isLoading = true;
|
|
11569
11577
|
clearTimeout(this.debounceTimeout);
|
|
11570
11578
|
this.debounceTimeout = setTimeout(() => {
|
|
11571
|
-
this.applyFilter(
|
|
11579
|
+
this.applyFilter(model);
|
|
11572
11580
|
}, 300);
|
|
11573
11581
|
}
|
|
11574
11582
|
applyFilter(text) {
|
|
@@ -11599,6 +11607,9 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11599
11607
|
(((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_c = this.filterText) === null || _c === void 0 ? void 0 : _c.length) > 2) ? this.openPopup() : this.closePopup();
|
|
11600
11608
|
this.isLoading = false;
|
|
11601
11609
|
this.changeDetector.detectChanges();
|
|
11610
|
+
if (this._lovPopupComponentRef) {
|
|
11611
|
+
this._lovPopupComponentRef.instance.searchTerm = text;
|
|
11612
|
+
}
|
|
11602
11613
|
});
|
|
11603
11614
|
}
|
|
11604
11615
|
handleInputKeyDown(event) {
|
|
@@ -11733,58 +11744,58 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11733
11744
|
ListOfValuesComponent.decorators = [
|
|
11734
11745
|
{ type: Component, args: [{
|
|
11735
11746
|
selector: 'co-list-of-values',
|
|
11736
|
-
template: `
|
|
11737
|
-
<co-input-text
|
|
11738
|
-
*ngIf="!largeCollection"
|
|
11739
|
-
aria-haspopup="listbox"
|
|
11740
|
-
[attr.aria-expanded]="isSelectOpen"
|
|
11741
|
-
aria-controls="lov-popup"
|
|
11742
|
-
role="combobox"
|
|
11743
|
-
class="no-focus-line"
|
|
11744
|
-
overlayParent
|
|
11745
|
-
#parentForOverlay="overlayParent"
|
|
11746
|
-
type="text"
|
|
11747
|
-
[id]="label"
|
|
11748
|
-
[model]="multiselect ? selectedModels : selectedModel"
|
|
11749
|
-
[placeholder]="label"
|
|
11750
|
-
[myFormInputInstance]="this"
|
|
11751
|
-
[readonly]="readonly"
|
|
11752
|
-
[disabled]="disabled"
|
|
11753
|
-
[required]="required"
|
|
11754
|
-
[noClickFocus]="false"
|
|
11755
|
-
[leftIconData]=" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData"
|
|
11756
|
-
[rightIcon]="isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular"
|
|
11757
|
-
[showClearButton]="true"
|
|
11758
|
-
[useContent]="multiselect"
|
|
11759
|
-
[customHeight]="multiselect"
|
|
11760
|
-
[keepFocussed]="keepFocussed"
|
|
11761
|
-
(modelChange)="handleInputModelChange($event)"
|
|
11762
|
-
(click)="openPopup()"
|
|
11763
|
-
(rightIconClick)="toggleSelect()"
|
|
11764
|
-
(keydown)="handleInputKeyDown($event)"
|
|
11765
|
-
(clearIconClick)="clearModel($event)"
|
|
11766
|
-
(blur)="checkModel()">
|
|
11767
|
-
<ng-container *ngIf="multiselect && showChips">
|
|
11768
|
-
<div class="multiselect-chips-wrapper">
|
|
11769
|
-
<div class="chips" *ngFor="let chip of model">
|
|
11770
|
-
<span class="chips-description" [textContent]="chip[displayField]"></span>
|
|
11771
|
-
<co-icon class="remove-chip-icon" [icon]="icons.CrossSkinny" (click)="removeOptionFromModel(chip)"></co-icon>
|
|
11772
|
-
</div>
|
|
11773
|
-
</div>
|
|
11774
|
-
</ng-container>
|
|
11775
|
-
</co-input-text>
|
|
11776
|
-
|
|
11777
|
-
<co-input-text
|
|
11778
|
-
*ngIf="largeCollection"
|
|
11779
|
-
[model]="filterText"
|
|
11780
|
-
[placeholder]="label"
|
|
11781
|
-
[required]="required"
|
|
11782
|
-
[disabled]="disabled"
|
|
11783
|
-
[readonly]="readonly"
|
|
11784
|
-
(modelChange)="onModelChange($event)">
|
|
11785
|
-
</co-input-text>
|
|
11786
|
-
<div *ngIf="isLoading" class="filter-loader"><span></span></div>
|
|
11787
|
-
<input type="hidden" [ngModel]="model">
|
|
11747
|
+
template: `
|
|
11748
|
+
<co-input-text
|
|
11749
|
+
*ngIf="!largeCollection"
|
|
11750
|
+
aria-haspopup="listbox"
|
|
11751
|
+
[attr.aria-expanded]="isSelectOpen"
|
|
11752
|
+
aria-controls="lov-popup"
|
|
11753
|
+
role="combobox"
|
|
11754
|
+
class="no-focus-line"
|
|
11755
|
+
overlayParent
|
|
11756
|
+
#parentForOverlay="overlayParent"
|
|
11757
|
+
type="text"
|
|
11758
|
+
[id]="label"
|
|
11759
|
+
[model]="multiselect ? ((!selectedModels || selectedModels.length === 0) ? null : selectedModels ) : selectedModel"
|
|
11760
|
+
[placeholder]="label"
|
|
11761
|
+
[myFormInputInstance]="this"
|
|
11762
|
+
[readonly]="readonly"
|
|
11763
|
+
[disabled]="disabled"
|
|
11764
|
+
[required]="required"
|
|
11765
|
+
[noClickFocus]="false"
|
|
11766
|
+
[leftIconData]=" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData"
|
|
11767
|
+
[rightIcon]="isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular"
|
|
11768
|
+
[showClearButton]="true"
|
|
11769
|
+
[useContent]="multiselect"
|
|
11770
|
+
[customHeight]="multiselect"
|
|
11771
|
+
[keepFocussed]="keepFocussed"
|
|
11772
|
+
(modelChange)="handleInputModelChange($event)"
|
|
11773
|
+
(click)="openPopup()"
|
|
11774
|
+
(rightIconClick)="toggleSelect()"
|
|
11775
|
+
(keydown)="handleInputKeyDown($event)"
|
|
11776
|
+
(clearIconClick)="clearModel($event)"
|
|
11777
|
+
(blur)="checkModel()">
|
|
11778
|
+
<ng-container *ngIf="multiselect && showChips">
|
|
11779
|
+
<div class="multiselect-chips-wrapper">
|
|
11780
|
+
<div class="chips" *ngFor="let chip of model">
|
|
11781
|
+
<span class="chips-description" [textContent]="chip[displayField]"></span>
|
|
11782
|
+
<co-icon class="remove-chip-icon" [icon]="icons.CrossSkinny" (click)="removeOptionFromModel(chip)"></co-icon>
|
|
11783
|
+
</div>
|
|
11784
|
+
</div>
|
|
11785
|
+
</ng-container>
|
|
11786
|
+
</co-input-text>
|
|
11787
|
+
|
|
11788
|
+
<co-input-text
|
|
11789
|
+
*ngIf="largeCollection"
|
|
11790
|
+
[model]="filterText"
|
|
11791
|
+
[placeholder]="label"
|
|
11792
|
+
[required]="required"
|
|
11793
|
+
[disabled]="disabled"
|
|
11794
|
+
[readonly]="readonly"
|
|
11795
|
+
(modelChange)="onModelChange($event)">
|
|
11796
|
+
</co-input-text>
|
|
11797
|
+
<div *ngIf="isLoading" class="filter-loader"><span></span></div>
|
|
11798
|
+
<input type="hidden" [ngModel]="(selectedModels && selectedModels.length) || selectedModel ? model : null">
|
|
11788
11799
|
`,
|
|
11789
11800
|
providers: [
|
|
11790
11801
|
OverlayService,
|
|
@@ -14281,7 +14292,7 @@ class ScreenConfigurationDirective {
|
|
|
14281
14292
|
if (myCfgObj) {
|
|
14282
14293
|
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
14283
14294
|
if (!this.screenConfigNativeElement) {
|
|
14284
|
-
this.hostComponent.required = myCfgObj.isRequired();
|
|
14295
|
+
this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
|
|
14285
14296
|
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
14286
14297
|
this.hostComponent.decimals = myCfgObj.scale;
|
|
14287
14298
|
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
@@ -15034,13 +15045,15 @@ class HourSchedulingExpandableComponent {
|
|
|
15034
15045
|
return split.join(':');
|
|
15035
15046
|
}
|
|
15036
15047
|
convertTZ(date, tzString) {
|
|
15037
|
-
|
|
15048
|
+
var _a;
|
|
15049
|
+
return new Date((_a = (typeof date === "string" ? new Date(date) : date)) === null || _a === void 0 ? void 0 : _a.toLocaleString("en-US", { timeZone: tzString }));
|
|
15038
15050
|
}
|
|
15039
15051
|
convertDateToEuropean(date) {
|
|
15040
15052
|
return this.convertTZ(date, 'Europe/Amsterdam');
|
|
15041
15053
|
}
|
|
15042
15054
|
handleDeselectAll() {
|
|
15043
|
-
|
|
15055
|
+
var _a;
|
|
15056
|
+
(_a = this.scheduledObjects) === null || _a === void 0 ? void 0 : _a.forEach((scheduledObject) => {
|
|
15044
15057
|
if (scheduledObject.selected) {
|
|
15045
15058
|
scheduledObject.selected = false;
|
|
15046
15059
|
}
|