@nectary/components 4.6.2 → 4.6.4
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/button/index.js +1 -1
- package/button-group/index.js +1 -1
- package/button-group-item/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chip/index.js +1 -1
- package/color-menu/index.js +1 -1
- package/color-menu-option/index.js +1 -1
- package/dialog/index.js +1 -1
- package/input/index.js +1 -1
- package/package.json +2 -2
- package/persistent-overlay/index.js +1 -1
- package/pop/index.js +1 -1
- package/progress-stepper/index.js +1 -1
- package/progress-stepper-item/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-option/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-textarea/index.js +1 -1
- package/segmented-control/index.js +1 -1
- package/segmented-control-option/index.js +1 -1
- package/segmented-icon-control/index.js +1 -1
- package/segmented-icon-control-option/index.js +1 -1
- package/select-button/index.js +1 -1
- package/select-menu/index.js +1 -1
- package/tabs-icon-option/index.js +1 -1
- package/tabs-option/index.js +1 -1
- package/textarea/index.js +1 -1
- package/toggle/index.js +1 -1
- package/tooltip/index.js +1 -0
package/button/index.js
CHANGED
|
@@ -23,7 +23,7 @@ defineCustomElement('sinch-button', class extends NectaryElement {
|
|
|
23
23
|
const {
|
|
24
24
|
signal
|
|
25
25
|
} = this.#controller;
|
|
26
|
-
this.role
|
|
26
|
+
this.setAttribute('role', 'button');
|
|
27
27
|
this.tabIndex = 0;
|
|
28
28
|
this.addEventListener('click', this.#onButtonClick, {
|
|
29
29
|
signal
|
package/button-group/index.js
CHANGED
|
@@ -23,7 +23,7 @@ defineCustomElement('sinch-button-group-item', class extends NectaryElement {
|
|
|
23
23
|
const {
|
|
24
24
|
signal
|
|
25
25
|
} = this.#controller;
|
|
26
|
-
this.role
|
|
26
|
+
this.setAttribute('role', 'button');
|
|
27
27
|
const forwardEvent = e => this.dispatchEvent(new CustomEvent(e.type, {
|
|
28
28
|
...e
|
|
29
29
|
}));
|
package/checkbox/index.js
CHANGED
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-checkbox', class extends NectaryElement {
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'checkbox');
|
|
23
23
|
this.tabIndex = 0;
|
|
24
24
|
this.addEventListener('click', this.#onClick, options);
|
|
25
25
|
this.addEventListener('focus', this.#onFocus, options);
|
package/chip/index.js
CHANGED
package/color-menu/index.js
CHANGED
|
@@ -25,7 +25,7 @@ defineCustomElement('sinch-color-menu', class extends NectaryElement {
|
|
|
25
25
|
const options = {
|
|
26
26
|
signal
|
|
27
27
|
};
|
|
28
|
-
this.role
|
|
28
|
+
this.setAttribute('role', 'listbox');
|
|
29
29
|
this.tabIndex = 0;
|
|
30
30
|
this.addEventListener('keydown', this.#onListboxKeyDown, options);
|
|
31
31
|
this.addEventListener('blur', this.#onListboxBlur, options);
|
|
@@ -18,7 +18,7 @@ defineCustomElement('sinch-color-menu-option', class extends NectaryElement {
|
|
|
18
18
|
this.#$swatch = shadowRoot.querySelector('#swatch');
|
|
19
19
|
}
|
|
20
20
|
connectedCallback() {
|
|
21
|
-
this.role
|
|
21
|
+
this.setAttribute('role', 'option');
|
|
22
22
|
}
|
|
23
23
|
disconnectedCallback() {}
|
|
24
24
|
static get observedAttributes() {
|
package/dialog/index.js
CHANGED
|
@@ -29,7 +29,7 @@ defineCustomElement('sinch-dialog', class extends NectaryElement {
|
|
|
29
29
|
const options = {
|
|
30
30
|
signal: this.#controller.signal
|
|
31
31
|
};
|
|
32
|
-
this.role
|
|
32
|
+
this.setAttribute('role', 'dialog');
|
|
33
33
|
this.#$closeButton.addEventListener('click', this.#onCloseClick, options);
|
|
34
34
|
this.#$dialog.addEventListener('mousedown', this.#onBackdropMouseDown, options);
|
|
35
35
|
this.#$dialog.addEventListener('cancel', this.#onCancel, options);
|
package/input/index.js
CHANGED
|
@@ -42,7 +42,7 @@ defineCustomElement('sinch-input', class extends NectaryElement {
|
|
|
42
42
|
}
|
|
43
43
|
connectedCallback() {
|
|
44
44
|
super.connectedCallback();
|
|
45
|
-
this.role
|
|
45
|
+
this.setAttribute('role', 'textbox');
|
|
46
46
|
if (this.#controller === null) {
|
|
47
47
|
this.#controller = new AbortController();
|
|
48
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nectary/components",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
4
4
|
"files": [
|
|
5
5
|
"**/*/*.css",
|
|
6
6
|
"**/*/*.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.22.15",
|
|
23
|
-
"@nectary/assets": "2.
|
|
23
|
+
"@nectary/assets": "2.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/cli": "^7.22.15",
|
|
@@ -52,7 +52,7 @@ defineCustomElement('sinch-persistent-overlay', class extends NectaryElement {
|
|
|
52
52
|
}
|
|
53
53
|
connectedCallback() {
|
|
54
54
|
super.connectedCallback();
|
|
55
|
-
this.role
|
|
55
|
+
this.setAttribute('role', 'dialog');
|
|
56
56
|
this.#controller = new AbortController();
|
|
57
57
|
const {
|
|
58
58
|
signal
|
package/pop/index.js
CHANGED
|
@@ -45,7 +45,7 @@ defineCustomElement('sinch-pop', class extends NectaryElement {
|
|
|
45
45
|
} = this.#controller;
|
|
46
46
|
this.#keydownContext.listen(signal);
|
|
47
47
|
this.#visibilityContext.listen(signal);
|
|
48
|
-
this.role
|
|
48
|
+
this.setAttribute('role', 'dialog');
|
|
49
49
|
this.#$dialog.addEventListener('cancel', this.#onCancel, {
|
|
50
50
|
signal
|
|
51
51
|
});
|
|
@@ -23,7 +23,7 @@ defineCustomElement('sinch-progress-stepper', class extends NectaryElement {
|
|
|
23
23
|
const options = {
|
|
24
24
|
signal
|
|
25
25
|
};
|
|
26
|
-
this.role
|
|
26
|
+
this.setAttribute('role', 'tablist');
|
|
27
27
|
this.#$slot.addEventListener('click', this.#onOptionClick, options);
|
|
28
28
|
this.#$slot.addEventListener('keydown', this.#onOptionKeydown, options);
|
|
29
29
|
this.#$slot.addEventListener('focusout', this.#onOptionBlur, options);
|
|
@@ -16,7 +16,7 @@ defineCustomElement('sinch-progress-stepper-item', class extends NectaryElement
|
|
|
16
16
|
this.#$text = shadowRoot.querySelector('#text');
|
|
17
17
|
}
|
|
18
18
|
connectedCallback() {
|
|
19
|
-
this.role
|
|
19
|
+
this.setAttribute('role', 'tab');
|
|
20
20
|
}
|
|
21
21
|
disconnectedCallback() {}
|
|
22
22
|
static get observedAttributes() {
|
package/radio/index.js
CHANGED
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-radio', class extends NectaryElement {
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'radiogroup');
|
|
23
23
|
this.#$slot.addEventListener('slotchange', this.#onSlotChange, options);
|
|
24
24
|
this.#$slot.addEventListener('keydown', this.#onOptionKeyDown, options);
|
|
25
25
|
this.#$slot.addEventListener('click', this.#onOptionClick, options);
|
package/radio-option/index.js
CHANGED
|
@@ -11,7 +11,7 @@ defineCustomElement('sinch-radio-option', class extends NectaryElement {
|
|
|
11
11
|
this.#$label = shadowRoot.querySelector('#label');
|
|
12
12
|
}
|
|
13
13
|
connectedCallback() {
|
|
14
|
-
this.role
|
|
14
|
+
this.setAttribute('role', 'radio');
|
|
15
15
|
this.tabIndex = 0;
|
|
16
16
|
}
|
|
17
17
|
disconnectedCallback() {}
|
package/rich-text/index.js
CHANGED
|
@@ -30,7 +30,7 @@ defineCustomElement('sinch-rich-text', class extends NectaryElement {
|
|
|
30
30
|
}
|
|
31
31
|
connectedCallback() {
|
|
32
32
|
super.connectedCallback();
|
|
33
|
-
this.role
|
|
33
|
+
this.setAttribute('role', 'paragraph');
|
|
34
34
|
this.#parseVisitor.updateEmojiBaseUrl(getEmojiBaseUrl(this));
|
|
35
35
|
this.#updateText();
|
|
36
36
|
}
|
package/rich-textarea/index.js
CHANGED
|
@@ -58,7 +58,7 @@ defineCustomElement('sinch-rich-textarea', class extends NectaryElement {
|
|
|
58
58
|
const options = {
|
|
59
59
|
signal: this.#controller.signal
|
|
60
60
|
};
|
|
61
|
-
this.role
|
|
61
|
+
this.setAttribute('role', 'textbox');
|
|
62
62
|
this.ariaMultiLine = 'true';
|
|
63
63
|
this.#$input.addEventListener('beforeinput', this.#onBeforeInput, options);
|
|
64
64
|
this.#$input.addEventListener('keydown', this.#onKeydown, options);
|
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-segmented-control', class extends NectaryElement {
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'tablist');
|
|
23
23
|
this.#$slot.addEventListener('slotchange', this.#onSlotChange, options);
|
|
24
24
|
this.#$slot.addEventListener('click', this.#onOptionClick, options);
|
|
25
25
|
this.#$slot.addEventListener('keydown', this.#onOptionKeydown, options);
|
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-segmented-control-option', class extends NectaryEleme
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'tab');
|
|
23
23
|
this.addEventListener('focus', this.#onButtonFocus, options);
|
|
24
24
|
this.addEventListener('blur', this.#onButtonBlur, options);
|
|
25
25
|
this.addEventListener('-focus', this.#onFocusReactHandler);
|
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-segmented-icon-control', class extends NectaryElement
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'tablist');
|
|
23
23
|
this.#$slot.addEventListener('slotchange', this.#onSlotChange, options);
|
|
24
24
|
this.#$slot.addEventListener('click', this.#onOptionClick, options);
|
|
25
25
|
this.#$slot.addEventListener('keydown', this.#onOptionKeydown, options);
|
|
@@ -17,7 +17,7 @@ defineCustomElement('sinch-segmented-icon-control-option', class extends Nectary
|
|
|
17
17
|
const options = {
|
|
18
18
|
signal
|
|
19
19
|
};
|
|
20
|
-
this.role
|
|
20
|
+
this.setAttribute('role', 'tab');
|
|
21
21
|
this.addEventListener('focus', this.#onButtonFocus, options);
|
|
22
22
|
this.addEventListener('blur', this.#onButtonBlur, options);
|
|
23
23
|
this.addEventListener('-focus', this.#onFocusReactHandler, options);
|
package/select-button/index.js
CHANGED
|
@@ -30,7 +30,7 @@ defineCustomElement('sinch-select-button', class extends NectaryElement {
|
|
|
30
30
|
const {
|
|
31
31
|
signal
|
|
32
32
|
} = this.#controller;
|
|
33
|
-
this.role
|
|
33
|
+
this.setAttribute('role', 'button');
|
|
34
34
|
this.tabIndex = 0;
|
|
35
35
|
this.addEventListener('click', this.#onButtonClick, {
|
|
36
36
|
signal
|
package/select-menu/index.js
CHANGED
|
@@ -33,7 +33,7 @@ defineCustomElement('sinch-select-menu', class extends NectaryElement {
|
|
|
33
33
|
const options = {
|
|
34
34
|
signal: this.#controller.signal
|
|
35
35
|
};
|
|
36
|
-
this.role
|
|
36
|
+
this.setAttribute('role', 'listbox');
|
|
37
37
|
this.tabIndex = 0;
|
|
38
38
|
this.addEventListener('keydown', this.#onListboxKeyDown, options);
|
|
39
39
|
this.addEventListener('focus', this.#onFocus, options);
|
|
@@ -15,7 +15,7 @@ defineCustomElement('sinch-tabs-icon-option', class extends NectaryElement {
|
|
|
15
15
|
this.#$tooltip = shadowRoot.querySelector('#tooltip');
|
|
16
16
|
}
|
|
17
17
|
connectedCallback() {
|
|
18
|
-
this.role
|
|
18
|
+
this.setAttribute('role', 'tab');
|
|
19
19
|
this.#$button.addEventListener('click', this.#onClick);
|
|
20
20
|
}
|
|
21
21
|
disconnectedCallback() {
|
package/tabs-option/index.js
CHANGED
|
@@ -16,7 +16,7 @@ defineCustomElement('sinch-tabs-option', class extends NectaryElement {
|
|
|
16
16
|
this.#$text = shadowRoot.querySelector('#text');
|
|
17
17
|
}
|
|
18
18
|
connectedCallback() {
|
|
19
|
-
this.role
|
|
19
|
+
this.setAttribute('role', 'tab');
|
|
20
20
|
this.#$button.addEventListener('click', this.#onClick);
|
|
21
21
|
}
|
|
22
22
|
disconnectedCallback() {
|
package/textarea/index.js
CHANGED
|
@@ -33,7 +33,7 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
33
33
|
const options = {
|
|
34
34
|
signal: this.#controller.signal
|
|
35
35
|
};
|
|
36
|
-
this.role
|
|
36
|
+
this.setAttribute('role', 'textbox');
|
|
37
37
|
this.ariaMultiLine = 'true';
|
|
38
38
|
this.#$input.addEventListener('input', this.#onInput, options);
|
|
39
39
|
this.#$input.addEventListener('compositionstart', this.#onCompositionStart, options);
|
package/toggle/index.js
CHANGED
|
@@ -19,7 +19,7 @@ defineCustomElement('sinch-toggle', class extends NectaryElement {
|
|
|
19
19
|
const options = {
|
|
20
20
|
signal
|
|
21
21
|
};
|
|
22
|
-
this.role
|
|
22
|
+
this.setAttribute('role', 'checkbox');
|
|
23
23
|
this.addEventListener('click', this.#onClick, options);
|
|
24
24
|
this.addEventListener('keydown', this.#onKeydown, options);
|
|
25
25
|
this.addEventListener('focus', this.#onFocus, options);
|
package/tooltip/index.js
CHANGED
|
@@ -50,6 +50,7 @@ defineCustomElement('sinch-tooltip', class extends NectaryElement {
|
|
|
50
50
|
const options = {
|
|
51
51
|
signal: this.#controller.signal
|
|
52
52
|
};
|
|
53
|
+
this.setAttribute('role', 'tooltip');
|
|
53
54
|
this.#$pop.addEventListener('-close', this.#onPopClose, options);
|
|
54
55
|
this.addEventListener('-show', this.#onShowReactHandler, options);
|
|
55
56
|
this.addEventListener('-hide', this.#onHideReactHandler, options);
|