wj-elements 0.1.155 → 0.1.157

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 (94) hide show
  1. package/dist/dark.css +8 -5
  2. package/dist/light.css +9 -6
  3. package/dist/packages/utils/event.d.ts +1 -1
  4. package/dist/packages/utils/permissions-api.d.ts +2 -2
  5. package/dist/packages/wje-accordion/accordion.element.d.ts +2 -2
  6. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +1 -1
  7. package/dist/packages/wje-animation/animation.element.d.ts +1 -1
  8. package/dist/packages/wje-aside/aside.element.d.ts +1 -1
  9. package/dist/packages/wje-avatar/avatar.element.d.ts +3 -3
  10. package/dist/packages/wje-badge/badge.element.d.ts +1 -1
  11. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +2 -2
  12. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +3 -3
  13. package/dist/packages/wje-button/button.element.d.ts +9 -5
  14. package/dist/packages/wje-button-group/button-group.element.d.ts +2 -2
  15. package/dist/packages/wje-card/card.element.d.ts +1 -1
  16. package/dist/packages/wje-card-content/card-content.element.d.ts +1 -1
  17. package/dist/packages/wje-card-controls/card-controls.element.d.ts +1 -1
  18. package/dist/packages/wje-card-header/card-header.element.d.ts +1 -1
  19. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +1 -1
  20. package/dist/packages/wje-card-title/card-title.element.d.ts +1 -1
  21. package/dist/packages/wje-carousel/carousel.element.d.ts +2 -2
  22. package/dist/packages/wje-color-picker/color-picker.element.d.ts +4 -4
  23. package/dist/packages/wje-container/container.element.d.ts +1 -1
  24. package/dist/packages/wje-dialog/dialog.element.d.ts +2 -2
  25. package/dist/packages/wje-dropdown/dropdown.element.d.ts +6 -7
  26. package/dist/packages/wje-element/element.d.ts +11 -9
  27. package/dist/packages/wje-file-upload/file-upload.element.d.ts +2 -2
  28. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +1 -1
  29. package/dist/packages/wje-footer/footer.element.d.ts +1 -1
  30. package/dist/packages/wje-format-digital/format-digital.element.d.ts +1 -1
  31. package/dist/packages/wje-header/header.element.d.ts +1 -1
  32. package/dist/packages/wje-icon/icon.element.d.ts +1 -1
  33. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +1 -1
  34. package/dist/packages/wje-img/img.element.d.ts +5 -5
  35. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +1 -1
  36. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +3 -3
  37. package/dist/packages/wje-input-file/input-file.element.d.ts +1 -1
  38. package/dist/packages/wje-item/item.element.d.ts +1 -1
  39. package/dist/packages/wje-kanban/kanban.element.d.ts +3 -3
  40. package/dist/packages/wje-label/label.element.d.ts +1 -1
  41. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +2 -2
  42. package/dist/packages/wje-main/main.element.d.ts +1 -1
  43. package/dist/packages/wje-menu/menu.element.d.ts +1 -1
  44. package/dist/packages/wje-menu-button/menu-button.element.d.ts +1 -1
  45. package/dist/packages/wje-menu-label/menu-label.element.d.ts +1 -1
  46. package/dist/packages/wje-option/option.element.d.ts +1 -1
  47. package/dist/packages/wje-options/options.element.d.ts +1 -1
  48. package/dist/packages/wje-pagination/pagination.element.d.ts +5 -5
  49. package/dist/packages/wje-popup/popup.element.d.ts +1 -10
  50. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +1 -1
  51. package/dist/packages/wje-radio/radio.element.d.ts +1 -1
  52. package/dist/packages/wje-rate/rate.element.d.ts +3 -3
  53. package/dist/packages/wje-relative-time/relative-time.element.d.ts +1 -1
  54. package/dist/packages/wje-reorder/reorder.element.d.ts +1 -1
  55. package/dist/packages/wje-route/route.element.d.ts +1 -1
  56. package/dist/packages/wje-router/router.element.d.ts +1 -1
  57. package/dist/packages/wje-router-link/router-link.element.d.ts +1 -1
  58. package/dist/packages/wje-select/select.element.d.ts +2 -2
  59. package/dist/packages/wje-slider/slider.element.d.ts +1 -1
  60. package/dist/packages/wje-split-view/split-view.element.d.ts +1 -1
  61. package/dist/packages/wje-textarea/textarea.element.d.ts +1 -1
  62. package/dist/packages/wje-tooltip/tooltip.element.d.ts +1 -0
  63. package/dist/packages/wje-tree-item/tree-item.element.d.ts +2 -2
  64. package/dist/{popup.element-tyYxow0p.js → popup.element-AaduHP2r.js} +44 -44
  65. package/dist/{popup.element-tyYxow0p.js.map → popup.element-AaduHP2r.js.map} +1 -1
  66. package/dist/wje-button.js +30 -0
  67. package/dist/wje-button.js.map +1 -1
  68. package/dist/wje-color-picker.js +8 -1
  69. package/dist/wje-color-picker.js.map +1 -1
  70. package/dist/wje-dialog.js +1 -3
  71. package/dist/wje-dialog.js.map +1 -1
  72. package/dist/wje-dropdown.js +32 -14
  73. package/dist/wje-dropdown.js.map +1 -1
  74. package/dist/wje-element.js +112 -79
  75. package/dist/wje-element.js.map +1 -1
  76. package/dist/wje-icon-picker.js +1 -1
  77. package/dist/wje-img.js +0 -1
  78. package/dist/wje-img.js.map +1 -1
  79. package/dist/wje-master.js +1 -1
  80. package/dist/wje-menu-item.js +4 -5
  81. package/dist/wje-menu-item.js.map +1 -1
  82. package/dist/wje-pagination.js +2 -4
  83. package/dist/wje-pagination.js.map +1 -1
  84. package/dist/wje-popup.js +1 -1
  85. package/dist/wje-select.js +1 -1
  86. package/dist/wje-sliding-container.js +2 -2
  87. package/dist/wje-sliding-container.js.map +1 -1
  88. package/dist/wje-toast.js +2 -1
  89. package/dist/wje-toast.js.map +1 -1
  90. package/dist/wje-tooltip.js +11 -0
  91. package/dist/wje-tooltip.js.map +1 -1
  92. package/package.json +7 -12
  93. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  94. package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
