bromcom-ui 2.3.64 → 2.3.65

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.
@@ -350,7 +350,7 @@ const BcmDatetimePicker = class {
350
350
  this.disabledDatesList.max = new Date(disabledDatesData.max.toDateString());
351
351
  }
352
352
  const value = this.inputElement.value;
353
- this.setDataFromText(value);
353
+ value && this.setDataFromText(value);
354
354
  }
355
355
  /**
356
356
  *
@@ -684,7 +684,7 @@ const BcmDatetimePicker = class {
684
684
  this.valueText = this.getValueText();
685
685
  this.setValue();
686
686
  const splitText = this.valueText.split('/');
687
- const newValue = this.changeFormat(new Date(splitText[1] + "/" + splitText[0] + "/" + splitText[2]));
687
+ const newValue = this.valueText ? this.changeFormat(new Date(splitText[1] + "/" + splitText[0] + "/" + splitText[2])) : '';
688
688
  this.inputElement.value = newValue;
689
689
  }
690
690
  }
@@ -767,7 +767,7 @@ const BcmDatetimePicker = class {
767
767
  }
768
768
  }
769
769
  const splitText = text.split('/');
770
- const newValue = this.changeFormat(new Date(splitText[1] + "/" + splitText[0] + "/" + splitText[2]));
770
+ const newValue = text ? this.changeFormat(new Date(splitText[1] + "/" + splitText[0] + "/" + splitText[2])) : '';
771
771
  this.inputElement.value = newValue;
772
772
  }
773
773
  }
@@ -1220,7 +1220,9 @@ const BcmDatetimePicker = class {
1220
1220
  const toggleClasses = classnames('toggle', {
1221
1221
  disabled: this.disabled
1222
1222
  });
1223
- return (h(Host, { class: hostClasses, "bcm-internal-id": this.inputId }, h("bcm-input", { ref: el => (this.inputElement = el), placeholder: 'Select ' + (this.type === Types.datetime ? 'date and time' : '') + (this.type === Types.date ? 'date' : '') + (this.type === Types.time ? 'time' : ''), value: this.valueText, required: this.required, fullWidth: this.fullWidth, disabled: this.disabled, name: this.name, id: this.inputId, label: this.label, clearable: true, disableWatchValue: true, "on-bcm-focus": () => this.handleInputFocus(), "on-bcm-clear": () => this.handleInputClear(), "on-bcm-change": (e) => this.handleInputChange(e), "on-bcm-input": (e) => this.handleInputInput(e.detail), noCaption: this.noCaption, caption: this.caption, captionType: this.captionType }, this.error && (h("bcm-tooltip", { slot: "suffix", placement: "top", message: this.errorText }, h("bcm-icon", {
1223
+ return (h(Host, { class: hostClasses, "bcm-internal-id": this.inputId }, h("bcm-input", { ref: el => (this.inputElement = el), placeholder: 'Select ' + (this.type === Types.datetime ? 'date and time' : '') + (this.type === Types.date ? 'date' : '') + (this.type === Types.time ? 'time' : ''), value: this.valueText, required: this.required, fullWidth: this.fullWidth, disabled: this.disabled, name: this.name, id: this.inputId, label: this.label, clearable: true, disableWatchValue: true, "on-bcm-focus": () => this.handleInputFocus(), "on-bcm-clear": () => this.handleInputClear(), "on-bcm-change": (e) => this.handleInputChange(e),
1224
+ // on-bcm-input={(e: CustomEvent) => this.handleInputInput(e.detail)}
1225
+ noCaption: this.noCaption, caption: this.caption, captionType: this.captionType }, this.error && (h("bcm-tooltip", { slot: "suffix", placement: "top", message: this.errorText }, h("bcm-icon", {
1224
1226
  // slot="suffix"
1225
1227
  // title={this.errorText}
1226
1228
  icon: "exclamation-circle", color: "red-6", size: 16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bromcom-ui",
3
- "version": "2.3.64",
3
+ "version": "2.3.65",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",