@colijnit/corecomponents_v12 260.1.16 → 260.1.17

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.
@@ -5242,12 +5242,18 @@ var FilterItemMode;
5242
5242
  // It's value will be passed along directly as a boolean.
5243
5243
  FilterItemMode["Checkbox"] = "checkbox";
5244
5244
  //This mode makes the Filter display a simple checkBox.
5245
- // It's value will be passed along as either a 'T' or and 'F'.
5245
+ // It's value will be passed along as either a 'J' or and 'N'.
5246
5246
  FilterItemMode["CheckboxToSimpleText"] = "checkboxToSimpleText";
5247
5247
  //This mode makes the Filter display a simple checkBox.
5248
- // It's value will be passed along as either a "?='T'" or and "?='F'".
5248
+ // It's value will be passed along as either a "?='J'" or and "?='N'".
5249
5249
  FilterItemMode["CheckboxToText"] = "checkboxToText";
5250
5250
  //This mode makes the Filter display a simple checkBox.
5251
+ // It's value will be passed along as either a 'T' or and 'F'.
5252
+ FilterItemMode["CheckboxToTFSimpleText"] = "checkboxToTFSimpleText";
5253
+ //This mode makes the Filter display a simple checkBox.
5254
+ // It's value will be passed along as either a "?='T'" or and "?='F'".
5255
+ FilterItemMode["CheckboxToTFText"] = "checkboxToTFText";
5256
+ //This mode makes the Filter display a simple checkBox.
5251
5257
  // It's value will be passed along as either a 1 or and 0.
5252
5258
  FilterItemMode["CheckboxToBinary"] = "checkboxToBinary";
5253
5259
  })(FilterItemMode || (FilterItemMode = {}));
@@ -12600,10 +12606,18 @@ class FilterItemComponent {
12600
12606
  this.showButton = true;
12601
12607
  this._createModelForCheckboxToText();
12602
12608
  break;
12609
+ case this.modes.CheckboxToTFText:
12610
+ this.showButton = true;
12611
+ this._createModelForCheckboxToTFText();
12612
+ break;
12603
12613
  case this.modes.CheckboxToSimpleText:
12604
12614
  this.showButton = true;
12605
12615
  this._createModelForCheckboxToSimpleText();
12606
12616
  break;
12617
+ case this.modes.CheckboxToTFSimpleText:
12618
+ this.showButton = true;
12619
+ this._createModelForCheckboxToTFSimpleText();
12620
+ break;
12607
12621
  case this.modes.CheckboxToBinary:
12608
12622
  this.showButton = true;
12609
12623
  this._createModelForCheckboxToBinary();
@@ -12727,6 +12741,10 @@ class FilterItemComponent {
12727
12741
  case this.modes.CheckboxToSimpleText:
12728
12742
  this._readModelForCheckboxToText(newModel);
12729
12743
  break;
12744
+ case this.modes.CheckboxToTFText:
12745
+ case this.modes.CheckboxToTFSimpleText:
12746
+ this._readModelForCheckboxToTFText(newModel);
12747
+ break;
12730
12748
  case this.modes.CheckboxToBinary:
12731
12749
  this._readModelForCheckboxToBinary(newModel);
12732
12750
  break;
@@ -12831,6 +12849,14 @@ class FilterItemComponent {
12831
12849
  this._model = "?='N'";
12832
12850
  }
12833
12851
  }
12852
+ _createModelForCheckboxToTFText() {
12853
+ if (this.checkBoxToTextModel) {
12854
+ this._model = "?='T'";
12855
+ }
12856
+ else {
12857
+ this._model = "?='F'";
12858
+ }
12859
+ }
12834
12860
  _createModelForCheckboxToSimpleText() {
12835
12861
  if (this.checkBoxToTextModel) {
12836
12862
  this._model = "J";
@@ -12839,6 +12865,14 @@ class FilterItemComponent {
12839
12865
  this._model = "N";
12840
12866
  }
12841
12867
  }
12868
+ _createModelForCheckboxToTFSimpleText() {
12869
+ if (this.checkBoxToTextModel) {
12870
+ this._model = "T";
12871
+ }
12872
+ else {
12873
+ this._model = "F";
12874
+ }
12875
+ }
12842
12876
  _createModelForCheckboxToBinary() {
12843
12877
  if (this.checkBoxToTextModel) {
12844
12878
  this._model = 1;
@@ -12956,6 +12990,15 @@ class FilterItemComponent {
12956
12990
  this.checkBoxToTextModel = false;
12957
12991
  }
12958
12992
  }
12993
+ _readModelForCheckboxToTFText(checkboxToTextModel) {
12994
+ this._model = checkboxToTextModel;
12995
+ if (checkboxToTextModel !== undefined && checkboxToTextModel !== null) {
12996
+ this.checkBoxToTextModel = (checkboxToTextModel.indexOf('T') > -1);
12997
+ }
12998
+ else {
12999
+ this.checkBoxToTextModel = false;
13000
+ }
13001
+ }
12959
13002
  _readModelForCheckboxToBinary(checkboxToBinary) {
12960
13003
  this._model = checkboxToBinary;
12961
13004
  if (checkboxToBinary !== undefined && checkboxToBinary !== null) {
@@ -13076,12 +13119,20 @@ class FilterItemComponent {
13076
13119
  }
13077
13120
  _applyDefaultForCheckboxToText() {
13078
13121
  const defaultString = this.defaultValue.toString().toUpperCase();
13079
- this.checkBoxToTextModel = (defaultString === 'J' || defaultString === 'Y' || defaultString === 'TRUE');
13080
- if (this.mode === this.modes.CheckboxToText) {
13081
- this._createModelForCheckboxToText();
13082
- }
13083
- else {
13084
- this._createModelForCheckboxToSimpleText();
13122
+ this.checkBoxToTextModel = (defaultString === 'J' || defaultString === 'T' || defaultString === 'Y' || defaultString === 'TRUE');
13123
+ switch (this.mode) {
13124
+ case this.modes.CheckboxToText:
13125
+ this._createModelForCheckboxToText();
13126
+ break;
13127
+ case this.modes.CheckboxToSimpleText:
13128
+ this._createModelForCheckboxToSimpleText();
13129
+ break;
13130
+ case this.modes.CheckboxToTFText:
13131
+ this._createModelForCheckboxToTFText();
13132
+ break;
13133
+ case this.modes.CheckboxToTFSimpleText:
13134
+ this._createModelForCheckboxToTFSimpleText();
13135
+ break;
13085
13136
  }
13086
13137
  this.modelChange.emit(this._model);
13087
13138
  this.showButton = true;
@@ -13186,6 +13237,8 @@ class FilterItemComponent {
13186
13237
  break;
13187
13238
  case this.modes.CheckboxToText:
13188
13239
  case this.modes.CheckboxToSimpleText:
13240
+ case this.modes.CheckboxToTFText:
13241
+ case this.modes.CheckboxToTFSimpleText:
13189
13242
  this._applyDefaultForCheckboxToText();
13190
13243
  break;
13191
13244
  case this.modes.CheckboxToBinary:
@@ -13339,7 +13392,7 @@ FilterItemComponent.decorators = [
13339
13392
  </co-input-checkbox>
13340
13393
  </div>
13341
13394
  <div class="co-filter-item-checkbox-content"
13342
- *ngIf="mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary">
13395
+ *ngIf="mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary || mode === modes.CheckboxToTFSimpleText || mode === modes.CheckboxToTFText">
13343
13396
  <co-input-checkbox
13344
13397
  [(model)]="checkBoxToTextModel"
13345
13398
  (modelChange)="handleModelChange($event)"