@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4
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/.turbo/cache/013a48308b893dac-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
- package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
- package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
- package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
- package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
- package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
- package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
- package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
- package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
- package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
- package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
- package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
- package/.turbo/cache/691a74627ec57993-meta.json +1 -1
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
- package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
- package/.turbo/cache/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
- package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -1
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
- package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
- package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
- package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
- package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
- package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
- package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
- package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
- package/CHANGELOG.md +18 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.min.js +407 -113
- package/components/combobox/demo/index.min.js +407 -113
- package/components/combobox/dist/index.js +407 -113
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/demo/api.min.js +407 -113
- package/components/datepicker/demo/index.min.js +407 -113
- package/components/datepicker/dist/index.js +407 -113
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +166 -42
- package/components/dropdown/demo/index.min.js +166 -42
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +166 -42
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.md +37 -35
- package/components/input/demo/api.min.js +241 -71
- package/components/input/demo/index.min.js +241 -71
- package/components/input/dist/base-input.d.ts +157 -79
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +241 -71
- package/components/input/src/base-input.js +241 -71
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +39 -100
- package/components/select/demo/api.min.js +292 -169
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +292 -169
- package/components/select/dist/auro-select.d.ts +63 -50
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +287 -151
- package/components/select/src/auro-select.js +102 -102
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
|
@@ -2061,41 +2061,8 @@ class AuroFormValidation {
|
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Auro-input provides users a way to enter data into a text field.
|
|
2063
2063
|
*
|
|
2064
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
2065
|
-
* @attr {String} autocapitalize - An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
2066
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2067
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
2068
2064
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
2069
2065
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
2070
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
2071
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
2072
|
-
* @attr {Boolean} icon - 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.
|
|
2073
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
2074
|
-
* @attr {String} lang - defines the language of an element.
|
|
2075
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2076
|
-
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2077
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2078
|
-
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
2079
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
2080
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
2081
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
2082
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
2083
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
2084
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
2085
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
|
|
2086
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
2087
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
2088
|
-
* @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
|
|
2089
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
2090
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
2091
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
2092
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
2093
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
2094
|
-
* @attr {String} spellcheck - An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
2095
|
-
* @attr {String} type - Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
2096
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
2097
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
2098
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2099
2066
|
*
|
|
2100
2067
|
* @slot helptext - Sets the help text displayed below the input.
|
|
2101
2068
|
* @slot label - Sets the label text for the input.
|
|
@@ -2187,69 +2154,272 @@ class BaseInput extends r {
|
|
|
2187
2154
|
.substring(idSubstrStart, idSubstrEnd);
|
|
2188
2155
|
}
|
|
2189
2156
|
|
|
2190
|
-
// function to define props used within the scope of this
|
|
2157
|
+
// function to define props used within the scope of this componentstatic
|
|
2191
2158
|
static get properties() {
|
|
2192
2159
|
return {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* If set, the label will remain fixed in the active position.
|
|
2163
|
+
*/
|
|
2164
|
+
activeLabel: {
|
|
2165
|
+
type: Boolean,
|
|
2166
|
+
reflect: true
|
|
2167
|
+
},
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
2171
|
+
*/
|
|
2172
|
+
autocapitalize: {
|
|
2173
|
+
type: String
|
|
2174
|
+
},
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2178
|
+
*/
|
|
2179
|
+
autocomplete: {
|
|
2200
2180
|
type: String,
|
|
2201
2181
|
reflect: true
|
|
2202
2182
|
},
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
2186
|
+
*/
|
|
2187
|
+
autocorrect: {
|
|
2188
|
+
type: String
|
|
2189
|
+
},
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* If set, disables the input.
|
|
2193
|
+
*/
|
|
2194
|
+
disabled: {
|
|
2195
|
+
type: Boolean
|
|
2196
|
+
},
|
|
2197
|
+
|
|
2198
|
+
error: {
|
|
2211
2199
|
type: String,
|
|
2212
2200
|
reflect: true
|
|
2213
2201
|
},
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Contains the help text message for the current validity error.
|
|
2205
|
+
*/
|
|
2206
|
+
errorMessage: {
|
|
2207
|
+
type: String
|
|
2208
|
+
},
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* 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.
|
|
2212
|
+
*/
|
|
2213
|
+
icon: {
|
|
2214
|
+
type: Boolean
|
|
2215
|
+
},
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Sets the unique ID of the element.
|
|
2219
|
+
*/
|
|
2220
|
+
id: {
|
|
2221
|
+
type: String
|
|
2222
|
+
},
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Defines the language of an element.
|
|
2226
|
+
*/
|
|
2227
|
+
lang: {
|
|
2228
|
+
type: String
|
|
2229
|
+
},
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2233
|
+
*/
|
|
2234
|
+
max: {
|
|
2235
|
+
type: String
|
|
2236
|
+
},
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2240
|
+
*/
|
|
2241
|
+
maxLength: {
|
|
2242
|
+
type: Number
|
|
2243
|
+
},
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2247
|
+
*/
|
|
2248
|
+
min: {
|
|
2249
|
+
type: String
|
|
2250
|
+
},
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
2254
|
+
*/
|
|
2255
|
+
minLength: {
|
|
2256
|
+
type: Number
|
|
2257
|
+
},
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* Populates the `name` attribute on the input.
|
|
2261
|
+
*/
|
|
2262
|
+
name: {
|
|
2263
|
+
type: String
|
|
2264
|
+
},
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* If set, disables auto-validation on blur.
|
|
2268
|
+
*/
|
|
2269
|
+
noValidate: {
|
|
2270
|
+
type: Boolean
|
|
2271
|
+
},
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Specifies a regular expression the form control's value should match.
|
|
2275
|
+
*/
|
|
2276
|
+
pattern: {
|
|
2277
|
+
type: String,
|
|
2217
2278
|
reflect: true
|
|
2218
2279
|
},
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
2283
|
+
*/
|
|
2284
|
+
placeholder: {
|
|
2285
|
+
type: String
|
|
2286
|
+
},
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* Makes the input read-only, but can be set programmatically.
|
|
2290
|
+
*/
|
|
2291
|
+
readonly: {
|
|
2292
|
+
type: Boolean
|
|
2293
|
+
},
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
2297
|
+
*/
|
|
2298
|
+
required: {
|
|
2299
|
+
type: Boolean
|
|
2300
|
+
},
|
|
2223
2301
|
|
|
2224
2302
|
/**
|
|
2225
2303
|
* @ignore
|
|
2226
2304
|
*/
|
|
2227
|
-
showPassword:
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2305
|
+
showPassword: {
|
|
2306
|
+
state: true
|
|
2307
|
+
},
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Sets a custom help text message to display for all validityStates.
|
|
2311
|
+
*/
|
|
2312
|
+
setCustomValidity: {
|
|
2313
|
+
type: String
|
|
2314
|
+
},
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Custom help text message to display when validity = `badInput`.
|
|
2318
|
+
*/
|
|
2319
|
+
setCustomValidityBadInput: {
|
|
2320
|
+
type: String
|
|
2321
|
+
},
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Custom help text message to display when validity = `customError`.
|
|
2325
|
+
*/
|
|
2326
|
+
setCustomValidityCustomError: {
|
|
2327
|
+
type: String
|
|
2328
|
+
},
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
2332
|
+
*/
|
|
2333
|
+
setCustomValidityForType: {
|
|
2334
|
+
type: String
|
|
2335
|
+
},
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
2339
|
+
*/
|
|
2340
|
+
setCustomValidityRangeOverflow: {
|
|
2341
|
+
type: String
|
|
2342
|
+
},
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
2346
|
+
*/
|
|
2347
|
+
setCustomValidityRangeUnderflow: {
|
|
2348
|
+
type: String
|
|
2349
|
+
},
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
2353
|
+
*/
|
|
2354
|
+
setCustomValidityTooLong: {
|
|
2355
|
+
type: String
|
|
2356
|
+
},
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
2360
|
+
*/
|
|
2361
|
+
setCustomValidityTooShort: {
|
|
2362
|
+
type: String
|
|
2363
|
+
},
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
2367
|
+
*/
|
|
2368
|
+
setCustomValidityValueMissing: {
|
|
2369
|
+
type: String
|
|
2370
|
+
},
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* Custom help text message for email type validity.
|
|
2374
|
+
*/
|
|
2375
|
+
customValidityTypeEmail: {
|
|
2376
|
+
type: String
|
|
2377
|
+
},
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
2381
|
+
*/
|
|
2382
|
+
spellcheck: {
|
|
2383
|
+
type: String
|
|
2384
|
+
},
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
2388
|
+
*/
|
|
2389
|
+
type: {
|
|
2231
2390
|
type: String,
|
|
2232
2391
|
reflect: true
|
|
2233
2392
|
},
|
|
2234
|
-
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2396
|
+
*/
|
|
2397
|
+
value: {
|
|
2398
|
+
type: String
|
|
2399
|
+
},
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Sets validation mode to re-eval with each input.
|
|
2403
|
+
*/
|
|
2404
|
+
validateOnInput: {
|
|
2405
|
+
type: Boolean
|
|
2406
|
+
},
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* Specifies the `validityState` this element is in.
|
|
2410
|
+
*/
|
|
2411
|
+
validity: {
|
|
2235
2412
|
type: String,
|
|
2236
2413
|
reflect: true
|
|
2237
|
-
}
|
|
2238
|
-
setCustomValidity: { type: String },
|
|
2239
|
-
setCustomValidityCustomError: { type: String },
|
|
2240
|
-
setCustomValidityValueMissing: { type: String },
|
|
2241
|
-
setCustomValidityPatternMismatch: { type: String },
|
|
2242
|
-
setCustomValidityTooShort: { type: String },
|
|
2243
|
-
setCustomValidityTooLong: { type: String },
|
|
2244
|
-
setCustomValidityRangeOverflow: { type: String },
|
|
2245
|
-
setCustomValidityRangeUnderflow: { type: String }
|
|
2414
|
+
}
|
|
2246
2415
|
};
|
|
2247
2416
|
}
|
|
2248
2417
|
|
|
2418
|
+
|
|
2249
2419
|
static get styles() {
|
|
2250
2420
|
return [
|
|
2251
|
-
i$2`${styleCss$3}`,
|
|
2252
2421
|
i$2`${colorCss$3}`,
|
|
2422
|
+
i$2`${styleCss$3}`,
|
|
2253
2423
|
i$2`${tokensCss$3}`
|
|
2254
2424
|
];
|
|
2255
2425
|
}
|