@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
|
@@ -12049,12 +12049,12 @@
|
|
|
12049
12049
|
}
|
|
12050
12050
|
this.selectedModel = model;
|
|
12051
12051
|
};
|
|
12052
|
-
ListOfValuesComponent.prototype.onModelChange = function (
|
|
12052
|
+
ListOfValuesComponent.prototype.onModelChange = function (model) {
|
|
12053
12053
|
var _this = this;
|
|
12054
12054
|
this.isLoading = true;
|
|
12055
12055
|
clearTimeout(this.debounceTimeout);
|
|
12056
12056
|
this.debounceTimeout = setTimeout(function () {
|
|
12057
|
-
_this.applyFilter(
|
|
12057
|
+
_this.applyFilter(model);
|
|
12058
12058
|
}, 300);
|
|
12059
12059
|
};
|
|
12060
12060
|
ListOfValuesComponent.prototype.applyFilter = function (text) {
|
|
@@ -12097,6 +12097,9 @@
|
|
|
12097
12097
|
(((_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();
|
|
12098
12098
|
this.isLoading = false;
|
|
12099
12099
|
this.changeDetector.detectChanges();
|
|
12100
|
+
if (this._lovPopupComponentRef) {
|
|
12101
|
+
this._lovPopupComponentRef.instance.searchTerm = text;
|
|
12102
|
+
}
|
|
12100
12103
|
return [2 /*return*/];
|
|
12101
12104
|
}
|
|
12102
12105
|
});
|
|
@@ -12239,7 +12242,7 @@
|
|
|
12239
12242
|
ListOfValuesComponent.decorators = [
|
|
12240
12243
|
{ type: i0.Component, args: [{
|
|
12241
12244
|
selector: 'co-list-of-values',
|
|
12242
|
-
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"model\">\n ",
|
|
12245
|
+
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? ((!selectedModels || selectedModels.length === 0) ? null : selectedModels ) : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"(selectedModels && selectedModels.length) || selectedModel ? model : null\">\n ",
|
|
12243
12246
|
providers: [
|
|
12244
12247
|
OverlayService,
|
|
12245
12248
|
{
|
|
@@ -14608,7 +14611,7 @@
|
|
|
14608
14611
|
if (myCfgObj) {
|
|
14609
14612
|
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
14610
14613
|
if (!this.screenConfigNativeElement) {
|
|
14611
|
-
this.hostComponent.required = myCfgObj.isRequired();
|
|
14614
|
+
this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
|
|
14612
14615
|
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
14613
14616
|
this.hostComponent.decimals = myCfgObj.scale;
|
|
14614
14617
|
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
@@ -15329,13 +15332,15 @@
|
|
|
15329
15332
|
return split.join(':');
|
|
15330
15333
|
};
|
|
15331
15334
|
HourSchedulingExpandableComponent.prototype.convertTZ = function (date, tzString) {
|
|
15332
|
-
|
|
15335
|
+
var _a;
|
|
15336
|
+
return new Date((_a = (typeof date === "string" ? new Date(date) : date)) === null || _a === void 0 ? void 0 : _a.toLocaleString("en-US", { timeZone: tzString }));
|
|
15333
15337
|
};
|
|
15334
15338
|
HourSchedulingExpandableComponent.prototype.convertDateToEuropean = function (date) {
|
|
15335
15339
|
return this.convertTZ(date, 'Europe/Amsterdam');
|
|
15336
15340
|
};
|
|
15337
15341
|
HourSchedulingExpandableComponent.prototype.handleDeselectAll = function () {
|
|
15338
|
-
|
|
15342
|
+
var _a;
|
|
15343
|
+
(_a = this.scheduledObjects) === null || _a === void 0 ? void 0 : _a.forEach(function (scheduledObject) {
|
|
15339
15344
|
if (scheduledObject.selected) {
|
|
15340
15345
|
scheduledObject.selected = false;
|
|
15341
15346
|
}
|