@vonage/vivid 3.0.0-next.82 → 3.0.0-next.83
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/accordion/index.js +1 -1
- package/accordion-item/index.js +1 -1
- package/action-group/index.js +1 -1
- package/avatar/index.js +1 -1
- package/badge/index.js +1 -1
- package/banner/index.js +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/calendar/index.js +1 -1
- package/calendar-event/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -0
- package/fab/index.js +1 -1
- package/focus/index.js +1 -1
- package/header/index.js +1 -1
- package/index.js +4 -0
- package/lib/components.d.ts +1 -0
- package/lib/radio-group/index.d.ts +10 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/menu/index.js +1 -0
- package/menu-item/index.js +1 -0
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/number-field/index.js +2 -1
- package/package.json +2 -1
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +5 -127
- package/radio-group/index.js +436 -0
- package/shared/aria.js +9 -0
- package/shared/direction.js +20 -0
- package/shared/form-elements.js +1 -1
- package/shared/index2.js +1 -1
- package/shared/index4.js +2 -9
- package/shared/index6.js +2 -20
- package/shared/key-codes.js +7 -1
- package/shared/patterns/form-elements/form-elements.d.ts +1 -1
- package/shared/radio.js +128 -0
- package/side-drawer/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/text-area/index.js +1 -1
- package/text-field/index.js +1 -1
- package/tooltip/index.js +1 -1
package/radio/index.js
CHANGED
|
@@ -1,136 +1,14 @@
|
|
|
1
1
|
import '../focus/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as keySpace } from '../shared/key-codes.js';
|
|
2
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { R as Radio } from '../shared/radio.js';
|
|
5
4
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
6
5
|
import { w as when } from '../shared/when.js';
|
|
7
6
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
7
|
import '../shared/focus.js';
|
|
8
|
+
import '../shared/form-associated.js';
|
|
9
|
+
import '../shared/key-codes.js';
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A form-associated base class for the {@link @microsoft/fast-foundation#(Radio:class)} component.
|
|
14
|
-
*
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
class FormAssociatedRadio extends CheckableFormAssociated(_Radio) {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.proxy = document.createElement("input");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* A Radio Custom HTML Element.
|
|
26
|
-
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#radio | ARIA radio }.
|
|
27
|
-
*
|
|
28
|
-
* @slot checked-indicator - The checked indicator
|
|
29
|
-
* @slot - The default slot for the label
|
|
30
|
-
* @csspart control - The element representing the visual radio control
|
|
31
|
-
* @csspart label - The label
|
|
32
|
-
* @fires change - Emits a custom change event when the checked state changes
|
|
33
|
-
*
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
class Radio$1 extends FormAssociatedRadio {
|
|
37
|
-
constructor() {
|
|
38
|
-
super();
|
|
39
|
-
/**
|
|
40
|
-
* The element's value to be included in form submission when checked.
|
|
41
|
-
* Default to "on" to reach parity with input[type="radio"]
|
|
42
|
-
*
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
this.initialValue = "on";
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
this.keypressHandler = (e) => {
|
|
50
|
-
switch (e.key) {
|
|
51
|
-
case keySpace:
|
|
52
|
-
if (!this.checked && !this.readOnly) {
|
|
53
|
-
this.checked = true;
|
|
54
|
-
}
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
58
|
-
};
|
|
59
|
-
this.proxy.setAttribute("type", "radio");
|
|
60
|
-
}
|
|
61
|
-
readOnlyChanged() {
|
|
62
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
63
|
-
this.proxy.readOnly = this.readOnly;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
defaultCheckedChanged() {
|
|
70
|
-
var _a;
|
|
71
|
-
if (this.$fastController.isConnected && !this.dirtyChecked) {
|
|
72
|
-
// Setting this.checked will cause us to enter a dirty state,
|
|
73
|
-
// but if we are clean when defaultChecked is changed, we want to stay
|
|
74
|
-
// in a clean state, so reset this.dirtyChecked
|
|
75
|
-
if (!this.isInsideRadioGroup()) {
|
|
76
|
-
this.checked = (_a = this.defaultChecked) !== null && _a !== void 0 ? _a : false;
|
|
77
|
-
this.dirtyChecked = false;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
connectedCallback() {
|
|
85
|
-
var _a, _b;
|
|
86
|
-
super.connectedCallback();
|
|
87
|
-
this.validate();
|
|
88
|
-
if (((_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.getAttribute("role")) !== "radiogroup" &&
|
|
89
|
-
this.getAttribute("tabindex") === null) {
|
|
90
|
-
if (!this.disabled) {
|
|
91
|
-
this.setAttribute("tabindex", "0");
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (this.checkedAttribute) {
|
|
95
|
-
if (!this.dirtyChecked) {
|
|
96
|
-
// Setting this.checked will cause us to enter a dirty state,
|
|
97
|
-
// but if we are clean when defaultChecked is changed, we want to stay
|
|
98
|
-
// in a clean state, so reset this.dirtyChecked
|
|
99
|
-
if (!this.isInsideRadioGroup()) {
|
|
100
|
-
this.checked = (_b = this.defaultChecked) !== null && _b !== void 0 ? _b : false;
|
|
101
|
-
this.dirtyChecked = false;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
isInsideRadioGroup() {
|
|
107
|
-
const parent = this.closest("[role=radiogroup]");
|
|
108
|
-
return parent !== null;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
*/
|
|
113
|
-
clickHandler(e) {
|
|
114
|
-
if (!this.disabled && !this.readOnly && !this.checked) {
|
|
115
|
-
this.checked = true;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
__decorate([
|
|
120
|
-
attr({ attribute: "readonly", mode: "boolean" })
|
|
121
|
-
], Radio$1.prototype, "readOnly", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
observable
|
|
124
|
-
], Radio$1.prototype, "name", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
observable
|
|
127
|
-
], Radio$1.prototype, "defaultSlottedNodes", void 0);
|
|
128
|
-
|
|
129
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 27 Oct 2022 06:37:06 GMT\n */\n.base {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n gap: 8px;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-canvas-text);\n}\n.base:where(:checked, .checked):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n@supports selector(:focus-visible) {\n .base:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base.disabled {\n cursor: not-allowed;\n}\n\n.control {\n position: relative;\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n background-color: var(--vvd-color-canvas);\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px var(--_appearance-color-outline);\n}\n.control::after {\n position: absolute;\n background-color: var(--_appearance-color-outline);\n border-radius: inherit;\n content: \"\";\n inset: 5px;\n}\n.base:not(.checked) .control::after {\n display: none;\n}\n\nlabel {\n color: var(--vvd-color-canvas-text);\n cursor: pointer;\n font: var(--vvd-typography-base);\n}\n.base.disabled label {\n color: var(--vvd-color-neutral-400);\n cursor: not-allowed;\n}\n\n.focus-indicator {\n --focus-inset: -3px;\n --focus-stroke-gap-color: transparent;\n border-radius: 50%;\n}\n.base:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
130
|
-
|
|
131
|
-
class Radio extends Radio$1 {}
|
|
132
|
-
|
|
133
|
-
__decorate([attr, __metadata("design:type", String)], Radio.prototype, "label", void 0);
|
|
11
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sat, 29 Oct 2022 09:46:17 GMT\n */\n.base {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n gap: 8px;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-canvas-text);\n}\n.base:where(:checked, .checked):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n@supports selector(:focus-visible) {\n .base:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base.disabled {\n cursor: not-allowed;\n}\n\n.control {\n position: relative;\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n background-color: var(--vvd-color-canvas);\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px var(--_appearance-color-outline);\n}\n.control::after {\n position: absolute;\n background-color: var(--_appearance-color-outline);\n border-radius: inherit;\n content: \"\";\n inset: 5px;\n}\n.base:not(.checked) .control::after {\n display: none;\n}\n\nlabel {\n color: var(--vvd-color-canvas-text);\n cursor: pointer;\n font: var(--vvd-typography-base);\n}\n.base.disabled label {\n color: var(--vvd-color-neutral-400);\n cursor: not-allowed;\n}\n\n.focus-indicator {\n --focus-inset: -3px;\n --focus-stroke-gap-color: transparent;\n border-radius: 50%;\n}\n.base:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
134
12
|
|
|
135
13
|
let _ = t => t,
|
|
136
14
|
_t,
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, o as observable, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { D as Direction, g as getDirection } from '../shared/direction.js';
|
|
3
|
+
import { h as keyArrowRight, g as keyArrowLeft, A as ArrowKeys, d as keyArrowUp, e as keyArrowDown, k as keyEnter } from '../shared/key-codes.js';
|
|
4
|
+
import { O as Orientation } from '../shared/aria.js';
|
|
5
|
+
import { R as Radio } from '../shared/radio.js';
|
|
6
|
+
import { s as slotted, e as elements } from '../shared/slotted.js';
|
|
7
|
+
import { w as when } from '../shared/when.js';
|
|
8
|
+
import '../shared/form-associated.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* An Radio Group Custom HTML Element.
|
|
12
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#radiogroup | ARIA radiogroup }.
|
|
13
|
+
*
|
|
14
|
+
* @slot label - The slot for the label
|
|
15
|
+
* @slot - The default slot for radio buttons
|
|
16
|
+
* @csspart positioning-region - The positioning region for laying out the radios
|
|
17
|
+
* @fires change - Fires a custom 'change' event when the value changes
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
class RadioGroup$1 extends FoundationElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
/**
|
|
25
|
+
* The orientation of the group
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Attribute: orientation
|
|
30
|
+
*/
|
|
31
|
+
this.orientation = Orientation.horizontal;
|
|
32
|
+
this.radioChangeHandler = (e) => {
|
|
33
|
+
const changedRadio = e.target;
|
|
34
|
+
if (changedRadio.checked) {
|
|
35
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
36
|
+
if (radio !== changedRadio) {
|
|
37
|
+
radio.checked = false;
|
|
38
|
+
if (!this.isInsideFoundationToolbar) {
|
|
39
|
+
radio.setAttribute("tabindex", "-1");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
this.selectedRadio = changedRadio;
|
|
44
|
+
this.value = changedRadio.value;
|
|
45
|
+
changedRadio.setAttribute("tabindex", "0");
|
|
46
|
+
this.focusedRadio = changedRadio;
|
|
47
|
+
}
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
};
|
|
50
|
+
this.moveToRadioByIndex = (group, index) => {
|
|
51
|
+
const radio = group[index];
|
|
52
|
+
if (!this.isInsideToolbar) {
|
|
53
|
+
radio.setAttribute("tabindex", "0");
|
|
54
|
+
if (radio.readOnly) {
|
|
55
|
+
this.slottedRadioButtons.forEach((nextRadio) => {
|
|
56
|
+
if (nextRadio !== radio) {
|
|
57
|
+
nextRadio.setAttribute("tabindex", "-1");
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
radio.checked = true;
|
|
63
|
+
this.selectedRadio = radio;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
this.focusedRadio = radio;
|
|
67
|
+
radio.focus();
|
|
68
|
+
};
|
|
69
|
+
this.moveRightOffGroup = () => {
|
|
70
|
+
var _a;
|
|
71
|
+
(_a = this.nextElementSibling) === null || _a === void 0 ? void 0 : _a.focus();
|
|
72
|
+
};
|
|
73
|
+
this.moveLeftOffGroup = () => {
|
|
74
|
+
var _a;
|
|
75
|
+
(_a = this.previousElementSibling) === null || _a === void 0 ? void 0 : _a.focus();
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
this.focusOutHandler = (e) => {
|
|
81
|
+
const group = this.slottedRadioButtons;
|
|
82
|
+
const radio = e.target;
|
|
83
|
+
const index = radio !== null ? group.indexOf(radio) : 0;
|
|
84
|
+
const focusedIndex = this.focusedRadio
|
|
85
|
+
? group.indexOf(this.focusedRadio)
|
|
86
|
+
: -1;
|
|
87
|
+
if ((focusedIndex === 0 && index === focusedIndex) ||
|
|
88
|
+
(focusedIndex === group.length - 1 && focusedIndex === index)) {
|
|
89
|
+
if (!this.selectedRadio) {
|
|
90
|
+
this.focusedRadio = group[0];
|
|
91
|
+
this.focusedRadio.setAttribute("tabindex", "0");
|
|
92
|
+
group.forEach((nextRadio) => {
|
|
93
|
+
if (nextRadio !== this.focusedRadio) {
|
|
94
|
+
nextRadio.setAttribute("tabindex", "-1");
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.focusedRadio = this.selectedRadio;
|
|
100
|
+
if (!this.isInsideFoundationToolbar) {
|
|
101
|
+
this.selectedRadio.setAttribute("tabindex", "0");
|
|
102
|
+
group.forEach((nextRadio) => {
|
|
103
|
+
if (nextRadio !== this.selectedRadio) {
|
|
104
|
+
nextRadio.setAttribute("tabindex", "-1");
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
this.clickHandler = (e) => {
|
|
116
|
+
const radio = e.target;
|
|
117
|
+
if (radio) {
|
|
118
|
+
const group = this.slottedRadioButtons;
|
|
119
|
+
if (radio.checked || group.indexOf(radio) === 0) {
|
|
120
|
+
radio.setAttribute("tabindex", "0");
|
|
121
|
+
this.selectedRadio = radio;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
radio.setAttribute("tabindex", "-1");
|
|
125
|
+
this.selectedRadio = null;
|
|
126
|
+
}
|
|
127
|
+
this.focusedRadio = radio;
|
|
128
|
+
}
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
};
|
|
131
|
+
this.shouldMoveOffGroupToTheRight = (index, group, key) => {
|
|
132
|
+
return index === group.length && this.isInsideToolbar && key === keyArrowRight;
|
|
133
|
+
};
|
|
134
|
+
this.shouldMoveOffGroupToTheLeft = (group, key) => {
|
|
135
|
+
const index = this.focusedRadio ? group.indexOf(this.focusedRadio) - 1 : 0;
|
|
136
|
+
return index < 0 && this.isInsideToolbar && key === keyArrowLeft;
|
|
137
|
+
};
|
|
138
|
+
this.checkFocusedRadio = () => {
|
|
139
|
+
if (this.focusedRadio !== null &&
|
|
140
|
+
!this.focusedRadio.readOnly &&
|
|
141
|
+
!this.focusedRadio.checked) {
|
|
142
|
+
this.focusedRadio.checked = true;
|
|
143
|
+
this.focusedRadio.setAttribute("tabindex", "0");
|
|
144
|
+
this.focusedRadio.focus();
|
|
145
|
+
this.selectedRadio = this.focusedRadio;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
this.moveRight = (e) => {
|
|
149
|
+
const group = this.slottedRadioButtons;
|
|
150
|
+
let index = 0;
|
|
151
|
+
index = this.focusedRadio ? group.indexOf(this.focusedRadio) + 1 : 1;
|
|
152
|
+
if (this.shouldMoveOffGroupToTheRight(index, group, e.key)) {
|
|
153
|
+
this.moveRightOffGroup();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
else if (index === group.length) {
|
|
157
|
+
index = 0;
|
|
158
|
+
}
|
|
159
|
+
/* looping to get to next radio that is not disabled */
|
|
160
|
+
/* matching native radio/radiogroup which does not select an item if there is only 1 in the group */
|
|
161
|
+
while (index < group.length && group.length > 1) {
|
|
162
|
+
if (!group[index].disabled) {
|
|
163
|
+
this.moveToRadioByIndex(group, index);
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
else if (this.focusedRadio && index === group.indexOf(this.focusedRadio)) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
else if (index + 1 >= group.length) {
|
|
170
|
+
if (this.isInsideToolbar) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
index = 0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
index += 1;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
this.moveLeft = (e) => {
|
|
183
|
+
const group = this.slottedRadioButtons;
|
|
184
|
+
let index = 0;
|
|
185
|
+
index = this.focusedRadio ? group.indexOf(this.focusedRadio) - 1 : 0;
|
|
186
|
+
index = index < 0 ? group.length - 1 : index;
|
|
187
|
+
if (this.shouldMoveOffGroupToTheLeft(group, e.key)) {
|
|
188
|
+
this.moveLeftOffGroup();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
/* looping to get to next radio that is not disabled */
|
|
192
|
+
while (index >= 0 && group.length > 1) {
|
|
193
|
+
if (!group[index].disabled) {
|
|
194
|
+
this.moveToRadioByIndex(group, index);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
else if (this.focusedRadio && index === group.indexOf(this.focusedRadio)) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
else if (index - 1 < 0) {
|
|
201
|
+
index = group.length - 1;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
index -= 1;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* keyboard handling per https://w3c.github.io/aria-practices/#for-radio-groups-not-contained-in-a-toolbar
|
|
210
|
+
* navigation is different when there is an ancestor with role='toolbar'
|
|
211
|
+
*
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
this.keydownHandler = (e) => {
|
|
215
|
+
const key = e.key;
|
|
216
|
+
if (key in ArrowKeys && this.isInsideFoundationToolbar) {
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
switch (key) {
|
|
220
|
+
case keyEnter: {
|
|
221
|
+
this.checkFocusedRadio();
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
case keyArrowRight:
|
|
225
|
+
case keyArrowDown: {
|
|
226
|
+
if (this.direction === Direction.ltr) {
|
|
227
|
+
this.moveRight(e);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.moveLeft(e);
|
|
231
|
+
}
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
case keyArrowLeft:
|
|
235
|
+
case keyArrowUp: {
|
|
236
|
+
if (this.direction === Direction.ltr) {
|
|
237
|
+
this.moveLeft(e);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
this.moveRight(e);
|
|
241
|
+
}
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
default: {
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
readOnlyChanged() {
|
|
251
|
+
if (this.slottedRadioButtons !== undefined) {
|
|
252
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
253
|
+
if (this.readOnly) {
|
|
254
|
+
radio.readOnly = true;
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
radio.readOnly = false;
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
disabledChanged() {
|
|
263
|
+
if (this.slottedRadioButtons !== undefined) {
|
|
264
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
265
|
+
if (this.disabled) {
|
|
266
|
+
radio.disabled = true;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
radio.disabled = false;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
nameChanged() {
|
|
275
|
+
if (this.slottedRadioButtons) {
|
|
276
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
277
|
+
radio.setAttribute("name", this.name);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
valueChanged() {
|
|
282
|
+
if (this.slottedRadioButtons) {
|
|
283
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
284
|
+
if (radio.value === this.value) {
|
|
285
|
+
radio.checked = true;
|
|
286
|
+
this.selectedRadio = radio;
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
this.$emit("change");
|
|
291
|
+
}
|
|
292
|
+
slottedRadioButtonsChanged(oldValue, newValue) {
|
|
293
|
+
if (this.slottedRadioButtons && this.slottedRadioButtons.length > 0) {
|
|
294
|
+
this.setupRadioButtons();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
get parentToolbar() {
|
|
298
|
+
return this.closest('[role="toolbar"]');
|
|
299
|
+
}
|
|
300
|
+
get isInsideToolbar() {
|
|
301
|
+
var _a;
|
|
302
|
+
return ((_a = this.parentToolbar) !== null && _a !== void 0 ? _a : false);
|
|
303
|
+
}
|
|
304
|
+
get isInsideFoundationToolbar() {
|
|
305
|
+
var _a;
|
|
306
|
+
return !!((_a = this.parentToolbar) === null || _a === void 0 ? void 0 : _a["$fastController"]);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
connectedCallback() {
|
|
312
|
+
super.connectedCallback();
|
|
313
|
+
this.direction = getDirection(this);
|
|
314
|
+
this.setupRadioButtons();
|
|
315
|
+
}
|
|
316
|
+
disconnectedCallback() {
|
|
317
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
318
|
+
radio.removeEventListener("change", this.radioChangeHandler);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
setupRadioButtons() {
|
|
322
|
+
const checkedRadios = this.slottedRadioButtons.filter((radio) => {
|
|
323
|
+
return radio.hasAttribute("checked");
|
|
324
|
+
});
|
|
325
|
+
const numberOfCheckedRadios = checkedRadios ? checkedRadios.length : 0;
|
|
326
|
+
if (numberOfCheckedRadios > 1) {
|
|
327
|
+
const lastCheckedRadio = checkedRadios[numberOfCheckedRadios - 1];
|
|
328
|
+
lastCheckedRadio.checked = true;
|
|
329
|
+
}
|
|
330
|
+
let foundMatchingVal = false;
|
|
331
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
332
|
+
if (this.name !== undefined) {
|
|
333
|
+
radio.setAttribute("name", this.name);
|
|
334
|
+
}
|
|
335
|
+
if (this.disabled) {
|
|
336
|
+
radio.disabled = true;
|
|
337
|
+
}
|
|
338
|
+
if (this.readOnly) {
|
|
339
|
+
radio.readOnly = true;
|
|
340
|
+
}
|
|
341
|
+
if (this.value && this.value === radio.value) {
|
|
342
|
+
this.selectedRadio = radio;
|
|
343
|
+
this.focusedRadio = radio;
|
|
344
|
+
radio.checked = true;
|
|
345
|
+
radio.setAttribute("tabindex", "0");
|
|
346
|
+
foundMatchingVal = true;
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
if (!this.isInsideFoundationToolbar) {
|
|
350
|
+
radio.setAttribute("tabindex", "-1");
|
|
351
|
+
}
|
|
352
|
+
radio.checked = false;
|
|
353
|
+
}
|
|
354
|
+
radio.addEventListener("change", this.radioChangeHandler);
|
|
355
|
+
});
|
|
356
|
+
if (this.value === undefined && this.slottedRadioButtons.length > 0) {
|
|
357
|
+
const checkedRadios = this.slottedRadioButtons.filter((radio) => {
|
|
358
|
+
return radio.hasAttribute("checked");
|
|
359
|
+
});
|
|
360
|
+
const numberOfCheckedRadios = checkedRadios !== null ? checkedRadios.length : 0;
|
|
361
|
+
if (numberOfCheckedRadios > 0 && !foundMatchingVal) {
|
|
362
|
+
const lastCheckedRadio = checkedRadios[numberOfCheckedRadios - 1];
|
|
363
|
+
lastCheckedRadio.checked = true;
|
|
364
|
+
this.focusedRadio = lastCheckedRadio;
|
|
365
|
+
lastCheckedRadio.setAttribute("tabindex", "0");
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
this.slottedRadioButtons[0].setAttribute("tabindex", "0");
|
|
369
|
+
this.focusedRadio = this.slottedRadioButtons[0];
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
__decorate([
|
|
375
|
+
attr({ attribute: "readonly", mode: "boolean" })
|
|
376
|
+
], RadioGroup$1.prototype, "readOnly", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
attr({ attribute: "disabled", mode: "boolean" })
|
|
379
|
+
], RadioGroup$1.prototype, "disabled", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
attr
|
|
382
|
+
], RadioGroup$1.prototype, "name", void 0);
|
|
383
|
+
__decorate([
|
|
384
|
+
attr
|
|
385
|
+
], RadioGroup$1.prototype, "value", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
attr
|
|
388
|
+
], RadioGroup$1.prototype, "orientation", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
observable
|
|
391
|
+
], RadioGroup$1.prototype, "childItems", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
observable
|
|
394
|
+
], RadioGroup$1.prototype, "slottedRadioButtons", void 0);
|
|
395
|
+
|
|
396
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sat, 29 Oct 2022 09:46:17 GMT\n */\n.positioning-region {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.positioning-region.vertical {\n flex-direction: column;\n}\nlabel + .positioning-region {\n margin-block-start: 8px;\n}\n\nlabel {\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n}";
|
|
397
|
+
|
|
398
|
+
class RadioGroup extends RadioGroup$1 {}
|
|
399
|
+
|
|
400
|
+
__decorate([attr, __metadata("design:type", String)], RadioGroup.prototype, "label", void 0);
|
|
401
|
+
|
|
402
|
+
let _ = t => t,
|
|
403
|
+
_t,
|
|
404
|
+
_t2;
|
|
405
|
+
const RadioGroupTemplate = context => {
|
|
406
|
+
return html(_t || (_t = _`
|
|
407
|
+
<div
|
|
408
|
+
role="radiogroup"
|
|
409
|
+
aria-disabled="${0}"
|
|
410
|
+
aria-readonly="${0}"
|
|
411
|
+
aria-orientation="${0}"
|
|
412
|
+
@click="${0}"
|
|
413
|
+
@keydown="${0}"
|
|
414
|
+
@focusout="${0}"
|
|
415
|
+
>
|
|
416
|
+
|
|
417
|
+
${0}
|
|
418
|
+
|
|
419
|
+
<div class="positioning-region ${0}">
|
|
420
|
+
<slot ${0}></slot>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
`), x => x.disabled, x => x.readOnly, x => x.orientation, (x, c) => x.clickHandler(c.event), (x, c) => x.keydownHandler(c.event), (x, c) => x.focusOutHandler(c.event), when(x => x.label, html(_t2 || (_t2 = _`<label>${0}</label>`), x => x.label)), x => x.orientation === Orientation.horizontal ? 'horizontal' : 'vertical', slotted({
|
|
424
|
+
property: 'slottedRadioButtons',
|
|
425
|
+
filter: elements(context.tagFor(Radio))
|
|
426
|
+
}));
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
const vividRadioGroup = RadioGroup.compose({
|
|
430
|
+
baseName: 'radio-group',
|
|
431
|
+
template: RadioGroupTemplate,
|
|
432
|
+
styles: css_248z
|
|
433
|
+
});
|
|
434
|
+
designSystem.register(vividRadioGroup());
|
|
435
|
+
|
|
436
|
+
export { vividRadioGroup };
|
package/shared/aria.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expose ltr and rtl strings
|
|
3
|
+
*/
|
|
4
|
+
var Direction;
|
|
5
|
+
(function (Direction) {
|
|
6
|
+
Direction["ltr"] = "ltr";
|
|
7
|
+
Direction["rtl"] = "rtl";
|
|
8
|
+
})(Direction || (Direction = {}));
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* a method to determine the current localization direction of the view
|
|
12
|
+
* @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
const getDirection = (rootNode) => {
|
|
16
|
+
const dirNode = rootNode.closest("[dir]");
|
|
17
|
+
return dirNode !== null && dirNode.dir === "rtl" ? Direction.rtl : Direction.ltr;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Direction as D, getDirection as g };
|
package/shared/form-elements.js
CHANGED
|
@@ -225,7 +225,7 @@ class DelegatesARIATextbox {
|
|
|
225
225
|
applyMixins(DelegatesARIATextbox, ARIAGlobalStatesAndProperties);
|
|
226
226
|
applyMixins(TextField, StartEnd, DelegatesARIATextbox);
|
|
227
227
|
|
|
228
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
228
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sat, 29 Oct 2022 09:46:17 GMT\n */\n.message {\n display: flex;\n contain: inline-size;\n font: var(--vvd-typography-base-condensed);\n gap: 4px;\n grid-column: 1/-1;\n}\n.message-text {\n color: var(--vvd-color-canvas-text);\n}\n.helper-message .message-text {\n color: var(--_low-ink-color);\n}\n.message-icon {\n font-size: 16px;\n}\n.success-message .message-icon {\n color: var(--vvd-color-success-500);\n}\n.error-message .message-icon {\n color: var(--vvd-color-alert-500);\n}";
|
|
229
229
|
|
|
230
230
|
let _ = t => t,
|
|
231
231
|
_t,
|
package/shared/index2.js
CHANGED
|
@@ -34,7 +34,7 @@ __decorate([attr, __metadata("design:type", String)], Button.prototype, "label",
|
|
|
34
34
|
|
|
35
35
|
applyMixins(Button, AffixIconWithTrailing);
|
|
36
36
|
|
|
37
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
37
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sat, 29 Oct 2022 09:46:17 GMT\n */\n:host {\n display: inline-block;\n}\n\n.control {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n margin: 0;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_button-block-size);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n gap: var(--_button-icon-gap);\n vertical-align: middle;\n white-space: nowrap;\n /* Size */\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-cta-600);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-fierce: var(--vvd-color-cta-700);\n --_connotation-color-firm: var(--vvd-color-cta-600);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n --_connotation-color-faint: var(--vvd-color-cta-50);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-success-600);\n --_connotation-color-contrast: var(--vvd-color-success-800);\n --_connotation-color-fierce: var(--vvd-color-success-700);\n --_connotation-color-firm: var(--vvd-color-success-600);\n --_connotation-color-soft: var(--vvd-color-success-100);\n --_connotation-color-faint: var(--vvd-color-success-50);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-alert-600);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n --_connotation-color-fierce: var(--vvd-color-alert-700);\n --_connotation-color-firm: var(--vvd-color-alert-600);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n --_connotation-color-faint: var(--vvd-color-alert-50);\n}\n.control:not(.connotation-cta, .connotation-success, .connotation-alert) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-fierce: var(--vvd-color-neutral-700);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n}\n.control.appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control.appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-filled {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-outlined {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .control {\n user-select: none;\n }\n}\n.control:not(:disabled) {\n cursor: pointer;\n}\n.control:disabled {\n cursor: not-allowed;\n}\n.control.icon-only {\n contain: size;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_button-block-size);\n }\n}\n.control:not(.stacked).density-condensed {\n --_button-block-size: 32px;\n font: var(--vvd-typography-base-condensed-bold);\n}\n.control:not(.stacked).density-condensed:not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 12px;\n}\n.control:not(.stacked).density-condensed .icon {\n font-size: 16px;\n}\n.control:not(.stacked).density-extended {\n --_button-block-size: 48px;\n font: var(--vvd-typography-base-extended-bold);\n}\n.control:not(.stacked).density-extended:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:not(.stacked).density-extended .icon {\n font-size: 24px;\n}\n.control:not(.stacked):not(.density-condensed, .density-extended) {\n --_button-block-size: 40px;\n font: var(--vvd-typography-base-bold);\n}\n.control:not(.stacked):not(.density-condensed, .density-extended):not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 16px;\n}\n.control:not(.stacked):not(.density-condensed, .density-extended) .icon {\n font-size: 20px;\n}\n.control.stacked {\n flex-direction: column;\n justify-content: center;\n --_button-block-size: 68px;\n font: var(--vvd-typography-base-bold);\n}\n.control.stacked:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 16px;\n}\n.control.stacked .icon {\n font-size: 20px;\n}\n\n/* Shape */\n.control:not(.shape-pill:not(.stacked)) {\n border-radius: 6px;\n}\n\n.control.shape-pill:not(.stacked):not(.icon-only) {\n border-radius: 24px;\n}\n.control.shape-pill:not(.stacked).icon-only {\n border-radius: 50%;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) > .focus-indicator {\n display: none;\n}\n.appearance-outlined .focus-indicator, .appearance-ghost .focus-indicator {\n --focus-stroke-gap-color: transparent;\n}";
|
|
38
38
|
|
|
39
39
|
let _ = t => t,
|
|
40
40
|
_t;
|