ba-js-common-header 0.0.52 → 0.0.53

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.
@@ -31575,14 +31575,12 @@ function HotelFinder(props) {
31575
31575
  setTimeout(() => {
31576
31576
  e2.target.setSelectionRange(cursorPos, cursorPos);
31577
31577
  }, 0);
31578
- }
31579
- })), {
31580
- type: "text",
31581
- className: "form-control",
31582
- placeholder: i18n.translate("hotel_name").fetch(),
31583
- id: "hd-property-input",
31584
- value: ctrlInputValue,
31578
+ },
31579
+ onFocus: (e2) => {
31580
+ document.querySelector("#hd-property-search").classList.add("hd-active");
31581
+ },
31585
31582
  onBlur: (e2) => {
31583
+ document.querySelector("#hd-property-search").classList.remove("hd-active");
31586
31584
  const {
31587
31585
  name
31588
31586
  } = getHotelInfoFromHotelFinderHotel(selectedHotel);
@@ -31590,6 +31588,12 @@ function HotelFinder(props) {
31590
31588
  setCtrlInputValue(name);
31591
31589
  }
31592
31590
  }
31591
+ })), {
31592
+ type: "text",
31593
+ className: "form-control",
31594
+ placeholder: i18n.translate("hotel_name").fetch(),
31595
+ id: "hd-property-input",
31596
+ value: ctrlInputValue
31593
31597
  }), void 0, false, {
31594
31598
  fileName: _jsxFileName$9,
31595
31599
  lineNumber: 124,
@@ -31613,32 +31617,32 @@ function HotelFinder(props) {
31613
31617
  children: hotel[0]
31614
31618
  }, void 0, false, {
31615
31619
  fileName: _jsxFileName$9,
31616
- lineNumber: 164,
31620
+ lineNumber: 171,
31617
31621
  columnNumber: 23
31618
31622
  }, this), hotel === selectedHotel && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Tick, {}, void 0, false, {
31619
31623
  fileName: _jsxFileName$9,
31620
- lineNumber: 165,
31624
+ lineNumber: 172,
31621
31625
  columnNumber: 51
31622
31626
  }, this)]
31623
31627
  }, void 0, true, {
31624
31628
  fileName: _jsxFileName$9,
31625
- lineNumber: 157,
31629
+ lineNumber: 164,
31626
31630
  columnNumber: 21
31627
31631
  }, this)
31628
31632
  }), hotel[1], false, {
31629
31633
  fileName: _jsxFileName$9,
31630
- lineNumber: 151,
31634
+ lineNumber: 158,
31631
31635
  columnNumber: 19
31632
31636
  }, this))
31633
31637
  }), void 0, false, {
31634
31638
  fileName: _jsxFileName$9,
31635
- lineNumber: 148,
31639
+ lineNumber: 155,
31636
31640
  columnNumber: 13
31637
31641
  }, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Search, {
31638
31642
  className: "hd-icon hd-icon-search"
31639
31643
  }, void 0, false, {
31640
31644
  fileName: _jsxFileName$9,
31641
- lineNumber: 170,
31645
+ lineNumber: 177,
31642
31646
  columnNumber: 13
31643
31647
  }, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Close, {
31644
31648
  className: "hd-icon hd-icon-close",
@@ -31651,7 +31655,7 @@ function HotelFinder(props) {
31651
31655
  }
31652
31656
  }, void 0, false, {
31653
31657
  fileName: _jsxFileName$9,
31654
- lineNumber: 171,
31658
+ lineNumber: 178,
31655
31659
  columnNumber: 13
31656
31660
  }, this)]
31657
31661
  }), void 0, true, {
@@ -31601,14 +31601,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31601
31601
  setTimeout(() => {
31602
31602
  e2.target.setSelectionRange(cursorPos, cursorPos);
31603
31603
  }, 0);
31604
- }
31605
- })), {
31606
- type: "text",
31607
- className: "form-control",
31608
- placeholder: i18n.translate("hotel_name").fetch(),
31609
- id: "hd-property-input",
31610
- value: ctrlInputValue,
31604
+ },
31605
+ onFocus: (e2) => {
31606
+ document.querySelector("#hd-property-search").classList.add("hd-active");
31607
+ },
31611
31608
  onBlur: (e2) => {
31609
+ document.querySelector("#hd-property-search").classList.remove("hd-active");
31612
31610
  const {
31613
31611
  name
31614
31612
  } = getHotelInfoFromHotelFinderHotel(selectedHotel);
@@ -31616,6 +31614,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31616
31614
  setCtrlInputValue(name);
31617
31615
  }
31618
31616
  }
31617
+ })), {
31618
+ type: "text",
31619
+ className: "form-control",
31620
+ placeholder: i18n.translate("hotel_name").fetch(),
31621
+ id: "hd-property-input",
31622
+ value: ctrlInputValue
31619
31623
  }), void 0, false, {
31620
31624
  fileName: _jsxFileName$9,
31621
31625
  lineNumber: 124,
@@ -31639,32 +31643,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31639
31643
  children: hotel[0]
31640
31644
  }, void 0, false, {
31641
31645
  fileName: _jsxFileName$9,
31642
- lineNumber: 164,
31646
+ lineNumber: 171,
31643
31647
  columnNumber: 23
31644
31648
  }, this), hotel === selectedHotel && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Tick, {}, void 0, false, {
31645
31649
  fileName: _jsxFileName$9,
31646
- lineNumber: 165,
31650
+ lineNumber: 172,
31647
31651
  columnNumber: 51
31648
31652
  }, this)]
31649
31653
  }, void 0, true, {
31650
31654
  fileName: _jsxFileName$9,
31651
- lineNumber: 157,
31655
+ lineNumber: 164,
31652
31656
  columnNumber: 21
31653
31657
  }, this)
31654
31658
  }), hotel[1], false, {
31655
31659
  fileName: _jsxFileName$9,
31656
- lineNumber: 151,
31660
+ lineNumber: 158,
31657
31661
  columnNumber: 19
31658
31662
  }, this))
31659
31663
  }), void 0, false, {
31660
31664
  fileName: _jsxFileName$9,
31661
- lineNumber: 148,
31665
+ lineNumber: 155,
31662
31666
  columnNumber: 13
31663
31667
  }, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Search, {
31664
31668
  className: "hd-icon hd-icon-search"
31665
31669
  }, void 0, false, {
31666
31670
  fileName: _jsxFileName$9,
31667
- lineNumber: 170,
31671
+ lineNumber: 177,
31668
31672
  columnNumber: 13
31669
31673
  }, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Close, {
31670
31674
  className: "hd-icon hd-icon-close",
@@ -31677,7 +31681,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31677
31681
  }
31678
31682
  }, void 0, false, {
31679
31683
  fileName: _jsxFileName$9,
31680
- lineNumber: 171,
31684
+ lineNumber: 178,
31681
31685
  columnNumber: 13
31682
31686
  }, this)]
31683
31687
  }), void 0, true, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ba-js-common-header",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",