@colijnit/corecomponents_v12 12.1.9 → 12.2.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.
@@ -7219,12 +7219,18 @@
7219
7219
  var day = this.model[0].toLocaleString("default", { day: "2-digit" });
7220
7220
  this.firstDateAsString = year + "-" + month + "-" + day;
7221
7221
  }
7222
+ else {
7223
+ this.firstDateAsString = "";
7224
+ }
7222
7225
  if (this.model[1]) {
7223
7226
  var year = this.model[1].toLocaleString("default", { year: "numeric" });
7224
7227
  var month = this.model[1].toLocaleString("default", { month: "2-digit" });
7225
7228
  var day = this.model[1].toLocaleString("default", { day: "2-digit" });
7226
7229
  this.secondDateAsString = year + "-" + month + "-" + day;
7227
7230
  }
7231
+ else {
7232
+ this.secondDateAsString = "";
7233
+ }
7228
7234
  };
7229
7235
  return InputDateRangePickerComponent;
7230
7236
  }(BaseInputDatePickerDirective));
@@ -11618,7 +11624,9 @@
11618
11624
  FilterItemComponent.prototype.ngOnInit = function () {
11619
11625
  this.setToInitialLimit();
11620
11626
  this.showButton = this.valueSelected();
11621
- this.checkBoxToTextModel = false;
11627
+ if (this.checkBoxToTextModel === undefined || this.checkBoxToTextModel === null) {
11628
+ this.checkBoxToTextModel = false;
11629
+ }
11622
11630
  };
11623
11631
  FilterItemComponent.prototype.setToInitialLimit = function () {
11624
11632
  this.limitTo = this.initialLimit;
@@ -11664,21 +11672,27 @@
11664
11672
  this._createModelForSelectListWithNumberOutput();
11665
11673
  break;
11666
11674
  case this.modes.Slider:
11675
+ this.showButton = true;
11667
11676
  this._createModelForSliderMode();
11668
11677
  break;
11669
11678
  case this.modes.CheckboxToText:
11679
+ this.showButton = true;
11670
11680
  this._createModelForCheckboxToText();
11671
11681
  break;
11672
11682
  case this.modes.CheckboxToSimpleText:
11683
+ this.showButton = true;
11673
11684
  this._createModelForCheckboxToSimpleText();
11674
11685
  break;
11675
11686
  case this.modes.CheckboxToBinary:
11687
+ this.showButton = true;
11676
11688
  this._createModelForCheckboxToBinary();
11677
11689
  break;
11678
11690
  case this.modes.DateRangeField:
11691
+ this.showButton = true;
11679
11692
  this._createModelForDateRange(model);
11680
11693
  break;
11681
11694
  case this.modes.TextField:
11695
+ this.showButton = true;
11682
11696
  this._model = (typeof this._model === 'string' && this._model.length === 0) ? undefined : this._model;
11683
11697
  break;
11684
11698
  }
@@ -11775,6 +11789,8 @@
11775
11789
  case this.modes.DateRangeField:
11776
11790
  this._readModelForDateRangeField(newModel);
11777
11791
  break;
11792
+ default:
11793
+ this._model = newModel;
11778
11794
  }
11779
11795
  };
11780
11796
  /////////////////////////////////////////////////////////////