@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
|
@@ -10,15 +10,12 @@
|
|
|
10
10
|
* @attr {Boolean} disabled - If set, disables the input.
|
|
11
11
|
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
12
12
|
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
13
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
14
13
|
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15
14
|
* @attr {String} id - Sets the unique ID of the element.
|
|
16
|
-
* @attr {String} isValid - (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer.
|
|
17
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
18
15
|
* @attr {String} lang - defines the language of an element.
|
|
19
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `
|
|
16
|
+
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
20
17
|
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
21
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `
|
|
18
|
+
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
22
19
|
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
23
20
|
* @attr {String} name - Populates the `name` attribute on the input.
|
|
24
21
|
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
@@ -57,9 +54,6 @@ export default class BaseInput extends LitElement {
|
|
|
57
54
|
id: {
|
|
58
55
|
type: StringConstructor;
|
|
59
56
|
};
|
|
60
|
-
label: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
};
|
|
63
57
|
name: {
|
|
64
58
|
type: StringConstructor;
|
|
65
59
|
};
|
|
@@ -89,9 +83,6 @@ export default class BaseInput extends LitElement {
|
|
|
89
83
|
noValidate: {
|
|
90
84
|
type: BooleanConstructor;
|
|
91
85
|
};
|
|
92
|
-
helpText: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
};
|
|
95
86
|
spellcheck: {
|
|
96
87
|
type: StringConstructor;
|
|
97
88
|
};
|
|
@@ -143,10 +134,6 @@ export default class BaseInput extends LitElement {
|
|
|
143
134
|
errorMessage: {
|
|
144
135
|
type: StringConstructor;
|
|
145
136
|
};
|
|
146
|
-
isValid: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
reflect: boolean;
|
|
149
|
-
};
|
|
150
137
|
validity: {
|
|
151
138
|
type: StringConstructor;
|
|
152
139
|
reflect: boolean;
|
|
@@ -180,7 +167,6 @@ export default class BaseInput extends LitElement {
|
|
|
180
167
|
};
|
|
181
168
|
};
|
|
182
169
|
static get styles(): import("lit").CSSResult[];
|
|
183
|
-
isValid: boolean;
|
|
184
170
|
icon: boolean;
|
|
185
171
|
disabled: boolean;
|
|
186
172
|
required: boolean;
|
|
@@ -189,7 +175,6 @@ export default class BaseInput extends LitElement {
|
|
|
189
175
|
min: any;
|
|
190
176
|
maxLength: any;
|
|
191
177
|
minLength: any;
|
|
192
|
-
label: string;
|
|
193
178
|
activeLabel: boolean;
|
|
194
179
|
setCustomValidityForType: string;
|
|
195
180
|
/**
|
|
@@ -203,6 +188,7 @@ export default class BaseInput extends LitElement {
|
|
|
203
188
|
showPassword: any;
|
|
204
189
|
validationCCLength: number;
|
|
205
190
|
hasValue: boolean;
|
|
191
|
+
label: string;
|
|
206
192
|
allowedInputTypes: string[];
|
|
207
193
|
dateInputTypes: string[];
|
|
208
194
|
autoFormattingTypes: string[];
|
|
@@ -294,6 +280,11 @@ export default class BaseInput extends LitElement {
|
|
|
294
280
|
* @returns {void}
|
|
295
281
|
*/
|
|
296
282
|
validate(): void;
|
|
283
|
+
/**
|
|
284
|
+
* Resets component to initial state.
|
|
285
|
+
* @returns {void}
|
|
286
|
+
*/
|
|
287
|
+
reset(): void;
|
|
297
288
|
/**
|
|
298
289
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
299
290
|
* @private
|
|
@@ -315,7 +306,6 @@ export default class BaseInput extends LitElement {
|
|
|
315
306
|
* @returns {string} Evaluates pre-determined help text.
|
|
316
307
|
*/
|
|
317
308
|
private getHelpText;
|
|
318
|
-
helpText: string;
|
|
319
309
|
/**
|
|
320
310
|
* Function to support show-password feature.
|
|
321
311
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../src/base-input.js"],"names":[],"mappings":"AAoBA
|
|
1
|
+
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../src/base-input.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;IA+EE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCI;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBN;IAED,+CAMC;IA5IC,cAAiB;IACjB,kBAAqB;IACrB,kBAAqB;IACrB,oBAAuB;IACvB,SAAoB;IACpB,SAAoB;IACpB,eAA0B;IAC1B,eAA0B;IAC1B,qBAAwB;IACxB,iCAAyC;IAG3C;;;;OAIG;IACH,wBAsDC;IArDC,+BAA0C;IAC1C,mBAA8B;IAC9B,kBAAyB;IACzB,2BAAmC;IACnC,kBAAqB;IACrB,cAAuC;IAEvC,4BASC;IAED,yBAQC;IAED,8BAMC;IAED;;;OAGG;IACH,iCAIC;IAMD,iBAEwC;IA+M1C,qBAwEC;IAlEC,+BAA0D;IAC1D,+BAA0D;IAIxD,6BAAqD;IAmC7C,uBAA0D;IA4BtE;;;;OAIG;IACH,2BAHW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GACd,IAAI,CA6DhB;IArDG,iBAAwB;IAuD5B;;;OAGG;IACH,2BAkBC;IAED;;;OAGG;IACH,6BAMC;IAED;;;OAGG;IACH,sBAMC;IAED;;;;OAIG;IACH,cAEC;IAED;;;;;OAKG;IACH,sBAIC;IAED;;;;OAIG;IACH,2BAUC;IAED;;;;OAIG;IACH,yBAOC;IALC,cAAe;IAOjB;;;OAGG;IACH,oBA0BC;IAED;;;;OAIG;IACH,sBAWC;IAED;;;;OAIG;IACH,mBAMC;IAED;;;;;OAKG;IACH,yBAYC;IAED;;;OAGG;IACH,YAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;;OAIG;IACH,6BAYC;IAVG,sBAAuB;IAY3B;;;;;OAKG;IACH,qBAMC;IAED;;;;;OAKG;IACH,oBAwBC;IAED;;;;OAIG;IACH,gCAGC;IAED;;;;OAIG;IACH,uBAkBC;IAED;;;;OAIG;IACH,wBAQC;IAED;;;;OAIG;IACH,2BAQC;IAKD;;;;OAIG;IACH,0BAWC;IALC,uBAA+C;IAOjD;;;;OAIG;IACH,oCAqFC;CACF;2BA/5B+B,KAAK;+BAUN,+BAA+B"}
|
|
@@ -166,7 +166,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
|
|
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
167
|
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T}}r._$litElement$=!0,r["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
168
168
|
|
|
169
|
-
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-
|
|
169
|
+
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:0;pointer-events:none}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{opacity:1;pointer-events:auto}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{--size-lgsm: 1.875rem;--size-xlsm: 2.75rem;--size-mdxxs: 1.2rem;position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
170
170
|
|
|
171
171
|
var colorCss$3 = i$2`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
172
172
|
|
|
@@ -1808,6 +1808,30 @@ class AuroFormValidation {
|
|
|
1808
1808
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
|
+
/**
|
|
1812
|
+
* Resets the element to its initial state.
|
|
1813
|
+
* @private
|
|
1814
|
+
* @param {object} elem - HTML element to reset.
|
|
1815
|
+
* @returns {void}
|
|
1816
|
+
*/
|
|
1817
|
+
reset(elem) {
|
|
1818
|
+
elem.validity = undefined;
|
|
1819
|
+
elem.value = undefined;
|
|
1820
|
+
|
|
1821
|
+
// Resets the second value of the datepicker in range state
|
|
1822
|
+
if (elem.valueEnd) {
|
|
1823
|
+
elem.valueEnd = undefined;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
// Resets selected option of element
|
|
1827
|
+
if (elem.optionSelected) {
|
|
1828
|
+
elem.optionSelected = undefined;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
// Runs validation to handle error attribute
|
|
1832
|
+
this.validate(elem);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1811
1835
|
/**
|
|
1812
1836
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
1813
1837
|
* @private
|
|
@@ -1822,10 +1846,15 @@ class AuroFormValidation {
|
|
|
1822
1846
|
elem.validity = 'badInput';
|
|
1823
1847
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
1824
1848
|
}
|
|
1825
|
-
}
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
1852
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
1826
1853
|
elem.validity = 'tooShort';
|
|
1827
1854
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
1828
|
-
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
if (elem.value?.length > elem.maxLength) {
|
|
1829
1858
|
elem.validity = 'tooLong';
|
|
1830
1859
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
1831
1860
|
}
|
|
@@ -1851,7 +1880,7 @@ class AuroFormValidation {
|
|
|
1851
1880
|
elem.validity = 'tooShort';
|
|
1852
1881
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
1853
1882
|
}
|
|
1854
|
-
} else if (elem.type === 'number'
|
|
1883
|
+
} else if (elem.type === 'number') {
|
|
1855
1884
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
1856
1885
|
elem.validity = 'rangeOverflow';
|
|
1857
1886
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -1956,14 +1985,10 @@ class AuroFormValidation {
|
|
|
1956
1985
|
|
|
1957
1986
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
1958
1987
|
if (elem.validity && elem.validity !== 'valid') {
|
|
1959
|
-
elem.isValid = false;
|
|
1960
|
-
|
|
1961
1988
|
// Use the validity message override if it is declared
|
|
1962
1989
|
if (elem.ValidityMessageOverride) {
|
|
1963
1990
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
1964
1991
|
}
|
|
1965
|
-
} else {
|
|
1966
|
-
elem.isValid = true;
|
|
1967
1992
|
}
|
|
1968
1993
|
|
|
1969
1994
|
this.getErrorMessage(elem);
|
|
@@ -2050,15 +2075,12 @@ class AuroFormValidation {
|
|
|
2050
2075
|
* @attr {Boolean} disabled - If set, disables the input.
|
|
2051
2076
|
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
2052
2077
|
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
2053
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
2054
2078
|
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
2055
2079
|
* @attr {String} id - Sets the unique ID of the element.
|
|
2056
|
-
* @attr {String} isValid - (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer.
|
|
2057
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
2058
2080
|
* @attr {String} lang - defines the language of an element.
|
|
2059
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `
|
|
2081
|
+
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2060
2082
|
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2061
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `
|
|
2083
|
+
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2062
2084
|
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
2063
2085
|
* @attr {String} name - Populates the `name` attribute on the input.
|
|
2064
2086
|
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
@@ -2098,8 +2120,6 @@ class BaseInput extends r {
|
|
|
2098
2120
|
constructor() {
|
|
2099
2121
|
super();
|
|
2100
2122
|
|
|
2101
|
-
this.isValid = false;
|
|
2102
|
-
|
|
2103
2123
|
this.icon = false;
|
|
2104
2124
|
this.disabled = false;
|
|
2105
2125
|
this.required = false;
|
|
@@ -2108,9 +2128,7 @@ class BaseInput extends r {
|
|
|
2108
2128
|
this.min = undefined;
|
|
2109
2129
|
this.maxLength = undefined;
|
|
2110
2130
|
this.minLength = undefined;
|
|
2111
|
-
this.label = 'Input label is undefined';
|
|
2112
2131
|
this.activeLabel = false;
|
|
2113
|
-
|
|
2114
2132
|
this.setCustomValidityForType = undefined;
|
|
2115
2133
|
}
|
|
2116
2134
|
|
|
@@ -2125,9 +2143,11 @@ class BaseInput extends r {
|
|
|
2125
2143
|
this.showPassword = false;
|
|
2126
2144
|
this.validationCCLength = undefined;
|
|
2127
2145
|
this.hasValue = false;
|
|
2146
|
+
this.label = 'Input label is undefined';
|
|
2128
2147
|
|
|
2129
2148
|
this.allowedInputTypes = [
|
|
2130
2149
|
"text",
|
|
2150
|
+
"number",
|
|
2131
2151
|
"email",
|
|
2132
2152
|
"password",
|
|
2133
2153
|
"credit-card",
|
|
@@ -2177,7 +2197,6 @@ class BaseInput extends r {
|
|
|
2177
2197
|
static get properties() {
|
|
2178
2198
|
return {
|
|
2179
2199
|
id: { type: String },
|
|
2180
|
-
label: { type: String },
|
|
2181
2200
|
name: { type: String },
|
|
2182
2201
|
type: { type: String,
|
|
2183
2202
|
reflect: true },
|
|
@@ -2191,7 +2210,6 @@ class BaseInput extends r {
|
|
|
2191
2210
|
disabled: { type: Boolean },
|
|
2192
2211
|
required: { type: Boolean },
|
|
2193
2212
|
noValidate: { type: Boolean },
|
|
2194
|
-
helpText: { type: String },
|
|
2195
2213
|
spellcheck: { type: String },
|
|
2196
2214
|
autocorrect: { type: String },
|
|
2197
2215
|
autocapitalize: { type: String },
|
|
@@ -2220,10 +2238,6 @@ class BaseInput extends r {
|
|
|
2220
2238
|
reflect: true
|
|
2221
2239
|
},
|
|
2222
2240
|
errorMessage: { type: String },
|
|
2223
|
-
isValid: {
|
|
2224
|
-
type: String,
|
|
2225
|
-
reflect: true
|
|
2226
|
-
},
|
|
2227
2241
|
validity: {
|
|
2228
2242
|
type: String,
|
|
2229
2243
|
reflect: true
|
|
@@ -2626,7 +2640,7 @@ class BaseInput extends r {
|
|
|
2626
2640
|
* @return {void}
|
|
2627
2641
|
*/
|
|
2628
2642
|
handleInput() {
|
|
2629
|
-
// Prevent non-
|
|
2643
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
2630
2644
|
if (this.type === 'credit-card') {
|
|
2631
2645
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
2632
2646
|
}
|
|
@@ -2712,6 +2726,13 @@ class BaseInput extends r {
|
|
|
2712
2726
|
this.validation.validate(this);
|
|
2713
2727
|
}
|
|
2714
2728
|
|
|
2729
|
+
/**
|
|
2730
|
+
* Resets component to initial state.
|
|
2731
|
+
* @returns {void}
|
|
2732
|
+
*/
|
|
2733
|
+
reset() {
|
|
2734
|
+
this.validation.reset(this);
|
|
2735
|
+
}
|
|
2715
2736
|
|
|
2716
2737
|
/**
|
|
2717
2738
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -2754,30 +2775,28 @@ class BaseInput extends r {
|
|
|
2754
2775
|
*/
|
|
2755
2776
|
getHelpText(type) {
|
|
2756
2777
|
if (type === 'password') {
|
|
2757
|
-
|
|
2778
|
+
return i18n(this.lang, 'password');
|
|
2758
2779
|
} else if (type === 'email') {
|
|
2759
|
-
|
|
2780
|
+
return i18n(this.lang, 'email');
|
|
2760
2781
|
} else if (type === 'credit-card') {
|
|
2761
|
-
|
|
2782
|
+
return i18n(this.lang, 'creditcard');
|
|
2762
2783
|
} else if (type === 'month-day-year') {
|
|
2763
|
-
|
|
2784
|
+
return i18n(this.lang, 'dateMMDDYYYY');
|
|
2764
2785
|
} else if (type === 'month-year') {
|
|
2765
|
-
|
|
2786
|
+
return i18n(this.lang, 'dateMMYY');
|
|
2766
2787
|
} else if (type === 'month-fullyear') {
|
|
2767
|
-
|
|
2788
|
+
return i18n(this.lang, 'dateMMYYYY');
|
|
2768
2789
|
} else if (type === 'year-month-day') {
|
|
2769
|
-
|
|
2790
|
+
return i18n(this.lang, 'dateYYYYMMDD');
|
|
2770
2791
|
} else if (type === 'month') {
|
|
2771
|
-
|
|
2792
|
+
return i18n(this.lang, 'dateMM');
|
|
2772
2793
|
} else if (type === 'year') {
|
|
2773
|
-
|
|
2794
|
+
return i18n(this.lang, 'dateYY');
|
|
2774
2795
|
} else if (type === 'fullYear') {
|
|
2775
|
-
|
|
2776
|
-
} else {
|
|
2777
|
-
this.helpText = '';
|
|
2796
|
+
return i18n(this.lang, 'dateYYYY');
|
|
2778
2797
|
}
|
|
2779
2798
|
|
|
2780
|
-
return
|
|
2799
|
+
return '';
|
|
2781
2800
|
}
|
|
2782
2801
|
|
|
2783
2802
|
/**
|
|
@@ -3065,7 +3084,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
3065
3084
|
return _fetchMap.get(uri);
|
|
3066
3085
|
};
|
|
3067
3086
|
|
|
3068
|
-
var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.labelContainer{line-height:1.8}`;
|
|
3087
|
+
var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
3069
3088
|
|
|
3070
3089
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3071
3090
|
// See LICENSE in the project root for license information.
|
|
@@ -3332,7 +3351,8 @@ class AuroIcon extends BaseIcon {
|
|
|
3332
3351
|
};
|
|
3333
3352
|
|
|
3334
3353
|
const classes = {
|
|
3335
|
-
'label': this.label
|
|
3354
|
+
'label': this.label,
|
|
3355
|
+
'wrapper': true,
|
|
3336
3356
|
};
|
|
3337
3357
|
|
|
3338
3358
|
return x`
|
|
@@ -3356,7 +3376,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3356
3376
|
}
|
|
3357
3377
|
}
|
|
3358
3378
|
|
|
3359
|
-
var iconVersion = '6.1.
|
|
3379
|
+
var iconVersion = '6.1.2';
|
|
3360
3380
|
|
|
3361
3381
|
var styleCss$1 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
3362
3382
|
|
|
@@ -3708,6 +3728,7 @@ class AuroButton extends r {
|
|
|
3708
3728
|
const classes = {
|
|
3709
3729
|
'util_insetLg--squish': true,
|
|
3710
3730
|
'auro-button': true,
|
|
3731
|
+
'auroButton': true,
|
|
3711
3732
|
'auro-button--rounded': this.rounded,
|
|
3712
3733
|
'auro-button--slim': this.slim,
|
|
3713
3734
|
'auro-button--iconOnly': this.iconOnly,
|
|
@@ -3747,7 +3768,7 @@ class AuroButton extends r {
|
|
|
3747
3768
|
}
|
|
3748
3769
|
}
|
|
3749
3770
|
|
|
3750
|
-
var buttonVersion = '8.2.
|
|
3771
|
+
var buttonVersion = '8.2.2';
|
|
3751
3772
|
|
|
3752
3773
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3753
3774
|
// See LICENSE in the project root for license information.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"url": "https://github.com/AlaskaAirlines/auro-input"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@aurodesignsystem/auro-button": "^8.
|
|
16
|
-
"@aurodesignsystem/auro-icon": "^6.
|
|
15
|
+
"@aurodesignsystem/auro-button": "^8.2.2",
|
|
16
|
+
"@aurodesignsystem/auro-icon": "^6.1.2",
|
|
17
17
|
"chalk": "^5.3.0",
|
|
18
18
|
"cleave.js": "^1.6.0",
|
|
19
19
|
"lit": "^3.2.1"
|
|
@@ -30,15 +30,12 @@ import AuroFormValidation from '@auro-formkit/form-validation';
|
|
|
30
30
|
* @attr {Boolean} disabled - If set, disables the input.
|
|
31
31
|
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
32
32
|
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
33
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
34
33
|
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
35
34
|
* @attr {String} id - Sets the unique ID of the element.
|
|
36
|
-
* @attr {String} isValid - (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer.
|
|
37
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
38
35
|
* @attr {String} lang - defines the language of an element.
|
|
39
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `
|
|
36
|
+
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
40
37
|
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
41
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `
|
|
38
|
+
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
42
39
|
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
43
40
|
* @attr {String} name - Populates the `name` attribute on the input.
|
|
44
41
|
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
@@ -78,8 +75,6 @@ export default class BaseInput extends LitElement {
|
|
|
78
75
|
constructor() {
|
|
79
76
|
super();
|
|
80
77
|
|
|
81
|
-
this.isValid = false;
|
|
82
|
-
|
|
83
78
|
this.icon = false;
|
|
84
79
|
this.disabled = false;
|
|
85
80
|
this.required = false;
|
|
@@ -88,9 +83,7 @@ export default class BaseInput extends LitElement {
|
|
|
88
83
|
this.min = undefined;
|
|
89
84
|
this.maxLength = undefined;
|
|
90
85
|
this.minLength = undefined;
|
|
91
|
-
this.label = 'Input label is undefined';
|
|
92
86
|
this.activeLabel = false;
|
|
93
|
-
|
|
94
87
|
this.setCustomValidityForType = undefined;
|
|
95
88
|
}
|
|
96
89
|
|
|
@@ -105,9 +98,11 @@ export default class BaseInput extends LitElement {
|
|
|
105
98
|
this.showPassword = false;
|
|
106
99
|
this.validationCCLength = undefined;
|
|
107
100
|
this.hasValue = false;
|
|
101
|
+
this.label = 'Input label is undefined';
|
|
108
102
|
|
|
109
103
|
this.allowedInputTypes = [
|
|
110
104
|
"text",
|
|
105
|
+
"number",
|
|
111
106
|
"email",
|
|
112
107
|
"password",
|
|
113
108
|
"credit-card",
|
|
@@ -157,7 +152,6 @@ export default class BaseInput extends LitElement {
|
|
|
157
152
|
static get properties() {
|
|
158
153
|
return {
|
|
159
154
|
id: { type: String },
|
|
160
|
-
label: { type: String },
|
|
161
155
|
name: { type: String },
|
|
162
156
|
type: { type: String,
|
|
163
157
|
reflect: true },
|
|
@@ -171,7 +165,6 @@ export default class BaseInput extends LitElement {
|
|
|
171
165
|
disabled: { type: Boolean },
|
|
172
166
|
required: { type: Boolean },
|
|
173
167
|
noValidate: { type: Boolean },
|
|
174
|
-
helpText: { type: String },
|
|
175
168
|
spellcheck: { type: String },
|
|
176
169
|
autocorrect: { type: String },
|
|
177
170
|
autocapitalize: { type: String },
|
|
@@ -200,10 +193,6 @@ export default class BaseInput extends LitElement {
|
|
|
200
193
|
reflect: true
|
|
201
194
|
},
|
|
202
195
|
errorMessage: { type: String },
|
|
203
|
-
isValid: {
|
|
204
|
-
type: String,
|
|
205
|
-
reflect: true
|
|
206
|
-
},
|
|
207
196
|
validity: {
|
|
208
197
|
type: String,
|
|
209
198
|
reflect: true
|
|
@@ -608,7 +597,7 @@ export default class BaseInput extends LitElement {
|
|
|
608
597
|
* @return {void}
|
|
609
598
|
*/
|
|
610
599
|
handleInput() {
|
|
611
|
-
// Prevent non-
|
|
600
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
612
601
|
if (this.type === 'credit-card') {
|
|
613
602
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
614
603
|
}
|
|
@@ -694,6 +683,13 @@ export default class BaseInput extends LitElement {
|
|
|
694
683
|
this.validation.validate(this);
|
|
695
684
|
}
|
|
696
685
|
|
|
686
|
+
/**
|
|
687
|
+
* Resets component to initial state.
|
|
688
|
+
* @returns {void}
|
|
689
|
+
*/
|
|
690
|
+
reset() {
|
|
691
|
+
this.validation.reset(this);
|
|
692
|
+
}
|
|
697
693
|
|
|
698
694
|
/**
|
|
699
695
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -736,30 +732,28 @@ export default class BaseInput extends LitElement {
|
|
|
736
732
|
*/
|
|
737
733
|
getHelpText(type) {
|
|
738
734
|
if (type === 'password') {
|
|
739
|
-
|
|
735
|
+
return i18n(this.lang, 'password');
|
|
740
736
|
} else if (type === 'email') {
|
|
741
|
-
|
|
737
|
+
return i18n(this.lang, 'email');
|
|
742
738
|
} else if (type === 'credit-card') {
|
|
743
|
-
|
|
739
|
+
return i18n(this.lang, 'creditcard');
|
|
744
740
|
} else if (type === 'month-day-year') {
|
|
745
|
-
|
|
741
|
+
return i18n(this.lang, 'dateMMDDYYYY');
|
|
746
742
|
} else if (type === 'month-year') {
|
|
747
|
-
|
|
743
|
+
return i18n(this.lang, 'dateMMYY');
|
|
748
744
|
} else if (type === 'month-fullyear') {
|
|
749
|
-
|
|
745
|
+
return i18n(this.lang, 'dateMMYYYY');
|
|
750
746
|
} else if (type === 'year-month-day') {
|
|
751
|
-
|
|
747
|
+
return i18n(this.lang, 'dateYYYYMMDD');
|
|
752
748
|
} else if (type === 'month') {
|
|
753
|
-
|
|
749
|
+
return i18n(this.lang, 'dateMM');
|
|
754
750
|
} else if (type === 'year') {
|
|
755
|
-
|
|
751
|
+
return i18n(this.lang, 'dateYY');
|
|
756
752
|
} else if (type === 'fullYear') {
|
|
757
|
-
|
|
758
|
-
} else {
|
|
759
|
-
this.helpText = '';
|
|
753
|
+
return i18n(this.lang, 'dateYYYY');
|
|
760
754
|
}
|
|
761
755
|
|
|
762
|
-
return
|
|
756
|
+
return '';
|
|
763
757
|
}
|
|
764
758
|
|
|
765
759
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '8.2.
|
|
1
|
+
export default '8.2.2';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '6.1.
|
|
1
|
+
export default '6.1.2';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`input{position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input:disabled{background:none;pointer-events:none}`;
|
|
2
|
+
export default css`input{position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type */
|
|
1
2
|
input {
|
|
2
3
|
position: relative;
|
|
3
4
|
overflow: hidden;
|
|
@@ -16,7 +17,19 @@ input {
|
|
|
16
17
|
input::-ms-reveal, input::-ms-clear {
|
|
17
18
|
display: none;
|
|
18
19
|
}
|
|
20
|
+
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
|
|
21
|
+
margin: 0;
|
|
22
|
+
-webkit-appearance: none;
|
|
23
|
+
}
|
|
24
|
+
input[type=number] {
|
|
25
|
+
-moz-appearance: textfield; /* For older versions of Firefox */
|
|
26
|
+
appearance: textfield; /* Standard property */
|
|
27
|
+
}
|
|
19
28
|
input:disabled {
|
|
20
29
|
background: none;
|
|
21
30
|
pointer-events: none;
|
|
22
31
|
}
|
|
32
|
+
|
|
33
|
+
:host([bordered]) input {
|
|
34
|
+
padding: var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem);
|
|
35
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type */
|
|
2
|
+
|
|
1
3
|
// Support for fallback values
|
|
2
4
|
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
3
5
|
|
|
@@ -22,8 +24,27 @@ input {
|
|
|
22
24
|
display: none;
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
// Hides the number input arrows in Chrome, Safari, Edge, and Opera
|
|
28
|
+
&::-webkit-outer-spin-button,
|
|
29
|
+
&::-webkit-inner-spin-button {
|
|
30
|
+
margin: 0;
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Hides the number input arrows in Firefox
|
|
35
|
+
&[type='number'] {
|
|
36
|
+
-moz-appearance: textfield; /* For older versions of Firefox */
|
|
37
|
+
appearance: textfield; /* Standard property */
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
&:disabled {
|
|
26
41
|
background: none;
|
|
27
42
|
pointer-events: none;
|
|
28
43
|
}
|
|
29
44
|
}
|
|
45
|
+
|
|
46
|
+
:host([bordered]) {
|
|
47
|
+
input {
|
|
48
|
+
padding: var(--ds-size-400, $ds-size-400) 0 var(--ds-size-100, $ds-size-100);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-
|
|
2
|
+
export default css`label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}`;
|