package/dist/dark.css CHANGED
@@ -7,12 +7,15 @@
7
7
  .dark {
8
8
  color-scheme: dark;
9
9
 
10
- --wje-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
10
+ --wje-font-family:
11
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
12
+ 'Droid Sans', 'Helvetica Neue', sans-serif;
13
+ --wje-font-family-secondary:
14
+ 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
15
+ 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
16
+ --wje-force-mac-font-family:
17
+ -apple-system, BlinkMacSystemFont, 'Inter UI', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
11
18
  'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
12
- --wje-font-family-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
13
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
14
- --wje-force-mac-font-family: -apple-system, BlinkMacSystemFont, 'Inter UI', 'Segoe UI', 'Roboto', 'Oxygen',
15
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
16
19
 
17
20
  --wje-border-size: 0px;
18
21
  --wje-border-style: solid;
package/dist/light.css CHANGED
@@ -11,12 +11,15 @@
11
11
  }
12
12
  color-scheme: light;
13
13
 
14
- --wje-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif,
15
- 'Apple Color Emoji', 'Segoe UI Emoji';
16
- --wje-font-family-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
17
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
18
- --wje-force-mac-font-family: -apple-system, BlinkMacSystemFont, 'Inter UI', 'Segoe UI', 'Roboto', 'Oxygen',
19
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
14
+ --wje-font-family:
15
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
16
+ 'Segoe UI Emoji';
17
+ --wje-font-family-secondary:
18
+ 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
19
+ 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
20
+ --wje-force-mac-font-family:
21
+ -apple-system, BlinkMacSystemFont, 'Inter UI', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
22
+ 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
20
23
 
