wj-elements 0.1.145 → 0.1.146

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.
Files changed (64) hide show
  1. package/dist/packages/utils/permissions-api.d.ts +2 -2
  2. package/dist/packages/wje-accordion/accordion.element.d.ts +2 -2
  3. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +1 -1
  4. package/dist/packages/wje-animation/animation.element.d.ts +1 -1
  5. package/dist/packages/wje-aside/aside.element.d.ts +1 -1
  6. package/dist/packages/wje-avatar/avatar.element.d.ts +2 -2
  7. package/dist/packages/wje-badge/badge.element.d.ts +1 -1
  8. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +2 -2
  9. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +3 -3
  10. package/dist/packages/wje-button/button.element.d.ts +5 -5
  11. package/dist/packages/wje-button-group/button-group.element.d.ts +2 -2
  12. package/dist/packages/wje-card/card.element.d.ts +1 -1
  13. package/dist/packages/wje-card-content/card-content.element.d.ts +1 -1
  14. package/dist/packages/wje-card-controls/card-controls.element.d.ts +1 -1
  15. package/dist/packages/wje-card-header/card-header.element.d.ts +1 -1
  16. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +1 -1
  17. package/dist/packages/wje-card-title/card-title.element.d.ts +1 -1
  18. package/dist/packages/wje-carousel/carousel.element.d.ts +2 -2
  19. package/dist/packages/wje-color-picker/color-picker.element.d.ts +4 -4
  20. package/dist/packages/wje-container/container.element.d.ts +1 -1
  21. package/dist/packages/wje-dialog/dialog.element.d.ts +2 -2
  22. package/dist/packages/wje-dropdown/dropdown.element.d.ts +2 -2
  23. package/dist/packages/wje-element/element.d.ts +7 -5
  24. package/dist/packages/wje-file-upload/file-upload.element.d.ts +2 -2
  25. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +1 -1
  26. package/dist/packages/wje-footer/footer.element.d.ts +1 -1
  27. package/dist/packages/wje-format-digital/format-digital.element.d.ts +1 -1
  28. package/dist/packages/wje-header/header.element.d.ts +1 -1
  29. package/dist/packages/wje-icon/icon.element.d.ts +1 -1
  30. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +1 -1
  31. package/dist/packages/wje-img/img.element.d.ts +4 -4
  32. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +1 -1
  33. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +3 -3
  34. package/dist/packages/wje-input-file/input-file.element.d.ts +1 -1
  35. package/dist/packages/wje-item/item.element.d.ts +1 -1
  36. package/dist/packages/wje-kanban/kanban.element.d.ts +3 -3
  37. package/dist/packages/wje-label/label.element.d.ts +1 -1
  38. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +2 -2
  39. package/dist/packages/wje-main/main.element.d.ts +1 -1
  40. package/dist/packages/wje-menu/menu.element.d.ts +1 -1
  41. package/dist/packages/wje-menu-button/menu-button.element.d.ts +1 -1
  42. package/dist/packages/wje-menu-label/menu-label.element.d.ts +1 -1
  43. package/dist/packages/wje-option/option.element.d.ts +1 -1
  44. package/dist/packages/wje-options/options.element.d.ts +1 -1
  45. package/dist/packages/wje-pagination/pagination.element.d.ts +5 -5
  46. package/dist/packages/wje-popup/popup.element.d.ts +1 -1
  47. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +1 -1
  48. package/dist/packages/wje-radio/radio.element.d.ts +1 -1
  49. package/dist/packages/wje-rate/rate.element.d.ts +3 -3
  50. package/dist/packages/wje-relative-time/relative-time.element.d.ts +1 -1
  51. package/dist/packages/wje-reorder/reorder.element.d.ts +1 -1
  52. package/dist/packages/wje-route/route.element.d.ts +1 -1
  53. package/dist/packages/wje-router/router.element.d.ts +1 -1
  54. package/dist/packages/wje-router-link/router-link.element.d.ts +1 -1
  55. package/dist/packages/wje-select/select.element.d.ts +2 -2
  56. package/dist/packages/wje-slider/slider.element.d.ts +1 -1
  57. package/dist/packages/wje-split-view/split-view.element.d.ts +1 -1
  58. package/dist/packages/wje-textarea/textarea.element.d.ts +1 -1
  59. package/dist/packages/wje-tree-item/tree-item.element.d.ts +2 -2
  60. package/dist/wje-element.js +24 -20
  61. package/dist/wje-element.js.map +1 -1
  62. package/package.json +1 -1
  63. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  64. package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
