@aurodesignsystem-dev/auro-formkit 0.0.0-pr785.2 → 0.0.0-pr788.0
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/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +136 -121
- package/components/bibtemplate/dist/registered.js +136 -121
- package/components/checkbox/demo/api.md +2 -1
- package/components/checkbox/demo/api.min.js +23 -5
- package/components/checkbox/demo/index.min.js +23 -5
- package/components/checkbox/dist/index.js +23 -5
- package/components/checkbox/dist/registered.js +23 -5
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +9 -0
- package/components/combobox/demo/api.min.js +315 -202
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +315 -202
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +9 -4
- package/components/combobox/dist/index.js +309 -196
- package/components/combobox/dist/registered.js +309 -196
- package/components/counter/demo/api.md +11 -0
- package/components/counter/demo/api.min.js +288 -177
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +288 -177
- package/components/counter/dist/auro-counter-group.d.ts +11 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +283 -172
- package/components/counter/dist/registered.js +283 -172
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.md +53 -20
- package/components/datepicker/demo/api.min.js +595 -284
- package/components/datepicker/demo/index.md +16 -4
- package/components/datepicker/demo/index.min.js +595 -284
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +69 -14
- package/components/datepicker/dist/index.js +595 -284
- package/components/datepicker/dist/registered.js +595 -284
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +7 -8
- package/components/dropdown/demo/api.min.js +12 -0
- package/components/dropdown/demo/index.min.js +12 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +6 -1
- package/components/dropdown/dist/index.js +12 -0
- package/components/dropdown/dist/registered.js +12 -0
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +16 -7
- package/components/input/demo/api.min.js +115 -49
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +115 -49
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/auro-input.d.ts +0 -6
- package/components/input/dist/base-input.d.ts +8 -1
- package/components/input/dist/index.js +115 -49
- package/components/input/dist/registered.js +115 -49
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/demo/api.md +32 -1
- package/components/radio/demo/api.min.js +18 -7
- package/components/radio/demo/index.min.js +18 -7
- package/components/radio/dist/index.js +18 -7
- package/components/radio/dist/registered.js +18 -7
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +49 -64
- package/components/select/demo/api.min.js +201 -149
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +1065 -137
- package/components/select/demo/index.min.js +201 -149
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +11 -5
- package/components/select/dist/index.js +195 -143
- package/components/select/dist/registered.js +195 -143
- package/package.json +5 -5
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -70,7 +70,8 @@ Custom element for the purpose of allowing users to select one or more options o
|
|
|
70
70
|
|-------------------------|--------------------|
|
|
71
71
|
| `auroCheckbox-focusin` | `CustomEvent<any>` |
|
|
72
72
|
| `auroCheckbox-focusout` | `CustomEvent<any>` |
|
|
73
|
-
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
73
|
+
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
74
|
+
| [input](#input) | `CustomEvent<any>` |
|
|
74
75
|
|
|
75
76
|
## CSS Shadow Parts
|
|
76
77
|
|
|
@@ -287,6 +287,13 @@ class AuroCheckbox extends i$2 {
|
|
|
287
287
|
handleInput(event) {
|
|
288
288
|
this.checked = event.target.checked;
|
|
289
289
|
|
|
290
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
291
|
+
bubbles: true,
|
|
292
|
+
cancelable: false,
|
|
293
|
+
composed: true,
|
|
294
|
+
}));
|
|
295
|
+
|
|
296
|
+
// Old event we need to deprecate
|
|
290
297
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
291
298
|
bubbles: true,
|
|
292
299
|
cancelable: false,
|
|
@@ -1042,13 +1049,24 @@ class AuroFormValidation {
|
|
|
1042
1049
|
this.getInputElements(elem);
|
|
1043
1050
|
this.getAuroInputs(elem);
|
|
1044
1051
|
|
|
1045
|
-
//
|
|
1052
|
+
// Check if validation should run
|
|
1046
1053
|
let validationShouldRun =
|
|
1054
|
+
|
|
1055
|
+
// If the validation was forced
|
|
1047
1056
|
force ||
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1057
|
+
|
|
1058
|
+
// If the validation should run on input
|
|
1059
|
+
elem.validateOnInput ||
|
|
1060
|
+
|
|
1061
|
+
// State-based checks
|
|
1062
|
+
(
|
|
1063
|
+
// Element is not currently focused
|
|
1064
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
1065
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
1066
|
+
|
|
1067
|
+
// And element has been touched or is untouched but has a value
|
|
1068
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
1069
|
+
);
|
|
1052
1070
|
|
|
1053
1071
|
if (elem.hasAttribute('error')) {
|
|
1054
1072
|
elem.validity = 'customError';
|
|
@@ -279,6 +279,13 @@ class AuroCheckbox extends i$2 {
|
|
|
279
279
|
handleInput(event) {
|
|
280
280
|
this.checked = event.target.checked;
|
|
281
281
|
|
|
282
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
283
|
+
bubbles: true,
|
|
284
|
+
cancelable: false,
|
|
285
|
+
composed: true,
|
|
286
|
+
}));
|
|
287
|
+
|
|
288
|
+
// Old event we need to deprecate
|
|
282
289
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
283
290
|
bubbles: true,
|
|
284
291
|
cancelable: false,
|
|
@@ -1034,13 +1041,24 @@ class AuroFormValidation {
|
|
|
1034
1041
|
this.getInputElements(elem);
|
|
1035
1042
|
this.getAuroInputs(elem);
|
|
1036
1043
|
|
|
1037
|
-
//
|
|
1044
|
+
// Check if validation should run
|
|
1038
1045
|
let validationShouldRun =
|
|
1046
|
+
|
|
1047
|
+
// If the validation was forced
|
|
1039
1048
|
force ||
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1049
|
+
|
|
1050
|
+
// If the validation should run on input
|
|
1051
|
+
elem.validateOnInput ||
|
|
1052
|
+
|
|
1053
|
+
// State-based checks
|
|
1054
|
+
(
|
|
1055
|
+
// Element is not currently focused
|
|
1056
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
1057
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
1058
|
+
|
|
1059
|
+
// And element has been touched or is untouched but has a value
|
|
1060
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
1061
|
+
);
|
|
1044
1062
|
|
|
1045
1063
|
if (elem.hasAttribute('error')) {
|
|
1046
1064
|
elem.validity = 'customError';
|
|
@@ -239,6 +239,13 @@ class AuroCheckbox extends LitElement {
|
|
|
239
239
|
handleInput(event) {
|
|
240
240
|
this.checked = event.target.checked;
|
|
241
241
|
|
|
242
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
+
bubbles: true,
|
|
244
|
+
cancelable: false,
|
|
245
|
+
composed: true,
|
|
246
|
+
}));
|
|
247
|
+
|
|
248
|
+
// Old event we need to deprecate
|
|
242
249
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
243
250
|
bubbles: true,
|
|
244
251
|
cancelable: false,
|
|
@@ -987,13 +994,24 @@ class AuroFormValidation {
|
|
|
987
994
|
this.getInputElements(elem);
|
|
988
995
|
this.getAuroInputs(elem);
|
|
989
996
|
|
|
990
|
-
//
|
|
997
|
+
// Check if validation should run
|
|
991
998
|
let validationShouldRun =
|
|
999
|
+
|
|
1000
|
+
// If the validation was forced
|
|
992
1001
|
force ||
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1002
|
+
|
|
1003
|
+
// If the validation should run on input
|
|
1004
|
+
elem.validateOnInput ||
|
|
1005
|
+
|
|
1006
|
+
// State-based checks
|
|
1007
|
+
(
|
|
1008
|
+
// Element is not currently focused
|
|
1009
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
1010
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
1011
|
+
|
|
1012
|
+
// And element has been touched or is untouched but has a value
|
|
1013
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
1014
|
+
);
|
|
997
1015
|
|
|
998
1016
|
if (elem.hasAttribute('error')) {
|
|
999
1017
|
elem.validity = 'customError';
|
|
@@ -239,6 +239,13 @@ class AuroCheckbox extends LitElement {
|
|
|
239
239
|
handleInput(event) {
|
|
240
240
|
this.checked = event.target.checked;
|
|
241
241
|
|
|
242
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
+
bubbles: true,
|
|
244
|
+
cancelable: false,
|
|
245
|
+
composed: true,
|
|
246
|
+
}));
|
|
247
|
+
|
|
248
|
+
// Old event we need to deprecate
|
|
242
249
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
243
250
|
bubbles: true,
|
|
244
251
|
cancelable: false,
|
|
@@ -987,13 +994,24 @@ class AuroFormValidation {
|
|
|
987
994
|
this.getInputElements(elem);
|
|
988
995
|
this.getAuroInputs(elem);
|
|
989
996
|
|
|
990
|
-
//
|
|
997
|
+
// Check if validation should run
|
|
991
998
|
let validationShouldRun =
|
|
999
|
+
|
|
1000
|
+
// If the validation was forced
|
|
992
1001
|
force ||
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1002
|
+
|
|
1003
|
+
// If the validation should run on input
|
|
1004
|
+
elem.validateOnInput ||
|
|
1005
|
+
|
|
1006
|
+
// State-based checks
|
|
1007
|
+
(
|
|
1008
|
+
// Element is not currently focused
|
|
1009
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
1010
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
1011
|
+
|
|
1012
|
+
// And element has been touched or is untouched but has a value
|
|
1013
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
1014
|
+
);
|
|
997
1015
|
|
|
998
1016
|
if (elem.hasAttribute('error')) {
|
|
999
1017
|
elem.validity = 'customError';
|
|
@@ -84,6 +84,8 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-combobox>
|
|
87
|
+
<span slot="ariaLabel.close">Close combobox</span>
|
|
88
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
87
89
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
88
90
|
<span slot="label">Name</span>
|
|
89
91
|
<auro-menu>
|
|
@@ -39,9 +39,12 @@
|
|
|
39
39
|
|
|
40
40
|
| Method | Type | Description |
|
|
41
41
|
|------------|----------------------------------------|--------------------------------------------------|
|
|
42
|
+
| [clear](#clear) | `(): void` | Clears the current value of the combobox. |
|
|
42
43
|
| [focus](#focus) | `(): void` | Focuses the combobox trigger input. |
|
|
44
|
+
| [hideBib](#hideBib) | `(): void` | Hides the dropdown bib if its open. |
|
|
43
45
|
| [isValid](#isValid) | `(): boolean` | Checks if the element is valid. |
|
|
44
46
|
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
47
|
+
| [showBib](#showBib) | `(): void` | Shows the dropdown bib if there are options to show. |
|
|
45
48
|
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
46
49
|
|
|
47
50
|
## Events
|
|
@@ -56,6 +59,8 @@
|
|
|
56
59
|
| Name | Description |
|
|
57
60
|
|---------------------------|--------------------------------------------------|
|
|
58
61
|
| | Default slot for the menu content. |
|
|
62
|
+
| `ariaLabel.clear` | Sets aria-label on clear button |
|
|
63
|
+
| `ariaLabel.close` | Sets aria-label on close button in fullscreen bib |
|
|
59
64
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
60
65
|
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts. |
|
|
61
66
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
@@ -71,6 +76,8 @@
|
|
|
71
76
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
72
77
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
73
78
|
<auro-combobox>
|
|
79
|
+
<span slot="ariaLabel.close">Close combobox</span>
|
|
80
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
74
81
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
75
82
|
<span slot="label">Name</span>
|
|
76
83
|
<auro-menu>
|
|
@@ -108,6 +115,8 @@
|
|
|
108
115
|
|
|
109
116
|
```html
|
|
110
117
|
<auro-combobox>
|
|
118
|
+
<span slot="ariaLabel.close">Close combobox</span>
|
|
119
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
111
120
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
112
121
|
<span slot="label">Name</span>
|
|
113
122
|
<auro-menu>
|