21
24
  /* Line Heights */
22
25
  --wje-line-height-denser: 1.2;
@@ -1,6 +1,6 @@
1
1
  export let event: Event;
2
2
  declare class Event {
3
- customEventStorage: any[];
3
+ customEventWeakMap: WeakMap<WeakKey, any>;
4
4
  /**
5
5
  * Dispatch custom event to the element with the specified event name and detail.
6
6
  * @param element
@@ -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.
@@ -29,7 +29,7 @@ export default class Avatar 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
  * Sets the value of the 'label' attribute for the element.
35
35
  * @param {string} value The new value to be set for the 'label' attribute.
@@ -46,7 +46,7 @@ export default class Avatar extends WJElement {
46
46
  * the 'initials' attribute with the provided value.
47
47
  * @param {string} value The value to be set as the initials.
48
48
  */
49
- set initials(value: boolean);
49
+ set initials(value: string);
50
50
  /**
51
51
  * Retrieves the value of the 'initials' attribute if it exists.
52
52
  * @returns {boolean} Returns true if the 'initials' attribute is present, otherwise false.
@@ -56,7 +56,7 @@ export default class Avatar extends WJElement {
56
56
  * Sets the size attribute for the element.
57
57
  * @param {string | number} value The value to set for the size attribute.
58
58
  */
59
- set size(value: string);
59
+ set size(value: string | number);
60
60
  /**
61
61
  * Retrieves the size attribute of the element. If the size attribute
62
62
  * 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
@@ -136,6 +136,9 @@ export default class Button extends WJElement {
136
136
  * @returns {boolean} stopPropagation - The stop propagation state
137
137
  */
138
138
  get stopPropagation(): boolean;
139
+ set customEvent(value: string);
140
+ get customEvent(): string;
141
+ get customEventParameters(): {};
139
142
  /**
140
143
  * @summary Callback function that is called when the custom element is associated with a form.
141
144
  * This function sets the internal `_form` property to the associated form.
@@ -156,6 +159,7 @@ export default class Button extends WJElement {
156
159
  draw(): object;
157
160
  hasToggle: boolean;
158
161
  slotToggle: HTMLSlotElement;
162
+ populateCustomEvent(): void;
159
163
  /**
160
164
  * After draw method for the Button element.
161
165
  */
@@ -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.
@@ -52,6 +52,7 @@ export default class Dropdown extends WJElement {
52
52
  */
53
53
  draw(): DocumentFragment;
54
54
  anchorSlot: HTMLSlotElement;
55
+ popupHideCallback: () => void;
55
56
  /**
56
57
  * Adds event listeners for the mouseenter and mouseleave events.
57
58
  */
@@ -77,9 +78,7 @@ export default class Dropdown extends WJElement {
77
78
  * @param {object} e
78
79
  */
79
80
  onOpen: (e: object) => void;
80
- /**
81
- * Close the popup element.
82
- * @param {object} e
83
- */
84
- onClose: (e: object) => void;
81
+ beforeClose: () => void;
82
+ afterClose: () => void;
83
+ onClose: (e: any) => void;
85
84
  }
@@ -42,7 +42,10 @@ export default class WJElement extends HTMLElement {
42
42
  DISCONNECTED: number;
43
43
  };
44
44
  drawingStatus: number;
45
- isInitializing: boolean;
45
+ _pristine: boolean;
46
+ _pristineCauseWeakMap: WeakMap<WeakKey, any>;
47
+ isRendering: boolean;
48
+ rafId: number;
46
49
  /**
47
50
  * Sets the value of the 'permission' attribute.
48
51
  * @param {string[]} value The value to set for the 'permission' attribute.
@@ -89,12 +92,12 @@ export default class WJElement extends HTMLElement {
89
92
  * Gets the rendering context, either the shadow root or the component itself.
90
93
  * @returns The rendering context.
91
94
  */
92
- get context(): any;
95
+ get context(): this | ShadowRoot;
93
96
  /**
94
97
  * Gets the store instance.
95
98
  * @returns {object} The store instance.
96
99
  */
97
- get store(): any;
100
+ get store(): object;
98
101
  /**
99
102
  * @typedef {object} ArrayActions
100
103
  * @property {Function} addAction - Adds an item to the array.
@@ -196,7 +199,7 @@ export default class WJElement extends HTMLElement {
196
199
  * Lifecycle method invoked when the component is connected to the DOM.
197
200
  */
198
201
  connectedCallback(): void;
199
- renderPromise: Promise<any> | Promise<void>;
202
+ originalVisibility: string;
200
203
  /**
201
204
  * Initializes the component, setting up attributes and rendering.
202
205
  * @param [force] Whether to force initialization.
@@ -230,12 +233,11 @@ export default class WJElement extends HTMLElement {
230
233
  * Lifecycle method invoked when the component is disconnected from the DOM.
231
234
  */
232
235
  disconnectedCallback(): void;
233
- processCurrentRenderPromise(): Promise<void>;
234
236
  /**
235
- * Enqueues an update to the component.
236
- * @returns A promise that resolves when the update is complete.
237
+ * Enqueues an update for the component.
238
+ * This method processes the current render promise and then refreshes the component.
237
239
  */
238
- enqueueUpdate(): Promise<void>;
240
+ enqueueUpdate(): void;
239
241
  /**
240
242
  * Lifecycle method invoked when an observed attribute changes.
241
243
  * @param name The name of the attribute that changed.
@@ -254,9 +256,9 @@ export default class WJElement extends HTMLElement {
254
256
  * 4. Calls the `afterDisconnect` hook if defined.
255
257
  * 5. Reinitializes the component by calling `initWjElement` with `true` to force initialization.
256
258
  * If the component is not in a drawing state, it simply returns a resolved promise.
257
- * @returns {Promise<void>} A promise that resolves when the refresh is complete.
258
259
  */
259
260
  _refresh(): Promise<void>;
261
+ stopRenderLoop(): void;
260
262
  /**
261
263
  * Displays the component's content, optionally forcing a re-render.
262
264
  * @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;
@@ -49,18 +49,18 @@ export default class Img extends WJElement {
49
49
  * Retrieves the value of the 'alt' attribute for the current element.
50
50
  * @returns {string|null} The value of the 'alt' attribute, or null if the attribute is not set.
51
51
  */
52
- get alt(): string;
52
+ get alt(): string | null;
53
53
  /**
54
54
  * Sets the fallout property. Updates the `fallout` attribute if the value is a string;
55
55
  * otherwise, assigns the value to the `_fallout` property.
56
56
  * @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.
57
57
  */
58
- set fallout(value: string);
58
+ set fallout(value: string | any);
59
59
  /**
60
60
  * Retrieves the value of the 'fallout' attribute if it exists, otherwise returns the internal `_fallout` property.
61
61
  * @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.
62
62
  */
63
- get fallout(): string;
63
+ get fallout(): string | null;
64
64
  /**
65
65
  * Sets the value of the loader attribute.
66
66
  * @param {string} value The value to set for the loader attribute.
@@ -70,7 +70,7 @@ export default class Img extends WJElement {
70
70
  * Retrieves the value of the 'loader' attribute from the element.
71
71
  * @returns {string|null} The value of the 'loader' attribute if set, otherwise null.
72
72
  */
73
- get loader(): string;
73
+ get loader(): string | null;
74
74
  /**
75
75
  * Creates and assembles a lazy-loaded image element within a document fragment.
76
76
  * @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