@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,571 @@
|
|
|
1
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
import { LitElement, html } from "lit";
|
|
7
|
+
|
|
8
|
+
import styleCss from "./styles/style-menu-css.js";
|
|
9
|
+
import colorCss from "./styles/color-menu-css.js";
|
|
10
|
+
import tokensCss from "./styles/tokens-css.js";
|
|
11
|
+
|
|
12
|
+
import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
|
|
13
|
+
|
|
14
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
15
|
+
/**
|
|
16
|
+
* The auro-menu element provides users a way to select from a list of options.
|
|
17
|
+
* @attr {Object} optionSelected - Specifies the current selected menuOption.
|
|
18
|
+
* @attr {String} matchWord - Specifies a string used to highlight matched string parts in options.
|
|
19
|
+
* @attr {Boolean} disabled - When true, the entire menu and all options are disabled;
|
|
20
|
+
* @attr {Boolean} noCheckmark - When true, selected option will not show the checkmark.
|
|
21
|
+
* @attr {Boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
22
|
+
* @attr {String} value - Value selected for the menu.
|
|
23
|
+
* @prop {Boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
24
|
+
* @event auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
25
|
+
* @event selectedOption - (DEPRECATED) Notifies that a new menuoption selection has been made.
|
|
26
|
+
* @event auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
27
|
+
* @event auroMenuActivatedOption - (DEPRECATED) Notifies that a menuoption has been made `active`.
|
|
28
|
+
* @event auroMenu-selectValueFailure - Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
29
|
+
* @event auroMenuSelectValueFailure - (DEPRECATED) Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
30
|
+
* @event auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
31
|
+
* @event auroMenuCustomEventFired - (DEPRECATED) Notifies that a custom event has been fired.
|
|
32
|
+
* @event auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
33
|
+
* @event auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
34
|
+
* @slot loadingText - Text to show while loading attribute is set
|
|
35
|
+
* @slot loadingIcon - Icon to show while loading attribute is set
|
|
36
|
+
* @slot - Slot for insertion of menu options.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/* eslint-disable no-magic-numbers, max-lines */
|
|
40
|
+
|
|
41
|
+
export class AuroMenu extends LitElement {
|
|
42
|
+
constructor() {
|
|
43
|
+
super();
|
|
44
|
+
this.value = undefined;
|
|
45
|
+
this.optionSelected = undefined;
|
|
46
|
+
this.matchWord = undefined;
|
|
47
|
+
this.noCheckmark = false;
|
|
48
|
+
this.optionActive = undefined;
|
|
49
|
+
this.loading = false;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
this.rootMenu = true;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
this.nestingSpacer = '<span class="nestingSpacer"></span>';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
this.loadingSlots = null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static get properties() {
|
|
73
|
+
return {
|
|
74
|
+
noCheckmark: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
reflect: true
|
|
77
|
+
},
|
|
78
|
+
disabled: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
reflect: true
|
|
81
|
+
},
|
|
82
|
+
loading: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
reflect: true
|
|
85
|
+
},
|
|
86
|
+
optionSelected: { type: Object },
|
|
87
|
+
optionActive: { type: Object },
|
|
88
|
+
matchWord: { type: String },
|
|
89
|
+
value: { type: String }
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static get styles() {
|
|
94
|
+
return [
|
|
95
|
+
styleCss,
|
|
96
|
+
colorCss,
|
|
97
|
+
tokensCss
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* This will register this element with the browser.
|
|
103
|
+
* @param {string} [name="auro-menu"] - The name of element that you want to register to.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
static register(name = "auro-menu") {
|
|
110
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenu);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Passes the noCheckmark attribute to all nested auro-menuoptions.
|
|
115
|
+
* @private
|
|
116
|
+
* @returns {void}
|
|
117
|
+
*/
|
|
118
|
+
handleNoCheckmarkAttr() {
|
|
119
|
+
if (this.noCheckmark) {
|
|
120
|
+
const menus = this.querySelectorAll('auro-menu, [auro-menu]');
|
|
121
|
+
|
|
122
|
+
menus.forEach((menu) => {
|
|
123
|
+
menu.setAttribute('noCheckmark', '');
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
const options = this.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
127
|
+
|
|
128
|
+
options.forEach((option) => {
|
|
129
|
+
option.setAttribute('noCheckmark', '');
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
firstUpdated() {
|
|
135
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
136
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-menu');
|
|
137
|
+
|
|
138
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
139
|
+
|
|
140
|
+
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
updated(changedProperties) {
|
|
144
|
+
if (changedProperties.has('matchWord')) {
|
|
145
|
+
this.markOptions();
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (changedProperties.has('value')) {
|
|
149
|
+
this.selectByValue(this.value);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (changedProperties.has('disabled')) {
|
|
153
|
+
const options = Array.from(this.querySelectorAll('auro-menuoption, [auro-menuoption]'));
|
|
154
|
+
|
|
155
|
+
for (const element of options) {
|
|
156
|
+
element.disabled = this.disabled;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (changedProperties.has('loading')) {
|
|
161
|
+
const event = new CustomEvent("auroMenu-loadingChange", {
|
|
162
|
+
detail: {
|
|
163
|
+
loading: this.loading,
|
|
164
|
+
hasLoadingPlaceholder:
|
|
165
|
+
this.hasLoadingPlaceholder
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
this.setAttribute("aria-busy", this.hasAttribute("loading"));
|
|
169
|
+
this.dispatchEvent(event);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @private
|
|
175
|
+
* @param {Object} option - The menuoption to check for interactive state.
|
|
176
|
+
* @returns {Boolean} Returns true if the option is interactive.
|
|
177
|
+
*/
|
|
178
|
+
optionInteractive(option) {
|
|
179
|
+
return !option.hasAttribute('hidden') && !option.hasAttribute('disabled') && !option.hasAttribute('static');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @private
|
|
184
|
+
* @returns {void} When called will update the DOM with visible suggest text matches.
|
|
185
|
+
*/
|
|
186
|
+
markOptions() {
|
|
187
|
+
if (this.items && this.items.length > 0 && (this.matchWord && this.matchWord.length > 0)) {
|
|
188
|
+
|
|
189
|
+
// Escape special regex characters
|
|
190
|
+
const escapedWord = this.matchWord.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
|
|
191
|
+
|
|
192
|
+
// Global, case-insensitive, unicode matching regex pattern
|
|
193
|
+
const regexWord = new RegExp(escapedWord, 'giu');
|
|
194
|
+
|
|
195
|
+
this.items.forEach((item) => {
|
|
196
|
+
if (this.optionInteractive(item) && !item.hasAttribute('persistent')) {
|
|
197
|
+
const nested = item.querySelectorAll('.nestingSpacer');
|
|
198
|
+
const nestingSpacerBundle = [...nested].map(() => this.nestingSpacer).join('');
|
|
199
|
+
|
|
200
|
+
item.innerHTML = nestingSpacerBundle + item.textContent.replace(regexWord, (match) => `<strong>${match}</strong>`);
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Reset the menu and all options.
|
|
208
|
+
*/
|
|
209
|
+
resetOptionsStates() {
|
|
210
|
+
this.optionSelected = undefined;
|
|
211
|
+
if (this.items) {
|
|
212
|
+
this.items.forEach((item) => {
|
|
213
|
+
item.classList.remove('active');
|
|
214
|
+
item.removeAttribute('selected');
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Set the attributes on the selected menuoption, the menu value and stored option.
|
|
221
|
+
* @param {Object} option - The menuoption to be selected.
|
|
222
|
+
* @private
|
|
223
|
+
*/
|
|
224
|
+
handleLocalSelectState(option) {
|
|
225
|
+
option.setAttribute('selected', '');
|
|
226
|
+
option.classList.add('active');
|
|
227
|
+
option.ariaSelected = true;
|
|
228
|
+
|
|
229
|
+
this.value = option.value;
|
|
230
|
+
this.optionSelected = option;
|
|
231
|
+
this.index = this.items.indexOf(option);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Notify selection change.
|
|
236
|
+
* @private
|
|
237
|
+
* @return {void}
|
|
238
|
+
*/
|
|
239
|
+
notifySelectionChange() {
|
|
240
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
241
|
+
this.dispatchEvent(new CustomEvent('selectedOption', {
|
|
242
|
+
bubbles: true,
|
|
243
|
+
cancelable: false,
|
|
244
|
+
composed: true,
|
|
245
|
+
}));
|
|
246
|
+
|
|
247
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectedOption', {
|
|
248
|
+
bubbles: true,
|
|
249
|
+
cancelable: false,
|
|
250
|
+
composed: true,
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Process actions for making making a menuoption selection.
|
|
256
|
+
*/
|
|
257
|
+
makeSelection() {
|
|
258
|
+
if (!this.items) {
|
|
259
|
+
this.initItems();
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (this.items[this.index] && !this.items[this.index].hasAttribute('disabled')) {
|
|
263
|
+
this.resetOptionsStates();
|
|
264
|
+
|
|
265
|
+
if (this.index >= 0) {
|
|
266
|
+
const option = this.items[this.index];
|
|
267
|
+
|
|
268
|
+
// only handle options that are not disabled, hidden or static
|
|
269
|
+
if (option && this.optionInteractive(option)) {
|
|
270
|
+
// fire custom event if defined otherwise make selection
|
|
271
|
+
if (option.hasAttribute('event')) {
|
|
272
|
+
this.dispatchEvent(new CustomEvent(option.getAttribute('event'), {
|
|
273
|
+
bubbles: true,
|
|
274
|
+
cancelable: false,
|
|
275
|
+
composed: true,
|
|
276
|
+
}));
|
|
277
|
+
|
|
278
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
279
|
+
this.dispatchEvent(new CustomEvent('auroMenuCustomEventFired', {
|
|
280
|
+
bubbles: true,
|
|
281
|
+
cancelable: false,
|
|
282
|
+
composed: true,
|
|
283
|
+
}));
|
|
284
|
+
|
|
285
|
+
this.dispatchEvent(new CustomEvent('auroMenu-customEventFired', {
|
|
286
|
+
bubbles: true,
|
|
287
|
+
cancelable: false,
|
|
288
|
+
composed: true,
|
|
289
|
+
}));
|
|
290
|
+
} else {
|
|
291
|
+
this.handleLocalSelectState(option);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
this.notifySelectionChange();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Manage ArrowDown, ArrowUp and Enter keyboard events.
|
|
302
|
+
* @private
|
|
303
|
+
* @param {Object} event - Event object from the browser.
|
|
304
|
+
*/
|
|
305
|
+
handleKeyDown(event) {
|
|
306
|
+
event.preventDefault();
|
|
307
|
+
|
|
308
|
+
// With ArrowDown/ArrowUp events, pass new value to selectNextItem()
|
|
309
|
+
// With Enter event, set value and apply attrs
|
|
310
|
+
switch (event.key) {
|
|
311
|
+
case "ArrowDown":
|
|
312
|
+
this.selectNextItem('down');
|
|
313
|
+
break;
|
|
314
|
+
|
|
315
|
+
case "ArrowUp":
|
|
316
|
+
this.selectNextItem('up');
|
|
317
|
+
break;
|
|
318
|
+
|
|
319
|
+
case "Enter":
|
|
320
|
+
this.makeSelection();
|
|
321
|
+
break;
|
|
322
|
+
default:
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Initializes all menu options in the DOM. This must be re-run every time the options are changed.
|
|
329
|
+
* @private
|
|
330
|
+
*/
|
|
331
|
+
initItems() {
|
|
332
|
+
this.items = Array.from(this.querySelectorAll('auro-menuoption, [auro-menuoption]'));
|
|
333
|
+
this.handleNoCheckmarkAttr();
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Sets the index value of the selected item or first non-disabled menuoption.
|
|
338
|
+
* @private
|
|
339
|
+
*/
|
|
340
|
+
getSelectedIndex() {
|
|
341
|
+
// find the first `selected` and not `disabled`, `hidden` or `static` option
|
|
342
|
+
const index = this.items.findIndex((option) => option.hasAttribute('selected') && this.optionInteractive(option));
|
|
343
|
+
|
|
344
|
+
if (index >= 0) {
|
|
345
|
+
this.index = index;
|
|
346
|
+
this.makeSelection();
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Using value of current this.index evaluates index
|
|
352
|
+
* of next :focus to set based on array of this.items ignoring items
|
|
353
|
+
* with disabled attr.
|
|
354
|
+
*
|
|
355
|
+
* The event.target is not used as the function needs to know where to go,
|
|
356
|
+
* versus knowing where it is.
|
|
357
|
+
* @param {String} moveDirection - Up or Down based on keyboard event.
|
|
358
|
+
*/
|
|
359
|
+
selectNextItem(moveDirection) {
|
|
360
|
+
if (this.index >= 0) {
|
|
361
|
+
this.items[this.index].classList.remove('active');
|
|
362
|
+
|
|
363
|
+
// calculate which is the selection we should focus next
|
|
364
|
+
let increment = 0;
|
|
365
|
+
|
|
366
|
+
if (moveDirection === 'down') {
|
|
367
|
+
increment = 1;
|
|
368
|
+
} else if (moveDirection === 'up') {
|
|
369
|
+
increment = -1;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
this.index += increment;
|
|
373
|
+
|
|
374
|
+
// keep looping inside the array of options
|
|
375
|
+
if (this.index > this.items.length - 1) {
|
|
376
|
+
this.index = 0;
|
|
377
|
+
} else if (this.index < 0) {
|
|
378
|
+
this.index = this.items.length - 1;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// check if new index is disabled, static or hidden, if so, execute again
|
|
382
|
+
if (!this.optionInteractive(this.items[this.index])) {
|
|
383
|
+
this.selectNextItem(moveDirection);
|
|
384
|
+
} else {
|
|
385
|
+
// apply focus to new index
|
|
386
|
+
this.updateActiveOption(this.index);
|
|
387
|
+
}
|
|
388
|
+
} else {
|
|
389
|
+
this.index = 0;
|
|
390
|
+
|
|
391
|
+
if (this.items[this.index].hasAttribute('hidden') || this.items[this.index].hasAttribute('disabled')) {
|
|
392
|
+
this.selectNextItem(moveDirection);
|
|
393
|
+
} else {
|
|
394
|
+
this.updateActiveOption(this.index);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Used for applying indentation to each level of nested menu.
|
|
401
|
+
* @private
|
|
402
|
+
* @param {String} menu - Root level menu object.
|
|
403
|
+
*/
|
|
404
|
+
handleNestedMenus(menu) {
|
|
405
|
+
const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu');
|
|
406
|
+
|
|
407
|
+
if (nestedMenus.length === 0) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
nestedMenus.forEach((nestedMenu) => {
|
|
412
|
+
const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption');
|
|
413
|
+
|
|
414
|
+
options.forEach((option) => {
|
|
415
|
+
option.innerHTML = this.nestingSpacer + option.innerHTML;
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
this.handleNestedMenus(nestedMenu);
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Method to apply `selected` attribute to `menuoption` via `value`.
|
|
424
|
+
* @private
|
|
425
|
+
* @param {String} value - Must match a unique `menuoption` value.
|
|
426
|
+
*/
|
|
427
|
+
selectByValue(value) {
|
|
428
|
+
let valueMatch = false;
|
|
429
|
+
if (!this.items) {
|
|
430
|
+
this.initItems();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
this.index = undefined;
|
|
434
|
+
|
|
435
|
+
if (this.value && this.value.length > 0) {
|
|
436
|
+
for (let index = 0; index < this.items.length; index += 1) {
|
|
437
|
+
if (this.items[index].value === value) {
|
|
438
|
+
valueMatch = true;
|
|
439
|
+
this.index = index;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (!valueMatch) {
|
|
444
|
+
// reset the menu to no selection
|
|
445
|
+
this.index = undefined;
|
|
446
|
+
|
|
447
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
448
|
+
this.dispatchEvent(new CustomEvent('auroMenuSelectValueFailure', {
|
|
449
|
+
bubbles: true,
|
|
450
|
+
cancelable: false,
|
|
451
|
+
composed: true,
|
|
452
|
+
}));
|
|
453
|
+
|
|
454
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectValueFailure', {
|
|
455
|
+
bubbles: true,
|
|
456
|
+
cancelable: false,
|
|
457
|
+
composed: true,
|
|
458
|
+
}));
|
|
459
|
+
} else {
|
|
460
|
+
this.makeSelection();
|
|
461
|
+
}
|
|
462
|
+
} else {
|
|
463
|
+
this.resetOptionsStates();
|
|
464
|
+
|
|
465
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectValueReset', {
|
|
466
|
+
bubbles: true,
|
|
467
|
+
cancelable: false,
|
|
468
|
+
composed: true,
|
|
469
|
+
}));
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Used to make the active state for options follow mouseover.
|
|
475
|
+
* @param {Number} index - Index of the menuoption that will be made active.
|
|
476
|
+
* @private
|
|
477
|
+
*/
|
|
478
|
+
updateActiveOption(index) {
|
|
479
|
+
this.items.forEach((item) => {
|
|
480
|
+
item.classList.remove('active');
|
|
481
|
+
});
|
|
482
|
+
this.items[index].classList.add('active');
|
|
483
|
+
this.optionActive = this.items[index];
|
|
484
|
+
|
|
485
|
+
this.dispatchEvent(new CustomEvent('auroMenuActivatedOption', {
|
|
486
|
+
bubbles: true,
|
|
487
|
+
cancelable: false,
|
|
488
|
+
composed: true,
|
|
489
|
+
detail: this.items[index]
|
|
490
|
+
}));
|
|
491
|
+
|
|
492
|
+
this.dispatchEvent(new CustomEvent('auroMenu-activatedOption', {
|
|
493
|
+
bubbles: true,
|
|
494
|
+
cancelable: false,
|
|
495
|
+
composed: true,
|
|
496
|
+
detail: this.items[index]
|
|
497
|
+
}));
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Used to only make a selection when a menuoption is receiving a mousedown event.
|
|
502
|
+
* @param {Event} evt - Mousedown event.
|
|
503
|
+
* @private
|
|
504
|
+
*/
|
|
505
|
+
handleMenuMouseDown(evt) {
|
|
506
|
+
if (evt.target !== this) {
|
|
507
|
+
this.makeSelection();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Checks if there are any loading placeholders in the component.
|
|
513
|
+
*
|
|
514
|
+
* This getter evaluates the `loadingSlots` collection to determine if it contains any items.
|
|
515
|
+
* If the size of the collection is greater than zero, it indicates the presence of loading
|
|
516
|
+
* placeholders, returning true; otherwise, it returns false.
|
|
517
|
+
*
|
|
518
|
+
* @getter hasLoadingPlaceholder
|
|
519
|
+
* @type {boolean}
|
|
520
|
+
* @returns {boolean} Returns true if loading placeholders exist; false otherwise.
|
|
521
|
+
*/
|
|
522
|
+
get hasLoadingPlaceholder() {
|
|
523
|
+
return this.loadingSlots.length > 0;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Used for @slotchange event on slotted element.
|
|
528
|
+
* @private
|
|
529
|
+
*/
|
|
530
|
+
handleSlotItems() {
|
|
531
|
+
// Determine if this is the root of the menu/submenu layout.
|
|
532
|
+
if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
|
|
533
|
+
this.rootMenu = false;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// If this is the root menu (not a nested menu) handle events, states and styling.
|
|
537
|
+
if (this.rootMenu) {
|
|
538
|
+
this.initItems();
|
|
539
|
+
this.setAttribute('role', 'listbox');
|
|
540
|
+
this.setAttribute('root', '');
|
|
541
|
+
this.handleNestedMenus(this);
|
|
542
|
+
this.markOptions();
|
|
543
|
+
this.index = -1;
|
|
544
|
+
this.getSelectedIndex();
|
|
545
|
+
|
|
546
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
547
|
+
this.addEventListener('mousedown', this.handleMenuMouseDown);
|
|
548
|
+
this.addEventListener('auroMenuOption-mouseover', (evt) => {
|
|
549
|
+
this.index = this.items.indexOf(evt.target);
|
|
550
|
+
this.updateActiveOption(this.index);
|
|
551
|
+
});
|
|
552
|
+
} else {
|
|
553
|
+
// make sure to update all menuoption noCheckmark attributes when the menu is dynamically changed
|
|
554
|
+
this.handleNoCheckmarkAttr();
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
render() {
|
|
559
|
+
if (this.loading) {
|
|
560
|
+
return html`
|
|
561
|
+
<auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
|
|
562
|
+
<div>
|
|
563
|
+
<slot name="loadingIcon"></slot>
|
|
564
|
+
<slot name="loadingText"></slot>
|
|
565
|
+
</div>
|
|
566
|
+
</auro-menuoption>
|
|
567
|
+
`;
|
|
568
|
+
}
|
|
569
|
+
return html`<slot @slotchange=${this.handleSlotItems}></slot>`;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
5
|
+
|
|
6
|
+
// ---------------------------------------------------------------------
|
|
7
|
+
import { LitElement } from "lit";
|
|
8
|
+
import { html } from 'lit/static-html.js';
|
|
9
|
+
|
|
10
|
+
import styleCss from "./styles/style-menuoption-css.js";
|
|
11
|
+
import colorCss from "./styles/color-menuoption-css.js";
|
|
12
|
+
import tokensCss from "./styles/tokens-css.js";
|
|
13
|
+
|
|
14
|
+
import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
|
|
15
|
+
import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';
|
|
16
|
+
|
|
17
|
+
import { AuroIcon } from '@aurodesignsystem/auro-icon/src/auro-icon.js';
|
|
18
|
+
import iconVersion from './iconVersion.js';
|
|
19
|
+
|
|
20
|
+
import checkmarkIcon from '@alaskaairux/icons/dist/icons/interface/checkmark-sm.mjs';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The auro-menu element provides users a way to define a menu option.
|
|
24
|
+
*
|
|
25
|
+
* @attr {String} value - Specifies the value to be sent to a server.
|
|
26
|
+
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
27
|
+
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
28
|
+
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
29
|
+
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
30
|
+
* @slot - Specifies text for an option, but is not the value.
|
|
31
|
+
*/
|
|
32
|
+
export class AuroMenuOption extends LitElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Generate unique names for dependency components.
|
|
38
|
+
*/
|
|
39
|
+
const versioning = new AuroDependencyVersioning();
|
|
40
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
41
|
+
|
|
42
|
+
this.selected = false;
|
|
43
|
+
this.nocheckmark = false;
|
|
44
|
+
this.disabled = false;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
this.tabIndex = -1;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
nocheckmark: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
reflect: true
|
|
62
|
+
},
|
|
63
|
+
selected: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
reflect: true
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
reflect: true
|
|
70
|
+
},
|
|
71
|
+
value: {
|
|
72
|
+
type: String,
|
|
73
|
+
reflect: true
|
|
74
|
+
},
|
|
75
|
+
tabIndex: {
|
|
76
|
+
type: Number,
|
|
77
|
+
reflect: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static get styles() {
|
|
83
|
+
return [
|
|
84
|
+
styleCss,
|
|
85
|
+
colorCss,
|
|
86
|
+
tokensCss
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* This will register this element with the browser.
|
|
92
|
+
* @param {string} [name="auro-menuoption"] - The name of element that you want to register to.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
static register(name = "auro-menuoption") {
|
|
99
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenuOption);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
firstUpdated() {
|
|
103
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
104
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
105
|
+
|
|
106
|
+
this.setAttribute('role', 'option');
|
|
107
|
+
this.setAttribute('aria-selected', 'false');
|
|
108
|
+
|
|
109
|
+
this.addEventListener('mouseover', () => {
|
|
110
|
+
this.dispatchEvent(new CustomEvent('auroMenuOption-mouseover', {
|
|
111
|
+
bubbles: true,
|
|
112
|
+
cancelable: false,
|
|
113
|
+
composed: true,
|
|
114
|
+
detail: this
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// observer for selected property changes
|
|
120
|
+
updated(changedProperties) {
|
|
121
|
+
if (changedProperties.has('selected')) {
|
|
122
|
+
this.setAttribute('aria-selected', this.selected.toString());
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Generates an HTML element containing an SVG icon based on the provided `svgContent`.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
130
|
+
* @param {string} svgContent - The SVG content to be embedded.
|
|
131
|
+
* @returns {Element} The HTML element containing the SVG icon.
|
|
132
|
+
*/
|
|
133
|
+
generateIconHtml(svgContent) {
|
|
134
|
+
const dom = new DOMParser().parseFromString(svgContent, 'text/html');
|
|
135
|
+
const svg = dom.body.firstChild;
|
|
136
|
+
|
|
137
|
+
svg.setAttribute('slot', 'svg');
|
|
138
|
+
|
|
139
|
+
return html`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
render() {
|
|
143
|
+
return html`
|
|
144
|
+
${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
|
|
145
|
+
<slot></slot>
|
|
146
|
+
`;
|
|
147
|
+
}
|
|
148
|
+
}
|