@aurodesignsystem/auro-formkit 1.6.0-beta.8 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/cache/013a48308b893dac-meta.json +1 -0
- package/.turbo/cache/0663fcbb1d711029-meta.json +1 -0
- package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -0
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +1 -0
- package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -0
- package/.turbo/cache/120c8e207aa1ba35-meta.json +1 -0
- package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
- package/.turbo/cache/141bb7d9a95e288b-meta.json +1 -0
- package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -0
- package/.turbo/cache/17dd4bdef6550a07-meta.json +1 -0
- package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +1 -0
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +1 -0
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +1 -0
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +1 -0
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +1 -0
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -0
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -0
- package/.turbo/cache/626afdc67e0cb540-meta.json +1 -0
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -0
- package/.turbo/cache/691a74627ec57993-meta.json +1 -0
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -0
- package/.turbo/cache/6ef81cf9a66f982a-meta.json +1 -0
- package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -0
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +1 -0
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/786a822763403879-meta.json +1 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +1 -0
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -0
- package/.turbo/cache/9154e8fe6ab767ea-meta.json +1 -0
- package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +1 -0
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +1 -0
- package/.turbo/cache/a49cc58242467fdc-meta.json +1 -0
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +1 -0
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -0
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/af061e7a077a9ba5-meta.json +1 -0
- package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
- package/.turbo/cache/b50f1b283b4b81cd-meta.json +1 -0
- package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -0
- package/.turbo/cache/bb8b41cd0ade3986-meta.json +1 -0
- package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -0
- package/.turbo/cache/{7e81141e0140dd3a.tar.zst → be7c23c37b8ec74b.tar.zst} +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +1 -0
- package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -0
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -0
- package/.turbo/cache/cd5f6987783fb56d-meta.json +1 -0
- package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
- package/.turbo/cache/cd845bb6102c589a-meta.json +1 -0
- package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
- package/.turbo/cache/ce67b6522dd09e64-meta.json +1 -0
- package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +1 -0
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -0
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -0
- package/.turbo/cache/ff58f630c9d69af4-meta.json +1 -0
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
- package/CHANGELOG.md +73 -0
- package/components/checkbox/.turbo/turbo-build.log +6 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +63 -4
- package/components/checkbox/demo/api.min.js +84 -13
- package/components/checkbox/demo/index.min.js +59 -13
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -0
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +59 -13
- package/components/checkbox/src/auro-checkbox-group.js +18 -6
- package/components/checkbox/src/auro-checkbox.js +9 -0
- package/components/combobox/.turbo/turbo-build.log +6 -3
- package/components/combobox/demo/api.js +4 -2
- package/components/combobox/demo/api.md +60 -1
- package/components/combobox/demo/api.min.js +159 -113
- package/components/combobox/demo/index.min.js +150 -113
- package/components/combobox/dist/auro-combobox.d.ts +5 -1
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +145 -76
- package/components/combobox/src/auro-combobox.js +14 -3
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/.turbo/turbo-build.log +5 -2
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +46 -1
- package/components/datepicker/demo/api.min.js +156 -79
- package/components/datepicker/demo/index.min.js +147 -79
- package/components/datepicker/dist/auro-calendar.d.ts.map +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +5 -2
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +147 -79
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +1 -2
- package/components/datepicker/dist/utilitiesCalendar.d.ts.map +1 -1
- package/components/datepicker/package.json +1 -1
- package/components/datepicker/src/auro-calendar.js +1 -0
- package/components/datepicker/src/auro-datepicker.js +14 -4
- package/components/datepicker/src/popoverVersion.js +1 -1
- package/components/datepicker/src/utilitiesCalendar.js +0 -1
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +3 -3
- package/components/dropdown/demo/api.min.js +37 -25
- package/components/dropdown/demo/index.min.js +37 -25
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +37 -25
- package/components/dropdown/package.json +1 -1
- package/components/dropdown/src/auro-dropdown.js +2 -2
- 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 +1 -0
- package/components/dropdown/src/styles/style.scss +1 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build$colon$sass.log +2 -2
- package/components/input/.turbo/turbo-build.log +16 -13
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +183 -135
- package/components/input/demo/api.min.js +74 -44
- package/components/input/demo/index.min.js +62 -41
- package/components/input/dist/base-input.d.ts +8 -18
- 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 +62 -41
- package/components/input/package.json +2 -2
- package/components/input/src/base-input.js +23 -29
- package/components/input/src/buttonVersion.js +1 -1
- package/components/input/src/iconVersion.js +1 -1
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +13 -0
- package/components/input/src/styles/input.scss +21 -0
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +3 -3
- package/components/input/src/styles/label.scss +1 -2
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +7 -0
- package/components/input/src/styles/notificationIcons.scss +14 -0
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +23 -3
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/demo/api.md +1 -5
- package/components/menu/demo/api.min.js +5 -37
- package/components/menu/demo/index.min.js +5 -37
- package/components/menu/dist/auro-menu.d.ts +0 -4
- 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 +5 -37
- package/components/menu/package.json +1 -1
- package/components/menu/src/auro-menu.js +0 -32
- package/components/menu/src/auro-menuoption.js +1 -2
- package/components/menu/src/iconVersion.js +1 -1
- package/components/radio/.turbo/turbo-build.log +6 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.js +2 -0
- package/components/radio/demo/api.md +57 -3
- package/components/radio/demo/api.min.js +55 -12
- package/components/radio/demo/index.min.js +46 -12
- 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 +46 -12
- package/components/radio/src/auro-radio-group.js +5 -5
- package/components/radio/src/auro-radio.js +9 -0
- package/components/select/.turbo/turbo-build.log +10 -7
- package/components/select/demo/api.js +6 -2
- package/components/select/demo/api.md +137 -70
- package/components/select/demo/api.min.js +105 -73
- package/components/select/demo/index.min.js +85 -73
- package/components/select/dist/auro-select.d.ts +5 -1
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +80 -36
- package/components/select/src/auro-select.js +11 -4
- package/package.json +2 -2
- package/packages/form-validation/src/validation.js +32 -7
- 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/0157ec8abdaf2a9c-meta.json +0 -1
- 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/17c429ade621ffcb-meta.json +0 -1
- 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/21705fa179d5f820-meta.json +0 -1
- package/.turbo/cache/21705fa179d5f820.tar.zst +0 -0
- package/.turbo/cache/249d9ba3ee6aa1cb-meta.json +0 -1
- 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/300b59df2de12b46-meta.json +0 -1
- package/.turbo/cache/300b59df2de12b46.tar.zst +0 -0
- package/.turbo/cache/31729e74fccaafb0-meta.json +0 -1
- package/.turbo/cache/32702694d62a08ac-meta.json +0 -1
- 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/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/7419ef01dc18b433-meta.json +0 -1
- package/.turbo/cache/748faca09d14fea7-meta.json +0 -1
- 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/7eb50d96639e6dd4-meta.json +0 -1
- package/.turbo/cache/7eb50d96639e6dd4.tar.zst +0 -0
- package/.turbo/cache/83bb78fec13808d0-meta.json +0 -1
- 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/8cac06ca809bd2b1-meta.json +0 -1
- 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/a3a879aea25debf8-meta.json +0 -1
- 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/afd81e4f9d4bb74d-meta.json +0 -1
- package/.turbo/cache/afd81e4f9d4bb74d.tar.zst +0 -0
- package/.turbo/cache/b37b0eb5597e160f-meta.json +0 -1
- 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/bde11c3029373459-meta.json +0 -1
- 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/d61b4e1bde4c0a12-meta.json +0 -1
- 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/e67ac30b07d9e800-meta.json +0 -1
- package/.turbo/cache/e67ac30b07d9e800.tar.zst +0 -0
- package/.turbo/cache/e7244fdd3397eba7-meta.json +0 -1
- package/.turbo/cache/e7cf2cc625bd92b3-meta.json +0 -1
- package/.turbo/cache/e89a401ebdda3fc2-meta.json +0 -1
- 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
- /package/.turbo/cache/{b37b0eb5597e160f.tar.zst → 013a48308b893dac.tar.zst} +0 -0
- /package/.turbo/cache/{8cac06ca809bd2b1.tar.zst → 07ca42419b9f050c.tar.zst} +0 -0
- /package/.turbo/cache/{e7244fdd3397eba7.tar.zst → 0cea4c1f34f3683b.tar.zst} +0 -0
- /package/.turbo/cache/{e89a401ebdda3fc2.tar.zst → 17259cf94d8f8925.tar.zst} +0 -0
- /package/.turbo/cache/{a3a879aea25debf8.tar.zst → 1c99a949ec63ab35.tar.zst} +0 -0
- /package/.turbo/cache/{17c429ade621ffcb.tar.zst → 257a7a26ea72dbc5.tar.zst} +0 -0
- /package/.turbo/cache/{d0e874a9a71c9468.tar.zst → 3bf45120d0cc9bd8.tar.zst} +0 -0
- /package/.turbo/cache/{0cd109fb3183c2e6.tar.zst → 45035bf5c4147ccd.tar.zst} +0 -0
- /package/.turbo/cache/{bde11c3029373459.tar.zst → 5c16ce3cff5c9dff.tar.zst} +0 -0
- /package/.turbo/cache/{1db02f756ce85784.tar.zst → 5f304c0f37ef25f3.tar.zst} +0 -0
- /package/.turbo/cache/{9ed3089ffd7d0c00.tar.zst → 64de7a53e02db647.tar.zst} +0 -0
- /package/.turbo/cache/{32702694d62a08ac.tar.zst → 691a74627ec57993.tar.zst} +0 -0
- /package/.turbo/cache/{00cb38bef1105dac.tar.zst → 69aae513b7ec6c7d.tar.zst} +0 -0
- /package/.turbo/cache/{e7cf2cc625bd92b3.tar.zst → 6dd7058e6703cb35.tar.zst} +0 -0
- /package/.turbo/cache/{748faca09d14fea7.tar.zst → 73e9073a5274616d.tar.zst} +0 -0
- /package/.turbo/cache/{83bb78fec13808d0.tar.zst → 773edc0f83c8c5a5.tar.zst} +0 -0
- /package/.turbo/cache/{892a90b62716ded5.tar.zst → 786a822763403879.tar.zst} +0 -0
- /package/.turbo/cache/{7419ef01dc18b433.tar.zst → 80b5d974184a01df.tar.zst} +0 -0
- /package/.turbo/cache/{0157ec8abdaf2a9c.tar.zst → 8954c6073396fadd.tar.zst} +0 -0
- /package/.turbo/cache/{bc8eed3d7216f5b7.tar.zst → 92daa6d7c389d548.tar.zst} +0 -0
- /package/.turbo/cache/{e541225f46f7cf86.tar.zst → 9a097d6576dadd64.tar.zst} +0 -0
- /package/.turbo/cache/{2778d5e895240cd1.tar.zst → b54fc4f664a7a5a0.tar.zst} +0 -0
- /package/.turbo/cache/{a8f6418b830ef0ba.tar.zst → ba4418918621fbcd.tar.zst} +0 -0
- /package/.turbo/cache/{4bec46ffff6fd2e8.tar.zst → cc81de9c0b452a7c.tar.zst} +0 -0
- /package/.turbo/cache/{31729e74fccaafb0.tar.zst → dad1301ac69bcb85.tar.zst} +0 -0
- /package/.turbo/cache/{d61b4e1bde4c0a12.tar.zst → fa132b5b5f0e75f8.tar.zst} +0 -0
- /package/.turbo/cache/{249d9ba3ee6aa1cb.tar.zst → fbbe2704bf9cb90b.tar.zst} +0 -0
|
@@ -31,52 +31,50 @@ Generate unique names for dependency components.
|
|
|
31
31
|
|
|
32
32
|
## Properties
|
|
33
33
|
|
|
34
|
-
| Property | Attribute | Type | Default
|
|
35
|
-
|
|
36
|
-
| [activeLabel](#activeLabel) | `activeLabel` | `Boolean` | false
|
|
37
|
-
| [autocapitalize](#autocapitalize) | `autocapitalize` | `String` |
|
|
38
|
-
| [autocomplete](#autocomplete) | `autocomplete` | `String` |
|
|
39
|
-
| [autocorrect](#autocorrect) | `autocorrect` | `String` |
|
|
40
|
-
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` |
|
|
41
|
-
| [disabled](#disabled) | `disabled` | `Boolean` | false
|
|
42
|
-
| [error](#error) | `error` | `String` |
|
|
43
|
-
| [errorMessage](#errorMessage) | `errorMessage` | `String` |
|
|
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. |
|
|
34
|
+
| Property | Attribute | Type | Default | Description |
|
|
35
|
+
|-----------------------------------|-----------------------------------|-----------|-------------|--------------------------------------------------|
|
|
36
|
+
| [activeLabel](#activeLabel) | `activeLabel` | `Boolean` | false | If set, the label will remain fixed in the active position. |
|
|
37
|
+
| [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] |
|
|
38
|
+
| [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. |
|
|
39
|
+
| [autocorrect](#autocorrect) | `autocorrect` | `String` | | When set to `off`, stops iOS from auto correcting words when typed into a text box. |
|
|
40
|
+
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` | | |
|
|
41
|
+
| [disabled](#disabled) | `disabled` | `Boolean` | false | If set, disables the input. |
|
|
42
|
+
| [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
43
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `String` | | Contains the help text message for the current validity error. |
|
|
44
|
+
| [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. |
|
|
45
|
+
| [id](#id) | `id` | `String` | | Sets the unique ID of the element. |
|
|
46
|
+
| [lang](#lang) | `lang` | `String` | | defines the language of an element. |
|
|
47
|
+
| [max](#max) | `max` | `String` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
48
|
+
| [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. |
|
|
49
|
+
| [min](#min) | `min` | `String` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
50
|
+
| [minLength](#minLength) | `minLength` | `Number` | "undefined" | The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`. |
|
|
51
|
+
| [name](#name) | `name` | `String` | | Populates the `name` attribute on the input. |
|
|
52
|
+
| [noValidate](#noValidate) | `noValidate` | `Boolean` | false | If set, disables auto-validation on blur. |
|
|
53
|
+
| [pattern](#pattern) | `pattern` | `String` | | Specifies a regular expression the form control's value should match. |
|
|
54
|
+
| [placeholder](#placeholder) | `placeholder` | `String` | | Define custom placeholder text, only supported by date input formats. |
|
|
55
|
+
| [readonly](#readonly) | `readonly` | `Boolean` | | Makes the input read-only, but can be set programmatically. |
|
|
56
|
+
| [required](#required) | `required` | `Boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
57
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
|
|
58
|
+
| [setCustomValidityBadInput](#setCustomValidityBadInput) | `setCustomValidityBadInput` | `String` | | Custom help text message to display when validity = `badInput`. |
|
|
59
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `String` | | Custom help text message to display when validity = `customError`. |
|
|
60
|
+
| [setCustomValidityForType](#setCustomValidityForType) | `setCustomValidityForType` | `String` | "undefined" | Custom help text message to display for the declared element `type` and type validity fails. |
|
|
61
|
+
| [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `String` | | Custom help text message to display when validity = `rangeOverflow`. |
|
|
62
|
+
| [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `String` | | Custom help text message to display when validity = `rangeUnderflow`. |
|
|
63
|
+
| [setCustomValidityTooLong](#setCustomValidityTooLong) | `setCustomValidityTooLong` | `String` | | Custom help text message to display when validity = `tooLong`. |
|
|
64
|
+
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `String` | | Custom help text message to display when validity = `tooShort`. |
|
|
65
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Custom help text message to display when validity = `valueMissing`. |
|
|
66
|
+
| [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`. |
|
|
67
|
+
| [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`. |
|
|
68
|
+
| [validateOnInput](#validateOnInput) | `validateOnInput` | `Boolean` | | Sets validation mode to re-eval with each input. |
|
|
69
|
+
| [validity](#validity) | `validity` | `String` | | Specifies the `validityState` this element is in. |
|
|
70
|
+
| [value](#value) | `value` | `String` | | Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input. |
|
|
74
71
|
|
|
75
72
|
## Methods
|
|
76
73
|
|
|
77
74
|
| Method | Type | Description |
|
|
78
75
|
|--------------|---------------|------------------------------------------|
|
|
79
76
|
| [isDateType](#isDateType) | `(): boolean` | |
|
|
77
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
80
78
|
| [validate](#validate) | `(): void` | Public method force validation of input. |
|
|
81
79
|
|
|
82
80
|
## Events
|
|
@@ -238,7 +236,7 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
238
236
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/value.html) -->
|
|
239
237
|
<!-- The below content is automatically added from ../apiExamples/value.html -->
|
|
240
238
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
241
|
-
<auro-button id="
|
|
239
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
242
240
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
243
241
|
<span slot="label">Name</span>
|
|
244
242
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -252,7 +250,7 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
252
250
|
|
|
253
251
|
```html
|
|
254
252
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
255
|
-
<auro-button id="
|
|
253
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
256
254
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
257
255
|
<span slot="label">Name</span>
|
|
258
256
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -268,12 +266,12 @@ export function programmaticallySetValue() {
|
|
|
268
266
|
|
|
269
267
|
// set value of auro-input element
|
|
270
268
|
document.querySelector('#setValidValueBtn').addEventListener('click', () => {
|
|
271
|
-
|
|
269
|
+
elem.value = "Alaska Airlines is the best";
|
|
272
270
|
});
|
|
273
271
|
|
|
274
272
|
// reset the value of auro-input element
|
|
275
|
-
document.querySelector('#
|
|
276
|
-
|
|
273
|
+
document.querySelector('#setUndefinedValueBtn').addEventListener('click', () => {
|
|
274
|
+
elem.value = undefined;
|
|
277
275
|
});
|
|
278
276
|
}
|
|
279
277
|
```
|
|
@@ -281,9 +279,9 @@ export function programmaticallySetValue() {
|
|
|
281
279
|
</auro-accordion>
|
|
282
280
|
|
|
283
281
|
### 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 `
|
|
282
|
+
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
283
|
|
|
286
|
-
The `
|
|
284
|
+
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
285
|
|
|
288
286
|
#### Date Example
|
|
289
287
|
|
|
@@ -308,11 +306,11 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
308
306
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
309
307
|
</auro-accordion>
|
|
310
308
|
|
|
311
|
-
####
|
|
309
|
+
#### Number Example
|
|
312
310
|
|
|
313
311
|
<div class="exampleWrapper">
|
|
314
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
315
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
312
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
|
|
313
|
+
<!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
|
|
316
314
|
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
317
315
|
<span slot="label">Choose a number</span>
|
|
318
316
|
</auro-input>
|
|
@@ -320,8 +318,8 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
320
318
|
</div>
|
|
321
319
|
<auro-accordion alignRight>
|
|
322
320
|
<span slot="trigger">See code</span>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
324
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
321
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxNumber.html) -->
|
|
322
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
|
|
325
323
|
|
|
326
324
|
```html
|
|
327
325
|
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
@@ -331,10 +329,46 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
331
329
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
330
|
</auro-accordion>
|
|
333
331
|
|
|
332
|
+
#### Max Length <a name="maxLength"></a>
|
|
333
|
+
Use the `maxlength` attribute to control the length of the input entered.
|
|
334
|
+
|
|
335
|
+
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.
|
|
336
|
+
|
|
337
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
338
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
339
|
+
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
340
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
341
|
+
<slot slot="label">Voucher Code</slot>
|
|
342
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
343
|
+
</auro-input>
|
|
344
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
345
|
+
<slot slot="label">Voucher Code</slot>
|
|
346
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
347
|
+
</auro-input>
|
|
348
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
349
|
+
</div>
|
|
350
|
+
<auro-accordion alignRight>
|
|
351
|
+
<span slot="trigger">See code</span>
|
|
352
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
353
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
354
|
+
|
|
355
|
+
```html
|
|
356
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
357
|
+
<slot slot="label">Voucher Code</slot>
|
|
358
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
359
|
+
</auro-input>
|
|
360
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
361
|
+
<slot slot="label">Voucher Code</slot>
|
|
362
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
363
|
+
</auro-input>
|
|
364
|
+
```
|
|
365
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
366
|
+
</auro-accordion>
|
|
367
|
+
|
|
334
368
|
### 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
|
|
369
|
+
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
370
|
|
|
337
|
-
The `
|
|
371
|
+
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
372
|
|
|
339
373
|
#### Date Example
|
|
340
374
|
|
|
@@ -359,11 +393,11 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
359
393
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
360
394
|
</auro-accordion>
|
|
361
395
|
|
|
362
|
-
####
|
|
396
|
+
#### Number Example
|
|
363
397
|
|
|
364
398
|
<div class="exampleWrapper">
|
|
365
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
366
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
399
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
|
|
400
|
+
<!-- The below content is automatically added from ../apiExamples/minNumber.html -->
|
|
367
401
|
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
368
402
|
<span slot="label">Choose a number</span>
|
|
369
403
|
</auro-input>
|
|
@@ -371,8 +405,8 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
371
405
|
</div>
|
|
372
406
|
<auro-accordion alignRight>
|
|
373
407
|
<span slot="trigger">See code</span>
|
|
374
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
375
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
408
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minNumber.html) -->
|
|
409
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
|
|
376
410
|
|
|
377
411
|
```html
|
|
378
412
|
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
@@ -382,6 +416,42 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
382
416
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
417
|
</auro-accordion>
|
|
384
418
|
|
|
419
|
+
### Min Length <a name="minLength"></a>
|
|
420
|
+
Use the `minlength` attribute to control the length of the input entered.
|
|
421
|
+
|
|
422
|
+
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.
|
|
423
|
+
|
|
424
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
425
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
426
|
+
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
427
|
+
<auro-input required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
428
|
+
<slot slot="label">Voucher Code</slot>
|
|
429
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
430
|
+
</auro-input>
|
|
431
|
+
<auro-input bordered required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
432
|
+
<slot slot="label">Voucher Code</slot>
|
|
433
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
434
|
+
</auro-input>
|
|
435
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
436
|
+
</div>
|
|
437
|
+
<auro-accordion alignRight>
|
|
438
|
+
<span slot="trigger">See code</span>
|
|
439
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minLength.html) -->
|
|
440
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
441
|
+
|
|
442
|
+
```html
|
|
443
|
+
<auro-input required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
444
|
+
<slot slot="label">Voucher Code</slot>
|
|
445
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
446
|
+
</auro-input>
|
|
447
|
+
<auro-input bordered required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
448
|
+
<slot slot="label">Voucher Code</slot>
|
|
449
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
450
|
+
</auro-input>
|
|
451
|
+
```
|
|
452
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
453
|
+
</auro-accordion>
|
|
454
|
+
|
|
385
455
|
### Pattern <a name="pattern"></a>
|
|
386
456
|
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.
|
|
387
457
|
|
|
@@ -796,16 +866,18 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
796
866
|
|
|
797
867
|
Use the `type="number"` attribute for a numeric style input and invoke a numeric virtual keyboard on handheld devices.
|
|
798
868
|
|
|
869
|
+
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.
|
|
870
|
+
|
|
799
871
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
800
872
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
|
|
801
873
|
<!-- The below content is automatically added from ../apiExamples/number.html -->
|
|
802
874
|
<auro-input required type="number">
|
|
803
|
-
<slot slot="label">
|
|
804
|
-
<slot slot="helptext">Please enter
|
|
875
|
+
<slot slot="label">Number of Passengers</slot>
|
|
876
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
805
877
|
</auro-input>
|
|
806
878
|
<auro-input bordered required type="number">
|
|
807
|
-
<slot slot="label">
|
|
808
|
-
<slot slot="helptext">Please enter
|
|
879
|
+
<slot slot="label">Number of Passengers</slot>
|
|
880
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
809
881
|
</auro-input>
|
|
810
882
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
811
883
|
</div>
|
|
@@ -816,80 +888,12 @@ Use the `type="number"` attribute for a numeric style input and invoke a numeric
|
|
|
816
888
|
|
|
817
889
|
```html
|
|
818
890
|
<auro-input required type="number">
|
|
819
|
-
<slot slot="label">
|
|
820
|
-
<slot slot="helptext">Please enter
|
|
891
|
+
<slot slot="label">Number of Passengers</slot>
|
|
892
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
821
893
|
</auro-input>
|
|
822
894
|
<auro-input bordered required type="number">
|
|
823
|
-
<slot slot="label">
|
|
824
|
-
<slot slot="helptext">Please enter
|
|
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>
|
|
895
|
+
<slot slot="label">Number of Passengers</slot>
|
|
896
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
893
897
|
</auro-input>
|
|
894
898
|
```
|
|
895
899
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1146,6 +1150,50 @@ Use the `type="fullYear"` attribute for a date formatted input.
|
|
|
1146
1150
|
|
|
1147
1151
|
## Additional Use Cases
|
|
1148
1152
|
|
|
1153
|
+
### Reset State
|
|
1154
|
+
|
|
1155
|
+
Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
1156
|
+
|
|
1157
|
+
<div class="exampleWrapper">
|
|
1158
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/resetState.html) -->
|
|
1159
|
+
<!-- The below content is automatically added from ../apiExamples/resetState.html -->
|
|
1160
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1161
|
+
<br /><br />
|
|
1162
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1163
|
+
<slot slot="label">Full Name</slot>
|
|
1164
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1165
|
+
</auro-input>
|
|
1166
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1167
|
+
</div>
|
|
1168
|
+
<auro-accordion alignRight>
|
|
1169
|
+
<span slot="trigger">See code</span>
|
|
1170
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.html) -->
|
|
1171
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.html -->
|
|
1172
|
+
|
|
1173
|
+
```html
|
|
1174
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1175
|
+
<br /><br />
|
|
1176
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1177
|
+
<slot slot="label">Full Name</slot>
|
|
1178
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1179
|
+
</auro-input>
|
|
1180
|
+
```
|
|
1181
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1182
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.js) -->
|
|
1183
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.js -->
|
|
1184
|
+
|
|
1185
|
+
```js
|
|
1186
|
+
export function resetStateExample() {
|
|
1187
|
+
const elem = document.querySelector('#resetStateExample');
|
|
1188
|
+
|
|
1189
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
1190
|
+
elem.reset();
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
```
|
|
1194
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1195
|
+
</auro-accordion>
|
|
1196
|
+
|
|
1149
1197
|
### Swapping Values Between Inputs
|
|
1150
1198
|
|
|
1151
1199
|
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.
|