@aurodesignsystem/auro-formkit 2.0.0-beta.27 → 2.0.0-beta.29
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/019608f754b4fd0c-meta.json +1 -0
- package/.turbo/cache/019608f754b4fd0c.tar.zst +0 -0
- package/.turbo/cache/06322ed0d04880b4-meta.json +1 -0
- package/.turbo/cache/06322ed0d04880b4.tar.zst +0 -0
- package/.turbo/cache/0b25a5384daf4b43-meta.json +1 -0
- package/.turbo/cache/0b25a5384daf4b43.tar.zst +0 -0
- package/.turbo/cache/18ce0cc67c14e0c9-meta.json +1 -0
- package/.turbo/cache/18ce0cc67c14e0c9.tar.zst +0 -0
- package/.turbo/cache/1d4280429ff4222f-meta.json +1 -0
- package/.turbo/cache/1d4280429ff4222f.tar.zst +0 -0
- package/.turbo/cache/1e42bb6f66cd5516-meta.json +1 -0
- package/.turbo/cache/1e42bb6f66cd5516.tar.zst +0 -0
- package/.turbo/cache/202a84630d73699f-meta.json +1 -0
- package/.turbo/cache/202a84630d73699f.tar.zst +0 -0
- package/.turbo/cache/251ba344c6338ba3-meta.json +1 -0
- package/.turbo/cache/251ba344c6338ba3.tar.zst +0 -0
- package/.turbo/cache/298b6ff0272e6226-meta.json +1 -0
- package/.turbo/cache/298b6ff0272e6226.tar.zst +0 -0
- package/.turbo/cache/2abb5400a01a1694-meta.json +1 -0
- package/.turbo/cache/2abb5400a01a1694.tar.zst +0 -0
- package/.turbo/cache/30fda91ef83677e4-meta.json +1 -0
- package/.turbo/cache/3221d91a94756c26-meta.json +1 -0
- package/.turbo/cache/3221d91a94756c26.tar.zst +0 -0
- package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -0
- package/.turbo/cache/3ab09fe7cf32b3bf.tar.zst +0 -0
- package/.turbo/cache/3b758f5ca6cedcac-meta.json +1 -0
- package/.turbo/cache/3b758f5ca6cedcac.tar.zst +0 -0
- package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -0
- package/.turbo/cache/{67c3255b202e500b.tar.zst → 3f1b3db13386acdc.tar.zst} +0 -0
- package/.turbo/cache/430c124614841675-meta.json +1 -0
- package/.turbo/cache/430c124614841675.tar.zst +0 -0
- package/.turbo/cache/4472ff3b156042a3-meta.json +1 -0
- package/.turbo/cache/4472ff3b156042a3.tar.zst +0 -0
- package/.turbo/cache/448b2ae2221bf660-meta.json +1 -0
- package/.turbo/cache/448b2ae2221bf660.tar.zst +0 -0
- package/.turbo/cache/45bdeb0396723b25-meta.json +1 -0
- package/.turbo/cache/45bdeb0396723b25.tar.zst +0 -0
- package/.turbo/cache/4655a084a08732a7-meta.json +1 -0
- package/.turbo/cache/4655a084a08732a7.tar.zst +0 -0
- package/.turbo/cache/46f08b3f239b6b3c-meta.json +1 -0
- package/.turbo/cache/46f08b3f239b6b3c.tar.zst +0 -0
- package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -0
- package/.turbo/cache/4f06a06e4f458e75-meta.json +1 -0
- package/.turbo/cache/4f06a06e4f458e75.tar.zst +0 -0
- package/.turbo/cache/4f0d7e7df611108b-meta.json +1 -0
- package/.turbo/cache/4f0d7e7df611108b.tar.zst +0 -0
- package/.turbo/cache/533b2c6c9fb1166a-meta.json +1 -0
- package/.turbo/cache/533b2c6c9fb1166a.tar.zst +0 -0
- package/.turbo/cache/560d172ca96e1544-meta.json +1 -0
- package/.turbo/cache/560d172ca96e1544.tar.zst +0 -0
- package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -0
- package/.turbo/cache/59481fd7f6f355ed.tar.zst +0 -0
- package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -0
- package/.turbo/cache/5fc9a7a072827b7b.tar.zst +0 -0
- package/.turbo/cache/753b119a389426be-meta.json +1 -0
- package/.turbo/cache/753b119a389426be.tar.zst +0 -0
- package/.turbo/cache/8ac38d70a60381cb-meta.json +1 -0
- package/.turbo/cache/8ac38d70a60381cb.tar.zst +0 -0
- package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -0
- package/.turbo/cache/8c637a8d4c2166c5.tar.zst +0 -0
- package/.turbo/cache/9dc293081f28a24d-meta.json +1 -0
- package/.turbo/cache/{a78d125599f040ae.tar.zst → 9dc293081f28a24d.tar.zst} +0 -0
- package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -0
- package/.turbo/cache/a7dea1f1ae1fdc27.tar.zst +0 -0
- package/.turbo/cache/a9db8818bc92a60e-meta.json +1 -0
- package/.turbo/cache/{b49dd5629527427d.tar.zst → a9db8818bc92a60e.tar.zst} +0 -0
- package/.turbo/cache/bae62d7b71b88997-meta.json +1 -0
- package/.turbo/cache/bb3131b31c8adc36-meta.json +1 -0
- package/.turbo/cache/bb3131b31c8adc36.tar.zst +0 -0
- package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -0
- package/.turbo/cache/bf3d1eace5e676f9.tar.zst +0 -0
- package/.turbo/cache/c45962e00a15f78b-meta.json +1 -0
- package/.turbo/cache/c49eaa579b60f045-meta.json +1 -0
- package/.turbo/cache/cbc12d12ec0e13ca-meta.json +1 -0
- package/.turbo/cache/{8e3c73cbb92b3ac8.tar.zst → cbc12d12ec0e13ca.tar.zst} +0 -0
- package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -0
- package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -0
- package/.turbo/cache/d3afdb9a7db9eacc.tar.zst +0 -0
- package/.turbo/cache/d7d47541c105641f-meta.json +1 -0
- package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -0
- package/.turbo/cache/de494df6a3006101-meta.json +1 -0
- package/.turbo/cache/de494df6a3006101.tar.zst +0 -0
- package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -0
- package/.turbo/cache/e56a9865641ec3e8.tar.zst +0 -0
- package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -0
- package/.turbo/cache/e837827cd24834c4-meta.json +1 -0
- package/.turbo/cache/e837827cd24834c4.tar.zst +0 -0
- package/.turbo/cache/e95a7d076e700003-meta.json +1 -0
- package/.turbo/cache/{abfe0e87025ae648.tar.zst → e95a7d076e700003.tar.zst} +0 -0
- package/.turbo/cache/e9ff93179777aa26-meta.json +1 -0
- package/.turbo/cache/{2e1456ec1a7873f7.tar.zst → e9ff93179777aa26.tar.zst} +0 -0
- package/.turbo/cache/f571abacf9ec4e84-meta.json +1 -0
- package/.turbo/cache/f571abacf9ec4e84.tar.zst +0 -0
- package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -0
- package/.turbo/cache/f7ab9a13f9acc0ab.tar.zst +0 -0
- package/.turbo/cache/fa0bc0a1d41397e8-meta.json +1 -0
- package/.turbo/cache/fa0bc0a1d41397e8.tar.zst +0 -0
- package/.turbo/cache/fce6b6ea288791bf-meta.json +1 -0
- package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -0
- package/.turbo/cache/ff3c8a3042cab66e.tar.zst +0 -0
- package/CHANGELOG.md +31 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +0 -1
- package/components/checkbox/demo/api.min.js +252 -41
- package/components/checkbox/demo/index.min.js +252 -41
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +252 -41
- package/components/checkbox/package.json +1 -0
- package/components/checkbox/src/auro-checkbox-group.js +6 -4
- package/components/checkbox/src/styles/colorGroup-css.js +1 -1
- package/components/checkbox/src/styles/colorGroup.css +0 -8
- package/components/checkbox/src/styles/colorGroup.scss +0 -8
- package/components/checkbox/src/styles/tokens-css.js +1 -1
- package/components/checkbox/src/styles/tokens.css +0 -1
- package/components/checkbox/src/styles/tokens.scss +0 -1
- package/components/combobox/.turbo/turbo-build.log +2 -2
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.min.js +611 -185
- package/components/combobox/demo/index.min.js +611 -185
- package/components/combobox/dist/index.js +582 -156
- package/components/combobox/src/auro-combobox.js +4 -4
- package/components/counter/.turbo/turbo-build.log +12 -3
- package/components/counter/.turbo/turbo-bundler.log +9 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +163 -3126
- package/components/counter/demo/index.min.js +163 -3126
- package/components/counter/dist/index.js +163 -3126
- package/components/counter/src/styles/counter-button.css +1 -1
- package/components/datepicker/.turbo/turbo-build.log +2 -2
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +712 -286
- package/components/datepicker/demo/index.min.js +712 -286
- package/components/datepicker/dist/index.js +712 -286
- package/components/datepicker/src/auro-datepicker.js +4 -4
- package/components/datepicker/src/styles/style-css.js +1 -1
- package/components/datepicker/src/styles/style.css +0 -6
- package/components/datepicker/src/styles/style.scss +0 -6
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +0 -1
- package/components/dropdown/demo/api.min.js +259 -50
- package/components/dropdown/demo/index.min.js +259 -50
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +259 -50
- package/components/dropdown/package.json +1 -0
- package/components/dropdown/src/auro-dropdown.js +4 -5
- package/components/dropdown/src/styles/color-css.js +1 -1
- package/components/dropdown/src/styles/color.css +0 -5
- package/components/dropdown/src/styles/color.scss +0 -5
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +0 -6
- package/components/dropdown/src/styles/style.scss +0 -6
- package/components/dropdown/src/styles/tokens-css.js +1 -1
- package/components/dropdown/src/styles/tokens.css +0 -1
- package/components/dropdown/src/styles/tokens.scss +0 -1
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/form/demo/api.min.js +62 -14
- package/components/form/demo/index.min.js +62 -14
- package/components/form/dist/auro-form.d.ts +19 -4
- package/components/form/dist/auro-form.d.ts.map +1 -1
- package/components/form/dist/index.js +62 -14
- package/components/form/src/auro-form.js +62 -14
- package/components/form/src/styles/style.css +1 -1
- package/components/helptext/.stylelintrc.json +3 -0
- package/components/helptext/.turbo/turbo-build$colon$sass.log +34 -0
- package/components/helptext/.turbo/turbo-build.log +49 -0
- package/components/helptext/.turbo/turbo-bundler.log +7 -0
- package/components/helptext/.turbo/turbo-postCss$colon$component.log +4 -0
- package/components/helptext/.turbo/turbo-sass$colon$render.log +22 -0
- package/components/helptext/.turbo/turbo-types.log +4 -0
- package/components/helptext/dist/auro-helptext.d.ts +46 -0
- package/components/helptext/dist/auro-helptext.d.ts.map +1 -0
- package/components/helptext/dist/index.d.ts +3 -0
- package/components/helptext/dist/index.d.ts.map +1 -0
- package/components/helptext/dist/index.js +212 -0
- package/components/{input/dist/styles/helpText-css.d.ts → helptext/dist/styles/color-css.d.ts} +1 -1
- package/components/helptext/dist/styles/color-css.d.ts.map +1 -0
- package/components/helptext/dist/styles/style-css.d.ts +3 -0
- package/components/helptext/dist/styles/style-css.d.ts.map +1 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +3 -0
- package/components/helptext/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/helptext/node_modules/chalk/package.json +83 -0
- package/components/helptext/node_modules/chalk/readme.md +297 -0
- package/components/helptext/node_modules/chalk/source/index.d.ts +325 -0
- package/components/helptext/node_modules/chalk/source/index.js +225 -0
- package/components/helptext/node_modules/chalk/source/utilities.js +33 -0
- package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/helptext/package.json +57 -0
- package/components/helptext/src/auro-helptext.js +115 -0
- package/components/helptext/src/index.js +6 -0
- package/components/helptext/src/styles/color-css.js +2 -0
- package/components/helptext/src/styles/color.css +8 -0
- package/components/helptext/src/styles/color.scss +11 -0
- package/components/helptext/src/styles/style-css.js +2 -0
- package/components/helptext/src/styles/style.css +20 -0
- package/components/helptext/src/styles/style.scss +30 -0
- package/components/helptext/src/styles/tokens-css.js +2 -0
- package/components/helptext/src/styles/tokens.css +3 -0
- package/components/helptext/src/styles/tokens.scss +5 -0
- package/components/input/.turbo/turbo-build$colon$sass.log +3 -13
- package/components/input/.turbo/turbo-build.log +6 -16
- package/components/input/.turbo/turbo-sass$colon$render.log +0 -6
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +0 -1
- package/components/input/demo/api.min.js +317 -100
- package/components/input/demo/index.min.js +317 -100
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/index.js +317 -100
- package/components/input/package.json +1 -0
- package/components/input/src/auro-input.js +18 -10
- package/components/input/src/styles/color-css.js +1 -1
- package/components/input/src/styles/color.css +0 -5
- package/components/input/src/styles/color.scss +0 -5
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +0 -7
- package/components/input/src/styles/style.scss +0 -1
- package/components/input/src/styles/tokens-css.js +1 -1
- package/components/input/src/styles/tokens.css +0 -1
- package/components/input/src/styles/tokens.scss +0 -1
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/menu/src/styles/style-menu.css +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +0 -1
- package/components/radio/demo/api.min.js +249 -39
- package/components/radio/demo/index.min.js +249 -39
- package/components/radio/dist/auro-radio-group.d.ts.map +1 -1
- package/components/radio/dist/index.js +249 -39
- package/components/radio/package.json +1 -0
- package/components/radio/src/auro-radio-group.js +5 -4
- package/components/radio/src/styles/groupColor-css.js +1 -1
- package/components/radio/src/styles/groupColor.css +0 -8
- package/components/radio/src/styles/groupColor.scss +0 -8
- package/components/radio/src/styles/tokens-css.js +1 -1
- package/components/radio/src/styles/tokens.css +0 -1
- package/components/radio/src/styles/tokens.scss +0 -1
- package/components/select/.turbo/turbo-build.log +3 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +306 -97
- package/components/select/demo/index.min.js +306 -97
- package/components/select/dist/index.js +275 -66
- package/components/select/src/auro-select.js +6 -6
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +0 -6
- package/components/select/src/styles/style.scss +0 -6
- package/package.json +4 -1
- package/turbo.json +29 -1
- package/.turbo/cache/0c0a0bc31b8aab59-meta.json +0 -1
- package/.turbo/cache/0c0a0bc31b8aab59.tar.zst +0 -0
- package/.turbo/cache/0cbb56c99e650fa0-meta.json +0 -1
- package/.turbo/cache/0cbb56c99e650fa0.tar.zst +0 -0
- package/.turbo/cache/0fba2ec59e2dfd8b-meta.json +0 -1
- package/.turbo/cache/0fba2ec59e2dfd8b.tar.zst +0 -0
- package/.turbo/cache/163b3258a0fedac8-meta.json +0 -1
- package/.turbo/cache/163b3258a0fedac8.tar.zst +0 -0
- package/.turbo/cache/17d8b8bd7a2d45c8-meta.json +0 -1
- package/.turbo/cache/17d8b8bd7a2d45c8.tar.zst +0 -0
- package/.turbo/cache/23e204ed502c21fe-meta.json +0 -1
- package/.turbo/cache/24d7d9090145a626-meta.json +0 -1
- package/.turbo/cache/24d7d9090145a626.tar.zst +0 -0
- package/.turbo/cache/267a4d6654311f2b-meta.json +0 -1
- package/.turbo/cache/285fe2c074654eb2-meta.json +0 -1
- package/.turbo/cache/2e1456ec1a7873f7-meta.json +0 -1
- package/.turbo/cache/2e4e2a1831bef749-meta.json +0 -1
- package/.turbo/cache/2e4e2a1831bef749.tar.zst +0 -0
- package/.turbo/cache/351f58d5c3cae34e-meta.json +0 -1
- package/.turbo/cache/39dc2793eb573623-meta.json +0 -1
- package/.turbo/cache/39dc2793eb573623.tar.zst +0 -0
- package/.turbo/cache/3b1f37014160e895-meta.json +0 -1
- package/.turbo/cache/3b1f37014160e895.tar.zst +0 -0
- package/.turbo/cache/3c1cb8d2e8bec5d5-meta.json +0 -1
- package/.turbo/cache/3c1cb8d2e8bec5d5.tar.zst +0 -0
- package/.turbo/cache/411cfda2c367c29c-meta.json +0 -1
- package/.turbo/cache/411cfda2c367c29c.tar.zst +0 -0
- package/.turbo/cache/4225d94a40fc6659-meta.json +0 -1
- package/.turbo/cache/4225d94a40fc6659.tar.zst +0 -0
- package/.turbo/cache/4359c29d1655eec0-meta.json +0 -1
- package/.turbo/cache/4359c29d1655eec0.tar.zst +0 -0
- package/.turbo/cache/4e34f0f0a9d02732-meta.json +0 -1
- package/.turbo/cache/4e34f0f0a9d02732.tar.zst +0 -0
- package/.turbo/cache/4e4992ed3be45c2f-meta.json +0 -1
- package/.turbo/cache/4e4992ed3be45c2f.tar.zst +0 -0
- package/.turbo/cache/4fb77e22ffd90112-meta.json +0 -1
- package/.turbo/cache/4fb77e22ffd90112.tar.zst +0 -0
- package/.turbo/cache/52dce5349ebee512-meta.json +0 -1
- package/.turbo/cache/52dce5349ebee512.tar.zst +0 -0
- package/.turbo/cache/558b31cc05ccc960-meta.json +0 -1
- package/.turbo/cache/64424afa661a9d52-meta.json +0 -1
- package/.turbo/cache/64424afa661a9d52.tar.zst +0 -0
- package/.turbo/cache/67c3255b202e500b-meta.json +0 -1
- package/.turbo/cache/6c9f48c7e69a2ec0-meta.json +0 -1
- package/.turbo/cache/6c9f48c7e69a2ec0.tar.zst +0 -0
- package/.turbo/cache/6f7bdd4097644495-meta.json +0 -1
- package/.turbo/cache/6f7bdd4097644495.tar.zst +0 -0
- package/.turbo/cache/704a22f3a6a32426-meta.json +0 -1
- package/.turbo/cache/704a22f3a6a32426.tar.zst +0 -0
- package/.turbo/cache/766995ed5805f011-meta.json +0 -1
- package/.turbo/cache/766995ed5805f011.tar.zst +0 -0
- package/.turbo/cache/782ea8bf6bfd8203-meta.json +0 -1
- package/.turbo/cache/782ea8bf6bfd8203.tar.zst +0 -0
- package/.turbo/cache/78968f685c031ba1-meta.json +0 -1
- package/.turbo/cache/78968f685c031ba1.tar.zst +0 -0
- package/.turbo/cache/78e014dddc2d6125-meta.json +0 -1
- package/.turbo/cache/78e014dddc2d6125.tar.zst +0 -0
- package/.turbo/cache/7a92232f5b7d1032-meta.json +0 -1
- package/.turbo/cache/7a92232f5b7d1032.tar.zst +0 -0
- package/.turbo/cache/87987f08153b356f-meta.json +0 -1
- package/.turbo/cache/87987f08153b356f.tar.zst +0 -0
- package/.turbo/cache/8c6d632132b58f2a-meta.json +0 -1
- package/.turbo/cache/8c6d632132b58f2a.tar.zst +0 -0
- package/.turbo/cache/8e3c73cbb92b3ac8-meta.json +0 -1
- package/.turbo/cache/939b09d0d5a44a8e-meta.json +0 -1
- package/.turbo/cache/939b09d0d5a44a8e.tar.zst +0 -0
- package/.turbo/cache/951037a4bb464cc3-meta.json +0 -1
- package/.turbo/cache/951037a4bb464cc3.tar.zst +0 -0
- package/.turbo/cache/9584055bc0f88083-meta.json +0 -1
- package/.turbo/cache/9584055bc0f88083.tar.zst +0 -0
- package/.turbo/cache/972125b3b011cd6f-meta.json +0 -1
- package/.turbo/cache/a07fca2bec5e088a-meta.json +0 -1
- package/.turbo/cache/a07fca2bec5e088a.tar.zst +0 -0
- package/.turbo/cache/a1f17a427205f758-meta.json +0 -1
- package/.turbo/cache/a78d125599f040ae-meta.json +0 -1
- package/.turbo/cache/abfe0e87025ae648-meta.json +0 -1
- package/.turbo/cache/ad140cc079669a3d-meta.json +0 -1
- package/.turbo/cache/ad140cc079669a3d.tar.zst +0 -0
- package/.turbo/cache/af78f67fd46864cf-meta.json +0 -1
- package/.turbo/cache/af78f67fd46864cf.tar.zst +0 -0
- package/.turbo/cache/b49dd5629527427d-meta.json +0 -1
- package/.turbo/cache/b6d9b63450b2be32-meta.json +0 -1
- package/.turbo/cache/b6d9b63450b2be32.tar.zst +0 -0
- package/.turbo/cache/b9b3700e26eea28f-meta.json +0 -1
- package/.turbo/cache/b9b3700e26eea28f.tar.zst +0 -0
- package/.turbo/cache/be2163f79158c78f-meta.json +0 -1
- package/.turbo/cache/be2163f79158c78f.tar.zst +0 -0
- package/.turbo/cache/c3d8dc6e45d0331b-meta.json +0 -1
- package/.turbo/cache/c3d8dc6e45d0331b.tar.zst +0 -0
- package/.turbo/cache/c688990b9f5a9adc-meta.json +0 -1
- package/.turbo/cache/c688990b9f5a9adc.tar.zst +0 -0
- package/.turbo/cache/c77c96d6a2d1be7d-meta.json +0 -1
- package/.turbo/cache/c77c96d6a2d1be7d.tar.zst +0 -0
- package/.turbo/cache/ccaf1a2accea911b-meta.json +0 -1
- package/.turbo/cache/d40c3723f98d81cd-meta.json +0 -1
- package/.turbo/cache/d40c3723f98d81cd.tar.zst +0 -0
- package/.turbo/cache/e118c1013f86c6e8-meta.json +0 -1
- package/.turbo/cache/e16b24ee6e7c1e50-meta.json +0 -1
- package/.turbo/cache/e16b24ee6e7c1e50.tar.zst +0 -0
- package/.turbo/cache/f77e5f0c843f7f08-meta.json +0 -1
- package/.turbo/cache/f77e5f0c843f7f08.tar.zst +0 -0
- package/.turbo/cache/f90d7f40233634c8-meta.json +0 -1
- package/components/checkbox/.turbo/turbo-bundler.log +0 -13
- package/components/checkbox/.turbo/turbo-types.log +0 -4
- package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
- package/components/dropdown/.turbo/turbo-bundler.log +0 -13
- package/components/dropdown/.turbo/turbo-types.log +0 -4
- package/components/input/.turbo/turbo-build$colon$version.log +0 -10
- package/components/input/.turbo/turbo-bundler.log +0 -13
- package/components/input/.turbo/turbo-types.log +0 -4
- package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
- package/components/input/src/styles/helpText-css.js +0 -2
- package/components/input/src/styles/helpText.css +0 -6
- package/components/input/src/styles/helpText.scss +0 -9
- package/components/radio/.turbo/turbo-bundler.log +0 -13
- package/components/radio/.turbo/turbo-types.log +0 -4
- /package/.turbo/cache/{351f58d5c3cae34e.tar.zst → 30fda91ef83677e4.tar.zst} +0 -0
- /package/.turbo/cache/{ccaf1a2accea911b.tar.zst → 4e9c9a5dd62c50a4.tar.zst} +0 -0
- /package/.turbo/cache/{23e204ed502c21fe.tar.zst → bae62d7b71b88997.tar.zst} +0 -0
- /package/.turbo/cache/{e118c1013f86c6e8.tar.zst → c45962e00a15f78b.tar.zst} +0 -0
- /package/.turbo/cache/{267a4d6654311f2b.tar.zst → c49eaa579b60f045.tar.zst} +0 -0
- /package/.turbo/cache/{f90d7f40233634c8.tar.zst → cbcd9db8ac9a2d52.tar.zst} +0 -0
- /package/.turbo/cache/{285fe2c074654eb2.tar.zst → d7d47541c105641f.tar.zst} +0 -0
- /package/.turbo/cache/{972125b3b011cd6f.tar.zst → d8ecdff9c663c38e.tar.zst} +0 -0
- /package/.turbo/cache/{558b31cc05ccc960.tar.zst → e7ed9e7056d80938.tar.zst} +0 -0
- /package/.turbo/cache/{a1f17a427205f758.tar.zst → fce6b6ea288791bf.tar.zst} +0 -0
|
@@ -21,6 +21,7 @@ import styleCss from "./styles/style-css.js";
|
|
|
21
21
|
import colorCss from "./styles/color-css.js";
|
|
22
22
|
import tokensCss from "./styles/tokens-css.js";
|
|
23
23
|
|
|
24
|
+
import '@aurodesignsystem/auro-helptext';
|
|
24
25
|
import './auro-dropdownBib.js';
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -435,7 +436,7 @@ export class AuroDropdown extends LitElement {
|
|
|
435
436
|
<div class="triggerContent">
|
|
436
437
|
<slot
|
|
437
438
|
name="trigger"
|
|
438
|
-
@slotchange="${
|
|
439
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
439
440
|
</div>
|
|
440
441
|
</div>
|
|
441
442
|
${this.chevron || this.common ? html`
|
|
@@ -452,11 +453,9 @@ export class AuroDropdown extends LitElement {
|
|
|
452
453
|
</div>
|
|
453
454
|
` : undefined }
|
|
454
455
|
</div>
|
|
455
|
-
<
|
|
456
|
-
class="helpText"
|
|
457
|
-
part="helpText">
|
|
456
|
+
<auro-helptext part="helpText" ?error="${this.error}">
|
|
458
457
|
<slot name="helpText"></slot>
|
|
459
|
-
</
|
|
458
|
+
</auro-helptext>
|
|
460
459
|
<div class="slotContent">
|
|
461
460
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
462
461
|
</div>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}
|
|
2
|
+
export default css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
@@ -19,10 +19,6 @@
|
|
|
19
19
|
--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.helpText {
|
|
23
|
-
color: var(--ds-auro-dropdown-help-text-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
:host([disabled]) {
|
|
27
23
|
--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);
|
|
28
24
|
--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad);
|
|
@@ -39,7 +35,6 @@
|
|
|
39
35
|
}
|
|
40
36
|
|
|
41
37
|
:host([error]) {
|
|
42
|
-
--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);
|
|
43
38
|
--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816);
|
|
44
39
|
}
|
|
45
40
|
:host([error]) .trigger {
|
|
@@ -33,10 +33,6 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.helpText {
|
|
37
|
-
color: var(--ds-auro-dropdown-help-text-color);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
36
|
:host([disabled]) {
|
|
41
37
|
--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #{$ds-color-text-ui-disabled-default});
|
|
42
38
|
--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #{$ds-color-text-ui-disabled-default});
|
|
@@ -55,7 +51,6 @@
|
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
:host([error]) {
|
|
58
|
-
--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #{$ds-color-text-error-default});
|
|
59
54
|
--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #{$ds-color-border-error-default});
|
|
60
55
|
|
|
61
56
|
.trigger {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
2
|
+
export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
@@ -63,12 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* stylelint-enable selector-id-pattern */
|
|
66
|
-
.helpText {
|
|
67
|
-
margin-top: var(--ds-size-50, 0.25rem);
|
|
68
|
-
font-size: var(--ds-text-body-size-xs, 0.75rem);
|
|
69
|
-
line-height: var(--ds-text-body-size-default, 1rem);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
66
|
:host([matchwidth]) #bibSizer {
|
|
73
67
|
width: 100%;
|
|
74
68
|
}
|
|
@@ -85,12 +85,6 @@
|
|
|
85
85
|
}
|
|
86
86
|
/* stylelint-enable selector-id-pattern */
|
|
87
87
|
|
|
88
|
-
.helpText {
|
|
89
|
-
margin-top: var(--ds-size-50, $ds-size-50);
|
|
90
|
-
font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
|
|
91
|
-
line-height: var(--ds-text-body-size-default, $ds-text-body-size-default);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
88
|
:host([matchwidth]) {
|
|
95
89
|
#bibSizer {
|
|
96
90
|
width: 100%;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{--ds-auro-dropdown-
|
|
2
|
+
export default css`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);
|
|
3
2
|
--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);
|
|
4
3
|
--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);
|
|
5
4
|
--ds-auro-dropdown-popover-border-color: transparent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
2
2
|
|
|
3
3
|
:host {
|
|
4
|
-
--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
|
|
5
4
|
--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
|
|
6
5
|
--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
|
|
7
6
|
--ds-auro-dropdown-popover-border-color: transparent;
|
|
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
|
|
|
69
69
|
|
|
70
70
|
[36m
|
|
71
71
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
72
|
-
[32mcreated [1mdist[22m in [
|
|
72
|
+
[32mcreated [1mdist[22m in [1m146ms[22m[39m
|
|
73
73
|
[36m
|
|
74
74
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
75
|
-
[32mcreated [1m./demo/[22m in [
|
|
75
|
+
[32mcreated [1m./demo/[22m in [1m76ms[22m[39m
|
|
76
76
|
[36m
|
|
77
77
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
78
|
-
[32mcreated [1m./demo/[22m in [
|
|
78
|
+
[32mcreated [1m./demo/[22m in [1m66ms[22m[39m
|
|
79
79
|
|
|
80
80
|
> @aurodesignsystem/auro-form@1.0.0 build:docs
|
|
81
81
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
|
|
@@ -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 [1m304ms[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 [1m175ms[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 [1m202ms[22m[39m
|
|
@@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
98
98
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
99
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
|
|
100
100
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
101
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.
|
|
101
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.28/dist/auro-form__bundled.js" type="module"></script>
|
|
102
102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
103
|
|
|
104
104
|
## auro-form use cases
|
|
@@ -235,6 +235,22 @@ class AuroForm extends r {
|
|
|
235
235
|
}, {});
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Getter for internal _submitElements.
|
|
240
|
+
* @returns {HTMLButtonElement[]}
|
|
241
|
+
*/
|
|
242
|
+
get submitElements() {
|
|
243
|
+
return this._submitelements;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Getter for internal _resetElements.
|
|
248
|
+
* @returns {HTMLButtonElement[]}
|
|
249
|
+
*/
|
|
250
|
+
get resetElements() {
|
|
251
|
+
return this._resetElements;
|
|
252
|
+
}
|
|
253
|
+
|
|
238
254
|
/**
|
|
239
255
|
* Infer validity status based on current formState.
|
|
240
256
|
* @private
|
|
@@ -260,6 +276,9 @@ class AuroForm extends r {
|
|
|
260
276
|
* @returns {"valid" | "invalid"}
|
|
261
277
|
*/
|
|
262
278
|
get validity() {
|
|
279
|
+
// Force calculate, as sometimes validity won't reflect
|
|
280
|
+
// the latest value while in-between renders.
|
|
281
|
+
this._calculateValidity();
|
|
263
282
|
return this._validity;
|
|
264
283
|
}
|
|
265
284
|
|
|
@@ -327,6 +346,27 @@ class AuroForm extends r {
|
|
|
327
346
|
]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
|
|
328
347
|
}
|
|
329
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Store an element in state and on the _elements array.
|
|
351
|
+
* @param {HTMLElement} element - The element to add to our state.
|
|
352
|
+
* @private
|
|
353
|
+
*/
|
|
354
|
+
_addElementToState(element) {
|
|
355
|
+
const targetName = element.getAttribute('name');
|
|
356
|
+
if (this.formState[targetName]) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
this.formState[targetName] = {
|
|
361
|
+
value: element.getAttribute('value'),
|
|
362
|
+
validity: element.validity || null,
|
|
363
|
+
required: element.hasAttribute('required'),
|
|
364
|
+
// element
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
this._elements.push(element);
|
|
368
|
+
}
|
|
369
|
+
|
|
330
370
|
/**
|
|
331
371
|
* Initialize (or reinitialize) the form state.
|
|
332
372
|
*/
|
|
@@ -338,14 +378,7 @@ class AuroForm extends r {
|
|
|
338
378
|
|
|
339
379
|
this.queryAuroElements().forEach((element) => {
|
|
340
380
|
if (this.isFormElement(element)) {
|
|
341
|
-
this.
|
|
342
|
-
value: element.getAttribute('value'),
|
|
343
|
-
validity: element.getAttribute('validity'),
|
|
344
|
-
required: element.hasAttribute('required'),
|
|
345
|
-
// element
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
this._elements.push(element);
|
|
381
|
+
this._addElementToState(element);
|
|
349
382
|
}
|
|
350
383
|
|
|
351
384
|
if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
|
|
@@ -369,7 +402,11 @@ class AuroForm extends r {
|
|
|
369
402
|
this.setDisabledStateOnButtons();
|
|
370
403
|
}
|
|
371
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Reset fires an event called `reset` - just as you would expect from a normal form.
|
|
407
|
+
*/
|
|
372
408
|
reset() {
|
|
409
|
+
const previousValue = this.value;
|
|
373
410
|
this._elements.forEach((element) => element.reset());
|
|
374
411
|
|
|
375
412
|
this.updateComplete.then(() => {
|
|
@@ -381,16 +418,20 @@ class AuroForm extends r {
|
|
|
381
418
|
// Wait for the above changes to run through, then disable submit/reset
|
|
382
419
|
this.updateComplete.then(() => {
|
|
383
420
|
this.setDisabledStateOnButtons();
|
|
421
|
+
|
|
422
|
+
this.dispatchEvent(new CustomEvent('reset', {
|
|
423
|
+
bubbles: true,
|
|
424
|
+
composed: true,
|
|
425
|
+
detail: {
|
|
426
|
+
previousValue
|
|
427
|
+
}
|
|
428
|
+
}));
|
|
384
429
|
});
|
|
385
430
|
});
|
|
386
431
|
}
|
|
387
432
|
|
|
388
433
|
/**
|
|
389
434
|
* Submit fires an event called `submit` - just as you would expect from a normal form.
|
|
390
|
-
*
|
|
391
|
-
* @example ```
|
|
392
|
-
* const form = document.querySelector('auro-
|
|
393
|
-
* ```
|
|
394
435
|
*/
|
|
395
436
|
submit() {
|
|
396
437
|
// Steps required to get out of beta:
|
|
@@ -437,13 +478,16 @@ class AuroForm extends r {
|
|
|
437
478
|
return;
|
|
438
479
|
}
|
|
439
480
|
|
|
481
|
+
// Occasionally, a form element will emit their event before the form can read data about the form element.
|
|
482
|
+
if (!this.formState[targetName] && this.isFormElement(event.target)) {
|
|
483
|
+
this._addElementToState(event.target);
|
|
484
|
+
}
|
|
485
|
+
|
|
440
486
|
// Check special input types and handle their edge cases
|
|
441
487
|
if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
|
|
442
488
|
this.formState[targetName].value = event.target.values;
|
|
443
|
-
|
|
444
489
|
this.requestUpdate('formState');
|
|
445
490
|
} else {
|
|
446
|
-
// "Normal" input value handling, just assign the value
|
|
447
491
|
this.formState[targetName].value = event.target.value;
|
|
448
492
|
this.requestUpdate('formState');
|
|
449
493
|
}
|
|
@@ -455,6 +499,10 @@ class AuroForm extends r {
|
|
|
455
499
|
return;
|
|
456
500
|
}
|
|
457
501
|
|
|
502
|
+
if (!this.formState[targetName]) {
|
|
503
|
+
this._addElementToState(event.target);
|
|
504
|
+
}
|
|
505
|
+
|
|
458
506
|
this.formState[targetName].validity = event.detail.validity;
|
|
459
507
|
this._calculateValidity();
|
|
460
508
|
});
|
|
@@ -235,6 +235,22 @@ class AuroForm extends r {
|
|
|
235
235
|
}, {});
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Getter for internal _submitElements.
|
|
240
|
+
* @returns {HTMLButtonElement[]}
|
|
241
|
+
*/
|
|
242
|
+
get submitElements() {
|
|
243
|
+
return this._submitelements;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Getter for internal _resetElements.
|
|
248
|
+
* @returns {HTMLButtonElement[]}
|
|
249
|
+
*/
|
|
250
|
+
get resetElements() {
|
|
251
|
+
return this._resetElements;
|
|
252
|
+
}
|
|
253
|
+
|
|
238
254
|
/**
|
|
239
255
|
* Infer validity status based on current formState.
|
|
240
256
|
* @private
|
|
@@ -260,6 +276,9 @@ class AuroForm extends r {
|
|
|
260
276
|
* @returns {"valid" | "invalid"}
|
|
261
277
|
*/
|
|
262
278
|
get validity() {
|
|
279
|
+
// Force calculate, as sometimes validity won't reflect
|
|
280
|
+
// the latest value while in-between renders.
|
|
281
|
+
this._calculateValidity();
|
|
263
282
|
return this._validity;
|
|
264
283
|
}
|
|
265
284
|
|
|
@@ -327,6 +346,27 @@ class AuroForm extends r {
|
|
|
327
346
|
]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
|
|
328
347
|
}
|
|
329
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Store an element in state and on the _elements array.
|
|
351
|
+
* @param {HTMLElement} element - The element to add to our state.
|
|
352
|
+
* @private
|
|
353
|
+
*/
|
|
354
|
+
_addElementToState(element) {
|
|
355
|
+
const targetName = element.getAttribute('name');
|
|
356
|
+
if (this.formState[targetName]) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
this.formState[targetName] = {
|
|
361
|
+
value: element.getAttribute('value'),
|
|
362
|
+
validity: element.validity || null,
|
|
363
|
+
required: element.hasAttribute('required'),
|
|
364
|
+
// element
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
this._elements.push(element);
|
|
368
|
+
}
|
|
369
|
+
|
|
330
370
|
/**
|
|
331
371
|
* Initialize (or reinitialize) the form state.
|
|
332
372
|
*/
|
|
@@ -338,14 +378,7 @@ class AuroForm extends r {
|
|
|
338
378
|
|
|
339
379
|
this.queryAuroElements().forEach((element) => {
|
|
340
380
|
if (this.isFormElement(element)) {
|
|
341
|
-
this.
|
|
342
|
-
value: element.getAttribute('value'),
|
|
343
|
-
validity: element.getAttribute('validity'),
|
|
344
|
-
required: element.hasAttribute('required'),
|
|
345
|
-
// element
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
this._elements.push(element);
|
|
381
|
+
this._addElementToState(element);
|
|
349
382
|
}
|
|
350
383
|
|
|
351
384
|
if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
|
|
@@ -369,7 +402,11 @@ class AuroForm extends r {
|
|
|
369
402
|
this.setDisabledStateOnButtons();
|
|
370
403
|
}
|
|
371
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Reset fires an event called `reset` - just as you would expect from a normal form.
|
|
407
|
+
*/
|
|
372
408
|
reset() {
|
|
409
|
+
const previousValue = this.value;
|
|
373
410
|
this._elements.forEach((element) => element.reset());
|
|
374
411
|
|
|
375
412
|
this.updateComplete.then(() => {
|
|
@@ -381,16 +418,20 @@ class AuroForm extends r {
|
|
|
381
418
|
// Wait for the above changes to run through, then disable submit/reset
|
|
382
419
|
this.updateComplete.then(() => {
|
|
383
420
|
this.setDisabledStateOnButtons();
|
|
421
|
+
|
|
422
|
+
this.dispatchEvent(new CustomEvent('reset', {
|
|
423
|
+
bubbles: true,
|
|
424
|
+
composed: true,
|
|
425
|
+
detail: {
|
|
426
|
+
previousValue
|
|
427
|
+
}
|
|
428
|
+
}));
|
|
384
429
|
});
|
|
385
430
|
});
|
|
386
431
|
}
|
|
387
432
|
|
|
388
433
|
/**
|
|
389
434
|
* Submit fires an event called `submit` - just as you would expect from a normal form.
|
|
390
|
-
*
|
|
391
|
-
* @example ```
|
|
392
|
-
* const form = document.querySelector('auro-
|
|
393
|
-
* ```
|
|
394
435
|
*/
|
|
395
436
|
submit() {
|
|
396
437
|
// Steps required to get out of beta:
|
|
@@ -437,13 +478,16 @@ class AuroForm extends r {
|
|
|
437
478
|
return;
|
|
438
479
|
}
|
|
439
480
|
|
|
481
|
+
// Occasionally, a form element will emit their event before the form can read data about the form element.
|
|
482
|
+
if (!this.formState[targetName] && this.isFormElement(event.target)) {
|
|
483
|
+
this._addElementToState(event.target);
|
|
484
|
+
}
|
|
485
|
+
|
|
440
486
|
// Check special input types and handle their edge cases
|
|
441
487
|
if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
|
|
442
488
|
this.formState[targetName].value = event.target.values;
|
|
443
|
-
|
|
444
489
|
this.requestUpdate('formState');
|
|
445
490
|
} else {
|
|
446
|
-
// "Normal" input value handling, just assign the value
|
|
447
491
|
this.formState[targetName].value = event.target.value;
|
|
448
492
|
this.requestUpdate('formState');
|
|
449
493
|
}
|
|
@@ -455,6 +499,10 @@ class AuroForm extends r {
|
|
|
455
499
|
return;
|
|
456
500
|
}
|
|
457
501
|
|
|
502
|
+
if (!this.formState[targetName]) {
|
|
503
|
+
this._addElementToState(event.target);
|
|
504
|
+
}
|
|
505
|
+
|
|
458
506
|
this.formState[targetName].validity = event.detail.validity;
|
|
459
507
|
this._calculateValidity();
|
|
460
508
|
});
|
|
@@ -60,13 +60,12 @@ export class AuroForm extends LitElement {
|
|
|
60
60
|
_submitelements: HTMLButtonElement[];
|
|
61
61
|
/** @type {HTMLButtonElement[]} */
|
|
62
62
|
_resetElements: HTMLButtonElement[];
|
|
63
|
+
/**
|
|
64
|
+
* Reset fires an event called `reset` - just as you would expect from a normal form.
|
|
65
|
+
*/
|
|
63
66
|
reset(): void;
|
|
64
67
|
/**
|
|
65
68
|
* Submit fires an event called `submit` - just as you would expect from a normal form.
|
|
66
|
-
*
|
|
67
|
-
* @example ```
|
|
68
|
-
* const form = document.querySelector('auro-
|
|
69
|
-
* ```
|
|
70
69
|
*/
|
|
71
70
|
submit(): void;
|
|
72
71
|
/**
|
|
@@ -107,6 +106,16 @@ export class AuroForm extends LitElement {
|
|
|
107
106
|
* @returns {Record<string, string | number | boolean | string[] | null>} The form value.
|
|
108
107
|
*/
|
|
109
108
|
get value(): Record<string, string | number | boolean | string[] | null>;
|
|
109
|
+
/**
|
|
110
|
+
* Getter for internal _submitElements.
|
|
111
|
+
* @returns {HTMLButtonElement[]}
|
|
112
|
+
*/
|
|
113
|
+
get submitElements(): HTMLButtonElement[];
|
|
114
|
+
/**
|
|
115
|
+
* Getter for internal _resetElements.
|
|
116
|
+
* @returns {HTMLButtonElement[]}
|
|
117
|
+
*/
|
|
118
|
+
get resetElements(): HTMLButtonElement[];
|
|
110
119
|
/**
|
|
111
120
|
* Infer validity status based on current formState.
|
|
112
121
|
* @private
|
|
@@ -129,6 +138,12 @@ export class AuroForm extends LitElement {
|
|
|
129
138
|
* @returns {NodeList}
|
|
130
139
|
*/
|
|
131
140
|
queryAuroElements(): NodeList;
|
|
141
|
+
/**
|
|
142
|
+
* Store an element in state and on the _elements array.
|
|
143
|
+
* @param {HTMLElement} element - The element to add to our state.
|
|
144
|
+
* @private
|
|
145
|
+
*/
|
|
146
|
+
private _addElementToState;
|
|
132
147
|
/**
|
|
133
148
|
* Initialize (or reinitialize) the form state.
|
|
134
149
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAiCD,yCAKC;IAWD,+CAEC;
|
|
1
|
+
{"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAiCD,yCAKC;IAWD,+CAEC;IA6OD;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAxUC,wBAAwB;IACxB,WADW,SAAS,CACD;IAEnB,yCAAyC;IACzC,WADW,OAAO,GAAG,SAAS,GAAG,IAAI,CAChB;IACrB,yBAA2B;IAE3B,oDAAoD;IACpD,WADW,CAAC,WAAW,GAAG;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC,EAAE,CAC7B;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACL;IAEzB,kCAAkC;IAClC,gBADW,iBAAiB,EAAE,CACN;IA4P1B;;OAEG;IACH,cAuBC;IAED;;OAEG;IACH,eAmBC;IA5RD;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;OAMG;IACH,+BAEC;IAED;;;;OAIG;IACH,uBAHW,WAAW,GACT,OAAO,CAInB;IASD;;;;OAIG;IACH,yBAHW,WAAW,GACT,OAAO,CAInB;IAMD;;;;;;;;OAQG;IACH,aAFa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAOvE;IAED;;;OAGG;IACH,sBAFa,iBAAiB,EAAE,CAI/B;IAED;;;OAGG;IACH,qBAFa,iBAAiB,EAAE,CAI/B;IAED;;;OAGG;IACH,2BAcC;IAED;;;OAGG;IACH,gBAFa,OAAO,GAAG,SAAS,CAO/B;IAED,yBAUC;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED,kCAgBC;IAED;;;OAGG;IACH,qBAFa,QAAQ,CAsBpB;IAED;;;;OAIG;IACH,2BAcC;IAED;;OAEG;IACH,wBA8BC;IAkED,4CAwCC;IAED,uCAaC;IAED,qBAEC;IAGD,+CAMC;CACF;;;;;;;;WAlba,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI;;;;cAC3C,aAAa;;;;cACb,OAAO;;;;aACP,WAAW;;;;;;;;2BAXQ,KAAK"}
|
|
@@ -235,6 +235,22 @@ class AuroForm extends r {
|
|
|
235
235
|
}, {});
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Getter for internal _submitElements.
|
|
240
|
+
* @returns {HTMLButtonElement[]}
|
|
241
|
+
*/
|
|
242
|
+
get submitElements() {
|
|
243
|
+
return this._submitelements;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Getter for internal _resetElements.
|
|
248
|
+
* @returns {HTMLButtonElement[]}
|
|
249
|
+
*/
|
|
250
|
+
get resetElements() {
|
|
251
|
+
return this._resetElements;
|
|
252
|
+
}
|
|
253
|
+
|
|
238
254
|
/**
|
|
239
255
|
* Infer validity status based on current formState.
|
|
240
256
|
* @private
|
|
@@ -260,6 +276,9 @@ class AuroForm extends r {
|
|
|
260
276
|
* @returns {"valid" | "invalid"}
|
|
261
277
|
*/
|
|
262
278
|
get validity() {
|
|
279
|
+
// Force calculate, as sometimes validity won't reflect
|
|
280
|
+
// the latest value while in-between renders.
|
|
281
|
+
this._calculateValidity();
|
|
263
282
|
return this._validity;
|
|
264
283
|
}
|
|
265
284
|
|
|
@@ -327,6 +346,27 @@ class AuroForm extends r {
|
|
|
327
346
|
]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
|
|
328
347
|
}
|
|
329
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Store an element in state and on the _elements array.
|
|
351
|
+
* @param {HTMLElement} element - The element to add to our state.
|
|
352
|
+
* @private
|
|
353
|
+
*/
|
|
354
|
+
_addElementToState(element) {
|
|
355
|
+
const targetName = element.getAttribute('name');
|
|
356
|
+
if (this.formState[targetName]) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
this.formState[targetName] = {
|
|
361
|
+
value: element.getAttribute('value'),
|
|
362
|
+
validity: element.validity || null,
|
|
363
|
+
required: element.hasAttribute('required'),
|
|
364
|
+
// element
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
this._elements.push(element);
|
|
368
|
+
}
|
|
369
|
+
|
|
330
370
|
/**
|
|
331
371
|
* Initialize (or reinitialize) the form state.
|
|
332
372
|
*/
|
|
@@ -338,14 +378,7 @@ class AuroForm extends r {
|
|
|
338
378
|
|
|
339
379
|
this.queryAuroElements().forEach((element) => {
|
|
340
380
|
if (this.isFormElement(element)) {
|
|
341
|
-
this.
|
|
342
|
-
value: element.getAttribute('value'),
|
|
343
|
-
validity: element.getAttribute('validity'),
|
|
344
|
-
required: element.hasAttribute('required'),
|
|
345
|
-
// element
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
this._elements.push(element);
|
|
381
|
+
this._addElementToState(element);
|
|
349
382
|
}
|
|
350
383
|
|
|
351
384
|
if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
|
|
@@ -369,7 +402,11 @@ class AuroForm extends r {
|
|
|
369
402
|
this.setDisabledStateOnButtons();
|
|
370
403
|
}
|
|
371
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Reset fires an event called `reset` - just as you would expect from a normal form.
|
|
407
|
+
*/
|
|
372
408
|
reset() {
|
|
409
|
+
const previousValue = this.value;
|
|
373
410
|
this._elements.forEach((element) => element.reset());
|
|
374
411
|
|
|
375
412
|
this.updateComplete.then(() => {
|
|
@@ -381,16 +418,20 @@ class AuroForm extends r {
|
|
|
381
418
|
// Wait for the above changes to run through, then disable submit/reset
|
|
382
419
|
this.updateComplete.then(() => {
|
|
383
420
|
this.setDisabledStateOnButtons();
|
|
421
|
+
|
|
422
|
+
this.dispatchEvent(new CustomEvent('reset', {
|
|
423
|
+
bubbles: true,
|
|
424
|
+
composed: true,
|
|
425
|
+
detail: {
|
|
426
|
+
previousValue
|
|
427
|
+
}
|
|
428
|
+
}));
|
|
384
429
|
});
|
|
385
430
|
});
|
|
386
431
|
}
|
|
387
432
|
|
|
388
433
|
/**
|
|
389
434
|
* Submit fires an event called `submit` - just as you would expect from a normal form.
|
|
390
|
-
*
|
|
391
|
-
* @example ```
|
|
392
|
-
* const form = document.querySelector('auro-
|
|
393
|
-
* ```
|
|
394
435
|
*/
|
|
395
436
|
submit() {
|
|
396
437
|
// Steps required to get out of beta:
|
|
@@ -437,13 +478,16 @@ class AuroForm extends r {
|
|
|
437
478
|
return;
|
|
438
479
|
}
|
|
439
480
|
|
|
481
|
+
// Occasionally, a form element will emit their event before the form can read data about the form element.
|
|
482
|
+
if (!this.formState[targetName] && this.isFormElement(event.target)) {
|
|
483
|
+
this._addElementToState(event.target);
|
|
484
|
+
}
|
|
485
|
+
|
|
440
486
|
// Check special input types and handle their edge cases
|
|
441
487
|
if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
|
|
442
488
|
this.formState[targetName].value = event.target.values;
|
|
443
|
-
|
|
444
489
|
this.requestUpdate('formState');
|
|
445
490
|
} else {
|
|
446
|
-
// "Normal" input value handling, just assign the value
|
|
447
491
|
this.formState[targetName].value = event.target.value;
|
|
448
492
|
this.requestUpdate('formState');
|
|
449
493
|
}
|
|
@@ -455,6 +499,10 @@ class AuroForm extends r {
|
|
|
455
499
|
return;
|
|
456
500
|
}
|
|
457
501
|
|
|
502
|
+
if (!this.formState[targetName]) {
|
|
503
|
+
this._addElementToState(event.target);
|
|
504
|
+
}
|
|
505
|
+
|
|
458
506
|
this.formState[targetName].validity = event.detail.validity;
|
|
459
507
|
this._calculateValidity();
|
|
460
508
|
});
|