@aurodesignsystem/auro-formkit 2.0.0-beta.1 → 2.0.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/.turbo/cache/026e4d886ba97e63-meta.json +1 -0
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +1 -0
- package/.turbo/cache/080ca6155e637d5d.tar.zst +0 -0
- package/.turbo/cache/0b115e30ff606299-meta.json +1 -0
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -0
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -0
- package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +1 -0
- package/.turbo/cache/1c630fb3411e4a41.tar.zst +0 -0
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +1 -0
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -0
- package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +1 -0
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +1 -0
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -0
- package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +1 -0
- package/.turbo/cache/43f5206cc4e69b44.tar.zst +0 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -0
- package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
- package/.turbo/cache/4a85ec226b585fd5-meta.json +1 -0
- package/.turbo/cache/4a85ec226b585fd5.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -0
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/50a29c70b93c57dd-meta.json +1 -0
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -0
- package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +1 -0
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +1 -0
- package/.turbo/cache/5c06332cf9f132da.tar.zst +0 -0
- package/.turbo/cache/5e613afc6868d0e2-meta.json +1 -0
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -0
- package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -0
- package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +1 -0
- package/.turbo/cache/639dac15b979bedc.tar.zst +0 -0
- package/.turbo/cache/664c2e08614fd212-meta.json +1 -0
- package/.turbo/cache/664c2e08614fd212.tar.zst +0 -0
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +1 -0
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +1 -0
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -0
- package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -0
- package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -0
- package/.turbo/cache/7c9ca6163e61285c.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +1 -0
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +1 -0
- package/.turbo/cache/8af27c076dc010c3.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -0
- package/.turbo/cache/8bb856bd31b5b479.tar.zst +0 -0
- package/.turbo/cache/953c8216249d3509-meta.json +1 -0
- package/.turbo/cache/953c8216249d3509.tar.zst +0 -0
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +1 -0
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -0
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +1 -0
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +1 -0
- package/.turbo/cache/b22ca87b2f7f9cc2.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -0
- package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +1 -0
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +1 -0
- package/.turbo/cache/c2b51643f886a493.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -0
- package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -0
- package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
- package/.turbo/cache/c74d369a0475b124-meta.json +1 -0
- package/.turbo/cache/c74d369a0475b124.tar.zst +0 -0
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +1 -0
- package/.turbo/cache/c7f5a276ddb73cf7.tar.zst +0 -0
- package/.turbo/cache/c96933d40404e4c8-meta.json +1 -0
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -0
- package/.turbo/cache/d775555355d6b8fc.tar.zst +0 -0
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -0
- package/.turbo/cache/d7c3007be148d2a1.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -0
- package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +1 -0
- package/.turbo/cache/eb1dbe885532c1dc.tar.zst +0 -0
- package/.turbo/cache/f1f6744948f1b18f-meta.json +1 -0
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +1 -0
- package/.turbo/cache/feefbc25d550c1cd.tar.zst +0 -0
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +1 -0
- package/.turbo/cache/ff4dbfffc29255ab.tar.zst +0 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +109 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +20 -21
- package/components/checkbox/.turbo/turbo-bundler.log +4 -4
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/checkbox/.turbo/turbo-types.log +1 -1
- package/components/checkbox/README.md +26 -34
- package/components/checkbox/demo/api.md +65 -65
- package/components/checkbox/demo/api.min.js +184 -84
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +184 -84
- package/components/checkbox/dist/auro-checkbox-group.d.ts +35 -16
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +20 -11
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +184 -84
- package/components/checkbox/package.json +1 -1
- package/components/checkbox/src/auro-checkbox-group.js +46 -17
- package/components/checkbox/src/auro-checkbox.js +29 -12
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +22 -23
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/combobox/README.md +21 -26
- package/components/combobox/demo/api.md +17 -15
- package/components/combobox/demo/api.min.js +754 -357
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +754 -357
- package/components/combobox/dist/auro-combobox.d.ts +11 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.js +752 -355
- package/components/combobox/dist/inputVersion.d.ts +3 -0
- package/components/combobox/dist/inputVersion.d.ts.map +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
- package/components/combobox/node_modules/chalk/package.json +3 -3
- package/components/combobox/node_modules/chalk/readme.md +25 -53
- package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
- package/components/combobox/package.json +8 -8
- package/components/combobox/src/auro-combobox.js +75 -76
- package/components/combobox/src/dropdownVersion.js +1 -0
- package/components/combobox/src/inputVersion.js +1 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +179 -7
- package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
- package/components/counter/.turbo/turbo-build.log +288 -14
- package/components/counter/.turbo/turbo-bundler.log +4 -4
- package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/counter/.turbo/turbo-sass$colon$render.log +39 -3
- package/components/counter/.turbo/turbo-types.log +1 -1
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +98 -1016
- package/components/counter/demo/api.min.js +1670 -32
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +194 -0
- package/components/counter/demo/index.min.js +1702 -19
- package/components/counter/dist/auro-counter-button.d.ts +13 -0
- package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
- package/components/counter/dist/auro-counter-group.d.ts +77 -6
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +78 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/dropdownVersion.d.ts +3 -0
- package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +1670 -32
- package/components/counter/dist/styles/color-css.d.ts +3 -0
- package/components/counter/dist/styles/color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/counter/package.json +9 -3
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +150 -21
- package/components/counter/src/auro-counter.js +272 -12
- package/components/counter/src/dropdownVersion.js +1 -0
- package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/counter/src/iconVersion.js +1 -0
- package/components/counter/src/index.js +1 -1
- package/components/counter/src/styles/color-css.js +2 -0
- package/components/counter/src/styles/color.css +25 -0
- package/components/counter/src/styles/color.scss +44 -0
- package/components/counter/src/styles/counter-button-color-css.js +2 -0
- package/components/counter/src/styles/counter-button-color.css +14 -0
- package/components/counter/src/styles/counter-button-color.scss +29 -0
- package/components/counter/src/styles/counter-button-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens.css +7 -0
- package/components/counter/src/styles/counter-button-tokens.scss +9 -0
- package/components/counter/src/styles/counter-button.css +187 -0
- package/components/counter/src/styles/counter-button.scss +83 -0
- package/components/counter/src/styles/counter-group-color-css.js +2 -0
- package/components/counter/src/styles/counter-group-color.css +4 -0
- package/components/counter/src/styles/counter-group-color.scss +19 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +13 -1
- package/components/counter/src/styles/counter-group.scss +14 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +43 -1
- package/components/counter/src/styles/style.scss +48 -2
- package/components/counter/src/styles/tokens-css.js +2 -0
- package/components/counter/src/styles/tokens.css +11 -0
- package/components/counter/src/styles/tokens.scss +24 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
- package/components/datepicker/.turbo/turbo-build.log +59 -59
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
- package/components/datepicker/README.md +21 -26
- package/components/datepicker/demo/api.md +177 -131
- package/components/datepicker/demo/api.min.js +995 -559
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +995 -559
- package/components/datepicker/dist/auro-datepicker.d.ts +89 -78
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +995 -559
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/package.json +3 -3
- package/components/datepicker/src/auro-datepicker.js +142 -104
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- package/components/datepicker/src/styles/color-cell-css.js +1 -1
- package/components/datepicker/src/styles/color-cell.css +1 -1
- package/components/datepicker/src/styles/color-cell.scss +1 -1
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
- package/components/dropdown/.turbo/turbo-build$colon$version.log +1 -1
- package/components/dropdown/.turbo/turbo-build.log +19 -20
- package/components/dropdown/.turbo/turbo-bundler.log +4 -4
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/dropdown/.turbo/turbo-types.log +1 -1
- package/components/dropdown/README.md +18 -26
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +205 -81
- package/components/dropdown/demo/index.min.js +205 -81
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +205 -81
- package/components/dropdown/package.json +1 -1
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
- package/components/form/.turbo/turbo-build$colon$version.log +1 -1
- package/components/form/.turbo/turbo-build.log +17 -18
- package/components/form/.turbo/turbo-bundler.log +4 -4
- package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/form/.turbo/turbo-types.log +1 -1
- package/components/form/README.md +18 -26
- package/components/form/demo/api.min.js +4 -4
- package/components/form/demo/index.min.js +4 -4
- package/components/form/dist/index.js +4 -4
- package/components/form/package.json +1 -1
- package/components/input/.turbo/turbo-build$colon$sass.log +66 -16
- package/components/input/.turbo/turbo-build$colon$version.log +1 -1
- package/components/input/.turbo/turbo-build.log +79 -32
- package/components/input/.turbo/turbo-bundler.log +4 -4
- package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/input/.turbo/turbo-sass$colon$render.log +15 -9
- package/components/input/.turbo/turbo-types.log +1 -1
- package/components/input/README.md +18 -28
- package/components/input/demo/api.md +146 -311
- package/components/input/demo/api.min.js +365 -145
- package/components/input/demo/index.md +11 -61
- package/components/input/demo/index.min.js +365 -145
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +155 -84
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +365 -145
- package/components/input/dist/styles/mixins-css.d.ts +3 -0
- package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
- package/components/input/package.json +1 -1
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +252 -85
- package/components/input/src/styles/borders.scss +3 -19
- package/components/input/src/styles/color.css +1 -2
- package/components/input/src/styles/color.scss +3 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +1 -1
- package/components/input/src/styles/input.scss +4 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +1 -1
- package/components/input/src/styles/label.scss +4 -7
- package/components/input/src/styles/mixins-css.js +2 -0
- package/components/input/src/styles/mixins.css +1 -0
- package/components/input/src/styles/mixins.scss +45 -0
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +13 -12
- package/components/input/src/styles/notificationIcons.scss +17 -25
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +15 -17
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
- package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
- package/components/menu/.turbo/turbo-build.log +20 -21
- package/components/menu/.turbo/turbo-bundler.log +4 -4
- package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/menu/.turbo/turbo-types.log +1 -1
- package/components/menu/README.md +18 -26
- package/components/menu/demo/api.min.js +7 -7
- package/components/menu/demo/index.min.js +7 -7
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +7 -7
- package/components/menu/package.json +1 -1
- package/components/menu/src/auro-menu.js +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +23 -24
- package/components/radio/.turbo/turbo-bundler.log +4 -4
- package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/radio/.turbo/turbo-types.log +1 -1
- package/components/radio/README.md +18 -26
- package/components/radio/demo/api.md +3 -1
- package/components/radio/demo/api.min.js +111 -57
- package/components/radio/demo/index.min.js +111 -57
- package/components/radio/dist/index.js +111 -57
- package/components/radio/package.json +1 -1
- package/components/radio/src/auro-radio-group.js +1 -1
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +30 -33
- package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
- package/components/select/README.md +21 -42
- package/components/select/demo/api.md +45 -110
- package/components/select/demo/api.min.js +434 -279
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +434 -275
- package/components/select/dist/auro-select.d.ts +64 -51
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/dropdownVersion.d.ts +3 -0
- package/components/select/dist/dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.js +429 -257
- package/components/select/package.json +3 -3
- package/components/select/src/auro-select.js +101 -119
- package/components/select/src/dropdownVersion.js +1 -0
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +21 -21
- package/packages/build-tools/src/docProcessor.mjs +37 -8
- package/packages/form-validation/src/validation.js +104 -50
- package/packages/utils/package.json +12 -0
- package/packages/utils/src/iconUtil.js +25 -0
- package/packages/utils/src/index.js +1 -0
- package/turbo.json +8 -8
- package/.turbo/cache/013a48308b893dac-meta.json +0 -1
- package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
- package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
- package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
- package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
- package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
- package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
- package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
- package/.turbo/cache/141bb7d9a95e288b-meta.json +0 -1
- package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
- package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
- package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
- package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
- package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
- package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
- package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
- package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
- package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
- package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
- package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
- package/.turbo/cache/691a74627ec57993-meta.json +0 -1
- package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
- package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
- package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
- package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
- package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
- package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
- package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
- package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/786a822763403879-meta.json +0 -1
- package/.turbo/cache/786a822763403879.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
- package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
- package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
- package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
- package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
- package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
- package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
- package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
- package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
- package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
- package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
- package/.turbo/cache/bb8b41cd0ade3986-meta.json +0 -1
- package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
- package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
- package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
- package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
- package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
- package/.turbo/cache/cd845bb6102c589a-meta.json +0 -1
- package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
- package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
- package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
- package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
- package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
2
|
+
"name": "@aurodesignsystem/auro-select",
|
|
3
3
|
"version": "3.3.0",
|
|
4
4
|
"description": "auro-select HTML custom element",
|
|
5
5
|
"type": "module",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"url": "https://github.com/AlaskaAirlines/auro-select"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
15
|
+
"@aurodesignsystem/auro-dropdown": "*",
|
|
16
|
+
"@aurodesignsystem/auro-menu": "*",
|
|
17
17
|
"chalk": "^5.3.0",
|
|
18
18
|
"lit-element": "^4.1.1",
|
|
19
19
|
"lit-html": "^3.2.1"
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
// If using litElement base class
|
|
9
9
|
import { LitElement } from "lit";
|
|
10
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
11
|
import { html } from 'lit/static-html.js';
|
|
11
12
|
|
|
12
13
|
import AuroFormValidation from '@auro-formkit/form-validation';
|
|
@@ -14,7 +15,7 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
|
|
|
14
15
|
|
|
15
16
|
import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';
|
|
16
17
|
|
|
17
|
-
import { AuroDropdown } from '@
|
|
18
|
+
import { AuroDropdown } from '@aurodesignsystem/auro-dropdown';
|
|
18
19
|
import dropdownVersion from './formkit/auro-dropdownVersion.js';
|
|
19
20
|
|
|
20
21
|
import styleCss from "./styles/style-css.js";
|
|
@@ -25,22 +26,10 @@ import tokensCss from "./styles/tokens-css.js";
|
|
|
25
26
|
/**
|
|
26
27
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
27
28
|
*
|
|
28
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
29
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
30
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
31
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
32
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
33
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
34
|
-
* @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
|
|
35
|
-
* @attr {Boolean} flexMenuWidth - If set, makes dropdown bib width match the size of the content, rather than the width of the trigger.
|
|
36
|
-
* @prop {String} placeholder - Define placeholder text to display before a value is manually selected.
|
|
37
|
-
* @prop {String} value - Value selected for the component.
|
|
38
|
-
* @prop {Boolean} disabled - When attribute is present element shows disabled state.
|
|
39
|
-
* @prop {Boolean} noCheckmark - When true, checkmark on selected option will no longer be present.
|
|
40
|
-
* @attr {Object} optionSelected - Specifies the current selected menuOption.
|
|
41
29
|
* @slot - Default slot for the menu content.
|
|
42
30
|
* @slot label - Defines the content of the label.
|
|
43
31
|
* @slot helpText - Defines the content of the helpText.
|
|
32
|
+
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
44
33
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
45
34
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
46
35
|
* @csspart helpText - Apply CSS to the help text.
|
|
@@ -51,7 +40,6 @@ export class AuroSelect extends LitElement {
|
|
|
51
40
|
constructor() {
|
|
52
41
|
super();
|
|
53
42
|
|
|
54
|
-
this.placeholder = 'Please select option';
|
|
55
43
|
this.optionSelected = undefined;
|
|
56
44
|
this.validity = undefined;
|
|
57
45
|
|
|
@@ -106,68 +94,118 @@ export class AuroSelect extends LitElement {
|
|
|
106
94
|
// to understand how to use reflected attributes with your property settings.
|
|
107
95
|
static get properties() {
|
|
108
96
|
return {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* When attribute is present, element shows disabled state.
|
|
100
|
+
*/
|
|
101
|
+
disabled: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
reflect: true
|
|
112
104
|
},
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* If set, makes dropdown width match the size of the content, rather than the width of the trigger.
|
|
108
|
+
*/
|
|
109
|
+
flexMenuWidth: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
reflect: true
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* When true, checkmark on selected option will no longer be present.
|
|
116
|
+
*/
|
|
117
|
+
noCheckmark: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
reflect: true
|
|
115
120
|
},
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* If set, disables auto-validation on blur.
|
|
124
|
+
*/
|
|
116
125
|
noValidate: {
|
|
117
126
|
type: Boolean,
|
|
118
127
|
reflect: true
|
|
119
128
|
},
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @private
|
|
132
|
+
*/
|
|
133
|
+
optionActive: {
|
|
134
|
+
type: Object
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Specifies the current selected menuOption.
|
|
139
|
+
*/
|
|
140
|
+
optionSelected: {
|
|
141
|
+
type: Object
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @private
|
|
146
|
+
*/
|
|
147
|
+
options: {
|
|
148
|
+
type: Array
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
153
|
+
*/
|
|
120
154
|
required: {
|
|
121
155
|
type: Boolean,
|
|
122
156
|
reflect: true
|
|
123
157
|
},
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
161
|
+
*/
|
|
124
162
|
error: {
|
|
125
163
|
type: String,
|
|
126
164
|
reflect: true
|
|
127
165
|
},
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Sets a custom help text message to display for all validityStates.
|
|
169
|
+
*/
|
|
128
170
|
setCustomValidity: {
|
|
129
171
|
type: String
|
|
130
172
|
},
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Custom help text message to display when validity = `customError`.
|
|
176
|
+
*/
|
|
131
177
|
setCustomValidityCustomError: {
|
|
132
178
|
type: String
|
|
133
179
|
},
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
183
|
+
*/
|
|
134
184
|
setCustomValidityValueMissing: {
|
|
135
185
|
type: String
|
|
136
186
|
},
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the `validityState` this element is in.
|
|
190
|
+
*/
|
|
137
191
|
validity: {
|
|
138
192
|
type: String,
|
|
139
193
|
reflect: true
|
|
140
194
|
},
|
|
141
|
-
disabled: {
|
|
142
|
-
type: Boolean,
|
|
143
|
-
reflect: true
|
|
144
|
-
},
|
|
145
|
-
noCheckmark: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
reflect: true
|
|
148
|
-
},
|
|
149
|
-
flexMenuWidth: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
reflect: true
|
|
152
|
-
},
|
|
153
|
-
placeholder: { type: String },
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* @private
|
|
157
|
-
*/
|
|
158
|
-
options: { type: Array },
|
|
159
195
|
|
|
160
196
|
/**
|
|
161
|
-
*
|
|
197
|
+
* Value selected for the component.
|
|
162
198
|
*/
|
|
163
|
-
|
|
199
|
+
value: {
|
|
200
|
+
type: String
|
|
201
|
+
}
|
|
164
202
|
};
|
|
165
203
|
}
|
|
166
204
|
|
|
167
205
|
static get styles() {
|
|
168
206
|
return [
|
|
169
|
-
styleCss,
|
|
170
207
|
colorCss,
|
|
208
|
+
styleCss,
|
|
171
209
|
tokensCss
|
|
172
210
|
];
|
|
173
211
|
}
|
|
@@ -202,36 +240,30 @@ export class AuroSelect extends LitElement {
|
|
|
202
240
|
}
|
|
203
241
|
|
|
204
242
|
/**
|
|
205
|
-
* Updates the displayed value in an Auro dropdown component based on
|
|
206
|
-
* @param {string|HTMLElement} option - The option to display. If a string, a new span element with the value string is created. If an HTMLElement, the selected option is cloned and non-styling attributes are removed.
|
|
243
|
+
* Updates the displayed value in an Auro dropdown component based on optionSelected
|
|
207
244
|
* @private
|
|
208
245
|
* @returns {void}
|
|
209
246
|
*/
|
|
210
|
-
updateDisplayedValue(
|
|
247
|
+
updateDisplayedValue() {
|
|
211
248
|
const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
|
|
212
249
|
|
|
213
250
|
// remove all existing rendered value(s)
|
|
214
|
-
triggerContentEl.querySelectorAll('auro-menuoption, [
|
|
251
|
+
triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
|
|
215
252
|
elm.remove();
|
|
216
253
|
});
|
|
217
254
|
|
|
218
|
-
if (
|
|
219
|
-
// create a new span element with the value string
|
|
220
|
-
const valueElem = document.createElement('span');
|
|
221
|
-
valueElem.setAttribute('valuestr', true);
|
|
222
|
-
valueElem.textContent = option;
|
|
223
|
-
|
|
224
|
-
// append the new element into the trigger content
|
|
225
|
-
triggerContentEl.appendChild(valueElem);
|
|
226
|
-
} else if (typeof option === 'object') {
|
|
255
|
+
if (this.optionSelected) {
|
|
227
256
|
// clone the selected option and remove attributes that style it
|
|
228
|
-
const clone =
|
|
257
|
+
const clone = this.optionSelected.cloneNode(true);
|
|
229
258
|
clone.removeAttribute('selected');
|
|
230
259
|
clone.removeAttribute('class');
|
|
231
260
|
|
|
232
261
|
// insert the non-styled clone into the trigger
|
|
233
262
|
triggerContentEl.appendChild(clone);
|
|
234
263
|
}
|
|
264
|
+
|
|
265
|
+
// notify dropdown as trigger content is changed
|
|
266
|
+
this.dropdown.requestUpdate();
|
|
235
267
|
}
|
|
236
268
|
|
|
237
269
|
/**
|
|
@@ -241,7 +273,7 @@ export class AuroSelect extends LitElement {
|
|
|
241
273
|
*/
|
|
242
274
|
configureMenu() {
|
|
243
275
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
244
|
-
|
|
276
|
+
|
|
245
277
|
// racing condition on custom-select with custom-menu
|
|
246
278
|
if (!this.menu) {
|
|
247
279
|
setTimeout(() => {
|
|
@@ -250,6 +282,7 @@ export class AuroSelect extends LitElement {
|
|
|
250
282
|
return;
|
|
251
283
|
}
|
|
252
284
|
|
|
285
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
253
286
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
254
287
|
|
|
255
288
|
this.generateOptionsArray();
|
|
@@ -262,8 +295,6 @@ export class AuroSelect extends LitElement {
|
|
|
262
295
|
this.optionSelected = this.menu.optionSelected;
|
|
263
296
|
this.value = this.optionSelected.value;
|
|
264
297
|
|
|
265
|
-
this.updateDisplayedValue(this.optionSelected);
|
|
266
|
-
|
|
267
298
|
if (this.dropdown.isPopoverVisible) {
|
|
268
299
|
this.dropdown.hide();
|
|
269
300
|
}
|
|
@@ -277,25 +308,11 @@ export class AuroSelect extends LitElement {
|
|
|
277
308
|
* with `auro-select.value`.
|
|
278
309
|
*/
|
|
279
310
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
280
|
-
this.
|
|
281
|
-
this.optionSelected = this.menu.optionSelected;
|
|
282
|
-
|
|
283
|
-
this.validity = 'badInput';
|
|
284
|
-
|
|
285
|
-
// Capitalizes the first letter of each word in this.value string
|
|
286
|
-
const valueStr = this.value.replace(/(^\w{1})|(\s+\w{1})/gu, (letter) => letter.toUpperCase());
|
|
287
|
-
|
|
288
|
-
// Pass the new string to the trigger content
|
|
289
|
-
this.updateDisplayedValue(valueStr);
|
|
311
|
+
this.reset();
|
|
290
312
|
});
|
|
291
313
|
|
|
292
314
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
293
|
-
|
|
294
|
-
this.updateDisplayedValue(this.placeholder);
|
|
295
|
-
|
|
296
|
-
this.optionSelected = undefined;
|
|
297
|
-
this.value = undefined;
|
|
298
|
-
|
|
315
|
+
this.optionSelected = this.menu.optionSelected;
|
|
299
316
|
this.validation.validate(this);
|
|
300
317
|
});
|
|
301
318
|
}
|
|
@@ -347,8 +364,6 @@ export class AuroSelect extends LitElement {
|
|
|
347
364
|
this.addEventListener('blur', () => {
|
|
348
365
|
this.validation.validate(this);
|
|
349
366
|
});
|
|
350
|
-
|
|
351
|
-
this.labelForSr();
|
|
352
367
|
}
|
|
353
368
|
|
|
354
369
|
/**
|
|
@@ -467,6 +482,10 @@ export class AuroSelect extends LitElement {
|
|
|
467
482
|
}));
|
|
468
483
|
}
|
|
469
484
|
|
|
485
|
+
if (changedProperties.has('optionSelected')) {
|
|
486
|
+
this.updateDisplayedValue();
|
|
487
|
+
}
|
|
488
|
+
|
|
470
489
|
if (changedProperties.has('error')) {
|
|
471
490
|
this.validation.validate(this, true);
|
|
472
491
|
}
|
|
@@ -480,52 +499,15 @@ export class AuroSelect extends LitElement {
|
|
|
480
499
|
this.validation.reset(this);
|
|
481
500
|
}
|
|
482
501
|
|
|
483
|
-
/**
|
|
484
|
-
* Handles reading of auro-select by screen readers.
|
|
485
|
-
* @private
|
|
486
|
-
* @returns {void}
|
|
487
|
-
*/
|
|
488
|
-
labelForSr() {
|
|
489
|
-
const placeholderLabel = document.createElement("div");
|
|
490
|
-
const textId = "label";
|
|
491
|
-
|
|
492
|
-
placeholderLabel.setAttribute("id", textId);
|
|
493
|
-
placeholderLabel.setAttribute("aria-live", "polite");
|
|
494
|
-
|
|
495
|
-
const styles = {
|
|
496
|
-
position: 'absolute',
|
|
497
|
-
overflow: 'hidden',
|
|
498
|
-
clipPath: 'inset(1px, 1px, 1px, 1px)',
|
|
499
|
-
width: '1px',
|
|
500
|
-
height: '1px',
|
|
501
|
-
padding: '0',
|
|
502
|
-
border: '0'
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
Object.assign(placeholderLabel.style, styles);
|
|
506
|
-
|
|
507
|
-
this.addEventListener('focus', () => {
|
|
508
|
-
document.body.appendChild(placeholderLabel);
|
|
509
|
-
|
|
510
|
-
if (!this.optionSelected) {
|
|
511
|
-
document.getElementById(textId).innerHTML = this.placeholder;
|
|
512
|
-
} else {
|
|
513
|
-
document.getElementById(textId).innerHTML = `${this.optionSelected.innerText}, ${this.placeholder}`;
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
this.addEventListener('blur', () => {
|
|
518
|
-
if (document.contains(placeholderLabel)) {
|
|
519
|
-
document.body.removeChild(placeholderLabel);
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
|
|
524
502
|
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
525
503
|
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
526
504
|
|
|
527
505
|
// function that renders the HTML and CSS into the scope of the component
|
|
528
506
|
render() {
|
|
507
|
+
const placeholderClass = {
|
|
508
|
+
hidden: this.value,
|
|
509
|
+
};
|
|
510
|
+
|
|
529
511
|
return html`
|
|
530
512
|
<div class="outerWrapper">
|
|
531
513
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
@@ -552,7 +534,7 @@ export class AuroSelect extends LitElement {
|
|
|
552
534
|
chevron
|
|
553
535
|
part="dropdown">
|
|
554
536
|
<span slot="trigger" aria-haspopup="true" id="triggerFocus">
|
|
555
|
-
|
|
537
|
+
<span id="placeholder" class="${classMap(placeholderClass)}"><slot name="placeholder"></slot></span>
|
|
556
538
|
</span>
|
|
557
539
|
<div class="menuWrapper">
|
|
558
540
|
</div>
|
|
@@ -565,7 +547,7 @@ export class AuroSelect extends LitElement {
|
|
|
565
547
|
</p>`
|
|
566
548
|
: html`
|
|
567
549
|
<p class="selectElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
568
|
-
${this.
|
|
550
|
+
${this.errorMessage}
|
|
569
551
|
</p>`
|
|
570
552
|
}
|
|
571
553
|
</span>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default '3.0.0';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
2
|
+
export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
@@ -62,6 +62,12 @@
|
|
|
62
62
|
[slot=trigger] .nestingSpacer {
|
|
63
63
|
display: none;
|
|
64
64
|
}
|
|
65
|
+
[slot=trigger] #placeholder.hidden {
|
|
66
|
+
position: absolute;
|
|
67
|
+
z-index: -1;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
65
71
|
|
|
66
72
|
:host [auro-dropdown] {
|
|
67
73
|
position: relative;
|
|
@@ -83,6 +89,7 @@
|
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
auro-menuoption {
|
|
92
|
+
padding: 0;
|
|
86
93
|
pointer-events: none;
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -24,7 +24,16 @@
|
|
|
24
24
|
.nestingSpacer {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
#placeholder {
|
|
29
|
+
&.hidden {
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: -1;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
|
|
29
38
|
:host {
|
|
30
39
|
[auro-dropdown] {
|
|
@@ -52,6 +61,7 @@
|
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
auro-menuoption {
|
|
64
|
+
padding: 0;
|
|
55
65
|
pointer-events: none;
|
|
56
66
|
}
|
|
57
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem/auro-formkit",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": "^20.x || ^22.x"
|
|
13
13
|
},
|
|
14
|
-
"packageManager": "npm@
|
|
14
|
+
"packageManager": "npm@11.0.0",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"prepare": "husky"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@aurodesignsystem/auro-library": "^3.0.
|
|
43
|
+
"@aurodesignsystem/auro-library": "^3.0.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@aurodesignsystem/eslint-config": "^1.3.3",
|
|
47
|
-
"@commitlint/cli": "^19.
|
|
48
|
-
"@commitlint/config-conventional": "^19.
|
|
47
|
+
"@commitlint/cli": "^19.6.1",
|
|
48
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
49
49
|
"@open-wc/testing": "^4.0.0",
|
|
50
50
|
"@semantic-release/changelog": "^6.0.3",
|
|
51
51
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -58,30 +58,30 @@
|
|
|
58
58
|
"babel-loader": "^9.2.1",
|
|
59
59
|
"compression": "^1.7.5",
|
|
60
60
|
"concat": "^1.0.3",
|
|
61
|
-
"concurrently": "^9.
|
|
61
|
+
"concurrently": "^9.1.2",
|
|
62
62
|
"copyfiles": "^2.4.1",
|
|
63
|
-
"core-js": "^3.
|
|
64
|
-
"eslint": "^9.
|
|
65
|
-
"eslint-plugin-jsdoc": "^50.
|
|
63
|
+
"core-js": "^3.40.0",
|
|
64
|
+
"eslint": "^9.18.0",
|
|
65
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
66
66
|
"husky": "^9.1.7",
|
|
67
67
|
"lodash": "^4.17.21",
|
|
68
|
-
"markdown-magic": "^
|
|
69
|
-
"nodemon": "^3.1.
|
|
68
|
+
"markdown-magic": "^3.3.0",
|
|
69
|
+
"nodemon": "^3.1.9",
|
|
70
70
|
"npm-run-all": "^4.1.5",
|
|
71
|
-
"postcss": "^8.
|
|
71
|
+
"postcss": "^8.5.0",
|
|
72
72
|
"postcss-custom-properties": "^14.0.4",
|
|
73
73
|
"postcss-discard-comments": "^7.0.3",
|
|
74
|
-
"prettier": "^3.
|
|
75
|
-
"sass": "^1.
|
|
76
|
-
"semantic-release": "^24.2.
|
|
77
|
-
"stylelint": "^16.
|
|
74
|
+
"prettier": "^3.4.2",
|
|
75
|
+
"sass": "^1.83.1",
|
|
76
|
+
"semantic-release": "^24.2.1",
|
|
77
|
+
"stylelint": "^16.13.1",
|
|
78
78
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
79
|
-
"stylelint-config-standard": "^
|
|
80
|
-
"stylelint-config-standard-scss": "^
|
|
79
|
+
"stylelint-config-standard": "^37.0.0",
|
|
80
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
|
81
81
|
"stylelint-order": "^6.0.4",
|
|
82
|
-
"stylelint-scss": "^6.
|
|
83
|
-
"turbo": "^2.3.
|
|
84
|
-
"typescript": "^5.
|
|
82
|
+
"stylelint-scss": "^6.10.0",
|
|
83
|
+
"turbo": "^2.3.3",
|
|
84
|
+
"typescript": "^5.7.3",
|
|
85
85
|
"whatwg-fetch": "^3.6.20",
|
|
86
86
|
"yaml-lint": "^1.7.0"
|
|
87
87
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from "@aurodesignsystem/auro-library/scripts/utils/logger.mjs";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
2
3
|
import {
|
|
3
4
|
fromAuroComponentRoot,
|
|
4
|
-
generateReadmeUrl,
|
|
5
5
|
processContentForFile,
|
|
6
6
|
templateFiller
|
|
7
7
|
} from "@aurodesignsystem/auro-library/scripts/utils/sharedFileProcessorUtils.mjs";
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
* (like "_esm" to make README_esm.md).
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* @param {ProcessorConfig} config - The configuration for this processor.
|
|
22
21
|
*/
|
|
@@ -30,6 +29,38 @@ export const defaultDocsProcessorConfig = {
|
|
|
30
29
|
remoteReadmeVariant: "_updated_paths"
|
|
31
30
|
};
|
|
32
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Get the version from the root package.json
|
|
34
|
+
* @returns {Promise<string>}
|
|
35
|
+
*/
|
|
36
|
+
async function getPackageVersion() {
|
|
37
|
+
const packageJsonPath = fromAuroComponentRoot('package.json');
|
|
38
|
+
const packageContent = await fs.readFile(packageJsonPath, 'utf8');
|
|
39
|
+
const packageJson = JSON.parse(packageContent);
|
|
40
|
+
return packageJson.version;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const formkitVersion = await getPackageVersion();
|
|
44
|
+
|
|
45
|
+
export const monorepoVars = {
|
|
46
|
+
formkitVersion,
|
|
47
|
+
'monorepoName': 'auro-formkit',
|
|
48
|
+
'dependentComponents': [] // populated by componentDependencyTree in processDocFiles
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const componentDependencyTree = {
|
|
52
|
+
'checkbox': ['checkbox'],
|
|
53
|
+
'combobox': ['dropdown', 'input', 'menu', 'combobox'],
|
|
54
|
+
'counter': ['counter'],
|
|
55
|
+
'datepicker': ['dropdown', 'input', 'popover', 'datepicker'],
|
|
56
|
+
'dropdown': ['dropdown'],
|
|
57
|
+
'form': ['form'],
|
|
58
|
+
'input': ['input'],
|
|
59
|
+
'menu': ['menu'],
|
|
60
|
+
'radio': ['radio'],
|
|
61
|
+
'select': ['dropdown', 'menu', 'select'],
|
|
62
|
+
}
|
|
63
|
+
|
|
33
64
|
/**
|
|
34
65
|
* @param {ProcessorConfig} config - The configuration for this processor.
|
|
35
66
|
* @returns {import('@aurodesignsystem/auro-library/scripts/utils/sharedFileProcessorUtils').FileProcessorConfig[]}
|
|
@@ -38,11 +69,7 @@ export const fileConfigs = (config) => [
|
|
|
38
69
|
// README.md
|
|
39
70
|
{
|
|
40
71
|
identifier: 'README.md',
|
|
41
|
-
input:
|
|
42
|
-
remoteUrl: generateReadmeUrl(config.remoteReadmeVersion, config.remoteReadmeVariant),
|
|
43
|
-
fileName: fromAuroComponentRoot(`components/${config.component}/docTemplates/README.md`),
|
|
44
|
-
overwrite: config.overwriteLocalCopies
|
|
45
|
-
},
|
|
72
|
+
input: fromAuroComponentRoot(`docs/templates/componentReadmeTemplate.md`),
|
|
46
73
|
output: fromAuroComponentRoot(`components/${config.component}/README.md`)
|
|
47
74
|
},
|
|
48
75
|
// index.md
|
|
@@ -79,8 +106,10 @@ export async function processDocFiles(componentName) {
|
|
|
79
106
|
|
|
80
107
|
for (const fileConfig of fileConfigs(config)) {
|
|
81
108
|
try {
|
|
109
|
+
const dependencies = componentDependencyTree[config.component];
|
|
110
|
+
|
|
82
111
|
// eslint-disable-next-line no-await-in-loop
|
|
83
|
-
await processContentForFile(fileConfig);
|
|
112
|
+
await processContentForFile({ ...fileConfig, extraVars: { ...monorepoVars, dependentComponents: dependencies} });
|
|
84
113
|
} catch (err) {
|
|
85
114
|
Logger.error(`Error processing ${fileConfig.identifier}: ${err.message}`);
|
|
86
115
|
}
|