@aurodesignsystem/auro-formkit 1.6.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/commit-msg +4 -0
- package/.husky/pre-commit +3 -0
- package/.turbo/cache/013a48308b893dac-meta.json +1 -0
- package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
- package/.turbo/cache/049b9083252d38be-meta.json +1 -0
- package/.turbo/cache/049b9083252d38be.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -0
- package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
- package/.turbo/cache/0a1dd4481355cb0b-meta.json +1 -0
- package/.turbo/cache/0a1dd4481355cb0b.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -0
- package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
- package/.turbo/cache/13cf37c850bd8cf4-meta.json +1 -0
- package/.turbo/cache/13cf37c850bd8cf4.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -0
- package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -0
- package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -0
- package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
- package/.turbo/cache/3323eb841acb9c4e-meta.json +1 -0
- package/.turbo/cache/3323eb841acb9c4e.tar.zst +0 -0
- package/.turbo/cache/34ba23e2e2d652ad-meta.json +1 -0
- package/.turbo/cache/34ba23e2e2d652ad.tar.zst +0 -0
- package/.turbo/cache/368cd6fed7975ad2-meta.json +1 -0
- package/.turbo/cache/368cd6fed7975ad2.tar.zst +0 -0
- package/.turbo/cache/3924bce8e51f0ffa-meta.json +1 -0
- package/.turbo/cache/3924bce8e51f0ffa.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -0
- package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -0
- package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
- package/.turbo/cache/4567487084a055b7-meta.json +1 -0
- package/.turbo/cache/4567487084a055b7.tar.zst +0 -0
- package/.turbo/cache/4763278a7d3dbc16-meta.json +1 -0
- package/.turbo/cache/4763278a7d3dbc16.tar.zst +0 -0
- package/.turbo/cache/549e6ef9f9ffd9a8-meta.json +1 -0
- package/.turbo/cache/549e6ef9f9ffd9a8.tar.zst +0 -0
- package/.turbo/cache/59ccd8430174883c-meta.json +1 -0
- package/.turbo/cache/59ccd8430174883c.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -0
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -0
- package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -0
- package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
- package/.turbo/cache/683d4c0e20c077a9-meta.json +1 -0
- package/.turbo/cache/683d4c0e20c077a9.tar.zst +0 -0
- package/.turbo/cache/691a74627ec57993-meta.json +1 -0
- package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -0
- package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -0
- package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -0
- package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -0
- package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
- package/.turbo/cache/786a822763403879-meta.json +1 -0
- package/.turbo/cache/786a822763403879.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -0
- package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -0
- package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
- package/.turbo/cache/8f8ffe35cc79d1a9-meta.json +1 -0
- package/.turbo/cache/8f8ffe35cc79d1a9.tar.zst +0 -0
- package/.turbo/cache/926d632729ca6536-meta.json +1 -0
- package/.turbo/cache/926d632729ca6536.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -0
- package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +1 -0
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/9e7be41cc3a7ef43-meta.json +1 -0
- package/.turbo/cache/9e7be41cc3a7ef43.tar.zst +0 -0
- package/.turbo/cache/9ee793063ea89126-meta.json +1 -0
- package/.turbo/cache/9ee793063ea89126.tar.zst +0 -0
- package/.turbo/cache/a1558cef51c034da-meta.json +1 -0
- package/.turbo/cache/a1558cef51c034da.tar.zst +0 -0
- package/.turbo/cache/a24f2ff8e94e56e8-meta.json +1 -0
- package/.turbo/cache/a24f2ff8e94e56e8.tar.zst +0 -0
- package/.turbo/cache/a2705cf095a2ceb0-meta.json +1 -0
- package/.turbo/cache/a2705cf095a2ceb0.tar.zst +0 -0
- package/.turbo/cache/a33c0749886a41b5-meta.json +1 -0
- package/.turbo/cache/a33c0749886a41b5.tar.zst +0 -0
- package/.turbo/cache/a66b465385a30a2b-meta.json +1 -0
- package/.turbo/cache/a66b465385a30a2b.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -0
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -0
- package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -0
- package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -0
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/c1b72a92dec4fe37-meta.json +1 -0
- package/.turbo/cache/c1b72a92dec4fe37.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/cc81de9c0b452a7c.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -0
- package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
- package/.turbo/cache/e25ac25a8a0ad126-meta.json +1 -0
- package/.turbo/cache/e25ac25a8a0ad126.tar.zst +0 -0
- package/.turbo/cache/e671573e4ef02c47-meta.json +1 -0
- package/.turbo/cache/e671573e4ef02c47.tar.zst +0 -0
- package/.turbo/cache/e86cee22dff5e281-meta.json +1 -0
- package/.turbo/cache/e86cee22dff5e281.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -0
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f680556a8e954eac-meta.json +1 -0
- package/.turbo/cache/f680556a8e954eac.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -0
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- package/.turbo/cache/ffec4500b911b85a-meta.json +1 -0
- package/.turbo/cache/ffec4500b911b85a.tar.zst +0 -0
- package/CHANGELOG.md +430 -0
- package/LICENSE +201 -0
- package/README.md +225 -0
- package/components/checkbox/.stylelintrc.json +3 -0
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +98 -0
- package/components/checkbox/.turbo/turbo-build.log +182 -0
- package/components/checkbox/.turbo/turbo-bundler.log +13 -0
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/checkbox/.turbo/turbo-types.log +4 -0
- package/components/checkbox/README.md +187 -0
- package/components/checkbox/demo/api.html +48 -0
- package/components/checkbox/demo/api.js +1 -0
- package/components/checkbox/demo/api.md +272 -0
- package/components/checkbox/demo/api.min.js +845 -0
- package/components/checkbox/demo/index.js +8 -0
- package/components/checkbox/demo/index.md +306 -0
- package/components/checkbox/demo/index.min.js +845 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +119 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +75 -0
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -0
- package/components/checkbox/dist/index.d.ts +4 -0
- package/components/checkbox/dist/index.d.ts.map +1 -0
- package/components/checkbox/dist/index.js +844 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +3 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +3 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/color-css.d.ts +3 -0
- package/components/checkbox/dist/styles/color-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +3 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +3 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/checkbox/node_modules/chalk/package.json +83 -0
- package/components/checkbox/node_modules/chalk/readme.md +325 -0
- package/components/checkbox/node_modules/chalk/source/index.d.ts +320 -0
- package/components/checkbox/node_modules/chalk/source/index.js +225 -0
- package/components/checkbox/node_modules/chalk/source/utilities.js +33 -0
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/checkbox/package.json +68 -0
- package/components/checkbox/src/auro-checkbox-group.js +319 -0
- package/components/checkbox/src/auro-checkbox.js +184 -0
- package/components/checkbox/src/index.js +8 -0
- package/components/checkbox/src/styles/auro-checkbox-css.js +2 -0
- package/components/checkbox/src/styles/auro-checkbox-group-css.js +2 -0
- package/components/checkbox/src/styles/auro-checkbox-group.css +26 -0
- package/components/checkbox/src/styles/auro-checkbox-group.scss +38 -0
- package/components/checkbox/src/styles/auro-checkbox.css +123 -0
- package/components/checkbox/src/styles/auro-checkbox.scss +100 -0
- package/components/checkbox/src/styles/color-css.js +2 -0
- package/components/checkbox/src/styles/color.css +84 -0
- package/components/checkbox/src/styles/color.scss +118 -0
- package/components/checkbox/src/styles/colorGroup-css.js +2 -0
- package/components/checkbox/src/styles/colorGroup.css +16 -0
- package/components/checkbox/src/styles/colorGroup.scss +24 -0
- package/components/checkbox/src/styles/tokens-css.js +2 -0
- package/components/checkbox/src/styles/tokens.css +9 -0
- package/components/checkbox/src/styles/tokens.scss +11 -0
- package/components/combobox/.stylelintrc.json +3 -0
- package/components/combobox/.turbo/turbo-build$colon$sass.log +46 -0
- package/components/combobox/.turbo/turbo-build.log +160 -0
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/combobox/.turbo/turbo-sass$colon$render.log +10 -0
- package/components/combobox/README.md +200 -0
- package/components/combobox/demo/api.html +55 -0
- package/components/combobox/demo/api.js +34 -0
- package/components/combobox/demo/api.md +816 -0
- package/components/combobox/demo/api.min.js +9165 -0
- package/components/combobox/demo/index.js +26 -0
- package/components/combobox/demo/index.md +626 -0
- package/components/combobox/demo/index.min.js +9028 -0
- package/components/combobox/dist/auro-combobox.d.ts +241 -0
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -0
- package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/formkit/auro-inputVersion.d.ts +3 -0
- package/components/combobox/dist/formkit/auro-inputVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.d.ts +3 -0
- package/components/combobox/dist/index.d.ts.map +1 -0
- package/components/combobox/dist/index.js +7898 -0
- package/components/combobox/dist/styles/style-css.d.ts +3 -0
- package/components/combobox/dist/styles/style-css.d.ts.map +1 -0
- package/components/combobox/node_modules/chalk/package.json +83 -0
- package/components/combobox/node_modules/chalk/readme.md +325 -0
- package/components/combobox/node_modules/chalk/source/index.d.ts +320 -0
- package/components/combobox/node_modules/chalk/source/index.js +225 -0
- package/components/combobox/node_modules/chalk/source/utilities.js +33 -0
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/combobox/package.json +67 -0
- package/components/combobox/src/auro-combobox.js +711 -0
- package/components/combobox/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/combobox/src/formkit/auro-inputVersion.js +1 -0
- package/components/combobox/src/index.js +6 -0
- package/components/combobox/src/styles/style-css.js +2 -0
- package/components/combobox/src/styles/style.css +60 -0
- package/components/combobox/src/styles/style.scss +46 -0
- package/components/counter/.stylelintrc.json +3 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +66 -0
- package/components/counter/.turbo/turbo-build.log +87 -0
- package/components/counter/.turbo/turbo-bundler.log +13 -0
- package/components/counter/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/counter/.turbo/turbo-sass$colon$render.log +16 -0
- package/components/counter/.turbo/turbo-types.log +4 -0
- package/components/counter/demo/api.html +52 -0
- package/components/counter/demo/api.js +16 -0
- package/components/counter/demo/api.md +1053 -0
- package/components/counter/demo/api.min.js +115 -0
- package/components/counter/demo/index.js +20 -0
- package/components/counter/demo/index.min.js +71 -0
- package/components/counter/dist/auro-counter-group.d.ts +20 -0
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -0
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -0
- package/components/counter/dist/index.d.ts +4 -0
- package/components/counter/dist/index.d.ts.map +1 -0
- package/components/counter/dist/index.js +110 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-css.d.ts.map +1 -0
- package/components/counter/dist/styles/style-css.d.ts +3 -0
- package/components/counter/dist/styles/style-css.d.ts.map +1 -0
- package/components/counter/node_modules/chalk/package.json +83 -0
- package/components/counter/node_modules/chalk/readme.md +325 -0
- package/components/counter/node_modules/chalk/source/index.d.ts +320 -0
- package/components/counter/node_modules/chalk/source/index.js +225 -0
- package/components/counter/node_modules/chalk/source/utilities.js +33 -0
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/counter/package.json +50 -0
- package/components/counter/src/auro-counter-group.js +48 -0
- package/components/counter/src/auro-counter.js +29 -0
- package/components/counter/src/index.js +8 -0
- package/components/counter/src/styles/counter-group-css.js +2 -0
- package/components/counter/src/styles/counter-group.css +4 -0
- package/components/counter/src/styles/counter-group.scss +17 -0
- package/components/counter/src/styles/style-css.js +2 -0
- package/components/counter/src/styles/style.css +4 -0
- package/components/counter/src/styles/style.scss +17 -0
- package/components/datepicker/.stylelintrc.json +3 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +352 -0
- package/components/datepicker/.turbo/turbo-build.log +489 -0
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +58 -0
- package/components/datepicker/README.md +181 -0
- package/components/datepicker/demo/api.html +58 -0
- package/components/datepicker/demo/api.js +33 -0
- package/components/datepicker/demo/api.md +1172 -0
- package/components/datepicker/demo/api.min.js +18466 -0
- package/components/datepicker/demo/index.js +19 -0
- package/components/datepicker/demo/index.md +107 -0
- package/components/datepicker/demo/index.min.js +18195 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts.map +1 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +5 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts.map +1 -0
- package/components/datepicker/dist/auro-calendar.d.ts +105 -0
- package/components/datepicker/dist/auro-calendar.d.ts.map +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +336 -0
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -0
- package/components/datepicker/dist/dropdownVersion.d.ts +1 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -0
- package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/datepicker/dist/formkit/auro-inputVersion.d.ts +3 -0
- package/components/datepicker/dist/formkit/auro-inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/index.d.ts +3 -0
- package/components/datepicker/dist/index.d.ts.map +1 -0
- package/components/datepicker/dist/index.js +18191 -0
- package/components/datepicker/dist/popoverVersion.d.ts +3 -0
- package/components/datepicker/dist/popoverVersion.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +3 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/datepicker/dist/utilities.d.ts +47 -0
- package/components/datepicker/dist/utilities.d.ts.map +1 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts.map +1 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +51 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +6 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +61 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +2 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +58 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts.map +1 -0
- package/components/datepicker/node_modules/chalk/package.json +83 -0
- package/components/datepicker/node_modules/chalk/readme.md +325 -0
- package/components/datepicker/node_modules/chalk/source/index.d.ts +320 -0
- package/components/datepicker/node_modules/chalk/source/index.js +225 -0
- package/components/datepicker/node_modules/chalk/source/utilities.js +33 -0
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/README.md +137 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/index.d.ts +75 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/package.json +51 -0
- package/components/datepicker/package.json +79 -0
- package/components/datepicker/src/auro-calendar-cell.js +381 -0
- package/components/datepicker/src/auro-calendar-month.js +128 -0
- package/components/datepicker/src/auro-calendar.js +329 -0
- package/components/datepicker/src/auro-datepicker.js +969 -0
- package/components/datepicker/src/dropdownVersion.js +0 -0
- package/components/datepicker/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/datepicker/src/formkit/auro-inputVersion.js +1 -0
- package/components/datepicker/src/index.js +6 -0
- package/components/datepicker/src/popoverVersion.js +1 -0
- package/components/datepicker/src/styles/color-calendar-css.js +2 -0
- package/components/datepicker/src/styles/color-calendar.css +35 -0
- package/components/datepicker/src/styles/color-calendar.scss +51 -0
- package/components/datepicker/src/styles/color-cell-css.js +2 -0
- package/components/datepicker/src/styles/color-cell.css +45 -0
- package/components/datepicker/src/styles/color-cell.scss +73 -0
- package/components/datepicker/src/styles/color-css.js +2 -0
- package/components/datepicker/src/styles/color-month-css.js +2 -0
- package/components/datepicker/src/styles/color-month.css +34 -0
- package/components/datepicker/src/styles/color-month.scss +27 -0
- package/components/datepicker/src/styles/color.css +43 -0
- package/components/datepicker/src/styles/color.scss +30 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell.css +123 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell.scss +147 -0
- package/components/datepicker/src/styles/style-auro-calendar-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-month-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-month.css +121 -0
- package/components/datepicker/src/styles/style-auro-calendar-month.scss +141 -0
- package/components/datepicker/src/styles/style-auro-calendar.css +152 -0
- package/components/datepicker/src/styles/style-auro-calendar.scss +191 -0
- package/components/datepicker/src/styles/style-css.js +2 -0
- package/components/datepicker/src/styles/style.css +111 -0
- package/components/datepicker/src/styles/style.scss +107 -0
- package/components/datepicker/src/styles/tokens-css.js +2 -0
- package/components/datepicker/src/styles/tokens.css +22 -0
- package/components/datepicker/src/styles/tokens.scss +25 -0
- package/components/datepicker/src/utilities.js +87 -0
- package/components/datepicker/src/utilitiesCalendar.js +138 -0
- package/components/datepicker/src/utilitiesCalendarRender.js +156 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/day.js +8 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js +521 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-cell.js +211 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker.js +254 -0
- package/components/dropdown/.stylelintrc.json +3 -0
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +75 -0
- package/components/dropdown/.turbo/turbo-build$colon$version.log +7 -0
- package/components/dropdown/.turbo/turbo-build.log +206 -0
- package/components/dropdown/.turbo/turbo-bundler.log +13 -0
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/dropdown/.turbo/turbo-types.log +4 -0
- package/components/dropdown/README.md +188 -0
- package/components/dropdown/demo/api.html +55 -0
- package/components/dropdown/demo/api.js +21 -0
- package/components/dropdown/demo/api.md +1179 -0
- package/components/dropdown/demo/api.min.js +2885 -0
- package/components/dropdown/demo/index.js +22 -0
- package/components/dropdown/demo/index.md +404 -0
- package/components/dropdown/demo/index.min.js +2851 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +194 -0
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +33 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -0
- package/components/dropdown/dist/iconVersion.d.ts +3 -0
- package/components/dropdown/dist/iconVersion.d.ts.map +1 -0
- package/components/dropdown/dist/index.d.ts +3 -0
- package/components/dropdown/dist/index.d.ts.map +1 -0
- package/components/dropdown/dist/index.js +2842 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts +3 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/bibStyles-css.d.ts +3 -0
- package/components/dropdown/dist/styles/bibStyles-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/color-css.d.ts +3 -0
- package/components/dropdown/dist/styles/color-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/style-css.d.ts +3 -0
- package/components/dropdown/dist/styles/style-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +3 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/dropdown/node_modules/chalk/package.json +83 -0
- package/components/dropdown/node_modules/chalk/readme.md +325 -0
- package/components/dropdown/node_modules/chalk/source/index.d.ts +320 -0
- package/components/dropdown/node_modules/chalk/source/index.js +225 -0
- package/components/dropdown/node_modules/chalk/source/utilities.js +33 -0
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/dropdown/package.json +57 -0
- package/components/dropdown/src/auro-dropdown.js +359 -0
- package/components/dropdown/src/auro-dropdownBib.js +97 -0
- package/components/dropdown/src/iconVersion.js +1 -0
- package/components/dropdown/src/index.js +6 -0
- package/components/dropdown/src/styles/bibColors-css.js +2 -0
- package/components/dropdown/src/styles/bibColors.css +6 -0
- package/components/dropdown/src/styles/bibColors.scss +18 -0
- package/components/dropdown/src/styles/bibStyles-css.js +2 -0
- package/components/dropdown/src/styles/bibStyles.css +48 -0
- package/components/dropdown/src/styles/bibStyles.scss +67 -0
- package/components/dropdown/src/styles/color-css.js +2 -0
- package/components/dropdown/src/styles/color.css +59 -0
- package/components/dropdown/src/styles/color.scss +79 -0
- package/components/dropdown/src/styles/style-css.js +2 -0
- package/components/dropdown/src/styles/style.css +88 -0
- package/components/dropdown/src/styles/style.scss +117 -0
- package/components/dropdown/src/styles/tokens-css.js +2 -0
- package/components/dropdown/src/styles/tokens.css +13 -0
- package/components/dropdown/src/styles/tokens.scss +15 -0
- package/components/form/.stylelintrc.json +3 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +57 -0
- package/components/form/.turbo/turbo-build$colon$version.log +4 -0
- package/components/form/.turbo/turbo-build.log +113 -0
- package/components/form/.turbo/turbo-bundler.log +13 -0
- package/components/form/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/form/.turbo/turbo-sass$colon$render.log +10 -0
- package/components/form/.turbo/turbo-types.log +4 -0
- package/components/form/README.md +186 -0
- package/components/form/demo/api.html +48 -0
- package/components/form/demo/api.js +3 -0
- package/components/form/demo/api.md +0 -0
- package/components/form/demo/api.min.js +160 -0
- package/components/form/demo/index.js +4 -0
- package/components/form/demo/index.md +40 -0
- package/components/form/demo/index.min.js +161 -0
- package/components/form/dist/auro-form.d.ts +26 -0
- package/components/form/dist/auro-form.d.ts.map +1 -0
- package/components/form/dist/index.d.ts +3 -0
- package/components/form/dist/index.d.ts.map +1 -0
- package/components/form/dist/index.js +162 -0
- package/components/form/dist/styles/style-css.d.ts +3 -0
- package/components/form/dist/styles/style-css.d.ts.map +1 -0
- package/components/form/node_modules/chalk/package.json +83 -0
- package/components/form/node_modules/chalk/readme.md +325 -0
- package/components/form/node_modules/chalk/source/index.d.ts +320 -0
- package/components/form/node_modules/chalk/source/index.js +225 -0
- package/components/form/node_modules/chalk/source/utilities.js +33 -0
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/form/package.json +72 -0
- package/components/form/src/auro-form.js +74 -0
- package/components/form/src/index.js +6 -0
- package/components/form/src/styles/style-css.js +2 -0
- package/components/form/src/styles/style.css +36 -0
- package/components/form/src/styles/style.scss +37 -0
- package/components/input/.stylelintrc.json +3 -0
- package/components/input/.turbo/turbo-build$colon$sass.log +148 -0
- package/components/input/.turbo/turbo-build$colon$version.log +10 -0
- package/components/input/.turbo/turbo-build.log +300 -0
- package/components/input/.turbo/turbo-bundler.log +13 -0
- package/components/input/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/input/.turbo/turbo-sass$colon$render.log +52 -0
- package/components/input/.turbo/turbo-types.log +4 -0
- package/components/input/README.md +176 -0
- package/components/input/demo/api.html +40 -0
- package/components/input/demo/api.js +25 -0
- package/components/input/demo/api.md +1251 -0
- package/components/input/demo/api.min.js +4070 -0
- package/components/input/demo/index.js +20 -0
- package/components/input/demo/index.md +253 -0
- package/components/input/demo/index.min.js +4012 -0
- package/components/input/dist/auro-input.d.ts +29 -0
- package/components/input/dist/auro-input.d.ts.map +1 -0
- package/components/input/dist/base-input.d.ts +359 -0
- package/components/input/dist/base-input.d.ts.map +1 -0
- package/components/input/dist/buttonVersion.d.ts +3 -0
- package/components/input/dist/buttonVersion.d.ts.map +1 -0
- package/components/input/dist/i18n.d.ts +19 -0
- package/components/input/dist/i18n.d.ts.map +1 -0
- package/components/input/dist/iconVersion.d.ts +3 -0
- package/components/input/dist/iconVersion.d.ts.map +1 -0
- package/components/input/dist/index.d.ts +3 -0
- package/components/input/dist/index.d.ts.map +1 -0
- package/components/input/dist/index.js +3979 -0
- package/components/input/dist/styles/borders-css.d.ts +3 -0
- package/components/input/dist/styles/borders-css.d.ts.map +1 -0
- package/components/input/dist/styles/color-css.d.ts +3 -0
- package/components/input/dist/styles/color-css.d.ts.map +1 -0
- package/components/input/dist/styles/helpText-css.d.ts +3 -0
- package/components/input/dist/styles/helpText-css.d.ts.map +1 -0
- package/components/input/dist/styles/input-css.d.ts +3 -0
- package/components/input/dist/styles/input-css.d.ts.map +1 -0
- package/components/input/dist/styles/label-css.d.ts +3 -0
- package/components/input/dist/styles/label-css.d.ts.map +1 -0
- package/components/input/dist/styles/notificationIcons-css.d.ts +3 -0
- package/components/input/dist/styles/notificationIcons-css.d.ts.map +1 -0
- package/components/input/dist/styles/style-css.d.ts +3 -0
- package/components/input/dist/styles/style-css.d.ts.map +1 -0
- package/components/input/dist/styles/tokens-css.d.ts +3 -0
- package/components/input/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/input/node_modules/chalk/package.json +83 -0
- package/components/input/node_modules/chalk/readme.md +325 -0
- package/components/input/node_modules/chalk/source/index.d.ts +320 -0
- package/components/input/node_modules/chalk/source/index.js +225 -0
- package/components/input/node_modules/chalk/source/utilities.js +33 -0
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/input/package.json +75 -0
- package/components/input/src/auro-input.js +242 -0
- package/components/input/src/base-input.js +942 -0
- package/components/input/src/buttonVersion.js +1 -0
- package/components/input/src/i18n.js +102 -0
- package/components/input/src/iconVersion.js +1 -0
- package/components/input/src/index.js +6 -0
- package/components/input/src/styles/@aurodesignsystem/webcorestylesheets/src/breakpoints +0 -0
- package/components/input/src/styles/borders-css.js +2 -0
- package/components/input/src/styles/borders.css +35 -0
- package/components/input/src/styles/borders.scss +65 -0
- package/components/input/src/styles/color-css.js +2 -0
- package/components/input/src/styles/color.css +63 -0
- package/components/input/src/styles/color.scss +96 -0
- package/components/input/src/styles/helpText-css.js +2 -0
- package/components/input/src/styles/helpText.css +6 -0
- package/components/input/src/styles/helpText.scss +9 -0
- package/components/input/src/styles/input-css.js +2 -0
- package/components/input/src/styles/input.css +22 -0
- package/components/input/src/styles/input.scss +29 -0
- package/components/input/src/styles/label-css.js +2 -0
- package/components/input/src/styles/label.css +45 -0
- package/components/input/src/styles/label.scss +75 -0
- package/components/input/src/styles/notificationIcons-css.js +2 -0
- package/components/input/src/styles/notificationIcons.css +76 -0
- package/components/input/src/styles/notificationIcons.scss +103 -0
- package/components/input/src/styles/style-css.js +2 -0
- package/components/input/src/styles/style.css +272 -0
- package/components/input/src/styles/style.scss +57 -0
- package/components/input/src/styles/tokens-css.js +2 -0
- package/components/input/src/styles/tokens.css +9 -0
- package/components/input/src/styles/tokens.scss +11 -0
- package/components/menu/.stylelintrc.json +3 -0
- package/components/menu/.turbo/turbo-build$colon$sass.log +86 -0
- package/components/menu/.turbo/turbo-build$colon$version.log +7 -0
- package/components/menu/.turbo/turbo-build.log +184 -0
- package/components/menu/.turbo/turbo-bundler.log +13 -0
- package/components/menu/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/menu/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/menu/.turbo/turbo-types.log +4 -0
- package/components/menu/README.md +190 -0
- package/components/menu/demo/api.html +53 -0
- package/components/menu/demo/api.js +27 -0
- package/components/menu/demo/api.md +923 -0
- package/components/menu/demo/api.min.js +1293 -0
- package/components/menu/demo/index.js +28 -0
- package/components/menu/demo/index.md +104 -0
- package/components/menu/demo/index.min.js +1239 -0
- package/components/menu/dist/auro-menu.d.ts +194 -0
- package/components/menu/dist/auro-menu.d.ts.map +1 -0
- package/components/menu/dist/auro-menuoption.d.ts +65 -0
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -0
- package/components/menu/dist/iconVersion.d.ts +3 -0
- package/components/menu/dist/iconVersion.d.ts.map +1 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.d.ts.map +1 -0
- package/components/menu/dist/index.js +1231 -0
- package/components/menu/dist/styles/color-menu-css.d.ts +3 -0
- package/components/menu/dist/styles/color-menu-css.d.ts.map +1 -0
- package/components/menu/dist/styles/color-menuoption-css.d.ts +3 -0
- package/components/menu/dist/styles/color-menuoption-css.d.ts.map +1 -0
- package/components/menu/dist/styles/style-menu-css.d.ts +3 -0
- package/components/menu/dist/styles/style-menu-css.d.ts.map +1 -0
- package/components/menu/dist/styles/style-menuoption-css.d.ts +3 -0
- package/components/menu/dist/styles/style-menuoption-css.d.ts.map +1 -0
- package/components/menu/dist/styles/tokens-css.d.ts +3 -0
- package/components/menu/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/menu/node_modules/chalk/package.json +83 -0
- package/components/menu/node_modules/chalk/readme.md +325 -0
- package/components/menu/node_modules/chalk/source/index.d.ts +320 -0
- package/components/menu/node_modules/chalk/source/index.js +225 -0
- package/components/menu/node_modules/chalk/source/utilities.js +33 -0
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/menu/node_modules/mime/CHANGELOG.md +296 -0
- package/components/menu/node_modules/mime/Mime.js +97 -0
- package/components/menu/node_modules/mime/README.md +187 -0
- package/components/menu/node_modules/mime/cli.js +46 -0
- package/components/menu/node_modules/mime/index.js +4 -0
- package/components/menu/node_modules/mime/lite.js +4 -0
- package/components/menu/node_modules/mime/package.json +52 -0
- package/components/menu/node_modules/mime/types/other.js +1 -0
- package/components/menu/node_modules/mime/types/standard.js +1 -0
- package/components/menu/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/menu/node_modules/rollup-plugin-serve/README.md +135 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs.js +197 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.es.js +193 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/menu/node_modules/rollup-plugin-serve/package.json +44 -0
- package/components/menu/package.json +70 -0
- package/components/menu/src/auro-menu.js +571 -0
- package/components/menu/src/auro-menuoption.js +148 -0
- package/components/menu/src/iconVersion.js +1 -0
- package/components/menu/src/index.js +8 -0
- package/components/menu/src/styles/color-menu-css.js +2 -0
- package/components/menu/src/styles/color-menu.css +4 -0
- package/components/menu/src/styles/color-menu.scss +12 -0
- package/components/menu/src/styles/color-menuoption-css.js +2 -0
- package/components/menu/src/styles/color-menuoption.css +23 -0
- package/components/menu/src/styles/color-menuoption.scss +33 -0
- package/components/menu/src/styles/style-menu-css.js +2 -0
- package/components/menu/src/styles/style-menu.css +2061 -0
- package/components/menu/src/styles/style-menu.scss +80 -0
- package/components/menu/src/styles/style-menuoption-css.js +2 -0
- package/components/menu/src/styles/style-menuoption.css +45 -0
- package/components/menu/src/styles/style-menuoption.scss +66 -0
- package/components/menu/src/styles/tokens-css.js +2 -0
- package/components/menu/src/styles/tokens.css +6 -0
- package/components/menu/src/styles/tokens.scss +6 -0
- package/components/radio/.stylelintrc.json +3 -0
- package/components/radio/.turbo/turbo-build$colon$sass.log +130 -0
- package/components/radio/.turbo/turbo-build.log +213 -0
- package/components/radio/.turbo/turbo-bundler.log +13 -0
- package/components/radio/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/radio/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/radio/.turbo/turbo-types.log +4 -0
- package/components/radio/README.md +176 -0
- package/components/radio/demo/api.html +50 -0
- package/components/radio/demo/api.js +17 -0
- package/components/radio/demo/api.md +401 -0
- package/components/radio/demo/api.min.js +1050 -0
- package/components/radio/demo/index.js +8 -0
- package/components/radio/demo/index.md +122 -0
- package/components/radio/demo/index.min.js +1016 -0
- package/components/radio/dist/auro-radio-group.d.ts +171 -0
- package/components/radio/dist/auro-radio-group.d.ts.map +1 -0
- package/components/radio/dist/auro-radio.d.ts +113 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -0
- package/components/radio/dist/index.d.ts +4 -0
- package/components/radio/dist/index.d.ts.map +1 -0
- package/components/radio/dist/index.js +1015 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +3 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts.map +1 -0
- package/components/radio/dist/styles/color-css.d.ts +3 -0
- package/components/radio/dist/styles/color-css.d.ts.map +1 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +3 -0
- package/components/radio/dist/styles/groupColor-css.d.ts.map +1 -0
- package/components/radio/dist/styles/style-css.d.ts +3 -0
- package/components/radio/dist/styles/style-css.d.ts.map +1 -0
- package/components/radio/dist/styles/tokens-css.d.ts +3 -0
- package/components/radio/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/radio/node_modules/chalk/package.json +83 -0
- package/components/radio/node_modules/chalk/readme.md +325 -0
- package/components/radio/node_modules/chalk/source/index.d.ts +320 -0
- package/components/radio/node_modules/chalk/source/index.js +225 -0
- package/components/radio/node_modules/chalk/source/utilities.js +33 -0
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/radio/package.json +69 -0
- package/components/radio/src/auro-radio-group.js +433 -0
- package/components/radio/src/auro-radio.js +247 -0
- package/components/radio/src/index.js +8 -0
- package/components/radio/src/styles/auro-radio-group-css.js +2 -0
- package/components/radio/src/styles/auro-radio-group.css +23 -0
- package/components/radio/src/styles/auro-radio-group.scss +36 -0
- package/components/radio/src/styles/color-css.js +2 -0
- package/components/radio/src/styles/color.css +45 -0
- package/components/radio/src/styles/color.scss +56 -0
- package/components/radio/src/styles/groupColor-css.js +2 -0
- package/components/radio/src/styles/groupColor.css +21 -0
- package/components/radio/src/styles/groupColor.scss +33 -0
- package/components/radio/src/styles/style-css.js +2 -0
- package/components/radio/src/styles/style.css +113 -0
- package/components/radio/src/styles/style.scss +99 -0
- package/components/radio/src/styles/tokens-css.js +2 -0
- package/components/radio/src/styles/tokens.css +9 -0
- package/components/radio/src/styles/tokens.scss +12 -0
- package/components/select/.stylelintrc.json +3 -0
- package/components/select/.turbo/turbo-build$colon$sass.log +122 -0
- package/components/select/.turbo/turbo-build.log +240 -0
- package/components/select/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/select/.turbo/turbo-sass$colon$render.log +22 -0
- package/components/select/README.md +205 -0
- package/components/select/demo/alertValue.js +6 -0
- package/components/select/demo/api.html +54 -0
- package/components/select/demo/api.js +33 -0
- package/components/select/demo/api.md +814 -0
- package/components/select/demo/api.min.js +4980 -0
- package/components/select/demo/index.js +9 -0
- package/components/select/demo/index.md +470 -0
- package/components/select/demo/index.min.js +4871 -0
- package/components/select/dist/auro-select.d.ts +193 -0
- package/components/select/dist/auro-select.d.ts.map +1 -0
- package/components/select/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/select/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.d.ts +3 -0
- package/components/select/dist/index.d.ts.map +1 -0
- package/components/select/dist/index.js +3782 -0
- package/components/select/dist/styles/color-css.d.ts +3 -0
- package/components/select/dist/styles/color-css.d.ts.map +1 -0
- package/components/select/dist/styles/style-css.d.ts +3 -0
- package/components/select/dist/styles/style-css.d.ts.map +1 -0
- package/components/select/dist/styles/tokens-css.d.ts +3 -0
- package/components/select/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/select/node_modules/chalk/package.json +83 -0
- package/components/select/node_modules/chalk/readme.md +325 -0
- package/components/select/node_modules/chalk/source/index.d.ts +320 -0
- package/components/select/node_modules/chalk/source/index.js +225 -0
- package/components/select/node_modules/chalk/source/utilities.js +33 -0
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/select/node_modules/mime/CHANGELOG.md +296 -0
- package/components/select/node_modules/mime/Mime.js +97 -0
- package/components/select/node_modules/mime/README.md +187 -0
- package/components/select/node_modules/mime/cli.js +46 -0
- package/components/select/node_modules/mime/index.js +4 -0
- package/components/select/node_modules/mime/lite.js +4 -0
- package/components/select/node_modules/mime/package.json +52 -0
- package/components/select/node_modules/mime/types/other.js +1 -0
- package/components/select/node_modules/mime/types/standard.js +1 -0
- package/components/select/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/select/node_modules/rollup-plugin-serve/README.md +135 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs.js +197 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.es.js +193 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/select/node_modules/rollup-plugin-serve/package.json +44 -0
- package/components/select/package.json +70 -0
- package/components/select/packageScripts/postinstall.mjs +28 -0
- package/components/select/src/auro-select.js +570 -0
- package/components/select/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/select/src/index.js +6 -0
- package/components/select/src/styles/color-css.js +2 -0
- package/components/select/src/styles/color.css +63 -0
- package/components/select/src/styles/color.scss +33 -0
- package/components/select/src/styles/style-css.js +2 -0
- package/components/select/src/styles/style.css +97 -0
- package/components/select/src/styles/style.scss +66 -0
- package/components/select/src/styles/tokens-css.js +2 -0
- package/components/select/src/styles/tokens.css +3 -0
- package/components/select/src/styles/tokens.scss +5 -0
- package/package.json +142 -0
- package/packages/build-tools/package.json +15 -0
- package/packages/build-tools/src/docProcessor.mjs +104 -0
- package/packages/build-tools/src/formVersionWriter.mjs +75 -0
- package/packages/build-tools/src/index.js +1 -0
- package/packages/build-tools/src/kitDocProcessor.mjs +66 -0
- package/packages/form-validation/package.json +12 -0
- package/packages/form-validation/src/index.js +1 -0
- package/packages/form-validation/src/validation.js +239 -0
- package/packages/typescript/base.json +19 -0
- package/packages/typescript/package.json +20 -0
- package/turbo.json +100 -0
|
@@ -0,0 +1,1172 @@
|
|
|
1
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
|
|
2
|
+
<!-- The below content is automatically added from ./../docs/api.md -->
|
|
3
|
+
|
|
4
|
+
# auro-datepicker
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-----------------------------------|-----------------------------------|-----------|--------------------------------------------------|--------------------------------------------------|
|
|
10
|
+
| [calendarEndDate](#calendarEndDate) | `calendarEndDate` | `String` | "undefined" | The last date that may be displayed in the calendar |
|
|
11
|
+
| [calendarFocusDate](#calendarFocusDate) | `calendarFocusDate` | `String` | "value" | The date that will first be visually rendered to the user in the calendar. |
|
|
12
|
+
| [calendarStartDate](#calendarStartDate) | `calendarStartDate` | `String` | "undefined" | The first date that may be displayed in the calendar. |
|
|
13
|
+
| [centralDate](#centralDate) | `centralDate` | `String` | | The date that determines the currently visible month. |
|
|
14
|
+
| [disabled](#disabled) | `disabled` | `Boolean` | false | If set, disables the datepicker. |
|
|
15
|
+
| [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
16
|
+
| [maxDate](#maxDate) | `maxDate` | `String` | | Maximum date. All dates after will be disabled. |
|
|
17
|
+
| [minDate](#minDate) | `minDate` | `String` | | Minimum date. All dates before will be disabled. |
|
|
18
|
+
| [monthNames](#monthNames) | `monthNames` | `array` | ["January","February","March","April","May","June","July","August","September","October","November","December"] | |
|
|
19
|
+
| [noValidate](#noValidate) | `noValidate` | `Boolean` | false | If set, disables auto-validation on blur. |
|
|
20
|
+
| [range](#range) | `range` | `Boolean` | false | If set, turns on date range functionality in auro-calendar. |
|
|
21
|
+
| [required](#required) | `required` | `Boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
22
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
|
|
23
|
+
| [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `String` | | Custom help text message to display when validity = `rangeOverflow`. |
|
|
24
|
+
| [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `String` | | Custom help text message to display when validity = `rangeUnderflow`. |
|
|
25
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Help text message to display when validity = `valueMissing`. |
|
|
26
|
+
| [validity](#validity) | `validity` | `String` | "undefined" | Specifies the `validityState` this element is in. |
|
|
27
|
+
| [value](#value) | `value` | `String` | "undefined" | Value selected for the date picker. |
|
|
28
|
+
| [valueEnd](#valueEnd) | `valueEnd` | `String` | "undefined" | Value selected for the second date picker when using date range. |
|
|
29
|
+
|
|
30
|
+
## Methods
|
|
31
|
+
|
|
32
|
+
| Method | Type | Description |
|
|
33
|
+
|---------|------------------------------|--------------------------------------------------|
|
|
34
|
+
| [focus](#focus) | `(focusInput: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
| Event | Type | Description |
|
|
39
|
+
|---------------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
40
|
+
| `auroDatePicker-monthChanged` | `CustomEvent<{ month: any; year: any; numCalendars: any; }>` | Notifies that the visible calendar month(s) have changed. |
|
|
41
|
+
| `auroDatePicker-newSlotContent` | `CustomEvent<any>` | Notifies that new slot content has been added to the datepicker. |
|
|
42
|
+
| `auroDatePicker-toggled` | `CustomEvent<{ expanded: any; }>` | Notifies that the calendar dropdown has been opened/closed. |
|
|
43
|
+
| `auroDatePicker-valueSet` | | Notifies that the component has a new value set. |
|
|
44
|
+
| `auroFormElement-validated` | | Notifies that the component value(s) have been validated. |
|
|
45
|
+
|
|
46
|
+
## Slots
|
|
47
|
+
|
|
48
|
+
| Name | Description |
|
|
49
|
+
|----------------------|--------------------------------------------------|
|
|
50
|
+
| `date_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell for the specified date. The content text is colored using the success state token when the `highlight` attribute is applied to the slot. |
|
|
51
|
+
| [fromLabel](#fromLabel) | Defines the label content for the first input. |
|
|
52
|
+
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
53
|
+
| [mobileDateLabel](#mobileDateLabel) | Defines the content to display above selected dates in the mobile layout. |
|
|
54
|
+
| `popover_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell popover for the specified date. |
|
|
55
|
+
| [toLabel](#toLabel) | Defines the label content for the second input when the `range` attribute is used. |
|
|
56
|
+
|
|
57
|
+
## CSS Shadow Parts
|
|
58
|
+
|
|
59
|
+
| Part | Description |
|
|
60
|
+
|-------------------|--------------------------------------------------|
|
|
61
|
+
| [calendar](#calendar) | Use for customizing the style of the calendar. |
|
|
62
|
+
| [calendarWrapper](#calendarWrapper) | Use for customizing the style of the calendar container. |
|
|
63
|
+
| [dropdown](#dropdown) | Use for customizing the style of the dropdown. |
|
|
64
|
+
| [helpText](#helpText) | Use for customizing the style of the datepicker help text. |
|
|
65
|
+
| [helpTextSpan](#helpTextSpan) | Use for customizing the style of the datepicker help text span. |
|
|
66
|
+
| [input](#input) | Use for customizing the style of the datepicker inputs. |
|
|
67
|
+
| [trigger](#trigger) | Use for customizing the style of the datepicker trigger. |
|
|
68
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
|
+
|
|
70
|
+
## API Examples
|
|
71
|
+
|
|
72
|
+
### Basic
|
|
73
|
+
|
|
74
|
+
<div class="exampleWrapper">
|
|
75
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
76
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
77
|
+
<auro-datepicker>
|
|
78
|
+
<span slot="fromLabel">Choose a date</span>
|
|
79
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
80
|
+
</auro-datepicker>
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
+
</div>
|
|
83
|
+
<auro-accordion alignRight>
|
|
84
|
+
<span slot="trigger">See code</span>
|
|
85
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
86
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<auro-datepicker>
|
|
90
|
+
<span slot="fromLabel">Choose a date</span>
|
|
91
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
92
|
+
</auro-datepicker>
|
|
93
|
+
```
|
|
94
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
|
+
</auro-accordion>
|
|
96
|
+
|
|
97
|
+
### Property Examples
|
|
98
|
+
|
|
99
|
+
#### calendarStartDate & calendarEndDate
|
|
100
|
+
|
|
101
|
+
The `calendarStartDate` and `calendarEndDate` properties may be used to explicitly control which calendar months _may_ be rendered in the calendar.
|
|
102
|
+
|
|
103
|
+
In <strong>desktop</strong>, the calendar month navigation will be restricted by these dates. In <strong>mobile</strong>, the following logic is used:
|
|
104
|
+
|
|
105
|
+
- if both `calendarStartDate` and `calendarEndDate` are defined: all months between, including these dates, will be rendered.
|
|
106
|
+
- If only `calendarStartDate` is defined: 12 months will be rendered starting with this value.
|
|
107
|
+
- if only `calendarEndDate` is defined: The current date month through the value of this property will be rendered.
|
|
108
|
+
|
|
109
|
+
Note: This does not restrict setting a value outside of those date constraints. These properties _only_ define which months can be rendered in the calendar. A user may still type any date into the input field. If actual value selection restrictions are needed, see the `minDate` and `maxDate` properties which may be used standalone, or in conjunction with `calendarStartDate` and `calendarEndDate`.
|
|
110
|
+
|
|
111
|
+
<div class="exampleWrapper">
|
|
112
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendarStartAndEndDate.html) -->
|
|
113
|
+
<!-- The below content is automatically added from ./../apiExamples/calendarStartAndEndDate.html -->
|
|
114
|
+
<auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
|
|
115
|
+
<span slot="fromLabel">Choose a date</span>
|
|
116
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
117
|
+
</auro-datepicker>
|
|
118
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
119
|
+
</div>
|
|
120
|
+
<auro-accordion alignRight>
|
|
121
|
+
<span slot="trigger">See code</span>
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/calendarStartAndEndDate.html) -->
|
|
123
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/calendarStartAndEndDate.html -->
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
|
|
127
|
+
<span slot="fromLabel">Choose a date</span>
|
|
128
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
129
|
+
</auro-datepicker>
|
|
130
|
+
```
|
|
131
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
132
|
+
</auro-accordion>
|
|
133
|
+
|
|
134
|
+
#### calendarFocusDate
|
|
135
|
+
|
|
136
|
+
The `calendarFocusDate` controls which calendar month is first presented to the user when they open the dropdown bib.
|
|
137
|
+
|
|
138
|
+
In <strong>desktop</strong> layout, the first month actually rendered will be the `calendarFocusDate` if defined. Once the user manually navigates the calendar to a different month, the calendar view will remain where the user left off when they close and reopen the bib. If the `calendarFocusDate` property is changed, this will re-render the calendar starting at the new date. If `calendarFocusDate` is undefined, the first rendered month will be the current date or the first renderable date defined by `calendarStartDate`.
|
|
139
|
+
|
|
140
|
+
In <strong>mobile</strong> layout, upon first opening the bib, the vertical list of months will scroll (with no animation) to the month defined by the `calendarFocusDate`. If the user scrolls the list to a different position, the scroll position will remain where the user left off when they close and reopen the bib. If the `calendarFocusDate` is changed, the list will scroll to the new dates month. If `calendarFocusDate` is undefined, the list will start at the top most scroll position.
|
|
141
|
+
|
|
142
|
+
<div class="exampleWrapper">
|
|
143
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendarFocusDate.html) -->
|
|
144
|
+
<!-- The below content is automatically added from ./../apiExamples/calendarFocusDate.html -->
|
|
145
|
+
<auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
|
|
146
|
+
<span slot="fromLabel">Choose a date</span>
|
|
147
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
148
|
+
</auro-datepicker>
|
|
149
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
150
|
+
</div>
|
|
151
|
+
<auro-accordion alignRight>
|
|
152
|
+
<span slot="trigger">See code</span>
|
|
153
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/calendarFocusDate.html) -->
|
|
154
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/calendarFocusDate.html -->
|
|
155
|
+
|
|
156
|
+
```html
|
|
157
|
+
<auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
|
|
158
|
+
<span slot="fromLabel">Choose a date</span>
|
|
159
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
160
|
+
</auro-datepicker>
|
|
161
|
+
```
|
|
162
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
163
|
+
</auro-accordion>
|
|
164
|
+
|
|
165
|
+
#### disabled
|
|
166
|
+
|
|
167
|
+
If set, disables the datepicker.
|
|
168
|
+
|
|
169
|
+
<div class="exampleWrapper">
|
|
170
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
171
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
172
|
+
<auro-datepicker disabled>
|
|
173
|
+
<span slot="label">Choose a date</span>
|
|
174
|
+
</auro-datepicker>
|
|
175
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
176
|
+
</div>
|
|
177
|
+
<auro-accordion alignRight>
|
|
178
|
+
<span slot="trigger">See code</span>
|
|
179
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
180
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
181
|
+
|
|
182
|
+
```html
|
|
183
|
+
<auro-datepicker disabled>
|
|
184
|
+
<span slot="label">Choose a date</span>
|
|
185
|
+
</auro-datepicker>
|
|
186
|
+
```
|
|
187
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
188
|
+
</auro-accordion>
|
|
189
|
+
|
|
190
|
+
#### error
|
|
191
|
+
|
|
192
|
+
Sets a persistent error state (e.g. an error state returned from the server). This error state will override all default validation until the error attribute is removed from the datepicker.
|
|
193
|
+
|
|
194
|
+
<div class="exampleWrapper">
|
|
195
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
196
|
+
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
197
|
+
<auro-datepicker error="Custom error message" id="errorExample">
|
|
198
|
+
<span slot="label">Choose a date</span>
|
|
199
|
+
</auro-datepicker>
|
|
200
|
+
<br/><br/>
|
|
201
|
+
<auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
|
|
202
|
+
<auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
|
+
</div>
|
|
205
|
+
<auro-accordion alignRight>
|
|
206
|
+
<span slot="trigger">See code</span>
|
|
207
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
|
|
208
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
209
|
+
|
|
210
|
+
```html
|
|
211
|
+
<auro-datepicker error="Custom error message" id="errorExample">
|
|
212
|
+
<span slot="label">Choose a date</span>
|
|
213
|
+
</auro-datepicker>
|
|
214
|
+
<br/><br/>
|
|
215
|
+
<auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
|
|
216
|
+
<auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
|
|
217
|
+
```
|
|
218
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
219
|
+
</auro-accordion>
|
|
220
|
+
|
|
221
|
+
#### maxDate
|
|
222
|
+
|
|
223
|
+
To give a higher limit you can bind a date to the `maxDate` property. It is recommended to use the `setCustomValidityRangeOverflow` attribute to define an error message to display when validation fails the maximum date restriction.
|
|
224
|
+
|
|
225
|
+
<div class="exampleWrapper">
|
|
226
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/maxDate.html) -->
|
|
227
|
+
<!-- The below content is automatically added from ./../apiExamples/maxDate.html -->
|
|
228
|
+
<auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
|
|
229
|
+
<span slot="fromLabel">Choose a date</span>
|
|
230
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
231
|
+
</auro-datepicker>
|
|
232
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
233
|
+
</div>
|
|
234
|
+
<auro-accordion alignRight>
|
|
235
|
+
<span slot="trigger">See code</span>
|
|
236
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/maxDate.html) -->
|
|
237
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/maxDate.html -->
|
|
238
|
+
|
|
239
|
+
```html
|
|
240
|
+
<auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
|
|
241
|
+
<span slot="fromLabel">Choose a date</span>
|
|
242
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
243
|
+
</auro-datepicker>
|
|
244
|
+
```
|
|
245
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
246
|
+
</auro-accordion>
|
|
247
|
+
Setting the `maxDate` attribute to a date earlier than the auro-datepicker `value` will result in the following changes to the component state:
|
|
248
|
+
|
|
249
|
+
* `value` will to reset to `undefined`.
|
|
250
|
+
* If the currently viewed calendar month is later than the new `maxDate`, the calendar view will move to the new `maxDate` month.
|
|
251
|
+
|
|
252
|
+
This example demonstrates that behavior.
|
|
253
|
+
|
|
254
|
+
<div class="exampleWrapper">
|
|
255
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/updateMaxDate.html) -->
|
|
256
|
+
<!-- The below content is automatically added from ./../apiExamples/updateMaxDate.html -->
|
|
257
|
+
<auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
|
|
258
|
+
<span slot="label">Choose a date</span>
|
|
259
|
+
</auro-datepicker>
|
|
260
|
+
<auro-button id="maxDateChange">Change maxDate to Today's Date</auro-button>
|
|
261
|
+
<auro-button id="resetMaxDate">Reset Datepicker to Initial Example</auro-button>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
263
|
+
</div>
|
|
264
|
+
<auro-accordion alignRight>
|
|
265
|
+
<span slot="trigger">See code</span>
|
|
266
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/updateMaxDate.html) -->
|
|
267
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/updateMaxDate.html -->
|
|
268
|
+
|
|
269
|
+
```html
|
|
270
|
+
<auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
|
|
271
|
+
<span slot="label">Choose a date</span>
|
|
272
|
+
</auro-datepicker>
|
|
273
|
+
<auro-button id="maxDateChange">Change maxDate to Today's Date</auro-button>
|
|
274
|
+
<auro-button id="resetMaxDate">Reset Datepicker to Initial Example</auro-button>
|
|
275
|
+
```
|
|
276
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
277
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/updateMaxDate.js) -->
|
|
278
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/updateMaxDate.js -->
|
|
279
|
+
|
|
280
|
+
```js
|
|
281
|
+
function formatDateString(date) {
|
|
282
|
+
/* eslint-disable prefer-template, no-magic-numbers */
|
|
283
|
+
const dd = String("0" + date.getDate()).slice(-2);
|
|
284
|
+
const mm = String("0" + (date.getMonth() + 1)).slice(-2);
|
|
285
|
+
/* eslint-enable prefer-template, no-magic-numbers */
|
|
286
|
+
const yyyy = date.getFullYear();
|
|
287
|
+
|
|
288
|
+
return `${mm}/${dd}/${yyyy}`;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function updateMaxDateExample() {
|
|
292
|
+
const maxDateExample = document.getElementById('maxDateExample');
|
|
293
|
+
const changeMaxDateButton = document.getElementById('maxDateChange');
|
|
294
|
+
const resetButton = document.getElementById('resetMaxDate');
|
|
295
|
+
|
|
296
|
+
const today = formatDateString(new Date());
|
|
297
|
+
|
|
298
|
+
let nextWeek = new Date();
|
|
299
|
+
let addOneWeek = nextWeek.getDate() + 7;
|
|
300
|
+
|
|
301
|
+
nextWeek.setDate(addOneWeek);
|
|
302
|
+
nextWeek = formatDateString(nextWeek);
|
|
303
|
+
|
|
304
|
+
maxDateExample.setAttribute('value', nextWeek);
|
|
305
|
+
maxDateExample.setAttribute('maxDate', nextWeek);
|
|
306
|
+
|
|
307
|
+
changeMaxDateButton.addEventListener('click', () => {
|
|
308
|
+
maxDateExample.setAttribute('maxDate', today);
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
resetButton.addEventListener('click', () => {
|
|
312
|
+
maxDateExample.setAttribute('value', nextWeek);
|
|
313
|
+
maxDateExample.setAttribute('maxDate', nextWeek);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
318
|
+
</auro-accordion>
|
|
319
|
+
|
|
320
|
+
#### minDate
|
|
321
|
+
|
|
322
|
+
To give a lower limit you can bind a date to the `minDate` property. It is recommended to use the `setCustomValidityRangeUnderflow` attribute to define an error message to display when validation fails the minimum date restriction.
|
|
323
|
+
|
|
324
|
+
<div class="exampleWrapper">
|
|
325
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/minDate.html) -->
|
|
326
|
+
<!-- The below content is automatically added from ./../apiExamples/minDate.html -->
|
|
327
|
+
<auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
|
|
328
|
+
<span slot="fromLabel">Choose a date</span>
|
|
329
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
330
|
+
</auro-datepicker>
|
|
331
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
|
+
</div>
|
|
333
|
+
<auro-accordion alignRight>
|
|
334
|
+
<span slot="trigger">See code</span>
|
|
335
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/minDate.html) -->
|
|
336
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/minDate.html -->
|
|
337
|
+
|
|
338
|
+
```html
|
|
339
|
+
<auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
|
|
340
|
+
<span slot="fromLabel">Choose a date</span>
|
|
341
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
342
|
+
</auro-datepicker>
|
|
343
|
+
```
|
|
344
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
345
|
+
</auro-accordion>
|
|
346
|
+
Setting the `minDate` attribute to a date later than the auro-datepicker `value` will result in the following changes to the component state:
|
|
347
|
+
|
|
348
|
+
* `value` will to reset to `undefined`.
|
|
349
|
+
* If the currently viewed calendar month is earlier than the new `minDate`, the calendar view will move to the new `minDate` month.
|
|
350
|
+
|
|
351
|
+
This example demonstrates that behavior.
|
|
352
|
+
|
|
353
|
+
<div class="exampleWrapper">
|
|
354
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/updateMinDate.html) -->
|
|
355
|
+
<!-- The below content is automatically added from ./../apiExamples/updateMinDate.html -->
|
|
356
|
+
<auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
|
|
357
|
+
<span slot="label">Choose a date</span>
|
|
358
|
+
</auro-datepicker>
|
|
359
|
+
<auro-button id="minDateChange">Change minDate to a week from Today</auro-button>
|
|
360
|
+
<auro-button id="resetMinDate">Reset Datepicker to Initial Example</auro-button>
|
|
361
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
362
|
+
</div>
|
|
363
|
+
<auro-accordion alignRight>
|
|
364
|
+
<span slot="trigger">See code</span>
|
|
365
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/updateMinDate.html) -->
|
|
366
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/updateMinDate.html -->
|
|
367
|
+
|
|
368
|
+
```html
|
|
369
|
+
<auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
|
|
370
|
+
<span slot="label">Choose a date</span>
|
|
371
|
+
</auro-datepicker>
|
|
372
|
+
<auro-button id="minDateChange">Change minDate to a week from Today</auro-button>
|
|
373
|
+
<auro-button id="resetMinDate">Reset Datepicker to Initial Example</auro-button>
|
|
374
|
+
```
|
|
375
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
376
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/updateMinDate.js) -->
|
|
377
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/updateMinDate.js -->
|
|
378
|
+
|
|
379
|
+
```js
|
|
380
|
+
function formatDateString(date) {
|
|
381
|
+
/* eslint-disable prefer-template, no-magic-numbers */
|
|
382
|
+
const dd = String("0" + date.getDate()).slice(-2);
|
|
383
|
+
const mm = String("0" + (date.getMonth() + 1)).slice(-2);
|
|
384
|
+
/* eslint-enable prefer-template, no-magic-numbers */
|
|
385
|
+
const yyyy = date.getFullYear();
|
|
386
|
+
|
|
387
|
+
return `${mm}/${dd}/${yyyy}`;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export function updateMinDateExample() {
|
|
391
|
+
const minDateExample = document.getElementById('minDateExample');
|
|
392
|
+
const changeMinDateButton = document.getElementById('minDateChange');
|
|
393
|
+
const resetButton = document.getElementById('resetMinDate');
|
|
394
|
+
|
|
395
|
+
const today = formatDateString(new Date());
|
|
396
|
+
|
|
397
|
+
let nextWeek = new Date();
|
|
398
|
+
let addOneWeek = nextWeek.getDate() + 7;
|
|
399
|
+
|
|
400
|
+
nextWeek.setDate(addOneWeek);
|
|
401
|
+
nextWeek = formatDateString(nextWeek);
|
|
402
|
+
|
|
403
|
+
minDateExample.setAttribute('value', today);
|
|
404
|
+
minDateExample.setAttribute('minDate', today);
|
|
405
|
+
|
|
406
|
+
changeMinDateButton.addEventListener('click', () => {
|
|
407
|
+
minDateExample.setAttribute('minDate', nextWeek);
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
resetButton.addEventListener('click', () => {
|
|
411
|
+
minDateExample.setAttribute('value', today);
|
|
412
|
+
minDateExample.setAttribute('minDate', today);
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
}
|
|
416
|
+
```
|
|
417
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
418
|
+
</auro-accordion>
|
|
419
|
+
|
|
420
|
+
#### monthNames
|
|
421
|
+
|
|
422
|
+
May be used to provide localized month names. These names will only be shown in the calendar when viewed on a mobile device.
|
|
423
|
+
|
|
424
|
+
<div class="exampleWrapper">
|
|
425
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/monthNames.html) -->
|
|
426
|
+
<!-- The below content is automatically added from ./../apiExamples/monthNames.html -->
|
|
427
|
+
<auro-datepicker id="monthNamesExample">
|
|
428
|
+
<span slot="fromLabel">Choose a date</span>
|
|
429
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
430
|
+
</auro-datepicker>
|
|
431
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
432
|
+
</div>
|
|
433
|
+
<auro-accordion alignRight>
|
|
434
|
+
<span slot="trigger">See code</span>
|
|
435
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/monthNames.html) -->
|
|
436
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/monthNames.html -->
|
|
437
|
+
|
|
438
|
+
```html
|
|
439
|
+
<auro-datepicker id="monthNamesExample">
|
|
440
|
+
<span slot="fromLabel">Choose a date</span>
|
|
441
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
442
|
+
</auro-datepicker>
|
|
443
|
+
```
|
|
444
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
445
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/monthNames.js) -->
|
|
446
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/monthNames.js -->
|
|
447
|
+
|
|
448
|
+
```js
|
|
449
|
+
export function monthNamesExample() {
|
|
450
|
+
const monthNamesExample = document.querySelector('#monthNamesExample');
|
|
451
|
+
const spanishMonths = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];
|
|
452
|
+
|
|
453
|
+
monthNamesExample.monthNames = spanishMonths;
|
|
454
|
+
}
|
|
455
|
+
```
|
|
456
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
457
|
+
</auro-accordion>
|
|
458
|
+
|
|
459
|
+
#### noValidate
|
|
460
|
+
|
|
461
|
+
When set, the datepicker will not validate when navigating away from the component.
|
|
462
|
+
|
|
463
|
+
<div class="exampleWrapper">
|
|
464
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noValidate.html) -->
|
|
465
|
+
<!-- The below content is automatically added from ./../apiExamples/noValidate.html -->
|
|
466
|
+
<auro-datepicker required noValidate>
|
|
467
|
+
<span slot="fromLabel">Choose a date</span>
|
|
468
|
+
</auro-datepicker>
|
|
469
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
470
|
+
</div>
|
|
471
|
+
<auro-accordion alignRight>
|
|
472
|
+
<span slot="trigger">See code</span>
|
|
473
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noValidate.html) -->
|
|
474
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/noValidate.html -->
|
|
475
|
+
|
|
476
|
+
```html
|
|
477
|
+
<auro-datepicker required noValidate>
|
|
478
|
+
<span slot="fromLabel">Choose a date</span>
|
|
479
|
+
</auro-datepicker>
|
|
480
|
+
```
|
|
481
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
482
|
+
</auro-accordion>
|
|
483
|
+
|
|
484
|
+
#### range
|
|
485
|
+
|
|
486
|
+
When used, the datepicker will display two inputs and the component will support selection of dates for a start and end date.
|
|
487
|
+
|
|
488
|
+
<div class="exampleWrapper">
|
|
489
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
490
|
+
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
491
|
+
<auro-datepicker range>
|
|
492
|
+
<span slot="fromLabel">Departure</span>
|
|
493
|
+
<span slot="toLabel">Return</span>
|
|
494
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
495
|
+
</auro-datepicker>
|
|
496
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
497
|
+
</div>
|
|
498
|
+
<auro-accordion alignRight>
|
|
499
|
+
<span slot="trigger">See code</span>
|
|
500
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicRange.html) -->
|
|
501
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
|
|
502
|
+
|
|
503
|
+
```html
|
|
504
|
+
<auro-datepicker range>
|
|
505
|
+
<span slot="fromLabel">Departure</span>
|
|
506
|
+
<span slot="toLabel">Return</span>
|
|
507
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
508
|
+
</auro-datepicker>
|
|
509
|
+
```
|
|
510
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
|
+
</auro-accordion>
|
|
512
|
+
|
|
513
|
+
#### required
|
|
514
|
+
|
|
515
|
+
Populates the `required` attribute on the input. Used for client-side validation.
|
|
516
|
+
|
|
517
|
+
<div class="exampleWrapper">
|
|
518
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
519
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
520
|
+
<auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
|
|
521
|
+
<span slot="fromLabel">Choose a date</span>
|
|
522
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
523
|
+
</auro-datepicker>
|
|
524
|
+
<auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
|
|
525
|
+
<span slot="fromLabel">Departure</span>
|
|
526
|
+
<span slot="toLabel">Return</span>
|
|
527
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
528
|
+
</auro-datepicker>
|
|
529
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
530
|
+
</div>
|
|
531
|
+
<auro-accordion alignRight>
|
|
532
|
+
<span slot="trigger">See code</span>
|
|
533
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
534
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
535
|
+
|
|
536
|
+
```html
|
|
537
|
+
<auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
|
|
538
|
+
<span slot="fromLabel">Choose a date</span>
|
|
539
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
540
|
+
</auro-datepicker>
|
|
541
|
+
<auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
|
|
542
|
+
<span slot="fromLabel">Departure</span>
|
|
543
|
+
<span slot="toLabel">Return</span>
|
|
544
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
545
|
+
</auro-datepicker>
|
|
546
|
+
```
|
|
547
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
548
|
+
</auro-accordion>
|
|
549
|
+
|
|
550
|
+
#### validity
|
|
551
|
+
|
|
552
|
+
Specifies the `validityState` the element is in. Upon first interaction, or presetting the `error` attribute, the component will validate on `focusout`. After validation, `validityState` can be queried from the component by using the following JavaScript.
|
|
553
|
+
|
|
554
|
+
<div class="exampleWrapper">
|
|
555
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
|
|
556
|
+
<!-- The below content is automatically added from ./../apiExamples/validity.html -->
|
|
557
|
+
<auro-datepicker required id="validityExample">
|
|
558
|
+
<span slot="fromLabel">Choose a date</span>
|
|
559
|
+
</auro-datepicker>
|
|
560
|
+
<auro-button id="validityExampleBtn">Get validity</auro-button>
|
|
561
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
562
|
+
</div>
|
|
563
|
+
<auro-accordion alignRight>
|
|
564
|
+
<span slot="trigger">See code</span>
|
|
565
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.html) -->
|
|
566
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/validity.html -->
|
|
567
|
+
|
|
568
|
+
```html
|
|
569
|
+
<auro-datepicker required id="validityExample">
|
|
570
|
+
<span slot="fromLabel">Choose a date</span>
|
|
571
|
+
</auro-datepicker>
|
|
572
|
+
<auro-button id="validityExampleBtn">Get validity</auro-button>
|
|
573
|
+
```
|
|
574
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
575
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.js) -->
|
|
576
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/validity.js -->
|
|
577
|
+
|
|
578
|
+
```js
|
|
579
|
+
export function validityExample() {
|
|
580
|
+
const validityExampleExample = document.querySelector('#validityExample');
|
|
581
|
+
const validityExampleExampleBtn = document.querySelector('#validityExampleBtn');
|
|
582
|
+
|
|
583
|
+
validityExampleExampleBtn.addEventListener('click', () => {
|
|
584
|
+
console.warn('Validity set to:', validityExampleExample.validity);
|
|
585
|
+
alert(`Validity set to: ${validityExampleExample.validity}`);
|
|
586
|
+
})
|
|
587
|
+
}
|
|
588
|
+
```
|
|
589
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
590
|
+
</auro-accordion>
|
|
591
|
+
|
|
592
|
+
#### value
|
|
593
|
+
|
|
594
|
+
Value selected for the datepicker. Can be used to pre-set the value of the datepicker. When the `range` attribute is used, `value` is for the first input.
|
|
595
|
+
|
|
596
|
+
<div class="exampleWrapper">
|
|
597
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
|
|
598
|
+
<!-- The below content is automatically added from ./../apiExamples/value.html -->
|
|
599
|
+
<auro-datepicker id="valueExample" value="02/02/2022">
|
|
600
|
+
<span slot="label">Choose a date</span>
|
|
601
|
+
</auro-datepicker>
|
|
602
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
603
|
+
</div>
|
|
604
|
+
<auro-accordion alignRight>
|
|
605
|
+
<span slot="trigger">See code</span>
|
|
606
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.html) -->
|
|
607
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/value.html -->
|
|
608
|
+
|
|
609
|
+
```html
|
|
610
|
+
<auro-datepicker id="valueExample" value="02/02/2022">
|
|
611
|
+
<span slot="label">Choose a date</span>
|
|
612
|
+
</auro-datepicker>
|
|
613
|
+
```
|
|
614
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
615
|
+
</auro-accordion>
|
|
616
|
+
|
|
617
|
+
#### valueEnd
|
|
618
|
+
|
|
619
|
+
Value of the second input (end date), selected for the datepicker. Can be used to pre-set the value of the datepicker. Only applicable for a datepicker with the `range` attribute.
|
|
620
|
+
|
|
621
|
+
<div class="exampleWrapper">
|
|
622
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueEnd.html) -->
|
|
623
|
+
<!-- The below content is automatically added from ./../apiExamples/valueEnd.html -->
|
|
624
|
+
<auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
|
|
625
|
+
<span slot="label">Choose a date</span>
|
|
626
|
+
</auro-datepicker>
|
|
627
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
628
|
+
</div>
|
|
629
|
+
<auro-accordion alignRight>
|
|
630
|
+
<span slot="trigger">See code</span>
|
|
631
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/valueEnd.html) -->
|
|
632
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/valueEnd.html -->
|
|
633
|
+
|
|
634
|
+
```html
|
|
635
|
+
<auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
|
|
636
|
+
<span slot="label">Choose a date</span>
|
|
637
|
+
</auro-datepicker>
|
|
638
|
+
```
|
|
639
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
640
|
+
</auro-accordion>
|
|
641
|
+
|
|
642
|
+
### Method Examples
|
|
643
|
+
|
|
644
|
+
#### focus
|
|
645
|
+
|
|
646
|
+
The focus method will apply focus state to the datepicker's input field.
|
|
647
|
+
|
|
648
|
+
<div class="exampleWrapper">
|
|
649
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/focus.html) -->
|
|
650
|
+
<!-- The below content is automatically added from ./../apiExamples/focus.html -->
|
|
651
|
+
<auro-button id="focusExampleBtn">Apply focus to datepicker</auro-button>
|
|
652
|
+
<auro-button id="focusExampleBtnTwo">Apply focus to the second input in datepicker</auro-button>
|
|
653
|
+
<br /><br />
|
|
654
|
+
<auro-datepicker id="focusExampleElem" range>
|
|
655
|
+
<span slot="label">Choose a date</span>
|
|
656
|
+
</auro-datepicker>
|
|
657
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
658
|
+
</div>
|
|
659
|
+
<auro-accordion alignRight>
|
|
660
|
+
<span slot="trigger">See code</span>
|
|
661
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.html) -->
|
|
662
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/focus.html -->
|
|
663
|
+
|
|
664
|
+
```html
|
|
665
|
+
<auro-button id="focusExampleBtn">Apply focus to datepicker</auro-button>
|
|
666
|
+
<auro-button id="focusExampleBtnTwo">Apply focus to the second input in datepicker</auro-button>
|
|
667
|
+
<br /><br />
|
|
668
|
+
<auro-datepicker id="focusExampleElem" range>
|
|
669
|
+
<span slot="label">Choose a date</span>
|
|
670
|
+
</auro-datepicker>
|
|
671
|
+
```
|
|
672
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
673
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.js) -->
|
|
674
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/focus.js -->
|
|
675
|
+
|
|
676
|
+
```js
|
|
677
|
+
export function focusExample() {
|
|
678
|
+
const focusExampleElem = document.querySelector('#focusExampleElem');
|
|
679
|
+
const focusExampleBtn = document.querySelector('#focusExampleBtn');
|
|
680
|
+
const focusExampleBtnTwo = document.querySelector('#focusExampleBtnTwo');
|
|
681
|
+
|
|
682
|
+
focusExampleBtn.addEventListener('click', () => {
|
|
683
|
+
focusExampleElem.focus();
|
|
684
|
+
});
|
|
685
|
+
|
|
686
|
+
focusExampleBtnTwo.addEventListener('click', () => {
|
|
687
|
+
focusExampleElem.focus('endDate');
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
```
|
|
691
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
692
|
+
</auro-accordion>
|
|
693
|
+
|
|
694
|
+
### Slot Examples
|
|
695
|
+
|
|
696
|
+
#### fromLabel
|
|
697
|
+
|
|
698
|
+
Sets the label used for the input. When the `range` attribute is used this is the first of two inputs.
|
|
699
|
+
|
|
700
|
+
<div class="exampleWrapper">
|
|
701
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
702
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
703
|
+
<auro-datepicker>
|
|
704
|
+
<span slot="fromLabel">Choose a date</span>
|
|
705
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
706
|
+
</auro-datepicker>
|
|
707
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
708
|
+
</div>
|
|
709
|
+
<auro-accordion alignRight>
|
|
710
|
+
<span slot="trigger">See code</span>
|
|
711
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
712
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
713
|
+
|
|
714
|
+
```html
|
|
715
|
+
<auro-datepicker>
|
|
716
|
+
<span slot="fromLabel">Choose a date</span>
|
|
717
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
718
|
+
</auro-datepicker>
|
|
719
|
+
```
|
|
720
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
721
|
+
</auro-accordion>
|
|
722
|
+
|
|
723
|
+
#### helpText
|
|
724
|
+
|
|
725
|
+
Sets the help text displayed below the trigger. The `helpText` slot can be used to provide additional context for the combobox. When using the `error` property, the `helpText` slot can be used to describe the error.
|
|
726
|
+
|
|
727
|
+
<div class="exampleWrapper">
|
|
728
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
729
|
+
<!-- The below content is automatically added from ./../apiExamples/helpText.html -->
|
|
730
|
+
<auro-datepicker>
|
|
731
|
+
<span slot="label">Choose a date</span>
|
|
732
|
+
<span slot="helpText">Choose a date must be today or earlier.</span>
|
|
733
|
+
</auro-datepicker>
|
|
734
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
735
|
+
</div>
|
|
736
|
+
<auro-accordion alignRight>
|
|
737
|
+
<span slot="trigger">See code</span>
|
|
738
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpText.html) -->
|
|
739
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
|
|
740
|
+
|
|
741
|
+
```html
|
|
742
|
+
<auro-datepicker>
|
|
743
|
+
<span slot="label">Choose a date</span>
|
|
744
|
+
<span slot="helpText">Choose a date must be today or earlier.</span>
|
|
745
|
+
</auro-datepicker>
|
|
746
|
+
```
|
|
747
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
748
|
+
</auro-accordion>
|
|
749
|
+
|
|
750
|
+
#### mobileDateLabel
|
|
751
|
+
|
|
752
|
+
Sets the label used for the selected date display at the top of the bib when viewed in the mobile layout. To view this demo, set your window to a mobile screen size.
|
|
753
|
+
|
|
754
|
+
<div class="exampleWrapper">
|
|
755
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
756
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
757
|
+
<auro-datepicker>
|
|
758
|
+
<span slot="fromLabel">Choose a date</span>
|
|
759
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
760
|
+
</auro-datepicker>
|
|
761
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
762
|
+
</div>
|
|
763
|
+
<auro-accordion alignRight>
|
|
764
|
+
<span slot="trigger">See code</span>
|
|
765
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
766
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
767
|
+
|
|
768
|
+
```html
|
|
769
|
+
<auro-datepicker>
|
|
770
|
+
<span slot="fromLabel">Choose a date</span>
|
|
771
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
772
|
+
</auro-datepicker>
|
|
773
|
+
```
|
|
774
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
775
|
+
</auro-accordion>
|
|
776
|
+
|
|
777
|
+
#### toLabel
|
|
778
|
+
|
|
779
|
+
Only for use with the `range` attribute. Sets the label for the second input.
|
|
780
|
+
|
|
781
|
+
<div class="exampleWrapper">
|
|
782
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
783
|
+
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
784
|
+
<auro-datepicker range>
|
|
785
|
+
<span slot="fromLabel">Departure</span>
|
|
786
|
+
<span slot="toLabel">Return</span>
|
|
787
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
788
|
+
</auro-datepicker>
|
|
789
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
790
|
+
</div>
|
|
791
|
+
<auro-accordion alignRight>
|
|
792
|
+
<span slot="trigger">See code</span>
|
|
793
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicRange.html) -->
|
|
794
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
|
|
795
|
+
|
|
796
|
+
```html
|
|
797
|
+
<auro-datepicker range>
|
|
798
|
+
<span slot="fromLabel">Departure</span>
|
|
799
|
+
<span slot="toLabel">Return</span>
|
|
800
|
+
<span slot="mobileDateLabel">Roundtrip</span>
|
|
801
|
+
</auro-datepicker>
|
|
802
|
+
```
|
|
803
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
804
|
+
</auro-accordion>
|
|
805
|
+
|
|
806
|
+
#### Date Slot
|
|
807
|
+
|
|
808
|
+
Custom content can be added to any day in the calendar using a `slot` named following the pattern `date_{MM}_{DD}_{YYYY}` (e.g. `date_01_08_2024`).
|
|
809
|
+
|
|
810
|
+
Adding the `highlight` attribute to the slot will change the slot content's color to `var(--ds-color-text-success-default)`.
|
|
811
|
+
|
|
812
|
+
Slot content support is limited to text only and a maximum of five (5) characters.
|
|
813
|
+
|
|
814
|
+
Slot content can be styled using [inline styles](https://www.codecademy.com/article/html-inline-styles) or [CSS Parts](https://css-tricks.com/styling-in-the-shadow-dom-with-css-shadow-parts/) (`part="dateSlot"`).
|
|
815
|
+
|
|
816
|
+
<div class="exampleWrapper">
|
|
817
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dateSlot.html) -->
|
|
818
|
+
<!-- The below content is automatically added from ./../apiExamples/dateSlot.html -->
|
|
819
|
+
<auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
|
|
820
|
+
<span slot="fromLabel">Choose a date</span>
|
|
821
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
822
|
+
<span slot="date_12_03_2023">Sold</span>
|
|
823
|
+
<span highlight slot="date_12_04_2023">$89</span>
|
|
824
|
+
<span slot="date_12_05_2023">$100</span>
|
|
825
|
+
<span slot="date_12_06_2023">$2345</span>
|
|
826
|
+
<span highlight slot="date_12_07_2023">$149</span>
|
|
827
|
+
<span highlight slot="date_12_08_2023">$382</span>
|
|
828
|
+
<span slot="date_12_09_2023">$560</span>
|
|
829
|
+
</auro-datepicker>
|
|
830
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
831
|
+
</div>
|
|
832
|
+
<auro-accordion alignRight>
|
|
833
|
+
<span slot="trigger">See code</span>
|
|
834
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dateSlot.html) -->
|
|
835
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dateSlot.html -->
|
|
836
|
+
|
|
837
|
+
```html
|
|
838
|
+
<auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
|
|
839
|
+
<span slot="fromLabel">Choose a date</span>
|
|
840
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
841
|
+
<span slot="date_12_03_2023">Sold</span>
|
|
842
|
+
<span highlight slot="date_12_04_2023">$89</span>
|
|
843
|
+
<span slot="date_12_05_2023">$100</span>
|
|
844
|
+
<span slot="date_12_06_2023">$2345</span>
|
|
845
|
+
<span highlight slot="date_12_07_2023">$149</span>
|
|
846
|
+
<span highlight slot="date_12_08_2023">$382</span>
|
|
847
|
+
<span slot="date_12_09_2023">$560</span>
|
|
848
|
+
</auro-datepicker>
|
|
849
|
+
```
|
|
850
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
851
|
+
</auro-accordion>
|
|
852
|
+
|
|
853
|
+
#### Popover Slot
|
|
854
|
+
|
|
855
|
+
Custom content can be added to any day's `auro-popover` in the calendar using a `slot` named following the pattern `popover_{MM}_{DD}_{YYYY}` (e.g. `popover_01_08_2024`).
|
|
856
|
+
|
|
857
|
+
The popover slot is intended for use with calendar dates that are `disabled` (e.g. before minimum date or after maximum date).
|
|
858
|
+
|
|
859
|
+
<div class="exampleWrapper">
|
|
860
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popoverSlot.html) -->
|
|
861
|
+
<!-- The below content is automatically added from ./../apiExamples/popoverSlot.html -->
|
|
862
|
+
<auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
|
|
863
|
+
<span slot="fromLabel">Choose a date</span>
|
|
864
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
865
|
+
<span slot="popover_12_03_2023">Tickets for this day are sold out</span>
|
|
866
|
+
<span slot="popover_12_04_2023">Tickets for this day are $89</span>
|
|
867
|
+
<span slot="popover_12_05_2023">Tickets for this day are $100</span>
|
|
868
|
+
<span slot="popover_12_06_2023">Tickets for this day are $2345</span>
|
|
869
|
+
<span slot="popover_12_07_2023">Tickets for this day are $149</span>
|
|
870
|
+
<span slot="popover_12_08_2023">Tickets for this day are $382</span>
|
|
871
|
+
<span slot="popover_12_09_2023">Tickets for this day are $560</span>
|
|
872
|
+
</auro-datepicker>
|
|
873
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
874
|
+
</div>
|
|
875
|
+
<auro-accordion alignRight>
|
|
876
|
+
<span slot="trigger">See code</span>
|
|
877
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popoverSlot.html) -->
|
|
878
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/popoverSlot.html -->
|
|
879
|
+
|
|
880
|
+
```html
|
|
881
|
+
<auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
|
|
882
|
+
<span slot="fromLabel">Choose a date</span>
|
|
883
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
884
|
+
<span slot="popover_12_03_2023">Tickets for this day are sold out</span>
|
|
885
|
+
<span slot="popover_12_04_2023">Tickets for this day are $89</span>
|
|
886
|
+
<span slot="popover_12_05_2023">Tickets for this day are $100</span>
|
|
887
|
+
<span slot="popover_12_06_2023">Tickets for this day are $2345</span>
|
|
888
|
+
<span slot="popover_12_07_2023">Tickets for this day are $149</span>
|
|
889
|
+
<span slot="popover_12_08_2023">Tickets for this day are $382</span>
|
|
890
|
+
<span slot="popover_12_09_2023">Tickets for this day are $560</span>
|
|
891
|
+
</auro-datepicker>
|
|
892
|
+
```
|
|
893
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
894
|
+
</auro-accordion>
|
|
895
|
+
|
|
896
|
+
## Functional Examples
|
|
897
|
+
|
|
898
|
+
#### Dynamic Slot Content
|
|
899
|
+
|
|
900
|
+
This example demonstrates data driven slot content for days in the calendar. In this example, the slot content is inserted into each `auro-calendar-cell` after the bib of the `auro-datepicker` is opened, simulating an API call on a dynamic data source.
|
|
901
|
+
|
|
902
|
+
<div class="exampleWrapper">
|
|
903
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamicSlot.html) -->
|
|
904
|
+
<!-- The below content is automatically added from ./../apiExamples/dynamicSlot.html -->
|
|
905
|
+
<auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
|
|
906
|
+
<span slot="fromLabel">Choose a date</span>
|
|
907
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
908
|
+
</auro-datepicker>
|
|
909
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
910
|
+
</div>
|
|
911
|
+
<auro-accordion alignRight>
|
|
912
|
+
<span slot="trigger">See code</span>
|
|
913
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamicSlot.html) -->
|
|
914
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dynamicSlot.html -->
|
|
915
|
+
|
|
916
|
+
```html
|
|
917
|
+
<auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
|
|
918
|
+
<span slot="fromLabel">Choose a date</span>
|
|
919
|
+
<span slot="mobileDateLabel">Choose a date</span>
|
|
920
|
+
</auro-datepicker>
|
|
921
|
+
```
|
|
922
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
923
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamicSlot.js) -->
|
|
924
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dynamicSlot.js -->
|
|
925
|
+
|
|
926
|
+
```js
|
|
927
|
+
export function populateSlotContentExample() {
|
|
928
|
+
const populateSlotContentExample = document.querySelector('#slotContentExample');
|
|
929
|
+
|
|
930
|
+
// Insert slot content when the datepicker has been opened
|
|
931
|
+
populateSlotContentExample.addEventListener('auroDatePicker-toggled', (event) => {
|
|
932
|
+
if (event.detail.expanded) {
|
|
933
|
+
// Array of object(s) containing key, value pairs defining what slot content to render
|
|
934
|
+
const data = [
|
|
935
|
+
{slot: 'date', month: 12, day: 1, year: 2023, content: 'Sold'},
|
|
936
|
+
{slot: 'date', month: 12, day: 2, year: 2023, content: 'Sold'},
|
|
937
|
+
{slot: 'date', month: 12, day: 3, year: 2023, content: 'Sold'},
|
|
938
|
+
{slot: 'date', month: 12, day: 4, year: 2023, content: 'Sold'},
|
|
939
|
+
{slot: 'date', month: 12, day: 5, year: 2023, content: 'Sold'},
|
|
940
|
+
{slot: 'date', month: 12, day: 6, year: 2023, content: 'Sold'},
|
|
941
|
+
{slot: 'date', month: 12, day: 7, year: 2023, content: 'Sold'},
|
|
942
|
+
{slot: 'date', month: 12, day: 8, year: 2023, content: 'Sold'},
|
|
943
|
+
{slot: 'date', month: 12, day: 9, year: 2023, content: 'Sold'},
|
|
944
|
+
{slot: 'date', month: 12, day: 10, year: 2023, content: 'Sold'},
|
|
945
|
+
{slot: 'date', month: 12, day: 11, year: 2023, content: 'Sold'},
|
|
946
|
+
{slot: 'date', month: 12, day: 12, year: 2023, content: 'Sold'},
|
|
947
|
+
{slot: 'date', month: 12, day: 13, year: 2023, content: '$560'},
|
|
948
|
+
{slot: 'date', month: 12, day: 14, year: 2023, content: '$89', highlight: true},
|
|
949
|
+
{slot: 'date', month: 12, day: 15, year: 2023, content: '$100'},
|
|
950
|
+
{slot: 'date', month: 12, day: 16, year: 2023, content: '$2345'},
|
|
951
|
+
{slot: 'date', month: 12, day: 17, year: 2023, content: '$2345'},
|
|
952
|
+
{slot: 'date', month: 12, day: 18, year: 2023, content: '$2345'},
|
|
953
|
+
{slot: 'date', month: 12, day: 19, year: 2023, content: '$2345'},
|
|
954
|
+
{slot: 'date', month: 12, day: 20, year: 2023, content: '$2345'},
|
|
955
|
+
{slot: 'date', month: 12, day: 21, year: 2023, content: '$2345'},
|
|
956
|
+
{slot: 'date', month: 12, day: 22, year: 2023, content: '$2345'},
|
|
957
|
+
{slot: 'date', month: 12, day: 23, year: 2023, content: '$2345'},
|
|
958
|
+
{slot: 'date', month: 12, day: 24, year: 2023, content: '$2345'},
|
|
959
|
+
{slot: 'date', month: 12, day: 25, year: 2023, content: '$2345'},
|
|
960
|
+
{slot: 'date', month: 12, day: 26, year: 2023, content: '$2345'},
|
|
961
|
+
{slot: 'date', month: 12, day: 27, year: 2023, content: '$2345'},
|
|
962
|
+
{slot: 'date', month: 12, day: 28, year: 2023, content: '$2345'},
|
|
963
|
+
{slot: 'date', month: 12, day: 29, year: 2023, content: '$2345'},
|
|
964
|
+
{slot: 'date', month: 12, day: 30, year: 2023, content: '$2345'},
|
|
965
|
+
{slot: 'date', month: 12, day: 31, year: 2023, content: '$2345'},
|
|
966
|
+
{slot: 'date', month: 1, day: 14, year: 2024, content: '$83', highlight: true},
|
|
967
|
+
{slot: 'date', month: 1, day: 15, year: 2024, content: '$203'},
|
|
968
|
+
{slot: 'date', month: 1, day: 16, year: 2024, content: '$4444'},
|
|
969
|
+
{slot: 'date', month: 1, day: 17, year: 2024, content: '$83', highlight: true},
|
|
970
|
+
{slot: 'date', month: 1, day: 18, year: 2024, content: '$96', highlight: true},
|
|
971
|
+
{slot: 'date', month: 1, day: 19, year: 2024, content: 'Sold'},
|
|
972
|
+
{slot: 'date', month: 1, day: 20, year: 2024, content: 'Sold'},
|
|
973
|
+
{slot: 'popover', month: 12, day: 1, year: 2023, content: 'Tickets for this date are sold out'},
|
|
974
|
+
{slot: 'popover', month: 12, day: 2, year: 2023, content: 'Tickets for this date are sold out'},
|
|
975
|
+
{slot: 'popover', month: 12, day: 3, year: 2023, content: 'Tickets for this date are sold out'},
|
|
976
|
+
{slot: 'popover', month: 12, day: 4, year: 2023, content: 'Tickets for this date are sold out'},
|
|
977
|
+
{slot: 'popover', month: 12, day: 5, year: 2023, content: 'Tickets for this date are sold out'},
|
|
978
|
+
{slot: 'popover', month: 12, day: 6, year: 2023, content: 'Tickets for this date are sold out'},
|
|
979
|
+
{slot: 'popover', month: 12, day: 7, year: 2023, content: 'Tickets for this date are sold out'},
|
|
980
|
+
{slot: 'popover', month: 12, day: 8, year: 2023, content: 'Tickets for this date are sold out'},
|
|
981
|
+
{slot: 'popover', month: 12, day: 9, year: 2023, content: 'Tickets for this date are sold out'},
|
|
982
|
+
{slot: 'popover', month: 12, day: 10, year: 2023, content: 'Tickets for this date are sold out'},
|
|
983
|
+
{slot: 'popover', month: 12, day: 11, year: 2023, content: 'Tickets for this date are sold out'},
|
|
984
|
+
{slot: 'popover', month: 12, day: 12, year: 2023, content: 'Tickets for this date are sold out'},
|
|
985
|
+
{slot: 'popover', month: 12, day: 13, year: 2023, content: 'Tickets for this date are $560'},
|
|
986
|
+
{slot: 'popover', month: 12, day: 14, year: 2023, content: 'Tickets for this date are $89'},
|
|
987
|
+
{slot: 'popover', month: 12, day: 15, year: 2023, content: 'Tickets for this date are $100'},
|
|
988
|
+
{slot: 'popover', month: 12, day: 16, year: 2023, content: 'Tickets for this date are $2345'},
|
|
989
|
+
{slot: 'popover', month: 12, day: 17, year: 2023, content: 'Tickets for this date are $2345'},
|
|
990
|
+
{slot: 'popover', month: 12, day: 18, year: 2023, content: 'Tickets for this date are $2345'},
|
|
991
|
+
{slot: 'popover', month: 12, day: 19, year: 2023, content: 'Tickets for this date are $2345'},
|
|
992
|
+
{slot: 'popover', month: 12, day: 20, year: 2023, content: 'Tickets for this date are $2345'},
|
|
993
|
+
{slot: 'popover', month: 12, day: 21, year: 2023, content: 'Tickets for this date are $2345'},
|
|
994
|
+
{slot: 'popover', month: 12, day: 22, year: 2023, content: 'Tickets for this date are $2345'},
|
|
995
|
+
{slot: 'popover', month: 12, day: 23, year: 2023, content: 'Tickets for this date are $2345'},
|
|
996
|
+
{slot: 'popover', month: 12, day: 24, year: 2023, content: 'Tickets for this date are $2345'},
|
|
997
|
+
{slot: 'popover', month: 12, day: 25, year: 2023, content: 'Tickets for this date are $2345'},
|
|
998
|
+
{slot: 'popover', month: 12, day: 26, year: 2023, content: 'Tickets for this date are $2345'},
|
|
999
|
+
{slot: 'popover', month: 12, day: 27, year: 2023, content: 'Tickets for this date are $2345'},
|
|
1000
|
+
{slot: 'popover', month: 12, day: 28, year: 2023, content: 'Tickets for this date are $2345'},
|
|
1001
|
+
{slot: 'popover', month: 12, day: 29, year: 2023, content: 'Tickets for this date are $2345'},
|
|
1002
|
+
{slot: 'popover', month: 12, day: 30, year: 2023, content: 'Tickets for this date are $2345'},
|
|
1003
|
+
{slot: 'popover', month: 12, day: 31, year: 2023, content: 'Tickets for this date are $2345'},
|
|
1004
|
+
{slot: 'popover', month: 1, day: 14, year: 2024, content: 'Tickets for this date are $83'},
|
|
1005
|
+
{slot: 'popover', month: 1, day: 15, year: 2024, content: 'Tickets for this date are $203'},
|
|
1006
|
+
{slot: 'popover', month: 1, day: 16, year: 2024, content: 'Tickets for this date are $4444'},
|
|
1007
|
+
{slot: 'popover', month: 1, day: 17, year: 2024, content: 'Tickets for this date are $83'},
|
|
1008
|
+
{slot: 'popover', month: 1, day: 18, year: 2024, content: 'Tickets for this date are $96'},
|
|
1009
|
+
{slot: 'popover', month: 1, day: 19, year: 2024, content: 'Tickets for this date are sold out'},
|
|
1010
|
+
{slot: 'popover', month: 1, day: 20, year: 2024, content: 'Tickets for this date are sold out'}
|
|
1011
|
+
];
|
|
1012
|
+
|
|
1013
|
+
// For each item in the array, parse the keys into an HTML element and insert it into the DOM
|
|
1014
|
+
data.forEach((item) => {
|
|
1015
|
+
// Create the new element for the slot content
|
|
1016
|
+
const slotElement = document.createElement('span');
|
|
1017
|
+
|
|
1018
|
+
if (item.month.toString().length === 1) {
|
|
1019
|
+
item.month = `0` + item.month;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
if (item.day.toString().length === 1) {
|
|
1023
|
+
item.day = `0` + item.day;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// Create the slot name from the item's keys
|
|
1027
|
+
const slotName = `${item.slot}_${item.month}_${item.day}_${item.year}`;
|
|
1028
|
+
|
|
1029
|
+
// Set the slot name and content
|
|
1030
|
+
slotElement.setAttribute('slot', slotName);
|
|
1031
|
+
slotElement.textContent = item.content;
|
|
1032
|
+
|
|
1033
|
+
// Set the 'highlight' attribute on date slot content
|
|
1034
|
+
if (item.slot === 'date' && item.highlight) {
|
|
1035
|
+
slotElement.setAttribute('highlight', item.highlight);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
// Append the new element to the DOM
|
|
1039
|
+
populateSlotContentExample.appendChild(slotElement);
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
populateSlotContentExample.pushSlotContent();
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
```
|
|
1047
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1048
|
+
</auro-accordion>
|
|
1049
|
+
|
|
1050
|
+
### Watch for value changes
|
|
1051
|
+
|
|
1052
|
+
The following example listens for the `auroDatePicker-valueSet` event. Once triggered, `element.value` may be queried for the new value **and** in successful scenarios, an alert will appear. Open the JavaScript console in the browser's developer tools to see the `console.warn` message that appears after the `auroDatePicker-valueSet` event has been triggered.
|
|
1053
|
+
|
|
1054
|
+
<div class="exampleWrapper">
|
|
1055
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/alertValue.html) -->
|
|
1056
|
+
<!-- The below content is automatically added from ./../apiExamples/alertValue.html -->
|
|
1057
|
+
<auro-datepicker id="datePickerValueAlert">
|
|
1058
|
+
<span slot="fromLabel">Choose a date</span>
|
|
1059
|
+
</auro-datepicker>
|
|
1060
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1061
|
+
</div>
|
|
1062
|
+
<auro-accordion alignRight>
|
|
1063
|
+
<span slot="trigger">See code</span>
|
|
1064
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/alertValue.html) -->
|
|
1065
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/alertValue.html -->
|
|
1066
|
+
|
|
1067
|
+
```html
|
|
1068
|
+
<auro-datepicker id="datePickerValueAlert">
|
|
1069
|
+
<span slot="fromLabel">Choose a date</span>
|
|
1070
|
+
</auro-datepicker>
|
|
1071
|
+
```
|
|
1072
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1073
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/alertValue.js) -->
|
|
1074
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/alertValue.js -->
|
|
1075
|
+
|
|
1076
|
+
```js
|
|
1077
|
+
export function alertValueExample() {
|
|
1078
|
+
const valueAlertExample = document.querySelector('#datePickerValueAlert');
|
|
1079
|
+
|
|
1080
|
+
valueAlertExample.addEventListener('auroDatePicker-valueSet', () => {
|
|
1081
|
+
console.warn('Select value changed to:', valueAlertExample.value);
|
|
1082
|
+
alert(`Select value changed to: ${valueAlertExample.value}`);
|
|
1083
|
+
})
|
|
1084
|
+
}
|
|
1085
|
+
```
|
|
1086
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1087
|
+
</auro-accordion>
|
|
1088
|
+
|
|
1089
|
+
#### in Dialog
|
|
1090
|
+
|
|
1091
|
+
The component can be in a dialog.
|
|
1092
|
+
|
|
1093
|
+
<div class="exampleWrapper">
|
|
1094
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inDialog.html) -->
|
|
1095
|
+
<!-- The below content is automatically added from ./../apiExamples/inDialog.html -->
|
|
1096
|
+
<div>
|
|
1097
|
+
<auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
|
|
1098
|
+
<auro-dialog id="datepicker-dialog">
|
|
1099
|
+
<span slot="header">Datepicker in Dialog</span>
|
|
1100
|
+
<div slot="content">
|
|
1101
|
+
<auro-datepicker />
|
|
1102
|
+
</div>
|
|
1103
|
+
</auro-dialog>
|
|
1104
|
+
</div>
|
|
1105
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1106
|
+
</div>
|
|
1107
|
+
<auro-accordion alignRight>
|
|
1108
|
+
<span slot="trigger">See code</span>
|
|
1109
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.html) -->
|
|
1110
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/inDialog.html -->
|
|
1111
|
+
|
|
1112
|
+
```html
|
|
1113
|
+
<div>
|
|
1114
|
+
<auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
|
|
1115
|
+
<auro-dialog id="datepicker-dialog">
|
|
1116
|
+
<span slot="header">Datepicker in Dialog</span>
|
|
1117
|
+
<div slot="content">
|
|
1118
|
+
<auro-datepicker />
|
|
1119
|
+
</div>
|
|
1120
|
+
</auro-dialog>
|
|
1121
|
+
</div>
|
|
1122
|
+
```
|
|
1123
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1124
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.js) -->
|
|
1125
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/inDialog.js -->
|
|
1126
|
+
|
|
1127
|
+
```js
|
|
1128
|
+
export function inDialogExample() {
|
|
1129
|
+
document.querySelector("#datepicker-dialog-opener").addEventListener("click", () => {
|
|
1130
|
+
const dialog = document.querySelector("#datepicker-dialog");
|
|
1131
|
+
dialog.open = true;
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
```
|
|
1135
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1136
|
+
</auro-accordion>
|
|
1137
|
+
|
|
1138
|
+
### Theme Support
|
|
1139
|
+
|
|
1140
|
+
The component may be restyled using the following code sample and changing the values of the following token(s).
|
|
1141
|
+
|
|
1142
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
1143
|
+
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
1144
|
+
|
|
1145
|
+
```scss
|
|
1146
|
+
/* stylelint-disable color-function-notation */
|
|
1147
|
+
|
|
1148
|
+
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
1149
|
+
|
|
1150
|
+
:host {
|
|
1151
|
+
--ds-auro-datepicker-placeholder-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
|
|
1152
|
+
--ds-auro-datepicker-range-input-divider-color: var(--ds-color-border-primary-default, #{$ds-color-border-primary-default});
|
|
1153
|
+
--ds-auro-calendar-mobile-footer-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
|
|
1154
|
+
--ds-auro-calendar-mobile-header-boxshadow-color: var(--ds-elevation-200, #{$ds-elevation-200});
|
|
1155
|
+
--ds-auro-calendar-mobile-header-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
|
|
1156
|
+
--ds-auro-calendar-mobile-header-divider-color: var(--ds-color-border-divider-default, #{$ds-color-border-divider-default});
|
|
1157
|
+
--ds-auro-calendar-mobile-header-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
|
|
1158
|
+
--ds-auro-calendar-nav-btn-border-color: transparent;
|
|
1159
|
+
--ds-auro-calendar-nav-btn-chevron-color: var(--ds-color-icon-ui-primary-default-default, #{$ds-color-icon-ui-primary-default-default});
|
|
1160
|
+
--ds-auro-calendar-nav-btn-container-color: transparent;
|
|
1161
|
+
--ds-auro-calendar-month-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
|
|
1162
|
+
--ds-auro-calendar-month-divider-color: var(--ds-color-border-divider-default, #{$ds-color-border-divider-default});
|
|
1163
|
+
--ds-auro-calendar-month-header-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
|
|
1164
|
+
--ds-auro-calendar-cell-border-color: transparent;
|
|
1165
|
+
--ds-auro-calendar-cell-boxshadow-color: var(--ds-elevation-200, #{$ds-elevation-200});
|
|
1166
|
+
--ds-auro-calendar-cell-container-color: transparent;
|
|
1167
|
+
--ds-auro-calendar-cell-in-range-color: var(--ds-color-container-secondary-default, #{$ds-color-container-secondary-default});
|
|
1168
|
+
--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
|
|
1169
|
+
--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
|
|
1170
|
+
}
|
|
1171
|
+
```
|
|
1172
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|