@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.
@@ -4453,7 +4453,7 @@
4453
4453
  this.keepFocus = false;
4454
4454
  this.canSaveOrCancel = false;
4455
4455
  this.committing = false;
4456
- this.commitFinished = true;
4456
+ this.commitFinished = false;
4457
4457
  this._markedAsUserTouched = false;
4458
4458
  this._destroyed = false;
4459
4459
  this._hasOnPushCdStrategy = false;
@@ -6696,24 +6696,30 @@
6696
6696
  InputDatePickerComponent.prototype.ngOnInit = function () {
6697
6697
  _super.prototype.ngOnInit.call(this);
6698
6698
  };
6699
- InputDatePickerComponent.prototype.ngAfterViewInit = function () {
6700
- if (this.ejsDatePicker) {
6701
- var calendarIcon = this.iconCacheService.getIconRawBase64(this.calendarIconName);
6702
- var imgElement = document.createElement("img");
6703
- imgElement.setAttribute("src", calendarIcon);
6704
- imgElement.setAttribute("height", this.iconHeight);
6705
- imgElement.setAttribute("class", "customImage");
6706
- //remove the font-icon class
6707
- this.ejsDatePicker.element.parentElement
6708
- .querySelector(".e-icons")
6709
- .classList.remove("e-date-icon");
6710
- this.ejsDatePicker.element.parentElement
6711
- .querySelector(".e-icons")
6712
- .append(imgElement);
6713
- this.changeDetector.detectChanges();
6714
- }
6715
- _super.prototype.ngAfterViewInit.call(this);
6716
- };
6699
+ // ngAfterViewInit(): void {
6700
+ // if (this.ejsDatePicker) {
6701
+ // const calendarIcon: string = this.iconCacheService.getIconRawBase64(this.calendarIconName);
6702
+ // const imgElement: HTMLElement = document.createElement("img");
6703
+ // imgElement.setAttribute(
6704
+ // "src",
6705
+ // calendarIcon
6706
+ // );
6707
+ // imgElement.setAttribute(
6708
+ // "height",
6709
+ // this.iconHeight
6710
+ // );
6711
+ // imgElement.setAttribute("class", "customImage");
6712
+ // //remove the font-icon class
6713
+ // this.ejsDatePicker.element.parentElement
6714
+ // .querySelector(".e-icons")
6715
+ // .classList.remove("e-date-icon");
6716
+ // this.ejsDatePicker.element.parentElement
6717
+ // .querySelector(".e-icons")
6718
+ // .append(imgElement);
6719
+ // this.changeDetector.detectChanges();
6720
+ // }
6721
+ // super.ngAfterViewInit();
6722
+ // }
6717
6723
  InputDatePickerComponent.prototype.change = function () {
6718
6724
  this.model = this.ejsDatePicker.value;
6719
6725
  };
@@ -6820,7 +6826,7 @@
6820
6826
  CommitButtonsComponent.decorators = [
6821
6827
  { type: i0.Component, args: [{
6822
6828
  selector: "co-commit-buttons",
6823
- template: "\n <div class=\"commit-buttons-wrapper\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing || commitFinished\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!committing || commitFinished\"></div>\n </div>\n <div class=\"commit-buttons-button cancel\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
6829
+ template: "\n <div class=\"commit-buttons-wrapper\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!committing || commitFinished\"></div>\n </div>\n <div class=\"commit-buttons-button cancel\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
6824
6830
  animations: [
6825
6831
  animations.trigger('showHideSaveCancel', [
6826
6832
  animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
@@ -7704,6 +7710,7 @@
7704
7710
  _this.placeholder = "";
7705
7711
  _this.type = "text";
7706
7712
  _this.digitsOnly = false;
7713
+ _this.excludePlusMinus = true;
7707
7714
  _this.showClearButton = undefined;
7708
7715
  _this.showPlaceholderOnFocus = true;
7709
7716
  _this.hasOwnLabel = true;
@@ -7751,8 +7758,8 @@
7751
7758
  });
7752
7759
  // exclude some non-digit characters, since input type 'number' still allows the characters -, + and e
7753
7760
  InputTextComponent.prototype.excludeNonDigitChars = function (event) {
7754
- var excludedKeyCodes = [69, 107, 109, 187, 189];
7755
- return !excludedKeyCodes.includes(event.keyCode);
7761
+ var excludedKeys = this.excludePlusMinus ? ['e', '-', '+'] : ['e'];
7762
+ return !excludedKeys.includes(event.key);
7756
7763
  };
7757
7764
  return InputTextComponent;
7758
7765
  }(BaseInputComponent));
@@ -7784,6 +7791,7 @@
7784
7791
  min: [{ type: i0.Input }],
7785
7792
  max: [{ type: i0.Input }],
7786
7793
  digitsOnly: [{ type: i0.Input }],
7794
+ excludePlusMinus: [{ type: i0.Input }],
7787
7795
  showClearButton: [{ type: i0.Input }],
7788
7796
  keyDownWhiteList: [{ type: i0.Input }],
7789
7797
  showPlaceholderOnFocus: [{ type: i0.Input }],