@colijnit/corecomponents_v12 259.1.24 → 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 +11 -6
- 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/directives/screen-configuration/screen-configuration.directive.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +62 -57
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-values/list-of-values.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11572,11 +11572,11 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11572
11572
|
}
|
|
11573
11573
|
this.selectedModel = model;
|
|
11574
11574
|
}
|
|
11575
|
-
onModelChange(
|
|
11575
|
+
onModelChange(model) {
|
|
11576
11576
|
this.isLoading = true;
|
|
11577
11577
|
clearTimeout(this.debounceTimeout);
|
|
11578
11578
|
this.debounceTimeout = setTimeout(() => {
|
|
11579
|
-
this.applyFilter(
|
|
11579
|
+
this.applyFilter(model);
|
|
11580
11580
|
}, 300);
|
|
11581
11581
|
}
|
|
11582
11582
|
applyFilter(text) {
|
|
@@ -11607,6 +11607,9 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11607
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();
|
|
11608
11608
|
this.isLoading = false;
|
|
11609
11609
|
this.changeDetector.detectChanges();
|
|
11610
|
+
if (this._lovPopupComponentRef) {
|
|
11611
|
+
this._lovPopupComponentRef.instance.searchTerm = text;
|
|
11612
|
+
}
|
|
11610
11613
|
});
|
|
11611
11614
|
}
|
|
11612
11615
|
handleInputKeyDown(event) {
|
|
@@ -11741,58 +11744,58 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11741
11744
|
ListOfValuesComponent.decorators = [
|
|
11742
11745
|
{ type: Component, args: [{
|
|
11743
11746
|
selector: 'co-list-of-values',
|
|
11744
|
-
template: `
|
|
11745
|
-
<co-input-text
|
|
11746
|
-
*ngIf="!largeCollection"
|
|
11747
|
-
aria-haspopup="listbox"
|
|
11748
|
-
[attr.aria-expanded]="isSelectOpen"
|
|
11749
|
-
aria-controls="lov-popup"
|
|
11750
|
-
role="combobox"
|
|
11751
|
-
class="no-focus-line"
|
|
11752
|
-
overlayParent
|
|
11753
|
-
#parentForOverlay="overlayParent"
|
|
11754
|
-
type="text"
|
|
11755
|
-
[id]="label"
|
|
11756
|
-
[model]="multiselect ? selectedModels : selectedModel"
|
|
11757
|
-
[placeholder]="label"
|
|
11758
|
-
[myFormInputInstance]="this"
|
|
11759
|
-
[readonly]="readonly"
|
|
11760
|
-
[disabled]="disabled"
|
|
11761
|
-
[required]="required"
|
|
11762
|
-
[noClickFocus]="false"
|
|
11763
|
-
[leftIconData]=" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData"
|
|
11764
|
-
[rightIcon]="isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular"
|
|
11765
|
-
[showClearButton]="true"
|
|
11766
|
-
[useContent]="multiselect"
|
|
11767
|
-
[customHeight]="multiselect"
|
|
11768
|
-
[keepFocussed]="keepFocussed"
|
|
11769
|
-
(modelChange)="handleInputModelChange($event)"
|
|
11770
|
-
(click)="openPopup()"
|
|
11771
|
-
(rightIconClick)="toggleSelect()"
|
|
11772
|
-
(keydown)="handleInputKeyDown($event)"
|
|
11773
|
-
(clearIconClick)="clearModel($event)"
|
|
11774
|
-
(blur)="checkModel()">
|
|
11775
|
-
<ng-container *ngIf="multiselect && showChips">
|
|
11776
|
-
<div class="multiselect-chips-wrapper">
|
|
11777
|
-
<div class="chips" *ngFor="let chip of model">
|
|
11778
|
-
<span class="chips-description" [textContent]="chip[displayField]"></span>
|
|
11779
|
-
<co-icon class="remove-chip-icon" [icon]="icons.CrossSkinny" (click)="removeOptionFromModel(chip)"></co-icon>
|
|
11780
|
-
</div>
|
|
11781
|
-
</div>
|
|
11782
|
-
</ng-container>
|
|
11783
|
-
</co-input-text>
|
|
11784
|
-
|
|
11785
|
-
<co-input-text
|
|
11786
|
-
*ngIf="largeCollection"
|
|
11787
|
-
[model]="filterText"
|
|
11788
|
-
[placeholder]="label"
|
|
11789
|
-
[required]="required"
|
|
11790
|
-
[disabled]="disabled"
|
|
11791
|
-
[readonly]="readonly"
|
|
11792
|
-
(modelChange)="onModelChange($event)">
|
|
11793
|
-
</co-input-text>
|
|
11794
|
-
<div *ngIf="isLoading" class="filter-loader"><span></span></div>
|
|
11795
|
-
<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">
|
|
11796
11799
|
`,
|
|
11797
11800
|
providers: [
|
|
11798
11801
|
OverlayService,
|
|
@@ -14289,7 +14292,7 @@ class ScreenConfigurationDirective {
|
|
|
14289
14292
|
if (myCfgObj) {
|
|
14290
14293
|
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
14291
14294
|
if (!this.screenConfigNativeElement) {
|
|
14292
|
-
this.hostComponent.required = myCfgObj.isRequired();
|
|
14295
|
+
this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
|
|
14293
14296
|
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
14294
14297
|
this.hostComponent.decimals = myCfgObj.scale;
|
|
14295
14298
|
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
@@ -15042,13 +15045,15 @@ class HourSchedulingExpandableComponent {
|
|
|
15042
15045
|
return split.join(':');
|
|
15043
15046
|
}
|
|
15044
15047
|
convertTZ(date, tzString) {
|
|
15045
|
-
|
|
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 }));
|
|
15046
15050
|
}
|
|
15047
15051
|
convertDateToEuropean(date) {
|
|
15048
15052
|
return this.convertTZ(date, 'Europe/Amsterdam');
|
|
15049
15053
|
}
|
|
15050
15054
|
handleDeselectAll() {
|
|
15051
|
-
|
|
15055
|
+
var _a;
|
|
15056
|
+
(_a = this.scheduledObjects) === null || _a === void 0 ? void 0 : _a.forEach((scheduledObject) => {
|
|
15052
15057
|
if (scheduledObject.selected) {
|
|
15053
15058
|
scheduledObject.selected = false;
|
|
15054
15059
|
}
|