wj-elements 0.1.224 → 0.1.226

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/light.css CHANGED
@@ -407,7 +407,7 @@
407
407
  --wje-input-line-height: 20px;
408
408
  --wje-input-slot-padding-inline: 0.5rem;
409
409
  --wje-input-label-display: block;
410
- --wje-input-label-margin: 0;
410
+ --wje-input-label-margin: 0 0 var(--wje-spacing-x-small);
411
411
  --wje-input-label-padding: 0;
412
412
  --wje-input-label-line-height: var(--wje-line-height-normal);
413
413
  --wje-input-label-font-size: var(--wje-font-size);
@@ -588,6 +588,7 @@
588
588
  --wje-textarea-margin-bottom: var(--wje-spacing-x-small);
589
589
  --wje-textarea-line-height: 20px;
590
590
  --wje-textarea-padding: var(--wje-spacing-x-small);
591
+ --wje-textarea-label-margin: 0 0 var(--wje-spacing-x-small);
591
592
 
592
593
  /* Thumbnail */
593
594
  --wje-thumbnail-width: 48px;
@@ -1386,7 +1386,7 @@ class Popup extends WJElement {
1386
1386
  });
1387
1387
  __publicField(this, "clickHandler", (e) => {
1388
1388
  const path = typeof e.composedPath === "function" ? e.composedPath() : [];
1389
- const isMenuClick = path.some((n) => n && (n.tagName === "WJE-MENU-ITEM" || n.tagName === "WJE-MENU" || n.tagName === "WJE-DROPDOWN"));
1389
+ const isMenuClick = path.some((n) => n && (n.tagName === "WJE-MENU-ITEM" || n.tagName === "WJE-MENU"));
1390
1390
  if (isMenuClick) return;
1391
1391
  const inside = path.includes(this) || this.floatingEl && path.includes(this.floatingEl);
1392
1392
  if (!inside && this.hasAttribute("active")) this.hide(true);
@@ -1675,9 +1675,7 @@ class Popup extends WJElement {
1675
1675
  this._portaled = true;
1676
1676
  this._floatingEl = this._portalNative;
1677
1677
  this._portaled = true;
1678
- console.log("Portal mount 1", { root: this._portalShadow, container: this._portalContainer, floating: this._portalNative });
1679
1678
  event.dispatchCustomEvent(this, "wje-router:rebind", { root: this._portalShadow, container: this._portalContainer, floating: this._portalNative });
1680
- console.log("Portal mount 2", { root: this._portalShadow, container: this._portalContainer, floating: this._portalNative });
1681
1679
  }
1682
1680
  /**
1683
1681
  * Restores the content previously moved to a portal back to its original location.
@@ -1782,6 +1780,7 @@ class Popup extends WJElement {
1782
1780
  */
1783
1781
  show(dispatchEvent = true) {
1784
1782
  var _a, _b, _c, _d, _e, _f, _g, _h;
1783
+ event.dispatchCustomEvent(document, "wje-popup:opened", { popup: this });
1785
1784
  if (this.portal) {
1786
1785
  this._mountContentToPortal();
1787
1786
  if (this.portal && this._portalShadow) {
@@ -1848,4 +1847,4 @@ class Popup extends WJElement {
1848
1847
  export {
1849
1848
  Popup as P
1850
1849
  };
1851
- //# sourceMappingURL=popup.element-C_eXD5J4.js.map
1850
+ //# sourceMappingURL=popup.element-BfUb7fOX.js.map