@octax-app/hot-date-react 0.1.1 → 0.1.2

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.
@@ -8924,7 +8924,7 @@ var Gc = class extends HTMLElement {
8924
8924
  this.inputElement.blur();
8925
8925
  }
8926
8926
  forceDisplayMode(e) {
8927
- e ? (this.isDisplayMode = !0, this.inputElement.value = this.formatValue(e), this.ghostElement.hidden = !0) : (this.isDisplayMode = !1, this.inputElement.value = this.rawInputValue, this.ghostElement.hidden = !1, this.renderGhost());
8927
+ this.shadowRoot?.activeElement !== this.inputElement && (e ? (this.isDisplayMode = !0, this.inputElement.value = this.formatValue(e), this.ghostElement.hidden = !0) : (this.isDisplayMode = !1, this.inputElement.value = this.rawInputValue, this.ghostElement.hidden = !1, this.renderGhost()));
8928
8928
  }
8929
8929
  clear() {
8930
8930
  this.isDisplayMode = !1, this.ghostElement.hidden = !1, this.rawInputValue = "", this.committedValue = null, this.removeAttribute("value"), this.internals?.setFormValue(""), this.activeSuggestionIndexValue = 0, this.syncInputPresentation(), this.parseAndRender(), this.emit("clear", {});
@@ -1,4 +1,4 @@
1
- import { t as e } from "./hot-date--ec2r6hq.js";
1
+ import { t as e } from "./hot-date-DdTwPCC7.js";
2
2
  import { forwardRef as t, useEffect as n, useImperativeHandle as r, useRef as i, useState as a } from "react";
3
3
  import { jsx as o } from "react/jsx-runtime";
4
4
  //#region src/react/format.ts
package/dist/hot-date.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./hot-date--ec2r6hq.js";
1
+ import { t as e } from "./hot-date-DdTwPCC7.js";
2
2
  export { e as HotDateElement };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octax-app/hot-date-react",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "React wrapper for the hot-date natural language date input web component.",
5
5
  "type": "module",
6
6
  "main": "./dist/hot-date-react.js",