@colijnit/corecomponents_v12 12.2.24 → 12.2.26
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 +20 -3
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +4 -1
- package/esm2015/lib/components/input-search/input-search.component.js +4 -1
- package/esm2015/lib/components/input-text/input-text.component.js +16 -1
- package/fesm2015/colijnit-corecomponents_v12.js +21 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-scanner/input-scanner.component.d.ts +1 -0
- package/lib/components/input-search/input-search.component.d.ts +1 -0
- package/lib/components/input-text/input-text.component.d.ts +3 -0
- package/package.json +2 -2
|
@@ -6217,6 +6217,7 @@
|
|
|
6217
6217
|
_this.rightIconMouseDown = new i0.EventEmitter();
|
|
6218
6218
|
_this.rightIconMouseUp = new i0.EventEmitter();
|
|
6219
6219
|
_this.clearIconClick = new i0.EventEmitter();
|
|
6220
|
+
_this.isFocused = new i0.EventEmitter();
|
|
6220
6221
|
_this.hasOwnLabel = true;
|
|
6221
6222
|
_this._isLeftIconMouseDown = false;
|
|
6222
6223
|
_this._isRightIconMouseDown = false;
|
|
@@ -6314,6 +6315,17 @@
|
|
|
6314
6315
|
this._isRightIconMouseDown = false;
|
|
6315
6316
|
this.rightIconMouseUp.emit(event);
|
|
6316
6317
|
};
|
|
6318
|
+
InputTextComponent.prototype.handleInputFocus = function (event) {
|
|
6319
|
+
event.preventDefault();
|
|
6320
|
+
event.stopPropagation();
|
|
6321
|
+
this.isFocused.emit(this.focused);
|
|
6322
|
+
};
|
|
6323
|
+
InputTextComponent.prototype.handleBlur = function (event) {
|
|
6324
|
+
event.preventDefault();
|
|
6325
|
+
event.stopPropagation();
|
|
6326
|
+
this.focused = false;
|
|
6327
|
+
this.isFocused.emit(false);
|
|
6328
|
+
};
|
|
6317
6329
|
InputTextComponent.prototype.clearInput = function (event) {
|
|
6318
6330
|
this.setModel(null);
|
|
6319
6331
|
this.clearIconClick.emit(event);
|
|
@@ -6323,7 +6335,7 @@
|
|
|
6323
6335
|
InputTextComponent.decorators = [
|
|
6324
6336
|
{ type: i0.Component, args: [{
|
|
6325
6337
|
selector: 'co-input-text',
|
|
6326
|
-
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 <input #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"digitsOnly ? 'number' : type\"\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)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n (keyup)=\"keyUp.emit($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 && focused && !readonly\" class=\"input-text-clear-button\" [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\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\" (mousedown)=\"handleRightIconMouseDown($event)\" (mouseup)=\"handleRightIconMouseUp($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 ",
|
|
6338
|
+
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 <input #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"digitsOnly ? 'number' : type\"\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)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\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 && focused && !readonly\" class=\"input-text-clear-button\" [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\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\" (mousedown)=\"handleRightIconMouseDown($event)\" (mouseup)=\"handleRightIconMouseUp($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 ",
|
|
6327
6339
|
providers: [
|
|
6328
6340
|
OverlayService, {
|
|
6329
6341
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -6372,6 +6384,7 @@
|
|
|
6372
6384
|
rightIconMouseDown: [{ type: i0.Output }],
|
|
6373
6385
|
rightIconMouseUp: [{ type: i0.Output }],
|
|
6374
6386
|
clearIconClick: [{ type: i0.Output }],
|
|
6387
|
+
isFocused: [{ type: i0.Output }],
|
|
6375
6388
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-text',] }],
|
|
6376
6389
|
hasLeftIcon: [{ type: i0.HostBinding, args: ['class.has-left-icon',] }],
|
|
6377
6390
|
hasRightIcon: [{ type: i0.HostBinding, args: ['class.has-right-icon',] }],
|
|
@@ -8151,6 +8164,7 @@
|
|
|
8151
8164
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
8152
8165
|
_this.searchIcon = exports.CoreComponentsIcon.Magnifier;
|
|
8153
8166
|
_this.search = new i0.EventEmitter();
|
|
8167
|
+
_this.isFocused = new i0.EventEmitter();
|
|
8154
8168
|
_this.leftIconClick = new i0.EventEmitter();
|
|
8155
8169
|
_this.rightIconClick = new i0.EventEmitter();
|
|
8156
8170
|
_this.useLeftIcon = false;
|
|
@@ -8175,7 +8189,7 @@
|
|
|
8175
8189
|
InputSearchComponent.decorators = [
|
|
8176
8190
|
{ type: i0.Component, args: [{
|
|
8177
8191
|
selector: 'co-input-search',
|
|
8178
|
-
template: "\n <co-input-text\n [ngClass]=\"customCssClass\"\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (keyup)=\"keyUp.emit($event)\"\n ></co-input-text>\n ",
|
|
8192
|
+
template: "\n <co-input-text\n [ngClass]=\"customCssClass\"\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (keyup)=\"keyUp.emit($event)\"\n (isFocused)=\"isFocused.emit($event)\"\n ></co-input-text>\n ",
|
|
8179
8193
|
providers: [
|
|
8180
8194
|
OverlayService
|
|
8181
8195
|
],
|
|
@@ -8186,6 +8200,7 @@
|
|
|
8186
8200
|
InputSearchComponent.propDecorators = {
|
|
8187
8201
|
placeholder: [{ type: i0.Input }],
|
|
8188
8202
|
search: [{ type: i0.Output }],
|
|
8203
|
+
isFocused: [{ type: i0.Output }],
|
|
8189
8204
|
leftIconClick: [{ type: i0.Output }],
|
|
8190
8205
|
rightIconClick: [{ type: i0.Output }],
|
|
8191
8206
|
useLeftIcon: [{ type: i0.Input }],
|
|
@@ -12847,6 +12862,7 @@
|
|
|
12847
12862
|
this.leftIconClick = new i0.EventEmitter();
|
|
12848
12863
|
this.rightIconClick = new i0.EventEmitter();
|
|
12849
12864
|
this.search = new i0.EventEmitter();
|
|
12865
|
+
this.isFocused = new i0.EventEmitter();
|
|
12850
12866
|
this.barCodeScanned = new i0.EventEmitter();
|
|
12851
12867
|
this._scannerService.registerInput(this);
|
|
12852
12868
|
}
|
|
@@ -12862,7 +12878,7 @@
|
|
|
12862
12878
|
InputScannerComponent.decorators = [
|
|
12863
12879
|
{ type: i0.Component, args: [{
|
|
12864
12880
|
selector: 'co-input-scanner',
|
|
12865
|
-
template: "\n <co-input-search\n [(model)]=\"model\"\n [customCssClass]=\"customCssClass\"\n [placeholder]=\"placeholder\"\n [centerLabel]=\"centerLabel\"\n [useLeftIcon]=\"useLeftIcon\"\n [leftIconData]=\"leftIconData\"\n [useRightIcon]=\"useRightIcon\"\n [rightIconData]=\"rightIconData\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (search)=\"search.emit($event)\"\n ></co-input-search>\n ",
|
|
12881
|
+
template: "\n <co-input-search\n [(model)]=\"model\"\n [customCssClass]=\"customCssClass\"\n [placeholder]=\"placeholder\"\n [centerLabel]=\"centerLabel\"\n [useLeftIcon]=\"useLeftIcon\"\n [leftIconData]=\"leftIconData\"\n [useRightIcon]=\"useRightIcon\"\n [rightIconData]=\"rightIconData\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (search)=\"search.emit($event)\"\n (isFocused)=\"isFocused.emit($event)\"\n ></co-input-search>\n ",
|
|
12866
12882
|
providers: [
|
|
12867
12883
|
ScannerService,
|
|
12868
12884
|
OverlayService
|
|
@@ -12886,6 +12902,7 @@
|
|
|
12886
12902
|
leftIconClick: [{ type: i0.Output }],
|
|
12887
12903
|
rightIconClick: [{ type: i0.Output }],
|
|
12888
12904
|
search: [{ type: i0.Output }],
|
|
12905
|
+
isFocused: [{ type: i0.Output }],
|
|
12889
12906
|
barCodeScanned: [{ type: i0.Output }],
|
|
12890
12907
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-scanner',] }]
|
|
12891
12908
|
};
|