@aurodesignsystem/auro-formkit 1.6.0-beta.9 → 2.0.0-beta.2
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/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/47ba2b5ebdb579e9-meta.json +1 -0
- package/.turbo/cache/47ba2b5ebdb579e9.tar.zst +0 -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/8b735250fa5a62bf-meta.json +1 -0
- package/.turbo/cache/8b735250fa5a62bf.tar.zst +0 -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/{06f476671015e973.tar.zst → 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/be7c23c37b8ec74b-meta.json +1 -0
- package/.turbo/cache/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/ce67b6522dd09e64-meta.json +1 -0
- package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
- package/.turbo/cache/d716cb7a08152beb-meta.json +1 -0
- package/.turbo/cache/d716cb7a08152beb.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 +74 -0
- package/components/checkbox/.turbo/turbo-build.log +6 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/README.md +8 -8
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +104 -45
- package/components/checkbox/demo/api.min.js +85 -14
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +60 -14
- 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 +6 -1
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +60 -14
- package/components/checkbox/src/auro-checkbox-group.js +18 -6
- package/components/checkbox/src/auro-checkbox.js +10 -1
- 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 +6 -3
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +46 -1
- package/components/datepicker/demo/api.min.js +155 -78
- package/components/datepicker/demo/index.min.js +146 -78
- 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 +146 -78
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/package.json +1 -1
- package/components/datepicker/src/auro-datepicker.js +14 -4
- package/components/datepicker/src/popoverVersion.js +1 -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/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/68843ecab6e09320-meta.json +0 -1
- package/.turbo/cache/68843ecab6e09320.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/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/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/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
|
@@ -22,13 +22,9 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
|
|
|
22
22
|
* @attr {String} value - Value selected for the menu.
|
|
23
23
|
* @prop {Boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
24
24
|
* @event auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
25
|
-
* @event selectedOption - (DEPRECATED) Notifies that a new menuoption selection has been made.
|
|
26
25
|
* @event auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
27
|
-
* @event auroMenuActivatedOption - (DEPRECATED) Notifies that a menuoption has been made `active`.
|
|
28
26
|
* @event auroMenu-selectValueFailure - Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
29
|
-
* @event auroMenuSelectValueFailure - (DEPRECATED) Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
30
27
|
* @event auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
31
|
-
* @event auroMenuCustomEventFired - (DEPRECATED) Notifies that a custom event has been fired.
|
|
32
28
|
* @event auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
33
29
|
* @event auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
34
30
|
* @slot loadingText - Text to show while loading attribute is set
|
|
@@ -237,13 +233,6 @@ export class AuroMenu extends LitElement {
|
|
|
237
233
|
* @return {void}
|
|
238
234
|
*/
|
|
239
235
|
notifySelectionChange() {
|
|
240
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
241
|
-
this.dispatchEvent(new CustomEvent('selectedOption', {
|
|
242
|
-
bubbles: true,
|
|
243
|
-
cancelable: false,
|
|
244
|
-
composed: true,
|
|
245
|
-
}));
|
|
246
|
-
|
|
247
236
|
this.dispatchEvent(new CustomEvent('auroMenu-selectedOption', {
|
|
248
237
|
bubbles: true,
|
|
249
238
|
cancelable: false,
|
|
@@ -275,13 +264,6 @@ export class AuroMenu extends LitElement {
|
|
|
275
264
|
composed: true,
|
|
276
265
|
}));
|
|
277
266
|
|
|
278
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
279
|
-
this.dispatchEvent(new CustomEvent('auroMenuCustomEventFired', {
|
|
280
|
-
bubbles: true,
|
|
281
|
-
cancelable: false,
|
|
282
|
-
composed: true,
|
|
283
|
-
}));
|
|
284
|
-
|
|
285
267
|
this.dispatchEvent(new CustomEvent('auroMenu-customEventFired', {
|
|
286
268
|
bubbles: true,
|
|
287
269
|
cancelable: false,
|
|
@@ -444,13 +426,6 @@ export class AuroMenu extends LitElement {
|
|
|
444
426
|
// reset the menu to no selection
|
|
445
427
|
this.index = undefined;
|
|
446
428
|
|
|
447
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
448
|
-
this.dispatchEvent(new CustomEvent('auroMenuSelectValueFailure', {
|
|
449
|
-
bubbles: true,
|
|
450
|
-
cancelable: false,
|
|
451
|
-
composed: true,
|
|
452
|
-
}));
|
|
453
|
-
|
|
454
429
|
this.dispatchEvent(new CustomEvent('auroMenu-selectValueFailure', {
|
|
455
430
|
bubbles: true,
|
|
456
431
|
cancelable: false,
|
|
@@ -482,13 +457,6 @@ export class AuroMenu extends LitElement {
|
|
|
482
457
|
this.items[index].classList.add('active');
|
|
483
458
|
this.optionActive = this.items[index];
|
|
484
459
|
|
|
485
|
-
this.dispatchEvent(new CustomEvent('auroMenuActivatedOption', {
|
|
486
|
-
bubbles: true,
|
|
487
|
-
cancelable: false,
|
|
488
|
-
composed: true,
|
|
489
|
-
detail: this.items[index]
|
|
490
|
-
}));
|
|
491
|
-
|
|
492
460
|
this.dispatchEvent(new CustomEvent('auroMenu-activatedOption', {
|
|
493
461
|
bubbles: true,
|
|
494
462
|
cancelable: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '6.1.
|
|
1
|
+
export default '6.1.2';
|
|
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
|
|
|
138
138
|
|
|
139
139
|
[36m
|
|
140
140
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
141
|
-
[32mcreated [1mdist[22m in [
|
|
141
|
+
[32mcreated [1mdist[22m in [1m566ms[22m[39m
|
|
142
142
|
[36m
|
|
143
143
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
144
|
-
[32mcreated [1m./demo/[22m in [
|
|
144
|
+
[32mcreated [1m./demo/[22m in [1m449ms[22m[39m
|
|
145
145
|
[36m
|
|
146
146
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
147
|
-
[32mcreated [1m./demo/[22m in [
|
|
147
|
+
[32mcreated [1m./demo/[22m in [1m502ms[22m[39m
|
|
148
148
|
|
|
149
149
|
> @auro-formkit/auro-radio@4.1.1 build:docs
|
|
150
150
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio
|
|
@@ -193,6 +193,7 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/radio/
|
|
|
193
193
|
⁕ FILE:src=./../apiExamples/horizontal.html
|
|
194
194
|
⁕ FILE:src=./../apiExamples/required.html
|
|
195
195
|
⁕ FILE:src=./../apiExamples/optionalLabel.html
|
|
196
|
+
⁕ FILE:src=./../apiExamples/resetState.html
|
|
196
197
|
⁕ FILE:src=./../apiExamples/dynamic.html
|
|
197
198
|
⁕ CODE:src=./../apiExamples/basic.html
|
|
198
199
|
⁕ CODE:src=./../apiExamples/basicGroup.html
|
|
@@ -202,6 +203,8 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/radio/
|
|
|
202
203
|
⁕ CODE:src=./../apiExamples/horizontal.html
|
|
203
204
|
⁕ CODE:src=./../apiExamples/required.html
|
|
204
205
|
⁕ CODE:src=./../apiExamples/optionalLabel.html
|
|
206
|
+
⁕ CODE:src=./../apiExamples/resetState.html
|
|
207
|
+
⁕ CODE:src=./../apiExamples/resetState.js
|
|
205
208
|
⁕ CODE:src=./../apiExamples/dynamic.html
|
|
206
209
|
⁕ CODE:src=./../apiExamples/dynamic.js
|
|
207
210
|
⁕ CODE:src=./../src/styles/tokens.scss
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
7
|
-
[32mcreated [1mdist[22m in [
|
|
7
|
+
[32mcreated [1mdist[22m in [1m693ms[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m437ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m412ms[22m[39m
|
|
@@ -46,5 +46,6 @@
|
|
|
46
46
|
|
|
47
47
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
48
48
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
|
|
49
50
|
</body>
|
|
50
51
|
</html>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { dynamicExample } from "../apiExamples/dynamic";
|
|
2
|
+
import { resetStateExample } from "../apiExamples/resetState";
|
|
2
3
|
import './index.js';
|
|
3
4
|
|
|
4
5
|
export function initExamples(initCount) {
|
|
@@ -6,6 +7,7 @@ export function initExamples(initCount) {
|
|
|
6
7
|
|
|
7
8
|
try {
|
|
8
9
|
dynamicExample();
|
|
10
|
+
resetStateExample();
|
|
9
11
|
} catch (error) {
|
|
10
12
|
if (initCount <= 20) {
|
|
11
13
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
## Methods
|
|
23
23
|
|
|
24
|
-
| Method | Type | Description
|
|
25
|
-
|
|
26
|
-
| [reset](#reset) | `(): void` |
|
|
24
|
+
| Method | Type | Description |
|
|
25
|
+
|---------|------------|------------------------------------|
|
|
26
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
27
27
|
|
|
28
28
|
## Events
|
|
29
29
|
|
|
@@ -61,6 +61,12 @@
|
|
|
61
61
|
| [tabIndex](#tabIndex) | `tabIndex` | `number` | -1 | |
|
|
62
62
|
| [value](#value) | `value` | `string` | | |
|
|
63
63
|
|
|
64
|
+
## Methods
|
|
65
|
+
|
|
66
|
+
| Method | Type | Description |
|
|
67
|
+
|---------|------------|------------------------------------|
|
|
68
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
69
|
+
|
|
64
70
|
## Events
|
|
65
71
|
|
|
66
72
|
| Event | Type | Description |
|
|
@@ -328,6 +334,54 @@ The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can o
|
|
|
328
334
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
329
335
|
</auro-accordion>
|
|
330
336
|
|
|
337
|
+
### Reset State
|
|
338
|
+
|
|
339
|
+
Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
340
|
+
|
|
341
|
+
<div class="exampleWrapper">
|
|
342
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
|
|
343
|
+
<!-- The below content is automatically added from ./../apiExamples/resetState.html -->
|
|
344
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
345
|
+
<br/><br/>
|
|
346
|
+
<auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
347
|
+
<span slot="legend">Form label goes here</span>
|
|
348
|
+
<auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
349
|
+
<auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
350
|
+
<auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
351
|
+
</auro-radio-group>
|
|
352
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
353
|
+
</div>
|
|
354
|
+
<auro-accordion alignRight>
|
|
355
|
+
<span slot="trigger">See code</span>
|
|
356
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.html) -->
|
|
357
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/resetState.html -->
|
|
358
|
+
|
|
359
|
+
```html
|
|
360
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
361
|
+
<br/><br/>
|
|
362
|
+
<auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
363
|
+
<span slot="legend">Form label goes here</span>
|
|
364
|
+
<auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
365
|
+
<auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
366
|
+
<auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
367
|
+
</auro-radio-group>
|
|
368
|
+
```
|
|
369
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
370
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.js) -->
|
|
371
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/resetState.js -->
|
|
372
|
+
|
|
373
|
+
```js
|
|
374
|
+
export function resetStateExample() {
|
|
375
|
+
const elem = document.querySelector('#resetStateExample');
|
|
376
|
+
|
|
377
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
378
|
+
elem.reset();
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
```
|
|
382
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
|
+
</auro-accordion>
|
|
384
|
+
|
|
331
385
|
### Dynamic Example
|
|
332
386
|
|
|
333
387
|
This example demonstrates a data drive approach to rendering `<auro-radio>` buttons.
|
|
@@ -15,6 +15,14 @@ function dynamicExample() {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
function resetStateExample() {
|
|
19
|
+
const elem = document.querySelector('#resetStateExample');
|
|
20
|
+
|
|
21
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
22
|
+
elem.reset();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
/**
|
|
19
27
|
* @license
|
|
20
28
|
* Copyright 2019 Google LLC
|
|
@@ -276,6 +284,15 @@ class AuroRadio extends r {
|
|
|
276
284
|
}));
|
|
277
285
|
}
|
|
278
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Resets component to initial state.
|
|
289
|
+
* @returns {void}
|
|
290
|
+
*/
|
|
291
|
+
reset() {
|
|
292
|
+
this.checked = false;
|
|
293
|
+
this.error = false;
|
|
294
|
+
}
|
|
295
|
+
|
|
279
296
|
updated(changedProperties) {
|
|
280
297
|
if (changedProperties.has('checked')) {
|
|
281
298
|
this.dispatchEvent(new CustomEvent('resetRadio', {
|
|
@@ -384,6 +401,30 @@ class AuroFormValidation {
|
|
|
384
401
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
385
402
|
}
|
|
386
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Resets the element to its initial state.
|
|
406
|
+
* @private
|
|
407
|
+
* @param {object} elem - HTML element to reset.
|
|
408
|
+
* @returns {void}
|
|
409
|
+
*/
|
|
410
|
+
reset(elem) {
|
|
411
|
+
elem.validity = undefined;
|
|
412
|
+
elem.value = undefined;
|
|
413
|
+
|
|
414
|
+
// Resets the second value of the datepicker in range state
|
|
415
|
+
if (elem.valueEnd) {
|
|
416
|
+
elem.valueEnd = undefined;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Resets selected option of element
|
|
420
|
+
if (elem.optionSelected) {
|
|
421
|
+
elem.optionSelected = undefined;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// Runs validation to handle error attribute
|
|
425
|
+
this.validate(elem);
|
|
426
|
+
}
|
|
427
|
+
|
|
387
428
|
/**
|
|
388
429
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
389
430
|
* @private
|
|
@@ -398,10 +439,15 @@ class AuroFormValidation {
|
|
|
398
439
|
elem.validity = 'badInput';
|
|
399
440
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
400
441
|
}
|
|
401
|
-
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
445
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
402
446
|
elem.validity = 'tooShort';
|
|
403
447
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
404
|
-
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
if (elem.value?.length > elem.maxLength) {
|
|
405
451
|
elem.validity = 'tooLong';
|
|
406
452
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
407
453
|
}
|
|
@@ -427,7 +473,7 @@ class AuroFormValidation {
|
|
|
427
473
|
elem.validity = 'tooShort';
|
|
428
474
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
429
475
|
}
|
|
430
|
-
} else if (elem.type === 'number'
|
|
476
|
+
} else if (elem.type === 'number') {
|
|
431
477
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
432
478
|
elem.validity = 'rangeOverflow';
|
|
433
479
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -532,14 +578,10 @@ class AuroFormValidation {
|
|
|
532
578
|
|
|
533
579
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
534
580
|
if (elem.validity && elem.validity !== 'valid') {
|
|
535
|
-
elem.isValid = false;
|
|
536
|
-
|
|
537
581
|
// Use the validity message override if it is declared
|
|
538
582
|
if (elem.ValidityMessageOverride) {
|
|
539
583
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
540
584
|
}
|
|
541
|
-
} else {
|
|
542
|
-
elem.isValid = true;
|
|
543
585
|
}
|
|
544
586
|
|
|
545
587
|
this.getErrorMessage(elem);
|
|
@@ -812,20 +854,20 @@ class AuroRadioGroup extends r {
|
|
|
812
854
|
}
|
|
813
855
|
|
|
814
856
|
/**
|
|
815
|
-
*
|
|
857
|
+
* Resets component to initial state.
|
|
816
858
|
* @returns {void}
|
|
817
859
|
*/
|
|
818
860
|
reset() {
|
|
819
|
-
|
|
861
|
+
// Sets first radio button to receive focus during keyboard navigation
|
|
820
862
|
this.index = 0;
|
|
821
|
-
|
|
863
|
+
|
|
822
864
|
const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
|
|
823
865
|
|
|
824
866
|
buttons.forEach((button) => {
|
|
825
|
-
button.
|
|
867
|
+
button.reset();
|
|
826
868
|
});
|
|
827
869
|
|
|
828
|
-
this.validation.
|
|
870
|
+
this.validation.reset(this);
|
|
829
871
|
}
|
|
830
872
|
|
|
831
873
|
/**
|
|
@@ -1037,6 +1079,7 @@ function initExamples(initCount) {
|
|
|
1037
1079
|
|
|
1038
1080
|
try {
|
|
1039
1081
|
dynamicExample();
|
|
1082
|
+
resetStateExample();
|
|
1040
1083
|
} catch (error) {
|
|
1041
1084
|
if (initCount <= 20) {
|
|
1042
1085
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -259,6 +259,15 @@ class AuroRadio extends r {
|
|
|
259
259
|
}));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Resets component to initial state.
|
|
264
|
+
* @returns {void}
|
|
265
|
+
*/
|
|
266
|
+
reset() {
|
|
267
|
+
this.checked = false;
|
|
268
|
+
this.error = false;
|
|
269
|
+
}
|
|
270
|
+
|
|
262
271
|
updated(changedProperties) {
|
|
263
272
|
if (changedProperties.has('checked')) {
|
|
264
273
|
this.dispatchEvent(new CustomEvent('resetRadio', {
|
|
@@ -367,6 +376,30 @@ class AuroFormValidation {
|
|
|
367
376
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
368
377
|
}
|
|
369
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Resets the element to its initial state.
|
|
381
|
+
* @private
|
|
382
|
+
* @param {object} elem - HTML element to reset.
|
|
383
|
+
* @returns {void}
|
|
384
|
+
*/
|
|
385
|
+
reset(elem) {
|
|
386
|
+
elem.validity = undefined;
|
|
387
|
+
elem.value = undefined;
|
|
388
|
+
|
|
389
|
+
// Resets the second value of the datepicker in range state
|
|
390
|
+
if (elem.valueEnd) {
|
|
391
|
+
elem.valueEnd = undefined;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// Resets selected option of element
|
|
395
|
+
if (elem.optionSelected) {
|
|
396
|
+
elem.optionSelected = undefined;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// Runs validation to handle error attribute
|
|
400
|
+
this.validate(elem);
|
|
401
|
+
}
|
|
402
|
+
|
|
370
403
|
/**
|
|
371
404
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
372
405
|
* @private
|
|
@@ -381,10 +414,15 @@ class AuroFormValidation {
|
|
|
381
414
|
elem.validity = 'badInput';
|
|
382
415
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
383
416
|
}
|
|
384
|
-
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
420
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
385
421
|
elem.validity = 'tooShort';
|
|
386
422
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
387
|
-
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (elem.value?.length > elem.maxLength) {
|
|
388
426
|
elem.validity = 'tooLong';
|
|
389
427
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
390
428
|
}
|
|
@@ -410,7 +448,7 @@ class AuroFormValidation {
|
|
|
410
448
|
elem.validity = 'tooShort';
|
|
411
449
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
412
450
|
}
|
|
413
|
-
} else if (elem.type === 'number'
|
|
451
|
+
} else if (elem.type === 'number') {
|
|
414
452
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
415
453
|
elem.validity = 'rangeOverflow';
|
|
416
454
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -515,14 +553,10 @@ class AuroFormValidation {
|
|
|
515
553
|
|
|
516
554
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
517
555
|
if (elem.validity && elem.validity !== 'valid') {
|
|
518
|
-
elem.isValid = false;
|
|
519
|
-
|
|
520
556
|
// Use the validity message override if it is declared
|
|
521
557
|
if (elem.ValidityMessageOverride) {
|
|
522
558
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
523
559
|
}
|
|
524
|
-
} else {
|
|
525
|
-
elem.isValid = true;
|
|
526
560
|
}
|
|
527
561
|
|
|
528
562
|
this.getErrorMessage(elem);
|
|
@@ -795,20 +829,20 @@ class AuroRadioGroup extends r {
|
|
|
795
829
|
}
|
|
796
830
|
|
|
797
831
|
/**
|
|
798
|
-
*
|
|
832
|
+
* Resets component to initial state.
|
|
799
833
|
* @returns {void}
|
|
800
834
|
*/
|
|
801
835
|
reset() {
|
|
802
|
-
|
|
836
|
+
// Sets first radio button to receive focus during keyboard navigation
|
|
803
837
|
this.index = 0;
|
|
804
|
-
|
|
838
|
+
|
|
805
839
|
const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
|
|
806
840
|
|
|
807
841
|
buttons.forEach((button) => {
|
|
808
|
-
button.
|
|
842
|
+
button.reset();
|
|
809
843
|
});
|
|
810
844
|
|
|
811
|
-
this.validation.
|
|
845
|
+
this.validation.reset(this);
|
|
812
846
|
}
|
|
813
847
|
|
|
814
848
|
/**
|
|
@@ -107,7 +107,7 @@ export class AuroRadioGroup extends LitElement {
|
|
|
107
107
|
*/
|
|
108
108
|
updated(changedProperties: Map<string, any>): void;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Resets component to initial state.
|
|
111
111
|
* @returns {void}
|
|
112
112
|
*/
|
|
113
113
|
reset(): void;
|
|
@@ -90,6 +90,11 @@ export class AuroRadio extends LitElement {
|
|
|
90
90
|
* @returns {void}
|
|
91
91
|
*/
|
|
92
92
|
private handleBlur;
|
|
93
|
+
/**
|
|
94
|
+
* Resets component to initial state.
|
|
95
|
+
* @returns {void}
|
|
96
|
+
*/
|
|
97
|
+
reset(): void;
|
|
93
98
|
updated(changedProperties: any): void;
|
|
94
99
|
/**
|
|
95
100
|
* Method for handling content when it is invalid accessibility wise.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-radio.d.ts","sourceRoot":"","sources":["../src/auro-radio.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;GAUG;AAGH;IAeE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5DC,iBAAoB;IACpB,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAGlB;;OAEG;IACH,qBAAiD;IAqDnD;;;;;OAKG;IACH,qBAKC;IAED;;;;;OAKG;IACH,oBAOC;IAED;;;;;OAKG;IACH,oBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,sCAcC;IAED;;;;;OAKG;IACH,gBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,qBAWC;IALC,wBAAmD;IAQrD,+CAkCC;CACF;
|
|
1
|
+
{"version":3,"file":"auro-radio.d.ts","sourceRoot":"","sources":["../src/auro-radio.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;GAUG;AAGH;IAeE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5DC,iBAAoB;IACpB,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAGlB;;OAEG;IACH,qBAAiD;IAqDnD;;;;;OAKG;IACH,qBAKC;IAED;;;;;OAKG;IACH,oBAOC;IAED;;;;;OAKG;IACH,oBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED;;;OAGG;IACH,SAFa,IAAI,CAKhB;IAED,sCAcC;IAED;;;;;OAKG;IACH,gBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,qBAWC;IALC,wBAAmD;IAQrD,+CAkCC;CACF;2BA1PgC,KAAK"}
|
|
@@ -259,6 +259,15 @@ class AuroRadio extends r {
|
|
|
259
259
|
}));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Resets component to initial state.
|
|
264
|
+
* @returns {void}
|
|
265
|
+
*/
|
|
266
|
+
reset() {
|
|
267
|
+
this.checked = false;
|
|
268
|
+
this.error = false;
|
|
269
|
+
}
|
|
270
|
+
|
|
262
271
|
updated(changedProperties) {
|
|
263
272
|
if (changedProperties.has('checked')) {
|
|
264
273
|
this.dispatchEvent(new CustomEvent('resetRadio', {
|
|
@@ -367,6 +376,30 @@ class AuroFormValidation {
|
|
|
367
376
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
368
377
|
}
|
|
369
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Resets the element to its initial state.
|
|
381
|
+
* @private
|
|
382
|
+
* @param {object} elem - HTML element to reset.
|
|
383
|
+
* @returns {void}
|
|
384
|
+
*/
|
|
385
|
+
reset(elem) {
|
|
386
|
+
elem.validity = undefined;
|
|
387
|
+
elem.value = undefined;
|
|
388
|
+
|
|
389
|
+
// Resets the second value of the datepicker in range state
|
|
390
|
+
if (elem.valueEnd) {
|
|
391
|
+
elem.valueEnd = undefined;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// Resets selected option of element
|
|
395
|
+
if (elem.optionSelected) {
|
|
396
|
+
elem.optionSelected = undefined;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// Runs validation to handle error attribute
|
|
400
|
+
this.validate(elem);
|
|
401
|
+
}
|
|
402
|
+
|
|
370
403
|
/**
|
|
371
404
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
372
405
|
* @private
|
|
@@ -381,10 +414,15 @@ class AuroFormValidation {
|
|
|
381
414
|
elem.validity = 'badInput';
|
|
382
415
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
383
416
|
}
|
|
384
|
-
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
420
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
385
421
|
elem.validity = 'tooShort';
|
|
386
422
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
387
|
-
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (elem.value?.length > elem.maxLength) {
|
|
388
426
|
elem.validity = 'tooLong';
|
|
389
427
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
390
428
|
}
|
|
@@ -410,7 +448,7 @@ class AuroFormValidation {
|
|
|
410
448
|
elem.validity = 'tooShort';
|
|
411
449
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
412
450
|
}
|
|
413
|
-
} else if (elem.type === 'number'
|
|
451
|
+
} else if (elem.type === 'number') {
|
|
414
452
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
415
453
|
elem.validity = 'rangeOverflow';
|
|
416
454
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -515,14 +553,10 @@ class AuroFormValidation {
|
|
|
515
553
|
|
|
516
554
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
517
555
|
if (elem.validity && elem.validity !== 'valid') {
|
|
518
|
-
elem.isValid = false;
|
|
519
|
-
|
|
520
556
|
// Use the validity message override if it is declared
|
|
521
557
|
if (elem.ValidityMessageOverride) {
|
|
522
558
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
523
559
|
}
|
|
524
|
-
} else {
|
|
525
|
-
elem.isValid = true;
|
|
526
560
|
}
|
|
527
561
|
|
|
528
562
|
this.getErrorMessage(elem);
|
|
@@ -795,20 +829,20 @@ class AuroRadioGroup extends r {
|
|
|
795
829
|
}
|
|
796
830
|
|
|
797
831
|
/**
|
|
798
|
-
*
|
|
832
|
+
* Resets component to initial state.
|
|
799
833
|
* @returns {void}
|
|
800
834
|
*/
|
|
801
835
|
reset() {
|
|
802
|
-
|
|
836
|
+
// Sets first radio button to receive focus during keyboard navigation
|
|
803
837
|
this.index = 0;
|
|
804
|
-
|
|
838
|
+
|
|
805
839
|
const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
|
|
806
840
|
|
|
807
841
|
buttons.forEach((button) => {
|
|
808
|
-
button.
|
|
842
|
+
button.reset();
|
|
809
843
|
});
|
|
810
844
|
|
|
811
|
-
this.validation.
|
|
845
|
+
this.validation.reset(this);
|
|
812
846
|
}
|
|
813
847
|
|
|
814
848
|
/**
|
|
@@ -216,20 +216,20 @@ export class AuroRadioGroup extends LitElement {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
*
|
|
219
|
+
* Resets component to initial state.
|
|
220
220
|
* @returns {void}
|
|
221
221
|
*/
|
|
222
222
|
reset() {
|
|
223
|
-
|
|
223
|
+
// Sets first radio button to receive focus during keyboard navigation
|
|
224
224
|
this.index = 0;
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
|
|
227
227
|
|
|
228
228
|
buttons.forEach((button) => {
|
|
229
|
-
button.
|
|
229
|
+
button.reset();
|
|
230
230
|
});
|
|
231
231
|
|
|
232
|
-
this.validation.
|
|
232
|
+
this.validation.reset(this);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|
|
@@ -151,6 +151,15 @@ export class AuroRadio extends LitElement {
|
|
|
151
151
|
}));
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Resets component to initial state.
|
|
156
|
+
* @returns {void}
|
|
157
|
+
*/
|
|
158
|
+
reset() {
|
|
159
|
+
this.checked = false;
|
|
160
|
+
this.error = false;
|
|
161
|
+
}
|
|
162
|
+
|
|
154
163
|
updated(changedProperties) {
|
|
155
164
|
if (changedProperties.has('checked')) {
|
|
156
165
|
this.dispatchEvent(new CustomEvent('resetRadio', {
|