wj-elements 0.1.187 → 0.1.189

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.
@@ -14,6 +14,8 @@ export default class Routerx extends WJElement {
14
14
  * @returns {Array<string>}
15
15
  */
16
16
  static get observedAttributes(): Array<string>;
17
+ set outlet(value: Element | "wje-router-outlet");
18
+ get outlet(): Element | "wje-router-outlet";
17
19
  /**
18
20
  * Sets up the router after the component is drawn.
19
21
  */
@@ -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.
@@ -206,6 +224,7 @@ export class Select extends FormAssociatedElement {
206
224
  * @returns {Array<object>} An array containing all the available options, combining the loaded, added, and HTML-based options, with duplicates removed where applicable.
207
225
  */
208
226
  get options(): Array<object>;
227
+ beforeDraw(): void;
209
228
  /**
210
229
  * Draws the component for the select.
211
230
  * @returns {DocumentFragment}
@@ -344,5 +363,6 @@ export class Select extends FormAssociatedElement {
344
363
  * @returns {boolean} Returns true if all elements in the `elements` array are found within the `options` array, otherwise returns false.
345
364
  */
346
365
  areAllElementsInOptions(elements: any[], options: any[]): boolean;
366
+ clearSelections(): void;
347
367
  #private;
348
368
  }
@@ -1594,18 +1594,18 @@ class Popup extends WJElement {
1594
1594
  * Sets up auto update for repositioning.
1595
1595
  */
1596
1596
  show(dispatchEvent = true) {
1597
- var _a, _b, _c, _d, _e;
1597
+ var _a, _b, _c, _d, _e, _f, _g;
1598
1598
  if (this.loader) {
1599
- this.native.classList.add("loading");
1600
- (_b = (_a = this.loaderEl) == null ? void 0 : _a.classList) == null ? void 0 : _b.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");
1601
1601
  this.native.prepend(this.loaderEl);
1602
1602
  }
1603
1603
  if (dispatchEvent) {
1604
1604
  event.dispatchCustomEvent(this, "wje-popup:show");
1605
1605
  }
1606
1606
  if (this.anchorEl && this.native) {
1607
- (_d = (_c = this.native) == null ? void 0 : _c.classList) == null ? void 0 : _d.add("popup-active");
1608
- (_e = this.cleanup) == null ? void 0 : _e.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);
1609
1609
  this.cleanup = autoUpdate(this.anchorEl, this.native, () => {
1610
1610
  this.reposition();
1611
1611
  });
@@ -1648,4 +1648,4 @@ class Popup extends WJElement {
1648
1648
  export {
1649
1649
  Popup as P
1650
1650
  };
1651
- //# sourceMappingURL=popup.element-BPUQUXFx.js.map
1651
+ //# sourceMappingURL=popup.element-ZX3dWrG0.js.map