@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.91 → 0.0.0-pr624.92
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/components/checkbox/demo/api.md +7 -6
- package/components/checkbox/demo/api.min.js +5 -8
- package/components/checkbox/demo/index.min.js +5 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -0
- package/components/checkbox/dist/index.js +5 -8
- package/components/checkbox/dist/registered.js +5 -8
- package/components/radio/demo/api.md +2 -0
- package/components/radio/demo/api.min.js +3 -1
- package/components/radio/demo/index.min.js +3 -1
- package/components/radio/dist/auro-radio.d.ts +2 -0
- package/components/radio/dist/index.js +3 -1
- package/components/radio/dist/registered.js +3 -1
- package/package.json +1 -1
|
@@ -66,12 +66,13 @@ Custom element for the purpose of allowing users to select one or more options o
|
|
|
66
66
|
|
|
67
67
|
## Events
|
|
68
68
|
|
|
69
|
-
| Event | Type |
|
|
70
|
-
|
|
71
|
-
| `auroCheckbox-focusin` | `CustomEvent<any>` |
|
|
72
|
-
| `auroCheckbox-focusout` | `CustomEvent<any>` |
|
|
73
|
-
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
74
|
-
| [
|
|
69
|
+
| Event | Type | Description |
|
|
70
|
+
|-------------------------|--------------------|--------------------------------------------------|
|
|
71
|
+
| `auroCheckbox-focusin` | `CustomEvent<any>` | |
|
|
72
|
+
| `auroCheckbox-focusout` | `CustomEvent<any>` | |
|
|
73
|
+
| `auroCheckbox-input` | `CustomEvent<any>` | |
|
|
74
|
+
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
75
|
+
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
75
76
|
|
|
76
77
|
## CSS Shadow Parts
|
|
77
78
|
|
|
@@ -142,6 +142,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
142
142
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
143
143
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
144
144
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
145
|
+
*
|
|
146
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
147
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
145
148
|
*/
|
|
146
149
|
|
|
147
150
|
// build the component class
|
|
@@ -287,12 +290,6 @@ class AuroCheckbox extends i$2 {
|
|
|
287
290
|
handleInput(event) {
|
|
288
291
|
this.checked = event.target.checked;
|
|
289
292
|
|
|
290
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
291
|
-
bubbles: true,
|
|
292
|
-
cancelable: false,
|
|
293
|
-
composed: true,
|
|
294
|
-
}));
|
|
295
|
-
|
|
296
293
|
// Old event we need to deprecate
|
|
297
294
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
298
295
|
bubbles: true,
|
|
@@ -352,7 +349,7 @@ class AuroCheckbox extends i$2 {
|
|
|
352
349
|
}
|
|
353
350
|
|
|
354
351
|
if (!this.disabled) {
|
|
355
|
-
this.
|
|
352
|
+
this.shadowRoot.querySelector('input').click();
|
|
356
353
|
this.handleFocusin();
|
|
357
354
|
}
|
|
358
355
|
});
|
|
@@ -390,7 +387,7 @@ class AuroCheckbox extends i$2 {
|
|
|
390
387
|
@change="${this.handleChange}"
|
|
391
388
|
@input="${this.handleInput}"
|
|
392
389
|
?disabled="${this.disabled}"
|
|
393
|
-
|
|
390
|
+
?checked="${this.checked}"
|
|
394
391
|
id="${this.inputId}"
|
|
395
392
|
name="${o$1(this.name)}"
|
|
396
393
|
type="checkbox"
|
|
@@ -134,6 +134,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
134
134
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
135
135
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
136
136
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
137
|
+
*
|
|
138
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
139
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
137
140
|
*/
|
|
138
141
|
|
|
139
142
|
// build the component class
|
|
@@ -279,12 +282,6 @@ class AuroCheckbox extends i$2 {
|
|
|
279
282
|
handleInput(event) {
|
|
280
283
|
this.checked = event.target.checked;
|
|
281
284
|
|
|
282
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
283
|
-
bubbles: true,
|
|
284
|
-
cancelable: false,
|
|
285
|
-
composed: true,
|
|
286
|
-
}));
|
|
287
|
-
|
|
288
285
|
// Old event we need to deprecate
|
|
289
286
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
290
287
|
bubbles: true,
|
|
@@ -344,7 +341,7 @@ class AuroCheckbox extends i$2 {
|
|
|
344
341
|
}
|
|
345
342
|
|
|
346
343
|
if (!this.disabled) {
|
|
347
|
-
this.
|
|
344
|
+
this.shadowRoot.querySelector('input').click();
|
|
348
345
|
this.handleFocusin();
|
|
349
346
|
}
|
|
350
347
|
});
|
|
@@ -382,7 +379,7 @@ class AuroCheckbox extends i$2 {
|
|
|
382
379
|
@change="${this.handleChange}"
|
|
383
380
|
@input="${this.handleInput}"
|
|
384
381
|
?disabled="${this.disabled}"
|
|
385
|
-
|
|
382
|
+
?checked="${this.checked}"
|
|
386
383
|
id="${this.inputId}"
|
|
387
384
|
name="${o$1(this.name)}"
|
|
388
385
|
type="checkbox"
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
8
8
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
9
9
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
10
|
+
*
|
|
11
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
12
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
10
13
|
*/
|
|
11
14
|
export class AuroCheckbox extends LitElement {
|
|
12
15
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -94,6 +94,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
+
*
|
|
98
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|
|
@@ -94,6 +94,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
+
*
|
|
98
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|
|
@@ -76,7 +76,9 @@
|
|
|
76
76
|
|----------------------|--------------------|--------------------------------------------------|
|
|
77
77
|
| `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
|
|
78
78
|
| `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
|
|
79
|
+
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
79
80
|
| [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
|
|
81
|
+
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
80
82
|
| [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
|
|
81
83
|
| [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
|
|
82
84
|
|
|
@@ -162,6 +162,8 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
162
162
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
163
163
|
* @attr id
|
|
164
164
|
*
|
|
165
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
166
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
165
167
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
166
168
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
167
169
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -418,7 +420,7 @@ class AuroRadio extends i$2 {
|
|
|
418
420
|
@input="${this.handleInput}"
|
|
419
421
|
@change="${this.handleChange}"
|
|
420
422
|
?disabled="${this.disabled}"
|
|
421
|
-
|
|
423
|
+
?checked="${this.checked}"
|
|
422
424
|
id="${this.inputId}"
|
|
423
425
|
name="${o$1(this.name)}"
|
|
424
426
|
type="radio"
|
|
@@ -137,6 +137,8 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
137
137
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
138
138
|
* @attr id
|
|
139
139
|
*
|
|
140
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
141
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
140
142
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
141
143
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
142
144
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -393,7 +395,7 @@ class AuroRadio extends i$2 {
|
|
|
393
395
|
@input="${this.handleInput}"
|
|
394
396
|
@change="${this.handleChange}"
|
|
395
397
|
?disabled="${this.disabled}"
|
|
396
|
-
|
|
398
|
+
?checked="${this.checked}"
|
|
397
399
|
id="${this.inputId}"
|
|
398
400
|
name="${o$1(this.name)}"
|
|
399
401
|
type="radio"
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10
10
|
* @attr id
|
|
11
11
|
*
|
|
12
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
13
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
12
14
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
13
15
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
14
16
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -97,6 +97,8 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
97
97
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
98
98
|
* @attr id
|
|
99
99
|
*
|
|
100
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
101
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
100
102
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
101
103
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
102
104
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -353,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
353
355
|
@input="${this.handleInput}"
|
|
354
356
|
@change="${this.handleChange}"
|
|
355
357
|
?disabled="${this.disabled}"
|
|
356
|
-
|
|
358
|
+
?checked="${this.checked}"
|
|
357
359
|
id="${this.inputId}"
|
|
358
360
|
name="${ifDefined(this.name)}"
|
|
359
361
|
type="radio"
|
|
@@ -97,6 +97,8 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
97
97
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
98
98
|
* @attr id
|
|
99
99
|
*
|
|
100
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
101
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
100
102
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
101
103
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
102
104
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -353,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
353
355
|
@input="${this.handleInput}"
|
|
354
356
|
@change="${this.handleChange}"
|
|
355
357
|
?disabled="${this.disabled}"
|
|
356
|
-
|
|
358
|
+
?checked="${this.checked}"
|
|
357
359
|
id="${this.inputId}"
|
|
358
360
|
name="${ifDefined(this.name)}"
|
|
359
361
|
type="radio"
|
package/package.json
CHANGED