@colijnit/corecomponents_v12 12.0.79 → 12.0.81
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 +30 -22
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/base/base-input.component.js +2 -2
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +2 -2
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +25 -19
- package/esm2015/lib/components/input-text/input-text.component.js +5 -3
- package/fesm2015/colijnit-corecomponents_v12.js +30 -22
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/commit-buttons/style/_material-definition.scss +4 -4
- package/lib/components/base/commit-buttons/style/_theme.scss +3 -8
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +2 -3
- package/lib/components/input-search/style/_layout.scss +6 -7
- package/lib/components/input-text/input-text.component.d.ts +1 -0
- package/lib/components/input-text/style/_layout.scss +4 -0
- package/lib/components/input-textarea/style/_layout.scss +1 -1
- package/lib/style/_input.mixins.scss +19 -14
- package/lib/style/_variables.scss +16 -7
- package/lib/style/corecomponents-globals.scss +25 -1
- package/package.json +1 -1
|
@@ -4147,7 +4147,7 @@ class BaseInputComponent {
|
|
|
4147
4147
|
this.keepFocus = false;
|
|
4148
4148
|
this.canSaveOrCancel = false;
|
|
4149
4149
|
this.committing = false;
|
|
4150
|
-
this.commitFinished =
|
|
4150
|
+
this.commitFinished = false;
|
|
4151
4151
|
this._markedAsUserTouched = false;
|
|
4152
4152
|
this._destroyed = false;
|
|
4153
4153
|
this._hasOnPushCdStrategy = false;
|
|
@@ -6229,24 +6229,30 @@ class InputDatePickerComponent extends BaseInputComponent {
|
|
|
6229
6229
|
ngOnInit() {
|
|
6230
6230
|
super.ngOnInit();
|
|
6231
6231
|
}
|
|
6232
|
-
ngAfterViewInit() {
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6232
|
+
// ngAfterViewInit(): void {
|
|
6233
|
+
// if (this.ejsDatePicker) {
|
|
6234
|
+
// const calendarIcon: string = this.iconCacheService.getIconRawBase64(this.calendarIconName);
|
|
6235
|
+
// const imgElement: HTMLElement = document.createElement("img");
|
|
6236
|
+
// imgElement.setAttribute(
|
|
6237
|
+
// "src",
|
|
6238
|
+
// calendarIcon
|
|
6239
|
+
// );
|
|
6240
|
+
// imgElement.setAttribute(
|
|
6241
|
+
// "height",
|
|
6242
|
+
// this.iconHeight
|
|
6243
|
+
// );
|
|
6244
|
+
// imgElement.setAttribute("class", "customImage");
|
|
6245
|
+
// //remove the font-icon class
|
|
6246
|
+
// this.ejsDatePicker.element.parentElement
|
|
6247
|
+
// .querySelector(".e-icons")
|
|
6248
|
+
// .classList.remove("e-date-icon");
|
|
6249
|
+
// this.ejsDatePicker.element.parentElement
|
|
6250
|
+
// .querySelector(".e-icons")
|
|
6251
|
+
// .append(imgElement);
|
|
6252
|
+
// this.changeDetector.detectChanges();
|
|
6253
|
+
// }
|
|
6254
|
+
// super.ngAfterViewInit();
|
|
6255
|
+
// }
|
|
6250
6256
|
change() {
|
|
6251
6257
|
this.model = this.ejsDatePicker.value;
|
|
6252
6258
|
}
|
|
@@ -6358,7 +6364,7 @@ CommitButtonsComponent.decorators = [
|
|
|
6358
6364
|
<div class="commit-buttons-wrapper" @showHideSaveCancel>
|
|
6359
6365
|
<div class="commit-buttons-button save" [class.finished]="commitFinished"
|
|
6360
6366
|
(click)="commitClick.emit($event)">
|
|
6361
|
-
<div class="save-button-spinner" *ngIf="committing
|
|
6367
|
+
<div class="save-button-spinner" *ngIf="committing">
|
|
6362
6368
|
<div #animatediv></div>
|
|
6363
6369
|
<div #animatediv></div>
|
|
6364
6370
|
<div #animatediv></div>
|
|
@@ -7194,6 +7200,7 @@ class InputTextComponent extends BaseInputComponent {
|
|
|
7194
7200
|
this.placeholder = "";
|
|
7195
7201
|
this.type = "text";
|
|
7196
7202
|
this.digitsOnly = false;
|
|
7203
|
+
this.excludePlusMinus = true;
|
|
7197
7204
|
this.showClearButton = undefined;
|
|
7198
7205
|
this.showPlaceholderOnFocus = true;
|
|
7199
7206
|
this.hasOwnLabel = true;
|
|
@@ -7228,8 +7235,8 @@ class InputTextComponent extends BaseInputComponent {
|
|
|
7228
7235
|
}
|
|
7229
7236
|
// exclude some non-digit characters, since input type 'number' still allows the characters -, + and e
|
|
7230
7237
|
excludeNonDigitChars(event) {
|
|
7231
|
-
const
|
|
7232
|
-
return !
|
|
7238
|
+
const excludedKeys = this.excludePlusMinus ? ['e', '-', '+'] : ['e'];
|
|
7239
|
+
return !excludedKeys.includes(event.key);
|
|
7233
7240
|
}
|
|
7234
7241
|
}
|
|
7235
7242
|
InputTextComponent.decorators = [
|
|
@@ -7284,6 +7291,7 @@ InputTextComponent.propDecorators = {
|
|
|
7284
7291
|
min: [{ type: Input }],
|
|
7285
7292
|
max: [{ type: Input }],
|
|
7286
7293
|
digitsOnly: [{ type: Input }],
|
|
7294
|
+
excludePlusMinus: [{ type: Input }],
|
|
7287
7295
|
showClearButton: [{ type: Input }],
|
|
7288
7296
|
keyDownWhiteList: [{ type: Input }],
|
|
7289
7297
|
showPlaceholderOnFocus: [{ type: Input }],
|