@nysds/nys-datepicker 1.15.0 → 1.15.1
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.
package/dist/nys-datepicker.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ifDefined as q } from "lit/directives/if-defined.js";
|
|
|
6
6
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
7
7
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
8
8
|
*
|
|
9
|
-
* Datepicker Component
|
|
9
|
+
* Datepicker Component v1.15.1
|
|
10
10
|
* Part of the New York State Design System
|
|
11
11
|
* Repository: https://github.com/its-hcd/nysds
|
|
12
12
|
* License: MIT
|
|
@@ -1134,7 +1134,9 @@ const f = (D = class extends se {
|
|
|
1134
1134
|
_handleBlur(e) {
|
|
1135
1135
|
const a = e.relatedTarget;
|
|
1136
1136
|
if (a && (this.contains(a) || this.shadowRoot?.contains(a))) return;
|
|
1137
|
-
this._hasUserInteracted || (this._hasUserInteracted = !0), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._validate(), this.dispatchEvent(
|
|
1137
|
+
this._hasUserInteracted || (this._hasUserInteracted = !0), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._validate(), this.dispatchEvent(
|
|
1138
|
+
new Event("nys-blur", { bubbles: !0, composed: !0 })
|
|
1139
|
+
), this.removeEventListener("keydown", this._handleFocusTrap);
|
|
1138
1140
|
}
|
|
1139
1141
|
// For when users click outside of the datepicker, we remove the calendar popup
|
|
1140
1142
|
_onDocumentClick() {
|