@@ -4,12 +4,12 @@ export class WjePermissionsApi {
4
4
  * Sets the permission key.
5
5
  * @param value
6
6
  */
7
- static set permissionKey(value: any);
7
+ static set permissionKey(value: any | string);
8
8
  /**
9
9
  * Returns the permission key.
10
10
  * @returns {*|string}
11
11
  */
12
- static get permissionKey(): any;
12
+ static get permissionKey(): any | string;
13
13
  /**
14
14
  * Sets the permissions.
15
15
  * @param value
@@ -17,7 +17,7 @@ export default class Accordion extends WJElement {
17
17
  * Getter for the CSS stylesheet.
18
18
  * @returns {object} The styles for the Accordion element.
19
19
  */
20
- static get cssStyleSheet(): any;
20
+ static get cssStyleSheet(): object;
21
21
  /**
22
22
  * Getter for the observed attributes.
23
23
  * @returns {Array} An array containing the name of the observed attribute.
@@ -39,7 +39,7 @@ export default class Accordion extends WJElement {
39
39
  * Sets the value of the `index` attribute.
40
40
  * @param {number|string} value The value to set for the `index` attribute.
41
41
  */
42
- set index(value: number);
42
+ set index(value: number | string);
43
43
  /**
44
44
  * Retrieves the value of the `index` attribute as a number.
45
45
  * @returns {number} The numerical value of the `index` attribute, or `0` if the attribute is not set.
@@ -12,7 +12,7 @@ export default class AccordionItem extends WJElement {
12
12
  * Getter for the CSS stylesheet.
13
13
  * @returns {object} The styles for the Accordion Item element.
14
14
  */
15
- static get cssStyleSheet(): any;
15
+ static get cssStyleSheet(): object;
16
16
  /**
17
17
  * Getter for the observed attributes.
18
18
  * @returns {Array} An array containing the name of the observed attribute.
@@ -13,7 +13,7 @@ export default class Animation extends WJElement {
13
13
  * Getter for the CSS stylesheet.
14
14
  * @returns {object} The styles for the Animation element.
15
15
  */
16
- static get cssStyleSheet(): any;
16
+ static get cssStyleSheet(): object;
17
17
  /**
18
18
  * Getter for the observed attributes.
19
19
  * @returns {Array} An array containing the name of the observed attribute.
@@ -17,7 +17,7 @@ export default class Aside extends WJElement {
17
17
  * Getter for the CSS stylesheet.
18
18
  * @returns {object} The styles for the Aside element.
19
19
  */
20
- static get cssStyleSheet(): any;
20
+ static get cssStyleSheet(): object;
21
21
  /**
22
22
  * Getter for the observed attributes.
23
23
  * @returns {Array} An empty array as there are no observed attributes.
@@ -40,7 +40,7 @@ export default class Avatar extends WJElement {
40
40
  * the 'initials' attribute with the provided value.
41
41
  * @param {string} value The value to be set as the initials.
42
42
  */
43
- set initials(value: boolean);
43
+ set initials(value: string);
44
44
  /**
45
45
  * Retrieves the value of the 'initials' attribute if it exists.
46
46
  * @returns {boolean} Returns true if the 'initials' attribute is present, otherwise false.
@@ -50,7 +50,7 @@ export default class Avatar extends WJElement {
50
50
  * Sets the size attribute for the element.
51
51
  * @param {string | number} value The value to set for the size attribute.
52
52
  */
53
- set size(value: string);
53
+ set size(value: string | number);
54
54
  /**
55
55
  * Retrieves the size attribute of the element. If the size attribute
56
56
  * is not defined, it returns the default value 'medium'.
@@ -26,7 +26,7 @@ export default class Badge extends WJElement {
26
26
  * return ['color'];
27
27
  * }
28
28
  */
29
- static get observedAttributes(): string[];
29
+ static get observedAttributes(): Array<string>;
30
30
  /**
31
31
  * Creates the DOM structure for the Badge element.
32
32
  * @returns {DocumentFragment} A document fragment containing the Badge's structure.
@@ -20,13 +20,13 @@ export default class Breadcrumb extends WJElement {
20
20
  * @static
21
21
  * @returns {object} styles - The CSS styles
22
22
  */
23
- static get cssStyleSheet(): any;
23
+ static get cssStyleSheet(): object;
24
24
  /**
25
25
  * Get observed attributes for the Breadcrumb element.
26
26
  * @static
27
27
  * @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
28
28
  */
29
- static get observedAttributes(): string[];
29
+ static get observedAttributes(): Array<string>;
30
30
  _showSeparator: boolean;
31
31
  showCollapsedIndicator: boolean;
32
32
  /**
@@ -28,13 +28,13 @@ export default class Breadcrumbs extends WJElement {
28
28
  * @static
29
29
  * @returns {object} styles - The CSS styles
30
30
  */
31
- static get cssStyleSheet(): any;
31
+ static get cssStyleSheet(): object;
32
32
  /**
33
33
  * Get observed attributes for the Breadcrumb element.
34
34
  * @static
35
35
  * @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
36
36
  */
37
- static get observedAttributes(): string[];
37
+ static get observedAttributes(): Array<string>;
38
38
  /**
39
39
  * Last breadcrumb flag
40
40
  * @type {boolean}
@@ -54,7 +54,7 @@ export default class Breadcrumbs extends WJElement {
54
54
  * Get items before collapse attribute.
55
55
  * @param {string} value
56
56
  */
57
- set maxItems(value: number);
57
+ set maxItems(value: string);
58
58
  /**
59
59
  * Get items before collapse attribute.
60
60
  * @returns {number}
@@ -33,7 +33,7 @@ export default class Button extends WJElement {
33
33
  * @static
34
34
  * @returns {Array<string>} observedAttributes - The observed attributes array for the Button element.
35
35
  */
36
- static get observedAttributes(): string[];
36
+ static get observedAttributes(): Array<string>;
37
37
  /**
38
38
  * @summary A static property that indicates whether the custom element is form-associated or not.
39
39
  * Form-associated custom elements are elements that can participate in form submission.
@@ -50,12 +50,12 @@ export default class Button extends WJElement {
50
50
  * Properties of the element Button.
51
51
  * @param value
52
52
  */
53
- set color(value: string);
53
+ set color(value: string | string);
54
54
  /**
55
55
  * Get color of the Button element.
56
56
  * @returns {string|string}
57
57
  */
58
- get color(): string;
58
+ get color(): string | string;
59
59
  /**
60
60
  * Set variant of the Button element.
61
61
  * @param value
@@ -80,12 +80,12 @@ export default class Button extends WJElement {
80
80
  * Set variant of the Button element.
81
81
  * @param value
82
82
  */
83
- set dialog(value: any);
83
+ set dialog(value: string | object);
84
84
  /**
85
85
  * Get variant of the Button element.
86
86
  * @returns {string|object}
87
87
  */
88
- get dialog(): any;
88
+ get dialog(): string | object;
89
89
  /**
90
90
  * Set active state of the Button element.
91
91
  * @param {boolean} value The value to set
@@ -13,13 +13,13 @@ export default class ButtonGroup extends WJElement {
13
13
  * @static
14
14
  * @returns {object} styles - The CSS styles
15
15
  */
16
- static get cssStyleSheet(): any;
16
+ static get cssStyleSheet(): object;
17
17
  /**
18
18
  * Get observed attributes for the ButtonGroup element.
19
19
  * @static
20
20
  * @returns {Array<string>} observedAttributes - The observed attributes array
21
21
  */
22
- static get observedAttributes(): string[];
22
+ static get observedAttributes(): Array<string>;
23
23
  /**
24
24
  * Draw method for the ButtonGroup element.
25
25
  * @returns {object} fragment - The document fragment
@@ -17,7 +17,7 @@ export default class Card extends WJElement {
17
17
  * @static
18
18
  * @returns {object} styles - The CSS styles
19
19
  */
20
- static get cssStyleSheet(): any;
20
+ static get cssStyleSheet(): object;
21
21
  /**
22
22
  * Draw method for the Card element.
23
23
  * @param {object} context The context object
@@ -13,7 +13,7 @@ export default class CardContent extends WJElement {
13
13
  * @static
14
14
  * @returns {object} styles - The CSS styles for the CardContent element.
15
15
  */
16
- static get cssStyleSheet(): any;
16
+ static get cssStyleSheet(): object;
17
17
  /**
18
18
  * Draw method for the CardContent element.
19
19
  * @returns {object} fragment - The document fragment containing the drawn element.
@@ -14,7 +14,7 @@ export default class CardControls extends WJElement {
14
14
  * @static
15
15
  * @returns {object} styles - The CSS styles
16
16
  */
17
- static get cssStyleSheet(): any;
17
+ static get cssStyleSheet(): object;
18
18
  /**
19
19
  * Draw method for the CardControls element.
20
20
  * @returns {object} fragment - The document fragment
@@ -13,7 +13,7 @@ export default class CardHeader extends WJElement {
13
13
  * @returns {object} The styles object.
14
14
  * @static
15
15
  */
16
- static get cssStyleSheet(): any;
16
+ static get cssStyleSheet(): object;
17
17
  /**
18
18
  * Draws the CardHeader.
19
19
  * @returns {DocumentFragment} The created document fragment.
@@ -15,7 +15,7 @@ export default class CardSubtitle extends WJElement {
15
15
  * @returns {object} The styles object.
16
16
  * @static
17
17
  */
18
- static get cssStyleSheet(): any;
18
+ static get cssStyleSheet(): object;
19
19
  /**
20
20
  * Getter for the observed attributes.
21
21
  * @returns {Array} An empty array.
@@ -17,7 +17,7 @@ export default class CardTitle extends WJElement {
17
17
  * @returns {object} The styles object.
18
18
  * @static
19
19
  */
20
- static get cssStyleSheet(): any;
20
+ static get cssStyleSheet(): object;
21
21
  /**
22
22
  * Getter for the observed attributes.
23
23
  * @returns {Array} An empty array.
@@ -23,12 +23,12 @@ export default class Carousel extends WJElement {
23
23
  * Active slide attribute.
24
24
  * @param value
25
25
  */
26
- set activeSlide(value: number);
26
+ set activeSlide(value: number | number);
27
27
  /**
28
28
  * Active slide attribute.
29
29
  * @returns {number|number}
30
30
  */
31
- get activeSlide(): number;
31
+ get activeSlide(): number | number;
32
32
  /**
33
33
  * Pagination attribute.
34
34
  * @returns {boolean}
@@ -27,7 +27,7 @@ export default class ColorPicker extends WJElement {
27
27
  * @returns {object} The styles object.
28
28
  * @static
29
29
  */
30
- static get cssStyleSheet(): any;
30
+ static get cssStyleSheet(): object;
31
31
  /**
32
32
  * Getter for the observed attributes.
33
33
  * @returns {Array} An empty array.
@@ -50,17 +50,17 @@ export default class ColorPicker extends WJElement {
50
50
  * Setter for the marker position.
51
51
  * @param {object} value The new marker position.
52
52
  */
53
- set markerPosition(value: any);
53
+ set markerPosition(value: object);
54
54
  /**
55
55
  * Getter for the marker position.
56
56
  * @returns {object} The current marker position.
57
57
  */
58
- get markerPosition(): any;
58
+ get markerPosition(): object;
59
59
  /**
60
60
  * Setter for the color swatches.
61
61
  * @param {string} value The new color swatches.
62
62
  */
63
- set swatches(value: any[]);
63
+ set swatches(value: string);
64
64
  /**
65
65
  * Getter for the color swatches.
66
66
  * @returns {Array} The current color swatches.
@@ -16,7 +16,7 @@ export default class Container extends WJElement {
16
16
  * @returns {object} The styles object.
17
17
  * @static
18
18
  */
19
- static get cssStyleSheet(): any;
19
+ static get cssStyleSheet(): object;
20
20
  /**
21
21
  * Getter for the observed attributes.
22
22
  * @returns {Array} An empty array.
@@ -35,12 +35,12 @@ export default class Dialog extends WJElement {
35
35
  * Sets the headline of the dialog.
36
36
  * @param value
37
37
  */
38
- set placement(value: string);
38
+ set placement(value: string | string);
39
39
  /**
40
40
  * Gets the headline of the dialog.
41
41
  * @returns {string|string}
42
42
  */
43
- get placement(): string;
43
+ get placement(): string | string;
44
44
  /**
45
45
  * Sets the headline of the dialog.
46
46
  * @param value
@@ -30,12 +30,12 @@ export default class Dropdown extends WJElement {
30
30
  * Sets the placement of the dropdown.
31
31
  * @param value
32
32
  */
33
- set trigger(value: string);
33
+ set trigger(value: string | string);
34
34
  /**
35
35
  * Gets the placement of the dropdown.
36
36
  * @returns {string|string}
37
37
  */
38
- get trigger(): string;
38
+ get trigger(): string | string;
39
39
  /**
40
40
  * Callback function to handle other dropdowns being opened. Close the dropdown if it is not the target and collapse is enabled.
41
41
  * @param {Event} e The event object.
@@ -88,12 +88,12 @@ export default class WJElement extends HTMLElement {
88
88
  * Gets the rendering context, either the shadow root or the component itself.
89
89
  * @returns The rendering context.
90
90
  */
91
- get context(): any;
91
+ get context(): this | ShadowRoot;
92
92
  /**
93
93
  * Gets the store instance.
94
94
  * @returns {object} The store instance.
95
95
  */
96
- get store(): any;
96
+ get store(): object;
97
97
  /**
98
98
  * @typedef {object} ArrayActions
99
99
  * @property {Function} addAction - Adds an item to the array.
@@ -189,8 +189,8 @@ export default class WJElement extends HTMLElement {
189
189
  */
190
190
  refreshUpdatePromise(): void;
191
191
  updateComplete: Promise<any>;
192
- finisPromise: ((value: any) => void) | ((resolve: any) => void);
193
- rejectPromise: ((reason?: any) => void) | ((reject: any) => void);
192
+ finisPromise: (value: any) => void;
193
+ rejectPromise: (reason?: any) => void;
194
194
  /**
195
195
  * Lifecycle method invoked when the component is connected to the DOM.
196
196
  */
@@ -229,6 +229,7 @@ export default class WJElement extends HTMLElement {
229
229
  * Lifecycle method invoked when the component is disconnected from the DOM.
230
230
  */
231
231
  disconnectedCallback(): void;
232
+ processCurrentRenderPromise(): Promise<void>;
232
233
  /**
233
234
  * Enqueues an update to the component.
234
235
  * @returns A promise that resolves when the update is complete.
@@ -241,6 +242,7 @@ export default class WJElement extends HTMLElement {
241
242
  * @param newName The new value of the attribute.
242
243
  */
243
244
  attributeChangedCallback(name: any, old: any, newName: any): void;
245
+ refresh(): void;
244
246
  /**
245
247
  * Refreshes the component by reinitializing it if it is in a drawing state.
246
248
  * This method checks if the component's drawing status is at least in the START state.
@@ -253,7 +255,7 @@ export default class WJElement extends HTMLElement {
253
255
  * If the component is not in a drawing state, it simply returns a resolved promise.
254
256
  * @returns {Promise<void>} A promise that resolves when the refresh is complete.
255
257
  */
256
- refresh(): Promise<void>;
258
+ _refresh(): Promise<void>;
257
259
  /**
258
260
  * Displays the component's content, optionally forcing a re-render.
259
261
  * @param [force] Whether to force a re-render.
@@ -83,12 +83,12 @@ export default class FileUpload extends WJElement {
83
83
  * Sets the autoProcessFiles attribute.
84
84
  * @param value
85
85
  */
86
- set autoProcessFiles(value: any);
86
+ set autoProcessFiles(value: any | boolean);
87
87
  /**
88
88
  * Gets the autoProcessFiles attribute.
89
89
  * @returns {any|boolean}
90
90
  */
91
- get autoProcessFiles(): any;
91
+ get autoProcessFiles(): any | boolean;
92
92
  /**
93
93
  * Sets the noUploadButton attribute.
94
94
  * @param value
@@ -29,7 +29,7 @@ export default class FileUploadItem extends WJElement {
29
29
  * @static
30
30
  * @returns {Array<string>}
31
31
  */
32
- static get observedAttributes(): string[];
32
+ static get observedAttributes(): Array<string>;
33
33
  localizer: Localizer;
34
34
  set size(value: string);
35
35
  get size(): string;
@@ -19,7 +19,7 @@ export default class Footer extends WJElement {
19
19
  * @static
20
20
  * @returns {Array<string>}
21
21
  */
22
- static get observedAttributes(): string[];
22
+ static get observedAttributes(): Array<string>;
23
23
  /**
24
24
  * Draws the component.
25
25
  * @returns {DocumentFragment}
@@ -34,7 +34,7 @@ export default class FormatDigital extends WJElement {
34
34
  * @static
35
35
  * @returns {Array<string>} - The attributes to observe.
36
36
  */
37
- static get observedAttributes(): string[];
37
+ static get observedAttributes(): Array<string>;
38
38
  localizer: Localizer;
39
39
  /**
40
40
  * Sets the value of the digital format.
@@ -26,7 +26,7 @@ export default class Header extends WJElement {
26
26
  * @static
27
27
  * @returns {Array<string>}
28
28
  */
29
- static get observedAttributes(): string[];
29
+ static get observedAttributes(): Array<string>;
30
30
  /**
31
31
  * Draws the component.
32
32
  * @returns {DocumentFragment}
@@ -22,7 +22,7 @@ export default class Icon extends WJElement {
22
22
  * @static
23
23
  * @returns {Array<string>}
24
24
  */
25
- static get observedAttributes(): string[];
25
+ static get observedAttributes(): Array<string>;
26
26
  /**
27
27
  * Draws the component.
28
28
  * @param {object} context The context for drawing.
@@ -36,7 +36,7 @@ export default class IconPicker extends WJElement {
36
36
  * @static
37
37
  * @returns {Array<string>}
38
38
  */
39
- static get observedAttributes(): string[];
39
+ static get observedAttributes(): Array<string>;
40
40
  /**
41
41
  * Dependencies of the IconPicker component.
42
42
  * @property {object} dependencies
@@ -24,7 +24,7 @@ export default class Img extends WJElement {
24
24
  * @static
25
25
  * @returns {Array<string>}
26
26
  */
27
- static get observedAttributes(): string[];
27
+ static get observedAttributes(): Array<string>;
28
28
  _fallout: boolean;
29
29
  actions: {
30
30
  delete: () => void;
@@ -35,12 +35,12 @@ export default class Img extends WJElement {
35
35
  * otherwise, assigns the value to the `_fallout` property.
36
36
  * @param {string|*} value The value to set for the fallout property. If a string, it will update the `fallout` attribute; for other types, it will assign it to the `_fallout` property.
37
37
  */
38
- set fallout(value: string);
38
+ set fallout(value: string | any);
39
39
  /**
40
40
  * Retrieves the value of the 'fallout' attribute if it exists, otherwise returns the internal `_fallout` property.
41
41
  * @returns {string|null} The value of the 'fallout' attribute or the `_fallout` property if the attribute is not present. Returns null if no value is found.
42
42
  */
43
- get fallout(): string;
43
+ get fallout(): string | null;
44
44
  /**
45
45
  * Sets the value of the loader attribute.
46
46
  * @param {string} value The value to set for the loader attribute.
@@ -50,7 +50,7 @@ export default class Img extends WJElement {
50
50
  * Retrieves the value of the 'loader' attribute from the element.
51
51
  * @returns {string|null} The value of the 'loader' attribute if set, otherwise null.
52
52
  */
53
- get loader(): string;
53
+ get loader(): string | null;
54
54
  /**
55
55
  * Creates and assembles a lazy-loaded image element within a document fragment.
56
56
  * @returns {DocumentFragment} A document fragment containing the image element.
@@ -29,7 +29,7 @@ export default class ImgComparer extends WJElement {
29
29
  * @static
30
30
  * @returns {Array<string>}
31
31
  */
32
- static get observedAttributes(): string[];
32
+ static get observedAttributes(): Array<string>;
33
33
  /**
34
34
  * Dependencies of the ImgComparer component.
35
35
  * @property {object} dependencies
@@ -25,7 +25,7 @@ export default class InfiniteScroll extends WJElement {
25
25
  * @static
26
26
  * @returns {Array<string>}
27
27
  */
28
- static get observedAttributes(): string[];
28
+ static get observedAttributes(): Array<string>;
29
29
  totalPages: number;
30
30
  isLoading: any[];
31
31
  _response: {};
@@ -47,12 +47,12 @@ export default class InfiniteScroll extends WJElement {
47
47
  * Dependencies of the InfiniteScroll component.
48
48
  * @param value
49
49
  */
50
- set response(value: any);
50
+ set response(value: any | {});
51
51
  /**
52
52
  * Getter for the response property.
53
53
  * @returns {*|{}}
54
54
  */
55
- get response(): any;
55
+ get response(): any | {};
56
56
  /**
57
57
  * Dependencies of the InfiniteScroll component.
58
58
  * @param value
@@ -17,7 +17,7 @@ export default class InputFile extends WJElement {
17
17
  * @static
18
18
  * @returns {object} styles
19
19
  */
20
- static get cssStyleSheet(): any;
20
+ static get cssStyleSheet(): object;
21
21
  /**
22
22
  * Returns the observed attributes.
23
23
  * @static
@@ -36,7 +36,7 @@ export default class Item extends WJElement {
36
36
  * @static
37
37
  * @returns {object} styles
38
38
  */
39
- static get cssStyleSheet(): any;
39
+ static get cssStyleSheet(): object;
40
40
  labelColorStyles: {};
41
41
  itemStyles: Map<any, any>;
42
42
  inheritedAriaAttributes: {};
@@ -24,7 +24,7 @@ export default class Kanban extends WJElement {
24
24
  * @static
25
25
  * @returns {Array<string>}
26
26
  */
27
- static get observedAttributes(): string[];
27
+ static get observedAttributes(): Array<string>;
28
28
  totalPages: number;
29
29
  isLoading: any[];
30
30
  _response: {};
@@ -41,12 +41,12 @@ export default class Kanban extends WJElement {
41
41
  * Sets the URL for fetching data.
42
42
  * @param value {string}
43
43
  */
44
- set response(value: any);
44
+ set response(value: string);
45
45
  /**
46
46
  * Gets the URL for fetching data.
47
47
  * @returns {*|{}|{}}
48
48
  */
49
- get response(): any;
49
+ get response(): any | {} | {};
50
50
  /**
51
51
  * Sets the URL for fetching data.
52
52
  * @param value {array}
@@ -25,7 +25,7 @@ export default class Label extends WJElement {
25
25
  * @static
26
26
  * @returns {Array<string>}
27
27
  */
28
- static get observedAttributes(): string[];
28
+ static get observedAttributes(): Array<string>;
29
29
  /**
30
30
  * Draws the component.
31
31
  * @returns {DocumentFragment}
@@ -20,7 +20,7 @@ export default class LevelIndicator extends WJElement {
20
20
  * Sets the level attribute for an instance.
21
21
  * @param {string} value The value to set for the 'level' attribute.
22
22
  */
23
- set level(value: number);
23
+ set level(value: string);
24
24
  /**
25
25
  * Retrieves the level attribute of an element, with validation to ensure
26
26
  * it is within the range of 0 to 3. If the level attribute is not present,
@@ -33,7 +33,7 @@ export default class LevelIndicator extends WJElement {
33
33
  * Sets the value of the "bars" attribute.
34
34
  * @param {string} value The value to set for the "bars" attribute.
35
35
  */
36
- set bars(value: number);
36
+ set bars(value: string);
37
37
  /**
38
38
  * Retrieves the value of the "bars" attribute, parses it as an integer,
39
39
  * and ensures it is at least 1. If the attribute is not set, defaults to 3.
@@ -21,7 +21,7 @@ export default class Main extends WJElement {
21
21
  * @static
22
22
  * @returns {Array<string>}
23
23
  */
24
- static get observedAttributes(): string[];
24
+ static get observedAttributes(): Array<string>;
25
25
  /**
26
26
  * Draws the component for the main section.
27
27
  * @returns {DocumentFragment}
@@ -34,7 +34,7 @@ export default class Menu extends WJElement {
34
34
  * @static
35
35
  * @returns {Array<string>}
36
36
  */
37
- static get observedAttributes(): string[];
37
+ static get observedAttributes(): Array<string>;
38
38
  /**
39
39
  * Draws the component for the menu.
40
40
  * @returns {DocumentFragment}
@@ -21,7 +21,7 @@ export default class MenuButton extends WJElement {
21
21
  * @static
22
22
  * @returns {Array<string>}
23
23
  */
24
- static get observedAttributes(): string[];
24
+ static get observedAttributes(): Array<string>;
25
25
  /**
26
26
  * Draws the component for the menu button.
27
27
  * @returns {DocumentFragment}