@brightspace-ui/core 3.122.1 → 3.123.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/inputs/docs/input-color.md +1 -0
- package/components/inputs/docs/input-date-time.md +6 -0
- package/components/inputs/docs/input-numeric.md +5 -17
- package/components/inputs/docs/input-search.md +3 -9
- package/components/inputs/docs/input-text.md +8 -80
- package/components/inputs/docs/styling-native-inputs.md +52 -0
- package/components/inputs/input-text.js +4 -4
- package/custom-elements.json +8 -8
- package/package.json +1 -1
@@ -34,6 +34,7 @@ The `<d2l-input-color>` will open a dialog to allow the user to select a color f
|
|
34
34
|
| `disallow-none` | Boolean, default: `false` | Disallows the user from selecting "None" as a color value. |
|
35
35
|
| `label` | String, required | Label for the input. Comes with a default value for background & foreground types. |
|
36
36
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. |
|
37
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
37
38
|
| `readonly` | Boolean, default: `false` | Puts the input into a read-only state. |
|
38
39
|
| `type` | String, default: `custom` | Type of color being chosen. Can be one of: `custom`, `background`, `foreground`. |
|
39
40
|
| `value` | Number | Value of the input. |
|
@@ -51,6 +51,7 @@ Note: All `*value` properties should be in ISO 8601 calendar date format (`YYYY-
|
|
51
51
|
| `labelled-by` | String | HTML id of an element in the same shadow root which acts as the input's label |
|
52
52
|
| `max-value` | String | Maximum valid date that could be selected by a user. |
|
53
53
|
| `min-value` | String | Minimum valid date that could be selected by a user. |
|
54
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
54
55
|
| `opened` | Boolean | Indicates if the calendar dropdown is open |
|
55
56
|
| `required` | Boolean | Indicates that a value is required |
|
56
57
|
| `value` | String, default `''` | Value of the input. |
|
@@ -95,6 +96,7 @@ Note: All `*value` properties should be in ISO 8601 calendar date format (`YYYY-
|
|
95
96
|
| `label-hidden` | Boolean | Hides the fieldset label visually |
|
96
97
|
| `max-value` | String | Maximum valid date that could be selected by a user |
|
97
98
|
| `min-value` | String | Minimum valid date that could be selected by a user |
|
99
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
98
100
|
| `required` | Boolean | Indicates that values are required |
|
99
101
|
| `start-label` | String, default `'Start Date'` | Accessible label for the first date input |
|
100
102
|
| `start-opened` | Boolean | Indicates if the start calendar dropdown is open |
|
@@ -135,6 +137,7 @@ Note: All `*value` properties should be in ISO 8601 time format (`hh:mm:ss`) and
|
|
135
137
|
| `enforce-time-intervals` | Boolean | Rounds up to nearest valid interval time (specified with `time-interval`) when user types a time |
|
136
138
|
| `label-hidden` | Boolean | Hides the label visually (moves it to the input's `aria-label` attribute) |
|
137
139
|
| `labelled-by` | String | HTML id of an element in the same shadow root which acts as the input's label |
|
140
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
138
141
|
| `opened` | Boolean | Indicates if the dropdown is open |
|
139
142
|
| `required` | Boolean | Indicates that a value is required |
|
140
143
|
| `timezone-hidden` | Boolean | Hides the timezone inside the selection dropdown. Should only be used when the input uses a different timezone than the document's settings |
|
@@ -180,6 +183,7 @@ Note: All `*value` properties should be in ISO 8601 time format (`hh:mm:ss`) and
|
|
180
183
|
| `enforce-time-intervals` | Boolean | Rounds up to nearest valid interval time (specified with `time-interval`) when user types a time |
|
181
184
|
| `inclusive-time-range` | Boolean | Validate on inclusive range (i.e., it is valid for start and end times to be equal) |
|
182
185
|
| `label-hidden` | Boolean | Hides the fieldset label visually |
|
186
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
183
187
|
| `required` | Boolean | Indicates that values are required |
|
184
188
|
| `start-label` | String, default `'Start Time'` | Accessible label for the first time input |
|
185
189
|
| `start-opened` | Boolean | Indicates if the start dropdown is open |
|
@@ -218,6 +222,7 @@ Note: All `*value` properties should be in ISO 8601 combined date and time forma
|
|
218
222
|
| `localized` | Boolean | Indicates that any timezone localization will be handeld by the consumer and so any values will not be converted from/to UTC |
|
219
223
|
| `max-value` | String | Maximum valid date/time that could be selected by a user |
|
220
224
|
| `min-value` | String | Minimum valid date/time that could be selected by a user |
|
225
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
221
226
|
| `opened` | Boolean | Indicates if the date or time dropdown is open |
|
222
227
|
| `required` | Boolean | Indicates that a value is required |
|
223
228
|
| `time-default-value`| String, default:`'00:00:00'` | Set default value of time input. Accepts ISO 8601 time format (`hh:mm:ss`) and the following keywords: `startOfDay`,`endOfDay`. |
|
@@ -261,6 +266,7 @@ Note: All `*value` properties should be in ISO 8601 combined date and time forma
|
|
261
266
|
| `end-value` | String, default `''` | Value of the second date-time input |
|
262
267
|
| `inclusive-date-range` | Boolean | Validate on inclusive range (i.e., it is valid for start and end date-times to be equal) |
|
263
268
|
| `label-hidden` | Boolean | Hides the fieldset label visually |
|
269
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
264
270
|
| `required` | Boolean | Indicates that values are required |
|
265
271
|
| `start-label` | String, default `'Start Date'` | Accessible label for the first date-time input |
|
266
272
|
| `start-opened` | Boolean | Indicates if the start date or time dropdown is open |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Numeric Inputs
|
2
2
|
|
3
|
-
Numeric inputs allow users to input numbers. These include the more generic
|
3
|
+
Numeric inputs allow users to input numbers. These include the more generic `<d2l-input-number>`, as well as the percentage input `<d2l-input-percent>`.
|
4
4
|
|
5
5
|
<!-- docs: demo -->
|
6
6
|
```html
|
@@ -25,15 +25,8 @@ The `<d2l-input-number>` element is similar to `<d2l-input-text>`, except it's i
|
|
25
25
|
```html
|
26
26
|
<script type="module">
|
27
27
|
import '@brightspace-ui/core/components/inputs/input-number.js';
|
28
|
-
|
29
|
-
window.addEventListener('load', function () {
|
30
|
-
var input = document.querySelector('#number');
|
31
|
-
input.addEventListener('change', (e) => {
|
32
|
-
console.log('numeric value: ', input.value);
|
33
|
-
});
|
34
|
-
});
|
35
28
|
</script>
|
36
|
-
<d2l-input-number
|
29
|
+
<d2l-input-number label="Label"></d2l-input-number>
|
37
30
|
```
|
38
31
|
|
39
32
|
<!-- docs: start hidden content -->
|
@@ -54,6 +47,7 @@ The `<d2l-input-number>` element is similar to `<d2l-input-text>`, except it's i
|
|
54
47
|
| `min` | Number | Minimum value allowed. |
|
55
48
|
| `min-exclusive` | Boolean, default: `false` | Indicates whether the min value is exclusive. |
|
56
49
|
| `min-fraction-digits` | Number, default: `0` | Minimum number of digits allowed after the decimal place. Must be between 0 and 20 and less than or equal to `maxFractionDigits` |
|
50
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
57
51
|
| `required` | Boolean, default: `false` | Indicates that a value is required. |
|
58
52
|
| `unit` | String | Unit associated with the input value, displayed next to input and announced as part of the label |
|
59
53
|
| `unit-label` | String | Label for the unit, which is only picked up by screenreaders. Required if `unit` is used. |
|
@@ -94,15 +88,8 @@ The `<d2l-input-percent>` element is similar to `<d2l-input-number>`, except it
|
|
94
88
|
```html
|
95
89
|
<script type="module">
|
96
90
|
import '@brightspace-ui/core/components/inputs/input-percent.js';
|
97
|
-
|
98
|
-
window.addEventListener('load', function () {
|
99
|
-
var input = document.querySelector('#percent');
|
100
|
-
input.addEventListener('change', (e) => {
|
101
|
-
console.log('percentage value: ', input.value);
|
102
|
-
});
|
103
|
-
});
|
104
91
|
</script>
|
105
|
-
<d2l-input-percent
|
92
|
+
<d2l-input-percent label="Label"></d2l-input-percent>
|
106
93
|
```
|
107
94
|
|
108
95
|
<!-- docs: start hidden content -->
|
@@ -117,6 +104,7 @@ The `<d2l-input-percent>` element is similar to `<d2l-input-number>`, except it
|
|
117
104
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label. |
|
118
105
|
| `max-fraction-digits` | Number | Maximum number of digits allowed after the decimal place. |
|
119
106
|
| `min-fraction-digits` | Number | Minimum number of digits allowed after the decimal place. |
|
107
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
120
108
|
| `required` | Boolean, default: `false` | Indicates that a value is required. |
|
121
109
|
| `value` | Number | Value of the input. |
|
122
110
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Search
|
1
|
+
# Search Input
|
2
2
|
|
3
3
|
Search inputs allow users to input text, execute a search, and clear results. A search input may be used in conjunction with filters, sort, and/or auto-complete.
|
4
4
|
|
@@ -39,14 +39,8 @@ For text searches use `<d2l-input-search>`, which wraps the native `<input type=
|
|
39
39
|
```html
|
40
40
|
<script type="module">
|
41
41
|
import '@brightspace-ui/core/components/inputs/input-search.js';
|
42
|
-
|
43
|
-
window.addEventListener('load', function () {
|
44
|
-
document.querySelector('#search').addEventListener('d2l-input-search-searched', (e) => {
|
45
|
-
console.log('searched term:', e.detail.value);
|
46
|
-
});
|
47
|
-
});
|
48
42
|
</script>
|
49
|
-
<d2l-input-search
|
43
|
+
<d2l-input-search label="Search">
|
50
44
|
</d2l-input-search>
|
51
45
|
```
|
52
46
|
|
@@ -66,7 +60,7 @@ For text searches use `<d2l-input-search>`, which wraps the native `<input type=
|
|
66
60
|
|
67
61
|
### Events
|
68
62
|
|
69
|
-
The
|
63
|
+
The `<d2l-input-search>` component dispatches the `d2l-input-search-searched` event when a search is performed:
|
70
64
|
|
71
65
|
```javascript
|
72
66
|
search.addEventListener('d2l-input-search-searched', (e) => {
|
@@ -44,18 +44,8 @@ The `<d2l-input-text>` element is a simple wrapper around the native `<input typ
|
|
44
44
|
```html
|
45
45
|
<script type="module">
|
46
46
|
import '@brightspace-ui/core/components/inputs/input-text.js';
|
47
|
-
|
48
|
-
window.addEventListener('load', function () {
|
49
|
-
var input = document.querySelector('#text');
|
50
|
-
input.addEventListener('change', (e) => {
|
51
|
-
console.log('input-text change: ', input.value);
|
52
|
-
});
|
53
|
-
input.addEventListener('input', (e) => {
|
54
|
-
console.log('input-text input: ', input.value);
|
55
|
-
});
|
56
|
-
});
|
57
47
|
</script>
|
58
|
-
<d2l-input-text
|
48
|
+
<d2l-input-text label="Label"></d2l-input-text>
|
59
49
|
```
|
60
50
|
|
61
51
|
<!-- docs: start hidden content -->
|
@@ -78,7 +68,7 @@ The `<d2l-input-text>` element is a simple wrapper around the native `<input typ
|
|
78
68
|
| `maxlength` | Number | Imposes an upper character limit |
|
79
69
|
| `min` | String | For number inputs, minimum value |
|
80
70
|
| `minlength` | Number | Imposes a lower character limit |
|
81
|
-
| `name` | String | Name of the
|
71
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
82
72
|
| `novalidate` | Boolean | Disables the built-in validation |
|
83
73
|
| `pattern` | String | Regular expression pattern to validate the value |
|
84
74
|
| `pattern-failure-text` | String | Text to display when input fails validation against the pattern. If a list of characters is included in the message, use `LocalizeMixin`'s `localizeCharacter`. |
|
@@ -93,7 +83,7 @@ The `<d2l-input-text>` element is a simple wrapper around the native `<input typ
|
|
93
83
|
|
94
84
|
### Events
|
95
85
|
|
96
|
-
The
|
86
|
+
The `<d2l-input-text>` dispatches the `change` event when an alteration to the value is committed (typically after focus is lost) by the user. To be notified immediately of changes made by the user, use the `input` event.
|
97
87
|
|
98
88
|
```javascript
|
99
89
|
// dispatched when value changes are committed
|
@@ -116,45 +106,18 @@ input.addEventListener('input', (e) => {
|
|
116
106
|
|
117
107
|
### Accessibility Properties
|
118
108
|
|
119
|
-
To make your usage of
|
109
|
+
To make your usage of `<d2l-input-text>` accessible, use the following properties when applicable:
|
120
110
|
|
121
111
|
| Attribute | Description |
|
122
112
|
|---|---|
|
123
113
|
| `aria-haspopup` | [Indicate clicking the input opens a menu](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-haspopup). |
|
124
114
|
| `aria-invalid` | [Indicate that the input value is invalid](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-invalid) |
|
125
|
-
| `aria-label` | Use when `label` does not provide enough context. Only applies if no `label-hidden`. |
|
126
115
|
| `description` | Use when label on input does not provide enough context. |
|
127
116
|
| `label` | **REQUIRED** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
|
128
117
|
| `label-hidden` | Use if label should be visually hidden but available for screen reader users |
|
129
118
|
| `labelled-by` | Use when another visible element should act as the label |
|
130
119
|
| `unit` | Use to render the unit (offscreen) as part of the label. |
|
131
120
|
|
132
|
-
## Applying styles to native text input
|
133
|
-
|
134
|
-
As an alternative to using the `<d2l-input-text>` custom element, you can style a native text input inside your own element. Import `input-styles.js` and apply the `d2l-input` CSS class to the input:
|
135
|
-
|
136
|
-
<!-- docs: demo code -->
|
137
|
-
```html
|
138
|
-
<script type="module">
|
139
|
-
import { html, LitElement } from 'lit';
|
140
|
-
import { inputStyles } from '@brightspace-ui/core/components/inputs/input-styles.js';
|
141
|
-
|
142
|
-
class MyTextInputElem extends LitElement {
|
143
|
-
|
144
|
-
static get styles() {
|
145
|
-
return inputStyles;
|
146
|
-
}
|
147
|
-
|
148
|
-
render() {
|
149
|
-
return html`<input type="text" class="d2l-input">`;
|
150
|
-
}
|
151
|
-
|
152
|
-
}
|
153
|
-
customElements.define('d2l-my-text-input-elem', MyTextInputElem);
|
154
|
-
</script>
|
155
|
-
<d2l-my-text-input-elem></d2l-my-text-input-elem>
|
156
|
-
```
|
157
|
-
|
158
121
|
## Textarea Input [d2l-input-textarea]
|
159
122
|
|
160
123
|
The `<d2l-input-textarea>` is a wrapper around the native `<textarea>` element that provides auto-grow and validation behaviours. It's intended for inputting unformatted multi-line text.
|
@@ -163,23 +126,13 @@ The `<d2l-input-textarea>` is a wrapper around the native `<textarea>` element t
|
|
163
126
|
```html
|
164
127
|
<script type="module">
|
165
128
|
import '@brightspace-ui/core/components/inputs/input-textarea.js';
|
166
|
-
|
167
|
-
window.addEventListener('load', function () {
|
168
|
-
var input = document.querySelector('#textarea');
|
169
|
-
input.addEventListener('change', (e) => {
|
170
|
-
console.log('input-textarea change: ', input.value);
|
171
|
-
});
|
172
|
-
input.addEventListener('input', (e) => {
|
173
|
-
console.log('input-textarea input: ', input.value);
|
174
|
-
});
|
175
|
-
});
|
176
129
|
</script>
|
177
130
|
<style>
|
178
131
|
d2l-input-textarea {
|
179
132
|
width: 100%;
|
180
133
|
}
|
181
134
|
</style>
|
182
|
-
<d2l-input-textarea
|
135
|
+
<d2l-input-textarea label="Description"></d2l-input-textarea>
|
183
136
|
```
|
184
137
|
|
185
138
|
<!-- docs: start hidden content -->
|
@@ -187,15 +140,16 @@ The `<d2l-input-textarea>` is a wrapper around the native `<textarea>` element t
|
|
187
140
|
|
188
141
|
| Property | Type | Description |
|
189
142
|
|---|---|---|
|
143
|
+
| `label` | String, required | Label for the `textarea` |
|
190
144
|
| `aria-invalid` | String | Indicates that the `textarea` value is invalid |
|
191
145
|
| `description` | String | A description to be added to the `textarea` for accessibility |
|
192
146
|
| `disabled` | Boolean | Disables the `textarea` |
|
193
|
-
| `label` | String, required | Label for the `textarea` |
|
194
147
|
| `label-hidden` | Boolean | Hides the label visually (moves it to the `textarea`'s `aria-label` attribute) |
|
195
148
|
| `labelled-by` | String | HTML id of an element in the same shadow root which acts as the input's label |
|
196
149
|
| `max-rows` | Number, default: 11 | Maximum number of rows before scrolling. Less than 1 allows `textarea` to grow infinitely. |
|
197
150
|
| `maxlength` | Number | Imposes an upper character limit |
|
198
151
|
| `minlength` | Number | Imposes a lower character limit |
|
152
|
+
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
199
153
|
| `no-border` | Boolean | Hides the border |
|
200
154
|
| `no-padding` | Boolean | Removes left/right padding |
|
201
155
|
| `required` | Boolean | Indicates that a value is required |
|
@@ -204,7 +158,7 @@ The `<d2l-input-textarea>` is a wrapper around the native `<textarea>` element t
|
|
204
158
|
|
205
159
|
### Events
|
206
160
|
|
207
|
-
The
|
161
|
+
The `<d2l-input-textarea>` dispatches the `change` event when an alteration to the value is committed (typically after focus is lost) by the user. To be notified immediately of changes made by the user, use the `input` event.
|
208
162
|
|
209
163
|
```javascript
|
210
164
|
// dispatched when value changes are committed
|
@@ -235,29 +189,3 @@ To make your usage of `d2l-input-textarea` accessible, use the following propert
|
|
235
189
|
|
236
190
|
* `focus()`: Places focus in the `textarea`
|
237
191
|
* `select()`: Selects the contents of the `textarea`
|
238
|
-
|
239
|
-
## Applying styles to native textarea
|
240
|
-
|
241
|
-
Native `<textarea>` elements can be styled by importing `input-styles.js` into your LitElement and applying the `d2l-input` CSS class.
|
242
|
-
|
243
|
-
<!-- docs: demo code -->
|
244
|
-
```html
|
245
|
-
<script type="module">
|
246
|
-
import { html, LitElement } from 'lit';
|
247
|
-
import { inputStyles } from '@brightspace-ui/core/components/inputs/input-styles.js';
|
248
|
-
|
249
|
-
class MyTextareaInputElem extends LitElement {
|
250
|
-
static get styles() {
|
251
|
-
return inputStyles;
|
252
|
-
}
|
253
|
-
render() {
|
254
|
-
return html`
|
255
|
-
<textarea class="d2l-input">
|
256
|
-
</textarea>
|
257
|
-
`;
|
258
|
-
}
|
259
|
-
}
|
260
|
-
customElements.define('d2l-my-textarea-input-elem', MyTextareaInputElem);
|
261
|
-
</script>
|
262
|
-
<d2l-my-textarea-input-elem></d2l-my-textarea-input-elem>
|
263
|
-
```
|
@@ -151,3 +151,55 @@ To align related content below radio buttons, the `d2l-input-radio-spacer` eleme
|
|
151
151
|
</script>
|
152
152
|
<d2l-my-radio-spacer-elem></d2l-my-radio-spacer-elem>
|
153
153
|
```
|
154
|
+
|
155
|
+
## Text Input
|
156
|
+
|
157
|
+
Import `input-styles.js` and apply the `d2l-input` CSS class to the native `<input>`:
|
158
|
+
|
159
|
+
<!-- docs: demo code -->
|
160
|
+
```html
|
161
|
+
<script type="module">
|
162
|
+
import { html, LitElement } from 'lit';
|
163
|
+
import { inputStyles } from '@brightspace-ui/core/components/inputs/input-styles.js';
|
164
|
+
|
165
|
+
class MyTextInputElem extends LitElement {
|
166
|
+
|
167
|
+
static get styles() {
|
168
|
+
return inputStyles;
|
169
|
+
}
|
170
|
+
|
171
|
+
render() {
|
172
|
+
return html`<input type="text" class="d2l-input">`;
|
173
|
+
}
|
174
|
+
|
175
|
+
}
|
176
|
+
customElements.define('d2l-my-text-input-elem', MyTextInputElem);
|
177
|
+
</script>
|
178
|
+
<d2l-my-text-input-elem></d2l-my-text-input-elem>
|
179
|
+
```
|
180
|
+
|
181
|
+
## Textarea Input
|
182
|
+
|
183
|
+
Import `input-styles.js` and apply the `d2l-input` CSS class to the native `<textarea>`.
|
184
|
+
|
185
|
+
<!-- docs: demo code -->
|
186
|
+
```html
|
187
|
+
<script type="module">
|
188
|
+
import { html, LitElement } from 'lit';
|
189
|
+
import { inputStyles } from '@brightspace-ui/core/components/inputs/input-styles.js';
|
190
|
+
|
191
|
+
class MyTextareaInputElem extends LitElement {
|
192
|
+
static get styles() {
|
193
|
+
return inputStyles;
|
194
|
+
}
|
195
|
+
render() {
|
196
|
+
return html`
|
197
|
+
<textarea class="d2l-input">
|
198
|
+
</textarea>
|
199
|
+
`;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
customElements.define('d2l-my-textarea-input-elem', MyTextareaInputElem);
|
203
|
+
</script>
|
204
|
+
<d2l-my-textarea-input-elem></d2l-my-textarea-input-elem>
|
205
|
+
```
|
@@ -42,7 +42,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
42
42
|
*/
|
43
43
|
ariaInvalid: { type: String, attribute: 'aria-invalid' },
|
44
44
|
/**
|
45
|
-
* Specifies which types of values can be autofilled by the browser
|
45
|
+
* ADVANCED: Specifies which types of values can be autofilled by the browser
|
46
46
|
* @type {string}
|
47
47
|
*/
|
48
48
|
autocomplete: { type: String },
|
@@ -125,7 +125,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
125
125
|
*/
|
126
126
|
preventSubmit: { type: Boolean, attribute: 'prevent-submit' },
|
127
127
|
/**
|
128
|
-
* Makes the input read-only
|
128
|
+
* ADVANCED: Makes the input read-only
|
129
129
|
* @type {boolean}
|
130
130
|
*/
|
131
131
|
readonly: { type: Boolean },
|
@@ -140,7 +140,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
140
140
|
*/
|
141
141
|
size: { type: Number },
|
142
142
|
/**
|
143
|
-
* For number inputs, sets the step size
|
143
|
+
* ADVANCED: For number inputs, sets the step size
|
144
144
|
* @type {string}
|
145
145
|
*/
|
146
146
|
step: { type: String },
|
@@ -181,7 +181,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
181
181
|
*/
|
182
182
|
value: { type: String },
|
183
183
|
/**
|
184
|
-
* Alignment of the value text within the input
|
184
|
+
* ADVANCED: Alignment of the value text within the input
|
185
185
|
* @type {'start'|'end'}
|
186
186
|
*/
|
187
187
|
valueAlign: { attribute: 'value-align', type: String },
|
package/custom-elements.json
CHANGED
@@ -7242,7 +7242,7 @@
|
|
7242
7242
|
},
|
7243
7243
|
{
|
7244
7244
|
"name": "autocomplete",
|
7245
|
-
"description": "Specifies which types of values can be autofilled by the browser",
|
7245
|
+
"description": "ADVANCED: Specifies which types of values can be autofilled by the browser",
|
7246
7246
|
"type": "string"
|
7247
7247
|
},
|
7248
7248
|
{
|
@@ -7297,7 +7297,7 @@
|
|
7297
7297
|
},
|
7298
7298
|
{
|
7299
7299
|
"name": "step",
|
7300
|
-
"description": "For number inputs, sets the step size",
|
7300
|
+
"description": "ADVANCED: For number inputs, sets the step size",
|
7301
7301
|
"type": "string"
|
7302
7302
|
},
|
7303
7303
|
{
|
@@ -7347,7 +7347,7 @@
|
|
7347
7347
|
},
|
7348
7348
|
{
|
7349
7349
|
"name": "readonly",
|
7350
|
-
"description": "Makes the input read-only",
|
7350
|
+
"description": "ADVANCED: Makes the input read-only",
|
7351
7351
|
"type": "boolean",
|
7352
7352
|
"default": "false"
|
7353
7353
|
},
|
@@ -7365,7 +7365,7 @@
|
|
7365
7365
|
},
|
7366
7366
|
{
|
7367
7367
|
"name": "value-align",
|
7368
|
-
"description": "Alignment of the value text within the input",
|
7368
|
+
"description": "ADVANCED: Alignment of the value text within the input",
|
7369
7369
|
"type": "'start'|'end'",
|
7370
7370
|
"default": "\"start\""
|
7371
7371
|
},
|
@@ -7406,7 +7406,7 @@
|
|
7406
7406
|
{
|
7407
7407
|
"name": "autocomplete",
|
7408
7408
|
"attribute": "autocomplete",
|
7409
|
-
"description": "Specifies which types of values can be autofilled by the browser",
|
7409
|
+
"description": "ADVANCED: Specifies which types of values can be autofilled by the browser",
|
7410
7410
|
"type": "string"
|
7411
7411
|
},
|
7412
7412
|
{
|
@@ -7472,7 +7472,7 @@
|
|
7472
7472
|
{
|
7473
7473
|
"name": "step",
|
7474
7474
|
"attribute": "step",
|
7475
|
-
"description": "For number inputs, sets the step size",
|
7475
|
+
"description": "ADVANCED: For number inputs, sets the step size",
|
7476
7476
|
"type": "string"
|
7477
7477
|
},
|
7478
7478
|
{
|
@@ -7536,7 +7536,7 @@
|
|
7536
7536
|
{
|
7537
7537
|
"name": "readonly",
|
7538
7538
|
"attribute": "readonly",
|
7539
|
-
"description": "Makes the input read-only",
|
7539
|
+
"description": "ADVANCED: Makes the input read-only",
|
7540
7540
|
"type": "boolean",
|
7541
7541
|
"default": "false"
|
7542
7542
|
},
|
@@ -7557,7 +7557,7 @@
|
|
7557
7557
|
{
|
7558
7558
|
"name": "valueAlign",
|
7559
7559
|
"attribute": "value-align",
|
7560
|
-
"description": "Alignment of the value text within the input",
|
7560
|
+
"description": "ADVANCED: Alignment of the value text within the input",
|
7561
7561
|
"type": "'start'|'end'",
|
7562
7562
|
"default": "\"start\""
|
7563
7563
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.123.0",
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
5
5
|
"type": "module",
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|