@aurodesignsystem/auro-formkit 3.3.0 → 3.4.1-rc-602.2.1
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/CHANGELOG.md +3 -1742
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +0 -1
- package/components/checkbox/demo/api.min.js +3 -1
- package/components/checkbox/demo/index.min.js +3 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +3 -1
- package/components/checkbox/dist/registered.js +3 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +44 -0
- package/components/combobox/demo/api.min.js +18 -3
- package/components/combobox/demo/index.min.js +18 -3
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +6 -0
- package/components/combobox/dist/index.js +18 -3
- package/components/combobox/dist/registered.js +18 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +18 -3
- package/components/datepicker/demo/index.min.js +18 -3
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +18 -3
- package/components/datepicker/dist/registered.js +18 -3
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +24 -0
- package/components/input/demo/api.min.js +10 -3
- package/components/input/demo/index.min.js +10 -3
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +7 -0
- package/components/input/dist/index.js +10 -3
- package/components/input/dist/registered.js +10 -3
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +0 -1
- package/components/radio/demo/api.min.js +7 -1
- package/components/radio/demo/index.min.js +7 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/index.js +7 -1
- package/components/radio/dist/registered.js +7 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/readme.md +1 -1
- package/package.json +1 -1
|
@@ -20983,6 +20983,13 @@ class BaseInput extends LitElement {
|
|
|
20983
20983
|
type: String
|
|
20984
20984
|
},
|
|
20985
20985
|
|
|
20986
|
+
/** Exposes inputmode attribute for input. */
|
|
20987
|
+
inputmode: {
|
|
20988
|
+
type: String,
|
|
20989
|
+
attribute: true,
|
|
20990
|
+
reflect: true
|
|
20991
|
+
},
|
|
20992
|
+
|
|
20986
20993
|
/**
|
|
20987
20994
|
* Defines the language of an element.
|
|
20988
20995
|
*/
|
|
@@ -21548,9 +21555,9 @@ class BaseInput extends LitElement {
|
|
|
21548
21555
|
|
|
21549
21556
|
if (this.type in defaultLengths) {
|
|
21550
21557
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
21551
|
-
this.
|
|
21558
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
21552
21559
|
} else if (this.type === 'number') {
|
|
21553
|
-
this.
|
|
21560
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
21554
21561
|
}
|
|
21555
21562
|
|
|
21556
21563
|
if (this.type === "date" && !this.format) {
|
|
@@ -22908,7 +22915,7 @@ class AuroInput extends BaseInput {
|
|
|
22908
22915
|
pattern="${ifDefined(this.definePattern())}"
|
|
22909
22916
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
22910
22917
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
22911
|
-
inputMode="${ifDefined(this.
|
|
22918
|
+
inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
22912
22919
|
?required="${this.required}"
|
|
22913
22920
|
?disabled="${this.disabled}"
|
|
22914
22921
|
aria-describedby="${this.uniqueId}"
|
|
@@ -23222,6 +23229,13 @@ class AuroDatePicker extends LitElement {
|
|
|
23222
23229
|
reflect: true
|
|
23223
23230
|
},
|
|
23224
23231
|
|
|
23232
|
+
/** Exposes inputmode attribute for input. */
|
|
23233
|
+
inputmode: {
|
|
23234
|
+
type: String,
|
|
23235
|
+
attribute: true,
|
|
23236
|
+
reflect: true
|
|
23237
|
+
},
|
|
23238
|
+
|
|
23225
23239
|
/**
|
|
23226
23240
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23227
23241
|
* Otherwise, Heading 600.
|
|
@@ -24072,6 +24086,7 @@ class AuroDatePicker extends LitElement {
|
|
|
24072
24086
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24073
24087
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24074
24088
|
?disabled="${this.disabled}"
|
|
24089
|
+
inputmode="${ifDefined(this.inputmode)}"
|
|
24075
24090
|
part="input">
|
|
24076
24091
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
24077
24092
|
</${this.inputTag}>
|
|
@@ -20983,6 +20983,13 @@ class BaseInput extends LitElement {
|
|
|
20983
20983
|
type: String
|
|
20984
20984
|
},
|
|
20985
20985
|
|
|
20986
|
+
/** Exposes inputmode attribute for input. */
|
|
20987
|
+
inputmode: {
|
|
20988
|
+
type: String,
|
|
20989
|
+
attribute: true,
|
|
20990
|
+
reflect: true
|
|
20991
|
+
},
|
|
20992
|
+
|
|
20986
20993
|
/**
|
|
20987
20994
|
* Defines the language of an element.
|
|
20988
20995
|
*/
|
|
@@ -21548,9 +21555,9 @@ class BaseInput extends LitElement {
|
|
|
21548
21555
|
|
|
21549
21556
|
if (this.type in defaultLengths) {
|
|
21550
21557
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
21551
|
-
this.
|
|
21558
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
21552
21559
|
} else if (this.type === 'number') {
|
|
21553
|
-
this.
|
|
21560
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
21554
21561
|
}
|
|
21555
21562
|
|
|
21556
21563
|
if (this.type === "date" && !this.format) {
|
|
@@ -22908,7 +22915,7 @@ class AuroInput extends BaseInput {
|
|
|
22908
22915
|
pattern="${ifDefined(this.definePattern())}"
|
|
22909
22916
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
22910
22917
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
22911
|
-
inputMode="${ifDefined(this.
|
|
22918
|
+
inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
22912
22919
|
?required="${this.required}"
|
|
22913
22920
|
?disabled="${this.disabled}"
|
|
22914
22921
|
aria-describedby="${this.uniqueId}"
|
|
@@ -23222,6 +23229,13 @@ class AuroDatePicker extends LitElement {
|
|
|
23222
23229
|
reflect: true
|
|
23223
23230
|
},
|
|
23224
23231
|
|
|
23232
|
+
/** Exposes inputmode attribute for input. */
|
|
23233
|
+
inputmode: {
|
|
23234
|
+
type: String,
|
|
23235
|
+
attribute: true,
|
|
23236
|
+
reflect: true
|
|
23237
|
+
},
|
|
23238
|
+
|
|
23225
23239
|
/**
|
|
23226
23240
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23227
23241
|
* Otherwise, Heading 600.
|
|
@@ -24072,6 +24086,7 @@ class AuroDatePicker extends LitElement {
|
|
|
24072
24086
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24073
24087
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24074
24088
|
?disabled="${this.disabled}"
|
|
24089
|
+
inputmode="${ifDefined(this.inputmode)}"
|
|
24075
24090
|
part="input">
|
|
24076
24091
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
24077
24092
|
</${this.inputTag}>
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -30,6 +30,7 @@ Generate unique names for dependency components.
|
|
|
30
30
|
| [format](#format) | `format` | `string` | | Specifies the input mask format. |
|
|
31
31
|
| [icon](#icon) | `icon` | `boolean` | false | If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format. |
|
|
32
32
|
| [id](#id) | `id` | `string` | | Sets the unique ID of the element. |
|
|
33
|
+
| [inputmode](#inputmode) | `inputmode` | `string` | | Exposes inputmode attribute for input. |
|
|
33
34
|
| [lang](#lang) | `lang` | `string` | | Defines the language of an element. |
|
|
34
35
|
| [max](#max) | `max` | `string` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
35
36
|
| [maxLength](#maxLength) | `maxLength` | `number` | "undefined" | The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher. |
|
|
@@ -179,6 +180,29 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
179
180
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
180
181
|
</auro-accordion>
|
|
181
182
|
|
|
183
|
+
#### Input Mode
|
|
184
|
+
|
|
185
|
+
Set the input mode for the input.
|
|
186
|
+
|
|
187
|
+
*IMPORTANT:* If you are also passing a `type`, most browsers will use the `type` attribute to determine what keyboard to display on mobile devices and ignore the `inputmode` attribute.
|
|
188
|
+
|
|
189
|
+
<div class="exampleWrapper">
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
|
|
191
|
+
<!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
|
|
192
|
+
<auro-input bordered inputmode="tel" />
|
|
193
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
194
|
+
</div>
|
|
195
|
+
<auro-accordion alignRight>
|
|
196
|
+
<span slot="trigger">See code</span>
|
|
197
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inputmode.html) -->
|
|
198
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
|
|
199
|
+
|
|
200
|
+
```html
|
|
201
|
+
<auro-input bordered inputmode="tel" />
|
|
202
|
+
```
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
|
+
</auro-accordion>
|
|
205
|
+
|
|
182
206
|
### Placeholder <a name="placeholder"></a>
|
|
183
207
|
Use the `placeholder` attribute to add a custom placeholder message within the element.
|
|
184
208
|
|
|
@@ -5162,6 +5162,13 @@ class BaseInput extends i {
|
|
|
5162
5162
|
type: String
|
|
5163
5163
|
},
|
|
5164
5164
|
|
|
5165
|
+
/** Exposes inputmode attribute for input. */
|
|
5166
|
+
inputmode: {
|
|
5167
|
+
type: String,
|
|
5168
|
+
attribute: true,
|
|
5169
|
+
reflect: true
|
|
5170
|
+
},
|
|
5171
|
+
|
|
5165
5172
|
/**
|
|
5166
5173
|
* Defines the language of an element.
|
|
5167
5174
|
*/
|
|
@@ -5727,9 +5734,9 @@ class BaseInput extends i {
|
|
|
5727
5734
|
|
|
5728
5735
|
if (this.type in defaultLengths) {
|
|
5729
5736
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
5730
|
-
this.
|
|
5737
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5731
5738
|
} else if (this.type === 'number') {
|
|
5732
|
-
this.
|
|
5739
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5733
5740
|
}
|
|
5734
5741
|
|
|
5735
5742
|
if (this.type === "date" && !this.format) {
|
|
@@ -7087,7 +7094,7 @@ class AuroInput extends BaseInput {
|
|
|
7087
7094
|
pattern="${o$3(this.definePattern())}"
|
|
7088
7095
|
maxlength="${o$3(this.maxLength ? this.maxLength : undefined)}"
|
|
7089
7096
|
minlength="${o$3(this.minLength ? this.minLength : undefined)}"
|
|
7090
|
-
inputMode="${o$3(this.
|
|
7097
|
+
inputMode="${o$3(this.inputmode ? this.inputmode : undefined)}"
|
|
7091
7098
|
?required="${this.required}"
|
|
7092
7099
|
?disabled="${this.disabled}"
|
|
7093
7100
|
aria-describedby="${this.uniqueId}"
|
|
@@ -5087,6 +5087,13 @@ class BaseInput extends i {
|
|
|
5087
5087
|
type: String
|
|
5088
5088
|
},
|
|
5089
5089
|
|
|
5090
|
+
/** Exposes inputmode attribute for input. */
|
|
5091
|
+
inputmode: {
|
|
5092
|
+
type: String,
|
|
5093
|
+
attribute: true,
|
|
5094
|
+
reflect: true
|
|
5095
|
+
},
|
|
5096
|
+
|
|
5090
5097
|
/**
|
|
5091
5098
|
* Defines the language of an element.
|
|
5092
5099
|
*/
|
|
@@ -5652,9 +5659,9 @@ class BaseInput extends i {
|
|
|
5652
5659
|
|
|
5653
5660
|
if (this.type in defaultLengths) {
|
|
5654
5661
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
5655
|
-
this.
|
|
5662
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5656
5663
|
} else if (this.type === 'number') {
|
|
5657
|
-
this.
|
|
5664
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5658
5665
|
}
|
|
5659
5666
|
|
|
5660
5667
|
if (this.type === "date" && !this.format) {
|
|
@@ -7012,7 +7019,7 @@ class AuroInput extends BaseInput {
|
|
|
7012
7019
|
pattern="${o$3(this.definePattern())}"
|
|
7013
7020
|
maxlength="${o$3(this.maxLength ? this.maxLength : undefined)}"
|
|
7014
7021
|
minlength="${o$3(this.minLength ? this.minLength : undefined)}"
|
|
7015
|
-
inputMode="${o$3(this.
|
|
7022
|
+
inputMode="${o$3(this.inputmode ? this.inputmode : undefined)}"
|
|
7016
7023
|
?required="${this.required}"
|
|
7017
7024
|
?disabled="${this.disabled}"
|
|
7018
7025
|
aria-describedby="${this.uniqueId}"
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -107,6 +107,12 @@ export default class BaseInput extends LitElement {
|
|
|
107
107
|
id: {
|
|
108
108
|
type: StringConstructor;
|
|
109
109
|
};
|
|
110
|
+
/** Exposes inputmode attribute for input. */
|
|
111
|
+
inputmode: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
attribute: boolean;
|
|
114
|
+
reflect: boolean;
|
|
115
|
+
};
|
|
110
116
|
/**
|
|
111
117
|
* Defines the language of an element.
|
|
112
118
|
*/
|
|
@@ -442,6 +448,7 @@ export default class BaseInput extends LitElement {
|
|
|
442
448
|
*/
|
|
443
449
|
private configureDataForType;
|
|
444
450
|
lengthForType: any;
|
|
451
|
+
inputmode: any;
|
|
445
452
|
/**
|
|
446
453
|
* Validates against list of supported this.allowedInputTypes; return type=text if invalid request.
|
|
447
454
|
* @private
|
|
@@ -5011,6 +5011,13 @@ class BaseInput extends LitElement {
|
|
|
5011
5011
|
type: String
|
|
5012
5012
|
},
|
|
5013
5013
|
|
|
5014
|
+
/** Exposes inputmode attribute for input. */
|
|
5015
|
+
inputmode: {
|
|
5016
|
+
type: String,
|
|
5017
|
+
attribute: true,
|
|
5018
|
+
reflect: true
|
|
5019
|
+
},
|
|
5020
|
+
|
|
5014
5021
|
/**
|
|
5015
5022
|
* Defines the language of an element.
|
|
5016
5023
|
*/
|
|
@@ -5576,9 +5583,9 @@ class BaseInput extends LitElement {
|
|
|
5576
5583
|
|
|
5577
5584
|
if (this.type in defaultLengths) {
|
|
5578
5585
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
5579
|
-
this.
|
|
5586
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5580
5587
|
} else if (this.type === 'number') {
|
|
5581
|
-
this.
|
|
5588
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5582
5589
|
}
|
|
5583
5590
|
|
|
5584
5591
|
if (this.type === "date" && !this.format) {
|
|
@@ -6936,7 +6943,7 @@ class AuroInput extends BaseInput {
|
|
|
6936
6943
|
pattern="${ifDefined(this.definePattern())}"
|
|
6937
6944
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
6938
6945
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
6939
|
-
inputMode="${ifDefined(this.
|
|
6946
|
+
inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
6940
6947
|
?required="${this.required}"
|
|
6941
6948
|
?disabled="${this.disabled}"
|
|
6942
6949
|
aria-describedby="${this.uniqueId}"
|
|
@@ -5011,6 +5011,13 @@ class BaseInput extends LitElement {
|
|
|
5011
5011
|
type: String
|
|
5012
5012
|
},
|
|
5013
5013
|
|
|
5014
|
+
/** Exposes inputmode attribute for input. */
|
|
5015
|
+
inputmode: {
|
|
5016
|
+
type: String,
|
|
5017
|
+
attribute: true,
|
|
5018
|
+
reflect: true
|
|
5019
|
+
},
|
|
5020
|
+
|
|
5014
5021
|
/**
|
|
5015
5022
|
* Defines the language of an element.
|
|
5016
5023
|
*/
|
|
@@ -5576,9 +5583,9 @@ class BaseInput extends LitElement {
|
|
|
5576
5583
|
|
|
5577
5584
|
if (this.type in defaultLengths) {
|
|
5578
5585
|
this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
|
|
5579
|
-
this.
|
|
5586
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5580
5587
|
} else if (this.type === 'number') {
|
|
5581
|
-
this.
|
|
5588
|
+
this.inputmode = this.inputmode || 'numeric';
|
|
5582
5589
|
}
|
|
5583
5590
|
|
|
5584
5591
|
if (this.type === "date" && !this.format) {
|
|
@@ -6936,7 +6943,7 @@ class AuroInput extends BaseInput {
|
|
|
6936
6943
|
pattern="${ifDefined(this.definePattern())}"
|
|
6937
6944
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
6938
6945
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
6939
|
-
inputMode="${ifDefined(this.
|
|
6946
|
+
inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
6940
6947
|
?required="${this.required}"
|
|
6941
6948
|
?disabled="${this.disabled}"
|
|
6942
6949
|
aria-describedby="${this.uniqueId}"
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
| [onDark](#onDark) | `onDark` | `Boolean` | false | If set to true, the component will render with a dark theme. |
|
|
64
64
|
| [required](#required) | `required` | `Boolean` | false | Defines element as required. |
|
|
65
65
|
| [tabIndex](#tabIndex) | `tabIndex` | `number` | -1 | |
|
|
66
|
-
| [touched](#touched) | `touched` | `boolean` | false | |
|
|
67
66
|
| [value](#value) | `value` | `string` | | |
|
|
68
67
|
|
|
69
68
|
## Methods
|
|
@@ -220,9 +220,15 @@ class AuroRadio extends i$2 {
|
|
|
220
220
|
type: Number,
|
|
221
221
|
reflect: true
|
|
222
222
|
},
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Whether or not the radio button has been touched by the user.
|
|
226
|
+
* @private
|
|
227
|
+
*/
|
|
223
228
|
touched: {
|
|
224
229
|
type: Boolean,
|
|
225
|
-
reflect: true
|
|
230
|
+
reflect: true,
|
|
231
|
+
attribute: false
|
|
226
232
|
}
|
|
227
233
|
};
|
|
228
234
|
}
|
|
@@ -195,9 +195,15 @@ class AuroRadio extends i$2 {
|
|
|
195
195
|
type: Number,
|
|
196
196
|
reflect: true
|
|
197
197
|
},
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Whether or not the radio button has been touched by the user.
|
|
201
|
+
* @private
|
|
202
|
+
*/
|
|
198
203
|
touched: {
|
|
199
204
|
type: Boolean,
|
|
200
|
-
reflect: true
|
|
205
|
+
reflect: true,
|
|
206
|
+
attribute: false
|
|
201
207
|
}
|
|
202
208
|
};
|
|
203
209
|
}
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -49,9 +49,14 @@ export class AuroRadio extends LitElement {
|
|
|
49
49
|
type: NumberConstructor;
|
|
50
50
|
reflect: boolean;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* Whether or not the radio button has been touched by the user.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
52
56
|
touched: {
|
|
53
57
|
type: BooleanConstructor;
|
|
54
58
|
reflect: boolean;
|
|
59
|
+
attribute: boolean;
|
|
55
60
|
};
|
|
56
61
|
};
|
|
57
62
|
/**
|
|
@@ -155,9 +155,15 @@ class AuroRadio extends LitElement {
|
|
|
155
155
|
type: Number,
|
|
156
156
|
reflect: true
|
|
157
157
|
},
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Whether or not the radio button has been touched by the user.
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
158
163
|
touched: {
|
|
159
164
|
type: Boolean,
|
|
160
|
-
reflect: true
|
|
165
|
+
reflect: true,
|
|
166
|
+
attribute: false
|
|
161
167
|
}
|
|
162
168
|
};
|
|
163
169
|
}
|
|
@@ -155,9 +155,15 @@ class AuroRadio extends LitElement {
|
|
|
155
155
|
type: Number,
|
|
156
156
|
reflect: true
|
|
157
157
|
},
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Whether or not the radio button has been touched by the user.
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
158
163
|
touched: {
|
|
159
164
|
type: Boolean,
|
|
160
|
-
reflect: true
|
|
165
|
+
reflect: true,
|
|
166
|
+
attribute: false
|
|
161
167
|
}
|
|
162
168
|
};
|
|
163
169
|
}
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
package/package.json
CHANGED