@colijnit/corecomponents_v12 260.1.18 → 261.1.0
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 +25 -7
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/filter-item/filter-item.component.js +164 -164
- package/esm2015/lib/components/input-text/input-text.component.js +27 -7
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +3 -3
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +53 -53
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +1 -1
- package/fesm2015/colijnit-corecomponents_v12.js +243 -223
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-text/input-text.component.d.ts +3 -1
- package/package.json +2 -2
|
@@ -6339,12 +6339,14 @@
|
|
|
6339
6339
|
enumerable: false,
|
|
6340
6340
|
configurable: true
|
|
6341
6341
|
});
|
|
6342
|
-
InputTextComponent.prototype.
|
|
6342
|
+
InputTextComponent.prototype.handleDocumentPointerUp = function (event) {
|
|
6343
6343
|
if (this._isLeftIconMouseDown) {
|
|
6344
|
-
this.
|
|
6344
|
+
this._isLeftIconMouseDown = false;
|
|
6345
|
+
this.leftIconMouseUp.emit(event);
|
|
6345
6346
|
}
|
|
6346
6347
|
if (this._isRightIconMouseDown) {
|
|
6347
|
-
this.
|
|
6348
|
+
this._isRightIconMouseDown = false;
|
|
6349
|
+
this.rightIconMouseUp.emit(event);
|
|
6348
6350
|
}
|
|
6349
6351
|
};
|
|
6350
6352
|
Object.defineProperty(InputTextComponent.prototype, "model", {
|
|
@@ -6416,6 +6418,22 @@
|
|
|
6416
6418
|
this._isRightIconMouseDown = false;
|
|
6417
6419
|
this.rightIconMouseUp.emit(event);
|
|
6418
6420
|
};
|
|
6421
|
+
InputTextComponent.prototype.handleRightIconPointerDown = function (event) {
|
|
6422
|
+
var _a;
|
|
6423
|
+
event.preventDefault();
|
|
6424
|
+
event.stopPropagation();
|
|
6425
|
+
this._isRightIconMouseDown = true;
|
|
6426
|
+
this.rightIconMouseDown.emit(event);
|
|
6427
|
+
(_a = event.target) === null || _a === void 0 ? void 0 : _a.setPointerCapture(event.pointerId);
|
|
6428
|
+
};
|
|
6429
|
+
InputTextComponent.prototype.handleRightIconPointerUp = function (event) {
|
|
6430
|
+
var _a;
|
|
6431
|
+
event.preventDefault();
|
|
6432
|
+
event.stopPropagation();
|
|
6433
|
+
this._isRightIconMouseDown = false;
|
|
6434
|
+
this.rightIconMouseUp.emit(event);
|
|
6435
|
+
(_a = event.target) === null || _a === void 0 ? void 0 : _a.releasePointerCapture(event.pointerId);
|
|
6436
|
+
};
|
|
6419
6437
|
InputTextComponent.prototype.handleInputFocus = function (event) {
|
|
6420
6438
|
event.preventDefault();
|
|
6421
6439
|
event.stopPropagation();
|
|
@@ -6532,7 +6550,7 @@
|
|
|
6532
6550
|
InputTextComponent.decorators = [
|
|
6533
6551
|
{ type: i0.Component, args: [{
|
|
6534
6552
|
selector: 'co-input-text',
|
|
6535
|
-
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon || leftIconData\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\" (mousedown)=\"handleLeftIconMouseDown($event)\"\n (mouseup)=\"handleLeftIconMouseUp($event)\"></co-icon>\n <div *ngIf=\"leftIcon || leftIconData\" class=\"spacer left-icon\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <span class=\"input-text-formatted\" *ngIf=\"!focused && !useContent && formatPipe\"\n [class.show]=\"!focused && !useContent && formatPipe\"\n [ngClass]=\"align\"\n [textContent]=\"pipedModel\"\n (click)=\"handleDoFocus($event)\"\n ></span>\n <input [class.show]=\"focused || !formatPipe\" #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))\"\n [placeholder]=\"type === 'date' && !isFocusedOnDate ? '' : ''\"\n [pattern]=\"type === 'date' ? pattern : undefined\"\n [ngModel]=\"model\"\n [min]=\"(type === 'number' || type === 'date') && this.min ? this.min : undefined\"\n [max]=\"(type === 'number' || type === 'date') && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"handleKeyDownInput($event)\"\n (keyup)=\"keyUp.emit($event)\"\n (focusin)=\"handleInputFocus($event)\"\n (focusout)=\"handleBlur($event)\"\n >\n <ng-container *ngIf=\"useContent\">\n <div class=\"input-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <co-icon [class.show]=\"showClearButton && hasValue && !readonly\" class=\"input-text-clear-button\"\n [icon]=\"icons.CrossSkinny\" (click)=\"clearInput($event)\"></co-icon>\n <div class=\"required-indicator\"></div>\n </div>\n <div *ngIf=\"rightIcon || rightIconData\" class=\"spacer right-icon\"></div>\n <co-icon *ngIf=\"rightIcon || rightIconData\" class=\"input-text-right-icon\" [icon]=\"rightIcon\"\n [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\"
|
|
6553
|
+
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon || leftIconData\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\" (mousedown)=\"handleLeftIconMouseDown($event)\"\n (mouseup)=\"handleLeftIconMouseUp($event)\"></co-icon>\n <div *ngIf=\"leftIcon || leftIconData\" class=\"spacer left-icon\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <span class=\"input-text-formatted\" *ngIf=\"!focused && !useContent && formatPipe\"\n [class.show]=\"!focused && !useContent && formatPipe\"\n [ngClass]=\"align\"\n [textContent]=\"pipedModel\"\n (click)=\"handleDoFocus($event)\"\n ></span>\n <input [class.show]=\"focused || !formatPipe\" #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))\"\n [placeholder]=\"type === 'date' && !isFocusedOnDate ? '' : ''\"\n [pattern]=\"type === 'date' ? pattern : undefined\"\n [ngModel]=\"model\"\n [min]=\"(type === 'number' || type === 'date') && this.min ? this.min : undefined\"\n [max]=\"(type === 'number' || type === 'date') && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"handleKeyDownInput($event)\"\n (keyup)=\"keyUp.emit($event)\"\n (focusin)=\"handleInputFocus($event)\"\n (focusout)=\"handleBlur($event)\"\n >\n <ng-container *ngIf=\"useContent\">\n <div class=\"input-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <co-icon [class.show]=\"showClearButton && hasValue && !readonly\" class=\"input-text-clear-button\"\n [icon]=\"icons.CrossSkinny\" (click)=\"clearInput($event)\"></co-icon>\n <div class=\"required-indicator\"></div>\n </div>\n <div *ngIf=\"rightIcon || rightIconData\" class=\"spacer right-icon\"></div>\n <co-icon *ngIf=\"rightIcon || rightIconData\" class=\"input-text-right-icon\" [icon]=\"rightIcon\"\n [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\"\n (pointerdown)=\"handleRightIconPointerDown($event)\"\n (pointerup)=\"handleRightIconPointerUp($event)\"\n (pointercancel)=\"handleRightIconPointerUp($event)\"></co-icon>\n </div>\n <!--\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n -->\n ",
|
|
6536
6554
|
providers: [
|
|
6537
6555
|
OverlayService, {
|
|
6538
6556
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -6591,7 +6609,7 @@
|
|
|
6591
6609
|
hasLeftIcon: [{ type: i0.HostBinding, args: ['class.has-left-icon',] }],
|
|
6592
6610
|
hasRightIcon: [{ type: i0.HostBinding, args: ['class.has-right-icon',] }],
|
|
6593
6611
|
hasOwnLabel: [{ type: i0.HostBinding, args: ['class.has-own-label',] }],
|
|
6594
|
-
|
|
6612
|
+
handleDocumentPointerUp: [{ type: i0.HostListener, args: ['document:pointerup', ['$event'],] }, { type: i0.HostListener, args: ['document:pointercancel', ['$event'],] }],
|
|
6595
6613
|
model: [{ type: i0.Input }]
|
|
6596
6614
|
};
|
|
6597
6615
|
|
|
@@ -11906,11 +11924,11 @@
|
|
|
11906
11924
|
this.viewModels.length = 0;
|
|
11907
11925
|
this.viewModels = this.viewModelsMain.filter(function (vm) {
|
|
11908
11926
|
return Object.values(vm.model).some(function (value) {
|
|
11909
|
-
if (!_this.searchTerm
|
|
11927
|
+
if (!_this.searchTerm) {
|
|
11910
11928
|
return true;
|
|
11911
11929
|
}
|
|
11912
11930
|
else {
|
|
11913
|
-
return value.toString().toLowerCase().includes(_this.searchTerm.toLowerCase());
|
|
11931
|
+
return value && value.toString().toLowerCase().includes(_this.searchTerm.toLowerCase());
|
|
11914
11932
|
}
|
|
11915
11933
|
});
|
|
11916
11934
|
});
|