use-wc 1.0.0-pre.44 → 1.0.0-pre.45
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/use-wc.mjs +5 -7
- package/package.json +1 -1
package/dist/use-wc.mjs
CHANGED
|
@@ -485,7 +485,6 @@ __decorate([property({ type: String })], UseDateInput.prototype, "value", null);
|
|
|
485
485
|
UseDateInput = __decorate([customElement("use-date-input")], UseDateInput);
|
|
486
486
|
//#endregion
|
|
487
487
|
//#region src/elements/use-dropdown/use-dropdown.ts
|
|
488
|
-
var _UseDropdown;
|
|
489
488
|
const INITIAL_TABINDEX_ATTR$4 = "data-usewc-dropdown-tabindex";
|
|
490
489
|
const TABBABLE_SELECTOR$1 = `
|
|
491
490
|
:is(
|
|
@@ -501,9 +500,6 @@ const TABBABLE_SELECTOR$1 = `
|
|
|
501
500
|
))
|
|
502
501
|
`;
|
|
503
502
|
let UseDropdown = class UseDropdown extends LitElement {
|
|
504
|
-
static {
|
|
505
|
-
_UseDropdown = this;
|
|
506
|
-
}
|
|
507
503
|
#tabbables;
|
|
508
504
|
static {
|
|
509
505
|
this.shadowRootOptions = {
|
|
@@ -562,8 +558,10 @@ let UseDropdown = class UseDropdown extends LitElement {
|
|
|
562
558
|
});
|
|
563
559
|
}
|
|
564
560
|
#handlePopoverClick(event) {
|
|
565
|
-
|
|
566
|
-
|
|
561
|
+
const target = event.target;
|
|
562
|
+
const nearestDropdown = target.closest("use-dropdown");
|
|
563
|
+
if (nearestDropdown != null && nearestDropdown !== this) return;
|
|
564
|
+
if (target.getAttribute("menu-item")?.includes("keep-open")) return;
|
|
567
565
|
this.#closePopover();
|
|
568
566
|
}
|
|
569
567
|
#closePopover(returnFocus = true) {
|
|
@@ -726,7 +724,7 @@ let UseDropdown = class UseDropdown extends LitElement {
|
|
|
726
724
|
};
|
|
727
725
|
__decorate([property({ type: Boolean })], UseDropdown.prototype, "disabled", null);
|
|
728
726
|
__decorate([property()], UseDropdown.prototype, "label", void 0);
|
|
729
|
-
UseDropdown =
|
|
727
|
+
UseDropdown = __decorate([customElement("use-dropdown")], UseDropdown);
|
|
730
728
|
//#endregion
|
|
731
729
|
//#region src/elements/use-duration-input/use-duration-input.ts
|
|
732
730
|
const ISO_DURATION_SEGMENTS = {
|