@aurodesignsystem/auro-formkit 2.0.0-beta.2 → 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 -0
- 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/0cea4c1f34f3683b-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 -0
- package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -0
- 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 -0
- package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -0
- package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
- 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 -0
- package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
- 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 -0
- 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 -0
- package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -0
- 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 -0
- package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
- 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 -0
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -0
- 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 -0
- 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/f817d89688cefca8.tar.zst +0 -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 +44 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/demo/api.md +4 -2
- package/components/checkbox/demo/api.min.js +31 -36
- package/components/checkbox/demo/index.min.js +31 -36
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/index.js +31 -36
- package/components/checkbox/src/auro-checkbox-group.js +2 -2
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.md +17 -15
- package/components/combobox/demo/api.min.js +500 -218
- package/components/combobox/demo/index.min.js +500 -218
- package/components/combobox/dist/auro-combobox.d.ts +11 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +499 -217
- package/components/combobox/src/auro-combobox.js +22 -20
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/.turbo/turbo-build.log +9 -8
- package/components/datepicker/demo/api.md +107 -87
- package/components/datepicker/demo/api.min.js +492 -232
- package/components/datepicker/demo/index.min.js +492 -232
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -13
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +492 -232
- package/components/datepicker/src/auro-datepicker.js +15 -35
- 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$colon$sass.log +51 -1
- package/components/input/.turbo/turbo-build.log +56 -6
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-sass$colon$render.log +6 -0
- package/components/input/demo/api.md +83 -81
- package/components/input/demo/api.min.js +282 -121
- package/components/input/demo/index.md +6 -6
- package/components/input/demo/index.min.js +282 -121
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +155 -84
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +282 -121
- package/components/input/dist/styles/mixins-css.d.ts +3 -0
- package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +252 -85
- package/components/input/src/styles/borders.scss +3 -19
- package/components/input/src/styles/color.css +1 -2
- package/components/input/src/styles/color.scss +3 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +1 -1
- package/components/input/src/styles/input.scss +4 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +1 -1
- package/components/input/src/styles/label.scss +4 -7
- package/components/input/src/styles/mixins-css.js +2 -0
- package/components/input/src/styles/mixins.css +1 -0
- package/components/input/src/styles/mixins.scss +45 -0
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +13 -12
- package/components/input/src/styles/notificationIcons.scss +17 -25
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +15 -17
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/src/auro-menu.js +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/demo/api.md +3 -1
- package/components/radio/demo/api.min.js +30 -35
- package/components/radio/demo/index.min.js +30 -35
- package/components/radio/dist/index.js +30 -35
- package/components/radio/src/auro-radio-group.js +1 -1
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +45 -110
- package/components/select/demo/api.min.js +320 -224
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +320 -220
- package/components/select/dist/auro-select.d.ts +64 -51
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +314 -201
- package/components/select/src/auro-select.js +100 -118
- 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/packages/form-validation/src/validation.js +29 -34
- package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
- package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
- package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
- package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/47ba2b5ebdb579e9-meta.json +0 -1
- package/.turbo/cache/47ba2b5ebdb579e9.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
- package/.turbo/cache/6ef81cf9a66f982a.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/8b735250fa5a62bf-meta.json +0 -1
- package/.turbo/cache/8b735250fa5a62bf.tar.zst +0 -0
- package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
- package/.turbo/cache/9154e8fe6ab767ea.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/a49cc58242467fdc-meta.json +0 -1
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
- package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
- package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
- package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
- package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
- package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
- package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
- package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
- package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
- package/.turbo/cache/d716cb7a08152beb-meta.json +0 -1
- package/.turbo/cache/d716cb7a08152beb.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
- /package/.turbo/cache/{0a2b0a4df8a0443f.tar.zst → 8e79bd5c3a16a72e.tar.zst} +0 -0
|
@@ -1,42 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auro-input provides users a way to enter data into a text field.
|
|
3
3
|
*
|
|
4
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
5
|
-
* @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]
|
|
6
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
7
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
8
4
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
9
5
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
10
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
11
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
12
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
13
|
-
* @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.
|
|
14
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15
|
-
* @attr {String} lang - defines the language of an element.
|
|
16
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
17
|
-
* @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.
|
|
18
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
19
|
-
* @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`.
|
|
20
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
21
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
22
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
23
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
24
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
25
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
26
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
27
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
28
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
29
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
30
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
31
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
32
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
33
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
34
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
35
|
-
* @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`.
|
|
36
|
-
* @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`.
|
|
37
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
38
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
39
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
40
6
|
*
|
|
41
7
|
* @slot helptext - Sets the help text displayed below the input.
|
|
42
8
|
* @slot label - Sets the label text for the input.
|
|
@@ -51,69 +17,126 @@
|
|
|
51
17
|
*/
|
|
52
18
|
export default class BaseInput extends LitElement {
|
|
53
19
|
static get properties(): {
|
|
54
|
-
|
|
55
|
-
|
|
20
|
+
/**
|
|
21
|
+
* If set, the label will remain fixed in the active position.
|
|
22
|
+
*/
|
|
23
|
+
activeLabel: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
reflect: boolean;
|
|
56
26
|
};
|
|
57
|
-
|
|
27
|
+
/**
|
|
28
|
+
* 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]
|
|
29
|
+
*/
|
|
30
|
+
autocapitalize: {
|
|
58
31
|
type: StringConstructor;
|
|
59
32
|
};
|
|
60
|
-
|
|
33
|
+
/**
|
|
34
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
35
|
+
*/
|
|
36
|
+
autocomplete: {
|
|
61
37
|
type: StringConstructor;
|
|
62
38
|
reflect: boolean;
|
|
63
39
|
};
|
|
64
|
-
|
|
40
|
+
/**
|
|
41
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
42
|
+
*/
|
|
43
|
+
autocorrect: {
|
|
65
44
|
type: StringConstructor;
|
|
66
45
|
};
|
|
67
|
-
|
|
68
|
-
|
|
46
|
+
/**
|
|
47
|
+
* If set, disables the input.
|
|
48
|
+
*/
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
69
51
|
};
|
|
70
|
-
|
|
52
|
+
error: {
|
|
71
53
|
type: StringConstructor;
|
|
72
54
|
reflect: boolean;
|
|
73
55
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
type:
|
|
79
|
-
};
|
|
80
|
-
required: {
|
|
81
|
-
type: BooleanConstructor;
|
|
56
|
+
/**
|
|
57
|
+
* Contains the help text message for the current validity error.
|
|
58
|
+
*/
|
|
59
|
+
errorMessage: {
|
|
60
|
+
type: StringConstructor;
|
|
82
61
|
};
|
|
83
|
-
|
|
62
|
+
/**
|
|
63
|
+
* 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.
|
|
64
|
+
*/
|
|
65
|
+
icon: {
|
|
84
66
|
type: BooleanConstructor;
|
|
85
67
|
};
|
|
86
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Sets the unique ID of the element.
|
|
70
|
+
*/
|
|
71
|
+
id: {
|
|
87
72
|
type: StringConstructor;
|
|
88
73
|
};
|
|
89
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Defines the language of an element.
|
|
76
|
+
*/
|
|
77
|
+
lang: {
|
|
90
78
|
type: StringConstructor;
|
|
91
79
|
};
|
|
92
|
-
|
|
80
|
+
/**
|
|
81
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
82
|
+
*/
|
|
83
|
+
max: {
|
|
93
84
|
type: StringConstructor;
|
|
94
85
|
};
|
|
95
|
-
|
|
86
|
+
/**
|
|
87
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
88
|
+
*/
|
|
89
|
+
maxLength: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
94
|
+
*/
|
|
95
|
+
min: {
|
|
96
96
|
type: StringConstructor;
|
|
97
|
-
reflect: boolean;
|
|
98
97
|
};
|
|
99
|
-
|
|
98
|
+
/**
|
|
99
|
+
* 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`.
|
|
100
|
+
*/
|
|
101
|
+
minLength: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Populates the `name` attribute on the input.
|
|
106
|
+
*/
|
|
107
|
+
name: {
|
|
100
108
|
type: StringConstructor;
|
|
101
109
|
};
|
|
102
|
-
|
|
110
|
+
/**
|
|
111
|
+
* If set, disables auto-validation on blur.
|
|
112
|
+
*/
|
|
113
|
+
noValidate: {
|
|
103
114
|
type: BooleanConstructor;
|
|
104
|
-
reflect: boolean;
|
|
105
115
|
};
|
|
106
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Specifies a regular expression the form control's value should match.
|
|
118
|
+
*/
|
|
119
|
+
pattern: {
|
|
107
120
|
type: StringConstructor;
|
|
121
|
+
reflect: boolean;
|
|
108
122
|
};
|
|
109
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
125
|
+
*/
|
|
126
|
+
placeholder: {
|
|
110
127
|
type: StringConstructor;
|
|
111
128
|
};
|
|
112
|
-
|
|
113
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Makes the input read-only, but can be set programmatically.
|
|
131
|
+
*/
|
|
132
|
+
readonly: {
|
|
133
|
+
type: BooleanConstructor;
|
|
114
134
|
};
|
|
115
|
-
|
|
116
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
137
|
+
*/
|
|
138
|
+
required: {
|
|
139
|
+
type: BooleanConstructor;
|
|
117
140
|
};
|
|
118
141
|
/**
|
|
119
142
|
* @ignore
|
|
@@ -121,49 +144,97 @@ export default class BaseInput extends LitElement {
|
|
|
121
144
|
showPassword: {
|
|
122
145
|
state: boolean;
|
|
123
146
|
};
|
|
124
|
-
|
|
125
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Sets a custom help text message to display for all validityStates.
|
|
149
|
+
*/
|
|
150
|
+
setCustomValidity: {
|
|
151
|
+
type: StringConstructor;
|
|
126
152
|
};
|
|
127
|
-
|
|
128
|
-
|
|
153
|
+
/**
|
|
154
|
+
* Custom help text message to display when validity = `badInput`.
|
|
155
|
+
*/
|
|
156
|
+
setCustomValidityBadInput: {
|
|
157
|
+
type: StringConstructor;
|
|
129
158
|
};
|
|
130
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Custom help text message to display when validity = `customError`.
|
|
161
|
+
*/
|
|
162
|
+
setCustomValidityCustomError: {
|
|
131
163
|
type: StringConstructor;
|
|
132
|
-
reflect: boolean;
|
|
133
164
|
};
|
|
134
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
167
|
+
*/
|
|
168
|
+
setCustomValidityForType: {
|
|
135
169
|
type: StringConstructor;
|
|
136
170
|
};
|
|
137
|
-
|
|
171
|
+
/**
|
|
172
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
173
|
+
*/
|
|
174
|
+
setCustomValidityRangeOverflow: {
|
|
138
175
|
type: StringConstructor;
|
|
139
|
-
reflect: boolean;
|
|
140
176
|
};
|
|
141
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
179
|
+
*/
|
|
180
|
+
setCustomValidityRangeUnderflow: {
|
|
142
181
|
type: StringConstructor;
|
|
143
182
|
};
|
|
144
|
-
|
|
183
|
+
/**
|
|
184
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
185
|
+
*/
|
|
186
|
+
setCustomValidityTooLong: {
|
|
145
187
|
type: StringConstructor;
|
|
146
188
|
};
|
|
147
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
191
|
+
*/
|
|
192
|
+
setCustomValidityTooShort: {
|
|
148
193
|
type: StringConstructor;
|
|
149
194
|
};
|
|
150
|
-
|
|
195
|
+
/**
|
|
196
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
197
|
+
*/
|
|
198
|
+
setCustomValidityValueMissing: {
|
|
151
199
|
type: StringConstructor;
|
|
152
200
|
};
|
|
153
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Custom help text message for email type validity.
|
|
203
|
+
*/
|
|
204
|
+
customValidityTypeEmail: {
|
|
154
205
|
type: StringConstructor;
|
|
155
206
|
};
|
|
156
|
-
|
|
207
|
+
/**
|
|
208
|
+
* 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`.
|
|
209
|
+
*/
|
|
210
|
+
spellcheck: {
|
|
157
211
|
type: StringConstructor;
|
|
158
212
|
};
|
|
159
|
-
|
|
213
|
+
/**
|
|
214
|
+
* 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`.
|
|
215
|
+
*/
|
|
216
|
+
type: {
|
|
160
217
|
type: StringConstructor;
|
|
218
|
+
reflect: boolean;
|
|
161
219
|
};
|
|
162
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
222
|
+
*/
|
|
223
|
+
value: {
|
|
163
224
|
type: StringConstructor;
|
|
164
225
|
};
|
|
165
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Sets validation mode to re-eval with each input.
|
|
228
|
+
*/
|
|
229
|
+
validateOnInput: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Specifies the `validityState` this element is in.
|
|
234
|
+
*/
|
|
235
|
+
validity: {
|
|
166
236
|
type: StringConstructor;
|
|
237
|
+
reflect: boolean;
|
|
167
238
|
};
|
|
168
239
|
};
|
|
169
240
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -336,7 +407,7 @@ export default class BaseInput extends LitElement {
|
|
|
336
407
|
* @returns {void}
|
|
337
408
|
*/
|
|
338
409
|
private processCreditCard;
|
|
339
|
-
|
|
410
|
+
errorMessage: any;
|
|
340
411
|
/**
|
|
341
412
|
* Function to support credit-card feature type.
|
|
342
413
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../src/base-input.js"],"names":[],"mappings":"AAoBA
|
|
1
|
+
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../src/base-input.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;GAgBG;AAEH;IA+EE;QAGI;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;;;;QAUH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;MAMN;IAGD,+CAMC;IArVC,cAAiB;IACjB,kBAAqB;IACrB,kBAAqB;IACrB,oBAAuB;IACvB,SAAoB;IACpB,SAAoB;IACpB,eAA0B;IAC1B,eAA0B;IAC1B,qBAAwB;IACxB,iCAAyC;IAG3C;;;;OAIG;IACH,wBAsDC;IArDC,+BAA0C;IAC1C,mBAA8B;IAC9B,kBAAyB;IACzB,2BAAmC;IACnC,kBAAqB;IACrB,cAAuC;IAEvC,4BASC;IAED,yBAQC;IAED,8BAMC;IAED;;;OAGG;IACH,iCAIC;IAMD,iBAEwC;IAwZ1C,qBAwEC;IAlEC,+BAA0D;IAC1D,+BAA0D;IAIxD,6BAAqD;IAmC7C,uBAA0D;IA4BtE;;;;OAIG;IACH,2BAHW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GACd,IAAI,CA6DhB;IArDG,iBAAwB;IAuD5B;;;OAGG;IACH,2BAkBC;IAED;;;OAGG;IACH,6BAMC;IAED;;;OAGG;IACH,sBAMC;IAED;;;;OAIG;IACH,cAEC;IAED;;;;;OAKG;IACH,sBAIC;IAED;;;;OAIG;IACH,2BAUC;IAED;;;;OAIG;IACH,yBAOC;IALC,cAAe;IAOjB;;;OAGG;IACH,oBA0BC;IAED;;;;OAIG;IACH,sBAWC;IAED;;;;OAIG;IACH,mBAMC;IAED;;;;;OAKG;IACH,yBAYC;IAED;;;OAGG;IACH,YAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;;OAIG;IACH,6BAYC;IAVG,sBAAuB;IAY3B;;;;;OAKG;IACH,qBAMC;IAED;;;;;OAKG;IACH,oBAwBC;IAED;;;;OAIG;IACH,gCAGC;IAED;;;;OAIG;IACH,uBAkBC;IAED;;;;OAIG;IACH,wBAQC;IAED;;;;OAIG;IACH,2BAQC;IAKD;;;;OAIG;IACH,0BAWC;IALC,kBAAqC;IAOvC;;;;OAIG;IACH,oCAqFC;CACF;2BAtkC+B,KAAK;+BAUN,+BAA+B"}
|