wj-elements 0.1.154 → 0.1.156
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/dark.css +8 -5
- package/dist/light.css +9 -6
- package/dist/packages/utils/event.d.ts +1 -0
- package/dist/packages/utils/permissions-api.d.ts +2 -2
- package/dist/packages/wje-accordion/accordion.element.d.ts +2 -2
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +1 -1
- package/dist/packages/wje-animation/animation.element.d.ts +1 -1
- package/dist/packages/wje-aside/aside.element.d.ts +1 -1
- package/dist/packages/wje-avatar/avatar.element.d.ts +3 -3
- package/dist/packages/wje-badge/badge.element.d.ts +1 -1
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +2 -2
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +3 -3
- package/dist/packages/wje-button/button.element.d.ts +9 -5
- package/dist/packages/wje-button-group/button-group.element.d.ts +2 -2
- package/dist/packages/wje-card/card.element.d.ts +1 -1
- package/dist/packages/wje-card-content/card-content.element.d.ts +1 -1
- package/dist/packages/wje-card-controls/card-controls.element.d.ts +1 -1
- package/dist/packages/wje-card-header/card-header.element.d.ts +1 -1
- package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +1 -1
- package/dist/packages/wje-card-title/card-title.element.d.ts +1 -1
- package/dist/packages/wje-carousel/carousel.element.d.ts +2 -2
- package/dist/packages/wje-color-picker/color-picker.element.d.ts +4 -4
- package/dist/packages/wje-container/container.element.d.ts +1 -1
- package/dist/packages/wje-dialog/dialog.element.d.ts +2 -2
- package/dist/packages/wje-dropdown/dropdown.element.d.ts +6 -7
- package/dist/packages/wje-element/element.d.ts +11 -9
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +2 -2
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +1 -1
- package/dist/packages/wje-footer/footer.element.d.ts +1 -1
- package/dist/packages/wje-format-digital/format-digital.element.d.ts +1 -1
- package/dist/packages/wje-header/header.element.d.ts +1 -1
- package/dist/packages/wje-icon/icon.element.d.ts +1 -1
- package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +1 -1
- package/dist/packages/wje-img/img.element.d.ts +6 -5
- package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +1 -1
- package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +3 -3
- package/dist/packages/wje-input-file/input-file.element.d.ts +1 -1
- package/dist/packages/wje-item/item.element.d.ts +1 -1
- package/dist/packages/wje-kanban/kanban.element.d.ts +3 -3
- package/dist/packages/wje-label/label.element.d.ts +1 -1
- package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +2 -2
- package/dist/packages/wje-main/main.element.d.ts +1 -1
- package/dist/packages/wje-menu/menu.element.d.ts +1 -1
- package/dist/packages/wje-menu-button/menu-button.element.d.ts +1 -1
- package/dist/packages/wje-menu-label/menu-label.element.d.ts +1 -1
- package/dist/packages/wje-option/option.element.d.ts +1 -1
- package/dist/packages/wje-options/options.element.d.ts +1 -1
- package/dist/packages/wje-pagination/pagination.element.d.ts +5 -5
- package/dist/packages/wje-popup/popup.element.d.ts +1 -10
- package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +1 -1
- package/dist/packages/wje-radio/radio.element.d.ts +1 -1
- package/dist/packages/wje-rate/rate.element.d.ts +3 -3
- package/dist/packages/wje-relative-time/relative-time.element.d.ts +1 -1
- package/dist/packages/wje-reorder/reorder.element.d.ts +1 -1
- package/dist/packages/wje-route/route.element.d.ts +1 -1
- package/dist/packages/wje-router/router.element.d.ts +1 -1
- package/dist/packages/wje-router-link/router-link.element.d.ts +1 -1
- package/dist/packages/wje-select/select.element.d.ts +2 -2
- package/dist/packages/wje-slider/slider.element.d.ts +1 -1
- package/dist/packages/wje-split-view/split-view.element.d.ts +1 -1
- package/dist/packages/wje-textarea/textarea.element.d.ts +1 -1
- package/dist/packages/wje-tooltip/tooltip.element.d.ts +1 -0
- package/dist/packages/wje-tree-item/tree-item.element.d.ts +2 -2
- package/dist/{popup.element-tyYxow0p.js → popup.element-AaduHP2r.js} +44 -44
- package/dist/{popup.element-tyYxow0p.js.map → popup.element-AaduHP2r.js.map} +1 -1
- package/dist/wje-button.js +30 -0
- package/dist/wje-button.js.map +1 -1
- package/dist/wje-color-picker.js +8 -1
- package/dist/wje-color-picker.js.map +1 -1
- package/dist/wje-dialog.js +1 -3
- package/dist/wje-dialog.js.map +1 -1
- package/dist/wje-dropdown.js +32 -14
- package/dist/wje-dropdown.js.map +1 -1
- package/dist/wje-element.js +114 -59
- package/dist/wje-element.js.map +1 -1
- package/dist/wje-icon-picker.js +1 -1
- package/dist/wje-img.js +9 -4
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-master.js +1 -1
- package/dist/wje-menu-item.js +4 -5
- package/dist/wje-menu-item.js.map +1 -1
- package/dist/wje-pagination.js +2 -4
- package/dist/wje-pagination.js.map +1 -1
- package/dist/wje-popup.js +1 -1
- package/dist/wje-select.js +1 -1
- package/dist/wje-sliding-container.js +2 -2
- package/dist/wje-sliding-container.js.map +1 -1
- package/dist/wje-tooltip.js +11 -0
- package/dist/wje-tooltip.js.map +1 -1
- package/package.json +7 -12
- package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
- 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:
|
|
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:
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'
|
|
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;
|
|
@@ -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():
|
|
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():
|
|
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():
|
|
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():
|
|
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:
|
|
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():
|
|
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():
|
|
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:
|
|
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:
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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():
|
|
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:
|
|
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():
|
|
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:
|
|
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():
|
|
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
|
-
|
|
82
|
-
|
|
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
|
-
|
|
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():
|
|
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():
|
|
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
|
-
|
|
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
|
|
236
|
-
*
|
|
237
|
+
* Enqueues an update for the component.
|
|
238
|
+
* This method processes the current render promise and then refreshes the component.
|
|
237
239
|
*/
|
|
238
|
-
enqueueUpdate():
|
|
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;
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -85,6 +85,7 @@ export default class Img extends WJElement {
|
|
|
85
85
|
* @returns {void} Does not return a value.
|
|
86
86
|
*/
|
|
87
87
|
afterDraw(): void;
|
|
88
|
+
setAvatarInitials: (value?: boolean) => void;
|
|
88
89
|
/**
|
|
89
90
|
* Deletes the current image by calling the remove method.
|
|
90
91
|
* This function is typically used to trigger the removal of an 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
|