@aurodesignsystem/auro-formkit 1.6.0-beta.9 → 2.0.0-beta.10
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/026e4d886ba97e63-meta.json +1 -0
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +1 -0
- package/.turbo/cache/080ca6155e637d5d.tar.zst +0 -0
- package/.turbo/cache/0b115e30ff606299-meta.json +1 -0
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -0
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -0
- package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +1 -0
- package/.turbo/cache/1c630fb3411e4a41.tar.zst +0 -0
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +1 -0
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -0
- package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +1 -0
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +1 -0
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -0
- package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +1 -0
- package/.turbo/cache/43f5206cc4e69b44.tar.zst +0 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -0
- package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
- package/.turbo/cache/4a85ec226b585fd5-meta.json +1 -0
- package/.turbo/cache/4a85ec226b585fd5.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -0
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/50a29c70b93c57dd-meta.json +1 -0
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -0
- package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +1 -0
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +1 -0
- package/.turbo/cache/5c06332cf9f132da.tar.zst +0 -0
- package/.turbo/cache/5e613afc6868d0e2-meta.json +1 -0
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -0
- package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -0
- package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +1 -0
- package/.turbo/cache/639dac15b979bedc.tar.zst +0 -0
- package/.turbo/cache/664c2e08614fd212-meta.json +1 -0
- package/.turbo/cache/664c2e08614fd212.tar.zst +0 -0
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +1 -0
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +1 -0
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -0
- package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -0
- package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -0
- package/.turbo/cache/7c9ca6163e61285c.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +1 -0
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +1 -0
- package/.turbo/cache/8af27c076dc010c3.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -0
- package/.turbo/cache/8bb856bd31b5b479.tar.zst +0 -0
- package/.turbo/cache/953c8216249d3509-meta.json +1 -0
- package/.turbo/cache/953c8216249d3509.tar.zst +0 -0
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +1 -0
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -0
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +1 -0
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +1 -0
- package/.turbo/cache/b22ca87b2f7f9cc2.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -0
- package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +1 -0
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +1 -0
- package/.turbo/cache/c2b51643f886a493.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -0
- package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -0
- package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
- package/.turbo/cache/c74d369a0475b124-meta.json +1 -0
- package/.turbo/cache/c74d369a0475b124.tar.zst +0 -0
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +1 -0
- package/.turbo/cache/c7f5a276ddb73cf7.tar.zst +0 -0
- package/.turbo/cache/c96933d40404e4c8-meta.json +1 -0
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -0
- package/.turbo/cache/d775555355d6b8fc.tar.zst +0 -0
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -0
- package/.turbo/cache/d7c3007be148d2a1.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -0
- package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +1 -0
- package/.turbo/cache/eb1dbe885532c1dc.tar.zst +0 -0
- package/.turbo/cache/f1f6744948f1b18f-meta.json +1 -0
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +1 -0
- package/.turbo/cache/feefbc25d550c1cd.tar.zst +0 -0
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +1 -0
- package/.turbo/cache/ff4dbfffc29255ab.tar.zst +0 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +175 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +23 -21
- package/components/checkbox/.turbo/turbo-bundler.log +4 -4
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/checkbox/.turbo/turbo-types.log +1 -1
- package/components/checkbox/README.md +26 -34
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +120 -61
- package/components/checkbox/demo/api.min.js +261 -90
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +236 -90
- package/components/checkbox/dist/auro-checkbox-group.d.ts +41 -17
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +25 -11
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +236 -90
- package/components/checkbox/package.json +1 -1
- package/components/checkbox/src/auro-checkbox-group.js +64 -23
- package/components/checkbox/src/auro-checkbox.js +38 -12
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +25 -23
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/combobox/README.md +21 -26
- package/components/combobox/demo/api.js +4 -2
- package/components/combobox/demo/api.md +77 -16
- package/components/combobox/demo/api.min.js +890 -447
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +881 -447
- package/components/combobox/dist/auro-combobox.d.ts +16 -5
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.js +874 -408
- package/components/combobox/dist/inputVersion.d.ts +3 -0
- package/components/combobox/dist/inputVersion.d.ts.map +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
- package/components/combobox/node_modules/chalk/package.json +3 -3
- package/components/combobox/node_modules/chalk/readme.md +25 -53
- package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
- package/components/combobox/package.json +8 -8
- package/components/combobox/src/auro-combobox.js +85 -75
- package/components/combobox/src/dropdownVersion.js +1 -0
- package/components/combobox/src/inputVersion.js +1 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +179 -7
- package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
- package/components/counter/.turbo/turbo-build.log +288 -14
- package/components/counter/.turbo/turbo-bundler.log +4 -4
- package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/counter/.turbo/turbo-sass$colon$render.log +39 -3
- package/components/counter/.turbo/turbo-types.log +1 -1
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +98 -1016
- package/components/counter/demo/api.min.js +1670 -32
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +194 -0
- package/components/counter/demo/index.min.js +1702 -19
- package/components/counter/dist/auro-counter-button.d.ts +13 -0
- package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
- package/components/counter/dist/auro-counter-group.d.ts +77 -6
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +78 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/dropdownVersion.d.ts +3 -0
- package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +1670 -32
- package/components/counter/dist/styles/color-css.d.ts +3 -0
- package/components/counter/dist/styles/color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/counter/package.json +9 -3
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +150 -21
- package/components/counter/src/auro-counter.js +272 -12
- package/components/counter/src/dropdownVersion.js +1 -0
- package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/counter/src/iconVersion.js +1 -0
- package/components/counter/src/index.js +1 -1
- package/components/counter/src/styles/color-css.js +2 -0
- package/components/counter/src/styles/color.css +25 -0
- package/components/counter/src/styles/color.scss +44 -0
- package/components/counter/src/styles/counter-button-color-css.js +2 -0
- package/components/counter/src/styles/counter-button-color.css +14 -0
- package/components/counter/src/styles/counter-button-color.scss +29 -0
- package/components/counter/src/styles/counter-button-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens.css +7 -0
- package/components/counter/src/styles/counter-button-tokens.scss +9 -0
- package/components/counter/src/styles/counter-button.css +187 -0
- package/components/counter/src/styles/counter-button.scss +83 -0
- package/components/counter/src/styles/counter-group-color-css.js +2 -0
- package/components/counter/src/styles/counter-group-color.css +4 -0
- package/components/counter/src/styles/counter-group-color.scss +19 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +13 -1
- package/components/counter/src/styles/counter-group.scss +14 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +43 -1
- package/components/counter/src/styles/style.scss +48 -2
- package/components/counter/src/styles/tokens-css.js +2 -0
- package/components/counter/src/styles/tokens.css +11 -0
- package/components/counter/src/styles/tokens.scss +24 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
- package/components/datepicker/.turbo/turbo-build.log +62 -59
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
- package/components/datepicker/README.md +21 -26
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +216 -125
- package/components/datepicker/demo/api.min.js +1111 -598
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +1102 -598
- package/components/datepicker/dist/auro-datepicker.d.ts +94 -80
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +1102 -598
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/package.json +4 -4
- package/components/datepicker/src/auro-datepicker.js +154 -106
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- package/components/datepicker/src/popoverVersion.js +1 -1
- package/components/datepicker/src/styles/color-cell-css.js +1 -1
- package/components/datepicker/src/styles/color-cell.css +1 -1
- package/components/datepicker/src/styles/color-cell.scss +1 -1
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
- package/components/dropdown/.turbo/turbo-build$colon$version.log +1 -1
- package/components/dropdown/.turbo/turbo-build.log +19 -20
- package/components/dropdown/.turbo/turbo-bundler.log +4 -4
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/dropdown/.turbo/turbo-types.log +1 -1
- package/components/dropdown/README.md +18 -26
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +241 -105
- package/components/dropdown/demo/index.min.js +241 -105
- 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/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +241 -105
- package/components/dropdown/package.json +2 -2
- package/components/dropdown/src/auro-dropdown.js +156 -41
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/iconVersion.js +1 -1
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +0 -5
- package/components/dropdown/src/styles/bibStyles.scss +0 -7
- package/components/dropdown/src/styles/color-css.js +1 -1
- package/components/dropdown/src/styles/color.css +6 -7
- package/components/dropdown/src/styles/color.scss +7 -7
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +5 -0
- package/components/dropdown/src/styles/style.scss +6 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
- package/components/form/.turbo/turbo-build$colon$version.log +1 -1
- package/components/form/.turbo/turbo-build.log +17 -18
- package/components/form/.turbo/turbo-bundler.log +4 -4
- package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/form/.turbo/turbo-types.log +1 -1
- package/components/form/README.md +18 -26
- package/components/form/demo/api.min.js +4 -4
- package/components/form/demo/index.min.js +4 -4
- package/components/form/dist/index.js +4 -4
- package/components/form/package.json +1 -1
- package/components/input/.turbo/turbo-build$colon$sass.log +68 -18
- package/components/input/.turbo/turbo-build$colon$version.log +1 -1
- package/components/input/.turbo/turbo-build.log +90 -40
- package/components/input/.turbo/turbo-bundler.log +4 -4
- package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/input/.turbo/turbo-sass$colon$render.log +15 -9
- package/components/input/.turbo/turbo-types.log +1 -1
- package/components/input/README.md +18 -28
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +234 -351
- package/components/input/demo/api.min.js +428 -178
- package/components/input/demo/index.md +11 -61
- package/components/input/demo/index.min.js +416 -175
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +158 -97
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +416 -175
- 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/package.json +3 -3
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +272 -111
- package/components/input/src/buttonVersion.js +1 -1
- package/components/input/src/iconVersion.js +1 -1
- 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 +14 -1
- package/components/input/src/styles/input.scss +25 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +4 -4
- package/components/input/src/styles/label.scss +4 -8
- 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 -5
- package/components/input/src/styles/notificationIcons.scss +17 -11
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +31 -13
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
- package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
- package/components/menu/.turbo/turbo-build.log +20 -21
- package/components/menu/.turbo/turbo-bundler.log +4 -4
- package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/menu/.turbo/turbo-types.log +1 -1
- package/components/menu/README.md +18 -26
- package/components/menu/demo/api.md +1 -5
- package/components/menu/demo/api.min.js +12 -44
- package/components/menu/demo/index.min.js +12 -44
- package/components/menu/dist/auro-menu.d.ts +1 -5
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/auro-menuoption.d.ts +0 -1
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +12 -44
- package/components/menu/package.json +2 -2
- package/components/menu/src/auro-menu.js +1 -33
- package/components/menu/src/auro-menuoption.js +1 -2
- package/components/menu/src/iconVersion.js +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +26 -24
- package/components/radio/.turbo/turbo-bundler.log +4 -4
- package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/radio/.turbo/turbo-types.log +1 -1
- package/components/radio/README.md +18 -26
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.js +2 -0
- package/components/radio/demo/api.md +60 -4
- package/components/radio/demo/api.min.js +159 -62
- package/components/radio/demo/index.min.js +150 -62
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -1
- package/components/radio/dist/index.js +150 -62
- package/components/radio/package.json +1 -1
- package/components/radio/src/auro-radio-group.js +6 -6
- package/components/radio/src/auro-radio.js +9 -0
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +37 -37
- package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
- package/components/select/README.md +21 -42
- package/components/select/demo/api.js +6 -2
- package/components/select/demo/api.md +165 -163
- package/components/select/demo/api.min.js +524 -337
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +504 -333
- package/components/select/dist/auro-select.d.ts +65 -48
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/dropdownVersion.d.ts +3 -0
- package/components/select/dist/dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.js +494 -278
- package/components/select/package.json +3 -3
- package/components/select/src/auro-select.js +105 -116
- package/components/select/src/dropdownVersion.js +1 -0
- 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 +21 -21
- package/packages/build-tools/src/docProcessor.mjs +37 -8
- package/packages/form-validation/src/validation.js +129 -50
- package/packages/utils/package.json +12 -0
- package/packages/utils/src/iconUtil.js +25 -0
- package/packages/utils/src/index.js +1 -0
- package/turbo.json +8 -8
- package/.turbo/cache/0008b92c8752bf75-meta.json +0 -1
- package/.turbo/cache/0008b92c8752bf75.tar.zst +0 -0
- package/.turbo/cache/00cb38bef1105dac-meta.json +0 -1
- package/.turbo/cache/00cb38bef1105dac.tar.zst +0 -0
- package/.turbo/cache/0157ec8abdaf2a9c-meta.json +0 -1
- package/.turbo/cache/0157ec8abdaf2a9c.tar.zst +0 -0
- package/.turbo/cache/0636e9cedc83238b-meta.json +0 -1
- package/.turbo/cache/0636e9cedc83238b.tar.zst +0 -0
- package/.turbo/cache/06f476671015e973-meta.json +0 -1
- package/.turbo/cache/06f476671015e973.tar.zst +0 -0
- package/.turbo/cache/09df74d672102662-meta.json +0 -1
- package/.turbo/cache/09df74d672102662.tar.zst +0 -0
- package/.turbo/cache/0cd109fb3183c2e6-meta.json +0 -1
- package/.turbo/cache/0cd109fb3183c2e6.tar.zst +0 -0
- package/.turbo/cache/17c429ade621ffcb-meta.json +0 -1
- package/.turbo/cache/17c429ade621ffcb.tar.zst +0 -0
- package/.turbo/cache/1c47128a0e12fcfa-meta.json +0 -1
- package/.turbo/cache/1c47128a0e12fcfa.tar.zst +0 -0
- package/.turbo/cache/1db02f756ce85784-meta.json +0 -1
- package/.turbo/cache/1db02f756ce85784.tar.zst +0 -0
- package/.turbo/cache/21705fa179d5f820-meta.json +0 -1
- package/.turbo/cache/21705fa179d5f820.tar.zst +0 -0
- package/.turbo/cache/249d9ba3ee6aa1cb-meta.json +0 -1
- package/.turbo/cache/249d9ba3ee6aa1cb.tar.zst +0 -0
- package/.turbo/cache/2666b96bfcf4e9cd-meta.json +0 -1
- package/.turbo/cache/2666b96bfcf4e9cd.tar.zst +0 -0
- package/.turbo/cache/2778d5e895240cd1-meta.json +0 -1
- package/.turbo/cache/2778d5e895240cd1.tar.zst +0 -0
- package/.turbo/cache/300b59df2de12b46-meta.json +0 -1
- package/.turbo/cache/300b59df2de12b46.tar.zst +0 -0
- package/.turbo/cache/31729e74fccaafb0-meta.json +0 -1
- package/.turbo/cache/31729e74fccaafb0.tar.zst +0 -0
- package/.turbo/cache/32702694d62a08ac-meta.json +0 -1
- package/.turbo/cache/32702694d62a08ac.tar.zst +0 -0
- package/.turbo/cache/3482a3cba9a51c2d-meta.json +0 -1
- package/.turbo/cache/3482a3cba9a51c2d.tar.zst +0 -0
- package/.turbo/cache/3a9d73752f23a40a-meta.json +0 -1
- package/.turbo/cache/3a9d73752f23a40a.tar.zst +0 -0
- package/.turbo/cache/3afe2e6f714a4fcb-meta.json +0 -1
- package/.turbo/cache/3afe2e6f714a4fcb.tar.zst +0 -0
- package/.turbo/cache/408ea1754276298c-meta.json +0 -1
- package/.turbo/cache/408ea1754276298c.tar.zst +0 -0
- package/.turbo/cache/42066c793c3816f3-meta.json +0 -1
- package/.turbo/cache/42066c793c3816f3.tar.zst +0 -0
- package/.turbo/cache/4bec46ffff6fd2e8-meta.json +0 -1
- package/.turbo/cache/4bec46ffff6fd2e8.tar.zst +0 -0
- package/.turbo/cache/50b275350abe14dd-meta.json +0 -1
- package/.turbo/cache/50b275350abe14dd.tar.zst +0 -0
- package/.turbo/cache/51078a087b52c65e-meta.json +0 -1
- package/.turbo/cache/51078a087b52c65e.tar.zst +0 -0
- package/.turbo/cache/593ddf689673e305-meta.json +0 -1
- package/.turbo/cache/593ddf689673e305.tar.zst +0 -0
- package/.turbo/cache/64e4f18395bd4461-meta.json +0 -1
- package/.turbo/cache/64e4f18395bd4461.tar.zst +0 -0
- package/.turbo/cache/68843ecab6e09320-meta.json +0 -1
- package/.turbo/cache/68843ecab6e09320.tar.zst +0 -0
- package/.turbo/cache/7419ef01dc18b433-meta.json +0 -1
- package/.turbo/cache/7419ef01dc18b433.tar.zst +0 -0
- package/.turbo/cache/748faca09d14fea7-meta.json +0 -1
- package/.turbo/cache/748faca09d14fea7.tar.zst +0 -0
- package/.turbo/cache/75495b0bbd6c06a7-meta.json +0 -1
- package/.turbo/cache/75495b0bbd6c06a7.tar.zst +0 -0
- package/.turbo/cache/7a6a8af4392c4b05-meta.json +0 -1
- package/.turbo/cache/7a6a8af4392c4b05.tar.zst +0 -0
- package/.turbo/cache/7e81141e0140dd3a-meta.json +0 -1
- package/.turbo/cache/7e81141e0140dd3a.tar.zst +0 -0
- package/.turbo/cache/7eb50d96639e6dd4-meta.json +0 -1
- package/.turbo/cache/7eb50d96639e6dd4.tar.zst +0 -0
- package/.turbo/cache/83bb78fec13808d0-meta.json +0 -1
- package/.turbo/cache/83bb78fec13808d0.tar.zst +0 -0
- package/.turbo/cache/8605f60efb7d3957-meta.json +0 -1
- package/.turbo/cache/8605f60efb7d3957.tar.zst +0 -0
- package/.turbo/cache/892a90b62716ded5-meta.json +0 -1
- package/.turbo/cache/892a90b62716ded5.tar.zst +0 -0
- package/.turbo/cache/8cac06ca809bd2b1-meta.json +0 -1
- package/.turbo/cache/8cac06ca809bd2b1.tar.zst +0 -0
- package/.turbo/cache/9a908bf8f82c84a6-meta.json +0 -1
- package/.turbo/cache/9a908bf8f82c84a6.tar.zst +0 -0
- package/.turbo/cache/9ed3089ffd7d0c00-meta.json +0 -1
- package/.turbo/cache/9ed3089ffd7d0c00.tar.zst +0 -0
- package/.turbo/cache/a3a879aea25debf8-meta.json +0 -1
- package/.turbo/cache/a3a879aea25debf8.tar.zst +0 -0
- package/.turbo/cache/a8dbafaf6177f677-meta.json +0 -1
- package/.turbo/cache/a8dbafaf6177f677.tar.zst +0 -0
- package/.turbo/cache/a8f6418b830ef0ba-meta.json +0 -1
- package/.turbo/cache/a8f6418b830ef0ba.tar.zst +0 -0
- package/.turbo/cache/b37b0eb5597e160f-meta.json +0 -1
- package/.turbo/cache/b37b0eb5597e160f.tar.zst +0 -0
- package/.turbo/cache/b7e7a8c425673f7c-meta.json +0 -1
- package/.turbo/cache/b7e7a8c425673f7c.tar.zst +0 -0
- package/.turbo/cache/bc8eed3d7216f5b7-meta.json +0 -1
- package/.turbo/cache/bc8eed3d7216f5b7.tar.zst +0 -0
- package/.turbo/cache/bde11c3029373459-meta.json +0 -1
- package/.turbo/cache/bde11c3029373459.tar.zst +0 -0
- package/.turbo/cache/c8e5fe6aec4479f5-meta.json +0 -1
- package/.turbo/cache/c8e5fe6aec4479f5.tar.zst +0 -0
- package/.turbo/cache/d0e874a9a71c9468-meta.json +0 -1
- package/.turbo/cache/d0e874a9a71c9468.tar.zst +0 -0
- package/.turbo/cache/d61b4e1bde4c0a12-meta.json +0 -1
- package/.turbo/cache/d61b4e1bde4c0a12.tar.zst +0 -0
- package/.turbo/cache/db6dedc0e7a12575-meta.json +0 -1
- package/.turbo/cache/db6dedc0e7a12575.tar.zst +0 -0
- package/.turbo/cache/de9737607345ec54-meta.json +0 -1
- package/.turbo/cache/de9737607345ec54.tar.zst +0 -0
- package/.turbo/cache/e234aa902b2c5b30-meta.json +0 -1
- package/.turbo/cache/e234aa902b2c5b30.tar.zst +0 -0
- package/.turbo/cache/e541225f46f7cf86-meta.json +0 -1
- package/.turbo/cache/e541225f46f7cf86.tar.zst +0 -0
- package/.turbo/cache/e67ac30b07d9e800-meta.json +0 -1
- package/.turbo/cache/e67ac30b07d9e800.tar.zst +0 -0
- package/.turbo/cache/e7244fdd3397eba7-meta.json +0 -1
- package/.turbo/cache/e7244fdd3397eba7.tar.zst +0 -0
- package/.turbo/cache/e7cf2cc625bd92b3-meta.json +0 -1
- package/.turbo/cache/e7cf2cc625bd92b3.tar.zst +0 -0
- package/.turbo/cache/e89a401ebdda3fc2-meta.json +0 -1
- package/.turbo/cache/e89a401ebdda3fc2.tar.zst +0 -0
- package/components/dropdown/dist/floatingUI.d.mts +0 -68
- package/components/dropdown/dist/floatingUI.d.mts.map +0 -1
- package/components/dropdown/src/floatingUI.mjs +0 -381
- package/components/select/demo/alertValue.js +0 -6
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
.exampleWrapper--flex * {
|
|
3
|
-
margin-bottom: 1rem;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@media screen and (min-width: 660px) {
|
|
7
|
-
.exampleWrapper--flex {
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.exampleWrapper--flex * {
|
|
13
|
-
width: 45%;
|
|
14
|
-
margin-bottom: unset;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
1
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../docs/api.md) -->
|
|
19
2
|
<!-- The below content is automatically added from ../docs/api.md -->
|
|
20
3
|
|
|
@@ -31,52 +14,50 @@ Generate unique names for dependency components.
|
|
|
31
14
|
|
|
32
15
|
## Properties
|
|
33
16
|
|
|
34
|
-
| Property | Attribute | Type | Default
|
|
35
|
-
|
|
36
|
-
| [activeLabel](#activeLabel) | `activeLabel` | `
|
|
37
|
-
| [autocapitalize](#autocapitalize) | `autocapitalize` | `
|
|
38
|
-
| [autocomplete](#autocomplete) | `autocomplete` | `
|
|
39
|
-
| [autocorrect](#autocorrect) | `autocorrect` | `
|
|
40
|
-
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` |
|
|
41
|
-
| [disabled](#disabled) | `disabled` | `
|
|
42
|
-
| [error](#error) | `error` | `
|
|
43
|
-
| [errorMessage](#errorMessage) | `errorMessage` | `
|
|
44
|
-
| [
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
-
| [
|
|
49
|
-
| [
|
|
50
|
-
| [
|
|
51
|
-
| [
|
|
52
|
-
| [
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [
|
|
59
|
-
| [
|
|
60
|
-
| [
|
|
61
|
-
| [
|
|
62
|
-
| [
|
|
63
|
-
| [
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [
|
|
67
|
-
| [
|
|
68
|
-
| [
|
|
69
|
-
| [
|
|
70
|
-
| [
|
|
71
|
-
| [validateOnInput](#validateOnInput) | `validateOnInput` | `Boolean` | | Sets validation mode to re-eval with each input. |
|
|
72
|
-
| [validity](#validity) | `validity` | `String` | | Specifies the `validityState` this element is in. |
|
|
73
|
-
| [value](#value) | `value` | `String` | | Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input. |
|
|
17
|
+
| Property | Attribute | Type | Default | Description |
|
|
18
|
+
|-----------------------------------|-----------------------------------|-----------|-------------|--------------------------------------------------|
|
|
19
|
+
| [activeLabel](#activeLabel) | `activeLabel` | `boolean` | false | If set, the label will remain fixed in the active position. |
|
|
20
|
+
| [autocapitalize](#autocapitalize) | `autocapitalize` | `string` | | 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] |
|
|
21
|
+
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
|
|
22
|
+
| [autocorrect](#autocorrect) | `autocorrect` | `string` | | When set to `off`, stops iOS from auto-correcting words when typed into a text box. |
|
|
23
|
+
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` | | Custom help text message for email type validity. |
|
|
24
|
+
| [disabled](#disabled) | `disabled` | `boolean` | false | If set, disables the input. |
|
|
25
|
+
| [error](#error) | `error` | `string` | | |
|
|
26
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `string` | | Contains the help text message for the current validity error. |
|
|
27
|
+
| [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. |
|
|
28
|
+
| [id](#id) | `id` | `string` | | Sets the unique ID of the element. |
|
|
29
|
+
| [lang](#lang) | `lang` | `string` | | Defines the language of an element. |
|
|
30
|
+
| [max](#max) | `max` | `string` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
31
|
+
| [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. |
|
|
32
|
+
| [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
33
|
+
| [minLength](#minLength) | `minLength` | `number` | "undefined" | 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`. |
|
|
34
|
+
| [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
|
|
35
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
|
|
36
|
+
| [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
|
|
37
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text, only supported by date input formats. |
|
|
38
|
+
| [readonly](#readonly) | `readonly` | `boolean` | | Makes the input read-only, but can be set programmatically. |
|
|
39
|
+
| [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
40
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
41
|
+
| [setCustomValidityBadInput](#setCustomValidityBadInput) | `setCustomValidityBadInput` | `string` | | Custom help text message to display when validity = `badInput`. |
|
|
42
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
43
|
+
| [setCustomValidityForType](#setCustomValidityForType) | `setCustomValidityForType` | `string` | "undefined" | Custom help text message to display for the declared element `type` and type validity fails. |
|
|
44
|
+
| [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `string` | | Custom help text message to display when validity = `rangeOverflow`. |
|
|
45
|
+
| [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `string` | | Custom help text message to display when validity = `rangeUnderflow`. |
|
|
46
|
+
| [setCustomValidityTooLong](#setCustomValidityTooLong) | `setCustomValidityTooLong` | `string` | | Custom help text message to display when validity = `tooLong`. |
|
|
47
|
+
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
|
|
48
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
49
|
+
| [spellcheck](#spellcheck) | `spellcheck` | `string` | | 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`. |
|
|
50
|
+
| [type](#type) | `type` | `string` | | 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`. |
|
|
51
|
+
| [validateOnInput](#validateOnInput) | `validateOnInput` | `boolean` | | Sets validation mode to re-eval with each input. |
|
|
52
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
53
|
+
| [value](#value) | `value` | `string` | | Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input. |
|
|
74
54
|
|
|
75
55
|
## Methods
|
|
76
56
|
|
|
77
57
|
| Method | Type | Description |
|
|
78
58
|
|--------------|---------------|------------------------------------------|
|
|
79
59
|
| [isDateType](#isDateType) | `(): boolean` | |
|
|
60
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
80
61
|
| [validate](#validate) | `(): void` | Public method force validation of input. |
|
|
81
62
|
|
|
82
63
|
## Events
|
|
@@ -119,10 +100,11 @@ The `auro-input` element supports the localization of all content managed within
|
|
|
119
100
|
|
|
120
101
|
## Basic
|
|
121
102
|
|
|
122
|
-
|
|
103
|
+
The default component supports the basic input `type="text"` structure. The `(optional)` label is provided to instruct the user that their input is not required. Use the `bordered` attribute for a bordered `<auro-input>`.
|
|
104
|
+
|
|
105
|
+
<div class="exampleWrapper">
|
|
123
106
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/basic.html) -->
|
|
124
107
|
<!-- The below content is automatically added from ../apiExamples/basic.html -->
|
|
125
|
-
<auro-input></auro-input>
|
|
126
108
|
<auro-input bordered></auro-input>
|
|
127
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
128
110
|
</div>
|
|
@@ -132,7 +114,6 @@ The `auro-input` element supports the localization of all content managed within
|
|
|
132
114
|
<!-- The below code snippet is automatically added from ../apiExamples/basic.html -->
|
|
133
115
|
|
|
134
116
|
```html
|
|
135
|
-
<auro-input></auro-input>
|
|
136
117
|
<auro-input bordered></auro-input>
|
|
137
118
|
```
|
|
138
119
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -143,12 +124,9 @@ The `auro-input` element supports the localization of all content managed within
|
|
|
143
124
|
### Disabled <a name="disabled"></a>
|
|
144
125
|
Use the `disable` attribute to prevent the user from interacting with the input.
|
|
145
126
|
|
|
146
|
-
<div class="exampleWrapper
|
|
127
|
+
<div class="exampleWrapper">
|
|
147
128
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/disabled.html) -->
|
|
148
129
|
<!-- The below content is automatically added from ../apiExamples/disabled.html -->
|
|
149
|
-
<auro-input disabled type="month-day-year" required>
|
|
150
|
-
<slot slot="label">Departure date</slot>
|
|
151
|
-
</auro-input>
|
|
152
130
|
<auro-input disabled bordered type="month-day-year">
|
|
153
131
|
<slot slot="label">Arrival date</slot>
|
|
154
132
|
</auro-input>
|
|
@@ -160,9 +138,6 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
160
138
|
<!-- The below code snippet is automatically added from ../apiExamples/disabled.html -->
|
|
161
139
|
|
|
162
140
|
```html
|
|
163
|
-
<auro-input disabled type="month-day-year" required>
|
|
164
|
-
<slot slot="label">Departure date</slot>
|
|
165
|
-
</auro-input>
|
|
166
141
|
<auro-input disabled bordered type="month-day-year">
|
|
167
142
|
<slot slot="label">Arrival date</slot>
|
|
168
143
|
</auro-input>
|
|
@@ -173,13 +148,10 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
173
148
|
### Placeholder <a name="placeholder"></a>
|
|
174
149
|
Use the `placeholder` attribute to add a custom placeholder message within the element.
|
|
175
150
|
|
|
176
|
-
<div class="exampleWrapper
|
|
151
|
+
<div class="exampleWrapper">
|
|
177
152
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
|
|
178
153
|
<!-- The below content is automatically added from ../apiExamples/placeholder.html -->
|
|
179
|
-
<auro-input
|
|
180
|
-
<span slot="label">Full name</span>
|
|
181
|
-
</auro-input>
|
|
182
|
-
<auro-input required bordered placeholder="John Doe">
|
|
154
|
+
<auro-input placeholder="John Doe" bordered required>
|
|
183
155
|
<span slot="label">Full name</span>
|
|
184
156
|
<span slot="helptext">Please enter your full name.</span>
|
|
185
157
|
</auro-input>
|
|
@@ -191,10 +163,7 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
|
|
|
191
163
|
<!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
|
|
192
164
|
|
|
193
165
|
```html
|
|
194
|
-
<auro-input
|
|
195
|
-
<span slot="label">Full name</span>
|
|
196
|
-
</auro-input>
|
|
197
|
-
<auro-input required bordered placeholder="John Doe">
|
|
166
|
+
<auro-input placeholder="John Doe" bordered required>
|
|
198
167
|
<span slot="label">Full name</span>
|
|
199
168
|
<span slot="helptext">Please enter your full name.</span>
|
|
200
169
|
</auro-input>
|
|
@@ -238,7 +207,8 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
238
207
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/value.html) -->
|
|
239
208
|
<!-- The below content is automatically added from ../apiExamples/value.html -->
|
|
240
209
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
241
|
-
<auro-button id="
|
|
210
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
211
|
+
<br /><br />
|
|
242
212
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
243
213
|
<span slot="label">Name</span>
|
|
244
214
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -252,7 +222,8 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
252
222
|
|
|
253
223
|
```html
|
|
254
224
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
255
|
-
<auro-button id="
|
|
225
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
226
|
+
<br /><br />
|
|
256
227
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
257
228
|
<span slot="label">Name</span>
|
|
258
229
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -268,12 +239,12 @@ export function programmaticallySetValue() {
|
|
|
268
239
|
|
|
269
240
|
// set value of auro-input element
|
|
270
241
|
document.querySelector('#setValidValueBtn').addEventListener('click', () => {
|
|
271
|
-
|
|
242
|
+
elem.value = "Alaska Airlines is the best";
|
|
272
243
|
});
|
|
273
244
|
|
|
274
245
|
// reset the value of auro-input element
|
|
275
|
-
document.querySelector('#
|
|
276
|
-
|
|
246
|
+
document.querySelector('#setUndefinedValueBtn').addEventListener('click', () => {
|
|
247
|
+
elem.value = undefined;
|
|
277
248
|
});
|
|
278
249
|
}
|
|
279
250
|
```
|
|
@@ -281,16 +252,16 @@ export function programmaticallySetValue() {
|
|
|
281
252
|
</auro-accordion>
|
|
282
253
|
|
|
283
254
|
### Max <a name="max"></a>
|
|
284
|
-
Use the `max` attribute to define a maximum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `
|
|
255
|
+
Use the `max` attribute to define a maximum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `number` or any date format.
|
|
285
256
|
|
|
286
|
-
The `
|
|
257
|
+
The `setCustomValidityRangeOverflow` attribute may optionally be used in combination with the `max` attribute to define custom help text used when the input value is greater than the value of the `max` attribute.
|
|
287
258
|
|
|
288
259
|
#### Date Example
|
|
289
260
|
|
|
290
261
|
<div class="exampleWrapper">
|
|
291
262
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxDate.html) -->
|
|
292
263
|
<!-- The below content is automatically added from ../apiExamples/maxDate.html -->
|
|
293
|
-
<auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
|
|
264
|
+
<auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
|
|
294
265
|
<span slot="label">Choose a date</span>
|
|
295
266
|
</auro-input>
|
|
296
267
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -301,30 +272,30 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
301
272
|
<!-- The below code snippet is automatically added from ../apiExamples/maxDate.html -->
|
|
302
273
|
|
|
303
274
|
```html
|
|
304
|
-
<auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
|
|
275
|
+
<auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
|
|
305
276
|
<span slot="label">Choose a date</span>
|
|
306
277
|
</auro-input>
|
|
307
278
|
```
|
|
308
279
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
309
280
|
</auro-accordion>
|
|
310
281
|
|
|
311
|
-
####
|
|
282
|
+
#### Number Example
|
|
312
283
|
|
|
313
284
|
<div class="exampleWrapper">
|
|
314
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
315
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
316
|
-
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
285
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
|
|
286
|
+
<!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
|
|
287
|
+
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
|
|
317
288
|
<span slot="label">Choose a number</span>
|
|
318
289
|
</auro-input>
|
|
319
290
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
320
291
|
</div>
|
|
321
292
|
<auro-accordion alignRight>
|
|
322
293
|
<span slot="trigger">See code</span>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
324
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
294
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxNumber.html) -->
|
|
295
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
|
|
325
296
|
|
|
326
297
|
```html
|
|
327
|
-
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
298
|
+
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
|
|
328
299
|
<span slot="label">Choose a number</span>
|
|
329
300
|
</auro-input>
|
|
330
301
|
```
|
|
@@ -332,16 +303,16 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
332
303
|
</auro-accordion>
|
|
333
304
|
|
|
334
305
|
### Min <a name="min"></a>
|
|
335
|
-
Use the `min` attribute to define a minimum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for
|
|
306
|
+
Use the `min` attribute to define a minimum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `number` or any date format.
|
|
336
307
|
|
|
337
|
-
The `
|
|
308
|
+
The `setCustomValidityRangeUnderflow` attribute may optionally be used in combination with the `min` attribute to define custom help text used when the input value is less than the value of the `min` attribute.
|
|
338
309
|
|
|
339
310
|
#### Date Example
|
|
340
311
|
|
|
341
312
|
<div class="exampleWrapper">
|
|
342
313
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minDate.html) -->
|
|
343
314
|
<!-- The below content is automatically added from ../apiExamples/minDate.html -->
|
|
344
|
-
<auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
|
|
315
|
+
<auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
|
|
345
316
|
<span slot="label">Choose a date</span>
|
|
346
317
|
</auro-input>
|
|
347
318
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -352,93 +323,115 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
352
323
|
<!-- The below code snippet is automatically added from ../apiExamples/minDate.html -->
|
|
353
324
|
|
|
354
325
|
```html
|
|
355
|
-
<auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
|
|
326
|
+
<auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
|
|
356
327
|
<span slot="label">Choose a date</span>
|
|
357
328
|
</auro-input>
|
|
358
329
|
```
|
|
359
330
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
360
331
|
</auro-accordion>
|
|
361
332
|
|
|
362
|
-
####
|
|
333
|
+
#### Number Example
|
|
363
334
|
|
|
364
335
|
<div class="exampleWrapper">
|
|
365
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
366
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
367
|
-
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
336
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
|
|
337
|
+
<!-- The below content is automatically added from ../apiExamples/minNumber.html -->
|
|
338
|
+
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
|
|
368
339
|
<span slot="label">Choose a number</span>
|
|
369
340
|
</auro-input>
|
|
370
341
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
371
342
|
</div>
|
|
372
343
|
<auro-accordion alignRight>
|
|
373
344
|
<span slot="trigger">See code</span>
|
|
374
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
375
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
345
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minNumber.html) -->
|
|
346
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
|
|
376
347
|
|
|
377
348
|
```html
|
|
378
|
-
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
349
|
+
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
|
|
379
350
|
<span slot="label">Choose a number</span>
|
|
380
351
|
</auro-input>
|
|
381
352
|
```
|
|
382
353
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
354
|
</auro-accordion>
|
|
384
355
|
|
|
385
|
-
###
|
|
386
|
-
Use the `
|
|
356
|
+
### Max Length <a name="maxLength"></a>
|
|
357
|
+
Use the `maxlength` attribute to control the length of the input entered.
|
|
387
358
|
|
|
388
|
-
The
|
|
359
|
+
The `setCustomValidityTooLong` attribute may optionally be used in combination with the `maxLength` attribute to define custom help text used when the length of the input is too long.
|
|
389
360
|
|
|
390
|
-
<div class="exampleWrapper
|
|
391
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
392
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
393
|
-
<auro-input
|
|
394
|
-
<
|
|
395
|
-
<
|
|
396
|
-
</auro-input>
|
|
397
|
-
<auro-input bordered pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityBadInput="Only contain lowercase letters w/no spaces">
|
|
398
|
-
<span slot="label">Username</span>
|
|
399
|
-
<span slot="helptext">Please enter a username.</span>
|
|
361
|
+
<div class="exampleWrapper">
|
|
362
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
363
|
+
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
364
|
+
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
|
|
365
|
+
<slot slot="label">Voucher Code</slot>
|
|
366
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
400
367
|
</auro-input>
|
|
401
368
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
402
369
|
</div>
|
|
403
370
|
<auro-accordion alignRight>
|
|
404
371
|
<span slot="trigger">See code</span>
|
|
405
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
406
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
372
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
373
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
407
374
|
|
|
408
375
|
```html
|
|
409
|
-
<auro-input
|
|
410
|
-
<
|
|
411
|
-
<
|
|
376
|
+
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
|
|
377
|
+
<slot slot="label">Voucher Code</slot>
|
|
378
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
412
379
|
</auro-input>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
380
|
+
```
|
|
381
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
382
|
+
</auro-accordion>
|
|
383
|
+
|
|
384
|
+
### Min Length <a name="minLength"></a>
|
|
385
|
+
Use the `minlength` attribute to control the length of the input entered.
|
|
386
|
+
|
|
387
|
+
The `setCustomValidityTooShort` attribute may optionally be used in combination with the `minLength` attribute to define custom help text used when the length of the input is not long enough.
|
|
388
|
+
|
|
389
|
+
<div class="exampleWrapper">
|
|
390
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
391
|
+
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
392
|
+
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
|
|
393
|
+
<slot slot="label">Voucher Code</slot>
|
|
394
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
395
|
+
</auro-input>
|
|
396
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
397
|
+
</div>
|
|
398
|
+
<auro-accordion alignRight>
|
|
399
|
+
<span slot="trigger">See code</span>
|
|
400
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minLength.html) -->
|
|
401
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
402
|
+
|
|
403
|
+
```html
|
|
404
|
+
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
|
|
405
|
+
<slot slot="label">Voucher Code</slot>
|
|
406
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
416
407
|
</auro-input>
|
|
417
408
|
```
|
|
418
409
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
419
410
|
</auro-accordion>
|
|
420
411
|
|
|
421
|
-
###
|
|
422
|
-
Use the `
|
|
412
|
+
### Pattern <a name="pattern"></a>
|
|
413
|
+
Use the `pattern` attribute to set custom input validation. This example also uses the `spellcheck` attribute set to `false` which in turn sets `autocorrect` to `off` and `autocapitalize` to `none`. Additionally the `maxlength` attribute sets the maximum length of characters that can be entered.
|
|
414
|
+
|
|
415
|
+
The `<auro-input>` component supports setting a custom validity message specific to the pattern validation by using the `setCustomValidityPatternMismatch` attribute.
|
|
423
416
|
|
|
424
417
|
<div class="exampleWrapper">
|
|
425
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
426
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
427
|
-
<auro-input
|
|
428
|
-
<span slot="label">
|
|
429
|
-
<span slot="helptext">Please enter
|
|
418
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
|
|
419
|
+
<!-- The below content is automatically added from ../apiExamples/pattern.html -->
|
|
420
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
|
|
421
|
+
<span slot="label">Username</span>
|
|
422
|
+
<span slot="helptext">Please enter a username.</span>
|
|
430
423
|
</auro-input>
|
|
431
424
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
432
425
|
</div>
|
|
433
426
|
<auro-accordion alignRight>
|
|
434
427
|
<span slot="trigger">See code</span>
|
|
435
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
436
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
428
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/pattern.html) -->
|
|
429
|
+
<!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
|
|
437
430
|
|
|
438
431
|
```html
|
|
439
|
-
<auro-input
|
|
440
|
-
<span slot="label">
|
|
441
|
-
<span slot="helptext">Please enter
|
|
432
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
|
|
433
|
+
<span slot="label">Username</span>
|
|
434
|
+
<span slot="helptext">Please enter a username.</span>
|
|
442
435
|
</auro-input>
|
|
443
436
|
```
|
|
444
437
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -453,7 +446,8 @@ In this example, the user is able to programmatically change the value of the in
|
|
|
453
446
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/readonly.html) -->
|
|
454
447
|
<!-- The below content is automatically added from ../apiExamples/readonly.html -->
|
|
455
448
|
<auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
|
|
456
|
-
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
449
|
+
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
450
|
+
<br /><br />
|
|
457
451
|
<auro-input readonly bordered id="readonlyExample">
|
|
458
452
|
<span slot="label">Name</span>
|
|
459
453
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -467,7 +461,8 @@ In this example, the user is able to programmatically change the value of the in
|
|
|
467
461
|
|
|
468
462
|
```html
|
|
469
463
|
<auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
|
|
470
|
-
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
464
|
+
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
465
|
+
<br /><br />
|
|
471
466
|
<auro-input readonly bordered id="readonlyExample">
|
|
472
467
|
<span slot="label">Name</span>
|
|
473
468
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -497,13 +492,9 @@ export function setReadonlyValue() {
|
|
|
497
492
|
### Active Label <a name="activeLabel"></a>
|
|
498
493
|
Example use cases for auro-input support the `activeLabel` attribute. If set, the label will stay fixed in the active position.
|
|
499
494
|
|
|
500
|
-
<div class="exampleWrapper
|
|
495
|
+
<div class="exampleWrapper">
|
|
501
496
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/activeLabel.html) -->
|
|
502
497
|
<!-- The below content is automatically added from ../apiExamples/activeLabel.html -->
|
|
503
|
-
<auro-input activeLabel>
|
|
504
|
-
<slot slot="label">Address</slot>
|
|
505
|
-
<slot slot="helptext">Please enter your home address.</slot>
|
|
506
|
-
</auro-input>
|
|
507
498
|
<auro-input activeLabel bordered>
|
|
508
499
|
<slot slot="label">Address</slot>
|
|
509
500
|
<slot slot="helptext">Please enter your home address.</slot>
|
|
@@ -516,10 +507,6 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
|
|
|
516
507
|
<!-- The below code snippet is automatically added from ../apiExamples/activeLabel.html -->
|
|
517
508
|
|
|
518
509
|
```html
|
|
519
|
-
<auro-input activeLabel>
|
|
520
|
-
<slot slot="label">Address</slot>
|
|
521
|
-
<slot slot="helptext">Please enter your home address.</slot>
|
|
522
|
-
</auro-input>
|
|
523
510
|
<auro-input activeLabel bordered>
|
|
524
511
|
<slot slot="label">Address</slot>
|
|
525
512
|
<slot slot="helptext">Please enter your home address.</slot>
|
|
@@ -531,13 +518,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
|
|
|
531
518
|
### Disable auto-validation <a name="noValidate"></a>
|
|
532
519
|
For use cases where the field is `required`, but live validation is not wanted, use the `noValidate` attribute.
|
|
533
520
|
|
|
534
|
-
<div class="exampleWrapper
|
|
521
|
+
<div class="exampleWrapper">
|
|
535
522
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/noValidate.html) -->
|
|
536
523
|
<!-- The below content is automatically added from ../apiExamples/noValidate.html -->
|
|
537
|
-
<auro-input noValidate required>
|
|
538
|
-
<slot slot="label">Address</slot>
|
|
539
|
-
<slot slot="helptext">Please enter your home address.</slot>
|
|
540
|
-
</auro-input>
|
|
541
524
|
<auro-input noValidate required bordered>
|
|
542
525
|
<slot slot="label">Address</slot>
|
|
543
526
|
<slot slot="helptext">Please enter your home address.</slot>
|
|
@@ -550,10 +533,6 @@ For use cases where the field is `required`, but live validation is not wanted,
|
|
|
550
533
|
<!-- The below code snippet is automatically added from ../apiExamples/noValidate.html -->
|
|
551
534
|
|
|
552
535
|
```html
|
|
553
|
-
<auro-input noValidate required>
|
|
554
|
-
<slot slot="label">Address</slot>
|
|
555
|
-
<slot slot="helptext">Please enter your home address.</slot>
|
|
556
|
-
</auro-input>
|
|
557
536
|
<auro-input noValidate required bordered>
|
|
558
537
|
<slot slot="label">Address</slot>
|
|
559
538
|
<slot slot="helptext">Please enter your home address.</slot>
|
|
@@ -571,14 +550,11 @@ The `<auro-input>` component follows the HTML5 input `validity` and `validitySta
|
|
|
571
550
|
### Required <a name="required"></a>
|
|
572
551
|
When present, the `required` attribute specifies that an input field must be filled out before submitting the form.
|
|
573
552
|
|
|
574
|
-
When the validity check fails the validityState equals `valueMissing`. The error message for the `valueMissing` validityState can be changed to a custom string using the `setCustomValidityValueMissing`.
|
|
553
|
+
When the validity check fails, the validityState equals `valueMissing`. The error message for the `valueMissing` validityState can be changed to a custom string using the `setCustomValidityValueMissing`.
|
|
575
554
|
|
|
576
|
-
<div class="exampleWrapper
|
|
555
|
+
<div class="exampleWrapper">
|
|
577
556
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/required.html) -->
|
|
578
557
|
<!-- The below content is automatically added from ../apiExamples/required.html -->
|
|
579
|
-
<auro-input required placeholder="John Doe">
|
|
580
|
-
<span slot="label">Full name</span>
|
|
581
|
-
</auro-input>
|
|
582
558
|
<auro-input required bordered placeholder="John Doe">
|
|
583
559
|
<span slot="label">Full name</span>
|
|
584
560
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -591,9 +567,6 @@ When the validity check fails the validityState equals `valueMissing`. The error
|
|
|
591
567
|
<!-- The below code snippet is automatically added from ../apiExamples/required.html -->
|
|
592
568
|
|
|
593
569
|
```html
|
|
594
|
-
<auro-input required placeholder="John Doe">
|
|
595
|
-
<span slot="label">Full name</span>
|
|
596
|
-
</auro-input>
|
|
597
570
|
<auro-input required bordered placeholder="John Doe">
|
|
598
571
|
<span slot="label">Full name</span>
|
|
599
572
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -605,14 +578,10 @@ When the validity check fails the validityState equals `valueMissing`. The error
|
|
|
605
578
|
### Validation on input <a name="validateOnInput"></a>
|
|
606
579
|
Use the `validateOnInput` attribute to enable live validation on the `input` event. Recommended use is with setting a custom `pattern` and validation is required prior to a `blur` event.
|
|
607
580
|
|
|
608
|
-
<div class="exampleWrapper
|
|
581
|
+
<div class="exampleWrapper">
|
|
609
582
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/validateOnInput.html) -->
|
|
610
583
|
<!-- The below content is automatically added from ../apiExamples/validateOnInput.html -->
|
|
611
|
-
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
612
|
-
<span slot="label">Full Name</span>
|
|
613
|
-
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
614
|
-
</auro-input>
|
|
615
|
-
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityBadInput="Full name requires two or more names with at least one space.">
|
|
584
|
+
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
616
585
|
<span slot="label">Full Name</span>
|
|
617
586
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
618
587
|
</auro-input>
|
|
@@ -624,11 +593,7 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
|
|
|
624
593
|
<!-- The below code snippet is automatically added from ../apiExamples/validateOnInput.html -->
|
|
625
594
|
|
|
626
595
|
```html
|
|
627
|
-
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
628
|
-
<span slot="label">Full Name</span>
|
|
629
|
-
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
630
|
-
</auro-input>
|
|
631
|
-
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityBadInput="Full name requires two or more names with at least one space.">
|
|
596
|
+
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
632
597
|
<span slot="label">Full Name</span>
|
|
633
598
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
634
599
|
</auro-input>
|
|
@@ -641,13 +606,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
641
606
|
|
|
642
607
|
**NOTE:** Custom strings are NOT localized. It is the responsibility of the element consumer to provide localized strings when using this element property.
|
|
643
608
|
|
|
644
|
-
<div class="exampleWrapper
|
|
609
|
+
<div class="exampleWrapper">
|
|
645
610
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/setCustomValidity.html) -->
|
|
646
611
|
<!-- The below content is automatically added from ../apiExamples/setCustomValidity.html -->
|
|
647
|
-
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
648
|
-
<span slot="label">Full Name</span>
|
|
649
|
-
<span slot="helptext">Please enter your full name.</span>
|
|
650
|
-
</auro-input>
|
|
651
612
|
<auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
652
613
|
<span slot="label">Full Name</span>
|
|
653
614
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -660,10 +621,6 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
660
621
|
<!-- The below code snippet is automatically added from ../apiExamples/setCustomValidity.html -->
|
|
661
622
|
|
|
662
623
|
```html
|
|
663
|
-
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
664
|
-
<span slot="label">Full Name</span>
|
|
665
|
-
<span slot="helptext">Please enter your full name.</span>
|
|
666
|
-
</auro-input>
|
|
667
624
|
<auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
668
625
|
<span slot="label">Full Name</span>
|
|
669
626
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -675,12 +632,15 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
675
632
|
### Error <a name="error"></a>
|
|
676
633
|
Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
|
|
677
634
|
|
|
635
|
+
A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
|
|
636
|
+
|
|
678
637
|
<div class="exampleWrapper">
|
|
679
638
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/error.html) -->
|
|
680
639
|
<!-- The below content is automatically added from ../apiExamples/error.html -->
|
|
681
640
|
<auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
|
|
682
|
-
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
683
|
-
<
|
|
641
|
+
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
642
|
+
<br /><br />
|
|
643
|
+
<auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
|
|
684
644
|
<span slot="label">Name</span>
|
|
685
645
|
<span slot="helptext">Please enter your full name.</span>
|
|
686
646
|
</auro-input>
|
|
@@ -693,8 +653,9 @@ Use the `error` attribute to apply a persistent custom error that supersedes the
|
|
|
693
653
|
|
|
694
654
|
```html
|
|
695
655
|
<auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
|
|
696
|
-
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
697
|
-
<
|
|
656
|
+
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
657
|
+
<br /><br />
|
|
658
|
+
<auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
|
|
698
659
|
<span slot="label">Name</span>
|
|
699
660
|
<span slot="helptext">Please enter your full name.</span>
|
|
700
661
|
</auro-input>
|
|
@@ -728,12 +689,9 @@ Use the `type="password"` attribute for a password style input. The hide/show pa
|
|
|
728
689
|
|
|
729
690
|
Default help text will be added to the input `type="password"` if custom help text is not provided. See the example below.
|
|
730
691
|
|
|
731
|
-
<div class="exampleWrapper
|
|
692
|
+
<div class="exampleWrapper">
|
|
732
693
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
|
|
733
694
|
<!-- The below content is automatically added from ../apiExamples/password.html -->
|
|
734
|
-
<auro-input type="password" required>
|
|
735
|
-
<span slot="label">Password</span>
|
|
736
|
-
</auro-input>
|
|
737
695
|
<auro-input type="password" required bordered>
|
|
738
696
|
<span slot="label">Password</span>
|
|
739
697
|
<span slot="helptext">Please enter a secure password.</span>
|
|
@@ -746,9 +704,6 @@ Default help text will be added to the input `type="password"` if custom help te
|
|
|
746
704
|
<!-- The below code snippet is automatically added from ../apiExamples/password.html -->
|
|
747
705
|
|
|
748
706
|
```html
|
|
749
|
-
<auro-input type="password" required>
|
|
750
|
-
<span slot="label">Password</span>
|
|
751
|
-
</auro-input>
|
|
752
707
|
<auro-input type="password" required bordered>
|
|
753
708
|
<span slot="label">Password</span>
|
|
754
709
|
<span slot="helptext">Please enter a secure password.</span>
|
|
@@ -763,13 +718,10 @@ Use the `type="email"` attribute for a email style input. These examples illustr
|
|
|
763
718
|
|
|
764
719
|
Default help text will be added to the input `type="email"` if custom help text is not provided. See the example below.
|
|
765
720
|
|
|
766
|
-
<div class="exampleWrapper
|
|
721
|
+
<div class="exampleWrapper">
|
|
767
722
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/email.html) -->
|
|
768
723
|
<!-- The below content is automatically added from ../apiExamples/email.html -->
|
|
769
|
-
<auro-input
|
|
770
|
-
<slot slot="label">Email address</slot>
|
|
771
|
-
</auro-input>
|
|
772
|
-
<auro-input bordered required type="email">
|
|
724
|
+
<auro-input type="email" bordered required>
|
|
773
725
|
<slot slot="label">Email address</slot>
|
|
774
726
|
<slot slot="helptext">Please enter your email address.</slot>
|
|
775
727
|
</auro-input>
|
|
@@ -781,10 +733,7 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
781
733
|
<!-- The below code snippet is automatically added from ../apiExamples/email.html -->
|
|
782
734
|
|
|
783
735
|
```html
|
|
784
|
-
<auro-input
|
|
785
|
-
<slot slot="label">Email address</slot>
|
|
786
|
-
</auro-input>
|
|
787
|
-
<auro-input bordered required type="email">
|
|
736
|
+
<auro-input type="email" bordered required>
|
|
788
737
|
<slot slot="label">Email address</slot>
|
|
789
738
|
<slot slot="helptext">Please enter your email address.</slot>
|
|
790
739
|
</auro-input>
|
|
@@ -796,16 +745,14 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
796
745
|
|
|
797
746
|
Use the `type="number"` attribute for a numeric style input and invoke a numeric virtual keyboard on handheld devices.
|
|
798
747
|
|
|
799
|
-
|
|
748
|
+
This `number` input type should only be used for incremental numeric values, meaning values with decimals will be considered invalid. The `number` input type is not appropriate for values that happen to only consist of but aren't strictly speaking a number, such as postal codes in many countries or credit card numbers. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number) for more information.
|
|
749
|
+
|
|
750
|
+
<div class="exampleWrapper">
|
|
800
751
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
|
|
801
752
|
<!-- The below content is automatically added from ../apiExamples/number.html -->
|
|
802
|
-
<auro-input
|
|
803
|
-
<slot slot="label">
|
|
804
|
-
<slot slot="helptext">Please enter
|
|
805
|
-
</auro-input>
|
|
806
|
-
<auro-input bordered required type="number">
|
|
807
|
-
<slot slot="label">Account number</slot>
|
|
808
|
-
<slot slot="helptext">Please enter your account number.</slot>
|
|
753
|
+
<auro-input type="number" bordered required>
|
|
754
|
+
<slot slot="label">Number of Passengers</slot>
|
|
755
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
809
756
|
</auro-input>
|
|
810
757
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
811
758
|
</div>
|
|
@@ -815,81 +762,9 @@ Use the `type="number"` attribute for a numeric style input and invoke a numeric
|
|
|
815
762
|
<!-- The below code snippet is automatically added from ../apiExamples/number.html -->
|
|
816
763
|
|
|
817
764
|
```html
|
|
818
|
-
<auro-input
|
|
819
|
-
<slot slot="label">
|
|
820
|
-
<slot slot="helptext">Please enter
|
|
821
|
-
</auro-input>
|
|
822
|
-
<auro-input bordered required type="number">
|
|
823
|
-
<slot slot="label">Account number</slot>
|
|
824
|
-
<slot slot="helptext">Please enter your account number.</slot>
|
|
825
|
-
</auro-input>
|
|
826
|
-
```
|
|
827
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
828
|
-
</auro-accordion>
|
|
829
|
-
|
|
830
|
-
#### maxLength <a name="maxLength"></a>
|
|
831
|
-
Use the `type="number"` in combination wit the `maxlength` attribute to control the length of the number entered.
|
|
832
|
-
|
|
833
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
834
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
835
|
-
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
836
|
-
<auro-input required type="number" maxlength="12">
|
|
837
|
-
<slot slot="label">Account number</slot>
|
|
838
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
839
|
-
</auro-input>
|
|
840
|
-
<auro-input bordered required type="number" maxlength="12">
|
|
841
|
-
<slot slot="label">Account number</slot>
|
|
842
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
843
|
-
</auro-input>
|
|
844
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
845
|
-
</div>
|
|
846
|
-
<auro-accordion alignRight>
|
|
847
|
-
<span slot="trigger">See code</span>
|
|
848
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
849
|
-
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
850
|
-
|
|
851
|
-
```html
|
|
852
|
-
<auro-input required type="number" maxlength="12">
|
|
853
|
-
<slot slot="label">Account number</slot>
|
|
854
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
855
|
-
</auro-input>
|
|
856
|
-
<auro-input bordered required type="number" maxlength="12">
|
|
857
|
-
<slot slot="label">Account number</slot>
|
|
858
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
859
|
-
</auro-input>
|
|
860
|
-
```
|
|
861
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
862
|
-
</auro-accordion>
|
|
863
|
-
|
|
864
|
-
#### minLength <a name="minLength"></a>
|
|
865
|
-
Use the `type="number"` in combination wit the `minlength` attribute to control the length of the number entered.
|
|
866
|
-
|
|
867
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
868
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
869
|
-
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
870
|
-
<auro-input required type="number" minlength="1">
|
|
871
|
-
<slot slot="label">Account number</slot>
|
|
872
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
873
|
-
</auro-input>
|
|
874
|
-
<auro-input bordered required type="number" minlength="1">
|
|
875
|
-
<slot slot="label">Account number</slot>
|
|
876
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
877
|
-
</auro-input>
|
|
878
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
879
|
-
</div>
|
|
880
|
-
<auro-accordion alignRight>
|
|
881
|
-
<span slot="trigger">See code</span>
|
|
882
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minLength.html) -->
|
|
883
|
-
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
884
|
-
|
|
885
|
-
```html
|
|
886
|
-
<auro-input required type="number" minlength="1">
|
|
887
|
-
<slot slot="label">Account number</slot>
|
|
888
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
889
|
-
</auro-input>
|
|
890
|
-
<auro-input bordered required type="number" minlength="1">
|
|
891
|
-
<slot slot="label">Account number</slot>
|
|
892
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
765
|
+
<auro-input type="number" bordered required>
|
|
766
|
+
<slot slot="label">Number of Passengers</slot>
|
|
767
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
893
768
|
</auro-input>
|
|
894
769
|
```
|
|
895
770
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -901,13 +776,10 @@ Use the `type="credit-card"` attribute for a credit card formatted input.
|
|
|
901
776
|
|
|
902
777
|
Default help text will be added to the input `type="credit-card"` if custom help text is not provided. See the example below.
|
|
903
778
|
|
|
904
|
-
<div class="exampleWrapper
|
|
779
|
+
<div class="exampleWrapper">
|
|
905
780
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCard.html) -->
|
|
906
781
|
<!-- The below content is automatically added from ../apiExamples/creditCard.html -->
|
|
907
|
-
<auro-input
|
|
908
|
-
<slot slot="label">Card number</slot>
|
|
909
|
-
</auro-input>
|
|
910
|
-
<auro-input bordered required type="credit-card">
|
|
782
|
+
<auro-input type="credit-card" bordered required>
|
|
911
783
|
<slot slot="label">Card number</slot>
|
|
912
784
|
<slot slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</slot>
|
|
913
785
|
</auro-input>
|
|
@@ -919,10 +791,7 @@ Default help text will be added to the input `type="credit-card"` if custom help
|
|
|
919
791
|
<!-- The below code snippet is automatically added from ../apiExamples/creditCard.html -->
|
|
920
792
|
|
|
921
793
|
```html
|
|
922
|
-
<auro-input
|
|
923
|
-
<slot slot="label">Card number</slot>
|
|
924
|
-
</auro-input>
|
|
925
|
-
<auro-input bordered required type="credit-card">
|
|
794
|
+
<auro-input type="credit-card" bordered required>
|
|
926
795
|
<slot slot="label">Card number</slot>
|
|
927
796
|
<slot slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</slot>
|
|
928
797
|
</auro-input>
|
|
@@ -933,13 +802,10 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
|
|
|
933
802
|
|
|
934
803
|
**Dependency**: Please be sure to also install [auro-icon](https://auro.alaskaair.com/components/auro/icon/install) as a peer dependency.
|
|
935
804
|
|
|
936
|
-
<div class="exampleWrapper
|
|
805
|
+
<div class="exampleWrapper">
|
|
937
806
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCardIcon.html) -->
|
|
938
807
|
<!-- The below content is automatically added from ../apiExamples/creditCardIcon.html -->
|
|
939
|
-
<auro-input
|
|
940
|
-
<slot slot="label">Card number</slot>
|
|
941
|
-
</auro-input>
|
|
942
|
-
<auro-input bordered required icon type="credit-card">
|
|
808
|
+
<auro-input icon type="credit-card" bordered required>
|
|
943
809
|
<slot slot="label">Card number</slot>
|
|
944
810
|
<slot slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</slot>
|
|
945
811
|
</auro-input>
|
|
@@ -952,10 +818,7 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
|
|
|
952
818
|
<!-- The below code snippet is automatically added from ../apiExamples/creditCardIcon.html -->
|
|
953
819
|
|
|
954
820
|
```html
|
|
955
|
-
<auro-input
|
|
956
|
-
<slot slot="label">Card number</slot>
|
|
957
|
-
</auro-input>
|
|
958
|
-
<auro-input bordered required icon type="credit-card">
|
|
821
|
+
<auro-input icon type="credit-card" bordered required>
|
|
959
822
|
<slot slot="label">Card number</slot>
|
|
960
823
|
<slot slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</slot>
|
|
961
824
|
</auro-input>
|
|
@@ -967,13 +830,10 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
|
|
|
967
830
|
|
|
968
831
|
Use the `type="month-day-year"` attribute for a date formatted input.
|
|
969
832
|
|
|
970
|
-
<div class="exampleWrapper
|
|
833
|
+
<div class="exampleWrapper">
|
|
971
834
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
|
|
972
835
|
<!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
|
|
973
|
-
<auro-input type="month-day-year"
|
|
974
|
-
<slot slot="label">Departure date</slot>
|
|
975
|
-
</auro-input>
|
|
976
|
-
<auro-input bordered type="month-day-year">
|
|
836
|
+
<auro-input type="month-day-year" bordered>
|
|
977
837
|
<slot slot="label">Arrival date</slot>
|
|
978
838
|
</auro-input>
|
|
979
839
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -984,10 +844,7 @@ Use the `type="month-day-year"` attribute for a date formatted input.
|
|
|
984
844
|
<!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
|
|
985
845
|
|
|
986
846
|
```html
|
|
987
|
-
<auro-input type="month-day-year"
|
|
988
|
-
<slot slot="label">Departure date</slot>
|
|
989
|
-
</auro-input>
|
|
990
|
-
<auro-input bordered type="month-day-year">
|
|
847
|
+
<auro-input type="month-day-year" bordered>
|
|
991
848
|
<slot slot="label">Arrival date</slot>
|
|
992
849
|
</auro-input>
|
|
993
850
|
```
|
|
@@ -995,13 +852,10 @@ Use the `type="month-day-year"` attribute for a date formatted input.
|
|
|
995
852
|
</auro-accordion>
|
|
996
853
|
Use the `type="month-year"` attribute for a date formatted input.
|
|
997
854
|
|
|
998
|
-
<div class="exampleWrapper
|
|
855
|
+
<div class="exampleWrapper">
|
|
999
856
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
|
|
1000
857
|
<!-- The below content is automatically added from ../apiExamples/monthYear.html -->
|
|
1001
|
-
<auro-input type="month-year">
|
|
1002
|
-
<slot slot="label">Departure date</slot>
|
|
1003
|
-
</auro-input>
|
|
1004
|
-
<auro-input bordered type="month-year" required>
|
|
858
|
+
<auro-input type="month-year" bordered>
|
|
1005
859
|
<slot slot="label">Arrival date</slot>
|
|
1006
860
|
</auro-input>
|
|
1007
861
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1012,10 +866,7 @@ Use the `type="month-year"` attribute for a date formatted input.
|
|
|
1012
866
|
<!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
|
|
1013
867
|
|
|
1014
868
|
```html
|
|
1015
|
-
<auro-input type="month-year">
|
|
1016
|
-
<slot slot="label">Departure date</slot>
|
|
1017
|
-
</auro-input>
|
|
1018
|
-
<auro-input bordered type="month-year" required>
|
|
869
|
+
<auro-input type="month-year" bordered>
|
|
1019
870
|
<slot slot="label">Arrival date</slot>
|
|
1020
871
|
</auro-input>
|
|
1021
872
|
```
|
|
@@ -1023,13 +874,10 @@ Use the `type="month-year"` attribute for a date formatted input.
|
|
|
1023
874
|
</auro-accordion>
|
|
1024
875
|
Use the `type="month-fullYear"` attribute for a date formatted input.
|
|
1025
876
|
|
|
1026
|
-
<div class="exampleWrapper
|
|
877
|
+
<div class="exampleWrapper">
|
|
1027
878
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthFullYear.html) -->
|
|
1028
879
|
<!-- The below content is automatically added from ../apiExamples/monthFullYear.html -->
|
|
1029
|
-
<auro-input type="month-fullYear">
|
|
1030
|
-
<slot slot="label">Departure date</slot>
|
|
1031
|
-
</auro-input>
|
|
1032
|
-
<auro-input bordered type="month-fullYear" required>
|
|
880
|
+
<auro-input type="month-fullYear" bordered>
|
|
1033
881
|
<slot slot="label">Arrival date</slot>
|
|
1034
882
|
</auro-input>
|
|
1035
883
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1040,10 +888,7 @@ Use the `type="month-fullYear"` attribute for a date formatted input.
|
|
|
1040
888
|
<!-- The below code snippet is automatically added from ../apiExamples/monthFullYear.html -->
|
|
1041
889
|
|
|
1042
890
|
```html
|
|
1043
|
-
<auro-input type="month-fullYear">
|
|
1044
|
-
<slot slot="label">Departure date</slot>
|
|
1045
|
-
</auro-input>
|
|
1046
|
-
<auro-input bordered type="month-fullYear" required>
|
|
891
|
+
<auro-input type="month-fullYear" bordered>
|
|
1047
892
|
<slot slot="label">Arrival date</slot>
|
|
1048
893
|
</auro-input>
|
|
1049
894
|
```
|
|
@@ -1051,13 +896,10 @@ Use the `type="month-fullYear"` attribute for a date formatted input.
|
|
|
1051
896
|
</auro-accordion>
|
|
1052
897
|
Use the `type="year-month-day"` attribute for a date formatted input.
|
|
1053
898
|
|
|
1054
|
-
<div class="exampleWrapper
|
|
899
|
+
<div class="exampleWrapper">
|
|
1055
900
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/yearMonthDay.html) -->
|
|
1056
901
|
<!-- The below content is automatically added from ../apiExamples/yearMonthDay.html -->
|
|
1057
|
-
<auro-input type="year-month-day"
|
|
1058
|
-
<slot slot="label">Departure date</slot>
|
|
1059
|
-
</auro-input>
|
|
1060
|
-
<auro-input bordered type="year-month-day">
|
|
902
|
+
<auro-input type="year-month-day" bordered>
|
|
1061
903
|
<slot slot="label">Arrival date</slot>
|
|
1062
904
|
</auro-input>
|
|
1063
905
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1068,10 +910,7 @@ Use the `type="year-month-day"` attribute for a date formatted input.
|
|
|
1068
910
|
<!-- The below code snippet is automatically added from ../apiExamples/yearMonthDay.html -->
|
|
1069
911
|
|
|
1070
912
|
```html
|
|
1071
|
-
<auro-input type="year-month-day"
|
|
1072
|
-
<slot slot="label">Departure date</slot>
|
|
1073
|
-
</auro-input>
|
|
1074
|
-
<auro-input bordered type="year-month-day">
|
|
913
|
+
<auro-input type="year-month-day" bordered>
|
|
1075
914
|
<slot slot="label">Arrival date</slot>
|
|
1076
915
|
</auro-input>
|
|
1077
916
|
```
|
|
@@ -1079,10 +918,10 @@ Use the `type="year-month-day"` attribute for a date formatted input.
|
|
|
1079
918
|
</auro-accordion>
|
|
1080
919
|
Use the `type="month"` attribute for a date formatted input.
|
|
1081
920
|
|
|
1082
|
-
<div class="exampleWrapper
|
|
921
|
+
<div class="exampleWrapper">
|
|
1083
922
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month.html) -->
|
|
1084
923
|
<!-- The below content is automatically added from ../apiExamples/month.html -->
|
|
1085
|
-
<auro-input type="month">
|
|
924
|
+
<auro-input type="month" bordered>
|
|
1086
925
|
<slot slot="label">Month</slot>
|
|
1087
926
|
</auro-input>
|
|
1088
927
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1093,7 +932,7 @@ Use the `type="month"` attribute for a date formatted input.
|
|
|
1093
932
|
<!-- The below code snippet is automatically added from ../apiExamples/month.html -->
|
|
1094
933
|
|
|
1095
934
|
```html
|
|
1096
|
-
<auro-input type="month">
|
|
935
|
+
<auro-input type="month" bordered>
|
|
1097
936
|
<slot slot="label">Month</slot>
|
|
1098
937
|
</auro-input>
|
|
1099
938
|
```
|
|
@@ -1101,10 +940,10 @@ Use the `type="month"` attribute for a date formatted input.
|
|
|
1101
940
|
</auro-accordion>
|
|
1102
941
|
Use the `type="year"` attribute for a date formatted input.
|
|
1103
942
|
|
|
1104
|
-
<div class="exampleWrapper
|
|
943
|
+
<div class="exampleWrapper">
|
|
1105
944
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year.html) -->
|
|
1106
945
|
<!-- The below content is automatically added from ../apiExamples/year.html -->
|
|
1107
|
-
<auro-input type="year">
|
|
946
|
+
<auro-input type="year" bordered>
|
|
1108
947
|
<slot slot="label">Year</slot>
|
|
1109
948
|
</auro-input>
|
|
1110
949
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1115,7 +954,7 @@ Use the `type="year"` attribute for a date formatted input.
|
|
|
1115
954
|
<!-- The below code snippet is automatically added from ../apiExamples/year.html -->
|
|
1116
955
|
|
|
1117
956
|
```html
|
|
1118
|
-
<auro-input type="year">
|
|
957
|
+
<auro-input type="year" bordered>
|
|
1119
958
|
<slot slot="label">Year</slot>
|
|
1120
959
|
</auro-input>
|
|
1121
960
|
```
|
|
@@ -1123,10 +962,10 @@ Use the `type="year"` attribute for a date formatted input.
|
|
|
1123
962
|
</auro-accordion>
|
|
1124
963
|
Use the `type="fullYear"` attribute for a date formatted input.
|
|
1125
964
|
|
|
1126
|
-
<div class="exampleWrapper
|
|
965
|
+
<div class="exampleWrapper">
|
|
1127
966
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/fullYear.html) -->
|
|
1128
967
|
<!-- The below content is automatically added from ../apiExamples/fullYear.html -->
|
|
1129
|
-
<auro-input type="fullYear">
|
|
968
|
+
<auro-input type="fullYear" bordered>
|
|
1130
969
|
<slot slot="label">Full Year</slot>
|
|
1131
970
|
</auro-input>
|
|
1132
971
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1137,7 +976,7 @@ Use the `type="fullYear"` attribute for a date formatted input.
|
|
|
1137
976
|
<!-- The below code snippet is automatically added from ../apiExamples/fullYear.html -->
|
|
1138
977
|
|
|
1139
978
|
```html
|
|
1140
|
-
<auro-input type="fullYear">
|
|
979
|
+
<auro-input type="fullYear" bordered>
|
|
1141
980
|
<slot slot="label">Full Year</slot>
|
|
1142
981
|
</auro-input>
|
|
1143
982
|
```
|
|
@@ -1146,11 +985,55 @@ Use the `type="fullYear"` attribute for a date formatted input.
|
|
|
1146
985
|
|
|
1147
986
|
## Additional Use Cases
|
|
1148
987
|
|
|
988
|
+
### Reset State
|
|
989
|
+
|
|
990
|
+
Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
991
|
+
|
|
992
|
+
<div class="exampleWrapper">
|
|
993
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/resetState.html) -->
|
|
994
|
+
<!-- The below content is automatically added from ../apiExamples/resetState.html -->
|
|
995
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
996
|
+
<br /><br />
|
|
997
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
998
|
+
<slot slot="label">Full Name</slot>
|
|
999
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1000
|
+
</auro-input>
|
|
1001
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1002
|
+
</div>
|
|
1003
|
+
<auro-accordion alignRight>
|
|
1004
|
+
<span slot="trigger">See code</span>
|
|
1005
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.html) -->
|
|
1006
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.html -->
|
|
1007
|
+
|
|
1008
|
+
```html
|
|
1009
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1010
|
+
<br /><br />
|
|
1011
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1012
|
+
<slot slot="label">Full Name</slot>
|
|
1013
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1014
|
+
</auro-input>
|
|
1015
|
+
```
|
|
1016
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1017
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.js) -->
|
|
1018
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.js -->
|
|
1019
|
+
|
|
1020
|
+
```js
|
|
1021
|
+
export function resetStateExample() {
|
|
1022
|
+
const elem = document.querySelector('#resetStateExample');
|
|
1023
|
+
|
|
1024
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
1025
|
+
elem.reset();
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
```
|
|
1029
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1030
|
+
</auro-accordion>
|
|
1031
|
+
|
|
1149
1032
|
### Swapping Values Between Inputs
|
|
1150
1033
|
|
|
1151
1034
|
Example illustrates using a JavaScript function attached to an `auro-button` component `click` event to swap the values of two `auro-input` elements. An example of this use case would be swapping the departure and arrival airports in a flight search form.
|
|
1152
1035
|
|
|
1153
|
-
<div class="exampleWrapper
|
|
1036
|
+
<div class="exampleWrapper">
|
|
1154
1037
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/swapValue.html) -->
|
|
1155
1038
|
<!-- The below content is automatically added from ../apiExamples/swapValue.html -->
|
|
1156
1039
|
<auro-input id="swapExampleLeft" bordered>
|