@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.
@@ -4147,7 +4147,7 @@ class BaseInputComponent {
4147
4147
  this.keepFocus = false;
4148
4148
  this.canSaveOrCancel = false;
4149
4149
  this.committing = false;
4150
- this.commitFinished = true;
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
- if (this.ejsDatePicker) {
6234
- const calendarIcon = this.iconCacheService.getIconRawBase64(this.calendarIconName);
6235
- const imgElement = document.createElement("img");
6236
- imgElement.setAttribute("src", calendarIcon);
6237
- imgElement.setAttribute("height", this.iconHeight);
6238
- imgElement.setAttribute("class", "customImage");
6239
- //remove the font-icon class
6240
- this.ejsDatePicker.element.parentElement
6241
- .querySelector(".e-icons")
6242
- .classList.remove("e-date-icon");
6243
- this.ejsDatePicker.element.parentElement
6244
- .querySelector(".e-icons")
6245
- .append(imgElement);
6246
- this.changeDetector.detectChanges();
6247
- }
6248
- super.ngAfterViewInit();
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 || commitFinished">
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 excludedKeyCodes = [69, 107, 109, 187, 189];
7232
- return !excludedKeyCodes.includes(event.keyCode);
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 }],