wj-elements 0.1.186 → 0.1.188

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.
@@ -191,8 +191,26 @@ export class Select extends FormAssociatedElement {
191
191
  * @returns {Array} An array containing the currently selected options. If no options are selected, an empty array is returned.
192
192
  */
193
193
  get selectedOptions(): any[];
194
+ /**
195
+ * Sets the `lazy` attribute on the element. If the provided value is truthy, the `lazy` attribute is added. If the value is falsy, the `lazy` attribute is removed.
196
+ * @param {boolean} value A boolean value indicating whether to add or remove the `lazy` attribute. If `true`, the attribute is added; if `false`, it is removed.
197
+ */
194
198
  set lazy(value: boolean);
199
+ /**
200
+ * Getter for the 'lazy' property.
201
+ * @returns {boolean} Returns true if the 'lazy' attribute is present on the element, otherwise false.
202
+ */
195
203
  get lazy(): boolean;
204
+ /**
205
+ * Sets or removes the 'no-size' attribute on an element.
206
+ * @param {boolean} value A boolean indicating whether to add or remove the 'no-size' attribute. If true, the attribute is added; if false, the attribute is removed.
207
+ */
208
+ set noSize(value: boolean);
209
+ /**
210
+ * Gets the value of the 'no-size' attribute for the element.
211
+ * @returns {boolean} True if the 'no-size' attribute is present, otherwise false.
212
+ */
213
+ get noSize(): boolean;
196
214
  /**
197
215
  * Getter for the customErrorDisplay attribute.
198
216
  * @returns {boolean} Whether the attribute is present.
@@ -1476,7 +1476,6 @@ class Popup extends WJElement {
1476
1476
  loader.classList.add("popup-loader", "overlay");
1477
1477
  loader.setAttribute("part", "loader");
1478
1478
  loader.textContent = "Loading...";
1479
- console.log("LOADER", this.loader);
1480
1479
  if (this.loader) native.append(loader);
1481
1480
  native.append(slot);
1482
1481
  native.append(slotArrow);
@@ -1494,7 +1493,6 @@ class Popup extends WJElement {
1494
1493
  afterDraw() {
1495
1494
  this.setAnchor();
1496
1495
  this.addEventListener("wje-popup:content-ready", () => {
1497
- console.log("READY 1", this.loader);
1498
1496
  this.markContentReady();
1499
1497
  }, { once: true });
1500
1498
  if (this.hasAttribute("active")) this.show(false);
@@ -1596,18 +1594,18 @@ class Popup extends WJElement {
1596
1594
  * Sets up auto update for repositioning.
1597
1595
  */
1598
1596
  show(dispatchEvent = true) {
1599
- var _a, _b, _c;
1597
+ var _a, _b, _c, _d, _e, _f, _g;
1600
1598
  if (this.loader) {
1601
- this.native.classList.add("loading");
1602
- this.loaderEl.classList.remove("fade-out");
1599
+ (_b = (_a = this.native) == null ? void 0 : _a.classList) == null ? void 0 : _b.add("loading");
1600
+ (_d = (_c = this.loaderEl) == null ? void 0 : _c.classList) == null ? void 0 : _d.remove("fade-out");
1603
1601
  this.native.prepend(this.loaderEl);
1604
1602
  }
1605
1603
  if (dispatchEvent) {
1606
1604
  event.dispatchCustomEvent(this, "wje-popup:show");
1607
1605
  }
1608
1606
  if (this.anchorEl && this.native) {
1609
- (_b = (_a = this.native) == null ? void 0 : _a.classList) == null ? void 0 : _b.add("popup-active");
1610
- (_c = this.cleanup) == null ? void 0 : _c.call(this);
1607
+ (_f = (_e = this.native) == null ? void 0 : _e.classList) == null ? void 0 : _f.add("popup-active");
1608
+ (_g = this.cleanup) == null ? void 0 : _g.call(this);
1611
1609
  this.cleanup = autoUpdate(this.anchorEl, this.native, () => {
1612
1610
  this.reposition();
1613
1611
  });
@@ -1650,4 +1648,4 @@ class Popup extends WJElement {
1650
1648
  export {
1651
1649
  Popup as P
1652
1650
  };
1653
- //# sourceMappingURL=popup.element-CVbbnTWI.js.map
1651
+ //# sourceMappingURL=popup.element-ZX3dWrG0.js.map